gen

package
v0.0.0-...-13f862e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package gen provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerTokenScopes   bearerTokenContextKey   = "bearerToken.Scopes"
	SessionCookieScopes sessionCookieContextKey = "sessionCookie.Scopes"
)

Variables

This section is empty.

Functions

func NewAdoptSpecRequest

func NewAdoptSpecRequest(server string, wsid WorkspaceID, slug SpecSlug, params *AdoptSpecParams, body AdoptSpecJSONRequestBody) (*http.Request, error)

NewAdoptSpecRequest calls the generic AdoptSpec builder with application/json body

func NewAdoptSpecRequestWithBody

func NewAdoptSpecRequestWithBody(server string, wsid WorkspaceID, slug SpecSlug, params *AdoptSpecParams, contentType string, body io.Reader) (*http.Request, error)

NewAdoptSpecRequestWithBody generates requests for AdoptSpec with any type of body

func NewBindProjectRequest

func NewBindProjectRequest(server string, params *BindProjectParams, body BindProjectJSONRequestBody) (*http.Request, error)

NewBindProjectRequest calls the generic BindProject builder with application/json body

func NewBindProjectRequestWithBody

func NewBindProjectRequestWithBody(server string, params *BindProjectParams, contentType string, body io.Reader) (*http.Request, error)

NewBindProjectRequestWithBody generates requests for BindProject with any type of body

func NewCascadeDispatchWorkItemRequest

func NewCascadeDispatchWorkItemRequest(server string, id string, body CascadeDispatchWorkItemJSONRequestBody) (*http.Request, error)

NewCascadeDispatchWorkItemRequest calls the generic CascadeDispatchWorkItem builder with application/json body

func NewCascadeDispatchWorkItemRequestWithBody

func NewCascadeDispatchWorkItemRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewCascadeDispatchWorkItemRequestWithBody generates requests for CascadeDispatchWorkItem with any type of body

func NewCreateDecisionRequest

func NewCreateDecisionRequest(server string, wsid WorkspaceID, params *CreateDecisionParams, body CreateDecisionJSONRequestBody) (*http.Request, error)

NewCreateDecisionRequest calls the generic CreateDecision builder with application/json body

func NewCreateDecisionRequestWithBody

func NewCreateDecisionRequestWithBody(server string, wsid WorkspaceID, params *CreateDecisionParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateDecisionRequestWithBody generates requests for CreateDecision with any type of body

func NewCreateProjectRequest

func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error)

NewCreateProjectRequest calls the generic CreateProject builder with application/json body

func NewCreateProjectRequestWithBody

func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body

func NewDecisionRefsRequest

func NewDecisionRefsRequest(server string, wsid WorkspaceID) (*http.Request, error)

NewDecisionRefsRequest generates requests for DecisionRefs

func NewDeleteWorkItemRequest

func NewDeleteWorkItemRequest(server string, id string) (*http.Request, error)

NewDeleteWorkItemRequest generates requests for DeleteWorkItem

func NewEnsureInteractionRequest

func NewEnsureInteractionRequest(server string, body EnsureInteractionJSONRequestBody) (*http.Request, error)

NewEnsureInteractionRequest calls the generic EnsureInteraction builder with application/json body

func NewEnsureInteractionRequestWithBody

func NewEnsureInteractionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewEnsureInteractionRequestWithBody generates requests for EnsureInteraction with any type of body

func NewGetAdaptorsHealthRequest

func NewGetAdaptorsHealthRequest(server string) (*http.Request, error)

NewGetAdaptorsHealthRequest generates requests for GetAdaptorsHealth

func NewGetCapabilitiesRequest

func NewGetCapabilitiesRequest(server string) (*http.Request, error)

NewGetCapabilitiesRequest generates requests for GetCapabilities

func NewGetConfigRequest

func NewGetConfigRequest(server string) (*http.Request, error)

NewGetConfigRequest generates requests for GetConfig

func NewGetDecisionRequest

func NewGetDecisionRequest(server string, wsid WorkspaceID, id DecisionID) (*http.Request, error)

NewGetDecisionRequest generates requests for GetDecision

func NewGetHealthRequest

func NewGetHealthRequest(server string) (*http.Request, error)

NewGetHealthRequest generates requests for GetHealth

func NewGetOpenAPISpecRequest

func NewGetOpenAPISpecRequest(server string) (*http.Request, error)

NewGetOpenAPISpecRequest generates requests for GetOpenAPISpec

func NewGetPlannerCoachRequest

func NewGetPlannerCoachRequest(server string) (*http.Request, error)

NewGetPlannerCoachRequest generates requests for GetPlannerCoach

func NewGetReadyzRequest

func NewGetReadyzRequest(server string) (*http.Request, error)

NewGetReadyzRequest generates requests for GetReadyz

func NewGetSpecKitFeatureRequest

func NewGetSpecKitFeatureRequest(server string, id string) (*http.Request, error)

NewGetSpecKitFeatureRequest generates requests for GetSpecKitFeature

func NewGetVersionRequest

func NewGetVersionRequest(server string) (*http.Request, error)

NewGetVersionRequest generates requests for GetVersion

func NewGetWhoamiRequest

func NewGetWhoamiRequest(server string) (*http.Request, error)

NewGetWhoamiRequest generates requests for GetWhoami

func NewGetWorkItemRequest

func NewGetWorkItemRequest(server string, id string) (*http.Request, error)

NewGetWorkItemRequest generates requests for GetWorkItem

func NewListAgentGroupsRequest

func NewListAgentGroupsRequest(server string) (*http.Request, error)

NewListAgentGroupsRequest generates requests for ListAgentGroups

func NewListAgentsRequest

func NewListAgentsRequest(server string) (*http.Request, error)

NewListAgentsRequest generates requests for ListAgents

func NewListConsultsRequest

func NewListConsultsRequest(server string) (*http.Request, error)

NewListConsultsRequest generates requests for ListConsults

func NewListDecisionsRequest

func NewListDecisionsRequest(server string, wsid WorkspaceID) (*http.Request, error)

NewListDecisionsRequest generates requests for ListDecisions

func NewListEscalationsRequest

func NewListEscalationsRequest(server string) (*http.Request, error)

NewListEscalationsRequest generates requests for ListEscalations

func NewListLabelsRequest

func NewListLabelsRequest(server string, wsid WorkspaceID) (*http.Request, error)

NewListLabelsRequest generates requests for ListLabels

func NewListPersonasV1Request

func NewListPersonasV1Request(server string) (*http.Request, error)

NewListPersonasV1Request generates requests for ListPersonasV1

func NewListProjectsRequest

func NewListProjectsRequest(server string) (*http.Request, error)

NewListProjectsRequest generates requests for ListProjects

func NewListRecentWalksRequest

func NewListRecentWalksRequest(server string) (*http.Request, error)

NewListRecentWalksRequest generates requests for ListRecentWalks

func NewListRepositoriesRequest

func NewListRepositoriesRequest(server string) (*http.Request, error)

NewListRepositoriesRequest generates requests for ListRepositories

func NewListSessionsRequest

func NewListSessionsRequest(server string) (*http.Request, error)

NewListSessionsRequest generates requests for ListSessions

func NewListSkillsRequest

func NewListSkillsRequest(server string) (*http.Request, error)

NewListSkillsRequest generates requests for ListSkills

func NewListSpecKitFeaturesRequest

func NewListSpecKitFeaturesRequest(server string) (*http.Request, error)

NewListSpecKitFeaturesRequest generates requests for ListSpecKitFeatures

func NewListSpecsRequest

func NewListSpecsRequest(server string, wsid WorkspaceID) (*http.Request, error)

NewListSpecsRequest generates requests for ListSpecs

func NewListSprintsRequest

func NewListSprintsRequest(server string) (*http.Request, error)

NewListSprintsRequest generates requests for ListSprints

func NewListWorkItemsRequest

func NewListWorkItemsRequest(server string, params *ListWorkItemsParams) (*http.Request, error)

NewListWorkItemsRequest generates requests for ListWorkItems

func NewLockDecisionRequest

func NewLockDecisionRequest(server string, wsid WorkspaceID, id DecisionID, params *LockDecisionParams, body LockDecisionJSONRequestBody) (*http.Request, error)

NewLockDecisionRequest calls the generic LockDecision builder with application/json body

func NewLockDecisionRequestWithBody

func NewLockDecisionRequestWithBody(server string, wsid WorkspaceID, id DecisionID, params *LockDecisionParams, contentType string, body io.Reader) (*http.Request, error)

NewLockDecisionRequestWithBody generates requests for LockDecision with any type of body

func NewPatchSpecRequest

func NewPatchSpecRequest(server string, wsid WorkspaceID, slug SpecSlug, params *PatchSpecParams, body PatchSpecJSONRequestBody) (*http.Request, error)

NewPatchSpecRequest calls the generic PatchSpec builder with application/json body

func NewPatchSpecRequestWithBody

func NewPatchSpecRequestWithBody(server string, wsid WorkspaceID, slug SpecSlug, params *PatchSpecParams, contentType string, body io.Reader) (*http.Request, error)

NewPatchSpecRequestWithBody generates requests for PatchSpec with any type of body

func NewPlanSpecKitFeatureSyncRequest

func NewPlanSpecKitFeatureSyncRequest(server string, id string) (*http.Request, error)

NewPlanSpecKitFeatureSyncRequest generates requests for PlanSpecKitFeatureSync

func NewPrepareOnboardingSetupRequest

func NewPrepareOnboardingSetupRequest(server string, body PrepareOnboardingSetupJSONRequestBody) (*http.Request, error)

NewPrepareOnboardingSetupRequest calls the generic PrepareOnboardingSetup builder with application/json body

func NewPrepareOnboardingSetupRequestWithBody

func NewPrepareOnboardingSetupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPrepareOnboardingSetupRequestWithBody generates requests for PrepareOnboardingSetup with any type of body

func NewProbeOnboarderRequest

func NewProbeOnboarderRequest(server string) (*http.Request, error)

NewProbeOnboarderRequest generates requests for ProbeOnboarder

func NewRatifyNewProjectRequest

func NewRatifyNewProjectRequest(server string, id string, body RatifyNewProjectJSONRequestBody) (*http.Request, error)

NewRatifyNewProjectRequest calls the generic RatifyNewProject builder with application/json body

func NewRatifyNewProjectRequestWithBody

func NewRatifyNewProjectRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewRatifyNewProjectRequestWithBody generates requests for RatifyNewProject with any type of body

func NewReconcileSpecRequest

func NewReconcileSpecRequest(server string, wsid WorkspaceID, slug SpecSlug, params *ReconcileSpecParams, body ReconcileSpecJSONRequestBody) (*http.Request, error)

NewReconcileSpecRequest calls the generic ReconcileSpec builder with application/json body

func NewReconcileSpecRequestWithBody

func NewReconcileSpecRequestWithBody(server string, wsid WorkspaceID, slug SpecSlug, params *ReconcileSpecParams, contentType string, body io.Reader) (*http.Request, error)

NewReconcileSpecRequestWithBody generates requests for ReconcileSpec with any type of body

func NewSnapshotSpecRequest

func NewSnapshotSpecRequest(server string, wsid WorkspaceID, slug SpecSlug, params *SnapshotSpecParams) (*http.Request, error)

NewSnapshotSpecRequest generates requests for SnapshotSpec

func NewStartNewProjectRequest

func NewStartNewProjectRequest(server string) (*http.Request, error)

NewStartNewProjectRequest generates requests for StartNewProject

func NewStartWalkRequest

func NewStartWalkRequest(server string) (*http.Request, error)

NewStartWalkRequest generates requests for StartWalk

func NewSubmitNewProjectTurnRequest

func NewSubmitNewProjectTurnRequest(server string, id string, body SubmitNewProjectTurnJSONRequestBody) (*http.Request, error)

NewSubmitNewProjectTurnRequest calls the generic SubmitNewProjectTurn builder with application/json body

func NewSubmitNewProjectTurnRequestWithBody

func NewSubmitNewProjectTurnRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewSubmitNewProjectTurnRequestWithBody generates requests for SubmitNewProjectTurn with any type of body

func NewSyncSpecKitFeatureRequest

func NewSyncSpecKitFeatureRequest(server string, id string, params *SyncSpecKitFeatureParams, body SyncSpecKitFeatureJSONRequestBody) (*http.Request, error)

NewSyncSpecKitFeatureRequest calls the generic SyncSpecKitFeature builder with application/json body

func NewSyncSpecKitFeatureRequestWithBody

func NewSyncSpecKitFeatureRequestWithBody(server string, id string, params *SyncSpecKitFeatureParams, contentType string, body io.Reader) (*http.Request, error)

NewSyncSpecKitFeatureRequestWithBody generates requests for SyncSpecKitFeature with any type of body

func NewWatchSpecRequest

func NewWatchSpecRequest(server string, wsid WorkspaceID, slug SpecSlug) (*http.Request, error)

NewWatchSpecRequest generates requests for WatchSpec

func NewWorkspaceStatusRequest

func NewWorkspaceStatusRequest(server string, wsid WorkspaceID) (*http.Request, error)

NewWorkspaceStatusRequest generates requests for WorkspaceStatus

Types

type AdaptorStatus

type AdaptorStatus struct {
	AdaptorId string             `json:"adaptor_id"`
	CheckedAt *time.Time         `json:"checked_at,omitempty"`
	Message   *string            `json:"message,omitempty"`
	Ok        bool               `json:"ok"`
	Plane     AdaptorStatusPlane `json:"plane"`
}

AdaptorStatus defines model for AdaptorStatus.

type AdaptorStatusPlane

type AdaptorStatusPlane string

AdaptorStatusPlane defines model for AdaptorStatus.Plane.

const (
	Orchestration AdaptorStatusPlane = "orchestration"
	Work          AdaptorStatusPlane = "work"
)

Defines values for AdaptorStatusPlane.

func (AdaptorStatusPlane) Valid

func (e AdaptorStatusPlane) Valid() bool

Valid indicates whether the value is a known member of the AdaptorStatusPlane enum.

type AdaptorUnavailable

type AdaptorUnavailable = Error

AdaptorUnavailable Shared error envelope (gm-faz). `error` is a stable token the SPA branches on; `message` is human-readable and may be surfaced verbatim.

type AdaptorsHealthResponse

type AdaptorsHealthResponse struct {
	Adaptors []AdaptorStatus `json:"adaptors"`
}

AdaptorsHealthResponse defines model for AdaptorsHealthResponse.

type AdoptSpecHTTP

type AdoptSpecHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON501      *NotImplemented
}

func ParseAdoptSpecHTTP

func ParseAdoptSpecHTTP(rsp *http.Response) (*AdoptSpecHTTP, error)

ParseAdoptSpecHTTP parses an HTTP response from a AdoptSpecWithResponse call

func (AdoptSpecHTTP) ContentType

func (r AdoptSpecHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AdoptSpecHTTP) Status

func (r AdoptSpecHTTP) Status() string

Status returns HTTPResponse.Status

func (AdoptSpecHTTP) StatusCode

func (r AdoptSpecHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AdoptSpecJSONBody

type AdoptSpecJSONBody struct {
	SnapshotId string `json:"snapshot_id"`
}

AdoptSpecJSONBody defines parameters for AdoptSpec.

type AdoptSpecJSONRequestBody

type AdoptSpecJSONRequestBody AdoptSpecJSONBody

AdoptSpecJSONRequestBody defines body for AdoptSpec for application/json ContentType.

type AdoptSpecParams

type AdoptSpecParams struct {
	// XGEMBAConfirm Idempotency nonce required by every state-mutating endpoint. The value MUST be a UUID v4 the caller generated locally. Replays of the same nonce against the same route return the cached prior response within the nonce TTL (per-process; see internal/server/nonce.go). Missing or malformed values yield 400. Documented under gm-o9t8.14 as the canonical write-confirm header.
	XGEMBAConfirm ConfirmNonce `json:"X-GEMBA-Confirm"`
}

AdoptSpecParams defines parameters for AdoptSpec.

type Agent

type Agent struct {
	Id                   string                 `json:"id"`
	Kind                 *string                `json:"kind,omitempty"`
	Label                *string                `json:"label,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Agent defines model for Agent.

func (Agent) Get

func (a Agent) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Agent. Returns the specified element and whether it was found

func (Agent) MarshalJSON

func (a Agent) MarshalJSON() ([]byte, error)

Override default JSON handling for Agent to handle AdditionalProperties

func (*Agent) Set

func (a *Agent) Set(fieldName string, value interface{})

Setter for additional properties for Agent

func (*Agent) UnmarshalJSON

func (a *Agent) UnmarshalJSON(b []byte) error

Override default JSON handling for Agent to handle AdditionalProperties

type AgentGroup

type AgentGroup struct {
	Id                   string                 `json:"id"`
	Label                *string                `json:"label,omitempty"`
	Members              *[]string              `json:"members,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AgentGroup defines model for AgentGroup.

func (AgentGroup) Get

func (a AgentGroup) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for AgentGroup. Returns the specified element and whether it was found

func (AgentGroup) MarshalJSON

func (a AgentGroup) MarshalJSON() ([]byte, error)

Override default JSON handling for AgentGroup to handle AdditionalProperties

func (*AgentGroup) Set

func (a *AgentGroup) Set(fieldName string, value interface{})

Setter for additional properties for AgentGroup

func (*AgentGroup) UnmarshalJSON

func (a *AgentGroup) UnmarshalJSON(b []byte) error

Override default JSON handling for AgentGroup to handle AdditionalProperties

type AgentRef

type AgentRef struct {
	Id    string  `json:"id"`
	Label *string `json:"label,omitempty"`
}

AgentRef defines model for AgentRef.

type BadRequest

type BadRequest = Error

BadRequest Shared error envelope (gm-faz). `error` is a stable token the SPA branches on; `message` is human-readable and may be surfaced verbatim.

type BeadsSource

type BeadsSource struct {
	Detail *string         `json:"detail,omitempty"`
	Kind   BeadsSourceKind `json:"kind"`
	Label  string          `json:"label"`
}

BeadsSource Workspace identity — 1:1 with a beads database (gm-77u). Detail strips credentials when source is a dolt-url.

type BeadsSourceKind

type BeadsSourceKind string

BeadsSourceKind defines model for BeadsSource.Kind.

const (
	BeadsDir     BeadsSourceKind = "beads-dir"
	DoltUrl      BeadsSourceKind = "dolt-url"
	ProjectDir   BeadsSourceKind = "project-dir"
	Unconfigured BeadsSourceKind = "unconfigured"
)

Defines values for BeadsSourceKind.

func (BeadsSourceKind) Valid

func (e BeadsSourceKind) Valid() bool

Valid indicates whether the value is a known member of the BeadsSourceKind enum.

type BindProjectHTTP

type BindProjectHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectEntry
	JSON400      *BadRequest
	JSON409      *Error
	JSON500      *Error
}

func ParseBindProjectHTTP

func ParseBindProjectHTTP(rsp *http.Response) (*BindProjectHTTP, error)

ParseBindProjectHTTP parses an HTTP response from a BindProjectWithResponse call

func (BindProjectHTTP) ContentType

func (r BindProjectHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (BindProjectHTTP) Status

func (r BindProjectHTTP) Status() string

Status returns HTTPResponse.Status

func (BindProjectHTTP) StatusCode

func (r BindProjectHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BindProjectJSONRequestBody

type BindProjectJSONRequestBody = BindProjectRequest

BindProjectJSONRequestBody defines body for BindProject for application/json ContentType.

type BindProjectParams

type BindProjectParams struct {
	// XGEMBAConfirm Idempotency nonce. Replays of the same nonce return the cached response.
	XGEMBAConfirm string `json:"X-GEMBA-Confirm"`
}

BindProjectParams defines parameters for BindProject.

type BindProjectRequest

type BindProjectRequest struct {
	// BeadsDbPath Absolute path to the directory holding the beads DB (the parent of the `.beads/` subdir).
	BeadsDbPath string                 `json:"beads_db_path"`
	Mode        BindProjectRequestMode `json:"mode"`

	// TargetRepoPath Absolute path to the directory to bind to. Equals `beads_db_path` when `mode="create"`.
	TargetRepoPath string `json:"target_repo_path"`
}

BindProjectRequest Body for `POST /api/v1/projects/bind`. `mode="create"` runs `git init` at `beads_db_path` (which must equal `target_repo_path`) and writes `.gemba/workspace.toml` in place. `mode="navigate"` copies the beads DB at `beads_db_path/.beads/` into `target_repo_path/.beads/` and writes `.gemba/workspace.toml` at `target_repo_path` — `target_repo_path` must already be a git working tree.

type BindProjectRequestMode

type BindProjectRequestMode string

BindProjectRequestMode defines model for BindProjectRequest.Mode.

const (
	BindProjectRequestModeCreate   BindProjectRequestMode = "create"
	BindProjectRequestModeNavigate BindProjectRequestMode = "navigate"
)

Defines values for BindProjectRequestMode.

func (BindProjectRequestMode) Valid

func (e BindProjectRequestMode) Valid() bool

Valid indicates whether the value is a known member of the BindProjectRequestMode enum.

type CapabilitiesResponse

type CapabilitiesResponse struct {
	BeadsHistoryPath *string `json:"beads_history_path,omitempty"`
	BeadsOnly        *bool   `json:"beads_only,omitempty"`
	BeadsReadOnly    *bool   `json:"beads_read_only,omitempty"`

	// BeadsSource Workspace identity — 1:1 with a beads database (gm-77u). Detail strips credentials when source is a dolt-url.
	BeadsSource *BeadsSource `json:"beads_source,omitempty"`
	InstanceId  *string      `json:"instance_id,omitempty"`

	// OrchestrationPlane Subset of the manifest fields the SPA actively gates UI on. Full manifest (state_map, edge_extensions, query_languages, etc.) is documented in `core/manifest.go`; this schema captures the wire-stable boolean / version surface.
	OrchestrationPlane *CapabilityManifest              `json:"orchestration_plane,omitempty"`
	RuntimeMode        *CapabilitiesResponseRuntimeMode `json:"runtime_mode,omitempty"`

	// WorkPlane Subset of the manifest fields the SPA actively gates UI on. Full manifest (state_map, edge_extensions, query_languages, etc.) is documented in `core/manifest.go`; this schema captures the wire-stable boolean / version surface.
	WorkPlane *CapabilityManifest `json:"work_plane,omitempty"`
}

CapabilitiesResponse Registered transport planes plus runtime mode metadata.

type CapabilitiesResponseRuntimeMode

type CapabilitiesResponseRuntimeMode string

CapabilitiesResponseRuntimeMode defines model for CapabilitiesResponse.RuntimeMode.

const (
	BeadsOnly CapabilitiesResponseRuntimeMode = "beads_only"
	Full      CapabilitiesResponseRuntimeMode = "full"
)

Defines values for CapabilitiesResponseRuntimeMode.

func (CapabilitiesResponseRuntimeMode) Valid

Valid indicates whether the value is a known member of the CapabilitiesResponseRuntimeMode enum.

type CapabilityManifest

type CapabilityManifest struct {
	AdaptorName               string                 `json:"adaptor_name"`
	AdaptorVersion            string                 `json:"adaptor_version"`
	DependencyGraphNative     *bool                  `json:"dependency_graph_native,omitempty"`
	EvidenceSynthesisRequired *bool                  `json:"evidence_synthesis_required,omitempty"`
	ProtocolVersion           string                 `json:"protocol_version"`
	ReadOnly                  *bool                  `json:"read_only,omitempty"`
	ReadySetQuery             *bool                  `json:"ready_set_query,omitempty"`
	SprintNative              *bool                  `json:"sprint_native,omitempty"`
	TokenBudgetEnforced       *bool                  `json:"token_budget_enforced,omitempty"`
	Transport                 Transport              `json:"transport"`
	AdditionalProperties      map[string]interface{} `json:"-"`
}

CapabilityManifest Subset of the manifest fields the SPA actively gates UI on. Full manifest (state_map, edge_extensions, query_languages, etc.) is documented in `core/manifest.go`; this schema captures the wire-stable boolean / version surface.

func (CapabilityManifest) Get

func (a CapabilityManifest) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for CapabilityManifest. Returns the specified element and whether it was found

func (CapabilityManifest) MarshalJSON

func (a CapabilityManifest) MarshalJSON() ([]byte, error)

Override default JSON handling for CapabilityManifest to handle AdditionalProperties

func (*CapabilityManifest) Set

func (a *CapabilityManifest) Set(fieldName string, value interface{})

Setter for additional properties for CapabilityManifest

func (*CapabilityManifest) UnmarshalJSON

func (a *CapabilityManifest) UnmarshalJSON(b []byte) error

Override default JSON handling for CapabilityManifest to handle AdditionalProperties

type CascadeDispatchRequest

type CascadeDispatchRequest struct {
	AgentType string `json:"agent_type"`
	Limit     *int   `json:"limit,omitempty"`
}

CascadeDispatchRequest defines model for CascadeDispatchRequest.

type CascadeDispatchResponse

type CascadeDispatchResponse struct {
	Blocked    *[]string `json:"blocked,omitempty"`
	Dispatched []struct {
		SessionId  *string `json:"session_id,omitempty"`
		WorkItemId string  `json:"work_item_id"`
	} `json:"dispatched"`
	Errors *[]struct {
		Message    string `json:"message"`
		WorkItemId string `json:"work_item_id"`
	} `json:"errors,omitempty"`
	Limit     *int      `json:"limit,omitempty"`
	Skipped   *[]string `json:"skipped,omitempty"`
	Staged    *[]string `json:"staged,omitempty"`
	WrapperId string    `json:"wrapper_id"`
}

CascadeDispatchResponse defines model for CascadeDispatchResponse.

type CascadeDispatchWorkItemHTTP

type CascadeDispatchWorkItemHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *CascadeDispatchResponse
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON503      *AdaptorUnavailable
}

func ParseCascadeDispatchWorkItemHTTP

func ParseCascadeDispatchWorkItemHTTP(rsp *http.Response) (*CascadeDispatchWorkItemHTTP, error)

ParseCascadeDispatchWorkItemHTTP parses an HTTP response from a CascadeDispatchWorkItemWithResponse call

func (CascadeDispatchWorkItemHTTP) ContentType

func (r CascadeDispatchWorkItemHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CascadeDispatchWorkItemHTTP) Status

Status returns HTTPResponse.Status

func (CascadeDispatchWorkItemHTTP) StatusCode

func (r CascadeDispatchWorkItemHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CascadeDispatchWorkItemJSONRequestBody

type CascadeDispatchWorkItemJSONRequestBody = CascadeDispatchRequest

CascadeDispatchWorkItemJSONRequestBody defines body for CascadeDispatchWorkItem for application/json ContentType.

type ChangeRef

type ChangeRef struct {
	// Kind Labels what changed. Empty string means the skill did not categorise the change.
	Kind ChangeRefKind `json:"kind"`
	Path string        `json:"path"`

	// Summary Human-readable one-liner. Empty when the skill did not synthesise one.
	Summary string `json:"summary"`
}

ChangeRef Points into the plan tree for the most-recent skill edit. The SPA tone-codes the diff badge by `kind`. Path is slash-joined (e.g. `milestone:1/epic:0/bead:2`); empty means the change spans the whole tree.

type ChangeRefKind

type ChangeRefKind string

ChangeRefKind Labels what changed. Empty string means the skill did not categorise the change.

const (
	Added   ChangeRefKind = "added"
	Edited  ChangeRefKind = "edited"
	Empty   ChangeRefKind = ""
	Removed ChangeRefKind = "removed"
	Renamed ChangeRefKind = "renamed"
)

Defines values for ChangeRefKind.

func (ChangeRefKind) Valid

func (e ChangeRefKind) Valid() bool

Valid indicates whether the value is a known member of the ChangeRefKind enum.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AdoptSpec

func (c *Client) AdoptSpec(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *AdoptSpecParams, body AdoptSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AdoptSpecWithBody

func (c *Client) AdoptSpecWithBody(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *AdoptSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) BindProject

func (c *Client) BindProject(ctx context.Context, params *BindProjectParams, body BindProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) BindProjectWithBody

func (c *Client) BindProjectWithBody(ctx context.Context, params *BindProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CascadeDispatchWorkItem

func (c *Client) CascadeDispatchWorkItem(ctx context.Context, id string, body CascadeDispatchWorkItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CascadeDispatchWorkItemWithBody

func (c *Client) CascadeDispatchWorkItemWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateDecision

func (c *Client) CreateDecision(ctx context.Context, wsid WorkspaceID, params *CreateDecisionParams, body CreateDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateDecisionWithBody

func (c *Client) CreateDecisionWithBody(ctx context.Context, wsid WorkspaceID, params *CreateDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProjectWithBody

func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DecisionRefs

func (c *Client) DecisionRefs(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteWorkItem

func (c *Client) DeleteWorkItem(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) EnsureInteraction

func (c *Client) EnsureInteraction(ctx context.Context, body EnsureInteractionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) EnsureInteractionWithBody

func (c *Client) EnsureInteractionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAdaptorsHealth

func (c *Client) GetAdaptorsHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCapabilities

func (c *Client) GetCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConfig

func (c *Client) GetConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDecision

func (c *Client) GetDecision(ctx context.Context, wsid WorkspaceID, id DecisionID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHealth

func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOpenAPISpec

func (c *Client) GetOpenAPISpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPlannerCoach

func (c *Client) GetPlannerCoach(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetReadyz

func (c *Client) GetReadyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSpecKitFeature

func (c *Client) GetSpecKitFeature(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVersion

func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWhoami

func (c *Client) GetWhoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWorkItem

func (c *Client) GetWorkItem(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAgentGroups

func (c *Client) ListAgentGroups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAgents

func (c *Client) ListAgents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListConsults

func (c *Client) ListConsults(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListDecisions

func (c *Client) ListDecisions(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListEscalations

func (c *Client) ListEscalations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListLabels

func (c *Client) ListLabels(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListPersonasV1

func (c *Client) ListPersonasV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListProjects

func (c *Client) ListProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListRecentWalks

func (c *Client) ListRecentWalks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListRepositories

func (c *Client) ListRepositories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSessions

func (c *Client) ListSessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSkills

func (c *Client) ListSkills(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSpecKitFeatures

func (c *Client) ListSpecKitFeatures(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSpecs

func (c *Client) ListSpecs(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSprints

func (c *Client) ListSprints(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListWorkItems

func (c *Client) ListWorkItems(ctx context.Context, params *ListWorkItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) LockDecision

func (c *Client) LockDecision(ctx context.Context, wsid WorkspaceID, id DecisionID, params *LockDecisionParams, body LockDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) LockDecisionWithBody

func (c *Client) LockDecisionWithBody(ctx context.Context, wsid WorkspaceID, id DecisionID, params *LockDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchSpec

func (c *Client) PatchSpec(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *PatchSpecParams, body PatchSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchSpecWithBody

func (c *Client) PatchSpecWithBody(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *PatchSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PlanSpecKitFeatureSync

func (c *Client) PlanSpecKitFeatureSync(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PrepareOnboardingSetup

func (c *Client) PrepareOnboardingSetup(ctx context.Context, body PrepareOnboardingSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PrepareOnboardingSetupWithBody

func (c *Client) PrepareOnboardingSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ProbeOnboarder

func (c *Client) ProbeOnboarder(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RatifyNewProject

func (c *Client) RatifyNewProject(ctx context.Context, id string, body RatifyNewProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RatifyNewProjectWithBody

func (c *Client) RatifyNewProjectWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReconcileSpec

func (c *Client) ReconcileSpec(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *ReconcileSpecParams, body ReconcileSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReconcileSpecWithBody

func (c *Client) ReconcileSpecWithBody(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *ReconcileSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SnapshotSpec

func (c *Client) SnapshotSpec(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *SnapshotSpecParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartNewProject

func (c *Client) StartNewProject(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartWalk

func (c *Client) StartWalk(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SubmitNewProjectTurn

func (c *Client) SubmitNewProjectTurn(ctx context.Context, id string, body SubmitNewProjectTurnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SubmitNewProjectTurnWithBody

func (c *Client) SubmitNewProjectTurnWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SyncSpecKitFeature

func (c *Client) SyncSpecKitFeature(ctx context.Context, id string, params *SyncSpecKitFeatureParams, body SyncSpecKitFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SyncSpecKitFeatureWithBody

func (c *Client) SyncSpecKitFeatureWithBody(ctx context.Context, id string, params *SyncSpecKitFeatureParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) WatchSpec

func (c *Client) WatchSpec(ctx context.Context, wsid WorkspaceID, slug SpecSlug, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) WorkspaceStatus

func (c *Client) WorkspaceStatus(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetAdaptorsHealth request
	GetAdaptorsHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAgentGroups request
	ListAgentGroups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAgents request
	ListAgents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCapabilities request
	GetCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConfig request
	GetConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListConsults request
	ListConsults(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListEscalations request
	ListEscalations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHealth request
	GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOpenAPISpec request
	GetOpenAPISpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPlannerCoach request
	GetPlannerCoach(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReadyz request
	GetReadyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRepositories request
	ListRepositories(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSessions request
	ListSessions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSkills request
	ListSkills(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSpecKitFeatures request
	ListSpecKitFeatures(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSpecKitFeature request
	GetSpecKitFeature(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PlanSpecKitFeatureSync request
	PlanSpecKitFeatureSync(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SyncSpecKitFeatureWithBody request with any body
	SyncSpecKitFeatureWithBody(ctx context.Context, id string, params *SyncSpecKitFeatureParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SyncSpecKitFeature(ctx context.Context, id string, params *SyncSpecKitFeatureParams, body SyncSpecKitFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSprints request
	ListSprints(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// EnsureInteractionWithBody request with any body
	EnsureInteractionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	EnsureInteraction(ctx context.Context, body EnsureInteractionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProjectWithBody request with any body
	CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartNewProject request
	StartNewProject(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RatifyNewProjectWithBody request with any body
	RatifyNewProjectWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RatifyNewProject(ctx context.Context, id string, body RatifyNewProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitNewProjectTurnWithBody request with any body
	SubmitNewProjectTurnWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SubmitNewProjectTurn(ctx context.Context, id string, body SubmitNewProjectTurnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ProbeOnboarder request
	ProbeOnboarder(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PrepareOnboardingSetupWithBody request with any body
	PrepareOnboardingSetupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PrepareOnboardingSetup(ctx context.Context, body PrepareOnboardingSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPersonasV1 request
	ListPersonasV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListProjects request
	ListProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BindProjectWithBody request with any body
	BindProjectWithBody(ctx context.Context, params *BindProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	BindProject(ctx context.Context, params *BindProjectParams, body BindProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRecentWalks request
	ListRecentWalks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartWalk request
	StartWalk(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDecisions request
	ListDecisions(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateDecisionWithBody request with any body
	CreateDecisionWithBody(ctx context.Context, wsid WorkspaceID, params *CreateDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateDecision(ctx context.Context, wsid WorkspaceID, params *CreateDecisionParams, body CreateDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DecisionRefs request
	DecisionRefs(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDecision request
	GetDecision(ctx context.Context, wsid WorkspaceID, id DecisionID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LockDecisionWithBody request with any body
	LockDecisionWithBody(ctx context.Context, wsid WorkspaceID, id DecisionID, params *LockDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	LockDecision(ctx context.Context, wsid WorkspaceID, id DecisionID, params *LockDecisionParams, body LockDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListLabels request
	ListLabels(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSpecs request
	ListSpecs(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PatchSpecWithBody request with any body
	PatchSpecWithBody(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *PatchSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PatchSpec(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *PatchSpecParams, body PatchSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AdoptSpecWithBody request with any body
	AdoptSpecWithBody(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *AdoptSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AdoptSpec(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *AdoptSpecParams, body AdoptSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReconcileSpecWithBody request with any body
	ReconcileSpecWithBody(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *ReconcileSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReconcileSpec(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *ReconcileSpecParams, body ReconcileSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SnapshotSpec request
	SnapshotSpec(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *SnapshotSpecParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WatchSpec request
	WatchSpec(ctx context.Context, wsid WorkspaceID, slug SpecSlug, reqEditors ...RequestEditorFn) (*http.Response, error)

	// WorkspaceStatus request
	WorkspaceStatus(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVersion request
	GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWhoami request
	GetWhoami(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWorkItems request
	ListWorkItems(ctx context.Context, params *ListWorkItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteWorkItem request
	DeleteWorkItem(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkItem request
	GetWorkItem(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CascadeDispatchWorkItemWithBody request with any body
	CascadeDispatchWorkItemWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CascadeDispatchWorkItem(ctx context.Context, id string, body CascadeDispatchWorkItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AdoptSpecWithBodyWithResponse

func (c *ClientWithResponses) AdoptSpecWithBodyWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *AdoptSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdoptSpecHTTP, error)

AdoptSpecWithBodyWithResponse request with arbitrary body returning *AdoptSpecHTTP

func (*ClientWithResponses) AdoptSpecWithResponse

func (c *ClientWithResponses) AdoptSpecWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *AdoptSpecParams, body AdoptSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*AdoptSpecHTTP, error)

func (*ClientWithResponses) BindProjectWithBodyWithResponse

func (c *ClientWithResponses) BindProjectWithBodyWithResponse(ctx context.Context, params *BindProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BindProjectHTTP, error)

BindProjectWithBodyWithResponse request with arbitrary body returning *BindProjectHTTP

func (*ClientWithResponses) BindProjectWithResponse

func (c *ClientWithResponses) BindProjectWithResponse(ctx context.Context, params *BindProjectParams, body BindProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*BindProjectHTTP, error)

func (*ClientWithResponses) CascadeDispatchWorkItemWithBodyWithResponse

func (c *ClientWithResponses) CascadeDispatchWorkItemWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CascadeDispatchWorkItemHTTP, error)

CascadeDispatchWorkItemWithBodyWithResponse request with arbitrary body returning *CascadeDispatchWorkItemHTTP

func (*ClientWithResponses) CascadeDispatchWorkItemWithResponse

func (c *ClientWithResponses) CascadeDispatchWorkItemWithResponse(ctx context.Context, id string, body CascadeDispatchWorkItemJSONRequestBody, reqEditors ...RequestEditorFn) (*CascadeDispatchWorkItemHTTP, error)

func (*ClientWithResponses) CreateDecisionWithBodyWithResponse

func (c *ClientWithResponses) CreateDecisionWithBodyWithResponse(ctx context.Context, wsid WorkspaceID, params *CreateDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDecisionHTTP, error)

CreateDecisionWithBodyWithResponse request with arbitrary body returning *CreateDecisionHTTP

func (*ClientWithResponses) CreateDecisionWithResponse

func (c *ClientWithResponses) CreateDecisionWithResponse(ctx context.Context, wsid WorkspaceID, params *CreateDecisionParams, body CreateDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDecisionHTTP, error)

func (*ClientWithResponses) CreateProjectWithBodyWithResponse

func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectHTTP, error)

CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectHTTP

func (*ClientWithResponses) CreateProjectWithResponse

func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectHTTP, error)

func (*ClientWithResponses) DecisionRefsWithResponse

func (c *ClientWithResponses) DecisionRefsWithResponse(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*DecisionRefsHTTP, error)

DecisionRefsWithResponse request returning *DecisionRefsHTTP

func (*ClientWithResponses) DeleteWorkItemWithResponse

func (c *ClientWithResponses) DeleteWorkItemWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteWorkItemHTTP, error)

DeleteWorkItemWithResponse request returning *DeleteWorkItemHTTP

func (*ClientWithResponses) EnsureInteractionWithBodyWithResponse

func (c *ClientWithResponses) EnsureInteractionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnsureInteractionHTTP, error)

EnsureInteractionWithBodyWithResponse request with arbitrary body returning *EnsureInteractionHTTP

func (*ClientWithResponses) EnsureInteractionWithResponse

func (c *ClientWithResponses) EnsureInteractionWithResponse(ctx context.Context, body EnsureInteractionJSONRequestBody, reqEditors ...RequestEditorFn) (*EnsureInteractionHTTP, error)

func (*ClientWithResponses) GetAdaptorsHealthWithResponse

func (c *ClientWithResponses) GetAdaptorsHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdaptorsHealthHTTP, error)

GetAdaptorsHealthWithResponse request returning *GetAdaptorsHealthHTTP

func (*ClientWithResponses) GetCapabilitiesWithResponse

func (c *ClientWithResponses) GetCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCapabilitiesHTTP, error)

GetCapabilitiesWithResponse request returning *GetCapabilitiesHTTP

func (*ClientWithResponses) GetConfigWithResponse

func (c *ClientWithResponses) GetConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigHTTP, error)

GetConfigWithResponse request returning *GetConfigHTTP

func (*ClientWithResponses) GetDecisionWithResponse

func (c *ClientWithResponses) GetDecisionWithResponse(ctx context.Context, wsid WorkspaceID, id DecisionID, reqEditors ...RequestEditorFn) (*GetDecisionHTTP, error)

GetDecisionWithResponse request returning *GetDecisionHTTP

func (*ClientWithResponses) GetHealthWithResponse

func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthHTTP, error)

GetHealthWithResponse request returning *GetHealthHTTP

func (*ClientWithResponses) GetOpenAPISpecWithResponse

func (c *ClientWithResponses) GetOpenAPISpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPISpecHTTP, error)

GetOpenAPISpecWithResponse request returning *GetOpenAPISpecHTTP

func (*ClientWithResponses) GetPlannerCoachWithResponse

func (c *ClientWithResponses) GetPlannerCoachWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPlannerCoachHTTP, error)

GetPlannerCoachWithResponse request returning *GetPlannerCoachHTTP

func (*ClientWithResponses) GetReadyzWithResponse

func (c *ClientWithResponses) GetReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyzHTTP, error)

GetReadyzWithResponse request returning *GetReadyzHTTP

func (*ClientWithResponses) GetSpecKitFeatureWithResponse

func (c *ClientWithResponses) GetSpecKitFeatureWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetSpecKitFeatureHTTP, error)

GetSpecKitFeatureWithResponse request returning *GetSpecKitFeatureHTTP

func (*ClientWithResponses) GetVersionWithResponse

func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionHTTP, error)

GetVersionWithResponse request returning *GetVersionHTTP

func (*ClientWithResponses) GetWhoamiWithResponse

func (c *ClientWithResponses) GetWhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWhoamiHTTP, error)

GetWhoamiWithResponse request returning *GetWhoamiHTTP

func (*ClientWithResponses) GetWorkItemWithResponse

func (c *ClientWithResponses) GetWorkItemWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetWorkItemHTTP, error)

GetWorkItemWithResponse request returning *GetWorkItemHTTP

func (*ClientWithResponses) ListAgentGroupsWithResponse

func (c *ClientWithResponses) ListAgentGroupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAgentGroupsHTTP, error)

ListAgentGroupsWithResponse request returning *ListAgentGroupsHTTP

func (*ClientWithResponses) ListAgentsWithResponse

func (c *ClientWithResponses) ListAgentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAgentsHTTP, error)

ListAgentsWithResponse request returning *ListAgentsHTTP

func (*ClientWithResponses) ListConsultsWithResponse

func (c *ClientWithResponses) ListConsultsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListConsultsHTTP, error)

ListConsultsWithResponse request returning *ListConsultsHTTP

func (*ClientWithResponses) ListDecisionsWithResponse

func (c *ClientWithResponses) ListDecisionsWithResponse(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*ListDecisionsHTTP, error)

ListDecisionsWithResponse request returning *ListDecisionsHTTP

func (*ClientWithResponses) ListEscalationsWithResponse

func (c *ClientWithResponses) ListEscalationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEscalationsHTTP, error)

ListEscalationsWithResponse request returning *ListEscalationsHTTP

func (*ClientWithResponses) ListLabelsWithResponse

func (c *ClientWithResponses) ListLabelsWithResponse(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*ListLabelsHTTP, error)

ListLabelsWithResponse request returning *ListLabelsHTTP

func (*ClientWithResponses) ListPersonasV1WithResponse

func (c *ClientWithResponses) ListPersonasV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPersonasV1HTTP, error)

ListPersonasV1WithResponse request returning *ListPersonasV1HTTP

func (*ClientWithResponses) ListProjectsWithResponse

func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListProjectsHTTP, error)

ListProjectsWithResponse request returning *ListProjectsHTTP

func (*ClientWithResponses) ListRecentWalksWithResponse

func (c *ClientWithResponses) ListRecentWalksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRecentWalksHTTP, error)

ListRecentWalksWithResponse request returning *ListRecentWalksHTTP

func (*ClientWithResponses) ListRepositoriesWithResponse

func (c *ClientWithResponses) ListRepositoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRepositoriesHTTP, error)

ListRepositoriesWithResponse request returning *ListRepositoriesHTTP

func (*ClientWithResponses) ListSessionsWithResponse

func (c *ClientWithResponses) ListSessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSessionsHTTP, error)

ListSessionsWithResponse request returning *ListSessionsHTTP

func (*ClientWithResponses) ListSkillsWithResponse

func (c *ClientWithResponses) ListSkillsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSkillsHTTP, error)

ListSkillsWithResponse request returning *ListSkillsHTTP

func (*ClientWithResponses) ListSpecKitFeaturesWithResponse

func (c *ClientWithResponses) ListSpecKitFeaturesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSpecKitFeaturesHTTP, error)

ListSpecKitFeaturesWithResponse request returning *ListSpecKitFeaturesHTTP

func (*ClientWithResponses) ListSpecsWithResponse

func (c *ClientWithResponses) ListSpecsWithResponse(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*ListSpecsHTTP, error)

ListSpecsWithResponse request returning *ListSpecsHTTP

func (*ClientWithResponses) ListSprintsWithResponse

func (c *ClientWithResponses) ListSprintsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSprintsHTTP, error)

ListSprintsWithResponse request returning *ListSprintsHTTP

func (*ClientWithResponses) ListWorkItemsWithResponse

func (c *ClientWithResponses) ListWorkItemsWithResponse(ctx context.Context, params *ListWorkItemsParams, reqEditors ...RequestEditorFn) (*ListWorkItemsHTTP, error)

ListWorkItemsWithResponse request returning *ListWorkItemsHTTP

func (*ClientWithResponses) LockDecisionWithBodyWithResponse

func (c *ClientWithResponses) LockDecisionWithBodyWithResponse(ctx context.Context, wsid WorkspaceID, id DecisionID, params *LockDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LockDecisionHTTP, error)

LockDecisionWithBodyWithResponse request with arbitrary body returning *LockDecisionHTTP

func (*ClientWithResponses) LockDecisionWithResponse

func (c *ClientWithResponses) LockDecisionWithResponse(ctx context.Context, wsid WorkspaceID, id DecisionID, params *LockDecisionParams, body LockDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*LockDecisionHTTP, error)

func (*ClientWithResponses) PatchSpecWithBodyWithResponse

func (c *ClientWithResponses) PatchSpecWithBodyWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *PatchSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchSpecHTTP, error)

PatchSpecWithBodyWithResponse request with arbitrary body returning *PatchSpecHTTP

func (*ClientWithResponses) PatchSpecWithResponse

func (c *ClientWithResponses) PatchSpecWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *PatchSpecParams, body PatchSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchSpecHTTP, error)

func (*ClientWithResponses) PlanSpecKitFeatureSyncWithResponse

func (c *ClientWithResponses) PlanSpecKitFeatureSyncWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PlanSpecKitFeatureSyncHTTP, error)

PlanSpecKitFeatureSyncWithResponse request returning *PlanSpecKitFeatureSyncHTTP

func (*ClientWithResponses) PrepareOnboardingSetupWithBodyWithResponse

func (c *ClientWithResponses) PrepareOnboardingSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrepareOnboardingSetupHTTP, error)

PrepareOnboardingSetupWithBodyWithResponse request with arbitrary body returning *PrepareOnboardingSetupHTTP

func (*ClientWithResponses) PrepareOnboardingSetupWithResponse

func (c *ClientWithResponses) PrepareOnboardingSetupWithResponse(ctx context.Context, body PrepareOnboardingSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*PrepareOnboardingSetupHTTP, error)

func (*ClientWithResponses) ProbeOnboarderWithResponse

func (c *ClientWithResponses) ProbeOnboarderWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProbeOnboarderHTTP, error)

ProbeOnboarderWithResponse request returning *ProbeOnboarderHTTP

func (*ClientWithResponses) RatifyNewProjectWithBodyWithResponse

func (c *ClientWithResponses) RatifyNewProjectWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RatifyNewProjectHTTP, error)

RatifyNewProjectWithBodyWithResponse request with arbitrary body returning *RatifyNewProjectHTTP

func (*ClientWithResponses) RatifyNewProjectWithResponse

func (c *ClientWithResponses) RatifyNewProjectWithResponse(ctx context.Context, id string, body RatifyNewProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*RatifyNewProjectHTTP, error)

func (*ClientWithResponses) ReconcileSpecWithBodyWithResponse

func (c *ClientWithResponses) ReconcileSpecWithBodyWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *ReconcileSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReconcileSpecHTTP, error)

ReconcileSpecWithBodyWithResponse request with arbitrary body returning *ReconcileSpecHTTP

func (*ClientWithResponses) ReconcileSpecWithResponse

func (c *ClientWithResponses) ReconcileSpecWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *ReconcileSpecParams, body ReconcileSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*ReconcileSpecHTTP, error)

func (*ClientWithResponses) SnapshotSpecWithResponse

func (c *ClientWithResponses) SnapshotSpecWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *SnapshotSpecParams, reqEditors ...RequestEditorFn) (*SnapshotSpecHTTP, error)

SnapshotSpecWithResponse request returning *SnapshotSpecHTTP

func (*ClientWithResponses) StartNewProjectWithResponse

func (c *ClientWithResponses) StartNewProjectWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StartNewProjectHTTP, error)

StartNewProjectWithResponse request returning *StartNewProjectHTTP

func (*ClientWithResponses) StartWalkWithResponse

func (c *ClientWithResponses) StartWalkWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StartWalkHTTP, error)

StartWalkWithResponse request returning *StartWalkHTTP

func (*ClientWithResponses) SubmitNewProjectTurnWithBodyWithResponse

func (c *ClientWithResponses) SubmitNewProjectTurnWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitNewProjectTurnHTTP, error)

SubmitNewProjectTurnWithBodyWithResponse request with arbitrary body returning *SubmitNewProjectTurnHTTP

func (*ClientWithResponses) SubmitNewProjectTurnWithResponse

func (c *ClientWithResponses) SubmitNewProjectTurnWithResponse(ctx context.Context, id string, body SubmitNewProjectTurnJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitNewProjectTurnHTTP, error)

func (*ClientWithResponses) SyncSpecKitFeatureWithBodyWithResponse

func (c *ClientWithResponses) SyncSpecKitFeatureWithBodyWithResponse(ctx context.Context, id string, params *SyncSpecKitFeatureParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncSpecKitFeatureHTTP, error)

SyncSpecKitFeatureWithBodyWithResponse request with arbitrary body returning *SyncSpecKitFeatureHTTP

func (*ClientWithResponses) SyncSpecKitFeatureWithResponse

func (c *ClientWithResponses) SyncSpecKitFeatureWithResponse(ctx context.Context, id string, params *SyncSpecKitFeatureParams, body SyncSpecKitFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncSpecKitFeatureHTTP, error)

func (*ClientWithResponses) WatchSpecWithResponse

func (c *ClientWithResponses) WatchSpecWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, reqEditors ...RequestEditorFn) (*WatchSpecHTTP, error)

WatchSpecWithResponse request returning *WatchSpecHTTP

func (*ClientWithResponses) WorkspaceStatusWithResponse

func (c *ClientWithResponses) WorkspaceStatusWithResponse(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*WorkspaceStatusHTTP, error)

WorkspaceStatusWithResponse request returning *WorkspaceStatusHTTP

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetAdaptorsHealthWithResponse request
	GetAdaptorsHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdaptorsHealthHTTP, error)

	// ListAgentGroupsWithResponse request
	ListAgentGroupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAgentGroupsHTTP, error)

	// ListAgentsWithResponse request
	ListAgentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAgentsHTTP, error)

	// GetCapabilitiesWithResponse request
	GetCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCapabilitiesHTTP, error)

	// GetConfigWithResponse request
	GetConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigHTTP, error)

	// ListConsultsWithResponse request
	ListConsultsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListConsultsHTTP, error)

	// ListEscalationsWithResponse request
	ListEscalationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListEscalationsHTTP, error)

	// GetHealthWithResponse request
	GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthHTTP, error)

	// GetOpenAPISpecWithResponse request
	GetOpenAPISpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPISpecHTTP, error)

	// GetPlannerCoachWithResponse request
	GetPlannerCoachWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPlannerCoachHTTP, error)

	// GetReadyzWithResponse request
	GetReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyzHTTP, error)

	// ListRepositoriesWithResponse request
	ListRepositoriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRepositoriesHTTP, error)

	// ListSessionsWithResponse request
	ListSessionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSessionsHTTP, error)

	// ListSkillsWithResponse request
	ListSkillsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSkillsHTTP, error)

	// ListSpecKitFeaturesWithResponse request
	ListSpecKitFeaturesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSpecKitFeaturesHTTP, error)

	// GetSpecKitFeatureWithResponse request
	GetSpecKitFeatureWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetSpecKitFeatureHTTP, error)

	// PlanSpecKitFeatureSyncWithResponse request
	PlanSpecKitFeatureSyncWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PlanSpecKitFeatureSyncHTTP, error)

	// SyncSpecKitFeatureWithBodyWithResponse request with any body
	SyncSpecKitFeatureWithBodyWithResponse(ctx context.Context, id string, params *SyncSpecKitFeatureParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncSpecKitFeatureHTTP, error)

	SyncSpecKitFeatureWithResponse(ctx context.Context, id string, params *SyncSpecKitFeatureParams, body SyncSpecKitFeatureJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncSpecKitFeatureHTTP, error)

	// ListSprintsWithResponse request
	ListSprintsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSprintsHTTP, error)

	// EnsureInteractionWithBodyWithResponse request with any body
	EnsureInteractionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnsureInteractionHTTP, error)

	EnsureInteractionWithResponse(ctx context.Context, body EnsureInteractionJSONRequestBody, reqEditors ...RequestEditorFn) (*EnsureInteractionHTTP, error)

	// CreateProjectWithBodyWithResponse request with any body
	CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectHTTP, error)

	CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectHTTP, error)

	// StartNewProjectWithResponse request
	StartNewProjectWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StartNewProjectHTTP, error)

	// RatifyNewProjectWithBodyWithResponse request with any body
	RatifyNewProjectWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RatifyNewProjectHTTP, error)

	RatifyNewProjectWithResponse(ctx context.Context, id string, body RatifyNewProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*RatifyNewProjectHTTP, error)

	// SubmitNewProjectTurnWithBodyWithResponse request with any body
	SubmitNewProjectTurnWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitNewProjectTurnHTTP, error)

	SubmitNewProjectTurnWithResponse(ctx context.Context, id string, body SubmitNewProjectTurnJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitNewProjectTurnHTTP, error)

	// ProbeOnboarderWithResponse request
	ProbeOnboarderWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ProbeOnboarderHTTP, error)

	// PrepareOnboardingSetupWithBodyWithResponse request with any body
	PrepareOnboardingSetupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrepareOnboardingSetupHTTP, error)

	PrepareOnboardingSetupWithResponse(ctx context.Context, body PrepareOnboardingSetupJSONRequestBody, reqEditors ...RequestEditorFn) (*PrepareOnboardingSetupHTTP, error)

	// ListPersonasV1WithResponse request
	ListPersonasV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListPersonasV1HTTP, error)

	// ListProjectsWithResponse request
	ListProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListProjectsHTTP, error)

	// BindProjectWithBodyWithResponse request with any body
	BindProjectWithBodyWithResponse(ctx context.Context, params *BindProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BindProjectHTTP, error)

	BindProjectWithResponse(ctx context.Context, params *BindProjectParams, body BindProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*BindProjectHTTP, error)

	// ListRecentWalksWithResponse request
	ListRecentWalksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRecentWalksHTTP, error)

	// StartWalkWithResponse request
	StartWalkWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StartWalkHTTP, error)

	// ListDecisionsWithResponse request
	ListDecisionsWithResponse(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*ListDecisionsHTTP, error)

	// CreateDecisionWithBodyWithResponse request with any body
	CreateDecisionWithBodyWithResponse(ctx context.Context, wsid WorkspaceID, params *CreateDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDecisionHTTP, error)

	CreateDecisionWithResponse(ctx context.Context, wsid WorkspaceID, params *CreateDecisionParams, body CreateDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDecisionHTTP, error)

	// DecisionRefsWithResponse request
	DecisionRefsWithResponse(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*DecisionRefsHTTP, error)

	// GetDecisionWithResponse request
	GetDecisionWithResponse(ctx context.Context, wsid WorkspaceID, id DecisionID, reqEditors ...RequestEditorFn) (*GetDecisionHTTP, error)

	// LockDecisionWithBodyWithResponse request with any body
	LockDecisionWithBodyWithResponse(ctx context.Context, wsid WorkspaceID, id DecisionID, params *LockDecisionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LockDecisionHTTP, error)

	LockDecisionWithResponse(ctx context.Context, wsid WorkspaceID, id DecisionID, params *LockDecisionParams, body LockDecisionJSONRequestBody, reqEditors ...RequestEditorFn) (*LockDecisionHTTP, error)

	// ListLabelsWithResponse request
	ListLabelsWithResponse(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*ListLabelsHTTP, error)

	// ListSpecsWithResponse request
	ListSpecsWithResponse(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*ListSpecsHTTP, error)

	// PatchSpecWithBodyWithResponse request with any body
	PatchSpecWithBodyWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *PatchSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchSpecHTTP, error)

	PatchSpecWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *PatchSpecParams, body PatchSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchSpecHTTP, error)

	// AdoptSpecWithBodyWithResponse request with any body
	AdoptSpecWithBodyWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *AdoptSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdoptSpecHTTP, error)

	AdoptSpecWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *AdoptSpecParams, body AdoptSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*AdoptSpecHTTP, error)

	// ReconcileSpecWithBodyWithResponse request with any body
	ReconcileSpecWithBodyWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *ReconcileSpecParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReconcileSpecHTTP, error)

	ReconcileSpecWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *ReconcileSpecParams, body ReconcileSpecJSONRequestBody, reqEditors ...RequestEditorFn) (*ReconcileSpecHTTP, error)

	// SnapshotSpecWithResponse request
	SnapshotSpecWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, params *SnapshotSpecParams, reqEditors ...RequestEditorFn) (*SnapshotSpecHTTP, error)

	// WatchSpecWithResponse request
	WatchSpecWithResponse(ctx context.Context, wsid WorkspaceID, slug SpecSlug, reqEditors ...RequestEditorFn) (*WatchSpecHTTP, error)

	// WorkspaceStatusWithResponse request
	WorkspaceStatusWithResponse(ctx context.Context, wsid WorkspaceID, reqEditors ...RequestEditorFn) (*WorkspaceStatusHTTP, error)

	// GetVersionWithResponse request
	GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionHTTP, error)

	// GetWhoamiWithResponse request
	GetWhoamiWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWhoamiHTTP, error)

	// ListWorkItemsWithResponse request
	ListWorkItemsWithResponse(ctx context.Context, params *ListWorkItemsParams, reqEditors ...RequestEditorFn) (*ListWorkItemsHTTP, error)

	// DeleteWorkItemWithResponse request
	DeleteWorkItemWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteWorkItemHTTP, error)

	// GetWorkItemWithResponse request
	GetWorkItemWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetWorkItemHTTP, error)

	// CascadeDispatchWorkItemWithBodyWithResponse request with any body
	CascadeDispatchWorkItemWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CascadeDispatchWorkItemHTTP, error)

	CascadeDispatchWorkItemWithResponse(ctx context.Context, id string, body CascadeDispatchWorkItemJSONRequestBody, reqEditors ...RequestEditorFn) (*CascadeDispatchWorkItemHTTP, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type ConfigResponse

type ConfigResponse struct {
	AuthMode ConfigResponseAuthMode `json:"auth_mode"`

	// BeadsSource Workspace identity — 1:1 with a beads database (gm-77u). Detail strips credentials when source is a dolt-url.
	BeadsSource   BeadsSource `json:"beads_source"`
	City          string      `json:"city"`
	Listen        string      `json:"listen"`
	Port          int         `json:"port"`
	Town          string      `json:"town"`
	YoloAvailable bool        `json:"yolo_available"`
}

ConfigResponse defines model for ConfigResponse.

type ConfigResponseAuthMode

type ConfigResponseAuthMode string

ConfigResponseAuthMode defines model for ConfigResponse.AuthMode.

const (
	ConfigResponseAuthModeNone  ConfigResponseAuthMode = "none"
	ConfigResponseAuthModeOidc  ConfigResponseAuthMode = "oidc"
	ConfigResponseAuthModeToken ConfigResponseAuthMode = "token"
)

Defines values for ConfigResponseAuthMode.

func (ConfigResponseAuthMode) Valid

func (e ConfigResponseAuthMode) Valid() bool

Valid indicates whether the value is a known member of the ConfigResponseAuthMode enum.

type ConfirmNonce

type ConfirmNonce = openapi_types.UUID

ConfirmNonce defines model for ConfirmNonce.

type CreateDecisionHTTP

type CreateDecisionHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON400      *BadRequest
	JSON501      *NotImplemented
}

