@rendley/sdk 1.12.25 → 1.12.26

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/dist/Engine.d.ts CHANGED
@@ -143,6 +143,7 @@ export declare const EngineSchema: z.ZodObject<{
143
143
  }>, "many">;
144
144
  fitDuration: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
145
145
  volume: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
146
+ customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
146
147
  }, "strip", z.ZodTypeAny, {
147
148
  startTime: number;
148
149
  volume: number;
@@ -167,6 +168,7 @@ export declare const EngineSchema: z.ZodObject<{
167
168
  customData?: [string, unknown][] | undefined;
168
169
  }[];
169
170
  fitDuration: number;
171
+ customData?: [string, unknown][] | undefined;
170
172
  }, {
171
173
  startTime: number;
172
174
  fps: number;
@@ -191,6 +193,7 @@ export declare const EngineSchema: z.ZodObject<{
191
193
  }[];
192
194
  fitDuration?: number | undefined;
193
195
  volume?: number | undefined;
196
+ customData?: [string, unknown][] | undefined;
194
197
  }>;
195
198
  library: z.ZodObject<{
196
199
  media: z.ZodArray<z.ZodObject<{
@@ -457,6 +460,7 @@ export declare const EngineSchema: z.ZodObject<{
457
460
  mipmap?: import(".").InputTextureMipmapMode | undefined;
458
461
  }[] | undefined;
459
462
  }>, "many">;
463
+ customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
460
464
  }, "strip", z.ZodTypeAny, {
461
465
  subtitles: {
462
466
  id: string;
@@ -530,6 +534,7 @@ export declare const EngineSchema: z.ZodObject<{
530
534
  customData?: [string, unknown][] | undefined;
531
535
  placeholderClipIds?: string[] | undefined;
532
536
  }[];
537
+ customData?: [string, unknown][] | undefined;
533
538
  }, {
534
539
  subtitles: {
535
540
  id: string;
@@ -603,6 +608,7 @@ export declare const EngineSchema: z.ZodObject<{
603
608
  customData?: [string, unknown][] | undefined;
604
609
  placeholderClipIds?: string[] | undefined;
605
610
  }[];
611
+ customData?: [string, unknown][] | undefined;
606
612
  }>;
607
613
  subtitlesManager: z.ZodOptional<z.ZodObject<{
608
614
  textMode: z.ZodEnum<["full", "partial"]>;
@@ -805,7 +811,7 @@ export declare const EngineSchema: z.ZodObject<{
805
811
  subtitlesScaleOnResize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
806
812
  subtitlesAutoWrapOnResize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
807
813
  viewAutoLayoutOnResize: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import(".").AutoLayoutMode>>>;
808
- mediaHashAlgorithm: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("./types/hash.types").HashAlgorithmEnum>>>;
814
+ mediaHashAlgorithm: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("./types").HashAlgorithmEnum>>>;
809
815
  }, "strip", z.ZodTypeAny, {
810
816
  m3u8MaxResolution: [number, number];
811
817
  clipAudioStoreSamples: boolean;
@@ -847,7 +853,7 @@ export declare const EngineSchema: z.ZodObject<{
847
853
  subtitlesScaleOnResize: boolean;
848
854
  subtitlesAutoWrapOnResize: boolean;
849
855
  viewAutoLayoutOnResize: import(".").AutoLayoutMode;
850
- mediaHashAlgorithm: import("./types/hash.types").HashAlgorithmEnum;
856
+ mediaHashAlgorithm: import("./types").HashAlgorithmEnum;
851
857
  }, {
852
858
  m3u8MaxResolution?: [number, number] | undefined;
853
859
  clipAudioStoreSamples?: boolean | undefined;
@@ -889,8 +895,9 @@ export declare const EngineSchema: z.ZodObject<{
889
895
  subtitlesScaleOnResize?: boolean | undefined;
890
896
  subtitlesAutoWrapOnResize?: boolean | undefined;
891
897
  viewAutoLayoutOnResize?: import(".").AutoLayoutMode | undefined;
892
- mediaHashAlgorithm?: import("./types/hash.types").HashAlgorithmEnum | undefined;
898
+ mediaHashAlgorithm?: import("./types").HashAlgorithmEnum | undefined;
893
899
  }>>;
900
+ customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
894
901
  }, "strip", z.ZodTypeAny, {
895
902
  display: {
896
903
  width: number;
@@ -921,6 +928,7 @@ export declare const EngineSchema: z.ZodObject<{
921
928
  customData?: [string, unknown][] | undefined;
922
929
  }[];
923
930
  fitDuration: number;
931
+ customData?: [string, unknown][] | undefined;
924
932
  };
925
933
  library: {
926
934
  subtitles: {
@@ -995,6 +1003,7 @@ export declare const EngineSchema: z.ZodObject<{
995
1003
  customData?: [string, unknown][] | undefined;
996
1004
  placeholderClipIds?: string[] | undefined;
997
1005
  }[];
1006
+ customData?: [string, unknown][] | undefined;
998
1007
  };
999
1008
  version?: string | undefined;
1000
1009
  createdAt?: number | undefined;
@@ -1076,8 +1085,9 @@ export declare const EngineSchema: z.ZodObject<{
1076
1085
  subtitlesScaleOnResize: boolean;
1077
1086
  subtitlesAutoWrapOnResize: boolean;
1078
1087
  viewAutoLayoutOnResize: import(".").AutoLayoutMode;
1079
- mediaHashAlgorithm: import("./types/hash.types").HashAlgorithmEnum;
1088
+ mediaHashAlgorithm: import("./types").HashAlgorithmEnum;
1080
1089
  } | undefined;
1090
+ customData?: [string, unknown][] | undefined;
1081
1091
  }, {
1082
1092
  display: {
1083
1093
  width: number;
@@ -1108,6 +1118,7 @@ export declare const EngineSchema: z.ZodObject<{
1108
1118
  }[];
1109
1119
  fitDuration?: number | undefined;
1110
1120
  volume?: number | undefined;
1121
+ customData?: [string, unknown][] | undefined;
1111
1122
  };
1112
1123
  library: {
1113
1124
  subtitles: {
@@ -1182,6 +1193,7 @@ export declare const EngineSchema: z.ZodObject<{
1182
1193
  customData?: [string, unknown][] | undefined;
1183
1194
  placeholderClipIds?: string[] | undefined;
1184
1195
  }[];
1196
+ customData?: [string, unknown][] | undefined;
1185
1197
  };
1186
1198
  version?: string | undefined;
1187
1199
  createdAt?: number | undefined;
@@ -1263,8 +1275,9 @@ export declare const EngineSchema: z.ZodObject<{
1263
1275
  subtitlesScaleOnResize?: boolean | undefined;
1264
1276
  subtitlesAutoWrapOnResize?: boolean | undefined;
1265
1277
  viewAutoLayoutOnResize?: import(".").AutoLayoutMode | undefined;
1266
- mediaHashAlgorithm?: import("./types/hash.types").HashAlgorithmEnum | undefined;
1278
+ mediaHashAlgorithm?: import("./types").HashAlgorithmEnum | undefined;
1267
1279
  } | undefined;
1280
+ customData?: [string, unknown][] | undefined;
1268
1281
  }>;
1269
1282
  type CustomClipConstructor<T extends CustomClip = CustomClip> = {
1270
1283
  new (...args: any[]): T;
@@ -1297,6 +1310,7 @@ export declare class Engine {
1297
1310
  private dataHashFunction?;
1298
1311
  private initOptions;
1299
1312
  private ready;
1313
+ protected customData?: Map<string, unknown>;
1300
1314
  private readonly renderer;
1301
1315
  private readonly backgroundTimer;
1302
1316
  private constructor();
@@ -1336,6 +1350,12 @@ export declare class Engine {
1336
1350
  setSubtitles(subtitlesId: string, offset: number): void;
1337
1351
  getDataHashFunction(): ((data: Uint8Array) => Promise<string>) | undefined;
1338
1352
  shouldSplitAudio(): boolean;
1353
+ setCustomData(key: string, value: unknown, overwrite?: boolean): boolean;
1354
+ getCustomData(key: string): unknown;
1355
+ hasCustomData(key: string): boolean;
1356
+ clearAllCustomData(): void;
1357
+ setAllCustomData(data: Map<string, unknown>): void;
1358
+ getAllCustomData(): Map<string, unknown> | undefined;
1339
1359
  getFrameAsBase64Image(time?: number, mimeType?: "image/jpeg" | "image/webp" | "image/png", quality?: number): Promise<string>;
1340
1360
  customClipTypes: Map<string, CustomClipConstructor>;
1341
1361
  registerCustomClip<T extends CustomClip = CustomClip>(classType: CustomClipConstructor<T>, typeEnum: string): void;
@@ -1375,6 +1395,7 @@ export declare class Engine {
1375
1395
  customData?: [string, unknown][] | undefined;
1376
1396
  }[];
1377
1397
  fitDuration: number;
1398
+ customData?: [string, unknown][] | undefined;
1378
1399
  };
1379
1400
  library: {
1380
1401
  subtitles: {
@@ -1449,6 +1470,7 @@ export declare class Engine {
1449
1470
  customData?: [string, unknown][] | undefined;
1450
1471
  placeholderClipIds?: string[] | undefined;
1451
1472
  }[];
1473
+ customData?: [string, unknown][] | undefined;
1452
1474
  };
1453
1475
  version?: string | undefined;
1454
1476
  createdAt?: number | undefined;
@@ -1530,8 +1552,9 @@ export declare class Engine {
1530
1552
  subtitlesScaleOnResize: boolean;
1531
1553
  subtitlesAutoWrapOnResize: boolean;
1532
1554
  viewAutoLayoutOnResize: import(".").AutoLayoutMode;
1533
- mediaHashAlgorithm: import("./types/hash.types").HashAlgorithmEnum;
1555
+ mediaHashAlgorithm: import("./types").HashAlgorithmEnum;
1534
1556
  } | undefined;
1557
+ customData?: [string, unknown][] | undefined;
1535
1558
  };
1536
1559
  private static _deserializationPromiseAction;
1537
1560
  static deserialize(data: object): Promise<void | Engine | undefined>;