client

package
v0.0.0-...-287a3c7 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClaudePayload

func BuildClaudePayload(hooksClaudeBody string, hooksClaudeApikeyToken string, hooksClaudeProjectSlugInput string) (*hooks.ClaudePayload, error)

BuildClaudePayload builds the payload for the hooks claude endpoint from CLI flags.

func BuildCodexPayload

func BuildCodexPayload(hooksCodexBody string, hooksCodexApikeyToken string, hooksCodexProjectSlugInput string) (*hooks.CodexPayload, error)

BuildCodexPayload builds the payload for the hooks codex endpoint from CLI flags.

func BuildCursorPayload

func BuildCursorPayload(hooksCursorBody string, hooksCursorApikeyToken string, hooksCursorProjectSlugInput string) (*hooks.CursorPayload, error)

BuildCursorPayload builds the payload for the hooks cursor endpoint from CLI flags.

func BuildLogsPayload

func BuildLogsPayload(hooksLogsBody string, hooksLogsApikeyToken string, hooksLogsProjectSlugInput string) (*hooks.LogsPayload, error)

BuildLogsPayload builds the payload for the hooks logs endpoint from CLI flags.

func BuildMetricsPayload

func BuildMetricsPayload(hooksMetricsBody string, hooksMetricsApikeyToken string, hooksMetricsProjectSlugInput string) (*hooks.MetricsPayload, error)

BuildMetricsPayload builds the payload for the hooks metrics endpoint from CLI flags.

func ClaudeHooksPath

func ClaudeHooksPath() string

ClaudeHooksPath returns the URL path to the hooks service claude HTTP endpoint.

func CodexHooksPath

func CodexHooksPath() string

CodexHooksPath returns the URL path to the hooks service codex HTTP endpoint.

func CursorHooksPath

func CursorHooksPath() string

CursorHooksPath returns the URL path to the hooks service cursor HTTP endpoint.

func DecodeClaudeResponse

func DecodeClaudeResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeClaudeResponse returns a decoder for responses returned by the hooks claude endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeClaudeResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "conflict" (type *goa.ServiceError): http.StatusConflict
  • "unsupported_media" (type *goa.ServiceError): http.StatusUnsupportedMediaType
  • "invalid" (type *goa.ServiceError): http.StatusUnprocessableEntity
  • "invariant_violation" (type *goa.ServiceError): http.StatusInternalServerError
  • "unexpected" (type *goa.ServiceError): http.StatusInternalServerError
  • "gateway_error" (type *goa.ServiceError): http.StatusBadGateway
  • error: internal error

func DecodeCodexResponse

func DecodeCodexResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeCodexResponse returns a decoder for responses returned by the hooks codex endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCodexResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "conflict" (type *goa.ServiceError): http.StatusConflict
  • "unsupported_media" (type *goa.ServiceError): http.StatusUnsupportedMediaType
  • "invalid" (type *goa.ServiceError): http.StatusUnprocessableEntity
  • "invariant_violation" (type *goa.ServiceError): http.StatusInternalServerError
  • "unexpected" (type *goa.ServiceError): http.StatusInternalServerError
  • "gateway_error" (type *goa.ServiceError): http.StatusBadGateway
  • error: internal error

func DecodeCursorResponse

func DecodeCursorResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeCursorResponse returns a decoder for responses returned by the hooks cursor endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCursorResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "conflict" (type *goa.ServiceError): http.StatusConflict
  • "unsupported_media" (type *goa.ServiceError): http.StatusUnsupportedMediaType
  • "invalid" (type *goa.ServiceError): http.StatusUnprocessableEntity
  • "invariant_violation" (type *goa.ServiceError): http.StatusInternalServerError
  • "unexpected" (type *goa.ServiceError): http.StatusInternalServerError
  • "gateway_error" (type *goa.ServiceError): http.StatusBadGateway
  • error: internal error

func DecodeLogsResponse

func DecodeLogsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeLogsResponse returns a decoder for responses returned by the hooks logs endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeLogsResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "conflict" (type *goa.ServiceError): http.StatusConflict
  • "unsupported_media" (type *goa.ServiceError): http.StatusUnsupportedMediaType
  • "invalid" (type *goa.ServiceError): http.StatusUnprocessableEntity
  • "invariant_violation" (type *goa.ServiceError): http.StatusInternalServerError
  • "unexpected" (type *goa.ServiceError): http.StatusInternalServerError
  • "gateway_error" (type *goa.ServiceError): http.StatusBadGateway
  • error: internal error

func DecodeMetricsResponse

func DecodeMetricsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeMetricsResponse returns a decoder for responses returned by the hooks metrics endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeMetricsResponse may return the following errors:

  • "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
  • "forbidden" (type *goa.ServiceError): http.StatusForbidden
  • "bad_request" (type *goa.ServiceError): http.StatusBadRequest
  • "not_found" (type *goa.ServiceError): http.StatusNotFound
  • "conflict" (type *goa.ServiceError): http.StatusConflict
  • "unsupported_media" (type *goa.ServiceError): http.StatusUnsupportedMediaType
  • "invalid" (type *goa.ServiceError): http.StatusUnprocessableEntity
  • "invariant_violation" (type *goa.ServiceError): http.StatusInternalServerError
  • "unexpected" (type *goa.ServiceError): http.StatusInternalServerError
  • "gateway_error" (type *goa.ServiceError): http.StatusBadGateway
  • error: internal error

func EncodeClaudeRequest

func EncodeClaudeRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeClaudeRequest returns an encoder for requests sent to the hooks claude server.

func EncodeCodexRequest

func EncodeCodexRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeCodexRequest returns an encoder for requests sent to the hooks codex server.

func EncodeCursorRequest

func EncodeCursorRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeCursorRequest returns an encoder for requests sent to the hooks cursor server.

func EncodeLogsRequest

func EncodeLogsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeLogsRequest returns an encoder for requests sent to the hooks logs server.

func EncodeMetricsRequest

func EncodeMetricsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeMetricsRequest returns an encoder for requests sent to the hooks metrics server.

func LogsHooksPath

func LogsHooksPath() string

LogsHooksPath returns the URL path to the hooks service logs HTTP endpoint.

func MetricsHooksPath

func MetricsHooksPath() string

MetricsHooksPath returns the URL path to the hooks service metrics HTTP endpoint.

func NewClaudeBadRequest

func NewClaudeBadRequest(body *ClaudeBadRequestResponseBody) *goa.ServiceError

NewClaudeBadRequest builds a hooks service claude endpoint bad_request error.

func NewClaudeConflict

func NewClaudeConflict(body *ClaudeConflictResponseBody) *goa.ServiceError

NewClaudeConflict builds a hooks service claude endpoint conflict error.

func NewClaudeForbidden

func NewClaudeForbidden(body *ClaudeForbiddenResponseBody) *goa.ServiceError

NewClaudeForbidden builds a hooks service claude endpoint forbidden error.

func NewClaudeGatewayError

func NewClaudeGatewayError(body *ClaudeGatewayErrorResponseBody) *goa.ServiceError

NewClaudeGatewayError builds a hooks service claude endpoint gateway_error error.

func NewClaudeHookResultOK

func NewClaudeHookResultOK(body *ClaudeResponseBody) *hooks.ClaudeHookResult

NewClaudeHookResultOK builds a "hooks" service "claude" endpoint result from a HTTP "OK" response.

func NewClaudeInvalid

func NewClaudeInvalid(body *ClaudeInvalidResponseBody) *goa.ServiceError

NewClaudeInvalid builds a hooks service claude endpoint invalid error.

func NewClaudeInvariantViolation

func NewClaudeInvariantViolation(body *ClaudeInvariantViolationResponseBody) *goa.ServiceError

NewClaudeInvariantViolation builds a hooks service claude endpoint invariant_violation error.

func NewClaudeNotFound

func NewClaudeNotFound(body *ClaudeNotFoundResponseBody) *goa.ServiceError

NewClaudeNotFound builds a hooks service claude endpoint not_found error.

