app

package
v3.0.86 Latest Latest
Warning

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

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

Documentation

Overview

Package app contains auto-generated types from the app OpenAPI spec. Do not edit manually — run `make generate` to regenerate.

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

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

Index

Constants

View Source
const (
	HTTPBearerScopes hTTPBearerContextKey = "HTTPBearer.Scopes"
)

Variables

This section is empty.

Functions

func NewAcceptInvitationRequestWithApplicationVndAPIPlusJSONBody

func NewAcceptInvitationRequestWithApplicationVndAPIPlusJSONBody(server string, body AcceptInvitationApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewAcceptInvitationRequestWithApplicationVndAPIPlusJSONBody calls the generic AcceptInvitation builder with application/vnd.api+json body

func NewAcceptInvitationRequestWithBody

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

NewAcceptInvitationRequestWithBody generates requests for AcceptInvitation with any type of body

func NewAdminPutAccountSubscriptionRequestWithApplicationVndAPIPlusJSONBody added in v3.0.43

func NewAdminPutAccountSubscriptionRequestWithApplicationVndAPIPlusJSONBody(server string, accountId openapi_types.UUID, body AdminPutAccountSubscriptionApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewAdminPutAccountSubscriptionRequestWithApplicationVndAPIPlusJSONBody calls the generic AdminPutAccountSubscription builder with application/vnd.api+json body

func NewAdminPutAccountSubscriptionRequestWithBody added in v3.0.43

func NewAdminPutAccountSubscriptionRequestWithBody(server string, accountId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewAdminPutAccountSubscriptionRequestWithBody generates requests for AdminPutAccountSubscription with any type of body

func NewBeginOidcLoginRequest

func NewBeginOidcLoginRequest(server string, provider OidcProvider, params *BeginOidcLoginParams) (*http.Request, error)

NewBeginOidcLoginRequest generates requests for BeginOidcLogin

func NewBulkIngestMetricsRequestWithApplicationVndAPIPlusJSONBody

func NewBulkIngestMetricsRequestWithApplicationVndAPIPlusJSONBody(server string, body BulkIngestMetricsApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewBulkIngestMetricsRequestWithApplicationVndAPIPlusJSONBody calls the generic BulkIngestMetrics builder with application/vnd.api+json body

func NewBulkIngestMetricsRequestWithBody

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

NewBulkIngestMetricsRequestWithBody generates requests for BulkIngestMetrics with any type of body

func NewBulkRegisterContextsRequestWithApplicationVndAPIPlusJSONBody

func NewBulkRegisterContextsRequestWithApplicationVndAPIPlusJSONBody(server string, body BulkRegisterContextsApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewBulkRegisterContextsRequestWithApplicationVndAPIPlusJSONBody calls the generic BulkRegisterContexts builder with application/vnd.api+json body

func NewBulkRegisterContextsRequestWithBody

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

NewBulkRegisterContextsRequestWithBody generates requests for BulkRegisterContexts with any type of body

func NewCreateApiKeyRequestWithApplicationVndAPIPlusJSONBody

func NewCreateApiKeyRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateApiKeyApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewCreateApiKeyRequestWithApplicationVndAPIPlusJSONBody calls the generic CreateApiKey builder with application/vnd.api+json body

func NewCreateApiKeyRequestWithBody

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

NewCreateApiKeyRequestWithBody generates requests for CreateApiKey with any type of body

func NewCreateContextTypeRequestWithApplicationVndAPIPlusJSONBody

func NewCreateContextTypeRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateContextTypeApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewCreateContextTypeRequestWithApplicationVndAPIPlusJSONBody calls the generic CreateContextType builder with application/vnd.api+json body

func NewCreateContextTypeRequestWithBody

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

NewCreateContextTypeRequestWithBody generates requests for CreateContextType with any type of body

func NewCreateEmailRegistrationRequestWithApplicationVndAPIPlusJSONBody

func NewCreateEmailRegistrationRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateEmailRegistrationApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewCreateEmailRegistrationRequestWithApplicationVndAPIPlusJSONBody calls the generic CreateEmailRegistration builder with application/vnd.api+json body

func NewCreateEmailRegistrationRequestWithBody

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

NewCreateEmailRegistrationRequestWithBody generates requests for CreateEmailRegistration with any type of body

func NewCreateEnvironmentRequestWithApplicationVndAPIPlusJSONBody

func NewCreateEnvironmentRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateEnvironmentApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewCreateEnvironmentRequestWithApplicationVndAPIPlusJSONBody calls the generic CreateEnvironment builder with application/vnd.api+json body

func NewCreateEnvironmentRequestWithBody

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

NewCreateEnvironmentRequestWithBody generates requests for CreateEnvironment with any type of body

func NewCreateInvitationsRequestWithApplicationVndAPIPlusJSONBody

func NewCreateInvitationsRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateInvitationsApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewCreateInvitationsRequestWithApplicationVndAPIPlusJSONBody calls the generic CreateInvitations builder with application/vnd.api+json body

func NewCreateInvitationsRequestWithBody

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

NewCreateInvitationsRequestWithBody generates requests for CreateInvitations with any type of body

func NewCreatePaymentMethodRequestWithApplicationVndAPIPlusJSONBody

func NewCreatePaymentMethodRequestWithApplicationVndAPIPlusJSONBody(server string, body CreatePaymentMethodApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewCreatePaymentMethodRequestWithApplicationVndAPIPlusJSONBody calls the generic CreatePaymentMethod builder with application/vnd.api+json body

func NewCreatePaymentMethodRequestWithBody

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

NewCreatePaymentMethodRequestWithBody generates requests for CreatePaymentMethod with any type of body

func NewCreateServiceRequestWithApplicationVndAPIPlusJSONBody

func NewCreateServiceRequestWithApplicationVndAPIPlusJSONBody(server string, body CreateServiceApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewCreateServiceRequestWithApplicationVndAPIPlusJSONBody calls the generic CreateService builder with application/vnd.api+json body

func NewCreateServiceRequestWithBody

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

NewCreateServiceRequestWithBody generates requests for CreateService with any type of body

func NewDeleteAccountRequest

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

NewDeleteAccountRequest generates requests for DeleteAccount

func NewDeleteApiKeyRequest

func NewDeleteApiKeyRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewDeleteApiKeyRequest generates requests for DeleteApiKey

func NewDeleteContextRequest

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

NewDeleteContextRequest generates requests for DeleteContext

func NewDeleteContextTypeRequest

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

NewDeleteContextTypeRequest generates requests for DeleteContextType

func NewDeleteEnvironmentRequest

func NewDeleteEnvironmentRequest(server string, id string, params *DeleteEnvironmentParams) (*http.Request, error)

NewDeleteEnvironmentRequest generates requests for DeleteEnvironment

func NewDeletePaymentMethodRequest

func NewDeletePaymentMethodRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewDeletePaymentMethodRequest generates requests for DeletePaymentMethod

func NewDeleteServiceRequest

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

NewDeleteServiceRequest generates requests for DeleteService

func NewExecuteSetupIntentRequest

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

NewExecuteSetupIntentRequest generates requests for ExecuteSetupIntent

func NewGetAccountRequest

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

NewGetAccountRequest generates requests for GetAccount

func NewGetAccountSettingsRequest

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

NewGetAccountSettingsRequest generates requests for GetAccountSettings

func NewGetApiKeyRequest

func NewGetApiKeyRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetApiKeyRequest generates requests for GetApiKey

func NewGetContextRequest

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

NewGetContextRequest generates requests for GetContext

func NewGetContextTypeRequest

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

NewGetContextTypeRequest generates requests for GetContextType

func NewGetCurrentSubscriptionRequest added in v3.0.43

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

NewGetCurrentSubscriptionRequest generates requests for GetCurrentSubscription

func NewGetCurrentUserRequest

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

NewGetCurrentUserRequest generates requests for GetCurrentUser

func NewGetEnvironmentRequest

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

NewGetEnvironmentRequest generates requests for GetEnvironment

func NewGetEnvironmentUsageRequest added in v3.0.38

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

NewGetEnvironmentUsageRequest generates requests for GetEnvironmentUsage

func NewGetInvoiceRequest

func NewGetInvoiceRequest(server string, invoiceId string) (*http.Request, error)

NewGetInvoiceRequest generates requests for GetInvoice

func NewGetPaymentMethodRequest

func NewGetPaymentMethodRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetPaymentMethodRequest generates requests for GetPaymentMethod

func NewGetServiceRequest

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

NewGetServiceRequest generates requests for GetService

func NewGetUserRequest

func NewGetUserRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetUserRequest generates requests for GetUser

func NewGetUserSettingsRequest

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

NewGetUserSettingsRequest generates requests for GetUserSettings

func NewHandleOidcCallbackRequest

func NewHandleOidcCallbackRequest(server string, provider OidcProvider, params *HandleOidcCallbackParams) (*http.Request, error)

NewHandleOidcCallbackRequest generates requests for HandleOidcCallback

func NewListApiKeysRequest

func NewListApiKeysRequest(server string, params *ListApiKeysParams) (*http.Request, error)

NewListApiKeysRequest generates requests for ListApiKeys

func NewListContextTypesRequest

func NewListContextTypesRequest(server string, params *ListContextTypesParams) (*http.Request, error)

NewListContextTypesRequest generates requests for ListContextTypes

func NewListContextValuesRequest added in v3.0.45

func NewListContextValuesRequest(server string, params *ListContextValuesParams) (*http.Request, error)

NewListContextValuesRequest generates requests for ListContextValues

func NewListContextsRequest

func NewListContextsRequest(server string, params *ListContextsParams) (*http.Request, error)

NewListContextsRequest generates requests for ListContexts

func NewListDiscountTiersRequest added in v3.0.68

func NewListDiscountTiersRequest(server string, params *ListDiscountTiersParams) (*http.Request, error)

NewListDiscountTiersRequest generates requests for ListDiscountTiers

func NewListEnvironmentsRequest

func NewListEnvironmentsRequest(server string, params *ListEnvironmentsParams) (*http.Request, error)

NewListEnvironmentsRequest generates requests for ListEnvironments

func NewListInvitationsRequest

func NewListInvitationsRequest(server string, params *ListInvitationsParams) (*http.Request, error)

NewListInvitationsRequest generates requests for ListInvitations

func NewListInvoicesRequest

func NewListInvoicesRequest(server string, params *ListInvoicesParams) (*http.Request, error)

NewListInvoicesRequest generates requests for ListInvoices

func NewListMetricNamesRequest

func NewListMetricNamesRequest(server string, params *ListMetricNamesParams) (*http.Request, error)

NewListMetricNamesRequest generates requests for ListMetricNames

func NewListMetricRollupsRequest

func NewListMetricRollupsRequest(server string, params *ListMetricRollupsParams) (*http.Request, error)

NewListMetricRollupsRequest generates requests for ListMetricRollups

func NewListMetricsRequest

func NewListMetricsRequest(server string, params *ListMetricsParams) (*http.Request, error)

NewListMetricsRequest generates requests for ListMetrics

func NewListPaymentMethodsRequest

func NewListPaymentMethodsRequest(server string, params *ListPaymentMethodsParams) (*http.Request, error)

NewListPaymentMethodsRequest generates requests for ListPaymentMethods

func NewListPlansRequest

func NewListPlansRequest(server string, params *ListPlansParams) (*http.Request, error)

NewListPlansRequest generates requests for ListPlans

func NewListProductsRequest

func NewListProductsRequest(server string, params *ListProductsParams) (*http.Request, error)

NewListProductsRequest generates requests for ListProducts

func NewListServicesRequest

func NewListServicesRequest(server string, params *ListServicesParams) (*http.Request, error)

NewListServicesRequest generates requests for ListServices

func NewListUsersRequest

func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)

NewListUsersRequest generates requests for ListUsers

func NewLoginRequest

func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)

NewLoginRequest calls the generic Login builder with application/json body

func NewLoginRequestWithBody

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

NewLoginRequestWithBody generates requests for Login with any type of body

func NewPreviewCurrentSubscriptionRequestWithApplicationVndAPIPlusJSONBody added in v3.0.43

func NewPreviewCurrentSubscriptionRequestWithApplicationVndAPIPlusJSONBody(server string, body PreviewCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewPreviewCurrentSubscriptionRequestWithApplicationVndAPIPlusJSONBody calls the generic PreviewCurrentSubscription builder with application/vnd.api+json body

func NewPreviewCurrentSubscriptionRequestWithBody added in v3.0.43

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

NewPreviewCurrentSubscriptionRequestWithBody generates requests for PreviewCurrentSubscription with any type of body

func NewPutAccountSettingsRequestWithApplicationVndAPIPlusJSONBody added in v3.0.68

func NewPutAccountSettingsRequestWithApplicationVndAPIPlusJSONBody(server string, body PutAccountSettingsApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewPutAccountSettingsRequestWithApplicationVndAPIPlusJSONBody calls the generic PutAccountSettings builder with application/vnd.api+json body

func NewPutAccountSettingsRequestWithBody added in v3.0.68

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

NewPutAccountSettingsRequestWithBody generates requests for PutAccountSettings with any type of body

func NewPutCurrentSubscriptionRequestWithApplicationVndAPIPlusJSONBody added in v3.0.43

func NewPutCurrentSubscriptionRequestWithApplicationVndAPIPlusJSONBody(server string, body PutCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewPutCurrentSubscriptionRequestWithApplicationVndAPIPlusJSONBody calls the generic PutCurrentSubscription builder with application/vnd.api+json body

func NewPutCurrentSubscriptionRequestWithBody added in v3.0.43

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

NewPutCurrentSubscriptionRequestWithBody generates requests for PutCurrentSubscription with any type of body

func NewPutUserSettingsKeyRequestWithApplicationVndAPIPlusJSONBody added in v3.0.68

func NewPutUserSettingsKeyRequestWithApplicationVndAPIPlusJSONBody(server string, key string, body PutUserSettingsKeyApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewPutUserSettingsKeyRequestWithApplicationVndAPIPlusJSONBody calls the generic PutUserSettingsKey builder with application/vnd.api+json body

func NewPutUserSettingsKeyRequestWithBody added in v3.0.68

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

NewPutUserSettingsKeyRequestWithBody generates requests for PutUserSettingsKey with any type of body

func NewPutUserSettingsRequestWithApplicationVndAPIPlusJSONBody added in v3.0.68

func NewPutUserSettingsRequestWithApplicationVndAPIPlusJSONBody(server string, body PutUserSettingsApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewPutUserSettingsRequestWithApplicationVndAPIPlusJSONBody calls the generic PutUserSettings builder with application/vnd.api+json body

func NewPutUserSettingsRequestWithBody added in v3.0.68

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

NewPutUserSettingsRequestWithBody generates requests for PutUserSettings with any type of body

func NewRegisterRequest

func NewRegisterRequest(server string, body RegisterJSONRequestBody) (*http.Request, error)

NewRegisterRequest calls the generic Register builder with application/json body

func NewRegisterRequestWithBody

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

NewRegisterRequestWithBody generates requests for Register with any type of body

func NewRemoveUserRequest

func NewRemoveUserRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewRemoveUserRequest generates requests for RemoveUser

func NewResendInvitationRequest

func NewResendInvitationRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewResendInvitationRequest generates requests for ResendInvitation

func NewResendVerificationRequest

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

NewResendVerificationRequest generates requests for ResendVerification

func NewRevokeApiKeyRequest

func NewRevokeApiKeyRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewRevokeApiKeyRequest generates requests for RevokeApiKey

func NewRevokeInvitationRequest

func NewRevokeInvitationRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewRevokeInvitationRequest generates requests for RevokeInvitation

func NewSendContactEmailRequestWithApplicationVndAPIPlusJSONBody

func NewSendContactEmailRequestWithApplicationVndAPIPlusJSONBody(server string, body SendContactEmailApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewSendContactEmailRequestWithApplicationVndAPIPlusJSONBody calls the generic SendContactEmail builder with application/vnd.api+json body

func NewSendContactEmailRequestWithBody

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

NewSendContactEmailRequestWithBody generates requests for SendContactEmail with any type of body

func NewSetDefaultPaymentMethodRequest

func NewSetDefaultPaymentMethodRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewSetDefaultPaymentMethodRequest generates requests for SetDefaultPaymentMethod

func NewUpdateAccountRequestWithApplicationVndAPIPlusJSONBody

func NewUpdateAccountRequestWithApplicationVndAPIPlusJSONBody(server string, body UpdateAccountApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewUpdateAccountRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateAccount builder with application/vnd.api+json body

func NewUpdateAccountRequestWithBody

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

NewUpdateAccountRequestWithBody generates requests for UpdateAccount with any type of body

func NewUpdateApiKeyRequestWithApplicationVndAPIPlusJSONBody

func NewUpdateApiKeyRequestWithApplicationVndAPIPlusJSONBody(server string, id openapi_types.UUID, body UpdateApiKeyApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewUpdateApiKeyRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateApiKey builder with application/vnd.api+json body

func NewUpdateApiKeyRequestWithBody

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

NewUpdateApiKeyRequestWithBody generates requests for UpdateApiKey with any type of body

func NewUpdateContextRequestWithApplicationVndAPIPlusJSONBody

func NewUpdateContextRequestWithApplicationVndAPIPlusJSONBody(server string, id string, body UpdateContextApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewUpdateContextRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateContext builder with application/vnd.api+json body

func NewUpdateContextRequestWithBody

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

NewUpdateContextRequestWithBody generates requests for UpdateContext with any type of body

func NewUpdateContextTypeRequestWithApplicationVndAPIPlusJSONBody

func NewUpdateContextTypeRequestWithApplicationVndAPIPlusJSONBody(server string, id string, body UpdateContextTypeApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewUpdateContextTypeRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateContextType builder with application/vnd.api+json body

func NewUpdateContextTypeRequestWithBody

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

NewUpdateContextTypeRequestWithBody generates requests for UpdateContextType with any type of body

func NewUpdateCurrentUserRequestWithApplicationVndAPIPlusJSONBody

func NewUpdateCurrentUserRequestWithApplicationVndAPIPlusJSONBody(server string, body UpdateCurrentUserApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewUpdateCurrentUserRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateCurrentUser builder with application/vnd.api+json body

func NewUpdateCurrentUserRequestWithBody

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

NewUpdateCurrentUserRequestWithBody generates requests for UpdateCurrentUser with any type of body

func NewUpdateEnvironmentRequestWithApplicationVndAPIPlusJSONBody

func NewUpdateEnvironmentRequestWithApplicationVndAPIPlusJSONBody(server string, id string, body UpdateEnvironmentApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewUpdateEnvironmentRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateEnvironment builder with application/vnd.api+json body

func NewUpdateEnvironmentRequestWithBody

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

NewUpdateEnvironmentRequestWithBody generates requests for UpdateEnvironment with any type of body

func NewUpdatePaymentMethodRequestWithApplicationVndAPIPlusJSONBody

func NewUpdatePaymentMethodRequestWithApplicationVndAPIPlusJSONBody(server string, id openapi_types.UUID, body UpdatePaymentMethodApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewUpdatePaymentMethodRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdatePaymentMethod builder with application/vnd.api+json body

func NewUpdatePaymentMethodRequestWithBody

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

NewUpdatePaymentMethodRequestWithBody generates requests for UpdatePaymentMethod with any type of body

func NewUpdateServiceRequestWithApplicationVndAPIPlusJSONBody

func NewUpdateServiceRequestWithApplicationVndAPIPlusJSONBody(server string, id string, body UpdateServiceApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewUpdateServiceRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateService builder with application/vnd.api+json body

func NewUpdateServiceRequestWithBody

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

NewUpdateServiceRequestWithBody generates requests for UpdateService with any type of body

func NewUpdateUserRoleRequestWithApplicationVndAPIPlusJSONBody

func NewUpdateUserRoleRequestWithApplicationVndAPIPlusJSONBody(server string, id openapi_types.UUID, body UpdateUserRoleApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewUpdateUserRoleRequestWithApplicationVndAPIPlusJSONBody calls the generic UpdateUserRole builder with application/vnd.api+json body

func NewUpdateUserRoleRequestWithBody

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

NewUpdateUserRoleRequestWithBody generates requests for UpdateUserRole with any type of body

func NewVerifyEmailRequest

func NewVerifyEmailRequest(server string, body VerifyEmailJSONRequestBody) (*http.Request, error)

NewVerifyEmailRequest calls the generic VerifyEmail builder with application/json body

func NewVerifyEmailRequestWithBody

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

NewVerifyEmailRequestWithBody generates requests for VerifyEmail with any type of body

func NewWipeAccountDataRequestWithApplicationVndAPIPlusJSONBody

func NewWipeAccountDataRequestWithApplicationVndAPIPlusJSONBody(server string, body WipeAccountDataApplicationVndAPIPlusJSONRequestBody) (*http.Request, error)

NewWipeAccountDataRequestWithApplicationVndAPIPlusJSONBody calls the generic WipeAccountData builder with application/vnd.api+json body

func NewWipeAccountDataRequestWithBody

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

NewWipeAccountDataRequestWithBody generates requests for WipeAccountData with any type of body

Types

type AcceptInvitationApplicationVndAPIPlusJSONRequestBody

type AcceptInvitationApplicationVndAPIPlusJSONRequestBody = InvitationAcceptRequest

AcceptInvitationApplicationVndAPIPlusJSONRequestBody defines body for AcceptInvitation for application/vnd.api+json ContentType.

type AcceptInvitationResponse

type AcceptInvitationResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *InvitationResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseAcceptInvitationResponse

func ParseAcceptInvitationResponse(rsp *http.Response) (*AcceptInvitationResponse, error)

ParseAcceptInvitationResponse parses an HTTP response from a AcceptInvitationWithResponse call

func (AcceptInvitationResponse) ContentType

func (r AcceptInvitationResponse) ContentType() string

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

func (AcceptInvitationResponse) Status

func (r AcceptInvitationResponse) Status() string

Status returns HTTPResponse.Status

func (AcceptInvitationResponse) StatusCode

func (r AcceptInvitationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Account

type Account struct {
	// CreatedAt When the account was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// DeletedAt When the account was deleted. `null` for active accounts.
	DeletedAt *time.Time `json:"deleted_at,omitempty"`

	// DiscountOverridePct Custom discount percentage applied to the account in place of the volume-based discount schedule. `null` means the volume schedule applies. Who set it, when, and why are captured in the audit-event stream rather than on the subscription row.
	DiscountOverridePct *int `json:"discount_override_pct,omitempty"`

	// EntryPoint How the account first reached smplkit (e.g. `LOGIN`, `GET_STARTED`, `LIVE_DEMO`).
	EntryPoint *string `json:"entry_point,omitempty"`

	// ExpiresAt When the account is scheduled to expire. `null` for accounts with no expiry.
	ExpiresAt *time.Time `json:"expires_at,omitempty"`

	// HasStripeCustomer `true` once the account has been linked to a billing provider customer record.
	HasStripeCustomer *bool `json:"has_stripe_customer,omitempty"`

	// Key Stable URL-safe identifier for the account, derived from the account name at creation. Used in console URLs and other places that prefer a human-readable handle.
	Key *string `json:"key,omitempty"`

	// Name Human-readable name for the account.
	Name string `json:"name"`

	// ProductSubscriptions Map of product key to the account's subscription summary for that product, including plan, status, and entitlement limits.
	ProductSubscriptions *map[string]interface{} `json:"product_subscriptions,omitempty"`

	// ShowSampleData Whether the account is currently configured to display the sample dataset alongside the customer's own resources.
	ShowSampleData *bool `json:"show_sample_data,omitempty"`
}

Account A tenant of smplkit — the unit of isolation that owns all of a customer's resources (environments, contexts, API keys, and so on).

type AccountRequest added in v3.0.31

type AccountRequest struct {
	// Data JSON:API resource envelope for an account.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data AccountResource `json:"data"`
}

AccountRequest JSON:API request envelope for creating or updating an account.

type AccountResource

type AccountResource struct {
	// Attributes A tenant of smplkit — the unit of isolation that owns all of a
	// customer's resources (environments, contexts, API keys, and so on).
	Attributes Account             `json:"attributes"`
	Id         *string             `json:"id,omitempty"`
	Type       AccountResourceType `json:"type"`
}

AccountResource JSON:API resource envelope for an account.

`id` must not be specified for create requests (the server assigns it).

type AccountResourceType

type AccountResourceType string

AccountResourceType defines model for AccountResource.Type.

const (
	AccountResourceTypeAccount AccountResourceType = "account"
)

Defines values for AccountResourceType.

func (AccountResourceType) Valid

func (e AccountResourceType) Valid() bool

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

type AccountResponse

type AccountResponse struct {
	// Data JSON:API resource envelope for an account.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data AccountResource `json:"data"`
}

AccountResponse JSON:API single-resource response envelope for an account.

type AccountWipeRequest

type AccountWipeRequest struct {
	// Confirm Must be `true` for the wipe to proceed. Any other value returns 400.
	Confirm bool `json:"confirm"`

	// GenerateSampleData When `true`, re-seed the account with the standard sample dataset after wiping. Best-effort: any seeding failure is logged but does not fail the wipe.
	GenerateSampleData *bool `json:"generate_sample_data,omitempty"`
}

AccountWipeRequest Confirmation envelope for the wipe-account action.

type AddPaymentMethodAttributes

type AddPaymentMethodAttributes struct {
	// Default When `true`, make the newly registered payment method the account's default. The first payment method on an account is always set as default regardless of this field.
	Default *bool `json:"default,omitempty"`

	// StripePaymentMethodId Identifier of the Stripe payment method to register on the account, e.g. `pm_1234567890abcdef`.
	StripePaymentMethodId string `json:"stripe_payment_method_id"`
}

AddPaymentMethodAttributes Attributes accepted when registering a new payment method.

The customer first creates a Stripe payment method client-side using Stripe Elements, then submits its `pm_...` identifier here to persist it on the account.

type AddPaymentMethodBody

type AddPaymentMethodBody struct {
	// Data Resource object for the add-payment-method request.
	Data AddPaymentMethodData `json:"data"`
}

AddPaymentMethodBody JSON:API request envelope for registering a new payment method.

type AddPaymentMethodData

type AddPaymentMethodData struct {
	// Attributes Attributes accepted when registering a new payment method.
	//
	// The customer first creates a Stripe payment method client-side using
	// Stripe Elements, then submits its `pm_...` identifier here to persist
	// it on the account.
	Attributes AddPaymentMethodAttributes `json:"attributes"`
	Type       AddPaymentMethodDataType   `json:"type"`
}

AddPaymentMethodData Resource object for the add-payment-method request.

type AddPaymentMethodDataType

type AddPaymentMethodDataType string

AddPaymentMethodDataType defines model for AddPaymentMethodData.Type.

const (
	AddPaymentMethodDataTypePaymentMethod AddPaymentMethodDataType = "payment_method"
)

Defines values for AddPaymentMethodDataType.

func (AddPaymentMethodDataType) Valid

func (e AddPaymentMethodDataType) Valid() bool

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

type AdminPutAccountSubscriptionApplicationVndAPIPlusJSONRequestBody added in v3.0.43

type AdminPutAccountSubscriptionApplicationVndAPIPlusJSONRequestBody = AdminSubscriptionRequest

AdminPutAccountSubscriptionApplicationVndAPIPlusJSONRequestBody defines body for AdminPutAccountSubscription for application/vnd.api+json ContentType.

type AdminPutAccountSubscriptionResponse added in v3.0.43

type AdminPutAccountSubscriptionResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *SubscriptionResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseAdminPutAccountSubscriptionResponse added in v3.0.43

func ParseAdminPutAccountSubscriptionResponse(rsp *http.Response) (*AdminPutAccountSubscriptionResponse, error)

ParseAdminPutAccountSubscriptionResponse parses an HTTP response from a AdminPutAccountSubscriptionWithResponse call

func (AdminPutAccountSubscriptionResponse) ContentType added in v3.0.43

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

func (AdminPutAccountSubscriptionResponse) Status added in v3.0.43

Status returns HTTPResponse.Status

func (AdminPutAccountSubscriptionResponse) StatusCode added in v3.0.43

StatusCode returns HTTPResponse.StatusCode

type AdminSubscriptionRequest added in v3.0.43

type AdminSubscriptionRequest struct {
	// Data Admin-scope resource object for a subscription update request.
	Data AdminSubscriptionRequestResource `json:"data"`
}

AdminSubscriptionRequest Admin-scope request envelope for replacing a subscription.

type AdminSubscriptionRequestAttributes added in v3.0.43

type AdminSubscriptionRequestAttributes struct {
	// DiscountOverridePct Administrator-set discount percentage (0–100). When set, the multi-product discount schedule is bypassed and this value is used directly. Setting `100` skips the billing provider entirely — the customer pays nothing. Pass `null` to clear any existing override and revert to the multi-product discount schedule.
	DiscountOverridePct *int `json:"discount_override_pct,omitempty"`

	// Items Desired enrollments. Products listed are scheduled to be on the specified plan immediately (for upgrades and new enrollments) or at the end of the current billing period (for downgrades). Products not listed are scheduled to be dropped at the end of the current billing period.
	Items []SubscriptionItemRequest `json:"items"`

	// PaymentMethod Optional identifier of the payment method to bill against. If omitted, the account's default payment method is used.
	PaymentMethod *openapi_types.UUID `json:"payment_method,omitempty"`
}

AdminSubscriptionRequestAttributes Same as the customer request body plus the admin-only override field.

type AdminSubscriptionRequestResource added in v3.0.43

type AdminSubscriptionRequestResource struct {
	// Attributes Same as the customer request body plus the admin-only override field.
	Attributes AdminSubscriptionRequestAttributes `json:"attributes"`
	Id         *string                            `json:"id,omitempty"`

	// Type JSON:API resource type.
	Type AdminSubscriptionRequestResourceType `json:"type"`
}

AdminSubscriptionRequestResource Admin-scope resource object for a subscription update request.

type AdminSubscriptionRequestResourceType added in v3.0.43

type AdminSubscriptionRequestResourceType string

AdminSubscriptionRequestResourceType JSON:API resource type.

const (
	AdminSubscriptionRequestResourceTypeSubscription AdminSubscriptionRequestResourceType = "subscription"
)

Defines values for AdminSubscriptionRequestResourceType.

func (AdminSubscriptionRequestResourceType) Valid added in v3.0.43

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

type ApiKey

type ApiKey struct {
	// CreatedAt When the key was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// CreatedBy UUID of the user who created the key.
	CreatedBy *string `json:"created_by,omitempty"`

	// ExpiresAt Optional expiry timestamp. After this time, the key is rejected. Omit for keys that do not expire.
	ExpiresAt *time.Time `json:"expires_at,omitempty"`

	// Key The bearer token value. Returned in plaintext on the create response so the caller can capture it; subsequent reads return the same value for round-tripping.
	Key *string `json:"key,omitempty"`

	// LastUsedAt When the key was most recently used to authenticate.
	LastUsedAt *time.Time `json:"last_used_at,omitempty"`

	// Name Human-readable name for the key.
	Name string `json:"name"`

	// Scopes Scope restrictions applied to the key. Empty object grants full account access; populated forms are reserved for future scope syntax.
	Scopes *map[string]interface{} `json:"scopes,omitempty"`

	// Status Lifecycle state of the key. `ACTIVE` keys may be used to authenticate; `REVOKED` keys are rejected.
	Status *string `json:"status,omitempty"`

	// UpdatedAt When the key was last modified.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

ApiKey An API key used by SDKs, scripts, and other programmatic clients to authenticate with the smplkit API on behalf of the account.

The full key value is returned in plaintext on the create response and is otherwise unavailable — record it somewhere safe immediately after creation.

type ApiKeyListResponse

type ApiKeyListResponse struct {
	Data []ApiKeyResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

ApiKeyListResponse JSON:API collection response for API keys.

type ApiKeyRequest added in v3.0.31

type ApiKeyRequest struct {
	// Data JSON:API resource envelope for an API key.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data ApiKeyResource `json:"data"`
}

ApiKeyRequest JSON:API request envelope for creating or updating an API key.

type ApiKeyResource

type ApiKeyResource struct {
	// Attributes An API key used by SDKs, scripts, and other programmatic clients to
	// authenticate with the smplkit API on behalf of the account.
	//
	// The full key value is returned in plaintext on the create response and
	// is otherwise unavailable — record it somewhere safe immediately after
	// creation.
	Attributes ApiKey             `json:"attributes"`
	Id         *string            `json:"id,omitempty"`
	Type       ApiKeyResourceType `json:"type"`
}

ApiKeyResource JSON:API resource envelope for an API key.

`id` must not be specified for create requests (the server assigns it).

type ApiKeyResourceType

type ApiKeyResourceType string

ApiKeyResourceType defines model for ApiKeyResource.Type.

const (
	ApiKeyResourceTypeApiKey ApiKeyResourceType = "api_key"
)

Defines values for ApiKeyResourceType.

func (ApiKeyResourceType) Valid

func (e ApiKeyResourceType) Valid() bool

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

type ApiKeyResponse

type ApiKeyResponse struct {
	// Data JSON:API resource envelope for an API key.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data ApiKeyResource `json:"data"`
}

ApiKeyResponse JSON:API single-resource response envelope for an API key.

type AuthTokenResponse

type AuthTokenResponse struct {
	// ExpiresIn Seconds until the token expires.
	ExpiresIn int `json:"expires_in"`

	// Token Bearer token to pass in the `Authorization` header.
	Token string `json:"token"`
}

AuthTokenResponse Authentication token issued on successful login or registration.

type BeginOidcLoginParams

type BeginOidcLoginParams struct {
	Mode       *string `form:"mode,omitempty" json:"mode,omitempty"`
	Source     *string `form:"source,omitempty" json:"source,omitempty"`
	EntryPoint *string `form:"entry_point,omitempty" json:"entry_point,omitempty"`
}

BeginOidcLoginParams defines parameters for BeginOidcLogin.

type BeginOidcLoginResponse

type BeginOidcLoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseBeginOidcLoginResponse

func ParseBeginOidcLoginResponse(rsp *http.Response) (*BeginOidcLoginResponse, error)

ParseBeginOidcLoginResponse parses an HTTP response from a BeginOidcLoginWithResponse call

func (BeginOidcLoginResponse) ContentType

func (r BeginOidcLoginResponse) ContentType() string

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

func (BeginOidcLoginResponse) Status

func (r BeginOidcLoginResponse) Status() string

Status returns HTTPResponse.Status

func (BeginOidcLoginResponse) StatusCode

func (r BeginOidcLoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BulkIngestMetricsApplicationVndAPIPlusJSONRequestBody

type BulkIngestMetricsApplicationVndAPIPlusJSONRequestBody = MetricBulkRequest

BulkIngestMetricsApplicationVndAPIPlusJSONRequestBody defines body for BulkIngestMetrics for application/vnd.api+json ContentType.

type BulkIngestMetricsResponse

type BulkIngestMetricsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseBulkIngestMetricsResponse

func ParseBulkIngestMetricsResponse(rsp *http.Response) (*BulkIngestMetricsResponse, error)

ParseBulkIngestMetricsResponse parses an HTTP response from a BulkIngestMetricsWithResponse call

func (BulkIngestMetricsResponse) ContentType

func (r BulkIngestMetricsResponse) ContentType() string

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

func (BulkIngestMetricsResponse) Status

func (r BulkIngestMetricsResponse) Status() string

Status returns HTTPResponse.Status

func (BulkIngestMetricsResponse) StatusCode

func (r BulkIngestMetricsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BulkRegisterContextsApplicationVndAPIPlusJSONRequestBody

type BulkRegisterContextsApplicationVndAPIPlusJSONRequestBody = ContextBulkRegister

BulkRegisterContextsApplicationVndAPIPlusJSONRequestBody defines body for BulkRegisterContexts for application/vnd.api+json ContentType.

type BulkRegisterContextsResponse

type BulkRegisterContextsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ContextBatchResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseBulkRegisterContextsResponse

func ParseBulkRegisterContextsResponse(rsp *http.Response) (*BulkRegisterContextsResponse, error)

ParseBulkRegisterContextsResponse parses an HTTP response from a BulkRegisterContextsWithResponse call

func (BulkRegisterContextsResponse) ContentType

func (r BulkRegisterContextsResponse) ContentType() string

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

func (BulkRegisterContextsResponse) Status

Status returns HTTPResponse.Status

func (BulkRegisterContextsResponse) StatusCode

func (r BulkRegisterContextsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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) AcceptInvitationWithApplicationVndAPIPlusJSONBody

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

func (*Client) AcceptInvitationWithBody

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

func (*Client) AdminPutAccountSubscriptionWithApplicationVndAPIPlusJSONBody added in v3.0.43

func (c *Client) AdminPutAccountSubscriptionWithApplicationVndAPIPlusJSONBody(ctx context.Context, accountId openapi_types.UUID, body AdminPutAccountSubscriptionApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AdminPutAccountSubscriptionWithBody added in v3.0.43

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

func (*Client) BeginOidcLogin

func (c *Client) BeginOidcLogin(ctx context.Context, provider OidcProvider, params *BeginOidcLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) BulkIngestMetricsWithApplicationVndAPIPlusJSONBody

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

func (*Client) BulkIngestMetricsWithBody

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

func (*Client) BulkRegisterContextsWithApplicationVndAPIPlusJSONBody

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

func (*Client) BulkRegisterContextsWithBody

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

func (*Client) CreateApiKeyWithApplicationVndAPIPlusJSONBody

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

func (*Client) CreateApiKeyWithBody

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

func (*Client) CreateContextTypeWithApplicationVndAPIPlusJSONBody

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

func (*Client) CreateContextTypeWithBody

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

func (*Client) CreateEmailRegistrationWithApplicationVndAPIPlusJSONBody

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

func (*Client) CreateEmailRegistrationWithBody

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

func (*Client) CreateEnvironmentWithApplicationVndAPIPlusJSONBody

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

func (*Client) CreateEnvironmentWithBody

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

func (*Client) CreateInvitationsWithApplicationVndAPIPlusJSONBody

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

func (*Client) CreateInvitationsWithBody

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

func (*Client) CreatePaymentMethodWithApplicationVndAPIPlusJSONBody

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

func (*Client) CreatePaymentMethodWithBody

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

func (*Client) CreateServiceWithApplicationVndAPIPlusJSONBody

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

func (*Client) CreateServiceWithBody

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

func (*Client) DeleteAccount

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

func (*Client) DeleteApiKey

func (c *Client) DeleteApiKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteContext

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

func (*Client) DeleteContextType

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

func (*Client) DeleteEnvironment

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

func (*Client) DeletePaymentMethod

func (c *Client) DeletePaymentMethod(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteService

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

func (*Client) ExecuteSetupIntent

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

func (*Client) GetAccount

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

func (*Client) GetAccountSettings

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

func (*Client) GetApiKey

func (c *Client) GetApiKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetContext

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

func (*Client) GetContextType

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

func (*Client) GetCurrentSubscription added in v3.0.43

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

func (*Client) GetCurrentUser

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

func (*Client) GetEnvironment

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

func (*Client) GetEnvironmentUsage added in v3.0.38

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

func (*Client) GetInvoice

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

func (*Client) GetPaymentMethod

func (c *Client) GetPaymentMethod(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetService

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

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUserSettings

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

func (*Client) HandleOidcCallback

func (c *Client) HandleOidcCallback(ctx context.Context, provider OidcProvider, params *HandleOidcCallbackParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListApiKeys

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

func (*Client) ListContextTypes

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

func (*Client) ListContextValues added in v3.0.45

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

func (*Client) ListContexts

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

func (*Client) ListDiscountTiers added in v3.0.68

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

func (*Client) ListEnvironments

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

func (*Client) ListInvitations

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

func (*Client) ListInvoices

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

func (*Client) ListMetricNames

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

func (*Client) ListMetricRollups

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

func (*Client) ListMetrics

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

func (*Client) ListPaymentMethods

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

func (*Client) ListPlans

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

func (*Client) ListProducts

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

func (*Client) ListServices

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

func (*Client) ListUsers

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

func (*Client) Login

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

func (*Client) LoginWithBody

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

func (*Client) PreviewCurrentSubscriptionWithApplicationVndAPIPlusJSONBody added in v3.0.43

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

func (*Client) PreviewCurrentSubscriptionWithBody added in v3.0.43

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

func (*Client) PutAccountSettingsWithApplicationVndAPIPlusJSONBody added in v3.0.68

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

func (*Client) PutAccountSettingsWithBody added in v3.0.68

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

func (*Client) PutCurrentSubscriptionWithApplicationVndAPIPlusJSONBody added in v3.0.43

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

func (*Client) PutCurrentSubscriptionWithBody added in v3.0.43

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

func (*Client) PutUserSettingsKeyWithApplicationVndAPIPlusJSONBody added in v3.0.68

func (c *Client) PutUserSettingsKeyWithApplicationVndAPIPlusJSONBody(ctx context.Context, key string, body PutUserSettingsKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutUserSettingsKeyWithBody added in v3.0.68

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

func (*Client) PutUserSettingsWithApplicationVndAPIPlusJSONBody added in v3.0.68

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

func (*Client) PutUserSettingsWithBody added in v3.0.68

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

func (*Client) Register

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

func (*Client) RegisterWithBody

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

func (*Client) RemoveUser

func (c *Client) RemoveUser(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResendInvitation

func (c *Client) ResendInvitation(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResendVerification

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

func (*Client) RevokeApiKey

func (c *Client) RevokeApiKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RevokeInvitation

func (c *Client) RevokeInvitation(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SendContactEmailWithApplicationVndAPIPlusJSONBody

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

func (*Client) SendContactEmailWithBody

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

func (*Client) SetDefaultPaymentMethod

func (c *Client) SetDefaultPaymentMethod(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAccountWithApplicationVndAPIPlusJSONBody

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

func (*Client) UpdateAccountWithBody

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

func (*Client) UpdateApiKeyWithApplicationVndAPIPlusJSONBody

func (c *Client) UpdateApiKeyWithApplicationVndAPIPlusJSONBody(ctx context.Context, id openapi_types.UUID, body UpdateApiKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateApiKeyWithBody

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

func (*Client) UpdateContextTypeWithApplicationVndAPIPlusJSONBody

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

func (*Client) UpdateContextTypeWithBody

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

func (*Client) UpdateContextWithApplicationVndAPIPlusJSONBody

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

func (*Client) UpdateContextWithBody

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

func (*Client) UpdateCurrentUserWithApplicationVndAPIPlusJSONBody

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

func (*Client) UpdateCurrentUserWithBody

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

func (*Client) UpdateEnvironmentWithApplicationVndAPIPlusJSONBody

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

func (*Client) UpdateEnvironmentWithBody

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

func (*Client) UpdatePaymentMethodWithApplicationVndAPIPlusJSONBody

func (c *Client) UpdatePaymentMethodWithApplicationVndAPIPlusJSONBody(ctx context.Context, id openapi_types.UUID, body UpdatePaymentMethodApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePaymentMethodWithBody

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

func (*Client) UpdateServiceWithApplicationVndAPIPlusJSONBody

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

func (*Client) UpdateServiceWithBody

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

func (*Client) UpdateUserRoleWithApplicationVndAPIPlusJSONBody

func (c *Client) UpdateUserRoleWithApplicationVndAPIPlusJSONBody(ctx context.Context, id openapi_types.UUID, body UpdateUserRoleApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUserRoleWithBody

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

func (*Client) VerifyEmail

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

func (*Client) VerifyEmailWithBody

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

func (*Client) WipeAccountDataWithApplicationVndAPIPlusJSONBody

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

func (*Client) WipeAccountDataWithBody

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

type ClientInterface

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

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

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

	UpdateAccountWithApplicationVndAPIPlusJSONBody(ctx context.Context, body UpdateAccountApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	WipeAccountDataWithApplicationVndAPIPlusJSONBody(ctx context.Context, body WipeAccountDataApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	PutAccountSettingsWithApplicationVndAPIPlusJSONBody(ctx context.Context, body PutAccountSettingsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	PutCurrentSubscriptionWithApplicationVndAPIPlusJSONBody(ctx context.Context, body PutCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PreviewCurrentSubscriptionWithApplicationVndAPIPlusJSONBody(ctx context.Context, body PreviewCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	AdminPutAccountSubscriptionWithApplicationVndAPIPlusJSONBody(ctx context.Context, accountId openapi_types.UUID, body AdminPutAccountSubscriptionApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	CreateApiKeyWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateApiKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteApiKey request
	DeleteApiKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApiKey request
	GetApiKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateApiKeyWithApplicationVndAPIPlusJSONBody(ctx context.Context, id openapi_types.UUID, body UpdateApiKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeApiKey request
	RevokeApiKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HandleOidcCallback request
	HandleOidcCallback(ctx context.Context, provider OidcProvider, params *HandleOidcCallbackParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BeginOidcLogin request
	BeginOidcLogin(ctx context.Context, provider OidcProvider, params *BeginOidcLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	Register(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	VerifyEmail(ctx context.Context, body VerifyEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	CreateContextTypeWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateContextTypeApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

	BulkRegisterContextsWithApplicationVndAPIPlusJSONBody(ctx context.Context, body BulkRegisterContextsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

	CreateEmailRegistrationWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateEmailRegistrationApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	SendContactEmailWithApplicationVndAPIPlusJSONBody(ctx context.Context, body SendContactEmailApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	CreateEnvironmentWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateEnvironmentApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

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

	CreateInvitationsWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateInvitationsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	AcceptInvitationWithApplicationVndAPIPlusJSONBody(ctx context.Context, body AcceptInvitationApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResendInvitation request
	ResendInvitation(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeInvitation request
	RevokeInvitation(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

	BulkIngestMetricsWithApplicationVndAPIPlusJSONBody(ctx context.Context, body BulkIngestMetricsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	CreatePaymentMethodWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreatePaymentMethodApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeletePaymentMethod request
	DeletePaymentMethod(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPaymentMethod request
	GetPaymentMethod(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdatePaymentMethodWithApplicationVndAPIPlusJSONBody(ctx context.Context, id openapi_types.UUID, body UpdatePaymentMethodApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetDefaultPaymentMethod request
	SetDefaultPaymentMethod(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

	CreateServiceWithApplicationVndAPIPlusJSONBody(ctx context.Context, body CreateServiceApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

	UpdateCurrentUserWithApplicationVndAPIPlusJSONBody(ctx context.Context, body UpdateCurrentUserApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	PutUserSettingsWithApplicationVndAPIPlusJSONBody(ctx context.Context, body PutUserSettingsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PutUserSettingsKeyWithApplicationVndAPIPlusJSONBody(ctx context.Context, key string, body PutUserSettingsKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveUser request
	RemoveUser(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUser request
	GetUser(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateUserRoleWithApplicationVndAPIPlusJSONBody(ctx context.Context, id openapi_types.UUID, body UpdateUserRoleApplicationVndAPIPlusJSONRequestBody, 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) AcceptInvitationWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) AcceptInvitationWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body AcceptInvitationApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptInvitationResponse, error)

func (*ClientWithResponses) AcceptInvitationWithBodyWithResponse

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

AcceptInvitationWithBodyWithResponse request with arbitrary body returning *AcceptInvitationResponse

func (*ClientWithResponses) AdminPutAccountSubscriptionWithApplicationVndAPIPlusJSONBodyWithResponse added in v3.0.43

func (c *ClientWithResponses) AdminPutAccountSubscriptionWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, accountId openapi_types.UUID, body AdminPutAccountSubscriptionApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminPutAccountSubscriptionResponse, error)

func (*ClientWithResponses) AdminPutAccountSubscriptionWithBodyWithResponse added in v3.0.43

func (c *ClientWithResponses) AdminPutAccountSubscriptionWithBodyWithResponse(ctx context.Context, accountId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminPutAccountSubscriptionResponse, error)

AdminPutAccountSubscriptionWithBodyWithResponse request with arbitrary body returning *AdminPutAccountSubscriptionResponse

func (*ClientWithResponses) BeginOidcLoginWithResponse

func (c *ClientWithResponses) BeginOidcLoginWithResponse(ctx context.Context, provider OidcProvider, params *BeginOidcLoginParams, reqEditors ...RequestEditorFn) (*BeginOidcLoginResponse, error)

BeginOidcLoginWithResponse request returning *BeginOidcLoginResponse

func (*ClientWithResponses) BulkIngestMetricsWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) BulkIngestMetricsWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body BulkIngestMetricsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkIngestMetricsResponse, error)

func (*ClientWithResponses) BulkIngestMetricsWithBodyWithResponse

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

BulkIngestMetricsWithBodyWithResponse request with arbitrary body returning *BulkIngestMetricsResponse

func (*ClientWithResponses) BulkRegisterContextsWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) BulkRegisterContextsWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body BulkRegisterContextsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkRegisterContextsResponse, error)

func (*ClientWithResponses) BulkRegisterContextsWithBodyWithResponse

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

BulkRegisterContextsWithBodyWithResponse request with arbitrary body returning *BulkRegisterContextsResponse

func (*ClientWithResponses) CreateApiKeyWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) CreateApiKeyWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateApiKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error)

func (*ClientWithResponses) CreateApiKeyWithBodyWithResponse

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

CreateApiKeyWithBodyWithResponse request with arbitrary body returning *CreateApiKeyResponse

func (*ClientWithResponses) CreateContextTypeWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) CreateContextTypeWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateContextTypeApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateContextTypeResponse, error)

func (*ClientWithResponses) CreateContextTypeWithBodyWithResponse

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

CreateContextTypeWithBodyWithResponse request with arbitrary body returning *CreateContextTypeResponse

func (*ClientWithResponses) CreateEmailRegistrationWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) CreateEmailRegistrationWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateEmailRegistrationApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailRegistrationResponse, error)

func (*ClientWithResponses) CreateEmailRegistrationWithBodyWithResponse

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

CreateEmailRegistrationWithBodyWithResponse request with arbitrary body returning *CreateEmailRegistrationResponse

func (*ClientWithResponses) CreateEnvironmentWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) CreateEnvironmentWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateEnvironmentApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)

func (*ClientWithResponses) CreateEnvironmentWithBodyWithResponse

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

CreateEnvironmentWithBodyWithResponse request with arbitrary body returning *CreateEnvironmentResponse

func (*ClientWithResponses) CreateInvitationsWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) CreateInvitationsWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateInvitationsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvitationsResponse, error)

func (*ClientWithResponses) CreateInvitationsWithBodyWithResponse

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

CreateInvitationsWithBodyWithResponse request with arbitrary body returning *CreateInvitationsResponse

func (*ClientWithResponses) CreatePaymentMethodWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) CreatePaymentMethodWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreatePaymentMethodApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePaymentMethodResponse, error)

func (*ClientWithResponses) CreatePaymentMethodWithBodyWithResponse

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

CreatePaymentMethodWithBodyWithResponse request with arbitrary body returning *CreatePaymentMethodResponse

func (*ClientWithResponses) CreateServiceWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) CreateServiceWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateServiceApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)

func (*ClientWithResponses) CreateServiceWithBodyWithResponse

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

CreateServiceWithBodyWithResponse request with arbitrary body returning *CreateServiceResponse

func (*ClientWithResponses) DeleteAccountWithResponse

func (c *ClientWithResponses) DeleteAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAccountResponse, error)

DeleteAccountWithResponse request returning *DeleteAccountResponse

func (*ClientWithResponses) DeleteApiKeyWithResponse

func (c *ClientWithResponses) DeleteApiKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error)

DeleteApiKeyWithResponse request returning *DeleteApiKeyResponse

func (*ClientWithResponses) DeleteContextTypeWithResponse

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

DeleteContextTypeWithResponse request returning *DeleteContextTypeResponse

func (*ClientWithResponses) DeleteContextWithResponse

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

DeleteContextWithResponse request returning *DeleteContextResponse

func (*ClientWithResponses) DeleteEnvironmentWithResponse

func (c *ClientWithResponses) DeleteEnvironmentWithResponse(ctx context.Context, id string, params *DeleteEnvironmentParams, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResponse, error)

DeleteEnvironmentWithResponse request returning *DeleteEnvironmentResponse

func (*ClientWithResponses) DeletePaymentMethodWithResponse

func (c *ClientWithResponses) DeletePaymentMethodWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeletePaymentMethodResponse, error)

DeletePaymentMethodWithResponse request returning *DeletePaymentMethodResponse

func (*ClientWithResponses) DeleteServiceWithResponse

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

DeleteServiceWithResponse request returning *DeleteServiceResponse

func (*ClientWithResponses) ExecuteSetupIntentWithResponse

func (c *ClientWithResponses) ExecuteSetupIntentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExecuteSetupIntentResponse, error)

ExecuteSetupIntentWithResponse request returning *ExecuteSetupIntentResponse

func (*ClientWithResponses) GetAccountSettingsWithResponse

func (c *ClientWithResponses) GetAccountSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountSettingsResponse, error)

GetAccountSettingsWithResponse request returning *GetAccountSettingsResponse

func (*ClientWithResponses) GetAccountWithResponse

func (c *ClientWithResponses) GetAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountResponse, error)

GetAccountWithResponse request returning *GetAccountResponse

func (*ClientWithResponses) GetApiKeyWithResponse

func (c *ClientWithResponses) GetApiKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error)

GetApiKeyWithResponse request returning *GetApiKeyResponse

func (*ClientWithResponses) GetContextTypeWithResponse

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

GetContextTypeWithResponse request returning *GetContextTypeResponse

func (*ClientWithResponses) GetContextWithResponse

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

GetContextWithResponse request returning *GetContextResponse

func (*ClientWithResponses) GetCurrentSubscriptionWithResponse added in v3.0.43

func (c *ClientWithResponses) GetCurrentSubscriptionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentSubscriptionResponse, error)

GetCurrentSubscriptionWithResponse request returning *GetCurrentSubscriptionResponse

func (*ClientWithResponses) GetCurrentUserWithResponse

func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)

GetCurrentUserWithResponse request returning *GetCurrentUserResponse

func (*ClientWithResponses) GetEnvironmentUsageWithResponse added in v3.0.38

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

GetEnvironmentUsageWithResponse request returning *GetEnvironmentUsageResponse

func (*ClientWithResponses) GetEnvironmentWithResponse

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

GetEnvironmentWithResponse request returning *GetEnvironmentResponse

func (*ClientWithResponses) GetInvoiceWithResponse

func (c *ClientWithResponses) GetInvoiceWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error)

GetInvoiceWithResponse request returning *GetInvoiceResponse

func (*ClientWithResponses) GetPaymentMethodWithResponse

func (c *ClientWithResponses) GetPaymentMethodWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetPaymentMethodResponse, error)

GetPaymentMethodWithResponse request returning *GetPaymentMethodResponse

func (*ClientWithResponses) GetServiceWithResponse

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

GetServiceWithResponse request returning *GetServiceResponse

func (*ClientWithResponses) GetUserSettingsWithResponse

func (c *ClientWithResponses) GetUserSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserSettingsResponse, error)

GetUserSettingsWithResponse request returning *GetUserSettingsResponse

func (*ClientWithResponses) GetUserWithResponse

func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserResponse, error)

GetUserWithResponse request returning *GetUserResponse

func (*ClientWithResponses) HandleOidcCallbackWithResponse

func (c *ClientWithResponses) HandleOidcCallbackWithResponse(ctx context.Context, provider OidcProvider, params *HandleOidcCallbackParams, reqEditors ...RequestEditorFn) (*HandleOidcCallbackResponse, error)

HandleOidcCallbackWithResponse request returning *HandleOidcCallbackResponse

func (*ClientWithResponses) ListApiKeysWithResponse

func (c *ClientWithResponses) ListApiKeysWithResponse(ctx context.Context, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error)

ListApiKeysWithResponse request returning *ListApiKeysResponse

func (*ClientWithResponses) ListContextTypesWithResponse

func (c *ClientWithResponses) ListContextTypesWithResponse(ctx context.Context, params *ListContextTypesParams, reqEditors ...RequestEditorFn) (*ListContextTypesResponse, error)

ListContextTypesWithResponse request returning *ListContextTypesResponse

func (*ClientWithResponses) ListContextValuesWithResponse added in v3.0.45

func (c *ClientWithResponses) ListContextValuesWithResponse(ctx context.Context, params *ListContextValuesParams, reqEditors ...RequestEditorFn) (*ListContextValuesResponse, error)

ListContextValuesWithResponse request returning *ListContextValuesResponse

func (*ClientWithResponses) ListContextsWithResponse

func (c *ClientWithResponses) ListContextsWithResponse(ctx context.Context, params *ListContextsParams, reqEditors ...RequestEditorFn) (*ListContextsResponse, error)

ListContextsWithResponse request returning *ListContextsResponse

func (*ClientWithResponses) ListDiscountTiersWithResponse added in v3.0.68

func (c *ClientWithResponses) ListDiscountTiersWithResponse(ctx context.Context, params *ListDiscountTiersParams, reqEditors ...RequestEditorFn) (*ListDiscountTiersResponse, error)

ListDiscountTiersWithResponse request returning *ListDiscountTiersResponse

func (*ClientWithResponses) ListEnvironmentsWithResponse

func (c *ClientWithResponses) ListEnvironmentsWithResponse(ctx context.Context, params *ListEnvironmentsParams, reqEditors ...RequestEditorFn) (*ListEnvironmentsResponse, error)

ListEnvironmentsWithResponse request returning *ListEnvironmentsResponse

func (*ClientWithResponses) ListInvitationsWithResponse

func (c *ClientWithResponses) ListInvitationsWithResponse(ctx context.Context, params *ListInvitationsParams, reqEditors ...RequestEditorFn) (*ListInvitationsResponse, error)

ListInvitationsWithResponse request returning *ListInvitationsResponse

func (*ClientWithResponses) ListInvoicesWithResponse

func (c *ClientWithResponses) ListInvoicesWithResponse(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error)

ListInvoicesWithResponse request returning *ListInvoicesResponse

func (*ClientWithResponses) ListMetricNamesWithResponse

func (c *ClientWithResponses) ListMetricNamesWithResponse(ctx context.Context, params *ListMetricNamesParams, reqEditors ...RequestEditorFn) (*ListMetricNamesResponse, error)

ListMetricNamesWithResponse request returning *ListMetricNamesResponse

func (*ClientWithResponses) ListMetricRollupsWithResponse

func (c *ClientWithResponses) ListMetricRollupsWithResponse(ctx context.Context, params *ListMetricRollupsParams, reqEditors ...RequestEditorFn) (*ListMetricRollupsResponse, error)

ListMetricRollupsWithResponse request returning *ListMetricRollupsResponse

func (*ClientWithResponses) ListMetricsWithResponse

func (c *ClientWithResponses) ListMetricsWithResponse(ctx context.Context, params *ListMetricsParams, reqEditors ...RequestEditorFn) (*ListMetricsResponse, error)

ListMetricsWithResponse request returning *ListMetricsResponse

func (*ClientWithResponses) ListPaymentMethodsWithResponse

func (c *ClientWithResponses) ListPaymentMethodsWithResponse(ctx context.Context, params *ListPaymentMethodsParams, reqEditors ...RequestEditorFn) (*ListPaymentMethodsResponse, error)

ListPaymentMethodsWithResponse request returning *ListPaymentMethodsResponse

func (*ClientWithResponses) ListPlansWithResponse

func (c *ClientWithResponses) ListPlansWithResponse(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*ListPlansResponse, error)

ListPlansWithResponse request returning *ListPlansResponse

func (*ClientWithResponses) ListProductsWithResponse

func (c *ClientWithResponses) ListProductsWithResponse(ctx context.Context, params *ListProductsParams, reqEditors ...RequestEditorFn) (*ListProductsResponse, error)

ListProductsWithResponse request returning *ListProductsResponse

func (*ClientWithResponses) ListServicesWithResponse

func (c *ClientWithResponses) ListServicesWithResponse(ctx context.Context, params *ListServicesParams, reqEditors ...RequestEditorFn) (*ListServicesResponse, error)

ListServicesWithResponse request returning *ListServicesResponse

func (*ClientWithResponses) ListUsersWithResponse

func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)

ListUsersWithResponse request returning *ListUsersResponse

func (*ClientWithResponses) LoginWithBodyWithResponse

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

LoginWithBodyWithResponse request with arbitrary body returning *LoginResponse

func (*ClientWithResponses) LoginWithResponse

func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

func (*ClientWithResponses) PreviewCurrentSubscriptionWithApplicationVndAPIPlusJSONBodyWithResponse added in v3.0.43

func (c *ClientWithResponses) PreviewCurrentSubscriptionWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body PreviewCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewCurrentSubscriptionResponse, error)

func (*ClientWithResponses) PreviewCurrentSubscriptionWithBodyWithResponse added in v3.0.43

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

PreviewCurrentSubscriptionWithBodyWithResponse request with arbitrary body returning *PreviewCurrentSubscriptionResponse

func (*ClientWithResponses) PutAccountSettingsWithApplicationVndAPIPlusJSONBodyWithResponse added in v3.0.68

func (c *ClientWithResponses) PutAccountSettingsWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body PutAccountSettingsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAccountSettingsResponse, error)

func (*ClientWithResponses) PutAccountSettingsWithBodyWithResponse added in v3.0.68

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

PutAccountSettingsWithBodyWithResponse request with arbitrary body returning *PutAccountSettingsResponse

func (*ClientWithResponses) PutCurrentSubscriptionWithApplicationVndAPIPlusJSONBodyWithResponse added in v3.0.43

func (c *ClientWithResponses) PutCurrentSubscriptionWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body PutCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutCurrentSubscriptionResponse, error)

func (*ClientWithResponses) PutCurrentSubscriptionWithBodyWithResponse added in v3.0.43

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

PutCurrentSubscriptionWithBodyWithResponse request with arbitrary body returning *PutCurrentSubscriptionResponse

func (*ClientWithResponses) PutUserSettingsKeyWithApplicationVndAPIPlusJSONBodyWithResponse added in v3.0.68

func (c *ClientWithResponses) PutUserSettingsKeyWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, key string, body PutUserSettingsKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutUserSettingsKeyResponse, error)

func (*ClientWithResponses) PutUserSettingsKeyWithBodyWithResponse added in v3.0.68

func (c *ClientWithResponses) PutUserSettingsKeyWithBodyWithResponse(ctx context.Context, key string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutUserSettingsKeyResponse, error)

PutUserSettingsKeyWithBodyWithResponse request with arbitrary body returning *PutUserSettingsKeyResponse

func (*ClientWithResponses) PutUserSettingsWithApplicationVndAPIPlusJSONBodyWithResponse added in v3.0.68

func (c *ClientWithResponses) PutUserSettingsWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body PutUserSettingsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutUserSettingsResponse, error)

func (*ClientWithResponses) PutUserSettingsWithBodyWithResponse added in v3.0.68

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

PutUserSettingsWithBodyWithResponse request with arbitrary body returning *PutUserSettingsResponse

func (*ClientWithResponses) RegisterWithBodyWithResponse

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

RegisterWithBodyWithResponse request with arbitrary body returning *RegisterResponse

func (*ClientWithResponses) RegisterWithResponse

func (c *ClientWithResponses) RegisterWithResponse(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterResponse, error)

func (*ClientWithResponses) RemoveUserWithResponse

func (c *ClientWithResponses) RemoveUserWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserResponse, error)

RemoveUserWithResponse request returning *RemoveUserResponse

func (*ClientWithResponses) ResendInvitationWithResponse

func (c *ClientWithResponses) ResendInvitationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ResendInvitationResponse, error)

ResendInvitationWithResponse request returning *ResendInvitationResponse

func (*ClientWithResponses) ResendVerificationWithResponse

func (c *ClientWithResponses) ResendVerificationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ResendVerificationResponse, error)

ResendVerificationWithResponse request returning *ResendVerificationResponse

func (*ClientWithResponses) RevokeApiKeyWithResponse

func (c *ClientWithResponses) RevokeApiKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeApiKeyResponse, error)

RevokeApiKeyWithResponse request returning *RevokeApiKeyResponse

func (*ClientWithResponses) RevokeInvitationWithResponse

func (c *ClientWithResponses) RevokeInvitationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeInvitationResponse, error)

RevokeInvitationWithResponse request returning *RevokeInvitationResponse

func (*ClientWithResponses) SendContactEmailWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) SendContactEmailWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body SendContactEmailApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*SendContactEmailResponse, error)

func (*ClientWithResponses) SendContactEmailWithBodyWithResponse

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

SendContactEmailWithBodyWithResponse request with arbitrary body returning *SendContactEmailResponse

func (*ClientWithResponses) SetDefaultPaymentMethodWithResponse

func (c *ClientWithResponses) SetDefaultPaymentMethodWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*SetDefaultPaymentMethodResponse, error)

SetDefaultPaymentMethodWithResponse request returning *SetDefaultPaymentMethodResponse

func (*ClientWithResponses) UpdateAccountWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) UpdateAccountWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body UpdateAccountApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccountResponse, error)

func (*ClientWithResponses) UpdateAccountWithBodyWithResponse

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

UpdateAccountWithBodyWithResponse request with arbitrary body returning *UpdateAccountResponse

func (*ClientWithResponses) UpdateApiKeyWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) UpdateApiKeyWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateApiKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error)

func (*ClientWithResponses) UpdateApiKeyWithBodyWithResponse

func (c *ClientWithResponses) UpdateApiKeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error)

UpdateApiKeyWithBodyWithResponse request with arbitrary body returning *UpdateApiKeyResponse

func (*ClientWithResponses) UpdateContextTypeWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) UpdateContextTypeWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateContextTypeApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateContextTypeResponse, error)

func (*ClientWithResponses) UpdateContextTypeWithBodyWithResponse

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

UpdateContextTypeWithBodyWithResponse request with arbitrary body returning *UpdateContextTypeResponse

func (*ClientWithResponses) UpdateContextWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) UpdateContextWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateContextApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateContextResponse, error)

func (*ClientWithResponses) UpdateContextWithBodyWithResponse

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

UpdateContextWithBodyWithResponse request with arbitrary body returning *UpdateContextResponse

func (*ClientWithResponses) UpdateCurrentUserWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) UpdateCurrentUserWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body UpdateCurrentUserApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error)

func (*ClientWithResponses) UpdateCurrentUserWithBodyWithResponse

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

UpdateCurrentUserWithBodyWithResponse request with arbitrary body returning *UpdateCurrentUserResponse

func (*ClientWithResponses) UpdateEnvironmentWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) UpdateEnvironmentWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateEnvironmentApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)

func (*ClientWithResponses) UpdateEnvironmentWithBodyWithResponse

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

UpdateEnvironmentWithBodyWithResponse request with arbitrary body returning *UpdateEnvironmentResponse

func (*ClientWithResponses) UpdatePaymentMethodWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) UpdatePaymentMethodWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id openapi_types.UUID, body UpdatePaymentMethodApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePaymentMethodResponse, error)

func (*ClientWithResponses) UpdatePaymentMethodWithBodyWithResponse

func (c *ClientWithResponses) UpdatePaymentMethodWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePaymentMethodResponse, error)

UpdatePaymentMethodWithBodyWithResponse request with arbitrary body returning *UpdatePaymentMethodResponse

func (*ClientWithResponses) UpdateServiceWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) UpdateServiceWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateServiceApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)

func (*ClientWithResponses) UpdateServiceWithBodyWithResponse

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

UpdateServiceWithBodyWithResponse request with arbitrary body returning *UpdateServiceResponse

func (*ClientWithResponses) UpdateUserRoleWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) UpdateUserRoleWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateUserRoleApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserRoleResponse, error)

func (*ClientWithResponses) UpdateUserRoleWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserRoleWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserRoleResponse, error)

UpdateUserRoleWithBodyWithResponse request with arbitrary body returning *UpdateUserRoleResponse

func (*ClientWithResponses) VerifyEmailWithBodyWithResponse

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

VerifyEmailWithBodyWithResponse request with arbitrary body returning *VerifyEmailResponse

func (*ClientWithResponses) VerifyEmailWithResponse

func (c *ClientWithResponses) VerifyEmailWithResponse(ctx context.Context, body VerifyEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailResponse, error)

func (*ClientWithResponses) WipeAccountDataWithApplicationVndAPIPlusJSONBodyWithResponse

func (c *ClientWithResponses) WipeAccountDataWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body WipeAccountDataApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*WipeAccountDataResponse, error)

func (*ClientWithResponses) WipeAccountDataWithBodyWithResponse

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

WipeAccountDataWithBodyWithResponse request with arbitrary body returning *WipeAccountDataResponse

type ClientWithResponsesInterface

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

	// GetAccountWithResponse request
	GetAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountResponse, error)

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

	UpdateAccountWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body UpdateAccountApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAccountResponse, error)

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

	WipeAccountDataWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body WipeAccountDataApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*WipeAccountDataResponse, error)

	// GetAccountSettingsWithResponse request
	GetAccountSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountSettingsResponse, error)

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

	PutAccountSettingsWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body PutAccountSettingsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAccountSettingsResponse, error)

	// GetCurrentSubscriptionWithResponse request
	GetCurrentSubscriptionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentSubscriptionResponse, error)

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

	PutCurrentSubscriptionWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body PutCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutCurrentSubscriptionResponse, error)

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

	PreviewCurrentSubscriptionWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body PreviewCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PreviewCurrentSubscriptionResponse, error)

	// AdminPutAccountSubscriptionWithBodyWithResponse request with any body
	AdminPutAccountSubscriptionWithBodyWithResponse(ctx context.Context, accountId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminPutAccountSubscriptionResponse, error)

	AdminPutAccountSubscriptionWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, accountId openapi_types.UUID, body AdminPutAccountSubscriptionApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminPutAccountSubscriptionResponse, error)

	// ListApiKeysWithResponse request
	ListApiKeysWithResponse(ctx context.Context, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error)

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

	CreateApiKeyWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateApiKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error)

	// DeleteApiKeyWithResponse request
	DeleteApiKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error)

	// GetApiKeyWithResponse request
	GetApiKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetApiKeyResponse, error)

	// UpdateApiKeyWithBodyWithResponse request with any body
	UpdateApiKeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error)

	UpdateApiKeyWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateApiKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeyResponse, error)

	// RevokeApiKeyWithResponse request
	RevokeApiKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeApiKeyResponse, error)

	// HandleOidcCallbackWithResponse request
	HandleOidcCallbackWithResponse(ctx context.Context, provider OidcProvider, params *HandleOidcCallbackParams, reqEditors ...RequestEditorFn) (*HandleOidcCallbackResponse, error)

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

	LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

	// BeginOidcLoginWithResponse request
	BeginOidcLoginWithResponse(ctx context.Context, provider OidcProvider, params *BeginOidcLoginParams, reqEditors ...RequestEditorFn) (*BeginOidcLoginResponse, error)

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

	RegisterWithResponse(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterResponse, error)

	// ResendVerificationWithResponse request
	ResendVerificationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ResendVerificationResponse, error)

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

	VerifyEmailWithResponse(ctx context.Context, body VerifyEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailResponse, error)

	// ListContextTypesWithResponse request
	ListContextTypesWithResponse(ctx context.Context, params *ListContextTypesParams, reqEditors ...RequestEditorFn) (*ListContextTypesResponse, error)

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

	CreateContextTypeWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateContextTypeApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateContextTypeResponse, error)

	// DeleteContextTypeWithResponse request
	DeleteContextTypeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteContextTypeResponse, error)

	// GetContextTypeWithResponse request
	GetContextTypeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetContextTypeResponse, error)

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

	UpdateContextTypeWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateContextTypeApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateContextTypeResponse, error)

	// ListContextValuesWithResponse request
	ListContextValuesWithResponse(ctx context.Context, params *ListContextValuesParams, reqEditors ...RequestEditorFn) (*ListContextValuesResponse, error)

	// ListContextsWithResponse request
	ListContextsWithResponse(ctx context.Context, params *ListContextsParams, reqEditors ...RequestEditorFn) (*ListContextsResponse, error)

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

	BulkRegisterContextsWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body BulkRegisterContextsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkRegisterContextsResponse, error)

	// DeleteContextWithResponse request
	DeleteContextWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteContextResponse, error)

	// GetContextWithResponse request
	GetContextWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetContextResponse, error)

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

	UpdateContextWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateContextApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateContextResponse, error)

	// ListDiscountTiersWithResponse request
	ListDiscountTiersWithResponse(ctx context.Context, params *ListDiscountTiersParams, reqEditors ...RequestEditorFn) (*ListDiscountTiersResponse, error)

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

	CreateEmailRegistrationWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateEmailRegistrationApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmailRegistrationResponse, error)

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

	SendContactEmailWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body SendContactEmailApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*SendContactEmailResponse, error)

	// ListEnvironmentsWithResponse request
	ListEnvironmentsWithResponse(ctx context.Context, params *ListEnvironmentsParams, reqEditors ...RequestEditorFn) (*ListEnvironmentsResponse, error)

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

	CreateEnvironmentWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateEnvironmentApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)

	// DeleteEnvironmentWithResponse request
	DeleteEnvironmentWithResponse(ctx context.Context, id string, params *DeleteEnvironmentParams, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResponse, error)

	// GetEnvironmentWithResponse request
	GetEnvironmentWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetEnvironmentResponse, error)

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

	UpdateEnvironmentWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateEnvironmentApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)

	// GetEnvironmentUsageWithResponse request
	GetEnvironmentUsageWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetEnvironmentUsageResponse, error)

	// ExecuteSetupIntentWithResponse request
	ExecuteSetupIntentWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExecuteSetupIntentResponse, error)

	// ListInvitationsWithResponse request
	ListInvitationsWithResponse(ctx context.Context, params *ListInvitationsParams, reqEditors ...RequestEditorFn) (*ListInvitationsResponse, error)

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

	CreateInvitationsWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateInvitationsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvitationsResponse, error)

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

	AcceptInvitationWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body AcceptInvitationApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*AcceptInvitationResponse, error)

	// ResendInvitationWithResponse request
	ResendInvitationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ResendInvitationResponse, error)

	// RevokeInvitationWithResponse request
	RevokeInvitationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeInvitationResponse, error)

	// ListInvoicesWithResponse request
	ListInvoicesWithResponse(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error)

	// GetInvoiceWithResponse request
	GetInvoiceWithResponse(ctx context.Context, invoiceId string, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error)

	// ListMetricNamesWithResponse request
	ListMetricNamesWithResponse(ctx context.Context, params *ListMetricNamesParams, reqEditors ...RequestEditorFn) (*ListMetricNamesResponse, error)

	// ListMetricRollupsWithResponse request
	ListMetricRollupsWithResponse(ctx context.Context, params *ListMetricRollupsParams, reqEditors ...RequestEditorFn) (*ListMetricRollupsResponse, error)

	// ListMetricsWithResponse request
	ListMetricsWithResponse(ctx context.Context, params *ListMetricsParams, reqEditors ...RequestEditorFn) (*ListMetricsResponse, error)

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

	BulkIngestMetricsWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body BulkIngestMetricsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkIngestMetricsResponse, error)

	// ListPaymentMethodsWithResponse request
	ListPaymentMethodsWithResponse(ctx context.Context, params *ListPaymentMethodsParams, reqEditors ...RequestEditorFn) (*ListPaymentMethodsResponse, error)

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

	CreatePaymentMethodWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreatePaymentMethodApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePaymentMethodResponse, error)

	// DeletePaymentMethodWithResponse request
	DeletePaymentMethodWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeletePaymentMethodResponse, error)

	// GetPaymentMethodWithResponse request
	GetPaymentMethodWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetPaymentMethodResponse, error)

	// UpdatePaymentMethodWithBodyWithResponse request with any body
	UpdatePaymentMethodWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePaymentMethodResponse, error)

	UpdatePaymentMethodWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id openapi_types.UUID, body UpdatePaymentMethodApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePaymentMethodResponse, error)

	// SetDefaultPaymentMethodWithResponse request
	SetDefaultPaymentMethodWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*SetDefaultPaymentMethodResponse, error)

	// ListPlansWithResponse request
	ListPlansWithResponse(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*ListPlansResponse, error)

	// ListProductsWithResponse request
	ListProductsWithResponse(ctx context.Context, params *ListProductsParams, reqEditors ...RequestEditorFn) (*ListProductsResponse, error)

	// ListServicesWithResponse request
	ListServicesWithResponse(ctx context.Context, params *ListServicesParams, reqEditors ...RequestEditorFn) (*ListServicesResponse, error)

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

	CreateServiceWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body CreateServiceApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)

	// DeleteServiceWithResponse request
	DeleteServiceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error)

	// GetServiceWithResponse request
	GetServiceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetServiceResponse, error)

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

	UpdateServiceWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id string, body UpdateServiceApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)

	// ListUsersWithResponse request
	ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)

	// GetCurrentUserWithResponse request
	GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)

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

	UpdateCurrentUserWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body UpdateCurrentUserApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error)

	// GetUserSettingsWithResponse request
	GetUserSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserSettingsResponse, error)

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

	PutUserSettingsWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, body PutUserSettingsApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutUserSettingsResponse, error)

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

	PutUserSettingsKeyWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, key string, body PutUserSettingsKeyApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PutUserSettingsKeyResponse, error)

	// RemoveUserWithResponse request
	RemoveUserWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveUserResponse, error)

	// GetUserWithResponse request
	GetUserWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetUserResponse, error)

	// UpdateUserRoleWithBodyWithResponse request with any body
	UpdateUserRoleWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserRoleResponse, error)

	UpdateUserRoleWithApplicationVndAPIPlusJSONBodyWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateUserRoleApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserRoleResponse, error)
}

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

type ContactTopic

type ContactTopic string

ContactTopic Topic options accepted on contact-us submissions.

const (
	ContactTopicAccount        ContactTopic = "account"
	ContactTopicBilling        ContactTopic = "billing"
	ContactTopicFeatureRequest ContactTopic = "feature_request"
	ContactTopicOther          ContactTopic = "other"
	ContactTopicTechnical      ContactTopic = "technical"
)

Defines values for ContactTopic.

func (ContactTopic) Valid

func (e ContactTopic) Valid() bool

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

type Context

type Context struct {
	// Attributes Observed attribute values for this context instance. The key set is conventionally aligned with the parent context type's known attribute keys, but additional keys are accepted.
	Attributes *map[string]interface{} `json:"attributes,omitempty"`

	// ContextType Key of the context type this instance belongs to (e.g. `user`, `account`).
	ContextType string `json:"context_type"`

	// CreatedAt When the context instance was first registered.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Key Entity identifier within the context type (e.g. `alice-123`). Together with `context_type` it forms the composite `id` `context_type:key`. Always populated in responses; declared optional only so SDK consumers can construct a draft Context without a key. Set by the bulk-register API; not editable.
	Key *string `json:"key,omitempty"`

	// Name Human-readable display name for the context instance.
	Name *string `json:"name,omitempty"`

	// UpdatedAt When the context instance was last modified.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Context A specific instance of a context type — for example, a particular user, account, or device — together with the attributes observed on it.

Context instances are addressed by a composite identifier of the form `context_type:key` (e.g. `user:alice-123`).

type ContextBatchResponse

type ContextBatchResponse struct {
	// Registered Number of context instances that were created or updated.
	Registered int `json:"registered"`
}

ContextBatchResponse Summary returned by the bulk context registration endpoint.

type ContextBulkItem

type ContextBulkItem struct {
	// Attributes Observed attribute values for this context instance.
	Attributes *map[string]interface{} `json:"attributes,omitempty"`

	// Key Entity identifier within the context type, e.g. `user-123`.
	Key string `json:"key"`

	// Type Key of the context type this instance belongs to (e.g. `user`, `account`, `device`).
	Type string `json:"type"`
}

ContextBulkItem One context instance in a bulk registration payload.

type ContextBulkRegister

type ContextBulkRegister struct {
	// Contexts One context instance per entry.
	Contexts []ContextBulkItem `json:"contexts"`
}

ContextBulkRegister Bulk registration request body for the contexts endpoint.

type ContextListResponse

type ContextListResponse struct {
	Data []ContextResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

ContextListResponse JSON:API collection response for context instances.

type ContextRequest added in v3.0.31

type ContextRequest struct {
	// Data JSON:API resource envelope for a context instance.
	//
	// `id` is the composite identifier `context_type:key` (e.g. `user:alice-123`).
	Data ContextResource `json:"data"`
}

ContextRequest JSON:API request envelope for creating or updating a context instance.

type ContextResource

type ContextResource struct {
	// Attributes A specific instance of a context type — for example, a particular
	// user, account, or device — together with the attributes observed on it.
	//
	// Context instances are addressed by a composite identifier of the form
	// `context_type:key` (e.g. `user:alice-123`).
	Attributes Context             `json:"attributes"`
	Id         *string             `json:"id,omitempty"`
	Type       ContextResourceType `json:"type"`
}

ContextResource JSON:API resource envelope for a context instance.

`id` is the composite identifier `context_type:key` (e.g. `user:alice-123`).

type ContextResourceType

type ContextResourceType string

ContextResourceType defines model for ContextResource.Type.

const (
	ContextResourceTypeContext ContextResourceType = "context"
)

Defines values for ContextResourceType.

func (ContextResourceType) Valid

func (e ContextResourceType) Valid() bool

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

type ContextResponse

type ContextResponse struct {
	// Data JSON:API resource envelope for a context instance.
	//
	// `id` is the composite identifier `context_type:key` (e.g. `user:alice-123`).
	Data ContextResource `json:"data"`
}

ContextResponse JSON:API single-resource response envelope for a context instance.

type ContextType

type ContextType struct {
	// Attributes Map of known attribute key to per-attribute metadata. The metadata object is free-form and may be empty. Keys grow as new attributes are observed on context instances of this type.
	Attributes *map[string]interface{} `json:"attributes,omitempty"`

	// CreatedAt When the context type was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Name Display label for the context type, e.g. `User`, `Account`, or `Device`.
	Name string `json:"name"`

	// UpdatedAt When the context type was last modified.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

ContextType A kind of context — for example, `user`, `account`, or `device` — that groups together context instances sharing a common set of attributes.

The known attribute keys for the type accumulate as instances are registered; each key carries an optional metadata object describing it.

type ContextTypeListResponse

type ContextTypeListResponse struct {
	Data []ContextTypeResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

ContextTypeListResponse JSON:API collection response for context types.

type ContextTypeRequest added in v3.0.31

type ContextTypeRequest struct {
	// Data JSON:API resource envelope for a context type.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data ContextTypeResource `json:"data"`
}

ContextTypeRequest JSON:API request envelope for creating or updating a context type.

type ContextTypeResource

type ContextTypeResource struct {
	// Attributes A kind of context — for example, `user`, `account`, or `device` — that
	// groups together context instances sharing a common set of attributes.
	//
	// The known attribute keys for the type accumulate as instances are
	// registered; each key carries an optional metadata object describing it.
	Attributes ContextType             `json:"attributes"`
	Id         *string                 `json:"id,omitempty"`
	Type       ContextTypeResourceType `json:"type"`
}

ContextTypeResource JSON:API resource envelope for a context type.

`id` must not be specified for create requests (the server assigns it).

type ContextTypeResourceType

type ContextTypeResourceType string

ContextTypeResourceType defines model for ContextTypeResource.Type.

const (
	ContextTypeResourceTypeContextType ContextTypeResourceType = "context_type"
)

Defines values for ContextTypeResourceType.

func (ContextTypeResourceType) Valid

func (e ContextTypeResourceType) Valid() bool

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

type ContextTypeResponse

type ContextTypeResponse struct {
	// Data JSON:API resource envelope for a context type.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data ContextTypeResource `json:"data"`
}

ContextTypeResponse JSON:API single-resource response envelope for a context type.

type ContextValue added in v3.0.45

type ContextValue struct {
	// Value The distinct attribute value as it appears on at least one context instance of the requested type.
	Value string `json:"value"`
}

ContextValue A single distinct attribute value observed across context instances.

Returned by `GET /api/v1/context_values` to power typeahead pickers in rule-building UIs. The set of values reflects what has been registered via the bulk-context endpoint — it is observational, not a customer- declared enumeration.

type ContextValueListResponse added in v3.0.45

type ContextValueListResponse struct {
	Data []ContextValueResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

ContextValueListResponse JSON:API collection response envelope for distinct context values.

type ContextValueResource added in v3.0.45

type ContextValueResource struct {
	// Attributes A single distinct attribute value observed across context instances.
	//
	// Returned by `GET /api/v1/context_values` to power typeahead pickers in
	// rule-building UIs. The set of values reflects what has been registered
	// via the bulk-context endpoint — it is observational, not a customer-
	// declared enumeration.
	Attributes ContextValue             `json:"attributes"`
	Id         *string                  `json:"id,omitempty"`
	Type       ContextValueResourceType `json:"type"`
}

ContextValueResource JSON:API resource envelope for a distinct context-attribute value.

`id` is the value itself.

type ContextValueResourceType added in v3.0.45

type ContextValueResourceType string

ContextValueResourceType defines model for ContextValueResource.Type.

const (
	ContextValueResourceTypeContextValue ContextValueResourceType = "context_value"
)

Defines values for ContextValueResourceType.

func (ContextValueResourceType) Valid added in v3.0.45

func (e ContextValueResourceType) Valid() bool

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

type CreateApiKeyApplicationVndAPIPlusJSONRequestBody

type CreateApiKeyApplicationVndAPIPlusJSONRequestBody = ApiKeyRequest

CreateApiKeyApplicationVndAPIPlusJSONRequestBody defines body for CreateApiKey for application/vnd.api+json ContentType.

type CreateApiKeyResponse

type CreateApiKeyResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON201 *ApiKeyResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseCreateApiKeyResponse

func ParseCreateApiKeyResponse(rsp *http.Response) (*CreateApiKeyResponse, error)

ParseCreateApiKeyResponse parses an HTTP response from a CreateApiKeyWithResponse call

func (CreateApiKeyResponse) ContentType

func (r CreateApiKeyResponse) ContentType() string

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

func (CreateApiKeyResponse) Status

func (r CreateApiKeyResponse) Status() string

Status returns HTTPResponse.Status

func (CreateApiKeyResponse) StatusCode

func (r CreateApiKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateContextTypeApplicationVndAPIPlusJSONRequestBody

type CreateContextTypeApplicationVndAPIPlusJSONRequestBody = ContextTypeRequest

CreateContextTypeApplicationVndAPIPlusJSONRequestBody defines body for CreateContextType for application/vnd.api+json ContentType.

type CreateContextTypeResponse

type CreateContextTypeResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON201 *ContextTypeResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseCreateContextTypeResponse

func ParseCreateContextTypeResponse(rsp *http.Response) (*CreateContextTypeResponse, error)

ParseCreateContextTypeResponse parses an HTTP response from a CreateContextTypeWithResponse call

func (CreateContextTypeResponse) ContentType

func (r CreateContextTypeResponse) ContentType() string

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

func (CreateContextTypeResponse) Status

func (r CreateContextTypeResponse) Status() string

Status returns HTTPResponse.Status

func (CreateContextTypeResponse) StatusCode

func (r CreateContextTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateEmailRegistrationApplicationVndAPIPlusJSONBody

type CreateEmailRegistrationApplicationVndAPIPlusJSONBody map[string]interface{}

CreateEmailRegistrationApplicationVndAPIPlusJSONBody defines parameters for CreateEmailRegistration.

type CreateEmailRegistrationApplicationVndAPIPlusJSONRequestBody

type CreateEmailRegistrationApplicationVndAPIPlusJSONRequestBody CreateEmailRegistrationApplicationVndAPIPlusJSONBody

CreateEmailRegistrationApplicationVndAPIPlusJSONRequestBody defines body for CreateEmailRegistration for application/vnd.api+json ContentType.

type CreateEmailRegistrationResponse

type CreateEmailRegistrationResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON409 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseCreateEmailRegistrationResponse

func ParseCreateEmailRegistrationResponse(rsp *http.Response) (*CreateEmailRegistrationResponse, error)

ParseCreateEmailRegistrationResponse parses an HTTP response from a CreateEmailRegistrationWithResponse call

func (CreateEmailRegistrationResponse) ContentType

func (r CreateEmailRegistrationResponse) ContentType() string

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

func (CreateEmailRegistrationResponse) Status

Status returns HTTPResponse.Status

func (CreateEmailRegistrationResponse) StatusCode

func (r CreateEmailRegistrationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateEnvironmentApplicationVndAPIPlusJSONRequestBody

type CreateEnvironmentApplicationVndAPIPlusJSONRequestBody = EnvironmentCreateRequest

CreateEnvironmentApplicationVndAPIPlusJSONRequestBody defines body for CreateEnvironment for application/vnd.api+json ContentType.

type CreateEnvironmentResponse

type CreateEnvironmentResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON201 *EnvironmentResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseCreateEnvironmentResponse

func ParseCreateEnvironmentResponse(rsp *http.Response) (*CreateEnvironmentResponse, error)

ParseCreateEnvironmentResponse parses an HTTP response from a CreateEnvironmentWithResponse call

func (CreateEnvironmentResponse) ContentType

func (r CreateEnvironmentResponse) ContentType() string

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

func (CreateEnvironmentResponse) Status

func (r CreateEnvironmentResponse) Status() string

Status returns HTTPResponse.Status

func (CreateEnvironmentResponse) StatusCode

func (r CreateEnvironmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateInvitationsApplicationVndAPIPlusJSONRequestBody

type CreateInvitationsApplicationVndAPIPlusJSONRequestBody = InvitationBulkCreateRequest

CreateInvitationsApplicationVndAPIPlusJSONRequestBody defines body for CreateInvitations for application/vnd.api+json ContentType.

type CreateInvitationsResponse

type CreateInvitationsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON201 *InvitationListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseCreateInvitationsResponse

func ParseCreateInvitationsResponse(rsp *http.Response) (*CreateInvitationsResponse, error)

ParseCreateInvitationsResponse parses an HTTP response from a CreateInvitationsWithResponse call

func (CreateInvitationsResponse) ContentType

func (r CreateInvitationsResponse) ContentType() string

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

func (CreateInvitationsResponse) Status

func (r CreateInvitationsResponse) Status() string

Status returns HTTPResponse.Status

func (CreateInvitationsResponse) StatusCode

func (r CreateInvitationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePaymentMethodApplicationVndAPIPlusJSONRequestBody

type CreatePaymentMethodApplicationVndAPIPlusJSONRequestBody = AddPaymentMethodBody

CreatePaymentMethodApplicationVndAPIPlusJSONRequestBody defines body for CreatePaymentMethod for application/vnd.api+json ContentType.

type CreatePaymentMethodResponse

type CreatePaymentMethodResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON201 *PaymentMethodResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseCreatePaymentMethodResponse

func ParseCreatePaymentMethodResponse(rsp *http.Response) (*CreatePaymentMethodResponse, error)

ParseCreatePaymentMethodResponse parses an HTTP response from a CreatePaymentMethodWithResponse call

func (CreatePaymentMethodResponse) ContentType

func (r CreatePaymentMethodResponse) ContentType() string

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

func (CreatePaymentMethodResponse) Status

Status returns HTTPResponse.Status

func (CreatePaymentMethodResponse) StatusCode

func (r CreatePaymentMethodResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateServiceApplicationVndAPIPlusJSONRequestBody

type CreateServiceApplicationVndAPIPlusJSONRequestBody = ServiceCreateRequest

CreateServiceApplicationVndAPIPlusJSONRequestBody defines body for CreateService for application/vnd.api+json ContentType.

type CreateServiceResponse

type CreateServiceResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON201 *ServiceResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseCreateServiceResponse

func ParseCreateServiceResponse(rsp *http.Response) (*CreateServiceResponse, error)

ParseCreateServiceResponse parses an HTTP response from a CreateServiceWithResponse call

func (CreateServiceResponse) ContentType

func (r CreateServiceResponse) ContentType() string

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

func (CreateServiceResponse) Status

func (r CreateServiceResponse) Status() string

Status returns HTTPResponse.Status

func (CreateServiceResponse) StatusCode

func (r CreateServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteAccountResponse

type DeleteAccountResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseDeleteAccountResponse

func ParseDeleteAccountResponse(rsp *http.Response) (*DeleteAccountResponse, error)

ParseDeleteAccountResponse parses an HTTP response from a DeleteAccountWithResponse call

func (DeleteAccountResponse) ContentType

func (r DeleteAccountResponse) ContentType() string

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

func (DeleteAccountResponse) Status

func (r DeleteAccountResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteAccountResponse) StatusCode

func (r DeleteAccountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteApiKeyResponse

type DeleteApiKeyResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseDeleteApiKeyResponse

func ParseDeleteApiKeyResponse(rsp *http.Response) (*DeleteApiKeyResponse, error)

ParseDeleteApiKeyResponse parses an HTTP response from a DeleteApiKeyWithResponse call

func (DeleteApiKeyResponse) ContentType

func (r DeleteApiKeyResponse) ContentType() string

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

func (DeleteApiKeyResponse) Status

func (r DeleteApiKeyResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteApiKeyResponse) StatusCode

func (r DeleteApiKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteContextResponse

type DeleteContextResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseDeleteContextResponse

func ParseDeleteContextResponse(rsp *http.Response) (*DeleteContextResponse, error)

ParseDeleteContextResponse parses an HTTP response from a DeleteContextWithResponse call

func (DeleteContextResponse) ContentType

func (r DeleteContextResponse) ContentType() string

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

func (DeleteContextResponse) Status

func (r DeleteContextResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteContextResponse) StatusCode

func (r DeleteContextResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteContextTypeResponse

type DeleteContextTypeResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseDeleteContextTypeResponse

func ParseDeleteContextTypeResponse(rsp *http.Response) (*DeleteContextTypeResponse, error)

ParseDeleteContextTypeResponse parses an HTTP response from a DeleteContextTypeWithResponse call

func (DeleteContextTypeResponse) ContentType

func (r DeleteContextTypeResponse) ContentType() string

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

func (DeleteContextTypeResponse) Status

func (r DeleteContextTypeResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteContextTypeResponse) StatusCode

func (r DeleteContextTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteEnvironmentParams added in v3.0.38

type DeleteEnvironmentParams struct {
	// Cascade When `true`, remove every flag rule, env-level flag default, config override, and logger override scoped to this environment before deleting the environment row.
	Cascade *bool `form:"cascade,omitempty" json:"cascade,omitempty"`
}

DeleteEnvironmentParams defines parameters for DeleteEnvironment.

type DeleteEnvironmentResponse

type DeleteEnvironmentResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseDeleteEnvironmentResponse

func ParseDeleteEnvironmentResponse(rsp *http.Response) (*DeleteEnvironmentResponse, error)

ParseDeleteEnvironmentResponse parses an HTTP response from a DeleteEnvironmentWithResponse call

func (DeleteEnvironmentResponse) ContentType

func (r DeleteEnvironmentResponse) ContentType() string

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

func (DeleteEnvironmentResponse) Status

func (r DeleteEnvironmentResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteEnvironmentResponse) StatusCode

func (r DeleteEnvironmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeletePaymentMethodResponse

type DeletePaymentMethodResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseDeletePaymentMethodResponse

func ParseDeletePaymentMethodResponse(rsp *http.Response) (*DeletePaymentMethodResponse, error)

ParseDeletePaymentMethodResponse parses an HTTP response from a DeletePaymentMethodWithResponse call

func (DeletePaymentMethodResponse) ContentType

func (r DeletePaymentMethodResponse) ContentType() string

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

func (DeletePaymentMethodResponse) Status

Status returns HTTPResponse.Status

func (DeletePaymentMethodResponse) StatusCode

func (r DeletePaymentMethodResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteServiceResponse

type DeleteServiceResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseDeleteServiceResponse

func ParseDeleteServiceResponse(rsp *http.Response) (*DeleteServiceResponse, error)

ParseDeleteServiceResponse parses an HTTP response from a DeleteServiceWithResponse call

func (DeleteServiceResponse) ContentType

func (r DeleteServiceResponse) ContentType() string

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

func (DeleteServiceResponse) Status

func (r DeleteServiceResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteServiceResponse) StatusCode

func (r DeleteServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DiscountTier added in v3.0.68

type DiscountTier struct {
	// PercentOff Discount percentage applied to every paid subscription item when the customer holds at least “products_count“ paid products. 0 means no discount at this tier.
	PercentOff int `json:"percent_off"`

	// ProductsCount Minimum number of paid product subscriptions a customer must hold for this tier's discount to apply. Counts above the highest defined tier are clamped to that tier.
	ProductsCount int `json:"products_count"`
}

DiscountTier A single tier of the multi-product volume discount schedule.

type DiscountTierListResponse added in v3.0.68

type DiscountTierListResponse struct {
	Data []DiscountTierResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

DiscountTierListResponse JSON:API collection response for the volume discount schedule.

type DiscountTierResource added in v3.0.68

type DiscountTierResource struct {
	// Attributes A single tier of the multi-product volume discount schedule.
	Attributes DiscountTier             `json:"attributes"`
	Id         *string                  `json:"id,omitempty"`
	Type       DiscountTierResourceType `json:"type"`
}

DiscountTierResource JSON:API resource envelope for a volume discount tier.

type DiscountTierResourceType added in v3.0.68

type DiscountTierResourceType string

DiscountTierResourceType defines model for DiscountTierResource.Type.

const (
	DiscountTierResourceTypeDiscountTier DiscountTierResourceType = "discount_tier"
)

Defines values for DiscountTierResourceType.

func (DiscountTierResourceType) Valid added in v3.0.68

func (e DiscountTierResourceType) Valid() bool

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

type Email

type Email struct {
	// Body Free-form text of the message. Trimmed before validation.
	Body string `json:"body"`

	// SentAt When the message was accepted by the server.
	SentAt *time.Time `json:"sent_at,omitempty"`

	// Topic Topic options accepted on contact-us submissions.
	Topic ContactTopic `json:"topic"`
}

Email A contact-us submission. Sending the resource delivers a support ticket and an auto-response email; nothing is persisted. The `id` returned on the response is a per-request correlation identifier.

type EmailResource

type EmailResource struct {
	// Attributes A contact-us submission. Sending the resource delivers a support
	// ticket and an auto-response email; nothing is persisted. The `id`
	// returned on the response is a per-request correlation identifier.
	Attributes Email             `json:"attributes"`
	Id         *string           `json:"id,omitempty"`
	Type       EmailResourceType `json:"type"`
}

EmailResource JSON:API resource envelope for a contact-us submission.

`id` must not be specified for create requests (the server assigns it).

type EmailResourceType

type EmailResourceType string

EmailResourceType defines model for EmailResource.Type.

const (
	EmailResourceTypeEmail EmailResourceType = "email"
)

Defines values for EmailResourceType.

func (EmailResourceType) Valid

func (e EmailResourceType) Valid() bool

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

type EmailResponse

type EmailResponse struct {
	// Data JSON:API resource envelope for a contact-us submission.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data EmailResource `json:"data"`
}

EmailResponse JSON:API single-resource response envelope for a contact-us message.

type Environment

type Environment struct {
	// Classification `STANDARD` for environments deliberately created (and shown by default in the environment grid); `AD_HOC` for auto-discovered environments seen in SDK traffic (hidden from the default view). Case-insensitive on input. Independent of the `managed` flag.
	Classification *EnvironmentClassification `json:"classification,omitempty"`

	// Color Display color used by the console to badge the environment. Accepts any CSS color string.
	Color *string `json:"color,omitempty"`

	// CreatedAt When the environment was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Managed When `true`, per-environment resource values can be set against this environment and it counts toward the account's managed-environments quota. When `false`, the environment is view-only: existing values are displayed for comparison but no new values can be written. Promotion and demotion flip this boolean via `PUT /api/v1/environments/{id}`; promotion is subject to the quota.
	Managed *bool `json:"managed,omitempty"`

	// Name Human-readable name for the environment.
	Name string `json:"name"`

	// UpdatedAt When the environment was last modified.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Environment A named deployment context — for example, `production`, `staging`, or `development`. Resources scoped to an environment (such as config items and feature flags) are evaluated against environment-specific values.

type EnvironmentClassification added in v3.0.5

type EnvironmentClassification string

EnvironmentClassification `STANDARD` for environments deliberately created (and shown by default in the environment grid); `AD_HOC` for auto-discovered environments seen in SDK traffic (hidden from the default view). Case-insensitive on input. Independent of the `managed` flag.

const (
	ADHOC    EnvironmentClassification = "AD_HOC"
	STANDARD EnvironmentClassification = "STANDARD"
)

Defines values for EnvironmentClassification.

func (EnvironmentClassification) Valid added in v3.0.5

func (e EnvironmentClassification) Valid() bool

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

type EnvironmentCreateRequest added in v3.0.85

type EnvironmentCreateRequest struct {
	// Data JSON:API resource envelope for creating an environment (id required).
	Data EnvironmentCreateResource `json:"data"`
}

EnvironmentCreateRequest JSON:API request envelope for creating an environment.

Distinct from :class:`EnvironmentRequest` because create requires caller-supplied “data.id“ while update does not (the id lives in the URL path).

type EnvironmentCreateResource added in v3.0.85

type EnvironmentCreateResource struct {
	// Attributes A named deployment context — for example, `production`, `staging`, or
	// `development`. Resources scoped to an environment (such as config items
	// and feature flags) are evaluated against environment-specific values.
	Attributes Environment `json:"attributes"`

	// Id Client-supplied resource id.
	Id   string                        `json:"id"`
	Type EnvironmentCreateResourceType `json:"type"`
}

EnvironmentCreateResource JSON:API resource envelope for creating an environment (id required).

type EnvironmentCreateResourceType added in v3.0.85

type EnvironmentCreateResourceType string

EnvironmentCreateResourceType defines model for EnvironmentCreateResource.Type.

const (
	EnvironmentCreateResourceTypeEnvironment EnvironmentCreateResourceType = "environment"
)

Defines values for EnvironmentCreateResourceType.

func (EnvironmentCreateResourceType) Valid added in v3.0.85

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

type EnvironmentListResponse

type EnvironmentListResponse struct {
	Data []EnvironmentResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

EnvironmentListResponse JSON:API collection response for environments.

type EnvironmentRequest added in v3.0.31

type EnvironmentRequest struct {
	// Data JSON:API resource envelope for an environment.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data EnvironmentResource `json:"data"`
}

EnvironmentRequest JSON:API request envelope for updating an environment.

type EnvironmentResource

type EnvironmentResource struct {
	// Attributes A named deployment context — for example, `production`, `staging`, or
	// `development`. Resources scoped to an environment (such as config items
	// and feature flags) are evaluated against environment-specific values.
	Attributes Environment             `json:"attributes"`
	Id         *string                 `json:"id,omitempty"`
	Type       EnvironmentResourceType `json:"type"`
}

EnvironmentResource JSON:API resource envelope for an environment.

`id` must not be specified for create requests (the server assigns it).

type EnvironmentResourceType

type EnvironmentResourceType string

EnvironmentResourceType defines model for EnvironmentResource.Type.

const (
	EnvironmentResourceTypeEnvironment EnvironmentResourceType = "environment"
)

Defines values for EnvironmentResourceType.

func (EnvironmentResourceType) Valid

func (e EnvironmentResourceType) Valid() bool

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

type EnvironmentResponse

type EnvironmentResponse struct {
	// Data JSON:API resource envelope for an environment.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data EnvironmentResource `json:"data"`
}

EnvironmentResponse JSON:API single-resource response envelope for an environment.

type EnvironmentUsage added in v3.0.38

type EnvironmentUsage struct {
	// ConfigOverrides Number of config-item overrides keyed to this environment, summed across all configs.
	ConfigOverrides int `json:"config_overrides"`

	// FlagEnvDefaults Number of feature flags that declare an environment-level default value for this environment.
	FlagEnvDefaults int `json:"flag_env_defaults"`

	// FlagRules Number of feature-flag targeting rules scoped to this environment. Each flag may contribute multiple rules.
	FlagRules int `json:"flag_rules"`

	// LoggerOverrides Number of loggers with an environment-level level override for this environment.
	LoggerOverrides int `json:"logger_overrides"`
}

EnvironmentUsage Counts of references to an environment held by other resources.

Returned by `GET /environments/{id}/usage` so the console can warn the user about per-environment configuration that would survive a bare environment-row deletion. Each count is the number of distinct referencing resources, not the number of rule entries within them.

type EnvironmentUsageResource added in v3.0.38

type EnvironmentUsageResource struct {
	// Attributes Counts of references to an environment held by other resources.
	//
	// Returned by `GET /environments/{id}/usage` so the console can warn
	// the user about per-environment configuration that would survive a
	// bare environment-row deletion. Each count is the number of distinct
	// referencing resources, not the number of rule entries within them.
	Attributes EnvironmentUsage             `json:"attributes"`
	Id         *string                      `json:"id,omitempty"`
	Type       EnvironmentUsageResourceType `json:"type"`
}

EnvironmentUsageResource JSON:API resource envelope for an environment-usage report.

type EnvironmentUsageResourceType added in v3.0.38

type EnvironmentUsageResourceType string

EnvironmentUsageResourceType defines model for EnvironmentUsageResource.Type.

const (
	EnvironmentUsageResourceTypeEnvironmentUsage EnvironmentUsageResourceType = "environment_usage"
)

Defines values for EnvironmentUsageResourceType.

func (EnvironmentUsageResourceType) Valid added in v3.0.38

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

type EnvironmentUsageResponse added in v3.0.38

type EnvironmentUsageResponse struct {
	// Data JSON:API resource envelope for an environment-usage report.
	Data EnvironmentUsageResource `json:"data"`
}

EnvironmentUsageResponse JSON:API single-resource response envelope for environment-usage counts.

type Error

type Error struct {
	Detail *string                 `json:"detail,omitempty"`
	Source *map[string]interface{} `json:"source,omitempty"`
	Status string                  `json:"status"`
	Title  string                  `json:"title"`
}

Error Single JSON:API error object.

type ErrorResponse

type ErrorResponse struct {
	Errors []Error `json:"errors"`
}

ErrorResponse JSON:API error response envelope.

type ExecuteSetupIntentResponse

type ExecuteSetupIntentResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *SetupIntentResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseExecuteSetupIntentResponse

func ParseExecuteSetupIntentResponse(rsp *http.Response) (*ExecuteSetupIntentResponse, error)

ParseExecuteSetupIntentResponse parses an HTTP response from a ExecuteSetupIntentWithResponse call

func (ExecuteSetupIntentResponse) ContentType

func (r ExecuteSetupIntentResponse) ContentType() string

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

func (ExecuteSetupIntentResponse) Status

Status returns HTTPResponse.Status

func (ExecuteSetupIntentResponse) StatusCode

func (r ExecuteSetupIntentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAccountResponse

type GetAccountResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *AccountResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetAccountResponse

func ParseGetAccountResponse(rsp *http.Response) (*GetAccountResponse, error)

ParseGetAccountResponse parses an HTTP response from a GetAccountWithResponse call

func (GetAccountResponse) ContentType

func (r GetAccountResponse) ContentType() string

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

func (GetAccountResponse) Status

func (r GetAccountResponse) Status() string

Status returns HTTPResponse.Status

func (GetAccountResponse) StatusCode

func (r GetAccountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAccountSettingsResponse

type GetAccountSettingsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *map[string]interface{}
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetAccountSettingsResponse

func ParseGetAccountSettingsResponse(rsp *http.Response) (*GetAccountSettingsResponse, error)

ParseGetAccountSettingsResponse parses an HTTP response from a GetAccountSettingsWithResponse call

func (GetAccountSettingsResponse) ContentType

func (r GetAccountSettingsResponse) ContentType() string

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

func (GetAccountSettingsResponse) Status

Status returns HTTPResponse.Status

func (GetAccountSettingsResponse) StatusCode

func (r GetAccountSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetApiKeyResponse

type GetApiKeyResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ApiKeyResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetApiKeyResponse

func ParseGetApiKeyResponse(rsp *http.Response) (*GetApiKeyResponse, error)

ParseGetApiKeyResponse parses an HTTP response from a GetApiKeyWithResponse call

func (GetApiKeyResponse) ContentType

func (r GetApiKeyResponse) ContentType() string

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

func (GetApiKeyResponse) Status

func (r GetApiKeyResponse) Status() string

Status returns HTTPResponse.Status

func (GetApiKeyResponse) StatusCode

func (r GetApiKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetContextResponse

type GetContextResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ContextResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetContextResponse

func ParseGetContextResponse(rsp *http.Response) (*GetContextResponse, error)

ParseGetContextResponse parses an HTTP response from a GetContextWithResponse call

func (GetContextResponse) ContentType

func (r GetContextResponse) ContentType() string

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

func (GetContextResponse) Status

func (r GetContextResponse) Status() string

Status returns HTTPResponse.Status

func (GetContextResponse) StatusCode

func (r GetContextResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetContextTypeResponse

type GetContextTypeResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ContextTypeResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetContextTypeResponse

func ParseGetContextTypeResponse(rsp *http.Response) (*GetContextTypeResponse, error)

ParseGetContextTypeResponse parses an HTTP response from a GetContextTypeWithResponse call

func (GetContextTypeResponse) ContentType

func (r GetContextTypeResponse) ContentType() string

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

func (GetContextTypeResponse) Status

func (r GetContextTypeResponse) Status() string

Status returns HTTPResponse.Status

func (GetContextTypeResponse) StatusCode

func (r GetContextTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCurrentSubscriptionResponse added in v3.0.43

type GetCurrentSubscriptionResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *SubscriptionResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetCurrentSubscriptionResponse added in v3.0.43

func ParseGetCurrentSubscriptionResponse(rsp *http.Response) (*GetCurrentSubscriptionResponse, error)

ParseGetCurrentSubscriptionResponse parses an HTTP response from a GetCurrentSubscriptionWithResponse call

func (GetCurrentSubscriptionResponse) ContentType added in v3.0.43

func (r GetCurrentSubscriptionResponse) ContentType() string

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

func (GetCurrentSubscriptionResponse) Status added in v3.0.43

Status returns HTTPResponse.Status

func (GetCurrentSubscriptionResponse) StatusCode added in v3.0.43

func (r GetCurrentSubscriptionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCurrentUserResponse

type GetCurrentUserResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *UserResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetCurrentUserResponse

func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error)

ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call

func (GetCurrentUserResponse) ContentType

func (r GetCurrentUserResponse) ContentType() string

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

func (GetCurrentUserResponse) Status

func (r GetCurrentUserResponse) Status() string

Status returns HTTPResponse.Status

func (GetCurrentUserResponse) StatusCode

func (r GetCurrentUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetEnvironmentResponse

type GetEnvironmentResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *EnvironmentResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetEnvironmentResponse

func ParseGetEnvironmentResponse(rsp *http.Response) (*GetEnvironmentResponse, error)

ParseGetEnvironmentResponse parses an HTTP response from a GetEnvironmentWithResponse call

func (GetEnvironmentResponse) ContentType

func (r GetEnvironmentResponse) ContentType() string

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

func (GetEnvironmentResponse) Status

func (r GetEnvironmentResponse) Status() string

Status returns HTTPResponse.Status

func (GetEnvironmentResponse) StatusCode

func (r GetEnvironmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetEnvironmentUsageResponse added in v3.0.38

type GetEnvironmentUsageResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *EnvironmentUsageResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetEnvironmentUsageResponse added in v3.0.38

func ParseGetEnvironmentUsageResponse(rsp *http.Response) (*GetEnvironmentUsageResponse, error)

ParseGetEnvironmentUsageResponse parses an HTTP response from a GetEnvironmentUsageWithResponse call

func (GetEnvironmentUsageResponse) ContentType added in v3.0.38

func (r GetEnvironmentUsageResponse) ContentType() string

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

func (GetEnvironmentUsageResponse) Status added in v3.0.38

Status returns HTTPResponse.Status

func (GetEnvironmentUsageResponse) StatusCode added in v3.0.38

func (r GetEnvironmentUsageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInvoiceResponse

type GetInvoiceResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *InvoiceSingleResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON406 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
	ApplicationvndApiJSON502 *ErrorResponse
}

func ParseGetInvoiceResponse

func ParseGetInvoiceResponse(rsp *http.Response) (*GetInvoiceResponse, error)

ParseGetInvoiceResponse parses an HTTP response from a GetInvoiceWithResponse call

func (GetInvoiceResponse) ContentType

func (r GetInvoiceResponse) ContentType() string

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

func (GetInvoiceResponse) Status

func (r GetInvoiceResponse) Status() string

Status returns HTTPResponse.Status

func (GetInvoiceResponse) StatusCode

func (r GetInvoiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPaymentMethodResponse

type GetPaymentMethodResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *PaymentMethodResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetPaymentMethodResponse

func ParseGetPaymentMethodResponse(rsp *http.Response) (*GetPaymentMethodResponse, error)

ParseGetPaymentMethodResponse parses an HTTP response from a GetPaymentMethodWithResponse call

func (GetPaymentMethodResponse) ContentType

func (r GetPaymentMethodResponse) ContentType() string

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

func (GetPaymentMethodResponse) Status

func (r GetPaymentMethodResponse) Status() string

Status returns HTTPResponse.Status

func (GetPaymentMethodResponse) StatusCode

func (r GetPaymentMethodResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceResponse

type GetServiceResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ServiceResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetServiceResponse

func ParseGetServiceResponse(rsp *http.Response) (*GetServiceResponse, error)

ParseGetServiceResponse parses an HTTP response from a GetServiceWithResponse call

func (GetServiceResponse) ContentType

func (r GetServiceResponse) ContentType() string

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

func (GetServiceResponse) Status

func (r GetServiceResponse) Status() string

Status returns HTTPResponse.Status

func (GetServiceResponse) StatusCode

func (r GetServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserResponse

type GetUserResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *UserResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetUserResponse

func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)

ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call

func (GetUserResponse) ContentType

func (r GetUserResponse) ContentType() string

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

func (GetUserResponse) Status

func (r GetUserResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserResponse) StatusCode

func (r GetUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserSettingsResponse

type GetUserSettingsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *map[string]interface{}
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseGetUserSettingsResponse

func ParseGetUserSettingsResponse(rsp *http.Response) (*GetUserSettingsResponse, error)

ParseGetUserSettingsResponse parses an HTTP response from a GetUserSettingsWithResponse call

func (GetUserSettingsResponse) ContentType

func (r GetUserSettingsResponse) ContentType() string

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

func (GetUserSettingsResponse) Status

func (r GetUserSettingsResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserSettingsResponse) StatusCode

func (r GetUserSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HandleOidcCallbackParams

type HandleOidcCallbackParams struct {
	Code             *string `form:"code,omitempty" json:"code,omitempty"`
	State            *string `form:"state,omitempty" json:"state,omitempty"`
	Error            *string `form:"error,omitempty" json:"error,omitempty"`
	ErrorDescription *string `form:"error_description,omitempty" json:"error_description,omitempty"`
}

HandleOidcCallbackParams defines parameters for HandleOidcCallback.

type HandleOidcCallbackResponse

type HandleOidcCallbackResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseHandleOidcCallbackResponse

func ParseHandleOidcCallbackResponse(rsp *http.Response) (*HandleOidcCallbackResponse, error)

ParseHandleOidcCallbackResponse parses an HTTP response from a HandleOidcCallbackWithResponse call

func (HandleOidcCallbackResponse) ContentType

func (r HandleOidcCallbackResponse) ContentType() string

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

func (HandleOidcCallbackResponse) Status

Status returns HTTPResponse.Status

func (HandleOidcCallbackResponse) StatusCode

func (r HandleOidcCallbackResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Invitation

type Invitation struct {
	// AccountName Name of the account the recipient is being invited to join.
	AccountName *string `json:"account_name,omitempty"`

	// CreatedAt When the invitation was issued.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Email Email address the invitation was sent to.
	Email *string `json:"email,omitempty"`

	// ExpiresAt When the invitation token stops being redeemable.
	ExpiresAt *time.Time `json:"expires_at,omitempty"`

	// InvitedBy UUID of the user who sent the invitation.
	InvitedBy *string `json:"invited_by,omitempty"`

	// InviterDisplayName Display name of the user who sent the invitation.
	InviterDisplayName *string `json:"inviter_display_name,omitempty"`

	// Role Role to assign on acceptance. One of `ADMIN`, `MEMBER`, or `VIEWER`.
	Role *string `json:"role,omitempty"`

	// Status Lifecycle state of the invitation. One of `PENDING`, `ACCEPTED`, `REVOKED`, or `EXPIRED`.
	Status *string `json:"status,omitempty"`

	// Token Single-use token that the recipient redeems to accept the invitation. Echoed on responses so the inviting client can construct the acceptance link.
	Token *string `json:"token,omitempty"`

	// UpdatedAt When the invitation record was last modified.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Invitation An invitation for a person to join an account.

Invitations carry a time-limited token; the recipient redeems the token to become a member of the inviting account at the assigned role.

type InvitationAcceptRequest

type InvitationAcceptRequest struct {
	// Token Invitation token from the email link.
	Token string `json:"token"`
}

InvitationAcceptRequest Body for the invitation-accept endpoint.

type InvitationBulkCreateRequest

type InvitationBulkCreateRequest struct {
	// Invitations One to fifty invitations to send in a single request.
	Invitations []InvitationCreateItem `json:"invitations"`
}

InvitationBulkCreateRequest Bulk-create request body for the invitations endpoint.

type InvitationCreateItem

type InvitationCreateItem struct {
	// Email Email address to send the invitation to.
	Email openapi_types.Email `json:"email"`

	// Role Role to assign on acceptance. One of `ADMIN`, `MEMBER`, or `VIEWER`. `OWNER` cannot be assigned via invitation. Case-insensitive on input.
	Role *string `json:"role,omitempty"`
}

InvitationCreateItem One invitation in a bulk-create request.

type InvitationListResponse

type InvitationListResponse struct {
	Data []InvitationResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

InvitationListResponse JSON:API collection response for invitations.

type InvitationResource

type InvitationResource struct {
	// Attributes An invitation for a person to join an account.
	//
	// Invitations carry a time-limited token; the recipient redeems the
	// token to become a member of the inviting account at the assigned role.
	Attributes Invitation             `json:"attributes"`
	Id         *string                `json:"id,omitempty"`
	Type       InvitationResourceType `json:"type"`
}

InvitationResource JSON:API resource envelope for an invitation.

`id` must not be specified for create requests (the server assigns it).

type InvitationResourceType

type InvitationResourceType string

InvitationResourceType defines model for InvitationResource.Type.

const (
	InvitationResourceTypeInvitation InvitationResourceType = "invitation"
)

Defines values for InvitationResourceType.

func (InvitationResourceType) Valid

func (e InvitationResourceType) Valid() bool

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

type InvitationResponse

type InvitationResponse struct {
	// Data JSON:API resource envelope for an invitation.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data InvitationResource `json:"data"`
}

InvitationResponse JSON:API single-resource response envelope for an invitation.

type Invoice

type Invoice struct {
	// AmountDue Amount owed on the invoice in the smallest currency unit (e.g. cents).
	AmountDue int `json:"amount_due"`

	// AmountPaid Amount paid against the invoice in the smallest currency unit.
	AmountPaid int `json:"amount_paid"`

	// CreatedAt When the invoice was created (ISO 8601).
	CreatedAt *string `json:"created_at"`

	// Currency ISO 4217 currency code, e.g. `usd`.
	Currency string `json:"currency"`

	// Description Human-readable summary of the invoice's line items.
	Description *string `json:"description"`

	// HostedInvoiceUrl Link to the hosted invoice page.
	HostedInvoiceUrl *string `json:"hosted_invoice_url"`

	// InvoicePdf Link to the PDF rendering of the invoice.
	InvoicePdf *string `json:"invoice_pdf"`

	// Number Invoice number assigned by the billing provider.
	Number *string `json:"number"`

	// PaidAt When the invoice was paid in full (ISO 8601), or `null` if unpaid.
	PaidAt *string `json:"paid_at"`

	// PeriodEnd End of the service period the invoice covers (ISO 8601).
	PeriodEnd *string `json:"period_end"`

	// PeriodStart Start of the service period the invoice covers (ISO 8601).
	PeriodStart *string `json:"period_start"`

	// Status Invoice lifecycle state, e.g. `draft`, `open`, `paid`, `uncollectible`, `void`.
	Status string `json:"status"`
}

Invoice A billing invoice issued for the account.

type InvoiceListResponse

type InvoiceListResponse struct {
	Data []InvoiceResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

InvoiceListResponse JSON:API collection response for invoices.

type InvoiceResource

type InvoiceResource struct {
	// Attributes A billing invoice issued for the account.
	Attributes Invoice             `json:"attributes"`
	Id         *string             `json:"id,omitempty"`
	Type       InvoiceResourceType `json:"type"`
}

InvoiceResource JSON:API resource envelope for an invoice.

type InvoiceResourceType

type InvoiceResourceType string

InvoiceResourceType defines model for InvoiceResource.Type.

const (
	InvoiceResourceTypeInvoice InvoiceResourceType = "invoice"
)

Defines values for InvoiceResourceType.

func (InvoiceResourceType) Valid

func (e InvoiceResourceType) Valid() bool

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

type InvoiceSingleResponse

type InvoiceSingleResponse struct {
	// Data JSON:API resource envelope for an invoice.
	Data InvoiceResource `json:"data"`
}

InvoiceSingleResponse JSON:API single-resource response envelope for an invoice.

type LimitDefinition

type LimitDefinition struct {
	// Description Long-form description of what the limit controls.
	Description string `json:"description"`

	// DisplayFormat Optional formatter hint for rendering the limit value in customer-facing UI.
	DisplayFormat *string `json:"display_format,omitempty"`

	// DisplayName Human-readable name for the limit.
	DisplayName string `json:"display_name"`

	// Unit Unit the limit is measured in, e.g. `flags`, `events`.
	Unit string `json:"unit"`
}

LimitDefinition Description of a single metered limit on a product.

type ListApiKeysParams

type ListApiKeysParams struct {
	FilterStatus *string `form:"filter[status],omitempty" json:"filter[status],omitempty"`

	// FilterSearch Case-insensitive substring match against the API key `name`.
	FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `expires_at`, `-expires_at`, `last_used_at`, `-last_used_at`, `name`, `-name`, `status`, `-status`.
	Sort *ListApiKeysParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListApiKeysParams defines parameters for ListApiKeys.

type ListApiKeysParamsSort added in v3.0.42

type ListApiKeysParamsSort string

ListApiKeysParamsSort defines parameters for ListApiKeys.

const (
	ListApiKeysParamsSortCreatedAt       ListApiKeysParamsSort = "created_at"
	ListApiKeysParamsSortExpiresAt       ListApiKeysParamsSort = "expires_at"
	ListApiKeysParamsSortLastUsedAt      ListApiKeysParamsSort = "last_used_at"
	ListApiKeysParamsSortMinusCreatedAt  ListApiKeysParamsSort = "-created_at"
	ListApiKeysParamsSortMinusExpiresAt  ListApiKeysParamsSort = "-expires_at"
	ListApiKeysParamsSortMinusLastUsedAt ListApiKeysParamsSort = "-last_used_at"
	ListApiKeysParamsSortMinusName       ListApiKeysParamsSort = "-name"
	ListApiKeysParamsSortMinusStatus     ListApiKeysParamsSort = "-status"
	ListApiKeysParamsSortName            ListApiKeysParamsSort = "name"
	ListApiKeysParamsSortStatus          ListApiKeysParamsSort = "status"
)

Defines values for ListApiKeysParamsSort.

func (ListApiKeysParamsSort) Valid added in v3.0.42

func (e ListApiKeysParamsSort) Valid() bool

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

type ListApiKeysResponse

type ListApiKeysResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ApiKeyListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListApiKeysResponse

func ParseListApiKeysResponse(rsp *http.Response) (*ListApiKeysResponse, error)

ParseListApiKeysResponse parses an HTTP response from a ListApiKeysWithResponse call

func (ListApiKeysResponse) ContentType

func (r ListApiKeysResponse) ContentType() string

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

func (ListApiKeysResponse) Status

func (r ListApiKeysResponse) Status() string

Status returns HTTPResponse.Status

func (ListApiKeysResponse) StatusCode

func (r ListApiKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListContextTypesParams added in v3.0.42

type ListContextTypesParams struct {
	// Sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.
	Sort *ListContextTypesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListContextTypesParams defines parameters for ListContextTypes.

type ListContextTypesParamsSort added in v3.0.42

type ListContextTypesParamsSort string

ListContextTypesParamsSort defines parameters for ListContextTypes.

const (
	ListContextTypesParamsSortCreatedAt      ListContextTypesParamsSort = "created_at"
	ListContextTypesParamsSortKey            ListContextTypesParamsSort = "key"
	ListContextTypesParamsSortMinusCreatedAt ListContextTypesParamsSort = "-created_at"
	ListContextTypesParamsSortMinusKey       ListContextTypesParamsSort = "-key"
	ListContextTypesParamsSortMinusName      ListContextTypesParamsSort = "-name"
	ListContextTypesParamsSortMinusUpdatedAt ListContextTypesParamsSort = "-updated_at"
	ListContextTypesParamsSortName           ListContextTypesParamsSort = "name"
	ListContextTypesParamsSortUpdatedAt      ListContextTypesParamsSort = "updated_at"
)

Defines values for ListContextTypesParamsSort.

func (ListContextTypesParamsSort) Valid added in v3.0.42

func (e ListContextTypesParamsSort) Valid() bool

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

type ListContextTypesResponse

type ListContextTypesResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ContextTypeListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListContextTypesResponse

func ParseListContextTypesResponse(rsp *http.Response) (*ListContextTypesResponse, error)

ParseListContextTypesResponse parses an HTTP response from a ListContextTypesWithResponse call

func (ListContextTypesResponse) ContentType

func (r ListContextTypesResponse) ContentType() string

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

func (ListContextTypesResponse) Status

func (r ListContextTypesResponse) Status() string

Status returns HTTPResponse.Status

func (ListContextTypesResponse) StatusCode

func (r ListContextTypesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListContextValuesParams added in v3.0.45

type ListContextValuesParams struct {
	// FilterContextType Context type key whose instances should be searched (e.g. `user`).
	FilterContextType *string `form:"filter[context_type],omitempty" json:"filter[context_type],omitempty"`

	// FilterAttribute Attribute name whose distinct values should be returned (e.g. `first_name`). Accepts `key` and `name` as well as any attribute key stored on the context instance.
	FilterAttribute *string `form:"filter[attribute],omitempty" json:"filter[attribute],omitempty"`

	// FilterSearch Optional case-insensitive starts-with match against the projected attribute value. When omitted, all distinct values are returned in the page.
	FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListContextValuesParams defines parameters for ListContextValues.

type ListContextValuesResponse added in v3.0.45

type ListContextValuesResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ContextValueListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListContextValuesResponse added in v3.0.45

func ParseListContextValuesResponse(rsp *http.Response) (*ListContextValuesResponse, error)

ParseListContextValuesResponse parses an HTTP response from a ListContextValuesWithResponse call

func (ListContextValuesResponse) ContentType added in v3.0.45

func (r ListContextValuesResponse) ContentType() string

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

func (ListContextValuesResponse) Status added in v3.0.45

func (r ListContextValuesResponse) Status() string

Status returns HTTPResponse.Status

func (ListContextValuesResponse) StatusCode added in v3.0.45

func (r ListContextValuesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListContextsParams

type ListContextsParams struct {
	// FilterContextType Limit results to context instances of this context type (e.g. `user`).
	FilterContextType *string `form:"filter[context_type],omitempty" json:"filter[context_type],omitempty"`

	// FilterSearch Case-insensitive substring match against the `key`, `name`, and any attribute value. A context is returned if at least one of those fields contains the search term.
	FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.
	Sort *ListContextsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListContextsParams defines parameters for ListContexts.

type ListContextsParamsSort added in v3.0.42

type ListContextsParamsSort string

ListContextsParamsSort defines parameters for ListContexts.

const (
	ListContextsParamsSortCreatedAt      ListContextsParamsSort = "created_at"
	ListContextsParamsSortKey            ListContextsParamsSort = "key"
	ListContextsParamsSortMinusCreatedAt ListContextsParamsSort = "-created_at"
	ListContextsParamsSortMinusKey       ListContextsParamsSort = "-key"
	ListContextsParamsSortMinusName      ListContextsParamsSort = "-name"
	ListContextsParamsSortMinusUpdatedAt ListContextsParamsSort = "-updated_at"
	ListContextsParamsSortName           ListContextsParamsSort = "name"
	ListContextsParamsSortUpdatedAt      ListContextsParamsSort = "updated_at"
)

Defines values for ListContextsParamsSort.

func (ListContextsParamsSort) Valid added in v3.0.42

func (e ListContextsParamsSort) Valid() bool

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

type ListContextsResponse

type ListContextsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ContextListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListContextsResponse

func ParseListContextsResponse(rsp *http.Response) (*ListContextsResponse, error)

ParseListContextsResponse parses an HTTP response from a ListContextsWithResponse call

func (ListContextsResponse) ContentType

func (r ListContextsResponse) ContentType() string

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

func (ListContextsResponse) Status

func (r ListContextsResponse) Status() string

Status returns HTTPResponse.Status

func (ListContextsResponse) StatusCode

func (r ListContextsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListDiscountTiersParams added in v3.0.68

type ListDiscountTiersParams struct {
	// Sort Field to sort by. Prefix with `-` for descending order. Default: `products_count`. Allowed values: `percent_off`, `-percent_off`, `products_count`, `-products_count`.
	Sort *ListDiscountTiersParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListDiscountTiersParams defines parameters for ListDiscountTiers.

type ListDiscountTiersParamsSort added in v3.0.68

type ListDiscountTiersParamsSort string

ListDiscountTiersParamsSort defines parameters for ListDiscountTiers.

const (
	MinusPercentOff    ListDiscountTiersParamsSort = "-percent_off"
	MinusProductsCount ListDiscountTiersParamsSort = "-products_count"
	PercentOff         ListDiscountTiersParamsSort = "percent_off"
	ProductsCount      ListDiscountTiersParamsSort = "products_count"
)

Defines values for ListDiscountTiersParamsSort.

func (ListDiscountTiersParamsSort) Valid added in v3.0.68

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

type ListDiscountTiersResponse added in v3.0.68

type ListDiscountTiersResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *DiscountTierListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListDiscountTiersResponse added in v3.0.68

func ParseListDiscountTiersResponse(rsp *http.Response) (*ListDiscountTiersResponse, error)

ParseListDiscountTiersResponse parses an HTTP response from a ListDiscountTiersWithResponse call

func (ListDiscountTiersResponse) ContentType added in v3.0.68

func (r ListDiscountTiersResponse) ContentType() string

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

func (ListDiscountTiersResponse) Status added in v3.0.68

func (r ListDiscountTiersResponse) Status() string

Status returns HTTPResponse.Status

func (ListDiscountTiersResponse) StatusCode added in v3.0.68

func (r ListDiscountTiersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListEnvironmentsParams added in v3.0.42

type ListEnvironmentsParams struct {
	// FilterSearch Case-insensitive substring match against the environment `key` and `name`. An environment is returned if either field contains the search term.
	FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"`

	// FilterClassification Narrow the result to environments with the given classification. One of `STANDARD` or `AD_HOC`.
	FilterClassification *string `form:"filter[classification],omitempty" json:"filter[classification],omitempty"`

	// FilterManaged Narrow the result to managed (`true`) or unmanaged (`false`) environments. Omit to return both.
	FilterManaged *bool `form:"filter[managed],omitempty" json:"filter[managed],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.
	Sort *ListEnvironmentsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListEnvironmentsParams defines parameters for ListEnvironments.

type ListEnvironmentsParamsSort added in v3.0.42

type ListEnvironmentsParamsSort string

ListEnvironmentsParamsSort defines parameters for ListEnvironments.

const (
	ListEnvironmentsParamsSortCreatedAt      ListEnvironmentsParamsSort = "created_at"
	ListEnvironmentsParamsSortKey            ListEnvironmentsParamsSort = "key"
	ListEnvironmentsParamsSortMinusCreatedAt ListEnvironmentsParamsSort = "-created_at"
	ListEnvironmentsParamsSortMinusKey       ListEnvironmentsParamsSort = "-key"
	ListEnvironmentsParamsSortMinusName      ListEnvironmentsParamsSort = "-name"
	ListEnvironmentsParamsSortMinusUpdatedAt ListEnvironmentsParamsSort = "-updated_at"
	ListEnvironmentsParamsSortName           ListEnvironmentsParamsSort = "name"
	ListEnvironmentsParamsSortUpdatedAt      ListEnvironmentsParamsSort = "updated_at"
)

Defines values for ListEnvironmentsParamsSort.

func (ListEnvironmentsParamsSort) Valid added in v3.0.42

func (e ListEnvironmentsParamsSort) Valid() bool

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

type ListEnvironmentsResponse

type ListEnvironmentsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *EnvironmentListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListEnvironmentsResponse

func ParseListEnvironmentsResponse(rsp *http.Response) (*ListEnvironmentsResponse, error)

ParseListEnvironmentsResponse parses an HTTP response from a ListEnvironmentsWithResponse call

func (ListEnvironmentsResponse) ContentType

func (r ListEnvironmentsResponse) ContentType() string

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

func (ListEnvironmentsResponse) Status

func (r ListEnvironmentsResponse) Status() string

Status returns HTTPResponse.Status

func (ListEnvironmentsResponse) StatusCode

func (r ListEnvironmentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListInvitationsParams

type ListInvitationsParams struct {
	FilterStatus *string `form:"filter[status],omitempty" json:"filter[status],omitempty"`
	FilterToken  *string `form:"filter[token],omitempty" json:"filter[token],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`, `email`, `-email`, `status`, `-status`.
	Sort *ListInvitationsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListInvitationsParams defines parameters for ListInvitations.

type ListInvitationsParamsSort added in v3.0.42

type ListInvitationsParamsSort string

ListInvitationsParamsSort defines parameters for ListInvitations.

const (
	ListInvitationsParamsSortCreatedAt      ListInvitationsParamsSort = "created_at"
	ListInvitationsParamsSortEmail          ListInvitationsParamsSort = "email"
	ListInvitationsParamsSortMinusCreatedAt ListInvitationsParamsSort = "-created_at"
	ListInvitationsParamsSortMinusEmail     ListInvitationsParamsSort = "-email"
	ListInvitationsParamsSortMinusStatus    ListInvitationsParamsSort = "-status"
	ListInvitationsParamsSortStatus         ListInvitationsParamsSort = "status"
)

Defines values for ListInvitationsParamsSort.

func (ListInvitationsParamsSort) Valid added in v3.0.42

func (e ListInvitationsParamsSort) Valid() bool

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

type ListInvitationsResponse

type ListInvitationsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *InvitationListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListInvitationsResponse

func ParseListInvitationsResponse(rsp *http.Response) (*ListInvitationsResponse, error)

ParseListInvitationsResponse parses an HTTP response from a ListInvitationsWithResponse call

func (ListInvitationsResponse) ContentType

func (r ListInvitationsResponse) ContentType() string

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

func (ListInvitationsResponse) Status

func (r ListInvitationsResponse) Status() string

Status returns HTTPResponse.Status

func (ListInvitationsResponse) StatusCode

func (r ListInvitationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListInvoicesParams added in v3.0.42

type ListInvoicesParams struct {
	// Sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`, `status`, `-status`, `total`, `-total`.
	Sort *ListInvoicesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListInvoicesParams defines parameters for ListInvoices.

type ListInvoicesParamsSort added in v3.0.42

type ListInvoicesParamsSort string

ListInvoicesParamsSort defines parameters for ListInvoices.

const (
	ListInvoicesParamsSortCreatedAt      ListInvoicesParamsSort = "created_at"
	ListInvoicesParamsSortMinusCreatedAt ListInvoicesParamsSort = "-created_at"
	ListInvoicesParamsSortMinusStatus    ListInvoicesParamsSort = "-status"
	ListInvoicesParamsSortMinusTotal     ListInvoicesParamsSort = "-total"
	ListInvoicesParamsSortStatus         ListInvoicesParamsSort = "status"
	ListInvoicesParamsSortTotal          ListInvoicesParamsSort = "total"
)

Defines values for ListInvoicesParamsSort.

func (ListInvoicesParamsSort) Valid added in v3.0.42

func (e ListInvoicesParamsSort) Valid() bool

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

type ListInvoicesResponse

type ListInvoicesResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *InvoiceListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListInvoicesResponse

func ParseListInvoicesResponse(rsp *http.Response) (*ListInvoicesResponse, error)

ParseListInvoicesResponse parses an HTTP response from a ListInvoicesWithResponse call

func (ListInvoicesResponse) ContentType

func (r ListInvoicesResponse) ContentType() string

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

func (ListInvoicesResponse) Status

func (r ListInvoicesResponse) Status() string

Status returns HTTPResponse.Status

func (ListInvoicesResponse) StatusCode

func (r ListInvoicesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMeta added in v3.0.45

type ListMeta struct {
	// Pagination Pagination block returned inside “meta“ on every list response.
	//
	// “page“ and “size“ are always present and echo the parameters that
	// served the response (their defaults when the client omitted them).
	// “total“ and “total_pages“ are present only when the request included
	// “meta[total]=true“.
	Pagination PaginationMeta `json:"pagination"`
}

ListMeta Top-level “meta“ block included on every JSON:API list response.

type ListMetricNamesParams added in v3.0.42

type ListMetricNamesParams struct {
	// Sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `name`, `-name`.
	Sort *ListMetricNamesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListMetricNamesParams defines parameters for ListMetricNames.

type ListMetricNamesParamsSort added in v3.0.42

type ListMetricNamesParamsSort string

ListMetricNamesParamsSort defines parameters for ListMetricNames.

const (
	ListMetricNamesParamsSortMinusName ListMetricNamesParamsSort = "-name"
	ListMetricNamesParamsSortName      ListMetricNamesParamsSort = "name"
)

Defines values for ListMetricNamesParamsSort.

func (ListMetricNamesParamsSort) Valid added in v3.0.42

func (e ListMetricNamesParamsSort) Valid() bool

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

type ListMetricNamesResponse

type ListMetricNamesResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *MetricNamesResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListMetricNamesResponse

func ParseListMetricNamesResponse(rsp *http.Response) (*ListMetricNamesResponse, error)

ParseListMetricNamesResponse parses an HTTP response from a ListMetricNamesWithResponse call

func (ListMetricNamesResponse) ContentType

func (r ListMetricNamesResponse) ContentType() string

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

func (ListMetricNamesResponse) Status

func (r ListMetricNamesResponse) Status() string

Status returns HTTPResponse.Status

func (ListMetricNamesResponse) StatusCode

func (r ListMetricNamesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMetricRollupsParams

type ListMetricRollupsParams struct {
	FilterName       string  `form:"filter[name]" json:"filter[name]"`
	FilterRollup     string  `form:"filter[rollup]" json:"filter[rollup]"`
	FilterRecordedAt *string `form:"filter[recorded_at],omitempty" json:"filter[recorded_at],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `bucket`. Allowed values: `bucket`, `-bucket`.
	Sort *ListMetricRollupsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListMetricRollupsParams defines parameters for ListMetricRollups.

type ListMetricRollupsParamsSort added in v3.0.42

type ListMetricRollupsParamsSort string

ListMetricRollupsParamsSort defines parameters for ListMetricRollups.

const (
	Bucket      ListMetricRollupsParamsSort = "bucket"
	MinusBucket ListMetricRollupsParamsSort = "-bucket"
)

Defines values for ListMetricRollupsParamsSort.

func (ListMetricRollupsParamsSort) Valid added in v3.0.42

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

type ListMetricRollupsResponse

type ListMetricRollupsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *MetricRollupListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListMetricRollupsResponse

func ParseListMetricRollupsResponse(rsp *http.Response) (*ListMetricRollupsResponse, error)

ParseListMetricRollupsResponse parses an HTTP response from a ListMetricRollupsWithResponse call

func (ListMetricRollupsResponse) ContentType

func (r ListMetricRollupsResponse) ContentType() string

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

func (ListMetricRollupsResponse) Status

func (r ListMetricRollupsResponse) Status() string

Status returns HTTPResponse.Status

func (ListMetricRollupsResponse) StatusCode

func (r ListMetricRollupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMetricsParams

type ListMetricsParams struct {
	FilterName       string  `form:"filter[name]" json:"filter[name]"`
	FilterRecordedAt *string `form:"filter[recorded_at],omitempty" json:"filter[recorded_at],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `-recorded_at`. Allowed values: `recorded_at`, `-recorded_at`, `value`, `-value`.
	Sort *ListMetricsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListMetricsParams defines parameters for ListMetrics.

type ListMetricsParamsSort added in v3.0.42

type ListMetricsParamsSort string

ListMetricsParamsSort defines parameters for ListMetrics.

const (
	MinusRecordedAt ListMetricsParamsSort = "-recorded_at"
	MinusValue      ListMetricsParamsSort = "-value"
	RecordedAt      ListMetricsParamsSort = "recorded_at"
	Value           ListMetricsParamsSort = "value"
)

Defines values for ListMetricsParamsSort.

func (ListMetricsParamsSort) Valid added in v3.0.42

func (e ListMetricsParamsSort) Valid() bool

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

type ListMetricsResponse

type ListMetricsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *MetricListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListMetricsResponse

func ParseListMetricsResponse(rsp *http.Response) (*ListMetricsResponse, error)

ParseListMetricsResponse parses an HTTP response from a ListMetricsWithResponse call

func (ListMetricsResponse) ContentType

func (r ListMetricsResponse) ContentType() string

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

func (ListMetricsResponse) Status

func (r ListMetricsResponse) Status() string

Status returns HTTPResponse.Status

func (ListMetricsResponse) StatusCode

func (r ListMetricsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPaymentMethodsParams added in v3.0.42

type ListPaymentMethodsParams struct {
	// Sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`, `exp_year`, `-exp_year`, `is_default`, `-is_default`, `updated_at`, `-updated_at`.
	Sort *ListPaymentMethodsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListPaymentMethodsParams defines parameters for ListPaymentMethods.

type ListPaymentMethodsParamsSort added in v3.0.42

type ListPaymentMethodsParamsSort string

ListPaymentMethodsParamsSort defines parameters for ListPaymentMethods.

const (
	ListPaymentMethodsParamsSortCreatedAt      ListPaymentMethodsParamsSort = "created_at"
	ListPaymentMethodsParamsSortExpYear        ListPaymentMethodsParamsSort = "exp_year"
	ListPaymentMethodsParamsSortIsDefault      ListPaymentMethodsParamsSort = "is_default"
	ListPaymentMethodsParamsSortMinusCreatedAt ListPaymentMethodsParamsSort = "-created_at"
	ListPaymentMethodsParamsSortMinusExpYear   ListPaymentMethodsParamsSort = "-exp_year"
	ListPaymentMethodsParamsSortMinusIsDefault ListPaymentMethodsParamsSort = "-is_default"
	ListPaymentMethodsParamsSortMinusUpdatedAt ListPaymentMethodsParamsSort = "-updated_at"
	ListPaymentMethodsParamsSortUpdatedAt      ListPaymentMethodsParamsSort = "updated_at"
)

Defines values for ListPaymentMethodsParamsSort.

func (ListPaymentMethodsParamsSort) Valid added in v3.0.42

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

type ListPaymentMethodsResponse

type ListPaymentMethodsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *PaymentMethodListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListPaymentMethodsResponse

func ParseListPaymentMethodsResponse(rsp *http.Response) (*ListPaymentMethodsResponse, error)

ParseListPaymentMethodsResponse parses an HTTP response from a ListPaymentMethodsWithResponse call

func (ListPaymentMethodsResponse) ContentType

func (r ListPaymentMethodsResponse) ContentType() string

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

func (ListPaymentMethodsResponse) Status

Status returns HTTPResponse.Status

func (ListPaymentMethodsResponse) StatusCode

func (r ListPaymentMethodsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPlansParams added in v3.0.42

type ListPlansParams struct {
	// Sort Field to sort by. Prefix with `-` for descending order. Default: `sort_order`. Allowed values: `display_name`, `-display_name`, `id`, `-id`, `sort_order`, `-sort_order`.
	Sort *ListPlansParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListPlansParams defines parameters for ListPlans.

type ListPlansParamsSort added in v3.0.42

type ListPlansParamsSort string

ListPlansParamsSort defines parameters for ListPlans.

const (
	ListPlansParamsSortDisplayName      ListPlansParamsSort = "display_name"
	ListPlansParamsSortId               ListPlansParamsSort = "id"
	ListPlansParamsSortMinusDisplayName ListPlansParamsSort = "-display_name"
	ListPlansParamsSortMinusId          ListPlansParamsSort = "-id"
	ListPlansParamsSortMinusSortOrder   ListPlansParamsSort = "-sort_order"
	ListPlansParamsSortSortOrder        ListPlansParamsSort = "sort_order"
)

Defines values for ListPlansParamsSort.

func (ListPlansParamsSort) Valid added in v3.0.42

func (e ListPlansParamsSort) Valid() bool

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

type ListPlansResponse

type ListPlansResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *PlanListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListPlansResponse

func ParseListPlansResponse(rsp *http.Response) (*ListPlansResponse, error)

ParseListPlansResponse parses an HTTP response from a ListPlansWithResponse call

func (ListPlansResponse) ContentType

func (r ListPlansResponse) ContentType() string

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

func (ListPlansResponse) Status

func (r ListPlansResponse) Status() string

Status returns HTTPResponse.Status

func (ListPlansResponse) StatusCode

func (r ListPlansResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProductsParams added in v3.0.42

type ListProductsParams struct {
	// Sort Field to sort by. Prefix with `-` for descending order. Default: `display_name`. Allowed values: `display_name`, `-display_name`, `id`, `-id`.
	Sort *ListProductsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListProductsParams defines parameters for ListProducts.

type ListProductsParamsSort added in v3.0.42

type ListProductsParamsSort string

ListProductsParamsSort defines parameters for ListProducts.

const (
	ListProductsParamsSortDisplayName      ListProductsParamsSort = "display_name"
	ListProductsParamsSortId               ListProductsParamsSort = "id"
	ListProductsParamsSortMinusDisplayName ListProductsParamsSort = "-display_name"
	ListProductsParamsSortMinusId          ListProductsParamsSort = "-id"
)

Defines values for ListProductsParamsSort.

func (ListProductsParamsSort) Valid added in v3.0.42

func (e ListProductsParamsSort) Valid() bool

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

type ListProductsResponse

type ListProductsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ProductListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListProductsResponse

func ParseListProductsResponse(rsp *http.Response) (*ListProductsResponse, error)

ParseListProductsResponse parses an HTTP response from a ListProductsWithResponse call

func (ListProductsResponse) ContentType

func (r ListProductsResponse) ContentType() string

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

func (ListProductsResponse) Status

func (r ListProductsResponse) Status() string

Status returns HTTPResponse.Status

func (ListProductsResponse) StatusCode

func (r ListProductsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListServicesParams added in v3.0.42

type ListServicesParams struct {
	// FilterSearch Case-insensitive substring match against the service `key` and `name`. A service is returned if either field contains the search term.
	FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.
	Sort *ListServicesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListServicesParams defines parameters for ListServices.

type ListServicesParamsSort added in v3.0.42

type ListServicesParamsSort string

ListServicesParamsSort defines parameters for ListServices.

const (
	ListServicesParamsSortCreatedAt      ListServicesParamsSort = "created_at"
	ListServicesParamsSortKey            ListServicesParamsSort = "key"
	ListServicesParamsSortMinusCreatedAt ListServicesParamsSort = "-created_at"
	ListServicesParamsSortMinusKey       ListServicesParamsSort = "-key"
	ListServicesParamsSortMinusName      ListServicesParamsSort = "-name"
	ListServicesParamsSortMinusUpdatedAt ListServicesParamsSort = "-updated_at"
	ListServicesParamsSortName           ListServicesParamsSort = "name"
	ListServicesParamsSortUpdatedAt      ListServicesParamsSort = "updated_at"
)

Defines values for ListServicesParamsSort.

func (ListServicesParamsSort) Valid added in v3.0.42

func (e ListServicesParamsSort) Valid() bool

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

type ListServicesResponse

type ListServicesResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ServiceListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListServicesResponse

func ParseListServicesResponse(rsp *http.Response) (*ListServicesResponse, error)

ParseListServicesResponse parses an HTTP response from a ListServicesWithResponse call

func (ListServicesResponse) ContentType

func (r ListServicesResponse) ContentType() string

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

func (ListServicesResponse) Status

func (r ListServicesResponse) Status() string

Status returns HTTPResponse.Status

func (ListServicesResponse) StatusCode

func (r ListServicesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUsersParams

type ListUsersParams struct {
	FilterAccount *string `form:"filter[account],omitempty" json:"filter[account],omitempty"`
	FilterEmail   *string `form:"filter[email],omitempty" json:"filter[email],omitempty"`

	// FilterSearch Case-insensitive substring match against display_name and email. If the value is a valid UUID, also matches user id exactly.
	FilterSearch *string `form:"filter[search],omitempty" json:"filter[search],omitempty"`

	// Sort Field to sort by. Prefix with `-` for descending order. Default: `email`. Allowed values: `created_at`, `-created_at`, `display_name`, `-display_name`, `email`, `-email`.
	Sort *ListUsersParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// PageNumber 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
	PageNumber *int `form:"page[number],omitempty" json:"page[number],omitempty"`

	// PageSize Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
	PageSize *int `form:"page[size],omitempty" json:"page[size],omitempty"`

	// MetaTotal When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
	MetaTotal *bool `form:"meta[total],omitempty" json:"meta[total],omitempty"`
}

ListUsersParams defines parameters for ListUsers.

type ListUsersParamsSort added in v3.0.42

type ListUsersParamsSort string

ListUsersParamsSort defines parameters for ListUsers.

const (
	ListUsersParamsSortCreatedAt        ListUsersParamsSort = "created_at"
	ListUsersParamsSortDisplayName      ListUsersParamsSort = "display_name"
	ListUsersParamsSortEmail            ListUsersParamsSort = "email"
	ListUsersParamsSortMinusCreatedAt   ListUsersParamsSort = "-created_at"
	ListUsersParamsSortMinusDisplayName ListUsersParamsSort = "-display_name"
	ListUsersParamsSortMinusEmail       ListUsersParamsSort = "-email"
)

Defines values for ListUsersParamsSort.

func (ListUsersParamsSort) Valid added in v3.0.42

func (e ListUsersParamsSort) Valid() bool

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

type ListUsersResponse

type ListUsersResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *UserListResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseListUsersResponse

func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)

ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call

func (ListUsersResponse) ContentType

func (r ListUsersResponse) ContentType() string

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

func (ListUsersResponse) Status

func (r ListUsersResponse) Status() string

Status returns HTTPResponse.Status

func (ListUsersResponse) StatusCode

func (r ListUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginJSONRequestBody

type LoginJSONRequestBody = LoginRequest

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginRequest

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

	// Password Password supplied for authentication.
	Password string `json:"password"`
}

LoginRequest Body for the email + password login endpoint.

type LoginResponse

type LoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuthTokenResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseLoginResponse

func ParseLoginResponse(rsp *http.Response) (*LoginResponse, error)

ParseLoginResponse parses an HTTP response from a LoginWithResponse call

func (LoginResponse) ContentType

func (r LoginResponse) ContentType() string

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

func (LoginResponse) Status

func (r LoginResponse) Status() string

Status returns HTTPResponse.Status

func (LoginResponse) StatusCode

func (r LoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MetricAttributes

type MetricAttributes struct {
	// CreatedAt When the data point was ingested.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Dimensions Optional dimension keys that scope the data point, e.g. `environment`, `service`. Used as filter targets on the list endpoint via `filter[dimensions.<key>]=...`.
	Dimensions *map[string]string `json:"dimensions,omitempty"`

	// Name Metric series name, e.g. `flags.evaluations`. Dot-separated.
	Name string `json:"name"`

	// PeriodSeconds Length of the aggregation window in seconds (e.g. `60` for a one-minute roll-up).
	PeriodSeconds int `json:"period_seconds"`

	// RecordedAt Start of the aggregation window this data point covers.
	RecordedAt time.Time `json:"recorded_at"`

	// Unit Unit the value is expressed in, e.g. `evaluations`, `ms`, `bytes`.
	Unit *string `json:"unit,omitempty"`

	// Value Aggregated value for this data point over `period_seconds`.
	Value MetricAttributes_Value `json:"value"`
}

MetricAttributes A pre-aggregated metric data point recorded for the account.

type MetricAttributesValue0

type MetricAttributesValue0 = float32

MetricAttributesValue0 defines model for .

type MetricAttributesValue1

type MetricAttributesValue1 = string

MetricAttributesValue1 defines model for .

type MetricAttributes_Value

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

MetricAttributes_Value Aggregated value for this data point over `period_seconds`.

func (MetricAttributes_Value) AsMetricAttributesValue0

func (t MetricAttributes_Value) AsMetricAttributesValue0() (MetricAttributesValue0, error)

AsMetricAttributesValue0 returns the union data inside the MetricAttributes_Value as a MetricAttributesValue0

func (MetricAttributes_Value) AsMetricAttributesValue1

func (t MetricAttributes_Value) AsMetricAttributesValue1() (MetricAttributesValue1, error)

AsMetricAttributesValue1 returns the union data inside the MetricAttributes_Value as a MetricAttributesValue1

func (*MetricAttributes_Value) FromMetricAttributesValue0

func (t *MetricAttributes_Value) FromMetricAttributesValue0(v MetricAttributesValue0) error

FromMetricAttributesValue0 overwrites any union data inside the MetricAttributes_Value as the provided MetricAttributesValue0

func (*MetricAttributes_Value) FromMetricAttributesValue1

func (t *MetricAttributes_Value) FromMetricAttributesValue1(v MetricAttributesValue1) error

FromMetricAttributesValue1 overwrites any union data inside the MetricAttributes_Value as the provided MetricAttributesValue1

func (MetricAttributes_Value) MarshalJSON

func (t MetricAttributes_Value) MarshalJSON() ([]byte, error)

func (*MetricAttributes_Value) MergeMetricAttributesValue0

func (t *MetricAttributes_Value) MergeMetricAttributesValue0(v MetricAttributesValue0) error

MergeMetricAttributesValue0 performs a merge with any union data inside the MetricAttributes_Value, using the provided MetricAttributesValue0

func (*MetricAttributes_Value) MergeMetricAttributesValue1

func (t *MetricAttributes_Value) MergeMetricAttributesValue1(v MetricAttributesValue1) error

MergeMetricAttributesValue1 performs a merge with any union data inside the MetricAttributes_Value, using the provided MetricAttributesValue1

func (*MetricAttributes_Value) UnmarshalJSON

func (t *MetricAttributes_Value) UnmarshalJSON(b []byte) error

type MetricBulkRequest

type MetricBulkRequest struct {
	// Data Metric data points to ingest in a single request.
	Data []MetricResource `json:"data"`
}

MetricBulkRequest Bulk-ingest request envelope for metric data points.

type MetricListResponse

type MetricListResponse struct {
	Data []MetricResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

MetricListResponse JSON:API collection response for metric data points.

type MetricNameItem

type MetricNameItem struct {
	// Name Distinct metric series name.
	Name string `json:"name"`

	// Unit Representative unit observed for this series.
	Unit *string `json:"unit,omitempty"`
}

MetricNameItem One distinct metric name with a representative unit.

type MetricNamesResponse

type MetricNamesResponse struct {
	Data []MetricNameItem `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

MetricNamesResponse Plain-JSON response listing distinct metric names for the account.

type MetricResource

type MetricResource struct {
	// Attributes A pre-aggregated metric data point recorded for the account.
	Attributes MetricAttributes   `json:"attributes"`
	Id         *string            `json:"id,omitempty"`
	Type       MetricResourceType `json:"type"`
}

MetricResource JSON:API resource envelope for a metric data point.

`id` must not be specified for create requests (the server assigns it).

type MetricResourceType

type MetricResourceType string

MetricResourceType defines model for MetricResource.Type.

const (
	Metric MetricResourceType = "metric"
)

Defines values for MetricResourceType.

func (MetricResourceType) Valid

func (e MetricResourceType) Valid() bool

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

type MetricRollupAttributes

type MetricRollupAttributes struct {
	// Bucket Start of the time bucket this rollup covers.
	Bucket time.Time `json:"bucket"`

	// Name Metric series name the rollup is computed from.
	Name string `json:"name"`

	// Rollup Rollup interval. One of `1m`, `5m`, `15m`, `1h`, `6h`, `1d`.
	Rollup string `json:"rollup"`

	// Unit Unit the value is expressed in.
	Unit *string `json:"unit,omitempty"`

	// Value Sum of the underlying metric values over the bucket.
	Value string `json:"value"`
}

MetricRollupAttributes An aggregated metric value over a fixed-size time bucket.

type MetricRollupListResponse

type MetricRollupListResponse struct {
	Data []MetricRollupResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

MetricRollupListResponse JSON:API collection response for metric rollups.

type MetricRollupResource

type MetricRollupResource struct {
	// Attributes An aggregated metric value over a fixed-size time bucket.
	Attributes MetricRollupAttributes   `json:"attributes"`
	Type       MetricRollupResourceType `json:"type"`
}

MetricRollupResource JSON:API resource envelope for a metric rollup.

type MetricRollupResourceType

type MetricRollupResourceType string

MetricRollupResourceType defines model for MetricRollupResource.Type.

const (
	MetricRollup MetricRollupResourceType = "metric_rollup"
)

Defines values for MetricRollupResourceType.

func (MetricRollupResourceType) Valid

func (e MetricRollupResourceType) Valid() bool

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

type NextTierResponse added in v3.0.43

type NextTierResponse struct {
	// AdditionalSavingsCents Estimated additional monthly savings (in cents) at the next tier, compared to paying full list price for the added product.
	AdditionalSavingsCents int `json:"additional_savings_cents"`

	// DiscountPct Discount percentage that would apply at the next tier.
	DiscountPct int `json:"discount_pct"`

	// ProductsNeeded Number of additional paid products required to reach the next discount tier.
	ProductsNeeded int `json:"products_needed"`
}

NextTierResponse Hint describing how the customer could unlock a better discount.

type OidcProvider

type OidcProvider string

OidcProvider defines model for OidcProvider.

const (
	Google    OidcProvider = "google"
	Microsoft OidcProvider = "microsoft"
)

Defines values for OidcProvider.

func (OidcProvider) Valid

func (e OidcProvider) Valid() bool

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

type PaginationMeta added in v3.0.45

type PaginationMeta struct {
	// Page 1-based page number returned.
	Page int `json:"page"`

	// Size Number of items per page.
	Size int `json:"size"`

	// Total Total number of matching items across all pages. Present only when the request included `meta[total]=true`.
	Total *int `json:"total,omitempty"`

	// TotalPages Total number of pages at the requested page size. Present only when the request included `meta[total]=true`.
	TotalPages *int `json:"total_pages,omitempty"`
}

PaginationMeta Pagination block returned inside “meta“ on every list response.

“page“ and “size“ are always present and echo the parameters that served the response (their defaults when the client omitted them). “total“ and “total_pages“ are present only when the request included “meta[total]=true“.

type PaymentMethod

type PaymentMethod struct {
	// BillingDetails Billing details (name, email, phone, address) associated with the card.
	BillingDetails *map[string]interface{} `json:"billing_details,omitempty"`

	// Brand Card network brand, e.g. `visa`, `mastercard`, `amex`.
	Brand *string `json:"brand,omitempty"`

	// CreatedAt When the payment method was registered.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Default Whether this payment method is the account's default for subscription charges. Use the `set_default` action to change which payment method is default — this field is not writable via PUT.
	Default *bool `json:"default,omitempty"`

	// ExpMonth Expiry month (1-12).
	ExpMonth *int `json:"exp_month,omitempty"`

	// ExpYear Expiry year (four-digit).
	ExpYear *int `json:"exp_year,omitempty"`

	// Last4 Last four digits of the card number.
	Last4 *string `json:"last4,omitempty"`

	// UpdatedAt When the payment method was last modified.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

PaymentMethod A saved card on file for the account, used to charge subscription invoices.

The default payment method is changed via the `set_default` action rather than by updating this field through PUT.

type PaymentMethodListResponse

type PaymentMethodListResponse struct {
	Data []PaymentMethodResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

PaymentMethodListResponse JSON:API collection response for payment methods.

type PaymentMethodRequest added in v3.0.31

type PaymentMethodRequest struct {
	// Data JSON:API resource envelope for a payment method.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data PaymentMethodResource `json:"data"`
}

PaymentMethodRequest JSON:API request envelope for updating a payment method.

type PaymentMethodResource

type PaymentMethodResource struct {
	// Attributes A saved card on file for the account, used to charge subscription
	// invoices.
	//
	// The default payment method is changed via the `set_default` action
	// rather than by updating this field through PUT.
	Attributes PaymentMethod             `json:"attributes"`
	Id         *string                   `json:"id,omitempty"`
	Type       PaymentMethodResourceType `json:"type"`
}

PaymentMethodResource JSON:API resource envelope for a payment method.

`id` must not be specified for create requests (the server assigns it).

type PaymentMethodResourceType

type PaymentMethodResourceType string

PaymentMethodResourceType defines model for PaymentMethodResource.Type.

const (
	PaymentMethodResourceTypePaymentMethod PaymentMethodResourceType = "payment_method"
)

Defines values for PaymentMethodResourceType.

func (PaymentMethodResourceType) Valid

func (e PaymentMethodResourceType) Valid() bool

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

type PaymentMethodResponse

type PaymentMethodResponse struct {
	// Data JSON:API resource envelope for a payment method.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data PaymentMethodResource `json:"data"`
}

PaymentMethodResponse JSON:API single-resource response envelope for a payment method.

type Plan

type Plan struct {
	// Description Long-form plan description.
	Description string `json:"description"`

	// DisplayName Human-readable plan name.
	DisplayName string `json:"display_name"`

	// SortOrder Order in which the plan should be shown in customer-facing lists. Lower values sort first.
	SortOrder int `json:"sort_order"`
}

Plan A plan tier offered across smplkit products.

type PlanDefinition

type PlanDefinition struct {
	// Limits Map of limit key to the cap that applies on this plan. `-1` indicates an unlimited cap.
	Limits map[string]int `json:"limits"`

	// PriceMonthlyCents Monthly list price in cents. `0` for free plans.
	PriceMonthlyCents int `json:"price_monthly_cents"`
}

PlanDefinition Per-plan pricing and limits for a product.

type PlanListResponse

type PlanListResponse struct {
	Data []PlanResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

PlanListResponse JSON:API collection response for plan tiers.

type PlanResource

type PlanResource struct {
	// Attributes A plan tier offered across smplkit products.
	Attributes Plan             `json:"attributes"`
	Id         *string          `json:"id,omitempty"`
	Type       PlanResourceType `json:"type"`
}

PlanResource JSON:API resource envelope for a plan tier.

type PlanResourceType

type PlanResourceType string

PlanResourceType defines model for PlanResource.Type.

const (
	PlanResourceTypePlan PlanResourceType = "plan"
)

Defines values for PlanResourceType.

func (PlanResourceType) Valid

func (e PlanResourceType) Valid() bool

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

type PreviewCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody added in v3.0.43

type PreviewCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody = SubscriptionRequest

PreviewCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody defines body for PreviewCurrentSubscription for application/vnd.api+json ContentType.

type PreviewCurrentSubscriptionResponse added in v3.0.43

type PreviewCurrentSubscriptionResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *SubscriptionPreviewResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParsePreviewCurrentSubscriptionResponse added in v3.0.43

func ParsePreviewCurrentSubscriptionResponse(rsp *http.Response) (*PreviewCurrentSubscriptionResponse, error)

ParsePreviewCurrentSubscriptionResponse parses an HTTP response from a PreviewCurrentSubscriptionWithResponse call

func (PreviewCurrentSubscriptionResponse) ContentType added in v3.0.43

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

func (PreviewCurrentSubscriptionResponse) Status added in v3.0.43

Status returns HTTPResponse.Status

func (PreviewCurrentSubscriptionResponse) StatusCode added in v3.0.43

func (r PreviewCurrentSubscriptionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Product

type Product struct {
	// ComingSoon When `true`, the product is listed but not yet available for subscription.
	ComingSoon *bool `json:"coming_soon,omitempty"`

	// Description Long-form product description.
	Description string `json:"description"`

	// DisplayName Human-readable product name.
	DisplayName string `json:"display_name"`

	// Features Bullet-list feature highlights for the product.
	Features *[]string `json:"features,omitempty"`

	// Limits Map of limit key to limit definition for this product.
	Limits map[string]LimitDefinition `json:"limits"`

	// Plans Map of plan key to plan definition for this product.
	Plans map[string]PlanDefinition `json:"plans"`

	// Tagline Short marketing tagline shown on plan-selection surfaces.
	Tagline *string `json:"tagline,omitempty"`
}

Product A smplkit product, with its plans, metered limits, and marketing copy.

type ProductListResponse

type ProductListResponse struct {
	Data []ProductResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

ProductListResponse JSON:API collection response for products.

type ProductResource

type ProductResource struct {
	// Attributes A smplkit product, with its plans, metered limits, and marketing copy.
	Attributes Product             `json:"attributes"`
	Id         *string             `json:"id,omitempty"`
	Type       ProductResourceType `json:"type"`
}

ProductResource JSON:API resource envelope for a product catalog entry.

type ProductResourceType

type ProductResourceType string

ProductResourceType defines model for ProductResource.Type.

const (
	ProductResourceTypeProduct ProductResourceType = "product"
)

Defines values for ProductResourceType.

func (ProductResourceType) Valid

func (e ProductResourceType) Valid() bool

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

type PutAccountSettingsApplicationVndAPIPlusJSONBody added in v3.0.68

type PutAccountSettingsApplicationVndAPIPlusJSONBody map[string]interface{}

PutAccountSettingsApplicationVndAPIPlusJSONBody defines parameters for PutAccountSettings.

type PutAccountSettingsApplicationVndAPIPlusJSONRequestBody added in v3.0.68

type PutAccountSettingsApplicationVndAPIPlusJSONRequestBody PutAccountSettingsApplicationVndAPIPlusJSONBody

PutAccountSettingsApplicationVndAPIPlusJSONRequestBody defines body for PutAccountSettings for application/vnd.api+json ContentType.

type PutAccountSettingsResponse

type PutAccountSettingsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *map[string]interface{}
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParsePutAccountSettingsResponse

func ParsePutAccountSettingsResponse(rsp *http.Response) (*PutAccountSettingsResponse, error)

ParsePutAccountSettingsResponse parses an HTTP response from a PutAccountSettingsWithResponse call

func (PutAccountSettingsResponse) ContentType

func (r PutAccountSettingsResponse) ContentType() string

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

func (PutAccountSettingsResponse) Status

Status returns HTTPResponse.Status

func (PutAccountSettingsResponse) StatusCode

func (r PutAccountSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody added in v3.0.43

type PutCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody = SubscriptionRequest

PutCurrentSubscriptionApplicationVndAPIPlusJSONRequestBody defines body for PutCurrentSubscription for application/vnd.api+json ContentType.

type PutCurrentSubscriptionResponse added in v3.0.43

type PutCurrentSubscriptionResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *SubscriptionResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParsePutCurrentSubscriptionResponse added in v3.0.43

func ParsePutCurrentSubscriptionResponse(rsp *http.Response) (*PutCurrentSubscriptionResponse, error)

ParsePutCurrentSubscriptionResponse parses an HTTP response from a PutCurrentSubscriptionWithResponse call

func (PutCurrentSubscriptionResponse) ContentType added in v3.0.43

func (r PutCurrentSubscriptionResponse) ContentType() string

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

func (PutCurrentSubscriptionResponse) Status added in v3.0.43

Status returns HTTPResponse.Status

func (PutCurrentSubscriptionResponse) StatusCode added in v3.0.43

func (r PutCurrentSubscriptionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutUserSettingsApplicationVndAPIPlusJSONBody added in v3.0.68

type PutUserSettingsApplicationVndAPIPlusJSONBody map[string]interface{}

PutUserSettingsApplicationVndAPIPlusJSONBody defines parameters for PutUserSettings.

type PutUserSettingsApplicationVndAPIPlusJSONRequestBody added in v3.0.68

type PutUserSettingsApplicationVndAPIPlusJSONRequestBody PutUserSettingsApplicationVndAPIPlusJSONBody

PutUserSettingsApplicationVndAPIPlusJSONRequestBody defines body for PutUserSettings for application/vnd.api+json ContentType.

type PutUserSettingsKeyApplicationVndAPIPlusJSONBody added in v3.0.68

type PutUserSettingsKeyApplicationVndAPIPlusJSONBody map[string]interface{}

PutUserSettingsKeyApplicationVndAPIPlusJSONBody defines parameters for PutUserSettingsKey.

type PutUserSettingsKeyApplicationVndAPIPlusJSONRequestBody added in v3.0.68

type PutUserSettingsKeyApplicationVndAPIPlusJSONRequestBody PutUserSettingsKeyApplicationVndAPIPlusJSONBody

PutUserSettingsKeyApplicationVndAPIPlusJSONRequestBody defines body for PutUserSettingsKey for application/vnd.api+json ContentType.

type PutUserSettingsKeyResponse

type PutUserSettingsKeyResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *map[string]interface{}
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParsePutUserSettingsKeyResponse

func ParsePutUserSettingsKeyResponse(rsp *http.Response) (*PutUserSettingsKeyResponse, error)

ParsePutUserSettingsKeyResponse parses an HTTP response from a PutUserSettingsKeyWithResponse call

func (PutUserSettingsKeyResponse) ContentType

func (r PutUserSettingsKeyResponse) ContentType() string

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

func (PutUserSettingsKeyResponse) Status

Status returns HTTPResponse.Status

func (PutUserSettingsKeyResponse) StatusCode

func (r PutUserSettingsKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutUserSettingsResponse

type PutUserSettingsResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *map[string]interface{}
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParsePutUserSettingsResponse

func ParsePutUserSettingsResponse(rsp *http.Response) (*PutUserSettingsResponse, error)

ParsePutUserSettingsResponse parses an HTTP response from a PutUserSettingsWithResponse call

func (PutUserSettingsResponse) ContentType

func (r PutUserSettingsResponse) ContentType() string

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

func (PutUserSettingsResponse) Status

func (r PutUserSettingsResponse) Status() string

Status returns HTTPResponse.Status

func (PutUserSettingsResponse) StatusCode

func (r PutUserSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RegisterJSONRequestBody

type RegisterJSONRequestBody = RegisterRequest

RegisterJSONRequestBody defines body for Register for application/json ContentType.

type RegisterRequest

type RegisterRequest struct {
	// Email Email address that becomes the new user's login identifier.
	Email openapi_types.Email `json:"email"`

	// EntryPoint How the customer arrived at the registration page. Allowed values: `LOGIN`, `GET_STARTED`, `LIVE_DEMO`, `UNKNOWN`. Defaults to `UNKNOWN` when omitted. Case-insensitive on input.
	EntryPoint *RegisterRequestEntryPoint `json:"entry_point,omitempty"`

	// Password Password for the new account. Must be at least 8 characters.
	Password string `json:"password"`
}

RegisterRequest Body for the email + password registration endpoint.

type RegisterRequestEntryPoint added in v3.0.6

type RegisterRequestEntryPoint string

RegisterRequestEntryPoint How the customer arrived at the registration page. Allowed values: `LOGIN`, `GET_STARTED`, `LIVE_DEMO`, `UNKNOWN`. Defaults to `UNKNOWN` when omitted. Case-insensitive on input.

const (
	GETSTARTED RegisterRequestEntryPoint = "GET_STARTED"
	LIVEDEMO   RegisterRequestEntryPoint = "LIVE_DEMO"
	LOGIN      RegisterRequestEntryPoint = "LOGIN"
	UNKNOWN    RegisterRequestEntryPoint = "UNKNOWN"
)

Defines values for RegisterRequestEntryPoint.

func (RegisterRequestEntryPoint) Valid added in v3.0.6

func (e RegisterRequestEntryPoint) Valid() bool

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

type RegisterResponse

type RegisterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuthTokenResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseRegisterResponse

func ParseRegisterResponse(rsp *http.Response) (*RegisterResponse, error)

ParseRegisterResponse parses an HTTP response from a RegisterWithResponse call

func (RegisterResponse) ContentType

func (r RegisterResponse) ContentType() string

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

func (RegisterResponse) Status

func (r RegisterResponse) Status() string

Status returns HTTPResponse.Status

func (RegisterResponse) StatusCode

func (r RegisterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveUserResponse

type RemoveUserResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseRemoveUserResponse

func ParseRemoveUserResponse(rsp *http.Response) (*RemoveUserResponse, error)

ParseRemoveUserResponse parses an HTTP response from a RemoveUserWithResponse call

func (RemoveUserResponse) ContentType

func (r RemoveUserResponse) ContentType() string

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

func (RemoveUserResponse) Status

func (r RemoveUserResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveUserResponse) StatusCode

func (r RemoveUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ResendInvitationResponse

type ResendInvitationResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *InvitationResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseResendInvitationResponse

func ParseResendInvitationResponse(rsp *http.Response) (*ResendInvitationResponse, error)

ParseResendInvitationResponse parses an HTTP response from a ResendInvitationWithResponse call

func (ResendInvitationResponse) ContentType

func (r ResendInvitationResponse) ContentType() string

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

func (ResendInvitationResponse) Status

func (r ResendInvitationResponse) Status() string

Status returns HTTPResponse.Status

func (ResendInvitationResponse) StatusCode

func (r ResendInvitationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResendVerificationResponse

type ResendVerificationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseResendVerificationResponse

func ParseResendVerificationResponse(rsp *http.Response) (*ResendVerificationResponse, error)

ParseResendVerificationResponse parses an HTTP response from a ResendVerificationWithResponse call

func (ResendVerificationResponse) ContentType

func (r ResendVerificationResponse) ContentType() string

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

func (ResendVerificationResponse) Status

Status returns HTTPResponse.Status

func (ResendVerificationResponse) StatusCode

func (r ResendVerificationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeApiKeyResponse

type RevokeApiKeyResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ApiKeyResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseRevokeApiKeyResponse

func ParseRevokeApiKeyResponse(rsp *http.Response) (*RevokeApiKeyResponse, error)

ParseRevokeApiKeyResponse parses an HTTP response from a RevokeApiKeyWithResponse call

func (RevokeApiKeyResponse) ContentType

func (r RevokeApiKeyResponse) ContentType() string

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

func (RevokeApiKeyResponse) Status

func (r RevokeApiKeyResponse) Status() string

Status returns HTTPResponse.Status

func (RevokeApiKeyResponse) StatusCode

func (r RevokeApiKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeInvitationResponse

type RevokeInvitationResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *InvitationResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseRevokeInvitationResponse

func ParseRevokeInvitationResponse(rsp *http.Response) (*RevokeInvitationResponse, error)

ParseRevokeInvitationResponse parses an HTTP response from a RevokeInvitationWithResponse call

func (RevokeInvitationResponse) ContentType

func (r RevokeInvitationResponse) ContentType() string

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

func (RevokeInvitationResponse) Status

func (r RevokeInvitationResponse) Status() string

Status returns HTTPResponse.Status

func (RevokeInvitationResponse) StatusCode

func (r RevokeInvitationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SendContactEmailApplicationVndAPIPlusJSONBody

type SendContactEmailApplicationVndAPIPlusJSONBody map[string]interface{}

SendContactEmailApplicationVndAPIPlusJSONBody defines parameters for SendContactEmail.

type SendContactEmailApplicationVndAPIPlusJSONRequestBody

type SendContactEmailApplicationVndAPIPlusJSONRequestBody SendContactEmailApplicationVndAPIPlusJSONBody

SendContactEmailApplicationVndAPIPlusJSONRequestBody defines body for SendContactEmail for application/vnd.api+json ContentType.

type SendContactEmailResponse

type SendContactEmailResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON201 *EmailResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON409 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
	ApplicationvndApiJSON500 *ErrorResponse
}

func ParseSendContactEmailResponse

func ParseSendContactEmailResponse(rsp *http.Response) (*SendContactEmailResponse, error)

ParseSendContactEmailResponse parses an HTTP response from a SendContactEmailWithResponse call

func (SendContactEmailResponse) ContentType

func (r SendContactEmailResponse) ContentType() string

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

func (SendContactEmailResponse) Status

func (r SendContactEmailResponse) Status() string

Status returns HTTPResponse.Status

func (SendContactEmailResponse) StatusCode

func (r SendContactEmailResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Service

type Service struct {
	// CreatedAt When the service was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Name Human-readable name for the service.
	Name string `json:"name"`

	// UpdatedAt When the service was last modified.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Service A service that contexts can be evaluated against — for example, a backend application or microservice in the customer's stack.

type ServiceCreateRequest added in v3.0.85

type ServiceCreateRequest struct {
	// Data JSON:API resource envelope for creating a service (id required).
	Data ServiceCreateResource `json:"data"`
}

ServiceCreateRequest JSON:API request envelope for creating a service.

Distinct from :class:`ServiceRequest` because create requires caller-supplied “data.id“ while update does not.

type ServiceCreateResource added in v3.0.85

type ServiceCreateResource struct {
	// Attributes A service that contexts can be evaluated against — for example, a
	// backend application or microservice in the customer's stack.
	Attributes Service `json:"attributes"`

	// Id Client-supplied resource id.
	Id   string                    `json:"id"`
	Type ServiceCreateResourceType `json:"type"`
}

ServiceCreateResource JSON:API resource envelope for creating a service (id required).

type ServiceCreateResourceType added in v3.0.85

type ServiceCreateResourceType string

ServiceCreateResourceType defines model for ServiceCreateResource.Type.

const (
	ServiceCreateResourceTypeService ServiceCreateResourceType = "service"
)

Defines values for ServiceCreateResourceType.

func (ServiceCreateResourceType) Valid added in v3.0.85

func (e ServiceCreateResourceType) Valid() bool

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

type ServiceListResponse

type ServiceListResponse struct {
	Data []ServiceResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

ServiceListResponse JSON:API collection response for services.

type ServiceRequest added in v3.0.31

type ServiceRequest struct {
	// Data JSON:API resource envelope for a service.
	//
	// The caller supplies “id“ (the service's key) on create.
	Data ServiceResource `json:"data"`
}

ServiceRequest JSON:API request envelope for updating a service.

type ServiceResource

type ServiceResource struct {
	// Attributes A service that contexts can be evaluated against — for example, a
	// backend application or microservice in the customer's stack.
	Attributes Service             `json:"attributes"`
	Id         *string             `json:"id,omitempty"`
	Type       ServiceResourceType `json:"type"`
}

ServiceResource JSON:API resource envelope for a service.

The caller supplies “id“ (the service's key) on create.

type ServiceResourceType

type ServiceResourceType string

ServiceResourceType defines model for ServiceResource.Type.

const (
	ServiceResourceTypeService ServiceResourceType = "service"
)

Defines values for ServiceResourceType.

func (ServiceResourceType) Valid

func (e ServiceResourceType) Valid() bool

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

type ServiceResponse

type ServiceResponse struct {
	// Data JSON:API resource envelope for a service.
	//
	// The caller supplies “id“ (the service's key) on create.
	Data ServiceResource `json:"data"`
}

ServiceResponse JSON:API single-resource response envelope for a service.

type SetDefaultPaymentMethodResponse

type SetDefaultPaymentMethodResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *PaymentMethodResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseSetDefaultPaymentMethodResponse

func ParseSetDefaultPaymentMethodResponse(rsp *http.Response) (*SetDefaultPaymentMethodResponse, error)

ParseSetDefaultPaymentMethodResponse parses an HTTP response from a SetDefaultPaymentMethodWithResponse call

func (SetDefaultPaymentMethodResponse) ContentType

func (r SetDefaultPaymentMethodResponse) ContentType() string

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

func (SetDefaultPaymentMethodResponse) Status

Status returns HTTPResponse.Status

func (SetDefaultPaymentMethodResponse) StatusCode

func (r SetDefaultPaymentMethodResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetupIntentAttributes

type SetupIntentAttributes struct {
	// ClientSecret Client secret to pass to Stripe Elements so the customer can complete payment-method setup in the browser.
	ClientSecret string `json:"client_secret"`
}

SetupIntentAttributes Result of executing the setup-intent function.

type SetupIntentResource

type SetupIntentResource struct {
	// Attributes Result of executing the setup-intent function.
	Attributes SetupIntentAttributes   `json:"attributes"`
	Type       SetupIntentResourceType `json:"type"`
}

SetupIntentResource defines model for SetupIntentResource.

type SetupIntentResourceType

type SetupIntentResourceType string

SetupIntentResourceType defines model for SetupIntentResource.Type.

const (
	SetupIntent SetupIntentResourceType = "setup_intent"
)

Defines values for SetupIntentResourceType.

func (SetupIntentResourceType) Valid

func (e SetupIntentResourceType) Valid() bool

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

type SetupIntentResponse

type SetupIntentResponse struct {
	Data SetupIntentResource `json:"data"`
}

SetupIntentResponse JSON:API single-resource response envelope for a setup-intent result.

type SubscriptionChangeProjection added in v3.0.43

type SubscriptionChangeProjection struct {
	// Effect `IMMEDIATE` when the change takes effect at confirmation time (and a prorated charge may apply today). `NEXT_PERIOD` when the change takes effect at the end of the current billing period.
	Effect SubscriptionChangeProjectionEffect `json:"effect"`

	// FromPlan Current plan for this product, or `FREE` if it is being added.
	FromPlan string `json:"from_plan"`

	// MonthlyCents Monthly cost in cents of this enrollment after the change. `0` when the enrollment will be dropped.
	MonthlyCents int `json:"monthly_cents"`

	// Product Product key affected by this change.
	Product string `json:"product"`

	// ProratedChargeTodayCents When `effect` is `IMMEDIATE`, the estimated prorated charge for the remainder of the current billing period in cents. Always `0` when `effect` is `NEXT_PERIOD`.
	ProratedChargeTodayCents *int `json:"prorated_charge_today_cents,omitempty"`

	// StartsAt When `effect` is `NEXT_PERIOD`, the ISO-8601 timestamp at which the change takes effect. `null` when `effect` is `IMMEDIATE` (the change applies on confirmation).
	StartsAt *string `json:"starts_at,omitempty"`

	// ToPlan Plan the product will be on after the change. `FREE` indicates the enrollment will be dropped.
	ToPlan string `json:"to_plan"`
}

SubscriptionChangeProjection Per-item projected effect of a subscription change.

type SubscriptionChangeProjectionEffect added in v3.0.43

type SubscriptionChangeProjectionEffect string

SubscriptionChangeProjectionEffect `IMMEDIATE` when the change takes effect at confirmation time (and a prorated charge may apply today). `NEXT_PERIOD` when the change takes effect at the end of the current billing period.

const (
	IMMEDIATE  SubscriptionChangeProjectionEffect = "IMMEDIATE"
	NEXTPERIOD SubscriptionChangeProjectionEffect = "NEXT_PERIOD"
)

Defines values for SubscriptionChangeProjectionEffect.

func (SubscriptionChangeProjectionEffect) Valid added in v3.0.43

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

type SubscriptionItemRequest added in v3.0.43

type SubscriptionItemRequest struct {
	// Plan Target plan for this product. Must be a paid plan such as `STANDARD` or `PRO`; the free plan is implicit when a product is not listed.
	Plan string `json:"plan"`

	// Product Product key (e.g. `audit`, `config`, `flags`, `logging`).
	Product string `json:"product"`
}

SubscriptionItemRequest One product enrollment as supplied by the caller.

The caller supplies the *desired* (product, plan) pair for each product they want enrolled. Products absent from the request are interpreted as scheduled-for-drop at the end of the current billing period.

type SubscriptionItemResponse added in v3.0.43

type SubscriptionItemResponse struct {
	// Id Unique identifier for this enrollment.
	Id openapi_types.UUID `json:"id"`

	// PendingPlanChange When a plan change is scheduled for the end of the current billing period, this is the plan that will take effect. Otherwise `null`. The value `FREE` indicates the enrollment will be dropped.
	PendingPlanChange *string `json:"pending_plan_change,omitempty"`

	// Plan Current plan for this product (e.g. `STANDARD`, `PRO`).
	Plan string `json:"plan"`

	// PriceMonthlyCents Monthly list price for this enrollment, in cents. This value is locked at the time the enrollment was created or last had its plan changed; subsequent changes to the public price list do not affect this enrollment until the customer themselves changes their plan.
	PriceMonthlyCents int `json:"price_monthly_cents"`

	// Product Product key (e.g. `audit`, `config`, `flags`, `logging`).
	Product string `json:"product"`

	// ScheduledChangeEffectiveAt ISO-8601 timestamp at which the pending plan change takes effect. Matches the subscription's `current_period_end`.
	ScheduledChangeEffectiveAt *string `json:"scheduled_change_effective_at,omitempty"`
}

SubscriptionItemResponse One product enrollment as exposed in subscription responses.

type SubscriptionPreviewAttributes added in v3.0.43

type SubscriptionPreviewAttributes struct {
	// Changes Per-product breakdown of changes the desired state would produce. Products that would remain unchanged are omitted.
	Changes []SubscriptionChangeProjection `json:"changes"`

	// NextInvoiceTotalCents Projected total of the next monthly invoice in cents, after all scheduled changes have taken effect.
	NextInvoiceTotalCents int `json:"next_invoice_total_cents"`

	// ProjectedDiscountAmountCents Projected discount amount in cents after the change.
	ProjectedDiscountAmountCents int `json:"projected_discount_amount_cents"`

	// ProjectedDiscountPct Projected discount percentage that will apply after the change.
	ProjectedDiscountPct int `json:"projected_discount_pct"`

	// ProjectedDiscountSource `VOLUME` when the projected discount comes from the multi-product schedule; `OVERRIDE` when an administrator's discount applies.
	ProjectedDiscountSource SubscriptionPreviewAttributesProjectedDiscountSource `json:"projected_discount_source"`

	// ProjectedNextTier Hint describing how the customer could unlock a better discount.
	ProjectedNextTier *NextTierResponse `json:"projected_next_tier,omitempty"`

	// ProjectedSubtotalCents Projected sum of item monthly list prices after the change.
	ProjectedSubtotalCents int `json:"projected_subtotal_cents"`

	// ProjectedTotalCents Projected final monthly total in cents after the change.
	ProjectedTotalCents int `json:"projected_total_cents"`

	// TotalChargeTodayCents Total amount that would be charged at confirmation time, in cents. The sum of `prorated_charge_today_cents` across `IMMEDIATE` changes.
	TotalChargeTodayCents int `json:"total_charge_today_cents"`
}

SubscriptionPreviewAttributes Projected totals and per-change breakdown for a hypothetical change.

type SubscriptionPreviewAttributesProjectedDiscountSource added in v3.0.43

type SubscriptionPreviewAttributesProjectedDiscountSource string

SubscriptionPreviewAttributesProjectedDiscountSource `VOLUME` when the projected discount comes from the multi-product schedule; `OVERRIDE` when an administrator's discount applies.

const (
	SubscriptionPreviewAttributesProjectedDiscountSourceOVERRIDE SubscriptionPreviewAttributesProjectedDiscountSource = "OVERRIDE"
	SubscriptionPreviewAttributesProjectedDiscountSourceVOLUME   SubscriptionPreviewAttributesProjectedDiscountSource = "VOLUME"
)

Defines values for SubscriptionPreviewAttributesProjectedDiscountSource.

func (SubscriptionPreviewAttributesProjectedDiscountSource) Valid added in v3.0.43

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

type SubscriptionPreviewResource added in v3.0.43

type SubscriptionPreviewResource struct {
	// Attributes Projected totals and per-change breakdown for a hypothetical change.
	Attributes SubscriptionPreviewAttributes `json:"attributes"`

	// Id Always `preview`.
	Id *SubscriptionPreviewResourceId `json:"id,omitempty"`

	// Type JSON:API resource type.
	Type SubscriptionPreviewResourceType `json:"type"`
}

SubscriptionPreviewResource JSON:API resource object for a subscription preview.

type SubscriptionPreviewResourceId added in v3.0.43

type SubscriptionPreviewResourceId string

SubscriptionPreviewResourceId Always `preview`.

const (
	Preview SubscriptionPreviewResourceId = "preview"
)

Defines values for SubscriptionPreviewResourceId.

func (SubscriptionPreviewResourceId) Valid added in v3.0.43

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

type SubscriptionPreviewResourceType added in v3.0.43

type SubscriptionPreviewResourceType string

SubscriptionPreviewResourceType JSON:API resource type.

const (
	SubscriptionPreview SubscriptionPreviewResourceType = "subscription_preview"
)

Defines values for SubscriptionPreviewResourceType.

func (SubscriptionPreviewResourceType) Valid added in v3.0.43

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

type SubscriptionPreviewResponse added in v3.0.43

type SubscriptionPreviewResponse struct {
	// Data JSON:API resource object for a subscription preview.
	Data SubscriptionPreviewResource `json:"data"`
}

SubscriptionPreviewResponse Response envelope for the preview action.

type SubscriptionRequest added in v3.0.43

type SubscriptionRequest struct {
	// Data JSON:API resource object for a subscription update request.
	Data SubscriptionRequestResource `json:"data"`
}

SubscriptionRequest Single-resource request envelope for replacing the subscription.

type SubscriptionRequestAttributes added in v3.0.43

type SubscriptionRequestAttributes struct {
	// Items Desired enrollments. Products listed are scheduled to be on the specified plan immediately (for upgrades and new enrollments) or at the end of the current billing period (for downgrades). Products not listed are scheduled to be dropped at the end of the current billing period.
	Items []SubscriptionItemRequest `json:"items"`

	// PaymentMethod Optional identifier of the payment method to bill against. If omitted, the account's default payment method is used.
	PaymentMethod *openapi_types.UUID `json:"payment_method,omitempty"`
}

SubscriptionRequestAttributes Customer's desired subscription state.

type SubscriptionRequestResource added in v3.0.43

type SubscriptionRequestResource struct {
	// Attributes Customer's desired subscription state.
	Attributes SubscriptionRequestAttributes `json:"attributes"`

	// Id Subscription identifier; the server ignores this and uses the auth context.
	Id *string `json:"id,omitempty"`

	// Type JSON:API resource type.
	Type SubscriptionRequestResourceType `json:"type"`
}

SubscriptionRequestResource JSON:API resource object for a subscription update request.

type SubscriptionRequestResourceType added in v3.0.43

type SubscriptionRequestResourceType string

SubscriptionRequestResourceType JSON:API resource type.

const (
	SubscriptionRequestResourceTypeSubscription SubscriptionRequestResourceType = "subscription"
)

Defines values for SubscriptionRequestResourceType.

func (SubscriptionRequestResourceType) Valid added in v3.0.43

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

type SubscriptionResource

type SubscriptionResource struct {
	// Attributes Customer's subscription as returned by the API.
	Attributes SubscriptionResponseAttributes `json:"attributes"`

	// Id Subscription identifier. Always `current` on response; absent on create-style requests.
	Id *string `json:"id,omitempty"`

	// Type JSON:API resource type.
	Type SubscriptionResourceType `json:"type"`
}

SubscriptionResource JSON:API resource object for a subscription.

type SubscriptionResourceType

type SubscriptionResourceType string

SubscriptionResourceType JSON:API resource type.

const (
	Subscription SubscriptionResourceType = "subscription"
)

Defines values for SubscriptionResourceType.

func (SubscriptionResourceType) Valid

func (e SubscriptionResourceType) Valid() bool

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

type SubscriptionResponse

type SubscriptionResponse struct {
	// Data JSON:API resource object for a subscription.
	Data SubscriptionResource `json:"data"`
}

SubscriptionResponse Single-resource response envelope for a subscription.

type SubscriptionResponseAttributes added in v3.0.43

type SubscriptionResponseAttributes struct {
	// CurrentPeriodEnd ISO-8601 timestamp of the current billing period's end. Scheduled plan changes take effect at this moment.
	CurrentPeriodEnd *string `json:"current_period_end,omitempty"`

	// CurrentPeriodStart ISO-8601 timestamp of the current billing period's start.
	CurrentPeriodStart *string `json:"current_period_start,omitempty"`

	// DiscountAmountCents Amount discounted from the subtotal in cents.
	DiscountAmountCents int `json:"discount_amount_cents"`

	// DiscountPct Effective discount percentage applied to the subscription's monthly invoice. This is the value locked at the time of the customer's last subscription change; subsequent changes to the public discount schedule do not affect this customer until they themselves change their subscription.
	DiscountPct int `json:"discount_pct"`

	// DiscountSource `VOLUME` when the discount comes from the multi-product discount schedule; `OVERRIDE` when an administrator has applied a custom discount.
	DiscountSource SubscriptionResponseAttributesDiscountSource `json:"discount_source"`

	// Items One entry per product currently enrolled on the subscription.
	Items []SubscriptionItemResponse `json:"items"`

	// NextTier Hint describing how the customer could unlock a better discount.
	NextTier *NextTierResponse `json:"next_tier,omitempty"`

	// PaymentMethod Identifier of the default payment method used to bill this subscription. `null` when the subscription has no associated payment method (e.g. fully discounted via `discount_override_pct` of 100).
	PaymentMethod *openapi_types.UUID `json:"payment_method,omitempty"`

	// Status Lifecycle state of the subscription. `ACTIVE` while billing is current; `PAST_DUE` after a failed charge; `CANCELED` once the subscription has ended; `null` when the subscription is fully discounted (`discount_override_pct` of 100) and has no billing-provider object.
	Status *string `json:"status,omitempty"`

	// SubtotalCents Sum of all item list prices in cents, before discount.
	SubtotalCents int `json:"subtotal_cents"`

	// TotalCents Final monthly total in cents after the discount is applied.
	TotalCents int `json:"total_cents"`
}

SubscriptionResponseAttributes Customer's subscription as returned by the API.

type SubscriptionResponseAttributesDiscountSource added in v3.0.43

type SubscriptionResponseAttributesDiscountSource string

SubscriptionResponseAttributesDiscountSource `VOLUME` when the discount comes from the multi-product discount schedule; `OVERRIDE` when an administrator has applied a custom discount.

const (
	SubscriptionResponseAttributesDiscountSourceOVERRIDE SubscriptionResponseAttributesDiscountSource = "OVERRIDE"
	SubscriptionResponseAttributesDiscountSourceVOLUME   SubscriptionResponseAttributesDiscountSource = "VOLUME"
)

Defines values for SubscriptionResponseAttributesDiscountSource.

func (SubscriptionResponseAttributesDiscountSource) Valid added in v3.0.43

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

type UpdateAccountApplicationVndAPIPlusJSONRequestBody

type UpdateAccountApplicationVndAPIPlusJSONRequestBody = AccountRequest

UpdateAccountApplicationVndAPIPlusJSONRequestBody defines body for UpdateAccount for application/vnd.api+json ContentType.

type UpdateAccountResponse

type UpdateAccountResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *AccountResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseUpdateAccountResponse

func ParseUpdateAccountResponse(rsp *http.Response) (*UpdateAccountResponse, error)

ParseUpdateAccountResponse parses an HTTP response from a UpdateAccountWithResponse call

func (UpdateAccountResponse) ContentType

func (r UpdateAccountResponse) ContentType() string

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

func (UpdateAccountResponse) Status

func (r UpdateAccountResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateAccountResponse) StatusCode

func (r UpdateAccountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateApiKeyApplicationVndAPIPlusJSONRequestBody

type UpdateApiKeyApplicationVndAPIPlusJSONRequestBody = ApiKeyRequest

UpdateApiKeyApplicationVndAPIPlusJSONRequestBody defines body for UpdateApiKey for application/vnd.api+json ContentType.

type UpdateApiKeyResponse

type UpdateApiKeyResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ApiKeyResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseUpdateApiKeyResponse

func ParseUpdateApiKeyResponse(rsp *http.Response) (*UpdateApiKeyResponse, error)

ParseUpdateApiKeyResponse parses an HTTP response from a UpdateApiKeyWithResponse call

func (UpdateApiKeyResponse) ContentType

func (r UpdateApiKeyResponse) ContentType() string

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

func (UpdateApiKeyResponse) Status

func (r UpdateApiKeyResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateApiKeyResponse) StatusCode

func (r UpdateApiKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateContextApplicationVndAPIPlusJSONRequestBody

type UpdateContextApplicationVndAPIPlusJSONRequestBody = ContextRequest

UpdateContextApplicationVndAPIPlusJSONRequestBody defines body for UpdateContext for application/vnd.api+json ContentType.

type UpdateContextResponse

type UpdateContextResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ContextResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseUpdateContextResponse

func ParseUpdateContextResponse(rsp *http.Response) (*UpdateContextResponse, error)

ParseUpdateContextResponse parses an HTTP response from a UpdateContextWithResponse call

func (UpdateContextResponse) ContentType

func (r UpdateContextResponse) ContentType() string

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

func (UpdateContextResponse) Status

func (r UpdateContextResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateContextResponse) StatusCode

func (r UpdateContextResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateContextTypeApplicationVndAPIPlusJSONRequestBody

type UpdateContextTypeApplicationVndAPIPlusJSONRequestBody = ContextTypeRequest

UpdateContextTypeApplicationVndAPIPlusJSONRequestBody defines body for UpdateContextType for application/vnd.api+json ContentType.

type UpdateContextTypeResponse

type UpdateContextTypeResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ContextTypeResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseUpdateContextTypeResponse

func ParseUpdateContextTypeResponse(rsp *http.Response) (*UpdateContextTypeResponse, error)

ParseUpdateContextTypeResponse parses an HTTP response from a UpdateContextTypeWithResponse call

func (UpdateContextTypeResponse) ContentType

func (r UpdateContextTypeResponse) ContentType() string

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

func (UpdateContextTypeResponse) Status

func (r UpdateContextTypeResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateContextTypeResponse) StatusCode

func (r UpdateContextTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateCurrentUserApplicationVndAPIPlusJSONRequestBody

type UpdateCurrentUserApplicationVndAPIPlusJSONRequestBody = UserRequest

UpdateCurrentUserApplicationVndAPIPlusJSONRequestBody defines body for UpdateCurrentUser for application/vnd.api+json ContentType.

type UpdateCurrentUserResponse

type UpdateCurrentUserResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *UserResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseUpdateCurrentUserResponse

func ParseUpdateCurrentUserResponse(rsp *http.Response) (*UpdateCurrentUserResponse, error)

ParseUpdateCurrentUserResponse parses an HTTP response from a UpdateCurrentUserWithResponse call

func (UpdateCurrentUserResponse) ContentType

func (r UpdateCurrentUserResponse) ContentType() string

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

func (UpdateCurrentUserResponse) Status

func (r UpdateCurrentUserResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateCurrentUserResponse) StatusCode

func (r UpdateCurrentUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateEnvironmentApplicationVndAPIPlusJSONRequestBody

type UpdateEnvironmentApplicationVndAPIPlusJSONRequestBody = EnvironmentRequest

UpdateEnvironmentApplicationVndAPIPlusJSONRequestBody defines body for UpdateEnvironment for application/vnd.api+json ContentType.

type UpdateEnvironmentResponse

type UpdateEnvironmentResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *EnvironmentResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseUpdateEnvironmentResponse

func ParseUpdateEnvironmentResponse(rsp *http.Response) (*UpdateEnvironmentResponse, error)

ParseUpdateEnvironmentResponse parses an HTTP response from a UpdateEnvironmentWithResponse call

func (UpdateEnvironmentResponse) ContentType

func (r UpdateEnvironmentResponse) ContentType() string

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

func (UpdateEnvironmentResponse) Status

func (r UpdateEnvironmentResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateEnvironmentResponse) StatusCode

func (r UpdateEnvironmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePaymentMethodApplicationVndAPIPlusJSONRequestBody

type UpdatePaymentMethodApplicationVndAPIPlusJSONRequestBody = PaymentMethodRequest

UpdatePaymentMethodApplicationVndAPIPlusJSONRequestBody defines body for UpdatePaymentMethod for application/vnd.api+json ContentType.

type UpdatePaymentMethodResponse

type UpdatePaymentMethodResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *PaymentMethodResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseUpdatePaymentMethodResponse

func ParseUpdatePaymentMethodResponse(rsp *http.Response) (*UpdatePaymentMethodResponse, error)

ParseUpdatePaymentMethodResponse parses an HTTP response from a UpdatePaymentMethodWithResponse call

func (UpdatePaymentMethodResponse) ContentType

func (r UpdatePaymentMethodResponse) ContentType() string

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

func (UpdatePaymentMethodResponse) Status

Status returns HTTPResponse.Status

func (UpdatePaymentMethodResponse) StatusCode

func (r UpdatePaymentMethodResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateServiceApplicationVndAPIPlusJSONRequestBody

type UpdateServiceApplicationVndAPIPlusJSONRequestBody = ServiceRequest

UpdateServiceApplicationVndAPIPlusJSONRequestBody defines body for UpdateService for application/vnd.api+json ContentType.

type UpdateServiceResponse

type UpdateServiceResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *ServiceResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseUpdateServiceResponse

func ParseUpdateServiceResponse(rsp *http.Response) (*UpdateServiceResponse, error)

ParseUpdateServiceResponse parses an HTTP response from a UpdateServiceWithResponse call

func (UpdateServiceResponse) ContentType

func (r UpdateServiceResponse) ContentType() string

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

func (UpdateServiceResponse) Status

func (r UpdateServiceResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateServiceResponse) StatusCode

func (r UpdateServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateUserRoleApplicationVndAPIPlusJSONRequestBody

type UpdateUserRoleApplicationVndAPIPlusJSONRequestBody = UserRequest

UpdateUserRoleApplicationVndAPIPlusJSONRequestBody defines body for UpdateUserRole for application/vnd.api+json ContentType.

type UpdateUserRoleResponse

type UpdateUserRoleResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON200 *UserResponse
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseUpdateUserRoleResponse

func ParseUpdateUserRoleResponse(rsp *http.Response) (*UpdateUserRoleResponse, error)

ParseUpdateUserRoleResponse parses an HTTP response from a UpdateUserRoleWithResponse call

func (UpdateUserRoleResponse) ContentType

func (r UpdateUserRoleResponse) ContentType() string

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

func (UpdateUserRoleResponse) Status

func (r UpdateUserRoleResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateUserRoleResponse) StatusCode

func (r UpdateUserRoleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type User

type User struct {
	// Account UUID of the account the user is acting within.
	Account *string `json:"account,omitempty"`

	// AuthProvider Identity provider that authenticates the user, e.g. `google`, `microsoft`, or `email`.
	AuthProvider *string `json:"auth_provider,omitempty"`

	// AvatarUrl Server-generated `data:` URL containing the user's avatar image bytes when one has been captured. `null` when no avatar is available — callers should fall back to Gravatar or initials.
	AvatarUrl *string `json:"avatar_url,omitempty"`

	// CreatedAt When the user record was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// DisplayName Human-readable display name shown in the console and on shared resources.
	DisplayName string `json:"display_name"`

	// Email Email address used to sign in to the user account.
	Email *openapi_types.Email `json:"email,omitempty"`

	// EmailVerified Whether the user has completed email verification.
	EmailVerified *bool `json:"email_verified,omitempty"`

	// ProfilePic URL of an external profile picture (e.g. the value supplied by the user's identity provider).
	ProfilePic *string `json:"profile_pic,omitempty"`

	// Role Role the user holds in the current account context. One of `OWNER`, `ADMIN`, `MEMBER`, or `VIEWER`.
	Role *string `json:"role,omitempty"`
}

User A person with access to one or more accounts in smplkit.

type UserListResponse

type UserListResponse struct {
	Data []UserResource `json:"data"`

	// Meta Top-level “meta“ block included on every JSON:API list response.
	Meta ListMeta `json:"meta"`
}

UserListResponse JSON:API collection response for users.

type UserRequest added in v3.0.31

type UserRequest struct {
	// Data JSON:API resource envelope for a user.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data UserResource `json:"data"`
}

UserRequest JSON:API request envelope for creating or updating a user.

type UserResource

type UserResource struct {
	// Attributes A person with access to one or more accounts in smplkit.
	Attributes User             `json:"attributes"`
	Id         *string          `json:"id,omitempty"`
	Type       UserResourceType `json:"type"`
}

UserResource JSON:API resource envelope for a user.

`id` must not be specified for create requests (the server assigns it).

type UserResourceType

type UserResourceType string

UserResourceType defines model for UserResource.Type.

const (
	UserResourceTypeUser UserResourceType = "user"
)

Defines values for UserResourceType.

func (UserResourceType) Valid

func (e UserResourceType) Valid() bool

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

type UserResponse

type UserResponse struct {
	// Data JSON:API resource envelope for a user.
	//
	// `id` must not be specified for create requests (the server assigns it).
	Data UserResource `json:"data"`
}

UserResponse JSON:API single-resource response envelope for a user.

type VerifyEmailJSONRequestBody

type VerifyEmailJSONRequestBody = VerifyEmailRequest

VerifyEmailJSONRequestBody defines body for VerifyEmail for application/json ContentType.

type VerifyEmailRequest

type VerifyEmailRequest struct {
	// Token Verification token previously delivered to the user's email.
	Token string `json:"token"`
}

VerifyEmailRequest Body for the email-verification endpoint.

type VerifyEmailResponse

type VerifyEmailResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AuthTokenResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseVerifyEmailResponse

func ParseVerifyEmailResponse(rsp *http.Response) (*VerifyEmailResponse, error)

ParseVerifyEmailResponse parses an HTTP response from a VerifyEmailWithResponse call

func (VerifyEmailResponse) ContentType

func (r VerifyEmailResponse) ContentType() string

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

func (VerifyEmailResponse) Status

func (r VerifyEmailResponse) Status() string

Status returns HTTPResponse.Status

func (VerifyEmailResponse) StatusCode

func (r VerifyEmailResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WipeAccountDataApplicationVndAPIPlusJSONRequestBody

type WipeAccountDataApplicationVndAPIPlusJSONRequestBody = AccountWipeRequest

WipeAccountDataApplicationVndAPIPlusJSONRequestBody defines body for WipeAccountData for application/vnd.api+json ContentType.

type WipeAccountDataResponse

type WipeAccountDataResponse struct {
	Body                     []byte
	HTTPResponse             *http.Response
	ApplicationvndApiJSON400 *ErrorResponse
	ApplicationvndApiJSON401 *ErrorResponse
	ApplicationvndApiJSON404 *ErrorResponse
	ApplicationvndApiJSON429 *ErrorResponse
}

func ParseWipeAccountDataResponse

func ParseWipeAccountDataResponse(rsp *http.Response) (*WipeAccountDataResponse, error)

ParseWipeAccountDataResponse parses an HTTP response from a WipeAccountDataWithResponse call

func (WipeAccountDataResponse) ContentType

func (r WipeAccountDataResponse) ContentType() string

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

func (WipeAccountDataResponse) Status

func (r WipeAccountDataResponse) Status() string

Status returns HTTPResponse.Status

func (WipeAccountDataResponse) StatusCode

func (r WipeAccountDataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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