@picteus/extension-sdk 0.5.4 → 0.7.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 (175) 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 +1 -1
  5. package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +32 -1
  6. package/dist/picteus-ws-client/apis/ExtensionApi.js +42 -1
  7. package/dist/picteus-ws-client/apis/ImageApi.d.ts +1 -1
  8. package/dist/picteus-ws-client/apis/ImageApi.js +1 -1
  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/MiscellaneousApi.d.ts +1 -28
  12. package/dist/picteus-ws-client/apis/MiscellaneousApi.js +1 -32
  13. package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +36 -3
  14. package/dist/picteus-ws-client/apis/RepositoryApi.js +49 -3
  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/ApiSecret.d.ts +1 -1
  18. package/dist/picteus-ws-client/models/ApiSecret.js +1 -1
  19. package/dist/picteus-ws-client/models/ApiSecretSummary.d.ts +1 -1
  20. package/dist/picteus-ws-client/models/ApiSecretSummary.js +1 -1
  21. package/dist/picteus-ws-client/models/ApiSecretType.d.ts +1 -1
  22. package/dist/picteus-ws-client/models/ApiSecretType.js +1 -1
  23. package/dist/picteus-ws-client/models/ApplicationMetadata.d.ts +1 -1
  24. package/dist/picteus-ws-client/models/ApplicationMetadata.js +1 -1
  25. package/dist/picteus-ws-client/models/ApplicationMetadataItem.d.ts +1 -1
  26. package/dist/picteus-ws-client/models/ApplicationMetadataItem.js +1 -1
  27. package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.d.ts +1 -1
  28. package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.js +1 -1
  29. package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +1 -1
  30. package/dist/picteus-ws-client/models/Automatic1111Instruction.js +1 -1
  31. package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +1 -1
  32. package/dist/picteus-ws-client/models/Automatic1111UserComment.js +1 -1
  33. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +1 -1
  34. package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +1 -1
  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/Dates.d.ts +1 -1
  44. package/dist/picteus-ws-client/models/Dates.js +1 -1
  45. package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
  46. package/dist/picteus-ws-client/models/Extension.js +1 -1
  47. package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
  48. package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
  49. package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +1 -1
  50. package/dist/picteus-ws-client/models/ExtensionActivityKind.js +1 -1
  51. package/dist/picteus-ws-client/models/ExtensionAndManual.d.ts +1 -1
  52. package/dist/picteus-ws-client/models/ExtensionAndManual.js +1 -1
  53. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +1 -1
  54. package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
  55. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +1 -1
  56. package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
  57. package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +1 -1
  58. package/dist/picteus-ws-client/models/ExtensionImageFeature.js +1 -1
  59. package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +1 -1
  60. package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
  61. package/dist/picteus-ws-client/models/ExtensionManual.d.ts +1 -1
  62. package/dist/picteus-ws-client/models/ExtensionManual.js +1 -1
  63. package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +1 -1
  64. package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
  65. package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +1 -1
  66. package/dist/picteus-ws-client/models/ExtensionStatus.js +1 -1
  67. package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
  68. package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
  69. package/dist/picteus-ws-client/models/GenerationRecipe.d.ts +14 -1
  70. package/dist/picteus-ws-client/models/GenerationRecipe.js +11 -1
  71. package/dist/picteus-ws-client/models/GenerationRecipePrompt.d.ts +7 -2
  72. package/dist/picteus-ws-client/models/GenerationRecipePrompt.js +17 -14
  73. package/dist/picteus-ws-client/models/GenerationRecipeSchemaVersions.d.ts +32 -0
  74. package/dist/picteus-ws-client/models/GenerationRecipeSchemaVersions.js +41 -0
  75. package/dist/picteus-ws-client/models/Image.d.ts +4 -4
  76. package/dist/picteus-ws-client/models/Image.js +4 -4
  77. package/dist/picteus-ws-client/models/ImageDimensions.d.ts +1 -1
  78. package/dist/picteus-ws-client/models/ImageDimensions.js +1 -1
  79. package/dist/picteus-ws-client/models/ImageDistance.d.ts +1 -1
  80. package/dist/picteus-ws-client/models/ImageDistance.js +1 -1
  81. package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +1 -1
  82. package/dist/picteus-ws-client/models/ImageEmbeddings.js +1 -1
  83. package/dist/picteus-ws-client/models/ImageFeature.d.ts +1 -1
  84. package/dist/picteus-ws-client/models/ImageFeature.js +1 -1
  85. package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +1 -1
  86. package/dist/picteus-ws-client/models/ImageFeatureFormat.js +1 -1
  87. package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +1 -1
  88. package/dist/picteus-ws-client/models/ImageFeatureType.js +1 -1
  89. package/dist/picteus-ws-client/models/ImageFormat.d.ts +1 -1
  90. package/dist/picteus-ws-client/models/ImageFormat.js +1 -1
  91. package/dist/picteus-ws-client/models/ImageGenerator.d.ts +1 -1
  92. package/dist/picteus-ws-client/models/ImageGenerator.js +1 -1
  93. package/dist/picteus-ws-client/models/ImageMediaUrl.d.ts +1 -1
  94. package/dist/picteus-ws-client/models/ImageMediaUrl.js +1 -1
  95. package/dist/picteus-ws-client/models/ImageMetadata.d.ts +1 -1
  96. package/dist/picteus-ws-client/models/ImageMetadata.js +1 -1
  97. package/dist/picteus-ws-client/models/ImageResizeRender.d.ts +1 -1
  98. package/dist/picteus-ws-client/models/ImageResizeRender.js +1 -1
  99. package/dist/picteus-ws-client/models/ImageSummary.d.ts +1 -1
  100. package/dist/picteus-ws-client/models/ImageSummary.js +1 -1
  101. package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +1 -1
  102. package/dist/picteus-ws-client/models/ImageSummaryList.js +1 -1
  103. package/dist/picteus-ws-client/models/InstructionsPrompt.d.ts +39 -0
  104. package/dist/picteus-ws-client/models/InstructionsPrompt.js +48 -0
  105. package/dist/picteus-ws-client/models/Manifest.d.ts +1 -1
  106. package/dist/picteus-ws-client/models/Manifest.js +1 -1
  107. package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
  108. package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
  109. package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
  110. package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
  111. package/dist/picteus-ws-client/models/ManifestEvent.d.ts +1 -1
  112. package/dist/picteus-ws-client/models/ManifestEvent.js +1 -1
  113. package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
  114. package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
  115. package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
  116. package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
  117. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
  118. package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
  119. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +1 -1
  120. package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
  121. package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
  122. package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
  123. package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
  124. package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
  125. package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
  126. package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
  127. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
  128. package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
  129. package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.d.ts +1 -1
  130. package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.js +1 -1
  131. package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
  132. package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
  133. package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +1 -1
  134. package/dist/picteus-ws-client/models/MidjourneyInstructions.js +1 -1
  135. package/dist/picteus-ws-client/models/PromptKind.d.ts +25 -0
  136. package/dist/picteus-ws-client/models/PromptKind.js +43 -0
  137. package/dist/picteus-ws-client/models/Repository.d.ts +1 -1
  138. package/dist/picteus-ws-client/models/Repository.js +1 -1
  139. package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
  140. package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
  141. package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
  142. package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
  143. package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
  144. package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
  145. package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +1 -1
  146. package/dist/picteus-ws-client/models/RepositoryStatus.js +1 -1
  147. package/dist/picteus-ws-client/models/SearchCriteria.d.ts +1 -1
  148. package/dist/picteus-ws-client/models/SearchCriteria.js +1 -1
  149. package/dist/picteus-ws-client/models/SearchKeyword.d.ts +1 -1
  150. package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
  151. package/dist/picteus-ws-client/models/SearchProperties.d.ts +1 -1
  152. package/dist/picteus-ws-client/models/SearchProperties.js +1 -1
  153. package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +1 -1
  154. package/dist/picteus-ws-client/models/SearchPropertyRange.js +1 -1
  155. package/dist/picteus-ws-client/models/SearchRange.d.ts +1 -1
  156. package/dist/picteus-ws-client/models/SearchRange.js +1 -1
  157. package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
  158. package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
  159. package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +1 -1
  160. package/dist/picteus-ws-client/models/SearchSortingProperty.js +1 -1
  161. package/dist/picteus-ws-client/models/SearchTags.d.ts +1 -1
  162. package/dist/picteus-ws-client/models/SearchTags.js +1 -1
  163. package/dist/picteus-ws-client/models/Settings.d.ts +1 -1
  164. package/dist/picteus-ws-client/models/Settings.js +1 -1
  165. package/dist/picteus-ws-client/models/TextualPrompt.d.ts +9 -2
  166. package/dist/picteus-ws-client/models/TextualPrompt.js +6 -1
  167. package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +1 -1
  168. package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +1 -1
  169. package/dist/picteus-ws-client/models/index.d.ts +3 -0
  170. package/dist/picteus-ws-client/models/index.js +3 -0
  171. package/dist/picteus-ws-client/runtime.d.ts +1 -1
  172. package/dist/picteus-ws-client/runtime.js +1 -1
  173. package/dist/picteusExtension.d.ts +12 -0
  174. package/dist/picteusExtension.js +30 -1
  175. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,6 +27,11 @@ export interface ExtensionApiExtensionGetSettingsRequest {
27
27
  export interface ExtensionApiExtensionInstallRequest {
28
28
  body: Blob;
29
29
  }
30
+ export interface ExtensionApiExtensionInstallChromeExtensionRequest {
31
+ id: string;
32
+ chromeExtensionName: string;
33
+ body: Blob;
34
+ }
30
35
  export interface ExtensionApiExtensionPauseOrResumeRequest {
31
36
  id: string;
32
37
  isPause: boolean;
@@ -160,6 +165,22 @@ export interface ExtensionApiInterface {
160
165
  * Installs an extension
161
166
  */
162
167
  extensionInstall(requestParameters: ExtensionApiExtensionInstallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Extension>;
168
+ /**
169
+ * It will only work provided the server is hosted by an Electron application.
170
+ * @summary Installs a Chrome extension
171
+ * @param {string} id The extension identifier
172
+ * @param {string} chromeExtensionName The name of the Chrome extension, which should match with the content of its manifest file provided in the payload
173
+ * @param {Blob} body The Chrome extension compressed tarball or zip archive
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ * @memberof ExtensionApiInterface
177
+ */
178
+ extensionInstallChromeExtensionRaw(requestParameters: ExtensionApiExtensionInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
179
+ /**
180
+ * It will only work provided the server is hosted by an Electron application.
181
+ * Installs a Chrome extension
182
+ */
183
+ extensionInstallChromeExtension(requestParameters: ExtensionApiExtensionInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
163
184
  /**
164
185
  * Returns all installed extensions.
165
186
  * @summary Lists all extensions
@@ -354,6 +375,16 @@ export declare class ExtensionApi extends runtime.BaseAPI implements ExtensionAp
354
375
  * Installs an extension
355
376
  */
356
377
  extensionInstall(requestParameters: ExtensionApiExtensionInstallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Extension>;
378
+ /**
379
+ * It will only work provided the server is hosted by an Electron application.
380
+ * Installs a Chrome extension
381
+ */
382
+ extensionInstallChromeExtensionRaw(requestParameters: ExtensionApiExtensionInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
383
+ /**
384
+ * It will only work provided the server is hosted by an Electron application.
385
+ * Installs a Chrome extension
386
+ */
387
+ extensionInstallChromeExtension(requestParameters: ExtensionApiExtensionInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
357
388
  /**
358
389
  * Returns all installed extensions.
359
390
  * Lists all extensions
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -235,6 +235,47 @@ export class ExtensionApi extends runtime.BaseAPI {
235
235
  const response = await this.extensionInstallRaw(requestParameters, initOverrides);
236
236
  return await response.value();
237
237
  }
238
+ /**
239
+ * It will only work provided the server is hosted by an Electron application.
240
+ * Installs a Chrome extension
241
+ */
242
+ async extensionInstallChromeExtensionRaw(requestParameters, initOverrides) {
243
+ if (requestParameters['id'] == null) {
244
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionInstallChromeExtension().');
245
+ }
246
+ if (requestParameters['chromeExtensionName'] == null) {
247
+ throw new runtime.RequiredError('chromeExtensionName', 'Required parameter "chromeExtensionName" was null or undefined when calling extensionInstallChromeExtension().');
248
+ }
249
+ if (requestParameters['body'] == null) {
250
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling extensionInstallChromeExtension().');
251
+ }
252
+ const queryParameters = {};
253
+ if (requestParameters['chromeExtensionName'] != null) {
254
+ queryParameters['chromeExtensionName'] = requestParameters['chromeExtensionName'];
255
+ }
256
+ const headerParameters = {};
257
+ headerParameters['Content-Type'] = 'application/zip';
258
+ if (this.configuration && this.configuration.apiKey) {
259
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
260
+ }
261
+ let urlPath = `/extension/{id}/installChromeExtension`;
262
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
263
+ const response = await this.request({
264
+ path: urlPath,
265
+ method: 'PUT',
266
+ headers: headerParameters,
267
+ query: queryParameters,
268
+ body: requestParameters['body'],
269
+ }, initOverrides);
270
+ return new runtime.VoidApiResponse(response);
271
+ }
272
+ /**
273
+ * It will only work provided the server is hosted by an Electron application.
274
+ * Installs a Chrome extension
275
+ */
276
+ async extensionInstallChromeExtension(requestParameters, initOverrides) {
277
+ await this.extensionInstallChromeExtensionRaw(requestParameters, initOverrides);
278
+ }
238
279
  /**
239
280
  * Returns all installed extensions.
240
281
  * Lists all extensions
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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,9 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- export interface MiscellaneousApiMiscellaneousInstallChromeExtensionRequest {
14
- body: Blob;
15
- }
16
13
  /**
17
14
  * MiscellaneousApi - interface
18
15
  *
@@ -20,20 +17,6 @@ export interface MiscellaneousApiMiscellaneousInstallChromeExtensionRequest {
20
17
  * @interface MiscellaneousApiInterface
21
18
  */
22
19
  export interface MiscellaneousApiInterface {
23
- /**
24
- * It will only work provided the server is hosted by an Electron application.
25
- * @summary Installs a Chrome extension
26
- * @param {Blob} body The Chrome extension compressed tarball or zip archive
27
- * @param {*} [options] Override http request option.
28
- * @throws {RequiredError}
29
- * @memberof MiscellaneousApiInterface
30
- */
31
- miscellaneousInstallChromeExtensionRaw(requestParameters: MiscellaneousApiMiscellaneousInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
32
- /**
33
- * It will only work provided the server is hosted by an Electron application.
34
- * Installs a Chrome extension
35
- */
36
- miscellaneousInstallChromeExtension(requestParameters: MiscellaneousApiMiscellaneousInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
37
20
  /**
38
21
  * Enables to check that the service is accessible.
39
22
  * @summary Pings the service
@@ -65,16 +48,6 @@ export interface MiscellaneousApiInterface {
65
48
  *
66
49
  */
67
50
  export declare class MiscellaneousApi extends runtime.BaseAPI implements MiscellaneousApiInterface {
68
- /**
69
- * It will only work provided the server is hosted by an Electron application.
70
- * Installs a Chrome extension
71
- */
72
- miscellaneousInstallChromeExtensionRaw(requestParameters: MiscellaneousApiMiscellaneousInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
73
- /**
74
- * It will only work provided the server is hosted by an Electron application.
75
- * Installs a Chrome extension
76
- */
77
- miscellaneousInstallChromeExtension(requestParameters: MiscellaneousApiMiscellaneousInstallChromeExtensionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
78
51
  /**
79
52
  * Enables to check that the service is accessible.
80
53
  * Pings the service
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,37 +16,6 @@ import * as runtime from '../runtime.js';
16
16
  *
17
17
  */
18
18
  export class MiscellaneousApi extends runtime.BaseAPI {
19
- /**
20
- * It will only work provided the server is hosted by an Electron application.
21
- * Installs a Chrome extension
22
- */
23
- async miscellaneousInstallChromeExtensionRaw(requestParameters, initOverrides) {
24
- if (requestParameters['body'] == null) {
25
- throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling miscellaneousInstallChromeExtension().');
26
- }
27
- const queryParameters = {};
28
- const headerParameters = {};
29
- headerParameters['Content-Type'] = 'application/zip';
30
- if (this.configuration && this.configuration.apiKey) {
31
- headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
32
- }
33
- let urlPath = `/miscellaneous/installChromeExtension`;
34
- const response = await this.request({
35
- path: urlPath,
36
- method: 'PUT',
37
- headers: headerParameters,
38
- query: queryParameters,
39
- body: requestParameters['body'],
40
- }, initOverrides);
41
- return new runtime.VoidApiResponse(response);
42
- }
43
- /**
44
- * It will only work provided the server is hosted by an Electron application.
45
- * Installs a Chrome extension
46
- */
47
- async miscellaneousInstallChromeExtension(requestParameters, initOverrides) {
48
- await this.miscellaneousInstallChromeExtensionRaw(requestParameters, initOverrides);
49
- }
50
19
  /**
51
20
  * Enables to check that the service is accessible.
52
21
  * Pings the service
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,6 +34,12 @@ export interface RepositoryApiRepositoryGetRequest {
34
34
  export interface RepositoryApiRepositoryGetImageByUrlRequest {
35
35
  url: string;
36
36
  }
37
+ export interface RepositoryApiRepositoryRenameImageRequest {
38
+ id: string;
39
+ imageId: string;
40
+ nameWithoutExtension: string;
41
+ relativeDirectoryPath?: string;
42
+ }
37
43
  export interface RepositoryApiRepositorySearchImagesRequest {
38
44
  id: string;
39
45
  criteria?: SearchCriteria;
@@ -49,7 +55,7 @@ export interface RepositoryApiRepositoryStoreImageRequest {
49
55
  sourceUrl?: string;
50
56
  parentId?: string;
51
57
  applicationMetadata?: string;
52
- directoryPath?: string;
58
+ relativeDirectoryPath?: string;
53
59
  nameWithoutExtension?: string;
54
60
  }
55
61
  export interface RepositoryApiRepositorySynchronizeRequest {
@@ -170,6 +176,23 @@ export interface RepositoryApiInterface {
170
176
  * Lists repositories
171
177
  */
172
178
  repositoryList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Repository>>;
179
+ /**
180
+ * Renames the file of an image in a repository.
181
+ * @summary Renames an image
182
+ * @param {string} id The repository identifier
183
+ * @param {string} imageId The image identifier
184
+ * @param {string} nameWithoutExtension The new file name without the file extension
185
+ * @param {string} [relativeDirectoryPath] The relative directory path within the repository that will host the image
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ * @memberof RepositoryApiInterface
189
+ */
190
+ repositoryRenameImageRaw(requestParameters: RepositoryApiRepositoryRenameImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Image>>;
191
+ /**
192
+ * Renames the file of an image in a repository.
193
+ * Renames an image
194
+ */
195
+ repositoryRenameImage(requestParameters: RepositoryApiRepositoryRenameImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
173
196
  /**
174
197
  * Searches images within the repository with the provided criteria.
175
198
  * @summary Searches for images within the repository
@@ -209,7 +232,7 @@ export interface RepositoryApiInterface {
209
232
  * @param {string} [sourceUrl] The URL of the image source
210
233
  * @param {string} [parentId] The identifier of the image parent image
211
234
  * @param {string} [applicationMetadata] The JSON string representing the application metadata
212
- * @param {string} [directoryPath] The relative directory path within the repository that will host the image
235
+ * @param {string} [relativeDirectoryPath] The relative directory path within the repository that will host the image
213
236
  * @param {string} [nameWithoutExtension] The image file name, without its extension
214
237
  * @param {*} [options] Override http request option.
215
238
  * @throws {RequiredError}
@@ -325,6 +348,16 @@ export declare class RepositoryApi extends runtime.BaseAPI implements Repository
325
348
  * Lists repositories
326
349
  */
327
350
  repositoryList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Repository>>;
351
+ /**
352
+ * Renames the file of an image in a repository.
353
+ * Renames an image
354
+ */
355
+ repositoryRenameImageRaw(requestParameters: RepositoryApiRepositoryRenameImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Image>>;
356
+ /**
357
+ * Renames the file of an image in a repository.
358
+ * Renames an image
359
+ */
360
+ repositoryRenameImage(requestParameters: RepositoryApiRepositoryRenameImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
328
361
  /**
329
362
  * Searches images within the repository with the provided criteria.
330
363
  * Searches for images within the repository
@@ -4,7 +4,7 @@
4
4
  * Picteus
5
5
  * The Picteus API
6
6
  *
7
- * The version of the OpenAPI document: 0.5.4
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: edouard@koppasoft.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -264,6 +264,52 @@ export class RepositoryApi extends runtime.BaseAPI {
264
264
  const response = await this.repositoryListRaw(initOverrides);
265
265
  return await response.value();
266
266
  }
267
+ /**
268
+ * Renames the file of an image in a repository.
269
+ * Renames an image
270
+ */
271
+ async repositoryRenameImageRaw(requestParameters, initOverrides) {
272
+ if (requestParameters['id'] == null) {
273
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositoryRenameImage().');
274
+ }
275
+ if (requestParameters['imageId'] == null) {
276
+ throw new runtime.RequiredError('imageId', 'Required parameter "imageId" was null or undefined when calling repositoryRenameImage().');
277
+ }
278
+ if (requestParameters['nameWithoutExtension'] == null) {
279
+ throw new runtime.RequiredError('nameWithoutExtension', 'Required parameter "nameWithoutExtension" was null or undefined when calling repositoryRenameImage().');
280
+ }
281
+ const queryParameters = {};
282
+ if (requestParameters['imageId'] != null) {
283
+ queryParameters['imageId'] = requestParameters['imageId'];
284
+ }
285
+ if (requestParameters['nameWithoutExtension'] != null) {
286
+ queryParameters['nameWithoutExtension'] = requestParameters['nameWithoutExtension'];
287
+ }
288
+ if (requestParameters['relativeDirectoryPath'] != null) {
289
+ queryParameters['relativeDirectoryPath'] = requestParameters['relativeDirectoryPath'];
290
+ }
291
+ const headerParameters = {};
292
+ if (this.configuration && this.configuration.apiKey) {
293
+ headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
294
+ }
295
+ let urlPath = `/repository/{id}/renameImage`;
296
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
297
+ const response = await this.request({
298
+ path: urlPath,
299
+ method: 'PUT',
300
+ headers: headerParameters,
301
+ query: queryParameters,
302
+ }, initOverrides);
303
+ return new runtime.JSONApiResponse(response, (jsonValue) => ImageFromJSON(jsonValue));
304
+ }
305
+ /**
306
+ * Renames the file of an image in a repository.
307
+ * Renames an image
308
+ */
309
+ async repositoryRenameImage(requestParameters, initOverrides) {
310
+ const response = await this.repositoryRenameImageRaw(requestParameters, initOverrides);
311
+ return await response.value();
312
+ }
267
313
  /**
268
314
  * Searches images within the repository with the provided criteria.
269
315
  * Searches for images within the repository
@@ -357,8 +403,8 @@ export class RepositoryApi extends runtime.BaseAPI {
357
403
  if (requestParameters['applicationMetadata'] != null) {
358
404
  queryParameters['applicationMetadata'] = requestParameters['applicationMetadata'];
359
405
  }
360
- if (requestParameters['directoryPath'] != null) {
361
- queryParameters['directoryPath'] = requestParameters['directoryPath'];
406
+ if (requestParameters['relativeDirectoryPath'] != null) {
407
+ queryParameters['relativeDirectoryPath'] = requestParameters['relativeDirectoryPath'];
362
408
  }
363
409
  if (requestParameters['nameWithoutExtension'] != null) {
364
410
  queryParameters['nameWithoutExtension'] = requestParameters['nameWithoutExtension'];
@@ -2,7 +2,7 @@
2
2
  * Picteus
3
3
  * The Picteus API
4
4
  *
5
- * The version of the OpenAPI document: 0.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.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.5.4
7
+ * The version of the OpenAPI document: 0.7.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.5.4
5
+ * The version of the OpenAPI document: 0.7.0
6
6
  * Contact: edouard@koppasoft.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).