diff --git a/Cargo.lock b/Cargo.lock index 2c96ef3bab..7b184e85d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -449,7 +449,7 @@ dependencies = [ [[package]] name = "bare_gen" -version = "25.6.1" +version = "25.7.0" dependencies = [ "heck 0.5.0", "pest", @@ -755,7 +755,7 @@ dependencies = [ [[package]] name = "clickhouse-inserter" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "async-channel", @@ -779,7 +779,7 @@ dependencies = [ [[package]] name = "clickhouse-user-query" -version = "25.6.1" +version = "25.7.0" dependencies = [ "clickhouse", "serde", @@ -1382,7 +1382,7 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" [[package]] name = "epoxy" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "axum 0.8.4", @@ -1421,7 +1421,7 @@ dependencies = [ [[package]] name = "epoxy-protocol" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "bare_gen", @@ -1683,7 +1683,7 @@ dependencies = [ [[package]] name = "gasoline" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "async-stream", @@ -1730,7 +1730,7 @@ dependencies = [ [[package]] name = "gasoline-macros" -version = "25.6.1" +version = "25.7.0" dependencies = [ "proc-macro2", "quote", @@ -2378,7 +2378,7 @@ dependencies = [ [[package]] name = "internal" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "gasoline", @@ -2776,7 +2776,7 @@ dependencies = [ [[package]] name = "namespace" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "gasoline", @@ -3256,7 +3256,7 @@ checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" [[package]] name = "pegboard" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "epoxy", @@ -3283,7 +3283,7 @@ dependencies = [ [[package]] name = "pegboard-actor-kv" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "futures-util", @@ -3301,7 +3301,7 @@ dependencies = [ [[package]] name = "pegboard-gateway" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "async-trait", @@ -3326,7 +3326,7 @@ dependencies = [ [[package]] name = "pegboard-runner-ws" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "gasoline", @@ -3349,7 +3349,7 @@ dependencies = [ [[package]] name = "pegboard-serverless" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "epoxy", @@ -3366,7 +3366,7 @@ dependencies = [ [[package]] name = "pegboard-tunnel" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "async-trait", @@ -4077,7 +4077,7 @@ dependencies = [ [[package]] name = "rivet-api-builder" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "axum 0.8.4", @@ -4120,7 +4120,7 @@ dependencies = [ [[package]] name = "rivet-api-peer" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "axum 0.8.4", @@ -4148,7 +4148,7 @@ dependencies = [ [[package]] name = "rivet-api-public" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "axum 0.8.4", @@ -4178,7 +4178,7 @@ dependencies = [ [[package]] name = "rivet-api-types" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "gasoline", @@ -4193,7 +4193,7 @@ dependencies = [ [[package]] name = "rivet-api-util" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "axum 0.8.4", @@ -4213,7 +4213,7 @@ dependencies = [ [[package]] name = "rivet-bootstrap" -version = "25.6.1" +version = "25.7.0" dependencies = [ "epoxy", "gasoline", @@ -4229,7 +4229,7 @@ dependencies = [ [[package]] name = "rivet-cache" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "futures-util", @@ -4252,14 +4252,14 @@ dependencies = [ [[package]] name = "rivet-cache-result" -version = "25.6.1" +version = "25.7.0" dependencies = [ "rivet-util", ] [[package]] name = "rivet-config" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "config", @@ -4277,7 +4277,7 @@ dependencies = [ [[package]] name = "rivet-data" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "bare_gen", @@ -4295,7 +4295,7 @@ dependencies = [ [[package]] name = "rivet-dump-openapi" -version = "25.6.1" +version = "25.7.0" dependencies = [ "rivet-api-public", "serde_json", @@ -4304,7 +4304,7 @@ dependencies = [ [[package]] name = "rivet-engine" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "axum 0.8.4", @@ -4362,7 +4362,7 @@ dependencies = [ [[package]] name = "rivet-env" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "lazy_static", @@ -4372,7 +4372,7 @@ dependencies = [ [[package]] name = "rivet-error" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "indoc", @@ -4384,7 +4384,7 @@ dependencies = [ [[package]] name = "rivet-error-macros" -version = "25.6.1" +version = "25.7.0" dependencies = [ "indoc", "proc-macro2", @@ -4395,7 +4395,7 @@ dependencies = [ [[package]] name = "rivet-guard" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "axum 0.8.4", @@ -4437,7 +4437,7 @@ dependencies = [ [[package]] name = "rivet-guard-core" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "async-trait", @@ -4481,7 +4481,7 @@ dependencies = [ [[package]] name = "rivet-logs" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "chrono", @@ -4495,7 +4495,7 @@ dependencies = [ [[package]] name = "rivet-metrics" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "console-subscriber", @@ -4513,7 +4513,7 @@ dependencies = [ [[package]] name = "rivet-pools" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "async-nats", @@ -4546,7 +4546,7 @@ dependencies = [ [[package]] name = "rivet-runner-protocol" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "bare_gen", @@ -4565,7 +4565,7 @@ dependencies = [ [[package]] name = "rivet-runtime" -version = "25.6.1" +version = "25.7.0" dependencies = [ "console-subscriber", "lazy_static", @@ -4591,7 +4591,7 @@ dependencies = [ [[package]] name = "rivet-service-manager" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "chrono", @@ -4606,7 +4606,7 @@ dependencies = [ [[package]] name = "rivet-telemetry" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "rivet-config", @@ -4630,7 +4630,7 @@ dependencies = [ [[package]] name = "rivet-test-deps" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "futures-util", @@ -4648,7 +4648,7 @@ dependencies = [ [[package]] name = "rivet-test-deps-docker" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "portpicker", @@ -4661,7 +4661,7 @@ dependencies = [ [[package]] name = "rivet-tunnel-protocol" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "bare_gen", @@ -4678,7 +4678,7 @@ dependencies = [ [[package]] name = "rivet-types" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "gasoline", @@ -4694,7 +4694,7 @@ dependencies = [ [[package]] name = "rivet-ups-protocol" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "bare_gen", @@ -4711,7 +4711,7 @@ dependencies = [ [[package]] name = "rivet-util" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "async-trait", @@ -4740,7 +4740,7 @@ dependencies = [ [[package]] name = "rivet-util-id" -version = "25.6.1" +version = "25.7.0" dependencies = [ "serde", "thiserror 1.0.69", @@ -4751,7 +4751,7 @@ dependencies = [ [[package]] name = "rivet-workflow-worker" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "epoxy", @@ -6368,7 +6368,7 @@ checksum = "4a1a07cc7db3810833284e8d372ccdc6da29741639ecc70c9ec107df0fa6154c" [[package]] name = "universaldb" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "async-trait", @@ -6395,7 +6395,7 @@ dependencies = [ [[package]] name = "universalpubsub" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "async-nats", @@ -6559,7 +6559,7 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "versioned-data-util" -version = "25.6.1" +version = "25.7.0" dependencies = [ "anyhow", "serde", diff --git a/out/openapi.json b/out/openapi.json index 536842850a..a18d724e20 100644 --- a/out/openapi.json +++ b/out/openapi.json @@ -11,7 +11,7 @@ "name": "Apache-2.0", "identifier": "Apache-2.0" }, - "version": "25.6.1" + "version": "25.7.0" }, "paths": { "/actors": { @@ -1470,7 +1470,58 @@ "additionalProperties": false }, "RunnerConfigsUpsertRequest": { - "$ref": "#/components/schemas/RunnerConfig" + "oneOf": [ + { + "type": "object", + "required": [ + "serverless" + ], + "properties": { + "serverless": { + "type": "object", + "required": [ + "url", + "request_lifespan", + "slots_per_runner", + "min_runners", + "max_runners", + "runners_margin" + ], + "properties": { + "max_runners": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "min_runners": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "request_lifespan": { + "type": "integer", + "format": "int32", + "description": "Seconds.", + "minimum": 0 + }, + "runners_margin": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "slots_per_runner": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "url": { + "type": "string" + } + } + } + } + } + ] }, "RunnerConfigsUpsertResponse": { "type": "object" diff --git a/packages/core/api-peer/src/runner_configs.rs b/packages/core/api-peer/src/runner_configs.rs index 0a83b32bb8..c7ef6667c7 100644 --- a/packages/core/api-peer/src/runner_configs.rs +++ b/packages/core/api-peer/src/runner_configs.rs @@ -114,7 +114,7 @@ pub struct UpsertPath { #[derive(Deserialize, Serialize, ToSchema)] #[serde(deny_unknown_fields)] #[schema(as = RunnerConfigsUpsertRequest)] -pub struct UpsertRequest(namespace::types::RunnerConfig); +pub struct UpsertRequest(#[schema(inline)] namespace::types::RunnerConfig); #[derive(Deserialize, Serialize, ToSchema)] #[schema(as = RunnerConfigsUpsertResponse)] diff --git a/scripts/fern/gen.sh b/scripts/fern/gen.sh index 405af5b1fd..7e13c7f64e 100755 --- a/scripts/fern/gen.sh +++ b/scripts/fern/gen.sh @@ -1,9 +1,7 @@ #!/usr/bin/env bash set -euf -o pipefail -FERN_GROUP=runtime ./scripts/fern/gen_inner.sh & -FERN_GROUP=full ./scripts/fern/gen_inner.sh & -wait +FERN_GROUP=full ./scripts/fern/gen_inner.sh # Pack API for frontend # (cd sdks/api/full/typescript && yarn install && yarn pack --out ../../../../frontend/apps/hub/vendor/rivet-gg-api.tgz) @@ -13,4 +11,3 @@ wait # Update lockfile pnpm install - diff --git a/sdks/api/fern/fern.config.json b/sdks/api/fern/fern.config.json index 3e20bfc64a..dc90704dc8 100644 --- a/sdks/api/fern/fern.config.json +++ b/sdks/api/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "rivet", "version": "0.44.11" -} +} \ No newline at end of file diff --git a/sdks/go/api-full/client/client.go b/sdks/go/api-full/client/client.go index 79acd8db56..a64280c95e 100644 --- a/sdks/go/api-full/client/client.go +++ b/sdks/go/api-full/client/client.go @@ -11,7 +11,7 @@ import ( core "sdk/core" datacenters "sdk/datacenters" namespaces "sdk/namespaces" - namespacesrunnerconfigs "sdk/namespacesrunnerconfigs" + runnerconfigs "sdk/runnerconfigs" runners "sdk/runners" ) @@ -20,10 +20,10 @@ type Client struct { caller *core.Caller header http.Header - Datacenters *datacenters.Client - Namespaces *namespaces.Client - NamespacesRunnerConfigs *namespacesrunnerconfigs.Client - Runners *runners.Client + Datacenters *datacenters.Client + Namespaces *namespaces.Client + RunnerConfigs *runnerconfigs.Client + Runners *runners.Client } func NewClient(opts ...core.ClientOption) *Client { @@ -32,13 +32,13 @@ func NewClient(opts ...core.ClientOption) *Client { opt(options) } return &Client{ - baseURL: options.BaseURL, - caller: core.NewCaller(options.HTTPClient), - header: options.ToHeader(), - Datacenters: datacenters.NewClient(opts...), - Namespaces: namespaces.NewClient(opts...), - NamespacesRunnerConfigs: namespacesrunnerconfigs.NewClient(opts...), - Runners: runners.NewClient(opts...), + baseURL: options.BaseURL, + caller: core.NewCaller(options.HTTPClient), + header: options.ToHeader(), + Datacenters: datacenters.NewClient(opts...), + Namespaces: namespaces.NewClient(opts...), + RunnerConfigs: runnerconfigs.NewClient(opts...), + Runners: runners.NewClient(opts...), } } diff --git a/sdks/go/api-full/namespaces_runner_configs.go b/sdks/go/api-full/namespaces_runner_configs.go deleted file mode 100644 index b354881a0b..0000000000 --- a/sdks/go/api-full/namespaces_runner_configs.go +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -type NamespacesRunnerConfigsListRequest struct { - Limit *int `json:"-"` - Cursor *string `json:"-"` - Variant *NamespacesRunnerConfigVariant `json:"-"` -} diff --git a/sdks/go/api-full/runner_configs.go b/sdks/go/api-full/runner_configs.go new file mode 100644 index 0000000000..b4d6134702 --- /dev/null +++ b/sdks/go/api-full/runner_configs.go @@ -0,0 +1,61 @@ +// This file was auto-generated by Fern from our API Definition. + +package api + +import ( + json "encoding/json" + fmt "fmt" + core "sdk/core" +) + +type RunnerConfigsDeleteRequest struct { + Namespace string `json:"-"` +} + +type RunnerConfigsListRequest struct { + Namespace string `json:"-"` + Limit *int `json:"-"` + Cursor *string `json:"-"` + Variant *RunnerConfigVariant `json:"-"` + RunnerName []*string `json:"-"` +} + +type RunnerConfigsUpsertRequestServerless struct { + MaxRunners int `json:"max_runners"` + MinRunners int `json:"min_runners"` + // Seconds. + RequestLifespan int `json:"request_lifespan"` + RunnersMargin int `json:"runners_margin"` + SlotsPerRunner int `json:"slots_per_runner"` + Url string `json:"url"` + + _rawJSON json.RawMessage +} + +func (r *RunnerConfigsUpsertRequestServerless) UnmarshalJSON(data []byte) error { + type unmarshaler RunnerConfigsUpsertRequestServerless + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *r = RunnerConfigsUpsertRequestServerless(value) + r._rawJSON = json.RawMessage(data) + return nil +} + +func (r *RunnerConfigsUpsertRequestServerless) String() string { + if len(r._rawJSON) > 0 { + if value, err := core.StringifyJSON(r._rawJSON); err == nil { + return value + } + } + if value, err := core.StringifyJSON(r); err == nil { + return value + } + return fmt.Sprintf("%#v", r) +} + +type RunnerConfigsUpsertRequest struct { + Namespace string `json:"-"` + Serverless *RunnerConfigsUpsertRequestServerless `json:"serverless,omitempty"` +} diff --git a/sdks/go/api-full/namespacesrunnerconfigs/client.go b/sdks/go/api-full/runnerconfigs/client.go similarity index 53% rename from sdks/go/api-full/namespacesrunnerconfigs/client.go rename to sdks/go/api-full/runnerconfigs/client.go index 66a1816e48..d09d4fe758 100644 --- a/sdks/go/api-full/namespacesrunnerconfigs/client.go +++ b/sdks/go/api-full/runnerconfigs/client.go @@ -1,6 +1,6 @@ // This file was auto-generated by Fern from our API Definition. -package namespacesrunnerconfigs +package runnerconfigs import ( context "context" @@ -29,14 +29,15 @@ func NewClient(opts ...core.ClientOption) *Client { } } -func (c *Client) List(ctx context.Context, namespaceId sdk.RivetId, request *sdk.NamespacesRunnerConfigsListRequest) (*sdk.NamespacesRunnerConfigsListResponse, error) { +func (c *Client) List(ctx context.Context, request *sdk.RunnerConfigsListRequest) (*sdk.RunnerConfigsListResponse, error) { baseURL := "" if c.baseURL != "" { baseURL = c.baseURL } - endpointURL := fmt.Sprintf(baseURL+"/"+"namespaces/%v/runner-configs", namespaceId) + endpointURL := baseURL + "/" + "runner-configs" queryParams := make(url.Values) + queryParams.Add("namespace", fmt.Sprintf("%v", request.Namespace)) if request.Limit != nil { queryParams.Add("limit", fmt.Sprintf("%v", *request.Limit)) } @@ -46,11 +47,14 @@ func (c *Client) List(ctx context.Context, namespaceId sdk.RivetId, request *sdk if request.Variant != nil { queryParams.Add("variant", fmt.Sprintf("%v", *request.Variant)) } + for _, value := range request.RunnerName { + queryParams.Add("runner_name", fmt.Sprintf("%v", *value)) + } if len(queryParams) > 0 { endpointURL += "?" + queryParams.Encode() } - var response *sdk.NamespacesRunnerConfigsListResponse + var response *sdk.RunnerConfigsListResponse if err := c.caller.Call( ctx, &core.CallParams{ @@ -65,36 +69,20 @@ func (c *Client) List(ctx context.Context, namespaceId sdk.RivetId, request *sdk return response, nil } -func (c *Client) Get(ctx context.Context, namespaceId sdk.RivetId, runnerName string) (*sdk.NamespacesRunnerConfigsGetResponse, error) { +func (c *Client) Upsert(ctx context.Context, runnerName string, request *sdk.RunnerConfigsUpsertRequest) (sdk.RunnerConfigsUpsertResponse, error) { baseURL := "" if c.baseURL != "" { baseURL = c.baseURL } - endpointURL := fmt.Sprintf(baseURL+"/"+"namespaces/%v/runner-configs/%v", namespaceId, runnerName) - - var response *sdk.NamespacesRunnerConfigsGetResponse - if err := c.caller.Call( - ctx, - &core.CallParams{ - URL: endpointURL, - Method: http.MethodGet, - Headers: c.header, - Response: &response, - }, - ); err != nil { - return nil, err - } - return response, nil -} + endpointURL := fmt.Sprintf(baseURL+"/"+"runner-configs/%v", runnerName) -func (c *Client) Upsert(ctx context.Context, namespaceId sdk.RivetId, runnerName string, request sdk.NamespacesRunnerConfigsUpsertRequest) (sdk.NamespacesRunnerConfigsUpsertResponse, error) { - baseURL := "" - if c.baseURL != "" { - baseURL = c.baseURL + queryParams := make(url.Values) + queryParams.Add("namespace", fmt.Sprintf("%v", request.Namespace)) + if len(queryParams) > 0 { + endpointURL += "?" + queryParams.Encode() } - endpointURL := fmt.Sprintf(baseURL+"/"+"namespaces/%v/runner-configs/%v", namespaceId, runnerName) - var response sdk.NamespacesRunnerConfigsUpsertResponse + var response sdk.RunnerConfigsUpsertResponse if err := c.caller.Call( ctx, &core.CallParams{ @@ -110,14 +98,20 @@ func (c *Client) Upsert(ctx context.Context, namespaceId sdk.RivetId, runnerName return response, nil } -func (c *Client) Delete(ctx context.Context, namespaceId sdk.RivetId, runnerName string) (sdk.NamespacesRunnerConfigsDeleteResponse, error) { +func (c *Client) Delete(ctx context.Context, runnerName string, request *sdk.RunnerConfigsDeleteRequest) (sdk.RunnerConfigsDeleteResponse, error) { baseURL := "" if c.baseURL != "" { baseURL = c.baseURL } - endpointURL := fmt.Sprintf(baseURL+"/"+"namespaces/%v/runner-configs/%v", namespaceId, runnerName) + endpointURL := fmt.Sprintf(baseURL+"/"+"runner-configs/%v", runnerName) + + queryParams := make(url.Values) + queryParams.Add("namespace", fmt.Sprintf("%v", request.Namespace)) + if len(queryParams) > 0 { + endpointURL += "?" + queryParams.Encode() + } - var response sdk.NamespacesRunnerConfigsDeleteResponse + var response sdk.RunnerConfigsDeleteResponse if err := c.caller.Call( ctx, &core.CallParams{ diff --git a/sdks/go/api-full/types.go b/sdks/go/api-full/types.go index 6b9809deef..7b34443d1d 100644 --- a/sdks/go/api-full/types.go +++ b/sdks/go/api-full/types.go @@ -552,200 +552,167 @@ func (n *NamespacesListResponse) String() string { return fmt.Sprintf("%#v", n) } -type NamespacesRunnerConfig struct { - Serverless *NamespacesRunnerConfigServerless `json:"serverless,omitempty"` - - _rawJSON json.RawMessage -} - -func (n *NamespacesRunnerConfig) UnmarshalJSON(data []byte) error { - type unmarshaler NamespacesRunnerConfig - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *n = NamespacesRunnerConfig(value) - n._rawJSON = json.RawMessage(data) - return nil -} - -func (n *NamespacesRunnerConfig) String() string { - if len(n._rawJSON) > 0 { - if value, err := core.StringifyJSON(n._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(n); err == nil { - return value - } - return fmt.Sprintf("%#v", n) -} - -type NamespacesRunnerConfigServerless struct { - MaxRunners int `json:"max_runners"` - MinRunners int `json:"min_runners"` - // Seconds. - RequestLifespan int `json:"request_lifespan"` - RunnersMargin int `json:"runners_margin"` - SlotsPerRunner int `json:"slots_per_runner"` - Url string `json:"url"` +type Pagination struct { + Cursor *string `json:"cursor,omitempty"` _rawJSON json.RawMessage } -func (n *NamespacesRunnerConfigServerless) UnmarshalJSON(data []byte) error { - type unmarshaler NamespacesRunnerConfigServerless +func (p *Pagination) UnmarshalJSON(data []byte) error { + type unmarshaler Pagination var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *n = NamespacesRunnerConfigServerless(value) - n._rawJSON = json.RawMessage(data) + *p = Pagination(value) + p._rawJSON = json.RawMessage(data) return nil } -func (n *NamespacesRunnerConfigServerless) String() string { - if len(n._rawJSON) > 0 { - if value, err := core.StringifyJSON(n._rawJSON); err == nil { +func (p *Pagination) String() string { + if len(p._rawJSON) > 0 { + if value, err := core.StringifyJSON(p._rawJSON); err == nil { return value } } - if value, err := core.StringifyJSON(n); err == nil { + if value, err := core.StringifyJSON(p); err == nil { return value } - return fmt.Sprintf("%#v", n) + return fmt.Sprintf("%#v", p) } -type NamespacesRunnerConfigVariant = string - -type NamespacesRunnerConfigsDeleteResponse = map[string]interface{} +type RivetId = string -type NamespacesRunnerConfigsGetResponse struct { - RunnerConfig *NamespacesRunnerConfig `json:"runner_config,omitempty"` +type Runner struct { + CreateTs int64 `json:"create_ts"` + Datacenter string `json:"datacenter"` + DrainTs *int64 `json:"drain_ts,omitempty"` + Key string `json:"key"` + LastConnectedTs *int64 `json:"last_connected_ts,omitempty"` + LastPingTs int64 `json:"last_ping_ts"` + LastRtt int `json:"last_rtt"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + Name string `json:"name"` + NamespaceId RivetId `json:"namespace_id"` + RemainingSlots int `json:"remaining_slots"` + RunnerId RivetId `json:"runner_id"` + StopTs *int64 `json:"stop_ts,omitempty"` + TotalSlots int `json:"total_slots"` + Version int `json:"version"` _rawJSON json.RawMessage } -func (n *NamespacesRunnerConfigsGetResponse) UnmarshalJSON(data []byte) error { - type unmarshaler NamespacesRunnerConfigsGetResponse +func (r *Runner) UnmarshalJSON(data []byte) error { + type unmarshaler Runner var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *n = NamespacesRunnerConfigsGetResponse(value) - n._rawJSON = json.RawMessage(data) + *r = Runner(value) + r._rawJSON = json.RawMessage(data) return nil } -func (n *NamespacesRunnerConfigsGetResponse) String() string { - if len(n._rawJSON) > 0 { - if value, err := core.StringifyJSON(n._rawJSON); err == nil { +func (r *Runner) String() string { + if len(r._rawJSON) > 0 { + if value, err := core.StringifyJSON(r._rawJSON); err == nil { return value } } - if value, err := core.StringifyJSON(n); err == nil { + if value, err := core.StringifyJSON(r); err == nil { return value } - return fmt.Sprintf("%#v", n) + return fmt.Sprintf("%#v", r) } -type NamespacesRunnerConfigsListResponse struct { - Pagination *Pagination `json:"pagination,omitempty"` - RunnerConfigs map[string]*NamespacesRunnerConfig `json:"runner_configs,omitempty"` +type RunnerConfig struct { + Serverless *RunnerConfigServerless `json:"serverless,omitempty"` _rawJSON json.RawMessage } -func (n *NamespacesRunnerConfigsListResponse) UnmarshalJSON(data []byte) error { - type unmarshaler NamespacesRunnerConfigsListResponse +func (r *RunnerConfig) UnmarshalJSON(data []byte) error { + type unmarshaler RunnerConfig var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *n = NamespacesRunnerConfigsListResponse(value) - n._rawJSON = json.RawMessage(data) + *r = RunnerConfig(value) + r._rawJSON = json.RawMessage(data) return nil } -func (n *NamespacesRunnerConfigsListResponse) String() string { - if len(n._rawJSON) > 0 { - if value, err := core.StringifyJSON(n._rawJSON); err == nil { +func (r *RunnerConfig) String() string { + if len(r._rawJSON) > 0 { + if value, err := core.StringifyJSON(r._rawJSON); err == nil { return value } } - if value, err := core.StringifyJSON(n); err == nil { + if value, err := core.StringifyJSON(r); err == nil { return value } - return fmt.Sprintf("%#v", n) + return fmt.Sprintf("%#v", r) } -type NamespacesRunnerConfigsUpsertRequest = *NamespacesRunnerConfig - -type NamespacesRunnerConfigsUpsertResponse = map[string]interface{} - -type Pagination struct { - Cursor *string `json:"cursor,omitempty"` +type RunnerConfigServerless struct { + MaxRunners int `json:"max_runners"` + MinRunners int `json:"min_runners"` + // Seconds. + RequestLifespan int `json:"request_lifespan"` + RunnersMargin int `json:"runners_margin"` + SlotsPerRunner int `json:"slots_per_runner"` + Url string `json:"url"` _rawJSON json.RawMessage } -func (p *Pagination) UnmarshalJSON(data []byte) error { - type unmarshaler Pagination +func (r *RunnerConfigServerless) UnmarshalJSON(data []byte) error { + type unmarshaler RunnerConfigServerless var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = Pagination(value) - p._rawJSON = json.RawMessage(data) + *r = RunnerConfigServerless(value) + r._rawJSON = json.RawMessage(data) return nil } -func (p *Pagination) String() string { - if len(p._rawJSON) > 0 { - if value, err := core.StringifyJSON(p._rawJSON); err == nil { +func (r *RunnerConfigServerless) String() string { + if len(r._rawJSON) > 0 { + if value, err := core.StringifyJSON(r._rawJSON); err == nil { return value } } - if value, err := core.StringifyJSON(p); err == nil { + if value, err := core.StringifyJSON(r); err == nil { return value } - return fmt.Sprintf("%#v", p) + return fmt.Sprintf("%#v", r) } -type RivetId = string +type RunnerConfigVariant = string -type Runner struct { - CreateTs int64 `json:"create_ts"` - Datacenter string `json:"datacenter"` - DrainTs *int64 `json:"drain_ts,omitempty"` - Key string `json:"key"` - LastConnectedTs *int64 `json:"last_connected_ts,omitempty"` - LastPingTs int64 `json:"last_ping_ts"` - LastRtt int `json:"last_rtt"` - Metadata map[string]interface{} `json:"metadata,omitempty"` - Name string `json:"name"` - NamespaceId RivetId `json:"namespace_id"` - RemainingSlots int `json:"remaining_slots"` - RunnerId RivetId `json:"runner_id"` - StopTs *int64 `json:"stop_ts,omitempty"` - TotalSlots int `json:"total_slots"` - Version int `json:"version"` +type RunnerConfigsDeleteResponse = map[string]interface{} + +type RunnerConfigsListResponse struct { + Pagination *Pagination `json:"pagination,omitempty"` + RunnerConfigs map[string]*RunnerConfig `json:"runner_configs,omitempty"` _rawJSON json.RawMessage } -func (r *Runner) UnmarshalJSON(data []byte) error { - type unmarshaler Runner +func (r *RunnerConfigsListResponse) UnmarshalJSON(data []byte) error { + type unmarshaler RunnerConfigsListResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *r = Runner(value) + *r = RunnerConfigsListResponse(value) r._rawJSON = json.RawMessage(data) return nil } -func (r *Runner) String() string { +func (r *RunnerConfigsListResponse) String() string { if len(r._rawJSON) > 0 { if value, err := core.StringifyJSON(r._rawJSON); err == nil { return value @@ -757,6 +724,8 @@ func (r *Runner) String() string { return fmt.Sprintf("%#v", r) } +type RunnerConfigsUpsertResponse = map[string]interface{} + type RunnersGetResponse struct { Runner *Runner `json:"runner,omitempty"` diff --git a/sdks/rust/api-full/rust/.openapi-generator/FILES b/sdks/rust/api-full/rust/.openapi-generator/FILES index fa8bc99828..637fb4e031 100644 --- a/sdks/rust/api-full/rust/.openapi-generator/FILES +++ b/sdks/rust/api-full/rust/.openapi-generator/FILES @@ -33,14 +33,14 @@ docs/NamespacesCreateRequest.md docs/NamespacesCreateResponse.md docs/NamespacesGetResponse.md docs/NamespacesListResponse.md -docs/NamespacesRunnerConfig.md -docs/NamespacesRunnerConfigServerless.md -docs/NamespacesRunnerConfigVariant.md -docs/NamespacesRunnerConfigsApi.md -docs/NamespacesRunnerConfigsGetResponse.md -docs/NamespacesRunnerConfigsListResponse.md docs/Pagination.md docs/Runner.md +docs/RunnerConfig.md +docs/RunnerConfigServerless.md +docs/RunnerConfigVariant.md +docs/RunnerConfigsApi.md +docs/RunnerConfigsListResponse.md +docs/RunnerConfigsUpsertRequest.md docs/RunnersApi.md docs/RunnersGetResponse.md docs/RunnersListNamesResponse.md @@ -58,7 +58,7 @@ src/apis/configuration.rs src/apis/datacenters_api.rs src/apis/mod.rs src/apis/namespaces_api.rs -src/apis/namespaces_runner_configs_api.rs +src/apis/runner_configs_api.rs src/apis/runners_api.rs src/lib.rs src/models/actor.rs @@ -82,13 +82,13 @@ src/models/namespaces_create_request.rs src/models/namespaces_create_response.rs src/models/namespaces_get_response.rs src/models/namespaces_list_response.rs -src/models/namespaces_runner_config.rs -src/models/namespaces_runner_config_serverless.rs -src/models/namespaces_runner_config_variant.rs -src/models/namespaces_runner_configs_get_response.rs -src/models/namespaces_runner_configs_list_response.rs src/models/pagination.rs src/models/runner.rs +src/models/runner_config.rs +src/models/runner_config_serverless.rs +src/models/runner_config_variant.rs +src/models/runner_configs_list_response.rs +src/models/runner_configs_upsert_request.rs src/models/runners_get_response.rs src/models/runners_list_names_response.rs src/models/runners_list_response.rs diff --git a/sdks/rust/api-full/rust/Cargo.toml b/sdks/rust/api-full/rust/Cargo.toml index 5599d5782e..17d0140cc3 100644 --- a/sdks/rust/api-full/rust/Cargo.toml +++ b/sdks/rust/api-full/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rivet-api-full" -version = "25.6.1" +version = "25.7.0" authors = ["developer@rivet.gg"] description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)" license = "Apache-2.0" diff --git a/sdks/rust/api-full/rust/README.md b/sdks/rust/api-full/rust/README.md index 753b61de4b..ba49e0e0e7 100644 --- a/sdks/rust/api-full/rust/README.md +++ b/sdks/rust/api-full/rust/README.md @@ -7,8 +7,8 @@ No description provided (generated by Openapi Generator https://github.com/opena This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. -- API version: 25.6.1 -- Package version: 25.6.1 +- API version: 25.7.0 +- Package version: 25.7.0 - Generator version: 7.14.0 - Build package: `org.openapitools.codegen.languages.RustClientCodegen` @@ -38,10 +38,9 @@ Class | Method | HTTP request | Description *NamespacesApi* | [**namespaces_create**](docs/NamespacesApi.md#namespaces_create) | **POST** /namespaces | *NamespacesApi* | [**namespaces_get**](docs/NamespacesApi.md#namespaces_get) | **GET** /namespaces/{namespace_id} | *NamespacesApi* | [**namespaces_list**](docs/NamespacesApi.md#namespaces_list) | **GET** /namespaces | -*NamespacesRunnerConfigsApi* | [**namespaces_runner_configs_delete**](docs/NamespacesRunnerConfigsApi.md#namespaces_runner_configs_delete) | **DELETE** /namespaces/{namespace_id}/runner-configs/{runner_name} | -*NamespacesRunnerConfigsApi* | [**namespaces_runner_configs_get**](docs/NamespacesRunnerConfigsApi.md#namespaces_runner_configs_get) | **GET** /namespaces/{namespace_id}/runner-configs/{runner_name} | -*NamespacesRunnerConfigsApi* | [**namespaces_runner_configs_list**](docs/NamespacesRunnerConfigsApi.md#namespaces_runner_configs_list) | **GET** /namespaces/{namespace_id}/runner-configs | -*NamespacesRunnerConfigsApi* | [**namespaces_runner_configs_upsert**](docs/NamespacesRunnerConfigsApi.md#namespaces_runner_configs_upsert) | **PUT** /namespaces/{namespace_id}/runner-configs/{runner_name} | +*RunnerConfigsApi* | [**runner_configs_delete**](docs/RunnerConfigsApi.md#runner_configs_delete) | **DELETE** /runner-configs/{runner_name} | +*RunnerConfigsApi* | [**runner_configs_list**](docs/RunnerConfigsApi.md#runner_configs_list) | **GET** /runner-configs | +*RunnerConfigsApi* | [**runner_configs_upsert**](docs/RunnerConfigsApi.md#runner_configs_upsert) | **PUT** /runner-configs/{runner_name} | *RunnersApi* | [**runners_get**](docs/RunnersApi.md#runners_get) | **GET** /runners/{runner_id} | *RunnersApi* | [**runners_list**](docs/RunnersApi.md#runners_list) | **GET** /runners | *RunnersApi* | [**runners_list_names**](docs/RunnersApi.md#runners_list_names) | **GET** /runners/names | ## Datacenter Round Trips @@ -69,13 +68,13 @@ Class | Method | HTTP request | Description - [NamespacesCreateResponse](docs/NamespacesCreateResponse.md) - [NamespacesGetResponse](docs/NamespacesGetResponse.md) - [NamespacesListResponse](docs/NamespacesListResponse.md) - - [NamespacesRunnerConfig](docs/NamespacesRunnerConfig.md) - - [NamespacesRunnerConfigServerless](docs/NamespacesRunnerConfigServerless.md) - - [NamespacesRunnerConfigVariant](docs/NamespacesRunnerConfigVariant.md) - - [NamespacesRunnerConfigsGetResponse](docs/NamespacesRunnerConfigsGetResponse.md) - - [NamespacesRunnerConfigsListResponse](docs/NamespacesRunnerConfigsListResponse.md) - [Pagination](docs/Pagination.md) - [Runner](docs/Runner.md) + - [RunnerConfig](docs/RunnerConfig.md) + - [RunnerConfigServerless](docs/RunnerConfigServerless.md) + - [RunnerConfigVariant](docs/RunnerConfigVariant.md) + - [RunnerConfigsListResponse](docs/RunnerConfigsListResponse.md) + - [RunnerConfigsUpsertRequest](docs/RunnerConfigsUpsertRequest.md) - [RunnersGetResponse](docs/RunnersGetResponse.md) - [RunnersListNamesResponse](docs/RunnersListNamesResponse.md) - [RunnersListResponse](docs/RunnersListResponse.md) diff --git a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigsApi.md b/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigsApi.md deleted file mode 100644 index 51593e3784..0000000000 --- a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigsApi.md +++ /dev/null @@ -1,131 +0,0 @@ -# \NamespacesRunnerConfigsApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**namespaces_runner_configs_delete**](NamespacesRunnerConfigsApi.md#namespaces_runner_configs_delete) | **DELETE** /namespaces/{namespace_id}/runner-configs/{runner_name} | -[**namespaces_runner_configs_get**](NamespacesRunnerConfigsApi.md#namespaces_runner_configs_get) | **GET** /namespaces/{namespace_id}/runner-configs/{runner_name} | -[**namespaces_runner_configs_list**](NamespacesRunnerConfigsApi.md#namespaces_runner_configs_list) | **GET** /namespaces/{namespace_id}/runner-configs | -[**namespaces_runner_configs_upsert**](NamespacesRunnerConfigsApi.md#namespaces_runner_configs_upsert) | **PUT** /namespaces/{namespace_id}/runner-configs/{runner_name} | - - - -## namespaces_runner_configs_delete - -> serde_json::Value namespaces_runner_configs_delete(namespace_id, runner_name) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**namespace_id** | **String** | | [required] | -**runner_name** | **String** | | [required] | - -### Return type - -[**serde_json::Value**](serde_json::Value.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## namespaces_runner_configs_get - -> models::NamespacesRunnerConfigsGetResponse namespaces_runner_configs_get(namespace_id, runner_name) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**namespace_id** | **String** | | [required] | -**runner_name** | **String** | | [required] | - -### Return type - -[**models::NamespacesRunnerConfigsGetResponse**](NamespacesRunnerConfigsGetResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## namespaces_runner_configs_list - -> models::NamespacesRunnerConfigsListResponse namespaces_runner_configs_list(namespace_id, limit, cursor, variant) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**namespace_id** | **String** | | [required] | -**limit** | Option<**i32**> | | | -**cursor** | Option<**String**> | | | -**variant** | Option<[**NamespacesRunnerConfigVariant**](.md)> | | | - -### Return type - -[**models::NamespacesRunnerConfigsListResponse**](NamespacesRunnerConfigsListResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -## namespaces_runner_configs_upsert - -> serde_json::Value namespaces_runner_configs_upsert(namespace_id, runner_name, body) - - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**namespace_id** | **String** | | [required] | -**runner_name** | **String** | | [required] | -**body** | **models::NamespacesRunnerConfig** | | [required] | - -### Return type - -[**serde_json::Value**](serde_json::Value.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigsGetResponse.md b/sdks/rust/api-full/rust/docs/RunnerConfig.md similarity index 68% rename from sdks/rust/api-full/rust/docs/NamespacesRunnerConfigsGetResponse.md rename to sdks/rust/api-full/rust/docs/RunnerConfig.md index 61a94ca2e5..c622fecd4f 100644 --- a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigsGetResponse.md +++ b/sdks/rust/api-full/rust/docs/RunnerConfig.md @@ -1,10 +1,10 @@ -# NamespacesRunnerConfigsGetResponse +# RunnerConfig ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**runner_config** | [**models::NamespacesRunnerConfig**](NamespacesRunnerConfig.md) | | +**serverless** | [**models::RunnerConfigServerless**](RunnerConfig_serverless.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigServerless.md b/sdks/rust/api-full/rust/docs/RunnerConfigServerless.md similarity index 93% rename from sdks/rust/api-full/rust/docs/NamespacesRunnerConfigServerless.md rename to sdks/rust/api-full/rust/docs/RunnerConfigServerless.md index 57268226cb..1cf2aaae70 100644 --- a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigServerless.md +++ b/sdks/rust/api-full/rust/docs/RunnerConfigServerless.md @@ -1,4 +1,4 @@ -# NamespacesRunnerConfigServerless +# RunnerConfigServerless ## Properties diff --git a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigVariant.md b/sdks/rust/api-full/rust/docs/RunnerConfigVariant.md similarity index 88% rename from sdks/rust/api-full/rust/docs/NamespacesRunnerConfigVariant.md rename to sdks/rust/api-full/rust/docs/RunnerConfigVariant.md index f88e77ae77..31e3c303e2 100644 --- a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigVariant.md +++ b/sdks/rust/api-full/rust/docs/RunnerConfigVariant.md @@ -1,4 +1,4 @@ -# NamespacesRunnerConfigVariant +# RunnerConfigVariant ## Enum Variants diff --git a/sdks/rust/api-full/rust/docs/RunnerConfigsApi.md b/sdks/rust/api-full/rust/docs/RunnerConfigsApi.md new file mode 100644 index 0000000000..b055642264 --- /dev/null +++ b/sdks/rust/api-full/rust/docs/RunnerConfigsApi.md @@ -0,0 +1,102 @@ +# \RunnerConfigsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**runner_configs_delete**](RunnerConfigsApi.md#runner_configs_delete) | **DELETE** /runner-configs/{runner_name} | +[**runner_configs_list**](RunnerConfigsApi.md#runner_configs_list) | **GET** /runner-configs | +[**runner_configs_upsert**](RunnerConfigsApi.md#runner_configs_upsert) | **PUT** /runner-configs/{runner_name} | + + + +## runner_configs_delete + +> serde_json::Value runner_configs_delete(runner_name, namespace) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**runner_name** | **String** | | [required] | +**namespace** | **String** | | [required] | + +### Return type + +[**serde_json::Value**](serde_json::Value.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## runner_configs_list + +> models::RunnerConfigsListResponse runner_configs_list(namespace, limit, cursor, variant, runner_name) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**namespace** | **String** | | [required] | +**limit** | Option<**i32**> | | | +**cursor** | Option<**String**> | | | +**variant** | Option<[**RunnerConfigVariant**](.md)> | | | +**runner_name** | Option<[**Vec**](String.md)> | | | + +### Return type + +[**models::RunnerConfigsListResponse**](RunnerConfigsListResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## runner_configs_upsert + +> serde_json::Value runner_configs_upsert(runner_name, namespace, runner_configs_upsert_request) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**runner_name** | **String** | | [required] | +**namespace** | **String** | | [required] | +**runner_configs_upsert_request** | [**RunnerConfigsUpsertRequest**](RunnerConfigsUpsertRequest.md) | | [required] | + +### Return type + +[**serde_json::Value**](serde_json::Value.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigsListResponse.md b/sdks/rust/api-full/rust/docs/RunnerConfigsListResponse.md similarity index 80% rename from sdks/rust/api-full/rust/docs/NamespacesRunnerConfigsListResponse.md rename to sdks/rust/api-full/rust/docs/RunnerConfigsListResponse.md index 75b755aa83..6e852c981e 100644 --- a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfigsListResponse.md +++ b/sdks/rust/api-full/rust/docs/RunnerConfigsListResponse.md @@ -1,11 +1,11 @@ -# NamespacesRunnerConfigsListResponse +# RunnerConfigsListResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pagination** | [**models::Pagination**](Pagination.md) | | -**runner_configs** | [**std::collections::HashMap**](NamespacesRunnerConfig.md) | | +**runner_configs** | [**std::collections::HashMap**](RunnerConfig.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfig.md b/sdks/rust/api-full/rust/docs/RunnerConfigsUpsertRequest.md similarity index 67% rename from sdks/rust/api-full/rust/docs/NamespacesRunnerConfig.md rename to sdks/rust/api-full/rust/docs/RunnerConfigsUpsertRequest.md index 7db4ba904c..37fa36f9fd 100644 --- a/sdks/rust/api-full/rust/docs/NamespacesRunnerConfig.md +++ b/sdks/rust/api-full/rust/docs/RunnerConfigsUpsertRequest.md @@ -1,10 +1,10 @@ -# NamespacesRunnerConfig +# RunnerConfigsUpsertRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**serverless** | [**models::NamespacesRunnerConfigServerless**](NamespacesRunnerConfig_serverless.md) | | +**serverless** | [**models::RunnerConfigServerless**](RunnerConfig_serverless.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/rust/api-full/rust/src/apis/actors_create_api.rs b/sdks/rust/api-full/rust/src/apis/actors_create_api.rs index 726243a9d0..2fb6bfc6ce 100644 --- a/sdks/rust/api-full/rust/src/apis/actors_create_api.rs +++ b/sdks/rust/api-full/rust/src/apis/actors_create_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/apis/actors_delete_api.rs b/sdks/rust/api-full/rust/src/apis/actors_delete_api.rs index 631526ba33..a79faed0c8 100644 --- a/sdks/rust/api-full/rust/src/apis/actors_delete_api.rs +++ b/sdks/rust/api-full/rust/src/apis/actors_delete_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/apis/actors_get_api.rs b/sdks/rust/api-full/rust/src/apis/actors_get_api.rs index 43b2b7d72d..7d75c1e2b9 100644 --- a/sdks/rust/api-full/rust/src/apis/actors_get_api.rs +++ b/sdks/rust/api-full/rust/src/apis/actors_get_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/apis/actors_get_by_id_api.rs b/sdks/rust/api-full/rust/src/apis/actors_get_by_id_api.rs index 5e01502154..54d4693377 100644 --- a/sdks/rust/api-full/rust/src/apis/actors_get_by_id_api.rs +++ b/sdks/rust/api-full/rust/src/apis/actors_get_by_id_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/apis/actors_get_or_create_api.rs b/sdks/rust/api-full/rust/src/apis/actors_get_or_create_api.rs index 499f183ddf..a5a315be95 100644 --- a/sdks/rust/api-full/rust/src/apis/actors_get_or_create_api.rs +++ b/sdks/rust/api-full/rust/src/apis/actors_get_or_create_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/apis/actors_get_or_create_by_id_api.rs b/sdks/rust/api-full/rust/src/apis/actors_get_or_create_by_id_api.rs index 98e33ae3a4..7a7cef69b8 100644 --- a/sdks/rust/api-full/rust/src/apis/actors_get_or_create_by_id_api.rs +++ b/sdks/rust/api-full/rust/src/apis/actors_get_or_create_by_id_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/apis/actors_list_api.rs b/sdks/rust/api-full/rust/src/apis/actors_list_api.rs index cfeafd02eb..6be0a5be93 100644 --- a/sdks/rust/api-full/rust/src/apis/actors_list_api.rs +++ b/sdks/rust/api-full/rust/src/apis/actors_list_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/apis/actors_list_names_api.rs b/sdks/rust/api-full/rust/src/apis/actors_list_names_api.rs index bff1d5687b..69875312e7 100644 --- a/sdks/rust/api-full/rust/src/apis/actors_list_names_api.rs +++ b/sdks/rust/api-full/rust/src/apis/actors_list_names_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/apis/configuration.rs b/sdks/rust/api-full/rust/src/apis/configuration.rs index 69d64ba0ec..42d4013267 100644 --- a/sdks/rust/api-full/rust/src/apis/configuration.rs +++ b/sdks/rust/api-full/rust/src/apis/configuration.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ @@ -40,7 +40,7 @@ impl Default for Configuration { fn default() -> Self { Configuration { base_path: "http://localhost".to_owned(), - user_agent: Some("OpenAPI-Generator/25.6.1/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/25.7.0/rust".to_owned()), client: reqwest::Client::new(), basic_auth: None, oauth_access_token: None, diff --git a/sdks/rust/api-full/rust/src/apis/datacenters_api.rs b/sdks/rust/api-full/rust/src/apis/datacenters_api.rs index 24fa919b34..bf40f38374 100644 --- a/sdks/rust/api-full/rust/src/apis/datacenters_api.rs +++ b/sdks/rust/api-full/rust/src/apis/datacenters_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/apis/mod.rs b/sdks/rust/api-full/rust/src/apis/mod.rs index cbd3ab7407..e2fc9daf6d 100644 --- a/sdks/rust/api-full/rust/src/apis/mod.rs +++ b/sdks/rust/api-full/rust/src/apis/mod.rs @@ -121,7 +121,7 @@ pub mod actors_list_api; pub mod actors_list_names_api; pub mod datacenters_api; pub mod namespaces_api; -pub mod namespaces_runner_configs_api; +pub mod runner_configs_api; pub mod runners_api; pub mod configuration; diff --git a/sdks/rust/api-full/rust/src/apis/namespaces_api.rs b/sdks/rust/api-full/rust/src/apis/namespaces_api.rs index 0a37a4661c..1eb08dc8d7 100644 --- a/sdks/rust/api-full/rust/src/apis/namespaces_api.rs +++ b/sdks/rust/api-full/rust/src/apis/namespaces_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/apis/namespaces_runner_configs_api.rs b/sdks/rust/api-full/rust/src/apis/runner_configs_api.rs similarity index 54% rename from sdks/rust/api-full/rust/src/apis/namespaces_runner_configs_api.rs rename to sdks/rust/api-full/rust/src/apis/runner_configs_api.rs index d5bbb484ff..45d22839ba 100644 --- a/sdks/rust/api-full/rust/src/apis/namespaces_runner_configs_api.rs +++ b/sdks/rust/api-full/rust/src/apis/runner_configs_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ @@ -15,43 +15,37 @@ use crate::{apis::ResponseContent, models}; use super::{Error, configuration, ContentType}; -/// struct for typed errors of method [`namespaces_runner_configs_delete`] +/// struct for typed errors of method [`runner_configs_delete`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum NamespacesRunnerConfigsDeleteError { +pub enum RunnerConfigsDeleteError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`namespaces_runner_configs_get`] +/// struct for typed errors of method [`runner_configs_list`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum NamespacesRunnerConfigsGetError { +pub enum RunnerConfigsListError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`namespaces_runner_configs_list`] +/// struct for typed errors of method [`runner_configs_upsert`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum NamespacesRunnerConfigsListError { - UnknownValue(serde_json::Value), -} - -/// struct for typed errors of method [`namespaces_runner_configs_upsert`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum NamespacesRunnerConfigsUpsertError { +pub enum RunnerConfigsUpsertError { UnknownValue(serde_json::Value), } -pub async fn namespaces_runner_configs_delete(configuration: &configuration::Configuration, namespace_id: &str, runner_name: &str) -> Result> { +pub async fn runner_configs_delete(configuration: &configuration::Configuration, runner_name: &str, namespace: &str) -> Result> { // add a prefix to parameters to efficiently prevent name collisions - let p_namespace_id = namespace_id; let p_runner_name = runner_name; + let p_namespace = namespace; - let uri_str = format!("{}/namespaces/{namespace_id}/runner-configs/{runner_name}", configuration.base_path, namespace_id=crate::apis::urlencode(p_namespace_id), runner_name=crate::apis::urlencode(p_runner_name)); + let uri_str = format!("{}/runner-configs/{runner_name}", configuration.base_path, runner_name=crate::apis::urlencode(p_runner_name)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + req_builder = req_builder.query(&[("namespace", &p_namespace.to_string())]); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } @@ -76,58 +70,23 @@ pub async fn namespaces_runner_configs_delete(configuration: &configuration::Con } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) - } -} - -pub async fn namespaces_runner_configs_get(configuration: &configuration::Configuration, namespace_id: &str, runner_name: &str) -> Result> { - // add a prefix to parameters to efficiently prevent name collisions - let p_namespace_id = namespace_id; - let p_runner_name = runner_name; - - let uri_str = format!("{}/namespaces/{namespace_id}/runner-configs/{runner_name}", configuration.base_path, namespace_id=crate::apis::urlencode(p_namespace_id), runner_name=crate::apis::urlencode(p_runner_name)); - let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - - if let Some(ref user_agent) = configuration.user_agent { - req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); - } - - let req = req_builder.build()?; - let resp = configuration.client.execute(req).await?; - - let status = resp.status(); - let content_type = resp - .headers() - .get("content-type") - .and_then(|v| v.to_str().ok()) - .unwrap_or("application/octet-stream"); - let content_type = super::ContentType::from(content_type); - - if !status.is_client_error() && !status.is_server_error() { - let content = resp.text().await?; - match content_type { - ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::NamespacesRunnerConfigsGetResponse`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::NamespacesRunnerConfigsGetResponse`")))), - } - } else { - let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -pub async fn namespaces_runner_configs_list(configuration: &configuration::Configuration, namespace_id: &str, limit: Option, cursor: Option<&str>, variant: Option) -> Result> { +pub async fn runner_configs_list(configuration: &configuration::Configuration, namespace: &str, limit: Option, cursor: Option<&str>, variant: Option, runner_name: Option>) -> Result> { // add a prefix to parameters to efficiently prevent name collisions - let p_namespace_id = namespace_id; + let p_namespace = namespace; let p_limit = limit; let p_cursor = cursor; let p_variant = variant; + let p_runner_name = runner_name; - let uri_str = format!("{}/namespaces/{namespace_id}/runner-configs", configuration.base_path, namespace_id=crate::apis::urlencode(p_namespace_id)); + let uri_str = format!("{}/runner-configs", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("namespace", &p_namespace.to_string())]); if let Some(ref param_value) = p_limit { req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); } @@ -137,6 +96,12 @@ pub async fn namespaces_runner_configs_list(configuration: &configuration::Confi if let Some(ref param_value) = p_variant { req_builder = req_builder.query(&[("variant", ¶m_value.to_string())]); } + if let Some(ref param_value) = p_runner_name { + req_builder = match "multi" { + "multi" => req_builder.query(¶m_value.into_iter().map(|p| ("runner_name".to_owned(), p.to_string())).collect::>()), + _ => req_builder.query(&[("runner_name", ¶m_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; + } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } @@ -156,29 +121,30 @@ pub async fn namespaces_runner_configs_list(configuration: &configuration::Confi let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::NamespacesRunnerConfigsListResponse`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::NamespacesRunnerConfigsListResponse`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RunnerConfigsListResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RunnerConfigsListResponse`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -pub async fn namespaces_runner_configs_upsert(configuration: &configuration::Configuration, namespace_id: &str, runner_name: &str, body: models::NamespacesRunnerConfig) -> Result> { +pub async fn runner_configs_upsert(configuration: &configuration::Configuration, runner_name: &str, namespace: &str, runner_configs_upsert_request: models::RunnerConfigsUpsertRequest) -> Result> { // add a prefix to parameters to efficiently prevent name collisions - let p_namespace_id = namespace_id; let p_runner_name = runner_name; - let p_body = body; + let p_namespace = namespace; + let p_runner_configs_upsert_request = runner_configs_upsert_request; - let uri_str = format!("{}/namespaces/{namespace_id}/runner-configs/{runner_name}", configuration.base_path, namespace_id=crate::apis::urlencode(p_namespace_id), runner_name=crate::apis::urlencode(p_runner_name)); + let uri_str = format!("{}/runner-configs/{runner_name}", configuration.base_path, runner_name=crate::apis::urlencode(p_runner_name)); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + req_builder = req_builder.query(&[("namespace", &p_namespace.to_string())]); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - req_builder = req_builder.json(&p_body); + req_builder = req_builder.json(&p_runner_configs_upsert_request); let req = req_builder.build()?; let resp = configuration.client.execute(req).await?; @@ -200,7 +166,7 @@ pub async fn namespaces_runner_configs_upsert(configuration: &configuration::Con } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } diff --git a/sdks/rust/api-full/rust/src/apis/runners_api.rs b/sdks/rust/api-full/rust/src/apis/runners_api.rs index 4a703ed2c1..15897860e7 100644 --- a/sdks/rust/api-full/rust/src/apis/runners_api.rs +++ b/sdks/rust/api-full/rust/src/apis/runners_api.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actor.rs b/sdks/rust/api-full/rust/src/models/actor.rs index aa77b86831..a70d8595d3 100644 --- a/sdks/rust/api-full/rust/src/models/actor.rs +++ b/sdks/rust/api-full/rust/src/models/actor.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actor_name.rs b/sdks/rust/api-full/rust/src/models/actor_name.rs index 6ebc210566..80e94a7f6e 100644 --- a/sdks/rust/api-full/rust/src/models/actor_name.rs +++ b/sdks/rust/api-full/rust/src/models/actor_name.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actors_create_request.rs b/sdks/rust/api-full/rust/src/models/actors_create_request.rs index 26971e6596..1f00a917c1 100644 --- a/sdks/rust/api-full/rust/src/models/actors_create_request.rs +++ b/sdks/rust/api-full/rust/src/models/actors_create_request.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actors_create_response.rs b/sdks/rust/api-full/rust/src/models/actors_create_response.rs index 8266305292..552fff3484 100644 --- a/sdks/rust/api-full/rust/src/models/actors_create_response.rs +++ b/sdks/rust/api-full/rust/src/models/actors_create_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actors_get_by_id_response.rs b/sdks/rust/api-full/rust/src/models/actors_get_by_id_response.rs index c314dcfee3..802548991a 100644 --- a/sdks/rust/api-full/rust/src/models/actors_get_by_id_response.rs +++ b/sdks/rust/api-full/rust/src/models/actors_get_by_id_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actors_get_or_create_by_id_request.rs b/sdks/rust/api-full/rust/src/models/actors_get_or_create_by_id_request.rs index 0a5a9ae464..aa448fa037 100644 --- a/sdks/rust/api-full/rust/src/models/actors_get_or_create_by_id_request.rs +++ b/sdks/rust/api-full/rust/src/models/actors_get_or_create_by_id_request.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actors_get_or_create_by_id_response.rs b/sdks/rust/api-full/rust/src/models/actors_get_or_create_by_id_response.rs index 88d2df9902..a6f8bad968 100644 --- a/sdks/rust/api-full/rust/src/models/actors_get_or_create_by_id_response.rs +++ b/sdks/rust/api-full/rust/src/models/actors_get_or_create_by_id_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actors_get_or_create_request.rs b/sdks/rust/api-full/rust/src/models/actors_get_or_create_request.rs index 1afa86f06f..91fef4cb84 100644 --- a/sdks/rust/api-full/rust/src/models/actors_get_or_create_request.rs +++ b/sdks/rust/api-full/rust/src/models/actors_get_or_create_request.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actors_get_or_create_response.rs b/sdks/rust/api-full/rust/src/models/actors_get_or_create_response.rs index c0839c13f3..98b2cc5e4b 100644 --- a/sdks/rust/api-full/rust/src/models/actors_get_or_create_response.rs +++ b/sdks/rust/api-full/rust/src/models/actors_get_or_create_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actors_get_response.rs b/sdks/rust/api-full/rust/src/models/actors_get_response.rs index 46e37a3148..c9c9996963 100644 --- a/sdks/rust/api-full/rust/src/models/actors_get_response.rs +++ b/sdks/rust/api-full/rust/src/models/actors_get_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actors_list_names_response.rs b/sdks/rust/api-full/rust/src/models/actors_list_names_response.rs index 38bf7a3c2c..d7b30eef5a 100644 --- a/sdks/rust/api-full/rust/src/models/actors_list_names_response.rs +++ b/sdks/rust/api-full/rust/src/models/actors_list_names_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/actors_list_response.rs b/sdks/rust/api-full/rust/src/models/actors_list_response.rs index c89eb21282..78499463b3 100644 --- a/sdks/rust/api-full/rust/src/models/actors_list_response.rs +++ b/sdks/rust/api-full/rust/src/models/actors_list_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/crash_policy.rs b/sdks/rust/api-full/rust/src/models/crash_policy.rs index 921e3f2bca..5ab95d51b2 100644 --- a/sdks/rust/api-full/rust/src/models/crash_policy.rs +++ b/sdks/rust/api-full/rust/src/models/crash_policy.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/datacenter.rs b/sdks/rust/api-full/rust/src/models/datacenter.rs index f3702a2bb6..6399e56d95 100644 --- a/sdks/rust/api-full/rust/src/models/datacenter.rs +++ b/sdks/rust/api-full/rust/src/models/datacenter.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/datacenters_list_response.rs b/sdks/rust/api-full/rust/src/models/datacenters_list_response.rs index 4ec73d25fd..05795eb0da 100644 --- a/sdks/rust/api-full/rust/src/models/datacenters_list_response.rs +++ b/sdks/rust/api-full/rust/src/models/datacenters_list_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/mod.rs b/sdks/rust/api-full/rust/src/models/mod.rs index 047d21e036..a3325072a3 100644 --- a/sdks/rust/api-full/rust/src/models/mod.rs +++ b/sdks/rust/api-full/rust/src/models/mod.rs @@ -38,20 +38,20 @@ pub mod namespaces_get_response; pub use self::namespaces_get_response::NamespacesGetResponse; pub mod namespaces_list_response; pub use self::namespaces_list_response::NamespacesListResponse; -pub mod namespaces_runner_config; -pub use self::namespaces_runner_config::NamespacesRunnerConfig; -pub mod namespaces_runner_config_serverless; -pub use self::namespaces_runner_config_serverless::NamespacesRunnerConfigServerless; -pub mod namespaces_runner_config_variant; -pub use self::namespaces_runner_config_variant::NamespacesRunnerConfigVariant; -pub mod namespaces_runner_configs_get_response; -pub use self::namespaces_runner_configs_get_response::NamespacesRunnerConfigsGetResponse; -pub mod namespaces_runner_configs_list_response; -pub use self::namespaces_runner_configs_list_response::NamespacesRunnerConfigsListResponse; pub mod pagination; pub use self::pagination::Pagination; pub mod runner; pub use self::runner::Runner; +pub mod runner_config; +pub use self::runner_config::RunnerConfig; +pub mod runner_config_serverless; +pub use self::runner_config_serverless::RunnerConfigServerless; +pub mod runner_config_variant; +pub use self::runner_config_variant::RunnerConfigVariant; +pub mod runner_configs_list_response; +pub use self::runner_configs_list_response::RunnerConfigsListResponse; +pub mod runner_configs_upsert_request; +pub use self::runner_configs_upsert_request::RunnerConfigsUpsertRequest; pub mod runners_get_response; pub use self::runners_get_response::RunnersGetResponse; pub mod runners_list_names_response; diff --git a/sdks/rust/api-full/rust/src/models/namespace.rs b/sdks/rust/api-full/rust/src/models/namespace.rs index 6fd4d636c7..305f3c98a6 100644 --- a/sdks/rust/api-full/rust/src/models/namespace.rs +++ b/sdks/rust/api-full/rust/src/models/namespace.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/namespaces_create_request.rs b/sdks/rust/api-full/rust/src/models/namespaces_create_request.rs index 56d93cdafc..c6f564b098 100644 --- a/sdks/rust/api-full/rust/src/models/namespaces_create_request.rs +++ b/sdks/rust/api-full/rust/src/models/namespaces_create_request.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/namespaces_create_response.rs b/sdks/rust/api-full/rust/src/models/namespaces_create_response.rs index c3b18cc403..d6298987e1 100644 --- a/sdks/rust/api-full/rust/src/models/namespaces_create_response.rs +++ b/sdks/rust/api-full/rust/src/models/namespaces_create_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/namespaces_get_response.rs b/sdks/rust/api-full/rust/src/models/namespaces_get_response.rs index c80611f1bf..aeaed5e703 100644 --- a/sdks/rust/api-full/rust/src/models/namespaces_get_response.rs +++ b/sdks/rust/api-full/rust/src/models/namespaces_get_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/namespaces_list_response.rs b/sdks/rust/api-full/rust/src/models/namespaces_list_response.rs index 5557db89de..9c57c11515 100644 --- a/sdks/rust/api-full/rust/src/models/namespaces_list_response.rs +++ b/sdks/rust/api-full/rust/src/models/namespaces_list_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/namespaces_runner_configs_get_response.rs b/sdks/rust/api-full/rust/src/models/namespaces_runner_configs_get_response.rs deleted file mode 100644 index d15f4e10a9..0000000000 --- a/sdks/rust/api-full/rust/src/models/namespaces_runner_configs_get_response.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 25.6.1 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NamespacesRunnerConfigsGetResponse { - #[serde(rename = "runner_config")] - pub runner_config: Box, -} - -impl NamespacesRunnerConfigsGetResponse { - pub fn new(runner_config: models::NamespacesRunnerConfig) -> NamespacesRunnerConfigsGetResponse { - NamespacesRunnerConfigsGetResponse { - runner_config: Box::new(runner_config), - } - } -} - diff --git a/sdks/rust/api-full/rust/src/models/pagination.rs b/sdks/rust/api-full/rust/src/models/pagination.rs index e17880d536..f887c81981 100644 --- a/sdks/rust/api-full/rust/src/models/pagination.rs +++ b/sdks/rust/api-full/rust/src/models/pagination.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/runner.rs b/sdks/rust/api-full/rust/src/models/runner.rs index 713e8056b5..7d0eb52b7a 100644 --- a/sdks/rust/api-full/rust/src/models/runner.rs +++ b/sdks/rust/api-full/rust/src/models/runner.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/namespaces_runner_config.rs b/sdks/rust/api-full/rust/src/models/runner_config.rs similarity index 59% rename from sdks/rust/api-full/rust/src/models/namespaces_runner_config.rs rename to sdks/rust/api-full/rust/src/models/runner_config.rs index 0f9ec6f345..9da4b528d4 100644 --- a/sdks/rust/api-full/rust/src/models/namespaces_runner_config.rs +++ b/sdks/rust/api-full/rust/src/models/runner_config.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ @@ -12,14 +12,14 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NamespacesRunnerConfig { +pub struct RunnerConfig { #[serde(rename = "serverless")] - pub serverless: Box, + pub serverless: Box, } -impl NamespacesRunnerConfig { - pub fn new(serverless: models::NamespacesRunnerConfigServerless) -> NamespacesRunnerConfig { - NamespacesRunnerConfig { +impl RunnerConfig { + pub fn new(serverless: models::RunnerConfigServerless) -> RunnerConfig { + RunnerConfig { serverless: Box::new(serverless), } } diff --git a/sdks/rust/api-full/rust/src/models/namespaces_runner_config_serverless.rs b/sdks/rust/api-full/rust/src/models/runner_config_serverless.rs similarity index 83% rename from sdks/rust/api-full/rust/src/models/namespaces_runner_config_serverless.rs rename to sdks/rust/api-full/rust/src/models/runner_config_serverless.rs index 5a4553f1c2..67f49bb32e 100644 --- a/sdks/rust/api-full/rust/src/models/namespaces_runner_config_serverless.rs +++ b/sdks/rust/api-full/rust/src/models/runner_config_serverless.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ @@ -12,7 +12,7 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NamespacesRunnerConfigServerless { +pub struct RunnerConfigServerless { #[serde(rename = "max_runners")] pub max_runners: i32, #[serde(rename = "min_runners")] @@ -28,9 +28,9 @@ pub struct NamespacesRunnerConfigServerless { pub url: String, } -impl NamespacesRunnerConfigServerless { - pub fn new(max_runners: i32, min_runners: i32, request_lifespan: i32, runners_margin: i32, slots_per_runner: i32, url: String) -> NamespacesRunnerConfigServerless { - NamespacesRunnerConfigServerless { +impl RunnerConfigServerless { + pub fn new(max_runners: i32, min_runners: i32, request_lifespan: i32, runners_margin: i32, slots_per_runner: i32, url: String) -> RunnerConfigServerless { + RunnerConfigServerless { max_runners, min_runners, request_lifespan, diff --git a/sdks/rust/api-full/rust/src/models/namespaces_runner_config_variant.rs b/sdks/rust/api-full/rust/src/models/runner_config_variant.rs similarity index 71% rename from sdks/rust/api-full/rust/src/models/namespaces_runner_config_variant.rs rename to sdks/rust/api-full/rust/src/models/runner_config_variant.rs index 1d24186778..a417e93140 100644 --- a/sdks/rust/api-full/rust/src/models/namespaces_runner_config_variant.rs +++ b/sdks/rust/api-full/rust/src/models/runner_config_variant.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ @@ -13,13 +13,13 @@ use serde::{Deserialize, Serialize}; /// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum NamespacesRunnerConfigVariant { +pub enum RunnerConfigVariant { #[serde(rename = "serverless")] Serverless, } -impl std::fmt::Display for NamespacesRunnerConfigVariant { +impl std::fmt::Display for RunnerConfigVariant { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { Self::Serverless => write!(f, "serverless"), @@ -27,8 +27,8 @@ impl std::fmt::Display for NamespacesRunnerConfigVariant { } } -impl Default for NamespacesRunnerConfigVariant { - fn default() -> NamespacesRunnerConfigVariant { +impl Default for RunnerConfigVariant { + fn default() -> RunnerConfigVariant { Self::Serverless } } diff --git a/sdks/rust/api-full/rust/src/models/namespaces_runner_configs_list_response.rs b/sdks/rust/api-full/rust/src/models/runner_configs_list_response.rs similarity index 68% rename from sdks/rust/api-full/rust/src/models/namespaces_runner_configs_list_response.rs rename to sdks/rust/api-full/rust/src/models/runner_configs_list_response.rs index 09a73c5cbf..d52292df39 100644 --- a/sdks/rust/api-full/rust/src/models/namespaces_runner_configs_list_response.rs +++ b/sdks/rust/api-full/rust/src/models/runner_configs_list_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ @@ -12,16 +12,16 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NamespacesRunnerConfigsListResponse { +pub struct RunnerConfigsListResponse { #[serde(rename = "pagination")] pub pagination: Box, #[serde(rename = "runner_configs")] - pub runner_configs: std::collections::HashMap, + pub runner_configs: std::collections::HashMap, } -impl NamespacesRunnerConfigsListResponse { - pub fn new(pagination: models::Pagination, runner_configs: std::collections::HashMap) -> NamespacesRunnerConfigsListResponse { - NamespacesRunnerConfigsListResponse { +impl RunnerConfigsListResponse { + pub fn new(pagination: models::Pagination, runner_configs: std::collections::HashMap) -> RunnerConfigsListResponse { + RunnerConfigsListResponse { pagination: Box::new(pagination), runner_configs, } diff --git a/sdks/rust/api-full/rust/src/models/runner_configs_upsert_request.rs b/sdks/rust/api-full/rust/src/models/runner_configs_upsert_request.rs new file mode 100644 index 0000000000..3ffa1cb8db --- /dev/null +++ b/sdks/rust/api-full/rust/src/models/runner_configs_upsert_request.rs @@ -0,0 +1,27 @@ +/* + * rivet-api-public + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 25.7.0 + * Contact: developer@rivet.gg + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RunnerConfigsUpsertRequest { + #[serde(rename = "serverless")] + pub serverless: Box, +} + +impl RunnerConfigsUpsertRequest { + pub fn new(serverless: models::RunnerConfigServerless) -> RunnerConfigsUpsertRequest { + RunnerConfigsUpsertRequest { + serverless: Box::new(serverless), + } + } +} + diff --git a/sdks/rust/api-full/rust/src/models/runners_get_response.rs b/sdks/rust/api-full/rust/src/models/runners_get_response.rs index b789a0f25f..b4db23b182 100644 --- a/sdks/rust/api-full/rust/src/models/runners_get_response.rs +++ b/sdks/rust/api-full/rust/src/models/runners_get_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/runners_list_names_response.rs b/sdks/rust/api-full/rust/src/models/runners_list_names_response.rs index b9b820b98c..a1c1fa7615 100644 --- a/sdks/rust/api-full/rust/src/models/runners_list_names_response.rs +++ b/sdks/rust/api-full/rust/src/models/runners_list_names_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/rust/api-full/rust/src/models/runners_list_response.rs b/sdks/rust/api-full/rust/src/models/runners_list_response.rs index 591323d128..04439ff85b 100644 --- a/sdks/rust/api-full/rust/src/models/runners_list_response.rs +++ b/sdks/rust/api-full/rust/src/models/runners_list_response.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 25.6.1 + * The version of the OpenAPI document: 25.7.0 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/sdks/typescript/api-full/src/Client.ts b/sdks/typescript/api-full/src/Client.ts index 616809c65b..bb0f2c5851 100644 --- a/sdks/typescript/api-full/src/Client.ts +++ b/sdks/typescript/api-full/src/Client.ts @@ -9,7 +9,7 @@ import * as serializers from "./serialization/index"; import * as errors from "./errors/index"; import { Datacenters } from "./api/resources/datacenters/client/Client"; import { Namespaces } from "./api/resources/namespaces/client/Client"; -import { NamespacesRunnerConfigs } from "./api/resources/namespacesRunnerConfigs/client/Client"; +import { RunnerConfigs } from "./api/resources/runnerConfigs/client/Client"; import { Runners } from "./api/resources/runners/client/Client"; export declare namespace RivetClient { @@ -35,7 +35,7 @@ export declare namespace RivetClient { export class RivetClient { protected _datacenters: Datacenters | undefined; protected _namespaces: Namespaces | undefined; - protected _namespacesRunnerConfigs: NamespacesRunnerConfigs | undefined; + protected _runnerConfigs: RunnerConfigs | undefined; protected _runners: Runners | undefined; constructor(protected readonly _options: RivetClient.Options) {} @@ -48,8 +48,8 @@ export class RivetClient { return (this._namespaces ??= new Namespaces(this._options)); } - public get namespacesRunnerConfigs(): NamespacesRunnerConfigs { - return (this._namespacesRunnerConfigs ??= new NamespacesRunnerConfigs(this._options)); + public get runnerConfigs(): RunnerConfigs { + return (this._runnerConfigs ??= new RunnerConfigs(this._options)); } public get runners(): Runners { diff --git a/sdks/typescript/api-full/src/api/index.ts b/sdks/typescript/api-full/src/api/index.ts index a931b36375..d3c50802a7 100644 --- a/sdks/typescript/api-full/src/api/index.ts +++ b/sdks/typescript/api-full/src/api/index.ts @@ -1,3 +1,3 @@ -export * from "./types"; export * from "./resources"; +export * from "./types"; export * from "./client"; diff --git a/sdks/typescript/api-full/src/api/resources/index.ts b/sdks/typescript/api-full/src/api/resources/index.ts index 3ffc95a6ee..d094e730b9 100644 --- a/sdks/typescript/api-full/src/api/resources/index.ts +++ b/sdks/typescript/api-full/src/api/resources/index.ts @@ -1,7 +1,8 @@ +export * as runnerConfigs from "./runnerConfigs"; +export * from "./runnerConfigs/types"; export * as datacenters from "./datacenters"; export * as namespaces from "./namespaces"; -export * as namespacesRunnerConfigs from "./namespacesRunnerConfigs"; export * as runners from "./runners"; export * from "./namespaces/client/requests"; -export * from "./namespacesRunnerConfigs/client/requests"; +export * from "./runnerConfigs/client/requests"; export * from "./runners/client/requests"; diff --git a/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/requests/NamespacesRunnerConfigsListRequest.ts b/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/requests/NamespacesRunnerConfigsListRequest.ts deleted file mode 100644 index 0036ae2809..0000000000 --- a/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/requests/NamespacesRunnerConfigsListRequest.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../../../../index"; - -/** - * @example - * {} - */ -export interface NamespacesRunnerConfigsListRequest { - limit?: number; - cursor?: string; - variant?: Rivet.NamespacesRunnerConfigVariant; -} diff --git a/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/requests/index.ts b/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/requests/index.ts deleted file mode 100644 index 5c4c33a5b5..0000000000 --- a/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type NamespacesRunnerConfigsListRequest } from "./NamespacesRunnerConfigsListRequest"; diff --git a/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/Client.ts b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/Client.ts similarity index 56% rename from sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/Client.ts rename to sdks/typescript/api-full/src/api/resources/runnerConfigs/client/Client.ts index 8bbb7cc27d..7f2775e602 100644 --- a/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/Client.ts +++ b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/Client.ts @@ -8,7 +8,7 @@ import * as serializers from "../../../../serialization/index"; import urlJoin from "url-join"; import * as errors from "../../../../errors/index"; -export declare namespace NamespacesRunnerConfigs { +export declare namespace RunnerConfigs { export interface Options { environment: core.Supplier; /** Specify a custom URL to connect the client to. */ @@ -28,24 +28,25 @@ export declare namespace NamespacesRunnerConfigs { } } -export class NamespacesRunnerConfigs { - constructor(protected readonly _options: NamespacesRunnerConfigs.Options) {} +export class RunnerConfigs { + constructor(protected readonly _options: RunnerConfigs.Options) {} /** - * @param {Rivet.RivetId} namespaceId - * @param {Rivet.NamespacesRunnerConfigsListRequest} request - * @param {NamespacesRunnerConfigs.RequestOptions} requestOptions - Request-specific configuration. + * @param {Rivet.RunnerConfigsListRequest} request + * @param {RunnerConfigs.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.namespacesRunnerConfigs.list("namespace_id") + * await client.runnerConfigs.list({ + * namespace: "namespace" + * }) */ public async list( - namespaceId: Rivet.RivetId, - request: Rivet.NamespacesRunnerConfigsListRequest = {}, - requestOptions?: NamespacesRunnerConfigs.RequestOptions, - ): Promise { - const { limit, cursor, variant } = request; + request: Rivet.RunnerConfigsListRequest, + requestOptions?: RunnerConfigs.RequestOptions, + ): Promise { + const { namespace, limit, cursor, variant, runnerName } = request; const _queryParams: Record = {}; + _queryParams["namespace"] = namespace; if (limit != null) { _queryParams["limit"] = limit.toString(); } @@ -55,83 +56,24 @@ export class NamespacesRunnerConfigs { } if (variant != null) { - _queryParams["variant"] = serializers.NamespacesRunnerConfigVariant.jsonOrThrow(variant, { + _queryParams["variant"] = serializers.RunnerConfigVariant.jsonOrThrow(variant, { unrecognizedObjectKeys: "strip", }); } - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)), - `namespaces/${encodeURIComponent(serializers.RivetId.jsonOrThrow(namespaceId))}/runner-configs`, - ), - method: "GET", - headers: { - "X-Fern-Language": "JavaScript", - "X-Fern-Runtime": core.RUNTIME.type, - "X-Fern-Runtime-Version": core.RUNTIME.version, - ...requestOptions?.headers, - }, - contentType: "application/json", - queryParameters: _queryParams, - requestType: "json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return serializers.NamespacesRunnerConfigsListResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.RivetError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (runnerName != null) { + if (Array.isArray(runnerName)) { + _queryParams["runner_name"] = runnerName.map((item) => item); + } else { + _queryParams["runner_name"] = runnerName; + } } - switch (_response.error.reason) { - case "non-json": - throw new errors.RivetError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.RivetTimeoutError( - "Timeout exceeded when calling GET /namespaces/{namespace_id}/runner-configs.", - ); - case "unknown": - throw new errors.RivetError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * @param {Rivet.RivetId} namespaceId - * @param {string} runnerName - * @param {NamespacesRunnerConfigs.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.namespacesRunnerConfigs.get("namespace_id", "runner_name") - */ - public async get( - namespaceId: Rivet.RivetId, - runnerName: string, - requestOptions?: NamespacesRunnerConfigs.RequestOptions, - ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)), - `namespaces/${encodeURIComponent(serializers.RivetId.jsonOrThrow(namespaceId))}/runner-configs/${encodeURIComponent(runnerName)}`, + "runner-configs", ), method: "GET", headers: { @@ -141,13 +83,14 @@ export class NamespacesRunnerConfigs { ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.NamespacesRunnerConfigsGetResponse.parseOrThrow(_response.body, { + return serializers.RunnerConfigsListResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -170,9 +113,7 @@ export class NamespacesRunnerConfigs { body: _response.error.rawBody, }); case "timeout": - throw new errors.RivetTimeoutError( - "Timeout exceeded when calling GET /namespaces/{namespace_id}/runner-configs/{runner_name}.", - ); + throw new errors.RivetTimeoutError("Timeout exceeded when calling GET /runner-configs."); case "unknown": throw new errors.RivetError({ message: _response.error.errorMessage, @@ -181,13 +122,13 @@ export class NamespacesRunnerConfigs { } /** - * @param {Rivet.RivetId} namespaceId * @param {string} runnerName - * @param {Rivet.NamespacesRunnerConfigsUpsertRequest} request - * @param {NamespacesRunnerConfigs.RequestOptions} requestOptions - Request-specific configuration. + * @param {Rivet.RunnerConfigsUpsertRequest} request + * @param {RunnerConfigs.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.namespacesRunnerConfigs.upsert("namespace_id", "runner_name", { + * await client.runnerConfigs.upsert("runner_name", { + * namespace: "namespace", * serverless: { * maxRunners: 1, * minRunners: 1, @@ -199,16 +140,18 @@ export class NamespacesRunnerConfigs { * }) */ public async upsert( - namespaceId: Rivet.RivetId, runnerName: string, - request: Rivet.NamespacesRunnerConfigsUpsertRequest, - requestOptions?: NamespacesRunnerConfigs.RequestOptions, - ): Promise { + request: Rivet.RunnerConfigsUpsertRequest, + requestOptions?: RunnerConfigs.RequestOptions, + ): Promise { + const { namespace, ..._body } = request; + const _queryParams: Record = {}; + _queryParams["namespace"] = namespace; const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)), - `namespaces/${encodeURIComponent(serializers.RivetId.jsonOrThrow(namespaceId))}/runner-configs/${encodeURIComponent(runnerName)}`, + `runner-configs/${encodeURIComponent(runnerName)}`, ), method: "PUT", headers: { @@ -218,16 +161,15 @@ export class NamespacesRunnerConfigs { ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", - body: serializers.NamespacesRunnerConfigsUpsertRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), + body: serializers.RunnerConfigsUpsertRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.NamespacesRunnerConfigsUpsertResponse.parseOrThrow(_response.body, { + return serializers.RunnerConfigsUpsertResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -250,9 +192,7 @@ export class NamespacesRunnerConfigs { body: _response.error.rawBody, }); case "timeout": - throw new errors.RivetTimeoutError( - "Timeout exceeded when calling PUT /namespaces/{namespace_id}/runner-configs/{runner_name}.", - ); + throw new errors.RivetTimeoutError("Timeout exceeded when calling PUT /runner-configs/{runner_name}."); case "unknown": throw new errors.RivetError({ message: _response.error.errorMessage, @@ -261,23 +201,28 @@ export class NamespacesRunnerConfigs { } /** - * @param {Rivet.RivetId} namespaceId * @param {string} runnerName - * @param {NamespacesRunnerConfigs.RequestOptions} requestOptions - Request-specific configuration. + * @param {Rivet.RunnerConfigsDeleteRequest} request + * @param {RunnerConfigs.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.namespacesRunnerConfigs.delete("namespace_id", "runner_name") + * await client.runnerConfigs.delete("runner_name", { + * namespace: "namespace" + * }) */ public async delete( - namespaceId: Rivet.RivetId, runnerName: string, - requestOptions?: NamespacesRunnerConfigs.RequestOptions, - ): Promise { + request: Rivet.RunnerConfigsDeleteRequest, + requestOptions?: RunnerConfigs.RequestOptions, + ): Promise { + const { namespace } = request; + const _queryParams: Record = {}; + _queryParams["namespace"] = namespace; const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)), - `namespaces/${encodeURIComponent(serializers.RivetId.jsonOrThrow(namespaceId))}/runner-configs/${encodeURIComponent(runnerName)}`, + `runner-configs/${encodeURIComponent(runnerName)}`, ), method: "DELETE", headers: { @@ -287,13 +232,14 @@ export class NamespacesRunnerConfigs { ...requestOptions?.headers, }, contentType: "application/json", + queryParameters: _queryParams, requestType: "json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.NamespacesRunnerConfigsDeleteResponse.parseOrThrow(_response.body, { + return serializers.RunnerConfigsDeleteResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -317,7 +263,7 @@ export class NamespacesRunnerConfigs { }); case "timeout": throw new errors.RivetTimeoutError( - "Timeout exceeded when calling DELETE /namespaces/{namespace_id}/runner-configs/{runner_name}.", + "Timeout exceeded when calling DELETE /runner-configs/{runner_name}.", ); case "unknown": throw new errors.RivetError({ diff --git a/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/index.ts b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/index.ts similarity index 100% rename from sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/client/index.ts rename to sdks/typescript/api-full/src/api/resources/runnerConfigs/client/index.ts diff --git a/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/RunnerConfigsDeleteRequest.ts b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/RunnerConfigsDeleteRequest.ts new file mode 100644 index 0000000000..39c78ac5cf --- /dev/null +++ b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/RunnerConfigsDeleteRequest.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * namespace: "namespace" + * } + */ +export interface RunnerConfigsDeleteRequest { + namespace: string; +} diff --git a/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/RunnerConfigsListRequest.ts b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/RunnerConfigsListRequest.ts new file mode 100644 index 0000000000..e73d7778eb --- /dev/null +++ b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/RunnerConfigsListRequest.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../index"; + +/** + * @example + * { + * namespace: "namespace" + * } + */ +export interface RunnerConfigsListRequest { + namespace: string; + limit?: number; + cursor?: string; + variant?: Rivet.RunnerConfigVariant; + runnerName?: string | string[]; +} diff --git a/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/RunnerConfigsUpsertRequest.ts b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/RunnerConfigsUpsertRequest.ts new file mode 100644 index 0000000000..eed1172004 --- /dev/null +++ b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/RunnerConfigsUpsertRequest.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../index"; + +/** + * @example + * { + * namespace: "namespace", + * serverless: { + * maxRunners: 1, + * minRunners: 1, + * requestLifespan: 1, + * runnersMargin: 1, + * slotsPerRunner: 1, + * url: "url" + * } + * } + */ +export interface RunnerConfigsUpsertRequest { + namespace: string; + serverless: Rivet.RunnerConfigsUpsertRequestServerless; +} diff --git a/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/index.ts b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/index.ts new file mode 100644 index 0000000000..71de4158d0 --- /dev/null +++ b/sdks/typescript/api-full/src/api/resources/runnerConfigs/client/requests/index.ts @@ -0,0 +1,3 @@ +export { type RunnerConfigsListRequest } from "./RunnerConfigsListRequest"; +export { type RunnerConfigsUpsertRequest } from "./RunnerConfigsUpsertRequest"; +export { type RunnerConfigsDeleteRequest } from "./RunnerConfigsDeleteRequest"; diff --git a/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/index.ts b/sdks/typescript/api-full/src/api/resources/runnerConfigs/index.ts similarity index 50% rename from sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/index.ts rename to sdks/typescript/api-full/src/api/resources/runnerConfigs/index.ts index 5ec76921e1..c9240f83b4 100644 --- a/sdks/typescript/api-full/src/api/resources/namespacesRunnerConfigs/index.ts +++ b/sdks/typescript/api-full/src/api/resources/runnerConfigs/index.ts @@ -1 +1,2 @@ +export * from "./types"; export * from "./client"; diff --git a/sdks/typescript/api-full/src/api/resources/runnerConfigs/types/RunnerConfigsUpsertRequestServerless.ts b/sdks/typescript/api-full/src/api/resources/runnerConfigs/types/RunnerConfigsUpsertRequestServerless.ts new file mode 100644 index 0000000000..8010e452a5 --- /dev/null +++ b/sdks/typescript/api-full/src/api/resources/runnerConfigs/types/RunnerConfigsUpsertRequestServerless.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface RunnerConfigsUpsertRequestServerless { + maxRunners: number; + minRunners: number; + /** Seconds. */ + requestLifespan: number; + runnersMargin: number; + slotsPerRunner: number; + url: string; +} diff --git a/sdks/typescript/api-full/src/api/resources/runnerConfigs/types/index.ts b/sdks/typescript/api-full/src/api/resources/runnerConfigs/types/index.ts new file mode 100644 index 0000000000..2209b0d8df --- /dev/null +++ b/sdks/typescript/api-full/src/api/resources/runnerConfigs/types/index.ts @@ -0,0 +1 @@ +export * from "./RunnerConfigsUpsertRequestServerless"; diff --git a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfig.ts b/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfig.ts deleted file mode 100644 index 538e19e4c9..0000000000 --- a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfig.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -export interface NamespacesRunnerConfig { - serverless: Rivet.NamespacesRunnerConfigServerless; -} diff --git a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsDeleteResponse.ts b/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsDeleteResponse.ts deleted file mode 100644 index f5270b51ae..0000000000 --- a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsDeleteResponse.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type NamespacesRunnerConfigsDeleteResponse = Record; diff --git a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsGetResponse.ts b/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsGetResponse.ts deleted file mode 100644 index 9a7755f669..0000000000 --- a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsGetResponse.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -export interface NamespacesRunnerConfigsGetResponse { - runnerConfig: Rivet.NamespacesRunnerConfig; -} diff --git a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsUpsertResponse.ts b/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsUpsertResponse.ts deleted file mode 100644 index 5411ad11bd..0000000000 --- a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsUpsertResponse.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type NamespacesRunnerConfigsUpsertResponse = Record; diff --git a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsUpsertRequest.ts b/sdks/typescript/api-full/src/api/types/RunnerConfig.ts similarity index 57% rename from sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsUpsertRequest.ts rename to sdks/typescript/api-full/src/api/types/RunnerConfig.ts index 72726205ed..d8494903e1 100644 --- a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsUpsertRequest.ts +++ b/sdks/typescript/api-full/src/api/types/RunnerConfig.ts @@ -4,4 +4,6 @@ import * as Rivet from "../index"; -export type NamespacesRunnerConfigsUpsertRequest = Rivet.NamespacesRunnerConfig; +export interface RunnerConfig { + serverless: Rivet.RunnerConfigServerless; +} diff --git a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigServerless.ts b/sdks/typescript/api-full/src/api/types/RunnerConfigServerless.ts similarity index 82% rename from sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigServerless.ts rename to sdks/typescript/api-full/src/api/types/RunnerConfigServerless.ts index 692699acbc..bf1512bcc7 100644 --- a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigServerless.ts +++ b/sdks/typescript/api-full/src/api/types/RunnerConfigServerless.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface NamespacesRunnerConfigServerless { +export interface RunnerConfigServerless { maxRunners: number; minRunners: number; /** Seconds. */ diff --git a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigVariant.ts b/sdks/typescript/api-full/src/api/types/RunnerConfigVariant.ts similarity index 56% rename from sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigVariant.ts rename to sdks/typescript/api-full/src/api/types/RunnerConfigVariant.ts index 8b73becdf1..71f7803e4c 100644 --- a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigVariant.ts +++ b/sdks/typescript/api-full/src/api/types/RunnerConfigVariant.ts @@ -2,4 +2,4 @@ * This file was auto-generated by Fern from our API Definition. */ -export type NamespacesRunnerConfigVariant = "serverless"; +export type RunnerConfigVariant = "serverless"; diff --git a/sdks/typescript/api-full/src/api/types/RunnerConfigsDeleteResponse.ts b/sdks/typescript/api-full/src/api/types/RunnerConfigsDeleteResponse.ts new file mode 100644 index 0000000000..90614db7b8 --- /dev/null +++ b/sdks/typescript/api-full/src/api/types/RunnerConfigsDeleteResponse.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RunnerConfigsDeleteResponse = Record; diff --git a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsListResponse.ts b/sdks/typescript/api-full/src/api/types/RunnerConfigsListResponse.ts similarity index 54% rename from sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsListResponse.ts rename to sdks/typescript/api-full/src/api/types/RunnerConfigsListResponse.ts index 7140ec63c5..61841498fd 100644 --- a/sdks/typescript/api-full/src/api/types/NamespacesRunnerConfigsListResponse.ts +++ b/sdks/typescript/api-full/src/api/types/RunnerConfigsListResponse.ts @@ -4,7 +4,7 @@ import * as Rivet from "../index"; -export interface NamespacesRunnerConfigsListResponse { +export interface RunnerConfigsListResponse { pagination: Rivet.Pagination; - runnerConfigs: Record; + runnerConfigs: Record; } diff --git a/sdks/typescript/api-full/src/api/types/RunnerConfigsUpsertResponse.ts b/sdks/typescript/api-full/src/api/types/RunnerConfigsUpsertResponse.ts new file mode 100644 index 0000000000..150899aeca --- /dev/null +++ b/sdks/typescript/api-full/src/api/types/RunnerConfigsUpsertResponse.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RunnerConfigsUpsertResponse = Record; diff --git a/sdks/typescript/api-full/src/api/types/index.ts b/sdks/typescript/api-full/src/api/types/index.ts index c2dbb33ae5..e2ee18b8fb 100644 --- a/sdks/typescript/api-full/src/api/types/index.ts +++ b/sdks/typescript/api-full/src/api/types/index.ts @@ -15,17 +15,15 @@ export * from "./Namespace"; export * from "./NamespacesCreateResponse"; export * from "./NamespacesGetResponse"; export * from "./NamespacesListResponse"; -export * from "./NamespacesRunnerConfigServerless"; -export * from "./NamespacesRunnerConfig"; -export * from "./NamespacesRunnerConfigVariant"; -export * from "./NamespacesRunnerConfigsDeleteResponse"; -export * from "./NamespacesRunnerConfigsGetResponse"; -export * from "./NamespacesRunnerConfigsListResponse"; -export * from "./NamespacesRunnerConfigsUpsertRequest"; -export * from "./NamespacesRunnerConfigsUpsertResponse"; export * from "./Pagination"; export * from "./RivetId"; export * from "./Runner"; +export * from "./RunnerConfigServerless"; +export * from "./RunnerConfig"; +export * from "./RunnerConfigVariant"; +export * from "./RunnerConfigsDeleteResponse"; +export * from "./RunnerConfigsListResponse"; +export * from "./RunnerConfigsUpsertResponse"; export * from "./RunnersGetResponse"; export * from "./RunnersListNamesResponse"; export * from "./RunnersListResponse"; diff --git a/sdks/typescript/api-full/src/serialization/index.ts b/sdks/typescript/api-full/src/serialization/index.ts index 848e75abd1..d3c50802a7 100644 --- a/sdks/typescript/api-full/src/serialization/index.ts +++ b/sdks/typescript/api-full/src/serialization/index.ts @@ -1,3 +1,3 @@ +export * from "./resources"; export * from "./types"; export * from "./client"; -export * from "./resources"; diff --git a/sdks/typescript/api-full/src/serialization/resources/index.ts b/sdks/typescript/api-full/src/serialization/resources/index.ts index 8875177418..7bddd29171 100644 --- a/sdks/typescript/api-full/src/serialization/resources/index.ts +++ b/sdks/typescript/api-full/src/serialization/resources/index.ts @@ -1,2 +1,5 @@ +export * as runnerConfigs from "./runnerConfigs"; +export * from "./runnerConfigs/types"; export * as namespaces from "./namespaces"; export * from "./namespaces/client/requests"; +export * from "./runnerConfigs/client/requests"; diff --git a/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/client/index.ts b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/client/index.ts new file mode 100644 index 0000000000..415726b7fe --- /dev/null +++ b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/client/requests/RunnerConfigsUpsertRequest.ts b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/client/requests/RunnerConfigsUpsertRequest.ts new file mode 100644 index 0000000000..555fe4ad22 --- /dev/null +++ b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/client/requests/RunnerConfigsUpsertRequest.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as Rivet from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { RunnerConfigsUpsertRequestServerless } from "../../types/RunnerConfigsUpsertRequestServerless"; + +export const RunnerConfigsUpsertRequest: core.serialization.Schema< + serializers.RunnerConfigsUpsertRequest.Raw, + Omit +> = core.serialization.object({ + serverless: RunnerConfigsUpsertRequestServerless, +}); + +export declare namespace RunnerConfigsUpsertRequest { + export interface Raw { + serverless: RunnerConfigsUpsertRequestServerless.Raw; + } +} diff --git a/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/client/requests/index.ts b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/client/requests/index.ts new file mode 100644 index 0000000000..30688cb9e4 --- /dev/null +++ b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/client/requests/index.ts @@ -0,0 +1 @@ +export { RunnerConfigsUpsertRequest } from "./RunnerConfigsUpsertRequest"; diff --git a/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/index.ts b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/index.ts new file mode 100644 index 0000000000..c9240f83b4 --- /dev/null +++ b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/types/RunnerConfigsUpsertRequestServerless.ts b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/types/RunnerConfigsUpsertRequestServerless.ts new file mode 100644 index 0000000000..218dab97ec --- /dev/null +++ b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/types/RunnerConfigsUpsertRequestServerless.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Rivet from "../../../../api/index"; +import * as core from "../../../../core"; + +export const RunnerConfigsUpsertRequestServerless: core.serialization.ObjectSchema< + serializers.RunnerConfigsUpsertRequestServerless.Raw, + Rivet.RunnerConfigsUpsertRequestServerless +> = core.serialization.object({ + maxRunners: core.serialization.property("max_runners", core.serialization.number()), + minRunners: core.serialization.property("min_runners", core.serialization.number()), + requestLifespan: core.serialization.property("request_lifespan", core.serialization.number()), + runnersMargin: core.serialization.property("runners_margin", core.serialization.number()), + slotsPerRunner: core.serialization.property("slots_per_runner", core.serialization.number()), + url: core.serialization.string(), +}); + +export declare namespace RunnerConfigsUpsertRequestServerless { + export interface Raw { + max_runners: number; + min_runners: number; + request_lifespan: number; + runners_margin: number; + slots_per_runner: number; + url: string; + } +} diff --git a/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/types/index.ts b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/types/index.ts new file mode 100644 index 0000000000..2209b0d8df --- /dev/null +++ b/sdks/typescript/api-full/src/serialization/resources/runnerConfigs/types/index.ts @@ -0,0 +1 @@ +export * from "./RunnerConfigsUpsertRequestServerless"; diff --git a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfig.ts b/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfig.ts deleted file mode 100644 index 76b78b5387..0000000000 --- a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfig.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Rivet from "../../api/index"; -import * as core from "../../core"; -import { NamespacesRunnerConfigServerless } from "./NamespacesRunnerConfigServerless"; - -export const NamespacesRunnerConfig: core.serialization.ObjectSchema< - serializers.NamespacesRunnerConfig.Raw, - Rivet.NamespacesRunnerConfig -> = core.serialization.object({ - serverless: NamespacesRunnerConfigServerless, -}); - -export declare namespace NamespacesRunnerConfig { - export interface Raw { - serverless: NamespacesRunnerConfigServerless.Raw; - } -} diff --git a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsGetResponse.ts b/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsGetResponse.ts deleted file mode 100644 index 728f3def3c..0000000000 --- a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsGetResponse.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Rivet from "../../api/index"; -import * as core from "../../core"; -import { NamespacesRunnerConfig } from "./NamespacesRunnerConfig"; - -export const NamespacesRunnerConfigsGetResponse: core.serialization.ObjectSchema< - serializers.NamespacesRunnerConfigsGetResponse.Raw, - Rivet.NamespacesRunnerConfigsGetResponse -> = core.serialization.object({ - runnerConfig: core.serialization.property("runner_config", NamespacesRunnerConfig), -}); - -export declare namespace NamespacesRunnerConfigsGetResponse { - export interface Raw { - runner_config: NamespacesRunnerConfig.Raw; - } -} diff --git a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsListResponse.ts b/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsListResponse.ts deleted file mode 100644 index cdcd039091..0000000000 --- a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsListResponse.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Rivet from "../../api/index"; -import * as core from "../../core"; -import { Pagination } from "./Pagination"; -import { NamespacesRunnerConfig } from "./NamespacesRunnerConfig"; - -export const NamespacesRunnerConfigsListResponse: core.serialization.ObjectSchema< - serializers.NamespacesRunnerConfigsListResponse.Raw, - Rivet.NamespacesRunnerConfigsListResponse -> = core.serialization.object({ - pagination: Pagination, - runnerConfigs: core.serialization.property( - "runner_configs", - core.serialization.record(core.serialization.string(), NamespacesRunnerConfig), - ), -}); - -export declare namespace NamespacesRunnerConfigsListResponse { - export interface Raw { - pagination: Pagination.Raw; - runner_configs: Record; - } -} diff --git a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsUpsertRequest.ts b/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsUpsertRequest.ts deleted file mode 100644 index 899d4d009b..0000000000 --- a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsUpsertRequest.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Rivet from "../../api/index"; -import * as core from "../../core"; -import { NamespacesRunnerConfig } from "./NamespacesRunnerConfig"; - -export const NamespacesRunnerConfigsUpsertRequest: core.serialization.ObjectSchema< - serializers.NamespacesRunnerConfigsUpsertRequest.Raw, - Rivet.NamespacesRunnerConfigsUpsertRequest -> = NamespacesRunnerConfig; - -export declare namespace NamespacesRunnerConfigsUpsertRequest { - export type Raw = NamespacesRunnerConfig.Raw; -} diff --git a/sdks/typescript/api-full/src/serialization/types/RunnerConfig.ts b/sdks/typescript/api-full/src/serialization/types/RunnerConfig.ts new file mode 100644 index 0000000000..7f17e207bc --- /dev/null +++ b/sdks/typescript/api-full/src/serialization/types/RunnerConfig.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Rivet from "../../api/index"; +import * as core from "../../core"; +import { RunnerConfigServerless } from "./RunnerConfigServerless"; + +export const RunnerConfig: core.serialization.ObjectSchema = + core.serialization.object({ + serverless: RunnerConfigServerless, + }); + +export declare namespace RunnerConfig { + export interface Raw { + serverless: RunnerConfigServerless.Raw; + } +} diff --git a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigServerless.ts b/sdks/typescript/api-full/src/serialization/types/RunnerConfigServerless.ts similarity index 80% rename from sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigServerless.ts rename to sdks/typescript/api-full/src/serialization/types/RunnerConfigServerless.ts index 3a43d41636..6ef29cd106 100644 --- a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigServerless.ts +++ b/sdks/typescript/api-full/src/serialization/types/RunnerConfigServerless.ts @@ -6,9 +6,9 @@ import * as serializers from "../index"; import * as Rivet from "../../api/index"; import * as core from "../../core"; -export const NamespacesRunnerConfigServerless: core.serialization.ObjectSchema< - serializers.NamespacesRunnerConfigServerless.Raw, - Rivet.NamespacesRunnerConfigServerless +export const RunnerConfigServerless: core.serialization.ObjectSchema< + serializers.RunnerConfigServerless.Raw, + Rivet.RunnerConfigServerless > = core.serialization.object({ maxRunners: core.serialization.property("max_runners", core.serialization.number()), minRunners: core.serialization.property("min_runners", core.serialization.number()), @@ -18,7 +18,7 @@ export const NamespacesRunnerConfigServerless: core.serialization.ObjectSchema< url: core.serialization.string(), }); -export declare namespace NamespacesRunnerConfigServerless { +export declare namespace RunnerConfigServerless { export interface Raw { max_runners: number; min_runners: number; diff --git a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigVariant.ts b/sdks/typescript/api-full/src/serialization/types/RunnerConfigVariant.ts similarity index 56% rename from sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigVariant.ts rename to sdks/typescript/api-full/src/serialization/types/RunnerConfigVariant.ts index bf81ed8234..fa31b944a8 100644 --- a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigVariant.ts +++ b/sdks/typescript/api-full/src/serialization/types/RunnerConfigVariant.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Rivet from "../../api/index"; import * as core from "../../core"; -export const NamespacesRunnerConfigVariant: core.serialization.Schema< - serializers.NamespacesRunnerConfigVariant.Raw, - Rivet.NamespacesRunnerConfigVariant +export const RunnerConfigVariant: core.serialization.Schema< + serializers.RunnerConfigVariant.Raw, + Rivet.RunnerConfigVariant > = core.serialization.stringLiteral("serverless"); -export declare namespace NamespacesRunnerConfigVariant { +export declare namespace RunnerConfigVariant { export type Raw = "serverless"; } diff --git a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsDeleteResponse.ts b/sdks/typescript/api-full/src/serialization/types/RunnerConfigsDeleteResponse.ts similarity index 57% rename from sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsDeleteResponse.ts rename to sdks/typescript/api-full/src/serialization/types/RunnerConfigsDeleteResponse.ts index ad022d0a0a..1d95896ebc 100644 --- a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsDeleteResponse.ts +++ b/sdks/typescript/api-full/src/serialization/types/RunnerConfigsDeleteResponse.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Rivet from "../../api/index"; import * as core from "../../core"; -export const NamespacesRunnerConfigsDeleteResponse: core.serialization.Schema< - serializers.NamespacesRunnerConfigsDeleteResponse.Raw, - Rivet.NamespacesRunnerConfigsDeleteResponse +export const RunnerConfigsDeleteResponse: core.serialization.Schema< + serializers.RunnerConfigsDeleteResponse.Raw, + Rivet.RunnerConfigsDeleteResponse > = core.serialization.record(core.serialization.string(), core.serialization.unknown()); -export declare namespace NamespacesRunnerConfigsDeleteResponse { +export declare namespace RunnerConfigsDeleteResponse { export type Raw = Record; } diff --git a/sdks/typescript/api-full/src/serialization/types/RunnerConfigsListResponse.ts b/sdks/typescript/api-full/src/serialization/types/RunnerConfigsListResponse.ts new file mode 100644 index 0000000000..8d24c9ed4d --- /dev/null +++ b/sdks/typescript/api-full/src/serialization/types/RunnerConfigsListResponse.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Rivet from "../../api/index"; +import * as core from "../../core"; +import { Pagination } from "./Pagination"; +import { RunnerConfig } from "./RunnerConfig"; + +export const RunnerConfigsListResponse: core.serialization.ObjectSchema< + serializers.RunnerConfigsListResponse.Raw, + Rivet.RunnerConfigsListResponse +> = core.serialization.object({ + pagination: Pagination, + runnerConfigs: core.serialization.property( + "runner_configs", + core.serialization.record(core.serialization.string(), RunnerConfig), + ), +}); + +export declare namespace RunnerConfigsListResponse { + export interface Raw { + pagination: Pagination.Raw; + runner_configs: Record; + } +} diff --git a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsUpsertResponse.ts b/sdks/typescript/api-full/src/serialization/types/RunnerConfigsUpsertResponse.ts similarity index 57% rename from sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsUpsertResponse.ts rename to sdks/typescript/api-full/src/serialization/types/RunnerConfigsUpsertResponse.ts index 6732d0d6fd..b116e7c82a 100644 --- a/sdks/typescript/api-full/src/serialization/types/NamespacesRunnerConfigsUpsertResponse.ts +++ b/sdks/typescript/api-full/src/serialization/types/RunnerConfigsUpsertResponse.ts @@ -6,11 +6,11 @@ import * as serializers from "../index"; import * as Rivet from "../../api/index"; import * as core from "../../core"; -export const NamespacesRunnerConfigsUpsertResponse: core.serialization.Schema< - serializers.NamespacesRunnerConfigsUpsertResponse.Raw, - Rivet.NamespacesRunnerConfigsUpsertResponse +export const RunnerConfigsUpsertResponse: core.serialization.Schema< + serializers.RunnerConfigsUpsertResponse.Raw, + Rivet.RunnerConfigsUpsertResponse > = core.serialization.record(core.serialization.string(), core.serialization.unknown()); -export declare namespace NamespacesRunnerConfigsUpsertResponse { +export declare namespace RunnerConfigsUpsertResponse { export type Raw = Record; } diff --git a/sdks/typescript/api-full/src/serialization/types/index.ts b/sdks/typescript/api-full/src/serialization/types/index.ts index c2dbb33ae5..e2ee18b8fb 100644 --- a/sdks/typescript/api-full/src/serialization/types/index.ts +++ b/sdks/typescript/api-full/src/serialization/types/index.ts @@ -15,17 +15,15 @@ export * from "./Namespace"; export * from "./NamespacesCreateResponse"; export * from "./NamespacesGetResponse"; export * from "./NamespacesListResponse"; -export * from "./NamespacesRunnerConfigServerless"; -export * from "./NamespacesRunnerConfig"; -export * from "./NamespacesRunnerConfigVariant"; -export * from "./NamespacesRunnerConfigsDeleteResponse"; -export * from "./NamespacesRunnerConfigsGetResponse"; -export * from "./NamespacesRunnerConfigsListResponse"; -export * from "./NamespacesRunnerConfigsUpsertRequest"; -export * from "./NamespacesRunnerConfigsUpsertResponse"; export * from "./Pagination"; export * from "./RivetId"; export * from "./Runner"; +export * from "./RunnerConfigServerless"; +export * from "./RunnerConfig"; +export * from "./RunnerConfigVariant"; +export * from "./RunnerConfigsDeleteResponse"; +export * from "./RunnerConfigsListResponse"; +export * from "./RunnerConfigsUpsertResponse"; export * from "./RunnersGetResponse"; export * from "./RunnersListNamesResponse"; export * from "./RunnersListResponse";