@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
@@ -8,6 +8,7 @@ import type { IImageRelease } from '../data/immutableimage.js';
8
8
  import type { IDeploymentPreflightReport, IDeploymentPreflightRequestData } from '../data/deploymentpreflight.js';
9
9
  import type { IDeploymentReservationInput, IServiceDeploymentOperation, IServiceDeploymentStatus } from '../data/deploymentoperation.js';
10
10
  import type { TSha256Digest } from '../data/immutableimage.js';
11
+ import type { IServiceRuntimeAssignmentView, IServiceRuntimeSpec, IServiceRuntimeStatus, TServiceRuntimeSpecWritableData } from '../data/serviceruntime.js';
11
12
  import type { IServiceDeploymentAdoptionInput, IServiceDeploymentAdoptionImagePromotionInput, IServiceDeploymentAdoptionImagePromotionResult, IServiceDeploymentAdoptionRolloutInput, IServiceDeploymentAdoptionRolloutResult, IServiceDeploymentAdoptionPreflightInput, IServiceDeploymentAdoptionReport, IServiceDeploymentAdoptionResult } from '../data/deploymentadoption.js';
12
13
  export interface IRequest_Any_Cloudly_BootstrapServiceDeploymentAdoptionRollout extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_BootstrapServiceDeploymentAdoptionRollout> {
13
14
  method: 'bootstrapServiceDeploymentAdoptionRollout';
@@ -253,3 +254,62 @@ export interface IRequest_Any_Cloudly_DeleteServiceById extends plugins.typedreq
253
254
  success: boolean;
254
255
  };
255
256
  }
257
+ /**
258
+ * Writes the complete runtime spec of one service.
259
+ *
260
+ * `expectedRevision` is the revision the caller read, or `null` when the service has never had a
261
+ * spec; any other stored revision refuses the write. Cloudly copies the organization from the
262
+ * service and answers with the stored spec at its new revision.
263
+ */
264
+ export interface IRequest_Any_Cloudly_SetServiceRuntimeSpec extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_SetServiceRuntimeSpec> {
265
+ method: 'setServiceRuntimeSpec';
266
+ request: {
267
+ identity: IIdentity;
268
+ serviceId: string;
269
+ expectedRevision: number | null;
270
+ spec: TServiceRuntimeSpecWritableData;
271
+ };
272
+ response: {
273
+ spec: IServiceRuntimeSpec;
274
+ };
275
+ }
276
+ /**
277
+ * A service's runtime spec and the producer's verdict on it. Both are `null` before the first spec;
278
+ * a spec's status is `null` until the producer first decides it.
279
+ */
280
+ export interface IRequest_Any_Cloudly_GetServiceRuntimeSpec extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServiceRuntimeSpec> {
281
+ method: 'getServiceRuntimeSpec';
282
+ request: {
283
+ identity: IIdentity;
284
+ serviceId: string;
285
+ };
286
+ response: {
287
+ spec: null;
288
+ status: null;
289
+ } | {
290
+ spec: IServiceRuntimeSpec;
291
+ status: IServiceRuntimeStatus | null;
292
+ };
293
+ }
294
+ /** Every current runtime assignment of one service, one per replica slot. */
295
+ export interface IRequest_Any_Cloudly_GetServiceRuntimeAssignments extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServiceRuntimeAssignments> {
296
+ method: 'getServiceRuntimeAssignments';
297
+ request: {
298
+ identity: IIdentity;
299
+ serviceId: string;
300
+ };
301
+ response: {
302
+ assignments: IServiceRuntimeAssignmentView[];
303
+ };
304
+ }
305
+ /**
306
+ * Cloudly -> admin UIs: a service's runtime spec, status or assignments changed. It carries no
307
+ * state, so a late or repeated push can never overwrite a newer read; the UI reads the views again.
308
+ */
309
+ export interface IReq_Cloudly_Any_PushServiceRuntimeChanged extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Cloudly_Any_PushServiceRuntimeChanged> {
310
+ method: 'pushServiceRuntimeChanged';
311
+ request: {
312
+ serviceId: string;
313
+ };
314
+ response: Record<string, never>;
315
+ }
@@ -1,7 +1,7 @@
1
1
  import * as plugins from './plugins.js';
2
2
  import type { IActiveSecretRecipientMetadata, ICorestoreDatabaseAllocationReference, IIdentityCredential, ISecretVersionReference } from './data/index.js';
3
- import type { ISecretEnvelopeAdmissionBindingV1 } from './runtime.js';
4
- import type { IObjectStorageRetentionIntentV1, IObjectStorageRetentionEvidenceExpectationV1, IObjectStorageRetentionEvidenceV1 } from './platform/objectstorageretention.js';
3
+ import type { ISecretEnvelopeAdmissionBinding } from './runtime.js';
4
+ import type { IObjectStorageRetentionIntent, IObjectStorageRetentionEvidenceExpectation, IObjectStorageRetentionEvidence } from './platform/objectstorageretention.js';
5
5
  export type TCorestoreCredentialCapability = 'database' | 'objectstorage';
