@rivetkit/engine-api-full 25.7.1-rc.1 → 25.7.2

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 (101) hide show
  1. package/LICENSE +203 -0
  2. package/dist/browser/cjs/core.js +41 -0
  3. package/dist/browser/cjs/index.js +180 -573
  4. package/dist/browser/cjs/serialization.js +86 -107
  5. package/dist/browser/esm/core.js +41 -0
  6. package/dist/browser/esm/index.js +180 -573
  7. package/dist/browser/esm/serialization.js +86 -107
  8. package/dist/node/core.js +43 -0
  9. package/dist/node/index.js +180 -573
  10. package/dist/node/serialization.js +97 -123
  11. package/package.json +7 -8
  12. package/types/Client.d.ts +6 -77
  13. package/types/api/client/requests/index.d.ts +0 -3
  14. package/types/api/index.d.ts +1 -1
  15. package/types/api/resources/datacenters/client/Client.d.ts +2 -0
  16. package/types/api/resources/index.d.ts +3 -2
  17. package/types/api/resources/namespaces/client/Client.d.ts +3 -9
  18. package/types/api/resources/namespaces/client/requests/NamespacesListRequest.d.ts +1 -2
  19. package/types/api/resources/runnerConfigs/client/Client.d.ts +72 -0
  20. package/types/api/resources/runnerConfigs/client/requests/RunnerConfigsDeleteRequest.d.ts +12 -0
  21. package/types/api/resources/runnerConfigs/client/requests/RunnerConfigsListRequest.d.ts +17 -0
  22. package/types/api/resources/runnerConfigs/client/requests/RunnerConfigsUpsertRequest.d.ts +25 -0
  23. package/types/api/resources/runnerConfigs/client/requests/index.d.ts +3 -0
  24. package/types/api/resources/{namespacesRunnerConfigs → runnerConfigs}/index.d.ts +1 -0
  25. package/types/api/resources/runnerConfigs/types/RunnerConfigsUpsertRequestServerless.d.ts +13 -0
  26. package/types/api/resources/runnerConfigs/types/index.d.ts +1 -0
  27. package/types/api/resources/runners/client/Client.d.ts +2 -9
  28. package/types/api/resources/runners/client/requests/RunnersListRequest.d.ts +1 -0
  29. package/types/api/resources/runners/client/requests/index.d.ts +0 -1
  30. package/types/api/types/{NamespacesListResponse.d.ts → NamespaceListResponse.d.ts} +1 -1
  31. package/types/api/types/{ActorsGetByIdResponse.d.ts → RunnerConfig.d.ts} +2 -2
  32. package/types/api/types/{NamespacesRunnerConfigServerless.d.ts → RunnerConfigServerless.d.ts} +2 -1
  33. package/types/api/types/{NamespacesRunnerConfigVariant.d.ts → RunnerConfigVariant.d.ts} +1 -1
  34. package/types/api/types/RunnerConfigsDeleteResponse.d.ts +4 -0
  35. package/types/api/types/{NamespacesRunnerConfigsListResponse.d.ts → RunnerConfigsListResponse.d.ts} +2 -2
  36. package/types/api/types/RunnerConfigsUpsertResponse.d.ts +4 -0
  37. package/types/api/types/index.d.ts +7 -14
  38. package/types/core/auth/BasicAuth.d.ts +8 -0
  39. package/types/core/auth/BearerToken.d.ts +5 -0
  40. package/types/core/auth/index.d.ts +2 -0
  41. package/types/core/index.d.ts +1 -0
  42. package/types/serialization/client/requests/index.d.ts +0 -1
  43. package/types/serialization/index.d.ts +1 -1
  44. package/types/serialization/resources/index.d.ts +3 -0
  45. package/types/serialization/resources/runnerConfigs/client/index.d.ts +1 -0
  46. package/types/serialization/resources/runnerConfigs/client/requests/RunnerConfigsUpsertRequest.d.ts +13 -0
  47. package/types/serialization/resources/runnerConfigs/client/requests/index.d.ts +1 -0
  48. package/types/serialization/resources/runnerConfigs/index.d.ts +2 -0
  49. package/types/serialization/resources/runnerConfigs/types/RunnerConfigsUpsertRequestServerless.d.ts +18 -0
  50. package/types/serialization/resources/runnerConfigs/types/index.d.ts +1 -0
  51. package/types/serialization/types/{NamespacesListResponse.d.ts → NamespaceListResponse.d.ts} +2 -2
  52. package/types/serialization/types/RunnerConfig.d.ts +13 -0
  53. package/types/serialization/types/{NamespacesRunnerConfigServerless.d.ts → RunnerConfigServerless.d.ts} +3 -2
  54. package/types/serialization/types/{NamespacesRunnerConfigVariant.d.ts → RunnerConfigVariant.d.ts} +2 -2
  55. package/types/serialization/types/RunnerConfigsDeleteResponse.d.ts +10 -0
  56. package/types/serialization/types/RunnerConfigsListResponse.d.ts +15 -0
  57. package/types/serialization/types/RunnerConfigsUpsertResponse.d.ts +10 -0
  58. package/types/serialization/types/index.d.ts +7 -14
  59. package/types/api/client/requests/ActorsGetByIdRequest.d.ts +0 -16
  60. package/types/api/client/requests/ActorsGetOrCreateByIdRequest.d.ts +0 -23
  61. package/types/api/client/requests/ActorsGetRequest.d.ts +0 -10
  62. package/types/api/resources/namespacesRunnerConfigs/client/Client.d.ts +0 -73
  63. package/types/api/resources/namespacesRunnerConfigs/client/requests/NamespacesRunnerConfigsListRequest.d.ts +0 -13
  64. package/types/api/resources/namespacesRunnerConfigs/client/requests/index.d.ts +0 -1
  65. package/types/api/resources/runners/client/requests/RunnersGetRequest.d.ts +0 -10
  66. package/types/api/types/ActorLifecycle.d.ts +0 -7
  67. package/types/api/types/ActorsGetOrCreateByIdResponse.d.ts +0 -8
  68. package/types/api/types/ActorsGetResponse.d.ts +0 -7
  69. package/types/api/types/NamespacesGetResponse.d.ts +0 -7
  70. package/types/api/types/NamespacesRunnerConfig.d.ts +0 -7
  71. package/types/api/types/NamespacesRunnerConfigsDeleteResponse.d.ts +0 -4
  72. package/types/api/types/NamespacesRunnerConfigsGetResponse.d.ts +0 -7
  73. package/types/api/types/NamespacesRunnerConfigsUpsertRequest.d.ts +0 -5
  74. package/types/api/types/NamespacesRunnerConfigsUpsertResponse.d.ts +0 -4
  75. package/types/api/types/RunnersGetResponse.d.ts +0 -7
  76. package/types/api/types/StringHttpAddressHashableMap.d.ts +0 -5
  77. package/types/api/types/StringHttpAddressHashableMapValue.d.ts +0 -7
  78. package/types/api/types/StringTcpAddressHashableMap.d.ts +0 -5
  79. package/types/api/types/StringTcpAddressHashableMapValue.d.ts +0 -7
  80. package/types/api/types/StringUdpAddressHashableMap.d.ts +0 -5
  81. package/types/api/types/StringUdpAddressHashableMapValue.d.ts +0 -7
  82. package/types/serialization/client/requests/ActorsGetOrCreateByIdRequest.d.ts +0 -17
  83. package/types/serialization/types/ActorLifecycle.d.ts +0 -13
  84. package/types/serialization/types/ActorsGetByIdResponse.d.ts +0 -13
  85. package/types/serialization/types/ActorsGetOrCreateByIdResponse.d.ts +0 -14
  86. package/types/serialization/types/ActorsGetResponse.d.ts +0 -13
  87. package/types/serialization/types/NamespacesGetResponse.d.ts +0 -13
  88. package/types/serialization/types/NamespacesRunnerConfig.d.ts +0 -13
  89. package/types/serialization/types/NamespacesRunnerConfigsDeleteResponse.d.ts +0 -10
  90. package/types/serialization/types/NamespacesRunnerConfigsGetResponse.d.ts +0 -13
  91. package/types/serialization/types/NamespacesRunnerConfigsListResponse.d.ts +0 -15
  92. package/types/serialization/types/NamespacesRunnerConfigsUpsertRequest.d.ts +0 -11
  93. package/types/serialization/types/NamespacesRunnerConfigsUpsertResponse.d.ts +0 -10
  94. package/types/serialization/types/RunnersGetResponse.d.ts +0 -13
  95. package/types/serialization/types/StringHttpAddressHashableMap.d.ts +0 -11
  96. package/types/serialization/types/StringHttpAddressHashableMapValue.d.ts +0 -13
  97. package/types/serialization/types/StringTcpAddressHashableMap.d.ts +0 -11
  98. package/types/serialization/types/StringTcpAddressHashableMapValue.d.ts +0 -13
  99. package/types/serialization/types/StringUdpAddressHashableMap.d.ts +0 -11
  100. package/types/serialization/types/StringUdpAddressHashableMapValue.d.ts +0 -13
  101. /package/types/api/resources/{namespacesRunnerConfigs → runnerConfigs}/client/index.d.ts +0 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Rivet from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * namespace: "namespace"
