Skip to content

DeliveryClient

One method per endpoint of /content/delivery/v1, nothing opinionated — see createContentClient for the layer above.

readonly baseUrl: string


readonly sandbox: SandboxMode | null

The sandbox mode the most recent response reported, or null. A sandbox organization’s responses say so (X-Ebitex-Sandbox); a page you build from one should carry noindex — see sandboxRobots. Reflects the last response this client read from the network, so a call answered from a cache you hold yourself does not refresh it.

getBlob(blobId, options?): Promise<Response>

Raw bytes of a published-referenced blob — the server-side fallback for an SSR/build step that already holds the key. A browser should use a Blob value’s own public url instead.

string

RequestOptions

Promise<Response>


getComponent(provider, key, options?): Promise<ExpandedReference<ContentDocument>>

string

string

GetComponentOptions

Promise<ExpandedReference<ContentDocument>>


getSchemaBundle(options?): Promise<SchemaBundle>

Every Contract’s delivered-shape JSON Schema, self-contained — see cli/codegen.ts for the typed-consumer story built on this.

RequestOptions

Promise<SchemaBundle>


getSitemap(options?): Promise<SitemapResult>

The data a sitemap is built from — GET /sitemap. Pair it with buildSitemapXml from @ebitex/content-sdk/sitemap; serving the result at a URL is yours.

SitemapOptions

Promise<SitemapResult>


getStreamFacet(stream, field, options?): Promise<StreamFacetResult>

{value, label, count} triples for one of the stream’s own declared filters — GET /streams/{stream}/facets. Every declared filter kind except fullText is facetable.

string

string

StreamFacetOptions

Promise<StreamFacetResult>


listAudiences(options?): Promise<string[]>

The ids of the audiences published content names — GET /audiences. Ask Audience about these and no others.

RequestOptions

Promise<string[]>


listComponents(options): Promise<ComponentPage>

ListComponentsOptions

Promise<ComponentPage>


listLocales(options?): Promise<LocaleTreeNode[]>

LocalesOptions

Promise<LocaleTreeNode[]>


listNodes(options?): Promise<NavigationResult>

The published Experience tree, for navigation — GET /nodes.

ListNodesOptions

Promise<NavigationResult>


listSites(options?): Promise<SiteSummary[]>

SitesAndLocalesOptions

Promise<SiteSummary[]>


queryStream(stream, options?): Promise<StreamPage>

One page of an authored stream — GET /streams/{stream}; stream is the external id (or Guid).

string

QueryStreamOptions

Promise<StreamPage>


resolvePath(path, options?): Promise<PathResult>

string

PathOptions

Promise<PathResult>