Movatterモバイル変換


[0]ホーム

URL:


svix

package
v1.69.0Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License:MITImports:13Imported by:19

Details

Repository

github.com/svix/svix-webhooks

Links

README

Svix - Webhooks as a service

Website |Documentation |Community Slack

Go library for interacting with the Svix API and verifying webhook signatures

GitHub tagPkgGoDev

Join our slack

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
CaveatsNone! 🚀

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

View Source
const Version = "1.69.0"

Variables

This section is empty.

Functions

funcNewMessageInRawadded inv1.43.0

func NewMessageInRaw(eventTypestring,payloadstring,contentType *string,) *models.MessageIn

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.

funcSetUserAgentSuffixadded inv1.65.0

func SetUserAgentSuffix(s *Svix, userAgentSuffixstring)error

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

typeAdobeSignConfigadded inv1.63.0

type AdobeSignConfig =models.AdobeSignConfig

typeAdobeSignConfigOutadded inv1.63.0

type AdobeSignConfigOut =models.AdobeSignConfigOut

typeAggregateEventTypesOutadded inv1.14.0

type AggregateEventTypesOut =models.AggregateEventTypesOut

typeApiTokenCensoredOutadded inv1.63.1

type ApiTokenCensoredOut =models.ApiTokenCensoredOut

typeApiTokenExpireInadded inv1.63.1

type ApiTokenExpireIn =models.ApiTokenExpireIn

typeApiTokenInadded inv1.63.1

type ApiTokenIn =models.ApiTokenIn

typeApiTokenOutadded inv1.63.1

type ApiTokenOut =models.ApiTokenOut

typeAppPortalAccessInadded inv0.75.0

type AppPortalAccessIn =models.AppPortalAccessIn

typeAppPortalAccessOutadded inv0.75.0

type AppPortalAccessOut =models.AppPortalAccessOut

typeAppUsageStatsInadded inv1.14.0

type AppUsageStatsIn =models.AppUsageStatsIn

typeAppUsageStatsOutadded inv1.14.0

type AppUsageStatsOut =models.AppUsageStatsOut

typeApplication

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

func (*Application)Create

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

List of all the organization's applications.

func (*Application)Patchadded 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.

typeApplicationCreateOptionsadded inv1.57.0

type ApplicationCreateOptions struct {IdempotencyKey *string}

typeApplicationIn

type ApplicationIn =models.ApplicationIn

typeApplicationListOptions

type ApplicationListOptions 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}

typeApplicationOut

type ApplicationOut =models.ApplicationOut

typeApplicationPatchadded inv1.6.0

type ApplicationPatch =models.ApplicationPatch

typeApplicationTokenExpireInadded inv1.58.2

type ApplicationTokenExpireIn =models.ApplicationTokenExpireIn

typeAuthentication

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

func (*Authentication)AppPortalAccessadded inv0.75.0

Use this function to get magic links (and authentication codes) for connecting your users to the Consumer Application Portal.

func (*Authentication)DashboardAccessdeprecated

Deprecated: Please use `AppPortalAccess` instead.

func (*Authentication)ExpireAlladded 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.

typeAuthenticationAppPortalAccessOptionsadded inv1.57.0

type AuthenticationAppPortalAccessOptions struct {IdempotencyKey *string}

typeAuthenticationDashboardAccessOptionsadded inv1.57.0

type AuthenticationDashboardAccessOptions struct {IdempotencyKey *string}

typeAuthenticationExpireAllOptionsadded inv1.57.0

type AuthenticationExpireAllOptions struct {IdempotencyKey *string}

typeAuthenticationLogoutOptionsadded inv1.57.0

type AuthenticationLogoutOptions struct {IdempotencyKey *string}

typeBackgroundTaskadded inv1.4.12

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

func (*BackgroundTask)Getadded inv1.4.12

func (backgroundTask *BackgroundTask) Get(ctxcontext.Context,taskIdstring,) (*models.BackgroundTaskOut,error)

Get a background task by ID.

func (*BackgroundTask)Listadded inv1.4.12

List background tasks executed in the past 90 days.

typeBackgroundTaskFinishedEventadded inv1.63.0

type BackgroundTaskFinishedEvent =models.BackgroundTaskFinishedEvent

typeBackgroundTaskFinishedEvent2added inv1.63.0

type BackgroundTaskFinishedEvent2 =models.BackgroundTaskFinishedEvent2

