@serve.zone/interfaces 31.8.0 → 32.0.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/.smartconfig.json +1 -0
- package/changelog.md +512 -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/clusterruntime.d.ts +39 -0
- package/dist_ts/data/clusterruntime.js +11 -0
- 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 +5 -1
- package/dist_ts/data/index.js +5 -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 +78 -0
- package/dist_ts/data/networkaddressplan.js +114 -0
- package/dist_ts/data/networkauthority.d.ts +20 -22
- package/dist_ts/data/networkauthority.js +29 -43
- 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 +37 -0
- package/dist_ts/data/networknode.js +6 -0
- 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 +37 -100
- 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 +128 -0
- package/dist_ts/data/serviceruntime.js +92 -0
- 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 +6 -18
- 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 +14 -10
- package/dist_ts/private/networkcontract.js +15 -1
- package/dist_ts/private/producercontract.d.ts +11 -0
- package/dist_ts/private/producercontract.js +21 -0
- package/dist_ts/private/releaseversion.d.ts +37 -0
- package/dist_ts/private/releaseversion.js +48 -0
- package/dist_ts/private/runtimepolicy.d.ts +31 -0
- package/dist_ts/private/runtimepolicy.js +90 -0
- 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 +47 -10
- package/dist_ts/requests/cluster.js +1 -1
- 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 +87 -31
- 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/requests/service.d.ts +60 -0
- 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 +540 -269
- 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/clusterruntime.ts +45 -0
- 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 +5 -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 +175 -0
- package/ts/data/networkauthority.ts +45 -61
- 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 +37 -0
- 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 +62 -122
- 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 +208 -0
- 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 +36 -55
- 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 +23 -9
- package/ts/private/producercontract.ts +19 -0
- package/ts/private/releaseversion.ts +70 -0
- package/ts/private/runtimepolicy.ts +105 -0
- 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 +58 -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 +90 -41
- 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/requests/service.ts +81 -0
- 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/service.ts
CHANGED
|
@@ -16,6 +16,12 @@ import type {
|
|
|
16
16
|
IServiceDeploymentStatus,
|
|
17
17
|
} from '../data/deploymentoperation.js';
|
|
18
18
|
import type { TSha256Digest } from '../data/immutableimage.js';
|
|
19
|
+
import type {
|
|
20
|
+
IServiceRuntimeAssignmentView,
|
|
21
|
+
IServiceRuntimeSpec,
|
|
22
|
+
IServiceRuntimeStatus,
|
|
23
|
+
TServiceRuntimeSpecWritableData,
|
|
24
|
+
} from '../data/serviceruntime.js';
|
|
19
25
|
import type {
|
|
20
26
|
IServiceDeploymentAdoptionInput,
|
|
21
27
|
IServiceDeploymentAdoptionImagePromotionInput,
|
|
@@ -370,3 +376,78 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
370
376
|
success: boolean;
|
|
371
377
|
};
|
|
372
378
|
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Writes the complete runtime spec of one service.
|
|
382
|
+
*
|
|
383
|
+
* `expectedRevision` is the revision the caller read, or `null` when the service has never had a
|
|
384
|
+
* spec; any other stored revision refuses the write. Cloudly copies the organization from the
|
|
385
|
+
* service and answers with the stored spec at its new revision.
|
|
386
|
+
*/
|
|
387
|
+
export interface IRequest_Any_Cloudly_SetServiceRuntimeSpec
|
|
388
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
389
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
390
|
+
IRequest_Any_Cloudly_SetServiceRuntimeSpec
|
|
391
|
+
> {
|
|
392
|
+
method: 'setServiceRuntimeSpec';
|
|
393
|
+
request: {
|
|
394
|
+
identity: IIdentity;
|
|
395
|
+
serviceId: string;
|
|
396
|
+
expectedRevision: number | null;
|
|
397
|
+
spec: TServiceRuntimeSpecWritableData;
|
|
398
|
+
};
|
|
399
|
+
response: {
|
|
400
|
+
spec: IServiceRuntimeSpec;
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* A service's runtime spec and the producer's verdict on it. Both are `null` before the first spec;
|
|
406
|
+
* a spec's status is `null` until the producer first decides it.
|
|
407
|
+
*/
|
|
408
|
+
export interface IRequest_Any_Cloudly_GetServiceRuntimeSpec
|
|
409
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
410
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
411
|
+
IRequest_Any_Cloudly_GetServiceRuntimeSpec
|
|
412
|
+
> {
|
|
413
|
+
method: 'getServiceRuntimeSpec';
|
|
414
|
+
request: {
|
|
415
|
+
identity: IIdentity;
|
|
416
|
+
serviceId: string;
|
|
417
|
+
};
|
|
418
|
+
response:
|
|
419
|
+
| { spec: null; status: null }
|
|
420
|
+
| { spec: IServiceRuntimeSpec; status: IServiceRuntimeStatus | null };
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/** Every current runtime assignment of one service, one per replica slot. */
|
|
424
|
+
export interface IRequest_Any_Cloudly_GetServiceRuntimeAssignments
|
|
425
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
426
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
427
|
+
IRequest_Any_Cloudly_GetServiceRuntimeAssignments
|
|
428
|
+
> {
|
|
429
|
+
method: 'getServiceRuntimeAssignments';
|
|
430
|
+
request: {
|
|
431
|
+
identity: IIdentity;
|
|
432
|
+
serviceId: string;
|
|
433
|
+
};
|
|
434
|
+
response: {
|
|
435
|
+
assignments: IServiceRuntimeAssignmentView[];
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Cloudly -> admin UIs: a service's runtime spec, status or assignments changed. It carries no
|
|
441
|
+
* state, so a late or repeated push can never overwrite a newer read; the UI reads the views again.
|
|
442
|
+
*/
|
|
443
|
+
export interface IReq_Cloudly_Any_PushServiceRuntimeChanged
|
|
444
|
+
extends plugins.typedrequestInterfaces.implementsTR<
|
|
445
|
+
plugins.typedrequestInterfaces.ITypedRequest,
|
|
446
|
+
IReq_Cloudly_Any_PushServiceRuntimeChanged
|
|
447
|
+
> {
|
|
448
|
+
method: 'pushServiceRuntimeChanged';
|
|
449
|
+
request: {
|
|
450
|
+
serviceId: string;
|
|
451
|
+
};
|
|
452
|
+
response: Record<string, never>;
|
|
453
|
+
}
|
|
@@ -3,12 +3,12 @@ import type {
|
|
|
3
3
|
ICorestoreDatabaseBackupReceipt,
|
|
4
4
|
} from './runtime.corestore.js';
|
|
5
5
|
import type {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
ICorestoreDatabaseExportPackageCompletion,
|
|
7
|
+
ICorestoreDatabaseExportPackageReleaseCompletion,
|
|
8
|
+
ICorestoreDatabaseExportPackageReleaseRequest,
|
|
9
|
+
ICorestoreDatabaseExportPackageReleaseResponse,
|
|
10
|
+
ICorestoreDatabaseExportPackageRequest,
|
|
11
|
+
ICorestoreDatabaseExportPackageResponse,
|
|
12
12
|
} from './runtime.corestore.databaseexportpackage.js';
|
|
13
13
|
|
|
14
14
|
interface ICorestoreDatabaseExportPackageGoldenArtifact<TValue> {
|
|
@@ -18,32 +18,31 @@ interface ICorestoreDatabaseExportPackageGoldenArtifact<TValue> {
|
|
|
18
18
|
sha256: string;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
interface
|
|
22
|
-
version: 1;
|
|
21
|
+
interface ICorestoreDatabaseExportPackageGoldenVectors {
|
|
23
22
|
request: ICorestoreDatabaseExportPackageGoldenArtifact<
|
|
24
|
-
|
|
23
|
+
ICorestoreDatabaseExportPackageRequest
|
|
25
24
|
>;
|
|
26
25
|
receipt: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseBackupReceipt>;
|
|
27
26
|
completion: ICorestoreDatabaseExportPackageGoldenArtifact<
|
|
28
|
-
|
|
27
|
+
ICorestoreDatabaseExportPackageCompletion
|
|
29
28
|
>;
|
|
30
29
|
response: ICorestoreDatabaseExportPackageGoldenArtifact<
|
|
31
|
-
|
|
30
|
+
ICorestoreDatabaseExportPackageResponse
|
|
32
31
|
>;
|
|
33
32
|
replayResponse: ICorestoreDatabaseExportPackageGoldenArtifact<
|
|
34
|
-
|
|
33
|
+
ICorestoreDatabaseExportPackageResponse
|
|
35
34
|
>;
|
|
36
35
|
releaseRequest: ICorestoreDatabaseExportPackageGoldenArtifact<
|
|
37
|
-
|
|
36
|
+
ICorestoreDatabaseExportPackageReleaseRequest
|
|
38
37
|
>;
|
|
39
38
|
releaseCompletion: ICorestoreDatabaseExportPackageGoldenArtifact<
|
|
40
|
-
|
|
39
|
+
ICorestoreDatabaseExportPackageReleaseCompletion
|
|
41
40
|
>;
|
|
42
41
|
releaseResponse: ICorestoreDatabaseExportPackageGoldenArtifact<
|
|
43
|
-
|
|
42
|
+
ICorestoreDatabaseExportPackageReleaseResponse
|
|
44
43
|
>;
|
|
45
44
|
replayReleaseResponse: ICorestoreDatabaseExportPackageGoldenArtifact<
|
|
46
|
-
|
|
45
|
+
ICorestoreDatabaseExportPackageReleaseResponse
|
|
47
46
|
>;
|
|
48
47
|
}
|
|
49
48
|
|
|
@@ -56,8 +55,7 @@ const allocation = {
|
|
|
56
55
|
receiptSha256: '5'.repeat(64),
|
|
57
56
|
};
|
|
58
57
|
|
|
59
|
-
const request:
|
|
60
|
-
schemaVersion: 1,
|
|
58
|
+
const request: ICorestoreDatabaseExportPackageRequest = {
|
|
61
59
|
kind: 'corestore-database-export-package-request',
|
|
62
60
|
packageAttemptId: 'offline-package-attempt-1',
|
|
63
61
|
packageBackupId: 'package-cloudly-offline-1',
|
|
@@ -84,8 +82,7 @@ const request: ICorestoreDatabaseExportPackageRequestV1 = {
|
|
|
84
82
|
};
|
|
85
83
|
|
|
86
84
|
const receipt: ICorestoreDatabaseBackupReceipt = {
|
|
87
|
-
|
|
88
|
-
format: 'corestore.database.backup.v1',
|
|
85
|
+
format: 'corestore.database.backup',
|
|
89
86
|
backupId: request.packageBackupId,
|
|
90
87
|
sourceServiceId: 'service-cloudly',
|
|
91
88
|
createdAt: 1_700_000_201_000,
|
|
@@ -110,7 +107,6 @@ const receipt: ICorestoreDatabaseBackupReceipt = {
|
|
|
110
107
|
databaseAllocation: allocation,
|
|
111
108
|
},
|
|
112
109
|
closure: {
|
|
113
|
-
formatVersion: 1,
|
|
114
110
|
snapshotIds: ['snapshot-packaged-cloudly-1'],
|
|
115
111
|
objectCount: 2,
|
|
116
112
|
packCount: 1,
|
|
@@ -121,62 +117,57 @@ const receipt: ICorestoreDatabaseBackupReceipt = {
|
|
|
121
117
|
},
|
|
122
118
|
};
|
|
123
119
|
|
|
124
|
-
const completion:
|
|
125
|
-
schemaVersion: 1,
|
|
120
|
+
const completion: ICorestoreDatabaseExportPackageCompletion = {
|
|
126
121
|
kind: 'corestore-database-export-package-completion',
|
|
127
122
|
packageAttemptId: request.packageAttemptId,
|
|
128
|
-
requestSha256: '
|
|
123
|
+
requestSha256: '688e29e07658ea4fea92738dc8e56502cb7e01ae609b471914180922225b8602',
|
|
129
124
|
completedAt: 1_700_000_201_000,
|
|
130
125
|
receipt,
|
|
131
|
-
receiptSha256: '
|
|
126
|
+
receiptSha256: '53551692c49f3059dbb63d70f59dfc534a039b6296aae1158e3ba5490829ce55',
|
|
132
127
|
closureByteLength: receipt.closure.archiveBytes,
|
|
133
128
|
closureSha256: receipt.closure.sha256,
|
|
134
129
|
};
|
|
135
130
|
|
|
136
|
-
const response:
|
|
137
|
-
schemaVersion: 1,
|
|
131
|
+
const response: ICorestoreDatabaseExportPackageResponse = {
|
|
138
132
|
kind: 'corestore-database-export-package-response',
|
|
139
133
|
completion,
|
|
140
134
|
replayed: false,
|
|
141
135
|
};
|
|
142
136
|
|
|
143
|
-
const replayResponse:
|
|
137
|
+
const replayResponse: ICorestoreDatabaseExportPackageResponse = {
|
|
144
138
|
...response,
|
|
145
139
|
replayed: true,
|
|
146
140
|
};
|
|
147
141
|
|
|
148
|
-
const releaseRequest:
|
|
149
|
-
schemaVersion: 1,
|
|
142
|
+
const releaseRequest: ICorestoreDatabaseExportPackageReleaseRequest = {
|
|
150
143
|
kind: 'corestore-database-export-package-release-request',
|
|
151
144
|
packageAttemptId: request.packageAttemptId,
|
|
152
145
|
requestSha256: completion.requestSha256,
|
|
153
|
-
completionSha256: '
|
|
146
|
+
completionSha256: '5f0c38620cda8ceb71f3d9b308848892976040aa008d8d10155454df6e2817a2',
|
|
154
147
|
callerFsyncedClosureByteLength: completion.closureByteLength,
|
|
155
148
|
callerFsyncedClosureSha256: completion.closureSha256,
|
|
156
|
-
callerFsyncedReceiptByteLength:
|
|
149
|
+
callerFsyncedReceiptByteLength: 1164,
|
|
157
150
|
callerFsyncedReceiptSha256: completion.receiptSha256,
|
|
158
151
|
callerFsyncedAt: 1_700_000_201_001,
|
|
159
152
|
};
|
|
160
153
|
|
|
161
|
-
const releaseCompletion:
|
|
162
|
-
schemaVersion: 1,
|
|
154
|
+
const releaseCompletion: ICorestoreDatabaseExportPackageReleaseCompletion = {
|
|
163
155
|
kind: 'corestore-database-export-package-release-completion',
|
|
164
156
|
packageAttemptId: request.packageAttemptId,
|
|
165
157
|
requestSha256: completion.requestSha256,
|
|
166
158
|
completionSha256: releaseRequest.completionSha256,
|
|
167
159
|
releaseRequestSha256:
|
|
168
|
-
'
|
|
160
|
+
'4c9632aa44dc979c61a72b13bbdf0e5e75499424f00dfe63d2c065947e0e9101',
|
|
169
161
|
releasedAt: 1_700_000_201_002,
|
|
170
162
|
};
|
|
171
163
|
|
|
172
|
-
const releaseResponse:
|
|
173
|
-
schemaVersion: 1,
|
|
164
|
+
const releaseResponse: ICorestoreDatabaseExportPackageReleaseResponse = {
|
|
174
165
|
kind: 'corestore-database-export-package-release-response',
|
|
175
166
|
release: releaseCompletion,
|
|
176
167
|
replayed: false,
|
|
177
168
|
};
|
|
178
169
|
|
|
179
|
-
const replayReleaseResponse:
|
|
170
|
+
const replayReleaseResponse: ICorestoreDatabaseExportPackageReleaseResponse = {
|
|
180
171
|
...releaseResponse,
|
|
181
172
|
replayed: true,
|
|
182
173
|
};
|
|
@@ -194,130 +185,121 @@ const requestCanonical =
|
|
|
194
185
|
+ '"backupReceiptSha256":"1111111111111111111111111111111111111111111111111111111111111111",'
|
|
195
186
|
+ '"snapshotId":"snapshot-cloudly-approved-1","sourceServiceId":"service-cloudly"},'
|
|
196
187
|
+ '"completeOutputReceiptSha256":"47eea07082fa86f8bac5af82397321cffc55924f4487866a7b147d9c256e39f5",'
|
|
197
|
-
+ '"input":{"byteLength":4249,"databaseName":"cloudly",'
|
|
198
|
-
+ '"
|
|
188
|
+
+ '"input":{"byteLength":4249,"databaseName":"cloudly","format":"smartdb.database.export.v1",'
|
|
189
|
+
+ '"lineFeedTerminator":"single-lf",'
|
|
199
190
|
+ '"sha256":"9321522806fa2957c169940990a4bb7072cec52fa65243eb5b4b570f9dbe9677"},'
|
|
200
191
|
+ '"kind":"corestore-database-export-package-request",'
|
|
201
|
-
+ '"packageAttemptId":"offline-package-attempt-1",'
|
|
202
|
-
+ '"packageBackupId":"package-cloudly-offline-1","schemaVersion":1}';
|
|
192
|
+
+ '"packageAttemptId":"offline-package-attempt-1","packageBackupId":"package-cloudly-offline-1"}';
|
|
203
193
|
|
|
204
194
|
const receiptCanonical =
|
|
205
|
-
'{"backupId":"package-cloudly-offline-1","closure":{"archiveBytes":2048,'
|
|
206
|
-
+ '"
|
|
195
|
+
'{"backupId":"package-cloudly-offline-1","closure":{"archiveBytes":2048,"chunkCount":3,'
|
|
196
|
+
+ '"objectCount":2,"packCount":1,"payloadBytes":4249,'
|
|
207
197
|
+ '"sha256":"7777777777777777777777777777777777777777777777777777777777777777",'
|
|
208
198
|
+ '"snapshotIds":["snapshot-packaged-cloudly-1"]},"createdAt":1700000201000,'
|
|
209
|
-
+ '"format":"corestore.database.backup
|
|
210
|
-
+
|
|
211
|
-
+
|
|
212
|
-
+ '"databaseName":"cloudly","originalSize":4249,"resourceName":"cloudly",'
|
|
213
|
-
+ '"snapshotId":"snapshot-packaged-cloudly-1",'
|
|
199
|
+
+ '"format":"corestore.database.backup","snapshot":{"capability":"database",'
|
|
200
|
+
+ `"createdAt":1700000201000,"databaseAllocation":${allocationCanonical},"databaseName":"cloudly",`
|
|
201
|
+
+ '"originalSize":4249,"resourceName":"cloudly","snapshotId":"snapshot-packaged-cloudly-1",'
|
|
214
202
|
+ '"snapshotName":"package-cloudly-offline-1","storedSize":2048,'
|
|
215
|
-
+ '"tags":{"backupId":"package-cloudly-offline-1","capability":"database",'
|
|
216
|
-
+ '"
|
|
217
|
-
+ '"
|
|
218
|
-
+ '"sourceServiceId":"service-cloudly"}';
|
|
203
|
+
+ '"tags":{"backupId":"package-cloudly-offline-1","capability":"database","corestore":"resource",'
|
|
204
|
+
+ '"resourceName":"cloudly","serviceId":"service-cloudly","serviceName":"cloudly",'
|
|
205
|
+
+ '"snapshotName":"package-cloudly-offline-1"}},"sourceServiceId":"service-cloudly"}';
|
|
219
206
|
|
|
220
207
|
const completionCanonical =
|
|
221
208
|
'{"closureByteLength":2048,'
|
|
222
209
|
+ '"closureSha256":"7777777777777777777777777777777777777777777777777777777777777777",'
|
|
223
210
|
+ '"completedAt":1700000201000,"kind":"corestore-database-export-package-completion",'
|
|
224
|
-
+
|
|
225
|
-
+
|
|
226
|
-
+ '"
|
|
227
|
-
+ '"requestSha256":"d9e63a397c066aaaec2904d20c1a12240e0a1a902ab388cdff2cebde6c9e1cec",'
|
|
228
|
-
+ '"schemaVersion":1}';
|
|
211
|
+
+ `"packageAttemptId":"offline-package-attempt-1","receipt":${receiptCanonical},`
|
|
212
|
+
+ '"receiptSha256":"53551692c49f3059dbb63d70f59dfc534a039b6296aae1158e3ba5490829ce55",'
|
|
213
|
+
+ '"requestSha256":"688e29e07658ea4fea92738dc8e56502cb7e01ae609b471914180922225b8602"}';
|
|
229
214
|
|
|
230
215
|
const responseCanonical =
|
|
231
|
-
`{"completion":${completionCanonical},`
|
|
232
|
-
+ '"
|
|
216
|
+
`{"completion":${completionCanonical},"kind":"corestore-database-export-package-response",`
|
|
217
|
+
+ '"replayed":false}';
|
|
233
218
|
|
|
234
219
|
const replayResponseCanonical =
|
|
235
|
-
`{"completion":${completionCanonical},`
|
|
236
|
-
+ '"
|
|
220
|
+
`{"completion":${completionCanonical},"kind":"corestore-database-export-package-response",`
|
|
221
|
+
+ '"replayed":true}';
|
|
237
222
|
|
|
238
223
|
const releaseRequestCanonical =
|
|
239
224
|
'{"callerFsyncedAt":1700000201001,"callerFsyncedClosureByteLength":2048,'
|
|
240
225
|
+ '"callerFsyncedClosureSha256":"7777777777777777777777777777777777777777777777777777777777777777",'
|
|
241
|
-
+ '"callerFsyncedReceiptByteLength":
|
|
242
|
-
+ '"callerFsyncedReceiptSha256":"
|
|
243
|
-
+ '"completionSha256":"
|
|
226
|
+
+ '"callerFsyncedReceiptByteLength":1164,'
|
|
227
|
+
+ '"callerFsyncedReceiptSha256":"53551692c49f3059dbb63d70f59dfc534a039b6296aae1158e3ba5490829ce55",'
|
|
228
|
+
+ '"completionSha256":"5f0c38620cda8ceb71f3d9b308848892976040aa008d8d10155454df6e2817a2",'
|
|
244
229
|
+ '"kind":"corestore-database-export-package-release-request",'
|
|
245
230
|
+ '"packageAttemptId":"offline-package-attempt-1",'
|
|
246
|
-
+ '"requestSha256":"
|
|
247
|
-
+ '"schemaVersion":1}';
|
|
231
|
+
+ '"requestSha256":"688e29e07658ea4fea92738dc8e56502cb7e01ae609b471914180922225b8602"}';
|
|
248
232
|
|
|
249
233
|
const releaseCompletionCanonical =
|
|
250
|
-
'{"completionSha256":"
|
|
234
|
+
'{"completionSha256":"5f0c38620cda8ceb71f3d9b308848892976040aa008d8d10155454df6e2817a2",'
|
|
251
235
|
+ '"kind":"corestore-database-export-package-release-completion",'
|
|
252
236
|
+ '"packageAttemptId":"offline-package-attempt-1",'
|
|
253
|
-
+ '"releaseRequestSha256":"
|
|
237
|
+
+ '"releaseRequestSha256":"4c9632aa44dc979c61a72b13bbdf0e5e75499424f00dfe63d2c065947e0e9101",'
|
|
254
238
|
+ '"releasedAt":1700000201002,'
|
|
255
|
-
+ '"requestSha256":"
|
|
256
|
-
+ '"schemaVersion":1}';
|
|
239
|
+
+ '"requestSha256":"688e29e07658ea4fea92738dc8e56502cb7e01ae609b471914180922225b8602"}';
|
|
257
240
|
|
|
258
241
|
const releaseResponseCanonical =
|
|
259
|
-
'{"kind":"corestore-database-export-package-release-response",'
|
|
260
|
-
+
|
|
242
|
+
'{"kind":"corestore-database-export-package-release-response","release":'
|
|
243
|
+
+ `${releaseCompletionCanonical},"replayed":false}`;
|
|
261
244
|
|
|
262
245
|
const replayReleaseResponseCanonical =
|
|
263
|
-
'{"kind":"corestore-database-export-package-release-response",'
|
|
264
|
-
+
|
|
246
|
+
'{"kind":"corestore-database-export-package-release-response","release":'
|
|
247
|
+
+ `${releaseCompletionCanonical},"replayed":true}`;
|
|
265
248
|
|
|
266
249
|
export const corestoreDatabaseExportPackageGoldenVectors:
|
|
267
|
-
Readonly<
|
|
268
|
-
version: 1,
|
|
250
|
+
Readonly<ICorestoreDatabaseExportPackageGoldenVectors> = deepFreezeValue({
|
|
269
251
|
request: {
|
|
270
252
|
input: request,
|
|
271
253
|
canonical: requestCanonical,
|
|
272
|
-
byteLength:
|
|
273
|
-
sha256: '
|
|
254
|
+
byteLength: 1066,
|
|
255
|
+
sha256: '688e29e07658ea4fea92738dc8e56502cb7e01ae609b471914180922225b8602',
|
|
274
256
|
},
|
|
275
257
|
receipt: {
|
|
276
258
|
input: receipt,
|
|
277
259
|
canonical: receiptCanonical,
|
|
278
|
-
byteLength:
|
|
279
|
-
sha256: '
|
|
260
|
+
byteLength: 1164,
|
|
261
|
+
sha256: '53551692c49f3059dbb63d70f59dfc534a039b6296aae1158e3ba5490829ce55',
|
|
280
262
|
},
|
|
281
263
|
completion: {
|
|
282
264
|
input: completion,
|
|
283
265
|
canonical: completionCanonical,
|
|
284
|
-
byteLength:
|
|
285
|
-
sha256: '
|
|
266
|
+
byteLength: 1579,
|
|
267
|
+
sha256: '5f0c38620cda8ceb71f3d9b308848892976040aa008d8d10155454df6e2817a2',
|
|
286
268
|
},
|
|
287
269
|
response: {
|
|
288
270
|
input: response,
|
|
289
271
|
canonical: responseCanonical,
|
|
290
|
-
byteLength:
|
|
291
|
-
sha256: '
|
|
272
|
+
byteLength: 1663,
|
|
273
|
+
sha256: 'b5434103c7ced4a2f2e36814ff663a9987eee16d6d1e662de5df3a12bb908393',
|
|
292
274
|
},
|
|
293
275
|
replayResponse: {
|
|
294
276
|
input: replayResponse,
|
|
295
277
|
canonical: replayResponseCanonical,
|
|
296
|
-
byteLength:
|
|
297
|
-
sha256: '
|
|
278
|
+
byteLength: 1662,
|
|
279
|
+
sha256: 'd2f77abe1319cf3f0bf197b71686209c348a045723e07f93f91131e7e108f5a2',
|
|
298
280
|
},
|
|
299
281
|
releaseRequest: {
|
|
300
282
|
input: releaseRequest,
|
|
301
283
|
canonical: releaseRequestCanonical,
|
|
302
|
-
byteLength:
|
|
303
|
-
sha256: '
|
|
284
|
+
byteLength: 576,
|
|
285
|
+
sha256: '4c9632aa44dc979c61a72b13bbdf0e5e75499424f00dfe63d2c065947e0e9101',
|
|
304
286
|
},
|
|
305
287
|
releaseCompletion: {
|
|
306
288
|
input: releaseCompletion,
|
|
307
289
|
canonical: releaseCompletionCanonical,
|
|
308
|
-
byteLength:
|
|
309
|
-
sha256: '
|
|
290
|
+
byteLength: 396,
|
|
291
|
+
sha256: 'e77b63c8db4659973e7545488bf58c3f3aafb3834a36d1de2b2a9e857d031794',
|
|
310
292
|
},
|
|
311
293
|
releaseResponse: {
|
|
312
294
|
input: releaseResponse,
|
|
313
295
|
canonical: releaseResponseCanonical,
|
|
314
|
-
byteLength:
|
|
315
|
-
sha256: '
|
|
296
|
+
byteLength: 485,
|
|
297
|
+
sha256: 'f33f1df9b9b5726c324d017c287e6a1ee36d65d7ea20f636195d7345dd83ace9',
|
|
316
298
|
},
|
|
317
299
|
replayReleaseResponse: {
|
|
318
300
|
input: replayReleaseResponse,
|
|
319
301
|
canonical: replayReleaseResponseCanonical,
|
|
320
|
-
byteLength:
|
|
321
|
-
sha256: '
|
|
302
|
+
byteLength: 484,
|
|
303
|
+
sha256: '8613993f7975b390be6f662d250d460ab22df54e4b14ee046c4709232a17fd21',
|
|
322
304
|
},
|
|
323
305
|
});
|