@ndla/types-backend 1.0.105 → 1.0.106

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.
@@ -442,6 +442,11 @@ export type components = {
442
442
  /** @description ISO 639-1 code that represents the language used in the caption */
443
443
  language: string;
444
444
  };
445
+ /**
446
+ * ImageContentType
447
+ * @enum {string}
448
+ */
449
+ ImageContentType: "image/bmp" | "image/gif" | "image/jpeg" | "image/x-citrix-jpeg" | "image/pjpeg" | "image/png" | "image/x-png" | "image/svg+xml" | "image/webp";
445
450
  /**
446
451
  * ImageDimensionsDTO
447
452
  * @description Dimensions of the image
@@ -471,7 +476,7 @@ export type components = {
471
476
  */
472
477
  size: number;
473
478
  /** @description The mimetype of the image */
474
- contentType: string;
479
+ contentType: components["schemas"]["ImageContentType"];
475
480
  /** @description The full url to where the image can be downloaded */
476
481
  imageUrl: string;
477
482
  dimensions?: components["schemas"]["ImageDimensionsDTO"];
@@ -501,7 +506,7 @@ export type components = {
501
506
  */
502
507
  size: number;
503
508
  /** @description The mimetype of the image */
504
- contentType: string;
509
+ contentType: components["schemas"]["ImageContentType"];
505
510
  copyright: components["schemas"]["CopyrightDTO"];
506
511
  tags: components["schemas"]["ImageTagDTO"];
507
512
  /** @description Searchable caption for the image */
@@ -738,6 +743,8 @@ export type components = {
738
743
  * @description Filter images with height less than or equal to this value.
739
744
  */
740
745
  heightTo?: number;
746
+ /** @description Filter images by content type (e.g., 'image/jpeg', 'image/png'). */
747
+ contentType?: components["schemas"]["ImageContentType"];
741
748
  };
742
749
  /**
743
750
  * SearchResultDTO
@@ -892,6 +899,7 @@ export type EditorNoteDTO = components['schemas']['EditorNoteDTO'];
892
899
  export type ErrorBody = components['schemas']['ErrorBody'];
893
900
  export type ImageAltTextDTO = components['schemas']['ImageAltTextDTO'];
894
901
  export type ImageCaptionDTO = components['schemas']['ImageCaptionDTO'];
902
+ export type ImageContentType = components['schemas']['ImageContentType'];
895
903
  export type ImageDimensionsDTO = components['schemas']['ImageDimensionsDTO'];
896
904
  export type ImageFileDTO = components['schemas']['ImageFileDTO'];
897
905
  export type ImageMetaInformationV2DTO = components['schemas']['ImageMetaInformationV2DTO'];
@@ -960,6 +968,8 @@ export interface operations {
960
968
  "height-from"?: number;
961
969
  /** @description Filter images with height less than or equal to this value. */
962
970
  "height-to"?: number;
971
+ /** @description Filter images by content type (e.g., 'image/jpeg', 'image/png'). */
972
+ "content-type"?: string;
963
973
  };
964
974
  header?: never;
965
975
  path?: never;
@@ -1542,6 +1552,8 @@ export interface operations {
1542
1552
  "height-from"?: number;
1543
1553
  /** @description Filter images with height less than or equal to this value. */
1544
1554
  "height-to"?: number;
1555
+ /** @description Filter images by content type (e.g., 'image/jpeg', 'image/png'). */
1556
+ "content-type"?: string;
1545
1557
  };
1546
1558
  header?: never;
1547
1559
  path?: never;
package/package.json CHANGED
@@ -32,6 +32,6 @@
32
32
  "tsx": "^4.21.0",
33
33
  "typescript": "^5.9.3"
34
34
  },
35
- "version": "1.0.105",
35
+ "version": "1.0.106",
36
36
  "packageManager": "yarn@4.10.3"
37
37
  }