From ec29e55e62deb2ac5194930912bc1015f4c3f857 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 19 May 2023 23:14:59 -0700 Subject: [PATCH] fix api doc? --- packages/backend/src/misc/schema.ts | 2 ++ .../src/models/schema/meta-experimental-features.ts | 11 +++++++++++ packages/calckey-js/src/entities.ts | 4 ++++ 3 files changed, 17 insertions(+) create mode 100644 packages/backend/src/models/schema/meta-experimental-features.ts diff --git a/packages/backend/src/misc/schema.ts b/packages/backend/src/misc/schema.ts index 6e03d30d9..9b75f9fb5 100644 --- a/packages/backend/src/misc/schema.ts +++ b/packages/backend/src/misc/schema.ts @@ -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 = SchemaType; diff --git a/packages/backend/src/models/schema/meta-experimental-features.ts b/packages/backend/src/models/schema/meta-experimental-features.ts new file mode 100644 index 000000000..45a912519 --- /dev/null +++ b/packages/backend/src/models/schema/meta-experimental-features.ts @@ -0,0 +1,11 @@ +export const packedMetaExperimentalFeatures = { + type: "object", + properties: { + postEditing: { + type: "boolean", + optional: false, + nullable: false, + example: "false", + }, + }, +} as const; diff --git a/packages/calckey-js/src/entities.ts b/packages/calckey-js/src/entities.ts index 5a581a54c..b03c9594e 100644 --- a/packages/calckey-js/src/entities.ts +++ b/packages/calckey-js/src/entities.ts @@ -492,3 +492,7 @@ export type UserSorting = | "+updatedAt" | "-updatedAt"; export type OriginType = "combined" | "local" | "remote"; + +export type MetaExperimentalFeatures = { + postEditing: boolean; +};