rivetkit 2.3.11-rc.2 → 2.3.11-rc.4

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 (79) hide show
  1. package/dist/browser/client.d.ts +17 -0
  2. package/dist/browser/client.js +20 -9
  3. package/dist/browser/client.js.map +1 -1
  4. package/dist/browser/inspector/client.js +1 -1
  5. package/dist/browser/inspector/client.js.map +1 -1
  6. package/dist/tsup/agent-os/index.cjs +1 -1
  7. package/dist/tsup/agent-os/index.cjs.map +1 -1
  8. package/dist/tsup/agent-os/index.d.cts +16 -0
  9. package/dist/tsup/agent-os/index.d.ts +16 -0
  10. package/dist/tsup/agent-os/index.js +1 -1
  11. package/dist/tsup/agent-os/index.js.map +1 -1
  12. package/dist/tsup/{chunk-3NPCXMJS.cjs → chunk-3BQTLF6T.cjs} +158 -147
  13. package/dist/tsup/chunk-3BQTLF6T.cjs.map +1 -0
  14. package/dist/tsup/{chunk-7TVKYMD3.cjs → chunk-3WCNDXDU.cjs} +4 -4
  15. package/dist/tsup/{chunk-7TVKYMD3.cjs.map → chunk-3WCNDXDU.cjs.map} +1 -1
  16. package/dist/tsup/{chunk-XR2KF2ZA.js → chunk-5KLTIO35.js} +25 -14
  17. package/dist/tsup/chunk-5KLTIO35.js.map +1 -0
  18. package/dist/tsup/{chunk-XWIXH7JF.js → chunk-7N4PSYCJ.js} +2 -2
  19. package/dist/tsup/{chunk-XWIXH7JF.js.map → chunk-7N4PSYCJ.js.map} +1 -1
  20. package/dist/tsup/{chunk-5SHK4JM5.cjs → chunk-DD4HSOMO.cjs} +2 -2
  21. package/dist/tsup/{chunk-5SHK4JM5.cjs.map → chunk-DD4HSOMO.cjs.map} +1 -1
  22. package/dist/tsup/{chunk-NRRWLN6D.cjs → chunk-G66RAENX.cjs} +3 -3
  23. package/dist/tsup/{chunk-NRRWLN6D.cjs.map → chunk-G66RAENX.cjs.map} +1 -1
  24. package/dist/tsup/{chunk-NLAW2MIM.js → chunk-I3OXZILZ.js} +2 -2
  25. package/dist/tsup/{chunk-J4RT6EFK.cjs → chunk-RRVTP46R.cjs} +9 -9
  26. package/dist/tsup/{chunk-J4RT6EFK.cjs.map → chunk-RRVTP46R.cjs.map} +1 -1
  27. package/dist/tsup/{chunk-RVJQMOAA.js → chunk-S26YGW4T.js} +2 -2
  28. package/dist/tsup/{chunk-75K5VACB.js → chunk-TP5MGPLS.js} +3 -3
  29. package/dist/tsup/{chunk-LPGJPAVY.cjs → chunk-VAG7L6N3.cjs} +7 -7
  30. package/dist/tsup/{chunk-LPGJPAVY.cjs.map → chunk-VAG7L6N3.cjs.map} +1 -1
  31. package/dist/tsup/{chunk-KHSNHG4G.js → chunk-ZI6TSSI4.js} +3 -3
  32. package/dist/tsup/client/mod.cjs +5 -5
  33. package/dist/tsup/client/mod.d.cts +2 -2
  34. package/dist/tsup/client/mod.d.ts +2 -2
  35. package/dist/tsup/client/mod.js +4 -4
  36. package/dist/tsup/common/log.cjs +2 -2
  37. package/dist/tsup/common/log.js +1 -1
  38. package/dist/tsup/common/websocket.cjs +3 -3
  39. package/dist/tsup/common/websocket.js +2 -2
  40. package/dist/tsup/{config-BKAMOHez.d.ts → config-CZcjyT5B.d.ts} +17 -0
  41. package/dist/tsup/{config-Caocy3Z9.d.cts → config-rGWrumlO.d.cts} +17 -0
  42. package/dist/tsup/{context-D1_m5x1D.d.cts → context-B8W8E8nW.d.cts} +1 -1
  43. package/dist/tsup/{context-AfCExwbr.d.ts → context-_UrDZhEh.d.ts} +1 -1
  44. package/dist/tsup/db/drizzle.cjs +2 -2
  45. package/dist/tsup/db/drizzle.js +1 -1
  46. package/dist/tsup/db/mod.cjs +2 -2
  47. package/dist/tsup/db/mod.js +1 -1
  48. package/dist/tsup/dynamic/mod.d.cts +1 -1
  49. package/dist/tsup/dynamic/mod.d.ts +1 -1
  50. package/dist/tsup/inspector/mod.cjs +4 -4
  51. package/dist/tsup/inspector/mod.js +3 -3
  52. package/dist/tsup/inspector-tab/mod.d.cts +2 -2
  53. package/dist/tsup/inspector-tab/mod.d.ts +2 -2
  54. package/dist/tsup/mod.cjs +65 -65
  55. package/dist/tsup/mod.d.cts +3 -3
  56. package/dist/tsup/mod.d.ts +3 -3
  57. package/dist/tsup/mod.js +4 -4
  58. package/dist/tsup/test/mod.cjs +6 -6
  59. package/dist/tsup/test/mod.d.cts +1 -1
  60. package/dist/tsup/test/mod.d.ts +1 -1
  61. package/dist/tsup/test/mod.js +4 -4
  62. package/dist/tsup/utils.cjs +2 -2
  63. package/dist/tsup/utils.js +1 -1
  64. package/dist/tsup/workflow/mod.cjs +6 -6
  65. package/dist/tsup/workflow/mod.d.cts +3 -3
  66. package/dist/tsup/workflow/mod.d.ts +3 -3
  67. package/dist/tsup/workflow/mod.js +3 -3
  68. package/package.json +8 -8
  69. package/src/client/client.ts +11 -0
  70. package/src/client/query.ts +2 -0
  71. package/src/client/resolve-gateway-target.ts +2 -0
  72. package/src/engine-client/driver.ts +4 -0
  73. package/src/engine-client/mod.ts +13 -4
  74. package/dist/tsup/chunk-3NPCXMJS.cjs.map +0 -1
  75. package/dist/tsup/chunk-XR2KF2ZA.js.map +0 -1
  76. /package/dist/tsup/{chunk-NLAW2MIM.js.map → chunk-I3OXZILZ.js.map} +0 -0
  77. /package/dist/tsup/{chunk-RVJQMOAA.js.map → chunk-S26YGW4T.js.map} +0 -0
  78. /package/dist/tsup/{chunk-75K5VACB.js.map → chunk-TP5MGPLS.js.map} +0 -0
  79. /package/dist/tsup/{chunk-KHSNHG4G.js.map → chunk-ZI6TSSI4.js.map} +0 -0