typeBackgroundTaskListOptionsadded 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}

typeBackgroundTaskOutadded inv1.4.12

type BackgroundTaskOut =models.BackgroundTaskOut

typeBackgroundTaskStatusadded inv1.58.2

type BackgroundTaskStatus =models.BackgroundTaskStatus

typeBackgroundTaskTypeadded inv1.58.2

type BackgroundTaskType =models.BackgroundTaskType

typeConnectorInadded inv1.58.2

type ConnectorIn =models.ConnectorIn

typeConnectorKindadded inv1.58.2

type ConnectorKind =models.ConnectorKind

typeConnectorOutadded inv1.63.0

type ConnectorOut =models.ConnectorOut

typeCronConfigadded inv1.63.0

type CronConfig =models.CronConfig

typeDashboardAccessOut

type DashboardAccessOut =models.DashboardAccessOut

typeDocusignConfigadded inv1.63.0

type DocusignConfig =models.DocusignConfig

typeDocusignConfigOutadded 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)Delete

func (endpoint *Endpoint) Delete(ctxcontext.Context,appIdstring,endpointIdstring,)error

Delete an endpoint.

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

List the application's endpoints.

func (*Endpoint)Patchadded 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)ReplayMissingadded 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)SendExampleadded 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)TransformationGetadded inv0.76.0

func (endpoint *Endpoint) TransformationGet(ctxcontext.Context,appIdstring,endpointIdstring,) (*models.EndpointTransformationOut,error)

Get the transformation code associated with this endpoint.

func (*Endpoint)TransformationPartialUpdateadded 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.

typeEndpointCreateOptionsadded inv1.57.0

type EndpointCreateOptions struct {IdempotencyKey *string}

typeEndpointCreatedEventadded inv1.63.0

type EndpointCreatedEvent =models.EndpointCreatedEvent

typeEndpointCreatedEventDataadded inv1.63.0

type EndpointCreatedEventData =models.EndpointCreatedEventData

typeEndpointDeletedEventadded inv1.63.0

type EndpointDeletedEvent =models.EndpointDeletedEvent

typeEndpointDeletedEventDataadded inv1.63.0

type EndpointDeletedEventData =models.EndpointDeletedEventData

typeEndpointDisabledEventadded inv1.63.0

type EndpointDisabledEvent =models.EndpointDisabledEvent

typeEndpointDisabledEventDataadded inv1.63.0

type EndpointDisabledEventData =models.EndpointDisabledEventData

typeEndpointDisabledTriggeradded inv1.63.0

type EndpointDisabledTrigger =models.EndpointDisabledTrigger

typeEndpointEnabledEventadded inv1.63.0

type EndpointEnabledEvent =models.EndpointEnabledEvent

typeEndpointEnabledEventDataadded inv1.63.0

type EndpointEnabledEventData =models.EndpointEnabledEventData

typeEndpointGetStatsOptionsadded inv1.57.0

type EndpointGetStatsOptions struct {// Filter the range to data starting from this date.Since *time.Time// Filter the range to data ending by this date.Until *time.Time}

typeEndpointHeadersIn

type EndpointHeadersIn =models.EndpointHeadersIn

typeEndpointHeadersOut

type EndpointHeadersOut =models.EndpointHeadersOut

typeEndpointHeadersPatchInadded inv0.57.1

type EndpointHeadersPatchIn =models.EndpointHeadersPatchIn

typeEndpointIn

type EndpointIn =models.EndpointIn

typeEndpointListOptions

type EndpointListOptions 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}

typeEndpointMessageOutadded inv0.83.0

type EndpointMessageOut =models.EndpointMessageOut

typeEndpointOut

type EndpointOut =models.EndpointOut

typeEndpointPatchadded inv1.6.0

type EndpointPatch =models.EndpointPatch

typeEndpointRecoverOptionsadded inv1.57.0

type EndpointRecoverOptions struct {IdempotencyKey *string}

typeEndpointReplayMissingOptionsadded inv1.57.0

type EndpointReplayMissingOptions struct {IdempotencyKey *string}

typeEndpointRotateSecretOptionsadded inv1.57.0

type EndpointRotateSecretOptions struct {IdempotencyKey *string}

typeEndpointSecretOut

type EndpointSecretOut =models.EndpointSecretOut

typeEndpointSendExampleOptionsadded inv1.57.0

type EndpointSendExampleOptions struct {IdempotencyKey *string}

typeEndpointStatsadded inv0.66.0

type EndpointStats =models.EndpointStats

typeEndpointTransformationInadded inv0.76.0

type EndpointTransformationIn =models.EndpointTransformationIn

typeEndpointTransformationOutadded inv0.76.0

type EndpointTransformationOut =models.EndpointTransformationOut

typeEndpointUpdate

type EndpointUpdate =models.EndpointUpdate

typeEndpointUpdatedEventadded inv1.63.0

type EndpointUpdatedEvent =models.EndpointUpdatedEvent

typeEndpointUpdatedEventDataadded inv1.63.0

type EndpointUpdatedEventData =models.EndpointUpdatedEventData

typeEnvironmentadded inv1.63.0

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

func (*Environment)Exportadded inv1.63.0

Download a JSON file containing all org-settings and event types.

func (*Environment)Importadded 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.

typeEnvironmentExportOptionsadded inv1.63.0

type EnvironmentExportOptions struct {IdempotencyKey *string}

typeEnvironmentImportOptionsadded inv1.63.0

type EnvironmentImportOptions struct {IdempotencyKey *string}

typeEnvironmentInadded inv1.58.2

type EnvironmentIn =models.EnvironmentIn

typeEnvironmentOutadded inv1.58.2

type EnvironmentOut =models.EnvironmentOut

typeError

type Error =internal.Error

typeEventExampleInadded inv0.83.0

type EventExampleIn =models.EventExampleIn

typeEventType

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

func (*EventType)Create

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)ImportOpenapiadded inv1.57.0

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

Return the list of event types.

func (*EventType)Patchadded inv1.6.0

func (eventType *EventType) Patch(ctxcontext.Context,eventTypeNamestring,eventTypePatchmodels.EventTypePatch,) (*models.EventTypeOut,error)

Partially update an event type.

func (*EventType)Update

func (eventType *EventType) Update(ctxcontext.Context,eventTypeNamestring,eventTypeUpdatemodels.EventTypeUpdate,) (*models.EventTypeOut,error)

Update an event type.

typeEventTypeCreateOptionsadded inv1.57.0

type EventTypeCreateOptions struct {IdempotencyKey *string}

typeEventTypeDeleteOptionsadded inv1.13.0

type EventTypeDeleteOptions struct {// By default event types are archived when "deleted". Passing this to `true` deletes them entirely.Expunge *bool}

typeEventTypeFromOpenApiadded inv1.58.2

type EventTypeFromOpenApi =models.EventTypeFromOpenApi

typeEventTypeImportOpenApiInadded inv1.11.0

type EventTypeImportOpenApiIn =models.EventTypeImportOpenApiIn

typeEventTypeImportOpenApiOutadded inv1.11.0

type EventTypeImportOpenApiOut =models.EventTypeImportOpenApiOut

typeEventTypeImportOpenApiOutDataadded inv1.11.0

type EventTypeImportOpenApiOutData =models.EventTypeImportOpenApiOutData

typeEventTypeImportOpenapiOptionsadded 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

typeEventTypePatchadded inv1.6.0

type EventTypePatch =models.EventTypePatch

typeEventTypeUpdate

type EventTypeUpdate =models.EventTypeUpdate

typeExpungeAllContentsOutadded inv1.61.1

type ExpungeAllContentsOut =models.ExpungeAllContentsOut

typeGithubConfigadded inv1.63.0

type GithubConfig =models.GithubConfig

typeGithubConfigOutadded inv1.63.0

type GithubConfigOut =models.GithubConfigOut

typeHubspotConfigadded inv1.63.0

type HubspotConfig =models.HubspotConfig

typeHubspotConfigOutadded inv1.63.0

type HubspotConfigOut =models.HubspotConfigOut

typeIngestadded inv1.63.0

type Ingest struct {Endpoint *IngestEndpointSource   *IngestSource// contains filtered or unexported fields}

func (*Ingest)Dashboardadded 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.

typeIngestDashboardOptionsadded inv1.63.0

type IngestDashboardOptions struct {IdempotencyKey *string}

typeIngestEndpointadded inv1.63.0

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

func (*IngestEndpoint)Createadded inv1.63.0

func (ingestEndpoint *IngestEndpoint) Create(ctxcontext.Context,sourceIdstring,ingestEndpointInmodels.IngestEndpointIn,o *IngestEndpointCreateOptions,) (*models.IngestEndpointOut,error)

Create an ingest endpoint.

func (*IngestEndpoint)Deleteadded inv1.63.0

func (ingestEndpoint *IngestEndpoint) Delete(ctxcontext.Context,sourceIdstring,endpointIdstring,)error

Delete an ingest endpoint.

func (*IngestEndpoint)Getadded inv1.63.0

func (ingestEndpoint *IngestEndpoint) Get(ctxcontext.Context,sourceIdstring,endpointIdstring,) (*models.IngestEndpointOut,error)

Get an ingest endpoint.

func (*IngestEndpoint)GetHeadersadded 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)GetSecretadded 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)Listadded inv1.63.0

