feat: also emit dxt signature info schema (#44)
This commit is contained in:
parent
9ce2d6fd0e
commit
2654e313b9
1 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(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue