feat: also emit dxt signature info schema (#44)
This commit is contained in:
parent
9ce2d6fd0e
commit
2654e313b9
2 changed files with 30 additions and 18 deletions
|
|
@ -73,7 +73,7 @@ export const DxtUserConfigurationOptionSchema = z.object({
|
|||
|
||||
export const DxtUserConfigValuesSchema = z.record(
|
||||
z.string(),
|
||||
z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),
|
||||
z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])
|
||||
);
|
||||
|
||||
export const DxtManifestSchema = z.object({
|
||||
|
|
@ -103,3 +103,12 @@ export const DxtManifestSchema = z.object({
|
|||
.record(z.string(), DxtUserConfigurationOptionSchema)
|
||||
.optional(),
|
||||
});
|
||||
|
||||
export const DxtSignatureInfoSchema = z.object({
|
||||
status: z.enum(["signed", "unsigned", "self-signed"]),
|
||||
publisher: z.string().optional(),
|
||||
issuer: z.string().optional(),
|
||||
valid_from: z.string().optional(),
|
||||
valid_to: z.string().optional(),
|
||||
fingerprint: z.string().optional(),
|
||||
});
|
||||
|
|
|
|||
10
src/types.ts
10
src/types.ts
|
|
@ -10,6 +10,7 @@ import type {
|
|||
DxtManifestSchema,
|
||||
DxtManifestServerSchema,
|
||||
DxtManifestToolSchema,
|
||||
DxtSignatureInfoSchema,
|
||||
DxtUserConfigurationOptionSchema,
|
||||
DxtUserConfigValuesSchema,
|
||||
McpServerConfigSchema,
|
||||
|
|
@ -48,14 +49,7 @@ export type DxtManifest = z.infer<typeof DxtManifestSchema>;
|
|||
/**
|
||||
* Information about a DXT package signature
|
||||
*/
|
||||
export interface DxtSignatureInfo {
|
||||
status: "signed" | "unsigned" | "self-signed";
|
||||
publisher?: string;
|
||||
issuer?: string;
|
||||
valid_from?: string;
|
||||
valid_to?: string;
|
||||
fingerprint?: string;
|
||||
}
|
||||
export type DxtSignatureInfo = z.infer<typeof DxtSignatureInfoSchema>;
|
||||
|
||||
export interface Logger {
|
||||
log: (...args: unknown[]) => void;
|
||||
|
|
|
|||
Loading…
Reference in a new issue