@ndla/types-backend 1.0.146 → 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.
- package/build/image-api.d.ts +18 -21
- package/package.json +1 -1
package/build/image-api.d.ts
CHANGED
|
@@ -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:
|
|
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,14 +659,14 @@ 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:
|
|
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"];
|
|
666
666
|
/** @description Describes if the image is inactive or not */
|
|
667
667
|
inactive: boolean;
|
|
668
668
|
/** @description Describes whether the image is AI generated */
|
|
669
|
-
aiGenerated
|
|
669
|
+
aiGenerated?: components["schemas"]["AiGenerated"];
|
|
670
670
|
};
|
|
671
671
|
/**
|
|
672
672
|
* ImageMetaSummaryDTO
|
|
@@ -692,9 +692,9 @@ 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
|
|
695
|
+
modelRelease: components["schemas"]["ModelReleasedStatus"];
|
|
696
696
|
/** @description Describes if the image is AI generated */
|
|
697
|
-
aiGenerated
|
|
697
|
+
aiGenerated?: components["schemas"]["AiGenerated"];
|
|
698
698
|
/** @description Describes the changes made to the image, only visible to editors */
|
|
699
699
|
editorNotes?: string[];
|
|
700
700
|
/** @description The time and date of last update */
|
|
@@ -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,13 +783,11 @@ 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,
|
|
782
|
-
modelReleased?:
|
|
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
|
-
aiGenerated
|
|
789
|
+
aiGenerated?: components["schemas"]["AiGenerated"];
|
|
785
790
|
};
|
|
786
|
-
/** No */
|
|
787
|
-
No: Record<string, never>;
|
|
788
791
|
/**
|
|
789
792
|
* NotFoundWithSupportedLanguages
|
|
790
793
|
* @description Information about an error
|
|
@@ -804,8 +807,6 @@ export type components = {
|
|
|
804
807
|
*/
|
|
805
808
|
statusCode: number;
|
|
806
809
|
};
|
|
807
|
-
/** Partial */
|
|
808
|
-
Partial: Record<string, never>;
|
|
809
810
|
/**
|
|
810
811
|
* SearchParamsDTO
|
|
811
812
|
* @description The search parameters
|
|
@@ -849,7 +850,7 @@ export type components = {
|
|
|
849
850
|
/** @description Include inactive images */
|
|
850
851
|
inactive?: boolean;
|
|
851
852
|
/** @description Return only images with one of the provided values for modelReleased. */
|
|
852
|
-
modelReleased?:
|
|
853
|
+
modelReleased?: components["schemas"]["ModelReleasedStatus"][];
|
|
853
854
|
/** @description Return only images with one of the provided values for aiGenerated. */
|
|
854
855
|
aiGenerated?: components["schemas"]["AiGenerated"][];
|
|
855
856
|
/** @description Filter editors of the image(s). Multiple values can be specified in a comma separated list. */
|
|
@@ -975,7 +976,7 @@ export type components = {
|
|
|
975
976
|
/** @description Caption for the image */
|
|
976
977
|
caption?: string;
|
|
977
978
|
/** @description Describes if the model has released use of the image */
|
|
978
|
-
modelReleased?:
|
|
979
|
+
modelReleased?: components["schemas"]["ModelReleasedStatus"];
|
|
979
980
|
/** @description Whether the image is inactive */
|
|
980
981
|
inactive?: boolean;
|
|
981
982
|
/** @description Describes whether the image is AI generated */
|
|
@@ -1016,8 +1017,6 @@ export type components = {
|
|
|
1016
1017
|
/** @description The validation message */
|
|
1017
1018
|
message: string;
|
|
1018
1019
|
};
|
|
1019
|
-
/** Yes */
|
|
1020
|
-
Yes: Record<string, never>;
|
|
1021
1020
|
};
|
|
1022
1021
|
responses: never;
|
|
1023
1022
|
parameters: never;
|
|
@@ -1054,10 +1053,9 @@ export type ImageVariantDTO = components['schemas']['ImageVariantDTO'];
|
|
|
1054
1053
|
export type ImageVariantSize = components['schemas']['ImageVariantSize'];
|
|
1055
1054
|
export type LicenseDTO = components['schemas']['LicenseDTO'];
|
|
1056
1055
|
export type MetaDataAndFileForm = components['schemas']['MetaDataAndFileForm'];
|
|
1056
|
+
export type ModelReleasedStatus = components['schemas']['ModelReleasedStatus'];
|
|
1057
1057
|
export type NewImageMetaInformationV2DTO = components['schemas']['NewImageMetaInformationV2DTO'];
|
|
1058
|
-
export type No = components['schemas']['No'];
|
|
1059
1058
|
export type NotFoundWithSupportedLanguages = components['schemas']['NotFoundWithSupportedLanguages'];
|
|
1060
|
-
export type Partial = components['schemas']['Partial'];
|
|
1061
1059
|
export type SearchParamsDTO = components['schemas']['SearchParamsDTO'];
|
|
1062
1060
|
export type SearchResultDTO = components['schemas']['SearchResultDTO'];
|
|
1063
1061
|
export type SearchResultV3DTO = components['schemas']['SearchResultV3DTO'];
|
|
@@ -1067,7 +1065,6 @@ export type UpdateImageMetaInformationDTO = components['schemas']['UpdateImageMe
|
|
|
1067
1065
|
export type UpdateMetaDataAndFileForm = components['schemas']['UpdateMetaDataAndFileForm'];
|
|
1068
1066
|
export type ValidationErrorBody = components['schemas']['ValidationErrorBody'];
|
|
1069
1067
|
export type ValidationMessage = components['schemas']['ValidationMessage'];
|
|
1070
|
-
export type Yes = components['schemas']['Yes'];
|
|
1071
1068
|
export type $defs = Record<string, never>;
|
|
1072
1069
|
export interface operations {
|
|
1073
1070
|
"getImage-apiV2Images": {
|
|
@@ -1105,7 +1102,7 @@ export interface operations {
|
|
|
1105
1102
|
*/
|
|
1106
1103
|
"search-context"?: string;
|
|
1107
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 */
|
|
1108
|
-
"model-released"?:
|
|
1105
|
+
"model-released"?: components["schemas"]["ModelReleasedStatus"][];
|
|
1109
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 */
|
|
1110
1107
|
"ai-generated"?: components["schemas"]["AiGenerated"][];
|
|
1111
1108
|
/** @description Include inactive images */
|
|
@@ -1687,7 +1684,7 @@ export interface operations {
|
|
|
1687
1684
|
*/
|
|
1688
1685
|
"search-context"?: string;
|
|
1689
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 */
|
|
1690
|
-
"model-released"?:
|
|
1687
|
+
"model-released"?: components["schemas"]["ModelReleasedStatus"][];
|
|
1691
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 */
|
|
1692
1689
|
"ai-generated"?: components["schemas"]["AiGenerated"][];
|
|
1693
1690
|
/**
|