@serve.zone/interfaces 17.0.0 → 17.2.0
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 +12 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/gateway.d.ts +4 -0
- package/dist_ts/requests/admin.d.ts +25 -1
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/gateway.ts +5 -0
- package/ts/requests/admin.ts +28 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-07-22 - 17.2.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- add deployment-scoped Coreflow routing proof contracts for exact route promotion and compensation acknowledgement
|
|
8
|
+
|
|
9
|
+
## 2026-07-21 - 17.1.0
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- expose the server-authoritative candidate, active, or manual lifecycle state in gateway-client auth contexts
|
|
14
|
+
|
|
3
15
|
## 2026-07-21 - 17.0.0
|
|
4
16
|
|
|
5
17
|
### Breaking Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@serve.zone/interfaces',
|
|
6
|
-
version: '17.
|
|
6
|
+
version: '17.2.0',
|
|
7
7
|
description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHVGQUF1RjtDQUNyRyxDQUFBIn0=
|
|
@@ -187,6 +187,8 @@ interface IGatewayClientContextBase {
|
|
|
187
187
|
allowedRouteTargets: IGatewayRouteTargetAllowance[];
|
|
188
188
|
capabilities: IGatewayTokenCapabilities;
|
|
189
189
|
}
|
|
190
|
+
/** Server-authoritative lifecycle of an authenticated gateway-client credential. */
|
|
191
|
+
export type TGatewayCredentialState = 'candidate' | 'active' | 'manual';
|
|
190
192
|
/**
|
|
191
193
|
* Resolved authorization context. A gateway-client role always proves the
|
|
192
194
|
* concrete credential, bound client, and current live policy generation.
|
|
@@ -195,6 +197,8 @@ interface IGatewayClientContextBase {
|
|
|
195
197
|
export type IGatewayClientContext = IGatewayClientContextBase & ({
|
|
196
198
|
role: 'gatewayClient';
|
|
197
199
|
credentialId: string;
|
|
200
|
+
/** Present on lifecycle-aware gateways. Candidates are validation/finalization-only. */
|
|
201
|
+
credentialState?: TGatewayCredentialState;
|
|
198
202
|
gatewayClient: {
|
|
199
203
|
type: TGatewayClientType;
|
|
200
204
|
id: string;
|
|
@@ -26,7 +26,28 @@ export interface IReq_Admin_ConfigureServiceDeploymentMachineUser extends plugin
|
|
|
26
26
|
export interface ICoreflowBaseServiceReconciliationResult {
|
|
27
27
|
status: 'fulfilled' | 'rejected';
|
|
28
28
|
nodeNames: string[];
|
|
29
|
+
clusterId?: string;
|
|
29
30
|
message?: string;
|
|
31
|
+
routingProof?: ICoreflowRoutingProofResult;
|
|
32
|
+
}
|
|
33
|
+
export interface ICoreflowRoutingProofEntry {
|
|
34
|
+
serviceId: string;
|
|
35
|
+
hostname: string;
|
|
36
|
+
destinationPort: number;
|
|
37
|
+
}
|
|
38
|
+
export interface ICoreflowRoutingProofRequest {
|
|
39
|
+
requestId: string;
|
|
40
|
+
reason?: string;
|
|
41
|
+
requiredPresent: ICoreflowRoutingProofEntry[];
|
|
42
|
+
requiredAbsentHostnames: string[];
|
|
43
|
+
}
|
|
44
|
+
export interface ICoreflowRoutingProofResult {
|
|
45
|
+
requestId: string;
|
|
46
|
+
routingGeneration: number;
|
|
47
|
+
provenPresent: ICoreflowRoutingProofEntry[];
|
|
48
|
+
confirmedAbsentHostnames: string[];
|
|
49
|
+
requiredFailures: string[];
|
|
50
|
+
unrelatedFailures: string[];
|
|
30
51
|
}
|
|
31
52
|
export interface IReq_Any_Cloudly_ReconcileBaseServices extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Any_Cloudly_ReconcileBaseServices> {
|
|
32
53
|
method: 'reconcileBaseServices';
|
|
@@ -42,8 +63,11 @@ export interface IReq_Any_Cloudly_ReconcileBaseServices extends plugins.typedreq
|
|
|
42
63
|
}
|
|
43
64
|
export interface IReq_Cloudly_Coreflow_ReconcileBaseServices extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Coreflow_ReconcileBaseServices> {
|
|
44
65
|
method: 'coreflowReconcileBaseServices';
|
|
45
|
-
request:
|
|
66
|
+
request: {
|
|
67
|
+
routingProof?: ICoreflowRoutingProofRequest;
|
|
68
|
+
};
|
|
46
69
|
response: {
|
|
47
70
|
success: boolean;
|
|
71
|
+
routingProof?: ICoreflowRoutingProofResult;
|
|
48
72
|
};
|
|
49
73
|
}
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/gateway.ts
CHANGED
|
@@ -220,6 +220,9 @@ interface IGatewayClientContextBase {
|
|
|
220
220
|
capabilities: IGatewayTokenCapabilities;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
/** Server-authoritative lifecycle of an authenticated gateway-client credential. */
|
|
224
|
+
export type TGatewayCredentialState = 'candidate' | 'active' | 'manual';
|
|
225
|
+
|
|
223
226
|
/**
|
|
224
227
|
* Resolved authorization context. A gateway-client role always proves the
|
|
225
228
|
* concrete credential, bound client, and current live policy generation.
|
|
@@ -229,6 +232,8 @@ export type IGatewayClientContext = IGatewayClientContextBase & (
|
|
|
229
232
|
| {
|
|
230
233
|
role: 'gatewayClient';
|
|
231
234
|
credentialId: string;
|
|
235
|
+
/** Present on lifecycle-aware gateways. Candidates are validation/finalization-only. */
|
|
236
|
+
credentialState?: TGatewayCredentialState;
|
|
232
237
|
gatewayClient: {
|
|
233
238
|
type: TGatewayClientType;
|
|
234
239
|
id: string;
|
package/ts/requests/admin.ts
CHANGED
|
@@ -36,7 +36,31 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
36
36
|
export interface ICoreflowBaseServiceReconciliationResult {
|
|
37
37
|
status: 'fulfilled' | 'rejected';
|
|
38
38
|
nodeNames: string[];
|
|
39
|
+
clusterId?: string;
|
|
39
40
|
message?: string;
|
|
41
|
+
routingProof?: ICoreflowRoutingProofResult;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface ICoreflowRoutingProofEntry {
|
|
45
|
+
serviceId: string;
|
|
46
|
+
hostname: string;
|
|
47
|
+
destinationPort: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface ICoreflowRoutingProofRequest {
|
|
51
|
+
requestId: string;
|
|
52
|
+
reason?: string;
|
|
53
|
+
requiredPresent: ICoreflowRoutingProofEntry[];
|
|
54
|
+
requiredAbsentHostnames: string[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface ICoreflowRoutingProofResult {
|
|
58
|
+
requestId: string;
|
|
59
|
+
routingGeneration: number;
|
|
60
|
+
provenPresent: ICoreflowRoutingProofEntry[];
|
|
61
|
+
confirmedAbsentHostnames: string[];
|
|
62
|
+
requiredFailures: string[];
|
|
63
|
+
unrelatedFailures: string[];
|
|
40
64
|
}
|
|
41
65
|
|
|
42
66
|
export interface IReq_Any_Cloudly_ReconcileBaseServices extends plugins.typedrequestInterfaces.implementsTR<
|
|
@@ -60,8 +84,11 @@ export interface IReq_Cloudly_Coreflow_ReconcileBaseServices extends plugins.typ
|
|
|
60
84
|
IReq_Cloudly_Coreflow_ReconcileBaseServices
|
|
61
85
|
> {
|
|
62
86
|
method: 'coreflowReconcileBaseServices';
|
|
63
|
-
request:
|
|
87
|
+
request: {
|
|
88
|
+
routingProof?: ICoreflowRoutingProofRequest;
|
|
89
|
+
};
|
|
64
90
|
response: {
|
|
65
91
|
success: boolean;
|
|
92
|
+
routingProof?: ICoreflowRoutingProofResult;
|
|
66
93
|
};
|
|
67
94
|
}
|