@picteus/extension-sdk 0.8.0 → 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 (199) 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 +99 -16
  10. package/dist/picteus-ws-client/apis/ImageApi.js +115 -13
  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 +25 -35
  16. package/dist/picteus-ws-client/apis/RepositoryApi.js +29 -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/Collection.d.ts +63 -0
  34. package/dist/picteus-ws-client/models/Collection.js +62 -0
  35. package/dist/picteus-ws-client/models/CommandEntity.d.ts +1 -1
  36. package/dist/picteus-ws-client/models/CommandEntity.js +1 -1
  37. package/dist/picteus-ws-client/models/ComputedImageFormat.d.ts +1 -1
  38. package/dist/picteus-ws-client/models/ComputedImageFormat.js +1 -1
  39. package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +1 -1
  40. package/dist/picteus-ws-client/models/ConfigurationCapability.js +1 -1
  41. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +1 -1
  42. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +1 -1
  43. package/dist/picteus-ws-client/models/ConstantsRegistry.d.ts +40 -0
  44. package/dist/picteus-ws-client/models/ConstantsRegistry.js +49 -0
  45. package/dist/picteus-ws-client/models/Dates.d.ts +1 -1
  46. package/dist/picteus-ws-client/models/Dates.js +1 -1
  47. package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
  48. package/dist/picteus-ws-client/models/Extension.js +1 -1
  49. package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
  50. package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
  51. package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +1 -1
  52. package/dist/picteus-ws-client/models/ExtensionActivityKind.js +1 -1
  53. package/dist/picteus-ws-client/models/ExtensionAndManual.d.ts +1 -1
  54. package/dist/picteus-ws-client/models/ExtensionAndManual.js +1 -1
  55. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +1 -1
  56. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
  57. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +1 -1
  58. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
  59. package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +6 -5
  60. package/dist/picteus-ws-client/models/ExtensionImageFeature.js +4 -3
  61. package/dist/picteus-ws-client/models/ExtensionImageFeatureName.d.ts +52 -0
  62. package/dist/picteus-ws-client/models/ExtensionImageFeatureName.js +57 -0
  63. package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +2 -2
  64. package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
  65. package/dist/picteus-ws-client/models/ExtensionManual.d.ts +1 -1
  66. package/dist/picteus-ws-client/models/ExtensionManual.js +1 -1
  67. package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +1 -1
  68. package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
  69. package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +1 -1
  70. package/dist/picteus-ws-client/models/ExtensionStatus.js +1 -1
  71. package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
  72. package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
  73. package/dist/picteus-ws-client/models/GenerationRecipe.d.ts +2 -2
  74. package/dist/picteus-ws-client/models/GenerationRecipe.js +4 -2
  75. package/dist/picteus-ws-client/models/GenerationRecipePrompt.d.ts +1 -1
  76. package/dist/picteus-ws-client/models/GenerationRecipePrompt.js +1 -1
  77. package/dist/picteus-ws-client/models/Image.d.ts +1 -1
  78. package/dist/picteus-ws-client/models/Image.js +1 -1
  79. package/dist/picteus-ws-client/models/ImageDimensions.d.ts +1 -1
  80. package/dist/picteus-ws-client/models/ImageDimensions.js +1 -1
  81. package/dist/picteus-ws-client/models/ImageDistance.d.ts +1 -1
  82. package/dist/picteus-ws-client/models/ImageDistance.js +1 -1
  83. package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +1 -1
  84. package/dist/picteus-ws-client/models/ImageEmbeddings.js +1 -1
  85. package/dist/picteus-ws-client/models/ImageFeature.d.ts +6 -5
  86. package/dist/picteus-ws-client/models/ImageFeature.js +4 -3
  87. package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +4 -1
  88. package/dist/picteus-ws-client/models/ImageFeatureFormat.js +4 -1
  89. package/dist/picteus-ws-client/models/ImageFeatureNullValue.d.ts +24 -0
  90. package/dist/picteus-ws-client/models/ImageFeatureNullValue.js +42 -0
  91. package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +3 -1
  92. package/dist/picteus-ws-client/models/ImageFeatureType.js +3 -1
  93. package/dist/picteus-ws-client/models/ImageFeatureValue.d.ts +21 -0
  94. package/dist/picteus-ws-client/models/ImageFeatureValue.js +55 -0
  95. package/dist/picteus-ws-client/models/ImageFormat.d.ts +2 -2
  96. package/dist/picteus-ws-client/models/ImageFormat.js +2 -2
  97. package/dist/picteus-ws-client/models/ImageMediaUrl.d.ts +1 -1
  98. package/dist/picteus-ws-client/models/ImageMediaUrl.js +1 -1
  99. package/dist/picteus-ws-client/models/ImageMetadata.d.ts +1 -1
  100. package/dist/picteus-ws-client/models/ImageMetadata.js +1 -1
  101. package/dist/picteus-ws-client/models/ImageResizeRender.d.ts +1 -1
  102. package/dist/picteus-ws-client/models/ImageResizeRender.js +1 -1
  103. package/dist/picteus-ws-client/models/ImageSummary.d.ts +1 -1
  104. package/dist/picteus-ws-client/models/ImageSummary.js +1 -1
  105. package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +1 -1
  106. package/dist/picteus-ws-client/models/ImageSummaryList.js +1 -1
  107. package/dist/picteus-ws-client/models/InstructionsPrompt.d.ts +1 -1
  108. package/dist/picteus-ws-client/models/InstructionsPrompt.js +1 -1
  109. package/dist/picteus-ws-client/models/Manifest.d.ts +1 -1
  110. package/dist/picteus-ws-client/models/Manifest.js +1 -1
  111. package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
  112. package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
  113. package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
  114. package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
  115. package/dist/picteus-ws-client/models/ManifestEvent.d.ts +1 -1
  116. package/dist/picteus-ws-client/models/ManifestEvent.js +1 -1
  117. package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
  118. package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
  119. package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
  120. package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
  121. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
  122. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
  123. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +1 -1
  124. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
  125. package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
  126. package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
  127. package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
  128. package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
  129. package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
  130. package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
  131. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
  132. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
  133. package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.d.ts +1 -1
  134. package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.js +1 -1
  135. package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
  136. package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
  137. package/dist/picteus-ws-client/models/PromptKind.d.ts +1 -1
  138. package/dist/picteus-ws-client/models/PromptKind.js +1 -1
  139. package/dist/picteus-ws-client/models/Repository.d.ts +1 -1
  140. package/dist/picteus-ws-client/models/Repository.js +1 -1
  141. package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
  142. package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
  143. package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
  144. package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
  145. package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
  146. package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
  147. package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +1 -1
  148. package/dist/picteus-ws-client/models/RepositoryStatus.js +1 -1
  149. package/dist/picteus-ws-client/models/SearchCriteria.d.ts +8 -1
  150. package/dist/picteus-ws-client/models/SearchCriteria.js +4 -1
  151. package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.d.ts +30 -0
  152. package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.js +48 -0
  153. package/dist/picteus-ws-client/models/SearchFeatureCondition.d.ts +60 -0
  154. package/dist/picteus-ws-client/models/SearchFeatureCondition.js +59 -0
  155. package/dist/picteus-ws-client/models/SearchFeatureConditionValue.d.ts +21 -0
  156. package/dist/picteus-ws-client/models/SearchFeatureConditionValue.js +55 -0
  157. package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.d.ts +26 -0
  158. package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.js +44 -0
  159. package/dist/picteus-ws-client/models/SearchFeatures.d.ts +46 -0
  160. package/dist/picteus-ws-client/models/SearchFeatures.js +51 -0
  161. package/dist/picteus-ws-client/models/SearchFilter.d.ts +47 -0
  162. package/dist/picteus-ws-client/models/SearchFilter.js +48 -0
  163. package/dist/picteus-ws-client/models/SearchFilterOrigin.d.ts +27 -0
  164. package/dist/picteus-ws-client/models/SearchFilterOrigin.js +47 -0
  165. package/dist/picteus-ws-client/models/SearchImagesOrigin.d.ts +39 -0
  166. package/dist/picteus-ws-client/models/SearchImagesOrigin.js +48 -0
  167. package/dist/picteus-ws-client/models/SearchKeyword.d.ts +2 -2
  168. package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
  169. package/dist/picteus-ws-client/models/SearchOriginNature.d.ts +25 -0
  170. package/dist/picteus-ws-client/models/SearchOriginNature.js +43 -0
  171. package/dist/picteus-ws-client/models/SearchProperties.d.ts +2 -2
  172. package/dist/picteus-ws-client/models/SearchProperties.js +1 -1
  173. package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +1 -1
  174. package/dist/picteus-ws-client/models/SearchPropertyRange.js +1 -1
  175. package/dist/picteus-ws-client/models/SearchRange.d.ts +2 -2
  176. package/dist/picteus-ws-client/models/SearchRange.js +1 -1
  177. package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.d.ts +39 -0
  178. package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.js +48 -0
  179. package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
  180. package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
  181. package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +1 -1
  182. package/dist/picteus-ws-client/models/SearchSortingProperty.js +1 -1
  183. package/dist/picteus-ws-client/models/SearchTags.d.ts +3 -3
  184. package/dist/picteus-ws-client/models/SearchTags.js +1 -1
  185. package/dist/picteus-ws-client/models/Settings.d.ts +1 -1
  186. package/dist/picteus-ws-client/models/Settings.js +1 -1
  187. package/dist/picteus-ws-client/models/Software.d.ts +24 -0
  188. package/dist/picteus-ws-client/models/Software.js +42 -0
  189. package/dist/picteus-ws-client/models/TextualPrompt.d.ts +1 -1
  190. package/dist/picteus-ws-client/models/TextualPrompt.js +1 -1
  191. package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +1 -1
  192. package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +1 -1
  193. package/dist/picteus-ws-client/models/index.d.ts +16 -0
  194. package/dist/picteus-ws-client/models/index.js +16 -0
  195. package/dist/picteus-ws-client/runtime.d.ts +1 -1
  196. package/dist/picteus-ws-client/runtime.js +1 -1
  197. package/dist/picteusExtension.d.ts +8 -4
  198. package/dist/picteusExtension.js +1 -1
  199. package/package.json +4 -4
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime.js';
15
- import { ComputedImageFormatFromJSON, ExtensionImageEmbeddingsFromJSON, ExtensionImageFeatureFromJSON, ExtensionImageTagFromJSON, ImageFromJSON, ImageDistanceFromJSON, ImageEmbeddingsFromJSON, ImageEmbeddingsToJSON, ImageFeatureToJSON, ImageMediaUrlFromJSON, ImageMetadataFromJSON, ImageSummaryListFromJSON, } from '../models/index.js';
15
+ import { ComputedImageFormatFromJSON, ExtensionImageEmbeddingsFromJSON, ExtensionImageFeatureFromJSON, ExtensionImageTagFromJSON, GenerationRecipeFromJSON, ImageFromJSON, ImageDistanceFromJSON, ImageEmbeddingsFromJSON, ImageEmbeddingsToJSON, ImageFeatureFromJSON, ImageFeatureToJSON, ImageMediaUrlFromJSON, ImageMetadataFromJSON, ImageSummaryListFromJSON, } from '../models/index.js';
16
16
  /**
17
17
  *
18
18
  */
@@ -387,6 +387,37 @@ export class ImageApi extends runtime.BaseAPI {
387
387
  const response = await this.imageGetAllFeaturesRaw(requestParameters, initOverrides);
388
388
  return await response.value();
389
389
  }
390
+ /**
391
+ * Returns the recipes of an image for all extensions.
392
+ * Gets all the recipes of an image
393
+ */
394
+ async imageGetAllRecipesRaw(requestParameters, initOverrides) {
395
+ if (requestParameters['id'] == null) {
396
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageGetAllRecipes().');
397
+ }
398
+ const queryParameters = {};
399
+ const headerParameters = {};
400
+ if (this.configuration && this.configuration.apiKey) {
401
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
402
+ }
403
+ let urlPath = `/image/{id}/getAllRecipes`;
404
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
405
+ const response = await this.request({
406
+ path: urlPath,
407
+ method: 'GET',
408
+ headers: headerParameters,
409
+ query: queryParameters,
410
+ }, initOverrides);
411
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GenerationRecipeFromJSON));
412
+ }
413
+ /**
414
+ * Returns the recipes of an image for all extensions.
415
+ * Gets all the recipes of an image
416
+ */
417
+ async imageGetAllRecipes(requestParameters, initOverrides) {
418
+ const response = await this.imageGetAllRecipesRaw(requestParameters, initOverrides);
419
+ return await response.value();
420
+ }
390
421
  /**
391
422
  * Returns the tags of an image for all extensions.
392
423
  * Gets all the tags of an image
@@ -455,6 +486,43 @@ export class ImageApi extends runtime.BaseAPI {
455
486
  const response = await this.imageGetEmbeddingsRaw(requestParameters, initOverrides);
456
487
  return await response.value();
457
488
  }
489
+ /**
490
+ * Returns the features of an image given an extension.
491
+ * Gets all the features of an image for an extension
492
+ */
493
+ async imageGetFeaturesRaw(requestParameters, initOverrides) {
494
+ if (requestParameters['id'] == null) {
495
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageGetFeatures().');
496
+ }
497
+ if (requestParameters['extensionId'] == null) {
498
+ throw new runtime.RequiredError('extensionId', 'Required parameter "extensionId" was null or undefined when calling imageGetFeatures().');
499
+ }
500
+ const queryParameters = {};
501
+ if (requestParameters['extensionId'] != null) {
502
+ queryParameters['extensionId'] = requestParameters['extensionId'];
503
+ }
504
+ const headerParameters = {};
505
+ if (this.configuration && this.configuration.apiKey) {
506
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
507
+ }
508
+ let urlPath = `/image/{id}/getFeatures`;
509
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
510
+ const response = await this.request({
511
+ path: urlPath,
512
+ method: 'GET',
513
+ headers: headerParameters,
514
+ query: queryParameters,
515
+ }, initOverrides);
516
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ImageFeatureFromJSON));
517
+ }
518
+ /**
519
+ * Returns the features of an image given an extension.
520
+ * Gets all the features of an image for an extension
521
+ */
522
+ async imageGetFeatures(requestParameters, initOverrides) {
523
+ const response = await this.imageGetFeaturesRaw(requestParameters, initOverrides);
524
+ return await response.value();
525
+ }
458
526
  /**
459
527
  * Returns all the metadata of an image available in its representation file.
460
528
  * Gets the metadata of an image
@@ -486,6 +554,43 @@ export class ImageApi extends runtime.BaseAPI {
486
554
  const response = await this.imageGetMetadataRaw(requestParameters, initOverrides);
487
555
  return await response.value();
488
556
  }
557
+ /**
558
+ * Returns the tags of an image given an extension.
559
+ * Gets the tags of an image for an extension
560
+ */
561
+ async imageGetTagsRaw(requestParameters, initOverrides) {
562
+ if (requestParameters['id'] == null) {
563
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageGetTags().');
564
+ }
565
+ if (requestParameters['extensionId'] == null) {
566
+ throw new runtime.RequiredError('extensionId', 'Required parameter "extensionId" was null or undefined when calling imageGetTags().');
567
+ }
568
+ const queryParameters = {};
569
+ if (requestParameters['extensionId'] != null) {
570
+ queryParameters['extensionId'] = requestParameters['extensionId'];
571
+ }
572
+ const headerParameters = {};
573
+ if (this.configuration && this.configuration.apiKey) {
574
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
575
+ }
576
+ let urlPath = `/image/{id}/getTags`;
577
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
578
+ const response = await this.request({
579
+ path: urlPath,
580
+ method: 'GET',
581
+ headers: headerParameters,
582
+ query: queryParameters,
583
+ }, initOverrides);
584
+ return new runtime.JSONApiResponse(response);
585
+ }
586
+ /**
587
+ * Returns the tags of an image given an extension.
588
+ * Gets the tags of an image for an extension
589
+ */
590
+ async imageGetTags(requestParameters, initOverrides) {
591
+ const response = await this.imageGetTagsRaw(requestParameters, initOverrides);
592
+ return await response.value();
593
+ }
489
594
  /**
490
595
  * Returns the URL of the image, given for some given dimensions and format, which may used to display it.
491
596
  * Gets an URL of the image
@@ -566,23 +671,20 @@ export class ImageApi extends runtime.BaseAPI {
566
671
  return await response.value();
567
672
  }
568
673
  /**
569
- * Searches images, given criteria.
674
+ * Searches for images, given criteria.
570
675
  * Searches images
571
676
  */
572
677
  async imageSearchRaw(requestParameters, initOverrides) {
573
678
  const queryParameters = {};
574
- if (requestParameters['criteria'] != null) {
575
- queryParameters['criteria'] = requestParameters['criteria'];
679
+ if (requestParameters['filter'] != null) {
680
+ queryParameters['filter'] = requestParameters['filter'];
576
681
  }
577
- if (requestParameters['sorting'] != null) {
578
- queryParameters['sorting'] = requestParameters['sorting'];
682
+ if (requestParameters['collectionId'] != null) {
683
+ queryParameters['collectionId'] = requestParameters['collectionId'];
579
684
  }
580
685
  if (requestParameters['range'] != null) {
581
686
  queryParameters['range'] = requestParameters['range'];
582
687
  }
583
- if (requestParameters['ids'] != null) {
584
- queryParameters['ids'] = requestParameters['ids'];
585
- }
586
688
  const headerParameters = {};
587
689
  if (this.configuration && this.configuration.apiKey) {
588
690
  headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
@@ -597,7 +699,7 @@ export class ImageApi extends runtime.BaseAPI {
597
699
  return new runtime.JSONApiResponse(response, (jsonValue) => ImageSummaryListFromJSON(jsonValue));
598
700
  }
599
701
  /**
600
- * Searches images, given criteria.
702
+ * Searches for images, given criteria.
601
703
  * Searches images
602
704
  */
603
705
  async imageSearch(requestParameters = {}, initOverrides) {
@@ -688,7 +790,7 @@ export class ImageApi extends runtime.BaseAPI {
688
790
  }
689
791
  /**
690
792
  * Sets the tags of an image for a given extension.
691
- * Sets the tags of an image if necessary
793
+ * Sets the tags of an image
692
794
  */
693
795
  async imageSetTagsRaw(requestParameters, initOverrides) {
694
796
  if (requestParameters['id'] == null) {
@@ -722,7 +824,7 @@ export class ImageApi extends runtime.BaseAPI {
722
824
  }
723
825
  /**
724
826
  * Sets the tags of an image for a given extension.
725
- * Sets the tags of an image if necessary
827
+ * Sets the tags of an image
726
828
  */
727
829
  async imageSetTags(requestParameters, initOverrides) {
728
830
  await this.imageSetTagsRaw(requestParameters, initOverrides);
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { ExtensionImageTag, Image, ImageSummaryList, Repository, RepositoryActivity, SearchCriteria, SearchRange, SearchSorting } from '../models/index.js';
13
+ import type { ExtensionImageFeatureName, ExtensionImageTag, Image, Repository, RepositoryActivity } from '../models/index.js';
14
14
  export interface RepositoryApiRepositoryCreateRequest {
15
15
  type: RepositoryCreateTypeEnum;
16
16
  url: string;
@@ -40,12 +40,6 @@ export interface RepositoryApiRepositoryRenameImageRequest {
40
40
  nameWithoutExtension: string;
41
41
  relativeDirectoryPath?: string;
42
42
  }
43
- export interface RepositoryApiRepositorySearchImagesRequest {
44
- id: string;
45
- criteria?: SearchCriteria;
46
- sorting?: SearchSorting;
47
- range?: SearchRange;
48
- }
49
43
  export interface RepositoryApiRepositoryStartOrStopRequest {
50
44
  isStart: boolean;
51
45
  }
@@ -149,6 +143,19 @@ export interface RepositoryApiInterface {
149
143
  * Gets a repository
150
144
  */
151
145
  repositoryGet(requestParameters: RepositoryApiRepositoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
146
+ /**
147
+ * Returns the feature names of all images extensions.
148
+ * @summary Gets all the feature names
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ * @memberof RepositoryApiInterface
152
+ */
153
+ repositoryGetFeatureNamesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ExtensionImageFeatureName>>>;
154
+ /**
155
+ * Returns the feature names of all images extensions.
156
+ * Gets all the feature names
157
+ */
158
+ repositoryGetFeatureNames(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ExtensionImageFeatureName>>;
152
159
  /**
153
160
  * Returns the details about an image.
154
161
  * @summary Gets an image from its URL
@@ -206,23 +213,6 @@ export interface RepositoryApiInterface {
206
213
  * Renames an image
207
214
  */
208
215
  repositoryRenameImage(requestParameters: RepositoryApiRepositoryRenameImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
209
- /**
210
- * Searches images within the repository with the provided criteria.
211
- * @summary Searches for images within the repository
212
- * @param {string} id The repository identifier
213
- * @param {SearchCriteria} [criteria] The criteria that will be applied to the search as a filter
214
- * @param {SearchSorting} [sorting] Indicates how the search results should be sorted
215
- * @param {SearchRange} [range] The range of items to consider following the search
216
- * @param {*} [options] Override http request option.
217
- * @throws {RequiredError}
218
- * @memberof RepositoryApiInterface
219
- */
220
- repositorySearchImagesRaw(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImageSummaryList>>;
221
- /**
222
- * Searches images within the repository with the provided criteria.
223
- * Searches for images within the repository
224
- */
225
- repositorySearchImages(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageSummaryList>;
226
216
  /**
227
217
  * Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
228
218
  * @summary Starts or stop the repositories
@@ -341,6 +331,16 @@ export declare class RepositoryApi extends runtime.BaseAPI implements Repository
341
331
  * Gets a repository
342
332
  */
343
333
  repositoryGet(requestParameters: RepositoryApiRepositoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
334
+ /**
335
+ * Returns the feature names of all images extensions.
336
+ * Gets all the feature names
337
+ */
338
+ repositoryGetFeatureNamesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ExtensionImageFeatureName>>>;
339
+ /**
340
+ * Returns the feature names of all images extensions.
341
+ * Gets all the feature names
342
+ */
343
+ repositoryGetFeatureNames(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ExtensionImageFeatureName>>;
344
344
  /**
345
345
  * Returns the details about an image.
346
346
  * Gets an image from its URL
@@ -381,16 +381,6 @@ export declare class RepositoryApi extends runtime.BaseAPI implements Repository
381
381
  * Renames an image
382
382
  */
383
383
  repositoryRenameImage(requestParameters: RepositoryApiRepositoryRenameImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
384
- /**
385
- * Searches images within the repository with the provided criteria.
386
- * Searches for images within the repository
387
- */
388
- repositorySearchImagesRaw(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImageSummaryList>>;
389
- /**
390
- * Searches images within the repository with the provided criteria.
391
- * Searches for images within the repository
392
- */
393
- repositorySearchImages(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageSummaryList>;
394
384
  /**
395
385
  * Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
396
386
  * Starts or stop the repositories
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime.js';
15
- import { ExtensionImageTagFromJSON, ImageFromJSON, ImageSummaryListFromJSON, RepositoryFromJSON, RepositoryActivityFromJSON, } from '../models/index.js';
15
+ import { ExtensionImageFeatureNameFromJSON, ExtensionImageTagFromJSON, ImageFromJSON, RepositoryFromJSON, RepositoryActivityFromJSON, } from '../models/index.js';
16
16
  /**
17
17
  *
18
18
  */
@@ -204,6 +204,33 @@ export class RepositoryApi extends runtime.BaseAPI {
204
204
  const response = await this.repositoryGetRaw(requestParameters, initOverrides);
205
205
  return await response.value();
206
206
  }
207
+ /**
208
+ * Returns the feature names of all images extensions.
209
+ * Gets all the feature names
210
+ */
211
+ async repositoryGetFeatureNamesRaw(initOverrides) {
212
+ const queryParameters = {};
213
+ const headerParameters = {};
214
+ if (this.configuration && this.configuration.apiKey) {
215
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
216
+ }
217
+ let urlPath = `/repository/featureNames`;
218
+ const response = await this.request({
219
+ path: urlPath,
220
+ method: 'GET',
221
+ headers: headerParameters,
222
+ query: queryParameters,
223
+ }, initOverrides);
224
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ExtensionImageFeatureNameFromJSON));
225
+ }
226
+ /**
227
+ * Returns the feature names of all images extensions.
228
+ * Gets all the feature names
229
+ */
230
+ async repositoryGetFeatureNames(initOverrides) {
231
+ const response = await this.repositoryGetFeatureNamesRaw(initOverrides);
232
+ return await response.value();
233
+ }
207
234
  /**
208
235
  * Returns the details about an image.
209
236
  * Gets an image from its URL
@@ -337,46 +364,6 @@ export class RepositoryApi extends runtime.BaseAPI {
337
364
  const response = await this.repositoryRenameImageRaw(requestParameters, initOverrides);
338
365
  return await response.value();
339
366
  }
340
- /**
341
- * Searches images within the repository with the provided criteria.
342
- * Searches for images within the repository
343
- */
344
- async repositorySearchImagesRaw(requestParameters, initOverrides) {
345
- if (requestParameters['id'] == null) {
346
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositorySearchImages().');
347
- }
348
- const queryParameters = {};
349
- if (requestParameters['criteria'] != null) {
350
- queryParameters['criteria'] = requestParameters['criteria'];
351
- }
352
- if (requestParameters['sorting'] != null) {
353
- queryParameters['sorting'] = requestParameters['sorting'];
354
- }
355
- if (requestParameters['range'] != null) {
356
- queryParameters['range'] = requestParameters['range'];
357
- }
358
- const headerParameters = {};
359
- if (this.configuration && this.configuration.apiKey) {
360
- headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
361
- }
362
- let urlPath = `/repository/{id}/searchImages`;
363
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
364
- const response = await this.request({
365
- path: urlPath,
366
- method: 'GET',
367
- headers: headerParameters,
368
- query: queryParameters,
369
- }, initOverrides);
370
- return new runtime.JSONApiResponse(response, (jsonValue) => ImageSummaryListFromJSON(jsonValue));
371
- }
372
- /**
373
- * Searches images within the repository with the provided criteria.
374
- * Searches for images within the repository
375
- */
376
- async repositorySearchImages(requestParameters, initOverrides) {
377
- const response = await this.repositorySearchImagesRaw(requestParameters, initOverrides);
378
- return await response.value();
379
- }
380
367
  /**
381
368
  * Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
382
369
  * Starts or stop the repositories
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,5 +1,6 @@
1
1
  export * from './AdministrationApi.js';
2
2
  export * from './ApiSecretApi.js';
3
+ export * from './CollectionApi.js';
3
4
  export * from './ExtensionApi.js';
4
5
  export * from './ImageApi.js';
5
6
  export * from './ImageAttachmentApi.js';
@@ -2,6 +2,7 @@
2
2
  /* eslint-disable */
3
3
  export * from './AdministrationApi.js';
4
4
  export * from './ApiSecretApi.js';
5
+ export * from './CollectionApi.js';
5
6
  export * from './ExtensionApi.js';
6
7
  export * from './ImageApi.js';
7
8
  export * from './ImageAttachmentApi.js';
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -11,23 +11,17 @@
11
11
  */
12
12
  import type { ApiSecretType } from './ApiSecretType.js';
13
13
  /**
14
- * Detailed information about an API secret
14
+ * Detailed information about an API secret, including its secret and its scope
15
15
  * @export
16
16
  * @interface ApiSecret
17
17
  */
18
18
  export interface ApiSecret {
19
19
  /**
20
- * The secret identifier
20
+ * The entity identifier
21
21
  * @type {number}
22
22
  * @memberof ApiSecret
23
23
  */
24
24
  id: number;
25
- /**
26
- * The secret type
27
- * @type {ApiSecretType}
28
- * @memberof ApiSecret
29
- */
30
- type: ApiSecretType;
31
25
  /**
32
26
  * The entity creation date
33
27
  * @type {number}
@@ -35,23 +29,29 @@ export interface ApiSecret {
35
29
  */
36
30
  creationDate: number;
37
31
  /**
38
- * The entity expiration date
39
- * @type {number}
40
- * @memberof ApiSecret
41
- */
42
- expirationDate?: number;
43
- /**
44
- * The secret name
32
+ * The entity name
45
33
  * @type {string}
46
34
  * @memberof ApiSecret
47
35
  */
48
36
  name: string;
49
37
  /**
50
- * The secret comment
38
+ * The entity comment
51
39
  * @type {string}
52
40
  * @memberof ApiSecret
53
41
  */
54
42
  comment?: string;
43
+ /**
44
+ * The secret type
45
+ * @type {ApiSecretType}
46
+ * @memberof ApiSecret
47
+ */
48
+ type: ApiSecretType;
49
+ /**
50
+ * The entity expiration date
51
+ * @type {number}
52
+ * @memberof ApiSecret
53
+ */
54
+ expirationDate?: number;
55
55
  /**
56
56
  * The secret scope
57
57
  * @type {string}
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.9.0
7
+ * The version of the OpenAPI document: 0.10.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,12 +18,12 @@ import { ApiSecretTypeFromJSON, ApiSecretTypeToJSON, } from './ApiSecretType.js'
18
18
  export function instanceOfApiSecret(value) {
19
19
  if (!('id' in value) || value['id'] === undefined)
20
20
  return false;
21
- if (!('type' in value) || value['type'] === undefined)
22
- return false;
23
21
  if (!('creationDate' in value) || value['creationDate'] === undefined)
24
22
  return false;
25
23
  if (!('name' in value) || value['name'] === undefined)
26
24
  return false;
25
+ if (!('type' in value) || value['type'] === undefined)
26
+ return false;
27
27
  if (!('value' in value) || value['value'] === undefined)
28
28
  return false;
29
29
  return true;
@@ -37,11 +37,11 @@ export function ApiSecretFromJSONTyped(json, ignoreDiscriminator) {
37
37
  }
38
38
  return {
39
39
  'id': json['id'],
40
- 'type': ApiSecretTypeFromJSON(json['type']),
41
40
  'creationDate': json['creationDate'],
42
- 'expirationDate': json['expirationDate'] == null ? undefined : json['expirationDate'],
43
41
  'name': json['name'],
44
42
  'comment': json['comment'] == null ? undefined : json['comment'],
43
+ 'type': ApiSecretTypeFromJSON(json['type']),
44
+ 'expirationDate': json['expirationDate'] == null ? undefined : json['expirationDate'],
45
45
  'scope': json['scope'] == null ? undefined : json['scope'],
46
46
  'value': json['value'],
47
47
  };
@@ -55,11 +55,11 @@ export function ApiSecretToJSONTyped(value, ignoreDiscriminator = false) {
55
55
  }
56
56
  return {
57
57
  'id': value['id'],
58
- 'type': ApiSecretTypeToJSON(value['type']),
59
58
  'creationDate': value['creationDate'],
60
- 'expirationDate': value['expirationDate'],
61
59
  'name': value['name'],
62
60
  'comment': value['comment'],
61
+ 'type': ApiSecretTypeToJSON(value['type']),
62
+ 'expirationDate': value['expirationDate'],
63
63
  'scope': value['scope'],
64
64
  'value': value['value'],
65
65
  };
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.9.0
5
+ * The version of the OpenAPI document: 0.10.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -11,23 +11,17 @@
11
11
  */
12
12
  import type { ApiSecretType } from './ApiSecretType.js';
13
13
  /**
14
- * Basic information about an API secret
14
+ * Basic information about an API secret, i.e. the API secret summary
15
15
  * @export
16
16
  * @interface ApiSecretSummary
17
17
  */
18
18
  export interface ApiSecretSummary {
19
19
  /**
20
- * The secret identifier
20
+ * The entity identifier
21
21
  * @type {number}
22
22
  * @memberof ApiSecretSummary
23
23
  */
24
24
  id: number;
25
- /**
26
- * The secret type
27
- * @type {ApiSecretType}
28
- * @memberof ApiSecretSummary
29
- */
30
- type: ApiSecretType;
31
25
  /**
32
26
  * The entity creation date
33
27
  * @type {number}
@@ -35,23 +29,29 @@ export interface ApiSecretSummary {
35
29
  */
36
30
  creationDate: number;
37
31
  /**
38
- * The entity expiration date
39
- * @type {number}
40
- * @memberof ApiSecretSummary
41
- */
42
- expirationDate?: number;
43
- /**
44
- * The secret name
32
+ * The entity name
45
33
  * @type {string}
46
34
  * @memberof ApiSecretSummary
47
35
  */
48
36
  name: string;
49
37
  /**
50
- * The secret comment
38
+ * The entity comment
51
39
  * @type {string}
52
40
  * @memberof ApiSecretSummary
53
41
  */
54
42
  comment?: string;
43
+ /**
44
+ * The secret type
45
+ * @type {ApiSecretType}
46
+ * @memberof ApiSecretSummary
47
+ */
48
+ type: ApiSecretType;
49
+ /**
50
+ * The entity expiration date
51
+ * @type {number}
52
+ * @memberof ApiSecretSummary
53
+ */
54
+ expirationDate?: number;
55
55
  }
56
56
  /**
57
57
  * Check if a given object implements the ApiSecretSummary interface.