@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.
Files changed (202) hide show
  1. package/dist/browser/cjs/index.js +551 -850
  2. package/dist/browser/cjs/package.json +3 -0
  3. package/dist/browser/cjs/serialization.js +155 -287
  4. package/dist/browser/esm/index.js +551 -850
  5. package/dist/browser/esm/package.json +3 -0
  6. package/dist/browser/esm/serialization.js +155 -287
  7. package/dist/node/cjs/index.js +551 -850
  8. package/dist/node/cjs/package.json +3 -0
  9. package/dist/node/cjs/serialization.js +175 -322
  10. package/dist/node/esm/index.js +551 -850
  11. package/dist/node/esm/package.json +3 -0
  12. package/dist/node/esm/serialization.js +155 -287
  13. package/package.json +7 -2
  14. package/types/Client.d.ts +16 -83
  15. package/types/api/client/requests/ActorsCreateRequest.d.ts +3 -7
  16. package/types/api/client/requests/ActorsDeleteRequest.d.ts +1 -1
  17. package/types/api/client/requests/ActorsForkRequest.d.ts +14 -0
  18. package/types/api/client/requests/ActorsGetOrCreateRequest.d.ts +4 -8
  19. package/types/api/client/requests/ActorsGetRequest.d.ts +3 -0
  20. package/types/api/client/requests/ActorsListNamesRequest.d.ts +1 -1
  21. package/types/api/client/requests/ActorsListRequest.d.ts +2 -5
  22. package/types/api/client/requests/ActorsRescheduleRequest.d.ts +1 -5
  23. package/types/api/client/requests/ActorsSleepRequest.d.ts +1 -5
  24. package/types/api/client/requests/index.d.ts +2 -6
  25. package/types/api/resources/{health → authTokens}/client/Client.d.ts +6 -11
  26. package/types/api/resources/authTokens/client/index.d.ts +2 -0
  27. package/types/api/resources/authTokens/client/requests/AuthTokenCreateRequest.d.ts +25 -0
  28. package/types/api/resources/authTokens/client/requests/index.d.ts +1 -0
  29. package/types/api/resources/index.d.ts +4 -5
  30. package/types/api/resources/namespaces/client/Client.d.ts +12 -1
  31. package/types/api/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +0 -2
  32. package/types/api/resources/namespaces/client/requests/NamespacesListRequest.d.ts +0 -6
  33. package/types/api/resources/pools/client/Client.d.ts +57 -0
  34. package/types/api/resources/pools/client/requests/PoolsDeleteRequest.d.ts +3 -0
  35. package/types/api/resources/pools/client/requests/PoolsGetRequest.d.ts +3 -0
  36. package/types/api/resources/{runners/client/requests/RunnersListNamesRequest.d.ts → pools/client/requests/PoolsListNodesRequest.d.ts} +2 -2
  37. package/types/api/resources/{envoys/client/requests/EnvoysListRequest.d.ts → pools/client/requests/PoolsListRequest.d.ts} +2 -4
  38. package/types/api/resources/pools/client/requests/PoolsUpsertRequest.d.ts +8 -0
  39. package/types/api/resources/pools/client/requests/index.d.ts +5 -0
  40. package/types/api/types/Actor.d.ts +23 -27
  41. package/types/api/types/ActorName.d.ts +1 -3
  42. package/types/api/types/ActorsCreateResponse.d.ts +2 -3
  43. package/types/api/types/ActorsDeleteResponse.d.ts +1 -4
  44. package/types/api/types/ActorsForkResponse.d.ts +4 -0
  45. package/types/api/types/ActorsGetOrCreateResponse.d.ts +1 -3
  46. package/types/api/types/ActorsGetResponse.d.ts +4 -0
  47. package/types/api/types/ActorsListNamesResponse.d.ts +1 -4
  48. package/types/api/types/ActorsListResponse.d.ts +1 -4
  49. package/types/api/types/ActorsRescheduleResponse.d.ts +1 -4
  50. package/types/api/types/ActorsSleepResponse.d.ts +1 -4
  51. package/types/api/types/AuthOperationKind.d.ts +1 -0
  52. package/types/api/types/AuthResourceKind.d.ts +1 -0
  53. package/types/api/types/AuthTargetScope.d.ts +4 -0
  54. package/types/api/types/AuthTokenCreateResponse.d.ts +8 -0
  55. package/types/api/types/AuthTokenGrant.d.ts +7 -0
  56. package/types/api/types/AuthTokenInspectResponse.d.ts +13 -0
  57. package/types/api/types/Datacenter.d.ts +1 -5
  58. package/types/api/types/DatacentersListResponse.d.ts +1 -5
  59. package/types/api/types/ErrorResponse.d.ts +10 -0
  60. package/types/api/types/MetadataGetResponse.d.ts +8 -10
  61. package/types/api/types/Namespace.d.ts +13 -6
  62. package/types/api/types/NamespaceForkedFrom.d.ts +14 -0
  63. package/types/api/types/NamespaceListResponse.d.ts +1 -4
  64. package/types/api/types/NamespaceSkippedActor.d.ts +14 -0
  65. package/types/api/types/NamespaceStatus.d.ts +18 -0
  66. package/types/api/types/{HealthFanoutResponse.d.ts → NamespacesArchiveResponse.d.ts} +2 -2
  67. package/types/api/types/NamespacesCreateResponse.d.ts +0 -3
  68. package/types/api/types/Node.d.ts +20 -0
  69. package/types/api/types/Pagination.d.ts +2 -4
  70. package/types/api/types/Pool.d.ts +14 -0
  71. package/types/api/types/PoolResponse.d.ts +4 -0
  72. package/types/api/types/PoolsDeleteResponse.d.ts +1 -0
  73. package/types/api/types/PoolsListNodesResponse.d.ts +5 -0
  74. package/types/api/types/PoolsListResponse.d.ts +5 -0
  75. package/types/api/types/RivetId.d.ts +0 -3
  76. package/types/api/types/index.d.ts +19 -33
  77. package/types/serialization/client/requests/ActorsCreateRequest.d.ts +1 -4
  78. package/types/serialization/client/requests/ActorsForkRequest.d.ts +10 -0
  79. package/types/serialization/client/requests/ActorsGetOrCreateRequest.d.ts +2 -5
  80. package/types/serialization/client/requests/index.d.ts +1 -2
  81. package/types/serialization/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +0 -1
  82. package/types/serialization/types/Actor.d.ts +11 -17
  83. package/types/serialization/types/ActorName.d.ts +0 -3
  84. package/types/serialization/types/ActorsCreateResponse.d.ts +1 -3
  85. package/types/serialization/types/ActorsDeleteResponse.d.ts +1 -4
  86. package/types/serialization/types/ActorsForkResponse.d.ts +10 -0
  87. package/types/serialization/types/ActorsGetOrCreateResponse.d.ts +0 -3
  88. package/types/serialization/types/ActorsGetResponse.d.ts +10 -0
  89. package/types/serialization/types/ActorsListNamesResponse.d.ts +0 -5
  90. package/types/serialization/types/ActorsListResponse.d.ts +1 -4
  91. package/types/serialization/types/ActorsRescheduleResponse.d.ts +1 -4
  92. package/types/serialization/types/ActorsSleepResponse.d.ts +1 -4
  93. package/types/serialization/types/AuthOperationKind.d.ts +7 -0
  94. package/types/serialization/types/AuthResourceKind.d.ts +7 -0
  95. package/types/serialization/types/AuthTargetScope.d.ts +10 -0
  96. package/types/serialization/types/AuthTokenCreateResponse.d.ts +11 -0
  97. package/types/serialization/types/AuthTokenGrant.d.ts +14 -0
  98. package/types/serialization/types/AuthTokenInspectResponse.d.ts +14 -0
  99. package/types/serialization/types/Datacenter.d.ts +0 -5
  100. package/types/serialization/types/DatacentersListResponse.d.ts +1 -6
  101. package/types/serialization/types/ErrorResponse.d.ts +12 -0
  102. package/types/serialization/types/MetadataGetResponse.d.ts +4 -10
  103. package/types/serialization/types/Namespace.d.ts +9 -7
  104. package/types/serialization/types/NamespaceForkedFrom.d.ts +14 -0
  105. package/types/serialization/types/NamespaceListResponse.d.ts +1 -4
  106. package/types/serialization/types/NamespaceSkippedActor.d.ts +14 -0
  107. package/types/serialization/types/NamespaceStatus.d.ts +10 -0
  108. package/types/serialization/types/NamespacesArchiveResponse.d.ts +13 -0
  109. package/types/serialization/types/NamespacesCreateResponse.d.ts +0 -3
  110. package/types/serialization/types/Node.d.ts +17 -0
  111. package/types/serialization/types/Pagination.d.ts +1 -4
  112. package/types/serialization/types/Pool.d.ts +14 -0
  113. package/types/serialization/types/PoolResponse.d.ts +10 -0
  114. package/types/serialization/types/PoolsDeleteResponse.d.ts +7 -0
  115. package/types/serialization/types/PoolsListNodesResponse.d.ts +12 -0
  116. package/types/serialization/types/PoolsListResponse.d.ts +12 -0
  117. package/types/serialization/types/RivetId.d.ts +0 -3
  118. package/types/serialization/types/index.d.ts +19 -33
  119. package/types/api/client/requests/ActorsKvGetRequest.d.ts +0 -12
  120. package/types/api/client/requests/RunnerConfigsDeleteRequest.d.ts +0 -12
  121. package/types/api/client/requests/RunnerConfigsListRequest.d.ts +0 -21
  122. package/types/api/client/requests/RunnerConfigsRefreshMetadataRequest.d.ts +0 -17
  123. package/types/api/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +0 -15
  124. package/types/api/client/requests/RunnerConfigsUpsertRequestBody.d.ts +0 -17
  125. package/types/api/resources/envoys/client/Client.d.ts +0 -39
  126. package/types/api/resources/envoys/client/requests/index.d.ts +0 -1
  127. package/types/api/resources/health/client/index.d.ts +0 -1
  128. package/types/api/resources/runners/client/Client.d.ts +0 -54
  129. package/types/api/resources/runners/client/index.d.ts +0 -1
  130. package/types/api/resources/runners/client/requests/RunnersListRequest.d.ts +0 -22
  131. package/types/api/resources/runners/client/requests/index.d.ts +0 -2
  132. package/types/api/resources/runners/index.d.ts +0 -1
  133. package/types/api/types/ActorsKvGetResponse.d.ts +0 -7
  134. package/types/api/types/ActorsRescheduleRequestBody.d.ts +0 -4
  135. package/types/api/types/ActorsSleepRequestBody.d.ts +0 -4
  136. package/types/api/types/CrashPolicy.d.ts +0 -9
  137. package/types/api/types/DatacenterHealth.d.ts +0 -12
  138. package/types/api/types/Envoy.d.ts +0 -18
  139. package/types/api/types/EnvoysListResponse.d.ts +0 -8
  140. package/types/api/types/HealthResponse.d.ts +0 -8
  141. package/types/api/types/HealthStatus.d.ts +0 -8
  142. package/types/api/types/Runner.d.ts +0 -21
  143. package/types/api/types/RunnerConfig.d.ts +0 -10
  144. package/types/api/types/RunnerConfigKind.d.ts +0 -5
  145. package/types/api/types/RunnerConfigKindNormal.d.ts +0 -6
  146. package/types/api/types/RunnerConfigKindServerless.d.ts +0 -7
  147. package/types/api/types/RunnerConfigKindServerlessServerless.d.ts +0 -22
  148. package/types/api/types/RunnerConfigResponse.d.ts +0 -8
  149. package/types/api/types/RunnerConfigServerless.d.ts +0 -22
  150. package/types/api/types/RunnerConfigVariant.d.ts +0 -8
  151. package/types/api/types/RunnerConfigsDeleteResponse.d.ts +0 -4
  152. package/types/api/types/RunnerConfigsListResponse.d.ts +0 -8
  153. package/types/api/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +0 -7
  154. package/types/api/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +0 -4
  155. package/types/api/types/RunnerConfigsRefreshMetadataResponse.d.ts +0 -4
  156. package/types/api/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +0 -5
  157. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +0 -7
  158. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +0 -7
  159. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +0 -7
  160. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +0 -6
  161. package/types/api/types/RunnerConfigsServerlessMetadataError.d.ts +0 -16
  162. package/types/api/types/RunnerConfigsUpsertResponse.d.ts +0 -6
  163. package/types/api/types/RunnersListNamesResponse.d.ts +0 -8
  164. package/types/api/types/RunnersListResponse.d.ts +0 -8
  165. package/types/serialization/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +0 -13
  166. package/types/serialization/client/requests/RunnerConfigsUpsertRequestBody.d.ts +0 -13
  167. package/types/serialization/types/ActorsKvGetResponse.d.ts +0 -13
  168. package/types/serialization/types/ActorsRescheduleRequestBody.d.ts +0 -10
  169. package/types/serialization/types/ActorsSleepRequestBody.d.ts +0 -10
  170. package/types/serialization/types/CrashPolicy.d.ts +0 -10
  171. package/types/serialization/types/DatacenterHealth.d.ts +0 -19
  172. package/types/serialization/types/Envoy.d.ts +0 -24
  173. package/types/serialization/types/EnvoysListResponse.d.ts +0 -15
  174. package/types/serialization/types/HealthFanoutResponse.d.ts +0 -13
  175. package/types/serialization/types/HealthResponse.d.ts +0 -14
  176. package/types/serialization/types/HealthStatus.d.ts +0 -10
  177. package/types/serialization/types/Runner.d.ts +0 -27
  178. package/types/serialization/types/RunnerConfig.d.ts +0 -16
  179. package/types/serialization/types/RunnerConfigKind.d.ts +0 -12
  180. package/types/serialization/types/RunnerConfigKindNormal.d.ts +0 -12
  181. package/types/serialization/types/RunnerConfigKindServerless.d.ts +0 -13
  182. package/types/serialization/types/RunnerConfigKindServerlessServerless.d.ts +0 -21
  183. package/types/serialization/types/RunnerConfigResponse.d.ts +0 -14
  184. package/types/serialization/types/RunnerConfigServerless.d.ts +0 -21
  185. package/types/serialization/types/RunnerConfigVariant.d.ts +0 -10
  186. package/types/serialization/types/RunnerConfigsDeleteResponse.d.ts +0 -10
  187. package/types/serialization/types/RunnerConfigsListResponse.d.ts +0 -15
  188. package/types/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +0 -13
  189. package/types/serialization/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +0 -10
  190. package/types/serialization/types/RunnerConfigsRefreshMetadataResponse.d.ts +0 -10
  191. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +0 -12
  192. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +0 -13
  193. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +0 -13
  194. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +0 -13
  195. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +0 -12
  196. package/types/serialization/types/RunnerConfigsServerlessMetadataError.d.ts +0 -14
  197. package/types/serialization/types/RunnerConfigsUpsertResponse.d.ts +0 -12
  198. package/types/serialization/types/RunnersListNamesResponse.d.ts +0 -14
  199. package/types/serialization/types/RunnersListResponse.d.ts +0 -15
  200. /package/types/api/resources/{envoys → authTokens}/index.d.ts +0 -0
  201. /package/types/api/resources/{envoys → pools}/client/index.d.ts +0 -0
  202. /package/types/api/resources/{health → pools}/index.d.ts +0 -0
