MoonBit client for the Golem Cloud v1.6.4 REST & WebSocket API.
moon add vigoo/golem_client///|
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")
}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
}pub(open) trait AgentClient {
async fn invoke_agent(self : Self, body~ : AgentInvocationRequest, idempotency_key? : String) -> AgentInvocationResult raise GolemError
async fn invoke_tool(self : Self, body~ : NativeToolInvocationRequest, idempotency_key? : String) -> NativeToolInvocationResponse raise GolemError
async fn describe_tool(self : Self, body~ : NativeToolDescribeRequest) -> NativeToolDefinition raise GolemError
async fn invoke_agent_session(self : Self, sec_web_socket_protocol~ : String, protocols? : Array[String]) -> &WsConn raise GolemError
async fn create_agent(self : Self, body~ : CreateAgentRequest) -> CreateAgentResponse raise GolemError
}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
}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
}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
}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
}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
}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
}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
}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
}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
}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
}pub(open) trait EnvironmentToolGrantsClient {
async fn list_environment_tool_grants(self : Self, environment_id~ : UUID) -> PageEnvironmentToolGrantWithDetails raise GolemError
async fn create_environment_tool_grant(self : Self, environment_id~ : UUID, body~ : EnvironmentToolGrantCreation) -> EnvironmentToolGrantWithDetails raise GolemError
async fn validate_environment_tools(self : Self, environment_id~ : UUID, body~ : EnvironmentToolValidation) -> EnvironmentToolValidationResult raise GolemError
async fn get_environment_tool_grant(self : Self, grant_id~ : UUID) -> EnvironmentToolGrantWithDetails raise GolemError
async fn delete_environment_tool_grant(self : Self, grant_id~ : UUID, body~ : EnvironmentToolGrantDeletion) -> Unit raise GolemError
async fn restore_environment_tool_grant(self : Self, grant_id~ : UUID) -> EnvironmentToolGrantWithDetails raise GolemError
}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
}pub(open) trait HealthCheckClient {
async fn healthcheck(self : Self) -> Json raise GolemError
async fn version(self : Self) -> VersionInfo raise GolemError
}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
}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
}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
}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
}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
}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
}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
}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
}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
}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
}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
}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
}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)pub struct Client[T] {
// private fields
}impl AccountClient for Client[T]async fn[T : Transport] clear_account_admin_resource_grant(self : Client[T], account_id~ : UUID, dimension~ : AdminResourceGrantDimension) -> ClearedAdminResourceGrantChange raise GolemErrorasync fn[T : Transport] clear_account_max_memory_override(self : Client[T], account_id~ : UUID) -> MemoryLimit raise GolemErrorasync fn[T : Transport] clear_account_storage_override(self : Client[T], account_id~ : UUID) -> StorageLimit raise GolemErrorasync fn[T : Transport] create_account(self : Client[T], body~ : AccountCreation) -> Account raise GolemErrorasync fn[T : Transport] create_impersonation_token(self : Client[T], account_id~ : UUID, body~ : TokenCreation) -> TokenWithSecret raise GolemErrorasync fn[T : Transport] delete_account(self : Client[T], account_id~ : UUID, current_revision~ : UInt64) -> Json raise GolemErrorasync fn[T : Transport] get_account(self : Client[T], account_id~ : UUID) -> Account raise GolemErrorasync fn[T : Transport] get_account_by_email(self : Client[T], account_email~ : String) -> Account raise GolemErrorasync fn[T : Transport] get_account_limits(self : Client[T], account_id~ : UUID) -> AccountResourcePolicy raise GolemErrorasync fn[T : Transport] get_account_plan(self : Client[T], account_id~ : UUID) -> Plan raise GolemErrorasync fn[T : Transport] get_account_usage(self : Client[T], account_id~ : UUID, period? : String) -> AccountUsage raise GolemErrorasync fn[T : Transport] get_account_usage_history(self : Client[T], account_id~ : UUID, last? : UInt64) -> Array[AccountUsage] raise GolemErrorasync fn[T : Transport] list_account_deletion_holds(self : Client[T], account_id~ : UUID) -> PageAccountDeletionHold raise GolemErrorasync fn[T : Transport] place_account_deletion_hold(self : Client[T], account_id~ : UUID, holder_account_id~ : UUID, body~ : AccountDeletionHoldCreation) -> AccountDeletionHold raise GolemErrorasync fn[T : Transport] set_account_admin_resource_grant(self : Client[T], account_id~ : UUID, dimension~ : AdminResourceGrantDimension, body~ : SetAdminResourceGrant) -> AdminResourceGrantChange raise GolemErrorasync fn[T : Transport] set_account_max_memory_override(self : Client[T], account_id~ : UUID, body~ : SetMemoryLimit) -> MemoryLimit raise GolemErrorasync fn[T : Transport] set_account_monthly_usage_mode(self : Client[T], account_id~ : UUID, body~ : SetMonthlyUsageMode) -> MonthlyUsageModeTransition raise GolemErrorasync fn[T : Transport] set_account_plan(self : Client[T], account_id~ : UUID, body~ : AccountSetPlan) -> Account raise GolemErrorasync fn[T : Transport] set_account_storage_override(self : Client[T], account_id~ : UUID, body~ : SetStorageLimit) -> StorageLimit raise GolemErrorasync fn[T : Transport] update_account(self : Client[T], account_id~ : UUID, body~ : AccountUpdate) -> Account raise GolemErrorimpl AgentClient for Client[T]async fn[T : Transport] create_agent(self : Client[T], body~ : CreateAgentRequest) -> CreateAgentResponse raise GolemErrorasync fn[T : Transport] describe_tool(self : Client[T], body~ : NativeToolDescribeRequest) -> NativeToolDefinition raise GolemErrorasync fn[T : Transport] invoke_agent(self : Client[T], body~ : AgentInvocationRequest, idempotency_key? : String) -> AgentInvocationResult raise GolemErrorasync fn[T : Transport] invoke_agent_session(self : Client[T], sec_web_socket_protocol~ : String, protocols? : Array[String]) -> &WsConn raise GolemErrorasync fn[T : Transport] invoke_tool(self : Client[T], body~ : NativeToolInvocationRequest, idempotency_key? : String) -> NativeToolInvocationResponse raise GolemErrorimpl AgentSecretsClient for Client[T]async fn[T : Transport] create_agent_secret(self : Client[T], environment_id~ : UUID, body~ : AgentSecretCreation) -> AgentSecretDto raise GolemErrorasync fn[T : Transport] delete_agent_secret(self : Client[T], agent_secret_id~ : UUID, current_revision~ : UInt64) -> AgentSecretDto raise GolemErrorasync fn[T : Transport] get_agent_secret(self : Client[T], agent_secret_id~ : UUID) -> AgentSecretDto raise GolemErrorasync fn[T : Transport] get_environment_agent_secret(self : Client[T], environment_id~ : UUID, path~ : Array[String]) -> AgentSecretDto raise GolemErrorasync fn[T : Transport] list_environment_agent_secrets(self : Client[T], environment_id~ : UUID) -> PageAgentSecretDto raise GolemErrorasync fn[T : Transport] update_agent_secret(self : Client[T], agent_secret_id~ : UUID, body~ : AgentSecretUpdate) -> AgentSecretDto raise GolemErrorimpl ApiDeploymentClient for Client[T]async fn[T : Transport] create_http_api_deployment(self : Client[T], environment_id~ : UUID, body~ : HttpApiDeploymentCreation) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] delete_http_api_deployment(self : Client[T], http_api_deployment_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] get_deployment_http_api_deployment(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, domain~ : String) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] get_environment_http_api_deployment(self : Client[T], environment_id~ : UUID, domain~ : String) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] get_http_api_deployment(self : Client[T], http_api_deployment_id~ : UUID) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] get_http_api_deployment_revision(self : Client[T], http_api_deployment_id~ : UUID, revision~ : UInt64) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] list_deployment_http_api_deployments(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64) -> PageHttpApiDeployment raise GolemErrorasync fn[T : Transport] list_environment_http_api_deployments(self : Client[T], environment_id~ : UUID) -> PageHttpApiDeployment raise GolemErrorasync fn[T : Transport] update_http_api_deployment(self : Client[T], http_api_deployment_id~ : UUID, body~ : HttpApiDeploymentUpdate) -> HttpApiDeployment raise GolemErrorimpl ApiDomainClient for Client[T]async fn[T : Transport] create_domain_registration(self : Client[T], environment_id~ : UUID, body~ : DomainRegistrationCreation) -> DomainRegistration raise GolemErrorasync fn[T : Transport] delete_domain_registration(self : Client[T], domain_registration_id~ : UUID) -> Unit raise GolemErrorasync fn[T : Transport] get_domain_registration(self : Client[T], domain_registration_id~ : UUID) -> DomainRegistration raise GolemErrorasync fn[T : Transport] get_environment_domain_registration(self : Client[T], environment_id~ : UUID, domain~ : String) -> DomainRegistration raise GolemErrorasync fn[T : Transport] list_environment_domain_registrations(self : Client[T], environment_id~ : UUID) -> PageDomainRegistration raise GolemErrorimpl ApiSecurityClient for Client[T]async fn[T : Transport] create_security_scheme(self : Client[T], environment_id~ : UUID, body~ : SecuritySchemeCreation) -> SecuritySchemeDto raise GolemErrorasync fn[T : Transport] delete_security_scheme(self : Client[T], security_scheme_id~ : UUID, current_revision~ : UInt64) -> SecuritySchemeDto raise GolemErrorasync fn[T : Transport] get_environment_security_scheme(self : Client[T], environment_id~ : UUID, security_scheme_name~ : String) -> SecuritySchemeDto raise GolemErrorasync fn[T : Transport] get_security_scheme(self : Client[T], security_scheme_id~ : UUID) -> SecuritySchemeDto raise GolemErrorasync fn[T : Transport] list_environment_security_schemes(self : Client[T], environment_id~ : UUID) -> PageSecuritySchemeDto raise GolemErrorasync fn[T : Transport] update_security_scheme(self : Client[T], security_scheme_id~ : UUID, body~ : SecuritySchemeUpdate) -> SecuritySchemeDto raise GolemErrorimpl ApplicationClient for Client[T]async fn[T : Transport] create_application(self : Client[T], account_id~ : UUID, body~ : ApplicationCreation) -> Application raise GolemErrorasync fn[T : Transport] create_environment(self : Client[T], application_id~ : UUID, body~ : EnvironmentCreation) -> Environment raise GolemErrorasync fn[T : Transport] delete_application(self : Client[T], application_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] get_account_application(self : Client[T], account_id~ : UUID, application_name~ : String) -> Application raise GolemErrorasync fn[T : Transport] get_application(self : Client[T], application_id~ : UUID) -> Application raise GolemErrorasync fn[T : Transport] get_application_environment(self : Client[T], application_id~ : UUID, environment_name~ : String) -> Environment raise GolemErrorasync fn[T : Transport] list_account_applications(self : Client[T], account_id~ : UUID) -> PageApplication raise GolemErrorasync fn[T : Transport] list_application_environments(self : Client[T], application_id~ : UUID) -> PageEnvironment raise GolemErrorasync fn[T : Transport] update_application(self : Client[T], application_id~ : UUID, body~ : ApplicationUpdate) -> Application raise GolemErrorimpl CardClient for Client[T]async fn[T : Transport] 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 GolemErrorasync fn[T : Transport] revoke_card(self : Client[T], card_id~ : UUID) -> RevokedCardsResponse raise GolemErrorimpl ComponentClient for Client[T]async fn[T : Transport] create_component(self : Client[T], environment_id~ : UUID, metadata~ : ComponentCreation, component_wasm~ : Bytes, component_wasm_filename? : String, files? : Bytes, files_filename? : String) -> ComponentDto raise GolemErrorasync fn[T : Transport] delete_component(self : Client[T], component_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] get_component(self : Client[T], component_id~ : UUID) -> ComponentDto raise GolemErrorasync fn[T : Transport] get_component_revision(self : Client[T], component_id~ : UUID, revision~ : UInt64) -> ComponentDto raise GolemErrorasync fn[T : Transport] get_component_wasm(self : Client[T], component_id~ : UUID, revision~ : UInt64) -> Bytes raise GolemErrorasync fn[T : Transport] get_deployment_component(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, component_name~ : String) -> ComponentDto raise GolemErrorasync fn[T : Transport] get_environment_component(self : Client[T], environment_id~ : UUID, component_name~ : String) -> ComponentDto raise GolemErrorasync fn[T : Transport] list_deployment_components(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64) -> PageComponentDto raise GolemErrorasync fn[T : Transport] list_environment_components(self : Client[T], environment_id~ : UUID) -> PageComponentDto raise GolemErrorasync fn[T : Transport] 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 GolemErrorimpl DeploymentClient for Client[T]async fn[T : Transport] authorize_mcp_import(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt) -> McpImportAuthorization raise GolemErrorasync fn[T : Transport] complete_mcp_import_authorization(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt, body~ : McpImportOAuthCallback) -> McpImportOAuthStatus raise GolemErrorasync fn[T : Transport] deploy_environment(self : Client[T], environment_id~ : UUID, body~ : DeploymentCreation) -> CurrentDeployment raise GolemErrorasync fn[T : Transport] disconnect_mcp_import(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt) -> McpImportOAuthStatus raise GolemErrorasync fn[T : Transport] get_mcp_import_authorization_status(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt) -> McpImportOAuthStatus raise GolemErrorasync fn[T : Transport] get_mcp_import_tools(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt) -> McpImportTools raise GolemErrorasync fn[T : Transport] list_deployments(self : Client[T], environment_id~ : UUID, version? : String) -> PageDeployment raise GolemErrorasync fn[T : Transport] refresh_mcp_import_tools(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt) -> McpImportTools raise GolemErrorasync fn[T : Transport] rollback_environment(self : Client[T], environment_id~ : UUID, body~ : DeploymentRollback) -> CurrentDeployment raise GolemErrorimpl EnvironmentClient for Client[T]async fn[T : Transport] authorize_declared_mcp_import(self : Client[T], environment_id~ : UUID, body~ : DeclaredMcpImportOAuthRequest) -> DeclaredMcpImportAuthorization raise GolemErrorasync fn[T : Transport] complete_declared_mcp_import_authorization(self : Client[T], environment_id~ : UUID, body~ : CompleteDeclaredMcpImportOAuthRequest) -> DeclaredMcpImportOAuthStatus raise GolemErrorasync fn[T : Transport] delete_environment(self : Client[T], environment_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] disconnect_declared_mcp_import(self : Client[T], environment_id~ : UUID, body~ : DeclaredMcpImportOAuthRequest) -> DeclaredMcpImportOAuthStatus raise GolemErrorasync fn[T : Transport] get_declared_mcp_import_authorization_status(self : Client[T], environment_id~ : UUID, body~ : DeclaredMcpImportOAuthRequest) -> DeclaredMcpImportOAuthStatus raise GolemErrorasync fn[T : Transport] get_deployment_agent_type(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64, agent_type_name~ : String) -> DeployedRegisteredAgentType raise GolemErrorasync fn[T : Transport] get_deployment_registered_tool(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64, tool_name~ : String) -> DeployedRegisteredTool raise GolemErrorasync fn[T : Transport] get_deployment_registered_tool_middleware(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64, middleware_name~ : String) -> RegisteredToolMiddleware raise GolemErrorasync fn[T : Transport] get_deployment_summary(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64) -> DeploymentSummary raise GolemErrorasync fn[T : Transport] get_environment(self : Client[T], environment_id~ : UUID) -> Environment raise GolemErrorasync fn[T : Transport] get_environment_deployment_plan(self : Client[T], environment_id~ : UUID) -> DeploymentPlan raise GolemErrorasync fn[T : Transport] list_deployment_agent_types(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64) -> PageDeployedRegisteredAgentType raise GolemErrorasync fn[T : Transport] list_deployment_registered_tool_middlewares(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64) -> PageRegisteredToolMiddleware raise GolemErrorasync fn[T : Transport] list_deployment_registered_tools(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64) -> PageDeployedRegisteredTool raise GolemErrorasync fn[T : Transport] resolve_mcp_imports(self : Client[T], environment_id~ : UUID, body~ : McpImportResolutionRequest) -> McpImportResolution raise GolemErrorasync fn[T : Transport] update_environment(self : Client[T], environment_id~ : UUID, body~ : EnvironmentUpdate) -> Environment raise GolemErrorasync fn[T : Transport] upload_environment_initial_agent_file(self : Client[T], environment_id~ : UUID, file~ : Bytes, file_filename? : String) -> InitialAgentFileUpload raise GolemErrorimpl EnvironmentPluginGrantsClient for Client[T]async fn[T : Transport] create_environment_plugin_grant(self : Client[T], environment_id~ : UUID, body~ : EnvironmentPluginGrantCreation) -> EnvironmentPluginGrant raise GolemErrorasync fn[T : Transport] delete_environment_plugin_grant(self : Client[T], environment_plugin_grant_id~ : UUID) -> Unit raise GolemErrorasync fn[T : Transport] get_environment_plugin_grant(self : Client[T], environment_plugin_grant_id~ : UUID) -> EnvironmentPluginGrantWithDetails raise GolemErrorasync fn[T : Transport] list_environment_plugin_grants(self : Client[T], environment_id~ : UUID) -> PageEnvironmentPluginGrantWithDetails raise GolemErrorimpl EnvironmentToolGrantsClient for Client[T]async fn[T : Transport] create_environment_tool_grant(self : Client[T], environment_id~ : UUID, body~ : EnvironmentToolGrantCreation) -> EnvironmentToolGrantWithDetails raise GolemErrorasync fn[T : Transport] delete_environment_tool_grant(self : Client[T], grant_id~ : UUID, body~ : EnvironmentToolGrantDeletion) -> Unit raise GolemErrorasync fn[T : Transport] get_environment_tool_grant(self : Client[T], grant_id~ : UUID) -> EnvironmentToolGrantWithDetails raise GolemErrorasync fn[T : Transport] list_environment_tool_grants(self : Client[T], environment_id~ : UUID) -> PageEnvironmentToolGrantWithDetails raise GolemErrorasync fn[T : Transport] restore_environment_tool_grant(self : Client[T], grant_id~ : UUID) -> EnvironmentToolGrantWithDetails raise GolemErrorasync fn[T : Transport] validate_environment_tools(self : Client[T], environment_id~ : UUID, body~ : EnvironmentToolValidation) -> EnvironmentToolValidationResult raise GolemErrorimpl EnvironmentToolMiddlewareGrantsClient for Client[T]async fn[T : Transport] create_environment_tool_middleware_grant(self : Client[T], environment_id~ : UUID, body~ : EnvironmentToolMiddlewareGrantCreation) -> EnvironmentToolMiddlewareGrantWithDetails raise GolemErrorasync fn[T : Transport] delete_environment_tool_middleware_grant(self : Client[T], grant_id~ : UUID, body~ : EnvironmentToolMiddlewareGrantDeletion) -> Unit raise GolemErrorasync fn[T : Transport] get_environment_tool_middleware_grant(self : Client[T], grant_id~ : UUID) -> EnvironmentToolMiddlewareGrantWithDetails raise GolemErrorasync fn[T : Transport] list_environment_tool_middleware_grants(self : Client[T], environment_id~ : UUID) -> PageEnvironmentToolMiddlewareGrantWithDetails raise GolemErrorasync fn[T : Transport] restore_environment_tool_middleware_grant(self : Client[T], grant_id~ : UUID) -> EnvironmentToolMiddlewareGrantWithDetails raise GolemErrorasync fn[T : Transport] validate_environment_tool_middlewares(self : Client[T], environment_id~ : UUID, body~ : EnvironmentToolMiddlewareValidation) -> EnvironmentToolMiddlewareValidationResult raise GolemErrorimpl HealthCheckClient for Client[T]impl LoginClient for Client[T]async fn[T : Transport] login_oauth2(self : Client[T], body~ : OAuth2Login) -> TokenWithSecret raise GolemErrorasync fn[T : Transport] poll_oauth2_webflow(self : Client[T], state~ : UUID) -> PollOauth2WebflowResult raise GolemErrorasync fn[T : Transport] start_oauth2_webflow(self : Client[T], body~ : OAuth2WebflowStart) -> OAuth2WebflowData raise GolemErrorasync fn[T : Transport] submit_oauth2_webflow_callback(self : Client[T], code~ : String, state~ : UUID) -> SubmitOauth2WebflowCallbackResponse raise GolemErrorimpl McpDeploymentClient for Client[T]async fn[T : Transport] create_mcp_deployment(self : Client[T], environment_id~ : UUID, body~ : McpDeploymentCreation) -> McpDeployment raise GolemErrorasync fn[T : Transport] delete_mcp_deployment(self : Client[T], mcp_deployment_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] get_deployment_mcp_deployment(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, domain~ : String) -> McpDeployment raise GolemErrorasync fn[T : Transport] get_environment_mcp_deployment(self : Client[T], environment_id~ : UUID, domain~ : String) -> McpDeployment raise GolemErrorasync fn[T : Transport] get_mcp_deployment(self : Client[T], mcp_deployment_id~ : UUID) -> McpDeployment raise GolemErrorasync fn[T : Transport] get_mcp_deployment_revision(self : Client[T], mcp_deployment_id~ : UUID, revision~ : UInt64) -> McpDeployment raise GolemErrorasync fn[T : Transport] list_deployment_mcp_deployments(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64) -> PageMcpDeployment raise GolemErrorasync fn[T : Transport] list_environment_mcp_deployments(self : Client[T], environment_id~ : UUID) -> PageMcpDeployment raise GolemErrorasync fn[T : Transport] update_mcp_deployment(self : Client[T], mcp_deployment_id~ : UUID, body~ : McpDeploymentUpdate) -> McpDeployment raise GolemErrorasync fn[T : Transport] list_visible_environments(self : Client[T], account_email? : String, app_name? : String, env_name? : String) -> PageEnvironmentWithDetails raise GolemErrorimpl PluginClient for Client[T]async fn[T : Transport] create_plugin(self : Client[T], account_id~ : UUID, body~ : PluginRegistrationCreation) -> PluginRegistrationDto raise GolemErrorasync fn[T : Transport] delete_plugin(self : Client[T], plugin_id~ : UUID) -> PluginRegistrationDto raise GolemErrorasync fn[T : Transport] get_account_plugin(self : Client[T], account_id~ : UUID, plugin_name~ : String, plugin_version~ : String) -> PluginRegistrationDto raise GolemErrorasync fn[T : Transport] get_account_plugin_by_email(self : Client[T], account_email~ : String, plugin_name~ : String, plugin_version~ : String) -> PluginRegistrationDto raise GolemErrorasync fn[T : Transport] get_plugin_by_id(self : Client[T], plugin_id~ : UUID) -> PluginRegistrationDto raise GolemErrorasync fn[T : Transport] list_account_plugins(self : Client[T], account_id~ : UUID) -> PagePluginRegistrationDto raise GolemErrorimpl ReportsClient for Client[T]async fn[T : Transport] get_account_count_report(self : Client[T]) -> AccountCountsReport raise GolemErrorasync fn[T : Transport] get_account_summaries_report(self : Client[T]) -> PageAccountSummaryReport raise GolemErrorimpl ResourcesClient for Client[T]async fn[T : Transport] create_resource(self : Client[T], environment_id~ : UUID, body~ : ResourceDefinitionCreation) -> ResourceDefinition raise GolemErrorasync fn[T : Transport] delete_resource(self : Client[T], resource_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] get_environment_resource(self : Client[T], environment_id~ : UUID, resource_name~ : String) -> ResourceDefinition raise GolemErrorasync fn[T : Transport] get_resource(self : Client[T], resource_id~ : UUID) -> ResourceDefinition raise GolemErrorasync fn[T : Transport] get_resource_revision(self : Client[T], resource_id~ : UUID, revision~ : UInt64) -> ResourceDefinition raise GolemErrorasync fn[T : Transport] list_environment_resources(self : Client[T], environment_id~ : UUID) -> PageResourceDefinition raise GolemErrorasync fn[T : Transport] update_resource(self : Client[T], resource_id~ : UUID, body~ : ResourceDefinitionUpdate) -> ResourceDefinition raise GolemErrorimpl RetryPoliciesClient for Client[T]async fn[T : Transport] create_retry_policy(self : Client[T], environment_id~ : UUID, body~ : RetryPolicyCreation) -> RetryPolicyDto raise GolemErrorasync fn[T : Transport] delete_retry_policy(self : Client[T], retry_policy_id~ : UUID, current_revision~ : UInt64) -> RetryPolicyDto raise GolemErrorasync fn[T : Transport] get_environment_retry_policy(self : Client[T], environment_id~ : UUID, retry_policy_name~ : String) -> RetryPolicyDto raise GolemErrorasync fn[T : Transport] get_retry_policy(self : Client[T], retry_policy_id~ : UUID) -> RetryPolicyDto raise GolemErrorasync fn[T : Transport] list_environment_retry_policies(self : Client[T], environment_id~ : UUID) -> PageRetryPolicyDto raise GolemErrorasync fn[T : Transport] update_retry_policy(self : Client[T], retry_policy_id~ : UUID, body~ : RetryPolicyUpdate) -> RetryPolicyDto raise GolemErrorimpl TokenClient for Client[T]async fn[T : Transport] create_token(self : Client[T], account_id~ : UUID, body~ : TokenCreation) -> TokenWithSecret raise GolemErrorimpl ToolMiddlewareReleasesClient for Client[T]async fn[T : Transport] depublish_tool_middleware_release(self : Client[T], release_id~ : UUID) -> ToolMiddlewareRelease raise GolemErrorasync fn[T : Transport] get_tool_middleware_release(self : Client[T], release_id~ : UUID) -> ToolMiddlewareRelease raise GolemErrorasync fn[T : Transport] list_account_tool_middleware_releases(self : Client[T], account_id~ : UUID) -> PageToolMiddlewareRelease raise GolemErrorasync fn[T : Transport] restore_tool_middleware_release(self : Client[T], release_id~ : UUID) -> ToolMiddlewareRelease raise GolemErrorimpl ToolReleasesClient for Client[T]async fn[T : Transport] depublish_tool_release(self : Client[T], release_id~ : UUID) -> ToolRelease raise GolemErrorasync fn[T : Transport] get_tool_release(self : Client[T], release_id~ : UUID) -> ToolRelease raise GolemErrorasync fn[T : Transport] list_account_tool_releases(self : Client[T], account_id~ : UUID) -> PageToolRelease raise GolemErrorasync fn[T : Transport] restore_tool_release(self : Client[T], release_id~ : UUID) -> ToolRelease raise GolemErrorimpl WorkerClient for Client[T]async fn[T : Transport] activate_plugin(self : Client[T], component_id~ : UUID, agent_name~ : String, plugin_priority~ : Int) -> Json raise GolemErrorasync fn[T : Transport] cancel_invocation(self : Client[T], component_id~ : UUID, agent_name~ : String, idempotency_key~ : String) -> CancelInvocationResponse raise GolemErrorasync fn[T : Transport] complete_promise(self : Client[T], component_id~ : UUID, agent_name~ : String, body~ : CompleteParameters) -> Bool raise GolemErrorasync fn[T : Transport] deactivate_plugin(self : Client[T], component_id~ : UUID, agent_name~ : String, plugin_priority~ : Int) -> Json raise GolemErrorasync fn[T : Transport] delete_worker(self : Client[T], component_id~ : UUID, agent_name~ : String) -> Json raise GolemErrorasync fn[T : Transport] find_workers_metadata(self : Client[T], component_id~ : UUID, body~ : WorkersMetadataRequest) -> WorkersMetadataResponse raise GolemError| Type | Comparator | Description | Example |
|---|---|---|---|
| Name | StringFilterComparator | Name of worker | { "type": "Name", "comparator": "Equal", "value": "worker-name" } |
| Version | FilterComparator | Version of worker | { "type": "Version", "comparator": "GreaterEqual", "value": 0 } |
| Status | FilterComparator | Status of worker | { "type": "Status", "comparator": "Equal", "value": "Running" } |
| Env | StringFilterComparator | Environment variable of worker | { "type": "Env", "name": "var1", "comparator": "Equal", "value": "value" } |
| CreatedAt | FilterComparator | Creation time of worker | { "type": "CreatedAt", "comparator": "Greater", "value": "2024-04-01T12:10:00Z" } |
| And | And filter combinator | { "type": "And", "filters": [ ... ] } | |
| Or | Or filter combinator | { "type": "Or", "filters": [ ... ] } | |
| Not | Negates the specified filter | { "type": "Not", "filter": { "type": "Version", "comparator": "GreaterEqual", "value": 0 } } |
async fn[T : Transport] fork_worker(self : Client[T], component_id~ : UUID, agent_name~ : String, body~ : ForkWorkerRequest) -> Json raise GolemErrorasync fn[T : Transport] get_agent_wallet(self : Client[T], component_id~ : UUID, agent_name~ : String) -> Array[StoredCard] raise GolemErrorasync fn[T : Transport] get_file_content(self : Client[T], component_id~ : UUID, agent_name~ : String, file_name~ : String) -> Bytes raise GolemErrorasync fn[T : Transport] get_files(self : Client[T], component_id~ : UUID, agent_name~ : String, file_name~ : String) -> GetFilesResponse raise GolemErrorasync fn[T : Transport] get_oplog(self : Client[T], component_id~ : UUID, agent_name~ : String, count~ : UInt64, from? : UInt64, cursor? : OplogCursor, query? : String) -> GetOplogResponse raise GolemErrorasync fn[T : Transport] get_oplog_entry(self : Client[T], component_id~ : UUID, agent_name~ : String, oplog_index~ : UInt64, component_revision? : UInt64) -> PublicOplogEntryWithIndex raise GolemErrorasync fn[T : Transport] get_worker_metadata(self : Client[T], component_id~ : UUID, agent_name~ : String) -> AgentMetadataDto raise GolemErrorasync fn[T : Transport] get_workers_metadata(self : Client[T], component_id~ : UUID, filter? : Array[String], cursor? : String, count? : UInt64, precise? : Bool) -> WorkersMetadataResponse raise GolemError| Property | Comparator | Description | Example |
|---|---|---|---|
| name | StringFilterComparator | Name of worker | name = worker-name |
| version | FilterComparator | Version of worker | version >= 0 |
| status | FilterComparator | Status of worker | status = Running |
| env.[key] | StringFilterComparator | Environment variable of worker | env.var1 = value |
| createdAt | FilterComparator | Creation time of worker | createdAt > 2024-04-01T12:10:00Z |
async fn[T : Transport] interrupt_worker(self : Client[T], component_id~ : UUID, agent_name~ : String, recovery_immediately? : Bool) -> Json raise GolemErrorasync fn[T : Transport] launch_new_worker(self : Client[T], component_id~ : UUID, body~ : AgentCreationRequest) -> WorkerCreationResponse raise GolemErrorasync fn[T : Transport] resume_worker(self : Client[T], component_id~ : UUID, agent_name~ : String) -> Json raise GolemErrorasync fn[T : Transport] revert_worker(self : Client[T], component_id~ : UUID, agent_name~ : String, body~ : RevertWorkerTarget) -> Json raise GolemErrorasync fn[T : Transport] update_worker(self : Client[T], component_id~ : UUID, agent_name~ : String, body~ : UpdateWorkerRequest) -> UpdateWorkerResponse raise GolemErrorasync fn[T : Transport] Client::authorize_declared_mcp_import(self : Client[T], environment_id~ : UUID, body~ : DeclaredMcpImportOAuthRequest) -> DeclaredMcpImportAuthorization raise GolemErrorasync fn[T : Transport] Client::authorize_mcp_import(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt) -> McpImportAuthorization raise GolemErrorasync fn[T : Transport] Client::cancel_invocation(self : Client[T], component_id~ : UUID, agent_name~ : String, idempotency_key~ : String) -> CancelInvocationResponse raise GolemErrorasync fn[T : Transport] Client::clear_account_admin_resource_grant(self : Client[T], account_id~ : UUID, dimension~ : AdminResourceGrantDimension) -> ClearedAdminResourceGrantChange raise GolemErrorasync fn[T : Transport] Client::clear_account_max_memory_override(self : Client[T], account_id~ : UUID) -> MemoryLimit raise GolemErrorasync fn[T : Transport] Client::clear_account_storage_override(self : Client[T], account_id~ : UUID) -> StorageLimit raise GolemErrorasync fn[T : Transport] Client::complete_declared_mcp_import_authorization(self : Client[T], environment_id~ : UUID, body~ : CompleteDeclaredMcpImportOAuthRequest) -> DeclaredMcpImportOAuthStatus raise GolemErrorasync fn[T : Transport] Client::complete_mcp_import_authorization(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt, body~ : McpImportOAuthCallback) -> McpImportOAuthStatus raise GolemErrorasync fn[T : Transport] Client::complete_promise(self : Client[T], component_id~ : UUID, agent_name~ : String, body~ : CompleteParameters) -> Bool raise GolemErrorasync fn[T : Transport] Client::create_account(self : Client[T], body~ : AccountCreation) -> Account raise GolemErrorasync fn[T : Transport] Client::create_agent(self : Client[T], body~ : CreateAgentRequest) -> CreateAgentResponse raise GolemErrorasync fn[T : Transport] Client::create_agent_secret(self : Client[T], environment_id~ : UUID, body~ : AgentSecretCreation) -> AgentSecretDto raise GolemErrorasync fn[T : Transport] Client::create_application(self : Client[T], account_id~ : UUID, body~ : ApplicationCreation) -> Application raise GolemErrorasync 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 GolemErrorasync fn[T : Transport] Client::create_domain_registration(self : Client[T], environment_id~ : UUID, body~ : DomainRegistrationCreation) -> DomainRegistration raise GolemErrorasync fn[T : Transport] Client::create_environment(self : Client[T], application_id~ : UUID, body~ : EnvironmentCreation) -> Environment raise GolemErrorasync fn[T : Transport] Client::create_environment_plugin_grant(self : Client[T], environment_id~ : UUID, body~ : EnvironmentPluginGrantCreation) -> EnvironmentPluginGrant raise GolemErrorasync fn[T : Transport] Client::create_environment_tool_grant(self : Client[T], environment_id~ : UUID, body~ : EnvironmentToolGrantCreation) -> EnvironmentToolGrantWithDetails raise GolemErrorasync fn[T : Transport] Client::create_environment_tool_middleware_grant(self : Client[T], environment_id~ : UUID, body~ : EnvironmentToolMiddlewareGrantCreation) -> EnvironmentToolMiddlewareGrantWithDetails raise GolemErrorasync fn[T : Transport] Client::create_http_api_deployment(self : Client[T], environment_id~ : UUID, body~ : HttpApiDeploymentCreation) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] Client::create_impersonation_token(self : Client[T], account_id~ : UUID, body~ : TokenCreation) -> TokenWithSecret raise GolemErrorasync fn[T : Transport] Client::create_mcp_deployment(self : Client[T], environment_id~ : UUID, body~ : McpDeploymentCreation) -> McpDeployment raise GolemErrorasync fn[T : Transport] Client::create_permission_share(self : Client[T], account_id~ : UUID, body~ : PermissionShareCreation) -> PermissionShare raise GolemErrorasync fn[T : Transport] Client::create_plugin(self : Client[T], account_id~ : UUID, body~ : PluginRegistrationCreation) -> PluginRegistrationDto raise GolemErrorasync fn[T : Transport] Client::create_resource(self : Client[T], environment_id~ : UUID, body~ : ResourceDefinitionCreation) -> ResourceDefinition raise GolemErrorasync fn[T : Transport] Client::create_retry_policy(self : Client[T], environment_id~ : UUID, body~ : RetryPolicyCreation) -> RetryPolicyDto raise GolemErrorasync fn[T : Transport] Client::create_security_scheme(self : Client[T], environment_id~ : UUID, body~ : SecuritySchemeCreation) -> SecuritySchemeDto raise GolemErrorasync fn[T : Transport] Client::create_token(self : Client[T], account_id~ : UUID, body~ : TokenCreation) -> TokenWithSecret raise GolemErrorasync fn[T : Transport] Client::delete_agent_secret(self : Client[T], agent_secret_id~ : UUID, current_revision~ : UInt64) -> AgentSecretDto raise GolemErrorasync fn[T : Transport] Client::delete_application(self : Client[T], application_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] Client::delete_component(self : Client[T], component_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] Client::delete_domain_registration(self : Client[T], domain_registration_id~ : UUID) -> Unit raise GolemErrorasync fn[T : Transport] Client::delete_environment(self : Client[T], environment_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] Client::delete_environment_plugin_grant(self : Client[T], environment_plugin_grant_id~ : UUID) -> Unit raise GolemErrorasync fn[T : Transport] Client::delete_environment_tool_grant(self : Client[T], grant_id~ : UUID, body~ : EnvironmentToolGrantDeletion) -> Unit raise GolemErrorasync fn[T : Transport] Client::delete_environment_tool_middleware_grant(self : Client[T], grant_id~ : UUID, body~ : EnvironmentToolMiddlewareGrantDeletion) -> Unit raise GolemErrorasync fn[T : Transport] Client::delete_http_api_deployment(self : Client[T], http_api_deployment_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] Client::delete_mcp_deployment(self : Client[T], mcp_deployment_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] Client::delete_permission_share(self : Client[T], permission_share_id~ : UUID, current_revision~ : UInt64) -> PermissionShare raise GolemErrorasync fn[T : Transport] Client::delete_plugin(self : Client[T], plugin_id~ : UUID) -> PluginRegistrationDto raise GolemErrorasync fn[T : Transport] Client::delete_resource(self : Client[T], resource_id~ : UUID, current_revision~ : UInt64) -> Unit raise GolemErrorasync fn[T : Transport] Client::delete_retry_policy(self : Client[T], retry_policy_id~ : UUID, current_revision~ : UInt64) -> RetryPolicyDto raise GolemErrorasync fn[T : Transport] Client::delete_security_scheme(self : Client[T], security_scheme_id~ : UUID, current_revision~ : UInt64) -> SecuritySchemeDto raise GolemErrorasync fn[T : Transport] Client::deploy_environment(self : Client[T], environment_id~ : UUID, body~ : DeploymentCreation) -> CurrentDeployment raise GolemErrorasync fn[T : Transport] Client::depublish_tool_middleware_release(self : Client[T], release_id~ : UUID) -> ToolMiddlewareRelease raise GolemErrorasync fn[T : Transport] Client::depublish_tool_release(self : Client[T], release_id~ : UUID) -> ToolRelease raise GolemErrorasync fn[T : Transport] Client::describe_tool(self : Client[T], body~ : NativeToolDescribeRequest) -> NativeToolDefinition raise GolemErrorasync fn[T : Transport] Client::disconnect_declared_mcp_import(self : Client[T], environment_id~ : UUID, body~ : DeclaredMcpImportOAuthRequest) -> DeclaredMcpImportOAuthStatus raise GolemErrorasync fn[T : Transport] Client::disconnect_mcp_import(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt) -> McpImportOAuthStatus raise GolemErrorasync fn[T : Transport] Client::find_workers_metadata(self : Client[T], component_id~ : UUID, body~ : WorkersMetadataRequest) -> WorkersMetadataResponse raise GolemError| Type | Comparator | Description | Example |
|---|---|---|---|
| Name | StringFilterComparator | Name of worker | { "type": "Name", "comparator": "Equal", "value": "worker-name" } |
| Version | FilterComparator | Version of worker | { "type": "Version", "comparator": "GreaterEqual", "value": 0 } |
| Status | FilterComparator | Status of worker | { "type": "Status", "comparator": "Equal", "value": "Running" } |
| Env | StringFilterComparator | Environment variable of worker | { "type": "Env", "name": "var1", "comparator": "Equal", "value": "value" } |
| CreatedAt | FilterComparator | Creation time of worker | { "type": "CreatedAt", "comparator": "Greater", "value": "2024-04-01T12:10:00Z" } |
| And | And filter combinator | { "type": "And", "filters": [ ... ] } | |
| Or | Or filter combinator | { "type": "Or", "filters": [ ... ] } | |
| Not | Negates the specified filter | { "type": "Not", "filter": { "type": "Version", "comparator": "GreaterEqual", "value": 0 } } |
async fn[T : Transport] Client::fork_worker(self : Client[T], component_id~ : UUID, agent_name~ : String, body~ : ForkWorkerRequest) -> Json raise GolemErrorasync fn[T : Transport] Client::get_account_application(self : Client[T], account_id~ : UUID, application_name~ : String) -> Application raise GolemErrorasync fn[T : Transport] Client::get_account_by_email(self : Client[T], account_email~ : String) -> Account raise GolemErrorasync fn[T : Transport] Client::get_account_count_report(self : Client[T]) -> AccountCountsReport raise GolemErrorasync fn[T : Transport] Client::get_account_limits(self : Client[T], account_id~ : UUID) -> AccountResourcePolicy raise GolemErrorasync fn[T : Transport] Client::get_account_plugin(self : Client[T], account_id~ : UUID, plugin_name~ : String, plugin_version~ : String) -> PluginRegistrationDto raise GolemErrorasync fn[T : Transport] Client::get_account_plugin_by_email(self : Client[T], account_email~ : String, plugin_name~ : String, plugin_version~ : String) -> PluginRegistrationDto raise GolemErrorasync fn[T : Transport] Client::get_account_summaries_report(self : Client[T]) -> PageAccountSummaryReport raise GolemErrorasync fn[T : Transport] Client::get_account_usage(self : Client[T], account_id~ : UUID, period? : String) -> AccountUsage raise GolemErrorasync fn[T : Transport] Client::get_account_usage_history(self : Client[T], account_id~ : UUID, last? : UInt64) -> Array[AccountUsage] raise GolemErrorasync fn[T : Transport] Client::get_agent_secret(self : Client[T], agent_secret_id~ : UUID) -> AgentSecretDto raise GolemErrorasync fn[T : Transport] Client::get_agent_wallet(self : Client[T], component_id~ : UUID, agent_name~ : String) -> Array[StoredCard] raise GolemErrorasync fn[T : Transport] Client::get_application(self : Client[T], application_id~ : UUID) -> Application raise GolemErrorasync fn[T : Transport] Client::get_application_environment(self : Client[T], application_id~ : UUID, environment_name~ : String) -> Environment raise GolemErrorasync fn[T : Transport] Client::get_card(self : Client[T], card_id~ : UUID) -> StoredCard raise GolemErrorasync fn[T : Transport] Client::get_component(self : Client[T], component_id~ : UUID) -> ComponentDto raise GolemErrorasync fn[T : Transport] Client::get_component_revision(self : Client[T], component_id~ : UUID, revision~ : UInt64) -> ComponentDto raise GolemErrorasync fn[T : Transport] Client::get_component_wasm(self : Client[T], component_id~ : UUID, revision~ : UInt64) -> Bytes raise GolemErrorasync fn[T : Transport] Client::get_declared_mcp_import_authorization_status(self : Client[T], environment_id~ : UUID, body~ : DeclaredMcpImportOAuthRequest) -> DeclaredMcpImportOAuthStatus raise GolemErrorasync fn[T : Transport] Client::get_deployment_agent_type(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64, agent_type_name~ : String) -> DeployedRegisteredAgentType raise GolemErrorasync fn[T : Transport] Client::get_deployment_component(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, component_name~ : String) -> ComponentDto raise GolemErrorasync fn[T : Transport] Client::get_deployment_http_api_deployment(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, domain~ : String) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] Client::get_deployment_mcp_deployment(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, domain~ : String) -> McpDeployment raise GolemErrorasync fn[T : Transport] Client::get_deployment_registered_tool(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64, tool_name~ : String) -> DeployedRegisteredTool raise GolemErrorasync fn[T : Transport] Client::get_deployment_registered_tool_middleware(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64, middleware_name~ : String) -> RegisteredToolMiddleware raise GolemErrorasync fn[T : Transport] Client::get_deployment_summary(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64) -> DeploymentSummary raise GolemErrorasync fn[T : Transport] Client::get_domain_registration(self : Client[T], domain_registration_id~ : UUID) -> DomainRegistration raise GolemErrorasync fn[T : Transport] Client::get_environment(self : Client[T], environment_id~ : UUID) -> Environment raise GolemErrorasync fn[T : Transport] Client::get_environment_agent_secret(self : Client[T], environment_id~ : UUID, path~ : Array[String]) -> AgentSecretDto raise GolemErrorasync fn[T : Transport] Client::get_environment_component(self : Client[T], environment_id~ : UUID, component_name~ : String) -> ComponentDto raise GolemErrorasync fn[T : Transport] Client::get_environment_deployment_plan(self : Client[T], environment_id~ : UUID) -> DeploymentPlan raise GolemErrorasync fn[T : Transport] Client::get_environment_domain_registration(self : Client[T], environment_id~ : UUID, domain~ : String) -> DomainRegistration raise GolemErrorasync fn[T : Transport] Client::get_environment_http_api_deployment(self : Client[T], environment_id~ : UUID, domain~ : String) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] Client::get_environment_mcp_deployment(self : Client[T], environment_id~ : UUID, domain~ : String) -> McpDeployment raise GolemErrorasync fn[T : Transport] Client::get_environment_plugin_grant(self : Client[T], environment_plugin_grant_id~ : UUID) -> EnvironmentPluginGrantWithDetails raise GolemErrorasync fn[T : Transport] Client::get_environment_resource(self : Client[T], environment_id~ : UUID, resource_name~ : String) -> ResourceDefinition raise GolemErrorasync fn[T : Transport] Client::get_environment_retry_policy(self : Client[T], environment_id~ : UUID, retry_policy_name~ : String) -> RetryPolicyDto raise GolemErrorasync fn[T : Transport] Client::get_environment_security_scheme(self : Client[T], environment_id~ : UUID, security_scheme_name~ : String) -> SecuritySchemeDto raise GolemErrorasync fn[T : Transport] Client::get_environment_tool_grant(self : Client[T], grant_id~ : UUID) -> EnvironmentToolGrantWithDetails raise GolemErrorasync fn[T : Transport] Client::get_environment_tool_middleware_grant(self : Client[T], grant_id~ : UUID) -> EnvironmentToolMiddlewareGrantWithDetails raise GolemErrorasync fn[T : Transport] Client::get_file_content(self : Client[T], component_id~ : UUID, agent_name~ : String, file_name~ : String) -> Bytes raise GolemErrorasync fn[T : Transport] Client::get_files(self : Client[T], component_id~ : UUID, agent_name~ : String, file_name~ : String) -> GetFilesResponse raise GolemErrorasync fn[T : Transport] Client::get_http_api_deployment(self : Client[T], http_api_deployment_id~ : UUID) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] Client::get_http_api_deployment_revision(self : Client[T], http_api_deployment_id~ : UUID, revision~ : UInt64) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] Client::get_mcp_deployment(self : Client[T], mcp_deployment_id~ : UUID) -> McpDeployment raise GolemErrorasync fn[T : Transport] Client::get_mcp_deployment_revision(self : Client[T], mcp_deployment_id~ : UUID, revision~ : UInt64) -> McpDeployment raise GolemErrorasync fn[T : Transport] Client::get_mcp_import_authorization_status(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt) -> McpImportOAuthStatus raise GolemErrorasync fn[T : Transport] Client::get_mcp_import_tools(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt) -> McpImportTools raise GolemErrorasync 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 GolemErrorasync fn[T : Transport] Client::get_oplog_entry(self : Client[T], component_id~ : UUID, agent_name~ : String, oplog_index~ : UInt64, component_revision? : UInt64) -> PublicOplogEntryWithIndex raise GolemErrorasync fn[T : Transport] Client::get_permission_share(self : Client[T], permission_share_id~ : UUID) -> PermissionShare raise GolemErrorasync fn[T : Transport] Client::get_permission_share_by_name(self : Client[T], account_id~ : UUID, name~ : String) -> PermissionShare raise GolemErrorasync fn[T : Transport] Client::get_plugin_by_id(self : Client[T], plugin_id~ : UUID) -> PluginRegistrationDto raise GolemErrorasync fn[T : Transport] Client::get_resource(self : Client[T], resource_id~ : UUID) -> ResourceDefinition raise GolemErrorasync fn[T : Transport] Client::get_resource_revision(self : Client[T], resource_id~ : UUID, revision~ : UInt64) -> ResourceDefinition raise GolemErrorasync fn[T : Transport] Client::get_retry_policy(self : Client[T], retry_policy_id~ : UUID) -> RetryPolicyDto raise GolemErrorasync fn[T : Transport] Client::get_security_scheme(self : Client[T], security_scheme_id~ : UUID) -> SecuritySchemeDto raise GolemErrorasync fn[T : Transport] Client::get_tool_middleware_release(self : Client[T], release_id~ : UUID) -> ToolMiddlewareRelease raise GolemErrorasync fn[T : Transport] Client::get_tool_release(self : Client[T], release_id~ : UUID) -> ToolRelease raise GolemErrorasync fn[T : Transport] Client::get_worker_metadata(self : Client[T], component_id~ : UUID, agent_name~ : String) -> AgentMetadataDto raise GolemErrorasync 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| Property | Comparator | Description | Example |
|---|---|---|---|
| name | StringFilterComparator | Name of worker | name = worker-name |
| version | FilterComparator | Version of worker | version >= 0 |
| status | FilterComparator | Status of worker | status = Running |
| env.[key] | StringFilterComparator | Environment variable of worker | env.var1 = value |
| createdAt | FilterComparator | Creation time of worker | createdAt > 2024-04-01T12:10:00Z |
async fn[T : Transport] Client::invoke_agent(self : Client[T], body~ : AgentInvocationRequest, idempotency_key? : String) -> AgentInvocationResult raise GolemErrorasync fn[T : Transport] Client::invoke_tool(self : Client[T], body~ : NativeToolInvocationRequest, idempotency_key? : String) -> NativeToolInvocationResponse raise GolemErrorasync fn[T : Transport] Client::launch_new_worker(self : Client[T], component_id~ : UUID, body~ : AgentCreationRequest) -> WorkerCreationResponse raise GolemErrorasync fn[T : Transport] Client::list_account_applications(self : Client[T], account_id~ : UUID) -> PageApplication raise GolemErrorasync 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 GolemErrorasync fn[T : Transport] Client::list_account_deletion_holds(self : Client[T], account_id~ : UUID) -> PageAccountDeletionHold raise GolemErrorasync fn[T : Transport] Client::list_account_plugins(self : Client[T], account_id~ : UUID) -> PagePluginRegistrationDto raise GolemErrorasync fn[T : Transport] Client::list_account_tool_middleware_releases(self : Client[T], account_id~ : UUID) -> PageToolMiddlewareRelease raise GolemErrorasync fn[T : Transport] Client::list_account_tool_releases(self : Client[T], account_id~ : UUID) -> PageToolRelease raise GolemErrorasync fn[T : Transport] Client::list_application_environments(self : Client[T], application_id~ : UUID) -> PageEnvironment raise GolemErrorasync fn[T : Transport] Client::list_deployment_agent_types(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64) -> PageDeployedRegisteredAgentType raise GolemErrorasync fn[T : Transport] Client::list_deployment_components(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64) -> PageComponentDto raise GolemErrorasync fn[T : Transport] Client::list_deployment_http_api_deployments(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64) -> PageHttpApiDeployment raise GolemErrorasync fn[T : Transport] Client::list_deployment_mcp_deployments(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64) -> PageMcpDeployment raise GolemErrorasync fn[T : Transport] Client::list_deployment_registered_tool_middlewares(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64) -> PageRegisteredToolMiddleware raise GolemErrorasync fn[T : Transport] Client::list_deployment_registered_tools(self : Client[T], environment_id~ : UUID, deployment_id~ : UInt64) -> PageDeployedRegisteredTool raise GolemErrorasync fn[T : Transport] Client::list_deployments(self : Client[T], environment_id~ : UUID, version? : String) -> PageDeployment raise GolemErrorasync fn[T : Transport] Client::list_environment_agent_secrets(self : Client[T], environment_id~ : UUID) -> PageAgentSecretDto raise GolemErrorasync fn[T : Transport] Client::list_environment_components(self : Client[T], environment_id~ : UUID) -> PageComponentDto raise GolemErrorasync fn[T : Transport] Client::list_environment_domain_registrations(self : Client[T], environment_id~ : UUID) -> PageDomainRegistration raise GolemErrorasync fn[T : Transport] Client::list_environment_http_api_deployments(self : Client[T], environment_id~ : UUID) -> PageHttpApiDeployment raise GolemErrorasync fn[T : Transport] Client::list_environment_mcp_deployments(self : Client[T], environment_id~ : UUID) -> PageMcpDeployment raise GolemErrorasync fn[T : Transport] Client::list_environment_plugin_grants(self : Client[T], environment_id~ : UUID) -> PageEnvironmentPluginGrantWithDetails raise GolemErrorasync fn[T : Transport] Client::list_environment_resources(self : Client[T], environment_id~ : UUID) -> PageResourceDefinition raise GolemErrorasync fn[T : Transport] Client::list_environment_retry_policies(self : Client[T], environment_id~ : UUID) -> PageRetryPolicyDto raise GolemErrorasync fn[T : Transport] Client::list_environment_security_schemes(self : Client[T], environment_id~ : UUID) -> PageSecuritySchemeDto raise GolemErrorasync fn[T : Transport] Client::list_environment_tool_grants(self : Client[T], environment_id~ : UUID) -> PageEnvironmentToolGrantWithDetails raise GolemErrorasync fn[T : Transport] Client::list_environment_tool_middleware_grants(self : Client[T], environment_id~ : UUID) -> PageEnvironmentToolMiddlewareGrantWithDetails raise GolemErrorasync fn[T : Transport] Client::list_owned_permission_shares(self : Client[T], account_id~ : UUID) -> PagePermissionShare raise GolemErrorasync fn[T : Transport] Client::list_received_permission_shares(self : Client[T], account_id~ : UUID) -> PagePermissionShare raise GolemErrorasync fn[T : Transport] Client::list_visible_environments(self : Client[T], account_email? : String, app_name? : String, env_name? : String) -> PageEnvironmentWithDetails raise GolemErrorasync fn[T : Transport] Client::login_oauth2(self : Client[T], body~ : OAuth2Login) -> TokenWithSecret raise GolemErrorfn[T] Client::new(transport : T, base_url? : String, auth? : Auth, default_headers? : Headers, ws_dialer? : &WebSocketDialer) -> Client[T]async fn[T : Transport] Client::place_account_deletion_hold(self : Client[T], account_id~ : UUID, holder_account_id~ : UUID, body~ : AccountDeletionHoldCreation) -> AccountDeletionHold raise GolemErrorasync fn[T : Transport] Client::poll_oauth2_webflow(self : Client[T], state~ : UUID) -> PollOauth2WebflowResult raise GolemErrorasync fn[T : Transport] Client::refresh_mcp_import_tools(self : Client[T], environment_id~ : UUID, deployment_revision~ : UInt64, import_index~ : UInt) -> McpImportTools raise GolemErrorasync fn[T : Transport] Client::resolve_mcp_imports(self : Client[T], environment_id~ : UUID, body~ : McpImportResolutionRequest) -> McpImportResolution raise GolemErrorasync fn[T : Transport] Client::restore_environment_tool_grant(self : Client[T], grant_id~ : UUID) -> EnvironmentToolGrantWithDetails raise GolemErrorasync fn[T : Transport] Client::restore_environment_tool_middleware_grant(self : Client[T], grant_id~ : UUID) -> EnvironmentToolMiddlewareGrantWithDetails raise GolemErrorasync fn[T : Transport] Client::restore_tool_middleware_release(self : Client[T], release_id~ : UUID) -> ToolMiddlewareRelease raise GolemErrorasync fn[T : Transport] Client::restore_tool_release(self : Client[T], release_id~ : UUID) -> ToolRelease raise GolemErrorasync fn[T : Transport] Client::revert_worker(self : Client[T], component_id~ : UUID, agent_name~ : String, body~ : RevertWorkerTarget) -> Json raise GolemErrorasync fn[T : Transport] Client::revoke_card(self : Client[T], card_id~ : UUID) -> RevokedCardsResponse raise GolemErrorasync fn[T : Transport] Client::rollback_environment(self : Client[T], environment_id~ : UUID, body~ : DeploymentRollback) -> CurrentDeployment raise GolemErrorasync fn[T : Transport] Client::set_account_admin_resource_grant(self : Client[T], account_id~ : UUID, dimension~ : AdminResourceGrantDimension, body~ : SetAdminResourceGrant) -> AdminResourceGrantChange raise GolemErrorasync fn[T : Transport] Client::set_account_max_memory_override(self : Client[T], account_id~ : UUID, body~ : SetMemoryLimit) -> MemoryLimit raise GolemErrorasync fn[T : Transport] Client::set_account_monthly_usage_mode(self : Client[T], account_id~ : UUID, body~ : SetMonthlyUsageMode) -> MonthlyUsageModeTransition raise GolemErrorasync fn[T : Transport] Client::set_account_plan(self : Client[T], account_id~ : UUID, body~ : AccountSetPlan) -> Account raise GolemErrorasync fn[T : Transport] Client::set_account_storage_override(self : Client[T], account_id~ : UUID, body~ : SetStorageLimit) -> StorageLimit raise GolemErrorasync fn[T : Transport] Client::start_oauth2_webflow(self : Client[T], body~ : OAuth2WebflowStart) -> OAuth2WebflowData raise GolemErrorasync fn[T : Transport] Client::submit_oauth2_webflow_callback(self : Client[T], code~ : String, state~ : UUID) -> SubmitOauth2WebflowCallbackResponse raise GolemErrorasync fn[T : Transport] Client::update_account(self : Client[T], account_id~ : UUID, body~ : AccountUpdate) -> Account raise GolemErrorasync fn[T : Transport] Client::update_agent_secret(self : Client[T], agent_secret_id~ : UUID, body~ : AgentSecretUpdate) -> AgentSecretDto raise GolemErrorasync fn[T : Transport] Client::update_application(self : Client[T], application_id~ : UUID, body~ : ApplicationUpdate) -> Application raise GolemErrorasync 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 GolemErrorasync fn[T : Transport] Client::update_environment(self : Client[T], environment_id~ : UUID, body~ : EnvironmentUpdate) -> Environment raise GolemErrorasync fn[T : Transport] Client::update_http_api_deployment(self : Client[T], http_api_deployment_id~ : UUID, body~ : HttpApiDeploymentUpdate) -> HttpApiDeployment raise GolemErrorasync fn[T : Transport] Client::update_mcp_deployment(self : Client[T], mcp_deployment_id~ : UUID, body~ : McpDeploymentUpdate) -> McpDeployment raise GolemErrorasync fn[T : Transport] Client::update_permission_share(self : Client[T], permission_share_id~ : UUID, body~ : PermissionShareUpdate) -> PermissionShare raise GolemErrorasync fn[T : Transport] Client::update_resource(self : Client[T], resource_id~ : UUID, body~ : ResourceDefinitionUpdate) -> ResourceDefinition raise GolemErrorasync fn[T : Transport] Client::update_retry_policy(self : Client[T], retry_policy_id~ : UUID, body~ : RetryPolicyUpdate) -> RetryPolicyDto raise GolemErrorasync fn[T : Transport] Client::update_security_scheme(self : Client[T], security_scheme_id~ : UUID, body~ : SecuritySchemeUpdate) -> SecuritySchemeDto raise GolemErrorasync fn[T : Transport] Client::update_worker(self : Client[T], component_id~ : UUID, agent_name~ : String, body~ : UpdateWorkerRequest) -> UpdateWorkerResponse raise GolemErrorasync fn[T : Transport] Client::upload_environment_initial_agent_file(self : Client[T], environment_id~ : UUID, file~ : Bytes, file_filename? : String) -> InitialAgentFileUpload raise GolemErrorasync fn[T : Transport] Client::validate_environment_tool_middlewares(self : Client[T], environment_id~ : UUID, body~ : EnvironmentToolMiddlewareValidation) -> EnvironmentToolMiddlewareValidationResult raise GolemErrorasync fn[T : Transport] Client::validate_environment_tools(self : Client[T], environment_id~ : UUID, body~ : EnvironmentToolValidation) -> EnvironmentToolValidationResult raise GolemErrorfn[T] Client::with_config(transport : T, config : ClientConfig, ws_dialer? : &WebSocketDialer) -> Client[T]pub(all) enum PollOauth2WebflowResult {
Status200(TokenWithSecret)
Status202(Json)
} derive(Eq, Debug)Install
Download zipMoonBit client for the Golem Cloud v1.6.4 REST & WebSocket API.