@rivetkit/engine-api-full 0.0.0-sqlite-sync-3-0-1-final.5663d2f → 0.0.0-sqlite-query-metrics-2-3-32.5bb1917

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/dist/browser/cjs/index.js +1081 -327
  2. package/dist/browser/cjs/serialization.js +379 -94
  3. package/dist/browser/esm/index.js +1081 -327
  4. package/dist/browser/esm/serialization.js +379 -94
  5. package/dist/node/cjs/index.js +1081 -327
  6. package/dist/node/cjs/serialization.js +421 -104
  7. package/dist/node/esm/index.js +1081 -327
  8. package/dist/node/esm/serialization.js +379 -94
  9. package/package.json +1 -2
  10. package/types/Client.d.ts +91 -7
  11. package/types/api/client/requests/ActorsCreateRequest.d.ts +7 -3
  12. package/types/api/client/requests/ActorsDeleteRequest.d.ts +1 -1
  13. package/types/api/client/requests/ActorsGetOrCreateRequest.d.ts +8 -4
  14. package/types/api/client/requests/ActorsKvGetRequest.d.ts +12 -0
  15. package/types/api/client/requests/ActorsListNamesRequest.d.ts +1 -1
  16. package/types/api/client/requests/ActorsListRequest.d.ts +5 -2
  17. package/types/api/client/requests/ActorsRescheduleRequest.d.ts +5 -1
  18. package/types/api/client/requests/ActorsSleepRequest.d.ts +5 -1
  19. package/types/api/client/requests/RunnerConfigsDeleteRequest.d.ts +12 -0
  20. package/types/api/client/requests/RunnerConfigsListRequest.d.ts +21 -0
  21. package/types/api/client/requests/RunnerConfigsRefreshMetadataRequest.d.ts +17 -0
  22. package/types/api/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +15 -0
  23. package/types/api/client/requests/RunnerConfigsUpsertRequestBody.d.ts +17 -0
  24. package/types/api/client/requests/index.d.ts +6 -1
  25. package/types/api/resources/authTokens/client/Client.d.ts +20 -0
  26. package/types/api/resources/authTokens/client/index.d.ts +0 -1
  27. package/types/api/resources/authTokens/client/requests/AuthTokenCreateRequest.d.ts +1 -5
  28. package/types/api/resources/envoys/client/Client.d.ts +39 -0
  29. package/types/api/resources/{pools/client/requests/PoolsListRequest.d.ts → envoys/client/requests/EnvoysListRequest.d.ts} +4 -2
  30. package/types/api/resources/envoys/client/requests/index.d.ts +1 -0
  31. package/types/api/resources/health/client/Client.d.ts +36 -0
  32. package/types/api/resources/health/client/index.d.ts +1 -0
  33. package/types/api/resources/health/index.d.ts +1 -0
  34. package/types/api/resources/index.d.ts +5 -2
  35. package/types/api/resources/namespaces/client/Client.d.ts +1 -0
  36. package/types/api/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +2 -0
  37. package/types/api/resources/namespaces/client/requests/NamespacesListRequest.d.ts +6 -0
  38. package/types/api/resources/runners/client/Client.d.ts +54 -0
  39. package/types/api/resources/runners/client/index.d.ts +1 -0
  40. package/types/api/resources/{pools/client/requests/PoolsListNodesRequest.d.ts → runners/client/requests/RunnersListNamesRequest.d.ts} +2 -2
  41. package/types/api/resources/runners/client/requests/RunnersListRequest.d.ts +22 -0
  42. package/types/api/resources/runners/client/requests/index.d.ts +2 -0
  43. package/types/api/resources/runners/index.d.ts +1 -0
  44. package/types/api/types/Actor.d.ts +27 -21
  45. package/types/api/types/ActorName.d.ts +3 -1
  46. package/types/api/types/ActorsCreateResponse.d.ts +3 -2
  47. package/types/api/types/ActorsDeleteResponse.d.ts +4 -1
  48. package/types/api/types/ActorsGetOrCreateResponse.d.ts +3 -1
  49. package/types/api/types/ActorsKvGetResponse.d.ts +7 -0
  50. package/types/api/types/ActorsListNamesResponse.d.ts +4 -1
  51. package/types/api/types/ActorsListResponse.d.ts +4 -1
  52. package/types/api/types/ActorsRescheduleRequestBody.d.ts +4 -0
  53. package/types/api/types/ActorsRescheduleResponse.d.ts +4 -1
  54. package/types/api/types/ActorsSleepRequestBody.d.ts +4 -0
  55. package/types/api/types/ActorsSleepResponse.d.ts +4 -1
  56. package/types/api/types/AuthOperationKind.d.ts +10 -0
  57. package/types/api/types/AuthTokenCreateResponse.d.ts +5 -5
  58. package/types/api/types/AuthTokenGrant.d.ts +6 -4
  59. package/types/api/types/AuthTokenInspectResponse.d.ts +7 -9
  60. package/types/api/types/AuthTokenResource.d.ts +13 -0
  61. package/types/api/types/AuthTokenTargetScope.d.ts +5 -0
  62. package/types/api/types/AuthTokenTargetScopeId.d.ts +7 -0
  63. package/types/api/types/CrashPolicy.d.ts +9 -0
  64. package/types/api/types/Datacenter.d.ts +5 -1
  65. package/types/api/types/DatacenterHealth.d.ts +12 -0
  66. package/types/api/types/DatacentersListResponse.d.ts +5 -1
  67. package/types/api/types/Envoy.d.ts +18 -0
  68. package/types/api/types/EnvoysListResponse.d.ts +8 -0
  69. package/types/api/types/HealthFanoutResponse.d.ts +7 -0
  70. package/types/api/types/HealthResponse.d.ts +8 -0
  71. package/types/api/types/HealthStatus.d.ts +8 -0
  72. package/types/api/types/MetadataGetResponse.d.ts +12 -8
  73. package/types/api/types/Namespace.d.ts +7 -3
  74. package/types/api/types/NamespaceListResponse.d.ts +4 -1
  75. package/types/api/types/NamespacesCreateResponse.d.ts +3 -0
  76. package/types/api/types/Pagination.d.ts +4 -2
  77. package/types/api/types/RivetId.d.ts +3 -0
  78. package/types/api/types/Runner.d.ts +21 -0
  79. package/types/api/types/RunnerConfig.d.ts +11 -0
  80. package/types/api/types/RunnerConfigKind.d.ts +5 -0
  81. package/types/api/types/RunnerConfigKindNormal.d.ts +7 -0
  82. package/types/api/types/RunnerConfigKindNormalNormal.d.ts +12 -0
  83. package/types/api/types/RunnerConfigKindServerless.d.ts +7 -0
  84. package/types/api/types/RunnerConfigKindServerlessServerless.d.ts +29 -0
  85. package/types/api/types/RunnerConfigNormal.d.ts +12 -0
  86. package/types/api/types/RunnerConfigResponse.d.ts +8 -0
  87. package/types/api/types/RunnerConfigServerless.d.ts +29 -0
  88. package/types/api/types/RunnerConfigVariant.d.ts +8 -0
  89. package/types/api/types/RunnerConfigsDeleteResponse.d.ts +4 -0
  90. package/types/api/types/RunnerConfigsListResponse.d.ts +8 -0
  91. package/types/api/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +7 -0
  92. package/types/api/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +4 -0
  93. package/types/api/types/RunnerConfigsRefreshMetadataResponse.d.ts +4 -0
  94. package/types/api/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +5 -0
  95. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +7 -0
  96. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +7 -0
  97. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +7 -0
  98. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +6 -0
  99. package/types/api/types/RunnerConfigsServerlessMetadataError.d.ts +16 -0
  100. package/types/api/types/RunnerConfigsUpsertResponse.d.ts +6 -0
  101. package/types/api/types/RunnersListNamesResponse.d.ts +8 -0
  102. package/types/api/types/RunnersListResponse.d.ts +8 -0
  103. package/types/api/types/index.d.ts +38 -10
  104. package/types/serialization/client/requests/ActorsCreateRequest.d.ts +4 -1
  105. package/types/serialization/client/requests/ActorsGetOrCreateRequest.d.ts +5 -2
  106. package/types/serialization/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +13 -0
  107. package/types/serialization/client/requests/RunnerConfigsUpsertRequestBody.d.ts +13 -0
  108. package/types/serialization/client/requests/index.d.ts +2 -0
  109. package/types/serialization/resources/authTokens/client/index.d.ts +1 -0
  110. package/types/serialization/resources/authTokens/client/requests/AuthTokenCreateRequest.d.ts +16 -0
  111. package/types/serialization/resources/authTokens/client/requests/index.d.ts +1 -0
  112. package/types/serialization/resources/authTokens/index.d.ts +1 -0
  113. package/types/serialization/resources/index.d.ts +2 -0
  114. package/types/serialization/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +1 -0
  115. package/types/serialization/types/Actor.d.ts +17 -10
  116. package/types/serialization/types/ActorName.d.ts +3 -0
  117. package/types/serialization/types/ActorsCreateResponse.d.ts +3 -1
  118. package/types/serialization/types/ActorsDeleteResponse.d.ts +4 -1
  119. package/types/serialization/types/ActorsGetOrCreateResponse.d.ts +3 -0
  120. package/types/serialization/types/ActorsKvGetResponse.d.ts +13 -0
  121. package/types/serialization/types/ActorsListNamesResponse.d.ts +5 -0
  122. package/types/serialization/types/ActorsListResponse.d.ts +4 -1
  123. package/types/serialization/types/ActorsRescheduleRequestBody.d.ts +10 -0
  124. package/types/serialization/types/ActorsRescheduleResponse.d.ts +4 -1
  125. package/types/serialization/types/ActorsSleepRequestBody.d.ts +10 -0
  126. package/types/serialization/types/ActorsSleepResponse.d.ts +4 -1
  127. package/types/serialization/types/AuthOperationKind.d.ts +3 -0
  128. package/types/serialization/types/AuthTokenCreateResponse.d.ts +5 -2
  129. package/types/serialization/types/AuthTokenGrant.d.ts +8 -5
  130. package/types/serialization/types/AuthTokenInspectResponse.d.ts +8 -4
  131. package/types/serialization/types/AuthTokenResource.d.ts +10 -0
  132. package/types/serialization/types/AuthTokenTargetScope.d.ts +11 -0
  133. package/types/serialization/types/AuthTokenTargetScopeId.d.ts +13 -0
  134. package/types/serialization/types/CrashPolicy.d.ts +10 -0
  135. package/types/serialization/types/Datacenter.d.ts +5 -0
  136. package/types/serialization/types/DatacenterHealth.d.ts +19 -0
  137. package/types/serialization/types/DatacentersListResponse.d.ts +6 -1
  138. package/types/serialization/types/Envoy.d.ts +24 -0
  139. package/types/serialization/types/EnvoysListResponse.d.ts +15 -0
  140. package/types/serialization/types/HealthFanoutResponse.d.ts +13 -0
  141. package/types/serialization/types/HealthResponse.d.ts +14 -0
  142. package/types/serialization/types/HealthStatus.d.ts +10 -0
  143. package/types/serialization/types/MetadataGetResponse.d.ts +12 -4
  144. package/types/serialization/types/Namespace.d.ts +7 -1
  145. package/types/serialization/types/NamespaceListResponse.d.ts +4 -1
  146. package/types/serialization/types/NamespacesCreateResponse.d.ts +3 -0
  147. package/types/serialization/types/Pagination.d.ts +4 -1
  148. package/types/serialization/types/RivetId.d.ts +3 -0
  149. package/types/serialization/types/Runner.d.ts +27 -0
  150. package/types/serialization/types/RunnerConfig.d.ts +17 -0
  151. package/types/serialization/types/RunnerConfigKind.d.ts +12 -0
  152. package/types/serialization/types/RunnerConfigKindNormal.d.ts +13 -0
  153. package/types/serialization/types/RunnerConfigKindNormalNormal.d.ts +15 -0
  154. package/types/serialization/types/RunnerConfigKindServerless.d.ts +13 -0
  155. package/types/serialization/types/RunnerConfigKindServerlessServerless.d.ts +25 -0
  156. package/types/serialization/types/RunnerConfigNormal.d.ts +15 -0
  157. package/types/serialization/types/RunnerConfigResponse.d.ts +14 -0
  158. package/types/serialization/types/RunnerConfigServerless.d.ts +25 -0
  159. package/types/serialization/types/RunnerConfigVariant.d.ts +10 -0
  160. package/types/serialization/types/RunnerConfigsDeleteResponse.d.ts +10 -0
  161. package/types/serialization/types/RunnerConfigsListResponse.d.ts +15 -0
  162. package/types/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +13 -0
  163. package/types/serialization/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +10 -0
  164. package/types/serialization/types/RunnerConfigsRefreshMetadataResponse.d.ts +10 -0
  165. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +12 -0
  166. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +13 -0
  167. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +13 -0
  168. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +13 -0
  169. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +12 -0
  170. package/types/serialization/types/RunnerConfigsServerlessMetadataError.d.ts +14 -0
  171. package/types/serialization/types/RunnerConfigsUpsertResponse.d.ts +12 -0
  172. package/types/serialization/types/RunnersListNamesResponse.d.ts +14 -0
  173. package/types/serialization/types/RunnersListResponse.d.ts +15 -0
  174. package/types/serialization/types/index.d.ts +38 -10
  175. package/types/api/client/requests/ActorsGetRequest.d.ts +0 -3
  176. package/types/api/resources/pools/client/Client.d.ts +0 -57
  177. package/types/api/resources/pools/client/requests/PoolsDeleteRequest.d.ts +0 -3
  178. package/types/api/resources/pools/client/requests/PoolsGetRequest.d.ts +0 -3
  179. package/types/api/resources/pools/client/requests/PoolsUpsertRequest.d.ts +0 -8
  180. package/types/api/resources/pools/client/requests/index.d.ts +0 -5
  181. package/types/api/types/ActorsGetResponse.d.ts +0 -4
  182. package/types/api/types/AuthResourceKind.d.ts +0 -1
  183. package/types/api/types/AuthTargetScope.d.ts +0 -4
  184. package/types/api/types/ErrorResponse.d.ts +0 -10
  185. package/types/api/types/Node.d.ts +0 -20
  186. package/types/api/types/Pool.d.ts +0 -14
  187. package/types/api/types/PoolResponse.d.ts +0 -4
  188. package/types/api/types/PoolsDeleteResponse.d.ts +0 -1
  189. package/types/api/types/PoolsListNodesResponse.d.ts +0 -5
  190. package/types/api/types/PoolsListResponse.d.ts +0 -5
  191. package/types/serialization/types/ActorsGetResponse.d.ts +0 -10
  192. package/types/serialization/types/AuthResourceKind.d.ts +0 -7
  193. package/types/serialization/types/AuthTargetScope.d.ts +0 -10
  194. package/types/serialization/types/ErrorResponse.d.ts +0 -12
  195. package/types/serialization/types/Node.d.ts +0 -17
  196. package/types/serialization/types/Pool.d.ts +0 -14
  197. package/types/serialization/types/PoolResponse.d.ts +0 -10
  198. package/types/serialization/types/PoolsDeleteResponse.d.ts +0 -7
  199. package/types/serialization/types/PoolsListNodesResponse.d.ts +0 -12
  200. package/types/serialization/types/PoolsListResponse.d.ts +0 -12
  201. /package/types/api/resources/{pools → envoys}/client/index.d.ts +0 -0
  202. /package/types/api/resources/{pools → envoys}/index.d.ts +0 -0
