@rivetkit/engine-api-full 2.0.37 → 2.0.39

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 (51) hide show
  1. package/dist/browser/cjs/index.js +5 -130
  2. package/dist/browser/cjs/serialization.js +5 -130
  3. package/dist/browser/esm/index.js +5 -130
  4. package/dist/browser/esm/serialization.js +5 -130
  5. package/dist/node/{index.js → cjs/index.js} +5 -130
  6. package/dist/node/{serialization.js → cjs/serialization.js} +5 -147
  7. package/dist/node/esm/core.js +2317 -0
  8. package/dist/node/esm/index.js +4218 -0
  9. package/dist/node/esm/serialization.js +1925 -0
  10. package/package.json +13 -4
  11. package/types/api/types/Actor.d.ts +1 -1
  12. package/types/api/types/RunnerConfigResponse.d.ts +1 -1
  13. package/types/api/types/index.d.ts +0 -17
  14. package/types/serialization/types/Actor.d.ts +1 -2
  15. package/types/serialization/types/RunnerConfigResponse.d.ts +1 -2
  16. package/types/serialization/types/index.d.ts +0 -17
  17. package/types/api/types/ActorError.d.ts +0 -20
  18. package/types/api/types/ActorErrorCrashed.d.ts +0 -11
  19. package/types/api/types/ActorErrorCrashedCrashed.d.ts +0 -9
  20. package/types/api/types/ActorErrorRunnerConnectionLost.d.ts +0 -11
  21. package/types/api/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.d.ts +0 -10
  22. package/types/api/types/ActorErrorRunnerDrainingTimeout.d.ts +0 -11
  23. package/types/api/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.d.ts +0 -10
  24. package/types/api/types/ActorErrorRunnerNoResponse.d.ts +0 -11
  25. package/types/api/types/ActorErrorRunnerNoResponseRunnerNoResponse.d.ts +0 -10
  26. package/types/api/types/ActorErrorRunnerPoolError.d.ts +0 -11
  27. package/types/api/types/RunnerPoolError.d.ts +0 -14
  28. package/types/api/types/RunnerPoolErrorServerlessConnectionError.d.ts +0 -11
  29. package/types/api/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.d.ts +0 -9
  30. package/types/api/types/RunnerPoolErrorServerlessHttpError.d.ts +0 -11
  31. package/types/api/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.d.ts +0 -10
  32. package/types/api/types/RunnerPoolErrorServerlessInvalidPayload.d.ts +0 -11
  33. package/types/api/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.d.ts +0 -9
  34. package/types/serialization/types/ActorError.d.ts +0 -15
  35. package/types/serialization/types/ActorErrorCrashed.d.ts +0 -13
  36. package/types/serialization/types/ActorErrorCrashedCrashed.d.ts +0 -12
  37. package/types/serialization/types/ActorErrorRunnerConnectionLost.d.ts +0 -13
  38. package/types/serialization/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.d.ts +0 -13
  39. package/types/serialization/types/ActorErrorRunnerDrainingTimeout.d.ts +0 -13
  40. package/types/serialization/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.d.ts +0 -13
  41. package/types/serialization/types/ActorErrorRunnerNoResponse.d.ts +0 -13
  42. package/types/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.d.ts +0 -13
  43. package/types/serialization/types/ActorErrorRunnerPoolError.d.ts +0 -13
  44. package/types/serialization/types/RunnerPoolError.d.ts +0 -13
  45. package/types/serialization/types/RunnerPoolErrorServerlessConnectionError.d.ts +0 -13
  46. package/types/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.d.ts +0 -12
  47. package/types/serialization/types/RunnerPoolErrorServerlessHttpError.d.ts +0 -13
  48. package/types/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.d.ts +0 -13
  49. package/types/serialization/types/RunnerPoolErrorServerlessInvalidPayload.d.ts +0 -13
  50. package/types/serialization/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.d.ts +0 -12
  51. /package/dist/node/{core.js → cjs/core.js} +0 -0
