feat(storage): generalize S3 client and watcher interfaces to storage-oriented naming with backward compatibility

This commit is contained in:
2026-03-14 19:24:36 +00:00
parent 7959fa6296
commit 18bdb5c7c2
15 changed files with 3598 additions and 3202 deletions

View File

@@ -10,9 +10,9 @@ export interface IPathDecriptor {
// ================================
/**
* Internal state tracking for an S3 object
* Internal state tracking for a storage object
*/
export interface IS3ObjectState {
export interface IStorageObjectState {
key: string;
etag: string;
size: number;
@@ -22,7 +22,7 @@ export interface IS3ObjectState {
/**
* Change event emitted by BucketWatcher
*/
export interface IS3ChangeEvent {
export interface IStorageChangeEvent {
type: 'add' | 'modify' | 'delete';
key: string;
size?: number;
@@ -54,4 +54,14 @@ export interface IBucketWatcherOptions {
pageSize?: number;
// Future websocket options will be added here
// websocketUrl?: string;
}
}
// ================================
// Deprecated aliases
// ================================
/** @deprecated Use IStorageObjectState instead */
export type IS3ObjectState = IStorageObjectState;
/** @deprecated Use IStorageChangeEvent instead */
export type IS3ChangeEvent = IStorageChangeEvent;