import type { ObjectOrArray } from "@twin.org/core"; import type { IJsonLdLanguageMap, IJsonLdNodeObject } from "@twin.org/data-json-ld"; import type { ActivityStreamsContextType } from "./activityStreamsContextType.js"; import type { ActivityStreamsTypes } from "./activityStreamsTypes.js"; import type { IActivityStreamsObject } from "./IActivityStreamsObject.js"; /** * A W3C Activity from Activity Streams. * * An `Activity` describes an action performed by an `actor` on an `object`, and * can optionally include a `target`, `result`, `origin`, or `instrument`. * @see https://www.w3.org/TR/activitystreams-core/#activities */ export interface IActivityStreamsActivity extends IActivityStreamsObject { /** * The LD Context. */ "@context": ActivityStreamsContextType; /** * Activity Type. */ type: ObjectOrArray; /** * The generator of the Activity. * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-generator */ generator?: ObjectOrArray; /** * The Actor behind the Activity. * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-actor */ actor?: ObjectOrArray; /** * The object affected by the Activity. * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object */ object?: ObjectOrArray; /** * The target of the Activity. * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-target */ target?: ObjectOrArray; /** * Summary of the Activity. * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-summary */ summary?: string | IJsonLdLanguageMap; /** * Result of the Activity. * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-result */ result?: ObjectOrArray; /** * Activity's origin. * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-origin */ origin?: ObjectOrArray; /** * Instrument used in the Activity. * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-instrument */ instrument?: ObjectOrArray; }