@@ -442,6 +442,7 @@ declare const ActorQuerySchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
442
442
  key: z$1.ZodArray<z$1.ZodString>;
443
443
  input: z$1.ZodOptional<z$1.ZodUnknown>;
444
444
  region: z$1.ZodOptional<z$1.ZodString>;
445
+ poolName: z$1.ZodOptional<z$1.ZodString>;
445
446
  }, z$1.core.$strip>;
446
447
  }, z$1.core.$strip>, z$1.ZodObject<{
447
448
  create: z$1.ZodObject<{
@@ -449,6 +450,7 @@ declare const ActorQuerySchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
449
450
  key: z$1.ZodArray<z$1.ZodString>;
450
451
  input: z$1.ZodOptional<z$1.ZodUnknown>;
451
452
  region: z$1.ZodOptional<z$1.ZodString>;
453
+ poolName: z$1.ZodOptional<z$1.ZodString>;
452
454
  }, z$1.core.$strip>;
453
455
  }, z$1.core.$strip>]>;
454
456
  type ActorQuery = z$1.infer<typeof ActorQuerySchema>;
@@ -544,6 +546,8 @@ interface GetOrCreateWithKeyInput {
544
546
  input?: unknown;
545
547
  region?: string;
546
548
  crashPolicy?: CrashPolicy;
549
+ /** Overrides the client's configured pool name for this actor. */
550
+ poolName?: string;
547
551
  }
548
552
  interface CreateInput {
549
553
  c?: Context | undefined;
@@ -552,6 +556,8 @@ interface CreateInput {
552
556
  input?: unknown;
553
557
  region?: string;
554
558
  crashPolicy?: CrashPolicy;
559
+ /** Overrides the client's configured pool name for this actor. */
560
+ poolName?: string;
555
561
  }
556
562
  interface ListActorsInput {
557
563
  c?: Context | undefined;
@@ -1518,6 +1524,11 @@ interface GetOrCreateOptions extends QueryOptions {
1518
1524
  createInRegion?: string;
1519
1525
  /** Input data to pass to the actor. */
1520
1526
  createWithInput?: unknown;
1527
+ /**
1528
+ * Name of the envoy pool to select for this actor if it is created.
1529
+ * Overrides the client's configured `poolName` for this call.
1530
+ */
1531
+ poolName?: string;
1521
1532
  }
1522
1533
  /**
1523
1534
  * Options for creating a actor.
@@ -1529,6 +1540,11 @@ interface CreateOptions extends QueryOptions {
1529
1540
  region?: string;
1530
1541
  /** Input data to pass to the actor. */
1531
1542
  input?: unknown;
1543
+ /**
1544
+ * Name of the envoy pool to select for this actor.
1545
+ * Overrides the client's configured `poolName` for this call.
1546
+ */
1547
+ poolName?: string;
1532
1548
  }
1533
1549
  declare const ACTOR_CONNS_SYMBOL: unique symbol;
1534
1550
  declare const CREATE_ACTOR_CONN_PROXY: unique symbol;
@@ -442,6 +442,7 @@ declare const ActorQuerySchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
442
442
  key: z$1.ZodArray<z$1.ZodString>;
443
443
  input: z$1.ZodOptional<z$1.ZodUnknown>;
444
444
  region: z$1.ZodOptional<z$1.ZodString>;
445
+ poolName: z$1.ZodOptional<z$1.ZodString>;
445
446
  }, z$1.core.$strip>;
446
447
  }, z$1.core.$strip>, z$1.ZodObject<{
447
448
  create: z$1.ZodObject<{
@@ -449,6 +450,7 @@ declare const ActorQuerySchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
449
450
  key: z$1.ZodArray<z$1.ZodString>;
450
451
  input: z$1.ZodOptional<z$1.ZodUnknown>;
451
452
  region: z$1.ZodOptional<z$1.ZodString>;
453
+ poolName: z$1.ZodOptional<z$1.ZodString>;
452
454
  }, z$1.core.$strip>;
453
455
  }, z$1.core.$strip>]>;
454
456
  type ActorQuery = z$1.infer<typeof ActorQuerySchema>;
@@ -544,6 +546,8 @@ interface GetOrCreateWithKeyInput {
544
546
  input?: unknown;
545
547
  region?: string;
546
548
  crashPolicy?: CrashPolicy;
549
+ /** Overrides the client's configured pool name for this actor. */
550
+ poolName?: string;
547
551
  }
548
552
  interface CreateInput {
549
553
  c?: Context | undefined;
@@ -552,6 +556,8 @@ interface CreateInput {
552
556
  input?: unknown;
553
557
  region?: string;
554
558
  crashPolicy?: CrashPolicy;
559
+ /** Overrides the client's configured pool name for this actor. */
560
+ poolName?: string;
555
561
  }
556
562
  interface ListActorsInput {
557
563
  c?: Context | undefined;
@@ -1518,6 +1524,11 @@ interface GetOrCreateOptions extends QueryOptions {
1518
1524
  createInRegion?: string;
1519
1525
  /** Input data to pass to the actor. */
1520
1526
  createWithInput?: unknown;
1527
+ /**
1528
+ * Name of the envoy pool to select for this actor if it is created.
1529
+ * Overrides the client's configured `poolName` for this call.
1530
+ */
1531
+ poolName?: string;
1521
1532
  }
1522
1533
  /**
1523
1534
  * Options for creating a actor.
@@ -1529,6 +1540,11 @@ interface CreateOptions extends QueryOptions {
1529
1540
  region?: string;
1530
1541
  /** Input data to pass to the actor. */
1531
1542
  input?: unknown;
1543
+ /**
1544
+ * Name of the envoy pool to select for this actor.
1545
+ * Overrides the client's configured `poolName` for this call.
1546
+ */
1547
+ poolName?: string;
1532
1548
  }
1533
1549
  declare const ACTOR_CONNS_SYMBOL: unique symbol;
1534
1550
  declare const CREATE_ACTOR_CONN_PROXY: unique symbol;
@@ -417,7 +417,7 @@ function isRivetErrorCode(error, group, code) {
417
417
  // package.json
418
418
  var package_default = {
419
419
  name: "rivetkit",
420
- version: "2.3.11-rc.2",
420
+ version: "2.3.11-rc.4",
421
421
  description: "Lightweight libraries for building stateful actors on edge platforms",
422
422
  license: "Apache-2.0",
423
423
  keywords: [