Versions in this module Expand all Collapse all v0 v0.3.0 Aug 13, 2026 Changes in this version + type AccessLink struct + ChannelID string + CreatedAt int64 + CreatedBy *string + ExpiresAt int64 + ID string + IncludePublic bool + Label *string + LastRedeemedAt *int64 + MaxQuantity int + MaxRedemptions int + Redemptions int + RevokedAt *int64 + RotatedFrom *string + RotatedTo *string + SessionTTLSeconds int + State AccessLinkState + Status AccessLinkStatus + type AccessLinkCreateParams struct + ExpiresAt int64 + IdempotencyKey string + IncludePublic *bool + Label NullableField[string] + MaxQuantity int + MaxRedemptions int + Reason string + SessionTTLSeconds int + type AccessLinkList struct + Links []AccessLinkListItem + type AccessLinkListItem struct + ActiveSessions int + type AccessLinkReveal struct + Capability string + EndedSessions *int + Link AccessLink + Previous *AccessLink + RevealedOnce bool + URL string + type AccessLinkRevokeParams struct + EndActiveSessions bool + Reason string + type AccessLinkRevokeResult struct + EndedSessions int + Link AccessLink + OK bool + type AccessLinkRotateParams struct + EndActiveSessions bool + Reason string + type AccessLinkState string + const AccessLinkActive + const AccessLinkRevoked + const AccessLinkRotated + type AccessLinkStatus string + const AccessLinkStatusActive + const AccessLinkStatusExhausted + const AccessLinkStatusExpired + const AccessLinkStatusRevoked + const AccessLinkStatusRotated + type BuyerAccessSessionNullableFields struct + BuyerRef NullableField[string] + ClientRequestID NullableField[string] + MaxQuantity NullableField[int] + PartnerRef NullableField[string] type BuyerAccessSessionParams + Nullable BuyerAccessSessionNullableFields + type ChannelArchiveParams struct + Destination NullableField[string] + Reason string type ChannelsService + func (s *ChannelsService) CreateAccessLink(ctx context.Context, eventKey, channelID string, p AccessLinkCreateParams) (AccessLinkReveal, error) + func (s *ChannelsService) ListAccessLinks(ctx context.Context, eventKey, channelID string) (AccessLinkList, error) + func (s *ChannelsService) RevokeAccessLink(ctx context.Context, eventKey, channelID, linkID string, ...) (AccessLinkRevokeResult, error) + func (s *ChannelsService) RotateAccessLink(ctx context.Context, eventKey, channelID, linkID string, ...) (AccessLinkReveal, error) + type ChartCopyParams struct + ExternalRef NullableField[string] + IdempotencyKey string + Name string + WorkspaceID string + type ChartUpdateParams struct + Doc map[string]any + ExpectedUpdatedAt int64 + ExternalRef NullableField[string] + Issues *float64 + Name string + type DesignerSafeModeOptions struct + AllowDeletingObjects bool + AllowEditingAreaCapacity bool + type DesignerSafeModeOptionsParams struct + AllowDeletingObjects *bool + AllowEditingAreaCapacity *bool + type DesignerSession struct + AllowedOrigin string + Authority string + CanEdit bool + CanPublish bool + ChartID string + DesignerURL string + ExpiresAt int64 + FeaturePolicy map[string]any + ID string + Mode string + SafeModeOptions DesignerSafeModeOptions + Token string + WorkspaceID string + type DesignerSessionEnvelope struct + Session DesignerSession type DesignerSessionParams + CanPublish *bool + Features map[string]any + SafeModeOptions *DesignerSafeModeOptionsParams + type EventChartUpdateParams struct + AcknowledgeDroppedAssignments *bool + Reason string + type EventCreateNullableFields struct + Currency NullableField[string] + Description NullableField[string] + EndsAt NullableField[int64] + ExternalRef NullableField[string] + Locale NullableField[string] + PosterAssetID NullableField[string] + StartsAt NullableField[int64] + Timezone NullableField[string] + Venue NullableField[string] type EventCreateParams + Description string + EndsAt int64 + Locale string + Mode string + Nullable EventCreateNullableFields + PosterAssetID string + Timezone string + type EventLogEntry struct + Action string + At int64 + ID int64 + Labels []string + Ref *string + type EventLogListParams struct + Before int64 + Limit int + type EventLogPage struct + Entries []EventLogEntry + NextBefore *int64 type EventsService + func (s *EventsService) DeletePoster(ctx context.Context, eventKey string) (map[string]any, error) + func (s *EventsService) UpdatePoster(ctx context.Context, eventKey string, image []byte, contentType ...string) (map[string]any, error) + type HoldInspection struct + AccessSessionID *string + AccessSource string + BookingRef *string + BuyerRef *string + EventKey *string + ExpiresAt int64 + ExternalRef *string + HoldID string + Items []InventoryItem + Mode string + PartnerRef *string + Status string + WorkspaceID *string + type InventoryItem struct + AccessSource string + BookingMode string + Capacity *int + CategoryKey string + ChannelID *string + Currency string + Label string + MaxOccupancy *int + MinOccupancy *int + ObjectID string + ObjectType string + Quantity *int + ReleaseID *string + TierID *string + UnitPrice float64 + type ManageCapability string + const CapabilityBoxOffice + const CapabilityChannelsManage + const CapabilityChannelsView + const CapabilityDoorCheckin + const CapabilityDoorView + const CapabilityOrdersRead + const CapabilityRefund + const CapabilityTicketsSend + type ManageSession struct + AllowedOrigin string + Capabilities []ManageCapability + EventKey string + ExpiresAt int64 + ID string + Token string type ManageSessionParams + WorkspaceID string + type NullableField struct + func FieldNull[T any]() NullableField[T] + func FieldValue[T any](value T) NullableField[T] + type TrustedInventoryAccess struct + ChannelIDs []string + IgnoreChannelRestrictions bool + Reason string + type WebhookCreateEnvelope struct + Secret string + Sub WebhookSubscription + type WebhookDelivery struct + At int64 + Attempt int + ErrorMessage *string + Event WebhookEventName + ID string + MaxAttempts int + OccurrenceID *string + Payload any + Ref *string + ResponseBody *string + Status int + WillRetry bool + type WebhookDeliveryListParams struct + Before int64 + Limit int + Status WebhookDeliveryStatus + type WebhookDeliveryPage struct + Deliveries []WebhookDelivery + NextBefore *int64 + type WebhookDeliveryStatus string + const WebhookDeliveryFailed + const WebhookDeliveryOK + type WebhookEnvelope struct + Sub WebhookSubscription + type WebhookEventName string + const WebhookEventEventCreated + const WebhookEventEventSoldOut + const WebhookEventHoldCreated + const WebhookEventHoldExpired + const WebhookEventHoldExtended + const WebhookEventSeatBlocked + const WebhookEventSeatBooked + const WebhookEventSeatReleased + type WebhookList struct + Subs []WebhookSubscription + type WebhookSubscription struct + CreatedAt int64 + Disabled bool + Environment *string + Events []WebhookEventName + ID string + LastAt *int64 + LastStatus *string + Mode *string + URL string + Uptime7d *float64 + type WebhookUpdateParams struct + Disabled *bool + Events []WebhookEventName + URL string + type WorkspaceCreateParams struct + ExternalRef NullableField[string] + IdempotencyKey string + Name string v0.2.0 Aug 12, 2026 Changes in this version type BestAvailableParams + ChannelIDs []string + IgnoreChannelRestrictions bool + Reason string type BookParams + ChannelIDs []string + IgnoreChannelRestrictions bool + Reason string + type BookingListParams struct + Cursor string + Limit int + Query string + State string + type BuyerAccessSessionListParams struct + Cursor string + Limit int + State string + type BuyerAccessSessionParams struct + AllowedOrigin string + BuyerRef string + ChannelIDs []string + ClientRequestID string + ExpiresInSeconds int + IdempotencyKey string + IncludePublic bool + MaxQuantity int + PartnerRef string + type ChannelAssignmentParams struct + AssignmentVersion int64 + IdempotencyKey string + Labels []string + Reason string + TargetChannelID string + type ChannelCreateParams struct + AccessIntent string + Color string + ExternalRef string + IdempotencyKey string + Marker string + Name string + Reason string + type ChannelUpdateParams struct + AccessIntent string + AcknowledgeLiveAccess *bool + Name string + Reason string + type ChannelsService struct + func (s *ChannelsService) Archive(ctx context.Context, eventKey, channelID, destination, reason string) (map[string]any, error) + func (s *ChannelsService) CreateBuyerAccessSession(ctx context.Context, eventKey string, p BuyerAccessSessionParams) (map[string]any, error) + func (s *ChannelsService) CreateChannel(ctx context.Context, eventKey string, p ChannelCreateParams) (map[string]any, error) + func (s *ChannelsService) ListAllocation(ctx context.Context, eventKey, afterLabel string, limit int) (map[string]any, error) + func (s *ChannelsService) ListBuyerAccessSessions(ctx context.Context, eventKey string, p BuyerAccessSessionListParams) (map[string]any, error) + func (s *ChannelsService) ListChannels(ctx context.Context, eventKey string, includeArchived bool) (map[string]any, error) + func (s *ChannelsService) Pause(ctx context.Context, eventKey, channelID, reason string) (map[string]any, error) + func (s *ChannelsService) RetrieveAccessPreview(ctx context.Context, eventKey string, channelIDs []string, includePublic *bool) (map[string]any, error) + func (s *ChannelsService) RetrieveReport(ctx context.Context, eventKey string) (map[string]any, error) + func (s *ChannelsService) RevokeBuyerAccessSession(ctx context.Context, eventKey, sessionID string) (map[string]any, error) + func (s *ChannelsService) Unpause(ctx context.Context, eventKey, channelID, reason string) (map[string]any, error) + func (s *ChannelsService) UpdateAssignments(ctx context.Context, eventKey string, p ChannelAssignmentParams) (map[string]any, error) + func (s *ChannelsService) UpdateChannel(ctx context.Context, eventKey, channelID string, p ChannelUpdateParams) (map[string]any, error) type Client + Channels *ChannelsService type HoldParams + ChannelIDs []string + IgnoreChannelRestrictions bool + Reason string type InventoryService + func (s *InventoryService) ListBookings(ctx context.Context, eventKey string, p BookingListParams) (map[string]any, error) + func (s *InventoryService) RetrieveBooking(ctx context.Context, eventKey, bookingRef string) (map[string]any, error) v0.1.0 Aug 1, 2026 Changes in this version + const CapabilityBlock + const CapabilityCancel + const CapabilityReports + const CapabilityView + const DefaultBaseURL + const DefaultMaxRetries + const DefaultTimeout + var ErrWebhookVerification = errors.New("seatlayer: webhook verification failed") + func VerifyWebhook(payload []byte, signature, secret string) (map[string]any, error) + type APIError struct + Body map[string]any + Code string + Message string + RequestID string + Status int + func (e *APIError) Error() string + type AuthError struct + func (e *AuthError) ModeMismatch() bool + type BestAvailableParams struct + BookingRef string + CategoryKey string + IdempotencyKey string + Qty int + TTLMs int64 + ZoneID string + type BookParams struct + BookingRef string + HoldID string + IdempotencyKey string + Labels []string + type ChartCreateParams struct + Doc map[string]any + ExternalRef string + IdempotencyKey string + Name string + WorkspaceID string + type ChartListParams struct + Archived bool + Cursor string + ExternalRef string + Limit int + WorkspaceID string + type ChartsService struct + func (s *ChartsService) All(ctx context.Context, p *ChartListParams) iter.Seq2[map[string]any, error] + func (s *ChartsService) Archive(ctx context.Context, chartID string) (map[string]any, error) + func (s *ChartsService) Copy(ctx context.Context, chartID string) (map[string]any, error) + func (s *ChartsService) Create(ctx context.Context, p ChartCreateParams) (map[string]any, error) + func (s *ChartsService) Delete(ctx context.Context, chartID string) error + func (s *ChartsService) List(ctx context.Context, p *ChartListParams) (Page, error) + func (s *ChartsService) Publish(ctx context.Context, chartID string) (map[string]any, error) + func (s *ChartsService) Retrieve(ctx context.Context, chartID string) (map[string]any, error) + func (s *ChartsService) Unarchive(ctx context.Context, chartID string) (map[string]any, error) + func (s *ChartsService) Update(ctx context.Context, chartID string, doc map[string]any, ...) (map[string]any, error) + type Client struct + Charts *ChartsService + Events *EventsService + Inventory *InventoryService + Sessions *SessionsService + Webhooks *WebhooksService + Workspaces *WorkspacesService + func New(secretKey string, options ...Option) (*Client, error) + func (c *Client) Do(ctx context.Context, method, path string, query url.Values, body any, ...) (map[string]any, error) + func (c *Client) Mode() string + func (c *Client) Ready(ctx context.Context) (map[string]any, error) + type ConflictError struct + func (e *ConflictError) Conflicts() []map[string]any + func (e *ConflictError) SoldOut() bool + type ConnectionError struct + Err error + Op string + func (e *ConnectionError) Error() string + func (e *ConnectionError) Unwrap() error + type DesignerSessionParams struct + AllowedOrigin string + Authority string + ChartID string + ExpiresInSeconds int + Mode string + WorkspaceID string + type EventCreateParams struct + ChartID string + Currency string + ExternalRef string + IdempotencyKey string + Name string + Slug string + StartsAt int64 + Venue string + type EventListParams struct + Cursor string + ExternalRef string + Limit int + NoCounts bool + WorkspaceID string + type EventsService struct + func (s *EventsService) All(ctx context.Context, p *EventListParams) iter.Seq2[map[string]any, error] + func (s *EventsService) Archive(ctx context.Context, eventKey string) (map[string]any, error) + func (s *EventsService) Close(ctx context.Context, eventKey string) (map[string]any, error) + func (s *EventsService) Create(ctx context.Context, p EventCreateParams) (map[string]any, error) + func (s *EventsService) Delete(ctx context.Context, eventKey string) error + func (s *EventsService) List(ctx context.Context, p *EventListParams) (Page, error) + func (s *EventsService) Reopen(ctx context.Context, eventKey string) (map[string]any, error) + func (s *EventsService) Retrieve(ctx context.Context, eventKey string) (map[string]any, error) + func (s *EventsService) RetrieveHoldTTL(ctx context.Context, eventKey string) (map[string]any, error) + func (s *EventsService) RetrieveLog(ctx context.Context, eventKey string) (map[string]any, error) + func (s *EventsService) RetrieveReport(ctx context.Context, eventKey string) (map[string]any, error) + func (s *EventsService) Update(ctx context.Context, eventKey string, fields map[string]any) (map[string]any, error) + func (s *EventsService) UpdateChart(ctx context.Context, eventKey string) (map[string]any, error) + func (s *EventsService) UpdateHoldTTL(ctx context.Context, eventKey string, holdTTLMs int64) (map[string]any, error) + type HoldParams struct + IdempotencyKey string + Labels []string + ReplaceHoldID string + Selections []map[string]any + TTLMs int64 + type InventoryService struct + func (s *InventoryService) Block(ctx context.Context, eventKey string, labels []string) (map[string]any, error) + func (s *InventoryService) Book(ctx context.Context, eventKey string, p BookParams) (map[string]any, error) + func (s *InventoryService) BookBestAvailable(ctx context.Context, eventKey string, p BestAvailableParams) (map[string]any, error) + func (s *InventoryService) BoxOfficeBook(ctx context.Context, eventKey string, labels []string, bookingRef string) (map[string]any, error) + func (s *InventoryService) ExtendHold(ctx context.Context, eventKey, holdID string, ttlMs int64) (map[string]any, error) + func (s *InventoryService) Hold(ctx context.Context, eventKey string, p HoldParams) (map[string]any, error) + func (s *InventoryService) HoldBestAvailable(ctx context.Context, eventKey string, p BestAvailableParams) (map[string]any, error) + func (s *InventoryService) Release(ctx context.Context, eventKey string, labels []string, holdID string) (map[string]any, error) + func (s *InventoryService) RetrieveAvailability(ctx context.Context, eventKey string) (map[string]any, error) + func (s *InventoryService) RetrieveHold(ctx context.Context, eventKey, holdID string) (map[string]any, error) + func (s *InventoryService) Unblock(ctx context.Context, eventKey string, labels []string) (map[string]any, error) + func (s *InventoryService) UnblockAll(ctx context.Context, eventKey string) (map[string]any, error) + func (s *InventoryService) Unbook(ctx context.Context, eventKey string, labels []string) (map[string]any, error) + func (s *InventoryService) UpdateAvailability(ctx context.Context, eventKey string, fields map[string]any) (map[string]any, error) + type ManageSessionParams struct + AllowedOrigin string + Capabilities []string + ExpiresInSeconds int + type NotFoundError struct + type Option func(*Client) + func WithBaseURL(baseURL string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithMaxRetries(attempts int) Option + type Page struct + Items []map[string]any + NextCursor string + type RateLimitError struct + RetryAfter float64 + type SessionsService struct + func (s *SessionsService) CreateDesignerSession(ctx context.Context, p DesignerSessionParams) (map[string]any, error) + func (s *SessionsService) CreateManageSession(ctx context.Context, eventKey string, p ManageSessionParams) (map[string]any, error) + func (s *SessionsService) RevokeDesignerSession(ctx context.Context, sessionID string) error + func (s *SessionsService) RevokeManageSession(ctx context.Context, eventKey, sessionID string) error + type ValidationError struct + type WebhooksService struct + func (s *WebhooksService) Create(ctx context.Context, targetURL string, events []string) (map[string]any, error) + func (s *WebhooksService) Delete(ctx context.Context, webhookID string) error + func (s *WebhooksService) List(ctx context.Context) (map[string]any, error) + func (s *WebhooksService) ListDeliveries(ctx context.Context, webhookID string) (map[string]any, error) + func (s *WebhooksService) Update(ctx context.Context, webhookID string, fields map[string]any) (map[string]any, error) + type WorkspacesService struct + func (s *WorkspacesService) Create(ctx context.Context, name, externalRef, idempotencyKey string) (map[string]any, error) + func (s *WorkspacesService) List(ctx context.Context) (map[string]any, error) + func (s *WorkspacesService) Retrieve(ctx context.Context, workspaceID string) (map[string]any, error) + func (s *WorkspacesService) Update(ctx context.Context, workspaceID string, fields map[string]any) (map[string]any, error)