@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
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as Rivet from "../index";
|
|
5
2
|
export interface ActorsGetOrCreateResponse {
|
|
6
3
|
actor: Rivet.Actor;
|
|
4
|
+
/** `true` if this request created the actor, `false` if it already existed. */
|
|
7
5
|
created: boolean;
|
|
8
6
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as Rivet from "../index";
|
|
5
2
|
export interface ActorsListNamesResponse {
|
|
3
|
+
/** Map from actor name to its metadata. */
|
|
6
4
|
names: Record<string, Rivet.ActorName>;
|
|
7
|
-
pagination: Rivet.Pagination;
|
|
8
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AuthOperationKind = "read" | "update" | "list" | "create" | "delete" | "fork";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AuthResourceKind = "namespace" | "actor" | "node" | "pool" | "datacenter" | "actor_gateway" | "actor_kv";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Rivet from "../index";
|
|
2
|
+
export interface AuthTokenInspectResponse {
|
|
3
|
+
/** Name of the namespace the token is scoped to. */
|
|
4
|
+
namespace: string;
|
|
5
|
+
/** Subject attached to the token, or `null`. */
|
|
6
|
+
subject: string | null;
|
|
7
|
+
/** Access the token carries. */
|
|
8
|
+
grants: (Rivet.AuthTokenGrant)[];
|
|
9
|
+
/** When the token was issued, in Unix milliseconds. */
|
|
10
|
+
issuedTs: number;
|
|
11
|
+
/** When the token expires, in Unix milliseconds. */
|
|
12
|
+
expiresTs: number;
|
|
13
|
+
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as Rivet from "../index";
|
|
5
2
|
export interface DatacentersListResponse {
|
|
6
|
-
datacenters: Rivet.Datacenter[];
|
|
7
|
-
pagination: Rivet.Pagination;
|
|
3
|
+
datacenters: (Rivet.Datacenter)[];
|
|
8
4
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ErrorResponse {
|
|
2
|
+
/** Error group, for example `actor`. */
|
|
3
|
+
group: string;
|
|
4
|
+
/** Error code within the group, for example `not_found`. */
|
|
5
|
+
code: string;
|
|
6
|
+
/** Human-readable error message. */
|
|
7
|
+
message: string;
|
|
8
|
+
/** Extra details. Only present on some errors raised while authenticating or authorizing the request. */
|
|
9
|
+
metadata?: unknown;
|
|
10
|
+
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
1
|
+
import * as Rivet from "../index";
|
|
4
2
|
export interface MetadataGetResponse {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
gitSha: string;
|
|
9
|
-
runtime: string;
|
|
10
|
-
rustcHost: string;
|
|
11
|
-
rustcVersion: string;
|
|
3
|
+
/** Always `engine`. */
|
|
4
|
+
runtime: "engine";
|
|
5
|
+
/** Version of the control plane. */
|
|
12
6
|
version: string;
|
|
7
|
+
/** Version of the protocol nodes use to connect to the control plane. */
|
|
8
|
+
envoyProtocolVersion: number;
|
|
9
|
+
/** Actor names the default namespace's connected nodes accept. Only present for requests made with the admin token. */
|
|
10
|
+
actorNames?: Record<string, Rivet.ActorName>;
|
|
13
11
|
}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as Rivet from "../index";
|
|
5
2
|
export interface Namespace {
|
|
6
|
-
|
|
7
|
-
displayName: string;
|
|
3
|
+
/** Namespace name. */
|
|
8
4
|
name: string;
|
|
9
|
-
|
|
5
|
+
/** When the namespace was created, in Unix milliseconds. */
|
|
6
|
+
createTs: number;
|
|
7
|
+
/** `creating`, `forking`, `live`, `archiving`, `archived` or `failed`. */
|
|
8
|
+
status: Rivet.NamespaceStatus;
|
|
9
|
+
/** What the namespace was forked from; `null` for a namespace that is not a fork. */
|
|
10
|
+
forkedFrom: Rivet.NamespaceForkedFrom | null;
|
|
11
|
+
/** When the namespace was archived, in Unix milliseconds; `null` unless archived. */
|
|
12
|
+
archivedTs: number | null;
|
|
13
|
+
/** Legacy: the actors the move into the namespace's volume group could not move, at most 1,000; empty for every other namespace. Removed with the backfill in 3.1. */
|
|
14
|
+
skipped?: Rivet.NamespaceSkippedActor[];
|
|
15
|
+
/** Legacy: how many such actors are not destroyed yet, which can exceed the length of `skipped`. Removed with the backfill in 3.1. */
|
|
16
|
+
skippedCount?: number;
|
|
10
17
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* What a namespace was forked from.
|
|
6
|
+
*/
|
|
7
|
+
export interface NamespaceForkedFrom {
|
|
8
|
+
/** The parent namespace. */
|
|
9
|
+
namespace: string;
|
|
10
|
+
/** The parent's fork number this namespace was made at. */
|
|
11
|
+
forkNumber: number;
|
|
12
|
+
/** When the fork finished, in Unix milliseconds. */
|
|
13
|
+
forkedTs: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* An actor the move into the namespace's volume group could not move.
|
|
6
|
+
*/
|
|
7
|
+
export interface NamespaceSkippedActor {
|
|
8
|
+
/** ID of the actor. */
|
|
9
|
+
actorId: string;
|
|
10
|
+
/** Actor name. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Actor key in the slash form, or `null` for an actor without one. */
|
|
13
|
+
key: string | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* `creating` while a new namespace's volume group is created, `forking` while a fork's group
|
|
6
|
+
* writes run, `live` once the namespace serves, `archiving` while its nodes stop what they host,
|
|
7
|
+
* `archived` once its storage is closed, for good, and `failed` when a fork was refused after
|
|
8
|
+
* its record was written.
|
|
9
|
+
*/
|
|
10
|
+
export type NamespaceStatus = "creating" | "forking" | "live" | "archiving" | "archived" | "failed";
|
|
11
|
+
export declare const NamespaceStatus: {
|
|
12
|
+
readonly Creating: "creating";
|
|
13
|
+
readonly Forking: "forking";
|
|
14
|
+
readonly Live: "live";
|
|
15
|
+
readonly Archiving: "archiving";
|
|
16
|
+
readonly Archived: "archived";
|
|
17
|
+
readonly Failed: "failed";
|
|
18
|
+
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Rivet from "../index";
|
|
5
|
-
export interface
|
|
6
|
-
|
|
5
|
+
export interface NamespacesArchiveResponse {
|
|
6
|
+
namespace: Rivet.Namespace;
|
|
7
7
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface Node {
|
|
2
|
+
/** Node key, unique within the pool. */
|
|
3
|
+
key: string;
|
|
4
|
+
/** Name of the node pool. */
|
|
5
|
+
pool: string;
|
|
6
|
+
/** Name of the namespace. */
|
|
7
|
+
namespace: string;
|
|
8
|
+
/** Datacenter name. */
|
|
9
|
+
datacenter: string;
|
|
10
|
+
/** Version the node announced when it connected. New actors are placed only on nodes at the newest version with a connected node in the pool. */
|
|
11
|
+
version: number;
|
|
12
|
+
/** When the node connected, in Unix milliseconds. */
|
|
13
|
+
createTs: number;
|
|
14
|
+
/** When the node last sent a heartbeat, in Unix milliseconds. */
|
|
15
|
+
lastPingTs: number;
|
|
16
|
+
/** Whether the node is connected. */
|
|
17
|
+
connected: boolean;
|
|
18
|
+
/** Whether the node is shutting down. */
|
|
19
|
+
stopping: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Pool {
|
|
2
|
+
/** Name of the node pool. */
|
|
3
|
+
name: string;
|
|
4
|
+
/** Drain nodes running an older version when a newer version connects. */
|
|
5
|
+
drainOnVersionUpgrade: boolean;
|
|
6
|
+
/** Seconds to wait before evicting actors from a draining node. */
|
|
7
|
+
actorEvictionDelay: number;
|
|
8
|
+
/** Seconds over which actors are evicted from a draining node. */
|
|
9
|
+
actorEvictionPeriod: number;
|
|
10
|
+
/** Rate at which actors are evicted from a draining node. Must be finite and greater than 0. */
|
|
11
|
+
actorEvictionRate: number;
|
|
12
|
+
/** Opaque JSON stored with the pool, or `null` when unset. */
|
|
13
|
+
metadata: unknown;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PoolsDeleteResponse = Record<string, never>;
|
|
@@ -2,49 +2,35 @@ export * from "./Actor";
|
|
|
2
2
|
export * from "./ActorName";
|
|
3
3
|
export * from "./ActorsCreateResponse";
|
|
4
4
|
export * from "./ActorsDeleteResponse";
|
|
5
|
+
export * from "./ActorsForkResponse";
|
|
5
6
|
export * from "./ActorsGetOrCreateResponse";
|
|
6
|
-
export * from "./
|
|
7
|
+
export * from "./ActorsGetResponse";
|
|
7
8
|
export * from "./ActorsListNamesResponse";
|
|
8
9
|
export * from "./ActorsListResponse";
|
|
9
|
-
export * from "./ActorsRescheduleRequestBody";
|
|
10
10
|
export * from "./ActorsRescheduleResponse";
|
|
11
|
-
export * from "./ActorsSleepRequestBody";
|
|
12
11
|
export * from "./ActorsSleepResponse";
|
|
13
|
-
export * from "./
|
|
12
|
+
export * from "./AuthOperationKind";
|
|
13
|
+
export * from "./AuthResourceKind";
|
|
14
|
+
export * from "./AuthTargetScope";
|
|
15
|
+
export * from "./AuthTokenCreateResponse";
|
|
16
|
+
export * from "./AuthTokenGrant";
|
|
17
|
+
export * from "./AuthTokenInspectResponse";
|
|
14
18
|
export * from "./Datacenter";
|
|
15
|
-
export * from "./DatacenterHealth";
|
|
16
19
|
export * from "./DatacentersListResponse";
|
|
17
|
-
export * from "./
|
|
18
|
-
export * from "./EnvoysListResponse";
|
|
19
|
-
export * from "./HealthFanoutResponse";
|
|
20
|
-
export * from "./HealthResponse";
|
|
21
|
-
export * from "./HealthStatus";
|
|
20
|
+
export * from "./ErrorResponse";
|
|
22
21
|
export * from "./MetadataGetResponse";
|
|
23
22
|
export * from "./Namespace";
|
|
24
23
|
export * from "./NamespaceListResponse";
|
|
25
24
|
export * from "./NamespacesCreateResponse";
|
|
25
|
+
export * from "./NamespaceStatus";
|
|
26
|
+
export * from "./NamespaceForkedFrom";
|
|
27
|
+
export * from "./NamespaceSkippedActor";
|
|
28
|
+
export * from "./NamespacesArchiveResponse";
|
|
29
|
+
export * from "./Node";
|
|
26
30
|
export * from "./Pagination";
|
|
31
|
+
export * from "./Pool";
|
|
32
|
+
export * from "./PoolResponse";
|
|
33
|
+
export * from "./PoolsDeleteResponse";
|
|
34
|
+
export * from "./PoolsListNodesResponse";
|
|
35
|
+
export * from "./PoolsListResponse";
|
|
27
36
|
export * from "./RivetId";
|
|
28
|
-
export * from "./Runner";
|
|
29
|
-
export * from "./RunnerConfigServerless";
|
|
30
|
-
export * from "./RunnerConfig";
|
|
31
|
-
export * from "./RunnerConfigKindNormal";
|
|
32
|
-
export * from "./RunnerConfigKindServerlessServerless";
|
|
33
|
-
export * from "./RunnerConfigKindServerless";
|
|
34
|
-
export * from "./RunnerConfigKind";
|
|
35
|
-
export * from "./RunnerConfigResponse";
|
|
36
|
-
export * from "./RunnerConfigVariant";
|
|
37
|
-
export * from "./RunnerConfigsDeleteResponse";
|
|
38
|
-
export * from "./RunnerConfigsListResponse";
|
|
39
|
-
export * from "./RunnerConfigsListResponseRunnerConfigsValue";
|
|
40
|
-
export * from "./RunnerConfigsRefreshMetadataRequestBody";
|
|
41
|
-
export * from "./RunnerConfigsRefreshMetadataResponse";
|
|
42
|
-
export * from "./RunnerConfigsServerlessHealthCheckResponseSuccessSuccess";
|
|
43
|
-
export * from "./RunnerConfigsServerlessHealthCheckResponseSuccess";
|
|
44
|
-
export * from "./RunnerConfigsServerlessHealthCheckResponseFailureFailure";
|
|
45
|
-
export * from "./RunnerConfigsServerlessHealthCheckResponseFailure";
|
|
46
|
-
export * from "./RunnerConfigsServerlessHealthCheckResponse";
|
|
47
|
-
export * from "./RunnerConfigsServerlessMetadataError";
|
|
48
|
-
export * from "./RunnerConfigsUpsertResponse";
|
|
49
|
-
export * from "./RunnersListNamesResponse";
|
|
50
|
-
export * from "./RunnersListResponse";
|
|
@@ -4,15 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../../index";
|
|
5
5
|
import * as Rivet from "../../../api/index";
|
|
6
6
|
import * as core from "../../../core";
|
|
7
|
-
import { CrashPolicy } from "../../types/CrashPolicy";
|
|
8
7
|
export declare const ActorsCreateRequest: core.serialization.Schema<serializers.ActorsCreateRequest.Raw, Omit<Rivet.ActorsCreateRequest, "namespace">>;
|
|
9
8
|
export declare namespace ActorsCreateRequest {
|
|
10
9
|
interface Raw {
|
|
11
|
-
crash_policy: CrashPolicy.Raw;
|
|
12
|
-
datacenter?: string | null;
|
|
13
10
|
input?: string | null;
|
|
14
11
|
key?: string | null;
|
|
15
12
|
name: string;
|
|
16
|
-
|
|
13
|
+
pool?: string | null;
|
|
17
14
|
}
|
|
18
15
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as serializers from "../../index";
|
|
2
|
+
import * as Rivet from "../../../api/index";
|
|
3
|
+
import * as core from "../../../core";
|
|
4
|
+
export declare const ActorsForkRequest: core.serialization.Schema<serializers.ActorsForkRequest.Raw, Omit<Rivet.ActorsForkRequest, "namespace">>;
|
|
5
|
+
export declare namespace ActorsForkRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
key?: string | null;
|
|
8
|
+
input?: string | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -4,15 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../../index";
|
|
5
5
|
import * as Rivet from "../../../api/index";
|
|
6
6
|
import * as core from "../../../core";
|
|
7
|
-
import { CrashPolicy } from "../../types/CrashPolicy";
|
|
8
7
|
export declare const ActorsGetOrCreateRequest: core.serialization.Schema<serializers.ActorsGetOrCreateRequest.Raw, Omit<Rivet.ActorsGetOrCreateRequest, "namespace">>;
|
|
9
8
|
export declare namespace ActorsGetOrCreateRequest {
|
|
10
9
|
interface Raw {
|
|
11
|
-
crash_policy: CrashPolicy.Raw;
|
|
12
|
-
datacenter?: string | null;
|
|
13
10
|
input?: string | null;
|
|
14
|
-
key
|
|
11
|
+
key?: string | null;
|
|
15
12
|
name: string;
|
|
16
|
-
|
|
13
|
+
pool?: string | null;
|
|
17
14
|
}
|
|
18
15
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { ActorsCreateRequest } from "./ActorsCreateRequest";
|
|
2
2
|
export { ActorsGetOrCreateRequest } from "./ActorsGetOrCreateRequest";
|
|
3
|
-
export {
|
|
4
|
-
export { RunnerConfigsUpsertRequestBody } from "./RunnerConfigsUpsertRequestBody";
|
|
3
|
+
export { ActorsForkRequest } from "./ActorsForkRequest";
|
package/types/serialization/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
export declare const NamespacesCreateRequest: core.serialization.Schema<serializers.NamespacesCreateRequest.Raw, Rivet.NamespacesCreateRequest>;
|
|
8
8
|
export declare namespace NamespacesCreateRequest {
|
|
9
9
|
interface Raw {
|
|
10
|
-
display_name: string;
|
|
11
10
|
name: string;
|
|
12
11
|
}
|
|
13
12
|
}
|
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as serializers from "../index";
|
|
5
2
|
import * as Rivet from "../../api/index";
|
|
6
3
|
import * as core from "../../core";
|
|
7
4
|
import { RivetId } from "./RivetId";
|
|
8
|
-
import { CrashPolicy } from "./CrashPolicy";
|
|
9
5
|
export declare const Actor: core.serialization.ObjectSchema<serializers.Actor.Raw, Rivet.Actor>;
|
|
10
6
|
export declare namespace Actor {
|
|
11
7
|
interface Raw {
|
|
12
8
|
actor_id: RivetId.Raw;
|
|
13
|
-
connectable_ts?: number | null;
|
|
14
|
-
crash_policy: CrashPolicy.Raw;
|
|
15
|
-
create_ts: number;
|
|
16
|
-
datacenter: string;
|
|
17
|
-
destroy_ts?: number | null;
|
|
18
|
-
error?: Record<string, unknown> | null;
|
|
19
|
-
key?: string | null;
|
|
20
9
|
name: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
key: string;
|
|
11
|
+
namespace: string;
|
|
12
|
+
pool: string;
|
|
13
|
+
create_ts: number;
|
|
14
|
+
start_ts: number | null;
|
|
15
|
+
pending_allocation_ts: number | null;
|
|
16
|
+
connectable_ts: number | null;
|
|
17
|
+
sleep_ts: number | null;
|
|
18
|
+
reschedule_ts: number | null;
|
|
19
|
+
destroy_ts: number | null;
|
|
20
|
+
forked_from?: RivetId.Raw | null;
|
|
27
21
|
}
|
|
28
22
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as serializers from "../index";
|
|
5
2
|
import * as Rivet from "../../api/index";
|
|
6
3
|
import * as core from "../../core";
|
|
@@ -9,5 +6,6 @@ export declare const ActorsCreateResponse: core.serialization.ObjectSchema<seria
|
|
|
9
6
|
export declare namespace ActorsCreateResponse {
|
|
10
7
|
interface Raw {
|
|
11
8
|
actor: Actor.Raw;
|
|
9
|
+
created: boolean;
|
|
12
10
|
}
|
|
13
11
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as serializers from "../index";
|
|
5
2
|
import * as Rivet from "../../api/index";
|
|
6
3
|
import * as core from "../../core";
|
|
7
4
|
export declare const ActorsDeleteResponse: core.serialization.Schema<serializers.ActorsDeleteResponse.Raw, Rivet.ActorsDeleteResponse>;
|
|
8
5
|
export declare namespace ActorsDeleteResponse {
|
|
9
|
-
type Raw = Record<string,
|
|
6
|
+
type Raw = Record<string, never>;
|
|
10
7
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as serializers from "../index";
|
|
2
|
+
import * as Rivet from "../../api/index";
|
|
3
|
+
import * as core from "../../core";
|
|
4
|
+
import { Actor } from "./Actor";
|
|
5
|
+
export declare const ActorsForkResponse: core.serialization.ObjectSchema<serializers.ActorsForkResponse.Raw, Rivet.ActorsForkResponse>;
|
|
6
|
+
export declare namespace ActorsForkResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
actor: Actor.Raw;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as serializers from "../index";
|
|
2
|
+
import * as Rivet from "../../api/index";
|
|
3
|
+
import * as core from "../../core";
|
|
4
|
+
import { Actor } from "./Actor";
|
|
5
|
+
export declare const ActorsGetResponse: core.serialization.ObjectSchema<serializers.ActorsGetResponse.Raw, Rivet.ActorsGetResponse>;
|
|
6
|
+
export declare namespace ActorsGetResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
actor: Actor.Raw;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as serializers from "../index";
|
|
5
2
|
import * as Rivet from "../../api/index";
|
|
6
3
|
import * as core from "../../core";
|
|
7
4
|
import { ActorName } from "./ActorName";
|
|
8
|
-
import { Pagination } from "./Pagination";
|
|
9
5
|
export declare const ActorsListNamesResponse: core.serialization.ObjectSchema<serializers.ActorsListNamesResponse.Raw, Rivet.ActorsListNamesResponse>;
|
|
10
6
|
export declare namespace ActorsListNamesResponse {
|
|
11
7
|
interface Raw {
|
|
12
8
|
names: Record<string, ActorName.Raw>;
|
|
13
|
-
pagination: Pagination.Raw;
|
|
14
9
|
}
|
|
15
10
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
1
|
import * as serializers from "../index";
|
|
5
2
|
import * as Rivet from "../../api/index";
|
|
6
3
|
import * as core from "../../core";
|
|
@@ -9,7 +6,7 @@ import { Pagination } from "./Pagination";
|
|
|
9
6
|
export declare const ActorsListResponse: core.serialization.ObjectSchema<serializers.ActorsListResponse.Raw, Rivet.ActorsListResponse>;
|
|
10
7
|
export declare namespace ActorsListResponse {
|
|
11
8
|
interface Raw {
|
|
12
|
-
actors: Actor.Raw[];
|
|
9
|
+
actors: (Actor.Raw)[];
|
|
13
10
|
pagination: Pagination.Raw;
|
|
14
11
|
}
|
|
15
12
|
}
|