generated

package
v0.0.0-...-89e479d Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommitDeliveryStatusPropagationRequest

func NewCommitDeliveryStatusPropagationRequest(server string, body CommitDeliveryStatusPropagationJSONRequestBody) (*http.Request, error)

NewCommitDeliveryStatusPropagationRequest calls the generic CommitDeliveryStatusPropagation builder with application/json body

func NewCommitDeliveryStatusPropagationRequestWithBody

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

NewCommitDeliveryStatusPropagationRequestWithBody constructs an http.Request for the CommitDeliveryStatusPropagation method, with any body, and a specified content type

func NewGetBatchRevisionCapabilitiesRequest

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

NewGetBatchRevisionCapabilitiesRequest constructs an http.Request for the GetBatchRevisionCapabilities method

func NewGetHealthRequest

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

NewGetHealthRequest constructs an http.Request for the GetHealth method

func NewGetMetricsRequest

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

NewGetMetricsRequest constructs an http.Request for the GetMetrics method

func NewGetReadinessRequest

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

NewGetReadinessRequest constructs an http.Request for the GetReadiness method

func NewHeadHealthRequest

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

NewHeadHealthRequest constructs an http.Request for the HeadHealth method

func NewHeadReadinessRequest

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

NewHeadReadinessRequest constructs an http.Request for the HeadReadiness method

func NewProcessMessageRequest

func NewProcessMessageRequest(server string, body ProcessMessageJSONRequestBody) (*http.Request, error)

NewProcessMessageRequest calls the generic ProcessMessage builder with application/json body

func NewProcessMessageRequestWithBody

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

NewProcessMessageRequestWithBody constructs an http.Request for the ProcessMessage method, with any body, and a specified content type

func NewPropagateDeliveryStatusRequest

func NewPropagateDeliveryStatusRequest(server string, body PropagateDeliveryStatusJSONRequestBody) (*http.Request, error)

NewPropagateDeliveryStatusRequest calls the generic PropagateDeliveryStatus builder with application/json body

func NewPropagateDeliveryStatusRequestWithBody

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

NewPropagateDeliveryStatusRequestWithBody constructs an http.Request for the PropagateDeliveryStatus method, with any body, and a specified content type

func NewReviseBatchRequest

func NewReviseBatchRequest(server string, body ReviseBatchJSONRequestBody) (*http.Request, error)

NewReviseBatchRequest calls the generic ReviseBatch builder with application/json body

func NewReviseBatchRequestWithBody

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

NewReviseBatchRequestWithBody constructs an http.Request for the ReviseBatch method, with any body, and a specified content type

func NewReviseMessageRequest

func NewReviseMessageRequest(server string, body ReviseMessageJSONRequestBody) (*http.Request, error)

NewReviseMessageRequest calls the generic ReviseMessage builder with application/json body

func NewReviseMessageRequestWithBody

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

NewReviseMessageRequestWithBody constructs an http.Request for the ReviseMessage method, with any body, and a specified content type

func NewSignDeliveryStatusRequest

func NewSignDeliveryStatusRequest(server string, body SignDeliveryStatusJSONRequestBody) (*http.Request, error)

NewSignDeliveryStatusRequest calls the generic SignDeliveryStatus builder with application/json body

func NewSignDeliveryStatusRequestWithBody

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

NewSignDeliveryStatusRequestWithBody constructs an http.Request for the SignDeliveryStatus method, with any body, and a specified content type

func NewSignMessageRequest

func NewSignMessageRequest(server string, body SignMessageJSONRequestBody) (*http.Request, error)

NewSignMessageRequest calls the generic SignMessage builder with application/json body

func NewSignMessageRequestWithBody

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

NewSignMessageRequestWithBody constructs an http.Request for the SignMessage method, with any body, and a specified content type

Types

type APIVersion

type APIVersion string

APIVersion defines model for APIVersion.

const (
	V1 APIVersion = "v1"
)

Defines values for APIVersion.

func (APIVersion) Valid

func (e APIVersion) Valid() bool

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

type ActionPlan

type ActionPlan = []AddHeaderAction

ActionPlan Ordered header actions for one hop. Array order is the top-down order of the hop's new fields: Message-Instance, then DKIM2-Signature, then any X-DKIM2-Info. Message-Instance and DKIM2-Signature are trace header fields (Draft-09 Sections 9 and 10, RFC 5322 Section 3.6.7), so consumers SHOULD insert the whole block above the current topmost header field, keeping array order, and must not interleave it with other fields. Verification does not depend on this placement.

type AddHeaderAction

type AddHeaderAction struct {
	Name  AddHeaderActionName `json:"name"`
	Type  AddHeaderActionType `json:"type"`
	Value string              `json:"value"`
}

AddHeaderAction Daemon-owned header action. Authentication-Results carries one dkim2 result, optionally followed by a bounded diagnostic comment from the closed reason vocabulary. Consumers validate authority and result and must not use diagnostic comments for policy. Legacy bare results remain accepted. Origin and failure-index properties are omitted by this privacy-preserving profile. Successful sign, revise, and delivery_status operations may append one X-DKIM2-Info action after their protocol fields when signing.interop_info.enabled is true. It is unsigned diagnostic metadata, never authentication evidence. Earlier diagnostic fields are preserved. Consumers must reject duplicates, misplaced info actions, and info actions on process, non-accept, or non-pass outcomes.

type AddHeaderActionName

type AddHeaderActionName string

AddHeaderActionName defines model for AddHeaderAction.Name.

const (
	AuthenticationResults AddHeaderActionName = "Authentication-Results"
	DKIM2Signature        AddHeaderActionName = "DKIM2-Signature"
	MessageInstance       AddHeaderActionName = "Message-Instance"
	XDKIM2Info            AddHeaderActionName = "X-DKIM2-Info"
)

Defines values for AddHeaderActionName.

func (AddHeaderActionName) Valid

func (e AddHeaderActionName) Valid() bool

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

type AddHeaderActionType

type AddHeaderActionType string

AddHeaderActionType defines model for AddHeaderAction.Type.

const (
	AddHeader AddHeaderActionType = "add_header"
)

Defines values for AddHeaderActionType.

func (AddHeaderActionType) Valid

func (e AddHeaderActionType) Valid() bool

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

type AuthenticationResult

type AuthenticationResult struct {
	PrimaryReason AuthenticationResultPrimaryReason `json:"primary_reason"`

	// State Draft-09 Section 14.1 verification state. PASS: the message is a Fully Verified DKIM2 Message. FAIL: verification completed and the message is not Fully Verified, reported with hash_mismatch, signature_mismatch, timestamp_invalid, envelope_mismatch, domain_alignment_mismatch, next_domain_mismatch, custody_mismatch, out_of_band_required, from_not_authentic, or from_subdomain_forbidden (the From domain's Domain Policy Record carries f=strict, Sections 3.8 and 14.8). PERMERROR: an unrecoverable error such as malformed, missing, or duplicate protocol state, invalid sequencing, an unsupported algorithm, a key error, an invalid Recipe, a null body Recipe (body_history_unavailable, Section 14.2), multiple or invalid Domain Policy Records (domain_policy_ambiguous, domain_policy_invalid), or a local limit. TEMPERROR: a temporary inability to retrieve a DNS record, either a public key (provider_temporary) or a Domain Policy Record (domain_policy_temporary). NONE: the message does not contain any DKIM2-Signature or Message-Instance header field; it is classified before verification, always carries primary_reason none, and is never produced for a message carrying only one field family.
	State VerificationState `json:"state"`
}

AuthenticationResult defines model for AuthenticationResult.

type AuthenticationResultPrimaryReason

type AuthenticationResultPrimaryReason string

AuthenticationResultPrimaryReason defines model for AuthenticationResult.PrimaryReason.

const (
	AuthenticationResultPrimaryReasonAmbiguousKey                    AuthenticationResultPrimaryReason = "ambiguous_key"
	AuthenticationResultPrimaryReasonBodyHistoryUnavailable          AuthenticationResultPrimaryReason = "body_history_unavailable"
	AuthenticationResultPrimaryReasonCustodyMismatch                 AuthenticationResultPrimaryReason = "custody_mismatch"
	AuthenticationResultPrimaryReasonDomainAlignmentMismatch         AuthenticationResultPrimaryReason = "domain_alignment_mismatch"
	AuthenticationResultPrimaryReasonDomainPolicyAmbiguous           AuthenticationResultPrimaryReason = "domain_policy_ambiguous"
	AuthenticationResultPrimaryReasonDomainPolicyInvalid             AuthenticationResultPrimaryReason = "domain_policy_invalid"
	AuthenticationResultPrimaryReasonDomainPolicyTemporary           AuthenticationResultPrimaryReason = "domain_policy_temporary"
	AuthenticationResultPrimaryReasonDuplicateHashAlgorithm          AuthenticationResultPrimaryReason = "duplicate_hash_algorithm"
	AuthenticationResultPrimaryReasonDuplicateMessageWithoutExploded AuthenticationResultPrimaryReason = "duplicate_message_without_exploded"
	AuthenticationResultPrimaryReasonDuplicateSelector               AuthenticationResultPrimaryReason = "duplicate_selector"
	AuthenticationResultPrimaryReasonEnvelopeMismatch                AuthenticationResultPrimaryReason = "envelope_mismatch"
	AuthenticationResultPrimaryReasonFromNotAuthentic                AuthenticationResultPrimaryReason = "from_not_authentic"
	AuthenticationResultPrimaryReasonFromSubdomainForbidden          AuthenticationResultPrimaryReason = "from_subdomain_forbidden"
	AuthenticationResultPrimaryReasonHashMismatch                    AuthenticationResultPrimaryReason = "hash_mismatch"
	AuthenticationResultPrimaryReasonInternalContract                AuthenticationResultPrimaryReason = "internal_contract"
	AuthenticationResultPrimaryReasonInvalidKey                      AuthenticationResultPrimaryReason = "invalid_key"
	AuthenticationResultPrimaryReasonInvalidRecipe                   AuthenticationResultPrimaryReason = "invalid_recipe"
	AuthenticationResultPrimaryReasonInvalidRecipeJson               AuthenticationResultPrimaryReason = "invalid_recipe_json"
	AuthenticationResultPrimaryReasonKeyAlgorithmMismatch            AuthenticationResultPrimaryReason = "key_algorithm_mismatch"
	AuthenticationResultPrimaryReasonLimitExceeded                   AuthenticationResultPrimaryReason = "limit_exceeded"
	AuthenticationResultPrimaryReasonMalformedMessage                AuthenticationResultPrimaryReason = "malformed_message"
	AuthenticationResultPrimaryReasonMalformedProtocol               AuthenticationResultPrimaryReason = "malformed_protocol"
	AuthenticationResultPrimaryReasonMissingKey                      AuthenticationResultPrimaryReason = "missing_key"
	AuthenticationResultPrimaryReasonMissingProtocol                 AuthenticationResultPrimaryReason = "missing_protocol"
	AuthenticationResultPrimaryReasonNextDomainMismatch              AuthenticationResultPrimaryReason = "next_domain_mismatch"
	AuthenticationResultPrimaryReasonNone                            AuthenticationResultPrimaryReason = "none"
	AuthenticationResultPrimaryReasonOutOfBandRequired               AuthenticationResultPrimaryReason = "out_of_band_required"
	AuthenticationResultPrimaryReasonProviderContract                AuthenticationResultPrimaryReason = "provider_contract"
	AuthenticationResultPrimaryReasonProviderPermanent               AuthenticationResultPrimaryReason = "provider_permanent"
	AuthenticationResultPrimaryReasonProviderTemporary               AuthenticationResultPrimaryReason = "provider_temporary"
	AuthenticationResultPrimaryReasonReplayEvidenceUnavailable       AuthenticationResultPrimaryReason = "replay_evidence_unavailable"
	AuthenticationResultPrimaryReasonReplayIndeterminate             AuthenticationResultPrimaryReason = "replay_indeterminate"
	AuthenticationResultPrimaryReasonRevokedKey                      AuthenticationResultPrimaryReason = "revoked_key"
	AuthenticationResultPrimaryReasonSequenceInvalid                 AuthenticationResultPrimaryReason = "sequence_invalid"
	AuthenticationResultPrimaryReasonSignatureMismatch               AuthenticationResultPrimaryReason = "signature_mismatch"
	AuthenticationResultPrimaryReasonTimestampInvalid                AuthenticationResultPrimaryReason = "timestamp_invalid"
	AuthenticationResultPrimaryReasonUnsupportedAlgorithm            AuthenticationResultPrimaryReason = "unsupported_algorithm"
	AuthenticationResultPrimaryReasonUnsupportedKeyType              AuthenticationResultPrimaryReason = "unsupported_key_type"
)

Defines values for AuthenticationResultPrimaryReason.

func (AuthenticationResultPrimaryReason) Valid

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

type BadRequest

type BadRequest = ErrorResponse

BadRequest defines model for BadRequest.

type BatchBinding

type BatchBinding = string

BatchBinding Caller-owned SHA-256 binding of its immutable transaction and complete delivery plan. Returned unchanged over the authenticated channel. This correlation value is not a verification result or an independent proof of the MTA's queue completeness.

type BatchCopyID

type BatchCopyID = string

BatchCopyID Opaque transaction-local identity without an address or secret.

type BatchDigest

type BatchDigest = string

BatchDigest SHA-256 of the exact identified RFC 5322 message bytes.

type BatchRevisionCapabilities

type BatchRevisionCapabilities struct {
	ApiVersion    APIVersion                             `json:"api_version"`
	ControlledVia BatchRevisionCapabilitiesControlledVia `json:"controlled_via"`
	Draft         DraftVersion                           `json:"draft"`

	// ExternalNullSender Ordinary revision cannot create a null reverse-path. Valid signed delivery-status messages use the separately authorized received-DSN propagation API, including its verification and replay contract.
	ExternalNullSender BatchRevisionCapabilitiesExternalNullSender `json:"external_null_sender"`
	FullFanout         BatchRevisionCapabilitiesFullFanout         `json:"full_fanout"`

	// MaxAggregateMessageBytes The enforced bound of the decoded original plus every copy of one request. It is 268435456 unless the daemon configures server.batch_revision.max_aggregate_message_bytes; every single message still obeys the daemon's server.message_bytes. Clients read this value instead of assuming a constant.
	MaxAggregateMessageBytes int64 `json:"max_aggregate_message_bytes"`
	MaxControlledHops        int   `json:"max_controlled_hops"`
	MaxCopies                int   `json:"max_copies"`
	MaxHeaderFields          int   `json:"max_header_fields"`

	// MaxRequestBytes The enforced bound of one request body in bytes: the deployment's single-message transport ceiling, or with a configured batch aggregate the separately padded Base64 of that aggregate plus the closed framing allowance. A larger body is answered with 413.
	MaxRequestBytes  int64                                    `json:"max_request_bytes"`
	MaxResponseBytes int64                                    `json:"max_response_bytes"`
	OriginalCurrent  BatchRevisionCapabilitiesOriginalCurrent `json:"original_current"`
	Protocol         BatchRevisionCapabilitiesProtocol        `json:"protocol"`
}

BatchRevisionCapabilities defines model for BatchRevisionCapabilities.

type BatchRevisionCapabilitiesControlledVia

type BatchRevisionCapabilitiesControlledVia bool

BatchRevisionCapabilitiesControlledVia defines model for BatchRevisionCapabilities.ControlledVia.

const (
	BatchControlledViaSupported BatchRevisionCapabilitiesControlledVia = true
)

Defines values for BatchRevisionCapabilitiesControlledVia.

func (BatchRevisionCapabilitiesControlledVia) Valid

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

type BatchRevisionCapabilitiesExternalNullSender

type BatchRevisionCapabilitiesExternalNullSender bool

BatchRevisionCapabilitiesExternalNullSender Ordinary revision cannot create a null reverse-path. Valid signed delivery-status messages use the separately authorized received-DSN propagation API, including its verification and replay contract.

const (
	BatchExternalNullSenderUnsupported BatchRevisionCapabilitiesExternalNullSender = false
)

Defines values for BatchRevisionCapabilitiesExternalNullSender.

func (BatchRevisionCapabilitiesExternalNullSender) Valid

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

type BatchRevisionCapabilitiesFullFanout

type BatchRevisionCapabilitiesFullFanout bool

BatchRevisionCapabilitiesFullFanout defines model for BatchRevisionCapabilities.FullFanout.

const (
	BatchFullFanoutSupported BatchRevisionCapabilitiesFullFanout = true
)

Defines values for BatchRevisionCapabilitiesFullFanout.

func (BatchRevisionCapabilitiesFullFanout) Valid

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

type BatchRevisionCapabilitiesOriginalCurrent

type BatchRevisionCapabilitiesOriginalCurrent bool

BatchRevisionCapabilitiesOriginalCurrent defines model for BatchRevisionCapabilities.OriginalCurrent.

const (
	BatchOriginalCurrentSupported BatchRevisionCapabilitiesOriginalCurrent = true
)

Defines values for BatchRevisionCapabilitiesOriginalCurrent.

func (BatchRevisionCapabilitiesOriginalCurrent) Valid

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

type BatchRevisionCapabilitiesProtocol

type BatchRevisionCapabilitiesProtocol string

BatchRevisionCapabilitiesProtocol defines model for BatchRevisionCapabilities.Protocol.

const (
	BatchRevisionV1 BatchRevisionCapabilitiesProtocol = "batch_revision_v1"
)

Defines values for BatchRevisionCapabilitiesProtocol.

func (BatchRevisionCapabilitiesProtocol) Valid

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

type BatchRevisionCopy

type BatchRevisionCopy struct {
	Context  *SigningContext           `json:"context,omitempty"`
	Delivery BatchRevisionCopyDelivery `json:"delivery"`

	// Id Opaque transaction-local identity without an address or secret.
	Id      BatchCopyID  `json:"id"`
	Message MessageInput `json:"message"`
	Smtp    SMTPInput    `json:"smtp"`

	// Via Optional single controlled intermediate hop for an external copy, implementing Draft 08 section 12.3 with ordinary mf/rt signatures. The MTA supplies the exact non-null intermediate reverse path and one controlled intermediate recipient. Both signing contexts must have the same tenant; exact transit profiles for both domains and local authority over the intermediate recipient domain are required. The initial fanout still counts every actual local and external copy. Intermediate and final signatures are released only together, in one output. No real SMTP transfer is claimed for this imaginary hop. Not permitted on local copies. No free domain-alignment exception.
	Via *BatchRevisionHop `json:"via,omitempty"`
}

BatchRevisionCopy Exact current bytes and prepared outgoing SMTP paths, including an MTA-prepared SRS reverse path if applicable. The original and local reverse paths may be <>; the reference library refuses ordinary external revision with <>. Valid received DSNs use the independent authenticated propagation operation. The daemon never invents or rewrites SRS. Context is required for external copies and forbidden for local copies. Message fidelity is explicit; current local bytes may use lmtp_delivered_crlf, while external bytes must be an admitted signing fidelity. Existing protocol fields may not be removed, changed, or fabricated after verification.

type BatchRevisionCopyDelivery

type BatchRevisionCopyDelivery string

BatchRevisionCopyDelivery defines model for BatchRevisionCopy.Delivery.

const (
	External BatchRevisionCopyDelivery = "external"
	Local    BatchRevisionCopyDelivery = "local"
)

Defines values for BatchRevisionCopyDelivery.

func (BatchRevisionCopyDelivery) Valid

func (e BatchRevisionCopyDelivery) Valid() bool

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

type BatchRevisionHop

type BatchRevisionHop struct {
	Context SigningContext `json:"context"`
	Smtp    SMTPInput      `json:"smtp"`
}

BatchRevisionHop Optional single controlled intermediate hop for an external copy, implementing Draft 08 section 12.3 with ordinary mf/rt signatures. The MTA supplies the exact non-null intermediate reverse path and one controlled intermediate recipient. Both signing contexts must have the same tenant; exact transit profiles for both domains and local authority over the intermediate recipient domain are required. The initial fanout still counts every actual local and external copy. Intermediate and final signatures are released only together, in one output. No real SMTP transfer is claimed for this imaginary hop. Not permitted on local copies. No free domain-alignment exception.

type BatchRevisionOriginal

type BatchRevisionOriginal struct {
	Message MessageInput `json:"message"`
	Smtp    SMTPInput    `json:"smtp"`
}

BatchRevisionOriginal defines model for BatchRevisionOriginal.

type BatchRevisionOutput

type BatchRevisionOutput struct {
	// CurrentSha256 SHA-256 of the exact identified RFC 5322 message bytes.
	CurrentSha256      BatchDigest            `json:"current_sha256"`
	HeaderFieldsBase64 []CompletedHeaderField `json:"header_fields_base64"`

	// Id Opaque transaction-local identity without an address or secret.
	Id BatchCopyID `json:"id"`

	// InsertionOffset Byte offset in current message where the completed fields are inserted. It is always 0, the start of the header block: Message-Instance and DKIM2-Signature are trace header fields (Draft-09 Sections 9 and 10), and RFC 5322 Section 3.6 says trace fields SHOULD be kept in blocks prepended to the message. The client inserts the completed fields there, above the previous top field.
	InsertionOffset int64 `json:"insertion_offset"`

	// ResultSha256 SHA-256 of the exact identified RFC 5322 message bytes.
	ResultSha256 BatchDigest `json:"result_sha256"`
}

