@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.
- package/dist/browser/cjs/index.js +156 -10
- package/dist/browser/cjs/serialization.js +140 -1
- package/dist/browser/esm/index.js +156 -10
- package/dist/browser/esm/serialization.js +140 -1
- package/dist/node/index.js +156 -10
- package/dist/node/serialization.js +158 -1
- package/package.json +1 -1
- package/types/Client.d.ts +9 -4
- package/types/api/client/requests/ActorsDeleteRequest.d.ts +4 -2
- package/types/api/client/requests/ActorsKvGetRequest.d.ts +12 -0
- package/types/api/client/requests/index.d.ts +1 -0
- package/types/api/types/Actor.d.ts +2 -0
- package/types/api/types/ActorError.d.ts +20 -0
- package/types/api/types/ActorErrorCrashed.d.ts +11 -0
- package/types/api/types/ActorErrorCrashedCrashed.d.ts +9 -0
- package/types/api/types/ActorErrorRunnerConnectionLost.d.ts +11 -0
- package/types/api/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.d.ts +10 -0
- package/types/api/types/ActorErrorRunnerDrainingTimeout.d.ts +11 -0
- package/types/api/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.d.ts +10 -0
- package/types/api/types/ActorErrorRunnerNoResponse.d.ts +11 -0
- package/types/api/types/ActorErrorRunnerNoResponseRunnerNoResponse.d.ts +10 -0
- package/types/api/types/ActorErrorRunnerPoolError.d.ts +11 -0
- package/types/api/types/RunnerConfig.d.ts +1 -0
- package/types/api/types/RunnerConfigResponse.d.ts +7 -0
- package/types/api/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +1 -1
- package/types/api/types/RunnerPoolError.d.ts +14 -0
- package/types/api/types/RunnerPoolErrorServerlessConnectionError.d.ts +11 -0
- package/types/api/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.d.ts +9 -0
- package/types/api/types/RunnerPoolErrorServerlessHttpError.d.ts +11 -0
- package/types/api/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.d.ts +10 -0
- package/types/api/types/RunnerPoolErrorServerlessInvalidPayload.d.ts +11 -0
- package/types/api/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.d.ts +9 -0
- package/types/api/types/index.d.ts +18 -0
- package/types/serialization/types/Actor.d.ts +2 -0
- package/types/serialization/types/ActorError.d.ts +15 -0
- package/types/serialization/types/ActorErrorCrashed.d.ts +13 -0
- package/types/serialization/types/ActorErrorCrashedCrashed.d.ts +12 -0
- package/types/serialization/types/ActorErrorRunnerConnectionLost.d.ts +13 -0
- package/types/serialization/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.d.ts +13 -0
- package/types/serialization/types/ActorErrorRunnerDrainingTimeout.d.ts +13 -0
- package/types/serialization/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.d.ts +13 -0
- package/types/serialization/types/ActorErrorRunnerNoResponse.d.ts +13 -0
- package/types/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.d.ts +13 -0
- package/types/serialization/types/ActorErrorRunnerPoolError.d.ts +13 -0
- package/types/serialization/types/RunnerConfig.d.ts +1 -0
- package/types/serialization/types/RunnerConfigResponse.d.ts +14 -0
- package/types/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +2 -2
- package/types/serialization/types/RunnerPoolError.d.ts +13 -0
- package/types/serialization/types/RunnerPoolErrorServerlessConnectionError.d.ts +13 -0
- package/types/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.d.ts +12 -0
- package/types/serialization/types/RunnerPoolErrorServerlessHttpError.d.ts +13 -0
- package/types/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.d.ts +13 -0
- package/types/serialization/types/RunnerPoolErrorServerlessInvalidPayload.d.ts +13 -0
- package/types/serialization/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.d.ts +12 -0
- package/types/serialization/types/index.d.ts +18 -0
|
@@ -2340,6 +2340,16 @@ 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,
|
|
2343
2353
|
ActorName: () => ActorName,
|
|
2344
2354
|
ActorsCreateRequest: () => ActorsCreateRequest,
|
|
2345
2355
|
ActorsCreateResponse: () => ActorsCreateResponse,
|
|
@@ -2369,6 +2379,7 @@ __export(serialization_exports, {
|
|
|
2369
2379
|
RunnerConfigKindNormal: () => RunnerConfigKindNormal,
|
|
2370
2380
|
RunnerConfigKindServerless: () => RunnerConfigKindServerless,
|
|
2371
2381
|
RunnerConfigKindServerlessServerless: () => RunnerConfigKindServerlessServerless,
|
|
2382
|
+
RunnerConfigResponse: () => RunnerConfigResponse,
|
|
2372
2383
|
RunnerConfigServerless: () => RunnerConfigServerless,
|
|
2373
2384
|
RunnerConfigVariant: () => RunnerConfigVariant2,
|
|
2374
2385
|
RunnerConfigsDeleteResponse: () => RunnerConfigsDeleteResponse,
|
|
@@ -2394,6 +2405,13 @@ __export(serialization_exports, {
|
|
|
2394
2405
|
RunnerConfigsServerlessMetadataErrorRequestTimedOut: () => RunnerConfigsServerlessMetadataErrorRequestTimedOut,
|
|
2395
2406
|
RunnerConfigsUpsertRequestBody: () => RunnerConfigsUpsertRequestBody,
|
|
2396
2407
|
RunnerConfigsUpsertResponse: () => RunnerConfigsUpsertResponse,
|
|
2408
|
+
RunnerPoolError: () => RunnerPoolError,
|
|
2409
|
+
RunnerPoolErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionError,
|
|
2410
|
+
RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError,
|
|
2411
|
+
RunnerPoolErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpError,
|
|
2412
|
+
RunnerPoolErrorServerlessHttpErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpErrorServerlessHttpError,
|
|
2413
|
+
RunnerPoolErrorServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayload,
|
|
2414
|
+
RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload,
|
|
2397
2415
|
RunnersListNamesResponse: () => RunnersListNamesResponse,
|
|
2398
2416
|
RunnersListResponse: () => RunnersListResponse,
|
|
2399
2417
|
namespaces: () => namespaces_exports2
|
|
@@ -2405,6 +2423,117 @@ var RivetId = schemas_exports.string();
|
|
|
2405
2423
|
// src/serialization/types/CrashPolicy.ts
|
|
2406
2424
|
var CrashPolicy2 = schemas_exports.enum_(["restart", "sleep", "destroy"]);
|
|
2407
2425
|
|
|
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
|
+
|
|
2408
2537
|
// src/serialization/types/Actor.ts
|
|
2409
2538
|
var Actor = schemas_exports.object({
|
|
2410
2539
|
actorId: schemas_exports.property("actor_id", RivetId),
|
|
@@ -2413,6 +2542,7 @@ var Actor = schemas_exports.object({
|
|
|
2413
2542
|
createTs: schemas_exports.property("create_ts", schemas_exports.number()),
|
|
2414
2543
|
datacenter: schemas_exports.string(),
|
|
2415
2544
|
destroyTs: schemas_exports.property("destroy_ts", schemas_exports.number().optional()),
|
|
2545
|
+
error: ActorError.optional(),
|
|
2416
2546
|
key: schemas_exports.string().optional(),
|
|
2417
2547
|
name: schemas_exports.string(),
|
|
2418
2548
|
namespaceId: schemas_exports.property("namespace_id", RivetId),
|
|
@@ -2568,6 +2698,10 @@ var RunnerConfigServerless = schemas_exports.object({
|
|
|
2568
2698
|
var RunnerConfig = schemas_exports.object({
|
|
2569
2699
|
normal: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
|
|
2570
2700
|
serverless: RunnerConfigServerless.optional(),
|
|
2701
|
+
drainOnVersionUpgrade: schemas_exports.property(
|
|
2702
|
+
"drain_on_version_upgrade",
|
|
2703
|
+
schemas_exports.boolean().optional()
|
|
2704
|
+
),
|
|
2571
2705
|
metadata: schemas_exports.unknown().optional()
|
|
2572
2706
|
});
|
|
2573
2707
|
|
|
@@ -2595,6 +2729,11 @@ var RunnerConfigKindServerless = schemas_exports.object({
|
|
|
2595
2729
|
// src/serialization/types/RunnerConfigKind.ts
|
|
2596
2730
|
var RunnerConfigKind = schemas_exports.undiscriminatedUnion([RunnerConfigKindNormal, RunnerConfigKindServerless]);
|
|
2597
2731
|
|
|
2732
|
+
// src/serialization/types/RunnerConfigResponse.ts
|
|
2733
|
+
var RunnerConfigResponse = schemas_exports.object({
|
|
2734
|
+
runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError.optional())
|
|
2735
|
+
}).extend(RunnerConfig);
|
|
2736
|
+
|
|
2598
2737
|
// src/serialization/types/RunnerConfigVariant.ts
|
|
2599
2738
|
var RunnerConfigVariant2 = schemas_exports.enum_(["serverless", "normal"]);
|
|
2600
2739
|
|
|
@@ -2603,7 +2742,7 @@ var RunnerConfigsDeleteResponse = schemas_exports.record(schemas_exports.string(
|
|
|
2603
2742
|
|
|
2604
2743
|
// src/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.ts
|
|
2605
2744
|
var RunnerConfigsListResponseRunnerConfigsValue = schemas_exports.object({
|
|
2606
|
-
datacenters: schemas_exports.record(schemas_exports.string(),
|
|
2745
|
+
datacenters: schemas_exports.record(schemas_exports.string(), RunnerConfigResponse)
|
|
2607
2746
|
});
|
|
2608
2747
|
|
|
2609
2748
|
// src/serialization/types/RunnerConfigsListResponse.ts
|
|
@@ -2976,7 +3115,7 @@ var Metadata = class {
|
|
|
2976
3115
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
2977
3116
|
"metadata"
|
|
2978
3117
|
),
|
|
2979
|
-
method: "
|
|
3118
|
+
method: "GET",
|
|
2980
3119
|
headers: {
|
|
2981
3120
|
Authorization: await this._getAuthorizationHeader(),
|
|
2982
3121
|
"X-Fern-Language": "JavaScript",
|
|
@@ -3012,7 +3151,7 @@ var Metadata = class {
|
|
|
3012
3151
|
body: _response.error.rawBody
|
|
3013
3152
|
});
|
|
3014
3153
|
case "timeout":
|
|
3015
|
-
throw new RivetTimeoutError("Timeout exceeded when calling
|
|
3154
|
+
throw new RivetTimeoutError("Timeout exceeded when calling GET /metadata.");
|
|
3016
3155
|
case "unknown":
|
|
3017
3156
|
throw new RivetError({
|
|
3018
3157
|
message: _response.error.errorMessage
|
|
@@ -3742,14 +3881,14 @@ var RivetClient = class {
|
|
|
3742
3881
|
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3743
3882
|
*
|
|
3744
3883
|
* @example
|
|
3745
|
-
* await client.actorsDelete("actor_id"
|
|
3884
|
+
* await client.actorsDelete("actor_id", {
|
|
3885
|
+
* namespace: "namespace"
|
|
3886
|
+
* })
|
|
3746
3887
|
*/
|
|
3747
|
-
async actorsDelete(actorId, request
|
|
3888
|
+
async actorsDelete(actorId, request, requestOptions) {
|
|
3748
3889
|
const { namespace } = request;
|
|
3749
3890
|
const _queryParams = {};
|
|
3750
|
-
|
|
3751
|
-
_queryParams["namespace"] = namespace;
|
|
3752
|
-
}
|
|
3891
|
+
_queryParams["namespace"] = namespace;
|
|
3753
3892
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3754
3893
|
url: (0, import_url_join6.default)(
|
|
3755
3894
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
@@ -3802,12 +3941,18 @@ var RivetClient = class {
|
|
|
3802
3941
|
/**
|
|
3803
3942
|
* @param {Rivet.RivetId} actorId
|
|
3804
3943
|
* @param {string} key
|
|
3944
|
+
* @param {Rivet.ActorsKvGetRequest} request
|
|
3805
3945
|
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3806
3946
|
*
|
|
3807
3947
|
* @example
|
|
3808
|
-
* await client.actorsKvGet("actor_id", "key"
|
|
3948
|
+
* await client.actorsKvGet("actor_id", "key", {
|
|
3949
|
+
* namespace: "namespace"
|
|
3950
|
+
* })
|
|
3809
3951
|
*/
|
|
3810
|
-
async actorsKvGet(actorId, key, requestOptions) {
|
|
3952
|
+
async actorsKvGet(actorId, key, request, requestOptions) {
|
|
3953
|
+
const { namespace } = request;
|
|
3954
|
+
const _queryParams = {};
|
|
3955
|
+
_queryParams["namespace"] = namespace;
|
|
3811
3956
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3812
3957
|
url: (0, import_url_join6.default)(
|
|
3813
3958
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
@@ -3822,6 +3967,7 @@ var RivetClient = class {
|
|
|
3822
3967
|
...requestOptions?.headers
|
|
3823
3968
|
},
|
|
3824
3969
|
contentType: "application/json",
|
|
3970
|
+
queryParameters: _queryParams,
|
|
3825
3971
|
requestType: "json",
|
|
3826
3972
|
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
3827
3973
|
maxRetries: requestOptions?.maxRetries,
|
|
@@ -31,6 +31,16 @@ 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,
|
|
34
44
|
ActorName: () => ActorName,
|
|
35
45
|
ActorsCreateRequest: () => ActorsCreateRequest,
|
|
36
46
|
ActorsCreateResponse: () => ActorsCreateResponse,
|
|
@@ -60,6 +70,7 @@ __export(serialization_exports, {
|
|
|
60
70
|
RunnerConfigKindNormal: () => RunnerConfigKindNormal,
|
|
61
71
|
RunnerConfigKindServerless: () => RunnerConfigKindServerless,
|
|
62
72
|
RunnerConfigKindServerlessServerless: () => RunnerConfigKindServerlessServerless,
|
|
73
|
+
RunnerConfigResponse: () => RunnerConfigResponse,
|
|
63
74
|
RunnerConfigServerless: () => RunnerConfigServerless,
|
|
64
75
|
RunnerConfigVariant: () => RunnerConfigVariant,
|
|
65
76
|
RunnerConfigsDeleteResponse: () => RunnerConfigsDeleteResponse,
|
|
@@ -85,6 +96,13 @@ __export(serialization_exports, {
|
|
|
85
96
|
RunnerConfigsServerlessMetadataErrorRequestTimedOut: () => RunnerConfigsServerlessMetadataErrorRequestTimedOut,
|
|
86
97
|
RunnerConfigsUpsertRequestBody: () => RunnerConfigsUpsertRequestBody,
|
|
87
98
|
RunnerConfigsUpsertResponse: () => RunnerConfigsUpsertResponse,
|
|
99
|
+
RunnerPoolError: () => RunnerPoolError,
|
|
100
|
+
RunnerPoolErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionError,
|
|
101
|
+
RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError: () => RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError,
|
|
102
|
+
RunnerPoolErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpError,
|
|
103
|
+
RunnerPoolErrorServerlessHttpErrorServerlessHttpError: () => RunnerPoolErrorServerlessHttpErrorServerlessHttpError,
|
|
104
|
+
RunnerPoolErrorServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayload,
|
|
105
|
+
RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload: () => RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload,
|
|
88
106
|
RunnersListNamesResponse: () => RunnersListNamesResponse,
|
|
89
107
|
RunnersListResponse: () => RunnersListResponse,
|
|
90
108
|
namespaces: () => namespaces_exports
|
|
@@ -1559,6 +1577,117 @@ var RivetId = schemas_exports.string();
|
|
|
1559
1577
|
// src/serialization/types/CrashPolicy.ts
|
|
1560
1578
|
var CrashPolicy = schemas_exports.enum_(["restart", "sleep", "destroy"]);
|
|
1561
1579
|
|
|
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
|
+
|
|
1562
1691
|
// src/serialization/types/Actor.ts
|
|
1563
1692
|
var Actor = schemas_exports.object({
|
|
1564
1693
|
actorId: schemas_exports.property("actor_id", RivetId),
|
|
@@ -1567,6 +1696,7 @@ var Actor = schemas_exports.object({
|
|
|
1567
1696
|
createTs: schemas_exports.property("create_ts", schemas_exports.number()),
|
|
1568
1697
|
datacenter: schemas_exports.string(),
|
|
1569
1698
|
destroyTs: schemas_exports.property("destroy_ts", schemas_exports.number().optional()),
|
|
1699
|
+
error: ActorError.optional(),
|
|
1570
1700
|
key: schemas_exports.string().optional(),
|
|
1571
1701
|
name: schemas_exports.string(),
|
|
1572
1702
|
namespaceId: schemas_exports.property("namespace_id", RivetId),
|
|
@@ -1722,6 +1852,10 @@ var RunnerConfigServerless = schemas_exports.object({
|
|
|
1722
1852
|
var RunnerConfig = schemas_exports.object({
|
|
1723
1853
|
normal: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
|
|
1724
1854
|
serverless: RunnerConfigServerless.optional(),
|
|
1855
|
+
drainOnVersionUpgrade: schemas_exports.property(
|
|
1856
|
+
"drain_on_version_upgrade",
|
|
1857
|
+
schemas_exports.boolean().optional()
|
|
1858
|
+
),
|
|
1725
1859
|
metadata: schemas_exports.unknown().optional()
|
|
1726
1860
|
});
|
|
1727
1861
|
|
|
@@ -1749,6 +1883,11 @@ var RunnerConfigKindServerless = schemas_exports.object({
|
|
|
1749
1883
|
// src/serialization/types/RunnerConfigKind.ts
|
|
1750
1884
|
var RunnerConfigKind = schemas_exports.undiscriminatedUnion([RunnerConfigKindNormal, RunnerConfigKindServerless]);
|
|
1751
1885
|
|
|
1886
|
+
// src/serialization/types/RunnerConfigResponse.ts
|
|
1887
|
+
var RunnerConfigResponse = schemas_exports.object({
|
|
1888
|
+
runnerPoolError: schemas_exports.property("runner_pool_error", RunnerPoolError.optional())
|
|
1889
|
+
}).extend(RunnerConfig);
|
|
1890
|
+
|
|
1752
1891
|
// src/serialization/types/RunnerConfigVariant.ts
|
|
1753
1892
|
var RunnerConfigVariant = schemas_exports.enum_(["serverless", "normal"]);
|
|
1754
1893
|
|
|
@@ -1757,7 +1896,7 @@ var RunnerConfigsDeleteResponse = schemas_exports.record(schemas_exports.string(
|
|
|
1757
1896
|
|
|
1758
1897
|
// src/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.ts
|
|
1759
1898
|
var RunnerConfigsListResponseRunnerConfigsValue = schemas_exports.object({
|
|
1760
|
-
datacenters: schemas_exports.record(schemas_exports.string(),
|
|
1899
|
+
datacenters: schemas_exports.record(schemas_exports.string(), RunnerConfigResponse)
|
|
1761
1900
|
});
|
|
1762
1901
|
|
|
1763
1902
|
// src/serialization/types/RunnerConfigsListResponse.ts
|