@picteus/extension-sdk 0.5.1 → 0.5.3
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/ApiSecretApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/ApiSecretApi.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 +1 -28
- package/dist/picteus-ws-client/apis/ImageApi.js +1 -37
- 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/MiscellaneousApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/MiscellaneousApi.js +1 -1
- package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +2 -2
- package/dist/picteus-ws-client/apis/RepositoryApi.js +1 -1
- package/dist/picteus-ws-client/apis/SettingsApi.d.ts +26 -26
- package/dist/picteus-ws-client/apis/SettingsApi.js +25 -26
- package/dist/picteus-ws-client/models/ApiSecret.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApiSecret.js +1 -1
- package/dist/picteus-ws-client/models/ApiSecretSummary.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApiSecretSummary.js +1 -1
- package/dist/picteus-ws-client/models/ApiSecretType.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApiSecretType.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadata.d.ts +33 -0
- package/dist/picteus-ws-client/models/ApplicationMetadata.js +44 -0
- package/dist/picteus-ws-client/models/ApplicationMetadataItem.d.ts +39 -0
- package/dist/picteus-ws-client/models/ApplicationMetadataItem.js +48 -0
- package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.d.ts +22 -0
- package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.js +44 -0
- 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 +1 -1
- package/dist/picteus-ws-client/models/ComputedImageFormat.js +1 -1
- 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/GenerationRecipe.d.ts +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipe.js +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipePrompt.d.ts +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipePrompt.js +1 -1
- package/dist/picteus-ws-client/models/Image.d.ts +1 -1
- package/dist/picteus-ws-client/models/Image.js +1 -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 +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.js +1 -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 +1 -1
- package/dist/picteus-ws-client/models/ImageResizeRender.js +1 -1
- package/dist/picteus-ws-client/models/ImageSummary.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageSummary.js +1 -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 +1 -1
- package/dist/picteus-ws-client/models/ManifestEvent.js +1 -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 +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
- 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 +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +8 -1
- package/dist/picteus-ws-client/models/ManifestInstructions.js +4 -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/ManifestThrottlingPolicy.d.ts +45 -0
- package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.js +48 -0
- 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 +1 -1
- package/dist/picteus-ws-client/models/SearchCriteria.js +1 -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 +1 -1
- package/dist/picteus-ws-client/models/SearchProperties.js +1 -1
- package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchPropertyRange.js +1 -1
- 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 +1 -1
- package/dist/picteus-ws-client/models/SearchTags.js +1 -1
- 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/TextualPrompt.d.ts +1 -1
- package/dist/picteus-ws-client/models/TextualPrompt.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 +4 -0
- package/dist/picteus-ws-client/models/index.js +4 -0
- package/dist/picteus-ws-client/runtime.d.ts +1 -1
- package/dist/picteus-ws-client/runtime.js +1 -1
- 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.
|
|
5
|
+
* The version of the OpenAPI document: 0.5.3
|
|
6
6
|
* Contact: edouard@koppasoft.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -81,9 +81,6 @@ export interface ImageApiImageModifyRequest {
|
|
|
81
81
|
id: string;
|
|
82
82
|
body: Blob;
|
|
83
83
|
}
|
|
84
|
-
export interface ImageApiImageRunComfyUiRequest {
|
|
85
|
-
id: string;
|
|
86
|
-
}
|
|
87
84
|
export interface ImageApiImageSearchRequest {
|
|
88
85
|
criteria?: SearchCriteria;
|
|
89
86
|
sorting?: SearchSorting;
|
|
@@ -374,20 +371,6 @@ export interface ImageApiInterface {
|
|
|
374
371
|
* Modifies an image
|
|
375
372
|
*/
|
|
376
373
|
imageModify(requestParameters: ImageApiImageModifyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
|
|
377
|
-
/**
|
|
378
|
-
* Runs the workflow attached to the image in background.
|
|
379
|
-
* @summary Starts the image ComfyUI workflow
|
|
380
|
-
* @param {string} id The image identifier
|
|
381
|
-
* @param {*} [options] Override http request option.
|
|
382
|
-
* @throws {RequiredError}
|
|
383
|
-
* @memberof ImageApiInterface
|
|
384
|
-
*/
|
|
385
|
-
imageRunComfyUiRaw(requestParameters: ImageApiImageRunComfyUiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
386
|
-
/**
|
|
387
|
-
* Runs the workflow attached to the image in background.
|
|
388
|
-
* Starts the image ComfyUI workflow
|
|
389
|
-
*/
|
|
390
|
-
imageRunComfyUi(requestParameters: ImageApiImageRunComfyUiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
391
374
|
/**
|
|
392
375
|
* Searches images, given criteria.
|
|
393
376
|
* @summary Searches images
|
|
@@ -644,16 +627,6 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
|
|
|
644
627
|
* Modifies an image
|
|
645
628
|
*/
|
|
646
629
|
imageModify(requestParameters: ImageApiImageModifyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
|
|
647
|
-
/**
|
|
648
|
-
* Runs the workflow attached to the image in background.
|
|
649
|
-
* Starts the image ComfyUI workflow
|
|
650
|
-
*/
|
|
651
|
-
imageRunComfyUiRaw(requestParameters: ImageApiImageRunComfyUiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
652
|
-
/**
|
|
653
|
-
* Runs the workflow attached to the image in background.
|
|
654
|
-
* Starts the image ComfyUI workflow
|
|
655
|
-
*/
|
|
656
|
-
imageRunComfyUi(requestParameters: ImageApiImageRunComfyUiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
657
630
|
/**
|
|
658
631
|
* Searches images, given criteria.
|
|
659
632
|
* Searches images
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Picteus
|
|
5
5
|
* The Picteus API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.5.
|
|
7
|
+
* The version of the OpenAPI document: 0.5.3
|
|
8
8
|
* Contact: edouard@koppasoft.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -628,42 +628,6 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
628
628
|
const response = await this.imageModifyRaw(requestParameters, initOverrides);
|
|
629
629
|
return await response.value();
|
|
630
630
|
}
|
|
631
|
-
/**
|
|
632
|
-
* Runs the workflow attached to the image in background.
|
|
633
|
-
* Starts the image ComfyUI workflow
|
|
634
|
-
*/
|
|
635
|
-
async imageRunComfyUiRaw(requestParameters, initOverrides) {
|
|
636
|
-
if (requestParameters['id'] == null) {
|
|
637
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageRunComfyUi().');
|
|
638
|
-
}
|
|
639
|
-
const queryParameters = {};
|
|
640
|
-
const headerParameters = {};
|
|
641
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
642
|
-
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
643
|
-
}
|
|
644
|
-
let urlPath = `/image/{id}/runComfyUi`;
|
|
645
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
646
|
-
const response = await this.request({
|
|
647
|
-
path: urlPath,
|
|
648
|
-
method: 'PUT',
|
|
649
|
-
headers: headerParameters,
|
|
650
|
-
query: queryParameters,
|
|
651
|
-
}, initOverrides);
|
|
652
|
-
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
653
|
-
return new runtime.JSONApiResponse(response);
|
|
654
|
-
}
|
|
655
|
-
else {
|
|
656
|
-
return new runtime.TextApiResponse(response);
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
/**
|
|
660
|
-
* Runs the workflow attached to the image in background.
|
|
661
|
-
* Starts the image ComfyUI workflow
|
|
662
|
-
*/
|
|
663
|
-
async imageRunComfyUi(requestParameters, initOverrides) {
|
|
664
|
-
const response = await this.imageRunComfyUiRaw(requestParameters, initOverrides);
|
|
665
|
-
return await response.value();
|
|
666
|
-
}
|
|
667
631
|
/**
|
|
668
632
|
* Searches images, given criteria.
|
|
669
633
|
* Searches images
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Picteus
|
|
3
3
|
* The Picteus API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.5.
|
|
5
|
+
* The version of the OpenAPI document: 0.5.3
|
|
6
6
|
* Contact: edouard@koppasoft.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -208,7 +208,7 @@ export interface RepositoryApiInterface {
|
|
|
208
208
|
* @param {Blob} body The image file
|
|
209
209
|
* @param {string} [sourceUrl] The URL of the image source
|
|
210
210
|
* @param {string} [parentId] The identifier of the image parent image
|
|
211
|
-
* @param {string} [applicationMetadata] The JSON string
|
|
211
|
+
* @param {string} [applicationMetadata] The JSON string representing the application metadata
|
|
212
212
|
* @param {string} [directoryPath] The relative directory path within the repository that will host the image
|
|
213
213
|
* @param {string} [nameWithoutExtension] The image file name, without its extension
|
|
214
214
|
* @param {*} [options] Override http request option.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Picteus
|
|
3
3
|
* The Picteus API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.5.
|
|
5
|
+
* The version of the OpenAPI document: 0.5.3
|
|
6
6
|
* Contact: edouard@koppasoft.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
13
|
import type { Settings } from '../models/index.js';
|
|
14
|
-
export interface
|
|
15
|
-
|
|
14
|
+
export interface SettingsApiSettingsSetRequest {
|
|
15
|
+
settings: Settings;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* SettingsApi - interface
|
|
@@ -22,47 +22,37 @@ export interface SettingsApiSettingsComfyuiRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
export interface SettingsApiInterface {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @summary
|
|
27
|
-
* @param {string} baseUrl The base URL of the ComfyUI server
|
|
25
|
+
* Returns all the application settings.
|
|
26
|
+
* @summary Gets all the settings
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
* @memberof SettingsApiInterface
|
|
31
30
|
*/
|
|
32
|
-
|
|
31
|
+
settingsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Settings>>;
|
|
33
32
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
33
|
+
* Returns all the application settings.
|
|
34
|
+
* Gets all the settings
|
|
36
35
|
*/
|
|
37
|
-
|
|
36
|
+
settingsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings>;
|
|
38
37
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @summary
|
|
38
|
+
* This enables to tune the application settings.
|
|
39
|
+
* @summary Sets all the settings
|
|
40
|
+
* @param {Settings} settings The extension archive
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
* @memberof SettingsApiInterface
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
settingsSetRaw(requestParameters: SettingsApiSettingsSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Settings>>;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* This enables to tune the application settings.
|
|
48
|
+
* Sets all the settings
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
settingsSet(requestParameters: SettingsApiSettingsSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings>;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
55
|
export declare class SettingsApi extends runtime.BaseAPI implements SettingsApiInterface {
|
|
56
|
-
/**
|
|
57
|
-
* Once invoked, ComfyUI related operations can be performed.
|
|
58
|
-
* Sets the ComfyUI settings
|
|
59
|
-
*/
|
|
60
|
-
settingsComfyuiRaw(requestParameters: SettingsApiSettingsComfyuiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Settings>>;
|
|
61
|
-
/**
|
|
62
|
-
* Once invoked, ComfyUI related operations can be performed.
|
|
63
|
-
* Sets the ComfyUI settings
|
|
64
|
-
*/
|
|
65
|
-
settingsComfyui(requestParameters: SettingsApiSettingsComfyuiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings>;
|
|
66
56
|
/**
|
|
67
57
|
* Returns all the application settings.
|
|
68
58
|
* Gets all the settings
|
|
@@ -73,4 +63,14 @@ export declare class SettingsApi extends runtime.BaseAPI implements SettingsApiI
|
|
|
73
63
|
* Gets all the settings
|
|
74
64
|
*/
|
|
75
65
|
settingsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings>;
|
|
66
|
+
/**
|
|
67
|
+
* This enables to tune the application settings.
|
|
68
|
+
* Sets all the settings
|
|
69
|
+
*/
|
|
70
|
+
settingsSetRaw(requestParameters: SettingsApiSettingsSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Settings>>;
|
|
71
|
+
/**
|
|
72
|
+
* This enables to tune the application settings.
|
|
73
|
+
* Sets all the settings
|
|
74
|
+
*/
|
|
75
|
+
settingsSet(requestParameters: SettingsApiSettingsSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings>;
|
|
76
76
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Picteus
|
|
5
5
|
* The Picteus API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.5.
|
|
7
|
+
* The version of the OpenAPI document: 0.5.3
|
|
8
8
|
* Contact: edouard@koppasoft.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,69 +12,68 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { SettingsFromJSON, } from '../models/index.js';
|
|
15
|
+
import { SettingsFromJSON, SettingsToJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class SettingsApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* Returns all the application settings.
|
|
22
|
+
* Gets all the settings
|
|
23
23
|
*/
|
|
24
|
-
async
|
|
25
|
-
if (requestParameters['baseUrl'] == null) {
|
|
26
|
-
throw new runtime.RequiredError('baseUrl', 'Required parameter "baseUrl" was null or undefined when calling settingsComfyui().');
|
|
27
|
-
}
|
|
24
|
+
async settingsGetRaw(initOverrides) {
|
|
28
25
|
const queryParameters = {};
|
|
29
|
-
if (requestParameters['baseUrl'] != null) {
|
|
30
|
-
queryParameters['baseUrl'] = requestParameters['baseUrl'];
|
|
31
|
-
}
|
|
32
26
|
const headerParameters = {};
|
|
33
27
|
if (this.configuration && this.configuration.apiKey) {
|
|
34
28
|
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
35
29
|
}
|
|
36
|
-
let urlPath = `/settings/
|
|
30
|
+
let urlPath = `/settings/get`;
|
|
37
31
|
const response = await this.request({
|
|
38
32
|
path: urlPath,
|
|
39
|
-
method: '
|
|
33
|
+
method: 'GET',
|
|
40
34
|
headers: headerParameters,
|
|
41
35
|
query: queryParameters,
|
|
42
36
|
}, initOverrides);
|
|
43
37
|
return new runtime.JSONApiResponse(response, (jsonValue) => SettingsFromJSON(jsonValue));
|
|
44
38
|
}
|
|
45
39
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
40
|
+
* Returns all the application settings.
|
|
41
|
+
* Gets all the settings
|
|
48
42
|
*/
|
|
49
|
-
async
|
|
50
|
-
const response = await this.
|
|
43
|
+
async settingsGet(initOverrides) {
|
|
44
|
+
const response = await this.settingsGetRaw(initOverrides);
|
|
51
45
|
return await response.value();
|
|
52
46
|
}
|
|
53
47
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
48
|
+
* This enables to tune the application settings.
|
|
49
|
+
* Sets all the settings
|
|
56
50
|
*/
|
|
57
|
-
async
|
|
51
|
+
async settingsSetRaw(requestParameters, initOverrides) {
|
|
52
|
+
if (requestParameters['settings'] == null) {
|
|
53
|
+
throw new runtime.RequiredError('settings', 'Required parameter "settings" was null or undefined when calling settingsSet().');
|
|
54
|
+
}
|
|
58
55
|
const queryParameters = {};
|
|
59
56
|
const headerParameters = {};
|
|
57
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
60
58
|
if (this.configuration && this.configuration.apiKey) {
|
|
61
59
|
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
62
60
|
}
|
|
63
|
-
let urlPath = `/settings/
|
|
61
|
+
let urlPath = `/settings/set`;
|
|
64
62
|
const response = await this.request({
|
|
65
63
|
path: urlPath,
|
|
66
|
-
method: '
|
|
64
|
+
method: 'PUT',
|
|
67
65
|
headers: headerParameters,
|
|
68
66
|
query: queryParameters,
|
|
67
|
+
body: SettingsToJSON(requestParameters['settings']),
|
|
69
68
|
}, initOverrides);
|
|
70
69
|
return new runtime.JSONApiResponse(response, (jsonValue) => SettingsFromJSON(jsonValue));
|
|
71
70
|
}
|
|
72
71
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
72
|
+
* This enables to tune the application settings.
|
|
73
|
+
* Sets all the settings
|
|
75
74
|
*/
|
|
76
|
-
async
|
|
77
|
-
const response = await this.
|
|
75
|
+
async settingsSet(requestParameters, initOverrides) {
|
|
76
|
+
const response = await this.settingsSetRaw(requestParameters, initOverrides);
|
|
78
77
|
return await response.value();
|
|
79
78
|
}
|
|
80
79
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.5.3
|
|
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 { ApplicationMetadataItem } from './ApplicationMetadataItem.js';
|
|
13
|
+
/**
|
|
14
|
+
* The application metadata
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplicationMetadata
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplicationMetadata {
|
|
19
|
+
/**
|
|
20
|
+
* The application metadata items
|
|
21
|
+
* @type {Array<ApplicationMetadataItem>}
|
|
22
|
+
* @memberof ApplicationMetadata
|
|
23
|
+
*/
|
|
24
|
+
items: Array<ApplicationMetadataItem>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApplicationMetadata interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfApplicationMetadata(value: object): value is ApplicationMetadata;
|
|
30
|
+
export declare function ApplicationMetadataFromJSON(json: any): ApplicationMetadata;
|
|
31
|
+
export declare function ApplicationMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationMetadata;
|
|
32
|
+
export declare function ApplicationMetadataToJSON(json: any): ApplicationMetadata;
|
|
33
|
+
export declare function ApplicationMetadataToJSONTyped(value?: ApplicationMetadata | 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.5.3
|
|
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 { ApplicationMetadataItemFromJSON, ApplicationMetadataItemToJSON, } from './ApplicationMetadataItem.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApplicationMetadata interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApplicationMetadata(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ApplicationMetadataFromJSON(json) {
|
|
24
|
+
return ApplicationMetadataFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ApplicationMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'items': (json['items'].map(ApplicationMetadataItemFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ApplicationMetadataToJSON(json) {
|
|
35
|
+
return ApplicationMetadataToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ApplicationMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'items': (value['items'].map(ApplicationMetadataItemToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.5.3
|
|
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 { ApplicationMetadataItemValue } from './ApplicationMetadataItemValue.js';
|
|
13
|
+
/**
|
|
14
|
+
* The application metadata item specific to an extension
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplicationMetadataItem
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplicationMetadataItem {
|
|
19
|
+
/**
|
|
20
|
+
* The identifier of the extension
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApplicationMetadataItem
|
|
23
|
+
*/
|
|
24
|
+
extensionId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ApplicationMetadataItemValue}
|
|
28
|
+
* @memberof ApplicationMetadataItem
|
|
29
|
+
*/
|
|
30
|
+
value: ApplicationMetadataItemValue;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ApplicationMetadataItem interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfApplicationMetadataItem(value: object): value is ApplicationMetadataItem;
|
|
36
|
+
export declare function ApplicationMetadataItemFromJSON(json: any): ApplicationMetadataItem;
|
|
37
|
+
export declare function ApplicationMetadataItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationMetadataItem;
|
|
38
|
+
export declare function ApplicationMetadataItemToJSON(json: any): ApplicationMetadataItem;
|
|
39
|
+
export declare function ApplicationMetadataItemToJSONTyped(value?: ApplicationMetadataItem | null, ignoreDiscriminator?: boolean): any;
|