feat: ActivityPubのプロパティを追加

This commit is contained in:
usbharu 2024-09-25 23:00:05 +09:00
parent e8b48fab9a
commit ed26581655
Signed by: usbharu
GPG Key ID: 95CBCF7046307B77
132 changed files with 616 additions and 396 deletions

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface CollectionOrLink : OrLink

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface ImageOrLink : OrLink

View File

@ -1,8 +0,0 @@
package dev.usbharu.activitystreams
import java.net.URI
interface JsonLd {
var type: List<String>
var id: URI
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface ObjectOrLink : OrLink {
}

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface OrLink

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface UriOrLink : OrLink

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface UriOrUnits

View File

@ -1,5 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Accept : Activity

View File

@ -1,5 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Add : Activity

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Announce : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.IntransitiveActivity
interface Arrive : IntransitiveActivity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams.activity
interface Block : Ignore {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Create : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Delete : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Dislike : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Flag : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Follow : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Ignore : Activity {
}

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams.activity
interface Invite : Offer

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Join : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Leave : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Like : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Listen : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Move : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Offer : Activity {
}

View File

@ -1,5 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.IntransitiveActivity
interface Question : IntransitiveActivity

View File

@ -1,5 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Read : Activity

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Reject : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Remove : Activity {
}

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams.activity
interface TentativeAccept : Accept

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams.activity
interface TentativeReject : Reject

View File

@ -1,5 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.IntransitiveActivity
interface Travel : IntransitiveActivity

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Undo : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Update : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface View : Activity {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.actor
import dev.usbharu.activitystreams.core.Object
interface Application : Object {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.actor
import dev.usbharu.activitystreams.core.Object
interface Group : Object {
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.actor
import dev.usbharu.activitystreams.core.Object
interface Organization : Object {
}

View File

@ -1,5 +0,0 @@
package dev.usbharu.activitystreams.actor
import dev.usbharu.activitystreams.core.Object
interface Person : Object {}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.actor
import dev.usbharu.activitystreams.core.Object
interface Service : Object {
}

View File

@ -1,17 +0,0 @@
package dev.usbharu.activitystreams.core
import dev.usbharu.activitystreams.ObjectOrLink
sealed interface InternalActivity : Object {
var actor: ObjectOrLink?
var target: ObjectOrLink?
var result: ObjectOrLink?
var origin: ObjectOrLink?
var instrument: ObjectOrLink?
}
interface Activity : InternalActivity {
var `object`: ObjectOrLink?
}
interface IntransitiveActivity : InternalActivity

View File

@ -1,13 +0,0 @@
package dev.usbharu.activitystreams.core
import dev.usbharu.activitystreams.CollectionOrLink
import dev.usbharu.activitystreams.CollectionPageOrLink
import dev.usbharu.activitystreams.ObjectOrLink
interface Collection : Object, CollectionOrLink {
var totalItems: UInt?
var current: CollectionPageOrLink?
var first: CollectionPageOrLink?
var last: CollectionPageOrLink?
var items: List<ObjectOrLink>
}

View File

@ -1,10 +0,0 @@
package dev.usbharu.activitystreams.core
import dev.usbharu.activitystreams.CollectionOrLink
import dev.usbharu.activitystreams.CollectionPageOrLink
interface CollectionPage : CollectionPageOrLink, Collection {
var partOf: CollectionOrLink?
var next: CollectionPageOrLink?
var prev: CollectionPageOrLink?
}

View File

@ -1,36 +0,0 @@
package dev.usbharu.activitystreams.core
import dev.usbharu.activitystreams.*
import dev.usbharu.activitystreams.other.LangString
import dev.usbharu.activitystreams.other.MimeMediaType
import java.time.Duration
import java.time.OffsetDateTime
interface Object : ObjectOrLink,JsonLd {
var attachment: ObjectOrLink?
var attributedTo: ObjectOrLink?
var audience: ObjectOrLink?
var content: LangString?
var context: ObjectOrLink?
var name: LangString?
var endTime: OffsetDateTime?
var generator: ObjectOrLink?
var icon: ImageOrLink?
var image: ImageOrLink?
var inReplyTo: ObjectOrLink?
var location: ObjectOrLink?
var preview: ObjectOrLink?
var published: OffsetDateTime?
var replies: Collection?
var startTime: OffsetDateTime?
var summary: LangString?
var tag: ObjectOrLink?
var updated: OffsetDateTime?
var url: UriOrLink?
var to: ObjectOrLink?
var bto: ObjectOrLink?
var cc: ObjectOrLink?
var bcc: ObjectOrLink?
var mediaType: MimeMediaType?
var duration: Duration?
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams.core
interface OrderedCollection : Collection {
}

View File

@ -1,5 +0,0 @@
package dev.usbharu.activitystreams.core
interface OrderedCollectionPage : OrderedCollection, CollectionPage {
var startIndex: UInt?
}

View File

@ -0,0 +1,50 @@
package dev.usbharu.activitystreams.impl.model.activity
import dev.usbharu.activitystreams.model.ImageOrLink
import dev.usbharu.activitystreams.model.ObjectOrLink
import dev.usbharu.activitystreams.model.UriOrLink
import dev.usbharu.activitystreams.model.activity.Create
import dev.usbharu.activitystreams.model.core.Collection
import dev.usbharu.activitystreams.model.other.LangString
import dev.usbharu.activitystreams.model.other.MimeMediaType
import java.net.URI
import java.time.Duration
import java.time.OffsetDateTime
class CreateImpl(
override var type: List<URI>,
override var `object`: ObjectOrLink?,
override var actor: List<ObjectOrLink>,
override var target: List<ObjectOrLink>,
override var result: ObjectOrLink?,
override var origin: ObjectOrLink?,
override var instrument: ObjectOrLink?,
override var attachment: List<ObjectOrLink>,
override var attributedTo: List<ObjectOrLink>,
override var audience: List<ObjectOrLink>,
override var content: LangString?,
override var context: List<ObjectOrLink>,
override var name: LangString?,
override var endTime: OffsetDateTime?,
override var generator: List<ObjectOrLink>,
override var icon: List<ImageOrLink>,
override var image: List<ImageOrLink>,
override var inReplyTo: List<ObjectOrLink>,
override var location: ObjectOrLink?,
override var preview: ObjectOrLink?,
override var published: OffsetDateTime?,
override var replies: Collection?,
override var startTime: OffsetDateTime?,
override var summary: LangString?,
override var tag: List<ObjectOrLink>,
override var updated: OffsetDateTime?,
override var url: List<UriOrLink>,
override var to: List<ObjectOrLink>,
override var bto: List<ObjectOrLink>,
override var cc: List<ObjectOrLink>,
override var bcc: List<ObjectOrLink>,
override var mediaType: MimeMediaType?,
override var duration: Duration?,
override var id: URI?,
override var source: ObjectOrLink?
) : Create

View File

@ -0,0 +1,61 @@
package dev.usbharu.activitystreams.impl.model.actor
import dev.usbharu.activitystreams.model.ImageOrLink
import dev.usbharu.activitystreams.model.ObjectOrLink
import dev.usbharu.activitystreams.model.UriOrLink
import dev.usbharu.activitystreams.model.actor.Person
import dev.usbharu.activitystreams.model.core.Collection
import dev.usbharu.activitystreams.model.other.LangString
import dev.usbharu.activitystreams.model.other.MimeMediaType
import java.net.URI
import java.time.Duration
import java.time.OffsetDateTime
class PersonImpl(
override var type: List<URI>,
override var attachment: List<ObjectOrLink>,
override var attributedTo: List<ObjectOrLink>,
override var audience: List<ObjectOrLink>,
override var content: LangString?,
override var context: List<ObjectOrLink>,
override var name: LangString?,
override var endTime: OffsetDateTime?,
override var generator: List<ObjectOrLink>,
override var icon: List<ImageOrLink>,
override var image: List<ImageOrLink>,
override var inReplyTo: List<ObjectOrLink>,
override var location: ObjectOrLink?,
override var preview: ObjectOrLink?,
override var published: OffsetDateTime?,
override var replies: Collection?,
override var startTime: OffsetDateTime?,
override var summary: LangString?,
override var tag: List<ObjectOrLink>,
override var updated: OffsetDateTime?,
override var url: List<UriOrLink>,
override var to: List<ObjectOrLink>,
override var bto: List<ObjectOrLink>,
override var cc: List<ObjectOrLink>,
override var bcc: List<ObjectOrLink>,
override var mediaType: MimeMediaType?,
override var duration: Duration?,
override var id: URI?,
override var source: ObjectOrLink?,
override var endpoints: List<URI>,
override var following: URI?,
override var followers: URI?,
override var inbox: URI?,
override var outbox: URI?,
override var liked: URI?,
override var shared: URI?,
override var likes: URI?,
override var oauthAuthorizationEndpoint: URI?,
override var oauthTokenEndpoint: URI?,
override var preferredUsername: String?,
override var provideClientKey: URI?,
override var proxyUrl: URI?,
override var sharedInbox: URI?,
override var signClientKey: URI?,
override var streams: URI?,
override var alsoKnownAs: List<URI>
) : Person

View File

@ -0,0 +1,45 @@
package dev.usbharu.activitystreams.impl.model.`object`
import dev.usbharu.activitystreams.model.ImageOrLink
import dev.usbharu.activitystreams.model.ObjectOrLink
import dev.usbharu.activitystreams.model.UriOrLink
import dev.usbharu.activitystreams.model.core.Collection
import dev.usbharu.activitystreams.model.`object`.Note
import dev.usbharu.activitystreams.model.other.LangString
import dev.usbharu.activitystreams.model.other.MimeMediaType
import java.net.URI
import java.time.Duration
import java.time.OffsetDateTime
class NoteImpl(
override var type: List<URI>,
override var attachment: List<ObjectOrLink>,
override var attributedTo: List<ObjectOrLink>,
override var audience: List<ObjectOrLink>,
override var content: LangString?,
override var context: List<ObjectOrLink>,
override var name: LangString?,
override var endTime: OffsetDateTime?,
override var generator: List<ObjectOrLink>,
override var icon: List<ImageOrLink>,
override var image: List<ImageOrLink>,
override var inReplyTo: List<ObjectOrLink>,
override var location: ObjectOrLink?,
override var preview: ObjectOrLink?,
override var published: OffsetDateTime?,
override var replies: Collection?,
override var startTime: OffsetDateTime?,
override var summary: LangString?,
override var tag: List<ObjectOrLink>,
override var updated: OffsetDateTime?,
override var url: List<UriOrLink>,
override var to: List<ObjectOrLink>,
override var bto: List<ObjectOrLink>,
override var cc: List<ObjectOrLink>,
override var bcc: List<ObjectOrLink>,
override var mediaType: MimeMediaType?,
override var duration: Duration?,
override var id: URI?,
override var source: ObjectOrLink?
) : Note {
}

View File

@ -0,0 +1,27 @@
package dev.usbharu.activitystreams.impl.model.other
import dev.usbharu.activitystreams.model.other.LangString
import java.util.*
class LangStringImpl(private val value: String?, private val map: Map<String, String>) : LangString {
override fun getValue(): String? = value
override fun getValueByLanguageTag(locale: Locale): String? = map[locale.toLanguageTag()]
override val entries: Set<Map.Entry<String, String>>
get() = map.entries
override val keys: Set<String>
get() = map.keys
override val size: Int
get() = map.size
override val values: Collection<String>
get() = map.values
override fun containsKey(key: String): Boolean = map.containsKey(key)
override fun containsValue(value: String): Boolean = map.containsValue(value)
override fun get(key: String): String? = map[key]
override fun isEmpty(): Boolean = map.isEmpty()
}

View File

@ -0,0 +1,10 @@
package dev.usbharu.activitystreams.impl.type
import dev.usbharu.activitystreams.model.JsonLd
import java.net.URI
class TypeFactory {
fun factory(uri: String): List<JsonLd> {
}
}

View File

@ -1,6 +0,0 @@
package dev.usbharu.activitystreams.link
import dev.usbharu.activitystreams.core.Link
interface Mention : Link {
}

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.model
interface CollectionOrLink : OrLink

View File

@ -1,4 +1,4 @@
package dev.usbharu.activitystreams
package dev.usbharu.activitystreams.model
interface CollectionPageOrLink : OrLink {
}

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.model
interface ImageOrLink : OrLink

View File

@ -0,0 +1,9 @@
package dev.usbharu.activitystreams.model
import java.net.URI
interface JsonLd {
var type: List<URI>
var id: URI?
var value: Any
}

View File

@ -0,0 +1,4 @@
package dev.usbharu.activitystreams.model
interface ObjectOrLink : OrLink {
}

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.model
interface OrLink

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.model
interface UriOrLink : OrLink

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.model
interface UriOrUnits

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Accept : dev.usbharu.activitystreams.model.core.Activity

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Add : dev.usbharu.activitystreams.model.core.Activity

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Announce : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.IntransitiveActivity
interface Arrive : dev.usbharu.activitystreams.model.core.IntransitiveActivity {
}

View File

@ -0,0 +1,4 @@
package dev.usbharu.activitystreams.model.activity
interface Block : dev.usbharu.activitystreams.model.activity.Ignore {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Create : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Delete : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Dislike : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Flag : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Follow : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Ignore : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.model.activity
interface Invite : dev.usbharu.activitystreams.model.activity.Offer

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Join : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Leave : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Like : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Listen : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Move : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Offer : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.IntransitiveActivity
interface Question : dev.usbharu.activitystreams.model.core.IntransitiveActivity

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Read : dev.usbharu.activitystreams.model.core.Activity

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Reject : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Remove : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.model.activity
interface TentativeAccept : dev.usbharu.activitystreams.model.activity.Accept

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.model.activity
interface TentativeReject : dev.usbharu.activitystreams.model.activity.Reject

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.IntransitiveActivity
interface Travel : dev.usbharu.activitystreams.model.core.IntransitiveActivity

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Undo : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface Update : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.activity
import dev.usbharu.activitystreams.model.core.Activity
interface View : dev.usbharu.activitystreams.model.core.Activity {
}

View File

@ -0,0 +1,23 @@
package dev.usbharu.activitystreams.model.actor
import java.net.URI
interface Actor {
var endpoints: List<URI>
var following: URI?
var followers: URI?
var inbox: URI?
var outbox: URI?
var liked: URI?
var shared: URI?
var likes: URI?
var oauthAuthorizationEndpoint: URI?
var oauthTokenEndpoint: URI?
var preferredUsername: String?
var provideClientKey: URI?
var proxyUrl:URI?
var sharedInbox:URI?
var signClientKey:URI?
var streams:URI?
var alsoKnownAs:List<URI>
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.actor
import dev.usbharu.activitystreams.model.core.Object
interface Application : dev.usbharu.activitystreams.model.core.Object {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.actor
import dev.usbharu.activitystreams.model.core.Object
interface Group : dev.usbharu.activitystreams.model.core.Object {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.actor
import dev.usbharu.activitystreams.model.core.Object
interface Organization : dev.usbharu.activitystreams.model.core.Object {
}

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.model.actor
import dev.usbharu.activitystreams.model.core.Object
interface Person : Object,Actor

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.model.actor
import dev.usbharu.activitystreams.model.core.Object
interface Service : dev.usbharu.activitystreams.model.core.Object {
}

View File

@ -0,0 +1,17 @@
package dev.usbharu.activitystreams.model.core
import dev.usbharu.activitystreams.model.ObjectOrLink
sealed interface InternalActivity : dev.usbharu.activitystreams.model.core.Object {
var actor: List<ObjectOrLink>
var target: List<ObjectOrLink>
var result: ObjectOrLink?
var origin: ObjectOrLink?
var instrument: ObjectOrLink?
}
interface Activity : dev.usbharu.activitystreams.model.core.InternalActivity {
var `object`: ObjectOrLink?
}
interface IntransitiveActivity : dev.usbharu.activitystreams.model.core.InternalActivity

View File

@ -0,0 +1,13 @@
package dev.usbharu.activitystreams.model.core
import dev.usbharu.activitystreams.model.CollectionOrLink
import dev.usbharu.activitystreams.model.CollectionPageOrLink
import dev.usbharu.activitystreams.model.ObjectOrLink
interface Collection : dev.usbharu.activitystreams.model.core.Object, CollectionOrLink {
var totalItems: UInt?
var current: CollectionPageOrLink?
var first: CollectionPageOrLink?
var last: CollectionPageOrLink?
var items: List<ObjectOrLink>
}

View File

@ -0,0 +1,10 @@
package dev.usbharu.activitystreams.model.core
import dev.usbharu.activitystreams.model.CollectionOrLink
import dev.usbharu.activitystreams.model.CollectionPageOrLink
interface CollectionPage : CollectionPageOrLink, dev.usbharu.activitystreams.model.core.Collection {
var partOf: CollectionOrLink?
var next: CollectionPageOrLink?
var prev: CollectionPageOrLink?
}

View File

@ -1,8 +1,8 @@
package dev.usbharu.activitystreams.core
package dev.usbharu.activitystreams.model.core
import dev.usbharu.activitystreams.*
import dev.usbharu.activitystreams.other.LangString
import dev.usbharu.activitystreams.other.MimeMediaType
import dev.usbharu.activitystreams.model.*
import dev.usbharu.activitystreams.model.other.LangString
import dev.usbharu.activitystreams.model.other.MimeMediaType
import java.net.URI
import java.util.Locale

View File

@ -0,0 +1,40 @@
package dev.usbharu.activitystreams.model.core
import dev.usbharu.activitystreams.model.ImageOrLink
import dev.usbharu.activitystreams.model.JsonLd
import dev.usbharu.activitystreams.model.ObjectOrLink
import dev.usbharu.activitystreams.model.UriOrLink
import dev.usbharu.activitystreams.model.other.LangString
import dev.usbharu.activitystreams.model.other.MimeMediaType
import java.time.Duration
import java.time.OffsetDateTime
interface Object : ObjectOrLink, JsonLd {
var attachment: List<ObjectOrLink>
var attributedTo: List<ObjectOrLink>
var audience: List<ObjectOrLink>
var content: LangString?
var context: List<ObjectOrLink>
var name: LangString?
var endTime: OffsetDateTime?
var generator: List<ObjectOrLink>
var icon: List<ImageOrLink>
var image: List<ImageOrLink>
var inReplyTo: List<ObjectOrLink>
var location: ObjectOrLink?
var preview: ObjectOrLink?
var published: OffsetDateTime?
var replies: Collection?
var startTime: OffsetDateTime?
var summary: LangString?
var tag: List<ObjectOrLink>
var updated: OffsetDateTime?
var url: List<UriOrLink>
var to: List<ObjectOrLink>
var bto: List<ObjectOrLink>
var cc: List<ObjectOrLink>
var bcc: List<ObjectOrLink>
var mediaType: MimeMediaType?
var duration: Duration?
var source: ObjectOrLink?
}

View File

@ -0,0 +1,4 @@
package dev.usbharu.activitystreams.model.core
interface OrderedCollection : dev.usbharu.activitystreams.model.core.Collection {
}

Some files were not shown because too many files have changed in this diff Show More