@ndla/types-backend 1.0.147 → 1.0.148

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.
@@ -630,7 +630,7 @@ export type components = {
630
630
  /** @description Describes who created the image */
631
631
  createdBy: string;
632
632
  /** @description Describes if the model has released use of the image */
633
- modelRelease: string;
633
+ modelRelease: components["schemas"]["ModelReleasedStatus"];
634
634
  /** @description Describes the changes made to the image, only visible to editors */
635
635
  editorNotes?: components["schemas"]["EditorNoteDTO"][];
636
636
  imageDimensions?: components["schemas"]["ImageDimensionsDTO"];
@@ -659,7 +659,7 @@ export type components = {
659
659
  /** @description Describes who created the image */
660
660
  createdBy: string;
661
661
  /** @description Describes if the model has released use of the image */
662
- modelRelease: string;
662
+ modelRelease: components["schemas"]["ModelReleasedStatus"];
663
663
  /** @description Describes the changes made to the image, only visible to editors */
664
664
  editorNotes?: components["schemas"]["EditorNoteDTO"][];
665
665
  image: components["schemas"]["ImageFileDTO"];
@@ -692,7 +692,7 @@ export type components = {
692
692
  /** @description List of supported languages in priority */
693
693
  supportedLanguages: string[];
694
694
  /** @description Describes if the model has released use of the image */
695
- modelRelease?: string;
695
+ modelRelease: components["schemas"]["ModelReleasedStatus"];
696
696
  /** @description Describes if the image is AI generated */
697
697
  aiGenerated?: components["schemas"]["AiGenerated"];
698
698
  /** @description Describes the changes made to the image, only visible to editors */
@@ -762,6 +762,11 @@ export type components = {
762
762
  /** Format: binary */
763
763
  file: Blob;
764
764
  };
765
+ /**
766
+ * ModelReleasedStatus
767
+ * @enum {string}
768
+ */
769
+ ModelReleasedStatus: "no" | "not-applicable" | "not-set" | "yes";
765
770
  /**
766
771
  * NewImageMetaInformationV2DTO
767
772
  * @description Meta information for the image
@@ -778,8 +783,8 @@ export type components = {
778
783
  caption: string;
779
784
  /** @description ISO 639-1 code that represents the language used in the caption */
780
785
  language: string;
781
- /** @description Describes if the model has released use of the image, allowed values are 'not-set', 'yes', 'no', and 'not-applicable', defaults to 'no' */
782
- modelReleased?: string;
786
+ /** @description Describes if the model has released use of the image, defaults to 'no' */
787
+ modelReleased?: components["schemas"]["ModelReleasedStatus"];
783
788
  /** @description Describes whether the image is AI generated */
784
789
  aiGenerated?: components["schemas"]["AiGenerated"];
785
790
  };
@@ -845,7 +850,7 @@ export type components = {
845
850
  /** @description Include inactive images */
846
851
  inactive?: boolean;
847
852
  /** @description Return only images with one of the provided values for modelReleased. */
848
- modelReleased?: string[];
853
+ modelReleased?: components["schemas"]["ModelReleasedStatus"][];
849
854
  /** @description Return only images with one of the provided values for aiGenerated. */
850
855
  aiGenerated?: components["schemas"]["AiGenerated"][];
851
856
  /** @description Filter editors of the image(s). Multiple values can be specified in a comma separated list. */
@@ -971,7 +976,7 @@ export type components = {
971
976
  /** @description Caption for the image */
972
977
  caption?: string;
973
978
  /** @description Describes if the model has released use of the image */
974
- modelReleased?: string;
979
+ modelReleased?: components["schemas"]["ModelReleasedStatus"];
975
980
  /** @description Whether the image is inactive */
976
981
  inactive?: boolean;
977
982
  /** @description Describes whether the image is AI generated */
@@ -1048,6 +1053,7 @@ export type ImageVariantDTO = components['schemas']['ImageVariantDTO'];
1048
1053
  export type ImageVariantSize = components['schemas']['ImageVariantSize'];
1049
1054
  export type LicenseDTO = components['schemas']['LicenseDTO'];
1050
1055
  export type MetaDataAndFileForm = components['schemas']['MetaDataAndFileForm'];
1056
+ export type ModelReleasedStatus = components['schemas']['ModelReleasedStatus'];
1051
1057
  export type NewImageMetaInformationV2DTO = components['schemas']['NewImageMetaInformationV2DTO'];
1052
1058
  export type NotFoundWithSupportedLanguages = components['schemas']['NotFoundWithSupportedLanguages'];
1053
1059
  export type SearchParamsDTO = components['schemas']['SearchParamsDTO'];
@@ -1096,7 +1102,7 @@ export interface operations {
1096
1102
  */
1097
1103
  "search-context"?: string;
1098
1104
  /** @description Filter whether the image(s) should be model-released or not. Multiple values can be specified in a comma separated list. Possible values include: yes,no,not-applicable,not-set */
1099
- "model-released"?: string[];
1105
+ "model-released"?: components["schemas"]["ModelReleasedStatus"][];
1100
1106
  /** @description Filter whether the image(s) is AI generated or not. Multiple values can be specified in a comma separated list. Possible values include: Partial,Yes,No */
1101
1107
  "ai-generated"?: components["schemas"]["AiGenerated"][];
1102
1108
  /** @description Include inactive images */
@@ -1678,7 +1684,7 @@ export interface operations {
1678
1684
  */
1679
1685
  "search-context"?: string;
1680
1686
  /** @description Filter whether the image(s) should be model-released or not. Multiple values can be specified in a comma separated list. Possible values include: yes,no,not-applicable,not-set */
1681
- "model-released"?: string[];
1687
+ "model-released"?: components["schemas"]["ModelReleasedStatus"][];
1682
1688
  /** @description Filter whether the image(s) is AI generated or not. Multiple values can be specified in a comma separated list. Possible values include: Partial,Yes,No */
1683
1689
  "ai-generated"?: components["schemas"]["AiGenerated"][];
1684
1690
  /**
package/package.json CHANGED
@@ -33,6 +33,6 @@
33
33
  "tsx": "^4.21.0",
34
34
  "typescript": "^5.9.3"
35
35
  },
36
- "version": "1.0.147",
36
+ "version": "1.0.148",
37
37
  "packageManager": "yarn@4.10.3"
38
38
  }