@deveye/types 0.24.1 → 0.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deveye/types",
3
- "version": "0.24.1",
3
+ "version": "0.24.2",
4
4
  "description": "Shared contracts (types + zod schemas) for DevEye apps",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -421,7 +421,12 @@ export const persistenceEntrySchema = z.object({
421
421
  /** Mode POSIX en octal (`0644`) ; `null` sur Windows. */
422
422
  mode: z.string().max(8).nullable().default(null),
423
423
  /** Propriétaire du fichier ; `null` quand illisible. */
424
- owner: z.string().max(64).nullable().default(null)
424
+ owner: z.string().max(64).nullable().default(null),
425
+ /**
426
+ * The content is exactly what the installed package ships (rpm or dpkg
427
+ * verification): an update, not an edit. `null` = not verified.
428
+ */
429
+ vendor: z.boolean().nullable().default(null)
425
430
  });
426
431
  export type PersistenceEntry = z.infer<typeof persistenceEntrySchema>;
427
432
 
@@ -431,6 +436,11 @@ export const PERSISTENCE_ENTRY_LIMIT = 2000;
431
436
  export const integrityReportSchema = z.object({
432
437
  /** Unix ms de la collecte sur l'agent. */
433
438
  collectedAt: z.number().int().positive(),
439
+ /**
440
+ * How the agent fingerprints entries. Two manifests of different formats
441
+ * cannot be diffed: the server learns a new format without findings.
442
+ */
443
+ format: z.number().int().positive().default(1),
434
444
  entries: z.array(persistenceEntrySchema).max(PERSISTENCE_ENTRY_LIMIT),
435
445
  /**
436
446
  * Le plafond a été atteint. Le serveur **n'émet alors aucun