@@ -2340,16 +2340,6 @@ function transformAndValidateUnion({
2340
2340
  var serialization_exports = {};
2341
2341
  __export(serialization_exports, {
2342
2342
  Actor: () => Actor,
2343
- ActorError: () => ActorError,
2344
- ActorErrorCrashed: () => ActorErrorCrashed,
2345
- ActorErrorCrashedCrashed: () => ActorErrorCrashedCrashed,
2346
- ActorErrorRunnerConnectionLost: () => ActorErrorRunnerConnectionLost,
2347
- ActorErrorRunnerConnectionLostRunnerConnectionLost: () => ActorErrorRunnerConnectionLostRunnerConnectionLost,
2348
- ActorErrorRunnerDrainingTimeout: () => ActorErrorRunnerDrainingTimeout,
2349
- ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout: () => ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout,
2350
- ActorErrorRunnerNoResponse: () => ActorErrorRunnerNoResponse,
2351
- ActorErrorRunnerNoResponseRunnerNoResponse: () => ActorErrorRunnerNoResponseRunnerNoResponse,
2352
- ActorErrorRunnerPoolError: () => ActorErrorRunnerPoolError,
2353
2343
  ActorName: () => ActorName,
2354
2344
  ActorsCreateRequest: () => ActorsCreateRequest,
2355
2345
  ActorsCreateResponse: () => ActorsCreateResponse,
@@ -2405,13 +2395,6 @@ __export(serialization_exports, {
2405
2395
  RunnerConfigsServerlessMetadataErrorRequestTimedOut: () => RunnerConfigsServerlessMetadataErrorRequestTimedOut,
2406
2396
  RunnerConfigsUpsertRequestBody: () => RunnerConfigsUpsertRequestBody,
2407
2397
  RunnerConfigsUpsertResponse: () => RunnerConfigsUpsertResponse,
2408
- RunnerPoolError: () => RunnerPoolError,
2409
- RunnerPoolErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionError,
2410
- RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError,
2411
- RunnerPoolErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpError,
2412
- RunnerPoolErrorServerlessHttpErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpErrorServerlessHttpError,
2413
- RunnerPoolErrorServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayload,
2414
- RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload,
2415
2398
  RunnersListNamesResponse: () => RunnersListNamesResponse,
2416
2399
  RunnersListResponse: () => RunnersListResponse,
2417
2400
  namespaces: () => namespaces_exports2
@@ -2423,117 +2406,6 @@ var RivetId = schemas_exports.string();
2423
2406
  // src/serialization/types/CrashPolicy.ts
2424
2407
  var CrashPolicy2 = schemas_exports.enum_(["restart", "sleep", "destroy"]);
2425
2408
 
2426
- // src/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts
2427
- var RunnerPoolErrorServerlessHttpErrorServerlessHttpError = schemas_exports.object({
2428
- body: schemas_exports.string(),
2429
- statusCode: schemas_exports.property("status_code", schemas_exports.number())
2430
- });
2431
-
2432
- // src/serialization/types/RunnerPoolErrorServerlessHttpError.ts
2433
- var RunnerPoolErrorServerlessHttpError = schemas_exports.object({
2434
- serverlessHttpError: schemas_exports.property(
2435
- "serverless_http_error",
2436
- RunnerPoolErrorServerlessHttpErrorServerlessHttpError
2437
- )
2438
- });
2439
-
2440
- // src/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts
2441
- var RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError = schemas_exports.object({
2442
- message: schemas_exports.string()
2443
- });
2444
-
2445
- // src/serialization/types/RunnerPoolErrorServerlessConnectionError.ts
2446
- var RunnerPoolErrorServerlessConnectionError = schemas_exports.object({
2447
- serverlessConnectionError: schemas_exports.property(
2448
- "serverless_connection_error",
2449
- RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError
2450
- )
2451
- });
2452
-
2453
- // src/serialization/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.ts
2454
- var RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload = schemas_exports.object({
2455
- message: schemas_exports.string()
2456
- });
2457
-
2458
- // src/serialization/types/RunnerPoolErrorServerlessInvalidPayload.ts
2459
- var RunnerPoolErrorServerlessInvalidPayload = schemas_exports.object({
2460
- serverlessInvalidPayload: schemas_exports.property(
2461
- "serverless_invalid_payload",
2462
- RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload
2463
- )
2464
- });
2465
-
2466
- // src/serialization/types/RunnerPoolError.ts
2467
- var RunnerPoolError = schemas_exports.undiscriminatedUnion([
2468
- RunnerPoolErrorServerlessHttpError,
2469
- schemas_exports.stringLiteral("serverless_stream_ended_early"),
2470
- RunnerPoolErrorServerlessConnectionError,
2471
- schemas_exports.stringLiteral("serverless_invalid_base64"),
2472
- RunnerPoolErrorServerlessInvalidPayload,
2473
- schemas_exports.stringLiteral("internal_error")
2474
- ]);
2475
-
2476
- // src/serialization/types/ActorErrorRunnerPoolError.ts
2477
- var ActorErrorRunnerPoolError = schemas_exports.object({
2478
- runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError)
2479
- });
2480
-
2481
- // src/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts
2482
- var ActorErrorRunnerNoResponseRunnerNoResponse = schemas_exports.object({
2483
- runnerId: schemas_exports.property("runner_id", RivetId)
2484
- });
2485
-
2486
- // src/serialization/types/ActorErrorRunnerNoResponse.ts
2487
- var ActorErrorRunnerNoResponse = schemas_exports.object({
2488
- runnerNoResponse: schemas_exports.property("runner_no_response", ActorErrorRunnerNoResponseRunnerNoResponse)
2489
- });
2490
-
2491
- // src/serialization/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.ts
2492
- var ActorErrorRunnerConnectionLostRunnerConnectionLost = schemas_exports.object({
2493
- runnerId: schemas_exports.property("runner_id", RivetId)
2494
- });
2495
-
2496
- // src/serialization/types/ActorErrorRunnerConnectionLost.ts
2497
- var ActorErrorRunnerConnectionLost = schemas_exports.object({
2498
- runnerConnectionLost: schemas_exports.property(
2499
- "runner_connection_lost",
2500
- ActorErrorRunnerConnectionLostRunnerConnectionLost
2501
- )
2502
- });
2503
-
2504
- // src/serialization/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.ts
2505
- var ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout = schemas_exports.object({
2506
- runnerId: schemas_exports.property("runner_id", RivetId)
2507
- });
2508
-
2509
- // src/serialization/types/ActorErrorRunnerDrainingTimeout.ts
2510
- var ActorErrorRunnerDrainingTimeout = schemas_exports.object({
2511
- runnerDrainingTimeout: schemas_exports.property(
2512
- "runner_draining_timeout",
2513
- ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout
2514
- )
2515
- });
2516
-
2517
- // src/serialization/types/ActorErrorCrashedCrashed.ts
2518
- var ActorErrorCrashedCrashed = schemas_exports.object({
2519
- message: schemas_exports.string().optional()
2520
- });
2521
-
2522
- // src/serialization/types/ActorErrorCrashed.ts
2523
- var ActorErrorCrashed = schemas_exports.object({
2524
- crashed: ActorErrorCrashedCrashed
2525
- });
2526
-
2527
- // src/serialization/types/ActorError.ts
2528
- var ActorError = schemas_exports.undiscriminatedUnion([
2529
- ActorErrorRunnerPoolError,
2530
- schemas_exports.stringLiteral("no_capacity"),
2531
- ActorErrorRunnerNoResponse,
2532
- ActorErrorRunnerConnectionLost,
2533
- ActorErrorRunnerDrainingTimeout,
2534
- ActorErrorCrashed
2535
- ]);
2536
-
2537
2409
  // src/serialization/types/Actor.ts
2538
2410
  var Actor = schemas_exports.object({
2539
2411
  actorId: schemas_exports.property("actor_id", RivetId),
@@ -2542,7 +2414,7 @@ var Actor = schemas_exports.object({
2542
2414
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
2543
2415
  datacenter: schemas_exports.string(),
2544
2416
  destroyTs: schemas_exports.property("destroy_ts", schemas_exports.number().optional()),
2545
- error: ActorError.optional(),
2417
+ error: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
2546
2418
  key: schemas_exports.string().optional(),
2547
2419
  name: schemas_exports.string(),
2548
2420
  namespaceId: schemas_exports.property("namespace_id", RivetId),
@@ -2731,7 +2603,10 @@ var RunnerConfigKind = schemas_exports.undiscriminatedUnion([RunnerConfigKindNor
2731
2603
 
2732
2604
  // src/serialization/types/RunnerConfigResponse.ts
2733
2605
  var RunnerConfigResponse = schemas_exports.object({
2734
- runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError.optional())
2606
+ runnerPoolError: schemas_exports.property(
2607
+ "runner_pool_error",
2608
+ schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional()
2609
+ )
2735
2610
  }).extend(RunnerConfig);
2736
2611
 
2737
2612
  // src/serialization/types/RunnerConfigVariant.ts
@@ -31,16 +31,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var serialization_exports = {};
32
32
  __export(serialization_exports, {
33
33
  Actor: () => Actor,
34
- ActorError: () => ActorError,
35
- ActorErrorCrashed: () => ActorErrorCrashed,
36
- ActorErrorCrashedCrashed: () => ActorErrorCrashedCrashed,
37
- ActorErrorRunnerConnectionLost: () => ActorErrorRunnerConnectionLost,
38
- ActorErrorRunnerConnectionLostRunnerConnectionLost: () => ActorErrorRunnerConnectionLostRunnerConnectionLost,
39
- ActorErrorRunnerDrainingTimeout: () => ActorErrorRunnerDrainingTimeout,
40
- ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout: () => ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout,
41
- ActorErrorRunnerNoResponse: () => ActorErrorRunnerNoResponse,
42
- ActorErrorRunnerNoResponseRunnerNoResponse: () => ActorErrorRunnerNoResponseRunnerNoResponse,
43
- ActorErrorRunnerPoolError: () => ActorErrorRunnerPoolError,
44
34
  ActorName: () => ActorName,
45
35
  ActorsCreateRequest: () => ActorsCreateRequest,
46
36
  ActorsCreateResponse: () => ActorsCreateResponse,
@@ -96,13 +86,6 @@ __export(serialization_exports, {
96
86
  RunnerConfigsServerlessMetadataErrorRequestTimedOut: () => RunnerConfigsServerlessMetadataErrorRequestTimedOut,
97
87
  RunnerConfigsUpsertRequestBody: () => RunnerConfigsUpsertRequestBody,
98
88
  RunnerConfigsUpsertResponse: () => RunnerConfigsUpsertResponse,
99
- RunnerPoolError: () => RunnerPoolError,
100
- RunnerPoolErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionError,
101
- RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError,
102
- RunnerPoolErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpError,
103
- RunnerPoolErrorServerlessHttpErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpErrorServerlessHttpError,
104
- RunnerPoolErrorServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayload,
105
- RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload,
106
89
  RunnersListNamesResponse: () => RunnersListNamesResponse,
107
90
  RunnersListResponse: () => RunnersListResponse,
108
91
  namespaces: () => namespaces_exports
@@ -1577,117 +1560,6 @@ var RivetId = schemas_exports.string();
1577
1560
  // src/serialization/types/CrashPolicy.ts
1578
1561
  var CrashPolicy = schemas_exports.enum_(["restart", "sleep", "destroy"]);
1579
1562
 
1580
- // src/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts
1581
- var RunnerPoolErrorServerlessHttpErrorServerlessHttpError = schemas_exports.object({
1582
- body: schemas_exports.string(),
1583
- statusCode: schemas_exports.property("status_code", schemas_exports.number())
1584
- });
1585
-
1586
- // src/serialization/types/RunnerPoolErrorServerlessHttpError.ts
1587
- var RunnerPoolErrorServerlessHttpError = schemas_exports.object({
1588
- serverlessHttpError: schemas_exports.property(
1589
- "serverless_http_error",
1590
- RunnerPoolErrorServerlessHttpErrorServerlessHttpError
1591
- )
1592
- });
1593
-
1594
- // src/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts
1595
- var RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError = schemas_exports.object({
1596
- message: schemas_exports.string()
1597
- });
1598
-
1599
- // src/serialization/types/RunnerPoolErrorServerlessConnectionError.ts
1600
- var RunnerPoolErrorServerlessConnectionError = schemas_exports.object({
1601
- serverlessConnectionError: schemas_exports.property(
1602
- "serverless_connection_error",
1603
- RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError
1604
- )
1605
- });
1606
-
1607
- // src/serialization/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.ts
1608
- var RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload = schemas_exports.object({
1609
- message: schemas_exports.string()
1610
- });
1611
-
1612
- // src/serialization/types/RunnerPoolErrorServerlessInvalidPayload.ts
1613
- var RunnerPoolErrorServerlessInvalidPayload = schemas_exports.object({
1614
- serverlessInvalidPayload: schemas_exports.property(
1615
- "serverless_invalid_payload",
1616
- RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload
1617
- )
1618
- });
1619
-
1620
- // src/serialization/types/RunnerPoolError.ts
1621
- var RunnerPoolError = schemas_exports.undiscriminatedUnion([
1622
- RunnerPoolErrorServerlessHttpError,
1623
- schemas_exports.stringLiteral("serverless_stream_ended_early"),
1624
- RunnerPoolErrorServerlessConnectionError,
1625
- schemas_exports.stringLiteral("serverless_invalid_base64"),
1626
- RunnerPoolErrorServerlessInvalidPayload,
1627
- schemas_exports.stringLiteral("internal_error")
1628
- ]);
1629
-
1630
- // src/serialization/types/ActorErrorRunnerPoolError.ts
1631
- var ActorErrorRunnerPoolError = schemas_exports.object({
1632
- runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError)
1633
- });
1634
-
1635
- // src/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts
1636
- var ActorErrorRunnerNoResponseRunnerNoResponse = schemas_exports.object({
1637
- runnerId: schemas_exports.property("runner_id", RivetId)
1638
- });
1639
-
1640
- // src/serialization/types/ActorErrorRunnerNoResponse.ts
1641
- var ActorErrorRunnerNoResponse = schemas_exports.object({
1642
- runnerNoResponse: schemas_exports.property("runner_no_response", ActorErrorRunnerNoResponseRunnerNoResponse)
1643
- });
1644
-
1645
- // src/serialization/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.ts
1646
- var ActorErrorRunnerConnectionLostRunnerConnectionLost = schemas_exports.object({
1647
- runnerId: schemas_exports.property("runner_id", RivetId)
1648
- });
1649
-
1650
- // src/serialization/types/ActorErrorRunnerConnectionLost.ts
1651
- var ActorErrorRunnerConnectionLost = schemas_exports.object({
1652
- runnerConnectionLost: schemas_exports.property(
1653
- "runner_connection_lost",
1654
- ActorErrorRunnerConnectionLostRunnerConnectionLost
1655
- )
1656
- });
1657
-
1658
- // src/serialization/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.ts
1659
- var ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout = schemas_exports.object({
1660
- runnerId: schemas_exports.property("runner_id", RivetId)
1661
- });
1662
-
1663
- // src/serialization/types/ActorErrorRunnerDrainingTimeout.ts
1664
- var ActorErrorRunnerDrainingTimeout = schemas_exports.object({
1665
- runnerDrainingTimeout: schemas_exports.property(
1666
- "runner_draining_timeout",
1667
- ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout
1668
- )
1669
- });
1670
-
1671
- // src/serialization/types/ActorErrorCrashedCrashed.ts
1672
- var ActorErrorCrashedCrashed = schemas_exports.object({
1673
- message: schemas_exports.string().optional()
1674
- });
1675
-
1676
- // src/serialization/types/ActorErrorCrashed.ts
1677
- var ActorErrorCrashed = schemas_exports.object({
1678
- crashed: ActorErrorCrashedCrashed
1679
- });
1680
-
1681
- // src/serialization/types/ActorError.ts
1682
- var ActorError = schemas_exports.undiscriminatedUnion([
1683
- ActorErrorRunnerPoolError,
1684
- schemas_exports.stringLiteral("no_capacity"),
1685
- ActorErrorRunnerNoResponse,
1686
- ActorErrorRunnerConnectionLost,
1687
- ActorErrorRunnerDrainingTimeout,
1688
- ActorErrorCrashed
1689
- ]);
1690
-
1691
1563
  // src/serialization/types/Actor.ts
1692
1564
  var Actor = schemas_exports.object({
1693
1565
  actorId: schemas_exports.property("actor_id", RivetId),
@@ -1696,7 +1568,7 @@ var Actor = schemas_exports.object({
1696
1568
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
1697
1569
  datacenter: schemas_exports.string(),
1698
1570
  destroyTs: schemas_exports.property("destroy_ts", schemas_exports.number().optional()),
1699
- error: ActorError.optional(),
1571
+ error: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
1700
1572
  key: schemas_exports.string().optional(),
1701
1573
  name: schemas_exports.string(),
1702
1574
  namespaceId: schemas_exports.property("namespace_id", RivetId),
@@ -1885,7 +1757,10 @@ var RunnerConfigKind = schemas_exports.undiscriminatedUnion([RunnerConfigKindNor
1885
1757
 
1886
1758
  // src/serialization/types/RunnerConfigResponse.ts
1887
1759
  var RunnerConfigResponse = schemas_exports.object({
1888
- runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError.optional())
1760
+ runnerPoolError: schemas_exports.property(
1761
+ "runner_pool_error",
1762
+ schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional()
1763
+ )
1889
1764
  }).extend(RunnerConfig);
1890
1765
 
1891
1766
  // src/serialization/types/RunnerConfigVariant.ts
@@ -2307,16 +2307,6 @@ function transformAndValidateUnion({
2307
2307
  var serialization_exports = {};
2308
2308
  __export(serialization_exports, {
2309
2309
  Actor: () => Actor,
2310
- ActorError: () => ActorError,
2311
- ActorErrorCrashed: () => ActorErrorCrashed,
2312
- ActorErrorCrashedCrashed: () => ActorErrorCrashedCrashed,
2313
- ActorErrorRunnerConnectionLost: () => ActorErrorRunnerConnectionLost,
2314
- ActorErrorRunnerConnectionLostRunnerConnectionLost: () => ActorErrorRunnerConnectionLostRunnerConnectionLost,
2315
- ActorErrorRunnerDrainingTimeout: () => ActorErrorRunnerDrainingTimeout,
2316
- ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout: () => ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout,
2317
- ActorErrorRunnerNoResponse: () => ActorErrorRunnerNoResponse,
2318
- ActorErrorRunnerNoResponseRunnerNoResponse: () => ActorErrorRunnerNoResponseRunnerNoResponse,
2319
- ActorErrorRunnerPoolError: () => ActorErrorRunnerPoolError,
2320
2310
  ActorName: () => ActorName,
2321
2311
  ActorsCreateRequest: () => ActorsCreateRequest,
2322
2312
  ActorsCreateResponse: () => ActorsCreateResponse,
@@ -2372,13 +2362,6 @@ __export(serialization_exports, {
2372
2362
  RunnerConfigsServerlessMetadataErrorRequestTimedOut: () => RunnerConfigsServerlessMetadataErrorRequestTimedOut,
2373
2363
  RunnerConfigsUpsertRequestBody: () => RunnerConfigsUpsertRequestBody,
2374
2364
  RunnerConfigsUpsertResponse: () => RunnerConfigsUpsertResponse,
2375
- RunnerPoolError: () => RunnerPoolError,
2376
- RunnerPoolErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionError,
2377
- RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError,
2378
- RunnerPoolErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpError,
2379
- RunnerPoolErrorServerlessHttpErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpErrorServerlessHttpError,
2380
- RunnerPoolErrorServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayload,
2381
- RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload,
2382
2365
  RunnersListNamesResponse: () => RunnersListNamesResponse,
2383
2366
  RunnersListResponse: () => RunnersListResponse,
2384
2367
  namespaces: () => namespaces_exports2
@@ -2390,117 +2373,6 @@ var RivetId = schemas_exports.string();
2390
2373
  // src/serialization/types/CrashPolicy.ts
2391
2374
  var CrashPolicy2 = schemas_exports.enum_(["restart", "sleep", "destroy"]);
2392
2375
 
2393
- // src/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts
2394
- var RunnerPoolErrorServerlessHttpErrorServerlessHttpError = schemas_exports.object({
2395
- body: schemas_exports.string(),
2396
- statusCode: schemas_exports.property("status_code", schemas_exports.number())
2397
- });
2398
-
2399
- // src/serialization/types/RunnerPoolErrorServerlessHttpError.ts
2400
- var RunnerPoolErrorServerlessHttpError = schemas_exports.object({
2401
- serverlessHttpError: schemas_exports.property(
2402
- "serverless_http_error",
2403
- RunnerPoolErrorServerlessHttpErrorServerlessHttpError
2404
- )
2405
- });
2406
-
2407
- // src/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts
2408
- var RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError = schemas_exports.object({
2409
- message: schemas_exports.string()
2410
- });
2411
-
2412
- // src/serialization/types/RunnerPoolErrorServerlessConnectionError.ts
2413
- var RunnerPoolErrorServerlessConnectionError = schemas_exports.object({
2414
- serverlessConnectionError: schemas_exports.property(
2415
- "serverless_connection_error",
2416
- RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError
2417
- )
2418
- });
2419
-
2420
- // src/serialization/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.ts
2421
- var RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload = schemas_exports.object({
2422
- message: schemas_exports.string()
2423
- });
2424
-
2425
- // src/serialization/types/RunnerPoolErrorServerlessInvalidPayload.ts
2426
- var RunnerPoolErrorServerlessInvalidPayload = schemas_exports.object({
2427
- serverlessInvalidPayload: schemas_exports.property(
2428
- "serverless_invalid_payload",
2429
- RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload
2430
- )
2431
- });
2432
-
2433
- // src/serialization/types/RunnerPoolError.ts
2434
- var RunnerPoolError = schemas_exports.undiscriminatedUnion([
2435
- RunnerPoolErrorServerlessHttpError,
2436
- schemas_exports.stringLiteral("serverless_stream_ended_early"),
2437
- RunnerPoolErrorServerlessConnectionError,
2438
- schemas_exports.stringLiteral("serverless_invalid_base64"),
2439
- RunnerPoolErrorServerlessInvalidPayload,
2440
- schemas_exports.stringLiteral("internal_error")
2441
- ]);
2442
-
2443
- // src/serialization/types/ActorErrorRunnerPoolError.ts
2444
- var ActorErrorRunnerPoolError = schemas_exports.object({
2445
- runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError)
2446
- });
2447
-
2448
- // src/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts
2449
- var ActorErrorRunnerNoResponseRunnerNoResponse = schemas_exports.object({
2450
- runnerId: schemas_exports.property("runner_id", RivetId)
2451
- });
2452
-
2453
- // src/serialization/types/ActorErrorRunnerNoResponse.ts
2454
- var ActorErrorRunnerNoResponse = schemas_exports.object({
2455
- runnerNoResponse: schemas_exports.property("runner_no_response", ActorErrorRunnerNoResponseRunnerNoResponse)
2456
- });
2457
-
2458
- // src/serialization/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.ts
2459
- var ActorErrorRunnerConnectionLostRunnerConnectionLost = schemas_exports.object({
2460
- runnerId: schemas_exports.property("runner_id", RivetId)
2461
- });
2462
-
2463
- // src/serialization/types/ActorErrorRunnerConnectionLost.ts
2464
- var ActorErrorRunnerConnectionLost = schemas_exports.object({
2465
- runnerConnectionLost: schemas_exports.property(
2466
- "runner_connection_lost",
2467
- ActorErrorRunnerConnectionLostRunnerConnectionLost
2468
- )
2469
- });
2470
-
2471
- // src/serialization/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.ts
2472
- var ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout = schemas_exports.object({
2473
- runnerId: schemas_exports.property("runner_id", RivetId)
2474
- });
2475
-
2476
- // src/serialization/types/ActorErrorRunnerDrainingTimeout.ts
2477
- var ActorErrorRunnerDrainingTimeout = schemas_exports.object({
2478
- runnerDrainingTimeout: schemas_exports.property(
2479
- "runner_draining_timeout",
2480
- ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout
2481
- )
2482
- });
2483
-
2484
- // src/serialization/types/ActorErrorCrashedCrashed.ts
2485
- var ActorErrorCrashedCrashed = schemas_exports.object({
2486
- message: schemas_exports.string().optional()
2487
- });
2488
-
2489
- // src/serialization/types/ActorErrorCrashed.ts
2490
- var ActorErrorCrashed = schemas_exports.object({
2491
- crashed: ActorErrorCrashedCrashed
2492
- });
2493
-
2494
- // src/serialization/types/ActorError.ts
2495
- var ActorError = schemas_exports.undiscriminatedUnion([
2496
- ActorErrorRunnerPoolError,
2497
- schemas_exports.stringLiteral("no_capacity"),
2498
- ActorErrorRunnerNoResponse,
2499
- ActorErrorRunnerConnectionLost,
2500
- ActorErrorRunnerDrainingTimeout,
2501
- ActorErrorCrashed
2502
- ]);
2503
-
2504
2376
  // src/serialization/types/Actor.ts
2505
2377
  var Actor = schemas_exports.object({
2506
2378
  actorId: schemas_exports.property("actor_id", RivetId),
@@ -2509,7 +2381,7 @@ var Actor = schemas_exports.object({
2509
2381
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
2510
2382
  datacenter: schemas_exports.string(),
2511
2383
  destroyTs: schemas_exports.property("destroy_ts", schemas_exports.number().optional()),
2512
- error: ActorError.optional(),
2384
+ error: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
2513
2385
  key: schemas_exports.string().optional(),
2514
2386
  name: schemas_exports.string(),
2515
2387
  namespaceId: schemas_exports.property("namespace_id", RivetId),
@@ -2698,7 +2570,10 @@ var RunnerConfigKind = schemas_exports.undiscriminatedUnion([RunnerConfigKindNor
2698
2570
 
2699
2571
  // src/serialization/types/RunnerConfigResponse.ts
2700
2572
  var RunnerConfigResponse = schemas_exports.object({
2701
- runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError.optional())
2573
+ runnerPoolError: schemas_exports.property(
2574
+ "runner_pool_error",
2575
+ schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional()
2576
+ )
2702
2577
  }).extend(RunnerConfig);
2703
2578
 
2704
2579
  // src/serialization/types/RunnerConfigVariant.ts
@@ -1472,117 +1472,6 @@ var RivetId = schemas_exports.string();
1472
1472
  // src/serialization/types/CrashPolicy.ts
1473
1473
  var CrashPolicy = schemas_exports.enum_(["restart", "sleep", "destroy"]);
1474
1474
 
1475
- // src/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts
1476
- var RunnerPoolErrorServerlessHttpErrorServerlessHttpError = schemas_exports.object({
1477
- body: schemas_exports.string(),
1478
- statusCode: schemas_exports.property("status_code", schemas_exports.number())
1479
- });
1480
-
1481
- // src/serialization/types/RunnerPoolErrorServerlessHttpError.ts
1482
- var RunnerPoolErrorServerlessHttpError = schemas_exports.object({
1483
- serverlessHttpError: schemas_exports.property(
1484
- "serverless_http_error",
1485
- RunnerPoolErrorServerlessHttpErrorServerlessHttpError
1486
- )
1487
- });
1488
-
1489
- // src/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts
1490
- var RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError = schemas_exports.object({
1491
- message: schemas_exports.string()
1492
- });
1493
-
1494
- // src/serialization/types/RunnerPoolErrorServerlessConnectionError.ts
1495
- var RunnerPoolErrorServerlessConnectionError = schemas_exports.object({
1496
- serverlessConnectionError: schemas_exports.property(
1497
- "serverless_connection_error",
1498
- RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError
1499
- )
1500
- });
1501
-
1502
- // src/serialization/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.ts
1503
- var RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload = schemas_exports.object({
1504
- message: schemas_exports.string()
1505
- });
1506
-
1507
- // src/serialization/types/RunnerPoolErrorServerlessInvalidPayload.ts
1508
- var RunnerPoolErrorServerlessInvalidPayload = schemas_exports.object({
1509
- serverlessInvalidPayload: schemas_exports.property(
1510
- "serverless_invalid_payload",
1511
- RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload
1512
- )
1513
- });
1514
-
1515
- // src/serialization/types/RunnerPoolError.ts
1516
- var RunnerPoolError = schemas_exports.undiscriminatedUnion([
1517
- RunnerPoolErrorServerlessHttpError,
1518
- schemas_exports.stringLiteral("serverless_stream_ended_early"),
1519
- RunnerPoolErrorServerlessConnectionError,
1520
- schemas_exports.stringLiteral("serverless_invalid_base64"),
1521
- RunnerPoolErrorServerlessInvalidPayload,
1522
- schemas_exports.stringLiteral("internal_error")
1523
- ]);
1524
-
1525
- // src/serialization/types/ActorErrorRunnerPoolError.ts
1526
- var ActorErrorRunnerPoolError = schemas_exports.object({
1527
- runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError)
1528
- });
1529
-
1530
- // src/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts
1531
- var ActorErrorRunnerNoResponseRunnerNoResponse = schemas_exports.object({
1532
- runnerId: schemas_exports.property("runner_id", RivetId)
1533
- });
1534
-
1535
- // src/serialization/types/ActorErrorRunnerNoResponse.ts
1536
- var ActorErrorRunnerNoResponse = schemas_exports.object({
1537
- runnerNoResponse: schemas_exports.property("runner_no_response", ActorErrorRunnerNoResponseRunnerNoResponse)
1538
- });
1539
-
1540
- // src/serialization/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.ts
1541
- var ActorErrorRunnerConnectionLostRunnerConnectionLost = schemas_exports.object({
1542
- runnerId: schemas_exports.property("runner_id", RivetId)
1543
- });
1544
-
1545
- // src/serialization/types/ActorErrorRunnerConnectionLost.ts
1546
- var ActorErrorRunnerConnectionLost = schemas_exports.object({
1547
- runnerConnectionLost: schemas_exports.property(
1548
- "runner_connection_lost",
1549
- ActorErrorRunnerConnectionLostRunnerConnectionLost
1550
- )
1551
- });
1552
-
1553
- // src/serialization/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.ts
1554
- var ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout = schemas_exports.object({
1555
- runnerId: schemas_exports.property("runner_id", RivetId)
1556
- });
1557
-
1558
- // src/serialization/types/ActorErrorRunnerDrainingTimeout.ts
1559
- var ActorErrorRunnerDrainingTimeout = schemas_exports.object({
1560
- runnerDrainingTimeout: schemas_exports.property(
1561
- "runner_draining_timeout",
1562
- ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout
1563
- )
1564
- });
1565
-
1566
- // src/serialization/types/ActorErrorCrashedCrashed.ts
1567
- var ActorErrorCrashedCrashed = schemas_exports.object({
1568
- message: schemas_exports.string().optional()
1569
- });
1570
-
1571
- // src/serialization/types/ActorErrorCrashed.ts
1572
- var ActorErrorCrashed = schemas_exports.object({
1573
- crashed: ActorErrorCrashedCrashed
1574
- });
1575
-
1576
- // src/serialization/types/ActorError.ts
1577
- var ActorError = schemas_exports.undiscriminatedUnion([
1578
- ActorErrorRunnerPoolError,
1579
- schemas_exports.stringLiteral("no_capacity"),
1580
- ActorErrorRunnerNoResponse,
1581
- ActorErrorRunnerConnectionLost,
1582
- ActorErrorRunnerDrainingTimeout,
1583
- ActorErrorCrashed
1584
- ]);
1585
-
1586
1475
  // src/serialization/types/Actor.ts
1587
1476
  var Actor = schemas_exports.object({
1588
1477
  actorId: schemas_exports.property("actor_id", RivetId),
@@ -1591,7 +1480,7 @@ var Actor = schemas_exports.object({
1591
1480
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
1592
1481
  datacenter: schemas_exports.string(),
1593
1482
  destroyTs: schemas_exports.property("destroy_ts", schemas_exports.number().optional()),
1594
- error: ActorError.optional(),
1483
+ error: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
1595
1484
  key: schemas_exports.string().optional(),
1596
1485
  name: schemas_exports.string(),
1597
1486
  namespaceId: schemas_exports.property("namespace_id", RivetId),
@@ -1780,7 +1669,10 @@ var RunnerConfigKind = schemas_exports.undiscriminatedUnion([RunnerConfigKindNor
1780
1669
 
1781
1670
  // src/serialization/types/RunnerConfigResponse.ts
1782
1671
  var RunnerConfigResponse = schemas_exports.object({
1783
- runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError.optional())
1672
+ runnerPoolError: schemas_exports.property(
1673
+ "runner_pool_error",
1674
+ schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional()
1675
+ )
1784
1676
  }).extend(RunnerConfig);
1785
1677
 
1786
1678
  // src/serialization/types/RunnerConfigVariant.ts
@@ -1971,16 +1863,6 @@ var NamespacesCreateRequest = schemas_exports.object({
1971
1863
  });
1972
1864
  export {
1973
1865
  Actor,
1974
- ActorError,
1975
- ActorErrorCrashed,
1976
- ActorErrorCrashedCrashed,
1977
- ActorErrorRunnerConnectionLost,
1978
- ActorErrorRunnerConnectionLostRunnerConnectionLost,
1979
- ActorErrorRunnerDrainingTimeout,
1980
- ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout,
1981
- ActorErrorRunnerNoResponse,
1982
- ActorErrorRunnerNoResponseRunnerNoResponse,
1983
- ActorErrorRunnerPoolError,
1984
1866
  ActorName,
1985
1867
  ActorsCreateRequest,
1986
1868
  ActorsCreateResponse,
@@ -2036,13 +1918,6 @@ export {
2036
1918
  RunnerConfigsServerlessMetadataErrorRequestTimedOut,
2037
1919
  RunnerConfigsUpsertRequestBody,
2038
1920
  RunnerConfigsUpsertResponse,
2039
- RunnerPoolError,
2040
- RunnerPoolErrorServerlessConnectionError,
2041
- RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError,
2042
- RunnerPoolErrorServerlessHttpError,
2043
- RunnerPoolErrorServerlessHttpErrorServerlessHttpError,
2044
- RunnerPoolErrorServerlessInvalidPayload,
2045
- RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload,
2046
1921
  RunnersListNamesResponse,
2047
1922
  RunnersListResponse,
2048
1923
  namespaces_exports as namespaces