func NewClaudeUnauthorized

func NewClaudeUnauthorized(body *ClaudeUnauthorizedResponseBody) *goa.ServiceError

NewClaudeUnauthorized builds a hooks service claude endpoint unauthorized error.

func NewClaudeUnexpected

func NewClaudeUnexpected(body *ClaudeUnexpectedResponseBody) *goa.ServiceError

NewClaudeUnexpected builds a hooks service claude endpoint unexpected error.

func NewClaudeUnsupportedMedia

func NewClaudeUnsupportedMedia(body *ClaudeUnsupportedMediaResponseBody) *goa.ServiceError

NewClaudeUnsupportedMedia builds a hooks service claude endpoint unsupported_media error.

func NewCodexBadRequest

func NewCodexBadRequest(body *CodexBadRequestResponseBody) *goa.ServiceError

NewCodexBadRequest builds a hooks service codex endpoint bad_request error.

func NewCodexConflict

func NewCodexConflict(body *CodexConflictResponseBody) *goa.ServiceError

NewCodexConflict builds a hooks service codex endpoint conflict error.

func NewCodexForbidden

func NewCodexForbidden(body *CodexForbiddenResponseBody) *goa.ServiceError

NewCodexForbidden builds a hooks service codex endpoint forbidden error.

func NewCodexGatewayError

func NewCodexGatewayError(body *CodexGatewayErrorResponseBody) *goa.ServiceError

NewCodexGatewayError builds a hooks service codex endpoint gateway_error error.

func NewCodexHookResultOK

func NewCodexHookResultOK(body *CodexResponseBody) *hooks.CodexHookResult

NewCodexHookResultOK builds a "hooks" service "codex" endpoint result from a HTTP "OK" response.

func NewCodexInvalid

func NewCodexInvalid(body *CodexInvalidResponseBody) *goa.ServiceError

NewCodexInvalid builds a hooks service codex endpoint invalid error.

func NewCodexInvariantViolation

func NewCodexInvariantViolation(body *CodexInvariantViolationResponseBody) *goa.ServiceError

NewCodexInvariantViolation builds a hooks service codex endpoint invariant_violation error.

func NewCodexNotFound

func NewCodexNotFound(body *CodexNotFoundResponseBody) *goa.ServiceError

NewCodexNotFound builds a hooks service codex endpoint not_found error.

func NewCodexUnauthorized

func NewCodexUnauthorized(body *CodexUnauthorizedResponseBody) *goa.ServiceError

NewCodexUnauthorized builds a hooks service codex endpoint unauthorized error.

func NewCodexUnexpected

func NewCodexUnexpected(body *CodexUnexpectedResponseBody) *goa.ServiceError

NewCodexUnexpected builds a hooks service codex endpoint unexpected error.

func NewCodexUnsupportedMedia

func NewCodexUnsupportedMedia(body *CodexUnsupportedMediaResponseBody) *goa.ServiceError

NewCodexUnsupportedMedia builds a hooks service codex endpoint unsupported_media error.

func NewCursorBadRequest

func NewCursorBadRequest(body *CursorBadRequestResponseBody) *goa.ServiceError

NewCursorBadRequest builds a hooks service cursor endpoint bad_request error.

func NewCursorConflict

func NewCursorConflict(body *CursorConflictResponseBody) *goa.ServiceError

NewCursorConflict builds a hooks service cursor endpoint conflict error.

func NewCursorForbidden

func NewCursorForbidden(body *CursorForbiddenResponseBody) *goa.ServiceError

NewCursorForbidden builds a hooks service cursor endpoint forbidden error.

func NewCursorGatewayError

func NewCursorGatewayError(body *CursorGatewayErrorResponseBody) *goa.ServiceError

NewCursorGatewayError builds a hooks service cursor endpoint gateway_error error.

func NewCursorHookResultOK

func NewCursorHookResultOK(body *CursorResponseBody) *hooks.CursorHookResult

NewCursorHookResultOK builds a "hooks" service "cursor" endpoint result from a HTTP "OK" response.

func NewCursorInvalid

func NewCursorInvalid(body *CursorInvalidResponseBody) *goa.ServiceError

NewCursorInvalid builds a hooks service cursor endpoint invalid error.

func NewCursorInvariantViolation

func NewCursorInvariantViolation(body *CursorInvariantViolationResponseBody) *goa.ServiceError

NewCursorInvariantViolation builds a hooks service cursor endpoint invariant_violation error.

func NewCursorNotFound

func NewCursorNotFound(body *CursorNotFoundResponseBody) *goa.ServiceError

NewCursorNotFound builds a hooks service cursor endpoint not_found error.

func NewCursorUnauthorized

func NewCursorUnauthorized(body *CursorUnauthorizedResponseBody) *goa.ServiceError

NewCursorUnauthorized builds a hooks service cursor endpoint unauthorized error.

func NewCursorUnexpected

func NewCursorUnexpected(body *CursorUnexpectedResponseBody) *goa.ServiceError

NewCursorUnexpected builds a hooks service cursor endpoint unexpected error.

func NewCursorUnsupportedMedia

func NewCursorUnsupportedMedia(body *CursorUnsupportedMediaResponseBody) *goa.ServiceError

NewCursorUnsupportedMedia builds a hooks service cursor endpoint unsupported_media error.

func NewLogsBadRequest

func NewLogsBadRequest(body *LogsBadRequestResponseBody) *goa.ServiceError

NewLogsBadRequest builds a hooks service logs endpoint bad_request error.

func NewLogsConflict

func NewLogsConflict(body *LogsConflictResponseBody) *goa.ServiceError

NewLogsConflict builds a hooks service logs endpoint conflict error.

func NewLogsForbidden

func NewLogsForbidden(body *LogsForbiddenResponseBody) *goa.ServiceError

NewLogsForbidden builds a hooks service logs endpoint forbidden error.

func NewLogsGatewayError

func NewLogsGatewayError(body *LogsGatewayErrorResponseBody) *goa.ServiceError

NewLogsGatewayError builds a hooks service logs endpoint gateway_error error.

func NewLogsInvalid

func NewLogsInvalid(body *LogsInvalidResponseBody) *goa.ServiceError

NewLogsInvalid builds a hooks service logs endpoint invalid error.

func NewLogsInvariantViolation

func NewLogsInvariantViolation(body *LogsInvariantViolationResponseBody) *goa.ServiceError

NewLogsInvariantViolation builds a hooks service logs endpoint invariant_violation error.

func NewLogsNotFound

func NewLogsNotFound(body *LogsNotFoundResponseBody) *goa.ServiceError

NewLogsNotFound builds a hooks service logs endpoint not_found error.

func NewLogsUnauthorized

func NewLogsUnauthorized(body *LogsUnauthorizedResponseBody) *goa.ServiceError

NewLogsUnauthorized builds a hooks service logs endpoint unauthorized error.

func NewLogsUnexpected

func NewLogsUnexpected(body *LogsUnexpectedResponseBody) *goa.ServiceError

NewLogsUnexpected builds a hooks service logs endpoint unexpected error.

func NewLogsUnsupportedMedia

func NewLogsUnsupportedMedia(body *LogsUnsupportedMediaResponseBody) *goa.ServiceError

NewLogsUnsupportedMedia builds a hooks service logs endpoint unsupported_media error.

func NewMetricsBadRequest

func NewMetricsBadRequest(body *MetricsBadRequestResponseBody) *goa.ServiceError

NewMetricsBadRequest builds a hooks service metrics endpoint bad_request error.

func NewMetricsConflict

func NewMetricsConflict(body *MetricsConflictResponseBody) *goa.ServiceError

NewMetricsConflict builds a hooks service metrics endpoint conflict error.

func NewMetricsForbidden

func NewMetricsForbidden(body *MetricsForbiddenResponseBody) *goa.ServiceError

NewMetricsForbidden builds a hooks service metrics endpoint forbidden error.

func NewMetricsGatewayError

func NewMetricsGatewayError(body *MetricsGatewayErrorResponseBody) *goa.ServiceError