@@ -1,54 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export * from "./requests";
@@ -1,22 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- export { type RunnersListRequest } from "./RunnersListRequest";
2
- export { type RunnersListNamesRequest } from "./RunnersListNamesRequest";
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ActorsKvGetResponse {
5
- updateTs: number;
6
- value: string;
7
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type ActorsRescheduleRequestBody = Record<string, unknown>;
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type ActorsSleepRequestBody = Record<string, unknown>;
@@ -1,9 +0,0 @@
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
- };
@@ -1,12 +0,0 @@
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,18 +0,0 @@
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,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface EnvoysListResponse {
6
- envoys: Rivet.Envoy[];
7
- pagination: Rivet.Pagination;
8
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface HealthResponse {
5
- runtime: string;
6
- status: string;
7
- version: string;
8
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type HealthStatus = "ok" | "error";
5
- export declare const HealthStatus: {
6
- readonly Ok: "ok";
7
- readonly Error: "error";
8
- };
@@ -1,21 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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?: Record<string, unknown>;
7
- serverless?: Rivet.RunnerConfigServerless;
8
- drainOnVersionUpgrade?: boolean;
9
- metadata?: unknown;
10
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export type RunnerConfigKind = Rivet.RunnerConfigKindNormal | Rivet.RunnerConfigKindServerless;
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RunnerConfigKindNormal {
5
- normal: Record<string, unknown>;
6
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface RunnerConfigKindServerless {
6
- serverless: Rivet.RunnerConfigKindServerlessServerless;
7
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RunnerConfigKindServerlessServerless {
5
- /** Seconds. */
6
- drainGracePeriod?: number;
7
- headers?: Record<string, string>;
8
- maxConcurrentActors?: number;
9
- /** Deprecated. */
10
- maxRunners: number;
11
- /** Milliseconds between metadata polling. If not set, uses the global default. */
12
- metadataPollInterval?: number;
13
- /** Deprecated. */
14
- minRunners?: number;
15
- /** Seconds. */
16
- requestLifespan: number;
17
- /** Deprecated. */
18
- runnersMargin?: number;
19
- /** Deprecated. */
20
- slotsPerRunner: number;
21
- url: string;
22
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface RunnerConfigResponse extends Rivet.RunnerConfig {
6
- protocolVersion?: number;
7
- runnerPoolError?: Record<string, unknown>;
8
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RunnerConfigServerless {
5
- /** Seconds. */
6
- drainGracePeriod?: number;
7
- headers?: Record<string, string>;
8
- maxConcurrentActors?: number;
9
- /** Deprecated. */
10
- maxRunners: number;
11
- /** Milliseconds between metadata polling. If not set, uses the global default. */
12
- metadataPollInterval?: number;
13
- /** Deprecated. */
14
- minRunners?: number;
15
- /** Seconds. */
16
- requestLifespan: number;
17
- /** Deprecated. */
18
- runnersMargin?: number;
19
- /** Deprecated. */
20
- slotsPerRunner: number;
21
- url: string;
22
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type RunnerConfigVariant = "serverless" | "normal";
5
- export declare const RunnerConfigVariant: {
6
- readonly Serverless: "serverless";
7
- readonly Normal: "normal";
8
- };
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type RunnerConfigsDeleteResponse = Record<string, unknown>;
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface RunnerConfigsListResponse {
6
- pagination: Rivet.Pagination;
7
- runnerConfigs: Record<string, Rivet.RunnerConfigsListResponseRunnerConfigsValue>;
8
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface RunnerConfigsListResponseRunnerConfigsValue {
6
- datacenters: Record<string, Rivet.RunnerConfigResponse>;
7
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type RunnerConfigsRefreshMetadataRequestBody = Record<string, unknown>;
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type RunnerConfigsRefreshMetadataResponse = Record<string, unknown>;
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export type RunnerConfigsServerlessHealthCheckResponse = Rivet.RunnerConfigsServerlessHealthCheckResponseSuccess | Rivet.RunnerConfigsServerlessHealthCheckResponseFailure;
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface RunnerConfigsServerlessHealthCheckResponseFailure {
6
- failure: Rivet.RunnerConfigsServerlessHealthCheckResponseFailureFailure;
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface RunnerConfigsServerlessHealthCheckResponseFailureFailure {
6
- error: Rivet.RunnerConfigsServerlessMetadataError;
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface RunnerConfigsServerlessHealthCheckResponseSuccess {
6
- success: Rivet.RunnerConfigsServerlessHealthCheckResponseSuccessSuccess;
7
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RunnerConfigsServerlessHealthCheckResponseSuccessSuccess {
5
- version: string;
6
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Wire-format envelope for serverless metadata errors.
6
- *
7
- * Surfaced to API clients with a stable `{message, details, metadata}` shape
8
- * regardless of which internal `ServerlessMetadataError` variant produced it.
9
- * `metadata.kind` discriminates the variant; per-variant fields live alongside
10
- * `kind`.
11
- */
12
- export interface RunnerConfigsServerlessMetadataError {
13
- details?: string;
14
- message: string;
15
- metadata?: unknown;
16
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface RunnerConfigsUpsertResponse {
5
- endpointConfigChanged: boolean;
6
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface RunnersListNamesResponse {
6
- names: string[];
7
- pagination: Rivet.Pagination;
8
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface RunnersListResponse {
6
- pagination: Rivet.Pagination;
7
- runners: Rivet.Runner[];
8
- }
@@ -1,13 +0,0 @@
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 RunnerConfigsServerlessHealthCheckRequest: core.serialization.Schema<serializers.RunnerConfigsServerlessHealthCheckRequest.Raw, Omit<Rivet.RunnerConfigsServerlessHealthCheckRequest, "namespace">>;
8
- export declare namespace RunnerConfigsServerlessHealthCheckRequest {
9
- interface Raw {
10
- headers?: Record<string, string> | null;
11
- url: string;
12
- }
13
- }
@@ -1,13 +0,0 @@
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 { RunnerConfig } from "../../types/RunnerConfig";
8
- export declare const RunnerConfigsUpsertRequestBody: core.serialization.Schema<serializers.RunnerConfigsUpsertRequestBody.Raw, Omit<Rivet.RunnerConfigsUpsertRequestBody, "namespace">>;
9
- export declare namespace RunnerConfigsUpsertRequestBody {
10
- interface Raw {
11
- datacenters: Record<string, RunnerConfig.Raw>;
12
- }
13
- }
@@ -1,13 +0,0 @@
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 ActorsKvGetResponse: core.serialization.ObjectSchema<serializers.ActorsKvGetResponse.Raw, Rivet.ActorsKvGetResponse>;
8
- export declare namespace ActorsKvGetResponse {
9
- interface Raw {
10
- update_ts: number;
11
- value: string;
12
- }
13
- }
@@ -1,10 +0,0 @@
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 ActorsRescheduleRequestBody: core.serialization.Schema<serializers.ActorsRescheduleRequestBody.Raw, Rivet.ActorsRescheduleRequestBody>;
8
- export declare namespace ActorsRescheduleRequestBody {
9
- type Raw = Record<string, unknown>;
10
- }
@@ -1,10 +0,0 @@
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 ActorsSleepRequestBody: core.serialization.Schema<serializers.ActorsSleepRequestBody.Raw, Rivet.ActorsSleepRequestBody>;
8
- export declare namespace ActorsSleepRequestBody {
9
- type Raw = Record<string, unknown>;
10
- }
@@ -1,10 +0,0 @@
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 CrashPolicy: core.serialization.Schema<serializers.CrashPolicy.Raw, Rivet.CrashPolicy>;
8
- export declare namespace CrashPolicy {
9
- type Raw = "restart" | "sleep" | "destroy";
10
- }
@@ -1,19 +0,0 @@
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 { HealthResponse } from "./HealthResponse";
8
- import { HealthStatus } from "./HealthStatus";
9
- export declare const DatacenterHealth: core.serialization.ObjectSchema<serializers.DatacenterHealth.Raw, Rivet.DatacenterHealth>;
10
- export declare namespace DatacenterHealth {
11
- interface Raw {
12
- datacenter_label: number;
13
- datacenter_name: string;
14
- error?: string | null;
15
- response?: HealthResponse.Raw | null;
16
- rtt_ms?: number | null;
17
- status: HealthStatus.Raw;
18
- }
19
- }
@@ -1,24 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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 { DatacenterHealth } from "./DatacenterHealth";
8
- export declare const HealthFanoutResponse: core.serialization.ObjectSchema<serializers.HealthFanoutResponse.Raw, Rivet.HealthFanoutResponse>;
9
- export declare namespace HealthFanoutResponse {
10
- interface Raw {
11
- datacenters: DatacenterHealth.Raw[];
12
- }
13
- }
@@ -1,14 +0,0 @@
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 HealthResponse: core.serialization.ObjectSchema<serializers.HealthResponse.Raw, Rivet.HealthResponse>;
8
- export declare namespace HealthResponse {
9
- interface Raw {
10
- runtime: string;
11
- status: string;
12
- version: string;
13
- }
14
- }
@@ -1,10 +0,0 @@
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 HealthStatus: core.serialization.Schema<serializers.HealthStatus.Raw, Rivet.HealthStatus>;
8
- export declare namespace HealthStatus {
9
- type Raw = "ok" | "error";
10
- }
@@ -1,27 +0,0 @@
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 Runner: core.serialization.ObjectSchema<serializers.Runner.Raw, Rivet.Runner>;
9
- export declare namespace Runner {
10
- interface Raw {
11
- create_ts: number;
12
- datacenter: string;
13
- drain_ts?: number | null;
14
- key: string;
15
- last_connected_ts?: number | null;
16
- last_ping_ts: number;
17
- last_rtt: number;
18
- metadata?: Record<string, unknown> | null;
19
- name: string;
20
- namespace_id: RivetId.Raw;
21
- remaining_slots: number;
22
- runner_id: RivetId.Raw;
23
- stop_ts?: number | null;
24
- total_slots: number;
25
- version: number;
26
- }
27
- }