api

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package api provides a generated client for the Primitive HTTP API.

The generated client is derived from the canonical OpenAPI specification in the sdks repository. Use NewAPIClient for the common API-key flow, or create your own SecuritySource when you need download-token-only access.

Code generated by ogen, DO NOT EDIT.

Index

Constants

View Source
const DefaultBaseURL = "https://www.primitive.dev/api/v1"

Variables

This section is empty.

Functions

func GetRolesForBearerAuth

func GetRolesForBearerAuth(operation string) []string

GetRolesForBearerAuth returns the required roles for the given operation.

This is useful for authorization scenarios where you need to know which roles are required for an operation.

Example:

requiredRoles := GetRolesForBearerAuth(AddPetOperation)

Returns nil if the operation has no role requirements or if the operation is unknown.

func GetRolesForDownloadToken

func GetRolesForDownloadToken(operation string) []string

GetRolesForDownloadToken returns the required roles for the given operation.

This is useful for authorization scenarios where you need to know which roles are required for an operation.

Example:

requiredRoles := GetRolesForDownloadToken(AddPetOperation)

Returns nil if the operation has no role requirements or if the operation is unknown.

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type Account

type Account struct {
	ID                               uuid.UUID      `json:"id"`
	Email                            string         `json:"email"`
	Plan                             string         `json:"plan"`
	CreatedAt                        time.Time      `json:"created_at"`
	OnboardingCompleted              OptBool        `json:"onboarding_completed"`
	OnboardingStep                   OptNilString   `json:"onboarding_step"`
	StripeSubscriptionStatus         OptNilString   `json:"stripe_subscription_status"`
	SubscriptionCurrentPeriodEnd     OptNilDateTime `json:"subscription_current_period_end"`
	SubscriptionCancelAtPeriodEnd    OptNilBool     `json:"subscription_cancel_at_period_end"`
	SpamThreshold                    OptNilFloat64  `json:"spam_threshold"`
	DiscardContentOnWebhookConfirmed bool           `json:"discard_content_on_webhook_confirmed"`
	WebhookSecretRotatedAt           OptNilDateTime `json:"webhook_secret_rotated_at"`
}

Ref: #/components/schemas/Account

func (*Account) Decode

func (s *Account) Decode(d *jx.Decoder) error

Decode decodes Account from json.

func (*Account) Encode

func (s *Account) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Account) GetCreatedAt

func (s *Account) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Account) GetDiscardContentOnWebhookConfirmed

func (s *Account) GetDiscardContentOnWebhookConfirmed() bool

GetDiscardContentOnWebhookConfirmed returns the value of DiscardContentOnWebhookConfirmed.

func (*Account) GetEmail

func (s *Account) GetEmail() string

GetEmail returns the value of Email.

func (*Account) GetID

func (s *Account) GetID() uuid.UUID

GetID returns the value of ID.

func (*Account) GetOnboardingCompleted

func (s *Account) GetOnboardingCompleted() OptBool

GetOnboardingCompleted returns the value of OnboardingCompleted.

func (*Account) GetOnboardingStep

func (s *Account) GetOnboardingStep() OptNilString

GetOnboardingStep returns the value of OnboardingStep.

func (*Account) GetPlan

func (s *Account) GetPlan() string

GetPlan returns the value of Plan.

func (*Account) GetSpamThreshold

func (s *Account) GetSpamThreshold() OptNilFloat64

GetSpamThreshold returns the value of SpamThreshold.

func (*Account) GetStripeSubscriptionStatus

func (s *Account) GetStripeSubscriptionStatus() OptNilString

GetStripeSubscriptionStatus returns the value of StripeSubscriptionStatus.

func (*Account) GetSubscriptionCancelAtPeriodEnd

func (s *Account) GetSubscriptionCancelAtPeriodEnd() OptNilBool

GetSubscriptionCancelAtPeriodEnd returns the value of SubscriptionCancelAtPeriodEnd.

func (*Account) GetSubscriptionCurrentPeriodEnd

func (s *Account) GetSubscriptionCurrentPeriodEnd() OptNilDateTime

GetSubscriptionCurrentPeriodEnd returns the value of SubscriptionCurrentPeriodEnd.

func (*Account) GetWebhookSecretRotatedAt

func (s *Account) GetWebhookSecretRotatedAt() OptNilDateTime

GetWebhookSecretRotatedAt returns the value of WebhookSecretRotatedAt.

func (*Account) MarshalJSON

func (s *Account) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Account) SetCreatedAt

func (s *Account) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Account) SetDiscardContentOnWebhookConfirmed

func (s *Account) SetDiscardContentOnWebhookConfirmed(val bool)

SetDiscardContentOnWebhookConfirmed sets the value of DiscardContentOnWebhookConfirmed.

func (*Account) SetEmail

func (s *Account) SetEmail(val string)

SetEmail sets the value of Email.

func (*Account) SetID

func (s *Account) SetID(val uuid.UUID)

SetID sets the value of ID.

func (*Account) SetOnboardingCompleted

func (s *Account) SetOnboardingCompleted(val OptBool)

SetOnboardingCompleted sets the value of OnboardingCompleted.

func (*Account) SetOnboardingStep

func (s *Account) SetOnboardingStep(val OptNilString)

SetOnboardingStep sets the value of OnboardingStep.

func (*Account) SetPlan

func (s *Account) SetPlan(val string)

SetPlan sets the value of Plan.

func (*Account) SetSpamThreshold

func (s *Account) SetSpamThreshold(val OptNilFloat64)

SetSpamThreshold sets the value of SpamThreshold.

func (*Account) SetStripeSubscriptionStatus

func (s *Account) SetStripeSubscriptionStatus(val OptNilString)

SetStripeSubscriptionStatus sets the value of StripeSubscriptionStatus.

func (*Account) SetSubscriptionCancelAtPeriodEnd

func (s *Account) SetSubscriptionCancelAtPeriodEnd(val OptNilBool)

SetSubscriptionCancelAtPeriodEnd sets the value of SubscriptionCancelAtPeriodEnd.

func (*Account) SetSubscriptionCurrentPeriodEnd

func (s *Account) SetSubscriptionCurrentPeriodEnd(val OptNilDateTime)

SetSubscriptionCurrentPeriodEnd sets the value of SubscriptionCurrentPeriodEnd.

func (*Account) SetWebhookSecretRotatedAt

func (s *Account) SetWebhookSecretRotatedAt(val OptNilDateTime)

SetWebhookSecretRotatedAt sets the value of WebhookSecretRotatedAt.

func (*Account) UnmarshalJSON

func (s *Account) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Account) Validate

func (s *Account) Validate() error

type AccountUpdated

type AccountUpdated struct {
	ID                               uuid.UUID     `json:"id"`
	Email                            string        `json:"email"`
	Plan                             string        `json:"plan"`
	SpamThreshold                    OptNilFloat64 `json:"spam_threshold"`
	DiscardContentOnWebhookConfirmed bool          `json:"discard_content_on_webhook_confirmed"`
}

Ref: #/components/schemas/AccountUpdated

func (*AccountUpdated) Decode

func (s *AccountUpdated) Decode(d *jx.Decoder) error

Decode decodes AccountUpdated from json.

func (*AccountUpdated) Encode

func (s *AccountUpdated) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AccountUpdated) GetDiscardContentOnWebhookConfirmed

func (s *AccountUpdated) GetDiscardContentOnWebhookConfirmed() bool

GetDiscardContentOnWebhookConfirmed returns the value of DiscardContentOnWebhookConfirmed.

func (*AccountUpdated) GetEmail

func (s *AccountUpdated) GetEmail() string

GetEmail returns the value of Email.

func (*AccountUpdated) GetID

func (s *AccountUpdated) GetID() uuid.UUID

GetID returns the value of ID.

func (*AccountUpdated) GetPlan

func (s *AccountUpdated) GetPlan() string

GetPlan returns the value of Plan.

func (*AccountUpdated) GetSpamThreshold

func (s *AccountUpdated) GetSpamThreshold() OptNilFloat64

GetSpamThreshold returns the value of SpamThreshold.

func (*AccountUpdated) MarshalJSON

func (s *AccountUpdated) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountUpdated) SetDiscardContentOnWebhookConfirmed

func (s *AccountUpdated) SetDiscardContentOnWebhookConfirmed(val bool)

SetDiscardContentOnWebhookConfirmed sets the value of DiscardContentOnWebhookConfirmed.

func (*AccountUpdated) SetEmail

func (s *AccountUpdated) SetEmail(val string)

SetEmail sets the value of Email.

func (*AccountUpdated) SetID

func (s *AccountUpdated) SetID(val uuid.UUID)

SetID sets the value of ID.

func (*AccountUpdated) SetPlan

func (s *AccountUpdated) SetPlan(val string)

SetPlan sets the value of Plan.

func (*AccountUpdated) SetSpamThreshold

func (s *AccountUpdated) SetSpamThreshold(val OptNilFloat64)

SetSpamThreshold sets the value of SpamThreshold.

func (*AccountUpdated) UnmarshalJSON

func (s *AccountUpdated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AccountUpdated) Validate

func (s *AccountUpdated) Validate() error

type AddDomainBadRequest

type AddDomainBadRequest ErrorResponse

func (*AddDomainBadRequest) Decode

func (s *AddDomainBadRequest) Decode(d *jx.Decoder) error

Decode decodes AddDomainBadRequest from json.

func (*AddDomainBadRequest) Encode

func (s *AddDomainBadRequest) Encode(e *jx.Encoder)

Encode encodes AddDomainBadRequest as json.

func (*AddDomainBadRequest) MarshalJSON

func (s *AddDomainBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddDomainBadRequest) UnmarshalJSON

func (s *AddDomainBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AddDomainBadRequest) Validate

func (s *AddDomainBadRequest) Validate() error

type AddDomainConflict added in v0.4.0

type AddDomainConflict ErrorResponse

func (*AddDomainConflict) Decode added in v0.4.0

func (s *AddDomainConflict) Decode(d *jx.Decoder) error

Decode decodes AddDomainConflict from json.

func (*AddDomainConflict) Encode added in v0.4.0

func (s *AddDomainConflict) Encode(e *jx.Encoder)

Encode encodes AddDomainConflict as json.

func (*AddDomainConflict) MarshalJSON added in v0.4.0

func (s *AddDomainConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddDomainConflict) UnmarshalJSON added in v0.4.0

func (s *AddDomainConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AddDomainConflict) Validate added in v0.4.0

func (s *AddDomainConflict) Validate() error

type AddDomainCreated

type AddDomainCreated struct {
	Success bool             `json:"success"`
	Data    UnverifiedDomain `json:"data"`
}

Merged schema.

func (*AddDomainCreated) Decode

func (s *AddDomainCreated) Decode(d *jx.Decoder) error

Decode decodes AddDomainCreated from json.

func (*AddDomainCreated) Encode

func (s *AddDomainCreated) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AddDomainCreated) GetData

func (s *AddDomainCreated) GetData() UnverifiedDomain

GetData returns the value of Data.

func (*AddDomainCreated) GetSuccess

func (s *AddDomainCreated) GetSuccess() bool

GetSuccess returns the value of Success.

func (*AddDomainCreated) MarshalJSON

func (s *AddDomainCreated) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddDomainCreated) SetData

func (s *AddDomainCreated) SetData(val UnverifiedDomain)

SetData sets the value of Data.

func (*AddDomainCreated) SetSuccess

func (s *AddDomainCreated) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*AddDomainCreated) UnmarshalJSON

func (s *AddDomainCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AddDomainInput

type AddDomainInput struct {
	// The domain name to claim (e.g. "example.com").
	Domain string `json:"domain"`
}

Ref: #/components/schemas/AddDomainInput

func (*AddDomainInput) Decode

func (s *AddDomainInput) Decode(d *jx.Decoder) error

Decode decodes AddDomainInput from json.

func (*AddDomainInput) Encode

func (s *AddDomainInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AddDomainInput) GetDomain

func (s *AddDomainInput) GetDomain() string

GetDomain returns the value of Domain.

func (*AddDomainInput) MarshalJSON

func (s *AddDomainInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddDomainInput) SetDomain

func (s *AddDomainInput) SetDomain(val string)

SetDomain sets the value of Domain.

func (*AddDomainInput) UnmarshalJSON

func (s *AddDomainInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AddDomainInput) Validate

func (s *AddDomainInput) Validate() error

type AddDomainRes

type AddDomainRes interface {
	// contains filtered or unexported methods
}

type AddDomainUnauthorized

type AddDomainUnauthorized ErrorResponse

func (*AddDomainUnauthorized) Decode

func (s *AddDomainUnauthorized) Decode(d *jx.Decoder) error

Decode decodes AddDomainUnauthorized from json.

func (*AddDomainUnauthorized) Encode

func (s *AddDomainUnauthorized) Encode(e *jx.Encoder)

Encode encodes AddDomainUnauthorized as json.

func (*AddDomainUnauthorized) MarshalJSON

func (s *AddDomainUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AddDomainUnauthorized) UnmarshalJSON

func (s *AddDomainUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AddDomainUnauthorized) Validate

func (s *AddDomainUnauthorized) Validate() error

type BearerAuth

type BearerAuth struct {
	Token string
	Roles []string
}

func (*BearerAuth) GetRoles

func (s *BearerAuth) GetRoles() []string

GetRoles returns the value of Roles.

func (*BearerAuth) GetToken

func (s *BearerAuth) GetToken() string

GetToken returns the value of Token.

func (*BearerAuth) SetRoles

func (s *BearerAuth) SetRoles(val []string)

SetRoles sets the value of Roles.

func (*BearerAuth) SetToken

func (s *BearerAuth) SetToken(val string)

SetToken sets the value of Token.

type Client

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

Client implements OAS client.

func NewAPIClient

func NewAPIClient(apiKey string, opts ...ClientOption) (*Client, error)

func NewClient

func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) AddDomain

func (c *Client) AddDomain(ctx context.Context, request *AddDomainInput) (AddDomainRes, error)

AddDomain invokes addDomain operation.

Creates an unverified domain claim. You will receive a `verification_token` to add as a DNS TXT record before calling the verify endpoint.

POST /domains

func (*Client) CreateEndpoint

func (c *Client) CreateEndpoint(ctx context.Context, request *CreateEndpointInput) (CreateEndpointRes, error)

CreateEndpoint invokes createEndpoint operation.

Creates a new webhook endpoint. If a deactivated endpoint with the same URL and domain exists, it is reactivated instead. Subject to plan limits on the number of active endpoints.

POST /endpoints

func (*Client) CreateFilter

func (c *Client) CreateFilter(ctx context.Context, request *CreateFilterInput) (CreateFilterRes, error)

CreateFilter invokes createFilter operation.

Creates a new whitelist or blocklist filter. Per-domain filters require a Pro plan. Patterns are stored as lowercase.

POST /filters

func (*Client) DeleteDomain

func (c *Client) DeleteDomain(ctx context.Context, params DeleteDomainParams) (DeleteDomainRes, error)

DeleteDomain invokes deleteDomain operation.

Deletes a verified or unverified domain claim.

DELETE /domains/{id}

func (*Client) DeleteEmail

func (c *Client) DeleteEmail(ctx context.Context, params DeleteEmailParams) (DeleteEmailRes, error)

DeleteEmail invokes deleteEmail operation.

Delete an email.

DELETE /emails/{id}

func (*Client) DeleteEndpoint

func (c *Client) DeleteEndpoint(ctx context.Context, params DeleteEndpointParams) (DeleteEndpointRes, error)

DeleteEndpoint invokes deleteEndpoint operation.

Soft-deletes a webhook endpoint. The endpoint will no longer receive webhook deliveries.

DELETE /endpoints/{id}

func (*Client) DeleteFilter

func (c *Client) DeleteFilter(ctx context.Context, params DeleteFilterParams) (DeleteFilterRes, error)

DeleteFilter invokes deleteFilter operation.

Delete a filter rule.

DELETE /filters/{id}

func (*Client) DownloadAttachments

func (c *Client) DownloadAttachments(ctx context.Context, params DownloadAttachmentsParams) (DownloadAttachmentsRes, error)

DownloadAttachments invokes downloadAttachments operation.

Downloads all attachments as a gzip-compressed tar archive. Authenticates via a signed download token (provided in webhook payloads) or a valid session.

GET /emails/{id}/attachments.tar.gz

func (*Client) DownloadRawEmail

func (c *Client) DownloadRawEmail(ctx context.Context, params DownloadRawEmailParams) (DownloadRawEmailRes, error)

DownloadRawEmail invokes downloadRawEmail operation.

Downloads the raw RFC 822 email file (.eml). Authenticates via a signed download token (provided in webhook payloads) or a valid session.

GET /emails/{id}/raw

func (*Client) GetAccount

func (c *Client) GetAccount(ctx context.Context) (GetAccountRes, error)

GetAccount invokes getAccount operation.

Get account info.

GET /account

func (*Client) GetEmail

func (c *Client) GetEmail(ctx context.Context, params GetEmailParams) (GetEmailRes, error)

GetEmail invokes getEmail operation.

Get email details.

GET /emails/{id}

func (*Client) GetStorageStats

func (c *Client) GetStorageStats(ctx context.Context) (GetStorageStatsRes, error)

GetStorageStats invokes getStorageStats operation.

Get storage usage.

GET /account/storage

func (*Client) GetWebhookSecret

func (c *Client) GetWebhookSecret(ctx context.Context) (GetWebhookSecretRes, error)

GetWebhookSecret invokes getWebhookSecret operation.

Returns the webhook signing secret for your account. If no secret exists yet, one is generated automatically on first access.

GET /account/webhook-secret

func (*Client) ListDeliveries

func (c *Client) ListDeliveries(ctx context.Context, params ListDeliveriesParams) (ListDeliveriesRes, error)

ListDeliveries invokes listDeliveries operation.

Returns a paginated list of webhook delivery attempts. Each delivery includes a nested `email` object with sender, recipient, and subject.

GET /webhooks/deliveries

func (*Client) ListDomains

func (c *Client) ListDomains(ctx context.Context) (ListDomainsRes, error)

ListDomains invokes listDomains operation.

Returns all verified and unverified domains for your organization, sorted by creation date (newest first). Each domain includes a `verified` boolean to distinguish between the two states.

GET /domains

func (*Client) ListEmails

func (c *Client) ListEmails(ctx context.Context, params ListEmailsParams) (ListEmailsRes, error)

ListEmails invokes listEmails operation.

Returns a paginated list of received emails. Supports filtering by domain, status, date range, and free-text search across subject, sender, and recipient fields.

GET /emails

func (*Client) ListEndpoints

func (c *Client) ListEndpoints(ctx context.Context) (ListEndpointsRes, error)

ListEndpoints invokes listEndpoints operation.

Returns all active (non-deleted) webhook endpoints.

GET /endpoints

func (*Client) ListFilters

func (c *Client) ListFilters(ctx context.Context) (ListFiltersRes, error)

ListFilters invokes listFilters operation.

Returns all whitelist and blocklist filter rules.

GET /filters

func (*Client) ReplayDelivery

func (c *Client) ReplayDelivery(ctx context.Context, params ReplayDeliveryParams) (ReplayDeliveryRes, error)

ReplayDelivery invokes replayDelivery operation.

Re-sends the stored webhook payload from a previous delivery attempt. If the original endpoint is still active, it is targeted. If the original endpoint was deleted, the oldest active endpoint is used. Deactivated endpoints cannot be replayed to. Rate limited per-org, sharing an org-wide budget with email replays.

POST /webhooks/deliveries/{id}/replay

func (*Client) ReplayEmailWebhooks

func (c *Client) ReplayEmailWebhooks(ctx context.Context, params ReplayEmailWebhooksParams) (ReplayEmailWebhooksRes, error)

ReplayEmailWebhooks invokes replayEmailWebhooks operation.

Re-delivers the webhook payload for this email to all active endpoints matching the email's domain. Rate limited per-email (short cooldown between successive replays of the same email) and per-org (burst + sustained windows), sharing an org-wide budget with delivery replays.

POST /emails/{id}/replay

func (*Client) RotateWebhookSecret

func (c *Client) RotateWebhookSecret(ctx context.Context) (RotateWebhookSecretRes, error)

RotateWebhookSecret invokes rotateWebhookSecret operation.

Generates a new webhook signing secret, replacing the current one. Rate limited to once per 60 minutes.

POST /account/webhook-secret/rotate

func (*Client) TestEndpoint

func (c *Client) TestEndpoint(ctx context.Context, params TestEndpointParams) (TestEndpointRes, error)

TestEndpoint invokes testEndpoint operation.

Sends a sample `email.received` event to the endpoint. The request includes SSRF protection (private IP rejection and DNS pinning). Rate limited to 4 per minute and 30 per hour (non-exempt). Successful deliveries and verified-domain endpoints are exempt from the rate limit.

POST /endpoints/{id}/test

func (*Client) UpdateAccount

func (c *Client) UpdateAccount(ctx context.Context, request *UpdateAccountInput) (UpdateAccountRes, error)

UpdateAccount invokes updateAccount operation.

Update account settings.

PATCH /account

func (*Client) UpdateDomain

func (c *Client) UpdateDomain(ctx context.Context, request *UpdateDomainInput, params UpdateDomainParams) (UpdateDomainRes, error)

UpdateDomain invokes updateDomain operation.

Update a verified domain's settings. Only verified domains can be updated. Per-domain spam thresholds require a Pro plan.

PATCH /domains/{id}

func (*Client) UpdateEndpoint

func (c *Client) UpdateEndpoint(ctx context.Context, request *UpdateEndpointInput, params UpdateEndpointParams) (UpdateEndpointRes, error)

UpdateEndpoint invokes updateEndpoint operation.

Updates an active webhook endpoint. If the URL is changed, the old endpoint is deactivated and a new one is created (or an existing deactivated endpoint with the new URL is reactivated).

PATCH /endpoints/{id}

func (*Client) UpdateFilter

func (c *Client) UpdateFilter(ctx context.Context, request *UpdateFilterInput, params UpdateFilterParams) (UpdateFilterRes, error)

UpdateFilter invokes updateFilter operation.

Toggle a filter's enabled state.

PATCH /filters/{id}

func (*Client) VerifyDomain

func (c *Client) VerifyDomain(ctx context.Context, params VerifyDomainParams) (VerifyDomainRes, error)

VerifyDomain invokes verifyDomain operation.

Checks DNS records (MX and TXT) to verify domain ownership. On success, the domain is promoted from unverified to verified. On failure, returns which checks passed and which failed.

POST /domains/{id}/verify

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type CreateEndpointBadRequest

type CreateEndpointBadRequest ErrorResponse

func (*CreateEndpointBadRequest) Decode

func (s *CreateEndpointBadRequest) Decode(d *jx.Decoder) error

Decode decodes CreateEndpointBadRequest from json.

func (*CreateEndpointBadRequest) Encode

func (s *CreateEndpointBadRequest) Encode(e *jx.Encoder)

Encode encodes CreateEndpointBadRequest as json.

func (*CreateEndpointBadRequest) MarshalJSON

func (s *CreateEndpointBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateEndpointBadRequest) UnmarshalJSON

func (s *CreateEndpointBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateEndpointBadRequest) Validate

func (s *CreateEndpointBadRequest) Validate() error

type CreateEndpointCreated

type CreateEndpointCreated struct {
	Success bool     `json:"success"`
	Data    Endpoint `json:"data"`
}

Merged schema.

func (*CreateEndpointCreated) Decode

func (s *CreateEndpointCreated) Decode(d *jx.Decoder) error

Decode decodes CreateEndpointCreated from json.

func (*CreateEndpointCreated) Encode

func (s *CreateEndpointCreated) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateEndpointCreated) GetData

func (s *CreateEndpointCreated) GetData() Endpoint

GetData returns the value of Data.

func (*CreateEndpointCreated) GetSuccess

func (s *CreateEndpointCreated) GetSuccess() bool

GetSuccess returns the value of Success.

func (*CreateEndpointCreated) MarshalJSON

func (s *CreateEndpointCreated) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateEndpointCreated) SetData

func (s *CreateEndpointCreated) SetData(val Endpoint)

SetData sets the value of Data.

func (*CreateEndpointCreated) SetSuccess

func (s *CreateEndpointCreated) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*CreateEndpointCreated) UnmarshalJSON

func (s *CreateEndpointCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateEndpointInput

type CreateEndpointInput struct {
	// The webhook URL to deliver events to.
	URL string `json:"url"`
	// Whether the endpoint is active.
	Enabled OptBool `json:"enabled"`
	// Restrict to emails from a specific domain.
	DomainID OptNilUUID `json:"domain_id"`
	// Endpoint-specific filtering rules.
	Rules *CreateEndpointInputRules `json:"rules"`
}

Ref: #/components/schemas/CreateEndpointInput

func (*CreateEndpointInput) Decode

func (s *CreateEndpointInput) Decode(d *jx.Decoder) error

Decode decodes CreateEndpointInput from json.

func (*CreateEndpointInput) Encode

func (s *CreateEndpointInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateEndpointInput) GetDomainID

func (s *CreateEndpointInput) GetDomainID() OptNilUUID

GetDomainID returns the value of DomainID.

func (*CreateEndpointInput) GetEnabled

func (s *CreateEndpointInput) GetEnabled() OptBool

GetEnabled returns the value of Enabled.

func (*CreateEndpointInput) GetRules

GetRules returns the value of Rules.

func (*CreateEndpointInput) GetURL

func (s *CreateEndpointInput) GetURL() string

GetURL returns the value of URL.

func (*CreateEndpointInput) MarshalJSON

func (s *CreateEndpointInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateEndpointInput) SetDomainID

func (s *CreateEndpointInput) SetDomainID(val OptNilUUID)

SetDomainID sets the value of DomainID.

func (*CreateEndpointInput) SetEnabled

func (s *CreateEndpointInput) SetEnabled(val OptBool)

SetEnabled sets the value of Enabled.

func (*CreateEndpointInput) SetRules

SetRules sets the value of Rules.

func (*CreateEndpointInput) SetURL

func (s *CreateEndpointInput) SetURL(val string)

SetURL sets the value of URL.

func (*CreateEndpointInput) UnmarshalJSON

func (s *CreateEndpointInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateEndpointInput) Validate

func (s *CreateEndpointInput) Validate() error

type CreateEndpointInputRules

type CreateEndpointInputRules struct{}

Endpoint-specific filtering rules.

func (*CreateEndpointInputRules) Decode

func (s *CreateEndpointInputRules) Decode(d *jx.Decoder) error

Decode decodes CreateEndpointInputRules from json.

func (*CreateEndpointInputRules) Encode

func (s *CreateEndpointInputRules) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateEndpointInputRules) MarshalJSON

func (s *CreateEndpointInputRules) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateEndpointInputRules) UnmarshalJSON

func (s *CreateEndpointInputRules) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateEndpointRes

type CreateEndpointRes interface {
	// contains filtered or unexported methods
}

type CreateEndpointUnauthorized

type CreateEndpointUnauthorized ErrorResponse

func (*CreateEndpointUnauthorized) Decode

Decode decodes CreateEndpointUnauthorized from json.

func (*CreateEndpointUnauthorized) Encode

func (s *CreateEndpointUnauthorized) Encode(e *jx.Encoder)

Encode encodes CreateEndpointUnauthorized as json.

func (*CreateEndpointUnauthorized) MarshalJSON

func (s *CreateEndpointUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateEndpointUnauthorized) UnmarshalJSON

func (s *CreateEndpointUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateEndpointUnauthorized) Validate

func (s *CreateEndpointUnauthorized) Validate() error

type CreateFilterBadRequest

type CreateFilterBadRequest ErrorResponse

func (*CreateFilterBadRequest) Decode

func (s *CreateFilterBadRequest) Decode(d *jx.Decoder) error

Decode decodes CreateFilterBadRequest from json.

func (*CreateFilterBadRequest) Encode

func (s *CreateFilterBadRequest) Encode(e *jx.Encoder)

Encode encodes CreateFilterBadRequest as json.

func (*CreateFilterBadRequest) MarshalJSON

func (s *CreateFilterBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateFilterBadRequest) UnmarshalJSON

func (s *CreateFilterBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateFilterBadRequest) Validate

func (s *CreateFilterBadRequest) Validate() error

type CreateFilterCreated

type CreateFilterCreated struct {
	Success bool   `json:"success"`
	Data    Filter `json:"data"`
}

Merged schema.

func (*CreateFilterCreated) Decode

func (s *CreateFilterCreated) Decode(d *jx.Decoder) error

Decode decodes CreateFilterCreated from json.

func (*CreateFilterCreated) Encode

func (s *CreateFilterCreated) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateFilterCreated) GetData

func (s *CreateFilterCreated) GetData() Filter

GetData returns the value of Data.

func (*CreateFilterCreated) GetSuccess

func (s *CreateFilterCreated) GetSuccess() bool

GetSuccess returns the value of Success.

func (*CreateFilterCreated) MarshalJSON

func (s *CreateFilterCreated) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateFilterCreated) SetData

func (s *CreateFilterCreated) SetData(val Filter)

SetData sets the value of Data.

func (*CreateFilterCreated) SetSuccess

func (s *CreateFilterCreated) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*CreateFilterCreated) UnmarshalJSON

func (s *CreateFilterCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateFilterCreated) Validate

func (s *CreateFilterCreated) Validate() error

type CreateFilterInput

type CreateFilterInput struct {
	Type CreateFilterInputType `json:"type"`
	// Email address or pattern to filter.
	Pattern string `json:"pattern"`
	// Restrict filter to a specific domain (Pro plan required).
	DomainID OptNilUUID `json:"domain_id"`
}

Ref: #/components/schemas/CreateFilterInput

func (*CreateFilterInput) Decode

func (s *CreateFilterInput) Decode(d *jx.Decoder) error

Decode decodes CreateFilterInput from json.

func (*CreateFilterInput) Encode

func (s *CreateFilterInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateFilterInput) GetDomainID

func (s *CreateFilterInput) GetDomainID() OptNilUUID

GetDomainID returns the value of DomainID.

func (*CreateFilterInput) GetPattern

func (s *CreateFilterInput) GetPattern() string

GetPattern returns the value of Pattern.

func (*CreateFilterInput) GetType

GetType returns the value of Type.

func (*CreateFilterInput) MarshalJSON

func (s *CreateFilterInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateFilterInput) SetDomainID

func (s *CreateFilterInput) SetDomainID(val OptNilUUID)

SetDomainID sets the value of DomainID.

func (*CreateFilterInput) SetPattern

func (s *CreateFilterInput) SetPattern(val string)

SetPattern sets the value of Pattern.

func (*CreateFilterInput) SetType

func (s *CreateFilterInput) SetType(val CreateFilterInputType)

SetType sets the value of Type.

func (*CreateFilterInput) UnmarshalJSON

func (s *CreateFilterInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateFilterInput) Validate

func (s *CreateFilterInput) Validate() error

type CreateFilterInputType

type CreateFilterInputType string
const (
	CreateFilterInputTypeWhitelist CreateFilterInputType = "whitelist"
	CreateFilterInputTypeBlocklist CreateFilterInputType = "blocklist"
)

func (CreateFilterInputType) AllValues

AllValues returns all CreateFilterInputType values.

func (*CreateFilterInputType) Decode

func (s *CreateFilterInputType) Decode(d *jx.Decoder) error

Decode decodes CreateFilterInputType from json.

func (CreateFilterInputType) Encode

func (s CreateFilterInputType) Encode(e *jx.Encoder)

Encode encodes CreateFilterInputType as json.

func (CreateFilterInputType) MarshalJSON

func (s CreateFilterInputType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateFilterInputType) MarshalText

func (s CreateFilterInputType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateFilterInputType) UnmarshalJSON

func (s *CreateFilterInputType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateFilterInputType) UnmarshalText

func (s *CreateFilterInputType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateFilterInputType) Validate

func (s CreateFilterInputType) Validate() error

type CreateFilterNotFound

type CreateFilterNotFound ErrorResponse

func (*CreateFilterNotFound) Decode

func (s *CreateFilterNotFound) Decode(d *jx.Decoder) error

Decode decodes CreateFilterNotFound from json.

func (*CreateFilterNotFound) Encode

func (s *CreateFilterNotFound) Encode(e *jx.Encoder)

Encode encodes CreateFilterNotFound as json.

func (*CreateFilterNotFound) MarshalJSON

func (s *CreateFilterNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateFilterNotFound) UnmarshalJSON

func (s *CreateFilterNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateFilterNotFound) Validate

func (s *CreateFilterNotFound) Validate() error

type CreateFilterRes

type CreateFilterRes interface {
	// contains filtered or unexported methods
}

type CreateFilterUnauthorized

type CreateFilterUnauthorized ErrorResponse

func (*CreateFilterUnauthorized) Decode

func (s *CreateFilterUnauthorized) Decode(d *jx.Decoder) error

Decode decodes CreateFilterUnauthorized from json.

func (*CreateFilterUnauthorized) Encode

func (s *CreateFilterUnauthorized) Encode(e *jx.Encoder)

Encode encodes CreateFilterUnauthorized as json.

func (*CreateFilterUnauthorized) MarshalJSON

func (s *CreateFilterUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateFilterUnauthorized) UnmarshalJSON

func (s *CreateFilterUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateFilterUnauthorized) Validate

func (s *CreateFilterUnauthorized) Validate() error

type DeleteDomainBadRequest

type DeleteDomainBadRequest ErrorResponse

func (*DeleteDomainBadRequest) Decode

func (s *DeleteDomainBadRequest) Decode(d *jx.Decoder) error

Decode decodes DeleteDomainBadRequest from json.

func (*DeleteDomainBadRequest) Encode

func (s *DeleteDomainBadRequest) Encode(e *jx.Encoder)

Encode encodes DeleteDomainBadRequest as json.

func (*DeleteDomainBadRequest) MarshalJSON

func (s *DeleteDomainBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteDomainBadRequest) UnmarshalJSON

func (s *DeleteDomainBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteDomainBadRequest) Validate

func (s *DeleteDomainBadRequest) Validate() error

type DeleteDomainNotFound

type DeleteDomainNotFound ErrorResponse

func (*DeleteDomainNotFound) Decode

func (s *DeleteDomainNotFound) Decode(d *jx.Decoder) error

Decode decodes DeleteDomainNotFound from json.

func (*DeleteDomainNotFound) Encode

func (s *DeleteDomainNotFound) Encode(e *jx.Encoder)

Encode encodes DeleteDomainNotFound as json.

func (*DeleteDomainNotFound) MarshalJSON

func (s *DeleteDomainNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteDomainNotFound) UnmarshalJSON

func (s *DeleteDomainNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteDomainNotFound) Validate

func (s *DeleteDomainNotFound) Validate() error

type DeleteDomainParams

type DeleteDomainParams struct {
	// Resource UUID.
	ID uuid.UUID
}

DeleteDomainParams is parameters of deleteDomain operation.

type DeleteDomainRes

type DeleteDomainRes interface {
	// contains filtered or unexported methods
}

type DeleteDomainUnauthorized

type DeleteDomainUnauthorized ErrorResponse

func (*DeleteDomainUnauthorized) Decode

func (s *DeleteDomainUnauthorized) Decode(d *jx.Decoder) error

Decode decodes DeleteDomainUnauthorized from json.

func (*DeleteDomainUnauthorized) Encode

func (s *DeleteDomainUnauthorized) Encode(e *jx.Encoder)

Encode encodes DeleteDomainUnauthorized as json.

func (*DeleteDomainUnauthorized) MarshalJSON

func (s *DeleteDomainUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteDomainUnauthorized) UnmarshalJSON

func (s *DeleteDomainUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteDomainUnauthorized) Validate

func (s *DeleteDomainUnauthorized) Validate() error

type DeleteEmailBadRequest

type DeleteEmailBadRequest ErrorResponse

func (*DeleteEmailBadRequest) Decode

func (s *DeleteEmailBadRequest) Decode(d *jx.Decoder) error

Decode decodes DeleteEmailBadRequest from json.

func (*DeleteEmailBadRequest) Encode

func (s *DeleteEmailBadRequest) Encode(e *jx.Encoder)

Encode encodes DeleteEmailBadRequest as json.

func (*DeleteEmailBadRequest) MarshalJSON

func (s *DeleteEmailBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteEmailBadRequest) UnmarshalJSON

func (s *DeleteEmailBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteEmailBadRequest) Validate

func (s *DeleteEmailBadRequest) Validate() error

type DeleteEmailNotFound

type DeleteEmailNotFound ErrorResponse

func (*DeleteEmailNotFound) Decode

func (s *DeleteEmailNotFound) Decode(d *jx.Decoder) error

Decode decodes DeleteEmailNotFound from json.

func (*DeleteEmailNotFound) Encode

func (s *DeleteEmailNotFound) Encode(e *jx.Encoder)

Encode encodes DeleteEmailNotFound as json.

func (*DeleteEmailNotFound) MarshalJSON

func (s *DeleteEmailNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteEmailNotFound) UnmarshalJSON

func (s *DeleteEmailNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteEmailNotFound) Validate

func (s *DeleteEmailNotFound) Validate() error

type DeleteEmailParams

type DeleteEmailParams struct {
	// Resource UUID.
	ID uuid.UUID
}

DeleteEmailParams is parameters of deleteEmail operation.

type DeleteEmailRes

type DeleteEmailRes interface {
	// contains filtered or unexported methods
}

type DeleteEmailUnauthorized

type DeleteEmailUnauthorized ErrorResponse

func (*DeleteEmailUnauthorized) Decode

func (s *DeleteEmailUnauthorized) Decode(d *jx.Decoder) error

Decode decodes DeleteEmailUnauthorized from json.

func (*DeleteEmailUnauthorized) Encode

func (s *DeleteEmailUnauthorized) Encode(e *jx.Encoder)

Encode encodes DeleteEmailUnauthorized as json.

func (*DeleteEmailUnauthorized) MarshalJSON

func (s *DeleteEmailUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteEmailUnauthorized) UnmarshalJSON

func (s *DeleteEmailUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteEmailUnauthorized) Validate

func (s *DeleteEmailUnauthorized) Validate() error

type DeleteEndpointBadRequest

type DeleteEndpointBadRequest ErrorResponse

func (*DeleteEndpointBadRequest) Decode

func (s *DeleteEndpointBadRequest) Decode(d *jx.Decoder) error

Decode decodes DeleteEndpointBadRequest from json.

func (*DeleteEndpointBadRequest) Encode

func (s *DeleteEndpointBadRequest) Encode(e *jx.Encoder)

Encode encodes DeleteEndpointBadRequest as json.

func (*DeleteEndpointBadRequest) MarshalJSON

func (s *DeleteEndpointBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteEndpointBadRequest) UnmarshalJSON

func (s *DeleteEndpointBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteEndpointBadRequest) Validate

func (s *DeleteEndpointBadRequest) Validate() error

type DeleteEndpointNotFound

type DeleteEndpointNotFound ErrorResponse

func (*DeleteEndpointNotFound) Decode

func (s *DeleteEndpointNotFound) Decode(d *jx.Decoder) error

Decode decodes DeleteEndpointNotFound from json.

func (*DeleteEndpointNotFound) Encode

func (s *DeleteEndpointNotFound) Encode(e *jx.Encoder)

Encode encodes DeleteEndpointNotFound as json.

func (*DeleteEndpointNotFound) MarshalJSON

func (s *DeleteEndpointNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteEndpointNotFound) UnmarshalJSON

func (s *DeleteEndpointNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteEndpointNotFound) Validate

func (s *DeleteEndpointNotFound) Validate() error

type DeleteEndpointParams

type DeleteEndpointParams struct {
	// Resource UUID.
	ID uuid.UUID
}

DeleteEndpointParams is parameters of deleteEndpoint operation.

type DeleteEndpointRes

type DeleteEndpointRes interface {
	// contains filtered or unexported methods
}

type DeleteEndpointUnauthorized

type DeleteEndpointUnauthorized ErrorResponse

func (*DeleteEndpointUnauthorized) Decode

Decode decodes DeleteEndpointUnauthorized from json.

func (*DeleteEndpointUnauthorized) Encode

func (s *DeleteEndpointUnauthorized) Encode(e *jx.Encoder)

Encode encodes DeleteEndpointUnauthorized as json.

func (*DeleteEndpointUnauthorized) MarshalJSON

func (s *DeleteEndpointUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteEndpointUnauthorized) UnmarshalJSON

func (s *DeleteEndpointUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteEndpointUnauthorized) Validate

func (s *DeleteEndpointUnauthorized) Validate() error

type DeleteFilterBadRequest

type DeleteFilterBadRequest ErrorResponse

func (*DeleteFilterBadRequest) Decode

func (s *DeleteFilterBadRequest) Decode(d *jx.Decoder) error

Decode decodes DeleteFilterBadRequest from json.

func (*DeleteFilterBadRequest) Encode

func (s *DeleteFilterBadRequest) Encode(e *jx.Encoder)

Encode encodes DeleteFilterBadRequest as json.

func (*DeleteFilterBadRequest) MarshalJSON

func (s *DeleteFilterBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteFilterBadRequest) UnmarshalJSON

func (s *DeleteFilterBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteFilterBadRequest) Validate

func (s *DeleteFilterBadRequest) Validate() error

type DeleteFilterNotFound

type DeleteFilterNotFound ErrorResponse

func (*DeleteFilterNotFound) Decode

func (s *DeleteFilterNotFound) Decode(d *jx.Decoder) error

Decode decodes DeleteFilterNotFound from json.

func (*DeleteFilterNotFound) Encode

func (s *DeleteFilterNotFound) Encode(e *jx.Encoder)

Encode encodes DeleteFilterNotFound as json.

func (*DeleteFilterNotFound) MarshalJSON

func (s *DeleteFilterNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteFilterNotFound) UnmarshalJSON

func (s *DeleteFilterNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteFilterNotFound) Validate

func (s *DeleteFilterNotFound) Validate() error

type DeleteFilterParams

type DeleteFilterParams struct {
	// Resource UUID.
	ID uuid.UUID
}

DeleteFilterParams is parameters of deleteFilter operation.

type DeleteFilterRes

type DeleteFilterRes interface {
	// contains filtered or unexported methods
}

type DeleteFilterUnauthorized

type DeleteFilterUnauthorized ErrorResponse

func (*DeleteFilterUnauthorized) Decode

func (s *DeleteFilterUnauthorized) Decode(d *jx.Decoder) error

Decode decodes DeleteFilterUnauthorized from json.

func (*DeleteFilterUnauthorized) Encode

func (s *DeleteFilterUnauthorized) Encode(e *jx.Encoder)

Encode encodes DeleteFilterUnauthorized as json.

func (*DeleteFilterUnauthorized) MarshalJSON

func (s *DeleteFilterUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteFilterUnauthorized) UnmarshalJSON

func (s *DeleteFilterUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeleteFilterUnauthorized) Validate

func (s *DeleteFilterUnauthorized) Validate() error

type Deleted

type Deleted struct {
	Success bool        `json:"success"`
	Data    DeletedData `json:"data"`
}

Merged schema.

func (*Deleted) Decode

func (s *Deleted) Decode(d *jx.Decoder) error

Decode decodes Deleted from json.

func (*Deleted) Encode

func (s *Deleted) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Deleted) GetData

func (s *Deleted) GetData() DeletedData

GetData returns the value of Data.

func (*Deleted) GetSuccess

func (s *Deleted) GetSuccess() bool

GetSuccess returns the value of Success.

func (*Deleted) MarshalJSON

func (s *Deleted) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Deleted) SetData

func (s *Deleted) SetData(val DeletedData)

SetData sets the value of Data.

func (*Deleted) SetSuccess

func (s *Deleted) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*Deleted) UnmarshalJSON

func (s *Deleted) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeletedData

type DeletedData struct {
	Deleted bool `json:"deleted"`
}

func (*DeletedData) Decode

func (s *DeletedData) Decode(d *jx.Decoder) error

Decode decodes DeletedData from json.

func (*DeletedData) Encode

func (s *DeletedData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DeletedData) GetDeleted

func (s *DeletedData) GetDeleted() bool

GetDeleted returns the value of Deleted.

func (*DeletedData) MarshalJSON

func (s *DeletedData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeletedData) SetDeleted

func (s *DeletedData) SetDeleted(val bool)

SetDeleted sets the value of Deleted.

func (*DeletedData) UnmarshalJSON

func (s *DeletedData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeliverySummary

type DeliverySummary struct {
	// Delivery ID (numeric string).
	ID           string                     `json:"id"`
	EmailID      uuid.UUID                  `json:"email_id"`
	OrgID        uuid.UUID                  `json:"org_id"`
	EndpointID   uuid.UUID                  `json:"endpoint_id"`
	EndpointURL  string                     `json:"endpoint_url"`
	Status       DeliverySummaryStatus      `json:"status"`
	AttemptCount int                        `json:"attempt_count"`
	DurationMs   OptNilInt                  `json:"duration_ms"`
	LastError    OptNilString               `json:"last_error"`
	CreatedAt    time.Time                  `json:"created_at"`
	UpdatedAt    time.Time                  `json:"updated_at"`
	Email        OptNilDeliverySummaryEmail `json:"email"`
}

Ref: #/components/schemas/DeliverySummary

func (*DeliverySummary) Decode

func (s *DeliverySummary) Decode(d *jx.Decoder) error

Decode decodes DeliverySummary from json.

func (*DeliverySummary) Encode

func (s *DeliverySummary) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DeliverySummary) GetAttemptCount

func (s *DeliverySummary) GetAttemptCount() int

GetAttemptCount returns the value of AttemptCount.

func (*DeliverySummary) GetCreatedAt

func (s *DeliverySummary) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*DeliverySummary) GetDurationMs

func (s *DeliverySummary) GetDurationMs() OptNilInt

GetDurationMs returns the value of DurationMs.

func (*DeliverySummary) GetEmail

GetEmail returns the value of Email.

func (*DeliverySummary) GetEmailID

func (s *DeliverySummary) GetEmailID() uuid.UUID

GetEmailID returns the value of EmailID.

func (*DeliverySummary) GetEndpointID

func (s *DeliverySummary) GetEndpointID() uuid.UUID

GetEndpointID returns the value of EndpointID.

func (*DeliverySummary) GetEndpointURL

func (s *DeliverySummary) GetEndpointURL() string

GetEndpointURL returns the value of EndpointURL.

func (*DeliverySummary) GetID

func (s *DeliverySummary) GetID() string

GetID returns the value of ID.

func (*DeliverySummary) GetLastError

func (s *DeliverySummary) GetLastError() OptNilString

GetLastError returns the value of LastError.

func (*DeliverySummary) GetOrgID

func (s *DeliverySummary) GetOrgID() uuid.UUID

GetOrgID returns the value of OrgID.

func (*DeliverySummary) GetStatus

func (s *DeliverySummary) GetStatus() DeliverySummaryStatus

GetStatus returns the value of Status.

func (*DeliverySummary) GetUpdatedAt

func (s *DeliverySummary) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*DeliverySummary) MarshalJSON

func (s *DeliverySummary) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeliverySummary) SetAttemptCount

func (s *DeliverySummary) SetAttemptCount(val int)

SetAttemptCount sets the value of AttemptCount.

func (*DeliverySummary) SetCreatedAt

func (s *DeliverySummary) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*DeliverySummary) SetDurationMs

func (s *DeliverySummary) SetDurationMs(val OptNilInt)

SetDurationMs sets the value of DurationMs.

func (*DeliverySummary) SetEmail

SetEmail sets the value of Email.

func (*DeliverySummary) SetEmailID

func (s *DeliverySummary) SetEmailID(val uuid.UUID)

SetEmailID sets the value of EmailID.

func (*DeliverySummary) SetEndpointID

func (s *DeliverySummary) SetEndpointID(val uuid.UUID)

SetEndpointID sets the value of EndpointID.

func (*DeliverySummary) SetEndpointURL

func (s *DeliverySummary) SetEndpointURL(val string)

SetEndpointURL sets the value of EndpointURL.

func (*DeliverySummary) SetID

func (s *DeliverySummary) SetID(val string)

SetID sets the value of ID.

func (*DeliverySummary) SetLastError

func (s *DeliverySummary) SetLastError(val OptNilString)

SetLastError sets the value of LastError.

func (*DeliverySummary) SetOrgID

func (s *DeliverySummary) SetOrgID(val uuid.UUID)

SetOrgID sets the value of OrgID.

func (*DeliverySummary) SetStatus

func (s *DeliverySummary) SetStatus(val DeliverySummaryStatus)

SetStatus sets the value of Status.

func (*DeliverySummary) SetUpdatedAt

func (s *DeliverySummary) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*DeliverySummary) UnmarshalJSON

func (s *DeliverySummary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeliverySummary) Validate

func (s *DeliverySummary) Validate() error

type DeliverySummaryEmail

type DeliverySummaryEmail struct {
	Sender    string       `json:"sender"`
	Recipient string       `json:"recipient"`
	Subject   OptNilString `json:"subject"`
}

func (*DeliverySummaryEmail) Decode

func (s *DeliverySummaryEmail) Decode(d *jx.Decoder) error

Decode decodes DeliverySummaryEmail from json.

func (*DeliverySummaryEmail) Encode

func (s *DeliverySummaryEmail) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DeliverySummaryEmail) GetRecipient

func (s *DeliverySummaryEmail) GetRecipient() string

GetRecipient returns the value of Recipient.

func (*DeliverySummaryEmail) GetSender

func (s *DeliverySummaryEmail) GetSender() string

GetSender returns the value of Sender.

func (*DeliverySummaryEmail) GetSubject

func (s *DeliverySummaryEmail) GetSubject() OptNilString

GetSubject returns the value of Subject.

func (*DeliverySummaryEmail) MarshalJSON

func (s *DeliverySummaryEmail) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeliverySummaryEmail) SetRecipient

func (s *DeliverySummaryEmail) SetRecipient(val string)

SetRecipient sets the value of Recipient.

func (*DeliverySummaryEmail) SetSender

func (s *DeliverySummaryEmail) SetSender(val string)

SetSender sets the value of Sender.

func (*DeliverySummaryEmail) SetSubject

func (s *DeliverySummaryEmail) SetSubject(val OptNilString)

SetSubject sets the value of Subject.

func (*DeliverySummaryEmail) UnmarshalJSON

func (s *DeliverySummaryEmail) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeliverySummaryStatus

type DeliverySummaryStatus string
const (
	DeliverySummaryStatusPending         DeliverySummaryStatus = "pending"
	DeliverySummaryStatusDelivered       DeliverySummaryStatus = "delivered"
	DeliverySummaryStatusHeaderConfirmed DeliverySummaryStatus = "header_confirmed"
	DeliverySummaryStatusFailed          DeliverySummaryStatus = "failed"
)

func (DeliverySummaryStatus) AllValues

AllValues returns all DeliverySummaryStatus values.

func (*DeliverySummaryStatus) Decode

func (s *DeliverySummaryStatus) Decode(d *jx.Decoder) error

Decode decodes DeliverySummaryStatus from json.

func (DeliverySummaryStatus) Encode

func (s DeliverySummaryStatus) Encode(e *jx.Encoder)

Encode encodes DeliverySummaryStatus as json.

func (DeliverySummaryStatus) MarshalJSON

func (s DeliverySummaryStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (DeliverySummaryStatus) MarshalText

func (s DeliverySummaryStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DeliverySummaryStatus) UnmarshalJSON

func (s *DeliverySummaryStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeliverySummaryStatus) UnmarshalText

func (s *DeliverySummaryStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DeliverySummaryStatus) Validate

func (s DeliverySummaryStatus) Validate() error

type Domain

type Domain struct {
	Type             DomainType // switch on this field
	VerifiedDomain   VerifiedDomain
	UnverifiedDomain UnverifiedDomain
}

A domain can be either verified or unverified. Verified domains have `is_active` and `spam_threshold` fields. Unverified domains have a `verification_token` for DNS verification. Ref: #/components/schemas/Domain Domain represents sum type.

func NewUnverifiedDomainDomain

func NewUnverifiedDomainDomain(v UnverifiedDomain) Domain

NewUnverifiedDomainDomain returns new Domain from UnverifiedDomain.

func NewVerifiedDomainDomain

func NewVerifiedDomainDomain(v VerifiedDomain) Domain

NewVerifiedDomainDomain returns new Domain from VerifiedDomain.

func (*Domain) Decode

func (s *Domain) Decode(d *jx.Decoder) error

Decode decodes Domain from json.

func (Domain) Encode

func (s Domain) Encode(e *jx.Encoder)

Encode encodes Domain as json.

func (Domain) GetUnverifiedDomain

func (s Domain) GetUnverifiedDomain() (v UnverifiedDomain, ok bool)

GetUnverifiedDomain returns UnverifiedDomain and true boolean if Domain is UnverifiedDomain.

func (Domain) GetVerifiedDomain

func (s Domain) GetVerifiedDomain() (v VerifiedDomain, ok bool)

GetVerifiedDomain returns VerifiedDomain and true boolean if Domain is VerifiedDomain.

func (Domain) IsUnverifiedDomain

func (s Domain) IsUnverifiedDomain() bool

IsUnverifiedDomain reports whether Domain is UnverifiedDomain.

func (Domain) IsVerifiedDomain

func (s Domain) IsVerifiedDomain() bool

IsVerifiedDomain reports whether Domain is VerifiedDomain.

func (Domain) MarshalJSON

func (s Domain) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Domain) SetUnverifiedDomain

func (s *Domain) SetUnverifiedDomain(v UnverifiedDomain)

SetUnverifiedDomain sets Domain to UnverifiedDomain.

func (*Domain) SetVerifiedDomain

func (s *Domain) SetVerifiedDomain(v VerifiedDomain)

SetVerifiedDomain sets Domain to VerifiedDomain.

func (*Domain) UnmarshalJSON

func (s *Domain) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Domain) Validate

func (s Domain) Validate() error

type DomainType

type DomainType string

DomainType is oneOf type of Domain.

const (
	VerifiedDomainDomain   DomainType = "VerifiedDomain"
	UnverifiedDomainDomain DomainType = "UnverifiedDomain"
)

Possible values for DomainType.

type DomainVerifyResult

type DomainVerifyResult struct {
	Type                DomainVerifyResultType // switch on this field
	DomainVerifyResult0 DomainVerifyResult0
	DomainVerifyResult1 DomainVerifyResult1
}

Ref: #/components/schemas/DomainVerifyResult DomainVerifyResult represents sum type.

func NewDomainVerifyResult0DomainVerifyResult

func NewDomainVerifyResult0DomainVerifyResult(v DomainVerifyResult0) DomainVerifyResult

NewDomainVerifyResult0DomainVerifyResult returns new DomainVerifyResult from DomainVerifyResult0.

func NewDomainVerifyResult1DomainVerifyResult

func NewDomainVerifyResult1DomainVerifyResult(v DomainVerifyResult1) DomainVerifyResult

NewDomainVerifyResult1DomainVerifyResult returns new DomainVerifyResult from DomainVerifyResult1.

func (*DomainVerifyResult) Decode

func (s *DomainVerifyResult) Decode(d *jx.Decoder) error

Decode decodes DomainVerifyResult from json.

func (DomainVerifyResult) Encode

func (s DomainVerifyResult) Encode(e *jx.Encoder)

Encode encodes DomainVerifyResult as json.

func (DomainVerifyResult) GetDomainVerifyResult0

func (s DomainVerifyResult) GetDomainVerifyResult0() (v DomainVerifyResult0, ok bool)

GetDomainVerifyResult0 returns DomainVerifyResult0 and true boolean if DomainVerifyResult is DomainVerifyResult0.

func (DomainVerifyResult) GetDomainVerifyResult1

func (s DomainVerifyResult) GetDomainVerifyResult1() (v DomainVerifyResult1, ok bool)

GetDomainVerifyResult1 returns DomainVerifyResult1 and true boolean if DomainVerifyResult is DomainVerifyResult1.

func (DomainVerifyResult) IsDomainVerifyResult0

func (s DomainVerifyResult) IsDomainVerifyResult0() bool

IsDomainVerifyResult0 reports whether DomainVerifyResult is DomainVerifyResult0.

func (DomainVerifyResult) IsDomainVerifyResult1

func (s DomainVerifyResult) IsDomainVerifyResult1() bool

IsDomainVerifyResult1 reports whether DomainVerifyResult is DomainVerifyResult1.

func (DomainVerifyResult) MarshalJSON

func (s DomainVerifyResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DomainVerifyResult) SetDomainVerifyResult0

func (s *DomainVerifyResult) SetDomainVerifyResult0(v DomainVerifyResult0)

SetDomainVerifyResult0 sets DomainVerifyResult to DomainVerifyResult0.

func (*DomainVerifyResult) SetDomainVerifyResult1

func (s *DomainVerifyResult) SetDomainVerifyResult1(v DomainVerifyResult1)

SetDomainVerifyResult1 sets DomainVerifyResult to DomainVerifyResult1.

func (*DomainVerifyResult) UnmarshalJSON

func (s *DomainVerifyResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DomainVerifyResult0

type DomainVerifyResult0 struct {
	Verified bool `json:"verified"`
}

func (*DomainVerifyResult0) Decode

func (s *DomainVerifyResult0) Decode(d *jx.Decoder) error

Decode decodes DomainVerifyResult0 from json.

func (*DomainVerifyResult0) Encode

func (s *DomainVerifyResult0) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DomainVerifyResult0) GetVerified

func (s *DomainVerifyResult0) GetVerified() bool

GetVerified returns the value of Verified.

func (*DomainVerifyResult0) MarshalJSON

func (s *DomainVerifyResult0) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DomainVerifyResult0) SetVerified

func (s *DomainVerifyResult0) SetVerified(val bool)

SetVerified sets the value of Verified.

func (*DomainVerifyResult0) UnmarshalJSON

func (s *DomainVerifyResult0) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DomainVerifyResult1

type DomainVerifyResult1 struct {
	Verified bool `json:"verified"`
	// Whether MX records point to Primitive.
	MxFound bool `json:"mxFound"`
	// Whether the TXT verification record was found.
	TxtFound bool `json:"txtFound"`
	// Human-readable verification failure reason.
	Error string `json:"error"`
}

func (*DomainVerifyResult1) Decode

func (s *DomainVerifyResult1) Decode(d *jx.Decoder) error

Decode decodes DomainVerifyResult1 from json.

func (*DomainVerifyResult1) Encode

func (s *DomainVerifyResult1) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DomainVerifyResult1) GetError

func (s *DomainVerifyResult1) GetError() string

GetError returns the value of Error.

func (*DomainVerifyResult1) GetMxFound

func (s *DomainVerifyResult1) GetMxFound() bool

GetMxFound returns the value of MxFound.

func (*DomainVerifyResult1) GetTxtFound

func (s *DomainVerifyResult1) GetTxtFound() bool

GetTxtFound returns the value of TxtFound.

func (*DomainVerifyResult1) GetVerified

func (s *DomainVerifyResult1) GetVerified() bool

GetVerified returns the value of Verified.

func (*DomainVerifyResult1) MarshalJSON

func (s *DomainVerifyResult1) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DomainVerifyResult1) SetError

func (s *DomainVerifyResult1) SetError(val string)

SetError sets the value of Error.

func (*DomainVerifyResult1) SetMxFound

func (s *DomainVerifyResult1) SetMxFound(val bool)

SetMxFound sets the value of MxFound.

func (*DomainVerifyResult1) SetTxtFound

func (s *DomainVerifyResult1) SetTxtFound(val bool)

SetTxtFound sets the value of TxtFound.

func (*DomainVerifyResult1) SetVerified

func (s *DomainVerifyResult1) SetVerified(val bool)

SetVerified sets the value of Verified.

func (*DomainVerifyResult1) UnmarshalJSON

func (s *DomainVerifyResult1) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DomainVerifyResultType

type DomainVerifyResultType string

DomainVerifyResultType is oneOf type of DomainVerifyResult.

const (
	DomainVerifyResult0DomainVerifyResult DomainVerifyResultType = "DomainVerifyResult0"
	DomainVerifyResult1DomainVerifyResult DomainVerifyResultType = "DomainVerifyResult1"
)

Possible values for DomainVerifyResultType.

type DownloadAttachmentsBadRequest

type DownloadAttachmentsBadRequest ErrorResponse

func (*DownloadAttachmentsBadRequest) Decode

Decode decodes DownloadAttachmentsBadRequest from json.

func (*DownloadAttachmentsBadRequest) Encode

Encode encodes DownloadAttachmentsBadRequest as json.

func (*DownloadAttachmentsBadRequest) MarshalJSON

func (s *DownloadAttachmentsBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadAttachmentsBadRequest) UnmarshalJSON

func (s *DownloadAttachmentsBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DownloadAttachmentsBadRequest) Validate

func (s *DownloadAttachmentsBadRequest) Validate() error

type DownloadAttachmentsNotFound

type DownloadAttachmentsNotFound ErrorResponse

func (*DownloadAttachmentsNotFound) Decode

Decode decodes DownloadAttachmentsNotFound from json.

func (*DownloadAttachmentsNotFound) Encode

func (s *DownloadAttachmentsNotFound) Encode(e *jx.Encoder)

Encode encodes DownloadAttachmentsNotFound as json.

func (*DownloadAttachmentsNotFound) MarshalJSON

func (s *DownloadAttachmentsNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadAttachmentsNotFound) UnmarshalJSON

func (s *DownloadAttachmentsNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DownloadAttachmentsNotFound) Validate

func (s *DownloadAttachmentsNotFound) Validate() error

type DownloadAttachmentsOK

type DownloadAttachmentsOK struct {
	Data io.Reader
}

func (DownloadAttachmentsOK) Read

func (s DownloadAttachmentsOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DownloadAttachmentsOKHeaders

type DownloadAttachmentsOKHeaders struct {
	ContentDisposition OptString
	XAttachmentCount   OptString
	XContentSHA256     OptString
	Response           DownloadAttachmentsOK
}

DownloadAttachmentsOKHeaders wraps DownloadAttachmentsOK with response headers.

func (*DownloadAttachmentsOKHeaders) GetContentDisposition

func (s *DownloadAttachmentsOKHeaders) GetContentDisposition() OptString

GetContentDisposition returns the value of ContentDisposition.

func (*DownloadAttachmentsOKHeaders) GetResponse

GetResponse returns the value of Response.

func (*DownloadAttachmentsOKHeaders) GetXAttachmentCount

func (s *DownloadAttachmentsOKHeaders) GetXAttachmentCount() OptString

GetXAttachmentCount returns the value of XAttachmentCount.

func (*DownloadAttachmentsOKHeaders) GetXContentSHA256

func (s *DownloadAttachmentsOKHeaders) GetXContentSHA256() OptString

GetXContentSHA256 returns the value of XContentSHA256.

func (*DownloadAttachmentsOKHeaders) SetContentDisposition

func (s *DownloadAttachmentsOKHeaders) SetContentDisposition(val OptString)

SetContentDisposition sets the value of ContentDisposition.

func (*DownloadAttachmentsOKHeaders) SetResponse

SetResponse sets the value of Response.

func (*DownloadAttachmentsOKHeaders) SetXAttachmentCount

func (s *DownloadAttachmentsOKHeaders) SetXAttachmentCount(val OptString)

SetXAttachmentCount sets the value of XAttachmentCount.

func (*DownloadAttachmentsOKHeaders) SetXContentSHA256

func (s *DownloadAttachmentsOKHeaders) SetXContentSHA256(val OptString)

SetXContentSHA256 sets the value of XContentSHA256.

type DownloadAttachmentsParams

type DownloadAttachmentsParams struct {
	// Signed download token from webhook payload.
	Token OptString `json:",omitempty,omitzero"`
	// Resource UUID.
	ID uuid.UUID
}

DownloadAttachmentsParams is parameters of downloadAttachments operation.

type DownloadAttachmentsRes

type DownloadAttachmentsRes interface {
	// contains filtered or unexported methods
}

type DownloadAttachmentsUnauthorized

type DownloadAttachmentsUnauthorized ErrorResponse

func (*DownloadAttachmentsUnauthorized) Decode

Decode decodes DownloadAttachmentsUnauthorized from json.

func (*DownloadAttachmentsUnauthorized) Encode

Encode encodes DownloadAttachmentsUnauthorized as json.

func (*DownloadAttachmentsUnauthorized) MarshalJSON

func (s *DownloadAttachmentsUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadAttachmentsUnauthorized) UnmarshalJSON

func (s *DownloadAttachmentsUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DownloadAttachmentsUnauthorized) Validate

func (s *DownloadAttachmentsUnauthorized) Validate() error

type DownloadRawEmailBadRequest

type DownloadRawEmailBadRequest ErrorResponse

func (*DownloadRawEmailBadRequest) Decode

Decode decodes DownloadRawEmailBadRequest from json.

func (*DownloadRawEmailBadRequest) Encode

func (s *DownloadRawEmailBadRequest) Encode(e *jx.Encoder)

Encode encodes DownloadRawEmailBadRequest as json.

func (*DownloadRawEmailBadRequest) MarshalJSON

func (s *DownloadRawEmailBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadRawEmailBadRequest) UnmarshalJSON

func (s *DownloadRawEmailBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DownloadRawEmailBadRequest) Validate

func (s *DownloadRawEmailBadRequest) Validate() error

type DownloadRawEmailNotFound

type DownloadRawEmailNotFound ErrorResponse

func (*DownloadRawEmailNotFound) Decode

func (s *DownloadRawEmailNotFound) Decode(d *jx.Decoder) error

Decode decodes DownloadRawEmailNotFound from json.

func (*DownloadRawEmailNotFound) Encode

func (s *DownloadRawEmailNotFound) Encode(e *jx.Encoder)

Encode encodes DownloadRawEmailNotFound as json.

func (*DownloadRawEmailNotFound) MarshalJSON

func (s *DownloadRawEmailNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadRawEmailNotFound) UnmarshalJSON

func (s *DownloadRawEmailNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DownloadRawEmailNotFound) Validate

func (s *DownloadRawEmailNotFound) Validate() error

type DownloadRawEmailOK

type DownloadRawEmailOK struct {
	Data io.Reader
}

func (DownloadRawEmailOK) Read

func (s DownloadRawEmailOK) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type DownloadRawEmailOKHeaders

type DownloadRawEmailOKHeaders struct {
	ContentDisposition OptString
	XContentSHA256     OptString
	Response           DownloadRawEmailOK
}

DownloadRawEmailOKHeaders wraps DownloadRawEmailOK with response headers.

func (*DownloadRawEmailOKHeaders) GetContentDisposition

func (s *DownloadRawEmailOKHeaders) GetContentDisposition() OptString

GetContentDisposition returns the value of ContentDisposition.

func (*DownloadRawEmailOKHeaders) GetResponse

GetResponse returns the value of Response.

func (*DownloadRawEmailOKHeaders) GetXContentSHA256

func (s *DownloadRawEmailOKHeaders) GetXContentSHA256() OptString

GetXContentSHA256 returns the value of XContentSHA256.

func (*DownloadRawEmailOKHeaders) SetContentDisposition

func (s *DownloadRawEmailOKHeaders) SetContentDisposition(val OptString)

SetContentDisposition sets the value of ContentDisposition.

func (*DownloadRawEmailOKHeaders) SetResponse

func (s *DownloadRawEmailOKHeaders) SetResponse(val DownloadRawEmailOK)

SetResponse sets the value of Response.

func (*DownloadRawEmailOKHeaders) SetXContentSHA256

func (s *DownloadRawEmailOKHeaders) SetXContentSHA256(val OptString)

SetXContentSHA256 sets the value of XContentSHA256.

type DownloadRawEmailParams

type DownloadRawEmailParams struct {
	// Signed download token from webhook payload.
	Token OptString `json:",omitempty,omitzero"`
	// Resource UUID.
	ID uuid.UUID
}

DownloadRawEmailParams is parameters of downloadRawEmail operation.

type DownloadRawEmailRes

type DownloadRawEmailRes interface {
	// contains filtered or unexported methods
}

type DownloadRawEmailUnauthorized

type DownloadRawEmailUnauthorized ErrorResponse

func (*DownloadRawEmailUnauthorized) Decode

Decode decodes DownloadRawEmailUnauthorized from json.

func (*DownloadRawEmailUnauthorized) Encode

func (s *DownloadRawEmailUnauthorized) Encode(e *jx.Encoder)

Encode encodes DownloadRawEmailUnauthorized as json.

func (*DownloadRawEmailUnauthorized) MarshalJSON

func (s *DownloadRawEmailUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DownloadRawEmailUnauthorized) UnmarshalJSON

func (s *DownloadRawEmailUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DownloadRawEmailUnauthorized) Validate

func (s *DownloadRawEmailUnauthorized) Validate() error

type DownloadToken

type DownloadToken struct {
	APIKey string
	Roles  []string
}

func (*DownloadToken) GetAPIKey

func (s *DownloadToken) GetAPIKey() string

GetAPIKey returns the value of APIKey.

func (*DownloadToken) GetRoles

func (s *DownloadToken) GetRoles() []string

GetRoles returns the value of Roles.

func (*DownloadToken) SetAPIKey

func (s *DownloadToken) SetAPIKey(val string)

SetAPIKey sets the value of APIKey.

func (*DownloadToken) SetRoles

func (s *DownloadToken) SetRoles(val []string)

SetRoles sets the value of Roles.

type EmailDetail

type EmailDetail struct {
	ID                           uuid.UUID                      `json:"id"`
	MessageID                    OptNilString                   `json:"message_id"`
	DomainID                     OptNilUUID                     `json:"domain_id"`
	OrgID                        OptNilUUID                     `json:"org_id"`
	Sender                       string                         `json:"sender"`
	Recipient                    string                         `json:"recipient"`
	Subject                      OptNilString                   `json:"subject"`
	Status                       EmailDetailStatus              `json:"status"`
	Domain                       string                         `json:"domain"`
	SpamScore                    OptNilFloat64                  `json:"spam_score"`
	RawSizeBytes                 OptNilInt                      `json:"raw_size_bytes"`
	RawSHA256                    OptNilString                   `json:"raw_sha256"`
	CreatedAt                    time.Time                      `json:"created_at"`
	ReceivedAt                   time.Time                      `json:"received_at"`
	RejectionReason              OptNilString                   `json:"rejection_reason"`
	WebhookStatus                OptNilEmailDetailWebhookStatus `json:"webhook_status"`
	WebhookAttemptCount          int                            `json:"webhook_attempt_count"`
	WebhookLastAttemptAt         OptNilDateTime                 `json:"webhook_last_attempt_at"`
	WebhookLastStatusCode        OptNilInt                      `json:"webhook_last_status_code"`
	WebhookLastError             OptNilString                   `json:"webhook_last_error"`
	WebhookFiredAt               OptNilDateTime                 `json:"webhook_fired_at"`
	SMTPHelo                     OptNilString                   `json:"smtp_helo"`
	SMTPMailFrom                 OptNilString                   `json:"smtp_mail_from"`
	SMTPRcptTo                   OptNilStringArray              `json:"smtp_rcpt_to"`
	FromHeader                   OptNilString                   `json:"from_header"`
	ContentDiscardedAt           OptNilDateTime                 `json:"content_discarded_at"`
	ContentDiscardedByDeliveryID OptNilString                   `json:"content_discarded_by_delivery_id"`
	// Parsed from address (from_header or sender fallback).
	FromEmail string `json:"from_email"`
	// Parsed to address (same as recipient).
	ToEmail string `json:"to_email"`
}

Ref: #/components/schemas/EmailDetail

func (*EmailDetail) Decode

func (s *EmailDetail) Decode(d *jx.Decoder) error

Decode decodes EmailDetail from json.

func (*EmailDetail) Encode

func (s *EmailDetail) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EmailDetail) GetContentDiscardedAt

func (s *EmailDetail) GetContentDiscardedAt() OptNilDateTime

GetContentDiscardedAt returns the value of ContentDiscardedAt.

func (*EmailDetail) GetContentDiscardedByDeliveryID

func (s *EmailDetail) GetContentDiscardedByDeliveryID() OptNilString

GetContentDiscardedByDeliveryID returns the value of ContentDiscardedByDeliveryID.

func (*EmailDetail) GetCreatedAt

func (s *EmailDetail) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*EmailDetail) GetDomain

func (s *EmailDetail) GetDomain() string

GetDomain returns the value of Domain.

func (*EmailDetail) GetDomainID

func (s *EmailDetail) GetDomainID() OptNilUUID

GetDomainID returns the value of DomainID.

func (*EmailDetail) GetFromEmail

func (s *EmailDetail) GetFromEmail() string

GetFromEmail returns the value of FromEmail.

func (*EmailDetail) GetFromHeader

func (s *EmailDetail) GetFromHeader() OptNilString

GetFromHeader returns the value of FromHeader.

func (*EmailDetail) GetID

func (s *EmailDetail) GetID() uuid.UUID

GetID returns the value of ID.

func (*EmailDetail) GetMessageID

func (s *EmailDetail) GetMessageID() OptNilString

GetMessageID returns the value of MessageID.

func (*EmailDetail) GetOrgID

func (s *EmailDetail) GetOrgID() OptNilUUID

GetOrgID returns the value of OrgID.

func (*EmailDetail) GetRawSHA256

func (s *EmailDetail) GetRawSHA256() OptNilString

GetRawSHA256 returns the value of RawSHA256.

func (*EmailDetail) GetRawSizeBytes

func (s *EmailDetail) GetRawSizeBytes() OptNilInt

GetRawSizeBytes returns the value of RawSizeBytes.

func (*EmailDetail) GetReceivedAt

func (s *EmailDetail) GetReceivedAt() time.Time

GetReceivedAt returns the value of ReceivedAt.

func (*EmailDetail) GetRecipient

func (s *EmailDetail) GetRecipient() string

GetRecipient returns the value of Recipient.

func (*EmailDetail) GetRejectionReason

func (s *EmailDetail) GetRejectionReason() OptNilString

GetRejectionReason returns the value of RejectionReason.

func (*EmailDetail) GetSMTPHelo

func (s *EmailDetail) GetSMTPHelo() OptNilString

GetSMTPHelo returns the value of SMTPHelo.

func (*EmailDetail) GetSMTPMailFrom

func (s *EmailDetail) GetSMTPMailFrom() OptNilString

GetSMTPMailFrom returns the value of SMTPMailFrom.

func (*EmailDetail) GetSMTPRcptTo

func (s *EmailDetail) GetSMTPRcptTo() OptNilStringArray

GetSMTPRcptTo returns the value of SMTPRcptTo.

func (*EmailDetail) GetSender

func (s *EmailDetail) GetSender() string

GetSender returns the value of Sender.

func (*EmailDetail) GetSpamScore

func (s *EmailDetail) GetSpamScore() OptNilFloat64

GetSpamScore returns the value of SpamScore.

func (*EmailDetail) GetStatus

func (s *EmailDetail) GetStatus() EmailDetailStatus

GetStatus returns the value of Status.

func (*EmailDetail) GetSubject

func (s *EmailDetail) GetSubject() OptNilString

GetSubject returns the value of Subject.

func (*EmailDetail) GetToEmail

func (s *EmailDetail) GetToEmail() string

GetToEmail returns the value of ToEmail.

func (*EmailDetail) GetWebhookAttemptCount

func (s *EmailDetail) GetWebhookAttemptCount() int

GetWebhookAttemptCount returns the value of WebhookAttemptCount.

func (*EmailDetail) GetWebhookFiredAt

func (s *EmailDetail) GetWebhookFiredAt() OptNilDateTime

GetWebhookFiredAt returns the value of WebhookFiredAt.

func (*EmailDetail) GetWebhookLastAttemptAt

func (s *EmailDetail) GetWebhookLastAttemptAt() OptNilDateTime

GetWebhookLastAttemptAt returns the value of WebhookLastAttemptAt.

func (*EmailDetail) GetWebhookLastError

func (s *EmailDetail) GetWebhookLastError() OptNilString

GetWebhookLastError returns the value of WebhookLastError.

func (*EmailDetail) GetWebhookLastStatusCode

func (s *EmailDetail) GetWebhookLastStatusCode() OptNilInt

GetWebhookLastStatusCode returns the value of WebhookLastStatusCode.

func (*EmailDetail) GetWebhookStatus

func (s *EmailDetail) GetWebhookStatus() OptNilEmailDetailWebhookStatus

GetWebhookStatus returns the value of WebhookStatus.

func (*EmailDetail) MarshalJSON

func (s *EmailDetail) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EmailDetail) SetContentDiscardedAt

func (s *EmailDetail) SetContentDiscardedAt(val OptNilDateTime)

SetContentDiscardedAt sets the value of ContentDiscardedAt.

func (*EmailDetail) SetContentDiscardedByDeliveryID

func (s *EmailDetail) SetContentDiscardedByDeliveryID(val OptNilString)

SetContentDiscardedByDeliveryID sets the value of ContentDiscardedByDeliveryID.

func (*EmailDetail) SetCreatedAt

func (s *EmailDetail) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*EmailDetail) SetDomain

func (s *EmailDetail) SetDomain(val string)

SetDomain sets the value of Domain.

func (*EmailDetail) SetDomainID

func (s *EmailDetail) SetDomainID(val OptNilUUID)

SetDomainID sets the value of DomainID.

func (*EmailDetail) SetFromEmail

func (s *EmailDetail) SetFromEmail(val string)

SetFromEmail sets the value of FromEmail.

func (*EmailDetail) SetFromHeader

func (s *EmailDetail) SetFromHeader(val OptNilString)

SetFromHeader sets the value of FromHeader.

func (*EmailDetail) SetID

func (s *EmailDetail) SetID(val uuid.UUID)

SetID sets the value of ID.

func (*EmailDetail) SetMessageID

func (s *EmailDetail) SetMessageID(val OptNilString)

SetMessageID sets the value of MessageID.

func (*EmailDetail) SetOrgID

func (s *EmailDetail) SetOrgID(val OptNilUUID)

SetOrgID sets the value of OrgID.

func (*EmailDetail) SetRawSHA256

func (s *EmailDetail) SetRawSHA256(val OptNilString)

SetRawSHA256 sets the value of RawSHA256.

func (*EmailDetail) SetRawSizeBytes

func (s *EmailDetail) SetRawSizeBytes(val OptNilInt)

SetRawSizeBytes sets the value of RawSizeBytes.

func (*EmailDetail) SetReceivedAt

func (s *EmailDetail) SetReceivedAt(val time.Time)

SetReceivedAt sets the value of ReceivedAt.

func (*EmailDetail) SetRecipient

func (s *EmailDetail) SetRecipient(val string)

SetRecipient sets the value of Recipient.

func (*EmailDetail) SetRejectionReason

func (s *EmailDetail) SetRejectionReason(val OptNilString)

SetRejectionReason sets the value of RejectionReason.

func (*EmailDetail) SetSMTPHelo

func (s *EmailDetail) SetSMTPHelo(val OptNilString)

SetSMTPHelo sets the value of SMTPHelo.

func (*EmailDetail) SetSMTPMailFrom

func (s *EmailDetail) SetSMTPMailFrom(val OptNilString)

SetSMTPMailFrom sets the value of SMTPMailFrom.

func (*EmailDetail) SetSMTPRcptTo

func (s *EmailDetail) SetSMTPRcptTo(val OptNilStringArray)

SetSMTPRcptTo sets the value of SMTPRcptTo.

func (*EmailDetail) SetSender

func (s *EmailDetail) SetSender(val string)

SetSender sets the value of Sender.

func (*EmailDetail) SetSpamScore

func (s *EmailDetail) SetSpamScore(val OptNilFloat64)

SetSpamScore sets the value of SpamScore.

func (*EmailDetail) SetStatus

func (s *EmailDetail) SetStatus(val EmailDetailStatus)

SetStatus sets the value of Status.

func (*EmailDetail) SetSubject

func (s *EmailDetail) SetSubject(val OptNilString)

SetSubject sets the value of Subject.

func (*EmailDetail) SetToEmail

func (s *EmailDetail) SetToEmail(val string)

SetToEmail sets the value of ToEmail.

func (*EmailDetail) SetWebhookAttemptCount

func (s *EmailDetail) SetWebhookAttemptCount(val int)

SetWebhookAttemptCount sets the value of WebhookAttemptCount.

func (*EmailDetail) SetWebhookFiredAt

func (s *EmailDetail) SetWebhookFiredAt(val OptNilDateTime)

SetWebhookFiredAt sets the value of WebhookFiredAt.

func (*EmailDetail) SetWebhookLastAttemptAt

func (s *EmailDetail) SetWebhookLastAttemptAt(val OptNilDateTime)

SetWebhookLastAttemptAt sets the value of WebhookLastAttemptAt.

func (*EmailDetail) SetWebhookLastError

func (s *EmailDetail) SetWebhookLastError(val OptNilString)

SetWebhookLastError sets the value of WebhookLastError.

func (*EmailDetail) SetWebhookLastStatusCode

func (s *EmailDetail) SetWebhookLastStatusCode(val OptNilInt)

SetWebhookLastStatusCode sets the value of WebhookLastStatusCode.

func (*EmailDetail) SetWebhookStatus

func (s *EmailDetail) SetWebhookStatus(val OptNilEmailDetailWebhookStatus)

SetWebhookStatus sets the value of WebhookStatus.

func (*EmailDetail) UnmarshalJSON

func (s *EmailDetail) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EmailDetail) Validate

func (s *EmailDetail) Validate() error

type EmailDetailStatus

type EmailDetailStatus string
const (
	EmailDetailStatusPending   EmailDetailStatus = "pending"
	EmailDetailStatusAccepted  EmailDetailStatus = "accepted"
	EmailDetailStatusCompleted EmailDetailStatus = "completed"
	EmailDetailStatusRejected  EmailDetailStatus = "rejected"
)

func (EmailDetailStatus) AllValues

func (EmailDetailStatus) AllValues() []EmailDetailStatus

AllValues returns all EmailDetailStatus values.

func (*EmailDetailStatus) Decode

func (s *EmailDetailStatus) Decode(d *jx.Decoder) error

Decode decodes EmailDetailStatus from json.

func (EmailDetailStatus) Encode

func (s EmailDetailStatus) Encode(e *jx.Encoder)

Encode encodes EmailDetailStatus as json.

func (EmailDetailStatus) MarshalJSON

func (s EmailDetailStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EmailDetailStatus) MarshalText

func (s EmailDetailStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EmailDetailStatus) UnmarshalJSON

func (s *EmailDetailStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EmailDetailStatus) UnmarshalText

func (s *EmailDetailStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EmailDetailStatus) Validate

func (s EmailDetailStatus) Validate() error

type EmailDetailWebhookStatus

type EmailDetailWebhookStatus string
const (
	EmailDetailWebhookStatusPending   EmailDetailWebhookStatus = "pending"
	EmailDetailWebhookStatusInFlight  EmailDetailWebhookStatus = "in_flight"
	EmailDetailWebhookStatusFired     EmailDetailWebhookStatus = "fired"
	EmailDetailWebhookStatusFailed    EmailDetailWebhookStatus = "failed"
	EmailDetailWebhookStatusExhausted EmailDetailWebhookStatus = "exhausted"
)

func (EmailDetailWebhookStatus) AllValues

AllValues returns all EmailDetailWebhookStatus values.

func (*EmailDetailWebhookStatus) Decode

func (s *EmailDetailWebhookStatus) Decode(d *jx.Decoder) error

Decode decodes EmailDetailWebhookStatus from json.

func (EmailDetailWebhookStatus) Encode

func (s EmailDetailWebhookStatus) Encode(e *jx.Encoder)

Encode encodes EmailDetailWebhookStatus as json.

func (EmailDetailWebhookStatus) MarshalJSON

func (s EmailDetailWebhookStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EmailDetailWebhookStatus) MarshalText

func (s EmailDetailWebhookStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EmailDetailWebhookStatus) UnmarshalJSON

func (s *EmailDetailWebhookStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EmailDetailWebhookStatus) UnmarshalText

func (s *EmailDetailWebhookStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EmailDetailWebhookStatus) Validate

func (s EmailDetailWebhookStatus) Validate() error

type EmailSummary

type EmailSummary struct {
	ID                  uuid.UUID                       `json:"id"`
	MessageID           OptNilString                    `json:"message_id"`
	DomainID            OptNilUUID                      `json:"domain_id"`
	OrgID               OptNilUUID                      `json:"org_id"`
	Status              EmailSummaryStatus              `json:"status"`
	Sender              string                          `json:"sender"`
	Recipient           string                          `json:"recipient"`
	Subject             OptNilString                    `json:"subject"`
	Domain              string                          `json:"domain"`
	SpamScore           OptNilFloat64                   `json:"spam_score"`
	CreatedAt           time.Time                       `json:"created_at"`
	ReceivedAt          time.Time                       `json:"received_at"`
	RawSizeBytes        OptNilInt                       `json:"raw_size_bytes"`
	WebhookStatus       OptNilEmailSummaryWebhookStatus `json:"webhook_status"`
	WebhookAttemptCount int                             `json:"webhook_attempt_count"`
}

Ref: #/components/schemas/EmailSummary

func (*EmailSummary) Decode

func (s *EmailSummary) Decode(d *jx.Decoder) error

Decode decodes EmailSummary from json.

func (*EmailSummary) Encode

func (s *EmailSummary) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EmailSummary) GetCreatedAt

func (s *EmailSummary) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*EmailSummary) GetDomain

func (s *EmailSummary) GetDomain() string

GetDomain returns the value of Domain.

func (*EmailSummary) GetDomainID

func (s *EmailSummary) GetDomainID() OptNilUUID

GetDomainID returns the value of DomainID.

func (*EmailSummary) GetID

func (s *EmailSummary) GetID() uuid.UUID

GetID returns the value of ID.

func (*EmailSummary) GetMessageID

func (s *EmailSummary) GetMessageID() OptNilString

GetMessageID returns the value of MessageID.

func (*EmailSummary) GetOrgID

func (s *EmailSummary) GetOrgID() OptNilUUID

GetOrgID returns the value of OrgID.

func (*EmailSummary) GetRawSizeBytes

func (s *EmailSummary) GetRawSizeBytes() OptNilInt

GetRawSizeBytes returns the value of RawSizeBytes.

func (*EmailSummary) GetReceivedAt

func (s *EmailSummary) GetReceivedAt() time.Time

GetReceivedAt returns the value of ReceivedAt.

func (*EmailSummary) GetRecipient

func (s *EmailSummary) GetRecipient() string

GetRecipient returns the value of Recipient.

func (*EmailSummary) GetSender

func (s *EmailSummary) GetSender() string

GetSender returns the value of Sender.

func (*EmailSummary) GetSpamScore

func (s *EmailSummary) GetSpamScore() OptNilFloat64

GetSpamScore returns the value of SpamScore.

func (*EmailSummary) GetStatus

func (s *EmailSummary) GetStatus() EmailSummaryStatus

GetStatus returns the value of Status.

func (*EmailSummary) GetSubject

func (s *EmailSummary) GetSubject() OptNilString

GetSubject returns the value of Subject.

func (*EmailSummary) GetWebhookAttemptCount

func (s *EmailSummary) GetWebhookAttemptCount() int

GetWebhookAttemptCount returns the value of WebhookAttemptCount.

func (*EmailSummary) GetWebhookStatus

func (s *EmailSummary) GetWebhookStatus() OptNilEmailSummaryWebhookStatus

GetWebhookStatus returns the value of WebhookStatus.

func (*EmailSummary) MarshalJSON

func (s *EmailSummary) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EmailSummary) SetCreatedAt

func (s *EmailSummary) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*EmailSummary) SetDomain

func (s *EmailSummary) SetDomain(val string)

SetDomain sets the value of Domain.

func (*EmailSummary) SetDomainID

func (s *EmailSummary) SetDomainID(val OptNilUUID)

SetDomainID sets the value of DomainID.

func (*EmailSummary) SetID

func (s *EmailSummary) SetID(val uuid.UUID)

SetID sets the value of ID.

func (*EmailSummary) SetMessageID

func (s *EmailSummary) SetMessageID(val OptNilString)

SetMessageID sets the value of MessageID.

func (*EmailSummary) SetOrgID

func (s *EmailSummary) SetOrgID(val OptNilUUID)

SetOrgID sets the value of OrgID.

func (*EmailSummary) SetRawSizeBytes

func (s *EmailSummary) SetRawSizeBytes(val OptNilInt)

SetRawSizeBytes sets the value of RawSizeBytes.

func (*EmailSummary) SetReceivedAt

func (s *EmailSummary) SetReceivedAt(val time.Time)

SetReceivedAt sets the value of ReceivedAt.

func (*EmailSummary) SetRecipient

func (s *EmailSummary) SetRecipient(val string)

SetRecipient sets the value of Recipient.

func (*EmailSummary) SetSender

func (s *EmailSummary) SetSender(val string)

SetSender sets the value of Sender.

func (*EmailSummary) SetSpamScore

func (s *EmailSummary) SetSpamScore(val OptNilFloat64)

SetSpamScore sets the value of SpamScore.

func (*EmailSummary) SetStatus

func (s *EmailSummary) SetStatus(val EmailSummaryStatus)

SetStatus sets the value of Status.

func (*EmailSummary) SetSubject

func (s *EmailSummary) SetSubject(val OptNilString)

SetSubject sets the value of Subject.

func (*EmailSummary) SetWebhookAttemptCount

func (s *EmailSummary) SetWebhookAttemptCount(val int)

SetWebhookAttemptCount sets the value of WebhookAttemptCount.

func (*EmailSummary) SetWebhookStatus

func (s *EmailSummary) SetWebhookStatus(val OptNilEmailSummaryWebhookStatus)

SetWebhookStatus sets the value of WebhookStatus.

func (*EmailSummary) UnmarshalJSON

func (s *EmailSummary) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EmailSummary) Validate

func (s *EmailSummary) Validate() error

type EmailSummaryStatus

type EmailSummaryStatus string
const (
	EmailSummaryStatusPending   EmailSummaryStatus = "pending"
	EmailSummaryStatusAccepted  EmailSummaryStatus = "accepted"
	EmailSummaryStatusCompleted EmailSummaryStatus = "completed"
	EmailSummaryStatusRejected  EmailSummaryStatus = "rejected"
)

func (EmailSummaryStatus) AllValues

func (EmailSummaryStatus) AllValues() []EmailSummaryStatus

AllValues returns all EmailSummaryStatus values.

func (*EmailSummaryStatus) Decode

func (s *EmailSummaryStatus) Decode(d *jx.Decoder) error

Decode decodes EmailSummaryStatus from json.

func (EmailSummaryStatus) Encode

func (s EmailSummaryStatus) Encode(e *jx.Encoder)

Encode encodes EmailSummaryStatus as json.

func (EmailSummaryStatus) MarshalJSON

func (s EmailSummaryStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EmailSummaryStatus) MarshalText

func (s EmailSummaryStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EmailSummaryStatus) UnmarshalJSON

func (s *EmailSummaryStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EmailSummaryStatus) UnmarshalText

func (s *EmailSummaryStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EmailSummaryStatus) Validate

func (s EmailSummaryStatus) Validate() error

type EmailSummaryWebhookStatus

type EmailSummaryWebhookStatus string
const (
	EmailSummaryWebhookStatusPending   EmailSummaryWebhookStatus = "pending"
	EmailSummaryWebhookStatusInFlight  EmailSummaryWebhookStatus = "in_flight"
	EmailSummaryWebhookStatusFired     EmailSummaryWebhookStatus = "fired"
	EmailSummaryWebhookStatusFailed    EmailSummaryWebhookStatus = "failed"
	EmailSummaryWebhookStatusExhausted EmailSummaryWebhookStatus = "exhausted"
)

func (EmailSummaryWebhookStatus) AllValues

AllValues returns all EmailSummaryWebhookStatus values.

func (*EmailSummaryWebhookStatus) Decode

func (s *EmailSummaryWebhookStatus) Decode(d *jx.Decoder) error

Decode decodes EmailSummaryWebhookStatus from json.

func (EmailSummaryWebhookStatus) Encode

func (s EmailSummaryWebhookStatus) Encode(e *jx.Encoder)

Encode encodes EmailSummaryWebhookStatus as json.

func (EmailSummaryWebhookStatus) MarshalJSON

func (s EmailSummaryWebhookStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EmailSummaryWebhookStatus) MarshalText

func (s EmailSummaryWebhookStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EmailSummaryWebhookStatus) UnmarshalJSON

func (s *EmailSummaryWebhookStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EmailSummaryWebhookStatus) UnmarshalText

func (s *EmailSummaryWebhookStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EmailSummaryWebhookStatus) Validate

func (s EmailSummaryWebhookStatus) Validate() error

type Endpoint

type Endpoint struct {
	ID      uuid.UUID    `json:"id"`
	OrgID   uuid.UUID    `json:"org_id"`
	URL     OptNilString `json:"url"`
	Enabled bool         `json:"enabled"`
	// Restrict this endpoint to emails from a specific domain.
	DomainID OptNilUUID `json:"domain_id"`
	// Endpoint-specific filtering rules.
	Rules     EndpointRules `json:"rules"`
	CreatedAt time.Time     `json:"created_at"`
	UpdatedAt time.Time     `json:"updated_at"`
	// Total webhook deliveries attempted.
	DeliveryCount int `json:"delivery_count"`
	// Successful deliveries.
	SuccessCount int `json:"success_count"`
	// Failed deliveries.
	FailureCount int `json:"failure_count"`
	// Current streak of consecutive failures.
	ConsecutiveFails int            `json:"consecutive_fails"`
	LastDeliveryAt   OptNilDateTime `json:"last_delivery_at"`
	LastSuccessAt    OptNilDateTime `json:"last_success_at"`
	LastFailureAt    OptNilDateTime `json:"last_failure_at"`
	DeactivatedAt    OptNilDateTime `json:"deactivated_at"`
}

Ref: #/components/schemas/Endpoint

func (*Endpoint) Decode

func (s *Endpoint) Decode(d *jx.Decoder) error

Decode decodes Endpoint from json.

func (*Endpoint) Encode

func (s *Endpoint) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Endpoint) GetConsecutiveFails

func (s *Endpoint) GetConsecutiveFails() int

GetConsecutiveFails returns the value of ConsecutiveFails.

func (*Endpoint) GetCreatedAt

func (s *Endpoint) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Endpoint) GetDeactivatedAt

func (s *Endpoint) GetDeactivatedAt() OptNilDateTime

GetDeactivatedAt returns the value of DeactivatedAt.

func (*Endpoint) GetDeliveryCount

func (s *Endpoint) GetDeliveryCount() int

GetDeliveryCount returns the value of DeliveryCount.

func (*Endpoint) GetDomainID

func (s *Endpoint) GetDomainID() OptNilUUID

GetDomainID returns the value of DomainID.

func (*Endpoint) GetEnabled

func (s *Endpoint) GetEnabled() bool

GetEnabled returns the value of Enabled.

func (*Endpoint) GetFailureCount

func (s *Endpoint) GetFailureCount() int

GetFailureCount returns the value of FailureCount.

func (*Endpoint) GetID

func (s *Endpoint) GetID() uuid.UUID

GetID returns the value of ID.

func (*Endpoint) GetLastDeliveryAt

func (s *Endpoint) GetLastDeliveryAt() OptNilDateTime

GetLastDeliveryAt returns the value of LastDeliveryAt.

func (*Endpoint) GetLastFailureAt

func (s *Endpoint) GetLastFailureAt() OptNilDateTime

GetLastFailureAt returns the value of LastFailureAt.

func (*Endpoint) GetLastSuccessAt

func (s *Endpoint) GetLastSuccessAt() OptNilDateTime

GetLastSuccessAt returns the value of LastSuccessAt.

func (*Endpoint) GetOrgID

func (s *Endpoint) GetOrgID() uuid.UUID

GetOrgID returns the value of OrgID.

func (*Endpoint) GetRules

func (s *Endpoint) GetRules() EndpointRules

GetRules returns the value of Rules.

func (*Endpoint) GetSuccessCount

func (s *Endpoint) GetSuccessCount() int

GetSuccessCount returns the value of SuccessCount.

func (*Endpoint) GetURL

func (s *Endpoint) GetURL() OptNilString

GetURL returns the value of URL.

func (*Endpoint) GetUpdatedAt

func (s *Endpoint) GetUpdatedAt() time.Time

GetUpdatedAt returns the value of UpdatedAt.

func (*Endpoint) MarshalJSON

func (s *Endpoint) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Endpoint) SetConsecutiveFails

func (s *Endpoint) SetConsecutiveFails(val int)

SetConsecutiveFails sets the value of ConsecutiveFails.

func (*Endpoint) SetCreatedAt

func (s *Endpoint) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Endpoint) SetDeactivatedAt

func (s *Endpoint) SetDeactivatedAt(val OptNilDateTime)

SetDeactivatedAt sets the value of DeactivatedAt.

func (*Endpoint) SetDeliveryCount

func (s *Endpoint) SetDeliveryCount(val int)

SetDeliveryCount sets the value of DeliveryCount.

func (*Endpoint) SetDomainID

func (s *Endpoint) SetDomainID(val OptNilUUID)

SetDomainID sets the value of DomainID.

func (*Endpoint) SetEnabled

func (s *Endpoint) SetEnabled(val bool)

SetEnabled sets the value of Enabled.

func (*Endpoint) SetFailureCount

func (s *Endpoint) SetFailureCount(val int)

SetFailureCount sets the value of FailureCount.

func (*Endpoint) SetID

func (s *Endpoint) SetID(val uuid.UUID)

SetID sets the value of ID.

func (*Endpoint) SetLastDeliveryAt

func (s *Endpoint) SetLastDeliveryAt(val OptNilDateTime)

SetLastDeliveryAt sets the value of LastDeliveryAt.

func (*Endpoint) SetLastFailureAt

func (s *Endpoint) SetLastFailureAt(val OptNilDateTime)

SetLastFailureAt sets the value of LastFailureAt.

func (*Endpoint) SetLastSuccessAt

func (s *Endpoint) SetLastSuccessAt(val OptNilDateTime)

SetLastSuccessAt sets the value of LastSuccessAt.

func (*Endpoint) SetOrgID

func (s *Endpoint) SetOrgID(val uuid.UUID)

SetOrgID sets the value of OrgID.

func (*Endpoint) SetRules

func (s *Endpoint) SetRules(val EndpointRules)

SetRules sets the value of Rules.

func (*Endpoint) SetSuccessCount

func (s *Endpoint) SetSuccessCount(val int)

SetSuccessCount sets the value of SuccessCount.

func (*Endpoint) SetURL

func (s *Endpoint) SetURL(val OptNilString)

SetURL sets the value of URL.

func (*Endpoint) SetUpdatedAt

func (s *Endpoint) SetUpdatedAt(val time.Time)

SetUpdatedAt sets the value of UpdatedAt.

func (*Endpoint) UnmarshalJSON

func (s *Endpoint) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EndpointRules

type EndpointRules struct{}

Endpoint-specific filtering rules.

func (*EndpointRules) Decode

func (s *EndpointRules) Decode(d *jx.Decoder) error

Decode decodes EndpointRules from json.

func (*EndpointRules) Encode

func (s *EndpointRules) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EndpointRules) MarshalJSON

func (s *EndpointRules) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EndpointRules) UnmarshalJSON

func (s *EndpointRules) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type ErrorResponse

type ErrorResponse struct {
	Success bool               `json:"success"`
	Error   ErrorResponseError `json:"error"`
}

Ref: #/components/schemas/ErrorResponse

func (*ErrorResponse) Decode

func (s *ErrorResponse) Decode(d *jx.Decoder) error

Decode decodes ErrorResponse from json.

func (*ErrorResponse) Encode

func (s *ErrorResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorResponse) GetError

func (s *ErrorResponse) GetError() ErrorResponseError

GetError returns the value of Error.

func (*ErrorResponse) GetSuccess

func (s *ErrorResponse) GetSuccess() bool

GetSuccess returns the value of Success.

func (*ErrorResponse) MarshalJSON

func (s *ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorResponse) SetError

func (s *ErrorResponse) SetError(val ErrorResponseError)

SetError sets the value of Error.

func (*ErrorResponse) SetSuccess

func (s *ErrorResponse) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*ErrorResponse) UnmarshalJSON

func (s *ErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ErrorResponse) Validate

func (s *ErrorResponse) Validate() error

type ErrorResponseError

type ErrorResponseError struct {
	Code    ErrorResponseErrorCode `json:"code"`
	Message string                 `json:"message"`
	// Optional structured data that callers can inspect to recover
	// from the error. The fields present depend on `code`. Additional
	// keys may be added over time without a major-version bump.
	Details OptErrorResponseErrorDetails `json:"details"`
}

func (*ErrorResponseError) Decode

func (s *ErrorResponseError) Decode(d *jx.Decoder) error

Decode decodes ErrorResponseError from json.

func (*ErrorResponseError) Encode

func (s *ErrorResponseError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorResponseError) GetCode

GetCode returns the value of Code.

func (*ErrorResponseError) GetDetails added in v0.4.0

GetDetails returns the value of Details.

func (*ErrorResponseError) GetMessage

func (s *ErrorResponseError) GetMessage() string

GetMessage returns the value of Message.

func (*ErrorResponseError) MarshalJSON

func (s *ErrorResponseError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorResponseError) SetCode

SetCode sets the value of Code.

func (*ErrorResponseError) SetDetails added in v0.4.0

SetDetails sets the value of Details.

func (*ErrorResponseError) SetMessage

func (s *ErrorResponseError) SetMessage(val string)

SetMessage sets the value of Message.

func (*ErrorResponseError) UnmarshalJSON

func (s *ErrorResponseError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ErrorResponseError) Validate

func (s *ErrorResponseError) Validate() error

type ErrorResponseErrorCode

type ErrorResponseErrorCode string
const (
	ErrorResponseErrorCodeUnauthorized      ErrorResponseErrorCode = "unauthorized"
	ErrorResponseErrorCodeForbidden         ErrorResponseErrorCode = "forbidden"
	ErrorResponseErrorCodeNotFound          ErrorResponseErrorCode = "not_found"
	ErrorResponseErrorCodeValidationError   ErrorResponseErrorCode = "validation_error"
	ErrorResponseErrorCodeRateLimitExceeded ErrorResponseErrorCode = "rate_limit_exceeded"
	ErrorResponseErrorCodeInternalError     ErrorResponseErrorCode = "internal_error"
	ErrorResponseErrorCodeConflict          ErrorResponseErrorCode = "conflict"
	ErrorResponseErrorCodeMxConflict        ErrorResponseErrorCode = "mx_conflict"
)

func (ErrorResponseErrorCode) AllValues

AllValues returns all ErrorResponseErrorCode values.

func (*ErrorResponseErrorCode) Decode

func (s *ErrorResponseErrorCode) Decode(d *jx.Decoder) error

Decode decodes ErrorResponseErrorCode from json.

func (ErrorResponseErrorCode) Encode

func (s ErrorResponseErrorCode) Encode(e *jx.Encoder)

Encode encodes ErrorResponseErrorCode as json.

func (ErrorResponseErrorCode) MarshalJSON

func (s ErrorResponseErrorCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ErrorResponseErrorCode) MarshalText

func (s ErrorResponseErrorCode) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ErrorResponseErrorCode) UnmarshalJSON

func (s *ErrorResponseErrorCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ErrorResponseErrorCode) UnmarshalText

func (s *ErrorResponseErrorCode) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ErrorResponseErrorCode) Validate

func (s ErrorResponseErrorCode) Validate() error

type ErrorResponseErrorDetails added in v0.4.0

type ErrorResponseErrorDetails struct {
	// Present when `code == mx_conflict`.
	MxConflict      OptErrorResponseErrorDetailsMxConflict `json:"mx_conflict"`
	AdditionalProps ErrorResponseErrorDetailsAdditional
}

Optional structured data that callers can inspect to recover from the error. The fields present depend on `code`. Additional keys may be added over time without a major-version bump.

func (*ErrorResponseErrorDetails) Decode added in v0.4.0

func (s *ErrorResponseErrorDetails) Decode(d *jx.Decoder) error

Decode decodes ErrorResponseErrorDetails from json.

func (*ErrorResponseErrorDetails) Encode added in v0.4.0

func (s *ErrorResponseErrorDetails) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ErrorResponseErrorDetails) GetAdditionalProps added in v0.4.0

GetAdditionalProps returns the value of AdditionalProps.

func (*ErrorResponseErrorDetails) GetMxConflict added in v0.4.0

GetMxConflict returns the value of MxConflict.

func (*ErrorResponseErrorDetails) MarshalJSON added in v0.4.0

func (s *ErrorResponseErrorDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorResponseErrorDetails) SetAdditionalProps added in v0.4.0

SetAdditionalProps sets the value of AdditionalProps.

func (*ErrorResponseErrorDetails) SetMxConflict added in v0.4.0

SetMxConflict sets the value of MxConflict.

func (*ErrorResponseErrorDetails) UnmarshalJSON added in v0.4.0

func (s *ErrorResponseErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorResponseErrorDetailsAdditional added in v0.4.0

type ErrorResponseErrorDetailsAdditional map[string]jx.Raw

func (*ErrorResponseErrorDetailsAdditional) Decode added in v0.4.0

Decode decodes ErrorResponseErrorDetailsAdditional from json.

func (ErrorResponseErrorDetailsAdditional) Encode added in v0.4.0

Encode implements json.Marshaler.

func (ErrorResponseErrorDetailsAdditional) MarshalJSON added in v0.4.0

func (s ErrorResponseErrorDetailsAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorResponseErrorDetailsAdditional) UnmarshalJSON added in v0.4.0

func (s *ErrorResponseErrorDetailsAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorResponseErrorDetailsMxConflict added in v0.4.0

type ErrorResponseErrorDetailsMxConflict struct {
	// Human-readable name of the detected mailbox provider (e.g. "Google Workspace").
	ProviderName string `json:"provider_name"`
	// Subdomain to try instead (e.g. "mail" for `mail.example.com`).
	SuggestedSubdomain string `json:"suggested_subdomain"`
}

Present when `code == mx_conflict`.

func (*ErrorResponseErrorDetailsMxConflict) Decode added in v0.4.0

Decode decodes ErrorResponseErrorDetailsMxConflict from json.

func (*ErrorResponseErrorDetailsMxConflict) Encode added in v0.4.0

Encode implements json.Marshaler.

func (*ErrorResponseErrorDetailsMxConflict) GetProviderName added in v0.4.0

func (s *ErrorResponseErrorDetailsMxConflict) GetProviderName() string

GetProviderName returns the value of ProviderName.

func (*ErrorResponseErrorDetailsMxConflict) GetSuggestedSubdomain added in v0.4.0

func (s *ErrorResponseErrorDetailsMxConflict) GetSuggestedSubdomain() string

GetSuggestedSubdomain returns the value of SuggestedSubdomain.

func (*ErrorResponseErrorDetailsMxConflict) MarshalJSON added in v0.4.0

func (s *ErrorResponseErrorDetailsMxConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ErrorResponseErrorDetailsMxConflict) SetProviderName added in v0.4.0

func (s *ErrorResponseErrorDetailsMxConflict) SetProviderName(val string)

SetProviderName sets the value of ProviderName.

func (*ErrorResponseErrorDetailsMxConflict) SetSuggestedSubdomain added in v0.4.0

func (s *ErrorResponseErrorDetailsMxConflict) SetSuggestedSubdomain(val string)

SetSuggestedSubdomain sets the value of SuggestedSubdomain.

func (*ErrorResponseErrorDetailsMxConflict) UnmarshalJSON added in v0.4.0

func (s *ErrorResponseErrorDetailsMxConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Filter

type Filter struct {
	ID    uuid.UUID `json:"id"`
	OrgID uuid.UUID `json:"org_id"`
	// If set, filter applies only to this domain.
	DomainID OptNilUUID `json:"domain_id"`
	Type     FilterType `json:"type"`
	// Email address or pattern to match (stored lowercase).
	Pattern   string    `json:"pattern"`
	Enabled   bool      `json:"enabled"`
	CreatedAt time.Time `json:"created_at"`
}

Ref: #/components/schemas/Filter

func (*Filter) Decode

func (s *Filter) Decode(d *jx.Decoder) error

Decode decodes Filter from json.

func (*Filter) Encode

func (s *Filter) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Filter) GetCreatedAt

func (s *Filter) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Filter) GetDomainID

func (s *Filter) GetDomainID() OptNilUUID

GetDomainID returns the value of DomainID.

func (*Filter) GetEnabled

func (s *Filter) GetEnabled() bool

GetEnabled returns the value of Enabled.

func (*Filter) GetID

func (s *Filter) GetID() uuid.UUID

GetID returns the value of ID.

func (*Filter) GetOrgID

func (s *Filter) GetOrgID() uuid.UUID

GetOrgID returns the value of OrgID.

func (*Filter) GetPattern

func (s *Filter) GetPattern() string

GetPattern returns the value of Pattern.

func (*Filter) GetType

func (s *Filter) GetType() FilterType

GetType returns the value of Type.

func (*Filter) MarshalJSON

func (s *Filter) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Filter) SetCreatedAt

func (s *Filter) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Filter) SetDomainID

func (s *Filter) SetDomainID(val OptNilUUID)

SetDomainID sets the value of DomainID.

func (*Filter) SetEnabled

func (s *Filter) SetEnabled(val bool)

SetEnabled sets the value of Enabled.

func (*Filter) SetID

func (s *Filter) SetID(val uuid.UUID)

SetID sets the value of ID.

func (*Filter) SetOrgID

func (s *Filter) SetOrgID(val uuid.UUID)

SetOrgID sets the value of OrgID.

func (*Filter) SetPattern

func (s *Filter) SetPattern(val string)

SetPattern sets the value of Pattern.

func (*Filter) SetType

func (s *Filter) SetType(val FilterType)

SetType sets the value of Type.

func (*Filter) UnmarshalJSON

func (s *Filter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Filter) Validate

func (s *Filter) Validate() error

type FilterType

type FilterType string
const (
	FilterTypeWhitelist FilterType = "whitelist"
	FilterTypeBlocklist FilterType = "blocklist"
)

func (FilterType) AllValues

func (FilterType) AllValues() []FilterType

AllValues returns all FilterType values.

func (*FilterType) Decode

func (s *FilterType) Decode(d *jx.Decoder) error

Decode decodes FilterType from json.

func (FilterType) Encode

func (s FilterType) Encode(e *jx.Encoder)

Encode encodes FilterType as json.

func (FilterType) MarshalJSON

func (s FilterType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (FilterType) MarshalText

func (s FilterType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*FilterType) UnmarshalJSON

func (s *FilterType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FilterType) UnmarshalText

func (s *FilterType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (FilterType) Validate

func (s FilterType) Validate() error

type GetAccountNotFound

type GetAccountNotFound ErrorResponse

func (*GetAccountNotFound) Decode

func (s *GetAccountNotFound) Decode(d *jx.Decoder) error

Decode decodes GetAccountNotFound from json.

func (*GetAccountNotFound) Encode

func (s *GetAccountNotFound) Encode(e *jx.Encoder)

Encode encodes GetAccountNotFound as json.

func (*GetAccountNotFound) MarshalJSON

func (s *GetAccountNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAccountNotFound) UnmarshalJSON

func (s *GetAccountNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAccountNotFound) Validate

func (s *GetAccountNotFound) Validate() error

type GetAccountOK

type GetAccountOK struct {
	Success bool    `json:"success"`
	Data    Account `json:"data"`
}

Merged schema.

func (*GetAccountOK) Decode

func (s *GetAccountOK) Decode(d *jx.Decoder) error

Decode decodes GetAccountOK from json.

func (*GetAccountOK) Encode

func (s *GetAccountOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAccountOK) GetData

func (s *GetAccountOK) GetData() Account

GetData returns the value of Data.

func (*GetAccountOK) GetSuccess

func (s *GetAccountOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*GetAccountOK) MarshalJSON

func (s *GetAccountOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAccountOK) SetData

func (s *GetAccountOK) SetData(val Account)

SetData sets the value of Data.

func (*GetAccountOK) SetSuccess

func (s *GetAccountOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*GetAccountOK) UnmarshalJSON

func (s *GetAccountOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAccountOK) Validate

func (s *GetAccountOK) Validate() error

type GetAccountRes

type GetAccountRes interface {
	// contains filtered or unexported methods
}

type GetAccountUnauthorized

type GetAccountUnauthorized ErrorResponse

func (*GetAccountUnauthorized) Decode

func (s *GetAccountUnauthorized) Decode(d *jx.Decoder) error

Decode decodes GetAccountUnauthorized from json.

func (*GetAccountUnauthorized) Encode

func (s *GetAccountUnauthorized) Encode(e *jx.Encoder)

Encode encodes GetAccountUnauthorized as json.

func (*GetAccountUnauthorized) MarshalJSON

func (s *GetAccountUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAccountUnauthorized) UnmarshalJSON

func (s *GetAccountUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAccountUnauthorized) Validate

func (s *GetAccountUnauthorized) Validate() error

type GetEmailBadRequest

type GetEmailBadRequest ErrorResponse

func (*GetEmailBadRequest) Decode

func (s *GetEmailBadRequest) Decode(d *jx.Decoder) error

Decode decodes GetEmailBadRequest from json.

func (*GetEmailBadRequest) Encode

func (s *GetEmailBadRequest) Encode(e *jx.Encoder)

Encode encodes GetEmailBadRequest as json.

func (*GetEmailBadRequest) MarshalJSON

func (s *GetEmailBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetEmailBadRequest) UnmarshalJSON

func (s *GetEmailBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetEmailBadRequest) Validate

func (s *GetEmailBadRequest) Validate() error

type GetEmailNotFound

type GetEmailNotFound ErrorResponse

func (*GetEmailNotFound) Decode

func (s *GetEmailNotFound) Decode(d *jx.Decoder) error

Decode decodes GetEmailNotFound from json.

func (*GetEmailNotFound) Encode

func (s *GetEmailNotFound) Encode(e *jx.Encoder)

Encode encodes GetEmailNotFound as json.

func (*GetEmailNotFound) MarshalJSON

func (s *GetEmailNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetEmailNotFound) UnmarshalJSON

func (s *GetEmailNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetEmailNotFound) Validate

func (s *GetEmailNotFound) Validate() error

type GetEmailOK

type GetEmailOK struct {
	Success bool        `json:"success"`
	Data    EmailDetail `json:"data"`
}

Merged schema.

func (*GetEmailOK) Decode

func (s *GetEmailOK) Decode(d *jx.Decoder) error

Decode decodes GetEmailOK from json.

func (*GetEmailOK) Encode

func (s *GetEmailOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetEmailOK) GetData

func (s *GetEmailOK) GetData() EmailDetail

GetData returns the value of Data.

func (*GetEmailOK) GetSuccess

func (s *GetEmailOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*GetEmailOK) MarshalJSON

func (s *GetEmailOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetEmailOK) SetData

func (s *GetEmailOK) SetData(val EmailDetail)

SetData sets the value of Data.

func (*GetEmailOK) SetSuccess

func (s *GetEmailOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*GetEmailOK) UnmarshalJSON

func (s *GetEmailOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetEmailOK) Validate

func (s *GetEmailOK) Validate() error

type GetEmailParams

type GetEmailParams struct {
	// Resource UUID.
	ID uuid.UUID
}

GetEmailParams is parameters of getEmail operation.

type GetEmailRes

type GetEmailRes interface {
	// contains filtered or unexported methods
}

type GetEmailUnauthorized

type GetEmailUnauthorized ErrorResponse

func (*GetEmailUnauthorized) Decode

func (s *GetEmailUnauthorized) Decode(d *jx.Decoder) error

Decode decodes GetEmailUnauthorized from json.

func (*GetEmailUnauthorized) Encode

func (s *GetEmailUnauthorized) Encode(e *jx.Encoder)

Encode encodes GetEmailUnauthorized as json.

func (*GetEmailUnauthorized) MarshalJSON

func (s *GetEmailUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetEmailUnauthorized) UnmarshalJSON

func (s *GetEmailUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetEmailUnauthorized) Validate

func (s *GetEmailUnauthorized) Validate() error

type GetStorageStatsNotFound

type GetStorageStatsNotFound ErrorResponse

func (*GetStorageStatsNotFound) Decode

func (s *GetStorageStatsNotFound) Decode(d *jx.Decoder) error

Decode decodes GetStorageStatsNotFound from json.

func (*GetStorageStatsNotFound) Encode

func (s *GetStorageStatsNotFound) Encode(e *jx.Encoder)

Encode encodes GetStorageStatsNotFound as json.

func (*GetStorageStatsNotFound) MarshalJSON

func (s *GetStorageStatsNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetStorageStatsNotFound) UnmarshalJSON

func (s *GetStorageStatsNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetStorageStatsNotFound) Validate

func (s *GetStorageStatsNotFound) Validate() error

type GetStorageStatsOK

type GetStorageStatsOK struct {
	Success bool         `json:"success"`
	Data    StorageStats `json:"data"`
}

Merged schema.

func (*GetStorageStatsOK) Decode

func (s *GetStorageStatsOK) Decode(d *jx.Decoder) error

Decode decodes GetStorageStatsOK from json.

func (*GetStorageStatsOK) Encode

func (s *GetStorageStatsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetStorageStatsOK) GetData

func (s *GetStorageStatsOK) GetData() StorageStats

GetData returns the value of Data.

func (*GetStorageStatsOK) GetSuccess

func (s *GetStorageStatsOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*GetStorageStatsOK) MarshalJSON

func (s *GetStorageStatsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetStorageStatsOK) SetData

func (s *GetStorageStatsOK) SetData(val StorageStats)

SetData sets the value of Data.

func (*GetStorageStatsOK) SetSuccess

func (s *GetStorageStatsOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*GetStorageStatsOK) UnmarshalJSON

func (s *GetStorageStatsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetStorageStatsOK) Validate

func (s *GetStorageStatsOK) Validate() error

type GetStorageStatsRes

type GetStorageStatsRes interface {
	// contains filtered or unexported methods
}

type GetStorageStatsUnauthorized

type GetStorageStatsUnauthorized ErrorResponse

func (*GetStorageStatsUnauthorized) Decode

Decode decodes GetStorageStatsUnauthorized from json.

func (*GetStorageStatsUnauthorized) Encode

func (s *GetStorageStatsUnauthorized) Encode(e *jx.Encoder)

Encode encodes GetStorageStatsUnauthorized as json.

func (*GetStorageStatsUnauthorized) MarshalJSON

func (s *GetStorageStatsUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetStorageStatsUnauthorized) UnmarshalJSON

func (s *GetStorageStatsUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetStorageStatsUnauthorized) Validate

func (s *GetStorageStatsUnauthorized) Validate() error

type GetWebhookSecretNotFound

type GetWebhookSecretNotFound ErrorResponse

func (*GetWebhookSecretNotFound) Decode

func (s *GetWebhookSecretNotFound) Decode(d *jx.Decoder) error

Decode decodes GetWebhookSecretNotFound from json.

func (*GetWebhookSecretNotFound) Encode

func (s *GetWebhookSecretNotFound) Encode(e *jx.Encoder)

Encode encodes GetWebhookSecretNotFound as json.

func (*GetWebhookSecretNotFound) MarshalJSON

func (s *GetWebhookSecretNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetWebhookSecretNotFound) UnmarshalJSON

func (s *GetWebhookSecretNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetWebhookSecretNotFound) Validate

func (s *GetWebhookSecretNotFound) Validate() error

type GetWebhookSecretOK

type GetWebhookSecretOK struct {
	Success bool          `json:"success"`
	Data    WebhookSecret `json:"data"`
}

Merged schema.

func (*GetWebhookSecretOK) Decode

func (s *GetWebhookSecretOK) Decode(d *jx.Decoder) error

Decode decodes GetWebhookSecretOK from json.

func (*GetWebhookSecretOK) Encode

func (s *GetWebhookSecretOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetWebhookSecretOK) GetData

func (s *GetWebhookSecretOK) GetData() WebhookSecret

GetData returns the value of Data.

func (*GetWebhookSecretOK) GetSuccess

func (s *GetWebhookSecretOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*GetWebhookSecretOK) MarshalJSON

func (s *GetWebhookSecretOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetWebhookSecretOK) SetData

func (s *GetWebhookSecretOK) SetData(val WebhookSecret)

SetData sets the value of Data.

func (*GetWebhookSecretOK) SetSuccess

func (s *GetWebhookSecretOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*GetWebhookSecretOK) UnmarshalJSON

func (s *GetWebhookSecretOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetWebhookSecretRes

type GetWebhookSecretRes interface {
	// contains filtered or unexported methods
}

type GetWebhookSecretUnauthorized

type GetWebhookSecretUnauthorized ErrorResponse

func (*GetWebhookSecretUnauthorized) Decode

Decode decodes GetWebhookSecretUnauthorized from json.

func (*GetWebhookSecretUnauthorized) Encode

func (s *GetWebhookSecretUnauthorized) Encode(e *jx.Encoder)

Encode encodes GetWebhookSecretUnauthorized as json.

func (*GetWebhookSecretUnauthorized) MarshalJSON

func (s *GetWebhookSecretUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetWebhookSecretUnauthorized) UnmarshalJSON

func (s *GetWebhookSecretUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetWebhookSecretUnauthorized) Validate

func (s *GetWebhookSecretUnauthorized) Validate() error

type Handler

type Handler interface {
	// AddDomain implements addDomain operation.
	//
	// Creates an unverified domain claim. You will receive a
	// `verification_token` to add as a DNS TXT record before
	// calling the verify endpoint.
	//
	// POST /domains
	AddDomain(ctx context.Context, req *AddDomainInput) (AddDomainRes, error)
	// CreateEndpoint implements createEndpoint operation.
	//
	// Creates a new webhook endpoint. If a deactivated endpoint with the
	// same URL and domain exists, it is reactivated instead.
	// Subject to plan limits on the number of active endpoints.
	//
	// POST /endpoints
	CreateEndpoint(ctx context.Context, req *CreateEndpointInput) (CreateEndpointRes, error)
	// CreateFilter implements createFilter operation.
	//
	// Creates a new whitelist or blocklist filter. Per-domain filters
	// require a Pro plan. Patterns are stored as lowercase.
	//
	// POST /filters
	CreateFilter(ctx context.Context, req *CreateFilterInput) (CreateFilterRes, error)
	// DeleteDomain implements deleteDomain operation.
	//
	// Deletes a verified or unverified domain claim.
	//
	// DELETE /domains/{id}
	DeleteDomain(ctx context.Context, params DeleteDomainParams) (DeleteDomainRes, error)
	// DeleteEmail implements deleteEmail operation.
	//
	// Delete an email.
	//
	// DELETE /emails/{id}
	DeleteEmail(ctx context.Context, params DeleteEmailParams) (DeleteEmailRes, error)
	// DeleteEndpoint implements deleteEndpoint operation.
	//
	// Soft-deletes a webhook endpoint. The endpoint will no longer
	// receive webhook deliveries.
	//
	// DELETE /endpoints/{id}
	DeleteEndpoint(ctx context.Context, params DeleteEndpointParams) (DeleteEndpointRes, error)
	// DeleteFilter implements deleteFilter operation.
	//
	// Delete a filter rule.
	//
	// DELETE /filters/{id}
	DeleteFilter(ctx context.Context, params DeleteFilterParams) (DeleteFilterRes, error)
	// DownloadAttachments implements downloadAttachments operation.
	//
	// Downloads all attachments as a gzip-compressed tar archive.
	// Authenticates via a signed download token (provided in webhook
	// payloads) or a valid session.
	//
	// GET /emails/{id}/attachments.tar.gz
	DownloadAttachments(ctx context.Context, params DownloadAttachmentsParams) (DownloadAttachmentsRes, error)
	// DownloadRawEmail implements downloadRawEmail operation.
	//
	// Downloads the raw RFC 822 email file (.eml). Authenticates via
	// a signed download token (provided in webhook payloads) or a
	// valid session.
	//
	// GET /emails/{id}/raw
	DownloadRawEmail(ctx context.Context, params DownloadRawEmailParams) (DownloadRawEmailRes, error)
	// GetAccount implements getAccount operation.
	//
	// Get account info.
	//
	// GET /account
	GetAccount(ctx context.Context) (GetAccountRes, error)
	// GetEmail implements getEmail operation.
	//
	// Get email details.
	//
	// GET /emails/{id}
	GetEmail(ctx context.Context, params GetEmailParams) (GetEmailRes, error)
	// GetStorageStats implements getStorageStats operation.
	//
	// Get storage usage.
	//
	// GET /account/storage
	GetStorageStats(ctx context.Context) (GetStorageStatsRes, error)
	// GetWebhookSecret implements getWebhookSecret operation.
	//
	// Returns the webhook signing secret for your account. If no secret
	// exists yet, one is generated automatically on first access.
	//
	// GET /account/webhook-secret
	GetWebhookSecret(ctx context.Context) (GetWebhookSecretRes, error)
	// ListDeliveries implements listDeliveries operation.
	//
	// Returns a paginated list of webhook delivery attempts. Each delivery
	// includes a nested `email` object with sender, recipient, and subject.
	//
	// GET /webhooks/deliveries
	ListDeliveries(ctx context.Context, params ListDeliveriesParams) (ListDeliveriesRes, error)
	// ListDomains implements listDomains operation.
	//
	// Returns all verified and unverified domains for your organization,
	// sorted by creation date (newest first). Each domain includes a
	// `verified` boolean to distinguish between the two states.
	//
	// GET /domains
	ListDomains(ctx context.Context) (ListDomainsRes, error)
	// ListEmails implements listEmails operation.
	//
	// Returns a paginated list of received emails. Supports filtering by
	// domain, status, date range, and free-text search across subject,
	// sender, and recipient fields.
	//
	// GET /emails
	ListEmails(ctx context.Context, params ListEmailsParams) (ListEmailsRes, error)
	// ListEndpoints implements listEndpoints operation.
	//
	// Returns all active (non-deleted) webhook endpoints.
	//
	// GET /endpoints
	ListEndpoints(ctx context.Context) (ListEndpointsRes, error)
	// ListFilters implements listFilters operation.
	//
	// Returns all whitelist and blocklist filter rules.
	//
	// GET /filters
	ListFilters(ctx context.Context) (ListFiltersRes, error)
	// ReplayDelivery implements replayDelivery operation.
	//
	// Re-sends the stored webhook payload from a previous delivery attempt.
	// If the original endpoint is still active, it is targeted. If the
	// original endpoint was deleted, the oldest active endpoint is used.
	// Deactivated endpoints cannot be replayed to. Rate limited per-org,
	// sharing an org-wide budget with email replays.
	//
	// POST /webhooks/deliveries/{id}/replay
	ReplayDelivery(ctx context.Context, params ReplayDeliveryParams) (ReplayDeliveryRes, error)
	// ReplayEmailWebhooks implements replayEmailWebhooks operation.
	//
	// Re-delivers the webhook payload for this email to all active
	// endpoints matching the email's domain. Rate limited per-email
	// (short cooldown between successive replays of the same email)
	// and per-org (burst + sustained windows), sharing an org-wide
	// budget with delivery replays.
	//
	// POST /emails/{id}/replay
	ReplayEmailWebhooks(ctx context.Context, params ReplayEmailWebhooksParams) (ReplayEmailWebhooksRes, error)
	// RotateWebhookSecret implements rotateWebhookSecret operation.
	//
	// Generates a new webhook signing secret, replacing the current one.
	// Rate limited to once per 60 minutes.
	//
	// POST /account/webhook-secret/rotate
	RotateWebhookSecret(ctx context.Context) (RotateWebhookSecretRes, error)
	// TestEndpoint implements testEndpoint operation.
	//
	// Sends a sample `email.received` event to the endpoint. The request
	// includes SSRF protection (private IP rejection and DNS pinning).
	// Rate limited to 4 per minute and 30 per hour (non-exempt).
	// Successful deliveries and verified-domain endpoints are exempt
	// from the rate limit.
	//
	// POST /endpoints/{id}/test
	TestEndpoint(ctx context.Context, params TestEndpointParams) (TestEndpointRes, error)
	// UpdateAccount implements updateAccount operation.
	//
	// Update account settings.
	//
	// PATCH /account
	UpdateAccount(ctx context.Context, req *UpdateAccountInput) (UpdateAccountRes, error)
	// UpdateDomain implements updateDomain operation.
	//
	// Update a verified domain's settings. Only verified domains can be
	// updated. Per-domain spam thresholds require a Pro plan.
	//
	// PATCH /domains/{id}
	UpdateDomain(ctx context.Context, req *UpdateDomainInput, params UpdateDomainParams) (UpdateDomainRes, error)
	// UpdateEndpoint implements updateEndpoint operation.
	//
	// Updates an active webhook endpoint. If the URL is changed, the old
	// endpoint is deactivated and a new one is created (or an existing
	// deactivated endpoint with the new URL is reactivated).
	//
	// PATCH /endpoints/{id}
	UpdateEndpoint(ctx context.Context, req *UpdateEndpointInput, params UpdateEndpointParams) (UpdateEndpointRes, error)
	// UpdateFilter implements updateFilter operation.
	//
	// Toggle a filter's enabled state.
	//
	// PATCH /filters/{id}
	UpdateFilter(ctx context.Context, req *UpdateFilterInput, params UpdateFilterParams) (UpdateFilterRes, error)
	// VerifyDomain implements verifyDomain operation.
	//
	// Checks DNS records (MX and TXT) to verify domain ownership.
	// On success, the domain is promoted from unverified to verified.
	// On failure, returns which checks passed and which failed.
	//
	// POST /domains/{id}/verify
	VerifyDomain(ctx context.Context, params VerifyDomainParams) (VerifyDomainRes, error)
}

Handler handles operations described by OpenAPI v3 specification.

type Invoker

type Invoker interface {
	// AddDomain invokes addDomain operation.
	//
	// Creates an unverified domain claim. You will receive a
	// `verification_token` to add as a DNS TXT record before
	// calling the verify endpoint.
	//
	// POST /domains
	AddDomain(ctx context.Context, request *AddDomainInput) (AddDomainRes, error)
	// CreateEndpoint invokes createEndpoint operation.
	//
	// Creates a new webhook endpoint. If a deactivated endpoint with the
	// same URL and domain exists, it is reactivated instead.
	// Subject to plan limits on the number of active endpoints.
	//
	// POST /endpoints
	CreateEndpoint(ctx context.Context, request *CreateEndpointInput) (CreateEndpointRes, error)
	// CreateFilter invokes createFilter operation.
	//
	// Creates a new whitelist or blocklist filter. Per-domain filters
	// require a Pro plan. Patterns are stored as lowercase.
	//
	// POST /filters
	CreateFilter(ctx context.Context, request *CreateFilterInput) (CreateFilterRes, error)
	// DeleteDomain invokes deleteDomain operation.
	//
	// Deletes a verified or unverified domain claim.
	//
	// DELETE /domains/{id}
	DeleteDomain(ctx context.Context, params DeleteDomainParams) (DeleteDomainRes, error)
	// DeleteEmail invokes deleteEmail operation.
	//
	// Delete an email.
	//
	// DELETE /emails/{id}
	DeleteEmail(ctx context.Context, params DeleteEmailParams) (DeleteEmailRes, error)
	// DeleteEndpoint invokes deleteEndpoint operation.
	//
	// Soft-deletes a webhook endpoint. The endpoint will no longer
	// receive webhook deliveries.
	//
	// DELETE /endpoints/{id}
	DeleteEndpoint(ctx context.Context, params DeleteEndpointParams) (DeleteEndpointRes, error)
	// DeleteFilter invokes deleteFilter operation.
	//
	// Delete a filter rule.
	//
	// DELETE /filters/{id}
	DeleteFilter(ctx context.Context, params DeleteFilterParams) (DeleteFilterRes, error)
	// DownloadAttachments invokes downloadAttachments operation.
	//
	// Downloads all attachments as a gzip-compressed tar archive.
	// Authenticates via a signed download token (provided in webhook
	// payloads) or a valid session.
	//
	// GET /emails/{id}/attachments.tar.gz
	DownloadAttachments(ctx context.Context, params DownloadAttachmentsParams) (DownloadAttachmentsRes, error)
	// DownloadRawEmail invokes downloadRawEmail operation.
	//
	// Downloads the raw RFC 822 email file (.eml). Authenticates via
	// a signed download token (provided in webhook payloads) or a
	// valid session.
	//
	// GET /emails/{id}/raw
	DownloadRawEmail(ctx context.Context, params DownloadRawEmailParams) (DownloadRawEmailRes, error)
	// GetAccount invokes getAccount operation.
	//
	// Get account info.
	//
	// GET /account
	GetAccount(ctx context.Context) (GetAccountRes, error)
	// GetEmail invokes getEmail operation.
	//
	// Get email details.
	//
	// GET /emails/{id}
	GetEmail(ctx context.Context, params GetEmailParams) (GetEmailRes, error)
	// GetStorageStats invokes getStorageStats operation.
	//
	// Get storage usage.
	//
	// GET /account/storage
	GetStorageStats(ctx context.Context) (GetStorageStatsRes, error)
	// GetWebhookSecret invokes getWebhookSecret operation.
	//
	// Returns the webhook signing secret for your account. If no secret
	// exists yet, one is generated automatically on first access.
	//
	// GET /account/webhook-secret
	GetWebhookSecret(ctx context.Context) (GetWebhookSecretRes, error)
	// ListDeliveries invokes listDeliveries operation.
	//
	// Returns a paginated list of webhook delivery attempts. Each delivery
	// includes a nested `email` object with sender, recipient, and subject.
	//
	// GET /webhooks/deliveries
	ListDeliveries(ctx context.Context, params ListDeliveriesParams) (ListDeliveriesRes, error)
	// ListDomains invokes listDomains operation.
	//
	// Returns all verified and unverified domains for your organization,
	// sorted by creation date (newest first). Each domain includes a
	// `verified` boolean to distinguish between the two states.
	//
	// GET /domains
	ListDomains(ctx context.Context) (ListDomainsRes, error)
	// ListEmails invokes listEmails operation.
	//
	// Returns a paginated list of received emails. Supports filtering by
	// domain, status, date range, and free-text search across subject,
	// sender, and recipient fields.
	//
	// GET /emails
	ListEmails(ctx context.Context, params ListEmailsParams) (ListEmailsRes, error)
	// ListEndpoints invokes listEndpoints operation.
	//
	// Returns all active (non-deleted) webhook endpoints.
	//
	// GET /endpoints
	ListEndpoints(ctx context.Context) (ListEndpointsRes, error)
	// ListFilters invokes listFilters operation.
	//
	// Returns all whitelist and blocklist filter rules.
	//
	// GET /filters
	ListFilters(ctx context.Context) (ListFiltersRes, error)
	// ReplayDelivery invokes replayDelivery operation.
	//
	// Re-sends the stored webhook payload from a previous delivery attempt.
	// If the original endpoint is still active, it is targeted. If the
	// original endpoint was deleted, the oldest active endpoint is used.
	// Deactivated endpoints cannot be replayed to. Rate limited per-org,
	// sharing an org-wide budget with email replays.
	//
	// POST /webhooks/deliveries/{id}/replay
	ReplayDelivery(ctx context.Context, params ReplayDeliveryParams) (ReplayDeliveryRes, error)
	// ReplayEmailWebhooks invokes replayEmailWebhooks operation.
	//
	// Re-delivers the webhook payload for this email to all active
	// endpoints matching the email's domain. Rate limited per-email
	// (short cooldown between successive replays of the same email)
	// and per-org (burst + sustained windows), sharing an org-wide
	// budget with delivery replays.
	//
	// POST /emails/{id}/replay
	ReplayEmailWebhooks(ctx context.Context, params ReplayEmailWebhooksParams) (ReplayEmailWebhooksRes, error)
	// RotateWebhookSecret invokes rotateWebhookSecret operation.
	//
	// Generates a new webhook signing secret, replacing the current one.
	// Rate limited to once per 60 minutes.
	//
	// POST /account/webhook-secret/rotate
	RotateWebhookSecret(ctx context.Context) (RotateWebhookSecretRes, error)
	// TestEndpoint invokes testEndpoint operation.
	//
	// Sends a sample `email.received` event to the endpoint. The request
	// includes SSRF protection (private IP rejection and DNS pinning).
	// Rate limited to 4 per minute and 30 per hour (non-exempt).
	// Successful deliveries and verified-domain endpoints are exempt
	// from the rate limit.
	//
	// POST /endpoints/{id}/test
	TestEndpoint(ctx context.Context, params TestEndpointParams) (TestEndpointRes, error)
	// UpdateAccount invokes updateAccount operation.
	//
	// Update account settings.
	//
	// PATCH /account
	UpdateAccount(ctx context.Context, request *UpdateAccountInput) (UpdateAccountRes, error)
	// UpdateDomain invokes updateDomain operation.
	//
	// Update a verified domain's settings. Only verified domains can be
	// updated. Per-domain spam thresholds require a Pro plan.
	//
	// PATCH /domains/{id}
	UpdateDomain(ctx context.Context, request *UpdateDomainInput, params UpdateDomainParams) (UpdateDomainRes, error)
	// UpdateEndpoint invokes updateEndpoint operation.
	//
	// Updates an active webhook endpoint. If the URL is changed, the old
	// endpoint is deactivated and a new one is created (or an existing
	// deactivated endpoint with the new URL is reactivated).
	//
	// PATCH /endpoints/{id}
	UpdateEndpoint(ctx context.Context, request *UpdateEndpointInput, params UpdateEndpointParams) (UpdateEndpointRes, error)
	// UpdateFilter invokes updateFilter operation.
	//
	// Toggle a filter's enabled state.
	//
	// PATCH /filters/{id}
	UpdateFilter(ctx context.Context, request *UpdateFilterInput, params UpdateFilterParams) (UpdateFilterRes, error)
	// VerifyDomain invokes verifyDomain operation.
	//
	// Checks DNS records (MX and TXT) to verify domain ownership.
	// On success, the domain is promoted from unverified to verified.
	// On failure, returns which checks passed and which failed.
	//
	// POST /domains/{id}/verify
	VerifyDomain(ctx context.Context, params VerifyDomainParams) (VerifyDomainRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type Labeler

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

Labeler is used to allow adding custom attributes to the server request metrics.

func LabelerFromContext

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

LabelerFromContext retrieves the Labeler from the provided context, if present.

If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.

func (*Labeler) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type ListDeliveriesBadRequest

type ListDeliveriesBadRequest ErrorResponse

func (*ListDeliveriesBadRequest) Decode

func (s *ListDeliveriesBadRequest) Decode(d *jx.Decoder) error

Decode decodes ListDeliveriesBadRequest from json.

func (*ListDeliveriesBadRequest) Encode

func (s *ListDeliveriesBadRequest) Encode(e *jx.Encoder)

Encode encodes ListDeliveriesBadRequest as json.

func (*ListDeliveriesBadRequest) MarshalJSON

func (s *ListDeliveriesBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDeliveriesBadRequest) UnmarshalJSON

func (s *ListDeliveriesBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListDeliveriesBadRequest) Validate

func (s *ListDeliveriesBadRequest) Validate() error

type ListDeliveriesOK

type ListDeliveriesOK struct {
	Success bool              `json:"success"`
	Meta    PaginationMeta    `json:"meta"`
	Data    []DeliverySummary `json:"data"`
}

Merged schema.

func (*ListDeliveriesOK) Decode

func (s *ListDeliveriesOK) Decode(d *jx.Decoder) error

Decode decodes ListDeliveriesOK from json.

func (*ListDeliveriesOK) Encode

func (s *ListDeliveriesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListDeliveriesOK) GetData

func (s *ListDeliveriesOK) GetData() []DeliverySummary

GetData returns the value of Data.

func (*ListDeliveriesOK) GetMeta

func (s *ListDeliveriesOK) GetMeta() PaginationMeta

GetMeta returns the value of Meta.

func (*ListDeliveriesOK) GetSuccess

func (s *ListDeliveriesOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*ListDeliveriesOK) MarshalJSON

func (s *ListDeliveriesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDeliveriesOK) SetData

func (s *ListDeliveriesOK) SetData(val []DeliverySummary)

SetData sets the value of Data.

func (*ListDeliveriesOK) SetMeta

func (s *ListDeliveriesOK) SetMeta(val PaginationMeta)

SetMeta sets the value of Meta.

func (*ListDeliveriesOK) SetSuccess

func (s *ListDeliveriesOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*ListDeliveriesOK) UnmarshalJSON

func (s *ListDeliveriesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListDeliveriesOK) Validate

func (s *ListDeliveriesOK) Validate() error

type ListDeliveriesParams

type ListDeliveriesParams struct {
	// Pagination cursor from a previous response's `meta.cursor` field.
	// Format: `{ISO-datetime}|{id}`.
	Cursor OptString `json:",omitempty,omitzero"`
	// Number of results per page.
	Limit OptInt `json:",omitempty,omitzero"`
	// Filter by email ID.
	EmailID OptUUID `json:",omitempty,omitzero"`
	// Filter by delivery status.
	Status OptListDeliveriesStatus `json:",omitempty,omitzero"`
	// Filter deliveries created on or after this timestamp.
	DateFrom OptDateTime `json:",omitempty,omitzero"`
	// Filter deliveries created on or before this timestamp.
	DateTo OptDateTime `json:",omitempty,omitzero"`
}

ListDeliveriesParams is parameters of listDeliveries operation.

type ListDeliveriesRes

type ListDeliveriesRes interface {
	// contains filtered or unexported methods
}

type ListDeliveriesStatus

type ListDeliveriesStatus string
const (
	ListDeliveriesStatusPending         ListDeliveriesStatus = "pending"
	ListDeliveriesStatusDelivered       ListDeliveriesStatus = "delivered"
	ListDeliveriesStatusHeaderConfirmed ListDeliveriesStatus = "header_confirmed"
	ListDeliveriesStatusFailed          ListDeliveriesStatus = "failed"
)

func (ListDeliveriesStatus) AllValues

AllValues returns all ListDeliveriesStatus values.

func (ListDeliveriesStatus) MarshalText

func (s ListDeliveriesStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListDeliveriesStatus) UnmarshalText

func (s *ListDeliveriesStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListDeliveriesStatus) Validate

func (s ListDeliveriesStatus) Validate() error

type ListDeliveriesUnauthorized

type ListDeliveriesUnauthorized ErrorResponse

func (*ListDeliveriesUnauthorized) Decode

Decode decodes ListDeliveriesUnauthorized from json.

func (*ListDeliveriesUnauthorized) Encode

func (s *ListDeliveriesUnauthorized) Encode(e *jx.Encoder)

Encode encodes ListDeliveriesUnauthorized as json.

func (*ListDeliveriesUnauthorized) MarshalJSON

func (s *ListDeliveriesUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDeliveriesUnauthorized) UnmarshalJSON

func (s *ListDeliveriesUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListDeliveriesUnauthorized) Validate

func (s *ListDeliveriesUnauthorized) Validate() error

type ListDomainsOK

type ListDomainsOK struct {
	Success bool     `json:"success"`
	Data    []Domain `json:"data"`
}

Merged schema.

func (*ListDomainsOK) Decode

func (s *ListDomainsOK) Decode(d *jx.Decoder) error

Decode decodes ListDomainsOK from json.

func (*ListDomainsOK) Encode

func (s *ListDomainsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListDomainsOK) GetData

func (s *ListDomainsOK) GetData() []Domain

GetData returns the value of Data.

func (*ListDomainsOK) GetSuccess

func (s *ListDomainsOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*ListDomainsOK) MarshalJSON

func (s *ListDomainsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDomainsOK) SetData

func (s *ListDomainsOK) SetData(val []Domain)

SetData sets the value of Data.

func (*ListDomainsOK) SetSuccess

func (s *ListDomainsOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*ListDomainsOK) UnmarshalJSON

func (s *ListDomainsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListDomainsOK) Validate

func (s *ListDomainsOK) Validate() error

type ListDomainsRes

type ListDomainsRes interface {
	// contains filtered or unexported methods
}

type ListEmailsBadRequest

type ListEmailsBadRequest ErrorResponse

func (*ListEmailsBadRequest) Decode

func (s *ListEmailsBadRequest) Decode(d *jx.Decoder) error

Decode decodes ListEmailsBadRequest from json.

func (*ListEmailsBadRequest) Encode

func (s *ListEmailsBadRequest) Encode(e *jx.Encoder)

Encode encodes ListEmailsBadRequest as json.

func (*ListEmailsBadRequest) MarshalJSON

func (s *ListEmailsBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListEmailsBadRequest) UnmarshalJSON

func (s *ListEmailsBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListEmailsBadRequest) Validate

func (s *ListEmailsBadRequest) Validate() error

type ListEmailsOK

type ListEmailsOK struct {
	Success bool           `json:"success"`
	Meta    PaginationMeta `json:"meta"`
	Data    []EmailSummary `json:"data"`
}

Merged schema.

func (*ListEmailsOK) Decode

func (s *ListEmailsOK) Decode(d *jx.Decoder) error

Decode decodes ListEmailsOK from json.

func (*ListEmailsOK) Encode

func (s *ListEmailsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListEmailsOK) GetData

func (s *ListEmailsOK) GetData() []EmailSummary

GetData returns the value of Data.

func (*ListEmailsOK) GetMeta

func (s *ListEmailsOK) GetMeta() PaginationMeta

GetMeta returns the value of Meta.

func (*ListEmailsOK) GetSuccess

func (s *ListEmailsOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*ListEmailsOK) MarshalJSON

func (s *ListEmailsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListEmailsOK) SetData

func (s *ListEmailsOK) SetData(val []EmailSummary)

SetData sets the value of Data.

func (*ListEmailsOK) SetMeta

func (s *ListEmailsOK) SetMeta(val PaginationMeta)

SetMeta sets the value of Meta.

func (*ListEmailsOK) SetSuccess

func (s *ListEmailsOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*ListEmailsOK) UnmarshalJSON

func (s *ListEmailsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListEmailsOK) Validate

func (s *ListEmailsOK) Validate() error

type ListEmailsParams

type ListEmailsParams struct {
	// Pagination cursor from a previous response's `meta.cursor` field.
	// Format: `{ISO-datetime}|{id}`.
	Cursor OptString `json:",omitempty,omitzero"`
	// Number of results per page.
	Limit OptInt `json:",omitempty,omitzero"`
	// Filter by domain ID.
	DomainID OptUUID `json:",omitempty,omitzero"`
	// Filter by email status.
	Status OptListEmailsStatus `json:",omitempty,omitzero"`
	// Search subject, sender, and recipient (case-insensitive).
	Search OptString `json:",omitempty,omitzero"`
	// Filter emails created on or after this timestamp.
	DateFrom OptDateTime `json:",omitempty,omitzero"`
	// Filter emails created on or before this timestamp.
	DateTo OptDateTime `json:",omitempty,omitzero"`
}

ListEmailsParams is parameters of listEmails operation.

type ListEmailsRes

type ListEmailsRes interface {
	// contains filtered or unexported methods
}

type ListEmailsStatus

type ListEmailsStatus string
const (
	ListEmailsStatusPending   ListEmailsStatus = "pending"
	ListEmailsStatusAccepted  ListEmailsStatus = "accepted"
	ListEmailsStatusCompleted ListEmailsStatus = "completed"
	ListEmailsStatusRejected  ListEmailsStatus = "rejected"
)

func (ListEmailsStatus) AllValues

func (ListEmailsStatus) AllValues() []ListEmailsStatus

AllValues returns all ListEmailsStatus values.

func (ListEmailsStatus) MarshalText

func (s ListEmailsStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ListEmailsStatus) UnmarshalText

func (s *ListEmailsStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ListEmailsStatus) Validate

func (s ListEmailsStatus) Validate() error

type ListEmailsUnauthorized

type ListEmailsUnauthorized ErrorResponse

func (*ListEmailsUnauthorized) Decode

func (s *ListEmailsUnauthorized) Decode(d *jx.Decoder) error

Decode decodes ListEmailsUnauthorized from json.

func (*ListEmailsUnauthorized) Encode

func (s *ListEmailsUnauthorized) Encode(e *jx.Encoder)

Encode encodes ListEmailsUnauthorized as json.

func (*ListEmailsUnauthorized) MarshalJSON

func (s *ListEmailsUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListEmailsUnauthorized) UnmarshalJSON

func (s *ListEmailsUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListEmailsUnauthorized) Validate

func (s *ListEmailsUnauthorized) Validate() error

type ListEndpointsOK

type ListEndpointsOK struct {
	Success bool       `json:"success"`
	Data    []Endpoint `json:"data"`
}

Merged schema.

func (*ListEndpointsOK) Decode

func (s *ListEndpointsOK) Decode(d *jx.Decoder) error

Decode decodes ListEndpointsOK from json.

func (*ListEndpointsOK) Encode

func (s *ListEndpointsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListEndpointsOK) GetData

func (s *ListEndpointsOK) GetData() []Endpoint

GetData returns the value of Data.

func (*ListEndpointsOK) GetSuccess

func (s *ListEndpointsOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*ListEndpointsOK) MarshalJSON

func (s *ListEndpointsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListEndpointsOK) SetData

func (s *ListEndpointsOK) SetData(val []Endpoint)

SetData sets the value of Data.

func (*ListEndpointsOK) SetSuccess

func (s *ListEndpointsOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*ListEndpointsOK) UnmarshalJSON

func (s *ListEndpointsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListEndpointsOK) Validate

func (s *ListEndpointsOK) Validate() error

type ListEndpointsRes

type ListEndpointsRes interface {
	// contains filtered or unexported methods
}

type ListFiltersOK

type ListFiltersOK struct {
	Success bool     `json:"success"`
	Data    []Filter `json:"data"`
}

Merged schema.

func (*ListFiltersOK) Decode

func (s *ListFiltersOK) Decode(d *jx.Decoder) error

Decode decodes ListFiltersOK from json.

func (*ListFiltersOK) Encode

func (s *ListFiltersOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ListFiltersOK) GetData

func (s *ListFiltersOK) GetData() []Filter

GetData returns the value of Data.

func (*ListFiltersOK) GetSuccess

func (s *ListFiltersOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*ListFiltersOK) MarshalJSON

func (s *ListFiltersOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListFiltersOK) SetData

func (s *ListFiltersOK) SetData(val []Filter)

SetData sets the value of Data.

func (*ListFiltersOK) SetSuccess

func (s *ListFiltersOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*ListFiltersOK) UnmarshalJSON

func (s *ListFiltersOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ListFiltersOK) Validate

func (s *ListFiltersOK) Validate() error

type ListFiltersRes

type ListFiltersRes interface {
	// contains filtered or unexported methods
}

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type NilString

type NilString struct {
	Value string
	Null  bool
}

NilString is nullable string.

func NewNilString

func NewNilString(v string) NilString

NewNilString returns new NilString with value set to v.

func (*NilString) Decode

func (o *NilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (NilString) Encode

func (o NilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (NilString) Get

func (o NilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (NilString) IsNull

func (o NilString) IsNull() bool

IsNull returns true if value is Null.

func (NilString) MarshalJSON

func (s NilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilString) Or

func (o NilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*NilString) SetTo

func (o *NilString) SetTo(v string)

SetTo sets value to v.

func (*NilString) SetToNull

func (o *NilString) SetToNull()

SetToNull sets value to null.

func (*NilString) UnmarshalJSON

func (s *NilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OperationName

type OperationName = string

OperationName is the ogen operation name

const (
	AddDomainOperation           OperationName = "AddDomain"
	CreateEndpointOperation      OperationName = "CreateEndpoint"
	CreateFilterOperation        OperationName = "CreateFilter"
	DeleteDomainOperation        OperationName = "DeleteDomain"
	DeleteEmailOperation         OperationName = "DeleteEmail"
	DeleteEndpointOperation      OperationName = "DeleteEndpoint"
	DeleteFilterOperation        OperationName = "DeleteFilter"
	DownloadAttachmentsOperation OperationName = "DownloadAttachments"
	DownloadRawEmailOperation    OperationName = "DownloadRawEmail"
	GetAccountOperation          OperationName = "GetAccount"
	GetEmailOperation            OperationName = "GetEmail"
	GetStorageStatsOperation     OperationName = "GetStorageStats"
	GetWebhookSecretOperation    OperationName = "GetWebhookSecret"
	ListDeliveriesOperation      OperationName = "ListDeliveries"
	ListDomainsOperation         OperationName = "ListDomains"
	ListEmailsOperation          OperationName = "ListEmails"
	ListEndpointsOperation       OperationName = "ListEndpoints"
	ListFiltersOperation         OperationName = "ListFilters"
	ReplayDeliveryOperation      OperationName = "ReplayDelivery"
	ReplayEmailWebhooksOperation OperationName = "ReplayEmailWebhooks"
	RotateWebhookSecretOperation OperationName = "RotateWebhookSecret"
	TestEndpointOperation        OperationName = "TestEndpoint"
	UpdateAccountOperation       OperationName = "UpdateAccount"
	UpdateDomainOperation        OperationName = "UpdateDomain"
	UpdateEndpointOperation      OperationName = "UpdateEndpoint"
	UpdateFilterOperation        OperationName = "UpdateFilter"
	VerifyDomainOperation        OperationName = "VerifyDomain"
)

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

type OptErrorResponseErrorDetails added in v0.4.0

type OptErrorResponseErrorDetails struct {
	Value ErrorResponseErrorDetails
	Set   bool
}

OptErrorResponseErrorDetails is optional ErrorResponseErrorDetails.

func NewOptErrorResponseErrorDetails added in v0.4.0

func NewOptErrorResponseErrorDetails(v ErrorResponseErrorDetails) OptErrorResponseErrorDetails

NewOptErrorResponseErrorDetails returns new OptErrorResponseErrorDetails with value set to v.

func (*OptErrorResponseErrorDetails) Decode added in v0.4.0

Decode decodes ErrorResponseErrorDetails from json.

func (OptErrorResponseErrorDetails) Encode added in v0.4.0

Encode encodes ErrorResponseErrorDetails as json.

func (OptErrorResponseErrorDetails) Get added in v0.4.0

Get returns value and boolean that denotes whether value was set.

func (OptErrorResponseErrorDetails) IsSet added in v0.4.0

IsSet returns true if OptErrorResponseErrorDetails was set.

func (OptErrorResponseErrorDetails) MarshalJSON added in v0.4.0

func (s OptErrorResponseErrorDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptErrorResponseErrorDetails) Or added in v0.4.0

Or returns value if set, or given parameter if does not.

func (*OptErrorResponseErrorDetails) Reset added in v0.4.0

func (o *OptErrorResponseErrorDetails) Reset()

Reset unsets value.

func (*OptErrorResponseErrorDetails) SetTo added in v0.4.0

SetTo sets value to v.

func (*OptErrorResponseErrorDetails) UnmarshalJSON added in v0.4.0

func (s *OptErrorResponseErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptErrorResponseErrorDetailsMxConflict added in v0.4.0

type OptErrorResponseErrorDetailsMxConflict struct {
	Value ErrorResponseErrorDetailsMxConflict
	Set   bool
}

OptErrorResponseErrorDetailsMxConflict is optional ErrorResponseErrorDetailsMxConflict.

func NewOptErrorResponseErrorDetailsMxConflict added in v0.4.0

func NewOptErrorResponseErrorDetailsMxConflict(v ErrorResponseErrorDetailsMxConflict) OptErrorResponseErrorDetailsMxConflict

NewOptErrorResponseErrorDetailsMxConflict returns new OptErrorResponseErrorDetailsMxConflict with value set to v.

func (*OptErrorResponseErrorDetailsMxConflict) Decode added in v0.4.0

Decode decodes ErrorResponseErrorDetailsMxConflict from json.

func (OptErrorResponseErrorDetailsMxConflict) Encode added in v0.4.0

Encode encodes ErrorResponseErrorDetailsMxConflict as json.

func (OptErrorResponseErrorDetailsMxConflict) Get added in v0.4.0

Get returns value and boolean that denotes whether value was set.

func (OptErrorResponseErrorDetailsMxConflict) IsSet added in v0.4.0

IsSet returns true if OptErrorResponseErrorDetailsMxConflict was set.

func (OptErrorResponseErrorDetailsMxConflict) MarshalJSON added in v0.4.0

func (s OptErrorResponseErrorDetailsMxConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptErrorResponseErrorDetailsMxConflict) Or added in v0.4.0

Or returns value if set, or given parameter if does not.

func (*OptErrorResponseErrorDetailsMxConflict) Reset added in v0.4.0

Reset unsets value.

func (*OptErrorResponseErrorDetailsMxConflict) SetTo added in v0.4.0

SetTo sets value to v.

func (*OptErrorResponseErrorDetailsMxConflict) UnmarshalJSON added in v0.4.0

func (s *OptErrorResponseErrorDetailsMxConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

type OptListDeliveriesStatus

type OptListDeliveriesStatus struct {
	Value ListDeliveriesStatus
	Set   bool
}

OptListDeliveriesStatus is optional ListDeliveriesStatus.

func NewOptListDeliveriesStatus

func NewOptListDeliveriesStatus(v ListDeliveriesStatus) OptListDeliveriesStatus

NewOptListDeliveriesStatus returns new OptListDeliveriesStatus with value set to v.

func (OptListDeliveriesStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptListDeliveriesStatus) IsSet

func (o OptListDeliveriesStatus) IsSet() bool

IsSet returns true if OptListDeliveriesStatus was set.

func (OptListDeliveriesStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptListDeliveriesStatus) Reset

func (o *OptListDeliveriesStatus) Reset()

Reset unsets value.

func (*OptListDeliveriesStatus) SetTo

SetTo sets value to v.

type OptListEmailsStatus

type OptListEmailsStatus struct {
	Value ListEmailsStatus
	Set   bool
}

OptListEmailsStatus is optional ListEmailsStatus.

func NewOptListEmailsStatus

func NewOptListEmailsStatus(v ListEmailsStatus) OptListEmailsStatus

NewOptListEmailsStatus returns new OptListEmailsStatus with value set to v.

func (OptListEmailsStatus) Get

func (o OptListEmailsStatus) Get() (v ListEmailsStatus, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptListEmailsStatus) IsSet

func (o OptListEmailsStatus) IsSet() bool

IsSet returns true if OptListEmailsStatus was set.

func (OptListEmailsStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptListEmailsStatus) Reset

func (o *OptListEmailsStatus) Reset()

Reset unsets value.

func (*OptListEmailsStatus) SetTo

SetTo sets value to v.

type OptNilBool

type OptNilBool struct {
	Value bool
	Set   bool
	Null  bool
}

OptNilBool is optional nullable bool.

func NewOptNilBool

func NewOptNilBool(v bool) OptNilBool

NewOptNilBool returns new OptNilBool with value set to v.

func (*OptNilBool) Decode

func (o *OptNilBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptNilBool) Encode

func (o OptNilBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptNilBool) Get

func (o OptNilBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilBool) IsNull

func (o OptNilBool) IsNull() bool

IsNull returns true if value is Null.

func (OptNilBool) IsSet

func (o OptNilBool) IsSet() bool

IsSet returns true if OptNilBool was set.

func (OptNilBool) MarshalJSON

func (s OptNilBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilBool) Or

func (o OptNilBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptNilBool) Reset

func (o *OptNilBool) Reset()

Reset unsets value.

func (*OptNilBool) SetTo

func (o *OptNilBool) SetTo(v bool)

SetTo sets value to v.

func (*OptNilBool) SetToNull

func (o *OptNilBool) SetToNull()

SetToNull sets value to null.

func (*OptNilBool) UnmarshalJSON

func (s *OptNilBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilDateTime

type OptNilDateTime struct {
	Value time.Time
	Set   bool
	Null  bool
}

OptNilDateTime is optional nullable time.Time.

func NewOptNilDateTime

func NewOptNilDateTime(v time.Time) OptNilDateTime

NewOptNilDateTime returns new OptNilDateTime with value set to v.

func (*OptNilDateTime) Decode

func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptNilDateTime) Encode

func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptNilDateTime) Get

func (o OptNilDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilDateTime) IsNull

func (o OptNilDateTime) IsNull() bool

IsNull returns true if value is Null.

func (OptNilDateTime) IsSet

func (o OptNilDateTime) IsSet() bool

IsSet returns true if OptNilDateTime was set.

func (OptNilDateTime) MarshalJSON

func (s OptNilDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilDateTime) Or

func (o OptNilDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptNilDateTime) Reset

func (o *OptNilDateTime) Reset()

Reset unsets value.

func (*OptNilDateTime) SetTo

func (o *OptNilDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptNilDateTime) SetToNull

func (o *OptNilDateTime) SetToNull()

SetToNull sets value to null.

func (*OptNilDateTime) UnmarshalJSON

func (s *OptNilDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilDeliverySummaryEmail

type OptNilDeliverySummaryEmail struct {
	Value DeliverySummaryEmail
	Set   bool
	Null  bool
}

OptNilDeliverySummaryEmail is optional nullable DeliverySummaryEmail.

func NewOptNilDeliverySummaryEmail

func NewOptNilDeliverySummaryEmail(v DeliverySummaryEmail) OptNilDeliverySummaryEmail

NewOptNilDeliverySummaryEmail returns new OptNilDeliverySummaryEmail with value set to v.

func (*OptNilDeliverySummaryEmail) Decode

Decode decodes DeliverySummaryEmail from json.

func (OptNilDeliverySummaryEmail) Encode

func (o OptNilDeliverySummaryEmail) Encode(e *jx.Encoder)

Encode encodes DeliverySummaryEmail as json.

func (OptNilDeliverySummaryEmail) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilDeliverySummaryEmail) IsNull

func (o OptNilDeliverySummaryEmail) IsNull() bool

IsNull returns true if value is Null.

func (OptNilDeliverySummaryEmail) IsSet

func (o OptNilDeliverySummaryEmail) IsSet() bool

IsSet returns true if OptNilDeliverySummaryEmail was set.

func (OptNilDeliverySummaryEmail) MarshalJSON

func (s OptNilDeliverySummaryEmail) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilDeliverySummaryEmail) Or

Or returns value if set, or given parameter if does not.

func (*OptNilDeliverySummaryEmail) Reset

func (o *OptNilDeliverySummaryEmail) Reset()

Reset unsets value.

func (*OptNilDeliverySummaryEmail) SetTo

SetTo sets value to v.

func (*OptNilDeliverySummaryEmail) SetToNull

func (o *OptNilDeliverySummaryEmail) SetToNull()

SetToNull sets value to null.

func (*OptNilDeliverySummaryEmail) UnmarshalJSON

func (s *OptNilDeliverySummaryEmail) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilEmailDetailWebhookStatus

type OptNilEmailDetailWebhookStatus struct {
	Value EmailDetailWebhookStatus
	Set   bool
	Null  bool
}

OptNilEmailDetailWebhookStatus is optional nullable EmailDetailWebhookStatus.

func NewOptNilEmailDetailWebhookStatus

func NewOptNilEmailDetailWebhookStatus(v EmailDetailWebhookStatus) OptNilEmailDetailWebhookStatus

NewOptNilEmailDetailWebhookStatus returns new OptNilEmailDetailWebhookStatus with value set to v.

func (*OptNilEmailDetailWebhookStatus) Decode

Decode decodes EmailDetailWebhookStatus from json.

func (OptNilEmailDetailWebhookStatus) Encode

Encode encodes EmailDetailWebhookStatus as json.

func (OptNilEmailDetailWebhookStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilEmailDetailWebhookStatus) IsNull

IsNull returns true if value is Null.

func (OptNilEmailDetailWebhookStatus) IsSet

IsSet returns true if OptNilEmailDetailWebhookStatus was set.

func (OptNilEmailDetailWebhookStatus) MarshalJSON

func (s OptNilEmailDetailWebhookStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilEmailDetailWebhookStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptNilEmailDetailWebhookStatus) Reset

func (o *OptNilEmailDetailWebhookStatus) Reset()

Reset unsets value.

func (*OptNilEmailDetailWebhookStatus) SetTo

SetTo sets value to v.

func (*OptNilEmailDetailWebhookStatus) SetToNull

func (o *OptNilEmailDetailWebhookStatus) SetToNull()

SetToNull sets value to null.

func (*OptNilEmailDetailWebhookStatus) UnmarshalJSON

func (s *OptNilEmailDetailWebhookStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilEmailSummaryWebhookStatus

type OptNilEmailSummaryWebhookStatus struct {
	Value EmailSummaryWebhookStatus
	Set   bool
	Null  bool
}

OptNilEmailSummaryWebhookStatus is optional nullable EmailSummaryWebhookStatus.

func NewOptNilEmailSummaryWebhookStatus

func NewOptNilEmailSummaryWebhookStatus(v EmailSummaryWebhookStatus) OptNilEmailSummaryWebhookStatus

NewOptNilEmailSummaryWebhookStatus returns new OptNilEmailSummaryWebhookStatus with value set to v.

func (*OptNilEmailSummaryWebhookStatus) Decode

Decode decodes EmailSummaryWebhookStatus from json.

func (OptNilEmailSummaryWebhookStatus) Encode

Encode encodes EmailSummaryWebhookStatus as json.

func (OptNilEmailSummaryWebhookStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilEmailSummaryWebhookStatus) IsNull

IsNull returns true if value is Null.

func (OptNilEmailSummaryWebhookStatus) IsSet

IsSet returns true if OptNilEmailSummaryWebhookStatus was set.

func (OptNilEmailSummaryWebhookStatus) MarshalJSON

func (s OptNilEmailSummaryWebhookStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilEmailSummaryWebhookStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptNilEmailSummaryWebhookStatus) Reset

Reset unsets value.

func (*OptNilEmailSummaryWebhookStatus) SetTo

SetTo sets value to v.

func (*OptNilEmailSummaryWebhookStatus) SetToNull

func (o *OptNilEmailSummaryWebhookStatus) SetToNull()

SetToNull sets value to null.

func (*OptNilEmailSummaryWebhookStatus) UnmarshalJSON

func (s *OptNilEmailSummaryWebhookStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilFloat64

type OptNilFloat64 struct {
	Value float64
	Set   bool
	Null  bool
}

OptNilFloat64 is optional nullable float64.

func NewOptNilFloat64

func NewOptNilFloat64(v float64) OptNilFloat64

NewOptNilFloat64 returns new OptNilFloat64 with value set to v.

func (*OptNilFloat64) Decode

func (o *OptNilFloat64) Decode(d *jx.Decoder) error

Decode decodes float64 from json.

func (OptNilFloat64) Encode

func (o OptNilFloat64) Encode(e *jx.Encoder)

Encode encodes float64 as json.

func (OptNilFloat64) Get

func (o OptNilFloat64) Get() (v float64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilFloat64) IsNull

func (o OptNilFloat64) IsNull() bool

IsNull returns true if value is Null.

func (OptNilFloat64) IsSet

func (o OptNilFloat64) IsSet() bool

IsSet returns true if OptNilFloat64 was set.

func (OptNilFloat64) MarshalJSON

func (s OptNilFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilFloat64) Or

func (o OptNilFloat64) Or(d float64) float64

Or returns value if set, or given parameter if does not.

func (*OptNilFloat64) Reset

func (o *OptNilFloat64) Reset()

Reset unsets value.

func (*OptNilFloat64) SetTo

func (o *OptNilFloat64) SetTo(v float64)

SetTo sets value to v.

func (*OptNilFloat64) SetToNull

func (o *OptNilFloat64) SetToNull()

SetToNull sets value to null.

func (*OptNilFloat64) UnmarshalJSON

func (s *OptNilFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilInt

type OptNilInt struct {
	Value int
	Set   bool
	Null  bool
}

OptNilInt is optional nullable int.

func NewOptNilInt

func NewOptNilInt(v int) OptNilInt

NewOptNilInt returns new OptNilInt with value set to v.

func (*OptNilInt) Decode

func (o *OptNilInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptNilInt) Encode

func (o OptNilInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptNilInt) Get

func (o OptNilInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilInt) IsNull

func (o OptNilInt) IsNull() bool

IsNull returns true if value is Null.

func (OptNilInt) IsSet

func (o OptNilInt) IsSet() bool

IsSet returns true if OptNilInt was set.

func (OptNilInt) MarshalJSON

func (s OptNilInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilInt) Or

func (o OptNilInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptNilInt) Reset

func (o *OptNilInt) Reset()

Reset unsets value.

func (*OptNilInt) SetTo

func (o *OptNilInt) SetTo(v int)

SetTo sets value to v.

func (*OptNilInt) SetToNull

func (o *OptNilInt) SetToNull()

SetToNull sets value to null.

func (*OptNilInt) UnmarshalJSON

func (s *OptNilInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsNull

func (o OptNilString) IsNull() bool

IsNull returns true if value is Null.

func (OptNilString) IsSet

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetToNull sets value to null.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilStringArray

type OptNilStringArray struct {
	Value []string
	Set   bool
	Null  bool
}

OptNilStringArray is optional nullable []string.

func NewOptNilStringArray

func NewOptNilStringArray(v []string) OptNilStringArray

NewOptNilStringArray returns new OptNilStringArray with value set to v.

func (*OptNilStringArray) Decode

func (o *OptNilStringArray) Decode(d *jx.Decoder) error

Decode decodes []string from json.

func (OptNilStringArray) Encode

func (o OptNilStringArray) Encode(e *jx.Encoder)

Encode encodes []string as json.

func (OptNilStringArray) Get

func (o OptNilStringArray) Get() (v []string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilStringArray) IsNull

func (o OptNilStringArray) IsNull() bool

IsNull returns true if value is Null.

func (OptNilStringArray) IsSet

func (o OptNilStringArray) IsSet() bool

IsSet returns true if OptNilStringArray was set.

func (OptNilStringArray) MarshalJSON

func (s OptNilStringArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilStringArray) Or

func (o OptNilStringArray) Or(d []string) []string

Or returns value if set, or given parameter if does not.

func (*OptNilStringArray) Reset

func (o *OptNilStringArray) Reset()

Reset unsets value.

func (*OptNilStringArray) SetTo

func (o *OptNilStringArray) SetTo(v []string)

SetTo sets value to v.

func (*OptNilStringArray) SetToNull

func (o *OptNilStringArray) SetToNull()

SetToNull sets value to null.

func (*OptNilStringArray) UnmarshalJSON

func (s *OptNilStringArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilUUID

type OptNilUUID struct {
	Value uuid.UUID
	Set   bool
	Null  bool
}

OptNilUUID is optional nullable uuid.UUID.

func NewOptNilUUID

func NewOptNilUUID(v uuid.UUID) OptNilUUID

NewOptNilUUID returns new OptNilUUID with value set to v.

func (*OptNilUUID) Decode

func (o *OptNilUUID) Decode(d *jx.Decoder) error

Decode decodes uuid.UUID from json.

func (OptNilUUID) Encode

func (o OptNilUUID) Encode(e *jx.Encoder)

Encode encodes uuid.UUID as json.

func (OptNilUUID) Get

func (o OptNilUUID) Get() (v uuid.UUID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilUUID) IsNull

func (o OptNilUUID) IsNull() bool

IsNull returns true if value is Null.

func (OptNilUUID) IsSet

func (o OptNilUUID) IsSet() bool

IsSet returns true if OptNilUUID was set.

func (OptNilUUID) MarshalJSON

func (s OptNilUUID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilUUID) Or

func (o OptNilUUID) Or(d uuid.UUID) uuid.UUID

Or returns value if set, or given parameter if does not.

func (*OptNilUUID) Reset

func (o *OptNilUUID) Reset()

Reset unsets value.

func (*OptNilUUID) SetTo

func (o *OptNilUUID) SetTo(v uuid.UUID)

SetTo sets value to v.

func (*OptNilUUID) SetToNull

func (o *OptNilUUID) SetToNull()

SetToNull sets value to null.

func (*OptNilUUID) UnmarshalJSON

func (s *OptNilUUID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUUID

type OptUUID struct {
	Value uuid.UUID
	Set   bool
}

OptUUID is optional uuid.UUID.

func NewOptUUID

func NewOptUUID(v uuid.UUID) OptUUID

NewOptUUID returns new OptUUID with value set to v.

func (OptUUID) Get

func (o OptUUID) Get() (v uuid.UUID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUUID) IsSet

func (o OptUUID) IsSet() bool

IsSet returns true if OptUUID was set.

func (OptUUID) Or

func (o OptUUID) Or(d uuid.UUID) uuid.UUID

Or returns value if set, or given parameter if does not.

func (*OptUUID) Reset

func (o *OptUUID) Reset()

Reset unsets value.

func (*OptUUID) SetTo

func (o *OptUUID) SetTo(v uuid.UUID)

SetTo sets value to v.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithAttributes

func WithAttributes(attributes ...attribute.KeyValue) Option

WithAttributes specifies default otel attributes.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type PaginationMeta

type PaginationMeta struct {
	// Total number of matching records.
	Total int `json:"total"`
	// Page size used for this request.
	Limit int `json:"limit"`
	// Cursor for the next page, or null if no more results.
	Cursor NilString `json:"cursor"`
}

Ref: #/components/schemas/PaginationMeta

func (*PaginationMeta) Decode

func (s *PaginationMeta) Decode(d *jx.Decoder) error

Decode decodes PaginationMeta from json.

func (*PaginationMeta) Encode

func (s *PaginationMeta) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PaginationMeta) GetCursor

func (s *PaginationMeta) GetCursor() NilString

GetCursor returns the value of Cursor.

func (*PaginationMeta) GetLimit

func (s *PaginationMeta) GetLimit() int

GetLimit returns the value of Limit.

func (*PaginationMeta) GetTotal

func (s *PaginationMeta) GetTotal() int

GetTotal returns the value of Total.

func (*PaginationMeta) MarshalJSON

func (s *PaginationMeta) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaginationMeta) SetCursor

func (s *PaginationMeta) SetCursor(val NilString)

SetCursor sets the value of Cursor.

func (*PaginationMeta) SetLimit

func (s *PaginationMeta) SetLimit(val int)

SetLimit sets the value of Limit.

func (*PaginationMeta) SetTotal

func (s *PaginationMeta) SetTotal(val int)

SetTotal sets the value of Total.

func (*PaginationMeta) UnmarshalJSON

func (s *PaginationMeta) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RateLimitedHeaders

type RateLimitedHeaders struct {
	RetryAfter OptInt
	Response   ErrorResponse
}

RateLimitedHeaders wraps ErrorResponse with response headers.

func (*RateLimitedHeaders) GetResponse

func (s *RateLimitedHeaders) GetResponse() ErrorResponse

GetResponse returns the value of Response.

func (*RateLimitedHeaders) GetRetryAfter

func (s *RateLimitedHeaders) GetRetryAfter() OptInt

GetRetryAfter returns the value of RetryAfter.

func (*RateLimitedHeaders) SetResponse

func (s *RateLimitedHeaders) SetResponse(val ErrorResponse)

SetResponse sets the value of Response.

func (*RateLimitedHeaders) SetRetryAfter

func (s *RateLimitedHeaders) SetRetryAfter(val OptInt)

SetRetryAfter sets the value of RetryAfter.

func (*RateLimitedHeaders) Validate

func (s *RateLimitedHeaders) Validate() error

type ReplayDeliveryBadRequest

type ReplayDeliveryBadRequest ErrorResponse

func (*ReplayDeliveryBadRequest) Decode

func (s *ReplayDeliveryBadRequest) Decode(d *jx.Decoder) error

Decode decodes ReplayDeliveryBadRequest from json.

func (*ReplayDeliveryBadRequest) Encode

func (s *ReplayDeliveryBadRequest) Encode(e *jx.Encoder)

Encode encodes ReplayDeliveryBadRequest as json.

func (*ReplayDeliveryBadRequest) MarshalJSON

func (s *ReplayDeliveryBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReplayDeliveryBadRequest) UnmarshalJSON

func (s *ReplayDeliveryBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReplayDeliveryBadRequest) Validate

func (s *ReplayDeliveryBadRequest) Validate() error

type ReplayDeliveryNotFound

type ReplayDeliveryNotFound ErrorResponse

func (*ReplayDeliveryNotFound) Decode

func (s *ReplayDeliveryNotFound) Decode(d *jx.Decoder) error

Decode decodes ReplayDeliveryNotFound from json.

func (*ReplayDeliveryNotFound) Encode

func (s *ReplayDeliveryNotFound) Encode(e *jx.Encoder)

Encode encodes ReplayDeliveryNotFound as json.

func (*ReplayDeliveryNotFound) MarshalJSON

func (s *ReplayDeliveryNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReplayDeliveryNotFound) UnmarshalJSON

func (s *ReplayDeliveryNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReplayDeliveryNotFound) Validate

func (s *ReplayDeliveryNotFound) Validate() error

type ReplayDeliveryOK

type ReplayDeliveryOK struct {
	Success bool         `json:"success"`
	Data    ReplayResult `json:"data"`
}

Merged schema.

func (*ReplayDeliveryOK) Decode

func (s *ReplayDeliveryOK) Decode(d *jx.Decoder) error

Decode decodes ReplayDeliveryOK from json.

func (*ReplayDeliveryOK) Encode

func (s *ReplayDeliveryOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ReplayDeliveryOK) GetData

func (s *ReplayDeliveryOK) GetData() ReplayResult

GetData returns the value of Data.

func (*ReplayDeliveryOK) GetSuccess

func (s *ReplayDeliveryOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*ReplayDeliveryOK) MarshalJSON

func (s *ReplayDeliveryOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReplayDeliveryOK) SetData

func (s *ReplayDeliveryOK) SetData(val ReplayResult)

SetData sets the value of Data.

func (*ReplayDeliveryOK) SetSuccess

func (s *ReplayDeliveryOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*ReplayDeliveryOK) UnmarshalJSON

func (s *ReplayDeliveryOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ReplayDeliveryParams

type ReplayDeliveryParams struct {
	// Delivery ID (numeric).
	ID string
}

ReplayDeliveryParams is parameters of replayDelivery operation.

type ReplayDeliveryRes

type ReplayDeliveryRes interface {
	// contains filtered or unexported methods
}

type ReplayDeliveryUnauthorized

type ReplayDeliveryUnauthorized ErrorResponse

func (*ReplayDeliveryUnauthorized) Decode

Decode decodes ReplayDeliveryUnauthorized from json.

func (*ReplayDeliveryUnauthorized) Encode

func (s *ReplayDeliveryUnauthorized) Encode(e *jx.Encoder)

Encode encodes ReplayDeliveryUnauthorized as json.

func (*ReplayDeliveryUnauthorized) MarshalJSON

func (s *ReplayDeliveryUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReplayDeliveryUnauthorized) UnmarshalJSON

func (s *ReplayDeliveryUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReplayDeliveryUnauthorized) Validate

func (s *ReplayDeliveryUnauthorized) Validate() error

type ReplayEmailWebhooksBadRequest

type ReplayEmailWebhooksBadRequest ErrorResponse

func (*ReplayEmailWebhooksBadRequest) Decode

Decode decodes ReplayEmailWebhooksBadRequest from json.

func (*ReplayEmailWebhooksBadRequest) Encode

Encode encodes ReplayEmailWebhooksBadRequest as json.

func (*ReplayEmailWebhooksBadRequest) MarshalJSON

func (s *ReplayEmailWebhooksBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReplayEmailWebhooksBadRequest) UnmarshalJSON

func (s *ReplayEmailWebhooksBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReplayEmailWebhooksBadRequest) Validate

func (s *ReplayEmailWebhooksBadRequest) Validate() error

type ReplayEmailWebhooksNotFound

type ReplayEmailWebhooksNotFound ErrorResponse

func (*ReplayEmailWebhooksNotFound) Decode

Decode decodes ReplayEmailWebhooksNotFound from json.

func (*ReplayEmailWebhooksNotFound) Encode

func (s *ReplayEmailWebhooksNotFound) Encode(e *jx.Encoder)

Encode encodes ReplayEmailWebhooksNotFound as json.

func (*ReplayEmailWebhooksNotFound) MarshalJSON

func (s *ReplayEmailWebhooksNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReplayEmailWebhooksNotFound) UnmarshalJSON

func (s *ReplayEmailWebhooksNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReplayEmailWebhooksNotFound) Validate

func (s *ReplayEmailWebhooksNotFound) Validate() error

type ReplayEmailWebhooksOK

type ReplayEmailWebhooksOK struct {
	Success bool         `json:"success"`
	Data    ReplayResult `json:"data"`
}

Merged schema.

func (*ReplayEmailWebhooksOK) Decode

func (s *ReplayEmailWebhooksOK) Decode(d *jx.Decoder) error

Decode decodes ReplayEmailWebhooksOK from json.

func (*ReplayEmailWebhooksOK) Encode

func (s *ReplayEmailWebhooksOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ReplayEmailWebhooksOK) GetData

func (s *ReplayEmailWebhooksOK) GetData() ReplayResult

GetData returns the value of Data.

func (*ReplayEmailWebhooksOK) GetSuccess

func (s *ReplayEmailWebhooksOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*ReplayEmailWebhooksOK) MarshalJSON

func (s *ReplayEmailWebhooksOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReplayEmailWebhooksOK) SetData

func (s *ReplayEmailWebhooksOK) SetData(val ReplayResult)

SetData sets the value of Data.

func (*ReplayEmailWebhooksOK) SetSuccess

func (s *ReplayEmailWebhooksOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*ReplayEmailWebhooksOK) UnmarshalJSON

func (s *ReplayEmailWebhooksOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ReplayEmailWebhooksParams

type ReplayEmailWebhooksParams struct {
	// Resource UUID.
	ID uuid.UUID
}

ReplayEmailWebhooksParams is parameters of replayEmailWebhooks operation.

type ReplayEmailWebhooksRes

type ReplayEmailWebhooksRes interface {
	// contains filtered or unexported methods
}

type ReplayEmailWebhooksUnauthorized

type ReplayEmailWebhooksUnauthorized ErrorResponse

func (*ReplayEmailWebhooksUnauthorized) Decode

Decode decodes ReplayEmailWebhooksUnauthorized from json.

func (*ReplayEmailWebhooksUnauthorized) Encode

Encode encodes ReplayEmailWebhooksUnauthorized as json.

func (*ReplayEmailWebhooksUnauthorized) MarshalJSON

func (s *ReplayEmailWebhooksUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReplayEmailWebhooksUnauthorized) UnmarshalJSON

func (s *ReplayEmailWebhooksUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReplayEmailWebhooksUnauthorized) Validate

func (s *ReplayEmailWebhooksUnauthorized) Validate() error

type ReplayResult

type ReplayResult struct {
	// Number of successful deliveries.
	Delivered int `json:"delivered"`
	// Number of failed deliveries.
	Failed int `json:"failed"`
}

Ref: #/components/schemas/ReplayResult

func (*ReplayResult) Decode

func (s *ReplayResult) Decode(d *jx.Decoder) error

Decode decodes ReplayResult from json.

func (*ReplayResult) Encode

func (s *ReplayResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ReplayResult) GetDelivered

func (s *ReplayResult) GetDelivered() int

GetDelivered returns the value of Delivered.

func (*ReplayResult) GetFailed

func (s *ReplayResult) GetFailed() int

GetFailed returns the value of Failed.

func (*ReplayResult) MarshalJSON

func (s *ReplayResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ReplayResult) SetDelivered

func (s *ReplayResult) SetDelivered(val int)

SetDelivered sets the value of Delivered.

func (*ReplayResult) SetFailed

func (s *ReplayResult) SetFailed(val int)

SetFailed sets the value of Failed.

func (*ReplayResult) UnmarshalJSON

func (s *ReplayResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RotateWebhookSecretBadRequest

type RotateWebhookSecretBadRequest ErrorResponse

func (*RotateWebhookSecretBadRequest) Decode

Decode decodes RotateWebhookSecretBadRequest from json.

func (*RotateWebhookSecretBadRequest) Encode

Encode encodes RotateWebhookSecretBadRequest as json.

func (*RotateWebhookSecretBadRequest) MarshalJSON

func (s *RotateWebhookSecretBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RotateWebhookSecretBadRequest) UnmarshalJSON

func (s *RotateWebhookSecretBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RotateWebhookSecretBadRequest) Validate

func (s *RotateWebhookSecretBadRequest) Validate() error

type RotateWebhookSecretNotFound

type RotateWebhookSecretNotFound ErrorResponse

func (*RotateWebhookSecretNotFound) Decode

Decode decodes RotateWebhookSecretNotFound from json.

func (*RotateWebhookSecretNotFound) Encode

func (s *RotateWebhookSecretNotFound) Encode(e *jx.Encoder)

Encode encodes RotateWebhookSecretNotFound as json.

func (*RotateWebhookSecretNotFound) MarshalJSON

func (s *RotateWebhookSecretNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RotateWebhookSecretNotFound) UnmarshalJSON

func (s *RotateWebhookSecretNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RotateWebhookSecretNotFound) Validate

func (s *RotateWebhookSecretNotFound) Validate() error

type RotateWebhookSecretOK

type RotateWebhookSecretOK struct {
	Success bool          `json:"success"`
	Data    WebhookSecret `json:"data"`
}

Merged schema.

func (*RotateWebhookSecretOK) Decode

func (s *RotateWebhookSecretOK) Decode(d *jx.Decoder) error

Decode decodes RotateWebhookSecretOK from json.

func (*RotateWebhookSecretOK) Encode

func (s *RotateWebhookSecretOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RotateWebhookSecretOK) GetData

func (s *RotateWebhookSecretOK) GetData() WebhookSecret

GetData returns the value of Data.

func (*RotateWebhookSecretOK) GetSuccess

func (s *RotateWebhookSecretOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*RotateWebhookSecretOK) MarshalJSON

func (s *RotateWebhookSecretOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RotateWebhookSecretOK) SetData

func (s *RotateWebhookSecretOK) SetData(val WebhookSecret)

SetData sets the value of Data.

func (*RotateWebhookSecretOK) SetSuccess

func (s *RotateWebhookSecretOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*RotateWebhookSecretOK) UnmarshalJSON

func (s *RotateWebhookSecretOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RotateWebhookSecretRes

type RotateWebhookSecretRes interface {
	// contains filtered or unexported methods
}

type RotateWebhookSecretUnauthorized

type RotateWebhookSecretUnauthorized ErrorResponse

func (*RotateWebhookSecretUnauthorized) Decode

Decode decodes RotateWebhookSecretUnauthorized from json.

func (*RotateWebhookSecretUnauthorized) Encode

Encode encodes RotateWebhookSecretUnauthorized as json.

func (*RotateWebhookSecretUnauthorized) MarshalJSON

func (s *RotateWebhookSecretUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RotateWebhookSecretUnauthorized) UnmarshalJSON

func (s *RotateWebhookSecretUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RotateWebhookSecretUnauthorized) Validate

func (s *RotateWebhookSecretUnauthorized) Validate() error

type Route

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

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationGroup

func (r Route) OperationGroup() string

OperationGroup returns the x-ogen-operation-group value.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type SecurityHandler

type SecurityHandler interface {
	// HandleBearerAuth handles BearerAuth security.
	// API key with `prim_` prefix: `Authorization: Bearer prim_<key>`.
	HandleBearerAuth(ctx context.Context, operationName OperationName, t BearerAuth) (context.Context, error)
	// HandleDownloadToken handles DownloadToken security.
	// Signed download token provided in webhook payloads.
	HandleDownloadToken(ctx context.Context, operationName OperationName, t DownloadToken) (context.Context, error)
}

SecurityHandler is handler for security parameters.

type SecuritySource

type SecuritySource interface {
	// BearerAuth provides BearerAuth security value.
	// API key with `prim_` prefix: `Authorization: Bearer prim_<key>`.
	BearerAuth(ctx context.Context, operationName OperationName) (BearerAuth, error)
	// DownloadToken provides DownloadToken security value.
	// Signed download token provided in webhook payloads.
	DownloadToken(ctx context.Context, operationName OperationName) (DownloadToken, error)
}

SecuritySource is provider of security values (tokens, passwords, etc.).

type Server

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

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, sec SecurityHandler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type StaticTokenSource

type StaticTokenSource struct {
	APIKey             string
	DownloadTokenValue string
}

func NewStaticTokenSource

func NewStaticTokenSource(apiKey string, downloadToken string) StaticTokenSource

func (StaticTokenSource) BearerAuth

func (StaticTokenSource) DownloadToken

type StorageStats

type StorageStats struct {
	// Total storage used in bytes.
	UsedBytes int `json:"used_bytes"`
	// Total storage used in kilobytes (1 decimal).
	UsedKB float64 `json:"used_kb"`
	// Total storage used in megabytes (2 decimals).
	UsedMB float64 `json:"used_mb"`
	// Storage quota in megabytes (based on plan).
	QuotaMB float64 `json:"quota_mb"`
	// Percentage of quota used (1 decimal).
	Percentage float64 `json:"percentage"`
	// Number of stored emails.
	EmailsCount int `json:"emails_count"`
}

Ref: #/components/schemas/StorageStats

func (*StorageStats) Decode

func (s *StorageStats) Decode(d *jx.Decoder) error

Decode decodes StorageStats from json.

func (*StorageStats) Encode

func (s *StorageStats) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StorageStats) GetEmailsCount

func (s *StorageStats) GetEmailsCount() int

GetEmailsCount returns the value of EmailsCount.

func (*StorageStats) GetPercentage

func (s *StorageStats) GetPercentage() float64

GetPercentage returns the value of Percentage.

func (*StorageStats) GetQuotaMB

func (s *StorageStats) GetQuotaMB() float64

GetQuotaMB returns the value of QuotaMB.

func (*StorageStats) GetUsedBytes

func (s *StorageStats) GetUsedBytes() int

GetUsedBytes returns the value of UsedBytes.

func (*StorageStats) GetUsedKB

func (s *StorageStats) GetUsedKB() float64

GetUsedKB returns the value of UsedKB.

func (*StorageStats) GetUsedMB

func (s *StorageStats) GetUsedMB() float64

GetUsedMB returns the value of UsedMB.

func (*StorageStats) MarshalJSON

func (s *StorageStats) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StorageStats) SetEmailsCount

func (s *StorageStats) SetEmailsCount(val int)

SetEmailsCount sets the value of EmailsCount.

func (*StorageStats) SetPercentage

func (s *StorageStats) SetPercentage(val float64)

SetPercentage sets the value of Percentage.

func (*StorageStats) SetQuotaMB

func (s *StorageStats) SetQuotaMB(val float64)

SetQuotaMB sets the value of QuotaMB.

func (*StorageStats) SetUsedBytes

func (s *StorageStats) SetUsedBytes(val int)

SetUsedBytes sets the value of UsedBytes.

func (*StorageStats) SetUsedKB

func (s *StorageStats) SetUsedKB(val float64)

SetUsedKB sets the value of UsedKB.

func (*StorageStats) SetUsedMB

func (s *StorageStats) SetUsedMB(val float64)

SetUsedMB sets the value of UsedMB.

func (*StorageStats) UnmarshalJSON

func (s *StorageStats) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StorageStats) Validate

func (s *StorageStats) Validate() error

type TestEndpointBadRequest

type TestEndpointBadRequest ErrorResponse

func (*TestEndpointBadRequest) Decode

func (s *TestEndpointBadRequest) Decode(d *jx.Decoder) error

Decode decodes TestEndpointBadRequest from json.

func (*TestEndpointBadRequest) Encode

func (s *TestEndpointBadRequest) Encode(e *jx.Encoder)

Encode encodes TestEndpointBadRequest as json.

func (*TestEndpointBadRequest) MarshalJSON

func (s *TestEndpointBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TestEndpointBadRequest) UnmarshalJSON

func (s *TestEndpointBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TestEndpointBadRequest) Validate

func (s *TestEndpointBadRequest) Validate() error

type TestEndpointNotFound

type TestEndpointNotFound ErrorResponse

func (*TestEndpointNotFound) Decode

func (s *TestEndpointNotFound) Decode(d *jx.Decoder) error

Decode decodes TestEndpointNotFound from json.

func (*TestEndpointNotFound) Encode

func (s *TestEndpointNotFound) Encode(e *jx.Encoder)

Encode encodes TestEndpointNotFound as json.

func (*TestEndpointNotFound) MarshalJSON

func (s *TestEndpointNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TestEndpointNotFound) UnmarshalJSON

func (s *TestEndpointNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TestEndpointNotFound) Validate

func (s *TestEndpointNotFound) Validate() error

type TestEndpointOK

type TestEndpointOK struct {
	Success bool       `json:"success"`
	Data    TestResult `json:"data"`
}

Merged schema.

func (*TestEndpointOK) Decode

func (s *TestEndpointOK) Decode(d *jx.Decoder) error

Decode decodes TestEndpointOK from json.

func (*TestEndpointOK) Encode

func (s *TestEndpointOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TestEndpointOK) GetData

func (s *TestEndpointOK) GetData() TestResult

GetData returns the value of Data.

func (*TestEndpointOK) GetSuccess

func (s *TestEndpointOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*TestEndpointOK) MarshalJSON

func (s *TestEndpointOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TestEndpointOK) SetData

func (s *TestEndpointOK) SetData(val TestResult)

SetData sets the value of Data.

func (*TestEndpointOK) SetSuccess

func (s *TestEndpointOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*TestEndpointOK) UnmarshalJSON

func (s *TestEndpointOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TestEndpointParams

type TestEndpointParams struct {
	// Resource UUID.
	ID uuid.UUID
}

TestEndpointParams is parameters of testEndpoint operation.

type TestEndpointRes

type TestEndpointRes interface {
	// contains filtered or unexported methods
}

type TestEndpointUnauthorized

type TestEndpointUnauthorized ErrorResponse

func (*TestEndpointUnauthorized) Decode

func (s *TestEndpointUnauthorized) Decode(d *jx.Decoder) error

Decode decodes TestEndpointUnauthorized from json.

func (*TestEndpointUnauthorized) Encode

func (s *TestEndpointUnauthorized) Encode(e *jx.Encoder)

Encode encodes TestEndpointUnauthorized as json.

func (*TestEndpointUnauthorized) MarshalJSON

func (s *TestEndpointUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TestEndpointUnauthorized) UnmarshalJSON

func (s *TestEndpointUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TestEndpointUnauthorized) Validate

func (s *TestEndpointUnauthorized) Validate() error

type TestResult

type TestResult struct {
	// HTTP status code returned by the endpoint.
	Status int `json:"status"`
	// Response body (truncated to 1000 characters).
	Body string `json:"body"`
	// The signature header value sent (if webhook secret is configured).
	Signature OptString `json:"signature"`
}

Ref: #/components/schemas/TestResult

func (*TestResult) Decode

func (s *TestResult) Decode(d *jx.Decoder) error

Decode decodes TestResult from json.

func (*TestResult) Encode

func (s *TestResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TestResult) GetBody

func (s *TestResult) GetBody() string

GetBody returns the value of Body.

func (*TestResult) GetSignature

func (s *TestResult) GetSignature() OptString

GetSignature returns the value of Signature.

func (*TestResult) GetStatus

func (s *TestResult) GetStatus() int

GetStatus returns the value of Status.

func (*TestResult) MarshalJSON

func (s *TestResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TestResult) SetBody

func (s *TestResult) SetBody(val string)

SetBody sets the value of Body.

func (*TestResult) SetSignature

func (s *TestResult) SetSignature(val OptString)

SetSignature sets the value of Signature.

func (*TestResult) SetStatus

func (s *TestResult) SetStatus(val int)

SetStatus sets the value of Status.

func (*TestResult) UnmarshalJSON

func (s *TestResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) AddDomain

AddDomain implements addDomain operation.

Creates an unverified domain claim. You will receive a `verification_token` to add as a DNS TXT record before calling the verify endpoint.

POST /domains

func (UnimplementedHandler) CreateEndpoint

CreateEndpoint implements createEndpoint operation.

Creates a new webhook endpoint. If a deactivated endpoint with the same URL and domain exists, it is reactivated instead. Subject to plan limits on the number of active endpoints.

POST /endpoints

func (UnimplementedHandler) CreateFilter

CreateFilter implements createFilter operation.

Creates a new whitelist or blocklist filter. Per-domain filters require a Pro plan. Patterns are stored as lowercase.

POST /filters

func (UnimplementedHandler) DeleteDomain

DeleteDomain implements deleteDomain operation.

Deletes a verified or unverified domain claim.

DELETE /domains/{id}

func (UnimplementedHandler) DeleteEmail

DeleteEmail implements deleteEmail operation.

Delete an email.

DELETE /emails/{id}

func (UnimplementedHandler) DeleteEndpoint

DeleteEndpoint implements deleteEndpoint operation.

Soft-deletes a webhook endpoint. The endpoint will no longer receive webhook deliveries.

DELETE /endpoints/{id}

func (UnimplementedHandler) DeleteFilter

DeleteFilter implements deleteFilter operation.

Delete a filter rule.

DELETE /filters/{id}

func (UnimplementedHandler) DownloadAttachments

DownloadAttachments implements downloadAttachments operation.

Downloads all attachments as a gzip-compressed tar archive. Authenticates via a signed download token (provided in webhook payloads) or a valid session.

GET /emails/{id}/attachments.tar.gz

func (UnimplementedHandler) DownloadRawEmail

DownloadRawEmail implements downloadRawEmail operation.

Downloads the raw RFC 822 email file (.eml). Authenticates via a signed download token (provided in webhook payloads) or a valid session.

GET /emails/{id}/raw

func (UnimplementedHandler) GetAccount

func (UnimplementedHandler) GetAccount(ctx context.Context) (r GetAccountRes, _ error)

GetAccount implements getAccount operation.

Get account info.

GET /account

func (UnimplementedHandler) GetEmail

func (UnimplementedHandler) GetEmail(ctx context.Context, params GetEmailParams) (r GetEmailRes, _ error)

GetEmail implements getEmail operation.

Get email details.

GET /emails/{id}

func (UnimplementedHandler) GetStorageStats

func (UnimplementedHandler) GetStorageStats(ctx context.Context) (r GetStorageStatsRes, _ error)

GetStorageStats implements getStorageStats operation.

Get storage usage.

GET /account/storage

func (UnimplementedHandler) GetWebhookSecret

func (UnimplementedHandler) GetWebhookSecret(ctx context.Context) (r GetWebhookSecretRes, _ error)

GetWebhookSecret implements getWebhookSecret operation.

Returns the webhook signing secret for your account. If no secret exists yet, one is generated automatically on first access.

GET /account/webhook-secret

func (UnimplementedHandler) ListDeliveries

ListDeliveries implements listDeliveries operation.

Returns a paginated list of webhook delivery attempts. Each delivery includes a nested `email` object with sender, recipient, and subject.

GET /webhooks/deliveries

func (UnimplementedHandler) ListDomains

func (UnimplementedHandler) ListDomains(ctx context.Context) (r ListDomainsRes, _ error)

ListDomains implements listDomains operation.

Returns all verified and unverified domains for your organization, sorted by creation date (newest first). Each domain includes a `verified` boolean to distinguish between the two states.

GET /domains

func (UnimplementedHandler) ListEmails

ListEmails implements listEmails operation.

Returns a paginated list of received emails. Supports filtering by domain, status, date range, and free-text search across subject, sender, and recipient fields.

GET /emails

func (UnimplementedHandler) ListEndpoints

func (UnimplementedHandler) ListEndpoints(ctx context.Context) (r ListEndpointsRes, _ error)

ListEndpoints implements listEndpoints operation.

Returns all active (non-deleted) webhook endpoints.

GET /endpoints

func (UnimplementedHandler) ListFilters

func (UnimplementedHandler) ListFilters(ctx context.Context) (r ListFiltersRes, _ error)

ListFilters implements listFilters operation.

Returns all whitelist and blocklist filter rules.

GET /filters

func (UnimplementedHandler) ReplayDelivery

ReplayDelivery implements replayDelivery operation.

Re-sends the stored webhook payload from a previous delivery attempt. If the original endpoint is still active, it is targeted. If the original endpoint was deleted, the oldest active endpoint is used. Deactivated endpoints cannot be replayed to. Rate limited per-org, sharing an org-wide budget with email replays.

POST /webhooks/deliveries/{id}/replay

func (UnimplementedHandler) ReplayEmailWebhooks

ReplayEmailWebhooks implements replayEmailWebhooks operation.

Re-delivers the webhook payload for this email to all active endpoints matching the email's domain. Rate limited per-email (short cooldown between successive replays of the same email) and per-org (burst + sustained windows), sharing an org-wide budget with delivery replays.

POST /emails/{id}/replay

func (UnimplementedHandler) RotateWebhookSecret

func (UnimplementedHandler) RotateWebhookSecret(ctx context.Context) (r RotateWebhookSecretRes, _ error)

RotateWebhookSecret implements rotateWebhookSecret operation.

Generates a new webhook signing secret, replacing the current one. Rate limited to once per 60 minutes.

POST /account/webhook-secret/rotate

func (UnimplementedHandler) TestEndpoint

TestEndpoint implements testEndpoint operation.

Sends a sample `email.received` event to the endpoint. The request includes SSRF protection (private IP rejection and DNS pinning). Rate limited to 4 per minute and 30 per hour (non-exempt). Successful deliveries and verified-domain endpoints are exempt from the rate limit.

POST /endpoints/{id}/test

func (UnimplementedHandler) UpdateAccount

UpdateAccount implements updateAccount operation.

Update account settings.

PATCH /account

func (UnimplementedHandler) UpdateDomain

UpdateDomain implements updateDomain operation.

Update a verified domain's settings. Only verified domains can be updated. Per-domain spam thresholds require a Pro plan.

PATCH /domains/{id}

func (UnimplementedHandler) UpdateEndpoint

UpdateEndpoint implements updateEndpoint operation.

Updates an active webhook endpoint. If the URL is changed, the old endpoint is deactivated and a new one is created (or an existing deactivated endpoint with the new URL is reactivated).

PATCH /endpoints/{id}

func (UnimplementedHandler) UpdateFilter

UpdateFilter implements updateFilter operation.

Toggle a filter's enabled state.

PATCH /filters/{id}

func (UnimplementedHandler) VerifyDomain

VerifyDomain implements verifyDomain operation.

Checks DNS records (MX and TXT) to verify domain ownership. On success, the domain is promoted from unverified to verified. On failure, returns which checks passed and which failed.

POST /domains/{id}/verify

type UnverifiedDomain

type UnverifiedDomain struct {
	ID       uuid.UUID `json:"id"`
	OrgID    uuid.UUID `json:"org_id"`
	Domain   string    `json:"domain"`
	Verified bool      `json:"verified"`
	// Add this value as a TXT record to verify ownership.
	VerificationToken string    `json:"verification_token"`
	CreatedAt         time.Time `json:"created_at"`
}

Ref: #/components/schemas/UnverifiedDomain

func (*UnverifiedDomain) Decode

func (s *UnverifiedDomain) Decode(d *jx.Decoder) error

Decode decodes UnverifiedDomain from json.

func (*UnverifiedDomain) Encode

func (s *UnverifiedDomain) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UnverifiedDomain) GetCreatedAt

func (s *UnverifiedDomain) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*UnverifiedDomain) GetDomain

func (s *UnverifiedDomain) GetDomain() string

GetDomain returns the value of Domain.

func (*UnverifiedDomain) GetID

func (s *UnverifiedDomain) GetID() uuid.UUID

GetID returns the value of ID.

func (*UnverifiedDomain) GetOrgID

func (s *UnverifiedDomain) GetOrgID() uuid.UUID

GetOrgID returns the value of OrgID.

func (*UnverifiedDomain) GetVerificationToken

func (s *UnverifiedDomain) GetVerificationToken() string

GetVerificationToken returns the value of VerificationToken.

func (*UnverifiedDomain) GetVerified

func (s *UnverifiedDomain) GetVerified() bool

GetVerified returns the value of Verified.

func (*UnverifiedDomain) MarshalJSON

func (s *UnverifiedDomain) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UnverifiedDomain) SetCreatedAt

func (s *UnverifiedDomain) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*UnverifiedDomain) SetDomain

func (s *UnverifiedDomain) SetDomain(val string)

SetDomain sets the value of Domain.

func (*UnverifiedDomain) SetID

func (s *UnverifiedDomain) SetID(val uuid.UUID)

SetID sets the value of ID.

func (*UnverifiedDomain) SetOrgID

func (s *UnverifiedDomain) SetOrgID(val uuid.UUID)

SetOrgID sets the value of OrgID.

func (*UnverifiedDomain) SetVerificationToken

func (s *UnverifiedDomain) SetVerificationToken(val string)

SetVerificationToken sets the value of VerificationToken.

func (*UnverifiedDomain) SetVerified

func (s *UnverifiedDomain) SetVerified(val bool)

SetVerified sets the value of Verified.

func (*UnverifiedDomain) UnmarshalJSON

func (s *UnverifiedDomain) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateAccountBadRequest

type UpdateAccountBadRequest ErrorResponse

func (*UpdateAccountBadRequest) Decode

func (s *UpdateAccountBadRequest) Decode(d *jx.Decoder) error

Decode decodes UpdateAccountBadRequest from json.

func (*UpdateAccountBadRequest) Encode

func (s *UpdateAccountBadRequest) Encode(e *jx.Encoder)

Encode encodes UpdateAccountBadRequest as json.

func (*UpdateAccountBadRequest) MarshalJSON

func (s *UpdateAccountBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateAccountBadRequest) UnmarshalJSON

func (s *UpdateAccountBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateAccountBadRequest) Validate

func (s *UpdateAccountBadRequest) Validate() error

type UpdateAccountInput

type UpdateAccountInput struct {
	// Global spam score threshold (0-15). Emails scoring above this are rejected. Set to null to disable.
	SpamThreshold OptNilFloat64 `json:"spam_threshold"`
	// Whether to discard email content after the webhook endpoint confirms receipt.
	DiscardContentOnWebhookConfirmed OptBool `json:"discard_content_on_webhook_confirmed"`
}

Ref: #/components/schemas/UpdateAccountInput

func (*UpdateAccountInput) Decode

func (s *UpdateAccountInput) Decode(d *jx.Decoder) error

Decode decodes UpdateAccountInput from json.

func (*UpdateAccountInput) Encode

func (s *UpdateAccountInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateAccountInput) GetDiscardContentOnWebhookConfirmed

func (s *UpdateAccountInput) GetDiscardContentOnWebhookConfirmed() OptBool

GetDiscardContentOnWebhookConfirmed returns the value of DiscardContentOnWebhookConfirmed.

func (*UpdateAccountInput) GetSpamThreshold

func (s *UpdateAccountInput) GetSpamThreshold() OptNilFloat64

GetSpamThreshold returns the value of SpamThreshold.

func (*UpdateAccountInput) MarshalJSON

func (s *UpdateAccountInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateAccountInput) SetDiscardContentOnWebhookConfirmed

func (s *UpdateAccountInput) SetDiscardContentOnWebhookConfirmed(val OptBool)

SetDiscardContentOnWebhookConfirmed sets the value of DiscardContentOnWebhookConfirmed.

func (*UpdateAccountInput) SetSpamThreshold

func (s *UpdateAccountInput) SetSpamThreshold(val OptNilFloat64)

SetSpamThreshold sets the value of SpamThreshold.

func (*UpdateAccountInput) UnmarshalJSON

func (s *UpdateAccountInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateAccountInput) Validate

func (s *UpdateAccountInput) Validate() error

type UpdateAccountNotFound

type UpdateAccountNotFound ErrorResponse

func (*UpdateAccountNotFound) Decode

func (s *UpdateAccountNotFound) Decode(d *jx.Decoder) error

Decode decodes UpdateAccountNotFound from json.

func (*UpdateAccountNotFound) Encode

func (s *UpdateAccountNotFound) Encode(e *jx.Encoder)

Encode encodes UpdateAccountNotFound as json.

func (*UpdateAccountNotFound) MarshalJSON

func (s *UpdateAccountNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateAccountNotFound) UnmarshalJSON

func (s *UpdateAccountNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateAccountNotFound) Validate

func (s *UpdateAccountNotFound) Validate() error

type UpdateAccountOK

type UpdateAccountOK struct {
	Success bool           `json:"success"`
	Data    AccountUpdated `json:"data"`
}

Merged schema.

func (*UpdateAccountOK) Decode

func (s *UpdateAccountOK) Decode(d *jx.Decoder) error

Decode decodes UpdateAccountOK from json.

func (*UpdateAccountOK) Encode

func (s *UpdateAccountOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateAccountOK) GetData

func (s *UpdateAccountOK) GetData() AccountUpdated

GetData returns the value of Data.

func (*UpdateAccountOK) GetSuccess

func (s *UpdateAccountOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*UpdateAccountOK) MarshalJSON

func (s *UpdateAccountOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateAccountOK) SetData

func (s *UpdateAccountOK) SetData(val AccountUpdated)

SetData sets the value of Data.

func (*UpdateAccountOK) SetSuccess

func (s *UpdateAccountOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*UpdateAccountOK) UnmarshalJSON

func (s *UpdateAccountOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateAccountOK) Validate

func (s *UpdateAccountOK) Validate() error

type UpdateAccountRes

type UpdateAccountRes interface {
	// contains filtered or unexported methods
}

type UpdateAccountUnauthorized

type UpdateAccountUnauthorized ErrorResponse

func (*UpdateAccountUnauthorized) Decode

func (s *UpdateAccountUnauthorized) Decode(d *jx.Decoder) error

Decode decodes UpdateAccountUnauthorized from json.

func (*UpdateAccountUnauthorized) Encode

func (s *UpdateAccountUnauthorized) Encode(e *jx.Encoder)

Encode encodes UpdateAccountUnauthorized as json.

func (*UpdateAccountUnauthorized) MarshalJSON

func (s *UpdateAccountUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateAccountUnauthorized) UnmarshalJSON

func (s *UpdateAccountUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateAccountUnauthorized) Validate

func (s *UpdateAccountUnauthorized) Validate() error

type UpdateDomainBadRequest

type UpdateDomainBadRequest ErrorResponse

func (*UpdateDomainBadRequest) Decode

func (s *UpdateDomainBadRequest) Decode(d *jx.Decoder) error

Decode decodes UpdateDomainBadRequest from json.

func (*UpdateDomainBadRequest) Encode

func (s *UpdateDomainBadRequest) Encode(e *jx.Encoder)

Encode encodes UpdateDomainBadRequest as json.

func (*UpdateDomainBadRequest) MarshalJSON

func (s *UpdateDomainBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateDomainBadRequest) UnmarshalJSON

func (s *UpdateDomainBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateDomainBadRequest) Validate

func (s *UpdateDomainBadRequest) Validate() error

type UpdateDomainInput

type UpdateDomainInput struct {
	// Whether the domain accepts incoming emails.
	IsActive OptBool `json:"is_active"`
	// Per-domain spam threshold override (Pro plan required).
	SpamThreshold OptNilFloat64 `json:"spam_threshold"`
}

Ref: #/components/schemas/UpdateDomainInput

func (*UpdateDomainInput) Decode

func (s *UpdateDomainInput) Decode(d *jx.Decoder) error

Decode decodes UpdateDomainInput from json.

func (*UpdateDomainInput) Encode

func (s *UpdateDomainInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateDomainInput) GetIsActive

func (s *UpdateDomainInput) GetIsActive() OptBool

GetIsActive returns the value of IsActive.

func (*UpdateDomainInput) GetSpamThreshold

func (s *UpdateDomainInput) GetSpamThreshold() OptNilFloat64

GetSpamThreshold returns the value of SpamThreshold.

func (*UpdateDomainInput) MarshalJSON

func (s *UpdateDomainInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateDomainInput) SetIsActive

func (s *UpdateDomainInput) SetIsActive(val OptBool)

SetIsActive sets the value of IsActive.

func (*UpdateDomainInput) SetSpamThreshold

func (s *UpdateDomainInput) SetSpamThreshold(val OptNilFloat64)

SetSpamThreshold sets the value of SpamThreshold.

func (*UpdateDomainInput) UnmarshalJSON

func (s *UpdateDomainInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateDomainInput) Validate

func (s *UpdateDomainInput) Validate() error

type UpdateDomainNotFound

type UpdateDomainNotFound ErrorResponse

func (*UpdateDomainNotFound) Decode

func (s *UpdateDomainNotFound) Decode(d *jx.Decoder) error

Decode decodes UpdateDomainNotFound from json.

func (*UpdateDomainNotFound) Encode

func (s *UpdateDomainNotFound) Encode(e *jx.Encoder)

Encode encodes UpdateDomainNotFound as json.

func (*UpdateDomainNotFound) MarshalJSON

func (s *UpdateDomainNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateDomainNotFound) UnmarshalJSON

func (s *UpdateDomainNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateDomainNotFound) Validate

func (s *UpdateDomainNotFound) Validate() error

type UpdateDomainOK

type UpdateDomainOK struct {
	Success bool           `json:"success"`
	Data    VerifiedDomain `json:"data"`
}

Merged schema.

func (*UpdateDomainOK) Decode

func (s *UpdateDomainOK) Decode(d *jx.Decoder) error

Decode decodes UpdateDomainOK from json.

func (*UpdateDomainOK) Encode

func (s *UpdateDomainOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateDomainOK) GetData

func (s *UpdateDomainOK) GetData() VerifiedDomain

GetData returns the value of Data.

func (*UpdateDomainOK) GetSuccess

func (s *UpdateDomainOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*UpdateDomainOK) MarshalJSON

func (s *UpdateDomainOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateDomainOK) SetData

func (s *UpdateDomainOK) SetData(val VerifiedDomain)

SetData sets the value of Data.

func (*UpdateDomainOK) SetSuccess

func (s *UpdateDomainOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*UpdateDomainOK) UnmarshalJSON

func (s *UpdateDomainOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateDomainOK) Validate

func (s *UpdateDomainOK) Validate() error

type UpdateDomainParams

type UpdateDomainParams struct {
	// Resource UUID.
	ID uuid.UUID
}

UpdateDomainParams is parameters of updateDomain operation.

type UpdateDomainRes

type UpdateDomainRes interface {
	// contains filtered or unexported methods
}

type UpdateDomainUnauthorized

type UpdateDomainUnauthorized ErrorResponse

func (*UpdateDomainUnauthorized) Decode

func (s *UpdateDomainUnauthorized) Decode(d *jx.Decoder) error

Decode decodes UpdateDomainUnauthorized from json.

func (*UpdateDomainUnauthorized) Encode

func (s *UpdateDomainUnauthorized) Encode(e *jx.Encoder)

Encode encodes UpdateDomainUnauthorized as json.

func (*UpdateDomainUnauthorized) MarshalJSON

func (s *UpdateDomainUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateDomainUnauthorized) UnmarshalJSON

func (s *UpdateDomainUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateDomainUnauthorized) Validate

func (s *UpdateDomainUnauthorized) Validate() error

type UpdateEndpointBadRequest

type UpdateEndpointBadRequest ErrorResponse

func (*UpdateEndpointBadRequest) Decode

func (s *UpdateEndpointBadRequest) Decode(d *jx.Decoder) error

Decode decodes UpdateEndpointBadRequest from json.

func (*UpdateEndpointBadRequest) Encode

func (s *UpdateEndpointBadRequest) Encode(e *jx.Encoder)

Encode encodes UpdateEndpointBadRequest as json.

func (*UpdateEndpointBadRequest) MarshalJSON

func (s *UpdateEndpointBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateEndpointBadRequest) UnmarshalJSON

func (s *UpdateEndpointBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateEndpointBadRequest) Validate

func (s *UpdateEndpointBadRequest) Validate() error

type UpdateEndpointInput

type UpdateEndpointInput struct {
	// New webhook URL (triggers endpoint rotation).
	URL      OptString                 `json:"url"`
	Enabled  OptBool                   `json:"enabled"`
	DomainID OptNilUUID                `json:"domain_id"`
	Rules    *UpdateEndpointInputRules `json:"rules"`
}

Ref: #/components/schemas/UpdateEndpointInput

func (*UpdateEndpointInput) Decode

func (s *UpdateEndpointInput) Decode(d *jx.Decoder) error

Decode decodes UpdateEndpointInput from json.

func (*UpdateEndpointInput) Encode

func (s *UpdateEndpointInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateEndpointInput) GetDomainID

func (s *UpdateEndpointInput) GetDomainID() OptNilUUID

GetDomainID returns the value of DomainID.

func (*UpdateEndpointInput) GetEnabled

func (s *UpdateEndpointInput) GetEnabled() OptBool

GetEnabled returns the value of Enabled.

func (*UpdateEndpointInput) GetRules

GetRules returns the value of Rules.

func (*UpdateEndpointInput) GetURL

func (s *UpdateEndpointInput) GetURL() OptString

GetURL returns the value of URL.

func (*UpdateEndpointInput) MarshalJSON

func (s *UpdateEndpointInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateEndpointInput) SetDomainID

func (s *UpdateEndpointInput) SetDomainID(val OptNilUUID)

SetDomainID sets the value of DomainID.

func (*UpdateEndpointInput) SetEnabled

func (s *UpdateEndpointInput) SetEnabled(val OptBool)

SetEnabled sets the value of Enabled.

func (*UpdateEndpointInput) SetRules

SetRules sets the value of Rules.

func (*UpdateEndpointInput) SetURL

func (s *UpdateEndpointInput) SetURL(val OptString)

SetURL sets the value of URL.

func (*UpdateEndpointInput) UnmarshalJSON

func (s *UpdateEndpointInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateEndpointInput) Validate

func (s *UpdateEndpointInput) Validate() error

type UpdateEndpointInputRules

type UpdateEndpointInputRules struct{}

func (*UpdateEndpointInputRules) Decode

func (s *UpdateEndpointInputRules) Decode(d *jx.Decoder) error

Decode decodes UpdateEndpointInputRules from json.

func (*UpdateEndpointInputRules) Encode

func (s *UpdateEndpointInputRules) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateEndpointInputRules) MarshalJSON

func (s *UpdateEndpointInputRules) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateEndpointInputRules) UnmarshalJSON

func (s *UpdateEndpointInputRules) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateEndpointNotFound

type UpdateEndpointNotFound ErrorResponse

func (*UpdateEndpointNotFound) Decode

func (s *UpdateEndpointNotFound) Decode(d *jx.Decoder) error

Decode decodes UpdateEndpointNotFound from json.

func (*UpdateEndpointNotFound) Encode

func (s *UpdateEndpointNotFound) Encode(e *jx.Encoder)

Encode encodes UpdateEndpointNotFound as json.

func (*UpdateEndpointNotFound) MarshalJSON

func (s *UpdateEndpointNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateEndpointNotFound) UnmarshalJSON

func (s *UpdateEndpointNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateEndpointNotFound) Validate

func (s *UpdateEndpointNotFound) Validate() error

type UpdateEndpointOK

type UpdateEndpointOK struct {
	Success bool     `json:"success"`
	Data    Endpoint `json:"data"`
}

Merged schema.

func (*UpdateEndpointOK) Decode

func (s *UpdateEndpointOK) Decode(d *jx.Decoder) error

Decode decodes UpdateEndpointOK from json.

func (*UpdateEndpointOK) Encode

func (s *UpdateEndpointOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateEndpointOK) GetData

func (s *UpdateEndpointOK) GetData() Endpoint

GetData returns the value of Data.

func (*UpdateEndpointOK) GetSuccess

func (s *UpdateEndpointOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*UpdateEndpointOK) MarshalJSON

func (s *UpdateEndpointOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateEndpointOK) SetData

func (s *UpdateEndpointOK) SetData(val Endpoint)

SetData sets the value of Data.

func (*UpdateEndpointOK) SetSuccess

func (s *UpdateEndpointOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*UpdateEndpointOK) UnmarshalJSON

func (s *UpdateEndpointOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateEndpointParams

type UpdateEndpointParams struct {
	// Resource UUID.
	ID uuid.UUID
}

UpdateEndpointParams is parameters of updateEndpoint operation.

type UpdateEndpointRes

type UpdateEndpointRes interface {
	// contains filtered or unexported methods
}

type UpdateEndpointUnauthorized

type UpdateEndpointUnauthorized ErrorResponse

func (*UpdateEndpointUnauthorized) Decode

Decode decodes UpdateEndpointUnauthorized from json.

func (*UpdateEndpointUnauthorized) Encode

func (s *UpdateEndpointUnauthorized) Encode(e *jx.Encoder)

Encode encodes UpdateEndpointUnauthorized as json.

func (*UpdateEndpointUnauthorized) MarshalJSON

func (s *UpdateEndpointUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateEndpointUnauthorized) UnmarshalJSON

func (s *UpdateEndpointUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateEndpointUnauthorized) Validate

func (s *UpdateEndpointUnauthorized) Validate() error

type UpdateFilterBadRequest

type UpdateFilterBadRequest ErrorResponse

func (*UpdateFilterBadRequest) Decode

func (s *UpdateFilterBadRequest) Decode(d *jx.Decoder) error

Decode decodes UpdateFilterBadRequest from json.

func (*UpdateFilterBadRequest) Encode

func (s *UpdateFilterBadRequest) Encode(e *jx.Encoder)

Encode encodes UpdateFilterBadRequest as json.

func (*UpdateFilterBadRequest) MarshalJSON

func (s *UpdateFilterBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateFilterBadRequest) UnmarshalJSON

func (s *UpdateFilterBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateFilterBadRequest) Validate

func (s *UpdateFilterBadRequest) Validate() error

type UpdateFilterInput

type UpdateFilterInput struct {
	Enabled bool `json:"enabled"`
}

Ref: #/components/schemas/UpdateFilterInput

func (*UpdateFilterInput) Decode

func (s *UpdateFilterInput) Decode(d *jx.Decoder) error

Decode decodes UpdateFilterInput from json.

func (*UpdateFilterInput) Encode

func (s *UpdateFilterInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateFilterInput) GetEnabled

func (s *UpdateFilterInput) GetEnabled() bool

GetEnabled returns the value of Enabled.

func (*UpdateFilterInput) MarshalJSON

func (s *UpdateFilterInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateFilterInput) SetEnabled

func (s *UpdateFilterInput) SetEnabled(val bool)

SetEnabled sets the value of Enabled.

func (*UpdateFilterInput) UnmarshalJSON

func (s *UpdateFilterInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateFilterNotFound

type UpdateFilterNotFound ErrorResponse

func (*UpdateFilterNotFound) Decode

func (s *UpdateFilterNotFound) Decode(d *jx.Decoder) error

Decode decodes UpdateFilterNotFound from json.

func (*UpdateFilterNotFound) Encode

func (s *UpdateFilterNotFound) Encode(e *jx.Encoder)

Encode encodes UpdateFilterNotFound as json.

func (*UpdateFilterNotFound) MarshalJSON

func (s *UpdateFilterNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateFilterNotFound) UnmarshalJSON

func (s *UpdateFilterNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateFilterNotFound) Validate

func (s *UpdateFilterNotFound) Validate() error

type UpdateFilterOK

type UpdateFilterOK struct {
	Success bool   `json:"success"`
	Data    Filter `json:"data"`
}

Merged schema.

func (*UpdateFilterOK) Decode

func (s *UpdateFilterOK) Decode(d *jx.Decoder) error

Decode decodes UpdateFilterOK from json.

func (*UpdateFilterOK) Encode

func (s *UpdateFilterOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateFilterOK) GetData

func (s *UpdateFilterOK) GetData() Filter

GetData returns the value of Data.

func (*UpdateFilterOK) GetSuccess

func (s *UpdateFilterOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*UpdateFilterOK) MarshalJSON

func (s *UpdateFilterOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateFilterOK) SetData

func (s *UpdateFilterOK) SetData(val Filter)

SetData sets the value of Data.

func (*UpdateFilterOK) SetSuccess

func (s *UpdateFilterOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*UpdateFilterOK) UnmarshalJSON

func (s *UpdateFilterOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateFilterOK) Validate

func (s *UpdateFilterOK) Validate() error

type UpdateFilterParams

type UpdateFilterParams struct {
	// Resource UUID.
	ID uuid.UUID
}

UpdateFilterParams is parameters of updateFilter operation.

type UpdateFilterRes

type UpdateFilterRes interface {
	// contains filtered or unexported methods
}

type UpdateFilterUnauthorized

type UpdateFilterUnauthorized ErrorResponse

func (*UpdateFilterUnauthorized) Decode

func (s *UpdateFilterUnauthorized) Decode(d *jx.Decoder) error

Decode decodes UpdateFilterUnauthorized from json.

func (*UpdateFilterUnauthorized) Encode

func (s *UpdateFilterUnauthorized) Encode(e *jx.Encoder)

Encode encodes UpdateFilterUnauthorized as json.

func (*UpdateFilterUnauthorized) MarshalJSON

func (s *UpdateFilterUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateFilterUnauthorized) UnmarshalJSON

func (s *UpdateFilterUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateFilterUnauthorized) Validate

func (s *UpdateFilterUnauthorized) Validate() error

type VerifiedDomain

type VerifiedDomain struct {
	ID                uuid.UUID     `json:"id"`
	OrgID             uuid.UUID     `json:"org_id"`
	Domain            string        `json:"domain"`
	Verified          bool          `json:"verified"`
	IsActive          bool          `json:"is_active"`
	SpamThreshold     OptNilFloat64 `json:"spam_threshold"`
	VerificationToken OptNilString  `json:"verification_token"`
	CreatedAt         time.Time     `json:"created_at"`
}

Ref: #/components/schemas/VerifiedDomain

func (*VerifiedDomain) Decode

func (s *VerifiedDomain) Decode(d *jx.Decoder) error

Decode decodes VerifiedDomain from json.

func (*VerifiedDomain) Encode

func (s *VerifiedDomain) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VerifiedDomain) GetCreatedAt

func (s *VerifiedDomain) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*VerifiedDomain) GetDomain

func (s *VerifiedDomain) GetDomain() string

GetDomain returns the value of Domain.

func (*VerifiedDomain) GetID

func (s *VerifiedDomain) GetID() uuid.UUID

GetID returns the value of ID.

func (*VerifiedDomain) GetIsActive

func (s *VerifiedDomain) GetIsActive() bool

GetIsActive returns the value of IsActive.

func (*VerifiedDomain) GetOrgID

func (s *VerifiedDomain) GetOrgID() uuid.UUID

GetOrgID returns the value of OrgID.

func (*VerifiedDomain) GetSpamThreshold

func (s *VerifiedDomain) GetSpamThreshold() OptNilFloat64

GetSpamThreshold returns the value of SpamThreshold.

func (*VerifiedDomain) GetVerificationToken

func (s *VerifiedDomain) GetVerificationToken() OptNilString

GetVerificationToken returns the value of VerificationToken.

func (*VerifiedDomain) GetVerified

func (s *VerifiedDomain) GetVerified() bool

GetVerified returns the value of Verified.

func (*VerifiedDomain) MarshalJSON

func (s *VerifiedDomain) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifiedDomain) SetCreatedAt

func (s *VerifiedDomain) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*VerifiedDomain) SetDomain

func (s *VerifiedDomain) SetDomain(val string)

SetDomain sets the value of Domain.

func (*VerifiedDomain) SetID

func (s *VerifiedDomain) SetID(val uuid.UUID)

SetID sets the value of ID.

func (*VerifiedDomain) SetIsActive

func (s *VerifiedDomain) SetIsActive(val bool)

SetIsActive sets the value of IsActive.

func (*VerifiedDomain) SetOrgID

func (s *VerifiedDomain) SetOrgID(val uuid.UUID)

SetOrgID sets the value of OrgID.

func (*VerifiedDomain) SetSpamThreshold

func (s *VerifiedDomain) SetSpamThreshold(val OptNilFloat64)

SetSpamThreshold sets the value of SpamThreshold.

func (*VerifiedDomain) SetVerificationToken

func (s *VerifiedDomain) SetVerificationToken(val OptNilString)

SetVerificationToken sets the value of VerificationToken.

func (*VerifiedDomain) SetVerified

func (s *VerifiedDomain) SetVerified(val bool)

SetVerified sets the value of Verified.

func (*VerifiedDomain) UnmarshalJSON

func (s *VerifiedDomain) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifiedDomain) Validate

func (s *VerifiedDomain) Validate() error

type VerifyDomainBadRequest

type VerifyDomainBadRequest ErrorResponse

func (*VerifyDomainBadRequest) Decode

func (s *VerifyDomainBadRequest) Decode(d *jx.Decoder) error

Decode decodes VerifyDomainBadRequest from json.

func (*VerifyDomainBadRequest) Encode

func (s *VerifyDomainBadRequest) Encode(e *jx.Encoder)

Encode encodes VerifyDomainBadRequest as json.

func (*VerifyDomainBadRequest) MarshalJSON

func (s *VerifyDomainBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyDomainBadRequest) UnmarshalJSON

func (s *VerifyDomainBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyDomainBadRequest) Validate

func (s *VerifyDomainBadRequest) Validate() error

type VerifyDomainNotFound

type VerifyDomainNotFound ErrorResponse

func (*VerifyDomainNotFound) Decode

func (s *VerifyDomainNotFound) Decode(d *jx.Decoder) error

Decode decodes VerifyDomainNotFound from json.

func (*VerifyDomainNotFound) Encode

func (s *VerifyDomainNotFound) Encode(e *jx.Encoder)

Encode encodes VerifyDomainNotFound as json.

func (*VerifyDomainNotFound) MarshalJSON

func (s *VerifyDomainNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyDomainNotFound) UnmarshalJSON

func (s *VerifyDomainNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyDomainNotFound) Validate

func (s *VerifyDomainNotFound) Validate() error

type VerifyDomainOK

type VerifyDomainOK struct {
	Success bool               `json:"success"`
	Data    DomainVerifyResult `json:"data"`
}

Merged schema.

func (*VerifyDomainOK) Decode

func (s *VerifyDomainOK) Decode(d *jx.Decoder) error

Decode decodes VerifyDomainOK from json.

func (*VerifyDomainOK) Encode

func (s *VerifyDomainOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VerifyDomainOK) GetData

func (s *VerifyDomainOK) GetData() DomainVerifyResult

GetData returns the value of Data.

func (*VerifyDomainOK) GetSuccess

func (s *VerifyDomainOK) GetSuccess() bool

GetSuccess returns the value of Success.

func (*VerifyDomainOK) MarshalJSON

func (s *VerifyDomainOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyDomainOK) SetData

func (s *VerifyDomainOK) SetData(val DomainVerifyResult)

SetData sets the value of Data.

func (*VerifyDomainOK) SetSuccess

func (s *VerifyDomainOK) SetSuccess(val bool)

SetSuccess sets the value of Success.

func (*VerifyDomainOK) UnmarshalJSON

func (s *VerifyDomainOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VerifyDomainParams

type VerifyDomainParams struct {
	// Resource UUID.
	ID uuid.UUID
}

VerifyDomainParams is parameters of verifyDomain operation.

type VerifyDomainRes

type VerifyDomainRes interface {
	// contains filtered or unexported methods
}

type VerifyDomainUnauthorized

type VerifyDomainUnauthorized ErrorResponse

func (*VerifyDomainUnauthorized) Decode

func (s *VerifyDomainUnauthorized) Decode(d *jx.Decoder) error

Decode decodes VerifyDomainUnauthorized from json.

func (*VerifyDomainUnauthorized) Encode

func (s *VerifyDomainUnauthorized) Encode(e *jx.Encoder)

Encode encodes VerifyDomainUnauthorized as json.

func (*VerifyDomainUnauthorized) MarshalJSON

func (s *VerifyDomainUnauthorized) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VerifyDomainUnauthorized) UnmarshalJSON

func (s *VerifyDomainUnauthorized) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VerifyDomainUnauthorized) Validate

func (s *VerifyDomainUnauthorized) Validate() error

type WebhookSecret

type WebhookSecret struct {
	// The webhook signing secret value.
	Secret string `json:"secret"`
}

Ref: #/components/schemas/WebhookSecret

func (*WebhookSecret) Decode

func (s *WebhookSecret) Decode(d *jx.Decoder) error

Decode decodes WebhookSecret from json.

func (*WebhookSecret) Encode

func (s *WebhookSecret) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*WebhookSecret) GetSecret

func (s *WebhookSecret) GetSecret() string

GetSecret returns the value of Secret.

func (*WebhookSecret) MarshalJSON

func (s *WebhookSecret) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*WebhookSecret) SetSecret

func (s *WebhookSecret) SetSecret(val string)

SetSecret sets the value of Secret.

func (*WebhookSecret) UnmarshalJSON

func (s *WebhookSecret) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

Jump to

Keyboard shortcuts

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