6
6
  export declare const corestoreProviderConfigIds: Readonly<{
7
7
  readonly database: "cloudly-corestore-database";
@@ -22,14 +22,12 @@ export declare const corestoreCredentialRuntimeLimits: Readonly<{
22
22
  maximumSealedControlCredentialBytes: number;
23
23
  }>;
24
24
  export declare const getCorestoreProviderConfigId: (capabilityArg: TCorestoreCredentialCapability) => (typeof corestoreProviderConfigIds)[TCorestoreCredentialCapability];
25
- export interface ICorestoreControlCredentialPlaintextV1 {
26
- schemaVersion: 1;
25
+ export interface ICorestoreControlCredentialPlaintext {
27
26
  key: typeof corestoreControlCredentialKey;
28
27
  environment: typeof corestoreCredentialEnvironment;
29
28
  value: string;
30
29
  }
31
- export interface ICorestoreControlCredentialMaterialV1 {
32
- schemaVersion: 1;
30
+ export interface ICorestoreControlCredentialMaterial {
33
31
  requestId: string;
34
32
  clusterId: string;
35
33
  capability: TCorestoreCredentialCapability;
@@ -52,17 +50,17 @@ export interface IReq_GetCorestoreControlCredentialMaterial extends plugins.type
52
50
  expectedRecipientGeneration: number;
53
51
  };
54
52
  response: {
55
- material: ICorestoreControlCredentialMaterialV1;
53
+ material: ICorestoreControlCredentialMaterial;
56
54
  };
57
55
  }
58
- export interface ICorestoreControlCredentialMaterialExpectationV1 {
56
+ export interface ICorestoreControlCredentialMaterialExpectation {
59
57
  requestId: string;
60
58
  clusterId: string;
61
59
  capability: TCorestoreCredentialCapability;
62
60
  expectedRecipientKeyId: string;
63
61
  expectedRecipientGeneration: number;
64
62
  }
65
- export interface ICorestoreControlCredentialMaterialContextInputV1 {
63
+ export interface ICorestoreControlCredentialMaterialContextInput {
66
64
  requestId: string;
67
65
  clusterId: string;
68
66
  capability: TCorestoreCredentialCapability;
@@ -72,11 +70,10 @@ export interface ICorestoreControlCredentialMaterialContextInputV1 {
72
70
  export declare const isCorestoreControlToken: (valueArg: unknown) => valueArg is string;
73
71
  export declare const createCorestoreControlCredentialPlaintextBytes: (tokenBytesArg: Uint8Array) => Uint8Array | undefined;
74
72
  export declare const validateGetCorestoreControlCredentialMaterialRequest: (requestArg: unknown, activeRecipientArg: IActiveSecretRecipientMetadata) => string[];
75
- export declare const createCorestoreControlCredentialMaterialEnvelopeContext: (materialArg: ICorestoreControlCredentialMaterialContextInputV1) => Uint8Array;
73
+ export declare const createCorestoreControlCredentialMaterialEnvelopeContext: (materialArg: ICorestoreControlCredentialMaterialContextInput) => Uint8Array;
76
74
  export declare const validateCorestoreControlCredentialPlaintext: (plaintextArg: unknown) => string[];
77
- export declare const validateCorestoreControlCredentialMaterial: (materialArg: unknown, expectedArg: ICorestoreControlCredentialMaterialExpectationV1) => Promise<string[]>;
78
- export interface ICorestoreCredentialPublicationGrantV1 {
79
- schemaVersion: 1;
75
+ export declare const validateCorestoreControlCredentialMaterial: (materialArg: unknown, expectedArg: ICorestoreControlCredentialMaterialExpectation) => Promise<string[]>;
76
+ export interface ICorestoreCredentialPublicationGrant {
80
77
  operationId: string;
81
78
  serviceId: string;
82
79
  bindingId: string;
@@ -87,41 +84,23 @@ export interface ICorestoreCredentialPublicationGrantV1 {
87
84
  issuedAt: number;
88
85
  expiresAt: number;
89
86
  }
90
- interface ICorestoreCredentialBindingRequestBaseV1 {
91
- schemaVersion: 1;
87
+ interface ICorestoreCredentialBindingRequestBase {
92
88
  serviceId: string;
93
89
  bindingId: string;
94
90
  providerConfigId: typeof corestoreProviderConfigIds[TCorestoreCredentialCapability];
95
91
  managementScope: typeof corestoreCredentialManagementScope;
96
92
  environment: typeof corestoreCredentialEnvironment;
97
93
  }
98
- export type TCorestoreCredentialBindingRequestV1 = ICorestoreCredentialBindingRequestBaseV1 & {
94
+ export type TCorestoreCredentialBindingRequest = ICorestoreCredentialBindingRequestBase & {
99
95
  capability: 'database';
100
- } | ICorestoreCredentialBindingRequestBaseV1 & {
101
- capability: 'objectstorage';
102
- objectstorageRetention?: IObjectStorageRetentionIntentV1;
103
- };
104
- interface ICorestoreCredentialBindingRequestBaseV2 {
105
- schemaVersion: 2;
106
- serviceId: string;
107
- bindingId: string;
108
- providerConfigId: typeof corestoreProviderConfigIds[TCorestoreCredentialCapability];
109
- managementScope: typeof corestoreCredentialManagementScope;
110
- environment: typeof corestoreCredentialEnvironment;
111
- }
112
- export type TCorestoreCredentialBindingRequestV2 = ICorestoreCredentialBindingRequestBaseV2 & {
113
- capability: 'database';
114
- } | ICorestoreCredentialBindingRequestBaseV2 & {
96
+ } | ICorestoreCredentialBindingRequestBase & {
115
97
  capability: 'objectstorage';
116
98
  bucketName: string;
117
- objectstorageRetention?: IObjectStorageRetentionIntentV1;
99
+ objectstorageRetention?: IObjectStorageRetentionIntent;
118
100
  };
119
101
  export declare const validateCorestoreCredentialBindingRequest: (requestArg: unknown) => string[];
120
- export declare const createCorestoreCredentialBindingRequestDigestInput: (requestArg: TCorestoreCredentialBindingRequestV1) => string;
121
- export declare const computeCorestoreCredentialBindingRequestSha256: (requestArg: TCorestoreCredentialBindingRequestV1) => Promise<string>;
122
- export declare const validateCorestoreCredentialBindingRequestV2: (requestArg: unknown) => string[];
123
- export declare const createCorestoreCredentialBindingRequestDigestInputV2: (requestArg: TCorestoreCredentialBindingRequestV2) => string;
124
- export declare const computeCorestoreCredentialBindingRequestSha256V2: (requestArg: TCorestoreCredentialBindingRequestV2) => Promise<string>;
102
+ export declare const createCorestoreCredentialBindingRequestDigestInput: (requestArg: TCorestoreCredentialBindingRequest) => string;
103
+ export declare const computeCorestoreCredentialBindingRequestSha256: (requestArg: TCorestoreCredentialBindingRequest) => Promise<string>;
125
104
  export declare const validateCorestoreCredentialPublicationGrant: (grantArg: unknown, trustedNowArg?: number) => string[];
126
105
  export declare const corestoreCredentialPublicationGrantsEqual: (leftArg: unknown, rightArg: unknown) => boolean;
127
106
  export declare const validateCorestoreCredentialPublicationGrants: (grantsArg: unknown, trustedNowArg?: number) => string[];
@@ -133,78 +112,75 @@ export type TCorestoreObjectStorageCredentialPlaintextKey = typeof corestoreObje
133
112
  export type TCorestoreObjectStorageCredentialSecretKey = typeof corestoreObjectStorageCredentialSecretKeys[number];
134
113
  export type TCorestoreCredentialPlaintextKey = TCorestoreDatabaseCredentialKey | TCorestoreObjectStorageCredentialPlaintextKey;
135
114
  export type TCorestoreCredentialSecretKey = TCorestoreDatabaseCredentialKey | TCorestoreObjectStorageCredentialSecretKey;
136
- export type TCorestoreDatabaseCredentialValuesV1 = {
115
+ export type TCorestoreDatabaseCredentialValues = {
137
116
  [TKey in TCorestoreDatabaseCredentialKey]: string;
138
117
  };
139
- export interface ICorestoreDatabaseCredentialPlaintextMaterialV1 {
140
- schemaVersion: 1;
118
+ export interface ICorestoreDatabaseCredentialPlaintextMaterial {
141
119
  capability: 'database';
142
- values: TCorestoreDatabaseCredentialValuesV1;
120
+ values: TCorestoreDatabaseCredentialValues;
143
121
  }
144
- export interface ICorestoreObjectStorageCredentialPlaintextMaterialV1 {
145
- schemaVersion: 1;
122
+ export interface ICorestoreObjectStorageCredentialPlaintextMaterial {
146
123
  capability: 'objectstorage';
147
124
  values: {
148
125
  accessKeyId: string;
149
126
  secretAccessKey: string;
150
127
  };
151
- retention?: IObjectStorageRetentionEvidenceV1;
128
+ retention?: IObjectStorageRetentionEvidence;
152
129
  }
153
- export type TCorestoreCredentialPlaintextMaterialV1 = ICorestoreDatabaseCredentialPlaintextMaterialV1 | ICorestoreObjectStorageCredentialPlaintextMaterialV1;
130
+ export type TCorestoreCredentialPlaintextMaterial = ICorestoreDatabaseCredentialPlaintextMaterial | ICorestoreObjectStorageCredentialPlaintextMaterial;
154
131
  export declare const validateCorestoreDatabaseCredentialMaterial: (materialArg: unknown) => string[];
155
- export declare const validateCorestoreObjectStorageCredentialMaterial: (materialArg: unknown, retentionExpectationArg?: IObjectStorageRetentionEvidenceExpectationV1) => Promise<string[]>;
156
- export declare const validateCorestoreCredentialPlaintextMaterial: (materialArg: unknown, retentionExpectationArg?: IObjectStorageRetentionEvidenceExpectationV1) => Promise<string[]>;
157
- export interface ICorestoreCredentialSecretValueV1 {
132
+ export declare const validateCorestoreObjectStorageCredentialMaterial: (materialArg: unknown, retentionExpectationArg?: IObjectStorageRetentionEvidenceExpectation) => Promise<string[]>;
133
+ export declare const validateCorestoreCredentialPlaintextMaterial: (materialArg: unknown, retentionExpectationArg?: IObjectStorageRetentionEvidenceExpectation) => Promise<string[]>;
134
+ export interface ICorestoreCredentialSecretValue {
158
135
  key: TCorestoreCredentialSecretKey;
159
136
  value: string;
160
137
  }
161
- export declare const createCorestoreCredentialSecretValues: (materialArg: TCorestoreCredentialPlaintextMaterialV1, retentionExpectationArg?: IObjectStorageRetentionEvidenceExpectationV1) => Promise<ICorestoreCredentialSecretValueV1[]>;
162
- export interface IPublishCorestoreCredentialMaterialRequestV1 {
138
+ export declare const createCorestoreCredentialSecretValues: (materialArg: TCorestoreCredentialPlaintextMaterial, retentionExpectationArg?: IObjectStorageRetentionEvidenceExpectation) => Promise<ICorestoreCredentialSecretValue[]>;
139
+ export interface IPublishCorestoreCredentialMaterialRequest {
163
140
  identity: IIdentityCredential;
164
141
  mutationId: string;
165
- grant: ICorestoreCredentialPublicationGrantV1;
142
+ grant: ICorestoreCredentialPublicationGrant;
166
143
  expectedIngressRecipientKeyId: string;
167
144
  expectedIngressRecipientGeneration: number;
168
145
  envelope: plugins.smartcrypto.IX25519EnvelopeV1;
169
146
  }
170
- export interface ICorestoreCredentialSecretVersionReferenceV1 extends ISecretVersionReference {
147
+ export interface ICorestoreCredentialSecretVersionReference extends ISecretVersionReference {
171
148
  key: TCorestoreCredentialSecretKey;
172
149
  }
173
- export interface ICorestoreCredentialPublicationCoverageV1 {
150
+ export interface ICorestoreCredentialPublicationCoverage {
174
151
  keys: TCorestoreCredentialSecretKey[];
175
- versionReferences: ICorestoreCredentialSecretVersionReferenceV1[];
152
+ versionReferences: ICorestoreCredentialSecretVersionReference[];
176
153
  }
177
- export interface ICorestoreCredentialPublicationReceiptV1 {
178
- schemaVersion: 1;
154
+ export interface ICorestoreCredentialPublicationReceipt {
179
155
  mutationId: string;
180
156
  organizationId: string;
181
157
  clusterId: string;
182
158
  serviceId: string;
183
159
  bindingId: string;
184
160
  capability: TCorestoreCredentialCapability;
185
- grant: ICorestoreCredentialPublicationGrantV1;
186
- coverage: ICorestoreCredentialPublicationCoverageV1;
161
+ grant: ICorestoreCredentialPublicationGrant;
162
+ coverage: ICorestoreCredentialPublicationCoverage;
187
163
  expectedTargetSecretsRevision: number;
188
164
  targetSecretsRevision: number;
189
- ingressAdmissionBinding: ISecretEnvelopeAdmissionBindingV1;
165
+ ingressAdmissionBinding: ISecretEnvelopeAdmissionBinding;
190
166
  acceptedAt: number;
191
167
  replayed: boolean;
192
168
  }
193
169
  export interface IReq_PublishCorestoreCredentialMaterial extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_PublishCorestoreCredentialMaterial> {
194
170
  method: 'publishCorestoreCredentialMaterial';
195
- request: IPublishCorestoreCredentialMaterialRequestV1;
171
+ request: IPublishCorestoreCredentialMaterialRequest;
196
172
  response: {
197
- receipt: ICorestoreCredentialPublicationReceiptV1;
173
+ receipt: ICorestoreCredentialPublicationReceipt;
198
174
  };
199
175
  }
200
- export declare const createPublishCorestoreCredentialMaterialEnvelopeContext: (requestArg: Omit<IPublishCorestoreCredentialMaterialRequestV1, "identity" | "envelope">) => Uint8Array;
201
- export declare const validatePublishCorestoreCredentialMaterialRequest: (requestArg: unknown, expectedGrantArg: ICorestoreCredentialPublicationGrantV1, activeRecipientArg: IActiveSecretRecipientMetadata, trustedNowArg: number) => Promise<string[]>;
202
- export interface ICorestoreCredentialPublicationReceiptExpectationV1 {
203
- request: IPublishCorestoreCredentialMaterialRequestV1;
176
+ export declare const createPublishCorestoreCredentialMaterialEnvelopeContext: (requestArg: Omit<IPublishCorestoreCredentialMaterialRequest, "identity" | "envelope">) => Uint8Array;
177
+ export declare const validatePublishCorestoreCredentialMaterialRequest: (requestArg: unknown, expectedGrantArg: ICorestoreCredentialPublicationGrant, activeRecipientArg: IActiveSecretRecipientMetadata, trustedNowArg: number) => Promise<string[]>;
178
+ export interface ICorestoreCredentialPublicationReceiptExpectation {
179
+ request: IPublishCorestoreCredentialMaterialRequest;
204
180
  organizationId: string;
205
181
  clusterId: string;
206
182
  }
207
- export declare const validateCorestoreCredentialPublicationReceipt: (receiptArg: unknown, expectedArg: ICorestoreCredentialPublicationReceiptExpectationV1) => Promise<string[]>;
183
+ export declare const validateCorestoreCredentialPublicationReceipt: (receiptArg: unknown, expectedArg: ICorestoreCredentialPublicationReceiptExpectation) => Promise<string[]>;
208
184
  export declare const corestoreCredentialPublicationErrorMetadata: Readonly<{
209
185
  readonly INVALID_IDENTITY: Readonly<{
210
186
  retryable: false;
@@ -241,12 +217,11 @@ export declare const corestoreCredentialPublicationErrorMetadata: Readonly<{
241
217
  }>;
242
218
  }>;
243
219
  export type TCorestoreCredentialPublicationErrorCode = keyof typeof corestoreCredentialPublicationErrorMetadata;
244
- export interface ICorestoreCredentialPublicationErrorMetadataV1 {
245
- schemaVersion: 1;
220
+ export interface ICorestoreCredentialPublicationErrorMetadata {
246
221
  code: TCorestoreCredentialPublicationErrorCode;
247
222
  retryable: boolean;
248
223
  }
249
- export declare const getCorestoreCredentialPublicationErrorMetadata: (codeArg: TCorestoreCredentialPublicationErrorCode) => ICorestoreCredentialPublicationErrorMetadataV1;
224
+ export declare const getCorestoreCredentialPublicationErrorMetadata: (codeArg: TCorestoreCredentialPublicationErrorCode) => ICorestoreCredentialPublicationErrorMetadata;
250
225
  export declare const corestoreDatabaseBackupRuntimeLimits: Readonly<{
251
226
  maximumControlBytes: number;
252
227
  maximumClosureBytes: number;
@@ -285,7 +260,6 @@ export interface ICorestoreDatabaseBackupSnapshot {
285
260
  databaseAllocation?: ICorestoreDatabaseAllocationReference;
286
261
  }
287
262
  export interface ICorestoreDatabaseBackupClosureReceipt {
288
- formatVersion: 1;
289
263
  snapshotIds: [string];
290
264
  objectCount: number;
291
265
  packCount: number;
@@ -294,9 +268,19 @@ export interface ICorestoreDatabaseBackupClosureReceipt {
294
268
  archiveBytes: number;
295
269
  sha256: string;
296
270
  }
271
+ /**
272
+ * The media type a Corestore database backup archive is served and stored under.
273
+ *
274
+ * Defined once here because four processes state it — Corestore's control server and its export
275
+ * packager, Onebox and the cluster relay — and a content type that two of them spell differently
276
+ * is a transfer that fails at the last hop instead of at the first. Every one of them imports this
277
+ * constant rather than writing the bytes again.
278
+ */
279
+ export declare const corestoreDatabaseBackupMediaType: "application/vnd.serve-zone.corestore-database-backup";
280
+ /** The format a backup receipt states, which is this media type's payload contract. */
281
+ export declare const corestoreDatabaseBackupFormat: "corestore.database.backup";
297
282
  export interface ICorestoreDatabaseBackupReceipt {
298
- schemaVersion: 1;
299
- format: 'corestore.database.backup.v1';
283
+ format: typeof corestoreDatabaseBackupFormat;
300
284
  backupId: string;
301
285
  sourceServiceId: string;
302
286
  createdAt: number;
@@ -304,7 +288,6 @@ export interface ICorestoreDatabaseBackupReceipt {
304
288
  closure: ICorestoreDatabaseBackupClosureReceipt;
305
289
  }
306
290
  export interface ICorestoreDatabaseBackupRestoreRequest {
307
- schemaVersion: 1;
308
291
  targetServiceId: string;
309
292
  receipt: ICorestoreDatabaseBackupReceipt;
310
293
  expectedDatabaseAllocation?: ICorestoreDatabaseAllocationReference;
@@ -312,7 +295,6 @@ export interface ICorestoreDatabaseBackupRestoreRequest {
312
295
  restoreAttemptId?: string;
313
296
  }
314
297
  export interface ICorestoreDatabaseBackupRestoreResponse {
315
- schemaVersion: 1;
316
298
  ok: true;
317
299
  backupId: string;
318
300
  sourceServiceId: string;
@@ -11,39 +11,37 @@ export declare class CorestoreDatabaseExportPackageCodecError extends Error {
11
11
  readonly path: string;
12
12
  constructor(codeArg: TCorestoreDatabaseExportPackageCodecErrorCode, pathArg: string);
13
13
  }
14
- export interface ICorestoreDatabaseExportPackageInputIdentityV1 {
14
+ export interface ICorestoreDatabaseExportPackageInputIdentity {
15
15
  format: 'smartdb.database.export.v1';
16
16
  databaseName: string;
17
17
  byteLength: number;
18
18
  sha256: string;
19
19
  lineFeedTerminator: 'single-lf';
20
20
  }
21
- export interface ICorestoreDatabaseExportPackageApprovedBackupIdentityV1 {
21
+ export interface ICorestoreDatabaseExportPackageApprovedBackupIdentity {
22
22
  backupId: string;
23
23
  sourceServiceId: string;
24
24
  snapshotId: string;
25
25
  backupReceiptSha256: string;
26
26
  }
27
- export interface ICorestoreDatabaseExportPackageAllocationAbsentExpectationV1 {
27
+ export interface ICorestoreDatabaseExportPackageAllocationAbsentExpectation {
28
28
  expectation: 'absent';
29
29
  }
30
- export interface ICorestoreDatabaseExportPackageAllocationExactExpectationV1 {
30
+ export interface ICorestoreDatabaseExportPackageAllocationExactExpectation {
31
31
  expectation: 'exact';
32
32
  allocation: ICorestoreDatabaseAllocationReference;
33
33
  }
34
- export type TCorestoreDatabaseExportPackageAllocationExpectationV1 = ICorestoreDatabaseExportPackageAllocationAbsentExpectationV1 | ICorestoreDatabaseExportPackageAllocationExactExpectationV1;
35
- export interface ICorestoreDatabaseExportPackageRequestV1 {
36
- schemaVersion: 1;
34
+ export type TCorestoreDatabaseExportPackageAllocationExpectation = ICorestoreDatabaseExportPackageAllocationAbsentExpectation | ICorestoreDatabaseExportPackageAllocationExactExpectation;
35
+ export interface ICorestoreDatabaseExportPackageRequest {
37
36
  kind: 'corestore-database-export-package-request';
38
37
  packageAttemptId: string;
39
38
  packageBackupId: string;
40
- input: ICorestoreDatabaseExportPackageInputIdentityV1;
41
- approvedSourceBackup: ICorestoreDatabaseExportPackageApprovedBackupIdentityV1;
39
+ input: ICorestoreDatabaseExportPackageInputIdentity;
40
+ approvedSourceBackup: ICorestoreDatabaseExportPackageApprovedBackupIdentity;
42
41
  completeOutputReceiptSha256: string;
43
- allocationExpectation: TCorestoreDatabaseExportPackageAllocationExpectationV1;
42
+ allocationExpectation: TCorestoreDatabaseExportPackageAllocationExpectation;
44
43
  }
45
- export interface ICorestoreDatabaseExportPackageCompletionV1 {
46
- schemaVersion: 1;
44
+ export interface ICorestoreDatabaseExportPackageCompletion {
47
45
  kind: 'corestore-database-export-package-completion';
48
46
  packageAttemptId: string;
49
47
  requestSha256: string;
@@ -53,14 +51,12 @@ export interface ICorestoreDatabaseExportPackageCompletionV1 {
53
51
  closureByteLength: number;
54
52
  closureSha256: string;
55
53
  }
56
- export interface ICorestoreDatabaseExportPackageResponseV1 {
57
- schemaVersion: 1;
54
+ export interface ICorestoreDatabaseExportPackageResponse {
58
55
  kind: 'corestore-database-export-package-response';
59
- completion: ICorestoreDatabaseExportPackageCompletionV1;
56
+ completion: ICorestoreDatabaseExportPackageCompletion;
60
57
  replayed: boolean;
61
58
  }
62
- export interface ICorestoreDatabaseExportPackageReleaseRequestV1 {
63
- schemaVersion: 1;
59
+ export interface ICorestoreDatabaseExportPackageReleaseRequest {
64
60
  kind: 'corestore-database-export-package-release-request';
65
61
  packageAttemptId: string;
66
62
  requestSha256: string;
@@ -71,8 +67,7 @@ export interface ICorestoreDatabaseExportPackageReleaseRequestV1 {
71
67
  callerFsyncedReceiptSha256: string;
72
68
  callerFsyncedAt: number;
73
69
  }
74
- export interface ICorestoreDatabaseExportPackageReleaseCompletionV1 {
75
- schemaVersion: 1;
70
+ export interface ICorestoreDatabaseExportPackageReleaseCompletion {
76
71
  kind: 'corestore-database-export-package-release-completion';
77
72
  packageAttemptId: string;
78
73
  requestSha256: string;
@@ -80,39 +75,38 @@ export interface ICorestoreDatabaseExportPackageReleaseCompletionV1 {
80
75
  releaseRequestSha256: string;
81
76
  releasedAt: number;
82
77
  }
83
- export interface ICorestoreDatabaseExportPackageReleaseResponseV1 {
84
- schemaVersion: 1;
78
+ export interface ICorestoreDatabaseExportPackageReleaseResponse {
85
79
  kind: 'corestore-database-export-package-release-response';
86
- release: ICorestoreDatabaseExportPackageReleaseCompletionV1;
80
+ release: ICorestoreDatabaseExportPackageReleaseCompletion;
87
81
  replayed: boolean;
88
82
  }
89
83
  export type TCorestoreDatabaseExportPackageRequestReuse = 'different-attempt' | 'exact-replay';
90
- export declare const normalizeCorestoreDatabaseExportPackageInputIdentity: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageInputIdentityV1>;
91
- export declare const normalizeCorestoreDatabaseExportPackageApprovedBackupIdentity: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageApprovedBackupIdentityV1>;
92
- export declare const normalizeCorestoreDatabaseExportPackageAllocationExpectation: (valueArg: unknown) => Readonly<TCorestoreDatabaseExportPackageAllocationExpectationV1>;
93
- export declare const normalizeCorestoreDatabaseExportPackageRequest: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageRequestV1>;
84
+ export declare const normalizeCorestoreDatabaseExportPackageInputIdentity: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageInputIdentity>;
85
+ export declare const normalizeCorestoreDatabaseExportPackageApprovedBackupIdentity: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageApprovedBackupIdentity>;
86
+ export declare const normalizeCorestoreDatabaseExportPackageAllocationExpectation: (valueArg: unknown) => Readonly<TCorestoreDatabaseExportPackageAllocationExpectation>;
87
+ export declare const normalizeCorestoreDatabaseExportPackageRequest: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageRequest>;
94
88
  export declare const encodeCorestoreDatabaseExportPackageRequest: (valueArg: unknown) => Uint8Array;
95
89
  export declare const computeCorestoreDatabaseExportPackageRequestSha256: (valueArg: unknown) => Promise<string>;
96
90
  export declare const classifyCorestoreDatabaseExportPackageRequestReuse: (persistedRequestArg: unknown, candidateRequestArg: unknown) => TCorestoreDatabaseExportPackageRequestReuse;
97
- export declare const normalizeCorestoreDatabaseExportPackageCompletion: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageCompletionV1>;
98
- export declare const normalizeCorestoreDatabaseExportPackageCompletionForRequest: (completionArg: unknown, requestArg: unknown) => Readonly<ICorestoreDatabaseExportPackageCompletionV1>;
91
+ export declare const normalizeCorestoreDatabaseExportPackageCompletion: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageCompletion>;
92
+ export declare const normalizeCorestoreDatabaseExportPackageCompletionForRequest: (completionArg: unknown, requestArg: unknown) => Readonly<ICorestoreDatabaseExportPackageCompletion>;
99
93
  export declare const encodeCorestoreDatabaseExportPackageCompletion: (valueArg: unknown) => Uint8Array;
100
94
  export declare const computeCorestoreDatabaseExportPackageCompletionSha256: (valueArg: unknown) => Promise<string>;
101
- export declare const normalizeCorestoreDatabaseExportPackageResponse: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageResponseV1>;
102
- export declare const normalizeCorestoreDatabaseExportPackageResponseForRequest: (responseArg: unknown, requestArg: unknown) => Readonly<ICorestoreDatabaseExportPackageResponseV1>;
95
+ export declare const normalizeCorestoreDatabaseExportPackageResponse: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageResponse>;
96
+ export declare const normalizeCorestoreDatabaseExportPackageResponseForRequest: (responseArg: unknown, requestArg: unknown) => Readonly<ICorestoreDatabaseExportPackageResponse>;
103
97
  export declare const encodeCorestoreDatabaseExportPackageResponse: (valueArg: unknown) => Uint8Array;
104
98
  export declare const computeCorestoreDatabaseExportPackageResponseSha256: (valueArg: unknown) => Promise<string>;
105
- export declare const normalizeCorestoreDatabaseExportPackageReleaseRequest: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseRequestV1>;
106
- export declare const normalizeCorestoreDatabaseExportPackageReleaseRequestForCompletion: (releaseRequestArg: unknown, requestArg: unknown, completionArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseRequestV1>;
99
+ export declare const normalizeCorestoreDatabaseExportPackageReleaseRequest: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseRequest>;
100
+ export declare const normalizeCorestoreDatabaseExportPackageReleaseRequestForCompletion: (releaseRequestArg: unknown, requestArg: unknown, completionArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseRequest>;
107
101
  export declare const encodeCorestoreDatabaseExportPackageReleaseRequest: (valueArg: unknown) => Uint8Array;
108
102
  export declare const computeCorestoreDatabaseExportPackageReleaseRequestSha256: (valueArg: unknown) => Promise<string>;
109
103
  export declare const classifyCorestoreDatabaseExportPackageReleaseRequestReuse: (persistedRequestArg: unknown, candidateRequestArg: unknown) => TCorestoreDatabaseExportPackageRequestReuse;
110
- export declare const normalizeCorestoreDatabaseExportPackageReleaseCompletion: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseCompletionV1>;
111
- export declare const normalizeCorestoreDatabaseExportPackageReleaseCompletionForRequest: (releaseCompletionArg: unknown, releaseRequestArg: unknown, requestArg: unknown, completionArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseCompletionV1>;
104
+ export declare const normalizeCorestoreDatabaseExportPackageReleaseCompletion: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseCompletion>;
105
+ export declare const normalizeCorestoreDatabaseExportPackageReleaseCompletionForRequest: (releaseCompletionArg: unknown, releaseRequestArg: unknown, requestArg: unknown, completionArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseCompletion>;
112
106
  export declare const encodeCorestoreDatabaseExportPackageReleaseCompletion: (valueArg: unknown) => Uint8Array;
113
107
  export declare const computeCorestoreDatabaseExportPackageReleaseCompletionSha256: (valueArg: unknown) => Promise<string>;
114
- export declare const normalizeCorestoreDatabaseExportPackageReleaseResponse: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseResponseV1>;
115
- export declare const normalizeCorestoreDatabaseExportPackageReleaseResponseForRequest: (responseArg: unknown, releaseRequestArg: unknown, requestArg: unknown, completionArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseResponseV1>;
108
+ export declare const normalizeCorestoreDatabaseExportPackageReleaseResponse: (valueArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseResponse>;
109
+ export declare const normalizeCorestoreDatabaseExportPackageReleaseResponseForRequest: (responseArg: unknown, releaseRequestArg: unknown, requestArg: unknown, completionArg: unknown) => Readonly<ICorestoreDatabaseExportPackageReleaseResponse>;
116
110
  export declare const encodeCorestoreDatabaseExportPackageReleaseResponse: (valueArg: unknown) => Uint8Array;
117
111
  export declare const computeCorestoreDatabaseExportPackageReleaseResponseSha256: (valueArg: unknown) => Promise<string>;
118
112
  export { corestoreDatabaseExportPackageGoldenVectors, } from './runtime.corestore.databaseexportpackage.golden.js';
@@ -1,22 +1,21 @@
1
1
  import type { ICorestoreDatabaseBackupReceipt } from './runtime.corestore.js';
2
- import type { ICorestoreDatabaseExportPackageCompletionV1, ICorestoreDatabaseExportPackageReleaseCompletionV1, ICorestoreDatabaseExportPackageReleaseRequestV1, ICorestoreDatabaseExportPackageReleaseResponseV1, ICorestoreDatabaseExportPackageRequestV1, ICorestoreDatabaseExportPackageResponseV1 } from './runtime.corestore.databaseexportpackage.js';
2
+ import type { ICorestoreDatabaseExportPackageCompletion, ICorestoreDatabaseExportPackageReleaseCompletion, ICorestoreDatabaseExportPackageReleaseRequest, ICorestoreDatabaseExportPackageReleaseResponse, ICorestoreDatabaseExportPackageRequest, ICorestoreDatabaseExportPackageResponse } from './runtime.corestore.databaseexportpackage.js';
3
3
  interface ICorestoreDatabaseExportPackageGoldenArtifact<TValue> {
4
4
  input: TValue;
5
5
  canonical: string;
6
6
  byteLength: number;
7
7
  sha256: string;
8
8
  }
9
- interface ICorestoreDatabaseExportPackageGoldenVectorsV1 {
10
- version: 1;
11
- request: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageRequestV1>;
9
+ interface ICorestoreDatabaseExportPackageGoldenVectors {
10
+ request: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageRequest>;
12
11
  receipt: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseBackupReceipt>;
13
- completion: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageCompletionV1>;
14
- response: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageResponseV1>;
15
- replayResponse: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageResponseV1>;
16
- releaseRequest: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageReleaseRequestV1>;
17
- releaseCompletion: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageReleaseCompletionV1>;
18
- releaseResponse: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageReleaseResponseV1>;
19
- replayReleaseResponse: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageReleaseResponseV1>;
12
+ completion: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageCompletion>;
13
+ response: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageResponse>;
14
+ replayResponse: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageResponse>;
15
+ releaseRequest: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageReleaseRequest>;
16
+ releaseCompletion: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageReleaseCompletion>;
17
+ releaseResponse: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageReleaseResponse>;
18
+ replayReleaseResponse: ICorestoreDatabaseExportPackageGoldenArtifact<ICorestoreDatabaseExportPackageReleaseResponse>;
20
19
  }
21
- export declare const corestoreDatabaseExportPackageGoldenVectors: Readonly<ICorestoreDatabaseExportPackageGoldenVectorsV1>;
20
+ export declare const corestoreDatabaseExportPackageGoldenVectors: Readonly<ICorestoreDatabaseExportPackageGoldenVectors>;
22
21
  export {};