KaryaClientImpl

class KaryaClientImpl(httpClient: HttpClient, json: Json) : Client

Implementation of the Client interface using Ktor HTTP client.

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, json: Json)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun cancelPlan(planId: UUID): Plan

Cancels a plan by its ID.

Link copied to clipboard
open suspend override fun close()

Closes the HTTP client.

Link copied to clipboard
open suspend override fun createUser(request: CreateUserRequest): User

Creates a new user.

Link copied to clipboard
open suspend override fun getPlan(planId: UUID): GetPlanResponse

Retrieves a plan by its ID.

Link copied to clipboard
open suspend override fun getSummary(planId: UUID): GetSummaryResponse

Retrieves the summary of a plan by its ID.

Link copied to clipboard
open suspend override fun getUser(username: String): User

Retrieves a user by username.

Link copied to clipboard
open suspend override fun listPlans(userId: UUID, page: Long): ListPlansResponse

Retrieves a list of plans for a user with pagination.

Link copied to clipboard
open suspend override fun submitPlan(request: SubmitPlanRequest): Plan

Submits a new plan.

Link copied to clipboard
open suspend override fun updatePlan(request: UpdatePlanRequest): Plan

Updates an existing plan.