List ingest endpoints.

func (*IngestEndpoint)RotateSecretadded 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)Updateadded inv1.63.0

func (ingestEndpoint *IngestEndpoint) Update(ctxcontext.Context,sourceIdstring,endpointIdstring,ingestEndpointUpdatemodels.IngestEndpointUpdate,) (*models.IngestEndpointOut,error)

Update an ingest endpoint.

func (*IngestEndpoint)UpdateHeadersadded inv1.63.0

func (ingestEndpoint *IngestEndpoint) UpdateHeaders(ctxcontext.Context,sourceIdstring,endpointIdstring,ingestEndpointHeadersInmodels.IngestEndpointHeadersIn,)error

Set the additional headers to be sent to the endpoint.

typeIngestEndpointCreateOptionsadded inv1.63.0

type IngestEndpointCreateOptions struct {IdempotencyKey *string}

typeIngestEndpointHeadersInadded inv1.61.1

type IngestEndpointHeadersIn =models.IngestEndpointHeadersIn

typeIngestEndpointHeadersOutadded inv1.61.1

type IngestEndpointHeadersOut =models.IngestEndpointHeadersOut

typeIngestEndpointInadded inv1.61.1

type IngestEndpointIn =models.IngestEndpointIn

typeIngestEndpointListOptionsadded inv1.63.0

type IngestEndpointListOptions 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}

typeIngestEndpointOutadded inv1.61.1

type IngestEndpointOut =models.IngestEndpointOut

typeIngestEndpointRotateSecretOptionsadded inv1.63.0

type IngestEndpointRotateSecretOptions struct {IdempotencyKey *string}

typeIngestEndpointSecretInadded inv1.61.1

type IngestEndpointSecretIn =models.IngestEndpointSecretIn

typeIngestEndpointSecretOutadded inv1.61.1

type IngestEndpointSecretOut =models.IngestEndpointSecretOut

typeIngestEndpointUpdateadded inv1.61.1

type IngestEndpointUpdate =models.IngestEndpointUpdate

typeIngestSourceadded inv1.63.0

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

func (*IngestSource)Createadded inv1.63.0

Create Ingest Source.

func (*IngestSource)Deleteadded inv1.63.0

func (ingestSource *IngestSource) Delete(ctxcontext.Context,sourceIdstring,)error

Delete an Ingest Source.

func (*IngestSource)Getadded inv1.63.0

func (ingestSource *IngestSource) Get(ctxcontext.Context,sourceIdstring,) (*models.IngestSourceOut,error)

Get an Ingest Source by id or uid.

func (*IngestSource)Listadded inv1.63.0

List of all the organization's Ingest Sources.

func (*IngestSource)RotateTokenadded 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)Updateadded inv1.63.0

func (ingestSource *IngestSource) Update(ctxcontext.Context,sourceIdstring,ingestSourceInmodels.IngestSourceIn,) (*models.IngestSourceOut,error)

Update an Ingest Source.

typeIngestSourceConsumerPortalAccessInadded inv1.63.0

type IngestSourceConsumerPortalAccessIn =models.IngestSourceConsumerPortalAccessIn

typeIngestSourceCreateOptionsadded inv1.63.0

type IngestSourceCreateOptions struct {IdempotencyKey *string}

typeIngestSourceInadded inv1.63.0

type IngestSourceIn =models.IngestSourceIn

typeIngestSourceListOptionsadded inv1.63.0

type IngestSourceListOptions 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}

typeIngestSourceOutadded inv1.63.0

type IngestSourceOut =models.IngestSourceOut

typeIngestSourceRotateTokenOptionsadded inv1.63.0

type IngestSourceRotateTokenOptions struct {IdempotencyKey *string}

typeIntegration

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

func (*Integration)Create

Create an integration.

func (*Integration)Delete

