@rivetkit/engine-api-full 0.0.0-main.d6a0ba8
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/core.js +2338 -0
- package/dist/browser/cjs/index.js +4514 -0
- package/dist/browser/cjs/serialization.js +1995 -0
- package/dist/browser/esm/core.js +2312 -0
- package/dist/browser/esm/index.js +4488 -0
- package/dist/browser/esm/serialization.js +1968 -0
- package/dist/node/cjs/core.js +2353 -0
- package/dist/node/cjs/index.js +4527 -0
- package/dist/node/cjs/serialization.js +2064 -0
- package/dist/node/esm/core.js +2317 -0
- package/dist/node/esm/index.js +4493 -0
- package/dist/node/esm/serialization.js +1969 -0
- package/package.json +68 -0
- package/types/Client.d.ts +281 -0
- package/types/api/client/index.d.ts +1 -0
- package/types/api/client/requests/ActorsCreateRequest.d.ts +23 -0
- package/types/api/client/requests/ActorsDeleteRequest.d.ts +12 -0
- package/types/api/client/requests/ActorsGetOrCreateRequest.d.ts +23 -0
- package/types/api/client/requests/ActorsKvGetRequest.d.ts +12 -0
- package/types/api/client/requests/ActorsListNamesRequest.d.ts +14 -0
- package/types/api/client/requests/ActorsListRequest.d.ts +23 -0
- package/types/api/client/requests/ActorsRescheduleRequest.d.ts +17 -0
- package/types/api/client/requests/ActorsSleepRequest.d.ts +17 -0
- 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 +13 -0
- package/types/api/index.d.ts +3 -0
- package/types/api/resources/datacenters/client/Client.d.ts +36 -0
- package/types/api/resources/datacenters/client/index.d.ts +1 -0
- package/types/api/resources/datacenters/index.d.ts +1 -0
- package/types/api/resources/envoys/client/Client.d.ts +39 -0
- package/types/api/resources/envoys/client/index.d.ts +1 -0
- package/types/api/resources/envoys/client/requests/EnvoysListRequest.d.ts +16 -0
- package/types/api/resources/envoys/client/requests/index.d.ts +1 -0
- package/types/api/resources/envoys/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 +9 -0
- package/types/api/resources/metadata/client/Client.d.ts +36 -0
- package/types/api/resources/metadata/client/index.d.ts +1 -0
- package/types/api/resources/metadata/index.d.ts +1 -0
- package/types/api/resources/namespaces/client/Client.d.ts +48 -0
- package/types/api/resources/namespaces/client/index.d.ts +1 -0
- package/types/api/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +14 -0
- package/types/api/resources/namespaces/client/requests/NamespacesListRequest.d.ts +18 -0
- package/types/api/resources/namespaces/client/requests/index.d.ts +2 -0
- package/types/api/resources/namespaces/index.d.ts +1 -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/runners/client/requests/RunnersListNamesRequest.d.ts +14 -0
- 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 +32 -0
- package/types/api/types/ActorName.d.ts +6 -0
- package/types/api/types/ActorsCreateResponse.d.ts +7 -0
- package/types/api/types/ActorsDeleteResponse.d.ts +4 -0
- package/types/api/types/ActorsGetOrCreateResponse.d.ts +8 -0
- package/types/api/types/ActorsKvGetResponse.d.ts +7 -0
- package/types/api/types/ActorsListNamesResponse.d.ts +8 -0
- package/types/api/types/ActorsListResponse.d.ts +8 -0
- package/types/api/types/ActorsRescheduleRequestBody.d.ts +4 -0
- package/types/api/types/ActorsRescheduleResponse.d.ts +4 -0
- package/types/api/types/ActorsSleepRequestBody.d.ts +4 -0
- package/types/api/types/ActorsSleepResponse.d.ts +4 -0
- package/types/api/types/CrashPolicy.d.ts +9 -0
- package/types/api/types/Datacenter.d.ts +8 -0
- package/types/api/types/DatacenterHealth.d.ts +12 -0
- package/types/api/types/DatacentersListResponse.d.ts +8 -0
- 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 +13 -0
- package/types/api/types/Namespace.d.ts +10 -0
- package/types/api/types/NamespaceListResponse.d.ts +8 -0
- package/types/api/types/NamespacesCreateResponse.d.ts +7 -0
- package/types/api/types/Pagination.d.ts +6 -0
- package/types/api/types/RivetId.d.ts +4 -0
- package/types/api/types/Runner.d.ts +21 -0
- package/types/api/types/RunnerConfig.d.ts +10 -0
- package/types/api/types/RunnerConfigKind.d.ts +5 -0
- package/types/api/types/RunnerConfigKindNormal.d.ts +6 -0
- package/types/api/types/RunnerConfigKindServerless.d.ts +7 -0
- package/types/api/types/RunnerConfigKindServerlessServerless.d.ts +16 -0
- package/types/api/types/RunnerConfigResponse.d.ts +7 -0
- package/types/api/types/RunnerConfigServerless.d.ts +16 -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 +5 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidRequest.d.ts +6 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJson.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJsonInvalidResponseJson.d.ts +6 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchema.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchemaInvalidResponseSchema.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatus.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatusNonSuccessStatus.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorRequestFailed.d.ts +6 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorRequestTimedOut.d.ts +6 -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 +59 -0
- package/types/core/auth/BasicAuth.d.ts +8 -0
- package/types/core/auth/BearerToken.d.ts +5 -0
- package/types/core/auth/index.d.ts +2 -0
- package/types/core/fetcher/APIResponse.d.ts +10 -0
- package/types/core/fetcher/Fetcher.d.ts +39 -0
- package/types/core/fetcher/Supplier.d.ts +4 -0
- package/types/core/fetcher/createRequestUrl.d.ts +1 -0
- package/types/core/fetcher/getFetchFn.d.ts +4 -0
- package/types/core/fetcher/getHeader.d.ts +1 -0
- package/types/core/fetcher/getRequestBody.d.ts +7 -0
- package/types/core/fetcher/getResponseBody.d.ts +1 -0
- package/types/core/fetcher/index.d.ts +5 -0
- package/types/core/fetcher/makeRequest.d.ts +1 -0
- package/types/core/fetcher/requestWithRetries.d.ts +1 -0
- package/types/core/fetcher/signals.d.ts +11 -0
- package/types/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/types/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/types/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/types/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/types/core/index.d.ts +4 -0
- package/types/core/json.d.ts +15 -0
- package/types/core/runtime/index.d.ts +1 -0
- package/types/core/runtime/runtime.d.ts +9 -0
- package/types/core/schemas/Schema.d.ts +87 -0
- package/types/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/types/core/schemas/builders/bigint/index.d.ts +1 -0
- package/types/core/schemas/builders/date/date.d.ts +2 -0
- package/types/core/schemas/builders/date/index.d.ts +1 -0
- package/types/core/schemas/builders/enum/enum.d.ts +2 -0
- package/types/core/schemas/builders/enum/index.d.ts +1 -0
- package/types/core/schemas/builders/index.d.ts +14 -0
- package/types/core/schemas/builders/lazy/index.d.ts +3 -0
- package/types/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/types/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/types/core/schemas/builders/list/index.d.ts +1 -0
- package/types/core/schemas/builders/list/list.d.ts +2 -0
- package/types/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/types/core/schemas/builders/literals/index.d.ts +2 -0
- package/types/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/types/core/schemas/builders/object/index.d.ts +6 -0
- package/types/core/schemas/builders/object/object.d.ts +3 -0
- package/types/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/types/core/schemas/builders/object/property.d.ts +8 -0
- package/types/core/schemas/builders/object/types.d.ts +31 -0
- package/types/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/types/core/schemas/builders/object-like/index.d.ts +2 -0
- package/types/core/schemas/builders/object-like/types.d.ts +7 -0
- package/types/core/schemas/builders/primitives/any.d.ts +1 -0
- package/types/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/types/core/schemas/builders/primitives/index.d.ts +5 -0
- package/types/core/schemas/builders/primitives/number.d.ts +1 -0
- package/types/core/schemas/builders/primitives/string.d.ts +1 -0
- package/types/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/types/core/schemas/builders/record/index.d.ts +2 -0
- package/types/core/schemas/builders/record/record.d.ts +3 -0
- package/types/core/schemas/builders/record/types.d.ts +4 -0
- package/types/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/types/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +21 -0
- package/types/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/types/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/types/core/schemas/builders/set/index.d.ts +1 -0
- package/types/core/schemas/builders/set/set.d.ts +2 -0
- package/types/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/types/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/types/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/types/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/types/core/schemas/builders/union/index.d.ts +4 -0
- package/types/core/schemas/builders/union/types.d.ts +13 -0
- package/types/core/schemas/builders/union/union.d.ts +4 -0
- package/types/core/schemas/index.d.ts +2 -0
- package/types/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/types/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/types/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/types/core/schemas/utils/entries.d.ts +1 -0
- package/types/core/schemas/utils/filterObject.d.ts +1 -0
- package/types/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/types/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/types/core/schemas/utils/keys.d.ts +1 -0
- package/types/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/types/core/schemas/utils/partition.d.ts +1 -0
- package/types/errors/RivetError.d.ts +12 -0
- package/types/errors/RivetTimeoutError.d.ts +6 -0
- package/types/errors/index.d.ts +2 -0
- package/types/index.d.ts +4 -0
- package/types/serialization/client/index.d.ts +1 -0
- package/types/serialization/client/requests/ActorsCreateRequest.d.ts +18 -0
- package/types/serialization/client/requests/ActorsGetOrCreateRequest.d.ts +18 -0
- 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 +4 -0
- package/types/serialization/index.d.ts +3 -0
- package/types/serialization/resources/index.d.ts +2 -0
- package/types/serialization/resources/namespaces/client/index.d.ts +1 -0
- package/types/serialization/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +13 -0
- package/types/serialization/resources/namespaces/client/requests/index.d.ts +1 -0
- package/types/serialization/resources/namespaces/index.d.ts +1 -0
- package/types/serialization/types/Actor.d.ts +28 -0
- package/types/serialization/types/ActorName.d.ts +12 -0
- package/types/serialization/types/ActorsCreateResponse.d.ts +13 -0
- package/types/serialization/types/ActorsDeleteResponse.d.ts +10 -0
- package/types/serialization/types/ActorsGetOrCreateResponse.d.ts +14 -0
- package/types/serialization/types/ActorsKvGetResponse.d.ts +13 -0
- package/types/serialization/types/ActorsListNamesResponse.d.ts +15 -0
- package/types/serialization/types/ActorsListResponse.d.ts +15 -0
- package/types/serialization/types/ActorsRescheduleRequestBody.d.ts +10 -0
- package/types/serialization/types/ActorsRescheduleResponse.d.ts +10 -0
- package/types/serialization/types/ActorsSleepRequestBody.d.ts +10 -0
- package/types/serialization/types/ActorsSleepResponse.d.ts +10 -0
- package/types/serialization/types/CrashPolicy.d.ts +10 -0
- package/types/serialization/types/Datacenter.d.ts +14 -0
- package/types/serialization/types/DatacenterHealth.d.ts +19 -0
- package/types/serialization/types/DatacentersListResponse.d.ts +15 -0
- 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 +19 -0
- package/types/serialization/types/Namespace.d.ts +16 -0
- package/types/serialization/types/NamespaceListResponse.d.ts +15 -0
- package/types/serialization/types/NamespacesCreateResponse.d.ts +13 -0
- package/types/serialization/types/Pagination.d.ts +12 -0
- package/types/serialization/types/RivetId.d.ts +10 -0
- package/types/serialization/types/Runner.d.ts +27 -0
- package/types/serialization/types/RunnerConfig.d.ts +16 -0
- package/types/serialization/types/RunnerConfigKind.d.ts +12 -0
- package/types/serialization/types/RunnerConfigKindNormal.d.ts +12 -0
- package/types/serialization/types/RunnerConfigKindServerless.d.ts +13 -0
- package/types/serialization/types/RunnerConfigKindServerlessServerless.d.ts +20 -0
- package/types/serialization/types/RunnerConfigResponse.d.ts +13 -0
- package/types/serialization/types/RunnerConfigServerless.d.ts +20 -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 +16 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidRequest.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJson.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJsonInvalidResponseJson.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchema.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchemaInvalidResponseSchema.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatus.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatusNonSuccessStatus.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorRequestFailed.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorRequestTimedOut.d.ts +12 -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 +59 -0
|
@@ -0,0 +1,39 @@
|
|
|
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 Envoys {
|
|
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 Envoys {
|
|
26
|
+
protected readonly _options: Envoys.Options;
|
|
27
|
+
constructor(_options: Envoys.Options);
|
|
28
|
+
/**
|
|
29
|
+
* @param {Rivet.EnvoysListRequest} request
|
|
30
|
+
* @param {Envoys.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.envoys.list({
|
|
34
|
+
* namespace: "namespace"
|
|
35
|
+
* })
|
|
36
|
+
*/
|
|
37
|
+
list(request: Rivet.EnvoysListRequest, requestOptions?: Envoys.RequestOptions): Promise<Rivet.EnvoysListResponse>;
|
|
38
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* namespace: "namespace"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface EnvoysListRequest {
|
|
11
|
+
namespace: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
envoyKey?: string | string[];
|
|
14
|
+
limit?: number;
|
|
15
|
+
cursor?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type EnvoysListRequest } from "./EnvoysListRequest";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,36 @@
|
|
|
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 Health {
|
|
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 Health {
|
|
26
|
+
protected readonly _options: Health.Options;
|
|
27
|
+
constructor(_options: Health.Options);
|
|
28
|
+
/**
|
|
29
|
+
* @param {Health.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.health.fanout()
|
|
33
|
+
*/
|
|
34
|
+
fanout(requestOptions?: Health.RequestOptions): Promise<Rivet.HealthFanoutResponse>;
|
|
35
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * as datacenters from "./datacenters";
|
|
2
|
+
export * as envoys from "./envoys";
|
|
3
|
+
export * as health from "./health";
|
|
4
|
+
export * as metadata from "./metadata";
|
|
5
|
+
export * as namespaces from "./namespaces";
|
|
6
|
+
export * as runners from "./runners";
|
|
7
|
+
export * from "./envoys/client/requests";
|
|
8
|
+
export * from "./namespaces/client/requests";
|
|
9
|
+
export * from "./runners/client/requests";
|
|
@@ -0,0 +1,36 @@
|
|
|
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 Metadata {
|
|
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 Metadata {
|
|
26
|
+
protected readonly _options: Metadata.Options;
|
|
27
|
+
constructor(_options: Metadata.Options);
|
|
28
|
+
/**
|
|
29
|
+
* @param {Metadata.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.metadata.get()
|
|
33
|
+
*/
|
|
34
|
+
get(requestOptions?: Metadata.RequestOptions): Promise<Rivet.MetadataGetResponse>;
|
|
35
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,48 @@
|
|
|
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 Namespaces {
|
|
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 Namespaces {
|
|
26
|
+
protected readonly _options: Namespaces.Options;
|
|
27
|
+
constructor(_options: Namespaces.Options);
|
|
28
|
+
/**
|
|
29
|
+
* @param {Rivet.NamespacesListRequest} request
|
|
30
|
+
* @param {Namespaces.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.namespaces.list()
|
|
34
|
+
*/
|
|
35
|
+
list(request?: Rivet.NamespacesListRequest, requestOptions?: Namespaces.RequestOptions): Promise<Rivet.NamespaceListResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @param {Rivet.NamespacesCreateRequest} request
|
|
38
|
+
* @param {Namespaces.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.namespaces.create({
|
|
42
|
+
* displayName: "display_name",
|
|
43
|
+
* name: "name"
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
create(request: Rivet.NamespacesCreateRequest, requestOptions?: Namespaces.RequestOptions): Promise<Rivet.NamespacesCreateResponse>;
|
|
47
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* displayName: "display_name",
|
|
8
|
+
* name: "name"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface NamespacesCreateRequest {
|
|
12
|
+
displayName: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
@@ -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
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface NamespacesListRequest {
|
|
10
|
+
limit?: number;
|
|
11
|
+
cursor?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Deprecated.
|
|
15
|
+
*/
|
|
16
|
+
namespaceIds?: string;
|
|
17
|
+
namespaceId?: Rivet.RivetId | Rivet.RivetId[];
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -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";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../index";
|
|
5
|
+
export interface Actor {
|
|
6
|
+
actorId: Rivet.RivetId;
|
|
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. */
|
|
11
|
+
createTs: number;
|
|
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;
|
|
32
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface MetadataGetResponse {
|
|
5
|
+
buildTimestamp: string;
|
|
6
|
+
cargoProfile: string;
|
|
7
|
+
cargoTarget: string;
|
|
8
|
+
gitSha: string;
|
|
9
|
+
runtime: string;
|
|
10
|
+
rustcHost: string;
|
|
11
|
+
rustcVersion: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}
|