func ParseCreateDecisionHTTP

func ParseCreateDecisionHTTP(rsp *http.Response) (*CreateDecisionHTTP, error)

ParseCreateDecisionHTTP parses an HTTP response from a CreateDecisionWithResponse call

func (CreateDecisionHTTP) ContentType

func (r CreateDecisionHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateDecisionHTTP) Status

func (r CreateDecisionHTTP) Status() string

Status returns HTTPResponse.Status

func (CreateDecisionHTTP) StatusCode

func (r CreateDecisionHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateDecisionJSONBody

type CreateDecisionJSONBody struct {
	// Body Markdown body.
	Body   string                        `json:"body"`
	Labels *[]string                     `json:"labels,omitempty"`
	Status *CreateDecisionJSONBodyStatus `json:"status,omitempty"`
	Title  string                        `json:"title"`
}

CreateDecisionJSONBody defines parameters for CreateDecision.

type CreateDecisionJSONBodyStatus

type CreateDecisionJSONBodyStatus string

CreateDecisionJSONBodyStatus defines parameters for CreateDecision.

const (
	CreateDecisionJSONBodyStatusAccepted   CreateDecisionJSONBodyStatus = "accepted"
	CreateDecisionJSONBodyStatusProposed   CreateDecisionJSONBodyStatus = "proposed"
	CreateDecisionJSONBodyStatusRejected   CreateDecisionJSONBodyStatus = "rejected"
	CreateDecisionJSONBodyStatusSuperseded CreateDecisionJSONBodyStatus = "superseded"
)

Defines values for CreateDecisionJSONBodyStatus.

func (CreateDecisionJSONBodyStatus) Valid

Valid indicates whether the value is a known member of the CreateDecisionJSONBodyStatus enum.

type CreateDecisionJSONRequestBody

type CreateDecisionJSONRequestBody CreateDecisionJSONBody

CreateDecisionJSONRequestBody defines body for CreateDecision for application/json ContentType.

type CreateDecisionParams

type CreateDecisionParams struct {
	// XGEMBAConfirm Idempotency nonce required by every state-mutating endpoint. The value MUST be a UUID v4 the caller generated locally. Replays of the same nonce against the same route return the cached prior response within the nonce TTL (per-process; see internal/server/nonce.go). Missing or malformed values yield 400. Documented under gm-o9t8.14 as the canonical write-confirm header.
	XGEMBAConfirm ConfirmNonce `json:"X-GEMBA-Confirm"`
}

CreateDecisionParams defines parameters for CreateDecision.

type CreateProjectHTTP

type CreateProjectHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RatifyResponse
	JSON400      *Error
	JSON409      *RatifyError
	JSON500      *RatifyError
	JSON503      *AdaptorUnavailable
}

