@rivetkit/engine-api-full 0.0.0-main.d6a0ba8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/dist/browser/cjs/core.js +2338 -0
  2. package/dist/browser/cjs/index.js +4514 -0
  3. package/dist/browser/cjs/serialization.js +1995 -0
  4. package/dist/browser/esm/core.js +2312 -0
  5. package/dist/browser/esm/index.js +4488 -0
  6. package/dist/browser/esm/serialization.js +1968 -0
  7. package/dist/node/cjs/core.js +2353 -0
  8. package/dist/node/cjs/index.js +4527 -0
  9. package/dist/node/cjs/serialization.js +2064 -0
  10. package/dist/node/esm/core.js +2317 -0
  11. package/dist/node/esm/index.js +4493 -0
  12. package/dist/node/esm/serialization.js +1969 -0
  13. package/package.json +68 -0
  14. package/types/Client.d.ts +281 -0
  15. package/types/api/client/index.d.ts +1 -0
  16. package/types/api/client/requests/ActorsCreateRequest.d.ts +23 -0
  17. package/types/api/client/requests/ActorsDeleteRequest.d.ts +12 -0
  18. package/types/api/client/requests/ActorsGetOrCreateRequest.d.ts +23 -0
  19. package/types/api/client/requests/ActorsKvGetRequest.d.ts +12 -0
  20. package/types/api/client/requests/ActorsListNamesRequest.d.ts +14 -0
  21. package/types/api/client/requests/ActorsListRequest.d.ts +23 -0
  22. package/types/api/client/requests/ActorsRescheduleRequest.d.ts +17 -0
  23. package/types/api/client/requests/ActorsSleepRequest.d.ts +17 -0
  24. package/types/api/client/requests/RunnerConfigsDeleteRequest.d.ts +12 -0
  25. package/types/api/client/requests/RunnerConfigsListRequest.d.ts +21 -0
  26. package/types/api/client/requests/RunnerConfigsRefreshMetadataRequest.d.ts +17 -0
  27. package/types/api/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +15 -0
  28. package/types/api/client/requests/RunnerConfigsUpsertRequestBody.d.ts +17 -0
  29. package/types/api/client/requests/index.d.ts +13 -0
  30. package/types/api/index.d.ts +3 -0
  31. package/types/api/resources/datacenters/client/Client.d.ts +36 -0
  32. package/types/api/resources/datacenters/client/index.d.ts +1 -0
  33. package/types/api/resources/datacenters/index.d.ts +1 -0
  34. package/types/api/resources/envoys/client/Client.d.ts +39 -0
  35. package/types/api/resources/envoys/client/index.d.ts +1 -0
  36. package/types/api/resources/envoys/client/requests/EnvoysListRequest.d.ts +16 -0
  37. package/types/api/resources/envoys/client/requests/index.d.ts +1 -0
  38. package/types/api/resources/envoys/index.d.ts +1 -0
  39. package/types/api/resources/health/client/Client.d.ts +36 -0
  40. package/types/api/resources/health/client/index.d.ts +1 -0
  41. package/types/api/resources/health/index.d.ts +1 -0
  42. package/types/api/resources/index.d.ts +9 -0
  43. package/types/api/resources/metadata/client/Client.d.ts +36 -0
  44. package/types/api/resources/metadata/client/index.d.ts +1 -0
  45. package/types/api/resources/metadata/index.d.ts +1 -0
  46. package/types/api/resources/namespaces/client/Client.d.ts +48 -0
  47. package/types/api/resources/namespaces/client/index.d.ts +1 -0
  48. package/types/api/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +14 -0
  49. package/types/api/resources/namespaces/client/requests/NamespacesListRequest.d.ts +18 -0
  50. package/types/api/resources/namespaces/client/requests/index.d.ts +2 -0
  51. package/types/api/resources/namespaces/index.d.ts +1 -0
  52. package/types/api/resources/runners/client/Client.d.ts +54 -0
  53. package/types/api/resources/runners/client/index.d.ts +1 -0
  54. package/types/api/resources/runners/client/requests/RunnersListNamesRequest.d.ts +14 -0
  55. package/types/api/resources/runners/client/requests/RunnersListRequest.d.ts +22 -0
  56. package/types/api/resources/runners/client/requests/index.d.ts +2 -0
  57. package/types/api/resources/runners/index.d.ts +1 -0
  58. package/types/api/types/Actor.d.ts +32 -0
  59. package/types/api/types/ActorName.d.ts +6 -0
  60. package/types/api/types/ActorsCreateResponse.d.ts +7 -0
  61. package/types/api/types/ActorsDeleteResponse.d.ts +4 -0
  62. package/types/api/types/ActorsGetOrCreateResponse.d.ts +8 -0
  63. package/types/api/types/ActorsKvGetResponse.d.ts +7 -0
  64. package/types/api/types/ActorsListNamesResponse.d.ts +8 -0
  65. package/types/api/types/ActorsListResponse.d.ts +8 -0
  66. package/types/api/types/ActorsRescheduleRequestBody.d.ts +4 -0
  67. package/types/api/types/ActorsRescheduleResponse.d.ts +4 -0
  68. package/types/api/types/ActorsSleepRequestBody.d.ts +4 -0
  69. package/types/api/types/ActorsSleepResponse.d.ts +4 -0
  70. package/types/api/types/CrashPolicy.d.ts +9 -0
  71. package/types/api/types/Datacenter.d.ts +8 -0
  72. package/types/api/types/DatacenterHealth.d.ts +12 -0
  73. package/types/api/types/DatacentersListResponse.d.ts +8 -0
  74. package/types/api/types/Envoy.d.ts +18 -0
  75. package/types/api/types/EnvoysListResponse.d.ts +8 -0
  76. package/types/api/types/HealthFanoutResponse.d.ts +7 -0
  77. package/types/api/types/HealthResponse.d.ts +8 -0
  78. package/types/api/types/HealthStatus.d.ts +8 -0
  79. package/types/api/types/MetadataGetResponse.d.ts +13 -0
  80. package/types/api/types/Namespace.d.ts +10 -0
  81. package/types/api/types/NamespaceListResponse.d.ts +8 -0
  82. package/types/api/types/NamespacesCreateResponse.d.ts +7 -0
  83. package/types/api/types/Pagination.d.ts +6 -0
  84. package/types/api/types/RivetId.d.ts +4 -0
  85. package/types/api/types/Runner.d.ts +21 -0
  86. package/types/api/types/RunnerConfig.d.ts +10 -0
  87. package/types/api/types/RunnerConfigKind.d.ts +5 -0
  88. package/types/api/types/RunnerConfigKindNormal.d.ts +6 -0
  89. package/types/api/types/RunnerConfigKindServerless.d.ts +7 -0
  90. package/types/api/types/RunnerConfigKindServerlessServerless.d.ts +16 -0
  91. package/types/api/types/RunnerConfigResponse.d.ts +7 -0
  92. package/types/api/types/RunnerConfigServerless.d.ts +16 -0
  93. package/types/api/types/RunnerConfigVariant.d.ts +8 -0
  94. package/types/api/types/RunnerConfigsDeleteResponse.d.ts +4 -0
  95. package/types/api/types/RunnerConfigsListResponse.d.ts +8 -0
  96. package/types/api/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +7 -0
  97. package/types/api/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +4 -0
  98. package/types/api/types/RunnerConfigsRefreshMetadataResponse.d.ts +4 -0
  99. package/types/api/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +5 -0
  100. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +7 -0
  101. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +7 -0
  102. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +7 -0
  103. package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +6 -0
  104. package/types/api/types/RunnerConfigsServerlessMetadataError.d.ts +5 -0
  105. package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidRequest.d.ts +6 -0
  106. package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJson.d.ts +7 -0
  107. package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJsonInvalidResponseJson.d.ts +6 -0
  108. package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchema.d.ts +7 -0
  109. package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchemaInvalidResponseSchema.d.ts +7 -0
  110. package/types/api/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatus.d.ts +7 -0
  111. package/types/api/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatusNonSuccessStatus.d.ts +7 -0
  112. package/types/api/types/RunnerConfigsServerlessMetadataErrorRequestFailed.d.ts +6 -0
  113. package/types/api/types/RunnerConfigsServerlessMetadataErrorRequestTimedOut.d.ts +6 -0
  114. package/types/api/types/RunnerConfigsUpsertResponse.d.ts +6 -0
  115. package/types/api/types/RunnersListNamesResponse.d.ts +8 -0
  116. package/types/api/types/RunnersListResponse.d.ts +8 -0
  117. package/types/api/types/index.d.ts +59 -0
  118. package/types/core/auth/BasicAuth.d.ts +8 -0
  119. package/types/core/auth/BearerToken.d.ts +5 -0
  120. package/types/core/auth/index.d.ts +2 -0
  121. package/types/core/fetcher/APIResponse.d.ts +10 -0
  122. package/types/core/fetcher/Fetcher.d.ts +39 -0
  123. package/types/core/fetcher/Supplier.d.ts +4 -0
  124. package/types/core/fetcher/createRequestUrl.d.ts +1 -0
  125. package/types/core/fetcher/getFetchFn.d.ts +4 -0
  126. package/types/core/fetcher/getHeader.d.ts +1 -0
  127. package/types/core/fetcher/getRequestBody.d.ts +7 -0
  128. package/types/core/fetcher/getResponseBody.d.ts +1 -0
  129. package/types/core/fetcher/index.d.ts +5 -0
  130. package/types/core/fetcher/makeRequest.d.ts +1 -0
  131. package/types/core/fetcher/requestWithRetries.d.ts +1 -0
  132. package/types/core/fetcher/signals.d.ts +11 -0
  133. package/types/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  134. package/types/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
  135. package/types/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  136. package/types/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  137. package/types/core/index.d.ts +4 -0
  138. package/types/core/json.d.ts +15 -0
  139. package/types/core/runtime/index.d.ts +1 -0
  140. package/types/core/runtime/runtime.d.ts +9 -0
  141. package/types/core/schemas/Schema.d.ts +87 -0
  142. package/types/core/schemas/builders/bigint/bigint.d.ts +2 -0
  143. package/types/core/schemas/builders/bigint/index.d.ts +1 -0
  144. package/types/core/schemas/builders/date/date.d.ts +2 -0
  145. package/types/core/schemas/builders/date/index.d.ts +1 -0
  146. package/types/core/schemas/builders/enum/enum.d.ts +2 -0
  147. package/types/core/schemas/builders/enum/index.d.ts +1 -0
  148. package/types/core/schemas/builders/index.d.ts +14 -0
  149. package/types/core/schemas/builders/lazy/index.d.ts +3 -0
  150. package/types/core/schemas/builders/lazy/lazy.d.ts +5 -0
  151. package/types/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
  152. package/types/core/schemas/builders/list/index.d.ts +1 -0
  153. package/types/core/schemas/builders/list/list.d.ts +2 -0
  154. package/types/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  155. package/types/core/schemas/builders/literals/index.d.ts +2 -0
  156. package/types/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  157. package/types/core/schemas/builders/object/index.d.ts +6 -0
  158. package/types/core/schemas/builders/object/object.d.ts +3 -0
  159. package/types/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  160. package/types/core/schemas/builders/object/property.d.ts +8 -0
  161. package/types/core/schemas/builders/object/types.d.ts +31 -0
  162. package/types/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  163. package/types/core/schemas/builders/object-like/index.d.ts +2 -0
  164. package/types/core/schemas/builders/object-like/types.d.ts +7 -0
  165. package/types/core/schemas/builders/primitives/any.d.ts +1 -0
  166. package/types/core/schemas/builders/primitives/boolean.d.ts +1 -0
  167. package/types/core/schemas/builders/primitives/index.d.ts +5 -0
  168. package/types/core/schemas/builders/primitives/number.d.ts +1 -0
  169. package/types/core/schemas/builders/primitives/string.d.ts +1 -0
  170. package/types/core/schemas/builders/primitives/unknown.d.ts +1 -0
  171. package/types/core/schemas/builders/record/index.d.ts +2 -0
  172. package/types/core/schemas/builders/record/record.d.ts +3 -0
  173. package/types/core/schemas/builders/record/types.d.ts +4 -0
  174. package/types/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  175. package/types/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  176. package/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +21 -0
  177. package/types/core/schemas/builders/schema-utils/index.d.ts +4 -0
  178. package/types/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  179. package/types/core/schemas/builders/set/index.d.ts +1 -0
  180. package/types/core/schemas/builders/set/set.d.ts +2 -0
  181. package/types/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  182. package/types/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  183. package/types/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  184. package/types/core/schemas/builders/union/discriminant.d.ts +5 -0
  185. package/types/core/schemas/builders/union/index.d.ts +4 -0
  186. package/types/core/schemas/builders/union/types.d.ts +13 -0
  187. package/types/core/schemas/builders/union/union.d.ts +4 -0
  188. package/types/core/schemas/index.d.ts +2 -0
  189. package/types/core/schemas/utils/MaybePromise.d.ts +1 -0
  190. package/types/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  191. package/types/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  192. package/types/core/schemas/utils/entries.d.ts +1 -0
  193. package/types/core/schemas/utils/filterObject.d.ts +1 -0
  194. package/types/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  195. package/types/core/schemas/utils/isPlainObject.d.ts +1 -0
  196. package/types/core/schemas/utils/keys.d.ts +1 -0
  197. package/types/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  198. package/types/core/schemas/utils/partition.d.ts +1 -0
  199. package/types/errors/RivetError.d.ts +12 -0
  200. package/types/errors/RivetTimeoutError.d.ts +6 -0
  201. package/types/errors/index.d.ts +2 -0
  202. package/types/index.d.ts +4 -0
  203. package/types/serialization/client/index.d.ts +1 -0
  204. package/types/serialization/client/requests/ActorsCreateRequest.d.ts +18 -0
  205. package/types/serialization/client/requests/ActorsGetOrCreateRequest.d.ts +18 -0
  206. package/types/serialization/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +13 -0
  207. package/types/serialization/client/requests/RunnerConfigsUpsertRequestBody.d.ts +13 -0
  208. package/types/serialization/client/requests/index.d.ts +4 -0
  209. package/types/serialization/index.d.ts +3 -0
  210. package/types/serialization/resources/index.d.ts +2 -0
  211. package/types/serialization/resources/namespaces/client/index.d.ts +1 -0
  212. package/types/serialization/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +13 -0
  213. package/types/serialization/resources/namespaces/client/requests/index.d.ts +1 -0
  214. package/types/serialization/resources/namespaces/index.d.ts +1 -0
  215. package/types/serialization/types/Actor.d.ts +28 -0
  216. package/types/serialization/types/ActorName.d.ts +12 -0
  217. package/types/serialization/types/ActorsCreateResponse.d.ts +13 -0
  218. package/types/serialization/types/ActorsDeleteResponse.d.ts +10 -0
  219. package/types/serialization/types/ActorsGetOrCreateResponse.d.ts +14 -0
  220. package/types/serialization/types/ActorsKvGetResponse.d.ts +13 -0
  221. package/types/serialization/types/ActorsListNamesResponse.d.ts +15 -0
  222. package/types/serialization/types/ActorsListResponse.d.ts +15 -0
  223. package/types/serialization/types/ActorsRescheduleRequestBody.d.ts +10 -0
  224. package/types/serialization/types/ActorsRescheduleResponse.d.ts +10 -0
  225. package/types/serialization/types/ActorsSleepRequestBody.d.ts +10 -0
  226. package/types/serialization/types/ActorsSleepResponse.d.ts +10 -0
  227. package/types/serialization/types/CrashPolicy.d.ts +10 -0
  228. package/types/serialization/types/Datacenter.d.ts +14 -0
  229. package/types/serialization/types/DatacenterHealth.d.ts +19 -0
  230. package/types/serialization/types/DatacentersListResponse.d.ts +15 -0
  231. package/types/serialization/types/Envoy.d.ts +24 -0
  232. package/types/serialization/types/EnvoysListResponse.d.ts +15 -0
  233. package/types/serialization/types/HealthFanoutResponse.d.ts +13 -0
  234. package/types/serialization/types/HealthResponse.d.ts +14 -0
  235. package/types/serialization/types/HealthStatus.d.ts +10 -0
  236. package/types/serialization/types/MetadataGetResponse.d.ts +19 -0
  237. package/types/serialization/types/Namespace.d.ts +16 -0
  238. package/types/serialization/types/NamespaceListResponse.d.ts +15 -0
  239. package/types/serialization/types/NamespacesCreateResponse.d.ts +13 -0
  240. package/types/serialization/types/Pagination.d.ts +12 -0
  241. package/types/serialization/types/RivetId.d.ts +10 -0
  242. package/types/serialization/types/Runner.d.ts +27 -0
  243. package/types/serialization/types/RunnerConfig.d.ts +16 -0
  244. package/types/serialization/types/RunnerConfigKind.d.ts +12 -0
  245. package/types/serialization/types/RunnerConfigKindNormal.d.ts +12 -0
  246. package/types/serialization/types/RunnerConfigKindServerless.d.ts +13 -0
  247. package/types/serialization/types/RunnerConfigKindServerlessServerless.d.ts +20 -0
  248. package/types/serialization/types/RunnerConfigResponse.d.ts +13 -0
  249. package/types/serialization/types/RunnerConfigServerless.d.ts +20 -0
  250. package/types/serialization/types/RunnerConfigVariant.d.ts +10 -0
  251. package/types/serialization/types/RunnerConfigsDeleteResponse.d.ts +10 -0
  252. package/types/serialization/types/RunnerConfigsListResponse.d.ts +15 -0
  253. package/types/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +13 -0
  254. package/types/serialization/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +10 -0
  255. package/types/serialization/types/RunnerConfigsRefreshMetadataResponse.d.ts +10 -0
  256. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +12 -0
  257. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +13 -0
  258. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +13 -0
  259. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +13 -0
  260. package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +12 -0
  261. package/types/serialization/types/RunnerConfigsServerlessMetadataError.d.ts +16 -0
  262. package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidRequest.d.ts +12 -0
  263. package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJson.d.ts +13 -0
  264. package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJsonInvalidResponseJson.d.ts +12 -0
  265. package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchema.d.ts +13 -0
  266. package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchemaInvalidResponseSchema.d.ts +13 -0
  267. package/types/serialization/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatus.d.ts +13 -0
  268. package/types/serialization/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatusNonSuccessStatus.d.ts +13 -0
  269. package/types/serialization/types/RunnerConfigsServerlessMetadataErrorRequestFailed.d.ts +12 -0
  270. package/types/serialization/types/RunnerConfigsServerlessMetadataErrorRequestTimedOut.d.ts +12 -0
  271. package/types/serialization/types/RunnerConfigsUpsertResponse.d.ts +12 -0
  272. package/types/serialization/types/RunnersListNamesResponse.d.ts +14 -0
  273. package/types/serialization/types/RunnersListResponse.d.ts +15 -0
  274. package/types/serialization/types/index.d.ts +59 -0
