Versions in this module Expand all Collapse all v0 v0.1.0 Jul 12, 2026 Changes in this version + const Version + func ConstructEvent(rawBody []byte, signature, secret string, tolerance time.Duration) (map[string]any, error) + func VerifySignature(rawBody []byte, signature, secret string, tolerance time.Duration, ...) bool + type APIError struct + Body any + RequestID string + Status int + func (e *APIError) Error() string + type Client struct + APIKey string + BaseURL string + HTTPClient *http.Client + func New(apiKey string) (*Client, error) + func (c *Client) CreateSession(ctx context.Context, params map[string]any, idempotencyKey string) (map[string]any, error) + func (c *Client) Request(ctx context.Context, method, path string, body any, query url.Values, ...) error + func (c *Client) RetrieveApplication(ctx context.Context, id string) (map[string]any, error) + func (c *Client) RetrieveSession(ctx context.Context, id string) (map[string]any, error) + func (c *Client) SessionDecision(ctx context.Context, id string) (map[string]any, error)