mirror of
https://github.com/versia-pub/api.git
synced 2026-03-13 04:09:15 +01:00
refactor(federation): 🚚 Remove custom path alias
This commit is contained in:
parent
1529708dd8
commit
2313bcbbcc
13 changed files with 30 additions and 37 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import { ContentFormatSchema } from "@/federation/schemas/content_format";
|
||||
import { ExtensionPropertySchema } from "@/federation/schemas/extensions";
|
||||
import { CustomEmojiExtensionSchema } from "@/federation/schemas/extensions/custom_emojis";
|
||||
import { VanityExtensionSchema } from "@/federation/schemas/extensions/vanity";
|
||||
import { extensionTypeRegex } from "@/federation/schemas/regex";
|
||||
import { z } from "zod";
|
||||
import { ContentFormatSchema } from "./content_format";
|
||||
import { ExtensionPropertySchema } from "./extensions";
|
||||
import { CustomEmojiExtensionSchema } from "./extensions/custom_emojis";
|
||||
import { VanityExtensionSchema } from "./extensions/vanity";
|
||||
import { extensionTypeRegex } from "./regex";
|
||||
|
||||
const EntitySchema = z.object({
|
||||
id: z.string().uuid(),
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { CustomEmojiExtensionSchema } from "@/federation/schemas/extensions/custom_emojis";
|
||||
import { z } from "zod";
|
||||
import { CustomEmojiExtensionSchema } from "./extensions/custom_emojis";
|
||||
|
||||
export const ExtensionPropertySchema = z.object({
|
||||
"org.lysand:custom_emojis":
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import { ContentFormatSchema } from "@/federation/schemas/content_format";
|
||||
import { emojiRegex } from "@/federation/schemas/regex";
|
||||
/**
|
||||
* Custom emojis extension.
|
||||
* @module federation/schemas/extensions/custom_emojis
|
||||
|
|
@ -7,6 +5,8 @@ import { emojiRegex } from "@/federation/schemas/regex";
|
|||
* @see https://lysand.org/extensions/custom-emojis
|
||||
*/
|
||||
import { z } from "zod";
|
||||
import { ContentFormatSchema } from "../content_format";
|
||||
import { emojiRegex } from "../regex";
|
||||
|
||||
/**
|
||||
* @description Used to validate the properties the extension's custom field
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import { ExtensionSchema } from "@/federation/schemas/base";
|
||||
import { ContentFormatSchema } from "@/federation/schemas/content_format";
|
||||
/**
|
||||
* Polls extension
|
||||
* @module federation/schemas/extensions/polls
|
||||
|
|
@ -7,6 +5,8 @@ import { ContentFormatSchema } from "@/federation/schemas/content_format";
|
|||
* @see https://lysand.org/extensions/polls
|
||||
*/
|
||||
import { z } from "zod";
|
||||
import { ExtensionSchema } from "../base";
|
||||
import { ContentFormatSchema } from "../content_format";
|
||||
|
||||
/**
|
||||
* @description Poll extension entity
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import { ExtensionSchema } from "@/federation/schemas/base";
|
||||
/**
|
||||
* Reactions extension
|
||||
* @module federation/schemas/extensions/reactions
|
||||
|
|
@ -6,6 +5,7 @@ import { ExtensionSchema } from "@/federation/schemas/base";
|
|||
* @see https://lysand.org/extensions/reactions
|
||||
*/
|
||||
import { z } from "zod";
|
||||
import { ExtensionSchema } from "../base";
|
||||
|
||||
/**
|
||||
* @description Reaction extension entity
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
* @see https://lysand.org/extensions/vanity
|
||||
*/
|
||||
|
||||
import { ContentFormatSchema } from "@/federation/schemas/content_format";
|
||||
import { z } from "zod";
|
||||
import { ContentFormatSchema } from "../content_format";
|
||||
|
||||
/**
|
||||
* @description Vanity extension entity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue