Versions in this module Expand all Collapse all v1 v1.3.0 Sep 25, 2026 v1.2.0 Sep 25, 2026 Changes in this version + const HeaderRecvAt + const HeaderRespAt + const HeaderSentAt + const HeaderTiming + const HeaderTraceID type Client + func (c *Client) ConnectTiming() ConnectTrace + func (c *Client) ListInto(ctx context.Context, resource string, q List, dest any) (page Page, err error) type Collection + func (c *Collection) UnmarshalJSON(b []byte) error type Config + Logger *slog.Logger + Trace func(RequestTrace) + type ConnectTrace struct + Auth auth.TokenTrace + Dial time.Duration + Subject time.Duration + Token time.Duration + Total time.Duration + type RequestTrace struct + Decode time.Duration + Encode time.Duration + Err error + ErrorCode string + ID string + Inbound time.Duration + Method string + Outbound time.Duration + ReqBytes int + RespBytes int + RoundTrip time.Duration + Server *ServerTiming + Subject string + Total time.Duration + Unwrap time.Duration + type ServerSpan struct + Ms float64 + Name string + Rows *int + Start float64 + type ServerTiming struct + InboundMs *float64 + ReqBytes int + RespBytes int + Spans []ServerSpan + Subject string + TotalMs float64 v1.1.0 Sep 14, 2026 Changes in this version + const CodeActivityNotEditable + const CodeCommentNotOwned v1.0.1 Aug 27, 2026 Changes in this version + const CodeFileNotAvailable + const CodeInvalidAttachmentID + const CodeInvalidDateRange + const CodeInvalidStateTransition + const CodeStageNotFound v1.0.0 Aug 25, 2026 Changes in this version + const CodeAccessDenied + const CodeAlreadySubscribed + const CodeCallerNotAuthorized + const CodeClientNotFound + const CodeCommentNotFound + const CodeDailyLimitExceeded + const CodeFileNotFound + const CodeFileNotOwned + const CodeFileTooLarge + const CodeFileTypeNotAllowed + const CodeInternalError + const CodeInvalidCursor + const CodeInvalidFields + const CodeInvalidResponsiblePerson + const CodeObjectiveNotFound + const CodePersonNotFound + const CodeProjectNotFound + const CodeQueryTimeout + const CodeRequirementNotFound + const CodeRequirementProjectMismatch + const CodeResolutionRequired + const CodeSubscriptionNotFound + const CodeTaskNotFound + const CodeUnknownCaller + const CodeUnknownCommand + const CodeUnworkedTimeNotFound + const CodeUserNotFound + const CodeWorkedTimeNotFound + const DefaultInstance + const DefaultIssuer + const DefaultTimeout + const EnvClientID + const EnvCreds + const EnvInstance + const EnvIssuer + const EnvKeyFile + const EnvProjectID + const EnvServers + const EnvTimeout + const ProtocolVersion + const ServiceCommands + const ServiceQueries + var ErrFailure = errors.New("jiku: core answered failure") + var ErrInvalidRequest = errors.New("jiku: invalid request") + var ErrNoEndpoint = errors.New("jiku: no endpoint for that method") + var ErrNotConnected = errors.New("jiku: not connected") + var ErrTimeout = errors.New("jiku: no reply from core") + func Between(from, to any) map[string]any + func ConfigFile() string + func Contains(key, value any) map[string]any + func Gt(v any) map[string]any + func Gte(v any) map[string]any + func HashUserID(userID string) string + func In(values ...any) []any + func InboxPrefix(userID string) string + func IsCode(err error, code string) bool + func Lt(v any) map[string]any + func Lte(v any) map[string]any + func Not(value any) map[string]any + func Range(gt, gte, lt, lte any) map[string]any + func SplitMethod(method string) (resource, operation string, ok bool) + func Subject(instance, userID, service, method string) string + type Client struct + func Connect(ctx context.Context, cfg Config) (*Client, error) + func (c *Client) All(ctx context.Context, resource string, q List, dest any) error + func (c *Client) Close() error + func (c *Client) Command(ctx context.Context, method string, payload any) (json.RawMessage, error) + func (c *Client) Conn() *nats.Conn + func (c *Client) ConnectedURL() string + func (c *Client) Contract(ctx context.Context) (*Contract, error) + func (c *Client) Describe(ctx context.Context, resources ...string) (*Contract, error) + func (c *Client) Get(ctx context.Context, resource string, q Get) (*Item, error) + func (c *Client) InboxPrefix() string + func (c *Client) Instance() string + func (c *Client) Iterate(ctx context.Context, resource string, q List) *Iterator + func (c *Client) List(ctx context.Context, resource string, q List) (*Collection, error) + func (c *Client) Query(ctx context.Context, method string, payload any) (json.RawMessage, error) + func (c *Client) Request(ctx context.Context, service, method string, payload any) (*Reply, error) + func (c *Client) Tags(ctx context.Context, projectID int64, key string) ([]TagGroup, error) + func (c *Client) UserID() string + type Collection struct + Items []json.RawMessage + Page Page + func (c Collection) Into(dest any) error + type Config struct + Auth auth.TokenSource + Creds string + Instance string + Name string + Servers string + Timeout time.Duration + UserID string + Zitadel ZitadelConfig + func FromEnv() Config + func LoadConfig(path string) (Config, error) + type ContainsShape struct + Shape []string + type Contract struct + Resources map[string]Resource + func (ct *Contract) Resource(name string) (Resource, error) + func (ct *Contract) ResourceNames() []string + type Count int + const CountOff + const CountOn + const CountOnly + type Defaults struct + Limit int + MaxLimit int + Sort []string + type Discriminator struct + Field string + Values []string + type EnumValue struct + Label string + Value string + type Error struct + Code string + Details *ErrorDetails + Message string + Method string + func (e *Error) Error() string + func (e *Error) Hint() string + func (e *Error) Is(target error) bool + type ErrorDetails struct + Allowed []string + Extra map[string]any + Field string + Value any + func (d *ErrorDetails) UnmarshalJSON(b []byte) error + func (d ErrorDetails) MarshalJSON() ([]byte, error) + type F map[string]any + func ParseFilter(exprs []string, r Resource) (F, error) + type Field struct + Cap int + Cardinality string + Contains *ContainsShape + Enum string + Fields []string + Kind string + Optional bool + Scalar string + Search bool + SearchNumeric bool + TruncatedFlag string + type Get struct + EntityType string + Fields []string + ID int64 + Include []string + type Item struct + Raw json.RawMessage + func (i Item) Into(dest any) error + type Iterator struct + func (it *Iterator) Count() int + func (it *Iterator) Err() error + func (it *Iterator) Item() Item + func (it *Iterator) Next() bool + func (it *Iterator) Page() Page + func (it *Iterator) Pages() int + type List struct + Count Count + Cursor string + Fields []string + Filter F + Include []string + Limit int + Sort []string + type Page struct + Cursor string + Limit int + Returned int + Total *int + func (p Page) HasMore() bool + type Reply struct + Data json.RawMessage + ErrorCode string + ErrorDetails *ErrorDetails + ErrorMessage string + Status Status + type Resource struct + Base map[string]Field + Defaults Defaults + Discriminator *Discriminator + Enums map[string][]EnumValue + Filterable map[string]Field + Includable map[string]Field + Sortable []string + Variants map[string]Variant + func (r Resource) Coerce(name string, raw string) (any, error) + func (r Resource) FieldNames() []string + func (r Resource) FilterableNames() []string + func (r Resource) ForVariant(name string) Resource + func (r Resource) IncludableNames() []string + func (r Resource) Validate(q List) error + func (r Resource) VariantNames() []string + type Status string + const StatusFailure + const StatusSuccess + type TagGroup struct + Key string + Values []string + type Variant struct + Base map[string]Field + Enums map[string][]EnumValue + Filterable map[string]Field + Includable map[string]Field + type ZitadelConfig struct + ClientID string + Issuer string + KeyFile string + ProjectID string