func (integration *Integration) Delete(ctxcontext.Context,appIdstring,integIdstring,)error

Delete 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

List the application's integrations.

func (*Integration)RotateKey

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.

typeIntegrationCreateOptionsadded inv1.57.0

type IntegrationCreateOptions struct {IdempotencyKey *string}

typeIntegrationIn

type IntegrationIn =models.IntegrationIn

typeIntegrationKeyOut

type IntegrationKeyOut =models.IntegrationKeyOut

typeIntegrationListOptions

type IntegrationListOptions 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}

typeIntegrationOut

type IntegrationOut =models.IntegrationOut

typeIntegrationRotateKeyOptionsadded inv1.57.0

type IntegrationRotateKeyOptions struct {IdempotencyKey *string}

typeIntegrationUpdate

type IntegrationUpdate =models.IntegrationUpdate

typeListResponseApiTokenCensoredOutadded inv1.63.1

type ListResponseApiTokenCensoredOut =models.ListResponseApiTokenCensoredOut

typeListResponseBackgroundTaskOutadded inv1.4.12

type ListResponseBackgroundTaskOut =models.ListResponseBackgroundTaskOut

typeListResponseIngestEndpointOutadded inv1.61.1

type ListResponseIngestEndpointOut =models.ListResponseIngestEndpointOut

typeListResponseIngestSourceOutadded inv1.63.0

type ListResponseIngestSourceOut =models.ListResponseIngestSourceOut

typeListResponseOperationalWebhookEndpointOutadded inv1.39.0

type ListResponseOperationalWebhookEndpointOut =models.ListResponseOperationalWebhookEndpointOut

typeManagementadded inv1.63.1

type Management struct {Authentication *ManagementAuthentication}

typeManagementAuthenticationadded inv1.63.1

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

func (*ManagementAuthentication)CreateApiTokenadded inv1.63.1

Create a new API Token.

func (*ManagementAuthentication)ExpireApiTokenadded inv1.63.1

func (managementAuthentication *ManagementAuthentication) ExpireApiToken(ctxcontext.Context,keyIdstring,apiTokenExpireInmodels.ApiTokenExpireIn,o *ManagementAuthenticationExpireApiTokenOptions,)error

Expire the selected API Token.

func (*ManagementAuthentication)ListApiTokensadded inv1.63.1

List all API Tokens.

typeManagementAuthenticationCreateApiTokenOptionsadded inv1.63.1

type ManagementAuthenticationCreateApiTokenOptions struct {IdempotencyKey *string}

typeManagementAuthenticationExpireApiTokenOptionsadded inv1.63.1

type ManagementAuthenticationExpireApiTokenOptions struct {IdempotencyKey *string}

typeManagementAuthenticationListApiTokensOptionsadded inv1.63.1

type ManagementAuthenticationListApiTokensOptions 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}

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)ExpungeAllContentsadded inv1.58.2

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)ExpungeContentadded inv0.76.0

func (message *Message) ExpungeContent(ctxcontext.Context,appIdstring,msgIdstring,)error

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

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

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

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)ListByEndpointadded inv0.48.0

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)ListByMsgadded inv0.48.0

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.

typeMessageAttemptExhaustedEventadded inv1.63.0

type MessageAttemptExhaustedEvent =models.MessageAttemptExhaustedEvent

typeMessageAttemptExhaustedEventDataadded inv1.63.0

type MessageAttemptExhaustedEventData =models.MessageAttemptExhaustedEventData

typeMessageAttemptFailedDataadded inv1.63.0

type MessageAttemptFailedData =models.MessageAttemptFailedData

typeMessageAttemptFailingEventadded inv1.63.0

type MessageAttemptFailingEvent =models.MessageAttemptFailingEvent

typeMessageAttemptFailingEventDataadded inv1.63.0

type MessageAttemptFailingEventData =models.MessageAttemptFailingEventData

typeMessageAttemptListAttemptedDestinationsOptionsadded inv1.57.0

type MessageAttemptListAttemptedDestinationsOptions struct {// Limit the number of returned itemsLimit *uint64// The iterator returned from a prior invocationIterator *string}

typeMessageAttemptListAttemptedMessagesOptionsadded 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}

typeMessageAttemptListByEndpointOptionsadded 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}

typeMessageAttemptListByMsgOptionsadded 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

typeMessageAttemptRecoveredEventadded inv1.63.0

type MessageAttemptRecoveredEvent =models.MessageAttemptRecoveredEvent

typeMessageAttemptRecoveredEventDataadded inv1.63.0

type MessageAttemptRecoveredEventData =models.MessageAttemptRecoveredEventData

typeMessageAttemptResendOptionsadded inv1.57.0

type MessageAttemptResendOptions struct {IdempotencyKey *string}

typeMessageAttemptTriggerTypeadded inv1.58.2

type MessageAttemptTriggerType =models.MessageAttemptTriggerType

typeMessageCreateOptionsadded inv1.57.0

type MessageCreateOptions struct {// When `true`, message payloads are included in the response.WithContent    *boolIdempotencyKey *string}

typeMessageEndpointOutadded inv0.83.0

type MessageEndpointOut =models.MessageEndpointOut

typeMessageExpungeAllContentsOptionsadded inv1.58.2

type MessageExpungeAllContentsOptions struct {IdempotencyKey *string}

typeMessageGetOptionsadded inv1.57.0

type MessageGetOptions struct {// When `true` message payloads are included in the response.WithContent *bool}

typeMessageIn

type MessageIn =models.MessageIn

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

typeMessagePolleradded inv1.64.1

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

func (*MessagePoller)ConsumerPolladded 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)ConsumerSeekadded 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)Polladded inv1.64.1

Reads the stream of created messages for an application, filtered on the Sink's event types and Channels.

typeMessagePollerConsumerPollOptionsadded inv1.64.1

type MessagePollerConsumerPollOptions struct {// Limit the number of returned itemsLimit *uint64// The iterator returned from a prior invocationIterator *string}

typeMessagePollerConsumerSeekOptionsadded inv1.64.1

type MessagePollerConsumerSeekOptions struct {IdempotencyKey *string}

typeMessagePollerPollOptionsadded 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

typeOperationalWebhookadded inv1.63.0

type OperationalWebhook struct {Endpoint *OperationalWebhookEndpoint}

typeOperationalWebhookEndpointadded inv1.39.0

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

func (*OperationalWebhookEndpoint)Createadded inv1.39.0

Create an operational webhook endpoint.

func (*OperationalWebhookEndpoint)Deleteadded inv1.39.0

func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Delete(ctxcontext.Context,endpointIdstring,)error

Delete an operational webhook endpoint.

func (*OperationalWebhookEndpoint)Getadded inv1.39.0

func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Get(ctxcontext.Context,endpointIdstring,) (*models.OperationalWebhookEndpointOut,error)

Get an operational webhook endpoint.

func (*OperationalWebhookEndpoint)GetHeadersadded 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)GetSecretadded 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)Listadded inv1.39.0

List operational webhook endpoints.

func (*OperationalWebhookEndpoint)RotateSecretadded 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)Updateadded inv1.39.0

func (operationalWebhookEndpoint *OperationalWebhookEndpoint) Update(ctxcontext.Context,endpointIdstring,operationalWebhookEndpointUpdatemodels.OperationalWebhookEndpointUpdate,) (*models.OperationalWebhookEndpointOut,error)

Update an operational webhook endpoint.

func (*OperationalWebhookEndpoint)UpdateHeadersadded inv1.57.0

func (operationalWebhookEndpoint *OperationalWebhookEndpoint) UpdateHeaders(ctxcontext.Context,endpointIdstring,operationalWebhookEndpointHeadersInmodels.OperationalWebhookEndpointHeadersIn,)error

Set the additional headers to be sent with the operational webhook.

typeOperationalWebhookEndpointCreateOptionsadded inv1.57.0

type OperationalWebhookEndpointCreateOptions struct {IdempotencyKey *string}

typeOperationalWebhookEndpointHeadersInadded inv1.58.2

type OperationalWebhookEndpointHeadersIn =models.OperationalWebhookEndpointHeadersIn

typeOperationalWebhookEndpointHeadersOutadded inv1.58.2

type OperationalWebhookEndpointHeadersOut =models.OperationalWebhookEndpointHeadersOut

typeOperationalWebhookEndpointInadded inv1.39.0

type OperationalWebhookEndpointIn =models.OperationalWebhookEndpointIn

typeOperationalWebhookEndpointListOptionsadded inv1.39.0

type OperationalWebhookEndpointListOptions 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}

typeOperationalWebhookEndpointOutadded inv1.39.0

type OperationalWebhookEndpointOut =models.OperationalWebhookEndpointOut

typeOperationalWebhookEndpointRotateSecretOptionsadded inv1.57.0

type OperationalWebhookEndpointRotateSecretOptions struct {IdempotencyKey *string}

typeOperationalWebhookEndpointSecretInadded inv1.39.0

type OperationalWebhookEndpointSecretIn =models.OperationalWebhookEndpointSecretIn

typeOperationalWebhookEndpointSecretOutadded inv1.39.0

type OperationalWebhookEndpointSecretOut =models.OperationalWebhookEndpointSecretOut

typeOperationalWebhookEndpointUpdateadded inv1.39.0

type OperationalWebhookEndpointUpdate =models.OperationalWebhookEndpointUpdate

typeOrderingadded inv0.78.0

type Ordering =models.Ordering

typePandaDocConfigadded inv1.67.0

type PandaDocConfig =models.PandaDocConfig

typePandaDocConfigOutadded inv1.67.0

type PandaDocConfigOut =models.PandaDocConfigOut

typePollingEndpointConsumerSeekInadded inv1.63.0

type PollingEndpointConsumerSeekIn =models.PollingEndpointConsumerSeekIn

typePollingEndpointConsumerSeekOutadded inv1.63.0

type PollingEndpointConsumerSeekOut =models.PollingEndpointConsumerSeekOut

typePollingEndpointMessageOutadded inv1.63.0

type PollingEndpointMessageOut =models.PollingEndpointMessageOut

typePollingEndpointOutadded inv1.63.0

type PollingEndpointOut =models.PollingEndpointOut

typeRecoverIn

type RecoverIn =models.RecoverIn

typeRecoverOutadded inv1.29.0

type RecoverOut =models.RecoverOut

typeReplayInadded inv0.76.0

type ReplayIn =models.ReplayIn

typeReplayOutadded inv1.29.0

type ReplayOut =models.ReplayOut

typeRotateTokenOutadded inv1.63.0

type RotateTokenOut =models.RotateTokenOut

typeSegmentConfigadded inv1.63.0

type SegmentConfig =models.SegmentConfig

typeSegmentConfigOutadded inv1.63.0

type SegmentConfigOut =models.SegmentConfigOut

typeShopifyConfigadded inv1.63.0

type ShopifyConfig =models.ShopifyConfig

typeShopifyConfigOutadded inv1.63.0

type ShopifyConfigOut =models.ShopifyConfigOut

typeSlackConfigadded inv1.63.0

type SlackConfig =models.SlackConfig

typeSlackConfigOutadded inv1.63.0

type SlackConfigOut =models.SlackConfigOut

typeStatisticsadded inv1.14.0

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

func (*Statistics)AggregateAppStatsadded 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)AggregateEventTypesadded 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.

typeStatisticsAggregateAppStatsOptionsadded inv1.57.0

type StatisticsAggregateAppStatsOptions struct {IdempotencyKey *string}

typeStatusCodeClassadded inv0.50.0

type StatusCodeClass =models.StatusCodeClass

typeStripeConfigadded inv1.63.0

type StripeConfig =models.StripeConfig

typeStripeConfigOutadded 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}

funcNew

func New(tokenstring, options *SvixOptions) (*Svix,error)

typeSvixConfigadded inv1.63.0

type SvixConfig =models.SvixConfig

typeSvixConfigOutadded inv1.63.0

type SvixConfigOut =models.SvixConfigOut

typeSvixOptions

type SvixOptions struct {ServerUrl     *url.URLHTTPClient    *http.ClientRetrySchedule *[]time.DurationDebugbool}

typeWebhook

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

funcNewWebhook

func NewWebhook(secretstring) (*Webhook,error)

funcNewWebhookRawadded inv0.63.0

func NewWebhookRaw(secret []byte) (*Webhook,error)

func (*Webhook)Sign

func (wh *Webhook) Sign(msgIdstring, timestamptime.Time, payload []byte) (string,error)

func (*Webhook)Verify

func (wh *Webhook) Verify(payload []byte, headershttp.Header)error

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

func (wh *Webhook) VerifyIgnoringTimestamp(payload []byte, headershttp.Header)error

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.

typeZoomConfigadded inv1.63.0

type ZoomConfig =models.ZoomConfig

typeZoomConfigOutadded inv1.63.0

type ZoomConfigOut =models.ZoomConfigOut

Source Files

View all Source files

Directories

PathSynopsis
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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp