Repository navigation
v6.0.0
6.0.0 (2026-06-05)
Breaking changes
-
Pagination types gained type parameters.
core.Page[T]andcore.PageIterator[T]are nowcore.Page[Cursor, T, R]/core.PageIterator[Cursor, T, R](the return type of every paginatedList/ListV2method —Tokens.ListV2,Applications.List,Proxies.List,Reactors.List,Logs.List,Tenants.Members.List,Tenants.Invitations.List, and others).- No change needed if you iterate idiomatically:
iter := client.Tokens.List(...)then.Next()/.Current()still compile via type inference, and the method names are unchanged. - Action required only if you name
core.Page[...]/core.PageIterator[...]explicitly (avardeclaration, struct field, or function parameter) — add the two new type arguments. Example:*core.Page[*Token]→*core.Page[*string, *Token, *TokenCursorPaginatedList].
- No change needed if you iterate idiomatically:
-
Subpackage
NewClientsignature changed. Service subpackages (e.g.tokens,proxies,applications,reactors, …) changedNewClient(opts ...option.RequestOption)→NewClient(options *core.RequestOptions).- No change needed for the common entry point — the top-level
client.NewClient(opts ...option.RequestOption)is unchanged, and all sub-client fields (client.Tokens,client.Applications, …) keep their names and types. - Action required only if you construct a service subpackage client directly (e.g.
tokens.NewClient(...)): pass a single*core.RequestOptionsinstead of variadic options.
- No change needed for the common entry point — the top-level
-
Tenants.Members.Listis now paginated. It previously returned a flat*TenantMemberResponsePaginatedList; it now returns a*core.Page[...]pager. Update call sites to iterate the pager (.Next()/.Current()) instead of reading a single response object. -
Tenants.Connections.Deleteno longer returns a body. The204response previously deserialized to*CreateTenantConnectionResponse; it now returns onlyerror. Remove any code reading a return value from this call. -
Application-key list filter field renamed
ID→KeyID. OnApplicationKeysListRequest, the key-id filter field is nowKeyID(the underlying query parameter sent to the API is unchanged). If you set this filter, renamereq.ID→req.KeyID. This resolves a collision with the pathidparameter that the upgraded generator rejects. -
Enrichmentsmethod renamedGetcarddetails→CardDetails. Callclient.Enrichments.CardDetails(...). The previous name was auto-derived; it is now explicitly named. -
Tenant-owner transfer relocated and renamed.
client.Tenants.OwnerTransfer(...)is nowclient.Tenants.Owner.Transfer(...), and it now accepts idempotency options (option.IdempotentRequestOption). Update the call path accordingly.
Behavioral change (not a compile break)
- Webhook
Eventsnow always serializes.CreateWebhookRequest.Events,UpdateWebhookRequest.Events, andWebhook.Eventsdroppedomitemptyfrom their JSON tag. An empty events slice now serializes as[]in the request body instead of being omitted.