Skip to main content

Module generated

Module generated 

Source
Expand description

Generated types from OpenAPI spec. Run just generate-sdk-types to regenerate from api/openapi/api.yaml. Auto-generated types from OpenAPI spec.

Types are generated at compile time from api/openapi/api.json via build.rs. No generated files are checked into git - types are always fresh.

§Usage

use modelrelay::generated::{Customer, Tier, Project, MessageRole, Citation};
use modelrelay::generated::MessageRoleExt; // Extension trait for as_str()

Modules§

defaults
Generation of default values for serde.
error
Error types.

Structs§

AccountBalanceResponse
Account balance information for PAYGO billing
Agent
Agent
AgentCreateRequest
AgentCreateRequest
AgentFragmentRef
AgentFragmentRef
AgentListResponse
AgentListResponse
AgentResource
AgentResource
AgentResponse
AgentResponse
AgentRunOptions
AgentRunOptions
AgentRunRequest
AgentRunRequest
AgentRunResponse
AgentRunResponse
AgentTestRequest
AgentTestRequest
AgentToolRef
AgentToolRef
AgentUpdateRequest
AgentUpdateRequest
AgentVersion
AgentVersion
ApiError
ApiError
AuthResponse
AuthResponse
AuthTokens
AuthTokens
AutoTopupConfigRequest
AutoTopupConfigRequest
AutoTopupConfigResponse
AutoTopupConfigResponse
AutoTopupConfirmRequest
AutoTopupConfirmRequest
AutoTopupLimits
AutoTopupLimits
AutoTopupPaymentMethod
AutoTopupPaymentMethod
AutoTopupSetupResponse
AutoTopupSetupResponse
ChangeTierRequest
ChangeTierRequest
CheckoutSessionResponse
CheckoutSessionResponse
Citation
Citation
ContentPartFile
ContentPartFile
ContentPartFileFile
ContentPartFileFile
ContentPartText
ContentPartText
CryptoTopupConfigResponse
CryptoTopupConfigResponse
CryptoTopupSubmitRequest
CryptoTopupSubmitRequest
Customer
Customer
CustomerBalanceResponse
CustomerBalanceResponse
CustomerCreate
CustomerCreate
CustomerCreateExternalId
External customer identifier from your system
CustomerExternalId
External customer identifier from your system
CustomerLedgerEntry
CustomerLedgerEntry
CustomerLedgerResponse
CustomerLedgerResponse
CustomerMe
CustomerMe
CustomerMeCheckoutRequest
CustomerMeCheckoutRequest
CustomerMeResponse
CustomerMeResponse
CustomerMeSubscription
Customer-visible subscription details for the current tier.
CustomerMeSubscriptionResponse
CustomerMeSubscriptionResponse
CustomerMeSubscriptionTierDisplayName
Human-readable tier name
CustomerMeUsage
Customer-visible usage metrics for the current billing window.
CustomerMeUsageResponse
CustomerMeUsageResponse
CustomerMetadata
Arbitrary customer metadata (max 10KB). Keys are limited to 40 characters. Values can be any JSON type. Nesting depth limited to 5 levels.
CustomerTokenResponse
CustomerTokenResponse
CustomerTokenResponseCustomerExternalId
External customer identifier
CustomerTopupRequest
CustomerTopupRequest
CustomerTopupResponse
CustomerTopupResponse
CustomerUsagePoint
CustomerUsagePoint
CustomerWithSubscription
CustomerWithSubscription
ImageData
A single generated image.
ImagePinResponse
Response from pin/unpin operations.
ImageRequest
Request to generate images from a text prompt.
ImageResponse
Response containing generated images.
ImageUsage
Usage statistics for image generation.
InputItem
InputItem
IssuedApiKey
IssuedApiKey
JsonPatchOperation
JsonPatchOperation
JsonSchemaFormat
JsonSchemaFormat
MessageListResponse
MessageListResponse
MessageResponse
MessageResponse
MessageSendRequest
MessageSendRequest
Model
Model
ModelId
LLM model identifier (e.g., claude-sonnet-4-5, gpt-4o).
ModelsResponse
ModelsResponse
NdjsonStreamEvent
Events sent during streaming responses (application/x-ndjson). Each line is a JSON object with an “event” field indicating the type.
NodeErrorV0
NodeErrorV0
NodeId
Workflow node identifier. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
NodeResultV0
NodeResultV0
OutboundWebhookEvent
OutboundWebhookEvent
OutputFormat
OutputFormat
OutputItem
OutputItem
PlanHash
SHA-256 hash of the compiled workflow plan (64 hex characters).
PluginAgentV0
PluginAgentV0
PluginCommandV0
PluginCommandV0
PluginGitHubRefV0
PluginGitHubRefV0
PluginManifestV0
PluginManifestV0
PluginSummaryV0
PluginSummaryV0
PluginsCompileRequest
Request to compile a Claude Code plugin into a workflow. One of source or files must be provided (mutually exclusive).
PluginsCompileResponse
PluginsCompileResponse
Project
Project
RequestId
Unique identifier for an LLM request within a workflow run.
ResponsesBatchError
ResponsesBatchError
ResponsesBatchItem
Single request item for batch responses.
ResponsesBatchRequest
ResponsesBatchRequest
ResponsesBatchRequestOptions
ResponsesBatchRequestOptions
ResponsesBatchResponse
ResponsesBatchResponse
ResponsesBatchResult
ResponsesBatchResult
ResponsesBatchUsage
ResponsesBatchUsage
ResponsesRequest
ResponsesRequest
ResponsesResponse
ResponsesResponse
ResponsesStreamEnvelope
ResponsesStreamEnvelope
RlmContextRequest
Request body for uploading RLM context
RlmContextResponse
Response from RLM context upload
RlmExecuteRequest
Request body for RLM execute endpoint
RlmExecuteRequestDataSource
External data source configuration for wrapper_v1 integration
RlmExecuteRequestDataSourceLimits
Request/response limits for the data source
RlmExecuteResponse
Response from RLM execute endpoint
RlmExecuteResponseTrajectoryItem
RlmExecuteResponseTrajectoryItem
RlmExecuteResponseUsage
Aggregated token usage across all LLM calls
RunCostLineItemV0
RunCostLineItemV0
RunCostSummaryV0
RunCostSummaryV0
RunId
Unique identifier for a workflow run.
RunNodeStepLlmCallV0
Per-step LLM call metadata.
RunNodeStepV0
Step-level execution details for a node.
RunNodeStepWaitingV0
Waiting details for a step when client tools are pending.
RunNodeStepsV0
Step history for a node in a workflow run.
RunStepDetail
RunStepDetail
RunStepsResponse
RunStepsResponse
RunSummary
RunSummary
RunTask
RunTask
RunTasksResponse
RunTasksResponse
RunToolCallDetail
RunToolCallDetail
RunToolCallDetailToolCall
RunToolCallDetailToolCall
RunToolResultV0
Result for a tool call executed during a run.
RunToolResultV0ToolCall
RunToolResultV0ToolCall
RunsCreateOptionsV0
RunsCreateOptionsV0
RunsCreateRequest
Create a workflow run. The workflow spec must include a resolved model for every llm.responses/route.switch node (including map.fanout subnodes); /runs does not resolve tiers or default models. Use model_override or model_overrides to override models at runtime.
RunsCreateRequestModelOverrides
Per-node model overrides. Use nodes for top-level nodes and fanout_subnodes for map.fanout subnodes.
RunsCreateRequestModelOverridesFanoutSubnodesItem
RunsCreateRequestModelOverridesFanoutSubnodesItem
RunsCreateResponse
RunsCreateResponse
RunsGetResponse
RunsGetResponse
RunsPendingToolCallV0
A pending tool call waiting for a result.
RunsPendingToolCallV0ToolCall
RunsPendingToolCallV0ToolCall
RunsPendingToolsNodeV0
A node with pending tool calls.
RunsPendingToolsResponse
Response containing pending tool calls for a workflow run.
RunsToolResultsRequest
Request to submit tool execution results for a waiting run.
RunsToolResultsResponse
Response after submitting tool results.
SessionCreateRequest
Request body for creating a session.
SessionListResponse
Paginated list of sessions.
SessionMessageCreateRequest
Request body for appending a message to a session.
SessionMessageResponse
A message within a session.
SessionResponse
A session resource.
SessionUpdateRequest
Request body for updating session metadata. Null values remove keys.
SessionWithMessagesResponse
A session with its full message history.
Sha256Hash
SHA-256 hash (64 hex characters).
SignupProject
SignupProject
SqlPolicy
SqlPolicy
SqlPolicyAggregations
SqlPolicyAggregations
SqlPolicyColumns
SqlPolicyColumns
SqlPolicyFts
SqlPolicyFts
SqlPolicyJoins
SqlPolicyJoins
SqlPolicyLimits
SqlPolicyLimits
SqlPolicyOrdering
SqlPolicyOrdering
SqlPolicySubqueries
SqlPolicySubqueries
SqlPolicyTables
SqlPolicyTables
SqlProfile
SqlProfile
SqlProfileInput
SqlProfileInput
SqlProfileUpdate
SqlProfileUpdate
SqlValidateOverrides
SqlValidateOverrides
SqlValidateRequest
Validate a SQL query against a policy or profile
SqlValidateResponse
SQL validation result
StateHandleCreateRequest
StateHandleCreateRequest
StateHandleListResponse
StateHandleListResponse
StateHandleResponse
StateHandleResponse
Subscription
Subscription
SubscriptionStatus
Subscription status for a customer.
Tier
Tier
TierCode
Tier code identifier (e.g., free, pro, enterprise).
TierCreate
TierCreate
TierCreateDisplayName
Human-readable tier name
TierDisplayName
Human-readable tier name
TierModel
TierModel
TierModelCreate
Model to add to a tier. Pricing is derived from the model_pricing table.
TierUpdate
TierUpdate
TierUpdateDisplayName
Human-readable tier name
Tool
Tool
ToolCall
ToolCall
ToolCallDelta
Incremental tool call data during streaming
ToolCallDeltaFunction
ToolCallDeltaFunction
ToolCallFunction
ToolCallFunction
ToolCallId
Unique identifier for a tool call. Treated as an opaque string and must be preserved exactly.
ToolChoice
ToolChoice
ToolFunction
ToolFunction
ToolHookConfig
ToolHookConfig
ToolHookConfigInput
ToolHookConfigInput
ToolHookConfigUpdate
ToolHookConfigUpdate
ToolHookEvent
ToolHookEvent
ToolHookTestResult
ToolHookTestResult
ToolImageGeneration
Configuration for server-side image generation tool
ToolName
Tool identifier. For tools.v0 client tools, use dot-separated lowercase segments (e.g. fs.search).
TopupHistoryResponse
TopupHistoryResponse
TopupRequest
TopupRequest
TopupResponse
TopupResponse
TopupSessionResponse
TopupSessionResponse
Usage
Token usage statistics. All fields default to 0 if not present.
User
User
WebhookConfig
WebhookConfig
WebhookConfigInput
WebhookConfigInput
WebhookConfigUpdate
WebhookConfigUpdate
WebhookTestResult
WebhookTestResult
WorkflowIssue
A lint or compile issue for a workflow spec.
WorkflowSpec
A workflow spec. The canonical JSON Schema is available at /schemas/workflow.schema.json.
WorkflowsCompileResponse
Response from compiling a workflow spec.
WorkflowsLintResponse
Response from linting a workflow spec.

