@rivetkit/engine-api-full 2.3.0-rc.3 → 2.3.0-rc.4
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 +295 -22
- package/dist/browser/cjs/serialization.js +42 -0
- package/dist/browser/esm/index.js +295 -22
- package/dist/browser/esm/serialization.js +42 -0
- package/dist/node/cjs/index.js +295 -22
- package/dist/node/cjs/serialization.js +48 -0
- package/dist/node/esm/index.js +295 -22
- package/dist/node/esm/serialization.js +42 -0
- package/package.json +1 -1
- package/types/Client.d.ts +31 -0
- package/types/api/client/requests/ActorsCreateRequest.d.ts +1 -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/index.d.ts +2 -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/index.d.ts +2 -0
- package/types/api/types/ActorsRescheduleBody.d.ts +4 -0
- package/types/api/types/ActorsRescheduleResponse.d.ts +4 -0
- package/types/api/types/ActorsSleepBody.d.ts +4 -0
- package/types/api/types/ActorsSleepResponse.d.ts +4 -0
- package/types/api/types/Envoy.d.ts +18 -0
- package/types/api/types/EnvoysListResponse.d.ts +8 -0
- package/types/api/types/RunnerConfigKindServerlessServerless.d.ts +1 -0
- package/types/api/types/RunnerConfigServerless.d.ts +1 -0
- package/types/api/types/index.d.ts +6 -0
- package/types/serialization/types/ActorsRescheduleBody.d.ts +10 -0
- package/types/serialization/types/ActorsRescheduleResponse.d.ts +10 -0
- package/types/serialization/types/ActorsSleepBody.d.ts +10 -0
- package/types/serialization/types/ActorsSleepResponse.d.ts +10 -0
- package/types/serialization/types/Envoy.d.ts +24 -0
- package/types/serialization/types/EnvoysListResponse.d.ts +15 -0
- package/types/serialization/types/RunnerConfigKindServerlessServerless.d.ts +1 -0
- package/types/serialization/types/RunnerConfigServerless.d.ts +1 -0
- package/types/serialization/types/index.d.ts +6 -0
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
* body: {
|
|
10
|
+
* "key": "value"
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface ActorsRescheduleRequest {
|
|
15
|
+
namespace: string;
|
|
16
|
+
body: Rivet.ActorsRescheduleBody;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
* body: {
|
|
10
|
+
* "key": "value"
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface ActorsSleepRequest {
|
|
15
|
+
namespace: string;
|
|
16
|
+
body: Rivet.ActorsSleepBody;
|
|
17
|
+
}
|
|
@@ -4,6 +4,8 @@ export { type ActorsGetOrCreateRequest } from "./ActorsGetOrCreateRequest";
|
|
|
4
4
|
export { type ActorsListNamesRequest } from "./ActorsListNamesRequest";
|
|
5
5
|
export { type ActorsDeleteRequest } from "./ActorsDeleteRequest";
|
|
6
6
|
export { type ActorsKvGetRequest } from "./ActorsKvGetRequest";
|
|
7
|
+
export { type ActorsRescheduleRequest } from "./ActorsRescheduleRequest";
|
|
8
|
+
export { type ActorsSleepRequest } from "./ActorsSleepRequest";
|
|
7
9
|
export { type RunnerConfigsListRequest } from "./RunnerConfigsListRequest";
|
|
8
10
|
export { type RunnerConfigsServerlessHealthCheckRequest } from "./RunnerConfigsServerlessHealthCheckRequest";
|
|
9
11
|
export { type RunnerConfigsUpsertRequestBody } from "./RunnerConfigsUpsertRequestBody";
|
|
@@ -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";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * as datacenters from "./datacenters";
|
|
2
|
+
export * as envoys from "./envoys";
|
|
2
3
|
export * as health from "./health";
|
|
3
4
|
export * as metadata from "./metadata";
|
|
4
5
|
export * as namespaces from "./namespaces";
|
|
5
6
|
export * as runners from "./runners";
|
|
7
|
+
export * from "./envoys/client/requests";
|
|
6
8
|
export * from "./namespaces/client/requests";
|
|
7
9
|
export * from "./runners/client/requests";
|
|
@@ -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
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface RunnerConfigKindServerlessServerless {
|
|
5
5
|
headers?: Record<string, string>;
|
|
6
|
+
maxConcurrentActors?: number;
|
|
6
7
|
maxRunners: number;
|
|
7
8
|
/** Milliseconds between metadata polling. If not set, uses the global default. */
|
|
8
9
|
metadataPollInterval?: number;
|
|
@@ -6,10 +6,16 @@ export * from "./ActorsGetOrCreateResponse";
|
|
|
6
6
|
export * from "./ActorsKvGetResponse";
|
|
7
7
|
export * from "./ActorsListNamesResponse";
|
|
8
8
|
export * from "./ActorsListResponse";
|
|
9
|
+
export * from "./ActorsRescheduleBody";
|
|
10
|
+
export * from "./ActorsRescheduleResponse";
|
|
11
|
+
export * from "./ActorsSleepBody";
|
|
12
|
+
export * from "./ActorsSleepResponse";
|
|
9
13
|
export * from "./CrashPolicy";
|
|
10
14
|
export * from "./Datacenter";
|
|
11
15
|
export * from "./DatacenterHealth";
|
|
12
16
|
export * from "./DatacentersListResponse";
|
|
17
|
+
export * from "./Envoy";
|
|
18
|
+
export * from "./EnvoysListResponse";
|
|
13
19
|
export * from "./HealthFanoutResponse";
|
|
14
20
|
export * from "./HealthResponse";
|
|
15
21
|
export * from "./HealthStatus";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Rivet from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ActorsRescheduleBody: core.serialization.Schema<serializers.ActorsRescheduleBody.Raw, Rivet.ActorsRescheduleBody>;
|
|
8
|
+
export declare namespace ActorsRescheduleBody {
|
|
9
|
+
type Raw = Record<string, unknown>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Rivet from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ActorsRescheduleResponse: core.serialization.Schema<serializers.ActorsRescheduleResponse.Raw, Rivet.ActorsRescheduleResponse>;
|
|
8
|
+
export declare namespace ActorsRescheduleResponse {
|
|
9
|
+
type Raw = Record<string, unknown>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Rivet from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ActorsSleepBody: core.serialization.Schema<serializers.ActorsSleepBody.Raw, Rivet.ActorsSleepBody>;
|
|
8
|
+
export declare namespace ActorsSleepBody {
|
|
9
|
+
type Raw = Record<string, unknown>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Rivet from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ActorsSleepResponse: core.serialization.Schema<serializers.ActorsSleepResponse.Raw, Rivet.ActorsSleepResponse>;
|
|
8
|
+
export declare namespace ActorsSleepResponse {
|
|
9
|
+
type Raw = Record<string, unknown>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Rivet from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { RivetId } from "./RivetId";
|
|
8
|
+
export declare const Envoy: core.serialization.ObjectSchema<serializers.Envoy.Raw, Rivet.Envoy>;
|
|
9
|
+
export declare namespace Envoy {
|
|
10
|
+
interface Raw {
|
|
11
|
+
create_ts: number;
|
|
12
|
+
datacenter: string;
|
|
13
|
+
envoy_key: string;
|
|
14
|
+
last_connected_ts?: number | null;
|
|
15
|
+
last_ping_ts: number;
|
|
16
|
+
last_rtt: number;
|
|
17
|
+
metadata?: Record<string, unknown> | null;
|
|
18
|
+
namespace_id: RivetId.Raw;
|
|
19
|
+
pool_name: string;
|
|
20
|
+
slots: number;
|
|
21
|
+
stop_ts?: number | null;
|
|
22
|
+
version: number;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Rivet from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { Envoy } from "./Envoy";
|
|
8
|
+
import { Pagination } from "./Pagination";
|
|
9
|
+
export declare const EnvoysListResponse: core.serialization.ObjectSchema<serializers.EnvoysListResponse.Raw, Rivet.EnvoysListResponse>;
|
|
10
|
+
export declare namespace EnvoysListResponse {
|
|
11
|
+
interface Raw {
|
|
12
|
+
envoys: Envoy.Raw[];
|
|
13
|
+
pagination: Pagination.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -8,6 +8,7 @@ export declare const RunnerConfigKindServerlessServerless: core.serialization.Ob
|
|
|
8
8
|
export declare namespace RunnerConfigKindServerlessServerless {
|
|
9
9
|
interface Raw {
|
|
10
10
|
headers?: Record<string, string> | null;
|
|
11
|
+
max_concurrent_actors?: number | null;
|
|
11
12
|
max_runners: number;
|
|
12
13
|
metadata_poll_interval?: number | null;
|
|
13
14
|
min_runners?: number | null;
|
|
@@ -8,6 +8,7 @@ export declare const RunnerConfigServerless: core.serialization.ObjectSchema<ser
|
|
|
8
8
|
export declare namespace RunnerConfigServerless {
|
|
9
9
|
interface Raw {
|
|
10
10
|
headers?: Record<string, string> | null;
|
|
11
|
+
max_concurrent_actors?: number | null;
|
|
11
12
|
max_runners: number;
|
|
12
13
|
metadata_poll_interval?: number | null;
|
|
13
14
|
min_runners?: number | null;
|
|
@@ -6,10 +6,16 @@ export * from "./ActorsGetOrCreateResponse";
|
|
|
6
6
|
export * from "./ActorsKvGetResponse";
|
|
7
7
|
export * from "./ActorsListNamesResponse";
|
|
8
8
|
export * from "./ActorsListResponse";
|
|
9
|
+
export * from "./ActorsRescheduleBody";
|
|
10
|
+
export * from "./ActorsRescheduleResponse";
|
|
11
|
+
export * from "./ActorsSleepBody";
|
|
12
|
+
export * from "./ActorsSleepResponse";
|
|
9
13
|
export * from "./CrashPolicy";
|
|
10
14
|
export * from "./Datacenter";
|
|
11
15
|
export * from "./DatacenterHealth";
|
|
12
16
|
export * from "./DatacentersListResponse";
|
|
17
|
+
export * from "./Envoy";
|
|
18
|
+
export * from "./EnvoysListResponse";
|
|
13
19
|
export * from "./HealthFanoutResponse";
|
|
14
20
|
export * from "./HealthResponse";
|
|
15
21
|
export * from "./HealthStatus";
|