NewMetricsGatewayError builds a hooks service metrics endpoint gateway_error error.

func NewMetricsInvalid

func NewMetricsInvalid(body *MetricsInvalidResponseBody) *goa.ServiceError

NewMetricsInvalid builds a hooks service metrics endpoint invalid error.

func NewMetricsInvariantViolation

func NewMetricsInvariantViolation(body *MetricsInvariantViolationResponseBody) *goa.ServiceError

NewMetricsInvariantViolation builds a hooks service metrics endpoint invariant_violation error.

func NewMetricsNotFound

func NewMetricsNotFound(body *MetricsNotFoundResponseBody) *goa.ServiceError

NewMetricsNotFound builds a hooks service metrics endpoint not_found error.

func NewMetricsUnauthorized

func NewMetricsUnauthorized(body *MetricsUnauthorizedResponseBody) *goa.ServiceError

NewMetricsUnauthorized builds a hooks service metrics endpoint unauthorized error.

func NewMetricsUnexpected

func NewMetricsUnexpected(body *MetricsUnexpectedResponseBody) *goa.ServiceError

NewMetricsUnexpected builds a hooks service metrics endpoint unexpected error.

func NewMetricsUnsupportedMedia

func NewMetricsUnsupportedMedia(body *MetricsUnsupportedMediaResponseBody) *goa.ServiceError

NewMetricsUnsupportedMedia builds a hooks service metrics endpoint unsupported_media error.

func ValidateClaudeBadRequestResponseBody

func ValidateClaudeBadRequestResponseBody(body *ClaudeBadRequestResponseBody) (err error)

ValidateClaudeBadRequestResponseBody runs the validations defined on claude_bad_request_response_body

func ValidateClaudeConflictResponseBody

func ValidateClaudeConflictResponseBody(body *ClaudeConflictResponseBody) (err error)

ValidateClaudeConflictResponseBody runs the validations defined on claude_conflict_response_body

func ValidateClaudeForbiddenResponseBody

func ValidateClaudeForbiddenResponseBody(body *ClaudeForbiddenResponseBody) (err error)

ValidateClaudeForbiddenResponseBody runs the validations defined on claude_forbidden_response_body

func ValidateClaudeGatewayErrorResponseBody

func ValidateClaudeGatewayErrorResponseBody(body *ClaudeGatewayErrorResponseBody) (err error)

ValidateClaudeGatewayErrorResponseBody runs the validations defined on claude_gateway_error_response_body

func ValidateClaudeInvalidResponseBody

func ValidateClaudeInvalidResponseBody(body *ClaudeInvalidResponseBody) (err error)

ValidateClaudeInvalidResponseBody runs the validations defined on claude_invalid_response_body

func ValidateClaudeInvariantViolationResponseBody

func ValidateClaudeInvariantViolationResponseBody(body *ClaudeInvariantViolationResponseBody) (err error)

ValidateClaudeInvariantViolationResponseBody runs the validations defined on claude_invariant_violation_response_body

func ValidateClaudeNotFoundResponseBody

func ValidateClaudeNotFoundResponseBody(body *ClaudeNotFoundResponseBody) (err error)

ValidateClaudeNotFoundResponseBody runs the validations defined on claude_not_found_response_body

func ValidateClaudeUnauthorizedResponseBody

func ValidateClaudeUnauthorizedResponseBody(body *ClaudeUnauthorizedResponseBody) (err error)

ValidateClaudeUnauthorizedResponseBody runs the validations defined on claude_unauthorized_response_body

func ValidateClaudeUnexpectedResponseBody

func ValidateClaudeUnexpectedResponseBody(body *ClaudeUnexpectedResponseBody) (err error)

ValidateClaudeUnexpectedResponseBody runs the validations defined on claude_unexpected_response_body

func ValidateClaudeUnsupportedMediaResponseBody

func ValidateClaudeUnsupportedMediaResponseBody(body *ClaudeUnsupportedMediaResponseBody) (err error)

ValidateClaudeUnsupportedMediaResponseBody runs the validations defined on claude_unsupported_media_response_body

func ValidateCodexBadRequestResponseBody

func ValidateCodexBadRequestResponseBody(body *CodexBadRequestResponseBody) (err error)

ValidateCodexBadRequestResponseBody runs the validations defined on codex_bad_request_response_body

func ValidateCodexConflictResponseBody

func ValidateCodexConflictResponseBody(body *CodexConflictResponseBody) (err error)

ValidateCodexConflictResponseBody runs the validations defined on codex_conflict_response_body

func ValidateCodexForbiddenResponseBody

func ValidateCodexForbiddenResponseBody(body *CodexForbiddenResponseBody) (err error)

ValidateCodexForbiddenResponseBody runs the validations defined on codex_forbidden_response_body

func ValidateCodexGatewayErrorResponseBody

func ValidateCodexGatewayErrorResponseBody(body *CodexGatewayErrorResponseBody) (err error)

ValidateCodexGatewayErrorResponseBody runs the validations defined on codex_gateway_error_response_body

func ValidateCodexInvalidResponseBody

func ValidateCodexInvalidResponseBody(body *CodexInvalidResponseBody) (err error)

ValidateCodexInvalidResponseBody runs the validations defined on codex_invalid_response_body

func ValidateCodexInvariantViolationResponseBody

func ValidateCodexInvariantViolationResponseBody(body *CodexInvariantViolationResponseBody) (err error)

ValidateCodexInvariantViolationResponseBody runs the validations defined on codex_invariant_violation_response_body

func ValidateCodexNotFoundResponseBody

func ValidateCodexNotFoundResponseBody(body *CodexNotFoundResponseBody) (err error)

ValidateCodexNotFoundResponseBody runs the validations defined on codex_not_found_response_body

func ValidateCodexUnauthorizedResponseBody

func ValidateCodexUnauthorizedResponseBody(body *CodexUnauthorizedResponseBody) (err error)

ValidateCodexUnauthorizedResponseBody runs the validations defined on codex_unauthorized_response_body

func ValidateCodexUnexpectedResponseBody

func ValidateCodexUnexpectedResponseBody(body *CodexUnexpectedResponseBody) (err error)

ValidateCodexUnexpectedResponseBody runs the validations defined on codex_unexpected_response_body

func ValidateCodexUnsupportedMediaResponseBody

func ValidateCodexUnsupportedMediaResponseBody(body *CodexUnsupportedMediaResponseBody) (err error)

ValidateCodexUnsupportedMediaResponseBody runs the validations defined on codex_unsupported_media_response_body

func ValidateCursorBadRequestResponseBody

func ValidateCursorBadRequestResponseBody(body *CursorBadRequestResponseBody) (err error)

ValidateCursorBadRequestResponseBody runs the validations defined on cursor_bad_request_response_body

func ValidateCursorConflictResponseBody

func ValidateCursorConflictResponseBody(body *CursorConflictResponseBody) (err error)

ValidateCursorConflictResponseBody runs the validations defined on cursor_conflict_response_body

func ValidateCursorForbiddenResponseBody

func ValidateCursorForbiddenResponseBody(body *CursorForbiddenResponseBody) (err error)

ValidateCursorForbiddenResponseBody runs the validations defined on cursor_forbidden_response_body

func ValidateCursorGatewayErrorResponseBody

func ValidateCursorGatewayErrorResponseBody(body *CursorGatewayErrorResponseBody) (err error)

ValidateCursorGatewayErrorResponseBody runs the validations defined on cursor_gateway_error_response_body

func ValidateCursorInvalidResponseBody

func ValidateCursorInvalidResponseBody(body *CursorInvalidResponseBody) (err error)

ValidateCursorInvalidResponseBody runs the validations defined on cursor_invalid_response_body

func ValidateCursorInvariantViolationResponseBody

func ValidateCursorInvariantViolationResponseBody(body *CursorInvariantViolationResponseBody) (err error)

ValidateCursorInvariantViolationResponseBody runs the validations defined on cursor_invariant_violation_response_body

func ValidateCursorNotFoundResponseBody

