mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
fix api doc?
This commit is contained in:
parent
95ca9701e9
commit
ec29e55e62
3 changed files with 17 additions and 0 deletions
|
@ -31,6 +31,7 @@ import { packedQueueCountSchema } from "@/models/schema/queue.js";
|
|||
import { packedGalleryPostSchema } from "@/models/schema/gallery-post.js";
|
||||
import { packedEmojiSchema } from "@/models/schema/emoji.js";
|
||||
import { packedNoteEdit } from "@/models/schema/note-edit.js";
|
||||
import { packedMetaExperimentalFeatures } from "@/models/schema/meta-experimental-features.js";
|
||||
|
||||
export const refs = {
|
||||
UserLite: packedUserLiteSchema,
|
||||
|
@ -65,6 +66,7 @@ export const refs = {
|
|||
FederationInstance: packedFederationInstanceSchema,
|
||||
GalleryPost: packedGalleryPostSchema,
|
||||
Emoji: packedEmojiSchema,
|
||||
MetaExperimentalFeatures: packedMetaExperimentalFeatures,
|
||||
};
|
||||
|
||||
export type Packed<x extends keyof typeof refs> = SchemaType<typeof refs[x]>;
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
export const packedMetaExperimentalFeatures = {
|
||||
type: "object",
|
||||
properties: {
|
||||
postEditing: {
|
||||
type: "boolean",
|
||||
optional: false,
|
||||
nullable: false,
|
||||
example: "false",
|
||||
},
|
||||
},
|
||||
} as const;
|
|
@ -492,3 +492,7 @@ export type UserSorting =
|
|||
| "+updatedAt"
|
||||
| "-updatedAt";
|
||||
export type OriginType = "combined" | "local" | "remote";
|
||||
|
||||
export type MetaExperimentalFeatures = {
|
||||
postEditing: boolean;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue