@cesdk/engine 1.56.0-nightly.20250709 → 1.56.0-nightly.20250711
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/assets/core/{cesdk-v1.56.0-nightly.20250709-3J2NXVD7.wasm → cesdk-v1.56.0-nightly.20250711-FVMVEPH3.wasm} +0 -0
- package/assets/core/worker-host-v1.56.0-nightly.20250711.js +1 -0
- package/index.d.ts +11 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/assets/core/worker-host-v1.56.0-nightly.20250709.js +0 -1
- /package/assets/core/{cesdk-v1.56.0-nightly.20250709-44YCFRT6.data → cesdk-v1.56.0-nightly.20250711-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -304,6 +304,15 @@ export declare class AssetAPI {
|
|
|
304
304
|
* @returns Promise resolving to paginated search results.
|
|
305
305
|
*/
|
|
306
306
|
findAssets(sourceId: string, query: AssetQueryData): Promise<AssetsQueryResult<CompleteAssetResult>>;
|
|
307
|
+
/**
|
|
308
|
+
* Fetch a specific asset by ID from an asset source.
|
|
309
|
+
*
|
|
310
|
+
* @category Asset Discovery
|
|
311
|
+
* @param sourceId - The ID of the asset source to search in.
|
|
312
|
+
* @param assetId - The ID of the asset to fetch.
|
|
313
|
+
* @returns Promise resolving to the complete asset result, or undefined if not found.
|
|
314
|
+
*/
|
|
315
|
+
fetchAsset(sourceId: string, assetId: string): Promise<CompleteAssetResult | null>;
|
|
307
316
|
/**
|
|
308
317
|
* Get available asset groups from a source.
|
|
309
318
|
*
|
|
@@ -871,6 +880,8 @@ export declare interface AssetSource {
|
|
|
871
880
|
id: string;
|
|
872
881
|
/** Find all asset for the given type and the provided query data. */
|
|
873
882
|
findAssets(queryData: AssetQueryData): Promise<AssetsQueryResult | undefined>;
|
|
883
|
+
/** Fetch an asset by id. */
|
|
884
|
+
fetchAsset?: (id: string) => Promise<AssetResult | null>;
|
|
874
885
|
/** Return every available group */
|
|
875
886
|
getGroups?: () => Promise<string[]>;
|
|
876
887
|
/** Credits for the source/api */
|