func ValidateCursorNotFoundResponseBody(body *CursorNotFoundResponseBody) (err error)

ValidateCursorNotFoundResponseBody runs the validations defined on cursor_not_found_response_body

func ValidateCursorUnauthorizedResponseBody

func ValidateCursorUnauthorizedResponseBody(body *CursorUnauthorizedResponseBody) (err error)

ValidateCursorUnauthorizedResponseBody runs the validations defined on cursor_unauthorized_response_body

func ValidateCursorUnexpectedResponseBody

func ValidateCursorUnexpectedResponseBody(body *CursorUnexpectedResponseBody) (err error)

ValidateCursorUnexpectedResponseBody runs the validations defined on cursor_unexpected_response_body

func ValidateCursorUnsupportedMediaResponseBody

func ValidateCursorUnsupportedMediaResponseBody(body *CursorUnsupportedMediaResponseBody) (err error)

ValidateCursorUnsupportedMediaResponseBody runs the validations defined on cursor_unsupported_media_response_body

func ValidateLogsBadRequestResponseBody

func ValidateLogsBadRequestResponseBody(body *LogsBadRequestResponseBody) (err error)

ValidateLogsBadRequestResponseBody runs the validations defined on logs_bad_request_response_body

func ValidateLogsConflictResponseBody

func ValidateLogsConflictResponseBody(body *LogsConflictResponseBody) (err error)

ValidateLogsConflictResponseBody runs the validations defined on logs_conflict_response_body

func ValidateLogsForbiddenResponseBody

func ValidateLogsForbiddenResponseBody(body *LogsForbiddenResponseBody) (err error)

ValidateLogsForbiddenResponseBody runs the validations defined on logs_forbidden_response_body

func ValidateLogsGatewayErrorResponseBody

func ValidateLogsGatewayErrorResponseBody(body *LogsGatewayErrorResponseBody) (err error)

ValidateLogsGatewayErrorResponseBody runs the validations defined on logs_gateway_error_response_body

func ValidateLogsInvalidResponseBody

func ValidateLogsInvalidResponseBody(body *LogsInvalidResponseBody) (err error)

ValidateLogsInvalidResponseBody runs the validations defined on logs_invalid_response_body

func ValidateLogsInvariantViolationResponseBody

func ValidateLogsInvariantViolationResponseBody(body *LogsInvariantViolationResponseBody) (err error)

ValidateLogsInvariantViolationResponseBody runs the validations defined on logs_invariant_violation_response_body

func ValidateLogsNotFoundResponseBody

func ValidateLogsNotFoundResponseBody(body *LogsNotFoundResponseBody) (err error)

ValidateLogsNotFoundResponseBody runs the validations defined on logs_not_found_response_body

func ValidateLogsUnauthorizedResponseBody

func ValidateLogsUnauthorizedResponseBody(body *LogsUnauthorizedResponseBody) (err error)

ValidateLogsUnauthorizedResponseBody runs the validations defined on logs_unauthorized_response_body

func ValidateLogsUnexpectedResponseBody

func ValidateLogsUnexpectedResponseBody(body *LogsUnexpectedResponseBody) (err error)

ValidateLogsUnexpectedResponseBody runs the validations defined on logs_unexpected_response_body

func ValidateLogsUnsupportedMediaResponseBody

func ValidateLogsUnsupportedMediaResponseBody(body *LogsUnsupportedMediaResponseBody) (err error)

ValidateLogsUnsupportedMediaResponseBody runs the validations defined on logs_unsupported_media_response_body

func ValidateMetricsBadRequestResponseBody

func ValidateMetricsBadRequestResponseBody(body *MetricsBadRequestResponseBody) (err error)

ValidateMetricsBadRequestResponseBody runs the validations defined on metrics_bad_request_response_body

func ValidateMetricsConflictResponseBody

func ValidateMetricsConflictResponseBody(body *MetricsConflictResponseBody) (err error)

ValidateMetricsConflictResponseBody runs the validations defined on metrics_conflict_response_body

func ValidateMetricsForbiddenResponseBody

func ValidateMetricsForbiddenResponseBody(body *MetricsForbiddenResponseBody) (err error)

ValidateMetricsForbiddenResponseBody runs the validations defined on metrics_forbidden_response_body

func ValidateMetricsGatewayErrorResponseBody

func ValidateMetricsGatewayErrorResponseBody(body *MetricsGatewayErrorResponseBody) (err error)

ValidateMetricsGatewayErrorResponseBody runs the validations defined on metrics_gateway_error_response_body

func ValidateMetricsInvalidResponseBody

func ValidateMetricsInvalidResponseBody(body *MetricsInvalidResponseBody) (err error)

ValidateMetricsInvalidResponseBody runs the validations defined on metrics_invalid_response_body

func ValidateMetricsInvariantViolationResponseBody

func ValidateMetricsInvariantViolationResponseBody(body *MetricsInvariantViolationResponseBody) (err error)

ValidateMetricsInvariantViolationResponseBody runs the validations defined on metrics_invariant_violation_response_body

func ValidateMetricsNotFoundResponseBody

func ValidateMetricsNotFoundResponseBody(body *MetricsNotFoundResponseBody) (err error)

ValidateMetricsNotFoundResponseBody runs the validations defined on metrics_not_found_response_body

func ValidateMetricsUnauthorizedResponseBody

func ValidateMetricsUnauthorizedResponseBody(body *MetricsUnauthorizedResponseBody) (err error)

ValidateMetricsUnauthorizedResponseBody runs the validations defined on metrics_unauthorized_response_body

func ValidateMetricsUnexpectedResponseBody

func ValidateMetricsUnexpectedResponseBody(body *MetricsUnexpectedResponseBody) (err error)

ValidateMetricsUnexpectedResponseBody runs the validations defined on metrics_unexpected_response_body

func ValidateMetricsUnsupportedMediaResponseBody

func ValidateMetricsUnsupportedMediaResponseBody(body *MetricsUnsupportedMediaResponseBody) (err error)

ValidateMetricsUnsupportedMediaResponseBody runs the validations defined on metrics_unsupported_media_response_body

Types

type ClaudeBadRequestResponseBody

type ClaudeBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ClaudeBadRequestResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body for the "bad_request" error.

type ClaudeConflictResponseBody

type ClaudeConflictResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ClaudeConflictResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body for the "conflict" error.

type ClaudeForbiddenResponseBody

type ClaudeForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ClaudeForbiddenResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body for the "forbidden" error.

type ClaudeGatewayErrorResponseBody

type ClaudeGatewayErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ClaudeGatewayErrorResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body for the "gateway_error" error.

type ClaudeInvalidResponseBody

type ClaudeInvalidResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ClaudeInvalidResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body for the "invalid" error.

type ClaudeInvariantViolationResponseBody

type ClaudeInvariantViolationResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ClaudeInvariantViolationResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body for the "invariant_violation" error.

type ClaudeNotFoundResponseBody

type ClaudeNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ClaudeNotFoundResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body for the "not_found" error.

type ClaudeRequestBody

