@etaio/core-types 1.2.0 → 1.2.2

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.
@@ -315,7 +315,7 @@ export declare function hasAIFeatures(asset: Asset): boolean;
315
315
  */
316
316
  export declare function assetToMediaAttachment(asset: Asset): {
317
317
  id: string;
318
- type: string;
318
+ type: any;
319
319
  url: string;
320
320
  name: string;
321
321
  size: number;
@@ -329,7 +329,7 @@ export declare function assetToMediaAttachment(asset: Asset): {
329
329
  description: string | undefined;
330
330
  transcription: string | undefined;
331
331
  extractedText: string | undefined;
332
- processingStatus: "pending" | "processing" | "completed" | "failed" | undefined;
332
+ processingStatus: "processing" | "failed" | "pending" | "completed" | undefined;
333
333
  };
334
334
  /**
335
335
  * Get display name for an asset
@@ -1,9 +1,7 @@
1
1
  /**
2
2
  * Assets Module Export
3
3
  *
4
- * Asset types and utilities for API layer
4
+ * Unified Asset type and utilities
5
5
  */
6
- export * from './api-asset';
7
- export * from './asset-adapter';
8
6
  export * from './asset';
9
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAC"}
package/dist/index.d.ts CHANGED
@@ -5,23 +5,23 @@
5
5
  * This package provides the foundation types that all other packages build upon.
6
6
  *
7
7
  * Architecture:
8
+ * - Asset: Unified asset type for all media/files (NEW - use this!)
8
9
  * - Editor Types: UI components, tracks, transitions (from editor-types)
9
10
  * - Storage Types: Upload and storage management (from storage-types)
10
11
  * - GenAI Types: Generative AI types (from genai-types)
11
- * - BaseAsset: The fundamental asset type (ID, type, URL, project)
12
- * - ApiAsset: Extends BaseAsset with API-specific metadata
12
+ * - BaseAsset: Legacy fundamental asset type (deprecated - use Asset instead)
13
+ * - ApiAsset: Extends BaseAsset with API-specific metadata (legacy)
13
14
  * - AssetAdapter: Converts between different asset representations
14
15
  * - Request/Response: Standardized API contracts
15
16
  * - Validation: Runtime type checking with Zod
16
17
  * - Providers: Interface definitions for generation services
17
18
  */
18
19
  export * from './editor';
19
- export * from './base';
20
20
  export * from './assets';
21
21
  export * from './providers';
22
22
  export * from './storage';
23
23
  export * from './genai';
24
24
  export * from './validators';
25
- export declare const VERSION = "1.0.7";
25
+ export declare const VERSION = "1.2.1";
26
26
  export declare const PACKAGE_NAME = "@etaio/core-types";
27
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,cAAc,UAAU,CAAC;AAKzB,cAAc,QAAQ,CAAC;AAKvB,cAAc,UAAU,CAAC;AAKzB,cAAc,aAAa,CAAC;AAM5B,cAAc,WAAW,CAAC;AAM1B,cAAc,SAAS,CAAC;AAKxB,cAAc,cAAc,CAAC;AAK7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,YAAY,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,cAAc,UAAU,CAAC;AAUzB,cAAc,UAAU,CAAC;AAKzB,cAAc,aAAa,CAAC;AAM5B,cAAc,WAAW,CAAC;AAM1B,cAAc,SAAS,CAAC;AAKxB,cAAc,cAAc,CAAC;AAK7B,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,YAAY,sBAAsB,CAAC"}