@rivetkit/engine-api-full 0.0.0-active-actors-fix-active-count.253e406 → 0.0.0-bisect-sync-sqlite-1.910d1c7
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 +551 -850
- package/dist/browser/cjs/package.json +3 -0
- package/dist/browser/cjs/serialization.js +155 -287
- package/dist/browser/esm/index.js +551 -850
- package/dist/browser/esm/package.json +3 -0
- package/dist/browser/esm/serialization.js +155 -287
- package/dist/node/cjs/index.js +551 -850
- package/dist/node/cjs/package.json +3 -0
- package/dist/node/cjs/serialization.js +175 -322
- package/dist/node/esm/index.js +551 -850
- package/dist/node/esm/package.json +3 -0
- package/dist/node/esm/serialization.js +155 -287
- package/package.json +7 -2
- package/types/Client.d.ts +16 -83
- package/types/api/client/requests/ActorsCreateRequest.d.ts +3 -7
- package/types/api/client/requests/ActorsDeleteRequest.d.ts +1 -1
- package/types/api/client/requests/ActorsForkRequest.d.ts +14 -0
- package/types/api/client/requests/ActorsGetOrCreateRequest.d.ts +4 -8
- package/types/api/client/requests/ActorsGetRequest.d.ts +3 -0
- package/types/api/client/requests/ActorsListNamesRequest.d.ts +1 -1
- package/types/api/client/requests/ActorsListRequest.d.ts +2 -5
- package/types/api/client/requests/ActorsRescheduleRequest.d.ts +1 -5
- package/types/api/client/requests/ActorsSleepRequest.d.ts +1 -5
- package/types/api/client/requests/index.d.ts +2 -6
- package/types/api/resources/{health → authTokens}/client/Client.d.ts +6 -11
- package/types/api/resources/authTokens/client/index.d.ts +2 -0
- package/types/api/resources/authTokens/client/requests/AuthTokenCreateRequest.d.ts +25 -0
- package/types/api/resources/authTokens/client/requests/index.d.ts +1 -0
- package/types/api/resources/index.d.ts +4 -5
- package/types/api/resources/namespaces/client/Client.d.ts +12 -1
- package/types/api/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +0 -2
- package/types/api/resources/namespaces/client/requests/NamespacesListRequest.d.ts +0 -6
- package/types/api/resources/pools/client/Client.d.ts +57 -0
- package/types/api/resources/pools/client/requests/PoolsDeleteRequest.d.ts +3 -0
- package/types/api/resources/pools/client/requests/PoolsGetRequest.d.ts +3 -0
- package/types/api/resources/{runners/client/requests/RunnersListNamesRequest.d.ts → pools/client/requests/PoolsListNodesRequest.d.ts} +2 -2
- package/types/api/resources/{envoys/client/requests/EnvoysListRequest.d.ts → pools/client/requests/PoolsListRequest.d.ts} +2 -4
- package/types/api/resources/pools/client/requests/PoolsUpsertRequest.d.ts +8 -0
- package/types/api/resources/pools/client/requests/index.d.ts +5 -0
- package/types/api/types/Actor.d.ts +23 -27
- package/types/api/types/ActorName.d.ts +1 -3
- package/types/api/types/ActorsCreateResponse.d.ts +2 -3
- package/types/api/types/ActorsDeleteResponse.d.ts +1 -4
- package/types/api/types/ActorsForkResponse.d.ts +4 -0
- package/types/api/types/ActorsGetOrCreateResponse.d.ts +1 -3
- package/types/api/types/ActorsGetResponse.d.ts +4 -0
- package/types/api/types/ActorsListNamesResponse.d.ts +1 -4
- package/types/api/types/ActorsListResponse.d.ts +1 -4
- package/types/api/types/ActorsRescheduleResponse.d.ts +1 -4
- package/types/api/types/ActorsSleepResponse.d.ts +1 -4
- package/types/api/types/AuthOperationKind.d.ts +1 -0
- package/types/api/types/AuthResourceKind.d.ts +1 -0
- package/types/api/types/AuthTargetScope.d.ts +4 -0
- package/types/api/types/AuthTokenCreateResponse.d.ts +8 -0
- package/types/api/types/AuthTokenGrant.d.ts +7 -0
- package/types/api/types/AuthTokenInspectResponse.d.ts +13 -0
- package/types/api/types/Datacenter.d.ts +1 -5
- package/types/api/types/DatacentersListResponse.d.ts +1 -5
- package/types/api/types/ErrorResponse.d.ts +10 -0
- package/types/api/types/MetadataGetResponse.d.ts +8 -10
- package/types/api/types/Namespace.d.ts +13 -6
- package/types/api/types/NamespaceForkedFrom.d.ts +14 -0
- package/types/api/types/NamespaceListResponse.d.ts +1 -4
- package/types/api/types/NamespaceSkippedActor.d.ts +14 -0
- package/types/api/types/NamespaceStatus.d.ts +18 -0
- package/types/api/types/{HealthFanoutResponse.d.ts → NamespacesArchiveResponse.d.ts} +2 -2
- package/types/api/types/NamespacesCreateResponse.d.ts +0 -3
- package/types/api/types/Node.d.ts +20 -0
- package/types/api/types/Pagination.d.ts +2 -4
- package/types/api/types/Pool.d.ts +14 -0
- package/types/api/types/PoolResponse.d.ts +4 -0
- package/types/api/types/PoolsDeleteResponse.d.ts +1 -0
- package/types/api/types/PoolsListNodesResponse.d.ts +5 -0
- package/types/api/types/PoolsListResponse.d.ts +5 -0
- package/types/api/types/RivetId.d.ts +0 -3
- package/types/api/types/index.d.ts +19 -33
- package/types/serialization/client/requests/ActorsCreateRequest.d.ts +1 -4
- package/types/serialization/client/requests/ActorsForkRequest.d.ts +10 -0
- package/types/serialization/client/requests/ActorsGetOrCreateRequest.d.ts +2 -5
- package/types/serialization/client/requests/index.d.ts +1 -2
- package/types/serialization/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +0 -1
- package/types/serialization/types/Actor.d.ts +11 -17
- package/types/serialization/types/ActorName.d.ts +0 -3
- package/types/serialization/types/ActorsCreateResponse.d.ts +1 -3
- package/types/serialization/types/ActorsDeleteResponse.d.ts +1 -4
- package/types/serialization/types/ActorsForkResponse.d.ts +10 -0
- package/types/serialization/types/ActorsGetOrCreateResponse.d.ts +0 -3
- package/types/serialization/types/ActorsGetResponse.d.ts +10 -0
- package/types/serialization/types/ActorsListNamesResponse.d.ts +0 -5
- package/types/serialization/types/ActorsListResponse.d.ts +1 -4
- package/types/serialization/types/ActorsRescheduleResponse.d.ts +1 -4
- package/types/serialization/types/ActorsSleepResponse.d.ts +1 -4
- package/types/serialization/types/AuthOperationKind.d.ts +7 -0
- package/types/serialization/types/AuthResourceKind.d.ts +7 -0
- package/types/serialization/types/AuthTargetScope.d.ts +10 -0
- package/types/serialization/types/AuthTokenCreateResponse.d.ts +11 -0
- package/types/serialization/types/AuthTokenGrant.d.ts +14 -0
- package/types/serialization/types/AuthTokenInspectResponse.d.ts +14 -0
- package/types/serialization/types/Datacenter.d.ts +0 -5
- package/types/serialization/types/DatacentersListResponse.d.ts +1 -6
- package/types/serialization/types/ErrorResponse.d.ts +12 -0
- package/types/serialization/types/MetadataGetResponse.d.ts +4 -10
- package/types/serialization/types/Namespace.d.ts +9 -7
- package/types/serialization/types/NamespaceForkedFrom.d.ts +14 -0
- package/types/serialization/types/NamespaceListResponse.d.ts +1 -4
- package/types/serialization/types/NamespaceSkippedActor.d.ts +14 -0
- package/types/serialization/types/NamespaceStatus.d.ts +10 -0
- package/types/serialization/types/NamespacesArchiveResponse.d.ts +13 -0
- package/types/serialization/types/NamespacesCreateResponse.d.ts +0 -3
- package/types/serialization/types/Node.d.ts +17 -0
- package/types/serialization/types/Pagination.d.ts +1 -4
- package/types/serialization/types/Pool.d.ts +14 -0
- package/types/serialization/types/PoolResponse.d.ts +10 -0
- package/types/serialization/types/PoolsDeleteResponse.d.ts +7 -0
- package/types/serialization/types/PoolsListNodesResponse.d.ts +12 -0
- package/types/serialization/types/PoolsListResponse.d.ts +12 -0
- package/types/serialization/types/RivetId.d.ts +0 -3
- package/types/serialization/types/index.d.ts +19 -33
- package/types/api/client/requests/ActorsKvGetRequest.d.ts +0 -12
- package/types/api/client/requests/RunnerConfigsDeleteRequest.d.ts +0 -12
- package/types/api/client/requests/RunnerConfigsListRequest.d.ts +0 -21
- package/types/api/client/requests/RunnerConfigsRefreshMetadataRequest.d.ts +0 -17
- package/types/api/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +0 -15
- package/types/api/client/requests/RunnerConfigsUpsertRequestBody.d.ts +0 -17
- package/types/api/resources/envoys/client/Client.d.ts +0 -39
- package/types/api/resources/envoys/client/requests/index.d.ts +0 -1
- package/types/api/resources/health/client/index.d.ts +0 -1
- package/types/api/resources/runners/client/Client.d.ts +0 -54
- package/types/api/resources/runners/client/index.d.ts +0 -1
- package/types/api/resources/runners/client/requests/RunnersListRequest.d.ts +0 -22
- package/types/api/resources/runners/client/requests/index.d.ts +0 -2
- package/types/api/resources/runners/index.d.ts +0 -1
- package/types/api/types/ActorsKvGetResponse.d.ts +0 -7
- package/types/api/types/ActorsRescheduleRequestBody.d.ts +0 -4
- package/types/api/types/ActorsSleepRequestBody.d.ts +0 -4
- package/types/api/types/CrashPolicy.d.ts +0 -9
- package/types/api/types/DatacenterHealth.d.ts +0 -12
- package/types/api/types/Envoy.d.ts +0 -18
- package/types/api/types/EnvoysListResponse.d.ts +0 -8
- package/types/api/types/HealthResponse.d.ts +0 -8
- package/types/api/types/HealthStatus.d.ts +0 -8
- package/types/api/types/Runner.d.ts +0 -21
- package/types/api/types/RunnerConfig.d.ts +0 -10
- package/types/api/types/RunnerConfigKind.d.ts +0 -5
- package/types/api/types/RunnerConfigKindNormal.d.ts +0 -6
- package/types/api/types/RunnerConfigKindServerless.d.ts +0 -7
- package/types/api/types/RunnerConfigKindServerlessServerless.d.ts +0 -22
- package/types/api/types/RunnerConfigResponse.d.ts +0 -8
- package/types/api/types/RunnerConfigServerless.d.ts +0 -22
- package/types/api/types/RunnerConfigVariant.d.ts +0 -8
- package/types/api/types/RunnerConfigsDeleteResponse.d.ts +0 -4
- package/types/api/types/RunnerConfigsListResponse.d.ts +0 -8
- package/types/api/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +0 -7
- package/types/api/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +0 -4
- package/types/api/types/RunnerConfigsRefreshMetadataResponse.d.ts +0 -4
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +0 -5
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +0 -7
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +0 -7
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +0 -7
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +0 -6
- package/types/api/types/RunnerConfigsServerlessMetadataError.d.ts +0 -16
- package/types/api/types/RunnerConfigsUpsertResponse.d.ts +0 -6
- package/types/api/types/RunnersListNamesResponse.d.ts +0 -8
- package/types/api/types/RunnersListResponse.d.ts +0 -8
- package/types/serialization/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +0 -13
- package/types/serialization/client/requests/RunnerConfigsUpsertRequestBody.d.ts +0 -13
- package/types/serialization/types/ActorsKvGetResponse.d.ts +0 -13
- package/types/serialization/types/ActorsRescheduleRequestBody.d.ts +0 -10
- package/types/serialization/types/ActorsSleepRequestBody.d.ts +0 -10
- package/types/serialization/types/CrashPolicy.d.ts +0 -10
- package/types/serialization/types/DatacenterHealth.d.ts +0 -19
- package/types/serialization/types/Envoy.d.ts +0 -24
- package/types/serialization/types/EnvoysListResponse.d.ts +0 -15
- package/types/serialization/types/HealthFanoutResponse.d.ts +0 -13
- package/types/serialization/types/HealthResponse.d.ts +0 -14
- package/types/serialization/types/HealthStatus.d.ts +0 -10
- package/types/serialization/types/Runner.d.ts +0 -27
- package/types/serialization/types/RunnerConfig.d.ts +0 -16
- package/types/serialization/types/RunnerConfigKind.d.ts +0 -12
- package/types/serialization/types/RunnerConfigKindNormal.d.ts +0 -12
- package/types/serialization/types/RunnerConfigKindServerless.d.ts +0 -13
- package/types/serialization/types/RunnerConfigKindServerlessServerless.d.ts +0 -21
- package/types/serialization/types/RunnerConfigResponse.d.ts +0 -14
- package/types/serialization/types/RunnerConfigServerless.d.ts +0 -21
- package/types/serialization/types/RunnerConfigVariant.d.ts +0 -10
- package/types/serialization/types/RunnerConfigsDeleteResponse.d.ts +0 -10
- package/types/serialization/types/RunnerConfigsListResponse.d.ts +0 -15
- package/types/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +0 -13
- package/types/serialization/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +0 -10
- package/types/serialization/types/RunnerConfigsRefreshMetadataResponse.d.ts +0 -10
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +0 -12
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +0 -13
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +0 -13
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +0 -13
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +0 -12
- package/types/serialization/types/RunnerConfigsServerlessMetadataError.d.ts +0 -14
- package/types/serialization/types/RunnerConfigsUpsertResponse.d.ts +0 -12
- package/types/serialization/types/RunnersListNamesResponse.d.ts +0 -14
- package/types/serialization/types/RunnersListResponse.d.ts +0 -15
- /package/types/api/resources/{envoys → authTokens}/index.d.ts +0 -0
- /package/types/api/resources/{envoys → pools}/client/index.d.ts +0 -0
- /package/types/api/resources/{health → pools}/index.d.ts +0 -0
package/dist/node/esm/index.js
CHANGED
|
@@ -551,53 +551,29 @@ var init_NodePre18StreamWrapper = __esm({
|
|
|
551
551
|
// src/api/index.ts
|
|
552
552
|
var api_exports = {};
|
|
553
553
|
__export(api_exports, {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
RunnerConfigVariant: () => RunnerConfigVariant,
|
|
554
|
+
NamespaceStatus: () => NamespaceStatus,
|
|
555
|
+
authTokens: () => authTokens_exports,
|
|
557
556
|
datacenters: () => datacenters_exports,
|
|
558
|
-
envoys: () => envoys_exports,
|
|
559
|
-
health: () => health_exports,
|
|
560
557
|
metadata: () => metadata_exports,
|
|
561
|
-
namespaces: () =>
|
|
562
|
-
|
|
558
|
+
namespaces: () => namespaces_exports2,
|
|
559
|
+
pools: () => pools_exports
|
|
563
560
|
});
|
|
564
561
|
|
|
565
|
-
// src/api/types/
|
|
566
|
-
var
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
562
|
+
// src/api/types/NamespaceStatus.ts
|
|
563
|
+
var NamespaceStatus = {
|
|
564
|
+
Creating: "creating",
|
|
565
|
+
Forking: "forking",
|
|
566
|
+
Live: "live",
|
|
567
|
+
Archiving: "archiving",
|
|
568
|
+
Archived: "archived",
|
|
569
|
+
Failed: "failed"
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
-
// src/api/
|
|
573
|
-
var
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
};
|
|
577
|
-
|
|
578
|
-
// src/api/types/RunnerConfigVariant.ts
|
|
579
|
-
var RunnerConfigVariant = {
|
|
580
|
-
Serverless: "serverless",
|
|
581
|
-
Normal: "normal"
|
|
582
|
-
};
|
|
583
|
-
|
|
584
|
-
// src/api/resources/datacenters/index.ts
|
|
585
|
-
var datacenters_exports = {};
|
|
586
|
-
|
|
587
|
-
// src/api/resources/envoys/index.ts
|
|
588
|
-
var envoys_exports = {};
|
|
589
|
-
|
|
590
|
-
// src/api/resources/health/index.ts
|
|
591
|
-
var health_exports = {};
|
|
592
|
-
|
|
593
|
-
// src/api/resources/metadata/index.ts
|
|
594
|
-
var metadata_exports = {};
|
|
595
|
-
|
|
596
|
-
// src/api/resources/namespaces/index.ts
|
|
597
|
-
var namespaces_exports = {};
|
|
598
|
-
|
|
599
|
-
// src/api/resources/runners/index.ts
|
|
600
|
-
var runners_exports = {};
|
|
572
|
+
// src/api/resources/authTokens/index.ts
|
|
573
|
+
var authTokens_exports = {};
|
|
574
|
+
__export(authTokens_exports, {
|
|
575
|
+
AuthTokens: () => AuthTokens
|
|
576
|
+
});
|
|
601
577
|
|
|
602
578
|
// src/core/json.ts
|
|
603
579
|
var toJson = (value, replacer, space) => {
|
|
@@ -2312,6 +2288,9 @@ function transformAndValidateUnion({
|
|
|
2312
2288
|
};
|
|
2313
2289
|
}
|
|
2314
2290
|
|
|
2291
|
+
// src/api/resources/authTokens/client/Client.ts
|
|
2292
|
+
import urlJoin from "url-join";
|
|
2293
|
+
|
|
2315
2294
|
// src/serialization/index.ts
|
|
2316
2295
|
var serialization_exports = {};
|
|
2317
2296
|
__export(serialization_exports, {
|
|
@@ -2320,82 +2299,62 @@ __export(serialization_exports, {
|
|
|
2320
2299
|
ActorsCreateRequest: () => ActorsCreateRequest,
|
|
2321
2300
|
ActorsCreateResponse: () => ActorsCreateResponse,
|
|
2322
2301
|
ActorsDeleteResponse: () => ActorsDeleteResponse,
|
|
2302
|
+
ActorsForkRequest: () => ActorsForkRequest,
|
|
2303
|
+
ActorsForkResponse: () => ActorsForkResponse,
|
|
2323
2304
|
ActorsGetOrCreateRequest: () => ActorsGetOrCreateRequest,
|
|
2324
2305
|
ActorsGetOrCreateResponse: () => ActorsGetOrCreateResponse,
|
|
2325
|
-
|
|
2306
|
+
ActorsGetResponse: () => ActorsGetResponse,
|
|
2326
2307
|
ActorsListNamesResponse: () => ActorsListNamesResponse,
|
|
2327
2308
|
ActorsListResponse: () => ActorsListResponse,
|
|
2328
|
-
ActorsRescheduleRequestBody: () => ActorsRescheduleRequestBody,
|
|
2329
2309
|
ActorsRescheduleResponse: () => ActorsRescheduleResponse,
|
|
2330
|
-
ActorsSleepRequestBody: () => ActorsSleepRequestBody,
|
|
2331
2310
|
ActorsSleepResponse: () => ActorsSleepResponse,
|
|
2332
|
-
|
|
2311
|
+
AuthOperationKind: () => AuthOperationKind,
|
|
2312
|
+
AuthResourceKind: () => AuthResourceKind,
|
|
2313
|
+
AuthTargetScope: () => AuthTargetScope,
|
|
2314
|
+
AuthTokenCreateResponse: () => AuthTokenCreateResponse,
|
|
2315
|
+
AuthTokenGrant: () => AuthTokenGrant,
|
|
2316
|
+
AuthTokenInspectResponse: () => AuthTokenInspectResponse,
|
|
2333
2317
|
Datacenter: () => Datacenter,
|
|
2334
|
-
DatacenterHealth: () => DatacenterHealth,
|
|
2335
2318
|
DatacentersListResponse: () => DatacentersListResponse,
|
|
2336
|
-
|
|
2337
|
-
EnvoysListResponse: () => EnvoysListResponse,
|
|
2338
|
-
HealthFanoutResponse: () => HealthFanoutResponse,
|
|
2339
|
-
HealthResponse: () => HealthResponse,
|
|
2340
|
-
HealthStatus: () => HealthStatus2,
|
|
2319
|
+
ErrorResponse: () => ErrorResponse,
|
|
2341
2320
|
MetadataGetResponse: () => MetadataGetResponse,
|
|
2342
2321
|
Namespace: () => Namespace,
|
|
2322
|
+
NamespaceForkedFrom: () => NamespaceForkedFrom,
|
|
2343
2323
|
NamespaceListResponse: () => NamespaceListResponse,
|
|
2324
|
+
NamespaceSkippedActor: () => NamespaceSkippedActor,
|
|
2325
|
+
NamespaceStatus: () => NamespaceStatus2,
|
|
2326
|
+
NamespacesArchiveResponse: () => NamespacesArchiveResponse,
|
|
2344
2327
|
NamespacesCreateRequest: () => NamespacesCreateRequest,
|
|
2345
2328
|
NamespacesCreateResponse: () => NamespacesCreateResponse,
|
|
2329
|
+
Node: () => Node,
|
|
2346
2330
|
Pagination: () => Pagination,
|
|
2331
|
+
Pool: () => Pool,
|
|
2332
|
+
PoolResponse: () => PoolResponse,
|
|
2333
|
+
PoolsDeleteResponse: () => PoolsDeleteResponse,
|
|
2334
|
+
PoolsListNodesResponse: () => PoolsListNodesResponse,
|
|
2335
|
+
PoolsListResponse: () => PoolsListResponse,
|
|
2347
2336
|
RivetId: () => RivetId,
|
|
2348
|
-
|
|
2349
|
-
RunnerConfig: () => RunnerConfig,
|
|
2350
|
-
RunnerConfigKind: () => RunnerConfigKind,
|
|
2351
|
-
RunnerConfigKindNormal: () => RunnerConfigKindNormal,
|
|
2352
|
-
RunnerConfigKindServerless: () => RunnerConfigKindServerless,
|
|
2353
|
-
RunnerConfigKindServerlessServerless: () => RunnerConfigKindServerlessServerless,
|
|
2354
|
-
RunnerConfigResponse: () => RunnerConfigResponse,
|
|
2355
|
-
RunnerConfigServerless: () => RunnerConfigServerless,
|
|
2356
|
-
RunnerConfigVariant: () => RunnerConfigVariant2,
|
|
2357
|
-
RunnerConfigsDeleteResponse: () => RunnerConfigsDeleteResponse,
|
|
2358
|
-
RunnerConfigsListResponse: () => RunnerConfigsListResponse,
|
|
2359
|
-
RunnerConfigsListResponseRunnerConfigsValue: () => RunnerConfigsListResponseRunnerConfigsValue,
|
|
2360
|
-
RunnerConfigsRefreshMetadataRequestBody: () => RunnerConfigsRefreshMetadataRequestBody,
|
|
2361
|
-
RunnerConfigsRefreshMetadataResponse: () => RunnerConfigsRefreshMetadataResponse,
|
|
2362
|
-
RunnerConfigsServerlessHealthCheckRequest: () => RunnerConfigsServerlessHealthCheckRequest,
|
|
2363
|
-
RunnerConfigsServerlessHealthCheckResponse: () => RunnerConfigsServerlessHealthCheckResponse,
|
|
2364
|
-
RunnerConfigsServerlessHealthCheckResponseFailure: () => RunnerConfigsServerlessHealthCheckResponseFailure,
|
|
2365
|
-
RunnerConfigsServerlessHealthCheckResponseFailureFailure: () => RunnerConfigsServerlessHealthCheckResponseFailureFailure,
|
|
2366
|
-
RunnerConfigsServerlessHealthCheckResponseSuccess: () => RunnerConfigsServerlessHealthCheckResponseSuccess,
|
|
2367
|
-
RunnerConfigsServerlessHealthCheckResponseSuccessSuccess: () => RunnerConfigsServerlessHealthCheckResponseSuccessSuccess,
|
|
2368
|
-
RunnerConfigsServerlessMetadataError: () => RunnerConfigsServerlessMetadataError,
|
|
2369
|
-
RunnerConfigsUpsertRequestBody: () => RunnerConfigsUpsertRequestBody,
|
|
2370
|
-
RunnerConfigsUpsertResponse: () => RunnerConfigsUpsertResponse,
|
|
2371
|
-
RunnersListNamesResponse: () => RunnersListNamesResponse,
|
|
2372
|
-
RunnersListResponse: () => RunnersListResponse,
|
|
2373
|
-
namespaces: () => namespaces_exports2
|
|
2337
|
+
namespaces: () => namespaces_exports
|
|
2374
2338
|
});
|
|
2375
2339
|
|
|
2376
2340
|
// src/serialization/types/RivetId.ts
|
|
2377
2341
|
var RivetId = schemas_exports.string();
|
|
2378
2342
|
|
|
2379
|
-
// src/serialization/types/CrashPolicy.ts
|
|
2380
|
-
var CrashPolicy2 = schemas_exports.enum_(["restart", "sleep", "destroy"]);
|
|
2381
|
-
|
|
2382
2343
|
// src/serialization/types/Actor.ts
|
|
2383
2344
|
var Actor = schemas_exports.object({
|
|
2384
2345
|
actorId: schemas_exports.property("actor_id", RivetId),
|
|
2385
|
-
connectableTs: schemas_exports.property("connectable_ts", schemas_exports.number().optional()),
|
|
2386
|
-
crashPolicy: schemas_exports.property("crash_policy", CrashPolicy2),
|
|
2387
|
-
createTs: schemas_exports.property("create_ts", schemas_exports.number()),
|
|
2388
|
-
datacenter: schemas_exports.string(),
|
|
2389
|
-
destroyTs: schemas_exports.property("destroy_ts", schemas_exports.number().optional()),
|
|
2390
|
-
error: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
|
|
2391
|
-
key: schemas_exports.string().optional(),
|
|
2392
2346
|
name: schemas_exports.string(),
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2347
|
+
key: schemas_exports.string(),
|
|
2348
|
+
namespace: schemas_exports.string(),
|
|
2349
|
+
pool: schemas_exports.string(),
|
|
2350
|
+
createTs: schemas_exports.property("create_ts", schemas_exports.number()),
|
|
2351
|
+
startTs: schemas_exports.property("start_ts", schemas_exports.number().nullable()),
|
|
2352
|
+
pendingAllocationTs: schemas_exports.property("pending_allocation_ts", schemas_exports.number().nullable()),
|
|
2353
|
+
connectableTs: schemas_exports.property("connectable_ts", schemas_exports.number().nullable()),
|
|
2354
|
+
sleepTs: schemas_exports.property("sleep_ts", schemas_exports.number().nullable()),
|
|
2355
|
+
rescheduleTs: schemas_exports.property("reschedule_ts", schemas_exports.number().nullable()),
|
|
2356
|
+
destroyTs: schemas_exports.property("destroy_ts", schemas_exports.number().nullable()),
|
|
2357
|
+
forkedFrom: schemas_exports.property("forked_from", RivetId.nullable().optional())
|
|
2399
2358
|
});
|
|
2400
2359
|
|
|
2401
2360
|
// src/serialization/types/ActorName.ts
|
|
@@ -2405,11 +2364,17 @@ var ActorName = schemas_exports.object({
|
|
|
2405
2364
|
|
|
2406
2365
|
// src/serialization/types/ActorsCreateResponse.ts
|
|
2407
2366
|
var ActorsCreateResponse = schemas_exports.object({
|
|
2408
|
-
actor: Actor
|
|
2367
|
+
actor: Actor,
|
|
2368
|
+
created: schemas_exports.boolean()
|
|
2409
2369
|
});
|
|
2410
2370
|
|
|
2411
2371
|
// src/serialization/types/ActorsDeleteResponse.ts
|
|
2412
|
-
var ActorsDeleteResponse = schemas_exports.
|
|
2372
|
+
var ActorsDeleteResponse = schemas_exports.object({});
|
|
2373
|
+
|
|
2374
|
+
// src/serialization/types/ActorsForkResponse.ts
|
|
2375
|
+
var ActorsForkResponse = schemas_exports.object({
|
|
2376
|
+
actor: Actor
|
|
2377
|
+
});
|
|
2413
2378
|
|
|
2414
2379
|
// src/serialization/types/ActorsGetOrCreateResponse.ts
|
|
2415
2380
|
var ActorsGetOrCreateResponse = schemas_exports.object({
|
|
@@ -2417,21 +2382,19 @@ var ActorsGetOrCreateResponse = schemas_exports.object({
|
|
|
2417
2382
|
created: schemas_exports.boolean()
|
|
2418
2383
|
});
|
|
2419
2384
|
|
|
2420
|
-
// src/serialization/types/
|
|
2421
|
-
var
|
|
2422
|
-
|
|
2423
|
-
value: schemas_exports.string()
|
|
2424
|
-
});
|
|
2425
|
-
|
|
2426
|
-
// src/serialization/types/Pagination.ts
|
|
2427
|
-
var Pagination = schemas_exports.object({
|
|
2428
|
-
cursor: schemas_exports.string().optional()
|
|
2385
|
+
// src/serialization/types/ActorsGetResponse.ts
|
|
2386
|
+
var ActorsGetResponse = schemas_exports.object({
|
|
2387
|
+
actor: Actor
|
|
2429
2388
|
});
|
|
2430
2389
|
|
|
2431
2390
|
// src/serialization/types/ActorsListNamesResponse.ts
|
|
2432
2391
|
var ActorsListNamesResponse = schemas_exports.object({
|
|
2433
|
-
names: schemas_exports.record(schemas_exports.string(), ActorName)
|
|
2434
|
-
|
|
2392
|
+
names: schemas_exports.record(schemas_exports.string(), ActorName)
|
|
2393
|
+
});
|
|
2394
|
+
|
|
2395
|
+
// src/serialization/types/Pagination.ts
|
|
2396
|
+
var Pagination = schemas_exports.object({
|
|
2397
|
+
cursor: schemas_exports.string().nullable()
|
|
2435
2398
|
});
|
|
2436
2399
|
|
|
2437
2400
|
// src/serialization/types/ActorsListResponse.ts
|
|
@@ -2440,96 +2403,98 @@ var ActorsListResponse = schemas_exports.object({
|
|
|
2440
2403
|
pagination: Pagination
|
|
2441
2404
|
});
|
|
2442
2405
|
|
|
2443
|
-
// src/serialization/types/ActorsRescheduleRequestBody.ts
|
|
2444
|
-
var ActorsRescheduleRequestBody = schemas_exports.record(schemas_exports.string(), schemas_exports.unknown());
|
|
2445
|
-
|
|
2446
2406
|
// src/serialization/types/ActorsRescheduleResponse.ts
|
|
2447
|
-
var ActorsRescheduleResponse = schemas_exports.
|
|
2448
|
-
|
|
2449
|
-
// src/serialization/types/ActorsSleepRequestBody.ts
|
|
2450
|
-
var ActorsSleepRequestBody = schemas_exports.record(schemas_exports.string(), schemas_exports.unknown());
|
|
2407
|
+
var ActorsRescheduleResponse = schemas_exports.object({});
|
|
2451
2408
|
|
|
2452
2409
|
// src/serialization/types/ActorsSleepResponse.ts
|
|
2453
|
-
var ActorsSleepResponse = schemas_exports.
|
|
2410
|
+
var ActorsSleepResponse = schemas_exports.object({});
|
|
2454
2411
|
|
|
2455
|
-
// src/serialization/types/
|
|
2456
|
-
var
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2412
|
+
// src/serialization/types/AuthOperationKind.ts
|
|
2413
|
+
var AuthOperationKind = schemas_exports.enum_(["read", "update", "list", "create", "delete", "fork"]);
|
|
2414
|
+
|
|
2415
|
+
// src/serialization/types/AuthResourceKind.ts
|
|
2416
|
+
var AuthResourceKind = schemas_exports.enum_(["namespace", "actor", "node", "pool", "datacenter", "actor_gateway", "actor_kv"]);
|
|
2417
|
+
|
|
2418
|
+
// src/serialization/types/AuthTargetScope.ts
|
|
2419
|
+
var AuthTargetScope = schemas_exports.undiscriminatedUnion([schemas_exports.stringLiteral("any"), schemas_exports.object({
|
|
2420
|
+
id: RivetId
|
|
2421
|
+
})]);
|
|
2422
|
+
|
|
2423
|
+
// src/serialization/types/AuthTokenCreateResponse.ts
|
|
2424
|
+
var AuthTokenCreateResponse = schemas_exports.object({
|
|
2425
|
+
token: schemas_exports.string(),
|
|
2426
|
+
issuedTs: schemas_exports.property("issued_ts", schemas_exports.number()),
|
|
2427
|
+
expiresTs: schemas_exports.property("expires_ts", schemas_exports.number())
|
|
2460
2428
|
});
|
|
2461
2429
|
|
|
2462
|
-
// src/serialization/types/
|
|
2463
|
-
var
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2430
|
+
// src/serialization/types/AuthTokenGrant.ts
|
|
2431
|
+
var AuthTokenGrant = schemas_exports.object({
|
|
2432
|
+
resource: AuthResourceKind,
|
|
2433
|
+
target: AuthTargetScope,
|
|
2434
|
+
operations: schemas_exports.list(AuthOperationKind)
|
|
2467
2435
|
});
|
|
2468
2436
|
|
|
2469
|
-
// src/serialization/types/
|
|
2470
|
-
var
|
|
2437
|
+
// src/serialization/types/AuthTokenInspectResponse.ts
|
|
2438
|
+
var AuthTokenInspectResponse = schemas_exports.object({
|
|
2439
|
+
namespace: schemas_exports.string(),
|
|
2440
|
+
subject: schemas_exports.string().nullable(),
|
|
2441
|
+
grants: schemas_exports.list(AuthTokenGrant),
|
|
2442
|
+
issuedTs: schemas_exports.property("issued_ts", schemas_exports.number()),
|
|
2443
|
+
expiresTs: schemas_exports.property("expires_ts", schemas_exports.number())
|
|
2444
|
+
});
|
|
2471
2445
|
|
|
2472
|
-
// src/serialization/types/
|
|
2473
|
-
var
|
|
2474
|
-
|
|
2475
|
-
datacenterName: schemas_exports.property("datacenter_name", schemas_exports.string()),
|
|
2476
|
-
error: schemas_exports.string().optional(),
|
|
2477
|
-
response: HealthResponse.optional(),
|
|
2478
|
-
rttMs: schemas_exports.property("rtt_ms", schemas_exports.number().optional()),
|
|
2479
|
-
status: HealthStatus2
|
|
2446
|
+
// src/serialization/types/Datacenter.ts
|
|
2447
|
+
var Datacenter = schemas_exports.object({
|
|
2448
|
+
name: schemas_exports.string()
|
|
2480
2449
|
});
|
|
2481
2450
|
|
|
2482
2451
|
// src/serialization/types/DatacentersListResponse.ts
|
|
2483
2452
|
var DatacentersListResponse = schemas_exports.object({
|
|
2484
|
-
datacenters: schemas_exports.list(Datacenter)
|
|
2485
|
-
pagination: Pagination
|
|
2453
|
+
datacenters: schemas_exports.list(Datacenter)
|
|
2486
2454
|
});
|
|
2487
2455
|
|
|
2488
|
-
// src/serialization/types/
|
|
2489
|
-
var
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
lastPingTs: schemas_exports.property("last_ping_ts", schemas_exports.number()),
|
|
2495
|
-
lastRtt: schemas_exports.property("last_rtt", schemas_exports.number()),
|
|
2496
|
-
metadata: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
|
|
2497
|
-
namespaceId: schemas_exports.property("namespace_id", RivetId),
|
|
2498
|
-
poolName: schemas_exports.property("pool_name", schemas_exports.string()),
|
|
2499
|
-
slots: schemas_exports.number(),
|
|
2500
|
-
stopTs: schemas_exports.property("stop_ts", schemas_exports.number().optional()),
|
|
2501
|
-
version: schemas_exports.number()
|
|
2456
|
+
// src/serialization/types/ErrorResponse.ts
|
|
2457
|
+
var ErrorResponse = schemas_exports.object({
|
|
2458
|
+
group: schemas_exports.string(),
|
|
2459
|
+
code: schemas_exports.string(),
|
|
2460
|
+
message: schemas_exports.string(),
|
|
2461
|
+
metadata: schemas_exports.unknown().optional()
|
|
2502
2462
|
});
|
|
2503
2463
|
|
|
2504
|
-
// src/serialization/types/
|
|
2505
|
-
var
|
|
2506
|
-
|
|
2507
|
-
|
|
2464
|
+
// src/serialization/types/MetadataGetResponse.ts
|
|
2465
|
+
var MetadataGetResponse = schemas_exports.object({
|
|
2466
|
+
runtime: schemas_exports.stringLiteral("engine"),
|
|
2467
|
+
version: schemas_exports.string(),
|
|
2468
|
+
envoyProtocolVersion: schemas_exports.number(),
|
|
2469
|
+
actorNames: schemas_exports.record(schemas_exports.string(), ActorName).optional()
|
|
2508
2470
|
});
|
|
2509
2471
|
|
|
2510
|
-
// src/serialization/types/
|
|
2511
|
-
var
|
|
2512
|
-
|
|
2472
|
+
// src/serialization/types/NamespaceStatus.ts
|
|
2473
|
+
var NamespaceStatus2 = schemas_exports.enum_(["creating", "forking", "live", "archiving", "archived", "failed"]);
|
|
2474
|
+
|
|
2475
|
+
// src/serialization/types/NamespaceForkedFrom.ts
|
|
2476
|
+
var NamespaceForkedFrom = schemas_exports.object({
|
|
2477
|
+
namespace: schemas_exports.string(),
|
|
2478
|
+
forkNumber: schemas_exports.property("fork_number", schemas_exports.number()),
|
|
2479
|
+
forkedTs: schemas_exports.property("forked_ts", schemas_exports.number())
|
|
2513
2480
|
});
|
|
2514
2481
|
|
|
2515
|
-
// src/serialization/types/
|
|
2516
|
-
var
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
gitSha: schemas_exports.property("git_sha", schemas_exports.string()),
|
|
2521
|
-
runtime: schemas_exports.string(),
|
|
2522
|
-
rustcHost: schemas_exports.property("rustc_host", schemas_exports.string()),
|
|
2523
|
-
rustcVersion: schemas_exports.property("rustc_version", schemas_exports.string()),
|
|
2524
|
-
version: schemas_exports.string()
|
|
2482
|
+
// src/serialization/types/NamespaceSkippedActor.ts
|
|
2483
|
+
var NamespaceSkippedActor = schemas_exports.object({
|
|
2484
|
+
actorId: schemas_exports.property("actor_id", schemas_exports.string()),
|
|
2485
|
+
name: schemas_exports.string(),
|
|
2486
|
+
key: schemas_exports.string().nullable()
|
|
2525
2487
|
});
|
|
2526
2488
|
|
|
2527
2489
|
// src/serialization/types/Namespace.ts
|
|
2528
2490
|
var Namespace = schemas_exports.object({
|
|
2529
|
-
createTs: schemas_exports.property("create_ts", schemas_exports.number()),
|
|
2530
|
-
displayName: schemas_exports.property("display_name", schemas_exports.string()),
|
|
2531
2491
|
name: schemas_exports.string(),
|
|
2532
|
-
|
|
2492
|
+
createTs: schemas_exports.property("create_ts", schemas_exports.number()),
|
|
2493
|
+
status: NamespaceStatus2,
|
|
2494
|
+
forkedFrom: schemas_exports.property("forked_from", NamespaceForkedFrom.nullable()),
|
|
2495
|
+
archivedTs: schemas_exports.property("archived_ts", schemas_exports.number().nullable()),
|
|
2496
|
+
skipped: schemas_exports.list(NamespaceSkippedActor).optional(),
|
|
2497
|
+
skippedCount: schemas_exports.property("skipped_count", schemas_exports.number().optional())
|
|
2533
2498
|
});
|
|
2534
2499
|
|
|
2535
2500
|
// src/serialization/types/NamespaceListResponse.ts
|
|
@@ -2543,208 +2508,87 @@ var NamespacesCreateResponse = schemas_exports.object({
|
|
|
2543
2508
|
namespace: Namespace
|
|
2544
2509
|
});
|
|
2545
2510
|
|
|
2546
|
-
// src/serialization/types/
|
|
2547
|
-
var
|
|
2548
|
-
|
|
2549
|
-
datacenter: schemas_exports.string(),
|
|
2550
|
-
drainTs: schemas_exports.property("drain_ts", schemas_exports.number().optional()),
|
|
2551
|
-
key: schemas_exports.string(),
|
|
2552
|
-
lastConnectedTs: schemas_exports.property("last_connected_ts", schemas_exports.number().optional()),
|
|
2553
|
-
lastPingTs: schemas_exports.property("last_ping_ts", schemas_exports.number()),
|
|
2554
|
-
lastRtt: schemas_exports.property("last_rtt", schemas_exports.number()),
|
|
2555
|
-
metadata: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
|
|
2556
|
-
name: schemas_exports.string(),
|
|
2557
|
-
namespaceId: schemas_exports.property("namespace_id", RivetId),
|
|
2558
|
-
remainingSlots: schemas_exports.property("remaining_slots", schemas_exports.number()),
|
|
2559
|
-
runnerId: schemas_exports.property("runner_id", RivetId),
|
|
2560
|
-
stopTs: schemas_exports.property("stop_ts", schemas_exports.number().optional()),
|
|
2561
|
-
totalSlots: schemas_exports.property("total_slots", schemas_exports.number()),
|
|
2562
|
-
version: schemas_exports.number()
|
|
2563
|
-
});
|
|
2564
|
-
|
|
2565
|
-
// src/serialization/types/RunnerConfigServerless.ts
|
|
2566
|
-
var RunnerConfigServerless = schemas_exports.object({
|
|
2567
|
-
drainGracePeriod: schemas_exports.property("drain_grace_period", schemas_exports.number().optional()),
|
|
2568
|
-
headers: schemas_exports.record(schemas_exports.string(), schemas_exports.string()).optional(),
|
|
2569
|
-
maxConcurrentActors: schemas_exports.property("max_concurrent_actors", schemas_exports.number().optional()),
|
|
2570
|
-
maxRunners: schemas_exports.property("max_runners", schemas_exports.number()),
|
|
2571
|
-
metadataPollInterval: schemas_exports.property("metadata_poll_interval", schemas_exports.number().optional()),
|
|
2572
|
-
minRunners: schemas_exports.property("min_runners", schemas_exports.number().optional()),
|
|
2573
|
-
requestLifespan: schemas_exports.property("request_lifespan", schemas_exports.number()),
|
|
2574
|
-
runnersMargin: schemas_exports.property("runners_margin", schemas_exports.number().optional()),
|
|
2575
|
-
slotsPerRunner: schemas_exports.property("slots_per_runner", schemas_exports.number()),
|
|
2576
|
-
url: schemas_exports.string()
|
|
2577
|
-
});
|
|
2578
|
-
|
|
2579
|
-
// src/serialization/types/RunnerConfig.ts
|
|
2580
|
-
var RunnerConfig = schemas_exports.object({
|
|
2581
|
-
normal: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional(),
|
|
2582
|
-
serverless: RunnerConfigServerless.optional(),
|
|
2583
|
-
drainOnVersionUpgrade: schemas_exports.property(
|
|
2584
|
-
"drain_on_version_upgrade",
|
|
2585
|
-
schemas_exports.boolean().optional()
|
|
2586
|
-
),
|
|
2587
|
-
metadata: schemas_exports.unknown().optional()
|
|
2588
|
-
});
|
|
2589
|
-
|
|
2590
|
-
// src/serialization/types/RunnerConfigKindNormal.ts
|
|
2591
|
-
var RunnerConfigKindNormal = schemas_exports.object({
|
|
2592
|
-
normal: schemas_exports.record(schemas_exports.string(), schemas_exports.unknown())
|
|
2593
|
-
});
|
|
2594
|
-
|
|
2595
|
-
// src/serialization/types/RunnerConfigKindServerlessServerless.ts
|
|
2596
|
-
var RunnerConfigKindServerlessServerless = schemas_exports.object({
|
|
2597
|
-
drainGracePeriod: schemas_exports.property("drain_grace_period", schemas_exports.number().optional()),
|
|
2598
|
-
headers: schemas_exports.record(schemas_exports.string(), schemas_exports.string()).optional(),
|
|
2599
|
-
maxConcurrentActors: schemas_exports.property("max_concurrent_actors", schemas_exports.number().optional()),
|
|
2600
|
-
maxRunners: schemas_exports.property("max_runners", schemas_exports.number()),
|
|
2601
|
-
metadataPollInterval: schemas_exports.property("metadata_poll_interval", schemas_exports.number().optional()),
|
|
2602
|
-
minRunners: schemas_exports.property("min_runners", schemas_exports.number().optional()),
|
|
2603
|
-
requestLifespan: schemas_exports.property("request_lifespan", schemas_exports.number()),
|
|
2604
|
-
runnersMargin: schemas_exports.property("runners_margin", schemas_exports.number().optional()),
|
|
2605
|
-
slotsPerRunner: schemas_exports.property("slots_per_runner", schemas_exports.number()),
|
|
2606
|
-
url: schemas_exports.string()
|
|
2607
|
-
});
|
|
2608
|
-
|
|
2609
|
-
// src/serialization/types/RunnerConfigKindServerless.ts
|
|
2610
|
-
var RunnerConfigKindServerless = schemas_exports.object({
|
|
2611
|
-
serverless: RunnerConfigKindServerlessServerless
|
|
2612
|
-
});
|
|
2613
|
-
|
|
2614
|
-
// src/serialization/types/RunnerConfigKind.ts
|
|
2615
|
-
var RunnerConfigKind = schemas_exports.undiscriminatedUnion([RunnerConfigKindNormal, RunnerConfigKindServerless]);
|
|
2616
|
-
|
|
2617
|
-
// src/serialization/types/RunnerConfigResponse.ts
|
|
2618
|
-
var RunnerConfigResponse = schemas_exports.object({
|
|
2619
|
-
protocolVersion: schemas_exports.property("protocol_version", schemas_exports.number().optional()),
|
|
2620
|
-
runnerPoolError: schemas_exports.property(
|
|
2621
|
-
"runner_pool_error",
|
|
2622
|
-
schemas_exports.record(schemas_exports.string(), schemas_exports.unknown()).optional()
|
|
2623
|
-
)
|
|
2624
|
-
}).extend(RunnerConfig);
|
|
2625
|
-
|
|
2626
|
-
// src/serialization/types/RunnerConfigVariant.ts
|
|
2627
|
-
var RunnerConfigVariant2 = schemas_exports.enum_(["serverless", "normal"]);
|
|
2628
|
-
|
|
2629
|
-
// src/serialization/types/RunnerConfigsDeleteResponse.ts
|
|
2630
|
-
var RunnerConfigsDeleteResponse = schemas_exports.record(schemas_exports.string(), schemas_exports.unknown());
|
|
2631
|
-
|
|
2632
|
-
// src/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.ts
|
|
2633
|
-
var RunnerConfigsListResponseRunnerConfigsValue = schemas_exports.object({
|
|
2634
|
-
datacenters: schemas_exports.record(schemas_exports.string(), RunnerConfigResponse)
|
|
2635
|
-
});
|
|
2636
|
-
|
|
2637
|
-
// src/serialization/types/RunnerConfigsListResponse.ts
|
|
2638
|
-
var RunnerConfigsListResponse = schemas_exports.object({
|
|
2639
|
-
pagination: Pagination,
|
|
2640
|
-
runnerConfigs: schemas_exports.property(
|
|
2641
|
-
"runner_configs",
|
|
2642
|
-
schemas_exports.record(schemas_exports.string(), RunnerConfigsListResponseRunnerConfigsValue)
|
|
2643
|
-
)
|
|
2644
|
-
});
|
|
2645
|
-
|
|
2646
|
-
// src/serialization/types/RunnerConfigsRefreshMetadataRequestBody.ts
|
|
2647
|
-
var RunnerConfigsRefreshMetadataRequestBody = schemas_exports.record(schemas_exports.string(), schemas_exports.unknown());
|
|
2648
|
-
|
|
2649
|
-
// src/serialization/types/RunnerConfigsRefreshMetadataResponse.ts
|
|
2650
|
-
var RunnerConfigsRefreshMetadataResponse = schemas_exports.record(schemas_exports.string(), schemas_exports.unknown());
|
|
2651
|
-
|
|
2652
|
-
// src/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.ts
|
|
2653
|
-
var RunnerConfigsServerlessHealthCheckResponseSuccessSuccess = schemas_exports.object({
|
|
2654
|
-
version: schemas_exports.string()
|
|
2655
|
-
});
|
|
2656
|
-
|
|
2657
|
-
// src/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccess.ts
|
|
2658
|
-
var RunnerConfigsServerlessHealthCheckResponseSuccess = schemas_exports.object({
|
|
2659
|
-
success: RunnerConfigsServerlessHealthCheckResponseSuccessSuccess
|
|
2511
|
+
// src/serialization/types/NamespacesArchiveResponse.ts
|
|
2512
|
+
var NamespacesArchiveResponse = schemas_exports.object({
|
|
2513
|
+
namespace: Namespace
|
|
2660
2514
|
});
|
|
2661
2515
|
|
|
2662
|
-
// src/serialization/types/
|
|
2663
|
-
var
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2516
|
+
// src/serialization/types/Node.ts
|
|
2517
|
+
var Node = schemas_exports.object({
|
|
2518
|
+
key: schemas_exports.string(),
|
|
2519
|
+
pool: schemas_exports.string(),
|
|
2520
|
+
namespace: schemas_exports.string(),
|
|
2521
|
+
datacenter: schemas_exports.string(),
|
|
2522
|
+
version: schemas_exports.number(),
|
|
2523
|
+
createTs: schemas_exports.property("create_ts", schemas_exports.number()),
|
|
2524
|
+
lastPingTs: schemas_exports.property("last_ping_ts", schemas_exports.number()),
|
|
2525
|
+
connected: schemas_exports.boolean(),
|
|
2526
|
+
stopping: schemas_exports.boolean()
|
|
2667
2527
|
});
|
|
2668
2528
|
|
|
2669
|
-
// src/serialization/types/
|
|
2670
|
-
var
|
|
2671
|
-
|
|
2529
|
+
// src/serialization/types/Pool.ts
|
|
2530
|
+
var Pool = schemas_exports.object({
|
|
2531
|
+
name: schemas_exports.string(),
|
|
2532
|
+
drainOnVersionUpgrade: schemas_exports.property("drain_on_version_upgrade", schemas_exports.boolean()),
|
|
2533
|
+
actorEvictionDelay: schemas_exports.property("actor_eviction_delay", schemas_exports.number()),
|
|
2534
|
+
actorEvictionPeriod: schemas_exports.property("actor_eviction_period", schemas_exports.number()),
|
|
2535
|
+
actorEvictionRate: schemas_exports.property("actor_eviction_rate", schemas_exports.number()),
|
|
2536
|
+
metadata: schemas_exports.unknown()
|
|
2672
2537
|
});
|
|
2673
2538
|
|
|
2674
|
-
// src/serialization/types/
|
|
2675
|
-
var
|
|
2676
|
-
|
|
2539
|
+
// src/serialization/types/PoolResponse.ts
|
|
2540
|
+
var PoolResponse = schemas_exports.object({
|
|
2541
|
+
pool: Pool
|
|
2677
2542
|
});
|
|
2678
2543
|
|
|
2679
|
-
// src/serialization/types/
|
|
2680
|
-
var
|
|
2681
|
-
RunnerConfigsServerlessHealthCheckResponseSuccess,
|
|
2682
|
-
RunnerConfigsServerlessHealthCheckResponseFailure
|
|
2683
|
-
]);
|
|
2684
|
-
|
|
2685
|
-
// src/serialization/types/RunnerConfigsUpsertResponse.ts
|
|
2686
|
-
var RunnerConfigsUpsertResponse = schemas_exports.object({
|
|
2687
|
-
endpointConfigChanged: schemas_exports.property("endpoint_config_changed", schemas_exports.boolean())
|
|
2688
|
-
});
|
|
2544
|
+
// src/serialization/types/PoolsDeleteResponse.ts
|
|
2545
|
+
var PoolsDeleteResponse = schemas_exports.object({});
|
|
2689
2546
|
|
|
2690
|
-
// src/serialization/types/
|
|
2691
|
-
var
|
|
2692
|
-
|
|
2547
|
+
// src/serialization/types/PoolsListNodesResponse.ts
|
|
2548
|
+
var PoolsListNodesResponse = schemas_exports.object({
|
|
2549
|
+
nodes: schemas_exports.list(Node),
|
|
2693
2550
|
pagination: Pagination
|
|
2694
2551
|
});
|
|
2695
2552
|
|
|
2696
|
-
// src/serialization/types/
|
|
2697
|
-
var
|
|
2553
|
+
// src/serialization/types/PoolsListResponse.ts
|
|
2554
|
+
var PoolsListResponse = schemas_exports.object({
|
|
2698
2555
|
pagination: Pagination,
|
|
2699
|
-
|
|
2556
|
+
pools: schemas_exports.list(Pool)
|
|
2700
2557
|
});
|
|
2701
2558
|
|
|
2702
2559
|
// src/serialization/client/requests/ActorsCreateRequest.ts
|
|
2703
2560
|
var ActorsCreateRequest = schemas_exports.object({
|
|
2704
|
-
crashPolicy: schemas_exports.property("crash_policy", CrashPolicy2),
|
|
2705
|
-
datacenter: schemas_exports.string().optional(),
|
|
2706
2561
|
input: schemas_exports.string().optional(),
|
|
2707
2562
|
key: schemas_exports.string().optional(),
|
|
2708
2563
|
name: schemas_exports.string(),
|
|
2709
|
-
|
|
2564
|
+
pool: schemas_exports.string().optional()
|
|
2710
2565
|
});
|
|
2711
2566
|
|
|
2712
2567
|
// src/serialization/client/requests/ActorsGetOrCreateRequest.ts
|
|
2713
2568
|
var ActorsGetOrCreateRequest = schemas_exports.object({
|
|
2714
|
-
crashPolicy: schemas_exports.property("crash_policy", CrashPolicy2),
|
|
2715
|
-
datacenter: schemas_exports.string().optional(),
|
|
2716
2569
|
input: schemas_exports.string().optional(),
|
|
2717
|
-
key: schemas_exports.string(),
|
|
2570
|
+
key: schemas_exports.string().optional(),
|
|
2718
2571
|
name: schemas_exports.string(),
|
|
2719
|
-
|
|
2720
|
-
});
|
|
2721
|
-
|
|
2722
|
-
// src/serialization/client/requests/RunnerConfigsServerlessHealthCheckRequest.ts
|
|
2723
|
-
var RunnerConfigsServerlessHealthCheckRequest = schemas_exports.object({
|
|
2724
|
-
headers: schemas_exports.record(schemas_exports.string(), schemas_exports.string()).optional(),
|
|
2725
|
-
url: schemas_exports.string()
|
|
2572
|
+
pool: schemas_exports.string().optional()
|
|
2726
2573
|
});
|
|
2727
2574
|
|
|
2728
|
-
// src/serialization/client/requests/
|
|
2729
|
-
var
|
|
2730
|
-
|
|
2575
|
+
// src/serialization/client/requests/ActorsForkRequest.ts
|
|
2576
|
+
var ActorsForkRequest = schemas_exports.object({
|
|
2577
|
+
key: schemas_exports.string().optional(),
|
|
2578
|
+
input: schemas_exports.string().optional()
|
|
2731
2579
|
});
|
|
2732
2580
|
|
|
2733
2581
|
// src/serialization/resources/namespaces/index.ts
|
|
2734
|
-
var
|
|
2735
|
-
__export(
|
|
2582
|
+
var namespaces_exports = {};
|
|
2583
|
+
__export(namespaces_exports, {
|
|
2736
2584
|
NamespacesCreateRequest: () => NamespacesCreateRequest
|
|
2737
2585
|
});
|
|
2738
2586
|
|
|
2739
2587
|
// src/serialization/resources/namespaces/client/requests/NamespacesCreateRequest.ts
|
|
2740
2588
|
var NamespacesCreateRequest = schemas_exports.object({
|
|
2741
|
-
displayName: schemas_exports.property("display_name", schemas_exports.string()),
|
|
2742
2589
|
name: schemas_exports.string()
|
|
2743
2590
|
});
|
|
2744
2591
|
|
|
2745
|
-
// src/Client.ts
|
|
2746
|
-
import urlJoin7 from "url-join";
|
|
2747
|
-
|
|
2748
2592
|
// src/errors/RivetError.ts
|
|
2749
2593
|
var RivetError = class _RivetError extends Error {
|
|
2750
2594
|
statusCode;
|
|
@@ -2786,25 +2630,18 @@ var RivetTimeoutError = class _RivetTimeoutError extends Error {
|
|
|
2786
2630
|
}
|
|
2787
2631
|
};
|
|
2788
2632
|
|
|
2789
|
-
// src/api/resources/
|
|
2790
|
-
|
|
2791
|
-
var Datacenters = class {
|
|
2633
|
+
// src/api/resources/authTokens/client/Client.ts
|
|
2634
|
+
var AuthTokens = class {
|
|
2792
2635
|
constructor(_options) {
|
|
2793
2636
|
this._options = _options;
|
|
2794
2637
|
}
|
|
2795
|
-
|
|
2796
|
-
* @param {Datacenters.RequestOptions} requestOptions - Request-specific configuration.
|
|
2797
|
-
*
|
|
2798
|
-
* @example
|
|
2799
|
-
* await client.datacenters.list()
|
|
2800
|
-
*/
|
|
2801
|
-
async list(requestOptions) {
|
|
2638
|
+
async create(request, requestOptions) {
|
|
2802
2639
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
2803
2640
|
url: urlJoin(
|
|
2804
2641
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
2805
|
-
"
|
|
2642
|
+
"auth/tokens"
|
|
2806
2643
|
),
|
|
2807
|
-
method: "
|
|
2644
|
+
method: "POST",
|
|
2808
2645
|
headers: {
|
|
2809
2646
|
Authorization: await this._getAuthorizationHeader(),
|
|
2810
2647
|
"X-Fern-Language": "JavaScript",
|
|
@@ -2814,12 +2651,18 @@ var Datacenters = class {
|
|
|
2814
2651
|
},
|
|
2815
2652
|
contentType: "application/json",
|
|
2816
2653
|
requestType: "json",
|
|
2654
|
+
body: {
|
|
2655
|
+
namespace: request.namespace,
|
|
2656
|
+
duration: request.duration,
|
|
2657
|
+
subject: request.subject,
|
|
2658
|
+
grants: request.grants.map((grant) => AuthTokenGrant.jsonOrThrow(grant))
|
|
2659
|
+
},
|
|
2817
2660
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
2818
2661
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
2819
2662
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
2820
2663
|
});
|
|
2821
2664
|
if (_response.ok) {
|
|
2822
|
-
return
|
|
2665
|
+
return AuthTokenCreateResponse.parseOrThrow(_response.body, {
|
|
2823
2666
|
unrecognizedObjectKeys: "passthrough",
|
|
2824
2667
|
allowUnrecognizedUnionMembers: true,
|
|
2825
2668
|
allowUnrecognizedEnumValues: true,
|
|
@@ -2840,57 +2683,18 @@ var Datacenters = class {
|
|
|
2840
2683
|
body: _response.error.rawBody
|
|
2841
2684
|
});
|
|
2842
2685
|
case "timeout":
|
|
2843
|
-
throw new RivetTimeoutError("Timeout exceeded when calling
|
|
2686
|
+
throw new RivetTimeoutError("Timeout exceeded when calling POST /auth/tokens.");
|
|
2844
2687
|
case "unknown":
|
|
2845
2688
|
throw new RivetError({
|
|
2846
2689
|
message: _response.error.errorMessage
|
|
2847
2690
|
});
|
|
2848
2691
|
}
|
|
2849
2692
|
}
|
|
2850
|
-
async
|
|
2851
|
-
return `Bearer ${await Supplier.get(this._options.token)}`;
|
|
2852
|
-
}
|
|
2853
|
-
};
|
|
2854
|
-
|
|
2855
|
-
// src/api/resources/envoys/client/Client.ts
|
|
2856
|
-
import urlJoin2 from "url-join";
|
|
2857
|
-
var Envoys = class {
|
|
2858
|
-
constructor(_options) {
|
|
2859
|
-
this._options = _options;
|
|
2860
|
-
}
|
|
2861
|
-
/**
|
|
2862
|
-
* @param {Rivet.EnvoysListRequest} request
|
|
2863
|
-
* @param {Envoys.RequestOptions} requestOptions - Request-specific configuration.
|
|
2864
|
-
*
|
|
2865
|
-
* @example
|
|
2866
|
-
* await client.envoys.list({
|
|
2867
|
-
* namespace: "namespace"
|
|
2868
|
-
* })
|
|
2869
|
-
*/
|
|
2870
|
-
async list(request, requestOptions) {
|
|
2871
|
-
const { namespace, name, envoyKey, limit, cursor } = request;
|
|
2872
|
-
const _queryParams = {};
|
|
2873
|
-
_queryParams["namespace"] = namespace;
|
|
2874
|
-
if (name != null) {
|
|
2875
|
-
_queryParams["name"] = name;
|
|
2876
|
-
}
|
|
2877
|
-
if (envoyKey != null) {
|
|
2878
|
-
if (Array.isArray(envoyKey)) {
|
|
2879
|
-
_queryParams["envoy_key"] = envoyKey.map((item) => item);
|
|
2880
|
-
} else {
|
|
2881
|
-
_queryParams["envoy_key"] = envoyKey;
|
|
2882
|
-
}
|
|
2883
|
-
}
|
|
2884
|
-
if (limit != null) {
|
|
2885
|
-
_queryParams["limit"] = limit.toString();
|
|
2886
|
-
}
|
|
2887
|
-
if (cursor != null) {
|
|
2888
|
-
_queryParams["cursor"] = cursor;
|
|
2889
|
-
}
|
|
2693
|
+
async inspect(requestOptions) {
|
|
2890
2694
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
2891
|
-
url:
|
|
2695
|
+
url: urlJoin(
|
|
2892
2696
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
2893
|
-
"
|
|
2697
|
+
"auth/tokens/inspect"
|
|
2894
2698
|
),
|
|
2895
2699
|
method: "GET",
|
|
2896
2700
|
headers: {
|
|
@@ -2901,14 +2705,13 @@ var Envoys = class {
|
|
|
2901
2705
|
...requestOptions == null ? void 0 : requestOptions.headers
|
|
2902
2706
|
},
|
|
2903
2707
|
contentType: "application/json",
|
|
2904
|
-
queryParameters: _queryParams,
|
|
2905
2708
|
requestType: "json",
|
|
2906
2709
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
2907
2710
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
2908
2711
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
2909
2712
|
});
|
|
2910
2713
|
if (_response.ok) {
|
|
2911
|
-
return
|
|
2714
|
+
return AuthTokenInspectResponse.parseOrThrow(_response.body, {
|
|
2912
2715
|
unrecognizedObjectKeys: "passthrough",
|
|
2913
2716
|
allowUnrecognizedUnionMembers: true,
|
|
2914
2717
|
allowUnrecognizedEnumValues: true,
|
|
@@ -2929,7 +2732,7 @@ var Envoys = class {
|
|
|
2929
2732
|
body: _response.error.rawBody
|
|
2930
2733
|
});
|
|
2931
2734
|
case "timeout":
|
|
2932
|
-
throw new RivetTimeoutError("Timeout exceeded when calling GET /
|
|
2735
|
+
throw new RivetTimeoutError("Timeout exceeded when calling GET /auth/tokens/inspect.");
|
|
2933
2736
|
case "unknown":
|
|
2934
2737
|
throw new RivetError({
|
|
2935
2738
|
message: _response.error.errorMessage
|
|
@@ -2941,23 +2744,38 @@ var Envoys = class {
|
|
|
2941
2744
|
}
|
|
2942
2745
|
};
|
|
2943
2746
|
|
|
2944
|
-
// src/api/resources/
|
|
2945
|
-
|
|
2946
|
-
|
|
2747
|
+
// src/api/resources/datacenters/index.ts
|
|
2748
|
+
var datacenters_exports = {};
|
|
2749
|
+
|
|
2750
|
+
// src/api/resources/metadata/index.ts
|
|
2751
|
+
var metadata_exports = {};
|
|
2752
|
+
|
|
2753
|
+
// src/api/resources/namespaces/index.ts
|
|
2754
|
+
var namespaces_exports2 = {};
|
|
2755
|
+
|
|
2756
|
+
// src/api/resources/pools/index.ts
|
|
2757
|
+
var pools_exports = {};
|
|
2758
|
+
|
|
2759
|
+
// src/Client.ts
|
|
2760
|
+
import urlJoin6 from "url-join";
|
|
2761
|
+
|
|
2762
|
+
// src/api/resources/datacenters/client/Client.ts
|
|
2763
|
+
import urlJoin2 from "url-join";
|
|
2764
|
+
var Datacenters = class {
|
|
2947
2765
|
constructor(_options) {
|
|
2948
2766
|
this._options = _options;
|
|
2949
2767
|
}
|
|
2950
2768
|
/**
|
|
2951
|
-
* @param {
|
|
2769
|
+
* @param {Datacenters.RequestOptions} requestOptions - Request-specific configuration.
|
|
2952
2770
|
*
|
|
2953
2771
|
* @example
|
|
2954
|
-
* await client.
|
|
2772
|
+
* await client.datacenters.list()
|
|
2955
2773
|
*/
|
|
2956
|
-
async
|
|
2774
|
+
async list(requestOptions) {
|
|
2957
2775
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
2958
|
-
url:
|
|
2776
|
+
url: urlJoin2(
|
|
2959
2777
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
2960
|
-
"
|
|
2778
|
+
"datacenters"
|
|
2961
2779
|
),
|
|
2962
2780
|
method: "GET",
|
|
2963
2781
|
headers: {
|
|
@@ -2974,7 +2792,7 @@ var Health = class {
|
|
|
2974
2792
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
2975
2793
|
});
|
|
2976
2794
|
if (_response.ok) {
|
|
2977
|
-
return
|
|
2795
|
+
return DatacentersListResponse.parseOrThrow(_response.body, {
|
|
2978
2796
|
unrecognizedObjectKeys: "passthrough",
|
|
2979
2797
|
allowUnrecognizedUnionMembers: true,
|
|
2980
2798
|
allowUnrecognizedEnumValues: true,
|
|
@@ -2995,7 +2813,7 @@ var Health = class {
|
|
|
2995
2813
|
body: _response.error.rawBody
|
|
2996
2814
|
});
|
|
2997
2815
|
case "timeout":
|
|
2998
|
-
throw new RivetTimeoutError("Timeout exceeded when calling GET /
|
|
2816
|
+
throw new RivetTimeoutError("Timeout exceeded when calling GET /datacenters.");
|
|
2999
2817
|
case "unknown":
|
|
3000
2818
|
throw new RivetError({
|
|
3001
2819
|
message: _response.error.errorMessage
|
|
@@ -3008,7 +2826,7 @@ var Health = class {
|
|
|
3008
2826
|
};
|
|
3009
2827
|
|
|
3010
2828
|
// src/api/resources/metadata/client/Client.ts
|
|
3011
|
-
import
|
|
2829
|
+
import urlJoin3 from "url-join";
|
|
3012
2830
|
var Metadata = class {
|
|
3013
2831
|
constructor(_options) {
|
|
3014
2832
|
this._options = _options;
|
|
@@ -3021,7 +2839,7 @@ var Metadata = class {
|
|
|
3021
2839
|
*/
|
|
3022
2840
|
async get(requestOptions) {
|
|
3023
2841
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3024
|
-
url:
|
|
2842
|
+
url: urlJoin3(
|
|
3025
2843
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3026
2844
|
"metadata"
|
|
3027
2845
|
),
|
|
@@ -3074,7 +2892,7 @@ var Metadata = class {
|
|
|
3074
2892
|
};
|
|
3075
2893
|
|
|
3076
2894
|
// src/api/resources/namespaces/client/Client.ts
|
|
3077
|
-
import
|
|
2895
|
+
import urlJoin4 from "url-join";
|
|
3078
2896
|
var Namespaces = class {
|
|
3079
2897
|
constructor(_options) {
|
|
3080
2898
|
this._options = _options;
|
|
@@ -3087,7 +2905,7 @@ var Namespaces = class {
|
|
|
3087
2905
|
* await client.namespaces.list()
|
|
3088
2906
|
*/
|
|
3089
2907
|
async list(request = {}, requestOptions) {
|
|
3090
|
-
const { limit, cursor, name
|
|
2908
|
+
const { limit, cursor, name } = request;
|
|
3091
2909
|
const _queryParams = {};
|
|
3092
2910
|
if (limit != null) {
|
|
3093
2911
|
_queryParams["limit"] = limit.toString();
|
|
@@ -3098,20 +2916,8 @@ var Namespaces = class {
|
|
|
3098
2916
|
if (name != null) {
|
|
3099
2917
|
_queryParams["name"] = name;
|
|
3100
2918
|
}
|
|
3101
|
-
if (namespaceIds != null) {
|
|
3102
|
-
_queryParams["namespace_ids"] = namespaceIds;
|
|
3103
|
-
}
|
|
3104
|
-
if (namespaceId != null) {
|
|
3105
|
-
if (Array.isArray(namespaceId)) {
|
|
3106
|
-
_queryParams["namespace_id"] = namespaceId.map(
|
|
3107
|
-
(item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
|
|
3108
|
-
);
|
|
3109
|
-
} else {
|
|
3110
|
-
_queryParams["namespace_id"] = namespaceId;
|
|
3111
|
-
}
|
|
3112
|
-
}
|
|
3113
2919
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3114
|
-
url:
|
|
2920
|
+
url: urlJoin4(
|
|
3115
2921
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3116
2922
|
"namespaces"
|
|
3117
2923
|
),
|
|
@@ -3165,13 +2971,14 @@ var Namespaces = class {
|
|
|
3165
2971
|
*
|
|
3166
2972
|
* @example
|
|
3167
2973
|
* await client.namespaces.create({
|
|
3168
|
-
* displayName: "display_name",
|
|
3169
2974
|
* name: "name"
|
|
3170
2975
|
* })
|
|
3171
2976
|
*/
|
|
3172
2977
|
async create(request, requestOptions) {
|
|
2978
|
+
const _body = request;
|
|
2979
|
+
const _queryParams = {};
|
|
3173
2980
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3174
|
-
url:
|
|
2981
|
+
url: urlJoin4(
|
|
3175
2982
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3176
2983
|
"namespaces"
|
|
3177
2984
|
),
|
|
@@ -3184,8 +2991,9 @@ var Namespaces = class {
|
|
|
3184
2991
|
...requestOptions == null ? void 0 : requestOptions.headers
|
|
3185
2992
|
},
|
|
3186
2993
|
contentType: "application/json",
|
|
2994
|
+
queryParameters: _queryParams,
|
|
3187
2995
|
requestType: "json",
|
|
3188
|
-
body: NamespacesCreateRequest.jsonOrThrow(
|
|
2996
|
+
body: NamespacesCreateRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
3189
2997
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
3190
2998
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
3191
2999
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
@@ -3219,60 +3027,24 @@ var Namespaces = class {
|
|
|
3219
3027
|
});
|
|
3220
3028
|
}
|
|
3221
3029
|
}
|
|
3222
|
-
async _getAuthorizationHeader() {
|
|
3223
|
-
return `Bearer ${await Supplier.get(this._options.token)}`;
|
|
3224
|
-
}
|
|
3225
|
-
};
|
|
3226
|
-
|
|
3227
|
-
// src/api/resources/runners/client/Client.ts
|
|
3228
|
-
import urlJoin6 from "url-join";
|
|
3229
|
-
var Runners = class {
|
|
3230
|
-
constructor(_options) {
|
|
3231
|
-
this._options = _options;
|
|
3232
|
-
}
|
|
3233
3030
|
/**
|
|
3234
|
-
*
|
|
3235
|
-
*
|
|
3031
|
+
* Archives a namespace: refuses new work for it, stops what its nodes host, then closes its
|
|
3032
|
+
* storage. Archiving is final. Answers at once with the namespace at status `archiving`, or
|
|
3033
|
+
* `archived` when it already is.
|
|
3034
|
+
*
|
|
3035
|
+
* @param {string} name - The namespace to archive.
|
|
3036
|
+
* @param {Namespaces.RequestOptions} requestOptions - Request-specific configuration.
|
|
3236
3037
|
*
|
|
3237
3038
|
* @example
|
|
3238
|
-
* await client.
|
|
3239
|
-
* namespace: "namespace"
|
|
3240
|
-
* })
|
|
3039
|
+
* await client.namespaces.archive("staging")
|
|
3241
3040
|
*/
|
|
3242
|
-
async
|
|
3243
|
-
const { namespace, name, runnerIds, runnerId, includeStopped, limit, cursor } = request;
|
|
3244
|
-
const _queryParams = {};
|
|
3245
|
-
_queryParams["namespace"] = namespace;
|
|
3246
|
-
if (name != null) {
|
|
3247
|
-
_queryParams["name"] = name;
|
|
3248
|
-
}
|
|
3249
|
-
if (runnerIds != null) {
|
|
3250
|
-
_queryParams["runner_ids"] = runnerIds;
|
|
3251
|
-
}
|
|
3252
|
-
if (runnerId != null) {
|
|
3253
|
-
if (Array.isArray(runnerId)) {
|
|
3254
|
-
_queryParams["runner_id"] = runnerId.map(
|
|
3255
|
-
(item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
|
|
3256
|
-
);
|
|
3257
|
-
} else {
|
|
3258
|
-
_queryParams["runner_id"] = runnerId;
|
|
3259
|
-
}
|
|
3260
|
-
}
|
|
3261
|
-
if (includeStopped != null) {
|
|
3262
|
-
_queryParams["include_stopped"] = includeStopped.toString();
|
|
3263
|
-
}
|
|
3264
|
-
if (limit != null) {
|
|
3265
|
-
_queryParams["limit"] = limit.toString();
|
|
3266
|
-
}
|
|
3267
|
-
if (cursor != null) {
|
|
3268
|
-
_queryParams["cursor"] = cursor;
|
|
3269
|
-
}
|
|
3041
|
+
async archive(name, requestOptions) {
|
|
3270
3042
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3271
|
-
url:
|
|
3043
|
+
url: urlJoin4(
|
|
3272
3044
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3273
|
-
|
|
3045
|
+
`namespaces/${encodeURIComponent(name)}/archive`
|
|
3274
3046
|
),
|
|
3275
|
-
method: "
|
|
3047
|
+
method: "POST",
|
|
3276
3048
|
headers: {
|
|
3277
3049
|
Authorization: await this._getAuthorizationHeader(),
|
|
3278
3050
|
"X-Fern-Language": "JavaScript",
|
|
@@ -3281,14 +3053,13 @@ var Runners = class {
|
|
|
3281
3053
|
...requestOptions == null ? void 0 : requestOptions.headers
|
|
3282
3054
|
},
|
|
3283
3055
|
contentType: "application/json",
|
|
3284
|
-
queryParameters: _queryParams,
|
|
3285
3056
|
requestType: "json",
|
|
3286
3057
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
3287
3058
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
3288
3059
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
3289
3060
|
});
|
|
3290
3061
|
if (_response.ok) {
|
|
3291
|
-
return
|
|
3062
|
+
return NamespacesArchiveResponse.parseOrThrow(_response.body, {
|
|
3292
3063
|
unrecognizedObjectKeys: "passthrough",
|
|
3293
3064
|
allowUnrecognizedUnionMembers: true,
|
|
3294
3065
|
allowUnrecognizedEnumValues: true,
|
|
@@ -3309,31 +3080,40 @@ var Runners = class {
|
|
|
3309
3080
|
body: _response.error.rawBody
|
|
3310
3081
|
});
|
|
3311
3082
|
case "timeout":
|
|
3312
|
-
throw new RivetTimeoutError("Timeout exceeded when calling
|
|
3083
|
+
throw new RivetTimeoutError("Timeout exceeded when calling POST /namespaces.");
|
|
3313
3084
|
case "unknown":
|
|
3314
3085
|
throw new RivetError({
|
|
3315
3086
|
message: _response.error.errorMessage
|
|
3316
3087
|
});
|
|
3317
3088
|
}
|
|
3318
3089
|
}
|
|
3090
|
+
async _getAuthorizationHeader() {
|
|
3091
|
+
return `Bearer ${await Supplier.get(this._options.token)}`;
|
|
3092
|
+
}
|
|
3093
|
+
};
|
|
3094
|
+
|
|
3095
|
+
// src/api/resources/pools/client/Client.ts
|
|
3096
|
+
import urlJoin5 from "url-join";
|
|
3097
|
+
var Pools = class {
|
|
3098
|
+
constructor(_options) {
|
|
3099
|
+
this._options = _options;
|
|
3100
|
+
}
|
|
3319
3101
|
/**
|
|
3320
|
-
*
|
|
3102
|
+
* Lists the namespace's pools by name. Changes apply on each node's next connection.
|
|
3321
3103
|
*
|
|
3322
|
-
*
|
|
3323
|
-
* -
|
|
3324
|
-
*
|
|
3325
|
-
* @param {Rivet.RunnersListNamesRequest} request
|
|
3326
|
-
* @param {Runners.RequestOptions} requestOptions - Request-specific configuration.
|
|
3104
|
+
* @param {Rivet.PoolsListRequest} request
|
|
3105
|
+
* @param {Pools.RequestOptions} requestOptions - Request-specific configuration.
|
|
3327
3106
|
*
|
|
3328
3107
|
* @example
|
|
3329
|
-
* await client.
|
|
3108
|
+
* await client.pools.list({
|
|
3330
3109
|
* namespace: "namespace"
|
|
3331
3110
|
* })
|
|
3332
3111
|
*/
|
|
3333
|
-
async
|
|
3112
|
+
async list(request, requestOptions) {
|
|
3334
3113
|
const { namespace, limit, cursor } = request;
|
|
3335
3114
|
const _queryParams = {};
|
|
3336
|
-
|
|
3115
|
+
if (namespace != null)
|
|
3116
|
+
_queryParams["namespace"] = namespace;
|
|
3337
3117
|
if (limit != null) {
|
|
3338
3118
|
_queryParams["limit"] = limit.toString();
|
|
3339
3119
|
}
|
|
@@ -3341,9 +3121,9 @@ var Runners = class {
|
|
|
3341
3121
|
_queryParams["cursor"] = cursor;
|
|
3342
3122
|
}
|
|
3343
3123
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3344
|
-
url:
|
|
3124
|
+
url: urlJoin5(
|
|
3345
3125
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3346
|
-
"
|
|
3126
|
+
"pools"
|
|
3347
3127
|
),
|
|
3348
3128
|
method: "GET",
|
|
3349
3129
|
headers: {
|
|
@@ -3361,7 +3141,7 @@ var Runners = class {
|
|
|
3361
3141
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
3362
3142
|
});
|
|
3363
3143
|
if (_response.ok) {
|
|
3364
|
-
return
|
|
3144
|
+
return PoolsListResponse.parseOrThrow(_response.body, {
|
|
3365
3145
|
unrecognizedObjectKeys: "passthrough",
|
|
3366
3146
|
allowUnrecognizedUnionMembers: true,
|
|
3367
3147
|
allowUnrecognizedEnumValues: true,
|
|
@@ -3382,104 +3162,30 @@ var Runners = class {
|
|
|
3382
3162
|
body: _response.error.rawBody
|
|
3383
3163
|
});
|
|
3384
3164
|
case "timeout":
|
|
3385
|
-
throw new RivetTimeoutError("Timeout exceeded when calling GET /
|
|
3165
|
+
throw new RivetTimeoutError("Timeout exceeded when calling GET /pools.");
|
|
3386
3166
|
case "unknown":
|
|
3387
3167
|
throw new RivetError({
|
|
3388
3168
|
message: _response.error.errorMessage
|
|
3389
3169
|
});
|
|
3390
3170
|
}
|
|
3391
3171
|
}
|
|
3392
|
-
async _getAuthorizationHeader() {
|
|
3393
|
-
return `Bearer ${await Supplier.get(this._options.token)}`;
|
|
3394
|
-
}
|
|
3395
|
-
};
|
|
3396
|
-
|
|
3397
|
-
// src/Client.ts
|
|
3398
|
-
var RivetClient = class {
|
|
3399
|
-
constructor(_options) {
|
|
3400
|
-
this._options = _options;
|
|
3401
|
-
}
|
|
3402
|
-
_datacenters;
|
|
3403
|
-
_envoys;
|
|
3404
|
-
_health;
|
|
3405
|
-
_metadata;
|
|
3406
|
-
_namespaces;
|
|
3407
|
-
_runners;
|
|
3408
|
-
get datacenters() {
|
|
3409
|
-
return this._datacenters ?? (this._datacenters = new Datacenters(this._options));
|
|
3410
|
-
}
|
|
3411
|
-
get envoys() {
|
|
3412
|
-
return this._envoys ?? (this._envoys = new Envoys(this._options));
|
|
3413
|
-
}
|
|
3414
|
-
get health() {
|
|
3415
|
-
return this._health ?? (this._health = new Health(this._options));
|
|
3416
|
-
}
|
|
3417
|
-
get metadata() {
|
|
3418
|
-
return this._metadata ?? (this._metadata = new Metadata(this._options));
|
|
3419
|
-
}
|
|
3420
|
-
get namespaces() {
|
|
3421
|
-
return this._namespaces ?? (this._namespaces = new Namespaces(this._options));
|
|
3422
|
-
}
|
|
3423
|
-
get runners() {
|
|
3424
|
-
return this._runners ?? (this._runners = new Runners(this._options));
|
|
3425
|
-
}
|
|
3426
3172
|
/**
|
|
3427
|
-
*
|
|
3428
|
-
*
|
|
3429
|
-
* 2 round trips:
|
|
3430
|
-
*
|
|
3431
|
-
* - namespace::ops::resolve_for_name_global
|
|
3432
|
-
* - GET /actors (multiple DCs based on actor IDs)
|
|
3433
|
-
*
|
|
3434
|
-
* This path is optimized because we can read the actor IDs fro the key directly from Epoxy with
|
|
3435
|
-
* stale consistency to determine which datacenter the actor lives in. Under most circumstances,
|
|
3436
|
-
* this means we don't need to fan out to all datacenters (like normal list does).
|
|
3437
|
-
*
|
|
3438
|
-
* The reason `include_destroyed` has to be false is Epoxy only stores currently active actors. If
|
|
3439
|
-
* `include_destroyed` is true, we show all previous iterations of actors with the same key.
|
|
3440
|
-
*
|
|
3441
|
-
* **Otherwise**
|
|
3442
|
-
*
|
|
3443
|
-
* 2 round trips:
|
|
3444
|
-
*
|
|
3445
|
-
* - namespace::ops::resolve_for_name_global
|
|
3446
|
-
* - GET /actors (fanout)
|
|
3173
|
+
* Lists the live nodes of a pool in node key order.
|
|
3447
3174
|
*
|
|
3448
|
-
*
|
|
3449
|
-
*
|
|
3450
|
-
* @param {
|
|
3451
|
-
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3175
|
+
* @param {string} pool
|
|
3176
|
+
* @param {Rivet.PoolsListNodesRequest} request
|
|
3177
|
+
* @param {Pools.RequestOptions} requestOptions - Request-specific configuration.
|
|
3452
3178
|
*
|
|
3453
3179
|
* @example
|
|
3454
|
-
* await client.
|
|
3180
|
+
* await client.pools.listNodes("pool", {
|
|
3455
3181
|
* namespace: "namespace"
|
|
3456
3182
|
* })
|
|
3457
3183
|
*/
|
|
3458
|
-
async
|
|
3459
|
-
const { namespace,
|
|
3184
|
+
async listNodes(pool, request, requestOptions) {
|
|
3185
|
+
const { namespace, limit, cursor } = request;
|
|
3460
3186
|
const _queryParams = {};
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
_queryParams["name"] = name;
|
|
3464
|
-
}
|
|
3465
|
-
if (key != null) {
|
|
3466
|
-
_queryParams["key"] = key;
|
|
3467
|
-
}
|
|
3468
|
-
if (actorIds != null) {
|
|
3469
|
-
_queryParams["actor_ids"] = actorIds;
|
|
3470
|
-
}
|
|
3471
|
-
if (actorId != null) {
|
|
3472
|
-
if (Array.isArray(actorId)) {
|
|
3473
|
-
_queryParams["actor_id"] = actorId.map(
|
|
3474
|
-
(item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
|
|
3475
|
-
);
|
|
3476
|
-
} else {
|
|
3477
|
-
_queryParams["actor_id"] = actorId;
|
|
3478
|
-
}
|
|
3479
|
-
}
|
|
3480
|
-
if (includeDestroyed != null) {
|
|
3481
|
-
_queryParams["include_destroyed"] = includeDestroyed.toString();
|
|
3482
|
-
}
|
|
3187
|
+
if (namespace != null)
|
|
3188
|
+
_queryParams["namespace"] = namespace;
|
|
3483
3189
|
if (limit != null) {
|
|
3484
3190
|
_queryParams["limit"] = limit.toString();
|
|
3485
3191
|
}
|
|
@@ -3487,9 +3193,9 @@ var RivetClient = class {
|
|
|
3487
3193
|
_queryParams["cursor"] = cursor;
|
|
3488
3194
|
}
|
|
3489
3195
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3490
|
-
url:
|
|
3196
|
+
url: urlJoin5(
|
|
3491
3197
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3492
|
-
|
|
3198
|
+
`pools/${encodeURIComponent(pool)}/nodes`
|
|
3493
3199
|
),
|
|
3494
3200
|
method: "GET",
|
|
3495
3201
|
headers: {
|
|
@@ -3507,7 +3213,7 @@ var RivetClient = class {
|
|
|
3507
3213
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
3508
3214
|
});
|
|
3509
3215
|
if (_response.ok) {
|
|
3510
|
-
return
|
|
3216
|
+
return PoolsListNodesResponse.parseOrThrow(_response.body, {
|
|
3511
3217
|
unrecognizedObjectKeys: "passthrough",
|
|
3512
3218
|
allowUnrecognizedUnionMembers: true,
|
|
3513
3219
|
allowUnrecognizedEnumValues: true,
|
|
@@ -3528,52 +3234,23 @@ var RivetClient = class {
|
|
|
3528
3234
|
body: _response.error.rawBody
|
|
3529
3235
|
});
|
|
3530
3236
|
case "timeout":
|
|
3531
|
-
throw new RivetTimeoutError("Timeout exceeded when calling GET /
|
|
3237
|
+
throw new RivetTimeoutError("Timeout exceeded when calling GET /pools/{pool}/nodes.");
|
|
3532
3238
|
case "unknown":
|
|
3533
3239
|
throw new RivetError({
|
|
3534
3240
|
message: _response.error.errorMessage
|
|
3535
3241
|
});
|
|
3536
3242
|
}
|
|
3537
3243
|
}
|
|
3538
|
-
|
|
3539
|
-
* **If actor is created in the current datacenter:**
|
|
3540
|
-
*
|
|
3541
|
-
* 2 round trips:
|
|
3542
|
-
*
|
|
3543
|
-
* - namespace::ops::resolve_for_name_global
|
|
3544
|
-
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
3545
|
-
*
|
|
3546
|
-
* **If actor is created in a different datacenter:**
|
|
3547
|
-
*
|
|
3548
|
-
* 3 round trips:
|
|
3549
|
-
*
|
|
3550
|
-
* - namespace::ops::resolve_for_name_global
|
|
3551
|
-
* - POST /actors to remote datacenter
|
|
3552
|
-
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
3553
|
-
*
|
|
3554
|
-
* actor::get will always be in the same datacenter.
|
|
3555
|
-
*
|
|
3556
|
-
* @param {Rivet.ActorsCreateRequest} request
|
|
3557
|
-
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3558
|
-
*
|
|
3559
|
-
* @example
|
|
3560
|
-
* await client.actorsCreate({
|
|
3561
|
-
* namespace: "namespace",
|
|
3562
|
-
* crashPolicy: "restart",
|
|
3563
|
-
* name: "name",
|
|
3564
|
-
* runnerNameSelector: "runner_name_selector"
|
|
3565
|
-
* })
|
|
3566
|
-
*/
|
|
3567
|
-
async actorsCreate(request, requestOptions) {
|
|
3568
|
-
const { namespace, ..._body } = request;
|
|
3244
|
+
async get(name, request = {}, requestOptions) {
|
|
3569
3245
|
const _queryParams = {};
|
|
3570
|
-
|
|
3246
|
+
if (request.namespace != null)
|
|
3247
|
+
_queryParams["namespace"] = request.namespace;
|
|
3571
3248
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3572
|
-
url:
|
|
3249
|
+
url: urlJoin5(
|
|
3573
3250
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3574
|
-
|
|
3251
|
+
`pools/${encodeURIComponent(name)}`
|
|
3575
3252
|
),
|
|
3576
|
-
method: "
|
|
3253
|
+
method: "GET",
|
|
3577
3254
|
headers: {
|
|
3578
3255
|
Authorization: await this._getAuthorizationHeader(),
|
|
3579
3256
|
"X-Fern-Language": "JavaScript",
|
|
@@ -3584,13 +3261,12 @@ var RivetClient = class {
|
|
|
3584
3261
|
contentType: "application/json",
|
|
3585
3262
|
queryParameters: _queryParams,
|
|
3586
3263
|
requestType: "json",
|
|
3587
|
-
body: ActorsCreateRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
3588
3264
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
3589
3265
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
3590
3266
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
3591
3267
|
});
|
|
3592
3268
|
if (_response.ok) {
|
|
3593
|
-
return
|
|
3269
|
+
return PoolResponse.parseOrThrow(_response.body, {
|
|
3594
3270
|
unrecognizedObjectKeys: "passthrough",
|
|
3595
3271
|
allowUnrecognizedUnionMembers: true,
|
|
3596
3272
|
allowUnrecognizedEnumValues: true,
|
|
@@ -3611,60 +3287,21 @@ var RivetClient = class {
|
|
|
3611
3287
|
body: _response.error.rawBody
|
|
3612
3288
|
});
|
|
3613
3289
|
case "timeout":
|
|
3614
|
-
throw new RivetTimeoutError("Timeout exceeded when calling
|
|
3290
|
+
throw new RivetTimeoutError("Timeout exceeded when calling GET /pools/{pool}.");
|
|
3615
3291
|
case "unknown":
|
|
3616
3292
|
throw new RivetError({
|
|
3617
3293
|
message: _response.error.errorMessage
|
|
3618
3294
|
});
|
|
3619
3295
|
}
|
|
3620
3296
|
}
|
|
3621
|
-
|
|
3622
|
-
* **If actor exists**
|
|
3623
|
-
*
|
|
3624
|
-
* 2 round trips:
|
|
3625
|
-
*
|
|
3626
|
-
* - namespace::ops::resolve_for_name_global
|
|
3627
|
-
* - GET /actors/{}
|
|
3628
|
-
*
|
|
3629
|
-
* **If actor does not exist and is created in the current datacenter:**
|
|
3630
|
-
*
|
|
3631
|
-
* 2 round trips:
|
|
3632
|
-
*
|
|
3633
|
-
* - namespace::ops::resolve_for_name_global
|
|
3634
|
-
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
3635
|
-
*
|
|
3636
|
-
* **If actor does not exist and is created in a different datacenter:**
|
|
3637
|
-
*
|
|
3638
|
-
* 3 round trips:
|
|
3639
|
-
*
|
|
3640
|
-
* - namespace::ops::resolve_for_name_global
|
|
3641
|
-
* - POST /actors to remote datacenter
|
|
3642
|
-
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
3643
|
-
*
|
|
3644
|
-
* actor::get will always be in the same datacenter.
|
|
3645
|
-
*
|
|
3646
|
-
* ## Optimized Alternative Routes
|
|
3647
|
-
*
|
|
3648
|
-
* @param {Rivet.ActorsGetOrCreateRequest} request
|
|
3649
|
-
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3650
|
-
*
|
|
3651
|
-
* @example
|
|
3652
|
-
* await client.actorsGetOrCreate({
|
|
3653
|
-
* namespace: "namespace",
|
|
3654
|
-
* crashPolicy: "restart",
|
|
3655
|
-
* key: "key",
|
|
3656
|
-
* name: "name",
|
|
3657
|
-
* runnerNameSelector: "runner_name_selector"
|
|
3658
|
-
* })
|
|
3659
|
-
*/
|
|
3660
|
-
async actorsGetOrCreate(request, requestOptions) {
|
|
3661
|
-
const { namespace, ..._body } = request;
|
|
3297
|
+
async upsert(name, request, requestOptions) {
|
|
3662
3298
|
const _queryParams = {};
|
|
3663
|
-
|
|
3299
|
+
if (request.namespace != null)
|
|
3300
|
+
_queryParams["namespace"] = request.namespace;
|
|
3664
3301
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3665
|
-
url:
|
|
3302
|
+
url: urlJoin5(
|
|
3666
3303
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3667
|
-
|
|
3304
|
+
`pools/${encodeURIComponent(name)}`
|
|
3668
3305
|
),
|
|
3669
3306
|
method: "PUT",
|
|
3670
3307
|
headers: {
|
|
@@ -3677,13 +3314,19 @@ var RivetClient = class {
|
|
|
3677
3314
|
contentType: "application/json",
|
|
3678
3315
|
queryParameters: _queryParams,
|
|
3679
3316
|
requestType: "json",
|
|
3680
|
-
body:
|
|
3317
|
+
body: {
|
|
3318
|
+
drain_on_version_upgrade: request.drainOnVersionUpgrade,
|
|
3319
|
+
actor_eviction_delay: request.actorEvictionDelay,
|
|
3320
|
+
actor_eviction_period: request.actorEvictionPeriod,
|
|
3321
|
+
actor_eviction_rate: request.actorEvictionRate,
|
|
3322
|
+
metadata: request.metadata
|
|
3323
|
+
},
|
|
3681
3324
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
3682
3325
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
3683
3326
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
3684
3327
|
});
|
|
3685
3328
|
if (_response.ok) {
|
|
3686
|
-
return
|
|
3329
|
+
return PoolResponse.parseOrThrow(_response.body, {
|
|
3687
3330
|
unrecognizedObjectKeys: "passthrough",
|
|
3688
3331
|
allowUnrecognizedUnionMembers: true,
|
|
3689
3332
|
allowUnrecognizedEnumValues: true,
|
|
@@ -3704,43 +3347,23 @@ var RivetClient = class {
|
|
|
3704
3347
|
body: _response.error.rawBody
|
|
3705
3348
|
});
|
|
3706
3349
|
case "timeout":
|
|
3707
|
-
throw new RivetTimeoutError("Timeout exceeded when calling PUT /
|
|
3350
|
+
throw new RivetTimeoutError("Timeout exceeded when calling PUT /pools/{pool}.");
|
|
3708
3351
|
case "unknown":
|
|
3709
3352
|
throw new RivetError({
|
|
3710
3353
|
message: _response.error.errorMessage
|
|
3711
3354
|
});
|
|
3712
3355
|
}
|
|
3713
3356
|
}
|
|
3714
|
-
|
|
3715
|
-
* 2 round trips:
|
|
3716
|
-
*
|
|
3717
|
-
* - GET /actors/names (fanout)
|
|
3718
|
-
* - [api-peer] namespace::ops::resolve_for_name_global
|
|
3719
|
-
*
|
|
3720
|
-
* @param {Rivet.ActorsListNamesRequest} request
|
|
3721
|
-
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3722
|
-
*
|
|
3723
|
-
* @example
|
|
3724
|
-
* await client.actorsListNames({
|
|
3725
|
-
* namespace: "namespace"
|
|
3726
|
-
* })
|
|
3727
|
-
*/
|
|
3728
|
-
async actorsListNames(request, requestOptions) {
|
|
3729
|
-
const { namespace, limit, cursor } = request;
|
|
3357
|
+
async delete(name, request = {}, requestOptions) {
|
|
3730
3358
|
const _queryParams = {};
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
_queryParams["limit"] = limit.toString();
|
|
3734
|
-
}
|
|
3735
|
-
if (cursor != null) {
|
|
3736
|
-
_queryParams["cursor"] = cursor;
|
|
3737
|
-
}
|
|
3359
|
+
if (request.namespace != null)
|
|
3360
|
+
_queryParams["namespace"] = request.namespace;
|
|
3738
3361
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3739
|
-
url:
|
|
3362
|
+
url: urlJoin5(
|
|
3740
3363
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3741
|
-
|
|
3364
|
+
`pools/${encodeURIComponent(name)}`
|
|
3742
3365
|
),
|
|
3743
|
-
method: "
|
|
3366
|
+
method: "DELETE",
|
|
3744
3367
|
headers: {
|
|
3745
3368
|
Authorization: await this._getAuthorizationHeader(),
|
|
3746
3369
|
"X-Fern-Language": "JavaScript",
|
|
@@ -3756,13 +3379,7 @@ var RivetClient = class {
|
|
|
3756
3379
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
3757
3380
|
});
|
|
3758
3381
|
if (_response.ok) {
|
|
3759
|
-
return
|
|
3760
|
-
unrecognizedObjectKeys: "passthrough",
|
|
3761
|
-
allowUnrecognizedUnionMembers: true,
|
|
3762
|
-
allowUnrecognizedEnumValues: true,
|
|
3763
|
-
skipValidation: true,
|
|
3764
|
-
breadcrumbsPrefix: ["response"]
|
|
3765
|
-
});
|
|
3382
|
+
return PoolsDeleteResponse.parseOrThrow(_response.body, { skipValidation: true });
|
|
3766
3383
|
}
|
|
3767
3384
|
if (_response.error.reason === "status-code") {
|
|
3768
3385
|
throw new RivetError({
|
|
@@ -3777,38 +3394,106 @@ var RivetClient = class {
|
|
|
3777
3394
|
body: _response.error.rawBody
|
|
3778
3395
|
});
|
|
3779
3396
|
case "timeout":
|
|
3780
|
-
throw new RivetTimeoutError("Timeout exceeded when calling
|
|
3397
|
+
throw new RivetTimeoutError("Timeout exceeded when calling DELETE /pools/{pool}.");
|
|
3781
3398
|
case "unknown":
|
|
3782
3399
|
throw new RivetError({
|
|
3783
3400
|
message: _response.error.errorMessage
|
|
3784
3401
|
});
|
|
3785
3402
|
}
|
|
3786
3403
|
}
|
|
3404
|
+
async _getAuthorizationHeader() {
|
|
3405
|
+
return `Bearer ${await Supplier.get(this._options.token)}`;
|
|
3406
|
+
}
|
|
3407
|
+
};
|
|
3408
|
+
|
|
3409
|
+
// src/Client.ts
|
|
3410
|
+
var RivetClient = class {
|
|
3411
|
+
constructor(_options) {
|
|
3412
|
+
this._options = _options;
|
|
3413
|
+
}
|
|
3414
|
+
_authTokens;
|
|
3415
|
+
_datacenters;
|
|
3416
|
+
_metadata;
|
|
3417
|
+
_namespaces;
|
|
3418
|
+
_pools;
|
|
3419
|
+
get authTokens() {
|
|
3420
|
+
return this._authTokens ?? (this._authTokens = new AuthTokens(this._options));
|
|
3421
|
+
}
|
|
3422
|
+
get datacenters() {
|
|
3423
|
+
return this._datacenters ?? (this._datacenters = new Datacenters(this._options));
|
|
3424
|
+
}
|
|
3425
|
+
get metadata() {
|
|
3426
|
+
return this._metadata ?? (this._metadata = new Metadata(this._options));
|
|
3427
|
+
}
|
|
3428
|
+
get namespaces() {
|
|
3429
|
+
return this._namespaces ?? (this._namespaces = new Namespaces(this._options));
|
|
3430
|
+
}
|
|
3431
|
+
get pools() {
|
|
3432
|
+
return this._pools ?? (this._pools = new Pools(this._options));
|
|
3433
|
+
}
|
|
3787
3434
|
/**
|
|
3788
|
-
*
|
|
3435
|
+
* **If key is some & `include_destroyed` is false**
|
|
3789
3436
|
*
|
|
3790
|
-
*
|
|
3791
|
-
* - [api-peer] namespace::ops::resolve_for_name_global
|
|
3437
|
+
* 2 round trips:
|
|
3792
3438
|
*
|
|
3793
|
-
*
|
|
3794
|
-
*
|
|
3439
|
+
* - namespace::ops::resolve_for_name_global
|
|
3440
|
+
* - GET /actors (multiple DCs based on actor IDs)
|
|
3441
|
+
*
|
|
3442
|
+
* This path is optimized because we can read the actor IDs fro the key directly from Epoxy with
|
|
3443
|
+
* stale consistency to determine which datacenter the actor lives in. Under most circumstances,
|
|
3444
|
+
* this means we don't need to fan out to all datacenters (like normal list does).
|
|
3445
|
+
*
|
|
3446
|
+
* The reason `include_destroyed` has to be false is Epoxy only stores currently active actors. If
|
|
3447
|
+
* `include_destroyed` is true, we show all previous iterations of actors with the same key.
|
|
3448
|
+
*
|
|
3449
|
+
* **Otherwise**
|
|
3450
|
+
*
|
|
3451
|
+
* 2 round trips:
|
|
3452
|
+
*
|
|
3453
|
+
* - namespace::ops::resolve_for_name_global
|
|
3454
|
+
* - GET /actors (fanout)
|
|
3455
|
+
*
|
|
3456
|
+
* ## Optimized Alternative Routes
|
|
3457
|
+
*
|
|
3458
|
+
* @param {Rivet.ActorsListRequest} request
|
|
3795
3459
|
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3796
3460
|
*
|
|
3797
3461
|
* @example
|
|
3798
|
-
* await client.
|
|
3462
|
+
* await client.actorsList({
|
|
3799
3463
|
* namespace: "namespace"
|
|
3800
3464
|
* })
|
|
3801
3465
|
*/
|
|
3802
|
-
async
|
|
3803
|
-
const { namespace } = request;
|
|
3466
|
+
async actorsList(request, requestOptions) {
|
|
3467
|
+
const { namespace, name, key, actorIds, actorId, includeDestroyed, limit, cursor } = request;
|
|
3804
3468
|
const _queryParams = {};
|
|
3805
|
-
|
|
3469
|
+
if (namespace != null)
|
|
3470
|
+
_queryParams["namespace"] = namespace;
|
|
3471
|
+
if (name != null) {
|
|
3472
|
+
_queryParams["name"] = name;
|
|
3473
|
+
}
|
|
3474
|
+
if (key != null) {
|
|
3475
|
+
_queryParams["key"] = key;
|
|
3476
|
+
}
|
|
3477
|
+
if (actorIds != null) {
|
|
3478
|
+
_queryParams["actor_ids"] = actorIds;
|
|
3479
|
+
}
|
|
3480
|
+
if (actorId != null)
|
|
3481
|
+
_queryParams["actor_id"] = actorId;
|
|
3482
|
+
if (includeDestroyed != null) {
|
|
3483
|
+
_queryParams["include_destroyed"] = includeDestroyed.toString();
|
|
3484
|
+
}
|
|
3485
|
+
if (limit != null) {
|
|
3486
|
+
_queryParams["limit"] = limit.toString();
|
|
3487
|
+
}
|
|
3488
|
+
if (cursor != null) {
|
|
3489
|
+
_queryParams["cursor"] = cursor;
|
|
3490
|
+
}
|
|
3806
3491
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3807
|
-
url:
|
|
3492
|
+
url: urlJoin6(
|
|
3808
3493
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3809
|
-
|
|
3494
|
+
"actors"
|
|
3810
3495
|
),
|
|
3811
|
-
method: "
|
|
3496
|
+
method: "GET",
|
|
3812
3497
|
headers: {
|
|
3813
3498
|
Authorization: await this._getAuthorizationHeader(),
|
|
3814
3499
|
"X-Fern-Language": "JavaScript",
|
|
@@ -3824,7 +3509,7 @@ var RivetClient = class {
|
|
|
3824
3509
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
3825
3510
|
});
|
|
3826
3511
|
if (_response.ok) {
|
|
3827
|
-
return
|
|
3512
|
+
return ActorsListResponse.parseOrThrow(_response.body, {
|
|
3828
3513
|
unrecognizedObjectKeys: "passthrough",
|
|
3829
3514
|
allowUnrecognizedUnionMembers: true,
|
|
3830
3515
|
allowUnrecognizedEnumValues: true,
|
|
@@ -3845,7 +3530,7 @@ var RivetClient = class {
|
|
|
3845
3530
|
body: _response.error.rawBody
|
|
3846
3531
|
});
|
|
3847
3532
|
case "timeout":
|
|
3848
|
-
throw new RivetTimeoutError("Timeout exceeded when calling
|
|
3533
|
+
throw new RivetTimeoutError("Timeout exceeded when calling GET /actors.");
|
|
3849
3534
|
case "unknown":
|
|
3850
3535
|
throw new RivetError({
|
|
3851
3536
|
message: _response.error.errorMessage
|
|
@@ -3853,26 +3538,44 @@ var RivetClient = class {
|
|
|
3853
3538
|
}
|
|
3854
3539
|
}
|
|
3855
3540
|
/**
|
|
3856
|
-
*
|
|
3857
|
-
*
|
|
3858
|
-
*
|
|
3541
|
+
* **If actor is created in the current datacenter:**
|
|
3542
|
+
*
|
|
3543
|
+
* 2 round trips:
|
|
3544
|
+
*
|
|
3545
|
+
* - namespace::ops::resolve_for_name_global
|
|
3546
|
+
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
3547
|
+
*
|
|
3548
|
+
* **If actor is created in a different datacenter:**
|
|
3549
|
+
*
|
|
3550
|
+
* 3 round trips:
|
|
3551
|
+
*
|
|
3552
|
+
* - namespace::ops::resolve_for_name_global
|
|
3553
|
+
* - POST /actors to remote datacenter
|
|
3554
|
+
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
3555
|
+
*
|
|
3556
|
+
* actor::get will always be in the same datacenter.
|
|
3557
|
+
*
|
|
3558
|
+
* @param {Rivet.ActorsCreateRequest} request
|
|
3859
3559
|
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3860
3560
|
*
|
|
3861
3561
|
* @example
|
|
3862
|
-
* await client.
|
|
3863
|
-
* namespace: "namespace"
|
|
3562
|
+
* await client.actorsCreate({
|
|
3563
|
+
* namespace: "namespace",
|
|
3564
|
+
* name: "name",
|
|
3565
|
+
* pool: "pool"
|
|
3864
3566
|
* })
|
|
3865
3567
|
*/
|
|
3866
|
-
async
|
|
3867
|
-
const { namespace } = request;
|
|
3568
|
+
async actorsCreate(request, requestOptions) {
|
|
3569
|
+
const { namespace, ..._body } = request;
|
|
3868
3570
|
const _queryParams = {};
|
|
3869
|
-
|
|
3571
|
+
if (namespace != null)
|
|
3572
|
+
_queryParams["namespace"] = namespace;
|
|
3870
3573
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3871
|
-
url:
|
|
3574
|
+
url: urlJoin6(
|
|
3872
3575
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3873
|
-
|
|
3576
|
+
"actors"
|
|
3874
3577
|
),
|
|
3875
|
-
method: "
|
|
3578
|
+
method: "POST",
|
|
3876
3579
|
headers: {
|
|
3877
3580
|
Authorization: await this._getAuthorizationHeader(),
|
|
3878
3581
|
"X-Fern-Language": "JavaScript",
|
|
@@ -3883,12 +3586,13 @@ var RivetClient = class {
|
|
|
3883
3586
|
contentType: "application/json",
|
|
3884
3587
|
queryParameters: _queryParams,
|
|
3885
3588
|
requestType: "json",
|
|
3589
|
+
body: ActorsCreateRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
3886
3590
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
3887
3591
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
3888
3592
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
3889
3593
|
});
|
|
3890
3594
|
if (_response.ok) {
|
|
3891
|
-
return
|
|
3595
|
+
return ActorsCreateResponse.parseOrThrow(_response.body, {
|
|
3892
3596
|
unrecognizedObjectKeys: "passthrough",
|
|
3893
3597
|
allowUnrecognizedUnionMembers: true,
|
|
3894
3598
|
allowUnrecognizedEnumValues: true,
|
|
@@ -3909,9 +3613,7 @@ var RivetClient = class {
|
|
|
3909
3613
|
body: _response.error.rawBody
|
|
3910
3614
|
});
|
|
3911
3615
|
case "timeout":
|
|
3912
|
-
throw new RivetTimeoutError(
|
|
3913
|
-
"Timeout exceeded when calling GET /actors/{actor_id}/kv/keys/{key}."
|
|
3914
|
-
);
|
|
3616
|
+
throw new RivetTimeoutError("Timeout exceeded when calling POST /actors.");
|
|
3915
3617
|
case "unknown":
|
|
3916
3618
|
throw new RivetError({
|
|
3917
3619
|
message: _response.error.errorMessage
|
|
@@ -3919,28 +3621,54 @@ var RivetClient = class {
|
|
|
3919
3621
|
}
|
|
3920
3622
|
}
|
|
3921
3623
|
/**
|
|
3922
|
-
*
|
|
3923
|
-
*
|
|
3624
|
+
* **If actor exists**
|
|
3625
|
+
*
|
|
3626
|
+
* 2 round trips:
|
|
3627
|
+
*
|
|
3628
|
+
* - namespace::ops::resolve_for_name_global
|
|
3629
|
+
* - GET /actors/{}
|
|
3630
|
+
*
|
|
3631
|
+
* **If actor does not exist and is created in the current datacenter:**
|
|
3632
|
+
*
|
|
3633
|
+
* 2 round trips:
|
|
3634
|
+
*
|
|
3635
|
+
* - namespace::ops::resolve_for_name_global
|
|
3636
|
+
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
3637
|
+
*
|
|
3638
|
+
* **If actor does not exist and is created in a different datacenter:**
|
|
3639
|
+
*
|
|
3640
|
+
* 3 round trips:
|
|
3641
|
+
*
|
|
3642
|
+
* - namespace::ops::resolve_for_name_global
|
|
3643
|
+
* - POST /actors to remote datacenter
|
|
3644
|
+
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
3645
|
+
*
|
|
3646
|
+
* actor::get will always be in the same datacenter.
|
|
3647
|
+
*
|
|
3648
|
+
* ## Optimized Alternative Routes
|
|
3649
|
+
*
|
|
3650
|
+
* @param {Rivet.ActorsGetOrCreateRequest} request
|
|
3924
3651
|
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3925
3652
|
*
|
|
3926
3653
|
* @example
|
|
3927
|
-
* await client.
|
|
3654
|
+
* await client.actorsGetOrCreate({
|
|
3928
3655
|
* namespace: "namespace",
|
|
3929
|
-
*
|
|
3930
|
-
*
|
|
3931
|
-
*
|
|
3656
|
+
* key: "key",
|
|
3657
|
+
* name: "name",
|
|
3658
|
+
* pool: "pool"
|
|
3932
3659
|
* })
|
|
3933
3660
|
*/
|
|
3934
|
-
async
|
|
3935
|
-
const { namespace,
|
|
3661
|
+
async actorsGetOrCreate(request, requestOptions) {
|
|
3662
|
+
const { namespace, ..._body } = request;
|
|
3936
3663
|
const _queryParams = {};
|
|
3937
|
-
|
|
3664
|
+
if (namespace != null)
|
|
3665
|
+
_queryParams["namespace"] = namespace;
|
|
3938
3666
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
3939
|
-
url:
|
|
3667
|
+
url: urlJoin6(
|
|
3940
3668
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
3941
|
-
|
|
3669
|
+
"actors"
|
|
3942
3670
|
),
|
|
3943
|
-
method: "
|
|
3671
|
+
method: "PUT",
|
|
3944
3672
|
headers: {
|
|
3945
3673
|
Authorization: await this._getAuthorizationHeader(),
|
|
3946
3674
|
"X-Fern-Language": "JavaScript",
|
|
@@ -3951,13 +3679,13 @@ var RivetClient = class {
|
|
|
3951
3679
|
contentType: "application/json",
|
|
3952
3680
|
queryParameters: _queryParams,
|
|
3953
3681
|
requestType: "json",
|
|
3954
|
-
body:
|
|
3682
|
+
body: ActorsGetOrCreateRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
3955
3683
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
3956
3684
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
3957
3685
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
3958
3686
|
});
|
|
3959
3687
|
if (_response.ok) {
|
|
3960
|
-
return
|
|
3688
|
+
return ActorsGetOrCreateResponse.parseOrThrow(_response.body, {
|
|
3961
3689
|
unrecognizedObjectKeys: "passthrough",
|
|
3962
3690
|
allowUnrecognizedUnionMembers: true,
|
|
3963
3691
|
allowUnrecognizedEnumValues: true,
|
|
@@ -3978,7 +3706,7 @@ var RivetClient = class {
|
|
|
3978
3706
|
body: _response.error.rawBody
|
|
3979
3707
|
});
|
|
3980
3708
|
case "timeout":
|
|
3981
|
-
throw new RivetTimeoutError("Timeout exceeded when calling
|
|
3709
|
+
throw new RivetTimeoutError("Timeout exceeded when calling PUT /actors.");
|
|
3982
3710
|
case "unknown":
|
|
3983
3711
|
throw new RivetError({
|
|
3984
3712
|
message: _response.error.errorMessage
|
|
@@ -3986,28 +3714,36 @@ var RivetClient = class {
|
|
|
3986
3714
|
}
|
|
3987
3715
|
}
|
|
3988
3716
|
/**
|
|
3989
|
-
*
|
|
3990
|
-
*
|
|
3717
|
+
* 2 round trips:
|
|
3718
|
+
*
|
|
3719
|
+
* - GET /actors/names (fanout)
|
|
3720
|
+
* - [api-peer] namespace::ops::resolve_for_name_global
|
|
3721
|
+
*
|
|
3722
|
+
* @param {Rivet.ActorsListNamesRequest} request
|
|
3991
3723
|
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3992
3724
|
*
|
|
3993
3725
|
* @example
|
|
3994
|
-
* await client.
|
|
3995
|
-
* namespace: "namespace"
|
|
3996
|
-
* body: {
|
|
3997
|
-
* "key": "value"
|
|
3998
|
-
* }
|
|
3726
|
+
* await client.actorsListNames({
|
|
3727
|
+
* namespace: "namespace"
|
|
3999
3728
|
* })
|
|
4000
3729
|
*/
|
|
4001
|
-
async
|
|
4002
|
-
const { namespace,
|
|
3730
|
+
async actorsListNames(request, requestOptions) {
|
|
3731
|
+
const { namespace, limit, cursor } = request;
|
|
4003
3732
|
const _queryParams = {};
|
|
4004
|
-
|
|
3733
|
+
if (namespace != null)
|
|
3734
|
+
_queryParams["namespace"] = namespace;
|
|
3735
|
+
if (limit != null) {
|
|
3736
|
+
_queryParams["limit"] = limit.toString();
|
|
3737
|
+
}
|
|
3738
|
+
if (cursor != null) {
|
|
3739
|
+
_queryParams["cursor"] = cursor;
|
|
3740
|
+
}
|
|
4005
3741
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
4006
|
-
url:
|
|
3742
|
+
url: urlJoin6(
|
|
4007
3743
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
4008
|
-
|
|
3744
|
+
"actors/names"
|
|
4009
3745
|
),
|
|
4010
|
-
method: "
|
|
3746
|
+
method: "GET",
|
|
4011
3747
|
headers: {
|
|
4012
3748
|
Authorization: await this._getAuthorizationHeader(),
|
|
4013
3749
|
"X-Fern-Language": "JavaScript",
|
|
@@ -4018,13 +3754,12 @@ var RivetClient = class {
|
|
|
4018
3754
|
contentType: "application/json",
|
|
4019
3755
|
queryParameters: _queryParams,
|
|
4020
3756
|
requestType: "json",
|
|
4021
|
-
body: ActorsSleepRequestBody.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
4022
3757
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
4023
3758
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
4024
3759
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
4025
3760
|
});
|
|
4026
3761
|
if (_response.ok) {
|
|
4027
|
-
return
|
|
3762
|
+
return ActorsListNamesResponse.parseOrThrow(_response.body, {
|
|
4028
3763
|
unrecognizedObjectKeys: "passthrough",
|
|
4029
3764
|
allowUnrecognizedUnionMembers: true,
|
|
4030
3765
|
allowUnrecognizedEnumValues: true,
|
|
@@ -4045,7 +3780,7 @@ var RivetClient = class {
|
|
|
4045
3780
|
body: _response.error.rawBody
|
|
4046
3781
|
});
|
|
4047
3782
|
case "timeout":
|
|
4048
|
-
throw new RivetTimeoutError("Timeout exceeded when calling
|
|
3783
|
+
throw new RivetTimeoutError("Timeout exceeded when calling GET /actors/names.");
|
|
4049
3784
|
case "unknown":
|
|
4050
3785
|
throw new RivetError({
|
|
4051
3786
|
message: _response.error.errorMessage
|
|
@@ -4053,43 +3788,30 @@ var RivetClient = class {
|
|
|
4053
3788
|
}
|
|
4054
3789
|
}
|
|
4055
3790
|
/**
|
|
4056
|
-
*
|
|
3791
|
+
* 2 round trip:
|
|
3792
|
+
*
|
|
3793
|
+
* - DELETE /actors/{}
|
|
3794
|
+
* - [api-peer] namespace::ops::resolve_for_name_global
|
|
3795
|
+
*
|
|
3796
|
+
* @param {Rivet.RivetId} actorId
|
|
3797
|
+
* @param {Rivet.ActorsDeleteRequest} request
|
|
4057
3798
|
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
4058
3799
|
*
|
|
4059
3800
|
* @example
|
|
4060
|
-
* await client.
|
|
3801
|
+
* await client.actorsDelete("actor_id", {
|
|
4061
3802
|
* namespace: "namespace"
|
|
4062
3803
|
* })
|
|
4063
3804
|
*/
|
|
4064
|
-
|
|
4065
|
-
|
|
3805
|
+
/** Returns one actor by ID. */
|
|
3806
|
+
async actorsGet(actorId, request, requestOptions) {
|
|
3807
|
+
const { namespace } = request;
|
|
4066
3808
|
const _queryParams = {};
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
_queryParams["limit"] = limit.toString();
|
|
4070
|
-
}
|
|
4071
|
-
if (cursor != null) {
|
|
4072
|
-
_queryParams["cursor"] = cursor;
|
|
4073
|
-
}
|
|
4074
|
-
if (variant != null) {
|
|
4075
|
-
_queryParams["variant"] = RunnerConfigVariant2.jsonOrThrow(variant, {
|
|
4076
|
-
unrecognizedObjectKeys: "strip"
|
|
4077
|
-
});
|
|
4078
|
-
}
|
|
4079
|
-
if (runnerNames != null) {
|
|
4080
|
-
_queryParams["runner_names"] = runnerNames;
|
|
4081
|
-
}
|
|
4082
|
-
if (runnerName != null) {
|
|
4083
|
-
if (Array.isArray(runnerName)) {
|
|
4084
|
-
_queryParams["runner_name"] = runnerName.map((item) => item);
|
|
4085
|
-
} else {
|
|
4086
|
-
_queryParams["runner_name"] = runnerName;
|
|
4087
|
-
}
|
|
4088
|
-
}
|
|
3809
|
+
if (namespace != null)
|
|
3810
|
+
_queryParams["namespace"] = namespace;
|
|
4089
3811
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
4090
|
-
url:
|
|
3812
|
+
url: urlJoin6(
|
|
4091
3813
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
4092
|
-
|
|
3814
|
+
`actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}`
|
|
4093
3815
|
),
|
|
4094
3816
|
method: "GET",
|
|
4095
3817
|
headers: {
|
|
@@ -4107,7 +3829,7 @@ var RivetClient = class {
|
|
|
4107
3829
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
4108
3830
|
});
|
|
4109
3831
|
if (_response.ok) {
|
|
4110
|
-
return
|
|
3832
|
+
return ActorsGetResponse.parseOrThrow(_response.body, {
|
|
4111
3833
|
unrecognizedObjectKeys: "passthrough",
|
|
4112
3834
|
allowUnrecognizedUnionMembers: true,
|
|
4113
3835
|
allowUnrecognizedEnumValues: true,
|
|
@@ -4128,33 +3850,24 @@ var RivetClient = class {
|
|
|
4128
3850
|
body: _response.error.rawBody
|
|
4129
3851
|
});
|
|
4130
3852
|
case "timeout":
|
|
4131
|
-
throw new RivetTimeoutError("Timeout exceeded when calling GET /
|
|
3853
|
+
throw new RivetTimeoutError("Timeout exceeded when calling GET /actors/{actor_id}.");
|
|
4132
3854
|
case "unknown":
|
|
4133
3855
|
throw new RivetError({
|
|
4134
3856
|
message: _response.error.errorMessage
|
|
4135
3857
|
});
|
|
4136
3858
|
}
|
|
4137
3859
|
}
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
4141
|
-
*
|
|
4142
|
-
* @example
|
|
4143
|
-
* await client.runnerConfigsServerlessHealthCheck({
|
|
4144
|
-
* namespace: "namespace",
|
|
4145
|
-
* url: "url"
|
|
4146
|
-
* })
|
|
4147
|
-
*/
|
|
4148
|
-
async runnerConfigsServerlessHealthCheck(request, requestOptions) {
|
|
4149
|
-
const { namespace, ..._body } = request;
|
|
3860
|
+
async actorsDelete(actorId, request, requestOptions) {
|
|
3861
|
+
const { namespace } = request;
|
|
4150
3862
|
const _queryParams = {};
|
|
4151
|
-
|
|
3863
|
+
if (namespace != null)
|
|
3864
|
+
_queryParams["namespace"] = namespace;
|
|
4152
3865
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
4153
|
-
url:
|
|
3866
|
+
url: urlJoin6(
|
|
4154
3867
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
4155
|
-
|
|
3868
|
+
`actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}`
|
|
4156
3869
|
),
|
|
4157
|
-
method: "
|
|
3870
|
+
method: "DELETE",
|
|
4158
3871
|
headers: {
|
|
4159
3872
|
Authorization: await this._getAuthorizationHeader(),
|
|
4160
3873
|
"X-Fern-Language": "JavaScript",
|
|
@@ -4165,15 +3878,12 @@ var RivetClient = class {
|
|
|
4165
3878
|
contentType: "application/json",
|
|
4166
3879
|
queryParameters: _queryParams,
|
|
4167
3880
|
requestType: "json",
|
|
4168
|
-
body: RunnerConfigsServerlessHealthCheckRequest.jsonOrThrow(_body, {
|
|
4169
|
-
unrecognizedObjectKeys: "strip"
|
|
4170
|
-
}),
|
|
4171
3881
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
4172
3882
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
4173
3883
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
4174
3884
|
});
|
|
4175
3885
|
if (_response.ok) {
|
|
4176
|
-
return
|
|
3886
|
+
return ActorsDeleteResponse.parseOrThrow(_response.body, {
|
|
4177
3887
|
unrecognizedObjectKeys: "passthrough",
|
|
4178
3888
|
allowUnrecognizedUnionMembers: true,
|
|
4179
3889
|
allowUnrecognizedEnumValues: true,
|
|
@@ -4194,9 +3904,7 @@ var RivetClient = class {
|
|
|
4194
3904
|
body: _response.error.rawBody
|
|
4195
3905
|
});
|
|
4196
3906
|
case "timeout":
|
|
4197
|
-
throw new RivetTimeoutError(
|
|
4198
|
-
"Timeout exceeded when calling POST /runner-configs/serverless-health-check."
|
|
4199
|
-
);
|
|
3907
|
+
throw new RivetTimeoutError("Timeout exceeded when calling DELETE /actors/{actor_id}.");
|
|
4200
3908
|
case "unknown":
|
|
4201
3909
|
throw new RivetError({
|
|
4202
3910
|
message: _response.error.errorMessage
|
|
@@ -4204,28 +3912,26 @@ var RivetClient = class {
|
|
|
4204
3912
|
}
|
|
4205
3913
|
}
|
|
4206
3914
|
/**
|
|
4207
|
-
* @param {
|
|
4208
|
-
* @param {Rivet.
|
|
3915
|
+
* @param {Rivet.RivetId} actorId
|
|
3916
|
+
* @param {Rivet.ActorsRescheduleRequest} request
|
|
4209
3917
|
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
4210
3918
|
*
|
|
4211
3919
|
* @example
|
|
4212
|
-
* await client.
|
|
3920
|
+
* await client.actorsReschedule("actor_id", {
|
|
4213
3921
|
* namespace: "namespace",
|
|
4214
|
-
* datacenters: {
|
|
4215
|
-
* "key": {}
|
|
4216
|
-
* }
|
|
4217
3922
|
* })
|
|
4218
3923
|
*/
|
|
4219
|
-
async
|
|
4220
|
-
const { namespace
|
|
3924
|
+
async actorsReschedule(actorId, request, requestOptions) {
|
|
3925
|
+
const { namespace } = request;
|
|
4221
3926
|
const _queryParams = {};
|
|
4222
|
-
|
|
3927
|
+
if (namespace != null)
|
|
3928
|
+
_queryParams["namespace"] = namespace;
|
|
4223
3929
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
4224
|
-
url:
|
|
3930
|
+
url: urlJoin6(
|
|
4225
3931
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
4226
|
-
`
|
|
3932
|
+
`actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}/reschedule`
|
|
4227
3933
|
),
|
|
4228
|
-
method: "
|
|
3934
|
+
method: "POST",
|
|
4229
3935
|
headers: {
|
|
4230
3936
|
Authorization: await this._getAuthorizationHeader(),
|
|
4231
3937
|
"X-Fern-Language": "JavaScript",
|
|
@@ -4236,13 +3942,12 @@ var RivetClient = class {
|
|
|
4236
3942
|
contentType: "application/json",
|
|
4237
3943
|
queryParameters: _queryParams,
|
|
4238
3944
|
requestType: "json",
|
|
4239
|
-
body: RunnerConfigsUpsertRequestBody.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
4240
3945
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
4241
3946
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
4242
3947
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
4243
3948
|
});
|
|
4244
3949
|
if (_response.ok) {
|
|
4245
|
-
return
|
|
3950
|
+
return ActorsRescheduleResponse.parseOrThrow(_response.body, {
|
|
4246
3951
|
unrecognizedObjectKeys: "passthrough",
|
|
4247
3952
|
allowUnrecognizedUnionMembers: true,
|
|
4248
3953
|
allowUnrecognizedEnumValues: true,
|
|
@@ -4263,7 +3968,7 @@ var RivetClient = class {
|
|
|
4263
3968
|
body: _response.error.rawBody
|
|
4264
3969
|
});
|
|
4265
3970
|
case "timeout":
|
|
4266
|
-
throw new RivetTimeoutError("Timeout exceeded when calling
|
|
3971
|
+
throw new RivetTimeoutError("Timeout exceeded when calling POST /actors/{actor_id}/reschedule.");
|
|
4267
3972
|
case "unknown":
|
|
4268
3973
|
throw new RivetError({
|
|
4269
3974
|
message: _response.error.errorMessage
|
|
@@ -4271,25 +3976,26 @@ var RivetClient = class {
|
|
|
4271
3976
|
}
|
|
4272
3977
|
}
|
|
4273
3978
|
/**
|
|
4274
|
-
* @param {
|
|
4275
|
-
* @param {Rivet.
|
|
3979
|
+
* @param {Rivet.RivetId} actorId
|
|
3980
|
+
* @param {Rivet.ActorsSleepRequest} request
|
|
4276
3981
|
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
4277
3982
|
*
|
|
4278
3983
|
* @example
|
|
4279
|
-
* await client.
|
|
4280
|
-
* namespace: "namespace"
|
|
3984
|
+
* await client.actorsSleep("actor_id", {
|
|
3985
|
+
* namespace: "namespace",
|
|
4281
3986
|
* })
|
|
4282
3987
|
*/
|
|
4283
|
-
async
|
|
3988
|
+
async actorsSleep(actorId, request, requestOptions) {
|
|
4284
3989
|
const { namespace } = request;
|
|
4285
3990
|
const _queryParams = {};
|
|
4286
|
-
|
|
3991
|
+
if (namespace != null)
|
|
3992
|
+
_queryParams["namespace"] = namespace;
|
|
4287
3993
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
4288
|
-
url:
|
|
3994
|
+
url: urlJoin6(
|
|
4289
3995
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
4290
|
-
`
|
|
3996
|
+
`actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}/sleep`
|
|
4291
3997
|
),
|
|
4292
|
-
method: "
|
|
3998
|
+
method: "POST",
|
|
4293
3999
|
headers: {
|
|
4294
4000
|
Authorization: await this._getAuthorizationHeader(),
|
|
4295
4001
|
"X-Fern-Language": "JavaScript",
|
|
@@ -4305,7 +4011,7 @@ var RivetClient = class {
|
|
|
4305
4011
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
4306
4012
|
});
|
|
4307
4013
|
if (_response.ok) {
|
|
4308
|
-
return
|
|
4014
|
+
return ActorsSleepResponse.parseOrThrow(_response.body, {
|
|
4309
4015
|
unrecognizedObjectKeys: "passthrough",
|
|
4310
4016
|
allowUnrecognizedUnionMembers: true,
|
|
4311
4017
|
allowUnrecognizedEnumValues: true,
|
|
@@ -4326,9 +4032,7 @@ var RivetClient = class {
|
|
|
4326
4032
|
body: _response.error.rawBody
|
|
4327
4033
|
});
|
|
4328
4034
|
case "timeout":
|
|
4329
|
-
throw new RivetTimeoutError(
|
|
4330
|
-
"Timeout exceeded when calling DELETE /runner-configs/{runner_name}."
|
|
4331
|
-
);
|
|
4035
|
+
throw new RivetTimeoutError("Timeout exceeded when calling POST /actors/{actor_id}/sleep.");
|
|
4332
4036
|
case "unknown":
|
|
4333
4037
|
throw new RivetError({
|
|
4334
4038
|
message: _response.error.errorMessage
|
|
@@ -4336,26 +4040,27 @@ var RivetClient = class {
|
|
|
4336
4040
|
}
|
|
4337
4041
|
}
|
|
4338
4042
|
/**
|
|
4339
|
-
*
|
|
4340
|
-
*
|
|
4043
|
+
* Forks an actor: creates a new actor in the same namespace, with the source's name and pool,
|
|
4044
|
+
* whose database is a copy of the source's, and starts it.
|
|
4045
|
+
*
|
|
4046
|
+
* @param {Rivet.RivetId} actorId
|
|
4047
|
+
* @param {Rivet.ActorsForkRequest} request
|
|
4341
4048
|
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
4342
4049
|
*
|
|
4343
4050
|
* @example
|
|
4344
|
-
* await client.
|
|
4051
|
+
* await client.actorsFork("actor_id", {
|
|
4345
4052
|
* namespace: "namespace",
|
|
4346
|
-
* body: {
|
|
4347
|
-
* "key": "value"
|
|
4348
|
-
* }
|
|
4349
4053
|
* })
|
|
4350
4054
|
*/
|
|
4351
|
-
async
|
|
4352
|
-
const { namespace,
|
|
4055
|
+
async actorsFork(actorId, request, requestOptions) {
|
|
4056
|
+
const { namespace, ..._body } = request;
|
|
4353
4057
|
const _queryParams = {};
|
|
4354
|
-
|
|
4058
|
+
if (namespace != null)
|
|
4059
|
+
_queryParams["namespace"] = namespace;
|
|
4355
4060
|
const _response = await (this._options.fetcher ?? fetcher)({
|
|
4356
|
-
url:
|
|
4061
|
+
url: urlJoin6(
|
|
4357
4062
|
await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
|
|
4358
|
-
`
|
|
4063
|
+
`actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}/fork`
|
|
4359
4064
|
),
|
|
4360
4065
|
method: "POST",
|
|
4361
4066
|
headers: {
|
|
@@ -4368,15 +4073,13 @@ var RivetClient = class {
|
|
|
4368
4073
|
contentType: "application/json",
|
|
4369
4074
|
queryParameters: _queryParams,
|
|
4370
4075
|
requestType: "json",
|
|
4371
|
-
body:
|
|
4372
|
-
unrecognizedObjectKeys: "strip"
|
|
4373
|
-
}),
|
|
4076
|
+
body: ActorsForkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
4374
4077
|
timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
|
|
4375
4078
|
maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
|
|
4376
4079
|
abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
|
|
4377
4080
|
});
|
|
4378
4081
|
if (_response.ok) {
|
|
4379
|
-
return
|
|
4082
|
+
return ActorsForkResponse.parseOrThrow(_response.body, {
|
|
4380
4083
|
unrecognizedObjectKeys: "passthrough",
|
|
4381
4084
|
allowUnrecognizedUnionMembers: true,
|
|
4382
4085
|
allowUnrecognizedEnumValues: true,
|
|
@@ -4397,9 +4100,7 @@ var RivetClient = class {
|
|
|
4397
4100
|
body: _response.error.rawBody
|
|
4398
4101
|
});
|
|
4399
4102
|
case "timeout":
|
|
4400
|
-
throw new RivetTimeoutError(
|
|
4401
|
-
"Timeout exceeded when calling POST /runner-configs/{runner_name}/refresh-metadata."
|
|
4402
|
-
);
|
|
4103
|
+
throw new RivetTimeoutError("Timeout exceeded when calling POST /actors/{actor_id}/fork.");
|
|
4403
4104
|
case "unknown":
|
|
4404
4105
|
throw new RivetError({
|
|
4405
4106
|
message: _response.error.errorMessage
|