rivetkit 2.3.19 → 2.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/dist/browser/client.d.ts +82 -5
  2. package/dist/browser/client.js +302 -60
  3. package/dist/browser/client.js.map +1 -1
  4. package/dist/browser/inspector/client.js +2 -1
  5. package/dist/browser/inspector/client.js.map +1 -1
  6. package/dist/tsup/actor/errors.cjs.map +1 -1
  7. package/dist/tsup/agent-os/index.cjs +35 -1
  8. package/dist/tsup/agent-os/index.cjs.map +1 -1
  9. package/dist/tsup/agent-os/index.d.cts +71 -4
  10. package/dist/tsup/agent-os/index.d.ts +71 -4
  11. package/dist/tsup/agent-os/index.js +35 -1
  12. package/dist/tsup/agent-os/index.js.map +1 -1
  13. package/dist/tsup/{chunk-X7RMJQGY.js → chunk-2CI2IEVN.js} +2 -2
  14. package/dist/tsup/{chunk-WME6KOXW.js → chunk-5EGLHQJJ.js} +2 -2
  15. package/dist/tsup/{chunk-464WE4RF.js → chunk-5IBUZFLP.js} +2 -2
  16. package/dist/tsup/{chunk-PPEIPCW4.cjs → chunk-6LRPYB4Q.cjs} +4 -4
  17. package/dist/tsup/chunk-6LRPYB4Q.cjs.map +1 -0
  18. package/dist/tsup/{chunk-7BRRGBRY.cjs → chunk-APOANSDG.cjs} +10 -10
  19. package/dist/tsup/chunk-APOANSDG.cjs.map +1 -0
  20. package/dist/tsup/{chunk-G4U5L6AX.cjs → chunk-ARGNQGYG.cjs} +3 -3
  21. package/dist/tsup/chunk-ARGNQGYG.cjs.map +1 -0
  22. package/dist/tsup/{chunk-IJUXBWH4.cjs → chunk-B5SNXPSS.cjs} +448 -199
  23. package/dist/tsup/chunk-B5SNXPSS.cjs.map +1 -0
  24. package/dist/tsup/{chunk-4SC2NSAV.js → chunk-CJXBGTVT.js} +2 -2
  25. package/dist/tsup/{chunk-EB77NZL4.js → chunk-CSOHAAZK.js} +33 -1
  26. package/dist/tsup/chunk-CSOHAAZK.js.map +1 -0
  27. package/dist/tsup/{chunk-Z4RAXFSD.cjs → chunk-GHKQC4PD.cjs} +3 -3
  28. package/dist/tsup/chunk-GHKQC4PD.cjs.map +1 -0
  29. package/dist/tsup/chunk-JX2ITWAV.cjs.map +1 -1
  30. package/dist/tsup/chunk-KVFIONKQ.cjs.map +1 -1
  31. package/dist/tsup/{chunk-RJC5O2SD.cjs → chunk-KWGN2ZBJ.cjs} +3 -2
  32. package/dist/tsup/chunk-KWGN2ZBJ.cjs.map +1 -0
  33. package/dist/tsup/{chunk-OGPFN6BT.cjs → chunk-LWSLKKZ5.cjs} +3 -3
  34. package/dist/tsup/chunk-LWSLKKZ5.cjs.map +1 -0
  35. package/dist/tsup/chunk-MYWZCDML.cjs.map +1 -1
  36. package/dist/tsup/{chunk-7A5EIXJJ.cjs → chunk-NL2EIKK6.cjs} +7 -7
  37. package/dist/tsup/chunk-NL2EIKK6.cjs.map +1 -0
  38. package/dist/tsup/{chunk-EO5UOXXY.cjs → chunk-NWCAIWHL.cjs} +34 -2
  39. package/dist/tsup/chunk-NWCAIWHL.cjs.map +1 -0
  40. package/dist/tsup/{chunk-BKX7UDTA.js → chunk-PYRI75DL.js} +314 -65
  41. package/dist/tsup/chunk-PYRI75DL.js.map +1 -0
  42. package/dist/tsup/{chunk-7HTST3NX.js → chunk-RFN3BG6D.js} +3 -3
  43. package/dist/tsup/chunk-RFN3BG6D.js.map +1 -0
  44. package/dist/tsup/{chunk-DN6MD3KK.js → chunk-RGIZNZYO.js} +3 -2
  45. package/dist/tsup/chunk-RGIZNZYO.js.map +1 -0
  46. package/dist/tsup/{chunk-DK3L22R6.js → chunk-VMMXXVDO.js} +4 -4
  47. package/dist/tsup/client/mod.cjs +5 -5
  48. package/dist/tsup/client/mod.cjs.map +1 -1
  49. package/dist/tsup/client/mod.d.cts +12 -3
  50. package/dist/tsup/client/mod.d.ts +12 -3
  51. package/dist/tsup/client/mod.js +4 -4
  52. package/dist/tsup/common/log.cjs +2 -2
  53. package/dist/tsup/common/log.cjs.map +1 -1
  54. package/dist/tsup/common/log.js +1 -1
  55. package/dist/tsup/common/websocket.cjs +3 -3
  56. package/dist/tsup/common/websocket.cjs.map +1 -1
  57. package/dist/tsup/common/websocket.js +2 -2
  58. package/dist/tsup/{config-DEm0yIVV.d.ts → config-Bc1nnvUl.d.ts} +76 -6
  59. package/dist/tsup/{config-8n2AOhXK.d.cts → config-Do_0guSS.d.cts} +76 -6
  60. package/dist/tsup/{context-DwjOVvlE.d.cts → context-CgNkhjdY.d.cts} +1 -1
  61. package/dist/tsup/{context-DGg2-IOm.d.ts → context-oGQxZDPz.d.ts} +1 -1
  62. package/dist/tsup/db/drizzle.cjs +2 -2
  63. package/dist/tsup/db/drizzle.cjs.map +1 -1
  64. package/dist/tsup/db/drizzle.js +1 -1
  65. package/dist/tsup/db/mod.cjs +3 -3
  66. package/dist/tsup/db/mod.cjs.map +1 -1
  67. package/dist/tsup/db/mod.js +2 -2
  68. package/dist/tsup/dynamic/mod.cjs +2 -2
  69. package/dist/tsup/dynamic/mod.cjs.map +1 -1
  70. package/dist/tsup/dynamic/mod.d.cts +2 -1
  71. package/dist/tsup/dynamic/mod.d.ts +2 -1
  72. package/dist/tsup/dynamic/mod.js +1 -1
  73. package/dist/tsup/inspector/mod.cjs +5 -5
  74. package/dist/tsup/inspector/mod.cjs.map +1 -1
  75. package/dist/tsup/inspector/mod.js +4 -4
  76. package/dist/tsup/inspector/workflow.cjs +4 -4
  77. package/dist/tsup/inspector/workflow.cjs.map +1 -1
  78. package/dist/tsup/inspector/workflow.js +3 -3
  79. package/dist/tsup/inspector-tab/mod.cjs +2 -2
  80. package/dist/tsup/inspector-tab/mod.cjs.map +1 -1
  81. package/dist/tsup/inspector-tab/mod.d.cts +3 -2
  82. package/dist/tsup/inspector-tab/mod.d.ts +3 -2
  83. package/dist/tsup/inspector-tab/mod.js +1 -1
  84. package/dist/tsup/mod.cjs +140 -136
  85. package/dist/tsup/mod.cjs.map +1 -1
  86. package/dist/tsup/mod.d.cts +4 -3
  87. package/dist/tsup/mod.d.ts +4 -3
  88. package/dist/tsup/mod.js +44 -40
  89. package/dist/tsup/mod.js.map +1 -1
  90. package/dist/tsup/test/mod.cjs +6 -6
  91. package/dist/tsup/test/mod.cjs.map +1 -1
  92. package/dist/tsup/test/mod.d.cts +2 -1
  93. package/dist/tsup/test/mod.d.ts +2 -1
  94. package/dist/tsup/test/mod.js +4 -4
  95. package/dist/tsup/unstable/migrations.cjs.map +1 -1
  96. package/dist/tsup/utils.cjs +2 -2
  97. package/dist/tsup/utils.cjs.map +1 -1
  98. package/dist/tsup/utils.js +1 -1
  99. package/dist/tsup/workflow/mod.cjs +10 -10
  100. package/dist/tsup/workflow/mod.cjs.map +1 -1
  101. package/dist/tsup/workflow/mod.d.cts +4 -3
  102. package/dist/tsup/workflow/mod.d.ts +4 -3
  103. package/dist/tsup/workflow/mod.js +5 -5
  104. package/package.json +10 -9
  105. package/src/actor/actions.ts +36 -0
  106. package/src/actor/config.ts +27 -0
  107. package/src/actor/definition.ts +6 -1
  108. package/src/actor/mod.ts +5 -0
  109. package/src/actor/tracing.ts +28 -0
  110. package/src/client/actor-conn.ts +34 -1
  111. package/src/client/actor-handle.ts +29 -1
  112. package/src/client/auth.ts +37 -0
  113. package/src/client/client.ts +10 -2
  114. package/src/client/config.ts +12 -1
  115. package/src/client/mod.ts +9 -0
  116. package/src/client/token-provider.test.ts +86 -0
  117. package/src/client/token-provider.ts +93 -0
  118. package/src/client/utils.ts +1 -0
  119. package/src/engine-client/actor-websocket-client.ts +2 -1
  120. package/src/engine-client/api-endpoints.ts +28 -0
  121. package/src/engine-client/driver.ts +4 -0
  122. package/src/engine-client/mod.ts +201 -64
  123. package/src/registry/config/envoy.ts +1 -17
  124. package/src/registry/config/index.test.ts +2 -2
  125. package/src/registry/config/index.ts +7 -2
  126. package/src/registry/index.ts +28 -0
  127. package/src/registry/native.ts +18 -0
  128. package/src/registry/runtime.ts +8 -0
  129. package/dist/tsup/chunk-7A5EIXJJ.cjs.map +0 -1
  130. package/dist/tsup/chunk-7BRRGBRY.cjs.map +0 -1
  131. package/dist/tsup/chunk-7HTST3NX.js.map +0 -1
  132. package/dist/tsup/chunk-BKX7UDTA.js.map +0 -1
  133. package/dist/tsup/chunk-DN6MD3KK.js.map +0 -1
  134. package/dist/tsup/chunk-EB77NZL4.js.map +0 -1
  135. package/dist/tsup/chunk-EO5UOXXY.cjs.map +0 -1
  136. package/dist/tsup/chunk-G4U5L6AX.cjs.map +0 -1
  137. package/dist/tsup/chunk-IJUXBWH4.cjs.map +0 -1
  138. package/dist/tsup/chunk-OGPFN6BT.cjs.map +0 -1
  139. package/dist/tsup/chunk-PPEIPCW4.cjs.map +0 -1
  140. package/dist/tsup/chunk-RJC5O2SD.cjs.map +0 -1
  141. package/dist/tsup/chunk-Z4RAXFSD.cjs.map +0 -1
  142. /package/dist/tsup/{chunk-X7RMJQGY.js.map → chunk-2CI2IEVN.js.map} +0 -0
  143. /package/dist/tsup/{chunk-WME6KOXW.js.map → chunk-5EGLHQJJ.js.map} +0 -0
  144. /package/dist/tsup/{chunk-464WE4RF.js.map → chunk-5IBUZFLP.js.map} +0 -0
  145. /package/dist/tsup/{chunk-4SC2NSAV.js.map → chunk-CJXBGTVT.js.map} +0 -0
  146. /package/dist/tsup/{chunk-DK3L22R6.js.map → chunk-VMMXXVDO.js.map} +0 -0
