Package-level declarations

Types

Link copied to clipboard
data class CreateDraftRequest(val draft: Draft)
Link copied to clipboard
Link copied to clipboard
data class DeleteDraftRequest(val id: Tid)
Link copied to clipboard
data class Draft(val deviceId: String? = null, val deviceName: String? = null, val posts: List<DraftPost>, val langs: List<Language>? = null, val postgateEmbeddingRules: List<DraftPostgateEmbeddingRuleUnion>? = null, val threadgateAllow: List<DraftThreadgateAllowUnion>? = null)

A draft containing an array of draft posts.

Link copied to clipboard
data class DraftEmbedCaption(val lang: Language, val content: String)
Link copied to clipboard
data class DraftEmbedExternal(val uri: Uri)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class DraftEmbedImage(val localRef: DraftEmbedLocalRef, val alt: String? = null)
Link copied to clipboard
data class DraftEmbedLocalRef(val path: String)
Link copied to clipboard
data class DraftEmbedRecord(val record: StrongRef)
Link copied to clipboard
data class DraftEmbedVideo(val localRef: DraftEmbedLocalRef, val alt: String? = null, val captions: List<DraftEmbedCaption>? = null)
Link copied to clipboard
data class DraftPost(val text: String, val labels: DraftPostLabelsUnion? = null, val embedImages: List<DraftEmbedImage>? = null, val embedGallery: DraftEmbedGallery? = null, val embedVideos: List<DraftEmbedVideo>? = null, val embedExternals: List<DraftEmbedExternal>? = null, val embedRecords: List<DraftEmbedRecord>? = null)

One of the posts that compose a draft.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class DraftView(val id: Tid, val draft: Draft, val createdAt: Timestamp, val updatedAt: Timestamp)

View to present drafts data to users.

Link copied to clipboard
data class DraftWithId(val id: Tid, val draft: Draft)

A draft with an identifier, used to store drafts in private storage (stash).

Link copied to clipboard
data class GetDraftsQueryParams(val limit: Long? = 50, val cursor: String? = null)
Link copied to clipboard
data class GetDraftsResponse(val cursor: String? = null, val drafts: List<DraftView>)
Link copied to clipboard