Versions in this module Expand all Collapse all v1 v1.0.0 Jul 29, 2026 Changes in this version + const DefaultBaseURL + const ErrorReasonBadRequest + const ErrorReasonConflict + const ErrorReasonForbidden + const ErrorReasonInternalServerError + const ErrorReasonNotFound + const ErrorReasonRateLimited + const ErrorReasonServiceUnavailable + const ErrorReasonUnauthorized + const ErrorReasonUnknown + const ErrorReasonUnprocessableEntity + const Version + var ErrTimeout = polling.ErrTimeout + func Bool(b bool) *bool + func Float64(f float64) *float64 + func Int(i int) *int + func IsConflict(err error) bool + func IsForbidden(err error) bool + func IsNotFound(err error) bool + func IsRateLimited(err error) bool + func IsUnauthorized(err error) bool + func String(s string) *string + type AwaitParams = polling.AwaitParams + type Client struct + Batch *batch.Service + Context *contexttemplate.Service + Graph *graph.Service + Project *project.Service + Task *task.Service + Thread *thread.Service + User *user.Service + func MustNewClient(apiKey string, opts ...ClientOption) *Client + func NewClient(apiKey string, opts ...ClientOption) (*Client, error) + type ClientOption func(*Client) + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(httpClient *http.Client) ClientOption + func WithMaxRetries(n int) ClientOption + func WithReceiveTimeout(d time.Duration) ClientOption + func WithUserAgent(userAgent string) ClientOption + type Error = apierror.Error + type ErrorReason = apierror.Reason