mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-11 17:29:44 +00:00
20 lines
439 B
TypeScript
20 lines
439 B
TypeScript
import { Icon } from "@kksh/api/models"
|
|
import * as v from "valibot"
|
|
|
|
/***
|
|
* Correspond to `extensions` table in supabase
|
|
*/
|
|
export const SBExt = v.object({
|
|
identifier: v.string(),
|
|
name: v.string(),
|
|
created_at: v.string(),
|
|
downloads: v.number(),
|
|
short_description: v.string(),
|
|
long_description: v.string(),
|
|
version: v.string(),
|
|
api_version: v.optional(v.string()),
|
|
icon: Icon
|
|
})
|
|
|
|
export type SBExt = v.InferOutput<typeof SBExt>
|