Versions in this module Expand all Collapse all v0 v0.1.1 Feb 19, 2026 Changes in this version + func Bool(v bool) *bool + func Float64(v float64) *float64 + func Int(v int) *int + func String(v string) *string + type APIError struct + Body string + Message string + StatusCode int + func (e *APIError) Error() string + type APITokenCreateParams struct + ExpiresIn *string + IPAllowlist []string + Name string + Permission *string + type APITokenListParams struct + type APITokenService struct + func (s *APITokenService) Create(ctx context.Context, params APITokenCreateParams) (*ApiToken, error) + func (s *APITokenService) Delete(ctx context.Context, id string) error + func (s *APITokenService) Get(ctx context.Context, id string) (*ApiToken, error) + func (s *APITokenService) List(ctx context.Context, params *APITokenListParams) *Iterator[ApiToken] + func (s *APITokenService) Update(ctx context.Context, id string, params APITokenUpdateParams) (*ApiToken, error) + type APITokenUpdateParams struct + IPAllowlist []string + Name *string + type Account struct + BillingEmail *string + CreatedAt string + ID string + LogoURL *string + Name string + OnTrial bool + Phone *string + Plan string + PlanName string + Slug string + Timezone *string + TrialEndsAt *string + UpdatedAt string + Usage any + type AccountInfo struct + ID string + Name string + Plan string + type AccountService struct + func (s *AccountService) Get(ctx context.Context) (*Account, error) + func (s *AccountService) Me(ctx context.Context) (*MeResponse, error) + func (s *AccountService) Update(ctx context.Context, params AccountUpdateParams) (*Account, error) + type AccountUpdateParams struct + BillingEmail *string + Name *string + Timezone *string + type ApiToken struct + Active bool + CreatedAt string + CreatedBy ApiTokenCreatedBy + ExpiresAt *string + ID string + IPAllowlist []string + LastUsedAt *string + Name string + Permission string + PermissionLabel string + Revoked bool + Token *string + TokenHint string + UpdatedAt string + type ApiTokenCreatedBy struct + ID string + Name *string + type AuthenticationError struct + type Client struct + APITokens *APITokenService + Account *AccountService + Companies *CompanyService + Executions *ExecutionService + Instances *InstanceService + LLMCosts *LLMCostService + LLMProjects *LLMProjectService + LLMProviders *LLMProviderService + SyncRuns *SyncRunService + Users *UserService + Webhooks *WebhookService + Workflows *WorkflowService + func NewClient(apiKey string, opts ...Option) (*Client, error) + type Company struct + Code *string + ContactEmail *string + ContactFirstName *string + ContactLastName *string + ContactPhone *string + CreatedAt string + EffectiveTimezone *string + ID string + Metrics *CompanyMetrics + N8NInstancesCount int + Name string + Notes *string + Timezone *string + UpdatedAt string + type CompanyCreateParams struct + Code *string + ContactEmail *string + ContactFirstName *string + ContactLastName *string + ContactPhone *string + Name string + Notes *string + Timezone *string + type CompanyListParams struct + type CompanyMetrics struct + ExecutionsCount int + FailureCount int + SuccessRate *float64 + TimeSavedMinutes *float64 + type CompanyService struct + func (s *CompanyService) Create(ctx context.Context, params CompanyCreateParams) (*Company, error) + func (s *CompanyService) Delete(ctx context.Context, id string) error + func (s *CompanyService) Get(ctx context.Context, id string) (*Company, error) + func (s *CompanyService) List(ctx context.Context, params *CompanyListParams) *Iterator[Company] + func (s *CompanyService) Update(ctx context.Context, id string, params CompanyUpdateParams) (*Company, error) + type CompanyUpdateParams struct + Code *string + ContactEmail *string + ContactFirstName *string + ContactLastName *string + ContactPhone *string + Name *string + Notes *string + Timezone *string + type ConnectionError struct + Err error + func (e *ConnectionError) Error() string + func (e *ConnectionError) Unwrap() error + type Execution struct + ClientID string + ClientName string + CreatedAt string + DurationMs *int + DurationSeconds *float64 + ErrorCategory *string + ErrorMessage *string + ErrorPayload any + ExternalExecutionID *string + FinishedAt *string + ID string + InstanceID string + InstanceName string + StartedAt *string + Status string + WorkflowID string + WorkflowName string + type ExecutionListParams struct + ClientID *string + EndDate *string + ErrorCategory *string + ErrorsOnly *bool + InstanceID *string + StartDate *string + Status *string + WorkflowID *string + type ExecutionService struct + func (s *ExecutionService) Get(ctx context.Context, id string) (*Execution, error) + func (s *ExecutionService) List(ctx context.Context, params *ExecutionListParams) *Iterator[Execution] + type Instance struct + BaseURL string + CompanyID string + CompanyName string + CreatedAt string + ID string + LastExecutionsSyncedAt *string + LastSyncError *string + LastSyncedAt *string + LastWorkflowsSyncedAt *string + Metrics *InstanceMetrics + Name string + ServiceType string + SyncStatus string + UpdatedAt string + WorkflowsCount int + type InstanceCreateParams struct + APIKey string + BaseURL string + ClientID string + Name string + ServiceType *string + type InstanceListParams struct + ClientID *string + ServiceType *string + SyncStatus *string + type InstanceMetrics struct + ExecutionsCount int + SuccessRate *float64 + type InstanceService struct + func (s *InstanceService) Create(ctx context.Context, params InstanceCreateParams) (*Instance, error) + func (s *InstanceService) Delete(ctx context.Context, id string) error + func (s *InstanceService) Get(ctx context.Context, id string) (*Instance, error) + func (s *InstanceService) List(ctx context.Context, params *InstanceListParams) *Iterator[Instance] + func (s *InstanceService) Sync(ctx context.Context, id string, params *InstanceSyncParams) (map[string]any, error) + func (s *InstanceService) SyncAll(ctx context.Context, params *InstanceSyncAllParams) (map[string]any, error) + func (s *InstanceService) Update(ctx context.Context, id string, params InstanceUpdateParams) (*Instance, error) + type InstanceSyncAllParams struct + ClientID *string + ServiceType *string + SyncType *string + type InstanceSyncParams struct + SyncType *string + type InstanceUpdateParams struct + APIKey *string + BaseURL *string + Name *string + ServiceType *string + type InternalServerError struct + type Invitation struct + CreatedAt string + Email string + ExpiresAt string + ID int + Role string + type Iterator struct + func (it *Iterator[T]) Collect() ([]T, error) + func (it *Iterator[T]) Err() error + func (it *Iterator[T]) Meta() *PaginationMeta + func (it *Iterator[T]) Next() bool + func (it *Iterator[T]) Value() T + type LLMCostByClient struct + CostCents int + ID string + Name string + Tokens int + type LLMCostByClientResponse struct + Data []LLMCostByClient + Meta LLMCostMeta + type LLMCostByProviderResponse struct + Data []LLMCostProvider + Meta LLMCostMeta + type LLMCostDaily struct + CostCents int + Date string + Tokens int + type LLMCostData struct + Daily []LLMCostDaily + Models []LLMCostModel + Providers []LLMCostProvider + Summary LLMCostSummary + type LLMCostMeta struct + EndDate string + StartDate string + type LLMCostModel struct + CostCents int + Model string + Requests int + Tokens int + type LLMCostParams struct + EndDate *string + StartDate *string + type LLMCostProvider struct + CostCents int + ID string + Name string + ProviderType string + Requests int + Tokens int + type LLMCostService struct + func (s *LLMCostService) ByClient(ctx context.Context, params *LLMCostParams) (*LLMCostByClientResponse, error) + func (s *LLMCostService) ByProvider(ctx context.Context, params *LLMCostParams) (*LLMCostByProviderResponse, error) + func (s *LLMCostService) Summary(ctx context.Context, params *LLMCostParams) (*LLMCostSummaryResponse, error) + type LLMCostSummary struct + ProvidersCount int + TotalCostCents int + TotalInputTokens int + TotalOutputTokens int + TotalRequests int + TotalTokens int + type LLMCostSummaryResponse struct + Data LLMCostData + Meta LLMCostMeta + type LLMProject struct + ClientID *string + ClientName *string + CreatedAt string + ExternalID *string + ID string + Name string + TotalCostCents int + TotalTokens int + UpdatedAt string + type LLMProjectListParams struct + type LLMProjectService struct + func (s *LLMProjectService) List(ctx context.Context, providerID string, params *LLMProjectListParams) *Iterator[LLMProject] + func (s *LLMProjectService) Update(ctx context.Context, providerID, projectID string, ...) (*LLMProject, error) + type LLMProjectUpdateParams struct + ClientID *string + type LLMProvider struct + CreatedAt string + ID string + LastSyncError *string + LastSyncedAt *string + Metrics *LLMProviderMetrics + Name string + OrganizationID *string + ProjectsCount int + ProviderType string + SyncStatus *string + UpdatedAt string + type LLMProviderCreateParams struct + APIKey string + Config map[string]any + Name string + OrganizationID *string + ProviderType string + type LLMProviderListParams struct + type LLMProviderMetrics struct + TotalCostCents int + TotalRequests int + TotalTokens int + type LLMProviderService struct + func (s *LLMProviderService) Create(ctx context.Context, params LLMProviderCreateParams) (*LLMProvider, error) + func (s *LLMProviderService) Delete(ctx context.Context, id string) error + func (s *LLMProviderService) Get(ctx context.Context, id string) (*LLMProvider, error) + func (s *LLMProviderService) List(ctx context.Context, params *LLMProviderListParams) *Iterator[LLMProvider] + func (s *LLMProviderService) Sync(ctx context.Context, id string) (map[string]any, error) + func (s *LLMProviderService) Update(ctx context.Context, id string, params LLMProviderUpdateParams) (*LLMProvider, error) + type LLMProviderUpdateParams struct + APIKey *string + Config map[string]any + Name *string + OrganizationID *string + type ListParams struct + Page *int + PerPage *int + type MeResponse struct + Account AccountInfo + Token TokenInfo + type NotFoundError struct + type Option func(*clientConfig) + func WithBaseURL(url string) Option + func WithHTTPClient(hc *http.Client) Option + func WithMaxRetries(n int) Option + func WithTimeout(d time.Duration) Option + type PaginationMeta struct + HasMore bool + Page int + PerPage int + Total int + TotalPages int + type PermissionDeniedError struct + type RateLimitError struct + RetryAfter *time.Duration + type SyncHealthEntry struct + ClientID string + ClientName string + Executions SyncHealthSyncInfo + InstanceID string + InstanceName string + LastSyncError *string + SyncStatus string + Workflows SyncHealthSyncInfo + type SyncHealthSyncInfo struct + LastRun *SyncRun + LastSyncedAt *string + type SyncRun struct + CreatedAt string + DurationSeconds *float64 + ErrorMessage *string + FinishedAt *string + ID string + InstanceID string + InstanceName string + RecordsCreated int + RecordsUpdated int + StartedAt *string + Status string + SyncType string + type SyncRunListParams struct + ClientID *string + EndDate *string + InstanceID *string + StartDate *string + Status *string + SyncType *string + type SyncRunService struct + func (s *SyncRunService) Get(ctx context.Context, id string) (*SyncRun, error) + func (s *SyncRunService) Health(ctx context.Context) ([]SyncHealthEntry, error) + func (s *SyncRunService) List(ctx context.Context, params *SyncRunListParams) *Iterator[SyncRun] + type TimeoutError struct + Err error + func (e *TimeoutError) Error() string + func (e *TimeoutError) Unwrap() error + type TokenInfo struct + ExpiresAt *string + Name string + Permission string + type User struct + AvatarURL *string + Email string + FirstName *string + ID string + JoinedAt string + LastName *string + Name *string + Phone *string + Role string + Timezone *string + type UserInviteParams struct + Email string + Role *string + type UserListParams struct + type UserService struct + func (s *UserService) Delete(ctx context.Context, id string) error + func (s *UserService) Get(ctx context.Context, id string) (*User, error) + func (s *UserService) Invite(ctx context.Context, params UserInviteParams) (*Invitation, error) + func (s *UserService) List(ctx context.Context, params *UserListParams) *Iterator[User] + func (s *UserService) Update(ctx context.Context, id string, params UserUpdateParams) (*User, error) + type UserUpdateParams struct + Role string + type ValidationError struct + type Webhook struct + ConsecutiveFailures int + CreatedAt string + Description *string + Enabled bool + Events []string + ID string + LastTriggeredAt *string + Secret *string + URL string + UpdatedAt string + type WebhookCreateParams struct + Description *string + Enabled *bool + Events []string + URL string + type WebhookListParams struct + type WebhookService struct + func (s *WebhookService) Create(ctx context.Context, params WebhookCreateParams) (*Webhook, error) + func (s *WebhookService) Delete(ctx context.Context, id string) error + func (s *WebhookService) Get(ctx context.Context, id string) (*Webhook, error) + func (s *WebhookService) List(ctx context.Context, params *WebhookListParams) *Iterator[Webhook] + func (s *WebhookService) RegenerateSecret(ctx context.Context, id string) (*Webhook, error) + func (s *WebhookService) Update(ctx context.Context, id string, params WebhookUpdateParams) (*Webhook, error) + type WebhookUpdateParams struct + Description *string + Enabled *bool + Events []string + URL *string + type Workflow struct + CompanyID string + CompanyName string + CreatedAt string + ExternalWorkflowID *string + ID string + InstanceID string + InstanceName string + IsActive bool + Metrics *WorkflowMetrics + MinutesSavedPerFailure *float64 + MinutesSavedPerSuccess *float64 + Name string + UpdatedAt string + type WorkflowListParams struct + Active *bool + ClientID *string + InstanceID *string + Search *string + type WorkflowMetrics struct + ExecutionsCount int + FailureCount int + SuccessCount int + SuccessRate *float64 + TimeSavedMinutes *float64 + type WorkflowService struct + func (s *WorkflowService) Get(ctx context.Context, id string) (*Workflow, error) + func (s *WorkflowService) List(ctx context.Context, params *WorkflowListParams) *Iterator[Workflow] + func (s *WorkflowService) Update(ctx context.Context, id string, params WorkflowUpdateParams) (*Workflow, error) + type WorkflowUpdateParams struct + MinutesSavedPerFailure *float64 + MinutesSavedPerSuccess *float64 v0.1.0 Feb 19, 2026