@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
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.7.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 { 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
@@ -237,6 +264,33 @@ export class RepositoryApi extends runtime.BaseAPI {
237
264
  const response = await this.repositoryGetImageByUrlRaw(requestParameters, initOverrides);
238
265
  return await response.value();
239
266
  }
267
+ /**
268
+ * Returns the tags of all images extensions.
269
+ * Gets all the tags
270
+ */
271
+ async repositoryGetTagsRaw(initOverrides) {
272
+ const queryParameters = {};
273
+ const headerParameters = {};
274
+ if (this.configuration && this.configuration.apiKey) {
275
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
276
+ }
277
+ let urlPath = `/repository/tags`;
278
+ const response = await this.request({
279
+ path: urlPath,
280
+ method: 'GET',
281
+ headers: headerParameters,
282
+ query: queryParameters,
283
+ }, initOverrides);
284
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ExtensionImageTagFromJSON));
285
+ }
286
+ /**
287
+ * Returns the tags of all images extensions.
288
+ * Gets all the tags
289
+ */
290
+ async repositoryGetTags(initOverrides) {
291
+ const response = await this.repositoryGetTagsRaw(initOverrides);
292
+ return await response.value();
293
+ }
240
294
  /**
241
295
  * Lists all the declared repositories.
242
296
  * Lists repositories
@@ -310,46 +364,6 @@ export class RepositoryApi extends runtime.BaseAPI {
310
364
  const response = await this.repositoryRenameImageRaw(requestParameters, initOverrides);
311
365
  return await response.value();
312
366
  }
313
- /**
314
- * Searches images within the repository with the provided criteria.
315
- * Searches for images within the repository
316
- */
317
- async repositorySearchImagesRaw(requestParameters, initOverrides) {
318
- if (requestParameters['id'] == null) {
319
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositorySearchImages().');
320
- }
321
- const queryParameters = {};
322
- if (requestParameters['criteria'] != null) {
323
- queryParameters['criteria'] = requestParameters['criteria'];
324
- }
325
- if (requestParameters['sorting'] != null) {
326
- queryParameters['sorting'] = requestParameters['sorting'];
327
- }
328
- if (requestParameters['range'] != null) {
329
- queryParameters['range'] = requestParameters['range'];
330
- }
331
- const headerParameters = {};
332
- if (this.configuration && this.configuration.apiKey) {
333
- headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
334
- }
335
- let urlPath = `/repository/{id}/searchImages`;
336
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
337
- const response = await this.request({
338
- path: urlPath,
339
- method: 'GET',
340
- headers: headerParameters,
341
- query: queryParameters,
342
- }, initOverrides);
343
- return new runtime.JSONApiResponse(response, (jsonValue) => ImageSummaryListFromJSON(jsonValue));
344
- }
345
- /**
346
- * Searches images within the repository with the provided criteria.
347
- * Searches for images within the repository
348
- */
349
- async repositorySearchImages(requestParameters, initOverrides) {
350
- const response = await this.repositorySearchImagesRaw(requestParameters, initOverrides);
351
- return await response.value();
352
- }
353
367
  /**
354
368
  * Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
355
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.7.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.7.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.7.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.7.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.7.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.
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.7.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 instanceOfApiSecretSummary(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
  return true;
28
28
  }
29
29
  export function ApiSecretSummaryFromJSON(json) {
@@ -35,11 +35,11 @@ export function ApiSecretSummaryFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'id': json['id'],
38
- 'type': ApiSecretTypeFromJSON(json['type']),
39
38
  'creationDate': json['creationDate'],
40
- 'expirationDate': json['expirationDate'] == null ? undefined : json['expirationDate'],
41
39
  'name': json['name'],
42
40
  'comment': json['comment'] == null ? undefined : json['comment'],
41
+ 'type': ApiSecretTypeFromJSON(json['type']),
42
+ 'expirationDate': json['expirationDate'] == null ? undefined : json['expirationDate'],
43
43
  };
44
44
  }
45
45
  export function ApiSecretSummaryToJSON(json) {
@@ -51,10 +51,10 @@ export function ApiSecretSummaryToJSONTyped(value, ignoreDiscriminator = false)
51
51
  }
52
52
  return {
53
53
  'id': value['id'],
54
- 'type': ApiSecretTypeToJSON(value['type']),
55
54
  'creationDate': value['creationDate'],
56
- 'expirationDate': value['expirationDate'],
57
55
  'name': value['name'],
58
56
  'comment': value['comment'],
57
+ 'type': ApiSecretTypeToJSON(value['type']),
58
+ 'expirationDate': value['expirationDate'],
59
59
  };
60
60
  }
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.0
5
+ * The version of the OpenAPI document: 0.8.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.7.0
7
+ * The version of the OpenAPI document: 0.8.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.7.0
5
+ * The version of the OpenAPI document: 0.8.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.7.0
7
+ * The version of the OpenAPI document: 0.8.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,63 @@
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 { SearchFilter } from './SearchFilter.js';
13
+ /**
14
+ * The specifications for defining a collection of images
15
+ * @export
16
+ * @interface Collection
17
+ */
18
+ export interface Collection {
19
+ /**
20
+ * The entity identifier
21
+ * @type {number}
22
+ * @memberof Collection
23
+ */
24
+ id: number;
25
+ /**
26
+ * The entity creation date
27
+ * @type {number}
28
+ * @memberof Collection
29
+ */
30
+ creationDate: number;
31
+ /**
32
+ * The entity name
33
+ * @type {string}
34
+ * @memberof Collection
35
+ */
36
+ name: string;
37
+ /**
38
+ * The entity comment
39
+ * @type {string}
40
+ * @memberof Collection
41
+ */
42
+ comment?: string;
43
+ /**
44
+ * The entity creation date
45
+ * @type {number}
46
+ * @memberof Collection
47
+ */
48
+ modificationDate: number;
49
+ /**
50
+ * The filter which applies for the collection
51
+ * @type {SearchFilter}
52
+ * @memberof Collection
53
+ */
54
+ filter: SearchFilter;
55
+ }
56
+ /**
57
+ * Check if a given object implements the Collection interface.
58
+ */
59
+ export declare function instanceOfCollection(value: object): value is Collection;
60
+ export declare function CollectionFromJSON(json: any): Collection;
61
+ export declare function CollectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Collection;
62
+ export declare function CollectionToJSON(json: any): Collection;
63
+ export declare function CollectionToJSONTyped(value?: Collection | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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 { SearchFilterFromJSON, SearchFilterToJSON, } from './SearchFilter.js';
15
+ /**
16
+ * Check if a given object implements the Collection interface.
17
+ */
18
+ export function instanceOfCollection(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('creationDate' in value) || value['creationDate'] === undefined)
22
+ return false;
23
+ if (!('name' in value) || value['name'] === undefined)
24
+ return false;
25
+ if (!('modificationDate' in value) || value['modificationDate'] === undefined)
26
+ return false;
27
+ if (!('filter' in value) || value['filter'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function CollectionFromJSON(json) {
32
+ return CollectionFromJSONTyped(json, false);
33
+ }
34
+ export function CollectionFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'creationDate': json['creationDate'],
41
+ 'name': json['name'],
42
+ 'comment': json['comment'] == null ? undefined : json['comment'],
43
+ 'modificationDate': json['modificationDate'],
44
+ 'filter': SearchFilterFromJSON(json['filter']),
45
+ };
46
+ }
47
+ export function CollectionToJSON(json) {
48
+ return CollectionToJSONTyped(json, false);
49
+ }
50
+ export function CollectionToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'creationDate': value['creationDate'],
57
+ 'name': value['name'],
58
+ 'comment': value['comment'],
59
+ 'modificationDate': value['modificationDate'],
60
+ 'filter': SearchFilterToJSON(value['filter']),
61
+ };
62
+ }
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.7.0
5
+ * The version of the OpenAPI document: 0.8.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).