@rivetkit/engine-api-full 0.0.0-sqlite-sync-3-0-6-final.cf8679c → 0.0.0-sqlite-query-metrics-2-3-32.5bb1917
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 +1081 -327
- package/dist/browser/cjs/serialization.js +379 -94
- package/dist/browser/esm/index.js +1081 -327
- package/dist/browser/esm/serialization.js +379 -94
- package/dist/node/cjs/index.js +1081 -327
- package/dist/node/cjs/serialization.js +421 -104
- package/dist/node/esm/index.js +1081 -327
- package/dist/node/esm/serialization.js +379 -94
- package/package.json +1 -2
- package/types/Client.d.ts +91 -7
- package/types/api/client/requests/ActorsCreateRequest.d.ts +7 -3
- package/types/api/client/requests/ActorsDeleteRequest.d.ts +1 -1
- package/types/api/client/requests/ActorsGetOrCreateRequest.d.ts +8 -4
- package/types/api/client/requests/ActorsKvGetRequest.d.ts +12 -0
- package/types/api/client/requests/ActorsListNamesRequest.d.ts +1 -1
- package/types/api/client/requests/ActorsListRequest.d.ts +5 -2
- package/types/api/client/requests/ActorsRescheduleRequest.d.ts +5 -1
- package/types/api/client/requests/ActorsSleepRequest.d.ts +5 -1
- package/types/api/client/requests/RunnerConfigsDeleteRequest.d.ts +12 -0
- package/types/api/client/requests/RunnerConfigsListRequest.d.ts +21 -0
- package/types/api/client/requests/RunnerConfigsRefreshMetadataRequest.d.ts +17 -0
- package/types/api/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +15 -0
- package/types/api/client/requests/RunnerConfigsUpsertRequestBody.d.ts +17 -0
- package/types/api/client/requests/index.d.ts +6 -1
- package/types/api/resources/authTokens/client/Client.d.ts +20 -0
- package/types/api/resources/authTokens/client/index.d.ts +0 -1
- package/types/api/resources/authTokens/client/requests/AuthTokenCreateRequest.d.ts +1 -5
- package/types/api/resources/envoys/client/Client.d.ts +39 -0
- package/types/api/resources/{pools/client/requests/PoolsListRequest.d.ts → envoys/client/requests/EnvoysListRequest.d.ts} +4 -2
- package/types/api/resources/envoys/client/requests/index.d.ts +1 -0
- package/types/api/resources/health/client/Client.d.ts +36 -0
- package/types/api/resources/health/client/index.d.ts +1 -0
- package/types/api/resources/health/index.d.ts +1 -0
- package/types/api/resources/index.d.ts +5 -2
- package/types/api/resources/namespaces/client/Client.d.ts +1 -0
- package/types/api/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +2 -0
- package/types/api/resources/namespaces/client/requests/NamespacesListRequest.d.ts +6 -0
- package/types/api/resources/runners/client/Client.d.ts +54 -0
- package/types/api/resources/runners/client/index.d.ts +1 -0
- package/types/api/resources/{pools/client/requests/PoolsListNodesRequest.d.ts → runners/client/requests/RunnersListNamesRequest.d.ts} +2 -2
- package/types/api/resources/runners/client/requests/RunnersListRequest.d.ts +22 -0
- package/types/api/resources/runners/client/requests/index.d.ts +2 -0
- package/types/api/resources/runners/index.d.ts +1 -0
- package/types/api/types/Actor.d.ts +27 -21
- package/types/api/types/ActorName.d.ts +3 -1
- package/types/api/types/ActorsCreateResponse.d.ts +3 -2
- package/types/api/types/ActorsDeleteResponse.d.ts +4 -1
- package/types/api/types/ActorsGetOrCreateResponse.d.ts +3 -1
- package/types/api/types/ActorsKvGetResponse.d.ts +7 -0
- package/types/api/types/ActorsListNamesResponse.d.ts +4 -1
- package/types/api/types/ActorsListResponse.d.ts +4 -1
- package/types/api/types/ActorsRescheduleRequestBody.d.ts +4 -0
- package/types/api/types/ActorsRescheduleResponse.d.ts +4 -1
- package/types/api/types/ActorsSleepRequestBody.d.ts +4 -0
- package/types/api/types/ActorsSleepResponse.d.ts +4 -1
- package/types/api/types/AuthOperationKind.d.ts +10 -0
- package/types/api/types/AuthTokenCreateResponse.d.ts +5 -5
- package/types/api/types/AuthTokenGrant.d.ts +6 -4
- package/types/api/types/AuthTokenInspectResponse.d.ts +7 -9
- package/types/api/types/AuthTokenResource.d.ts +13 -0
- package/types/api/types/AuthTokenTargetScope.d.ts +5 -0
- package/types/api/types/AuthTokenTargetScopeId.d.ts +7 -0
- package/types/api/types/CrashPolicy.d.ts +9 -0
- package/types/api/types/Datacenter.d.ts +5 -1
- package/types/api/types/DatacenterHealth.d.ts +12 -0
- package/types/api/types/DatacentersListResponse.d.ts +5 -1
- package/types/api/types/Envoy.d.ts +18 -0
- package/types/api/types/EnvoysListResponse.d.ts +8 -0
- package/types/api/types/HealthFanoutResponse.d.ts +7 -0
- package/types/api/types/HealthResponse.d.ts +8 -0
- package/types/api/types/HealthStatus.d.ts +8 -0
- package/types/api/types/MetadataGetResponse.d.ts +12 -8
- package/types/api/types/Namespace.d.ts +7 -3
- package/types/api/types/NamespaceListResponse.d.ts +4 -1
- package/types/api/types/NamespacesCreateResponse.d.ts +3 -0
- package/types/api/types/Pagination.d.ts +4 -2
- package/types/api/types/RivetId.d.ts +3 -0
- package/types/api/types/Runner.d.ts +21 -0
- package/types/api/types/RunnerConfig.d.ts +11 -0
- package/types/api/types/RunnerConfigKind.d.ts +5 -0
- package/types/api/types/RunnerConfigKindNormal.d.ts +7 -0
- package/types/api/types/RunnerConfigKindNormalNormal.d.ts +12 -0
- package/types/api/types/RunnerConfigKindServerless.d.ts +7 -0
- package/types/api/types/RunnerConfigKindServerlessServerless.d.ts +29 -0
- package/types/api/types/RunnerConfigNormal.d.ts +12 -0
- package/types/api/types/RunnerConfigResponse.d.ts +8 -0
- package/types/api/types/RunnerConfigServerless.d.ts +29 -0
- package/types/api/types/RunnerConfigVariant.d.ts +8 -0
- package/types/api/types/RunnerConfigsDeleteResponse.d.ts +4 -0
- package/types/api/types/RunnerConfigsListResponse.d.ts +8 -0
- package/types/api/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +7 -0
- package/types/api/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +4 -0
- package/types/api/types/RunnerConfigsRefreshMetadataResponse.d.ts +4 -0
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +5 -0
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +6 -0
- package/types/api/types/RunnerConfigsServerlessMetadataError.d.ts +16 -0
- package/types/api/types/RunnerConfigsUpsertResponse.d.ts +6 -0
- package/types/api/types/RunnersListNamesResponse.d.ts +8 -0
- package/types/api/types/RunnersListResponse.d.ts +8 -0
- package/types/api/types/index.d.ts +38 -10
- package/types/serialization/client/requests/ActorsCreateRequest.d.ts +4 -1
- package/types/serialization/client/requests/ActorsGetOrCreateRequest.d.ts +5 -2
- package/types/serialization/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +13 -0
- package/types/serialization/client/requests/RunnerConfigsUpsertRequestBody.d.ts +13 -0
- package/types/serialization/client/requests/index.d.ts +2 -0
- package/types/serialization/resources/authTokens/client/index.d.ts +1 -0
- package/types/serialization/resources/authTokens/client/requests/AuthTokenCreateRequest.d.ts +16 -0
- package/types/serialization/resources/authTokens/client/requests/index.d.ts +1 -0
- package/types/serialization/resources/authTokens/index.d.ts +1 -0
- package/types/serialization/resources/index.d.ts +2 -0
- package/types/serialization/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +1 -0
- package/types/serialization/types/Actor.d.ts +17 -10
- package/types/serialization/types/ActorName.d.ts +3 -0
- package/types/serialization/types/ActorsCreateResponse.d.ts +3 -1
- package/types/serialization/types/ActorsDeleteResponse.d.ts +4 -1
- package/types/serialization/types/ActorsGetOrCreateResponse.d.ts +3 -0
- package/types/serialization/types/ActorsKvGetResponse.d.ts +13 -0
- package/types/serialization/types/ActorsListNamesResponse.d.ts +5 -0
- package/types/serialization/types/ActorsListResponse.d.ts +4 -1
- package/types/serialization/types/ActorsRescheduleRequestBody.d.ts +10 -0
- package/types/serialization/types/ActorsRescheduleResponse.d.ts +4 -1
- package/types/serialization/types/ActorsSleepRequestBody.d.ts +10 -0
- package/types/serialization/types/ActorsSleepResponse.d.ts +4 -1
- package/types/serialization/types/AuthOperationKind.d.ts +3 -0
- package/types/serialization/types/AuthTokenCreateResponse.d.ts +5 -2
- package/types/serialization/types/AuthTokenGrant.d.ts +8 -5
- package/types/serialization/types/AuthTokenInspectResponse.d.ts +8 -4
- package/types/serialization/types/AuthTokenResource.d.ts +10 -0
- package/types/serialization/types/AuthTokenTargetScope.d.ts +11 -0
- package/types/serialization/types/AuthTokenTargetScopeId.d.ts +13 -0
- package/types/serialization/types/CrashPolicy.d.ts +10 -0
- package/types/serialization/types/Datacenter.d.ts +5 -0
- package/types/serialization/types/DatacenterHealth.d.ts +19 -0
- package/types/serialization/types/DatacentersListResponse.d.ts +6 -1
- package/types/serialization/types/Envoy.d.ts +24 -0
- package/types/serialization/types/EnvoysListResponse.d.ts +15 -0
- package/types/serialization/types/HealthFanoutResponse.d.ts +13 -0
- package/types/serialization/types/HealthResponse.d.ts +14 -0
- package/types/serialization/types/HealthStatus.d.ts +10 -0
- package/types/serialization/types/MetadataGetResponse.d.ts +12 -4
- package/types/serialization/types/Namespace.d.ts +7 -1
- package/types/serialization/types/NamespaceListResponse.d.ts +4 -1
- package/types/serialization/types/NamespacesCreateResponse.d.ts +3 -0
- package/types/serialization/types/Pagination.d.ts +4 -1
- package/types/serialization/types/RivetId.d.ts +3 -0
- package/types/serialization/types/Runner.d.ts +27 -0
- package/types/serialization/types/RunnerConfig.d.ts +17 -0
- package/types/serialization/types/RunnerConfigKind.d.ts +12 -0
- package/types/serialization/types/RunnerConfigKindNormal.d.ts +13 -0
- package/types/serialization/types/RunnerConfigKindNormalNormal.d.ts +15 -0
- package/types/serialization/types/RunnerConfigKindServerless.d.ts +13 -0
- package/types/serialization/types/RunnerConfigKindServerlessServerless.d.ts +25 -0
- package/types/serialization/types/RunnerConfigNormal.d.ts +15 -0
- package/types/serialization/types/RunnerConfigResponse.d.ts +14 -0
- package/types/serialization/types/RunnerConfigServerless.d.ts +25 -0
- package/types/serialization/types/RunnerConfigVariant.d.ts +10 -0
- package/types/serialization/types/RunnerConfigsDeleteResponse.d.ts +10 -0
- package/types/serialization/types/RunnerConfigsListResponse.d.ts +15 -0
- package/types/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +10 -0
- package/types/serialization/types/RunnerConfigsRefreshMetadataResponse.d.ts +10 -0
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataError.d.ts +14 -0
- package/types/serialization/types/RunnerConfigsUpsertResponse.d.ts +12 -0
- package/types/serialization/types/RunnersListNamesResponse.d.ts +14 -0
- package/types/serialization/types/RunnersListResponse.d.ts +15 -0
- package/types/serialization/types/index.d.ts +38 -10
- package/types/api/client/requests/ActorsGetRequest.d.ts +0 -3
- package/types/api/resources/pools/client/Client.d.ts +0 -57
- package/types/api/resources/pools/client/requests/PoolsDeleteRequest.d.ts +0 -3
- package/types/api/resources/pools/client/requests/PoolsGetRequest.d.ts +0 -3
- package/types/api/resources/pools/client/requests/PoolsUpsertRequest.d.ts +0 -8
- package/types/api/resources/pools/client/requests/index.d.ts +0 -5
- package/types/api/types/ActorsGetResponse.d.ts +0 -4
- package/types/api/types/AuthResourceKind.d.ts +0 -1
- package/types/api/types/AuthTargetScope.d.ts +0 -4
- package/types/api/types/ErrorResponse.d.ts +0 -10
- package/types/api/types/Node.d.ts +0 -20
- package/types/api/types/Pool.d.ts +0 -14
- package/types/api/types/PoolResponse.d.ts +0 -4
- package/types/api/types/PoolsDeleteResponse.d.ts +0 -1
- package/types/api/types/PoolsListNodesResponse.d.ts +0 -5
- package/types/api/types/PoolsListResponse.d.ts +0 -5
- package/types/serialization/types/ActorsGetResponse.d.ts +0 -10
- package/types/serialization/types/AuthResourceKind.d.ts +0 -7
- package/types/serialization/types/AuthTargetScope.d.ts +0 -10
- package/types/serialization/types/ErrorResponse.d.ts +0 -12
- package/types/serialization/types/Node.d.ts +0 -17
- package/types/serialization/types/Pool.d.ts +0 -14
- package/types/serialization/types/PoolResponse.d.ts +0 -10
- package/types/serialization/types/PoolsDeleteResponse.d.ts +0 -7
- package/types/serialization/types/PoolsListNodesResponse.d.ts +0 -12
- package/types/serialization/types/PoolsListResponse.d.ts +0 -12
- /package/types/api/resources/{pools → envoys}/client/index.d.ts +0 -0
- /package/types/api/resources/{pools → envoys}/index.d.ts +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import * as Rivet from "../../../index";
|
|
6
|
+
export declare namespace Runners {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: core.Supplier<string>;
|
|
9
|
+
/** Specify a custom URL to connect the client to. */
|
|
10
|
+
baseUrl?: core.Supplier<string>;
|
|
11
|
+
token: core.Supplier<core.BearerToken>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
13
|
+
}
|
|
14
|
+
interface RequestOptions {
|
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
|
16
|
+
timeoutInSeconds?: number;
|
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
/** A hook to abort the request. */
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
21
|
+
/** Additional headers to include in the request. */
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare class Runners {
|
|
26
|
+
protected readonly _options: Runners.Options;
|
|
27
|
+
constructor(_options: Runners.Options);
|
|
28
|
+
/**
|
|
29
|
+
* @param {Rivet.RunnersListRequest} request
|
|
30
|
+
* @param {Runners.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.runners.list({
|
|
34
|
+
* namespace: "namespace"
|
|
35
|
+
* })
|
|
36
|
+
*/
|
|
37
|
+
list(request: Rivet.RunnersListRequest, requestOptions?: Runners.RequestOptions): Promise<Rivet.RunnersListResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* 2 round trips:
|
|
40
|
+
*
|
|
41
|
+
* - GET /runners/names (fanout)
|
|
42
|
+
* - [api-peer] namespace::ops::resolve_for_name_global
|
|
43
|
+
*
|
|
44
|
+
* @param {Rivet.RunnersListNamesRequest} request
|
|
45
|
+
* @param {Runners.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* await client.runners.listNames({
|
|
49
|
+
* namespace: "namespace"
|
|
50
|
+
* })
|
|
51
|
+
*/
|
|
52
|
+
listNames(request: Rivet.RunnersListNamesRequest, requestOptions?: Runners.RequestOptions): Promise<Rivet.RunnersListNamesResponse>;
|
|
53
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* namespace: "namespace"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface RunnersListRequest {
|
|
12
|
+
namespace: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Deprecated.
|
|
16
|
+
*/
|
|
17
|
+
runnerIds?: string;
|
|
18
|
+
runnerId?: Rivet.RivetId | Rivet.RivetId[];
|
|
19
|
+
includeStopped?: boolean;
|
|
20
|
+
limit?: number;
|
|
21
|
+
cursor?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -1,26 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
1
4
|
import * as Rivet from "../index";
|
|
2
5
|
export interface Actor {
|
|
3
6
|
actorId: Rivet.RivetId;
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** Name of the namespace the actor belongs to. */
|
|
9
|
-
namespace: string;
|
|
10
|
-
/** Name of the node pool the actor runs in. */
|
|
11
|
-
pool: string;
|
|
12
|
-
/** When the actor was created, in Unix milliseconds. */
|
|
7
|
+
/** Denotes when the actor was last connectable. Null if actor is not running. */
|
|
8
|
+
connectableTs?: number;
|
|
9
|
+
crashPolicy: Rivet.CrashPolicy;
|
|
10
|
+
/** Denotes when the actor was first created. */
|
|
13
11
|
createTs: number;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
|
|
12
|
+
datacenter: string;
|
|
13
|
+
/** Denotes when the actor was destroyed. */
|
|
14
|
+
destroyTs?: number;
|
|
15
|
+
/** Error details if the actor failed to start. */
|
|
16
|
+
error?: Record<string, unknown>;
|
|
17
|
+
key?: string;
|
|
18
|
+
name: string;
|
|
19
|
+
namespaceId: Rivet.RivetId;
|
|
20
|
+
/** Denotes when the actor started waiting for an allocation. */
|
|
21
|
+
pendingAllocationTs?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Denotes when the actor will try to allocate again. If this is set, the actor will not attempt to
|
|
24
|
+
* allocate until the given timestamp.
|
|
25
|
+
*/
|
|
26
|
+
rescheduleTs?: number;
|
|
27
|
+
runnerNameSelector: string;
|
|
28
|
+
/** Denotes when the actor entered a sleeping state. */
|
|
29
|
+
sleepTs?: number;
|
|
30
|
+
/** Denotes when the actor was first made connectable. Null if never. */
|
|
31
|
+
startTs?: number;
|
|
26
32
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
1
4
|
import * as Rivet from "../index";
|
|
2
5
|
export interface ActorsGetOrCreateResponse {
|
|
3
6
|
actor: Rivet.Actor;
|
|
4
|
-
/** `true` if this request created the actor, `false` if it already existed. */
|
|
5
7
|
created: boolean;
|
|
6
8
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
1
4
|
import * as Rivet from "../index";
|
|
2
5
|
export interface ActorsListNamesResponse {
|
|
3
|
-
/** Map from actor name to its metadata. */
|
|
4
6
|
names: Record<string, Rivet.ActorName>;
|
|
7
|
+
pagination: Rivet.Pagination;
|
|
5
8
|
}
|
|
@@ -1 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
1
4
|
export type AuthOperationKind = "read" | "update" | "list" | "create" | "delete";
|
|
5
|
+
export declare const AuthOperationKind: {
|
|
6
|
+
readonly Read: "read";
|
|
7
|
+
readonly Update: "update";
|
|
8
|
+
readonly List: "list";
|
|
9
|
+
readonly Create: "create";
|
|
10
|
+
readonly Delete: "delete";
|
|
11
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
1
4
|
export interface AuthTokenCreateResponse {
|
|
2
|
-
/** The signed JWT. */
|
|
3
|
-
token: string;
|
|
4
|
-
/** When the token was issued, in Unix milliseconds. */
|
|
5
|
-
issuedTs: number;
|
|
6
|
-
/** When the token expires, in Unix milliseconds. */
|
|
7
5
|
expiresTs: number;
|
|
6
|
+
issuedTs: number;
|
|
7
|
+
token: string;
|
|
8
8
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
1
4
|
import * as Rivet from "../index";
|
|
2
5
|
export interface AuthTokenGrant {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
operations: (Rivet.AuthOperationKind)[];
|
|
6
|
+
operations: Rivet.AuthOperationKind[];
|
|
7
|
+
resource: Rivet.AuthTokenResource;
|
|
8
|
+
target: Rivet.AuthTokenTargetScope;
|
|
7
9
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
1
4
|
import * as Rivet from "../index";
|
|
2
5
|
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
6
|
expiresTs: number;
|
|
7
|
+
grants: Rivet.AuthTokenGrant[];
|
|
8
|
+
issuedTs: number;
|
|
9
|
+
namespaceId: Rivet.RivetId;
|
|
10
|
+
subject?: string;
|
|
13
11
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type AuthTokenResource = "namespace" | "actor" | "runner" | "runner_config" | "datacenter" | "actor_gateway" | "actor_kv";
|
|
5
|
+
export declare const AuthTokenResource: {
|
|
6
|
+
readonly Namespace: "namespace";
|
|
7
|
+
readonly Actor: "actor";
|
|
8
|
+
readonly Runner: "runner";
|
|
9
|
+
readonly RunnerConfig: "runner_config";
|
|
10
|
+
readonly Datacenter: "datacenter";
|
|
11
|
+
readonly ActorGateway: "actor_gateway";
|
|
12
|
+
readonly ActorKv: "actor_kv";
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type CrashPolicy = "restart" | "sleep" | "destroy";
|
|
5
|
+
export declare const CrashPolicy: {
|
|
6
|
+
readonly Restart: "restart";
|
|
7
|
+
readonly Sleep: "sleep";
|
|
8
|
+
readonly Destroy: "destroy";
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../index";
|
|
5
|
+
export interface DatacenterHealth {
|
|
6
|
+
datacenterLabel: number;
|
|
7
|
+
datacenterName: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
response?: Rivet.HealthResponse;
|
|
10
|
+
rttMs?: number;
|
|
11
|
+
status: Rivet.HealthStatus;
|
|
12
|
+
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
1
4
|
import * as Rivet from "../index";
|
|
2
5
|
export interface DatacentersListResponse {
|
|
3
|
-
datacenters:
|
|
6
|
+
datacenters: Rivet.Datacenter[];
|
|
7
|
+
pagination: Rivet.Pagination;
|
|
4
8
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../index";
|
|
5
|
+
export interface Envoy {
|
|
6
|
+
createTs: number;
|
|
7
|
+
datacenter: string;
|
|
8
|
+
envoyKey: string;
|
|
9
|
+
lastConnectedTs?: number;
|
|
10
|
+
lastPingTs: number;
|
|
11
|
+
lastRtt: number;
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
13
|
+
namespaceId: Rivet.RivetId;
|
|
14
|
+
poolName: string;
|
|
15
|
+
slots: number;
|
|
16
|
+
stopTs?: number;
|
|
17
|
+
version: number;
|
|
18
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
2
4
|
export interface MetadataGetResponse {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
version: string;
|
|
7
|
-
/** Version of the protocol nodes use to connect to the control plane. */
|
|
5
|
+
buildTimestamp: string;
|
|
6
|
+
cargoProfile: string;
|
|
7
|
+
cargoTarget: string;
|
|
8
8
|
envoyProtocolVersion: number;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
epoxyProtocolVersion: number;
|
|
10
|
+
gitSha: string;
|
|
11
|
+
runtime: string;
|
|
12
|
+
rustcHost: string;
|
|
13
|
+
rustcVersion: string;
|
|
14
|
+
version: string;
|
|
11
15
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../index";
|
|
1
5
|
export interface Namespace {
|
|
2
|
-
/** Namespace name. */
|
|
3
|
-
name: string;
|
|
4
|
-
/** When the namespace was created, in Unix milliseconds. */
|
|
5
6
|
createTs: number;
|
|
7
|
+
displayName: string;
|
|
8
|
+
name: string;
|
|
9
|
+
namespaceId: Rivet.RivetId;
|
|
6
10
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../index";
|
|
5
|
+
export interface Runner {
|
|
6
|
+
createTs: number;
|
|
7
|
+
datacenter: string;
|
|
8
|
+
drainTs?: number;
|
|
9
|
+
key: string;
|
|
10
|
+
lastConnectedTs?: number;
|
|
11
|
+
lastPingTs: number;
|
|
12
|
+
lastRtt: number;
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
name: string;
|
|
15
|
+
namespaceId: Rivet.RivetId;
|
|
16
|
+
remainingSlots: number;
|
|
17
|
+
runnerId: Rivet.RivetId;
|
|
18
|
+
stopTs?: number;
|
|
19
|
+
totalSlots: number;
|
|
20
|
+
version: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../index";
|
|
5
|
+
export interface RunnerConfig {
|
|
6
|
+
normal?: Rivet.RunnerConfigNormal;
|
|
7
|
+
serverless?: Rivet.RunnerConfigServerless;
|
|
8
|
+
/** Deprecated. */
|
|
9
|
+
drainOnVersionUpgrade?: boolean;
|
|
10
|
+
metadata?: unknown;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface RunnerConfigKindNormalNormal {
|
|
5
|
+
/** Seconds. */
|
|
6
|
+
actorEvictionDelay?: number;
|
|
7
|
+
/** Seconds. */
|
|
8
|
+
actorEvictionPeriod?: number;
|
|
9
|
+
/** Actors per second. */
|
|
10
|
+
actorEvictionRate?: number;
|
|
11
|
+
drainOnVersionUpgrade?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface RunnerConfigKindServerlessServerless {
|
|
5
|
+
/** Seconds. */
|
|
6
|
+
actorEvictionDelay?: number;
|
|
7
|
+
/** Seconds. */
|
|
8
|
+
actorEvictionPeriod?: number;
|
|
9
|
+
/** Actors per second. */
|
|
10
|
+
actorEvictionRate?: number;
|
|
11
|
+
/** Seconds. */
|
|
12
|
+
drainGracePeriod?: number;
|
|
13
|
+
drainOnVersionUpgrade?: boolean;
|
|
14
|
+
headers?: Record<string, string>;
|
|
15
|
+
maxConcurrentActors?: number;
|
|
16
|
+
/** Deprecated. */
|
|
17
|
+
maxRunners?: number;
|
|
18
|
+
/** Milliseconds between metadata polling. If not set, uses the global default. */
|
|
19
|
+
metadataPollInterval?: number;
|
|
20
|
+
/** Deprecated. */
|
|
21
|
+
minRunners?: number;
|
|
22
|
+
/** Seconds. */
|
|
23
|
+
requestLifespan: number;
|
|
24
|
+
/** Deprecated. */
|
|
25
|
+
runnersMargin?: number;
|
|
26
|
+
/** Deprecated. */
|
|
27
|
+
slotsPerRunner?: number;
|
|
28
|
+
url: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface RunnerConfigNormal {
|
|
5
|
+
/** Seconds. */
|
|
6
|
+
actorEvictionDelay?: number;
|
|
7
|
+
/** Seconds. */
|
|
8
|
+
actorEvictionPeriod?: number;
|
|
9
|
+
/** Actors per second. */
|
|
10
|
+
actorEvictionRate?: number;
|
|
11
|
+
drainOnVersionUpgrade?: boolean;
|
|
12
|
+
}
|