ListComponentsOptions
@ebitex/content-sdk — the framework-agnostic half.
- Low-level:
createDeliveryClient— one method per Content Delivery API endpoint, the delivered vocabulary as types (types.ts) and runtime guards (guards.ts), typed errors. - High-level:
createContentClient—resolveLocation(location)for router changes: site from the page’s own host, locale from the browser’s languages against the organization’s tree, the context bag, afull/normalizedresolve strategy, caching and cancellation.
Nothing here imports React; the rendering layer is @ebitex/content-sdk/react. Both clients
run in a browser (with a browser-safe delivery key) and in Node (any key).
Extends
Section titled “Extends”Properties
Section titled “Properties”category?
Section titled “category?”
optionalcategory?: readonlystring[]
Category paths or ids — every one must match (AND), subtree-inclusive.
content?
Section titled “content?”
optionalcontent?:boolean
Project each item’s resolved document into the response (wire: include=content) — one
request returns render-ready items, shaped exactly like getComponent for the same key and
read options. The inherited locale/resolve/raw/ctx are only valid alongside this —
the server rejects them on a descriptor-only query rather than silently ignoring them.
contract
Section titled “contract”contract:
string
A Contract id; matches Components of that Contract or any Contract inheriting from it.
optionalctx?:ContextBag
The personalization context. Present = server-resolve (personalization collapsed, tokens injected); absent = client-resolve (unresolved variant-set envelopes come back).
Inherited from
Section titled “Inherited from”cursor?
Section titled “cursor?”
optionalcursor?:string
Opaque — replay exactly as received, with the same orderBy/direction it was issued under
(a mismatched replay is 400 invalid_cursor; restart the listing).
direction?
Section titled “direction?”
optionaldirection?:"asc"|"desc"
Only valid with orderBy. Defaults to asc.
limit?
Section titled “limit?”
optionallimit?:number
1–100; the server defaults to 20.
locale?
Section titled “locale?”
optionallocale?:string
One locale code. The server resolves its fallback chain; the high-level client picks the code.
Inherited from
Section titled “Inherited from”orderBy?
Section titled “orderBy?”
optionalorderBy?:string
A top-level field external id to order by — text order over the stored value (exact
chronology for a date field’s RFC 3339 UTC instants), items missing the field last in both
directions. Omitted, items come back in an arbitrary but stable id order (the pre-existing
behavior).
paths?
Section titled “paths?”
optionalpaths?:boolean
Attach each item’s published address(es) (wire: include=paths) — one
{siteRootNodeId, path} per live published node whose root Presentation payload binds the
component (one level; a component referenced only inside another component’s fields gets
[]). Paths are relative and read live per request; locale selects the path’s locale
slot. Composes with content or works alone.
optionalraw?:boolean
Keep Localizable envelopes unresolved. Never sent by the high-level client.
Inherited from
Section titled “Inherited from”referencePaths?
Section titled “referencePaths?”
optionalreferencePaths?:boolean
Attach every reference descriptor’s own published address(es) — wire include=referencePaths.
The paths member is the same one listComponents({ paths: true }) puts on an item, with the
same rules, but on the references inside a document: a post’s series, a parent article, a
related-reading list. [] means the target is bound at no live node; the member being absent
means this option was not sent.
Present at any depth and whether or not the descriptor was expanded, so a resolve: 0 read is
enough to build navigation. Pick one with pathForSite.
Inherited from
Section titled “Inherited from”resolve?
Section titled “resolve?”
optionalresolve?:number
Expansion depth (an integer, capped at 10 server-side). Omitted = 0, descriptors only.
Inherited from
Section titled “Inherited from”signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Inherited from
Section titled “Inherited from”
optionalsite?:string