type ClaudeRequestBody struct {
	// The type of hook event
	HookEventName string `form:"hook_event_name" json:"hook_event_name" xml:"hook_event_name"`
	// The name of the tool (for tool-related events)
	ToolName *string `form:"tool_name,omitempty" json:"tool_name,omitempty" xml:"tool_name,omitempty"`
	// The unique ID for this tool use
	ToolUseID *string `form:"tool_use_id,omitempty" json:"tool_use_id,omitempty" xml:"tool_use_id,omitempty"`
	// The input to the tool
	ToolInput any `form:"tool_input,omitempty" json:"tool_input,omitempty" xml:"tool_input,omitempty"`
	// The response from the tool (PostToolUse only)
	ToolResponse any `form:"tool_response,omitempty" json:"tool_response,omitempty" xml:"tool_response,omitempty"`
	// The error from the tool (PostToolUseFailure only)
	Error any `form:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"`
	// Whether the failure was caused by user interruption (PostToolUseFailure only)
	IsInterrupt *bool `form:"is_interrupt,omitempty" json:"is_interrupt,omitempty" xml:"is_interrupt,omitempty"`
	// The Claude Code session ID
	SessionID *string `form:"session_id,omitempty" json:"session_id,omitempty" xml:"session_id,omitempty"`
	// The working directory when the event fired
	Cwd *string `form:"cwd,omitempty" json:"cwd,omitempty" xml:"cwd,omitempty"`
	// Path to the conversation transcript file
	TranscriptPath *string `form:"transcript_path,omitempty" json:"transcript_path,omitempty" xml:"transcript_path,omitempty"`
	// Additional hook-specific data
	AdditionalData map[string]any `form:"additional_data,omitempty" json:"additional_data,omitempty" xml:"additional_data,omitempty"`
	// How the session started: startup, resume, clear, compact (SessionStart only)
	Source *string `form:"source,omitempty" json:"source,omitempty" xml:"source,omitempty"`
	// The model identifier (SessionStart, Stop)
	Model *string `form:"model,omitempty" json:"model,omitempty" xml:"model,omitempty"`
	// The user's prompt text (UserPromptSubmit only)
	Prompt *string `form:"prompt,omitempty" json:"prompt,omitempty" xml:"prompt,omitempty"`
	// Claude's final response text (Stop only)
	LastAssistantMessage *string `form:"last_assistant_message,omitempty" json:"last_assistant_message,omitempty" xml:"last_assistant_message,omitempty"`
	// Whether a stop hook continuation is active (Stop only)
	StopHookActive *bool `form:"stop_hook_active,omitempty" json:"stop_hook_active,omitempty" xml:"stop_hook_active,omitempty"`
	// Why the session ended (SessionEnd only)
	Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"`
	// Type of notification: permission_prompt, idle_prompt, auth_success,
	// elicitation_dialog (Notification only)
	NotificationType *string `form:"notification_type,omitempty" json:"notification_type,omitempty" xml:"notification_type,omitempty"`
	// Notification message text (Notification only)
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Notification title (Notification only)
	Title *string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty"`
}

ClaudeRequestBody is the type of the "hooks" service "claude" endpoint HTTP request body.

func NewClaudeRequestBody

func NewClaudeRequestBody(p *hooks.ClaudePayload) *ClaudeRequestBody

NewClaudeRequestBody builds the HTTP request body from the payload of the "claude" endpoint of the "hooks" service.

type ClaudeResponseBody

type ClaudeResponseBody struct {
	// Whether to continue (SessionStart only)
	Continue *bool `form:"continue,omitempty" json:"continue,omitempty" xml:"continue,omitempty"`
	// Reason if blocked (SessionStart only)
	StopReason *string `form:"stopReason,omitempty" json:"stopReason,omitempty" xml:"stopReason,omitempty"`
	// Whether to suppress the hook's output
	SuppressOutput *bool `form:"suppressOutput,omitempty" json:"suppressOutput,omitempty" xml:"suppressOutput,omitempty"`
	// Warning message shown to the user in the terminal
	SystemMessage *string `form:"systemMessage,omitempty" json:"systemMessage,omitempty" xml:"systemMessage,omitempty"`
	// Hook-specific output as JSON object
	HookSpecificOutput any `form:"hookSpecificOutput,omitempty" json:"hookSpecificOutput,omitempty" xml:"hookSpecificOutput,omitempty"`
}

ClaudeResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body.

type ClaudeUnauthorizedResponseBody

type ClaudeUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ClaudeUnauthorizedResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body for the "unauthorized" error.

type ClaudeUnexpectedResponseBody

type ClaudeUnexpectedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ClaudeUnexpectedResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body for the "unexpected" error.

type ClaudeUnsupportedMediaResponseBody

type ClaudeUnsupportedMediaResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

ClaudeUnsupportedMediaResponseBody is the type of the "hooks" service "claude" endpoint HTTP response body for the "unsupported_media" error.

type Client