func ParseCreateProjectHTTP

func ParseCreateProjectHTTP(rsp *http.Response) (*CreateProjectHTTP, error)

ParseCreateProjectHTTP parses an HTTP response from a CreateProjectWithResponse call

func (CreateProjectHTTP) ContentType

func (r CreateProjectHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateProjectHTTP) Status

func (r CreateProjectHTTP) Status() string

Status returns HTTPResponse.Status

func (CreateProjectHTTP) StatusCode

func (r CreateProjectHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateProjectJSONRequestBody

type CreateProjectJSONRequestBody = CreateProjectRequest

CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.

type CreateProjectRequest

type CreateProjectRequest struct {
	// Description Optional one-or-two-line description. Mirrored into .gemba/workspace.toml and the synthesised docs/project.md.
	Description *string `json:"description,omitempty"`

	// ProjectName Project name. Used as the directory name under default_dir.
	ProjectName string `json:"project_name"`
}

CreateProjectRequest Body for `POST /api/v1/newproject/create` — the lightweight project-creation path. No session, no Onboarder, no LLM. The server runs the same atomic ratify transaction the conversational flow uses, but with an empty Milestones[] tree (gm-root.17.13).

type DecisionID

type DecisionID = string

DecisionID defines model for DecisionID.

type DecisionRefsHTTP

type DecisionRefsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON501      *NotImplemented
}

func ParseDecisionRefsHTTP

func ParseDecisionRefsHTTP(rsp *http.Response) (*DecisionRefsHTTP, error)

ParseDecisionRefsHTTP parses an HTTP response from a DecisionRefsWithResponse call

func (DecisionRefsHTTP) ContentType

func (r DecisionRefsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DecisionRefsHTTP) Status

func (r DecisionRefsHTTP) Status() string

Status returns HTTPResponse.Status

func (DecisionRefsHTTP) StatusCode

func (r DecisionRefsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteWorkItemHTTP

type DeleteWorkItemHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WorkItem
	JSON404      *NotFound
	JSON500      *Unsupported
	JSON503      *AdaptorUnavailable
}

func ParseDeleteWorkItemHTTP

func ParseDeleteWorkItemHTTP(rsp *http.Response) (*DeleteWorkItemHTTP, error)

ParseDeleteWorkItemHTTP parses an HTTP response from a DeleteWorkItemWithResponse call

func (DeleteWorkItemHTTP) ContentType

func (r DeleteWorkItemHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteWorkItemHTTP) Status

func (r DeleteWorkItemHTTP) Status() string

Status returns HTTPResponse.Status

func (DeleteWorkItemHTTP) StatusCode

func (r DeleteWorkItemHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DraftBead

type DraftBead struct {
	Acceptance string `json:"Acceptance"`

	// BlocksRefs Intra-tree refs for beads this bead blocks.
	BlocksRefs []string `json:"BlocksRefs"`

	// DependsOnRefs Intra-tree refs (e.g. `milestone:0/epic:1/bead:2`). Ratification resolves these to real bd-… ids in step 8a.
	DependsOnRefs []string `json:"DependsOnRefs"`
	Description   string   `json:"Description"`
	DesignNotes   string   `json:"DesignNotes"`
	Estimate      int      `json:"Estimate"`
	Labels        []string `json:"Labels"`
	Notes         string   `json:"Notes"`
	Priority      int      `json:"Priority"`
	Skills        []string `json:"Skills"`
	Title         string   `json:"Title"`

	// Type One of `task` | `bug` | `feature` | `chore` today. Open string so future bead kinds do not break the SPA.
	Type string `json:"Type"`
}

DraftBead Leaf of the plan tree. All fields are required; empty strings and zero integers are valid empty states (no missing-key surprises at ratification).

type DraftEpic

type DraftEpic struct {
	Acceptance  string      `json:"Acceptance"`
	Beads       []DraftBead `json:"Beads"`
	Description string      `json:"Description"`
	DesignNotes string      `json:"DesignNotes"`
	Estimate    int         `json:"Estimate"`
	Labels      []string    `json:"Labels"`
	Notes       string      `json:"Notes"`
	Priority    int         `json:"Priority"`
	Skills      []string    `json:"Skills"`
	Title       string      `json:"Title"`
}

DraftEpic Groups beads under a milestone in the plan tree.

type DraftMilestone

type DraftMilestone struct {
	Acceptance  string      `json:"Acceptance"`
	Description string      `json:"Description"`
	DesignNotes string      `json:"DesignNotes"`
	Epics       []DraftEpic `json:"Epics"`
	Estimate    int         `json:"Estimate"`
	Labels      []string    `json:"Labels"`
	Notes       string      `json:"Notes"`
	Priority    int         `json:"Priority"`
	Skills      []string    `json:"Skills"`
	Title       string      `json:"Title"`
}

DraftMilestone Top-level node of the plan tree. The `type:milestone` label is added by ratification, not by the skill.

type EnsureInteractionHTTP

type EnsureInteractionHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InteractionSession
	JSON400      *BadRequest
}

func ParseEnsureInteractionHTTP

func ParseEnsureInteractionHTTP(rsp *http.Response) (*EnsureInteractionHTTP, error)

ParseEnsureInteractionHTTP parses an HTTP response from a EnsureInteractionWithResponse call

func (EnsureInteractionHTTP) ContentType

func (r EnsureInteractionHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (EnsureInteractionHTTP) Status

func (r EnsureInteractionHTTP) Status() string

Status returns HTTPResponse.Status

func (EnsureInteractionHTTP) StatusCode

func (r EnsureInteractionHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnsureInteractionJSONRequestBody

type EnsureInteractionJSONRequestBody = EnsureInteractionRequest

EnsureInteractionJSONRequestBody defines body for EnsureInteraction for application/json ContentType.

type EnsureInteractionRequest

type EnsureInteractionRequest struct {
	Kind  *EnsureInteractionRequestKind `json:"kind,omitempty"`
	Scope InteractionScope              `json:"scope"`
}

EnsureInteractionRequest defines model for EnsureInteractionRequest.

type EnsureInteractionRequestKind

type EnsureInteractionRequestKind string

EnsureInteractionRequestKind defines model for EnsureInteractionRequest.Kind.

const (
	DecisionReview     EnsureInteractionRequestKind = "decision_review"
	EscalationTriage   EnsureInteractionRequestKind = "escalation_triage"
	EvidenceReview     EnsureInteractionRequestKind = "evidence_review"
	GembaWalk          EnsureInteractionRequestKind = "gemba_walk"
	PmConsult          EnsureInteractionRequestKind = "pm_consult"
	ProjectOnboarding  EnsureInteractionRequestKind = "project_onboarding"
	SessionSupervision EnsureInteractionRequestKind = "session_supervision"
)

Defines values for EnsureInteractionRequestKind.

func (EnsureInteractionRequestKind) Valid

Valid indicates whether the value is a known member of the EnsureInteractionRequestKind enum.

type Error

type Error struct {
	Error   string `json:"error"`
	Message string `json:"message"`
}

Error Shared error envelope (gm-faz). `error` is a stable token the SPA branches on; `message` is human-readable and may be surfaced verbatim.

type Escalation

type Escalation struct {
	CreatedAt            *time.Time             `json:"created_at,omitempty"`
	Id                   string                 `json:"id"`
	Kind                 string                 `json:"kind"`
	Title                *string                `json:"title,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Escalation defines model for Escalation.

func (Escalation) Get

func (a Escalation) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Escalation. Returns the specified element and whether it was found

func (Escalation) MarshalJSON

func (a Escalation) MarshalJSON() ([]byte, error)

Override default JSON handling for Escalation to handle AdditionalProperties

func (*Escalation) Set

func (a *Escalation) Set(fieldName string, value interface{})

Setter for additional properties for Escalation

func (*Escalation) UnmarshalJSON

func (a *Escalation) UnmarshalJSON(b []byte) error

Override default JSON handling for Escalation to handle AdditionalProperties

type EscalationListEnvelope

type EscalationListEnvelope struct {
	Escalations []Escalation `json:"escalations"`
}

EscalationListEnvelope defines model for EscalationListEnvelope.

type GetAdaptorsHealthHTTP

type GetAdaptorsHealthHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AdaptorsHealthResponse
}

func ParseGetAdaptorsHealthHTTP

func ParseGetAdaptorsHealthHTTP(rsp *http.Response) (*GetAdaptorsHealthHTTP, error)

ParseGetAdaptorsHealthHTTP parses an HTTP response from a GetAdaptorsHealthWithResponse call

func (GetAdaptorsHealthHTTP) ContentType

func (r GetAdaptorsHealthHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAdaptorsHealthHTTP) Status

func (r GetAdaptorsHealthHTTP) Status() string

Status returns HTTPResponse.Status

func (GetAdaptorsHealthHTTP) StatusCode

func (r GetAdaptorsHealthHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCapabilitiesHTTP

type GetCapabilitiesHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CapabilitiesResponse
}

func ParseGetCapabilitiesHTTP

func ParseGetCapabilitiesHTTP(rsp *http.Response) (*GetCapabilitiesHTTP, error)

ParseGetCapabilitiesHTTP parses an HTTP response from a GetCapabilitiesWithResponse call

func (GetCapabilitiesHTTP) ContentType

func (r GetCapabilitiesHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetCapabilitiesHTTP) Status

func (r GetCapabilitiesHTTP) Status() string

Status returns HTTPResponse.Status

func (GetCapabilitiesHTTP) StatusCode

func (r GetCapabilitiesHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetConfigHTTP

type GetConfigHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ConfigResponse
}

func ParseGetConfigHTTP

func ParseGetConfigHTTP(rsp *http.Response) (*GetConfigHTTP, error)

ParseGetConfigHTTP parses an HTTP response from a GetConfigWithResponse call

func (GetConfigHTTP) ContentType

func (r GetConfigHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetConfigHTTP) Status

func (r GetConfigHTTP) Status() string

Status returns HTTPResponse.Status

func (GetConfigHTTP) StatusCode

func (r GetConfigHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDecisionHTTP

type GetDecisionHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON404      *NotFound
	JSON501      *NotImplemented
}

func ParseGetDecisionHTTP

func ParseGetDecisionHTTP(rsp *http.Response) (*GetDecisionHTTP, error)

ParseGetDecisionHTTP parses an HTTP response from a GetDecisionWithResponse call

func (GetDecisionHTTP) ContentType

func (r GetDecisionHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDecisionHTTP) Status

func (r GetDecisionHTTP) Status() string

Status returns HTTPResponse.Status

func (GetDecisionHTTP) StatusCode

func (r GetDecisionHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHealthHTTP

type GetHealthHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HealthResponse
}

func ParseGetHealthHTTP

func ParseGetHealthHTTP(rsp *http.Response) (*GetHealthHTTP, error)

ParseGetHealthHTTP parses an HTTP response from a GetHealthWithResponse call

func (GetHealthHTTP) ContentType

func (r GetHealthHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetHealthHTTP) Status

func (r GetHealthHTTP) Status() string

Status returns HTTPResponse.Status

func (GetHealthHTTP) StatusCode

func (r GetHealthHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOpenAPISpecHTTP

type GetOpenAPISpecHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParseGetOpenAPISpecHTTP

func ParseGetOpenAPISpecHTTP(rsp *http.Response) (*GetOpenAPISpecHTTP, error)

ParseGetOpenAPISpecHTTP parses an HTTP response from a GetOpenAPISpecWithResponse call

func (GetOpenAPISpecHTTP) ContentType

func (r GetOpenAPISpecHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOpenAPISpecHTTP) Status

func (r GetOpenAPISpecHTTP) Status() string

Status returns HTTPResponse.Status

func (GetOpenAPISpecHTTP) StatusCode

func (r GetOpenAPISpecHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPlannerCoachHTTP

type GetPlannerCoachHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetPlannerCoachHTTP

func ParseGetPlannerCoachHTTP(rsp *http.Response) (*GetPlannerCoachHTTP, error)

ParseGetPlannerCoachHTTP parses an HTTP response from a GetPlannerCoachWithResponse call

func (GetPlannerCoachHTTP) ContentType

func (r GetPlannerCoachHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPlannerCoachHTTP) Status

func (r GetPlannerCoachHTTP) Status() string

Status returns HTTPResponse.Status

func (GetPlannerCoachHTTP) StatusCode

func (r GetPlannerCoachHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetReadyzHTTP

type GetReadyzHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Checks *map[string]string `json:"checks,omitempty"`
		Status *string            `json:"status,omitempty"`
	}
	JSON503 *struct {
		Checks *map[string]string `json:"checks,omitempty"`
		Status *string            `json:"status,omitempty"`
	}
}

func ParseGetReadyzHTTP

func ParseGetReadyzHTTP(rsp *http.Response) (*GetReadyzHTTP, error)

ParseGetReadyzHTTP parses an HTTP response from a GetReadyzWithResponse call

func (GetReadyzHTTP) ContentType

func (r GetReadyzHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetReadyzHTTP) Status

func (r GetReadyzHTTP) Status() string

Status returns HTTPResponse.Status

func (GetReadyzHTTP) StatusCode

func (r GetReadyzHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSpecKitFeatureHTTP

type GetSpecKitFeatureHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SpecKitFeature
	JSON400      *BadRequest
	JSON404      *NotFound
}

func ParseGetSpecKitFeatureHTTP

func ParseGetSpecKitFeatureHTTP(rsp *http.Response) (*GetSpecKitFeatureHTTP, error)

ParseGetSpecKitFeatureHTTP parses an HTTP response from a GetSpecKitFeatureWithResponse call

func (GetSpecKitFeatureHTTP) ContentType

func (r GetSpecKitFeatureHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSpecKitFeatureHTTP) Status

func (r GetSpecKitFeatureHTTP) Status() string

Status returns HTTPResponse.Status

func (GetSpecKitFeatureHTTP) StatusCode

func (r GetSpecKitFeatureHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVersionHTTP

type GetVersionHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionResponse
}

func ParseGetVersionHTTP

func ParseGetVersionHTTP(rsp *http.Response) (*GetVersionHTTP, error)

ParseGetVersionHTTP parses an HTTP response from a GetVersionWithResponse call

func (GetVersionHTTP) ContentType

func (r GetVersionHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetVersionHTTP) Status

func (r GetVersionHTTP) Status() string

Status returns HTTPResponse.Status

func (GetVersionHTTP) StatusCode

func (r GetVersionHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWhoamiHTTP

type GetWhoamiHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WhoamiResponse
	JSON401      *UnauthorizedResponse
}

func ParseGetWhoamiHTTP

func ParseGetWhoamiHTTP(rsp *http.Response) (*GetWhoamiHTTP, error)

ParseGetWhoamiHTTP parses an HTTP response from a GetWhoamiWithResponse call

func (GetWhoamiHTTP) ContentType

func (r GetWhoamiHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWhoamiHTTP) Status

func (r GetWhoamiHTTP) Status() string

Status returns HTTPResponse.Status

func (GetWhoamiHTTP) StatusCode

func (r GetWhoamiHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkItemHTTP

type GetWorkItemHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WorkItem
	JSON404      *NotFound
	JSON503      *AdaptorUnavailable
}

func ParseGetWorkItemHTTP

func ParseGetWorkItemHTTP(rsp *http.Response) (*GetWorkItemHTTP, error)

ParseGetWorkItemHTTP parses an HTTP response from a GetWorkItemWithResponse call

func (GetWorkItemHTTP) ContentType

func (r GetWorkItemHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWorkItemHTTP) Status

func (r GetWorkItemHTTP) Status() string

Status returns HTTPResponse.Status

func (GetWorkItemHTTP) StatusCode

func (r GetWorkItemHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthResponse

type HealthResponse struct {
	Status string `json:"status"`
}

HealthResponse defines model for HealthResponse.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InteractionCrumb

type InteractionCrumb struct {
	Id    string `json:"id"`
	Label string `json:"label"`
	Type  string `json:"type"`
}

InteractionCrumb defines model for InteractionCrumb.

type InteractionDecision

type InteractionDecision struct {
	DecidedAt *time.Time                 `json:"decided_at,omitempty"`
	Id        string                     `json:"id"`
	Outcome   InteractionDecisionOutcome `json:"outcome"`
	Rationale *string                    `json:"rationale,omitempty"`
	Summary   string                     `json:"summary"`
}

InteractionDecision defines model for InteractionDecision.

type InteractionDecisionOutcome

type InteractionDecisionOutcome string

InteractionDecisionOutcome defines model for InteractionDecision.Outcome.

const (
	InteractionDecisionOutcomeAccepted InteractionDecisionOutcome = "accepted"
	InteractionDecisionOutcomeDeferred InteractionDecisionOutcome = "deferred"
	InteractionDecisionOutcomeRejected InteractionDecisionOutcome = "rejected"
)

Defines values for InteractionDecisionOutcome.

func (InteractionDecisionOutcome) Valid

func (e InteractionDecisionOutcome) Valid() bool

Valid indicates whether the value is a known member of the InteractionDecisionOutcome enum.

type InteractionDraft

type InteractionDraft struct {
	Bullets *[]string `json:"bullets,omitempty"`
	Summary string    `json:"summary"`
	Title   string    `json:"title"`
}

InteractionDraft defines model for InteractionDraft.

type InteractionEvidence

type InteractionEvidence struct {
	Href  *string `json:"href,omitempty"`
	Id    string  `json:"id"`
	Label string  `json:"label"`
}

InteractionEvidence defines model for InteractionEvidence.

type InteractionMessage

type InteractionMessage struct {
	At   *time.Time             `json:"at,omitempty"`
	Body string                 `json:"body"`
	Id   string                 `json:"id"`
	Role InteractionMessageRole `json:"role"`
}

InteractionMessage defines model for InteractionMessage.

type InteractionMessageRole

type InteractionMessageRole string

InteractionMessageRole defines model for InteractionMessage.Role.

const (
	Assistant InteractionMessageRole = "assistant"
	Operator  InteractionMessageRole = "operator"
	System    InteractionMessageRole = "system"
	Tool      InteractionMessageRole = "tool"
)

Defines values for InteractionMessageRole.

func (InteractionMessageRole) Valid

func (e InteractionMessageRole) Valid() bool

Valid indicates whether the value is a known member of the InteractionMessageRole enum.

type InteractionScope

type InteractionScope struct {
	Breadcrumb *[]InteractionCrumb  `json:"breadcrumb,omitempty"`
	Id         string               `json:"id"`
	Title      *string              `json:"title,omitempty"`
	Type       InteractionScopeType `json:"type"`
}

InteractionScope defines model for InteractionScope.

type InteractionScopeType

type InteractionScopeType string

InteractionScopeType defines model for InteractionScope.Type.

const (
	InteractionScopeTypeEpic       InteractionScopeType = "epic"
	InteractionScopeTypeEscalation InteractionScopeType = "escalation"
	InteractionScopeTypeMilestone  InteractionScopeType = "milestone"
	InteractionScopeTypeProject    InteractionScopeType = "project"
	InteractionScopeTypeSession    InteractionScopeType = "session"
	InteractionScopeTypeWalk       InteractionScopeType = "walk"
	InteractionScopeTypeWorkitem   InteractionScopeType = "workitem"
)

Defines values for InteractionScopeType.

func (InteractionScopeType) Valid

func (e InteractionScopeType) Valid() bool

Valid indicates whether the value is a known member of the InteractionScopeType enum.

type InteractionSession

type InteractionSession struct {
	Capabilities     []string                      `json:"capabilities"`
	CreatedAt        *time.Time                    `json:"created_at,omitempty"`
	DecisionLog      *[]InteractionDecision        `json:"decision_log,omitempty"`
	Draft            *InteractionDraft             `json:"draft,omitempty"`
	Evidence         *[]InteractionEvidence        `json:"evidence,omitempty"`
	Id               string                        `json:"id"`
	Kind             string                        `json:"kind"`
	Messages         []InteractionMessage          `json:"messages"`
	RuntimeHost      InteractionSessionRuntimeHost `json:"runtime_host"`
	RuntimeLabel     string                        `json:"runtime_label"`
	Scope            InteractionScope              `json:"scope"`
	Status           string                        `json:"status"`
	SuggestedActions []InteractionSuggestedAction  `json:"suggested_actions"`
	UiHost           InteractionSessionUiHost      `json:"ui_host"`
	UpdatedAt        *time.Time                    `json:"updated_at,omitempty"`
}

InteractionSession defines model for InteractionSession.

type InteractionSessionRuntimeHost

type InteractionSessionRuntimeHost string

InteractionSessionRuntimeHost defines model for InteractionSession.RuntimeHost.

const (
	InteractionSessionRuntimeHostClaude        InteractionSessionRuntimeHost = "claude"
	InteractionSessionRuntimeHostCodex         InteractionSessionRuntimeHost = "codex"
	InteractionSessionRuntimeHostGastownCrew   InteractionSessionRuntimeHost = "gastown_crew"
	InteractionSessionRuntimeHostGastownMayor  InteractionSessionRuntimeHost = "gastown_mayor"
	InteractionSessionRuntimeHostManual        InteractionSessionRuntimeHost = "manual"
	InteractionSessionRuntimeHostNative        InteractionSessionRuntimeHost = "native"
	InteractionSessionRuntimeHostServerPersona InteractionSessionRuntimeHost = "server_persona"
)

Defines values for InteractionSessionRuntimeHost.

func (InteractionSessionRuntimeHost) Valid

Valid indicates whether the value is a known member of the InteractionSessionRuntimeHost enum.

type InteractionSessionUiHost

type InteractionSessionUiHost string

InteractionSessionUiHost defines model for InteractionSession.UiHost.

const (
	Modal InteractionSessionUiHost = "modal"
	Page  InteractionSessionUiHost = "page"
	Rhp   InteractionSessionUiHost = "rhp"
)

Defines values for InteractionSessionUiHost.

func (InteractionSessionUiHost) Valid

func (e InteractionSessionUiHost) Valid() bool

Valid indicates whether the value is a known member of the InteractionSessionUiHost enum.

type InteractionSuggestedAction

type InteractionSuggestedAction struct {
	Description    string  `json:"description"`
	DisabledReason *string `json:"disabled_reason,omitempty"`
	Id             string  `json:"id"`
	Label          string  `json:"label"`
}

InteractionSuggestedAction defines model for InteractionSuggestedAction.

type ListAgentGroupsEnvelope

type ListAgentGroupsEnvelope struct {
	AgentGroups []AgentGroup `json:"agent_groups"`
}

ListAgentGroupsEnvelope defines model for ListAgentGroupsEnvelope.

type ListAgentGroupsHTTP

type ListAgentGroupsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListAgentGroupsEnvelope
	JSON503      *AdaptorUnavailable
}

func ParseListAgentGroupsHTTP

func ParseListAgentGroupsHTTP(rsp *http.Response) (*ListAgentGroupsHTTP, error)

ParseListAgentGroupsHTTP parses an HTTP response from a ListAgentGroupsWithResponse call

func (ListAgentGroupsHTTP) ContentType

func (r ListAgentGroupsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAgentGroupsHTTP) Status

func (r ListAgentGroupsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListAgentGroupsHTTP) StatusCode

func (r ListAgentGroupsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAgentsEnvelope

type ListAgentsEnvelope struct {
	Agents []Agent `json:"agents"`
}

ListAgentsEnvelope defines model for ListAgentsEnvelope.

type ListAgentsHTTP

type ListAgentsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListAgentsEnvelope
	JSON503      *AdaptorUnavailable
}

func ParseListAgentsHTTP

func ParseListAgentsHTTP(rsp *http.Response) (*ListAgentsHTTP, error)

ParseListAgentsHTTP parses an HTTP response from a ListAgentsWithResponse call

func (ListAgentsHTTP) ContentType

func (r ListAgentsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAgentsHTTP) Status

func (r ListAgentsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListAgentsHTTP) StatusCode

func (r ListAgentsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListConsultsHTTP

type ListConsultsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseListConsultsHTTP

func ParseListConsultsHTTP(rsp *http.Response) (*ListConsultsHTTP, error)

ParseListConsultsHTTP parses an HTTP response from a ListConsultsWithResponse call

func (ListConsultsHTTP) ContentType

func (r ListConsultsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListConsultsHTTP) Status

func (r ListConsultsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListConsultsHTTP) StatusCode

func (r ListConsultsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListDecisionsHTTP

type ListDecisionsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON501      *NotImplemented
}

func ParseListDecisionsHTTP

func ParseListDecisionsHTTP(rsp *http.Response) (*ListDecisionsHTTP, error)

ParseListDecisionsHTTP parses an HTTP response from a ListDecisionsWithResponse call

func (ListDecisionsHTTP) ContentType

func (r ListDecisionsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListDecisionsHTTP) Status

func (r ListDecisionsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListDecisionsHTTP) StatusCode

func (r ListDecisionsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListEscalationsHTTP

type ListEscalationsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *EscalationListEnvelope
	JSON503      *AdaptorUnavailable
}

func ParseListEscalationsHTTP

func ParseListEscalationsHTTP(rsp *http.Response) (*ListEscalationsHTTP, error)

ParseListEscalationsHTTP parses an HTTP response from a ListEscalationsWithResponse call

func (ListEscalationsHTTP) ContentType

func (r ListEscalationsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListEscalationsHTTP) Status

func (r ListEscalationsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListEscalationsHTTP) StatusCode

func (r ListEscalationsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListLabelsHTTP

type ListLabelsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON501      *NotImplemented
}

func ParseListLabelsHTTP

func ParseListLabelsHTTP(rsp *http.Response) (*ListLabelsHTTP, error)

ParseListLabelsHTTP parses an HTTP response from a ListLabelsWithResponse call

func (ListLabelsHTTP) ContentType

func (r ListLabelsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListLabelsHTTP) Status

func (r ListLabelsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListLabelsHTTP) StatusCode

func (r ListLabelsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPersonasResponse

type ListPersonasResponse struct {
	Personas []PersonaSummary `json:"personas"`
	Total    int              `json:"total"`
}

ListPersonasResponse Body of `GET /api/v1/personas`. Sorted by id ascending.

type ListPersonasV1HTTP

type ListPersonasV1HTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListPersonasResponse
	JSON503      *AdaptorUnavailable
}

func ParseListPersonasV1HTTP

func ParseListPersonasV1HTTP(rsp *http.Response) (*ListPersonasV1HTTP, error)

ParseListPersonasV1HTTP parses an HTTP response from a ListPersonasV1WithResponse call

func (ListPersonasV1HTTP) ContentType

func (r ListPersonasV1HTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListPersonasV1HTTP) Status

func (r ListPersonasV1HTTP) Status() string

Status returns HTTPResponse.Status

func (ListPersonasV1HTTP) StatusCode

func (r ListPersonasV1HTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectsHTTP

type ListProjectsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectsEnvelope
}

func ParseListProjectsHTTP

func ParseListProjectsHTTP(rsp *http.Response) (*ListProjectsHTTP, error)

ParseListProjectsHTTP parses an HTTP response from a ListProjectsWithResponse call

func (ListProjectsHTTP) ContentType

func (r ListProjectsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListProjectsHTTP) Status

func (r ListProjectsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListProjectsHTTP) StatusCode

func (r ListProjectsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRecentWalksHTTP

type ListRecentWalksHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseListRecentWalksHTTP

func ParseListRecentWalksHTTP(rsp *http.Response) (*ListRecentWalksHTTP, error)

ParseListRecentWalksHTTP parses an HTTP response from a ListRecentWalksWithResponse call

func (ListRecentWalksHTTP) ContentType

func (r ListRecentWalksHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRecentWalksHTTP) Status

func (r ListRecentWalksHTTP) Status() string

Status returns HTTPResponse.Status

func (ListRecentWalksHTTP) StatusCode

func (r ListRecentWalksHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRepositoriesEnvelope

type ListRepositoriesEnvelope struct {
	Notice       *string      `json:"notice,omitempty"`
	Repositories []Repository `json:"repositories"`
}

ListRepositoriesEnvelope defines model for ListRepositoriesEnvelope.

type ListRepositoriesHTTP

type ListRepositoriesHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListRepositoriesEnvelope
}

func ParseListRepositoriesHTTP

func ParseListRepositoriesHTTP(rsp *http.Response) (*ListRepositoriesHTTP, error)

ParseListRepositoriesHTTP parses an HTTP response from a ListRepositoriesWithResponse call

func (ListRepositoriesHTTP) ContentType

func (r ListRepositoriesHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRepositoriesHTTP) Status

func (r ListRepositoriesHTTP) Status() string

Status returns HTTPResponse.Status

func (ListRepositoriesHTTP) StatusCode

func (r ListRepositoriesHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSessionsHTTP

type ListSessionsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SessionListEnvelope
	JSON503      *AdaptorUnavailable
}

func ParseListSessionsHTTP

func ParseListSessionsHTTP(rsp *http.Response) (*ListSessionsHTTP, error)

ParseListSessionsHTTP parses an HTTP response from a ListSessionsWithResponse call

func (ListSessionsHTTP) ContentType

func (r ListSessionsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSessionsHTTP) Status

func (r ListSessionsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListSessionsHTTP) StatusCode

func (r ListSessionsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSkillsHTTP

type ListSkillsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseListSkillsHTTP

func ParseListSkillsHTTP(rsp *http.Response) (*ListSkillsHTTP, error)

ParseListSkillsHTTP parses an HTTP response from a ListSkillsWithResponse call

func (ListSkillsHTTP) ContentType

func (r ListSkillsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSkillsHTTP) Status

func (r ListSkillsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListSkillsHTTP) StatusCode

func (r ListSkillsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSpecKitFeaturesHTTP

type ListSpecKitFeaturesHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SpecKitFeatureList
	JSON500      *AdaptorUnavailable
}

func ParseListSpecKitFeaturesHTTP

func ParseListSpecKitFeaturesHTTP(rsp *http.Response) (*ListSpecKitFeaturesHTTP, error)

ParseListSpecKitFeaturesHTTP parses an HTTP response from a ListSpecKitFeaturesWithResponse call

func (ListSpecKitFeaturesHTTP) ContentType

func (r ListSpecKitFeaturesHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSpecKitFeaturesHTTP) Status

func (r ListSpecKitFeaturesHTTP) Status() string

Status returns HTTPResponse.Status

func (ListSpecKitFeaturesHTTP) StatusCode

func (r ListSpecKitFeaturesHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSpecsHTTP

type ListSpecsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON501      *NotImplemented
}

func ParseListSpecsHTTP

func ParseListSpecsHTTP(rsp *http.Response) (*ListSpecsHTTP, error)

ParseListSpecsHTTP parses an HTTP response from a ListSpecsWithResponse call

func (ListSpecsHTTP) ContentType

func (r ListSpecsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSpecsHTTP) Status

func (r ListSpecsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListSpecsHTTP) StatusCode

func (r ListSpecsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSprintsEnvelope

type ListSprintsEnvelope struct {
	Sprints []Sprint `json:"sprints"`
}

ListSprintsEnvelope defines model for ListSprintsEnvelope.

type ListSprintsHTTP

type ListSprintsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListSprintsEnvelope
	JSON503      *AdaptorUnavailable
}

func ParseListSprintsHTTP

func ParseListSprintsHTTP(rsp *http.Response) (*ListSprintsHTTP, error)

ParseListSprintsHTTP parses an HTTP response from a ListSprintsWithResponse call

func (ListSprintsHTTP) ContentType

func (r ListSprintsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSprintsHTTP) Status

func (r ListSprintsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListSprintsHTTP) StatusCode

func (r ListSprintsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWorkItemsEnvelope

type ListWorkItemsEnvelope struct {
	Items []WorkItem `json:"items"`
	Total int        `json:"total"`
}

ListWorkItemsEnvelope defines model for ListWorkItemsEnvelope.

type ListWorkItemsHTTP

type ListWorkItemsHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListWorkItemsEnvelope
	JSON400      *BadRequest
	JSON503      *AdaptorUnavailable
}

func ParseListWorkItemsHTTP

func ParseListWorkItemsHTTP(rsp *http.Response) (*ListWorkItemsHTTP, error)

ParseListWorkItemsHTTP parses an HTTP response from a ListWorkItemsWithResponse call

func (ListWorkItemsHTTP) ContentType

func (r ListWorkItemsHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWorkItemsHTTP) Status

func (r ListWorkItemsHTTP) Status() string

Status returns HTTPResponse.Status

func (ListWorkItemsHTTP) StatusCode

func (r ListWorkItemsHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWorkItemsParams

type ListWorkItemsParams struct {
	// Kind Filter by WorkItem kind (e.g. `epic`, `task`).
	Kind *string `form:"kind,omitempty" json:"kind,omitempty"`

	// StateCategory Filter by normalized state category.
	StateCategory *StateCategory `form:"state_category,omitempty" json:"state_category,omitempty"`

	// Label Filter by label (repeatable).
	Label *string `form:"label,omitempty" json:"label,omitempty"`

	// CreatedSince Return only items created at or after this timestamp. Accepts RFC3339 (e.g. `2026-04-30T10:00:00Z`) or `YYYY-MM-DD`. Drives the `/recent` SPA view.
	CreatedSince *time.Time `form:"created_since,omitempty" json:"created_since,omitempty"`
}

ListWorkItemsParams defines parameters for ListWorkItems.

type LockDecisionHTTP

type LockDecisionHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON501      *NotImplemented
}

func ParseLockDecisionHTTP

func ParseLockDecisionHTTP(rsp *http.Response) (*LockDecisionHTTP, error)

ParseLockDecisionHTTP parses an HTTP response from a LockDecisionWithResponse call

func (LockDecisionHTTP) ContentType

func (r LockDecisionHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LockDecisionHTTP) Status

func (r LockDecisionHTTP) Status() string

Status returns HTTPResponse.Status

func (LockDecisionHTTP) StatusCode

func (r LockDecisionHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LockDecisionJSONBody

type LockDecisionJSONBody struct {
	Locked bool `json:"locked"`
}

LockDecisionJSONBody defines parameters for LockDecision.

type LockDecisionJSONRequestBody

type LockDecisionJSONRequestBody LockDecisionJSONBody

LockDecisionJSONRequestBody defines body for LockDecision for application/json ContentType.

type LockDecisionParams

type LockDecisionParams struct {
	// XGEMBAConfirm Idempotency nonce required by every state-mutating endpoint. The value MUST be a UUID v4 the caller generated locally. Replays of the same nonce against the same route return the cached prior response within the nonce TTL (per-process; see internal/server/nonce.go). Missing or malformed values yield 400. Documented under gm-o9t8.14 as the canonical write-confirm header.
	XGEMBAConfirm ConfirmNonce `json:"X-GEMBA-Confirm"`
}

LockDecisionParams defines parameters for LockDecision.

type NewProjectState

type NewProjectState struct {
	// Architecture Free-form architecture notes captured from the operator.
	Architecture string `json:"Architecture"`
	Description  string `json:"Description"`

	// DraftProjectMD Running narrative the skill keeps current each turn. Ratification persists this verbatim as `docs/project.md`.
	DraftProjectMD string `json:"DraftProjectMD"`

	// LastChange Points into the plan tree for the most-recent skill edit. The SPA tone-codes the diff badge by `kind`. Path is slash-joined (e.g. `milestone:1/epic:0/bead:2`); empty means the change spans the whole tree.
	LastChange  ChangeRef        `json:"LastChange"`
	Milestones  []DraftMilestone `json:"Milestones"`
	ProjectName string           `json:"ProjectName"`
	TechStack   []string         `json:"TechStack"`

	// Turn Monotonic turn counter. Starts at 0; incremented on every successful turn. The ratify endpoint uses this as a stale-modal guard.
	Turn int `json:"Turn"`
}

NewProjectState Authoritative server-side state for one new-project session. Each turn returns a fresh copy; the client replaces its local copy wholesale rather than merging diffs.

type NotFound

type NotFound = Error

NotFound Shared error envelope (gm-faz). `error` is a stable token the SPA branches on; `message` is human-readable and may be surfaced verbatim.

type NotImplemented

type NotImplemented struct {
	Error struct {
		Code    string `json:"code"`
		Message string `json:"message"`
	} `json:"error"`
}

NotImplemented defines model for NotImplemented.

type OnboarderProbeResponse

type OnboarderProbeResponse struct {
	// Available True when the Onboarder persona host can resolve an LLM client (i.e. the conversational flow at /onboard would not 503).
	Available bool `json:"available"`

	// Reason Operator-facing diagnostic explaining why the Onboarder is unavailable. Empty / omitted when available is true.
	Reason *string `json:"reason,omitempty"`
}

OnboarderProbeResponse Body for `GET /api/v1/onboarder/probe`. Always 200; `available` is the operative signal. When `available` is false, `reason` carries the operator-facing diagnostic the SPA can surface verbatim.

type OnboardingSetupFrame

type OnboardingSetupFrame struct {
	Done  bool                      `json:"done"`
	Level OnboardingSetupFrameLevel `json:"level"`
	Line  string                    `json:"line"`
	Seq   int                       `json:"seq"`
}

OnboardingSetupFrame One operator-visible setup ledger line.

type OnboardingSetupFrameLevel

type OnboardingSetupFrameLevel string

OnboardingSetupFrameLevel defines model for OnboardingSetupFrame.Level.

const (
	OnboardingSetupFrameLevelError OnboardingSetupFrameLevel = "error"
	OnboardingSetupFrameLevelInfo  OnboardingSetupFrameLevel = "info"
	OnboardingSetupFrameLevelWarn  OnboardingSetupFrameLevel = "warn"
)

Defines values for OnboardingSetupFrameLevel.

func (OnboardingSetupFrameLevel) Valid

func (e OnboardingSetupFrameLevel) Valid() bool

Valid indicates whether the value is a known member of the OnboardingSetupFrameLevel enum.

type OnboardingSetupRequest

type OnboardingSetupRequest struct {
	// BeadsUrl Optional mysql:// Dolt URL for the Beads database. Gas Town projects bind Beads through this URL, not through the rig directory.
	BeadsUrl *string `json:"beads_url,omitempty"`

	// GastownLocation Absolute Gas Town city/town root. Required when orchestration is gastown; used as cwd for gt commands.
	GastownLocation *string `json:"gastown_location,omitempty"`

	// GastownRig Optional Gas Town rig name. Defaults from project_name when omitted. Existing rigs are reused before creation.
	GastownRig *string `json:"gastown_rig,omitempty"`

	// GastownWorktreePath Optional absolute path to the selected rig worktree. When omitted, setup uses gt rig list metadata or common rig-root fallbacks.
	GastownWorktreePath *string `json:"gastown_worktree_path,omitempty"`

	// GithubProject Intended GitHub owner/repo identity.
	GithubProject string `json:"github_project"`

	// Orchestration Runtime orchestration layer.
	Orchestration OnboardingSetupRequestOrchestration `json:"orchestration"`

	// Origin Project source branch selected by the operator.
	Origin OnboardingSetupRequestOrigin `json:"origin"`

	// ProjectName Gemba display name and local project identity.
	ProjectName string `json:"project_name"`

	// SourceAnalysisTool Source-analysis backend. Existing/imported codebases default to gitnexus in the SPA.
	SourceAnalysisTool OnboardingSetupRequestSourceAnalysisTool `json:"source_analysis_tool"`

	// WorktreePath Absolute native worktree path. Required when orchestration is native.
	WorktreePath *string `json:"worktree_path,omitempty"`
}

OnboardingSetupRequest Body for `POST /api/v1/onboarding/setup`. This deterministic gate runs before any Onboarder LLM session starts.

type OnboardingSetupRequestOrchestration

type OnboardingSetupRequestOrchestration string

OnboardingSetupRequestOrchestration Runtime orchestration layer.

const (
	OnboardingSetupRequestOrchestrationGastown OnboardingSetupRequestOrchestration = "gastown"
	OnboardingSetupRequestOrchestrationNative  OnboardingSetupRequestOrchestration = "native"
)

Defines values for OnboardingSetupRequestOrchestration.

func (OnboardingSetupRequestOrchestration) Valid

Valid indicates whether the value is a known member of the OnboardingSetupRequestOrchestration enum.

type OnboardingSetupRequestOrigin

type OnboardingSetupRequestOrigin string

OnboardingSetupRequestOrigin Project source branch selected by the operator.

const (
	Existing OnboardingSetupRequestOrigin = "existing"
	Import   OnboardingSetupRequestOrigin = "import"
	New      OnboardingSetupRequestOrigin = "new"
)

Defines values for OnboardingSetupRequestOrigin.

func (OnboardingSetupRequestOrigin) Valid

Valid indicates whether the value is a known member of the OnboardingSetupRequestOrigin enum.

type OnboardingSetupRequestSourceAnalysisTool

type OnboardingSetupRequestSourceAnalysisTool string

OnboardingSetupRequestSourceAnalysisTool Source-analysis backend. Existing/imported codebases default to gitnexus in the SPA.

const (
	OnboardingSetupRequestSourceAnalysisToolGitnexus OnboardingSetupRequestSourceAnalysisTool = "gitnexus"
	OnboardingSetupRequestSourceAnalysisToolNone     OnboardingSetupRequestSourceAnalysisTool = "none"
)

Defines values for OnboardingSetupRequestSourceAnalysisTool.

func (OnboardingSetupRequestSourceAnalysisTool) Valid

Valid indicates whether the value is a known member of the OnboardingSetupRequestSourceAnalysisTool enum.

type OnboardingSetupResponse

type OnboardingSetupResponse struct {
	// Checks Best-effort setup statuses such as git_sync, workspace, beads, source_analysis, gemba_mcp, and source_analysis_mcp.
	Checks      *map[string]string     `json:"checks,omitempty"`
	Frames      []OnboardingSetupFrame `json:"frames"`
	ProjectPath *string                `json:"project_path,omitempty"`
	SetupId     string                 `json:"setup_id"`
	Warnings    *[]string              `json:"warnings,omitempty"`
}

OnboardingSetupResponse Returned by `POST /api/v1/onboarding/setup` after deterministic setup completes or completes with warnings.

type PatchSpecHTTP

type PatchSpecHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON501      *NotImplemented
}

func ParsePatchSpecHTTP

func ParsePatchSpecHTTP(rsp *http.Response) (*PatchSpecHTTP, error)

ParsePatchSpecHTTP parses an HTTP response from a PatchSpecWithResponse call

func (PatchSpecHTTP) ContentType

func (r PatchSpecHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PatchSpecHTTP) Status

func (r PatchSpecHTTP) Status() string

Status returns HTTPResponse.Status

func (PatchSpecHTTP) StatusCode

func (r PatchSpecHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PatchSpecJSONBody

type PatchSpecJSONBody struct {
	Status PatchSpecJSONBodyStatus `json:"status"`
}

PatchSpecJSONBody defines parameters for PatchSpec.

type PatchSpecJSONBodyStatus

type PatchSpecJSONBodyStatus string

PatchSpecJSONBodyStatus defines parameters for PatchSpec.

const (
	Active   PatchSpecJSONBodyStatus = "active"
	Archived PatchSpecJSONBodyStatus = "archived"
)

Defines values for PatchSpecJSONBodyStatus.

func (PatchSpecJSONBodyStatus) Valid

func (e PatchSpecJSONBodyStatus) Valid() bool

Valid indicates whether the value is a known member of the PatchSpecJSONBodyStatus enum.

type PatchSpecJSONRequestBody

type PatchSpecJSONRequestBody PatchSpecJSONBody

PatchSpecJSONRequestBody defines body for PatchSpec for application/json ContentType.

type PatchSpecParams

type PatchSpecParams struct {
	// XGEMBAConfirm Idempotency nonce required by every state-mutating endpoint. The value MUST be a UUID v4 the caller generated locally. Replays of the same nonce against the same route return the cached prior response within the nonce TTL (per-process; see internal/server/nonce.go). Missing or malformed values yield 400. Documented under gm-o9t8.14 as the canonical write-confirm header.
	XGEMBAConfirm ConfirmNonce `json:"X-GEMBA-Confirm"`
}

PatchSpecParams defines parameters for PatchSpec.

type PersonaPersonality

type PersonaPersonality struct {
	Description *string   `json:"description,omitempty"`
	Examples    *[]string `json:"examples,omitempty"`
	Id          *string   `json:"id,omitempty"`
}

PersonaPersonality gm-9rv §1 — decorative voice/tone qualifier. Optional.

type PersonaPerspective

type PersonaPerspective struct {
	CostTier      *string   `json:"cost_tier,omitempty"`
	Statement     *string   `json:"statement,omitempty"`
	Triggers      *[]string `json:"triggers,omitempty"`
	VolunteerMode *string   `json:"volunteer_mode,omitempty"`
}

PersonaPerspective gm-9rv §2 — deterministic lens. Optional.

type PersonaPurview

type PersonaPurview struct {
	ActivePhases      *[]string `json:"active_phases,omitempty"`
	BlockingAuthority *string   `json:"blocking_authority,omitempty"`
	Domain            *string   `json:"domain,omitempty"`
}

PersonaPurview gm-9rv §3 — gate authority by phase. Optional.

type PersonaScopeView

type PersonaScopeView struct {
	Kind       PersonaScopeViewKind `json:"kind"`
	Repository *string              `json:"repository,omitempty"`
}

PersonaScopeView Persona scope (gm-k2jn). `kind` is one of project / repository / any. `repository` is set iff kind=repository.

type PersonaScopeViewKind

type PersonaScopeViewKind string

PersonaScopeViewKind defines model for PersonaScopeView.Kind.

const (
	PersonaScopeViewKindAny        PersonaScopeViewKind = "any"
	PersonaScopeViewKindProject    PersonaScopeViewKind = "project"
	PersonaScopeViewKindRepository PersonaScopeViewKind = "repository"
)

Defines values for PersonaScopeViewKind.

func (PersonaScopeViewKind) Valid

func (e PersonaScopeViewKind) Valid() bool

Valid indicates whether the value is a known member of the PersonaScopeViewKind enum.

type PersonaSummary

type PersonaSummary struct {
	Description *string `json:"description,omitempty"`
	Icon        *string `json:"icon,omitempty"`
	Id          string  `json:"id"`
	Name        string  `json:"name"`

	// Personality gm-9rv §1 — decorative voice/tone qualifier. Optional.
	Personality *PersonaPersonality `json:"personality,omitempty"`

	// Perspective gm-9rv §2 — deterministic lens. Optional.
	Perspective *PersonaPerspective `json:"perspective,omitempty"`

	// Purview gm-9rv §3 — gate authority by phase. Optional.
	Purview *PersonaPurview `json:"purview,omitempty"`
	Role    string          `json:"role"`

	// Scope Persona scope (gm-k2jn). `kind` is one of project / repository / any. `repository` is set iff kind=repository.
	Scope   PersonaScopeView      `json:"scope"`
	Skills  *[]string             `json:"skills,omitempty"`
	Variety PersonaSummaryVariety `json:"variety"`
}

PersonaSummary Operator-facing persona projection (internal/server/personas.go personaSummary). Heavy fields (system_prompt, model config, budget) are intentionally omitted.

type PersonaSummaryVariety

type PersonaSummaryVariety string

PersonaSummaryVariety defines model for PersonaSummary.Variety.

const (
	Coach   PersonaSummaryVariety = "coach"
	Manager PersonaSummaryVariety = "manager"
)

Defines values for PersonaSummaryVariety.

func (PersonaSummaryVariety) Valid

func (e PersonaSummaryVariety) Valid() bool

Valid indicates whether the value is a known member of the PersonaSummaryVariety enum.

type PlanSpecKitFeatureSyncHTTP

type PlanSpecKitFeatureSyncHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SpecKitSyncPlan
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON503      *AdaptorUnavailable
}

func ParsePlanSpecKitFeatureSyncHTTP

func ParsePlanSpecKitFeatureSyncHTTP(rsp *http.Response) (*PlanSpecKitFeatureSyncHTTP, error)

ParsePlanSpecKitFeatureSyncHTTP parses an HTTP response from a PlanSpecKitFeatureSyncWithResponse call

func (PlanSpecKitFeatureSyncHTTP) ContentType

func (r PlanSpecKitFeatureSyncHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PlanSpecKitFeatureSyncHTTP) Status

Status returns HTTPResponse.Status

func (PlanSpecKitFeatureSyncHTTP) StatusCode

func (r PlanSpecKitFeatureSyncHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PrepareOnboardingSetupHTTP

type PrepareOnboardingSetupHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OnboardingSetupResponse
	JSON400      *BadRequest
	JSON500      *Error
}

func ParsePrepareOnboardingSetupHTTP

func ParsePrepareOnboardingSetupHTTP(rsp *http.Response) (*PrepareOnboardingSetupHTTP, error)

ParsePrepareOnboardingSetupHTTP parses an HTTP response from a PrepareOnboardingSetupWithResponse call

func (PrepareOnboardingSetupHTTP) ContentType

func (r PrepareOnboardingSetupHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PrepareOnboardingSetupHTTP) Status

Status returns HTTPResponse.Status

func (PrepareOnboardingSetupHTTP) StatusCode

func (r PrepareOnboardingSetupHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PrepareOnboardingSetupJSONRequestBody

type PrepareOnboardingSetupJSONRequestBody = OnboardingSetupRequest

PrepareOnboardingSetupJSONRequestBody defines body for PrepareOnboardingSetup for application/json ContentType.

type ProbeOnboarderHTTP

type ProbeOnboarderHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OnboarderProbeResponse
}

func ParseProbeOnboarderHTTP

func ParseProbeOnboarderHTTP(rsp *http.Response) (*ProbeOnboarderHTTP, error)

ParseProbeOnboarderHTTP parses an HTTP response from a ProbeOnboarderWithResponse call

func (ProbeOnboarderHTTP) ContentType

func (r ProbeOnboarderHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ProbeOnboarderHTTP) Status

func (r ProbeOnboarderHTTP) Status() string

Status returns HTTPResponse.Status

func (ProbeOnboarderHTTP) StatusCode

func (r ProbeOnboarderHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ProjectEntry

type ProjectEntry struct {
	Active *bool `json:"active,omitempty"`

	// Kind Setup-state classification for a discovered project (gm-root.17.14). `complete` — has a beads DB, a `.gemba/workspace.toml`, and is inside a git repo; the picker switches to it directly. `needs_workspace` — has a beads DB but no `.gemba/workspace.toml`. `needs_repo` — has a `.gemba/workspace.toml` but is not inside a git repo. Open string at the wire so future kinds don't break clients.
	Kind ProjectKind `json:"kind"`
	Name string      `json:"name"`
	Path string      `json:"path"`
}

ProjectEntry One discovered project. `name` is the directory basename; `path` is the absolute disk path; `active` is true for the currently-selected project (in-process server state; resets on server restart); `kind` classifies the entry's setup state.

type ProjectKind

type ProjectKind string

ProjectKind Setup-state classification for a discovered project (gm-root.17.14). `complete` — has a beads DB, a `.gemba/workspace.toml`, and is inside a git repo; the picker switches to it directly. `needs_workspace` — has a beads DB but no `.gemba/workspace.toml`. `needs_repo` — has a `.gemba/workspace.toml` but is not inside a git repo. Open string at the wire so future kinds don't break clients.

const (
	Complete       ProjectKind = "complete"
	NeedsRepo      ProjectKind = "needs_repo"
	NeedsWorkspace ProjectKind = "needs_workspace"
)

Defines values for ProjectKind.

func (ProjectKind) Valid

func (e ProjectKind) Valid() bool

Valid indicates whether the value is a known member of the ProjectKind enum.

type ProjectsEnvelope

type ProjectsEnvelope struct {
	Projects []ProjectEntry `json:"projects"`
	Total    int            `json:"total"`
}

ProjectsEnvelope Body of `GET /api/v1/projects`. The deduped union of `default_dir` and every entry in `[projects].extra_roots` from `~/.gemba/config.toml`.

type RatifyError

type RatifyError struct {
	// Error Stable machine-readable error token.
	Error RatifyErrorError `json:"error"`

	// Message Human-readable diagnostic surfaced in the toast.
	Message string `json:"message"`

	// Step 1-based transaction step that failed (1..10; step 8a dep-resolution is encoded as 8).
	Step int `json:"step"`
}

RatifyError Structured error returned by `POST /api/v1/newproject/:id/ratify` when any transaction step fails. `error` is a stable machine-readable code; `step` is the 1-based transaction step that failed.

type RatifyErrorError

type RatifyErrorError string

RatifyErrorError Stable machine-readable error token.

const (
	BeadCreateFailed      RatifyErrorError = "bead_create_failed"
	BeadsInitFailed       RatifyErrorError = "beads_init_failed"
	CommitFailed          RatifyErrorError = "commit_failed"
	CycleDetected         RatifyErrorError = "cycle_detected"
	DepResolveFailed      RatifyErrorError = "dep_resolve_failed"
	DirExists             RatifyErrorError = "dir_exists"
	EpicCreateFailed      RatifyErrorError = "epic_create_failed"
	GitInitFailed         RatifyErrorError = "git_init_failed"
	MilestoneCreateFailed RatifyErrorError = "milestone_create_failed"
	MkdirFailed           RatifyErrorError = "mkdir_failed"
	ProjectMdFailed       RatifyErrorError = "project_md_failed"
	StaleState            RatifyErrorError = "stale_state"
	StatFailed            RatifyErrorError = "stat_failed"
	ValidationFailed      RatifyErrorError = "validation_failed"
)

Defines values for RatifyErrorError.

func (RatifyErrorError) Valid

func (e RatifyErrorError) Valid() bool

Valid indicates whether the value is a known member of the RatifyErrorError enum.

type RatifyNewProjectHTTP

type RatifyNewProjectHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RatifyResponse
	JSON400      *RatifyError
	JSON404      *NotFound
	JSON409      *RatifyError
	JSON422      *RatifyError
	JSON500      *RatifyError
	JSON503      *AdaptorUnavailable
}

func ParseRatifyNewProjectHTTP

func ParseRatifyNewProjectHTTP(rsp *http.Response) (*RatifyNewProjectHTTP, error)

ParseRatifyNewProjectHTTP parses an HTTP response from a RatifyNewProjectWithResponse call

func (RatifyNewProjectHTTP) ContentType

func (r RatifyNewProjectHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RatifyNewProjectHTTP) Status

func (r RatifyNewProjectHTTP) Status() string

Status returns HTTPResponse.Status

func (RatifyNewProjectHTTP) StatusCode

func (r RatifyNewProjectHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RatifyNewProjectJSONRequestBody

type RatifyNewProjectJSONRequestBody = RatifyRequest

RatifyNewProjectJSONRequestBody defines body for RatifyNewProject for application/json ContentType.

type RatifyRequest

type RatifyRequest struct {
	// State Authoritative server-side state for one new-project session. Each turn returns a fresh copy; the client replaces its local copy wholesale rather than merging diffs.
	State NewProjectState `json:"state"`
}

RatifyRequest Request body for `POST /api/v1/newproject/:id/ratify`. The server compares the submitted `state.Turn` against the live session and rejects mismatches (stale-modal guard).

type RatifyResponse

type RatifyResponse struct {
	// EpicCount Number of epics created by the transaction (sum across all milestones).
	EpicCount int `json:"epic_count"`

	// MilestoneCount Number of milestones created by the transaction.
	MilestoneCount int `json:"milestone_count"`

	// ProjectName Human-readable project name echoed from the ratified state.
	ProjectName string `json:"project_name"`

	// ProjectPath Filesystem path of the new project root (default_dir/<project-name>/).
	ProjectPath string `json:"project_path"`
}

RatifyResponse Success envelope returned by `POST /api/v1/newproject/:id/ratify` after the 10-step transaction completes. The SPA owns post-ratify navigation (gm-root.17.7); the server returns the new project's filesystem root, its display name, and the seeded milestone / epic counts so the handoff screen can render 'seeded N milestones and M epics' without re-querying the new workspace's beads database.

type ReconcileSpecHTTP

type ReconcileSpecHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON202      *map[string]interface{}
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON501      *NotImplemented
}

func ParseReconcileSpecHTTP

func ParseReconcileSpecHTTP(rsp *http.Response) (*ReconcileSpecHTTP, error)

ParseReconcileSpecHTTP parses an HTTP response from a ReconcileSpecWithResponse call

func (ReconcileSpecHTTP) ContentType

func (r ReconcileSpecHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReconcileSpecHTTP) Status

func (r ReconcileSpecHTTP) Status() string

Status returns HTTPResponse.Status

func (ReconcileSpecHTTP) StatusCode

func (r ReconcileSpecHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReconcileSpecJSONBody

type ReconcileSpecJSONBody struct {
	Note *string `json:"note,omitempty"`
}

ReconcileSpecJSONBody defines parameters for ReconcileSpec.

type ReconcileSpecJSONRequestBody

type ReconcileSpecJSONRequestBody ReconcileSpecJSONBody

ReconcileSpecJSONRequestBody defines body for ReconcileSpec for application/json ContentType.

type ReconcileSpecParams

type ReconcileSpecParams struct {
	// Apply When `1`, apply the reconcile plan; otherwise return a dry-run diff.
	Apply *ReconcileSpecParamsApply `form:"apply,omitempty" json:"apply,omitempty"`

	// XGEMBAConfirm Idempotency nonce required by every state-mutating endpoint. The value MUST be a UUID v4 the caller generated locally. Replays of the same nonce against the same route return the cached prior response within the nonce TTL (per-process; see internal/server/nonce.go). Missing or malformed values yield 400. Documented under gm-o9t8.14 as the canonical write-confirm header.
	XGEMBAConfirm ConfirmNonce `json:"X-GEMBA-Confirm"`
}

ReconcileSpecParams defines parameters for ReconcileSpec.

type ReconcileSpecParamsApply

type ReconcileSpecParamsApply string

ReconcileSpecParamsApply defines parameters for ReconcileSpec.

Defines values for ReconcileSpecParamsApply.

func (ReconcileSpecParamsApply) Valid

func (e ReconcileSpecParamsApply) Valid() bool

Valid indicates whether the value is a known member of the ReconcileSpecParamsApply enum.

type Repository

type Repository struct {
	BeadPrefix    string  `json:"bead_prefix"`
	DefaultBranch string  `json:"default_branch"`
	Id            string  `json:"id"`
	Path          string  `json:"path"`
	Url           *string `json:"url,omitempty"`
	WorktreesDir  *string `json:"worktrees_dir,omitempty"`
}

Repository defines model for Repository.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Session

type Session struct {
	AgentId              *string                `json:"agent_id,omitempty"`
	Id                   string                 `json:"id"`
	StartedAt            *time.Time             `json:"started_at,omitempty"`
	Status               *string                `json:"status,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Session defines model for Session.

func (Session) Get

func (a Session) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Session. Returns the specified element and whether it was found

func (Session) MarshalJSON

func (a Session) MarshalJSON() ([]byte, error)

Override default JSON handling for Session to handle AdditionalProperties

func (*Session) Set

func (a *Session) Set(fieldName string, value interface{})

Setter for additional properties for Session

func (*Session) UnmarshalJSON

func (a *Session) UnmarshalJSON(b []byte) error

Override default JSON handling for Session to handle AdditionalProperties

type SessionListEnvelope

type SessionListEnvelope struct {
	Sessions []Session `json:"sessions"`
}

SessionListEnvelope defines model for SessionListEnvelope.

type SnapshotSpecHTTP

type SnapshotSpecHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON501      *NotImplemented
}

func ParseSnapshotSpecHTTP

func ParseSnapshotSpecHTTP(rsp *http.Response) (*SnapshotSpecHTTP, error)

ParseSnapshotSpecHTTP parses an HTTP response from a SnapshotSpecWithResponse call

func (SnapshotSpecHTTP) ContentType

func (r SnapshotSpecHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SnapshotSpecHTTP) Status

func (r SnapshotSpecHTTP) Status() string

Status returns HTTPResponse.Status

func (SnapshotSpecHTTP) StatusCode

func (r SnapshotSpecHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SnapshotSpecParams

type SnapshotSpecParams struct {
	// XGEMBAConfirm Idempotency nonce required by every state-mutating endpoint. The value MUST be a UUID v4 the caller generated locally. Replays of the same nonce against the same route return the cached prior response within the nonce TTL (per-process; see internal/server/nonce.go). Missing or malformed values yield 400. Documented under gm-o9t8.14 as the canonical write-confirm header.
	XGEMBAConfirm ConfirmNonce `json:"X-GEMBA-Confirm"`
}

SnapshotSpecParams defines parameters for SnapshotSpec.

type SpecKitChangeCounts

type SpecKitChangeCounts struct {
	Create int `json:"create"`
	Delete int `json:"delete"`
	Update int `json:"update"`
}

SpecKitChangeCounts defines model for SpecKitChangeCounts.

type SpecKitFeature

type SpecKitFeature struct {
	Directory         string             `json:"directory"`
	HasPlan           bool               `json:"has_plan"`
	HasSpec           bool               `json:"has_spec"`
	HasTasks          bool               `json:"has_tasks"`
	Id                string             `json:"id"`
	ParallelTaskCount int                `json:"parallel_task_count"`
	PlanPath          *string            `json:"plan_path,omitempty"`
	Spec              SpecKitSpecSummary `json:"spec"`
	SpecPath          *string            `json:"spec_path,omitempty"`
	TaskCount         int                `json:"task_count"`
	Tasks             []SpecKitTask      `json:"tasks"`
	TasksPath         *string            `json:"tasks_path,omitempty"`
	Title             string             `json:"title"`
}

SpecKitFeature One Spec Kit feature directory and the parsed artifacts Gemba can project into Beads.

type SpecKitFeatureList

type SpecKitFeatureList struct {
	Configured bool             `json:"configured"`
	Features   []SpecKitFeature `json:"features"`
	Total      int              `json:"total"`
}

SpecKitFeatureList Spec Kit feature discovery result. `configured=false` means neither specs/ nor .specify/specs/ exists under the active Beads directory.

type SpecKitSpecSummary

type SpecKitSpecSummary struct {
	AcceptanceScenarios    *[]string           `json:"acceptance_scenarios,omitempty"`
	FunctionalRequirements *[]string           `json:"functional_requirements,omitempty"`
	Title                  *string             `json:"title,omitempty"`
	UserStories            *[]SpecKitUserStory `json:"user_stories,omitempty"`
}

SpecKitSpecSummary defines model for SpecKitSpecSummary.

type SpecKitSyncChange

type SpecKitSyncChange struct {
	Action   SpecKitSyncChangeAction `json:"action"`
	Id       *string                 `json:"id,omitempty"`
	Key      string                  `json:"key"`
	Kind     string                  `json:"kind"`
	SourceId *string                 `json:"source_id,omitempty"`
	Summary  string                  `json:"summary"`
	Title    string                  `json:"title"`
}

SpecKitSyncChange defines model for SpecKitSyncChange.

type SpecKitSyncChangeAction

type SpecKitSyncChangeAction string

SpecKitSyncChangeAction defines model for SpecKitSyncChange.Action.

const (
	SpecKitSyncChangeActionCreate SpecKitSyncChangeAction = "create"
	SpecKitSyncChangeActionDelete SpecKitSyncChangeAction = "delete"
	SpecKitSyncChangeActionUpdate SpecKitSyncChangeAction = "update"
)

Defines values for SpecKitSyncChangeAction.

func (SpecKitSyncChangeAction) Valid

func (e SpecKitSyncChangeAction) Valid() bool

Valid indicates whether the value is a known member of the SpecKitSyncChangeAction enum.

type SpecKitSyncPlan

type SpecKitSyncPlan struct {
	Changes   []SpecKitSyncChange `json:"changes"`
	Counts    SpecKitChangeCounts `json:"counts"`
	FeatureId string              `json:"feature_id"`
	Hash      string              `json:"hash"`

	// Jsonl bd-importable JSONL manifest for create/update portability.
	Jsonl    *string   `json:"jsonl,omitempty"`
	Warnings *[]string `json:"warnings,omitempty"`
}

SpecKitSyncPlan Read-only staged Beads reconciliation plan for one Spec Kit feature. The hash must be echoed back when applying the plan.

type SpecKitSyncRequest

type SpecKitSyncRequest struct {
	// AllowDeletes Must be true when the staged plan deletes stale source:spec-kit Beads.
	AllowDeletes *bool `json:"allow_deletes,omitempty"`

	// PlanHash Hash from the latest sync plan preview.
	PlanHash string `json:"plan_hash"`
}

SpecKitSyncRequest defines model for SpecKitSyncRequest.

type SpecKitSyncResult

type SpecKitSyncResult struct {
	Created     *[]string `json:"created,omitempty"`
	Deleted     *[]string `json:"deleted,omitempty"`
	EpicId      *string   `json:"epic_id,omitempty"`
	FeatureId   string    `json:"feature_id"`
	MilestoneId *string   `json:"milestone_id,omitempty"`

	// Plan Read-only staged Beads reconciliation plan for one Spec Kit feature. The hash must be echoed back when applying the plan.
	Plan       SpecKitSyncPlan    `json:"plan"`
	StoryCount int                `json:"story_count"`
	StoryIds   *map[string]string `json:"story_ids,omitempty"`
	TaskCount  int                `json:"task_count"`
	TaskIds    *map[string]string `json:"task_ids,omitempty"`
	Updated    *[]string          `json:"updated,omitempty"`
}

SpecKitSyncResult defines model for SpecKitSyncResult.

type SpecKitTask

type SpecKitTask struct {
	Description *string `json:"description,omitempty"`
	Done        bool    `json:"done"`
	Id          string  `json:"id"`
	Line        *int    `json:"line,omitempty"`
	Parallel    bool    `json:"parallel"`
	Phase       *string `json:"phase,omitempty"`
	StoryId     *string `json:"story_id,omitempty"`
	Title       string  `json:"title"`
}

SpecKitTask defines model for SpecKitTask.

type SpecKitUserStory

type SpecKitUserStory struct {
	AcceptanceScenarios *[]string `json:"acceptance_scenarios,omitempty"`
	Id                  string    `json:"id"`
	Priority            *string   `json:"priority,omitempty"`
	Title               string    `json:"title"`
}

SpecKitUserStory defines model for SpecKitUserStory.

type SpecSlug

type SpecSlug = string

SpecSlug defines model for SpecSlug.

type Sprint

type Sprint struct {
	EndsAt               *time.Time             `json:"ends_at,omitempty"`
	Id                   string                 `json:"id"`
	Name                 string                 `json:"name"`
	StartsAt             *time.Time             `json:"starts_at,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Sprint defines model for Sprint.

func (Sprint) Get

func (a Sprint) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Sprint. Returns the specified element and whether it was found

func (Sprint) MarshalJSON

func (a Sprint) MarshalJSON() ([]byte, error)

Override default JSON handling for Sprint to handle AdditionalProperties

func (*Sprint) Set

func (a *Sprint) Set(fieldName string, value interface{})

Setter for additional properties for Sprint

func (*Sprint) UnmarshalJSON

func (a *Sprint) UnmarshalJSON(b []byte) error

Override default JSON handling for Sprint to handle AdditionalProperties

type StartNewProjectHTTP

type StartNewProjectHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *StartNewProjectResponse
	JSON503      *AdaptorUnavailable
}

func ParseStartNewProjectHTTP

func ParseStartNewProjectHTTP(rsp *http.Response) (*StartNewProjectHTTP, error)

ParseStartNewProjectHTTP parses an HTTP response from a StartNewProjectWithResponse call

func (StartNewProjectHTTP) ContentType

func (r StartNewProjectHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartNewProjectHTTP) Status

func (r StartNewProjectHTTP) Status() string

Status returns HTTPResponse.Status

func (StartNewProjectHTTP) StatusCode

func (r StartNewProjectHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartNewProjectResponse

type StartNewProjectResponse struct {
	// Greeting Optional opening line from the Onboarder. Empty string when the skill did not emit one.
	Greeting string `json:"greeting"`

	// SessionId Opaque session id used to scope subsequent /turn and /ratify calls. Lives only in server memory.
	SessionId string `json:"session_id"`

	// State Authoritative server-side state for one new-project session. Each turn returns a fresh copy; the client replaces its local copy wholesale rather than merging diffs.
	State NewProjectState `json:"state"`
}

StartNewProjectResponse Returned by `POST /api/v1/newproject/start`.

type StartWalkHTTP

type StartWalkHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseStartWalkHTTP

func ParseStartWalkHTTP(rsp *http.Response) (*StartWalkHTTP, error)

ParseStartWalkHTTP parses an HTTP response from a StartWalkWithResponse call

func (StartWalkHTTP) ContentType

func (r StartWalkHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartWalkHTTP) Status

func (r StartWalkHTTP) Status() string

Status returns HTTPResponse.Status

func (StartWalkHTTP) StatusCode

func (r StartWalkHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StateCategory

type StateCategory string

StateCategory defines model for StateCategory.

const (
	Backlog   StateCategory = "backlog"
	Canceled  StateCategory = "canceled"
	Completed StateCategory = "completed"
	Staged    StateCategory = "staged"
	Started   StateCategory = "started"
	Unstarted StateCategory = "unstarted"
)

Defines values for StateCategory.

func (StateCategory) Valid

func (e StateCategory) Valid() bool

Valid indicates whether the value is a known member of the StateCategory enum.

type SubmitNewProjectTurnHTTP

type SubmitNewProjectTurnHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TurnResponse
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON503      *AdaptorUnavailable
}

func ParseSubmitNewProjectTurnHTTP

func ParseSubmitNewProjectTurnHTTP(rsp *http.Response) (*SubmitNewProjectTurnHTTP, error)

ParseSubmitNewProjectTurnHTTP parses an HTTP response from a SubmitNewProjectTurnWithResponse call

func (SubmitNewProjectTurnHTTP) ContentType

func (r SubmitNewProjectTurnHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SubmitNewProjectTurnHTTP) Status

func (r SubmitNewProjectTurnHTTP) Status() string

Status returns HTTPResponse.Status

func (SubmitNewProjectTurnHTTP) StatusCode

func (r SubmitNewProjectTurnHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SubmitNewProjectTurnJSONRequestBody

type SubmitNewProjectTurnJSONRequestBody = TurnRequest

SubmitNewProjectTurnJSONRequestBody defines body for SubmitNewProjectTurn for application/json ContentType.

type SyncSpecKitFeatureHTTP

type SyncSpecKitFeatureHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SpecKitSyncResult
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON405      *Unsupported
	JSON503      *AdaptorUnavailable
}

func ParseSyncSpecKitFeatureHTTP

func ParseSyncSpecKitFeatureHTTP(rsp *http.Response) (*SyncSpecKitFeatureHTTP, error)

ParseSyncSpecKitFeatureHTTP parses an HTTP response from a SyncSpecKitFeatureWithResponse call

func (SyncSpecKitFeatureHTTP) ContentType

func (r SyncSpecKitFeatureHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SyncSpecKitFeatureHTTP) Status

func (r SyncSpecKitFeatureHTTP) Status() string

Status returns HTTPResponse.Status

func (SyncSpecKitFeatureHTTP) StatusCode

func (r SyncSpecKitFeatureHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SyncSpecKitFeatureJSONRequestBody

type SyncSpecKitFeatureJSONRequestBody = SpecKitSyncRequest

SyncSpecKitFeatureJSONRequestBody defines body for SyncSpecKitFeature for application/json ContentType.

type SyncSpecKitFeatureParams

type SyncSpecKitFeatureParams struct {
	// XGEMBAConfirm Idempotency nonce. Replays of the same nonce return the cached response.
	XGEMBAConfirm string `json:"X-GEMBA-Confirm"`
}

SyncSpecKitFeatureParams defines parameters for SyncSpecKitFeature.

type Transport

type Transport string

Transport defines model for Transport.

const (
	Api   Transport = "api"
	Exec  Transport = "exec"
	Ipc   Transport = "ipc"
	Jsonl Transport = "jsonl"
	Mcp   Transport = "mcp"
)

Defines values for Transport.

func (Transport) Valid

func (e Transport) Valid() bool

Valid indicates whether the value is a known member of the Transport enum.

type TurnRequest

type TurnRequest struct {
	// Edits Optional in-place edits the operator made to the plan preview pane since the last turn. Open shape — the skill interprets the path-keyed diff.
	Edits *map[string]interface{} `json:"edits,omitempty"`

	// Message Operator message. Free text — the skill parses intent.
	Message string `json:"message"`
}

TurnRequest Request body for `POST /api/v1/newproject/:id/turn`.

type TurnResponse

type TurnResponse struct {
	// Reply Skill reply for the conversation pane. Empty when the skill updates the plan silently.
	Reply string `json:"reply"`

	// ReplyAt Server-supplied timestamp for the reply (RFC3339Nano).
	ReplyAt time.Time `json:"reply_at"`

	// ReplyId Server-assigned message id for the reply (stable across re-renders).
	ReplyId string `json:"reply_id"`

	// State Authoritative server-side state for one new-project session. Each turn returns a fresh copy; the client replaces its local copy wholesale rather than merging diffs.
	State NewProjectState `json:"state"`
}

TurnResponse Returned by `POST /api/v1/newproject/:id/turn`.

type UnauthorizedResponse

type UnauthorizedResponse struct {
	Code  string `json:"code"`
	Error string `json:"error"`
}

UnauthorizedResponse defines model for UnauthorizedResponse.

type Unsupported

type Unsupported = Error

Unsupported Shared error envelope (gm-faz). `error` is a stable token the SPA branches on; `message` is human-readable and may be surfaced verbatim.

type VersionResponse

type VersionResponse struct {
	Component string `json:"component"`
	Status    string `json:"status"`
}

VersionResponse defines model for VersionResponse.

type WatchSpecHTTP

type WatchSpecHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON404      *NotFound
	JSON501      *NotImplemented
}

func ParseWatchSpecHTTP

func ParseWatchSpecHTTP(rsp *http.Response) (*WatchSpecHTTP, error)

ParseWatchSpecHTTP parses an HTTP response from a WatchSpecWithResponse call

func (WatchSpecHTTP) ContentType

func (r WatchSpecHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WatchSpecHTTP) Status

func (r WatchSpecHTTP) Status() string

Status returns HTTPResponse.Status

func (WatchSpecHTTP) StatusCode

func (r WatchSpecHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WhoamiResponse

type WhoamiResponse struct {
	// ServerVersion Build version of the gemba server.
	ServerVersion string `json:"server_version"`

	// Subject Identity the credential maps to. v1 returns a static 'operator' for the single-token model; multi-identity arrives with M3 OAuth.
	Subject string `json:"subject"`
}

WhoamiResponse defines model for WhoamiResponse.

type WorkItem

type WorkItem struct {
	Assignee             *AgentRef              `json:"assignee,omitempty"`
	CreatedAt            time.Time              `json:"created_at"`
	Description          *string                `json:"description,omitempty"`
	Id                   string                 `json:"id"`
	Kind                 string                 `json:"kind"`
	Labels               *[]string              `json:"labels,omitempty"`
	Owner                *AgentRef              `json:"owner,omitempty"`
	PrimaryRepositoryId  *string                `json:"primary_repository_id,omitempty"`
	Priority             *int                   `json:"priority,omitempty"`
	RepositoryIds        *[]string              `json:"repository_ids,omitempty"`
	SprintId             *string                `json:"sprint_id,omitempty"`
	StateCategory        StateCategory          `json:"state_category"`
	Status               string                 `json:"status"`
	Title                string                 `json:"title"`
	UpdatedAt            time.Time              `json:"updated_at"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

WorkItem Subset of the WorkItem fields most commonly read by the SPA. The full shape (relationships, evidence, dod, derived signals, custom fields) is the source of truth in `core/types.go` and `web/src/types/core.gen.ts`; this schema documents the wire-stable subset for a typed client. `additionalProperties: true` keeps clients forward-compatible with fields landing in follow-up beads.

func (WorkItem) Get

func (a WorkItem) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for WorkItem. Returns the specified element and whether it was found

func (WorkItem) MarshalJSON

func (a WorkItem) MarshalJSON() ([]byte, error)

Override default JSON handling for WorkItem to handle AdditionalProperties

func (*WorkItem) Set

func (a *WorkItem) Set(fieldName string, value interface{})

Setter for additional properties for WorkItem

func (*WorkItem) UnmarshalJSON

func (a *WorkItem) UnmarshalJSON(b []byte) error

Override default JSON handling for WorkItem to handle AdditionalProperties

type WorkspaceID

type WorkspaceID = string

WorkspaceID defines model for WorkspaceID.

type WorkspaceStatusHTTP

type WorkspaceStatusHTTP struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON501      *NotImplemented
}

func ParseWorkspaceStatusHTTP

func ParseWorkspaceStatusHTTP(rsp *http.Response) (*WorkspaceStatusHTTP, error)

ParseWorkspaceStatusHTTP parses an HTTP response from a WorkspaceStatusWithResponse call

func (WorkspaceStatusHTTP) ContentType

func (r WorkspaceStatusHTTP) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (WorkspaceStatusHTTP) Status

func (r WorkspaceStatusHTTP) Status() string

Status returns HTTPResponse.Status

func (WorkspaceStatusHTTP) StatusCode

func (r WorkspaceStatusHTTP) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL