UNPKG

@atlaskit/json-ld-types

Version:

A set of types for the Atlassian Object Vocabulary

42 lines (33 loc) 1.37 kB
# JSON-LD Types A set of types for the Atlassian Object Vocabulary defined at [Atlassian Object Vocabulary](https://product-fabric.atlassian.net/wiki/spaces/SL/pages/460753040/Atlassian+Object+Vocabulary+JSON-LD). Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/linking-platform/json-ld-types). ### Usage ```typescript import { JsonLd } from '@atlaskit/json-ld-types'; const file: JsonLd.Object<JsonLd.Meta.Granted, JsonLd.Data.TextDocument> = { meta: { access: 'granted', visibility: 'restricted', auth: [], definitionId: 'confluence-object-provider', }, data: { '@context': { '@vocab': 'https://www.w3.org/ns/activitystreams#', atlassian: 'https://schema.atlassian.com/ns/vocabulary#', schema: 'http://schema.org/', }, generator: { '@type': 'Application', '@id': 'https://www.atlassian.com/#Confluence', name: 'Confluence', }, '@type': ['Document', 'schema:TextDigitalDocument'], url: 'https://product-fabric.atlassian.net/wiki/spaces/SL/pages/876610663/Github+Object+provider', name: 'Github Object provider', summary: 'This page is within the Smart Links space', }, }; ``` Owned by Bandicoots team #help-twg-integrations-and-linking