From 9392014e8c5a99d82fc80cb232e31e108fc91c0b Mon Sep 17 00:00:00 2001 From: Jackson Morgan Date: Thu, 27 Feb 2025 15:17:38 -0500 Subject: [PATCH] Complete set refactor for schema-converter-shex --- packages/ldo/src/index.ts | 1 + .../src/typing/ShexJTypingTransformer.ts | 10 +++- .../src/typing/shexjToTyping.ts | 2 +- .../typing/util/dedupeObjectTypeMembers.ts | 33 ++++++++----- .../test/testData/activityPub.ts | 2 +- .../test/testData/andSimple.ts | 2 +- .../test/testData/circular.ts | 2 +- .../test/testData/eachOfAndSimple.ts | 49 +++++++++++++++++++ .../test/testData/extendsSimple.ts | 2 +- .../test/testData/oldExtends.ts | 2 +- .../test/testData/orSimple.ts | 2 +- .../test/testData/profile.ts | 2 +- .../test/testData/reducedProfile.ts | 2 +- .../test/testData/reusedPredicates.ts | 2 +- .../test/testData/simple.ts | 2 +- .../test/testData/testData.ts | 2 + 16 files changed, 91 insertions(+), 26 deletions(-) create mode 100644 packages/schema-converter-shex/test/testData/eachOfAndSimple.ts diff --git a/packages/ldo/src/index.ts b/packages/ldo/src/index.ts index a951c44..372327d 100644 --- a/packages/ldo/src/index.ts +++ b/packages/ldo/src/index.ts @@ -8,3 +8,4 @@ export * from "./createLdoDataset"; import type { LdoBase as LdoBaseImport } from "./util"; export type LdoBase = LdoBaseImport; export * from "./types"; +export { LdSet, LdoJsonldContext, set } from "@ldo/jsonld-dataset-proxy"; diff --git a/packages/schema-converter-shex/src/typing/ShexJTypingTransformer.ts b/packages/schema-converter-shex/src/typing/ShexJTypingTransformer.ts index 445107c..37d14ca 100644 --- a/packages/schema-converter-shex/src/typing/ShexJTypingTransformer.ts +++ b/packages/schema-converter-shex/src/typing/ShexJTypingTransformer.ts @@ -222,7 +222,7 @@ export const ShexJTypingTransformer = ShexJTraverser.createTransformer< tripleConstraint.predicate, rdfTypes[0], ); - const isArray = + const isSet = tripleConstraint.max !== undefined && tripleConstraint.max !== 1; const isOptional = tripleConstraint.min === 0; let type: dom.Type = dom.type.any; @@ -232,7 +232,13 @@ export const ShexJTypingTransformer = ShexJTraverser.createTransformer< const propertyDeclaration = dom.create.property( propertyName, - isArray ? dom.type.array(type) : type, + isSet + ? { + kind: "name", + name: "LdSet", + typeArguments: [type], + } + : type, isOptional ? dom.DeclarationFlags.Optional : dom.DeclarationFlags.None, ); diff --git a/packages/schema-converter-shex/src/typing/shexjToTyping.ts b/packages/schema-converter-shex/src/typing/shexjToTyping.ts index 1cdc2ad..7bb63f6 100644 --- a/packages/schema-converter-shex/src/typing/shexjToTyping.ts +++ b/packages/schema-converter-shex/src/typing/shexjToTyping.ts @@ -47,7 +47,7 @@ export async function shexjToTyping( }; }); const typingsString = - `import {ContextDefinition} from "jsonld"\n\n` + + `import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\n` + typings.map((typing) => `export ${typing.typingString}`).join(""); const typeingReturn: TypeingReturn = { diff --git a/packages/schema-converter-shex/src/typing/util/dedupeObjectTypeMembers.ts b/packages/schema-converter-shex/src/typing/util/dedupeObjectTypeMembers.ts index 3ef09b9..b8f5caf 100644 --- a/packages/schema-converter-shex/src/typing/util/dedupeObjectTypeMembers.ts +++ b/packages/schema-converter-shex/src/typing/util/dedupeObjectTypeMembers.ts @@ -10,24 +10,22 @@ export function dedupeObjectTypeMembers( // Combine properties if they're duplicates if (properties[propertyDeclaration.name]) { const oldPropertyDeclaration = properties[propertyDeclaration.name]; - const oldPropertyTypeAsArray = - oldPropertyDeclaration.type as dom.ArrayTypeReference; - const oldProeprtyType = - oldPropertyTypeAsArray.kind === "array" - ? oldPropertyTypeAsArray.type - : oldPropertyDeclaration.type; - const propertyTypeAsArray = - propertyDeclaration.type as dom.ArrayTypeReference; - const propertyType = - propertyTypeAsArray.kind === "array" - ? propertyTypeAsArray.type - : propertyDeclaration.type; + const oldPropertyType = isLdSetType(oldPropertyDeclaration.type) + ? oldPropertyDeclaration.type.typeArguments[0] + : oldPropertyDeclaration.type; + const propertyType = isLdSetType(propertyDeclaration.type) + ? propertyDeclaration.type.typeArguments[0] + : propertyDeclaration.type; const isOptional = propertyDeclaration.flags === dom.DeclarationFlags.Optional || oldPropertyDeclaration.flags === dom.DeclarationFlags.Optional; properties[propertyDeclaration.name] = dom.create.property( propertyDeclaration.name, - dom.type.array(dom.create.union([oldProeprtyType, propertyType])), + { + kind: "name", + name: "LdSet", + typeArguments: [dom.create.union([oldPropertyType, propertyType])], + }, isOptional ? dom.DeclarationFlags.Optional : dom.DeclarationFlags.None, ); // Set JS Comment @@ -42,3 +40,12 @@ export function dedupeObjectTypeMembers( }); return Object.values(properties); } + +function isLdSetType( + potentialLdSet: dom.Type, +): potentialLdSet is dom.NamedTypeReference { + return ( + (potentialLdSet as dom.NamedTypeReference).kind === "name" && + (potentialLdSet as dom.NamedTypeReference).name === "LdSet" + ); +} diff --git a/packages/schema-converter-shex/test/testData/activityPub.ts b/packages/schema-converter-shex/test/testData/activityPub.ts index 08cd63e..7c270c5 100644 --- a/packages/schema-converter-shex/test/testData/activityPub.ts +++ b/packages/schema-converter-shex/test/testData/activityPub.ts @@ -9419,5 +9419,5 @@ export const activityPub: TestData = { }, }, successfulTypings: - 'import {ContextDefinition} from "jsonld"\n\nexport interface ActivityPubObject {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection.\n */\n type: {\n "@id": "Object";\n };\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Link {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * A Link is an indirect, qualified reference to a resource identified by a URL. The fundamental model for links is established by [ RFC5988]. Many of the properties defined by the Activity Vocabulary allow values that are either instances of Object or Link. When a Link is used, it establishes a qualified relation connecting the subject (the containing object) to the resource identified by the href. Properties of the Link are properties of the reference as opposed to properties of the resource.\n */\n type: {\n "@id": "Link";\n };\n /**\n * The target resource pointed to by a Link.\n */\n href?: string;\n /**\n * A link relation associated with a Link. The value MUST conform to both the [HTML5] and [RFC5988] "link relation" definitions. In the [HTML5], any string not containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A), "FF" (U+000C), "CR" (U+000D) or "," (U+002C) characters can be used as a valid link relation.\n */\n rel?: string[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n name?: (string | string)[];\n /**\n * Hints as to the language used by the target resource. Value MUST be a [BCP47] Language-Tag.\n */\n hreflang?: string;\n /**\n * On a Link, specifies a hint as to the rendering height in device-independent pixels of the linked resource.\n */\n height?: number;\n /**\n * On a Link, specifies a hint as to the rendering width in device-independent pixels of the linked resource.\n */\n width?: number;\n preview?: (ActivityPubObject | Link)[];\n}\n\nexport interface Activity {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface InstransitiveActivity {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "IntransitiveActivity";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Collection {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances. Refer to the Activity Streams 2.0 Core specification for a complete description of the Collection type. \n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Collection";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * A non-negative integer specifying the total number of objects contained by the logical view of the collection. This number might not reflect the actual number of items serialized within the Collection object instance.\n */\n totalItems?: number;\n items?: (ActivityPubObject | Link)[];\n}\n\nexport interface OrderedCollection {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances. Refer to the Activity Streams 2.0 Core specification for a complete description of the Collection type. | A subtype of Collection in which members of the logical collection are assumed to always be strictly ordered.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Collection";\n } | {\n "@id": "OrderedCollection";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * A non-negative integer specifying the total number of objects contained by the logical view of the collection. This number might not reflect the actual number of items serialized within the Collection object instance.\n */\n totalItems?: number;\n items?: (ActivityPubObject | Link)[];\n}\n\nexport interface CollectionPage {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances. Refer to the Activity Streams 2.0 Core specification for a complete description of the Collection type. | Used to represent distinct subsets of items from a Collection. Refer to the Activity Streams 2.0 Core for a complete description of the CollectionPage object.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Collection";\n } | {\n "@id": "CollectionPage";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * A non-negative integer specifying the total number of objects contained by the logical view of the collection. This number might not reflect the actual number of items serialized within the Collection object instance.\n */\n totalItems?: number;\n items?: (ActivityPubObject | Link)[];\n}\n\nexport interface OrderedCollectionPage {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances. Refer to the Activity Streams 2.0 Core specification for a complete description of the Collection type. | A subtype of Collection in which members of the logical collection are assumed to always be strictly ordered. | Used to represent ordered subsets of items from an OrderedCollection. Refer to the Activity Streams 2.0 Core for a complete description of the OrderedCollectionPage object.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Collection";\n } | {\n "@id": "OrderedCollection";\n } | {\n "@id": "OrderedCollectionPage";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * A non-negative integer specifying the total number of objects contained by the logical view of the collection. This number might not reflect the actual number of items serialized within the Collection object instance.\n */\n totalItems?: number;\n items?: (ActivityPubObject | Link)[];\n /**\n * A non-negative integer value identifying the relative position within the logical view of a strictly ordered collection.\n */\n startIndex?: number;\n}\n\nexport interface Accept {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor accepts the object. The target property can be used in certain circumstances to indicate the context into which the object has been accepted.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Accept";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface TentativeAccept {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor accepts the object. The target property can be used in certain circumstances to indicate the context into which the object has been accepted. | A specialization of Accept indicating that the acceptance is tentative.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Accept";\n } | {\n "@id": "TentativeAccept";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Add {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has added the object to the target. If the target property is not explicitly specified, the target would need to be determined implicitly by context. The origin can be used to identify the context from which the object originated. \n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Add";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Arrive {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities. | An IntransitiveActivity that indicates that the actor has arrived at the location. The origin can be used to identify the context from which the actor originated. The target typically has no defined meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "IntransitiveActivity";\n } | {\n "@id": "Arrive";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Create {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has created the object.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Create";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Delete {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has deleted the object. If specified, the origin indicates the context from which the object was deleted.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Delete";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Follow {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is "following" the object. Following is defined in the sense typically used within Social systems in which the actor is interested in any activity performed by or on the object. The target and origin typically have no defined meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Follow";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Ignore {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is ignoring the object. The target and origin typically have no defined meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Ignore";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Join {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has joined the object. The target and origin typically have no defined meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Join";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Leave {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has left the object. The target and origin typically have no meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Leave";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Like {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor likes, recommends or endorses the object. The target and origin typically have no defined meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Like";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Offer {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is offering the object. If specified, the target indicates the entity to which the object is being offered.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Offer";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Invite {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is offering the object. If specified, the target indicates the entity to which the object is being offered. | A specialization of Offer in which the actor is extending an invitation for the object to the target.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Offer";\n } | {\n "@id": "Invite";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Reject {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is rejecting the object. The target and origin typically have no defined meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Reject";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface TentativeReject {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is rejecting the object. The target and origin typically have no defined meaning. | A specialization of Reject in which the rejection is considered tentative.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Reject";\n } | {\n "@id": "TentativeReject";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Remove {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is removing the object. If specified, the origin indicates the context from which the object is being removed.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Remove";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Undo {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is undoing the object. In most cases, the object will be an Activity describing some previously performed action (for instance, a person may have previously "liked" an article but, for whatever reason, might choose to undo that like at some later point in time). The target and origin typically have no defined meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Undo";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Update {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has updated the object. Note, however, that this vocabulary does not define a mechanism for describing the actual set of modifications made to object. The target and origin typically have no defined meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Update";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface View {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has viewed the object.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "View";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Listen {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has listened to the object.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Listen";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Read {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has read the object.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Read";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Move {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has moved object from origin to target. If the origin or target are not specified, either can be determined by context.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Move";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Travel {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities. | Indicates that the actor is traveling to target from origin. Travel is an IntransitiveObject whose actor specifies the direct object. If the target or origin are not specified, either can be determined by context.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "IntransitiveActivity";\n } | {\n "@id": "Travel";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Announce {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is calling the target\'s attention the object. The origin typically has no defined meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Announce";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Block {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is ignoring the object. The target and origin typically have no defined meaning. | Indicates that the actor is blocking the object. Blocking is a stronger form of Ignore. The typical use is to support social systems that allow one user to block activities or content of other users. The target and origin typically have no defined meaning.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Ignore";\n } | {\n "@id": "Block";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Flag {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is "flagging" the object. Flagging is defined in the sense common to many social platforms as reporting content as being inappropriate for any number of reasons.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Flag";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Dislike {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor dislikes the object.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Dislike";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n}\n\nexport interface Question {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities. | Represents a question being asked. Question objects are an extension of IntransitiveActivity. That is, the Question object is an Activity, but the direct object is the question itself and therefore it would not contain an object property. Either of the anyOf and oneOf properties MAY be used to express possible answers, but a Question object MUST NOT have both properties. \n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "IntransitiveActivity";\n } | {\n "@id": "Question";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: (ActivityPubObject | Link)[];\n object?: (ActivityPubObject | Link)[];\n target?: (ActivityPubObject | Link)[];\n result?: (ActivityPubObject | Link)[];\n origin?: (ActivityPubObject | Link)[];\n instrument?: (ActivityPubObject | Link)[];\n closed?: (ActivityPubObject | Link | string | boolean)[];\n}\n\nexport interface Application {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Describes a software application.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Application";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Group {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a formal or informal collective of Actors.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Group";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Organization {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents an organization.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Organization";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Person {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents an individual person.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Person";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Service {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a service of any kind.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Service";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Relationship {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Describes a relationship between two individuals. The subject and object properties are used to identify the connected individuals. See 5.2 Representing Relationships Between Entities for additional information. \n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Relationship";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * On a Relationship object, the relationship property identifies the kind of relationship that exists between subject and object.\n */\n relationship?: (ActivityPubObject)[];\n}\n\nexport interface Article {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents any kind of multi-paragraph written work.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Article";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Document {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a document of any kind.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Document";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Audio {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a document of any kind. | Represents an audio document of any kind.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Document";\n } | {\n "@id": "Audio";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Image {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a document of any kind. | An image document of any kind\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Document";\n } | {\n "@id": "Image";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Video {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a document of any kind. | Represents a video document of any kind. \n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Document";\n } | {\n "@id": "Video";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Note {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a short written work typically less than a single paragraph in length.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Note";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Page {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a document of any kind. | Represents a Web Page.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Document";\n } | {\n "@id": "Page";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Event {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents any kind of event.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Event";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Place {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a logical or physical location. See 5.3 Representing Places for additional information.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Place";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * Indicates the accuracy of position coordinates on a Place objects. Expressed in properties of percentage. e.g. "94.0" means "94.0% accurate".\n */\n accuracy?: string;\n /**\n * Indicates the altitude of a place. The measurement units is indicated using the units property. If units is not specified, the default is assumed to be "m" indicating meters. \n */\n altitude?: string;\n /**\n * The latitude of a place | The longitude of a place\n */\n latitude?: (string | string)[];\n /**\n * The radius from the given latitude and longitude for a Place. The units is expressed by the units property. If units is not specified, the default is assumed to be "m" indicating "meters".\n */\n radius?: string;\n}\n\nexport interface Mention {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * A Link is an indirect, qualified reference to a resource identified by a URL. The fundamental model for links is established by [ RFC5988]. Many of the properties defined by the Activity Vocabulary allow values that are either instances of Object or Link. When a Link is used, it establishes a qualified relation connecting the subject (the containing object) to the resource identified by the href. Properties of the Link are properties of the reference as opposed to properties of the resource. | A specialized Link that represents an @mention.\n */\n type: ({\n "@id": "Link";\n } | {\n "@id": "Mention";\n })[];\n /**\n * The target resource pointed to by a Link.\n */\n href?: string;\n /**\n * A link relation associated with a Link. The value MUST conform to both the [HTML5] and [RFC5988] "link relation" definitions. In the [HTML5], any string not containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A), "FF" (U+000C), "CR" (U+000D) or "," (U+002C) characters can be used as a valid link relation.\n */\n rel?: string[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n name?: (string | string)[];\n /**\n * Hints as to the language used by the target resource. Value MUST be a [BCP47] Language-Tag.\n */\n hreflang?: string;\n /**\n * On a Link, specifies a hint as to the rendering height in device-independent pixels of the linked resource.\n */\n height?: number;\n /**\n * On a Link, specifies a hint as to the rendering width in device-independent pixels of the linked resource.\n */\n width?: number;\n preview?: (ActivityPubObject | Link)[];\n}\n\nexport interface Profile {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Profile is a content object that describes another Object, typically used to describe Actor Type objects. The describes property is used to reference the object being described by the profile.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Profile";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * On a Profile object, the describes property identifies the object described by the Profile.\n */\n describes?: ActivityPubObject;\n}\n\nexport interface Tombstone {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Tombstone represents a content object that has been deleted. It can be used in Collections to signify that there used to be an object at this position, but it has been deleted.\n */\n type: ({\n "@id": "Object";\n } | {\n "@id": "Tombstone";\n })[];\n attachment?: (ActivityPubObject | Link)[];\n attributedTo?: (ActivityPubObject | Link)[];\n audience?: (ActivityPubObject | Link)[];\n content?: (string | string)[];\n context?: (ActivityPubObject | Link)[];\n name?: (string | string)[];\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: (ActivityPubObject | Link)[];\n icon?: (Image | Link)[];\n image?: (Image | Link)[];\n inReplyTo?: (ActivityPubObject | Link)[];\n location?: (ActivityPubObject | Link)[];\n preview?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: (string | string)[];\n tag?: (ActivityPubObject | Link)[];\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: (string | Link)[];\n to?: (ActivityPubObject | Link)[];\n bto?: (ActivityPubObject | Link)[];\n cc?: (ActivityPubObject | Link)[];\n bcc?: (ActivityPubObject | Link)[];\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * On a Tombstone object, the formerType property identifies the type of the object that was deleted.\n */\n formerType?: (ActivityPubObject)[];\n /**\n * On a Tombstone object, the deleted property is a timestamp for when the object was deleted.\n */\n deleted?: string;\n}\n\n', + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface ActivityPubObject {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection.\n */\n type: {\n "@id": "Object";\n };\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Link {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * A Link is an indirect, qualified reference to a resource identified by a URL. The fundamental model for links is established by [ RFC5988]. Many of the properties defined by the Activity Vocabulary allow values that are either instances of Object or Link. When a Link is used, it establishes a qualified relation connecting the subject (the containing object) to the resource identified by the href. Properties of the Link are properties of the reference as opposed to properties of the resource.\n */\n type: {\n "@id": "Link";\n };\n /**\n * The target resource pointed to by a Link.\n */\n href?: string;\n /**\n * A link relation associated with a Link. The value MUST conform to both the [HTML5] and [RFC5988] "link relation" definitions. In the [HTML5], any string not containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A), "FF" (U+000C), "CR" (U+000D) or "," (U+002C) characters can be used as a valid link relation.\n */\n rel?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n name?: LdSet;\n /**\n * Hints as to the language used by the target resource. Value MUST be a [BCP47] Language-Tag.\n */\n hreflang?: string;\n /**\n * On a Link, specifies a hint as to the rendering height in device-independent pixels of the linked resource.\n */\n height?: number;\n /**\n * On a Link, specifies a hint as to the rendering width in device-independent pixels of the linked resource.\n */\n width?: number;\n preview?: LdSet;\n}\n\nexport interface Activity {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface InstransitiveActivity {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "IntransitiveActivity";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Collection {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances. Refer to the Activity Streams 2.0 Core specification for a complete description of the Collection type. \n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Collection";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * A non-negative integer specifying the total number of objects contained by the logical view of the collection. This number might not reflect the actual number of items serialized within the Collection object instance.\n */\n totalItems?: number;\n items?: LdSet;\n}\n\nexport interface OrderedCollection {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances. Refer to the Activity Streams 2.0 Core specification for a complete description of the Collection type. | A subtype of Collection in which members of the logical collection are assumed to always be strictly ordered.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Collection";\n } | {\n "@id": "OrderedCollection";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * A non-negative integer specifying the total number of objects contained by the logical view of the collection. This number might not reflect the actual number of items serialized within the Collection object instance.\n */\n totalItems?: number;\n items?: LdSet;\n}\n\nexport interface CollectionPage {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances. Refer to the Activity Streams 2.0 Core specification for a complete description of the Collection type. | Used to represent distinct subsets of items from a Collection. Refer to the Activity Streams 2.0 Core for a complete description of the CollectionPage object.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Collection";\n } | {\n "@id": "CollectionPage";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * A non-negative integer specifying the total number of objects contained by the logical view of the collection. This number might not reflect the actual number of items serialized within the Collection object instance.\n */\n totalItems?: number;\n items?: LdSet;\n}\n\nexport interface OrderedCollectionPage {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances. Refer to the Activity Streams 2.0 Core specification for a complete description of the Collection type. | A subtype of Collection in which members of the logical collection are assumed to always be strictly ordered. | Used to represent ordered subsets of items from an OrderedCollection. Refer to the Activity Streams 2.0 Core for a complete description of the OrderedCollectionPage object.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Collection";\n } | {\n "@id": "OrderedCollection";\n } | {\n "@id": "OrderedCollectionPage";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * A non-negative integer specifying the total number of objects contained by the logical view of the collection. This number might not reflect the actual number of items serialized within the Collection object instance.\n */\n totalItems?: number;\n items?: LdSet;\n /**\n * A non-negative integer value identifying the relative position within the logical view of a strictly ordered collection.\n */\n startIndex?: number;\n}\n\nexport interface Accept {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor accepts the object. The target property can be used in certain circumstances to indicate the context into which the object has been accepted.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Accept";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface TentativeAccept {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor accepts the object. The target property can be used in certain circumstances to indicate the context into which the object has been accepted. | A specialization of Accept indicating that the acceptance is tentative.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Accept";\n } | {\n "@id": "TentativeAccept";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Add {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has added the object to the target. If the target property is not explicitly specified, the target would need to be determined implicitly by context. The origin can be used to identify the context from which the object originated. \n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Add";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Arrive {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities. | An IntransitiveActivity that indicates that the actor has arrived at the location. The origin can be used to identify the context from which the actor originated. The target typically has no defined meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "IntransitiveActivity";\n } | {\n "@id": "Arrive";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Create {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has created the object.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Create";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Delete {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has deleted the object. If specified, the origin indicates the context from which the object was deleted.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Delete";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Follow {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is "following" the object. Following is defined in the sense typically used within Social systems in which the actor is interested in any activity performed by or on the object. The target and origin typically have no defined meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Follow";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Ignore {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is ignoring the object. The target and origin typically have no defined meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Ignore";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Join {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has joined the object. The target and origin typically have no defined meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Join";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Leave {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has left the object. The target and origin typically have no meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Leave";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Like {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor likes, recommends or endorses the object. The target and origin typically have no defined meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Like";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Offer {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is offering the object. If specified, the target indicates the entity to which the object is being offered.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Offer";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Invite {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is offering the object. If specified, the target indicates the entity to which the object is being offered. | A specialization of Offer in which the actor is extending an invitation for the object to the target.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Offer";\n } | {\n "@id": "Invite";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Reject {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is rejecting the object. The target and origin typically have no defined meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Reject";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface TentativeReject {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is rejecting the object. The target and origin typically have no defined meaning. | A specialization of Reject in which the rejection is considered tentative.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Reject";\n } | {\n "@id": "TentativeReject";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Remove {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is removing the object. If specified, the origin indicates the context from which the object is being removed.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Remove";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Undo {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is undoing the object. In most cases, the object will be an Activity describing some previously performed action (for instance, a person may have previously "liked" an article but, for whatever reason, might choose to undo that like at some later point in time). The target and origin typically have no defined meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Undo";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Update {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has updated the object. Note, however, that this vocabulary does not define a mechanism for describing the actual set of modifications made to object. The target and origin typically have no defined meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Update";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface View {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has viewed the object.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "View";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Listen {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has listened to the object.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Listen";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Read {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has read the object.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Read";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Move {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor has moved object from origin to target. If the origin or target are not specified, either can be determined by context.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Move";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Travel {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities. | Indicates that the actor is traveling to target from origin. Travel is an IntransitiveObject whose actor specifies the direct object. If the target or origin are not specified, either can be determined by context.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "IntransitiveActivity";\n } | {\n "@id": "Travel";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Announce {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is calling the target\'s attention the object. The origin typically has no defined meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Announce";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Block {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is ignoring the object. The target and origin typically have no defined meaning. | Indicates that the actor is blocking the object. Blocking is a stronger form of Ignore. The typical use is to support social systems that allow one user to block activities or content of other users. The target and origin typically have no defined meaning.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Ignore";\n } | {\n "@id": "Block";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Flag {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor is "flagging" the object. Flagging is defined in the sense common to many social platforms as reporting content as being inappropriate for any number of reasons.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Flag";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Dislike {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Indicates that the actor dislikes the object.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "Dislike";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n}\n\nexport interface Question {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. | Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities. | Represents a question being asked. Question objects are an extension of IntransitiveActivity. That is, the Question object is an Activity, but the direct object is the question itself and therefore it would not contain an object property. Either of the anyOf and oneOf properties MAY be used to express possible answers, but a Question object MUST NOT have both properties. \n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Activity";\n } | {\n "@id": "IntransitiveActivity";\n } | {\n "@id": "Question";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n actor?: LdSet;\n object?: LdSet;\n target?: LdSet;\n result?: LdSet;\n origin?: LdSet;\n instrument?: LdSet;\n closed?: LdSet;\n}\n\nexport interface Application {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Describes a software application.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Application";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Group {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a formal or informal collective of Actors.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Group";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Organization {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents an organization.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Organization";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Person {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents an individual person.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Person";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Service {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a service of any kind.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Service";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Relationship {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Describes a relationship between two individuals. The subject and object properties are used to identify the connected individuals. See 5.2 Representing Relationships Between Entities for additional information. \n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Relationship";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * On a Relationship object, the relationship property identifies the kind of relationship that exists between subject and object.\n */\n relationship?: LdSet;\n}\n\nexport interface Article {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents any kind of multi-paragraph written work.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Article";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Document {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a document of any kind.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Document";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Audio {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a document of any kind. | Represents an audio document of any kind.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Document";\n } | {\n "@id": "Audio";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Image {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a document of any kind. | An image document of any kind\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Document";\n } | {\n "@id": "Image";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Video {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a document of any kind. | Represents a video document of any kind. \n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Document";\n } | {\n "@id": "Video";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Note {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a short written work typically less than a single paragraph in length.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Note";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Page {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a document of any kind. | Represents a Web Page.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Document";\n } | {\n "@id": "Page";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Event {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents any kind of event.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Event";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n}\n\nexport interface Place {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | Represents a logical or physical location. See 5.3 Representing Places for additional information.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Place";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * Indicates the accuracy of position coordinates on a Place objects. Expressed in properties of percentage. e.g. "94.0" means "94.0% accurate".\n */\n accuracy?: string;\n /**\n * Indicates the altitude of a place. The measurement units is indicated using the units property. If units is not specified, the default is assumed to be "m" indicating meters. \n */\n altitude?: string;\n /**\n * The latitude of a place | The longitude of a place\n */\n latitude?: LdSet;\n /**\n * The radius from the given latitude and longitude for a Place. The units is expressed by the units property. If units is not specified, the default is assumed to be "m" indicating "meters".\n */\n radius?: string;\n}\n\nexport interface Mention {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * A Link is an indirect, qualified reference to a resource identified by a URL. The fundamental model for links is established by [ RFC5988]. Many of the properties defined by the Activity Vocabulary allow values that are either instances of Object or Link. When a Link is used, it establishes a qualified relation connecting the subject (the containing object) to the resource identified by the href. Properties of the Link are properties of the reference as opposed to properties of the resource. | A specialized Link that represents an @mention.\n */\n type: LdSet<{\n "@id": "Link";\n } | {\n "@id": "Mention";\n }>;\n /**\n * The target resource pointed to by a Link.\n */\n href?: string;\n /**\n * A link relation associated with a Link. The value MUST conform to both the [HTML5] and [RFC5988] "link relation" definitions. In the [HTML5], any string not containing the "space" U+0020, "tab" (U+0009), "LF" (U+000A), "FF" (U+000C), "CR" (U+000D) or "," (U+002C) characters can be used as a valid link relation.\n */\n rel?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n name?: LdSet;\n /**\n * Hints as to the language used by the target resource. Value MUST be a [BCP47] Language-Tag.\n */\n hreflang?: string;\n /**\n * On a Link, specifies a hint as to the rendering height in device-independent pixels of the linked resource.\n */\n height?: number;\n /**\n * On a Link, specifies a hint as to the rendering width in device-independent pixels of the linked resource.\n */\n width?: number;\n preview?: LdSet;\n}\n\nexport interface Profile {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Profile is a content object that describes another Object, typically used to describe Actor Type objects. The describes property is used to reference the object being described by the profile.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Profile";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * On a Profile object, the describes property identifies the object described by the Profile.\n */\n describes?: ActivityPubObject;\n}\n\nexport interface Tombstone {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. | A Tombstone represents a content object that has been deleted. It can be used in Collections to signify that there used to be an object at this position, but it has been deleted.\n */\n type: LdSet<{\n "@id": "Object";\n } | {\n "@id": "Tombstone";\n }>;\n attachment?: LdSet;\n attributedTo?: LdSet;\n audience?: LdSet;\n content?: LdSet;\n context?: LdSet;\n name?: LdSet;\n /**\n * The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude.\n */\n endTime?: string;\n generator?: LdSet;\n icon?: LdSet;\n image?: LdSet;\n inReplyTo?: LdSet;\n location?: LdSet;\n preview?: LdSet;\n /**\n * The date and time at which the object was published\n */\n published?: string;\n /**\n * Identifies a Collection containing objects considered to be responses to this object.\n */\n replies?: Collection;\n /**\n * The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin.\n */\n startTime?: string;\n summary?: LdSet;\n tag?: LdSet;\n /**\n * The date and time at which the object was updated\n */\n updated?: string;\n url?: LdSet;\n to?: LdSet;\n bto?: LdSet;\n cc?: LdSet;\n bcc?: LdSet;\n /**\n * When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content.\n */\n mediaType?: string;\n /**\n * When the object describes a time-bound resource, such as an audio or video, a meeting, etc, the duration property indicates the object\'s approximate duration. The value MUST be expressed as an xsd:duration as defined by [ xmlschema11-2], section 3.3.6 (e.g. a period of 5 seconds is represented as "PT5S").\n */\n duration?: string;\n /**\n * On a Tombstone object, the formerType property identifies the type of the object that was deleted.\n */\n formerType?: LdSet;\n /**\n * On a Tombstone object, the deleted property is a timestamp for when the object was deleted.\n */\n deleted?: string;\n}\n\n', }; diff --git a/packages/schema-converter-shex/test/testData/andSimple.ts b/packages/schema-converter-shex/test/testData/andSimple.ts index 54010cf..dc71c26 100644 --- a/packages/schema-converter-shex/test/testData/andSimple.ts +++ b/packages/schema-converter-shex/test/testData/andSimple.ts @@ -43,5 +43,5 @@ export const andSimple: TestData = { Image: "https://example.com/Image", }, successfulTypings: - 'import {ContextDefinition} from "jsonld"\n\nexport interface MediaContainerShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "MediaContainer";\n };\n videoImage: VideoShape & ImageShape;\n}\n\nexport interface VideoShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Video";\n };\n}\n\nexport interface ImageShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Image";\n };\n}\n\n', + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface MediaContainerShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "MediaContainer";\n };\n videoImage: VideoShape & ImageShape;\n}\n\nexport interface VideoShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Video";\n };\n}\n\nexport interface ImageShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Image";\n };\n}\n\n', }; diff --git a/packages/schema-converter-shex/test/testData/circular.ts b/packages/schema-converter-shex/test/testData/circular.ts index fdcd45e..c0ffc92 100644 --- a/packages/schema-converter-shex/test/testData/circular.ts +++ b/packages/schema-converter-shex/test/testData/circular.ts @@ -47,5 +47,5 @@ export const circular: TestData = { }, }, successfulTypings: - 'import {ContextDefinition} from "jsonld"\n\nexport interface ParentShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type?: {\n "@id": "Parent";\n };\n hasChild: ChildShape;\n}\n\nexport interface ChildShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type?: {\n "@id": "Child";\n };\n hasParent: ParentShape;\n}\n\n', + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface ParentShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type?: {\n "@id": "Parent";\n };\n hasChild: ChildShape;\n}\n\nexport interface ChildShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type?: {\n "@id": "Child";\n };\n hasParent: ParentShape;\n}\n\n', }; diff --git a/packages/schema-converter-shex/test/testData/eachOfAndSimple.ts b/packages/schema-converter-shex/test/testData/eachOfAndSimple.ts new file mode 100644 index 0000000..07fe6ba --- /dev/null +++ b/packages/schema-converter-shex/test/testData/eachOfAndSimple.ts @@ -0,0 +1,49 @@ +import type { TestData } from "./testData"; + +/** + * EACH OF AND SIMPLE + */ +export const eachOfAndSimple: TestData = { + name: "eachOfAndSimple", + shexc: ` + PREFIX ex: + + ex:MediaContainerShape { + a [ ex:MediaContainer ]; + ex:videoImage @ex:VideoShape * ; + ex:videoImage @ex:ImageShape * ; + } + + ex:VideoShape { + a [ ex:Video ]; + } + + ex:ImageShape { + a [ ex:Image ]; + } + `, + sampleTurtle: "", + baseNode: "", + successfulContext: { + MediaContainer: { + "@id": "https://example.com/MediaContainer", + "@context": { + type: { + "@id": "@type", + }, + videoImage: { + "@id": "https://example.com/videoImage", + "@type": "@id", + "@isCollection": true, + }, + }, + }, + type: { + "@id": "@type", + }, + Video: "https://example.com/Video", + Image: "https://example.com/Image", + }, + successfulTypings: + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface MediaContainerShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "MediaContainer";\n };\n videoImage?: LdSet;\n}\n\nexport interface VideoShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Video";\n };\n}\n\nexport interface ImageShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Image";\n };\n}\n\n', +}; diff --git a/packages/schema-converter-shex/test/testData/extendsSimple.ts b/packages/schema-converter-shex/test/testData/extendsSimple.ts index 1ba79a5..6a562ca 100644 --- a/packages/schema-converter-shex/test/testData/extendsSimple.ts +++ b/packages/schema-converter-shex/test/testData/extendsSimple.ts @@ -69,5 +69,5 @@ export const extendsSimple: TestData = { }, }, successfulTypings: - 'import {ContextDefinition} from "jsonld"\n\nexport interface EntityShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Entity";\n };\n entityId: any;\n}\n\nexport interface PersonShape {\n "@id"?: (string | string)[];\n "@context"?: (ContextDefinition | ContextDefinition)[];\n type: ({\n "@id": "Entity";\n } | {\n "@id": "Person";\n })[];\n entityId: any;\n name: any;\n}\n\nexport interface EmployeeShape {\n "@id"?: (string | string | string)[];\n "@context"?: (ContextDefinition | ContextDefinition | ContextDefinition)[];\n type: ({\n "@id": "Entity";\n } | {\n "@id": "Person";\n } | {\n "@id": "Employee";\n })[];\n entityId: any;\n name: any;\n employeeNumber: any;\n}\n\n', + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface EntityShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Entity";\n };\n entityId: any;\n}\n\nexport interface PersonShape {\n "@id"?: LdSet;\n "@context"?: LdSet;\n type: LdSet<{\n "@id": "Entity";\n } | {\n "@id": "Person";\n }>;\n entityId: any;\n name: any;\n}\n\nexport interface EmployeeShape {\n "@id"?: LdSet;\n "@context"?: LdSet;\n type: LdSet<{\n "@id": "Entity";\n } | {\n "@id": "Person";\n } | {\n "@id": "Employee";\n }>;\n entityId: any;\n name: any;\n employeeNumber: any;\n}\n\n', }; diff --git a/packages/schema-converter-shex/test/testData/oldExtends.ts b/packages/schema-converter-shex/test/testData/oldExtends.ts index 5ad7b53..544eaf6 100644 --- a/packages/schema-converter-shex/test/testData/oldExtends.ts +++ b/packages/schema-converter-shex/test/testData/oldExtends.ts @@ -74,5 +74,5 @@ export const oldExtends: TestData = { }, }, successfulTypings: - 'import {ContextDefinition} from "jsonld"\n\nexport interface EntityShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Entity";\n };\n entityId: any;\n}\n\nexport interface PersonShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: ({\n "@id": "Entity";\n } | {\n "@id": "Person";\n })[];\n entityId: any;\n name: any;\n}\n\nexport interface EmployeeShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: ({\n "@id": "Entity";\n } | {\n "@id": "Person";\n } | {\n "@id": "Employee";\n })[];\n entityId: any;\n name: any;\n employeeNumber: any;\n}\n\n', + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface EntityShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Entity";\n };\n entityId: any;\n}\n\nexport interface PersonShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: LdSet<{\n "@id": "Entity";\n } | {\n "@id": "Person";\n }>;\n entityId: any;\n name: any;\n}\n\nexport interface EmployeeShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: LdSet<{\n "@id": "Entity";\n } | {\n "@id": "Person";\n } | {\n "@id": "Employee";\n }>;\n entityId: any;\n name: any;\n employeeNumber: any;\n}\n\n', }; diff --git a/packages/schema-converter-shex/test/testData/orSimple.ts b/packages/schema-converter-shex/test/testData/orSimple.ts index b23ac84..c46b291 100644 --- a/packages/schema-converter-shex/test/testData/orSimple.ts +++ b/packages/schema-converter-shex/test/testData/orSimple.ts @@ -49,5 +49,5 @@ export const orSimple: TestData = { Image: "https://example.com/Image", }, successfulTypings: - 'import {ContextDefinition} from "jsonld"\n\nexport interface MediaContainerShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "MediaContainer";\n };\n primaryMedia: VideoShape | ImageShape;\n media?: (VideoShape | ImageShape)[];\n}\n\nexport interface VideoShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Video";\n };\n}\n\nexport interface ImageShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Image";\n };\n}\n\n', + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface MediaContainerShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "MediaContainer";\n };\n primaryMedia: VideoShape | ImageShape;\n media?: LdSet;\n}\n\nexport interface VideoShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Video";\n };\n}\n\nexport interface ImageShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Image";\n };\n}\n\n', }; diff --git a/packages/schema-converter-shex/test/testData/profile.ts b/packages/schema-converter-shex/test/testData/profile.ts index 05c427c..09dd5b4 100644 --- a/packages/schema-converter-shex/test/testData/profile.ts +++ b/packages/schema-converter-shex/test/testData/profile.ts @@ -726,5 +726,5 @@ srs:RSAPublicKeyShape { }, }, successfulTypings: - 'import {ContextDefinition} from "jsonld"\n\nexport interface SolidProfileShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Defines the node as a Person (from Schema.org) | Defines the node as a Person (from foaf)\n */\n type: ({\n "@id": "Person";\n } | {\n "@id": "Person2";\n })[];\n /**\n * The formatted name of a person. Example: John Smith\n */\n fn?: string;\n /**\n * An alternate way to define a person\'s name.\n */\n name?: string;\n /**\n * The person\'s street address.\n */\n hasAddress?: (AddressShape)[];\n /**\n * The person\'s email.\n */\n hasEmail?: (EmailShape)[];\n /**\n * A link to the person\'s photo\n */\n hasPhoto?: {\n "@id": string;\n };\n /**\n * Photo link but in string form\n */\n img?: string;\n /**\n * Person\'s telephone number\n */\n hasTelephone?: (PhoneNumberShape)[];\n /**\n * An alternative way to define a person\'s telephone number using a string\n */\n phone?: string;\n /**\n * The name of the organization with which the person is affiliated\n */\n organizationName?: string;\n /**\n * The name of the person\'s role in their organization\n */\n role?: string;\n /**\n * A list of app origins that are trusted by this user\n */\n trustedApp?: (TrustedAppShape)[];\n /**\n * A list of RSA public keys that are associated with private keys the user holds.\n */\n key?: (RSAPublicKeyShape)[];\n /**\n * The user\'s LDP inbox to which apps can post notifications\n */\n inbox: {\n "@id": string;\n };\n /**\n * The user\'s preferences\n */\n preferencesFile?: {\n "@id": string;\n };\n /**\n * The location of a Solid storage server related to this WebId\n */\n storage?: {\n "@id": string;\n }[];\n /**\n * The user\'s account\n */\n account?: {\n "@id": string;\n };\n /**\n * A registry of all types used on the user\'s Pod (for private access only)\n */\n privateTypeIndex?: {\n "@id": string;\n }[];\n /**\n * A registry of all types used on the user\'s Pod (for public access)\n */\n publicTypeIndex?: {\n "@id": string;\n }[];\n /**\n * A list of WebIds for all the people this user knows.\n */\n knows?: {\n "@id": string;\n }[];\n}\n\nexport interface AddressShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * The name of the user\'s country of residence\n */\n countryName?: string;\n /**\n * The name of the user\'s locality (City, Town etc.) of residence\n */\n locality?: string;\n /**\n * The user\'s postal code\n */\n postalCode?: string;\n /**\n * The name of the user\'s region (State, Province etc.) of residence\n */\n region?: string;\n /**\n * The user\'s street address\n */\n streetAddress?: string;\n}\n\nexport interface EmailShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * The type of email.\n */\n type?: {\n "@id": "Dom";\n } | {\n "@id": "Home";\n } | {\n "@id": "ISDN";\n } | {\n "@id": "Internet";\n } | {\n "@id": "Intl";\n } | {\n "@id": "Label";\n } | {\n "@id": "Parcel";\n } | {\n "@id": "Postal";\n } | {\n "@id": "Pref";\n } | {\n "@id": "Work";\n } | {\n "@id": "X400";\n };\n /**\n * The value of an email as a mailto link (Example )\n */\n value: {\n "@id": string;\n };\n}\n\nexport interface PhoneNumberShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * They type of Phone Number\n */\n type?: {\n "@id": "Dom";\n } | {\n "@id": "Home";\n } | {\n "@id": "ISDN";\n } | {\n "@id": "Internet";\n } | {\n "@id": "Intl";\n } | {\n "@id": "Label";\n } | {\n "@id": "Parcel";\n } | {\n "@id": "Postal";\n } | {\n "@id": "Pref";\n } | {\n "@id": "Work";\n } | {\n "@id": "X400";\n };\n /**\n * The value of a phone number as a tel link (Example )\n */\n value: {\n "@id": string;\n };\n}\n\nexport interface TrustedAppShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * The level of access provided to this origin\n */\n mode: ({\n "@id": "Append";\n } | {\n "@id": "Control";\n } | {\n "@id": "Read";\n } | {\n "@id": "Write";\n })[];\n /**\n * The app origin the user trusts\n */\n origin: {\n "@id": string;\n };\n}\n\nexport interface RSAPublicKeyShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * RSA Modulus\n */\n modulus: string;\n /**\n * RSA Exponent\n */\n exponent: number;\n}\n\n', + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface SolidProfileShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Defines the node as a Person (from Schema.org) | Defines the node as a Person (from foaf)\n */\n type: LdSet<{\n "@id": "Person";\n } | {\n "@id": "Person2";\n }>;\n /**\n * The formatted name of a person. Example: John Smith\n */\n fn?: string;\n /**\n * An alternate way to define a person\'s name.\n */\n name?: string;\n /**\n * The person\'s street address.\n */\n hasAddress?: LdSet;\n /**\n * The person\'s email.\n */\n hasEmail?: LdSet;\n /**\n * A link to the person\'s photo\n */\n hasPhoto?: {\n "@id": string;\n };\n /**\n * Photo link but in string form\n */\n img?: string;\n /**\n * Person\'s telephone number\n */\n hasTelephone?: LdSet;\n /**\n * An alternative way to define a person\'s telephone number using a string\n */\n phone?: string;\n /**\n * The name of the organization with which the person is affiliated\n */\n organizationName?: string;\n /**\n * The name of the person\'s role in their organization\n */\n role?: string;\n /**\n * A list of app origins that are trusted by this user\n */\n trustedApp?: LdSet;\n /**\n * A list of RSA public keys that are associated with private keys the user holds.\n */\n key?: LdSet;\n /**\n * The user\'s LDP inbox to which apps can post notifications\n */\n inbox: {\n "@id": string;\n };\n /**\n * The user\'s preferences\n */\n preferencesFile?: {\n "@id": string;\n };\n /**\n * The location of a Solid storage server related to this WebId\n */\n storage?: LdSet<{\n "@id": string;\n }>;\n /**\n * The user\'s account\n */\n account?: {\n "@id": string;\n };\n /**\n * A registry of all types used on the user\'s Pod (for private access only)\n */\n privateTypeIndex?: LdSet<{\n "@id": string;\n }>;\n /**\n * A registry of all types used on the user\'s Pod (for public access)\n */\n publicTypeIndex?: LdSet<{\n "@id": string;\n }>;\n /**\n * A list of WebIds for all the people this user knows.\n */\n knows?: LdSet<{\n "@id": string;\n }>;\n}\n\nexport interface AddressShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * The name of the user\'s country of residence\n */\n countryName?: string;\n /**\n * The name of the user\'s locality (City, Town etc.) of residence\n */\n locality?: string;\n /**\n * The user\'s postal code\n */\n postalCode?: string;\n /**\n * The name of the user\'s region (State, Province etc.) of residence\n */\n region?: string;\n /**\n * The user\'s street address\n */\n streetAddress?: string;\n}\n\nexport interface EmailShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * The type of email.\n */\n type?: {\n "@id": "Dom";\n } | {\n "@id": "Home";\n } | {\n "@id": "ISDN";\n } | {\n "@id": "Internet";\n } | {\n "@id": "Intl";\n } | {\n "@id": "Label";\n } | {\n "@id": "Parcel";\n } | {\n "@id": "Postal";\n } | {\n "@id": "Pref";\n } | {\n "@id": "Work";\n } | {\n "@id": "X400";\n };\n /**\n * The value of an email as a mailto link (Example )\n */\n value: {\n "@id": string;\n };\n}\n\nexport interface PhoneNumberShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * They type of Phone Number\n */\n type?: {\n "@id": "Dom";\n } | {\n "@id": "Home";\n } | {\n "@id": "ISDN";\n } | {\n "@id": "Internet";\n } | {\n "@id": "Intl";\n } | {\n "@id": "Label";\n } | {\n "@id": "Parcel";\n } | {\n "@id": "Postal";\n } | {\n "@id": "Pref";\n } | {\n "@id": "Work";\n } | {\n "@id": "X400";\n };\n /**\n * The value of a phone number as a tel link (Example )\n */\n value: {\n "@id": string;\n };\n}\n\nexport interface TrustedAppShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * The level of access provided to this origin\n */\n mode: LdSet<{\n "@id": "Append";\n } | {\n "@id": "Control";\n } | {\n "@id": "Read";\n } | {\n "@id": "Write";\n }>;\n /**\n * The app origin the user trusts\n */\n origin: {\n "@id": string;\n };\n}\n\nexport interface RSAPublicKeyShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * RSA Modulus\n */\n modulus: string;\n /**\n * RSA Exponent\n */\n exponent: number;\n}\n\n', }; diff --git a/packages/schema-converter-shex/test/testData/reducedProfile.ts b/packages/schema-converter-shex/test/testData/reducedProfile.ts index b94387c..a8a5402 100644 --- a/packages/schema-converter-shex/test/testData/reducedProfile.ts +++ b/packages/schema-converter-shex/test/testData/reducedProfile.ts @@ -219,5 +219,5 @@ srs:EmailShape EXTRA a { }, }, successfulTypings: - 'import {ContextDefinition} from "jsonld"\n\nexport interface SolidProfileShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Defines the node as a Person | Defines the node as a Person\n */\n type: ({\n "@id": "Person";\n } | {\n "@id": "Person2";\n })[];\n /**\n * The person\'s email.\n */\n hasEmail?: (EmailShape)[];\n /**\n * An alternate way to define a person\'s name\n */\n name?: string;\n}\n\nexport interface EmailShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * The type of email.\n */\n type?: {\n "@id": "Dom";\n } | {\n "@id": "Home";\n } | {\n "@id": "ISDN";\n } | {\n "@id": "Internet";\n } | {\n "@id": "Intl";\n } | {\n "@id": "Label";\n } | {\n "@id": "Parcel";\n } | {\n "@id": "Postal";\n } | {\n "@id": "Pref";\n } | {\n "@id": "Work";\n } | {\n "@id": "X400";\n };\n /**\n * The value of an email as a mailto link (Example )\n */\n value: {\n "@id": string;\n };\n}\n\n', + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface SolidProfileShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * Defines the node as a Person | Defines the node as a Person\n */\n type: LdSet<{\n "@id": "Person";\n } | {\n "@id": "Person2";\n }>;\n /**\n * The person\'s email.\n */\n hasEmail?: LdSet;\n /**\n * An alternate way to define a person\'s name\n */\n name?: string;\n}\n\nexport interface EmailShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n /**\n * The type of email.\n */\n type?: {\n "@id": "Dom";\n } | {\n "@id": "Home";\n } | {\n "@id": "ISDN";\n } | {\n "@id": "Internet";\n } | {\n "@id": "Intl";\n } | {\n "@id": "Label";\n } | {\n "@id": "Parcel";\n } | {\n "@id": "Postal";\n } | {\n "@id": "Pref";\n } | {\n "@id": "Work";\n } | {\n "@id": "X400";\n };\n /**\n * The value of an email as a mailto link (Example )\n */\n value: {\n "@id": string;\n };\n}\n\n', }; diff --git a/packages/schema-converter-shex/test/testData/reusedPredicates.ts b/packages/schema-converter-shex/test/testData/reusedPredicates.ts index 87a9141..faf9a4b 100644 --- a/packages/schema-converter-shex/test/testData/reusedPredicates.ts +++ b/packages/schema-converter-shex/test/testData/reusedPredicates.ts @@ -86,5 +86,5 @@ export const reusedPredicates: TestData = { }, }, successfulTypings: - 'import {ContextDefinition} from "jsonld"\n\nexport interface DocumentShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Document";\n };\n vocabulary?: (VocabularyShape)[];\n law: LawShape;\n}\n\nexport interface LawShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Law";\n };\n name?: string[];\n path: {\n "@id": string;\n };\n}\n\nexport interface VocabularyShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Vocabulary";\n };\n name: string;\n path?: {\n "@id": string;\n }[];\n}\n\n', + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface DocumentShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Document";\n };\n vocabulary?: LdSet;\n law: LawShape;\n}\n\nexport interface LawShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Law";\n };\n name?: LdSet;\n path: {\n "@id": string;\n };\n}\n\nexport interface VocabularyShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Vocabulary";\n };\n name: string;\n path?: LdSet<{\n "@id": string;\n }>;\n}\n\n', }; diff --git a/packages/schema-converter-shex/test/testData/simple.ts b/packages/schema-converter-shex/test/testData/simple.ts index 3d863e0..211c4f6 100644 --- a/packages/schema-converter-shex/test/testData/simple.ts +++ b/packages/schema-converter-shex/test/testData/simple.ts @@ -46,5 +46,5 @@ export const simple: TestData = { mbox: { "@id": "http://xmlns.com/foaf/0.1/mbox", "@type": "@id" }, }, successfulTypings: - 'import {ContextDefinition} from "jsonld"\n\nexport interface EmployeeShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n givenName: string[];\n familyName: string;\n phone?: {\n "@id": string;\n }[];\n mbox: {\n "@id": string;\n };\n}\n\n', + 'import { LdSet, LdoJsonldContext } from "@ldo/ldo"\n\nexport interface EmployeeShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n givenName: LdSet;\n familyName: string;\n phone?: LdSet<{\n "@id": string;\n }>;\n mbox: {\n "@id": string;\n };\n}\n\n', }; diff --git a/packages/schema-converter-shex/test/testData/testData.ts b/packages/schema-converter-shex/test/testData/testData.ts index 04dac04..cfc562f 100644 --- a/packages/schema-converter-shex/test/testData/testData.ts +++ b/packages/schema-converter-shex/test/testData/testData.ts @@ -9,6 +9,7 @@ import { reusedPredicates } from "./reusedPredicates"; import { oldExtends } from "./oldExtends"; import { orSimple } from "./orSimple"; import { andSimple } from "./andSimple"; +import { eachOfAndSimple } from "./eachOfAndSimple"; export interface TestData { name: string; @@ -30,4 +31,5 @@ export const testData: TestData[] = [ reusedPredicates, orSimple, andSimple, + eachOfAndSimple, ];