@serve.zone/interfaces 25.1.1 → 25.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 +10 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/platform/index.d.ts +3 -1
- package/dist_ts/platform/index.js +4 -2
- package/dist_ts/platform/objectstorageretention.d.ts +63 -0
- package/dist_ts/platform/objectstorageretention.js +255 -0
- package/dist_ts/platform/types.d.ts +3 -0
- package/dist_ts/plugins.runtime.d.ts +2 -0
- package/dist_ts/plugins.runtime.js +4 -0
- package/dist_ts/requests/config.d.ts +3 -0
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.d.ts +394 -0
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.golden.d.ts +35 -0
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.golden.js +315 -0
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.js +1378 -0
- package/dist_ts/runtime.corestore.d.ts +204 -0
- package/dist_ts/runtime.corestore.js +620 -0
- package/dist_ts/runtime.d.ts +2 -0
- package/dist_ts/runtime.js +3 -1
- package/package.json +1 -1
- package/readme.md +37 -0
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/platform/index.ts +3 -0
- package/ts/platform/objectstorageretention.ts +372 -0
- package/ts/platform/types.ts +3 -0
- package/ts/plugins.runtime.ts +4 -0
- package/ts/requests/config.ts +3 -0
- package/ts/runtime.cloudlylegacydeploymentsettlement.golden.ts +421 -0
- package/ts/runtime.cloudlylegacydeploymentsettlement.ts +2884 -0
- package/ts/runtime.corestore.ts +909 -0
- package/ts/runtime.ts +2 -0
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
export declare const cloudlyLegacyDeploymentSettlementLimits: Readonly<{
|
|
2
|
+
maximumIdentifierLength: 200;
|
|
3
|
+
maximumSourceDocuments: 2000;
|
|
4
|
+
maximumOperations: 500;
|
|
5
|
+
maximumPlanBytes: number;
|
|
6
|
+
maximumSafeResultBytes: number;
|
|
7
|
+
maximumReceiptBytes: number;
|
|
8
|
+
maximumAuthorityBytes: number;
|
|
9
|
+
maximumAuthenticatedArtifactBytes: number;
|
|
10
|
+
maximumAuthorityLifetimeMs: number;
|
|
11
|
+
maximumFailureReasons: 32;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const cloudlyLegacyDeploymentSettlementDomains: Readonly<{
|
|
14
|
+
readonly authorityAad: "serve.zone/cloudly-legacy-deployment-settlement/authority-aad-v1\0";
|
|
15
|
+
readonly rehearsalBindingHmac: "serve.zone/cloudly-legacy-deployment-settlement/rehearsal-binding-hmac-v1\0";
|
|
16
|
+
readonly planHmac: "serve.zone/cloudly-legacy-deployment-settlement/plan-hmac-v1\0";
|
|
17
|
+
readonly productionRequestHmac: "serve.zone/cloudly-legacy-deployment-settlement/production-request-hmac-v1\0";
|
|
18
|
+
readonly checkResultHmac: "serve.zone/cloudly-legacy-deployment-settlement/check-result-hmac-v1\0";
|
|
19
|
+
readonly applyResultHmac: "serve.zone/cloudly-legacy-deployment-settlement/apply-result-hmac-v1\0";
|
|
20
|
+
readonly stableOutcomeHmac: "serve.zone/cloudly-legacy-deployment-settlement/stable-outcome-hmac-v1\0";
|
|
21
|
+
readonly scratchReceiptHmac: "serve.zone/cloudly-legacy-deployment-settlement/scratch-receipt-hmac-v1\0";
|
|
22
|
+
readonly productionReceiptHmac: "serve.zone/cloudly-legacy-deployment-settlement/production-receipt-hmac-v1\0";
|
|
23
|
+
}>;
|
|
24
|
+
export type TCloudlyLegacyDeploymentSettlementCodecErrorCode = 'INVALID_DATA' | 'INVALID_SCHEMA' | 'INVALID_VALUE' | 'LIMIT_EXCEEDED' | 'ORDERING_REQUIRED' | 'CROSS_FIELD_MISMATCH';
|
|
25
|
+
/** Safe error surface: code and schema path are finite and never contain values. */
|
|
26
|
+
export declare class CloudlyLegacyDeploymentSettlementCodecError extends Error {
|
|
27
|
+
readonly code: TCloudlyLegacyDeploymentSettlementCodecErrorCode;
|
|
28
|
+
readonly path: string;
|
|
29
|
+
constructor(codeArg: TCloudlyLegacyDeploymentSettlementCodecErrorCode, pathArg: string);
|
|
30
|
+
}
|
|
31
|
+
export type TCloudlyLegacyDeploymentSettlementClassification = 'image-recorded-not-current' | 'image-recorded-current-failed' | 'rolling-out-current-failed' | 'rolling-out-superseded';
|
|
32
|
+
export interface ICloudlyLegacyDeploymentSettlementClassificationCountsV1 {
|
|
33
|
+
'image-recorded-not-current': number;
|
|
34
|
+
'image-recorded-current-failed': number;
|
|
35
|
+
'rolling-out-current-failed': number;
|
|
36
|
+
'rolling-out-superseded': number;
|
|
37
|
+
}
|
|
38
|
+
export interface ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1 {
|
|
39
|
+
operationId: string;
|
|
40
|
+
authorityId: string;
|
|
41
|
+
keyId: string;
|
|
42
|
+
keyVersion: 1;
|
|
43
|
+
authorityMetadataSha256: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ICloudlyLegacyDeploymentSettlementAuthorityMetadataV1 {
|
|
46
|
+
schemaVersion: 1;
|
|
47
|
+
operationId: string;
|
|
48
|
+
authorityId: string;
|
|
49
|
+
keyId: string;
|
|
50
|
+
keyVersion: 1;
|
|
51
|
+
settlementId: string;
|
|
52
|
+
issuedAt: number;
|
|
53
|
+
expiresAt: number;
|
|
54
|
+
maintenanceImageDigest: `sha256:${string}`;
|
|
55
|
+
sourceImageDigest: `sha256:${string}`;
|
|
56
|
+
targetImageDigest: `sha256:${string}`;
|
|
57
|
+
targetVersion: string;
|
|
58
|
+
targetManifestSha256: string;
|
|
59
|
+
targetConfigSha256: string;
|
|
60
|
+
backupId: string;
|
|
61
|
+
backupSnapshotIdSha256: string;
|
|
62
|
+
backupProofSha256: string;
|
|
63
|
+
runId: string;
|
|
64
|
+
rehearsalId: string;
|
|
65
|
+
scratchServiceId: string;
|
|
66
|
+
allocationId: string;
|
|
67
|
+
allocationGeneration: number;
|
|
68
|
+
allocationBindingSha256: string;
|
|
69
|
+
allocationReceiptSha256: string;
|
|
70
|
+
sourceDataSha256: string;
|
|
71
|
+
restoredDataSha256: string;
|
|
72
|
+
digestProofSha256: string;
|
|
73
|
+
}
|
|
74
|
+
/** Private plaintext HMAC key. Never persist, log, or place in summaries or receipts. */
|
|
75
|
+
export interface ICloudlyLegacyDeploymentSettlementHmacKeyPlaintextV1 {
|
|
76
|
+
format: 'raw-32-byte-base64url';
|
|
77
|
+
value: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Exact private-file handoff parsed by pinned maintenance containers.
|
|
81
|
+
* Interfaces only parses and encodes it; consumers own secure generation,
|
|
82
|
+
* storage, use, and destruction of the plaintext key.
|
|
83
|
+
* This package never generates, stores, logs, or performs HMAC with the key.
|
|
84
|
+
*/
|
|
85
|
+
export interface ICloudlyLegacyDeploymentSettlementAuthorityHandoffPlaintextV1 {
|
|
86
|
+
schemaVersion: 1;
|
|
87
|
+
kind: 'cloudly-legacy-deployment-settlement-authority-handoff-plaintext';
|
|
88
|
+
authorityMetadata: ICloudlyLegacyDeploymentSettlementAuthorityMetadataV1;
|
|
89
|
+
authorityReference: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
90
|
+
hmacKeyPlaintext: ICloudlyLegacyDeploymentSettlementHmacKeyPlaintextV1;
|
|
91
|
+
}
|
|
92
|
+
export interface ICloudlyLegacyDeploymentSettlementSourceCensusV1 {
|
|
93
|
+
operations: number;
|
|
94
|
+
services: number;
|
|
95
|
+
images: number;
|
|
96
|
+
releases: number;
|
|
97
|
+
rolloutOperations: number;
|
|
98
|
+
routeClaims: number;
|
|
99
|
+
resourceClaims: number;
|
|
100
|
+
}
|
|
101
|
+
export interface ICloudlyLegacyDeploymentSettlementPlanEntryV1 {
|
|
102
|
+
operationId: string;
|
|
103
|
+
serviceId: string;
|
|
104
|
+
sourceRevision: number;
|
|
105
|
+
sourceState: 'image-recorded' | 'rolling-out';
|
|
106
|
+
classification: TCloudlyLegacyDeploymentSettlementClassification;
|
|
107
|
+
finalRevision: number;
|
|
108
|
+
sourceDocumentHmac: `hmac-sha256:${string}`;
|
|
109
|
+
finalDocumentHmac: `hmac-sha256:${string}`;
|
|
110
|
+
routeClaimsStabilized: number;
|
|
111
|
+
routeClaimsRemoved: number;
|
|
112
|
+
resourceClaimsRemoved: number;
|
|
113
|
+
}
|
|
114
|
+
export interface ICloudlyLegacyDeploymentSettlementPlanV1 {
|
|
115
|
+
schemaVersion: 1;
|
|
116
|
+
kind: 'cloudly-legacy-deployment-settlement-plan';
|
|
117
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
118
|
+
settlementId: string;
|
|
119
|
+
effectiveAt: number;
|
|
120
|
+
sourceStateHmac: `hmac-sha256:${string}`;
|
|
121
|
+
finalStateHmac: `hmac-sha256:${string}`;
|
|
122
|
+
sourceCensus: ICloudlyLegacyDeploymentSettlementSourceCensusV1;
|
|
123
|
+
entries: ICloudlyLegacyDeploymentSettlementPlanEntryV1[];
|
|
124
|
+
classificationCounts: ICloudlyLegacyDeploymentSettlementClassificationCountsV1;
|
|
125
|
+
operationCount: number;
|
|
126
|
+
}
|
|
127
|
+
export interface ICloudlyLegacyDeploymentSettlementProductionRequestV1 {
|
|
128
|
+
schemaVersion: 1;
|
|
129
|
+
kind: 'cloudly-legacy-deployment-settlement-production-request';
|
|
130
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
131
|
+
plan: ICloudlyLegacyDeploymentSettlementPlanV1;
|
|
132
|
+
planSha256: string;
|
|
133
|
+
rehearsalBinding: ICloudlyLegacyDeploymentSettlementRehearsalBindingV1;
|
|
134
|
+
rehearsalBindingSha256: string;
|
|
135
|
+
requestedAt: number;
|
|
136
|
+
}
|
|
137
|
+
export interface ICloudlyLegacyDeploymentSettlementMutationCountsV1 {
|
|
138
|
+
operationCount: number;
|
|
139
|
+
routeClaimsStabilized: number;
|
|
140
|
+
routeClaimsRemoved: number;
|
|
141
|
+
resourceClaimsRemoved: number;
|
|
142
|
+
}
|
|
143
|
+
export type TCloudlyLegacyDeploymentSettlementFailureReason = 'AUTHORITY_INVALID' | 'AUTHORITY_EXPIRED' | 'REQUEST_MISMATCH' | 'PLAN_MISMATCH' | 'SOURCE_STATE_MISMATCH' | 'FINAL_STATE_MISMATCH' | 'TRANSACTIONS_UNSUPPORTED' | 'OPERATION_DRIFT' | 'CLAIM_DRIFT' | 'CLASSIFICATION_MISMATCH';
|
|
144
|
+
interface ICloudlyLegacyDeploymentSettlementSafeResultBaseV1 {
|
|
145
|
+
schemaVersion: 1;
|
|
146
|
+
requestSha256: string;
|
|
147
|
+
planSha256: string;
|
|
148
|
+
settlementId: string;
|
|
149
|
+
sourceStateHmac: `hmac-sha256:${string}`;
|
|
150
|
+
finalStateHmac: `hmac-sha256:${string}`;
|
|
151
|
+
transactionSupported: boolean;
|
|
152
|
+
counts: ICloudlyLegacyDeploymentSettlementMutationCountsV1;
|
|
153
|
+
classificationCounts: ICloudlyLegacyDeploymentSettlementClassificationCountsV1;
|
|
154
|
+
}
|
|
155
|
+
export type TCloudlyLegacyDeploymentSettlementCheckResultV1 = (ICloudlyLegacyDeploymentSettlementSafeResultBaseV1 & {
|
|
156
|
+
kind: 'cloudly-legacy-deployment-settlement-check-result';
|
|
157
|
+
status: 'ready';
|
|
158
|
+
disposition: 'unapplied' | 'exact-replay' | 'no-op';
|
|
159
|
+
checkedAt: number;
|
|
160
|
+
}) | (ICloudlyLegacyDeploymentSettlementSafeResultBaseV1 & {
|
|
161
|
+
kind: 'cloudly-legacy-deployment-settlement-check-result';
|
|
162
|
+
status: 'blocked';
|
|
163
|
+
disposition: 'unapplied';
|
|
164
|
+
failureReasons: TCloudlyLegacyDeploymentSettlementFailureReason[];
|
|
165
|
+
checkedAt: number;
|
|
166
|
+
});
|
|
167
|
+
export type TCloudlyLegacyDeploymentSettlementApplyResultV1 = (ICloudlyLegacyDeploymentSettlementSafeResultBaseV1 & {
|
|
168
|
+
kind: 'cloudly-legacy-deployment-settlement-apply-result';
|
|
169
|
+
status: 'completed';
|
|
170
|
+
disposition: 'applied' | 'exact-replay' | 'no-op';
|
|
171
|
+
completedAt: number;
|
|
172
|
+
}) | (ICloudlyLegacyDeploymentSettlementSafeResultBaseV1 & {
|
|
173
|
+
kind: 'cloudly-legacy-deployment-settlement-apply-result';
|
|
174
|
+
status: 'rejected';
|
|
175
|
+
disposition: 'unapplied';
|
|
176
|
+
failureReasons: TCloudlyLegacyDeploymentSettlementFailureReason[];
|
|
177
|
+
rejectedAt: number;
|
|
178
|
+
});
|
|
179
|
+
export interface ICloudlyLegacyDeploymentSettlementRehearsalBindingV1 {
|
|
180
|
+
schemaVersion: 1;
|
|
181
|
+
kind: 'cloudly-legacy-deployment-settlement-rehearsal-binding';
|
|
182
|
+
settlementId: string;
|
|
183
|
+
runId: string;
|
|
184
|
+
rehearsalId: string;
|
|
185
|
+
scratchServiceId: string;
|
|
186
|
+
allocationId: string;
|
|
187
|
+
allocationGeneration: number;
|
|
188
|
+
allocationBindingSha256: string;
|
|
189
|
+
allocationReceiptSha256: string;
|
|
190
|
+
backupId: string;
|
|
191
|
+
backupSnapshotIdSha256: string;
|
|
192
|
+
backupProofSha256: string;
|
|
193
|
+
sourceDataSha256: string;
|
|
194
|
+
restoredDataSha256: string;
|
|
195
|
+
digestProofSha256: string;
|
|
196
|
+
targetImageDigest: `sha256:${string}`;
|
|
197
|
+
targetVersion: string;
|
|
198
|
+
targetManifestSha256: string;
|
|
199
|
+
targetConfigSha256: string;
|
|
200
|
+
}
|
|
201
|
+
export interface ICloudlyLegacyDeploymentSettlementStableOutcomeV1 {
|
|
202
|
+
schemaVersion: 1;
|
|
203
|
+
kind: 'cloudly-legacy-deployment-settlement-stable-outcome';
|
|
204
|
+
settlementId: string;
|
|
205
|
+
runId: string;
|
|
206
|
+
rehearsalBindingSha256: string;
|
|
207
|
+
effectiveAt: number;
|
|
208
|
+
planSha256: string;
|
|
209
|
+
sourceStateHmac: `hmac-sha256:${string}`;
|
|
210
|
+
finalStateHmac: `hmac-sha256:${string}`;
|
|
211
|
+
settlements: ICloudlyLegacyDeploymentSettlementStableOutcomeEntryV1[];
|
|
212
|
+
counts: ICloudlyLegacyDeploymentSettlementMutationCountsV1;
|
|
213
|
+
classificationCounts: ICloudlyLegacyDeploymentSettlementClassificationCountsV1;
|
|
214
|
+
}
|
|
215
|
+
export interface ICloudlyLegacyDeploymentSettlementStableOutcomeEntryV1 {
|
|
216
|
+
operationId: string;
|
|
217
|
+
finalRevision: number;
|
|
218
|
+
finalDocumentHmac: `hmac-sha256:${string}`;
|
|
219
|
+
}
|
|
220
|
+
export interface IAuthenticatedCloudlyLegacyDeploymentSettlementRehearsalBindingV1 {
|
|
221
|
+
schemaVersion: 1;
|
|
222
|
+
kind: 'authenticated-cloudly-legacy-deployment-settlement-rehearsal-binding';
|
|
223
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
224
|
+
payload: ICloudlyLegacyDeploymentSettlementRehearsalBindingV1;
|
|
225
|
+
payloadSha256: string;
|
|
226
|
+
mac: string;
|
|
227
|
+
}
|
|
228
|
+
export interface IAuthenticatedCloudlyLegacyDeploymentSettlementPlanV1 {
|
|
229
|
+
schemaVersion: 1;
|
|
230
|
+
kind: 'authenticated-cloudly-legacy-deployment-settlement-plan';
|
|
231
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
232
|
+
payload: ICloudlyLegacyDeploymentSettlementPlanV1;
|
|
233
|
+
payloadSha256: string;
|
|
234
|
+
mac: string;
|
|
235
|
+
}
|
|
236
|
+
export interface IAuthenticatedCloudlyLegacyDeploymentSettlementProductionRequestV1 {
|
|
237
|
+
schemaVersion: 1;
|
|
238
|
+
kind: 'authenticated-cloudly-legacy-deployment-settlement-production-request';
|
|
239
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
240
|
+
payload: ICloudlyLegacyDeploymentSettlementProductionRequestV1;
|
|
241
|
+
payloadSha256: string;
|
|
242
|
+
mac: string;
|
|
243
|
+
}
|
|
244
|
+
export interface IAuthenticatedCloudlyLegacyDeploymentSettlementCheckResultV1 {
|
|
245
|
+
schemaVersion: 1;
|
|
246
|
+
kind: 'authenticated-cloudly-legacy-deployment-settlement-check-result';
|
|
247
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
248
|
+
payload: TCloudlyLegacyDeploymentSettlementCheckResultV1;
|
|
249
|
+
payloadSha256: string;
|
|
250
|
+
mac: string;
|
|
251
|
+
}
|
|
252
|
+
export interface IAuthenticatedCloudlyLegacyDeploymentSettlementApplyResultV1 {
|
|
253
|
+
schemaVersion: 1;
|
|
254
|
+
kind: 'authenticated-cloudly-legacy-deployment-settlement-apply-result';
|
|
255
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
256
|
+
payload: TCloudlyLegacyDeploymentSettlementApplyResultV1;
|
|
257
|
+
payloadSha256: string;
|
|
258
|
+
mac: string;
|
|
259
|
+
}
|
|
260
|
+
export interface IAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcomeV1 {
|
|
261
|
+
schemaVersion: 1;
|
|
262
|
+
kind: 'authenticated-cloudly-legacy-deployment-settlement-stable-outcome';
|
|
263
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
264
|
+
payload: ICloudlyLegacyDeploymentSettlementStableOutcomeV1;
|
|
265
|
+
payloadSha256: string;
|
|
266
|
+
mac: string;
|
|
267
|
+
}
|
|
268
|
+
export type TUnsignedAuthenticatedCloudlyLegacyDeploymentSettlementRehearsalBindingV1 = Omit<IAuthenticatedCloudlyLegacyDeploymentSettlementRehearsalBindingV1, 'mac'>;
|
|
269
|
+
export type TUnsignedAuthenticatedCloudlyLegacyDeploymentSettlementPlanV1 = Omit<IAuthenticatedCloudlyLegacyDeploymentSettlementPlanV1, 'mac'>;
|
|
270
|
+
export type TUnsignedAuthenticatedCloudlyLegacyDeploymentSettlementProductionRequestV1 = Omit<IAuthenticatedCloudlyLegacyDeploymentSettlementProductionRequestV1, 'mac'>;
|
|
271
|
+
export type TUnsignedAuthenticatedCloudlyLegacyDeploymentSettlementCheckResultV1 = Omit<IAuthenticatedCloudlyLegacyDeploymentSettlementCheckResultV1, 'mac'>;
|
|
272
|
+
export type TUnsignedAuthenticatedCloudlyLegacyDeploymentSettlementApplyResultV1 = Omit<IAuthenticatedCloudlyLegacyDeploymentSettlementApplyResultV1, 'mac'>;
|
|
273
|
+
export type TUnsignedAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcomeV1 = Omit<IAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcomeV1, 'mac'>;
|
|
274
|
+
export interface ICloudlyLegacyDeploymentSettlementHmacVerificationInputV1 {
|
|
275
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
276
|
+
domain: typeof cloudlyLegacyDeploymentSettlementDomains[keyof typeof cloudlyLegacyDeploymentSettlementDomains];
|
|
277
|
+
hmacInput: Uint8Array;
|
|
278
|
+
mac: string;
|
|
279
|
+
}
|
|
280
|
+
/** Consumer-owned verification keeps all HMAC key use outside Interfaces. */
|
|
281
|
+
export type TCloudlyLegacyDeploymentSettlementHmacVerifier = (inputArg: ICloudlyLegacyDeploymentSettlementHmacVerificationInputV1) => boolean | Promise<boolean>;
|
|
282
|
+
export interface ICloudlyLegacyDeploymentSettlementScratchReceiptV1 {
|
|
283
|
+
schemaVersion: 1;
|
|
284
|
+
kind: 'cloudly-legacy-deployment-settlement-scratch-receipt';
|
|
285
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
286
|
+
requestSha256: string;
|
|
287
|
+
stableOutcome: ICloudlyLegacyDeploymentSettlementStableOutcomeV1;
|
|
288
|
+
stableOutcomeSha256: string;
|
|
289
|
+
transactionCommitted: true;
|
|
290
|
+
disposition: 'applied' | 'exact-replay' | 'no-op';
|
|
291
|
+
completedAt: number;
|
|
292
|
+
payloadSha256: string;
|
|
293
|
+
mac: string;
|
|
294
|
+
}
|
|
295
|
+
export interface ICloudlyLegacyDeploymentSettlementProductionReceiptV1 {
|
|
296
|
+
schemaVersion: 1;
|
|
297
|
+
kind: 'cloudly-legacy-deployment-settlement-production-receipt';
|
|
298
|
+
authority: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
299
|
+
requestSha256: string;
|
|
300
|
+
scratchReceipt: ICloudlyLegacyDeploymentSettlementScratchReceiptV1;
|
|
301
|
+
scratchReceiptSha256: string;
|
|
302
|
+
stableOutcome: ICloudlyLegacyDeploymentSettlementStableOutcomeV1;
|
|
303
|
+
stableOutcomeSha256: string;
|
|
304
|
+
transactionCommitted: true;
|
|
305
|
+
disposition: 'applied' | 'exact-replay' | 'no-op';
|
|
306
|
+
completedAt: number;
|
|
307
|
+
payloadSha256: string;
|
|
308
|
+
mac: string;
|
|
309
|
+
}
|
|
310
|
+
export type TCloudlyLegacyDeploymentSettlementScratchReceiptPayloadV1 = Omit<ICloudlyLegacyDeploymentSettlementScratchReceiptV1, 'payloadSha256' | 'mac'>;
|
|
311
|
+
export type TCloudlyLegacyDeploymentSettlementUnsignedScratchReceiptV1 = Omit<ICloudlyLegacyDeploymentSettlementScratchReceiptV1, 'mac'>;
|
|
312
|
+
export type TCloudlyLegacyDeploymentSettlementProductionReceiptPayloadV1 = Omit<ICloudlyLegacyDeploymentSettlementProductionReceiptV1, 'payloadSha256' | 'mac'>;
|
|
313
|
+
export type TCloudlyLegacyDeploymentSettlementUnsignedProductionReceiptV1 = Omit<ICloudlyLegacyDeploymentSettlementProductionReceiptV1, 'mac'>;
|
|
314
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthorityReference: (valueArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1>;
|
|
315
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthorityMetadata: (valueArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementAuthorityMetadataV1>;
|
|
316
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementAuthorityMetadata: (valueArg: unknown) => Uint8Array;
|
|
317
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementAuthorityMetadataAad: (valueArg: unknown) => Uint8Array;
|
|
318
|
+
export declare const digestCloudlyLegacyDeploymentSettlementAuthorityMetadata: (valueArg: unknown) => string;
|
|
319
|
+
export declare const createCloudlyLegacyDeploymentSettlementAuthorityReference: (metadataArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1>;
|
|
320
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthorityReferenceForMetadata: (referenceArg: unknown, metadataArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1>;
|
|
321
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthorityHandoffPlaintext: (valueArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementAuthorityHandoffPlaintextV1>;
|
|
322
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementAuthorityHandoffPlaintext: (valueArg: unknown) => Uint8Array;
|
|
323
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementPlan: (valueArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementPlanV1>;
|
|
324
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementPlan: (valueArg: unknown) => Uint8Array;
|
|
325
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementPlanHmacInput: (valueArg: unknown) => Uint8Array;
|
|
326
|
+
export declare const digestCloudlyLegacyDeploymentSettlementPlan: (valueArg: unknown) => string;
|
|
327
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementCheckResult: (valueArg: unknown) => Readonly<TCloudlyLegacyDeploymentSettlementCheckResultV1>;
|
|
328
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementCheckResult: (valueArg: unknown) => Uint8Array;
|
|
329
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementCheckResultHmacInput: (valueArg: unknown) => Uint8Array;
|
|
330
|
+
export declare const digestCloudlyLegacyDeploymentSettlementCheckResult: (valueArg: unknown) => string;
|
|
331
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementApplyResult: (valueArg: unknown) => Readonly<TCloudlyLegacyDeploymentSettlementApplyResultV1>;
|
|
332
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementApplyResult: (valueArg: unknown) => Uint8Array;
|
|
333
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementApplyResultHmacInput: (valueArg: unknown) => Uint8Array;
|
|
334
|
+
export declare const digestCloudlyLegacyDeploymentSettlementApplyResult: (valueArg: unknown) => string;
|
|
335
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementRehearsalBinding: (valueArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementRehearsalBindingV1>;
|
|
336
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementRehearsalBinding: (valueArg: unknown) => Uint8Array;
|
|
337
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementRehearsalBindingHmacInput: (valueArg: unknown) => Uint8Array;
|
|
338
|
+
export declare const digestCloudlyLegacyDeploymentSettlementRehearsalBinding: (valueArg: unknown) => string;
|
|
339
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementProductionRequest: (valueArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementProductionRequestV1>;
|
|
340
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementProductionRequest: (valueArg: unknown) => Uint8Array;
|
|
341
|
+
export declare const digestCloudlyLegacyDeploymentSettlementProductionRequest: (valueArg: unknown) => string;
|
|
342
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementStableOutcome: (valueArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementStableOutcomeV1>;
|
|
343
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementStableOutcome: (valueArg: unknown) => Uint8Array;
|
|
344
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementStableOutcomeHmacInput: (valueArg: unknown) => Uint8Array;
|
|
345
|
+
export declare const digestCloudlyLegacyDeploymentSettlementStableOutcome: (valueArg: unknown) => string;
|
|
346
|
+
/** Structural only. Use the async ForAuthority variant to authenticate its MAC. */
|
|
347
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthenticatedRehearsalBindingStructure: (valueArg: unknown) => Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementRehearsalBindingV1>;
|
|
348
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthenticatedPlanStructure: (valueArg: unknown) => Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementPlanV1>;
|
|
349
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthenticatedProductionRequestStructure: (valueArg: unknown) => Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementProductionRequestV1>;
|
|
350
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthenticatedCheckResultStructure: (valueArg: unknown) => Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementCheckResultV1>;
|
|
351
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthenticatedApplyResultStructure: (valueArg: unknown) => Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementApplyResultV1>;
|
|
352
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthenticatedStableOutcomeStructure: (valueArg: unknown) => Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcomeV1>;
|
|
353
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementProductionRequestHmacInput: (valueArg: unknown) => Uint8Array;
|
|
354
|
+
export declare const encodeAuthenticatedCloudlyLegacyDeploymentSettlementRehearsalBinding: (valueArg: unknown) => Uint8Array;
|
|
355
|
+
export declare const encodeAuthenticatedCloudlyLegacyDeploymentSettlementPlan: (valueArg: unknown) => Uint8Array;
|
|
356
|
+
export declare const encodeAuthenticatedCloudlyLegacyDeploymentSettlementProductionRequest: (valueArg: unknown) => Uint8Array;
|
|
357
|
+
export declare const encodeAuthenticatedCloudlyLegacyDeploymentSettlementCheckResult: (valueArg: unknown) => Uint8Array;
|
|
358
|
+
export declare const encodeAuthenticatedCloudlyLegacyDeploymentSettlementApplyResult: (valueArg: unknown) => Uint8Array;
|
|
359
|
+
export declare const encodeAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcome: (valueArg: unknown) => Uint8Array;
|
|
360
|
+
export declare const digestAuthenticatedCloudlyLegacyDeploymentSettlementRehearsalBinding: (valueArg: unknown) => string;
|
|
361
|
+
export declare const digestAuthenticatedCloudlyLegacyDeploymentSettlementPlan: (valueArg: unknown) => string;
|
|
362
|
+
export declare const digestAuthenticatedCloudlyLegacyDeploymentSettlementProductionRequest: (valueArg: unknown) => string;
|
|
363
|
+
export declare const digestAuthenticatedCloudlyLegacyDeploymentSettlementCheckResult: (valueArg: unknown) => string;
|
|
364
|
+
export declare const digestAuthenticatedCloudlyLegacyDeploymentSettlementApplyResult: (valueArg: unknown) => string;
|
|
365
|
+
export declare const digestAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcome: (valueArg: unknown) => string;
|
|
366
|
+
export declare const digestCloudlyLegacyDeploymentSettlementScratchReceiptPayload: (valueArg: unknown) => string;
|
|
367
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementScratchReceipt: (valueArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementScratchReceiptV1>;
|
|
368
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementScratchReceipt: (valueArg: unknown) => Uint8Array;
|
|
369
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementScratchReceiptHmacInput: (valueArg: unknown) => Uint8Array;
|
|
370
|
+
export declare const digestCloudlyLegacyDeploymentSettlementScratchReceipt: (valueArg: unknown) => string;
|
|
371
|
+
export declare const digestCloudlyLegacyDeploymentSettlementProductionReceiptPayload: (valueArg: unknown) => string;
|
|
372
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementProductionReceipt: (valueArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementProductionReceiptV1>;
|
|
373
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementProductionReceipt: (valueArg: unknown) => Uint8Array;
|
|
374
|
+
export declare const encodeCloudlyLegacyDeploymentSettlementProductionReceiptHmacInput: (valueArg: unknown) => Uint8Array;
|
|
375
|
+
export declare const digestCloudlyLegacyDeploymentSettlementProductionReceipt: (valueArg: unknown) => string;
|
|
376
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementRehearsalBindingForAuthority: (bindingArg: unknown, metadataArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementRehearsalBindingV1>;
|
|
377
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementPlanForAuthority: (planArg: unknown, metadataArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementPlanV1>;
|
|
378
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementProductionRequestForAuthority: (requestArg: unknown, metadataArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementProductionRequestV1>;
|
|
379
|
+
export declare const normalizeAuthenticatedCloudlyLegacyDeploymentSettlementRehearsalBindingForAuthority: (bindingArg: unknown, metadataArg: unknown, verifierArg: TCloudlyLegacyDeploymentSettlementHmacVerifier) => Promise<Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementRehearsalBindingV1>>;
|
|
380
|
+
export declare const normalizeAuthenticatedCloudlyLegacyDeploymentSettlementPlanForAuthority: (planArg: unknown, metadataArg: unknown, verifierArg: TCloudlyLegacyDeploymentSettlementHmacVerifier) => Promise<Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementPlanV1>>;
|
|
381
|
+
export declare const normalizeAuthenticatedCloudlyLegacyDeploymentSettlementProductionRequestForAuthority: (requestArg: unknown, metadataArg: unknown, verifierArg: TCloudlyLegacyDeploymentSettlementHmacVerifier) => Promise<Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementProductionRequestV1>>;
|
|
382
|
+
export declare const normalizeAuthenticatedCloudlyLegacyDeploymentSettlementCheckResultForAuthority: (resultArg: unknown, metadataArg: unknown, requestArg: unknown, verifierArg: TCloudlyLegacyDeploymentSettlementHmacVerifier) => Promise<Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementCheckResultV1>>;
|
|
383
|
+
export declare const normalizeAuthenticatedCloudlyLegacyDeploymentSettlementApplyResultForAuthority: (resultArg: unknown, metadataArg: unknown, requestArg: unknown, verifierArg: TCloudlyLegacyDeploymentSettlementHmacVerifier) => Promise<Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementApplyResultV1>>;
|
|
384
|
+
export declare const normalizeAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcomeForAuthority: (outcomeArg: unknown, metadataArg: unknown, requestArg: unknown, verifierArg: TCloudlyLegacyDeploymentSettlementHmacVerifier) => Promise<Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcomeV1>>;
|
|
385
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementScratchReceiptForAuthority: (receiptArg: unknown, metadataArg: unknown, requestArg: unknown, verifierArg: TCloudlyLegacyDeploymentSettlementHmacVerifier) => Promise<Readonly<ICloudlyLegacyDeploymentSettlementScratchReceiptV1>>;
|
|
386
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementProductionReceiptForAuthority: (receiptArg: unknown, metadataArg: unknown, requestArg: unknown, verifierArg: TCloudlyLegacyDeploymentSettlementHmacVerifier) => Promise<Readonly<ICloudlyLegacyDeploymentSettlementProductionReceiptV1>>;
|
|
387
|
+
/** Structural/request binding only; this function does not authenticate MACs. */
|
|
388
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthenticatedCheckResultStructureForRequest: (resultArg: unknown, requestArg: unknown) => Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementCheckResultV1>;
|
|
389
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthenticatedApplyResultStructureForRequest: (resultArg: unknown, requestArg: unknown) => Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementApplyResultV1>;
|
|
390
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementAuthenticatedStableOutcomeStructureForRequest: (outcomeArg: unknown, requestArg: unknown) => Readonly<IAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcomeV1>;
|
|
391
|
+
/** Structural/request binding only; this function does not authenticate MACs. */
|
|
392
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementScratchReceiptStructureForRequest: (receiptArg: unknown, requestArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementScratchReceiptV1>;
|
|
393
|
+
export declare const normalizeCloudlyLegacyDeploymentSettlementProductionReceiptStructureForRequest: (receiptArg: unknown, requestArg: unknown) => Readonly<ICloudlyLegacyDeploymentSettlementProductionReceiptV1>;
|
|
394
|
+
export { cloudlyLegacyDeploymentSettlementGoldenVectors } from './runtime.cloudlylegacydeploymentsettlement.golden.js';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { IAuthenticatedCloudlyLegacyDeploymentSettlementApplyResultV1, IAuthenticatedCloudlyLegacyDeploymentSettlementCheckResultV1, IAuthenticatedCloudlyLegacyDeploymentSettlementPlanV1, IAuthenticatedCloudlyLegacyDeploymentSettlementProductionRequestV1, IAuthenticatedCloudlyLegacyDeploymentSettlementRehearsalBindingV1, IAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcomeV1, ICloudlyLegacyDeploymentSettlementAuthorityMetadataV1, ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1, ICloudlyLegacyDeploymentSettlementPlanV1, ICloudlyLegacyDeploymentSettlementProductionRequestV1, ICloudlyLegacyDeploymentSettlementProductionReceiptV1, ICloudlyLegacyDeploymentSettlementRehearsalBindingV1, ICloudlyLegacyDeploymentSettlementScratchReceiptV1, ICloudlyLegacyDeploymentSettlementStableOutcomeV1, TCloudlyLegacyDeploymentSettlementApplyResultV1, TCloudlyLegacyDeploymentSettlementCheckResultV1 } from './runtime.cloudlylegacydeploymentsettlement.js';
|
|
2
|
+
interface IGoldenVector<T, TAuthenticated> {
|
|
3
|
+
input: T;
|
|
4
|
+
canonicalSha256: string;
|
|
5
|
+
authenticatedInput: TAuthenticated;
|
|
6
|
+
authenticatedCanonicalSha256: string;
|
|
7
|
+
hmac: string;
|
|
8
|
+
}
|
|
9
|
+
interface ICloudlyLegacyDeploymentSettlementGoldenVectorsV1 {
|
|
10
|
+
version: 1;
|
|
11
|
+
authority: {
|
|
12
|
+
metadata: ICloudlyLegacyDeploymentSettlementAuthorityMetadataV1;
|
|
13
|
+
reference: ICloudlyLegacyDeploymentSettlementAuthorityReferenceV1;
|
|
14
|
+
metadataCanonicalSha256: string;
|
|
15
|
+
aadSha256: string;
|
|
16
|
+
};
|
|
17
|
+
rehearsalBinding: IGoldenVector<ICloudlyLegacyDeploymentSettlementRehearsalBindingV1, IAuthenticatedCloudlyLegacyDeploymentSettlementRehearsalBindingV1>;
|
|
18
|
+
plan: IGoldenVector<ICloudlyLegacyDeploymentSettlementPlanV1, IAuthenticatedCloudlyLegacyDeploymentSettlementPlanV1>;
|
|
19
|
+
productionRequest: IGoldenVector<ICloudlyLegacyDeploymentSettlementProductionRequestV1, IAuthenticatedCloudlyLegacyDeploymentSettlementProductionRequestV1>;
|
|
20
|
+
checkResult: IGoldenVector<TCloudlyLegacyDeploymentSettlementCheckResultV1, IAuthenticatedCloudlyLegacyDeploymentSettlementCheckResultV1>;
|
|
21
|
+
applyResult: IGoldenVector<TCloudlyLegacyDeploymentSettlementApplyResultV1, IAuthenticatedCloudlyLegacyDeploymentSettlementApplyResultV1>;
|
|
22
|
+
stableOutcome: IGoldenVector<ICloudlyLegacyDeploymentSettlementStableOutcomeV1, IAuthenticatedCloudlyLegacyDeploymentSettlementStableOutcomeV1>;
|
|
23
|
+
scratchReceipt: {
|
|
24
|
+
input: ICloudlyLegacyDeploymentSettlementScratchReceiptV1;
|
|
25
|
+
canonicalSha256: string;
|
|
26
|
+
hmac: string;
|
|
27
|
+
};
|
|
28
|
+
productionReceipt: {
|
|
29
|
+
input: ICloudlyLegacyDeploymentSettlementProductionReceiptV1;
|
|
30
|
+
canonicalSha256: string;
|
|
31
|
+
hmac: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare const cloudlyLegacyDeploymentSettlementGoldenVectors: Readonly<ICloudlyLegacyDeploymentSettlementGoldenVectorsV1>;
|
|
35
|
+
export {};
|