@@ -0,0 +1,14 @@
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 { Pagination } from "./Pagination";
8
+ export declare const RunnersListNamesResponse: core.serialization.ObjectSchema<serializers.RunnersListNamesResponse.Raw, Rivet.RunnersListNamesResponse>;
9
+ export declare namespace RunnersListNamesResponse {
10
+ interface Raw {
11
+ names: string[];
12
+ pagination: Pagination.Raw;
13
+ }
14
+ }
@@ -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 { Pagination } from "./Pagination";
8
+ import { Runner } from "./Runner";
9
+ export declare const RunnersListResponse: core.serialization.ObjectSchema<serializers.RunnersListResponse.Raw, Rivet.RunnersListResponse>;
10
+ export declare namespace RunnersListResponse {
11
+ interface Raw {
12
+ pagination: Pagination.Raw;
13
+ runners: Runner.Raw[];
14
+ }
15
+ }
@@ -3,29 +3,57 @@ export * from "./ActorName";
3
3
  export * from "./ActorsCreateResponse";
4
4
  export * from "./ActorsDeleteResponse";
5
5
  export * from "./ActorsGetOrCreateResponse";
6
- export * from "./ActorsGetResponse";
6
+ export * from "./ActorsKvGetResponse";
7
7
  export * from "./ActorsListNamesResponse";
