Skip to content

DeliveryClient

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

readonly baseUrl: string

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>


listComponents(options): Promise<ComponentPage>

ListComponentsOptions

Promise<ComponentPage>


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

SitesAndLocalesOptions

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>