diff --git a/Cargo.lock b/Cargo.lock index bc24b44f3a..1cf954bc68 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3477,6 +3477,30 @@ dependencies = [ "vbare", ] +[[package]] +name = "pegboard-actor-kv" +version = "2.0.38" +dependencies = [ + "anyhow", + "futures-util", + "gasoline", + "pegboard", + "portpicker", + "rivet-config", + "rivet-runner-protocol", + "rivet-test-deps", + "rivet-util-id", + "serde", + "serde_bare", + "tokio", + "tracing", + "tracing-logfmt", + "tracing-subscriber", + "universaldb", + "url", + "uuid", +] + [[package]] name = "pegboard-gateway" version = "2.0.38" diff --git a/engine/artifacts/openapi.json b/engine/artifacts/openapi.json index 261e7683f9..9b97c86f55 100644 --- a/engine/artifacts/openapi.json +++ b/engine/artifacts/openapi.json @@ -11,7 +11,7 @@ "name": "Apache-2.0", "identifier": "Apache-2.0" }, - "version": "2.0.33" + "version": "2.0.38" }, "paths": { "/actors": { @@ -973,15 +973,11 @@ "description": "Denotes when the actor was destroyed." }, "error": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/ActorError", - "description": "Error details if the actor failed to start." - } - ] + "type": [ + "object", + "null" + ], + "description": "Error details if the actor failed to start." }, "key": { "type": [ @@ -1032,114 +1028,6 @@ } } }, - "ActorError": { - "oneOf": [ - { - "type": "object", - "description": "Runner pool-related errors", - "required": [ - "runner_pool_error" - ], - "properties": { - "runner_pool_error": { - "$ref": "#/components/schemas/RunnerPoolError", - "description": "Runner pool-related errors" - } - } - }, - { - "type": "string", - "description": "No runners available matching the runner name", - "enum": [ - "no_capacity" - ] - }, - { - "type": "object", - "description": "Runner was allocated but never started the actor (GC timeout)", - "required": [ - "runner_no_response" - ], - "properties": { - "runner_no_response": { - "type": "object", - "description": "Runner was allocated but never started the actor (GC timeout)", - "required": [ - "runner_id" - ], - "properties": { - "runner_id": { - "$ref": "#/components/schemas/RivetId" - } - } - } - } - }, - { - "type": "object", - "description": "Runner connection was lost (no recent ping, network issue, or crash)", - "required": [ - "runner_connection_lost" - ], - "properties": { - "runner_connection_lost": { - "type": "object", - "description": "Runner connection was lost (no recent ping, network issue, or crash)", - "required": [ - "runner_id" - ], - "properties": { - "runner_id": { - "$ref": "#/components/schemas/RivetId" - } - } - } - } - }, - { - "type": "object", - "description": "Runner was draining but actor didn't stop in time", - "required": [ - "runner_draining_timeout" - ], - "properties": { - "runner_draining_timeout": { - "type": "object", - "description": "Runner was draining but actor didn't stop in time", - "required": [ - "runner_id" - ], - "properties": { - "runner_id": { - "$ref": "#/components/schemas/RivetId" - } - } - } - } - }, - { - "type": "object", - "description": "Actor exited with an error and is now sleeping", - "required": [ - "crashed" - ], - "properties": { - "crashed": { - "type": "object", - "description": "Actor exited with an error and is now sleeping", - "properties": { - "message": { - "type": [ - "string", - "null" - ] - } - } - } - } - } - ] - }, "ActorName": { "type": "object", "required": [ @@ -1774,13 +1662,9 @@ "type": "object", "properties": { "runner_pool_error": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/RunnerPoolError" - } + "type": [ + "object", + "null" ] } } @@ -2040,99 +1924,6 @@ } } }, - "RunnerPoolError": { - "oneOf": [ - { - "type": "object", - "description": "Serverless: SSE returned non-200 status code (e.g., 404, 500)", - "required": [ - "serverless_http_error" - ], - "properties": { - "serverless_http_error": { - "type": "object", - "description": "Serverless: SSE returned non-200 status code (e.g., 404, 500)", - "required": [ - "status_code", - "body" - ], - "properties": { - "body": { - "type": "string" - }, - "status_code": { - "type": "integer", - "format": "int32", - "minimum": 0 - } - } - } - } - }, - { - "type": "string", - "description": "Serverless: SSE stream ended unexpectedly before runner initialized", - "enum": [ - "serverless_stream_ended_early" - ] - }, - { - "type": "object", - "description": "Serverless: SSE connection or network error", - "required": [ - "serverless_connection_error" - ], - "properties": { - "serverless_connection_error": { - "type": "object", - "description": "Serverless: SSE connection or network error", - "required": [ - "message" - ], - "properties": { - "message": { - "type": "string" - } - } - } - } - }, - { - "type": "object", - "description": "Serverless: Runner sent invalid payload", - "required": [ - "serverless_invalid_sse_payload" - ], - "properties": { - "serverless_invalid_sse_payload": { - "type": "object", - "description": "Serverless: Runner sent invalid payload", - "required": [ - "message" - ], - "properties": { - "message": { - "type": "string" - }, - "raw_payload": { - "type": [ - "string", - "null" - ] - } - } - } - } - }, - { - "type": "string", - "description": "Internal error", - "enum": [ - "internal_error" - ] - } - ] - }, "RunnersListNamesResponse": { "type": "object", "required": [ diff --git a/engine/packages/api-types/src/runner_configs/mod.rs b/engine/packages/api-types/src/runner_configs/mod.rs index 54326f312e..4ba43472d1 100644 --- a/engine/packages/api-types/src/runner_configs/mod.rs +++ b/engine/packages/api-types/src/runner_configs/mod.rs @@ -8,5 +8,6 @@ pub struct RunnerConfigResponse { #[serde(flatten)] pub config: rivet_types::runner_configs::RunnerConfig, #[serde(default, skip_serializing_if = "Option::is_none")] + #[schema(value_type = Option, additional_properties = true)] pub runner_pool_error: Option, } diff --git a/engine/packages/gasoline/src/builder/workflow/signal.rs b/engine/packages/gasoline/src/builder/workflow/signal.rs index 7f8fce7378..70bbfb80ca 100644 --- a/engine/packages/gasoline/src/builder/workflow/signal.rs +++ b/engine/packages/gasoline/src/builder/workflow/signal.rs @@ -8,7 +8,7 @@ use crate::{ builder::BuilderError, ctx::WorkflowCtx, error::WorkflowError, - history::{cursor::HistoryResult, event::EventType, removed::Signal as RemovedSignal}, + history::{cursor::HistoryResult, event::EventType}, metrics, signal::Signal, workflow::Workflow, @@ -113,9 +113,7 @@ impl<'a, T: Signal + Serialize> SignalBuilder<'a, T> { } // Check if this signal is being replayed and previously had no target (will have a removed event) - if self.graceful_not_found && self.ctx.cursor().is_removed() { - self.ctx.cursor().compare_removed::>()?; - + if self.graceful_not_found && self.ctx.cursor().current_event_is_removed() { tracing::debug!("replaying gracefully not found signal dispatch"); // Move to next event diff --git a/engine/packages/gasoline/src/ctx/workflow.rs b/engine/packages/gasoline/src/ctx/workflow.rs index b7db7c4004..330b893a99 100644 --- a/engine/packages/gasoline/src/ctx/workflow.rs +++ b/engine/packages/gasoline/src/ctx/workflow.rs @@ -22,7 +22,7 @@ use crate::{ executable::{AsyncResult, Executable}, history::{ History, - cursor::{Cursor, HistoryResult}, + cursor::{Cursor, HistoryResult, RemovedHistoryResult}, event::SleepState, location::Location, removed::Removed, @@ -1108,27 +1108,35 @@ impl WorkflowCtx { pub async fn removed(&mut self) -> Result<()> { self.check_stop()?; - // Existing event - if self.cursor.compare_removed::()? { - tracing::debug!("skipping removed step"); - } - // New "removed" event - else { - tracing::debug!("inserting removed step"); + match self.cursor.compare_removed::() { + RemovedHistoryResult::New => { + tracing::debug!("inserting removed step"); - self.db - .commit_workflow_removed_event( - self.workflow_id, - &self.cursor.current_location(), - T::event_type(), - T::name(), - self.loop_location(), - ) - .await?; - }; + self.db + .commit_workflow_removed_event( + self.workflow_id, + &self.cursor.current_location(), + T::event_type(), + T::name(), + self.loop_location(), + ) + .await?; - // Move to next event - self.cursor.inc(); + // Move to next event + self.cursor.inc(); + } + RemovedHistoryResult::Skip => { + tracing::debug!("skipping removed step"); + + // Move to next event + self.cursor.inc(); + } + RemovedHistoryResult::Ignore(msg) => { + tracing::debug!( + "removed event filter doesn't match existing event, ignoring: {msg}" + ); + } + } Ok(()) } diff --git a/engine/packages/gasoline/src/db/mod.rs b/engine/packages/gasoline/src/db/mod.rs index 6207fb69dd..172dd8169d 100644 --- a/engine/packages/gasoline/src/db/mod.rs +++ b/engine/packages/gasoline/src/db/mod.rs @@ -323,9 +323,13 @@ impl WorkflowData { .map_err(WorkflowError::DeserializeWorkflowOutput) } - pub fn has_output(&self) -> bool { + pub fn is_complete(&self) -> bool { self.output.is_some() } + + pub fn is_dead(&self) -> bool { + !self.is_complete() && !self.has_wake_condition + } } #[derive(Debug)] diff --git a/engine/packages/gasoline/src/history/cursor.rs b/engine/packages/gasoline/src/history/cursor.rs index 492ea05f6a..b3826d4c9a 100644 --- a/engine/packages/gasoline/src/history/cursor.rs +++ b/engine/packages/gasoline/src/history/cursor.rs @@ -476,7 +476,7 @@ impl Cursor { } // Helper function for signal functionality - pub fn is_removed(&self) -> bool { + pub fn current_event_is_removed(&self) -> bool { let Some(event) = self.current_event() else { return false; }; @@ -484,10 +484,9 @@ impl Cursor { matches!(&event.data, EventData::Removed(_)) } - /// Returns `true` if the current event is being replayed. - pub fn compare_removed(&self) -> WorkflowResult { + pub fn compare_removed(&self) -> RemovedHistoryResult { let Some(event) = self.current_event() else { - return Ok(false); + return RemovedHistoryResult::New; }; // Validate history is consistent @@ -533,7 +532,9 @@ impl Cursor { } }; - if !valid { + if valid { + RemovedHistoryResult::Skip + } else { let msg = if let Some(name) = T::name() { format!( "expected {} at {}, found removed {} {name:?}", @@ -550,10 +551,8 @@ impl Cursor { ) }; - return Err(WorkflowError::HistoryDiverged(msg)); + RemovedHistoryResult::Ignore(msg) } - - Ok(true) } pub fn compare_version_check(&self) -> WorkflowResult { @@ -634,6 +633,15 @@ pub enum CheckVersionHistoryResult { New, } +pub enum RemovedHistoryResult { + /// No event for this location in history exists. + New, + /// An event for this location in history exists and matches the filter. + Skip, + /// An event for this location in history exists, but it does not match the removed filter. + Ignore(String), +} + #[cfg(test)] mod tests { use std::{collections::HashMap, sync::Arc}; diff --git a/engine/packages/pegboard/src/ops/actor/util.rs b/engine/packages/pegboard/src/ops/actor/util.rs index dc6c9a5c8b..15c310b6a2 100644 --- a/engine/packages/pegboard/src/ops/actor/util.rs +++ b/engine/packages/pegboard/src/ops/actor/util.rs @@ -33,7 +33,7 @@ pub async fn build_actors_from_workflows( } }; - actor_data.push((actor_id, actor_state)); + actor_data.push((actor_id, wf, actor_state)); } // Fetch runner pool errors if requested @@ -45,8 +45,10 @@ pub async fn build_actors_from_workflows( // Build actors with resolved errors let mut actors = Vec::with_capacity(actor_data.len()); - for (actor_id, actor_state) in actor_data { - let error = if fetch_error { + for (actor_id, wf, actor_state) in actor_data { + let error = if wf.is_dead() { + Some(rivet_types::actor::ActorError::InternalError) + } else if fetch_error { resolve_actor_error( &actor_state.failure_reason, &actor_state, @@ -83,18 +85,18 @@ pub async fn build_actors_from_workflows( /// Fetches runner pool errors for actors with NoCapacity failures. async fn fetch_runner_pool_errors( ctx: &OperationCtx, - actor_data: &[(Id, crate::workflows::actor::State)], + actor_data: &[(Id, &WorkflowData, crate::workflows::actor::State)], ) -> Result> { // Collect unique (namespace_id, runner_name) pairs that need error checks let runners_needing_check: Vec<_> = actor_data .iter() - .filter(|(_, state)| { + .filter(|(_, _, state)| { matches!( state.failure_reason, Some(WorkflowFailureReason::NoCapacity) ) }) - .map(|(_, state)| (state.namespace_id, state.runner_name_selector.clone())) + .map(|(_, _, state)| (state.namespace_id, state.runner_name_selector.clone())) .collect::>() .into_iter() .collect(); diff --git a/engine/packages/pegboard/src/ops/runner_config/get_error.rs b/engine/packages/pegboard/src/ops/runner_config/get_error.rs index 8999d4daa6..23ec7f3ce0 100644 --- a/engine/packages/pegboard/src/ops/runner_config/get_error.rs +++ b/engine/packages/pegboard/src/ops/runner_config/get_error.rs @@ -102,30 +102,37 @@ async fn runner_config_get_error_inner( let mut result = Vec::new(); - for workflow_data in workflows { - let Some((namespace_id, runner_name)) = workflow_to_runner.get(&workflow_data.workflow_id) - else { + for wf in workflows { + let Some((namespace_id, runner_name)) = workflow_to_runner.get(&wf.workflow_id) else { continue; }; - let state = match workflow_data - .parse_state::>() - { - Ok(Some(s)) => s, - Ok(None) => { - tracing::warn!(%namespace_id, %runner_name, "pool error tracker has no state"); - continue; - } - Err(err) => { - tracing::error!( - %namespace_id, - %runner_name, - ?err, - "failed to parse error tracker state" - ); - continue; - } - }; + if wf.is_dead() { + result.push(RunnerPoolErrorCacheEntry { + namespace_id: *namespace_id, + runner_name: runner_name.clone(), + error: Some(RunnerPoolError::InternalError), + }); + continue; + } + + let state = + match wf.parse_state::>() { + Ok(Some(s)) => s, + Ok(None) => { + tracing::warn!(%namespace_id, %runner_name, "pool error tracker has no state"); + continue; + } + Err(err) => { + tracing::error!( + %namespace_id, + %runner_name, + ?err, + "failed to parse error tracker state" + ); + continue; + } + }; result.push(RunnerPoolErrorCacheEntry { namespace_id: *namespace_id, diff --git a/engine/packages/types/src/actor/error.rs b/engine/packages/types/src/actor/error.rs index b1a2abe9b1..0eb8d471f6 100644 --- a/engine/packages/types/src/actor/error.rs +++ b/engine/packages/types/src/actor/error.rs @@ -1,8 +1,7 @@ use rivet_util::Id; use serde::{Deserialize, Serialize}; -use utoipa::ToSchema; -#[derive(Debug, Clone, Serialize, Deserialize, ToSchema, Hash)] +#[derive(Debug, Clone, Serialize, Deserialize, Hash)] #[serde(rename_all = "snake_case")] pub enum RunnerPoolError { /// Serverless: SSE returned non-200 status code (e.g., 404, 500) @@ -24,7 +23,7 @@ pub enum RunnerPoolError { InternalError, } -#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)] +#[derive(Debug, Clone, Serialize, Deserialize)] #[serde(rename_all = "snake_case")] pub enum ActorError { /// Runner pool-related errors @@ -39,4 +38,6 @@ pub enum ActorError { RunnerDrainingTimeout { runner_id: Id }, /// Actor exited with an error and is now sleeping Crashed { message: Option }, + /// Actor has an internal error + InternalError, } diff --git a/engine/packages/types/src/actors.rs b/engine/packages/types/src/actors.rs index 97cf787d40..5d1667d9c4 100644 --- a/engine/packages/types/src/actors.rs +++ b/engine/packages/types/src/actors.rs @@ -33,6 +33,7 @@ pub struct Actor { /// Error details if the actor failed to start. #[serde(skip_serializing_if = "Option::is_none")] + #[schema(value_type = Option, additional_properties = true)] pub error: Option, } diff --git a/engine/sdks/go/api-full/types.go b/engine/sdks/go/api-full/types.go index f4ccb1b6d9..86a248397f 100644 --- a/engine/sdks/go/api-full/types.go +++ b/engine/sdks/go/api-full/types.go @@ -108,10 +108,10 @@ type Actor struct { // Denotes when the actor was destroyed. DestroyTs *int64 `json:"destroy_ts,omitempty"` // Error details if the actor failed to start. - Error *ActorError `json:"error,omitempty"` - Key *string `json:"key,omitempty"` - Name string `json:"name"` - NamespaceId RivetId `json:"namespace_id"` + Error map[string]interface{} `json:"error,omitempty"` + Key *string `json:"key,omitempty"` + Name string `json:"name"` + NamespaceId RivetId `json:"namespace_id"` // Denotes when the actor started waiting for an allocation. PendingAllocationTs *int64 `json:"pending_allocation_ts,omitempty"` // Denotes when the actor will try to allocate again. If this is set, the actor will not attempt to @@ -149,413 +149,6 @@ func (a *Actor) String() string { return fmt.Sprintf("%#v", a) } -type ActorError struct { - typeName string - // Runner pool-related errors - ActorErrorRunnerPoolError *ActorErrorRunnerPoolError - stringLiteral string - // Runner was allocated but never started the actor (GC timeout) - ActorErrorRunnerNoResponse *ActorErrorRunnerNoResponse - // Runner connection was lost (no recent ping, network issue, or crash) - ActorErrorRunnerConnectionLost *ActorErrorRunnerConnectionLost - // Runner was draining but actor didn't stop in time - ActorErrorRunnerDrainingTimeout *ActorErrorRunnerDrainingTimeout - // Actor exited with an error and is now sleeping - ActorErrorCrashed *ActorErrorCrashed -} - -func NewActorErrorFromActorErrorRunnerPoolError(value *ActorErrorRunnerPoolError) *ActorError { - return &ActorError{typeName: "actorErrorRunnerPoolError", ActorErrorRunnerPoolError: value} -} - -func NewActorErrorWithStringLiteral() *ActorError { - return &ActorError{typeName: "stringLiteral", stringLiteral: "no_capacity"} -} - -func NewActorErrorFromActorErrorRunnerNoResponse(value *ActorErrorRunnerNoResponse) *ActorError { - return &ActorError{typeName: "actorErrorRunnerNoResponse", ActorErrorRunnerNoResponse: value} -} - -func NewActorErrorFromActorErrorRunnerConnectionLost(value *ActorErrorRunnerConnectionLost) *ActorError { - return &ActorError{typeName: "actorErrorRunnerConnectionLost", ActorErrorRunnerConnectionLost: value} -} - -func NewActorErrorFromActorErrorRunnerDrainingTimeout(value *ActorErrorRunnerDrainingTimeout) *ActorError { - return &ActorError{typeName: "actorErrorRunnerDrainingTimeout", ActorErrorRunnerDrainingTimeout: value} -} - -func NewActorErrorFromActorErrorCrashed(value *ActorErrorCrashed) *ActorError { - return &ActorError{typeName: "actorErrorCrashed", ActorErrorCrashed: value} -} - -func (a *ActorError) StringLiteral() string { - return a.stringLiteral -} - -func (a *ActorError) UnmarshalJSON(data []byte) error { - valueActorErrorRunnerPoolError := new(ActorErrorRunnerPoolError) - if err := json.Unmarshal(data, &valueActorErrorRunnerPoolError); err == nil { - a.typeName = "actorErrorRunnerPoolError" - a.ActorErrorRunnerPoolError = valueActorErrorRunnerPoolError - return nil - } - var valueStringLiteral string - if err := json.Unmarshal(data, &valueStringLiteral); err == nil { - if valueStringLiteral == "no_capacity" { - a.typeName = "stringLiteral" - a.stringLiteral = valueStringLiteral - return nil - } - } - valueActorErrorRunnerNoResponse := new(ActorErrorRunnerNoResponse) - if err := json.Unmarshal(data, &valueActorErrorRunnerNoResponse); err == nil { - a.typeName = "actorErrorRunnerNoResponse" - a.ActorErrorRunnerNoResponse = valueActorErrorRunnerNoResponse - return nil - } - valueActorErrorRunnerConnectionLost := new(ActorErrorRunnerConnectionLost) - if err := json.Unmarshal(data, &valueActorErrorRunnerConnectionLost); err == nil { - a.typeName = "actorErrorRunnerConnectionLost" - a.ActorErrorRunnerConnectionLost = valueActorErrorRunnerConnectionLost - return nil - } - valueActorErrorRunnerDrainingTimeout := new(ActorErrorRunnerDrainingTimeout) - if err := json.Unmarshal(data, &valueActorErrorRunnerDrainingTimeout); err == nil { - a.typeName = "actorErrorRunnerDrainingTimeout" - a.ActorErrorRunnerDrainingTimeout = valueActorErrorRunnerDrainingTimeout - return nil - } - valueActorErrorCrashed := new(ActorErrorCrashed) - if err := json.Unmarshal(data, &valueActorErrorCrashed); err == nil { - a.typeName = "actorErrorCrashed" - a.ActorErrorCrashed = valueActorErrorCrashed - return nil - } - return fmt.Errorf("%s cannot be deserialized as a %T", data, a) -} - -func (a ActorError) MarshalJSON() ([]byte, error) { - switch a.typeName { - default: - return nil, fmt.Errorf("invalid type %s in %T", a.typeName, a) - case "actorErrorRunnerPoolError": - return json.Marshal(a.ActorErrorRunnerPoolError) - case "stringLiteral": - return json.Marshal("no_capacity") - case "actorErrorRunnerNoResponse": - return json.Marshal(a.ActorErrorRunnerNoResponse) - case "actorErrorRunnerConnectionLost": - return json.Marshal(a.ActorErrorRunnerConnectionLost) - case "actorErrorRunnerDrainingTimeout": - return json.Marshal(a.ActorErrorRunnerDrainingTimeout) - case "actorErrorCrashed": - return json.Marshal(a.ActorErrorCrashed) - } -} - -type ActorErrorVisitor interface { - VisitActorErrorRunnerPoolError(*ActorErrorRunnerPoolError) error - VisitStringLiteral(string) error - VisitActorErrorRunnerNoResponse(*ActorErrorRunnerNoResponse) error - VisitActorErrorRunnerConnectionLost(*ActorErrorRunnerConnectionLost) error - VisitActorErrorRunnerDrainingTimeout(*ActorErrorRunnerDrainingTimeout) error - VisitActorErrorCrashed(*ActorErrorCrashed) error -} - -func (a *ActorError) Accept(visitor ActorErrorVisitor) error { - switch a.typeName { - default: - return fmt.Errorf("invalid type %s in %T", a.typeName, a) - case "actorErrorRunnerPoolError": - return visitor.VisitActorErrorRunnerPoolError(a.ActorErrorRunnerPoolError) - case "stringLiteral": - return visitor.VisitStringLiteral(a.stringLiteral) - case "actorErrorRunnerNoResponse": - return visitor.VisitActorErrorRunnerNoResponse(a.ActorErrorRunnerNoResponse) - case "actorErrorRunnerConnectionLost": - return visitor.VisitActorErrorRunnerConnectionLost(a.ActorErrorRunnerConnectionLost) - case "actorErrorRunnerDrainingTimeout": - return visitor.VisitActorErrorRunnerDrainingTimeout(a.ActorErrorRunnerDrainingTimeout) - case "actorErrorCrashed": - return visitor.VisitActorErrorCrashed(a.ActorErrorCrashed) - } -} - -// Actor exited with an error and is now sleeping -type ActorErrorCrashed struct { - // Actor exited with an error and is now sleeping - Crashed *ActorErrorCrashedCrashed `json:"crashed,omitempty"` - - _rawJSON json.RawMessage -} - -func (a *ActorErrorCrashed) UnmarshalJSON(data []byte) error { - type unmarshaler ActorErrorCrashed - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *a = ActorErrorCrashed(value) - a._rawJSON = json.RawMessage(data) - return nil -} - -func (a *ActorErrorCrashed) String() string { - if len(a._rawJSON) > 0 { - if value, err := core.StringifyJSON(a._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(a); err == nil { - return value - } - return fmt.Sprintf("%#v", a) -} - -// Actor exited with an error and is now sleeping -type ActorErrorCrashedCrashed struct { - Message *string `json:"message,omitempty"` - - _rawJSON json.RawMessage -} - -func (a *ActorErrorCrashedCrashed) UnmarshalJSON(data []byte) error { - type unmarshaler ActorErrorCrashedCrashed - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *a = ActorErrorCrashedCrashed(value) - a._rawJSON = json.RawMessage(data) - return nil -} - -func (a *ActorErrorCrashedCrashed) String() string { - if len(a._rawJSON) > 0 { - if value, err := core.StringifyJSON(a._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(a); err == nil { - return value - } - return fmt.Sprintf("%#v", a) -} - -// Runner connection was lost (no recent ping, network issue, or crash) -type ActorErrorRunnerConnectionLost struct { - // Runner connection was lost (no recent ping, network issue, or crash) - RunnerConnectionLost *ActorErrorRunnerConnectionLostRunnerConnectionLost `json:"runner_connection_lost,omitempty"` - - _rawJSON json.RawMessage -} - -func (a *ActorErrorRunnerConnectionLost) UnmarshalJSON(data []byte) error { - type unmarshaler ActorErrorRunnerConnectionLost - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *a = ActorErrorRunnerConnectionLost(value) - a._rawJSON = json.RawMessage(data) - return nil -} - -func (a *ActorErrorRunnerConnectionLost) String() string { - if len(a._rawJSON) > 0 { - if value, err := core.StringifyJSON(a._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(a); err == nil { - return value - } - return fmt.Sprintf("%#v", a) -} - -// Runner connection was lost (no recent ping, network issue, or crash) -type ActorErrorRunnerConnectionLostRunnerConnectionLost struct { - RunnerId RivetId `json:"runner_id"` - - _rawJSON json.RawMessage -} - -func (a *ActorErrorRunnerConnectionLostRunnerConnectionLost) UnmarshalJSON(data []byte) error { - type unmarshaler ActorErrorRunnerConnectionLostRunnerConnectionLost - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *a = ActorErrorRunnerConnectionLostRunnerConnectionLost(value) - a._rawJSON = json.RawMessage(data) - return nil -} - -func (a *ActorErrorRunnerConnectionLostRunnerConnectionLost) String() string { - if len(a._rawJSON) > 0 { - if value, err := core.StringifyJSON(a._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(a); err == nil { - return value - } - return fmt.Sprintf("%#v", a) -} - -// Runner was draining but actor didn't stop in time -type ActorErrorRunnerDrainingTimeout struct { - // Runner was draining but actor didn't stop in time - RunnerDrainingTimeout *ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout `json:"runner_draining_timeout,omitempty"` - - _rawJSON json.RawMessage -} - -func (a *ActorErrorRunnerDrainingTimeout) UnmarshalJSON(data []byte) error { - type unmarshaler ActorErrorRunnerDrainingTimeout - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *a = ActorErrorRunnerDrainingTimeout(value) - a._rawJSON = json.RawMessage(data) - return nil -} - -func (a *ActorErrorRunnerDrainingTimeout) String() string { - if len(a._rawJSON) > 0 { - if value, err := core.StringifyJSON(a._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(a); err == nil { - return value - } - return fmt.Sprintf("%#v", a) -} - -// Runner was draining but actor didn't stop in time -type ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout struct { - RunnerId RivetId `json:"runner_id"` - - _rawJSON json.RawMessage -} - -func (a *ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout) UnmarshalJSON(data []byte) error { - type unmarshaler ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *a = ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout(value) - a._rawJSON = json.RawMessage(data) - return nil -} - -func (a *ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout) String() string { - if len(a._rawJSON) > 0 { - if value, err := core.StringifyJSON(a._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(a); err == nil { - return value - } - return fmt.Sprintf("%#v", a) -} - -// Runner was allocated but never started the actor (GC timeout) -type ActorErrorRunnerNoResponse struct { - // Runner was allocated but never started the actor (GC timeout) - RunnerNoResponse *ActorErrorRunnerNoResponseRunnerNoResponse `json:"runner_no_response,omitempty"` - - _rawJSON json.RawMessage -} - -func (a *ActorErrorRunnerNoResponse) UnmarshalJSON(data []byte) error { - type unmarshaler ActorErrorRunnerNoResponse - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *a = ActorErrorRunnerNoResponse(value) - a._rawJSON = json.RawMessage(data) - return nil -} - -func (a *ActorErrorRunnerNoResponse) String() string { - if len(a._rawJSON) > 0 { - if value, err := core.StringifyJSON(a._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(a); err == nil { - return value - } - return fmt.Sprintf("%#v", a) -} - -// Runner was allocated but never started the actor (GC timeout) -type ActorErrorRunnerNoResponseRunnerNoResponse struct { - RunnerId RivetId `json:"runner_id"` - - _rawJSON json.RawMessage -} - -func (a *ActorErrorRunnerNoResponseRunnerNoResponse) UnmarshalJSON(data []byte) error { - type unmarshaler ActorErrorRunnerNoResponseRunnerNoResponse - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *a = ActorErrorRunnerNoResponseRunnerNoResponse(value) - a._rawJSON = json.RawMessage(data) - return nil -} - -func (a *ActorErrorRunnerNoResponseRunnerNoResponse) String() string { - if len(a._rawJSON) > 0 { - if value, err := core.StringifyJSON(a._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(a); err == nil { - return value - } - return fmt.Sprintf("%#v", a) -} - -// Runner pool-related errors -type ActorErrorRunnerPoolError struct { - // Runner pool-related errors - RunnerPoolError *RunnerPoolError `json:"runner_pool_error,omitempty"` - - _rawJSON json.RawMessage -} - -func (a *ActorErrorRunnerPoolError) UnmarshalJSON(data []byte) error { - type unmarshaler ActorErrorRunnerPoolError - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *a = ActorErrorRunnerPoolError(value) - a._rawJSON = json.RawMessage(data) - return nil -} - -func (a *ActorErrorRunnerPoolError) String() string { - if len(a._rawJSON) > 0 { - if value, err := core.StringifyJSON(a._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(a); err == nil { - return value - } - return fmt.Sprintf("%#v", a) -} - type ActorName struct { Metadata map[string]interface{} `json:"metadata,omitempty"` @@ -1327,7 +920,7 @@ type RunnerConfigResponse struct { Serverless *RunnerConfigServerless `json:"serverless,omitempty"` DrainOnVersionUpgrade *bool `json:"drain_on_version_upgrade,omitempty"` Metadata interface{} `json:"metadata,omitempty"` - RunnerPoolError *RunnerPoolError `json:"runner_pool_error,omitempty"` + RunnerPoolError map[string]interface{} `json:"runner_pool_error,omitempty"` _rawJSON json.RawMessage } @@ -2064,311 +1657,6 @@ func (r *RunnerConfigsUpsertResponse) String() string { return fmt.Sprintf("%#v", r) } -type RunnerPoolError struct { - typeName string - // Serverless: SSE returned non-200 status code (e.g., 404, 500) - RunnerPoolErrorServerlessHttpError *RunnerPoolErrorServerlessHttpError - stringLiteral string - // Serverless: SSE connection or network error - RunnerPoolErrorServerlessConnectionError *RunnerPoolErrorServerlessConnectionError - // Serverless: Runner sent invalid payload - RunnerPoolErrorServerlessInvalidSsePayload *RunnerPoolErrorServerlessInvalidSsePayload - stringLiteral string -} - -func NewRunnerPoolErrorFromRunnerPoolErrorServerlessHttpError(value *RunnerPoolErrorServerlessHttpError) *RunnerPoolError { - return &RunnerPoolError{typeName: "runnerPoolErrorServerlessHttpError", RunnerPoolErrorServerlessHttpError: value} -} - -func NewRunnerPoolErrorWithStringLiteral() *RunnerPoolError { - return &RunnerPoolError{typeName: "stringLiteral", stringLiteral: "serverless_stream_ended_early"} -} - -func NewRunnerPoolErrorFromRunnerPoolErrorServerlessConnectionError(value *RunnerPoolErrorServerlessConnectionError) *RunnerPoolError { - return &RunnerPoolError{typeName: "runnerPoolErrorServerlessConnectionError", RunnerPoolErrorServerlessConnectionError: value} -} - -func NewRunnerPoolErrorFromRunnerPoolErrorServerlessInvalidSsePayload(value *RunnerPoolErrorServerlessInvalidSsePayload) *RunnerPoolError { - return &RunnerPoolError{typeName: "runnerPoolErrorServerlessInvalidSsePayload", RunnerPoolErrorServerlessInvalidSsePayload: value} -} - -func NewRunnerPoolErrorWithStringLiteral() *RunnerPoolError { - return &RunnerPoolError{typeName: "stringLiteral", stringLiteral: "internal_error"} -} - -func (r *RunnerPoolError) StringLiteral() string { - return r.stringLiteral -} - -func (r *RunnerPoolError) StringLiteral() string { - return r.stringLiteral -} - -func (r *RunnerPoolError) UnmarshalJSON(data []byte) error { - valueRunnerPoolErrorServerlessHttpError := new(RunnerPoolErrorServerlessHttpError) - if err := json.Unmarshal(data, &valueRunnerPoolErrorServerlessHttpError); err == nil { - r.typeName = "runnerPoolErrorServerlessHttpError" - r.RunnerPoolErrorServerlessHttpError = valueRunnerPoolErrorServerlessHttpError - return nil - } - var valueStringLiteral string - if err := json.Unmarshal(data, &valueStringLiteral); err == nil { - if valueStringLiteral == "serverless_stream_ended_early" { - r.typeName = "stringLiteral" - r.stringLiteral = valueStringLiteral - return nil - } - } - valueRunnerPoolErrorServerlessConnectionError := new(RunnerPoolErrorServerlessConnectionError) - if err := json.Unmarshal(data, &valueRunnerPoolErrorServerlessConnectionError); err == nil { - r.typeName = "runnerPoolErrorServerlessConnectionError" - r.RunnerPoolErrorServerlessConnectionError = valueRunnerPoolErrorServerlessConnectionError - return nil - } - valueRunnerPoolErrorServerlessInvalidSsePayload := new(RunnerPoolErrorServerlessInvalidSsePayload) - if err := json.Unmarshal(data, &valueRunnerPoolErrorServerlessInvalidSsePayload); err == nil { - r.typeName = "runnerPoolErrorServerlessInvalidSsePayload" - r.RunnerPoolErrorServerlessInvalidSsePayload = valueRunnerPoolErrorServerlessInvalidSsePayload - return nil - } - var valueStringLiteral string - if err := json.Unmarshal(data, &valueStringLiteral); err == nil { - if valueStringLiteral == "internal_error" { - r.typeName = "stringLiteral" - r.stringLiteral = valueStringLiteral - return nil - } - } - return fmt.Errorf("%s cannot be deserialized as a %T", data, r) -} - -func (r RunnerPoolError) MarshalJSON() ([]byte, error) { - switch r.typeName { - default: - return nil, fmt.Errorf("invalid type %s in %T", r.typeName, r) - case "runnerPoolErrorServerlessHttpError": - return json.Marshal(r.RunnerPoolErrorServerlessHttpError) - case "stringLiteral": - return json.Marshal("serverless_stream_ended_early") - case "runnerPoolErrorServerlessConnectionError": - return json.Marshal(r.RunnerPoolErrorServerlessConnectionError) - case "runnerPoolErrorServerlessInvalidSsePayload": - return json.Marshal(r.RunnerPoolErrorServerlessInvalidSsePayload) - case "stringLiteral": - return json.Marshal("internal_error") - } -} - -type RunnerPoolErrorVisitor interface { - VisitRunnerPoolErrorServerlessHttpError(*RunnerPoolErrorServerlessHttpError) error - VisitStringLiteral(string) error - VisitRunnerPoolErrorServerlessConnectionError(*RunnerPoolErrorServerlessConnectionError) error - VisitRunnerPoolErrorServerlessInvalidSsePayload(*RunnerPoolErrorServerlessInvalidSsePayload) error - VisitStringLiteral(string) error -} - -func (r *RunnerPoolError) Accept(visitor RunnerPoolErrorVisitor) error { - switch r.typeName { - default: - return fmt.Errorf("invalid type %s in %T", r.typeName, r) - case "runnerPoolErrorServerlessHttpError": - return visitor.VisitRunnerPoolErrorServerlessHttpError(r.RunnerPoolErrorServerlessHttpError) - case "stringLiteral": - return visitor.VisitStringLiteral(r.stringLiteral) - case "runnerPoolErrorServerlessConnectionError": - return visitor.VisitRunnerPoolErrorServerlessConnectionError(r.RunnerPoolErrorServerlessConnectionError) - case "runnerPoolErrorServerlessInvalidSsePayload": - return visitor.VisitRunnerPoolErrorServerlessInvalidSsePayload(r.RunnerPoolErrorServerlessInvalidSsePayload) - case "stringLiteral": - return visitor.VisitStringLiteral(r.stringLiteral) - } -} - -// Serverless: SSE connection or network error -type RunnerPoolErrorServerlessConnectionError struct { - // Serverless: SSE connection or network error - ServerlessConnectionError *RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError `json:"serverless_connection_error,omitempty"` - - _rawJSON json.RawMessage -} - -func (r *RunnerPoolErrorServerlessConnectionError) UnmarshalJSON(data []byte) error { - type unmarshaler RunnerPoolErrorServerlessConnectionError - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *r = RunnerPoolErrorServerlessConnectionError(value) - r._rawJSON = json.RawMessage(data) - return nil -} - -func (r *RunnerPoolErrorServerlessConnectionError) 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) -} - -// Serverless: SSE connection or network error -type RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError struct { - Message string `json:"message"` - - _rawJSON json.RawMessage -} - -func (r *RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError) UnmarshalJSON(data []byte) error { - type unmarshaler RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *r = RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError(value) - r._rawJSON = json.RawMessage(data) - return nil -} - -func (r *RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError) 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) -} - -// Serverless: SSE returned non-200 status code (e.g., 404, 500) -type RunnerPoolErrorServerlessHttpError struct { - // Serverless: SSE returned non-200 status code (e.g., 404, 500) - ServerlessHttpError *RunnerPoolErrorServerlessHttpErrorServerlessHttpError `json:"serverless_http_error,omitempty"` - - _rawJSON json.RawMessage -} - -func (r *RunnerPoolErrorServerlessHttpError) UnmarshalJSON(data []byte) error { - type unmarshaler RunnerPoolErrorServerlessHttpError - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *r = RunnerPoolErrorServerlessHttpError(value) - r._rawJSON = json.RawMessage(data) - return nil -} - -func (r *RunnerPoolErrorServerlessHttpError) 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) -} - -// Serverless: SSE returned non-200 status code (e.g., 404, 500) -type RunnerPoolErrorServerlessHttpErrorServerlessHttpError struct { - Body string `json:"body"` - StatusCode int `json:"status_code"` - - _rawJSON json.RawMessage -} - -func (r *RunnerPoolErrorServerlessHttpErrorServerlessHttpError) UnmarshalJSON(data []byte) error { - type unmarshaler RunnerPoolErrorServerlessHttpErrorServerlessHttpError - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *r = RunnerPoolErrorServerlessHttpErrorServerlessHttpError(value) - r._rawJSON = json.RawMessage(data) - return nil -} - -func (r *RunnerPoolErrorServerlessHttpErrorServerlessHttpError) 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) -} - -// Serverless: Runner sent invalid payload -type RunnerPoolErrorServerlessInvalidSsePayload struct { - // Serverless: Runner sent invalid payload - ServerlessInvalidSsePayload *RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload `json:"serverless_invalid_sse_payload,omitempty"` - - _rawJSON json.RawMessage -} - -func (r *RunnerPoolErrorServerlessInvalidSsePayload) UnmarshalJSON(data []byte) error { - type unmarshaler RunnerPoolErrorServerlessInvalidSsePayload - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *r = RunnerPoolErrorServerlessInvalidSsePayload(value) - r._rawJSON = json.RawMessage(data) - return nil -} - -func (r *RunnerPoolErrorServerlessInvalidSsePayload) 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) -} - -// Serverless: Runner sent invalid payload -type RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload struct { - Message string `json:"message"` - RawPayload *string `json:"raw_payload,omitempty"` - - _rawJSON json.RawMessage -} - -func (r *RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload) UnmarshalJSON(data []byte) error { - type unmarshaler RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *r = RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload(value) - r._rawJSON = json.RawMessage(data) - return nil -} - -func (r *RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload) 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 RunnersListNamesResponse struct { Names []string `json:"names,omitempty"` Pagination *Pagination `json:"pagination,omitempty"` diff --git a/engine/sdks/rust/api-full/rust/.openapi-generator/FILES b/engine/sdks/rust/api-full/rust/.openapi-generator/FILES index 52ee2575ea..3be519bfee 100644 --- a/engine/sdks/rust/api-full/rust/.openapi-generator/FILES +++ b/engine/sdks/rust/api-full/rust/.openapi-generator/FILES @@ -4,16 +4,6 @@ Cargo.toml README.md docs/Actor.md -docs/ActorError.md -docs/ActorErrorOneOf.md -docs/ActorErrorOneOf1.md -docs/ActorErrorOneOf1RunnerNoResponse.md -docs/ActorErrorOneOf2.md -docs/ActorErrorOneOf2RunnerConnectionLost.md -docs/ActorErrorOneOf3.md -docs/ActorErrorOneOf3RunnerDrainingTimeout.md -docs/ActorErrorOneOf4.md -docs/ActorErrorOneOf4Crashed.md docs/ActorName.md docs/ActorsCreateApi.md docs/ActorsCreateRequest.md @@ -78,13 +68,6 @@ docs/RunnerConfigsServerlessMetadataErrorOneOf5InvalidResponseSchema.md docs/RunnerConfigsUpsertApi.md docs/RunnerConfigsUpsertRequestBody.md docs/RunnerConfigsUpsertResponse.md -docs/RunnerPoolError.md -docs/RunnerPoolErrorOneOf.md -docs/RunnerPoolErrorOneOf1.md -docs/RunnerPoolErrorOneOf1ServerlessConnectionError.md -docs/RunnerPoolErrorOneOf2.md -docs/RunnerPoolErrorOneOf2ServerlessInvalidSsePayload.md -docs/RunnerPoolErrorOneOfServerlessHttpError.md docs/RunnersApi.md docs/RunnersListNamesResponse.md docs/RunnersListResponse.md @@ -109,16 +92,6 @@ src/apis/runner_configs_upsert_api.rs src/apis/runners_api.rs src/lib.rs src/models/actor.rs -src/models/actor_error.rs -src/models/actor_error_one_of.rs -src/models/actor_error_one_of_1.rs -src/models/actor_error_one_of_1_runner_no_response.rs -src/models/actor_error_one_of_2.rs -src/models/actor_error_one_of_2_runner_connection_lost.rs -src/models/actor_error_one_of_3.rs -src/models/actor_error_one_of_3_runner_draining_timeout.rs -src/models/actor_error_one_of_4.rs -src/models/actor_error_one_of_4_crashed.rs src/models/actor_name.rs src/models/actors_create_request.rs src/models/actors_create_response.rs @@ -169,12 +142,5 @@ src/models/runner_configs_serverless_metadata_error_one_of_5.rs src/models/runner_configs_serverless_metadata_error_one_of_5_invalid_response_schema.rs src/models/runner_configs_upsert_request_body.rs src/models/runner_configs_upsert_response.rs -src/models/runner_pool_error.rs -src/models/runner_pool_error_one_of.rs -src/models/runner_pool_error_one_of_1.rs -src/models/runner_pool_error_one_of_1_serverless_connection_error.rs -src/models/runner_pool_error_one_of_2.rs -src/models/runner_pool_error_one_of_2_serverless_invalid_sse_payload.rs -src/models/runner_pool_error_one_of_serverless_http_error.rs src/models/runners_list_names_response.rs src/models/runners_list_response.rs diff --git a/engine/sdks/rust/api-full/rust/Cargo.toml b/engine/sdks/rust/api-full/rust/Cargo.toml index c0bd013a10..b4c0192a69 100644 --- a/engine/sdks/rust/api-full/rust/Cargo.toml +++ b/engine/sdks/rust/api-full/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rivet-api-full" -version = "2.0.33" +version = "2.0.38" 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/engine/sdks/rust/api-full/rust/README.md b/engine/sdks/rust/api-full/rust/README.md index 25e03897d5..e9ac6b9141 100644 --- a/engine/sdks/rust/api-full/rust/README.md +++ b/engine/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: 2.0.33 -- Package version: 2.0.33 +- API version: 2.0.38 +- Package version: 2.0.38 - Generator version: 7.14.0 - Build package: `org.openapitools.codegen.languages.RustClientCodegen` @@ -49,16 +49,6 @@ Class | Method | HTTP request | Description ## Documentation For Models - [Actor](docs/Actor.md) - - [ActorError](docs/ActorError.md) - - [ActorErrorOneOf](docs/ActorErrorOneOf.md) - - [ActorErrorOneOf1](docs/ActorErrorOneOf1.md) - - [ActorErrorOneOf1RunnerNoResponse](docs/ActorErrorOneOf1RunnerNoResponse.md) - - [ActorErrorOneOf2](docs/ActorErrorOneOf2.md) - - [ActorErrorOneOf2RunnerConnectionLost](docs/ActorErrorOneOf2RunnerConnectionLost.md) - - [ActorErrorOneOf3](docs/ActorErrorOneOf3.md) - - [ActorErrorOneOf3RunnerDrainingTimeout](docs/ActorErrorOneOf3RunnerDrainingTimeout.md) - - [ActorErrorOneOf4](docs/ActorErrorOneOf4.md) - - [ActorErrorOneOf4Crashed](docs/ActorErrorOneOf4Crashed.md) - [ActorName](docs/ActorName.md) - [ActorsCreateRequest](docs/ActorsCreateRequest.md) - [ActorsCreateResponse](docs/ActorsCreateResponse.md) @@ -108,13 +98,6 @@ Class | Method | HTTP request | Description - [RunnerConfigsServerlessMetadataErrorOneOf5InvalidResponseSchema](docs/RunnerConfigsServerlessMetadataErrorOneOf5InvalidResponseSchema.md) - [RunnerConfigsUpsertRequestBody](docs/RunnerConfigsUpsertRequestBody.md) - [RunnerConfigsUpsertResponse](docs/RunnerConfigsUpsertResponse.md) - - [RunnerPoolError](docs/RunnerPoolError.md) - - [RunnerPoolErrorOneOf](docs/RunnerPoolErrorOneOf.md) - - [RunnerPoolErrorOneOf1](docs/RunnerPoolErrorOneOf1.md) - - [RunnerPoolErrorOneOf1ServerlessConnectionError](docs/RunnerPoolErrorOneOf1ServerlessConnectionError.md) - - [RunnerPoolErrorOneOf2](docs/RunnerPoolErrorOneOf2.md) - - [RunnerPoolErrorOneOf2ServerlessInvalidSsePayload](docs/RunnerPoolErrorOneOf2ServerlessInvalidSsePayload.md) - - [RunnerPoolErrorOneOfServerlessHttpError](docs/RunnerPoolErrorOneOfServerlessHttpError.md) - [RunnersListNamesResponse](docs/RunnersListNamesResponse.md) - [RunnersListResponse](docs/RunnersListResponse.md) diff --git a/engine/sdks/rust/api-full/rust/docs/Actor.md b/engine/sdks/rust/api-full/rust/docs/Actor.md index b0c8422be9..6e1c2f774f 100644 --- a/engine/sdks/rust/api-full/rust/docs/Actor.md +++ b/engine/sdks/rust/api-full/rust/docs/Actor.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **create_ts** | **i64** | Denotes when the actor was first created. | **datacenter** | **String** | | **destroy_ts** | Option<**i64**> | Denotes when the actor was destroyed. | [optional] -**error** | Option<[**models::ActorError**](ActorError.md)> | Error details if the actor failed to start. | [optional] +**error** | Option<[**serde_json::Value**](.md)> | Error details if the actor failed to start. | [optional] **key** | Option<**String**> | | [optional] **name** | **String** | | **namespace_id** | **String** | | diff --git a/engine/sdks/rust/api-full/rust/docs/ActorError.md b/engine/sdks/rust/api-full/rust/docs/ActorError.md deleted file mode 100644 index fb6403577b..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/ActorError.md +++ /dev/null @@ -1,16 +0,0 @@ -# ActorError - -## Enum Variants - -| Name | Description | -|---- | -----| -| ActorErrorOneOf | | -| ActorErrorOneOf1 | | -| ActorErrorOneOf2 | | -| ActorErrorOneOf3 | | -| ActorErrorOneOf4 | | -| String | | - -[[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/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf.md b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf.md deleted file mode 100644 index 1823fb785f..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# ActorErrorOneOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**runner_pool_error** | [**models::RunnerPoolError**](RunnerPoolError.md) | Runner pool-related errors | - -[[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/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf1.md b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf1.md deleted file mode 100644 index d8db388318..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf1.md +++ /dev/null @@ -1,11 +0,0 @@ -# ActorErrorOneOf1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**runner_no_response** | [**models::ActorErrorOneOf1RunnerNoResponse**](ActorError_oneOf_1_runner_no_response.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/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf1RunnerNoResponse.md b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf1RunnerNoResponse.md deleted file mode 100644 index 7cb9a8d85a..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf1RunnerNoResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ActorErrorOneOf1RunnerNoResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**runner_id** | **String** | | - -[[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/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf2.md b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf2.md deleted file mode 100644 index 9f1fe7b459..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf2.md +++ /dev/null @@ -1,11 +0,0 @@ -# ActorErrorOneOf2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**runner_connection_lost** | [**models::ActorErrorOneOf2RunnerConnectionLost**](ActorError_oneOf_2_runner_connection_lost.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/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf2RunnerConnectionLost.md b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf2RunnerConnectionLost.md deleted file mode 100644 index 66e888ec2c..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf2RunnerConnectionLost.md +++ /dev/null @@ -1,11 +0,0 @@ -# ActorErrorOneOf2RunnerConnectionLost - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**runner_id** | **String** | | - -[[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/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf3.md b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf3.md deleted file mode 100644 index 5c2f9bdc8d..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf3.md +++ /dev/null @@ -1,11 +0,0 @@ -# ActorErrorOneOf3 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**runner_draining_timeout** | [**models::ActorErrorOneOf3RunnerDrainingTimeout**](ActorError_oneOf_3_runner_draining_timeout.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/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf3RunnerDrainingTimeout.md b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf3RunnerDrainingTimeout.md deleted file mode 100644 index 5d38cfa3b8..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf3RunnerDrainingTimeout.md +++ /dev/null @@ -1,11 +0,0 @@ -# ActorErrorOneOf3RunnerDrainingTimeout - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**runner_id** | **String** | | - -[[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/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf4.md b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf4.md deleted file mode 100644 index 1bbe4d3802..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf4.md +++ /dev/null @@ -1,11 +0,0 @@ -# ActorErrorOneOf4 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**crashed** | [**models::ActorErrorOneOf4Crashed**](ActorError_oneOf_4_crashed.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/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf4Crashed.md b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf4Crashed.md deleted file mode 100644 index 8aff226616..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf4Crashed.md +++ /dev/null @@ -1,11 +0,0 @@ -# ActorErrorOneOf4Crashed - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | Option<**String**> | | [optional] - -[[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/engine/sdks/rust/api-full/rust/docs/RunnerConfigResponse.md b/engine/sdks/rust/api-full/rust/docs/RunnerConfigResponse.md index 597b8f080e..4bb1d9d140 100644 --- a/engine/sdks/rust/api-full/rust/docs/RunnerConfigResponse.md +++ b/engine/sdks/rust/api-full/rust/docs/RunnerConfigResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **serverless** | [**models::RunnerConfigKindOneOf1Serverless**](RunnerConfigKind_oneOf_1_serverless.md) | | **drain_on_version_upgrade** | Option<**bool**> | | [optional] **metadata** | Option<[**serde_json::Value**](.md)> | | [optional] -**runner_pool_error** | Option<[**models::RunnerPoolError**](RunnerPoolError.md)> | | [optional] +**runner_pool_error** | Option<[**serde_json::Value**](.md)> | | [optional] [[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/engine/sdks/rust/api-full/rust/docs/RunnerPoolError.md b/engine/sdks/rust/api-full/rust/docs/RunnerPoolError.md deleted file mode 100644 index 8f4f9956b7..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/RunnerPoolError.md +++ /dev/null @@ -1,14 +0,0 @@ -# RunnerPoolError - -## Enum Variants - -| Name | Description | -|---- | -----| -| RunnerPoolErrorOneOf | | -| RunnerPoolErrorOneOf1 | | -| RunnerPoolErrorOneOf2 | | -| String | | - -[[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/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf.md b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf.md deleted file mode 100644 index d9441877e2..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# RunnerPoolErrorOneOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**serverless_http_error** | [**models::RunnerPoolErrorOneOfServerlessHttpError**](RunnerPoolError_oneOf_serverless_http_error.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/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf1.md b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf1.md deleted file mode 100644 index 9ef7cd714c..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf1.md +++ /dev/null @@ -1,11 +0,0 @@ -# RunnerPoolErrorOneOf1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**serverless_connection_error** | [**models::RunnerPoolErrorOneOf1ServerlessConnectionError**](RunnerPoolError_oneOf_1_serverless_connection_error.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/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf1ServerlessConnectionError.md b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf1ServerlessConnectionError.md deleted file mode 100644 index 4aebe5167f..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf1ServerlessConnectionError.md +++ /dev/null @@ -1,11 +0,0 @@ -# RunnerPoolErrorOneOf1ServerlessConnectionError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | - -[[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/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf2.md b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf2.md deleted file mode 100644 index 448bc84c91..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf2.md +++ /dev/null @@ -1,11 +0,0 @@ -# RunnerPoolErrorOneOf2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**serverless_invalid_sse_payload** | [**models::RunnerPoolErrorOneOf2ServerlessInvalidSsePayload**](RunnerPoolError_oneOf_2_serverless_invalid_sse_payload.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/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf2ServerlessInvalidSsePayload.md b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf2ServerlessInvalidSsePayload.md deleted file mode 100644 index 1e15b80513..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf2ServerlessInvalidSsePayload.md +++ /dev/null @@ -1,12 +0,0 @@ -# RunnerPoolErrorOneOf2ServerlessInvalidSsePayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | -**raw_payload** | Option<**String**> | | [optional] - -[[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/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOfServerlessHttpError.md b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOfServerlessHttpError.md deleted file mode 100644 index 835db6fec9..0000000000 --- a/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOfServerlessHttpError.md +++ /dev/null @@ -1,12 +0,0 @@ -# RunnerPoolErrorOneOfServerlessHttpError - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | **String** | | -**status_code** | **i32** | | - -[[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/engine/sdks/rust/api-full/rust/src/apis/actors_create_api.rs b/engine/sdks/rust/api-full/rust/src/apis/actors_create_api.rs index 83df5cb57b..5b60d660cb 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/actors_create_api.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/actors_delete_api.rs b/engine/sdks/rust/api-full/rust/src/apis/actors_delete_api.rs index 8dad8bae2c..6a2ebe9faf 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/actors_delete_api.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/actors_get_or_create_api.rs b/engine/sdks/rust/api-full/rust/src/apis/actors_get_or_create_api.rs index 4c32b733fc..4dddb55051 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/actors_get_or_create_api.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/actors_kv_get_api.rs b/engine/sdks/rust/api-full/rust/src/apis/actors_kv_get_api.rs index aafa4c1618..d3ed15db40 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/actors_kv_get_api.rs +++ b/engine/sdks/rust/api-full/rust/src/apis/actors_kv_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/actors_list_api.rs b/engine/sdks/rust/api-full/rust/src/apis/actors_list_api.rs index 6b0d253ed7..36ca06acb1 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/actors_list_api.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/actors_list_names_api.rs b/engine/sdks/rust/api-full/rust/src/apis/actors_list_names_api.rs index ff0f2d2ae3..efc0c3376c 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/actors_list_names_api.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/configuration.rs b/engine/sdks/rust/api-full/rust/src/apis/configuration.rs index 123115983f..c64d398303 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/configuration.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * 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/2.0.33/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/2.0.38/rust".to_owned()), client: reqwest::Client::new(), basic_auth: None, oauth_access_token: None, diff --git a/engine/sdks/rust/api-full/rust/src/apis/datacenters_api.rs b/engine/sdks/rust/api-full/rust/src/apis/datacenters_api.rs index 519be038b0..8e002b04e7 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/datacenters_api.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/health_api.rs b/engine/sdks/rust/api-full/rust/src/apis/health_api.rs index 3800a3ae89..1262e8d60c 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/health_api.rs +++ b/engine/sdks/rust/api-full/rust/src/apis/health_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/metadata_api.rs b/engine/sdks/rust/api-full/rust/src/apis/metadata_api.rs index b019ed0128..ff0e16f295 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/metadata_api.rs +++ b/engine/sdks/rust/api-full/rust/src/apis/metadata_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/namespaces_api.rs b/engine/sdks/rust/api-full/rust/src/apis/namespaces_api.rs index d5009372b8..cf62f8a77e 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/namespaces_api.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/runner_configs_delete_api.rs b/engine/sdks/rust/api-full/rust/src/apis/runner_configs_delete_api.rs index 486dff3e10..5e31865caa 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/runner_configs_delete_api.rs +++ b/engine/sdks/rust/api-full/rust/src/apis/runner_configs_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/runner_configs_list_api.rs b/engine/sdks/rust/api-full/rust/src/apis/runner_configs_list_api.rs index 120926e37a..b87940044b 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/runner_configs_list_api.rs +++ b/engine/sdks/rust/api-full/rust/src/apis/runner_configs_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/runner_configs_refresh_metadata_api.rs b/engine/sdks/rust/api-full/rust/src/apis/runner_configs_refresh_metadata_api.rs index 421dcea96b..9dda2f1df7 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/runner_configs_refresh_metadata_api.rs +++ b/engine/sdks/rust/api-full/rust/src/apis/runner_configs_refresh_metadata_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/runner_configs_serverless_health_check_api.rs b/engine/sdks/rust/api-full/rust/src/apis/runner_configs_serverless_health_check_api.rs index c4164f3c2b..b9475aa2bf 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/runner_configs_serverless_health_check_api.rs +++ b/engine/sdks/rust/api-full/rust/src/apis/runner_configs_serverless_health_check_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/runner_configs_upsert_api.rs b/engine/sdks/rust/api-full/rust/src/apis/runner_configs_upsert_api.rs index c78eeb5e40..4423f5b56b 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/runner_configs_upsert_api.rs +++ b/engine/sdks/rust/api-full/rust/src/apis/runner_configs_upsert_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/apis/runners_api.rs b/engine/sdks/rust/api-full/rust/src/apis/runners_api.rs index 94e5024ffe..c6d908b8ea 100644 --- a/engine/sdks/rust/api-full/rust/src/apis/runners_api.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/actor.rs b/engine/sdks/rust/api-full/rust/src/models/actor.rs index e5959994da..503eebd34d 100644 --- a/engine/sdks/rust/api-full/rust/src/models/actor.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ @@ -30,7 +30,7 @@ pub struct Actor { pub destroy_ts: Option>, /// Error details if the actor failed to start. #[serde(rename = "error", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub error: Option>>, + pub error: Option>, #[serde(rename = "key", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub key: Option>, #[serde(rename = "name")] diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_error.rs b/engine/sdks/rust/api-full/rust/src/models/actor_error.rs deleted file mode 100644 index a675c2ad6f..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/actor_error.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(untagged)] -pub enum ActorError { - ActorErrorOneOf(Box), - /// No runners available matching the runner name - String(String), - ActorErrorOneOf1(Box), - ActorErrorOneOf2(Box), - ActorErrorOneOf3(Box), - ActorErrorOneOf4(Box), -} - -impl Default for ActorError { - fn default() -> Self { - Self::ActorErrorOneOf(Default::default()) - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of.rs b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of.rs deleted file mode 100644 index 85bca61bbc..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of.rs +++ /dev/null @@ -1,30 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// ActorErrorOneOf : Runner pool-related errors -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ActorErrorOneOf { - /// Runner pool-related errors - #[serde(rename = "runner_pool_error")] - pub runner_pool_error: Box, -} - -impl ActorErrorOneOf { - /// Runner pool-related errors - pub fn new(runner_pool_error: models::RunnerPoolError) -> ActorErrorOneOf { - ActorErrorOneOf { - runner_pool_error: Box::new(runner_pool_error), - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_1.rs b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_1.rs deleted file mode 100644 index 93b8435fb2..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_1.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// ActorErrorOneOf1 : Runner was allocated but never started the actor (GC timeout) -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ActorErrorOneOf1 { - #[serde(rename = "runner_no_response")] - pub runner_no_response: Box, -} - -impl ActorErrorOneOf1 { - /// Runner was allocated but never started the actor (GC timeout) - pub fn new(runner_no_response: models::ActorErrorOneOf1RunnerNoResponse) -> ActorErrorOneOf1 { - ActorErrorOneOf1 { - runner_no_response: Box::new(runner_no_response), - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_1_runner_no_response.rs b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_1_runner_no_response.rs deleted file mode 100644 index 9963f4986d..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_1_runner_no_response.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// ActorErrorOneOf1RunnerNoResponse : Runner was allocated but never started the actor (GC timeout) -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ActorErrorOneOf1RunnerNoResponse { - #[serde(rename = "runner_id")] - pub runner_id: String, -} - -impl ActorErrorOneOf1RunnerNoResponse { - /// Runner was allocated but never started the actor (GC timeout) - pub fn new(runner_id: String) -> ActorErrorOneOf1RunnerNoResponse { - ActorErrorOneOf1RunnerNoResponse { - runner_id, - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_2.rs b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_2.rs deleted file mode 100644 index 032a3cbd61..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_2.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// ActorErrorOneOf2 : Runner connection was lost (no recent ping, network issue, or crash) -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ActorErrorOneOf2 { - #[serde(rename = "runner_connection_lost")] - pub runner_connection_lost: Box, -} - -impl ActorErrorOneOf2 { - /// Runner connection was lost (no recent ping, network issue, or crash) - pub fn new(runner_connection_lost: models::ActorErrorOneOf2RunnerConnectionLost) -> ActorErrorOneOf2 { - ActorErrorOneOf2 { - runner_connection_lost: Box::new(runner_connection_lost), - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_2_runner_connection_lost.rs b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_2_runner_connection_lost.rs deleted file mode 100644 index 014753309d..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_2_runner_connection_lost.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// ActorErrorOneOf2RunnerConnectionLost : Runner connection was lost (no recent ping, network issue, or crash) -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ActorErrorOneOf2RunnerConnectionLost { - #[serde(rename = "runner_id")] - pub runner_id: String, -} - -impl ActorErrorOneOf2RunnerConnectionLost { - /// Runner connection was lost (no recent ping, network issue, or crash) - pub fn new(runner_id: String) -> ActorErrorOneOf2RunnerConnectionLost { - ActorErrorOneOf2RunnerConnectionLost { - runner_id, - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_3.rs b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_3.rs deleted file mode 100644 index 1cf8b29e78..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_3.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// ActorErrorOneOf3 : Runner was draining but actor didn't stop in time -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ActorErrorOneOf3 { - #[serde(rename = "runner_draining_timeout")] - pub runner_draining_timeout: Box, -} - -impl ActorErrorOneOf3 { - /// Runner was draining but actor didn't stop in time - pub fn new(runner_draining_timeout: models::ActorErrorOneOf3RunnerDrainingTimeout) -> ActorErrorOneOf3 { - ActorErrorOneOf3 { - runner_draining_timeout: Box::new(runner_draining_timeout), - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_3_runner_draining_timeout.rs b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_3_runner_draining_timeout.rs deleted file mode 100644 index c01ec07b0b..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_3_runner_draining_timeout.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// ActorErrorOneOf3RunnerDrainingTimeout : Runner was draining but actor didn't stop in time -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ActorErrorOneOf3RunnerDrainingTimeout { - #[serde(rename = "runner_id")] - pub runner_id: String, -} - -impl ActorErrorOneOf3RunnerDrainingTimeout { - /// Runner was draining but actor didn't stop in time - pub fn new(runner_id: String) -> ActorErrorOneOf3RunnerDrainingTimeout { - ActorErrorOneOf3RunnerDrainingTimeout { - runner_id, - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_4.rs b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_4.rs deleted file mode 100644 index db674471f9..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_4.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// ActorErrorOneOf4 : Actor exited with an error and is now sleeping -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ActorErrorOneOf4 { - #[serde(rename = "crashed")] - pub crashed: Box, -} - -impl ActorErrorOneOf4 { - /// Actor exited with an error and is now sleeping - pub fn new(crashed: models::ActorErrorOneOf4Crashed) -> ActorErrorOneOf4 { - ActorErrorOneOf4 { - crashed: Box::new(crashed), - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_4_crashed.rs b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_4_crashed.rs deleted file mode 100644 index 8ea603b2ab..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_4_crashed.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// ActorErrorOneOf4Crashed : Actor exited with an error and is now sleeping -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ActorErrorOneOf4Crashed { - #[serde(rename = "message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub message: Option>, -} - -impl ActorErrorOneOf4Crashed { - /// Actor exited with an error and is now sleeping - pub fn new() -> ActorErrorOneOf4Crashed { - ActorErrorOneOf4Crashed { - message: None, - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/actor_name.rs b/engine/sdks/rust/api-full/rust/src/models/actor_name.rs index 855a45e25b..0d27167c78 100644 --- a/engine/sdks/rust/api-full/rust/src/models/actor_name.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/actors_create_request.rs b/engine/sdks/rust/api-full/rust/src/models/actors_create_request.rs index 5a3b8fe8fb..2bc861d062 100644 --- a/engine/sdks/rust/api-full/rust/src/models/actors_create_request.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/actors_create_response.rs b/engine/sdks/rust/api-full/rust/src/models/actors_create_response.rs index b2a24627ab..a750d851c7 100644 --- a/engine/sdks/rust/api-full/rust/src/models/actors_create_response.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/actors_get_or_create_request.rs b/engine/sdks/rust/api-full/rust/src/models/actors_get_or_create_request.rs index 5e3c577ffe..f2cb87a857 100644 --- a/engine/sdks/rust/api-full/rust/src/models/actors_get_or_create_request.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/actors_get_or_create_response.rs b/engine/sdks/rust/api-full/rust/src/models/actors_get_or_create_response.rs index 1ac873a5ce..a78585a70a 100644 --- a/engine/sdks/rust/api-full/rust/src/models/actors_get_or_create_response.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/actors_kv_get_response.rs b/engine/sdks/rust/api-full/rust/src/models/actors_kv_get_response.rs index 22f9a9e660..51400426ad 100644 --- a/engine/sdks/rust/api-full/rust/src/models/actors_kv_get_response.rs +++ b/engine/sdks/rust/api-full/rust/src/models/actors_kv_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/actors_list_names_response.rs b/engine/sdks/rust/api-full/rust/src/models/actors_list_names_response.rs index 30456500d4..f6b57139de 100644 --- a/engine/sdks/rust/api-full/rust/src/models/actors_list_names_response.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/actors_list_response.rs b/engine/sdks/rust/api-full/rust/src/models/actors_list_response.rs index 9e5ed94691..c232edb24f 100644 --- a/engine/sdks/rust/api-full/rust/src/models/actors_list_response.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/crash_policy.rs b/engine/sdks/rust/api-full/rust/src/models/crash_policy.rs index 301f1771e2..82e9e54a85 100644 --- a/engine/sdks/rust/api-full/rust/src/models/crash_policy.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/datacenter.rs b/engine/sdks/rust/api-full/rust/src/models/datacenter.rs index aeb2d7d057..e645743bf9 100644 --- a/engine/sdks/rust/api-full/rust/src/models/datacenter.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/datacenter_health.rs b/engine/sdks/rust/api-full/rust/src/models/datacenter_health.rs index 4a763313b0..4c2f19d249 100644 --- a/engine/sdks/rust/api-full/rust/src/models/datacenter_health.rs +++ b/engine/sdks/rust/api-full/rust/src/models/datacenter_health.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/datacenters_list_response.rs b/engine/sdks/rust/api-full/rust/src/models/datacenters_list_response.rs index bee026946d..4ec88596d3 100644 --- a/engine/sdks/rust/api-full/rust/src/models/datacenters_list_response.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/health_fanout_response.rs b/engine/sdks/rust/api-full/rust/src/models/health_fanout_response.rs index b8299e424b..3391907714 100644 --- a/engine/sdks/rust/api-full/rust/src/models/health_fanout_response.rs +++ b/engine/sdks/rust/api-full/rust/src/models/health_fanout_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/health_response.rs b/engine/sdks/rust/api-full/rust/src/models/health_response.rs index 093452ca09..4025d5eeda 100644 --- a/engine/sdks/rust/api-full/rust/src/models/health_response.rs +++ b/engine/sdks/rust/api-full/rust/src/models/health_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/health_status.rs b/engine/sdks/rust/api-full/rust/src/models/health_status.rs index d3e3275503..5342d82c95 100644 --- a/engine/sdks/rust/api-full/rust/src/models/health_status.rs +++ b/engine/sdks/rust/api-full/rust/src/models/health_status.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/metadata_get_response.rs b/engine/sdks/rust/api-full/rust/src/models/metadata_get_response.rs index 67fed8b856..9a5668a56d 100644 --- a/engine/sdks/rust/api-full/rust/src/models/metadata_get_response.rs +++ b/engine/sdks/rust/api-full/rust/src/models/metadata_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/mod.rs b/engine/sdks/rust/api-full/rust/src/models/mod.rs index 0841fb3c3a..725e762f05 100644 --- a/engine/sdks/rust/api-full/rust/src/models/mod.rs +++ b/engine/sdks/rust/api-full/rust/src/models/mod.rs @@ -1,25 +1,5 @@ pub mod actor; pub use self::actor::Actor; -pub mod actor_error; -pub use self::actor_error::ActorError; -pub mod actor_error_one_of; -pub use self::actor_error_one_of::ActorErrorOneOf; -pub mod actor_error_one_of_1; -pub use self::actor_error_one_of_1::ActorErrorOneOf1; -pub mod actor_error_one_of_1_runner_no_response; -pub use self::actor_error_one_of_1_runner_no_response::ActorErrorOneOf1RunnerNoResponse; -pub mod actor_error_one_of_2; -pub use self::actor_error_one_of_2::ActorErrorOneOf2; -pub mod actor_error_one_of_2_runner_connection_lost; -pub use self::actor_error_one_of_2_runner_connection_lost::ActorErrorOneOf2RunnerConnectionLost; -pub mod actor_error_one_of_3; -pub use self::actor_error_one_of_3::ActorErrorOneOf3; -pub mod actor_error_one_of_3_runner_draining_timeout; -pub use self::actor_error_one_of_3_runner_draining_timeout::ActorErrorOneOf3RunnerDrainingTimeout; -pub mod actor_error_one_of_4; -pub use self::actor_error_one_of_4::ActorErrorOneOf4; -pub mod actor_error_one_of_4_crashed; -pub use self::actor_error_one_of_4_crashed::ActorErrorOneOf4Crashed; pub mod actor_name; pub use self::actor_name::ActorName; pub mod actors_create_request; @@ -118,20 +98,6 @@ pub mod runner_configs_upsert_request_body; pub use self::runner_configs_upsert_request_body::RunnerConfigsUpsertRequestBody; pub mod runner_configs_upsert_response; pub use self::runner_configs_upsert_response::RunnerConfigsUpsertResponse; -pub mod runner_pool_error; -pub use self::runner_pool_error::RunnerPoolError; -pub mod runner_pool_error_one_of; -pub use self::runner_pool_error_one_of::RunnerPoolErrorOneOf; -pub mod runner_pool_error_one_of_1; -pub use self::runner_pool_error_one_of_1::RunnerPoolErrorOneOf1; -pub mod runner_pool_error_one_of_1_serverless_connection_error; -pub use self::runner_pool_error_one_of_1_serverless_connection_error::RunnerPoolErrorOneOf1ServerlessConnectionError; -pub mod runner_pool_error_one_of_2; -pub use self::runner_pool_error_one_of_2::RunnerPoolErrorOneOf2; -pub mod runner_pool_error_one_of_2_serverless_invalid_sse_payload; -pub use self::runner_pool_error_one_of_2_serverless_invalid_sse_payload::RunnerPoolErrorOneOf2ServerlessInvalidSsePayload; -pub mod runner_pool_error_one_of_serverless_http_error; -pub use self::runner_pool_error_one_of_serverless_http_error::RunnerPoolErrorOneOfServerlessHttpError; pub mod runners_list_names_response; pub use self::runners_list_names_response::RunnersListNamesResponse; pub mod runners_list_response; diff --git a/engine/sdks/rust/api-full/rust/src/models/namespace.rs b/engine/sdks/rust/api-full/rust/src/models/namespace.rs index a6f8bbf554..8c0c252903 100644 --- a/engine/sdks/rust/api-full/rust/src/models/namespace.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/namespace_list_response.rs b/engine/sdks/rust/api-full/rust/src/models/namespace_list_response.rs index c05c012047..1a540560a0 100644 --- a/engine/sdks/rust/api-full/rust/src/models/namespace_list_response.rs +++ b/engine/sdks/rust/api-full/rust/src/models/namespace_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/namespaces_create_request.rs b/engine/sdks/rust/api-full/rust/src/models/namespaces_create_request.rs index 32743d7972..3e6be83537 100644 --- a/engine/sdks/rust/api-full/rust/src/models/namespaces_create_request.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/namespaces_create_response.rs b/engine/sdks/rust/api-full/rust/src/models/namespaces_create_response.rs index 7fe481e150..90f47980ba 100644 --- a/engine/sdks/rust/api-full/rust/src/models/namespaces_create_response.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/pagination.rs b/engine/sdks/rust/api-full/rust/src/models/pagination.rs index 4f3346dba1..f9c57130fa 100644 --- a/engine/sdks/rust/api-full/rust/src/models/pagination.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner.rs b/engine/sdks/rust/api-full/rust/src/models/runner.rs index 8fb16c04c2..43aa59bd39 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_config.rs b/engine/sdks/rust/api-full/rust/src/models/runner_config.rs index 04b4f3fdd0..2cdd71e95c 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_config.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_config_kind.rs b/engine/sdks/rust/api-full/rust/src/models/runner_config_kind.rs index 2925527611..37aaeeb379 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_config_kind.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_config_kind.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of.rs b/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of.rs index d478db2b69..d74242fd07 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of_1.rs b/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of_1.rs index 8e260c5f45..234763de48 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of_1.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of_1.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of_1_serverless.rs b/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of_1_serverless.rs index 3203cb5432..b02b80efc9 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of_1_serverless.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_config_kind_one_of_1_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_config_response.rs b/engine/sdks/rust/api-full/rust/src/models/runner_config_response.rs index 4a3d1a3659..817b88ce1f 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_config_response.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_config_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ @@ -22,7 +22,7 @@ pub struct RunnerConfigResponse { #[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub metadata: Option>, #[serde(rename = "runner_pool_error", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub runner_pool_error: Option>>, + pub runner_pool_error: Option>, } impl RunnerConfigResponse { diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_config_variant.rs b/engine/sdks/rust/api-full/rust/src/models/runner_config_variant.rs index 69e3b381e9..897dad8e24 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_config_variant.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_list_response.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_list_response.rs index 6c1b5e092b..43e4b95faf 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_list_response.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_list_response_runner_configs_value.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_list_response_runner_configs_value.rs index 6a087c0dbe..9c9eb2e7dd 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_list_response_runner_configs_value.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_list_response_runner_configs_value.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_request.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_request.rs index dc570630cd..1593947049 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_request.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response.rs index 1b91fba43d..e9f69cedc0 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of.rs index b46b58e58c..6ee41a9aa8 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_1.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_1.rs index f46b057c22..d40f14fe63 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_1.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_1.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_1_failure.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_1_failure.rs index 5342cbdc58..64f65ad1eb 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_1_failure.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_1_failure.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_success.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_success.rs index 8c054e8748..4c28dce464 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_success.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_health_check_response_one_of_success.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error.rs index ed977854d8..6ec50acb19 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of.rs index 836bee7dcf..748e49cfe3 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_1.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_1.rs index e533385982..b6d35e5d30 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_1.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_1.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_2.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_2.rs index 0e8902cde4..51ee29ff0f 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_2.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_2.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_3.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_3.rs index e8de2508df..373fe6079e 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_3.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_3.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_3_non_success_status.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_3_non_success_status.rs index a9480fd28d..d3f06ea9c4 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_3_non_success_status.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_3_non_success_status.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_4.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_4.rs index 6cd5e4e721..1bab842de7 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_4.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_4.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_4_invalid_response_json.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_4_invalid_response_json.rs index 7fb19d115d..38589b2f4d 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_4_invalid_response_json.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_4_invalid_response_json.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_5.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_5.rs index a28265e1a4..9c71883702 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_5.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_5.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_5_invalid_response_schema.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_5_invalid_response_schema.rs index 7ff8eca101..1d3b5a05cd 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_5_invalid_response_schema.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_serverless_metadata_error_one_of_5_invalid_response_schema.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_upsert_request_body.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_upsert_request_body.rs index 4b048640a8..fd031538a4 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_upsert_request_body.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_upsert_request_body.rs @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_configs_upsert_response.rs b/engine/sdks/rust/api-full/rust/src/models/runner_configs_upsert_response.rs index 2432f8ea4b..8544ef39d4 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runner_configs_upsert_response.rs +++ b/engine/sdks/rust/api-full/rust/src/models/runner_configs_upsert_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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error.rs b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error.rs deleted file mode 100644 index 796648e4ec..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(untagged)] -pub enum RunnerPoolError { - RunnerPoolErrorOneOf(Box), - /// Serverless: SSE stream ended unexpectedly before runner initialized - String(String), - RunnerPoolErrorOneOf1(Box), - RunnerPoolErrorOneOf2(Box), - /// Internal error - String(String), -} - -impl Default for RunnerPoolError { - fn default() -> Self { - Self::RunnerPoolErrorOneOf(Default::default()) - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of.rs b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of.rs deleted file mode 100644 index e4d447511c..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// RunnerPoolErrorOneOf : Serverless: SSE returned non-200 status code (e.g., 404, 500) -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct RunnerPoolErrorOneOf { - #[serde(rename = "serverless_http_error")] - pub serverless_http_error: Box, -} - -impl RunnerPoolErrorOneOf { - /// Serverless: SSE returned non-200 status code (e.g., 404, 500) - pub fn new(serverless_http_error: models::RunnerPoolErrorOneOfServerlessHttpError) -> RunnerPoolErrorOneOf { - RunnerPoolErrorOneOf { - serverless_http_error: Box::new(serverless_http_error), - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_1.rs b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_1.rs deleted file mode 100644 index 985ae7f8c3..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_1.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// RunnerPoolErrorOneOf1 : Serverless: SSE connection or network error -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct RunnerPoolErrorOneOf1 { - #[serde(rename = "serverless_connection_error")] - pub serverless_connection_error: Box, -} - -impl RunnerPoolErrorOneOf1 { - /// Serverless: SSE connection or network error - pub fn new(serverless_connection_error: models::RunnerPoolErrorOneOf1ServerlessConnectionError) -> RunnerPoolErrorOneOf1 { - RunnerPoolErrorOneOf1 { - serverless_connection_error: Box::new(serverless_connection_error), - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_1_serverless_connection_error.rs b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_1_serverless_connection_error.rs deleted file mode 100644 index facec75a00..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_1_serverless_connection_error.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// RunnerPoolErrorOneOf1ServerlessConnectionError : Serverless: SSE connection or network error -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct RunnerPoolErrorOneOf1ServerlessConnectionError { - #[serde(rename = "message")] - pub message: String, -} - -impl RunnerPoolErrorOneOf1ServerlessConnectionError { - /// Serverless: SSE connection or network error - pub fn new(message: String) -> RunnerPoolErrorOneOf1ServerlessConnectionError { - RunnerPoolErrorOneOf1ServerlessConnectionError { - message, - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_2.rs b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_2.rs deleted file mode 100644 index 605b67c640..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_2.rs +++ /dev/null @@ -1,29 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// RunnerPoolErrorOneOf2 : Serverless: Runner sent invalid payload -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct RunnerPoolErrorOneOf2 { - #[serde(rename = "serverless_invalid_sse_payload")] - pub serverless_invalid_sse_payload: Box, -} - -impl RunnerPoolErrorOneOf2 { - /// Serverless: Runner sent invalid payload - pub fn new(serverless_invalid_sse_payload: models::RunnerPoolErrorOneOf2ServerlessInvalidSsePayload) -> RunnerPoolErrorOneOf2 { - RunnerPoolErrorOneOf2 { - serverless_invalid_sse_payload: Box::new(serverless_invalid_sse_payload), - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_2_serverless_invalid_sse_payload.rs b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_2_serverless_invalid_sse_payload.rs deleted file mode 100644 index 423792aaa0..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_2_serverless_invalid_sse_payload.rs +++ /dev/null @@ -1,32 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// RunnerPoolErrorOneOf2ServerlessInvalidSsePayload : Serverless: Runner sent invalid payload -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct RunnerPoolErrorOneOf2ServerlessInvalidSsePayload { - #[serde(rename = "message")] - pub message: String, - #[serde(rename = "raw_payload", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub raw_payload: Option>, -} - -impl RunnerPoolErrorOneOf2ServerlessInvalidSsePayload { - /// Serverless: Runner sent invalid payload - pub fn new(message: String) -> RunnerPoolErrorOneOf2ServerlessInvalidSsePayload { - RunnerPoolErrorOneOf2ServerlessInvalidSsePayload { - message, - raw_payload: None, - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_serverless_http_error.rs b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_serverless_http_error.rs deleted file mode 100644 index becc889406..0000000000 --- a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_serverless_http_error.rs +++ /dev/null @@ -1,32 +0,0 @@ -/* - * rivet-api-public - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 2.0.33 - * Contact: developer@rivet.gg - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -/// RunnerPoolErrorOneOfServerlessHttpError : Serverless: SSE returned non-200 status code (e.g., 404, 500) -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct RunnerPoolErrorOneOfServerlessHttpError { - #[serde(rename = "body")] - pub body: String, - #[serde(rename = "status_code")] - pub status_code: i32, -} - -impl RunnerPoolErrorOneOfServerlessHttpError { - /// Serverless: SSE returned non-200 status code (e.g., 404, 500) - pub fn new(body: String, status_code: i32) -> RunnerPoolErrorOneOfServerlessHttpError { - RunnerPoolErrorOneOfServerlessHttpError { - body, - status_code, - } - } -} - diff --git a/engine/sdks/rust/api-full/rust/src/models/runners_list_names_response.rs b/engine/sdks/rust/api-full/rust/src/models/runners_list_names_response.rs index 7df469ce56..7a47f1a683 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runners_list_names_response.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/rust/api-full/rust/src/models/runners_list_response.rs b/engine/sdks/rust/api-full/rust/src/models/runners_list_response.rs index 8d903c156b..c718b8fd4f 100644 --- a/engine/sdks/rust/api-full/rust/src/models/runners_list_response.rs +++ b/engine/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: 2.0.33 + * The version of the OpenAPI document: 2.0.38 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ diff --git a/engine/sdks/typescript/api-full/src/api/types/Actor.ts b/engine/sdks/typescript/api-full/src/api/types/Actor.ts index 798523ea51..185e347461 100644 --- a/engine/sdks/typescript/api-full/src/api/types/Actor.ts +++ b/engine/sdks/typescript/api-full/src/api/types/Actor.ts @@ -15,7 +15,7 @@ export interface Actor { /** Denotes when the actor was destroyed. */ destroyTs?: number; /** Error details if the actor failed to start. */ - error?: Rivet.ActorError; + error?: Record; key?: string; name: string; namespaceId: Rivet.RivetId; diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorError.ts b/engine/sdks/typescript/api-full/src/api/types/ActorError.ts deleted file mode 100644 index 71e0f5ed6e..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/ActorError.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -export type ActorError = - /** - * Runner pool-related errors */ - | Rivet.ActorErrorRunnerPoolError - | "no_capacity" - /** - * Runner was allocated but never started the actor (GC timeout) */ - | Rivet.ActorErrorRunnerNoResponse - /** - * Runner connection was lost (no recent ping, network issue, or crash) */ - | Rivet.ActorErrorRunnerConnectionLost - /** - * Runner was draining but actor didn't stop in time */ - | Rivet.ActorErrorRunnerDrainingTimeout - /** - * Actor exited with an error and is now sleeping */ - | Rivet.ActorErrorCrashed; diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorErrorCrashed.ts b/engine/sdks/typescript/api-full/src/api/types/ActorErrorCrashed.ts deleted file mode 100644 index 4b1560054e..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/ActorErrorCrashed.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Actor exited with an error and is now sleeping - */ -export interface ActorErrorCrashed { - /** Actor exited with an error and is now sleeping */ - crashed: Rivet.ActorErrorCrashedCrashed; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorErrorCrashedCrashed.ts b/engine/sdks/typescript/api-full/src/api/types/ActorErrorCrashedCrashed.ts deleted file mode 100644 index 8cfe9094ae..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/ActorErrorCrashedCrashed.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Actor exited with an error and is now sleeping - */ -export interface ActorErrorCrashedCrashed { - message?: string; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerConnectionLost.ts b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerConnectionLost.ts deleted file mode 100644 index f65f76264b..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerConnectionLost.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Runner connection was lost (no recent ping, network issue, or crash) - */ -export interface ActorErrorRunnerConnectionLost { - /** Runner connection was lost (no recent ping, network issue, or crash) */ - runnerConnectionLost: Rivet.ActorErrorRunnerConnectionLostRunnerConnectionLost; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.ts b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.ts deleted file mode 100644 index b38382054d..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Runner connection was lost (no recent ping, network issue, or crash) - */ -export interface ActorErrorRunnerConnectionLostRunnerConnectionLost { - runnerId: Rivet.RivetId; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerDrainingTimeout.ts b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerDrainingTimeout.ts deleted file mode 100644 index 625606c41e..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerDrainingTimeout.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Runner was draining but actor didn't stop in time - */ -export interface ActorErrorRunnerDrainingTimeout { - /** Runner was draining but actor didn't stop in time */ - runnerDrainingTimeout: Rivet.ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.ts b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.ts deleted file mode 100644 index a4efb5944a..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Runner was draining but actor didn't stop in time - */ -export interface ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout { - runnerId: Rivet.RivetId; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerNoResponse.ts b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerNoResponse.ts deleted file mode 100644 index 2ad31d6f3a..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerNoResponse.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Runner was allocated but never started the actor (GC timeout) - */ -export interface ActorErrorRunnerNoResponse { - /** Runner was allocated but never started the actor (GC timeout) */ - runnerNoResponse: Rivet.ActorErrorRunnerNoResponseRunnerNoResponse; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts deleted file mode 100644 index 08d23567ee..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Runner was allocated but never started the actor (GC timeout) - */ -export interface ActorErrorRunnerNoResponseRunnerNoResponse { - runnerId: Rivet.RivetId; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerPoolError.ts b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerPoolError.ts deleted file mode 100644 index b6a3bc5687..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerPoolError.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Runner pool-related errors - */ -export interface ActorErrorRunnerPoolError { - /** Runner pool-related errors */ - runnerPoolError: Rivet.RunnerPoolError; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/RunnerConfigResponse.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerConfigResponse.ts index ece2746dd7..405647fae9 100644 --- a/engine/sdks/typescript/api-full/src/api/types/RunnerConfigResponse.ts +++ b/engine/sdks/typescript/api-full/src/api/types/RunnerConfigResponse.ts @@ -5,5 +5,5 @@ import * as Rivet from "../index"; export interface RunnerConfigResponse extends Rivet.RunnerConfig { - runnerPoolError?: Rivet.RunnerPoolError; + runnerPoolError?: Record; } diff --git a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolError.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolError.ts deleted file mode 100644 index 776f40f6c6..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolError.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -export type RunnerPoolError = - /** - * Serverless: SSE returned non-200 status code (e.g., 404, 500) */ - | Rivet.RunnerPoolErrorServerlessHttpError - | "serverless_stream_ended_early" - /** - * Serverless: SSE connection or network error */ - | Rivet.RunnerPoolErrorServerlessConnectionError - /** - * Serverless: Runner sent invalid payload */ - | Rivet.RunnerPoolErrorServerlessInvalidSsePayload - | "internal_error"; diff --git a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessConnectionError.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessConnectionError.ts deleted file mode 100644 index 486816e37a..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessConnectionError.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Serverless: SSE connection or network error - */ -export interface RunnerPoolErrorServerlessConnectionError { - /** Serverless: SSE connection or network error */ - serverlessConnectionError: Rivet.RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts deleted file mode 100644 index 280778eb79..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Serverless: SSE connection or network error - */ -export interface RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError { - message: string; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessHttpError.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessHttpError.ts deleted file mode 100644 index 1ccb248579..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessHttpError.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Serverless: SSE returned non-200 status code (e.g., 404, 500) - */ -export interface RunnerPoolErrorServerlessHttpError { - /** Serverless: SSE returned non-200 status code (e.g., 404, 500) */ - serverlessHttpError: Rivet.RunnerPoolErrorServerlessHttpErrorServerlessHttpError; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts deleted file mode 100644 index c86bb7a498..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Serverless: SSE returned non-200 status code (e.g., 404, 500) - */ -export interface RunnerPoolErrorServerlessHttpErrorServerlessHttpError { - body: string; - statusCode: number; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidSsePayload.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidSsePayload.ts deleted file mode 100644 index f469730b9a..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidSsePayload.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Rivet from "../index"; - -/** - * Serverless: Runner sent invalid payload - */ -export interface RunnerPoolErrorServerlessInvalidSsePayload { - /** Serverless: Runner sent invalid payload */ - serverlessInvalidSsePayload: Rivet.RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload.ts deleted file mode 100644 index 5946d56e47..0000000000 --- a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Serverless: Runner sent invalid payload - */ -export interface RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload { - message: string; - rawPayload?: string; -} diff --git a/engine/sdks/typescript/api-full/src/api/types/index.ts b/engine/sdks/typescript/api-full/src/api/types/index.ts index d50aad2a1f..32fdc6ce8f 100644 --- a/engine/sdks/typescript/api-full/src/api/types/index.ts +++ b/engine/sdks/typescript/api-full/src/api/types/index.ts @@ -1,14 +1,4 @@ export * from "./Actor"; -export * from "./ActorErrorRunnerPoolError"; -export * from "./ActorErrorRunnerNoResponseRunnerNoResponse"; -export * from "./ActorErrorRunnerNoResponse"; -export * from "./ActorErrorRunnerConnectionLostRunnerConnectionLost"; -export * from "./ActorErrorRunnerConnectionLost"; -export * from "./ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout"; -export * from "./ActorErrorRunnerDrainingTimeout"; -export * from "./ActorErrorCrashedCrashed"; -export * from "./ActorErrorCrashed"; -export * from "./ActorError"; export * from "./ActorName"; export * from "./ActorsCreateResponse"; export * from "./ActorsDeleteResponse"; @@ -59,12 +49,5 @@ export * from "./RunnerConfigsServerlessMetadataErrorInvalidResponseSchemaInvali export * from "./RunnerConfigsServerlessMetadataErrorInvalidResponseSchema"; export * from "./RunnerConfigsServerlessMetadataError"; export * from "./RunnerConfigsUpsertResponse"; -export * from "./RunnerPoolErrorServerlessHttpErrorServerlessHttpError"; -export * from "./RunnerPoolErrorServerlessHttpError"; -export * from "./RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError"; -export * from "./RunnerPoolErrorServerlessConnectionError"; -export * from "./RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload"; -export * from "./RunnerPoolErrorServerlessInvalidSsePayload"; -export * from "./RunnerPoolError"; export * from "./RunnersListNamesResponse"; export * from "./RunnersListResponse"; diff --git a/engine/sdks/typescript/api-full/src/serialization/types/Actor.ts b/engine/sdks/typescript/api-full/src/serialization/types/Actor.ts index f8a1303500..c8c2a72243 100644 --- a/engine/sdks/typescript/api-full/src/serialization/types/Actor.ts +++ b/engine/sdks/typescript/api-full/src/serialization/types/Actor.ts @@ -7,7 +7,6 @@ import * as Rivet from "../../api/index"; import * as core from "../../core"; import { RivetId } from "./RivetId"; import { CrashPolicy } from "./CrashPolicy"; -import { ActorError } from "./ActorError"; export const Actor: core.serialization.ObjectSchema = core.serialization.object({ actorId: core.serialization.property("actor_id", RivetId), @@ -16,7 +15,7 @@ export const Actor: core.serialization.ObjectSchema | null; key?: string | null; name: string; namespace_id: RivetId.Raw; diff --git a/engine/sdks/typescript/api-full/src/serialization/types/ActorError.ts b/engine/sdks/typescript/api-full/src/serialization/types/ActorError.ts deleted file mode 100644 index 2edd3de6bd..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/ActorError.ts +++ /dev/null @@ -1,32 +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 { ActorErrorRunnerPoolError } from "./ActorErrorRunnerPoolError"; -import { ActorErrorRunnerNoResponse } from "./ActorErrorRunnerNoResponse"; -import { ActorErrorRunnerConnectionLost } from "./ActorErrorRunnerConnectionLost"; -import { ActorErrorRunnerDrainingTimeout } from "./ActorErrorRunnerDrainingTimeout"; -import { ActorErrorCrashed } from "./ActorErrorCrashed"; - -export const ActorError: core.serialization.Schema = - core.serialization.undiscriminatedUnion([ - ActorErrorRunnerPoolError, - core.serialization.stringLiteral("no_capacity"), - ActorErrorRunnerNoResponse, - ActorErrorRunnerConnectionLost, - ActorErrorRunnerDrainingTimeout, - ActorErrorCrashed, - ]); - -export declare namespace ActorError { - export type Raw = - | ActorErrorRunnerPoolError.Raw - | "no_capacity" - | ActorErrorRunnerNoResponse.Raw - | ActorErrorRunnerConnectionLost.Raw - | ActorErrorRunnerDrainingTimeout.Raw - | ActorErrorCrashed.Raw; -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorCrashed.ts b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorCrashed.ts deleted file mode 100644 index 1ca6e91b48..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorCrashed.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 { ActorErrorCrashedCrashed } from "./ActorErrorCrashedCrashed"; - -export const ActorErrorCrashed: core.serialization.ObjectSchema< - serializers.ActorErrorCrashed.Raw, - Rivet.ActorErrorCrashed -> = core.serialization.object({ - crashed: ActorErrorCrashedCrashed, -}); - -export declare namespace ActorErrorCrashed { - export interface Raw { - crashed: ActorErrorCrashedCrashed.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorCrashedCrashed.ts b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorCrashedCrashed.ts deleted file mode 100644 index 170ec60a61..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorCrashedCrashed.ts +++ /dev/null @@ -1,20 +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"; - -export const ActorErrorCrashedCrashed: core.serialization.ObjectSchema< - serializers.ActorErrorCrashedCrashed.Raw, - Rivet.ActorErrorCrashedCrashed -> = core.serialization.object({ - message: core.serialization.string().optional(), -}); - -export declare namespace ActorErrorCrashedCrashed { - export interface Raw { - message?: string | null; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerConnectionLost.ts b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerConnectionLost.ts deleted file mode 100644 index b52f121202..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerConnectionLost.ts +++ /dev/null @@ -1,24 +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 { ActorErrorRunnerConnectionLostRunnerConnectionLost } from "./ActorErrorRunnerConnectionLostRunnerConnectionLost"; - -export const ActorErrorRunnerConnectionLost: core.serialization.ObjectSchema< - serializers.ActorErrorRunnerConnectionLost.Raw, - Rivet.ActorErrorRunnerConnectionLost -> = core.serialization.object({ - runnerConnectionLost: core.serialization.property( - "runner_connection_lost", - ActorErrorRunnerConnectionLostRunnerConnectionLost, - ), -}); - -export declare namespace ActorErrorRunnerConnectionLost { - export interface Raw { - runner_connection_lost: ActorErrorRunnerConnectionLostRunnerConnectionLost.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.ts b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.ts deleted file mode 100644 index 80dac11beb..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerConnectionLostRunnerConnectionLost.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 { RivetId } from "./RivetId"; - -export const ActorErrorRunnerConnectionLostRunnerConnectionLost: core.serialization.ObjectSchema< - serializers.ActorErrorRunnerConnectionLostRunnerConnectionLost.Raw, - Rivet.ActorErrorRunnerConnectionLostRunnerConnectionLost -> = core.serialization.object({ - runnerId: core.serialization.property("runner_id", RivetId), -}); - -export declare namespace ActorErrorRunnerConnectionLostRunnerConnectionLost { - export interface Raw { - runner_id: RivetId.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerDrainingTimeout.ts b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerDrainingTimeout.ts deleted file mode 100644 index d5d2a292c2..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerDrainingTimeout.ts +++ /dev/null @@ -1,24 +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 { ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout } from "./ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout"; - -export const ActorErrorRunnerDrainingTimeout: core.serialization.ObjectSchema< - serializers.ActorErrorRunnerDrainingTimeout.Raw, - Rivet.ActorErrorRunnerDrainingTimeout -> = core.serialization.object({ - runnerDrainingTimeout: core.serialization.property( - "runner_draining_timeout", - ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout, - ), -}); - -export declare namespace ActorErrorRunnerDrainingTimeout { - export interface Raw { - runner_draining_timeout: ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.ts b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.ts deleted file mode 100644 index 8e794c6862..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.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 { RivetId } from "./RivetId"; - -export const ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout: core.serialization.ObjectSchema< - serializers.ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout.Raw, - Rivet.ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout -> = core.serialization.object({ - runnerId: core.serialization.property("runner_id", RivetId), -}); - -export declare namespace ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout { - export interface Raw { - runner_id: RivetId.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerNoResponse.ts b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerNoResponse.ts deleted file mode 100644 index d6934835d6..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerNoResponse.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 { ActorErrorRunnerNoResponseRunnerNoResponse } from "./ActorErrorRunnerNoResponseRunnerNoResponse"; - -export const ActorErrorRunnerNoResponse: core.serialization.ObjectSchema< - serializers.ActorErrorRunnerNoResponse.Raw, - Rivet.ActorErrorRunnerNoResponse -> = core.serialization.object({ - runnerNoResponse: core.serialization.property("runner_no_response", ActorErrorRunnerNoResponseRunnerNoResponse), -}); - -export declare namespace ActorErrorRunnerNoResponse { - export interface Raw { - runner_no_response: ActorErrorRunnerNoResponseRunnerNoResponse.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts deleted file mode 100644 index fc64578802..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.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 { RivetId } from "./RivetId"; - -export const ActorErrorRunnerNoResponseRunnerNoResponse: core.serialization.ObjectSchema< - serializers.ActorErrorRunnerNoResponseRunnerNoResponse.Raw, - Rivet.ActorErrorRunnerNoResponseRunnerNoResponse -> = core.serialization.object({ - runnerId: core.serialization.property("runner_id", RivetId), -}); - -export declare namespace ActorErrorRunnerNoResponseRunnerNoResponse { - export interface Raw { - runner_id: RivetId.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerPoolError.ts b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerPoolError.ts deleted file mode 100644 index 654ae65cda..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerPoolError.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 { RunnerPoolError } from "./RunnerPoolError"; - -export const ActorErrorRunnerPoolError: core.serialization.ObjectSchema< - serializers.ActorErrorRunnerPoolError.Raw, - Rivet.ActorErrorRunnerPoolError -> = core.serialization.object({ - runnerPoolError: core.serialization.property("runner_pool_error", RunnerPoolError), -}); - -export declare namespace ActorErrorRunnerPoolError { - export interface Raw { - runner_pool_error: RunnerPoolError.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerConfigResponse.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerConfigResponse.ts index 7ae7c407fe..73d9bd5bf6 100644 --- a/engine/sdks/typescript/api-full/src/serialization/types/RunnerConfigResponse.ts +++ b/engine/sdks/typescript/api-full/src/serialization/types/RunnerConfigResponse.ts @@ -5,7 +5,6 @@ import * as serializers from "../index"; import * as Rivet from "../../api/index"; import * as core from "../../core"; -import { RunnerPoolError } from "./RunnerPoolError"; import { RunnerConfig } from "./RunnerConfig"; export const RunnerConfigResponse: core.serialization.ObjectSchema< @@ -13,12 +12,15 @@ export const RunnerConfigResponse: core.serialization.ObjectSchema< Rivet.RunnerConfigResponse > = core.serialization .object({ - runnerPoolError: core.serialization.property("runner_pool_error", RunnerPoolError.optional()), + runnerPoolError: core.serialization.property( + "runner_pool_error", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + ), }) .extend(RunnerConfig); export declare namespace RunnerConfigResponse { export interface Raw extends RunnerConfig.Raw { - runner_pool_error?: RunnerPoolError.Raw | null; + runner_pool_error?: Record | null; } } diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolError.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolError.ts deleted file mode 100644 index cdb2863459..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolError.ts +++ /dev/null @@ -1,28 +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 { RunnerPoolErrorServerlessHttpError } from "./RunnerPoolErrorServerlessHttpError"; -import { RunnerPoolErrorServerlessConnectionError } from "./RunnerPoolErrorServerlessConnectionError"; -import { RunnerPoolErrorServerlessInvalidSsePayload } from "./RunnerPoolErrorServerlessInvalidSsePayload"; - -export const RunnerPoolError: core.serialization.Schema = - core.serialization.undiscriminatedUnion([ - RunnerPoolErrorServerlessHttpError, - core.serialization.stringLiteral("serverless_stream_ended_early"), - RunnerPoolErrorServerlessConnectionError, - RunnerPoolErrorServerlessInvalidSsePayload, - core.serialization.stringLiteral("internal_error"), - ]); - -export declare namespace RunnerPoolError { - export type Raw = - | RunnerPoolErrorServerlessHttpError.Raw - | "serverless_stream_ended_early" - | RunnerPoolErrorServerlessConnectionError.Raw - | RunnerPoolErrorServerlessInvalidSsePayload.Raw - | "internal_error"; -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessConnectionError.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessConnectionError.ts deleted file mode 100644 index 6c2fb4a0c5..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessConnectionError.ts +++ /dev/null @@ -1,24 +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 { RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError } from "./RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError"; - -export const RunnerPoolErrorServerlessConnectionError: core.serialization.ObjectSchema< - serializers.RunnerPoolErrorServerlessConnectionError.Raw, - Rivet.RunnerPoolErrorServerlessConnectionError -> = core.serialization.object({ - serverlessConnectionError: core.serialization.property( - "serverless_connection_error", - RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError, - ), -}); - -export declare namespace RunnerPoolErrorServerlessConnectionError { - export interface Raw { - serverless_connection_error: RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts deleted file mode 100644 index 14d9055862..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts +++ /dev/null @@ -1,20 +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"; - -export const RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError: core.serialization.ObjectSchema< - serializers.RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.Raw, - Rivet.RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError -> = core.serialization.object({ - message: core.serialization.string(), -}); - -export declare namespace RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError { - export interface Raw { - message: string; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessHttpError.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessHttpError.ts deleted file mode 100644 index 5a1334624d..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessHttpError.ts +++ /dev/null @@ -1,24 +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 { RunnerPoolErrorServerlessHttpErrorServerlessHttpError } from "./RunnerPoolErrorServerlessHttpErrorServerlessHttpError"; - -export const RunnerPoolErrorServerlessHttpError: core.serialization.ObjectSchema< - serializers.RunnerPoolErrorServerlessHttpError.Raw, - Rivet.RunnerPoolErrorServerlessHttpError -> = core.serialization.object({ - serverlessHttpError: core.serialization.property( - "serverless_http_error", - RunnerPoolErrorServerlessHttpErrorServerlessHttpError, - ), -}); - -export declare namespace RunnerPoolErrorServerlessHttpError { - export interface Raw { - serverless_http_error: RunnerPoolErrorServerlessHttpErrorServerlessHttpError.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts deleted file mode 100644 index 2eb6161814..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts +++ /dev/null @@ -1,22 +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"; - -export const RunnerPoolErrorServerlessHttpErrorServerlessHttpError: core.serialization.ObjectSchema< - serializers.RunnerPoolErrorServerlessHttpErrorServerlessHttpError.Raw, - Rivet.RunnerPoolErrorServerlessHttpErrorServerlessHttpError -> = core.serialization.object({ - body: core.serialization.string(), - statusCode: core.serialization.property("status_code", core.serialization.number()), -}); - -export declare namespace RunnerPoolErrorServerlessHttpErrorServerlessHttpError { - export interface Raw { - body: string; - status_code: number; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidSsePayload.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidSsePayload.ts deleted file mode 100644 index 9d72f04e54..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidSsePayload.ts +++ /dev/null @@ -1,24 +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 { RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload } from "./RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload"; - -export const RunnerPoolErrorServerlessInvalidSsePayload: core.serialization.ObjectSchema< - serializers.RunnerPoolErrorServerlessInvalidSsePayload.Raw, - Rivet.RunnerPoolErrorServerlessInvalidSsePayload -> = core.serialization.object({ - serverlessInvalidSsePayload: core.serialization.property( - "serverless_invalid_sse_payload", - RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload, - ), -}); - -export declare namespace RunnerPoolErrorServerlessInvalidSsePayload { - export interface Raw { - serverless_invalid_sse_payload: RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload.Raw; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload.ts deleted file mode 100644 index d8c71c0658..0000000000 --- a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload.ts +++ /dev/null @@ -1,22 +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"; - -export const RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload: core.serialization.ObjectSchema< - serializers.RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload.Raw, - Rivet.RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload -> = core.serialization.object({ - message: core.serialization.string(), - rawPayload: core.serialization.property("raw_payload", core.serialization.string().optional()), -}); - -export declare namespace RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload { - export interface Raw { - message: string; - raw_payload?: string | null; - } -} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/index.ts b/engine/sdks/typescript/api-full/src/serialization/types/index.ts index d50aad2a1f..32fdc6ce8f 100644 --- a/engine/sdks/typescript/api-full/src/serialization/types/index.ts +++ b/engine/sdks/typescript/api-full/src/serialization/types/index.ts @@ -1,14 +1,4 @@ export * from "./Actor"; -export * from "./ActorErrorRunnerPoolError"; -export * from "./ActorErrorRunnerNoResponseRunnerNoResponse"; -export * from "./ActorErrorRunnerNoResponse"; -export * from "./ActorErrorRunnerConnectionLostRunnerConnectionLost"; -export * from "./ActorErrorRunnerConnectionLost"; -export * from "./ActorErrorRunnerDrainingTimeoutRunnerDrainingTimeout"; -export * from "./ActorErrorRunnerDrainingTimeout"; -export * from "./ActorErrorCrashedCrashed"; -export * from "./ActorErrorCrashed"; -export * from "./ActorError"; export * from "./ActorName"; export * from "./ActorsCreateResponse"; export * from "./ActorsDeleteResponse"; @@ -59,12 +49,5 @@ export * from "./RunnerConfigsServerlessMetadataErrorInvalidResponseSchemaInvali export * from "./RunnerConfigsServerlessMetadataErrorInvalidResponseSchema"; export * from "./RunnerConfigsServerlessMetadataError"; export * from "./RunnerConfigsUpsertResponse"; -export * from "./RunnerPoolErrorServerlessHttpErrorServerlessHttpError"; -export * from "./RunnerPoolErrorServerlessHttpError"; -export * from "./RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError"; -export * from "./RunnerPoolErrorServerlessConnectionError"; -export * from "./RunnerPoolErrorServerlessInvalidSsePayloadServerlessInvalidSsePayload"; -export * from "./RunnerPoolErrorServerlessInvalidSsePayload"; -export * from "./RunnerPoolError"; export * from "./RunnersListNamesResponse"; export * from "./RunnersListResponse"; diff --git a/frontend/src/components/actors/actor-status-label.tsx b/frontend/src/components/actors/actor-status-label.tsx index 37592bb64f..090b200486 100644 --- a/frontend/src/components/actors/actor-status-label.tsx +++ b/frontend/src/components/actors/actor-status-label.tsx @@ -83,31 +83,34 @@ export function QueriedActorStatusAdditionalInfo({ return null; } -export function ActorError({ error }: { error: Rivet.ActorError }) { +export function ActorError({ error }: { error: object | string }) { return match(error) .with(P.string, (errMsg) => match(errMsg) .with("no_capacity", () => (

No capacity available to start Actor.

)) + .with("internal_error", () => ( +

Actor has an internal error.

+ )) .otherwise(() =>

Unknown error: {errMsg}

), ) - .with(P.shape({ runnerPoolError: P.any }), (err) => ( + .with(P.shape({ runnerPoolError: P.shape({ runnerId: P.string }) }), (err) => ( )) - .with(P.shape({ runnerNoResponse: P.any }), (err) => ( + .with(P.shape({ runnerNoResponse: P.shape({ runnerId: P.string }) }), (err) => (

Runner ({err.runnerNoResponse.runnerId}) was allocated but Actor did not respond.

)) - .with(P.shape({ runnerConnectionLost: P.any }), (err) => ( + .with(P.shape({ runnerConnectionLost: P.shape({ runnerId: P.string }) }), (err) => (

Runner ({err.runnerConnectionLost.runnerId}) connection was lost (no recent ping, network issue, or crash).

)) - .with(P.shape({ runnerDrainingTimeout: P.any }), (err) => ( + .with(P.shape({ runnerDrainingTimeout: P.shape({ runnerId: P.string }) }), (err) => (

Runner ({err.runnerDrainingTimeout.runnerId}) was draining but Actor didn't stop in time. @@ -136,7 +139,7 @@ export function QueriedActorError({ actorId }: { actorId: ActorId }) { export function RunnerPoolError({ error, }: { - error: Rivet.RunnerPoolError | undefined; + error: object | string | undefined; }) { return match(error) .with(P.nullish, () => null) @@ -145,15 +148,12 @@ export function RunnerPoolError({ .with("internal_error", () => (

Internal error occurred in runner pool

)) - .with("serverless_invalid_base64", () => ( -

Invalid base64 encoding in serverless response

- )) .with("serverless_stream_ended_early", () => (

Connection terminated unexpectedly

)) .otherwise(() =>

Unknown runner pool error

), ) - .with(P.shape({ serverlessHttpError: P.any }), (errObj) => { + .with(P.shape({ serverlessHttpError: P.shape({ statusCode: P.number, body: P.string }) }), (errObj) => { const { statusCode, body } = errObj.serverlessHttpError; const code = statusCode ?? "unknown"; return ( @@ -163,7 +163,7 @@ export function RunnerPoolError({ ); }) - .with(P.shape({ serverlessConnectionError: P.any }), (errObj) => { + .with(P.shape({ serverlessConnectionError: P.shape({ message: P.string }) }), (errObj) => { const message = errObj.serverlessConnectionError?.message; return ( <> @@ -172,8 +172,8 @@ export function RunnerPoolError({ ); }) - .with(P.shape({ serverlessInvalidPayload: P.any }), (errObj) => { - const message = errObj.serverlessInvalidPayload?.message; + .with(P.shape({ serverlessInvalidSsePayload: P.shape({ message: P.string }) }), (errObj) => { + const message = errObj.serverlessInvalidSsePayload?.message; return ( <>

Request payload validation failed

@@ -181,7 +181,9 @@ export function RunnerPoolError({ ); }) - .exhaustive(); + .otherwise(() => { + return

Unknown runner pool error.

; + }); } export function ErrorDetails({ error }: { error: unknown }) { diff --git a/rivetkit-asyncapi/asyncapi.json b/rivetkit-asyncapi/asyncapi.json index 41b5738200..682e390c6a 100644 --- a/rivetkit-asyncapi/asyncapi.json +++ b/rivetkit-asyncapi/asyncapi.json @@ -2,7 +2,7 @@ "asyncapi": "3.0.0", "info": { "title": "RivetKit WebSocket Protocol", - "version": "2.0.35", + "version": "2.0.38", "description": "WebSocket protocol for bidirectional communication between RivetKit clients and actors" }, "channels": { diff --git a/rivetkit-openapi/openapi.json b/rivetkit-openapi/openapi.json index 7a537ae01a..17319f6b95 100644 --- a/rivetkit-openapi/openapi.json +++ b/rivetkit-openapi/openapi.json @@ -1,7 +1,7 @@ { "openapi": "3.0.0", "info": { - "version": "2.0.35", + "version": "2.0.38", "title": "RivetKit API" }, "components": { @@ -85,152 +85,7 @@ "nullable": true }, "error": { - "anyOf": [ - { - "type": "object", - "properties": { - "serverless_error": { - "anyOf": [ - { - "type": "object", - "properties": { - "http_error": { - "type": "object", - "properties": { - "status_code": { - "type": "number" - }, - "body": { - "type": "string" - } - }, - "required": [ - "status_code", - "body" - ] - } - }, - "required": [ - "http_error" - ] - }, - { - "type": "string", - "enum": [ - "stream_ended_early" - ] - }, - { - "type": "object", - "properties": { - "connection_error": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ] - } - }, - "required": [ - "connection_error" - ] - }, - { - "type": "string", - "enum": [ - "invalid_base64" - ] - }, - { - "type": "object", - "properties": { - "invalid_payload": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ] - } - }, - "required": [ - "invalid_payload" - ] - }, - { - "type": "string", - "enum": [ - "runner_config_not_found" - ] - }, - { - "type": "string", - "enum": [ - "runner_config_not_serverless" - ] - }, - { - "type": "string", - "enum": [ - "namespace_not_found" - ] - } - ] - } - }, - "required": [ - "serverless_error" - ] - }, - { - "type": "object", - "properties": { - "no_capacity": { - "type": "object", - "properties": { - "runner_name": { - "type": "string" - } - }, - "required": [ - "runner_name" - ] - } - }, - "required": [ - "no_capacity" - ] - }, - { - "type": "object", - "properties": { - "runner_no_response": { - "type": "object", - "properties": { - "runner_id": { - "type": "string" - } - }, - "required": [ - "runner_id" - ] - } - }, - "required": [ - "runner_no_response" - ] - }, - { - "nullable": true - } - ] + "nullable": true } }, "required": [ @@ -343,152 +198,7 @@ "nullable": true }, "error": { - "anyOf": [ - { - "type": "object", - "properties": { - "serverless_error": { - "anyOf": [ - { - "type": "object", - "properties": { - "http_error": { - "type": "object", - "properties": { - "status_code": { - "type": "number" - }, - "body": { - "type": "string" - } - }, - "required": [ - "status_code", - "body" - ] - } - }, - "required": [ - "http_error" - ] - }, - { - "type": "string", - "enum": [ - "stream_ended_early" - ] - }, - { - "type": "object", - "properties": { - "connection_error": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ] - } - }, - "required": [ - "connection_error" - ] - }, - { - "type": "string", - "enum": [ - "invalid_base64" - ] - }, - { - "type": "object", - "properties": { - "invalid_payload": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ] - } - }, - "required": [ - "invalid_payload" - ] - }, - { - "type": "string", - "enum": [ - "runner_config_not_found" - ] - }, - { - "type": "string", - "enum": [ - "runner_config_not_serverless" - ] - }, - { - "type": "string", - "enum": [ - "namespace_not_found" - ] - } - ] - } - }, - "required": [ - "serverless_error" - ] - }, - { - "type": "object", - "properties": { - "no_capacity": { - "type": "object", - "properties": { - "runner_name": { - "type": "string" - } - }, - "required": [ - "runner_name" - ] - } - }, - "required": [ - "no_capacity" - ] - }, - { - "type": "object", - "properties": { - "runner_no_response": { - "type": "object", - "properties": { - "runner_id": { - "type": "string" - } - }, - "required": [ - "runner_id" - ] - } - }, - "required": [ - "runner_no_response" - ] - }, - { - "nullable": true - } - ] + "nullable": true } }, "required": [ @@ -604,152 +314,7 @@ "nullable": true }, "error": { - "anyOf": [ - { - "type": "object", - "properties": { - "serverless_error": { - "anyOf": [ - { - "type": "object", - "properties": { - "http_error": { - "type": "object", - "properties": { - "status_code": { - "type": "number" - }, - "body": { - "type": "string" - } - }, - "required": [ - "status_code", - "body" - ] - } - }, - "required": [ - "http_error" - ] - }, - { - "type": "string", - "enum": [ - "stream_ended_early" - ] - }, - { - "type": "object", - "properties": { - "connection_error": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ] - } - }, - "required": [ - "connection_error" - ] - }, - { - "type": "string", - "enum": [ - "invalid_base64" - ] - }, - { - "type": "object", - "properties": { - "invalid_payload": { - "type": "object", - "properties": { - "message": { - "type": "string" - } - }, - "required": [ - "message" - ] - } - }, - "required": [ - "invalid_payload" - ] - }, - { - "type": "string", - "enum": [ - "runner_config_not_found" - ] - }, - { - "type": "string", - "enum": [ - "runner_config_not_serverless" - ] - }, - { - "type": "string", - "enum": [ - "namespace_not_found" - ] - } - ] - } - }, - "required": [ - "serverless_error" - ] - }, - { - "type": "object", - "properties": { - "no_capacity": { - "type": "object", - "properties": { - "runner_name": { - "type": "string" - } - }, - "required": [ - "runner_name" - ] - } - }, - "required": [ - "no_capacity" - ] - }, - { - "type": "object", - "properties": { - "runner_no_response": { - "type": "object", - "properties": { - "runner_id": { - "type": "string" - } - }, - "required": [ - "runner_id" - ] - } - }, - "required": [ - "runner_no_response" - ] - }, - { - "nullable": true - } - ] + "nullable": true } }, "required": [