@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.
Files changed (215) hide show
  1. package/.smartconfig.json +1 -0
  2. package/changelog.md +512 -0
  3. package/dist_ts/00_commitinfo_data.js +3 -3
  4. package/dist_ts/appstore/types.d.ts +4 -6
  5. package/dist_ts/appstore/types.js +5 -5
  6. package/dist_ts/data/backup.d.ts +3 -26
  7. package/dist_ts/data/cluster.d.ts +36 -11
  8. package/dist_ts/data/cluster.js +33 -22
  9. package/dist_ts/data/clusteringress.d.ts +8 -0
  10. package/dist_ts/data/clusteringress.js +13 -8
  11. package/dist_ts/data/clusternode.d.ts +121 -74
  12. package/dist_ts/data/clusternode.js +109 -132
  13. package/dist_ts/data/clusterruntime.d.ts +39 -0
  14. package/dist_ts/data/clusterruntime.js +11 -0
  15. package/dist_ts/data/coremail.d.ts +3 -7
  16. package/dist_ts/data/coremail.js +2 -2
  17. package/dist_ts/data/coremail.runtime.d.ts +0 -1
  18. package/dist_ts/data/coremail.runtime.js +5 -22
  19. package/dist_ts/data/deploymentadoption.d.ts +0 -2
  20. package/dist_ts/data/deploymentadoption.js +40 -6
  21. package/dist_ts/data/deploymentoperation.js +16 -3
  22. package/dist_ts/data/deploymentpreflight.d.ts +0 -2
  23. package/dist_ts/data/deploymentpreflight.js +1 -1
  24. package/dist_ts/data/immutableimage.d.ts +38 -21
  25. package/dist_ts/data/immutableimage.js +45 -5
  26. package/dist_ts/data/index.d.ts +5 -1
  27. package/dist_ts/data/index.js +5 -1
  28. package/dist_ts/data/isolatedrestore.d.ts +139 -21
  29. package/dist_ts/data/isolatedrestore.golden.d.ts +0 -1
  30. package/dist_ts/data/isolatedrestore.golden.js +6 -9
  31. package/dist_ts/data/isolatedrestore.js +176 -40
  32. package/dist_ts/data/mail.d.ts +1 -1
  33. package/dist_ts/data/networkaddressplan.d.ts +78 -0
  34. package/dist_ts/data/networkaddressplan.js +114 -0
  35. package/dist_ts/data/networkauthority.d.ts +20 -22
  36. package/dist_ts/data/networkauthority.js +29 -43
  37. package/dist_ts/data/networkcredential.d.ts +10 -10
  38. package/dist_ts/data/networkcredential.js +16 -16
  39. package/dist_ts/data/networkdelivery.d.ts +18 -18
  40. package/dist_ts/data/networkdelivery.js +16 -16
  41. package/dist_ts/data/networklease.d.ts +18 -7
  42. package/dist_ts/data/networklease.js +29 -7
  43. package/dist_ts/data/networknode.d.ts +37 -0
  44. package/dist_ts/data/networknode.js +6 -0
  45. package/dist_ts/data/networkprojection.d.ts +59 -60
  46. package/dist_ts/data/networkprojection.js +53 -57
  47. package/dist_ts/data/networkprotection.d.ts +27 -28
  48. package/dist_ts/data/networkprotection.js +36 -36
  49. package/dist_ts/data/networkrouter.d.ts +11 -11
  50. package/dist_ts/data/networkrouter.js +1 -1
  51. package/dist_ts/data/networksigning.d.ts +16 -18
  52. package/dist_ts/data/networksigning.js +20 -21
  53. package/dist_ts/data/nodecredential.d.ts +4 -6
  54. package/dist_ts/data/nodeenrollment.d.ts +35 -40
  55. package/dist_ts/data/nodeenrollment.js +57 -72
  56. package/dist_ts/data/privatenetwork.d.ts +21 -24
  57. package/dist_ts/data/privatenetwork.js +39 -54
  58. package/dist_ts/data/runtimeassignment.d.ts +50 -34
  59. package/dist_ts/data/runtimeassignment.js +79 -45
  60. package/dist_ts/data/runtimeconfig.d.ts +21 -22
  61. package/dist_ts/data/runtimeconfig.js +37 -100
  62. package/dist_ts/data/runtimesession.d.ts +100 -62
  63. package/dist_ts/data/runtimesession.js +98 -79
  64. package/dist_ts/data/runtimeterminalreceipt.d.ts +28 -29
  65. package/dist_ts/data/runtimeterminalreceipt.js +42 -42
  66. package/dist_ts/data/secret.d.ts +18 -25
  67. package/dist_ts/data/secret.js +12 -52
  68. package/dist_ts/data/servicecredential.d.ts +14 -16
  69. package/dist_ts/data/servicecredential.js +17 -28
  70. package/dist_ts/data/serviceruntime.d.ts +128 -0
  71. package/dist_ts/data/serviceruntime.js +92 -0
  72. package/dist_ts/data/sparknodereport.d.ts +27 -14
  73. package/dist_ts/data/sparknodereport.js +35 -28
  74. package/dist_ts/data/webpush.d.ts +0 -1
  75. package/dist_ts/index.d.ts +2 -1
  76. package/dist_ts/index.js +3 -2
  77. package/dist_ts/platform/objectstorageretention.d.ts +21 -24
  78. package/dist_ts/platform/objectstorageretention.js +6 -18
  79. package/dist_ts/platform/storage.d.ts +1 -3
  80. package/dist_ts/platform/storagemigration.d.ts +0 -7
  81. package/dist_ts/platform/storagemigration.golden.d.ts +0 -1
  82. package/dist_ts/platform/storagemigration.golden.js +8 -12
  83. package/dist_ts/platform/storagemigration.js +6 -51
  84. package/dist_ts/platform/types.d.ts +2 -2
  85. package/dist_ts/private/canonicaljson.d.ts +9 -1
  86. package/dist_ts/private/canonicaljson.js +14 -2
  87. package/dist_ts/private/dataproperties.d.ts +62 -0
  88. package/dist_ts/private/dataproperties.js +117 -0
  89. package/dist_ts/private/networkcontract.d.ts +14 -10
  90. package/dist_ts/private/networkcontract.js +15 -1
  91. package/dist_ts/private/producercontract.d.ts +11 -0
  92. package/dist_ts/private/producercontract.js +21 -0
  93. package/dist_ts/private/releaseversion.d.ts +37 -0
  94. package/dist_ts/private/releaseversion.js +48 -0
  95. package/dist_ts/private/runtimepolicy.d.ts +31 -0
  96. package/dist_ts/private/runtimepolicy.js +90 -0
  97. package/dist_ts/private/tokenlist.d.ts +9 -0
  98. package/dist_ts/private/tokenlist.js +23 -0
  99. package/dist_ts/protocol.d.ts +137 -0
  100. package/dist_ts/protocol.js +255 -0
  101. package/dist_ts/requests/admin.d.ts +8 -8
  102. package/dist_ts/requests/backup.d.ts +102 -112
  103. package/dist_ts/requests/cluster.d.ts +47 -10
  104. package/dist_ts/requests/cluster.js +1 -1
  105. package/dist_ts/requests/clusteringress.d.ts +9 -0
  106. package/dist_ts/requests/clusteringress.js +1 -1
  107. package/dist_ts/requests/config.d.ts +3 -3
  108. package/dist_ts/requests/corestore.d.ts +0 -3
  109. package/dist_ts/requests/corestore.js +5 -9
  110. package/dist_ts/requests/network.d.ts +87 -31
  111. package/dist_ts/requests/node.d.ts +15 -28
  112. package/dist_ts/requests/pallet.d.ts +13 -13
  113. package/dist_ts/requests/runtimesession.d.ts +53 -41
  114. package/dist_ts/requests/secret.d.ts +4 -5
  115. package/dist_ts/requests/secret.js +1 -5
  116. package/dist_ts/requests/service.d.ts +60 -0
  117. package/dist_ts/runtime.corestore.d.ts +56 -74
  118. package/dist_ts/runtime.corestore.databaseexportpackage.d.ts +30 -36
  119. package/dist_ts/runtime.corestore.databaseexportpackage.golden.d.ts +11 -12
  120. package/dist_ts/runtime.corestore.databaseexportpackage.golden.js +54 -71
  121. package/dist_ts/runtime.corestore.databaseexportpackage.js +9 -25
  122. package/dist_ts/runtime.corestore.js +35 -135
  123. package/dist_ts/runtime.corestore.relay.js +2 -7
  124. package/dist_ts/runtime.d.ts +38 -48
  125. package/dist_ts/runtime.js +20 -77
  126. package/dist_ts/runtime.networkprojection.d.ts +4 -4
  127. package/dist_ts/runtime.networkprojection.js +18 -18
  128. package/dist_ts/runtime.workloadinit.d.ts +23 -24
  129. package/dist_ts/runtime.workloadinit.js +6 -13
  130. package/package.json +2 -2
  131. package/readme.md +540 -269
  132. package/ts/00_commitinfo_data.ts +3 -3
  133. package/ts/appstore/types.ts +4 -6
  134. package/ts/data/backup.ts +3 -38
  135. package/ts/data/cluster.ts +51 -34
  136. package/ts/data/clusteringress.ts +12 -12
  137. package/ts/data/clusternode.ts +204 -232
  138. package/ts/data/clusterruntime.ts +45 -0
  139. package/ts/data/coremail.runtime.ts +4 -21
  140. package/ts/data/coremail.ts +3 -7
  141. package/ts/data/deploymentadoption.ts +46 -4
  142. package/ts/data/deploymentoperation.ts +16 -1
  143. package/ts/data/deploymentpreflight.ts +0 -2
  144. package/ts/data/immutableimage.ts +71 -24
  145. package/ts/data/index.ts +5 -1
  146. package/ts/data/isolatedrestore.golden.ts +5 -9
  147. package/ts/data/isolatedrestore.ts +339 -54
  148. package/ts/data/mail.ts +1 -1
  149. package/ts/data/networkaddressplan.ts +175 -0
  150. package/ts/data/networkauthority.ts +45 -61
  151. package/ts/data/networkcredential.ts +24 -24
  152. package/ts/data/networkdelivery.ts +27 -27
  153. package/ts/data/networklease.ts +40 -13
  154. package/ts/data/networknode.ts +37 -0
  155. package/ts/data/networkprojection.ts +119 -124
  156. package/ts/data/networkprotection.ts +54 -55
  157. package/ts/data/networkrouter.ts +14 -14
  158. package/ts/data/networksigning.ts +29 -32
  159. package/ts/data/nodecredential.ts +4 -6
  160. package/ts/data/nodeenrollment.ts +96 -114
  161. package/ts/data/privatenetwork.ts +58 -74
  162. package/ts/data/runtimeassignment.ts +143 -94
  163. package/ts/data/runtimeconfig.ts +62 -122
  164. package/ts/data/runtimesession.ts +185 -138
  165. package/ts/data/runtimeterminalreceipt.ts +72 -73
  166. package/ts/data/secret.ts +28 -76
  167. package/ts/data/servicecredential.ts +33 -43
  168. package/ts/data/serviceruntime.ts +208 -0
  169. package/ts/data/sparknodereport.ts +48 -36
  170. package/ts/data/webpush.ts +0 -1
  171. package/ts/index.ts +2 -0
  172. package/ts/platform/objectstorageretention.ts +36 -55
  173. package/ts/platform/storage.ts +1 -3
  174. package/ts/platform/storagemigration.golden.ts +7 -11
  175. package/ts/platform/storagemigration.ts +5 -55
  176. package/ts/platform/types.ts +2 -2
  177. package/ts/private/canonicaljson.ts +13 -1
  178. package/ts/private/dataproperties.ts +139 -0
  179. package/ts/private/networkcontract.ts +23 -9
  180. package/ts/private/producercontract.ts +19 -0
  181. package/ts/private/releaseversion.ts +70 -0
  182. package/ts/private/runtimepolicy.ts +105 -0
  183. package/ts/private/tokenlist.ts +30 -0
  184. package/ts/protocol.ts +364 -0
  185. package/ts/requests/admin.ts +11 -11
  186. package/ts/requests/backup.ts +112 -117
  187. package/ts/requests/cluster.ts +58 -13
  188. package/ts/requests/clusteringress.ts +9 -0
  189. package/ts/requests/config.ts +3 -3
  190. package/ts/requests/corestore.ts +4 -16
  191. package/ts/requests/network.ts +90 -41
  192. package/ts/requests/node.ts +21 -38
  193. package/ts/requests/pallet.ts +17 -17
  194. package/ts/requests/runtimesession.ts +63 -51
  195. package/ts/requests/secret.ts +5 -10
  196. package/ts/requests/service.ts +81 -0
  197. package/ts/runtime.corestore.databaseexportpackage.golden.ts +77 -95
  198. package/ts/runtime.corestore.databaseexportpackage.ts +51 -73
  199. package/ts/runtime.corestore.relay.ts +1 -10
  200. package/ts/runtime.corestore.ts +118 -268
  201. package/ts/runtime.networkprojection.ts +30 -30
  202. package/ts/runtime.ts +83 -158
  203. package/ts/runtime.workloadinit.ts +36 -48
  204. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.d.ts +0 -902
  205. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.golden.d.ts +0 -35
  206. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.golden.js +0 -315
  207. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.js +0 -3315
  208. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.d.ts +0 -291
  209. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.golden.d.ts +0 -30
  210. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.golden.js +0 -408
  211. package/dist_ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.js +0 -1126
  212. package/ts/runtime.cloudlylegacydeploymentsettlement.golden.ts +0 -421
  213. package/ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.golden.ts +0 -510
  214. package/ts/runtime.cloudlylegacydeploymentsettlement.offlineexport.ts +0 -2470
  215. package/ts/runtime.cloudlylegacydeploymentsettlement.ts +0 -6630
@@ -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
- ICorestoreDatabaseExportPackageCompletionV1,
7
- ICorestoreDatabaseExportPackageReleaseCompletionV1,
8
- ICorestoreDatabaseExportPackageReleaseRequestV1,
9
- ICorestoreDatabaseExportPackageReleaseResponseV1,
10
- ICorestoreDatabaseExportPackageRequestV1,
11
- ICorestoreDatabaseExportPackageResponseV1,
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 ICorestoreDatabaseExportPackageGoldenVectorsV1 {
22
- version: 1;
21
+ interface ICorestoreDatabaseExportPackageGoldenVectors {
23
22
  request: ICorestoreDatabaseExportPackageGoldenArtifact<
24
- ICorestoreDatabaseExportPackageRequestV1
23
+ ICorestoreDatabaseExportPackageRequest
25
24
  >;
26
25
  receipt: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseBackupReceipt>;
27
26
  completion: ICorestoreDatabaseExportPackageGoldenArtifact<
28
- ICorestoreDatabaseExportPackageCompletionV1
27
+ ICorestoreDatabaseExportPackageCompletion
29
28
  >;
30
29
  response: ICorestoreDatabaseExportPackageGoldenArtifact<
31
- ICorestoreDatabaseExportPackageResponseV1
30
+ ICorestoreDatabaseExportPackageResponse
32
31
  >;
33
32
  replayResponse: ICorestoreDatabaseExportPackageGoldenArtifact<
34
- ICorestoreDatabaseExportPackageResponseV1
33
+ ICorestoreDatabaseExportPackageResponse
35
34
  >;
36
35
  releaseRequest: ICorestoreDatabaseExportPackageGoldenArtifact<
37
- ICorestoreDatabaseExportPackageReleaseRequestV1
36
+ ICorestoreDatabaseExportPackageReleaseRequest
38
37
  >;
39
38
  releaseCompletion: ICorestoreDatabaseExportPackageGoldenArtifact<
40
- ICorestoreDatabaseExportPackageReleaseCompletionV1
39
+ ICorestoreDatabaseExportPackageReleaseCompletion
41
40
  >;
42
41
  releaseResponse: ICorestoreDatabaseExportPackageGoldenArtifact<
43
- ICorestoreDatabaseExportPackageReleaseResponseV1
42
+ ICorestoreDatabaseExportPackageReleaseResponse
44
43
  >;
45
44
  replayReleaseResponse: ICorestoreDatabaseExportPackageGoldenArtifact<
46
- ICorestoreDatabaseExportPackageReleaseResponseV1
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: ICorestoreDatabaseExportPackageRequestV1 = {
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
- schemaVersion: 1,
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: ICorestoreDatabaseExportPackageCompletionV1 = {
125
- schemaVersion: 1,
120
+ const completion: ICorestoreDatabaseExportPackageCompletion = {
126
121
  kind: 'corestore-database-export-package-completion',
127
122
  packageAttemptId: request.packageAttemptId,
128
- requestSha256: 'd9e63a397c066aaaec2904d20c1a12240e0a1a902ab388cdff2cebde6c9e1cec',
123
+ requestSha256: '688e29e07658ea4fea92738dc8e56502cb7e01ae609b471914180922225b8602',
129
124
  completedAt: 1_700_000_201_000,
130
125
  receipt,
131
- receiptSha256: '081fc6e6cca7ab6c25a4583a6689821a01f1807942ac0259ba3394b8f34ef580',
126
+ receiptSha256: '53551692c49f3059dbb63d70f59dfc534a039b6296aae1158e3ba5490829ce55',
132
127
  closureByteLength: receipt.closure.archiveBytes,
133
128
  closureSha256: receipt.closure.sha256,
134
129
  };
135
130
 
136
- const response: ICorestoreDatabaseExportPackageResponseV1 = {
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: ICorestoreDatabaseExportPackageResponseV1 = {
137
+ const replayResponse: ICorestoreDatabaseExportPackageResponse = {
144
138
  ...response,
145
139
  replayed: true,
146
140
  };
147
141
 
148
- const releaseRequest: ICorestoreDatabaseExportPackageReleaseRequestV1 = {
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: 'e771f6f674bc6b00295a38b191aa43cd731e2811f149d54d1fd6b7f14fbc81ce',
146
+ completionSha256: '5f0c38620cda8ceb71f3d9b308848892976040aa008d8d10155454df6e2817a2',
154
147
  callerFsyncedClosureByteLength: completion.closureByteLength,
155
148
  callerFsyncedClosureSha256: completion.closureSha256,
156
- callerFsyncedReceiptByteLength: 1203,
149
+ callerFsyncedReceiptByteLength: 1164,
157
150
  callerFsyncedReceiptSha256: completion.receiptSha256,
158
151
  callerFsyncedAt: 1_700_000_201_001,
159
152
  };
160
153
 
161
- const releaseCompletion: ICorestoreDatabaseExportPackageReleaseCompletionV1 = {
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
- '4dc5b3a803aa1e56fdeb74d45ccfa123781c6162a300333c31a85006d9a2d460',
160
+ '4c9632aa44dc979c61a72b13bbdf0e5e75499424f00dfe63d2c065947e0e9101',
169
161
  releasedAt: 1_700_000_201_002,
170
162
  };
171
163
 
172
- const releaseResponse: ICorestoreDatabaseExportPackageReleaseResponseV1 = {
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: ICorestoreDatabaseExportPackageReleaseResponseV1 = {
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
- + '"format":"smartdb.database.export.v1","lineFeedTerminator":"single-lf",'
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
- + '"chunkCount":3,"formatVersion":1,"objectCount":2,"packCount":1,"payloadBytes":4249,'
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.v1","schemaVersion":1,'
210
- + '"snapshot":{"capability":"database","createdAt":1700000201000,'
211
- + `"databaseAllocation":${allocationCanonical},`
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
- + '"corestore":"resource","resourceName":"cloudly","serviceId":"service-cloudly",'
217
- + '"serviceName":"cloudly","snapshotName":"package-cloudly-offline-1"}},'
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
- + '"packageAttemptId":"offline-package-attempt-1",'
225
- + `"receipt":${receiptCanonical},`
226
- + '"receiptSha256":"081fc6e6cca7ab6c25a4583a6689821a01f1807942ac0259ba3394b8f34ef580",'
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
- + '"kind":"corestore-database-export-package-response","replayed":false,"schemaVersion":1}';
216
+ `{"completion":${completionCanonical},"kind":"corestore-database-export-package-response",`
217
+ + '"replayed":false}';
233
218
 
234
219
  const replayResponseCanonical =
235
- `{"completion":${completionCanonical},`
236
- + '"kind":"corestore-database-export-package-response","replayed":true,"schemaVersion":1}';
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":1203,'
242
- + '"callerFsyncedReceiptSha256":"081fc6e6cca7ab6c25a4583a6689821a01f1807942ac0259ba3394b8f34ef580",'
243
- + '"completionSha256":"e771f6f674bc6b00295a38b191aa43cd731e2811f149d54d1fd6b7f14fbc81ce",'
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":"d9e63a397c066aaaec2904d20c1a12240e0a1a902ab388cdff2cebde6c9e1cec",'
247
- + '"schemaVersion":1}';
231
+ + '"requestSha256":"688e29e07658ea4fea92738dc8e56502cb7e01ae609b471914180922225b8602"}';
248
232
 
249
233
  const releaseCompletionCanonical =
250
- '{"completionSha256":"e771f6f674bc6b00295a38b191aa43cd731e2811f149d54d1fd6b7f14fbc81ce",'
234
+ '{"completionSha256":"5f0c38620cda8ceb71f3d9b308848892976040aa008d8d10155454df6e2817a2",'
251
235
  + '"kind":"corestore-database-export-package-release-completion",'
252
236
  + '"packageAttemptId":"offline-package-attempt-1",'
253
- + '"releaseRequestSha256":"4dc5b3a803aa1e56fdeb74d45ccfa123781c6162a300333c31a85006d9a2d460",'
237
+ + '"releaseRequestSha256":"4c9632aa44dc979c61a72b13bbdf0e5e75499424f00dfe63d2c065947e0e9101",'
254
238
  + '"releasedAt":1700000201002,'
255
- + '"requestSha256":"d9e63a397c066aaaec2904d20c1a12240e0a1a902ab388cdff2cebde6c9e1cec",'
256
- + '"schemaVersion":1}';
239
+ + '"requestSha256":"688e29e07658ea4fea92738dc8e56502cb7e01ae609b471914180922225b8602"}';
257
240
 
258
241
  const releaseResponseCanonical =
259
- '{"kind":"corestore-database-export-package-release-response",'
260
- + `"release":${releaseCompletionCanonical},"replayed":false,"schemaVersion":1}`;
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
- + `"release":${releaseCompletionCanonical},"replayed":true,"schemaVersion":1}`;
246
+ '{"kind":"corestore-database-export-package-release-response","release":'
247
+ + `${releaseCompletionCanonical},"replayed":true}`;
265
248
 
266
249
  export const corestoreDatabaseExportPackageGoldenVectors:
267
- Readonly<ICorestoreDatabaseExportPackageGoldenVectorsV1> = deepFreezeValue({
268
- version: 1,
250
+ Readonly<ICorestoreDatabaseExportPackageGoldenVectors> = deepFreezeValue({
269
251
  request: {
270
252
  input: request,
271
253
  canonical: requestCanonical,
272
- byteLength: 1084,
273
- sha256: 'd9e63a397c066aaaec2904d20c1a12240e0a1a902ab388cdff2cebde6c9e1cec',
254
+ byteLength: 1066,
255
+ sha256: '688e29e07658ea4fea92738dc8e56502cb7e01ae609b471914180922225b8602',
274
256
  },
275
257
  receipt: {
276
258
  input: receipt,
277
259
  canonical: receiptCanonical,
278
- byteLength: 1203,
279
- sha256: '081fc6e6cca7ab6c25a4583a6689821a01f1807942ac0259ba3394b8f34ef580',
260
+ byteLength: 1164,
261
+ sha256: '53551692c49f3059dbb63d70f59dfc534a039b6296aae1158e3ba5490829ce55',
280
262
  },
281
263
  completion: {
282
264
  input: completion,
283
265
  canonical: completionCanonical,
284
- byteLength: 1636,
285
- sha256: 'e771f6f674bc6b00295a38b191aa43cd731e2811f149d54d1fd6b7f14fbc81ce',
266
+ byteLength: 1579,
267
+ sha256: '5f0c38620cda8ceb71f3d9b308848892976040aa008d8d10155454df6e2817a2',
286
268
  },
287
269
  response: {
288
270
  input: response,
289
271
  canonical: responseCanonical,
290
- byteLength: 1738,
291
- sha256: 'b119c4c7b8747ac4ebadf8858be4cde362cf99be66d30a537148a3dcb25171c1',
272
+ byteLength: 1663,
273
+ sha256: 'b5434103c7ced4a2f2e36814ff663a9987eee16d6d1e662de5df3a12bb908393',
292
274
  },
293
275
  replayResponse: {
294
276
  input: replayResponse,
295
277
  canonical: replayResponseCanonical,
296
- byteLength: 1737,
297
- sha256: '3666c3ff9e9da23617c810dc86f27787909b487fd836045c50250c566379ddd2',
278
+ byteLength: 1662,
279
+ sha256: 'd2f77abe1319cf3f0bf197b71686209c348a045723e07f93f91131e7e108f5a2',
298
280
  },
299
281
  releaseRequest: {
300
282
  input: releaseRequest,
301
283
  canonical: releaseRequestCanonical,
302
- byteLength: 594,
303
- sha256: '4dc5b3a803aa1e56fdeb74d45ccfa123781c6162a300333c31a85006d9a2d460',
284
+ byteLength: 576,
285
+ sha256: '4c9632aa44dc979c61a72b13bbdf0e5e75499424f00dfe63d2c065947e0e9101',
304
286
  },
305
287
  releaseCompletion: {
306
288
  input: releaseCompletion,
307
289
  canonical: releaseCompletionCanonical,
308
- byteLength: 414,
309
- sha256: '7a06c6a571586a94c363880b68aa59d144ba75a3bfaeb6137725183c5b99a19c',
290
+ byteLength: 396,
291
+ sha256: 'e77b63c8db4659973e7545488bf58c3f3aafb3834a36d1de2b2a9e857d031794',
310
292
  },
311
293
  releaseResponse: {
312
294
  input: releaseResponse,
313
295
  canonical: releaseResponseCanonical,
314
- byteLength: 521,
315
- sha256: '1529914cb60ac561f09bfcc5d0a123d4e676515789ec3859b3e2e84ef6c19afc',
296
+ byteLength: 485,
297
+ sha256: 'f33f1df9b9b5726c324d017c287e6a1ee36d65d7ea20f636195d7345dd83ace9',
316
298
  },
317
299
  replayReleaseResponse: {
318
300
  input: replayReleaseResponse,
319
301
  canonical: replayReleaseResponseCanonical,
320
- byteLength: 520,
321
- sha256: 'fa4413657a3ee9f77ca4d1852a6627faa0282712113a07cf6a57e7dd3d0266e9',
302
+ byteLength: 484,
303
+ sha256: '8613993f7975b390be6f662d250d460ab22df54e4b14ee046c4709232a17fd21',
322
304
  },
323
305
  });