8
8
  export * from "./ActorsListResponse";
9
+ export * from "./ActorsRescheduleRequestBody";
9
10
  export * from "./ActorsRescheduleResponse";
11
+ export * from "./ActorsSleepRequestBody";
10
12
  export * from "./ActorsSleepResponse";
11
13
  export * from "./AuthOperationKind";
12
- export * from "./AuthResourceKind";
13
- export * from "./AuthTargetScope";
14
14
  export * from "./AuthTokenCreateResponse";
15
15
  export * from "./AuthTokenGrant";
16
16
  export * from "./AuthTokenInspectResponse";
17
+ export * from "./AuthTokenResource";
18
+ export * from "./AuthTokenTargetScopeId";
19
+ export * from "./AuthTokenTargetScope";
20
+ export * from "./CrashPolicy";
17
21
  export * from "./Datacenter";
22
+ export * from "./DatacenterHealth";
18
23
  export * from "./DatacentersListResponse";
19
- export * from "./ErrorResponse";
24
+ export * from "./Envoy";
25
+ export * from "./EnvoysListResponse";
26
+ export * from "./HealthFanoutResponse";
27
+ export * from "./HealthResponse";
28
+ export * from "./HealthStatus";
20
29
  export * from "./MetadataGetResponse";
21
30
  export * from "./Namespace";
