Files
CDNManager/packages/shared/dist/index.d.ts
T
Denozordec cb8a79260e
quality / commitlint (push) Skipped
CD / update-wiki (push) Failing after 7s
quality / changes (push) Successful in 4s
quality / docker-check (push) Skipped
quality / web (push) Failing after 38s
quality / api (push) Successful in 49s
CD / quality (push) Failing after 1m36s
CD / publish (push) Skipped
Init Commit
2026-09-04 11:48:19 +07:00

78 lines
2.5 KiB
TypeScript

import { z } from 'zod';
declare const appSwitcherIconSchema: z.ZodEnum<{
server: "server";
cloud: "cloud";
globe: "globe";
dashboard: "dashboard";
chart: "chart";
}>;
declare const appSwitcherEntrySchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
subtitle: z.ZodOptional<z.ZodString>;
url: z.ZodString;
icon: z.ZodDefault<z.ZodEnum<{
server: "server";
cloud: "cloud";
globe: "globe";
dashboard: "dashboard";
chart: "chart";
}>>;
enabled: z.ZodOptional<z.ZodBoolean>;
sort: z.ZodOptional<z.ZodNumber>;
shortcut: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
declare const appSwitcherConfigSchema: z.ZodObject<{
menuLabel: z.ZodDefault<z.ZodString>;
apps: z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
subtitle: z.ZodOptional<z.ZodString>;
url: z.ZodString;
icon: z.ZodDefault<z.ZodEnum<{
server: "server";
cloud: "cloud";
globe: "globe";
dashboard: "dashboard";
chart: "chart";
}>>;
enabled: z.ZodOptional<z.ZodBoolean>;
sort: z.ZodOptional<z.ZodNumber>;
shortcut: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
type AppSwitcherEntry = z.infer<typeof appSwitcherEntrySchema>;
type AppSwitcherConfig = z.infer<typeof appSwitcherConfigSchema>;
declare const loginSchema: z.ZodObject<{
username: z.ZodString;
password: z.ZodString;
}, z.core.$strip>;
type LoginInput = z.infer<typeof loginSchema>;
type LoginRequest = LoginInput;
type JwtClaims = {
sub: string;
exp: number;
email?: string;
name?: string;
apps?: string[];
permissions?: string[];
is_admin?: boolean;
};
type LoginResponse = {
token: string;
expires_at: string;
};
declare const appSettingsPatchSchema: z.ZodObject<{
showQuickActions: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
type AppSettingsPatch = z.infer<typeof appSettingsPatchSchema>;
declare const appSettingsSchema: z.ZodObject<{
id: z.ZodString;
showQuickActions: z.ZodBoolean;
}, z.core.$strip>;
type AppSettings = z.infer<typeof appSettingsSchema>;
export { type AppSettings, type AppSettingsPatch, type AppSwitcherConfig, type AppSwitcherEntry, type JwtClaims, type LoginInput, type LoginRequest, type LoginResponse, appSettingsPatchSchema, appSettingsSchema, appSwitcherConfigSchema, appSwitcherEntrySchema, appSwitcherIconSchema, loginSchema };