@rivetkit/engine-api-full 0.0.0-sqlite-profiling-compat.87d61c0 → 0.0.0-sqlite-sync-3x-release.a00b07f

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 (195) hide show
  1. package/dist/browser/cjs/index.js +439 -966
  2. package/dist/browser/cjs/package.json +3 -0
  3. package/dist/browser/cjs/serialization.js +112 -330
  4. package/dist/browser/esm/index.js +439 -966
  5. package/dist/browser/esm/package.json +3 -0
  6. package/dist/browser/esm/serialization.js +112 -330
  7. package/dist/node/cjs/index.js +439 -966
  8. package/dist/node/cjs/package.json +3 -0
  9. package/dist/node/cjs/serialization.js +126 -367
  10. package/dist/node/esm/index.js +439 -966
  11. package/dist/node/esm/package.json +3 -0
  12. package/dist/node/esm/serialization.js +112 -330
  13. package/package.json +3 -2
  14. package/types/Client.d.ts +10 -91
  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/ActorsGetOrCreateRequest.d.ts +4 -8
  18. package/types/api/client/requests/ActorsGetRequest.d.ts +3 -0
  19. package/types/api/client/requests/ActorsListNamesRequest.d.ts +1 -1
  20. package/types/api/client/requests/ActorsListRequest.d.ts +2 -5
  21. package/types/api/client/requests/ActorsRescheduleRequest.d.ts +1 -5
  22. package/types/api/client/requests/ActorsSleepRequest.d.ts +1 -5
  23. package/types/api/client/requests/index.d.ts +1 -6
  24. package/types/api/resources/{health → authTokens}/client/Client.d.ts +6 -11
  25. package/types/api/resources/authTokens/client/index.d.ts +2 -0
  26. package/types/api/resources/authTokens/client/requests/AuthTokenCreateRequest.d.ts +25 -0
  27. package/types/api/resources/authTokens/client/requests/index.d.ts +1 -0
  28. package/types/api/resources/index.d.ts +4 -5
  29. package/types/api/resources/namespaces/client/Client.d.ts +0 -1
  30. package/types/api/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +0 -2
  31. package/types/api/resources/namespaces/client/requests/NamespacesListRequest.d.ts +0 -6
  32. package/types/api/resources/pools/client/Client.d.ts +57 -0
  33. package/types/api/resources/pools/client/requests/PoolsDeleteRequest.d.ts +3 -0
  34. package/types/api/resources/pools/client/requests/PoolsGetRequest.d.ts +3 -0
  35. package/types/api/resources/{runners/client/requests/RunnersListNamesRequest.d.ts → pools/client/requests/PoolsListNodesRequest.d.ts} +2 -2
  36. package/types/api/resources/{envoys/client/requests/EnvoysListRequest.d.ts → pools/client/requests/PoolsListRequest.d.ts} +2 -4
  37. package/types/api/resources/pools/client/requests/PoolsUpsertRequest.d.ts +8 -0
  38. package/types/api/resources/pools/client/requests/index.d.ts +5 -0
  39. package/types/api/types/Actor.d.ts +21 -27
  40. package/types/api/types/ActorName.d.ts +1 -3
  41. package/types/api/types/ActorsCreateResponse.d.ts +2 -3
  42. package/types/api/types/ActorsDeleteResponse.d.ts +1 -4
  43. package/types/api/types/ActorsGetOrCreateResponse.d.ts +1 -3
  44. package/types/api/types/ActorsGetResponse.d.ts +4 -0
  45. package/types/api/types/ActorsListNamesResponse.d.ts +1 -4
  46. package/types/api/types/ActorsListResponse.d.ts +1 -4
  47. package/types/api/types/ActorsRescheduleResponse.d.ts +1 -4
  48. package/types/api/types/ActorsSleepResponse.d.ts +1 -4
  49. package/types/api/types/AuthOperationKind.d.ts +1 -0
  50. package/types/api/types/AuthResourceKind.d.ts +1 -0
  51. package/types/api/types/AuthTargetScope.d.ts +4 -0
  52. package/types/api/types/AuthTokenCreateResponse.d.ts +8 -0
  53. package/types/api/types/AuthTokenGrant.d.ts +7 -0
  54. package/types/api/types/AuthTokenInspectResponse.d.ts +13 -0
  55. package/types/api/types/Datacenter.d.ts +1 -5
  56. package/types/api/types/DatacentersListResponse.d.ts +1 -5
  57. package/types/api/types/ErrorResponse.d.ts +10 -0
  58. package/types/api/types/MetadataGetResponse.d.ts +8 -12
  59. package/types/api/types/Namespace.d.ts +3 -7
  60. package/types/api/types/NamespaceListResponse.d.ts +1 -4
  61. package/types/api/types/NamespacesCreateResponse.d.ts +0 -3
  62. package/types/api/types/Node.d.ts +18 -0
  63. package/types/api/types/Pagination.d.ts +2 -4
  64. package/types/api/types/Pool.d.ts +14 -0
  65. package/types/api/types/PoolResponse.d.ts +4 -0
  66. package/types/api/types/PoolsDeleteResponse.d.ts +1 -0
  67. package/types/api/types/PoolsListNodesResponse.d.ts +5 -0
  68. package/types/api/types/PoolsListResponse.d.ts +5 -0
  69. package/types/api/types/RivetId.d.ts +0 -3
  70. package/types/api/types/index.d.ts +14 -35
  71. package/types/serialization/client/requests/ActorsCreateRequest.d.ts +1 -4
  72. package/types/serialization/client/requests/ActorsGetOrCreateRequest.d.ts +2 -5
  73. package/types/serialization/client/requests/index.d.ts +0 -2
  74. package/types/serialization/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +0 -1
  75. package/types/serialization/types/Actor.d.ts +10 -17
  76. package/types/serialization/types/ActorName.d.ts +0 -3
  77. package/types/serialization/types/ActorsCreateResponse.d.ts +1 -3
  78. package/types/serialization/types/ActorsDeleteResponse.d.ts +1 -4
  79. package/types/serialization/types/ActorsGetOrCreateResponse.d.ts +0 -3
  80. package/types/serialization/types/ActorsGetResponse.d.ts +10 -0
  81. package/types/serialization/types/ActorsListNamesResponse.d.ts +0 -5
  82. package/types/serialization/types/ActorsListResponse.d.ts +1 -4
  83. package/types/serialization/types/ActorsRescheduleResponse.d.ts +1 -4
  84. package/types/serialization/types/ActorsSleepResponse.d.ts +1 -4
  85. package/types/serialization/types/AuthOperationKind.d.ts +7 -0
  86. package/types/serialization/types/AuthResourceKind.d.ts +7 -0
  87. package/types/serialization/types/AuthTargetScope.d.ts +10 -0
  88. package/types/serialization/types/AuthTokenCreateResponse.d.ts +11 -0
  89. package/types/serialization/types/AuthTokenGrant.d.ts +14 -0
  90. package/types/serialization/types/AuthTokenInspectResponse.d.ts +14 -0
  91. package/types/serialization/types/Datacenter.d.ts +0 -5
  92. package/types/serialization/types/DatacentersListResponse.d.ts +1 -6
  93. package/types/serialization/types/ErrorResponse.d.ts +12 -0
  94. package/types/serialization/types/MetadataGetResponse.d.ts +4 -12
  95. package/types/serialization/types/Namespace.d.ts +1 -7
  96. package/types/serialization/types/NamespaceListResponse.d.ts +1 -4
  97. package/types/serialization/types/NamespacesCreateResponse.d.ts +0 -3
  98. package/types/serialization/types/Node.d.ts +16 -0
  99. package/types/serialization/types/Pagination.d.ts +1 -4
  100. package/types/serialization/types/Pool.d.ts +14 -0
  101. package/types/serialization/types/PoolResponse.d.ts +10 -0
  102. package/types/serialization/types/PoolsDeleteResponse.d.ts +7 -0
  103. package/types/serialization/types/PoolsListNodesResponse.d.ts +12 -0
  104. package/types/serialization/types/PoolsListResponse.d.ts +12 -0
  105. package/types/serialization/types/RivetId.d.ts +0 -3
  106. package/types/serialization/types/index.d.ts +14 -35
  107. package/types/api/client/requests/ActorsKvGetRequest.d.ts +0 -12
  108. package/types/api/client/requests/RunnerConfigsDeleteRequest.d.ts +0 -12
  109. package/types/api/client/requests/RunnerConfigsListRequest.d.ts +0 -21
  110. package/types/api/client/requests/RunnerConfigsRefreshMetadataRequest.d.ts +0 -17
  111. package/types/api/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +0 -15
  112. package/types/api/client/requests/RunnerConfigsUpsertRequestBody.d.ts +0 -17
  113. package/types/api/resources/envoys/client/Client.d.ts +0 -39
  114. package/types/api/resources/envoys/client/requests/index.d.ts +0 -1
  115. package/types/api/resources/health/client/index.d.ts +0 -1
  116. package/types/api/resources/runners/client/Client.d.ts +0 -54
  117. package/types/api/resources/runners/client/index.d.ts +0 -1
  118. package/types/api/resources/runners/client/requests/RunnersListRequest.d.ts +0 -22
  119. package/types/api/resources/runners/client/requests/index.d.ts +0 -2
  120. package/types/api/resources/runners/index.d.ts +0 -1
  121. package/types/api/types/ActorsKvGetResponse.d.ts +0 -7
  122. package/types/api/types/ActorsRescheduleRequestBody.d.ts +0 -4
  123. package/types/api/types/ActorsSleepRequestBody.d.ts +0 -4
  124. package/types/api/types/CrashPolicy.d.ts +0 -9
  125. package/types/api/types/DatacenterHealth.d.ts +0 -12
  126. package/types/api/types/Envoy.d.ts +0 -18
  127. package/types/api/types/EnvoysListResponse.d.ts +0 -8
  128. package/types/api/types/HealthFanoutResponse.d.ts +0 -7
  129. package/types/api/types/HealthResponse.d.ts +0 -8
  130. package/types/api/types/HealthStatus.d.ts +0 -8
  131. package/types/api/types/Runner.d.ts +0 -21
  132. package/types/api/types/RunnerConfig.d.ts +0 -11
  133. package/types/api/types/RunnerConfigKind.d.ts +0 -5
  134. package/types/api/types/RunnerConfigKindNormal.d.ts +0 -7
  135. package/types/api/types/RunnerConfigKindNormalNormal.d.ts +0 -12
  136. package/types/api/types/RunnerConfigKindServerless.d.ts +0 -7
  137. package/types/api/types/RunnerConfigKindServerlessServerless.d.ts +0 -29
  138. package/types/api/types/RunnerConfigNormal.d.ts +0 -12
  139. package/types/api/types/RunnerConfigResponse.d.ts +0 -8
  140. package/types/api/types/RunnerConfigServerless.d.ts +0 -29
  141. package/types/api/types/RunnerConfigVariant.d.ts +0 -8
  142. package/types/api/types/RunnerConfigsDeleteResponse.d.ts +0 -4
  143. package/types/api/types/RunnerConfigsListResponse.d.ts +0 -8
  144. package/types/api/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +0 -7
  145. package/types/api/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +0 -4
  146. package/types/api/types/RunnerConfigsRefreshMetadataResponse.d.ts +0 -4
  147. package/types/api/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +0 -5
  148. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +0 -7
  149. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +0 -7
  150. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +0 -7
  151. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +0 -6
  152. package/types/api/types/RunnerConfigsServerlessMetadataError.d.ts +0 -16
  153. package/types/api/types/RunnerConfigsUpsertResponse.d.ts +0 -6
  154. package/types/api/types/RunnersListNamesResponse.d.ts +0 -8
  155. package/types/api/types/RunnersListResponse.d.ts +0 -8
  156. package/types/serialization/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +0 -13
  157. package/types/serialization/client/requests/RunnerConfigsUpsertRequestBody.d.ts +0 -13
  158. package/types/serialization/types/ActorsKvGetResponse.d.ts +0 -13
  159. package/types/serialization/types/ActorsRescheduleRequestBody.d.ts +0 -10
  160. package/types/serialization/types/ActorsSleepRequestBody.d.ts +0 -10
  161. package/types/serialization/types/CrashPolicy.d.ts +0 -10
  162. package/types/serialization/types/DatacenterHealth.d.ts +0 -19
  163. package/types/serialization/types/Envoy.d.ts +0 -24
  164. package/types/serialization/types/EnvoysListResponse.d.ts +0 -15
  165. package/types/serialization/types/HealthFanoutResponse.d.ts +0 -13
  166. package/types/serialization/types/HealthResponse.d.ts +0 -14
  167. package/types/serialization/types/HealthStatus.d.ts +0 -10
  168. package/types/serialization/types/Runner.d.ts +0 -27
  169. package/types/serialization/types/RunnerConfig.d.ts +0 -17
  170. package/types/serialization/types/RunnerConfigKind.d.ts +0 -12
  171. package/types/serialization/types/RunnerConfigKindNormal.d.ts +0 -13
  172. package/types/serialization/types/RunnerConfigKindNormalNormal.d.ts +0 -15
  173. package/types/serialization/types/RunnerConfigKindServerless.d.ts +0 -13
  174. package/types/serialization/types/RunnerConfigKindServerlessServerless.d.ts +0 -25
  175. package/types/serialization/types/RunnerConfigNormal.d.ts +0 -15
  176. package/types/serialization/types/RunnerConfigResponse.d.ts +0 -14
  177. package/types/serialization/types/RunnerConfigServerless.d.ts +0 -25
  178. package/types/serialization/types/RunnerConfigVariant.d.ts +0 -10
  179. package/types/serialization/types/RunnerConfigsDeleteResponse.d.ts +0 -10
  180. package/types/serialization/types/RunnerConfigsListResponse.d.ts +0 -15
  181. package/types/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +0 -13
  182. package/types/serialization/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +0 -10
  183. package/types/serialization/types/RunnerConfigsRefreshMetadataResponse.d.ts +0 -10
  184. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +0 -12
  185. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +0 -13
  186. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +0 -13
  187. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +0 -13
  188. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +0 -12
  189. package/types/serialization/types/RunnerConfigsServerlessMetadataError.d.ts +0 -14
  190. package/types/serialization/types/RunnerConfigsUpsertResponse.d.ts +0 -12
  191. package/types/serialization/types/RunnersListNamesResponse.d.ts +0 -14
  192. package/types/serialization/types/RunnersListResponse.d.ts +0 -15
  193. /package/types/api/resources/{envoys → authTokens}/index.d.ts +0 -0
  194. /package/types/api/resources/{envoys → pools}/client/index.d.ts +0 -0
  195. /package/types/api/resources/{health → pools}/index.d.ts +0 -0
