mirror of
https://github.com/versia-pub/docs.git
synced 2026-03-13 02:49:16 +01:00
refactor: 🚚 Do full rename of Lysand to Versia
This commit is contained in:
parent
a106e7acef
commit
6414337a30
21 changed files with 88 additions and 88 deletions
|
|
@ -1,16 +1,16 @@
|
|||
export const metadata = {
|
||||
title: 'Entities',
|
||||
description:
|
||||
'Entities are simple JSON objects that represent the core data structures in Lysand.',
|
||||
'Entities are simple JSON objects that represent the core data structures in Versia.',
|
||||
}
|
||||
|
||||
# Entities
|
||||
|
||||
Entities are the foundation of the Lysand protocol. A similar concept to entities are the [ActivityStreams](https://www.w3.org/TR/activitystreams-core/) objects, which are used to represent activities in the [ActivityPub](https://www.w3.org/TR/activitypub/) protocol. {{ className: 'lead' }}
|
||||
Entities are the foundation of the Versia protocol. A similar concept to entities are the [ActivityStreams](https://www.w3.org/TR/activitystreams-core/) objects, which are used to represent activities in the [ActivityPub](https://www.w3.org/TR/activitypub/) protocol. {{ className: 'lead' }}
|
||||
|
||||
## Entity Definition
|
||||
|
||||
An entity is a simple JSON object that represents a core data structure in Lysand. Entities are used to represent various types of data, such as users, notes, and more. Each entity has a unique `id` property that is used to identify it within the instance.
|
||||
An entity is a simple JSON object that represents a core data structure in Versia. Entities are used to represent various types of data, such as users, notes, and more. Each entity has a unique `id` property that is used to identify it within the instance.
|
||||
|
||||
Any field in an entity not marked as `required` may be omitted or set to `null`.
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ Any field in an entity not marked as `required` may be omitted or set to `null`.
|
|||
Unique identifier for the entity. Must be unique within the instance. Can be any string. Max of 512 UTF-8 characters.
|
||||
</Property>
|
||||
<Property name="type" type="string" required={true}>
|
||||
Type of the entity. Only types defined in the Lysand protocol are allowed. Use an [Extension](/extensions) if you want to define custom types.
|
||||
Type of the entity. Only types defined in the Versia protocol are allowed. Use an [Extension](/extensions) if you want to define custom types.
|
||||
</Property>
|
||||
<Property name="created_at" type="ISO8601" required={true} typeLink="/types#iso-8601">
|
||||
Date and time when the entity was created. Must be an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) formatted string.
|
||||
|
|
@ -67,7 +67,7 @@ Any field in an entity not marked as `required` may be omitted or set to `null`.
|
|||
"zlorb_type": "giant",
|
||||
"zlorb_size": "huge"
|
||||
},
|
||||
"org.lysand:location": {
|
||||
"pub.versia:location": {
|
||||
"latitude": 37.7749,
|
||||
"longitude": -122.4194
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue