Documentation
¶
Overview ¶
Package management provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func Ptr[T any](v T) *T
- type A2AAgentCard
- type A2AAgentCardDocument
- type A2AAgentCardPath
- type A2ACardRewriteUrls
- type A2ACardSigning
- type A2AConfig
- type A2AConfigProtocolVersion
- type A2AOperationConfig
- type A2AOperationConfigs
- type A2AOperationName
- type A2AProtectedAgentCard
- type A2AProtectedAgentCardMode
- type A2AProtocolBinding
- type A2APublicAgentCard
- type A2APublicAgentCardMode
- type A2ATransport
- type APIConfigData
- type APIConfigDataDeploymentState
- type APIKey
- type APIKeyCreationRequest
- type APIKeyCreationRequestExpiresInUnit
- type APIKeyCreationResponse
- type APIKeyListResponse
- type APIKeyRegenerationRequest
- type APIKeyRegenerationRequestExpiresInUnit
- type APIKeyRevocationResponse
- type APIKeySource
- type APIKeyStatus
- type APIKeyUpdateRequest
- type AgentConfigData
- type AgentConfigDataDeploymentState
- type AgentConfigDataUpstream0
- type AgentConfigDataUpstream1
- type AgentConfigDataUpstreamAuthType
- type AgentConfigDataUpstreamHostRewrite
- type AgentConfigData_Upstream
- func (t AgentConfigData_Upstream) AsAgentConfigDataUpstream0() (AgentConfigDataUpstream0, error)
- func (t AgentConfigData_Upstream) AsAgentConfigDataUpstream1() (AgentConfigDataUpstream1, error)
- func (t *AgentConfigData_Upstream) FromAgentConfigDataUpstream0(v AgentConfigDataUpstream0) error
- func (t *AgentConfigData_Upstream) FromAgentConfigDataUpstream1(v AgentConfigDataUpstream1) error
- func (t AgentConfigData_Upstream) MarshalJSON() ([]byte, error)
- func (t *AgentConfigData_Upstream) MergeAgentConfigDataUpstream0(v AgentConfigDataUpstream0) error
- func (t *AgentConfigData_Upstream) MergeAgentConfigDataUpstream1(v AgentConfigDataUpstream1) error
- func (t *AgentConfigData_Upstream) UnmarshalJSON(b []byte) error
- type AgentConfiguration
- type AgentConfigurationApiVersion
- type AgentConfigurationKind
- type AgentConfigurationRequest
- type AgentConfigurationRequestApiVersion
- type AgentConfigurationRequestKind
- type CertificateListResponse
- type CertificateMatch
- type CertificateResponse
- type CertificateResponseRole
- type CertificateResponseStatus
- type CertificateResponseUsage
- type CertificateUploadRequest
- type CertificateUploadRequestRole
- type CertificateUploadRequestUsage
- type CertificateWarning
- type CertificateWarningCode
- type CreateAPIKeyJSONRequestBody
- type CreateAgentAPIKeyJSONRequestBody
- type CreateAgentJSONRequestBody
- type CreateGraphQLAPIJSONRequestBody
- type CreateGraphQLAPIKeyJSONRequestBody
- type CreateLLMProviderAPIKeyJSONRequestBody
- type CreateLLMProviderJSONRequestBody
- type CreateLLMProviderTemplateJSONRequestBody
- type CreateLLMProxyAPIKeyJSONRequestBody
- type CreateLLMProxyJSONRequestBody
- type CreateMCPProxyJSONRequestBody
- type CreateRestAPIJSONRequestBody
- type CreateSecretJSONRequestBody
- type CreateSubscriptionJSONRequestBody
- type CreateSubscriptionPlanJSONRequestBody
- type ErrorResponse
- type ExtractionIdentifier
- type ExtractionIdentifierLocation
- type GraphQLAPI
- type GraphQLAPIApiVersion
- type GraphQLAPIConfigData
- type GraphQLAPIConfigDataDeploymentState
- type GraphQLAPIKind
- type GraphQLAPIRequest
- type GraphQLAPIRequestApiVersion
- type GraphQLAPIRequestKind
- type InvalidParamFormatError
- type LLMAccessControl
- type LLMAccessControlMode
- type LLMPolicy
- type LLMPolicyPath
- type LLMPolicyPathMethods
- type LLMProviderConfigData
- type LLMProviderConfigDataDeploymentState
- type LLMProviderConfigDataUpstream0
- type LLMProviderConfigDataUpstream1
- type LLMProviderConfigDataUpstreamAuthType
- type LLMProviderConfigDataUpstreamHostRewrite
- type LLMProviderConfigData_Upstream
- func (t LLMProviderConfigData_Upstream) AsLLMProviderConfigDataUpstream0() (LLMProviderConfigDataUpstream0, error)
- func (t LLMProviderConfigData_Upstream) AsLLMProviderConfigDataUpstream1() (LLMProviderConfigDataUpstream1, error)
- func (t *LLMProviderConfigData_Upstream) FromLLMProviderConfigDataUpstream0(v LLMProviderConfigDataUpstream0) error
- func (t *LLMProviderConfigData_Upstream) FromLLMProviderConfigDataUpstream1(v LLMProviderConfigDataUpstream1) error
- func (t LLMProviderConfigData_Upstream) MarshalJSON() ([]byte, error)
- func (t *LLMProviderConfigData_Upstream) MergeLLMProviderConfigDataUpstream0(v LLMProviderConfigDataUpstream0) error
- func (t *LLMProviderConfigData_Upstream) MergeLLMProviderConfigDataUpstream1(v LLMProviderConfigDataUpstream1) error
- func (t *LLMProviderConfigData_Upstream) UnmarshalJSON(b []byte) error
- type LLMProviderConfiguration
- type LLMProviderConfigurationApiVersion
- type LLMProviderConfigurationKind
- type LLMProviderConfigurationRequest
- type LLMProviderConfigurationRequestApiVersion
- type LLMProviderConfigurationRequestKind
- type LLMProviderTemplate
- type LLMProviderTemplateApiVersion
- type LLMProviderTemplateData
- type LLMProviderTemplateKind
- type LLMProviderTemplateRequest
- type LLMProviderTemplateRequestApiVersion
- type LLMProviderTemplateRequestKind
- type LLMProviderTemplateResourceMapping
- type LLMProviderTemplateResourceMappings
- type LLMProxyAdditionalProvider
- type LLMProxyConfigData
- type LLMProxyConfigDataDeploymentState
- type LLMProxyConfiguration
- type LLMProxyConfigurationApiVersion
- type LLMProxyConfigurationKind
- type LLMProxyConfigurationRequest
- type LLMProxyConfigurationRequestApiVersion
- type LLMProxyConfigurationRequestKind
- type LLMProxyProvider
- type LLMProxyProviderEntry
- type LLMProxyTransformer
- type LLMUpstreamAuth
- type LLMUpstreamAuthType
- type ListAgentsParams
- type ListAgentsParamsStatus
- type ListCertificatesParams
- type ListCertificatesParamsUsage
- type ListGraphQLAPIsParams
- type ListGraphQLAPIsParamsStatus
- type ListLLMProviderTemplatesParams
- type ListLLMProvidersParams
- type ListLLMProvidersParamsStatus
- type ListLLMProxiesParams
- type ListLLMProxiesParamsStatus
- type ListMCPProxiesParams
- type ListMCPProxiesParamsStatus
- type ListRestAPIsParams
- type ListRestAPIsParamsStatus
- type ListSubscriptionsParams
- type ListSubscriptionsParamsStatus
- type MCPPrompt
- type MCPProxyConfigData
- type MCPProxyConfigDataDeploymentState
- type MCPProxyConfigDataUpstream0
- type MCPProxyConfigDataUpstream1
- type MCPProxyConfigDataUpstreamAuthType
- type MCPProxyConfigDataUpstreamHostRewrite
- type MCPProxyConfigData_Upstream
- func (t MCPProxyConfigData_Upstream) AsMCPProxyConfigDataUpstream0() (MCPProxyConfigDataUpstream0, error)
- func (t MCPProxyConfigData_Upstream) AsMCPProxyConfigDataUpstream1() (MCPProxyConfigDataUpstream1, error)
- func (t *MCPProxyConfigData_Upstream) FromMCPProxyConfigDataUpstream0(v MCPProxyConfigDataUpstream0) error
- func (t *MCPProxyConfigData_Upstream) FromMCPProxyConfigDataUpstream1(v MCPProxyConfigDataUpstream1) error
- func (t MCPProxyConfigData_Upstream) MarshalJSON() ([]byte, error)
- func (t *MCPProxyConfigData_Upstream) MergeMCPProxyConfigDataUpstream0(v MCPProxyConfigDataUpstream0) error
- func (t *MCPProxyConfigData_Upstream) MergeMCPProxyConfigDataUpstream1(v MCPProxyConfigDataUpstream1) error
- func (t *MCPProxyConfigData_Upstream) UnmarshalJSON(b []byte) error
- type MCPProxyConfiguration
- type MCPProxyConfigurationApiVersion
- type MCPProxyConfigurationKind
- type MCPProxyConfigurationRequest
- type MCPProxyConfigurationRequestApiVersion
- type MCPProxyConfigurationRequestKind
- type MCPResource
- type MCPTool
- type Metadata
- type MiddlewareFunc
- type Operation
- type OperationHeaderMatch
- type OperationHeaderMatchType
- type OperationMatch
- type OperationMethod
- type OperationPathMatch
- type OperationPathMatchType
- type OperationPolicy
- type OperationPolicyPath
- type OperationPolicyPathMethods
- type Policy
- type RegenerateAPIKeyJSONRequestBody
- type RegenerateAgentAPIKeyJSONRequestBody
- type RegenerateGraphQLAPIKeyJSONRequestBody
- type RegenerateLLMProviderAPIKeyJSONRequestBody
- type RegenerateLLMProxyAPIKeyJSONRequestBody
- type RequiredHeaderError
- type RequiredParamError
- type Resilience
- type ResourceStatus
- type ResourceStatusState
- type RestAPI
- type RestAPIApiVersion
- type RestAPIKind
- type RestAPIRequest
- type RestAPIRequestApiVersion
- type RestAPIRequestKind
- type RouteException
- type RouteExceptionMethods
- type SecretConfigData
- type SecretConfigListData
- type SecretConfigurationRequest
- type SecretConfigurationRequestApiVersion
- type SecretConfigurationRequestKind
- type SecretConfigurationResponseCreateUpdate
- type SecretConfigurationResponseCreateUpdateApiVersion
- type SecretConfigurationResponseCreateUpdateKind
- type SecretConfigurationResponseRetrieved
- type SecretConfigurationResponseRetrievedApiVersion
- type SecretConfigurationResponseRetrievedKind
- type SecretListItem
- type SecretListItemApiVersion
- type SecretListItemKind
- type SecretListResponse
- type SecretResourceServiceStatus
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) CreateAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateAgent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateAgentAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateGraphQLAPI(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateGraphQLAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateLLMProvider(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateLLMProviderAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateLLMProviderTemplate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateLLMProxy(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateLLMProxyAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateMCPProxy(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateRestAPI(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateSecret(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateSubscriptionPlan(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteAgent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteCertificate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteGraphQLAPI(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteLLMProvider(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteLLMProviderTemplate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteLLMProxy(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteMCPProxy(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteRestAPI(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteSecret(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteSubscription(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteSubscriptionPlan(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAgentById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetGraphQLAPIById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLLMProviderById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLLMProviderTemplateById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLLMProxyById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMCPProxyById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRestAPIById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSecret(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSubscriptionPlan(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAPIKeys(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAgentAPIKeys(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAgents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListCertificates(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListGraphQLAPIKeys(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListGraphQLAPIs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListLLMProviderAPIKeys(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListLLMProviderTemplates(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListLLMProviders(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListLLMProxies(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListLLMProxyAPIKeys(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListMCPProxies(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListRestAPIs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSecrets(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSubscriptionPlans(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RegenerateAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RegenerateAgentAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RegenerateGraphQLAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RegenerateLLMProviderAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RegenerateLLMProxyAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReloadCertificates(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RevokeAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RevokeAgentAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RevokeGraphQLAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RevokeLLMProviderAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RevokeLLMProxyAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateAgent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateAgentAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateCertificate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateGraphQLAPI(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateGraphQLAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateLLMProvider(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateLLMProviderAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateLLMProviderTemplate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateLLMProxy(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateLLMProxyAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateMCPProxy(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateRestAPI(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateSecret(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateSubscriptionPlan(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UploadCertificate(w http.ResponseWriter, r *http.Request)
- type StdHTTPServerOptions
- type SubscriptionCreateRequest
- type SubscriptionCreateRequestStatus
- type SubscriptionListResponse
- type SubscriptionPlanCreateRequest
- type SubscriptionPlanCreateRequestStatus
- type SubscriptionPlanCreateRequestThrottleLimitUnit
- type SubscriptionPlanListResponse
- type SubscriptionPlanResponse
- type SubscriptionPlanResponseStatus
- type SubscriptionPlanUpdateRequest
- type SubscriptionPlanUpdateRequestStatus
- type SubscriptionPlanUpdateRequestThrottleLimitUnit
- type SubscriptionResponse
- type SubscriptionResponseStatus
- type SubscriptionUpdateRequest
- type SubscriptionUpdateRequestStatus
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdateAPIKeyJSONRequestBody
- type UpdateAgentAPIKeyJSONRequestBody
- type UpdateAgentJSONRequestBody
- type UpdateCertificateJSONBody
- type UpdateCertificateJSONRequestBody
- type UpdateGraphQLAPIJSONRequestBody
- type UpdateGraphQLAPIKeyJSONRequestBody
- type UpdateLLMProviderAPIKeyJSONRequestBody
- type UpdateLLMProviderJSONRequestBody
- type UpdateLLMProviderTemplateJSONRequestBody
- type UpdateLLMProxyAPIKeyJSONRequestBody
- type UpdateLLMProxyJSONRequestBody
- type UpdateMCPProxyJSONRequestBody
- type UpdateRestAPIJSONRequestBody
- type UpdateSecretJSONRequestBody
- type UpdateSubscriptionJSONRequestBody
- type UpdateSubscriptionPlanJSONRequestBody
- type UploadCertificateJSONRequestBody
- type Upstream
- func (t Upstream) AsUpstream0() (Upstream0, error)
- func (t Upstream) AsUpstream1() (Upstream1, error)
- func (t *Upstream) FromUpstream0(v Upstream0) error
- func (t *Upstream) FromUpstream1(v Upstream1) error
- func (t Upstream) MarshalJSON() ([]byte, error)
- func (t *Upstream) MergeUpstream0(v Upstream0) error
- func (t *Upstream) MergeUpstream1(v Upstream1) error
- func (t *Upstream) UnmarshalJSON(b []byte) error
- type Upstream0
- type Upstream1
- type UpstreamAuth
- type UpstreamAuthAuthType
- type UpstreamDefinition
- type UpstreamHostRewrite
- type UpstreamTimeout
- type ValidationError
- type Warning
- type WarningCode
Constants ¶
const (
BasicAuthScopes = "basicAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
Types ¶
type A2AAgentCard ¶
type A2AAgentCard struct {
// Protected Authenticated extended Agent Card. It is served through the canonical GetExtendedAgentCard operation and uses that operation's policy chain — the policies in spec.a2a.operationConfigs, then any matching entry in spec.a2a.operationConfigs.operations. Public Agent Card policies never run for it, and it has no custom path or local policy list, because it is an A2A operation rather than a document at a location.
// This block is optional, and omitting it is the same as configuring `passthrough` with `rewriteUrls` disabled: the extended Agent Card is guarded for every Agent. Writing the block out only chooses how the card is produced — whether the gateway serves a document of its own (`managed`) or forwards the authenticated request (`passthrough`) — and, for `passthrough`, whether the proxied response's interface URLs are rewritten. Unlike `public`, an omitted block is never materialized into an explicit protected configuration.
// The gateway requires the request to have been authenticated by a policy in the Agent's own chain before the card is returned or proxied, and answers 401 otherwise. That applies in every mode and is not configurable: an Agent that attaches no authentication policy therefore fails closed instead of publishing its extended card, whether or not it declared this block. Where authentication sits among the configured policies is the Agent author's choice.
// Unlike `public`, which is required and whose `mode` must be stated, this block defaults, because the safe reading of an author's silence about the more privileged of the two representations is to protect it.
// Mode-specific rules are enforced at deploy time, not by this schema: `managed` requires `content`; `passthrough` accepts neither `content` nor `signing`, because the gateway does not parse or sign a proxied card, and only `passthrough` accepts `rewriteUrls`. When the public Agent Card is `managed`, it should additionally declare `capabilities.extendedAgentCard: true`, since that is what tells a client the operation exists at all. The declaration is recommended and is not enforced at deploy time.
Protected *A2AProtectedAgentCard `json:"protected,omitempty" yaml:"protected,omitempty"`
// Public Public Agent Card serving. `mode` selects whether the card is proxied from the upstream (`passthrough`) or validated, stored, and served by the gateway (`managed`), and defaults to `passthrough` when omitted. Mode-specific rules are enforced at deploy time, not by this schema: `managed` requires `content`; `passthrough` accepts neither `content` nor `signing`, because the gateway does not parse or sign a proxied card, and only `passthrough` accepts `rewriteUrls`.
Public *A2APublicAgentCard `json:"public,omitempty" yaml:"public,omitempty"`
}
A2AAgentCard Public Agent Card configuration and optional protected Agent Card configuration for the authenticated A2A GetExtendedAgentCard operation. The whole block is optional, and so is `public`. When either is omitted the gateway serves the public Agent Card in `passthrough` mode at /.well-known/agent-card.json, with `rewriteUrls` disabled and no public Agent Card policies — the same configuration as writing that block out explicitly. Omitting `protected` is *not* equivalent to omitting `public`: it keeps the compatibility behaviour described on that schema and is never turned into an explicit protected configuration by defaulting.
type A2AAgentCardDocument ¶
type A2AAgentCardDocument map[string]interface{}
A2AAgentCardDocument Complete A2A 1.0 Agent Card represented as a structured JSON object. JSON can be embedded directly because JSON object syntax is valid YAML. The controller additionally validates this object against the complete A2A Agent Card model for spec.a2a.protocolVersion, taken from the vendored A2A protocol definition (specification/a2a.proto). The document is stored and served as supplied — the gateway never rewrites it — so extension fields are preserved.
type A2AAgentCardPath ¶
type A2AAgentCardPath = string
A2AAgentCardPath Exact gateway-facing Agent Card path relative to spec.context. When omitted, the gateway uses /.well-known/agent-card.json. A custom path replaces that default route rather than creating an additional alias. In passthrough mode this does not change the upstream discovery path.
type A2ACardRewriteUrls ¶
type A2ACardRewriteUrls = bool
A2ACardRewriteUrls Whether the gateway rewrites `supportedInterfaces[].url` in a proxied Agent Card response so each entry points at the gateway endpoint serving that protocol binding, using the original request's HTTP or HTTPS scheme and the authority the client reached the gateway on. Valid only in `passthrough` mode, and rejected at deploy time in `managed` mode, where the gateway already owns the document and its interfaces are validated against the configured transports instead. Defaults to true. A proxied card advertises the URLs the agent is reachable at, so forwarding it unchanged tells every client to bypass the gateway that was put in front of the agent — the default therefore points those URLs at the gateway. Every interface is rewritten: one whose binding the Agent's configured transports do not expose has no gateway endpoint of its own, so it is given the endpoint of the first configured transport rather than keeping the agent's own URL. The gateway does not serve that binding, so a client selecting it is refused by the gateway instead of reaching the agent directly. The gateway buffers the card response (up to 1 MiB) and drops the upstream `signatures` block, which no longer covers the returned bytes; it never signs a passthrough card, so a rewritten card is unsigned. Enabling it does not make the card's security declarations verifiable. Set it to false to forward the proxied response — signatures included — byte-for-byte, accepting that clients configured from the card will not traverse the gateway.
type A2ACardSigning ¶
type A2ACardSigning struct {
// Enabled Whether the gateway signs the managed card it serves, using the active Agent Card signing key configured by the gateway administrator.
Enabled bool `json:"enabled" yaml:"enabled"`
}
A2ACardSigning Optional signing configuration for a managed Agent Card. Passthrough cards cannot configure gateway signing. Agent authors only enable or disable signing: the active key, its key identifier, and the JWS algorithm are selected from administrator-owned gateway system configuration at signing time, so rotating the key — including to a key using a different algorithm — requires no edit to any Agent. A card is re-signed when its Agent is next deployed, not when the key rotates; until then it keeps verifying against the retired key, which stays published while any stored card references it.
type A2AConfig ¶
type A2AConfig struct {
// AgentCard Public Agent Card configuration and optional protected Agent Card configuration for the authenticated A2A GetExtendedAgentCard operation.
// The whole block is optional, and so is `public`. When either is omitted the gateway serves the public Agent Card in `passthrough` mode at /.well-known/agent-card.json, with `rewriteUrls` disabled and no public Agent Card policies — the same configuration as writing that block out explicitly. Omitting `protected` is *not* equivalent to omitting `public`: it keeps the compatibility behaviour described on that schema and is never turned into an explicit protected configuration by defaulting.
AgentCard *A2AAgentCard `json:"agentCard,omitempty" yaml:"agentCard,omitempty"`
// OperationConfigs Transport exposure and common or operation-specific configuration for A2A operations. These policies and transports do not apply to public Agent Card serving.
OperationConfigs A2AOperationConfigs `json:"operationConfigs" yaml:"operationConfigs"`
// ProtocolVersion A2A protocol version exposed by the gateway. This selects the agent's operation set and HTTP+JSON bindings, the Agent Card model its managed card is validated against, and the field-presence rules used to sign that card — an agent exposes exactly one version and the gateway performs no protocol-version conversion. Managed Agent Card interfaces must advertise this version; in passthrough mode the upstream is responsible for advertising it.
ProtocolVersion A2AConfigProtocolVersion `json:"protocolVersion" yaml:"protocolVersion"`
}
A2AConfig A2A-specific agent configuration.
type A2AConfigProtocolVersion ¶
type A2AConfigProtocolVersion string
A2AConfigProtocolVersion A2A protocol version exposed by the gateway. This selects the agent's operation set and HTTP+JSON bindings, the Agent Card model its managed card is validated against, and the field-presence rules used to sign that card — an agent exposes exactly one version and the gateway performs no protocol-version conversion. Managed Agent Card interfaces must advertise this version; in passthrough mode the upstream is responsible for advertising it.
const (
N10 A2AConfigProtocolVersion = "1.0"
)
Defines values for A2AConfigProtocolVersion.
type A2AOperationConfig ¶
type A2AOperationConfig struct {
// FaultPolicies Ordered list of policies executed only when this operation fails, over the error response.
//
// Both levels run and the operation-level entries run FIRST. They are additive rather than an override: a fault entry is a handler, not a setting, so an operation-specific notification and an agent-wide audit hook both fire.
FaultPolicies *[]Policy `json:"faultPolicies,omitempty" yaml:"faultPolicies,omitempty"`
// Name Canonical A2A operation name. These names match the standard JSON-RPC and gRPC method names, but identify the binding-independent A2A operation. The effective set is closed and is the one defined by the agent's spec.a2a.protocolVersion; the values below are A2A 1.0's eleven operations, that being the only protocol version currently supported. A name outside the selected version's set is rejected at deploy time.
Name A2AOperationName `json:"name" yaml:"name"`
// Policies Ordered policies applied after spec.a2a.operationConfigs.policies when this operation is selected.
Policies *[]Policy `json:"policies,omitempty" yaml:"policies,omitempty"`
// Resilience Backend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.
Resilience *Resilience `json:"resilience,omitempty" yaml:"resilience,omitempty"`
}
A2AOperationConfig Configuration for one standard A2A 1.0 operation, identified by its canonical operation name. The gateway maps each exposed transport to this name before choosing the policy chain.
type A2AOperationConfigs ¶
type A2AOperationConfigs struct {
// FaultPolicies Ordered list of policies executed only when a request fails, over the error response. Applies to every A2A operation, and like policies above it does not apply to the public Agent Card discovery route — that route declares its own under agentCard.public.faultPolicies.
//
// Each entry is labelled with the source of the failure, so an entry that should see only some failures narrows with executionCondition.
FaultPolicies *[]Policy `json:"faultPolicies,omitempty" yaml:"faultPolicies,omitempty"`
// Operations Optional per-operation configuration keyed by canonical A2A operation name. This array is not an allowlist: unlisted standard operations still receive spec.a2a.operationConfigs.policies. Public Agent Card discovery is configured separately.
Operations *[]A2AOperationConfig `json:"operations,omitempty" yaml:"operations,omitempty"`
// Policies Ordered policies applied to every A2A operation, before operation-level policies. These policies do not apply to the public Agent Card discovery route.
Policies *[]Policy `json:"policies,omitempty" yaml:"policies,omitempty"`
// Transports Ordered A2A protocol bindings and their gateway-facing path prefixes. This is runtime routing configuration, not Agent Card transformation or transport conversion.
Transports []A2ATransport `json:"transports" yaml:"transports"`
}
A2AOperationConfigs Transport exposure and common or operation-specific configuration for A2A operations. These policies and transports do not apply to public Agent Card serving.
type A2AOperationName ¶
type A2AOperationName string
A2AOperationName Canonical A2A operation name. These names match the standard JSON-RPC and gRPC method names, but identify the binding-independent A2A operation. The effective set is closed and is the one defined by the agent's spec.a2a.protocolVersion; the values below are A2A 1.0's eleven operations, that being the only protocol version currently supported. A name outside the selected version's set is rejected at deploy time.
const ( CancelTask A2AOperationName = "CancelTask" CreateTaskPushNotificationConfig A2AOperationName = "CreateTaskPushNotificationConfig" DeleteTaskPushNotificationConfig A2AOperationName = "DeleteTaskPushNotificationConfig" GetExtendedAgentCard A2AOperationName = "GetExtendedAgentCard" GetTask A2AOperationName = "GetTask" GetTaskPushNotificationConfig A2AOperationName = "GetTaskPushNotificationConfig" ListTaskPushNotificationConfigs A2AOperationName = "ListTaskPushNotificationConfigs" ListTasks A2AOperationName = "ListTasks" SendMessage A2AOperationName = "SendMessage" SendStreamingMessage A2AOperationName = "SendStreamingMessage" SubscribeToTask A2AOperationName = "SubscribeToTask" )
Defines values for A2AOperationName.
type A2AProtectedAgentCard ¶
type A2AProtectedAgentCard struct {
// Content Complete A2A 1.0 Agent Card represented as a structured JSON object. JSON can be embedded directly because JSON object syntax is valid YAML. The controller additionally validates this object against the complete A2A Agent Card model for spec.a2a.protocolVersion, taken from the vendored A2A protocol definition (specification/a2a.proto). The document is stored and served as supplied — the gateway never rewrites it — so extension fields are preserved.
Content *A2AAgentCardDocument `json:"content,omitempty" yaml:"content,omitempty"`
// Mode How the protected Agent Card is produced. `managed` serves the supplied `content` from the gateway, and the request never reaches the upstream. `passthrough` forwards the authenticated request and proxies the upstream's own response, unchanged unless `rewriteUrls` is enabled.
Mode A2AProtectedAgentCardMode `json:"mode" yaml:"mode"`
// RewriteUrls Whether the gateway rewrites `supportedInterfaces[].url` in a proxied Agent Card response so each entry points at the gateway endpoint serving that protocol binding, using the original request's HTTP or HTTPS scheme and the authority the client reached the gateway on.
// Valid only in `passthrough` mode, and rejected at deploy time in `managed` mode, where the gateway already owns the document and its interfaces are validated against the configured transports instead.
// Defaults to true. A proxied card advertises the URLs the agent is reachable at, so forwarding it unchanged tells every client to bypass the gateway that was put in front of the agent — the default therefore points those URLs at the gateway. Every interface is rewritten: one whose binding the Agent's configured transports do not expose has no gateway endpoint of its own, so it is given the endpoint of the first configured transport rather than keeping the agent's own URL. The gateway does not serve that binding, so a client selecting it is refused by the gateway instead of reaching the agent directly. The gateway buffers the card response (up to 1 MiB) and drops the upstream `signatures` block, which no longer covers the returned bytes; it never signs a passthrough card, so a rewritten card is unsigned. Enabling it does not make the card's security declarations verifiable.
// Set it to false to forward the proxied response — signatures included — byte-for-byte, accepting that clients configured from the card will not traverse the gateway.
RewriteUrls *A2ACardRewriteUrls `json:"rewriteUrls,omitempty" yaml:"rewriteUrls,omitempty"`
// Signing Optional signing configuration for a managed Agent Card. Passthrough cards cannot configure gateway signing. Agent authors only enable or disable signing: the active key, its key identifier, and the JWS algorithm are selected from administrator-owned gateway system configuration at signing time, so rotating the key — including to a key using a different algorithm — requires no edit to any Agent. A card is re-signed when its Agent is next deployed, not when the key rotates; until then it keeps verifying against the retired key, which stays published while any stored card references it.
Signing *A2ACardSigning `json:"signing,omitempty" yaml:"signing,omitempty"`
}
A2AProtectedAgentCard Authenticated extended Agent Card. It is served through the canonical GetExtendedAgentCard operation and uses that operation's policy chain — the policies in spec.a2a.operationConfigs, then any matching entry in spec.a2a.operationConfigs.operations. Public Agent Card policies never run for it, and it has no custom path or local policy list, because it is an A2A operation rather than a document at a location. This block is optional, and omitting it is the same as configuring `passthrough` with `rewriteUrls` disabled: the extended Agent Card is guarded for every Agent. Writing the block out only chooses how the card is produced — whether the gateway serves a document of its own (`managed`) or forwards the authenticated request (`passthrough`) — and, for `passthrough`, whether the proxied response's interface URLs are rewritten. Unlike `public`, an omitted block is never materialized into an explicit protected configuration. The gateway requires the request to have been authenticated by a policy in the Agent's own chain before the card is returned or proxied, and answers 401 otherwise. That applies in every mode and is not configurable: an Agent that attaches no authentication policy therefore fails closed instead of publishing its extended card, whether or not it declared this block. Where authentication sits among the configured policies is the Agent author's choice. Unlike `public`, which is required and whose `mode` must be stated, this block defaults, because the safe reading of an author's silence about the more privileged of the two representations is to protect it. Mode-specific rules are enforced at deploy time, not by this schema: `managed` requires `content`; `passthrough` accepts neither `content` nor `signing`, because the gateway does not parse or sign a proxied card, and only `passthrough` accepts `rewriteUrls`. When the public Agent Card is `managed`, it should additionally declare `capabilities.extendedAgentCard: true`, since that is what tells a client the operation exists at all. The declaration is recommended and is not enforced at deploy time.
type A2AProtectedAgentCardMode ¶
type A2AProtectedAgentCardMode string
A2AProtectedAgentCardMode How the protected Agent Card is produced. `managed` serves the supplied `content` from the gateway, and the request never reaches the upstream. `passthrough` forwards the authenticated request and proxies the upstream's own response, unchanged unless `rewriteUrls` is enabled.
const ( A2AProtectedAgentCardModeManaged A2AProtectedAgentCardMode = "managed" A2AProtectedAgentCardModePassthrough A2AProtectedAgentCardMode = "passthrough" )
Defines values for A2AProtectedAgentCardMode.
type A2AProtocolBinding ¶
type A2AProtocolBinding string
A2AProtocolBinding A2A protocol binding exposed at a transport's path prefix.
const ( HTTPJSON A2AProtocolBinding = "HTTP+JSON" JSONRPC A2AProtocolBinding = "JSONRPC" )
Defines values for A2AProtocolBinding.
type A2APublicAgentCard ¶
type A2APublicAgentCard struct {
// Content Complete A2A 1.0 Agent Card represented as a structured JSON object. JSON can be embedded directly because JSON object syntax is valid YAML. The controller additionally validates this object against the complete A2A Agent Card model for spec.a2a.protocolVersion, taken from the vendored A2A protocol definition (specification/a2a.proto). The document is stored and served as supplied — the gateway never rewrites it — so extension fields are preserved.
Content *A2AAgentCardDocument `json:"content,omitempty" yaml:"content,omitempty"`
// FaultPolicies Ordered list of policies executed only when serving the public Agent Card fails, over the error response.
//
// Separate from spec.a2a.operationConfigs.faultPolicies for the same reason the policies list is: discovery is reachable before any operation is invoked, and an agent that leaves its card unauthenticated while guarding its operations would otherwise have the operations' handlers fire for a discovery failure.
FaultPolicies *[]Policy `json:"faultPolicies,omitempty" yaml:"faultPolicies,omitempty"`
// Mode How the public Agent Card is produced. Defaults to `passthrough`, which is also what an omitted `public` or `agentCard` block resolves to.
Mode *A2APublicAgentCardMode `json:"mode,omitempty" yaml:"mode,omitempty"`
// Path Exact gateway-facing Agent Card path relative to spec.context. When omitted, the gateway uses /.well-known/agent-card.json. A custom path replaces that default route rather than creating an additional alias. In passthrough mode this does not change the upstream discovery path.
Path *A2AAgentCardPath `json:"path,omitempty" yaml:"path,omitempty"`
// Policies Ordered policies applied only to public Agent Card serving.
Policies *[]Policy `json:"policies,omitempty" yaml:"policies,omitempty"`
// RewriteUrls Whether the gateway rewrites `supportedInterfaces[].url` in a proxied Agent Card response so each entry points at the gateway endpoint serving that protocol binding, using the original request's HTTP or HTTPS scheme and the authority the client reached the gateway on.
// Valid only in `passthrough` mode, and rejected at deploy time in `managed` mode, where the gateway already owns the document and its interfaces are validated against the configured transports instead.
// Defaults to true. A proxied card advertises the URLs the agent is reachable at, so forwarding it unchanged tells every client to bypass the gateway that was put in front of the agent — the default therefore points those URLs at the gateway. Every interface is rewritten: one whose binding the Agent's configured transports do not expose has no gateway endpoint of its own, so it is given the endpoint of the first configured transport rather than keeping the agent's own URL. The gateway does not serve that binding, so a client selecting it is refused by the gateway instead of reaching the agent directly. The gateway buffers the card response (up to 1 MiB) and drops the upstream `signatures` block, which no longer covers the returned bytes; it never signs a passthrough card, so a rewritten card is unsigned. Enabling it does not make the card's security declarations verifiable.
// Set it to false to forward the proxied response — signatures included — byte-for-byte, accepting that clients configured from the card will not traverse the gateway.
RewriteUrls *A2ACardRewriteUrls `json:"rewriteUrls,omitempty" yaml:"rewriteUrls,omitempty"`
// Signing Optional signing configuration for a managed Agent Card. Passthrough cards cannot configure gateway signing. Agent authors only enable or disable signing: the active key, its key identifier, and the JWS algorithm are selected from administrator-owned gateway system configuration at signing time, so rotating the key — including to a key using a different algorithm — requires no edit to any Agent. A card is re-signed when its Agent is next deployed, not when the key rotates; until then it keeps verifying against the retired key, which stays published while any stored card references it.
Signing *A2ACardSigning `json:"signing,omitempty" yaml:"signing,omitempty"`
}
A2APublicAgentCard Public Agent Card serving. `mode` selects whether the card is proxied from the upstream (`passthrough`) or validated, stored, and served by the gateway (`managed`), and defaults to `passthrough` when omitted. Mode-specific rules are enforced at deploy time, not by this schema: `managed` requires `content`; `passthrough` accepts neither `content` nor `signing`, because the gateway does not parse or sign a proxied card, and only `passthrough` accepts `rewriteUrls`.
type A2APublicAgentCardMode ¶
type A2APublicAgentCardMode string
A2APublicAgentCardMode How the public Agent Card is produced. Defaults to `passthrough`, which is also what an omitted `public` or `agentCard` block resolves to.
const ( A2APublicAgentCardModeManaged A2APublicAgentCardMode = "managed" A2APublicAgentCardModePassthrough A2APublicAgentCardMode = "passthrough" )
Defines values for A2APublicAgentCardMode.
type A2ATransport ¶
type A2ATransport struct {
// PathPrefix Gateway-facing path prefix relative to spec.context. The root value / means that no additional path segment is inserted. For JSONRPC, this is the endpoint path; for HTTP+JSON, canonical operation paths are appended below it. This field does not select or replace the generic upstream.
PathPrefix *string `json:"pathPrefix,omitempty" yaml:"pathPrefix,omitempty"`
// ProtocolBinding A2A protocol binding exposed at a transport's path prefix.
ProtocolBinding A2AProtocolBinding `json:"protocolBinding" yaml:"protocolBinding"`
}
A2ATransport One A2A protocol binding exposed by the gateway and the path prefix at which that binding is served relative to spec.context.
type APIConfigData ¶
type APIConfigData struct {
// Context Base path for all API routes (must start with /, no trailing slash). Use $version to embed the version in the path (e.g., /reading-list/$version resolves to /reading-list/v1.0).
Context string `json:"context" yaml:"context"`
// DeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the API is removed from router traffic but configuration, API keys, and policies are preserved for potential redeployment.
DeploymentState *APIConfigDataDeploymentState `json:"deploymentState,omitempty" yaml:"deploymentState,omitempty"`
// DisplayName Human-readable API name (must be URL-friendly - only letters, numbers, spaces, hyphens, underscores, and dots allowed)
DisplayName string `json:"displayName" yaml:"displayName"`
// FaultPolicies Ordered list of policies executed only when a request fails, over the error response. Applies to every operation.
//
// Each entry is labelled with the source of the failure, so an entry that should see only some failures narrows with executionCondition.
FaultPolicies *[]Policy `json:"faultPolicies,omitempty" yaml:"faultPolicies,omitempty"`
// Operations List of HTTP operations/routes
Operations []Operation `json:"operations" yaml:"operations"`
// Policies List of API-level policies applied to all operations unless overridden
Policies *[]Policy `json:"policies,omitempty" yaml:"policies,omitempty"`
// Resilience Backend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.
Resilience *Resilience `json:"resilience,omitempty" yaml:"resilience,omitempty"`
// SubscriptionPlans List of subscription plan names available for this API
SubscriptionPlans *[]string `json:"subscriptionPlans,omitempty" yaml:"subscriptionPlans,omitempty"`
// Upstream API-level upstream configuration
Upstream struct {
// Main Upstream backend configuration (single target or reference)
Main Upstream `json:"main" yaml:"main"`
// Sandbox Upstream backend configuration (single target or reference)
Sandbox *Upstream `json:"sandbox,omitempty" yaml:"sandbox,omitempty"`
} `json:"upstream" yaml:"upstream"`
// UpstreamDefinitions List of reusable upstream definitions with optional timeout configurations
UpstreamDefinitions *[]UpstreamDefinition `json:"upstreamDefinitions,omitempty" yaml:"upstreamDefinitions,omitempty"`
// Version Semantic version of the API
Version string `json:"version" yaml:"version"`
// Vhosts Custom virtual hosts/domains for the API
Vhosts *struct {
// Main Custom virtual host(s)/domain(s) for production traffic. One or more hostnames
// separated by ';' — each hostname serves the main upstream (e.g. when a Gateway API
// HTTPRoute attaches to multiple listener hostnames). The first entry is the primary
// vhost. Each hostname may be a wildcard such as *.example.com.
Main string `json:"main" yaml:"main"`
// Sandbox Custom virtual host/domain for sandbox traffic
Sandbox *string `json:"sandbox,omitempty" yaml:"sandbox,omitempty"`
} `json:"vhosts,omitempty" yaml:"vhosts,omitempty"`
}
APIConfigData defines model for APIConfigData.
type APIConfigDataDeploymentState ¶
type APIConfigDataDeploymentState string
APIConfigDataDeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the API is removed from router traffic but configuration, API keys, and policies are preserved for potential redeployment.
const ( APIConfigDataDeploymentStateDeployed APIConfigDataDeploymentState = "deployed" APIConfigDataDeploymentStateUndeployed APIConfigDataDeploymentState = "undeployed" )
Defines values for APIConfigDataDeploymentState.
type APIKey ¶
type APIKey struct {
// ApiId Unique public identifier of the API that the key is associated with
ApiId string `json:"apiId" yaml:"apiId"`
// ApiKey Generated API key with apip_ prefix
ApiKey *string `json:"apiKey,omitempty" yaml:"apiKey,omitempty"`
// CreatedAt Timestamp when the API key was generated
CreatedAt time.Time `json:"createdAt" yaml:"createdAt"`
// CreatedBy Identifier of the user who generated the API key
CreatedBy string `json:"createdBy" yaml:"createdBy"`
// DisplayName Human-readable name for the API key (user-provided, mutable)
DisplayName *string `json:"displayName,omitempty" yaml:"displayName,omitempty"`
// ExpiresAt Expiration timestamp (null if no expiration)
ExpiresAt *time.Time `json:"expiresAt" yaml:"expiresAt"`
// ExternalRefId External reference ID for the API key
ExternalRefId *string `json:"externalRefId,omitempty" yaml:"externalRefId,omitempty"`
// Name URL-safe identifier for the API key (auto-generated from displayName, immutable, used as path parameter)
Name string `json:"name" yaml:"name"`
// Source Source of the API key (local or external)
Source APIKeySource `json:"source" yaml:"source"`
// Status Status of the API key
Status APIKeyStatus `json:"status" yaml:"status"`
}
APIKey Details of an API key
type APIKeyCreationRequest ¶
type APIKeyCreationRequest struct {
// ApiKey Optional plain-text API key value for external key injection.
// If provided, this key will be used instead of generating a new one.
// The key will be hashed before storage. The key can be in any format
// (minimum 36 characters). Use this for injecting externally generated
// API keys.
ApiKey *string `json:"apiKey,omitempty" yaml:"apiKey,omitempty"`
// ExpiresAt Expiration timestamp. If both expiresIn and expiresAt are provided, expiresAt takes precedence.
ExpiresAt *time.Time `json:"expiresAt,omitempty" yaml:"expiresAt,omitempty"`
// ExpiresIn Expiration duration for the API key
ExpiresIn *struct {
// Duration Duration value for expiration
Duration int `json:"duration" yaml:"duration"`
// Unit Time unit for expiration
Unit APIKeyCreationRequestExpiresInUnit `json:"unit" yaml:"unit"`
} `json:"expiresIn,omitempty" yaml:"expiresIn,omitempty"`
// ExternalRefId External reference ID for the API key.
// This field is optional and used for tracing purposes only.
// The gateway generates its own internal ID for tracking.
ExternalRefId *string `json:"externalRefId,omitempty" yaml:"externalRefId,omitempty"`
// Issuer Identifies the portal that created this key. If provided, only api keys generated from
// the same portal will be accepted. If not provided, there is no portal restriction.
Issuer *string `json:"issuer,omitempty" yaml:"issuer,omitempty"`
// MaskedApiKey Masked version of the API key for display purposes.
// Provided by the platform API when injecting pre-hashed keys.
MaskedApiKey *string `json:"maskedApiKey,omitempty" yaml:"maskedApiKey,omitempty"`
// Name Identifier of the API key. If not provided, a default identifier will be generated
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
}
APIKeyCreationRequest defines model for APIKeyCreationRequest.
type APIKeyCreationRequestExpiresInUnit ¶
type APIKeyCreationRequestExpiresInUnit string
APIKeyCreationRequestExpiresInUnit Time unit for expiration
const ( APIKeyCreationRequestExpiresInUnitDays APIKeyCreationRequestExpiresInUnit = "days" APIKeyCreationRequestExpiresInUnitHours APIKeyCreationRequestExpiresInUnit = "hours" APIKeyCreationRequestExpiresInUnitMinutes APIKeyCreationRequestExpiresInUnit = "minutes" APIKeyCreationRequestExpiresInUnitMonths APIKeyCreationRequestExpiresInUnit = "months" APIKeyCreationRequestExpiresInUnitSeconds APIKeyCreationRequestExpiresInUnit = "seconds" APIKeyCreationRequestExpiresInUnitWeeks APIKeyCreationRequestExpiresInUnit = "weeks" )
Defines values for APIKeyCreationRequestExpiresInUnit.
type APIKeyCreationResponse ¶
type APIKeyCreationResponse struct {
// ApiKey Details of an API key
ApiKey *APIKey `json:"apiKey,omitempty" yaml:"apiKey,omitempty"`
Message string `json:"message" yaml:"message"`
// RemainingApiKeyQuota Remaining API key quota for the user
RemainingApiKeyQuota *int `json:"remainingApiKeyQuota,omitempty" yaml:"remainingApiKeyQuota,omitempty"`
Status string `json:"status" yaml:"status"`
}
APIKeyCreationResponse defines model for APIKeyCreationResponse.
type APIKeyListResponse ¶
type APIKeyListResponse struct {
ApiKeys *[]APIKey `json:"apiKeys,omitempty" yaml:"apiKeys,omitempty"`
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
// TotalCount Total number of API keys
TotalCount *int `json:"totalCount,omitempty" yaml:"totalCount,omitempty"`
}
APIKeyListResponse defines model for APIKeyListResponse.
type APIKeyRegenerationRequest ¶
type APIKeyRegenerationRequest struct {
// ExpiresAt Expiration timestamp
ExpiresAt *time.Time `json:"expiresAt,omitempty" yaml:"expiresAt,omitempty"`
// ExpiresIn Expiration duration for the API key
ExpiresIn *struct {
// Duration Duration value for expiration
Duration int `json:"duration" yaml:"duration"`
// Unit Time unit for expiration
Unit APIKeyRegenerationRequestExpiresInUnit `json:"unit" yaml:"unit"`
} `json:"expiresIn,omitempty" yaml:"expiresIn,omitempty"`
}
APIKeyRegenerationRequest defines model for APIKeyRegenerationRequest.
type APIKeyRegenerationRequestExpiresInUnit ¶
type APIKeyRegenerationRequestExpiresInUnit string
APIKeyRegenerationRequestExpiresInUnit Time unit for expiration
const ( APIKeyRegenerationRequestExpiresInUnitDays APIKeyRegenerationRequestExpiresInUnit = "days" APIKeyRegenerationRequestExpiresInUnitHours APIKeyRegenerationRequestExpiresInUnit = "hours" APIKeyRegenerationRequestExpiresInUnitMinutes APIKeyRegenerationRequestExpiresInUnit = "minutes" APIKeyRegenerationRequestExpiresInUnitMonths APIKeyRegenerationRequestExpiresInUnit = "months" APIKeyRegenerationRequestExpiresInUnitSeconds APIKeyRegenerationRequestExpiresInUnit = "seconds" APIKeyRegenerationRequestExpiresInUnitWeeks APIKeyRegenerationRequestExpiresInUnit = "weeks" )
Defines values for APIKeyRegenerationRequestExpiresInUnit.
type APIKeyRevocationResponse ¶
type APIKeyRevocationResponse struct {
Message string `json:"message" yaml:"message"`
Status string `json:"status" yaml:"status"`
}
APIKeyRevocationResponse defines model for APIKeyRevocationResponse.
type APIKeySource ¶
type APIKeySource string
APIKeySource Source of the API key (local or external)
const ( External APIKeySource = "external" Local APIKeySource = "local" )
Defines values for APIKeySource.
type APIKeyStatus ¶
type APIKeyStatus string
APIKeyStatus Status of the API key
const ( Active APIKeyStatus = "active" Expired APIKeyStatus = "expired" Revoked APIKeyStatus = "revoked" )
Defines values for APIKeyStatus.
type APIKeyUpdateRequest ¶
type APIKeyUpdateRequest = APIKeyCreationRequest
APIKeyUpdateRequest defines model for APIKeyUpdateRequest.
type AgentConfigData ¶
type AgentConfigData struct {
// A2a A2A-specific agent configuration.
A2a A2AConfig `json:"a2a" yaml:"a2a"`
// Context Gateway context path for the agent (must start with /, no trailing slash). Optional: when omitted the agent is served at the root of its virtual host, which is where an A2A client probes for `/.well-known/agent-card.json` during cold discovery. Every A2A route the gateway generates — the transport base paths and the Agent Card path — is relative to this value.
Context *string `json:"context,omitempty" yaml:"context,omitempty"`
// DeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the Agent is removed from router traffic but configuration and policies are preserved for potential redeployment.
DeploymentState *AgentConfigDataDeploymentState `json:"deploymentState,omitempty" yaml:"deploymentState,omitempty"`
// DisplayName Human-readable agent display name
DisplayName string `json:"displayName" yaml:"displayName"`
// Resilience Backend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.
Resilience *Resilience `json:"resilience,omitempty" yaml:"resilience,omitempty"`
// Upstream The backend A2A agent and its auth configuration. Set exactly one of `url` (a direct backend URL) or `ref` (the name of an entry in `upstreamDefinitions`, resolved to that definition's first URL and `basePath`). The resolved URL is the base the gateway forwards A2A operation traffic to, and — in public passthrough card mode — the origin of the standard /.well-known/agent-card.json document.
Upstream AgentConfigData_Upstream `json:"upstream" yaml:"upstream"`
// UpstreamDefinitions List of reusable upstream definitions with optional timeout configurations. Referenced by upstream.ref.
UpstreamDefinitions *[]UpstreamDefinition `json:"upstreamDefinitions,omitempty" yaml:"upstreamDefinitions,omitempty"`
// Version Agent version
Version string `json:"version" yaml:"version"`
// Vhost Virtual host name used for routing. Supports standard domain names, subdomains, or wildcard domains. Must follow RFC-compliant hostname rules. Wildcards are only allowed in the left-most label (e.g., *.example.com).
Vhost *string `json:"vhost,omitempty" yaml:"vhost,omitempty"`
}
AgentConfigData defines model for AgentConfigData.
type AgentConfigDataDeploymentState ¶
type AgentConfigDataDeploymentState string
AgentConfigDataDeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the Agent is removed from router traffic but configuration and policies are preserved for potential redeployment.
const ( AgentConfigDataDeploymentStateDeployed AgentConfigDataDeploymentState = "deployed" AgentConfigDataDeploymentStateUndeployed AgentConfigDataDeploymentState = "undeployed" )
Defines values for AgentConfigDataDeploymentState.
type AgentConfigDataUpstream0 ¶
type AgentConfigDataUpstream0 = interface{}
AgentConfigDataUpstream0 defines model for .
type AgentConfigDataUpstream1 ¶
type AgentConfigDataUpstream1 = interface{}
AgentConfigDataUpstream1 defines model for .
type AgentConfigDataUpstreamAuthType ¶
type AgentConfigDataUpstreamAuthType string
AgentConfigDataUpstreamAuthType "api-key" attaches the built-in set-headers policy by default (overridable via policyName) and accepts either the generic policyParams bucket or its own deprecated header/value fields below. "oauth2" attaches the built-in oauth2-generator policy by default (overridable via policyName) and always requires policyParams - there is no typed-field fallback for it. "other" attaches any policy by name - policyName and policyParams are both required in that case, since there is no built-in default or typed-field fallback for a non-built-in auth scheme. "none": no upstream authentication - the gateway attaches no auth policy of its own; auth (if any) is handled entirely by user-attached policies elsewhere.
const ( AgentConfigDataUpstreamAuthTypeApiKey AgentConfigDataUpstreamAuthType = "api-key" AgentConfigDataUpstreamAuthTypeNone AgentConfigDataUpstreamAuthType = "none" AgentConfigDataUpstreamAuthTypeOauth2 AgentConfigDataUpstreamAuthType = "oauth2" AgentConfigDataUpstreamAuthTypeOther AgentConfigDataUpstreamAuthType = "other" )
Defines values for AgentConfigDataUpstreamAuthType.
type AgentConfigDataUpstreamHostRewrite ¶
type AgentConfigDataUpstreamHostRewrite string
AgentConfigDataUpstreamHostRewrite Controls how the Host header is handled when routing to the upstream. `auto` delegates host rewriting to Envoy, which rewrites the Host header using the upstream cluster host. `manual` disables automatic rewriting and expects explicit configuration.
const ( AgentConfigDataUpstreamHostRewriteAuto AgentConfigDataUpstreamHostRewrite = "auto" AgentConfigDataUpstreamHostRewriteManual AgentConfigDataUpstreamHostRewrite = "manual" )
Defines values for AgentConfigDataUpstreamHostRewrite.
type AgentConfigData_Upstream ¶
type AgentConfigData_Upstream struct {
Auth *struct {
// Header Deprecated: use policyParams (e.g. {request: {headers: [{name: ..., value: ...}]}} - the set-headers policy's own param shape) instead. HTTP header to set on outbound requests. Applies when type is api-key. Still honored when policyParams is omitted, for backward compatibility.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Header *string `json:"header,omitempty" yaml:"header,omitempty"`
// PolicyName Name of the policy that implements this upstream auth. Optional for "api-key"/"oauth2" (defaults to the built-in policy for that type - api-key -> set-headers, oauth2 -> oauth2-generator); set it to point at your own fork or a newer major version's replacement instead. Required when type is "other".
PolicyName *string `json:"policyName,omitempty" yaml:"policyName,omitempty"`
// PolicyParams Parameters passed verbatim to policyName (or the built-in default for type). Required when type is "oauth2" or "other" - oauth2 has no typed fields at all, only this bucket (e.g. {tokenEndpoint: ..., clientId: ..., clientSecret: ...} for the token-endpoint path, or {bearerToken: ...} for a directly-supplied credential). For "api-key", optional: replaces the deprecated header/value fields below when set; do not set both at once.
PolicyParams *map[string]interface{} `json:"policyParams,omitempty" yaml:"policyParams,omitempty"`
// PolicyVersion Major version of policyName to attach (e.g. "v1"), same format and resolution rules as Policy.version. Optional - defaults to the highest version available in the gateway image when omitted. If set, it must match a version actually loaded in this gateway build, or config validation fails.
PolicyVersion *string `json:"policyVersion,omitempty" yaml:"policyVersion,omitempty"`
// Type "api-key" attaches the built-in set-headers policy by default (overridable via policyName) and accepts either the generic policyParams bucket or its own deprecated header/value fields below. "oauth2" attaches the built-in oauth2-generator policy by default (overridable via policyName) and always requires policyParams - there is no typed-field fallback for it. "other" attaches any policy by name - policyName and policyParams are both required in that case, since there is no built-in default or typed-field fallback for a non-built-in auth scheme. "none": no upstream authentication - the gateway attaches no auth policy of its own; auth (if any) is handled entirely by user-attached policies elsewhere.
Type AgentConfigDataUpstreamAuthType `json:"type" yaml:"type"`
// Value Deprecated: use policyParams instead. Upstream credential. Applies when type is api-key. Still honored when policyParams is omitted, for backward compatibility. Write-only: accepted on create/update and never returned by the management API on a read, for any role. Supply either a literal value or a secret reference (e.g. a `secret` template expression); either way the field is omitted from management API response bodies. An update that omits it inherits the stored value; set `type: none` to remove auth.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Value *string `json:"value,omitempty" yaml:"value,omitempty"`
} `json:"auth,omitempty" yaml:"auth,omitempty"`
// HostRewrite Controls how the Host header is handled when routing to the upstream. `auto` delegates host rewriting to Envoy, which rewrites the Host header using the upstream cluster host. `manual` disables automatic rewriting and expects explicit configuration.
HostRewrite *AgentConfigDataUpstreamHostRewrite `json:"hostRewrite,omitempty" yaml:"hostRewrite,omitempty"`
// Ref Reference to a predefined upstreamDefinition
Ref *string `json:"ref,omitempty" yaml:"ref,omitempty"`
// Tls Not supported on an inline upstream (a `url`-based main/sandbox entry); a tls block placed here is rejected at deploy time. Put it on the upstreamDefinitions entry referenced via `ref`.
Tls *map[string]interface{} `json:"tls,omitempty" yaml:"tls,omitempty"`
// Url Direct backend URL to route traffic to
Url *string `json:"url,omitempty" yaml:"url,omitempty"`
// contains filtered or unexported fields
}
AgentConfigData_Upstream defines model for AgentConfigData.Upstream.
func (AgentConfigData_Upstream) AsAgentConfigDataUpstream0 ¶
func (t AgentConfigData_Upstream) AsAgentConfigDataUpstream0() (AgentConfigDataUpstream0, error)
AsAgentConfigDataUpstream0 returns the union data inside the AgentConfigData_Upstream as a AgentConfigDataUpstream0
func (AgentConfigData_Upstream) AsAgentConfigDataUpstream1 ¶
func (t AgentConfigData_Upstream) AsAgentConfigDataUpstream1() (AgentConfigDataUpstream1, error)
AsAgentConfigDataUpstream1 returns the union data inside the AgentConfigData_Upstream as a AgentConfigDataUpstream1
func (*AgentConfigData_Upstream) FromAgentConfigDataUpstream0 ¶
func (t *AgentConfigData_Upstream) FromAgentConfigDataUpstream0(v AgentConfigDataUpstream0) error
FromAgentConfigDataUpstream0 overwrites any union data inside the AgentConfigData_Upstream as the provided AgentConfigDataUpstream0
func (*AgentConfigData_Upstream) FromAgentConfigDataUpstream1 ¶
func (t *AgentConfigData_Upstream) FromAgentConfigDataUpstream1(v AgentConfigDataUpstream1) error
FromAgentConfigDataUpstream1 overwrites any union data inside the AgentConfigData_Upstream as the provided AgentConfigDataUpstream1
func (AgentConfigData_Upstream) MarshalJSON ¶
func (t AgentConfigData_Upstream) MarshalJSON() ([]byte, error)
func (*AgentConfigData_Upstream) MergeAgentConfigDataUpstream0 ¶
func (t *AgentConfigData_Upstream) MergeAgentConfigDataUpstream0(v AgentConfigDataUpstream0) error
MergeAgentConfigDataUpstream0 performs a merge with any union data inside the AgentConfigData_Upstream, using the provided AgentConfigDataUpstream0
func (*AgentConfigData_Upstream) MergeAgentConfigDataUpstream1 ¶
func (t *AgentConfigData_Upstream) MergeAgentConfigDataUpstream1(v AgentConfigDataUpstream1) error
MergeAgentConfigDataUpstream1 performs a merge with any union data inside the AgentConfigData_Upstream, using the provided AgentConfigDataUpstream1
func (*AgentConfigData_Upstream) UnmarshalJSON ¶
func (t *AgentConfigData_Upstream) UnmarshalJSON(b []byte) error
type AgentConfiguration ¶
type AgentConfiguration struct {
// ApiVersion Agent specification version
ApiVersion AgentConfigurationApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind Agent type
Kind AgentConfigurationKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec AgentConfigData `json:"spec" yaml:"spec"`
// Status Server-managed lifecycle fields. Populated on responses.
Status *ResourceStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
AgentConfiguration defines model for AgentConfiguration.
type AgentConfigurationApiVersion ¶
type AgentConfigurationApiVersion string
AgentConfigurationApiVersion Agent specification version
const (
AgentConfigurationApiVersionGatewayApiPlatformWso2Comv1 AgentConfigurationApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for AgentConfigurationApiVersion.
type AgentConfigurationKind ¶
type AgentConfigurationKind string
AgentConfigurationKind Agent type
const (
AgentConfigurationKindAgent AgentConfigurationKind = "Agent"
)
Defines values for AgentConfigurationKind.
type AgentConfigurationRequest ¶
type AgentConfigurationRequest struct {
// ApiVersion Agent specification version
ApiVersion AgentConfigurationRequestApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind Agent type
Kind AgentConfigurationRequestKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec AgentConfigData `json:"spec" yaml:"spec"`
}
AgentConfigurationRequest defines model for AgentConfigurationRequest.
type AgentConfigurationRequestApiVersion ¶
type AgentConfigurationRequestApiVersion string
AgentConfigurationRequestApiVersion Agent specification version
const (
AgentConfigurationRequestApiVersionGatewayApiPlatformWso2Comv1 AgentConfigurationRequestApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for AgentConfigurationRequestApiVersion.
type AgentConfigurationRequestKind ¶
type AgentConfigurationRequestKind string
AgentConfigurationRequestKind Agent type
const (
AgentConfigurationRequestKindAgent AgentConfigurationRequestKind = "Agent"
)
Defines values for AgentConfigurationRequestKind.
type CertificateListResponse ¶
type CertificateListResponse struct {
Certificates *[]CertificateResponse `json:"certificates,omitempty" yaml:"certificates,omitempty"`
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
// TotalBytes Total bytes of all certificate files
TotalBytes *int `json:"totalBytes,omitempty" yaml:"totalBytes,omitempty"`
// TotalCount Total number of certificate files
TotalCount *int `json:"totalCount,omitempty" yaml:"totalCount,omitempty"`
}
CertificateListResponse defines model for CertificateListResponse.
type CertificateMatch ¶
type CertificateMatch struct {
DnsSANs *[]string `json:"dnsSANs,omitempty" yaml:"dnsSANs,omitempty"`
UriSANs *[]string `json:"uriSANs,omitempty" yaml:"uriSANs,omitempty"`
}
CertificateMatch Narrows a role: relay pool entry to the connections it vouches for. Each list, when present, must name at least one non-empty SAN.
type CertificateResponse ¶
type CertificateResponse struct {
// ChainLength Only present for usage identity. Number of certificates in the uploaded chain.
ChainLength *int `json:"chainLength,omitempty" yaml:"chainLength,omitempty"`
// Count Number of certificates in the file
Count *int `json:"count,omitempty" yaml:"count,omitempty"`
// Id Unique identifier (UUID) for the certificate
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
// IsLeaf True when the identity certificate is not itself a certificate authority (pooled as a one-member authority).
IsLeaf *bool `json:"isLeaf,omitempty" yaml:"isLeaf,omitempty"`
// Issuer Certificate issuer DN (identity certificate, for a client-CA bundle)
Issuer *string `json:"issuer,omitempty" yaml:"issuer,omitempty"`
// KeyAlgorithm Only present for usage identity. The leaf private key's algorithm (RSA, ECDSA or Ed25519).
KeyAlgorithm *string `json:"keyAlgorithm,omitempty" yaml:"keyAlgorithm,omitempty"`
// Match Only present for role relay entries that were stored with a narrowing match.
Match *CertificateMatch `json:"match,omitempty" yaml:"match,omitempty"`
// Message Success or informational message
Message *string `json:"message,omitempty" yaml:"message,omitempty"`
// Name Name of the certificate
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
// NotAfter Certificate expiration date (identity certificate, for a client-CA bundle)
NotAfter *time.Time `json:"notAfter,omitempty" yaml:"notAfter,omitempty"`
// ReferencedByApis Number of deployed APIs referencing this certificate — a client authority (accept/pool) or a gateway identity (upstreamDefinitions[].tls.identity). Only present for usage downstream or identity.
ReferencedByApis *int `json:"referencedByApis,omitempty" yaml:"referencedByApis,omitempty"`
// Role Present for usage downstream: whether the authority validates a
// directly-presented (client) or header-relayed (relay) client
// certificate. Present for usage identity only as "default", on
// the identity presented to backends whose upstream definition
// names no tls identity.
Role *CertificateResponseRole `json:"role,omitempty" yaml:"role,omitempty"`
Status *CertificateResponseStatus `json:"status,omitempty" yaml:"status,omitempty"`
// Subject Certificate subject DN (identity certificate, for a client-CA bundle)
Subject *string `json:"subject,omitempty" yaml:"subject,omitempty"`
// Usage Whether this is upstream/backend trust, a pooled client certificate authority, or a gateway identity.
Usage *CertificateResponseUsage `json:"usage,omitempty" yaml:"usage,omitempty"`
// Warnings Non-fatal findings about the upload (e.g. leaf certificate, not yet valid). Omitted when there are none.
Warnings *[]CertificateWarning `json:"warnings,omitempty" yaml:"warnings,omitempty"`
}
CertificateResponse defines model for CertificateResponse.
type CertificateResponseRole ¶
type CertificateResponseRole string
CertificateResponseRole Present for usage downstream: whether the authority validates a directly-presented (client) or header-relayed (relay) client certificate. Present for usage identity only as "default", on the identity presented to backends whose upstream definition names no tls identity.
const ( CertificateResponseRoleClient CertificateResponseRole = "client" CertificateResponseRoleDefault CertificateResponseRole = "default" CertificateResponseRoleRelay CertificateResponseRole = "relay" )
Defines values for CertificateResponseRole.
type CertificateResponseStatus ¶
type CertificateResponseStatus string
CertificateResponseStatus defines model for CertificateResponse.Status.
const ( Error CertificateResponseStatus = "error" Success CertificateResponseStatus = "success" )
Defines values for CertificateResponseStatus.
type CertificateResponseUsage ¶
type CertificateResponseUsage string
CertificateResponseUsage Whether this is upstream/backend trust, a pooled client certificate authority, or a gateway identity.
const ( CertificateResponseUsageDownstream CertificateResponseUsage = "downstream" CertificateResponseUsageIdentity CertificateResponseUsage = "identity" CertificateResponseUsageUpstream CertificateResponseUsage = "upstream" )
Defines values for CertificateResponseUsage.
type CertificateUploadRequest ¶
type CertificateUploadRequest struct {
// Certificate PEM-encoded X.509 certificate(s). Can contain multiple certificates.
Certificate string `json:"certificate" yaml:"certificate"`
// Match Only valid for role: relay. Narrows which connections
// authenticated as this relay entry can make a relayed header
// believed. Omit to accept any connection presenting a certificate
// from this authority, with no further narrowing.
Match *CertificateMatch `json:"match,omitempty" yaml:"match,omitempty"`
// Name Unique name for the certificate. Must be unique across all certificates, regardless of usage.
Name string `json:"name" yaml:"name"`
// PrivateKey Required (and only valid) when usage is identity: a PEM-encoded, unencrypted private key matching the leaf certificate (RSA/ECDSA/Ed25519, PKCS#8/PKCS#1/SEC1). Encrypted at rest by the gateway; never returned by any response.
PrivateKey *string `json:"privateKey,omitempty" yaml:"privateKey,omitempty"`
// Role How the gateway uses the certificate. With usage downstream,
// "client" (the default) means the authority validates a client
// certificate presented directly on the mTLS connection; "relay"
// means it validates a client certificate relayed via a header
// (e.g. from a terminating load balancer) instead. With usage
// identity, "default" makes this the identity presented to HTTPS
// backends whose upstream definition names no tls identity, when
// router.upstream.tls.present_default_identity is on; at most one
// identity has it. Any other combination of role and usage is
// rejected. The role cannot be changed after upload.
Role *CertificateUploadRequestRole `json:"role,omitempty" yaml:"role,omitempty"`
// Usage What the certificate is for: backend trust used to verify HTTPS
// upstream connections (upstream, the default), a pooled client
// certificate authority that authenticates mutual-TLS callers
// (downstream), or a gateway identity (identity): a certificate chain,
// leaf first, plus its private key, presented to backends that
// require mutual TLS.
Usage *CertificateUploadRequestUsage `json:"usage,omitempty" yaml:"usage,omitempty"`
}
CertificateUploadRequest defines model for CertificateUploadRequest.
type CertificateUploadRequestRole ¶
type CertificateUploadRequestRole string
CertificateUploadRequestRole How the gateway uses the certificate. With usage downstream, "client" (the default) means the authority validates a client certificate presented directly on the mTLS connection; "relay" means it validates a client certificate relayed via a header (e.g. from a terminating load balancer) instead. With usage identity, "default" makes this the identity presented to HTTPS backends whose upstream definition names no tls identity, when router.upstream.tls.present_default_identity is on; at most one identity has it. Any other combination of role and usage is rejected. The role cannot be changed after upload.
const ( CertificateUploadRequestRoleClient CertificateUploadRequestRole = "client" CertificateUploadRequestRoleDefault CertificateUploadRequestRole = "default" CertificateUploadRequestRoleRelay CertificateUploadRequestRole = "relay" )
Defines values for CertificateUploadRequestRole.
type CertificateUploadRequestUsage ¶
type CertificateUploadRequestUsage string
CertificateUploadRequestUsage What the certificate is for: backend trust used to verify HTTPS upstream connections (upstream, the default), a pooled client certificate authority that authenticates mutual-TLS callers (downstream), or a gateway identity (identity): a certificate chain, leaf first, plus its private key, presented to backends that require mutual TLS.
const ( CertificateUploadRequestUsageDownstream CertificateUploadRequestUsage = "downstream" CertificateUploadRequestUsageIdentity CertificateUploadRequestUsage = "identity" CertificateUploadRequestUsageUpstream CertificateUploadRequestUsage = "upstream" )
Defines values for CertificateUploadRequestUsage.
type CertificateWarning ¶
type CertificateWarning struct {
Code *CertificateWarningCode `json:"code,omitempty" yaml:"code,omitempty"`
Field *string `json:"field,omitempty" yaml:"field,omitempty"`
Message *string `json:"message,omitempty" yaml:"message,omitempty"`
}
CertificateWarning defines model for CertificateWarning.
type CertificateWarningCode ¶
type CertificateWarningCode string
CertificateWarningCode defines model for CertificateWarning.Code.
const ( CERTEXPIRESSOON CertificateWarningCode = "CERT_EXPIRES_SOON" CLIENTCAISLEAF CertificateWarningCode = "CLIENT_CA_IS_LEAF" CLIENTCANOTYETVALID CertificateWarningCode = "CLIENT_CA_NOT_YET_VALID" IDENTITYNOCLIENTAUTHEKU CertificateWarningCode = "IDENTITY_NO_CLIENTAUTH_EKU" )
Defines values for CertificateWarningCode.
type CreateAPIKeyJSONRequestBody ¶
type CreateAPIKeyJSONRequestBody = APIKeyCreationRequest
CreateAPIKeyJSONRequestBody defines body for CreateAPIKey for application/json ContentType.
type CreateAgentAPIKeyJSONRequestBody ¶
type CreateAgentAPIKeyJSONRequestBody = APIKeyCreationRequest
CreateAgentAPIKeyJSONRequestBody defines body for CreateAgentAPIKey for application/json ContentType.
type CreateAgentJSONRequestBody ¶
type CreateAgentJSONRequestBody = AgentConfigurationRequest
CreateAgentJSONRequestBody defines body for CreateAgent for application/json ContentType.
type CreateGraphQLAPIJSONRequestBody ¶
type CreateGraphQLAPIJSONRequestBody = GraphQLAPIRequest
CreateGraphQLAPIJSONRequestBody defines body for CreateGraphQLAPI for application/json ContentType.
type CreateGraphQLAPIKeyJSONRequestBody ¶
type CreateGraphQLAPIKeyJSONRequestBody = APIKeyCreationRequest
CreateGraphQLAPIKeyJSONRequestBody defines body for CreateGraphQLAPIKey for application/json ContentType.
type CreateLLMProviderAPIKeyJSONRequestBody ¶
type CreateLLMProviderAPIKeyJSONRequestBody = APIKeyCreationRequest
CreateLLMProviderAPIKeyJSONRequestBody defines body for CreateLLMProviderAPIKey for application/json ContentType.
type CreateLLMProviderJSONRequestBody ¶
type CreateLLMProviderJSONRequestBody = LLMProviderConfigurationRequest
CreateLLMProviderJSONRequestBody defines body for CreateLLMProvider for application/json ContentType.
type CreateLLMProviderTemplateJSONRequestBody ¶
type CreateLLMProviderTemplateJSONRequestBody = LLMProviderTemplateRequest
CreateLLMProviderTemplateJSONRequestBody defines body for CreateLLMProviderTemplate for application/json ContentType.
type CreateLLMProxyAPIKeyJSONRequestBody ¶
type CreateLLMProxyAPIKeyJSONRequestBody = APIKeyCreationRequest
CreateLLMProxyAPIKeyJSONRequestBody defines body for CreateLLMProxyAPIKey for application/json ContentType.
type CreateLLMProxyJSONRequestBody ¶
type CreateLLMProxyJSONRequestBody = LLMProxyConfigurationRequest
CreateLLMProxyJSONRequestBody defines body for CreateLLMProxy for application/json ContentType.
type CreateMCPProxyJSONRequestBody ¶
type CreateMCPProxyJSONRequestBody = MCPProxyConfigurationRequest
CreateMCPProxyJSONRequestBody defines body for CreateMCPProxy for application/json ContentType.
type CreateRestAPIJSONRequestBody ¶
type CreateRestAPIJSONRequestBody = RestAPIRequest
CreateRestAPIJSONRequestBody defines body for CreateRestAPI for application/json ContentType.
type CreateSecretJSONRequestBody ¶
type CreateSecretJSONRequestBody = SecretConfigurationRequest
CreateSecretJSONRequestBody defines body for CreateSecret for application/json ContentType.
type CreateSubscriptionJSONRequestBody ¶
type CreateSubscriptionJSONRequestBody = SubscriptionCreateRequest
CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType.
type CreateSubscriptionPlanJSONRequestBody ¶
type CreateSubscriptionPlanJSONRequestBody = SubscriptionPlanCreateRequest
CreateSubscriptionPlanJSONRequestBody defines body for CreateSubscriptionPlan for application/json ContentType.
type ErrorResponse ¶
type ErrorResponse struct {
// Errors Detailed validation errors
Errors *[]ValidationError `json:"errors,omitempty" yaml:"errors,omitempty"`
// Message High-level error description
Message string `json:"message" yaml:"message"`
Status string `json:"status" yaml:"status"`
}
ErrorResponse defines model for ErrorResponse.
type ExtractionIdentifier ¶
type ExtractionIdentifier struct {
// FallbackIdentifiers Additional locations to try when the primary identifier yields no
// value, in order. Used where one provider returns several response
// shapes on the same path.
FallbackIdentifiers *[]string `json:"fallbackIdentifiers,omitempty" yaml:"fallbackIdentifiers,omitempty"`
// Identifier JSONPath expression or header name to identify the token value
Identifier string `json:"identifier" yaml:"identifier"`
// Location Where to find the token information
Location ExtractionIdentifierLocation `json:"location" yaml:"location"`
// ValueMap Maps values this provider reports onto the vocabulary the gateway
// bills on. A reported value that is not a key is used unchanged.
// Used where providers name the same billing tier differently.
ValueMap *map[string]string `json:"valueMap,omitempty" yaml:"valueMap,omitempty"`
}
ExtractionIdentifier defines model for ExtractionIdentifier.
type ExtractionIdentifierLocation ¶
type ExtractionIdentifierLocation string
ExtractionIdentifierLocation Where to find the token information
const ( Header ExtractionIdentifierLocation = "header" PathParam ExtractionIdentifierLocation = "pathParam" Payload ExtractionIdentifierLocation = "payload" QueryParam ExtractionIdentifierLocation = "queryParam" )
Defines values for ExtractionIdentifierLocation.
type GraphQLAPI ¶
type GraphQLAPI struct {
// ApiVersion API specification version
ApiVersion GraphQLAPIApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind API type
Kind GraphQLAPIKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec GraphQLAPIConfigData `json:"spec" yaml:"spec"`
// Status Server-managed lifecycle fields. Populated on responses.
Status *ResourceStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
GraphQLAPI defines model for GraphQLAPI.
type GraphQLAPIApiVersion ¶
type GraphQLAPIApiVersion string
GraphQLAPIApiVersion API specification version
const (
GraphQLAPIApiVersionGatewayApiPlatformWso2Comv1 GraphQLAPIApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for GraphQLAPIApiVersion.
type GraphQLAPIConfigData ¶
type GraphQLAPIConfigData struct {
// Context Base path for the single GraphQL endpoint (must start with /, no trailing slash). Use $version to embed the version in the path (e.g., /countries/$version resolves to /countries/v1.0). A GraphQLApi always exposes exactly one POST route at this path — there is no per-operation path list. Suggested (not enforced) convention: end the path with /graphql, matching how most standalone GraphQL servers name their single endpoint (e.g. /countries/$version/graphql) — this is not validated or required.
Context string `json:"context" yaml:"context"`
// DeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the API is removed from router traffic but configuration, API keys, and policies are preserved for potential redeployment.
DeploymentState *GraphQLAPIConfigDataDeploymentState `json:"deploymentState,omitempty" yaml:"deploymentState,omitempty"`
// DisplayName Human-readable API name (must be URL-friendly - only letters, numbers, spaces, hyphens, underscores, and dots allowed)
DisplayName string `json:"displayName" yaml:"displayName"`
// Policies List of policies applied to the GraphQL route(s). A GraphQLApi has
// no operations[] list to add an explicit `OPTIONS` entry to the way
// a RestApi does, so when a `cors` policy is attached, the gateway
// synthesizes an OPTIONS route for the same path itself, sharing this
// same policy chain — this is what lets `cors` (and every other
// policy in this list, in declared order) answer a browser's
// preflight request.
Policies *[]Policy `json:"policies,omitempty" yaml:"policies,omitempty"`
// SubscriptionPlans List of subscription plan names available for this API
SubscriptionPlans *[]string `json:"subscriptionPlans,omitempty" yaml:"subscriptionPlans,omitempty"`
// Upstream API-level upstream configuration. A GraphQLApi has exactly one logical endpoint (no per-operation paths), so upstream.main.url is the single GraphQL endpoint to proxy to. Only a direct inline url is supported — GraphQLAPIConfigData has no upstreamDefinitions list, so upstream.ref (used by RestApi to reference a predefined upstreamDefinition) cannot be resolved and is rejected.
Upstream struct {
// Main Upstream backend configuration (single target or reference)
Main Upstream `json:"main" yaml:"main"`
// Sandbox Upstream backend configuration (single target or reference)
Sandbox *Upstream `json:"sandbox,omitempty" yaml:"sandbox,omitempty"`
} `json:"upstream" yaml:"upstream"`
// Version Semantic version of the API. Both major-only (v1) and major.minor (v1.0) forms are accepted.
Version string `json:"version" yaml:"version"`
}
GraphQLAPIConfigData defines model for GraphQLAPIConfigData.
type GraphQLAPIConfigDataDeploymentState ¶
type GraphQLAPIConfigDataDeploymentState string
GraphQLAPIConfigDataDeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the API is removed from router traffic but configuration, API keys, and policies are preserved for potential redeployment.
const ( GraphQLAPIConfigDataDeploymentStateDeployed GraphQLAPIConfigDataDeploymentState = "deployed" GraphQLAPIConfigDataDeploymentStateUndeployed GraphQLAPIConfigDataDeploymentState = "undeployed" )
Defines values for GraphQLAPIConfigDataDeploymentState.
type GraphQLAPIKind ¶
type GraphQLAPIKind string
GraphQLAPIKind API type
const (
GraphQLAPIKindGraphQLApi GraphQLAPIKind = "GraphQLApi"
)
Defines values for GraphQLAPIKind.
type GraphQLAPIRequest ¶
type GraphQLAPIRequest struct {
// ApiVersion API specification version
ApiVersion GraphQLAPIRequestApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind API type
Kind GraphQLAPIRequestKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec GraphQLAPIConfigData `json:"spec" yaml:"spec"`
}
GraphQLAPIRequest defines model for GraphQLAPIRequest.
type GraphQLAPIRequestApiVersion ¶
type GraphQLAPIRequestApiVersion string
GraphQLAPIRequestApiVersion API specification version
const (
GraphQLAPIRequestApiVersionGatewayApiPlatformWso2Comv1 GraphQLAPIRequestApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for GraphQLAPIRequestApiVersion.
type GraphQLAPIRequestKind ¶
type GraphQLAPIRequestKind string
GraphQLAPIRequestKind API type
const (
GraphQLAPIRequestKindGraphQLApi GraphQLAPIRequestKind = "GraphQLApi"
)
Defines values for GraphQLAPIRequestKind.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type LLMAccessControl ¶
type LLMAccessControl struct {
// Exceptions Path exceptions to the access control mode
Exceptions *[]RouteException `json:"exceptions,omitempty" yaml:"exceptions,omitempty"`
// Mode Access control mode
Mode LLMAccessControlMode `json:"mode" yaml:"mode"`
}
LLMAccessControl defines model for LLMAccessControl.
type LLMAccessControlMode ¶
type LLMAccessControlMode string
LLMAccessControlMode Access control mode
const ( AllowAll LLMAccessControlMode = "allow_all" DenyAll LLMAccessControlMode = "deny_all" )
Defines values for LLMAccessControlMode.
type LLMPolicy ¶
type LLMPolicy struct {
Name string `json:"name" yaml:"name"`
Paths []LLMPolicyPath `json:"paths" yaml:"paths"`
Version string `json:"version" yaml:"version"`
}
LLMPolicy defines model for LLMPolicy.
type LLMPolicyPath ¶
type LLMPolicyPath struct {
Methods []LLMPolicyPathMethods `json:"methods" yaml:"methods"`
// Params JSON Schema describing the parameters accepted by this policy. This itself is a JSON Schema document.
Params map[string]interface{} `json:"params" yaml:"params"`
Path string `json:"path" yaml:"path"`
}
LLMPolicyPath defines model for LLMPolicyPath.
type LLMPolicyPathMethods ¶
type LLMPolicyPathMethods string
LLMPolicyPathMethods defines model for LLMPolicyPath.Methods.
const ( LLMPolicyPathMethodsAsterisk LLMPolicyPathMethods = "*" LLMPolicyPathMethodsDELETE LLMPolicyPathMethods = "DELETE" LLMPolicyPathMethodsGET LLMPolicyPathMethods = "GET" LLMPolicyPathMethodsHEAD LLMPolicyPathMethods = "HEAD" LLMPolicyPathMethodsOPTIONS LLMPolicyPathMethods = "OPTIONS" LLMPolicyPathMethodsPATCH LLMPolicyPathMethods = "PATCH" LLMPolicyPathMethodsPOST LLMPolicyPathMethods = "POST" LLMPolicyPathMethodsPUT LLMPolicyPathMethods = "PUT" )
Defines values for LLMPolicyPathMethods.
type LLMProviderConfigData ¶
type LLMProviderConfigData struct {
AccessControl LLMAccessControl `json:"accessControl" yaml:"accessControl"`
// Context Base path for all API routes (must start with /, no trailing slash)
Context *string `json:"context,omitempty" yaml:"context,omitempty"`
// DeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the LLM Provider is removed from router traffic but configuration and policies are preserved for potential redeployment.
DeploymentState *LLMProviderConfigDataDeploymentState `json:"deploymentState,omitempty" yaml:"deploymentState,omitempty"`
// DisplayName Human-readable LLM Provider name
DisplayName string `json:"displayName" yaml:"displayName"`
// GlobalFaultPolicies Ordered list of policies executed only when a request fails, over the error response. Applies to every operation.
//
// Each entry is labelled with the source of the failure, so an entry that should see only some failures narrows with executionCondition.
GlobalFaultPolicies *[]Policy `json:"globalFaultPolicies,omitempty" yaml:"globalFaultPolicies,omitempty"`
// GlobalPolicies Global (api-level) policies applied across ALL operations as one shared scope, evaluated before operation-level policies.
GlobalPolicies *[]Policy `json:"globalPolicies,omitempty" yaml:"globalPolicies,omitempty"`
// OperationFaultPolicies Fault policies that apply only to this operation, in addition to any declared at the API level. Both levels run, operation-level entries first.
OperationFaultPolicies *[]OperationPolicy `json:"operationFaultPolicies,omitempty" yaml:"operationFaultPolicies,omitempty"`
// OperationPolicies Operation-level policies scoped to specific paths/methods, evaluated after global policies.
OperationPolicies *[]OperationPolicy `json:"operationPolicies,omitempty" yaml:"operationPolicies,omitempty"`
// Policies DEPRECATED - use operationPolicies. Still honoured (treated identically to operationPolicies).
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Policies *[]LLMPolicy `json:"policies,omitempty" yaml:"policies,omitempty"`
// Resilience Backend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.
Resilience *Resilience `json:"resilience,omitempty" yaml:"resilience,omitempty"`
// Template Template name to use for this LLM Provider
Template string `json:"template" yaml:"template"`
Upstream LLMProviderConfigData_Upstream `json:"upstream" yaml:"upstream"`
// UpstreamDefinitions List of reusable upstream definitions with optional timeout configurations. Referenced by upstream.ref.
UpstreamDefinitions *[]UpstreamDefinition `json:"upstreamDefinitions,omitempty" yaml:"upstreamDefinitions,omitempty"`
// Version Semantic version of the LLM Provider
Version string `json:"version" yaml:"version"`
// Vhost Virtual host name used for routing. Supports standard domain names, subdomains, or wildcard domains. Must follow RFC-compliant hostname rules. Wildcards are only allowed in the left-most label (e.g., *.example.com).
Vhost *string `json:"vhost,omitempty" yaml:"vhost,omitempty"`
}
LLMProviderConfigData defines model for LLMProviderConfigData.
type LLMProviderConfigDataDeploymentState ¶
type LLMProviderConfigDataDeploymentState string
LLMProviderConfigDataDeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the LLM Provider is removed from router traffic but configuration and policies are preserved for potential redeployment.
const ( LLMProviderConfigDataDeploymentStateDeployed LLMProviderConfigDataDeploymentState = "deployed" LLMProviderConfigDataDeploymentStateUndeployed LLMProviderConfigDataDeploymentState = "undeployed" )
Defines values for LLMProviderConfigDataDeploymentState.
type LLMProviderConfigDataUpstream0 ¶
type LLMProviderConfigDataUpstream0 = interface{}
LLMProviderConfigDataUpstream0 defines model for .
type LLMProviderConfigDataUpstream1 ¶
type LLMProviderConfigDataUpstream1 = interface{}
LLMProviderConfigDataUpstream1 defines model for .
type LLMProviderConfigDataUpstreamAuthType ¶
type LLMProviderConfigDataUpstreamAuthType string
LLMProviderConfigDataUpstreamAuthType "api-key" attaches the built-in set-headers policy by default (overridable via policyName) and accepts either the generic policyParams bucket or its own deprecated header/value fields below. "oauth2" attaches the built-in oauth2-generator policy by default (overridable via policyName) and always requires policyParams - there is no typed-field fallback for it. "other" attaches any policy by name - policyName and policyParams are both required in that case, since there is no built-in default or typed-field fallback for a non-built-in auth scheme. "none": no upstream authentication - the gateway attaches no auth policy of its own; auth (if any) is handled entirely by user-attached policies elsewhere.
const ( LLMProviderConfigDataUpstreamAuthTypeApiKey LLMProviderConfigDataUpstreamAuthType = "api-key" LLMProviderConfigDataUpstreamAuthTypeNone LLMProviderConfigDataUpstreamAuthType = "none" LLMProviderConfigDataUpstreamAuthTypeOauth2 LLMProviderConfigDataUpstreamAuthType = "oauth2" LLMProviderConfigDataUpstreamAuthTypeOther LLMProviderConfigDataUpstreamAuthType = "other" )
Defines values for LLMProviderConfigDataUpstreamAuthType.
type LLMProviderConfigDataUpstreamHostRewrite ¶
type LLMProviderConfigDataUpstreamHostRewrite string
LLMProviderConfigDataUpstreamHostRewrite Controls how the Host header is handled when routing to the upstream. `auto` delegates host rewriting to Envoy, which rewrites the Host header using the upstream cluster host. `manual` disables automatic rewriting and expects explicit configuration.
const ( LLMProviderConfigDataUpstreamHostRewriteAuto LLMProviderConfigDataUpstreamHostRewrite = "auto" LLMProviderConfigDataUpstreamHostRewriteManual LLMProviderConfigDataUpstreamHostRewrite = "manual" )
Defines values for LLMProviderConfigDataUpstreamHostRewrite.
type LLMProviderConfigData_Upstream ¶
type LLMProviderConfigData_Upstream struct {
Auth *struct {
// Header Deprecated: use policyParams (e.g. {request: {headers: [{name: ..., value: ...}]}} - the set-headers policy's own param shape) instead. HTTP header to set on outbound requests. Applies when type is api-key. Still honored when policyParams is omitted, for backward compatibility.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Header *string `json:"header,omitempty" yaml:"header,omitempty"`
// PolicyName Name of the policy that implements this upstream auth. Optional for "api-key"/"oauth2" (defaults to the built-in policy for that type - api-key -> set-headers, oauth2 -> oauth2-generator); set it to point at your own fork or a newer major version's replacement instead. Required when type is "other".
PolicyName *string `json:"policyName,omitempty" yaml:"policyName,omitempty"`
// PolicyParams Parameters passed verbatim to policyName (or the built-in default for type). Required when type is "oauth2" or "other" - oauth2 has no typed fields at all, only this bucket (e.g. {tokenEndpoint: ..., clientId: ..., clientSecret: ...} for the token-endpoint path, or {bearerToken: ...} for a directly-supplied credential). For "api-key", optional: replaces the deprecated header/value fields below when set; do not set both at once.
PolicyParams *map[string]interface{} `json:"policyParams,omitempty" yaml:"policyParams,omitempty"`
// PolicyVersion Major version of policyName to attach (e.g. "v1"), same format and resolution rules as Policy.version. Optional - defaults to the highest version available in the gateway image when omitted. If set, it must match a version actually loaded in this gateway build, or config validation fails.
PolicyVersion *string `json:"policyVersion,omitempty" yaml:"policyVersion,omitempty"`
// Type "api-key" attaches the built-in set-headers policy by default (overridable via policyName) and accepts either the generic policyParams bucket or its own deprecated header/value fields below. "oauth2" attaches the built-in oauth2-generator policy by default (overridable via policyName) and always requires policyParams - there is no typed-field fallback for it. "other" attaches any policy by name - policyName and policyParams are both required in that case, since there is no built-in default or typed-field fallback for a non-built-in auth scheme. "none": no upstream authentication - the gateway attaches no auth policy of its own; auth (if any) is handled entirely by user-attached policies elsewhere.
Type LLMProviderConfigDataUpstreamAuthType `json:"type" yaml:"type"`
// Value Deprecated: use policyParams instead. Upstream credential. Applies when type is api-key. Still honored when policyParams is omitted, for backward compatibility. Write-only: accepted on create/update and never returned by the management API on a read, for any role. Supply either a literal value or a secret reference (e.g. a `secret` template expression); either way the field is omitted from management API response bodies. An update that omits it inherits the stored value; set `type: none` to remove auth.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Value *string `json:"value,omitempty" yaml:"value,omitempty"`
} `json:"auth,omitempty" yaml:"auth,omitempty"`
// HostRewrite Controls how the Host header is handled when routing to the upstream. `auto` delegates host rewriting to Envoy, which rewrites the Host header using the upstream cluster host. `manual` disables automatic rewriting and expects explicit configuration.
HostRewrite *LLMProviderConfigDataUpstreamHostRewrite `json:"hostRewrite,omitempty" yaml:"hostRewrite,omitempty"`
// Ref Reference to a predefined upstreamDefinition
Ref *string `json:"ref,omitempty" yaml:"ref,omitempty"`
// Tls Not supported on an inline upstream (a `url`-based main/sandbox entry); a tls block placed here is rejected at deploy time. Put it on the upstreamDefinitions entry referenced via `ref`.
Tls *map[string]interface{} `json:"tls,omitempty" yaml:"tls,omitempty"`
// Url Direct backend URL to route traffic to
Url *string `json:"url,omitempty" yaml:"url,omitempty"`
// contains filtered or unexported fields
}
LLMProviderConfigData_Upstream defines model for LLMProviderConfigData.Upstream.
func (LLMProviderConfigData_Upstream) AsLLMProviderConfigDataUpstream0 ¶
func (t LLMProviderConfigData_Upstream) AsLLMProviderConfigDataUpstream0() (LLMProviderConfigDataUpstream0, error)
AsLLMProviderConfigDataUpstream0 returns the union data inside the LLMProviderConfigData_Upstream as a LLMProviderConfigDataUpstream0
func (LLMProviderConfigData_Upstream) AsLLMProviderConfigDataUpstream1 ¶
func (t LLMProviderConfigData_Upstream) AsLLMProviderConfigDataUpstream1() (LLMProviderConfigDataUpstream1, error)
AsLLMProviderConfigDataUpstream1 returns the union data inside the LLMProviderConfigData_Upstream as a LLMProviderConfigDataUpstream1
func (*LLMProviderConfigData_Upstream) FromLLMProviderConfigDataUpstream0 ¶
func (t *LLMProviderConfigData_Upstream) FromLLMProviderConfigDataUpstream0(v LLMProviderConfigDataUpstream0) error
FromLLMProviderConfigDataUpstream0 overwrites any union data inside the LLMProviderConfigData_Upstream as the provided LLMProviderConfigDataUpstream0
func (*LLMProviderConfigData_Upstream) FromLLMProviderConfigDataUpstream1 ¶
func (t *LLMProviderConfigData_Upstream) FromLLMProviderConfigDataUpstream1(v LLMProviderConfigDataUpstream1) error
FromLLMProviderConfigDataUpstream1 overwrites any union data inside the LLMProviderConfigData_Upstream as the provided LLMProviderConfigDataUpstream1
func (LLMProviderConfigData_Upstream) MarshalJSON ¶
func (t LLMProviderConfigData_Upstream) MarshalJSON() ([]byte, error)
func (*LLMProviderConfigData_Upstream) MergeLLMProviderConfigDataUpstream0 ¶
func (t *LLMProviderConfigData_Upstream) MergeLLMProviderConfigDataUpstream0(v LLMProviderConfigDataUpstream0) error
MergeLLMProviderConfigDataUpstream0 performs a merge with any union data inside the LLMProviderConfigData_Upstream, using the provided LLMProviderConfigDataUpstream0
func (*LLMProviderConfigData_Upstream) MergeLLMProviderConfigDataUpstream1 ¶
func (t *LLMProviderConfigData_Upstream) MergeLLMProviderConfigDataUpstream1(v LLMProviderConfigDataUpstream1) error
MergeLLMProviderConfigDataUpstream1 performs a merge with any union data inside the LLMProviderConfigData_Upstream, using the provided LLMProviderConfigDataUpstream1
func (*LLMProviderConfigData_Upstream) UnmarshalJSON ¶
func (t *LLMProviderConfigData_Upstream) UnmarshalJSON(b []byte) error
type LLMProviderConfiguration ¶
type LLMProviderConfiguration struct {
// ApiVersion Provider specification version
ApiVersion LLMProviderConfigurationApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind Provider kind
Kind LLMProviderConfigurationKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec LLMProviderConfigData `json:"spec" yaml:"spec"`
// Status Server-managed lifecycle fields. Populated on responses.
Status *ResourceStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
LLMProviderConfiguration defines model for LLMProviderConfiguration.
type LLMProviderConfigurationApiVersion ¶
type LLMProviderConfigurationApiVersion string
LLMProviderConfigurationApiVersion Provider specification version
const (
LLMProviderConfigurationApiVersionGatewayApiPlatformWso2Comv1 LLMProviderConfigurationApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for LLMProviderConfigurationApiVersion.
type LLMProviderConfigurationKind ¶
type LLMProviderConfigurationKind string
LLMProviderConfigurationKind Provider kind
const (
LLMProviderConfigurationKindLlmProvider LLMProviderConfigurationKind = "LlmProvider"
)
Defines values for LLMProviderConfigurationKind.
type LLMProviderConfigurationRequest ¶
type LLMProviderConfigurationRequest struct {
// ApiVersion Provider specification version
ApiVersion LLMProviderConfigurationRequestApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind Provider kind
Kind LLMProviderConfigurationRequestKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec LLMProviderConfigData `json:"spec" yaml:"spec"`
}
LLMProviderConfigurationRequest defines model for LLMProviderConfigurationRequest.
type LLMProviderConfigurationRequestApiVersion ¶
type LLMProviderConfigurationRequestApiVersion string
LLMProviderConfigurationRequestApiVersion Provider specification version
const (
LLMProviderConfigurationRequestApiVersionGatewayApiPlatformWso2Comv1 LLMProviderConfigurationRequestApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for LLMProviderConfigurationRequestApiVersion.
type LLMProviderConfigurationRequestKind ¶
type LLMProviderConfigurationRequestKind string
LLMProviderConfigurationRequestKind Provider kind
const (
LLMProviderConfigurationRequestKindLlmProvider LLMProviderConfigurationRequestKind = "LlmProvider"
)
Defines values for LLMProviderConfigurationRequestKind.
type LLMProviderTemplate ¶
type LLMProviderTemplate struct {
// ApiVersion Template specification version
ApiVersion LLMProviderTemplateApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind Template kind
Kind LLMProviderTemplateKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec LLMProviderTemplateData `json:"spec" yaml:"spec"`
// Status Server-managed lifecycle fields. Populated on responses.
Status *ResourceStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
LLMProviderTemplate defines model for LLMProviderTemplate.
type LLMProviderTemplateApiVersion ¶
type LLMProviderTemplateApiVersion string
LLMProviderTemplateApiVersion Template specification version
const (
LLMProviderTemplateApiVersionGatewayApiPlatformWso2Comv1 LLMProviderTemplateApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for LLMProviderTemplateApiVersion.
type LLMProviderTemplateData ¶
type LLMProviderTemplateData struct {
AudioInputTokens *ExtractionIdentifier `json:"audioInputTokens,omitempty" yaml:"audioInputTokens,omitempty"`
AudioOutputTokens *ExtractionIdentifier `json:"audioOutputTokens,omitempty" yaml:"audioOutputTokens,omitempty"`
// CacheAccounting Whether the cached token count reported by the provider is already
// part of the input token total, or additional to it. One of
// 'inclusive' or 'additive'. Defaults to inclusive when omitted.
CacheAccounting *string `json:"cacheAccounting,omitempty" yaml:"cacheAccounting,omitempty"`
CacheWrite1hTokens *ExtractionIdentifier `json:"cacheWrite1hTokens,omitempty" yaml:"cacheWrite1hTokens,omitempty"`
CacheWriteTokens *ExtractionIdentifier `json:"cacheWriteTokens,omitempty" yaml:"cacheWriteTokens,omitempty"`
CachedTokens *ExtractionIdentifier `json:"cachedTokens,omitempty" yaml:"cachedTokens,omitempty"`
CompletionTokens *ExtractionIdentifier `json:"completionTokens,omitempty" yaml:"completionTokens,omitempty"`
// DisplayName Human-readable LLM Template name
DisplayName string `json:"displayName" yaml:"displayName"`
// GroupId Stable family-grouping identifier shared by every version of this
// template. Multiple versions with the same groupId but different
// handles are surfaced as versions of one template. Defaults to
// metadata.name when omitted.
GroupId *string `json:"groupId,omitempty" yaml:"groupId,omitempty"`
// ManagedBy Origin of the template. Built-in templates use 'wso2'; custom
// templates default to 'customer' and may be set to any value.
ManagedBy *string `json:"managedBy,omitempty" yaml:"managedBy,omitempty"`
PromptTokens *ExtractionIdentifier `json:"promptTokens,omitempty" yaml:"promptTokens,omitempty"`
// ProviderFields Named locations a provider-specific calculator needs but the closed
// vocabulary does not cover. The value at each location is handed to
// the calculator as-is; only its position is declared here.
ProviderFields *map[string]ExtractionIdentifier `json:"providerFields,omitempty" yaml:"providerFields,omitempty"`
ReasoningTokens *ExtractionIdentifier `json:"reasoningTokens,omitempty" yaml:"reasoningTokens,omitempty"`
RemainingTokens *ExtractionIdentifier `json:"remainingTokens,omitempty" yaml:"remainingTokens,omitempty"`
RequestModel *ExtractionIdentifier `json:"requestModel,omitempty" yaml:"requestModel,omitempty"`
ResourceMappings *LLMProviderTemplateResourceMappings `json:"resourceMappings,omitempty" yaml:"resourceMappings,omitempty"`
ResponseModel *ExtractionIdentifier `json:"responseModel,omitempty" yaml:"responseModel,omitempty"`
ServiceTier *ExtractionIdentifier `json:"serviceTier,omitempty" yaml:"serviceTier,omitempty"`
TotalTokens *ExtractionIdentifier `json:"totalTokens,omitempty" yaml:"totalTokens,omitempty"`
// Version Template content version (e.g. v1.0). Multiple versions of the same
// groupId can coexist; defaults to v1.0 when omitted.
Version *string `json:"version,omitempty" yaml:"version,omitempty"`
}
LLMProviderTemplateData defines model for LLMProviderTemplateData.
type LLMProviderTemplateKind ¶
type LLMProviderTemplateKind string
LLMProviderTemplateKind Template kind
const (
LLMProviderTemplateKindLlmProviderTemplate LLMProviderTemplateKind = "LlmProviderTemplate"
)
Defines values for LLMProviderTemplateKind.
type LLMProviderTemplateRequest ¶
type LLMProviderTemplateRequest struct {
// ApiVersion Template specification version
ApiVersion LLMProviderTemplateRequestApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind Template kind
Kind LLMProviderTemplateRequestKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec LLMProviderTemplateData `json:"spec" yaml:"spec"`
}
LLMProviderTemplateRequest defines model for LLMProviderTemplateRequest.
type LLMProviderTemplateRequestApiVersion ¶
type LLMProviderTemplateRequestApiVersion string
LLMProviderTemplateRequestApiVersion Template specification version
const (
LLMProviderTemplateRequestApiVersionGatewayApiPlatformWso2Comv1 LLMProviderTemplateRequestApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for LLMProviderTemplateRequestApiVersion.
type LLMProviderTemplateRequestKind ¶
type LLMProviderTemplateRequestKind string
LLMProviderTemplateRequestKind Template kind
const (
LLMProviderTemplateRequestKindLlmProviderTemplate LLMProviderTemplateRequestKind = "LlmProviderTemplate"
)
Defines values for LLMProviderTemplateRequestKind.
type LLMProviderTemplateResourceMapping ¶
type LLMProviderTemplateResourceMapping struct {
AudioInputTokens *ExtractionIdentifier `json:"audioInputTokens,omitempty" yaml:"audioInputTokens,omitempty"`
AudioOutputTokens *ExtractionIdentifier `json:"audioOutputTokens,omitempty" yaml:"audioOutputTokens,omitempty"`
// CacheAccounting Whether the cached token count reported by the provider is already
// part of the input token total, or additional to it. One of
// 'inclusive' or 'additive'. Overrides the template-level setting for
// this resource; when omitted, the template-level value is inherited.
CacheAccounting *string `json:"cacheAccounting,omitempty" yaml:"cacheAccounting,omitempty"`
CacheWrite1hTokens *ExtractionIdentifier `json:"cacheWrite1hTokens,omitempty" yaml:"cacheWrite1hTokens,omitempty"`
CacheWriteTokens *ExtractionIdentifier `json:"cacheWriteTokens,omitempty" yaml:"cacheWriteTokens,omitempty"`
CachedTokens *ExtractionIdentifier `json:"cachedTokens,omitempty" yaml:"cachedTokens,omitempty"`
CompletionTokens *ExtractionIdentifier `json:"completionTokens,omitempty" yaml:"completionTokens,omitempty"`
PromptTokens *ExtractionIdentifier `json:"promptTokens,omitempty" yaml:"promptTokens,omitempty"`
ReasoningTokens *ExtractionIdentifier `json:"reasoningTokens,omitempty" yaml:"reasoningTokens,omitempty"`
RemainingTokens *ExtractionIdentifier `json:"remainingTokens,omitempty" yaml:"remainingTokens,omitempty"`
RequestModel *ExtractionIdentifier `json:"requestModel,omitempty" yaml:"requestModel,omitempty"`
// Resource Resource path pattern for this mapping
Resource string `json:"resource" yaml:"resource"`
ResponseModel *ExtractionIdentifier `json:"responseModel,omitempty" yaml:"responseModel,omitempty"`
ServiceTier *ExtractionIdentifier `json:"serviceTier,omitempty" yaml:"serviceTier,omitempty"`
TotalTokens *ExtractionIdentifier `json:"totalTokens,omitempty" yaml:"totalTokens,omitempty"`
}
LLMProviderTemplateResourceMapping defines model for LLMProviderTemplateResourceMapping.
type LLMProviderTemplateResourceMappings ¶
type LLMProviderTemplateResourceMappings struct {
Resources *[]LLMProviderTemplateResourceMapping `json:"resources,omitempty" yaml:"resources,omitempty"`
}
LLMProviderTemplateResourceMappings defines model for LLMProviderTemplateResourceMappings.
type LLMProxyAdditionalProvider ¶
type LLMProxyAdditionalProvider struct {
// As Logical LLM Provider name used by policies to select this provider. Must be unique within the proxy. Defaults to `id` when omitted.
As *string `json:"as,omitempty" yaml:"as,omitempty"`
Auth *LLMUpstreamAuth `json:"auth,omitempty" yaml:"auth,omitempty"`
// Id Unique id of a deployed llm provider
Id string `json:"id" yaml:"id"`
// Transformer Request/response translator applied when this provider is the selected upstream. The proxy injects the translator as a conditional policy whose execution condition matches this provider, so it runs only when the provider is selected. The provider's `as` name (defaults to `id`) is passed to the translator as its target upstream.
Transformer *LLMProxyTransformer `json:"transformer,omitempty" yaml:"transformer,omitempty"`
}
LLMProxyAdditionalProvider Additional LLM provider attached to this proxy as a selectable upstream. Policies route to it by referring to the `as` name (defaults to `id`). Optional auth config is used by the proxy when calling a protected LlmProvider over the internal loopback route. When a proxy has more than one provider, api-key auth that uses the default set-headers policy is applied after the request body is processed, so a policy may select the provider from the request body. Other auth policies (for example oauth2) are still applied in the request-header phase.
type LLMProxyConfigData ¶
type LLMProxyConfigData struct {
// AdditionalProviders Optional list of additional LLM providers attached to this proxy as selectable upstreams. Policies (e.g. an OpenAI translator) can route requests to any of these by setting the upstream name. The primary `provider` field above remains the default upstream and the FK target.
AdditionalProviders *[]LLMProxyAdditionalProvider `json:"additionalProviders,omitempty" yaml:"additionalProviders,omitempty"`
// Context Base path for all API routes (must start with /, no trailing slash)
Context *string `json:"context,omitempty" yaml:"context,omitempty"`
// DeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the LLM Proxy is removed from router traffic but configuration and policies are preserved for potential redeployment.
DeploymentState *LLMProxyConfigDataDeploymentState `json:"deploymentState,omitempty" yaml:"deploymentState,omitempty"`
// DisplayName Human-readable LLM proxy name (must be URL-friendly - only letters, numbers, spaces, hyphens, underscores, and dots allowed)
DisplayName string `json:"displayName" yaml:"displayName"`
// GlobalFaultPolicies Ordered list of policies executed only when a request fails, over the error response. Applies to every operation.
//
// Each entry is labelled with the source of the failure, so an entry that should see only some failures narrows with executionCondition.
GlobalFaultPolicies *[]Policy `json:"globalFaultPolicies,omitempty" yaml:"globalFaultPolicies,omitempty"`
// GlobalPolicies Global (api-level) policies applied across ALL operations as one shared scope, evaluated before operation-level policies.
GlobalPolicies *[]Policy `json:"globalPolicies,omitempty" yaml:"globalPolicies,omitempty"`
// InboundTemplate Handle of the provider template describing the wire format this proxy accepts from clients. Drives the extraction fields (model and token locations) merged into every attached policy. When omitted, the primary provider's own template is used, preserving existing behaviour.
InboundTemplate *string `json:"inboundTemplate,omitempty" yaml:"inboundTemplate,omitempty"`
// OperationFaultPolicies Fault policies that apply only to this operation, in addition to any declared at the API level. Both levels run, operation-level entries first.
OperationFaultPolicies *[]OperationPolicy `json:"operationFaultPolicies,omitempty" yaml:"operationFaultPolicies,omitempty"`
// OperationPolicies Operation-level policies scoped to specific paths/methods, evaluated after global policies.
OperationPolicies *[]OperationPolicy `json:"operationPolicies,omitempty" yaml:"operationPolicies,omitempty"`
// Policies DEPRECATED - use operationPolicies. Still honoured (treated identically to operationPolicies).
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Policies *[]LLMPolicy `json:"policies,omitempty" yaml:"policies,omitempty"`
Provider *LLMProxyProvider `json:"provider,omitempty" yaml:"provider,omitempty"`
// Providers Canonical list of providers attached to this proxy. Each entry is uniform and exactly one carries `isPrimary: true`. Mutually exclusive with the legacy `provider` plus `additionalProviders` pair - supplying both is rejected. The legacy shape remains supported indefinitely.
Providers *[]LLMProxyProviderEntry `json:"providers,omitempty" yaml:"providers,omitempty"`
// Resilience Backend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.
Resilience *Resilience `json:"resilience,omitempty" yaml:"resilience,omitempty"`
// Version Semantic version of the LLM proxy
Version string `json:"version" yaml:"version"`
// Vhost Virtual host name used for routing. Supports standard domain names, subdomains, or wildcard domains. Must follow RFC-compliant hostname rules. Wildcards are only allowed in the left-most label (e.g., *.example.com).
Vhost *string `json:"vhost,omitempty" yaml:"vhost,omitempty"`
}
LLMProxyConfigData defines model for LLMProxyConfigData.
type LLMProxyConfigDataDeploymentState ¶
type LLMProxyConfigDataDeploymentState string
LLMProxyConfigDataDeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the LLM Proxy is removed from router traffic but configuration and policies are preserved for potential redeployment.
const ( LLMProxyConfigDataDeploymentStateDeployed LLMProxyConfigDataDeploymentState = "deployed" LLMProxyConfigDataDeploymentStateUndeployed LLMProxyConfigDataDeploymentState = "undeployed" )
Defines values for LLMProxyConfigDataDeploymentState.
type LLMProxyConfiguration ¶
type LLMProxyConfiguration struct {
// ApiVersion Proxy specification version
ApiVersion LLMProxyConfigurationApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind Proxy kind
Kind LLMProxyConfigurationKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec LLMProxyConfigData `json:"spec" yaml:"spec"`
// Status Server-managed lifecycle fields. Populated on responses.
Status *ResourceStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
LLMProxyConfiguration defines model for LLMProxyConfiguration.
type LLMProxyConfigurationApiVersion ¶
type LLMProxyConfigurationApiVersion string
LLMProxyConfigurationApiVersion Proxy specification version
const (
LLMProxyConfigurationApiVersionGatewayApiPlatformWso2Comv1 LLMProxyConfigurationApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for LLMProxyConfigurationApiVersion.
type LLMProxyConfigurationKind ¶
type LLMProxyConfigurationKind string
LLMProxyConfigurationKind Proxy kind
const (
LLMProxyConfigurationKindLlmProxy LLMProxyConfigurationKind = "LlmProxy"
)
Defines values for LLMProxyConfigurationKind.
type LLMProxyConfigurationRequest ¶
type LLMProxyConfigurationRequest struct {
// ApiVersion Proxy specification version
ApiVersion LLMProxyConfigurationRequestApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind Proxy kind
Kind LLMProxyConfigurationRequestKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec LLMProxyConfigData `json:"spec" yaml:"spec"`
}
LLMProxyConfigurationRequest defines model for LLMProxyConfigurationRequest.
type LLMProxyConfigurationRequestApiVersion ¶
type LLMProxyConfigurationRequestApiVersion string
LLMProxyConfigurationRequestApiVersion Proxy specification version
const (
LLMProxyConfigurationRequestApiVersionGatewayApiPlatformWso2Comv1 LLMProxyConfigurationRequestApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for LLMProxyConfigurationRequestApiVersion.
type LLMProxyConfigurationRequestKind ¶
type LLMProxyConfigurationRequestKind string
LLMProxyConfigurationRequestKind Proxy kind
const (
LLMProxyConfigurationRequestKindLlmProxy LLMProxyConfigurationRequestKind = "LlmProxy"
)
Defines values for LLMProxyConfigurationRequestKind.
type LLMProxyProvider ¶
type LLMProxyProvider struct {
// As Logical LLM Provider name used by policies to select this provider. Must be unique across the primary and all additional providers. Defaults to `id` when omitted.
As *string `json:"as,omitempty" yaml:"as,omitempty"`
Auth *LLMUpstreamAuth `json:"auth,omitempty" yaml:"auth,omitempty"`
// Id Unique id of a deployed llm provider
Id string `json:"id" yaml:"id"`
// Transformer Request/response translator applied when this provider is the selected upstream. The proxy injects the translator as a conditional policy whose execution condition matches this provider, so it runs only when the provider is selected. The provider's `as` name (defaults to `id`) is passed to the translator as its target upstream.
Transformer *LLMProxyTransformer `json:"transformer,omitempty" yaml:"transformer,omitempty"`
}
LLMProxyProvider defines model for LLMProxyProvider.
type LLMProxyProviderEntry ¶
type LLMProxyProviderEntry struct {
// Alias Logical LLM Provider name used by policies to select this provider. Must be unique within the proxy. Defaults to `id` when omitted. The same field as `as` in the legacy shape.
Alias *string `json:"alias,omitempty" yaml:"alias,omitempty"`
Auth *LLMUpstreamAuth `json:"auth,omitempty" yaml:"auth,omitempty"`
// Id Unique id of a deployed llm provider
Id string `json:"id" yaml:"id"`
// IsPrimary Marks this entry as the proxy's primary provider. Exactly one entry in the list must set it to true.
IsPrimary bool `json:"isPrimary" yaml:"isPrimary"`
// Transformer Request/response translator applied when this provider is the selected upstream. The proxy injects the translator as a conditional policy whose execution condition matches this provider, so it runs only when the provider is selected. The provider's `as` name (defaults to `id`) is passed to the translator as its target upstream.
Transformer *LLMProxyTransformer `json:"transformer,omitempty" yaml:"transformer,omitempty"`
}
LLMProxyProviderEntry One provider attached to this proxy in the canonical `providers` list. Every entry is uniform: exactly one carries `isPrimary: true` and becomes the proxy's provider identity and default upstream; the rest are selectable upstreams. Equivalent to the legacy `provider` plus `additionalProviders` shape, which remains supported.
type LLMProxyTransformer ¶
type LLMProxyTransformer struct {
// Params Translator-specific parameters (for example model, apiVersion).
Params *map[string]interface{} `json:"params,omitempty" yaml:"params,omitempty"`
// Type Translator policy name (for example openai-to-anthropic).
Type string `json:"type" yaml:"type"`
// Version Major-only translator policy version (for example v1). The Gateway Controller resolves it to the installed full version.
Version string `json:"version" yaml:"version"`
}
LLMProxyTransformer Request/response translator applied when this provider is the selected upstream. The proxy injects the translator as a conditional policy whose execution condition matches this provider, so it runs only when the provider is selected. The provider's `as` name (defaults to `id`) is passed to the translator as its target upstream.
type LLMUpstreamAuth ¶
type LLMUpstreamAuth struct {
// Header Deprecated: use policyParams (e.g. {request: {headers: [{name: ..., value: ...}]}} - the set-headers policy's own param shape) instead. HTTP header to set on outbound requests. Applies when type is api-key. Still honored when policyParams is omitted, for backward compatibility.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Header *string `json:"header,omitempty" yaml:"header,omitempty"`
// PolicyName Name of the policy that implements this upstream auth. Optional for "api-key"/"oauth2" (defaults to the built-in policy for that type - api-key -> set-headers, oauth2 -> oauth2-generator); set it to point at your own fork or a newer major version's replacement instead. Required when type is "other".
PolicyName *string `json:"policyName,omitempty" yaml:"policyName,omitempty"`
// PolicyParams Parameters passed verbatim to policyName (or the built-in default for type). Required when type is "oauth2" or "other" - oauth2 has no typed fields at all, only this bucket (e.g. {tokenEndpoint: ..., clientId: ..., clientSecret: ...} for the token-endpoint path, or {bearerToken: ...} for a directly-supplied credential). For "api-key", optional: replaces the deprecated header/value fields below when set; do not set both at once.
PolicyParams *map[string]interface{} `json:"policyParams,omitempty" yaml:"policyParams,omitempty"`
// PolicyVersion Major version of policyName to attach (e.g. "v1"), same format and resolution rules as Policy.version. Optional - defaults to the highest version available in the gateway image when omitted. If set, it must match a version actually loaded in this gateway build, or config validation fails.
PolicyVersion *string `json:"policyVersion,omitempty" yaml:"policyVersion,omitempty"`
// Type "api-key" attaches the built-in set-headers policy by default (overridable via policyName) and accepts either the generic policyParams bucket or its own deprecated header/value fields below. "oauth2" attaches the built-in oauth2-generator policy by default (overridable via policyName) and always requires policyParams - there is no typed-field fallback for it. "other" attaches any policy by name - policyName and policyParams are both required in that case, since there is no built-in default or typed-field fallback for a non-built-in auth scheme. "none": no upstream authentication - the gateway attaches no auth policy of its own; auth (if any) is handled entirely by user-attached policies elsewhere.
Type LLMUpstreamAuthType `json:"type" yaml:"type"`
// Value Deprecated: use policyParams instead. Upstream credential. Applies when type is api-key. Still honored when policyParams is omitted, for backward compatibility. Write-only: accepted on create/update and never returned by the management API on a read, for any role. An update that omits it inherits the stored value; set `type: none` to remove auth.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Value *string `json:"value,omitempty" yaml:"value,omitempty"`
}
LLMUpstreamAuth defines model for LLMUpstreamAuth.
type LLMUpstreamAuthType ¶
type LLMUpstreamAuthType string
LLMUpstreamAuthType "api-key" attaches the built-in set-headers policy by default (overridable via policyName) and accepts either the generic policyParams bucket or its own deprecated header/value fields below. "oauth2" attaches the built-in oauth2-generator policy by default (overridable via policyName) and always requires policyParams - there is no typed-field fallback for it. "other" attaches any policy by name - policyName and policyParams are both required in that case, since there is no built-in default or typed-field fallback for a non-built-in auth scheme. "none": no upstream authentication - the gateway attaches no auth policy of its own; auth (if any) is handled entirely by user-attached policies elsewhere.
const ( LLMUpstreamAuthTypeApiKey LLMUpstreamAuthType = "api-key" LLMUpstreamAuthTypeNone LLMUpstreamAuthType = "none" LLMUpstreamAuthTypeOauth2 LLMUpstreamAuthType = "oauth2" LLMUpstreamAuthTypeOther LLMUpstreamAuthType = "other" )
Defines values for LLMUpstreamAuthType.
type ListAgentsParams ¶
type ListAgentsParams struct {
// DisplayName Filter by agent display name
DisplayName *string `form:"displayName,omitempty" json:"displayName,omitempty" yaml:"displayName,omitempty"`
// Version Filter by agent version
Version *string `form:"version,omitempty" json:"version,omitempty" yaml:"version,omitempty"`
// Context Filter by agent context/path
Context *string `form:"context,omitempty" json:"context,omitempty" yaml:"context,omitempty"`
// Status Filter by deployment status
Status *ListAgentsParamsStatus `form:"status,omitempty" json:"status,omitempty" yaml:"status,omitempty"`
}
ListAgentsParams defines parameters for ListAgents.
type ListAgentsParamsStatus ¶
type ListAgentsParamsStatus string
ListAgentsParamsStatus defines parameters for ListAgents.
const ( ListAgentsParamsStatusDeployed ListAgentsParamsStatus = "deployed" ListAgentsParamsStatusUndeployed ListAgentsParamsStatus = "undeployed" )
Defines values for ListAgentsParamsStatus.
type ListCertificatesParams ¶
type ListCertificatesParams struct {
// Usage Filter the list to a single usage. Omit to list all certificates regardless of usage.
Usage *ListCertificatesParamsUsage `form:"usage,omitempty" json:"usage,omitempty" yaml:"usage,omitempty"`
}
ListCertificatesParams defines parameters for ListCertificates.
type ListCertificatesParamsUsage ¶
type ListCertificatesParamsUsage string
ListCertificatesParamsUsage defines parameters for ListCertificates.
const ( ListCertificatesParamsUsageDownstream ListCertificatesParamsUsage = "downstream" ListCertificatesParamsUsageIdentity ListCertificatesParamsUsage = "identity" ListCertificatesParamsUsageUpstream ListCertificatesParamsUsage = "upstream" )
Defines values for ListCertificatesParamsUsage.
type ListGraphQLAPIsParams ¶
type ListGraphQLAPIsParams struct {
// DisplayName Filter by API display name
DisplayName *string `form:"displayName,omitempty" json:"displayName,omitempty" yaml:"displayName,omitempty"`
// Version Filter by API version
Version *string `form:"version,omitempty" json:"version,omitempty" yaml:"version,omitempty"`
// Context Filter by API context/path
Context *string `form:"context,omitempty" json:"context,omitempty" yaml:"context,omitempty"`
// Status Filter by deployment status
Status *ListGraphQLAPIsParamsStatus `form:"status,omitempty" json:"status,omitempty" yaml:"status,omitempty"`
}
ListGraphQLAPIsParams defines parameters for ListGraphQLAPIs.
type ListGraphQLAPIsParamsStatus ¶
type ListGraphQLAPIsParamsStatus string
ListGraphQLAPIsParamsStatus defines parameters for ListGraphQLAPIs.
const ( ListGraphQLAPIsParamsStatusDeployed ListGraphQLAPIsParamsStatus = "deployed" ListGraphQLAPIsParamsStatusUndeployed ListGraphQLAPIsParamsStatus = "undeployed" )
Defines values for ListGraphQLAPIsParamsStatus.
type ListLLMProviderTemplatesParams ¶
type ListLLMProviderTemplatesParams struct {
// DisplayName Filter by template display name
DisplayName *string `form:"displayName,omitempty" json:"displayName,omitempty" yaml:"displayName,omitempty"`
}
ListLLMProviderTemplatesParams defines parameters for ListLLMProviderTemplates.
type ListLLMProvidersParams ¶
type ListLLMProvidersParams struct {
// DisplayName Filter by LLM provider display name
DisplayName *string `form:"displayName,omitempty" json:"displayName,omitempty" yaml:"displayName,omitempty"`
// Version Filter by LLM provider version
Version *string `form:"version,omitempty" json:"version,omitempty" yaml:"version,omitempty"`
// Context Filter by LLM provider context/path
Context *string `form:"context,omitempty" json:"context,omitempty" yaml:"context,omitempty"`
// Status Filter by deployment status
Status *ListLLMProvidersParamsStatus `form:"status,omitempty" json:"status,omitempty" yaml:"status,omitempty"`
// Vhost Filter by LLM provider vhost
Vhost *string `form:"vhost,omitempty" json:"vhost,omitempty" yaml:"vhost,omitempty"`
}
ListLLMProvidersParams defines parameters for ListLLMProviders.
type ListLLMProvidersParamsStatus ¶
type ListLLMProvidersParamsStatus string
ListLLMProvidersParamsStatus defines parameters for ListLLMProviders.
const ( ListLLMProvidersParamsStatusDeployed ListLLMProvidersParamsStatus = "deployed" ListLLMProvidersParamsStatusUndeployed ListLLMProvidersParamsStatus = "undeployed" )
Defines values for ListLLMProvidersParamsStatus.
type ListLLMProxiesParams ¶
type ListLLMProxiesParams struct {
// DisplayName Filter by LLM proxy displayName
DisplayName *string `form:"displayName,omitempty" json:"displayName,omitempty" yaml:"displayName,omitempty"`
// Version Filter by LLM proxy version
Version *string `form:"version,omitempty" json:"version,omitempty" yaml:"version,omitempty"`
// Context Filter by LLM proxy context/path
Context *string `form:"context,omitempty" json:"context,omitempty" yaml:"context,omitempty"`
// Status Filter by deployment status
Status *ListLLMProxiesParamsStatus `form:"status,omitempty" json:"status,omitempty" yaml:"status,omitempty"`
// Vhost Filter by LLM proxy vhost
Vhost *string `form:"vhost,omitempty" json:"vhost,omitempty" yaml:"vhost,omitempty"`
}
ListLLMProxiesParams defines parameters for ListLLMProxies.
type ListLLMProxiesParamsStatus ¶
type ListLLMProxiesParamsStatus string
ListLLMProxiesParamsStatus defines parameters for ListLLMProxies.
const ( ListLLMProxiesParamsStatusDeployed ListLLMProxiesParamsStatus = "deployed" ListLLMProxiesParamsStatusUndeployed ListLLMProxiesParamsStatus = "undeployed" )
Defines values for ListLLMProxiesParamsStatus.
type ListMCPProxiesParams ¶
type ListMCPProxiesParams struct {
// DisplayName Filter by MCP proxy display name
DisplayName *string `form:"displayName,omitempty" json:"displayName,omitempty" yaml:"displayName,omitempty"`
// Version Filter by MCP proxy version
Version *string `form:"version,omitempty" json:"version,omitempty" yaml:"version,omitempty"`
// Context Filter by MCP proxy context/path
Context *string `form:"context,omitempty" json:"context,omitempty" yaml:"context,omitempty"`
// Status Filter by deployment status
Status *ListMCPProxiesParamsStatus `form:"status,omitempty" json:"status,omitempty" yaml:"status,omitempty"`
}
ListMCPProxiesParams defines parameters for ListMCPProxies.
type ListMCPProxiesParamsStatus ¶
type ListMCPProxiesParamsStatus string
ListMCPProxiesParamsStatus defines parameters for ListMCPProxies.
const ( ListMCPProxiesParamsStatusDeployed ListMCPProxiesParamsStatus = "deployed" ListMCPProxiesParamsStatusUndeployed ListMCPProxiesParamsStatus = "undeployed" )
Defines values for ListMCPProxiesParamsStatus.
type ListRestAPIsParams ¶
type ListRestAPIsParams struct {
// DisplayName Filter by API display name
DisplayName *string `form:"displayName,omitempty" json:"displayName,omitempty" yaml:"displayName,omitempty"`
// Version Filter by API version
Version *string `form:"version,omitempty" json:"version,omitempty" yaml:"version,omitempty"`
// Context Filter by API context/path
Context *string `form:"context,omitempty" json:"context,omitempty" yaml:"context,omitempty"`
// Status Filter by deployment status
Status *ListRestAPIsParamsStatus `form:"status,omitempty" json:"status,omitempty" yaml:"status,omitempty"`
}
ListRestAPIsParams defines parameters for ListRestAPIs.
type ListRestAPIsParamsStatus ¶
type ListRestAPIsParamsStatus string
ListRestAPIsParamsStatus defines parameters for ListRestAPIs.
const ( Deployed ListRestAPIsParamsStatus = "deployed" Undeployed ListRestAPIsParamsStatus = "undeployed" )
Defines values for ListRestAPIsParamsStatus.
type ListSubscriptionsParams ¶
type ListSubscriptionsParams struct {
// ApiId Filter by API ID (deployment ID or handle)
ApiId *string `form:"apiId,omitempty" json:"apiId,omitempty" yaml:"apiId,omitempty"`
ApplicationId *string `form:"applicationId,omitempty" json:"applicationId,omitempty" yaml:"applicationId,omitempty"`
Status *ListSubscriptionsParamsStatus `form:"status,omitempty" json:"status,omitempty" yaml:"status,omitempty"`
}
ListSubscriptionsParams defines parameters for ListSubscriptions.
type ListSubscriptionsParamsStatus ¶
type ListSubscriptionsParamsStatus string
ListSubscriptionsParamsStatus defines parameters for ListSubscriptions.
const ( ACTIVE ListSubscriptionsParamsStatus = "ACTIVE" INACTIVE ListSubscriptionsParamsStatus = "INACTIVE" REVOKED ListSubscriptionsParamsStatus = "REVOKED" )
Defines values for ListSubscriptionsParamsStatus.
type MCPPrompt ¶
type MCPPrompt struct {
// Arguments Optional list of arguments for customization
Arguments *[]struct {
// Description Description of the argument
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// Name Name of the argument
Name string `json:"name" yaml:"name"`
// Required Whether the argument is required
Required *bool `json:"required,omitempty" yaml:"required,omitempty"`
// Title Optional human-readable title of the argument
Title *string `json:"title,omitempty" yaml:"title,omitempty"`
} `json:"arguments,omitempty" yaml:"arguments,omitempty"`
// Description Optional human-readable description
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// Name Unique identifier for the prompt
Name string `json:"name" yaml:"name"`
// Title Optional human-readable name of the prompt for display purposes
Title *string `json:"title,omitempty" yaml:"title,omitempty"`
}
MCPPrompt defines model for MCPPrompt.
type MCPProxyConfigData ¶
type MCPProxyConfigData struct {
// Context MCP Proxy context path
Context *string `json:"context,omitempty" yaml:"context,omitempty"`
// DeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the MCP Proxy is removed from router traffic but configuration and policies are preserved for potential redeployment.
DeploymentState *MCPProxyConfigDataDeploymentState `json:"deploymentState,omitempty" yaml:"deploymentState,omitempty"`
// DisplayName Human-readable MCP Proxy display name
DisplayName string `json:"displayName" yaml:"displayName"`
// FaultPolicies Ordered list of policies executed only when a request fails, over the error response. Applies to every operation.
//
// Each entry is labelled with the source of the failure, so an entry that should see only some failures narrows with executionCondition.
FaultPolicies *[]Policy `json:"faultPolicies,omitempty" yaml:"faultPolicies,omitempty"`
// Policies List of MCP Proxy level policies applied
Policies *[]Policy `json:"policies,omitempty" yaml:"policies,omitempty"`
Prompts *[]MCPPrompt `json:"prompts,omitempty" yaml:"prompts,omitempty"`
// Resilience Backend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.
Resilience *Resilience `json:"resilience,omitempty" yaml:"resilience,omitempty"`
Resources *[]MCPResource `json:"resources,omitempty" yaml:"resources,omitempty"`
// SpecVersion DEPRECATED - use specVersions. Still honoured when specVersions is absent. Cannot be used together with specVersions.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
SpecVersion *string `json:"specVersion,omitempty" yaml:"specVersion,omitempty"`
// SpecVersions MCP specification versions supported by this proxy. Versions not explicitly recognized by this gateway build are accepted and are not rejected solely on the basis of the version value. This gateway build explicitly supports MCP specification versions 2025-06-18, 2025-11-25, and 2026-07-28.
SpecVersions *[]string `json:"specVersions,omitempty" yaml:"specVersions,omitempty"`
Tools *[]MCPTool `json:"tools,omitempty" yaml:"tools,omitempty"`
// Upstream The backend MCP server url and auth configurations
Upstream MCPProxyConfigData_Upstream `json:"upstream" yaml:"upstream"`
// UpstreamDefinitions List of reusable upstream definitions with optional timeout configurations. Referenced by upstream.ref.
UpstreamDefinitions *[]UpstreamDefinition `json:"upstreamDefinitions,omitempty" yaml:"upstreamDefinitions,omitempty"`
// Version MCP Proxy version
Version string `json:"version" yaml:"version"`
// Vhost Virtual host name used for routing. Supports standard domain names, subdomains, or wildcard domains. Must follow RFC-compliant hostname rules. Wildcards are only allowed in the left-most label (e.g., *.example.com).
Vhost *string `json:"vhost,omitempty" yaml:"vhost,omitempty"`
}
MCPProxyConfigData defines model for MCPProxyConfigData.
func (MCPProxyConfigData) EffectiveSpecVersions ¶
func (s MCPProxyConfigData) EffectiveSpecVersions() []string
EffectiveSpecVersions returns the MCP specification versions this proxy declares. specVersions is authoritative; specVersion is read whenever the list declares nothing, whether absent or empty. Returns nil when neither declares anything, leaving the choice of default to the caller.
Validation rejects both an empty list and the two fields together, so only a stored config rehydrated without validation reaches the empty-list case. Reading its declared specVersion there keeps an already deployed proxy on the routes it has.
type MCPProxyConfigDataDeploymentState ¶
type MCPProxyConfigDataDeploymentState string
MCPProxyConfigDataDeploymentState Desired deployment state - 'deployed' (default) or 'undeployed'. When set to 'undeployed', the MCP Proxy is removed from router traffic but configuration and policies are preserved for potential redeployment.
const ( MCPProxyConfigDataDeploymentStateDeployed MCPProxyConfigDataDeploymentState = "deployed" MCPProxyConfigDataDeploymentStateUndeployed MCPProxyConfigDataDeploymentState = "undeployed" )
Defines values for MCPProxyConfigDataDeploymentState.
type MCPProxyConfigDataUpstream0 ¶
type MCPProxyConfigDataUpstream0 = interface{}
MCPProxyConfigDataUpstream0 defines model for .
type MCPProxyConfigDataUpstream1 ¶
type MCPProxyConfigDataUpstream1 = interface{}
MCPProxyConfigDataUpstream1 defines model for .
type MCPProxyConfigDataUpstreamAuthType ¶
type MCPProxyConfigDataUpstreamAuthType string
MCPProxyConfigDataUpstreamAuthType "api-key" attaches the built-in set-headers policy by default (overridable via policyName) and accepts either the generic policyParams bucket or its own deprecated header/value fields below. "oauth2" attaches the built-in oauth2-generator policy by default (overridable via policyName) and always requires policyParams - there is no typed-field fallback for it. "other" attaches any policy by name - policyName and policyParams are both required in that case, since there is no built-in default or typed-field fallback for a non-built-in auth scheme. "none": no upstream authentication - the gateway attaches no auth policy of its own; auth (if any) is handled entirely by user-attached policies elsewhere.
const ( MCPProxyConfigDataUpstreamAuthTypeApiKey MCPProxyConfigDataUpstreamAuthType = "api-key" MCPProxyConfigDataUpstreamAuthTypeNone MCPProxyConfigDataUpstreamAuthType = "none" MCPProxyConfigDataUpstreamAuthTypeOauth2 MCPProxyConfigDataUpstreamAuthType = "oauth2" MCPProxyConfigDataUpstreamAuthTypeOther MCPProxyConfigDataUpstreamAuthType = "other" )
Defines values for MCPProxyConfigDataUpstreamAuthType.
type MCPProxyConfigDataUpstreamHostRewrite ¶
type MCPProxyConfigDataUpstreamHostRewrite string
MCPProxyConfigDataUpstreamHostRewrite Controls how the Host header is handled when routing to the upstream. `auto` delegates host rewriting to Envoy, which rewrites the Host header using the upstream cluster host. `manual` disables automatic rewriting and expects explicit configuration.
const ( MCPProxyConfigDataUpstreamHostRewriteAuto MCPProxyConfigDataUpstreamHostRewrite = "auto" MCPProxyConfigDataUpstreamHostRewriteManual MCPProxyConfigDataUpstreamHostRewrite = "manual" )
Defines values for MCPProxyConfigDataUpstreamHostRewrite.
type MCPProxyConfigData_Upstream ¶
type MCPProxyConfigData_Upstream struct {
Auth *struct {
// Header Deprecated: use policyParams (e.g. {request: {headers: [{name: ..., value: ...}]}} - the set-headers policy's own param shape) instead. HTTP header to set on outbound requests. Applies when type is api-key. Still honored when policyParams is omitted, for backward compatibility.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Header *string `json:"header,omitempty" yaml:"header,omitempty"`
// PolicyName Name of the policy that implements this upstream auth. Optional for "api-key"/"oauth2" (defaults to the built-in policy for that type - api-key -> set-headers, oauth2 -> oauth2-generator); set it to point at your own fork or a newer major version's replacement instead. Required when type is "other".
PolicyName *string `json:"policyName,omitempty" yaml:"policyName,omitempty"`
// PolicyParams Parameters passed verbatim to policyName (or the built-in default for type). Required when type is "oauth2" or "other" - oauth2 has no typed fields at all, only this bucket (e.g. {tokenEndpoint: ..., clientId: ..., clientSecret: ...} for the token-endpoint path, or {bearerToken: ...} for a directly-supplied credential). For "api-key", optional: replaces the deprecated header/value fields below when set; do not set both at once.
PolicyParams *map[string]interface{} `json:"policyParams,omitempty" yaml:"policyParams,omitempty"`
// PolicyVersion Major version of policyName to attach (e.g. "v1"), same format and resolution rules as Policy.version. Optional - defaults to the highest version available in the gateway image when omitted. If set, it must match a version actually loaded in this gateway build, or config validation fails.
PolicyVersion *string `json:"policyVersion,omitempty" yaml:"policyVersion,omitempty"`
// Type "api-key" attaches the built-in set-headers policy by default (overridable via policyName) and accepts either the generic policyParams bucket or its own deprecated header/value fields below. "oauth2" attaches the built-in oauth2-generator policy by default (overridable via policyName) and always requires policyParams - there is no typed-field fallback for it. "other" attaches any policy by name - policyName and policyParams are both required in that case, since there is no built-in default or typed-field fallback for a non-built-in auth scheme. "none": no upstream authentication - the gateway attaches no auth policy of its own; auth (if any) is handled entirely by user-attached policies elsewhere.
Type MCPProxyConfigDataUpstreamAuthType `json:"type" yaml:"type"`
// Value Deprecated: use policyParams instead. Upstream credential. Applies when type is api-key. Still honored when policyParams is omitted, for backward compatibility. Write-only: accepted on create/update and never returned by the management API on a read, for any role. Supply either a literal value or a secret reference (e.g. a `secret` template expression); either way the field is omitted from management API response bodies. An update that omits it inherits the stored value; set `type: none` to remove auth.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Value *string `json:"value,omitempty" yaml:"value,omitempty"`
} `json:"auth,omitempty" yaml:"auth,omitempty"`
// HostRewrite Controls how the Host header is handled when routing to the upstream. `auto` delegates host rewriting to Envoy, which rewrites the Host header using the upstream cluster host. `manual` disables automatic rewriting and expects explicit configuration.
HostRewrite *MCPProxyConfigDataUpstreamHostRewrite `json:"hostRewrite,omitempty" yaml:"hostRewrite,omitempty"`
// Ref Reference to a predefined upstreamDefinition
Ref *string `json:"ref,omitempty" yaml:"ref,omitempty"`
// Tls Not supported on an inline upstream (a `url`-based main/sandbox entry); a tls block placed here is rejected at deploy time. Put it on the upstreamDefinitions entry referenced via `ref`.
Tls *map[string]interface{} `json:"tls,omitempty" yaml:"tls,omitempty"`
// Url Direct backend URL to route traffic to
Url *string `json:"url,omitempty" yaml:"url,omitempty"`
// contains filtered or unexported fields
}
MCPProxyConfigData_Upstream defines model for MCPProxyConfigData.Upstream.
func (MCPProxyConfigData_Upstream) AsMCPProxyConfigDataUpstream0 ¶
func (t MCPProxyConfigData_Upstream) AsMCPProxyConfigDataUpstream0() (MCPProxyConfigDataUpstream0, error)
AsMCPProxyConfigDataUpstream0 returns the union data inside the MCPProxyConfigData_Upstream as a MCPProxyConfigDataUpstream0
func (MCPProxyConfigData_Upstream) AsMCPProxyConfigDataUpstream1 ¶
func (t MCPProxyConfigData_Upstream) AsMCPProxyConfigDataUpstream1() (MCPProxyConfigDataUpstream1, error)
AsMCPProxyConfigDataUpstream1 returns the union data inside the MCPProxyConfigData_Upstream as a MCPProxyConfigDataUpstream1
func (*MCPProxyConfigData_Upstream) FromMCPProxyConfigDataUpstream0 ¶
func (t *MCPProxyConfigData_Upstream) FromMCPProxyConfigDataUpstream0(v MCPProxyConfigDataUpstream0) error
FromMCPProxyConfigDataUpstream0 overwrites any union data inside the MCPProxyConfigData_Upstream as the provided MCPProxyConfigDataUpstream0
func (*MCPProxyConfigData_Upstream) FromMCPProxyConfigDataUpstream1 ¶
func (t *MCPProxyConfigData_Upstream) FromMCPProxyConfigDataUpstream1(v MCPProxyConfigDataUpstream1) error
FromMCPProxyConfigDataUpstream1 overwrites any union data inside the MCPProxyConfigData_Upstream as the provided MCPProxyConfigDataUpstream1
func (MCPProxyConfigData_Upstream) MarshalJSON ¶
func (t MCPProxyConfigData_Upstream) MarshalJSON() ([]byte, error)
func (*MCPProxyConfigData_Upstream) MergeMCPProxyConfigDataUpstream0 ¶
func (t *MCPProxyConfigData_Upstream) MergeMCPProxyConfigDataUpstream0(v MCPProxyConfigDataUpstream0) error
MergeMCPProxyConfigDataUpstream0 performs a merge with any union data inside the MCPProxyConfigData_Upstream, using the provided MCPProxyConfigDataUpstream0
func (*MCPProxyConfigData_Upstream) MergeMCPProxyConfigDataUpstream1 ¶
func (t *MCPProxyConfigData_Upstream) MergeMCPProxyConfigDataUpstream1(v MCPProxyConfigDataUpstream1) error
MergeMCPProxyConfigDataUpstream1 performs a merge with any union data inside the MCPProxyConfigData_Upstream, using the provided MCPProxyConfigDataUpstream1
func (*MCPProxyConfigData_Upstream) UnmarshalJSON ¶
func (t *MCPProxyConfigData_Upstream) UnmarshalJSON(b []byte) error
type MCPProxyConfiguration ¶
type MCPProxyConfiguration struct {
// ApiVersion MCP Proxy specification version
ApiVersion MCPProxyConfigurationApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind MCP Proxy type
Kind MCPProxyConfigurationKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec MCPProxyConfigData `json:"spec" yaml:"spec"`
// Status Server-managed lifecycle fields. Populated on responses.
Status *ResourceStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
MCPProxyConfiguration defines model for MCPProxyConfiguration.
type MCPProxyConfigurationApiVersion ¶
type MCPProxyConfigurationApiVersion string
MCPProxyConfigurationApiVersion MCP Proxy specification version
const (
MCPProxyConfigurationApiVersionGatewayApiPlatformWso2Comv1 MCPProxyConfigurationApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for MCPProxyConfigurationApiVersion.
type MCPProxyConfigurationKind ¶
type MCPProxyConfigurationKind string
MCPProxyConfigurationKind MCP Proxy type
const (
MCPProxyConfigurationKindMcp MCPProxyConfigurationKind = "Mcp"
)
Defines values for MCPProxyConfigurationKind.
type MCPProxyConfigurationRequest ¶
type MCPProxyConfigurationRequest struct {
// ApiVersion MCP Proxy specification version
ApiVersion MCPProxyConfigurationRequestApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind MCP Proxy type
Kind MCPProxyConfigurationRequestKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec MCPProxyConfigData `json:"spec" yaml:"spec"`
}
MCPProxyConfigurationRequest defines model for MCPProxyConfigurationRequest.
type MCPProxyConfigurationRequestApiVersion ¶
type MCPProxyConfigurationRequestApiVersion string
MCPProxyConfigurationRequestApiVersion MCP Proxy specification version
const (
MCPProxyConfigurationRequestApiVersionGatewayApiPlatformWso2Comv1 MCPProxyConfigurationRequestApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for MCPProxyConfigurationRequestApiVersion.
type MCPProxyConfigurationRequestKind ¶
type MCPProxyConfigurationRequestKind string
MCPProxyConfigurationRequestKind MCP Proxy type
const (
MCPProxyConfigurationRequestKindMcp MCPProxyConfigurationRequestKind = "Mcp"
)
Defines values for MCPProxyConfigurationRequestKind.
type MCPResource ¶
type MCPResource struct {
// Description Optional description
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// MimeType Optional MIME type
MimeType *string `json:"mimeType,omitempty" yaml:"mimeType,omitempty"`
// Name The name of the resource
Name string `json:"name" yaml:"name"`
// Size Optional size in bytes
Size *int `json:"size,omitempty" yaml:"size,omitempty"`
// Title Optional human-readable name of the resource for display purposes
Title *string `json:"title,omitempty" yaml:"title,omitempty"`
// Uri Unique identifier for the resource
Uri string `json:"uri" yaml:"uri"`
}
MCPResource defines model for MCPResource.
type MCPTool ¶
type MCPTool struct {
// Description Human-readable description of functionality
Description string `json:"description" yaml:"description"`
// InputSchema JSON Schema defining expected parameters
InputSchema string `json:"inputSchema" yaml:"inputSchema"`
// Name Unique identifier for the tool
Name string `json:"name" yaml:"name"`
// OutputSchema Optional JSON Schema defining expected output structure
OutputSchema *string `json:"outputSchema,omitempty" yaml:"outputSchema,omitempty"`
// Title Optional human-readable name of the tool for display purposes.
Title *string `json:"title,omitempty" yaml:"title,omitempty"`
}
MCPTool defines model for MCPTool.
type Metadata ¶
type Metadata struct {
// Annotations Annotations are arbitrary non-identifying metadata. Use domain-prefixed keys.
Annotations *map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
// Labels Labels are key-value pairs for organizing and selecting APIs. Keys must not contain spaces.
Labels *map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
// Name Unique handle for the resource
Name string `json:"name" yaml:"name"`
}
Metadata defines model for Metadata.
type Operation ¶
type Operation struct {
// FaultPolicies Fault policies that apply only to this operation, in addition to any declared at the API level. Both levels run, operation-level entries first.
FaultPolicies *[]Policy `json:"faultPolicies,omitempty" yaml:"faultPolicies,omitempty"`
// Match Request matching criteria for an operation. Extensible with query params, cookies, etc.
Match *OperationMatch `json:"match,omitempty" yaml:"match,omitempty"`
// Method HTTP method (simple form; ignored when 'match' is set)
Method *OperationMethod `json:"method,omitempty" yaml:"method,omitempty"`
// Path Route path with optional {param} placeholders (simple form; ignored when 'match' is set)
Path *string `json:"path,omitempty" yaml:"path,omitempty"`
// Policies List of policies applied only to this operation (overrides or adds to API-level policies)
Policies *[]Policy `json:"policies,omitempty" yaml:"policies,omitempty"`
// Resilience Backend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.
Resilience *Resilience `json:"resilience,omitempty" yaml:"resilience,omitempty"`
}
Operation An operation is matched either by the simple top-level method+path form, or by the richer 'match' block (method + path + headers). When 'match' is present it is authoritative and the top-level method/path are ignored. At least one form must be provided.
func (Operation) EffectiveHeaders ¶
func (o Operation) EffectiveHeaders() []OperationHeaderMatch
EffectiveHeaders returns the operation's header matchers. Header matching is expressible only via the match form; the simple form has none.
func (Operation) EffectiveMethod ¶
EffectiveMethod returns the operation's effective HTTP method.
func (Operation) EffectivePath ¶
EffectivePath returns the operation's effective route path.
func (Operation) EffectivePathMatchType ¶
EffectivePathMatchType returns the effective path match type. For the match form it is the explicit type or "Exact" (the schema default) when omitted. For the simple form it is empty, preserving the legacy path-matching behavior for operations that never carried a type.
type OperationHeaderMatch ¶
type OperationHeaderMatch struct {
// Name Header name (case-insensitive)
Name string `json:"name" yaml:"name"`
// Type Header match type
Type *OperationHeaderMatchType `json:"type,omitempty" yaml:"type,omitempty"`
// Value Header value to match
Value string `json:"value" yaml:"value"`
}
OperationHeaderMatch defines model for OperationHeaderMatch.
type OperationHeaderMatchType ¶
type OperationHeaderMatchType string
OperationHeaderMatchType Header match type
const ( OperationHeaderMatchTypeExact OperationHeaderMatchType = "Exact" OperationHeaderMatchTypeRegularExpression OperationHeaderMatchType = "RegularExpression" )
Defines values for OperationHeaderMatchType.
type OperationMatch ¶
type OperationMatch struct {
// Headers Header matchers ANDed with the path match for Envoy route selection
Headers *[]OperationHeaderMatch `json:"headers,omitempty" yaml:"headers,omitempty"`
// Method HTTP method
Method OperationMethod `json:"method" yaml:"method"`
Path OperationPathMatch `json:"path" yaml:"path"`
}
OperationMatch Request matching criteria for an operation. Extensible with query params, cookies, etc.
type OperationMethod ¶
type OperationMethod string
OperationMethod HTTP method
const ( OperationMethodDELETE OperationMethod = "DELETE" OperationMethodGET OperationMethod = "GET" OperationMethodHEAD OperationMethod = "HEAD" OperationMethodOPTIONS OperationMethod = "OPTIONS" OperationMethodPATCH OperationMethod = "PATCH" OperationMethodPOST OperationMethod = "POST" OperationMethodPUT OperationMethod = "PUT" )
Defines values for OperationMethod.
type OperationPathMatch ¶
type OperationPathMatch struct {
// Type Path matching semantics for the operation route
Type *OperationPathMatchType `json:"type,omitempty" yaml:"type,omitempty"`
// Value Route path with optional {param} placeholders
Value string `json:"value" yaml:"value"`
}
OperationPathMatch defines model for OperationPathMatch.
type OperationPathMatchType ¶
type OperationPathMatchType string
OperationPathMatchType Path matching semantics for the operation route
const ( OperationPathMatchTypeExact OperationPathMatchType = "Exact" OperationPathMatchTypePathPrefix OperationPathMatchType = "PathPrefix" )
Defines values for OperationPathMatchType.
type OperationPolicy ¶
type OperationPolicy struct {
// ExecutionCondition Expression controlling conditional execution of the policy
ExecutionCondition *string `json:"executionCondition,omitempty" yaml:"executionCondition,omitempty"`
Name string `json:"name" yaml:"name"`
Paths []OperationPolicyPath `json:"paths" yaml:"paths"`
Version string `json:"version" yaml:"version"`
}
OperationPolicy defines model for OperationPolicy.
type OperationPolicyPath ¶
type OperationPolicyPath struct {
Methods []OperationPolicyPathMethods `json:"methods" yaml:"methods"`
// Params JSON Schema describing the parameters accepted by this policy. This itself is a JSON Schema document.
Params map[string]interface{} `json:"params" yaml:"params"`
Path string `json:"path" yaml:"path"`
}
OperationPolicyPath defines model for OperationPolicyPath.
type OperationPolicyPathMethods ¶
type OperationPolicyPathMethods string
OperationPolicyPathMethods HTTP method: GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD, or * for all
const ( OperationPolicyPathMethodsAsterisk OperationPolicyPathMethods = "*" OperationPolicyPathMethodsDELETE OperationPolicyPathMethods = "DELETE" OperationPolicyPathMethodsGET OperationPolicyPathMethods = "GET" OperationPolicyPathMethodsHEAD OperationPolicyPathMethods = "HEAD" OperationPolicyPathMethodsOPTIONS OperationPolicyPathMethods = "OPTIONS" OperationPolicyPathMethodsPATCH OperationPolicyPathMethods = "PATCH" OperationPolicyPathMethodsPOST OperationPolicyPathMethods = "POST" OperationPolicyPathMethodsPUT OperationPolicyPathMethods = "PUT" )
Defines values for OperationPolicyPathMethods.
type Policy ¶
type Policy struct {
// ExecutionCondition Expression controlling conditional execution of the policy
ExecutionCondition *string `json:"executionCondition,omitempty" yaml:"executionCondition,omitempty"`
// Name Name of the policy
Name string `json:"name" yaml:"name"`
// Params Arbitrary parameters for the policy (free-form key/value structure)
Params *map[string]interface{} `json:"params,omitempty" yaml:"params,omitempty"`
// Version Version of the policy. Only major-only version is allowed (e.g., v0, v1). Full semantic version (e.g., v1.0.0) is not accepted and will be rejected. The Gateway Controller resolves the major version to the single matching full version installed in the gateway image.
Version string `json:"version" yaml:"version"`
}
Policy defines model for Policy.
type RegenerateAPIKeyJSONRequestBody ¶
type RegenerateAPIKeyJSONRequestBody = APIKeyRegenerationRequest
RegenerateAPIKeyJSONRequestBody defines body for RegenerateAPIKey for application/json ContentType.
type RegenerateAgentAPIKeyJSONRequestBody ¶
type RegenerateAgentAPIKeyJSONRequestBody = APIKeyRegenerationRequest
RegenerateAgentAPIKeyJSONRequestBody defines body for RegenerateAgentAPIKey for application/json ContentType.
type RegenerateGraphQLAPIKeyJSONRequestBody ¶
type RegenerateGraphQLAPIKeyJSONRequestBody = APIKeyRegenerationRequest
RegenerateGraphQLAPIKeyJSONRequestBody defines body for RegenerateGraphQLAPIKey for application/json ContentType.
type RegenerateLLMProviderAPIKeyJSONRequestBody ¶
type RegenerateLLMProviderAPIKeyJSONRequestBody = APIKeyRegenerationRequest
RegenerateLLMProviderAPIKeyJSONRequestBody defines body for RegenerateLLMProviderAPIKey for application/json ContentType.
type RegenerateLLMProxyAPIKeyJSONRequestBody ¶
type RegenerateLLMProxyAPIKeyJSONRequestBody = APIKeyRegenerationRequest
RegenerateLLMProxyAPIKeyJSONRequestBody defines body for RegenerateLLMProxyAPIKey for application/json ContentType.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type Resilience ¶
type Resilience struct {
// IdleTimeout Per-route stream idle timeout (overrides the listener stream idle timeout for this route). "0s" disables the timeout.
IdleTimeout *string `json:"idleTimeout,omitempty" yaml:"idleTimeout,omitempty"`
// Timeout Maximum time for the entire route (request to upstream response). "0s" disables the timeout.
Timeout *string `json:"timeout,omitempty" yaml:"timeout,omitempty"`
}
Resilience Backend/route timeout configuration. Maps to Envoy RouteAction timeouts. Can be set at the API level (applies to all routes) and/or the operation level (applies to that operation's route). When set at both levels, the operation-level value takes precedence. When unset, the gateway's global route timeout defaults apply.
type ResourceStatus ¶
type ResourceStatus struct {
// CreatedAt Timestamp when the resource was first created (UTC)
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
// DeployedAt Timestamp when the resource was last deployed (omitted when undeployed)
DeployedAt *time.Time `json:"deployedAt,omitempty" yaml:"deployedAt,omitempty"`
// Id Unique identifier assigned by the server (equal to metadata.name)
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
// State Desired deployment state reported by the server
State *ResourceStatusState `json:"state,omitempty" yaml:"state,omitempty"`
// UpdatedAt Timestamp when the resource was last updated (UTC)
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
// Warnings Non-fatal deploy-time findings (e.g. a policy's parameters resolved to something other than what was written, such as an omitted accept list inheriting the whole client-CA pool). Present only when non-empty.
Warnings *[]Warning `json:"warnings,omitempty" yaml:"warnings,omitempty"`
}
ResourceStatus Server-managed lifecycle information for a resource
type ResourceStatusState ¶
type ResourceStatusState string
ResourceStatusState Desired deployment state reported by the server
const ( ResourceStatusStateDeployed ResourceStatusState = "deployed" ResourceStatusStateUndeployed ResourceStatusState = "undeployed" )
Defines values for ResourceStatusState.
type RestAPI ¶
type RestAPI struct {
// ApiVersion API specification version
ApiVersion RestAPIApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind API type
Kind RestAPIKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec APIConfigData `json:"spec" yaml:"spec"`
// Status Server-managed lifecycle fields. Populated on responses.
Status *ResourceStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
RestAPI defines model for RestAPI.
type RestAPIApiVersion ¶
type RestAPIApiVersion string
RestAPIApiVersion API specification version
const (
RestAPIApiVersionGatewayApiPlatformWso2Comv1 RestAPIApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for RestAPIApiVersion.
type RestAPIKind ¶
type RestAPIKind string
RestAPIKind API type
const (
RestAPIKindRestApi RestAPIKind = "RestApi"
)
Defines values for RestAPIKind.
type RestAPIRequest ¶
type RestAPIRequest struct {
// ApiVersion API specification version
ApiVersion RestAPIRequestApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind API type
Kind RestAPIRequestKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec APIConfigData `json:"spec" yaml:"spec"`
}
RestAPIRequest defines model for RestAPIRequest.
type RestAPIRequestApiVersion ¶
type RestAPIRequestApiVersion string
RestAPIRequestApiVersion API specification version
const (
RestAPIRequestApiVersionGatewayApiPlatformWso2Comv1 RestAPIRequestApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for RestAPIRequestApiVersion.
type RestAPIRequestKind ¶
type RestAPIRequestKind string
RestAPIRequestKind API type
const (
RestAPIRequestKindRestApi RestAPIRequestKind = "RestApi"
)
Defines values for RestAPIRequestKind.
type RouteException ¶
type RouteException struct {
// Methods HTTP methods
Methods []RouteExceptionMethods `json:"methods" yaml:"methods"`
// Path Path pattern
Path string `json:"path" yaml:"path"`
}
RouteException defines model for RouteException.
type RouteExceptionMethods ¶
type RouteExceptionMethods string
RouteExceptionMethods defines model for RouteException.Methods.
const ( RouteExceptionMethodsDELETE RouteExceptionMethods = "DELETE" RouteExceptionMethodsGET RouteExceptionMethods = "GET" RouteExceptionMethodsPATCH RouteExceptionMethods = "PATCH" RouteExceptionMethodsPOST RouteExceptionMethods = "POST" RouteExceptionMethodsPUT RouteExceptionMethods = "PUT" )
Defines values for RouteExceptionMethods.
type SecretConfigData ¶
type SecretConfigData struct {
// Description Description of the secret
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// DisplayName Human-readable secret name (must be URL-friendly - only letters, numbers, spaces, hyphens, underscores, and dots allowed)
DisplayName string `json:"displayName" yaml:"displayName"`
// Value Secret value (stored encrypted)
Value string `json:"value" yaml:"value"`
}
SecretConfigData defines model for SecretConfigData.
type SecretConfigListData ¶
type SecretConfigListData struct {
// Description Description of the secret, if the server includes it
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// DisplayName Human-readable secret name (must be URL-friendly - only letters, numbers, spaces, hyphens, underscores, and dots allowed)
DisplayName string `json:"displayName" yaml:"displayName"`
}
SecretConfigListData defines model for SecretConfigListData.
type SecretConfigurationRequest ¶
type SecretConfigurationRequest struct {
// ApiVersion Secret specification version
ApiVersion SecretConfigurationRequestApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind Secret resource kind
Kind SecretConfigurationRequestKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec SecretConfigData `json:"spec" yaml:"spec"`
}
SecretConfigurationRequest defines model for SecretConfigurationRequest.
type SecretConfigurationRequestApiVersion ¶
type SecretConfigurationRequestApiVersion string
SecretConfigurationRequestApiVersion Secret specification version
const (
SecretConfigurationRequestApiVersionGatewayApiPlatformWso2Comv1 SecretConfigurationRequestApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for SecretConfigurationRequestApiVersion.
type SecretConfigurationRequestKind ¶
type SecretConfigurationRequestKind string
SecretConfigurationRequestKind Secret resource kind
const (
SecretConfigurationRequestKindSecret SecretConfigurationRequestKind = "Secret"
)
Defines values for SecretConfigurationRequestKind.
type SecretConfigurationResponseCreateUpdate ¶
type SecretConfigurationResponseCreateUpdate struct {
ApiVersion SecretConfigurationResponseCreateUpdateApiVersion `json:"apiVersion" yaml:"apiVersion"`
Kind SecretConfigurationResponseCreateUpdateKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec SecretConfigListData `json:"spec" yaml:"spec"`
// Status Id and optional timestamps. Not the full ResourceStatus model (no `state` or
// `deployedAt`).
Status SecretResourceServiceStatus `json:"status" yaml:"status"`
}
SecretConfigurationResponseCreateUpdate POST/PUT /secrets response. `spec.value` is not returned; see SecretConfigurationRequest for create/update request bodies.
type SecretConfigurationResponseCreateUpdateApiVersion ¶
type SecretConfigurationResponseCreateUpdateApiVersion string
SecretConfigurationResponseCreateUpdateApiVersion defines model for SecretConfigurationResponseCreateUpdate.ApiVersion.
const (
SecretConfigurationResponseCreateUpdateApiVersionGatewayApiPlatformWso2Comv1 SecretConfigurationResponseCreateUpdateApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for SecretConfigurationResponseCreateUpdateApiVersion.
type SecretConfigurationResponseCreateUpdateKind ¶
type SecretConfigurationResponseCreateUpdateKind string
SecretConfigurationResponseCreateUpdateKind defines model for SecretConfigurationResponseCreateUpdate.Kind.
const (
SecretConfigurationResponseCreateUpdateKindSecret SecretConfigurationResponseCreateUpdateKind = "Secret"
)
Defines values for SecretConfigurationResponseCreateUpdateKind.
type SecretConfigurationResponseRetrieved ¶
type SecretConfigurationResponseRetrieved struct {
ApiVersion SecretConfigurationResponseRetrievedApiVersion `json:"apiVersion" yaml:"apiVersion"`
Kind SecretConfigurationResponseRetrievedKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec SecretConfigData `json:"spec" yaml:"spec"`
// Status Id and optional timestamps. Not the full ResourceStatus model (no `state` or
// `deployedAt`).
Status SecretResourceServiceStatus `json:"status" yaml:"status"`
}
SecretConfigurationResponseRetrieved GET /secrets/{id} response including decrypted `spec.value`.
type SecretConfigurationResponseRetrievedApiVersion ¶
type SecretConfigurationResponseRetrievedApiVersion string
SecretConfigurationResponseRetrievedApiVersion defines model for SecretConfigurationResponseRetrieved.ApiVersion.
const (
SecretConfigurationResponseRetrievedApiVersionGatewayApiPlatformWso2Comv1 SecretConfigurationResponseRetrievedApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for SecretConfigurationResponseRetrievedApiVersion.
type SecretConfigurationResponseRetrievedKind ¶
type SecretConfigurationResponseRetrievedKind string
SecretConfigurationResponseRetrievedKind defines model for SecretConfigurationResponseRetrieved.Kind.
const (
SecretConfigurationResponseRetrievedKindSecret SecretConfigurationResponseRetrievedKind = "Secret"
)
Defines values for SecretConfigurationResponseRetrievedKind.
type SecretListItem ¶
type SecretListItem struct {
// ApiVersion Secret specification version
ApiVersion SecretListItemApiVersion `json:"apiVersion" yaml:"apiVersion"`
// Kind Secret resource kind
Kind SecretListItemKind `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec SecretConfigListData `json:"spec" yaml:"spec"`
// Status Server-managed lifecycle fields. Omitted in list items may vary; the secret value is never included here.
Status *ResourceStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
SecretListItem defines model for SecretListItem.
type SecretListItemApiVersion ¶
type SecretListItemApiVersion string
SecretListItemApiVersion Secret specification version
const (
SecretListItemApiVersionGatewayApiPlatformWso2Comv1 SecretListItemApiVersion = "gateway.api-platform.wso2.com/v1"
)
Defines values for SecretListItemApiVersion.
type SecretListItemKind ¶
type SecretListItemKind string
SecretListItemKind Secret resource kind
const (
SecretListItemKindSecret SecretListItemKind = "Secret"
)
Defines values for SecretListItemKind.
type SecretListResponse ¶
type SecretListResponse struct {
// Count Total number of secrets
Count *int `json:"count,omitempty" yaml:"count,omitempty"`
// Secrets List of secrets. For security, the spec.value field is omitted for every item in the list; retrieve a single secret by id to obtain the decrypted value.
Secrets *[]SecretListItem `json:"secrets,omitempty" yaml:"secrets,omitempty"`
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
}
SecretListResponse defines model for SecretListResponse.
type SecretResourceServiceStatus ¶
type SecretResourceServiceStatus struct {
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
// Id Same as metadata.name / secret handle
Id string `json:"id" yaml:"id"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
}
SecretResourceServiceStatus Id and optional timestamps. Not the full ResourceStatus model (no `state` or `deployedAt`).
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
ServeHTTP(w http.ResponseWriter, r *http.Request)
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// List all Agents
// (GET /agents)
ListAgents(w http.ResponseWriter, r *http.Request, params ListAgentsParams)
// Create a new Agent
// (POST /agents)
CreateAgent(w http.ResponseWriter, r *http.Request)
// Delete an Agent
// (DELETE /agents/{id})
DeleteAgent(w http.ResponseWriter, r *http.Request, id string)
// Get Agent by id
// (GET /agents/{id})
GetAgentById(w http.ResponseWriter, r *http.Request, id string)
// Update an existing Agent
// (PUT /agents/{id})
UpdateAgent(w http.ResponseWriter, r *http.Request, id string)
// Get the list of API keys for an Agent
// (GET /agents/{id}/api-keys)
ListAgentAPIKeys(w http.ResponseWriter, r *http.Request, id string)
// Create a new API key for an Agent
// (POST /agents/{id}/api-keys)
CreateAgentAPIKey(w http.ResponseWriter, r *http.Request, id string)
// Revoke an API key for an Agent
// (DELETE /agents/{id}/api-keys/{apiKeyName})
RevokeAgentAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// Update an API key for an Agent
// (PUT /agents/{id}/api-keys/{apiKeyName})
UpdateAgentAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// Regenerate API key for an Agent
// (POST /agents/{id}/api-keys/{apiKeyName}/regenerate)
RegenerateAgentAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// List all custom certificates
// (GET /certificates)
ListCertificates(w http.ResponseWriter, r *http.Request, params ListCertificatesParams)
// Upload a new certificate
// (POST /certificates)
UploadCertificate(w http.ResponseWriter, r *http.Request)
// Manually reload certificates
// (POST /certificates/reload)
ReloadCertificates(w http.ResponseWriter, r *http.Request)
// Delete a certificate
// (DELETE /certificates/{id})
DeleteCertificate(w http.ResponseWriter, r *http.Request, id string)
// Rotate a gateway identity's certificate and key
// (PUT /certificates/{id})
UpdateCertificate(w http.ResponseWriter, r *http.Request, id string)
// List all GraphQLApis
// (GET /graphql-apis)
ListGraphQLAPIs(w http.ResponseWriter, r *http.Request, params ListGraphQLAPIsParams)
// Create a new GraphQLApi
// (POST /graphql-apis)
CreateGraphQLAPI(w http.ResponseWriter, r *http.Request)
// Delete a GraphQLApi
// (DELETE /graphql-apis/{id})
DeleteGraphQLAPI(w http.ResponseWriter, r *http.Request, id string)
// Get GraphQLApi by id
// (GET /graphql-apis/{id})
GetGraphQLAPIById(w http.ResponseWriter, r *http.Request, id string)
// Update an existing GraphQLApi
// (PUT /graphql-apis/{id})
UpdateGraphQLAPI(w http.ResponseWriter, r *http.Request, id string)
// Get the list of API keys for a GraphQL API
// (GET /graphql-apis/{id}/api-keys)
ListGraphQLAPIKeys(w http.ResponseWriter, r *http.Request, id string)
// Create a new API key for a GraphQL API
// (POST /graphql-apis/{id}/api-keys)
CreateGraphQLAPIKey(w http.ResponseWriter, r *http.Request, id string)
// Revoke an API key
// (DELETE /graphql-apis/{id}/api-keys/{apiKeyName})
RevokeGraphQLAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// Update an API key with a new regenerated value
// (PUT /graphql-apis/{id}/api-keys/{apiKeyName})
UpdateGraphQLAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// Regenerate API key for a GraphQL API
// (POST /graphql-apis/{id}/api-keys/{apiKeyName}/regenerate)
RegenerateGraphQLAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// List all LLM provider templates
// (GET /llm-provider-templates)
ListLLMProviderTemplates(w http.ResponseWriter, r *http.Request, params ListLLMProviderTemplatesParams)
// Create a new LLM provider template
// (POST /llm-provider-templates)
CreateLLMProviderTemplate(w http.ResponseWriter, r *http.Request)
// Delete an LLM provider template
// (DELETE /llm-provider-templates/{id})
DeleteLLMProviderTemplate(w http.ResponseWriter, r *http.Request, id string)
// Get LLM provider template by id
// (GET /llm-provider-templates/{id})
GetLLMProviderTemplateById(w http.ResponseWriter, r *http.Request, id string)
// Update an existing LLM provider template
// (PUT /llm-provider-templates/{id})
UpdateLLMProviderTemplate(w http.ResponseWriter, r *http.Request, id string)
// List all LLM providers
// (GET /llm-providers)
ListLLMProviders(w http.ResponseWriter, r *http.Request, params ListLLMProvidersParams)
// Create a new LLM provider
// (POST /llm-providers)
CreateLLMProvider(w http.ResponseWriter, r *http.Request)
// Delete an LLM provider
// (DELETE /llm-providers/{id})
DeleteLLMProvider(w http.ResponseWriter, r *http.Request, id string)
// Get LLM provider by identifier
// (GET /llm-providers/{id})
GetLLMProviderById(w http.ResponseWriter, r *http.Request, id string)
// Update an existing LLM provider
// (PUT /llm-providers/{id})
UpdateLLMProvider(w http.ResponseWriter, r *http.Request, id string)
// Get the list of API keys for an LLM provider
// (GET /llm-providers/{id}/api-keys)
ListLLMProviderAPIKeys(w http.ResponseWriter, r *http.Request, id string)
// Create a new API key for an LLM provider
// (POST /llm-providers/{id}/api-keys)
CreateLLMProviderAPIKey(w http.ResponseWriter, r *http.Request, id string)
// Revoke an API key for an LLM provider
// (DELETE /llm-providers/{id}/api-keys/{apiKeyName})
RevokeLLMProviderAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// Update an API key for an LLM provider
// (PUT /llm-providers/{id}/api-keys/{apiKeyName})
UpdateLLMProviderAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// Regenerate API key for an LLM provider
// (POST /llm-providers/{id}/api-keys/{apiKeyName}/regenerate)
RegenerateLLMProviderAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// List all LLM proxies
// (GET /llm-proxies)
ListLLMProxies(w http.ResponseWriter, r *http.Request, params ListLLMProxiesParams)
// Create a new LLM proxy
// (POST /llm-proxies)
CreateLLMProxy(w http.ResponseWriter, r *http.Request)
// Delete an LLM proxy
// (DELETE /llm-proxies/{id})
DeleteLLMProxy(w http.ResponseWriter, r *http.Request, id string)
// Get LLM proxy by unique identifier
// (GET /llm-proxies/{id})
GetLLMProxyById(w http.ResponseWriter, r *http.Request, id string)
// Update an existing LLM proxy
// (PUT /llm-proxies/{id})
UpdateLLMProxy(w http.ResponseWriter, r *http.Request, id string)
// Get the list of API keys for an LLM proxy
// (GET /llm-proxies/{id}/api-keys)
ListLLMProxyAPIKeys(w http.ResponseWriter, r *http.Request, id string)
// Create a new API key for an LLM proxy
// (POST /llm-proxies/{id}/api-keys)
CreateLLMProxyAPIKey(w http.ResponseWriter, r *http.Request, id string)
// Revoke an API key for an LLM proxy
// (DELETE /llm-proxies/{id}/api-keys/{apiKeyName})
RevokeLLMProxyAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// Update an API key for an LLM proxy
// (PUT /llm-proxies/{id}/api-keys/{apiKeyName})
UpdateLLMProxyAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// Regenerate API key for an LLM proxy
// (POST /llm-proxies/{id}/api-keys/{apiKeyName}/regenerate)
RegenerateLLMProxyAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// List all MCPProxies
// (GET /mcp-proxies)
ListMCPProxies(w http.ResponseWriter, r *http.Request, params ListMCPProxiesParams)
// Create a new MCPProxy
// (POST /mcp-proxies)
CreateMCPProxy(w http.ResponseWriter, r *http.Request)
// Delete a MCPProxy
// (DELETE /mcp-proxies/{id})
DeleteMCPProxy(w http.ResponseWriter, r *http.Request, id string)
// Get MCPProxy by id
// (GET /mcp-proxies/{id})
GetMCPProxyById(w http.ResponseWriter, r *http.Request, id string)
// Update an existing MCPProxy
// (PUT /mcp-proxies/{id})
UpdateMCPProxy(w http.ResponseWriter, r *http.Request, id string)
// List all RestAPIs
// (GET /rest-apis)
ListRestAPIs(w http.ResponseWriter, r *http.Request, params ListRestAPIsParams)
// Create a new RestAPI
// (POST /rest-apis)
CreateRestAPI(w http.ResponseWriter, r *http.Request)
// Delete a RestAPI
// (DELETE /rest-apis/{id})
DeleteRestAPI(w http.ResponseWriter, r *http.Request, id string)
// Get RestAPI by id
// (GET /rest-apis/{id})
GetRestAPIById(w http.ResponseWriter, r *http.Request, id string)
// Update an existing RestAPI
// (PUT /rest-apis/{id})
UpdateRestAPI(w http.ResponseWriter, r *http.Request, id string)
// Get the list of API keys for an API
// (GET /rest-apis/{id}/api-keys)
ListAPIKeys(w http.ResponseWriter, r *http.Request, id string)
// Create a new API key for an API
// (POST /rest-apis/{id}/api-keys)
CreateAPIKey(w http.ResponseWriter, r *http.Request, id string)
// Revoke an API key
// (DELETE /rest-apis/{id}/api-keys/{apiKeyName})
RevokeAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// Update an API key with a new regenerated value
// (PUT /rest-apis/{id}/api-keys/{apiKeyName})
UpdateAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// Regenerate API key for an API
// (POST /rest-apis/{id}/api-keys/{apiKeyName}/regenerate)
RegenerateAPIKey(w http.ResponseWriter, r *http.Request, id string, apiKeyName string)
// List all secrets
// (GET /secrets)
ListSecrets(w http.ResponseWriter, r *http.Request)
// Create a new secret
// (POST /secrets)
CreateSecret(w http.ResponseWriter, r *http.Request)
// Delete a secret
// (DELETE /secrets/{id})
DeleteSecret(w http.ResponseWriter, r *http.Request, id string)
// Retrieve a secret
// (GET /secrets/{id})
GetSecret(w http.ResponseWriter, r *http.Request, id string)
// Update a secret
// (PUT /secrets/{id})
UpdateSecret(w http.ResponseWriter, r *http.Request, id string)
// List subscription plans
// (GET /subscription-plans)
ListSubscriptionPlans(w http.ResponseWriter, r *http.Request)
// Create a subscription plan
// (POST /subscription-plans)
CreateSubscriptionPlan(w http.ResponseWriter, r *http.Request)
// Delete a subscription plan
// (DELETE /subscription-plans/{planId})
DeleteSubscriptionPlan(w http.ResponseWriter, r *http.Request, planId string)
// Get a subscription plan by ID
// (GET /subscription-plans/{planId})
GetSubscriptionPlan(w http.ResponseWriter, r *http.Request, planId string)
// Update a subscription plan
// (PUT /subscription-plans/{planId})
UpdateSubscriptionPlan(w http.ResponseWriter, r *http.Request, planId string)
// List subscriptions
// (GET /subscriptions)
ListSubscriptions(w http.ResponseWriter, r *http.Request, params ListSubscriptionsParams)
// Create a subscription
// (POST /subscriptions)
CreateSubscription(w http.ResponseWriter, r *http.Request)
// Delete a subscription
// (DELETE /subscriptions/{subscriptionId})
DeleteSubscription(w http.ResponseWriter, r *http.Request, subscriptionId string)
// Get a subscription by ID
// (GET /subscriptions/{subscriptionId})
GetSubscription(w http.ResponseWriter, r *http.Request, subscriptionId string)
// Update a subscription
// (PUT /subscriptions/{subscriptionId})
UpdateSubscription(w http.ResponseWriter, r *http.Request, subscriptionId string)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) CreateAPIKey ¶
func (siw *ServerInterfaceWrapper) CreateAPIKey(w http.ResponseWriter, r *http.Request)
CreateAPIKey operation middleware
func (*ServerInterfaceWrapper) CreateAgent ¶
func (siw *ServerInterfaceWrapper) CreateAgent(w http.ResponseWriter, r *http.Request)
CreateAgent operation middleware
func (*ServerInterfaceWrapper) CreateAgentAPIKey ¶
func (siw *ServerInterfaceWrapper) CreateAgentAPIKey(w http.ResponseWriter, r *http.Request)
CreateAgentAPIKey operation middleware
func (*ServerInterfaceWrapper) CreateGraphQLAPI ¶
func (siw *ServerInterfaceWrapper) CreateGraphQLAPI(w http.ResponseWriter, r *http.Request)
CreateGraphQLAPI operation middleware
func (*ServerInterfaceWrapper) CreateGraphQLAPIKey ¶
func (siw *ServerInterfaceWrapper) CreateGraphQLAPIKey(w http.ResponseWriter, r *http.Request)
CreateGraphQLAPIKey operation middleware
func (*ServerInterfaceWrapper) CreateLLMProvider ¶
func (siw *ServerInterfaceWrapper) CreateLLMProvider(w http.ResponseWriter, r *http.Request)
CreateLLMProvider operation middleware
func (*ServerInterfaceWrapper) CreateLLMProviderAPIKey ¶
func (siw *ServerInterfaceWrapper) CreateLLMProviderAPIKey(w http.ResponseWriter, r *http.Request)
CreateLLMProviderAPIKey operation middleware
func (*ServerInterfaceWrapper) CreateLLMProviderTemplate ¶
func (siw *ServerInterfaceWrapper) CreateLLMProviderTemplate(w http.ResponseWriter, r *http.Request)
CreateLLMProviderTemplate operation middleware
func (*ServerInterfaceWrapper) CreateLLMProxy ¶
func (siw *ServerInterfaceWrapper) CreateLLMProxy(w http.ResponseWriter, r *http.Request)
CreateLLMProxy operation middleware
func (*ServerInterfaceWrapper) CreateLLMProxyAPIKey ¶
func (siw *ServerInterfaceWrapper) CreateLLMProxyAPIKey(w http.ResponseWriter, r *http.Request)
CreateLLMProxyAPIKey operation middleware
func (*ServerInterfaceWrapper) CreateMCPProxy ¶
func (siw *ServerInterfaceWrapper) CreateMCPProxy(w http.ResponseWriter, r *http.Request)
CreateMCPProxy operation middleware
func (*ServerInterfaceWrapper) CreateRestAPI ¶
func (siw *ServerInterfaceWrapper) CreateRestAPI(w http.ResponseWriter, r *http.Request)
CreateRestAPI operation middleware
func (*ServerInterfaceWrapper) CreateSecret ¶
func (siw *ServerInterfaceWrapper) CreateSecret(w http.ResponseWriter, r *http.Request)
CreateSecret operation middleware
func (*ServerInterfaceWrapper) CreateSubscription ¶
func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r *http.Request)
CreateSubscription operation middleware
func (*ServerInterfaceWrapper) CreateSubscriptionPlan ¶
func (siw *ServerInterfaceWrapper) CreateSubscriptionPlan(w http.ResponseWriter, r *http.Request)
CreateSubscriptionPlan operation middleware
func (*ServerInterfaceWrapper) DeleteAgent ¶
func (siw *ServerInterfaceWrapper) DeleteAgent(w http.ResponseWriter, r *http.Request)
DeleteAgent operation middleware
func (*ServerInterfaceWrapper) DeleteCertificate ¶
func (siw *ServerInterfaceWrapper) DeleteCertificate(w http.ResponseWriter, r *http.Request)
DeleteCertificate operation middleware
func (*ServerInterfaceWrapper) DeleteGraphQLAPI ¶
func (siw *ServerInterfaceWrapper) DeleteGraphQLAPI(w http.ResponseWriter, r *http.Request)
DeleteGraphQLAPI operation middleware
func (*ServerInterfaceWrapper) DeleteLLMProvider ¶
func (siw *ServerInterfaceWrapper) DeleteLLMProvider(w http.ResponseWriter, r *http.Request)
DeleteLLMProvider operation middleware
func (*ServerInterfaceWrapper) DeleteLLMProviderTemplate ¶
func (siw *ServerInterfaceWrapper) DeleteLLMProviderTemplate(w http.ResponseWriter, r *http.Request)
DeleteLLMProviderTemplate operation middleware
func (*ServerInterfaceWrapper) DeleteLLMProxy ¶
func (siw *ServerInterfaceWrapper) DeleteLLMProxy(w http.ResponseWriter, r *http.Request)
DeleteLLMProxy operation middleware
func (*ServerInterfaceWrapper) DeleteMCPProxy ¶
func (siw *ServerInterfaceWrapper) DeleteMCPProxy(w http.ResponseWriter, r *http.Request)
DeleteMCPProxy operation middleware
func (*ServerInterfaceWrapper) DeleteRestAPI ¶
func (siw *ServerInterfaceWrapper) DeleteRestAPI(w http.ResponseWriter, r *http.Request)
DeleteRestAPI operation middleware
func (*ServerInterfaceWrapper) DeleteSecret ¶
func (siw *ServerInterfaceWrapper) DeleteSecret(w http.ResponseWriter, r *http.Request)
DeleteSecret operation middleware
func (*ServerInterfaceWrapper) DeleteSubscription ¶
func (siw *ServerInterfaceWrapper) DeleteSubscription(w http.ResponseWriter, r *http.Request)
DeleteSubscription operation middleware
func (*ServerInterfaceWrapper) DeleteSubscriptionPlan ¶
func (siw *ServerInterfaceWrapper) DeleteSubscriptionPlan(w http.ResponseWriter, r *http.Request)
DeleteSubscriptionPlan operation middleware
func (*ServerInterfaceWrapper) GetAgentById ¶
func (siw *ServerInterfaceWrapper) GetAgentById(w http.ResponseWriter, r *http.Request)
GetAgentById operation middleware
func (*ServerInterfaceWrapper) GetGraphQLAPIById ¶
func (siw *ServerInterfaceWrapper) GetGraphQLAPIById(w http.ResponseWriter, r *http.Request)
GetGraphQLAPIById operation middleware
func (*ServerInterfaceWrapper) GetLLMProviderById ¶
func (siw *ServerInterfaceWrapper) GetLLMProviderById(w http.ResponseWriter, r *http.Request)
GetLLMProviderById operation middleware
func (*ServerInterfaceWrapper) GetLLMProviderTemplateById ¶
func (siw *ServerInterfaceWrapper) GetLLMProviderTemplateById(w http.ResponseWriter, r *http.Request)
GetLLMProviderTemplateById operation middleware
func (*ServerInterfaceWrapper) GetLLMProxyById ¶
func (siw *ServerInterfaceWrapper) GetLLMProxyById(w http.ResponseWriter, r *http.Request)
GetLLMProxyById operation middleware
func (*ServerInterfaceWrapper) GetMCPProxyById ¶
func (siw *ServerInterfaceWrapper) GetMCPProxyById(w http.ResponseWriter, r *http.Request)
GetMCPProxyById operation middleware
func (*ServerInterfaceWrapper) GetRestAPIById ¶
func (siw *ServerInterfaceWrapper) GetRestAPIById(w http.ResponseWriter, r *http.Request)
GetRestAPIById operation middleware
func (*ServerInterfaceWrapper) GetSecret ¶
func (siw *ServerInterfaceWrapper) GetSecret(w http.ResponseWriter, r *http.Request)
GetSecret operation middleware
func (*ServerInterfaceWrapper) GetSubscription ¶
func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *http.Request)
GetSubscription operation middleware
func (*ServerInterfaceWrapper) GetSubscriptionPlan ¶
func (siw *ServerInterfaceWrapper) GetSubscriptionPlan(w http.ResponseWriter, r *http.Request)
GetSubscriptionPlan operation middleware
func (*ServerInterfaceWrapper) ListAPIKeys ¶
func (siw *ServerInterfaceWrapper) ListAPIKeys(w http.ResponseWriter, r *http.Request)
ListAPIKeys operation middleware
func (*ServerInterfaceWrapper) ListAgentAPIKeys ¶
func (siw *ServerInterfaceWrapper) ListAgentAPIKeys(w http.ResponseWriter, r *http.Request)
ListAgentAPIKeys operation middleware
func (*ServerInterfaceWrapper) ListAgents ¶
func (siw *ServerInterfaceWrapper) ListAgents(w http.ResponseWriter, r *http.Request)
ListAgents operation middleware
func (*ServerInterfaceWrapper) ListCertificates ¶
func (siw *ServerInterfaceWrapper) ListCertificates(w http.ResponseWriter, r *http.Request)
ListCertificates operation middleware
func (*ServerInterfaceWrapper) ListGraphQLAPIKeys ¶
func (siw *ServerInterfaceWrapper) ListGraphQLAPIKeys(w http.ResponseWriter, r *http.Request)
ListGraphQLAPIKeys operation middleware
func (*ServerInterfaceWrapper) ListGraphQLAPIs ¶
func (siw *ServerInterfaceWrapper) ListGraphQLAPIs(w http.ResponseWriter, r *http.Request)
ListGraphQLAPIs operation middleware
func (*ServerInterfaceWrapper) ListLLMProviderAPIKeys ¶
func (siw *ServerInterfaceWrapper) ListLLMProviderAPIKeys(w http.ResponseWriter, r *http.Request)
ListLLMProviderAPIKeys operation middleware
func (*ServerInterfaceWrapper) ListLLMProviderTemplates ¶
func (siw *ServerInterfaceWrapper) ListLLMProviderTemplates(w http.ResponseWriter, r *http.Request)
ListLLMProviderTemplates operation middleware
func (*ServerInterfaceWrapper) ListLLMProviders ¶
func (siw *ServerInterfaceWrapper) ListLLMProviders(w http.ResponseWriter, r *http.Request)
ListLLMProviders operation middleware
func (*ServerInterfaceWrapper) ListLLMProxies ¶
func (siw *ServerInterfaceWrapper) ListLLMProxies(w http.ResponseWriter, r *http.Request)
ListLLMProxies operation middleware
func (*ServerInterfaceWrapper) ListLLMProxyAPIKeys ¶
func (siw *ServerInterfaceWrapper) ListLLMProxyAPIKeys(w http.ResponseWriter, r *http.Request)
ListLLMProxyAPIKeys operation middleware
func (*ServerInterfaceWrapper) ListMCPProxies ¶
func (siw *ServerInterfaceWrapper) ListMCPProxies(w http.ResponseWriter, r *http.Request)
ListMCPProxies operation middleware
func (*ServerInterfaceWrapper) ListRestAPIs ¶
func (siw *ServerInterfaceWrapper) ListRestAPIs(w http.ResponseWriter, r *http.Request)
ListRestAPIs operation middleware
func (*ServerInterfaceWrapper) ListSecrets ¶
func (siw *ServerInterfaceWrapper) ListSecrets(w http.ResponseWriter, r *http.Request)
ListSecrets operation middleware
func (*ServerInterfaceWrapper) ListSubscriptionPlans ¶
func (siw *ServerInterfaceWrapper) ListSubscriptionPlans(w http.ResponseWriter, r *http.Request)
ListSubscriptionPlans operation middleware
func (*ServerInterfaceWrapper) ListSubscriptions ¶
func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *http.Request)
ListSubscriptions operation middleware
func (*ServerInterfaceWrapper) RegenerateAPIKey ¶
func (siw *ServerInterfaceWrapper) RegenerateAPIKey(w http.ResponseWriter, r *http.Request)
RegenerateAPIKey operation middleware
func (*ServerInterfaceWrapper) RegenerateAgentAPIKey ¶
func (siw *ServerInterfaceWrapper) RegenerateAgentAPIKey(w http.ResponseWriter, r *http.Request)
RegenerateAgentAPIKey operation middleware
func (*ServerInterfaceWrapper) RegenerateGraphQLAPIKey ¶
func (siw *ServerInterfaceWrapper) RegenerateGraphQLAPIKey(w http.ResponseWriter, r *http.Request)
RegenerateGraphQLAPIKey operation middleware
func (*ServerInterfaceWrapper) RegenerateLLMProviderAPIKey ¶
func (siw *ServerInterfaceWrapper) RegenerateLLMProviderAPIKey(w http.ResponseWriter, r *http.Request)
RegenerateLLMProviderAPIKey operation middleware
func (*ServerInterfaceWrapper) RegenerateLLMProxyAPIKey ¶
func (siw *ServerInterfaceWrapper) RegenerateLLMProxyAPIKey(w http.ResponseWriter, r *http.Request)
RegenerateLLMProxyAPIKey operation middleware
func (*ServerInterfaceWrapper) ReloadCertificates ¶
func (siw *ServerInterfaceWrapper) ReloadCertificates(w http.ResponseWriter, r *http.Request)
ReloadCertificates operation middleware
func (*ServerInterfaceWrapper) RevokeAPIKey ¶
func (siw *ServerInterfaceWrapper) RevokeAPIKey(w http.ResponseWriter, r *http.Request)
RevokeAPIKey operation middleware
func (*ServerInterfaceWrapper) RevokeAgentAPIKey ¶
func (siw *ServerInterfaceWrapper) RevokeAgentAPIKey(w http.ResponseWriter, r *http.Request)
RevokeAgentAPIKey operation middleware
func (*ServerInterfaceWrapper) RevokeGraphQLAPIKey ¶
func (siw *ServerInterfaceWrapper) RevokeGraphQLAPIKey(w http.ResponseWriter, r *http.Request)
RevokeGraphQLAPIKey operation middleware
func (*ServerInterfaceWrapper) RevokeLLMProviderAPIKey ¶
func (siw *ServerInterfaceWrapper) RevokeLLMProviderAPIKey(w http.ResponseWriter, r *http.Request)
RevokeLLMProviderAPIKey operation middleware
func (*ServerInterfaceWrapper) RevokeLLMProxyAPIKey ¶
func (siw *ServerInterfaceWrapper) RevokeLLMProxyAPIKey(w http.ResponseWriter, r *http.Request)
RevokeLLMProxyAPIKey operation middleware
func (*ServerInterfaceWrapper) UpdateAPIKey ¶
func (siw *ServerInterfaceWrapper) UpdateAPIKey(w http.ResponseWriter, r *http.Request)
UpdateAPIKey operation middleware
func (*ServerInterfaceWrapper) UpdateAgent ¶
func (siw *ServerInterfaceWrapper) UpdateAgent(w http.ResponseWriter, r *http.Request)
UpdateAgent operation middleware
func (*ServerInterfaceWrapper) UpdateAgentAPIKey ¶
func (siw *ServerInterfaceWrapper) UpdateAgentAPIKey(w http.ResponseWriter, r *http.Request)
UpdateAgentAPIKey operation middleware
func (*ServerInterfaceWrapper) UpdateCertificate ¶
func (siw *ServerInterfaceWrapper) UpdateCertificate(w http.ResponseWriter, r *http.Request)
UpdateCertificate operation middleware
func (*ServerInterfaceWrapper) UpdateGraphQLAPI ¶
func (siw *ServerInterfaceWrapper) UpdateGraphQLAPI(w http.ResponseWriter, r *http.Request)
UpdateGraphQLAPI operation middleware
func (*ServerInterfaceWrapper) UpdateGraphQLAPIKey ¶
func (siw *ServerInterfaceWrapper) UpdateGraphQLAPIKey(w http.ResponseWriter, r *http.Request)
UpdateGraphQLAPIKey operation middleware
func (*ServerInterfaceWrapper) UpdateLLMProvider ¶
func (siw *ServerInterfaceWrapper) UpdateLLMProvider(w http.ResponseWriter, r *http.Request)
UpdateLLMProvider operation middleware
func (*ServerInterfaceWrapper) UpdateLLMProviderAPIKey ¶
func (siw *ServerInterfaceWrapper) UpdateLLMProviderAPIKey(w http.ResponseWriter, r *http.Request)
UpdateLLMProviderAPIKey operation middleware
func (*ServerInterfaceWrapper) UpdateLLMProviderTemplate ¶
func (siw *ServerInterfaceWrapper) UpdateLLMProviderTemplate(w http.ResponseWriter, r *http.Request)
UpdateLLMProviderTemplate operation middleware
func (*ServerInterfaceWrapper) UpdateLLMProxy ¶
func (siw *ServerInterfaceWrapper) UpdateLLMProxy(w http.ResponseWriter, r *http.Request)
UpdateLLMProxy operation middleware
func (*ServerInterfaceWrapper) UpdateLLMProxyAPIKey ¶
func (siw *ServerInterfaceWrapper) UpdateLLMProxyAPIKey(w http.ResponseWriter, r *http.Request)
UpdateLLMProxyAPIKey operation middleware
func (*ServerInterfaceWrapper) UpdateMCPProxy ¶
func (siw *ServerInterfaceWrapper) UpdateMCPProxy(w http.ResponseWriter, r *http.Request)
UpdateMCPProxy operation middleware
func (*ServerInterfaceWrapper) UpdateRestAPI ¶
func (siw *ServerInterfaceWrapper) UpdateRestAPI(w http.ResponseWriter, r *http.Request)
UpdateRestAPI operation middleware
func (*ServerInterfaceWrapper) UpdateSecret ¶
func (siw *ServerInterfaceWrapper) UpdateSecret(w http.ResponseWriter, r *http.Request)
UpdateSecret operation middleware
func (*ServerInterfaceWrapper) UpdateSubscription ¶
func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r *http.Request)
UpdateSubscription operation middleware
func (*ServerInterfaceWrapper) UpdateSubscriptionPlan ¶
func (siw *ServerInterfaceWrapper) UpdateSubscriptionPlan(w http.ResponseWriter, r *http.Request)
UpdateSubscriptionPlan operation middleware
func (*ServerInterfaceWrapper) UploadCertificate ¶
func (siw *ServerInterfaceWrapper) UploadCertificate(w http.ResponseWriter, r *http.Request)
UploadCertificate operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type SubscriptionCreateRequest ¶
type SubscriptionCreateRequest struct {
// ApiId API identifier (deployment ID or handle)
ApiId string `json:"apiId" yaml:"apiId"`
// ApplicationId Application identifier (from DevPortal/STS). Optional for token-based subscriptions.
ApplicationId *string `json:"applicationId,omitempty" yaml:"applicationId,omitempty"`
// BillingCustomerId Billing customer identifier (optional, for analytics tracking).
BillingCustomerId *string `json:"billingCustomerId,omitempty" yaml:"billingCustomerId,omitempty"`
// BillingSubscriptionId Billing subscription identifier (optional, for analytics tracking).
BillingSubscriptionId *string `json:"billingSubscriptionId,omitempty" yaml:"billingSubscriptionId,omitempty"`
// ExternalRefId Optional caller-supplied reference ID. When provided, it is used as the subscription ID
// instead of a gateway-generated one. Must be unique within the gateway.
ExternalRefId *string `json:"externalRefId,omitempty" yaml:"externalRefId,omitempty"`
Status *SubscriptionCreateRequestStatus `json:"status,omitempty" yaml:"status,omitempty"`
// SubscriptionPlanId Subscription plan UUID for rate limit and billing configuration.
SubscriptionPlanId *string `json:"subscriptionPlanId,omitempty" yaml:"subscriptionPlanId,omitempty"`
// SubscriptionToken Opaque subscription token for API invocation (required; stored as hash only)
SubscriptionToken string `json:"subscriptionToken" yaml:"subscriptionToken"`
}
SubscriptionCreateRequest defines model for SubscriptionCreateRequest.
type SubscriptionCreateRequestStatus ¶
type SubscriptionCreateRequestStatus string
SubscriptionCreateRequestStatus defines model for SubscriptionCreateRequest.Status.
const ( SubscriptionCreateRequestStatusACTIVE SubscriptionCreateRequestStatus = "ACTIVE" SubscriptionCreateRequestStatusINACTIVE SubscriptionCreateRequestStatus = "INACTIVE" SubscriptionCreateRequestStatusREVOKED SubscriptionCreateRequestStatus = "REVOKED" )
Defines values for SubscriptionCreateRequestStatus.
type SubscriptionListResponse ¶
type SubscriptionListResponse struct {
Count *int `json:"count,omitempty" yaml:"count,omitempty"`
Subscriptions *[]SubscriptionResponse `json:"subscriptions,omitempty" yaml:"subscriptions,omitempty"`
}
SubscriptionListResponse defines model for SubscriptionListResponse.
type SubscriptionPlanCreateRequest ¶
type SubscriptionPlanCreateRequest struct {
BillingPlan *string `json:"billingPlan,omitempty" yaml:"billingPlan,omitempty"`
ExpiryTime *time.Time `json:"expiryTime,omitempty" yaml:"expiryTime,omitempty"`
PlanName string `json:"planName" yaml:"planName"`
Status *SubscriptionPlanCreateRequestStatus `json:"status,omitempty" yaml:"status,omitempty"`
StopOnQuotaReach *bool `json:"stopOnQuotaReach,omitempty" yaml:"stopOnQuotaReach,omitempty"`
ThrottleLimitCount *int `json:"throttleLimitCount,omitempty" yaml:"throttleLimitCount,omitempty"`
ThrottleLimitUnit *SubscriptionPlanCreateRequestThrottleLimitUnit `json:"throttleLimitUnit,omitempty" yaml:"throttleLimitUnit,omitempty"`
}
SubscriptionPlanCreateRequest defines model for SubscriptionPlanCreateRequest.
type SubscriptionPlanCreateRequestStatus ¶
type SubscriptionPlanCreateRequestStatus string
SubscriptionPlanCreateRequestStatus defines model for SubscriptionPlanCreateRequest.Status.
const ( SubscriptionPlanCreateRequestStatusACTIVE SubscriptionPlanCreateRequestStatus = "ACTIVE" SubscriptionPlanCreateRequestStatusINACTIVE SubscriptionPlanCreateRequestStatus = "INACTIVE" )
Defines values for SubscriptionPlanCreateRequestStatus.
type SubscriptionPlanCreateRequestThrottleLimitUnit ¶
type SubscriptionPlanCreateRequestThrottleLimitUnit string
SubscriptionPlanCreateRequestThrottleLimitUnit defines model for SubscriptionPlanCreateRequest.ThrottleLimitUnit.
const ( SubscriptionPlanCreateRequestThrottleLimitUnitDay SubscriptionPlanCreateRequestThrottleLimitUnit = "Day" SubscriptionPlanCreateRequestThrottleLimitUnitHour SubscriptionPlanCreateRequestThrottleLimitUnit = "Hour" SubscriptionPlanCreateRequestThrottleLimitUnitMin SubscriptionPlanCreateRequestThrottleLimitUnit = "Min" SubscriptionPlanCreateRequestThrottleLimitUnitMonth SubscriptionPlanCreateRequestThrottleLimitUnit = "Month" )
Defines values for SubscriptionPlanCreateRequestThrottleLimitUnit.
type SubscriptionPlanListResponse ¶
type SubscriptionPlanListResponse struct {
Count *int `json:"count,omitempty" yaml:"count,omitempty"`
SubscriptionPlans *[]SubscriptionPlanResponse `json:"subscriptionPlans,omitempty" yaml:"subscriptionPlans,omitempty"`
}
SubscriptionPlanListResponse defines model for SubscriptionPlanListResponse.
type SubscriptionPlanResponse ¶
type SubscriptionPlanResponse struct {
BillingPlan *string `json:"billingPlan,omitempty" yaml:"billingPlan,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
ExpiryTime *time.Time `json:"expiryTime,omitempty" yaml:"expiryTime,omitempty"`
GatewayId *string `json:"gatewayId,omitempty" yaml:"gatewayId,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
PlanName *string `json:"planName,omitempty" yaml:"planName,omitempty"`
Status *SubscriptionPlanResponseStatus `json:"status,omitempty" yaml:"status,omitempty"`
StopOnQuotaReach *bool `json:"stopOnQuotaReach,omitempty" yaml:"stopOnQuotaReach,omitempty"`
ThrottleLimitCount *int `json:"throttleLimitCount,omitempty" yaml:"throttleLimitCount,omitempty"`
ThrottleLimitUnit *string `json:"throttleLimitUnit,omitempty" yaml:"throttleLimitUnit,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
}
SubscriptionPlanResponse defines model for SubscriptionPlanResponse.
type SubscriptionPlanResponseStatus ¶
type SubscriptionPlanResponseStatus string
SubscriptionPlanResponseStatus defines model for SubscriptionPlanResponse.Status.
const ( SubscriptionPlanResponseStatusACTIVE SubscriptionPlanResponseStatus = "ACTIVE" SubscriptionPlanResponseStatusINACTIVE SubscriptionPlanResponseStatus = "INACTIVE" )
Defines values for SubscriptionPlanResponseStatus.
type SubscriptionPlanUpdateRequest ¶
type SubscriptionPlanUpdateRequest struct {
// BillingPlan Send an explicit null (or an empty string) to remove the billing plan.
BillingPlan *string `json:"billingPlan" yaml:"billingPlan"`
// ExpiryTime Send an explicit null to remove the expiry time.
ExpiryTime *time.Time `json:"expiryTime" yaml:"expiryTime"`
// PlanName New plan name. Must not be empty or already used by another plan. APIs refer to plans
// by name, so an API that lists the old name no longer accepts this plan after a rename.
PlanName *string `json:"planName,omitempty" yaml:"planName,omitempty"`
Status *SubscriptionPlanUpdateRequestStatus `json:"status,omitempty" yaml:"status,omitempty"`
StopOnQuotaReach *bool `json:"stopOnQuotaReach,omitempty" yaml:"stopOnQuotaReach,omitempty"`
// ThrottleLimitCount Set together with throttleLimitUnit. Send an explicit null for both fields to remove the
// limit, which makes the plan unlimited.
ThrottleLimitCount *int `json:"throttleLimitCount" yaml:"throttleLimitCount"`
// ThrottleLimitUnit Set together with throttleLimitCount. Send an explicit null for both fields to remove the limit.
ThrottleLimitUnit *SubscriptionPlanUpdateRequestThrottleLimitUnit `json:"throttleLimitUnit" yaml:"throttleLimitUnit"`
}
SubscriptionPlanUpdateRequest Partial update. Fields that are omitted are left unchanged.
type SubscriptionPlanUpdateRequestStatus ¶
type SubscriptionPlanUpdateRequestStatus string
SubscriptionPlanUpdateRequestStatus defines model for SubscriptionPlanUpdateRequest.Status.
const ( SubscriptionPlanUpdateRequestStatusACTIVE SubscriptionPlanUpdateRequestStatus = "ACTIVE" SubscriptionPlanUpdateRequestStatusINACTIVE SubscriptionPlanUpdateRequestStatus = "INACTIVE" )
Defines values for SubscriptionPlanUpdateRequestStatus.
type SubscriptionPlanUpdateRequestThrottleLimitUnit ¶
type SubscriptionPlanUpdateRequestThrottleLimitUnit string
SubscriptionPlanUpdateRequestThrottleLimitUnit Set together with throttleLimitCount. Send an explicit null for both fields to remove the limit.
const ( SubscriptionPlanUpdateRequestThrottleLimitUnitDay SubscriptionPlanUpdateRequestThrottleLimitUnit = "Day" SubscriptionPlanUpdateRequestThrottleLimitUnitHour SubscriptionPlanUpdateRequestThrottleLimitUnit = "Hour" SubscriptionPlanUpdateRequestThrottleLimitUnitMin SubscriptionPlanUpdateRequestThrottleLimitUnit = "Min" SubscriptionPlanUpdateRequestThrottleLimitUnitMonth SubscriptionPlanUpdateRequestThrottleLimitUnit = "Month" )
Defines values for SubscriptionPlanUpdateRequestThrottleLimitUnit.
type SubscriptionResponse ¶
type SubscriptionResponse struct {
ApiId *string `json:"apiId,omitempty" yaml:"apiId,omitempty"`
ApplicationId *string `json:"applicationId,omitempty" yaml:"applicationId,omitempty"`
// BillingCustomerId Billing customer identifier
BillingCustomerId *string `json:"billingCustomerId,omitempty" yaml:"billingCustomerId,omitempty"`
// BillingSubscriptionId Billing subscription identifier
BillingSubscriptionId *string `json:"billingSubscriptionId,omitempty" yaml:"billingSubscriptionId,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
// ExternalRefId Caller-facing reference ID of the subscription.
ExternalRefId *string `json:"externalRefId,omitempty" yaml:"externalRefId,omitempty"`
GatewayId *string `json:"gatewayId,omitempty" yaml:"gatewayId,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
Status *SubscriptionResponseStatus `json:"status,omitempty" yaml:"status,omitempty"`
// SubscriptionPlanId Subscription plan UUID
SubscriptionPlanId *string `json:"subscriptionPlanId,omitempty" yaml:"subscriptionPlanId,omitempty"`
// SubscriptionToken Opaque subscription token (returned only on create; use Platform-API to retrieve for existing subscriptions)
SubscriptionToken *string `json:"subscriptionToken,omitempty" yaml:"subscriptionToken,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
}
SubscriptionResponse defines model for SubscriptionResponse.
type SubscriptionResponseStatus ¶
type SubscriptionResponseStatus string
SubscriptionResponseStatus defines model for SubscriptionResponse.Status.
const ( SubscriptionResponseStatusACTIVE SubscriptionResponseStatus = "ACTIVE" SubscriptionResponseStatusINACTIVE SubscriptionResponseStatus = "INACTIVE" SubscriptionResponseStatusREVOKED SubscriptionResponseStatus = "REVOKED" )
Defines values for SubscriptionResponseStatus.
type SubscriptionUpdateRequest ¶
type SubscriptionUpdateRequest struct {
Status *SubscriptionUpdateRequestStatus `json:"status,omitempty" yaml:"status,omitempty"`
// SubscriptionPlanId Subscription plan UUID. The plan must exist, be ACTIVE and be enabled for the subscribed API.
// Send an explicit null to remove the plan from the subscription.
SubscriptionPlanId *string `json:"subscriptionPlanId" yaml:"subscriptionPlanId"`
// SubscriptionToken New opaque subscription token. Rotates the token in place.
SubscriptionToken *string `json:"subscriptionToken,omitempty" yaml:"subscriptionToken,omitempty"`
}
SubscriptionUpdateRequest Partial update. Fields that are omitted are left unchanged.
type SubscriptionUpdateRequestStatus ¶
type SubscriptionUpdateRequestStatus string
SubscriptionUpdateRequestStatus defines model for SubscriptionUpdateRequest.Status.
const ( SubscriptionUpdateRequestStatusACTIVE SubscriptionUpdateRequestStatus = "ACTIVE" SubscriptionUpdateRequestStatusINACTIVE SubscriptionUpdateRequestStatus = "INACTIVE" SubscriptionUpdateRequestStatusREVOKED SubscriptionUpdateRequestStatus = "REVOKED" )
Defines values for SubscriptionUpdateRequestStatus.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateAPIKeyJSONRequestBody ¶
type UpdateAPIKeyJSONRequestBody = APIKeyUpdateRequest
UpdateAPIKeyJSONRequestBody defines body for UpdateAPIKey for application/json ContentType.
type UpdateAgentAPIKeyJSONRequestBody ¶
type UpdateAgentAPIKeyJSONRequestBody = APIKeyUpdateRequest
UpdateAgentAPIKeyJSONRequestBody defines body for UpdateAgentAPIKey for application/json ContentType.
type UpdateAgentJSONRequestBody ¶
type UpdateAgentJSONRequestBody = AgentConfigurationRequest
UpdateAgentJSONRequestBody defines body for UpdateAgent for application/json ContentType.
type UpdateCertificateJSONBody ¶
type UpdateCertificateJSONBody = CertificateUploadRequest
UpdateCertificateJSONBody defines parameters for UpdateCertificate.
type UpdateCertificateJSONRequestBody ¶
type UpdateCertificateJSONRequestBody = UpdateCertificateJSONBody
UpdateCertificateJSONRequestBody defines body for UpdateCertificate for application/json ContentType.
type UpdateGraphQLAPIJSONRequestBody ¶
type UpdateGraphQLAPIJSONRequestBody = GraphQLAPIRequest
UpdateGraphQLAPIJSONRequestBody defines body for UpdateGraphQLAPI for application/json ContentType.
type UpdateGraphQLAPIKeyJSONRequestBody ¶
type UpdateGraphQLAPIKeyJSONRequestBody = APIKeyUpdateRequest
UpdateGraphQLAPIKeyJSONRequestBody defines body for UpdateGraphQLAPIKey for application/json ContentType.
type UpdateLLMProviderAPIKeyJSONRequestBody ¶
type UpdateLLMProviderAPIKeyJSONRequestBody = APIKeyUpdateRequest
UpdateLLMProviderAPIKeyJSONRequestBody defines body for UpdateLLMProviderAPIKey for application/json ContentType.
type UpdateLLMProviderJSONRequestBody ¶
type UpdateLLMProviderJSONRequestBody = LLMProviderConfigurationRequest
UpdateLLMProviderJSONRequestBody defines body for UpdateLLMProvider for application/json ContentType.
type UpdateLLMProviderTemplateJSONRequestBody ¶
type UpdateLLMProviderTemplateJSONRequestBody = LLMProviderTemplateRequest
UpdateLLMProviderTemplateJSONRequestBody defines body for UpdateLLMProviderTemplate for application/json ContentType.
type UpdateLLMProxyAPIKeyJSONRequestBody ¶
type UpdateLLMProxyAPIKeyJSONRequestBody = APIKeyUpdateRequest
UpdateLLMProxyAPIKeyJSONRequestBody defines body for UpdateLLMProxyAPIKey for application/json ContentType.
type UpdateLLMProxyJSONRequestBody ¶
type UpdateLLMProxyJSONRequestBody = LLMProxyConfigurationRequest
UpdateLLMProxyJSONRequestBody defines body for UpdateLLMProxy for application/json ContentType.
type UpdateMCPProxyJSONRequestBody ¶
type UpdateMCPProxyJSONRequestBody = MCPProxyConfigurationRequest
UpdateMCPProxyJSONRequestBody defines body for UpdateMCPProxy for application/json ContentType.
type UpdateRestAPIJSONRequestBody ¶
type UpdateRestAPIJSONRequestBody = RestAPIRequest
UpdateRestAPIJSONRequestBody defines body for UpdateRestAPI for application/json ContentType.
type UpdateSecretJSONRequestBody ¶
type UpdateSecretJSONRequestBody = SecretConfigurationRequest
UpdateSecretJSONRequestBody defines body for UpdateSecret for application/json ContentType.
type UpdateSubscriptionJSONRequestBody ¶
type UpdateSubscriptionJSONRequestBody = SubscriptionUpdateRequest
UpdateSubscriptionJSONRequestBody defines body for UpdateSubscription for application/json ContentType.
type UpdateSubscriptionPlanJSONRequestBody ¶
type UpdateSubscriptionPlanJSONRequestBody = SubscriptionPlanUpdateRequest
UpdateSubscriptionPlanJSONRequestBody defines body for UpdateSubscriptionPlan for application/json ContentType.
type UploadCertificateJSONRequestBody ¶
type UploadCertificateJSONRequestBody = CertificateUploadRequest
UploadCertificateJSONRequestBody defines body for UploadCertificate for application/json ContentType.
type Upstream ¶
type Upstream struct {
// HostRewrite Controls how the Host header is handled when routing to the upstream. `auto` delegates host rewriting to Envoy, which rewrites the Host header using the upstream cluster host. `manual` disables automatic rewriting and expects explicit configuration.
HostRewrite *UpstreamHostRewrite `json:"hostRewrite,omitempty" yaml:"hostRewrite,omitempty"`
// Ref Reference to a predefined upstreamDefinition
Ref *string `json:"ref,omitempty" yaml:"ref,omitempty"`
// Tls Not supported on an inline upstream (a `url`-based main/sandbox entry); a tls block placed here is rejected at deploy time. Put it on the upstreamDefinitions entry referenced via `ref`.
Tls *map[string]interface{} `json:"tls,omitempty" yaml:"tls,omitempty"`
// Url Direct backend URL to route traffic to
Url *string `json:"url,omitempty" yaml:"url,omitempty"`
// contains filtered or unexported fields
}
Upstream Upstream backend configuration (single target or reference)
func (Upstream) AsUpstream0 ¶
AsUpstream0 returns the union data inside the Upstream as a Upstream0
func (Upstream) AsUpstream1 ¶
AsUpstream1 returns the union data inside the Upstream as a Upstream1
func (*Upstream) FromUpstream0 ¶
FromUpstream0 overwrites any union data inside the Upstream as the provided Upstream0
func (*Upstream) FromUpstream1 ¶
FromUpstream1 overwrites any union data inside the Upstream as the provided Upstream1
func (Upstream) MarshalJSON ¶
func (*Upstream) MergeUpstream0 ¶
MergeUpstream0 performs a merge with any union data inside the Upstream, using the provided Upstream0
func (*Upstream) MergeUpstream1 ¶
MergeUpstream1 performs a merge with any union data inside the Upstream, using the provided Upstream1
func (*Upstream) UnmarshalJSON ¶
type UpstreamAuth ¶
type UpstreamAuth struct {
Auth *struct {
// Header Deprecated: use policyParams (e.g. {request: {headers: [{name: ..., value: ...}]}} - the set-headers policy's own param shape) instead. HTTP header to set on outbound requests. Applies when type is api-key. Still honored when policyParams is omitted, for backward compatibility.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Header *string `json:"header,omitempty" yaml:"header,omitempty"`
// PolicyName Name of the policy that implements this upstream auth. Optional for "api-key"/"oauth2" (defaults to the built-in policy for that type - api-key -> set-headers, oauth2 -> oauth2-generator); set it to point at your own fork or a newer major version's replacement instead. Required when type is "other".
PolicyName *string `json:"policyName,omitempty" yaml:"policyName,omitempty"`
// PolicyParams Parameters passed verbatim to policyName (or the built-in default for type). Required when type is "oauth2" or "other" - oauth2 has no typed fields at all, only this bucket (e.g. {tokenEndpoint: ..., clientId: ..., clientSecret: ...} for the token-endpoint path, or {bearerToken: ...} for a directly-supplied credential). For "api-key", optional: replaces the deprecated header/value fields below when set; do not set both at once.
PolicyParams *map[string]interface{} `json:"policyParams,omitempty" yaml:"policyParams,omitempty"`
// PolicyVersion Major version of policyName to attach (e.g. "v1"), same format and resolution rules as Policy.version. Optional - defaults to the highest version available in the gateway image when omitted. If set, it must match a version actually loaded in this gateway build, or config validation fails.
PolicyVersion *string `json:"policyVersion,omitempty" yaml:"policyVersion,omitempty"`
// Type "api-key" attaches the built-in set-headers policy by default (overridable via policyName) and accepts either the generic policyParams bucket or its own deprecated header/value fields below. "oauth2" attaches the built-in oauth2-generator policy by default (overridable via policyName) and always requires policyParams - there is no typed-field fallback for it. "other" attaches any policy by name - policyName and policyParams are both required in that case, since there is no built-in default or typed-field fallback for a non-built-in auth scheme. "none": no upstream authentication - the gateway attaches no auth policy of its own; auth (if any) is handled entirely by user-attached policies elsewhere.
Type UpstreamAuthAuthType `json:"type" yaml:"type"`
// Value Deprecated: use policyParams instead. Upstream credential. Applies when type is api-key. Still honored when policyParams is omitted, for backward compatibility. Write-only: accepted on create/update and never returned by the management API on a read, for any role. Supply either a literal value or a secret reference (e.g. a `secret` template expression); either way the field is omitted from management API response bodies. An update that omits it inherits the stored value; set `type: none` to remove auth.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Value *string `json:"value,omitempty" yaml:"value,omitempty"`
} `json:"auth,omitempty" yaml:"auth,omitempty"`
}
UpstreamAuth defines model for UpstreamAuth.
type UpstreamAuthAuthType ¶
type UpstreamAuthAuthType string
UpstreamAuthAuthType "api-key" attaches the built-in set-headers policy by default (overridable via policyName) and accepts either the generic policyParams bucket or its own deprecated header/value fields below. "oauth2" attaches the built-in oauth2-generator policy by default (overridable via policyName) and always requires policyParams - there is no typed-field fallback for it. "other" attaches any policy by name - policyName and policyParams are both required in that case, since there is no built-in default or typed-field fallback for a non-built-in auth scheme. "none": no upstream authentication - the gateway attaches no auth policy of its own; auth (if any) is handled entirely by user-attached policies elsewhere.
const ( ApiKey UpstreamAuthAuthType = "api-key" None UpstreamAuthAuthType = "none" Oauth2 UpstreamAuthAuthType = "oauth2" Other UpstreamAuthAuthType = "other" )
Defines values for UpstreamAuthAuthType.
type UpstreamDefinition ¶
type UpstreamDefinition struct {
// BasePath Base path prefix for all endpoints in this upstream (e.g., /api/v2). All requests to this upstream will have this path prepended. Must start with '/' and must not end with '/'; omit for root.
BasePath *string `json:"basePath,omitempty" yaml:"basePath,omitempty"`
// Name Unique identifier for this upstream definition
Name string `json:"name" yaml:"name"`
// Timeout Timeout configuration for upstream requests
Timeout *UpstreamTimeout `json:"timeout,omitempty" yaml:"timeout,omitempty"`
// Tls Optional mutual-TLS presentation and trust for this backend. `identity` (string) names a gateway identity — a certificate uploaded to POST /certificates with usage: identity — to present on the connection. `trustedCAs` (array of string) lists usage: upstream certificates to trust for this backend in place of the gateway-wide trust bundle; omit to use the gateway bundle. `verifyHostName` (boolean, default true) controls SAN/hostname verification against the target. Every target in a definition carrying `tls` must use https://. Unknown keys are rejected at deploy time.
Tls *map[string]interface{} `json:"tls,omitempty" yaml:"tls,omitempty"`
// Upstreams List of backend targets with optional weights for load balancing
Upstreams []struct {
// Url Backend URL (host and port only, path comes from basePath)
Url string `json:"url" yaml:"url"`
// Weight Relative weight for load balancing across multiple upstream targets. Reserved for future multi-target load balancing; not applied yet (only the first target is currently used).
Weight *int `json:"weight,omitempty" yaml:"weight,omitempty"`
} `json:"upstreams" yaml:"upstreams"`
}
UpstreamDefinition Reusable upstream configuration with optional timeout and load balancing settings
type UpstreamHostRewrite ¶
type UpstreamHostRewrite string
UpstreamHostRewrite Controls how the Host header is handled when routing to the upstream. `auto` delegates host rewriting to Envoy, which rewrites the Host header using the upstream cluster host. `manual` disables automatic rewriting and expects explicit configuration.
const ( UpstreamHostRewriteAuto UpstreamHostRewrite = "auto" UpstreamHostRewriteManual UpstreamHostRewrite = "manual" )
Defines values for UpstreamHostRewrite.
type UpstreamTimeout ¶
type UpstreamTimeout struct {
// Connect Connection timeout duration (e.g., "5s", "500ms")
Connect *string `json:"connect,omitempty" yaml:"connect,omitempty"`
}
UpstreamTimeout Timeout configuration for upstream requests
type ValidationError ¶
type ValidationError struct {
// Field Field that failed validation
Field *string `json:"field,omitempty" yaml:"field,omitempty"`
// Message Human-readable error message
Message *string `json:"message,omitempty" yaml:"message,omitempty"`
}
ValidationError defines model for ValidationError.
type Warning ¶
type Warning struct {
Code *WarningCode `json:"code,omitempty" yaml:"code,omitempty"`
Field *string `json:"field,omitempty" yaml:"field,omitempty"`
Message *string `json:"message,omitempty" yaml:"message,omitempty"`
}
Warning A non-fatal, deploy-time finding attached to a resource's status.
type WarningCode ¶
type WarningCode string
WarningCode defines model for Warning.Code.
const ( HEADERCERTBYPASSACTIVE WarningCode = "HEADER_CERT_BYPASS_ACTIVE" MTLSACCEPTINHERITSPOOL WarningCode = "MTLS_ACCEPT_INHERITS_POOL" MTLSACCEPTNAMESRELAYAUTHORITY WarningCode = "MTLS_ACCEPT_NAMES_RELAY_AUTHORITY" MTLSACCEPTUNNARROWED WarningCode = "MTLS_ACCEPT_UNNARROWED" MTLSAUTHNOTFIRST WarningCode = "MTLS_AUTH_NOT_FIRST" MTLSHOSTNAMENOTSCOPED WarningCode = "MTLS_HOSTNAME_NOT_SCOPED" MTLSTHUMBPRINTNORMALISED WarningCode = "MTLS_THUMBPRINT_NORMALISED" TLSIDENTITYEXPIRED WarningCode = "TLS_IDENTITY_EXPIRED" TLSVERIFYHOSTNAMEDISABLED WarningCode = "TLS_VERIFY_HOSTNAME_DISABLED" )
Defines values for WarningCode.