22
31
  export * from "./NamespaceListResponse";
23
32
  export * from "./NamespacesCreateResponse";
24
- export * from "./Node";
25
33
  export * from "./Pagination";
26
- export * from "./Pool";
27
- export * from "./PoolResponse";
28
- export * from "./PoolsDeleteResponse";
29
- export * from "./PoolsListNodesResponse";
30
- export * from "./PoolsListResponse";
31
34
  export * from "./RivetId";
35
+ export * from "./Runner";
36
+ export * from "./RunnerConfigNormal";
37
+ export * from "./RunnerConfigServerless";
38
+ export * from "./RunnerConfig";
39
+ export * from "./RunnerConfigKindNormalNormal";
40
+ export * from "./RunnerConfigKindNormal";
41
+ export * from "./RunnerConfigKindServerlessServerless";
42
+ export * from "./RunnerConfigKindServerless";
43
+ export * from "./RunnerConfigKind";
44
+ export * from "./RunnerConfigResponse";
45
+ export * from "./RunnerConfigVariant";
46
+ export * from "./RunnerConfigsDeleteResponse";
47
+ export * from "./RunnerConfigsListResponse";
48
+ export * from "./RunnerConfigsListResponseRunnerConfigsValue";
49
+ export * from "./RunnerConfigsRefreshMetadataRequestBody";
50
+ export * from "./RunnerConfigsRefreshMetadataResponse";
51
+ export * from "./RunnerConfigsServerlessHealthCheckResponseSuccessSuccess";
52
+ export * from "./RunnerConfigsServerlessHealthCheckResponseSuccess";
53
+ export * from "./RunnerConfigsServerlessHealthCheckResponseFailureFailure";
54
+ export * from "./RunnerConfigsServerlessHealthCheckResponseFailure";
55
+ export * from "./RunnerConfigsServerlessHealthCheckResponse";
56
+ export * from "./RunnerConfigsServerlessMetadataError";
57
+ export * from "./RunnerConfigsUpsertResponse";
58
+ export * from "./RunnersListNamesResponse";
59
+ export * from "./RunnersListResponse";
@@ -1,3 +0,0 @@
1
- export interface ActorsGetRequest {
2
- namespace?: string;
3
- }
@@ -1,57 +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 Pools {
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 Pools {
26
- protected readonly _options: Pools.Options;
27
- constructor(_options: Pools.Options);
28
- /**
29
- * Lists the namespace's pools by name. Changes apply on each node's next connection.
30
- *
31
- * @param {Rivet.PoolsListRequest} request
32
- * @param {Pools.RequestOptions} requestOptions - Request-specific configuration.
33
- *
34
- * @example
35
- * await client.pools.list({
36
- * namespace: "namespace"
37
- * })
38
- */
39
- list(request: Rivet.PoolsListRequest, requestOptions?: Pools.RequestOptions): Promise<Rivet.PoolsListResponse>;
40
- /**
41
- * Lists the live nodes of a pool in node key order.
42
- *
43
- * @param {string} pool
44
- * @param {Rivet.PoolsListNodesRequest} request
45
- * @param {Pools.RequestOptions} requestOptions - Request-specific configuration.
46
- *
47
- * @example
48
- * await client.pools.listNodes("pool", {
49
- * namespace: "namespace"
50
- * })
51
- */
52
- listNodes(pool: string, request: Rivet.PoolsListNodesRequest, requestOptions?: Pools.RequestOptions): Promise<Rivet.PoolsListNodesResponse>;
53
- get(name: string, request?: Rivet.PoolsGetRequest, requestOptions?: Pools.RequestOptions): Promise<Rivet.PoolResponse>;
54
- upsert(name: string, request: Rivet.PoolsUpsertRequest, requestOptions?: Pools.RequestOptions): Promise<Rivet.PoolResponse>;
55
- delete(name: string, request?: Rivet.PoolsDeleteRequest, requestOptions?: Pools.RequestOptions): Promise<Rivet.PoolsDeleteResponse>;
56
- protected _getAuthorizationHeader(): Promise<string>;
57
- }
@@ -1,3 +0,0 @@
1
- export interface PoolsDeleteRequest {
2
- namespace?: string;
3
- }
@@ -1,3 +0,0 @@
1
- export interface PoolsGetRequest {
2
- namespace?: string;
3
- }
@@ -1,8 +0,0 @@
1
- export interface PoolsUpsertRequest {
2
- namespace?: string;
3
- drainOnVersionUpgrade?: boolean;
4
- actorEvictionDelay?: number;
5
- actorEvictionPeriod?: number;
6
- actorEvictionRate?: number;
7
- metadata?: unknown;
8
- }
@@ -1,5 +0,0 @@
1
- export { type PoolsListRequest } from "./PoolsListRequest";
2
- export { type PoolsListNodesRequest } from "./PoolsListNodesRequest";
3
- export type { PoolsGetRequest } from "./PoolsGetRequest";
4
- export type { PoolsDeleteRequest } from "./PoolsDeleteRequest";
5
- export type { PoolsUpsertRequest } from "./PoolsUpsertRequest";
@@ -1,4 +0,0 @@
1
- import * as Rivet from "../index";
2
- export interface ActorsGetResponse {
3
- actor: Rivet.Actor;
4
- }
@@ -1 +0,0 @@
1
- export type AuthResourceKind = "namespace" | "actor" | "node" | "pool" | "datacenter" | "actor_gateway" | "actor_kv";
@@ -1,4 +0,0 @@
1
- import * as Rivet from "../index";
2
- export type AuthTargetScope = "any" | {
3
- id: Rivet.RivetId;
4
- };
@@ -1,10 +0,0 @@
1
- export interface ErrorResponse {
2
- /** Error group, for example `actor`. */
3
- group: string;
4
- /** Error code within the group, for example `not_found`. */
5
- code: string;
6
- /** Human-readable error message. */
7
- message: string;
8
- /** Extra details. Only present on some errors raised while authenticating or authorizing the request. */
9
- metadata?: unknown;
10
- }
@@ -1,20 +0,0 @@
1
- export interface Node {
2
- /** Node key, unique within the pool. */
3
- key: string;
4
- /** Name of the node pool. */
5
- pool: string;
6
- /** Name of the namespace. */
7
- namespace: string;
8
- /** Datacenter name. */
9
- datacenter: string;
10
- /** Version the node announced when it connected. New actors are placed only on nodes at the newest version with a connected node in the pool. */
11
- version: number;
12
- /** When the node connected, in Unix milliseconds. */
13
- createTs: number;
14
- /** When the node last sent a heartbeat, in Unix milliseconds. */
15
- lastPingTs: number;
16
- /** Whether the node is connected. */
17
- connected: boolean;
18
- /** Whether the node is shutting down. */
19
- stopping: boolean;
20
- }
@@ -1,14 +0,0 @@
1
- export interface Pool {
2
- /** Name of the node pool. */
3
- name: string;
4
- /** Drain nodes running an older version when a newer version connects. */
5
- drainOnVersionUpgrade: boolean;
6
- /** Seconds to wait before evicting actors from a draining node. */
7
- actorEvictionDelay: number;
8
- /** Seconds over which actors are evicted from a draining node. */
9
- actorEvictionPeriod: number;
10
- /** Rate at which actors are evicted from a draining node. Must be finite and greater than 0. */
11
- actorEvictionRate: number;
12
- /** Opaque JSON stored with the pool, or `null` when unset. */
13
- metadata: unknown;
14
- }
@@ -1,4 +0,0 @@
1
- import * as Rivet from "../index";
2
- export interface PoolResponse {
3
- pool: Rivet.Pool;
4
- }
@@ -1 +0,0 @@
1
- export type PoolsDeleteResponse = Record<string, never>;
@@ -1,5 +0,0 @@
1
- import * as Rivet from "../index";
2
- export interface PoolsListNodesResponse {
3
- nodes: (Rivet.Node)[];
4
- pagination: Rivet.Pagination;
5
- }
@@ -1,5 +0,0 @@
1
- import * as Rivet from "../index";
2
- export interface PoolsListResponse {
3
- pagination: Rivet.Pagination;
4
- pools: (Rivet.Pool)[];
5
- }
@@ -1,10 +0,0 @@
1
- import * as serializers from "../index";
2
- import * as Rivet from "../../api/index";
3
- import * as core from "../../core";
4
- import { Actor } from "./Actor";
5
- export declare const ActorsGetResponse: core.serialization.ObjectSchema<serializers.ActorsGetResponse.Raw, Rivet.ActorsGetResponse>;
6
- export declare namespace ActorsGetResponse {
7
- interface Raw {
8
- actor: Actor.Raw;
9
- }
10
- }
@@ -1,7 +0,0 @@
1
- import * as serializers from "../index";
2
- import * as Rivet from "../../api/index";
3
- import * as core from "../../core";
4
- export declare const AuthResourceKind: core.serialization.Schema<serializers.AuthResourceKind.Raw, Rivet.AuthResourceKind>;
5
- export declare namespace AuthResourceKind {
6
- type Raw = "namespace" | "actor" | "node" | "pool" | "datacenter" | "actor_gateway" | "actor_kv";
7
- }
@@ -1,10 +0,0 @@
1
- import * as serializers from "../index";
2
- import * as Rivet from "../../api/index";
3
- import * as core from "../../core";
4
- import { RivetId } from "./RivetId";
5
- export declare const AuthTargetScope: core.serialization.Schema<serializers.AuthTargetScope.Raw, Rivet.AuthTargetScope>;
6
- export declare namespace AuthTargetScope {
7
- type Raw = "any" | {
8
- id: RivetId.Raw;
9
- };
10
- }
@@ -1,12 +0,0 @@
1
- import * as serializers from "../index";
2
- import * as Rivet from "../../api/index";
3
- import * as core from "../../core";
4
- export declare const ErrorResponse: core.serialization.ObjectSchema<serializers.ErrorResponse.Raw, Rivet.ErrorResponse>;
5
- export declare namespace ErrorResponse {
6
- interface Raw {
7
- group: string;
8
- code: string;
9
- message: string;
10
- metadata?: unknown;
11
- }
12
- }
@@ -1,17 +0,0 @@
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
- version: number;
12
- create_ts: number;
13
- last_ping_ts: number;
14
- connected: boolean;
15
- stopping: boolean;
16
- }
17
- }
@@ -1,14 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }