@picteus/extension-sdk 0.7.1 → 0.9.0

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.
Files changed (209) hide show
  1. package/dist/picteus-ws-client/apis/AdministrationApi.d.ts +1 -1
  2. package/dist/picteus-ws-client/apis/AdministrationApi.js +1 -1
  3. package/dist/picteus-ws-client/apis/ApiSecretApi.d.ts +1 -1
  4. package/dist/picteus-ws-client/apis/ApiSecretApi.js +2 -2
  5. package/dist/picteus-ws-client/apis/CollectionApi.d.ts +167 -0
  6. package/dist/picteus-ws-client/apis/CollectionApi.js +188 -0
  7. package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +1 -1
  8. package/dist/picteus-ws-client/apis/ExtensionApi.js +1 -1
  9. package/dist/picteus-ws-client/apis/ImageApi.d.ts +133 -77
  10. package/dist/picteus-ws-client/apis/ImageApi.js +134 -64
  11. package/dist/picteus-ws-client/apis/ImageAttachmentApi.d.ts +1 -1
  12. package/dist/picteus-ws-client/apis/ImageAttachmentApi.js +1 -1
  13. package/dist/picteus-ws-client/apis/MiscellaneousApi.d.ts +1 -1
  14. package/dist/picteus-ws-client/apis/MiscellaneousApi.js +1 -1
  15. package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +48 -35
  16. package/dist/picteus-ws-client/apis/RepositoryApi.js +56 -42
  17. package/dist/picteus-ws-client/apis/SettingsApi.d.ts +1 -1
  18. package/dist/picteus-ws-client/apis/SettingsApi.js +1 -1
  19. package/dist/picteus-ws-client/apis/index.d.ts +1 -0
  20. package/dist/picteus-ws-client/apis/index.js +1 -0
  21. package/dist/picteus-ws-client/models/ApiSecret.d.ts +17 -17
  22. package/dist/picteus-ws-client/models/ApiSecret.js +7 -7
  23. package/dist/picteus-ws-client/models/ApiSecretSummary.d.ts +17 -17
  24. package/dist/picteus-ws-client/models/ApiSecretSummary.js +7 -7
  25. package/dist/picteus-ws-client/models/ApiSecretType.d.ts +1 -1
  26. package/dist/picteus-ws-client/models/ApiSecretType.js +1 -1
  27. package/dist/picteus-ws-client/models/ApplicationMetadata.d.ts +1 -1
  28. package/dist/picteus-ws-client/models/ApplicationMetadata.js +1 -1
  29. package/dist/picteus-ws-client/models/ApplicationMetadataItem.d.ts +1 -1
  30. package/dist/picteus-ws-client/models/ApplicationMetadataItem.js +1 -1
  31. package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.d.ts +1 -1
  32. package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.js +1 -1
  33. package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +1 -1
  34. package/dist/picteus-ws-client/models/Automatic1111Instruction.js +1 -1
  35. package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +1 -1
  36. package/dist/picteus-ws-client/models/Automatic1111UserComment.js +1 -1
  37. package/dist/picteus-ws-client/models/Collection.d.ts +63 -0
  38. package/dist/picteus-ws-client/models/Collection.js +62 -0
  39. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +1 -1
  40. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +1 -1
  41. package/dist/picteus-ws-client/models/CommandEntity.d.ts +1 -1
  42. package/dist/picteus-ws-client/models/CommandEntity.js +1 -1
  43. package/dist/picteus-ws-client/models/ComputedImageFormat.d.ts +1 -1
  44. package/dist/picteus-ws-client/models/ComputedImageFormat.js +1 -1
  45. package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +1 -1
  46. package/dist/picteus-ws-client/models/ConfigurationCapability.js +1 -1
  47. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +1 -1
  48. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +1 -1
  49. package/dist/picteus-ws-client/models/ConstantsRegistry.d.ts +40 -0
  50. package/dist/picteus-ws-client/models/ConstantsRegistry.js +49 -0
  51. package/dist/picteus-ws-client/models/Dates.d.ts +1 -1
  52. package/dist/picteus-ws-client/models/Dates.js +1 -1
  53. package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
  54. package/dist/picteus-ws-client/models/Extension.js +1 -1
  55. package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
  56. package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
  57. package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +1 -1
  58. package/dist/picteus-ws-client/models/ExtensionActivityKind.js +1 -1
  59. package/dist/picteus-ws-client/models/ExtensionAndManual.d.ts +1 -1
  60. package/dist/picteus-ws-client/models/ExtensionAndManual.js +1 -1
  61. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +1 -1
  62. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
  63. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +1 -1
  64. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
  65. package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +6 -5
  66. package/dist/picteus-ws-client/models/ExtensionImageFeature.js +4 -3
  67. package/dist/picteus-ws-client/models/ExtensionImageFeatureName.d.ts +52 -0
  68. package/dist/picteus-ws-client/models/ExtensionImageFeatureName.js +57 -0
  69. package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +2 -2
  70. package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
  71. package/dist/picteus-ws-client/models/ExtensionManual.d.ts +1 -1
  72. package/dist/picteus-ws-client/models/ExtensionManual.js +1 -1
  73. package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +1 -1
  74. package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
  75. package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +1 -1
  76. package/dist/picteus-ws-client/models/ExtensionStatus.js +1 -1
  77. package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
  78. package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
  79. package/dist/picteus-ws-client/models/GenerationRecipe.d.ts +2 -2
  80. package/dist/picteus-ws-client/models/GenerationRecipe.js +4 -2
  81. package/dist/picteus-ws-client/models/GenerationRecipePrompt.d.ts +1 -1
  82. package/dist/picteus-ws-client/models/GenerationRecipePrompt.js +1 -1
  83. package/dist/picteus-ws-client/models/Image.d.ts +1 -8
  84. package/dist/picteus-ws-client/models/Image.js +1 -6
  85. package/dist/picteus-ws-client/models/ImageDimensions.d.ts +1 -1
  86. package/dist/picteus-ws-client/models/ImageDimensions.js +1 -1
  87. package/dist/picteus-ws-client/models/ImageDistance.d.ts +1 -1
  88. package/dist/picteus-ws-client/models/ImageDistance.js +1 -1
  89. package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +1 -1
  90. package/dist/picteus-ws-client/models/ImageEmbeddings.js +1 -1
  91. package/dist/picteus-ws-client/models/ImageFeature.d.ts +6 -5
  92. package/dist/picteus-ws-client/models/ImageFeature.js +4 -3
  93. package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +4 -1
  94. package/dist/picteus-ws-client/models/ImageFeatureFormat.js +4 -1
  95. package/dist/picteus-ws-client/models/ImageFeatureNullValue.d.ts +24 -0
  96. package/dist/picteus-ws-client/models/ImageFeatureNullValue.js +42 -0
  97. package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +3 -1
  98. package/dist/picteus-ws-client/models/ImageFeatureType.js +3 -1
  99. package/dist/picteus-ws-client/models/ImageFeatureValue.d.ts +21 -0
  100. package/dist/picteus-ws-client/models/ImageFeatureValue.js +55 -0
  101. package/dist/picteus-ws-client/models/ImageFormat.d.ts +2 -2
  102. package/dist/picteus-ws-client/models/ImageFormat.js +2 -2
  103. package/dist/picteus-ws-client/models/ImageGenerator.d.ts +1 -1
  104. package/dist/picteus-ws-client/models/ImageGenerator.js +1 -1
  105. package/dist/picteus-ws-client/models/ImageMediaUrl.d.ts +1 -1
  106. package/dist/picteus-ws-client/models/ImageMediaUrl.js +1 -1
  107. package/dist/picteus-ws-client/models/ImageMetadata.d.ts +1 -1
  108. package/dist/picteus-ws-client/models/ImageMetadata.js +1 -1
  109. package/dist/picteus-ws-client/models/ImageResizeRender.d.ts +1 -1
  110. package/dist/picteus-ws-client/models/ImageResizeRender.js +1 -1
  111. package/dist/picteus-ws-client/models/ImageSummary.d.ts +1 -8
  112. package/dist/picteus-ws-client/models/ImageSummary.js +1 -6
  113. package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +1 -1
  114. package/dist/picteus-ws-client/models/ImageSummaryList.js +1 -1
  115. package/dist/picteus-ws-client/models/InstructionsPrompt.d.ts +1 -1
  116. package/dist/picteus-ws-client/models/InstructionsPrompt.js +1 -1
  117. package/dist/picteus-ws-client/models/Manifest.d.ts +1 -1
  118. package/dist/picteus-ws-client/models/Manifest.js +1 -1
  119. package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
  120. package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
  121. package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
  122. package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
  123. package/dist/picteus-ws-client/models/ManifestEvent.d.ts +1 -1
  124. package/dist/picteus-ws-client/models/ManifestEvent.js +1 -1
  125. package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
  126. package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
  127. package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
  128. package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
  129. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
  130. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
  131. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +1 -1
  132. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
  133. package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
  134. package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
  135. package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
  136. package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
  137. package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
  138. package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
  139. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
  140. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
  141. package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.d.ts +1 -1
  142. package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.js +1 -1
  143. package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
  144. package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
  145. package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +1 -1
  146. package/dist/picteus-ws-client/models/MidjourneyInstructions.js +1 -1
  147. package/dist/picteus-ws-client/models/PromptKind.d.ts +1 -1
  148. package/dist/picteus-ws-client/models/PromptKind.js +1 -1
  149. package/dist/picteus-ws-client/models/Repository.d.ts +1 -1
  150. package/dist/picteus-ws-client/models/Repository.js +1 -1
  151. package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
  152. package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
  153. package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
  154. package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
  155. package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
  156. package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
  157. package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +1 -1
  158. package/dist/picteus-ws-client/models/RepositoryStatus.js +1 -1
  159. package/dist/picteus-ws-client/models/SearchCriteria.d.ts +8 -8
  160. package/dist/picteus-ws-client/models/SearchCriteria.js +4 -4
  161. package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.d.ts +30 -0
  162. package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.js +48 -0
  163. package/dist/picteus-ws-client/models/SearchFeatureCondition.d.ts +60 -0
  164. package/dist/picteus-ws-client/models/SearchFeatureCondition.js +59 -0
  165. package/dist/picteus-ws-client/models/SearchFeatureConditionValue.d.ts +21 -0
  166. package/dist/picteus-ws-client/models/SearchFeatureConditionValue.js +55 -0
  167. package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.d.ts +26 -0
  168. package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.js +44 -0
  169. package/dist/picteus-ws-client/models/SearchFeatures.d.ts +46 -0
  170. package/dist/picteus-ws-client/models/SearchFeatures.js +51 -0
  171. package/dist/picteus-ws-client/models/SearchFilter.d.ts +47 -0
  172. package/dist/picteus-ws-client/models/SearchFilter.js +48 -0
  173. package/dist/picteus-ws-client/models/SearchFilterOrigin.d.ts +27 -0
  174. package/dist/picteus-ws-client/models/SearchFilterOrigin.js +47 -0
  175. package/dist/picteus-ws-client/models/SearchImagesOrigin.d.ts +39 -0
  176. package/dist/picteus-ws-client/models/SearchImagesOrigin.js +48 -0
  177. package/dist/picteus-ws-client/models/SearchKeyword.d.ts +2 -2
  178. package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
  179. package/dist/picteus-ws-client/models/SearchOriginNature.d.ts +25 -0
  180. package/dist/picteus-ws-client/models/SearchOriginNature.js +43 -0
  181. package/dist/picteus-ws-client/models/SearchProperties.d.ts +2 -2
  182. package/dist/picteus-ws-client/models/SearchProperties.js +1 -1
  183. package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +1 -1
  184. package/dist/picteus-ws-client/models/SearchPropertyRange.js +1 -1
  185. package/dist/picteus-ws-client/models/SearchRange.d.ts +2 -2
  186. package/dist/picteus-ws-client/models/SearchRange.js +1 -1
  187. package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.d.ts +39 -0
  188. package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.js +48 -0
  189. package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
  190. package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
  191. package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +3 -1
  192. package/dist/picteus-ws-client/models/SearchSortingProperty.js +3 -1
  193. package/dist/picteus-ws-client/models/SearchTags.d.ts +3 -3
  194. package/dist/picteus-ws-client/models/SearchTags.js +1 -1
  195. package/dist/picteus-ws-client/models/Settings.d.ts +1 -1
  196. package/dist/picteus-ws-client/models/Settings.js +1 -1
  197. package/dist/picteus-ws-client/models/Software.d.ts +24 -0
  198. package/dist/picteus-ws-client/models/Software.js +42 -0
  199. package/dist/picteus-ws-client/models/TextualPrompt.d.ts +1 -1
  200. package/dist/picteus-ws-client/models/TextualPrompt.js +1 -1
  201. package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +2 -1
  202. package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +2 -1
  203. package/dist/picteus-ws-client/models/index.d.ts +16 -5
  204. package/dist/picteus-ws-client/models/index.js +16 -5
  205. package/dist/picteus-ws-client/runtime.d.ts +1 -1
  206. package/dist/picteus-ws-client/runtime.js +1 -1
  207. package/dist/picteusExtension.d.ts +8 -4
  208. package/dist/picteusExtension.js +1 -1
  209. package/package.json +4 -4
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The image feature comparison operator
16
+ * @export
17
+ */
18
+ export const SearchFeatureComparisonOperator = {
19
+ Equals: 'equals',
20
+ Different: 'different',
21
+ Contains: 'contains',
22
+ GreaterThan: 'greaterThan',
23
+ GreaterThanOrEqual: 'greaterThanOrEqual',
24
+ LessThan: 'lessThan',
25
+ LessThanOrEqual: 'lessThanOrEqual'
26
+ };
27
+ export function instanceOfSearchFeatureComparisonOperator(value) {
28
+ for (const key in SearchFeatureComparisonOperator) {
29
+ if (Object.prototype.hasOwnProperty.call(SearchFeatureComparisonOperator, key)) {
30
+ if (SearchFeatureComparisonOperator[key] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+ export function SearchFeatureComparisonOperatorFromJSON(json) {
38
+ return SearchFeatureComparisonOperatorFromJSONTyped(json, false);
39
+ }
40
+ export function SearchFeatureComparisonOperatorFromJSONTyped(json, ignoreDiscriminator) {
41
+ return json;
42
+ }
43
+ export function SearchFeatureComparisonOperatorToJSON(value) {
44
+ return value;
45
+ }
46
+ export function SearchFeatureComparisonOperatorToJSONTyped(value, ignoreDiscriminator) {
47
+ return value;
48
+ }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SearchFeatureComparisonOperator } from './SearchFeatureComparisonOperator.js';
13
+ import type { ImageFeatureFormat } from './ImageFeatureFormat.js';
14
+ import type { ImageFeatureType } from './ImageFeatureType.js';
15
+ import type { SearchFeatureConditionValue } from './SearchFeatureConditionValue.js';
16
+ /**
17
+ * A condition expression for filtering image features
18
+ * @export
19
+ * @interface SearchFeatureCondition
20
+ */
21
+ export interface SearchFeatureCondition {
22
+ /**
23
+ * The image feature type
24
+ * @type {ImageFeatureType}
25
+ * @memberof SearchFeatureCondition
26
+ */
27
+ type?: ImageFeatureType;
28
+ /**
29
+ * The image feature format
30
+ * @type {ImageFeatureFormat}
31
+ * @memberof SearchFeatureCondition
32
+ */
33
+ format: ImageFeatureFormat;
34
+ /**
35
+ * The image feature name
36
+ * @type {string}
37
+ * @memberof SearchFeatureCondition
38
+ */
39
+ name?: string;
40
+ /**
41
+ * The image feature comparison operator
42
+ * @type {SearchFeatureComparisonOperator}
43
+ * @memberof SearchFeatureCondition
44
+ */
45
+ operator: SearchFeatureComparisonOperator;
46
+ /**
47
+ *
48
+ * @type {SearchFeatureConditionValue}
49
+ * @memberof SearchFeatureCondition
50
+ */
51
+ value: SearchFeatureConditionValue;
52
+ }
53
+ /**
54
+ * Check if a given object implements the SearchFeatureCondition interface.
55
+ */
56
+ export declare function instanceOfSearchFeatureCondition(value: object): value is SearchFeatureCondition;
57
+ export declare function SearchFeatureConditionFromJSON(json: any): SearchFeatureCondition;
58
+ export declare function SearchFeatureConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFeatureCondition;
59
+ export declare function SearchFeatureConditionToJSON(json: any): SearchFeatureCondition;
60
+ export declare function SearchFeatureConditionToJSONTyped(value?: SearchFeatureCondition | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SearchFeatureComparisonOperatorFromJSON, SearchFeatureComparisonOperatorToJSON, } from './SearchFeatureComparisonOperator.js';
15
+ import { ImageFeatureFormatFromJSON, ImageFeatureFormatToJSON, } from './ImageFeatureFormat.js';
16
+ import { ImageFeatureTypeFromJSON, ImageFeatureTypeToJSON, } from './ImageFeatureType.js';
17
+ import { SearchFeatureConditionValueFromJSON, SearchFeatureConditionValueToJSON, } from './SearchFeatureConditionValue.js';
18
+ /**
19
+ * Check if a given object implements the SearchFeatureCondition interface.
20
+ */
21
+ export function instanceOfSearchFeatureCondition(value) {
22
+ if (!('format' in value) || value['format'] === undefined)
23
+ return false;
24
+ if (!('operator' in value) || value['operator'] === undefined)
25
+ return false;
26
+ if (!('value' in value) || value['value'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function SearchFeatureConditionFromJSON(json) {
31
+ return SearchFeatureConditionFromJSONTyped(json, false);
32
+ }
33
+ export function SearchFeatureConditionFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'type': json['type'] == null ? undefined : ImageFeatureTypeFromJSON(json['type']),
39
+ 'format': ImageFeatureFormatFromJSON(json['format']),
40
+ 'name': json['name'] == null ? undefined : json['name'],
41
+ 'operator': SearchFeatureComparisonOperatorFromJSON(json['operator']),
42
+ 'value': SearchFeatureConditionValueFromJSON(json['value']),
43
+ };
44
+ }
45
+ export function SearchFeatureConditionToJSON(json) {
46
+ return SearchFeatureConditionToJSONTyped(json, false);
47
+ }
48
+ export function SearchFeatureConditionToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'type': ImageFeatureTypeToJSON(value['type']),
54
+ 'format': ImageFeatureFormatToJSON(value['format']),
55
+ 'name': value['name'],
56
+ 'operator': SearchFeatureComparisonOperatorToJSON(value['operator']),
57
+ 'value': SearchFeatureConditionValueToJSON(value['value']),
58
+ };
59
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * @type SearchFeatureConditionValue
14
+ * The image feature value
15
+ * @export
16
+ */
17
+ export type SearchFeatureConditionValue = boolean | number | string;
18
+ export declare function SearchFeatureConditionValueFromJSON(json: any): SearchFeatureConditionValue;
19
+ export declare function SearchFeatureConditionValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFeatureConditionValue;
20
+ export declare function SearchFeatureConditionValueToJSON(json: any): any;
21
+ export declare function SearchFeatureConditionValueToJSONTyped(value?: SearchFeatureConditionValue | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export function SearchFeatureConditionValueFromJSON(json) {
15
+ return SearchFeatureConditionValueFromJSONTyped(json, false);
16
+ }
17
+ export function SearchFeatureConditionValueFromJSONTyped(json, ignoreDiscriminator) {
18
+ if (json == null) {
19
+ return json;
20
+ }
21
+ if (typeof json === 'string') {
22
+ return json;
23
+ }
24
+ if (typeof json === 'number') {
25
+ return json;
26
+ }
27
+ if (typeof json === 'number') {
28
+ return json;
29
+ }
30
+ if (typeof json === 'boolean') {
31
+ return json;
32
+ }
33
+ return {};
34
+ }
35
+ export function SearchFeatureConditionValueToJSON(json) {
36
+ return SearchFeatureConditionValueToJSONTyped(json, false);
37
+ }
38
+ export function SearchFeatureConditionValueToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ if (typeof value === 'string') {
43
+ return value;
44
+ }
45
+ if (typeof value === 'number') {
46
+ return value;
47
+ }
48
+ if (typeof value === 'number') {
49
+ return value;
50
+ }
51
+ if (typeof value === 'boolean') {
52
+ return value;
53
+ }
54
+ return {};
55
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The logical operator
14
+ * @export
15
+ */
16
+ export declare const SearchFeatureLogicalOperator: {
17
+ readonly Or: "or";
18
+ readonly And: "and";
19
+ readonly Not: "not";
20
+ };
21
+ export type SearchFeatureLogicalOperator = typeof SearchFeatureLogicalOperator[keyof typeof SearchFeatureLogicalOperator];
22
+ export declare function instanceOfSearchFeatureLogicalOperator(value: any): boolean;
23
+ export declare function SearchFeatureLogicalOperatorFromJSON(json: any): SearchFeatureLogicalOperator;
24
+ export declare function SearchFeatureLogicalOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFeatureLogicalOperator;
25
+ export declare function SearchFeatureLogicalOperatorToJSON(value?: SearchFeatureLogicalOperator | null): any;
26
+ export declare function SearchFeatureLogicalOperatorToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchFeatureLogicalOperator;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The logical operator
16
+ * @export
17
+ */
18
+ export const SearchFeatureLogicalOperator = {
19
+ Or: 'or',
20
+ And: 'and',
21
+ Not: 'not'
22
+ };
23
+ export function instanceOfSearchFeatureLogicalOperator(value) {
24
+ for (const key in SearchFeatureLogicalOperator) {
25
+ if (Object.prototype.hasOwnProperty.call(SearchFeatureLogicalOperator, key)) {
26
+ if (SearchFeatureLogicalOperator[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function SearchFeatureLogicalOperatorFromJSON(json) {
34
+ return SearchFeatureLogicalOperatorFromJSONTyped(json, false);
35
+ }
36
+ export function SearchFeatureLogicalOperatorFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function SearchFeatureLogicalOperatorToJSON(value) {
40
+ return value;
41
+ }
42
+ export function SearchFeatureLogicalOperatorToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SearchFeatureCondition } from './SearchFeatureCondition.js';
13
+ import type { SearchFeatureLogicalOperator } from './SearchFeatureLogicalOperator.js';
14
+ /**
15
+ * The expression for filtering image features
16
+ * @export
17
+ * @interface SearchFeatures
18
+ */
19
+ export interface SearchFeatures {
20
+ /**
21
+ * The logical operator
22
+ * @type {SearchFeatureLogicalOperator}
23
+ * @memberof SearchFeatures
24
+ */
25
+ operator: SearchFeatureLogicalOperator;
26
+ /**
27
+ * The search conditions
28
+ * @type {Array<SearchFeatureCondition>}
29
+ * @memberof SearchFeatures
30
+ */
31
+ conditions: Array<SearchFeatureCondition>;
32
+ /**
33
+ * Other nested search features
34
+ * @type {SearchFeatures}
35
+ * @memberof SearchFeatures
36
+ */
37
+ features?: SearchFeatures;
38
+ }
39
+ /**
40
+ * Check if a given object implements the SearchFeatures interface.
41
+ */
42
+ export declare function instanceOfSearchFeatures(value: object): value is SearchFeatures;
43
+ export declare function SearchFeaturesFromJSON(json: any): SearchFeatures;
44
+ export declare function SearchFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFeatures;
45
+ export declare function SearchFeaturesToJSON(json: any): SearchFeatures;
46
+ export declare function SearchFeaturesToJSONTyped(value?: SearchFeatures | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SearchFeatureConditionFromJSON, SearchFeatureConditionToJSON, } from './SearchFeatureCondition.js';
15
+ import { SearchFeatureLogicalOperatorFromJSON, SearchFeatureLogicalOperatorToJSON, } from './SearchFeatureLogicalOperator.js';
16
+ /**
17
+ * Check if a given object implements the SearchFeatures interface.
18
+ */
19
+ export function instanceOfSearchFeatures(value) {
20
+ if (!('operator' in value) || value['operator'] === undefined)
21
+ return false;
22
+ if (!('conditions' in value) || value['conditions'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function SearchFeaturesFromJSON(json) {
27
+ return SearchFeaturesFromJSONTyped(json, false);
28
+ }
29
+ export function SearchFeaturesFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'operator': SearchFeatureLogicalOperatorFromJSON(json['operator']),
35
+ 'conditions': (json['conditions'].map(SearchFeatureConditionFromJSON)),
36
+ 'features': json['features'] == null ? undefined : SearchFeaturesFromJSON(json['features']),
37
+ };
38
+ }
39
+ export function SearchFeaturesToJSON(json) {
40
+ return SearchFeaturesToJSONTyped(json, false);
41
+ }
42
+ export function SearchFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'operator': SearchFeatureLogicalOperatorToJSON(value['operator']),
48
+ 'conditions': (value['conditions'].map(SearchFeatureConditionToJSON)),
49
+ 'features': SearchFeaturesToJSON(value['features']),
50
+ };
51
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SearchSorting } from './SearchSorting.js';
13
+ import type { SearchFilterOrigin } from './SearchFilterOrigin.js';
14
+ import type { SearchCriteria } from './SearchCriteria.js';
15
+ /**
16
+ * A search criteria combined to sorting specifications
17
+ * @export
18
+ * @interface SearchFilter
19
+ */
20
+ export interface SearchFilter {
21
+ /**
22
+ * The criteria that will be applied when applying filter
23
+ * @type {SearchCriteria}
24
+ * @memberof SearchFilter
25
+ */
26
+ criteria?: SearchCriteria;
27
+ /**
28
+ *
29
+ * @type {SearchFilterOrigin}
30
+ * @memberof SearchFilter
31
+ */
32
+ origin?: SearchFilterOrigin;
33
+ /**
34
+ * Indicates how the images should be sorted
35
+ * @type {SearchSorting}
36
+ * @memberof SearchFilter
37
+ */
38
+ sorting?: SearchSorting;
39
+ }
40
+ /**
41
+ * Check if a given object implements the SearchFilter interface.
42
+ */
43
+ export declare function instanceOfSearchFilter(value: object): value is SearchFilter;
44
+ export declare function SearchFilterFromJSON(json: any): SearchFilter;
45
+ export declare function SearchFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFilter;
46
+ export declare function SearchFilterToJSON(json: any): SearchFilter;
47
+ export declare function SearchFilterToJSONTyped(value?: SearchFilter | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SearchSortingFromJSON, SearchSortingToJSON, } from './SearchSorting.js';
15
+ import { SearchFilterOriginFromJSON, SearchFilterOriginToJSON, } from './SearchFilterOrigin.js';
16
+ import { SearchCriteriaFromJSON, SearchCriteriaToJSON, } from './SearchCriteria.js';
17
+ /**
18
+ * Check if a given object implements the SearchFilter interface.
19
+ */
20
+ export function instanceOfSearchFilter(value) {
21
+ return true;
22
+ }
23
+ export function SearchFilterFromJSON(json) {
24
+ return SearchFilterFromJSONTyped(json, false);
25
+ }
26
+ export function SearchFilterFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'criteria': json['criteria'] == null ? undefined : SearchCriteriaFromJSON(json['criteria']),
32
+ 'origin': json['origin'] == null ? undefined : SearchFilterOriginFromJSON(json['origin']),
33
+ 'sorting': json['sorting'] == null ? undefined : SearchSortingFromJSON(json['sorting']),
34
+ };
35
+ }
36
+ export function SearchFilterToJSON(json) {
37
+ return SearchFilterToJSONTyped(json, false);
38
+ }
39
+ export function SearchFilterToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'criteria': SearchCriteriaToJSON(value['criteria']),
45
+ 'origin': SearchFilterOriginToJSON(value['origin']),
46
+ 'sorting': SearchSortingToJSON(value['sorting']),
47
+ };
48
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SearchImagesOrigin } from './SearchImagesOrigin.js';
13
+ import type { SearchRepositoriesOrigin } from './SearchRepositoriesOrigin.js';
14
+ /**
15
+ * @type SearchFilterOrigin
16
+ * The origin of the images to search in
17
+ * @export
18
+ */
19
+ export type SearchFilterOrigin = {
20
+ kind: 'images';
21
+ } & SearchImagesOrigin | {
22
+ kind: 'repositories';
23
+ } & SearchRepositoriesOrigin;
24
+ export declare function SearchFilterOriginFromJSON(json: any): SearchFilterOrigin;
25
+ export declare function SearchFilterOriginFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchFilterOrigin;
26
+ export declare function SearchFilterOriginToJSON(json: any): any;
27
+ export declare function SearchFilterOriginToJSONTyped(value?: SearchFilterOrigin | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SearchImagesOriginFromJSONTyped, SearchImagesOriginToJSON, } from './SearchImagesOrigin.js';
15
+ import { SearchRepositoriesOriginFromJSONTyped, SearchRepositoriesOriginToJSON, } from './SearchRepositoriesOrigin.js';
16
+ export function SearchFilterOriginFromJSON(json) {
17
+ return SearchFilterOriginFromJSONTyped(json, false);
18
+ }
19
+ export function SearchFilterOriginFromJSONTyped(json, ignoreDiscriminator) {
20
+ if (json == null) {
21
+ return json;
22
+ }
23
+ switch (json['kind']) {
24
+ case 'images':
25
+ return Object.assign({}, SearchImagesOriginFromJSONTyped(json, true), { kind: 'images' });
26
+ case 'repositories':
27
+ return Object.assign({}, SearchRepositoriesOriginFromJSONTyped(json, true), { kind: 'repositories' });
28
+ default:
29
+ return json;
30
+ }
31
+ }
32
+ export function SearchFilterOriginToJSON(json) {
33
+ return SearchFilterOriginToJSONTyped(json, false);
34
+ }
35
+ export function SearchFilterOriginToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ switch (value['kind']) {
40
+ case 'images':
41
+ return Object.assign({}, SearchImagesOriginToJSON(value), { kind: 'images' });
42
+ case 'repositories':
43
+ return Object.assign({}, SearchRepositoriesOriginToJSON(value), { kind: 'repositories' });
44
+ default:
45
+ return value;
46
+ }
47
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Picteus
3
+ * The Picteus API
4
+ *
5
+ * The version of the OpenAPI document: 0.10.0
6
+ * Contact: edouard@koppasoft.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SearchOriginNature } from './SearchOriginNature.js';
13
+ /**
14
+ * A images-based search origin, involving that the images should be part of the designed image identifiers
15
+ * @export
16
+ * @interface SearchImagesOrigin
17
+ */
18
+ export interface SearchImagesOrigin {
19
+ /**
20
+ * Indicates how the search result entities should be sorted
21
+ * @type {SearchOriginNature}
22
+ * @memberof SearchImagesOrigin
23
+ */
24
+ kind: SearchOriginNature;
25
+ /**
26
+ * The image identifiers
27
+ * @type {Array<string>}
28
+ * @memberof SearchImagesOrigin
29
+ */
30
+ ids: Array<string>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the SearchImagesOrigin interface.
34
+ */
35
+ export declare function instanceOfSearchImagesOrigin(value: object): value is SearchImagesOrigin;
36
+ export declare function SearchImagesOriginFromJSON(json: any): SearchImagesOrigin;
37
+ export declare function SearchImagesOriginFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchImagesOrigin;
38
+ export declare function SearchImagesOriginToJSON(json: any): SearchImagesOrigin;
39
+ export declare function SearchImagesOriginToJSONTyped(value?: SearchImagesOrigin | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Picteus
5
+ * The Picteus API
6
+ *
7
+ * The version of the OpenAPI document: 0.10.0
8
+ * Contact: edouard@koppasoft.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SearchOriginNatureFromJSON, SearchOriginNatureToJSON, } from './SearchOriginNature.js';
15
+ /**
16
+ * Check if a given object implements the SearchImagesOrigin interface.
17
+ */
18
+ export function instanceOfSearchImagesOrigin(value) {
19
+ if (!('kind' in value) || value['kind'] === undefined)
20
+ return false;
21
+ if (!('ids' in value) || value['ids'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function SearchImagesOriginFromJSON(json) {
26
+ return SearchImagesOriginFromJSONTyped(json, false);
27
+ }
28
+ export function SearchImagesOriginFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'kind': SearchOriginNatureFromJSON(json['kind']),
34
+ 'ids': json['ids'],
35
+ };
36
+ }
37
+ export function SearchImagesOriginToJSON(json) {
38
+ return SearchImagesOriginToJSONTyped(json, false);
39
+ }
40
+ export function SearchImagesOriginToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'kind': SearchOriginNatureToJSON(value['kind']),
46
+ 'ids': value['ids'],
47
+ };
48
+ }