9
+ * }
10
+ */
11
+ export interface RunnerConfigsListRequest {
12
+ namespace: string;
13
+ limit?: number;
14
+ cursor?: string;
15
+ variant?: Rivet.RunnerConfigVariant;
16
+ runnerNames?: string;
17
+ }
@@ -0,0 +1,25 @@
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
+ * serverless: {
10
+ * headers: {
11
+ * "key": "value"
12
+ * },
13
+ * maxRunners: 1,
14
+ * minRunners: 1,
15
+ * requestLifespan: 1,
16
+ * runnersMargin: 1,
17
+ * slotsPerRunner: 1,
18
+ * url: "url"
19
+ * }
20
+ * }
21
+ */
22
+ export interface RunnerConfigsUpsertRequest {
23
+ namespace: string;
24
+ serverless: Rivet.RunnerConfigsUpsertRequestServerless;
25
+ }
@@ -0,0 +1,3 @@
1
+ export { type RunnerConfigsListRequest } from "./RunnerConfigsListRequest";
2
+ export { type RunnerConfigsUpsertRequest } from "./RunnerConfigsUpsertRequest";
3
+ export { type RunnerConfigsDeleteRequest } from "./RunnerConfigsDeleteRequest";
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface RunnerConfigsUpsertRequestServerless {
5
+ headers: Record<string, string>;
6
+ maxRunners: number;
7
+ minRunners: number;
8
+ /** Seconds. */
9
+ requestLifespan: number;
10
+ runnersMargin: number;
11
+ slotsPerRunner: number;
12
+ url: string;
13
+ }
@@ -0,0 +1 @@
1
+ export * from "./RunnerConfigsUpsertRequestServerless";
@@ -8,6 +8,7 @@ export declare namespace Runners {
8
8
  environment: core.Supplier<string>;
9
9
  /** Specify a custom URL to connect the client to. */
10
10
  baseUrl?: core.Supplier<string>;
11
+ token: core.Supplier<core.BearerToken>;
11
12
  fetcher?: core.FetchFunction;
12
13
  }
13
14
  interface RequestOptions {
@@ -49,13 +50,5 @@ export declare class Runners {
49
50
  * })
50
51
  */
51
52
  listNames(request: Rivet.RunnersListNamesRequest, requestOptions?: Runners.RequestOptions): Promise<Rivet.RunnersListNamesResponse>;
52
- /**
53
- * @param {Rivet.RivetId} runnerId
54
- * @param {Rivet.RunnersGetRequest} request
55
- * @param {Runners.RequestOptions} requestOptions - Request-specific configuration.
56
- *
57
- * @example
58
- * await client.runners.get("runner_id")
59
- */
60
- get(runnerId: Rivet.RivetId, request?: Rivet.RunnersGetRequest, requestOptions?: Runners.RequestOptions): Promise<Rivet.RunnersGetResponse>;
53
+ protected _getAuthorizationHeader(): Promise<string>;
61
54
  }
@@ -10,6 +10,7 @@
10
10
  export interface RunnersListRequest {
11
11
  namespace: string;
12
12
  name?: string;
13
+ runnerIds?: string;
13
14
  includeStopped?: boolean;
14
15
  limit?: number;
15
16
  cursor?: string;
@@ -1,3 +1,2 @@
1
1
  export { type RunnersListRequest } from "./RunnersListRequest";
2
2
  export { type RunnersListNamesRequest } from "./RunnersListNamesRequest";
3
- export { type RunnersGetRequest } from "./RunnersGetRequest";
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Rivet from "../index";
5
- export interface NamespacesListResponse {
5
+ export interface NamespaceListResponse {
6
6
  namespaces: Rivet.Namespace[];
7
7
  pagination: Rivet.Pagination;
8
8
  }
@@ -2,6 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Rivet from "../index";
5
- export interface ActorsGetByIdResponse {
6
- actorId?: Rivet.RivetId;
5
+ export interface RunnerConfig {
6
+ serverless: Rivet.RunnerConfigServerless;
7
7
  }
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface NamespacesRunnerConfigServerless {
4
+ export interface RunnerConfigServerless {
5
+ headers: Record<string, string>;
5
6
  maxRunners: number;
6
7
  minRunners: number;
7
8
  /** Seconds. */
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type NamespacesRunnerConfigVariant = "serverless";
4
+ export type RunnerConfigVariant = "serverless";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type RunnerConfigsDeleteResponse = Record<string, unknown>;
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Rivet from "../index";
5
- export interface NamespacesRunnerConfigsListResponse {
5
+ export interface RunnerConfigsListResponse {
6
6
  pagination: Rivet.Pagination;
7
- runnerConfigs: Record<string, Rivet.NamespacesRunnerConfig>;
7
+ runnerConfigs: Record<string, Rivet.RunnerConfig>;
8
8
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type RunnerConfigsUpsertResponse = Record<string, unknown>;
@@ -2,30 +2,23 @@ export * from "./Actor";
2
2
  export * from "./ActorName";
3
3
  export * from "./ActorsCreateResponse";
4
4
  export * from "./ActorsDeleteResponse";
5
- export * from "./ActorsGetByIdResponse";
6
- export * from "./ActorsGetOrCreateByIdResponse";
7
5
  export * from "./ActorsGetOrCreateResponse";
8
- export * from "./ActorsGetResponse";
9
6
  export * from "./ActorsListNamesResponse";
10
7
  export * from "./ActorsListResponse";
11
8
  export * from "./CrashPolicy";
12
9
  export * from "./Datacenter";
13
10
  export * from "./DatacentersListResponse";
14
11
  export * from "./Namespace";
12
+ export * from "./NamespaceListResponse";
15
13
  export * from "./NamespacesCreateResponse";
16
- export * from "./NamespacesGetResponse";
17
- export * from "./NamespacesListResponse";
18
- export * from "./NamespacesRunnerConfigServerless";
19
- export * from "./NamespacesRunnerConfig";
20
- export * from "./NamespacesRunnerConfigVariant";
21
- export * from "./NamespacesRunnerConfigsDeleteResponse";
22
- export * from "./NamespacesRunnerConfigsGetResponse";
23
- export * from "./NamespacesRunnerConfigsListResponse";
24
- export * from "./NamespacesRunnerConfigsUpsertRequest";
25
- export * from "./NamespacesRunnerConfigsUpsertResponse";
26
14
  export * from "./Pagination";
27
15
  export * from "./RivetId";
28
16
  export * from "./Runner";
29
- export * from "./RunnersGetResponse";
17
+ export * from "./RunnerConfigServerless";
18
+ export * from "./RunnerConfig";
19
+ export * from "./RunnerConfigVariant";
20
+ export * from "./RunnerConfigsDeleteResponse";
21
+ export * from "./RunnerConfigsListResponse";
22
+ export * from "./RunnerConfigsUpsertResponse";
30
23
  export * from "./RunnersListNamesResponse";
31
24
  export * from "./RunnersListResponse";
@@ -0,0 +1,8 @@
1
+ export interface BasicAuth {
2
+ username: string;
3
+ password: string;
4
+ }
5
+ export declare const BasicAuth: {
6
+ toAuthorizationHeader: (basicAuth: BasicAuth | undefined) => string | undefined;
7
+ fromAuthorizationHeader: (header: string) => BasicAuth;
8
+ };
@@ -0,0 +1,5 @@
1
+ export type BearerToken = string;
2
+ export declare const BearerToken: {
3
+ toAuthorizationHeader: (token: BearerToken | undefined) => string | undefined;
4
+ fromAuthorizationHeader: (header: string) => BearerToken;
5
+ };
@@ -0,0 +1,2 @@
1
+ export { BasicAuth } from "./BasicAuth";
2
+ export { BearerToken } from "./BearerToken";
@@ -1,3 +1,4 @@
1
1
  export * from "./fetcher";
2
+ export * from "./auth";
2
3
  export * from "./runtime";
3
4
  export * as serialization from "./schemas";
@@ -1,3 +1,2 @@
1
1
  export { ActorsCreateRequest } from "./ActorsCreateRequest";
2
2
  export { ActorsGetOrCreateRequest } from "./ActorsGetOrCreateRequest";
3
- export { ActorsGetOrCreateByIdRequest } from "./ActorsGetOrCreateByIdRequest";
@@ -1,3 +1,3 @@
1
+ export * from "./resources";
1
2
  export * from "./types";
2
3
  export * from "./client";
3
- export * from "./resources";
@@ -1,2 +1,5 @@
1
+ export * as runnerConfigs from "./runnerConfigs";
2
+ export * from "./runnerConfigs/types";
1
3
  export * as namespaces from "./namespaces";
2
4
  export * from "./namespaces/client/requests";
5
+ export * from "./runnerConfigs/client/requests";
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,13 @@
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 { RunnerConfigsUpsertRequestServerless } from "../../types/RunnerConfigsUpsertRequestServerless";
8
+ export declare const RunnerConfigsUpsertRequest: core.serialization.Schema<serializers.RunnerConfigsUpsertRequest.Raw, Omit<Rivet.RunnerConfigsUpsertRequest, "namespace">>;
9
+ export declare namespace RunnerConfigsUpsertRequest {
10
+ interface Raw {
11
+ serverless: RunnerConfigsUpsertRequestServerless.Raw;
12
+ }
13
+ }
@@ -0,0 +1 @@
1
+ export { RunnerConfigsUpsertRequest } from "./RunnerConfigsUpsertRequest";
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Rivet from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const RunnerConfigsUpsertRequestServerless: core.serialization.ObjectSchema<serializers.RunnerConfigsUpsertRequestServerless.Raw, Rivet.RunnerConfigsUpsertRequestServerless>;
8
+ export declare namespace RunnerConfigsUpsertRequestServerless {
9
+ interface Raw {
10
+ headers: Record<string, string>;
11
+ max_runners: number;
12
+ min_runners: number;
13
+ request_lifespan: number;
14
+ runners_margin: number;
15
+ slots_per_runner: number;
16
+ url: string;
17
+ }
18
+ }
@@ -0,0 +1 @@
1
+ export * from "./RunnerConfigsUpsertRequestServerless";
@@ -6,8 +6,8 @@ import * as Rivet from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { Namespace } from "./Namespace";
8
8
  import { Pagination } from "./Pagination";
9
- export declare const NamespacesListResponse: core.serialization.ObjectSchema<serializers.NamespacesListResponse.Raw, Rivet.NamespacesListResponse>;
10
- export declare namespace NamespacesListResponse {
9
+ export declare const NamespaceListResponse: core.serialization.ObjectSchema<serializers.NamespaceListResponse.Raw, Rivet.NamespaceListResponse>;
10
+ export declare namespace NamespaceListResponse {
11
11
  interface Raw {
12
12
  namespaces: Namespace.Raw[];
13
13
  pagination: Pagination.Raw;
@@ -0,0 +1,13 @@
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 { RunnerConfigServerless } from "./RunnerConfigServerless";
8
+ export declare const RunnerConfig: core.serialization.ObjectSchema<serializers.RunnerConfig.Raw, Rivet.RunnerConfig>;
9
+ export declare namespace RunnerConfig {
10
+ interface Raw {
11
+ serverless: RunnerConfigServerless.Raw;
12
+ }
13
+ }
@@ -4,9 +4,10 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Rivet from "../../api/index";
6
6
  import * as core from "../../core";
7
- export declare const NamespacesRunnerConfigServerless: core.serialization.ObjectSchema<serializers.NamespacesRunnerConfigServerless.Raw, Rivet.NamespacesRunnerConfigServerless>;
8
- export declare namespace NamespacesRunnerConfigServerless {
7
+ export declare const RunnerConfigServerless: core.serialization.ObjectSchema<serializers.RunnerConfigServerless.Raw, Rivet.RunnerConfigServerless>;
8
+ export declare namespace RunnerConfigServerless {
9
9
  interface Raw {
10
+ headers: Record<string, string>;
10
11
  max_runners: number;
11
12
  min_runners: number;
12
13
  request_lifespan: number;
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Rivet from "../../api/index";
6
6
  import * as core from "../../core";
7
- export declare const NamespacesRunnerConfigVariant: core.serialization.Schema<serializers.NamespacesRunnerConfigVariant.Raw, Rivet.NamespacesRunnerConfigVariant>;
8
- export declare namespace NamespacesRunnerConfigVariant {
7
+ export declare const RunnerConfigVariant: core.serialization.Schema<serializers.RunnerConfigVariant.Raw, Rivet.RunnerConfigVariant>;
8
+ export declare namespace RunnerConfigVariant {
9
9
  type Raw = "serverless";
10
10
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Rivet from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const RunnerConfigsDeleteResponse: core.serialization.Schema<serializers.RunnerConfigsDeleteResponse.Raw, Rivet.RunnerConfigsDeleteResponse>;
8
+ export declare namespace RunnerConfigsDeleteResponse {
9
+ type Raw = Record<string, unknown>;
10
+ }
@@ -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 { RunnerConfig } from "./RunnerConfig";
9
+ export declare const RunnerConfigsListResponse: core.serialization.ObjectSchema<serializers.RunnerConfigsListResponse.Raw, Rivet.RunnerConfigsListResponse>;
10
+ export declare namespace RunnerConfigsListResponse {
11
+ interface Raw {
12
+ pagination: Pagination.Raw;
13
+ runner_configs: Record<string, RunnerConfig.Raw>;
14
+ }
15
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Rivet from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const RunnerConfigsUpsertResponse: core.serialization.Schema<serializers.RunnerConfigsUpsertResponse.Raw, Rivet.RunnerConfigsUpsertResponse>;
8
+ export declare namespace RunnerConfigsUpsertResponse {
9
+ type Raw = Record<string, unknown>;
10
+ }
@@ -2,30 +2,23 @@ export * from "./Actor";
2
2
  export * from "./ActorName";
3
3
  export * from "./ActorsCreateResponse";
4
4
  export * from "./ActorsDeleteResponse";
5
- export * from "./ActorsGetByIdResponse";
6
- export * from "./ActorsGetOrCreateByIdResponse";
7
5
  export * from "./ActorsGetOrCreateResponse";
8
- export * from "./ActorsGetResponse";
9
6
  export * from "./ActorsListNamesResponse";
10
7
  export * from "./ActorsListResponse";
11
8
  export * from "./CrashPolicy";
12
9
  export * from "./Datacenter";
13
10
  export * from "./DatacentersListResponse";
14
11
  export * from "./Namespace";
12
+ export * from "./NamespaceListResponse";
15
13
  export * from "./NamespacesCreateResponse";
16
- export * from "./NamespacesGetResponse";
17
- export * from "./NamespacesListResponse";
18
- export * from "./NamespacesRunnerConfigServerless";
19
- export * from "./NamespacesRunnerConfig";
20
- export * from "./NamespacesRunnerConfigVariant";
21
- export * from "./NamespacesRunnerConfigsDeleteResponse";
22
- export * from "./NamespacesRunnerConfigsGetResponse";
23
- export * from "./NamespacesRunnerConfigsListResponse";
24
- export * from "./NamespacesRunnerConfigsUpsertRequest";
25
- export * from "./NamespacesRunnerConfigsUpsertResponse";
26
14
  export * from "./Pagination";
27
15
  export * from "./RivetId";
28
16
  export * from "./Runner";
29
- export * from "./RunnersGetResponse";
17
+ export * from "./RunnerConfigServerless";
18
+ export * from "./RunnerConfig";
19
+ export * from "./RunnerConfigVariant";
20
+ export * from "./RunnerConfigsDeleteResponse";
21
+ export * from "./RunnerConfigsListResponse";
22
+ export * from "./RunnerConfigsUpsertResponse";
30
23
  export * from "./RunnersListNamesResponse";
31
24
  export * from "./RunnersListResponse";
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * namespace: "namespace",
8
- * name: "name",
9
- * key: "key"
10
- * }
11
- */
12
- export interface ActorsGetByIdRequest {
13
- namespace: string;
14
- name: string;
15
- key: string;
16
- }
@@ -1,23 +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
- * crashPolicy: "restart",
10
- * key: "key",
11
- * name: "name",
12
- * runnerNameSelector: "runner_name_selector"
13
- * }
14
- */
15
- export interface ActorsGetOrCreateByIdRequest {
16
- namespace: string;
17
- datacenter?: string;
18
- crashPolicy: Rivet.CrashPolicy;
19
- input?: string;
20
- key: string;
21
- name: string;
22
- runnerNameSelector: string;
23
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {}
7
- */
8
- export interface ActorsGetRequest {
9
- namespace?: string;
10
- }
@@ -1,73 +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 NamespacesRunnerConfigs {
7
- interface Options {
8
- environment: core.Supplier<string>;
9
- /** Specify a custom URL to connect the client to. */
10
- baseUrl?: core.Supplier<string>;
11
- fetcher?: core.FetchFunction;
12
- }
13
- interface RequestOptions {
14
- /** The maximum time to wait for a response in seconds. */
15
- timeoutInSeconds?: number;
16
- /** The number of times to retry the request. Defaults to 2. */
17
- maxRetries?: number;
18
- /** A hook to abort the request. */
19
- abortSignal?: AbortSignal;
20
- /** Additional headers to include in the request. */
21
- headers?: Record<string, string>;
22
- }
23
- }
24
- export declare class NamespacesRunnerConfigs {
25
- protected readonly _options: NamespacesRunnerConfigs.Options;
26
- constructor(_options: NamespacesRunnerConfigs.Options);
27
- /**
28
- * @param {Rivet.RivetId} namespaceId
29
- * @param {Rivet.NamespacesRunnerConfigsListRequest} request
30
- * @param {NamespacesRunnerConfigs.RequestOptions} requestOptions - Request-specific configuration.
31
- *
32
- * @example
33
- * await client.namespacesRunnerConfigs.list("namespace_id")
34
- */
35
- list(namespaceId: Rivet.RivetId, request?: Rivet.NamespacesRunnerConfigsListRequest, requestOptions?: NamespacesRunnerConfigs.RequestOptions): Promise<Rivet.NamespacesRunnerConfigsListResponse>;
36
- /**
37
- * @param {Rivet.RivetId} namespaceId
38
- * @param {string} runnerName
39
- * @param {NamespacesRunnerConfigs.RequestOptions} requestOptions - Request-specific configuration.
40
- *
41
- * @example
42
- * await client.namespacesRunnerConfigs.get("namespace_id", "runner_name")
43
- */
44
- get(namespaceId: Rivet.RivetId, runnerName: string, requestOptions?: NamespacesRunnerConfigs.RequestOptions): Promise<Rivet.NamespacesRunnerConfigsGetResponse>;
45
- /**
46
- * @param {Rivet.RivetId} namespaceId
47
- * @param {string} runnerName
48
- * @param {Rivet.NamespacesRunnerConfigsUpsertRequest} request
49
- * @param {NamespacesRunnerConfigs.RequestOptions} requestOptions - Request-specific configuration.
50
- *
51
- * @example
52
- * await client.namespacesRunnerConfigs.upsert("namespace_id", "runner_name", {
53
- * serverless: {
54
- * maxRunners: 1,
55
- * minRunners: 1,
56
- * requestLifespan: 1,
57
- * runnersMargin: 1,
58
- * slotsPerRunner: 1,
59
- * url: "url"
60
- * }
61
- * })
62
- */
63
- upsert(namespaceId: Rivet.RivetId, runnerName: string, request: Rivet.NamespacesRunnerConfigsUpsertRequest, requestOptions?: NamespacesRunnerConfigs.RequestOptions): Promise<Rivet.NamespacesRunnerConfigsUpsertResponse>;
64
- /**
65
- * @param {Rivet.RivetId} namespaceId
66
- * @param {string} runnerName
67
- * @param {NamespacesRunnerConfigs.RequestOptions} requestOptions - Request-specific configuration.
68
- *
69
- * @example
70
- * await client.namespacesRunnerConfigs.delete("namespace_id", "runner_name")
71
- */
72
- delete(namespaceId: Rivet.RivetId, runnerName: string, requestOptions?: NamespacesRunnerConfigs.RequestOptions): Promise<Rivet.NamespacesRunnerConfigsDeleteResponse>;
73
- }
@@ -1,13 +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
- */
9
- export interface NamespacesRunnerConfigsListRequest {
10
- limit?: number;
11
- cursor?: string;
12
- variant?: Rivet.NamespacesRunnerConfigVariant;
13
- }
@@ -1 +0,0 @@
1
- export { type NamespacesRunnerConfigsListRequest } from "./NamespacesRunnerConfigsListRequest";
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {}
7
- */
8
- export interface RunnersGetRequest {
9
- namespace?: string;
10
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ActorLifecycle {
5
- durable: boolean;
6
- killTimeoutMs: number;
7
- }
@@ -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 ActorsGetOrCreateByIdResponse {
6
- actorId: Rivet.RivetId;
7
- created: boolean;
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 ActorsGetResponse {
6
- actor: Rivet.Actor;
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface NamespacesGetResponse {
6
- namespace: Rivet.Namespace;
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Rivet from "../index";
5
- export interface NamespacesRunnerConfig {
6
- serverless: Rivet.NamespacesRunnerConfigServerless;
7
- }