@marinoscar/platform-contract 0.1.0-next.26 → 0.1.0-next.28
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 +12 -0
- package/dist/cjs/storage/constants.d.ts +31 -0
- package/dist/cjs/storage/constants.d.ts.map +1 -1
- package/dist/cjs/storage/constants.js +20 -1
- package/dist/cjs/storage/constants.js.map +1 -1
- package/dist/cjs/storage/index.d.ts +4 -2
- package/dist/cjs/storage/index.d.ts.map +1 -1
- package/dist/cjs/storage/index.js +11 -1
- package/dist/cjs/storage/index.js.map +1 -1
- package/dist/cjs/storage/schemas.d.ts +1 -0
- package/dist/cjs/storage/schemas.d.ts.map +1 -1
- package/dist/cjs/storage/schemas.js +1 -0
- package/dist/cjs/storage/schemas.js.map +1 -1
- package/dist/cjs/storage/storage-config-response.d.ts +6 -0
- package/dist/cjs/storage/storage-config-response.d.ts.map +1 -1
- package/dist/cjs/storage/storage-config-response.js +8 -0
- package/dist/cjs/storage/storage-config-response.js.map +1 -1
- package/dist/cjs/storage/storage-migration.d.ts +102 -0
- package/dist/cjs/storage/storage-migration.d.ts.map +1 -0
- package/dist/cjs/storage/storage-migration.js +107 -0
- package/dist/cjs/storage/storage-migration.js.map +1 -0
- package/dist/esm/storage/constants.d.ts +31 -0
- package/dist/esm/storage/constants.d.ts.map +1 -1
- package/dist/esm/storage/constants.js +19 -0
- package/dist/esm/storage/constants.js.map +1 -1
- package/dist/esm/storage/index.d.ts +4 -2
- package/dist/esm/storage/index.d.ts.map +1 -1
- package/dist/esm/storage/index.js +3 -1
- package/dist/esm/storage/index.js.map +1 -1
- package/dist/esm/storage/schemas.d.ts +1 -0
- package/dist/esm/storage/schemas.d.ts.map +1 -1
- package/dist/esm/storage/schemas.js +1 -0
- package/dist/esm/storage/schemas.js.map +1 -1
- package/dist/esm/storage/storage-config-response.d.ts +6 -0
- package/dist/esm/storage/storage-config-response.d.ts.map +1 -1
- package/dist/esm/storage/storage-config-response.js +8 -0
- package/dist/esm/storage/storage-config-response.js.map +1 -1
- package/dist/esm/storage/storage-migration.d.ts +102 -0
- package/dist/esm/storage/storage-migration.d.ts.map +1 -0
- package/dist/esm/storage/storage-migration.js +104 -0
- package/dist/esm/storage/storage-migration.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @marinoscar/platform-contract
|
|
2
2
|
|
|
3
|
+
## 0.1.0-next.28
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2cc3691: Storage for multi-provider apps (#1124). Per-driver credentials: the built-in S3-family drivers (`s3`, `r2`, `s3compatible`) keep their secret access key at `storage/<driverId>` and read the shared `storage/default` slot only as a fallback while their own is empty, so two S3-family drivers with different key pairs each serve their own rows; nothing moves on upgrade. `StorageSecretAddress` gains read-only `fallbacks`; new helpers `storageSecretReadAddresses`, `readStorageDriverSecret`, `describeStorageDriverSecret`. `PUT /api/admin/storage-config` writes the secrets of every driver named in `secrets` (not only the active one's), and the admin view adds the optional `secretStatuses` (contract: `storageConfigResponseSchema`). Web: `StorageConfigPage` gains `StorageDriverCredentialsPanel` (a write-only secret field per configured non-active driver, saved without switching) and the S3-family panel shows the selected driver's own stored key (`storageSecretStatusOf`). `StorageProvider` gains the optional `deleteMany(keys)` (S3 `DeleteObjects`, 1,000 keys a call) and `size(key)` (`HeadObject`), with `deleteStorageKeys` (per-key fallback) and `storageObjectSize`; the generic storage purge, the export purge and the user-data purge delete in bulk. `StorageUploadOptions.cacheControl` (S3: `CacheControl` on simple and multipart uploads). `ObjectProcessor.optional`: an optional processor's failure is recorded on the row and leaves the object `ready` when the required processors succeed. `registerStoragePartBodyParser` rejects an unknown content type with `UnsupportedMediaTypeException` (a 415 through the exception filter, not a 500). Manifest: `PlatformPermissionOptions.app.platformGrants` (`{ 'storage:write': ['viewer'] }`) widens a platform permission's role grants, platform roles included, additively, in the registries and the seed catalog. Conformance: the `storage` suite adds `storage-driver-credentials` and `storage-provider-extensions`; the driver kit adds the `bulkDelete` scenario.
|
|
8
|
+
|
|
9
|
+
## 0.1.0-next.27
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 3c48c78: Add copy-only storage provider migration (#1093). An administrator starts a run from one storage driver to another (`POST /api/admin/storage/migrations`, `storage_config:write`; list, get and cancel need `storage_config:read` / `storage_config:write`); every `ready` object recorded on the source is copied by streaming, verified (byte count and sha256 of the bytes read back from the target), and only then repointed, while the source object is left in place as a fallback. Platform migration `0042_add_storage_migrations` adds `storage_migration_runs` and `storage_migration_items` (both under forced row-level security on `org_id`; an item links to its object by the composite `(object_id, org_id)` key) and the raw-SQL partial unique index `storage_migration_runs_active_uniq_idx`, so at most one run is pending or running (a second start is a 409 naming `details.activeRunId`). Two server-only job types do the work: `storage.migrate_plan` (one per run, lists the objects and queues them, resumable) and `storage.migrate_object` (one per object, `skipDedup`, background priority). A cancelled run stops before its next unclaimed object, and a re-run skips objects already on the target. The contract gains the run wire shapes, and `StorageConfigPage` gains a migration panel with live progress and run history.
|
|
14
|
+
|
|
3
15
|
## 0.1.0-next.26
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -108,4 +108,35 @@ export declare const STORAGE_SECRET_FIELD_NAMES: readonly ["secretAccessKey", "s
|
|
|
108
108
|
export type StorageEnum<T extends readonly string[]> = {
|
|
109
109
|
[K in T[number]]: K;
|
|
110
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* The statuses of a copy-only provider migration run (`storage_migration_runs.status`,
|
|
113
|
+
* the `StorageMigrationRunStatus` enum of the `storage` fragment), in lifecycle order.
|
|
114
|
+
*
|
|
115
|
+
* @stability experimental
|
|
116
|
+
*/
|
|
117
|
+
export declare const STORAGE_MIGRATION_RUN_STATUSES: readonly ["pending", "running", "completed", "failed", "cancelled"];
|
|
118
|
+
/**
|
|
119
|
+
* A {@link STORAGE_MIGRATION_RUN_STATUSES} value.
|
|
120
|
+
*
|
|
121
|
+
* @stability experimental
|
|
122
|
+
*/
|
|
123
|
+
export type StorageMigrationRunStatusName = (typeof STORAGE_MIGRATION_RUN_STATUSES)[number];
|
|
124
|
+
/**
|
|
125
|
+
* The run statuses that hold the one-active-run slot (`storage_migration_runs_active_uniq_idx`).
|
|
126
|
+
*
|
|
127
|
+
* @stability experimental
|
|
128
|
+
*/
|
|
129
|
+
export declare const STORAGE_MIGRATION_ACTIVE_RUN_STATUSES: readonly ["pending", "running"];
|
|
130
|
+
/**
|
|
131
|
+
* The statuses of one object within a migration run (`storage_migration_items.status`).
|
|
132
|
+
*
|
|
133
|
+
* @stability experimental
|
|
134
|
+
*/
|
|
135
|
+
export declare const STORAGE_MIGRATION_ITEM_STATUSES: readonly ["pending", "copying", "migrated", "failed", "skipped"];
|
|
136
|
+
/**
|
|
137
|
+
* A {@link STORAGE_MIGRATION_ITEM_STATUSES} value.
|
|
138
|
+
*
|
|
139
|
+
* @stability experimental
|
|
140
|
+
*/
|
|
141
|
+
export type StorageMigrationItemStatusName = (typeof STORAGE_MIGRATION_ITEM_STATUSES)[number];
|
|
111
142
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/storage/constants.ts"],"names":[],"mappings":"AAUA;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,QAA2B,CAAC;AAElE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,8BAA8B,uCAAwC,CAAC;AAEpF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,uCAAiC,CAAC;AAErE;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzF;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAEzC;;;;;;;GAOG;AACH,eAAO,MAAM,0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;AAEX;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,SAAS,MAAM,EAAE,IAAI;KAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;CAAE,CAAC;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,qEAAsE,CAAC;AAElH;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5F;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,iCAAkC,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,kEAAmE,CAAC;AAEhH;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// with their comments; the API re-exports them.
|
|
10
10
|
// =============================================================================
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.STORAGE_SECRET_FIELD_NAMES = exports.MISSING_STORAGE_CONFIG_FIELDS = exports.STORAGE_OBJECT_STATUSES = exports.LEGACY_STORAGE_FLAT_FIELDS = exports.STORAGE_PROVIDER_KINDS = exports.BUILTIN_STORAGE_PROVIDER_KINDS = exports.STORAGE_DRIVER_ID_PATTERN = void 0;
|
|
12
|
+
exports.STORAGE_MIGRATION_ITEM_STATUSES = exports.STORAGE_MIGRATION_ACTIVE_RUN_STATUSES = exports.STORAGE_MIGRATION_RUN_STATUSES = exports.STORAGE_SECRET_FIELD_NAMES = exports.MISSING_STORAGE_CONFIG_FIELDS = exports.STORAGE_OBJECT_STATUSES = exports.LEGACY_STORAGE_FLAT_FIELDS = exports.STORAGE_PROVIDER_KINDS = exports.BUILTIN_STORAGE_PROVIDER_KINDS = exports.STORAGE_DRIVER_ID_PATTERN = void 0;
|
|
13
13
|
/**
|
|
14
14
|
* The pattern every storage driver id must match: a lower-case letter, then
|
|
15
15
|
* letters, digits and hyphens, 2 to 48 characters. The same pattern as every
|
|
@@ -104,4 +104,23 @@ exports.STORAGE_SECRET_FIELD_NAMES = [
|
|
|
104
104
|
'token',
|
|
105
105
|
'privateKey',
|
|
106
106
|
];
|
|
107
|
+
/**
|
|
108
|
+
* The statuses of a copy-only provider migration run (`storage_migration_runs.status`,
|
|
109
|
+
* the `StorageMigrationRunStatus` enum of the `storage` fragment), in lifecycle order.
|
|
110
|
+
*
|
|
111
|
+
* @stability experimental
|
|
112
|
+
*/
|
|
113
|
+
exports.STORAGE_MIGRATION_RUN_STATUSES = ['pending', 'running', 'completed', 'failed', 'cancelled'];
|
|
114
|
+
/**
|
|
115
|
+
* The run statuses that hold the one-active-run slot (`storage_migration_runs_active_uniq_idx`).
|
|
116
|
+
*
|
|
117
|
+
* @stability experimental
|
|
118
|
+
*/
|
|
119
|
+
exports.STORAGE_MIGRATION_ACTIVE_RUN_STATUSES = ['pending', 'running'];
|
|
120
|
+
/**
|
|
121
|
+
* The statuses of one object within a migration run (`storage_migration_items.status`).
|
|
122
|
+
*
|
|
123
|
+
* @stability experimental
|
|
124
|
+
*/
|
|
125
|
+
exports.STORAGE_MIGRATION_ITEM_STATUSES = ['pending', 'copying', 'migrated', 'failed', 'skipped'];
|
|
107
126
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/storage/constants.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAChF,EAAE;AACF,2EAA2E;AAC3E,uEAAuE;AACvE,6EAA6E;AAC7E,gDAAgD;AAChD,gFAAgF;;;AAEhF;;;;;;;;GAQG;AACU,QAAA,yBAAyB,GAAG,wBAAwB,CAAC;AAElE;;;;;;;;;;;;;;;;GAgBG;AACU,QAAA,8BAA8B,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,cAAc,CAAU,CAAC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WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AAS1G;;;;;;;;GAQG;AACU,QAAA,6BAA6B,GAAG;IAC3C,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,WAAW;IACX,aAAa;IACb,iBAAiB;CACT,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACU,QAAA,0BAA0B,GAAG;IACxC,iBAAiB;IACjB,WAAW;IACX,cAAc;IACd,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,OAAO;IACP,YAAY;CACJ,CAAC;AAaX;;;;;GAKG;AACU,QAAA,8BAA8B,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AASlH;;;;GAIG;AACU,QAAA,qCAAqC,GAAG,CAAC,SAAS,EAAE,SAAS,CAAU,CAAC;AAErF;;;;GAIG;AACU,QAAA,+BAA+B,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { BUILTIN_STORAGE_PROVIDER_KINDS, LEGACY_STORAGE_FLAT_FIELDS, MISSING_STORAGE_CONFIG_FIELDS, STORAGE_DRIVER_ID_PATTERN, STORAGE_OBJECT_STATUSES, STORAGE_PROVIDER_KINDS, STORAGE_SECRET_FIELD_NAMES, } from './constants.js';
|
|
2
|
-
export type { BuiltinStorageProviderKind, StorageEnum, StorageObjectStatusName, StorageProviderKind } from './constants.js';
|
|
1
|
+
export { BUILTIN_STORAGE_PROVIDER_KINDS, LEGACY_STORAGE_FLAT_FIELDS, MISSING_STORAGE_CONFIG_FIELDS, STORAGE_DRIVER_ID_PATTERN, STORAGE_MIGRATION_ACTIVE_RUN_STATUSES, STORAGE_MIGRATION_ITEM_STATUSES, STORAGE_MIGRATION_RUN_STATUSES, STORAGE_OBJECT_STATUSES, STORAGE_PROVIDER_KINDS, STORAGE_SECRET_FIELD_NAMES, } from './constants.js';
|
|
2
|
+
export type { BuiltinStorageProviderKind, StorageEnum, StorageMigrationItemStatusName, StorageMigrationRunStatusName, StorageObjectStatusName, StorageProviderKind, } from './constants.js';
|
|
3
3
|
export { STORAGE_SETTINGS_CARRIES_NO_SECRET, storageDriverIdSchema, storageDriverSettingsSchema, storageDriversPatchSchema, storageDriversSchema, storageResponseSchema, storageSettingsPatchSchema, storageSettingsSchema, systemStoragePatchSchema, systemStorageSchema, } from './schemas.js';
|
|
4
4
|
export type { StorageSettingsCarriesNoSecret, StorageSettingsInput, StorageSettingsPatchInput, StorageSettingsResponse, SystemStoragePatchValue, SystemStorageValue, } from './schemas.js';
|
|
5
5
|
export { completeUploadSchema } from './schemas.js';
|
|
@@ -24,4 +24,6 @@ export { STORAGE_TEST_CHECK_CODES, STORAGE_TEST_CHECK_IDS, STORAGE_TEST_CHECK_ST
|
|
|
24
24
|
export type { StorageConnectionCheck, StorageConnectionTestResult, StorageTestCheckId, TestStorageConfigInput, } from './schemas.js';
|
|
25
25
|
export { STORAGE_BUCKET_OUTCOMES, STORAGE_BUCKET_STEP_IDS, STORAGE_BUCKET_STEP_STATUSES, guidedBucketInstructionsSchema, provisionStorageBucketSchema, storageBucketProvisionResultSchema, storageBucketStepSchema, } from './schemas.js';
|
|
26
26
|
export type { ProvisionStorageBucketInput, StorageBucketOutcome, StorageBucketProvisionResult, StorageBucketStep, StorageBucketStepId, } from './schemas.js';
|
|
27
|
+
export { startStorageMigrationSchema, storageMigrationListQuerySchema, storageMigrationRunListSchema, storageMigrationRunSchema, } from './schemas.js';
|
|
28
|
+
export type { StartStorageMigrationInput, StorageMigrationListQuery, StorageMigrationRun, StorageMigrationRunList, } from './schemas.js';
|
|
27
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/index.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,EAC7B,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/index.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,EAC7B,yBAAyB,EACzB,qCAAqC,EACrC,+BAA+B,EAC/B,8BAA8B,EAC9B,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,0BAA0B,EAC1B,WAAW,EACX,8BAA8B,EAC9B,6BAA6B,EAC7B,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,kCAAkC,EAClC,qBAAqB,EACrB,2BAA2B,EAC3B,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,8BAA8B,EAC9B,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACzD,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,cAAc,EACd,mBAAmB,EACn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,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,cAAc,CAAC"}
|
|
@@ -6,12 +6,16 @@
|
|
|
6
6
|
// the `storage` system-settings namespace. Documented in ./README.md.
|
|
7
7
|
// Explicit named exports only. constants.ts is zod-free.
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.guidedBucketInstructionsSchema = exports.STORAGE_BUCKET_STEP_STATUSES = exports.STORAGE_BUCKET_STEP_IDS = exports.STORAGE_BUCKET_OUTCOMES = exports.testStorageConfigSchema = exports.storageConnectionTestResultSchema = exports.storageConnectionCheckSchema = exports.STORAGE_TEST_CHECK_STATUSES = exports.STORAGE_TEST_CHECK_IDS = exports.STORAGE_TEST_CHECK_CODES = exports.storageSecretStatusSchema = exports.storageConfigResponseSchema = exports.updateStorageConfigSchema = exports.STORAGE_SWITCH_CONFIRMATION = exports.storageStatusResponseSchema = exports.updateMetadataSchema = exports.uploadStatusResponseSchema = exports.objectResponseSchema = exports.objectListQuerySchema = exports.partUrlSchema = exports.initUploadSchema = exports.initUploadResponseSchema = exports.getPartUrlsSchema = exports.getPartUrlsResponseSchema = exports.UPLOAD_ERROR_REASONS = exports.PART_URLS_MAX_PER_CALL = exports.PART_UPLOAD_AUTH_MODES = exports.INIT_UPLOAD_PART_URL_BATCH = exports.downloadUrlResponseSchema = exports.completeUploadSchema = exports.systemStorageSchema = exports.systemStoragePatchSchema = exports.storageSettingsSchema = exports.storageSettingsPatchSchema = exports.storageResponseSchema = exports.storageDriversSchema = exports.storageDriversPatchSchema = exports.storageDriverSettingsSchema = exports.storageDriverIdSchema = exports.STORAGE_SETTINGS_CARRIES_NO_SECRET = exports.STORAGE_SECRET_FIELD_NAMES = exports.STORAGE_PROVIDER_KINDS = exports.STORAGE_OBJECT_STATUSES = exports.STORAGE_MIGRATION_RUN_STATUSES = exports.STORAGE_MIGRATION_ITEM_STATUSES = exports.STORAGE_MIGRATION_ACTIVE_RUN_STATUSES = exports.STORAGE_DRIVER_ID_PATTERN = exports.MISSING_STORAGE_CONFIG_FIELDS = exports.LEGACY_STORAGE_FLAT_FIELDS = exports.BUILTIN_STORAGE_PROVIDER_KINDS = void 0;
|
|
10
|
+
exports.storageMigrationRunSchema = exports.storageMigrationRunListSchema = exports.storageMigrationListQuerySchema = exports.startStorageMigrationSchema = exports.storageBucketStepSchema = exports.storageBucketProvisionResultSchema = exports.provisionStorageBucketSchema = void 0;
|
|
10
11
|
var constants_js_1 = require("./constants.js");
|
|
11
12
|
Object.defineProperty(exports, "BUILTIN_STORAGE_PROVIDER_KINDS", { enumerable: true, get: function () { return constants_js_1.BUILTIN_STORAGE_PROVIDER_KINDS; } });
|
|
12
13
|
Object.defineProperty(exports, "LEGACY_STORAGE_FLAT_FIELDS", { enumerable: true, get: function () { return constants_js_1.LEGACY_STORAGE_FLAT_FIELDS; } });
|
|
13
14
|
Object.defineProperty(exports, "MISSING_STORAGE_CONFIG_FIELDS", { enumerable: true, get: function () { return constants_js_1.MISSING_STORAGE_CONFIG_FIELDS; } });
|
|
14
15
|
Object.defineProperty(exports, "STORAGE_DRIVER_ID_PATTERN", { enumerable: true, get: function () { return constants_js_1.STORAGE_DRIVER_ID_PATTERN; } });
|
|
16
|
+
Object.defineProperty(exports, "STORAGE_MIGRATION_ACTIVE_RUN_STATUSES", { enumerable: true, get: function () { return constants_js_1.STORAGE_MIGRATION_ACTIVE_RUN_STATUSES; } });
|
|
17
|
+
Object.defineProperty(exports, "STORAGE_MIGRATION_ITEM_STATUSES", { enumerable: true, get: function () { return constants_js_1.STORAGE_MIGRATION_ITEM_STATUSES; } });
|
|
18
|
+
Object.defineProperty(exports, "STORAGE_MIGRATION_RUN_STATUSES", { enumerable: true, get: function () { return constants_js_1.STORAGE_MIGRATION_RUN_STATUSES; } });
|
|
15
19
|
Object.defineProperty(exports, "STORAGE_OBJECT_STATUSES", { enumerable: true, get: function () { return constants_js_1.STORAGE_OBJECT_STATUSES; } });
|
|
16
20
|
Object.defineProperty(exports, "STORAGE_PROVIDER_KINDS", { enumerable: true, get: function () { return constants_js_1.STORAGE_PROVIDER_KINDS; } });
|
|
17
21
|
Object.defineProperty(exports, "STORAGE_SECRET_FIELD_NAMES", { enumerable: true, get: function () { return constants_js_1.STORAGE_SECRET_FIELD_NAMES; } });
|
|
@@ -73,4 +77,10 @@ Object.defineProperty(exports, "guidedBucketInstructionsSchema", { enumerable: t
|
|
|
73
77
|
Object.defineProperty(exports, "provisionStorageBucketSchema", { enumerable: true, get: function () { return schemas_js_12.provisionStorageBucketSchema; } });
|
|
74
78
|
Object.defineProperty(exports, "storageBucketProvisionResultSchema", { enumerable: true, get: function () { return schemas_js_12.storageBucketProvisionResultSchema; } });
|
|
75
79
|
Object.defineProperty(exports, "storageBucketStepSchema", { enumerable: true, get: function () { return schemas_js_12.storageBucketStepSchema; } });
|
|
80
|
+
// ---- copy-only provider migration (`/api/admin/storage/migrations`, #1093) -------------
|
|
81
|
+
var schemas_js_13 = require("./schemas.js");
|
|
82
|
+
Object.defineProperty(exports, "startStorageMigrationSchema", { enumerable: true, get: function () { return schemas_js_13.startStorageMigrationSchema; } });
|
|
83
|
+
Object.defineProperty(exports, "storageMigrationListQuerySchema", { enumerable: true, get: function () { return schemas_js_13.storageMigrationListQuerySchema; } });
|
|
84
|
+
Object.defineProperty(exports, "storageMigrationRunListSchema", { enumerable: true, get: function () { return schemas_js_13.storageMigrationRunListSchema; } });
|
|
85
|
+
Object.defineProperty(exports, "storageMigrationRunSchema", { enumerable: true, get: function () { return schemas_js_13.storageMigrationRunSchema; } });
|
|
76
86
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/storage/index.ts"],"names":[],"mappings":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a,OAAA;AAUf,2CAAqD;AAA5C,mHAAA,qBAAqB,OAAA;AAE9B,2CAAgF;AAAvE,kHAAA,oBAAoB,OAAA;AAAE,wHAAA,0BAA0B,OAAA;AAEzD,2CAAoD;AAA3C,kHAAA,oBAAoB,OAAA;AAE7B,2CAA2D;AAAlD,yHAAA,2BAA2B,OAAA;AAGpC,6FAA6F;AAC7F,2CAAsF;AAA7E,yHAAA,2BAA2B,OAAA;AAAE,uHAAA,yBAAyB,OAAA;AAE/D,4CAAsF;AAA7E,0HAAA,2BAA2B,OAAA;AAAE,wHAAA,yBAAyB,OAAA;AAE/D,4CAOsB;AANpB,uHAAA,wBAAwB,OAAA;AACxB,qHAAA,sBAAsB,OAAA;AACtB,0HAAA,2BAA2B,OAAA;AAC3B,2HAAA,4BAA4B,OAAA;AAC5B,gIAAA,iCAAiC,OAAA;AACjC,sHAAA,uBAAuB,OAAA;AAQzB,4CAQsB;AAPpB,sHAAA,uBAAuB,OAAA;AACvB,sHAAA,uBAAuB,OAAA;AACvB,2HAAA,4BAA4B,OAAA;AAC5B,6HAAA,8BAA8B,OAAA;AAC9B,2HAAA,4BAA4B,OAAA;AAC5B,iIAAA,kCAAkC,OAAA;AAClC,sHAAA,uBAAuB,OAAA;AAUzB,2FAA2F;AAC3F,4CAKsB;AAJpB,0HAAA,2BAA2B,OAAA;AAC3B,8HAAA,+BAA+B,OAAA;AAC/B,4HAAA,6BAA6B,OAAA;AAC7B,wHAAA,yBAAyB,OAAA"}
|
|
@@ -10,4 +10,5 @@ export * from './storage-config-update.js';
|
|
|
10
10
|
export * from './storage-config-response.js';
|
|
11
11
|
export * from './storage-connection-test.js';
|
|
12
12
|
export * from './storage-bucket-provision.js';
|
|
13
|
+
export * from './storage-migration.js';
|
|
13
14
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/storage/schemas.ts"],"names":[],"mappings":"AAMA,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/storage/schemas.ts"],"names":[],"mappings":"AAMA,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC"}
|
|
@@ -32,4 +32,5 @@ __exportStar(require("./storage-config-update.js"), exports);
|
|
|
32
32
|
__exportStar(require("./storage-config-response.js"), exports);
|
|
33
33
|
__exportStar(require("./storage-connection-test.js"), exports);
|
|
34
34
|
__exportStar(require("./storage-bucket-provision.js"), exports);
|
|
35
|
+
__exportStar(require("./storage-migration.js"), exports);
|
|
35
36
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/storage/schemas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAA0E;AAC1E,qEAAqE;AACrE,4EAA4E;AAC5E,sDAAsD;AACtD,6EAA6E;AAC7E,sCAAsC;AACtC,wDAAsC;AACtC,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,0DAAwC;AACxC,+DAA6C;AAC7C,+DAA6C;AAC7C,sDAAoC;AACpC,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,gEAA8C"}
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/storage/schemas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAA0E;AAC1E,qEAAqE;AACrE,4EAA4E;AAC5E,sDAAsD;AACtD,6EAA6E;AAC7E,sCAAsC;AACtC,wDAAsC;AACtC,+DAA6C;AAC7C,4DAA0C;AAC1C,2DAAyC;AACzC,0DAAwC;AACxC,+DAA6C;AAC7C,+DAA6C;AAC7C,sDAAoC;AACpC,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,gEAA8C;AAC9C,yDAAuC"}
|
|
@@ -83,6 +83,12 @@ export declare const storageConfigResponseSchema: z.ZodObject<{
|
|
|
83
83
|
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
84
84
|
updatedByUserId: z.ZodNullable<z.ZodString>;
|
|
85
85
|
}, z.core.$strip>;
|
|
86
|
+
secretStatuses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
87
|
+
configured: z.ZodBoolean;
|
|
88
|
+
hint: z.ZodNullable<z.ZodString>;
|
|
89
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
90
|
+
updatedByUserId: z.ZodNullable<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>>>>;
|
|
86
92
|
version: z.ZodNumber;
|
|
87
93
|
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
88
94
|
updatedBy: z.ZodNullable<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-config-response.d.ts","sourceRoot":"","sources":["../../../src/storage/storage-config-response.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB;;;;;iBA2BpC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"storage-config-response.d.ts","sourceRoot":"","sources":["../../../src/storage/storage-config-response.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB;;;;;iBA2BpC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwHtC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -146,6 +146,14 @@ exports.storageConfigResponseSchema = zod_1.z.object({
|
|
|
146
146
|
* presence is in `descriptors`. See the header.
|
|
147
147
|
*/
|
|
148
148
|
secretStatus: exports.storageSecretStatusSchema,
|
|
149
|
+
/**
|
|
150
|
+
* The masked status of EVERY registered driver's declared secrets, by driver
|
|
151
|
+
* id and secret name (#1124): each driver keeps its own credential address,
|
|
152
|
+
* so the admin page shows each driver's stored key, not the active one's.
|
|
153
|
+
* Optional: an older API omits it (the page then falls back to
|
|
154
|
+
* `secretStatus` and the descriptors' `hasValue`).
|
|
155
|
+
*/
|
|
156
|
+
secretStatuses: zod_1.z.record(settings_schemas_js_1.storageDriverIdSchema, zod_1.z.record(zod_1.z.string(), exports.storageSecretStatusSchema)).optional(),
|
|
149
157
|
// ---------------------------------------------------------------------------
|
|
150
158
|
// Provenance of the settings row
|
|
151
159
|
// ---------------------------------------------------------------------------
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-config-response.js","s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,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,uHAAuH;IACvH,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,yIAAyI;IACzI,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAEtC;;;;;;OAMG;IACH,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,oCAAyB,CAAC;IAE/C,8EAA8E;IAC9E,qBAAqB;IACrB,8EAA8E;IAE9E;;;;;;;;;;;;OAYG;IACH,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAExC;;;;;;;OAOG;IACH,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IAEvB;;;;;;;;;;;;OAYG;IACH,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAE5B;;;;OAIG;IACH,YAAY,EAAE,iCAAyB;IAEvC,8EAA8E;IAC9E,iCAAiC;IACjC,8EAA8E;IAE9E;;;;;;;OAOG;IACH,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAEzB,iFAAiF;IACjF,SAAS,EAAE,OAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAEtC,kDAAkD;IAClD,SAAS,EAAE,OAAC;SACT,MAAM,CAAC;QACN,qBAAqB;QACrB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,qBAAqB;QACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;KAClB,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"storage-config-response.js","sourceRoot":"","sources":["../../../src/storage/storage-config-response.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,8EAA8E;AAC9E,gFAAgF;AAChF,EAAE;AACF,8EAA8E;AAC9E,+DAA+D;AAC/D,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;AAChF,s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MG;IACH,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,oCAAyB,CAAC;IAE/C,8EAA8E;IAC9E,qBAAqB;IACrB,8EAA8E;IAE9E;;;;;;;;;;;;OAYG;IACH,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAExC;;;;;;;OAOG;IACH,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IAEvB;;;;;;;;;;;;OAYG;IACH,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAE5B;;;;OAIG;IACH,YAAY,EAAE,iCAAyB;IAEvC;;;;;;OAMG;IACH,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC,2CAAqB,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,iCAAyB,CAAC,CAAC,CAAC,QAAQ,EAAE;IAE3G,8EAA8E;IAC9E,iCAAiC;IACjC,8EAA8E;IAE9E;;;;;;;OAOG;IACH,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAEzB,iFAAiF;IACjF,SAAS,EAAE,OAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAEtC,kDAAkD;IAClD,SAAS,EAAE,OAAC;SACT,MAAM,CAAC;QACN,qBAAqB;QACrB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,qBAAqB;QACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;KAClB,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { STORAGE_MIGRATION_RUN_STATUSES, type StorageEnum } from './constants.js';
|
|
3
|
+
/**
|
|
4
|
+
* The `POST /api/admin/storage/migrations` body: the driver to copy from and
|
|
5
|
+
* the driver to copy to (registered driver ids, `s3`, `r2`, ...). They differ.
|
|
6
|
+
*
|
|
7
|
+
* @stability experimental
|
|
8
|
+
*/
|
|
9
|
+
export declare const startStorageMigrationSchema: z.ZodObject<{
|
|
10
|
+
sourceProvider: z.ZodString;
|
|
11
|
+
targetProvider: z.ZodString;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
/**
|
|
14
|
+
* The start body, parsed.
|
|
15
|
+
*
|
|
16
|
+
* @stability experimental
|
|
17
|
+
*/
|
|
18
|
+
export type StartStorageMigrationInput = z.infer<typeof startStorageMigrationSchema>;
|
|
19
|
+
/**
|
|
20
|
+
* One migration run as the admin routes return it. The counts are recomputed
|
|
21
|
+
* from the run's items on every read; `pendingCount` is what is still queued
|
|
22
|
+
* or being copied.
|
|
23
|
+
*
|
|
24
|
+
* @stability experimental
|
|
25
|
+
*/
|
|
26
|
+
export declare const storageMigrationRunSchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
sourceProvider: z.ZodString;
|
|
29
|
+
targetProvider: z.ZodString;
|
|
30
|
+
status: z.ZodEnum<StorageEnum<typeof STORAGE_MIGRATION_RUN_STATUSES>>;
|
|
31
|
+
totalCount: z.ZodNumber;
|
|
32
|
+
migratedCount: z.ZodNumber;
|
|
33
|
+
failedCount: z.ZodNumber;
|
|
34
|
+
skippedCount: z.ZodNumber;
|
|
35
|
+
pendingCount: z.ZodNumber;
|
|
36
|
+
startedById: z.ZodNullable<z.ZodString>;
|
|
37
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
38
|
+
plannedAt: z.ZodNullable<z.ZodString>;
|
|
39
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
40
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
41
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
42
|
+
createdAt: z.ZodString;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
/**
|
|
45
|
+
* One migration run.
|
|
46
|
+
*
|
|
47
|
+
* @stability experimental
|
|
48
|
+
*/
|
|
49
|
+
export type StorageMigrationRun = z.infer<typeof storageMigrationRunSchema>;
|
|
50
|
+
/**
|
|
51
|
+
* The `GET /api/admin/storage/migrations` query: page and page size, newest first.
|
|
52
|
+
*
|
|
53
|
+
* @stability experimental
|
|
54
|
+
*/
|
|
55
|
+
export declare const storageMigrationListQuerySchema: z.ZodObject<{
|
|
56
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
57
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
/**
|
|
60
|
+
* The list query, parsed (defaults applied).
|
|
61
|
+
*
|
|
62
|
+
* @stability experimental
|
|
63
|
+
*/
|
|
64
|
+
export type StorageMigrationListQuery = z.infer<typeof storageMigrationListQuerySchema>;
|
|
65
|
+
/**
|
|
66
|
+
* The `GET /api/admin/storage/migrations` payload: one page of runs, newest first.
|
|
67
|
+
*
|
|
68
|
+
* @stability experimental
|
|
69
|
+
*/
|
|
70
|
+
export declare const storageMigrationRunListSchema: z.ZodObject<{
|
|
71
|
+
items: z.ZodArray<z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
sourceProvider: z.ZodString;
|
|
74
|
+
targetProvider: z.ZodString;
|
|
75
|
+
status: z.ZodEnum<StorageEnum<typeof STORAGE_MIGRATION_RUN_STATUSES>>;
|
|
76
|
+
totalCount: z.ZodNumber;
|
|
77
|
+
migratedCount: z.ZodNumber;
|
|
78
|
+
failedCount: z.ZodNumber;
|
|
79
|
+
skippedCount: z.ZodNumber;
|
|
80
|
+
pendingCount: z.ZodNumber;
|
|
81
|
+
startedById: z.ZodNullable<z.ZodString>;
|
|
82
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
83
|
+
plannedAt: z.ZodNullable<z.ZodString>;
|
|
84
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
85
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
86
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
87
|
+
createdAt: z.ZodString;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
meta: z.ZodObject<{
|
|
90
|
+
page: z.ZodNumber;
|
|
91
|
+
pageSize: z.ZodNumber;
|
|
92
|
+
totalItems: z.ZodNumber;
|
|
93
|
+
totalPages: z.ZodNumber;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
/**
|
|
97
|
+
* One page of runs.
|
|
98
|
+
*
|
|
99
|
+
* @stability experimental
|
|
100
|
+
*/
|
|
101
|
+
export type StorageMigrationRunList = z.infer<typeof storageMigrationRunListSchema>;
|
|
102
|
+
//# sourceMappingURL=storage-migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-migration.d.ts","sourceRoot":"","sources":["../../../src/storage/storage-migration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,8BAA8B,EAC9B,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAC;AAcxB;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;kBAWpC,CAAC;AAEL;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAErF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;;;YAQc,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,8BAA8B,CAAC,CAAC;;;;;;;;;;;;;iBAyB/G,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;;iBAK1C,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;;gBA1DU,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,8BAA8B,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;iBAwE/G,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.storageMigrationRunListSchema = exports.storageMigrationListQuerySchema = exports.storageMigrationRunSchema = exports.startStorageMigrationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_js_1 = require("./constants.js");
|
|
6
|
+
// =============================================================================
|
|
7
|
+
// /api/admin/storage/migrations — copy-only provider migration (issue #1093)
|
|
8
|
+
// =============================================================================
|
|
9
|
+
//
|
|
10
|
+
// An administrator copies every `ready` object recorded on one storage driver
|
|
11
|
+
// to another. Each object is copied (streamed, never buffered), verified (its
|
|
12
|
+
// size and the sha256 of the bytes read BACK from the target), and only then
|
|
13
|
+
// is its row repointed; the source object is left where it was, as a fallback.
|
|
14
|
+
// One run at a time: a start while one is pending or running is a 409 naming
|
|
15
|
+
// it at `details.activeRunId`.
|
|
16
|
+
// =============================================================================
|
|
17
|
+
/**
|
|
18
|
+
* The `POST /api/admin/storage/migrations` body: the driver to copy from and
|
|
19
|
+
* the driver to copy to (registered driver ids, `s3`, `r2`, ...). They differ.
|
|
20
|
+
*
|
|
21
|
+
* @stability experimental
|
|
22
|
+
*/
|
|
23
|
+
exports.startStorageMigrationSchema = zod_1.z
|
|
24
|
+
.object({
|
|
25
|
+
/** The driver whose objects are copied (`storage_objects.storage_provider`). */
|
|
26
|
+
sourceProvider: zod_1.z.string().regex(constants_js_1.STORAGE_DRIVER_ID_PATTERN),
|
|
27
|
+
/** The driver they are copied to; it must be configured. */
|
|
28
|
+
targetProvider: zod_1.z.string().regex(constants_js_1.STORAGE_DRIVER_ID_PATTERN),
|
|
29
|
+
})
|
|
30
|
+
.strict()
|
|
31
|
+
.refine((body) => body.sourceProvider !== body.targetProvider, {
|
|
32
|
+
message: 'sourceProvider and targetProvider must differ',
|
|
33
|
+
path: ['targetProvider'],
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* One migration run as the admin routes return it. The counts are recomputed
|
|
37
|
+
* from the run's items on every read; `pendingCount` is what is still queued
|
|
38
|
+
* or being copied.
|
|
39
|
+
*
|
|
40
|
+
* @stability experimental
|
|
41
|
+
*/
|
|
42
|
+
exports.storageMigrationRunSchema = zod_1.z.object({
|
|
43
|
+
/** The run id (UUID). */
|
|
44
|
+
id: zod_1.z.string().uuid(),
|
|
45
|
+
/** The driver copied from. */
|
|
46
|
+
sourceProvider: zod_1.z.string(),
|
|
47
|
+
/** The driver copied to. */
|
|
48
|
+
targetProvider: zod_1.z.string(),
|
|
49
|
+
/** Where the run is in its lifecycle. */
|
|
50
|
+
status: zod_1.z.enum(constants_js_1.STORAGE_MIGRATION_RUN_STATUSES),
|
|
51
|
+
/** Objects the run took on (0 until the planner has listed them). */
|
|
52
|
+
totalCount: zod_1.z.number().int().nonnegative(),
|
|
53
|
+
/** Copied, verified and repointed. */
|
|
54
|
+
migratedCount: zod_1.z.number().int().nonnegative(),
|
|
55
|
+
/** Gave up. */
|
|
56
|
+
failedCount: zod_1.z.number().int().nonnegative(),
|
|
57
|
+
/** Nothing to do (deleted, moved, already on the target, or the run was cancelled). */
|
|
58
|
+
skippedCount: zod_1.z.number().int().nonnegative(),
|
|
59
|
+
/** Still queued or being copied. */
|
|
60
|
+
pendingCount: zod_1.z.number().int().nonnegative(),
|
|
61
|
+
/** The administrator who started it, or `null` once that user was deleted. */
|
|
62
|
+
startedById: zod_1.z.string().uuid().nullable(),
|
|
63
|
+
/** When the planner began (ISO 8601), or `null` while pending. */
|
|
64
|
+
startedAt: zod_1.z.string().nullable(),
|
|
65
|
+
/** When the planner had queued every object, or `null`. */
|
|
66
|
+
plannedAt: zod_1.z.string().nullable(),
|
|
67
|
+
/** When it finished (ISO 8601), or `null`. */
|
|
68
|
+
finishedAt: zod_1.z.string().nullable(),
|
|
69
|
+
/** When it was cancelled (ISO 8601), or `null`. */
|
|
70
|
+
cancelledAt: zod_1.z.string().nullable(),
|
|
71
|
+
/** The last error an item or the planner recorded, or `null`. */
|
|
72
|
+
lastError: zod_1.z.string().nullable(),
|
|
73
|
+
/** Creation (ISO 8601). */
|
|
74
|
+
createdAt: zod_1.z.string(),
|
|
75
|
+
});
|
|
76
|
+
/**
|
|
77
|
+
* The `GET /api/admin/storage/migrations` query: page and page size, newest first.
|
|
78
|
+
*
|
|
79
|
+
* @stability experimental
|
|
80
|
+
*/
|
|
81
|
+
exports.storageMigrationListQuerySchema = zod_1.z.object({
|
|
82
|
+
/** The page, 1-based. */
|
|
83
|
+
page: zod_1.z.coerce.number().int().positive().default(1),
|
|
84
|
+
/** Runs per page (at most 100). */
|
|
85
|
+
pageSize: zod_1.z.coerce.number().int().positive().max(100).default(20),
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
* The `GET /api/admin/storage/migrations` payload: one page of runs, newest first.
|
|
89
|
+
*
|
|
90
|
+
* @stability experimental
|
|
91
|
+
*/
|
|
92
|
+
exports.storageMigrationRunListSchema = zod_1.z.object({
|
|
93
|
+
/** The page's runs. */
|
|
94
|
+
items: zod_1.z.array(exports.storageMigrationRunSchema),
|
|
95
|
+
/** The page's position in the list. */
|
|
96
|
+
meta: zod_1.z.object({
|
|
97
|
+
/** The page, 1-based. */
|
|
98
|
+
page: zod_1.z.number().int().positive(),
|
|
99
|
+
/** Runs per page. */
|
|
100
|
+
pageSize: zod_1.z.number().int().positive(),
|
|
101
|
+
/** Runs across pages. */
|
|
102
|
+
totalItems: zod_1.z.number().int().nonnegative(),
|
|
103
|
+
/** How many pages there are. */
|
|
104
|
+
totalPages: zod_1.z.number().int().nonnegative(),
|
|
105
|
+
}),
|
|
106
|
+
});
|
|
107
|
+
//# sourceMappingURL=storage-migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-migration.js","sourceRoot":"","sources":["../../../src/storage/storage-migration.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iDAIwB;AAExB,gFAAgF;AAChF,6EAA6E;AAC7E,gFAAgF;AAChF,EAAE;AACF,8EAA8E;AAC9E,8EAA8E;AAC9E,6EAA6E;AAC7E,+EAA+E;AAC/E,6EAA6E;AAC7E,+BAA+B;AAC/B,gFAAgF;AAEhF;;;;;GAKG;AACU,QAAA,2BAA2B,GAAG,OAAC;KACzC,MAAM,CAAC;IACN,gFAAgF;IAChF,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,wCAAyB,CAAC;IAC3D,4DAA4D;IAC5D,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,wCAAyB,CAAC;CAC5D,CAAC;KACD,MAAM,EAAE;KACR,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,cAAc,EAAE;IAC7D,OAAO,EAAE,+CAA+C;IACxD,IAAI,EAAE,CAAC,gBAAgB,CAAC;CACzB,CAAC,CAAC;AASL;;;;;;GAMG;AACU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,yBAAyB;IACzB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,8BAA8B;IAC9B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,4BAA4B;IAC5B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,yCAAyC;IACzC,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,6CAA8B,CAAkE;IAC/G,qEAAqE;IACrE,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,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AAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAClE,CAAC,CAAC;AASH;;;;GAIG;AACU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,uBAAuB;IACvB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC;IACzC,uCAAuC;IACvC,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,yBAAyB;QACzB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QACjC,qBAAqB;QACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QACrC,yBAAyB;QACzB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QAC1C,gCAAgC;QAChC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;KAC3C,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -108,4 +108,35 @@ export declare const STORAGE_SECRET_FIELD_NAMES: readonly ["secretAccessKey", "s
|
|
|
108
108
|
export type StorageEnum<T extends readonly string[]> = {
|
|
109
109
|
[K in T[number]]: K;
|
|
110
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* The statuses of a copy-only provider migration run (`storage_migration_runs.status`,
|
|
113
|
+
* the `StorageMigrationRunStatus` enum of the `storage` fragment), in lifecycle order.
|
|
114
|
+
*
|
|
115
|
+
* @stability experimental
|
|
116
|
+
*/
|
|
117
|
+
export declare const STORAGE_MIGRATION_RUN_STATUSES: readonly ["pending", "running", "completed", "failed", "cancelled"];
|
|
118
|
+
/**
|
|
119
|
+
* A {@link STORAGE_MIGRATION_RUN_STATUSES} value.
|
|
120
|
+
*
|
|
121
|
+
* @stability experimental
|
|
122
|
+
*/
|
|
123
|
+
export type StorageMigrationRunStatusName = (typeof STORAGE_MIGRATION_RUN_STATUSES)[number];
|
|
124
|
+
/**
|
|
125
|
+
* The run statuses that hold the one-active-run slot (`storage_migration_runs_active_uniq_idx`).
|
|
126
|
+
*
|
|
127
|
+
* @stability experimental
|
|
128
|
+
*/
|
|
129
|
+
export declare const STORAGE_MIGRATION_ACTIVE_RUN_STATUSES: readonly ["pending", "running"];
|
|
130
|
+
/**
|
|
131
|
+
* The statuses of one object within a migration run (`storage_migration_items.status`).
|
|
132
|
+
*
|
|
133
|
+
* @stability experimental
|
|
134
|
+
*/
|
|
135
|
+
export declare const STORAGE_MIGRATION_ITEM_STATUSES: readonly ["pending", "copying", "migrated", "failed", "skipped"];
|
|
136
|
+
/**
|
|
137
|
+
* A {@link STORAGE_MIGRATION_ITEM_STATUSES} value.
|
|
138
|
+
*
|
|
139
|
+
* @stability experimental
|
|
140
|
+
*/
|
|
141
|
+
export type StorageMigrationItemStatusName = (typeof STORAGE_MIGRATION_ITEM_STATUSES)[number];
|
|
111
142
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/storage/constants.ts"],"names":[],"mappings":"AAUA;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,QAA2B,CAAC;AAElE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,8BAA8B,uCAAwC,CAAC;AAEpF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,uCAAiC,CAAC;AAErE;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzF;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAEzC;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,yFAA0F,CAAC;AAElI;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,oE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S,MAAM,EAAE,IAAI;KAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;CAAE,CAAC;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,qEAAsE,CAAC;AAElH;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5F;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,iCAAkC,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,kEAAmE,CAAC;AAEhH;;;;GAIG;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -101,4 +101,23 @@ export const STORAGE_SECRET_FIELD_NAMES = [
|
|
|
101
101
|
'token',
|
|
102
102
|
'privateKey',
|
|
103
103
|
];
|
|
104
|
+
/**
|
|
105
|
+
* The statuses of a copy-only provider migration run (`storage_migration_runs.status`,
|
|
106
|
+
* the `StorageMigrationRunStatus` enum of the `storage` fragment), in lifecycle order.
|
|
107
|
+
*
|
|
108
|
+
* @stability experimental
|
|
109
|
+
*/
|
|
110
|
+
export const STORAGE_MIGRATION_RUN_STATUSES = ['pending', 'running', 'completed', 'failed', 'cancelled'];
|
|
111
|
+
/**
|
|
112
|
+
* The run statuses that hold the one-active-run slot (`storage_migration_runs_active_uniq_idx`).
|
|
113
|
+
*
|
|
114
|
+
* @stability experimental
|
|
115
|
+
*/
|
|
116
|
+
export const STORAGE_MIGRATION_ACTIVE_RUN_STATUSES = ['pending', 'running'];
|
|
117
|
+
/**
|
|
118
|
+
* The statuses of one object within a migration run (`storage_migration_items.status`).
|
|
119
|
+
*
|
|
120
|
+
* @stability experimental
|
|
121
|
+
*/
|
|
122
|
+
export const STORAGE_MIGRATION_ITEM_STATUSES = ['pending', 'copying', 'migrated', 'failed', 'skipped'];
|
|
104
123
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/storage/constants.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAChF,EAAE;AACF,2EAA2E;AAC3E,uEAAuE;AACvE,6EAA6E;AAC7E,gDAAgD;AAChD,gFAAgF;AAEhF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,wBAAwB,CAAC;AAElE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,cAAc,CAAU,CAAC;AAEpF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,8BAA8B,CAAC;AAkBrE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,CAAU,CAAC;AAElI;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AAS1G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,WAAW;IACX,aAAa;IACb,iBAAiB;CACT,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,iBAAiB;IACjB,WAAW;IACX,cAAc;IACd,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,OAAO;IACP,YAAY;CACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/storage/constants.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAChF,EAAE;AACF,2EAA2E;AAC3E,uEAAu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,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { BUILTIN_STORAGE_PROVIDER_KINDS, LEGACY_STORAGE_FLAT_FIELDS, MISSING_STORAGE_CONFIG_FIELDS, STORAGE_DRIVER_ID_PATTERN, STORAGE_OBJECT_STATUSES, STORAGE_PROVIDER_KINDS, STORAGE_SECRET_FIELD_NAMES, } from './constants.js';
|
|
2
|
-
export type { BuiltinStorageProviderKind, StorageEnum, StorageObjectStatusName, StorageProviderKind } from './constants.js';
|
|
1
|
+
export { BUILTIN_STORAGE_PROVIDER_KINDS, LEGACY_STORAGE_FLAT_FIELDS, MISSING_STORAGE_CONFIG_FIELDS, STORAGE_DRIVER_ID_PATTERN, STORAGE_MIGRATION_ACTIVE_RUN_STATUSES, STORAGE_MIGRATION_ITEM_STATUSES, STORAGE_MIGRATION_RUN_STATUSES, STORAGE_OBJECT_STATUSES, STORAGE_PROVIDER_KINDS, STORAGE_SECRET_FIELD_NAMES, } from './constants.js';
|
|
2
|
+
export type { BuiltinStorageProviderKind, StorageEnum, StorageMigrationItemStatusName, StorageMigrationRunStatusName, StorageObjectStatusName, StorageProviderKind, } from './constants.js';
|
|
3
3
|
export { STORAGE_SETTINGS_CARRIES_NO_SECRET, storageDriverIdSchema, storageDriverSettingsSchema, storageDriversPatchSchema, storageDriversSchema, storageResponseSchema, storageSettingsPatchSchema, storageSettingsSchema, systemStoragePatchSchema, systemStorageSchema, } from './schemas.js';
|
|
4
4
|
export type { StorageSettingsCarriesNoSecret, StorageSettingsInput, StorageSettingsPatchInput, StorageSettingsResponse, SystemStoragePatchValue, SystemStorageValue, } from './schemas.js';
|
|
5
5
|
export { completeUploadSchema } from './schemas.js';
|
|
@@ -24,4 +24,6 @@ export { STORAGE_TEST_CHECK_CODES, STORAGE_TEST_CHECK_IDS, STORAGE_TEST_CHECK_ST
|
|
|
24
24
|
export type { StorageConnectionCheck, StorageConnectionTestResult, StorageTestCheckId, TestStorageConfigInput, } from './schemas.js';
|
|
25
25
|
export { STORAGE_BUCKET_OUTCOMES, STORAGE_BUCKET_STEP_IDS, STORAGE_BUCKET_STEP_STATUSES, guidedBucketInstructionsSchema, provisionStorageBucketSchema, storageBucketProvisionResultSchema, storageBucketStepSchema, } from './schemas.js';
|
|
26
26
|
export type { ProvisionStorageBucketInput, StorageBucketOutcome, StorageBucketProvisionResult, StorageBucketStep, StorageBucketStepId, } from './schemas.js';
|
|
27
|
+
export { startStorageMigrationSchema, storageMigrationListQuerySchema, storageMigrationRunListSchema, storageMigrationRunSchema, } from './schemas.js';
|
|
28
|
+
export type { StartStorageMigrationInput, StorageMigrationListQuery, StorageMigrationRun, StorageMigrationRunList, } from './schemas.js';
|
|
27
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/index.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,EAC7B,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/storage/index.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,EAC7B,yBAAyB,EACzB,qCAAqC,EACrC,+BAA+B,EAC/B,8BAA8B,EAC9B,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,0BAA0B,EAC1B,WAAW,EACX,8BAA8B,EAC9B,6BAA6B,EAC7B,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,kCAAkC,EAClC,qBAAqB,EACrB,2BAA2B,EAC3B,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,q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AAO,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACtF,YAAY,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,iCAAiC,EACjC,uBAAuB,GACxB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAC5B,kCAAkC,EAClC,uBAAuB,GACxB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,cAAc,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// objects API, the storage-config admin routes, `GET /api/storage/status` and
|
|
5
5
|
// the `storage` system-settings namespace. Documented in ./README.md.
|
|
6
6
|
// Explicit named exports only. constants.ts is zod-free.
|
|
7
|
-
export { BUILTIN_STORAGE_PROVIDER_KINDS, LEGACY_STORAGE_FLAT_FIELDS, MISSING_STORAGE_CONFIG_FIELDS, STORAGE_DRIVER_ID_PATTERN, STORAGE_OBJECT_STATUSES, STORAGE_PROVIDER_KINDS, STORAGE_SECRET_FIELD_NAMES, } from './constants.js';
|
|
7
|
+
export { BUILTIN_STORAGE_PROVIDER_KINDS, LEGACY_STORAGE_FLAT_FIELDS, MISSING_STORAGE_CONFIG_FIELDS, STORAGE_DRIVER_ID_PATTERN, STORAGE_MIGRATION_ACTIVE_RUN_STATUSES, STORAGE_MIGRATION_ITEM_STATUSES, STORAGE_MIGRATION_RUN_STATUSES, STORAGE_OBJECT_STATUSES, STORAGE_PROVIDER_KINDS, STORAGE_SECRET_FIELD_NAMES, } from './constants.js';
|
|
8
8
|
// ---- the `storage` system-settings namespace --------------------------------------------
|
|
9
9
|
export { STORAGE_SETTINGS_CARRIES_NO_SECRET, storageDriverIdSchema, storageDriverSettingsSchema, storageDriversPatchSchema, storageDriversSchema, storageResponseSchema, storageSettingsPatchSchema, storageSettingsSchema, systemStoragePatchSchema, systemStorageSchema, } from './schemas.js';
|
|
10
10
|
// ---- the objects API (`/api/storage/objects`) and `/api/storage/status` ------------------
|
|
@@ -20,4 +20,6 @@ export { STORAGE_SWITCH_CONFIRMATION, updateStorageConfigSchema } from './schema
|
|
|
20
20
|
export { storageConfigResponseSchema, storageSecretStatusSchema } from './schemas.js';
|
|
21
21
|
export { STORAGE_TEST_CHECK_CODES, STORAGE_TEST_CHECK_IDS, STORAGE_TEST_CHECK_STATUSES, storageConnectionCheckSchema, storageConnectionTestResultSchema, testStorageConfigSchema, } from './schemas.js';
|
|
22
22
|
export { STORAGE_BUCKET_OUTCOMES, STORAGE_BUCKET_STEP_IDS, STORAGE_BUCKET_STEP_STATUSES, guidedBucketInstructionsSchema, provisionStorageBucketSchema, storageBucketProvisionResultSchema, storageBucketStepSchema, } from './schemas.js';
|
|
23
|
+
// ---- copy-only provider migration (`/api/admin/storage/migrations`, #1093) -------------
|
|
24
|
+
export { startStorageMigrationSchema, storageMigrationListQuerySchema, storageMigrationRunListSchema, storageMigrationRunSchema, } from './schemas.js';
|
|
23
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/storage/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,6EAA6E;AAC7E,2EAA2E;AAC3E,8E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CAAC;AAG3D,6FAA6F;AAC7F,OAAO,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEtF,OAAO,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEtF,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,iCAAiC,EACjC,uBAAuB,GACxB,MAAM,cAAc,CAAC;AAOtB,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,EAC5B,kCAAkC,EAClC,uBAAuB,GACxB,MAAM,cAAc,CAAC;AAStB,2FAA2F;AAC3F,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,cAAc,CAAC"}
|
|
@@ -10,4 +10,5 @@ export * from './storage-config-update.js';
|
|
|
10
10
|
export * from './storage-config-response.js';
|
|
11
11
|
export * from './storage-connection-test.js';
|
|
12
12
|
export * from './storage-bucket-provision.js';
|
|
13
|
+
export * from './storage-migration.js';
|
|
13
14
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/storage/schemas.ts"],"names":[],"mappings":"AAMA,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/storage/schemas.ts"],"names":[],"mappings":"AAMA,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC"}
|
|
@@ -16,4 +16,5 @@ export * from './storage-config-update.js';
|
|
|
16
16
|
export * from './storage-config-response.js';
|
|
17
17
|
export * from './storage-connection-test.js';
|
|
18
18
|
export * from './storage-bucket-provision.js';
|
|
19
|
+
export * from './storage-migration.js';
|
|
19
20
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/storage/schemas.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qEAAqE;AACrE,4EAA4E;AAC5E,sDAAsD;AACtD,6EAA6E;AAC7E,sCAAsC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/storage/schemas.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qEAAqE;AACrE,4EAA4E;AAC5E,sDAAsD;AACtD,6EAA6E;AAC7E,sCAAsC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC"}
|
|
@@ -83,6 +83,12 @@ export declare const storageConfigResponseSchema: z.ZodObject<{
|
|
|
83
83
|
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
84
84
|
updatedByUserId: z.ZodNullable<z.ZodString>;
|
|
85
85
|
}, z.core.$strip>;
|
|
86
|
+
secretStatuses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
87
|
+
configured: z.ZodBoolean;
|
|
88
|
+
hint: z.ZodNullable<z.ZodString>;
|
|
89
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
90
|
+
updatedByUserId: z.ZodNullable<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>>>>;
|
|
86
92
|
version: z.ZodNumber;
|
|
87
93
|
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
88
94
|
updatedBy: z.ZodNullable<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-config-response.d.ts","sourceRoot":"","sources":["../../../src/storage/storage-config-response.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB;;;;;iBA2BpC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"storage-config-response.d.ts","sourceRoot":"","sources":["../../../src/storage/storage-config-response.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB;;;;;iBA2BpC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwHtC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -143,6 +143,14 @@ export const storageConfigResponseSchema = z.object({
|
|
|
143
143
|
* presence is in `descriptors`. See the header.
|
|
144
144
|
*/
|
|
145
145
|
secretStatus: storageSecretStatusSchema,
|
|
146
|
+
/**
|
|
147
|
+
* The masked status of EVERY registered driver's declared secrets, by driver
|
|
148
|
+
* id and secret name (#1124): each driver keeps its own credential address,
|
|
149
|
+
* so the admin page shows each driver's stored key, not the active one's.
|
|
150
|
+
* Optional: an older API omits it (the page then falls back to
|
|
151
|
+
* `secretStatus` and the descriptors' `hasValue`).
|
|
152
|
+
*/
|
|
153
|
+
secretStatuses: z.record(storageDriverIdSchema, z.record(z.string(), storageSecretStatusSchema)).optional(),
|
|
146
154
|
// ---------------------------------------------------------------------------
|
|
147
155
|
// Provenance of the settings row
|
|
148
156
|
// ---------------------------------------------------------------------------
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-config-response.js","sourceRoot":"","sources":["../../../src/storage/storage-config-response.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,8EAA8E;AAC9E,gFAAgF;AAChF,EAAE;AACF,8EAA8E;AAC9E,+DAA+D;AAC/D,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;AAChF,sEAAsE;AACtE,6EAA6E;AAC7E,gFAAg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C,CAAC,MAAM,EAAE;IACvB,yIAAyI;IACzI,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAEtC;;;;;;OAMG;IACH,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;IAE/C,8EAA8E;IAC9E,qBAAqB;IACrB,8EAA8E;IAE9E;;;;;;;;;;;;OAYG;IACH,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAExC;;;;;;;OAOG;IACH,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IAEvB;;;;;;;;;;;;OAYG;IACH,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAE5B;;;;OAIG;IACH,YAAY,EAAE,yBAAyB;IAEvC,8EAA8E;IAC9E,iCAAiC;IACjC,8EAA8E;IAE9E;;;;;;;OAOG;IACH,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAEzB,iFAAiF;IACjF,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAEtC,kDAAkD;IAClD,SAAS,EAAE,CAAC;SACT,MAAM,CAAC;QACN,qBAAqB;QACrB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,qBAAqB;QACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;KAClB,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"storage-config-response.js","sourceRoot":"","sources":["../../../src/storage/storage-config-response.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,8EAA8E;AAC9E,gFAAgF;AAChF,EAAE;AACF,8EAA8E;AAC9E,+DAA+D;AAC/D,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;AAChF,sEAAsE;AACtE,6EAA6E;AAC7E,gFAAgF;AAChF,6EAA6E;AAC7E,iFAAiF;AACjF,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the driver to copy from and
|
|
5
|
+
* the driver to copy to (registered driver ids, `s3`, `r2`, ...). They differ.
|
|
6
|
+
*
|
|
7
|
+
* @stability experimental
|
|
8
|
+
*/
|
|
9
|
+
export declare const startStorageMigrationSchema: z.ZodObject<{
|
|
10
|
+
sourceProvider: z.ZodString;
|
|
11
|
+
targetProvider: z.ZodString;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
/**
|
|
14
|
+
* The start body, parsed.
|
|
15
|
+
*
|
|
16
|
+
* @stability experimental
|
|
17
|
+
*/
|
|
18
|
+
export type StartStorageMigrationInput = z.infer<typeof startStorageMigrationSchema>;
|
|
19
|
+
/**
|
|
20
|
+
* One migration run as the admin routes return it. The counts are recomputed
|
|
21
|
+
* from the run's items on every read; `pendingCount` is what is still queued
|
|
22
|
+
* or being copied.
|
|
23
|
+
*
|
|
24
|
+
* @stability experimental
|
|
25
|
+
*/
|
|
26
|
+
export declare const storageMigrationRunSchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
sourceProvider: z.ZodString;
|
|
29
|
+
targetProvider: z.ZodString;
|
|
30
|
+
status: z.ZodEnum<StorageEnum<typeof STORAGE_MIGRATION_RUN_STATUSES>>;
|
|
31
|
+
totalCount: z.ZodNumber;
|
|
32
|
+
migratedCount: z.ZodNumber;
|
|
33
|
+
failedCount: z.ZodNumber;
|
|
34
|
+
skippedCount: z.ZodNumber;
|
|
35
|
+
pendingCount: z.ZodNumber;
|
|
36
|
+
startedById: z.ZodNullable<z.ZodString>;
|
|
37
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
38
|
+
plannedAt: z.ZodNullable<z.ZodString>;
|
|
39
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
40
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
41
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
42
|
+
createdAt: z.ZodString;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
/**
|
|
45
|
+
* One migration run.
|
|
46
|
+
*
|
|
47
|
+
* @stability experimental
|
|
48
|
+
*/
|
|
49
|
+
export type StorageMigrationRun = z.infer<typeof storageMigrationRunSchema>;
|
|
50
|
+
/**
|
|
51
|
+
* The `GET /api/admin/storage/migrations` query: page and page size, newest first.
|
|
52
|
+
*
|
|
53
|
+
* @stability experimental
|
|
54
|
+
*/
|
|
55
|
+
export declare const storageMigrationListQuerySchema: z.ZodObject<{
|
|
56
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
57
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
/**
|
|
60
|
+
* The list query, parsed (defaults applied).
|
|
61
|
+
*
|
|
62
|
+
* @stability experimental
|
|
63
|
+
*/
|
|
64
|
+
export type StorageMigrationListQuery = z.infer<typeof storageMigrationListQuerySchema>;
|
|
65
|
+
/**
|
|
66
|
+
* The `GET /api/admin/storage/migrations` payload: one page of runs, newest first.
|
|
67
|
+
*
|
|
68
|
+
* @stability experimental
|
|
69
|
+
*/
|
|
70
|
+
export declare const storageMigrationRunListSchema: z.ZodObject<{
|
|
71
|
+
items: z.ZodArray<z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
sourceProvider: z.ZodString;
|
|
74
|
+
targetProvider: z.ZodString;
|
|
75
|
+
status: z.ZodEnum<StorageEnum<typeof STORAGE_MIGRATION_RUN_STATUSES>>;
|
|
76
|
+
totalCount: z.ZodNumber;
|
|
77
|
+
migratedCount: z.ZodNumber;
|
|
78
|
+
failedCount: z.ZodNumber;
|
|
79
|
+
skippedCount: z.ZodNumber;
|
|
80
|
+
pendingCount: z.ZodNumber;
|
|
81
|
+
startedById: z.ZodNullable<z.ZodString>;
|
|
82
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
83
|
+
plannedAt: z.ZodNullable<z.ZodString>;
|
|
84
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
85
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
86
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
87
|
+
createdAt: z.ZodString;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
meta: z.ZodObject<{
|
|
90
|
+
page: z.ZodNumber;
|
|
91
|
+
pageSize: z.ZodNumber;
|
|
92
|
+
totalItems: z.ZodNumber;
|
|
93
|
+
totalPages: z.ZodNumber;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
/**
|
|
97
|
+
* One page of runs.
|
|
98
|
+
*
|
|
99
|
+
* @stability experimental
|
|
100
|
+
*/
|
|
101
|
+
export type StorageMigrationRunList = z.infer<typeof storageMigrationRunListSchema>;
|
|
102
|
+
//# sourceMappingURL=storage-migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-migration.d.ts","sourceRoot":"","sources":["../../../src/storage/storage-migration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,8BAA8B,EAC9B,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAC;AAcxB;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;kBAWpC,CAAC;AAEL;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAErF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;;;YAQc,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,8BAA8B,CAAC,CAAC;;;;;;;;;;;;;iBAyB/G,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;;;iBAK1C,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;;gBA1DU,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,8BAA8B,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;iBAwE/G,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { STORAGE_DRIVER_ID_PATTERN, STORAGE_MIGRATION_RUN_STATUSES, } from './constants.js';
|
|
3
|
+
// =============================================================================
|
|
4
|
+
// /api/admin/storage/migrations — copy-only provider migration (issue #1093)
|
|
5
|
+
// =============================================================================
|
|
6
|
+
//
|
|
7
|
+
// An administrator copies every `ready` object recorded on one storage driver
|
|
8
|
+
// to another. Each object is copied (streamed, never buffered), verified (its
|
|
9
|
+
// size and the sha256 of the bytes read BACK from the target), and only then
|
|
10
|
+
// is its row repointed; the source object is left where it was, as a fallback.
|
|
11
|
+
// One run at a time: a start while one is pending or running is a 409 naming
|
|
12
|
+
// it at `details.activeRunId`.
|
|
13
|
+
// =============================================================================
|
|
14
|
+
/**
|
|
15
|
+
* The `POST /api/admin/storage/migrations` body: the driver to copy from and
|
|
16
|
+
* the driver to copy to (registered driver ids, `s3`, `r2`, ...). They differ.
|
|
17
|
+
*
|
|
18
|
+
* @stability experimental
|
|
19
|
+
*/
|
|
20
|
+
export const startStorageMigrationSchema = z
|
|
21
|
+
.object({
|
|
22
|
+
/** The driver whose objects are copied (`storage_objects.storage_provider`). */
|
|
23
|
+
sourceProvider: z.string().regex(STORAGE_DRIVER_ID_PATTERN),
|
|
24
|
+
/** The driver they are copied to; it must be configured. */
|
|
25
|
+
targetProvider: z.string().regex(STORAGE_DRIVER_ID_PATTERN),
|
|
26
|
+
})
|
|
27
|
+
.strict()
|
|
28
|
+
.refine((body) => body.sourceProvider !== body.targetProvider, {
|
|
29
|
+
message: 'sourceProvider and targetProvider must differ',
|
|
30
|
+
path: ['targetProvider'],
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* One migration run as the admin routes return it. The counts are recomputed
|
|
34
|
+
* from the run's items on every read; `pendingCount` is what is still queued
|
|
35
|
+
* or being copied.
|
|
36
|
+
*
|
|
37
|
+
* @stability experimental
|
|
38
|
+
*/
|
|
39
|
+
export const storageMigrationRunSchema = z.object({
|
|
40
|
+
/** The run id (UUID). */
|
|
41
|
+
id: z.string().uuid(),
|
|
42
|
+
/** The driver copied from. */
|
|
43
|
+
sourceProvider: z.string(),
|
|
44
|
+
/** The driver copied to. */
|
|
45
|
+
targetProvider: z.string(),
|
|
46
|
+
/** Where the run is in its lifecycle. */
|
|
47
|
+
status: z.enum(STORAGE_MIGRATION_RUN_STATUSES),
|
|
48
|
+
/** Objects the run took on (0 until the planner has listed them). */
|
|
49
|
+
totalCount: z.number().int().nonnegative(),
|
|
50
|
+
/** Copied, verified and repointed. */
|
|
51
|
+
migratedCount: z.number().int().nonnegative(),
|
|
52
|
+
/** Gave up. */
|
|
53
|
+
failedCount: z.number().int().nonnegative(),
|
|
54
|
+
/** Nothing to do (deleted, moved, already on the target, or the run was cancelled). */
|
|
55
|
+
skippedCount: z.number().int().nonnegative(),
|
|
56
|
+
/** Still queued or being copied. */
|
|
57
|
+
pendingCount: z.number().int().nonnegative(),
|
|
58
|
+
/** The administrator who started it, or `null` once that user was deleted. */
|
|
59
|
+
startedById: z.string().uuid().nullable(),
|
|
60
|
+
/** When the planner began (ISO 8601), or `null` while pending. */
|
|
61
|
+
startedAt: z.string().nullable(),
|
|
62
|
+
/** When the planner had queued every object, or `null`. */
|
|
63
|
+
plannedAt: z.string().nullable(),
|
|
64
|
+
/** When it finished (ISO 8601), or `null`. */
|
|
65
|
+
finishedAt: z.string().nullable(),
|
|
66
|
+
/** When it was cancelled (ISO 8601), or `null`. */
|
|
67
|
+
cancelledAt: z.string().nullable(),
|
|
68
|
+
/** The last error an item or the planner recorded, or `null`. */
|
|
69
|
+
lastError: z.string().nullable(),
|
|
70
|
+
/** Creation (ISO 8601). */
|
|
71
|
+
createdAt: z.string(),
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* The `GET /api/admin/storage/migrations` query: page and page size, newest first.
|
|
75
|
+
*
|
|
76
|
+
* @stability experimental
|
|
77
|
+
*/
|
|
78
|
+
export const storageMigrationListQuerySchema = z.object({
|
|
79
|
+
/** The page, 1-based. */
|
|
80
|
+
page: z.coerce.number().int().positive().default(1),
|
|
81
|
+
/** Runs per page (at most 100). */
|
|
82
|
+
pageSize: z.coerce.number().int().positive().max(100).default(20),
|
|
83
|
+
});
|
|
84
|
+
/**
|
|
85
|
+
* The `GET /api/admin/storage/migrations` payload: one page of runs, newest first.
|
|
86
|
+
*
|
|
87
|
+
* @stability experimental
|
|
88
|
+
*/
|
|
89
|
+
export const storageMigrationRunListSchema = z.object({
|
|
90
|
+
/** The page's runs. */
|
|
91
|
+
items: z.array(storageMigrationRunSchema),
|
|
92
|
+
/** The page's position in the list. */
|
|
93
|
+
meta: z.object({
|
|
94
|
+
/** The page, 1-based. */
|
|
95
|
+
page: z.number().int().positive(),
|
|
96
|
+
/** Runs per page. */
|
|
97
|
+
pageSize: z.number().int().positive(),
|
|
98
|
+
/** Runs across pages. */
|
|
99
|
+
totalItems: z.number().int().nonnegative(),
|
|
100
|
+
/** How many pages there are. */
|
|
101
|
+
totalPages: z.number().int().nonnegative(),
|
|
102
|
+
}),
|
|
103
|
+
});
|
|
104
|
+
//# sourceMappingURL=storage-migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-migration.js","sourceRoot":"","sources":["../../../src/storage/storage-migration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,y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