@twin.org/standards-w3c-activity-streams 0.0.3-next.6 → 0.0.3-next.7
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/dist/es/dataTypes/activityStreamsDataTypes.js +1 -1
- package/dist/es/dataTypes/activityStreamsDataTypes.js.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IActivityStreamsActivity.js +2 -0
- package/dist/es/models/IActivityStreamsActivity.js.map +1 -0
- package/dist/es/schemas/{Activity.json → ActivityStreamsActivity.json} +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/models/{IActivity.d.ts → IActivityStreamsActivity.d.ts} +1 -1
- package/docs/changelog.md +7 -0
- package/docs/reference/index.md +1 -1
- package/docs/reference/interfaces/{IActivity.md → IActivityStreamsActivity.md} +1 -1
- package/package.json +1 -1
- package/dist/es/models/IActivity.js +0 -2
- package/dist/es/models/IActivity.js.map +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
4
4
|
import { ActivityStreamsContexts } from "../models/activityStreamsContexts.js";
|
|
5
5
|
import { ActivityStreamsTypes } from "../models/activityStreamsTypes.js";
|
|
6
|
-
import ActivitySchema from "../schemas/
|
|
6
|
+
import ActivitySchema from "../schemas/ActivityStreamsActivity.json" with { type: "json" };
|
|
7
7
|
import ActivityStreamsTypesSchema from "../schemas/ActivityStreamsTypes.json" with { type: "json" };
|
|
8
8
|
/**
|
|
9
9
|
* Data Type registration for the Data Space Connector
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activityStreamsDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/activityStreamsDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAG7D,OAAO,EAAE,uBAAuB,EAAE,MA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AAI,EAAE,CAAC,0BAAyC;SACjE,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { nameof } from \"@twin.org/nameof\";\nimport type { JSONSchema7 } from \"json-schema\";\nimport { ActivityStreamsContexts } from \"../models/activityStreamsContexts.js\";\nimport { ActivityStreamsTypes } from \"../models/activityStreamsTypes.js\";\nimport ActivitySchema from \"../schemas/ActivityStreamsActivity.json\" with { type: \"json\" };\nimport ActivityStreamsTypesSchema from \"../schemas/ActivityStreamsTypes.json\" with { type: \"json\" };\n\n/**\n * Data Type registration for the Data Space Connector\n */\nexport abstract class ActivityStreamsDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tfor (const activityStreamsType of Object.values(ActivityStreamsTypes)) {\n\t\t\tDataTypeHandlerFactory.register(\n\t\t\t\t`${ActivityStreamsContexts.ActivityStreamsNamespace}${activityStreamsType}`,\n\t\t\t\t() => ({\n\t\t\t\t\tcontext: ActivityStreamsContexts.ActivityStreamsNamespace,\n\t\t\t\t\ttype: `${activityStreamsType}`,\n\t\t\t\t\tdefaultValue: {},\n\t\t\t\t\tjsonSchema: async () => ActivitySchema as JSONSchema7\n\t\t\t\t})\n\t\t\t);\n\t\t}\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ActivityStreamsContexts.TwinContext}/${nameof<ActivityStreamsTypes>()}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ActivityStreamsContexts.TwinContext,\n\t\t\t\ttype: nameof<ActivityStreamsTypes>(),\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => ActivityStreamsTypesSchema as JSONSchema7\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2024 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
export * from "./dataTypes/activityStreamsDataTypes.js";
|
|
4
|
-
export * from "./models/
|
|
4
|
+
export * from "./models/IActivityStreamsActivity.js";
|
|
5
5
|
export * from "./models/activityStreamsContexts.js";
|
|
6
6
|
export * from "./models/activityStreamsContextType.js";
|
|
7
7
|
export * from "./models/activityStreamsTypes.js";
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nexport * from \"./dataTypes/activityStreamsDataTypes.js\";\nexport * from \"./models/IActivityStreamsActivity.js\";\nexport * from \"./models/activityStreamsContexts.js\";\nexport * from \"./models/activityStreamsContextType.js\";\nexport * from \"./models/activityStreamsTypes.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IActivityStreamsActivity.js","sourceRoot":"","sources":["../../../src/models/IActivityStreamsActivity.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdLanguageMap, IJsonLdNodeObject, IJsonLdObject } from \"@twin.org/data-json-ld\";\nimport type { ActivityStreamsContextType } from \"./activityStreamsContextType.js\";\nimport type { ActivityStreamsTypes } from \"./activityStreamsTypes.js\";\n\n/**\n * A W3C Activity from Activity Streams\n * @see https://www.w3.org/TR/activitystreams-core/#activities\n */\nexport interface IActivityStreamsActivity extends IJsonLdNodeObject {\n\t/**\n\t * The LD Context.\n\t *\n\t */\n\t\"@context\": ActivityStreamsContextType;\n\n\t/**\n\t * Activity Type.\n\t */\n\ttype: ObjectOrArray<ActivityStreamsTypes | string>;\n\n\t/**\n\t * The generator of the Activity.\n\t */\n\tgenerator?: IJsonLdObject[\"@id\"] | IJsonLdNodeObject;\n\n\t/**\n\t * The Actor behind the Activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-actor\n\t */\n\tactor: IJsonLdObject[\"@id\"] | IJsonLdNodeObject;\n\n\t/**\n\t * The object affected by the Activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object\n\t */\n\tobject: IJsonLdNodeObject;\n\n\t/**\n\t * The target of the Activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-target\n\t */\n\ttarget?: IJsonLdNodeObject;\n\n\t/**\n\t * Summary of the Activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-summary\n\t */\n\tsummary?: string | IJsonLdLanguageMap;\n\n\t/**\n\t * Result of the Activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-result\n\t */\n\tresult?: IJsonLdNodeObject;\n\n\t/**\n\t * Activity's origin.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-origin\n\t */\n\torigin?: IJsonLdObject[\"@id\"] | IJsonLdNodeObject;\n\n\t/**\n\t * The date and time at which the object was updated.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-updated\n\t */\n\tupdated: string;\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://schema.twindev.org/w3c-activity-streams/
|
|
3
|
+
"$id": "https://schema.twindev.org/w3c-activity-streams/ActivityStreamsActivity",
|
|
4
4
|
"description": "A W3C Activity from Activity Streams",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./dataTypes/activityStreamsDataTypes.js";
|
|
2
|
-
export * from "./models/
|
|
2
|
+
export * from "./models/IActivityStreamsActivity.js";
|
|
3
3
|
export * from "./models/activityStreamsContexts.js";
|
|
4
4
|
export * from "./models/activityStreamsContextType.js";
|
|
5
5
|
export * from "./models/activityStreamsTypes.js";
|
|
@@ -6,7 +6,7 @@ import type { ActivityStreamsTypes } from "./activityStreamsTypes.js";
|
|
|
6
6
|
* A W3C Activity from Activity Streams
|
|
7
7
|
* @see https://www.w3.org/TR/activitystreams-core/#activities
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface IActivityStreamsActivity extends IJsonLdNodeObject {
|
|
10
10
|
/**
|
|
11
11
|
* The LD Context.
|
|
12
12
|
*
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.7](https://github.com/twinfoundation/standards/compare/standards-w3c-activity-streams-v0.0.3-next.6...standards-w3c-activity-streams-v0.0.3-next.7) (2026-01-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **standards-w3c-activity-streams:** Synchronize repo versions
|
|
9
|
+
|
|
3
10
|
## [0.0.3-next.6](https://github.com/twinfoundation/standards/compare/standards-w3c-activity-streams-v0.0.3-next.5...standards-w3c-activity-streams-v0.0.3-next.6) (2025-12-03)
|
|
4
11
|
|
|
5
12
|
|
package/docs/reference/index.md
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IActivity.js","sourceRoot":"","sources":["../../../src/models/IActivity.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdLanguageMap, IJsonLdNodeObject, IJsonLdObject } from \"@twin.org/data-json-ld\";\nimport type { ActivityStreamsContextType } from \"./activityStreamsContextType.js\";\nimport type { ActivityStreamsTypes } from \"./activityStreamsTypes.js\";\n\n/**\n * A W3C Activity from Activity Streams\n * @see https://www.w3.org/TR/activitystreams-core/#activities\n */\nexport interface IActivity extends IJsonLdNodeObject {\n\t/**\n\t * The LD Context.\n\t *\n\t */\n\t\"@context\": ActivityStreamsContextType;\n\n\t/**\n\t * Activity Type.\n\t */\n\ttype: ObjectOrArray<ActivityStreamsTypes | string>;\n\n\t/**\n\t * The generator of the Activity.\n\t */\n\tgenerator?: IJsonLdObject[\"@id\"] | IJsonLdNodeObject;\n\n\t/**\n\t * The Actor behind the Activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-actor\n\t */\n\tactor: IJsonLdObject[\"@id\"] | IJsonLdNodeObject;\n\n\t/**\n\t * The object affected by the Activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object\n\t */\n\tobject: IJsonLdNodeObject;\n\n\t/**\n\t * The target of the Activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-target\n\t */\n\ttarget?: IJsonLdNodeObject;\n\n\t/**\n\t * Summary of the Activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-summary\n\t */\n\tsummary?: string | IJsonLdLanguageMap;\n\n\t/**\n\t * Result of the Activity.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-result\n\t */\n\tresult?: IJsonLdNodeObject;\n\n\t/**\n\t * Activity's origin.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-origin\n\t */\n\torigin?: IJsonLdObject[\"@id\"] | IJsonLdNodeObject;\n\n\t/**\n\t * The date and time at which the object was updated.\n\t * @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-updated\n\t */\n\tupdated: string;\n}\n"]}
|