add source field

pull/3/head
SiRanWeb 2022-11-02 16:38:32 +03:00
rodzic 41ed7b6d60
commit 6bcbd2dfc2
2 zmienionych plików z 17 dodań i 2 usunięć

Wyświetl plik

@ -125,4 +125,8 @@ export type OrderedCollectionItemsValue = string | OrderedCollectionPage | Link;
export type OrderedCollectionPagePartOfValue = string | OrderedCollection | Link;
export type OrderedCollectionPageNextValue = string | OrderedCollection | Link;
export type OrderedCollectionPagePrevValue = string | OrderedCollection | Link;
export type StartIndexValue = number;
export type StartIndexValue = number;
export type SourceValue = {
content: ContentValue,
mediaType?: MediaType,
}

Wyświetl plik

@ -28,7 +28,7 @@ import {
SummaryValue,
SummaryMapValue,
UpdatedValue,
DurationValue,
DurationValue, SourceValue,
} from "../../common/common.types";
export interface APObjectFields {
@ -323,4 +323,15 @@ export interface APObjectFields {
* P2Y6M5DT12H35M30S (2 years, 6 months, 5 days, 12 hours, 35 minutes, 30 seconds)
*/
duration?: DurationValue;
/**
* ActivityPub extends the Object by supplying the source property. The source property is intended to
* convey some sort of source from which the content markup was derived, as a form of provenance, or to
* support future editing by clients. In general, clients do the conversion from source to content, not
* the other way around.
* The value of source is itself an object which uses its own content and mediaType fields to supply source information.
*
* {@link https://www.w3.org/TR/activitypub/#source-property Docs}
*/
source?: SourceValue;
}