svix
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶

Svix - Webhooks as a service
Website |Documentation |Community Slack
Go library for interacting with the Svix API and verifying webhook signatures
Usage Documentation
You can find general usage documentation athttps://docs.svix.com. For complete API documentation with code examples for each endpoint in all of our official client libraries head over to our API documentation site athttps://api.svix.com.
Language Support
⚡️ Features ⚡️ | |
---|---|
Officially Supported | ✅ |
API Support | ✅ |
Signature Verification | ✅ |
Caveats | None! 🚀 |
Development
First checkout thecore README for details on how to generate our API bindings, then follow the steps below.
Requirements
- go >= 1.16
Contributing
Before opening a PR be sure to format your code!
go fmt ./...
Running Tests
Simply run:
go test ./...
Publishing
Releases use go modules and are automatically published by tagging the release commit.
Documentation¶
Overview¶
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Package svix this file is @generated DO NOT EDIT
Index¶
- Constants
- func NewMessageInRaw(eventType string, payload string, contentType *string) *models.MessageIn
- func SetUserAgentSuffix(s *Svix, userAgentSuffix string) error
- type AdobeSignConfig
- type AdobeSignConfigOut
- type AggregateEventTypesOut
- type ApiTokenCensoredOut
- type ApiTokenExpireIn
- type ApiTokenIn
- type ApiTokenOut
- type AppPortalAccessIn
- type AppPortalAccessOut
- type AppUsageStatsIn
- type AppUsageStatsOut
- type Application
- func (application *Application) Create(ctx context.Context, applicationIn models.ApplicationIn, ...) (*models.ApplicationOut, error)
- func (application *Application) Delete(ctx context.Context, appId string) error
- func (application *Application) Get(ctx context.Context, appId string) (*models.ApplicationOut, error)
- func (application *Application) GetOrCreate(ctx context.Context, applicationIn models.ApplicationIn, ...) (*models.ApplicationOut, error)
- func (application *Application) List(ctx context.Context, o *ApplicationListOptions) (*models.ListResponseApplicationOut, error)
- func (application *Application) Patch(ctx context.Context, appId string, applicationPatch models.ApplicationPatch) (*models.ApplicationOut, error)
- func (application *Application) Update(ctx context.Context, appId string, applicationIn models.ApplicationIn) (*models.ApplicationOut, error)
- type ApplicationCreateOptions
- type ApplicationIn
- type ApplicationListOptions
- type ApplicationOut
- type ApplicationPatch
- type ApplicationTokenExpireIn
- type Authentication
- func (authentication *Authentication) AppPortalAccess(ctx context.Context, appId string, appPortalAccessIn models.AppPortalAccessIn, ...) (*models.AppPortalAccessOut, error)
- func (authentication *Authentication) DashboardAccess(ctx context.Context, appId string, o *AuthenticationDashboardAccessOptions) (*models.DashboardAccessOut, error)deprecated
- func (authentication *Authentication) ExpireAll(ctx context.Context, appId string, ...) error
- func (authentication *Authentication) Logout(ctx context.Context, o *AuthenticationLogoutOptions) error
- type AuthenticationAppPortalAccessOptions
- type AuthenticationDashboardAccessOptions
- type AuthenticationExpireAllOptions
- type AuthenticationLogoutOptions
- type BackgroundTask
- type BackgroundTaskFinishedEvent
- type BackgroundTaskFinishedEvent2
- type BackgroundTaskListOptions
- type BackgroundTaskOut
- type BackgroundTaskStatus
- type BackgroundTaskType
- type ConnectorIn
- type ConnectorKind
- type ConnectorOut
- type CronConfig
- type DashboardAccessOut
- type DocusignConfig
- type DocusignConfigOut
- type Endpoint
- func (endpoint *Endpoint) Create(ctx context.Context, appId string, endpointIn models.EndpointIn, ...) (*models.EndpointOut, error)
- func (endpoint *Endpoint) Delete(ctx context.Context, appId string, endpointId string) error
- func (endpoint *Endpoint) Get(ctx context.Context, appId string, endpointId string) (*models.EndpointOut, error)
- func (endpoint *Endpoint) GetHeaders(ctx context.Context, appId string, endpointId string) (*models.EndpointHeadersOut, error)
- func (endpoint *Endpoint) GetSecret(ctx context.Context, appId string, endpointId string) (*models.EndpointSecretOut, error)
- func (endpoint *Endpoint) GetStats(ctx context.Context, appId string, endpointId string, ...) (*models.EndpointStats, error)
- func (endpoint *Endpoint) List(ctx context.Context, appId string, o *EndpointListOptions) (*models.ListResponseEndpointOut, error)
- func (endpoint *Endpoint) Patch(ctx context.Context, appId string, endpointId string, ...) (*models.EndpointOut, error)
- func (endpoint *Endpoint) PatchHeaders(ctx context.Context, appId string, endpointId string, ...) error
- func (endpoint *Endpoint) Recover(ctx context.Context, appId string, endpointId string, ...) (*models.RecoverOut, error)
- func (endpoint *Endpoint) ReplayMissing(ctx context.Context, appId string, endpointId string, replayIn models.ReplayIn, ...) (*models.ReplayOut, error)
- func (endpoint *Endpoint) RotateSecret(ctx context.Context, appId string, endpointId string, ...) error
- func (endpoint *Endpoint) SendExample(ctx context.Context, appId string, endpointId string, ...) (*models.MessageOut, error)
- func (endpoint *Endpoint) TransformationGet(ctx context.Context, appId string, endpointId string) (*models.EndpointTransformationOut, error)
- func (endpoint *Endpoint) TransformationPartialUpdate(ctx context.Context, appId string, endpointId string, ...) error
- func (endpoint *Endpoint) Update(ctx context.Context, appId string, endpointId string, ...) (*models.EndpointOut, error)
- func (endpoint *Endpoint) UpdateHeaders(ctx context.Context, appId string, endpointId string, ...) error
- type EndpointCreateOptions
- type EndpointCreatedEvent
- type EndpointCreatedEventData
- type EndpointDeletedEvent
- type EndpointDeletedEventData
- type EndpointDisabledEvent
- type EndpointDisabledEventData
- type EndpointDisabledTrigger
- type EndpointEnabledEvent
- type EndpointEnabledEventData
- type EndpointGetStatsOptions
- type EndpointHeadersIn
- type EndpointHeadersOut
- type EndpointHeadersPatchIn
- type EndpointIn
- type EndpointListOptions
- type EndpointMessageOut
- type EndpointOut
- type EndpointPatch
- type EndpointRecoverOptions
- type EndpointReplayMissingOptions
- type EndpointRotateSecretOptions
- type EndpointSecretOut
- type EndpointSecretRotateIn
- type EndpointSendExampleOptions
- type EndpointStats
- type EndpointTransformationIn
- type EndpointTransformationOut
- type EndpointUpdate
- type EndpointUpdatedEvent
- type EndpointUpdatedEventData
- type Environment
- type EnvironmentExportOptions
- type EnvironmentImportOptions
- type EnvironmentIn
- type EnvironmentOut
- type Error
- type EventExampleIn
- type EventType
- func (eventType *EventType) Create(ctx context.Context, eventTypeIn models.EventTypeIn, o *EventTypeCreateOptions) (*models.EventTypeOut, error)
- func (eventType *EventType) Delete(ctx context.Context, eventTypeName string, o *EventTypeDeleteOptions) error
- func (eventType *EventType) Get(ctx context.Context, eventTypeName string) (*models.EventTypeOut, error)
- func (eventType *EventType) ImportOpenapi(ctx context.Context, eventTypeImportOpenApiIn models.EventTypeImportOpenApiIn, ...) (*models.EventTypeImportOpenApiOut, error)
- func (eventType *EventType) List(ctx context.Context, o *EventTypeListOptions) (*models.ListResponseEventTypeOut, error)
- func (eventType *EventType) Patch(ctx context.Context, eventTypeName string, ...) (*models.EventTypeOut, error)
- func (eventType *EventType) Update(ctx context.Context, eventTypeName string, ...) (*models.EventTypeOut, error)
- type EventTypeCreateOptions
- type EventTypeDeleteOptions
- type EventTypeFromOpenApi
- type EventTypeImportOpenApiIn
- type EventTypeImportOpenApiOut
- type EventTypeImportOpenApiOutData
- type EventTypeImportOpenapiOptions
- type EventTypeIn
- type EventTypeListOptions
- type EventTypeOut
- type EventTypePatch
- type EventTypeUpdate
- type ExpungeAllContentsOut
- type GithubConfig
- type GithubConfigOut
- type HubspotConfig
- type HubspotConfigOut
- type Ingest
- type IngestDashboardOptions
- type IngestEndpoint
- func (ingestEndpoint *IngestEndpoint) Create(ctx context.Context, sourceId string, ingestEndpointIn models.IngestEndpointIn, ...) (*models.IngestEndpointOut, error)
- func (ingestEndpoint *IngestEndpoint) Delete(ctx context.Context, sourceId string, endpointId string) error
- func (ingestEndpoint *IngestEndpoint) Get(ctx context.Context, sourceId string, endpointId string) (*models.IngestEndpointOut, error)
- func (ingestEndpoint *IngestEndpoint) GetHeaders(ctx context.Context, sourceId string, endpointId string) (*models.IngestEndpointHeadersOut, error)
- func (ingestEndpoint *IngestEndpoint) GetSecret(ctx context.Context, sourceId string, endpointId string) (*models.IngestEndpointSecretOut, error)
- func (ingestEndpoint *IngestEndpoint) List(ctx context.Context, sourceId string, o *IngestEndpointListOptions) (*models.ListResponseIngestEndpointOut, error)
- func (ingestEndpoint *IngestEndpoint) RotateSecret(ctx context.Context, sourceId string, endpointId string, ...) error
- func (ingestEndpoint *IngestEndpoint) Update(ctx context.Context, sourceId string, endpointId string, ...) (*models.IngestEndpointOut, error)
- func (ingestEndpoint *IngestEndpoint) UpdateHeaders(ctx context.Context, sourceId string, endpointId string, ...) error
- type IngestEndpointCreateOptions
- type IngestEndpointHeadersIn
- type IngestEndpointHeadersOut
- type IngestEndpointIn
- type IngestEndpointListOptions
- type IngestEndpointOut
- type IngestEndpointRotateSecretOptions
- type IngestEndpointSecretIn
- type IngestEndpointSecretOut
- type IngestEndpointUpdate
- type IngestSource
- func (ingestSource *IngestSource) Create(ctx context.Context, ingestSourceIn models.IngestSourceIn, ...) (*models.IngestSourceOut, error)
- func (ingestSource *IngestSource) Delete(ctx context.Context, sourceId string) error
- func (ingestSource *IngestSource) Get(ctx context.Context, sourceId string) (*models.IngestSourceOut, error)
- func (ingestSource *IngestSource) List(ctx context.Context, o *IngestSourceListOptions) (*models.ListResponseIngestSourceOut, error)
- func (ingestSource *IngestSource) RotateToken(ctx context.Context, sourceId string, o *IngestSourceRotateTokenOptions) (*models.RotateTokenOut, error)
- func (ingestSource *IngestSource) Update(ctx context.Context, sourceId string, ingestSourceIn models.IngestSourceIn) (*models.IngestSourceOut, error)
- type IngestSourceConsumerPortalAccessIn
- type IngestSourceCreateOptions
- type IngestSourceIn
- type IngestSourceListOptions
- type IngestSourceOut
- type IngestSourceRotateTokenOptions
- type Integration
- func (integration *Integration) Create(ctx context.Context, appId string, integrationIn models.IntegrationIn, ...) (*models.IntegrationOut, error)
- func (integration *Integration) Delete(ctx context.Context, appId string, integId string) error
- func (integration *Integration) Get(ctx context.Context, appId string, integId string) (*models.IntegrationOut, error)
- func (integration *Integration) GetKey(ctx context.Context, appId string, integId string) (*models.IntegrationKeyOut, error)deprecated
- func (integration *Integration) List(ctx context.Context, appId string, o *IntegrationListOptions) (*models.ListResponseIntegrationOut, error)
- func (integration *Integration) RotateKey(ctx context.Context, appId string, integId string, ...) (*models.IntegrationKeyOut, error)
- func (integration *Integration) Update(ctx context.Context, appId string, integId string, ...) (*models.IntegrationOut, error)
- type IntegrationCreateOptions
- type IntegrationIn
- type IntegrationKeyOut
- type IntegrationListOptions
- type IntegrationOut
- type IntegrationRotateKeyOptions
- type IntegrationUpdate
- type ListResponseApiTokenCensoredOut
- type ListResponseApplicationOut
- type ListResponseBackgroundTaskOut
- type ListResponseEndpointMessageOut
- type ListResponseEndpointOut
- type ListResponseEventTypeOut
- type ListResponseIngestEndpointOut
- type ListResponseIngestSourceOut
- type ListResponseIntegrationOut
- type ListResponseMessageAttemptOut
- type ListResponseMessageEndpointOut
- type ListResponseMessageOut
- type ListResponseOperationalWebhookEndpointOut
- type Management
- type ManagementAuthentication
- func (managementAuthentication *ManagementAuthentication) CreateApiToken(ctx context.Context, apiTokenIn models.ApiTokenIn, ...) (*models.ApiTokenOut, error)
- func (managementAuthentication *ManagementAuthentication) ExpireApiToken(ctx context.Context, keyId string, apiTokenExpireIn models.ApiTokenExpireIn, ...) error
- func (managementAuthentication *ManagementAuthentication) ListApiTokens(ctx context.Context, o *ManagementAuthenticationListApiTokensOptions) (*models.ListResponseApiTokenCensoredOut, error)
- type ManagementAuthenticationCreateApiTokenOptions
- type ManagementAuthenticationExpireApiTokenOptions
- type ManagementAuthenticationListApiTokensOptions
- type Message
- func (message *Message) Create(ctx context.Context, appId string, messageIn models.MessageIn, ...) (*models.MessageOut, error)
- func (message *Message) ExpungeAllContents(ctx context.Context, appId string, o *MessageExpungeAllContentsOptions) (*models.ExpungeAllContentsOut, error)
- func (message *Message) ExpungeContent(ctx context.Context, appId string, msgId string) error
- func (message *Message) Get(ctx context.Context, appId string, msgId string, o *MessageGetOptions) (*models.MessageOut, error)
- func (message *Message) List(ctx context.Context, appId string, o *MessageListOptions) (*models.ListResponseMessageOut, error)
- type MessageAttempt
- func (messageAttempt *MessageAttempt) ExpungeContent(ctx context.Context, appId string, msgId string, attemptId string) error
- func (messageAttempt *MessageAttempt) Get(ctx context.Context, appId string, msgId string, attemptId string) (*models.MessageAttemptOut, error)
- func (messageAttempt *MessageAttempt) ListAttemptedDestinations(ctx context.Context, appId string, msgId string, ...) (*models.ListResponseMessageEndpointOut, error)
- func (messageAttempt *MessageAttempt) ListAttemptedMessages(ctx context.Context, appId string, endpointId string, ...) (*models.ListResponseEndpointMessageOut, error)
- func (messageAttempt *MessageAttempt) ListByEndpoint(ctx context.Context, appId string, endpointId string, ...) (*models.ListResponseMessageAttemptOut, error)
- func (messageAttempt *MessageAttempt) ListByMsg(ctx context.Context, appId string, msgId string, ...) (*models.ListResponseMessageAttemptOut, error)
- func (messageAttempt *MessageAttempt) Resend(ctx context.Context, appId string, msgId string, endpointId string, ...) error
- type MessageAttemptExhaustedEvent
- type MessageAttemptExhaustedEventData
- type MessageAttemptFailedData
- type MessageAttemptFailingEvent
- type MessageAttemptFailingEventData
- type MessageAttemptListAttemptedDestinationsOptions
- type MessageAttemptListAttemptedMessagesOptions
- type MessageAttemptListByEndpointOptions
- type MessageAttemptListByMsgOptions
- type MessageAttemptOut
- type MessageAttemptRecoveredEvent
- type MessageAttemptRecoveredEventData
- type MessageAttemptResendOptions
- type MessageAttemptTriggerType
- type MessageCreateOptions
- type MessageEndpointOut
- type MessageExpungeAllContentsOptions
- type MessageGetOptions
- type MessageIn
- type MessageListOptions
- type MessageOut
- type MessagePoller
- func (messagePoller *MessagePoller) ConsumerPoll(ctx context.Context, appId string, sinkId string, consumerId string, ...) (*models.PollingEndpointOut, error)
- func (messagePoller *MessagePoller) ConsumerSeek(ctx context.Context, appId string, sinkId string, consumerId string, ...) (*models.PollingEndpointConsumerSeekOut, error)
- func (messagePoller *MessagePoller) Poll(ctx context.Context, appId string, sinkId string, o *MessagePollerPollOptions) (*models.PollingEndpointOut, error)
- type MessagePollerConsumerPollOptions
- type MessagePollerConsumerSeekOptions
- type MessagePollerPollOptions
- type MessageStatus
- type OperationalWebhook
- type OperationalWebhookEndpoint
- func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Create(ctx context.Context, ...) (*models.OperationalWebhookEndpointOut, error)
- func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Delete(ctx context.Context, endpointId string) error
- func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Get(ctx context.Context, endpointId string) (*models.OperationalWebhookEndpointOut, error)
- func (operationalWebhookEndpoint *OperationalWebhookEndpoint) GetHeaders(ctx context.Context, endpointId string) (*models.OperationalWebhookEndpointHeadersOut, error)
- func (operationalWebhookEndpoint *OperationalWebhookEndpoint) GetSecret(ctx context.Context, endpointId string) (*models.OperationalWebhookEndpointSecretOut, error)
- func (operationalWebhookEndpoint *OperationalWebhookEndpoint) List(ctx context.Context, o *OperationalWebhookEndpointListOptions) (*models.ListResponseOperationalWebhookEndpointOut, error)
- func (operationalWebhookEndpoint *OperationalWebhookEndpoint) RotateSecret(ctx context.Context, endpointId string, ...) error
- func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Update(ctx context.Context, endpointId string, ...) (*models.OperationalWebhookEndpointOut, error)
- func (operationalWebhookEndpoint *OperationalWebhookEndpoint) UpdateHeaders(ctx context.Context, endpointId string, ...) error
- type OperationalWebhookEndpointCreateOptions
- type OperationalWebhookEndpointHeadersIn
- type OperationalWebhookEndpointHeadersOut
- type OperationalWebhookEndpointIn
- type OperationalWebhookEndpointListOptions
- type OperationalWebhookEndpointOut
- type OperationalWebhookEndpointRotateSecretOptions
- type OperationalWebhookEndpointSecretIn
- type OperationalWebhookEndpointSecretOut
- type OperationalWebhookEndpointUpdate
- type Ordering
- type PandaDocConfig
- type PandaDocConfigOut
- type PollingEndpointConsumerSeekIn
- type PollingEndpointConsumerSeekOut
- type PollingEndpointMessageOut
- type PollingEndpointOut
- type RecoverIn
- type RecoverOut
- type ReplayIn
- type ReplayOut
- type RotateTokenOut
- type SegmentConfig
- type SegmentConfigOut
- type ShopifyConfig
- type ShopifyConfigOut
- type SlackConfig
- type SlackConfigOut
- type Statistics
- type StatisticsAggregateAppStatsOptions
- type StatusCodeClass
- type StripeConfig
- type StripeConfigOut
- type Svix
- type SvixConfig
- type SvixConfigOut
- type SvixOptions
- type Webhook
- type ZoomConfig
- type ZoomConfigOut
Constants¶
const Version = "1.69.0"
Variables¶
This section is empty.
Functions¶
funcNewMessageInRaw¶added inv1.43.0
Instantiates a new MessageIn object with a raw string payload.The payload is not normalized on the server. Normally, payloads are requiredto be JSON, and Svix will minify the payload before sending the webhook(for example, by removing extraneous whitespace or unnecessarily escapedcharacters in strings). With this function, the payload will be sent"as is", without any minification or other processing.
The `contentType` parameter can be used to change the `content-type` headerof the webhook sent by Svix overriding the default of `application/json`.
See the class documentation for details about the other parameters.
funcSetUserAgentSuffix¶added inv1.65.0
Add a custom suffix to the default user-agent
The default user agent is `svix-libs/<version>/go`.The suffix will be separated from the base user agent with a `/`
The suffix must be less then 50 chars, And must match this regex `^[A-Za-z\d\.\-]+$`
Types¶
typeAdobeSignConfig¶added inv1.63.0
type AdobeSignConfig =models.AdobeSignConfig
typeAdobeSignConfigOut¶added inv1.63.0
type AdobeSignConfigOut =models.AdobeSignConfigOut
typeAggregateEventTypesOut¶added inv1.14.0
type AggregateEventTypesOut =models.AggregateEventTypesOut
typeApiTokenCensoredOut¶added inv1.63.1
type ApiTokenCensoredOut =models.ApiTokenCensoredOut
typeApiTokenExpireIn¶added inv1.63.1
type ApiTokenExpireIn =models.ApiTokenExpireIn
typeApiTokenIn¶added inv1.63.1
type ApiTokenIn =models.ApiTokenIn
typeApiTokenOut¶added inv1.63.1
type ApiTokenOut =models.ApiTokenOut
typeAppPortalAccessIn¶added inv0.75.0
type AppPortalAccessIn =models.AppPortalAccessIn
typeAppPortalAccessOut¶added inv0.75.0
type AppPortalAccessOut =models.AppPortalAccessOut
typeAppUsageStatsIn¶added inv1.14.0
type AppUsageStatsIn =models.AppUsageStatsIn
typeAppUsageStatsOut¶added inv1.14.0
type AppUsageStatsOut =models.AppUsageStatsOut
typeApplication¶
type Application struct {// contains filtered or unexported fields}
func (*Application)Create¶
func (application *Application) Create(ctxcontext.Context,applicationInmodels.ApplicationIn,o *ApplicationCreateOptions,) (*models.ApplicationOut,error)
Create a new application.
func (*Application)Delete¶
func (application *Application) Delete(ctxcontext.Context,appIdstring,)error
Delete an application.
func (*Application)Get¶
func (application *Application) Get(ctxcontext.Context,appIdstring,) (*models.ApplicationOut,error)
Get an application.
func (*Application)GetOrCreate¶added inv0.52.0
func (application *Application) GetOrCreate(ctxcontext.Context,applicationInmodels.ApplicationIn,o *ApplicationCreateOptions,) (*models.ApplicationOut,error)
Get or create a new application.
func (*Application)List¶
func (application *Application) List(ctxcontext.Context,o *ApplicationListOptions,) (*models.ListResponseApplicationOut,error)
List of all the organization's applications.
func (*Application)Patch¶added inv1.6.0
func (application *Application) Patch(ctxcontext.Context,appIdstring,applicationPatchmodels.ApplicationPatch,) (*models.ApplicationOut,error)
Partially update an application.
func (*Application)Update¶
func (application *Application) Update(ctxcontext.Context,appIdstring,applicationInmodels.ApplicationIn,) (*models.ApplicationOut,error)
Update an application.
typeApplicationCreateOptions¶added inv1.57.0
type ApplicationCreateOptions struct {IdempotencyKey *string}
typeApplicationIn¶
type ApplicationIn =models.ApplicationIn
typeApplicationOut¶
type ApplicationOut =models.ApplicationOut
typeApplicationPatch¶added inv1.6.0
type ApplicationPatch =models.ApplicationPatch
typeApplicationTokenExpireIn¶added inv1.58.2
type ApplicationTokenExpireIn =models.ApplicationTokenExpireIn
typeAuthentication¶
type Authentication struct {// contains filtered or unexported fields}
func (*Authentication)AppPortalAccess¶added inv0.75.0
func (authentication *Authentication) AppPortalAccess(ctxcontext.Context,appIdstring,appPortalAccessInmodels.AppPortalAccessIn,o *AuthenticationAppPortalAccessOptions,) (*models.AppPortalAccessOut,error)
Use this function to get magic links (and authentication codes) for connecting your users to the Consumer Application Portal.
func (*Authentication)DashboardAccessdeprecated
func (authentication *Authentication) DashboardAccess(ctxcontext.Context,appIdstring,o *AuthenticationDashboardAccessOptions,) (*models.DashboardAccessOut,error)
Deprecated: Please use `AppPortalAccess` instead.
func (*Authentication)ExpireAll¶added inv1.57.0
func (authentication *Authentication) ExpireAll(ctxcontext.Context,appIdstring,applicationTokenExpireInmodels.ApplicationTokenExpireIn,o *AuthenticationExpireAllOptions,)error
Expire all of the tokens associated with a specific application.
func (*Authentication)Logout¶
func (authentication *Authentication) Logout(ctxcontext.Context,o *AuthenticationLogoutOptions,)error
Logout an app token.
Trying to log out other tokens will fail.
typeAuthenticationAppPortalAccessOptions¶added inv1.57.0
type AuthenticationAppPortalAccessOptions struct {IdempotencyKey *string}
typeAuthenticationDashboardAccessOptions¶added inv1.57.0
type AuthenticationDashboardAccessOptions struct {IdempotencyKey *string}
typeAuthenticationExpireAllOptions¶added inv1.57.0
type AuthenticationExpireAllOptions struct {IdempotencyKey *string}
typeAuthenticationLogoutOptions¶added inv1.57.0
type AuthenticationLogoutOptions struct {IdempotencyKey *string}
typeBackgroundTask¶added inv1.4.12
type BackgroundTask struct {// contains filtered or unexported fields}
func (*BackgroundTask)Get¶added inv1.4.12
func (backgroundTask *BackgroundTask) Get(ctxcontext.Context,taskIdstring,) (*models.BackgroundTaskOut,error)
Get a background task by ID.
func (*BackgroundTask)List¶added inv1.4.12
func (backgroundTask *BackgroundTask) List(ctxcontext.Context,o *BackgroundTaskListOptions,) (*models.ListResponseBackgroundTaskOut,error)
List background tasks executed in the past 90 days.
typeBackgroundTaskFinishedEvent¶added inv1.63.0
type BackgroundTaskFinishedEvent =models.BackgroundTaskFinishedEvent
typeBackgroundTaskFinishedEvent2¶added inv1.63.0
type BackgroundTaskFinishedEvent2 =models.BackgroundTaskFinishedEvent2
typeBackgroundTaskListOptions¶added inv1.4.12
type BackgroundTaskListOptions struct {// Filter the response based on the status.Status *models.BackgroundTaskStatus// Filter the response based on the type.Task *models.BackgroundTaskType// Limit the number of returned itemsLimit *uint64// The iterator returned from a prior invocationIterator *string// The sorting order of the returned itemsOrder *models.Ordering}
typeBackgroundTaskOut¶added inv1.4.12
type BackgroundTaskOut =models.BackgroundTaskOut
typeBackgroundTaskStatus¶added inv1.58.2
type BackgroundTaskStatus =models.BackgroundTaskStatus
typeBackgroundTaskType¶added inv1.58.2
type BackgroundTaskType =models.BackgroundTaskType
typeConnectorIn¶added inv1.58.2
type ConnectorIn =models.ConnectorIn
typeConnectorKind¶added inv1.58.2
type ConnectorKind =models.ConnectorKind
typeConnectorOut¶added inv1.63.0
type ConnectorOut =models.ConnectorOut
typeCronConfig¶added inv1.63.0
type CronConfig =models.CronConfig
typeDashboardAccessOut¶
type DashboardAccessOut =models.DashboardAccessOut
typeDocusignConfig¶added inv1.63.0
type DocusignConfig =models.DocusignConfig
typeDocusignConfigOut¶added inv1.63.0
type DocusignConfigOut =models.DocusignConfigOut
typeEndpoint¶
type Endpoint struct {// contains filtered or unexported fields}
func (*Endpoint)Create¶
func (endpoint *Endpoint) Create(ctxcontext.Context,appIdstring,endpointInmodels.EndpointIn,o *EndpointCreateOptions,) (*models.EndpointOut,error)
Create a new endpoint for the application.
When `secret` is `null` the secret is automatically generated (recommended).
func (*Endpoint)Get¶
func (endpoint *Endpoint) Get(ctxcontext.Context,appIdstring,endpointIdstring,) (*models.EndpointOut,error)
Get an endpoint.
func (*Endpoint)GetHeaders¶
func (endpoint *Endpoint) GetHeaders(ctxcontext.Context,appIdstring,endpointIdstring,) (*models.EndpointHeadersOut,error)
Get the additional headers to be sent with the webhook.
func (*Endpoint)GetSecret¶
func (endpoint *Endpoint) GetSecret(ctxcontext.Context,appIdstring,endpointIdstring,) (*models.EndpointSecretOut,error)
Get the endpoint's signing secret.
This is used to verify the authenticity of the webhook.For more information please refer to [the consuming webhooks docs](https://docs.svix.com/consuming-webhooks/).
func (*Endpoint)GetStats¶added inv0.66.0
func (endpoint *Endpoint) GetStats(ctxcontext.Context,appIdstring,endpointIdstring,o *EndpointGetStatsOptions,) (*models.EndpointStats,error)
Get basic statistics for the endpoint.
func (*Endpoint)List¶
func (endpoint *Endpoint) List(ctxcontext.Context,appIdstring,o *EndpointListOptions,) (*models.ListResponseEndpointOut,error)
List the application's endpoints.
func (*Endpoint)Patch¶added inv1.6.0
func (endpoint *Endpoint) Patch(ctxcontext.Context,appIdstring,endpointIdstring,endpointPatchmodels.EndpointPatch,) (*models.EndpointOut,error)
Partially update an endpoint.
func (*Endpoint)PatchHeaders¶
func (endpoint *Endpoint) PatchHeaders(ctxcontext.Context,appIdstring,endpointIdstring,endpointHeadersPatchInmodels.EndpointHeadersPatchIn,)error
Partially set the additional headers to be sent with the webhook.
func (*Endpoint)Recover¶
func (endpoint *Endpoint) Recover(ctxcontext.Context,appIdstring,endpointIdstring,recoverInmodels.RecoverIn,o *EndpointRecoverOptions,) (*models.RecoverOut,error)
Resend all failed messages since a given time.
Messages that were sent successfully, even if failed initially, are not resent.
func (*Endpoint)ReplayMissing¶added inv0.76.1
func (endpoint *Endpoint) ReplayMissing(ctxcontext.Context,appIdstring,endpointIdstring,replayInmodels.ReplayIn,o *EndpointReplayMissingOptions,) (*models.ReplayOut,error)
Replays messages to the endpoint.
Only messages that were created after `since` will be sent.Messages that were previously sent to the endpoint are not resent.
func (*Endpoint)RotateSecret¶
func (endpoint *Endpoint) RotateSecret(ctxcontext.Context,appIdstring,endpointIdstring,endpointSecretRotateInmodels.EndpointSecretRotateIn,o *EndpointRotateSecretOptions,)error
Rotates the endpoint's signing secret.
The previous secret will remain valid for the next 24 hours.
func (*Endpoint)SendExample¶added inv0.83.0
func (endpoint *Endpoint) SendExample(ctxcontext.Context,appIdstring,endpointIdstring,eventExampleInmodels.EventExampleIn,o *EndpointSendExampleOptions,) (*models.MessageOut,error)
Send an example message for an event.
func (*Endpoint)TransformationGet¶added inv0.76.0
func (endpoint *Endpoint) TransformationGet(ctxcontext.Context,appIdstring,endpointIdstring,) (*models.EndpointTransformationOut,error)
Get the transformation code associated with this endpoint.
func (*Endpoint)TransformationPartialUpdate¶added inv1.14.0
func (endpoint *Endpoint) TransformationPartialUpdate(ctxcontext.Context,appIdstring,endpointIdstring,endpointTransformationInmodels.EndpointTransformationIn,)error
Set or unset the transformation code associated with this endpoint.
func (*Endpoint)Update¶
func (endpoint *Endpoint) Update(ctxcontext.Context,appIdstring,endpointIdstring,endpointUpdatemodels.EndpointUpdate,) (*models.EndpointOut,error)
Update an endpoint.
func (*Endpoint)UpdateHeaders¶
func (endpoint *Endpoint) UpdateHeaders(ctxcontext.Context,appIdstring,endpointIdstring,endpointHeadersInmodels.EndpointHeadersIn,)error
Set the additional headers to be sent with the webhook.
typeEndpointCreateOptions¶added inv1.57.0
type EndpointCreateOptions struct {IdempotencyKey *string}
typeEndpointCreatedEvent¶added inv1.63.0
type EndpointCreatedEvent =models.EndpointCreatedEvent
typeEndpointCreatedEventData¶added inv1.63.0
type EndpointCreatedEventData =models.EndpointCreatedEventData
typeEndpointDeletedEvent¶added inv1.63.0
type EndpointDeletedEvent =models.EndpointDeletedEvent
typeEndpointDeletedEventData¶added inv1.63.0
type EndpointDeletedEventData =models.EndpointDeletedEventData
typeEndpointDisabledEvent¶added inv1.63.0
type EndpointDisabledEvent =models.EndpointDisabledEvent
typeEndpointDisabledEventData¶added inv1.63.0
type EndpointDisabledEventData =models.EndpointDisabledEventData
typeEndpointDisabledTrigger¶added inv1.63.0
type EndpointDisabledTrigger =models.EndpointDisabledTrigger
typeEndpointEnabledEvent¶added inv1.63.0
type EndpointEnabledEvent =models.EndpointEnabledEvent
typeEndpointEnabledEventData¶added inv1.63.0
type EndpointEnabledEventData =models.EndpointEnabledEventData
typeEndpointGetStatsOptions¶added inv1.57.0
typeEndpointHeadersIn¶
type EndpointHeadersIn =models.EndpointHeadersIn
typeEndpointHeadersOut¶
type EndpointHeadersOut =models.EndpointHeadersOut
typeEndpointHeadersPatchIn¶added inv0.57.1
type EndpointHeadersPatchIn =models.EndpointHeadersPatchIn
typeEndpointIn¶
type EndpointIn =models.EndpointIn
typeEndpointMessageOut¶added inv0.83.0
type EndpointMessageOut =models.EndpointMessageOut
typeEndpointOut¶
type EndpointOut =models.EndpointOut
typeEndpointPatch¶added inv1.6.0
type EndpointPatch =models.EndpointPatch
typeEndpointRecoverOptions¶added inv1.57.0
type EndpointRecoverOptions struct {IdempotencyKey *string}
typeEndpointReplayMissingOptions¶added inv1.57.0
type EndpointReplayMissingOptions struct {IdempotencyKey *string}
typeEndpointRotateSecretOptions¶added inv1.57.0
type EndpointRotateSecretOptions struct {IdempotencyKey *string}
typeEndpointSecretOut¶
type EndpointSecretOut =models.EndpointSecretOut
typeEndpointSecretRotateIn¶
type EndpointSecretRotateIn =models.EndpointSecretRotateIn
typeEndpointSendExampleOptions¶added inv1.57.0
type EndpointSendExampleOptions struct {IdempotencyKey *string}
typeEndpointStats¶added inv0.66.0
type EndpointStats =models.EndpointStats
typeEndpointTransformationIn¶added inv0.76.0
type EndpointTransformationIn =models.EndpointTransformationIn
typeEndpointTransformationOut¶added inv0.76.0
type EndpointTransformationOut =models.EndpointTransformationOut
typeEndpointUpdate¶
type EndpointUpdate =models.EndpointUpdate
typeEndpointUpdatedEvent¶added inv1.63.0
type EndpointUpdatedEvent =models.EndpointUpdatedEvent
typeEndpointUpdatedEventData¶added inv1.63.0
type EndpointUpdatedEventData =models.EndpointUpdatedEventData
typeEnvironment¶added inv1.63.0
type Environment struct {// contains filtered or unexported fields}
func (*Environment)Export¶added inv1.63.0
func (environment *Environment) Export(ctxcontext.Context,o *EnvironmentExportOptions,) (*models.EnvironmentOut,error)
Download a JSON file containing all org-settings and event types.
func (*Environment)Import¶added inv1.63.0
func (environment *Environment) Import(ctxcontext.Context,environmentInmodels.EnvironmentIn,o *EnvironmentImportOptions,)error
Import a configuration into the active organization.
It doesn't delete anything, only adds / updates what was passed to it.
typeEnvironmentExportOptions¶added inv1.63.0
type EnvironmentExportOptions struct {IdempotencyKey *string}
typeEnvironmentImportOptions¶added inv1.63.0
type EnvironmentImportOptions struct {IdempotencyKey *string}
typeEnvironmentIn¶added inv1.58.2
type EnvironmentIn =models.EnvironmentIn
typeEnvironmentOut¶added inv1.58.2
type EnvironmentOut =models.EnvironmentOut
typeEventExampleIn¶added inv0.83.0
type EventExampleIn =models.EventExampleIn
typeEventType¶
type EventType struct {// contains filtered or unexported fields}
func (*EventType)Create¶
func (eventType *EventType) Create(ctxcontext.Context,eventTypeInmodels.EventTypeIn,o *EventTypeCreateOptions,) (*models.EventTypeOut,error)
Create new or unarchive existing event type.
Unarchiving an event type will allow endpoints to filter on it and messages to be sent with it.Endpoints filtering on the event type before archival will continue to filter on it.This operation does not preserve the description and schemas.
func (*EventType)Delete¶
func (eventType *EventType) Delete(ctxcontext.Context,eventTypeNamestring,o *EventTypeDeleteOptions,)error
Archive an event type.
Endpoints already configured to filter on an event type will continue to do so after archival.However, new messages can not be sent with it and endpoints can not filter on it.An event type can be unarchived with the[create operation](#operation/create_event_type_api_v1_event_type__post).
func (*EventType)Get¶
func (eventType *EventType) Get(ctxcontext.Context,eventTypeNamestring,) (*models.EventTypeOut,error)
Get an event type.
func (*EventType)ImportOpenapi¶added inv1.57.0
func (eventType *EventType) ImportOpenapi(ctxcontext.Context,eventTypeImportOpenApiInmodels.EventTypeImportOpenApiIn,o *EventTypeImportOpenapiOptions,) (*models.EventTypeImportOpenApiOut,error)
Given an OpenAPI spec, create new or update existing event types.If an existing `archived` event type is updated, it will be unarchived.
The importer will convert all webhooks found in the either the `webhooks` or `x-webhooks`top-level.
func (*EventType)List¶
func (eventType *EventType) List(ctxcontext.Context,o *EventTypeListOptions,) (*models.ListResponseEventTypeOut,error)
Return the list of event types.
typeEventTypeCreateOptions¶added inv1.57.0
type EventTypeCreateOptions struct {IdempotencyKey *string}
typeEventTypeDeleteOptions¶added inv1.13.0
type EventTypeDeleteOptions struct {// By default event types are archived when "deleted". Passing this to `true` deletes them entirely.Expunge *bool}
typeEventTypeFromOpenApi¶added inv1.58.2
type EventTypeFromOpenApi =models.EventTypeFromOpenApi
typeEventTypeImportOpenApiIn¶added inv1.11.0
type EventTypeImportOpenApiIn =models.EventTypeImportOpenApiIn
typeEventTypeImportOpenApiOut¶added inv1.11.0
type EventTypeImportOpenApiOut =models.EventTypeImportOpenApiOut
typeEventTypeImportOpenApiOutData¶added inv1.11.0
type EventTypeImportOpenApiOutData =models.EventTypeImportOpenApiOutData
typeEventTypeImportOpenapiOptions¶added inv1.57.0
type EventTypeImportOpenapiOptions struct {IdempotencyKey *string}
typeEventTypeIn¶
type EventTypeIn =models.EventTypeIn
typeEventTypeListOptions¶
type EventTypeListOptions struct {// Limit the number of returned itemsLimit *uint64// The iterator returned from a prior invocationIterator *string// The sorting order of the returned itemsOrder *models.Ordering// When `true` archived (deleted but not expunged) items are included in the response.IncludeArchived *bool// When `true` the full item (including the schema) is included in the response.WithContent *bool}
typeEventTypeOut¶
type EventTypeOut =models.EventTypeOut
typeEventTypePatch¶added inv1.6.0
type EventTypePatch =models.EventTypePatch
typeEventTypeUpdate¶
type EventTypeUpdate =models.EventTypeUpdate
typeExpungeAllContentsOut¶added inv1.61.1
type ExpungeAllContentsOut =models.ExpungeAllContentsOut
typeGithubConfig¶added inv1.63.0
type GithubConfig =models.GithubConfig
typeGithubConfigOut¶added inv1.63.0
type GithubConfigOut =models.GithubConfigOut
typeHubspotConfig¶added inv1.63.0
type HubspotConfig =models.HubspotConfig
typeHubspotConfigOut¶added inv1.63.0
type HubspotConfigOut =models.HubspotConfigOut
typeIngest¶added inv1.63.0
type Ingest struct {Endpoint *IngestEndpointSource *IngestSource// contains filtered or unexported fields}
func (*Ingest)Dashboard¶added inv1.63.0
func (ingest *Ingest) Dashboard(ctxcontext.Context,sourceIdstring,ingestSourceConsumerPortalAccessInmodels.IngestSourceConsumerPortalAccessIn,o *IngestDashboardOptions,) (*models.DashboardAccessOut,error)
Get access to the Ingest Source Consumer Portal.
typeIngestDashboardOptions¶added inv1.63.0
type IngestDashboardOptions struct {IdempotencyKey *string}
typeIngestEndpoint¶added inv1.63.0
type IngestEndpoint struct {// contains filtered or unexported fields}
func (*IngestEndpoint)Create¶added inv1.63.0
func (ingestEndpoint *IngestEndpoint) Create(ctxcontext.Context,sourceIdstring,ingestEndpointInmodels.IngestEndpointIn,o *IngestEndpointCreateOptions,) (*models.IngestEndpointOut,error)
Create an ingest endpoint.
func (*IngestEndpoint)Delete¶added inv1.63.0
func (ingestEndpoint *IngestEndpoint) Delete(ctxcontext.Context,sourceIdstring,endpointIdstring,)error
Delete an ingest endpoint.
func (*IngestEndpoint)Get¶added inv1.63.0
func (ingestEndpoint *IngestEndpoint) Get(ctxcontext.Context,sourceIdstring,endpointIdstring,) (*models.IngestEndpointOut,error)
Get an ingest endpoint.
func (*IngestEndpoint)GetHeaders¶added inv1.63.0
func (ingestEndpoint *IngestEndpoint) GetHeaders(ctxcontext.Context,sourceIdstring,endpointIdstring,) (*models.IngestEndpointHeadersOut,error)
Get the additional headers to be sent with the ingest.
func (*IngestEndpoint)GetSecret¶added inv1.63.0
func (ingestEndpoint *IngestEndpoint) GetSecret(ctxcontext.Context,sourceIdstring,endpointIdstring,) (*models.IngestEndpointSecretOut,error)
Get an ingest endpoint's signing secret.
This is used to verify the authenticity of the webhook.For more information please refer to [the consuming webhooks docs](https://docs.svix.com/consuming-webhooks/).
func (*IngestEndpoint)List¶added inv1.63.0
func (ingestEndpoint *IngestEndpoint) List(ctxcontext.Context,sourceIdstring,o *IngestEndpointListOptions,) (*models.ListResponseIngestEndpointOut,error)
List ingest endpoints.
func (*IngestEndpoint)RotateSecret¶added inv1.63.0
func (ingestEndpoint *IngestEndpoint) RotateSecret(ctxcontext.Context,sourceIdstring,endpointIdstring,ingestEndpointSecretInmodels.IngestEndpointSecretIn,o *IngestEndpointRotateSecretOptions,)error
Rotates an ingest endpoint's signing secret.
The previous secret will remain valid for the next 24 hours.
func (*IngestEndpoint)Update¶added inv1.63.0
func (ingestEndpoint *IngestEndpoint) Update(ctxcontext.Context,sourceIdstring,endpointIdstring,ingestEndpointUpdatemodels.IngestEndpointUpdate,) (*models.IngestEndpointOut,error)
Update an ingest endpoint.
func (*IngestEndpoint)UpdateHeaders¶added inv1.63.0
func (ingestEndpoint *IngestEndpoint) UpdateHeaders(ctxcontext.Context,sourceIdstring,endpointIdstring,ingestEndpointHeadersInmodels.IngestEndpointHeadersIn,)error
Set the additional headers to be sent to the endpoint.
typeIngestEndpointCreateOptions¶added inv1.63.0
type IngestEndpointCreateOptions struct {IdempotencyKey *string}
typeIngestEndpointHeadersIn¶added inv1.61.1
type IngestEndpointHeadersIn =models.IngestEndpointHeadersIn
typeIngestEndpointHeadersOut¶added inv1.61.1
type IngestEndpointHeadersOut =models.IngestEndpointHeadersOut
typeIngestEndpointIn¶added inv1.61.1
type IngestEndpointIn =models.IngestEndpointIn
typeIngestEndpointListOptions¶added inv1.63.0
typeIngestEndpointOut¶added inv1.61.1
type IngestEndpointOut =models.IngestEndpointOut
typeIngestEndpointRotateSecretOptions¶added inv1.63.0
type IngestEndpointRotateSecretOptions struct {IdempotencyKey *string}
typeIngestEndpointSecretIn¶added inv1.61.1
type IngestEndpointSecretIn =models.IngestEndpointSecretIn
typeIngestEndpointSecretOut¶added inv1.61.1
type IngestEndpointSecretOut =models.IngestEndpointSecretOut
typeIngestEndpointUpdate¶added inv1.61.1
type IngestEndpointUpdate =models.IngestEndpointUpdate
typeIngestSource¶added inv1.63.0
type IngestSource struct {// contains filtered or unexported fields}
func (*IngestSource)Create¶added inv1.63.0
func (ingestSource *IngestSource) Create(ctxcontext.Context,ingestSourceInmodels.IngestSourceIn,o *IngestSourceCreateOptions,) (*models.IngestSourceOut,error)
Create Ingest Source.
func (*IngestSource)Delete¶added inv1.63.0
func (ingestSource *IngestSource) Delete(ctxcontext.Context,sourceIdstring,)error
Delete an Ingest Source.
func (*IngestSource)Get¶added inv1.63.0
func (ingestSource *IngestSource) Get(ctxcontext.Context,sourceIdstring,) (*models.IngestSourceOut,error)
Get an Ingest Source by id or uid.
func (*IngestSource)List¶added inv1.63.0
func (ingestSource *IngestSource) List(ctxcontext.Context,o *IngestSourceListOptions,) (*models.ListResponseIngestSourceOut,error)
List of all the organization's Ingest Sources.
func (*IngestSource)RotateToken¶added inv1.63.0
func (ingestSource *IngestSource) RotateToken(ctxcontext.Context,sourceIdstring,o *IngestSourceRotateTokenOptions,) (*models.RotateTokenOut,error)
Rotate the Ingest Source's Url Token.
This will rotate the ingest source's token, which is used toconstruct the unique `ingestUrl` for the source. Previous tokenswill remain valid for 48 hours after rotation. The token can berotated a maximum of three times within the 48-hour period.
func (*IngestSource)Update¶added inv1.63.0
func (ingestSource *IngestSource) Update(ctxcontext.Context,sourceIdstring,ingestSourceInmodels.IngestSourceIn,) (*models.IngestSourceOut,error)
Update an Ingest Source.
typeIngestSourceConsumerPortalAccessIn¶added inv1.63.0
type IngestSourceConsumerPortalAccessIn =models.IngestSourceConsumerPortalAccessIn
typeIngestSourceCreateOptions¶added inv1.63.0
type IngestSourceCreateOptions struct {IdempotencyKey *string}
typeIngestSourceIn¶added inv1.63.0
type IngestSourceIn =models.IngestSourceIn
typeIngestSourceListOptions¶added inv1.63.0
typeIngestSourceOut¶added inv1.63.0
type IngestSourceOut =models.IngestSourceOut
typeIngestSourceRotateTokenOptions¶added inv1.63.0
type IngestSourceRotateTokenOptions struct {IdempotencyKey *string}
typeIntegration¶
type Integration struct {// contains filtered or unexported fields}
func (*Integration)Create¶
func (integration *Integration) Create(ctxcontext.Context,appIdstring,integrationInmodels.IntegrationIn,o *IntegrationCreateOptions,) (*models.IntegrationOut,error)
Create an integration.
func (*Integration)Get¶
func (integration *Integration) Get(ctxcontext.Context,appIdstring,integIdstring,) (*models.IntegrationOut,error)
Get an integration.
func (*Integration)GetKeydeprecated
func (integration *Integration) GetKey(ctxcontext.Context,appIdstring,integIdstring,) (*models.IntegrationKeyOut,error)
Get an integration's key.
Deprecated: GetKey is deprecated.
func (*Integration)List¶
func (integration *Integration) List(ctxcontext.Context,appIdstring,o *IntegrationListOptions,) (*models.ListResponseIntegrationOut,error)
List the application's integrations.
func (*Integration)RotateKey¶
func (integration *Integration) RotateKey(ctxcontext.Context,appIdstring,integIdstring,o *IntegrationRotateKeyOptions,) (*models.IntegrationKeyOut,error)
Rotate the integration's key. The previous key will be immediately revoked.
func (*Integration)Update¶
func (integration *Integration) Update(ctxcontext.Context,appIdstring,integIdstring,integrationUpdatemodels.IntegrationUpdate,) (*models.IntegrationOut,error)
Update an integration.
typeIntegrationCreateOptions¶added inv1.57.0
type IntegrationCreateOptions struct {IdempotencyKey *string}
typeIntegrationIn¶
type IntegrationIn =models.IntegrationIn
typeIntegrationKeyOut¶
type IntegrationKeyOut =models.IntegrationKeyOut
typeIntegrationOut¶
type IntegrationOut =models.IntegrationOut
typeIntegrationRotateKeyOptions¶added inv1.57.0
type IntegrationRotateKeyOptions struct {IdempotencyKey *string}
typeIntegrationUpdate¶
type IntegrationUpdate =models.IntegrationUpdate
typeListResponseApiTokenCensoredOut¶added inv1.63.1
type ListResponseApiTokenCensoredOut =models.ListResponseApiTokenCensoredOut
typeListResponseApplicationOut¶
type ListResponseApplicationOut =models.ListResponseApplicationOut
typeListResponseBackgroundTaskOut¶added inv1.4.12
type ListResponseBackgroundTaskOut =models.ListResponseBackgroundTaskOut
typeListResponseEndpointMessageOut¶
type ListResponseEndpointMessageOut =models.ListResponseEndpointMessageOut
typeListResponseEndpointOut¶
type ListResponseEndpointOut =models.ListResponseEndpointOut
typeListResponseEventTypeOut¶
type ListResponseEventTypeOut =models.ListResponseEventTypeOut
typeListResponseIngestEndpointOut¶added inv1.61.1
type ListResponseIngestEndpointOut =models.ListResponseIngestEndpointOut
typeListResponseIngestSourceOut¶added inv1.63.0
type ListResponseIngestSourceOut =models.ListResponseIngestSourceOut
typeListResponseIntegrationOut¶
type ListResponseIntegrationOut =models.ListResponseIntegrationOut
typeListResponseMessageAttemptOut¶
type ListResponseMessageAttemptOut =models.ListResponseMessageAttemptOut
typeListResponseMessageEndpointOut¶
type ListResponseMessageEndpointOut =models.ListResponseMessageEndpointOut
typeListResponseMessageOut¶
type ListResponseMessageOut =models.ListResponseMessageOut
typeListResponseOperationalWebhookEndpointOut¶added inv1.39.0
type ListResponseOperationalWebhookEndpointOut =models.ListResponseOperationalWebhookEndpointOut
typeManagement¶added inv1.63.1
type Management struct {Authentication *ManagementAuthentication}
typeManagementAuthentication¶added inv1.63.1
type ManagementAuthentication struct {// contains filtered or unexported fields}
func (*ManagementAuthentication)CreateApiToken¶added inv1.63.1
func (managementAuthentication *ManagementAuthentication) CreateApiToken(ctxcontext.Context,apiTokenInmodels.ApiTokenIn,o *ManagementAuthenticationCreateApiTokenOptions,) (*models.ApiTokenOut,error)
Create a new API Token.
func (*ManagementAuthentication)ExpireApiToken¶added inv1.63.1
func (managementAuthentication *ManagementAuthentication) ExpireApiToken(ctxcontext.Context,keyIdstring,apiTokenExpireInmodels.ApiTokenExpireIn,o *ManagementAuthenticationExpireApiTokenOptions,)error
Expire the selected API Token.
func (*ManagementAuthentication)ListApiTokens¶added inv1.63.1
func (managementAuthentication *ManagementAuthentication) ListApiTokens(ctxcontext.Context,o *ManagementAuthenticationListApiTokensOptions,) (*models.ListResponseApiTokenCensoredOut,error)
List all API Tokens.
typeManagementAuthenticationCreateApiTokenOptions¶added inv1.63.1
type ManagementAuthenticationCreateApiTokenOptions struct {IdempotencyKey *string}
typeManagementAuthenticationExpireApiTokenOptions¶added inv1.63.1
type ManagementAuthenticationExpireApiTokenOptions struct {IdempotencyKey *string}
typeManagementAuthenticationListApiTokensOptions¶added inv1.63.1
typeMessage¶
type Message struct {Poller *MessagePoller// contains filtered or unexported fields}
func (*Message)Create¶
func (message *Message) Create(ctxcontext.Context,appIdstring,messageInmodels.MessageIn,o *MessageCreateOptions,) (*models.MessageOut,error)
Creates a new message and dispatches it to all of the application's endpoints.
The `eventId` is an optional custom unique ID. It's verified to be unique only up to a day, after that no verification will be made.If a message with the same `eventId` already exists for the application, a 409 conflict error will be returned.
The `eventType` indicates the type and schema of the event. All messages of a certain `eventType` are expected to have the same schema. Endpoints can choose to only listen to specific event types.Messages can also have `channels`, which similar to event types let endpoints filter by them. Unlike event types, messages can have multiple channels, and channels don't imply a specific message content or schema.
The `payload` property is the webhook's body (the actual webhook message). Svix supports payload sizes of up to 1MiB, though it's generally a good idea to keep webhook payloads small, probably no larger than 40kb.
func (*Message)ExpungeAllContents¶added inv1.58.2
func (message *Message) ExpungeAllContents(ctxcontext.Context,appIdstring,o *MessageExpungeAllContentsOptions,) (*models.ExpungeAllContentsOut,error)
Delete all message payloads for the application.
This operation is only available in the <a href="https://svix.com/pricing" target="_blank">Enterprise</a> plan.
func (*Message)ExpungeContent¶added inv0.76.0
Delete the given message's payload.
Useful in cases when a message was accidentally sent with sensitive content.The message can't be replayed or resent once its payload has been deleted or expired.
func (*Message)Get¶
func (message *Message) Get(ctxcontext.Context,appIdstring,msgIdstring,o *MessageGetOptions,) (*models.MessageOut,error)
Get a message by its ID or eventID.
func (*Message)List¶
func (message *Message) List(ctxcontext.Context,appIdstring,o *MessageListOptions,) (*models.ListResponseMessageOut,error)
List all of the application's messages.
The `before` and `after` parameters let you filter all items created before or after a certain date. These can be used alongside an iterator to paginate over resultswithin a certain window.
Note that by default this endpoint is limited to retrieving 90 days' worth of datarelative to now or, if an iterator is provided, 90 days before/after the time indicatedby the iterator ID. If you require data beyond those time ranges, you will need to explicitlyset the `before` or `after` parameter as appropriate.
typeMessageAttempt¶
type MessageAttempt struct {// contains filtered or unexported fields}
func (*MessageAttempt)ExpungeContent¶added inv0.76.0
func (messageAttempt *MessageAttempt) ExpungeContent(ctxcontext.Context,appIdstring,msgIdstring,attemptIdstring,)error
Deletes the given attempt's response body.
Useful when an endpoint accidentally returned sensitive content.The message can't be replayed or resent once its payload has been deleted or expired.
func (*MessageAttempt)Get¶
func (messageAttempt *MessageAttempt) Get(ctxcontext.Context,appIdstring,msgIdstring,attemptIdstring,) (*models.MessageAttemptOut,error)
`msg_id`: Use a message id or a message `eventId`
func (*MessageAttempt)ListAttemptedDestinations¶
func (messageAttempt *MessageAttempt) ListAttemptedDestinations(ctxcontext.Context,appIdstring,msgIdstring,o *MessageAttemptListAttemptedDestinationsOptions,) (*models.ListResponseMessageEndpointOut,error)
List endpoints attempted by a given message.
Additionally includes metadata about the latest message attempt.By default, endpoints are listed in ascending order by ID.
func (*MessageAttempt)ListAttemptedMessages¶
func (messageAttempt *MessageAttempt) ListAttemptedMessages(ctxcontext.Context,appIdstring,endpointIdstring,o *MessageAttemptListAttemptedMessagesOptions,) (*models.ListResponseEndpointMessageOut,error)
List messages for a particular endpoint. Additionally includes metadata about the latest message attempt.
The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
Note that by default this endpoint is limited to retrieving 90 days' worth of datarelative to now or, if an iterator is provided, 90 days before/after the time indicatedby the iterator ID. If you require data beyond those time ranges, you will need to explicitlyset the `before` or `after` parameter as appropriate.
func (*MessageAttempt)ListByEndpoint¶added inv0.48.0
func (messageAttempt *MessageAttempt) ListByEndpoint(ctxcontext.Context,appIdstring,endpointIdstring,o *MessageAttemptListByEndpointOptions,) (*models.ListResponseMessageAttemptOut,error)
List attempts by endpoint id
Note that by default this endpoint is limited to retrieving 90 days' worth of datarelative to now or, if an iterator is provided, 90 days before/after the time indicatedby the iterator ID. If you require data beyond those time ranges, you will need to explicitlyset the `before` or `after` parameter as appropriate.
func (*MessageAttempt)ListByMsg¶added inv0.48.0
func (messageAttempt *MessageAttempt) ListByMsg(ctxcontext.Context,appIdstring,msgIdstring,o *MessageAttemptListByMsgOptions,) (*models.ListResponseMessageAttemptOut,error)
List attempts by message ID.
Note that by default this endpoint is limited to retrieving 90 days' worth of datarelative to now or, if an iterator is provided, 90 days before/after the time indicatedby the iterator ID. If you require data beyond those time ranges, you will need to explicitlyset the `before` or `after` parameter as appropriate.
func (*MessageAttempt)Resend¶
func (messageAttempt *MessageAttempt) Resend(ctxcontext.Context,appIdstring,msgIdstring,endpointIdstring,o *MessageAttemptResendOptions,)error
Resend a message to the specified endpoint.
typeMessageAttemptExhaustedEvent¶added inv1.63.0
type MessageAttemptExhaustedEvent =models.MessageAttemptExhaustedEvent
typeMessageAttemptExhaustedEventData¶added inv1.63.0
type MessageAttemptExhaustedEventData =models.MessageAttemptExhaustedEventData
typeMessageAttemptFailedData¶added inv1.63.0
type MessageAttemptFailedData =models.MessageAttemptFailedData
typeMessageAttemptFailingEvent¶added inv1.63.0
type MessageAttemptFailingEvent =models.MessageAttemptFailingEvent
typeMessageAttemptFailingEventData¶added inv1.63.0
type MessageAttemptFailingEventData =models.MessageAttemptFailingEventData
typeMessageAttemptListAttemptedDestinationsOptions¶added inv1.57.0
typeMessageAttemptListAttemptedMessagesOptions¶added inv1.57.0
type MessageAttemptListAttemptedMessagesOptions struct {// Limit the number of returned itemsLimit *uint64// The iterator returned from a prior invocationIterator *string// Filter response based on the channelChannel *string// Filter response based on the message tagsTag *string// Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)Status *models.MessageStatus// Only include items created before a certain dateBefore *time.Time// Only include items created after a certain dateAfter *time.Time// When `true` message payloads are included in the responseWithContent *bool// Filter response based on the event typeEventTypes *[]string}
typeMessageAttemptListByEndpointOptions¶added inv1.57.0
type MessageAttemptListByEndpointOptions struct {// Limit the number of returned itemsLimit *uint64// The iterator returned from a prior invocationIterator *string// Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)Status *models.MessageStatus// Filter response based on the HTTP status codeStatusCodeClass *models.StatusCodeClass// Filter response based on the channelChannel *string// Filter response based on the tagTag *string// Only include items created before a certain dateBefore *time.Time// Only include items created after a certain dateAfter *time.Time// When `true` attempt content is included in the responseWithContent *bool// When `true`, the message information is included in the responseWithMsg *bool// Filter response based on the event typeEventTypes *[]string}
typeMessageAttemptListByMsgOptions¶added inv1.57.0
type MessageAttemptListByMsgOptions struct {// Limit the number of returned itemsLimit *uint64// The iterator returned from a prior invocationIterator *string// Filter response based on the status of the attempt: Success (0), Pending (1), Failed (2), or Sending (3)Status *models.MessageStatus// Filter response based on the HTTP status codeStatusCodeClass *models.StatusCodeClass// Filter response based on the channelChannel *string// Filter response based on the tagTag *string// Filter the attempts based on the attempted endpointEndpointId *string// Only include items created before a certain dateBefore *time.Time// Only include items created after a certain dateAfter *time.Time// When `true` attempt content is included in the responseWithContent *bool// Filter response based on the event typeEventTypes *[]string}
typeMessageAttemptOut¶
type MessageAttemptOut =models.MessageAttemptOut
typeMessageAttemptRecoveredEvent¶added inv1.63.0
type MessageAttemptRecoveredEvent =models.MessageAttemptRecoveredEvent
typeMessageAttemptRecoveredEventData¶added inv1.63.0
type MessageAttemptRecoveredEventData =models.MessageAttemptRecoveredEventData
typeMessageAttemptResendOptions¶added inv1.57.0
type MessageAttemptResendOptions struct {IdempotencyKey *string}
typeMessageAttemptTriggerType¶added inv1.58.2
type MessageAttemptTriggerType =models.MessageAttemptTriggerType
typeMessageCreateOptions¶added inv1.57.0
typeMessageEndpointOut¶added inv0.83.0
type MessageEndpointOut =models.MessageEndpointOut
typeMessageExpungeAllContentsOptions¶added inv1.58.2
type MessageExpungeAllContentsOptions struct {IdempotencyKey *string}
typeMessageGetOptions¶added inv1.57.0
type MessageGetOptions struct {// When `true` message payloads are included in the response.WithContent *bool}
typeMessageListOptions¶
type MessageListOptions struct {// Limit the number of returned itemsLimit *uint64// The iterator returned from a prior invocationIterator *string// Filter response based on the channel.Channel *string// Only include items created before a certain date.Before *time.Time// Only include items created after a certain date.After *time.Time// When `true` message payloads are included in the response.WithContent *bool// Filter messages matching the provided tag.Tag *string// Filter response based on the event typeEventTypes *[]string}
typeMessageOut¶
type MessageOut =models.MessageOut
typeMessagePoller¶added inv1.64.1
type MessagePoller struct {// contains filtered or unexported fields}
func (*MessagePoller)ConsumerPoll¶added inv1.64.1
func (messagePoller *MessagePoller) ConsumerPoll(ctxcontext.Context,appIdstring,sinkIdstring,consumerIdstring,o *MessagePollerConsumerPollOptions,) (*models.PollingEndpointOut,error)
Reads the stream of created messages for an application, filtered on the Sink's event types andChannels, using server-managed iterator tracking.
func (*MessagePoller)ConsumerSeek¶added inv1.64.1
func (messagePoller *MessagePoller) ConsumerSeek(ctxcontext.Context,appIdstring,sinkIdstring,consumerIdstring,pollingEndpointConsumerSeekInmodels.PollingEndpointConsumerSeekIn,o *MessagePollerConsumerSeekOptions,) (*models.PollingEndpointConsumerSeekOut,error)
Sets the starting offset for the consumer of a polling endpoint.
func (*MessagePoller)Poll¶added inv1.64.1
func (messagePoller *MessagePoller) Poll(ctxcontext.Context,appIdstring,sinkIdstring,o *MessagePollerPollOptions,) (*models.PollingEndpointOut,error)
Reads the stream of created messages for an application, filtered on the Sink's event types and Channels.
typeMessagePollerConsumerPollOptions¶added inv1.64.1
typeMessagePollerConsumerSeekOptions¶added inv1.64.1
type MessagePollerConsumerSeekOptions struct {IdempotencyKey *string}
typeMessagePollerPollOptions¶added inv1.64.1
type MessagePollerPollOptions struct {// Limit the number of returned itemsLimit *uint64// The iterator returned from a prior invocationIterator *string// Filters messages sent with this event type (optional).EventType *string// Filters messages sent with this channel (optional).Channel *stringAfter *time.Time}
typeMessageStatus¶
type MessageStatus =models.MessageStatus
typeOperationalWebhook¶added inv1.63.0
type OperationalWebhook struct {Endpoint *OperationalWebhookEndpoint}
typeOperationalWebhookEndpoint¶added inv1.39.0
type OperationalWebhookEndpoint struct {// contains filtered or unexported fields}
func (*OperationalWebhookEndpoint)Create¶added inv1.39.0
func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Create(ctxcontext.Context,operationalWebhookEndpointInmodels.OperationalWebhookEndpointIn,o *OperationalWebhookEndpointCreateOptions,) (*models.OperationalWebhookEndpointOut,error)
Create an operational webhook endpoint.
func (*OperationalWebhookEndpoint)Delete¶added inv1.39.0
func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Delete(ctxcontext.Context,endpointIdstring,)error
Delete an operational webhook endpoint.
func (*OperationalWebhookEndpoint)Get¶added inv1.39.0
func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Get(ctxcontext.Context,endpointIdstring,) (*models.OperationalWebhookEndpointOut,error)
Get an operational webhook endpoint.
func (*OperationalWebhookEndpoint)GetHeaders¶added inv1.57.0
func (operationalWebhookEndpoint *OperationalWebhookEndpoint) GetHeaders(ctxcontext.Context,endpointIdstring,) (*models.OperationalWebhookEndpointHeadersOut,error)
Get the additional headers to be sent with the operational webhook.
func (*OperationalWebhookEndpoint)GetSecret¶added inv1.39.0
func (operationalWebhookEndpoint *OperationalWebhookEndpoint) GetSecret(ctxcontext.Context,endpointIdstring,) (*models.OperationalWebhookEndpointSecretOut,error)
Get an operational webhook endpoint's signing secret.
This is used to verify the authenticity of the webhook.For more information please refer to [the consuming webhooks docs](https://docs.svix.com/consuming-webhooks/).
func (*OperationalWebhookEndpoint)List¶added inv1.39.0
func (operationalWebhookEndpoint *OperationalWebhookEndpoint) List(ctxcontext.Context,o *OperationalWebhookEndpointListOptions,) (*models.ListResponseOperationalWebhookEndpointOut,error)
List operational webhook endpoints.
func (*OperationalWebhookEndpoint)RotateSecret¶added inv1.39.0
func (operationalWebhookEndpoint *OperationalWebhookEndpoint) RotateSecret(ctxcontext.Context,endpointIdstring,operationalWebhookEndpointSecretInmodels.OperationalWebhookEndpointSecretIn,o *OperationalWebhookEndpointRotateSecretOptions,)error
Rotates an operational webhook endpoint's signing secret.
The previous secret will remain valid for the next 24 hours.
func (*OperationalWebhookEndpoint)Update¶added inv1.39.0
func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Update(ctxcontext.Context,endpointIdstring,operationalWebhookEndpointUpdatemodels.OperationalWebhookEndpointUpdate,) (*models.OperationalWebhookEndpointOut,error)
Update an operational webhook endpoint.
func (*OperationalWebhookEndpoint)UpdateHeaders¶added inv1.57.0
func (operationalWebhookEndpoint *OperationalWebhookEndpoint) UpdateHeaders(ctxcontext.Context,endpointIdstring,operationalWebhookEndpointHeadersInmodels.OperationalWebhookEndpointHeadersIn,)error
Set the additional headers to be sent with the operational webhook.
typeOperationalWebhookEndpointCreateOptions¶added inv1.57.0
type OperationalWebhookEndpointCreateOptions struct {IdempotencyKey *string}
typeOperationalWebhookEndpointHeadersIn¶added inv1.58.2
type OperationalWebhookEndpointHeadersIn =models.OperationalWebhookEndpointHeadersIn
typeOperationalWebhookEndpointHeadersOut¶added inv1.58.2
type OperationalWebhookEndpointHeadersOut =models.OperationalWebhookEndpointHeadersOut
typeOperationalWebhookEndpointIn¶added inv1.39.0
type OperationalWebhookEndpointIn =models.OperationalWebhookEndpointIn
typeOperationalWebhookEndpointListOptions¶added inv1.39.0
typeOperationalWebhookEndpointOut¶added inv1.39.0
type OperationalWebhookEndpointOut =models.OperationalWebhookEndpointOut
typeOperationalWebhookEndpointRotateSecretOptions¶added inv1.57.0
type OperationalWebhookEndpointRotateSecretOptions struct {IdempotencyKey *string}
typeOperationalWebhookEndpointSecretIn¶added inv1.39.0
type OperationalWebhookEndpointSecretIn =models.OperationalWebhookEndpointSecretIn
typeOperationalWebhookEndpointSecretOut¶added inv1.39.0
type OperationalWebhookEndpointSecretOut =models.OperationalWebhookEndpointSecretOut
typeOperationalWebhookEndpointUpdate¶added inv1.39.0
type OperationalWebhookEndpointUpdate =models.OperationalWebhookEndpointUpdate
typePandaDocConfig¶added inv1.67.0
type PandaDocConfig =models.PandaDocConfig
typePandaDocConfigOut¶added inv1.67.0
type PandaDocConfigOut =models.PandaDocConfigOut
typePollingEndpointConsumerSeekIn¶added inv1.63.0
type PollingEndpointConsumerSeekIn =models.PollingEndpointConsumerSeekIn
typePollingEndpointConsumerSeekOut¶added inv1.63.0
type PollingEndpointConsumerSeekOut =models.PollingEndpointConsumerSeekOut
typePollingEndpointMessageOut¶added inv1.63.0
type PollingEndpointMessageOut =models.PollingEndpointMessageOut
typePollingEndpointOut¶added inv1.63.0
type PollingEndpointOut =models.PollingEndpointOut
typeRecoverOut¶added inv1.29.0
type RecoverOut =models.RecoverOut
typeRotateTokenOut¶added inv1.63.0
type RotateTokenOut =models.RotateTokenOut
typeSegmentConfig¶added inv1.63.0
type SegmentConfig =models.SegmentConfig
typeSegmentConfigOut¶added inv1.63.0
type SegmentConfigOut =models.SegmentConfigOut
typeShopifyConfig¶added inv1.63.0
type ShopifyConfig =models.ShopifyConfig
typeShopifyConfigOut¶added inv1.63.0
type ShopifyConfigOut =models.ShopifyConfigOut
typeSlackConfig¶added inv1.63.0
type SlackConfig =models.SlackConfig
typeSlackConfigOut¶added inv1.63.0
type SlackConfigOut =models.SlackConfigOut
typeStatistics¶added inv1.14.0
type Statistics struct {// contains filtered or unexported fields}
func (*Statistics)AggregateAppStats¶added inv1.14.0
func (statistics *Statistics) AggregateAppStats(ctxcontext.Context,appUsageStatsInmodels.AppUsageStatsIn,o *StatisticsAggregateAppStatsOptions,) (*models.AppUsageStatsOut,error)
Creates a background task to calculate the message destinations for all applications in the environment.
Note that this endpoint is asynchronous. You will need to poll the `Get Background Task` endpoint toretrieve the results of the operation.
func (*Statistics)AggregateEventTypes¶added inv1.14.0
func (statistics *Statistics) AggregateEventTypes(ctxcontext.Context,) (*models.AggregateEventTypesOut,error)
Creates a background task to calculate the listed event types for all apps in the organization.
Note that this endpoint is asynchronous. You will need to poll the `Get Background Task` endpoint toretrieve the results of the operation.
typeStatisticsAggregateAppStatsOptions¶added inv1.57.0
type StatisticsAggregateAppStatsOptions struct {IdempotencyKey *string}
typeStatusCodeClass¶added inv0.50.0
type StatusCodeClass =models.StatusCodeClass
typeStripeConfig¶added inv1.63.0
type StripeConfig =models.StripeConfig
typeStripeConfigOut¶added inv1.63.0
type StripeConfigOut =models.StripeConfigOut
typeSvix¶
type Svix struct {Authentication *AuthenticationApplication *ApplicationEndpoint *EndpointEnvironment *EnvironmentEventType *EventTypeIngest *IngestIntegration *IntegrationManagement *ManagementMessage *MessageMessageAttempt *MessageAttemptStatistics *StatisticsOperationalWebhook *OperationalWebhookOperationalWebhookEndpoint *OperationalWebhookEndpoint// contains filtered or unexported fields}
typeSvixConfig¶added inv1.63.0
type SvixConfig =models.SvixConfig
typeSvixConfigOut¶added inv1.63.0
type SvixConfigOut =models.SvixConfigOut
typeSvixOptions¶
typeWebhook¶
type Webhook struct {// contains filtered or unexported fields}
funcNewWebhook¶
funcNewWebhookRaw¶added inv0.63.0
func (*Webhook)Verify¶
Verify validates the payload against the svix signature headersusing the webhooks signing secret.
Returns an error if the body or headers are missing/unreadableor if the signature doesn't match.
func (*Webhook)VerifyIgnoringTimestamp¶
VerifyIgnoringTimestamp validates the payload against the svix signature headersusing the webhooks signing secret.
Returns an error if the body or headers are missing/unreadableor if the signature doesn't match.
WARNING: This function does not check the signature's timestamp.We recommend using the `Verify` function instead.
typeZoomConfig¶added inv1.63.0
type ZoomConfig =models.ZoomConfig
typeZoomConfigOut¶added inv1.63.0
type ZoomConfigOut =models.ZoomConfigOut
Source Files¶
- application.go
- authentication.go
- background_task.go
- deprecated.go
- endpoint.go
- environment.go
- errors.go
- event_type.go
- ingest.go
- ingest_endpoint.go
- ingest_source.go
- integration.go
- management.go
- management_authentication.go
- message.go
- message_attempt.go
- message_ext.go
- message_poller.go
- models.go
- operational_webhook.go
- operational_webhook_endpoint.go
- statistics.go
- svix.go
- version.go
- webhook.go
Directories¶
Path | Synopsis |
---|---|
Package internalapi, DO NOT USE THIS FILE, THE API WILL CHANGE WITHOUT WARNING!!!! | Package internalapi, DO NOT USE THIS FILE, THE API WILL CHANGE WITHOUT WARNING!!!! |
Package svix this file is @generated DO NOT EDIT | Package svix this file is @generated DO NOT EDIT |