diff --git a/engine/artifacts/openapi.json b/engine/artifacts/openapi.json index 6b3ed41982..8a3903d136 100644 --- a/engine/artifacts/openapi.json +++ b/engine/artifacts/openapi.json @@ -964,6 +964,17 @@ "format": "int64", "description": "Denotes when the actor was destroyed." }, + "error": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/ActorError", + "description": "Error details if the actor failed to start." + } + ] + }, "key": { "type": [ "string", @@ -1013,6 +1024,51 @@ } } }, + "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", + "required": [ + "runner_no_response" + ], + "properties": { + "runner_no_response": { + "type": "object", + "description": "Runner was allocated but never started the actor", + "required": [ + "runner_id" + ], + "properties": { + "runner_id": { + "$ref": "#/components/schemas/RivetId" + } + } + } + } + } + ] + }, "ActorName": { "type": "object", "required": [ @@ -1635,6 +1691,28 @@ } ] }, + "RunnerConfigResponse": { + "allOf": [ + { + "$ref": "#/components/schemas/RunnerConfig" + }, + { + "type": "object", + "properties": { + "runner_pool_error": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/RunnerPoolError" + } + ] + } + } + } + ] + }, "RunnerConfigVariant": { "type": "string", "enum": [ @@ -1676,7 +1754,7 @@ "datacenters": { "type": "object", "additionalProperties": { - "$ref": "#/components/schemas/RunnerConfig" + "$ref": "#/components/schemas/RunnerConfigResponse" }, "propertyNames": { "type": "string" @@ -1888,6 +1966,100 @@ } } }, + "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": "string", + "description": "Serverless: Runner sent invalid base64 in SSE message", + "enum": [ + "serverless_invalid_base64" + ] + }, + { + "type": "object", + "description": "Serverless: Runner sent invalid protocol payload", + "required": [ + "serverless_invalid_payload" + ], + "properties": { + "serverless_invalid_payload": { + "type": "object", + "description": "Serverless: Runner sent invalid protocol payload", + "required": [ + "message" + ], + "properties": { + "message": { + "type": "string" + } + } + } + } + }, + { + "type": "string", + "description": "Internal error", + "enum": [ + "internal_error" + ] + } + ] + }, "RunnersListNamesResponse": { "type": "object", "required": [ diff --git a/engine/sdks/go/api-full/types.go b/engine/sdks/go/api-full/types.go index ca3d807030..95a6cb849c 100644 --- a/engine/sdks/go/api-full/types.go +++ b/engine/sdks/go/api-full/types.go @@ -102,10 +102,12 @@ type Actor struct { CreateTs int64 `json:"create_ts"` Datacenter string `json:"datacenter"` // Denotes when the actor was destroyed. - DestroyTs *int64 `json:"destroy_ts,omitempty"` - Key *string `json:"key,omitempty"` - Name string `json:"name"` - NamespaceId RivetId `json:"namespace_id"` + 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"` // 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 @@ -143,6 +145,179 @@ 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 + ActorErrorRunnerNoResponse *ActorErrorRunnerNoResponse +} + +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 (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 + } + 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) + } +} + +type ActorErrorVisitor interface { + VisitActorErrorRunnerPoolError(*ActorErrorRunnerPoolError) error + VisitStringLiteral(string) error + VisitActorErrorRunnerNoResponse(*ActorErrorRunnerNoResponse) 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) + } +} + +// Runner was allocated but never started the actor +type ActorErrorRunnerNoResponse struct { + // Runner was allocated but never started the actor + 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 +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"` @@ -908,6 +1083,38 @@ func (r *RunnerConfigKindServerlessServerless) String() string { return fmt.Sprintf("%#v", r) } +type RunnerConfigResponse struct { + Normal map[string]interface{} `json:"normal,omitempty"` + Serverless *RunnerConfigServerless `json:"serverless,omitempty"` + Metadata interface{} `json:"metadata,omitempty"` + RunnerPoolError *RunnerPoolError `json:"runner_pool_error,omitempty"` + + _rawJSON json.RawMessage +} + +func (r *RunnerConfigResponse) UnmarshalJSON(data []byte) error { + type unmarshaler RunnerConfigResponse + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *r = RunnerConfigResponse(value) + r._rawJSON = json.RawMessage(data) + return nil +} + +func (r *RunnerConfigResponse) 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 RunnerConfigServerless struct { Headers map[string]string `json:"headers,omitempty"` MaxRunners int `json:"max_runners"` @@ -999,7 +1206,7 @@ func (r *RunnerConfigsListResponse) String() string { } type RunnerConfigsListResponseRunnerConfigsValue struct { - Datacenters map[string]*RunnerConfig `json:"datacenters,omitempty"` + Datacenters map[string]*RunnerConfigResponse `json:"datacenters,omitempty"` _rawJSON json.RawMessage } @@ -1617,6 +1824,332 @@ 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 + stringLiteral string + // Serverless: Runner sent invalid protocol payload + RunnerPoolErrorServerlessInvalidPayload *RunnerPoolErrorServerlessInvalidPayload + 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 NewRunnerPoolErrorWithStringLiteral() *RunnerPoolError { + return &RunnerPoolError{typeName: "stringLiteral", stringLiteral: "serverless_invalid_base64"} +} + +func NewRunnerPoolErrorFromRunnerPoolErrorServerlessInvalidPayload(value *RunnerPoolErrorServerlessInvalidPayload) *RunnerPoolError { + return &RunnerPoolError{typeName: "runnerPoolErrorServerlessInvalidPayload", RunnerPoolErrorServerlessInvalidPayload: 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) 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 + } + var valueStringLiteral string + if err := json.Unmarshal(data, &valueStringLiteral); err == nil { + if valueStringLiteral == "serverless_invalid_base64" { + r.typeName = "stringLiteral" + r.stringLiteral = valueStringLiteral + return nil + } + } + valueRunnerPoolErrorServerlessInvalidPayload := new(RunnerPoolErrorServerlessInvalidPayload) + if err := json.Unmarshal(data, &valueRunnerPoolErrorServerlessInvalidPayload); err == nil { + r.typeName = "runnerPoolErrorServerlessInvalidPayload" + r.RunnerPoolErrorServerlessInvalidPayload = valueRunnerPoolErrorServerlessInvalidPayload + 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 "stringLiteral": + return json.Marshal("serverless_invalid_base64") + case "runnerPoolErrorServerlessInvalidPayload": + return json.Marshal(r.RunnerPoolErrorServerlessInvalidPayload) + case "stringLiteral": + return json.Marshal("internal_error") + } +} + +type RunnerPoolErrorVisitor interface { + VisitRunnerPoolErrorServerlessHttpError(*RunnerPoolErrorServerlessHttpError) error + VisitStringLiteral(string) error + VisitRunnerPoolErrorServerlessConnectionError(*RunnerPoolErrorServerlessConnectionError) error + VisitStringLiteral(string) error + VisitRunnerPoolErrorServerlessInvalidPayload(*RunnerPoolErrorServerlessInvalidPayload) 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 "stringLiteral": + return visitor.VisitStringLiteral(r.stringLiteral) + case "runnerPoolErrorServerlessInvalidPayload": + return visitor.VisitRunnerPoolErrorServerlessInvalidPayload(r.RunnerPoolErrorServerlessInvalidPayload) + 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 protocol payload +type RunnerPoolErrorServerlessInvalidPayload struct { + // Serverless: Runner sent invalid protocol payload + ServerlessInvalidPayload *RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload `json:"serverless_invalid_payload,omitempty"` + + _rawJSON json.RawMessage +} + +func (r *RunnerPoolErrorServerlessInvalidPayload) UnmarshalJSON(data []byte) error { + type unmarshaler RunnerPoolErrorServerlessInvalidPayload + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *r = RunnerPoolErrorServerlessInvalidPayload(value) + r._rawJSON = json.RawMessage(data) + return nil +} + +func (r *RunnerPoolErrorServerlessInvalidPayload) 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 protocol payload +type RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload struct { + Message string `json:"message"` + + _rawJSON json.RawMessage +} + +func (r *RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload) UnmarshalJSON(data []byte) error { + type unmarshaler RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload + var value unmarshaler + if err := json.Unmarshal(data, &value); err != nil { + return err + } + *r = RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload(value) + r._rawJSON = json.RawMessage(data) + return nil +} + +func (r *RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload) 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 890e0de4c0..252a4f0786 100644 --- a/engine/sdks/rust/api-full/rust/.openapi-generator/FILES +++ b/engine/sdks/rust/api-full/rust/.openapi-generator/FILES @@ -4,6 +4,10 @@ Cargo.toml README.md docs/Actor.md +docs/ActorError.md +docs/ActorErrorOneOf.md +docs/ActorErrorOneOf1.md +docs/ActorErrorOneOf1RunnerNoResponse.md docs/ActorName.md docs/ActorsCreateApi.md docs/ActorsCreateRequest.md @@ -41,6 +45,7 @@ docs/RunnerConfigKind.md docs/RunnerConfigKindOneOf.md docs/RunnerConfigKindOneOf1.md docs/RunnerConfigKindOneOf1Serverless.md +docs/RunnerConfigResponse.md docs/RunnerConfigVariant.md docs/RunnerConfigsDeleteApi.md docs/RunnerConfigsListApi.md @@ -67,6 +72,13 @@ 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/RunnerPoolErrorOneOf2ServerlessInvalidPayload.md +docs/RunnerPoolErrorOneOfServerlessHttpError.md docs/RunnersApi.md docs/RunnersListNamesResponse.md docs/RunnersListResponse.md @@ -91,6 +103,10 @@ 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_name.rs src/models/actors_create_request.rs src/models/actors_create_response.rs @@ -119,6 +135,7 @@ src/models/runner_config_kind.rs src/models/runner_config_kind_one_of.rs src/models/runner_config_kind_one_of_1.rs src/models/runner_config_kind_one_of_1_serverless.rs +src/models/runner_config_response.rs src/models/runner_config_variant.rs src/models/runner_configs_list_response.rs src/models/runner_configs_list_response_runner_configs_value.rs @@ -140,5 +157,12 @@ 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_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 1458ca0bc8..c0bd013a10 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.32" +version = "2.0.33" 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 ee27642cbc..64bb714868 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.32 -- Package version: 2.0.32 +- API version: 2.0.33 +- Package version: 2.0.33 - Generator version: 7.14.0 - Build package: `org.openapitools.codegen.languages.RustClientCodegen` @@ -49,6 +49,10 @@ 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) - [ActorName](docs/ActorName.md) - [ActorsCreateRequest](docs/ActorsCreateRequest.md) - [ActorsCreateResponse](docs/ActorsCreateResponse.md) @@ -76,6 +80,7 @@ Class | Method | HTTP request | Description - [RunnerConfigKindOneOf](docs/RunnerConfigKindOneOf.md) - [RunnerConfigKindOneOf1](docs/RunnerConfigKindOneOf1.md) - [RunnerConfigKindOneOf1Serverless](docs/RunnerConfigKindOneOf1Serverless.md) + - [RunnerConfigResponse](docs/RunnerConfigResponse.md) - [RunnerConfigVariant](docs/RunnerConfigVariant.md) - [RunnerConfigsListResponse](docs/RunnerConfigsListResponse.md) - [RunnerConfigsListResponseRunnerConfigsValue](docs/RunnerConfigsListResponseRunnerConfigsValue.md) @@ -97,6 +102,13 @@ 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) + - [RunnerPoolErrorOneOf2ServerlessInvalidPayload](docs/RunnerPoolErrorOneOf2ServerlessInvalidPayload.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 ad98c35c51..b0c8422be9 100644 --- a/engine/sdks/rust/api-full/rust/docs/Actor.md +++ b/engine/sdks/rust/api-full/rust/docs/Actor.md @@ -10,6 +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] **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 new file mode 100644 index 0000000000..498ae3a900 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/ActorError.md @@ -0,0 +1,13 @@ +# ActorError + +## Enum Variants + +| Name | Description | +|---- | -----| +| ActorErrorOneOf | | +| ActorErrorOneOf1 | | +| 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 new file mode 100644 index 0000000000..1823fb785f --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf.md @@ -0,0 +1,11 @@ +# 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 new file mode 100644 index 0000000000..d8db388318 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf1.md @@ -0,0 +1,11 @@ +# 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 new file mode 100644 index 0000000000..7cb9a8d85a --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/ActorErrorOneOf1RunnerNoResponse.md @@ -0,0 +1,11 @@ +# 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/RunnerConfigResponse.md b/engine/sdks/rust/api-full/rust/docs/RunnerConfigResponse.md new file mode 100644 index 0000000000..103d846a16 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/RunnerConfigResponse.md @@ -0,0 +1,14 @@ +# RunnerConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**normal** | [**serde_json::Value**](.md) | | +**serverless** | [**models::RunnerConfigKindOneOf1Serverless**](RunnerConfigKind_oneOf_1_serverless.md) | | +**metadata** | Option<[**serde_json::Value**](.md)> | | [optional] +**runner_pool_error** | Option<[**models::RunnerPoolError**](RunnerPoolError.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/RunnerConfigsListResponseRunnerConfigsValue.md b/engine/sdks/rust/api-full/rust/docs/RunnerConfigsListResponseRunnerConfigsValue.md index 4af50e6228..505ce1dc94 100644 --- a/engine/sdks/rust/api-full/rust/docs/RunnerConfigsListResponseRunnerConfigsValue.md +++ b/engine/sdks/rust/api-full/rust/docs/RunnerConfigsListResponseRunnerConfigsValue.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**datacenters** | [**std::collections::HashMap**](RunnerConfig.md) | | +**datacenters** | [**std::collections::HashMap**](RunnerConfigResponse.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/RunnerPoolError.md b/engine/sdks/rust/api-full/rust/docs/RunnerPoolError.md new file mode 100644 index 0000000000..8f4f9956b7 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/RunnerPoolError.md @@ -0,0 +1,14 @@ +# 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 new file mode 100644 index 0000000000..d9441877e2 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf.md @@ -0,0 +1,11 @@ +# 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 new file mode 100644 index 0000000000..9ef7cd714c --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf1.md @@ -0,0 +1,11 @@ +# 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 new file mode 100644 index 0000000000..4aebe5167f --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf1ServerlessConnectionError.md @@ -0,0 +1,11 @@ +# 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 new file mode 100644 index 0000000000..64136c04c8 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf2.md @@ -0,0 +1,11 @@ +# RunnerPoolErrorOneOf2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**serverless_invalid_payload** | [**models::RunnerPoolErrorOneOf2ServerlessInvalidPayload**](RunnerPoolError_oneOf_2_serverless_invalid_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/RunnerPoolErrorOneOf2ServerlessInvalidPayload.md b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf2ServerlessInvalidPayload.md new file mode 100644 index 0000000000..6347edfe9d --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOf2ServerlessInvalidPayload.md @@ -0,0 +1,11 @@ +# RunnerPoolErrorOneOf2ServerlessInvalidPayload + +## 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/RunnerPoolErrorOneOfServerlessHttpError.md b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOfServerlessHttpError.md new file mode 100644 index 0000000000..835db6fec9 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/docs/RunnerPoolErrorOneOfServerlessHttpError.md @@ -0,0 +1,12 @@ +# 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 81ee314cda..83df5cb57b 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 f44ff473dc..e073d59a67 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 e3dd5609f3..4c32b733fc 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 91fc562910..ba354b638b 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 2c65f59153..6b0d253ed7 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 c3b972ea1f..ff0f2d2ae3 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 4de57dc6f9..123115983f 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.32 + * The version of the OpenAPI document: 2.0.33 * 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.32/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/2.0.33/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 1673e260fa..519be038b0 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 be18a974a1..3800a3ae89 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 cf2094fe67..ae7c28f433 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 8106bc9a2c..d5009372b8 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 ab516f3c4f..486dff3e10 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 e69089ad4d..120926e37a 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 486a6cad31..421dcea96b 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 03da3188eb..c4164f3c2b 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 8b3ccd5f0d..c78eeb5e40 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 52ab90bf53..94e5024ffe 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 2e9338565a..e5959994da 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.32 + * The version of the OpenAPI document: 2.0.33 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ @@ -28,6 +28,9 @@ pub struct Actor { /// Denotes when the actor was destroyed. #[serde(rename = "destroy_ts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] 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>>, #[serde(rename = "key", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub key: Option>, #[serde(rename = "name")] @@ -59,6 +62,7 @@ impl Actor { create_ts, datacenter, destroy_ts: None, + error: None, key: None, name, namespace_id, 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 new file mode 100644 index 0000000000..b96cffa767 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/actor_error.rs @@ -0,0 +1,28 @@ +/* + * 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), +} + +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 new file mode 100644 index 0000000000..85bca61bbc --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of.rs @@ -0,0 +1,30 @@ +/* + * 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 new file mode 100644 index 0000000000..1fa80f7106 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_1.rs @@ -0,0 +1,29 @@ +/* + * 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 +#[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 + 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 new file mode 100644 index 0000000000..89c5221916 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/actor_error_one_of_1_runner_no_response.rs @@ -0,0 +1,29 @@ +/* + * 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 +#[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 + pub fn new(runner_id: String) -> ActorErrorOneOf1RunnerNoResponse { + ActorErrorOneOf1RunnerNoResponse { + runner_id, + } + } +} + 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 581d3266ad..855a45e25b 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 bb55ccfd55..5a3b8fe8fb 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 d304160e5b..b2a24627ab 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 7443ab8a55..5e3c577ffe 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 66bc3f94d4..1ac873a5ce 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 eac72a5be8..22f9a9e660 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 310a8a4cb2..30456500d4 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 d7ebe2590b..9e5ed94691 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 e1ed4e7ae4..301f1771e2 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 f85588af51..aeb2d7d057 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 6be79e09c4..4a763313b0 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 640b60c505..bee026946d 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 07d8c0382d..b8299e424b 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 7ad4936f08..093452ca09 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 f95f7f2f4c..d3e3275503 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 1ec8e8a0b3..67fed8b856 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 46d832e3df..cedf788a59 100644 --- a/engine/sdks/rust/api-full/rust/src/models/mod.rs +++ b/engine/sdks/rust/api-full/rust/src/models/mod.rs @@ -1,5 +1,13 @@ 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_name; pub use self::actor_name::ActorName; pub mod actors_create_request; @@ -54,6 +62,8 @@ pub mod runner_config_kind_one_of_1; pub use self::runner_config_kind_one_of_1::RunnerConfigKindOneOf1; pub mod runner_config_kind_one_of_1_serverless; pub use self::runner_config_kind_one_of_1_serverless::RunnerConfigKindOneOf1Serverless; +pub mod runner_config_response; +pub use self::runner_config_response::RunnerConfigResponse; pub mod runner_config_variant; pub use self::runner_config_variant::RunnerConfigVariant; pub mod runner_configs_list_response; @@ -96,6 +106,20 @@ 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_payload; +pub use self::runner_pool_error_one_of_2_serverless_invalid_payload::RunnerPoolErrorOneOf2ServerlessInvalidPayload; +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 5ed6338ec0..a6f8bbf554 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 21d9f83f61..c05c012047 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 f9f0be27a0..32743d7972 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 dc5e8e5fdb..7fe481e150 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 e9933845b2..4f3346dba1 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 5d8e144e54..8fb16c04c2 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 a4453d3ac4..6c777bb329 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 8d427e9ad6..2925527611 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 f17bcca518..d478db2b69 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 715f043c03..8e260c5f45 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 514a344a66..3203cb5432 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 new file mode 100644 index 0000000000..9c9da25a04 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/runner_config_response.rs @@ -0,0 +1,36 @@ +/* + * 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, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RunnerConfigResponse { + #[serde(rename = "normal")] + pub normal: serde_json::Value, + #[serde(rename = "serverless")] + pub serverless: Box, + #[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>>, +} + +impl RunnerConfigResponse { + pub fn new(normal: serde_json::Value, serverless: models::RunnerConfigKindOneOf1Serverless) -> RunnerConfigResponse { + RunnerConfigResponse { + normal, + serverless: Box::new(serverless), + metadata: None, + runner_pool_error: None, + } + } +} + 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 248827f9b0..69e3b381e9 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 786256f701..6c1b5e092b 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 4a520848b4..6a087c0dbe 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.32 + * The version of the OpenAPI document: 2.0.33 * Contact: developer@rivet.gg * Generated by: https://openapi-generator.tech */ @@ -14,11 +14,11 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct RunnerConfigsListResponseRunnerConfigsValue { #[serde(rename = "datacenters")] - pub datacenters: std::collections::HashMap, + pub datacenters: std::collections::HashMap, } impl RunnerConfigsListResponseRunnerConfigsValue { - pub fn new(datacenters: std::collections::HashMap) -> RunnerConfigsListResponseRunnerConfigsValue { + pub fn new(datacenters: std::collections::HashMap) -> RunnerConfigsListResponseRunnerConfigsValue { RunnerConfigsListResponseRunnerConfigsValue { datacenters, } 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 8648f85b52..dc570630cd 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 d017f6bd70..1b91fba43d 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 27d7fdc435..b46b58e58c 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 eba2695154..f46b057c22 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 4a0b5bef3a..5342cbdc58 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 a11dd07234..8c054e8748 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 4999b24fac..ed977854d8 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 a8ed76608c..836bee7dcf 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 089a55ddb6..e533385982 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 3e1a51999b..0e8902cde4 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 3d9ac8c103..e8de2508df 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 baaca4c2df..a9480fd28d 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 c09ae1b94e..6cd5e4e721 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 14c84b8a08..7fb19d115d 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 6a119e708d..a28265e1a4 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 fa1fbb1d19..7ff8eca101 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 f3750d729b..4b048640a8 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 e531f2d31f..2432f8ea4b 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 new file mode 100644 index 0000000000..2d3959ef94 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error.rs @@ -0,0 +1,33 @@ +/* + * 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), + /// Serverless: Runner sent invalid base64 in SSE message + String(String), + 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 new file mode 100644 index 0000000000..e4d447511c --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of.rs @@ -0,0 +1,29 @@ +/* + * 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 new file mode 100644 index 0000000000..985ae7f8c3 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_1.rs @@ -0,0 +1,29 @@ +/* + * 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 new file mode 100644 index 0000000000..facec75a00 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_1_serverless_connection_error.rs @@ -0,0 +1,29 @@ +/* + * 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 new file mode 100644 index 0000000000..97d4e759b5 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_2.rs @@ -0,0 +1,29 @@ +/* + * 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 protocol payload +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RunnerPoolErrorOneOf2 { + #[serde(rename = "serverless_invalid_payload")] + pub serverless_invalid_payload: Box, +} + +impl RunnerPoolErrorOneOf2 { + /// Serverless: Runner sent invalid protocol payload + pub fn new(serverless_invalid_payload: models::RunnerPoolErrorOneOf2ServerlessInvalidPayload) -> RunnerPoolErrorOneOf2 { + RunnerPoolErrorOneOf2 { + serverless_invalid_payload: Box::new(serverless_invalid_payload), + } + } +} + diff --git a/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_2_serverless_invalid_payload.rs b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_2_serverless_invalid_payload.rs new file mode 100644 index 0000000000..1a01236278 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_2_serverless_invalid_payload.rs @@ -0,0 +1,29 @@ +/* + * 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}; + +/// RunnerPoolErrorOneOf2ServerlessInvalidPayload : Serverless: Runner sent invalid protocol payload +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RunnerPoolErrorOneOf2ServerlessInvalidPayload { + #[serde(rename = "message")] + pub message: String, +} + +impl RunnerPoolErrorOneOf2ServerlessInvalidPayload { + /// Serverless: Runner sent invalid protocol payload + pub fn new(message: String) -> RunnerPoolErrorOneOf2ServerlessInvalidPayload { + RunnerPoolErrorOneOf2ServerlessInvalidPayload { + message, + } + } +} + 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 new file mode 100644 index 0000000000..becc889406 --- /dev/null +++ b/engine/sdks/rust/api-full/rust/src/models/runner_pool_error_one_of_serverless_http_error.rs @@ -0,0 +1,32 @@ +/* + * 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 e8b2ed7593..7df469ce56 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 b5d2b8e09f..8d903c156b 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.32 + * The version of the OpenAPI document: 2.0.33 * 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 bb054977f7..798523ea51 100644 --- a/engine/sdks/typescript/api-full/src/api/types/Actor.ts +++ b/engine/sdks/typescript/api-full/src/api/types/Actor.ts @@ -14,6 +14,8 @@ export interface Actor { datacenter: string; /** Denotes when the actor was destroyed. */ destroyTs?: number; + /** Error details if the actor failed to start. */ + error?: Rivet.ActorError; 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 new file mode 100644 index 0000000000..d0d5b3b096 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/ActorError.ts @@ -0,0 +1,14 @@ +/** + * 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 */ + | Rivet.ActorErrorRunnerNoResponse; diff --git a/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerNoResponse.ts b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerNoResponse.ts new file mode 100644 index 0000000000..aa7c22f714 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerNoResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../index"; + +/** + * Runner was allocated but never started the actor + */ +export interface ActorErrorRunnerNoResponse { + /** Runner was allocated but never started the actor */ + 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 new file mode 100644 index 0000000000..63d73807a2 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../index"; + +/** + * Runner was allocated but never started the actor + */ +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 new file mode 100644 index 0000000000..b6a3bc5687 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/ActorErrorRunnerPoolError.ts @@ -0,0 +1,13 @@ +/** + * 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 new file mode 100644 index 0000000000..ece2746dd7 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/RunnerConfigResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../index"; + +export interface RunnerConfigResponse extends Rivet.RunnerConfig { + runnerPoolError?: Rivet.RunnerPoolError; +} diff --git a/engine/sdks/typescript/api-full/src/api/types/RunnerConfigsListResponseRunnerConfigsValue.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerConfigsListResponseRunnerConfigsValue.ts index fe5e93b6c8..41e7477421 100644 --- a/engine/sdks/typescript/api-full/src/api/types/RunnerConfigsListResponseRunnerConfigsValue.ts +++ b/engine/sdks/typescript/api-full/src/api/types/RunnerConfigsListResponseRunnerConfigsValue.ts @@ -5,5 +5,5 @@ import * as Rivet from "../index"; export interface RunnerConfigsListResponseRunnerConfigsValue { - datacenters: Record; + datacenters: 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 new file mode 100644 index 0000000000..ae11b8baed --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolError.ts @@ -0,0 +1,19 @@ +/** + * 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_invalid_base64" + /** + * Serverless: Runner sent invalid protocol payload */ + | Rivet.RunnerPoolErrorServerlessInvalidPayload + | "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 new file mode 100644 index 0000000000..486816e37a --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessConnectionError.ts @@ -0,0 +1,13 @@ +/** + * 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 new file mode 100644 index 0000000000..280778eb79 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts @@ -0,0 +1,10 @@ +/** + * 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 new file mode 100644 index 0000000000..1ccb248579 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessHttpError.ts @@ -0,0 +1,13 @@ +/** + * 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 new file mode 100644 index 0000000000..c86bb7a498 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts @@ -0,0 +1,11 @@ +/** + * 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/RunnerPoolErrorServerlessInvalidPayload.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidPayload.ts new file mode 100644 index 0000000000..b48746987c --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidPayload.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../index"; + +/** + * Serverless: Runner sent invalid protocol payload + */ +export interface RunnerPoolErrorServerlessInvalidPayload { + /** Serverless: Runner sent invalid protocol payload */ + serverlessInvalidPayload: Rivet.RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload; +} diff --git a/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.ts b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.ts new file mode 100644 index 0000000000..29fd905917 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/api/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Serverless: Runner sent invalid protocol payload + */ +export interface RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload { + message: 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 45da4bda77..6ad48ab8ae 100644 --- a/engine/sdks/typescript/api-full/src/api/types/index.ts +++ b/engine/sdks/typescript/api-full/src/api/types/index.ts @@ -1,4 +1,8 @@ export * from "./Actor"; +export * from "./ActorErrorRunnerPoolError"; +export * from "./ActorErrorRunnerNoResponseRunnerNoResponse"; +export * from "./ActorErrorRunnerNoResponse"; +export * from "./ActorError"; export * from "./ActorName"; export * from "./ActorsCreateResponse"; export * from "./ActorsDeleteResponse"; @@ -26,6 +30,7 @@ export * from "./RunnerConfigKindNormal"; export * from "./RunnerConfigKindServerlessServerless"; export * from "./RunnerConfigKindServerless"; export * from "./RunnerConfigKind"; +export * from "./RunnerConfigResponse"; export * from "./RunnerConfigVariant"; export * from "./RunnerConfigsDeleteResponse"; export * from "./RunnerConfigsListResponse"; @@ -48,5 +53,12 @@ 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 "./RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload"; +export * from "./RunnerPoolErrorServerlessInvalidPayload"; +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 cf7d101270..f8a1303500 100644 --- a/engine/sdks/typescript/api-full/src/serialization/types/Actor.ts +++ b/engine/sdks/typescript/api-full/src/serialization/types/Actor.ts @@ -7,6 +7,7 @@ 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), @@ -15,6 +16,7 @@ export const Actor: core.serialization.ObjectSchema = + core.serialization.undiscriminatedUnion([ + ActorErrorRunnerPoolError, + core.serialization.stringLiteral("no_capacity"), + ActorErrorRunnerNoResponse, + ]); + +export declare namespace ActorError { + export type Raw = ActorErrorRunnerPoolError.Raw | "no_capacity" | ActorErrorRunnerNoResponse.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 new file mode 100644 index 0000000000..d6934835d6 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerNoResponse.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Rivet from "../../api/index"; +import * as core from "../../core"; +import { 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 new file mode 100644 index 0000000000..fc64578802 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerNoResponseRunnerNoResponse.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Rivet from "../../api/index"; +import * as core from "../../core"; +import { 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 new file mode 100644 index 0000000000..654ae65cda --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/ActorErrorRunnerPoolError.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Rivet from "../../api/index"; +import * as core from "../../core"; +import { 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 new file mode 100644 index 0000000000..7ae7c407fe --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/RunnerConfigResponse.ts @@ -0,0 +1,24 @@ +/** + * 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"; +import { RunnerConfig } from "./RunnerConfig"; + +export const RunnerConfigResponse: core.serialization.ObjectSchema< + serializers.RunnerConfigResponse.Raw, + Rivet.RunnerConfigResponse +> = core.serialization + .object({ + runnerPoolError: core.serialization.property("runner_pool_error", RunnerPoolError.optional()), + }) + .extend(RunnerConfig); + +export declare namespace RunnerConfigResponse { + export interface Raw extends RunnerConfig.Raw { + runner_pool_error?: RunnerPoolError.Raw | null; + } +} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.ts index a604f11289..2f58201084 100644 --- a/engine/sdks/typescript/api-full/src/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.ts +++ b/engine/sdks/typescript/api-full/src/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.ts @@ -5,17 +5,17 @@ import * as serializers from "../index"; import * as Rivet from "../../api/index"; import * as core from "../../core"; -import { RunnerConfig } from "./RunnerConfig"; +import { RunnerConfigResponse } from "./RunnerConfigResponse"; export const RunnerConfigsListResponseRunnerConfigsValue: core.serialization.ObjectSchema< serializers.RunnerConfigsListResponseRunnerConfigsValue.Raw, Rivet.RunnerConfigsListResponseRunnerConfigsValue > = core.serialization.object({ - datacenters: core.serialization.record(core.serialization.string(), RunnerConfig), + datacenters: core.serialization.record(core.serialization.string(), RunnerConfigResponse), }); export declare namespace RunnerConfigsListResponseRunnerConfigsValue { export interface Raw { - datacenters: Record; + datacenters: Record; } } diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolError.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolError.ts new file mode 100644 index 0000000000..35053d6011 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolError.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Rivet from "../../api/index"; +import * as core from "../../core"; +import { RunnerPoolErrorServerlessHttpError } from "./RunnerPoolErrorServerlessHttpError"; +import { RunnerPoolErrorServerlessConnectionError } from "./RunnerPoolErrorServerlessConnectionError"; +import { RunnerPoolErrorServerlessInvalidPayload } from "./RunnerPoolErrorServerlessInvalidPayload"; + +export const RunnerPoolError: core.serialization.Schema = + core.serialization.undiscriminatedUnion([ + RunnerPoolErrorServerlessHttpError, + core.serialization.stringLiteral("serverless_stream_ended_early"), + RunnerPoolErrorServerlessConnectionError, + core.serialization.stringLiteral("serverless_invalid_base64"), + RunnerPoolErrorServerlessInvalidPayload, + core.serialization.stringLiteral("internal_error"), + ]); + +export declare namespace RunnerPoolError { + export type Raw = + | RunnerPoolErrorServerlessHttpError.Raw + | "serverless_stream_ended_early" + | RunnerPoolErrorServerlessConnectionError.Raw + | "serverless_invalid_base64" + | RunnerPoolErrorServerlessInvalidPayload.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 new file mode 100644 index 0000000000..6c2fb4a0c5 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessConnectionError.ts @@ -0,0 +1,24 @@ +/** + * 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 new file mode 100644 index 0000000000..14d9055862 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessConnectionErrorServerlessConnectionError.ts @@ -0,0 +1,20 @@ +/** + * 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 new file mode 100644 index 0000000000..5a1334624d --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessHttpError.ts @@ -0,0 +1,24 @@ +/** + * 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 new file mode 100644 index 0000000000..2eb6161814 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessHttpErrorServerlessHttpError.ts @@ -0,0 +1,22 @@ +/** + * 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/RunnerPoolErrorServerlessInvalidPayload.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidPayload.ts new file mode 100644 index 0000000000..8174f2eada --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidPayload.ts @@ -0,0 +1,24 @@ +/** + * 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 { RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload } from "./RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload"; + +export const RunnerPoolErrorServerlessInvalidPayload: core.serialization.ObjectSchema< + serializers.RunnerPoolErrorServerlessInvalidPayload.Raw, + Rivet.RunnerPoolErrorServerlessInvalidPayload +> = core.serialization.object({ + serverlessInvalidPayload: core.serialization.property( + "serverless_invalid_payload", + RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload, + ), +}); + +export declare namespace RunnerPoolErrorServerlessInvalidPayload { + export interface Raw { + serverless_invalid_payload: RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.Raw; + } +} diff --git a/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.ts b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.ts new file mode 100644 index 0000000000..790cd837f2 --- /dev/null +++ b/engine/sdks/typescript/api-full/src/serialization/types/RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.ts @@ -0,0 +1,20 @@ +/** + * 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 RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload: core.serialization.ObjectSchema< + serializers.RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload.Raw, + Rivet.RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload +> = core.serialization.object({ + message: core.serialization.string(), +}); + +export declare namespace RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload { + export interface Raw { + message: string; + } +} 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 45da4bda77..6ad48ab8ae 100644 --- a/engine/sdks/typescript/api-full/src/serialization/types/index.ts +++ b/engine/sdks/typescript/api-full/src/serialization/types/index.ts @@ -1,4 +1,8 @@ export * from "./Actor"; +export * from "./ActorErrorRunnerPoolError"; +export * from "./ActorErrorRunnerNoResponseRunnerNoResponse"; +export * from "./ActorErrorRunnerNoResponse"; +export * from "./ActorError"; export * from "./ActorName"; export * from "./ActorsCreateResponse"; export * from "./ActorsDeleteResponse"; @@ -26,6 +30,7 @@ export * from "./RunnerConfigKindNormal"; export * from "./RunnerConfigKindServerlessServerless"; export * from "./RunnerConfigKindServerless"; export * from "./RunnerConfigKind"; +export * from "./RunnerConfigResponse"; export * from "./RunnerConfigVariant"; export * from "./RunnerConfigsDeleteResponse"; export * from "./RunnerConfigsListResponse"; @@ -48,5 +53,12 @@ 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 "./RunnerPoolErrorServerlessInvalidPayloadServerlessInvalidPayload"; +export * from "./RunnerPoolErrorServerlessInvalidPayload"; +export * from "./RunnerPoolError"; export * from "./RunnersListNamesResponse"; export * from "./RunnersListResponse";