@rivetkit/engine-api-full 2.0.33 → 2.0.34-rc.2

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 (55) hide show
  1. package/dist/browser/cjs/index.js +156 -10
  2. package/dist/browser/cjs/serialization.js +140 -1
  3. package/dist/browser/esm/index.js +156 -10
  4. package/dist/browser/esm/serialization.js +140 -1
  5. package/dist/node/index.js +156 -10
  6. package/dist/node/serialization.js +158 -1
  7. package/package.json +1 -1
  8. package/types/Client.d.ts +9 -4
  9. package/types/api/client/requests/ActorsDeleteRequest.d.ts +4 -2
  10. package/types/api/client/requests/ActorsKvGetRequest.d.ts +12 -0
  11. package/types/api/client/requests/index.d.ts +1 -0
  12. package/types/api/types/Actor.d.ts +2 -0
  13. package/types/api/types/ActorError.d.ts +20 -0
  14. package/types/api/types/ActorErrorCrashed.d.ts +11 -0
  15. package/types/api/types/ActorErrorCrashedCrashed.d.ts +9 -0
  16. package/types/api/types/ActorErrorRunnerConnectionLost.d.ts +11 -0
  17. package/types/api/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.d.ts +10 -0
  18. package/types/api/types/ActorErrorRunnerDrainingTimeout.d.ts +11 -0
  19. package/types/api/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.d.ts +10 -0
  20. package/types/api/types/ActorErrorRunnerNoResponse.d.ts +11 -0
  21. package/types/api/types/ActorErrorRunnerNoResponseRunnerNoResponse.d.ts +10 -0
  22. package/types/api/types/ActorErrorRunnerPoolError.d.ts +11 -0
  23. package/types/api/types/RunnerConfig.d.ts +1 -0
  24. package/types/api/types/RunnerConfigResponse.d.ts +7 -0
  25. package/types/api/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +1 -1
  26. package/types/api/types/RunnerPoolError.d.ts +14 -0
  27. package/types/api/types/RunnerPoolErrorServerlessConnectionError.d.ts +11 -0
  28. package/types/api/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.d.ts +9 -0
  29. package/types/api/types/RunnerPoolErrorServerlessHttpError.d.ts +11 -0
  30. package/types/api/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.d.ts +10 -0
  31. package/types/api/types/RunnerPoolErrorServerlessInvalidPayload.d.ts +11 -0
  32. package/types/api/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.d.ts +9 -0
  33. package/types/api/types/index.d.ts +18 -0
  34. package/types/serialization/types/Actor.d.ts +2 -0
  35. package/types/serialization/types/ActorError.d.ts +15 -0
  36. package/types/serialization/types/ActorErrorCrashed.d.ts +13 -0
  37. package/types/serialization/types/ActorErrorCrashedCrashed.d.ts +12 -0
  38. package/types/serialization/types/ActorErrorRunnerConnectionLost.d.ts +13 -0
  39. package/types/serialization/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.d.ts +13 -0
  40. package/types/serialization/types/ActorErrorRunnerDrainingTimeout.d.ts +13 -0
  41. package/types/serialization/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.d.ts +13 -0
  42. package/types/serialization/types/ActorErrorRunnerNoResponse.d.ts +13 -0
  43. package/types/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.d.ts +13 -0
  44. package/types/serialization/types/ActorErrorRunnerPoolError.d.ts +13 -0
  45. package/types/serialization/types/RunnerConfig.d.ts +1 -0
  46. package/types/serialization/types/RunnerConfigResponse.d.ts +14 -0
  47. package/types/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +2 -2
  48. package/types/serialization/types/RunnerPoolError.d.ts +13 -0
  49. package/types/serialization/types/RunnerPoolErrorServerlessConnectionError.d.ts +13 -0
  50. package/types/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.d.ts +12 -0
  51. package/types/serialization/types/RunnerPoolErrorServerlessHttpError.d.ts +13 -0
  52. package/types/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.d.ts +13 -0
  53. package/types/serialization/types/RunnerPoolErrorServerlessInvalidPayload.d.ts +13 -0
  54. package/types/serialization/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.d.ts +12 -0
  55. package/types/serialization/types/index.d.ts +18 -0
@@ -2307,6 +2307,16 @@ 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,
2310
2320
  ActorName: () => ActorName,
2311
2321
  ActorsCreateRequest: () => ActorsCreateRequest,
2312
2322
  ActorsCreateResponse: () => ActorsCreateResponse,
@@ -2336,6 +2346,7 @@ __export(serialization_exports, {
2336
2346
  RunnerConfigKindNormal: () => RunnerConfigKindNormal,
2337
2347
  RunnerConfigKindServerless: () => RunnerConfigKindServerless,
2338
2348
  RunnerConfigKindServerlessServerless: () => RunnerConfigKindServerlessServerless,
2349
+ RunnerConfigResponse: () => RunnerConfigResponse,
2339
2350
  RunnerConfigServerless: () => RunnerConfigServerless,
2340
2351
  RunnerConfigVariant: () => RunnerConfigVariant2,
2341
2352
  RunnerConfigsDeleteResponse: () => RunnerConfigsDeleteResponse,
@@ -2361,6 +2372,13 @@ __export(serialization_exports, {
2361
2372
  RunnerConfigsServerlessMetadataErrorRequestTimedOut: () => RunnerConfigsServerlessMetadataErrorRequestTimedOut,
2362
2373
  RunnerConfigsUpsertRequestBody: () => RunnerConfigsUpsertRequestBody,
2363
2374
  RunnerConfigsUpsertResponse: () => RunnerConfigsUpsertResponse,
2375
+ RunnerPoolError: () => RunnerPoolError,
2376
+ RunnerPoolErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionError,
2377
+ RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError,
2378
+ RunnerPoolErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpError,
2379
+ RunnerPoolErrorServerlessHttpErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpErrorServerlessHttpError,
2380
+ RunnerPoolErrorServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayload,
2381
+ RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload,
2364
2382
  RunnersListNamesResponse: () => RunnersListNamesResponse,
2365
2383
  RunnersListResponse: () => RunnersListResponse,
2366
2384
  namespaces: () => namespaces_exports2
@@ -2372,6 +2390,117 @@ var RivetId = schemas_exports.string();
2372
2390
  // src/serialization/types/CrashPolicy.ts
2373
2391
  var CrashPolicy2 = schemas_exports.enum_(["restart", "sleep", "destroy"]);
2374
2392
 
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
+
2375
2504
  // src/serialization/types/Actor.ts
2376
2505
  var Actor = schemas_exports.object({
2377
2506
  actorId: schemas_exports.property("actor_id", RivetId),
@@ -2380,6 +2509,7 @@ var Actor = schemas_exports.object({
2380
2509
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
2381
2510
  datacenter: schemas_exports.string(),
2382
2511
  destroyTs: schemas_exports.property("destroy_ts", schemas_exports.number().optional()),
2512
+ error: ActorError.optional(),
2383
2513
  key: schemas_exports.string().optional(),
2384
2514
  name: schemas_exports.string(),
2385
2515
  namespaceId: schemas_exports.property("namespace_id", RivetId),
@@ -2535,6 +2665,10 @@ var RunnerConfigServerless = schemas_exports.object({
2535
2665
  var RunnerConfig = schemas_exports.object({
2536
2666
  normal: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
2537
2667
  serverless: RunnerConfigServerless.optional(),
2668
+ drainOnVersionUpgrade: schemas_exports.property(
2669
+ "drain_on_version_upgrade",
2670
+ schemas_exports.boolean().optional()
2671
+ ),
2538
2672
  metadata: schemas_exports.unknown().optional()
2539
2673
  });
2540
2674
 
@@ -2562,6 +2696,11 @@ var RunnerConfigKindServerless = schemas_exports.object({
2562
2696
  // src/serialization/types/RunnerConfigKind.ts
2563
2697
  var RunnerConfigKind = schemas_exports.undiscriminatedUnion([RunnerConfigKindNormal, RunnerConfigKindServerless]);
2564
2698
 
2699
+ // src/serialization/types/RunnerConfigResponse.ts
2700
+ var RunnerConfigResponse = schemas_exports.object({
2701
+ runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError.optional())
2702
+ }).extend(RunnerConfig);
2703
+
2565
2704
  // src/serialization/types/RunnerConfigVariant.ts
2566
2705
  var RunnerConfigVariant2 = schemas_exports.enum_(["serverless", "normal"]);
2567
2706
 
@@ -2570,7 +2709,7 @@ var RunnerConfigsDeleteResponse = schemas_exports.record(schemas_exports.string(
2570
2709
 
2571
2710
  // src/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.ts
2572
2711
  var RunnerConfigsListResponseRunnerConfigsValue = schemas_exports.object({
2573
- datacenters: schemas_exports.record(schemas_exports.string(), RunnerConfig)
2712
+ datacenters: schemas_exports.record(schemas_exports.string(), RunnerConfigResponse)
2574
2713
  });
2575
2714
 
2576
2715
  // src/serialization/types/RunnerConfigsListResponse.ts
@@ -2943,7 +3082,7 @@ var Metadata = class {
2943
3082
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
2944
3083
  "metadata"
2945
3084
  ),
2946
- method: "DELETE",
3085
+ method: "GET",
2947
3086
  headers: {
2948
3087
  Authorization: await this._getAuthorizationHeader(),
2949
3088
  "X-Fern-Language": "JavaScript",
@@ -2979,7 +3118,7 @@ var Metadata = class {
2979
3118
  body: _response.error.rawBody
2980
3119
  });
2981
3120
  case "timeout":
2982
- throw new RivetTimeoutError("Timeout exceeded when calling DELETE /metadata.");
3121
+ throw new RivetTimeoutError("Timeout exceeded when calling GET /metadata.");
2983
3122
  case "unknown":
2984
3123
  throw new RivetError({
2985
3124
  message: _response.error.errorMessage
@@ -3709,14 +3848,14 @@ var RivetClient = class {
3709
3848
  * @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
3710
3849
  *
3711
3850
  * @example
3712
- * await client.actorsDelete("actor_id")
3851
+ * await client.actorsDelete("actor_id", {
3852
+ * namespace: "namespace"
3853
+ * })
3713
3854
  */
3714
- async actorsDelete(actorId, request = {}, requestOptions) {
3855
+ async actorsDelete(actorId, request, requestOptions) {
3715
3856
  const { namespace } = request;
3716
3857
  const _queryParams = {};
3717
- if (namespace != null) {
3718
- _queryParams["namespace"] = namespace;
3719
- }
3858
+ _queryParams["namespace"] = namespace;
3720
3859
  const _response = await (this._options.fetcher ?? fetcher)({
3721
3860
  url: urlJoin6(
3722
3861
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
@@ -3769,12 +3908,18 @@ var RivetClient = class {
3769
3908
  /**
3770
3909
  * @param {Rivet.RivetId} actorId
3771
3910
  * @param {string} key
3911
+ * @param {Rivet.ActorsKvGetRequest} request
3772
3912
  * @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
3773
3913
  *
3774
3914
  * @example
3775
- * await client.actorsKvGet("actor_id", "key")
3915
+ * await client.actorsKvGet("actor_id", "key", {
3916
+ * namespace: "namespace"
3917
+ * })
3776
3918
  */
3777
- async actorsKvGet(actorId, key, requestOptions) {
3919
+ async actorsKvGet(actorId, key, request, requestOptions) {
3920
+ const { namespace } = request;
3921
+ const _queryParams = {};
3922
+ _queryParams["namespace"] = namespace;
3778
3923
  const _response = await (this._options.fetcher ?? fetcher)({
3779
3924
  url: urlJoin6(
3780
3925
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
@@ -3789,6 +3934,7 @@ var RivetClient = class {
3789
3934
  ...requestOptions?.headers
3790
3935
  },
3791
3936
  contentType: "application/json",
3937
+ queryParameters: _queryParams,
3792
3938
  requestType: "json",
3793
3939
  timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
3794
3940
  maxRetries: requestOptions?.maxRetries,
@@ -1472,6 +1472,117 @@ 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
+
1475
1586
  // src/serialization/types/Actor.ts
1476
1587
  var Actor = schemas_exports.object({
1477
1588
  actorId: schemas_exports.property("actor_id", RivetId),
@@ -1480,6 +1591,7 @@ var Actor = schemas_exports.object({
1480
1591
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
1481
1592
  datacenter: schemas_exports.string(),
1482
1593
  destroyTs: schemas_exports.property("destroy_ts", schemas_exports.number().optional()),
1594
+ error: ActorError.optional(),
1483
1595
  key: schemas_exports.string().optional(),
1484
1596
  name: schemas_exports.string(),
1485
1597
  namespaceId: schemas_exports.property("namespace_id", RivetId),
@@ -1635,6 +1747,10 @@ var RunnerConfigServerless = schemas_exports.object({
1635
1747
  var RunnerConfig = schemas_exports.object({
1636
1748
  normal: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
1637
1749
  serverless: RunnerConfigServerless.optional(),
1750
+ drainOnVersionUpgrade: schemas_exports.property(
1751
+ "drain_on_version_upgrade",
1752
+ schemas_exports.boolean().optional()
1753
+ ),
1638
1754
  metadata: schemas_exports.unknown().optional()
1639
1755
  });
1640
1756
 
@@ -1662,6 +1778,11 @@ var RunnerConfigKindServerless = schemas_exports.object({
1662
1778
  // src/serialization/types/RunnerConfigKind.ts
1663
1779
  var RunnerConfigKind = schemas_exports.undiscriminatedUnion([RunnerConfigKindNormal, RunnerConfigKindServerless]);
1664
1780
 
1781
+ // src/serialization/types/RunnerConfigResponse.ts
1782
+ var RunnerConfigResponse = schemas_exports.object({
1783
+ runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError.optional())
1784
+ }).extend(RunnerConfig);
1785
+
1665
1786
  // src/serialization/types/RunnerConfigVariant.ts
1666
1787
  var RunnerConfigVariant = schemas_exports.enum_(["serverless", "normal"]);
1667
1788
 
@@ -1670,7 +1791,7 @@ var RunnerConfigsDeleteResponse = schemas_exports.record(schemas_exports.string(
1670
1791
 
1671
1792
  // src/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.ts
1672
1793
  var RunnerConfigsListResponseRunnerConfigsValue = schemas_exports.object({
1673
- datacenters: schemas_exports.record(schemas_exports.string(), RunnerConfig)
1794
+ datacenters: schemas_exports.record(schemas_exports.string(), RunnerConfigResponse)
1674
1795
  });
1675
1796
 
1676
1797
  // src/serialization/types/RunnerConfigsListResponse.ts
@@ -1850,6 +1971,16 @@ var NamespacesCreateRequest = schemas_exports.object({
1850
1971
  });
1851
1972
  export {
1852
1973
  Actor,
1974
+ ActorError,
1975
+ ActorErrorCrashed,
1976
+ ActorErrorCrashedCrashed,
1977
+ ActorErrorRunnerConnectionLost,
1978
+ ActorErrorRunnerConnectionLostRunnerConnectionLost,
1979
+ ActorErrorRunnerDrainingTimeout,
1980
+ ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout,
1981
+ ActorErrorRunnerNoResponse,
1982
+ ActorErrorRunnerNoResponseRunnerNoResponse,
1983
+ ActorErrorRunnerPoolError,
1853
1984
  ActorName,
1854
1985
  ActorsCreateRequest,
1855
1986
  ActorsCreateResponse,
@@ -1879,6 +2010,7 @@ export {
1879
2010
  RunnerConfigKindNormal,
1880
2011
  RunnerConfigKindServerless,
1881
2012
  RunnerConfigKindServerlessServerless,
2013
+ RunnerConfigResponse,
1882
2014
  RunnerConfigServerless,
1883
2015
  RunnerConfigVariant,
1884
2016
  RunnerConfigsDeleteResponse,
@@ -1904,6 +2036,13 @@ export {
1904
2036
  RunnerConfigsServerlessMetadataErrorRequestTimedOut,
1905
2037
  RunnerConfigsUpsertRequestBody,
1906
2038
  RunnerConfigsUpsertResponse,
2039
+ RunnerPoolError,
2040
+ RunnerPoolErrorServerlessConnectionError,
2041
+ RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError,
2042
+ RunnerPoolErrorServerlessHttpError,
2043
+ RunnerPoolErrorServerlessHttpErrorServerlessHttpError,
2044
+ RunnerPoolErrorServerlessInvalidPayload,
2045
+ RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload,
1907
2046
  RunnersListNamesResponse,
1908
2047
  RunnersListResponse,
1909
2048
  namespaces_exports as namespaces