@serve.zone/interfaces 31.9.0 → 32.0.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 +476 -0
- package/dist_ts/00_commitinfo_data.js +3 -3
- package/dist_ts/appstore/types.d.ts +4 -6
- package/dist_ts/appstore/types.js +5 -5
- package/dist_ts/data/backup.d.ts +3 -26
- package/dist_ts/data/cluster.d.ts +36 -11
- package/dist_ts/data/cluster.js +33 -22
- package/dist_ts/data/clusteringress.d.ts +8 -0
- package/dist_ts/data/clusteringress.js +13 -8
- package/dist_ts/data/clusternode.d.ts +121 -74
- package/dist_ts/data/clusternode.js +109 -132
- package/dist_ts/data/coremail.d.ts +3 -7
- package/dist_ts/data/coremail.js +2 -2
- package/dist_ts/data/coremail.runtime.d.ts +0 -1
- package/dist_ts/data/coremail.runtime.js +5 -22
- package/dist_ts/data/deploymentadoption.d.ts +0 -2
- package/dist_ts/data/deploymentadoption.js +40 -6
- package/dist_ts/data/deploymentoperation.js +16 -3
- package/dist_ts/data/deploymentpreflight.d.ts +0 -2
- package/dist_ts/data/deploymentpreflight.js +1 -1
- package/dist_ts/data/immutableimage.d.ts +38 -21
- package/dist_ts/data/immutableimage.js +45 -5
- package/dist_ts/data/index.d.ts +1 -1
- package/dist_ts/data/isolatedrestore.d.ts +139 -21
- package/dist_ts/data/isolatedrestore.golden.d.ts +0 -1
- package/dist_ts/data/isolatedrestore.golden.js +6 -9
- package/dist_ts/data/isolatedrestore.js +176 -40
- package/dist_ts/data/mail.d.ts +1 -1
- package/dist_ts/data/networkaddressplan.d.ts +8 -8
- package/dist_ts/data/networkaddressplan.js +4 -4
- package/dist_ts/data/networkauthority.d.ts +20 -22
- package/dist_ts/data/networkauthority.js +26 -28
- package/dist_ts/data/networkcredential.d.ts +10 -10
- package/dist_ts/data/networkcredential.js +16 -16
- package/dist_ts/data/networkdelivery.d.ts +18 -18
- package/dist_ts/data/networkdelivery.js +16 -16
- package/dist_ts/data/networklease.d.ts +18 -7
- package/dist_ts/data/networklease.js +29 -7
- package/dist_ts/data/networknode.d.ts +2 -2
- package/dist_ts/data/networkprojection.d.ts +59 -60
- package/dist_ts/data/networkprojection.js +53 -57
- package/dist_ts/data/networkprotection.d.ts +27 -28
- package/dist_ts/data/networkprotection.js +36 -36
- package/dist_ts/data/networkrouter.d.ts +11 -11
- package/dist_ts/data/networkrouter.js +1 -1
- package/dist_ts/data/networksigning.d.ts +16 -18
- package/dist_ts/data/networksigning.js +20 -21
- package/dist_ts/data/nodecredential.d.ts +4 -6
- package/dist_ts/data/nodeenrollment.d.ts +35 -40
- package/dist_ts/data/nodeenrollment.js +57 -72
- package/dist_ts/data/privatenetwork.d.ts +21 -24
- package/dist_ts/data/privatenetwork.js +39 -54
- package/dist_ts/data/runtimeassignment.d.ts +50 -34
- package/dist_ts/data/runtimeassignment.js +79 -45
- package/dist_ts/data/runtimeconfig.d.ts +21 -22
- package/dist_ts/data/runtimeconfig.js +24 -24
- package/dist_ts/data/runtimesession.d.ts +100 -62
- package/dist_ts/data/runtimesession.js +98 -79
- package/dist_ts/data/runtimeterminalreceipt.d.ts +28 -29
- package/dist_ts/data/runtimeterminalreceipt.js +42 -42
- package/dist_ts/data/secret.d.ts +18 -25
- package/dist_ts/data/secret.js +12 -52
- package/dist_ts/data/servicecredential.d.ts +14 -16
- package/dist_ts/data/servicecredential.js +17 -28
- package/dist_ts/data/serviceruntime.d.ts +7 -7
- package/dist_ts/data/serviceruntime.js +4 -4
- package/dist_ts/data/sparknodereport.d.ts +27 -14
- package/dist_ts/data/sparknodereport.js +35 -28
- package/dist_ts/data/webpush.d.ts +0 -1
- package/dist_ts/index.d.ts +2 -1
- package/dist_ts/index.js +3 -2
- package/dist_ts/platform/objectstorageretention.d.ts +21 -24
- package/dist_ts/platform/objectstorageretention.js +10 -17
- package/dist_ts/platform/storage.d.ts +1 -3
- package/dist_ts/platform/storagemigration.d.ts +0 -7
- package/dist_ts/platform/storagemigration.golden.d.ts +0 -1
- package/dist_ts/platform/storagemigration.golden.js +8 -12
- package/dist_ts/platform/storagemigration.js +6 -51
- package/dist_ts/platform/types.d.ts +2 -2
- package/dist_ts/private/canonicaljson.d.ts +9 -1
- package/dist_ts/private/canonicaljson.js +14 -2
- package/dist_ts/private/dataproperties.d.ts +62 -0
- package/dist_ts/private/dataproperties.js +117 -0
- package/dist_ts/private/networkcontract.d.ts +10 -10
- package/dist_ts/private/networkcontract.js +1 -1
- package/dist_ts/private/releaseversion.d.ts +37 -0
- package/dist_ts/private/releaseversion.js +48 -0
- package/dist_ts/private/runtimepolicy.d.ts +2 -2
- package/dist_ts/private/runtimepolicy.js +1 -1
- package/dist_ts/private/tokenlist.d.ts +9 -0
- package/dist_ts/private/tokenlist.js +23 -0
- package/dist_ts/protocol.d.ts +137 -0
- package/dist_ts/protocol.js +255 -0
- package/dist_ts/requests/admin.d.ts +8 -8
- package/dist_ts/requests/backup.d.ts +102 -112
- package/dist_ts/requests/cluster.d.ts +10 -10
- package/dist_ts/requests/clusteringress.d.ts +9 -0
- package/dist_ts/requests/clusteringress.js +1 -1
- package/dist_ts/requests/config.d.ts +3 -3
- package/dist_ts/requests/corestore.d.ts +0 -3
- package/dist_ts/requests/corestore.js +5 -9
- package/dist_ts/requests/network.d.ts +30 -30
- package/dist_ts/requests/node.d.ts +15 -28
- package/dist_ts/requests/pallet.d.ts +13 -13
- package/dist_ts/requests/runtimesession.d.ts +53 -41
- package/dist_ts/requests/secret.d.ts +4 -5
- package/dist_ts/requests/secret.js +1 -5
- package/dist_ts/runtime.corestore.d.ts +56 -74
- package/dist_ts/runtime.corestore.databaseexportpackage.d.ts +30 -36
- package/dist_ts/runtime.corestore.databaseexportpackage.golden.d.ts +11 -12
- package/dist_ts/runtime.corestore.databaseexportpackage.golden.js +54 -71
- package/dist_ts/runtime.corestore.databaseexportpackage.js +9 -25
- package/dist_ts/runtime.corestore.js +35 -135
- package/dist_ts/runtime.corestore.relay.js +2 -7
- package/dist_ts/runtime.d.ts +38 -48
- package/dist_ts/runtime.js +20 -77
- package/dist_ts/runtime.networkprojection.d.ts +4 -4
- package/dist_ts/runtime.networkprojection.js +18 -18
- package/dist_ts/runtime.workloadinit.d.ts +23 -24
- package/dist_ts/runtime.workloadinit.js +6 -13
- package/package.json +2 -2
- package/readme.md +421 -270
- package/ts/00_commitinfo_data.ts +3 -3
- package/ts/appstore/types.ts +4 -6
- package/ts/data/backup.ts +3 -38
- package/ts/data/cluster.ts +51 -34
- package/ts/data/clusteringress.ts +12 -12
- package/ts/data/clusternode.ts +204 -232
- package/ts/data/coremail.runtime.ts +4 -21
- package/ts/data/coremail.ts +3 -7
- package/ts/data/deploymentadoption.ts +46 -4
- package/ts/data/deploymentoperation.ts +16 -1
- package/ts/data/deploymentpreflight.ts +0 -2
- package/ts/data/immutableimage.ts +71 -24
- package/ts/data/index.ts +1 -1
- package/ts/data/isolatedrestore.golden.ts +5 -9
- package/ts/data/isolatedrestore.ts +339 -54
- package/ts/data/mail.ts +1 -1
- package/ts/data/networkaddressplan.ts +13 -13
- package/ts/data/networkauthority.ts +42 -46
- package/ts/data/networkcredential.ts +24 -24
- package/ts/data/networkdelivery.ts +27 -27
- package/ts/data/networklease.ts +40 -13
- package/ts/data/networknode.ts +2 -2
- package/ts/data/networkprojection.ts +119 -124
- package/ts/data/networkprotection.ts +54 -55
- package/ts/data/networkrouter.ts +14 -14
- package/ts/data/networksigning.ts +29 -32
- package/ts/data/nodecredential.ts +4 -6
- package/ts/data/nodeenrollment.ts +96 -114
- package/ts/data/privatenetwork.ts +58 -74
- package/ts/data/runtimeassignment.ts +143 -94
- package/ts/data/runtimeconfig.ts +45 -46
- package/ts/data/runtimesession.ts +185 -138
- package/ts/data/runtimeterminalreceipt.ts +72 -73
- package/ts/data/secret.ts +28 -76
- package/ts/data/servicecredential.ts +33 -43
- package/ts/data/serviceruntime.ts +11 -11
- package/ts/data/sparknodereport.ts +48 -36
- package/ts/data/webpush.ts +0 -1
- package/ts/index.ts +2 -0
- package/ts/platform/objectstorageretention.ts +40 -54
- package/ts/platform/storage.ts +1 -3
- package/ts/platform/storagemigration.golden.ts +7 -11
- package/ts/platform/storagemigration.ts +5 -55
- package/ts/platform/types.ts +2 -2
- package/ts/private/canonicaljson.ts +13 -1
- package/ts/private/dataproperties.ts +139 -0
- package/ts/private/networkcontract.ts +9 -9
- package/ts/private/releaseversion.ts +70 -0
- package/ts/private/runtimepolicy.ts +2 -2
- package/ts/private/tokenlist.ts +30 -0
- package/ts/protocol.ts +364 -0
- package/ts/requests/admin.ts +11 -11
- package/ts/requests/backup.ts +112 -117
- package/ts/requests/cluster.ts +13 -13
- package/ts/requests/clusteringress.ts +9 -0
- package/ts/requests/config.ts +3 -3
- package/ts/requests/corestore.ts +4 -16
- package/ts/requests/network.ts +40 -40
- package/ts/requests/node.ts +21 -38
- package/ts/requests/pallet.ts +17 -17
- package/ts/requests/runtimesession.ts +63 -51
- package/ts/requests/secret.ts +5 -10
- package/ts/runtime.corestore.databaseexportpackage.golden.ts +77 -95
- package/ts/runtime.corestore.databaseexportpackage.ts +51 -73
- package/ts/runtime.corestore.relay.ts +1 -10
- package/ts/runtime.corestore.ts +118 -268
- package/ts/runtime.networkprojection.ts +30 -30
- package/ts/runtime.ts +83 -158
- package/ts/runtime.workloadinit.ts +36 -48
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.d.ts +0 -902
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.golden.d.ts +0 -35
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.golden.js +0 -315
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.js +0 -3315
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.d.ts +0 -291
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.golden.d.ts +0 -30
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.golden.js +0 -408
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.js +0 -1126
- package/ts/runtime.cloudlylegacydeploymentsettlement.golden.ts +0 -421
- package/ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.golden.ts +0 -510
- package/ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.ts +0 -2470
- package/ts/runtime.cloudlylegacydeploymentsettlement.ts +0 -6630
package/ts/requests/node.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import type { IBareMetal } from '../data/baremetal.js';
|
|
3
3
|
import type { ICluster } from '../data/cluster.js';
|
|
4
|
-
import type { IClusterNode,
|
|
4
|
+
import type { IClusterNode, INodeAction, INodeMetricsSample, TNodeActionName } from '../data/clusternode.js';
|
|
5
5
|
import type { IDeployment } from '../data/deployment.js';
|
|
6
6
|
import type { IIdentity } from '../data/user.js';
|
|
7
7
|
import type {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
INodeCredentialMetadata,
|
|
9
|
+
INodeCredentialMutationPreconditions,
|
|
10
|
+
INodeCredentialMutationResult,
|
|
11
11
|
TNodeCredentialPurpose,
|
|
12
12
|
} from '../data/nodecredential.js';
|
|
13
13
|
import type {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
INodeEnrollmentRequest,
|
|
15
|
+
INodeEnrollmentAcknowledgement,
|
|
16
|
+
INodeEnrollmentState,
|
|
17
17
|
} from '../data/nodeenrollment.js';
|
|
18
18
|
|
|
19
19
|
/** Node-self adoption preconditions, not an admin or workload RBAC grant. */
|
|
20
|
-
export interface
|
|
20
|
+
export interface IReq_Spark_Cloudly_GetNodeEnrollmentState extends plugins.typedrequestInterfaces.implementsTR<
|
|
21
21
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
22
|
-
|
|
22
|
+
IReq_Spark_Cloudly_GetNodeEnrollmentState
|
|
23
23
|
> {
|
|
24
|
-
method: '
|
|
24
|
+
method: 'getNodeEnrollmentState';
|
|
25
25
|
request: { nodeId: string; nodeToken: string };
|
|
26
26
|
/** Reject unless Spark is currently authenticated and Pallet authority is absent. */
|
|
27
|
-
response:
|
|
27
|
+
response: INodeEnrollmentState;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/** One server transaction; each node-local owner durably activates independently. */
|
|
31
|
-
export interface
|
|
31
|
+
export interface IReq_Spark_Cloudly_EnrollNode extends plugins.typedrequestInterfaces.implementsTR<
|
|
32
32
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
33
|
-
|
|
33
|
+
IReq_Spark_Cloudly_EnrollNode
|
|
34
34
|
> {
|
|
35
|
-
method: '
|
|
36
|
-
request:
|
|
35
|
+
method: 'enrollNode';
|
|
36
|
+
request: INodeEnrollmentRequest;
|
|
37
37
|
/** Replays require the exact receipt AND both current credential authorities. */
|
|
38
|
-
response:
|
|
38
|
+
response: INodeEnrollmentAcknowledgement;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/** Requires verified platform-infrastructure admin authority; returns public data only. */
|
|
@@ -65,7 +65,7 @@ export interface IReq_Any_Cloudly_GetNodeCredential extends plugins.typedrequest
|
|
|
65
65
|
purpose: TNodeCredentialPurpose;
|
|
66
66
|
};
|
|
67
67
|
response: {
|
|
68
|
-
metadata:
|
|
68
|
+
metadata: INodeCredentialMetadata | null;
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -76,7 +76,7 @@ export interface IReq_Any_Cloudly_RotateNodeCredential extends plugins.typedrequ
|
|
|
76
76
|
method: 'rotateNodeCredential';
|
|
77
77
|
request: {
|
|
78
78
|
identity: IIdentity;
|
|
79
|
-
mutation:
|
|
79
|
+
mutation: INodeCredentialMutationPreconditions & {
|
|
80
80
|
/**
|
|
81
81
|
* SHA-256(token UTF-8 bytes), exactly 64 lowercase hexadecimal characters.
|
|
82
82
|
* The node must durably retain its pending CSPRNG credential and mutation
|
|
@@ -86,7 +86,7 @@ export interface IReq_Any_Cloudly_RotateNodeCredential extends plugins.typedrequ
|
|
|
86
86
|
newTokenHash: string;
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
-
response:
|
|
89
|
+
response: INodeCredentialMutationResult;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
export interface IReq_Any_Cloudly_RevokeNodeCredential extends plugins.typedrequestInterfaces.implementsTR<
|
|
@@ -96,9 +96,9 @@ export interface IReq_Any_Cloudly_RevokeNodeCredential extends plugins.typedrequ
|
|
|
96
96
|
method: 'revokeNodeCredential';
|
|
97
97
|
request: {
|
|
98
98
|
identity: IIdentity;
|
|
99
|
-
mutation:
|
|
99
|
+
mutation: INodeCredentialMutationPreconditions;
|
|
100
100
|
};
|
|
101
|
-
response:
|
|
101
|
+
response: INodeCredentialMutationResult;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export interface IRequest_Any_Cloudly_GetNodesByCluster {
|
|
@@ -238,23 +238,6 @@ export interface IReq_Any_Cloudly_SetClusterNodeCorestoreEndpoint extends plugin
|
|
|
238
238
|
};
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
export interface IRequest_Spark_Cloudly_SendHeartbeat extends plugins.typedrequestInterfaces.implementsTR<
|
|
242
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
243
|
-
IRequest_Spark_Cloudly_SendHeartbeat
|
|
244
|
-
> {
|
|
245
|
-
method: 'sparkNodeHeartbeat';
|
|
246
|
-
request: {
|
|
247
|
-
nodeId: string;
|
|
248
|
-
nodeToken: string;
|
|
249
|
-
metrics: IClusterNodeMetrics;
|
|
250
|
-
runtimeInfo: ISparkNodeRuntimeInfo;
|
|
251
|
-
};
|
|
252
|
-
response: {
|
|
253
|
-
accepted: boolean;
|
|
254
|
-
message?: string;
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
|
|
258
241
|
export interface IReq_Any_Cloudly_CreateNodeAction extends plugins.typedrequestInterfaces.implementsTR<
|
|
259
242
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
260
243
|
IReq_Any_Cloudly_CreateNodeAction
|
package/ts/requests/pallet.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import type {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
INodeEnrollment, IPalletNodeEnrollmentActivation, IPalletNodeEnrollmentPreparation,
|
|
4
|
+
IPalletNodeEnrollmentBound, IPalletNodeEnrollmentActive,
|
|
5
5
|
} from '../data/nodeenrollment.js';
|
|
6
6
|
|
|
7
7
|
/** Root-authenticated node-local IPC only; never expose on a network router. */
|
|
8
|
-
export interface
|
|
8
|
+
export interface IReq_Spark_Pallet_PrepareNodeEnrollment extends plugins.typedrequestInterfaces.implementsTR<
|
|
9
9
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
10
|
-
|
|
10
|
+
IReq_Spark_Pallet_PrepareNodeEnrollment
|
|
11
11
|
> {
|
|
12
|
-
method: '
|
|
13
|
-
request:
|
|
12
|
+
method: 'preparePalletNodeEnrollment';
|
|
13
|
+
request: IPalletNodeEnrollmentPreparation;
|
|
14
14
|
/** Return only a current pending proposal, never bearer material or a historical preparation. */
|
|
15
|
-
response:
|
|
15
|
+
response: INodeEnrollment['credentials'][1];
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/** First enrollment only, not generic credential rotation. */
|
|
19
|
-
export interface
|
|
19
|
+
export interface IReq_Spark_Pallet_BindNodeEnrollment extends plugins.typedrequestInterfaces.implementsTR<
|
|
20
20
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
21
|
-
|
|
21
|
+
IReq_Spark_Pallet_BindNodeEnrollment
|
|
22
22
|
> {
|
|
23
|
-
method: '
|
|
24
|
-
request:
|
|
23
|
+
method: 'bindPalletNodeEnrollment';
|
|
24
|
+
request: INodeEnrollment;
|
|
25
25
|
/** Issued only after proving the exact durable pending binding. */
|
|
26
|
-
response:
|
|
26
|
+
response: IPalletNodeEnrollmentBound;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export interface
|
|
29
|
+
export interface IReq_Spark_Pallet_ActivateNodeEnrollment extends plugins.typedrequestInterfaces.implementsTR<
|
|
30
30
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
31
|
-
|
|
31
|
+
IReq_Spark_Pallet_ActivateNodeEnrollment
|
|
32
32
|
> {
|
|
33
|
-
method: '
|
|
33
|
+
method: 'activatePalletNodeEnrollment';
|
|
34
34
|
/** The trusted Spark coordinator must authenticate Cloudly before submitting its acknowledgement. */
|
|
35
|
-
request:
|
|
35
|
+
request: IPalletNodeEnrollmentActivation;
|
|
36
36
|
/** Prove the exact current local identity after activation; a historical receipt is insufficient. */
|
|
37
|
-
response:
|
|
37
|
+
response: IPalletNodeEnrollmentActive;
|
|
38
38
|
}
|
|
@@ -6,39 +6,39 @@ import type * as protection from '../data/networkprotection.js';
|
|
|
6
6
|
import type * as credential from '../data/networkcredential.js';
|
|
7
7
|
|
|
8
8
|
/** Current-peer, exact-projection authorization; response contains secret keys. */
|
|
9
|
-
export interface
|
|
10
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
9
|
+
export interface IReq_Pallet_Controller_GetRuntimeManagedVpnCredential extends plugins.typedrequestInterfaces.implementsTR<
|
|
10
|
+
plugins.typedrequestInterfaces.ITypedRequest, IReq_Pallet_Controller_GetRuntimeManagedVpnCredential
|
|
11
11
|
> {
|
|
12
|
-
method: '
|
|
13
|
-
request: credential.
|
|
14
|
-
response: credential.
|
|
12
|
+
method: 'getRuntimeManagedVpnCredential';
|
|
13
|
+
request: credential.IGetRuntimeManagedVpnCredentialRequest;
|
|
14
|
+
response: credential.IGetRuntimeManagedVpnCredentialResponse;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/** Current authenticated peer reports its durable complete native protection journal. */
|
|
18
|
-
export interface
|
|
19
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
18
|
+
export interface IReq_Pallet_Controller_ReportRuntimeNetworkProtection extends plugins.typedrequestInterfaces.implementsTR<
|
|
19
|
+
plugins.typedrequestInterfaces.ITypedRequest, IReq_Pallet_Controller_ReportRuntimeNetworkProtection
|
|
20
20
|
> {
|
|
21
|
-
method: '
|
|
22
|
-
request: protection.
|
|
23
|
-
response: protection.
|
|
21
|
+
method: 'reportRuntimeNetworkProtection';
|
|
22
|
+
request: protection.IReportRuntimeNetworkProtectionRequest;
|
|
23
|
+
response: protection.IReportRuntimeNetworkProtectionResponse;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/** Dedicated signing trust installed only through the current authenticated physical peer. */
|
|
27
|
-
export interface
|
|
28
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
27
|
+
export interface IReq_Controller_Pallet_ApplyRuntimeNetworkSigningAuthority extends plugins.typedrequestInterfaces.implementsTR<
|
|
28
|
+
plugins.typedrequestInterfaces.ITypedRequest, IReq_Controller_Pallet_ApplyRuntimeNetworkSigningAuthority
|
|
29
29
|
> {
|
|
30
|
-
method: '
|
|
31
|
-
request: network.
|
|
32
|
-
response: network.
|
|
30
|
+
method: 'applyRuntimeNetworkSigningAuthority';
|
|
31
|
+
request: network.IApplyRuntimeNetworkSigningAuthorityRequest;
|
|
32
|
+
response: network.IApplyRuntimeNetworkAuthorityResponse;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/** Complete signed node state; an ACK asserts admission only. */
|
|
36
|
-
export interface
|
|
37
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
36
|
+
export interface IReq_Controller_Pallet_ApplyRuntimeNetworkProjection extends plugins.typedrequestInterfaces.implementsTR<
|
|
37
|
+
plugins.typedrequestInterfaces.ITypedRequest, IReq_Controller_Pallet_ApplyRuntimeNetworkProjection
|
|
38
38
|
> {
|
|
39
|
-
method: '
|
|
40
|
-
request: network.
|
|
41
|
-
response: network.
|
|
39
|
+
method: 'applyRuntimeNetworkProjection';
|
|
40
|
+
request: network.IApplyRuntimeNetworkProjectionRequest;
|
|
41
|
+
response: network.IApplyRuntimeNetworkAuthorityResponse;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
@@ -62,62 +62,74 @@ export interface IReq_Controller_Pallet_ApplyRuntimeNetworkDnsLeaseRenewal exten
|
|
|
62
62
|
* WSS-only Pallet bootstrap. Derive physical peer/idempotency server-side; the registering
|
|
63
63
|
* node process is named by `request.nodeInstanceNonce`, because one relay socket may carry
|
|
64
64
|
* the registrations of every node in a cluster.
|
|
65
|
+
*
|
|
66
|
+
* The controller judges the body in the one server order `protocol.readProtocolOffer` states,
|
|
67
|
+
* negotiating against its `palletRuntime` offer before the body is validated, and answers
|
|
68
|
+
* `{ session, protocol }`, which `bindRegisterPalletRuntimeSessionResponse` binds to the
|
|
69
|
+
* request the node sent. A refusal travels as `IProtocolRefusal` in `TypedResponseError.errorData`,
|
|
70
|
+
* so a node that is refused keeps its workloads and offers again rather than tearing them down.
|
|
65
71
|
*/
|
|
66
|
-
export interface
|
|
72
|
+
export interface IReq_Pallet_Cloudly_RegisterPalletRuntimeSession extends plugins.typedrequestInterfaces.implementsTR<
|
|
67
73
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
68
|
-
|
|
74
|
+
IReq_Pallet_Cloudly_RegisterPalletRuntimeSession
|
|
69
75
|
> {
|
|
70
|
-
method: '
|
|
71
|
-
request: data.
|
|
72
|
-
response: data.
|
|
76
|
+
method: 'registerPalletRuntimeSession';
|
|
77
|
+
request: data.IRegisterPalletRuntimeSessionRequest;
|
|
78
|
+
response: data.IRegisterPalletRuntimeSessionResponse;
|
|
73
79
|
}
|
|
74
80
|
|
|
75
81
|
/** Controller push over the already authenticated Pallet-initiated connection. */
|
|
76
|
-
export interface
|
|
82
|
+
export interface IReq_Controller_Pallet_ApplyRuntimeAssignment extends plugins.typedrequestInterfaces.implementsTR<
|
|
77
83
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
78
|
-
|
|
84
|
+
IReq_Controller_Pallet_ApplyRuntimeAssignment
|
|
79
85
|
> {
|
|
80
|
-
method: '
|
|
81
|
-
request: data.
|
|
82
|
-
response: data.
|
|
86
|
+
method: 'applyRuntimeAssignment';
|
|
87
|
+
request: data.IApplyRuntimeAssignmentRequest;
|
|
88
|
+
response: data.IApplyRuntimeAssignmentResponse;
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
/** Current-peer report, including exact historical outbox recovery after reconnect. */
|
|
86
|
-
export interface
|
|
92
|
+
export interface IReq_Pallet_Controller_ReportRuntimeAssignmentObservation extends plugins.typedrequestInterfaces.implementsTR<
|
|
87
93
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
88
|
-
|
|
94
|
+
IReq_Pallet_Controller_ReportRuntimeAssignmentObservation
|
|
89
95
|
> {
|
|
90
|
-
method: '
|
|
91
|
-
request: data.
|
|
92
|
-
response: data.
|
|
96
|
+
method: 'reportRuntimeAssignmentObservation';
|
|
97
|
+
request: data.IReportRuntimeAssignmentObservationRequest;
|
|
98
|
+
response: data.IReportRuntimeAssignmentObservationResponse;
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
/** Exact joined terminal-operation receipt; observations and boot changes cannot substitute. */
|
|
96
|
-
export interface
|
|
102
|
+
export interface IReq_Pallet_Controller_ReportRuntimeAssignmentTerminalReceipt extends plugins.typedrequestInterfaces.implementsTR<
|
|
97
103
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
98
|
-
|
|
104
|
+
IReq_Pallet_Controller_ReportRuntimeAssignmentTerminalReceipt
|
|
99
105
|
> {
|
|
100
|
-
method: '
|
|
101
|
-
request: terminal.
|
|
102
|
-
response: terminal.
|
|
106
|
+
method: 'reportRuntimeAssignmentTerminalReceipt';
|
|
107
|
+
request: terminal.IReportRuntimeAssignmentTerminalReceiptRequest;
|
|
108
|
+
response: terminal.IReportRuntimeAssignmentTerminalReceiptResponse;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
/** Current-peer, exact current assignment authorization; response is secret material. */
|
|
106
|
-
export interface
|
|
112
|
+
export interface IReq_Pallet_Controller_GetRuntimeRegistryCredential extends plugins.typedrequestInterfaces.implementsTR<
|
|
107
113
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
108
|
-
|
|
114
|
+
IReq_Pallet_Controller_GetRuntimeRegistryCredential
|
|
109
115
|
> {
|
|
110
|
-
method: '
|
|
111
|
-
request: data.
|
|
112
|
-
response: data.
|
|
116
|
+
method: 'getRuntimeRegistryCredential';
|
|
117
|
+
request: data.IGetRuntimeRegistryCredentialRequest;
|
|
118
|
+
response: data.IGetRuntimeRegistryCredentialResponse;
|
|
113
119
|
}
|
|
114
120
|
|
|
115
|
-
/**
|
|
116
|
-
|
|
121
|
+
/**
|
|
122
|
+
* WSS-only JWT authentication; server-owned identity tag, never client-authored claims.
|
|
123
|
+
*
|
|
124
|
+
* Judged in the order `runtimeSessionContract` states, against the server's `cloudlyClient` offer,
|
|
125
|
+
* before the JWT is authenticated: a peer of another major is refused by name rather than by a
|
|
126
|
+
* credential verdict it cannot act on.
|
|
127
|
+
*/
|
|
128
|
+
export interface IReq_Any_Cloudly_RegisterCloudlyClientSession extends plugins.typedrequestInterfaces.implementsTR<
|
|
117
129
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
118
|
-
|
|
130
|
+
IReq_Any_Cloudly_RegisterCloudlyClientSession
|
|
119
131
|
> {
|
|
120
|
-
method: '
|
|
121
|
-
request: data.
|
|
122
|
-
response: data.
|
|
132
|
+
method: 'registerCloudlyClientSession';
|
|
133
|
+
request: data.IRegisterCloudlyClientSessionRequest;
|
|
134
|
+
response: data.IRegisterCloudlyClientSessionResponse;
|
|
123
135
|
}
|
package/ts/requests/secret.ts
CHANGED
|
@@ -8,9 +8,9 @@ import type {
|
|
|
8
8
|
ISecretSetConsumerRolloutStatus,
|
|
9
9
|
ISecretSetMetadata,
|
|
10
10
|
ISecretVersionMetadata,
|
|
11
|
-
|
|
11
|
+
ISecretVersionPurgeIntent,
|
|
12
12
|
ISecretVersionRetentionReference,
|
|
13
|
-
|
|
13
|
+
TSecretVersionPurgeOperation,
|
|
14
14
|
TSecretMutationTarget,
|
|
15
15
|
TSecretValueInput,
|
|
16
16
|
TSecretDelivery,
|
|
@@ -146,7 +146,6 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
146
146
|
limit?: number;
|
|
147
147
|
};
|
|
148
148
|
response: {
|
|
149
|
-
schemaVersion: 1;
|
|
150
149
|
secret: ISecretMetadata;
|
|
151
150
|
version: ISecretVersionMetadata;
|
|
152
151
|
targetSecretsRevision: number;
|
|
@@ -156,7 +155,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
156
155
|
references: ISecretVersionRetentionReference[];
|
|
157
156
|
nextCursor?: string;
|
|
158
157
|
referencesTruncated: boolean;
|
|
159
|
-
operation?:
|
|
158
|
+
operation?: TSecretVersionPurgeOperation;
|
|
160
159
|
};
|
|
161
160
|
}
|
|
162
161
|
|
|
@@ -172,13 +171,13 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
172
171
|
IReq_PurgeSecretVersion
|
|
173
172
|
> {
|
|
174
173
|
method: 'purgeSecretVersion';
|
|
175
|
-
request:
|
|
174
|
+
request: ISecretVersionPurgeIntent & {
|
|
176
175
|
identity: IIdentityCredential;
|
|
177
176
|
};
|
|
178
177
|
response: {
|
|
179
178
|
secret: ISecretMetadata;
|
|
180
179
|
version: ISecretVersionMetadata;
|
|
181
|
-
operation:
|
|
180
|
+
operation: TSecretVersionPurgeOperation;
|
|
182
181
|
targetSecretsRevision: number;
|
|
183
182
|
};
|
|
184
183
|
}
|
|
@@ -565,7 +564,6 @@ export const validateSecretVersionPurgePreflightResponse = async (
|
|
|
565
564
|
}
|
|
566
565
|
const response = responseArg as Record<string, unknown>;
|
|
567
566
|
const expectedKeys = [
|
|
568
|
-
'schemaVersion',
|
|
569
567
|
'secret',
|
|
570
568
|
'version',
|
|
571
569
|
'targetSecretsRevision',
|
|
@@ -582,9 +580,6 @@ export const validateSecretVersionPurgePreflightResponse = async (
|
|
|
582
580
|
!== JSON.stringify([...expectedKeys].sort())) {
|
|
583
581
|
errors.push('secret version purge preflight response must use its exact schema');
|
|
584
582
|
}
|
|
585
|
-
if (response.schemaVersion !== 1) {
|
|
586
|
-
errors.push('secret version purge preflight response schemaVersion must be 1');
|
|
587
|
-
}
|
|
588
583
|
if (secretData.validateSecretVersionMetadata(response.version).length > 0) {
|
|
589
584
|
errors.push('secret version purge preflight version must be canonical');
|
|
590
585
|
}
|