Documentation
¶
Index ¶
- type ActivateTeamInstructionsResponse
- type ActivateTeamRolesResponse
- type ActiveTaskListResponse
- type ActiveTaskSummary
- type ActiveTeamInstructionsResponse
- type ActiveTeamRolesParams
- type ActiveTeamRolesResponse
- type ClaimView
- type ClaimsResponse
- type Client
- func (c *Client) ActivateTeamInstructions(ctx context.Context, teamInstructionsID string) (*ActivateTeamInstructionsResponse, error)
- func (c *Client) ActivateTeamRoles(ctx context.Context, teamRolesID string) (*ActivateTeamRolesResponse, error)
- func (c *Client) ActiveTeamInstructions(ctx context.Context) (*ActiveTeamInstructionsResponse, error)
- func (c *Client) ActiveTeamRoles(ctx context.Context, params ActiveTeamRolesParams) (*ActiveTeamRolesResponse, error)
- func (c *Client) ClaimsList(ctx context.Context, workspaceID string, limit int) (*ClaimsResponse, error)
- func (c *Client) CoordinationStatus(ctx context.Context, workspaceID string) (*CoordinationStatusResponse, error)
- func (c *Client) CreateTeamInstructions(ctx context.Context, req *CreateTeamInstructionsRequest) (*CreateTeamInstructionsResponse, error)
- func (c *Client) CreateTeamRoles(ctx context.Context, req *CreateTeamRolesRequest) (*CreateTeamRolesResponse, error)
- func (c *Client) DeactivateTeamRoles(ctx context.Context) (*DeactivateTeamRolesResponse, error)
- func (c *Client) GetTeamInstructions(ctx context.Context, teamInstructionsID string) (*ActiveTeamInstructionsResponse, error)
- func (c *Client) PatchCurrentWorkspace(ctx context.Context, req *PatchCurrentWorkspaceRequest) (*PatchCurrentWorkspaceResponse, error)
- func (c *Client) ReservationAcquire(ctx context.Context, req *ReservationAcquireRequest) (*ReservationAcquireResponse, error)
- func (c *Client) ReservationList(ctx context.Context, prefix string) (*ReservationListResponse, error)
- func (c *Client) ReservationRelease(ctx context.Context, req *ReservationReleaseRequest) (*ReservationReleaseResponse, error)
- func (c *Client) ReservationRenew(ctx context.Context, req *ReservationRenewRequest) (*ReservationRenewResponse, error)
- func (c *Client) ReservationRevoke(ctx context.Context, req *ReservationRevokeRequest) (*ReservationRevokeResponse, error)
- func (c *Client) ResetTeamInstructions(ctx context.Context) (*ResetTeamInstructionsResponse, error)
- func (c *Client) ResetTeamRoles(ctx context.Context) (*ResetTeamRolesResponse, error)
- func (c *Client) TaskAddDep(ctx context.Context, ref string, req *TaskAddDepRequest) error
- func (c *Client) TaskCommentCreate(ctx context.Context, ref string, req *TaskCommentCreateRequest) (*TaskComment, error)
- func (c *Client) TaskCommentList(ctx context.Context, ref string) (*TaskCommentListResponse, error)
- func (c *Client) TaskCreate(ctx context.Context, req *TaskCreateRequest) (*Task, error)
- func (c *Client) TaskDelete(ctx context.Context, ref string) error
- func (c *Client) TaskGet(ctx context.Context, ref string) (*Task, error)
- func (c *Client) TaskList(ctx context.Context, params TaskListParams) (*TaskListResponse, error)
- func (c *Client) TaskListActive(ctx context.Context) (*ActiveTaskListResponse, error)
- func (c *Client) TaskListBlocked(ctx context.Context) (*TaskListResponse, error)
- func (c *Client) TaskListReady(ctx context.Context) (*TaskListResponse, error)
- func (c *Client) TaskRemoveDep(ctx context.Context, ref string, depRef string) error
- func (c *Client) TaskUpdate(ctx context.Context, ref string, req *TaskUpdateRequest) (*TaskUpdateResponse, error)
- func (c *Client) TeamInstructionsHistory(ctx context.Context, limit int) (*TeamInstructionsHistoryResponse, error)
- func (c *Client) TeamRolesHistory(ctx context.Context, limit int) (*TeamRolesHistoryResponse, error)
- func (c *Client) WorkspaceDelete(ctx context.Context, workspaceID string) (*DeleteWorkspaceResponse, error)
- func (c *Client) WorkspaceList(ctx context.Context, params WorkspaceListParams) (*WorkspaceListResponse, error)
- func (c *Client) WorkspaceTeam(ctx context.Context, params WorkspaceTeamParams) (*WorkspaceListResponse, error)
- type CoordinationAgent
- type CoordinationClaim
- type CoordinationConflict
- type CoordinationConflictClaimant
- type CoordinationReservation
- type CoordinationStatusResponse
- type CoordinationWorkspace
- type CreateTeamInstructionsRequest
- type CreateTeamInstructionsResponse
- type CreateTeamRolesRequest
- type CreateTeamRolesResponse
- type DeactivateTeamRolesResponse
- type DeleteWorkspaceResponse
- type PatchCurrentWorkspaceRequest
- type PatchCurrentWorkspaceResponse
- type ReservationAcquireRequest
- type ReservationAcquireResponse
- type ReservationHeldError
- type ReservationListResponse
- type ReservationReleaseRequest
- type ReservationReleaseResponse
- type ReservationRenewRequest
- type ReservationRenewResponse
- type ReservationRevokeRequest
- type ReservationRevokeResponse
- type ReservationView
- type ResetTeamInstructionsResponse
- type ResetTeamRolesResponse
- type RoleDefinition
- type SelectedRoleInfo
- type Task
- type TaskAddDepRequest
- type TaskComment
- type TaskCommentCreateRequest
- type TaskCommentListResponse
- type TaskCreateRequest
- type TaskDepView
- type TaskHeldError
- type TaskListParams
- type TaskListResponse
- type TaskSummary
- type TaskUpdateRequest
- type TaskUpdateResponse
- type TeamInstructionsDocument
- type TeamInstructionsHistoryItem
- type TeamInstructionsHistoryResponse
- type TeamRolesBundle
- type TeamRolesHistoryItem
- type TeamRolesHistoryResponse
- type WorkspaceClaim
- type WorkspaceInfo
- type WorkspaceListParams
- type WorkspaceListResponse
- type WorkspaceTeamParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateTeamInstructionsResponse ¶ added in v1.7.0
type ActivateTeamRolesResponse ¶ added in v1.7.0
type ActiveTaskListResponse ¶ added in v1.1.0
type ActiveTaskListResponse struct {
Tasks []ActiveTaskSummary `json:"tasks"`
}
type ActiveTaskSummary ¶ added in v1.1.0
type ActiveTaskSummary struct {
TaskID string `json:"task_id"`
TaskRef string `json:"task_ref"`
TaskNumber int `json:"task_number"`
Title string `json:"title"`
Status string `json:"status"`
Priority int `json:"priority"`
TaskType string `json:"task_type"`
AssigneeAlias *string `json:"assignee_alias"`
CreatedByAlias *string `json:"created_by_alias"`
ParentTaskID *string `json:"parent_task_id"`
Labels []string `json:"labels,omitempty"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
WorkspaceID *string `json:"workspace_id,omitempty"`
OwnerAlias *string `json:"owner_alias,omitempty"`
ClaimedAt *string `json:"claimed_at,omitempty"`
CanonicalOrigin *string `json:"canonical_origin,omitempty"`
Branch *string `json:"branch,omitempty"`
}
type ActiveTeamInstructionsResponse ¶ added in v1.7.0
type ActiveTeamInstructionsResponse struct {
TeamInstructionsID string `json:"team_instructions_id"`
ActiveTeamInstructionsID string `json:"active_team_instructions_id,omitempty"`
TeamID string `json:"team_id"`
Version int `json:"version"`
UpdatedAt string `json:"updated_at"`
Document TeamInstructionsDocument `json:"document"`
}
type ActiveTeamRolesParams ¶ added in v1.7.0
type ActiveTeamRolesResponse ¶ added in v1.7.0
type ActiveTeamRolesResponse struct {
TeamRolesID string `json:"team_roles_id"`
ActiveTeamRolesID string `json:"active_team_roles_id,omitempty"`
TeamID string `json:"team_id"`
Version int `json:"version"`
UpdatedAt string `json:"updated_at"`
Roles map[string]RoleDefinition `json:"roles"`
SelectedRole *SelectedRoleInfo `json:"selected_role,omitempty"`
Adapters map[string]any `json:"adapters,omitempty"`
}
type ClaimsResponse ¶ added in v0.29.0
type Client ¶
Client provides both protocol and coordination operations. Protocol operations are available via the embedded awid.Client. Coordination operations (workspaces, team roles, tasks, reservations, claims) are defined as methods on this type.
func NewWithCertificate ¶ added in v1.7.0
func NewWithCertificate(baseURL string, signingKey ed25519.PrivateKey, cert *awid.TeamCertificate) (*Client, error)
NewWithCertificate creates a client authenticated with DIDKey signatures and a team certificate.
func (*Client) ActivateTeamInstructions ¶ added in v1.7.0
func (*Client) ActivateTeamRoles ¶ added in v1.7.0
func (*Client) ActiveTeamInstructions ¶ added in v1.7.0
func (c *Client) ActiveTeamInstructions(ctx context.Context) (*ActiveTeamInstructionsResponse, error)
func (*Client) ActiveTeamRoles ¶ added in v1.7.0
func (c *Client) ActiveTeamRoles(ctx context.Context, params ActiveTeamRolesParams) (*ActiveTeamRolesResponse, error)
func (*Client) ClaimsList ¶ added in v0.29.0
func (*Client) CoordinationStatus ¶ added in v0.29.0
func (*Client) CreateTeamInstructions ¶ added in v1.7.0
func (c *Client) CreateTeamInstructions(ctx context.Context, req *CreateTeamInstructionsRequest) (*CreateTeamInstructionsResponse, error)
func (*Client) CreateTeamRoles ¶ added in v1.7.0
func (c *Client) CreateTeamRoles(ctx context.Context, req *CreateTeamRolesRequest) (*CreateTeamRolesResponse, error)
func (*Client) DeactivateTeamRoles ¶ added in v1.7.0
func (c *Client) DeactivateTeamRoles(ctx context.Context) (*DeactivateTeamRolesResponse, error)
func (*Client) GetTeamInstructions ¶ added in v1.7.0
func (*Client) PatchCurrentWorkspace ¶ added in v1.7.0
func (c *Client) PatchCurrentWorkspace(ctx context.Context, req *PatchCurrentWorkspaceRequest) (*PatchCurrentWorkspaceResponse, error)
func (*Client) ReservationAcquire ¶
func (c *Client) ReservationAcquire(ctx context.Context, req *ReservationAcquireRequest) (*ReservationAcquireResponse, error)
func (*Client) ReservationList ¶
func (*Client) ReservationRelease ¶
func (c *Client) ReservationRelease(ctx context.Context, req *ReservationReleaseRequest) (*ReservationReleaseResponse, error)
func (*Client) ReservationRenew ¶
func (c *Client) ReservationRenew(ctx context.Context, req *ReservationRenewRequest) (*ReservationRenewResponse, error)
func (*Client) ReservationRevoke ¶ added in v0.2.0
func (c *Client) ReservationRevoke(ctx context.Context, req *ReservationRevokeRequest) (*ReservationRevokeResponse, error)
ReservationRevoke force-releases reservations, optionally filtered by prefix.
func (*Client) ResetTeamInstructions ¶ added in v1.7.0
func (c *Client) ResetTeamInstructions(ctx context.Context) (*ResetTeamInstructionsResponse, error)
func (*Client) ResetTeamRoles ¶ added in v1.7.0
func (c *Client) ResetTeamRoles(ctx context.Context) (*ResetTeamRolesResponse, error)
func (*Client) TaskAddDep ¶ added in v0.25.0
TaskAddDep adds a dependency. Returns 422 if this would create a cycle.
func (*Client) TaskCommentCreate ¶ added in v0.25.0
func (c *Client) TaskCommentCreate(ctx context.Context, ref string, req *TaskCommentCreateRequest) (*TaskComment, error)
func (*Client) TaskCommentList ¶ added in v0.25.0
func (*Client) TaskCreate ¶ added in v0.25.0
func (*Client) TaskDelete ¶ added in v0.25.0
func (*Client) TaskList ¶ added in v0.25.0
func (c *Client) TaskList(ctx context.Context, params TaskListParams) (*TaskListResponse, error)
func (*Client) TaskListActive ¶ added in v1.1.0
func (c *Client) TaskListActive(ctx context.Context) (*ActiveTaskListResponse, error)
func (*Client) TaskListBlocked ¶ added in v0.26.0
func (c *Client) TaskListBlocked(ctx context.Context) (*TaskListResponse, error)
func (*Client) TaskListReady ¶ added in v0.25.0
func (c *Client) TaskListReady(ctx context.Context) (*TaskListResponse, error)
func (*Client) TaskRemoveDep ¶ added in v0.25.0
func (*Client) TaskUpdate ¶ added in v0.25.0
func (c *Client) TaskUpdate(ctx context.Context, ref string, req *TaskUpdateRequest) (*TaskUpdateResponse, error)
TaskUpdate updates a task and returns the updated task. If the update sets status=in_progress and another agent already holds it, a 409 is returned as a *TaskHeldError. When closing a parent task, the response may include AutoClosed listing cascade-closed children.
func (*Client) TeamInstructionsHistory ¶ added in v1.7.0
func (*Client) TeamRolesHistory ¶ added in v1.7.0
func (*Client) WorkspaceDelete ¶ added in v0.33.0
func (c *Client) WorkspaceDelete(ctx context.Context, workspaceID string) (*DeleteWorkspaceResponse, error)
WorkspaceDelete soft-deletes a workspace by its ID. Returns nil, nil if the workspace was already deleted (404).
func (*Client) WorkspaceList ¶ added in v0.33.0
func (c *Client) WorkspaceList(ctx context.Context, params WorkspaceListParams) (*WorkspaceListResponse, error)
WorkspaceList lists workspaces, optionally filtered by hostname.
func (*Client) WorkspaceTeam ¶ added in v0.29.0
func (c *Client) WorkspaceTeam(ctx context.Context, params WorkspaceTeamParams) (*WorkspaceListResponse, error)
type CoordinationAgent ¶ added in v0.29.0
type CoordinationAgent struct {
WorkspaceID string `json:"workspace_id"`
Alias string `json:"alias"`
Member *string `json:"member,omitempty"`
HumanName *string `json:"human_name,omitempty"`
Program *string `json:"program,omitempty"`
Role *string `json:"role,omitempty"`
Status string `json:"status"`
CurrentBranch *string `json:"current_branch,omitempty"`
CanonicalOrigin *string `json:"canonical_origin,omitempty"`
Hostname *string `json:"hostname,omitempty"`
WorkspacePath *string `json:"workspace_path,omitempty"`
Timezone *string `json:"timezone,omitempty"`
CurrentTaskRef *string `json:"current_task_ref,omitempty"`
FocusTaskRef *string `json:"focus_task_ref,omitempty"`
FocusTaskTitle *string `json:"focus_task_title,omitempty"`
FocusTaskType *string `json:"focus_task_type,omitempty"`
FocusUpdatedAt *string `json:"focus_updated_at,omitempty"`
ApexTaskRef *string `json:"apex_task_ref,omitempty"`
ApexTitle *string `json:"apex_title,omitempty"`
ApexType *string `json:"apex_type,omitempty"`
Claims []CoordinationClaim `json:"claims,omitempty"`
Reservations []CoordinationReservation `json:"reservations,omitempty"`
LastSeen *string `json:"last_seen,omitempty"`
}
type CoordinationClaim ¶ added in v0.29.0
type CoordinationClaim struct {
TaskRef string `json:"task_ref"`
WorkspaceID string `json:"workspace_id"`
Alias string `json:"alias"`
HumanName *string `json:"human_name,omitempty"`
ClaimedAt string `json:"claimed_at"`
ClaimantCount int `json:"claimant_count"`
Title *string `json:"title,omitempty"`
ApexTaskRef *string `json:"apex_task_ref,omitempty"`
ApexTitle *string `json:"apex_title,omitempty"`
ApexType *string `json:"apex_type,omitempty"`
}
type CoordinationConflict ¶ added in v0.29.0
type CoordinationConflict struct {
TaskRef string `json:"task_ref"`
Claimants []CoordinationConflictClaimant `json:"claimants"`
}
type CoordinationConflictClaimant ¶ added in v0.29.0
type CoordinationReservation ¶ added in v1.1.0
type CoordinationReservation struct {
ResourceKey string `json:"resource_key"`
HolderAgentID string `json:"holder_agent_id"`
HolderAlias string `json:"holder_alias"`
AcquiredAt string `json:"acquired_at"`
ExpiresAt string `json:"expires_at"`
TTLRemainingSeconds int `json:"ttl_remaining_seconds"`
Reason *string `json:"reason,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}
type CoordinationStatusResponse ¶ added in v0.29.0
type CoordinationStatusResponse struct {
Workspace CoordinationWorkspace `json:"workspace"`
Agents []CoordinationAgent `json:"agents"`
Claims []CoordinationClaim `json:"claims"`
Conflicts []CoordinationConflict `json:"conflicts"`
Locks []CoordinationReservation `json:"locks,omitempty"`
EscalationsPending int `json:"escalations_pending"`
Timestamp string `json:"timestamp"`
}
type CoordinationWorkspace ¶ added in v0.29.0
type CreateTeamInstructionsRequest ¶ added in v1.7.0
type CreateTeamInstructionsRequest struct {
Document TeamInstructionsDocument `json:"document"`
BaseTeamInstructionsID string `json:"base_team_instructions_id,omitempty"`
CreatedByAlias string `json:"created_by_alias,omitempty"`
}
type CreateTeamInstructionsResponse ¶ added in v1.7.0
type CreateTeamRolesRequest ¶ added in v1.7.0
type CreateTeamRolesRequest struct {
Bundle TeamRolesBundle `json:"bundle"`
BaseTeamRolesID string `json:"base_team_roles_id,omitempty"`
CreatedByAlias string `json:"created_by_alias,omitempty"`
}
type CreateTeamRolesResponse ¶ added in v1.7.0
type DeactivateTeamRolesResponse ¶ added in v1.7.0
type DeleteWorkspaceResponse ¶ added in v1.7.0
type PatchCurrentWorkspaceRequest ¶ added in v1.7.0
type PatchCurrentWorkspaceResponse ¶ added in v1.7.0
type PatchCurrentWorkspaceResponse struct {
AgentID string `json:"agent_id"`
Alias string `json:"alias"`
Hostname string `json:"hostname,omitempty"`
WorkspacePath string `json:"workspace_path,omitempty"`
RoleName string `json:"role_name,omitempty"`
Role string `json:"role,omitempty"`
HumanName string `json:"human_name,omitempty"`
}
type ReservationAcquireResponse ¶
type ReservationAcquireResponse struct {
Status string `json:"status"`
ResourceKey string `json:"resource_key"`
HolderAgentID string `json:"holder_agent_id,omitempty"`
HolderAlias string `json:"holder_alias,omitempty"`
AcquiredAt string `json:"acquired_at,omitempty"`
ExpiresAt string `json:"expires_at,omitempty"`
}
type ReservationHeldError ¶
type ReservationHeldError struct {
Detail string `json:"detail"`
HolderAgentID string `json:"holder_agent_id"`
HolderAlias string `json:"holder_alias"`
ExpiresAt string `json:"expires_at"`
}
ReservationHeldError is returned when a reservation is already held by another agent.
func (*ReservationHeldError) Error ¶
func (e *ReservationHeldError) Error() string
type ReservationListResponse ¶
type ReservationListResponse struct {
Reservations []ReservationView `json:"reservations"`
}
type ReservationReleaseRequest ¶
type ReservationReleaseRequest struct {
ResourceKey string `json:"resource_key"`
}
type ReservationRenewRequest ¶
type ReservationRevokeRequest ¶ added in v0.2.0
type ReservationRevokeRequest struct {
Prefix string `json:"prefix,omitempty"`
}
type ReservationRevokeResponse ¶ added in v0.2.0
type ReservationView ¶
type ResetTeamInstructionsResponse ¶ added in v1.7.0
type ResetTeamRolesResponse ¶ added in v1.7.0
type RoleDefinition ¶ added in v1.1.0
type SelectedRoleInfo ¶ added in v1.1.0
type Task ¶ added in v0.25.0
type Task struct {
TaskID string `json:"task_id"`
TaskRef string `json:"task_ref"`
TaskNumber int `json:"task_number"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
Notes string `json:"notes,omitempty"`
Status string `json:"status"`
Priority int `json:"priority"`
TaskType string `json:"task_type"`
Labels []string `json:"labels,omitempty"`
ParentTaskID *string `json:"parent_task_id"`
AssigneeAlias *string `json:"assignee_alias"`
CreatedByAlias *string `json:"created_by_alias"`
ClosedByAlias *string `json:"closed_by_alias"`
BlockedBy []TaskDepView `json:"blocked_by,omitempty"`
Blocks []TaskDepView `json:"blocks,omitempty"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
ClosedAt *string `json:"closed_at"`
Comments []TaskComment `json:"comments,omitempty"`
}
type TaskAddDepRequest ¶ added in v0.25.0
type TaskAddDepRequest struct {
DependsOn string `json:"depends_on"`
}
type TaskComment ¶ added in v0.25.0
type TaskCommentCreateRequest ¶ added in v0.25.0
type TaskCommentListResponse ¶ added in v0.25.0
type TaskCommentListResponse struct {
Comments []TaskComment `json:"comments"`
}
type TaskCreateRequest ¶ added in v0.25.0
type TaskCreateRequest struct {
Title string `json:"title"`
Description string `json:"description,omitempty"`
Notes string `json:"notes,omitempty"`
Priority int `json:"priority"`
TaskType string `json:"task_type,omitempty"`
Labels []string `json:"labels,omitempty"`
ParentTaskID *string `json:"parent_task_id,omitempty"`
AssigneeAlias *string `json:"assignee_alias,omitempty"`
}
type TaskDepView ¶ added in v0.25.0
type TaskHeldError ¶ added in v0.25.0
type TaskHeldError struct {
Detail string `json:"detail"`
HolderAgentID string `json:"holder_agent_id"`
AssigneeAlias string `json:"assignee_alias"`
}
TaskHeldError is returned when a task status transition to in_progress fails because another agent already holds it.
func (*TaskHeldError) Error ¶ added in v0.25.0
func (e *TaskHeldError) Error() string
type TaskListParams ¶ added in v0.25.0
type TaskListResponse ¶ added in v0.25.0
type TaskListResponse struct {
Tasks []TaskSummary `json:"tasks"`
}
type TaskSummary ¶ added in v0.25.0
type TaskSummary struct {
TaskID string `json:"task_id"`
TaskRef string `json:"task_ref"`
TaskNumber int `json:"task_number"`
Title string `json:"title"`
Status string `json:"status"`
Priority int `json:"priority"`
TaskType string `json:"task_type"`
AssigneeAlias *string `json:"assignee_alias"`
CreatedByAlias *string `json:"created_by_alias"`
Labels []string `json:"labels,omitempty"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type TaskUpdateRequest ¶ added in v0.25.0
type TaskUpdateRequest struct {
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
Notes *string `json:"notes,omitempty"`
Status *string `json:"status,omitempty"`
TaskType *string `json:"task_type,omitempty"`
Priority *int `json:"priority,omitempty"`
Labels []string `json:"labels,omitempty"`
AssigneeAlias *string `json:"assignee_alias,omitempty"`
}
type TaskUpdateResponse ¶ added in v0.25.0
type TaskUpdateResponse struct {
Task
AutoClosed []TaskSummary `json:"auto_closed,omitempty"`
}
TaskUpdateResponse wraps a Task with the additional auto_closed array returned when closing a parent task triggers cascade-close of children.
type TeamInstructionsDocument ¶ added in v1.7.0
type TeamInstructionsHistoryItem ¶ added in v1.7.0
type TeamInstructionsHistoryResponse ¶ added in v1.7.0
type TeamInstructionsHistoryResponse struct {
TeamInstructionsVersions []TeamInstructionsHistoryItem `json:"team_instructions_versions"`
}
type TeamRolesBundle ¶ added in v1.7.0
type TeamRolesBundle struct {
Roles map[string]RoleDefinition `json:"roles"`
Adapters map[string]any `json:"adapters,omitempty"`
}
type TeamRolesHistoryItem ¶ added in v1.7.0
type TeamRolesHistoryResponse ¶ added in v1.7.0
type TeamRolesHistoryResponse struct {
TeamRolesVersions []TeamRolesHistoryItem `json:"team_roles_versions"`
}
type WorkspaceClaim ¶ added in v0.29.0
type WorkspaceClaim struct {
TaskRef string `json:"task_ref,omitempty"`
BeadID string `json:"bead_id,omitempty"`
Title *string `json:"title,omitempty"`
ClaimedAt string `json:"claimed_at"`
ApexTaskRef *string `json:"apex_task_ref,omitempty"`
ApexID *string `json:"apex_id,omitempty"`
ApexTitle *string `json:"apex_title,omitempty"`
ApexType *string `json:"apex_type,omitempty"`
}
type WorkspaceInfo ¶ added in v0.29.0
type WorkspaceInfo struct {
WorkspaceID string `json:"workspace_id"`
Alias string `json:"alias"`
AgentLifetime *string `json:"agent_lifetime,omitempty"`
HumanName *string `json:"human_name,omitempty"`
ContextKind *string `json:"context_kind,omitempty"`
Program *string `json:"program,omitempty"`
Model *string `json:"model,omitempty"`
Repo *string `json:"repo,omitempty"`
Branch *string `json:"branch,omitempty"`
MemberEmail *string `json:"member_email,omitempty"`
Role *string `json:"role,omitempty"`
Hostname *string `json:"hostname,omitempty"`
WorkspacePath *string `json:"workspace_path,omitempty"`
ApexID *string `json:"apex_id,omitempty"`
ApexTitle *string `json:"apex_title,omitempty"`
ApexType *string `json:"apex_type,omitempty"`
FocusTaskRef *string `json:"focus_task_ref,omitempty"`
FocusTaskTitle *string `json:"focus_task_title,omitempty"`
FocusTaskType *string `json:"focus_task_type,omitempty"`
FocusTaskRepoName *string `json:"focus_task_repo_name,omitempty"`
FocusTaskBranch *string `json:"focus_task_branch,omitempty"`
FocusUpdatedAt *string `json:"focus_updated_at,omitempty"`
Status string `json:"status"`
LastSeen *string `json:"last_seen,omitempty"`
DeletedAt *string `json:"deleted_at,omitempty"`
Claims []WorkspaceClaim `json:"claims,omitempty"`
}
type WorkspaceListParams ¶ added in v0.33.0
type WorkspaceListResponse ¶ added in v0.29.0
type WorkspaceListResponse struct {
Workspaces []WorkspaceInfo `json:"workspaces"`
HasMore bool `json:"has_more"`
NextCursor *string `json:"next_cursor,omitempty"`
}