@@ -0,0 +1,39 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ import * as Rivet from "../../../index";
6
+ export declare namespace Envoys {
7
+ interface Options {
8
+ environment: core.Supplier<string>;
9
+ /** Specify a custom URL to connect the client to. */
10
+ baseUrl?: core.Supplier<string>;
11
+ token: core.Supplier<core.BearerToken>;
12
+ fetcher?: core.FetchFunction;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Envoys {
26
+ protected readonly _options: Envoys.Options;
27
+ constructor(_options: Envoys.Options);
28
+ /**
29
+ * @param {Rivet.EnvoysListRequest} request
30
+ * @param {Envoys.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @example
33
+ * await client.envoys.list({
34
+ * namespace: "namespace"
35
+ * })
36
+ */
37
+ list(request: Rivet.EnvoysListRequest, requestOptions?: Envoys.RequestOptions): Promise<Rivet.EnvoysListResponse>;
38
+ protected _getAuthorizationHeader(): Promise<string>;
39
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * namespace: "namespace"
8
+ * }
9
+ */
10
+ export interface EnvoysListRequest {
11
+ namespace: string;
12
+ name?: string;
13
+ envoyKey?: string | string[];
14
+ limit?: number;
15
+ cursor?: string;
16
+ }
@@ -0,0 +1 @@
1
+ export { type EnvoysListRequest } from "./EnvoysListRequest";
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ import * as Rivet from "../../../index";
6
+ export declare namespace Health {
7
+ interface Options {
8
+ environment: core.Supplier<string>;
9
+ /** Specify a custom URL to connect the client to. */
10
+ baseUrl?: core.Supplier<string>;
11
+ token: core.Supplier<core.BearerToken>;
12
+ fetcher?: core.FetchFunction;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Health {
26
+ protected readonly _options: Health.Options;
27
+ constructor(_options: Health.Options);
28
+ /**
29
+ * @param {Health.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
31
+ * @example
32
+ * await client.health.fanout()
33
+ */
34
+ fanout(requestOptions?: Health.RequestOptions): Promise<Rivet.HealthFanoutResponse>;
35
+ protected _getAuthorizationHeader(): Promise<string>;
36
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,9 @@
1
+ export * as datacenters from "./datacenters";
2
+ export * as envoys from "./envoys";
3
+ export * as health from "./health";
4
+ export * as metadata from "./metadata";
5
+ export * as namespaces from "./namespaces";
6
+ export * as runners from "./runners";
7
+ export * from "./envoys/client/requests";
8
+ export * from "./namespaces/client/requests";
9
+ export * from "./runners/client/requests";
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ import * as Rivet from "../../../index";
6
+ export declare namespace Metadata {
7
+ interface Options {
8
+ environment: core.Supplier<string>;
9
+ /** Specify a custom URL to connect the client to. */
10
+ baseUrl?: core.Supplier<string>;
11
+ token: core.Supplier<core.BearerToken>;
12
+ fetcher?: core.FetchFunction;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Metadata {
26
+ protected readonly _options: Metadata.Options;
27
+ constructor(_options: Metadata.Options);
28
+ /**
29
+ * @param {Metadata.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
31
+ * @example
32
+ * await client.metadata.get()
33
+ */
34
+ get(requestOptions?: Metadata.RequestOptions): Promise<Rivet.MetadataGetResponse>;
35
+ protected _getAuthorizationHeader(): Promise<string>;
36
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ import * as Rivet from "../../../index";
6
+ export declare namespace Namespaces {
7
+ interface Options {
8
+ environment: core.Supplier<string>;
9
+ /** Specify a custom URL to connect the client to. */
10
+ baseUrl?: core.Supplier<string>;
11
+ token: core.Supplier<core.BearerToken>;
12
+ fetcher?: core.FetchFunction;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Namespaces {
26
+ protected readonly _options: Namespaces.Options;
27
+ constructor(_options: Namespaces.Options);
28
+ /**
29
+ * @param {Rivet.NamespacesListRequest} request
30
+ * @param {Namespaces.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @example
33
+ * await client.namespaces.list()
34
+ */
35
+ list(request?: Rivet.NamespacesListRequest, requestOptions?: Namespaces.RequestOptions): Promise<Rivet.NamespaceListResponse>;
36
+ /**
37
+ * @param {Rivet.NamespacesCreateRequest} request
38
+ * @param {Namespaces.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @example
41
+ * await client.namespaces.create({
42
+ * displayName: "display_name",
43
+ * name: "name"
44
+ * })
45
+ */
46
+ create(request: Rivet.NamespacesCreateRequest, requestOptions?: Namespaces.RequestOptions): Promise<Rivet.NamespacesCreateResponse>;
47
+ protected _getAuthorizationHeader(): Promise<string>;
48
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * displayName: "display_name",
8
+ * name: "name"
9
+ * }
10
+ */
11
+ export interface NamespacesCreateRequest {
12
+ displayName: string;
13
+ name: string;
14
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface NamespacesListRequest {
10
+ limit?: number;
11
+ cursor?: string;
12
+ name?: string;
13
+ /**
14
+ * Deprecated.
15
+ */
16
+ namespaceIds?: string;
17
+ namespaceId?: Rivet.RivetId | Rivet.RivetId[];
18
+ }
@@ -0,0 +1,2 @@
1
+ export { type NamespacesListRequest } from "./NamespacesListRequest";
2
+ export { type NamespacesCreateRequest } from "./NamespacesCreateRequest";
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,54 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ import * as Rivet from "../../../index";
6
+ export declare namespace Runners {
7
+ interface Options {
8
+ environment: core.Supplier<string>;
9
+ /** Specify a custom URL to connect the client to. */
10
+ baseUrl?: core.Supplier<string>;
11
+ token: core.Supplier<core.BearerToken>;
12
+ fetcher?: core.FetchFunction;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Runners {
26
+ protected readonly _options: Runners.Options;
27
+ constructor(_options: Runners.Options);
28
+ /**
29
+ * @param {Rivet.RunnersListRequest} request
30
+ * @param {Runners.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @example
33
+ * await client.runners.list({
34
+ * namespace: "namespace"
35
+ * })
36
+ */
37
+ list(request: Rivet.RunnersListRequest, requestOptions?: Runners.RequestOptions): Promise<Rivet.RunnersListResponse>;
38
+ /**
39
+ * 2 round trips:
40
+ *
41
+ * - GET /runners/names (fanout)
42
+ * - [api-peer] namespace::ops::resolve_for_name_global
43
+ *
44
+ * @param {Rivet.RunnersListNamesRequest} request
45
+ * @param {Runners.RequestOptions} requestOptions - Request-specific configuration.
46
+ *
47
+ * @example
48
+ * await client.runners.listNames({
49
+ * namespace: "namespace"
50
+ * })
51
+ */
52
+ listNames(request: Rivet.RunnersListNamesRequest, requestOptions?: Runners.RequestOptions): Promise<Rivet.RunnersListNamesResponse>;
53
+ protected _getAuthorizationHeader(): Promise<string>;
54
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,14 @@
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 RunnersListNamesRequest {
11
+ namespace: string;
12
+ limit?: number;
13
+ cursor?: string;
14
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * namespace: "namespace"
9
+ * }
10
+ */
11
+ export interface RunnersListRequest {
12
+ namespace: string;
13
+ name?: string;
14
+ /**
15
+ * Deprecated.
16
+ */
17
+ runnerIds?: string;
18
+ runnerId?: Rivet.RivetId | Rivet.RivetId[];
19
+ includeStopped?: boolean;
20
+ limit?: number;
21
+ cursor?: string;
22
+ }
@@ -0,0 +1,2 @@
1
+ export { type RunnersListRequest } from "./RunnersListRequest";
2
+ export { type RunnersListNamesRequest } from "./RunnersListNamesRequest";
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface Actor {
6
+ actorId: Rivet.RivetId;
7
+ /** Denotes when the actor was last connectable. Null if actor is not running. */
8
+ connectableTs?: number;
9
+ crashPolicy: Rivet.CrashPolicy;
10
+ /** Denotes when the actor was first created. */
11
+ createTs: number;
12
+ datacenter: string;
13
+ /** Denotes when the actor was destroyed. */
14
+ destroyTs?: number;
15
+ /** Error details if the actor failed to start. */
16
+ error?: Record<string, unknown>;
17
+ key?: string;
18
+ name: string;
19
+ namespaceId: Rivet.RivetId;
20
+ /** Denotes when the actor started waiting for an allocation. */
21
+ pendingAllocationTs?: number;
22
+ /**
23
+ * Denotes when the actor will try to allocate again. If this is set, the actor will not attempt to
24
+ * allocate until the given timestamp.
25
+ */
26
+ rescheduleTs?: number;
27
+ runnerNameSelector: string;
28
+ /** Denotes when the actor entered a sleeping state. */
29
+ sleepTs?: number;
30
+ /** Denotes when the actor was first made connectable. Null if never. */
31
+ startTs?: number;
32
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ActorName {
5
+ metadata: Record<string, unknown>;
6
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface ActorsCreateResponse {
6
+ actor: Rivet.Actor;
7
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ActorsDeleteResponse = Record<string, unknown>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface ActorsGetOrCreateResponse {
6
+ actor: Rivet.Actor;
7
+ created: boolean;
8
+ }
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface ActorsListNamesResponse {
6
+ names: Record<string, Rivet.ActorName>;
7
+ pagination: Rivet.Pagination;
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface ActorsListResponse {
6
+ actors: Rivet.Actor[];
7
+ pagination: Rivet.Pagination;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ActorsRescheduleRequestBody = Record<string, unknown>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ActorsRescheduleResponse = Record<string, unknown>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ActorsSleepRequestBody = Record<string, unknown>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ActorsSleepResponse = Record<string, unknown>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CrashPolicy = "restart" | "sleep" | "destroy";
5
+ export declare const CrashPolicy: {
6
+ readonly Restart: "restart";
7
+ readonly Sleep: "sleep";
8
+ readonly Destroy: "destroy";
9
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Datacenter {
5
+ label: number;
6
+ name: string;
7
+ url: string;
8
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface DatacenterHealth {
6
+ datacenterLabel: number;
7
+ datacenterName: string;
8
+ error?: string;
9
+ response?: Rivet.HealthResponse;
10
+ rttMs?: number;
11
+ status: Rivet.HealthStatus;
12
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface DatacentersListResponse {
6
+ datacenters: Rivet.Datacenter[];
7
+ pagination: Rivet.Pagination;
8
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface Envoy {
6
+ createTs: number;
7
+ datacenter: string;
8
+ envoyKey: string;
9
+ lastConnectedTs?: number;
10
+ lastPingTs: number;
11
+ lastRtt: number;
12
+ metadata?: Record<string, unknown>;
13
+ namespaceId: Rivet.RivetId;
14
+ poolName: string;
15
+ slots: number;
16
+ stopTs?: number;
17
+ version: number;
18
+ }
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,8 @@
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
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface MetadataGetResponse {
5
+ buildTimestamp: string;
6
+ cargoProfile: string;
7
+ cargoTarget: string;
8
+ gitSha: string;
9
+ runtime: string;
10
+ rustcHost: string;
11
+ rustcVersion: string;
12
+ version: string;
13
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface Namespace {
6
+ createTs: number;
7
+ displayName: string;
8
+ name: string;
9
+ namespaceId: Rivet.RivetId;
10
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface NamespaceListResponse {
6
+ namespaces: Rivet.Namespace[];
7
+ pagination: Rivet.Pagination;
8
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../index";
5
+ export interface NamespacesCreateResponse {
6
+ namespace: Rivet.Namespace;
7
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Pagination {
5
+ cursor?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type RivetId = string;