BatchRevisionOutput Decode each complete header field and concatenate them in array order, then insert them at insertion_offset in the exact current bytes. Array order is top-down header order: each hop's block lists its optional Message-Instance before its DKIM2-Signature, and a later hop's block precedes the earlier hop's block. A Message-Instance appears only directly before the final DKIM2-Signature. Do not unfold, reorder, normalize, or insert an extra empty line. The result must match result_sha256 before release. Message body bytes are never returned. Each external signature contains only its own recipient.

type BatchRevisionRequest

type BatchRevisionRequest struct {
	ApiVersion APIVersion `json:"api_version"`

	// Binding Caller-owned SHA-256 binding of its immutable transaction and complete delivery plan. Returned unchanged over the authenticated channel. This correlation value is not a verification result or an independent proof of the MTA's queue completeness.
	Binding BatchBinding `json:"binding"`

	// Copies Complete actual copy set, including local copies already delivered. IDs are unique. At least one external copy is required. Each smtp object contains exactly one recipient. Duplicate addresses remain distinct copies when the MTA actually produces distinct deliveries.
	Copies   []BatchRevisionCopy   `json:"copies"`
	Draft    DraftVersion          `json:"draft"`
	Original BatchRevisionOriginal `json:"original"`
}

BatchRevisionRequest defines model for BatchRevisionRequest.

type BatchRevisionResponse

type BatchRevisionResponse struct {
	ApiVersion APIVersion `json:"api_version"`

	// Binding Caller-owned SHA-256 binding of its immutable transaction and complete delivery plan. Returned unchanged over the authenticated channel. This correlation value is not a verification result or an independent proof of the MTA's queue completeness.
	Binding     BatchBinding `json:"binding"`
	Disposition Disposition  `json:"disposition"`
	Draft       DraftVersion `json:"draft"`

	// OriginalSha256 SHA-256 of the exact identified RFC 5322 message bytes.
	OriginalSha256 BatchDigest                 `json:"original_sha256"`
	Outputs        []BatchRevisionOutput       `json:"outputs"`
	Result         BatchRevisionResponseResult `json:"result"`
}

BatchRevisionResponse pass/accept contains one output per external copy in request order. fail/reject and permerror/reject contain no outputs; temperror/tempfail contains no outputs. No partial signature set is released. This is a signing result, not proof of downstream delivery, TLS, or archiving.

type BatchRevisionResponseResult

type BatchRevisionResponseResult string

BatchRevisionResponseResult defines model for BatchRevisionResponse.Result.

const (
	BatchRevisionResponseResultFail      BatchRevisionResponseResult = "fail"
	BatchRevisionResponseResultPass      BatchRevisionResponseResult = "pass"
	BatchRevisionResponseResultPermerror BatchRevisionResponseResult = "permerror"
	BatchRevisionResponseResultTemperror BatchRevisionResponseResult = "temperror"
)

Defines values for BatchRevisionResponseResult.

func (BatchRevisionResponseResult) Valid

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

type CanonicalUint64

type CanonicalUint64 = string

CanonicalUint64 defines model for CanonicalUint64.

type Client

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

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

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

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

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

Creates a new Client, with reasonable defaults

func (*Client) CommitDeliveryStatusPropagation

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

CommitDeliveryStatusPropagation Commit one reserved delivery-status propagation coordinate.

Moves the propagation replay coordinate bound to the supplied commit token from pending to committed. The caller invokes this operation only after its own re-injection of the signed notification was accepted. The operation is idempotent for an already committed coordinate. A token that is unknown, malformed, or outside the retention window is answered 409 so that the caller defers instead of leaving the coordinate uncommitted.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/dsn/propagate/commit (the `CommitDeliveryStatusPropagation` operationId).

func (*Client) CommitDeliveryStatusPropagationWithBody

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

CommitDeliveryStatusPropagationWithBody Commit one reserved delivery-status propagation coordinate.

Moves the propagation replay coordinate bound to the supplied commit token from pending to committed. The caller invokes this operation only after its own re-injection of the signed notification was accepted. The operation is idempotent for an already committed coordinate. A token that is unknown, malformed, or outside the retention window is answered 409 so that the caller defers instead of leaving the coordinate uncommitted.

Takes any type of body and a specified content type.

Corresponds with POST /v1/dsn/propagate/commit (the `CommitDeliveryStatusPropagation` operationId).

func (*Client) GetBatchRevisionCapabilities

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

GetBatchRevisionCapabilities Inspect the enabled batch revision contract without signing.

Uses the batch revision capability. A successful response requires the configured batch signing service and current daemon readiness. It advertises implementation bounds, not availability of a particular tenant profile, remote DNS key, or validity of a future message. Query strings, request bodies, content metadata, expectations, and conditional request headers are not accepted. This route does not perform cryptography, reserve delivery state, or disclose key material.

Corresponds with GET /v1/revise/batch/capabilities (the `GetBatchRevisionCapabilities` operationId).

func (*Client) GetHealth

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

GetHealth Report process liveness.

Returns the closed process-liveness representation.

Corresponds with GET /healthz (the `GetHealth` operationId).

func (*Client) GetMetrics

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

GetMetrics Report process-local Prometheus metrics.

Returns one deterministic bounded text exposition from the instance-owned registry. The scrape is unauthenticated, untraced, and independent of service readiness.

Corresponds with GET /metrics (the `GetMetrics` operationId).

func (*Client) GetReadiness

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

GetReadiness Report service readiness.

Returns readiness only after every required dependency is ready.

Corresponds with GET /readyz (the `GetReadiness` operationId).

func (*Client) HeadHealth

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

HeadHealth Report process liveness without a response body.

Returns the same status and representation metadata, including Content-Type and the GET representation's Content-Length, as getHealth, but emits no response body. A 304 response instead has neither Content-Type nor Content-Length and uses only its declared minimal metadata.

Corresponds with HEAD /healthz (the `HeadHealth` operationId).

func (*Client) HeadReadiness

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

HeadReadiness Report service readiness without a response body.

Returns the same status and representation metadata, including Content-Type and the GET representation's Content-Length, as getReadiness, but emits no response body. A 304 response instead has neither Content-Type nor Content-Length and uses only its declared minimal metadata.

Corresponds with HEAD /readyz (the `HeadReadiness` operationId).

func (*Client) ProcessMessage

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

ProcessMessage Process one inbound DKIM2 message.

Classifies DKIM2 applicability before verification. A message with no Message-Instance and no DKIM2-Signature fields is the Draft-09 Section 14.1 NONE state: it returns 200 with verification and authentication state NONE, policy verdict continue with reason none, replay not_checked, and disposition continue, without starting verification, policy evaluation, replay, DNS, or signing work. Its only possible action is the daemon-owned Authentication-Results dkim2=none report when a local reporting authority is configured. A message carrying either field family is verified, receives server-owned policy and the configured replay check, and returns a closed final disposition. This operation neither signs nor revises a message. Authentication-Results uses the bounded reporting profile in docs/specs/companion-conformance.md.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/process (the `ProcessMessage` operationId).

func (*Client) ProcessMessageWithBody

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

ProcessMessageWithBody Process one inbound DKIM2 message.

Classifies DKIM2 applicability before verification. A message with no Message-Instance and no DKIM2-Signature fields is the Draft-09 Section 14.1 NONE state: it returns 200 with verification and authentication state NONE, policy verdict continue with reason none, replay not_checked, and disposition continue, without starting verification, policy evaluation, replay, DNS, or signing work. Its only possible action is the daemon-owned Authentication-Results dkim2=none report when a local reporting authority is configured. A message carrying either field family is verified, receives server-owned policy and the configured replay check, and returns a closed final disposition. This operation neither signs nor revises a message. Authentication-Results uses the bounded reporting profile in docs/specs/companion-conformance.md.

Takes any type of body and a specified content type.

Corresponds with POST /v1/process (the `ProcessMessage` operationId).

func (*Client) PropagateDeliveryStatus

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

PropagateDeliveryStatus Rebuild and sign one propagated delivery-status notification.

Evaluates one received RFC 6522 delivery-status notification whose embedded original is DKIM2 signed, proves that this system is the signing hop the notification was addressed to, rebuilds the state the previous hop signed, and returns a signed notification addressed to that previous hop together with an opaque commit token. The route reserves a distinct propagation replay coordinate before rebuilding and returns the coordinate to the caller only through that token; the caller commits it after its own re-injection succeeded. This dedicated operation never accepts a process, originator-signing, revision, or delivery-status signing capability.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/dsn/propagate (the `PropagateDeliveryStatus` operationId).

func (*Client) PropagateDeliveryStatusWithBody

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

PropagateDeliveryStatusWithBody Rebuild and sign one propagated delivery-status notification.

Evaluates one received RFC 6522 delivery-status notification whose embedded original is DKIM2 signed, proves that this system is the signing hop the notification was addressed to, rebuilds the state the previous hop signed, and returns a signed notification addressed to that previous hop together with an opaque commit token. The route reserves a distinct propagation replay coordinate before rebuilding and returns the coordinate to the caller only through that token; the caller commits it after its own re-injection succeeded. This dedicated operation never accepts a process, originator-signing, revision, or delivery-status signing capability.

Takes any type of body and a specified content type.

Corresponds with POST /v1/dsn/propagate (the `PropagateDeliveryStatus` operationId).

func (*Client) ReviseBatch

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

ReviseBatch Revise the external copies of one complete message fanout.

The separately authorized trusted MTA supplies the exact original message and incoming envelope, and every actual local and external copy with its current message and prepared outgoing envelope. The daemon verifies the original itself, seals the entire fanout with the reference library, and releases exact completed header fields only for external copies. Every copy has exactly one recipient. Local delivery is independent; failure here never rolls it back. Local policy authorization gates every external output. Caller assertions are not verification evidence. All external outputs succeed together or outputs is empty. This endpoint does not originate unsigned messages or deliver mail. The framed JSON limit is 361053016 bytes; the aggregate decoded original and current message limit is 268435456 bytes. Each message also obeys the deployment's configured server.message_bytes ceiling.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/revise/batch (the `ReviseBatch` operationId).

func (*Client) ReviseBatchWithBody

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

ReviseBatchWithBody Revise the external copies of one complete message fanout.

The separately authorized trusted MTA supplies the exact original message and incoming envelope, and every actual local and external copy with its current message and prepared outgoing envelope. The daemon verifies the original itself, seals the entire fanout with the reference library, and releases exact completed header fields only for external copies. Every copy has exactly one recipient. Local delivery is independent; failure here never rolls it back. Local policy authorization gates every external output. Caller assertions are not verification evidence. All external outputs succeed together or outputs is empty. This endpoint does not originate unsigned messages or deliver mail. The framed JSON limit is 361053016 bytes; the aggregate decoded original and current message limit is 268435456 bytes. Each message also obeys the deployment's configured server.message_bytes ceiling.

Takes any type of body and a specified content type.

Corresponds with POST /v1/revise/batch (the `ReviseBatch` operationId).

func (*Client) ReviseMessage

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

ReviseMessage Revise one ordinary-transit DKIM2 message.

Verifies exact inherited revision evidence before server-owned ordinary-transit signing and returns a closed ordered action plan.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/revise (the `ReviseMessage` operationId).

func (*Client) ReviseMessageWithBody

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

ReviseMessageWithBody Revise one ordinary-transit DKIM2 message.

Verifies exact inherited revision evidence before server-owned ordinary-transit signing and returns a closed ordered action plan.

Takes any type of body and a specified content type.

Corresponds with POST /v1/revise (the `ReviseMessage` operationId).

func (*Client) SignDeliveryStatus

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

SignDeliveryStatus Sign one delivery-status report.

Authenticates a Postfix bounce(8) RFC 6522 multipart/report containing RFC 3464 delivery-status content, supplied by the separately authorized Postfix DSN adapter, requires its exact null reverse-path envelope, and authenticates the embedded DKIM2 object without fabricating original SMTP envelope evidence before returning an append-only DKIM2 signing action plan. This dedicated operation never accepts an ordinary sign or revision capability. Possession of the distinct DSN signing capability attests that the adapter established trusted Postfix internal origin before invoking this route.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/dsn/sign (the `SignDeliveryStatus` operationId).

func (*Client) SignDeliveryStatusWithBody

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

SignDeliveryStatusWithBody Sign one delivery-status report.

Authenticates a Postfix bounce(8) RFC 6522 multipart/report containing RFC 3464 delivery-status content, supplied by the separately authorized Postfix DSN adapter, requires its exact null reverse-path envelope, and authenticates the embedded DKIM2 object without fabricating original SMTP envelope evidence before returning an append-only DKIM2 signing action plan. This dedicated operation never accepts an ordinary sign or revision capability. Possession of the distinct DSN signing capability attests that the adapter established trusted Postfix internal origin before invoking this route.

Takes any type of body and a specified content type.

Corresponds with POST /v1/dsn/sign (the `SignDeliveryStatus` operationId).

func (*Client) SignMessage

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

SignMessage Sign one originator DKIM2 message.

Resolves server-owned originator policy and signing material and returns a closed ordered append-only action plan.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/sign (the `SignMessage` operationId).

func (*Client) SignMessageWithBody

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

SignMessageWithBody Sign one originator DKIM2 message.

Resolves server-owned originator policy and signing material and returns a closed ordered append-only action plan.

Takes any type of body and a specified content type.

Corresponds with POST /v1/sign (the `SignMessage` operationId).

type ClientInterface

