mesh-sdk package
Classes
|
Class |
Description |
|---|---|
|
API Client to manage the registration of custom Mesh applications and their identity-delegation credentials. | |
|
API Client to manage the registration of custom Mesh applications |
Functions
|
Function |
Description |
|---|---|
|
Check if user has a role by both name and id | |
|
Initializes the Uniform Mesh SDK. Intended to be called (and awaited) prior to any attempted interaction with the Uniform Mesh SDK. | |
Interfaces
|
Interface |
Description |
|---|---|
|
Imperative API for interacting with the composition/entry editor state. Available on All methods use object parameters for consistency across client, wire format, and server. | |
|
Core shared generic for a mesh location context | |
|
Methods the parent frame exposes to the Mesh SDK over the iframe bridge ( | |
|
Common fields for EditorStateApi.setPropertyLocalizability(). | |
Variables
|
Variable |
Description |
|---|---|
|
Default custom-header name partners attach on every state-changing call to the BFF. Any fixed, non-CORS-safelisted header name works — the value is irrelevant to the security argument; only its presence matters. The browser will not attach a non-safelisted header on a cross-origin request without a CORS preflight, so any request that arrives with the header must have originated from same-origin JavaScript. The constant is exported so the BFF and the consumer's browser fetch helper share one source of truth. | |
|
Default expected value for the custom CSRF header. Constant; the security argument is presence-of-header, not value-secrecy. Kept as | |
|
BFF 401 body | |
|
Human-readable message to pair with DELEGATION_EXPIRED_CODE. | |
Type Aliases
|
Type Alias |
Description |
|---|---|
|
Primitive data types that a parameter type accepts to be bound to composition data | |
|
Serializable metadata fields available in Canvas/Entry editor context. EditorStateApi is not part of metadata; it is provided on the location object via mesh-sdk comms. | |
|
Common metadata for all mesh locations | |
|
Location for custom data resource selector UI. Replaces the default JSON tree viewer when selecting dynamic tokens from a data resource. Value: The selected JSON pointer string (e.g., "/moves/0/move/name") setValue: Call with a valid JSON pointer to select that path getDataResource: Fetch data from the data connector using the current data source editorState: Imperative API for inspecting/mutating the underlying composition / entry tree | |
|
Metadata for the dataResourceSelector location. This location type allows custom UI for selecting JSON pointers within a data resource, replacing the default JSON tree viewer in the dynamic token picker. | |
|
Options for deleteNode | |
|
Dynamic inputs come from project map and represent path or query based dynamic values These can be connected to from within a Mesh location by setting a data resource variable to contain ex: $} expression(s). Dynamic inputs only work at runtime when using the route endpoint to fetch data. | |
|
Record of dynamic inputs keyed by the input name | |
|
Message to parent to create a data connection expression to insert in a param type | |
|
Response from parent when creating a dynamic token expression | |
|
A component instance without slots/params (indexed separately) | |
|
A component parameter value | |
|
Options for exporting the tree | |
|
An indexed node within the editor state | |
|
Child node IDs indexed by slot name | |
|
Parent info for a node | |
|
Metadata about the composition (description, category, workflow, etc.) | |
|
Root node metadata (name and slug) | |
|
Options for insertNode | |
|
Options for insertPattern | |
|
The DELETE body for /api/v1/integration-credentials (revoke) | |
|
The POST body for /api/v1/integration-credentials (rotate or mint) | |
|
The POST response for /api/v1/integration-credentials (returns the plaintext secret once) | |
|
The DELETE body for /api/v1/integration-definitions | |
|
Query parameter options for GET /api/v1/integration-definitions | |
|
The GET response from /api/v1/integration-definitions | |
|
The PUT body for /api/v1/integration-definitions | |
|
The PUT response body for /api/v1/integration-definitions (has team-specific integration type) | |
|
The DELETE body for /api/v1/integration-installations | |
|
Query parameter options for GET /api/v1/integration-installations | |
|
The GET response from /api/v1/integration-installations | |
|
The PUT body for /api/v1/integration-installations | |
|
Defines methods used for interacting with a Mesh location To receive useful typings, check the | |
|
Known location types that can be passed to a mesh location | |
|
Shape of the handler object the mesh parent iframe must provide (includes | |
|
Options for moveNode | |
|
Discriminated-union params for EditorStateApi.setPropertyLocalizability().
| |
|
Events that can be emitted from the Mesh SDK | |
|
Options for updateNodeProperty | |
|
Options for updateRootNode | |