@serve.zone/interfaces 27.2.0 → 27.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +10 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.d.ts +513 -5
- package/dist_ts/runtime.cloudlylegacydeploymentsettlement.js +1931 -8
- package/dist_ts/runtime.corestore.d.ts +89 -0
- package/dist_ts/runtime.corestore.js +306 -2
- package/package.json +1 -1
- package/readme.md +78 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/runtime.cloudlylegacydeploymentsettlement.ts +3751 -17
- package/ts/runtime.corestore.ts +608 -0
|
@@ -247,4 +247,93 @@ export interface ICorestoreCredentialPublicationErrorMetadataV1 {
|
|
|
247
247
|
retryable: boolean;
|
|
248
248
|
}
|
|
249
249
|
export declare const getCorestoreCredentialPublicationErrorMetadata: (codeArg: TCorestoreCredentialPublicationErrorCode) => ICorestoreCredentialPublicationErrorMetadataV1;
|
|
250
|
+
export declare const corestoreDatabaseBackupRuntimeLimits: Readonly<{
|
|
251
|
+
maximumControlBytes: number;
|
|
252
|
+
maximumClosureBytes: number;
|
|
253
|
+
maximumVerifiedPlaintextBytes: number;
|
|
254
|
+
maximumSnapshotPayloadBytes: number;
|
|
255
|
+
maximumSnapshotOriginalBytes: number;
|
|
256
|
+
maximumClosureObjects: 4096;
|
|
257
|
+
maximumClosureChunks: 1000000;
|
|
258
|
+
maximumServiceNameBytes: 1024;
|
|
259
|
+
}>;
|
|
260
|
+
export interface ICorestoreDatabaseAllocationReference {
|
|
261
|
+
purpose: 'scratch-rehearsal';
|
|
262
|
+
rehearsalId: string;
|
|
263
|
+
allocationId: string;
|
|
264
|
+
generation: number;
|
|
265
|
+
bindingSha256: string;
|
|
266
|
+
receiptSha256: string;
|
|
267
|
+
}
|
|
268
|
+
export interface ICorestoreDatabaseBackupSnapshotTags {
|
|
269
|
+
corestore: 'resource';
|
|
270
|
+
serviceId: string;
|
|
271
|
+
serviceName: string;
|
|
272
|
+
capability: 'database';
|
|
273
|
+
resourceName: string;
|
|
274
|
+
snapshotName: string;
|
|
275
|
+
backupId: string;
|
|
276
|
+
}
|
|
277
|
+
export interface ICorestoreDatabaseBackupSnapshot {
|
|
278
|
+
capability: 'database';
|
|
279
|
+
resourceName: string;
|
|
280
|
+
snapshotId: string;
|
|
281
|
+
snapshotName: string;
|
|
282
|
+
originalSize: number;
|
|
283
|
+
storedSize: number;
|
|
284
|
+
createdAt: number;
|
|
285
|
+
tags: ICorestoreDatabaseBackupSnapshotTags;
|
|
286
|
+
databaseName: string;
|
|
287
|
+
databaseAllocation?: ICorestoreDatabaseAllocationReference;
|
|
288
|
+
}
|
|
289
|
+
export interface ICorestoreDatabaseBackupClosureReceipt {
|
|
290
|
+
formatVersion: 1;
|
|
291
|
+
snapshotIds: [string];
|
|
292
|
+
objectCount: number;
|
|
293
|
+
packCount: number;
|
|
294
|
+
chunkCount: number;
|
|
295
|
+
payloadBytes: number;
|
|
296
|
+
archiveBytes: number;
|
|
297
|
+
sha256: string;
|
|
298
|
+
}
|
|
299
|
+
export interface ICorestoreDatabaseBackupReceipt {
|
|
300
|
+
schemaVersion: 1;
|
|
301
|
+
format: 'corestore.database.backup.v1';
|
|
302
|
+
backupId: string;
|
|
303
|
+
sourceServiceId: string;
|
|
304
|
+
createdAt: number;
|
|
305
|
+
snapshot: ICorestoreDatabaseBackupSnapshot;
|
|
306
|
+
closure: ICorestoreDatabaseBackupClosureReceipt;
|
|
307
|
+
}
|
|
308
|
+
export interface ICorestoreDatabaseBackupRestoreRequest {
|
|
309
|
+
schemaVersion: 1;
|
|
310
|
+
targetServiceId: string;
|
|
311
|
+
receipt: ICorestoreDatabaseBackupReceipt;
|
|
312
|
+
expectedDatabaseAllocation?: ICorestoreDatabaseAllocationReference;
|
|
313
|
+
/** Caller-owned idempotency identity. A new value forces a new fenced restore attempt. */
|
|
314
|
+
restoreAttemptId?: string;
|
|
315
|
+
}
|
|
316
|
+
export interface ICorestoreDatabaseBackupRestoreResponse {
|
|
317
|
+
schemaVersion: 1;
|
|
318
|
+
ok: true;
|
|
319
|
+
backupId: string;
|
|
320
|
+
sourceServiceId: string;
|
|
321
|
+
targetServiceId: string;
|
|
322
|
+
snapshotId: string;
|
|
323
|
+
restoreId: string;
|
|
324
|
+
requestSha256: string;
|
|
325
|
+
replayed: boolean;
|
|
326
|
+
}
|
|
327
|
+
export declare const normalizeCorestoreDatabaseAllocationReference: (valueArg: unknown) => Readonly<ICorestoreDatabaseAllocationReference>;
|
|
328
|
+
export declare const normalizeCorestoreDatabaseBackupReceipt: (valueArg: unknown) => Readonly<ICorestoreDatabaseBackupReceipt>;
|
|
329
|
+
export declare const normalizeCorestoreDatabaseBackupRestoreRequest: (valueArg: unknown) => Readonly<ICorestoreDatabaseBackupRestoreRequest>;
|
|
330
|
+
export declare const normalizeCorestoreDatabaseBackupRestoreResponse: (valueArg: unknown) => Readonly<ICorestoreDatabaseBackupRestoreResponse>;
|
|
331
|
+
export declare const encodeCorestoreDatabaseAllocationReference: (valueArg: unknown) => Uint8Array;
|
|
332
|
+
export declare const encodeCorestoreDatabaseBackupReceipt: (valueArg: unknown) => Uint8Array;
|
|
333
|
+
export declare const encodeCorestoreDatabaseBackupRestoreRequest: (valueArg: unknown) => Uint8Array;
|
|
334
|
+
export declare const encodeCorestoreDatabaseBackupRestoreResponse: (valueArg: unknown) => Uint8Array;
|
|
335
|
+
export declare const computeCorestoreDatabaseAllocationReferenceSha256: (valueArg: unknown) => Promise<string>;
|
|
336
|
+
export declare const computeCorestoreDatabaseBackupReceiptSha256: (valueArg: unknown) => Promise<string>;
|
|
337
|
+
export declare const computeCorestoreDatabaseBackupRestoreRequestSha256: (valueArg: unknown) => Promise<string>;
|
|
338
|
+
export declare const computeCorestoreDatabaseBackupRestoreResponseSha256: (valueArg: unknown) => Promise<string>;
|
|
250
339
|
export {};
|