@serve.zone/interfaces 7.21.0 → 7.22.1

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/changelog.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-06-12 - 7.22.1
4
+
5
+ ### Fixes
6
+
7
+ - document the unit of deployment CPU usage (deployment)
8
+ - resourceUsage.cpuUsagePercent is percent of the whole node's CPU capacity (0-100), not the per-core docker stats convention; pins the scale that node-level metrics already use so producers and views stay consistent.
9
+
10
+ ## 2026-06-11 - 7.22.0
11
+
12
+ ### Features
13
+
14
+ - add source profile references to route interfaces (gateway)
15
+ - Expose optional sourceProfileRef on service domain entries
16
+ - Expose optional sourceProfileRef on gateway route sync requests
17
+
3
18
  ## 2026-06-11 - 7.21.0
4
19
 
5
20
  ### Features
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '7.21.0',
6
+ version: '7.22.1',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
@@ -58,6 +58,12 @@ export interface IDeployment {
58
58
  * Resource usage for this deployment
59
59
  */
60
60
  resourceUsage?: {
61
+ /**
62
+ * Percent of the whole node's CPU capacity (0-100), NOT per-core:
63
+ * a deployment saturating one core of an 8-core node reports 12.5.
64
+ * Matches the scale of node-level metrics (IClusterNodeMetrics,
65
+ * INodeMetricsSample), not the docker stats CLI convention.
66
+ */
61
67
  cpuUsagePercent: number;
62
68
  memoryUsedMB: number;
63
69
  lastUpdated: number;
@@ -135,6 +135,11 @@ export interface IService {
135
135
  * The protocol for this domain entry
136
136
  */
137
137
  protocol?: 'http' | 'https' | 'ssh';
138
+ /**
139
+ * Gateway source profile for this domain's route (e.g. 'standard'
140
+ * for internal-only access). Defaults to the gateway's public profile.
141
+ */
142
+ sourceProfileRef?: string;
138
143
  }[];
139
144
  deploymentIds: string[];
140
145
  };
@@ -62,6 +62,11 @@ export interface IReq_SyncGatewayClientRoute extends plugins.typedrequestInterfa
62
62
  route?: IGatewayRouteConfig;
63
63
  enabled?: boolean;
64
64
  delete?: boolean;
65
+ /**
66
+ * Gateway source profile to bind the route to (by ref or name).
67
+ * Defaults to the gateway's public profile when omitted.
68
+ */
69
+ sourceProfileRef?: string;
65
70
  };
66
71
  response: IGatewayRouteSyncResult;
67
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "7.21.0",
3
+ "version": "7.22.1",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.",
6
6
  "exports": {
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '7.21.0',
6
+ version: '7.22.1',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  }
@@ -77,6 +77,12 @@ export interface IDeployment {
77
77
  * Resource usage for this deployment
78
78
  */
79
79
  resourceUsage?: {
80
+ /**
81
+ * Percent of the whole node's CPU capacity (0-100), NOT per-core:
82
+ * a deployment saturating one core of an 8-core node reports 12.5.
83
+ * Matches the scale of node-level metrics (IClusterNodeMetrics,
84
+ * INodeMetricsSample), not the docker stats CLI convention.
85
+ */
80
86
  cpuUsagePercent: number;
81
87
  memoryUsedMB: number;
82
88
  lastUpdated: number;
@@ -143,6 +143,11 @@ export interface IService {
143
143
  * The protocol for this domain entry
144
144
  */
145
145
  protocol?: 'http' | 'https' | 'ssh';
146
+ /**
147
+ * Gateway source profile for this domain's route (e.g. 'standard'
148
+ * for internal-only access). Defaults to the gateway's public profile.
149
+ */
150
+ sourceProfileRef?: string;
146
151
  }[];
147
152
  deploymentIds: string[];
148
153
  };
@@ -92,6 +92,11 @@ export interface IReq_SyncGatewayClientRoute extends plugins.typedrequestInterfa
92
92
  route?: IGatewayRouteConfig;
93
93
  enabled?: boolean;
94
94
  delete?: boolean;
95
+ /**
96
+ * Gateway source profile to bind the route to (by ref or name).
97
+ * Defaults to the gateway's public profile when omitted.
98
+ */
99
+ sourceProfileRef?: string;
95
100
  };
96
101
  response: IGatewayRouteSyncResult;
97
102
  }