Versions in this module Expand all Collapse all v0 v0.1.0 Nov 20, 2026 Changes in this version + const DefaultBaseURL + const DefaultSiteURL + const EveryDay + const EveryHour + const EveryWeek + const Version + var ErrAPIStatus error = &kindError + var ErrAuthentication error = &kindError + var ErrConnection error = &kindError + var ErrIdempotencyConflict error = &kindError + var ErrInsufficientCredit error = &kindError + var ErrInvalidArgument error = &kindError + var ErrInvalidRequest error = &kindError + var ErrMissingAPIKey error = &kindError + var ErrNotFound error = &kindError + var ErrPermissionDenied error = &kindError + var ErrRateLimited error = &kindError + var ErrRedirect error = &kindError + var ErrServer error = &kindError + var ErrUsageBudgetExceeded error = &kindError + var ErrVersionConflict error = &kindError + var ErrVersionNotFound error = &kindError + func Bool(b bool) *bool + func Int(n int) *int + func IsRunFailed(err error) bool + func IsUnsure(err error) bool + func NewIdempotencyKey() string + func NotFound(err error) bool + func ValidateIdempotencyKey(key string) error + type APIContract struct + API CatalogAPI + Endpoints []EndpointContract + func (c *APIContract) Endpoint(endpointID string) (*EndpointContract, error) + type APIError struct + Body []byte + Code string + Detail any + Header http.Header + IdempotencyKey string + Kind ErrorKind + Message string + RetryAfter time.Duration + StatusCode int + func (e *APIError) Available() string + func (e *APIError) AvailableVersions() []int + func (e *APIError) Error() string + func (e *APIError) ErrorCode() string + func (e *APIError) HasRetryAfter() bool + func (e *APIError) Is(target error) bool + func (e *APIError) Replayed() bool + func (e *APIError) Required() string + func (e *APIError) RunFailed() bool + func (e *APIError) RunID() string + func (e *APIError) Unsure() bool + type Cadence struct + AtUTC string + Every string + Weekday *int + type CatalogAPI struct + APIID string + Category string + Countries []string + Endpoints []CatalogEndpoint + Health string + KeyFields []string + Languages []string + Limitations []string + Name string + Raw Object + RecordTypes []string + ShortDescription string + Site CatalogSite + Slug string + Tags []string + UpdatedAt float64 + type CatalogEndpoint struct + Acquisition string + ActiveVersion string + Description string + EndpointID string + Name string + Status string + Version string + type CatalogService struct + func (s *CatalogService) Contract(ctx context.Context, apiID, endpointID string, version *int) (*EndpointContract, error) + func (s *CatalogService) Filters(ctx context.Context, apiID, endpointID string, p *FiltersParams) (Object, error) + func (s *CatalogService) Find(ctx context.Context, p *FindParams) ([]CatalogAPI, error) + func (s *CatalogService) Get(ctx context.Context, apiIDOrSlug string) (*APIContract, error) + func (s *CatalogService) Iter(p *ListParams) *Iterator[CatalogAPI] + func (s *CatalogService) List(ctx context.Context, p *ListParams) ([]CatalogAPI, error) + func (s *CatalogService) Result(ctx context.Context, apiID, endpointID, idempotencyKey string, p *ResultParams) (*RunResult, error) + func (s *CatalogService) Run(ctx context.Context, apiID, endpointID string, p *RunParams) (*RunResult, error) + type CatalogSite struct + Description string + Domain string + Name string + type Client struct + Catalog *CatalogService + Runs *RunsService + Schedules *SchedulesService + Sources *SourcesService + func New(opts ...Option) *Client + func (c *Client) BaseURL() string + type ConnectionError struct + Err error + IdempotencyKey string + func (e *ConnectionError) Error() string + func (e *ConnectionError) Is(target error) bool + func (e *ConnectionError) Unsure() bool + func (e *ConnectionError) Unwrap() error + type Delivery struct + ChargeReceiptID string + RecordCount int + RunID string + type EndpointContract struct + DefinitionVersion string + Description string + EndpointID string + Examples []any + InputSchema Object + Method string + Name string + OutputSchema Object + Path string + Raw Object + func (e *EndpointContract) OutputFields() []string + func (e *EndpointContract) RequiredInputs() []string + type ErrorKind string + const KindAPIStatus + const KindAuthentication + const KindConnection + const KindIdempotencyConflict + const KindInsufficientCredit + const KindInvalidArgument + const KindInvalidRequest + const KindMissingAPIKey + const KindNotFound + const KindPermissionDenied + const KindRateLimited + const KindRedirect + const KindServer + const KindUsageBudgetExceeded + const KindVersionConflict + const KindVersionNotFound + type FiltersParams struct + Category string + Filters map[string]any + Search string + type FindParams struct + Category string + Fields []string + Limit int + MaxContractChecks int + NoDeep bool + Q string + Site string + type InvalidArgumentError struct + Message string + func (e *InvalidArgumentError) Error() string + func (e *InvalidArgumentError) Is(target error) bool + type ItemsParams struct + Cursor string + Follow bool + Limit int + Nulls bool + PollInterval time.Duration + type Iterator struct + func (it *Iterator[T]) All(ctx context.Context) ([]T, error) + func (it *Iterator[T]) Err() error + func (it *Iterator[T]) Next(ctx context.Context) bool + func (it *Iterator[T]) Value() T + type ListParams struct + Category string + Limit int + Offset int + Q string + Sort string + type MissingAPIKeyError struct + func (e *MissingAPIKeyError) Error() string + func (e *MissingAPIKeyError) Is(target error) bool + type Object = map[string]any + type Option func(*Client) + func WithAPIKey(key string) Option + func WithBaseURL(u string) Option + func WithHTTPClient(h *http.Client) Option + func WithMaxRetries(n int) Option + func WithMaxRetryDelay(d time.Duration) Option + func WithSiteURL(u string) Option + func WithTimeout(d time.Duration) Option + func WithUserAgentSuffix(s string) Option + type Record = map[string]any + type ResultParams struct + NoWait bool + Nulls bool + PollTimeout time.Duration + type Run struct + AbortRequested bool + CreatedAt string + DefinitionVersion string + Error Object + FinishedAt string + Limits RunLimits + Links map[string]string + PollAfterSeconds float64 + Progress RunProgress + Raw Object + Replayed bool + RunID string + SourceID string + StartedAt string + Status RunStatus + StopReason string + Surface string + UnitsCharged float64 + Version string + func (r *Run) Ended() bool + func (r *Run) UnmarshalJSON(data []byte) error + type RunItemsPage struct + Count int + Items []Record + NextCursor string + Raw Object + RunID string + RunStatus RunStatus + type RunLimits struct + MaxItems *int + TimeoutSeconds int + type RunList struct + NextCursor string + Raw Object + Runs []Run + type RunListParams struct + Cursor string + Limit int + SourceID string + Status RunStatus + type RunParams struct + Fields []string + IdempotencyKey string + Input map[string]any + MaxItems *int + NoWait bool + Nulls *bool + PollTimeout time.Duration + TimeoutSeconds *int + Version *int + WaitSeconds *int + type RunProgress struct + Commits int + Duplicates int + Items int + Pages int + type RunResult struct + Artifacts []any + Complete bool + Delivery Delivery + Deprecation string + IdempotencyKey string + Metadata Object + Raw Object + Records []Record + Rerouted string + RetryAfter time.Duration + Run Run + StatusCode int + Summary Summary + Sunset string + TraceID string + Version string + func (r *RunResult) HasRetryAfter() bool + func (r *RunResult) RunID() string + func (r *RunResult) StopReason() string + func (r *RunResult) UnitsCharged() float64 + func (r *RunResult) Usable() bool + type RunStatus string + const RunAborted + const RunFailed + const RunFinished + const RunQueued + const RunRunning + type RunsService struct + func (s *RunsService) Abort(ctx context.Context, runID string) (*Run, error) + func (s *RunsService) Get(ctx context.Context, runID string) (*Run, error) + func (s *RunsService) Items(runID string, p *ItemsParams) *Iterator[Record] + func (s *RunsService) ItemsPage(ctx context.Context, runID string, p *ItemsParams) (*RunItemsPage, error) + func (s *RunsService) Iter(p *RunListParams) *Iterator[Run] + func (s *RunsService) List(ctx context.Context, p *RunListParams) (*RunList, error) + func (s *RunsService) Result(ctx context.Context, runID string, p *ResultParams) (*RunResult, error) + type Schedule struct + Attention []string + Cadence Cadence + ConsecutiveFailures int + CreatedAt string + Fields []string + IdempotencyKey string + InflightRunID string + Input Object + LastRunID string + LastSlotAt string + LastStatus string + MaxItems *int + Name string + NextDueAt string + PauseReason string + PinnedVersion string + Raw Object + Replayed bool + ScheduleID string + SkippedSlots int + SourceID string + State string + Target Object + TimeoutSeconds int + func (s *Schedule) UnmarshalJSON(data []byte) error + type ScheduleDeleted struct + Deleted bool + InflightRunID string + ScheduleID string + type ScheduleList struct + Limit int + Schedules []Schedule + type ScheduleParams struct + APIID string + AtUTC string + EndpointID string + Every string + Fields []string + IdempotencyKey string + Input map[string]any + MaxItems *int + Name string + RunNow bool + SourceID string + TimeoutSeconds *int + Version *int + Weekday *int + type SchedulesService struct + func (s *SchedulesService) Create(ctx context.Context, p *ScheduleParams) (*Schedule, error) + func (s *SchedulesService) Delete(ctx context.Context, scheduleID string) (*ScheduleDeleted, error) + func (s *SchedulesService) Get(ctx context.Context, scheduleID string) (*Schedule, error) + func (s *SchedulesService) List(ctx context.Context) (*ScheduleList, error) + func (s *SchedulesService) Pause(ctx context.Context, scheduleID string) (*Schedule, error) + func (s *SchedulesService) Resume(ctx context.Context, scheduleID string) (*Schedule, error) + type SourceConnection struct + DefinitionVersion string + REST Object + Raw Object + SourceID string + type SourceHealth struct + DefinitionVersion string + Raw Object + SourceID string + Status string + type SourceRunDetail struct + Billing Object + ContractVersion string + Raw Object + Recovery Object + Results Object + Run Object + type SourceRunParams struct + DefinitionVersion string + Endpoint string + ExpectedVersion string + Fields []string + IdempotencyKey string + Input map[string]any + MaxItems *int + NoWait bool + Nulls *bool + PollTimeout time.Duration + TimeoutSeconds *int + WaitSeconds *int + type SourceVersionContract struct + DefinitionVersion string + OpenAPI Object + Raw Object + Request Object + SourceID string + type SourceVersions struct + Items []Object + NextCursor string + Raw Object + type SourcesService struct + func (s *SourcesService) Connection(ctx context.Context, sourceID string) (*SourceConnection, error) + func (s *SourcesService) GetRun(ctx context.Context, sourceID, runID string) (*SourceRunDetail, error) + func (s *SourcesService) GetRunResult(ctx context.Context, sourceID, runID string, p *ResultParams) (*RunResult, error) + func (s *SourcesService) Health(ctx context.Context, sourceID string) (*SourceHealth, error) + func (s *SourcesService) Run(ctx context.Context, sourceID string, p *SourceRunParams) (*RunResult, error) + func (s *SourcesService) Start(ctx context.Context, sourceID string, p *SourceRunParams) (*Run, error) + func (s *SourcesService) Stream(ctx context.Context, sourceID string, p *SourceRunParams) (*Stream, error) + func (s *SourcesService) VersionContract(ctx context.Context, sourceID, definitionVersion string) (*SourceVersionContract, error) + func (s *SourcesService) Versions(ctx context.Context, sourceID string, limit int, cursor string) (*SourceVersions, error) + type Stream struct + IdempotencyKey string + RunLocation string + func (st *Stream) Close() error + func (st *Stream) Err() error + func (st *Stream) Event() StreamEvent + func (st *Stream) Next() bool + type StreamEvent struct + ErrorCode string + Raw Object + Records []Record + Run *Run + Sequence int + Stage string + StatusCode int + Type string + type Summary struct + CatalogComplete bool + DefinitionVersion string + Records int + SourceID string + Status string + WithinScopePassed bool