Enums§

AgentCreateRequestToolFailurePolicy
AgentCreateRequestToolFailurePolicy
AgentRunOptionsToolFailurePolicy
AgentRunOptionsToolFailurePolicy
AgentUpdateRequestToolFailurePolicy
AgentUpdateRequestToolFailurePolicy
AgentVersionToolFailurePolicy
AgentVersionToolFailurePolicy
BillingMode
Billing mode for a project. ‘managed’ uses ModelRelay billing with tiers and subscriptions. ‘byob’ (Bring Your Own Billing) allows external billing.
BillingProvider
Billing provider backing the subscription or tier.
ContentPart
ContentPart
ImageResponseFormat
Output format for generated images.
InputItemType
InputItemType
JsonPatchOperationOp
JsonPatchOperationOp
MessageRole
MessageRole
ModelCapability
Workflow-critical model capability identifier. Server-side tools are not model capabilities; they require only tools support.
ModelRelayApi
Generated types from ModelRelay OpenAPI spec
NdjsonStreamEventEvent
Event type
NodeStatusV0
NodeStatusV0
NodeTypeV0
Type of workflow node.
OutputFormatType
OutputFormatType
OutputItemType
OutputItemType
PluginsCompileRequestMode
Compile mode. Currently only ‘intent’ is supported.
PriceInterval
Billing interval for a tier.
ProviderId
LLM provider identifier.
ResponsesBatchResultStatus
ResponsesBatchResultStatus
ResponsesStreamEnvelopeStreamMode
ResponsesStreamEnvelopeStreamMode
ResponsesStreamEnvelopeStreamVersion
ResponsesStreamEnvelopeStreamVersion
ResponsesStreamEnvelopeType
ResponsesStreamEnvelopeType
RlmExecuteRequestDataSourceType
RlmExecuteRequestDataSourceType
RunStatusV0
RunStatusV0
RunTaskStatus
RunTaskStatus
SqlPolicyDialect
SqlPolicyDialect
TierBillingMode
Billing mode for a tier. ‘subscription’ uses monthly spend limits; ‘paygo’ uses prepaid balances.
ToolCallType
ToolCallType
ToolChoiceType
ToolChoiceType
ToolHookConfigFailBehavior
ToolHookConfigFailBehavior
ToolHookConfigHookType
ToolHookConfigHookType
ToolHookConfigInputFailBehavior
ToolHookConfigInputFailBehavior
ToolHookConfigInputHookType
ToolHookConfigInputHookType
ToolHookConfigUpdateFailBehavior
ToolHookConfigUpdateFailBehavior
ToolHookEventStatus
ToolHookEventStatus
ToolHookTestResultStatus
ToolHookTestResultStatus
ToolType
ToolType
TopupSource
How a top-up was initiated.
TopupStatus
Status of a top-up session.
WebhookConfigEventsItem
WebhookConfigEventsItem
WebhookConfigInputEventsItem
WebhookConfigInputEventsItem
WebhookConfigUpdateEventsItem
WebhookConfigUpdateEventsItem
WebhookTestResultStatus
WebhookTestResultStatus

Traits§

MessageRoleExt
Extension trait for MessageRole providing convenience methods.