@twin.org/standards-w3c-activity-streams 0.0.3-next.9 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/es/dataTypes/activityStreamsDataTypes.js +275 -16
- package/dist/es/dataTypes/activityStreamsDataTypes.js.map +1 -1
- package/dist/es/index.js +33 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IActivityStreamsActivity.js.map +1 -1
- package/dist/es/models/IActivityStreamsActor.js +2 -0
- package/dist/es/models/IActivityStreamsActor.js.map +1 -0
- package/dist/es/models/IActivityStreamsApplication.js +2 -0
- package/dist/es/models/IActivityStreamsApplication.js.map +1 -0
- package/dist/es/models/IActivityStreamsArticle.js +2 -0
- package/dist/es/models/IActivityStreamsArticle.js.map +1 -0
- package/dist/es/models/IActivityStreamsAudio.js +2 -0
- package/dist/es/models/IActivityStreamsAudio.js.map +1 -0
- package/dist/es/models/IActivityStreamsCollection.js +2 -0
- package/dist/es/models/IActivityStreamsCollection.js.map +1 -0
- package/dist/es/models/IActivityStreamsCollectionPage.js +2 -0
- package/dist/es/models/IActivityStreamsCollectionPage.js.map +1 -0
- package/dist/es/models/IActivityStreamsDocument.js +2 -0
- package/dist/es/models/IActivityStreamsDocument.js.map +1 -0
- package/dist/es/models/IActivityStreamsEvent.js +2 -0
- package/dist/es/models/IActivityStreamsEvent.js.map +1 -0
- package/dist/es/models/IActivityStreamsGroup.js +2 -0
- package/dist/es/models/IActivityStreamsGroup.js.map +1 -0
- package/dist/es/models/IActivityStreamsImage.js +2 -0
- package/dist/es/models/IActivityStreamsImage.js.map +1 -0
- package/dist/es/models/IActivityStreamsIntransitiveActivity.js +2 -0
- package/dist/es/models/IActivityStreamsIntransitiveActivity.js.map +1 -0
- package/dist/es/models/IActivityStreamsLink.js +2 -0
- package/dist/es/models/IActivityStreamsLink.js.map +1 -0
- package/dist/es/models/IActivityStreamsMention.js +2 -0
- package/dist/es/models/IActivityStreamsMention.js.map +1 -0
- package/dist/es/models/IActivityStreamsNote.js +2 -0
- package/dist/es/models/IActivityStreamsNote.js.map +1 -0
- package/dist/es/models/IActivityStreamsObject.js +2 -0
- package/dist/es/models/IActivityStreamsObject.js.map +1 -0
- package/dist/es/models/IActivityStreamsOrderedCollection.js +2 -0
- package/dist/es/models/IActivityStreamsOrderedCollection.js.map +1 -0
- package/dist/es/models/IActivityStreamsOrderedCollectionPage.js +2 -0
- package/dist/es/models/IActivityStreamsOrderedCollectionPage.js.map +1 -0
- package/dist/es/models/IActivityStreamsOrganization.js +2 -0
- package/dist/es/models/IActivityStreamsOrganization.js.map +1 -0
- package/dist/es/models/IActivityStreamsPage.js +2 -0
- package/dist/es/models/IActivityStreamsPage.js.map +1 -0
- package/dist/es/models/IActivityStreamsPerson.js +2 -0
- package/dist/es/models/IActivityStreamsPerson.js.map +1 -0
- package/dist/es/models/IActivityStreamsPlace.js +2 -0
- package/dist/es/models/IActivityStreamsPlace.js.map +1 -0
- package/dist/es/models/IActivityStreamsProfile.js +2 -0
- package/dist/es/models/IActivityStreamsProfile.js.map +1 -0
- package/dist/es/models/IActivityStreamsQuestion.js +2 -0
- package/dist/es/models/IActivityStreamsQuestion.js.map +1 -0
- package/dist/es/models/IActivityStreamsQuestionAnyOfChoice.js +2 -0
- package/dist/es/models/IActivityStreamsQuestionAnyOfChoice.js.map +1 -0
- package/dist/es/models/IActivityStreamsQuestionBase.js +2 -0
- package/dist/es/models/IActivityStreamsQuestionBase.js.map +1 -0
- package/dist/es/models/IActivityStreamsQuestionNeitherChoice.js +4 -0
- package/dist/es/models/IActivityStreamsQuestionNeitherChoice.js.map +1 -0
- package/dist/es/models/IActivityStreamsQuestionOneOfChoice.js +2 -0
- package/dist/es/models/IActivityStreamsQuestionOneOfChoice.js.map +1 -0
- package/dist/es/models/IActivityStreamsRelationship.js +2 -0
- package/dist/es/models/IActivityStreamsRelationship.js.map +1 -0
- package/dist/es/models/IActivityStreamsService.js +2 -0
- package/dist/es/models/IActivityStreamsService.js.map +1 -0
- package/dist/es/models/IActivityStreamsTombstone.js +2 -0
- package/dist/es/models/IActivityStreamsTombstone.js.map +1 -0
- package/dist/es/models/IActivityStreamsVideo.js +2 -0
- package/dist/es/models/IActivityStreamsVideo.js.map +1 -0
- package/dist/es/models/activityStreamsContextType.js.map +1 -1
- package/dist/es/models/activityStreamsContexts.js +13 -7
- package/dist/es/models/activityStreamsContexts.js.map +1 -1
- package/dist/es/models/activityStreamsLinkTypes.js +21 -0
- package/dist/es/models/activityStreamsLinkTypes.js.map +1 -0
- package/dist/es/models/activityStreamsObjectTypes.js +141 -0
- package/dist/es/models/activityStreamsObjectTypes.js.map +1 -0
- package/dist/es/models/activityStreamsTypes.js +88 -30
- package/dist/es/models/activityStreamsTypes.js.map +1 -1
- package/dist/es/schemas/ActivityStreamsActivity.json +116 -127
- package/dist/es/schemas/ActivityStreamsActor.json +68 -0
- package/dist/es/schemas/ActivityStreamsApplication.json +41 -0
- package/dist/es/schemas/ActivityStreamsArticle.json +41 -0
- package/dist/es/schemas/ActivityStreamsAudio.json +41 -0
- package/dist/es/schemas/ActivityStreamsCollection.json +102 -0
- package/dist/es/schemas/ActivityStreamsCollectionPage.json +74 -0
- package/dist/es/schemas/ActivityStreamsContextType.json +30 -0
- package/dist/es/schemas/ActivityStreamsDocument.json +41 -0
- package/dist/es/schemas/ActivityStreamsEvent.json +41 -0
- package/dist/es/schemas/ActivityStreamsGroup.json +41 -0
- package/dist/es/schemas/ActivityStreamsImage.json +41 -0
- package/dist/es/schemas/ActivityStreamsIntransitiveActivity.json +167 -0
- package/dist/es/schemas/ActivityStreamsLink.json +112 -0
- package/dist/es/schemas/ActivityStreamsMention.json +41 -0
- package/dist/es/schemas/ActivityStreamsNote.json +41 -0
- package/dist/es/schemas/ActivityStreamsObject.json +507 -0
- package/dist/es/schemas/ActivityStreamsObjectTypes.json +112 -0
- package/dist/es/schemas/ActivityStreamsOrderedCollection.json +65 -0
- package/dist/es/schemas/ActivityStreamsOrderedCollectionPage.json +48 -0
- package/dist/es/schemas/ActivityStreamsOrganization.json +41 -0
- package/dist/es/schemas/ActivityStreamsPage.json +41 -0
- package/dist/es/schemas/ActivityStreamsPerson.json +41 -0
- package/dist/es/schemas/ActivityStreamsPlace.json +65 -0
- package/dist/es/schemas/ActivityStreamsProfile.json +52 -0
- package/dist/es/schemas/ActivityStreamsRelationship.json +67 -0
- package/dist/es/schemas/ActivityStreamsService.json +41 -0
- package/dist/es/schemas/ActivityStreamsTombstone.json +60 -0
- package/dist/es/schemas/ActivityStreamsTypes.json +119 -32
- package/dist/es/schemas/ActivityStreamsVideo.json +41 -0
- package/dist/types/dataTypes/activityStreamsDataTypes.d.ts +5 -1
- package/dist/types/index.d.ts +33 -0
- package/dist/types/models/IActivityStreamsActivity.d.ts +17 -13
- package/dist/types/models/IActivityStreamsActor.d.ts +16 -0
- package/dist/types/models/IActivityStreamsApplication.d.ts +15 -0
- package/dist/types/models/IActivityStreamsArticle.d.ts +15 -0
- package/dist/types/models/IActivityStreamsAudio.d.ts +15 -0
- package/dist/types/models/IActivityStreamsCollection.d.ts +42 -0
- package/dist/types/models/IActivityStreamsCollectionPage.d.ts +32 -0
- package/dist/types/models/IActivityStreamsDocument.d.ts +15 -0
- package/dist/types/models/IActivityStreamsEvent.d.ts +15 -0
- package/dist/types/models/IActivityStreamsGroup.d.ts +15 -0
- package/dist/types/models/IActivityStreamsImage.d.ts +15 -0
- package/dist/types/models/IActivityStreamsIntransitiveActivity.d.ts +42 -0
- package/dist/types/models/IActivityStreamsLink.d.ts +62 -0
- package/dist/types/models/IActivityStreamsMention.d.ts +16 -0
- package/dist/types/models/IActivityStreamsNote.d.ts +15 -0
- package/dist/types/models/IActivityStreamsObject.d.ts +187 -0
- package/dist/types/models/IActivityStreamsOrderedCollection.d.ts +21 -0
- package/dist/types/models/IActivityStreamsOrderedCollectionPage.d.ts +23 -0
- package/dist/types/models/IActivityStreamsOrganization.d.ts +15 -0
- package/dist/types/models/IActivityStreamsPage.d.ts +15 -0
- package/dist/types/models/IActivityStreamsPerson.d.ts +15 -0
- package/dist/types/models/IActivityStreamsPlace.d.ts +60 -0
- package/dist/types/models/IActivityStreamsProfile.d.ts +23 -0
- package/dist/types/models/IActivityStreamsQuestion.d.ts +13 -0
- package/dist/types/models/IActivityStreamsQuestionAnyOfChoice.d.ts +17 -0
- package/dist/types/models/IActivityStreamsQuestionBase.d.ts +22 -0
- package/dist/types/models/IActivityStreamsQuestionNeitherChoice.d.ts +13 -0
- package/dist/types/models/IActivityStreamsQuestionOneOfChoice.d.ts +17 -0
- package/dist/types/models/IActivityStreamsRelationship.d.ts +35 -0
- package/dist/types/models/IActivityStreamsService.d.ts +15 -0
- package/dist/types/models/IActivityStreamsTombstone.d.ts +27 -0
- package/dist/types/models/IActivityStreamsVideo.d.ts +15 -0
- package/dist/types/models/activityStreamsContextType.d.ts +2 -1
- package/dist/types/models/activityStreamsContexts.d.ts +12 -6
- package/dist/types/models/activityStreamsLinkTypes.d.ts +21 -0
- package/dist/types/models/activityStreamsObjectTypes.d.ts +141 -0
- package/dist/types/models/activityStreamsTypes.d.ts +87 -29
- package/docs/changelog.md +526 -40
- package/docs/examples.md +29 -1
- package/docs/reference/classes/ActivityStreamsDataTypes.md +14 -2
- package/docs/reference/index.md +35 -0
- package/docs/reference/interfaces/IActivityStreamsActivity.md +497 -26
- package/docs/reference/interfaces/IActivityStreamsActor.md +534 -0
- package/docs/reference/interfaces/IActivityStreamsApplication.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsArticle.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsAudio.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsCollection.md +591 -0
- package/docs/reference/interfaces/IActivityStreamsCollectionPage.md +646 -0
- package/docs/reference/interfaces/IActivityStreamsDocument.md +532 -0
- package/docs/reference/interfaces/IActivityStreamsEvent.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsGroup.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsImage.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsIntransitiveActivity.md +589 -0
- package/docs/reference/interfaces/IActivityStreamsLink.md +126 -0
- package/docs/reference/interfaces/IActivityStreamsMention.md +166 -0
- package/docs/reference/interfaces/IActivityStreamsNote.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsObject.md +411 -0
- package/docs/reference/interfaces/IActivityStreamsOrderedCollection.md +621 -0
- package/docs/reference/interfaces/IActivityStreamsOrderedCollectionPage.md +683 -0
- package/docs/reference/interfaces/IActivityStreamsOrganization.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsPage.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsPerson.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsPlace.md +612 -0
- package/docs/reference/interfaces/IActivityStreamsProfile.md +539 -0
- package/docs/reference/interfaces/IActivityStreamsQuestionAnyOfChoice.md +27 -0
- package/docs/reference/interfaces/IActivityStreamsQuestionBase.md +619 -0
- package/docs/reference/interfaces/IActivityStreamsQuestionNeitherChoice.md +19 -0
- package/docs/reference/interfaces/IActivityStreamsQuestionOneOfChoice.md +27 -0
- package/docs/reference/interfaces/IActivityStreamsRelationship.md +565 -0
- package/docs/reference/interfaces/IActivityStreamsService.md +525 -0
- package/docs/reference/interfaces/IActivityStreamsTombstone.md +550 -0
- package/docs/reference/interfaces/IActivityStreamsVideo.md +525 -0
- package/docs/reference/type-aliases/ActivityStreamsContextType.md +1 -1
- package/docs/reference/type-aliases/ActivityStreamsLinkTypes.md +5 -0
- package/docs/reference/type-aliases/ActivityStreamsObjectTypes.md +5 -0
- package/docs/reference/type-aliases/IActivityStreamsQuestion.md +13 -0
- package/docs/reference/variables/ActivityStreamsContexts.md +17 -9
- package/docs/reference/variables/ActivityStreamsLinkTypes.md +32 -0
- package/docs/reference/variables/ActivityStreamsObjectTypes.md +272 -0
- package/docs/reference/variables/ActivityStreamsTypes.md +116 -58
- package/package.json +7 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsOrderedCollectionPage.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsOrderedCollectionPage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { ActivityStreamsObjectTypes } from \"./activityStreamsObjectTypes.js\";\nimport type { IActivityStreamsCollectionPage } from \"./IActivityStreamsCollectionPage.js\";\nimport type { IActivityStreamsOrderedCollection } from \"./IActivityStreamsOrderedCollection.js\";\n\n/**\n * A W3C Activity Streams OrderedCollectionPage.\n *\n * An `OrderedCollectionPage` is a page from an `OrderedCollection`. When\n * `orderedItems` are present, `startIndex` can be used as an offset for the first\n * item in the page.\n * @see https://www.w3.org/TR/activitystreams-core/#collections\n */\nexport interface IActivityStreamsOrderedCollectionPage\n\textends IActivityStreamsCollectionPage, IActivityStreamsOrderedCollection {\n\t/**\n\t * OrderedCollectionPage type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsObjectTypes.OrderedCollectionPage | string>;\n\n\t/**\n\t * Relative index position of the first item in this page.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-startindex\n\t */\n\tstartIndex?: number;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsOrganization.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsOrganization.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { ActivityStreamsObjectTypes } from \"./activityStreamsObjectTypes.js\";\nimport type { IActivityStreamsActor } from \"./IActivityStreamsActor.js\";\n\n/**\n * A W3C Activity Streams Organization.\n *\n * An `Organization` represents an organization.\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-organization\n */\nexport interface IActivityStreamsOrganization extends IActivityStreamsActor {\n\t/**\n\t * Organization type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsObjectTypes.Organization | string>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsPage.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsPage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { ActivityStreamsObjectTypes } from \"./activityStreamsObjectTypes.js\";\nimport type { IActivityStreamsDocument } from \"./IActivityStreamsDocument.js\";\n\n/**\n * A W3C Activity Streams Page.\n *\n * A `Page` is a `Document` that represents a Web Page.\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-page\n */\nexport interface IActivityStreamsPage extends IActivityStreamsDocument {\n\t/**\n\t * Page type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsObjectTypes.Page | string>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsPerson.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsPerson.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { ActivityStreamsObjectTypes } from \"./activityStreamsObjectTypes.js\";\nimport type { IActivityStreamsActor } from \"./IActivityStreamsActor.js\";\n\n/**\n * A W3C Activity Streams Person.\n *\n * A `Person` represents an individual person.\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-person\n */\nexport interface IActivityStreamsPerson extends IActivityStreamsActor {\n\t/**\n\t * Person type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsObjectTypes.Person | string>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsPlace.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsPlace.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { ActivityStreamsObjectTypes } from \"./activityStreamsObjectTypes.js\";\nimport type { IActivityStreamsObject } from \"./IActivityStreamsObject.js\";\n\n/**\n * A W3C Activity Streams Place.\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-place\n */\nexport interface IActivityStreamsPlace extends IActivityStreamsObject {\n\t/**\n\t * Place type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsObjectTypes.Place | string>;\n\n\t/**\n\t * The latitude of the Place.\n\t *\n\t * The Activity Streams vocabulary defines this as an `xsd:float`.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-latitude\n\t */\n\tlatitude?: number;\n\n\t/**\n\t * The longitude of the Place.\n\t *\n\t * The Activity Streams vocabulary defines this as an `xsd:float`.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-longitude\n\t */\n\tlongitude?: number;\n\n\t/**\n\t * The altitude of the Place.\n\t *\n\t * Measurement units are specified using the `units` property. If `units` is not specified,\n\t * the default is assumed to be \"m\" (meters).\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-altitude\n\t */\n\taltitude?: number;\n\n\t/**\n\t * The accuracy of the Place.\n\t *\n\t * Indicates the accuracy of position coordinates on a Place objects.\n\t * Expressed in properties of percentage. e.g. \"94.0\" means \"94.0% accurate\".\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-accuracy\n\t */\n\taccuracy?: number;\n\n\t/**\n\t * The radius from the given `latitude` and `longitude`.\n\t *\n\t * Measurement units are specified using the `units` property. If `units` is not specified,\n\t * the default is assumed to be \"m\" (meters).\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-radius\n\t */\n\tradius?: number;\n\n\t/**\n\t * Measurement units for the `radius` and `altitude` properties.\n\t *\n\t * If not specified, the default is assumed to be \"m\" (meters). The Activity Streams\n\t * vocabulary allows values such as \"cm\", \"feet\", \"inches\", \"km\", \"m\", \"miles\", or any\n\t * other unit expressed as a URI.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-units\n\t */\n\tunits?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsProfile.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsProfile.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { ActivityStreamsObjectTypes } from \"./activityStreamsObjectTypes.js\";\nimport type { IActivityStreamsObject } from \"./IActivityStreamsObject.js\";\n\n/**\n * A W3C Activity Streams Profile.\n *\n * A `Profile` is a content object that describes another `Object`.\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-profile\n */\nexport interface IActivityStreamsProfile extends IActivityStreamsObject {\n\t/**\n\t * Profile type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsObjectTypes.Profile | string>;\n\n\t/**\n\t * The object being described.\n\t *\n\t * This is the target entity that the `Profile` is about.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-describes\n\t */\n\tdescribes?: string | IJsonLdNodeObject;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsQuestion.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsQuestion.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IActivityStreamsQuestionAnyOfChoice } from \"./IActivityStreamsQuestionAnyOfChoice.js\";\nimport type { IActivityStreamsQuestionBase } from \"./IActivityStreamsQuestionBase.js\";\nimport type { IActivityStreamsQuestionNeitherChoice } from \"./IActivityStreamsQuestionNeitherChoice.js\";\nimport type { IActivityStreamsQuestionOneOfChoice } from \"./IActivityStreamsQuestionOneOfChoice.js\";\n\n/**\n * A W3C Activity Streams Question.\n *\n * A `Question` represents a question being asked. Use `oneOf` for exclusive\n * choices, `anyOf` for inclusive choices, and `closed` to indicate when the question\n * is closed.\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-question\n */\nexport type IActivityStreamsQuestion = IActivityStreamsQuestionBase &\n\t(\n\t\t| IActivityStreamsQuestionAnyOfChoice\n\t\t| IActivityStreamsQuestionOneOfChoice\n\t\t| IActivityStreamsQuestionNeitherChoice\n\t);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsQuestionAnyOfChoice.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsQuestionAnyOfChoice.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\n\n/**\n * Represents a Question with an inclusive list of possible answers, but not an exclusive list.\n */\nexport interface IActivityStreamsQuestionAnyOfChoice {\n\t/**\n\t * Specifies an inclusive list of possible answers.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-anyof\n\t */\n\tanyOf: ObjectOrArray<IJsonLdNodeObject>;\n\n\t/**\n\t * Specifies an exclusive list of possible answers.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-oneof\n\t */\n\toneOf?: never;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsQuestionBase.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsQuestionBase.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { ActivityStreamsTypes } from \"./activityStreamsTypes.js\";\nimport type { IActivityStreamsIntransitiveActivity } from \"./IActivityStreamsIntransitiveActivity.js\";\n\n/**\n * A W3C Activity Streams Question base.\n *\n * A `Question` represents a question being asked. Use `oneOf` for exclusive\n * choices, `anyOf` for inclusive choices, and `closed` to indicate when the question\n * is closed.\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-question\n */\nexport interface IActivityStreamsQuestionBase extends IActivityStreamsIntransitiveActivity {\n\t/**\n\t * Question type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsTypes.Question | string>;\n\n\t/**\n\t * Indicates that the Question has been closed.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-closed\n\t */\n\tclosed?: boolean | string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsQuestionNeitherChoice.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsQuestionNeitherChoice.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Represents a Question with neither anyOf nor oneOf.\n */\nexport interface IActivityStreamsQuestionNeitherChoice {\n\t/**\n\t * Specifies an inclusive list of possible answers.\n\t */\n\tanyOf?: never;\n\n\t/**\n\t * Specifies an exclusive list of possible answers.\n\t */\n\toneOf?: never;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsQuestionOneOfChoice.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsQuestionOneOfChoice.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\n\n/**\n * Represents a Question with an exclusive list of possible answers, but not an inclusive list.\n */\nexport interface IActivityStreamsQuestionOneOfChoice {\n\t/**\n\t * Specifies an inclusive list of possible answers.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-anyof\n\t */\n\tanyOf?: never;\n\n\t/**\n\t * Specifies an exclusive list of possible answers.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-oneof\n\t */\n\toneOf: ObjectOrArray<IJsonLdNodeObject>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsRelationship.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsRelationship.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { ActivityStreamsObjectTypes } from \"./activityStreamsObjectTypes.js\";\nimport type { IActivityStreamsObject } from \"./IActivityStreamsObject.js\";\n\n/**\n * A W3C Activity Streams Relationship.\n *\n * A `Relationship` can be used to describe a relationship between two entities.\n * It is commonly used as a reified statement, using `subject` (subject), `relationship`\n * (predicate), and `object` (object).\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-relationship\n */\nexport interface IActivityStreamsRelationship extends IActivityStreamsObject {\n\t/**\n\t * Relationship type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsObjectTypes.Relationship | string>;\n\n\t/**\n\t * Subject of the relationship.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-subject\n\t */\n\tsubject?: string | IJsonLdNodeObject;\n\n\t/**\n\t * Object of the relationship.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object-term\n\t */\n\tobject?: IJsonLdNodeObject;\n\n\t/**\n\t * The relationship predicate.\n\t *\n\t * For example, a URI identifying the relationship type.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-relationship\n\t */\n\trelationship?: string | IJsonLdNodeObject;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsService.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsService.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { ActivityStreamsObjectTypes } from \"./activityStreamsObjectTypes.js\";\nimport type { IActivityStreamsActor } from \"./IActivityStreamsActor.js\";\n\n/**\n * A W3C Activity Streams Service.\n *\n * A `Service` represents a service of any kind.\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-service\n */\nexport interface IActivityStreamsService extends IActivityStreamsActor {\n\t/**\n\t * Service type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsObjectTypes.Service | string>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsTombstone.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsTombstone.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { ActivityStreamsObjectTypes } from \"./activityStreamsObjectTypes.js\";\nimport type { IActivityStreamsObject } from \"./IActivityStreamsObject.js\";\n\n/**\n * A W3C Activity Streams Tombstone.\n *\n * A `Tombstone` represents an object that has been deleted. Implementations can\n * include `formerType` and `deleted` to provide additional context.\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tombstone\n */\nexport interface IActivityStreamsTombstone extends IActivityStreamsObject {\n\t/**\n\t * Tombstone type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsObjectTypes.Tombstone | string>;\n\n\t/**\n\t * The date and time at which the object was deleted.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-deleted\n\t * @json-schema format:date-time\n\t */\n\tdeleted?: string;\n\n\t/**\n\t * The former type of the deleted object.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-formertype\n\t */\n\tformerType?: ObjectOrArray<string>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsVideo.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsVideo.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { ActivityStreamsObjectTypes } from \"./activityStreamsObjectTypes.js\";\nimport type { IActivityStreamsDocument } from \"./IActivityStreamsDocument.js\";\n\n/**\n * A W3C Activity Streams Video.\n *\n * A `Video` is a video document of any kind.\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-video\n */\nexport interface IActivityStreamsVideo extends IActivityStreamsDocument {\n\t/**\n\t * Video type.\n\t */\n\ttype: ObjectOrArray<typeof ActivityStreamsObjectTypes.Video | string>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activityStreamsContextType.js","sourceRoot":"","sources":["../../../src/models/activityStreamsContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"file":"activityStreamsContextType.js","sourceRoot":"","sources":["../../../src/models/activityStreamsContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { SingleOccurrenceArray } from \"@twin.org/core\";\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { ActivityStreamsContexts } from \"./activityStreamsContexts.js\";\n\n/**\n * The Activity Streams JSON-LD context type.\n */\nexport type ActivityStreamsContextType =\n\t| typeof ActivityStreamsContexts.Context\n\t| SingleOccurrenceArray<IJsonLdContextDefinitionElement, typeof ActivityStreamsContexts.Context>;\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
/**
|
|
4
4
|
* The LD Contexts concerning Activity Streams.
|
|
@@ -6,16 +6,22 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const ActivityStreamsContexts = {
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The canonical RDF namespace URI.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
Namespace: "https://www.w3.org/ns/activitystreams#",
|
|
12
12
|
/**
|
|
13
|
-
* The
|
|
13
|
+
* The value to use in @context.
|
|
14
|
+
* Note: Context differs from Namespace (no trailing #) as per Activity Streams 2.0 specification.
|
|
15
|
+
* The Activity Streams JSON-LD context URL format does not include a trailing hash.
|
|
14
16
|
*/
|
|
15
|
-
|
|
17
|
+
Context: "https://www.w3.org/ns/activitystreams",
|
|
16
18
|
/**
|
|
17
|
-
* The
|
|
19
|
+
* The JSON-LD Context URL.
|
|
18
20
|
*/
|
|
19
|
-
|
|
21
|
+
JsonLdContext: "https://www.w3.org/ns/activitystreams.jsonld",
|
|
22
|
+
/**
|
|
23
|
+
* The namespace location of the hosted version of the JSON Schema.
|
|
24
|
+
*/
|
|
25
|
+
JsonSchemaNamespace: "https://schema.twindev.org/w3c-activity-streams/"
|
|
20
26
|
};
|
|
21
27
|
//# sourceMappingURL=activityStreamsContexts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activityStreamsContexts.js","sourceRoot":"","sources":["../../../src/models/activityStreamsContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"activityStreamsContexts.js","sourceRoot":"","sources":["../../../src/models/activityStreamsContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,SAAS,EAAE,wCAAwC;IAEnD;;;;OAIG;IACH,OAAO,EAAE,uCAAuC;IAEhD;;OAEG;IACH,aAAa,EAAE,8CAA8C;IAE7D;;OAEG;IACH,mBAAmB,EAAE,kDAAkD;CAC9D,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The LD Contexts concerning Activity Streams.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ActivityStreamsContexts = {\n\t/**\n\t * The canonical RDF namespace URI.\n\t */\n\tNamespace: \"https://www.w3.org/ns/activitystreams#\",\n\n\t/**\n\t * The value to use in @context.\n\t * Note: Context differs from Namespace (no trailing #) as per Activity Streams 2.0 specification.\n\t * The Activity Streams JSON-LD context URL format does not include a trailing hash.\n\t */\n\tContext: \"https://www.w3.org/ns/activitystreams\",\n\n\t/**\n\t * The JSON-LD Context URL.\n\t */\n\tJsonLdContext: \"https://www.w3.org/ns/activitystreams.jsonld\",\n\n\t/**\n\t * The namespace location of the hosted version of the JSON Schema.\n\t */\n\tJsonSchemaNamespace: \"https://schema.twindev.org/w3c-activity-streams/\"\n} as const;\n\n/**\n * The LD Contexts concerning Activity Streams.\n */\nexport type ActivityStreamsContexts =\n\t(typeof ActivityStreamsContexts)[keyof typeof ActivityStreamsContexts];\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The link types concerning Activity Streams.
|
|
5
|
+
* @see https://www.w3.org/TR/activitystreams-core/#link
|
|
6
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#link
|
|
7
|
+
*/
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
|
+
export const ActivityStreamsLinkTypes = {
|
|
10
|
+
/**
|
|
11
|
+
* Link
|
|
12
|
+
* @see https://www.w3.org/TR/activitystreams-core/#link
|
|
13
|
+
*/
|
|
14
|
+
Link: "Link",
|
|
15
|
+
/**
|
|
16
|
+
* Mention
|
|
17
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-mention
|
|
18
|
+
*/
|
|
19
|
+
Mention: "Mention"
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=activityStreamsLinkTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activityStreamsLinkTypes.js","sourceRoot":"","sources":["../../../src/models/activityStreamsLinkTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;;GAIG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACvC;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The link types concerning Activity Streams.\n * @see https://www.w3.org/TR/activitystreams-core/#link\n * @see https://www.w3.org/TR/activitystreams-vocabulary/#link\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ActivityStreamsLinkTypes = {\n\t/**\n\t * Link\n\t * @see https://www.w3.org/TR/activitystreams-core/#link\n\t */\n\tLink: \"Link\",\n\n\t/**\n\t * Mention\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-mention\n\t */\n\tMention: \"Mention\"\n} as const;\n\n/**\n * The link types concerning Activity Streams.\n */\nexport type ActivityStreamsLinkTypes =\n\t(typeof ActivityStreamsLinkTypes)[keyof typeof ActivityStreamsLinkTypes];\n"]}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The object types concerning Activity Streams.
|
|
5
|
+
* @see https://www.w3.org/TR/activitystreams-core/#model
|
|
6
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/
|
|
7
|
+
*/
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
|
+
export const ActivityStreamsObjectTypes = {
|
|
10
|
+
/**
|
|
11
|
+
* Object
|
|
12
|
+
* @see https://www.w3.org/TR/activitystreams-core/#object
|
|
13
|
+
*/
|
|
14
|
+
Object: "Object",
|
|
15
|
+
/**
|
|
16
|
+
* Activity
|
|
17
|
+
* @see https://www.w3.org/TR/activitystreams-core/#activities
|
|
18
|
+
*/
|
|
19
|
+
Activity: "Activity",
|
|
20
|
+
/**
|
|
21
|
+
* IntransitiveActivity
|
|
22
|
+
* @see https://www.w3.org/TR/activitystreams-core/#intransitiveactivities
|
|
23
|
+
*/
|
|
24
|
+
IntransitiveActivity: "IntransitiveActivity",
|
|
25
|
+
/**
|
|
26
|
+
* Collection
|
|
27
|
+
* @see https://www.w3.org/TR/activitystreams-core/#collections
|
|
28
|
+
*/
|
|
29
|
+
Collection: "Collection",
|
|
30
|
+
/**
|
|
31
|
+
* OrderedCollection
|
|
32
|
+
* @see https://www.w3.org/TR/activitystreams-core/#collections
|
|
33
|
+
*/
|
|
34
|
+
OrderedCollection: "OrderedCollection",
|
|
35
|
+
/**
|
|
36
|
+
* CollectionPage
|
|
37
|
+
* @see https://www.w3.org/TR/activitystreams-core/#collections
|
|
38
|
+
*/
|
|
39
|
+
CollectionPage: "CollectionPage",
|
|
40
|
+
/**
|
|
41
|
+
* OrderedCollectionPage
|
|
42
|
+
* @see https://www.w3.org/TR/activitystreams-core/#collections
|
|
43
|
+
*/
|
|
44
|
+
OrderedCollectionPage: "OrderedCollectionPage",
|
|
45
|
+
/**
|
|
46
|
+
* Actor
|
|
47
|
+
* @see https://www.w3.org/TR/activitystreams-core/#actors
|
|
48
|
+
*/
|
|
49
|
+
Actor: "Actor",
|
|
50
|
+
/**
|
|
51
|
+
* Application
|
|
52
|
+
* @see https://www.w3.org/TR/activitystreams-core/#actors
|
|
53
|
+
*/
|
|
54
|
+
Application: "Application",
|
|
55
|
+
/**
|
|
56
|
+
* Group
|
|
57
|
+
* @see https://www.w3.org/TR/activitystreams-core/#actors
|
|
58
|
+
*/
|
|
59
|
+
Group: "Group",
|
|
60
|
+
/**
|
|
61
|
+
* Organization
|
|
62
|
+
* @see https://www.w3.org/TR/activitystreams-core/#actors
|
|
63
|
+
*/
|
|
64
|
+
Organization: "Organization",
|
|
65
|
+
/**
|
|
66
|
+
* Person
|
|
67
|
+
* @see https://www.w3.org/TR/activitystreams-core/#actors
|
|
68
|
+
*/
|
|
69
|
+
Person: "Person",
|
|
70
|
+
/**
|
|
71
|
+
* Service
|
|
72
|
+
* @see https://www.w3.org/TR/activitystreams-core/#actors
|
|
73
|
+
*/
|
|
74
|
+
Service: "Service",
|
|
75
|
+
/**
|
|
76
|
+
* Article
|
|
77
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-article
|
|
78
|
+
*/
|
|
79
|
+
Article: "Article",
|
|
80
|
+
/**
|
|
81
|
+
* Audio
|
|
82
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-audio
|
|
83
|
+
*/
|
|
84
|
+
Audio: "Audio",
|
|
85
|
+
/**
|
|
86
|
+
* Document
|
|
87
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-document
|
|
88
|
+
*/
|
|
89
|
+
Document: "Document",
|
|
90
|
+
/**
|
|
91
|
+
* Event
|
|
92
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-event
|
|
93
|
+
*/
|
|
94
|
+
Event: "Event",
|
|
95
|
+
/**
|
|
96
|
+
* Image
|
|
97
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-image
|
|
98
|
+
*/
|
|
99
|
+
Image: "Image",
|
|
100
|
+
/**
|
|
101
|
+
* Note
|
|
102
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-note
|
|
103
|
+
*/
|
|
104
|
+
Note: "Note",
|
|
105
|
+
/**
|
|
106
|
+
* Page
|
|
107
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-page
|
|
108
|
+
*/
|
|
109
|
+
Page: "Page",
|
|
110
|
+
/**
|
|
111
|
+
* Question
|
|
112
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-question
|
|
113
|
+
*/
|
|
114
|
+
Question: "Question",
|
|
115
|
+
/**
|
|
116
|
+
* Place
|
|
117
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-place
|
|
118
|
+
*/
|
|
119
|
+
Place: "Place",
|
|
120
|
+
/**
|
|
121
|
+
* Profile
|
|
122
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-profile
|
|
123
|
+
*/
|
|
124
|
+
Profile: "Profile",
|
|
125
|
+
/**
|
|
126
|
+
* Relationship
|
|
127
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-relationship
|
|
128
|
+
*/
|
|
129
|
+
Relationship: "Relationship",
|
|
130
|
+
/**
|
|
131
|
+
* Tombstone
|
|
132
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tombstone
|
|
133
|
+
*/
|
|
134
|
+
Tombstone: "Tombstone",
|
|
135
|
+
/**
|
|
136
|
+
* Video
|
|
137
|
+
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-video
|
|
138
|
+
*/
|
|
139
|
+
Video: "Video"
|
|
140
|
+
};
|
|
141
|
+
//# sourceMappingURL=activityStreamsObjectTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activityStreamsObjectTypes.js","sourceRoot":"","sources":["../../../src/models/activityStreamsObjectTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;;GAIG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;;OAGG;IACH,UAAU,EAAE,YAAY;IAExB;;;OAGG;IACH,iBAAiB,EAAE,mBAAmB;IAEtC;;;OAGG;IACH,cAAc,EAAE,gBAAgB;IAEhC;;;OAGG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,WAAW,EAAE,aAAa;IAE1B;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,YAAY,EAAE,cAAc;IAE5B;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,OAAO,EAAE,SAAS;IAElB;;;OAGG;IACH,OAAO,EAAE,SAAS;IAElB;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,KAAK,EAAE,OAAO;IAEd;;;OAGG;IACH,OAAO,EAAE,SAAS;IAElB;;;OAGG;IACH,YAAY,EAAE,cAAc;IAE5B;;;OAGG;IACH,SAAS,EAAE,WAAW;IAEtB;;;OAGG;IACH,KAAK,EAAE,OAAO;CACL,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The object types concerning Activity Streams.\n * @see https://www.w3.org/TR/activitystreams-core/#model\n * @see https://www.w3.org/TR/activitystreams-vocabulary/\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ActivityStreamsObjectTypes = {\n\t/**\n\t * Object\n\t * @see https://www.w3.org/TR/activitystreams-core/#object\n\t */\n\tObject: \"Object\",\n\n\t/**\n\t * Activity\n\t * @see https://www.w3.org/TR/activitystreams-core/#activities\n\t */\n\tActivity: \"Activity\",\n\n\t/**\n\t * IntransitiveActivity\n\t * @see https://www.w3.org/TR/activitystreams-core/#intransitiveactivities\n\t */\n\tIntransitiveActivity: \"IntransitiveActivity\",\n\n\t/**\n\t * Collection\n\t * @see https://www.w3.org/TR/activitystreams-core/#collections\n\t */\n\tCollection: \"Collection\",\n\n\t/**\n\t * OrderedCollection\n\t * @see https://www.w3.org/TR/activitystreams-core/#collections\n\t */\n\tOrderedCollection: \"OrderedCollection\",\n\n\t/**\n\t * CollectionPage\n\t * @see https://www.w3.org/TR/activitystreams-core/#collections\n\t */\n\tCollectionPage: \"CollectionPage\",\n\n\t/**\n\t * OrderedCollectionPage\n\t * @see https://www.w3.org/TR/activitystreams-core/#collections\n\t */\n\tOrderedCollectionPage: \"OrderedCollectionPage\",\n\n\t/**\n\t * Actor\n\t * @see https://www.w3.org/TR/activitystreams-core/#actors\n\t */\n\tActor: \"Actor\",\n\n\t/**\n\t * Application\n\t * @see https://www.w3.org/TR/activitystreams-core/#actors\n\t */\n\tApplication: \"Application\",\n\n\t/**\n\t * Group\n\t * @see https://www.w3.org/TR/activitystreams-core/#actors\n\t */\n\tGroup: \"Group\",\n\n\t/**\n\t * Organization\n\t * @see https://www.w3.org/TR/activitystreams-core/#actors\n\t */\n\tOrganization: \"Organization\",\n\n\t/**\n\t * Person\n\t * @see https://www.w3.org/TR/activitystreams-core/#actors\n\t */\n\tPerson: \"Person\",\n\n\t/**\n\t * Service\n\t * @see https://www.w3.org/TR/activitystreams-core/#actors\n\t */\n\tService: \"Service\",\n\n\t/**\n\t * Article\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-article\n\t */\n\tArticle: \"Article\",\n\n\t/**\n\t * Audio\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-audio\n\t */\n\tAudio: \"Audio\",\n\n\t/**\n\t * Document\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-document\n\t */\n\tDocument: \"Document\",\n\n\t/**\n\t * Event\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-event\n\t */\n\tEvent: \"Event\",\n\n\t/**\n\t * Image\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-image\n\t */\n\tImage: \"Image\",\n\n\t/**\n\t * Note\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-note\n\t */\n\tNote: \"Note\",\n\n\t/**\n\t * Page\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-page\n\t */\n\tPage: \"Page\",\n\n\t/**\n\t * Question\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-question\n\t */\n\tQuestion: \"Question\",\n\n\t/**\n\t * Place\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-place\n\t */\n\tPlace: \"Place\",\n\n\t/**\n\t * Profile\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-profile\n\t */\n\tProfile: \"Profile\",\n\n\t/**\n\t * Relationship\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-relationship\n\t */\n\tRelationship: \"Relationship\",\n\n\t/**\n\t * Tombstone\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tombstone\n\t */\n\tTombstone: \"Tombstone\",\n\n\t/**\n\t * Video\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-video\n\t */\n\tVideo: \"Video\"\n} as const;\n\n/**\n * The object types concerning Activity Streams.\n */\nexport type ActivityStreamsObjectTypes =\n\t(typeof ActivityStreamsObjectTypes)[keyof typeof ActivityStreamsObjectTypes];\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
/**
|
|
4
4
|
* The types concerning Activity Streams.
|
|
@@ -7,147 +7,205 @@
|
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
8
|
export const ActivityStreamsTypes = {
|
|
9
9
|
/**
|
|
10
|
-
* Activity
|
|
10
|
+
* Activity.
|
|
11
|
+
*
|
|
12
|
+
* Generic base type for activities (actions) in Activity Streams.
|
|
11
13
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-activity
|
|
12
14
|
*/
|
|
13
15
|
Activity: "Activity",
|
|
14
16
|
/**
|
|
15
|
-
* Accept
|
|
17
|
+
* Accept.
|
|
18
|
+
*
|
|
19
|
+
* Indicates that the actor accepts the object.
|
|
16
20
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-accept
|
|
17
21
|
*/
|
|
18
22
|
Accept: "Accept",
|
|
19
23
|
/**
|
|
20
|
-
* Add
|
|
24
|
+
* Add.
|
|
25
|
+
*
|
|
26
|
+
* Indicates that the actor added the object to the target.
|
|
21
27
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-add
|
|
22
28
|
*/
|
|
23
29
|
Add: "Add",
|
|
24
30
|
/**
|
|
25
|
-
* Announce
|
|
31
|
+
* Announce.
|
|
32
|
+
*
|
|
33
|
+
* Indicates that the actor is calling attention to the object.
|
|
26
34
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-announce
|
|
27
35
|
*/
|
|
28
36
|
Announce: "Announce",
|
|
29
37
|
/**
|
|
30
|
-
* Arrive
|
|
38
|
+
* Arrive.
|
|
39
|
+
*
|
|
40
|
+
* Intransitive activity indicating that the actor arrived at a location.
|
|
31
41
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-arrive
|
|
32
42
|
*/
|
|
33
43
|
Arrive: "Arrive",
|
|
34
44
|
/**
|
|
35
|
-
* Block
|
|
45
|
+
* Block.
|
|
46
|
+
*
|
|
47
|
+
* Indicates that the actor is blocking the object (a stronger form of Ignore).
|
|
36
48
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-block
|
|
37
49
|
*/
|
|
38
50
|
Block: "Block",
|
|
39
51
|
/**
|
|
40
|
-
* Create
|
|
52
|
+
* Create.
|
|
53
|
+
*
|
|
54
|
+
* Indicates that the actor has created the object.
|
|
41
55
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-create
|
|
42
56
|
*/
|
|
43
57
|
Create: "Create",
|
|
44
58
|
/**
|
|
45
|
-
* Delete
|
|
59
|
+
* Delete.
|
|
60
|
+
*
|
|
61
|
+
* Indicates that the actor has deleted the object.
|
|
46
62
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-delete
|
|
47
63
|
*/
|
|
48
64
|
Delete: "Delete",
|
|
49
65
|
/**
|
|
50
|
-
* Dislike
|
|
66
|
+
* Dislike.
|
|
67
|
+
*
|
|
68
|
+
* Indicates that the actor dislikes the object.
|
|
51
69
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-dislike
|
|
52
70
|
*/
|
|
53
71
|
Dislike: "Dislike",
|
|
54
72
|
/**
|
|
55
|
-
* Flag
|
|
73
|
+
* Flag.
|
|
74
|
+
*
|
|
75
|
+
* Indicates that the actor is flagging the object (e.g., reporting it).
|
|
56
76
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-flag
|
|
57
77
|
*/
|
|
58
78
|
Flag: "Flag",
|
|
59
79
|
/**
|
|
60
|
-
* Follow
|
|
80
|
+
* Follow.
|
|
81
|
+
*
|
|
82
|
+
* Indicates that the actor is following the object.
|
|
61
83
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-follow
|
|
62
84
|
*/
|
|
63
85
|
Follow: "Follow",
|
|
64
86
|
/**
|
|
65
|
-
* Ignore
|
|
87
|
+
* Ignore.
|
|
88
|
+
*
|
|
89
|
+
* Indicates that the actor is ignoring the object.
|
|
66
90
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-ignore
|
|
67
91
|
*/
|
|
68
92
|
Ignore: "Ignore",
|
|
69
93
|
/**
|
|
70
|
-
* Invite
|
|
94
|
+
* Invite.
|
|
95
|
+
*
|
|
96
|
+
* Specialization of Offer in which the actor is extending an invitation.
|
|
71
97
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-invite
|
|
72
98
|
*/
|
|
73
99
|
Invite: "Invite",
|
|
74
100
|
/**
|
|
75
|
-
* Join
|
|
101
|
+
* Join.
|
|
102
|
+
*
|
|
103
|
+
* Indicates that the actor has joined the object.
|
|
76
104
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-join
|
|
77
105
|
*/
|
|
78
106
|
Join: "Join",
|
|
79
107
|
/**
|
|
80
|
-
* Leave
|
|
108
|
+
* Leave.
|
|
109
|
+
*
|
|
110
|
+
* Indicates that the actor has left the object.
|
|
81
111
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-leave
|
|
82
112
|
*/
|
|
83
113
|
Leave: "Leave",
|
|
84
114
|
/**
|
|
85
|
-
* Like
|
|
115
|
+
* Like.
|
|
116
|
+
*
|
|
117
|
+
* Indicates that the actor likes, recommends, or endorses the object.
|
|
86
118
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-like
|
|
87
119
|
*/
|
|
88
120
|
Like: "Like",
|
|
89
121
|
/**
|
|
90
|
-
* Listen
|
|
122
|
+
* Listen.
|
|
123
|
+
*
|
|
124
|
+
* Indicates that the actor has listened to the object.
|
|
91
125
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-listen
|
|
92
126
|
*/
|
|
93
127
|
Listen: "Listen",
|
|
94
128
|
/**
|
|
95
|
-
* Move
|
|
129
|
+
* Move.
|
|
130
|
+
*
|
|
131
|
+
* Indicates that the actor has moved the object from `origin` to `target`.
|
|
96
132
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-move
|
|
97
133
|
*/
|
|
98
134
|
Move: "Move",
|
|
99
135
|
/**
|
|
100
|
-
* Offer
|
|
136
|
+
* Offer.
|
|
137
|
+
*
|
|
138
|
+
* Indicates that the actor is offering the object (optionally to a target).
|
|
101
139
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-offer
|
|
102
140
|
*/
|
|
103
141
|
Offer: "Offer",
|
|
104
142
|
/**
|
|
105
|
-
* Question
|
|
143
|
+
* Question.
|
|
144
|
+
*
|
|
145
|
+
* Intransitive activity representing a question; can express options via `oneOf`/`anyOf`.
|
|
106
146
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-question
|
|
107
147
|
*/
|
|
108
148
|
Question: "Question",
|
|
109
149
|
/**
|
|
110
|
-
* Reject
|
|
150
|
+
* Reject.
|
|
151
|
+
*
|
|
152
|
+
* Indicates that the actor is rejecting the object.
|
|
111
153
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-reject
|
|
112
154
|
*/
|
|
113
155
|
Reject: "Reject",
|
|
114
156
|
/**
|
|
115
|
-
* Read
|
|
157
|
+
* Read.
|
|
158
|
+
*
|
|
159
|
+
* Indicates that the actor has read the object.
|
|
116
160
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-read
|
|
117
161
|
*/
|
|
118
162
|
Read: "Read",
|
|
119
163
|
/**
|
|
120
|
-
* Remove
|
|
164
|
+
* Remove.
|
|
165
|
+
*
|
|
166
|
+
* Indicates that the actor is removing the object (optionally from an origin context).
|
|
121
167
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-remove
|
|
122
168
|
*/
|
|
123
169
|
Remove: "Remove",
|
|
124
170
|
/**
|
|
125
|
-
* TentativeReject
|
|
171
|
+
* TentativeReject.
|
|
172
|
+
*
|
|
173
|
+
* Specialization of Reject indicating that the rejection is tentative.
|
|
126
174
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tentativereject
|
|
127
175
|
*/
|
|
128
176
|
TentativeReject: "TentativeReject",
|
|
129
177
|
/**
|
|
130
|
-
* TentativeAccept
|
|
178
|
+
* TentativeAccept.
|
|
179
|
+
*
|
|
180
|
+
* Specialization of Accept indicating that the acceptance is tentative.
|
|
131
181
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tentativeaccept
|
|
132
182
|
*/
|
|
133
183
|
TentativeAccept: "TentativeAccept",
|
|
134
184
|
/**
|
|
135
|
-
* Travel
|
|
185
|
+
* Travel.
|
|
186
|
+
*
|
|
187
|
+
* Intransitive activity indicating that the actor is travelling to `target` from `origin`.
|
|
136
188
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-travel
|
|
137
189
|
*/
|
|
138
190
|
Travel: "Travel",
|
|
139
191
|
/**
|
|
140
|
-
* Undo
|
|
192
|
+
* Undo.
|
|
193
|
+
*
|
|
194
|
+
* Indicates that the actor is undoing a previous activity.
|
|
141
195
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-undo
|
|
142
196
|
*/
|
|
143
197
|
Undo: "Undo",
|
|
144
198
|
/**
|
|
145
|
-
* Update
|
|
199
|
+
* Update.
|
|
200
|
+
*
|
|
201
|
+
* Indicates that the actor has updated the object.
|
|
146
202
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-update
|
|
147
203
|
*/
|
|
148
204
|
Update: "Update",
|
|
149
205
|
/**
|
|
150
|
-
* View
|
|
206
|
+
* View.
|
|
207
|
+
*
|
|
208
|
+
* Indicates that the actor has viewed the object.
|
|
151
209
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-view
|
|
152
210
|
*/
|
|
153
211
|
View: "View"
|