Manta Developers
GitHub
Menu

@manta-eu/client/shared/app-guide

Reference for @manta-eu/client/shared/app-guide as it is on main.

Type Aliases

AppGuide

AppGuide = object

Properties

pages

pages: AppGuidePage[]

terms

terms: AppGuideTerm[]


AppGuideJsonLd

AppGuideJsonLd = object

Properties

@context

@context: "https://schema.org/"

@graph

@graph: (WebPageNode | DefinedTermSetNode)[]


AppGuidePage

AppGuidePage = object

One page of a custom app, so the agent can tell a user what the page does and how to get to it.

Properties

description

description: string

One or two sentences: what the user can do on the page.

edits?

optional edits?: IRI[]

The properties that the user can change on the page.

optional navPath?: string[]

The menu labels to click, such as [“Work”, “Campaigns”].

path

path: string

A URI template, such as “/b/{brand}/campaigns”.

shows?

optional shows?: IRI[]

The classes and properties that the page shows.

title

title: string


AppGuideTerm

AppGuideTerm = object

One glossary entry with the single definition the agent gives every time.

Properties

definition

definition: string

iri?

optional iri?: IRI

The knowledge graph term, if one exists.

term

term: string


DefinedTermNode

DefinedTermNode = object

Properties

@id?

optional @id?: IRI

@type

@type: "DefinedTerm"

description

description: string

name

name: string


DefinedTermSetNode

DefinedTermSetNode = object

Properties

@type

@type: "DefinedTermSet"

hasDefinedTerm

hasDefinedTerm: DefinedTermNode[]

name

name: string


EntryPointNode

EntryPointNode = object

Properties

@type

@type: "EntryPoint"

urlTemplate

urlTemplate: string


IriNode

IriNode = object

Properties

@id

@id: IRI


UpdateActionNode

UpdateActionNode = object

Properties

@type

@type: "UpdateAction"

object

object: IriNode

target

target: EntryPointNode


ViewActionNode

ViewActionNode = object

Properties

@type

@type: "ViewAction"

target

target: EntryPointNode


WebPageNode

WebPageNode = object

Properties

@type

@type: "WebPage"

about?

optional about?: IriNode[]

optional breadcrumb?: string

description

description: string

name

name: string

potentialAction

potentialAction: (ViewActionNode | UpdateActionNode)[]

Variables

appGuideToolName

const appGuideToolName: "getAppGuide" = "getAppGuide"

Functions

appGuideJsonLd()

appGuideJsonLd(__namedParameters): AppGuideJsonLd

Writes the guide in schema.org terms, so the agent reads a vocabulary it already knows.

Parameters

__namedParameters

AppGuide

Returns

AppGuideJsonLd