@picteus/extension-sdk 0.3.3 → 0.3.4
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.
- package/dist/picteus-ws-client/apis/AdministrationApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/AdministrationApi.js +1 -1
- package/dist/picteus-ws-client/apis/ExperimentApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/ExperimentApi.js +1 -1
- package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/ExtensionApi.js +1 -1
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +68 -30
- package/dist/picteus-ws-client/apis/ImageApi.js +81 -24
- package/dist/picteus-ws-client/apis/ImageAttachmentApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/ImageAttachmentApi.js +1 -1
- package/dist/picteus-ws-client/apis/PingApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/PingApi.js +1 -1
- package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/RepositoryApi.js +1 -1
- package/dist/picteus-ws-client/apis/SettingsApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/SettingsApi.js +1 -1
- package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +1 -1
- package/dist/picteus-ws-client/models/Automatic1111Instruction.js +1 -1
- package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +1 -1
- package/dist/picteus-ws-client/models/Automatic1111UserComment.js +1 -1
- package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +1 -1
- package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +1 -1
- package/dist/picteus-ws-client/models/CommandEntity.d.ts +1 -1
- package/dist/picteus-ws-client/models/CommandEntity.js +1 -1
- package/dist/picteus-ws-client/models/ComputedImageFormat.d.ts +33 -0
- package/dist/picteus-ws-client/models/ComputedImageFormat.js +44 -0
- package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ConfigurationCapability.js +1 -1
- package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +1 -1
- package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +1 -1
- package/dist/picteus-ws-client/models/Dates.d.ts +1 -1
- package/dist/picteus-ws-client/models/Dates.js +1 -1
- package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
- package/dist/picteus-ws-client/models/Extension.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivityKind.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionAndManual.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionAndManual.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeature.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionManual.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionManual.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionStatus.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
- package/dist/picteus-ws-client/models/Image.d.ts +7 -1
- package/dist/picteus-ws-client/models/Image.js +5 -1
- package/dist/picteus-ws-client/models/ImageDimensions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageDimensions.js +1 -1
- package/dist/picteus-ws-client/models/ImageDistance.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageDistance.js +1 -1
- package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageEmbeddings.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeature.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeature.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +2 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.js +2 -1
- package/dist/picteus-ws-client/models/ImageFormat.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFormat.js +1 -1
- package/dist/picteus-ws-client/models/ImageGenerator.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageGenerator.js +1 -1
- package/dist/picteus-ws-client/models/ImageMediaUrl.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageMediaUrl.js +1 -1
- package/dist/picteus-ws-client/models/ImageMetadata.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageMetadata.js +1 -1
- package/dist/picteus-ws-client/models/ImageResizeRender.d.ts +25 -0
- package/dist/picteus-ws-client/models/ImageResizeRender.js +43 -0
- package/dist/picteus-ws-client/models/ImageSummary.d.ts +7 -1
- package/dist/picteus-ws-client/models/ImageSummary.js +5 -1
- package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageSummaryList.js +1 -1
- package/dist/picteus-ws-client/models/Manifest.d.ts +1 -1
- package/dist/picteus-ws-client/models/Manifest.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
- package/dist/picteus-ws-client/models/ManifestEvent.d.ts +2 -1
- package/dist/picteus-ws-client/models/ManifestEvent.js +2 -1
- package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +6 -6
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +6 -8
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +44 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +51 -0
- package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
- package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
- package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +1 -1
- package/dist/picteus-ws-client/models/MidjourneyInstructions.js +1 -1
- package/dist/picteus-ws-client/models/Repository.d.ts +1 -1
- package/dist/picteus-ws-client/models/Repository.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryStatus.js +1 -1
- package/dist/picteus-ws-client/models/SearchCriteria.d.ts +16 -2
- package/dist/picteus-ws-client/models/SearchCriteria.js +7 -1
- package/dist/picteus-ws-client/models/SearchKeyword.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
- package/dist/picteus-ws-client/models/SearchProperties.d.ts +57 -0
- package/dist/picteus-ws-client/models/SearchProperties.js +50 -0
- package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +38 -0
- package/dist/picteus-ws-client/models/SearchPropertyRange.js +43 -0
- package/dist/picteus-ws-client/models/SearchRange.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchRange.js +1 -1
- package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
- package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchSortingProperty.js +1 -1
- package/dist/picteus-ws-client/models/SearchTags.d.ts +32 -0
- package/dist/picteus-ws-client/models/SearchTags.js +43 -0
- package/dist/picteus-ws-client/models/Settings.d.ts +1 -1
- package/dist/picteus-ws-client/models/Settings.js +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +1 -1
- package/dist/picteus-ws-client/models/index.d.ts +6 -1
- package/dist/picteus-ws-client/models/index.js +6 -1
- package/dist/picteus-ws-client/runtime.d.ts +1 -1
- package/dist/picteus-ws-client/runtime.js +1 -1
- package/dist/picteusExtension.d.ts +4 -2
- package/dist/picteusExtension.js +24 -8
- 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.3.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.5
|
|
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, ImageMediaUrl, ImageSummaryList, MidjourneyInstructions, SearchCriteria, SearchRange, SearchSorting } from '../models/index.js';
|
|
13
|
+
import type { Automatic1111UserComment, ComfyUiPromptAndWorkflow, ComputedImageFormat, ExtensionImageEmbeddings, ExtensionImageFeature, ExtensionImageTag, Image, ImageDistance, ImageEmbeddings, ImageFeature, ImageFormat, ImageMediaUrl, ImageResizeRender, ImageSummaryList, MidjourneyInstructions, SearchCriteria, SearchRange, SearchSorting } from '../models/index.js';
|
|
14
14
|
export interface ImageApiImageClosestEmbeddingsImagesRequest {
|
|
15
15
|
extensionId: string;
|
|
16
16
|
count: number;
|
|
@@ -21,11 +21,20 @@ export interface ImageApiImageClosestImagesRequest {
|
|
|
21
21
|
extensionId: string;
|
|
22
22
|
count: number;
|
|
23
23
|
}
|
|
24
|
+
export interface ImageApiImageComputeFormatRequest {
|
|
25
|
+
body: Blob;
|
|
26
|
+
}
|
|
27
|
+
export interface ImageApiImageConvertRequest {
|
|
28
|
+
format: ImageFormat;
|
|
29
|
+
body: Blob;
|
|
30
|
+
quality?: number;
|
|
31
|
+
}
|
|
24
32
|
export interface ImageApiImageDownloadRequest {
|
|
25
33
|
id: string;
|
|
26
|
-
format?:
|
|
34
|
+
format?: ImageFormat;
|
|
27
35
|
width?: number;
|
|
28
36
|
height?: number;
|
|
37
|
+
resizeRender?: ImageResizeRender;
|
|
29
38
|
stripMetadata?: boolean;
|
|
30
39
|
}
|
|
31
40
|
export interface ImageApiImageEnsureTagsRequest {
|
|
@@ -60,9 +69,10 @@ export interface ImageApiImageGetMidjourneyRequest {
|
|
|
60
69
|
}
|
|
61
70
|
export interface ImageApiImageMediaUrlRequest {
|
|
62
71
|
id: string;
|
|
63
|
-
format?:
|
|
72
|
+
format?: ImageFormat;
|
|
64
73
|
width?: number;
|
|
65
74
|
height?: number;
|
|
75
|
+
resizeRender?: ImageResizeRender;
|
|
66
76
|
}
|
|
67
77
|
export interface ImageApiImageModifyRequest {
|
|
68
78
|
id: string;
|
|
@@ -136,13 +146,44 @@ export interface ImageApiInterface {
|
|
|
136
146
|
* Gets the closest images to the image following the embeddings of an extension
|
|
137
147
|
*/
|
|
138
148
|
imageClosestImages(requestParameters: ImageApiImageClosestImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ImageDistance>>;
|
|
149
|
+
/**
|
|
150
|
+
* Analyzes the provided image, computes its format and returns it.
|
|
151
|
+
* @summary Computes the format of an image
|
|
152
|
+
* @param {Blob} body The image file
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
* @memberof ImageApiInterface
|
|
156
|
+
*/
|
|
157
|
+
imageComputeFormatRaw(requestParameters: ImageApiImageComputeFormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComputedImageFormat>>;
|
|
158
|
+
/**
|
|
159
|
+
* Analyzes the provided image, computes its format and returns it.
|
|
160
|
+
* Computes the format of an image
|
|
161
|
+
*/
|
|
162
|
+
imageComputeFormat(requestParameters: ImageApiImageComputeFormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComputedImageFormat>;
|
|
163
|
+
/**
|
|
164
|
+
* Converts the provided image into the requested format and returns it.
|
|
165
|
+
* @summary Converts an image into a format
|
|
166
|
+
* @param {ImageFormat} format The image format
|
|
167
|
+
* @param {Blob} body The image file
|
|
168
|
+
* @param {number} [quality] The image quality, in case of a lossy format like JPEG or WEBP
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
* @memberof ImageApiInterface
|
|
172
|
+
*/
|
|
173
|
+
imageConvertRaw(requestParameters: ImageApiImageConvertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
174
|
+
/**
|
|
175
|
+
* Converts the provided image into the requested format and returns it.
|
|
176
|
+
* Converts an image into a format
|
|
177
|
+
*/
|
|
178
|
+
imageConvert(requestParameters: ImageApiImageConvertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
139
179
|
/**
|
|
140
180
|
* Returns the binary form of an image.
|
|
141
181
|
* @summary Downloads an image
|
|
142
182
|
* @param {string} id The image identifier
|
|
143
|
-
* @param {
|
|
183
|
+
* @param {ImageFormat} [format] The image format
|
|
144
184
|
* @param {number} [width] The image maximum width ; if not defined, the original width is used
|
|
145
185
|
* @param {number} [height] The image maximum height ; if not defined, the original height is used
|
|
186
|
+
* @param {ImageResizeRender} [resizeRender] The way the image should be resized
|
|
146
187
|
* @param {boolean} [stripMetadata] Whether the image metadata should be stripped
|
|
147
188
|
* @param {*} [options] Override http request option.
|
|
148
189
|
* @throws {RequiredError}
|
|
@@ -287,9 +328,10 @@ export interface ImageApiInterface {
|
|
|
287
328
|
* Returns the URL of the image, given for some given dimensions and format, which may used to display it.
|
|
288
329
|
* @summary Gets an URL of the image
|
|
289
330
|
* @param {string} id The image identifier
|
|
290
|
-
* @param {
|
|
331
|
+
* @param {ImageFormat} [format] The image format
|
|
291
332
|
* @param {number} [width] The image maximum width ; if not defined, the original width is used
|
|
292
333
|
* @param {number} [height] The image maximum height ; if not defined, the original height is used
|
|
334
|
+
* @param {ImageResizeRender} [resizeRender] The way the image should be resized
|
|
293
335
|
* @param {*} [options] Override http request option.
|
|
294
336
|
* @throws {RequiredError}
|
|
295
337
|
* @memberof ImageApiInterface
|
|
@@ -435,6 +477,26 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
|
|
|
435
477
|
* Gets the closest images to the image following the embeddings of an extension
|
|
436
478
|
*/
|
|
437
479
|
imageClosestImages(requestParameters: ImageApiImageClosestImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ImageDistance>>;
|
|
480
|
+
/**
|
|
481
|
+
* Analyzes the provided image, computes its format and returns it.
|
|
482
|
+
* Computes the format of an image
|
|
483
|
+
*/
|
|
484
|
+
imageComputeFormatRaw(requestParameters: ImageApiImageComputeFormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComputedImageFormat>>;
|
|
485
|
+
/**
|
|
486
|
+
* Analyzes the provided image, computes its format and returns it.
|
|
487
|
+
* Computes the format of an image
|
|
488
|
+
*/
|
|
489
|
+
imageComputeFormat(requestParameters: ImageApiImageComputeFormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComputedImageFormat>;
|
|
490
|
+
/**
|
|
491
|
+
* Converts the provided image into the requested format and returns it.
|
|
492
|
+
* Converts an image into a format
|
|
493
|
+
*/
|
|
494
|
+
imageConvertRaw(requestParameters: ImageApiImageConvertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
495
|
+
/**
|
|
496
|
+
* Converts the provided image into the requested format and returns it.
|
|
497
|
+
* Converts an image into a format
|
|
498
|
+
*/
|
|
499
|
+
imageConvert(requestParameters: ImageApiImageConvertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
438
500
|
/**
|
|
439
501
|
* Returns the binary form of an image.
|
|
440
502
|
* Downloads an image
|
|
@@ -616,27 +678,3 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
|
|
|
616
678
|
*/
|
|
617
679
|
imageTextToImages(requestParameters: ImageApiImageTextToImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ImageDistance>>;
|
|
618
680
|
}
|
|
619
|
-
/**
|
|
620
|
-
* @export
|
|
621
|
-
*/
|
|
622
|
-
export declare const ImageDownloadFormatEnum: {
|
|
623
|
-
readonly Png: "PNG";
|
|
624
|
-
readonly Jpeg: "JPEG";
|
|
625
|
-
readonly Webp: "WEBP";
|
|
626
|
-
readonly Gif: "GIF";
|
|
627
|
-
readonly Avif: "AVIF";
|
|
628
|
-
readonly Heif: "HEIF";
|
|
629
|
-
};
|
|
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.3.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.5
|
|
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, ImageMediaUrlFromJSON, ImageSummaryListFromJSON, MidjourneyInstructionsFromJSON, } from '../models/index.js';
|
|
15
|
+
import { Automatic1111UserCommentFromJSON, ComfyUiPromptAndWorkflowFromJSON, ComputedImageFormatFromJSON, ExtensionImageEmbeddingsFromJSON, ExtensionImageFeatureFromJSON, ExtensionImageTagFromJSON, ImageFromJSON, ImageDistanceFromJSON, ImageEmbeddingsFromJSON, ImageEmbeddingsToJSON, ImageFeatureToJSON, ImageMediaUrlFromJSON, ImageSummaryListFromJSON, MidjourneyInstructionsFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -104,6 +104,79 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
104
104
|
const response = await this.imageClosestImagesRaw(requestParameters, initOverrides);
|
|
105
105
|
return await response.value();
|
|
106
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Analyzes the provided image, computes its format and returns it.
|
|
109
|
+
* Computes the format of an image
|
|
110
|
+
*/
|
|
111
|
+
async imageComputeFormatRaw(requestParameters, initOverrides) {
|
|
112
|
+
if (requestParameters['body'] == null) {
|
|
113
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling imageComputeFormat().');
|
|
114
|
+
}
|
|
115
|
+
const queryParameters = {};
|
|
116
|
+
const headerParameters = {};
|
|
117
|
+
headerParameters['Content-Type'] = 'image/png';
|
|
118
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
119
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
120
|
+
}
|
|
121
|
+
let urlPath = `/image/format`;
|
|
122
|
+
const response = await this.request({
|
|
123
|
+
path: urlPath,
|
|
124
|
+
method: 'PUT',
|
|
125
|
+
headers: headerParameters,
|
|
126
|
+
query: queryParameters,
|
|
127
|
+
body: requestParameters['body'],
|
|
128
|
+
}, initOverrides);
|
|
129
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ComputedImageFormatFromJSON(jsonValue));
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Analyzes the provided image, computes its format and returns it.
|
|
133
|
+
* Computes the format of an image
|
|
134
|
+
*/
|
|
135
|
+
async imageComputeFormat(requestParameters, initOverrides) {
|
|
136
|
+
const response = await this.imageComputeFormatRaw(requestParameters, initOverrides);
|
|
137
|
+
return await response.value();
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Converts the provided image into the requested format and returns it.
|
|
141
|
+
* Converts an image into a format
|
|
142
|
+
*/
|
|
143
|
+
async imageConvertRaw(requestParameters, initOverrides) {
|
|
144
|
+
if (requestParameters['format'] == null) {
|
|
145
|
+
throw new runtime.RequiredError('format', 'Required parameter "format" was null or undefined when calling imageConvert().');
|
|
146
|
+
}
|
|
147
|
+
if (requestParameters['body'] == null) {
|
|
148
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling imageConvert().');
|
|
149
|
+
}
|
|
150
|
+
const queryParameters = {};
|
|
151
|
+
if (requestParameters['format'] != null) {
|
|
152
|
+
queryParameters['format'] = requestParameters['format'];
|
|
153
|
+
}
|
|
154
|
+
if (requestParameters['quality'] != null) {
|
|
155
|
+
queryParameters['quality'] = requestParameters['quality'];
|
|
156
|
+
}
|
|
157
|
+
const headerParameters = {};
|
|
158
|
+
headerParameters['Content-Type'] = 'image/png';
|
|
159
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
160
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
161
|
+
}
|
|
162
|
+
let urlPath = `/image/convert`;
|
|
163
|
+
const response = await this.request({
|
|
164
|
+
path: urlPath,
|
|
165
|
+
method: 'PUT',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
body: requestParameters['body'],
|
|
169
|
+
}, initOverrides);
|
|
170
|
+
return new runtime.BlobApiResponse(response);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Converts the provided image into the requested format and returns it.
|
|
174
|
+
* Converts an image into a format
|
|
175
|
+
*/
|
|
176
|
+
async imageConvert(requestParameters, initOverrides) {
|
|
177
|
+
const response = await this.imageConvertRaw(requestParameters, initOverrides);
|
|
178
|
+
return await response.value();
|
|
179
|
+
}
|
|
107
180
|
/**
|
|
108
181
|
* Returns the binary form of an image.
|
|
109
182
|
* Downloads an image
|
|
@@ -122,6 +195,9 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
122
195
|
if (requestParameters['height'] != null) {
|
|
123
196
|
queryParameters['height'] = requestParameters['height'];
|
|
124
197
|
}
|
|
198
|
+
if (requestParameters['resizeRender'] != null) {
|
|
199
|
+
queryParameters['resizeRender'] = requestParameters['resizeRender'];
|
|
200
|
+
}
|
|
125
201
|
if (requestParameters['stripMetadata'] != null) {
|
|
126
202
|
queryParameters['stripMetadata'] = requestParameters['stripMetadata'];
|
|
127
203
|
}
|
|
@@ -460,6 +536,9 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
460
536
|
if (requestParameters['height'] != null) {
|
|
461
537
|
queryParameters['height'] = requestParameters['height'];
|
|
462
538
|
}
|
|
539
|
+
if (requestParameters['resizeRender'] != null) {
|
|
540
|
+
queryParameters['resizeRender'] = requestParameters['resizeRender'];
|
|
541
|
+
}
|
|
463
542
|
const headerParameters = {};
|
|
464
543
|
if (this.configuration && this.configuration.apiKey) {
|
|
465
544
|
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
@@ -762,25 +841,3 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
762
841
|
return await response.value();
|
|
763
842
|
}
|
|
764
843
|
}
|
|
765
|
-
/**
|
|
766
|
-
* @export
|
|
767
|
-
*/
|
|
768
|
-
export const ImageDownloadFormatEnum = {
|
|
769
|
-
Png: 'PNG',
|
|
770
|
-
Jpeg: 'JPEG',
|
|
771
|
-
Webp: 'WEBP',
|
|
772
|
-
Gif: 'GIF',
|
|
773
|
-
Avif: 'AVIF',
|
|
774
|
-
Heif: 'HEIF'
|
|
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
|
-
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.3.5
|
|
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 { ImageFormat } from './ImageFormat.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ComputedImageFormat
|
|
17
|
+
*/
|
|
18
|
+
export interface ComputedImageFormat {
|
|
19
|
+
/**
|
|
20
|
+
* The value
|
|
21
|
+
* @type {ImageFormat}
|
|
22
|
+
* @memberof ComputedImageFormat
|
|
23
|
+
*/
|
|
24
|
+
value: ImageFormat;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ComputedImageFormat interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfComputedImageFormat(value: object): value is ComputedImageFormat;
|
|
30
|
+
export declare function ComputedImageFormatFromJSON(json: any): ComputedImageFormat;
|
|
31
|
+
export declare function ComputedImageFormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComputedImageFormat;
|
|
32
|
+
export declare function ComputedImageFormatToJSON(json: any): ComputedImageFormat;
|
|
33
|
+
export declare function ComputedImageFormatToJSONTyped(value?: ComputedImageFormat | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.3.5
|
|
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 { ImageFormatFromJSON, ImageFormatToJSON, } from './ImageFormat.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ComputedImageFormat interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfComputedImageFormat(value) {
|
|
19
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ComputedImageFormatFromJSON(json) {
|
|
24
|
+
return ComputedImageFormatFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ComputedImageFormatFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'value': ImageFormatFromJSON(json['value']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ComputedImageFormatToJSON(json) {
|
|
35
|
+
return ComputedImageFormatToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ComputedImageFormatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'value': ImageFormatToJSON(value['value']),
|
|
43
|
+
};
|
|
44
|
+
}
|