@picteus/extension-sdk 0.2.5 → 0.3.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 (133) 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/ExperimentApi.d.ts +1 -1
  4. package/dist/picteus-ws-client/apis/ExperimentApi.js +1 -1
  5. package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +1 -1
  6. package/dist/picteus-ws-client/apis/ExtensionApi.js +1 -1
  7. package/dist/picteus-ws-client/apis/ImageApi.d.ts +53 -4
  8. package/dist/picteus-ws-client/apis/ImageApi.js +62 -5
  9. package/dist/picteus-ws-client/apis/ImageAttachmentApi.d.ts +1 -1
  10. package/dist/picteus-ws-client/apis/ImageAttachmentApi.js +1 -1
  11. package/dist/picteus-ws-client/apis/PingApi.d.ts +1 -1
  12. package/dist/picteus-ws-client/apis/PingApi.js +1 -1
  13. package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +1 -1
  14. package/dist/picteus-ws-client/apis/RepositoryApi.js +1 -1
  15. package/dist/picteus-ws-client/apis/SettingsApi.d.ts +1 -1
  16. package/dist/picteus-ws-client/apis/SettingsApi.js +1 -1
  17. package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +1 -1
  18. package/dist/picteus-ws-client/models/Automatic1111Instruction.js +1 -1
  19. package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +1 -1
  20. package/dist/picteus-ws-client/models/Automatic1111UserComment.js +1 -1
  21. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +1 -1
  22. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +1 -1
  23. package/dist/picteus-ws-client/models/CommandEntity.d.ts +1 -1
  24. package/dist/picteus-ws-client/models/CommandEntity.js +1 -1
  25. package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +1 -1
  26. package/dist/picteus-ws-client/models/ConfigurationCapability.js +1 -1
  27. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +1 -1
  28. package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +1 -1
  29. package/dist/picteus-ws-client/models/Dates.d.ts +1 -1
  30. package/dist/picteus-ws-client/models/Dates.js +1 -1
  31. package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
  32. package/dist/picteus-ws-client/models/Extension.js +1 -1
  33. package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
  34. package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
  35. package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +1 -1
  36. package/dist/picteus-ws-client/models/ExtensionActivityKind.js +1 -1
  37. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +1 -1
  38. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
  39. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +1 -1
  40. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
  41. package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +1 -1
  42. package/dist/picteus-ws-client/models/ExtensionImageFeature.js +1 -1
  43. package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +1 -1
  44. package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
  45. package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +1 -1
  46. package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
  47. package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +1 -1
  48. package/dist/picteus-ws-client/models/ExtensionStatus.js +1 -1
  49. package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
  50. package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
  51. package/dist/picteus-ws-client/models/Image.d.ts +1 -1
  52. package/dist/picteus-ws-client/models/Image.js +1 -1
  53. package/dist/picteus-ws-client/models/ImageDimensions.d.ts +1 -1
  54. package/dist/picteus-ws-client/models/ImageDimensions.js +1 -1
  55. package/dist/picteus-ws-client/models/ImageDistance.d.ts +1 -1
  56. package/dist/picteus-ws-client/models/ImageDistance.js +1 -1
  57. package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +1 -1
  58. package/dist/picteus-ws-client/models/ImageEmbeddings.js +1 -1
  59. package/dist/picteus-ws-client/models/ImageFeature.d.ts +1 -1
  60. package/dist/picteus-ws-client/models/ImageFeature.js +1 -1
  61. package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +1 -1
  62. package/dist/picteus-ws-client/models/ImageFeatureFormat.js +1 -1
  63. package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +1 -1
  64. package/dist/picteus-ws-client/models/ImageFeatureType.js +1 -1
  65. package/dist/picteus-ws-client/models/ImageFormat.d.ts +1 -1
  66. package/dist/picteus-ws-client/models/ImageFormat.js +1 -1
  67. package/dist/picteus-ws-client/models/ImageGenerator.d.ts +1 -1
  68. package/dist/picteus-ws-client/models/ImageGenerator.js +1 -1
  69. package/dist/picteus-ws-client/models/ImageMediaUrl.d.ts +38 -0
  70. package/dist/picteus-ws-client/models/ImageMediaUrl.js +47 -0
  71. package/dist/picteus-ws-client/models/ImageMetadata.d.ts +1 -1
  72. package/dist/picteus-ws-client/models/ImageMetadata.js +1 -1
  73. package/dist/picteus-ws-client/models/ImageSummary.d.ts +1 -1
  74. package/dist/picteus-ws-client/models/ImageSummary.js +1 -1
  75. package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +1 -1
  76. package/dist/picteus-ws-client/models/ImageSummaryList.js +1 -1
  77. package/dist/picteus-ws-client/models/Manifest.d.ts +1 -1
  78. package/dist/picteus-ws-client/models/Manifest.js +1 -1
  79. package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
  80. package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
  81. package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
  82. package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
  83. package/dist/picteus-ws-client/models/ManifestEvent.d.ts +1 -1
  84. package/dist/picteus-ws-client/models/ManifestEvent.js +1 -1
  85. package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
  86. package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
  87. package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
  88. package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
  89. package/dist/picteus-ws-client/models/ManifestExtensionCommandLabel.d.ts +1 -1
  90. package/dist/picteus-ws-client/models/ManifestExtensionCommandLabel.js +1 -1
  91. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
  92. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
  93. package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
  94. package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
  95. package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
  96. package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
  97. package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
  98. package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
  99. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
  100. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
  101. package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
  102. package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
  103. package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +1 -1
  104. package/dist/picteus-ws-client/models/MidjourneyInstructions.js +1 -1
  105. package/dist/picteus-ws-client/models/Repository.d.ts +1 -1
  106. package/dist/picteus-ws-client/models/Repository.js +1 -1
  107. package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
  108. package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
  109. package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
  110. package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
  111. package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
  112. package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
  113. package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +1 -1
  114. package/dist/picteus-ws-client/models/RepositoryStatus.js +1 -1
  115. package/dist/picteus-ws-client/models/SearchCriteria.d.ts +1 -1
  116. package/dist/picteus-ws-client/models/SearchCriteria.js +1 -1
  117. package/dist/picteus-ws-client/models/SearchKeyword.d.ts +1 -1
  118. package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
  119. package/dist/picteus-ws-client/models/SearchRange.d.ts +1 -1
  120. package/dist/picteus-ws-client/models/SearchRange.js +1 -1
  121. package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
  122. package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
  123. package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +1 -1
  124. package/dist/picteus-ws-client/models/SearchSortingProperty.js +1 -1
  125. package/dist/picteus-ws-client/models/Settings.d.ts +1 -1
  126. package/dist/picteus-ws-client/models/Settings.js +1 -1
  127. package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +1 -1
  128. package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +1 -1
  129. package/dist/picteus-ws-client/models/index.d.ts +1 -0
  130. package/dist/picteus-ws-client/models/index.js +1 -0
  131. package/dist/picteus-ws-client/runtime.d.ts +1 -1
  132. package/dist/picteus-ws-client/runtime.js +1 -1
  133. package/package.json +2 -2
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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 { Automatic1111UserComment, ComfyUiPromptAndWorkflow, ExtensionImageEmbeddings, ExtensionImageFeature, ExtensionImageTag, Image, ImageDistance, ImageEmbeddings, ImageFeature, ImageSummaryList, MidjourneyInstructions, SearchCriteria, SearchRange, SearchSorting } from '../models/index.js';
13
+ import type { Automatic1111UserComment, ComfyUiPromptAndWorkflow, ExtensionImageEmbeddings, ExtensionImageFeature, ExtensionImageTag, Image, ImageDistance, ImageEmbeddings, ImageFeature, ImageMediaUrl, ImageSummaryList, MidjourneyInstructions, SearchCriteria, SearchRange, SearchSorting } from '../models/index.js';
14
14
  export interface ImageApiImageClosestEmbeddingsImagesRequest {
15
15
  extensionId: string;
16
16
  count: number;
@@ -23,8 +23,10 @@ export interface ImageApiImageClosestImagesRequest {
23
23
  }
24
24
  export interface ImageApiImageDownloadRequest {
25
25
  id: string;
26
- stripMetadata?: boolean;
27
26
  format?: ImageDownloadFormatEnum;
27
+ width?: number;
28
+ height?: number;
29
+ stripMetadata?: boolean;
28
30
  }
29
31
  export interface ImageApiImageEnsureTagsRequest {
30
32
  id: string;
@@ -56,6 +58,12 @@ export interface ImageApiImageGetEmbeddingsRequest {
56
58
  export interface ImageApiImageGetMidjourneyRequest {
57
59
  id: string;
58
60
  }
61
+ export interface ImageApiImageMediaUrlRequest {
62
+ id: string;
63
+ format?: ImageMediaUrlFormatEnum;
64
+ width?: number;
65
+ height?: number;
66
+ }
59
67
  export interface ImageApiImageModifyRequest {
60
68
  id: string;
61
69
  body: Blob;
@@ -132,8 +140,10 @@ export interface ImageApiInterface {
132
140
  * Returns the binary form of an image.
133
141
  * @summary Downloads an image
134
142
  * @param {string} id The image identifier
135
- * @param {boolean} [stripMetadata] Whether the image metadata should be stripped
136
143
  * @param {'PNG' | 'JPEG' | 'WEBP' | 'GIF' | 'AVIF' | 'HEIF'} [format] The image format
144
+ * @param {number} [width] The image maximum width ; if not defined, the original width is used
145
+ * @param {number} [height] The image maximum height ; if not defined, the original height is used
146
+ * @param {boolean} [stripMetadata] Whether the image metadata should be stripped
137
147
  * @param {*} [options] Override http request option.
138
148
  * @throws {RequiredError}
139
149
  * @memberof ImageApiInterface
@@ -273,6 +283,23 @@ export interface ImageApiInterface {
273
283
  * Gets the Midjourney instructions
274
284
  */
275
285
  imageGetMidjourney(requestParameters: ImageApiImageGetMidjourneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MidjourneyInstructions>;
286
+ /**
287
+ * Returns the URL of the image, given for some given dimensions and format, which may used to display it.
288
+ * @summary Gets an URL of the image
289
+ * @param {string} id The image identifier
290
+ * @param {'PNG' | 'JPEG' | 'WEBP' | 'GIF' | 'AVIF' | 'HEIF'} [format] The image format
291
+ * @param {number} [width] The image maximum width ; if not defined, the original width is used
292
+ * @param {number} [height] The image maximum height ; if not defined, the original height is used
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ * @memberof ImageApiInterface
296
+ */
297
+ imageMediaUrlRaw(requestParameters: ImageApiImageMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImageMediaUrl>>;
298
+ /**
299
+ * Returns the URL of the image, given for some given dimensions and format, which may used to display it.
300
+ * Gets an URL of the image
301
+ */
302
+ imageMediaUrl(requestParameters: ImageApiImageMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageMediaUrl>;
276
303
  /**
277
304
  * Updates the content of an image via a file.
278
305
  * @summary Modifies an image
@@ -508,6 +535,16 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
508
535
  * Gets the Midjourney instructions
509
536
  */
510
537
  imageGetMidjourney(requestParameters: ImageApiImageGetMidjourneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MidjourneyInstructions>;
538
+ /**
539
+ * Returns the URL of the image, given for some given dimensions and format, which may used to display it.
540
+ * Gets an URL of the image
541
+ */
542
+ imageMediaUrlRaw(requestParameters: ImageApiImageMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImageMediaUrl>>;
543
+ /**
544
+ * Returns the URL of the image, given for some given dimensions and format, which may used to display it.
545
+ * Gets an URL of the image
546
+ */
547
+ imageMediaUrl(requestParameters: ImageApiImageMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageMediaUrl>;
511
548
  /**
512
549
  * Updates the content of an image via a file.
513
550
  * Modifies an image
@@ -591,3 +628,15 @@ export declare const ImageDownloadFormatEnum: {
591
628
  readonly Heif: "HEIF";
592
629
  };
593
630
  export type ImageDownloadFormatEnum = typeof ImageDownloadFormatEnum[keyof typeof ImageDownloadFormatEnum];
631
+ /**
632
+ * @export
633
+ */
634
+ export declare const ImageMediaUrlFormatEnum: {
635
+ readonly Png: "PNG";
636
+ readonly Jpeg: "JPEG";
637
+ readonly Webp: "WEBP";
638
+ readonly Gif: "GIF";
639
+ readonly Avif: "AVIF";
640
+ readonly Heif: "HEIF";
641
+ };
642
+ export type ImageMediaUrlFormatEnum = typeof ImageMediaUrlFormatEnum[keyof typeof ImageMediaUrlFormatEnum];
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.2.6
7
+ * The version of the OpenAPI document: 0.3.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 { Automatic1111UserCommentFromJSON, ComfyUiPromptAndWorkflowFromJSON, ExtensionImageEmbeddingsFromJSON, ExtensionImageFeatureFromJSON, ExtensionImageTagFromJSON, ImageFromJSON, ImageDistanceFromJSON, ImageEmbeddingsFromJSON, ImageEmbeddingsToJSON, ImageFeatureToJSON, ImageSummaryListFromJSON, MidjourneyInstructionsFromJSON, } from '../models/index.js';
15
+ import { Automatic1111UserCommentFromJSON, ComfyUiPromptAndWorkflowFromJSON, ExtensionImageEmbeddingsFromJSON, ExtensionImageFeatureFromJSON, ExtensionImageTagFromJSON, ImageFromJSON, ImageDistanceFromJSON, ImageEmbeddingsFromJSON, ImageEmbeddingsToJSON, ImageFeatureToJSON, ImageMediaUrlFromJSON, ImageSummaryListFromJSON, MidjourneyInstructionsFromJSON, } from '../models/index.js';
16
16
  /**
17
17
  *
18
18
  */
@@ -113,12 +113,18 @@ export class ImageApi extends runtime.BaseAPI {
113
113
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageDownload().');
114
114
  }
115
115
  const queryParameters = {};
116
- if (requestParameters['stripMetadata'] != null) {
117
- queryParameters['stripMetadata'] = requestParameters['stripMetadata'];
118
- }
119
116
  if (requestParameters['format'] != null) {
120
117
  queryParameters['format'] = requestParameters['format'];
121
118
  }
119
+ if (requestParameters['width'] != null) {
120
+ queryParameters['width'] = requestParameters['width'];
121
+ }
122
+ if (requestParameters['height'] != null) {
123
+ queryParameters['height'] = requestParameters['height'];
124
+ }
125
+ if (requestParameters['stripMetadata'] != null) {
126
+ queryParameters['stripMetadata'] = requestParameters['stripMetadata'];
127
+ }
122
128
  const headerParameters = {};
123
129
  if (this.configuration && this.configuration.apiKey) {
124
130
  headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
@@ -436,6 +442,46 @@ export class ImageApi extends runtime.BaseAPI {
436
442
  const response = await this.imageGetMidjourneyRaw(requestParameters, initOverrides);
437
443
  return await response.value();
438
444
  }
445
+ /**
446
+ * Returns the URL of the image, given for some given dimensions and format, which may used to display it.
447
+ * Gets an URL of the image
448
+ */
449
+ async imageMediaUrlRaw(requestParameters, initOverrides) {
450
+ if (requestParameters['id'] == null) {
451
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageMediaUrl().');
452
+ }
453
+ const queryParameters = {};
454
+ if (requestParameters['format'] != null) {
455
+ queryParameters['format'] = requestParameters['format'];
456
+ }
457
+ if (requestParameters['width'] != null) {
458
+ queryParameters['width'] = requestParameters['width'];
459
+ }
460
+ if (requestParameters['height'] != null) {
461
+ queryParameters['height'] = requestParameters['height'];
462
+ }
463
+ const headerParameters = {};
464
+ if (this.configuration && this.configuration.apiKey) {
465
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
466
+ }
467
+ let urlPath = `/image/{id}/mediaUrl`;
468
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
469
+ const response = await this.request({
470
+ path: urlPath,
471
+ method: 'GET',
472
+ headers: headerParameters,
473
+ query: queryParameters,
474
+ }, initOverrides);
475
+ return new runtime.JSONApiResponse(response, (jsonValue) => ImageMediaUrlFromJSON(jsonValue));
476
+ }
477
+ /**
478
+ * Returns the URL of the image, given for some given dimensions and format, which may used to display it.
479
+ * Gets an URL of the image
480
+ */
481
+ async imageMediaUrl(requestParameters, initOverrides) {
482
+ const response = await this.imageMediaUrlRaw(requestParameters, initOverrides);
483
+ return await response.value();
484
+ }
439
485
  /**
440
486
  * Updates the content of an image via a file.
441
487
  * Modifies an image
@@ -727,3 +773,14 @@ export const ImageDownloadFormatEnum = {
727
773
  Avif: 'AVIF',
728
774
  Heif: 'HEIF'
729
775
  };
776
+ /**
777
+ * @export
778
+ */
779
+ export const ImageMediaUrlFormatEnum = {
780
+ Png: 'PNG',
781
+ Jpeg: 'JPEG',
782
+ Webp: 'WEBP',
783
+ Gif: 'GIF',
784
+ Avif: 'AVIF',
785
+ Heif: 'HEIF'
786
+ };
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.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.2.6
7
+ * The version of the OpenAPI document: 0.3.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.2.6
5
+ * The version of the OpenAPI document: 0.3.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).