@@ -1,21 +1,13 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as serializers from "../index";
5
2
  import * as Rivet from "../../api/index";
6
3
  import * as core from "../../core";
4
+ import { ActorName } from "./ActorName";
7
5
  export declare const MetadataGetResponse: core.serialization.ObjectSchema<serializers.MetadataGetResponse.Raw, Rivet.MetadataGetResponse>;
8
6
  export declare namespace MetadataGetResponse {
9
7
  interface Raw {
10
- build_timestamp: string;
11
- cargo_profile: string;
12
- cargo_target: string;
13
- envoy_protocol_version: number;
14
- epoxy_protocol_version: number;
15
- git_sha: string;
16
- runtime: string;
17
- rustc_host: string;
18
- rustc_version: string;
8
+ runtime: "engine";
19
9
  version: string;
10
+ envoyProtocolVersion: number;
11
+ actorNames?: Record<string, ActorName.Raw> | null;
20
12
  }
21
13
  }
@@ -1,16 +1,10 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as serializers from "../index";
5
2
  import * as Rivet from "../../api/index";
6
3
  import * as core from "../../core";
7
- import { RivetId } from "./RivetId";
8
4
  export declare const Namespace: core.serialization.ObjectSchema<serializers.Namespace.Raw, Rivet.Namespace>;
9
5
  export declare namespace Namespace {
10
6
  interface Raw {
11
- create_ts: number;
12
- display_name: string;
13
7
  name: string;
14
- namespace_id: RivetId.Raw;
8
+ create_ts: number;
15
9
  }
16
10
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as serializers from "../index";
5
2
  import * as Rivet from "../../api/index";
6
3
  import * as core from "../../core";
@@ -9,7 +6,7 @@ import { Pagination } from "./Pagination";
9
6
  export declare const NamespaceListResponse: core.serialization.ObjectSchema<serializers.NamespaceListResponse.Raw, Rivet.NamespaceListResponse>;
10
7
  export declare namespace NamespaceListResponse {
11
8
  interface Raw {
12
- namespaces: Namespace.Raw[];
9
+ namespaces: (Namespace.Raw)[];
13
10
  pagination: Pagination.Raw;
14
11
  }
15
12
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as serializers from "../index";
5
2
  import * as Rivet from "../../api/index";
6
3
  import * as core from "../../core";
@@ -0,0 +1,16 @@
1
+ import * as serializers from "../index";
2
+ import * as Rivet from "../../api/index";
3
+ import * as core from "../../core";
4
+ export declare const Node: core.serialization.ObjectSchema<serializers.Node.Raw, Rivet.Node>;
5
+ export declare namespace Node {
6
+ interface Raw {
7
+ key: string;
8
+ pool: string;
9
+ namespace: string;
10
+ datacenter: string;
11
+ create_ts: number;
12
+ last_ping_ts: number;
13
+ connected: boolean;
14
+ stopping: boolean;
15
+ }
16
+ }
@@ -1,12 +1,9 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as serializers from "../index";
5
2
  import * as Rivet from "../../api/index";
6
3
  import * as core from "../../core";
7
4
  export declare const Pagination: core.serialization.ObjectSchema<serializers.Pagination.Raw, Rivet.Pagination>;
8
5
  export declare namespace Pagination {
9
6
  interface Raw {
10
- cursor?: string | null;
7
+ cursor: string | null;
11
8
  }
12
9
  }
@@ -0,0 +1,14 @@
1
+ import * as serializers from "../index";
2
+ import * as Rivet from "../../api/index";
3
+ import * as core from "../../core";
4
+ export declare const Pool: core.serialization.ObjectSchema<serializers.Pool.Raw, Rivet.Pool>;
5
+ export declare namespace Pool {
6
+ interface Raw {
7
+ name: string;
8
+ drain_on_version_upgrade: boolean;
9
+ actor_eviction_delay: number;
10
+ actor_eviction_period: number;
11
+ actor_eviction_rate: number;
12
+ metadata: unknown;
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ import * as serializers from "../index";
2
+ import * as Rivet from "../../api/index";
3
+ import * as core from "../../core";
4
+ import { Pool } from "./Pool";
5
+ export declare const PoolResponse: core.serialization.ObjectSchema<serializers.PoolResponse.Raw, Rivet.PoolResponse>;
6
+ export declare namespace PoolResponse {
7
+ interface Raw {
8
+ pool: Pool.Raw;
9
+ }
10
+ }
@@ -0,0 +1,7 @@
1
+ import * as serializers from "../index";
2
+ import * as Rivet from "../../api/index";
3
+ import * as core from "../../core";
4
+ export declare const PoolsDeleteResponse: core.serialization.Schema<serializers.PoolsDeleteResponse.Raw, Rivet.PoolsDeleteResponse>;
5
+ export declare namespace PoolsDeleteResponse {
6
+ type Raw = Record<string, never>;
7
+ }
@@ -0,0 +1,12 @@
1
+ import * as serializers from "../index";
2
+ import * as Rivet from "../../api/index";
3
+ import * as core from "../../core";
4
+ import { Node } from "./Node";
5
+ import { Pagination } from "./Pagination";
6
+ export declare const PoolsListNodesResponse: core.serialization.ObjectSchema<serializers.PoolsListNodesResponse.Raw, Rivet.PoolsListNodesResponse>;
7
+ export declare namespace PoolsListNodesResponse {
8
+ interface Raw {
9
+ nodes: (Node.Raw)[];
10
+ pagination: Pagination.Raw;
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import * as serializers from "../index";
2
+ import * as Rivet from "../../api/index";
3
+ import * as core from "../../core";
4
+ import { Pagination } from "./Pagination";
5
+ import { Pool } from "./Pool";
6
+ export declare const PoolsListResponse: core.serialization.ObjectSchema<serializers.PoolsListResponse.Raw, Rivet.PoolsListResponse>;
7
+ export declare namespace PoolsListResponse {
8
+ interface Raw {
9
+ pagination: Pagination.Raw;
10
+ pools: (Pool.Raw)[];
11
+ }
12
+ }
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as serializers from "../index";
5
2
  import * as Rivet from "../../api/index";
6
3
  import * as core from "../../core";
@@ -3,50 +3,29 @@ export * from "./ActorName";
3
3
  export * from "./ActorsCreateResponse";
4
4
  export * from "./ActorsDeleteResponse";
5
5
  export * from "./ActorsGetOrCreateResponse";
6
- export * from "./ActorsKvGetResponse";
6
+ export * from "./ActorsGetResponse";
7
7
  export * from "./ActorsListNamesResponse";
8
8
  export * from "./ActorsListResponse";
9
- export * from "./ActorsRescheduleRequestBody";
10
9
  export * from "./ActorsRescheduleResponse";
11
- export * from "./ActorsSleepRequestBody";
12
10
  export * from "./ActorsSleepResponse";
13
- export * from "./CrashPolicy";
11
+ export * from "./AuthOperationKind";
12
+ export * from "./AuthResourceKind";
13
+ export * from "./AuthTargetScope";
14
+ export * from "./AuthTokenCreateResponse";
15
+ export * from "./AuthTokenGrant";
16
+ export * from "./AuthTokenInspectResponse";
14
17
  export * from "./Datacenter";
15
- export * from "./DatacenterHealth";
16
18
  export * from "./DatacentersListResponse";
17
- export * from "./Envoy";
18
- export * from "./EnvoysListResponse";
19
- export * from "./HealthFanoutResponse";
20
- export * from "./HealthResponse";
21
- export * from "./HealthStatus";
19
+ export * from "./ErrorResponse";
22
20
  export * from "./MetadataGetResponse";
23
21
  export * from "./Namespace";
24
22
  export * from "./NamespaceListResponse";
25
23
  export * from "./NamespacesCreateResponse";
24
+ export * from "./Node";
26
25
  export * from "./Pagination";
26
+ export * from "./Pool";
27
+ export * from "./PoolResponse";
28
+ export * from "./PoolsDeleteResponse";
29
+ export * from "./PoolsListNodesResponse";
30
+ export * from "./PoolsListResponse";
27
31
  export * from "./RivetId";
28
- export * from "./Runner";
29
- export * from "./RunnerConfigNormal";
30
- export * from "./RunnerConfigServerless";
31
- export * from "./RunnerConfig";
32
- export * from "./RunnerConfigKindNormalNormal";
33
- export * from "./RunnerConfigKindNormal";
34
- export * from "./RunnerConfigKindServerlessServerless";
35
- export * from "./RunnerConfigKindServerless";
36
- export * from "./RunnerConfigKind";
37
- export * from "./RunnerConfigResponse";
38
- export * from "./RunnerConfigVariant";
39
- export * from "./RunnerConfigsDeleteResponse";
40
- export * from "./RunnerConfigsListResponse";
41
- export * from "./RunnerConfigsListResponseRunnerConfigsValue";
42
- export * from "./RunnerConfigsRefreshMetadataRequestBody";
43
- export * from "./RunnerConfigsRefreshMetadataResponse";
44
- export * from "./RunnerConfigsServerlessHealthCheckResponseSuccessSuccess";
45
- export * from "./RunnerConfigsServerlessHealthCheckResponseSuccess";
46
- export * from "./RunnerConfigsServerlessHealthCheckResponseFailureFailure";
47
- export * from "./RunnerConfigsServerlessHealthCheckResponseFailure";
48
- export * from "./RunnerConfigsServerlessHealthCheckResponse";
49
- export * from "./RunnerConfigsServerlessMetadataError";
50
- export * from "./RunnerConfigsUpsertResponse";
51
- export * from "./RunnersListNamesResponse";
52
- export * from "./RunnersListResponse";
@@ -1,12 +0,0 @@
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 ActorsKvGetRequest {
11
- namespace: string;
12
- }
@@ -1,12 +0,0 @@
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 RunnerConfigsDeleteRequest {
11
- namespace: string;
12
- }
@@ -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
- /**
6
- * @example
7
- * {
8
- * namespace: "namespace"
9
- * }
10
- */
11
- export interface RunnerConfigsListRequest {
12
- namespace: string;
13
- limit?: number;
14
- cursor?: string;
15
- variant?: Rivet.RunnerConfigVariant;
16
- /**
17
- * Deprecated.
18
- */
19
- runnerNames?: string;
20
- runnerName?: string | string[];
21
- }
@@ -1,17 +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
- * body: {
10
- * "key": "value"
11
- * }
12
- * }
13
- */
14
- export interface RunnerConfigsRefreshMetadataRequest {
15
- namespace: string;
16
- body: Rivet.RunnerConfigsRefreshMetadataRequestBody;
17
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * namespace: "namespace",
8
- * url: "url"
9
- * }
10
- */
11
- export interface RunnerConfigsServerlessHealthCheckRequest {
12
- namespace: string;
13
- headers?: Record<string, string>;
14
- url: string;
15
- }
@@ -1,17 +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
- * datacenters: {
10
- * "key": {}
11
- * }
12
- * }
13
- */
14
- export interface RunnerConfigsUpsertRequestBody {
15
- namespace: string;
16
- datacenters: Record<string, Rivet.RunnerConfig>;
17
- }
@@ -1,39 +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 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
- }
@@ -1 +0,0 @@
1
- export { type EnvoysListRequest } from "./EnvoysListRequest";
@@ -1 +0,0 @@
1
- export {};
@@ -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,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 HealthFanoutResponse {
6
- datacenters: Rivet.DatacenterHealth[];
7
- }
@@ -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,11 +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?: Rivet.RunnerConfigNormal;
7
- serverless?: Rivet.RunnerConfigServerless;
8
- /** Deprecated. */
9
- drainOnVersionUpgrade?: boolean;
10
- metadata?: unknown;
11
- }
@@ -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,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 RunnerConfigKindNormal {
6
- normal: Rivet.RunnerConfigKindNormalNormal;
7
- }
@@ -1,12 +0,0 @@
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
- }
@@ -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
- }