@cesdk/node 1.62.0-nightly.20250930 → 1.62.0-nightly.20251002

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/index.d.ts CHANGED
@@ -396,12 +396,19 @@ export declare class AssetAPI {
396
396
  /**
397
397
  * Fetch a specific asset by ID from an asset source.
398
398
  *
399
+ * ```javascript
400
+ * const asset = await engine.asset.fetchAsset('asset-source-id', 'asset-id', {
401
+ * locale: 'en-US'
402
+ * });
403
+ * ```
404
+ *
399
405
  * @category Asset Discovery
400
406
  * @param sourceId - The ID of the asset source to search in.
401
407
  * @param assetId - The ID of the asset to fetch.
408
+ * @param params - Query parameters including locale (optional).
402
409
  * @returns Promise resolving to the complete asset result, or undefined if not found.
403
410
  */
404
- fetchAsset(sourceId: string, assetId: string): Promise<CompleteAssetResult | null>;
411
+ fetchAsset(sourceId: string, assetId: string, params?: Pick<AssetQueryData, 'locale'>): Promise<CompleteAssetResult | null>;
405
412
  /**
406
413
  * Get available asset groups from a source.
407
414
  *
@@ -988,7 +995,7 @@ export declare interface AssetSource {
988
995
  /** Find all asset for the given type and the provided query data. */
989
996
  findAssets(queryData: AssetQueryData): Promise<AssetsQueryResult | undefined>;
990
997
  /** Fetch an asset by id. */
991
- fetchAsset?: (id: string) => Promise<AssetResult | null>;
998
+ fetchAsset?: (id: string, params?: Pick<AssetQueryData, 'locale'>) => Promise<AssetResult | null>;
992
999
  /** Return every available group */
993
1000
  getGroups?: () => Promise<string[]>;
994
1001
  /** Credits for the source/api */
@@ -6498,7 +6505,7 @@ export declare class EditorAPI {
6498
6505
  *
6499
6506
  * ```javascript
6500
6507
  * engine.editor.findAllTransientResources().forEach((resource) => {
6501
- * const bufferURI = resource.url;
6508
+ * const bufferURI = resource.URL;
6502
6509
  * const length = engine.editor.getBufferLength(buffer);
6503
6510
  * const data = engine.editor.getBufferData(buffer, 0, length);
6504
6511
  * const blob = new Blob([data]);
@@ -8282,12 +8289,12 @@ export declare interface TextFontSizeOptions {
8282
8289
  * Represents a transient resource.
8283
8290
  *
8284
8291
  * The `TransientResource` interface provides a set of properties that describe a transient
8285
- * resource, including a URI and the size of the resource.
8292
+ * resource, including a URL and the size of the resource.
8286
8293
  *
8287
8294
  * @public
8288
8295
  */
8289
8296
  export declare interface TransientResource {
8290
- uri: string;
8297
+ URL: string;
8291
8298
  size: number;
8292
8299
  }
8293
8300