openapi

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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

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

Package openapi is reserved for generated API client code.

Generation entrypoint:

make openapi-generate

Generated files in this directory must not be edited manually.

Index

Constants

View Source
const (
	ServiceTokenAuthScopes = "serviceTokenAuth.Scopes"
	UserJwtAuthScopes      = "userJwtAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewAuthCliGoogleExchangeRequest

func NewAuthCliGoogleExchangeRequest(server string, body AuthCliGoogleExchangeJSONRequestBody) (*http.Request, error)

NewAuthCliGoogleExchangeRequest calls the generic AuthCliGoogleExchange builder with application/json body

func NewAuthCliGoogleExchangeRequestWithBody

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

NewAuthCliGoogleExchangeRequestWithBody generates requests for AuthCliGoogleExchange with any type of body

func NewAuthCliGoogleStartRequest

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

NewAuthCliGoogleStartRequest generates requests for AuthCliGoogleStart

func NewAuthGoogleCallbackRequest

func NewAuthGoogleCallbackRequest(server string, params *AuthGoogleCallbackParams) (*http.Request, error)

NewAuthGoogleCallbackRequest generates requests for AuthGoogleCallback

func NewAuthGoogleRequest

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

NewAuthGoogleRequest generates requests for AuthGoogle

func NewAuthLoginRequest

func NewAuthLoginRequest(server string, body AuthLoginJSONRequestBody) (*http.Request, error)

NewAuthLoginRequest calls the generic AuthLogin builder with application/json body

func NewAuthLoginRequestWithBody

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

NewAuthLoginRequestWithBody generates requests for AuthLogin with any type of body

func NewAuthMeRequest

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

NewAuthMeRequest generates requests for AuthMe

func NewAuthRegisterRequest

func NewAuthRegisterRequest(server string, body AuthRegisterJSONRequestBody) (*http.Request, error)

NewAuthRegisterRequest calls the generic AuthRegister builder with application/json body

func NewAuthRegisterRequestWithBody

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

NewAuthRegisterRequestWithBody generates requests for AuthRegister with any type of body

func NewAuthRegistrationCompleteRequest

func NewAuthRegistrationCompleteRequest(server string, body AuthRegistrationCompleteJSONRequestBody) (*http.Request, error)

NewAuthRegistrationCompleteRequest calls the generic AuthRegistrationComplete builder with application/json body

func NewAuthRegistrationCompleteRequestWithBody

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

NewAuthRegistrationCompleteRequestWithBody generates requests for AuthRegistrationComplete with any type of body

func NewAuthRegistrationResendRequest

func NewAuthRegistrationResendRequest(server string, body AuthRegistrationResendJSONRequestBody) (*http.Request, error)

NewAuthRegistrationResendRequest calls the generic AuthRegistrationResend builder with application/json body

func NewAuthRegistrationResendRequestWithBody

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

NewAuthRegistrationResendRequestWithBody generates requests for AuthRegistrationResend with any type of body

func NewAuthRegistrationStartRequest

func NewAuthRegistrationStartRequest(server string, body AuthRegistrationStartJSONRequestBody) (*http.Request, error)

NewAuthRegistrationStartRequest calls the generic AuthRegistrationStart builder with application/json body

func NewAuthRegistrationStartRequestWithBody

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

NewAuthRegistrationStartRequestWithBody generates requests for AuthRegistrationStart with any type of body

func NewCreateManagementUserRequest

func NewCreateManagementUserRequest(server string, body CreateManagementUserJSONRequestBody) (*http.Request, error)

NewCreateManagementUserRequest calls the generic CreateManagementUser builder with application/json body

func NewCreateManagementUserRequestWithBody

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

NewCreateManagementUserRequestWithBody generates requests for CreateManagementUser with any type of body

func NewCreateMockFileRequestWithBody

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

NewCreateMockFileRequestWithBody generates requests for CreateMockFile with any type of body

func NewCreateMockRawRequest

func NewCreateMockRawRequest(server string, params *CreateMockRawParams, body CreateMockRawJSONRequestBody) (*http.Request, error)

NewCreateMockRawRequest calls the generic CreateMockRaw builder with application/json body

func NewCreateMockRawRequestWithBody

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

NewCreateMockRawRequestWithBody generates requests for CreateMockRaw with any type of body

func NewCreateServiceTokenRequest added in v0.1.6

func NewCreateServiceTokenRequest(server string, serviceUserId ServiceUserId, body CreateServiceTokenJSONRequestBody) (*http.Request, error)

NewCreateServiceTokenRequest calls the generic CreateServiceToken builder with application/json body

func NewCreateServiceTokenRequestWithBody added in v0.1.6

func NewCreateServiceTokenRequestWithBody(server string, serviceUserId ServiceUserId, contentType string, body io.Reader) (*http.Request, error)

NewCreateServiceTokenRequestWithBody generates requests for CreateServiceToken with any type of body

func NewCreateServiceUserRequest added in v0.1.6

func NewCreateServiceUserRequest(server string, body CreateServiceUserJSONRequestBody) (*http.Request, error)

NewCreateServiceUserRequest calls the generic CreateServiceUser builder with application/json body

func NewCreateServiceUserRequestWithBody added in v0.1.6

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

NewCreateServiceUserRequestWithBody generates requests for CreateServiceUser with any type of body

func NewCreateTemplateFileRequestWithBody added in v0.1.6

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

NewCreateTemplateFileRequestWithBody generates requests for CreateTemplateFile with any type of body

func NewCreateTemplateRequest added in v0.1.6

func NewCreateTemplateRequest(server string, body CreateTemplateJSONRequestBody) (*http.Request, error)

NewCreateTemplateRequest calls the generic CreateTemplate builder with application/json body

func NewCreateTemplateRequestWithBody added in v0.1.6

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

NewCreateTemplateRequestWithBody generates requests for CreateTemplate with any type of body

func NewDeleteMockRequest

func NewDeleteMockRequest(server string, mockId MockId) (*http.Request, error)

NewDeleteMockRequest generates requests for DeleteMock

func NewDeleteTemplateRequest added in v0.1.6

func NewDeleteTemplateRequest(server string, templateId TemplateId) (*http.Request, error)

NewDeleteTemplateRequest generates requests for DeleteTemplate

func NewDownloadTemplateHarRequest added in v0.1.6

func NewDownloadTemplateHarRequest(server string, templateId TemplateId) (*http.Request, error)

NewDownloadTemplateHarRequest generates requests for DownloadTemplateHar

func NewGetMockRequest

func NewGetMockRequest(server string, mockId MockId) (*http.Request, error)

NewGetMockRequest generates requests for GetMock

func NewGetMockStatsRequest

func NewGetMockStatsRequest(server string, mockId MockId, params *GetMockStatsParams) (*http.Request, error)

NewGetMockStatsRequest generates requests for GetMockStats

func NewGetTemplateDocsRequest added in v0.1.6

func NewGetTemplateDocsRequest(server string, templateId TemplateId) (*http.Request, error)

NewGetTemplateDocsRequest generates requests for GetTemplateDocs

func NewGetTemplateOpenAPIRequest added in v0.1.6

func NewGetTemplateOpenAPIRequest(server string, templateId TemplateId, params *GetTemplateOpenAPIParams) (*http.Request, error)

NewGetTemplateOpenAPIRequest generates requests for GetTemplateOpenAPI

func NewGetTemplatePostmanRequest added in v0.1.6

func NewGetTemplatePostmanRequest(server string, templateId TemplateId) (*http.Request, error)

NewGetTemplatePostmanRequest generates requests for GetTemplatePostman

func NewGetTemplateRequest added in v0.1.6

func NewGetTemplateRequest(server string, templateId TemplateId) (*http.Request, error)

NewGetTemplateRequest generates requests for GetTemplate

func NewGetTemplateRevisionOpenAPIRequest added in v0.1.6

func NewGetTemplateRevisionOpenAPIRequest(server string, templateId TemplateId, version TemplateRevisionVersion, params *GetTemplateRevisionOpenAPIParams) (*http.Request, error)

NewGetTemplateRevisionOpenAPIRequest generates requests for GetTemplateRevisionOpenAPI

func NewHealthCheckRequest

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

NewHealthCheckRequest generates requests for HealthCheck

func NewListMocksRequest

func NewListMocksRequest(server string, params *ListMocksParams) (*http.Request, error)

NewListMocksRequest generates requests for ListMocks

func NewListServiceTokensRequest added in v0.1.6

func NewListServiceTokensRequest(server string, serviceUserId ServiceUserId, params *ListServiceTokensParams) (*http.Request, error)

NewListServiceTokensRequest generates requests for ListServiceTokens

func NewListServiceUsersRequest added in v0.1.6

func NewListServiceUsersRequest(server string, params *ListServiceUsersParams) (*http.Request, error)

NewListServiceUsersRequest generates requests for ListServiceUsers

func NewListTemplateRevisionsRequest added in v0.1.6

func NewListTemplateRevisionsRequest(server string, templateId TemplateId) (*http.Request, error)

NewListTemplateRevisionsRequest generates requests for ListTemplateRevisions

func NewListTemplatesRequest added in v0.1.6

func NewListTemplatesRequest(server string, params *ListTemplatesParams) (*http.Request, error)

NewListTemplatesRequest generates requests for ListTemplates

func NewRestartMockRequest

func NewRestartMockRequest(server string, mockId MockId) (*http.Request, error)

NewRestartMockRequest generates requests for RestartMock

func NewRevokeServiceTokenRequest added in v0.1.6

func NewRevokeServiceTokenRequest(server string, serviceUserId ServiceUserId, tokenId ServiceTokenId) (*http.Request, error)

NewRevokeServiceTokenRequest generates requests for RevokeServiceToken

func NewSpawnMockFromTemplateRequest added in v0.1.6

func NewSpawnMockFromTemplateRequest(server string, templateId TemplateId, body SpawnMockFromTemplateJSONRequestBody) (*http.Request, error)

NewSpawnMockFromTemplateRequest calls the generic SpawnMockFromTemplate builder with application/json body

func NewSpawnMockFromTemplateRequestWithBody added in v0.1.6

func NewSpawnMockFromTemplateRequestWithBody(server string, templateId TemplateId, contentType string, body io.Reader) (*http.Request, error)

NewSpawnMockFromTemplateRequestWithBody generates requests for SpawnMockFromTemplate with any type of body

func NewUpdateTemplateRequest added in v0.1.6

func NewUpdateTemplateRequest(server string, templateId TemplateId, body UpdateTemplateJSONRequestBody) (*http.Request, error)

NewUpdateTemplateRequest calls the generic UpdateTemplate builder with application/json body

func NewUpdateTemplateRequestWithBody added in v0.1.6

func NewUpdateTemplateRequestWithBody(server string, templateId TemplateId, contentType string, body io.Reader) (*http.Request, error)

NewUpdateTemplateRequestWithBody generates requests for UpdateTemplate with any type of body

func NewUploadTemplateRevisionFileRequestWithBody added in v0.1.6

func NewUploadTemplateRevisionFileRequestWithBody(server string, templateId TemplateId, contentType string, body io.Reader) (*http.Request, error)

NewUploadTemplateRevisionFileRequestWithBody generates requests for UploadTemplateRevisionFile with any type of body

func NewUploadTemplateRevisionRequest added in v0.1.6

func NewUploadTemplateRevisionRequest(server string, templateId TemplateId, body UploadTemplateRevisionJSONRequestBody) (*http.Request, error)

NewUploadTemplateRevisionRequest calls the generic UploadTemplateRevision builder with application/json body

func NewUploadTemplateRevisionRequestWithBody added in v0.1.6

func NewUploadTemplateRevisionRequestWithBody(server string, templateId TemplateId, contentType string, body io.Reader) (*http.Request, error)

NewUploadTemplateRevisionRequestWithBody generates requests for UploadTemplateRevision with any type of body

func NewValidateHarFileRequestWithBody

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

NewValidateHarFileRequestWithBody generates requests for ValidateHarFile with any type of body

func NewValidateHarRawRequest

func NewValidateHarRawRequest(server string, body ValidateHarRawJSONRequestBody) (*http.Request, error)

NewValidateHarRawRequest calls the generic ValidateHarRaw builder with application/json body

func NewValidateHarRawRequestWithBody

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

NewValidateHarRawRequestWithBody generates requests for ValidateHarRaw with any type of body

Types

type AuthCliGoogleExchangeJSONRequestBody

type AuthCliGoogleExchangeJSONRequestBody = CliGoogleExchangeRequest

AuthCliGoogleExchangeJSONRequestBody defines body for AuthCliGoogleExchange for application/json ContentType.

type AuthCliGoogleExchangeResp

type AuthCliGoogleExchangeResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *LoginResponse
	JSON202      *CliGoogleExchangePendingResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseAuthCliGoogleExchangeResp

func ParseAuthCliGoogleExchangeResp(rsp *http.Response) (*AuthCliGoogleExchangeResp, error)

ParseAuthCliGoogleExchangeResp parses an HTTP response from a AuthCliGoogleExchangeWithResponse call

func (AuthCliGoogleExchangeResp) Status

func (r AuthCliGoogleExchangeResp) Status() string

Status returns HTTPResponse.Status

func (AuthCliGoogleExchangeResp) StatusCode

func (r AuthCliGoogleExchangeResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthCliGoogleStartResp

type AuthCliGoogleStartResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CliGoogleStartResponse
	JSON500      *InternalError
}

func ParseAuthCliGoogleStartResp

func ParseAuthCliGoogleStartResp(rsp *http.Response) (*AuthCliGoogleStartResp, error)

ParseAuthCliGoogleStartResp parses an HTTP response from a AuthCliGoogleStartWithResponse call

func (AuthCliGoogleStartResp) Status

func (r AuthCliGoogleStartResp) Status() string

Status returns HTTPResponse.Status

func (AuthCliGoogleStartResp) StatusCode

func (r AuthCliGoogleStartResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthGoogleCallbackParams

type AuthGoogleCallbackParams struct {
	Code  string `form:"code" json:"code"`
	State string `form:"state" json:"state"`
}

AuthGoogleCallbackParams defines parameters for AuthGoogleCallback.

type AuthGoogleCallbackResp

type AuthGoogleCallbackResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequest
	JSON500      *InternalError
}

func ParseAuthGoogleCallbackResp

func ParseAuthGoogleCallbackResp(rsp *http.Response) (*AuthGoogleCallbackResp, error)

ParseAuthGoogleCallbackResp parses an HTTP response from a AuthGoogleCallbackWithResponse call

func (AuthGoogleCallbackResp) Status

func (r AuthGoogleCallbackResp) Status() string

Status returns HTTPResponse.Status

func (AuthGoogleCallbackResp) StatusCode

func (r AuthGoogleCallbackResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthGoogleResp

type AuthGoogleResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *InternalError
}

func ParseAuthGoogleResp

func ParseAuthGoogleResp(rsp *http.Response) (*AuthGoogleResp, error)

ParseAuthGoogleResp parses an HTTP response from a AuthGoogleWithResponse call

func (AuthGoogleResp) Status

func (r AuthGoogleResp) Status() string

Status returns HTTPResponse.Status

func (AuthGoogleResp) StatusCode

func (r AuthGoogleResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthLoginJSONRequestBody

type AuthLoginJSONRequestBody = LoginRequest

AuthLoginJSONRequestBody defines body for AuthLogin for application/json ContentType.

type AuthLoginResp

type AuthLoginResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *LoginResponse
	JSON401      *Unauthorized
	JSON500      *InternalError
}

func ParseAuthLoginResp

func ParseAuthLoginResp(rsp *http.Response) (*AuthLoginResp, error)

ParseAuthLoginResp parses an HTTP response from a AuthLoginWithResponse call

func (AuthLoginResp) Status

func (r AuthLoginResp) Status() string

Status returns HTTPResponse.Status

func (AuthLoginResp) StatusCode

func (r AuthLoginResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthMeResp

type AuthMeResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MeResponse
	JSON401      *Unauthorized
	JSON500      *InternalError
}

func ParseAuthMeResp

func ParseAuthMeResp(rsp *http.Response) (*AuthMeResp, error)

ParseAuthMeResp parses an HTTP response from a AuthMeWithResponse call

func (AuthMeResp) Status

func (r AuthMeResp) Status() string

Status returns HTTPResponse.Status

func (AuthMeResp) StatusCode

func (r AuthMeResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthRegisterJSONRequestBody

type AuthRegisterJSONRequestBody = RegisterRequest

AuthRegisterJSONRequestBody defines body for AuthRegister for application/json ContentType.

type AuthRegisterResp

type AuthRegisterResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *RegistrationAcceptedResponse
	JSON400      *BadRequest
	JSON409      *Conflict
	JSON500      *InternalError
}

func ParseAuthRegisterResp

func ParseAuthRegisterResp(rsp *http.Response) (*AuthRegisterResp, error)

ParseAuthRegisterResp parses an HTTP response from a AuthRegisterWithResponse call

func (AuthRegisterResp) Status

func (r AuthRegisterResp) Status() string

Status returns HTTPResponse.Status

func (AuthRegisterResp) StatusCode

func (r AuthRegisterResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthRegistrationCompleteJSONRequestBody

type AuthRegistrationCompleteJSONRequestBody = RegistrationCompleteRequest

AuthRegistrationCompleteJSONRequestBody defines body for AuthRegistrationComplete for application/json ContentType.

type AuthRegistrationCompleteResp

type AuthRegistrationCompleteResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *RegistrationCompleteResponse
	JSON400      *BadRequest
	JSON404      *NotFound
	JSON409      *Conflict
	JSON410      *ErrorResponse
	JSON422      *UnprocessableEntity
	JSON500      *InternalError
}

func ParseAuthRegistrationCompleteResp

func ParseAuthRegistrationCompleteResp(rsp *http.Response) (*AuthRegistrationCompleteResp, error)

ParseAuthRegistrationCompleteResp parses an HTTP response from a AuthRegistrationCompleteWithResponse call

func (AuthRegistrationCompleteResp) Status

Status returns HTTPResponse.Status

func (AuthRegistrationCompleteResp) StatusCode

func (r AuthRegistrationCompleteResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthRegistrationResendJSONRequestBody

type AuthRegistrationResendJSONRequestBody = RegistrationResendRequest

AuthRegistrationResendJSONRequestBody defines body for AuthRegistrationResend for application/json ContentType.

type AuthRegistrationResendResp

type AuthRegistrationResendResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *RegistrationAcceptedResponse
	JSON400      *BadRequest
	JSON422      *UnprocessableEntity
	JSON500      *InternalError
}

func ParseAuthRegistrationResendResp

func ParseAuthRegistrationResendResp(rsp *http.Response) (*AuthRegistrationResendResp, error)

ParseAuthRegistrationResendResp parses an HTTP response from a AuthRegistrationResendWithResponse call

func (AuthRegistrationResendResp) Status

Status returns HTTPResponse.Status

func (AuthRegistrationResendResp) StatusCode

func (r AuthRegistrationResendResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AuthRegistrationStartJSONRequestBody

type AuthRegistrationStartJSONRequestBody = RegistrationStartRequest

AuthRegistrationStartJSONRequestBody defines body for AuthRegistrationStart for application/json ContentType.

type AuthRegistrationStartResp

type AuthRegistrationStartResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *RegistrationAcceptedResponse
	JSON400      *BadRequest
	JSON409      *Conflict
	JSON422      *UnprocessableEntity
	JSON500      *InternalError
}

func ParseAuthRegistrationStartResp

func ParseAuthRegistrationStartResp(rsp *http.Response) (*AuthRegistrationStartResp, error)

ParseAuthRegistrationStartResp parses an HTTP response from a AuthRegistrationStartWithResponse call

func (AuthRegistrationStartResp) Status

func (r AuthRegistrationStartResp) Status() string

Status returns HTTPResponse.Status

func (AuthRegistrationStartResp) StatusCode

func (r AuthRegistrationStartResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BadRequest

type BadRequest = ErrorResponse

BadRequest Standard API error envelope.

type CliGoogleExchangePendingResponse

type CliGoogleExchangePendingResponse struct {
	// RetryAfterSeconds Recommended delay before the next poll attempt.
	RetryAfterSeconds int `json:"retry_after_seconds"`

	// Status Current state of the one-time-code session.
	Status CliGoogleExchangePendingResponseStatus `json:"status"`
}

CliGoogleExchangePendingResponse Polling response while the browser authentication is not completed yet.

type CliGoogleExchangePendingResponseStatus

type CliGoogleExchangePendingResponseStatus string

CliGoogleExchangePendingResponseStatus Current state of the one-time-code session.

const (
	Pending CliGoogleExchangePendingResponseStatus = "pending"
)

Defines values for CliGoogleExchangePendingResponseStatus.

func (CliGoogleExchangePendingResponseStatus) Valid

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

type CliGoogleExchangeRequest

type CliGoogleExchangeRequest struct {
	// OneTimeCode One-time code from `/api/v1/auth/cli/google/start`.
	OneTimeCode string `json:"one_time_code"`
}

CliGoogleExchangeRequest Request payload for exchanging a CLI OAuth one-time code.

type CliGoogleStartResponse

type CliGoogleStartResponse struct {
	// AuthorizationUrl URL that the user should open in a browser to complete Google OAuth.
	AuthorizationUrl string `json:"authorization_url"`

	// ExpiresAt RFC3339 UTC timestamp when the one-time code expires.
	ExpiresAt time.Time `json:"expires_at"`

	// IntervalSeconds Recommended polling interval for `/api/v1/auth/cli/google/exchange`.
	IntervalSeconds int `json:"interval_seconds"`

	// OneTimeCode Opaque one-time code that identifies the CLI auth session.
	OneTimeCode string `json:"one_time_code"`
}

CliGoogleStartResponse Response payload for starting CLI Google OAuth one-time code flow.

type Client

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

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

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

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

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

Creates a new Client, with reasonable defaults

func (*Client) AuthCliGoogleExchange

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

func (*Client) AuthCliGoogleExchangeWithBody

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

func (*Client) AuthCliGoogleStart

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

func (*Client) AuthGoogle

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

func (*Client) AuthGoogleCallback

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

func (*Client) AuthLogin

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

func (*Client) AuthLoginWithBody

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

func (*Client) AuthMe

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

func (*Client) AuthRegister

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

func (*Client) AuthRegisterWithBody

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

func (*Client) AuthRegistrationComplete

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

func (*Client) AuthRegistrationCompleteWithBody

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

func (*Client) AuthRegistrationResend

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

func (*Client) AuthRegistrationResendWithBody

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

func (*Client) AuthRegistrationStart

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

func (*Client) AuthRegistrationStartWithBody

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

func (*Client) CreateManagementUser

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

func (*Client) CreateManagementUserWithBody

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

func (*Client) CreateMockFileWithBody

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

func (*Client) CreateMockRaw

func (c *Client) CreateMockRaw(ctx context.Context, params *CreateMockRawParams, body CreateMockRawJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMockRawWithBody

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

func (*Client) CreateServiceToken added in v0.1.6

func (c *Client) CreateServiceToken(ctx context.Context, serviceUserId ServiceUserId, body CreateServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateServiceTokenWithBody added in v0.1.6

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

func (*Client) CreateServiceUser added in v0.1.6

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

func (*Client) CreateServiceUserWithBody added in v0.1.6

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

func (*Client) CreateTemplate added in v0.1.6

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

func (*Client) CreateTemplateFileWithBody added in v0.1.6

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

func (*Client) CreateTemplateWithBody added in v0.1.6

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

func (*Client) DeleteMock

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

func (*Client) DeleteTemplate added in v0.1.6

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

func (*Client) DownloadTemplateHar added in v0.1.6

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

func (*Client) GetMock

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

func (*Client) GetMockStats

func (c *Client) GetMockStats(ctx context.Context, mockId MockId, params *GetMockStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTemplate added in v0.1.6

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

func (*Client) GetTemplateDocs added in v0.1.6

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

func (*Client) GetTemplateOpenAPI added in v0.1.6

func (c *Client) GetTemplateOpenAPI(ctx context.Context, templateId TemplateId, params *GetTemplateOpenAPIParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTemplatePostman added in v0.1.6

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

func (*Client) GetTemplateRevisionOpenAPI added in v0.1.6

func (c *Client) GetTemplateRevisionOpenAPI(ctx context.Context, templateId TemplateId, version TemplateRevisionVersion, params *GetTemplateRevisionOpenAPIParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) HealthCheck

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

func (*Client) ListMocks

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

func (*Client) ListServiceTokens added in v0.1.6

func (c *Client) ListServiceTokens(ctx context.Context, serviceUserId ServiceUserId, params *ListServiceTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListServiceUsers added in v0.1.6

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

func (*Client) ListTemplateRevisions added in v0.1.6

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

func (*Client) ListTemplates added in v0.1.6

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

func (*Client) RestartMock

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

func (*Client) RevokeServiceToken added in v0.1.6

func (c *Client) RevokeServiceToken(ctx context.Context, serviceUserId ServiceUserId, tokenId ServiceTokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SpawnMockFromTemplate added in v0.1.6

func (c *Client) SpawnMockFromTemplate(ctx context.Context, templateId TemplateId, body SpawnMockFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SpawnMockFromTemplateWithBody added in v0.1.6

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

func (*Client) UpdateTemplate added in v0.1.6

func (c *Client) UpdateTemplate(ctx context.Context, templateId TemplateId, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateTemplateWithBody added in v0.1.6

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

func (*Client) UploadTemplateRevision added in v0.1.6

func (c *Client) UploadTemplateRevision(ctx context.Context, templateId TemplateId, body UploadTemplateRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UploadTemplateRevisionFileWithBody added in v0.1.6

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

func (*Client) UploadTemplateRevisionWithBody added in v0.1.6

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

func (*Client) ValidateHarFileWithBody

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

func (*Client) ValidateHarRaw

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

func (*Client) ValidateHarRawWithBody

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

type ClientInterface

type ClientInterface interface {
	// AuthCliGoogleExchangeWithBody request with any body
	AuthCliGoogleExchangeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AuthCliGoogleExchange(ctx context.Context, body AuthCliGoogleExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

	AuthLogin(ctx context.Context, body AuthLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	AuthRegister(ctx context.Context, body AuthRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	AuthRegistrationComplete(ctx context.Context, body AuthRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	AuthRegistrationResend(ctx context.Context, body AuthRegistrationResendJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	AuthRegistrationStart(ctx context.Context, body AuthRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ValidateHarRaw(ctx context.Context, body ValidateHarRawJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	CreateMockRaw(ctx context.Context, params *CreateMockRawParams, body CreateMockRawJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// DeleteMock request
	DeleteMock(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMock request
	GetMock(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RestartMock request
	RestartMock(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMockStats request
	GetMockStats(ctx context.Context, mockId MockId, params *GetMockStatsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	CreateServiceUser(ctx context.Context, body CreateServiceUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListServiceTokens request
	ListServiceTokens(ctx context.Context, serviceUserId ServiceUserId, params *ListServiceTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateServiceToken(ctx context.Context, serviceUserId ServiceUserId, body CreateServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeServiceToken request
	RevokeServiceToken(ctx context.Context, serviceUserId ServiceUserId, tokenId ServiceTokenId, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	CreateTemplate(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// DeleteTemplate request
	DeleteTemplate(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTemplate request
	GetTemplate(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateTemplate(ctx context.Context, templateId TemplateId, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTemplateDocs request
	GetTemplateDocs(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DownloadTemplateHar request
	DownloadTemplateHar(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	SpawnMockFromTemplate(ctx context.Context, templateId TemplateId, body SpawnMockFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTemplateOpenAPI request
	GetTemplateOpenAPI(ctx context.Context, templateId TemplateId, params *GetTemplateOpenAPIParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTemplatePostman request
	GetTemplatePostman(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTemplateRevisions request
	ListTemplateRevisions(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UploadTemplateRevision(ctx context.Context, templateId TemplateId, body UploadTemplateRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// GetTemplateRevisionOpenAPI request
	GetTemplateRevisionOpenAPI(ctx context.Context, templateId TemplateId, version TemplateRevisionVersion, params *GetTemplateRevisionOpenAPIParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateManagementUser(ctx context.Context, body CreateManagementUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

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

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

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

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) AuthCliGoogleExchangeWithBodyWithResponse

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

AuthCliGoogleExchangeWithBodyWithResponse request with arbitrary body returning *AuthCliGoogleExchangeResp

func (*ClientWithResponses) AuthCliGoogleExchangeWithResponse

func (c *ClientWithResponses) AuthCliGoogleExchangeWithResponse(ctx context.Context, body AuthCliGoogleExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCliGoogleExchangeResp, error)

func (*ClientWithResponses) AuthCliGoogleStartWithResponse

func (c *ClientWithResponses) AuthCliGoogleStartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCliGoogleStartResp, error)

AuthCliGoogleStartWithResponse request returning *AuthCliGoogleStartResp

func (*ClientWithResponses) AuthGoogleCallbackWithResponse

func (c *ClientWithResponses) AuthGoogleCallbackWithResponse(ctx context.Context, params *AuthGoogleCallbackParams, reqEditors ...RequestEditorFn) (*AuthGoogleCallbackResp, error)

AuthGoogleCallbackWithResponse request returning *AuthGoogleCallbackResp

func (*ClientWithResponses) AuthGoogleWithResponse

func (c *ClientWithResponses) AuthGoogleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGoogleResp, error)

AuthGoogleWithResponse request returning *AuthGoogleResp

func (*ClientWithResponses) AuthLoginWithBodyWithResponse

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

AuthLoginWithBodyWithResponse request with arbitrary body returning *AuthLoginResp

func (*ClientWithResponses) AuthLoginWithResponse

func (c *ClientWithResponses) AuthLoginWithResponse(ctx context.Context, body AuthLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLoginResp, error)

func (*ClientWithResponses) AuthMeWithResponse

func (c *ClientWithResponses) AuthMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthMeResp, error)

AuthMeWithResponse request returning *AuthMeResp

func (*ClientWithResponses) AuthRegisterWithBodyWithResponse

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

AuthRegisterWithBodyWithResponse request with arbitrary body returning *AuthRegisterResp

func (*ClientWithResponses) AuthRegisterWithResponse

func (c *ClientWithResponses) AuthRegisterWithResponse(ctx context.Context, body AuthRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegisterResp, error)

func (*ClientWithResponses) AuthRegistrationCompleteWithBodyWithResponse

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

AuthRegistrationCompleteWithBodyWithResponse request with arbitrary body returning *AuthRegistrationCompleteResp

func (*ClientWithResponses) AuthRegistrationCompleteWithResponse

func (c *ClientWithResponses) AuthRegistrationCompleteWithResponse(ctx context.Context, body AuthRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationCompleteResp, error)

func (*ClientWithResponses) AuthRegistrationResendWithBodyWithResponse

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

AuthRegistrationResendWithBodyWithResponse request with arbitrary body returning *AuthRegistrationResendResp

func (*ClientWithResponses) AuthRegistrationResendWithResponse

func (c *ClientWithResponses) AuthRegistrationResendWithResponse(ctx context.Context, body AuthRegistrationResendJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationResendResp, error)

func (*ClientWithResponses) AuthRegistrationStartWithBodyWithResponse

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

AuthRegistrationStartWithBodyWithResponse request with arbitrary body returning *AuthRegistrationStartResp

func (*ClientWithResponses) AuthRegistrationStartWithResponse

func (c *ClientWithResponses) AuthRegistrationStartWithResponse(ctx context.Context, body AuthRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationStartResp, error)

func (*ClientWithResponses) CreateManagementUserWithBodyWithResponse

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

CreateManagementUserWithBodyWithResponse request with arbitrary body returning *CreateManagementUserResp

func (*ClientWithResponses) CreateManagementUserWithResponse

func (c *ClientWithResponses) CreateManagementUserWithResponse(ctx context.Context, body CreateManagementUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManagementUserResp, error)

func (*ClientWithResponses) CreateMockFileWithBodyWithResponse

func (c *ClientWithResponses) CreateMockFileWithBodyWithResponse(ctx context.Context, params *CreateMockFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMockFileResp, error)

CreateMockFileWithBodyWithResponse request with arbitrary body returning *CreateMockFileResp

func (*ClientWithResponses) CreateMockRawWithBodyWithResponse

func (c *ClientWithResponses) CreateMockRawWithBodyWithResponse(ctx context.Context, params *CreateMockRawParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMockRawResp, error)

CreateMockRawWithBodyWithResponse request with arbitrary body returning *CreateMockRawResp

func (*ClientWithResponses) CreateMockRawWithResponse

func (c *ClientWithResponses) CreateMockRawWithResponse(ctx context.Context, params *CreateMockRawParams, body CreateMockRawJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMockRawResp, error)

func (*ClientWithResponses) CreateServiceTokenWithBodyWithResponse added in v0.1.6

func (c *ClientWithResponses) CreateServiceTokenWithBodyWithResponse(ctx context.Context, serviceUserId ServiceUserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceTokenResp, error)

CreateServiceTokenWithBodyWithResponse request with arbitrary body returning *CreateServiceTokenResp

func (*ClientWithResponses) CreateServiceTokenWithResponse added in v0.1.6

func (c *ClientWithResponses) CreateServiceTokenWithResponse(ctx context.Context, serviceUserId ServiceUserId, body CreateServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceTokenResp, error)

func (*ClientWithResponses) CreateServiceUserWithBodyWithResponse added in v0.1.6

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

CreateServiceUserWithBodyWithResponse request with arbitrary body returning *CreateServiceUserResp

func (*ClientWithResponses) CreateServiceUserWithResponse added in v0.1.6

func (c *ClientWithResponses) CreateServiceUserWithResponse(ctx context.Context, body CreateServiceUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceUserResp, error)

func (*ClientWithResponses) CreateTemplateFileWithBodyWithResponse added in v0.1.6

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

CreateTemplateFileWithBodyWithResponse request with arbitrary body returning *CreateTemplateFileResp

func (*ClientWithResponses) CreateTemplateWithBodyWithResponse added in v0.1.6

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

CreateTemplateWithBodyWithResponse request with arbitrary body returning *CreateTemplateResp

func (*ClientWithResponses) CreateTemplateWithResponse added in v0.1.6

func (c *ClientWithResponses) CreateTemplateWithResponse(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResp, error)

func (*ClientWithResponses) DeleteMockWithResponse

func (c *ClientWithResponses) DeleteMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*DeleteMockResp, error)

DeleteMockWithResponse request returning *DeleteMockResp

func (*ClientWithResponses) DeleteTemplateWithResponse added in v0.1.6

func (c *ClientWithResponses) DeleteTemplateWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*DeleteTemplateResp, error)

DeleteTemplateWithResponse request returning *DeleteTemplateResp

func (*ClientWithResponses) DownloadTemplateHarWithResponse added in v0.1.6

func (c *ClientWithResponses) DownloadTemplateHarWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*DownloadTemplateHarResp, error)

DownloadTemplateHarWithResponse request returning *DownloadTemplateHarResp

func (*ClientWithResponses) GetMockStatsWithResponse

func (c *ClientWithResponses) GetMockStatsWithResponse(ctx context.Context, mockId MockId, params *GetMockStatsParams, reqEditors ...RequestEditorFn) (*GetMockStatsResp, error)

GetMockStatsWithResponse request returning *GetMockStatsResp

func (*ClientWithResponses) GetMockWithResponse

func (c *ClientWithResponses) GetMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*GetMockResp, error)

GetMockWithResponse request returning *GetMockResp

func (*ClientWithResponses) GetTemplateDocsWithResponse added in v0.1.6

func (c *ClientWithResponses) GetTemplateDocsWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*GetTemplateDocsResp, error)

GetTemplateDocsWithResponse request returning *GetTemplateDocsResp

func (*ClientWithResponses) GetTemplateOpenAPIWithResponse added in v0.1.6

func (c *ClientWithResponses) GetTemplateOpenAPIWithResponse(ctx context.Context, templateId TemplateId, params *GetTemplateOpenAPIParams, reqEditors ...RequestEditorFn) (*GetTemplateOpenAPIResp, error)

GetTemplateOpenAPIWithResponse request returning *GetTemplateOpenAPIResp

func (*ClientWithResponses) GetTemplatePostmanWithResponse added in v0.1.6

func (c *ClientWithResponses) GetTemplatePostmanWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*GetTemplatePostmanResp, error)

GetTemplatePostmanWithResponse request returning *GetTemplatePostmanResp

func (*ClientWithResponses) GetTemplateRevisionOpenAPIWithResponse added in v0.1.6

func (c *ClientWithResponses) GetTemplateRevisionOpenAPIWithResponse(ctx context.Context, templateId TemplateId, version TemplateRevisionVersion, params *GetTemplateRevisionOpenAPIParams, reqEditors ...RequestEditorFn) (*GetTemplateRevisionOpenAPIResp, error)

GetTemplateRevisionOpenAPIWithResponse request returning *GetTemplateRevisionOpenAPIResp

func (*ClientWithResponses) GetTemplateWithResponse added in v0.1.6

func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*GetTemplateResp, error)

GetTemplateWithResponse request returning *GetTemplateResp

func (*ClientWithResponses) HealthCheckWithResponse

func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResp, error)

HealthCheckWithResponse request returning *HealthCheckResp

func (*ClientWithResponses) ListMocksWithResponse

func (c *ClientWithResponses) ListMocksWithResponse(ctx context.Context, params *ListMocksParams, reqEditors ...RequestEditorFn) (*ListMocksResp, error)

ListMocksWithResponse request returning *ListMocksResp

func (*ClientWithResponses) ListServiceTokensWithResponse added in v0.1.6

func (c *ClientWithResponses) ListServiceTokensWithResponse(ctx context.Context, serviceUserId ServiceUserId, params *ListServiceTokensParams, reqEditors ...RequestEditorFn) (*ListServiceTokensResp, error)

ListServiceTokensWithResponse request returning *ListServiceTokensResp

func (*ClientWithResponses) ListServiceUsersWithResponse added in v0.1.6

func (c *ClientWithResponses) ListServiceUsersWithResponse(ctx context.Context, params *ListServiceUsersParams, reqEditors ...RequestEditorFn) (*ListServiceUsersResp, error)

ListServiceUsersWithResponse request returning *ListServiceUsersResp

func (*ClientWithResponses) ListTemplateRevisionsWithResponse added in v0.1.6

func (c *ClientWithResponses) ListTemplateRevisionsWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*ListTemplateRevisionsResp, error)

ListTemplateRevisionsWithResponse request returning *ListTemplateRevisionsResp

func (*ClientWithResponses) ListTemplatesWithResponse added in v0.1.6

func (c *ClientWithResponses) ListTemplatesWithResponse(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*ListTemplatesResp, error)

ListTemplatesWithResponse request returning *ListTemplatesResp

func (*ClientWithResponses) RestartMockWithResponse

func (c *ClientWithResponses) RestartMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*RestartMockResp, error)

RestartMockWithResponse request returning *RestartMockResp

func (*ClientWithResponses) RevokeServiceTokenWithResponse added in v0.1.6

func (c *ClientWithResponses) RevokeServiceTokenWithResponse(ctx context.Context, serviceUserId ServiceUserId, tokenId ServiceTokenId, reqEditors ...RequestEditorFn) (*RevokeServiceTokenResp, error)

RevokeServiceTokenWithResponse request returning *RevokeServiceTokenResp

func (*ClientWithResponses) SpawnMockFromTemplateWithBodyWithResponse added in v0.1.6

func (c *ClientWithResponses) SpawnMockFromTemplateWithBodyWithResponse(ctx context.Context, templateId TemplateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SpawnMockFromTemplateResp, error)

SpawnMockFromTemplateWithBodyWithResponse request with arbitrary body returning *SpawnMockFromTemplateResp

func (*ClientWithResponses) SpawnMockFromTemplateWithResponse added in v0.1.6

func (c *ClientWithResponses) SpawnMockFromTemplateWithResponse(ctx context.Context, templateId TemplateId, body SpawnMockFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*SpawnMockFromTemplateResp, error)

func (*ClientWithResponses) UpdateTemplateWithBodyWithResponse added in v0.1.6

func (c *ClientWithResponses) UpdateTemplateWithBodyWithResponse(ctx context.Context, templateId TemplateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResp, error)

UpdateTemplateWithBodyWithResponse request with arbitrary body returning *UpdateTemplateResp

func (*ClientWithResponses) UpdateTemplateWithResponse added in v0.1.6

func (c *ClientWithResponses) UpdateTemplateWithResponse(ctx context.Context, templateId TemplateId, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResp, error)

func (*ClientWithResponses) UploadTemplateRevisionFileWithBodyWithResponse added in v0.1.6

func (c *ClientWithResponses) UploadTemplateRevisionFileWithBodyWithResponse(ctx context.Context, templateId TemplateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadTemplateRevisionFileResp, error)

UploadTemplateRevisionFileWithBodyWithResponse request with arbitrary body returning *UploadTemplateRevisionFileResp

func (*ClientWithResponses) UploadTemplateRevisionWithBodyWithResponse added in v0.1.6

func (c *ClientWithResponses) UploadTemplateRevisionWithBodyWithResponse(ctx context.Context, templateId TemplateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadTemplateRevisionResp, error)

UploadTemplateRevisionWithBodyWithResponse request with arbitrary body returning *UploadTemplateRevisionResp

func (*ClientWithResponses) UploadTemplateRevisionWithResponse added in v0.1.6

func (c *ClientWithResponses) UploadTemplateRevisionWithResponse(ctx context.Context, templateId TemplateId, body UploadTemplateRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadTemplateRevisionResp, error)

func (*ClientWithResponses) ValidateHarFileWithBodyWithResponse

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

ValidateHarFileWithBodyWithResponse request with arbitrary body returning *ValidateHarFileResp

func (*ClientWithResponses) ValidateHarRawWithBodyWithResponse

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

ValidateHarRawWithBodyWithResponse request with arbitrary body returning *ValidateHarRawResp

func (*ClientWithResponses) ValidateHarRawWithResponse

func (c *ClientWithResponses) ValidateHarRawWithResponse(ctx context.Context, body ValidateHarRawJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateHarRawResp, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// AuthCliGoogleExchangeWithBodyWithResponse request with any body
	AuthCliGoogleExchangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthCliGoogleExchangeResp, error)

	AuthCliGoogleExchangeWithResponse(ctx context.Context, body AuthCliGoogleExchangeJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthCliGoogleExchangeResp, error)

	// AuthCliGoogleStartWithResponse request
	AuthCliGoogleStartWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCliGoogleStartResp, error)

	// AuthGoogleWithResponse request
	AuthGoogleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthGoogleResp, error)

	// AuthGoogleCallbackWithResponse request
	AuthGoogleCallbackWithResponse(ctx context.Context, params *AuthGoogleCallbackParams, reqEditors ...RequestEditorFn) (*AuthGoogleCallbackResp, error)

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

	AuthLoginWithResponse(ctx context.Context, body AuthLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthLoginResp, error)

	// AuthMeWithResponse request
	AuthMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthMeResp, error)

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

	AuthRegisterWithResponse(ctx context.Context, body AuthRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegisterResp, error)

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

	AuthRegistrationCompleteWithResponse(ctx context.Context, body AuthRegistrationCompleteJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationCompleteResp, error)

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

	AuthRegistrationResendWithResponse(ctx context.Context, body AuthRegistrationResendJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationResendResp, error)

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

	AuthRegistrationStartWithResponse(ctx context.Context, body AuthRegistrationStartJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthRegistrationStartResp, error)

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

	ValidateHarRawWithResponse(ctx context.Context, body ValidateHarRawJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidateHarRawResp, error)

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

	// ListMocksWithResponse request
	ListMocksWithResponse(ctx context.Context, params *ListMocksParams, reqEditors ...RequestEditorFn) (*ListMocksResp, error)

	// CreateMockRawWithBodyWithResponse request with any body
	CreateMockRawWithBodyWithResponse(ctx context.Context, params *CreateMockRawParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMockRawResp, error)

	CreateMockRawWithResponse(ctx context.Context, params *CreateMockRawParams, body CreateMockRawJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMockRawResp, error)

	// CreateMockFileWithBodyWithResponse request with any body
	CreateMockFileWithBodyWithResponse(ctx context.Context, params *CreateMockFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMockFileResp, error)

	// DeleteMockWithResponse request
	DeleteMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*DeleteMockResp, error)

	// GetMockWithResponse request
	GetMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*GetMockResp, error)

	// RestartMockWithResponse request
	RestartMockWithResponse(ctx context.Context, mockId MockId, reqEditors ...RequestEditorFn) (*RestartMockResp, error)

	// GetMockStatsWithResponse request
	GetMockStatsWithResponse(ctx context.Context, mockId MockId, params *GetMockStatsParams, reqEditors ...RequestEditorFn) (*GetMockStatsResp, error)

	// ListServiceUsersWithResponse request
	ListServiceUsersWithResponse(ctx context.Context, params *ListServiceUsersParams, reqEditors ...RequestEditorFn) (*ListServiceUsersResp, error)

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

	CreateServiceUserWithResponse(ctx context.Context, body CreateServiceUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceUserResp, error)

	// ListServiceTokensWithResponse request
	ListServiceTokensWithResponse(ctx context.Context, serviceUserId ServiceUserId, params *ListServiceTokensParams, reqEditors ...RequestEditorFn) (*ListServiceTokensResp, error)

	// CreateServiceTokenWithBodyWithResponse request with any body
	CreateServiceTokenWithBodyWithResponse(ctx context.Context, serviceUserId ServiceUserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceTokenResp, error)

	CreateServiceTokenWithResponse(ctx context.Context, serviceUserId ServiceUserId, body CreateServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceTokenResp, error)

	// RevokeServiceTokenWithResponse request
	RevokeServiceTokenWithResponse(ctx context.Context, serviceUserId ServiceUserId, tokenId ServiceTokenId, reqEditors ...RequestEditorFn) (*RevokeServiceTokenResp, error)

	// ListTemplatesWithResponse request
	ListTemplatesWithResponse(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*ListTemplatesResp, error)

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

	CreateTemplateWithResponse(ctx context.Context, body CreateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTemplateResp, error)

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

	// DeleteTemplateWithResponse request
	DeleteTemplateWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*DeleteTemplateResp, error)

	// GetTemplateWithResponse request
	GetTemplateWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*GetTemplateResp, error)

	// UpdateTemplateWithBodyWithResponse request with any body
	UpdateTemplateWithBodyWithResponse(ctx context.Context, templateId TemplateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemplateResp, error)

	UpdateTemplateWithResponse(ctx context.Context, templateId TemplateId, body UpdateTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemplateResp, error)

	// GetTemplateDocsWithResponse request
	GetTemplateDocsWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*GetTemplateDocsResp, error)

	// DownloadTemplateHarWithResponse request
	DownloadTemplateHarWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*DownloadTemplateHarResp, error)

	// SpawnMockFromTemplateWithBodyWithResponse request with any body
	SpawnMockFromTemplateWithBodyWithResponse(ctx context.Context, templateId TemplateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SpawnMockFromTemplateResp, error)

	SpawnMockFromTemplateWithResponse(ctx context.Context, templateId TemplateId, body SpawnMockFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*SpawnMockFromTemplateResp, error)

	// GetTemplateOpenAPIWithResponse request
	GetTemplateOpenAPIWithResponse(ctx context.Context, templateId TemplateId, params *GetTemplateOpenAPIParams, reqEditors ...RequestEditorFn) (*GetTemplateOpenAPIResp, error)

	// GetTemplatePostmanWithResponse request
	GetTemplatePostmanWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*GetTemplatePostmanResp, error)

	// ListTemplateRevisionsWithResponse request
	ListTemplateRevisionsWithResponse(ctx context.Context, templateId TemplateId, reqEditors ...RequestEditorFn) (*ListTemplateRevisionsResp, error)

	// UploadTemplateRevisionWithBodyWithResponse request with any body
	UploadTemplateRevisionWithBodyWithResponse(ctx context.Context, templateId TemplateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadTemplateRevisionResp, error)

	UploadTemplateRevisionWithResponse(ctx context.Context, templateId TemplateId, body UploadTemplateRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadTemplateRevisionResp, error)

	// UploadTemplateRevisionFileWithBodyWithResponse request with any body
	UploadTemplateRevisionFileWithBodyWithResponse(ctx context.Context, templateId TemplateId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadTemplateRevisionFileResp, error)

	// GetTemplateRevisionOpenAPIWithResponse request
	GetTemplateRevisionOpenAPIWithResponse(ctx context.Context, templateId TemplateId, version TemplateRevisionVersion, params *GetTemplateRevisionOpenAPIParams, reqEditors ...RequestEditorFn) (*GetTemplateRevisionOpenAPIResp, error)

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

	CreateManagementUserWithResponse(ctx context.Context, body CreateManagementUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateManagementUserResp, error)

	// HealthCheckWithResponse request
	HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResp, error)
}

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

type Conflict

type Conflict = ErrorResponse

Conflict Standard API error envelope.

type CreateManagementUserJSONBody

type CreateManagementUserJSONBody struct {
	// DisplayName Optional display name.
	DisplayName *string `json:"display_name,omitempty"`

	// Email User email address.
	Email openapi_types.Email `json:"email"`
}

CreateManagementUserJSONBody defines parameters for CreateManagementUser.

type CreateManagementUserJSONRequestBody

type CreateManagementUserJSONRequestBody CreateManagementUserJSONBody

CreateManagementUserJSONRequestBody defines body for CreateManagementUser for application/json ContentType.

type CreateManagementUserResp

type CreateManagementUserResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ManagementUserResponse
	JSON409      *Conflict
	JSON500      *InternalError
}

func ParseCreateManagementUserResp

func ParseCreateManagementUserResp(rsp *http.Response) (*CreateManagementUserResp, error)

ParseCreateManagementUserResp parses an HTTP response from a CreateManagementUserWithResponse call

func (CreateManagementUserResp) Status

func (r CreateManagementUserResp) Status() string

Status returns HTTPResponse.Status

func (CreateManagementUserResp) StatusCode

func (r CreateManagementUserResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMockFileMultipartBody

type CreateMockFileMultipartBody struct {
	// File HAR file to normalize and persist.
	File openapi_types.File `json:"file"`

	// MatchingRules Optional per-entry request matching customization.
	MatchingRules *MatchingRules `json:"matching_rules,omitempty"`
}

CreateMockFileMultipartBody defines parameters for CreateMockFile.

type CreateMockFileMultipartRequestBody

type CreateMockFileMultipartRequestBody CreateMockFileMultipartBody

CreateMockFileMultipartRequestBody defines body for CreateMockFile for multipart/form-data ContentType.

type CreateMockFileParams

type CreateMockFileParams struct {
	// TtlSeconds Time-to-live in seconds before the mock expires.
	TtlSeconds TtlSeconds `form:"ttl_seconds" json:"ttl_seconds"`

	// SslEnabled Whether generated mock URLs should use HTTPS.
	SslEnabled *SslEnabled `form:"ssl_enabled,omitempty" json:"ssl_enabled,omitempty"`

	// LatencyEmulation Enable runtime latency emulation based on HAR `entry.time` values.
	LatencyEmulation *LatencyEmulation `form:"latency_emulation,omitempty" json:"latency_emulation,omitempty"`

	// ReplaceLinks Rewrite links in response headers and text bodies from original HAR origins to generated mock base URLs. In cross-domain mode, replacements are 1-1 by domain (`original_domain -> domain_map[i].base_url`) and are applied only when this flag is true.
	ReplaceLinks *ReplaceLinks `form:"replace_links,omitempty" json:"replace_links,omitempty"`

	// CrossDomainMainDomain Enable cross-domain mode and choose which HAR host becomes the parent mock.
	CrossDomainMainDomain *CrossDomainMainDomain `form:"cross_domain_main_domain,omitempty" json:"cross_domain_main_domain,omitempty"`
}

CreateMockFileParams defines parameters for CreateMockFile.

type CreateMockFileResp

type CreateMockFileResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CreateMockResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON409      *Conflict
	JSON413      *PayloadTooLarge
	JSON500      *InternalError
}

func ParseCreateMockFileResp

func ParseCreateMockFileResp(rsp *http.Response) (*CreateMockFileResp, error)

ParseCreateMockFileResp parses an HTTP response from a CreateMockFileWithResponse call

func (CreateMockFileResp) Status

func (r CreateMockFileResp) Status() string

Status returns HTTPResponse.Status

func (CreateMockFileResp) StatusCode

func (r CreateMockFileResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMockRawJSONBody

type CreateMockRawJSONBody struct {
	// contains filtered or unexported fields
}

CreateMockRawJSONBody defines parameters for CreateMockRaw.

type CreateMockRawJSONRequestBody

type CreateMockRawJSONRequestBody CreateMockRawJSONBody

CreateMockRawJSONRequestBody defines body for CreateMockRaw for application/json ContentType.

type CreateMockRawParams

type CreateMockRawParams struct {
	// TtlSeconds Time-to-live in seconds before the mock expires.
	TtlSeconds TtlSeconds `form:"ttl_seconds" json:"ttl_seconds"`

	// SslEnabled Whether generated mock URLs should use HTTPS.
	SslEnabled *SslEnabled `form:"ssl_enabled,omitempty" json:"ssl_enabled,omitempty"`

	// LatencyEmulation Enable runtime latency emulation based on HAR `entry.time` values.
	LatencyEmulation *LatencyEmulation `form:"latency_emulation,omitempty" json:"latency_emulation,omitempty"`

	// ReplaceLinks Rewrite links in response headers and text bodies from original HAR origins to generated mock base URLs. In cross-domain mode, replacements are 1-1 by domain (`original_domain -> domain_map[i].base_url`) and are applied only when this flag is true.
	ReplaceLinks *ReplaceLinks `form:"replace_links,omitempty" json:"replace_links,omitempty"`

	// CrossDomainMainDomain Enable cross-domain mode and choose which HAR host becomes the parent mock.
	CrossDomainMainDomain *CrossDomainMainDomain `form:"cross_domain_main_domain,omitempty" json:"cross_domain_main_domain,omitempty"`
}

CreateMockRawParams defines parameters for CreateMockRaw.

type CreateMockRawResp

type CreateMockRawResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CreateMockResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON409      *Conflict
	JSON413      *PayloadTooLarge
	JSON500      *InternalError
}

func ParseCreateMockRawResp

func ParseCreateMockRawResp(rsp *http.Response) (*CreateMockRawResp, error)

ParseCreateMockRawResp parses an HTTP response from a CreateMockRawWithResponse call

func (CreateMockRawResp) Status

func (r CreateMockRawResp) Status() string

Status returns HTTPResponse.Status

func (CreateMockRawResp) StatusCode

func (r CreateMockRawResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMockResponse

type CreateMockResponse struct {
	// BaseUrl Full URL where mock is accessible (for example https://abc123.mocklet.io).
	BaseUrl *string `json:"base_url,omitempty"`

	// DomainMap Per-domain mock mapping returned in cross-domain mode.
	DomainMap *[]DomainMockInfo `json:"domain_map,omitempty"`

	// ExpiresAt RFC3339 UTC timestamp when the mock automatically expires.
	ExpiresAt *time.Time `json:"expires_at,omitempty"`

	// HarSizeBytes Size of the normalized HAR data in bytes.
	HarSizeBytes *int `json:"har_size_bytes,omitempty"`

	// LatencyEmulation Whether runtime latency emulation is enabled for this mock.
	LatencyEmulation *bool `json:"latency_emulation,omitempty"`

	// MockId Unique identifier for the mock, used as subdomain.
	MockId *string `json:"mock_id,omitempty"`

	// SslEnabled Whether HTTPS is enabled for generated mock URL.
	SslEnabled *bool `json:"ssl_enabled,omitempty"`

	// TtlSeconds Time-to-live in seconds before the mock expires.
	TtlSeconds *int `json:"ttl_seconds,omitempty"`
}

CreateMockResponse Response returned after creating a mock.

type CreateMockWrapped

type CreateMockWrapped struct {
	// Har HAR payload as defined by the HTTP Archive format.
	Har *HarDocument `json:"har,omitempty"`

	// MatchingRules Optional per-entry request matching customization.
	MatchingRules *MatchingRules `json:"matching_rules,omitempty"`
}

CreateMockWrapped Wrapper payload that combines HAR data with matching rules.

type CreateServiceTokenJSONRequestBody added in v0.1.6

type CreateServiceTokenJSONRequestBody = ServiceTokenCreateRequest

CreateServiceTokenJSONRequestBody defines body for CreateServiceToken for application/json ContentType.

type CreateServiceTokenResp added in v0.1.6

type CreateServiceTokenResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ServiceTokenCreateResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON409      *Conflict
	JSON500      *InternalError
}

func ParseCreateServiceTokenResp added in v0.1.6

func ParseCreateServiceTokenResp(rsp *http.Response) (*CreateServiceTokenResp, error)

ParseCreateServiceTokenResp parses an HTTP response from a CreateServiceTokenWithResponse call

func (CreateServiceTokenResp) Status added in v0.1.6

func (r CreateServiceTokenResp) Status() string

Status returns HTTPResponse.Status

func (CreateServiceTokenResp) StatusCode added in v0.1.6

func (r CreateServiceTokenResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateServiceUserJSONRequestBody added in v0.1.6

type CreateServiceUserJSONRequestBody = ServiceUserCreateRequest

CreateServiceUserJSONRequestBody defines body for CreateServiceUser for application/json ContentType.

type CreateServiceUserResp added in v0.1.6

type CreateServiceUserResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *ServiceUserResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON409      *Conflict
	JSON500      *InternalError
}

func ParseCreateServiceUserResp added in v0.1.6

func ParseCreateServiceUserResp(rsp *http.Response) (*CreateServiceUserResp, error)

ParseCreateServiceUserResp parses an HTTP response from a CreateServiceUserWithResponse call

func (CreateServiceUserResp) Status added in v0.1.6

func (r CreateServiceUserResp) Status() string

Status returns HTTPResponse.Status

func (CreateServiceUserResp) StatusCode added in v0.1.6

func (r CreateServiceUserResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTemplateFileMultipartBody added in v0.1.6

type CreateTemplateFileMultipartBody struct {
	DefaultLatencyEmulation *bool              `json:"default_latency_emulation,omitempty"`
	DefaultSslEnabled       *bool              `json:"default_ssl_enabled,omitempty"`
	DefaultTtlSeconds       *int               `json:"default_ttl_seconds,omitempty"`
	Description             *string            `json:"description,omitempty"`
	File                    openapi_types.File `json:"file"`
	Name                    string             `json:"name"`
}

CreateTemplateFileMultipartBody defines parameters for CreateTemplateFile.

type CreateTemplateFileMultipartRequestBody added in v0.1.6

type CreateTemplateFileMultipartRequestBody CreateTemplateFileMultipartBody

CreateTemplateFileMultipartRequestBody defines body for CreateTemplateFile for multipart/form-data ContentType.

type CreateTemplateFileResp added in v0.1.6

type CreateTemplateFileResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Template
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON500      *InternalError
}

func ParseCreateTemplateFileResp added in v0.1.6

func ParseCreateTemplateFileResp(rsp *http.Response) (*CreateTemplateFileResp, error)

ParseCreateTemplateFileResp parses an HTTP response from a CreateTemplateFileWithResponse call

func (CreateTemplateFileResp) Status added in v0.1.6

func (r CreateTemplateFileResp) Status() string

Status returns HTTPResponse.Status

func (CreateTemplateFileResp) StatusCode added in v0.1.6

func (r CreateTemplateFileResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTemplateJSONRequestBody added in v0.1.6

type CreateTemplateJSONRequestBody = TemplateCreateRequest

CreateTemplateJSONRequestBody defines body for CreateTemplate for application/json ContentType.

type CreateTemplateResp added in v0.1.6

type CreateTemplateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Template
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON500      *InternalError
}

func ParseCreateTemplateResp added in v0.1.6

func ParseCreateTemplateResp(rsp *http.Response) (*CreateTemplateResp, error)

ParseCreateTemplateResp parses an HTTP response from a CreateTemplateWithResponse call

func (CreateTemplateResp) Status added in v0.1.6

func (r CreateTemplateResp) Status() string

Status returns HTTPResponse.Status

func (CreateTemplateResp) StatusCode added in v0.1.6

func (r CreateTemplateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CrossDomainMainDomain

type CrossDomainMainDomain = string

CrossDomainMainDomain defines model for CrossDomainMainDomain.

type DeleteMockResp

type DeleteMockResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseDeleteMockResp

func ParseDeleteMockResp(rsp *http.Response) (*DeleteMockResp, error)

ParseDeleteMockResp parses an HTTP response from a DeleteMockWithResponse call

func (DeleteMockResp) Status

func (r DeleteMockResp) Status() string

Status returns HTTPResponse.Status

func (DeleteMockResp) StatusCode

func (r DeleteMockResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTemplateResp added in v0.1.6

type DeleteTemplateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseDeleteTemplateResp added in v0.1.6

func ParseDeleteTemplateResp(rsp *http.Response) (*DeleteTemplateResp, error)

ParseDeleteTemplateResp parses an HTTP response from a DeleteTemplateWithResponse call

func (DeleteTemplateResp) Status added in v0.1.6

func (r DeleteTemplateResp) Status() string

Status returns HTTPResponse.Status

func (DeleteTemplateResp) StatusCode added in v0.1.6

func (r DeleteTemplateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DomainMockInfo

type DomainMockInfo struct {
	// BaseUrl Full URL where this domain-specific mock is accessible.
	BaseUrl string `json:"base_url"`

	// IsMain True for the parent domain selected by cross_domain_main_domain.
	IsMain bool `json:"is_main"`

	// MockId Mock identifier assigned to this domain.
	MockId string `json:"mock_id"`

	// OriginalDomain Original domain (origin) extracted from HAR, for example https://api.example.com.
	OriginalDomain string `json:"original_domain"`
}

DomainMockInfo Describes one mock created from one domain in cross-domain mode.

type DownloadTemplateHarResp added in v0.1.6

type DownloadTemplateHarResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HarDocument
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseDownloadTemplateHarResp added in v0.1.6

func ParseDownloadTemplateHarResp(rsp *http.Response) (*DownloadTemplateHarResp, error)

ParseDownloadTemplateHarResp parses an HTTP response from a DownloadTemplateHarWithResponse call

func (DownloadTemplateHarResp) Status added in v0.1.6

func (r DownloadTemplateHarResp) Status() string

Status returns HTTPResponse.Status

func (DownloadTemplateHarResp) StatusCode added in v0.1.6

func (r DownloadTemplateHarResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EndpointKey

type EndpointKey struct {
	// CanonicalQuery Canonicalized query-string used for matching.
	CanonicalQuery *string `json:"canonical_query,omitempty"`

	// Method HTTP method.
	Method *string `json:"method,omitempty"`

	// Path URL path.
	Path *string `json:"path,omitempty"`
}

EndpointKey Normalized endpoint identity.

type EndpointStats

type EndpointStats struct {
	// AvgLatencyMs Average response latency in milliseconds.
	AvgLatencyMs *float32 `json:"avg_latency_ms,omitempty"`

	// Hits Number of matched requests for this endpoint.
	Hits *int `json:"hits,omitempty"`

	// Key Normalized endpoint identity.
	Key *EndpointKey `json:"key,omitempty"`

	// LastSeenAt RFC3339 UTC timestamp of the last request for this endpoint.
	LastSeenAt *time.Time `json:"last_seen_at,omitempty"`

	// Misses Number of unmatched requests for this endpoint.
	Misses *int `json:"misses,omitempty"`

	// RequestKeyHash SHA256 hash identifying a unique request pattern.
	RequestKeyHash *string `json:"request_key_hash,omitempty"`

	// ResponsesCount Number of response variants available for this endpoint.
	ResponsesCount *int `json:"responses_count,omitempty"`

	// SequenceCompletedTotal Number of completed response sequence cycles.
	SequenceCompletedTotal *int `json:"sequence_completed_total,omitempty"`
}

EndpointStats Runtime statistics for a single endpoint signature.

type ErrorResponse

type ErrorResponse struct {
	// Code Machine-readable error code.
	Code string `json:"code"`

	// Details Optional path-level validation details.
	Details *[]struct {
		// Issue Description of the validation issue.
		Issue *string `json:"issue,omitempty"`

		// Path JSON path or field path where validation failed.
		Path *string `json:"path,omitempty"`
	} `json:"details,omitempty"`

	// Message Human-readable error message.
	Message string `json:"message"`
}

ErrorResponse Standard API error envelope.

type Forbidden

type Forbidden = ErrorResponse

Forbidden Standard API error envelope.

type GetMockResp

type GetMockResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MockSummary
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseGetMockResp

func ParseGetMockResp(rsp *http.Response) (*GetMockResp, error)

ParseGetMockResp parses an HTTP response from a GetMockWithResponse call

func (GetMockResp) Status

func (r GetMockResp) Status() string

Status returns HTTPResponse.Status

func (GetMockResp) StatusCode

func (r GetMockResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMockStatsParams

type GetMockStatsParams struct {
	// HistoryLimit Maximum number of recent request history entries to return.
	HistoryLimit *int `form:"history_limit,omitempty" json:"history_limit,omitempty"`
}

GetMockStatsParams defines parameters for GetMockStats.

type GetMockStatsResp

type GetMockStatsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MockStatsResponse
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseGetMockStatsResp

func ParseGetMockStatsResp(rsp *http.Response) (*GetMockStatsResp, error)

ParseGetMockStatsResp parses an HTTP response from a GetMockStatsWithResponse call

func (GetMockStatsResp) Status

func (r GetMockStatsResp) Status() string

Status returns HTTPResponse.Status

func (GetMockStatsResp) StatusCode

func (r GetMockStatsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTemplateDocsResp added in v0.1.6

type GetTemplateDocsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *ErrorResponse
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseGetTemplateDocsResp added in v0.1.6

func ParseGetTemplateDocsResp(rsp *http.Response) (*GetTemplateDocsResp, error)

ParseGetTemplateDocsResp parses an HTTP response from a GetTemplateDocsWithResponse call

func (GetTemplateDocsResp) Status added in v0.1.6

func (r GetTemplateDocsResp) Status() string

Status returns HTTPResponse.Status

func (GetTemplateDocsResp) StatusCode added in v0.1.6

func (r GetTemplateDocsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTemplateOpenAPIParams added in v0.1.6

type GetTemplateOpenAPIParams struct {
	// Format Preferred template spec format. Use `json` for JSON; omit or pass any other value for YAML.
	Format *OpenAPIFormat `form:"format,omitempty" json:"format,omitempty"`
}

GetTemplateOpenAPIParams defines parameters for GetTemplateOpenAPI.

type GetTemplateOpenAPIResp added in v0.1.6

type GetTemplateOpenAPIResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	YAML200      *string
	JSON401      *ErrorResponse
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseGetTemplateOpenAPIResp added in v0.1.6

func ParseGetTemplateOpenAPIResp(rsp *http.Response) (*GetTemplateOpenAPIResp, error)

ParseGetTemplateOpenAPIResp parses an HTTP response from a GetTemplateOpenAPIWithResponse call

func (GetTemplateOpenAPIResp) Status added in v0.1.6

func (r GetTemplateOpenAPIResp) Status() string

Status returns HTTPResponse.Status

func (GetTemplateOpenAPIResp) StatusCode added in v0.1.6

func (r GetTemplateOpenAPIResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTemplatePostmanResp added in v0.1.6

type GetTemplatePostmanResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON401      *ErrorResponse
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseGetTemplatePostmanResp added in v0.1.6

func ParseGetTemplatePostmanResp(rsp *http.Response) (*GetTemplatePostmanResp, error)

ParseGetTemplatePostmanResp parses an HTTP response from a GetTemplatePostmanWithResponse call

func (GetTemplatePostmanResp) Status added in v0.1.6

func (r GetTemplatePostmanResp) Status() string

Status returns HTTPResponse.Status

func (GetTemplatePostmanResp) StatusCode added in v0.1.6

func (r GetTemplatePostmanResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTemplateResp added in v0.1.6

type GetTemplateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Template
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseGetTemplateResp added in v0.1.6

func ParseGetTemplateResp(rsp *http.Response) (*GetTemplateResp, error)

ParseGetTemplateResp parses an HTTP response from a GetTemplateWithResponse call

func (GetTemplateResp) Status added in v0.1.6

func (r GetTemplateResp) Status() string

Status returns HTTPResponse.Status

func (GetTemplateResp) StatusCode added in v0.1.6

func (r GetTemplateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTemplateRevisionOpenAPIParams added in v0.1.6

type GetTemplateRevisionOpenAPIParams struct {
	// Format Preferred template spec format. Use `json` for JSON; omit or pass any other value for YAML.
	Format *OpenAPIFormat `form:"format,omitempty" json:"format,omitempty"`
}

GetTemplateRevisionOpenAPIParams defines parameters for GetTemplateRevisionOpenAPI.

type GetTemplateRevisionOpenAPIResp added in v0.1.6

type GetTemplateRevisionOpenAPIResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	YAML200      *string
	JSON400      *BadRequest
	JSON401      *ErrorResponse
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseGetTemplateRevisionOpenAPIResp added in v0.1.6

func ParseGetTemplateRevisionOpenAPIResp(rsp *http.Response) (*GetTemplateRevisionOpenAPIResp, error)

ParseGetTemplateRevisionOpenAPIResp parses an HTTP response from a GetTemplateRevisionOpenAPIWithResponse call

func (GetTemplateRevisionOpenAPIResp) Status added in v0.1.6

Status returns HTTPResponse.Status

func (GetTemplateRevisionOpenAPIResp) StatusCode added in v0.1.6

func (r GetTemplateRevisionOpenAPIResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HarDocument

type HarDocument struct {
	// Log Root HAR log object.
	Log *struct {
		// Creator HAR producer metadata.
		Creator map[string]interface{} `json:"creator"`

		// Entries Recorded request/response entries.
		Entries []map[string]interface{} `json:"entries"`

		// Version HAR version string.
		Version string `json:"version"`
	} `json:"log,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

HarDocument HAR payload as defined by the HTTP Archive format.

func (HarDocument) Get

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

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

func (HarDocument) MarshalJSON

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

Override default JSON handling for HarDocument to handle AdditionalProperties

func (*HarDocument) Set

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

Setter for additional properties for HarDocument

func (*HarDocument) UnmarshalJSON

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

Override default JSON handling for HarDocument to handle AdditionalProperties

type HarEntryValidation

type HarEntryValidation struct {
	// IsValid Whether this entry is accepted.
	IsValid *bool `json:"is_valid,omitempty"`

	// MatchingParameters Request fields participating in matching.
	MatchingParameters *MatchingParameters `json:"matching_parameters,omitempty"`

	// Method HTTP method extracted from the HAR entry.
	Method *string `json:"method,omitempty"`

	// Path URL path extracted from the HAR entry.
	Path *string `json:"path,omitempty"`

	// Warnings Warnings related to this specific entry.
	Warnings *[]string `json:"warnings,omitempty"`
}

HarEntryValidation Validation result for a single HAR entry.

type HarValidationResult

type HarValidationResult struct {
	// EndpointsTotal Number of normalized endpoint groups.
	EndpointsTotal *int `json:"endpoints_total,omitempty"`

	// Entries Per-entry validation results.
	Entries *[]HarEntryValidation `json:"entries,omitempty"`

	// EntriesAccepted Number of entries accepted for mock generation.
	EntriesAccepted *int `json:"entries_accepted,omitempty"`

	// EntriesTotal Total number of HAR entries parsed.
	EntriesTotal *int `json:"entries_total,omitempty"`

	// EstimatedNormalizedBytes Estimated size of normalized HAR data in bytes.
	EstimatedNormalizedBytes *int `json:"estimated_normalized_bytes,omitempty"`

	// IsValid Whether HAR input passed validation checks.
	IsValid *bool `json:"is_valid,omitempty"`

	// MatchingParameters Request fields participating in matching.
	MatchingParameters *MatchingParameters `json:"matching_parameters,omitempty"`

	// Warnings File-level validation warnings not specific to any single entry (e.g. self-mock filtering, empty entries after filtering).
	Warnings *[]string `json:"warnings,omitempty"`
}

HarValidationResult Validation summary produced from a HAR payload.

type HealthCheckResp

type HealthCheckResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Status Overall service health state.
		Status *string `json:"status,omitempty"`
	}
	JSON503 *struct {
		// Reason Human-readable explanation for degraded state.
		Reason *string `json:"reason,omitempty"`

		// Status Overall service health state.
		Status *string `json:"status,omitempty"`
	}
}

func ParseHealthCheckResp

func ParseHealthCheckResp(rsp *http.Response) (*HealthCheckResp, error)

ParseHealthCheckResp parses an HTTP response from a HealthCheckWithResponse call

func (HealthCheckResp) Status

func (r HealthCheckResp) Status() string

Status returns HTTPResponse.Status

func (HealthCheckResp) StatusCode

func (r HealthCheckResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HistoryItem

type HistoryItem struct {
	// LatencyMs Measured response latency in milliseconds.
	LatencyMs *float32 `json:"latency_ms,omitempty"`

	// Matched Whether request matched a stored response.
	Matched *bool `json:"matched,omitempty"`

	// Method HTTP method of the runtime request.
	Method *string `json:"method,omitempty"`

	// OccurredAt RFC3339 UTC timestamp when the runtime request occurred.
	OccurredAt *time.Time `json:"occurred_at,omitempty"`

	// Path URL path of the runtime request.
	Path *string `json:"path,omitempty"`

	// RequestKeyHash SHA256 hash identifying a unique request pattern.
	RequestKeyHash *string `json:"request_key_hash,omitempty"`

	// SeqIndex Current sequence index in round-robin response rotation.
	SeqIndex *int `json:"seq_index,omitempty"`

	// UnmatchedReason Aggregated reason for unmatched runtime requests.
	UnmatchedReason *UnmatchedReason `json:"unmatched_reason,omitempty"`
}

HistoryItem Single runtime request outcome in chronological history.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InternalError

type InternalError = ErrorResponse

InternalError Standard API error envelope.

type LatencyEmulation

type LatencyEmulation = bool

LatencyEmulation defines model for LatencyEmulation.

type ListMocksParams

type ListMocksParams struct {
	// Limit Maximum number of mocks to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque cursor returned by a previous `next_cursor` value.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListMocksParams defines parameters for ListMocks.

type ListMocksResp

type ListMocksResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListMocksResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON500      *InternalError
}

func ParseListMocksResp

func ParseListMocksResp(rsp *http.Response) (*ListMocksResp, error)

ParseListMocksResp parses an HTTP response from a ListMocksWithResponse call

func (ListMocksResp) Status

func (r ListMocksResp) Status() string

Status returns HTTPResponse.Status

func (ListMocksResp) StatusCode

func (r ListMocksResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMocksResponse

type ListMocksResponse struct {
	// Items Returned mock summaries.
	Items *[]MockSummary `json:"items,omitempty"`

	// NextCursor Opaque cursor for fetching the next page. Omitted when there are no more results.
	NextCursor *string `json:"next_cursor,omitempty"`

	// Totals Aggregate usage counters for a user account.
	Totals *UserTotals `json:"totals,omitempty"`
}

ListMocksResponse Paginated list of mocks with aggregate user totals.

type ListServiceTokensParams added in v0.1.6

type ListServiceTokensParams struct {
	// Limit Maximum number of service tokens to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListServiceTokensParams defines parameters for ListServiceTokens.

type ListServiceTokensResp added in v0.1.6

type ListServiceTokensResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListServiceTokensResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseListServiceTokensResp added in v0.1.6

func ParseListServiceTokensResp(rsp *http.Response) (*ListServiceTokensResp, error)

ParseListServiceTokensResp parses an HTTP response from a ListServiceTokensWithResponse call

func (ListServiceTokensResp) Status added in v0.1.6

func (r ListServiceTokensResp) Status() string

Status returns HTTPResponse.Status

func (ListServiceTokensResp) StatusCode added in v0.1.6

func (r ListServiceTokensResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListServiceTokensResponse added in v0.1.6

type ListServiceTokensResponse struct {
	Items *[]ServiceTokenResponse `json:"items,omitempty"`
}

ListServiceTokensResponse List of service tokens for a service user.

type ListServiceUsersParams added in v0.1.6

type ListServiceUsersParams struct {
	// Limit Maximum number of service users to return.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListServiceUsersParams defines parameters for ListServiceUsers.

type ListServiceUsersResp added in v0.1.6

type ListServiceUsersResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListServiceUsersResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON500      *InternalError
}

func ParseListServiceUsersResp added in v0.1.6

func ParseListServiceUsersResp(rsp *http.Response) (*ListServiceUsersResp, error)

ParseListServiceUsersResp parses an HTTP response from a ListServiceUsersWithResponse call

func (ListServiceUsersResp) Status added in v0.1.6

func (r ListServiceUsersResp) Status() string

Status returns HTTPResponse.Status

func (ListServiceUsersResp) StatusCode added in v0.1.6

func (r ListServiceUsersResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListServiceUsersResponse added in v0.1.6

type ListServiceUsersResponse struct {
	Items *[]ServiceUserResponse `json:"items,omitempty"`
}

ListServiceUsersResponse List of service users owned by the authenticated account.

type ListTemplateRevisionsResp added in v0.1.6

type ListTemplateRevisionsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TemplateRevisionListResponse
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseListTemplateRevisionsResp added in v0.1.6

func ParseListTemplateRevisionsResp(rsp *http.Response) (*ListTemplateRevisionsResp, error)

ParseListTemplateRevisionsResp parses an HTTP response from a ListTemplateRevisionsWithResponse call

func (ListTemplateRevisionsResp) Status added in v0.1.6

func (r ListTemplateRevisionsResp) Status() string

Status returns HTTPResponse.Status

func (ListTemplateRevisionsResp) StatusCode added in v0.1.6

func (r ListTemplateRevisionsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTemplatesParams added in v0.1.6

type ListTemplatesParams struct {
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListTemplatesParams defines parameters for ListTemplates.

type ListTemplatesResp added in v0.1.6

type ListTemplatesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TemplateListResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON500      *InternalError
}

func ParseListTemplatesResp added in v0.1.6

func ParseListTemplatesResp(rsp *http.Response) (*ListTemplatesResp, error)

ParseListTemplatesResp parses an HTTP response from a ListTemplatesWithResponse call

func (ListTemplatesResp) Status added in v0.1.6

func (r ListTemplatesResp) Status() string

Status returns HTTPResponse.Status

func (ListTemplatesResp) StatusCode added in v0.1.6

func (r ListTemplatesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginRequest

type LoginRequest struct {
	// Email Email address of the account.
	Email openapi_types.Email `json:"email"`

	// Password Account password.
	Password string `json:"password"`
}

LoginRequest Email/password credentials used for authentication.

type LoginResponse

type LoginResponse struct {
	// Email Authenticated email address.
	Email *string `json:"email,omitempty"`

	// ExpiresAt Unix timestamp in seconds (UTC) when the token expires (intentionally not RFC3339).
	ExpiresAt *int64 `json:"expires_at,omitempty"`

	// Token JWT bearer token used for authenticated requests.
	Token *string `json:"token,omitempty"`

	// UserId Internal numeric user identifier.
	UserId *int `json:"user_id,omitempty"`
}

LoginResponse Authentication result containing JWT and user identity data.

type ManagementUserResponse

type ManagementUserResponse struct {
	// CreatedAt User creation timestamp in RFC3339 UTC format.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// DisplayName Optional display name.
	DisplayName *string `json:"display_name,omitempty"`

	// Email User email address.
	Email *string `json:"email,omitempty"`

	// UserId Internal numeric user identifier.
	UserId *int `json:"user_id,omitempty"`
}

ManagementUserResponse Internal user synchronization response used by Auth Service.

type MatchingParameters

type MatchingParameters struct {
	// BodyParameters JSON body field names used in matching.
	BodyParameters *[]string `json:"body_parameters,omitempty"`

	// Headers Header names used for matching.
	Headers *[]string `json:"headers,omitempty"`

	// MultipartParameters Multipart field names used in matching.
	MultipartParameters *[]string `json:"multipart_parameters,omitempty"`

	// QueryParameters Query parameter names used in matching.
	QueryParameters *[]string `json:"query_parameters,omitempty"`
}

MatchingParameters Request fields participating in matching.

type MatchingRules

type MatchingRules struct {
	// Ignore Map of HAR entry index (integer) to ignore rules.
	Ignore *map[string]MatchingParameters `json:"ignore,omitempty"`
}

MatchingRules Optional per-entry request matching customization.

type MeResponse

type MeResponse struct {
	// Email User email address.
	Email *string `json:"email,omitempty"`

	// UserId Internal numeric user identifier.
	UserId *int `json:"user_id,omitempty"`
}

MeResponse Authenticated user profile summary.

type MockId

type MockId = string

MockId defines model for MockId.

type MockStatsResponse

type MockStatsResponse struct {
	// Endpoints Per-endpoint runtime statistics.
	Endpoints *[]EndpointStats `json:"endpoints,omitempty"`

	// History Most recent runtime request history entries.
	History *[]HistoryItem `json:"history,omitempty"`

	// Mock Summary details for a single mock.
	Mock *MockSummary `json:"mock,omitempty"`

	// UnmatchedTop Top unmatched reasons ordered by frequency.
	UnmatchedTop *[]UnmatchedReason `json:"unmatched_top,omitempty"`
}

MockStatsResponse Full statistics payload for one mock.

type MockSummary

type MockSummary struct {
	// BaseUrl Full URL where mock is accessible (for example https://abc123.mocklet.io).
	BaseUrl *string `json:"base_url,omitempty"`

	// CreatedAt RFC3339 UTC timestamp when the mock was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// ExpiresAt RFC3339 UTC timestamp when the mock expires.
	ExpiresAt *time.Time `json:"expires_at,omitempty"`

	// HarSizeBytes Size of the normalized HAR data in bytes.
	HarSizeBytes *int `json:"har_size_bytes,omitempty"`

	// LastSeenAt RFC3339 UTC timestamp of the most recent runtime request.
	LastSeenAt *time.Time `json:"last_seen_at,omitempty"`

	// LatencyEmulation Whether runtime latency emulation is enabled for this mock.
	LatencyEmulation *bool `json:"latency_emulation,omitempty"`

	// MockId Unique identifier for the mock, used as subdomain.
	MockId *string `json:"mock_id,omitempty"`

	// ParentMockId Parent mock identifier for child mocks in cross-domain mode.
	ParentMockId *string `json:"parent_mock_id,omitempty"`

	// RequestsHit Number of runtime requests that matched a response.
	RequestsHit *int `json:"requests_hit,omitempty"`

	// RequestsMiss Number of runtime requests that missed matching.
	RequestsMiss *int `json:"requests_miss,omitempty"`

	// RequestsTotal Total number of runtime requests received.
	RequestsTotal *int `json:"requests_total,omitempty"`

	// SslEnabled Whether HTTPS is enabled for generated mock URL.
	SslEnabled *bool `json:"ssl_enabled,omitempty"`

	// Status Current lifecycle status of the mock.
	Status *string `json:"status,omitempty"`

	// TtlSeconds Time-to-live in seconds before the mock expires.
	TtlSeconds *int `json:"ttl_seconds,omitempty"`
}

MockSummary Summary details for a single mock.

type NotFound

type NotFound = ErrorResponse

NotFound Standard API error envelope.

type OpenAPIFormat added in v0.1.6

type OpenAPIFormat = string

OpenAPIFormat defines model for OpenAPIFormat.

type PayloadTooLarge

type PayloadTooLarge = ErrorResponse

PayloadTooLarge Standard API error envelope.

type RegisterRequest

type RegisterRequest struct {
	// DisplayName Optional display name shown in UI.
	DisplayName *string `json:"display_name,omitempty"`

	// Email Email address used as unique login identifier.
	Email openapi_types.Email `json:"email"`

	// Password Plaintext password that will be hashed server-side.
	Password string `json:"password"`
}

RegisterRequest Payload to register a new user account.

type RegistrationAcceptedResponse

type RegistrationAcceptedResponse struct {
	// ExpiresInSeconds Optional remaining token lifetime in seconds.
	ExpiresInSeconds *int `json:"expires_in_seconds,omitempty"`

	// ResendAvailableInSeconds Optional resend cooldown information.
	ResendAvailableInSeconds *int `json:"resend_available_in_seconds,omitempty"`

	// Status Operation status value for UI flows.
	Status *string `json:"status,omitempty"`

	// VerificationRequired Whether email confirmation is required.
	VerificationRequired *bool `json:"verification_required,omitempty"`
}

RegistrationAcceptedResponse Neutral accepted response for registration start/resend.

type RegistrationCompleteRequest

type RegistrationCompleteRequest struct {
	// Password Plaintext password that will be hashed server-side.
	Password string `json:"password"`

	// Token One-time opaque confirmation token from email link.
	Token string `json:"token"`
}

RegistrationCompleteRequest Payload to complete registration with token and password.

type RegistrationCompleteResponse

type RegistrationCompleteResponse struct {
	// Email Registered and verified email address.
	Email *string `json:"email,omitempty"`

	// UserId Internal numeric user identifier.
	UserId *int `json:"user_id,omitempty"`
}

RegistrationCompleteResponse Result returned after successful registration completion.

type RegistrationResendRequest

type RegistrationResendRequest struct {
	// Email Registration email address.
	Email openapi_types.Email `json:"email"`
}

RegistrationResendRequest Payload to request a registration confirmation resend.

type RegistrationStartRequest

type RegistrationStartRequest struct {
	// CaptchaToken Optional captcha token reserved for anti-bot checks.
	CaptchaToken *string `json:"captcha_token,omitempty"`

	// DisplayName Optional display name for the future account.
	DisplayName *string `json:"display_name,omitempty"`

	// Email Email address used for registration.
	Email openapi_types.Email `json:"email"`
}

RegistrationStartRequest Payload to start two-step email registration.

type ReplaceLinks = bool

ReplaceLinks defines model for ReplaceLinks.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RestartMockResp

type RestartMockResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// MockId Unique identifier of the restarted mock.
		MockId *string `json:"mock_id,omitempty"`

		// Status Result status of the restart operation.
		Status *string `json:"status,omitempty"`
	}
	JSON401 *Unauthorized
	JSON403 *Forbidden
	JSON404 *NotFound
	JSON500 *InternalError
}

func ParseRestartMockResp

func ParseRestartMockResp(rsp *http.Response) (*RestartMockResp, error)

ParseRestartMockResp parses an HTTP response from a RestartMockWithResponse call

func (RestartMockResp) Status

func (r RestartMockResp) Status() string

Status returns HTTPResponse.Status

func (RestartMockResp) StatusCode

func (r RestartMockResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeServiceTokenResp added in v0.1.6

type RevokeServiceTokenResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseRevokeServiceTokenResp added in v0.1.6

func ParseRevokeServiceTokenResp(rsp *http.Response) (*RevokeServiceTokenResp, error)

ParseRevokeServiceTokenResp parses an HTTP response from a RevokeServiceTokenWithResponse call

func (RevokeServiceTokenResp) Status added in v0.1.6

func (r RevokeServiceTokenResp) Status() string

Status returns HTTPResponse.Status

func (RevokeServiceTokenResp) StatusCode added in v0.1.6

func (r RevokeServiceTokenResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ServiceTokenCreateRequest added in v0.1.6

type ServiceTokenCreateRequest struct {
	// ExpiresInSeconds Time-to-live in seconds before the token becomes expired.
	ExpiresInSeconds int `json:"expires_in_seconds"`

	// Name Human-readable token name unique within the service user.
	Name string `json:"name"`
}

ServiceTokenCreateRequest Request payload used to create a service token.

type ServiceTokenCreateResponse added in v0.1.6

type ServiceTokenCreateResponse struct {
	// CreatedAt RFC3339 UTC timestamp when the token was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// ExpiresAt RFC3339 UTC timestamp when the token expires.
	ExpiresAt *time.Time `json:"expires_at,omitempty"`

	// LastUsedAt RFC3339 UTC timestamp of the latest successful token use.
	LastUsedAt *time.Time `json:"last_used_at,omitempty"`

	// Name Human-readable token name.
	Name *string `json:"name,omitempty"`

	// RevokedAt RFC3339 UTC timestamp when the token was revoked, if applicable.
	RevokedAt *time.Time `json:"revoked_at,omitempty"`

	// ServiceUserId Parent service user identifier.
	ServiceUserId *int `json:"service_user_id,omitempty"`

	// Status Computed token status at read time.
	Status *ServiceTokenStatus `json:"status,omitempty"`

	// Token Raw opaque bearer token. Returned only once at creation time.
	Token *string `json:"token,omitempty"`

	// TokenId Internal numeric service token identifier.
	TokenId *int `json:"token_id,omitempty"`

	// TokenPrefix Safe prefix shown for operator identification.
	TokenPrefix *string `json:"token_prefix,omitempty"`
}

ServiceTokenCreateResponse defines model for ServiceTokenCreateResponse.

type ServiceTokenId added in v0.1.6

type ServiceTokenId = int

ServiceTokenId defines model for ServiceTokenId.

type ServiceTokenResponse added in v0.1.6

type ServiceTokenResponse struct {
	// CreatedAt RFC3339 UTC timestamp when the token was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// ExpiresAt RFC3339 UTC timestamp when the token expires.
	ExpiresAt *time.Time `json:"expires_at,omitempty"`

	// LastUsedAt RFC3339 UTC timestamp of the latest successful token use.
	LastUsedAt *time.Time `json:"last_used_at,omitempty"`

	// Name Human-readable token name.
	Name *string `json:"name,omitempty"`

	// RevokedAt RFC3339 UTC timestamp when the token was revoked, if applicable.
	RevokedAt *time.Time `json:"revoked_at,omitempty"`

	// ServiceUserId Parent service user identifier.
	ServiceUserId *int `json:"service_user_id,omitempty"`

	// Status Computed token status at read time.
	Status *ServiceTokenStatus `json:"status,omitempty"`

	// TokenId Internal numeric service token identifier.
	TokenId *int `json:"token_id,omitempty"`

	// TokenPrefix Safe prefix shown for operator identification.
	TokenPrefix *string `json:"token_prefix,omitempty"`
}

ServiceTokenResponse Service token metadata returned by list operations.

type ServiceTokenStatus added in v0.1.6

type ServiceTokenStatus string

ServiceTokenStatus Computed token status at read time.

const (
	Active  ServiceTokenStatus = "active"
	Expired ServiceTokenStatus = "expired"
	Revoked ServiceTokenStatus = "revoked"
)

Defines values for ServiceTokenStatus.

func (ServiceTokenStatus) Valid added in v0.1.6

func (e ServiceTokenStatus) Valid() bool

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

type ServiceUserCreateRequest added in v0.1.6

type ServiceUserCreateRequest struct {
	// Description Optional service user description.
	Description *string `json:"description,omitempty"`

	// Name Human-readable service user name unique within the owning account.
	Name string `json:"name"`
}

ServiceUserCreateRequest Request payload used to create a service user.

type ServiceUserId added in v0.1.6

type ServiceUserId = int

ServiceUserId defines model for ServiceUserId.

type ServiceUserResponse added in v0.1.6

type ServiceUserResponse struct {
	// CreatedAt RFC3339 UTC timestamp when the service user was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Description Optional service user description.
	Description *string `json:"description,omitempty"`

	// Name Human-readable service user name.
	Name *string `json:"name,omitempty"`

	// ServiceUserId Internal numeric service user identifier.
	ServiceUserId *int `json:"service_user_id,omitempty"`
}

ServiceUserResponse Service user metadata.

type SpawnMockFromTemplateJSONRequestBody added in v0.1.6

type SpawnMockFromTemplateJSONRequestBody = TemplateSpawnRequest

SpawnMockFromTemplateJSONRequestBody defines body for SpawnMockFromTemplate for application/json ContentType.

type SpawnMockFromTemplateResp added in v0.1.6

type SpawnMockFromTemplateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CreateMockResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseSpawnMockFromTemplateResp added in v0.1.6

func ParseSpawnMockFromTemplateResp(rsp *http.Response) (*SpawnMockFromTemplateResp, error)

ParseSpawnMockFromTemplateResp parses an HTTP response from a SpawnMockFromTemplateWithResponse call

func (SpawnMockFromTemplateResp) Status added in v0.1.6

func (r SpawnMockFromTemplateResp) Status() string

Status returns HTTPResponse.Status

func (SpawnMockFromTemplateResp) StatusCode added in v0.1.6

func (r SpawnMockFromTemplateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SslEnabled

type SslEnabled = bool

SslEnabled defines model for SslEnabled.

type Template added in v0.1.6

type Template struct {
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// CurrentRevision Current template revision metadata.
	CurrentRevision         *TemplateCurrentRevision `json:"current_revision,omitempty"`
	DefaultLatencyEmulation *bool                    `json:"default_latency_emulation,omitempty"`
	DefaultSslEnabled       *bool                    `json:"default_ssl_enabled,omitempty"`
	DefaultTtlSeconds       *int                     `json:"default_ttl_seconds,omitempty"`
	Description             *string                  `json:"description,omitempty"`

	// DocsPublic Whether generated OpenAPI, Postman, and docs endpoints are accessible without authentication.
	DocsPublic *bool `json:"docs_public,omitempty"`

	// Id Template public identifier.
	Id        *string    `json:"id,omitempty"`
	Name      *string    `json:"name,omitempty"`
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Template Persistent HAR template metadata and defaults.

type TemplateCreateRequest added in v0.1.6

type TemplateCreateRequest struct {
	DefaultLatencyEmulation *bool   `json:"default_latency_emulation,omitempty"`
	DefaultSslEnabled       *bool   `json:"default_ssl_enabled,omitempty"`
	DefaultTtlSeconds       *int    `json:"default_ttl_seconds,omitempty"`
	Description             *string `json:"description,omitempty"`

	// Har HAR payload as defined by the HTTP Archive format.
	Har  HarDocument `json:"har"`
	Name string      `json:"name"`
}

TemplateCreateRequest defines model for TemplateCreateRequest.

type TemplateCurrentRevision added in v0.1.6

type TemplateCurrentRevision struct {
	CreatedAt      *time.Time `json:"created_at,omitempty"`
	EndpointsTotal *int       `json:"endpoints_total,omitempty"`
	EntriesTotal   *int       `json:"entries_total,omitempty"`

	// Id Revision public identifier.
	Id      *string `json:"id,omitempty"`
	Version *int    `json:"version,omitempty"`
}

TemplateCurrentRevision Current template revision metadata.

type TemplateId added in v0.1.6

type TemplateId = string

TemplateId defines model for TemplateId.

type TemplateListResponse added in v0.1.6

type TemplateListResponse struct {
	Items *[]Template `json:"items,omitempty"`
}

TemplateListResponse List wrapper for templates.

type TemplateRevision added in v0.1.6

type TemplateRevision struct {
	CreatedAt      *time.Time `json:"created_at,omitempty"`
	EndpointsTotal *int       `json:"endpoints_total,omitempty"`
	EntriesTotal   *int       `json:"entries_total,omitempty"`

	// Id Revision public identifier.
	Id      *string `json:"id,omitempty"`
	Version *int    `json:"version,omitempty"`
}

TemplateRevision Template revision metadata.

type TemplateRevisionListResponse added in v0.1.6

type TemplateRevisionListResponse struct {
	Items *[]TemplateRevision `json:"items,omitempty"`
}

TemplateRevisionListResponse List wrapper for template revisions.

type TemplateRevisionVersion added in v0.1.6

type TemplateRevisionVersion = int

TemplateRevisionVersion defines model for TemplateRevisionVersion.

type TemplateSpawnRequest added in v0.1.6

type TemplateSpawnRequest struct {
	LatencyEmulation *bool `json:"latency_emulation,omitempty"`
	SslEnabled       *bool `json:"ssl_enabled,omitempty"`
	TtlSeconds       *int  `json:"ttl_seconds,omitempty"`
}

TemplateSpawnRequest Optional overrides when spawning a mock from a template.

type TemplateUpdateRequest added in v0.1.6

type TemplateUpdateRequest struct {
	DefaultLatencyEmulation *bool   `json:"default_latency_emulation,omitempty"`
	DefaultSslEnabled       *bool   `json:"default_ssl_enabled,omitempty"`
	DefaultTtlSeconds       *int    `json:"default_ttl_seconds,omitempty"`
	Description             *string `json:"description,omitempty"`

	// DocsPublic Controls anonymous access to generated OpenAPI, Postman, and docs endpoints for the template.
	DocsPublic *bool   `json:"docs_public,omitempty"`
	Name       *string `json:"name,omitempty"`
}

TemplateUpdateRequest Partial template update payload.

type TtlSeconds

type TtlSeconds = int

TtlSeconds defines model for TtlSeconds.

type Unauthorized

type Unauthorized = ErrorResponse

Unauthorized Standard API error envelope.

type UnmatchedReason

type UnmatchedReason struct {
	// Count Number of requests with this unmatched reason.
	Count *int `json:"count,omitempty"`

	// Fields Fields associated with the unmatched reason.
	Fields *[]string `json:"fields,omitempty"`

	// Kind Stable machine-readable unmatched reason.
	Kind *string `json:"kind,omitempty"`

	// Message Human-readable unmatched reason.
	Message *string `json:"message,omitempty"`
}

UnmatchedReason Aggregated reason for unmatched runtime requests.

type UnprocessableEntity

type UnprocessableEntity = ErrorResponse

UnprocessableEntity Standard API error envelope.

type UpdateTemplateJSONRequestBody added in v0.1.6

type UpdateTemplateJSONRequestBody = TemplateUpdateRequest

UpdateTemplateJSONRequestBody defines body for UpdateTemplate for application/json ContentType.

type UpdateTemplateResp added in v0.1.6

type UpdateTemplateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Template
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseUpdateTemplateResp added in v0.1.6

func ParseUpdateTemplateResp(rsp *http.Response) (*UpdateTemplateResp, error)

ParseUpdateTemplateResp parses an HTTP response from a UpdateTemplateWithResponse call

func (UpdateTemplateResp) Status added in v0.1.6

func (r UpdateTemplateResp) Status() string

Status returns HTTPResponse.Status

func (UpdateTemplateResp) StatusCode added in v0.1.6

func (r UpdateTemplateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadTemplateRevisionFileMultipartBody added in v0.1.6

type UploadTemplateRevisionFileMultipartBody struct {
	File openapi_types.File `json:"file"`
}

UploadTemplateRevisionFileMultipartBody defines parameters for UploadTemplateRevisionFile.

type UploadTemplateRevisionFileMultipartRequestBody added in v0.1.6

type UploadTemplateRevisionFileMultipartRequestBody UploadTemplateRevisionFileMultipartBody

UploadTemplateRevisionFileMultipartRequestBody defines body for UploadTemplateRevisionFile for multipart/form-data ContentType.

type UploadTemplateRevisionFileResp added in v0.1.6

type UploadTemplateRevisionFileResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *TemplateRevision
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseUploadTemplateRevisionFileResp added in v0.1.6

func ParseUploadTemplateRevisionFileResp(rsp *http.Response) (*UploadTemplateRevisionFileResp, error)

ParseUploadTemplateRevisionFileResp parses an HTTP response from a UploadTemplateRevisionFileWithResponse call

func (UploadTemplateRevisionFileResp) Status added in v0.1.6

Status returns HTTPResponse.Status

func (UploadTemplateRevisionFileResp) StatusCode added in v0.1.6

func (r UploadTemplateRevisionFileResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadTemplateRevisionJSONBody added in v0.1.6

type UploadTemplateRevisionJSONBody struct {
	// Har HAR payload as defined by the HTTP Archive format.
	Har HarDocument `json:"har"`
}

UploadTemplateRevisionJSONBody defines parameters for UploadTemplateRevision.

type UploadTemplateRevisionJSONRequestBody added in v0.1.6

type UploadTemplateRevisionJSONRequestBody UploadTemplateRevisionJSONBody

UploadTemplateRevisionJSONRequestBody defines body for UploadTemplateRevision for application/json ContentType.

type UploadTemplateRevisionResp added in v0.1.6

type UploadTemplateRevisionResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *TemplateRevision
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
	JSON500      *InternalError
}

func ParseUploadTemplateRevisionResp added in v0.1.6

func ParseUploadTemplateRevisionResp(rsp *http.Response) (*UploadTemplateRevisionResp, error)

ParseUploadTemplateRevisionResp parses an HTTP response from a UploadTemplateRevisionWithResponse call

func (UploadTemplateRevisionResp) Status added in v0.1.6

Status returns HTTPResponse.Status

func (UploadTemplateRevisionResp) StatusCode added in v0.1.6

func (r UploadTemplateRevisionResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserTotals

type UserTotals struct {
	// HarBytesTotal Total HAR bytes stored across mocks.
	HarBytesTotal *int `json:"har_bytes_total,omitempty"`

	// HarOver100mb Number of mocks with HAR size above 100MB.
	HarOver100mb *int `json:"har_over_100mb,omitempty"`

	// HarOver1mb Number of mocks with HAR size above 1MB.
	HarOver1mb *int `json:"har_over_1mb,omitempty"`

	// HarOver500kb Number of mocks with HAR size above 500KB.
	HarOver500kb *int `json:"har_over_500kb,omitempty"`

	// MocksTotal Total number of mocks created by the user.
	MocksTotal *int `json:"mocks_total,omitempty"`

	// RequestsHit Total matched runtime requests across all user mocks.
	RequestsHit *int `json:"requests_hit,omitempty"`

	// RequestsMiss Total unmatched runtime requests across all user mocks.
	RequestsMiss *int `json:"requests_miss,omitempty"`

	// RequestsTotal Total runtime requests across all user mocks.
	RequestsTotal *int `json:"requests_total,omitempty"`
}

UserTotals Aggregate usage counters for a user account.

type ValidateHarFileMultipartBody

type ValidateHarFileMultipartBody struct {
	// File HAR file to validate.
	File openapi_types.File `json:"file"`
}

ValidateHarFileMultipartBody defines parameters for ValidateHarFile.

type ValidateHarFileMultipartRequestBody

type ValidateHarFileMultipartRequestBody ValidateHarFileMultipartBody

ValidateHarFileMultipartRequestBody defines body for ValidateHarFile for multipart/form-data ContentType.

type ValidateHarFileResp

type ValidateHarFileResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HarValidationResult
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON413      *PayloadTooLarge
	JSON500      *InternalError
}

func ParseValidateHarFileResp

func ParseValidateHarFileResp(rsp *http.Response) (*ValidateHarFileResp, error)

ParseValidateHarFileResp parses an HTTP response from a ValidateHarFileWithResponse call

func (ValidateHarFileResp) Status

func (r ValidateHarFileResp) Status() string

Status returns HTTPResponse.Status

func (ValidateHarFileResp) StatusCode

func (r ValidateHarFileResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ValidateHarRawJSONRequestBody

type ValidateHarRawJSONRequestBody = HarDocument

ValidateHarRawJSONRequestBody defines body for ValidateHarRaw for application/json ContentType.

type ValidateHarRawResp

type ValidateHarRawResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HarValidationResult
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON413      *PayloadTooLarge
	JSON422      *UnprocessableEntity
	JSON500      *InternalError
}

func ParseValidateHarRawResp

func ParseValidateHarRawResp(rsp *http.Response) (*ValidateHarRawResp, error)

ParseValidateHarRawResp parses an HTTP response from a ValidateHarRawWithResponse call

func (ValidateHarRawResp) Status

func (r ValidateHarRawResp) Status() string

Status returns HTTPResponse.Status

func (ValidateHarRawResp) StatusCode

func (r ValidateHarRawResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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