type ClientInterface interface {

	// GetHealth Report process liveness.
	//
	// Returns the closed process-liveness representation.
	//
	// Corresponds with GET /healthz (the `GetHealth` operationId).
	GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HeadHealth Report process liveness without a response body.
	//
	// Returns the same status and representation metadata, including Content-Type and the GET representation's Content-Length, as getHealth, but emits no response body. A 304 response instead has neither Content-Type nor Content-Length and uses only its declared minimal metadata.
	//
	// Corresponds with HEAD /healthz (the `HeadHealth` operationId).
	HeadHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMetrics Report process-local Prometheus metrics.
	//
	// Returns one deterministic bounded text exposition from the instance-owned registry. The scrape is unauthenticated, untraced, and independent of service readiness.
	//
	// Corresponds with GET /metrics (the `GetMetrics` operationId).
	GetMetrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReadiness Report service readiness.
	//
	// Returns readiness only after every required dependency is ready.
	//
	// Corresponds with GET /readyz (the `GetReadiness` operationId).
	GetReadiness(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HeadReadiness Report service readiness without a response body.
	//
	// Returns the same status and representation metadata, including Content-Type and the GET representation's Content-Length, as getReadiness, but emits no response body. A 304 response instead has neither Content-Type nor Content-Length and uses only its declared minimal metadata.
	//
	// Corresponds with HEAD /readyz (the `HeadReadiness` operationId).
	HeadReadiness(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PropagateDeliveryStatusWithBody Rebuild and sign one propagated delivery-status notification.
	//
	// Evaluates one received RFC 6522 delivery-status notification whose embedded original is DKIM2 signed, proves that this system is the signing hop the notification was addressed to, rebuilds the state the previous hop signed, and returns a signed notification addressed to that previous hop together with an opaque commit token. The route reserves a distinct propagation replay coordinate before rebuilding and returns the coordinate to the caller only through that token; the caller commits it after its own re-injection succeeded. This dedicated operation never accepts a process, originator-signing, revision, or delivery-status signing capability.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/dsn/propagate (the `PropagateDeliveryStatus` operationId).
	PropagateDeliveryStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PropagateDeliveryStatus Rebuild and sign one propagated delivery-status notification.
	//
	// Evaluates one received RFC 6522 delivery-status notification whose embedded original is DKIM2 signed, proves that this system is the signing hop the notification was addressed to, rebuilds the state the previous hop signed, and returns a signed notification addressed to that previous hop together with an opaque commit token. The route reserves a distinct propagation replay coordinate before rebuilding and returns the coordinate to the caller only through that token; the caller commits it after its own re-injection succeeded. This dedicated operation never accepts a process, originator-signing, revision, or delivery-status signing capability.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/dsn/propagate (the `PropagateDeliveryStatus` operationId).
	PropagateDeliveryStatus(ctx context.Context, body PropagateDeliveryStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CommitDeliveryStatusPropagationWithBody Commit one reserved delivery-status propagation coordinate.
	//
	// Moves the propagation replay coordinate bound to the supplied commit token from pending to committed. The caller invokes this operation only after its own re-injection of the signed notification was accepted. The operation is idempotent for an already committed coordinate. A token that is unknown, malformed, or outside the retention window is answered 409 so that the caller defers instead of leaving the coordinate uncommitted.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/dsn/propagate/commit (the `CommitDeliveryStatusPropagation` operationId).
	CommitDeliveryStatusPropagationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CommitDeliveryStatusPropagation Commit one reserved delivery-status propagation coordinate.
	//
	// Moves the propagation replay coordinate bound to the supplied commit token from pending to committed. The caller invokes this operation only after its own re-injection of the signed notification was accepted. The operation is idempotent for an already committed coordinate. A token that is unknown, malformed, or outside the retention window is answered 409 so that the caller defers instead of leaving the coordinate uncommitted.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/dsn/propagate/commit (the `CommitDeliveryStatusPropagation` operationId).
	CommitDeliveryStatusPropagation(ctx context.Context, body CommitDeliveryStatusPropagationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SignDeliveryStatusWithBody Sign one delivery-status report.
	//
	// Authenticates a Postfix bounce(8) RFC 6522 multipart/report containing RFC 3464 delivery-status content, supplied by the separately authorized Postfix DSN adapter, requires its exact null reverse-path envelope, and authenticates the embedded DKIM2 object without fabricating original SMTP envelope evidence before returning an append-only DKIM2 signing action plan. This dedicated operation never accepts an ordinary sign or revision capability. Possession of the distinct DSN signing capability attests that the adapter established trusted Postfix internal origin before invoking this route.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/dsn/sign (the `SignDeliveryStatus` operationId).
	SignDeliveryStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SignDeliveryStatus Sign one delivery-status report.
	//
	// Authenticates a Postfix bounce(8) RFC 6522 multipart/report containing RFC 3464 delivery-status content, supplied by the separately authorized Postfix DSN adapter, requires its exact null reverse-path envelope, and authenticates the embedded DKIM2 object without fabricating original SMTP envelope evidence before returning an append-only DKIM2 signing action plan. This dedicated operation never accepts an ordinary sign or revision capability. Possession of the distinct DSN signing capability attests that the adapter established trusted Postfix internal origin before invoking this route.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/dsn/sign (the `SignDeliveryStatus` operationId).
	SignDeliveryStatus(ctx context.Context, body SignDeliveryStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ProcessMessageWithBody Process one inbound DKIM2 message.
	//
	// Classifies DKIM2 applicability before verification. A message with no Message-Instance and no DKIM2-Signature fields is the Draft-09 Section 14.1 NONE state: it returns 200 with verification and authentication state NONE, policy verdict continue with reason none, replay not_checked, and disposition continue, without starting verification, policy evaluation, replay, DNS, or signing work. Its only possible action is the daemon-owned Authentication-Results dkim2=none report when a local reporting authority is configured. A message carrying either field family is verified, receives server-owned policy and the configured replay check, and returns a closed final disposition. This operation neither signs nor revises a message. Authentication-Results uses the bounded reporting profile in docs/specs/companion-conformance.md.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/process (the `ProcessMessage` operationId).
	ProcessMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ProcessMessage Process one inbound DKIM2 message.
	//
	// Classifies DKIM2 applicability before verification. A message with no Message-Instance and no DKIM2-Signature fields is the Draft-09 Section 14.1 NONE state: it returns 200 with verification and authentication state NONE, policy verdict continue with reason none, replay not_checked, and disposition continue, without starting verification, policy evaluation, replay, DNS, or signing work. Its only possible action is the daemon-owned Authentication-Results dkim2=none report when a local reporting authority is configured. A message carrying either field family is verified, receives server-owned policy and the configured replay check, and returns a closed final disposition. This operation neither signs nor revises a message. Authentication-Results uses the bounded reporting profile in docs/specs/companion-conformance.md.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/process (the `ProcessMessage` operationId).
	ProcessMessage(ctx context.Context, body ProcessMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReviseMessageWithBody Revise one ordinary-transit DKIM2 message.
	//
	// Verifies exact inherited revision evidence before server-owned ordinary-transit signing and returns a closed ordered action plan.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/revise (the `ReviseMessage` operationId).
	ReviseMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReviseMessage Revise one ordinary-transit DKIM2 message.
	//
	// Verifies exact inherited revision evidence before server-owned ordinary-transit signing and returns a closed ordered action plan.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/revise (the `ReviseMessage` operationId).
	ReviseMessage(ctx context.Context, body ReviseMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReviseBatchWithBody Revise the external copies of one complete message fanout.
	//
	// The separately authorized trusted MTA supplies the exact original message and incoming envelope, and every actual local and external copy with its current message and prepared outgoing envelope. The daemon verifies the original itself, seals the entire fanout with the reference library, and releases exact completed header fields only for external copies. Every copy has exactly one recipient. Local delivery is independent; failure here never rolls it back. Local policy authorization gates every external output. Caller assertions are not verification evidence. All external outputs succeed together or outputs is empty. This endpoint does not originate unsigned messages or deliver mail. The framed JSON limit is 361053016 bytes; the aggregate decoded original and current message limit is 268435456 bytes. Each message also obeys the deployment's configured server.message_bytes ceiling.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/revise/batch (the `ReviseBatch` operationId).
	ReviseBatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReviseBatch Revise the external copies of one complete message fanout.
	//
	// The separately authorized trusted MTA supplies the exact original message and incoming envelope, and every actual local and external copy with its current message and prepared outgoing envelope. The daemon verifies the original itself, seals the entire fanout with the reference library, and releases exact completed header fields only for external copies. Every copy has exactly one recipient. Local delivery is independent; failure here never rolls it back. Local policy authorization gates every external output. Caller assertions are not verification evidence. All external outputs succeed together or outputs is empty. This endpoint does not originate unsigned messages or deliver mail. The framed JSON limit is 361053016 bytes; the aggregate decoded original and current message limit is 268435456 bytes. Each message also obeys the deployment's configured server.message_bytes ceiling.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/revise/batch (the `ReviseBatch` operationId).
	ReviseBatch(ctx context.Context, body ReviseBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBatchRevisionCapabilities Inspect the enabled batch revision contract without signing.
	//
	// Uses the batch revision capability. A successful response requires the configured batch signing service and current daemon readiness. It advertises implementation bounds, not availability of a particular tenant profile, remote DNS key, or validity of a future message. Query strings, request bodies, content metadata, expectations, and conditional request headers are not accepted. This route does not perform cryptography, reserve delivery state, or disclose key material.
	//
	// Corresponds with GET /v1/revise/batch/capabilities (the `GetBatchRevisionCapabilities` operationId).
	GetBatchRevisionCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SignMessageWithBody Sign one originator DKIM2 message.
	//
	// Resolves server-owned originator policy and signing material and returns a closed ordered append-only action plan.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/sign (the `SignMessage` operationId).
	SignMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SignMessage Sign one originator DKIM2 message.
	//
	// Resolves server-owned originator policy and signing material and returns a closed ordered append-only action plan.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/sign (the `SignMessage` operationId).
	SignMessage(ctx context.Context, body SignMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

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

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

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

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) CommitDeliveryStatusPropagationWithBodyWithResponse

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

CommitDeliveryStatusPropagationWithBodyWithResponse Commit one reserved delivery-status propagation coordinate.

Moves the propagation replay coordinate bound to the supplied commit token from pending to committed. The caller invokes this operation only after its own re-injection of the signed notification was accepted. The operation is idempotent for an already committed coordinate. A token that is unknown, malformed, or outside the retention window is answered 409 so that the caller defers instead of leaving the coordinate uncommitted.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/dsn/propagate/commit (the `CommitDeliveryStatusPropagation` operationId).

func (*ClientWithResponses) CommitDeliveryStatusPropagationWithResponse

func (c *ClientWithResponses) CommitDeliveryStatusPropagationWithResponse(ctx context.Context, body CommitDeliveryStatusPropagationJSONRequestBody, reqEditors ...RequestEditorFn) (*CommitDeliveryStatusPropagationResponse, error)

CommitDeliveryStatusPropagationWithResponse Commit one reserved delivery-status propagation coordinate.

Moves the propagation replay coordinate bound to the supplied commit token from pending to committed. The caller invokes this operation only after its own re-injection of the signed notification was accepted. The operation is idempotent for an already committed coordinate. A token that is unknown, malformed, or outside the retention window is answered 409 so that the caller defers instead of leaving the coordinate uncommitted.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/dsn/propagate/commit (the `CommitDeliveryStatusPropagation` operationId).

func (*ClientWithResponses) GetBatchRevisionCapabilitiesWithResponse

func (c *ClientWithResponses) GetBatchRevisionCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBatchRevisionCapabilitiesResponse, error)

GetBatchRevisionCapabilitiesWithResponse Inspect the enabled batch revision contract without signing.

Uses the batch revision capability. A successful response requires the configured batch signing service and current daemon readiness. It advertises implementation bounds, not availability of a particular tenant profile, remote DNS key, or validity of a future message. Query strings, request bodies, content metadata, expectations, and conditional request headers are not accepted. This route does not perform cryptography, reserve delivery state, or disclose key material.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/revise/batch/capabilities (the `GetBatchRevisionCapabilities` operationId).

func (*ClientWithResponses) GetHealthWithResponse

func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

GetHealthWithResponse Report process liveness.

Returns the closed process-liveness representation.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /healthz (the `GetHealth` operationId).

func (*ClientWithResponses) GetMetricsWithResponse

func (c *ClientWithResponses) GetMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMetricsResponse, error)

GetMetricsWithResponse Report process-local Prometheus metrics.

Returns one deterministic bounded text exposition from the instance-owned registry. The scrape is unauthenticated, untraced, and independent of service readiness.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /metrics (the `GetMetrics` operationId).

func (*ClientWithResponses) GetReadinessWithResponse

func (c *ClientWithResponses) GetReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadinessResponse, error)

GetReadinessWithResponse Report service readiness.

Returns readiness only after every required dependency is ready.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /readyz (the `GetReadiness` operationId).

func (*ClientWithResponses) HeadHealthWithResponse

func (c *ClientWithResponses) HeadHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeadHealthResponse, error)

HeadHealthWithResponse Report process liveness without a response body.

Returns the same status and representation metadata, including Content-Type and the GET representation's Content-Length, as getHealth, but emits no response body. A 304 response instead has neither Content-Type nor Content-Length and uses only its declared minimal metadata.

Returns a wrapper object for the known response body format(s).

Corresponds with HEAD /healthz (the `HeadHealth` operationId).

func (*ClientWithResponses) HeadReadinessWithResponse

func (c *ClientWithResponses) HeadReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeadReadinessResponse, error)

HeadReadinessWithResponse Report service readiness without a response body.

Returns the same status and representation metadata, including Content-Type and the GET representation's Content-Length, as getReadiness, but emits no response body. A 304 response instead has neither Content-Type nor Content-Length and uses only its declared minimal metadata.

Returns a wrapper object for the known response body format(s).

Corresponds with HEAD /readyz (the `HeadReadiness` operationId).

func (*ClientWithResponses) ProcessMessageWithBodyWithResponse

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

ProcessMessageWithBodyWithResponse Process one inbound DKIM2 message.

Classifies DKIM2 applicability before verification. A message with no Message-Instance and no DKIM2-Signature fields is the Draft-09 Section 14.1 NONE state: it returns 200 with verification and authentication state NONE, policy verdict continue with reason none, replay not_checked, and disposition continue, without starting verification, policy evaluation, replay, DNS, or signing work. Its only possible action is the daemon-owned Authentication-Results dkim2=none report when a local reporting authority is configured. A message carrying either field family is verified, receives server-owned policy and the configured replay check, and returns a closed final disposition. This operation neither signs nor revises a message. Authentication-Results uses the bounded reporting profile in docs/specs/companion-conformance.md.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/process (the `ProcessMessage` operationId).

func (*ClientWithResponses) ProcessMessageWithResponse

func (c *ClientWithResponses) ProcessMessageWithResponse(ctx context.Context, body ProcessMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*ProcessMessageResponse, error)

ProcessMessageWithResponse Process one inbound DKIM2 message.

Classifies DKIM2 applicability before verification. A message with no Message-Instance and no DKIM2-Signature fields is the Draft-09 Section 14.1 NONE state: it returns 200 with verification and authentication state NONE, policy verdict continue with reason none, replay not_checked, and disposition continue, without starting verification, policy evaluation, replay, DNS, or signing work. Its only possible action is the daemon-owned Authentication-Results dkim2=none report when a local reporting authority is configured. A message carrying either field family is verified, receives server-owned policy and the configured replay check, and returns a closed final disposition. This operation neither signs nor revises a message. Authentication-Results uses the bounded reporting profile in docs/specs/companion-conformance.md.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/process (the `ProcessMessage` operationId).

func (*ClientWithResponses) PropagateDeliveryStatusWithBodyWithResponse

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

PropagateDeliveryStatusWithBodyWithResponse Rebuild and sign one propagated delivery-status notification.

Evaluates one received RFC 6522 delivery-status notification whose embedded original is DKIM2 signed, proves that this system is the signing hop the notification was addressed to, rebuilds the state the previous hop signed, and returns a signed notification addressed to that previous hop together with an opaque commit token. The route reserves a distinct propagation replay coordinate before rebuilding and returns the coordinate to the caller only through that token; the caller commits it after its own re-injection succeeded. This dedicated operation never accepts a process, originator-signing, revision, or delivery-status signing capability.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/dsn/propagate (the `PropagateDeliveryStatus` operationId).

func (*ClientWithResponses) PropagateDeliveryStatusWithResponse

func (c *ClientWithResponses) PropagateDeliveryStatusWithResponse(ctx context.Context, body PropagateDeliveryStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PropagateDeliveryStatusResponse, error)

PropagateDeliveryStatusWithResponse Rebuild and sign one propagated delivery-status notification.

Evaluates one received RFC 6522 delivery-status notification whose embedded original is DKIM2 signed, proves that this system is the signing hop the notification was addressed to, rebuilds the state the previous hop signed, and returns a signed notification addressed to that previous hop together with an opaque commit token. The route reserves a distinct propagation replay coordinate before rebuilding and returns the coordinate to the caller only through that token; the caller commits it after its own re-injection succeeded. This dedicated operation never accepts a process, originator-signing, revision, or delivery-status signing capability.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/dsn/propagate (the `PropagateDeliveryStatus` operationId).

func (*ClientWithResponses) ReviseBatchWithBodyWithResponse

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

ReviseBatchWithBodyWithResponse Revise the external copies of one complete message fanout.

The separately authorized trusted MTA supplies the exact original message and incoming envelope, and every actual local and external copy with its current message and prepared outgoing envelope. The daemon verifies the original itself, seals the entire fanout with the reference library, and releases exact completed header fields only for external copies. Every copy has exactly one recipient. Local delivery is independent; failure here never rolls it back. Local policy authorization gates every external output. Caller assertions are not verification evidence. All external outputs succeed together or outputs is empty. This endpoint does not originate unsigned messages or deliver mail. The framed JSON limit is 361053016 bytes; the aggregate decoded original and current message limit is 268435456 bytes. Each message also obeys the deployment's configured server.message_bytes ceiling.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/revise/batch (the `ReviseBatch` operationId).

func (*ClientWithResponses) ReviseBatchWithResponse

func (c *ClientWithResponses) ReviseBatchWithResponse(ctx context.Context, body ReviseBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*ReviseBatchResponse, error)

ReviseBatchWithResponse Revise the external copies of one complete message fanout.

The separately authorized trusted MTA supplies the exact original message and incoming envelope, and every actual local and external copy with its current message and prepared outgoing envelope. The daemon verifies the original itself, seals the entire fanout with the reference library, and releases exact completed header fields only for external copies. Every copy has exactly one recipient. Local delivery is independent; failure here never rolls it back. Local policy authorization gates every external output. Caller assertions are not verification evidence. All external outputs succeed together or outputs is empty. This endpoint does not originate unsigned messages or deliver mail. The framed JSON limit is 361053016 bytes; the aggregate decoded original and current message limit is 268435456 bytes. Each message also obeys the deployment's configured server.message_bytes ceiling.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/revise/batch (the `ReviseBatch` operationId).

func (*ClientWithResponses) ReviseMessageWithBodyWithResponse

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

ReviseMessageWithBodyWithResponse Revise one ordinary-transit DKIM2 message.

Verifies exact inherited revision evidence before server-owned ordinary-transit signing and returns a closed ordered action plan.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/revise (the `ReviseMessage` operationId).

func (*ClientWithResponses) ReviseMessageWithResponse

func (c *ClientWithResponses) ReviseMessageWithResponse(ctx context.Context, body ReviseMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*ReviseMessageResponse, error)

ReviseMessageWithResponse Revise one ordinary-transit DKIM2 message.

Verifies exact inherited revision evidence before server-owned ordinary-transit signing and returns a closed ordered action plan.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/revise (the `ReviseMessage` operationId).

func (*ClientWithResponses) SignDeliveryStatusWithBodyWithResponse

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

SignDeliveryStatusWithBodyWithResponse Sign one delivery-status report.

Authenticates a Postfix bounce(8) RFC 6522 multipart/report containing RFC 3464 delivery-status content, supplied by the separately authorized Postfix DSN adapter, requires its exact null reverse-path envelope, and authenticates the embedded DKIM2 object without fabricating original SMTP envelope evidence before returning an append-only DKIM2 signing action plan. This dedicated operation never accepts an ordinary sign or revision capability. Possession of the distinct DSN signing capability attests that the adapter established trusted Postfix internal origin before invoking this route.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/dsn/sign (the `SignDeliveryStatus` operationId).

func (*ClientWithResponses) SignDeliveryStatusWithResponse

func (c *ClientWithResponses) SignDeliveryStatusWithResponse(ctx context.Context, body SignDeliveryStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*SignDeliveryStatusResponse, error)

SignDeliveryStatusWithResponse Sign one delivery-status report.

Authenticates a Postfix bounce(8) RFC 6522 multipart/report containing RFC 3464 delivery-status content, supplied by the separately authorized Postfix DSN adapter, requires its exact null reverse-path envelope, and authenticates the embedded DKIM2 object without fabricating original SMTP envelope evidence before returning an append-only DKIM2 signing action plan. This dedicated operation never accepts an ordinary sign or revision capability. Possession of the distinct DSN signing capability attests that the adapter established trusted Postfix internal origin before invoking this route.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/dsn/sign (the `SignDeliveryStatus` operationId).

func (*ClientWithResponses) SignMessageWithBodyWithResponse

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

SignMessageWithBodyWithResponse Sign one originator DKIM2 message.

Resolves server-owned originator policy and signing material and returns a closed ordered append-only action plan.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/sign (the `SignMessage` operationId).

func (*ClientWithResponses) SignMessageWithResponse

func (c *ClientWithResponses) SignMessageWithResponse(ctx context.Context, body SignMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SignMessageResponse, error)

SignMessageWithResponse Sign one originator DKIM2 message.

Resolves server-owned originator policy and signing material and returns a closed ordered append-only action plan.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/sign (the `SignMessage` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetHealthWithResponse Report process liveness.
	//
	// Returns the closed process-liveness representation.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /healthz (the `GetHealth` operationId).
	GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

	// HeadHealthWithResponse Report process liveness without a response body.
	//
	// Returns the same status and representation metadata, including Content-Type and the GET representation's Content-Length, as getHealth, but emits no response body. A 304 response instead has neither Content-Type nor Content-Length and uses only its declared minimal metadata.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with HEAD /healthz (the `HeadHealth` operationId).
	HeadHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeadHealthResponse, error)

	// GetMetricsWithResponse Report process-local Prometheus metrics.
	//
	// Returns one deterministic bounded text exposition from the instance-owned registry. The scrape is unauthenticated, untraced, and independent of service readiness.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /metrics (the `GetMetrics` operationId).
	GetMetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMetricsResponse, error)

	// GetReadinessWithResponse Report service readiness.
	//
	// Returns readiness only after every required dependency is ready.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /readyz (the `GetReadiness` operationId).
	GetReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadinessResponse, error)

	// HeadReadinessWithResponse Report service readiness without a response body.
	//
	// Returns the same status and representation metadata, including Content-Type and the GET representation's Content-Length, as getReadiness, but emits no response body. A 304 response instead has neither Content-Type nor Content-Length and uses only its declared minimal metadata.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with HEAD /readyz (the `HeadReadiness` operationId).
	HeadReadinessWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeadReadinessResponse, error)

	// PropagateDeliveryStatusWithBodyWithResponse Rebuild and sign one propagated delivery-status notification.
	//
	// Evaluates one received RFC 6522 delivery-status notification whose embedded original is DKIM2 signed, proves that this system is the signing hop the notification was addressed to, rebuilds the state the previous hop signed, and returns a signed notification addressed to that previous hop together with an opaque commit token. The route reserves a distinct propagation replay coordinate before rebuilding and returns the coordinate to the caller only through that token; the caller commits it after its own re-injection succeeded. This dedicated operation never accepts a process, originator-signing, revision, or delivery-status signing capability.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/dsn/propagate (the `PropagateDeliveryStatus` operationId).
	PropagateDeliveryStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PropagateDeliveryStatusResponse, error)

	// PropagateDeliveryStatusWithResponse Rebuild and sign one propagated delivery-status notification.
	//
	// Evaluates one received RFC 6522 delivery-status notification whose embedded original is DKIM2 signed, proves that this system is the signing hop the notification was addressed to, rebuilds the state the previous hop signed, and returns a signed notification addressed to that previous hop together with an opaque commit token. The route reserves a distinct propagation replay coordinate before rebuilding and returns the coordinate to the caller only through that token; the caller commits it after its own re-injection succeeded. This dedicated operation never accepts a process, originator-signing, revision, or delivery-status signing capability.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/dsn/propagate (the `PropagateDeliveryStatus` operationId).
	PropagateDeliveryStatusWithResponse(ctx context.Context, body PropagateDeliveryStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PropagateDeliveryStatusResponse, error)

	// CommitDeliveryStatusPropagationWithBodyWithResponse Commit one reserved delivery-status propagation coordinate.
	//
	// Moves the propagation replay coordinate bound to the supplied commit token from pending to committed. The caller invokes this operation only after its own re-injection of the signed notification was accepted. The operation is idempotent for an already committed coordinate. A token that is unknown, malformed, or outside the retention window is answered 409 so that the caller defers instead of leaving the coordinate uncommitted.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/dsn/propagate/commit (the `CommitDeliveryStatusPropagation` operationId).
	CommitDeliveryStatusPropagationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CommitDeliveryStatusPropagationResponse, error)

	// CommitDeliveryStatusPropagationWithResponse Commit one reserved delivery-status propagation coordinate.
	//
	// Moves the propagation replay coordinate bound to the supplied commit token from pending to committed. The caller invokes this operation only after its own re-injection of the signed notification was accepted. The operation is idempotent for an already committed coordinate. A token that is unknown, malformed, or outside the retention window is answered 409 so that the caller defers instead of leaving the coordinate uncommitted.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/dsn/propagate/commit (the `CommitDeliveryStatusPropagation` operationId).
	CommitDeliveryStatusPropagationWithResponse(ctx context.Context, body CommitDeliveryStatusPropagationJSONRequestBody, reqEditors ...RequestEditorFn) (*CommitDeliveryStatusPropagationResponse, error)

	// SignDeliveryStatusWithBodyWithResponse Sign one delivery-status report.
	//
	// Authenticates a Postfix bounce(8) RFC 6522 multipart/report containing RFC 3464 delivery-status content, supplied by the separately authorized Postfix DSN adapter, requires its exact null reverse-path envelope, and authenticates the embedded DKIM2 object without fabricating original SMTP envelope evidence before returning an append-only DKIM2 signing action plan. This dedicated operation never accepts an ordinary sign or revision capability. Possession of the distinct DSN signing capability attests that the adapter established trusted Postfix internal origin before invoking this route.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/dsn/sign (the `SignDeliveryStatus` operationId).
	SignDeliveryStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SignDeliveryStatusResponse, error)

	// SignDeliveryStatusWithResponse Sign one delivery-status report.
	//
	// Authenticates a Postfix bounce(8) RFC 6522 multipart/report containing RFC 3464 delivery-status content, supplied by the separately authorized Postfix DSN adapter, requires its exact null reverse-path envelope, and authenticates the embedded DKIM2 object without fabricating original SMTP envelope evidence before returning an append-only DKIM2 signing action plan. This dedicated operation never accepts an ordinary sign or revision capability. Possession of the distinct DSN signing capability attests that the adapter established trusted Postfix internal origin before invoking this route.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/dsn/sign (the `SignDeliveryStatus` operationId).
	SignDeliveryStatusWithResponse(ctx context.Context, body SignDeliveryStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*SignDeliveryStatusResponse, error)

	// ProcessMessageWithBodyWithResponse Process one inbound DKIM2 message.
	//
	// Classifies DKIM2 applicability before verification. A message with no Message-Instance and no DKIM2-Signature fields is the Draft-09 Section 14.1 NONE state: it returns 200 with verification and authentication state NONE, policy verdict continue with reason none, replay not_checked, and disposition continue, without starting verification, policy evaluation, replay, DNS, or signing work. Its only possible action is the daemon-owned Authentication-Results dkim2=none report when a local reporting authority is configured. A message carrying either field family is verified, receives server-owned policy and the configured replay check, and returns a closed final disposition. This operation neither signs nor revises a message. Authentication-Results uses the bounded reporting profile in docs/specs/companion-conformance.md.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/process (the `ProcessMessage` operationId).
	ProcessMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ProcessMessageResponse, error)

	// ProcessMessageWithResponse Process one inbound DKIM2 message.
	//
	// Classifies DKIM2 applicability before verification. A message with no Message-Instance and no DKIM2-Signature fields is the Draft-09 Section 14.1 NONE state: it returns 200 with verification and authentication state NONE, policy verdict continue with reason none, replay not_checked, and disposition continue, without starting verification, policy evaluation, replay, DNS, or signing work. Its only possible action is the daemon-owned Authentication-Results dkim2=none report when a local reporting authority is configured. A message carrying either field family is verified, receives server-owned policy and the configured replay check, and returns a closed final disposition. This operation neither signs nor revises a message. Authentication-Results uses the bounded reporting profile in docs/specs/companion-conformance.md.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/process (the `ProcessMessage` operationId).
	ProcessMessageWithResponse(ctx context.Context, body ProcessMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*ProcessMessageResponse, error)

	// ReviseMessageWithBodyWithResponse Revise one ordinary-transit DKIM2 message.
	//
	// Verifies exact inherited revision evidence before server-owned ordinary-transit signing and returns a closed ordered action plan.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/revise (the `ReviseMessage` operationId).
	ReviseMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReviseMessageResponse, error)

	// ReviseMessageWithResponse Revise one ordinary-transit DKIM2 message.
	//
	// Verifies exact inherited revision evidence before server-owned ordinary-transit signing and returns a closed ordered action plan.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/revise (the `ReviseMessage` operationId).
	ReviseMessageWithResponse(ctx context.Context, body ReviseMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*ReviseMessageResponse, error)

	// ReviseBatchWithBodyWithResponse Revise the external copies of one complete message fanout.
	//
	// The separately authorized trusted MTA supplies the exact original message and incoming envelope, and every actual local and external copy with its current message and prepared outgoing envelope. The daemon verifies the original itself, seals the entire fanout with the reference library, and releases exact completed header fields only for external copies. Every copy has exactly one recipient. Local delivery is independent; failure here never rolls it back. Local policy authorization gates every external output. Caller assertions are not verification evidence. All external outputs succeed together or outputs is empty. This endpoint does not originate unsigned messages or deliver mail. The framed JSON limit is 361053016 bytes; the aggregate decoded original and current message limit is 268435456 bytes. Each message also obeys the deployment's configured server.message_bytes ceiling.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/revise/batch (the `ReviseBatch` operationId).
	ReviseBatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReviseBatchResponse, error)

	// ReviseBatchWithResponse Revise the external copies of one complete message fanout.
	//
	// The separately authorized trusted MTA supplies the exact original message and incoming envelope, and every actual local and external copy with its current message and prepared outgoing envelope. The daemon verifies the original itself, seals the entire fanout with the reference library, and releases exact completed header fields only for external copies. Every copy has exactly one recipient. Local delivery is independent; failure here never rolls it back. Local policy authorization gates every external output. Caller assertions are not verification evidence. All external outputs succeed together or outputs is empty. This endpoint does not originate unsigned messages or deliver mail. The framed JSON limit is 361053016 bytes; the aggregate decoded original and current message limit is 268435456 bytes. Each message also obeys the deployment's configured server.message_bytes ceiling.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/revise/batch (the `ReviseBatch` operationId).
	ReviseBatchWithResponse(ctx context.Context, body ReviseBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*ReviseBatchResponse, error)

	// GetBatchRevisionCapabilitiesWithResponse Inspect the enabled batch revision contract without signing.
	//
	// Uses the batch revision capability. A successful response requires the configured batch signing service and current daemon readiness. It advertises implementation bounds, not availability of a particular tenant profile, remote DNS key, or validity of a future message. Query strings, request bodies, content metadata, expectations, and conditional request headers are not accepted. This route does not perform cryptography, reserve delivery state, or disclose key material.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/revise/batch/capabilities (the `GetBatchRevisionCapabilities` operationId).
	GetBatchRevisionCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBatchRevisionCapabilitiesResponse, error)

	// SignMessageWithBodyWithResponse Sign one originator DKIM2 message.
	//
	// Resolves server-owned originator policy and signing material and returns a closed ordered append-only action plan.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/sign (the `SignMessage` operationId).
	SignMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SignMessageResponse, error)

	// SignMessageWithResponse Sign one originator DKIM2 message.
	//
	// Resolves server-owned originator policy and signing material and returns a closed ordered append-only action plan.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/sign (the `SignMessage` operationId).
	SignMessageWithResponse(ctx context.Context, body SignMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SignMessageResponse, error)
}

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

