rivetkit 2.0.9 → 2.0.11
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/tsup/{chunk-F2YZNUPU.js → chunk-3JUN3IEH.js} +3 -3
- package/dist/tsup/{chunk-DL7TPF63.cjs → chunk-5ABUOI3V.cjs} +7 -7
- package/dist/tsup/{chunk-DL7TPF63.cjs.map → chunk-5ABUOI3V.cjs.map} +1 -1
- package/dist/tsup/{chunk-SDXTJDDR.cjs → chunk-5JZPEJVJ.cjs} +58 -14
- package/dist/tsup/chunk-5JZPEJVJ.cjs.map +1 -0
- package/dist/tsup/{chunk-SOC4HWCG.cjs → chunk-6PORXHSQ.cjs} +92 -39
- package/dist/tsup/chunk-6PORXHSQ.cjs.map +1 -0
- package/dist/tsup/{chunk-QGRYH6TU.cjs → chunk-765F7ILI.cjs} +7 -6
- package/dist/tsup/chunk-765F7ILI.cjs.map +1 -0
- package/dist/tsup/{chunk-DLPIL3VC.js → chunk-7DCESQ4O.js} +2 -2
- package/dist/tsup/{chunk-R7OP5N25.js → chunk-AZI2T6UF.js} +53 -9
- package/dist/tsup/chunk-AZI2T6UF.js.map +1 -0
- package/dist/tsup/{chunk-A44TWAS5.cjs → chunk-GGIW54I2.cjs} +6 -6
- package/dist/tsup/{chunk-A44TWAS5.cjs.map → chunk-GGIW54I2.cjs.map} +1 -1
- package/dist/tsup/{chunk-7OMMIAWP.cjs → chunk-HDCLOVOE.cjs} +17 -12
- package/dist/tsup/chunk-HDCLOVOE.cjs.map +1 -0
- package/dist/tsup/{chunk-2MJYYF2Q.cjs → chunk-I6AVFIVY.cjs} +12 -12
- package/dist/tsup/{chunk-2MJYYF2Q.cjs.map → chunk-I6AVFIVY.cjs.map} +1 -1
- package/dist/tsup/{chunk-WBSPHV5V.js → chunk-JTWD6ZT2.js} +2 -2
- package/dist/tsup/{chunk-4YV6RDZL.cjs → chunk-LXFOO25H.cjs} +722 -359
- package/dist/tsup/chunk-LXFOO25H.cjs.map +1 -0
- package/dist/tsup/{chunk-YR2VY4XS.js → chunk-MIP4PYTD.js} +5 -4
- package/dist/tsup/chunk-MIP4PYTD.js.map +1 -0
- package/dist/tsup/{chunk-KHZ2QSQ4.js → chunk-MT5ES4XD.js} +32 -10
- package/dist/tsup/chunk-MT5ES4XD.js.map +1 -0
- package/dist/tsup/{chunk-U2IXX6DY.cjs → chunk-NLYAKGML.cjs} +5 -6
- package/dist/tsup/chunk-NLYAKGML.cjs.map +1 -0
- package/dist/tsup/{chunk-FZP2IBIX.js → chunk-NOXYAPM2.js} +603 -240
- package/dist/tsup/chunk-NOXYAPM2.js.map +1 -0
- package/dist/tsup/{chunk-E63WU5PL.js → chunk-NQFIZSTR.js} +5 -6
- package/dist/tsup/chunk-NQFIZSTR.js.map +1 -0
- package/dist/tsup/{chunk-4PSLOAXR.cjs → chunk-O7BIBANW.cjs} +226 -204
- package/dist/tsup/chunk-O7BIBANW.cjs.map +1 -0
- package/dist/tsup/{chunk-VVCL5DXN.js → chunk-OHSP4BUE.js} +97 -44
- package/dist/tsup/{chunk-VVCL5DXN.js.map → chunk-OHSP4BUE.js.map} +1 -1
- package/dist/tsup/{chunk-APHV6WXU.js → chunk-SBUJ3KIM.js} +2 -2
- package/dist/tsup/{chunk-DZZQG7VH.cjs → chunk-WYTLLIJM.cjs} +3 -3
- package/dist/tsup/{chunk-DZZQG7VH.cjs.map → chunk-WYTLLIJM.cjs.map} +1 -1
- package/dist/tsup/{chunk-WRSWUDFA.js → chunk-XO7VX4MN.js} +14 -9
- package/dist/tsup/chunk-XO7VX4MN.js.map +1 -0
- package/dist/tsup/client/mod.cjs +9 -9
- package/dist/tsup/client/mod.d.cts +2 -2
- package/dist/tsup/client/mod.d.ts +2 -2
- package/dist/tsup/client/mod.js +8 -8
- package/dist/tsup/common/log.cjs +3 -3
- package/dist/tsup/common/log.js +2 -2
- package/dist/tsup/common/websocket.cjs +4 -4
- package/dist/tsup/common/websocket.js +3 -3
- package/dist/tsup/{conn-CEh3WKbA.d.cts → conn-CT_8ZBT_.d.cts} +204 -199
- package/dist/tsup/{conn-Bt8rkUzm.d.ts → conn-d5F0M95s.d.ts} +204 -199
- package/dist/tsup/driver-helpers/mod.cjs +5 -5
- package/dist/tsup/driver-helpers/mod.cjs.map +1 -1
- package/dist/tsup/driver-helpers/mod.d.cts +1 -1
- package/dist/tsup/driver-helpers/mod.d.ts +1 -1
- package/dist/tsup/driver-helpers/mod.js +6 -6
- package/dist/tsup/driver-test-suite/mod.cjs +117 -103
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/driver-test-suite/mod.d.cts +3 -2
- package/dist/tsup/driver-test-suite/mod.d.ts +3 -2
- package/dist/tsup/driver-test-suite/mod.js +62 -48
- package/dist/tsup/driver-test-suite/mod.js.map +1 -1
- package/dist/tsup/inspector/mod.cjs +6 -6
- package/dist/tsup/inspector/mod.d.cts +6 -6
- package/dist/tsup/inspector/mod.d.ts +6 -6
- package/dist/tsup/inspector/mod.js +5 -5
- package/dist/tsup/mod.cjs +10 -10
- package/dist/tsup/mod.d.cts +8 -39
- package/dist/tsup/mod.d.ts +8 -39
- package/dist/tsup/mod.js +9 -9
- package/dist/tsup/test/mod.cjs +11 -11
- package/dist/tsup/test/mod.d.cts +1 -1
- package/dist/tsup/test/mod.d.ts +1 -1
- package/dist/tsup/test/mod.js +10 -10
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.d.cts +2 -1
- package/dist/tsup/utils.d.ts +2 -1
- package/dist/tsup/utils.js +1 -1
- package/package.json +4 -5
- package/src/actor/driver.ts +2 -2
- package/src/actor/protocol/serde.ts +75 -3
- package/src/actor/router-endpoints.ts +6 -6
- package/src/actor/router.ts +2 -2
- package/src/client/actor-conn.ts +24 -3
- package/src/client/config.ts +19 -26
- package/src/driver-helpers/mod.ts +4 -1
- package/src/driver-test-suite/mod.ts +66 -44
- package/src/driver-test-suite/utils.ts +4 -1
- package/src/drivers/default.ts +11 -9
- package/src/drivers/engine/actor-driver.ts +42 -39
- package/src/drivers/engine/config.ts +9 -22
- package/src/drivers/engine/mod.ts +9 -8
- package/src/drivers/file-system/global-state.ts +4 -4
- package/src/engine-process/log.ts +5 -0
- package/src/engine-process/mod.ts +316 -0
- package/src/inspector/utils.ts +6 -4
- package/src/manager/driver.ts +2 -2
- package/src/manager/gateway.ts +29 -11
- package/src/manager/router-schema.ts +20 -0
- package/src/manager/router.ts +116 -29
- package/src/registry/mod.ts +168 -113
- package/src/registry/run-config.ts +116 -47
- package/src/registry/serve.ts +3 -1
- package/src/serde.ts +3 -3
- package/src/test/config.ts +2 -2
- package/src/test/mod.ts +6 -3
- package/src/utils.ts +2 -0
- package/dist/tsup/chunk-4PSLOAXR.cjs.map +0 -1
- package/dist/tsup/chunk-4YV6RDZL.cjs.map +0 -1
- package/dist/tsup/chunk-7OMMIAWP.cjs.map +0 -1
- package/dist/tsup/chunk-E63WU5PL.js.map +0 -1
- package/dist/tsup/chunk-FZP2IBIX.js.map +0 -1
- package/dist/tsup/chunk-KHZ2QSQ4.js.map +0 -1
- package/dist/tsup/chunk-QGRYH6TU.cjs.map +0 -1
- package/dist/tsup/chunk-R7OP5N25.js.map +0 -1
- package/dist/tsup/chunk-SDXTJDDR.cjs.map +0 -1
- package/dist/tsup/chunk-SOC4HWCG.cjs.map +0 -1
- package/dist/tsup/chunk-U2IXX6DY.cjs.map +0 -1
- package/dist/tsup/chunk-WRSWUDFA.js.map +0 -1
- package/dist/tsup/chunk-YR2VY4XS.js.map +0 -1
- /package/dist/tsup/{chunk-F2YZNUPU.js.map → chunk-3JUN3IEH.js.map} +0 -0
- /package/dist/tsup/{chunk-DLPIL3VC.js.map → chunk-7DCESQ4O.js.map} +0 -0
- /package/dist/tsup/{chunk-WBSPHV5V.js.map → chunk-JTWD6ZT2.js.map} +0 -0
- /package/dist/tsup/{chunk-APHV6WXU.js.map → chunk-SBUJ3KIM.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SSEStreamingApi } from 'hono/streaming';
|
|
2
2
|
import { WSContext } from 'hono/ws';
|
|
3
|
-
import {
|
|
3
|
+
import { GetUpgradeWebSocket, promiseWithResolvers } from './utils.cjs';
|
|
4
4
|
import z$1, { z } from 'zod';
|
|
5
5
|
import { Logger } from 'pino';
|
|
6
6
|
import * as hono from 'hono';
|
|
@@ -138,135 +138,6 @@ type RegistryConfigInput<A extends RegistryActors> = Omit<z.input<typeof Registr
|
|
|
138
138
|
use: A;
|
|
139
139
|
};
|
|
140
140
|
|
|
141
|
-
type GetUpgradeWebSocket = () => UpgradeWebSocket;
|
|
142
|
-
declare const ClientConfigSchema: z$1.ZodObject<{
|
|
143
|
-
/** Configure serving the API */
|
|
144
|
-
api: z$1.ZodDefault<z$1.ZodObject<{
|
|
145
|
-
host: z$1.ZodDefault<z$1.ZodString>;
|
|
146
|
-
port: z$1.ZodDefault<z$1.ZodNumber>;
|
|
147
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
148
|
-
host: string;
|
|
149
|
-
port: number;
|
|
150
|
-
}, {
|
|
151
|
-
host?: string | undefined;
|
|
152
|
-
port?: number | undefined;
|
|
153
|
-
}>>;
|
|
154
|
-
token: z$1.ZodEffects<z$1.ZodOptional<z$1.ZodString>, string | undefined, string | undefined>;
|
|
155
|
-
totalSlots: z$1.ZodOptional<z$1.ZodNumber>;
|
|
156
|
-
headers: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
157
|
-
/** Endpoint to connect to the Rivet engine. Can be configured via RIVET_ENGINE env var. */
|
|
158
|
-
endpoint: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
159
|
-
namespace: z$1.ZodDefault<z$1.ZodString>;
|
|
160
|
-
runnerName: z$1.ZodDefault<z$1.ZodString>;
|
|
161
|
-
encoding: z$1.ZodDefault<z$1.ZodEnum<["json", "cbor", "bare"]>>;
|
|
162
|
-
transport: z$1.ZodDefault<z$1.ZodEnum<["websocket", "sse"]>>;
|
|
163
|
-
getUpgradeWebSocket: z$1.ZodOptional<z$1.ZodType<GetUpgradeWebSocket, z$1.ZodTypeDef, GetUpgradeWebSocket>>;
|
|
164
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
165
|
-
encoding: "json" | "cbor" | "bare";
|
|
166
|
-
api: {
|
|
167
|
-
host: string;
|
|
168
|
-
port: number;
|
|
169
|
-
};
|
|
170
|
-
headers: Record<string, string>;
|
|
171
|
-
endpoint: string | null;
|
|
172
|
-
namespace: string;
|
|
173
|
-
runnerName: string;
|
|
174
|
-
transport: "websocket" | "sse";
|
|
175
|
-
token?: string | undefined;
|
|
176
|
-
totalSlots?: number | undefined;
|
|
177
|
-
getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
encoding?: "json" | "cbor" | "bare" | undefined;
|
|
180
|
-
api?: {
|
|
181
|
-
host?: string | undefined;
|
|
182
|
-
port?: number | undefined;
|
|
183
|
-
} | undefined;
|
|
184
|
-
token?: string | undefined;
|
|
185
|
-
totalSlots?: number | undefined;
|
|
186
|
-
headers?: Record<string, string> | undefined;
|
|
187
|
-
endpoint?: string | null | undefined;
|
|
188
|
-
namespace?: string | undefined;
|
|
189
|
-
runnerName?: string | undefined;
|
|
190
|
-
transport?: "websocket" | "sse" | undefined;
|
|
191
|
-
getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
|
|
192
|
-
}>;
|
|
193
|
-
type ClientConfig = z$1.infer<typeof ClientConfigSchema>;
|
|
194
|
-
type ClientConfigInput = z$1.input<typeof ClientConfigSchema>;
|
|
195
|
-
|
|
196
|
-
type ManagerDriverBuilder = (registryConfig: RegistryConfig, runConfig: RunConfig) => ManagerDriver;
|
|
197
|
-
interface ManagerDriver {
|
|
198
|
-
getForId(input: GetForIdInput): Promise<ActorOutput | undefined>;
|
|
199
|
-
getWithKey(input: GetWithKeyInput): Promise<ActorOutput | undefined>;
|
|
200
|
-
getOrCreateWithKey(input: GetOrCreateWithKeyInput): Promise<ActorOutput>;
|
|
201
|
-
createActor(input: CreateInput): Promise<ActorOutput>;
|
|
202
|
-
sendRequest(actorId: string, actorRequest: Request): Promise<Response>;
|
|
203
|
-
openWebSocket(path: string, actorId: string, encoding: Encoding, params: unknown, connId?: string, connToken?: string): Promise<UniversalWebSocket>;
|
|
204
|
-
proxyRequest(c: Context, actorRequest: Request, actorId: string): Promise<Response>;
|
|
205
|
-
proxyWebSocket(c: Context, path: string, actorId: string, encoding: Encoding, params: unknown, connId?: string, connToken?: string): Promise<Response>;
|
|
206
|
-
displayInformation(): ManagerDisplayInformation;
|
|
207
|
-
extraStartupLog?: () => Record<string, unknown>;
|
|
208
|
-
modifyManagerRouter?: (registryConfig: RegistryConfig, router: Hono) => void;
|
|
209
|
-
/**
|
|
210
|
-
* Get or create the inspector access token.
|
|
211
|
-
* @experimental
|
|
212
|
-
* @returns creates or returns existing inspector access token
|
|
213
|
-
*/
|
|
214
|
-
getOrCreateInspectorAccessToken: () => string;
|
|
215
|
-
}
|
|
216
|
-
interface ManagerDisplayInformation {
|
|
217
|
-
name: string;
|
|
218
|
-
properties: Record<string, string>;
|
|
219
|
-
}
|
|
220
|
-
interface GetForIdInput<E extends Env = any> {
|
|
221
|
-
c?: Context | undefined;
|
|
222
|
-
name: string;
|
|
223
|
-
actorId: string;
|
|
224
|
-
}
|
|
225
|
-
interface GetWithKeyInput<E extends Env = any> {
|
|
226
|
-
c?: Context | undefined;
|
|
227
|
-
name: string;
|
|
228
|
-
key: ActorKey;
|
|
229
|
-
}
|
|
230
|
-
interface GetOrCreateWithKeyInput<E extends Env = any> {
|
|
231
|
-
c?: Context | undefined;
|
|
232
|
-
name: string;
|
|
233
|
-
key: ActorKey;
|
|
234
|
-
input?: unknown;
|
|
235
|
-
region?: string;
|
|
236
|
-
}
|
|
237
|
-
interface CreateInput<E extends Env = any> {
|
|
238
|
-
c?: Context | undefined;
|
|
239
|
-
name: string;
|
|
240
|
-
key: ActorKey;
|
|
241
|
-
input?: unknown;
|
|
242
|
-
region?: string;
|
|
243
|
-
}
|
|
244
|
-
interface ActorOutput {
|
|
245
|
-
actorId: string;
|
|
246
|
-
name: string;
|
|
247
|
-
key: ActorKey;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
type ActorDriverBuilder = (registryConfig: RegistryConfig, runConfig: RunConfig, managerDriver: ManagerDriver, inlineClient: AnyClient) => ActorDriver;
|
|
251
|
-
interface ActorDriver {
|
|
252
|
-
loadActor(actorId: string): Promise<AnyActorInstance>;
|
|
253
|
-
getContext(actorId: string): unknown;
|
|
254
|
-
readPersistedData(actorId: string): Promise<Uint8Array | undefined>;
|
|
255
|
-
/** ActorInstance ensure that only one instance of writePersistedData is called in parallel at a time. */
|
|
256
|
-
writePersistedData(actorId: string, data: Uint8Array): Promise<void>;
|
|
257
|
-
/** ActorInstance ensure that only one instance of setAlarm is called in parallel at a time. */
|
|
258
|
-
setAlarm(actor: AnyActorInstance, timestamp: number): Promise<void>;
|
|
259
|
-
/**
|
|
260
|
-
* @experimental
|
|
261
|
-
* This is an experimental API that may change in the future.
|
|
262
|
-
*/
|
|
263
|
-
getDatabase(actorId: string): Promise<unknown | undefined>;
|
|
264
|
-
sleep?(actorId: string): Promise<void>;
|
|
265
|
-
shutdown?(immediate: boolean): Promise<void>;
|
|
266
|
-
/** This handles the serverless start request. This should manage the lifecycle of the runner tied to the request lifecycle. */
|
|
267
|
-
serverlessHandleStart?(c: Context): Promise<Response>;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
141
|
declare const DriverConfigSchema: z.ZodObject<{
|
|
271
142
|
/** Machine-readable name to identify this driver by. */
|
|
272
143
|
name: z.ZodString;
|
|
@@ -283,27 +154,7 @@ declare const DriverConfigSchema: z.ZodObject<{
|
|
|
283
154
|
}>;
|
|
284
155
|
type DriverConfig = z.infer<typeof DriverConfigSchema>;
|
|
285
156
|
/** Base config used for the actor config across all platforms. */
|
|
286
|
-
declare const
|
|
287
|
-
api: z.ZodDefault<z.ZodObject<{
|
|
288
|
-
host: z.ZodDefault<z.ZodString>;
|
|
289
|
-
port: z.ZodDefault<z.ZodNumber>;
|
|
290
|
-
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
host: string;
|
|
292
|
-
port: number;
|
|
293
|
-
}, {
|
|
294
|
-
host?: string | undefined;
|
|
295
|
-
port?: number | undefined;
|
|
296
|
-
}>>;
|
|
297
|
-
token: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
298
|
-
totalSlots: z.ZodOptional<z.ZodNumber>;
|
|
299
|
-
headers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
300
|
-
endpoint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
301
|
-
namespace: z.ZodDefault<z.ZodString>;
|
|
302
|
-
runnerName: z.ZodDefault<z.ZodString>;
|
|
303
|
-
encoding: z.ZodDefault<z.ZodEnum<["json", "cbor", "bare"]>>;
|
|
304
|
-
transport: z.ZodDefault<z.ZodEnum<["websocket", "sse"]>>;
|
|
305
|
-
getUpgradeWebSocket: z.ZodOptional<z.ZodType<GetUpgradeWebSocket, z.ZodTypeDef, GetUpgradeWebSocket>>;
|
|
306
|
-
} & {
|
|
157
|
+
declare const RunnerConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
307
158
|
driver: z.ZodOptional<z.ZodObject<{
|
|
308
159
|
/** Machine-readable name to identify this driver by. */
|
|
309
160
|
name: z.ZodString;
|
|
@@ -318,7 +169,6 @@ declare const RunConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
318
169
|
name: string;
|
|
319
170
|
manager: ManagerDriverBuilder;
|
|
320
171
|
}>>;
|
|
321
|
-
/** CORS configuration for the router. Uses Hono's CORS middleware options. */
|
|
322
172
|
cors: z.ZodOptional<z.ZodType<{
|
|
323
173
|
origin: string | string[] | ((origin: string, c: hono.Context) => Promise<string | undefined | null> | string | undefined | null);
|
|
324
174
|
allowMethods?: string[] | ((origin: string, c: hono.Context) => Promise<string[]> | string[]);
|
|
@@ -394,37 +244,61 @@ declare const RunConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
394
244
|
token?: ((...args: unknown[]) => string) | undefined;
|
|
395
245
|
defaultEndpoint?: string | undefined;
|
|
396
246
|
}>>>;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
247
|
+
disableDefaultServer: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
248
|
+
defaultServerPort: z.ZodDefault<z.ZodNumber>;
|
|
249
|
+
runEngine: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
250
|
+
runEngineVersion: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
251
|
+
overrideServerAddress: z.ZodOptional<z.ZodString>;
|
|
400
252
|
disableActorDriver: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
401
|
-
|
|
402
|
-
* @experimental
|
|
403
|
-
*
|
|
404
|
-
* Base path for the router. This is used to prefix all routes.
|
|
405
|
-
* For example, if the base path is `/api`, then the route `/actors` will be
|
|
406
|
-
* available at `/api/actors`.
|
|
407
|
-
*/
|
|
253
|
+
runnerKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["serverless", "normal"]>>>;
|
|
408
254
|
basePath: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
409
|
-
/**
|
|
410
|
-
* @experimental
|
|
411
|
-
*
|
|
412
|
-
* Disable welcome message.
|
|
413
|
-
* */
|
|
414
255
|
noWelcome: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
415
|
-
/**
|
|
416
|
-
* @experimental
|
|
417
|
-
* */
|
|
418
256
|
logging: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
419
257
|
baseLogger: z.ZodOptional<z.ZodType<Logger, z.ZodTypeDef, Logger>>;
|
|
420
258
|
level: z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "silent"]>>;
|
|
421
259
|
}, "strip", z.ZodTypeAny, {
|
|
422
|
-
level?: "
|
|
260
|
+
level?: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent" | undefined;
|
|
423
261
|
baseLogger?: Logger | undefined;
|
|
424
262
|
}, {
|
|
425
|
-
level?: "
|
|
263
|
+
level?: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent" | undefined;
|
|
426
264
|
baseLogger?: Logger | undefined;
|
|
427
265
|
}>>>;
|
|
266
|
+
autoConfigureServerless: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
267
|
+
url: z.ZodOptional<z.ZodString>;
|
|
268
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
269
|
+
maxRunners: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
minRunners: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
requestLifespan: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
runnersMargin: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
slotsPerRunner: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
headers?: Record<string, string> | undefined;
|
|
276
|
+
url?: string | undefined;
|
|
277
|
+
maxRunners?: number | undefined;
|
|
278
|
+
minRunners?: number | undefined;
|
|
279
|
+
requestLifespan?: number | undefined;
|
|
280
|
+
runnersMargin?: number | undefined;
|
|
281
|
+
slotsPerRunner?: number | undefined;
|
|
282
|
+
}, {
|
|
283
|
+
headers?: Record<string, string> | undefined;
|
|
284
|
+
url?: string | undefined;
|
|
285
|
+
maxRunners?: number | undefined;
|
|
286
|
+
minRunners?: number | undefined;
|
|
287
|
+
requestLifespan?: number | undefined;
|
|
288
|
+
runnersMargin?: number | undefined;
|
|
289
|
+
slotsPerRunner?: number | undefined;
|
|
290
|
+
}>]>>;
|
|
291
|
+
} & {
|
|
292
|
+
runnerKey: z.ZodDefault<z.ZodString>;
|
|
293
|
+
totalSlots: z.ZodDefault<z.ZodNumber>;
|
|
294
|
+
endpoint: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
295
|
+
token: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
296
|
+
namespace: z.ZodDefault<z.ZodString>;
|
|
297
|
+
runnerName: z.ZodDefault<z.ZodString>;
|
|
298
|
+
encoding: z.ZodDefault<z.ZodEnum<["json", "cbor", "bare"]>>;
|
|
299
|
+
transport: z.ZodDefault<z.ZodEnum<["websocket", "sse"]>>;
|
|
300
|
+
headers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
301
|
+
getUpgradeWebSocket: z.ZodOptional<z.ZodType<GetUpgradeWebSocket, z.ZodTypeDef, GetUpgradeWebSocket>>;
|
|
428
302
|
}, "strip", z.ZodTypeAny, {
|
|
429
303
|
encoding: "json" | "cbor" | "bare";
|
|
430
304
|
inspector: {
|
|
@@ -443,22 +317,23 @@ declare const RunConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
443
317
|
token: (...args: unknown[]) => string;
|
|
444
318
|
defaultEndpoint?: string | undefined;
|
|
445
319
|
};
|
|
446
|
-
api: {
|
|
447
|
-
host: string;
|
|
448
|
-
port: number;
|
|
449
|
-
};
|
|
450
|
-
headers: Record<string, string>;
|
|
451
|
-
endpoint: string | null;
|
|
452
320
|
namespace: string;
|
|
453
321
|
runnerName: string;
|
|
454
322
|
transport: "websocket" | "sse";
|
|
323
|
+
headers: Record<string, string>;
|
|
324
|
+
runnerKey: string;
|
|
325
|
+
totalSlots: number;
|
|
455
326
|
maxIncomingMessageSize: number;
|
|
456
|
-
|
|
327
|
+
disableDefaultServer: boolean;
|
|
328
|
+
defaultServerPort: number;
|
|
329
|
+
runEngine: boolean;
|
|
330
|
+
runEngineVersion: string;
|
|
457
331
|
disableActorDriver: boolean;
|
|
332
|
+
runnerKind: "serverless" | "normal";
|
|
458
333
|
basePath: string;
|
|
459
334
|
noWelcome: boolean;
|
|
460
335
|
logging: {
|
|
461
|
-
level?: "
|
|
336
|
+
level?: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent" | undefined;
|
|
462
337
|
baseLogger?: Logger | undefined;
|
|
463
338
|
};
|
|
464
339
|
driver?: {
|
|
@@ -474,9 +349,19 @@ declare const RunConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
474
349
|
credentials?: boolean;
|
|
475
350
|
exposeHeaders?: string[];
|
|
476
351
|
} | undefined;
|
|
352
|
+
endpoint?: string | undefined;
|
|
477
353
|
token?: string | undefined;
|
|
478
|
-
totalSlots?: number | undefined;
|
|
479
354
|
getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
|
|
355
|
+
overrideServerAddress?: string | undefined;
|
|
356
|
+
autoConfigureServerless?: boolean | {
|
|
357
|
+
headers?: Record<string, string> | undefined;
|
|
358
|
+
url?: string | undefined;
|
|
359
|
+
maxRunners?: number | undefined;
|
|
360
|
+
minRunners?: number | undefined;
|
|
361
|
+
requestLifespan?: number | undefined;
|
|
362
|
+
runnersMargin?: number | undefined;
|
|
363
|
+
slotsPerRunner?: number | undefined;
|
|
364
|
+
} | undefined;
|
|
480
365
|
}, {
|
|
481
366
|
encoding?: "json" | "cbor" | "bare" | undefined;
|
|
482
367
|
driver?: {
|
|
@@ -508,31 +393,117 @@ declare const RunConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
508
393
|
credentials?: boolean;
|
|
509
394
|
exposeHeaders?: string[];
|
|
510
395
|
} | undefined;
|
|
511
|
-
|
|
512
|
-
host?: string | undefined;
|
|
513
|
-
port?: number | undefined;
|
|
514
|
-
} | undefined;
|
|
396
|
+
endpoint?: string | undefined;
|
|
515
397
|
token?: string | undefined;
|
|
516
|
-
totalSlots?: number | undefined;
|
|
517
|
-
headers?: Record<string, string> | undefined;
|
|
518
|
-
endpoint?: string | null | undefined;
|
|
519
398
|
namespace?: string | undefined;
|
|
520
399
|
runnerName?: string | undefined;
|
|
521
400
|
transport?: "websocket" | "sse" | undefined;
|
|
401
|
+
headers?: Record<string, string> | undefined;
|
|
522
402
|
getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
|
|
403
|
+
runnerKey?: string | undefined;
|
|
404
|
+
totalSlots?: number | undefined;
|
|
523
405
|
maxIncomingMessageSize?: number | undefined;
|
|
524
|
-
|
|
406
|
+
disableDefaultServer?: boolean | undefined;
|
|
407
|
+
defaultServerPort?: number | undefined;
|
|
408
|
+
runEngine?: boolean | undefined;
|
|
409
|
+
runEngineVersion?: string | undefined;
|
|
410
|
+
overrideServerAddress?: string | undefined;
|
|
525
411
|
disableActorDriver?: boolean | undefined;
|
|
412
|
+
runnerKind?: "serverless" | "normal" | undefined;
|
|
526
413
|
basePath?: string | undefined;
|
|
527
414
|
noWelcome?: boolean | undefined;
|
|
528
415
|
logging?: {
|
|
529
|
-
level?: "
|
|
416
|
+
level?: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent" | undefined;
|
|
530
417
|
baseLogger?: Logger | undefined;
|
|
531
418
|
} | undefined;
|
|
419
|
+
autoConfigureServerless?: boolean | {
|
|
420
|
+
headers?: Record<string, string> | undefined;
|
|
421
|
+
url?: string | undefined;
|
|
422
|
+
maxRunners?: number | undefined;
|
|
423
|
+
minRunners?: number | undefined;
|
|
424
|
+
requestLifespan?: number | undefined;
|
|
425
|
+
runnersMargin?: number | undefined;
|
|
426
|
+
slotsPerRunner?: number | undefined;
|
|
427
|
+
} | undefined;
|
|
532
428
|
}>>;
|
|
533
|
-
type
|
|
534
|
-
type
|
|
429
|
+
type RunnerConfig = z.infer<typeof RunnerConfigSchema>;
|
|
430
|
+
type RunnerConfigInput = z.input<typeof RunnerConfigSchema>;
|
|
535
431
|
|
|
432
|
+
type ManagerDriverBuilder = (registryConfig: RegistryConfig, runConfig: RunnerConfig) => ManagerDriver;
|
|
433
|
+
interface ManagerDriver {
|
|
434
|
+
getForId(input: GetForIdInput): Promise<ActorOutput | undefined>;
|
|
435
|
+
getWithKey(input: GetWithKeyInput): Promise<ActorOutput | undefined>;
|
|
436
|
+
getOrCreateWithKey(input: GetOrCreateWithKeyInput): Promise<ActorOutput>;
|
|
437
|
+
createActor(input: CreateInput): Promise<ActorOutput>;
|
|
438
|
+
sendRequest(actorId: string, actorRequest: Request): Promise<Response>;
|
|
439
|
+
openWebSocket(path: string, actorId: string, encoding: Encoding, params: unknown, connId?: string, connToken?: string): Promise<UniversalWebSocket>;
|
|
440
|
+
proxyRequest(c: Context, actorRequest: Request, actorId: string): Promise<Response>;
|
|
441
|
+
proxyWebSocket(c: Context, path: string, actorId: string, encoding: Encoding, params: unknown, connId?: string, connToken?: string): Promise<Response>;
|
|
442
|
+
displayInformation(): ManagerDisplayInformation;
|
|
443
|
+
extraStartupLog?: () => Record<string, unknown>;
|
|
444
|
+
modifyManagerRouter?: (registryConfig: RegistryConfig, router: Hono) => void;
|
|
445
|
+
/**
|
|
446
|
+
* Get or create the inspector access token.
|
|
447
|
+
* @experimental
|
|
448
|
+
* @returns creates or returns existing inspector access token
|
|
449
|
+
*/
|
|
450
|
+
getOrCreateInspectorAccessToken: () => string;
|
|
451
|
+
}
|
|
452
|
+
interface ManagerDisplayInformation {
|
|
453
|
+
name: string;
|
|
454
|
+
properties: Record<string, string>;
|
|
455
|
+
}
|
|
456
|
+
interface GetForIdInput<E extends Env = any> {
|
|
457
|
+
c?: Context | undefined;
|
|
458
|
+
name: string;
|
|
459
|
+
actorId: string;
|
|
460
|
+
}
|
|
461
|
+
interface GetWithKeyInput<E extends Env = any> {
|
|
462
|
+
c?: Context | undefined;
|
|
463
|
+
name: string;
|
|
464
|
+
key: ActorKey;
|
|
465
|
+
}
|
|
466
|
+
interface GetOrCreateWithKeyInput<E extends Env = any> {
|
|
467
|
+
c?: Context | undefined;
|
|
468
|
+
name: string;
|
|
469
|
+
key: ActorKey;
|
|
470
|
+
input?: unknown;
|
|
471
|
+
region?: string;
|
|
472
|
+
}
|
|
473
|
+
interface CreateInput<E extends Env = any> {
|
|
474
|
+
c?: Context | undefined;
|
|
475
|
+
name: string;
|
|
476
|
+
key: ActorKey;
|
|
477
|
+
input?: unknown;
|
|
478
|
+
region?: string;
|
|
479
|
+
}
|
|
480
|
+
interface ActorOutput {
|
|
481
|
+
actorId: string;
|
|
482
|
+
name: string;
|
|
483
|
+
key: ActorKey;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
type ActorDriverBuilder = (registryConfig: RegistryConfig, runConfig: RunnerConfig, managerDriver: ManagerDriver, inlineClient: AnyClient) => ActorDriver;
|
|
487
|
+
interface ActorDriver {
|
|
488
|
+
loadActor(actorId: string): Promise<AnyActorInstance>;
|
|
489
|
+
getContext(actorId: string): unknown;
|
|
490
|
+
readPersistedData(actorId: string): Promise<Uint8Array | undefined>;
|
|
491
|
+
/** ActorInstance ensure that only one instance of writePersistedData is called in parallel at a time. */
|
|
492
|
+
writePersistedData(actorId: string, data: Uint8Array): Promise<void>;
|
|
493
|
+
/** ActorInstance ensure that only one instance of setAlarm is called in parallel at a time. */
|
|
494
|
+
setAlarm(actor: AnyActorInstance, timestamp: number): Promise<void>;
|
|
495
|
+
/**
|
|
496
|
+
* @experimental
|
|
497
|
+
* This is an experimental API that may change in the future.
|
|
498
|
+
*/
|
|
499
|
+
getDatabase(actorId: string): Promise<unknown | undefined>;
|
|
500
|
+
sleep?(actorId: string): Promise<void>;
|
|
501
|
+
shutdown?(immediate: boolean): Promise<void>;
|
|
502
|
+
/** This handles the serverless start request. This should manage the lifecycle of the runner tied to the request lifecycle. */
|
|
503
|
+
serverlessHandleStart?(c: Context): Promise<Response>;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
type ServerlessActorDriverBuilder = (updateConfig: (config: RunnerConfig) => void) => ActorDriver;
|
|
536
507
|
interface ServerOutput<A extends Registry<any>> {
|
|
537
508
|
/** Client to communicate with the actors. */
|
|
538
509
|
client: Client<A>;
|
|
@@ -546,8 +517,7 @@ declare class Registry<A extends RegistryActors> {
|
|
|
546
517
|
/**
|
|
547
518
|
* Runs the registry for a server.
|
|
548
519
|
*/
|
|
549
|
-
start(inputConfig?:
|
|
550
|
-
startServerless(inputConfig?: RunConfigInput): ServerOutput<this>;
|
|
520
|
+
start(inputConfig?: RunnerConfigInput): ServerOutput<this>;
|
|
551
521
|
}
|
|
552
522
|
declare function setup<A extends RegistryActors>(input: RegistryConfigInput<A>): Registry<A>;
|
|
553
523
|
|
|
@@ -1066,6 +1036,41 @@ type ActorHandle<AD extends AnyActorDefinition> = Omit<ActorHandleRaw, "connect"
|
|
|
1066
1036
|
resolve(): Promise<string>;
|
|
1067
1037
|
} & ActorDefinitionActions<AD>;
|
|
1068
1038
|
|
|
1039
|
+
declare const ClientConfigSchema: z$1.ZodObject<{
|
|
1040
|
+
/** Endpoint to connect to for Rivet Engine or RivetKit manager API. */
|
|
1041
|
+
endpoint: z$1.ZodEffects<z$1.ZodOptional<z$1.ZodString>, string | undefined, string | undefined>;
|
|
1042
|
+
/** Token to use to authenticate with the API. */
|
|
1043
|
+
token: z$1.ZodEffects<z$1.ZodOptional<z$1.ZodString>, string | undefined, string | undefined>;
|
|
1044
|
+
/** Namespace to connect to. */
|
|
1045
|
+
namespace: z$1.ZodDefault<z$1.ZodString>;
|
|
1046
|
+
/** Name of the runner. This is used to group together runners in to different pools. */
|
|
1047
|
+
runnerName: z$1.ZodDefault<z$1.ZodString>;
|
|
1048
|
+
encoding: z$1.ZodDefault<z$1.ZodEnum<["json", "cbor", "bare"]>>;
|
|
1049
|
+
transport: z$1.ZodDefault<z$1.ZodEnum<["websocket", "sse"]>>;
|
|
1050
|
+
headers: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
|
|
1051
|
+
getUpgradeWebSocket: z$1.ZodOptional<z$1.ZodType<GetUpgradeWebSocket, z$1.ZodTypeDef, GetUpgradeWebSocket>>;
|
|
1052
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1053
|
+
encoding: "json" | "cbor" | "bare";
|
|
1054
|
+
namespace: string;
|
|
1055
|
+
runnerName: string;
|
|
1056
|
+
transport: "websocket" | "sse";
|
|
1057
|
+
headers: Record<string, string>;
|
|
1058
|
+
endpoint?: string | undefined;
|
|
1059
|
+
token?: string | undefined;
|
|
1060
|
+
getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
|
|
1061
|
+
}, {
|
|
1062
|
+
encoding?: "json" | "cbor" | "bare" | undefined;
|
|
1063
|
+
endpoint?: string | undefined;
|
|
1064
|
+
token?: string | undefined;
|
|
1065
|
+
namespace?: string | undefined;
|
|
1066
|
+
runnerName?: string | undefined;
|
|
1067
|
+
transport?: "websocket" | "sse" | undefined;
|
|
1068
|
+
headers?: Record<string, string> | undefined;
|
|
1069
|
+
getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
|
|
1070
|
+
}>;
|
|
1071
|
+
type ClientConfig = z$1.infer<typeof ClientConfigSchema>;
|
|
1072
|
+
type ClientConfigInput = z$1.input<typeof ClientConfigSchema>;
|
|
1073
|
+
|
|
1069
1074
|
/** Extract the actor registry from the registry definition. */
|
|
1070
1075
|
type ExtractActorsFromRegistry<A extends Registry<any>> = A extends Registry<infer Actors> ? Actors : never;
|
|
1071
1076
|
/** Extract the registry definition from the client. */
|
|
@@ -1442,7 +1447,6 @@ declare const ActorConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
1442
1447
|
db?: any;
|
|
1443
1448
|
createVars?: ((...args: unknown[]) => unknown) | undefined;
|
|
1444
1449
|
}, {
|
|
1445
|
-
state?: any;
|
|
1446
1450
|
options?: {
|
|
1447
1451
|
createVarsTimeout?: number | undefined;
|
|
1448
1452
|
createConnStateTimeout?: number | undefined;
|
|
@@ -1456,6 +1460,7 @@ declare const ActorConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
1456
1460
|
noSleep?: boolean | undefined;
|
|
1457
1461
|
sleepTimeout?: number | undefined;
|
|
1458
1462
|
} | undefined;
|
|
1463
|
+
state?: any;
|
|
1459
1464
|
onCreate?: ((...args: unknown[]) => unknown) | undefined;
|
|
1460
1465
|
onStart?: ((...args: unknown[]) => unknown) | undefined;
|
|
1461
1466
|
onStop?: ((...args: unknown[]) => unknown) | undefined;
|
|
@@ -1506,7 +1511,6 @@ declare const ActorConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
1506
1511
|
db?: any;
|
|
1507
1512
|
createVars?: ((...args: unknown[]) => unknown) | undefined;
|
|
1508
1513
|
}, {
|
|
1509
|
-
state?: any;
|
|
1510
1514
|
options?: {
|
|
1511
1515
|
createVarsTimeout?: number | undefined;
|
|
1512
1516
|
createConnStateTimeout?: number | undefined;
|
|
@@ -1520,6 +1524,7 @@ declare const ActorConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
1520
1524
|
noSleep?: boolean | undefined;
|
|
1521
1525
|
sleepTimeout?: number | undefined;
|
|
1522
1526
|
} | undefined;
|
|
1527
|
+
state?: any;
|
|
1523
1528
|
onCreate?: ((...args: unknown[]) => unknown) | undefined;
|
|
1524
1529
|
onStart?: ((...args: unknown[]) => unknown) | undefined;
|
|
1525
1530
|
onStop?: ((...args: unknown[]) => unknown) | undefined;
|
|
@@ -1570,7 +1575,6 @@ declare const ActorConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
1570
1575
|
db?: any;
|
|
1571
1576
|
createVars?: ((...args: unknown[]) => unknown) | undefined;
|
|
1572
1577
|
}, {
|
|
1573
|
-
state?: any;
|
|
1574
1578
|
options?: {
|
|
1575
1579
|
createVarsTimeout?: number | undefined;
|
|
1576
1580
|
createConnStateTimeout?: number | undefined;
|
|
@@ -1584,6 +1588,7 @@ declare const ActorConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
1584
1588
|
noSleep?: boolean | undefined;
|
|
1585
1589
|
sleepTimeout?: number | undefined;
|
|
1586
1590
|
} | undefined;
|
|
1591
|
+
state?: any;
|
|
1587
1592
|
onCreate?: ((...args: unknown[]) => unknown) | undefined;
|
|
1588
1593
|
onStart?: ((...args: unknown[]) => unknown) | undefined;
|
|
1589
1594
|
onStop?: ((...args: unknown[]) => unknown) | undefined;
|
|
@@ -1634,7 +1639,6 @@ declare const ActorConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
1634
1639
|
db?: any;
|
|
1635
1640
|
createVars?: ((...args: unknown[]) => unknown) | undefined;
|
|
1636
1641
|
}, {
|
|
1637
|
-
state?: any;
|
|
1638
1642
|
options?: {
|
|
1639
1643
|
createVarsTimeout?: number | undefined;
|
|
1640
1644
|
createConnStateTimeout?: number | undefined;
|
|
@@ -1648,6 +1652,7 @@ declare const ActorConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObj
|
|
|
1648
1652
|
noSleep?: boolean | undefined;
|
|
1649
1653
|
sleepTimeout?: number | undefined;
|
|
1650
1654
|
} | undefined;
|
|
1655
|
+
state?: any;
|
|
1651
1656
|
onCreate?: ((...args: unknown[]) => unknown) | undefined;
|
|
1652
1657
|
onStart?: ((...args: unknown[]) => unknown) | undefined;
|
|
1653
1658
|
onStop?: ((...args: unknown[]) => unknown) | undefined;
|
|
@@ -2365,4 +2370,4 @@ declare class Conn<S, CP, CS, V, I, DB extends AnyDatabaseProvider> {
|
|
|
2365
2370
|
disconnect(reason?: string): Promise<void>;
|
|
2366
2371
|
}
|
|
2367
2372
|
|
|
2368
|
-
export {
|
|
2373
|
+
export { ActorConnRaw as $, type ActorDriver as A, test as B, type Client as C, type DriverConfig as D, type Encoding as E, type RegistryConfig as F, type RegistryActors as G, type RunnerConfigInput as H, type InitContext as I, RegistryConfigSchema as J, Registry as K, setup as L, type ClientConfigInput as M, ActorClientError as N, type OnConnectOptions as O, ActorError as P, InternalError as Q, type RivetEvent as R, type ServerlessActorDriverBuilder as S, type Transport as T, type UniversalWebSocket as U, MalformedResponseMessage as V, ManagerError as W, type CreateRequest as X, type ActorActionFunction as Y, type ActorConn as Z, type EventUnsubscribe as _, type RivetCloseEvent as a, type ActorHandle as a0, ActorHandleRaw as a1, type ActorAccessor as a2, ClientRaw as a3, type CreateOptions as a4, type ExtractActorsFromRegistry as a5, type ExtractRegistryFromClient as a6, type GetOptions as a7, type GetWithIdOptions as a8, type QueryOptions as a9, DatabaseQuerySchema as aA, type DatabaseQuery as aB, TableSchema as aC, type Table as aD, TablesSchema as aE, type Tables as aF, ColumnSchema as aG, type Column as aH, ColumnsSchema as aI, type Columns as aJ, ForeignKeySchema as aK, type ForeignKey as aL, ForeignKeysSchema as aM, type ForeignKeys as aN, BuildSchema as aO, type Build as aP, BuildsSchema as aQ, type Builds as aR, CreateActorSchema as aS, type CreateActor as aT, type Region as aa, ActorInstance as ab, type ActorOutput as ac, type CreateInput as ad, type GetForIdInput as ae, type GetOrCreateWithKeyInput as af, type GetWithKeyInput as ag, type ManagerDisplayInformation as ah, type ManagerDriver as ai, DriverConfigSchema as aj, RunnerConfigSchema as ak, ActorFeature as al, ActorId as am, ActorLogEntry as an, ActorSchema as ao, type Actor as ap, OperationSchema as aq, type Operation as ar, PatchSchema as as, type Patch as at, ConnectionSchema as au, type Connection as av, RealtimeEventSchema as aw, type RealtimeEvent as ax, RecordedRealtimeEventSchema as ay, type RecordedRealtimeEvent as az, type RivetMessageEvent as b, type RunnerConfig as c, type AnyDatabaseProvider as d, type Actions as e, type ActorConfigInput as f, ActorDefinition as g, generateConnId as h, generateConnToken as i, type AnyClient as j, createClientWithDriver as k, type ActorQuery as l, type ActorKey as m, ActionContext as n, Conn as o, type ConnectionStatus as p, ActorContext as q, type ActionContextOf as r, type ActorContextOf as s, type AnyActorDefinition as t, lookupInRegistry as u, type AnyActorInstance as v, type ActorTypes as w, ActorConfigSchema as x, type AuthIntent as y, type ActorConfig as z };
|