type Client struct {
	// Claude Doer is the HTTP client used to make requests to the claude endpoint.
	ClaudeDoer goahttp.Doer

	// Cursor Doer is the HTTP client used to make requests to the cursor endpoint.
	CursorDoer goahttp.Doer

	// Codex Doer is the HTTP client used to make requests to the codex endpoint.
	CodexDoer goahttp.Doer

	// Logs Doer is the HTTP client used to make requests to the logs endpoint.
	LogsDoer goahttp.Doer

	// Metrics Doer is the HTTP client used to make requests to the metrics
	// endpoint.
	MetricsDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the hooks service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the hooks service servers.

func (*Client) BuildClaudeRequest

func (c *Client) BuildClaudeRequest(ctx context.Context, v any) (*http.Request, error)

BuildClaudeRequest instantiates a HTTP request object with method and path set to call the "hooks" service "claude" endpoint

func (*Client) BuildCodexRequest

func (c *Client) BuildCodexRequest(ctx context.Context, v any) (*http.Request, error)

BuildCodexRequest instantiates a HTTP request object with method and path set to call the "hooks" service "codex" endpoint

func (*Client) BuildCursorRequest

func (c *Client) BuildCursorRequest(ctx context.Context, v any) (*http.Request, error)

BuildCursorRequest instantiates a HTTP request object with method and path set to call the "hooks" service "cursor" endpoint

func (*Client) BuildLogsRequest

func (c *Client) BuildLogsRequest(ctx context.Context, v any) (*http.Request, error)

BuildLogsRequest instantiates a HTTP request object with method and path set to call the "hooks" service "logs" endpoint

func (*Client) BuildMetricsRequest

func (c *Client) BuildMetricsRequest(ctx context.Context, v any) (*http.Request, error)

BuildMetricsRequest instantiates a HTTP request object with method and path set to call the "hooks" service "metrics" endpoint

func (*Client) Claude

func (c *Client) Claude() goa.Endpoint

Claude returns an endpoint that makes HTTP requests to the hooks service claude server.

func (*Client) Codex

func (c *Client) Codex() goa.Endpoint

Codex returns an endpoint that makes HTTP requests to the hooks service codex server.

func (*Client) Cursor

func (c *Client) Cursor() goa.Endpoint

Cursor returns an endpoint that makes HTTP requests to the hooks service cursor server.

func (*Client) Logs

func (c *Client) Logs() goa.Endpoint

Logs returns an endpoint that makes HTTP requests to the hooks service logs server.

func (*Client) Metrics

func (c *Client) Metrics() goa.Endpoint

Metrics returns an endpoint that makes HTTP requests to the hooks service metrics server.

type CodexBadRequestResponseBody

type CodexBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CodexBadRequestResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body for the "bad_request" error.

type CodexConflictResponseBody

type CodexConflictResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CodexConflictResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body for the "conflict" error.

type CodexForbiddenResponseBody

type CodexForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CodexForbiddenResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body for the "forbidden" error.

type CodexGatewayErrorResponseBody

type CodexGatewayErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CodexGatewayErrorResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body for the "gateway_error" error.

type CodexInvalidResponseBody

type CodexInvalidResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CodexInvalidResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body for the "invalid" error.

type CodexInvariantViolationResponseBody

type CodexInvariantViolationResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CodexInvariantViolationResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body for the "invariant_violation" error.

type CodexNotFoundResponseBody

type CodexNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CodexNotFoundResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body for the "not_found" error.

type CodexRequestBody

type CodexRequestBody struct {
	// The type of hook event
	HookEventName string `form:"hook_event_name" json:"hook_event_name" xml:"hook_event_name"`
	// The Codex session ID
	SessionID *string `form:"session_id,omitempty" json:"session_id,omitempty" xml:"session_id,omitempty"`
	// Path to the conversation transcript file
	TranscriptPath *string `form:"transcript_path,omitempty" json:"transcript_path,omitempty" xml:"transcript_path,omitempty"`
	// The working directory when the event fired
	Cwd *string `form:"cwd,omitempty" json:"cwd,omitempty" xml:"cwd,omitempty"`
	// The model identifier
	Model *string `form:"model,omitempty" json:"model,omitempty" xml:"model,omitempty"`
	// The name of the tool
	ToolName *string `form:"tool_name,omitempty" json:"tool_name,omitempty" xml:"tool_name,omitempty"`
	// The input to the tool (PreToolUse only)
	ToolInput any `form:"tool_input,omitempty" json:"tool_input,omitempty" xml:"tool_input,omitempty"`
	// The output from the tool (PostToolUse only)
	ToolOutput any `form:"tool_output,omitempty" json:"tool_output,omitempty" xml:"tool_output,omitempty"`
	// The type of permission being requested (PermissionRequest only)
	PermissionType *string `form:"permission_type,omitempty" json:"permission_type,omitempty" xml:"permission_type,omitempty"`
	// The user's prompt text (UserPromptSubmit only)
	Prompt *string `form:"prompt,omitempty" json:"prompt,omitempty" xml:"prompt,omitempty"`
}

CodexRequestBody is the type of the "hooks" service "codex" endpoint HTTP request body.

func NewCodexRequestBody

func NewCodexRequestBody(p *hooks.CodexPayload) *CodexRequestBody

NewCodexRequestBody builds the HTTP request body from the payload of the "codex" endpoint of the "hooks" service.

type CodexResponseBody

type CodexResponseBody struct {
	// Permission decision for blocking events: allow or deny
	Decision *string `form:"decision,omitempty" json:"decision,omitempty" xml:"decision,omitempty"`
	// Reason for the decision, shown to the user
	Reason *string `form:"reason,omitempty" json:"reason,omitempty" xml:"reason,omitempty"`
}

CodexResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body.

type CodexUnauthorizedResponseBody

type CodexUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CodexUnauthorizedResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body for the "unauthorized" error.

type CodexUnexpectedResponseBody

type CodexUnexpectedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CodexUnexpectedResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body for the "unexpected" error.

type CodexUnsupportedMediaResponseBody

type CodexUnsupportedMediaResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CodexUnsupportedMediaResponseBody is the type of the "hooks" service "codex" endpoint HTTP response body for the "unsupported_media" error.

type CursorBadRequestResponseBody

type CursorBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CursorBadRequestResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body for the "bad_request" error.

type CursorConflictResponseBody

type CursorConflictResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CursorConflictResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body for the "conflict" error.

type CursorForbiddenResponseBody

type CursorForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CursorForbiddenResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body for the "forbidden" error.

type CursorGatewayErrorResponseBody

type CursorGatewayErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CursorGatewayErrorResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body for the "gateway_error" error.

type CursorInvalidResponseBody

type CursorInvalidResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CursorInvalidResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body for the "invalid" error.

type CursorInvariantViolationResponseBody

type CursorInvariantViolationResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CursorInvariantViolationResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body for the "invariant_violation" error.

type CursorNotFoundResponseBody

type CursorNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CursorNotFoundResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body for the "not_found" error.

type CursorRequestBody

type CursorRequestBody struct {
	// The type of hook event (e.g. beforeSubmitPrompt, stop, afterAgentResponse,
	// afterAgentThought, preToolUse, postToolUse, postToolUseFailure,
	// beforeMCPExecution, afterMCPExecution)
	HookEventName string `form:"hook_event_name" json:"hook_event_name" xml:"hook_event_name"`
	// The Cursor conversation ID
	ConversationID *string `form:"conversation_id,omitempty" json:"conversation_id,omitempty" xml:"conversation_id,omitempty"`
	// The Cursor generation ID
	GenerationID *string `form:"generation_id,omitempty" json:"generation_id,omitempty" xml:"generation_id,omitempty"`
	// The model being used
	Model *string `form:"model,omitempty" json:"model,omitempty" xml:"model,omitempty"`
	// The Cursor IDE version
	CursorVersion *string `form:"cursor_version,omitempty" json:"cursor_version,omitempty" xml:"cursor_version,omitempty"`
	// Email of the authenticated Cursor user, if available
	UserEmail *string `form:"user_email,omitempty" json:"user_email,omitempty" xml:"user_email,omitempty"`
	// The session ID from Cursor
	SessionID *string `form:"session_id,omitempty" json:"session_id,omitempty" xml:"session_id,omitempty"`
	// The name of the tool
	ToolName *string `form:"tool_name,omitempty" json:"tool_name,omitempty" xml:"tool_name,omitempty"`
	// The unique ID for this tool use
	ToolUseID *string `form:"tool_use_id,omitempty" json:"tool_use_id,omitempty" xml:"tool_use_id,omitempty"`
	// The input to the tool
	ToolInput any `form:"tool_input,omitempty" json:"tool_input,omitempty" xml:"tool_input,omitempty"`
	// The response from the tool (postToolUse only)
	ToolResponse any `form:"tool_response,omitempty" json:"tool_response,omitempty" xml:"tool_response,omitempty"`
	// The error from the tool (postToolUseFailure only)
	Error any `form:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"`
	// Whether the failure was caused by user interruption
	IsInterrupt *bool `form:"is_interrupt,omitempty" json:"is_interrupt,omitempty" xml:"is_interrupt,omitempty"`
	// Additional hook-specific data
	AdditionalData map[string]any `form:"additional_data,omitempty" json:"additional_data,omitempty" xml:"additional_data,omitempty"`
	// The user's prompt text (beforeSubmitPrompt only)
	Prompt *string `form:"prompt,omitempty" json:"prompt,omitempty" xml:"prompt,omitempty"`
	// The composer mode, e.g. agent (beforeSubmitPrompt only)
	ComposerMode *string `form:"composer_mode,omitempty" json:"composer_mode,omitempty" xml:"composer_mode,omitempty"`
	// Path to the conversation transcript JSONL file
	TranscriptPath *string `form:"transcript_path,omitempty" json:"transcript_path,omitempty" xml:"transcript_path,omitempty"`
	// Completion status, e.g. completed (stop only)
	Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"`
	// Number of agentic loops executed (stop only)
	LoopCount *int `form:"loop_count,omitempty" json:"loop_count,omitempty" xml:"loop_count,omitempty"`
	// Total input tokens used (stop, afterAgentResponse)
	InputTokens *int `form:"input_tokens,omitempty" json:"input_tokens,omitempty" xml:"input_tokens,omitempty"`
	// Total output tokens used (stop, afterAgentResponse)
	OutputTokens *int `form:"output_tokens,omitempty" json:"output_tokens,omitempty" xml:"output_tokens,omitempty"`
	// Tokens read from cache (stop, afterAgentResponse)
	CacheReadTokens *int `form:"cache_read_tokens,omitempty" json:"cache_read_tokens,omitempty" xml:"cache_read_tokens,omitempty"`
	// Tokens written to cache (stop, afterAgentResponse)
	CacheWriteTokens *int `form:"cache_write_tokens,omitempty" json:"cache_write_tokens,omitempty" xml:"cache_write_tokens,omitempty"`
	// The assistant's response text (afterAgentResponse) or thinking text
	// (afterAgentThought)
	Text *string `form:"text,omitempty" json:"text,omitempty" xml:"text,omitempty"`
	// Duration in milliseconds for the thinking block (afterAgentThought only)
	DurationMs *int `form:"duration_ms,omitempty" json:"duration_ms,omitempty" xml:"duration_ms,omitempty"`
	// URL of the MCP server (beforeMCPExecution / afterMCPExecution, URL-based
	// servers only)
	URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"`
	// Command string for command-based MCP servers (beforeMCPExecution /
	// afterMCPExecution only)
	Command *string `form:"command,omitempty" json:"command,omitempty" xml:"command,omitempty"`
	// JSON-encoded string of the MCP tool response (afterMCPExecution only)
	ResultJSON *string `form:"result_json,omitempty" json:"result_json,omitempty" xml:"result_json,omitempty"`
	// Execution duration in milliseconds, excluding approval wait time
	// (afterMCPExecution only)
	Duration *float64 `form:"duration,omitempty" json:"duration,omitempty" xml:"duration,omitempty"`
}

CursorRequestBody is the type of the "hooks" service "cursor" endpoint HTTP request body.

func NewCursorRequestBody

func NewCursorRequestBody(p *hooks.CursorPayload) *CursorRequestBody

NewCursorRequestBody builds the HTTP request body from the payload of the "cursor" endpoint of the "hooks" service.

type CursorResponseBody

type CursorResponseBody struct {
	// Permission decision for preToolUse / beforeMCPExecution: allow, deny, or ask
	Permission *string `form:"permission,omitempty" json:"permission,omitempty" xml:"permission,omitempty"`
	// Message to display to the user
	UserMessage *string `form:"user_message,omitempty" json:"user_message,omitempty" xml:"user_message,omitempty"`
	// Additional context to inject into the conversation
	AdditionalContext *string `form:"additional_context,omitempty" json:"additional_context,omitempty" xml:"additional_context,omitempty"`
	// Message sent back to the agent (beforeMCPExecution only)
	AgentMessage *string `form:"agent_message,omitempty" json:"agent_message,omitempty" xml:"agent_message,omitempty"`
}

CursorResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body.

type CursorUnauthorizedResponseBody

type CursorUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CursorUnauthorizedResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body for the "unauthorized" error.

type CursorUnexpectedResponseBody

type CursorUnexpectedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CursorUnexpectedResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body for the "unexpected" error.

type CursorUnsupportedMediaResponseBody

type CursorUnsupportedMediaResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

CursorUnsupportedMediaResponseBody is the type of the "hooks" service "cursor" endpoint HTTP response body for the "unsupported_media" error.

type LogsBadRequestResponseBody

type LogsBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

LogsBadRequestResponseBody is the type of the "hooks" service "logs" endpoint HTTP response body for the "bad_request" error.

type LogsConflictResponseBody

type LogsConflictResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

LogsConflictResponseBody is the type of the "hooks" service "logs" endpoint HTTP response body for the "conflict" error.

type LogsForbiddenResponseBody

type LogsForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

LogsForbiddenResponseBody is the type of the "hooks" service "logs" endpoint HTTP response body for the "forbidden" error.

type LogsGatewayErrorResponseBody

type LogsGatewayErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

LogsGatewayErrorResponseBody is the type of the "hooks" service "logs" endpoint HTTP response body for the "gateway_error" error.

type LogsInvalidResponseBody

type LogsInvalidResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

LogsInvalidResponseBody is the type of the "hooks" service "logs" endpoint HTTP response body for the "invalid" error.

type LogsInvariantViolationResponseBody

type LogsInvariantViolationResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

LogsInvariantViolationResponseBody is the type of the "hooks" service "logs" endpoint HTTP response body for the "invariant_violation" error.

type LogsNotFoundResponseBody

type LogsNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

LogsNotFoundResponseBody is the type of the "hooks" service "logs" endpoint HTTP response body for the "not_found" error.

type LogsRequestBody

type LogsRequestBody struct {
	// Array of resource logs
	ResourceLogs []*OTELResourceLogRequestBody `form:"resourceLogs,omitempty" json:"resourceLogs,omitempty" xml:"resourceLogs,omitempty"`
}

LogsRequestBody is the type of the "hooks" service "logs" endpoint HTTP request body.

func NewLogsRequestBody

func NewLogsRequestBody(p *hooks.LogsPayload) *LogsRequestBody

NewLogsRequestBody builds the HTTP request body from the payload of the "logs" endpoint of the "hooks" service.

type LogsUnauthorizedResponseBody

type LogsUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

LogsUnauthorizedResponseBody is the type of the "hooks" service "logs" endpoint HTTP response body for the "unauthorized" error.

type LogsUnexpectedResponseBody

type LogsUnexpectedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

LogsUnexpectedResponseBody is the type of the "hooks" service "logs" endpoint HTTP response body for the "unexpected" error.

type LogsUnsupportedMediaResponseBody

type LogsUnsupportedMediaResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

LogsUnsupportedMediaResponseBody is the type of the "hooks" service "logs" endpoint HTTP response body for the "unsupported_media" error.

type MetricsBadRequestResponseBody

type MetricsBadRequestResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MetricsBadRequestResponseBody is the type of the "hooks" service "metrics" endpoint HTTP response body for the "bad_request" error.

type MetricsConflictResponseBody

type MetricsConflictResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MetricsConflictResponseBody is the type of the "hooks" service "metrics" endpoint HTTP response body for the "conflict" error.

type MetricsForbiddenResponseBody

type MetricsForbiddenResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MetricsForbiddenResponseBody is the type of the "hooks" service "metrics" endpoint HTTP response body for the "forbidden" error.

type MetricsGatewayErrorResponseBody

type MetricsGatewayErrorResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MetricsGatewayErrorResponseBody is the type of the "hooks" service "metrics" endpoint HTTP response body for the "gateway_error" error.

type MetricsInvalidResponseBody

type MetricsInvalidResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MetricsInvalidResponseBody is the type of the "hooks" service "metrics" endpoint HTTP response body for the "invalid" error.

type MetricsInvariantViolationResponseBody

type MetricsInvariantViolationResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MetricsInvariantViolationResponseBody is the type of the "hooks" service "metrics" endpoint HTTP response body for the "invariant_violation" error.

type MetricsNotFoundResponseBody

type MetricsNotFoundResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MetricsNotFoundResponseBody is the type of the "hooks" service "metrics" endpoint HTTP response body for the "not_found" error.

type MetricsRequestBody

type MetricsRequestBody struct {
	// Array of resource metrics
	ResourceMetrics []*OTELResourceMetricsRequestBody `form:"resourceMetrics,omitempty" json:"resourceMetrics,omitempty" xml:"resourceMetrics,omitempty"`
}

MetricsRequestBody is the type of the "hooks" service "metrics" endpoint HTTP request body.

func NewMetricsRequestBody

func NewMetricsRequestBody(p *hooks.MetricsPayload) *MetricsRequestBody

NewMetricsRequestBody builds the HTTP request body from the payload of the "metrics" endpoint of the "hooks" service.

type MetricsUnauthorizedResponseBody

type MetricsUnauthorizedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MetricsUnauthorizedResponseBody is the type of the "hooks" service "metrics" endpoint HTTP response body for the "unauthorized" error.

type MetricsUnexpectedResponseBody

type MetricsUnexpectedResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MetricsUnexpectedResponseBody is the type of the "hooks" service "metrics" endpoint HTTP response body for the "unexpected" error.

type MetricsUnsupportedMediaResponseBody

type MetricsUnsupportedMediaResponseBody struct {
	// Name is the name of this class of errors.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// Is the error temporary?
	Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"`
	// Is the error a timeout?
	Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"`
	// Is the error a server-side fault?
	Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"`
}

MetricsUnsupportedMediaResponseBody is the type of the "hooks" service "metrics" endpoint HTTP response body for the "unsupported_media" error.

type OTELAttributeRequestBody

type OTELAttributeRequestBody struct {
	// Attribute key
	Key string `form:"key" json:"key" xml:"key"`
	// Attribute value
	Value *OTELAttributeValueRequestBody `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

OTELAttributeRequestBody is used to define fields on request body types.

type OTELAttributeValueRequestBody

type OTELAttributeValueRequestBody struct {
	// String value
	StringValue *string `form:"stringValue,omitempty" json:"stringValue,omitempty" xml:"stringValue,omitempty"`
	// Integer value (string-encoded per OTLP/JSON, or raw number)
	IntValue any `form:"intValue,omitempty" json:"intValue,omitempty" xml:"intValue,omitempty"`
	// Boolean value
	BoolValue *bool `form:"boolValue,omitempty" json:"boolValue,omitempty" xml:"boolValue,omitempty"`
	// Double value
	DoubleValue *float64 `form:"doubleValue,omitempty" json:"doubleValue,omitempty" xml:"doubleValue,omitempty"`
	// Array value (passed through)
	ArrayValue any `form:"arrayValue,omitempty" json:"arrayValue,omitempty" xml:"arrayValue,omitempty"`
	// Key-value list value (passed through)
	KvlistValue any `form:"kvlistValue,omitempty" json:"kvlistValue,omitempty" xml:"kvlistValue,omitempty"`
	// Bytes value (base64-encoded per OTLP/JSON)
	BytesValue *string `form:"bytesValue,omitempty" json:"bytesValue,omitempty" xml:"bytesValue,omitempty"`
}

OTELAttributeValueRequestBody is used to define fields on request body types.

type OTELLogBodyRequestBody

type OTELLogBodyRequestBody struct {
	// String body value
	StringValue *string `form:"stringValue,omitempty" json:"stringValue,omitempty" xml:"stringValue,omitempty"`
}

OTELLogBodyRequestBody is used to define fields on request body types.

type OTELLogRecordRequestBody

type OTELLogRecordRequestBody struct {
	// Timestamp in nanoseconds since Unix epoch
	TimeUnixNano *string `form:"timeUnixNano,omitempty" json:"timeUnixNano,omitempty" xml:"timeUnixNano,omitempty"`
	// Observed timestamp in nanoseconds
	ObservedTimeUnixNano *string `form:"observedTimeUnixNano,omitempty" json:"observedTimeUnixNano,omitempty" xml:"observedTimeUnixNano,omitempty"`
	// Log body content
	Body *OTELLogBodyRequestBody `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty"`
	// Log attributes
	Attributes []*OTELAttributeRequestBody `form:"attributes,omitempty" json:"attributes,omitempty" xml:"attributes,omitempty"`
	// Number of dropped attributes
	DroppedAttributesCount *int `form:"droppedAttributesCount,omitempty" json:"droppedAttributesCount,omitempty" xml:"droppedAttributesCount,omitempty"`
}

OTELLogRecordRequestBody is used to define fields on request body types.

type OTELMetricRequestBody

type OTELMetricRequestBody struct {
	// Metric name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Metric description
	Description *string `form:"description,omitempty" json:"description,omitempty" xml:"description,omitempty"`
	// Metric unit
	Unit *string `form:"unit,omitempty" json:"unit,omitempty" xml:"unit,omitempty"`
	// Sum metric data
	Sum *OTELSumRequestBody `form:"sum,omitempty" json:"sum,omitempty" xml:"sum,omitempty"`
	// Gauge metric data (passed through)
	Gauge any `form:"gauge,omitempty" json:"gauge,omitempty" xml:"gauge,omitempty"`
	// Histogram metric data (passed through)
	Histogram any `form:"histogram,omitempty" json:"histogram,omitempty" xml:"histogram,omitempty"`
	// ExponentialHistogram metric data (passed through)
	ExponentialHistogram any `form:"exponentialHistogram,omitempty" json:"exponentialHistogram,omitempty" xml:"exponentialHistogram,omitempty"`
	// Summary metric data (passed through)
	Summary any `form:"summary,omitempty" json:"summary,omitempty" xml:"summary,omitempty"`
}

OTELMetricRequestBody is used to define fields on request body types.

type OTELNumberDataPointRequestBody

type OTELNumberDataPointRequestBody struct {
	// Data point attributes
	Attributes []*OTELAttributeRequestBody `form:"attributes,omitempty" json:"attributes,omitempty" xml:"attributes,omitempty"`
	// Start timestamp in nanoseconds
	StartTimeUnixNano *string `form:"startTimeUnixNano,omitempty" json:"startTimeUnixNano,omitempty" xml:"startTimeUnixNano,omitempty"`
	// Timestamp in nanoseconds
	TimeUnixNano *string `form:"timeUnixNano,omitempty" json:"timeUnixNano,omitempty" xml:"timeUnixNano,omitempty"`
	// Value as double
	AsDouble *float64 `form:"asDouble,omitempty" json:"asDouble,omitempty" xml:"asDouble,omitempty"`
	// Value as integer (string-encoded per OTLP/JSON, or raw number)
	AsInt any `form:"asInt,omitempty" json:"asInt,omitempty" xml:"asInt,omitempty"`
}

OTELNumberDataPointRequestBody is used to define fields on request body types.

type OTELResourceAttributeRequestBody

type OTELResourceAttributeRequestBody struct {
	// Resource attribute key
	Key string `form:"key" json:"key" xml:"key"`
	// Resource attribute value
	Value *OTELAttributeValueRequestBody `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

OTELResourceAttributeRequestBody is used to define fields on request body types.

type OTELResourceLogRequestBody

type OTELResourceLogRequestBody struct {
	// Resource information
	Resource *OTELResourceRequestBody `form:"resource,omitempty" json:"resource,omitempty" xml:"resource,omitempty"`
	// Array of scope logs
	ScopeLogs []*OTELScopeLogRequestBody `form:"scopeLogs,omitempty" json:"scopeLogs,omitempty" xml:"scopeLogs,omitempty"`
}

OTELResourceLogRequestBody is used to define fields on request body types.

type OTELResourceMetricsRequestBody

type OTELResourceMetricsRequestBody struct {
	// Resource information
	Resource *OTELResourceRequestBody `form:"resource,omitempty" json:"resource,omitempty" xml:"resource,omitempty"`
	// Array of scope metrics
	ScopeMetrics []*OTELScopeMetricsRequestBody `form:"scopeMetrics,omitempty" json:"scopeMetrics,omitempty" xml:"scopeMetrics,omitempty"`
}

OTELResourceMetricsRequestBody is used to define fields on request body types.

type OTELResourceRequestBody

type OTELResourceRequestBody struct {
	// Resource attributes
	Attributes []*OTELResourceAttributeRequestBody `form:"attributes,omitempty" json:"attributes,omitempty" xml:"attributes,omitempty"`
	// Number of dropped attributes
	DroppedAttributesCount *int `form:"droppedAttributesCount,omitempty" json:"droppedAttributesCount,omitempty" xml:"droppedAttributesCount,omitempty"`
}

OTELResourceRequestBody is used to define fields on request body types.

type OTELScopeLogRequestBody

type OTELScopeLogRequestBody struct {
	// Instrumentation scope information
	Scope *OTELScopeRequestBody `form:"scope,omitempty" json:"scope,omitempty" xml:"scope,omitempty"`
	// Array of log records
	LogRecords []*OTELLogRecordRequestBody `form:"logRecords,omitempty" json:"logRecords,omitempty" xml:"logRecords,omitempty"`
}

OTELScopeLogRequestBody is used to define fields on request body types.

type OTELScopeMetricsRequestBody

type OTELScopeMetricsRequestBody struct {
	// Instrumentation scope information
	Scope *OTELScopeRequestBody `form:"scope,omitempty" json:"scope,omitempty" xml:"scope,omitempty"`
	// Array of metrics
	Metrics []*OTELMetricRequestBody `form:"metrics,omitempty" json:"metrics,omitempty" xml:"metrics,omitempty"`
}

OTELScopeMetricsRequestBody is used to define fields on request body types.

type OTELScopeRequestBody

type OTELScopeRequestBody struct {
	// Scope name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Scope version
	Version *string `form:"version,omitempty" json:"version,omitempty" xml:"version,omitempty"`
}

OTELScopeRequestBody is used to define fields on request body types.

type OTELSumRequestBody

type OTELSumRequestBody struct {
	// Aggregation temporality (number or enum string)
	AggregationTemporality any `form:"aggregationTemporality,omitempty" json:"aggregationTemporality,omitempty" xml:"aggregationTemporality,omitempty"`
	// Whether the sum is monotonic
	IsMonotonic *bool `form:"isMonotonic,omitempty" json:"isMonotonic,omitempty" xml:"isMonotonic,omitempty"`
	// Data points
	DataPoints []*OTELNumberDataPointRequestBody `form:"dataPoints,omitempty" json:"dataPoints,omitempty" xml:"dataPoints,omitempty"`
}

OTELSumRequestBody is used to define fields on request body types.

Jump to

Keyboard shortcuts

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