type CommitDeliveryStatusPropagationJSONRequestBody

type CommitDeliveryStatusPropagationJSONRequestBody = DSNPropagateCommitRequest

CommitDeliveryStatusPropagationJSONRequestBody defines body for CommitDeliveryStatusPropagation for application/json ContentType.

type CommitDeliveryStatusPropagationResponse

type CommitDeliveryStatusPropagationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DSNPropagateCommitResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON408 the response for an HTTP 408 `application/json` response
	JSON408 *RequestTimeout
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *RequestTooLarge
	// JSON415 the response for an HTTP 415 `application/json` response
	JSON415 *UnsupportedMediaType
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *CommitDeliveryStatusPropagationResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CommitDeliveryStatusPropagationResponse400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CommitDeliveryStatusPropagationResponse403Headers
	// Headers408 the parsed response headers for an HTTP 408 response
	Headers408 *CommitDeliveryStatusPropagationResponse408Headers
	// Headers409 the parsed response headers for an HTTP 409 response
	Headers409 *CommitDeliveryStatusPropagationResponse409Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *CommitDeliveryStatusPropagationResponse413Headers
	// Headers415 the parsed response headers for an HTTP 415 response
	Headers415 *CommitDeliveryStatusPropagationResponse415Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *CommitDeliveryStatusPropagationResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *CommitDeliveryStatusPropagationResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *CommitDeliveryStatusPropagationResponse503Headers
}

func ParseCommitDeliveryStatusPropagationResponse

func ParseCommitDeliveryStatusPropagationResponse(rsp *http.Response) (*CommitDeliveryStatusPropagationResponse, error)

ParseCommitDeliveryStatusPropagationResponse parses an HTTP response from a CommitDeliveryStatusPropagationWithResponse call

func (CommitDeliveryStatusPropagationResponse) ContentType

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

func (CommitDeliveryStatusPropagationResponse) GetBody

GetBody returns the raw response body bytes

func (CommitDeliveryStatusPropagationResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CommitDeliveryStatusPropagationResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CommitDeliveryStatusPropagationResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CommitDeliveryStatusPropagationResponse) GetJSON408

GetJSON408 returns the response for an HTTP 408 `application/json` response

func (CommitDeliveryStatusPropagationResponse) GetJSON409

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CommitDeliveryStatusPropagationResponse) GetJSON413

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (CommitDeliveryStatusPropagationResponse) GetJSON415

GetJSON415 returns the response for an HTTP 415 `application/json` response

func (CommitDeliveryStatusPropagationResponse) GetJSON417

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (CommitDeliveryStatusPropagationResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (CommitDeliveryStatusPropagationResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (CommitDeliveryStatusPropagationResponse) Status

Status returns HTTPResponse.Status

func (CommitDeliveryStatusPropagationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type CommitDeliveryStatusPropagationResponse200Headers

type CommitDeliveryStatusPropagationResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

CommitDeliveryStatusPropagationResponse200Headers the declared response headers of an HTTP 200 response for CommitDeliveryStatusPropagation

type CommitDeliveryStatusPropagationResponse400Headers

type CommitDeliveryStatusPropagationResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

CommitDeliveryStatusPropagationResponse400Headers the declared response headers of an HTTP 400 response for CommitDeliveryStatusPropagation

type CommitDeliveryStatusPropagationResponse403Headers

type CommitDeliveryStatusPropagationResponse403Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

CommitDeliveryStatusPropagationResponse403Headers the declared response headers of an HTTP 403 response for CommitDeliveryStatusPropagation

type CommitDeliveryStatusPropagationResponse408Headers

type CommitDeliveryStatusPropagationResponse408Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

CommitDeliveryStatusPropagationResponse408Headers the declared response headers of an HTTP 408 response for CommitDeliveryStatusPropagation

type CommitDeliveryStatusPropagationResponse409Headers

type CommitDeliveryStatusPropagationResponse409Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

CommitDeliveryStatusPropagationResponse409Headers the declared response headers of an HTTP 409 response for CommitDeliveryStatusPropagation

type CommitDeliveryStatusPropagationResponse413Headers

type CommitDeliveryStatusPropagationResponse413Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

CommitDeliveryStatusPropagationResponse413Headers the declared response headers of an HTTP 413 response for CommitDeliveryStatusPropagation

type CommitDeliveryStatusPropagationResponse415Headers

type CommitDeliveryStatusPropagationResponse415Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

CommitDeliveryStatusPropagationResponse415Headers the declared response headers of an HTTP 415 response for CommitDeliveryStatusPropagation

type CommitDeliveryStatusPropagationResponse417Headers

type CommitDeliveryStatusPropagationResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

CommitDeliveryStatusPropagationResponse417Headers the declared response headers of an HTTP 417 response for CommitDeliveryStatusPropagation

type CommitDeliveryStatusPropagationResponse500Headers

type CommitDeliveryStatusPropagationResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

CommitDeliveryStatusPropagationResponse500Headers the declared response headers of an HTTP 500 response for CommitDeliveryStatusPropagation

type CommitDeliveryStatusPropagationResponse503Headers

type CommitDeliveryStatusPropagationResponse503Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	RetryAfter          string
	XContentTypeOptions string
}

CommitDeliveryStatusPropagationResponse503Headers the declared response headers of an HTTP 503 response for CommitDeliveryStatusPropagation

type CompletedHeaderField

type CompletedHeaderField = wire.ProtectedString

CompletedHeaderField Canonical standard base64 of one complete library-generated Message-Instance or DKIM2-Signature field, including any CRLF folding and its terminal CRLF. Protected transport material, never diagnostics.

type Conflict

type Conflict = ErrorResponse

Conflict defines model for Conflict.

type DSNMessageInput

type DSNMessageInput struct {
	RawRfc5322Base64 wire.ProtectedString `json:"raw_rfc5322_base64"`
}

DSNMessageInput defines model for DSNMessageInput.

type DSNPropagateCommitRequest

type DSNPropagateCommitRequest struct {
	ApiVersion APIVersion `json:"api_version"`

	// CommitToken Opaque bounded token bound to one reserved propagation coordinate, not to one issuing attempt. It carries no caller-readable structure and must not be logged.
	CommitToken PropagationCommitToken `json:"commit_token"`
	Draft       DraftVersion           `json:"draft"`
}

DSNPropagateCommitRequest defines model for DSNPropagateCommitRequest.

type DSNPropagateCommitResponse

type DSNPropagateCommitResponse struct {
	ApiVersion APIVersion                      `json:"api_version"`
	Draft      DraftVersion                    `json:"draft"`
	State      DSNPropagateCommitResponseState `json:"state"`
}

DSNPropagateCommitResponse defines model for DSNPropagateCommitResponse.

type DSNPropagateCommitResponseState

type DSNPropagateCommitResponseState string

DSNPropagateCommitResponseState defines model for DSNPropagateCommitResponse.State.

const (
	PropagationStateCommitted DSNPropagateCommitResponseState = "committed"
)

Defines values for DSNPropagateCommitResponseState.

func (DSNPropagateCommitResponseState) Valid

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

type DSNPropagateRequest

type DSNPropagateRequest struct {
	ApiVersion APIVersion `json:"api_version"`

	// Context Administrative tenant that owns local authority resolution and the canonical reporting MTA name rendered into the rebuilt report. The daemon derives the propagation signing domain from the cryptographically authenticated completion signature, never from this member.
	Context PropagationContext `json:"context"`
	Draft   DraftVersion       `json:"draft"`

	// Message Received RFC 6522 delivery-status notification bytes together with the caller's explicit representation claim.
	Message PropagationMessageInput `json:"message"`

	// OuterSmtp Exact observed envelope of the received notification itself. mail_from must be the null reverse path and rcpt_to must contain exactly the one local return-path address the notification was delivered to.
	OuterSmtp PropagationSMTPInput `json:"outer_smtp"`
}

DSNPropagateRequest defines model for DSNPropagateRequest.

type DSNPropagateResponse

type DSNPropagateResponse struct {
	ApiVersion APIVersion `json:"api_version"`

	// DeliveryStatus Closed received-DSN projection. Present only when the evaluation ran.
	DeliveryStatus *DeliveryStatusProjection `json:"delivery_status,omitempty"`

	// Disposition Closed propagation disposition. It is distinct from the shared disposition because propagation adds discard, which answers a notification that must not be propagated and must not be reported as a failure, and because it never uses continue. Coherence with the operation result is fixed: pass permits accept or discard, permerror requires discard, fail requires reject, and temperror requires tempfail.
	Disposition PropagationDisposition        `json:"disposition"`
	Draft       DraftVersion                  `json:"draft"`
	Operation   DSNPropagateResponseOperation `json:"operation"`

	// Propagation Signed notification and its transport requirements. Present only with accept.
	Propagation *PropagationOutput `json:"propagation,omitempty"`

	// PropagationFailure Permanent reason why no notification was produced. Present only with permerror.
	PropagationFailure *DSNPropagateResponsePropagationFailure `json:"propagation_failure,omitempty"`
	Replay             ReplayResult                            `json:"replay"`
	Result             DSNPropagateResponseResult              `json:"result"`
}

DSNPropagateResponse Propagation result. Result and disposition are coherent under this operation's own rule: pass permits accept or discard, permerror requires discard, fail requires reject, and temperror requires tempfail. Only accept carries the propagation member, and only permerror carries the propagation_failure member. A notification that is not ours is a misrouting on this route and is reported as fail with reject, unlike the informational projection of the process route. The delivery_status member is present only when the received-DSN evaluation ran. It is absent when the notification carries no DKIM2 field family at all and when the outer assessment was unusable, because the projection has no value for an assessment that never happened and a fabricated malformed structure would be false evidence.

type DSNPropagateResponseOperation

type DSNPropagateResponseOperation string

DSNPropagateResponseOperation defines model for DSNPropagateResponse.Operation.

const (
	PropagationOperationDeliveryStatusPropagation DSNPropagateResponseOperation = "delivery_status_propagation"
)

Defines values for DSNPropagateResponseOperation.

func (DSNPropagateResponseOperation) Valid

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

type DSNPropagateResponsePropagationFailure

type DSNPropagateResponsePropagationFailure string

DSNPropagateResponsePropagationFailure Permanent reason why no notification was produced. Present only with permerror.

const (
	PropagationFailureNotReconstructable  DSNPropagateResponsePropagationFailure = "not_reconstructable"
	PropagationFailureUnprovisionedDomain DSNPropagateResponsePropagationFailure = "unprovisioned_domain"
)

Defines values for DSNPropagateResponsePropagationFailure.

func (DSNPropagateResponsePropagationFailure) Valid

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

type DSNPropagateResponseResult

type DSNPropagateResponseResult string

DSNPropagateResponseResult defines model for DSNPropagateResponse.Result.

const (
	PropagationResultFail      DSNPropagateResponseResult = "fail"
	PropagationResultPass      DSNPropagateResponseResult = "pass"
	PropagationResultPermerror DSNPropagateResponseResult = "permerror"
	PropagationResultTemperror DSNPropagateResponseResult = "temperror"
)

Defines values for DSNPropagateResponseResult.

func (DSNPropagateResponseResult) Valid

func (e DSNPropagateResponseResult) Valid() bool

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

type DSNSignRequest

type DSNSignRequest struct {
	ApiVersion APIVersion `json:"api_version"`

	// Context Administrative tenant only. The daemon derives the exact signing domain from the cryptographically authenticated highest embedded DKIM2 d= value before resolving delivery_status policy.
	Context DeliveryStatusContext `json:"context"`
	Draft   DraftVersion          `json:"draft"`

	// Message Postfix Milter-reconstructed RFC 5322 DSN bytes. The authenticated route, not a caller-selected body field, fixes this representation.
	Message DSNMessageInput `json:"message"`

	// OuterSmtp Exact observed envelope of the DSN itself. mail_from must be <> and rcpt_to must contain exactly one recipient.
	OuterSmtp SMTPInput `json:"outer_smtp"`
}

DSNSignRequest defines model for DSNSignRequest.

type DeliveryStatusContext

type DeliveryStatusContext struct {
	Tenant string `json:"tenant"`
}

DeliveryStatusContext defines model for DeliveryStatusContext.

type DeliveryStatusProjection

type DeliveryStatusProjection struct {
	Embedded         DeliveryStatusProjectionEmbedded         `json:"embedded"`
	LocalHop         DeliveryStatusProjectionLocalHop         `json:"local_hop"`
	OuterAlignment   DeliveryStatusProjectionOuterAlignment   `json:"outer_alignment"`
	Propagation      DeliveryStatusProjectionPropagation      `json:"propagation"`
	RecipientLinkage DeliveryStatusProjectionRecipientLinkage `json:"recipient_linkage"`
	Structure        DeliveryStatusProjectionStructure        `json:"structure"`
}

DeliveryStatusProjection Closed received delivery-status evaluation projection. The stages are evaluated in member order and stop at the first failure, so a member is not_evaluated when an earlier stage stopped the evaluation or, for local_hop and propagation, when no tenant was available. not_evaluated never carries a temporary meaning; a temporary key or DNS failure is reported as embedded temperror and a temporary datasource failure as local_hop temperror. The propagation member is informational: it reports whether a propagation attempt could act on this notification.

type DeliveryStatusProjectionEmbedded

type DeliveryStatusProjectionEmbedded string

DeliveryStatusProjectionEmbedded defines model for DeliveryStatusProjection.Embedded.

const (
	DeliveryStatusEmbeddedAbsent              DeliveryStatusProjectionEmbedded = "absent"
	DeliveryStatusEmbeddedNotEvaluated        DeliveryStatusProjectionEmbedded = "not_evaluated"
	DeliveryStatusEmbeddedTemperror           DeliveryStatusProjectionEmbedded = "temperror"
	DeliveryStatusEmbeddedUnverified          DeliveryStatusProjectionEmbedded = "unverified"
	DeliveryStatusEmbeddedVerified            DeliveryStatusProjectionEmbedded = "verified"
	DeliveryStatusEmbeddedVerifiedHeadersOnly DeliveryStatusProjectionEmbedded = "verified_headers_only"
)

Defines values for DeliveryStatusProjectionEmbedded.

func (DeliveryStatusProjectionEmbedded) Valid

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

type DeliveryStatusProjectionLocalHop

type DeliveryStatusProjectionLocalHop string

DeliveryStatusProjectionLocalHop defines model for DeliveryStatusProjection.LocalHop.

const (
	DeliveryStatusLocalHopLocal        DeliveryStatusProjectionLocalHop = "local"
	DeliveryStatusLocalHopMismatch     DeliveryStatusProjectionLocalHop = "mismatch"
	DeliveryStatusLocalHopNotEvaluated DeliveryStatusProjectionLocalHop = "not_evaluated"
	DeliveryStatusLocalHopNotLocal     DeliveryStatusProjectionLocalHop = "not_local"
	DeliveryStatusLocalHopTemperror    DeliveryStatusProjectionLocalHop = "temperror"
)

Defines values for DeliveryStatusProjectionLocalHop.

func (DeliveryStatusProjectionLocalHop) Valid

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

type DeliveryStatusProjectionOuterAlignment

type DeliveryStatusProjectionOuterAlignment string

DeliveryStatusProjectionOuterAlignment defines model for DeliveryStatusProjection.OuterAlignment.

const (
	DeliveryStatusOuterAlignmentAligned      DeliveryStatusProjectionOuterAlignment = "aligned"
	DeliveryStatusOuterAlignmentMisaligned   DeliveryStatusProjectionOuterAlignment = "misaligned"
	DeliveryStatusOuterAlignmentNotEvaluated DeliveryStatusProjectionOuterAlignment = "not_evaluated"
)

Defines values for DeliveryStatusProjectionOuterAlignment.

func (DeliveryStatusProjectionOuterAlignment) Valid

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

type DeliveryStatusProjectionPropagation

type DeliveryStatusProjectionPropagation string

DeliveryStatusProjectionPropagation defines model for DeliveryStatusProjection.Propagation.

const (
	DeliveryStatusPropagationEligible                    DeliveryStatusProjectionPropagation = "eligible"
	DeliveryStatusPropagationForbiddenIdentityMisaligned DeliveryStatusProjectionPropagation = "forbidden_identity_misaligned"
	DeliveryStatusPropagationForbiddenNullPreviousSender DeliveryStatusProjectionPropagation = "forbidden_null_previous_sender"
	DeliveryStatusPropagationNotApplicable               DeliveryStatusProjectionPropagation = "not_applicable"
	DeliveryStatusPropagationNotEvaluated                DeliveryStatusProjectionPropagation = "not_evaluated"
	DeliveryStatusPropagationNotFailure                  DeliveryStatusProjectionPropagation = "not_failure"
	DeliveryStatusPropagationNotReconstructable          DeliveryStatusProjectionPropagation = "not_reconstructable"
	DeliveryStatusPropagationTerminalOrigin              DeliveryStatusProjectionPropagation = "terminal_origin"
	DeliveryStatusPropagationUnsupportedChain            DeliveryStatusProjectionPropagation = "unsupported_chain"
)

Defines values for DeliveryStatusProjectionPropagation.

func (DeliveryStatusProjectionPropagation) Valid

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

type DeliveryStatusProjectionRecipientLinkage

type DeliveryStatusProjectionRecipientLinkage string

DeliveryStatusProjectionRecipientLinkage defines model for DeliveryStatusProjection.RecipientLinkage.

const (
	DeliveryStatusRecipientLinkageLinked       DeliveryStatusProjectionRecipientLinkage = "linked"
	DeliveryStatusRecipientLinkageNotEvaluated DeliveryStatusProjectionRecipientLinkage = "not_evaluated"
	DeliveryStatusRecipientLinkageUnlinked     DeliveryStatusProjectionRecipientLinkage = "unlinked"
)

Defines values for DeliveryStatusProjectionRecipientLinkage.

func (DeliveryStatusProjectionRecipientLinkage) Valid

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

type DeliveryStatusProjectionStructure

type DeliveryStatusProjectionStructure string

DeliveryStatusProjectionStructure defines model for DeliveryStatusProjection.Structure.

const (
	DeliveryStatusStructureLimitExceeded DeliveryStatusProjectionStructure = "limit_exceeded"
	DeliveryStatusStructureMalformed     DeliveryStatusProjectionStructure = "malformed"
	DeliveryStatusStructureValid         DeliveryStatusProjectionStructure = "valid"
)

Defines values for DeliveryStatusProjectionStructure.

func (DeliveryStatusProjectionStructure) Valid

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

type Disposition

type Disposition string

Disposition defines model for Disposition.

const (
	DispositionAccept   Disposition = "accept"
	DispositionContinue Disposition = "continue"
	DispositionReject   Disposition = "reject"
	DispositionTempfail Disposition = "tempfail"
)

Defines values for Disposition.

func (Disposition) Valid

func (e Disposition) Valid() bool

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

type DraftVersion

type DraftVersion string

DraftVersion defines model for DraftVersion.

const (
	DraftIetfDkimDkim2Spec09 DraftVersion = "draft-ietf-dkim-dkim2-spec-09"
)

Defines values for DraftVersion.

func (DraftVersion) Valid

func (e DraftVersion) Valid() bool

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

type ErrorResponse

type ErrorResponse struct {
	ApiVersion APIVersion            `json:"api_version"`
	Category   ErrorResponseCategory `json:"category"`
	Code       ErrorResponseCode     `json:"code"`
	Draft      DraftVersion          `json:"draft"`
}

ErrorResponse defines model for ErrorResponse.

type ErrorResponseCategory

type ErrorResponseCategory string

ErrorResponseCategory defines model for ErrorResponse.Category.

const (
	Availability ErrorResponseCategory = "availability"
	Internal     ErrorResponseCategory = "internal"
	Request      ErrorResponseCategory = "request"
)

Defines values for ErrorResponseCategory.

func (ErrorResponseCategory) Valid

func (e ErrorResponseCategory) Valid() bool

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

type ErrorResponseCode

type ErrorResponseCode string

ErrorResponseCode defines model for ErrorResponse.Code.

const (
	ErrorResponseCodeExpectationFailed           ErrorResponseCode = "expectation_failed"
	ErrorResponseCodeForbidden                   ErrorResponseCode = "forbidden"
	ErrorResponseCodeInternalError               ErrorResponseCode = "internal_error"
	ErrorResponseCodeInvalidContract             ErrorResponseCode = "invalid_contract"
	ErrorResponseCodeInvalidJson                 ErrorResponseCode = "invalid_json"
	ErrorResponseCodeMethodNotAllowed            ErrorResponseCode = "method_not_allowed"
	ErrorResponseCodeNotFound                    ErrorResponseCode = "not_found"
	ErrorResponseCodePreconditionFailed          ErrorResponseCode = "precondition_failed"
	ErrorResponseCodePropagationCommitUnresolved ErrorResponseCode = "propagation_commit_unresolved"
	ErrorResponseCodeRequestDeadline             ErrorResponseCode = "request_deadline"
	ErrorResponseCodeRequestTimeout              ErrorResponseCode = "request_timeout"
	ErrorResponseCodeRequestTooLarge             ErrorResponseCode = "request_too_large"
	ErrorResponseCodeServiceNotReady             ErrorResponseCode = "service_not_ready"
	ErrorResponseCodeServiceOverloaded           ErrorResponseCode = "service_overloaded"
	ErrorResponseCodeUnsupportedDraft            ErrorResponseCode = "unsupported_draft"
	ErrorResponseCodeUnsupportedMediaType        ErrorResponseCode = "unsupported_media_type"
	ErrorResponseCodeUnsupportedVersion          ErrorResponseCode = "unsupported_version"
)

Defines values for ErrorResponseCode.

func (ErrorResponseCode) Valid

func (e ErrorResponseCode) Valid() bool

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

type ExpectationFailed

type ExpectationFailed = ErrorResponse

ExpectationFailed defines model for ExpectationFailed.

type Forbidden

type Forbidden = ErrorResponse

Forbidden defines model for Forbidden.

type GetBatchRevisionCapabilitiesResponse

type GetBatchRevisionCapabilitiesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BatchRevisionCapabilities
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetBatchRevisionCapabilitiesResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetBatchRevisionCapabilitiesResponse400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetBatchRevisionCapabilitiesResponse403Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *GetBatchRevisionCapabilitiesResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *GetBatchRevisionCapabilitiesResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetBatchRevisionCapabilitiesResponse503Headers
}

func ParseGetBatchRevisionCapabilitiesResponse

func ParseGetBatchRevisionCapabilitiesResponse(rsp *http.Response) (*GetBatchRevisionCapabilitiesResponse, error)

ParseGetBatchRevisionCapabilitiesResponse parses an HTTP response from a GetBatchRevisionCapabilitiesWithResponse call

func (GetBatchRevisionCapabilitiesResponse) ContentType

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

func (GetBatchRevisionCapabilitiesResponse) GetBody

GetBody returns the raw response body bytes

func (GetBatchRevisionCapabilitiesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetBatchRevisionCapabilitiesResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetBatchRevisionCapabilitiesResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetBatchRevisionCapabilitiesResponse) GetJSON417

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (GetBatchRevisionCapabilitiesResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetBatchRevisionCapabilitiesResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetBatchRevisionCapabilitiesResponse) Status

Status returns HTTPResponse.Status

func (GetBatchRevisionCapabilitiesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetBatchRevisionCapabilitiesResponse200Headers

type GetBatchRevisionCapabilitiesResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetBatchRevisionCapabilitiesResponse200Headers the declared response headers of an HTTP 200 response for GetBatchRevisionCapabilities

type GetBatchRevisionCapabilitiesResponse400Headers

type GetBatchRevisionCapabilitiesResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetBatchRevisionCapabilitiesResponse400Headers the declared response headers of an HTTP 400 response for GetBatchRevisionCapabilities

type GetBatchRevisionCapabilitiesResponse403Headers

type GetBatchRevisionCapabilitiesResponse403Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetBatchRevisionCapabilitiesResponse403Headers the declared response headers of an HTTP 403 response for GetBatchRevisionCapabilities

type GetBatchRevisionCapabilitiesResponse417Headers

type GetBatchRevisionCapabilitiesResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetBatchRevisionCapabilitiesResponse417Headers the declared response headers of an HTTP 417 response for GetBatchRevisionCapabilities

type GetBatchRevisionCapabilitiesResponse500Headers

type GetBatchRevisionCapabilitiesResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetBatchRevisionCapabilitiesResponse500Headers the declared response headers of an HTTP 500 response for GetBatchRevisionCapabilities

type GetBatchRevisionCapabilitiesResponse503Headers

type GetBatchRevisionCapabilitiesResponse503Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	RetryAfter          string
	XContentTypeOptions string
}

GetBatchRevisionCapabilitiesResponse503Headers the declared response headers of an HTTP 503 response for GetBatchRevisionCapabilities

type GetHealthResponse

type GetHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *HealthResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON412 the response for an HTTP 412 `application/json` response
	JSON412 *PreconditionFailed
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetHealthResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetHealthResponse304Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetHealthResponse400Headers
	// Headers412 the parsed response headers for an HTTP 412 response
	Headers412 *GetHealthResponse412Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *GetHealthResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *GetHealthResponse500Headers
}

