golem_client

    MoonBit client for the Golem Cloud v1.6.4 REST & WebSocket API.

    golem
    cloud
    api
    client
    openapi
    Download zip
    Author
    Version
    0.6.4
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    7

    #Golem API

    MoonBit client for the Golem Cloud v1.6.4 REST & WebSocket API.

    • API version: 1.0
    • Module: vigoo/golem_client
    • Models: 713
    • Operations: 193

    #Install

    moon add vigoo/golem_client

    #Quickstart

    ///|
    async fn example(token : String) -> Unit {
    let transport = @core_async.CoreAsyncTransport::new()
    let client = @client.Client::new(
    transport,
    base_url="https://release.api.golem.cloud",
    auth=@client.Auth::Bearer(token),
    )
    // Swap credentials or base URL fluently:
    let _authed = client.with_auth(@client.Auth::Bearer("refreshed"))
    let _local = client.with_base_url("http://127.0.0.1:8080")
    }

    #Transports & Middleware

    Client[T] is parameterized over @runtime.Transport from vigoo/openapi_client_runtime:

    • Native / JS / Wasm (core/async): vigoo/openapi_client_runtime/transport/core_async (CoreAsyncTransport::new())
    • Browser / Node / Edge (fetch): vigoo/openapi_client_runtime/transport/js_fetch (JsFetchTransport::new())
    • WASI Preview 2 (wasi:http@0.2): vigoo/openapi_client_runtime/transport/wasi_http (WasiHttpTransport::new(handler))
    • WASI Preview 3 (wasi:http@0.3 async): vigoo/openapi_client_runtime/transport/wasi_http_p3 (WasiHttpP3Transport::new(client))
    • Retries & Middleware: wrap any transport with @runtime.RetryTransport::new(transport, sleep_ms=ms => @async.sleep(ms)) or @runtime.MiddlewareTransport::new(transport, middlewares)
    • Unit tests: vigoo/openapi_client_runtime/testing (MockTransport::new())

    #Models & Constructors

    Model types live in vigoo/golem_client/model. Records with optional fields expose ergonomic Type::new(required~, optional?) constructors, and RFC 3339 timestamps map to @rjson.DateTime (implementing Eq, Compare, Debug, FromJson, and ToJson).

    #Authentication

    Configure credentials via @client.Auth:

    • Auth::None — unauthenticated requests
    • Auth::Bearer(token) — Authorization: Bearer <token>
    • Auth::Basic(username~, password~) — Authorization: Basic <base64>
    • Auth::ApiKeyHeader(name~, value~) / Auth::ApiKeyQuery(name~, value~) / Auth::ApiKeyCookie(name~, value~)
    • Auth::Combined(Array[Auth]) — apply multiple credentials simultaneously
    • Scheme-specific convenience constructors (Auth::<scheme>(...)) generated from components.securitySchemes

    #Error Handling

    All generated methods raise GolemError:

    • GolemError::Transport(@runtime.TransportError) — network, timeout, or transport failure
    • GolemError::Decode(status~, message~, body~) — response JSON or header decode failure
    • GolemError::InvalidParam(name~, message~) — path template or dialer validation failure
    • GolemError::Api(status~, body~, parsed~) — non-success HTTP status with raw body and optional parsed JSON
    • GolemError::WebSocket(@ws.WsError) — WebSocket handshake or session failure

    #WebSockets

    Operations returning 101 Switching Protocols route through &@ws.WebSocketDialer passed to Client::new(..., ws_dialer=...) (independent of the HTTP Transport):

    • Native / Wasm (core/async/websocket): vigoo/openapi_client_runtime/ws/core_async (CoreAsyncWsDialer::new())
    • Browser / Node / Edge (JS WebSocket): vigoo/openapi_client_runtime/ws/js_ws (JsWsDialer::new())
    • Unit tests: vigoo/openapi_client_runtime/testing (MockWsDialer::new())
    • Custom / platform-specific (e.g. Wasm host functions): implement pub(open) trait WebSocketDialer and pub(open) trait WsConn from vigoo/openapi_client_runtime/ws

    #Operation Groups & Traits

    Each operation group defines a pub(open) trait <Group>Client implemented on Client[T] (and promoted via extend for direct dot-call syntax), so callers can mock or wrap individual API groups in tests:

    • HealthCheck (HealthCheckClient, 2 operations)
    • Worker (WorkerClient, 20 operations)
    • Agent (AgentClient, 5 operations)
    • Account (AccountClient, 21 operations)
    • Token (TokenClient, 4 operations)
    • AgentSecrets (AgentSecretsClient, 6 operations)
    • Application (ApplicationClient, 9 operations)
    • Card (CardClient, 3 operations)
    • Component (ComponentClient, 10 operations)
    • ApiDomain (ApiDomainClient, 5 operations)
    • EnvironmentPluginGrants (EnvironmentPluginGrantsClient, 4 operations)
    • EnvironmentToolGrants (EnvironmentToolGrantsClient, 6 operations)
    • EnvironmentToolMiddlewareGrants (EnvironmentToolMiddlewareGrantsClient, 6 operations)
    • Environment (EnvironmentClient, 17 operations)
    • Deployment (DeploymentClient, 9 operations)
    • ApiDeployment (ApiDeploymentClient, 9 operations)
    • Login (LoginClient, 4 operations)
    • Me (MeClient, 2 operations)
    • McpDeployment (McpDeploymentClient, 9 operations)
    • PermissionShares (PermissionSharesClient, 7 operations)
    • Plugin (PluginClient, 6 operations)
    • Reports (ReportsClient, 2 operations)
    • Resources (ResourcesClient, 7 operations)
    • RetryPolicies (RetryPoliciesClient, 6 operations)
    • ApiSecurity (ApiSecurityClient, 6 operations)
    • ToolReleases (ToolReleasesClient, 4 operations)
    • ToolMiddlewareReleases (ToolMiddlewareReleasesClient, 4 operations)

    AccountClient

    pub(open) trait AccountClient {
    async fn create_account(self : Self, body~ :
    AccountCreation
    ) ->
    Account
    raise GolemError
    async fn get_account(self : Self, account_id~ :
    UUID
    ) ->
    Account
    raise GolemError
    async fn delete_account(self : Self, account_id~ :
    UUID
    , current_revision~ : UInt64) ->
    Json
    raise GolemError
    async fn update_account(self : Self, account_id~ :
    UUID
    , body~ :
    AccountUpdate
    ) ->
    Account
    raise GolemError
    async fn get_account_by_email(self : Self, account_email~ : String) ->
    Account
    raise GolemError
    async fn get_account_plan(self : Self, account_id~ :
    UUID
    ) ->
    Plan
    raise GolemError
    async fn set_account_plan(self : Self, account_id~ :
    UUID
    , body~ :
    AccountSetPlan
    ) ->
    Account
    raise GolemError
    async fn list_account_deletion_holds(self : Self, account_id~ :
    UUID
    ) ->
    PageAccountDeletionHold
    raise GolemError
    async fn place_account_deletion_hold(self : Self, account_id~ :
    UUID
    , holder_account_id~ :
    UUID
    , body~ :
    AccountDeletionHoldCreation
    ) ->
    AccountDeletionHold
    raise GolemError
    async fn remove_account_deletion_hold(self : Self, account_id~ :
    UUID
    , holder_account_id~ :
    UUID
    ) ->
    Json
    raise GolemError
    async fn get_account_usage(self : Self, account_id~ :
    UUID
    , period? : String) ->
    AccountUsage
    raise GolemError
    async fn get_account_usage_history(self : Self, account_id~ :
    UUID
    , last? : UInt64) -> Array[
    AccountUsage
    ] raise GolemError
    async fn get_account_limits(self : Self, account_id~ :
    UUID
    ) ->
    AccountResourcePolicy
    raise GolemError
    async fn set_account_monthly_usage_mode(self : Self, account_id~ :
    UUID
    , body~ :
    SetMonthlyUsageMode
    ) ->
    MonthlyUsageModeTransition
    raise GolemError
    async fn set_account_storage_override(self : Self, account_id~ :
    UUID
    , body~ :
    SetStorageLimit
    ) ->
    StorageLimit
    raise GolemError
    async fn clear_account_storage_override(self : Self, account_id~ :
    UUID
    ) ->
    StorageLimit
    raise GolemError
    async fn set_account_max_memory_override(self : Self, account_id~ :
    UUID
    , body~ :
    SetMemoryLimit
    ) ->
    MemoryLimit
    raise GolemError
    async fn clear_account_max_memory_override(self : Self, account_id~ :
    UUID
    ) ->
    MemoryLimit
    raise GolemError
    async fn set_account_admin_resource_grant(self : Self, account_id~ :
    UUID
    , dimension~ :
    AdminResourceGrantDimension
    , body~ :
    SetAdminResourceGrant
    ) ->
    AdminResourceGrantChange
    raise GolemError
    async fn clear_account_admin_resource_grant(self : Self, account_id~ :
    UUID
    , dimension~ :
    AdminResourceGrantDimension
    ) ->
    ClearedAdminResourceGrantChange
    raise GolemError
    async fn create_impersonation_token(self : Self, account_id~ :
    UUID
    , body~ :
    TokenCreation
    ) ->
    TokenWithSecret
    raise GolemError
    }

    Operations in the Account group. Implement this trait to mock or wrap Client.

    AgentClient

    Operations in the Agent group. Implement this trait to mock or wrap Client.

    AgentSecretsClient

    pub(open) trait AgentSecretsClient {
    async fn list_environment_agent_secrets(self : Self, environment_id~ :
    UUID
    ) ->
    PageAgentSecretDto
    raise GolemError
    async fn create_agent_secret(self : Self, environment_id~ :
    UUID
    , body~ :
    AgentSecretCreation
    ) ->
    AgentSecretDto
    raise GolemError
    async fn get_environment_agent_secret(self : Self, environment_id~ :
    UUID
    , path~ : Array[String]) ->
    AgentSecretDto
    raise GolemError
    async fn get_agent_secret(self : Self, agent_secret_id~ :
    UUID
    ) ->
    AgentSecretDto
    raise GolemError
    async fn update_agent_secret(self : Self, agent_secret_id~ :
    UUID
    , body~ :
    AgentSecretUpdate
    ) ->
    AgentSecretDto
    raise GolemError
    async fn delete_agent_secret(self : Self, agent_secret_id~ :
    UUID
    , current_revision~ : UInt64) ->
    AgentSecretDto
    raise GolemError
    }

    Operations in the AgentSecrets group. Implement this trait to mock or wrap Client.

    ApiDeploymentClient

    pub(open) trait ApiDeploymentClient {
    async fn list_environment_http_api_deployments(self : Self, environment_id~ :
    UUID
    ) ->
    PageHttpApiDeployment
    raise GolemError
    async fn create_http_api_deployment(self : Self, environment_id~ :
    UUID
    , body~ :
    HttpApiDeploymentCreation
    ) ->
    HttpApiDeployment
    raise GolemError
    async fn get_http_api_deployment(self : Self, http_api_deployment_id~ :
    UUID
    ) ->
    HttpApiDeployment
    raise GolemError
    async fn delete_http_api_deployment(self : Self, http_api_deployment_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError
    async fn update_http_api_deployment(self : Self, http_api_deployment_id~ :
    UUID
    , body~ :
    HttpApiDeploymentUpdate
    ) ->
    HttpApiDeployment
    raise GolemError
    async fn get_http_api_deployment_revision(self : Self, http_api_deployment_id~ :
    UUID
    , revision~ : UInt64) ->
    HttpApiDeployment
    raise GolemError
    async fn get_environment_http_api_deployment(self : Self, environment_id~ :
    UUID
    , domain~ : String) ->
    HttpApiDeployment
    raise GolemError
    async fn get_deployment_http_api_deployment(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64, domain~ : String) ->
    HttpApiDeployment
    raise GolemError
    async fn list_deployment_http_api_deployments(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64) ->
    PageHttpApiDeployment
    raise GolemError
    }

    Operations in the ApiDeployment group. Implement this trait to mock or wrap Client.

    ApiDomainClient

    pub(open) trait ApiDomainClient {
    async fn list_environment_domain_registrations(self : Self, environment_id~ :
    UUID
    ) ->
    PageDomainRegistration
    raise GolemError
    async fn create_domain_registration(self : Self, environment_id~ :
    UUID
    , body~ :
    DomainRegistrationCreation
    ) ->
    DomainRegistration
    raise GolemError
    async fn get_environment_domain_registration(self : Self, environment_id~ :
    UUID
    , domain~ : String) ->
    DomainRegistration
    raise GolemError
    async fn get_domain_registration(self : Self, domain_registration_id~ :
    UUID
    ) ->
    DomainRegistration
    raise GolemError
    async fn delete_domain_registration(self : Self, domain_registration_id~ :
    UUID
    ) -> Unit raise GolemError
    }

    Operations in the ApiDomain group. Implement this trait to mock or wrap Client.

    ApiSecurityClient

    pub(open) trait ApiSecurityClient {
    async fn list_environment_security_schemes(self : Self, environment_id~ :
    UUID
    ) ->
    PageSecuritySchemeDto
    raise GolemError
    async fn create_security_scheme(self : Self, environment_id~ :
    UUID
    , body~ :
    SecuritySchemeCreation
    ) ->
    SecuritySchemeDto
    raise GolemError
    async fn get_environment_security_scheme(self : Self, environment_id~ :
    UUID
    , security_scheme_name~ : String) ->
    SecuritySchemeDto
    raise GolemError
    async fn get_security_scheme(self : Self, security_scheme_id~ :
    UUID
    ) ->
    SecuritySchemeDto
    raise GolemError
    async fn delete_security_scheme(self : Self, security_scheme_id~ :
    UUID
    , current_revision~ : UInt64) ->
    SecuritySchemeDto
    raise GolemError
    async fn update_security_scheme(self : Self, security_scheme_id~ :
    UUID
    , body~ :
    SecuritySchemeUpdate
    ) ->
    SecuritySchemeDto
    raise GolemError
    }

    Operations in the ApiSecurity group. Implement this trait to mock or wrap Client.

    ApplicationClient

    pub(open) trait ApplicationClient {
    async fn list_account_applications(self : Self, account_id~ :
    UUID
    ) ->
    PageApplication
    raise GolemError
    async fn create_application(self : Self, account_id~ :
    UUID
    , body~ :
    ApplicationCreation
    ) ->
    Application
    raise GolemError
    async fn get_account_application(self : Self, account_id~ :
    UUID
    , application_name~ : String) ->
    Application
    raise GolemError
    async fn get_application(self : Self, application_id~ :
    UUID
    ) ->
    Application
    raise GolemError
    async fn delete_application(self : Self, application_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError
    async fn update_application(self : Self, application_id~ :
    UUID
    , body~ :
    ApplicationUpdate
    ) ->
    Application
    raise GolemError
    async fn list_application_environments(self : Self, application_id~ :
    UUID
    ) ->
    PageEnvironment
    raise GolemError
    async fn create_environment(self : Self, application_id~ :
    UUID
    , body~ :
    EnvironmentCreation
    ) ->
    Environment
    raise GolemError
    async fn get_application_environment(self : Self, application_id~ :
    UUID
    , environment_name~ : String) ->
    Environment
    raise GolemError
    }

    Operations in the Application group. Implement this trait to mock or wrap Client.

    CardClient

    pub(open) trait CardClient {
    async fn list_account_cards(self : Self, account_id~ :
    UUID
    , include_root? : Bool, include_permission_shares? : Bool, include_environment_defaults? : Bool, include_agent_initials? : Bool) -> Array[
    StoredCard
    ] raise GolemError
    async fn get_card(self : Self, card_id~ :
    UUID
    ) ->
    StoredCard
    raise GolemError
    async fn revoke_card(self : Self, card_id~ :
    UUID
    ) ->
    RevokedCardsResponse
    raise GolemError
    }

    Operations in the Card group. Implement this trait to mock or wrap Client.

    ComponentClient

    pub(open) trait ComponentClient {
    async fn list_environment_components(self : Self, environment_id~ :
    UUID
    ) ->
    PageComponentDto
    raise GolemError
    async fn create_component(self : Self, environment_id~ :
    UUID
    , metadata~ :
    ComponentCreation
    , component_wasm~ : Bytes, component_wasm_filename? : String, files? : Bytes, files_filename? : String) ->
    ComponentDto
    raise GolemError
    async fn get_environment_component(self : Self, environment_id~ :
    UUID
    , component_name~ : String) ->
    ComponentDto
    raise GolemError
    async fn list_deployment_components(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64) ->
    PageComponentDto
    raise GolemError
    async fn get_deployment_component(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64, component_name~ : String) ->
    ComponentDto
    raise GolemError
    async fn get_component(self : Self, component_id~ :
    UUID
    ) ->
    ComponentDto
    raise GolemError
    async fn delete_component(self : Self, component_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError
    async fn update_component(self : Self, component_id~ :
    UUID
    , metadata~ :
    ComponentUpdate
    , new_component_wasm? : Bytes, new_component_wasm_filename? : String, new_files? : Bytes, new_files_filename? : String) ->
    ComponentDto
    raise GolemError
    async fn get_component_revision(self : Self, component_id~ :
    UUID
    , revision~ : UInt64) ->
    ComponentDto
    raise GolemError
    async fn get_component_wasm(self : Self, component_id~ :
    UUID
    , revision~ : UInt64) -> Bytes raise GolemError
    }

    Operations in the Component group. Implement this trait to mock or wrap Client.

    DeploymentClient

    pub(open) trait DeploymentClient {
    async fn rollback_environment(self : Self, environment_id~ :
    UUID
    , body~ :
    DeploymentRollback
    ) ->
    CurrentDeployment
    raise GolemError
    async fn list_deployments(self : Self, environment_id~ :
    UUID
    , version? : String) ->
    PageDeployment
    raise GolemError
    async fn deploy_environment(self : Self, environment_id~ :
    UUID
    , body~ :
    DeploymentCreation
    ) ->
    CurrentDeployment
    raise GolemError
    async fn authorize_mcp_import(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt) ->
    McpImportAuthorization
    raise GolemError
    async fn complete_mcp_import_authorization(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt, body~ :
    McpImportOAuthCallback
    ) ->
    McpImportOAuthStatus
    raise GolemError
    async fn get_mcp_import_authorization_status(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt) ->
    McpImportOAuthStatus
    raise GolemError
    async fn disconnect_mcp_import(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt) ->
    McpImportOAuthStatus
    raise GolemError
    async fn get_mcp_import_tools(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt) ->
    McpImportTools
    raise GolemError
    async fn refresh_mcp_import_tools(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt) ->
    McpImportTools
    raise GolemError
    }

    Operations in the Deployment group. Implement this trait to mock or wrap Client.

    EnvironmentClient

    pub(open) trait EnvironmentClient {
    async fn upload_environment_initial_agent_file(self : Self, environment_id~ :
    UUID
    , file~ : Bytes, file_filename? : String) ->
    InitialAgentFileUpload
    raise GolemError
    async fn get_environment(self : Self, environment_id~ :
    UUID
    ) ->
    Environment
    raise GolemError
    async fn delete_environment(self : Self, environment_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError
    async fn update_environment(self : Self, environment_id~ :
    UUID
    , body~ :
    EnvironmentUpdate
    ) ->
    Environment
    raise GolemError
    async fn get_environment_deployment_plan(self : Self, environment_id~ :
    UUID
    ) ->
    DeploymentPlan
    raise GolemError
    async fn get_deployment_summary(self : Self, environment_id~ :
    UUID
    , deployment_id~ : UInt64) ->
    DeploymentSummary
    raise GolemError
    async fn list_deployment_agent_types(self : Self, environment_id~ :
    UUID
    , deployment_id~ : UInt64) ->
    PageDeployedRegisteredAgentType
    raise GolemError
    async fn get_deployment_agent_type(self : Self, environment_id~ :
    UUID
    , deployment_id~ : UInt64, agent_type_name~ : String) ->
    DeployedRegisteredAgentType
    raise GolemError
    async fn list_deployment_registered_tools(self : Self, environment_id~ :
    UUID
    , deployment_id~ : UInt64) ->
    PageDeployedRegisteredTool
    raise GolemError
    async fn get_deployment_registered_tool(self : Self, environment_id~ :
    UUID
    , deployment_id~ : UInt64, tool_name~ : String) ->
    DeployedRegisteredTool
    raise GolemError
    async fn list_deployment_registered_tool_middlewares(self : Self, environment_id~ :
    UUID
    , deployment_id~ : UInt64) ->
    PageRegisteredToolMiddleware
    raise GolemError
    async fn get_deployment_registered_tool_middleware(self : Self, environment_id~ :
    UUID
    , deployment_id~ : UInt64, middleware_name~ : String) ->
    RegisteredToolMiddleware
    raise GolemError
    async fn authorize_declared_mcp_import(self : Self, environment_id~ :
    UUID
    , body~ :
    DeclaredMcpImportOAuthRequest
    ) ->
    DeclaredMcpImportAuthorization
    raise GolemError
    async fn complete_declared_mcp_import_authorization(self : Self, environment_id~ :
    UUID
    , body~ :
    CompleteDeclaredMcpImportOAuthRequest
    ) ->
    DeclaredMcpImportOAuthStatus
    raise GolemError
    async fn get_declared_mcp_import_authorization_status(self : Self, environment_id~ :
    UUID
    , body~ :
    DeclaredMcpImportOAuthRequest
    ) ->
    DeclaredMcpImportOAuthStatus
    raise GolemError
    async fn disconnect_declared_mcp_import(self : Self, environment_id~ :
    UUID
    , body~ :
    DeclaredMcpImportOAuthRequest
    ) ->
    DeclaredMcpImportOAuthStatus
    raise GolemError
    async fn resolve_mcp_imports(self : Self, environment_id~ :
    UUID
    , body~ :
    McpImportResolutionRequest
    ) ->
    McpImportResolution
    raise GolemError
    }

    Operations in the Environment group. Implement this trait to mock or wrap Client.

    EnvironmentPluginGrantsClient

    pub(open) trait EnvironmentPluginGrantsClient {
    async fn list_environment_plugin_grants(self : Self, environment_id~ :
    UUID
    ) ->
    PageEnvironmentPluginGrantWithDetails
    raise GolemError
    async fn create_environment_plugin_grant(self : Self, environment_id~ :
    UUID
    , body~ :
    EnvironmentPluginGrantCreation
    ) ->
    EnvironmentPluginGrant
    raise GolemError
    async fn get_environment_plugin_grant(self : Self, environment_plugin_grant_id~ :
    UUID
    ) ->
    EnvironmentPluginGrantWithDetails
    raise GolemError
    async fn delete_environment_plugin_grant(self : Self, environment_plugin_grant_id~ :
    UUID
    ) -> Unit raise GolemError
    }

    Operations in the EnvironmentPluginGrants group. Implement this trait to mock or wrap Client.

    EnvironmentToolGrantsClient

    Operations in the EnvironmentToolGrants group. Implement this trait to mock or wrap Client.

    EnvironmentToolMiddlewareGrantsClient

    pub(open) trait EnvironmentToolMiddlewareGrantsClient {
    async fn list_environment_tool_middleware_grants(self : Self, environment_id~ :
    UUID
    ) ->
    PageEnvironmentToolMiddlewareGrantWithDetails
    raise GolemError
    async fn create_environment_tool_middleware_grant(self : Self, environment_id~ :
    UUID
    , body~ :
    EnvironmentToolMiddlewareGrantCreation
    ) ->
    EnvironmentToolMiddlewareGrantWithDetails
    raise GolemError
    async fn validate_environment_tool_middlewares(self : Self, environment_id~ :
    UUID
    , body~ :
    EnvironmentToolMiddlewareValidation
    ) ->
    EnvironmentToolMiddlewareValidationResult
    raise GolemError
    async fn get_environment_tool_middleware_grant(self : Self, grant_id~ :
    UUID
    ) ->
    EnvironmentToolMiddlewareGrantWithDetails
    raise GolemError
    async fn delete_environment_tool_middleware_grant(self : Self, grant_id~ :
    UUID
    , body~ :
    EnvironmentToolMiddlewareGrantDeletion
    ) -> Unit raise GolemError
    async fn restore_environment_tool_middleware_grant(self : Self, grant_id~ :
    UUID
    ) ->
    EnvironmentToolMiddlewareGrantWithDetails
    raise GolemError
    }

    Operations in the EnvironmentToolMiddlewareGrants group. Implement this trait to mock or wrap Client.

    HealthCheckClient

    pub(open) trait HealthCheckClient {
    async fn healthcheck(self : Self) ->
    Json
    raise GolemError
    async fn version(self : Self) ->
    VersionInfo
    raise GolemError
    }

    Operations in the HealthCheck group. Implement this trait to mock or wrap Client.

    LoginClient

    pub(open) trait LoginClient {
    async fn login_oauth2(self : Self, body~ :
    OAuth2Login
    ) ->
    TokenWithSecret
    raise GolemError
    async fn start_oauth2_webflow(self : Self, body~ :
    OAuth2WebflowStart
    ) ->
    OAuth2WebflowData
    raise GolemError
    async fn submit_oauth2_webflow_callback(self : Self, code~ : String, state~ :
    UUID
    ) -> SubmitOauth2WebflowCallbackResponse raise GolemError
    async fn poll_oauth2_webflow(self : Self, state~ :
    UUID
    ) -> PollOauth2WebflowResult raise GolemError
    }

    Operations in the Login group. Implement this trait to mock or wrap Client.

    McpDeploymentClient

    pub(open) trait McpDeploymentClient {
    async fn list_environment_mcp_deployments(self : Self, environment_id~ :
    UUID
    ) ->
    PageMcpDeployment
    raise GolemError
    async fn create_mcp_deployment(self : Self, environment_id~ :
    UUID
    , body~ :
    McpDeploymentCreation
    ) ->
    McpDeployment
    raise GolemError
    async fn get_environment_mcp_deployment(self : Self, environment_id~ :
    UUID
    , domain~ : String) ->
    McpDeployment
    raise GolemError
    async fn get_mcp_deployment(self : Self, mcp_deployment_id~ :
    UUID
    ) ->
    McpDeployment
    raise GolemError
    async fn delete_mcp_deployment(self : Self, mcp_deployment_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError
    async fn update_mcp_deployment(self : Self, mcp_deployment_id~ :
    UUID
    , body~ :
    McpDeploymentUpdate
    ) ->
    McpDeployment
    raise GolemError
    async fn get_mcp_deployment_revision(self : Self, mcp_deployment_id~ :
    UUID
    , revision~ : UInt64) ->
    McpDeployment
    raise GolemError
    async fn get_deployment_mcp_deployment(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64, domain~ : String) ->
    McpDeployment
    raise GolemError
    async fn list_deployment_mcp_deployments(self : Self, environment_id~ :
    UUID
    , deployment_revision~ : UInt64) ->
    PageMcpDeployment
    raise GolemError
    }

    Operations in the McpDeployment group. Implement this trait to mock or wrap Client.

    MeClient

    pub(open) trait MeClient {
    async fn current_login_token(self : Self) ->
    Token
    raise GolemError
    async fn list_visible_environments(self : Self, account_email? : String, app_name? : String, env_name? : String) ->
    PageEnvironmentWithDetails
    raise GolemError
    }

    Operations in the Me group. Implement this trait to mock or wrap Client.

    PermissionSharesClient

    pub(open) trait PermissionSharesClient {
    async fn list_owned_permission_shares(self : Self, account_id~ :
    UUID
    ) ->
    PagePermissionShare
    raise GolemError
    async fn create_permission_share(self : Self, account_id~ :
    UUID
    , body~ :
    PermissionShareCreation
    ) ->
    PermissionShare
    raise GolemError
    async fn list_received_permission_shares(self : Self, account_id~ :
    UUID
    ) ->
    PagePermissionShare
    raise GolemError
    async fn get_permission_share(self : Self, permission_share_id~ :
    UUID
    ) ->
    PermissionShare
    raise GolemError
    async fn delete_permission_share(self : Self, permission_share_id~ :
    UUID
    , current_revision~ : UInt64) ->
    PermissionShare
    raise GolemError
    async fn update_permission_share(self : Self, permission_share_id~ :
    UUID
    , body~ :
    PermissionShareUpdate
    ) ->
    PermissionShare
    raise GolemError
    async fn get_permission_share_by_name(self : Self, account_id~ :
    UUID
    , name~ : String) ->
    PermissionShare
    raise GolemError
    }

    Operations in the PermissionShares group. Implement this trait to mock or wrap Client.

    PluginClient

    pub(open) trait PluginClient {
    async fn list_account_plugins(self : Self, account_id~ :
    UUID
    ) ->
    PagePluginRegistrationDto
    raise GolemError
    async fn create_plugin(self : Self, account_id~ :
    UUID
    , body~ :
    PluginRegistrationCreation
    ) ->
    PluginRegistrationDto
    raise GolemError
    async fn get_account_plugin(self : Self, account_id~ :
    UUID
    , plugin_name~ : String, plugin_version~ : String) ->
    PluginRegistrationDto
    raise GolemError
    async fn get_account_plugin_by_email(self : Self, account_email~ : String, plugin_name~ : String, plugin_version~ : String) ->
    PluginRegistrationDto
    raise GolemError
    async fn get_plugin_by_id(self : Self, plugin_id~ :
    UUID
    ) ->
    PluginRegistrationDto
    raise GolemError
    async fn delete_plugin(self : Self, plugin_id~ :
    UUID
    ) ->
    PluginRegistrationDto
    raise GolemError
    }

    Operations in the Plugin group. Implement this trait to mock or wrap Client.

    ReportsClient

    pub(open) trait ReportsClient {
    async fn get_account_summaries_report(self : Self) ->
    PageAccountSummaryReport
    raise GolemError
    async fn get_account_count_report(self : Self) ->
    AccountCountsReport
    raise GolemError
    }

    Operations in the Reports group. Implement this trait to mock or wrap Client.

    ResourcesClient

    pub(open) trait ResourcesClient {
    async fn list_environment_resources(self : Self, environment_id~ :
    UUID
    ) ->
    PageResourceDefinition
    raise GolemError
    async fn create_resource(self : Self, environment_id~ :
    UUID
    , body~ :
    ResourceDefinitionCreation
    ) ->
    ResourceDefinition
    raise GolemError
    async fn get_environment_resource(self : Self, environment_id~ :
    UUID
    , resource_name~ : String) ->
    ResourceDefinition
    raise GolemError
    async fn get_resource(self : Self, resource_id~ :
    UUID
    ) ->
    ResourceDefinition
    raise GolemError
    async fn delete_resource(self : Self, resource_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError
    async fn update_resource(self : Self, resource_id~ :
    UUID
    , body~ :
    ResourceDefinitionUpdate
    ) ->
    ResourceDefinition
    raise GolemError
    async fn get_resource_revision(self : Self, resource_id~ :
    UUID
    , revision~ : UInt64) ->
    ResourceDefinition
    raise GolemError
    }

    Operations in the Resources group. Implement this trait to mock or wrap Client.

    RetryPoliciesClient

    pub(open) trait RetryPoliciesClient {
    async fn list_environment_retry_policies(self : Self, environment_id~ :
    UUID
    ) ->
    PageRetryPolicyDto
    raise GolemError
    async fn create_retry_policy(self : Self, environment_id~ :
    UUID
    , body~ :
    RetryPolicyCreation
    ) ->
    RetryPolicyDto
    raise GolemError
    async fn get_environment_retry_policy(self : Self, environment_id~ :
    UUID
    , retry_policy_name~ : String) ->
    RetryPolicyDto
    raise GolemError
    async fn get_retry_policy(self : Self, retry_policy_id~ :
    UUID
    ) ->
    RetryPolicyDto
    raise GolemError
    async fn delete_retry_policy(self : Self, retry_policy_id~ :
    UUID
    , current_revision~ : UInt64) ->
    RetryPolicyDto
    raise GolemError
    async fn update_retry_policy(self : Self, retry_policy_id~ :
    UUID
    , body~ :
    RetryPolicyUpdate
    ) ->
    RetryPolicyDto
    raise GolemError
    }

    Operations in the RetryPolicies group. Implement this trait to mock or wrap Client.

    TokenClient

    pub(open) trait TokenClient {
    async fn list_account_tokens(self : Self, account_id~ :
    UUID
    ) ->
    PageToken
    raise GolemError
    async fn create_token(self : Self, account_id~ :
    UUID
    , body~ :
    TokenCreation
    ) ->
    TokenWithSecret
    raise GolemError
    async fn get_token(self : Self, token_id~ :
    UUID
    ) ->
    Token
    raise GolemError
    async fn delete_token(self : Self, token_id~ :
    UUID
    ) ->
    Json
    raise GolemError
    }

    Operations in the Token group. Implement this trait to mock or wrap Client.

    ToolMiddlewareReleasesClient

    pub(open) trait ToolMiddlewareReleasesClient {
    async fn list_account_tool_middleware_releases(self : Self, account_id~ :
    UUID
    ) ->
    PageToolMiddlewareRelease
    raise GolemError
    async fn get_tool_middleware_release(self : Self, release_id~ :
    UUID
    ) ->
    ToolMiddlewareRelease
    raise GolemError
    async fn depublish_tool_middleware_release(self : Self, release_id~ :
    UUID
    ) ->
    ToolMiddlewareRelease
    raise GolemError
    async fn restore_tool_middleware_release(self : Self, release_id~ :
    UUID
    ) ->
    ToolMiddlewareRelease
    raise GolemError
    }

    Operations in the ToolMiddlewareReleases group. Implement this trait to mock or wrap Client.

    ToolReleasesClient

    pub(open) trait ToolReleasesClient {
    async fn list_account_tool_releases(self : Self, account_id~ :
    UUID
    ) ->
    PageToolRelease
    raise GolemError
    async fn get_tool_release(self : Self, release_id~ :
    UUID
    ) ->
    ToolRelease
    raise GolemError
    async fn depublish_tool_release(self : Self, release_id~ :
    UUID
    ) ->
    ToolRelease
    raise GolemError
    async fn restore_tool_release(self : Self, release_id~ :
    UUID
    ) ->
    ToolRelease
    raise GolemError
    }

    Operations in the ToolReleases group. Implement this trait to mock or wrap Client.

    WorkerClient

    pub(open) trait WorkerClient {
    async fn get_workers_metadata(self : Self, component_id~ :
    UUID
    , filter? : Array[String], cursor? : String, count? : UInt64, precise? : Bool) ->
    WorkersMetadataResponse
    raise GolemError
    async fn launch_new_worker(self : Self, component_id~ :
    UUID
    , body~ :
    AgentCreationRequest
    ) ->
    WorkerCreationResponse
    raise GolemError
    async fn get_worker_metadata(self : Self, component_id~ :
    UUID
    , agent_name~ : String) ->
    AgentMetadataDto
    raise GolemError
    async fn delete_worker(self : Self, component_id~ :
    UUID
    , agent_name~ : String) ->
    Json
    raise GolemError
    async fn complete_promise(self : Self, component_id~ :
    UUID
    , agent_name~ : String, body~ :
    CompleteParameters
    ) -> Bool raise GolemError
    async fn interrupt_worker(self : Self, component_id~ :
    UUID
    , agent_name~ : String, recovery_immediately? : Bool) ->
    Json
    raise GolemError
    async fn find_workers_metadata(self : Self, component_id~ :
    UUID
    , body~ :
    WorkersMetadataRequest
    ) ->
    WorkersMetadataResponse
    raise GolemError
    async fn resume_worker(self : Self, component_id~ :
    UUID
    , agent_name~ : String) ->
    Json
    raise GolemError
    async fn update_worker(self : Self, component_id~ :
    UUID
    , agent_name~ : String, body~ :
    UpdateWorkerRequest
    ) ->
    UpdateWorkerResponse
    raise GolemError
    async fn get_oplog(self : Self, component_id~ :
    UUID
    , agent_name~ : String, count~ : UInt64, from? : UInt64, cursor? :
    OplogCursor
    , query? : String) ->
    GetOplogResponse
    raise GolemError
    async fn get_oplog_entry(self : Self, component_id~ :
    UUID
    , agent_name~ : String, oplog_index~ : UInt64, component_revision? : UInt64) ->
    PublicOplogEntryWithIndex
    raise GolemError
    async fn get_files(self : Self, component_id~ :
    UUID
    , agent_name~ : String, file_name~ : String) ->
    GetFilesResponse
    raise GolemError
    async fn get_agent_wallet(self : Self, component_id~ :
    UUID
    , agent_name~ : String) -> Array[
    StoredCard
    ] raise GolemError
    async fn get_file_content(self : Self, component_id~ :
    UUID
    , agent_name~ : String, file_name~ : String) -> Bytes raise GolemError
    async fn activate_plugin(self : Self, component_id~ :
    UUID
    , agent_name~ : String, plugin_priority~ : Int) ->
    Json
    raise GolemError
    async fn deactivate_plugin(self : Self, component_id~ :
    UUID
    , agent_name~ : String, plugin_priority~ : Int) ->
    Json
    raise GolemError
    async fn revert_worker(self : Self, component_id~ :
    UUID
    , agent_name~ : String, body~ :
    RevertWorkerTarget
    ) ->
    Json
    raise GolemError
    async fn fork_worker(self : Self, component_id~ :
    UUID
    , agent_name~ : String, body~ :
    ForkWorkerRequest
    ) ->
    Json
    raise GolemError
    async fn cancel_invocation(self : Self, component_id~ :
    UUID
    , agent_name~ : String, idempotency_key~ : String) ->
    CancelInvocationResponse
    raise GolemError
    async fn worker_connect(self : Self, component_id~ :
    UUID
    , agent_name~ : String, protocols? : Array[String]) -> &
    WsConn
    raise GolemError
    }

    Operations in the Worker group. Implement this trait to mock or wrap Client.

    GolemError

    pub(all) suberror GolemError {
    Transport(
    TransportError
    )
    Decode(status~ : Int, message~ : String, body~ : String)
    InvalidParam(name~ : String, message~ : String)
    Api(status~ : Int, body~ : String, parsed~ :
    Json
    ?)
    WebSocket(
    WsError
    )
    } derive(Eq,
    Debug
    )

    Error taxonomy returned by all generated client operations.

    Auth

    pub(all) enum Auth {
    None
    Bearer(String)
    Basic(username~ : String, password~ : String)
    ApiKeyHeader(name~ : String, value~ : String)
    ApiKeyQuery(name~ : String, value~ : String)
    ApiKeyCookie(name~ : String, value~ : String)
    Combined(Array[Auth])
    } derive(Eq,
    Debug
    )

    Authentication strategy applied to client requests.

    Auth::cookie

    fn Auth::cookie(value : String) -> Auth

    Credentials for OpenAPI security scheme Cookie.

    Auth::token

    fn Auth::token(token : String) -> Auth

    Credentials for OpenAPI security scheme Token.

    Client

    pub struct Client[T] {
    // private fields
    }

    API client parameterized over any @runtime.Transport implementation.
    impl AccountClient for Client[T]
    impl AgentClient for Client[T]
    impl CardClient for Client[T]
    impl LoginClient for Client[T]
    impl MeClient for Client[T]
    impl PluginClient for Client[T]
    impl ReportsClient for Client[T]
    impl TokenClient for Client[T]
    impl WorkerClient for Client[T]

    Client::activate_plugin

    async fn[T :
    Transport
    ] Client::activate_plugin(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String, plugin_priority~ : Int) ->
    Json
    raise GolemError

    Activate a plugin The plugin must be one of the installed plugins for the worker's current component version.

    POST /v1/components/{component_id}/workers/{agent_name}/activate-plugin (activate_plugin).

    Client::authorize_declared_mcp_import

    POST /v1/envs/{environment_id}/mcp-imports/oauth/authorize (authorize_declared_mcp_import).

    Client::authorize_mcp_import

    async fn[T :
    Transport
    ] Client::authorize_mcp_import(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt) ->
    McpImportAuthorization
    raise GolemError

    POST /v1/envs/{environment_id}/deployments/{deployment_revision}/mcp-imports/{import_index}/oauth/authorize (authorize_mcp_import).

    Client::cancel_invocation

    async fn[T :
    Transport
    ] Client::cancel_invocation(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String, idempotency_key~ : String) ->
    CancelInvocationResponse
    raise GolemError

    Cancels a pending invocation if it has not started yet The invocation to be cancelled is identified by the idempotency key passed to the invoke API.

    DELETE /v1/components/{component_id}/workers/{agent_name}/invocations/{idempotency_key} (cancel_invocation).

    Client::clear_account_admin_resource_grant

    Clear an active admin resource grant.

    DELETE /v1/accounts/{account_id}/resource-grants/{dimension} (clear_account_admin_resource_grant).

    Client::clear_account_max_memory_override

    Clear the maximum linear memory per-agent override.

    DELETE /v1/accounts/{account_id}/resource-overrides/max-memory-per-agent (clear_account_max_memory_override).

    Client::clear_account_storage_override

    Clear a storage-per-agent override for an account.

    DELETE /v1/accounts/{account_id}/resource-overrides/max-storage-per-agent (clear_account_storage_override).

    Client::complete_declared_mcp_import_authorization

    POST /v1/envs/{environment_id}/mcp-imports/oauth/complete (complete_declared_mcp_import_authorization).

    Client::complete_mcp_import_authorization

    async fn[T :
    Transport
    ] Client::complete_mcp_import_authorization(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt, body~ :
    McpImportOAuthCallback
    ) ->
    McpImportOAuthStatus
    raise GolemError

    POST /v1/envs/{environment_id}/deployments/{deployment_revision}/mcp-imports/{import_index}/oauth/complete (complete_mcp_import_authorization).

    Client::complete_promise

    async fn[T :
    Transport
    ] Client::complete_promise(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String, body~ :
    CompleteParameters
    ) -> Bool raise GolemError

    Complete a promise Completes a promise with a given custom array of bytes. The promise must be previously created from within the worker, and it's identifier (a combination of a worker identifier and an oplogIdx ) must be sent out to an external caller so it can use this endpoint to mark the promise completed. The data field is sent back to the worker, and it has no predefined meaning.

    POST /v1/components/{component_id}/workers/{agent_name}/complete (complete_promise).

    Client::config

    fn[T] Client::config(self : Client[T]) -> ClientConfig

    Inspect the active ClientConfig.

    Client::create_account

    Create a new account. The response is the created account data.

    POST /v1/accounts (create_account).

    Client::create_agent_secret

    Create a new agent secret

    POST /v1/envs/{environment_id}/agent-secrets (create_agent_secret).

    Client::create_application

    Create an application in the account

    POST /v1/accounts/{account_id}/apps (create_application).

    Client::create_component

    async fn[T :
    Transport
    ] Client::create_component(self : Client[T], environment_id~ :
    UUID
    , metadata~ :
    ComponentCreation
    , component_wasm~ : Bytes, component_wasm_filename? : String, files? : Bytes, files_filename? : String) ->
    ComponentDto
    raise GolemError

    Create a new component in the environment The request body is encoded as multipart/form-data containing metadata and the WASM binary.

    POST /v1/envs/{environment_id}/components (create_component).

    Client::create_domain_registration

    Create a new domain registration in the environment

    POST /v1/envs/{environment_id}/domain-registrations (create_domain_registration).

    Client::create_environment

    Create an application environment

    POST /v1/apps/{application_id}/envs (create_environment).

    Client::create_environment_plugin_grant

    Create a new environment plugin grant

    POST /v1/envs/{environment_id}/plugins (create_environment_plugin_grant).

    Client::create_environment_tool_grant

    Grant an exact published tool release to an environment

    POST /v1/envs/{environment_id}/tools (create_environment_tool_grant).

    Client::create_environment_tool_middleware_grant

    Grant an exact published tool_middleware release to an environment

    POST /v1/envs/{environment_id}/tool-middlewares (create_environment_tool_middleware_grant).

    Client::create_http_api_deployment

    Create a new api-deployment in the environment

    POST /v1/envs/{environment_id}/http-api-deployments (create_http_api_deployment).

    Client::create_impersonation_token

    Create an impersonation token for a target account Creates a short-lived token that, when used for authentication, produces an AdminImpersonation auth context: access and visibility checks run as the target account, but audit writes (created_by fields) record the admin's account ID.

    Only users with the Admin account role may call this endpoint.

    POST /v1/admin/impersonate/{account_id} (create_impersonation_token).

    Client::create_mcp_deployment

    Create a new MCP deployment in the environment

    POST /v1/envs/{environment_id}/mcp-deployments (create_mcp_deployment).

    Client::create_permission_share

    Create a new permission share owned by an account.

    POST /v1/accounts/{account_id}/permission-shares (create_permission_share).

    Client::create_plugin

    Register a new plugin

    POST /v1/accounts/{account_id}/plugins (create_plugin).

    Client::create_resource

    Create a new resource in the environment

    POST /v1/envs/{environment_id}/resources (create_resource).

    Client::create_retry_policy

    Create a new retry policy

    POST /v1/envs/{environment_id}/retry-policies (create_retry_policy).

    Client::create_security_scheme

    Create a new security scheme

    POST /v1/envs/{environment_id}/security-schemes (create_security_scheme).

    Client::create_token

    Create new token Creates a new token with a given expiration date. The response not only contains the token data but also the secret which can be passed as a bearer token to the Authorization header to the Golem Cloud REST API.

    POST /v1/accounts/{account_id}/tokens (create_token).

    Client::current_login_token

    Gets information about the current token. The JSON is the same as the data object in the oauth2 endpoint's response.

    GET /v1/me/token (current_login_token).

    Client::deactivate_plugin

    async fn[T :
    Transport
    ] Client::deactivate_plugin(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String, plugin_priority~ : Int) ->
    Json
    raise GolemError

    Deactivate a plugin The plugin must be one of the installed plugins for the worker's current component version.

    POST /v1/components/{component_id}/workers/{agent_name}/deactivate-plugin (deactivate_plugin).

    Client::delete_account

    async fn[T :
    Transport
    ] Client::delete_account(self : Client[T], account_id~ :
    UUID
    , current_revision~ : UInt64) ->
    Json
    raise GolemError

    Delete an account. The delete fails with 409 while the account has a deletion hold. The error lists the reasons of the holds.

    DELETE /v1/accounts/{account_id} (delete_account).

    Client::delete_agent_secret

    async fn[T :
    Transport
    ] Client::delete_agent_secret(self : Client[T], agent_secret_id~ :
    UUID
    , current_revision~ : UInt64) ->
    AgentSecretDto
    raise GolemError

    Delete agent secret

    DELETE /v1/agent-secret/{agent_secret_id} (delete_agent_secret).

    Client::delete_application

    async fn[T :
    Transport
    ] Client::delete_application(self : Client[T], application_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError

    Update application by id.

    DELETE /v1/apps/{application_id} (delete_application).

    Client::delete_component

    async fn[T :
    Transport
    ] Client::delete_component(self : Client[T], component_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError

    Delete the component

    DELETE /v1/components/{component_id} (delete_component).

    Client::delete_domain_registration

    async fn[T :
    Transport
    ] Client::delete_domain_registration(self : Client[T], domain_registration_id~ :
    UUID
    ) -> Unit raise GolemError

    Delete domain registration

    DELETE /v1/domain-registrations/{domain_registration_id} (delete_domain_registration).

    Client::delete_environment

    async fn[T :
    Transport
    ] Client::delete_environment(self : Client[T], environment_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError

    Delete environment by id.

    DELETE /v1/envs/{environment_id} (delete_environment).

    Client::delete_environment_plugin_grant

    async fn[T :
    Transport
    ] Client::delete_environment_plugin_grant(self : Client[T], environment_plugin_grant_id~ :
    UUID
    ) -> Unit raise GolemError

    Delete environment plugin grant

    DELETE /v1/environment-plugins/{environment_plugin_grant_id} (delete_environment_plugin_grant).

    Client::delete_environment_tool_grant

    Delete an environment tool grant

    DELETE /v1/environment-tools/{grant_id} (delete_environment_tool_grant).

    Client::delete_environment_tool_middleware_grant

    Delete an environment tool_middleware grant

    DELETE /v1/environment-tool-middleware-grants/{grant_id} (delete_environment_tool_middleware_grant).

    Client::delete_http_api_deployment

    async fn[T :
    Transport
    ] Client::delete_http_api_deployment(self : Client[T], http_api_deployment_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError

    Delete an api-deployment

    DELETE /v1/http-api-deployments/{http_api_deployment_id} (delete_http_api_deployment).

    Client::delete_mcp_deployment

    async fn[T :
    Transport
    ] Client::delete_mcp_deployment(self : Client[T], mcp_deployment_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError

    Delete MCP deployment

    DELETE /v1/mcp-deployments/{mcp_deployment_id} (delete_mcp_deployment).

    Client::delete_permission_share

    async fn[T :
    Transport
    ] Client::delete_permission_share(self : Client[T], permission_share_id~ :
    UUID
    , current_revision~ : UInt64) ->
    PermissionShare
    raise GolemError

    Delete permission share.

    DELETE /v1/permission-shares/{permission_share_id} (delete_permission_share).

    Client::delete_plugin

    Delete a plugin

    DELETE /v1/plugins/{plugin_id} (delete_plugin).

    Client::delete_resource

    async fn[T :
    Transport
    ] Client::delete_resource(self : Client[T], resource_id~ :
    UUID
    , current_revision~ : UInt64) -> Unit raise GolemError

    Delete a resource

    DELETE /v1/resources/{resource_id} (delete_resource).

    Client::delete_retry_policy

    async fn[T :
    Transport
    ] Client::delete_retry_policy(self : Client[T], retry_policy_id~ :
    UUID
    , current_revision~ : UInt64) ->
    RetryPolicyDto
    raise GolemError

    Delete retry policy

    DELETE /v1/retry-policies/{retry_policy_id} (delete_retry_policy).

    Client::delete_security_scheme

    async fn[T :
    Transport
    ] Client::delete_security_scheme(self : Client[T], security_scheme_id~ :
    UUID
    , current_revision~ : UInt64) ->
    SecuritySchemeDto
    raise GolemError

    Delete security scheme

    DELETE /v1/security-schemes/{security_scheme_id} (delete_security_scheme).

    Client::delete_token

    Delete a token Deletes a previously created token given by its identifier.

    DELETE /v1/tokens/{token_id} (delete_token).

    Client::delete_worker

    async fn[T :
    Transport
    ] Client::delete_worker(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String) ->
    Json
    raise GolemError

    Delete a worker Interrupts and deletes an existing worker.

    DELETE /v1/components/{component_id}/workers/{agent_name} (delete_worker).

    Client::deploy_environment

    Deploy the current staging area of this environment

    POST /v1/envs/{environment_id}/deployments (deploy_environment).

    Client::depublish_tool_middleware_release

    De-publish an account-owned tool_middleware release

    DELETE /v1/tool-middleware-releases/{release_id} (de_publish_tool_middleware_release).

    Client::depublish_tool_release

    De-publish an account-owned tool release

    DELETE /v1/tool-releases/{release_id} (de_publish_tool_release).

    Client::describe_tool

    Return the effective definition of a tool bound to an existing agent or component baseline.

    POST /v1/agents/describe-tool (describe_tool).

    Client::disconnect_declared_mcp_import

    POST /v1/envs/{environment_id}/mcp-imports/oauth/disconnect (disconnect_declared_mcp_import).

    Client::disconnect_mcp_import

    async fn[T :
    Transport
    ] Client::disconnect_mcp_import(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt) ->
    McpImportOAuthStatus
    raise GolemError

    DELETE /v1/envs/{environment_id}/deployments/{deployment_revision}/mcp-imports/{import_index}/oauth (disconnect_mcp_import).

    Client::find_workers_metadata

    Advanced search for workers

    Filter types

    TypeComparatorDescriptionExample
    NameStringFilterComparatorName of worker{ "type": "Name", "comparator": "Equal", "value": "worker-name" }
    VersionFilterComparatorVersion of worker{ "type": "Version", "comparator": "GreaterEqual", "value": 0 }
    StatusFilterComparatorStatus of worker{ "type": "Status", "comparator": "Equal", "value": "Running" }
    EnvStringFilterComparatorEnvironment variable of worker{ "type": "Env", "name": "var1", "comparator": "Equal", "value": "value" }
    CreatedAtFilterComparatorCreation time of worker{ "type": "CreatedAt", "comparator": "Greater", "value": "2024-04-01T12:10:00Z" }
    AndAnd filter combinator{ "type": "And", "filters": [ ... ] }
    OrOr filter combinator{ "type": "Or", "filters": [ ... ] }
    NotNegates the specified filter{ "type": "Not", "filter": { "type": "Version", "comparator": "GreaterEqual", "value": 0 } }

    Comparators

    • StringFilterComparator: Equal, NotEqual, Like, NotLike
    • FilterComparator: Equal, NotEqual, GreaterEqual, Greater, LessEqual, Less

    Returns metadata about an existing component workers:
    • workers list of workers metadata
    • cursor cursor for next request, if cursor is empty/null, there are no other values

    POST /v1/components/{component_id}/workers/find (find_workers_metadata).

    Client::fork_worker

    Fork a worker Fork a worker by creating a new worker with the oplog up to the provided index

    POST /v1/components/{component_id}/workers/{agent_name}/fork (fork_worker).

    Client::get_account

    Retrieve an account for a given Account ID

    GET /v1/accounts/{account_id} (get_account).

    Client::get_account_application

    async fn[T :
    Transport
    ] Client::get_account_application(self : Client[T], account_id~ :
    UUID
    , application_name~ : String) ->
    Application
    raise GolemError

    Get application in the account by name

    GET /v1/accounts/{account_id}/apps/{application_name} (get_account_application).

    Client::get_account_by_email

    async fn[T :
    Transport
    ] Client::get_account_by_email(self : Client[T], account_email~ : String) ->
    Account
    raise GolemError

    Retrieve an account by email address.

    GET /v1/accounts/by-email/{account_email} (get_account_by_email).

    Client::get_account_count_report

    GET /v1/reports/account_count (get_account_count_report).

    Client::get_account_limits

    Get the current account resource policy. The policy combines Plan Row monthly amounts with current UTC-period usage and both per-agent safety limits. Enabled monthly dimensions report measured usage and remaining capacity. Disabled dimensions omit the monthly amount, usage, remaining capacity, and behavior. unknown means no producer has reported metering state; it does not mean disabled or measured zero. Compute uses GCU, allocated linear memory uses GB-seconds, storage uses GB-month, and per-agent limits use bytes. Monthly behavior is hardLimit or includedAllowance, according to the account's current usage mode.

    GET /v1/accounts/{account_id}/limits (get_account_limits).

    Client::get_account_plan

    Get an account's plan

    GET /v1/accounts/{account_id}/plan (get_account_plan).

    Client::get_account_plugin

    async fn[T :
    Transport
    ] Client::get_account_plugin(self : Client[T], account_id~ :
    UUID
    , plugin_name~ : String, plugin_version~ : String) ->
    PluginRegistrationDto
    raise GolemError

    Get an account plugin by name and version.

    GET /v1/accounts/{account_id}/plugins/{plugin_name}/{plugin_version} (get_account_plugin).

    Client::get_account_plugin_by_email

    async fn[T :
    Transport
    ] Client::get_account_plugin_by_email(self : Client[T], account_email~ : String, plugin_name~ : String, plugin_version~ : String) ->
    PluginRegistrationDto
    raise GolemError

    Get an account plugin by the owner account's email, name and version. Authorizes on the plugin permission alone — the same as the account-id form — resolving the owner account from the email without an AccountVerb::View check, so the email and id account scopes behave identically under granular sharing.

    GET /v1/accounts/by-email/{account_email}/plugins/{plugin_name}/{plugin_version} (get_account_plugin_by_email).

    Client::get_account_summaries_report

    GET /v1/reports/account_summaries (get_account_summaries_report).

    Client::get_account_usage

    Get account usage for a UTC calendar month. Compute is reported in GCU, memory in allocated linear-memory GB-seconds, and durable and ephemeral storage in GB-month using byte-seconds / (1024^3 * 730 * 3600). asOf is when the registry last received a usage snapshot for the period, or the response time if no snapshot exists. Metering status distinguishes enabled meters that measured zero from disabled meters. unknown means no usage producer has reported metering state for the period. Durable and ephemeral storage both use storage metering.

    GET /v1/accounts/{account_id}/usage (get_account_usage).

    Client::get_account_usage_history

    Get sparse account usage for closed UTC calendar months, newest first. Each item uses the same metrics and metering-status contract as current usage. The response does not include plan or limit metadata because historical limits are not snapshotted.

    GET /v1/accounts/{account_id}/usage/history (get_account_usage_history).

    Client::get_agent_secret

    Get agent secret by id.

    GET /v1/agent-secrets/{agent_secret_id} (get_agent_secret).

    Client::get_agent_wallet

    Get the wallet (active permission cards) of a worker. Activates the worker if it is not already active.

    GET /v1/components/{component_id}/workers/{agent_name}/wallet (get_agent_wallet).

    Client::get_application

    Get application by id.

    GET /v1/apps/{application_id} (get_application).

    Client::get_application_environment

    async fn[T :
    Transport
    ] Client::get_application_environment(self : Client[T], application_id~ :
    UUID
    , environment_name~ : String) ->
    Environment
    raise GolemError

    Get application environment by name

    GET /v1/apps/{application_id}/envs/{environment_name} (get_application_environment).

    Client::get_card

    Get a card by id.

    GET /v1/cards/{card_id} (get_card).

    Client::get_component

    Get a component by id

    GET /v1/components/{component_id} (get_component).

    Client::get_component_revision

    async fn[T :
    Transport
    ] Client::get_component_revision(self : Client[T], component_id~ :
    UUID
    , revision~ : UInt64) ->
    ComponentDto
    raise GolemError

    Get specific revision of a component

    GET /v1/components/{component_id}/revisions/{revision} (get_component_revision).

    Client::get_component_wasm

    async fn[T :
    Transport
    ] Client::get_component_wasm(self : Client[T], component_id~ :
    UUID
    , revision~ : UInt64) -> Bytes raise GolemError

    Get the component wasm binary of a specific revision

    GET /v1/components/{component_id}/revisions/{revision}/wasm (get_component_wasm).

    Client::get_declared_mcp_import_authorization_status

    POST /v1/envs/{environment_id}/mcp-imports/oauth/status (get_declared_mcp_import_authorization_status).

    Client::get_deployment_agent_type

    async fn[T :
    Transport
    ] Client::get_deployment_agent_type(self : Client[T], environment_id~ :
    UUID
    , deployment_id~ : UInt64, agent_type_name~ : String) ->
    DeployedRegisteredAgentType
    raise GolemError

    Get a registered agent type in a deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_id}/agent-types/{agent_type_name} (get_deployment_agent_type).

    Client::get_deployment_component

    async fn[T :
    Transport
    ] Client::get_deployment_component(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64, component_name~ : String) ->
    ComponentDto
    raise GolemError

    Get component in a deployment by name

    GET /v1/envs/{environment_id}/deployments/{deployment_revision}/components/{component_name} (get_deployment_component).

    Client::get_deployment_http_api_deployment

    async fn[T :
    Transport
    ] Client::get_deployment_http_api_deployment(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64, domain~ : String) ->
    HttpApiDeployment
    raise GolemError

    Get http api deployment by domain in the deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_revision}/http-api-deployments/{domain} (get_deployment_http_api_deployment).

    Client::get_deployment_mcp_deployment

    async fn[T :
    Transport
    ] Client::get_deployment_mcp_deployment(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64, domain~ : String) ->
    McpDeployment
    raise GolemError

    Get MCP deployment by domain in the deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_revision}/mcp-deployments/{domain} (get_deployment_mcp_deployment).

    Client::get_deployment_registered_tool

    async fn[T :
    Transport
    ] Client::get_deployment_registered_tool(self : Client[T], environment_id~ :
    UUID
    , deployment_id~ : UInt64, tool_name~ : String) ->
    DeployedRegisteredTool
    raise GolemError

    Get a registered tool in a deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_id}/tools/{tool_name} (get_deployment_registered_tool).

    Client::get_deployment_registered_tool_middleware

    async fn[T :
    Transport
    ] Client::get_deployment_registered_tool_middleware(self : Client[T], environment_id~ :
    UUID
    , deployment_id~ : UInt64, middleware_name~ : String) ->
    RegisteredToolMiddleware
    raise GolemError

    Get registered tool middleware in a deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_id}/tool-middlewares/{middleware_name} (get_deployment_registered_tool_middleware).

    Client::get_deployment_summary

    async fn[T :
    Transport
    ] Client::get_deployment_summary(self : Client[T], environment_id~ :
    UUID
    , deployment_id~ : UInt64) ->
    DeploymentSummary
    raise GolemError

    Get the deployment summary of a deployed deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_id}/summary (get_deployment_summary).

    Client::get_domain_registration

    Get domain registration by id

    GET /v1/domain-registrations/{domain_registration_id} (get_domain_registration).

    Client::get_environment

    Get environment by id.

    GET /v1/envs/{environment_id} (get_environment).

    Client::get_environment_agent_secret

    async fn[T :
    Transport
    ] Client::get_environment_agent_secret(self : Client[T], environment_id~ :
    UUID
    , path~ : Array[String]) ->
    AgentSecretDto
    raise GolemError

    Get an agent secret in an environment by its path segments.

    GET /v1/envs/{environment_id}/agent-secrets/by-path (get_environment_agent_secret).

    Client::get_environment_component

    async fn[T :
    Transport
    ] Client::get_environment_component(self : Client[T], environment_id~ :
    UUID
    , component_name~ : String) ->
    ComponentDto
    raise GolemError

    Get a component in the environment by name

    GET /v1/envs/{environment_id}/components/{component_name} (get_environment_component).

    Client::get_environment_deployment_plan

    Get the current deployment plan

    GET /v1/envs/{environment_id}/plan (get_environment_deployment_plan).

    Client::get_environment_domain_registration

    async fn[T :
    Transport
    ] Client::get_environment_domain_registration(self : Client[T], environment_id~ :
    UUID
    , domain~ : String) ->
    DomainRegistration
    raise GolemError

    Get a domain registration in an environment by domain.

    GET /v1/envs/{environment_id}/domain-registrations/{domain} (get_environment_domain_registration).

    Client::get_environment_http_api_deployment

    async fn[T :
    Transport
    ] Client::get_environment_http_api_deployment(self : Client[T], environment_id~ :
    UUID
    , domain~ : String) ->
    HttpApiDeployment
    raise GolemError

    Get http api deployment by domain in the environment

    GET /v1/envs/{environment_id}/http-api-deployments/{domain} (get_environment_http_api_deployment).

    Client::get_environment_mcp_deployment

    async fn[T :
    Transport
    ] Client::get_environment_mcp_deployment(self : Client[T], environment_id~ :
    UUID
    , domain~ : String) ->
    McpDeployment
    raise GolemError

    Get MCP deployment by domain in the environment

    GET /v1/envs/{environment_id}/mcp-deployments/{domain} (get_environment_mcp_deployment).

    Client::get_environment_plugin_grant

    Get environment plugin grant by id

    GET /v1/environment-plugins/{environment_plugin_grant_id} (get_environment_plugin_grant).

    Client::get_environment_resource

    async fn[T :
    Transport
    ] Client::get_environment_resource(self : Client[T], environment_id~ :
    UUID
    , resource_name~ : String) ->
    ResourceDefinition
    raise GolemError

    Get a resource in the environment by name

    GET /v1/envs/{environment_id}/resources/{resource_name} (get_environment_resource).

    Client::get_environment_retry_policy

    async fn[T :
    Transport
    ] Client::get_environment_retry_policy(self : Client[T], environment_id~ :
    UUID
    , retry_policy_name~ : String) ->
    RetryPolicyDto
    raise GolemError

    Get a retry policy in an environment by name.

    GET /v1/envs/{environment_id}/retry-policies/{retry_policy_name} (get_environment_retry_policy).

    Client::get_environment_security_scheme

    async fn[T :
    Transport
    ] Client::get_environment_security_scheme(self : Client[T], environment_id~ :
    UUID
    , security_scheme_name~ : String) ->
    SecuritySchemeDto
    raise GolemError

    Get a security scheme in an environment by name.

    GET /v1/envs/{environment_id}/security-schemes/{security_scheme_name} (get_environment_security_scheme).

    Client::get_environment_tool_grant

    Get an active environment tool grant

    GET /v1/environment-tools/{grant_id} (get_environment_tool_grant).

    Client::get_environment_tool_middleware_grant

    Get an active environment tool_middleware grant

    GET /v1/environment-tool-middleware-grants/{grant_id} (get_environment_tool_middleware_grant).

    Client::get_file_content

    async fn[T :
    Transport
    ] Client::get_file_content(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String, file_name~ : String) -> Bytes raise GolemError

    Get contents of a file in a worker

    GET /v1/components/{component_id}/workers/{agent_name}/file-contents/{file_name} (get_file_content).

    Client::get_files

    async fn[T :
    Transport
    ] Client::get_files(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String, file_name~ : String) ->
    GetFilesResponse
    raise GolemError

    List files in a worker

    GET /v1/components/{component_id}/workers/{agent_name}/files/{file_name} (get_files).

    Client::get_http_api_deployment

    Get an api-deployment by id

    GET /v1/http-api-deployments/{http_api_deployment_id} (get_http_api_deployment).

    Client::get_http_api_deployment_revision

    async fn[T :
    Transport
    ] Client::get_http_api_deployment_revision(self : Client[T], http_api_deployment_id~ :
    UUID
    , revision~ : UInt64) ->
    HttpApiDeployment
    raise GolemError

    Get a specific http api deployment revision

    GET /v1/http-api-deployment/{http_api_deployment_id}/revisions/{revision} (get_http_api_deployment_revision).

    Client::get_mcp_deployment

    Get MCP deployment by ID

    GET /v1/mcp-deployments/{mcp_deployment_id} (get_mcp_deployment).

    Client::get_mcp_deployment_revision

    async fn[T :
    Transport
    ] Client::get_mcp_deployment_revision(self : Client[T], mcp_deployment_id~ :
    UUID
    , revision~ : UInt64) ->
    McpDeployment
    raise GolemError

    Get a specific MCP deployment revision

    GET /v1/mcp-deployment/{mcp_deployment_id}/revisions/{revision} (get_mcp_deployment_revision).

    Client::get_mcp_import_authorization_status

    async fn[T :
    Transport
    ] Client::get_mcp_import_authorization_status(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt) ->
    McpImportOAuthStatus
    raise GolemError

    GET /v1/envs/{environment_id}/deployments/{deployment_revision}/mcp-imports/{import_index}/oauth (get_mcp_import_authorization_status).

    Client::get_mcp_import_tools

    async fn[T :
    Transport
    ] Client::get_mcp_import_tools(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt) ->
    McpImportTools
    raise GolemError

    Inspect projected tools from an import in a specific deployment. Cache misses fetch upstream metadata on demand. This is the individual import's projection, before native and earlier-import precedence. Requires environment/deployment visibility and ViewTools; network requests use the owner's quota.

    GET /v1/envs/{environment_id}/deployments/{deployment_revision}/mcp-imports/{import_index}/tools (get_mcp_import_tools).

    Client::get_oplog

    async fn[T :
    Transport
    ] Client::get_oplog(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String, count~ : UInt64, from? : UInt64, cursor? :
    OplogCursor
    , query? : String) ->
    GetOplogResponse
    raise GolemError

    Get the oplog of a worker

    GET /v1/components/{component_id}/workers/{agent_name}/oplog (get_oplog).

    Client::get_oplog_entry

    async fn[T :
    Transport
    ] Client::get_oplog_entry(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String, oplog_index~ : UInt64, component_revision? : UInt64) ->
    PublicOplogEntryWithIndex
    raise GolemError

    Get one oplog entry of a worker Oplog pages omit entries whose encoded form is larger than a server limit, and describe them by their type, timestamp, size and component revision. This endpoint returns such an entry in full. Pass the component revision of the description to save the server from scanning the oplog for it.

    GET /v1/components/{component_id}/workers/{agent_name}/oplog/{oplog_index} (get_oplog_entry).

    Client::get_permission_share

    Get permission share by id.

    GET /v1/permission-shares/{permission_share_id} (get_permission_share).

    Client::get_permission_share_by_name

    Get permission share by owner account and name.

    GET /v1/accounts/{account_id}/permission-shares/{name} (get_permission_share_by_name).

    Client::get_plugin_by_id

    Get a plugin by id

    GET /v1/plugins/{plugin_id} (get_plugin_by_id).

    Client::get_resource

    Get a resource by id

    GET /v1/resources/{resource_id} (get_resource).

    Client::get_resource_revision

    Get specific revision of a resource

    GET /v1/resources/{resource_id}/revisions/{revision} (get_resource_revision).

    Client::get_retry_policy

    Get retry policy by id.

    GET /v1/retry-policies/{retry_policy_id} (get_retry_policy).

    Client::get_security_scheme

    Get security scheme

    GET /v1/security-schemes/{security_scheme_id} (get_security_scheme).

    Client::get_token

    Get token by id

    GET /v1/tokens/{token_id} (get_token).

    Client::get_tool_middleware_release

    Get an account-owned tool_middleware release by ID

    GET /v1/tool-middleware-releases/{release_id} (get_tool_middleware_release).

    Client::get_tool_release

    Get an account-owned tool release by ID

    GET /v1/tool-releases/{release_id} (get_tool_release).

    Client::get_worker_metadata

    Get metadata of a worker Returns metadata about an existing worker:
    • workerId is a combination of the used component and the worker's user specified name
    • accountId the account the worker is created by
    • args is the provided command line arguments passed to the worker
    • env is the provided map of environment variables passed to the worker
    • componentVersion is the version of the component used by the worker
    • retryCount is the number of retries the worker did in case of a failure
    • status is the worker's current status, one of the following:
    • Running if the worker is currently executing
    • Idle if the worker is waiting for an invocation
    • Suspended if the worker was running but is now waiting to be resumed by an event (such as end of a sleep, a promise, etc)
    • Interrupted if the worker was interrupted by the user
    • Retrying if the worker failed, and an automatic retry was scheduled for it
    • Failed if the worker failed and there are no more retries scheduled for it
    • Exited if the worker explicitly exited using the exit WASI function

    GET /v1/components/{component_id}/workers/{agent_name} (get_worker_metadata).

    Client::get_workers_metadata

    async fn[T :
    Transport
    ] Client::get_workers_metadata(self : Client[T], component_id~ :
    UUID
    , filter? : Array[String], cursor? : String, count? : UInt64, precise? : Bool) ->
    WorkersMetadataResponse
    raise GolemError

    Get metadata of multiple workers

    Filters

    PropertyComparatorDescriptionExample
    nameStringFilterComparatorName of workername = worker-name
    versionFilterComparatorVersion of workerversion >= 0
    statusFilterComparatorStatus of workerstatus = Running
    env.[key]StringFilterComparatorEnvironment variable of workerenv.var1 = value
    createdAtFilterComparatorCreation time of workercreatedAt > 2024-04-01T12:10:00Z

    Comparators

    • StringFilterComparator: eq|equal|=|==, ne|notequal|!=, like, notlike
    • FilterComparator: eq|equal|=|==, ne|notequal|!=, ge|greaterequal|>=, gt|greater|>, le|lessequal|<=, lt|less|<

    Returns metadata about an existing component workers:
    • workers list of workers metadata
    • cursor cursor for next request, if cursor is empty/null, there are no other values

    GET /v1/components/{component_id}/workers (get_workers_metadata).

    Client::healthcheck

    GET /healthcheck (healthcheck).

    Client::interrupt_worker

    async fn[T :
    Transport
    ] Client::interrupt_worker(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String, recovery_immediately? : Bool) ->
    Json
    raise GolemError

    Interrupt a worker Interrupts the execution of a worker. The worker's status will be Interrupted unless the recover-immediately parameter was used, in which case it remains as it was. An interrupted worker can be still used, and it is going to be automatically resumed the first time it is used. For example in case of a new invocation, the previously interrupted invocation is continued before the new one gets processed.

    POST /v1/components/{component_id}/workers/{agent_name}/interrupt (interrupt_worker).

    Client::invoke_agent

    POST /v1/agents/invoke-agent (invoke_agent).

    Client::invoke_agent_session

    async fn[T :
    Transport
    ] Client::invoke_agent_session(self : Client[T], sec_web_socket_protocol~ : String, protocols? : Array[String]) -> &
    WsConn
    raise GolemError

    Invoke an agent through an attached live streaming session Upgrades to a WebSocket using the required golem.agent-invocation.v1 subprotocol. Text frames carry public v1 JSON lifecycle messages, while binary frames carry the public v1 binary envelope. The bearer token is authenticated before the upgrade and authorizes both start and resume.

    GET /v1/agents/invoke-agent-session (invoke_agent_session).

    Client::invoke_tool

    Invoke a tool on an existing agent or a fresh ephemeral component owner Uses normal invocation permissions, queueing and idempotency. Byte stdin, stdout and stderr require an attached invocation session rather than this scalar endpoint.

    POST /v1/agents/invoke-tool (invoke_tool).

    Client::launch_new_worker

    Launch a new worker. Creates a new worker. The worker initially is in `Idle`` status, waiting to be invoked.

    The parameters in the request are the following:
    • name is the name of the created worker. This has to be unique, but only for a given component
    • args is a list of strings which appear as command line arguments for the worker
    • env is a list of key-value pairs (represented by arrays) which appear as environment variables for the worker

    POST /v1/components/{component_id}/workers (launch_new_worker).

    Client::list_account_applications

    List all applications in the account

    GET /v1/accounts/{account_id}/apps (list_account_applications).

    Client::list_account_cards

    async fn[T :
    Transport
    ] Client::list_account_cards(self : Client[T], account_id~ :
    UUID
    , include_root? : Bool, include_permission_shares? : Bool, include_environment_defaults? : Bool, include_agent_initials? : Bool) -> Array[
    StoredCard
    ] raise GolemError

    List cards owned by an account.

    GET /v1/accounts/{account_id}/cards (list_account_cards).

    Client::list_account_deletion_holds

    List the deletion holds of an account. While an account has a deletion hold, the account cannot be deleted.

    GET /v1/accounts/{account_id}/deletion-holds (list_account_deletion_holds).

    Client::list_account_plugins

    List all plugins registered in account

    GET /v1/accounts/{account_id}/plugins (list_account_plugins).

    Client::list_account_tokens

    List all tokens of an account. The format of each element is the same as the data object in the oauth2 endpoint's response.

    GET /v1/accounts/{account_id}/tokens (list_account_tokens).

    Client::list_account_tool_middleware_releases

    List tool_middleware releases owned by an account

    GET /v1/accounts/{account_id}/tool-middleware-releases (list_account_tool_middleware_releases).

    Client::list_account_tool_releases

    List tool releases owned by an account

    GET /v1/accounts/{account_id}/tool-releases (list_account_tool_releases).

    Client::list_application_environments

    List all application environments

    GET /v1/apps/{application_id}/envs (list_application_environments).

    Client::list_deployment_agent_types

    List all registered agent types in a deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_id}/agent-types (list_deployment_agent_types).

    Client::list_deployment_components

    async fn[T :
    Transport
    ] Client::list_deployment_components(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64) ->
    PageComponentDto
    raise GolemError

    List all components in a specific deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_revision}/components (list_deployment_components).

    Client::list_deployment_http_api_deployments

    async fn[T :
    Transport
    ] Client::list_deployment_http_api_deployments(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64) ->
    PageHttpApiDeployment
    raise GolemError

    Get http api deployment by domain in the deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_revision}/http-api-deployments (list_deployment_http_api_deployments).

    Client::list_deployment_mcp_deployments

    async fn[T :
    Transport
    ] Client::list_deployment_mcp_deployments(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64) ->
    PageMcpDeployment
    raise GolemError

    List MCP deployments by domain in the deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_revision}/mcp-deployments (list_deployment_mcp_deployments).

    Client::list_deployment_registered_tool_middlewares

    async fn[T :
    Transport
    ] Client::list_deployment_registered_tool_middlewares(self : Client[T], environment_id~ :
    UUID
    , deployment_id~ : UInt64) ->
    PageRegisteredToolMiddleware
    raise GolemError

    List all registered tool middleware in a deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_id}/tool-middlewares (list_deployment_registered_tool_middlewares).

    Client::list_deployment_registered_tools

    List all registered tools in a deployment

    GET /v1/envs/{environment_id}/deployments/{deployment_id}/tools (list_deployment_registered_tools).

    Client::list_deployments

    List all deployments in this environment

    GET /v1/envs/{environment_id}/deployments (list_deployments).

    Client::list_environment_agent_secrets

    List all agent secrets of the environment

    GET /v1/envs/{environment_id}/agent-secrets (list_environment_agent_secrets).

    Client::list_environment_components

    List all components in the environment

    GET /v1/envs/{environment_id}/components (list_environment_components).

    Client::list_environment_domain_registrations

    List all domain registrations in the environment

    GET /v1/envs/{environment_id}/domain-registrations (list_environment_domain_registrations).

    Client::list_environment_http_api_deployments

    List http api deployment by domain in the environment

    GET /v1/envs/{environment_id}/http-api-deployments (list_environment_http_api_deployments).

    Client::list_environment_mcp_deployments

    List MCP deployments in the environment

    GET /v1/envs/{environment_id}/mcp-deployments (list_environment_mcp_deployments).

    Client::list_environment_plugin_grants

    List all environment plugin grants in the environment

    GET /v1/envs/{environment_id}/plugins (list_environment_environment_plugin_grants).

    Client::list_environment_resources

    Get all resources defined in the environment

    GET /v1/envs/{environment_id}/resources (list_environment_resources).

    Client::list_environment_retry_policies

    Get all retry policies of the environment

    GET /v1/envs/{environment_id}/retry-policies (list_environment_retry_policies).

    Client::list_environment_security_schemes

    Get all security-schemes of the environment

    GET /v1/envs/{environment_id}/security-schemes (list_environment_security_schemes).

    Client::list_environment_tool_grants

    List active tool grants in an environment

    GET /v1/envs/{environment_id}/tools (list_environment_tool_grants).

    Client::list_environment_tool_middleware_grants

    List active tool_middleware grants in an environment

    GET /v1/envs/{environment_id}/tool-middlewares (list_environment_tool_middleware_grants).

    Client::list_owned_permission_shares

    List permission shares owned by an account.

    GET /v1/accounts/{account_id}/permission-shares (list_owned_permission_shares).

    Client::list_received_permission_shares

    List permission shares targeting an account.

    GET /v1/accounts/{account_id}/received-permission-shares (list_received_permission_shares).

    Client::list_visible_environments

    async fn[T :
    Transport
    ] Client::list_visible_environments(self : Client[T], account_email? : String, app_name? : String, env_name? : String) ->
    PageEnvironmentWithDetails
    raise GolemError

    List all environments that are visible to the current user, either directly or through shares.

    GET /v1/me/visible-environments (list_visible_environments).

    Client::login_oauth2

    Acquire token with OAuth2 authorization Gets a token by authorizing with an external OAuth2 provider. Currently only github is supported.

    In the response:
    • id is the identifier of the token itself
    • accountId is the account's identifier, can be used on the account API
    • secret is the secret key to be sent in the Authorization header as a bearer token for all the other endpoints

    POST /v1/login/oauth2 (login_oauth2).

    Client::new

    fn[T] Client::new(transport : T, base_url? : String, auth? : Auth, default_headers? :
    Headers
    , ws_dialer? : &
    WebSocketDialer
    ) -> Client[T]

    Create a new client over transport.

    Client::place_account_deletion_hold

    Place a deletion hold on an account. The holder is the account of the caller. An administrator with the override-deletion-hold permission can also place a hold for another holder. When the holder has a hold on the account already, the reason replaces the reason of that hold.

    PUT /v1/accounts/{account_id}/deletion-holds/{holder_account_id} (place_account_deletion_hold).

    Client::poll_oauth2_webflow

    Poll for OAuth2 Web Flow token This endpoint is used by clients to poll for the token after the user has authorized the application via the web flow. A given state might only be exchanged for a token once. Any further attempts to exchange the state will fail.

    GET /v1/login/oauth2/web/poll (poll_oauth2_webflow).

    Client::refresh_mcp_import_tools

    async fn[T :
    Transport
    ] Client::refresh_mcp_import_tools(self : Client[T], environment_id~ :
    UUID
    , deployment_revision~ : UInt64, import_index~ : UInt) ->
    McpImportTools
    raise GolemError

    Refresh and inspect projected tools from an import in a specific deployment. Uses the same permissions and owner quota as inspection, bypassing cached success. Upstream failure is returned explicitly rather than serving stale metadata.

    POST /v1/envs/{environment_id}/deployments/{deployment_revision}/mcp-imports/{import_index}/refresh (refresh_mcp_import_tools).

    Client::remove_account_deletion_hold

    async fn[T :
    Transport
    ] Client::remove_account_deletion_hold(self : Client[T], account_id~ :
    UUID
    , holder_account_id~ :
    UUID
    ) ->
    Json
    raise GolemError

    Remove a deletion hold from an account. The holder removes its own hold. An administrator with the override-deletion-hold permission can remove the hold of any holder. Removing a hold that does not exist succeeds.

    DELETE /v1/accounts/{account_id}/deletion-holds/{holder_account_id} (remove_account_deletion_hold).

    Client::resolve_mcp_imports

    POST /v1/envs/{environment_id}/mcp-imports/resolve (resolve_mcp_imports).

    Client::restore_environment_tool_grant

    Restore a deleted environment tool grant

    POST /v1/environment-tools/{grant_id}/restore (restore_environment_tool_grant).

    Client::restore_environment_tool_middleware_grant

    Restore a deleted environment tool_middleware grant

    POST /v1/environment-tool-middleware-grants/{grant_id}/restore (restore_environment_tool_middleware_grant).

    Client::restore_tool_middleware_release

    Restore a de-published account-owned tool_middleware release

    POST /v1/tool-middleware-releases/{release_id}/restore (restore_tool_middleware_release).

    Client::restore_tool_release

    Restore a de-published account-owned tool release

    POST /v1/tool-releases/{release_id}/restore (restore_tool_release).

    Client::resume_worker

    async fn[T :
    Transport
    ] Client::resume_worker(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String) ->
    Json
    raise GolemError

    Resume a worker

    POST /v1/components/{component_id}/workers/{agent_name}/resume (resume_worker).

    Client::revert_worker

    Revert a worker Reverts a worker by undoing either the last few invocations or the last few recorded oplog entries.

    POST /v1/components/{component_id}/workers/{agent_name}/revert (revert_worker).

    Client::revoke_card

    Revoke a card and all of its descendants.

    DELETE /v1/cards/{card_id} (revoke_card).

    Client::rollback_environment

    Rollback an environment to a previous deployment

    PUT /v1/envs/{environment_id}/current-deployment (rollback_environment).

    Client::set_account_admin_resource_grant

    Grant an account additional resources. This operation requires an administrator token. Promotional grants require a future expiry. Grants do not change the account's paid-overage consent.

    PUT /v1/accounts/{account_id}/resource-grants/{dimension} (set_account_admin_resource_grant).

    Client::set_account_max_memory_override

    Set the maximum linear memory per agent for the authenticated account owner.

    PUT /v1/accounts/{account_id}/resource-overrides/max-memory-per-agent (set_account_max_memory_override).

    Client::set_account_monthly_usage_mode

    Explicitly enter or leave paid-overage mode. Only the account owner can enable overage, and the current Plan Row must permit it. Administrators impersonating the account may force hardLimit, but cannot enable overage. Each successful transition records immutable consent history. Requests that repeat the current mode are rejected and do not add history.

    PUT /v1/accounts/{account_id}/monthly-usage-mode (set_account_monthly_usage_mode).

    Client::set_account_plan

    Set the plan of an account

    PUT /v1/accounts/{account_id}/plan (set_account_plan).

    Client::set_account_storage_override

    Set a storage-per-agent override for the authenticated account owner.

    PUT /v1/accounts/{account_id}/resource-overrides/max-storage-per-agent (set_account_storage_override).

    Client::start_oauth2_webflow

    Initiate OAuth2 Web Flow Starts the OAuth2 web flow. Two flow kinds are supported:

    • browser: The callback will immediately redirect to the given URL with the Golem token secret appended as a token query parameter. Intended for browser-based frontends.

    • cli: The callback stores the token in the session. The client polls the poll endpoint with the returned state id to retrieve the token once available. Intended for CLI tools and headless environments.

    POST /v1/login/oauth2/web/authorize (start_oauth2_webflow).

    Client::submit_oauth2_webflow_callback

    async fn[T :
    Transport
    ] Client::submit_oauth2_webflow_callback(self : Client[T], code~ : String, state~ :
    UUID
    ) -> SubmitOauth2WebflowCallbackResponse raise GolemError

    OAuth2 Web Flow callback This endpoint handles the callback from the provider after the user has authorized the application. It exchanges the code for an access token and then uses that to log the user in.

    GET /v1/login/oauth2/web/callback (submit_oauth2_webflow_callback).

    Client::update_account

    Update account Allows the user to change mutable account details such as name.

    The account email is immutable after account creation.

    Changing the planId is not allowed and the request will be rejected. The response is the updated account data.

    PATCH /v1/accounts/{account_id} (update_account).

    Client::update_agent_secret

    Update agent secret

    PATCH /v1/agent-secrets/{agent_secret_id} (update_agent_secret).

    Client::update_application

    Update application by id.

    PATCH /v1/apps/{application_id} (update_application).

    Client::update_component

    async fn[T :
    Transport
    ] Client::update_component(self : Client[T], component_id~ :
    UUID
    , metadata~ :
    ComponentUpdate
    , new_component_wasm? : Bytes, new_component_wasm_filename? : String, new_files? : Bytes, new_files_filename? : String) ->
    ComponentDto
    raise GolemError

    Update a component The request body is encoded as multipart/form-data containing metadata and the WASM binary.

    PATCH /v1/components/{component_id} (update_component).

    Client::update_environment

    Update environment by id.

    PATCH /v1/envs/{environment_id} (update_environment).

    Client::update_http_api_deployment

    Update an api-deployment

    PATCH /v1/http-api-deployments/{http_api_deployment_id} (update_http_api_deployment).

    Client::update_mcp_deployment

    Update MCP deployment

    PATCH /v1/mcp-deployments/{mcp_deployment_id} (update_mcp_deployment).

    Client::update_permission_share

    Update permission share data.

    PATCH /v1/permission-shares/{permission_share_id} (update_permission_share).

    Client::update_resource

    Update a resource

    PATCH /v1/resources/{resource_id} (update_resource).

    Client::update_retry_policy

    Update retry policy

    PATCH /v1/retry-policies/{retry_policy_id} (update_retry_policy).

    Client::update_security_scheme

    Update security scheme

    PATCH /v1/security-schemes/{security_scheme_id} (update_security_scheme).

    Client::update_worker

    Update a worker

    POST /v1/components/{component_id}/workers/{agent_name}/update (update_worker).

    Client::upload_environment_initial_agent_file

    async fn[T :
    Transport
    ] Client::upload_environment_initial_agent_file(self : Client[T], environment_id~ :
    UUID
    , file~ : Bytes, file_filename? : String) ->
    InitialAgentFileUpload
    raise GolemError

    Upload a content-addressed initial agent file for deployment in this environment

    POST /v1/envs/{environment_id}/initial-agent-files (upload_environment_initial_agent_file).

    Client::validate_environment_tool_middlewares

    Validate environment tool_middleware grants and publications without changing them

    POST /v1/envs/{environment_id}/tool-middlewares/validate (validate_environment_tool_middlewares).

    Client::validate_environment_tools

    Validate environment tool grants and publications without changing them

    POST /v1/envs/{environment_id}/tools/validate (validate_environment_tools).

    Client::version

    GET /version (version).

    Client::with_auth

    fn[T] Client::with_auth(self : Client[T], auth : Auth) -> Client[T]

    Return a copy of this client with updated authentication credentials.

    Client::with_base_url

    fn[T] Client::with_base_url(self : Client[T], base_url : String) -> Client[T]

    Return a copy of this client targeting a different base_url.

    Client::with_config

    fn[T] Client::with_config(transport : T, config : ClientConfig, ws_dialer? : &
    WebSocketDialer
    ) -> Client[T]

    Create a new client from an explicit ClientConfig.

    Client::worker_connect

    async fn[T :
    Transport
    ] Client::worker_connect(self : Client[T], component_id~ :
    UUID
    , agent_name~ : String, protocols? : Array[String]) -> &
    WsConn
    raise GolemError

    Connect to a worker using a websocket and stream events

    GET /v1/components/{component_id}/workers/{agent_name}/connect (worker_connect).

    ClientConfig

    pub(all) struct ClientConfig {
    base_url : String
    auth : Auth
    default_headers :
    Headers

    } derive(Eq,
    Debug
    )

    Configuration shared by all operations on a client instance.

    ClientConfig::new

    fn ClientConfig::new(base_url? : String, auth? : Auth, default_headers? :
    Headers
    ) -> ClientConfig

    Construct a ClientConfig with defaults from the OpenAPI spec.

    PollOauth2WebflowResult

    Success responses for poll_oauth2_webflow.

    SubmitOauth2WebflowCallbackResponse

    pub(all) struct SubmitOauth2WebflowCallbackResponse {
    body :
    Json

    location : String
    } derive(Eq,
    Debug
    )

    Response wrapper including declared response headers.