@bli-cockpit/telemetry-core 0.1.44 → 0.1.45

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.
@@ -30,6 +30,12 @@ export declare const CollectorRootLabelSchema: z.ZodObject<{
30
30
  basename: z.ZodString;
31
31
  path_sha256: z.ZodString;
32
32
  }, z.core.$strict>;
33
+ export declare const OutsideRootDirectorySchema: z.ZodObject<{
34
+ basename: z.ZodString;
35
+ path_sha256: z.ZodString;
36
+ count: z.ZodNumber;
37
+ }, z.core.$strict>;
38
+ export type OutsideRootDirectory = z.infer<typeof OutsideRootDirectorySchema>;
33
39
  export type CollectorRootLabel = z.infer<typeof CollectorRootLabelSchema>;
34
40
  /** What the last collection tick decided, in the collector's own vocabulary. */
35
41
  export declare const CollectorHeartbeatSyncStatusSchema: z.ZodEnum<{
@@ -55,6 +61,11 @@ export declare const CollectorHeartbeatSchema: z.ZodObject<{
55
61
  }>>;
56
62
  last_sync_reason: z.ZodOptional<z.ZodString>;
57
63
  sessions_observed: z.ZodOptional<z.ZodNumber>;
64
+ outside_root_directories: z.ZodOptional<z.ZodArray<z.ZodObject<{
65
+ basename: z.ZodString;
66
+ path_sha256: z.ZodString;
67
+ count: z.ZodNumber;
68
+ }, z.core.$strict>>>;
58
69
  sessions_outside_root: z.ZodOptional<z.ZodNumber>;
59
70
  sessions_new_this_tick: z.ZodOptional<z.ZodNumber>;
60
71
  sessions_pending_upload: z.ZodOptional<z.ZodNumber>;
@@ -44,6 +44,7 @@ export const CollectorRootLabelSchema = z
44
44
  path_sha256: Sha256Schema,
45
45
  })
46
46
  .strict();
47
+ export const OutsideRootDirectorySchema = CollectorRootLabelSchema.extend({ count: z.number().int().nonnegative() }).strict();
47
48
  /** What the last collection tick decided, in the collector's own vocabulary. */
48
49
  export const CollectorHeartbeatSyncStatusSchema = z.enum([
49
50
  "ok",
@@ -85,6 +86,7 @@ export const CollectorHeartbeatSchema = z
85
86
  .optional(),
86
87
  /** Counts only — how many sessions the tick saw, and how many were outside. */
87
88
  sessions_observed: z.number().int().nonnegative().max(1_000_000).optional(),
89
+ outside_root_directories: z.array(OutsideRootDirectorySchema).max(40).optional(),
88
90
  sessions_outside_root: z
89
91
  .number()
90
92
  .int()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/telemetry-core",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",