func ParseGetHealthResponse

func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)

ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call

func (GetHealthResponse) ContentType

func (r GetHealthResponse) ContentType() string

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

func (GetHealthResponse) GetBody

func (r GetHealthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetHealthResponse) GetJSON200

func (r GetHealthResponse) GetJSON200() *HealthResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetHealthResponse) GetJSON400

func (r GetHealthResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetHealthResponse) GetJSON412

func (r GetHealthResponse) GetJSON412() *PreconditionFailed

GetJSON412 returns the response for an HTTP 412 `application/json` response

func (GetHealthResponse) GetJSON417

func (r GetHealthResponse) GetJSON417() *ExpectationFailed

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (GetHealthResponse) GetJSON500

func (r GetHealthResponse) GetJSON500() *InternalError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetHealthResponse) Status

func (r GetHealthResponse) Status() string

Status returns HTTPResponse.Status

func (GetHealthResponse) StatusCode

func (r GetHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHealthResponse200Headers

type GetHealthResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	ETag                string
	XContentTypeOptions string
}

GetHealthResponse200Headers the declared response headers of an HTTP 200 response for GetHealth

type GetHealthResponse304Headers

type GetHealthResponse304Headers struct {
	CacheControl string
	Connection   string
	Date         *string
	ETag         string
}

GetHealthResponse304Headers the declared response headers of an HTTP 304 response for GetHealth

type GetHealthResponse400Headers

type GetHealthResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetHealthResponse400Headers the declared response headers of an HTTP 400 response for GetHealth

type GetHealthResponse412Headers

type GetHealthResponse412Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetHealthResponse412Headers the declared response headers of an HTTP 412 response for GetHealth

type GetHealthResponse417Headers

type GetHealthResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetHealthResponse417Headers the declared response headers of an HTTP 417 response for GetHealth

type GetHealthResponse500Headers

type GetHealthResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetHealthResponse500Headers the declared response headers of an HTTP 500 response for GetHealth

type GetMetricsResponse

type GetMetricsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetMetricsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetMetricsResponse400Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *GetMetricsResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *GetMetricsResponse500Headers
}

func ParseGetMetricsResponse

func ParseGetMetricsResponse(rsp *http.Response) (*GetMetricsResponse, error)

ParseGetMetricsResponse parses an HTTP response from a GetMetricsWithResponse call

func (GetMetricsResponse) ContentType

func (r GetMetricsResponse) ContentType() string

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

func (GetMetricsResponse) GetBody

func (r GetMetricsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMetricsResponse) GetJSON400

func (r GetMetricsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetMetricsResponse) GetJSON417

func (r GetMetricsResponse) GetJSON417() *ExpectationFailed

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (GetMetricsResponse) GetJSON500

func (r GetMetricsResponse) GetJSON500() *InternalError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetMetricsResponse) Status

func (r GetMetricsResponse) Status() string

Status returns HTTPResponse.Status

func (GetMetricsResponse) StatusCode

func (r GetMetricsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMetricsResponse200Headers

type GetMetricsResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetMetricsResponse200Headers the declared response headers of an HTTP 200 response for GetMetrics

type GetMetricsResponse400Headers

type GetMetricsResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetMetricsResponse400Headers the declared response headers of an HTTP 400 response for GetMetrics

type GetMetricsResponse417Headers

type GetMetricsResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetMetricsResponse417Headers the declared response headers of an HTTP 417 response for GetMetrics

type GetMetricsResponse500Headers

type GetMetricsResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetMetricsResponse500Headers the declared response headers of an HTTP 500 response for GetMetrics

type GetReadinessResponse

type GetReadinessResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ReadinessResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON412 the response for an HTTP 412 `application/json` response
	JSON412 *PreconditionFailed
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetReadinessResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *GetReadinessResponse304Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetReadinessResponse400Headers
	// Headers412 the parsed response headers for an HTTP 412 response
	Headers412 *GetReadinessResponse412Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *GetReadinessResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *GetReadinessResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetReadinessResponse503Headers
}

func ParseGetReadinessResponse

func ParseGetReadinessResponse(rsp *http.Response) (*GetReadinessResponse, error)

ParseGetReadinessResponse parses an HTTP response from a GetReadinessWithResponse call

func (GetReadinessResponse) ContentType

func (r GetReadinessResponse) ContentType() string

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

func (GetReadinessResponse) GetBody

func (r GetReadinessResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetReadinessResponse) GetJSON200

func (r GetReadinessResponse) GetJSON200() *ReadinessResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetReadinessResponse) GetJSON400

func (r GetReadinessResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetReadinessResponse) GetJSON412

func (r GetReadinessResponse) GetJSON412() *PreconditionFailed

GetJSON412 returns the response for an HTTP 412 `application/json` response

func (GetReadinessResponse) GetJSON417

func (r GetReadinessResponse) GetJSON417() *ExpectationFailed

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (GetReadinessResponse) GetJSON500

func (r GetReadinessResponse) GetJSON500() *InternalError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetReadinessResponse) GetJSON503

func (r GetReadinessResponse) GetJSON503() *ServiceUnavailable

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetReadinessResponse) Status

func (r GetReadinessResponse) Status() string

Status returns HTTPResponse.Status

func (GetReadinessResponse) StatusCode

func (r GetReadinessResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetReadinessResponse200Headers

type GetReadinessResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	ETag                string
	XContentTypeOptions string
}

GetReadinessResponse200Headers the declared response headers of an HTTP 200 response for GetReadiness

type GetReadinessResponse304Headers

type GetReadinessResponse304Headers struct {
	CacheControl string
	Connection   string
	Date         *string
	ETag         string
}

GetReadinessResponse304Headers the declared response headers of an HTTP 304 response for GetReadiness

type GetReadinessResponse400Headers

type GetReadinessResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetReadinessResponse400Headers the declared response headers of an HTTP 400 response for GetReadiness

type GetReadinessResponse412Headers

type GetReadinessResponse412Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetReadinessResponse412Headers the declared response headers of an HTTP 412 response for GetReadiness

type GetReadinessResponse417Headers

type GetReadinessResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetReadinessResponse417Headers the declared response headers of an HTTP 417 response for GetReadiness

type GetReadinessResponse500Headers

type GetReadinessResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

GetReadinessResponse500Headers the declared response headers of an HTTP 500 response for GetReadiness

type GetReadinessResponse503Headers

type GetReadinessResponse503Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	RetryAfter          string
	XContentTypeOptions string
}

GetReadinessResponse503Headers the declared response headers of an HTTP 503 response for GetReadiness

type HeadHealthResponse

type HeadHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *HeadHealthResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *HeadHealthResponse304Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *HeadHealthResponse400Headers
	// Headers412 the parsed response headers for an HTTP 412 response
	Headers412 *HeadHealthResponse412Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *HeadHealthResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *HeadHealthResponse500Headers
}

func ParseHeadHealthResponse

func ParseHeadHealthResponse(rsp *http.Response) (*HeadHealthResponse, error)

ParseHeadHealthResponse parses an HTTP response from a HeadHealthWithResponse call

func (HeadHealthResponse) ContentType

func (r HeadHealthResponse) ContentType() string

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

func (HeadHealthResponse) GetBody

func (r HeadHealthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HeadHealthResponse) Status

func (r HeadHealthResponse) Status() string

Status returns HTTPResponse.Status

func (HeadHealthResponse) StatusCode

func (r HeadHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HeadHealthResponse200Headers

type HeadHealthResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	ETag                string
	XContentTypeOptions string
}

HeadHealthResponse200Headers the declared response headers of an HTTP 200 response for HeadHealth

type HeadHealthResponse304Headers

type HeadHealthResponse304Headers struct {
	CacheControl string
	Connection   string
	Date         *string
	ETag         string
}

HeadHealthResponse304Headers the declared response headers of an HTTP 304 response for HeadHealth

type HeadHealthResponse400Headers

type HeadHealthResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

HeadHealthResponse400Headers the declared response headers of an HTTP 400 response for HeadHealth

type HeadHealthResponse412Headers

type HeadHealthResponse412Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

HeadHealthResponse412Headers the declared response headers of an HTTP 412 response for HeadHealth

type HeadHealthResponse417Headers

type HeadHealthResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

HeadHealthResponse417Headers the declared response headers of an HTTP 417 response for HeadHealth

type HeadHealthResponse500Headers

type HeadHealthResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

HeadHealthResponse500Headers the declared response headers of an HTTP 500 response for HeadHealth

type HeadReadinessResponse

type HeadReadinessResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *HeadReadinessResponse200Headers
	// Headers304 the parsed response headers for an HTTP 304 response
	Headers304 *HeadReadinessResponse304Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *HeadReadinessResponse400Headers
	// Headers412 the parsed response headers for an HTTP 412 response
	Headers412 *HeadReadinessResponse412Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *HeadReadinessResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *HeadReadinessResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *HeadReadinessResponse503Headers
}

func ParseHeadReadinessResponse

func ParseHeadReadinessResponse(rsp *http.Response) (*HeadReadinessResponse, error)

ParseHeadReadinessResponse parses an HTTP response from a HeadReadinessWithResponse call

func (HeadReadinessResponse) ContentType

func (r HeadReadinessResponse) ContentType() string

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

func (HeadReadinessResponse) GetBody

func (r HeadReadinessResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (HeadReadinessResponse) Status

func (r HeadReadinessResponse) Status() string

Status returns HTTPResponse.Status

func (HeadReadinessResponse) StatusCode

func (r HeadReadinessResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HeadReadinessResponse200Headers

type HeadReadinessResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	ETag                string
	XContentTypeOptions string
}

HeadReadinessResponse200Headers the declared response headers of an HTTP 200 response for HeadReadiness

type HeadReadinessResponse304Headers

type HeadReadinessResponse304Headers struct {
	CacheControl string
	Connection   string
	Date         *string
	ETag         string
}

HeadReadinessResponse304Headers the declared response headers of an HTTP 304 response for HeadReadiness

type HeadReadinessResponse400Headers

type HeadReadinessResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

HeadReadinessResponse400Headers the declared response headers of an HTTP 400 response for HeadReadiness

type HeadReadinessResponse412Headers

type HeadReadinessResponse412Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

HeadReadinessResponse412Headers the declared response headers of an HTTP 412 response for HeadReadiness

type HeadReadinessResponse417Headers

type HeadReadinessResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

HeadReadinessResponse417Headers the declared response headers of an HTTP 417 response for HeadReadiness

type HeadReadinessResponse500Headers

type HeadReadinessResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

HeadReadinessResponse500Headers the declared response headers of an HTTP 500 response for HeadReadiness

type HeadReadinessResponse503Headers

type HeadReadinessResponse503Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	RetryAfter          string
	XContentTypeOptions string
}

HeadReadinessResponse503Headers the declared response headers of an HTTP 503 response for HeadReadiness

type HealthResponse

type HealthResponse struct {
	ApiVersion APIVersion           `json:"api_version"`
	Draft      DraftVersion         `json:"draft"`
	Status     HealthResponseStatus `json:"status"`
}

HealthResponse defines model for HealthResponse.

type HealthResponseStatus

type HealthResponseStatus string

HealthResponseStatus defines model for HealthResponse.Status.

const (
	Alive HealthResponseStatus = "alive"
)

Defines values for HealthResponseStatus.

func (HealthResponseStatus) Valid

func (e HealthResponseStatus) Valid() bool

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

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InternalError

type InternalError = ErrorResponse

InternalError defines model for InternalError.

type MessageInput

type MessageInput struct {
	Fidelity         *MessageInputFidelity `json:"fidelity,omitempty"`
	RawRfc5322Base64 wire.ProtectedString  `json:"raw_rfc5322_base64"`
}

MessageInput defines model for MessageInput.

type MessageInputFidelity

type MessageInputFidelity string

MessageInputFidelity defines model for MessageInput.Fidelity.

const (
	EximLocalScanObservedCrlf MessageInputFidelity = "exim_local_scan_observed_crlf"
	EximTransportFilterCrlf   MessageInputFidelity = "exim_transport_filter_crlf"
	LmtpDeliveredCrlf         MessageInputFidelity = "lmtp_delivered_crlf"
	MilterReconstructedCrlf   MessageInputFidelity = "milter_reconstructed_crlf"
	RawRfc5322                MessageInputFidelity = "raw_rfc5322"
)

Defines values for MessageInputFidelity.

func (MessageInputFidelity) Valid

func (e MessageInputFidelity) Valid() bool

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

type NullSenderPolicy

type NullSenderPolicy string

NullSenderPolicy Declares that an originator adapter on a trusted egress route signs a message whose smtp.mail_from is the null reverse path "<>", such as an automatic reply or a disposition notification. It is required exactly when mail_from is "<>" and refused otherwise. header_from binds the signing domain to the single RFC 5322 From mailbox: the context domain must equal that mailbox domain, and the daemon admits the request only when its own signing.policy.originator.null_sender policy is header_from. A message that already carries a DKIM2-Signature or Message-Instance field, or whose top-level Content-Type is multipart/report with report-type delivery-status, is never eligible: delivery-status notifications are signed only on /v1/dsn/sign. Without both opt-ins, or for such a message, the request is refused as an invalid contract.

const (
	NullSenderHeaderFrom NullSenderPolicy = "header_from"
)

Defines values for NullSenderPolicy.

func (NullSenderPolicy) Valid

func (e NullSenderPolicy) Valid() bool

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

type OperationResponse

type OperationResponse struct {
	// Actions Ordered header actions for one hop. Array order is the top-down order of the hop's new fields: Message-Instance, then DKIM2-Signature, then any X-DKIM2-Info. Message-Instance and DKIM2-Signature are trace header fields (Draft-09 Sections 9 and 10, RFC 5322 Section 3.6.7), so consumers SHOULD insert the whole block above the current topmost header field, keeping array order, and must not interleave it with other fields. Verification does not depend on this placement.
	Actions     ActionPlan                 `json:"actions"`
	ApiVersion  APIVersion                 `json:"api_version"`
	Disposition Disposition                `json:"disposition"`
	Draft       DraftVersion               `json:"draft"`
	Operation   OperationResponseOperation `json:"operation"`
	Result      OperationResponseResult    `json:"result"`
}

