@ndla/types-backend 1.0.144 → 1.0.145
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 +20 -1
- package/package.json +1 -1
package/build/image-api.d.ts
CHANGED
|
@@ -418,7 +418,6 @@ export type components = {
|
|
|
418
418
|
schemas: {
|
|
419
419
|
/**
|
|
420
420
|
* AiGenerated
|
|
421
|
-
* @description Describes whether the image is AI generated
|
|
422
421
|
* @enum {string}
|
|
423
422
|
*/
|
|
424
423
|
AiGenerated: "No" | "Partial" | "Yes";
|
|
@@ -666,6 +665,7 @@ export type components = {
|
|
|
666
665
|
image: components["schemas"]["ImageFileDTO"];
|
|
667
666
|
/** @description Describes if the image is inactive or not */
|
|
668
667
|
inactive: boolean;
|
|
668
|
+
/** @description Describes whether the image is AI generated */
|
|
669
669
|
aiGenerated: components["schemas"]["AiGenerated"];
|
|
670
670
|
};
|
|
671
671
|
/**
|
|
@@ -693,6 +693,8 @@ export type components = {
|
|
|
693
693
|
supportedLanguages: string[];
|
|
694
694
|
/** @description Describes if the model has released use of the image */
|
|
695
695
|
modelRelease?: string;
|
|
696
|
+
/** @description Describes if the image is AI generated */
|
|
697
|
+
aiGenerated: components["schemas"]["AiGenerated"];
|
|
696
698
|
/** @description Describes the changes made to the image, only visible to editors */
|
|
697
699
|
editorNotes?: string[];
|
|
698
700
|
/** @description The time and date of last update */
|
|
@@ -778,8 +780,11 @@ export type components = {
|
|
|
778
780
|
language: string;
|
|
779
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' */
|
|
780
782
|
modelReleased?: string;
|
|
783
|
+
/** @description Describes whether the image is AI generated */
|
|
781
784
|
aiGenerated: components["schemas"]["AiGenerated"];
|
|
782
785
|
};
|
|
786
|
+
/** No */
|
|
787
|
+
No: Record<string, never>;
|
|
783
788
|
/**
|
|
784
789
|
* NotFoundWithSupportedLanguages
|
|
785
790
|
* @description Information about an error
|
|
@@ -799,6 +804,8 @@ export type components = {
|
|
|
799
804
|
*/
|
|
800
805
|
statusCode: number;
|
|
801
806
|
};
|
|
807
|
+
/** Partial */
|
|
808
|
+
Partial: Record<string, never>;
|
|
802
809
|
/**
|
|
803
810
|
* SearchParamsDTO
|
|
804
811
|
* @description The search parameters
|
|
@@ -843,6 +850,8 @@ export type components = {
|
|
|
843
850
|
inactive?: boolean;
|
|
844
851
|
/** @description Return only images with one of the provided values for modelReleased. */
|
|
845
852
|
modelReleased?: string[];
|
|
853
|
+
/** @description Return only images with one of the provided values for aiGenerated. */
|
|
854
|
+
aiGenerated?: components["schemas"]["AiGenerated"][];
|
|
846
855
|
/** @description Filter editors of the image(s). Multiple values can be specified in a comma separated list. */
|
|
847
856
|
users?: string[];
|
|
848
857
|
/**
|
|
@@ -969,6 +978,7 @@ export type components = {
|
|
|
969
978
|
modelReleased?: string;
|
|
970
979
|
/** @description Whether the image is inactive */
|
|
971
980
|
inactive?: boolean;
|
|
981
|
+
/** @description Describes whether the image is AI generated */
|
|
972
982
|
aiGenerated?: components["schemas"]["AiGenerated"];
|
|
973
983
|
};
|
|
974
984
|
/** UpdateMetaDataAndFileForm */
|
|
@@ -1006,6 +1016,8 @@ export type components = {
|
|
|
1006
1016
|
/** @description The validation message */
|
|
1007
1017
|
message: string;
|
|
1008
1018
|
};
|
|
1019
|
+
/** Yes */
|
|
1020
|
+
Yes: Record<string, never>;
|
|
1009
1021
|
};
|
|
1010
1022
|
responses: never;
|
|
1011
1023
|
parameters: never;
|
|
@@ -1043,7 +1055,9 @@ export type ImageVariantSize = components['schemas']['ImageVariantSize'];
|
|
|
1043
1055
|
export type LicenseDTO = components['schemas']['LicenseDTO'];
|
|
1044
1056
|
export type MetaDataAndFileForm = components['schemas']['MetaDataAndFileForm'];
|
|
1045
1057
|
export type NewImageMetaInformationV2DTO = components['schemas']['NewImageMetaInformationV2DTO'];
|
|
1058
|
+
export type No = components['schemas']['No'];
|
|
1046
1059
|
export type NotFoundWithSupportedLanguages = components['schemas']['NotFoundWithSupportedLanguages'];
|
|
1060
|
+
export type Partial = components['schemas']['Partial'];
|
|
1047
1061
|
export type SearchParamsDTO = components['schemas']['SearchParamsDTO'];
|
|
1048
1062
|
export type SearchResultDTO = components['schemas']['SearchResultDTO'];
|
|
1049
1063
|
export type SearchResultV3DTO = components['schemas']['SearchResultV3DTO'];
|
|
@@ -1053,6 +1067,7 @@ export type UpdateImageMetaInformationDTO = components['schemas']['UpdateImageMe
|
|
|
1053
1067
|
export type UpdateMetaDataAndFileForm = components['schemas']['UpdateMetaDataAndFileForm'];
|
|
1054
1068
|
export type ValidationErrorBody = components['schemas']['ValidationErrorBody'];
|
|
1055
1069
|
export type ValidationMessage = components['schemas']['ValidationMessage'];
|
|
1070
|
+
export type Yes = components['schemas']['Yes'];
|
|
1056
1071
|
export type $defs = Record<string, never>;
|
|
1057
1072
|
export interface operations {
|
|
1058
1073
|
"getImage-apiV2Images": {
|
|
@@ -1091,6 +1106,8 @@ export interface operations {
|
|
|
1091
1106
|
"search-context"?: string;
|
|
1092
1107
|
/** @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 */
|
|
1093
1108
|
"model-released"?: string[];
|
|
1109
|
+
/** @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
|
+
"ai-generated"?: components["schemas"]["AiGenerated"][];
|
|
1094
1111
|
/** @description Include inactive images */
|
|
1095
1112
|
inactive?: boolean;
|
|
1096
1113
|
/** @description Filter images with width greater than or equal to this value. */
|
|
@@ -1671,6 +1688,8 @@ export interface operations {
|
|
|
1671
1688
|
"search-context"?: string;
|
|
1672
1689
|
/** @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 */
|
|
1673
1690
|
"model-released"?: string[];
|
|
1691
|
+
/** @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
|
+
"ai-generated"?: components["schemas"]["AiGenerated"][];
|
|
1674
1693
|
/**
|
|
1675
1694
|
* @description List of users to filter by.
|
|
1676
1695
|
* The value to search for is the user-id from Auth0.
|