@@ -1,6 +1,7 @@
1
1
  import * as _rivetkit_rivetkit_wasm from '@rivetkit/rivetkit-wasm';
2
2
  import { z as z$2 } from 'zod';
3
3
  import z$1, { z } from 'zod/v4';
4
+ import { Rivet } from '@rivetkit/engine-api-full';
4
5
  import { Context, Handler, Hono } from 'hono';
5
6
  import { UniversalWebSocket } from '@rivetkit/virtual-websocket';
6
7
  import { StandardSchemaV1 } from '@standard-schema/spec';
@@ -176,6 +177,26 @@ type RawAccess = {
176
177
  close: () => Promise<void>;
177
178
  };
178
179
 
180
+ /** A namespace-scoped Engine grant. The caller must provide every grant explicitly. */
181
+ type TokenGrant = Rivet.AuthTokenGrant;
182
+ /** Options for `client.auth.issueToken()`. `expiresIn` is in seconds. */
183
+ type IssueTokenOptions = Pick<Rivet.AuthTokenCreateRequest, "subject" | "grants"> & {
184
+ expiresIn?: Rivet.AuthTokenCreateRequest["duration"];
185
+ };
186
+ /** Token timestamps are Unix milliseconds. */
187
+ interface IssuedToken {
188
+ token: Rivet.AuthTokenCreateResponse["token"];
189
+ issuedAt: Rivet.AuthTokenCreateResponse["issuedTs"];
190
+ expiresAt: Rivet.AuthTokenCreateResponse["expiresTs"];
191
+ }
192
+ /** Resources that can be scoped to a single actor ID. */
193
+ type ActorTokenResource = Extract<Rivet.AuthTokenGrant["resource"], "actor_gateway" | "actor" | "actor_kv">;
194
+ type ActorTokenPermissions = Partial<Record<ActorTokenResource, Rivet.AuthTokenGrant["operations"]>>;
195
+ /** Options for `actor.issueToken()`. Omit permissions for gateway read access only. */
196
+ type ActorIssueTokenOptions = Pick<IssueTokenOptions, "subject" | "expiresIn"> & {
197
+ permissions?: ActorTokenPermissions;
198
+ };
199
+
179
200
  declare const EncodingSchema: z.ZodEnum<{
180
201
  json: "json";
181
202
  cbor: "cbor";
@@ -339,6 +360,29 @@ declare class UserError extends RivetError {
339
360
  constructor(message: string, options?: UserErrorOptions);
340
361
  }
341
362
 
363
+ /** Sample rates keyed by action name, nested like the actor's action groups. */
364
+ interface ActionSampleRates {
365
+ readonly [name: string]: number | ActionSampleRates;
366
+ }
367
+ /**
368
+ * {@link ActionSampleRates} limited to the actions of one actor, so a rate for
369
+ * an action that does not exist is a compile error.
370
+ */
371
+ type ActionTraceSamplers<TActions> = {
372
+ readonly [K in keyof TActions]?: TActions[K] extends (...args: never[]) => unknown ? number : ActionTraceSamplers<TActions[K]>;
373
+ };
374
+ /** Trace sampling for one actor definition. */
375
+ interface ActorTracingOptions<TActions> {
376
+ /**
377
+ * Share of this actor's invocations that are recorded, from 0 to 1. A rate
378
+ * lowers what is recorded and never raises it, so an invocation inside a
379
+ * trace the caller did not record is not recorded at any rate.
380
+ */
381
+ readonly sampler?: number;
382
+ /** Rates that replace `sampler` for single actions. */
383
+ readonly actions?: ActionTraceSamplers<TActions>;
384
+ }
385
+
342
386
  type UpgradeWebSocket = (createEvents: (c: Context) => any) => Handler;
343
387
  type GetUpgradeWebSocket = () => UpgradeWebSocket;
344
388
 
@@ -349,6 +393,7 @@ interface GatewayRequestOptions {
349
393
  skipReadyWait?: boolean;
350
394
  }
351
395
  interface EngineControlClient {
396
+ issueToken(options: IssueTokenOptions): Promise<IssuedToken>;
352
397
  getForId(input: GetForIdInput): Promise<ActorOutput | undefined>;
353
398
  getWithKey(input: GetWithKeyInput): Promise<ActorOutput | undefined>;
354
399
  getOrCreateWithKey(input: GetOrCreateWithKeyInput): Promise<ActorOutput>;
@@ -356,6 +401,8 @@ interface EngineControlClient {
356
401
  listActors(input: ListActorsInput): Promise<ActorOutput[]>;
357
402
  sendRequest(target: GatewayTarget, actorRequest: Request, options?: GatewayRequestOptions): Promise<Response>;
358
403
  openWebSocket(path: string, target: GatewayTarget, encoding: Encoding, params: unknown, options?: GatewayRequestOptions): Promise<UniversalWebSocket>;
404
+ /** Refresh a credential rejected during this WebSocket handshake, if supported. */
405
+ refreshAuthToken?(ws: UniversalWebSocket): Promise<boolean>;
359
406
  proxyRequest(c: Context, actorRequest: Request, actorId: string): Promise<Response>;
360
407
  proxyWebSocket(c: Context, path: string, actorId: string, encoding: Encoding, params: unknown): Promise<Response>;
361
408
  buildGatewayUrl(target: GatewayTarget, options?: GatewayRequestOptions): Promise<string>;
@@ -638,12 +685,19 @@ interface RuntimeSqlBatchStatement {
638
685
  interface RuntimeSqlRunResult {
639
686
  changes: number;
640
687
  }
688
+ /** Sample rates for the traces an actor starts, in the shape core takes. */
689
+ interface RuntimeActorTracingConfig {
690
+ sampler?: number;
691
+ /** Keyed by flattened, dot-separated action name. */
692
+ actions?: Record<string, number>;
693
+ }
641
694
  interface RuntimeActorConfig {
642
695
  name?: string;
643
696
  icon?: string;
644
697
  hasDatabase?: boolean;
645
698
  remoteSqlite?: boolean;
646
699
  sqliteProfiling?: SqliteProfilingOptions;
700
+ tracing?: RuntimeActorTracingConfig;
647
701
  enableActorRuntimeSocket?: boolean;
648
702
  hasState?: boolean;
649
703
  canHibernateWebsocket?: boolean;
@@ -1226,6 +1280,8 @@ declare class ActorHandleRaw {
1226
1280
  * Resolves the actor to get its unique actor ID.
1227
1281
  */
1228
1282
  resolve(): Promise<string>;
1283
+ /** Issue a token scoped to this actor. Defaults to actor gateway read access. */
1284
+ issueToken(options?: ActorIssueTokenOptions): Promise<IssuedToken>;
1229
1285
  /**
1230
1286
  * Returns the raw URL for routing traffic to the actor.
1231
1287
  */
@@ -1251,11 +1307,17 @@ declare class ActorHandleRaw {
1251
1307
  type ActorHandle<AD extends AnyActorDefinition> = Omit<ActorHandleRaw, "connect" | "send"> & {
1252
1308
  connect(params?: unknown, options?: ActorConnectOptions): ActorConn<AD>;
1253
1309
  resolve(): Promise<string>;
1254
- } & ActorDefinitionQueueSend<AD> & ActorDefinitionActions<AD>;
1310
+ } & ActorDefinitionQueueSend<AD> & Omit<ActorDefinitionActions<AD>, keyof ActorHandleRaw>;
1311
+
1312
+ /** Called when RivetKit needs a credential. Keep issuer secrets on your backend. */
1313
+ type GetToken = (options: {
1314
+ forceRefresh: boolean;
1315
+ }) => Promise<string>;
1255
1316
 
1256
1317
  declare const ClientConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
1257
1318
  endpoint: z$1.ZodPipe<z$1.ZodOptional<z$1.ZodString>, z$1.ZodTransform<string, string | undefined>>;
1258
1319
  token: z$1.ZodPipe<z$1.ZodOptional<z$1.ZodString>, z$1.ZodTransform<string | undefined, string | undefined>>;
1320
+ getToken: z$1.ZodOptional<z$1.ZodCustom<GetToken, GetToken>>;
1259
1321
  namespace: z$1.ZodPipe<z$1.ZodOptional<z$1.ZodString>, z$1.ZodTransform<string | undefined, string | undefined>>;
1260
1322
  poolName: z$1.ZodDefault<z$1.ZodString>;
1261
1323
  encoding: z$1.ZodDefault<z$1.ZodEnum<{
@@ -1284,6 +1346,7 @@ declare const ClientConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
1284
1346
  disableMetadataLookup: boolean;
1285
1347
  maxInputSize: number;
1286
1348
  devtools: boolean;
1349
+ getToken?: GetToken | undefined;
1287
1350
  getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
1288
1351
  }, {
1289
1352
  endpoint: string;
@@ -1298,6 +1361,7 @@ declare const ClientConfigSchema: z$1.ZodPipe<z$1.ZodObject<{
1298
1361
  disableMetadataLookup: boolean;
1299
1362
  maxInputSize: number;
1300
1363
  devtools: boolean;
1364
+ getToken?: GetToken | undefined;
1301
1365
  getUpgradeWebSocket?: GetUpgradeWebSocket | undefined;
1302
1366
  }>>;
1303
1367
  type ClientConfigInput = z$1.input<typeof ClientConfigSchema>;
@@ -1462,6 +1526,10 @@ interface ActorClientRuntimeOptions {
1462
1526
  */
1463
1527
  declare class ClientRaw {
1464
1528
  #private;
1529
+ /** Issue namespace-scoped tokens with an explicit grant list. */
1530
+ readonly auth: {
1531
+ issueToken(options: IssueTokenOptions): Promise<IssuedToken>;
1532
+ };
1465
1533
  [ACTOR_CONNS_SYMBOL]: Set<ActorConnRaw>;
1466
1534
  /**
1467
1535
  * Creates an instance of Client.
@@ -1522,9 +1590,9 @@ declare class ClientRaw {
1522
1590
  *
1523
1591
  * @template A The actor registry type.
1524
1592
  */
1525
- type Client<A extends Registry<any>> = ClientRaw & {
1593
+ type Client<A extends Registry<any>> = ClientRaw & Omit<{
1526
1594
  [K in keyof ExtractActorsFromRegistry<A>]: ActorAccessor<ExtractActorsFromRegistry<A>[K]>;
1527
- };
1595
+ }, keyof ClientRaw>;
1528
1596
 
1529
1597
  /** @experimental State exposed by a durable workflow run handler to the Inspector. */
1530
1598
  type WorkflowState = "pending" | "running" | "sleeping" | "failed" | "completed" | "cancelled" | "rolling_back";
@@ -1874,6 +1942,10 @@ declare const ActorConfigSchema: z.ZodObject<{
1874
1942
  onWebSocket: z.ZodOptional<z.ZodCustom<(...args: unknown[]) => unknown, (...args: unknown[]) => unknown>>;
1875
1943
  actions: z.ZodDefault<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>;
1876
1944
  actionInputSchemas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1945
+ tracing: z.ZodOptional<z.ZodObject<{
1946
+ sampler: z.ZodOptional<z.ZodNumber>;
1947
+ actions: z.ZodOptional<z.ZodType<ActionSampleRates, unknown, z.core.$ZodTypeInternals<ActionSampleRates, unknown>>>;
1948
+ }, z.core.$strict>>;
1877
1949
  connParamsSchema: z.ZodOptional<z.ZodAny>;
1878
1950
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1879
1951
  queues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -2114,6 +2186,11 @@ interface BaseActorConfig<TState, TConnParams, TConnState, TVars, TInput, TDatab
2114
2186
  * May mirror nested action groups or use dot-separated low-level action names.
2115
2187
  */
2116
2188
  actionInputSchemas?: ActionInputSchemas;
2189
+ /**
2190
+ * How much of this actor's work is recorded in traces. Defaults to the
2191
+ * process sampler from `OTEL_TRACES_SAMPLER`.
2192
+ */
2193
+ tracing?: ActorTracingOptions<TActions>;
2117
2194
  /**
2118
2195
  * Optional schema for validating connection params in native runtimes.
2119
2196
  */
@@ -2245,7 +2322,7 @@ declare const RegistryConfigSchema: z$2.ZodPipe<z$2.ZodObject<{
2245
2322
  endpoint: string | undefined;
2246
2323
  startServices: boolean;
2247
2324
  namespace: string;
2248
- token: string;
2325
+ token: string | undefined;
2249
2326
  publicEndpoint: string | undefined;
2250
2327
  publicNamespace: string | undefined;
2251
2328
  publicToken: string | undefined;
@@ -2502,4 +2579,4 @@ declare class Registry<A extends RegistryActors> {
2502
2579
  */
2503
2580
  declare function createClient<A extends Registry<any>>(endpointOrConfig?: string | ClientConfigInput): Client<A>;
2504
2581
 
2505
- export { type ActorAccessor, type ActorActionFunction, type ActorActionOptions, ActorClientError, type ActorConn, ActorConnDisposed, ActorConnRaw, type ActorConnStatus, type ActorConnectOptions, ActorDefinition, RivetError as ActorError, type ActorGatewayOptions, type ActorHandle, ActorHandleRaw, type AnyActorDefinition, type Client, type ClientConfigInput, ClientRaw, type ConnectionStateCallback, type CreateOptions, type CreateRequest, type Encoding, type EventUnsubscribe, type ExtractActorsFromRegistry, type ExtractRegistryFromClient, type GetOptions, type GetWithIdOptions, MalformedResponseMessage, ManagerError, type QueryOptions, type Region, RivetError, type StatusChangeCallback, UserError, createClient };
2582
+ export { type ActorAccessor, type ActorActionFunction, type ActorActionOptions, ActorClientError, type ActorConn, ActorConnDisposed, ActorConnRaw, type ActorConnStatus, type ActorConnectOptions, ActorDefinition, RivetError as ActorError, type ActorGatewayOptions, type ActorHandle, ActorHandleRaw, type ActorIssueTokenOptions, type ActorTokenPermissions, type ActorTokenResource, type AnyActorDefinition, type Client, type ClientConfigInput, ClientRaw, type ConnectionStateCallback, type CreateOptions, type CreateRequest, type Encoding, type EventUnsubscribe, type ExtractActorsFromRegistry, type ExtractRegistryFromClient, type GetOptions, type GetToken, type GetWithIdOptions, type IssueTokenOptions, type IssuedToken, MalformedResponseMessage, ManagerError, type QueryOptions, type Region, RivetError, type StatusChangeCallback, type TokenGrant, UserError, createClient };