OperationResponse Result and disposition are coherent: pass permits accept or continue, fail and permerror require reject, and temperror requires tempfail. Only accept may carry actions.

type OperationResponseOperation

type OperationResponseOperation string

OperationResponseOperation defines model for OperationResponse.Operation.

const (
	DeliveryStatus OperationResponseOperation = "delivery_status"
	Revise         OperationResponseOperation = "revise"
	Sign           OperationResponseOperation = "sign"
)

Defines values for OperationResponseOperation.

func (OperationResponseOperation) Valid

func (e OperationResponseOperation) Valid() bool

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

type OperationResponseResult

type OperationResponseResult string

OperationResponseResult defines model for OperationResponse.Result.

const (
	OperationResponseResultFail      OperationResponseResult = "fail"
	OperationResponseResultPass      OperationResponseResult = "pass"
	OperationResponseResultPermerror OperationResponseResult = "permerror"
	OperationResponseResultTemperror OperationResponseResult = "temperror"
)

Defines values for OperationResponseResult.

func (OperationResponseResult) Valid

func (e OperationResponseResult) Valid() bool

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

type PolicyFeedback

type PolicyFeedback struct {
	HistoryCoverage PolicyFeedbackHistoryCoverage `json:"history_coverage"`
	RelayRequired   bool                          `json:"relay_required"`
	RelaySequence   *CanonicalUint64              `json:"relay_sequence,omitempty"`
	Requested       bool                          `json:"requested"`
}

PolicyFeedback defines model for PolicyFeedback.

type PolicyFeedbackHistoryCoverage

type PolicyFeedbackHistoryCoverage string

PolicyFeedbackHistoryCoverage defines model for PolicyFeedback.HistoryCoverage.

const (
	PolicyFeedbackHistoryCoverageComplete      PolicyFeedbackHistoryCoverage = "complete"
	PolicyFeedbackHistoryCoverageIndeterminate PolicyFeedbackHistoryCoverage = "indeterminate"
	PolicyFeedbackHistoryCoverageNotEvaluated  PolicyFeedbackHistoryCoverage = "not_evaluated"
)

Defines values for PolicyFeedbackHistoryCoverage.

func (PolicyFeedbackHistoryCoverage) Valid

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

type PolicyFinding

type PolicyFinding struct {
	// Reason Local policy reason. none is used only for the NONE verification state, whose policy is never evaluated and always continues.
	Reason   PolicyReason          `json:"reason"`
	Sequence *CanonicalUint64      `json:"sequence,omitempty"`
	Severity PolicyFindingSeverity `json:"severity"`
}

PolicyFinding defines model for PolicyFinding.

type PolicyFindingSeverity

type PolicyFindingSeverity string

PolicyFindingSeverity defines model for PolicyFinding.Severity.

const (
	Info      PolicyFindingSeverity = "info"
	Permanent PolicyFindingSeverity = "permanent"
	Temporary PolicyFindingSeverity = "temporary"
	Warning   PolicyFindingSeverity = "warning"
)

Defines values for PolicyFindingSeverity.

func (PolicyFindingSeverity) Valid

func (e PolicyFindingSeverity) Valid() bool

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

type PolicyReason

type PolicyReason string

PolicyReason Local policy reason. none is used only for the NONE verification state, whose policy is never evaluated and always continues.

const (
	ExplodedReported              PolicyReason = "exploded_reported"
	FeedbackRelaySelected         PolicyReason = "feedback_relay_selected"
	FeedbackRequested             PolicyReason = "feedback_requested"
	FeedhereInert                 PolicyReason = "feedhere_inert"
	PermissiveOverride            PolicyReason = "permissive_override"
	PolicyReasonNone              PolicyReason = "none"
	ProtocolFail                  PolicyReason = "protocol_fail"
	ProtocolPass                  PolicyReason = "protocol_pass"
	ProtocolPermerror             PolicyReason = "protocol_permerror"
	ProtocolTemperror             PolicyReason = "protocol_temperror"
	ReceivedDsnEmbeddedAbsent     PolicyReason = "received_dsn_embedded_absent"
	ReceivedDsnEmbeddedUnverified PolicyReason = "received_dsn_embedded_unverified"
	ReceivedDsnIdentityMismatch   PolicyReason = "received_dsn_identity_mismatch"
	ReceivedDsnLinked             PolicyReason = "received_dsn_linked"
	ReceivedDsnNotLocal           PolicyReason = "received_dsn_not_local"
	ReceivedDsnOuterPolicy        PolicyReason = "received_dsn_outer_policy"
	ReceivedDsnRecipientUnlinked  PolicyReason = "received_dsn_recipient_unlinked"
	ReceivedDsnStructureInvalid   PolicyReason = "received_dsn_structure_invalid"
	ReceivedDsnTemporaryFailure   PolicyReason = "received_dsn_temporary_failure"
	ReceivedDsnTenantUnavailable  PolicyReason = "received_dsn_tenant_unavailable"
	TestingModeObserve            PolicyReason = "testing_mode_observe"
)

Defines values for PolicyReason.

func (PolicyReason) Valid

func (e PolicyReason) Valid() bool

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

type PolicyResult

type PolicyResult struct {
	Feedback PolicyFeedback   `json:"feedback"`
	Findings []PolicyFinding  `json:"findings"`
	Mode     PolicyResultMode `json:"mode"`

	// PrimaryReason Local policy reason. none is used only for the NONE verification state, whose policy is never evaluated and always continues.
	PrimaryReason PolicyReason        `json:"primary_reason"`
	Verdict       PolicyResultVerdict `json:"verdict"`
}

PolicyResult defines model for PolicyResult.

type PolicyResultMode

type PolicyResultMode string

PolicyResultMode defines model for PolicyResult.Mode.

const (
	Permissive PolicyResultMode = "permissive"
	Strict     PolicyResultMode = "strict"
	Testing    PolicyResultMode = "testing"
)

Defines values for PolicyResultMode.

func (PolicyResultMode) Valid

func (e PolicyResultMode) Valid() bool

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

type PolicyResultVerdict

type PolicyResultVerdict string

PolicyResultVerdict defines model for PolicyResult.Verdict.

const (
	PolicyResultVerdictAccept   PolicyResultVerdict = "accept"
	PolicyResultVerdictContinue PolicyResultVerdict = "continue"
	PolicyResultVerdictReject   PolicyResultVerdict = "reject"
	PolicyResultVerdictTempfail PolicyResultVerdict = "tempfail"
)

Defines values for PolicyResultVerdict.

func (PolicyResultVerdict) Valid

func (e PolicyResultVerdict) Valid() bool

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

type PreconditionFailed

type PreconditionFailed = ErrorResponse

PreconditionFailed defines model for PreconditionFailed.

type ProcessContext

type ProcessContext struct {
	Tenant string `json:"tenant"`
}

ProcessContext defines model for ProcessContext.

type ProcessMessageJSONRequestBody

type ProcessMessageJSONRequestBody = ProcessRequest

ProcessMessageJSONRequestBody defines body for ProcessMessage for application/json ContentType.

type ProcessMessageResponse

type ProcessMessageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ProcessResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON408 the response for an HTTP 408 `application/json` response
	JSON408 *RequestTimeout
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *RequestTooLarge
	// JSON415 the response for an HTTP 415 `application/json` response
	JSON415 *UnsupportedMediaType
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ProcessMessageResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ProcessMessageResponse400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ProcessMessageResponse403Headers
	// Headers408 the parsed response headers for an HTTP 408 response
	Headers408 *ProcessMessageResponse408Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *ProcessMessageResponse413Headers
	// Headers415 the parsed response headers for an HTTP 415 response
	Headers415 *ProcessMessageResponse415Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *ProcessMessageResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *ProcessMessageResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ProcessMessageResponse503Headers
}

func ParseProcessMessageResponse

func ParseProcessMessageResponse(rsp *http.Response) (*ProcessMessageResponse, error)

ParseProcessMessageResponse parses an HTTP response from a ProcessMessageWithResponse call

func (ProcessMessageResponse) ContentType

func (r ProcessMessageResponse) ContentType() string

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

func (ProcessMessageResponse) GetBody

func (r ProcessMessageResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ProcessMessageResponse) GetJSON200

func (r ProcessMessageResponse) GetJSON200() *ProcessResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ProcessMessageResponse) GetJSON400

func (r ProcessMessageResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ProcessMessageResponse) GetJSON403

func (r ProcessMessageResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ProcessMessageResponse) GetJSON408

func (r ProcessMessageResponse) GetJSON408() *RequestTimeout

GetJSON408 returns the response for an HTTP 408 `application/json` response

func (ProcessMessageResponse) GetJSON413

func (r ProcessMessageResponse) GetJSON413() *RequestTooLarge

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (ProcessMessageResponse) GetJSON415

GetJSON415 returns the response for an HTTP 415 `application/json` response

func (ProcessMessageResponse) GetJSON417

func (r ProcessMessageResponse) GetJSON417() *ExpectationFailed

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (ProcessMessageResponse) GetJSON500

func (r ProcessMessageResponse) GetJSON500() *InternalError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ProcessMessageResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ProcessMessageResponse) Status

func (r ProcessMessageResponse) Status() string

Status returns HTTPResponse.Status

func (ProcessMessageResponse) StatusCode

func (r ProcessMessageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ProcessMessageResponse200Headers

type ProcessMessageResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ProcessMessageResponse200Headers the declared response headers of an HTTP 200 response for ProcessMessage

type ProcessMessageResponse400Headers

type ProcessMessageResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ProcessMessageResponse400Headers the declared response headers of an HTTP 400 response for ProcessMessage

type ProcessMessageResponse403Headers

type ProcessMessageResponse403Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ProcessMessageResponse403Headers the declared response headers of an HTTP 403 response for ProcessMessage

type ProcessMessageResponse408Headers

type ProcessMessageResponse408Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ProcessMessageResponse408Headers the declared response headers of an HTTP 408 response for ProcessMessage

type ProcessMessageResponse413Headers

type ProcessMessageResponse413Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ProcessMessageResponse413Headers the declared response headers of an HTTP 413 response for ProcessMessage

type ProcessMessageResponse415Headers

type ProcessMessageResponse415Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ProcessMessageResponse415Headers the declared response headers of an HTTP 415 response for ProcessMessage

type ProcessMessageResponse417Headers

type ProcessMessageResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ProcessMessageResponse417Headers the declared response headers of an HTTP 417 response for ProcessMessage

type ProcessMessageResponse500Headers

type ProcessMessageResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ProcessMessageResponse500Headers the declared response headers of an HTTP 500 response for ProcessMessage

type ProcessMessageResponse503Headers

type ProcessMessageResponse503Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	RetryAfter          string
	XContentTypeOptions string
}

ProcessMessageResponse503Headers the declared response headers of an HTTP 503 response for ProcessMessage

type ProcessRequest

type ProcessRequest struct {
	ApiVersion APIVersion `json:"api_version"`

	// Context Optional administrative tenant. Received delivery-status locality is tenant-keyed, so a request without this member and without a configured daemon default keeps the delivery-status projection unevaluated instead of guessing an authority.
	Context *ProcessContext `json:"context,omitempty"`
	Draft   DraftVersion    `json:"draft"`
	Message MessageInput    `json:"message"`

	// Reporting Optional daemon reporting authority. When supplied for an inbound accept or non-terminal continue outcome, the daemon returns the exact Authentication-Results action; adapters must not synthesize it.
	Reporting *ReportingContext `json:"reporting,omitempty"`
	Smtp      SMTPInput         `json:"smtp"`
}

ProcessRequest defines model for ProcessRequest.

type ProcessResponse

type ProcessResponse struct {
	// Actions Ordered header actions for one hop. Array order is the top-down order of the hop's new fields: Message-Instance, then DKIM2-Signature, then any X-DKIM2-Info. Message-Instance and DKIM2-Signature are trace header fields (Draft-09 Sections 9 and 10, RFC 5322 Section 3.6.7), so consumers SHOULD insert the whole block above the current topmost header field, keeping array order, and must not interleave it with other fields. Verification does not depend on this placement.
	Actions        ActionPlan           `json:"actions"`
	ApiVersion     APIVersion           `json:"api_version"`
	Authentication AuthenticationResult `json:"authentication"`

	// DeliveryStatus Received delivery-status projection. Present only when the outer message has a null reverse path, a multipart/report delivery-status top level, and at least one DKIM2 protocol field family, and only when the outer DKIM2-Signature could be read; an unreadable outer signature is the outer verification's own permerror and carries no projection. Its presence changes neither verification, authentication, replay, nor action semantics.
	DeliveryStatus *DeliveryStatusProjection `json:"delivery_status,omitempty"`
	Disposition    Disposition               `json:"disposition"`
	Draft          DraftVersion              `json:"draft"`
	Policy         PolicyResult              `json:"policy"`
	Replay         ReplayResult              `json:"replay"`

	// Verification Message-local cryptographic evidence; replay may change the final authentication state.
	Verification VerificationResult `json:"verification"`

	// VerifierProjection Transport-neutral sealed verifier evidence for a complete ordinary authenticated chain.
	VerifierProjection *VerifierProjection `json:"verifier_projection,omitempty"`
}

ProcessResponse Inbound processing result. Reject and tempfail carry no actions. Accept and non-terminal continue may carry the sole daemon-owned Authentication-Results reporting action. A NONE result (no DKIM2 field of either family) always continues, carries replay not_checked, no verifier projection, no delivery-status projection, and at most the reasonless dkim2=none report.

type PropagateDeliveryStatusJSONRequestBody

type PropagateDeliveryStatusJSONRequestBody = DSNPropagateRequest

PropagateDeliveryStatusJSONRequestBody defines body for PropagateDeliveryStatus for application/json ContentType.

type PropagateDeliveryStatusResponse

type PropagateDeliveryStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DSNPropagateResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON408 the response for an HTTP 408 `application/json` response
	JSON408 *RequestTimeout
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *RequestTooLarge
	// JSON415 the response for an HTTP 415 `application/json` response
	JSON415 *UnsupportedMediaType
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *PropagateDeliveryStatusResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *PropagateDeliveryStatusResponse400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *PropagateDeliveryStatusResponse403Headers
	// Headers408 the parsed response headers for an HTTP 408 response
	Headers408 *PropagateDeliveryStatusResponse408Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *PropagateDeliveryStatusResponse413Headers
	// Headers415 the parsed response headers for an HTTP 415 response
	Headers415 *PropagateDeliveryStatusResponse415Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *PropagateDeliveryStatusResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *PropagateDeliveryStatusResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *PropagateDeliveryStatusResponse503Headers
}

func ParsePropagateDeliveryStatusResponse

func ParsePropagateDeliveryStatusResponse(rsp *http.Response) (*PropagateDeliveryStatusResponse, error)

ParsePropagateDeliveryStatusResponse parses an HTTP response from a PropagateDeliveryStatusWithResponse call

func (PropagateDeliveryStatusResponse) ContentType

func (r PropagateDeliveryStatusResponse) ContentType() string

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

func (PropagateDeliveryStatusResponse) GetBody

func (r PropagateDeliveryStatusResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PropagateDeliveryStatusResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (PropagateDeliveryStatusResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PropagateDeliveryStatusResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PropagateDeliveryStatusResponse) GetJSON408

GetJSON408 returns the response for an HTTP 408 `application/json` response

func (PropagateDeliveryStatusResponse) GetJSON413

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (PropagateDeliveryStatusResponse) GetJSON415

GetJSON415 returns the response for an HTTP 415 `application/json` response

func (PropagateDeliveryStatusResponse) GetJSON417

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (PropagateDeliveryStatusResponse) GetJSON500

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (PropagateDeliveryStatusResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (PropagateDeliveryStatusResponse) Status

Status returns HTTPResponse.Status

func (PropagateDeliveryStatusResponse) StatusCode

func (r PropagateDeliveryStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PropagateDeliveryStatusResponse200Headers

type PropagateDeliveryStatusResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

PropagateDeliveryStatusResponse200Headers the declared response headers of an HTTP 200 response for PropagateDeliveryStatus

type PropagateDeliveryStatusResponse400Headers

type PropagateDeliveryStatusResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

PropagateDeliveryStatusResponse400Headers the declared response headers of an HTTP 400 response for PropagateDeliveryStatus

type PropagateDeliveryStatusResponse403Headers

type PropagateDeliveryStatusResponse403Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

PropagateDeliveryStatusResponse403Headers the declared response headers of an HTTP 403 response for PropagateDeliveryStatus

type PropagateDeliveryStatusResponse408Headers

type PropagateDeliveryStatusResponse408Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

PropagateDeliveryStatusResponse408Headers the declared response headers of an HTTP 408 response for PropagateDeliveryStatus

type PropagateDeliveryStatusResponse413Headers

type PropagateDeliveryStatusResponse413Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

PropagateDeliveryStatusResponse413Headers the declared response headers of an HTTP 413 response for PropagateDeliveryStatus

type PropagateDeliveryStatusResponse415Headers

type PropagateDeliveryStatusResponse415Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

PropagateDeliveryStatusResponse415Headers the declared response headers of an HTTP 415 response for PropagateDeliveryStatus

type PropagateDeliveryStatusResponse417Headers

type PropagateDeliveryStatusResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

PropagateDeliveryStatusResponse417Headers the declared response headers of an HTTP 417 response for PropagateDeliveryStatus

type PropagateDeliveryStatusResponse500Headers

type PropagateDeliveryStatusResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

PropagateDeliveryStatusResponse500Headers the declared response headers of an HTTP 500 response for PropagateDeliveryStatus

type PropagateDeliveryStatusResponse503Headers

type PropagateDeliveryStatusResponse503Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	RetryAfter          string
	XContentTypeOptions string
}

PropagateDeliveryStatusResponse503Headers the declared response headers of an HTTP 503 response for PropagateDeliveryStatus

type PropagationCommitToken

type PropagationCommitToken = wire.ProtectedString

PropagationCommitToken Opaque bounded token bound to one reserved propagation coordinate, not to one issuing attempt. It carries no caller-readable structure and must not be logged.

type PropagationContext

type PropagationContext struct {
	// ReportingMta Canonical lowercase DNS name of the reporting MTA, used only in the rebuilt report and its outer From field.
	ReportingMta string `json:"reporting_mta"`
	Tenant       string `json:"tenant"`
}

PropagationContext defines model for PropagationContext.

type PropagationDisposition

type PropagationDisposition string

PropagationDisposition Closed propagation disposition. It is distinct from the shared disposition because propagation adds discard, which answers a notification that must not be propagated and must not be reported as a failure, and because it never uses continue. Coherence with the operation result is fixed: pass permits accept or discard, permerror requires discard, fail requires reject, and temperror requires tempfail.

const (
	PropagationDispositionAccept   PropagationDisposition = "accept"
	PropagationDispositionDiscard  PropagationDisposition = "discard"
	PropagationDispositionReject   PropagationDisposition = "reject"
	PropagationDispositionTempfail PropagationDisposition = "tempfail"
)

Defines values for PropagationDisposition.

func (PropagationDisposition) Valid

func (e PropagationDisposition) Valid() bool

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

type PropagationMessageInput

type PropagationMessageInput struct {
	Fidelity         PropagationMessageInputFidelity `json:"fidelity"`
	RawRfc5322Base64 wire.ProtectedString            `json:"raw_rfc5322_base64"`
}

PropagationMessageInput Received delivery-status bytes for the propagation route. The representation claim is explicit because a locally delivered notification reaches the adapter over LMTP rather than as raw submission bytes.

type PropagationMessageInputFidelity

type PropagationMessageInputFidelity string

PropagationMessageInputFidelity defines model for PropagationMessageInput.Fidelity.

const (
	PropagationFidelityLMTPDeliveredCRLF PropagationMessageInputFidelity = "lmtp_delivered_crlf"
	PropagationFidelityRawRFC5322        PropagationMessageInputFidelity = "raw_rfc5322"
)

Defines values for PropagationMessageInputFidelity.

func (PropagationMessageInputFidelity) Valid

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

type PropagationOutput

type PropagationOutput struct {
	// CommitToken Opaque bounded token bound to one reserved propagation coordinate, not to one issuing attempt. It carries no caller-readable structure and must not be logged.
	CommitToken PropagationCommitToken `json:"commit_token"`

	// EightBitMimeRequired Whether the signed notification carries eight-bit body content, so that the re-injection client must negotiate 8BITMIME.
	EightBitMimeRequired bool `json:"eight_bit_mime_required"`

	// NextHopRecipient Exact SMTP forward path of the previous hop, including angle brackets, taken from the authenticated previous-hop signature.
	NextHopRecipient wire.ProtectedString `json:"next_hop_recipient"`

	// RawRfc5322Base64 Complete signed notification bytes.
	RawRfc5322Base64 wire.ProtectedString `json:"raw_rfc5322_base64"`

	// Smtputf8Required Whether the forward path or any header field of the signed notification carries a non-ASCII byte in the RFC 6531 and RFC 6532 sense. An eight-bit body alone does not set it.
	Smtputf8Required bool `json:"smtputf8_required"`
}

PropagationOutput Everything the caller needs to re-inject the signed notification and to commit the reserved propagation coordinate afterwards.

type PropagationSMTPInput

type PropagationSMTPInput struct {
	// MailFrom Observed reverse path, which must be the null reverse path.
	MailFrom wire.ProtectedString `json:"mail_from"`

	// RcptTo The single observed forward path of the delivered notification.
	RcptTo []wire.ProtectedString `json:"rcpt_to"`

	// Smtputf8 Whether the delivering MAIL command carried the SMTPUTF8 parameter. It records observed transport evidence of the received transaction only and is not an identity claim. It does not influence the response member smtputf8_required, which is derived from the rebuilt notification alone.
	Smtputf8 bool `json:"smtputf8"`
}

PropagationSMTPInput Route-specific envelope evidence. It differs from the shared envelope schema because propagation admits exactly one forward path and records the observed SMTPUTF8 parameter of the delivering transaction.

type ReadinessResponse

type ReadinessResponse struct {
	ApiVersion APIVersion              `json:"api_version"`
	Draft      DraftVersion            `json:"draft"`
	Status     ReadinessResponseStatus `json:"status"`
}

ReadinessResponse defines model for ReadinessResponse.

type ReadinessResponseStatus

type ReadinessResponseStatus string

ReadinessResponseStatus defines model for ReadinessResponse.Status.

const (
	Ready ReadinessResponseStatus = "ready"
)

Defines values for ReadinessResponseStatus.

func (ReadinessResponseStatus) Valid

func (e ReadinessResponseStatus) Valid() bool

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

type ReplayResult

type ReplayResult struct {
	// Class Local replay delivery-policy class. not_checked means replay was skipped because verification or policy did not reach PASS/accept, including the NONE state that is never verified. not_eligible means the message passed but carried only the originator's i=1 DKIM2-Signature, so no intermediary re-sent it and Draft-09 Section 15.1 replay counting does not apply.
	Class ReplayResultClass `json:"class"`
}

ReplayResult defines model for ReplayResult.

type ReplayResultClass

type ReplayResultClass string

ReplayResultClass Local replay delivery-policy class. not_checked means replay was skipped because verification or policy did not reach PASS/accept, including the NONE state that is never verified. not_eligible means the message passed but carried only the originator's i=1 DKIM2-Signature, so no intermediary re-sent it and Draft-09 Section 15.1 replay counting does not apply.

const (
	Disabled      ReplayResultClass = "disabled"
	Exploded      ReplayResultClass = "exploded"
	FirstSeen     ReplayResultClass = "first_seen"
	Indeterminate ReplayResultClass = "indeterminate"
	NotChecked    ReplayResultClass = "not_checked"
	NotEligible   ReplayResultClass = "not_eligible"
	Replayed      ReplayResultClass = "replayed"
)

Defines values for ReplayResultClass.

func (ReplayResultClass) Valid

func (e ReplayResultClass) Valid() bool

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

type ReportingContext

type ReportingContext struct {
	AuthservId string `json:"authserv_id"`
}

ReportingContext defines model for ReportingContext.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RequestTimeout

type RequestTimeout = ErrorResponse

RequestTimeout defines model for RequestTimeout.

type RequestTooLarge

type RequestTooLarge = ErrorResponse

RequestTooLarge defines model for RequestTooLarge.

type ReviseBatchJSONRequestBody

type ReviseBatchJSONRequestBody = BatchRevisionRequest

ReviseBatchJSONRequestBody defines body for ReviseBatch for application/json ContentType.

type ReviseBatchResponse

type ReviseBatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BatchRevisionResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON408 the response for an HTTP 408 `application/json` response
	JSON408 *RequestTimeout
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *RequestTooLarge
	// JSON415 the response for an HTTP 415 `application/json` response
	JSON415 *UnsupportedMediaType
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ReviseBatchResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ReviseBatchResponse400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ReviseBatchResponse403Headers
	// Headers408 the parsed response headers for an HTTP 408 response
	Headers408 *ReviseBatchResponse408Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *ReviseBatchResponse413Headers
	// Headers415 the parsed response headers for an HTTP 415 response
	Headers415 *ReviseBatchResponse415Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *ReviseBatchResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *ReviseBatchResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ReviseBatchResponse503Headers
}

func ParseReviseBatchResponse

func ParseReviseBatchResponse(rsp *http.Response) (*ReviseBatchResponse, error)

ParseReviseBatchResponse parses an HTTP response from a ReviseBatchWithResponse call

func (ReviseBatchResponse) ContentType

func (r ReviseBatchResponse) ContentType() string

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

func (ReviseBatchResponse) GetBody

func (r ReviseBatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ReviseBatchResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReviseBatchResponse) GetJSON400

func (r ReviseBatchResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ReviseBatchResponse) GetJSON403

func (r ReviseBatchResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ReviseBatchResponse) GetJSON408

func (r ReviseBatchResponse) GetJSON408() *RequestTimeout

GetJSON408 returns the response for an HTTP 408 `application/json` response

func (ReviseBatchResponse) GetJSON413

func (r ReviseBatchResponse) GetJSON413() *RequestTooLarge

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (ReviseBatchResponse) GetJSON415

func (r ReviseBatchResponse) GetJSON415() *UnsupportedMediaType

GetJSON415 returns the response for an HTTP 415 `application/json` response

func (ReviseBatchResponse) GetJSON417

func (r ReviseBatchResponse) GetJSON417() *ExpectationFailed

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (ReviseBatchResponse) GetJSON500

func (r ReviseBatchResponse) GetJSON500() *InternalError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ReviseBatchResponse) GetJSON503

func (r ReviseBatchResponse) GetJSON503() *ServiceUnavailable

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ReviseBatchResponse) Status

func (r ReviseBatchResponse) Status() string

Status returns HTTPResponse.Status

func (ReviseBatchResponse) StatusCode

func (r ReviseBatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReviseBatchResponse200Headers

type ReviseBatchResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseBatchResponse200Headers the declared response headers of an HTTP 200 response for ReviseBatch

type ReviseBatchResponse400Headers

type ReviseBatchResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseBatchResponse400Headers the declared response headers of an HTTP 400 response for ReviseBatch

type ReviseBatchResponse403Headers

type ReviseBatchResponse403Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseBatchResponse403Headers the declared response headers of an HTTP 403 response for ReviseBatch

type ReviseBatchResponse408Headers

type ReviseBatchResponse408Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseBatchResponse408Headers the declared response headers of an HTTP 408 response for ReviseBatch

type ReviseBatchResponse413Headers

type ReviseBatchResponse413Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseBatchResponse413Headers the declared response headers of an HTTP 413 response for ReviseBatch

type ReviseBatchResponse415Headers

type ReviseBatchResponse415Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseBatchResponse415Headers the declared response headers of an HTTP 415 response for ReviseBatch

type ReviseBatchResponse417Headers

type ReviseBatchResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseBatchResponse417Headers the declared response headers of an HTTP 417 response for ReviseBatch

type ReviseBatchResponse500Headers

type ReviseBatchResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseBatchResponse500Headers the declared response headers of an HTTP 500 response for ReviseBatch

type ReviseBatchResponse503Headers

type ReviseBatchResponse503Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	RetryAfter          string
	XContentTypeOptions string
}

ReviseBatchResponse503Headers the declared response headers of an HTTP 503 response for ReviseBatch

type ReviseMessageJSONRequestBody

type ReviseMessageJSONRequestBody = ReviseRequest

ReviseMessageJSONRequestBody defines body for ReviseMessage for application/json ContentType.

type ReviseMessageResponse

type ReviseMessageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OperationResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON408 the response for an HTTP 408 `application/json` response
	JSON408 *RequestTimeout
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *RequestTooLarge
	// JSON415 the response for an HTTP 415 `application/json` response
	JSON415 *UnsupportedMediaType
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ReviseMessageResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ReviseMessageResponse400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ReviseMessageResponse403Headers
	// Headers408 the parsed response headers for an HTTP 408 response
	Headers408 *ReviseMessageResponse408Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *ReviseMessageResponse413Headers
	// Headers415 the parsed response headers for an HTTP 415 response
	Headers415 *ReviseMessageResponse415Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *ReviseMessageResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *ReviseMessageResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ReviseMessageResponse503Headers
}

func ParseReviseMessageResponse

func ParseReviseMessageResponse(rsp *http.Response) (*ReviseMessageResponse, error)

ParseReviseMessageResponse parses an HTTP response from a ReviseMessageWithResponse call

func (ReviseMessageResponse) ContentType

func (r ReviseMessageResponse) ContentType() string

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

func (ReviseMessageResponse) GetBody

func (r ReviseMessageResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ReviseMessageResponse) GetJSON200

func (r ReviseMessageResponse) GetJSON200() *OperationResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReviseMessageResponse) GetJSON400

func (r ReviseMessageResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ReviseMessageResponse) GetJSON403

func (r ReviseMessageResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ReviseMessageResponse) GetJSON408

func (r ReviseMessageResponse) GetJSON408() *RequestTimeout

GetJSON408 returns the response for an HTTP 408 `application/json` response

func (ReviseMessageResponse) GetJSON413

func (r ReviseMessageResponse) GetJSON413() *RequestTooLarge

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (ReviseMessageResponse) GetJSON415

GetJSON415 returns the response for an HTTP 415 `application/json` response

func (ReviseMessageResponse) GetJSON417

func (r ReviseMessageResponse) GetJSON417() *ExpectationFailed

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (ReviseMessageResponse) GetJSON500

func (r ReviseMessageResponse) GetJSON500() *InternalError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (ReviseMessageResponse) GetJSON503

func (r ReviseMessageResponse) GetJSON503() *ServiceUnavailable

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ReviseMessageResponse) Status

func (r ReviseMessageResponse) Status() string

Status returns HTTPResponse.Status

func (ReviseMessageResponse) StatusCode

func (r ReviseMessageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReviseMessageResponse200Headers

type ReviseMessageResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseMessageResponse200Headers the declared response headers of an HTTP 200 response for ReviseMessage

type ReviseMessageResponse400Headers

type ReviseMessageResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseMessageResponse400Headers the declared response headers of an HTTP 400 response for ReviseMessage

type ReviseMessageResponse403Headers

type ReviseMessageResponse403Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseMessageResponse403Headers the declared response headers of an HTTP 403 response for ReviseMessage

type ReviseMessageResponse408Headers

type ReviseMessageResponse408Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseMessageResponse408Headers the declared response headers of an HTTP 408 response for ReviseMessage

type ReviseMessageResponse413Headers

type ReviseMessageResponse413Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseMessageResponse413Headers the declared response headers of an HTTP 413 response for ReviseMessage

type ReviseMessageResponse415Headers

type ReviseMessageResponse415Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseMessageResponse415Headers the declared response headers of an HTTP 415 response for ReviseMessage

type ReviseMessageResponse417Headers

type ReviseMessageResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseMessageResponse417Headers the declared response headers of an HTTP 417 response for ReviseMessage

type ReviseMessageResponse500Headers

type ReviseMessageResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

ReviseMessageResponse500Headers the declared response headers of an HTTP 500 response for ReviseMessage

type ReviseMessageResponse503Headers

type ReviseMessageResponse503Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	RetryAfter          string
	XContentTypeOptions string
}

ReviseMessageResponse503Headers the declared response headers of an HTTP 503 response for ReviseMessage

type ReviseRequest

type ReviseRequest struct {
	ApiVersion APIVersion     `json:"api_version"`
	Context    SigningContext `json:"context"`
	Draft      DraftVersion   `json:"draft"`

	// IncomingSmtp Exact inherited envelope evidence verified before revision. The smtp member is the distinct outgoing signing envelope.
	IncomingSmtp SMTPInput    `json:"incoming_smtp"`
	Message      MessageInput `json:"message"`
	Smtp         SMTPInput    `json:"smtp"`
}

ReviseRequest defines model for ReviseRequest.

type SHA256Binding

type SHA256Binding = []byte

SHA256Binding defines model for SHA256Binding.

type SMTPInput

type SMTPInput struct {
	MailFrom wire.ProtectedString   `json:"mail_from"`
	RcptTo   []wire.ProtectedString `json:"rcpt_to"`
}

SMTPInput defines model for SMTPInput.

type ServiceUnavailable

type ServiceUnavailable = ErrorResponse

ServiceUnavailable defines model for ServiceUnavailable.

type SignDeliveryStatusJSONRequestBody

type SignDeliveryStatusJSONRequestBody = DSNSignRequest

SignDeliveryStatusJSONRequestBody defines body for SignDeliveryStatus for application/json ContentType.

type SignDeliveryStatusResponse

type SignDeliveryStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OperationResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON408 the response for an HTTP 408 `application/json` response
	JSON408 *RequestTimeout
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *RequestTooLarge
	// JSON415 the response for an HTTP 415 `application/json` response
	JSON415 *UnsupportedMediaType
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SignDeliveryStatusResponse200Headers
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *SignDeliveryStatusResponse204Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *SignDeliveryStatusResponse400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *SignDeliveryStatusResponse403Headers
	// Headers408 the parsed response headers for an HTTP 408 response
	Headers408 *SignDeliveryStatusResponse408Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *SignDeliveryStatusResponse413Headers
	// Headers415 the parsed response headers for an HTTP 415 response
	Headers415 *SignDeliveryStatusResponse415Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *SignDeliveryStatusResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *SignDeliveryStatusResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *SignDeliveryStatusResponse503Headers
}

func ParseSignDeliveryStatusResponse

func ParseSignDeliveryStatusResponse(rsp *http.Response) (*SignDeliveryStatusResponse, error)

ParseSignDeliveryStatusResponse parses an HTTP response from a SignDeliveryStatusWithResponse call

func (SignDeliveryStatusResponse) ContentType

func (r SignDeliveryStatusResponse) ContentType() string

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

func (SignDeliveryStatusResponse) GetBody

func (r SignDeliveryStatusResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SignDeliveryStatusResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SignDeliveryStatusResponse) GetJSON400

func (r SignDeliveryStatusResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SignDeliveryStatusResponse) GetJSON403

func (r SignDeliveryStatusResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SignDeliveryStatusResponse) GetJSON408

GetJSON408 returns the response for an HTTP 408 `application/json` response

func (SignDeliveryStatusResponse) GetJSON413

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (SignDeliveryStatusResponse) GetJSON415

GetJSON415 returns the response for an HTTP 415 `application/json` response

func (SignDeliveryStatusResponse) GetJSON417

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (SignDeliveryStatusResponse) GetJSON500

func (r SignDeliveryStatusResponse) GetJSON500() *InternalError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (SignDeliveryStatusResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SignDeliveryStatusResponse) Status

Status returns HTTPResponse.Status

func (SignDeliveryStatusResponse) StatusCode

func (r SignDeliveryStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SignDeliveryStatusResponse200Headers

type SignDeliveryStatusResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignDeliveryStatusResponse200Headers the declared response headers of an HTTP 200 response for SignDeliveryStatus

type SignDeliveryStatusResponse204Headers

type SignDeliveryStatusResponse204Headers struct {
	CacheControl         string
	Connection           string
	Date                 *string
	XDKIM2UnsignedReason string
}

SignDeliveryStatusResponse204Headers the declared response headers of an HTTP 204 response for SignDeliveryStatus

type SignDeliveryStatusResponse400Headers

type SignDeliveryStatusResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignDeliveryStatusResponse400Headers the declared response headers of an HTTP 400 response for SignDeliveryStatus

type SignDeliveryStatusResponse403Headers

type SignDeliveryStatusResponse403Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignDeliveryStatusResponse403Headers the declared response headers of an HTTP 403 response for SignDeliveryStatus

type SignDeliveryStatusResponse408Headers

type SignDeliveryStatusResponse408Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignDeliveryStatusResponse408Headers the declared response headers of an HTTP 408 response for SignDeliveryStatus

type SignDeliveryStatusResponse413Headers

type SignDeliveryStatusResponse413Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignDeliveryStatusResponse413Headers the declared response headers of an HTTP 413 response for SignDeliveryStatus

type SignDeliveryStatusResponse415Headers

type SignDeliveryStatusResponse415Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignDeliveryStatusResponse415Headers the declared response headers of an HTTP 415 response for SignDeliveryStatus

type SignDeliveryStatusResponse417Headers

type SignDeliveryStatusResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignDeliveryStatusResponse417Headers the declared response headers of an HTTP 417 response for SignDeliveryStatus

type SignDeliveryStatusResponse500Headers

type SignDeliveryStatusResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignDeliveryStatusResponse500Headers the declared response headers of an HTTP 500 response for SignDeliveryStatus

type SignDeliveryStatusResponse503Headers

type SignDeliveryStatusResponse503Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	RetryAfter          string
	XContentTypeOptions string
}

SignDeliveryStatusResponse503Headers the declared response headers of an HTTP 503 response for SignDeliveryStatus

type SignMessageJSONRequestBody

type SignMessageJSONRequestBody = SignRequest

SignMessageJSONRequestBody defines body for SignMessage for application/json ContentType.

type SignMessageResponse

type SignMessageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OperationResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON408 the response for an HTTP 408 `application/json` response
	JSON408 *RequestTimeout
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *RequestTooLarge
	// JSON415 the response for an HTTP 415 `application/json` response
	JSON415 *UnsupportedMediaType
	// JSON417 the response for an HTTP 417 `application/json` response
	JSON417 *ExpectationFailed
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *InternalError
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ServiceUnavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *SignMessageResponse200Headers
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *SignMessageResponse204Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *SignMessageResponse400Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *SignMessageResponse403Headers
	// Headers408 the parsed response headers for an HTTP 408 response
	Headers408 *SignMessageResponse408Headers
	// Headers413 the parsed response headers for an HTTP 413 response
	Headers413 *SignMessageResponse413Headers
	// Headers415 the parsed response headers for an HTTP 415 response
	Headers415 *SignMessageResponse415Headers
	// Headers417 the parsed response headers for an HTTP 417 response
	Headers417 *SignMessageResponse417Headers
	// Headers500 the parsed response headers for an HTTP 500 response
	Headers500 *SignMessageResponse500Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *SignMessageResponse503Headers
}

func ParseSignMessageResponse

func ParseSignMessageResponse(rsp *http.Response) (*SignMessageResponse, error)

ParseSignMessageResponse parses an HTTP response from a SignMessageWithResponse call

func (SignMessageResponse) ContentType

func (r SignMessageResponse) ContentType() string

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

func (SignMessageResponse) GetBody

func (r SignMessageResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SignMessageResponse) GetJSON200

func (r SignMessageResponse) GetJSON200() *OperationResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SignMessageResponse) GetJSON400

func (r SignMessageResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SignMessageResponse) GetJSON403

func (r SignMessageResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SignMessageResponse) GetJSON408

func (r SignMessageResponse) GetJSON408() *RequestTimeout

GetJSON408 returns the response for an HTTP 408 `application/json` response

func (SignMessageResponse) GetJSON413

func (r SignMessageResponse) GetJSON413() *RequestTooLarge

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (SignMessageResponse) GetJSON415

func (r SignMessageResponse) GetJSON415() *UnsupportedMediaType

GetJSON415 returns the response for an HTTP 415 `application/json` response

func (SignMessageResponse) GetJSON417

func (r SignMessageResponse) GetJSON417() *ExpectationFailed

GetJSON417 returns the response for an HTTP 417 `application/json` response

func (SignMessageResponse) GetJSON500

func (r SignMessageResponse) GetJSON500() *InternalError

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (SignMessageResponse) GetJSON503

func (r SignMessageResponse) GetJSON503() *ServiceUnavailable

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (SignMessageResponse) Status

func (r SignMessageResponse) Status() string

Status returns HTTPResponse.Status

func (SignMessageResponse) StatusCode

func (r SignMessageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SignMessageResponse200Headers

type SignMessageResponse200Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignMessageResponse200Headers the declared response headers of an HTTP 200 response for SignMessage

type SignMessageResponse204Headers

type SignMessageResponse204Headers struct {
	CacheControl string
	Connection   string
	Date         *string
}

SignMessageResponse204Headers the declared response headers of an HTTP 204 response for SignMessage

type SignMessageResponse400Headers

type SignMessageResponse400Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignMessageResponse400Headers the declared response headers of an HTTP 400 response for SignMessage

type SignMessageResponse403Headers

type SignMessageResponse403Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignMessageResponse403Headers the declared response headers of an HTTP 403 response for SignMessage

type SignMessageResponse408Headers

type SignMessageResponse408Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignMessageResponse408Headers the declared response headers of an HTTP 408 response for SignMessage

type SignMessageResponse413Headers

type SignMessageResponse413Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignMessageResponse413Headers the declared response headers of an HTTP 413 response for SignMessage

type SignMessageResponse415Headers

type SignMessageResponse415Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignMessageResponse415Headers the declared response headers of an HTTP 415 response for SignMessage

type SignMessageResponse417Headers

type SignMessageResponse417Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignMessageResponse417Headers the declared response headers of an HTTP 417 response for SignMessage

type SignMessageResponse500Headers

type SignMessageResponse500Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	XContentTypeOptions string
}

SignMessageResponse500Headers the declared response headers of an HTTP 500 response for SignMessage

type SignMessageResponse503Headers

type SignMessageResponse503Headers struct {
	CacheControl        string
	Connection          string
	ContentLength       string
	Date                *string
	RetryAfter          string
	XContentTypeOptions string
}

SignMessageResponse503Headers the declared response headers of an HTTP 503 response for SignMessage

type SignRequest

type SignRequest struct {
	ApiVersion APIVersion     `json:"api_version"`
	Context    SigningContext `json:"context"`
	Draft      DraftVersion   `json:"draft"`
	Message    MessageInput   `json:"message"`

	// NullSender Declares that an originator adapter on a trusted egress route signs a message whose smtp.mail_from is the null reverse path "<>", such as an automatic reply or a disposition notification. It is required exactly when mail_from is "<>" and refused otherwise. header_from binds the signing domain to the single RFC 5322 From mailbox: the context domain must equal that mailbox domain, and the daemon admits the request only when its own signing.policy.originator.null_sender policy is header_from. A message that already carries a DKIM2-Signature or Message-Instance field, or whose top-level Content-Type is multipart/report with report-type delivery-status, is never eligible: delivery-status notifications are signed only on /v1/dsn/sign. Without both opt-ins, or for such a message, the request is refused as an invalid contract.
	NullSender *NullSenderPolicy `json:"null_sender,omitempty"`
	Smtp       SMTPInput         `json:"smtp"`
}

SignRequest defines model for SignRequest.

type SignatureSetResult

type SignatureSetResult struct {
	Algorithm SignatureSetResultAlgorithm `json:"algorithm"`
	Reason    VerificationReason          `json:"reason"`

	// Selector Draft-09 Section 14.6 step 8. The parsed, DNS-label-validated selector of every set whose status is not pass: fail, permerror (key errors and unknown or locally disabled algorithms, which are the Section 14.6 step 4 PERMERROR intermediate unsupported_algorithm), and temperror. Absent for pass and for an internal_contract fact that names no parsed set. Never copied from raw header bytes.
	Selector *string                  `json:"selector,omitempty"`
	Status   SignatureSetResultStatus `json:"status"`
}

SignatureSetResult defines model for SignatureSetResult.

type SignatureSetResultAlgorithm

type SignatureSetResultAlgorithm string

SignatureSetResultAlgorithm defines model for SignatureSetResult.Algorithm.

const (
	Ed25519Sha256 SignatureSetResultAlgorithm = "ed25519-sha256"
	Mldsa44       SignatureSetResultAlgorithm = "mldsa44"
	RsaSha256     SignatureSetResultAlgorithm = "rsa-sha256"
	Unknown       SignatureSetResultAlgorithm = "unknown"
)

Defines values for SignatureSetResultAlgorithm.

func (SignatureSetResultAlgorithm) Valid

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

type SignatureSetResultStatus

type SignatureSetResultStatus string

SignatureSetResultStatus defines model for SignatureSetResult.Status.

const (
	SignatureSetResultStatusFail      SignatureSetResultStatus = "fail"
	SignatureSetResultStatusPass      SignatureSetResultStatus = "pass"
	SignatureSetResultStatusPermerror SignatureSetResultStatus = "permerror"
	SignatureSetResultStatusTemperror SignatureSetResultStatus = "temperror"
)

Defines values for SignatureSetResultStatus.

func (SignatureSetResultStatus) Valid

func (e SignatureSetResultStatus) Valid() bool

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

type SigningContext

type SigningContext struct {
	Domain string `json:"domain"`
	Tenant string `json:"tenant"`
}

SigningContext defines model for SigningContext.

type UnsupportedMediaType

type UnsupportedMediaType = ErrorResponse

UnsupportedMediaType defines model for UnsupportedMediaType.

type VerificationCheck

type VerificationCheck struct {
	Class  VerificationCheckClass `json:"class"`
	Reason VerificationReason     `json:"reason"`
}

VerificationCheck defines model for VerificationCheck.

type VerificationCheckClass

type VerificationCheckClass string

VerificationCheckClass defines model for VerificationCheck.Class.

const (
	VerificationCheckClassBodyHash         VerificationCheckClass = "body_hash"
	VerificationCheckClassDomainAlignment  VerificationCheckClass = "domain_alignment"
	VerificationCheckClassEnvelope         VerificationCheckClass = "envelope"
	VerificationCheckClassHeaderHash       VerificationCheckClass = "header_hash"
	VerificationCheckClassInternalContract VerificationCheckClass = "internal_contract"
	VerificationCheckClassKey              VerificationCheckClass = "key"
	VerificationCheckClassMessage          VerificationCheckClass = "message"
	VerificationCheckClassNextDomain       VerificationCheckClass = "next_domain"
	VerificationCheckClassProtocol         VerificationCheckClass = "protocol"
	VerificationCheckClassProvider         VerificationCheckClass = "provider"
	VerificationCheckClassSignature        VerificationCheckClass = "signature"
	VerificationCheckClassTimestamp        VerificationCheckClass = "timestamp"
)

Defines values for VerificationCheckClass.

func (VerificationCheckClass) Valid

func (e VerificationCheckClass) Valid() bool

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

type VerificationReason

type VerificationReason string

VerificationReason defines model for VerificationReason.

const (
	VerificationReasonAmbiguousKey            VerificationReason = "ambiguous_key"
	VerificationReasonBodyHistoryUnavailable  VerificationReason = "body_history_unavailable"
	VerificationReasonCustodyMismatch         VerificationReason = "custody_mismatch"
	VerificationReasonDomainAlignmentMismatch VerificationReason = "domain_alignment_mismatch"
	VerificationReasonDomainPolicyAmbiguous   VerificationReason = "domain_policy_ambiguous"
	VerificationReasonDomainPolicyInvalid     VerificationReason = "domain_policy_invalid"
	VerificationReasonDomainPolicyTemporary   VerificationReason = "domain_policy_temporary"
	VerificationReasonDuplicateHashAlgorithm  VerificationReason = "duplicate_hash_algorithm"
	VerificationReasonDuplicateSelector       VerificationReason = "duplicate_selector"
	VerificationReasonEnvelopeMismatch        VerificationReason = "envelope_mismatch"
	VerificationReasonFromNotAuthentic        VerificationReason = "from_not_authentic"
	VerificationReasonFromSubdomainForbidden  VerificationReason = "from_subdomain_forbidden"
	VerificationReasonHashMismatch            VerificationReason = "hash_mismatch"
	VerificationReasonInternalContract        VerificationReason = "internal_contract"
	VerificationReasonInvalidKey              VerificationReason = "invalid_key"
	VerificationReasonInvalidRecipe           VerificationReason = "invalid_recipe"
	VerificationReasonInvalidRecipeJson       VerificationReason = "invalid_recipe_json"
	VerificationReasonKeyAlgorithmMismatch    VerificationReason = "key_algorithm_mismatch"
	VerificationReasonLimitExceeded           VerificationReason = "limit_exceeded"
	VerificationReasonMalformedMessage        VerificationReason = "malformed_message"
	VerificationReasonMalformedProtocol       VerificationReason = "malformed_protocol"
	VerificationReasonMissingKey              VerificationReason = "missing_key"
	VerificationReasonMissingProtocol         VerificationReason = "missing_protocol"
	VerificationReasonNextDomainMismatch      VerificationReason = "next_domain_mismatch"
	VerificationReasonNone                    VerificationReason = "none"
	VerificationReasonOutOfBandRequired       VerificationReason = "out_of_band_required"
	VerificationReasonProviderContract        VerificationReason = "provider_contract"
	VerificationReasonProviderPermanent       VerificationReason = "provider_permanent"
	VerificationReasonProviderTemporary       VerificationReason = "provider_temporary"
	VerificationReasonRevokedKey              VerificationReason = "revoked_key"
	VerificationReasonSequenceInvalid         VerificationReason = "sequence_invalid"
	VerificationReasonSignatureMismatch       VerificationReason = "signature_mismatch"
	VerificationReasonTimestampInvalid        VerificationReason = "timestamp_invalid"
	VerificationReasonUnsupportedAlgorithm    VerificationReason = "unsupported_algorithm"
	VerificationReasonUnsupportedKeyType      VerificationReason = "unsupported_key_type"
)

Defines values for VerificationReason.

func (VerificationReason) Valid

func (e VerificationReason) Valid() bool

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

type VerificationResult

type VerificationResult struct {
	Checks           []VerificationCheck                `json:"checks"`
	CustodyStructure VerificationResultCustodyStructure `json:"custody_structure"`

	// HistoricalContent Authenticated historical content coverage. Under Draft-09 Sections 13 and 14.2 a history with a null body Recipe is not Fully Verified and is reported as PERMERROR body_history_unavailable, so a PASS reports complete; partial is retained in the closed vocabulary and is not produced.
	HistoricalContent    VerificationResultHistoricalContent    `json:"historical_content"`
	HistoricalSignatures VerificationResultHistoricalSignatures `json:"historical_signatures"`
	PrimaryReason        VerificationReason                     `json:"primary_reason"`
	Scope                VerificationResultScope                `json:"scope"`
	SignatureSets        []SignatureSetResult                   `json:"signature_sets"`

	// State Draft-09 Section 14.1 verification state. PASS: the message is a Fully Verified DKIM2 Message. FAIL: verification completed and the message is not Fully Verified, reported with hash_mismatch, signature_mismatch, timestamp_invalid, envelope_mismatch, domain_alignment_mismatch, next_domain_mismatch, custody_mismatch, out_of_band_required, from_not_authentic, or from_subdomain_forbidden (the From domain's Domain Policy Record carries f=strict, Sections 3.8 and 14.8). PERMERROR: an unrecoverable error such as malformed, missing, or duplicate protocol state, invalid sequencing, an unsupported algorithm, a key error, an invalid Recipe, a null body Recipe (body_history_unavailable, Section 14.2), multiple or invalid Domain Policy Records (domain_policy_ambiguous, domain_policy_invalid), or a local limit. TEMPERROR: a temporary inability to retrieve a DNS record, either a public key (provider_temporary) or a Domain Policy Record (domain_policy_temporary). NONE: the message does not contain any DKIM2-Signature or Message-Instance header field; it is classified before verification, always carries primary_reason none, and is never produced for a message carrying only one field family.
	State  VerificationState   `json:"state"`
	Target *VerificationTarget `json:"target,omitempty"`
}

VerificationResult Message-local cryptographic evidence; replay may change the final authentication state.

type VerificationResultCustodyStructure

type VerificationResultCustodyStructure string

VerificationResultCustodyStructure defines model for VerificationResult.CustodyStructure.

const (
	VerificationResultCustodyStructureNdLinksEvaluated      VerificationResultCustodyStructure = "nd_links_evaluated"
	VerificationResultCustodyStructureNotEvaluated          VerificationResultCustodyStructure = "not_evaluated"
	VerificationResultCustodyStructureNotPresent            VerificationResultCustodyStructure = "not_present"
	VerificationResultCustodyStructureTerminalNdRequiresOob VerificationResultCustodyStructure = "terminal_nd_requires_oob"
)

Defines values for VerificationResultCustodyStructure.

func (VerificationResultCustodyStructure) Valid

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

type VerificationResultHistoricalContent

type VerificationResultHistoricalContent string

VerificationResultHistoricalContent Authenticated historical content coverage. Under Draft-09 Sections 13 and 14.2 a history with a null body Recipe is not Fully Verified and is reported as PERMERROR body_history_unavailable, so a PASS reports complete; partial is retained in the closed vocabulary and is not produced.

const (
	VerificationResultHistoricalContentComplete     VerificationResultHistoricalContent = "complete"
	VerificationResultHistoricalContentNotEvaluated VerificationResultHistoricalContent = "not_evaluated"
	VerificationResultHistoricalContentPartial      VerificationResultHistoricalContent = "partial"
)

Defines values for VerificationResultHistoricalContent.

func (VerificationResultHistoricalContent) Valid

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

type VerificationResultHistoricalSignatures

type VerificationResultHistoricalSignatures string

VerificationResultHistoricalSignatures defines model for VerificationResult.HistoricalSignatures.

const (
	VerificationResultHistoricalSignaturesComplete     VerificationResultHistoricalSignatures = "complete"
	VerificationResultHistoricalSignaturesNotEvaluated VerificationResultHistoricalSignatures = "not_evaluated"
)

Defines values for VerificationResultHistoricalSignatures.

func (VerificationResultHistoricalSignatures) Valid

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

type VerificationResultScope

type VerificationResultScope string

VerificationResultScope defines model for VerificationResult.Scope.

const (
	Chain   VerificationResultScope = "chain"
	Current VerificationResultScope = "current"
)

Defines values for VerificationResultScope.

func (VerificationResultScope) Valid

func (e VerificationResultScope) Valid() bool

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

type VerificationState

type VerificationState string

VerificationState Draft-09 Section 14.1 verification state. PASS: the message is a Fully Verified DKIM2 Message. FAIL: verification completed and the message is not Fully Verified, reported with hash_mismatch, signature_mismatch, timestamp_invalid, envelope_mismatch, domain_alignment_mismatch, next_domain_mismatch, custody_mismatch, out_of_band_required, from_not_authentic, or from_subdomain_forbidden (the From domain's Domain Policy Record carries f=strict, Sections 3.8 and 14.8). PERMERROR: an unrecoverable error such as malformed, missing, or duplicate protocol state, invalid sequencing, an unsupported algorithm, a key error, an invalid Recipe, a null body Recipe (body_history_unavailable, Section 14.2), multiple or invalid Domain Policy Records (domain_policy_ambiguous, domain_policy_invalid), or a local limit. TEMPERROR: a temporary inability to retrieve a DNS record, either a public key (provider_temporary) or a Domain Policy Record (domain_policy_temporary). NONE: the message does not contain any DKIM2-Signature or Message-Instance header field; it is classified before verification, always carries primary_reason none, and is never produced for a message carrying only one field family.

const (
	FAIL      VerificationState = "FAIL"
	NONE      VerificationState = "NONE"
	PASS      VerificationState = "PASS"
	PERMERROR VerificationState = "PERMERROR"
	TEMPERROR VerificationState = "TEMPERROR"
)

Defines values for VerificationState.

func (VerificationState) Valid

func (e VerificationState) Valid() bool

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

type VerificationTarget

type VerificationTarget struct {
	Instance CanonicalUint64 `json:"instance"`
	Sequence CanonicalUint64 `json:"sequence"`
}

VerificationTarget defines model for VerificationTarget.

type VerifierHistoryState

type VerifierHistoryState string

VerifierHistoryState defines model for VerifierHistoryState.

const (
	VerifierHistoryStateMatched     VerifierHistoryState = "matched"
	VerifierHistoryStateMismatch    VerifierHistoryState = "mismatch"
	VerifierHistoryStateUnavailable VerifierHistoryState = "unavailable"
	VerifierHistoryStateUnsupported VerifierHistoryState = "unsupported"
)

Defines values for VerifierHistoryState.

func (VerifierHistoryState) Valid

func (e VerifierHistoryState) Valid() bool

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

type VerifierHop

type VerifierHop struct {
	AffectedHeaderCount    int                          `json:"affected_header_count"`
	AffectedHeaders        []string                     `json:"affected_headers"`
	BodyAvailability       VerifierHopBodyAvailability  `json:"body_availability"`
	ChangeClasses          []VerifierHopChangeClasses   `json:"change_classes"`
	ChangeCount            int                          `json:"change_count"`
	CustodyTransition      VerifierHopCustodyTransition `json:"custody_transition"`
	Exploded               bool                         `json:"exploded"`
	FeedHere               bool                         `json:"feed_here"`
	Feedback               bool                         `json:"feedback"`
	HistoryBodyState       VerifierHistoryState         `json:"history_body_state"`
	HistoryHeaderState     VerifierHistoryState         `json:"history_header_state"`
	HopBinding             SHA256Binding                `json:"hop_binding"`
	MessageInstance        CanonicalUint64              `json:"message_instance"`
	RecipeBodyMode         VerifierHopRecipeBodyMode    `json:"recipe_body_mode"`
	RecipeDigest           SHA256Binding                `json:"recipe_digest"`
	RecipeHasHeaderChanges bool                         `json:"recipe_has_header_changes"`
	RecipeMode             VerifierHopRecipeMode        `json:"recipe_mode"`
	Sequence               CanonicalUint64              `json:"sequence"`

	// SignatureAlgorithms Sorted unique algorithms of the hop's passing signature sets. The vocabulary is exactly the Draft-09 Section 3 signature algorithms this verifier implements; DNS-02 registry entries without a Draft-09 signing definition never verify and are never listed.
	SignatureAlgorithms []VerifierHopSignatureAlgorithms `json:"signature_algorithms"`
	SignatureState      VerifierHopSignatureState        `json:"signature_state"`
	SignerDomain        string                           `json:"signer_domain"`
}

VerifierHop defines model for VerifierHop.

type VerifierHopBodyAvailability

type VerifierHopBodyAvailability string

VerifierHopBodyAvailability defines model for VerifierHop.BodyAvailability.

const (
	VerifierHopBodyAvailabilityKnown       VerifierHopBodyAvailability = "known"
	VerifierHopBodyAvailabilityUnavailable VerifierHopBodyAvailability = "unavailable"
)

Defines values for VerifierHopBodyAvailability.

func (VerifierHopBodyAvailability) Valid

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

type VerifierHopChangeClasses

type VerifierHopChangeClasses string

VerifierHopChangeClasses defines model for VerifierHop.ChangeClasses.

const (
	BodyRewrite   VerifierHopChangeClasses = "body.rewrite"
	HeaderRewrite VerifierHopChangeClasses = "header.rewrite"
)

Defines values for VerifierHopChangeClasses.

func (VerifierHopChangeClasses) Valid

func (e VerifierHopChangeClasses) Valid() bool

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

type VerifierHopCustodyTransition

type VerifierHopCustodyTransition string

VerifierHopCustodyTransition defines model for VerifierHop.CustodyTransition.

const (
	VerifierHopCustodyTransitionNextDomain         VerifierHopCustodyTransition = "next_domain"
	VerifierHopCustodyTransitionOrdinary           VerifierHopCustodyTransition = "ordinary"
	VerifierHopCustodyTransitionOrigin             VerifierHopCustodyTransition = "origin"
	VerifierHopCustodyTransitionTerminalNextDomain VerifierHopCustodyTransition = "terminal_next_domain"
)

Defines values for VerifierHopCustodyTransition.

func (VerifierHopCustodyTransition) Valid

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

type VerifierHopRecipeBodyMode

type VerifierHopRecipeBodyMode string

VerifierHopRecipeBodyMode defines model for VerifierHop.RecipeBodyMode.

const (
	VerifierHopRecipeBodyModeAbsent      VerifierHopRecipeBodyMode = "absent"
	VerifierHopRecipeBodyModeSteps       VerifierHopRecipeBodyMode = "steps"
	VerifierHopRecipeBodyModeUnavailable VerifierHopRecipeBodyMode = "unavailable"
)

Defines values for VerifierHopRecipeBodyMode.

func (VerifierHopRecipeBodyMode) Valid

func (e VerifierHopRecipeBodyMode) Valid() bool

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

type VerifierHopRecipeMode

type VerifierHopRecipeMode string

VerifierHopRecipeMode defines model for VerifierHop.RecipeMode.

const (
	Applied   VerifierHopRecipeMode = "applied"
	Unchanged VerifierHopRecipeMode = "unchanged"
)

Defines values for VerifierHopRecipeMode.

func (VerifierHopRecipeMode) Valid

func (e VerifierHopRecipeMode) Valid() bool

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

type VerifierHopSignatureAlgorithms

type VerifierHopSignatureAlgorithms string

VerifierHopSignatureAlgorithms defines model for VerifierHop.SignatureAlgorithms.

const (
	VerifierAlgorithmEd25519SHA256 VerifierHopSignatureAlgorithms = "ed25519-sha256"
	VerifierAlgorithmMLDSA44       VerifierHopSignatureAlgorithms = "mldsa44"
	VerifierAlgorithmRSASHA256     VerifierHopSignatureAlgorithms = "rsa-sha256"
)

Defines values for VerifierHopSignatureAlgorithms.

func (VerifierHopSignatureAlgorithms) Valid

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

type VerifierHopSignatureState

type VerifierHopSignatureState string

VerifierHopSignatureState defines model for VerifierHop.SignatureState.

const (
	VerifierHopSignatureStatePass VerifierHopSignatureState = "pass"
)

Defines values for VerifierHopSignatureState.

func (VerifierHopSignatureState) Valid

func (e VerifierHopSignatureState) Valid() bool

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

type VerifierProjection

type VerifierProjection struct {
	Binding          SHA256Binding                      `json:"binding"`
	BindingAlgorithm VerifierProjectionBindingAlgorithm `json:"binding_algorithm"`
	Draft            DraftVersion                       `json:"draft"`
	Hops             []VerifierHop                      `json:"hops"`
	Schema           VerifierProjectionSchema           `json:"schema"`
}

VerifierProjection Transport-neutral sealed verifier evidence for a complete ordinary authenticated chain.

type VerifierProjectionBindingAlgorithm

type VerifierProjectionBindingAlgorithm string

VerifierProjectionBindingAlgorithm defines model for VerifierProjection.BindingAlgorithm.

const (
	Sha256 VerifierProjectionBindingAlgorithm = "sha-256"
)

Defines values for VerifierProjectionBindingAlgorithm.

func (VerifierProjectionBindingAlgorithm) Valid

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

type VerifierProjectionSchema

type VerifierProjectionSchema string

VerifierProjectionSchema defines model for VerifierProjection.Schema.

const (
	Dkim2VerifierProjectionV1 VerifierProjectionSchema = "dkim2.verifier-projection.v1"
)

Defines values for VerifierProjectionSchema.

func (VerifierProjectionSchema) Valid

func (e VerifierProjectionSchema) Valid() bool

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

Jump to

Keyboard shortcuts

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