@picteus/extension-sdk 0.2.5
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/README.md +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/picteus-ws-client/apis/AdministrationApi.d.ts +48 -0
- package/dist/picteus-ws-client/apis/AdministrationApi.js +45 -0
- package/dist/picteus-ws-client/apis/ExperimentApi.d.ts +48 -0
- package/dist/picteus-ws-client/apis/ExperimentApi.js +51 -0
- package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +410 -0
- package/dist/picteus-ws-client/apis/ExtensionApi.js +482 -0
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +593 -0
- package/dist/picteus-ws-client/apis/ImageApi.js +729 -0
- package/dist/picteus-ws-client/apis/ImageAttachmentApi.d.ts +85 -0
- package/dist/picteus-ws-client/apis/ImageAttachmentApi.js +105 -0
- package/dist/picteus-ws-client/apis/PingApi.d.ts +48 -0
- package/dist/picteus-ws-client/apis/PingApi.js +51 -0
- package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +385 -0
- package/dist/picteus-ws-client/apis/RepositoryApi.js +462 -0
- package/dist/picteus-ws-client/apis/SettingsApi.d.ts +76 -0
- package/dist/picteus-ws-client/apis/SettingsApi.js +80 -0
- package/dist/picteus-ws-client/apis/index.d.ts +8 -0
- package/dist/picteus-ws-client/apis/index.js +10 -0
- package/dist/picteus-ws-client/index.d.ts +3 -0
- package/dist/picteus-ws-client/index.js +5 -0
- package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +38 -0
- package/dist/picteus-ws-client/models/Automatic1111Instruction.js +47 -0
- package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +45 -0
- package/dist/picteus-ws-client/models/Automatic1111UserComment.js +50 -0
- package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +38 -0
- package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +47 -0
- package/dist/picteus-ws-client/models/CommandEntity.d.ts +26 -0
- package/dist/picteus-ws-client/models/CommandEntity.js +44 -0
- package/dist/picteus-ws-client/models/ConfigurationCapability.d.ts +39 -0
- package/dist/picteus-ws-client/models/ConfigurationCapability.js +48 -0
- package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.d.ts +39 -0
- package/dist/picteus-ws-client/models/ConfigurationExtensionCommand.js +48 -0
- package/dist/picteus-ws-client/models/Dates.d.ts +38 -0
- package/dist/picteus-ws-client/models/Dates.js +47 -0
- package/dist/picteus-ws-client/models/Extension.d.ts +40 -0
- package/dist/picteus-ws-client/models/Extension.js +49 -0
- package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +39 -0
- package/dist/picteus-ws-client/models/ExtensionActivity.js +48 -0
- package/dist/picteus-ws-client/models/ExtensionActivityKind.d.ts +26 -0
- package/dist/picteus-ws-client/models/ExtensionActivityKind.js +44 -0
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +63 -0
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +64 -0
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +38 -0
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +47 -0
- package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +58 -0
- package/dist/picteus-ws-client/models/ExtensionImageFeature.js +59 -0
- package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +38 -0
- package/dist/picteus-ws-client/models/ExtensionImageTag.js +47 -0
- package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +32 -0
- package/dist/picteus-ws-client/models/ExtensionSettings.js +43 -0
- package/dist/picteus-ws-client/models/ExtensionStatus.d.ts +25 -0
- package/dist/picteus-ws-client/models/ExtensionStatus.js +43 -0
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +40 -0
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +49 -0
- package/dist/picteus-ws-client/models/Image.d.ts +135 -0
- package/dist/picteus-ws-client/models/Image.js +110 -0
- package/dist/picteus-ws-client/models/ImageDimensions.d.ts +38 -0
- package/dist/picteus-ws-client/models/ImageDimensions.js +47 -0
- package/dist/picteus-ws-client/models/ImageDistance.d.ts +39 -0
- package/dist/picteus-ws-client/models/ImageDistance.js +48 -0
- package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +32 -0
- package/dist/picteus-ws-client/models/ImageEmbeddings.js +43 -0
- package/dist/picteus-ws-client/models/ImageFeature.d.ts +52 -0
- package/dist/picteus-ws-client/models/ImageFeature.js +55 -0
- package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +29 -0
- package/dist/picteus-ws-client/models/ImageFeatureFormat.js +47 -0
- package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +27 -0
- package/dist/picteus-ws-client/models/ImageFeatureType.js +45 -0
- package/dist/picteus-ws-client/models/ImageFormat.d.ts +29 -0
- package/dist/picteus-ws-client/models/ImageFormat.js +47 -0
- package/dist/picteus-ws-client/models/ImageGenerator.d.ts +26 -0
- package/dist/picteus-ws-client/models/ImageGenerator.js +44 -0
- package/dist/picteus-ws-client/models/ImageMetadata.d.ts +68 -0
- package/dist/picteus-ws-client/models/ImageMetadata.js +53 -0
- package/dist/picteus-ws-client/models/ImageSummary.d.ts +114 -0
- package/dist/picteus-ws-client/models/ImageSummary.js +95 -0
- package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +39 -0
- package/dist/picteus-ws-client/models/ImageSummaryList.js +48 -0
- package/dist/picteus-ws-client/models/Manifest.d.ts +77 -0
- package/dist/picteus-ws-client/models/Manifest.js +72 -0
- package/dist/picteus-ws-client/models/ManifestCapability.d.ts +33 -0
- package/dist/picteus-ws-client/models/ManifestCapability.js +44 -0
- package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +27 -0
- package/dist/picteus-ws-client/models/ManifestCapabilityId.js +45 -0
- package/dist/picteus-ws-client/models/ManifestEvent.d.ts +33 -0
- package/dist/picteus-ws-client/models/ManifestEvent.js +51 -0
- package/dist/picteus-ws-client/models/ManifestExecution.d.ts +38 -0
- package/dist/picteus-ws-client/models/ManifestExecution.js +47 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +52 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +57 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommandLabel.d.ts +38 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommandLabel.js +47 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +39 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +46 -0
- package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +54 -0
- package/dist/picteus-ws-client/models/ManifestInstructions.js +55 -0
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +39 -0
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +48 -0
- package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +33 -0
- package/dist/picteus-ws-client/models/ManifestRuntime.js +44 -0
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +25 -0
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +43 -0
- package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +33 -0
- package/dist/picteus-ws-client/models/ManifestUserInterface.js +44 -0
- package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +74 -0
- package/dist/picteus-ws-client/models/MidjourneyInstructions.js +71 -0
- package/dist/picteus-ws-client/models/Repository.d.ts +82 -0
- package/dist/picteus-ws-client/models/Repository.js +73 -0
- package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +39 -0
- package/dist/picteus-ws-client/models/RepositoryActivity.js +48 -0
- package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +26 -0
- package/dist/picteus-ws-client/models/RepositoryActivityKind.js +44 -0
- package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +24 -0
- package/dist/picteus-ws-client/models/RepositoryLocationType.js +42 -0
- package/dist/picteus-ws-client/models/RepositoryStatus.d.ts +27 -0
- package/dist/picteus-ws-client/models/RepositoryStatus.js +45 -0
- package/dist/picteus-ws-client/models/SearchCriteria.d.ts +47 -0
- package/dist/picteus-ws-client/models/SearchCriteria.js +48 -0
- package/dist/picteus-ws-client/models/SearchKeyword.d.ts +50 -0
- package/dist/picteus-ws-client/models/SearchKeyword.js +55 -0
- package/dist/picteus-ws-client/models/SearchRange.d.ts +38 -0
- package/dist/picteus-ws-client/models/SearchRange.js +43 -0
- package/dist/picteus-ws-client/models/SearchSorting.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchSorting.js +46 -0
- package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +29 -0
- package/dist/picteus-ws-client/models/SearchSortingProperty.js +47 -0
- package/dist/picteus-ws-client/models/Settings.d.ts +32 -0
- package/dist/picteus-ws-client/models/Settings.js +41 -0
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +26 -0
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +44 -0
- package/dist/picteus-ws-client/models/index.d.ts +55 -0
- package/dist/picteus-ws-client/models/index.js +57 -0
- package/dist/picteus-ws-client/runtime.d.ts +184 -0
- package/dist/picteus-ws-client/runtime.js +333 -0
- package/dist/picteusExtension.d.ts +145 -0
- package/dist/picteusExtension.js +302 -0
- package/package.json +53 -0
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2.6
|
|
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 * as runtime from '../runtime.js';
|
|
15
|
+
import { ImageFromJSON, ImageSummaryListFromJSON, RepositoryFromJSON, RepositoryActivityFromJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class RepositoryApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Returns all the declared repositories activities.
|
|
22
|
+
* Indicates the repositories activities
|
|
23
|
+
*/
|
|
24
|
+
async repositoryActivitiesRaw(initOverrides) {
|
|
25
|
+
const queryParameters = {};
|
|
26
|
+
const headerParameters = {};
|
|
27
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
28
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
29
|
+
}
|
|
30
|
+
let urlPath = `/repository/activities`;
|
|
31
|
+
const response = await this.request({
|
|
32
|
+
path: urlPath,
|
|
33
|
+
method: 'GET',
|
|
34
|
+
headers: headerParameters,
|
|
35
|
+
query: queryParameters,
|
|
36
|
+
}, initOverrides);
|
|
37
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RepositoryActivityFromJSON));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns all the declared repositories activities.
|
|
41
|
+
* Indicates the repositories activities
|
|
42
|
+
*/
|
|
43
|
+
async repositoryActivities(initOverrides) {
|
|
44
|
+
const response = await this.repositoryActivitiesRaw(initOverrides);
|
|
45
|
+
return await response.value();
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Declares a new repository.
|
|
49
|
+
* Creates a repository
|
|
50
|
+
*/
|
|
51
|
+
async repositoryCreateRaw(requestParameters, initOverrides) {
|
|
52
|
+
if (requestParameters['type'] == null) {
|
|
53
|
+
throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling repositoryCreate().');
|
|
54
|
+
}
|
|
55
|
+
if (requestParameters['url'] == null) {
|
|
56
|
+
throw new runtime.RequiredError('url', 'Required parameter "url" was null or undefined when calling repositoryCreate().');
|
|
57
|
+
}
|
|
58
|
+
if (requestParameters['name'] == null) {
|
|
59
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling repositoryCreate().');
|
|
60
|
+
}
|
|
61
|
+
const queryParameters = {};
|
|
62
|
+
if (requestParameters['type'] != null) {
|
|
63
|
+
queryParameters['type'] = requestParameters['type'];
|
|
64
|
+
}
|
|
65
|
+
if (requestParameters['url'] != null) {
|
|
66
|
+
queryParameters['url'] = requestParameters['url'];
|
|
67
|
+
}
|
|
68
|
+
if (requestParameters['name'] != null) {
|
|
69
|
+
queryParameters['name'] = requestParameters['name'];
|
|
70
|
+
}
|
|
71
|
+
if (requestParameters['comment'] != null) {
|
|
72
|
+
queryParameters['comment'] = requestParameters['comment'];
|
|
73
|
+
}
|
|
74
|
+
if (requestParameters['watch'] != null) {
|
|
75
|
+
queryParameters['watch'] = requestParameters['watch'];
|
|
76
|
+
}
|
|
77
|
+
if (requestParameters['technicalId'] != null) {
|
|
78
|
+
queryParameters['technicalId'] = requestParameters['technicalId'];
|
|
79
|
+
}
|
|
80
|
+
const headerParameters = {};
|
|
81
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
82
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
83
|
+
}
|
|
84
|
+
let urlPath = `/repository/create`;
|
|
85
|
+
const response = await this.request({
|
|
86
|
+
path: urlPath,
|
|
87
|
+
method: 'POST',
|
|
88
|
+
headers: headerParameters,
|
|
89
|
+
query: queryParameters,
|
|
90
|
+
}, initOverrides);
|
|
91
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RepositoryFromJSON(jsonValue));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Declares a new repository.
|
|
95
|
+
* Creates a repository
|
|
96
|
+
*/
|
|
97
|
+
async repositoryCreate(requestParameters, initOverrides) {
|
|
98
|
+
const response = await this.repositoryCreateRaw(requestParameters, initOverrides);
|
|
99
|
+
return await response.value();
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Deletes a repository along with all the images attached to it.
|
|
103
|
+
* Deletes a repository
|
|
104
|
+
*/
|
|
105
|
+
async repositoryDeleteRaw(requestParameters, initOverrides) {
|
|
106
|
+
if (requestParameters['id'] == null) {
|
|
107
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositoryDelete().');
|
|
108
|
+
}
|
|
109
|
+
const queryParameters = {};
|
|
110
|
+
const headerParameters = {};
|
|
111
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
112
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
113
|
+
}
|
|
114
|
+
let urlPath = `/repository/{id}/delete`;
|
|
115
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
116
|
+
const response = await this.request({
|
|
117
|
+
path: urlPath,
|
|
118
|
+
method: 'DELETE',
|
|
119
|
+
headers: headerParameters,
|
|
120
|
+
query: queryParameters,
|
|
121
|
+
}, initOverrides);
|
|
122
|
+
return new runtime.VoidApiResponse(response);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Deletes a repository along with all the images attached to it.
|
|
126
|
+
* Deletes a repository
|
|
127
|
+
*/
|
|
128
|
+
async repositoryDelete(requestParameters, initOverrides) {
|
|
129
|
+
await this.repositoryDeleteRaw(requestParameters, initOverrides);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Ensures that a repository with type \'file\' and with the provided identifier exists, and if not, creates it.
|
|
133
|
+
* Ensures a repository exists
|
|
134
|
+
*/
|
|
135
|
+
async repositoryEnsureRaw(requestParameters, initOverrides) {
|
|
136
|
+
if (requestParameters['technicalId'] == null) {
|
|
137
|
+
throw new runtime.RequiredError('technicalId', 'Required parameter "technicalId" was null or undefined when calling repositoryEnsure().');
|
|
138
|
+
}
|
|
139
|
+
if (requestParameters['name'] == null) {
|
|
140
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling repositoryEnsure().');
|
|
141
|
+
}
|
|
142
|
+
const queryParameters = {};
|
|
143
|
+
if (requestParameters['technicalId'] != null) {
|
|
144
|
+
queryParameters['technicalId'] = requestParameters['technicalId'];
|
|
145
|
+
}
|
|
146
|
+
if (requestParameters['name'] != null) {
|
|
147
|
+
queryParameters['name'] = requestParameters['name'];
|
|
148
|
+
}
|
|
149
|
+
if (requestParameters['comment'] != null) {
|
|
150
|
+
queryParameters['comment'] = requestParameters['comment'];
|
|
151
|
+
}
|
|
152
|
+
if (requestParameters['watch'] != null) {
|
|
153
|
+
queryParameters['watch'] = requestParameters['watch'];
|
|
154
|
+
}
|
|
155
|
+
const headerParameters = {};
|
|
156
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
157
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
158
|
+
}
|
|
159
|
+
let urlPath = `/repository/ensure`;
|
|
160
|
+
const response = await this.request({
|
|
161
|
+
path: urlPath,
|
|
162
|
+
method: 'PUT',
|
|
163
|
+
headers: headerParameters,
|
|
164
|
+
query: queryParameters,
|
|
165
|
+
}, initOverrides);
|
|
166
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RepositoryFromJSON(jsonValue));
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Ensures that a repository with type \'file\' and with the provided identifier exists, and if not, creates it.
|
|
170
|
+
* Ensures a repository exists
|
|
171
|
+
*/
|
|
172
|
+
async repositoryEnsure(requestParameters, initOverrides) {
|
|
173
|
+
const response = await this.repositoryEnsureRaw(requestParameters, initOverrides);
|
|
174
|
+
return await response.value();
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Returns a single repository.
|
|
178
|
+
* Gets a repository
|
|
179
|
+
*/
|
|
180
|
+
async repositoryGetRaw(requestParameters, initOverrides) {
|
|
181
|
+
if (requestParameters['id'] == null) {
|
|
182
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositoryGet().');
|
|
183
|
+
}
|
|
184
|
+
const queryParameters = {};
|
|
185
|
+
const headerParameters = {};
|
|
186
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
187
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
188
|
+
}
|
|
189
|
+
let urlPath = `/repository/{id}/get`;
|
|
190
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
191
|
+
const response = await this.request({
|
|
192
|
+
path: urlPath,
|
|
193
|
+
method: 'GET',
|
|
194
|
+
headers: headerParameters,
|
|
195
|
+
query: queryParameters,
|
|
196
|
+
}, initOverrides);
|
|
197
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RepositoryFromJSON(jsonValue));
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Returns a single repository.
|
|
201
|
+
* Gets a repository
|
|
202
|
+
*/
|
|
203
|
+
async repositoryGet(requestParameters, initOverrides) {
|
|
204
|
+
const response = await this.repositoryGetRaw(requestParameters, initOverrides);
|
|
205
|
+
return await response.value();
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Returns the details about an image.
|
|
209
|
+
* Gets an image from its URL
|
|
210
|
+
*/
|
|
211
|
+
async repositoryGetImageByUrlRaw(requestParameters, initOverrides) {
|
|
212
|
+
if (requestParameters['url'] == null) {
|
|
213
|
+
throw new runtime.RequiredError('url', 'Required parameter "url" was null or undefined when calling repositoryGetImageByUrl().');
|
|
214
|
+
}
|
|
215
|
+
const queryParameters = {};
|
|
216
|
+
if (requestParameters['url'] != null) {
|
|
217
|
+
queryParameters['url'] = requestParameters['url'];
|
|
218
|
+
}
|
|
219
|
+
const headerParameters = {};
|
|
220
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
221
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
222
|
+
}
|
|
223
|
+
let urlPath = `/repository/getImageByUrl`;
|
|
224
|
+
const response = await this.request({
|
|
225
|
+
path: urlPath,
|
|
226
|
+
method: 'GET',
|
|
227
|
+
headers: headerParameters,
|
|
228
|
+
query: queryParameters,
|
|
229
|
+
}, initOverrides);
|
|
230
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ImageFromJSON(jsonValue));
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Returns the details about an image.
|
|
234
|
+
* Gets an image from its URL
|
|
235
|
+
*/
|
|
236
|
+
async repositoryGetImageByUrl(requestParameters, initOverrides) {
|
|
237
|
+
const response = await this.repositoryGetImageByUrlRaw(requestParameters, initOverrides);
|
|
238
|
+
return await response.value();
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Lists all the declared repositories.
|
|
242
|
+
* Lists repositories
|
|
243
|
+
*/
|
|
244
|
+
async repositoryListRaw(initOverrides) {
|
|
245
|
+
const queryParameters = {};
|
|
246
|
+
const headerParameters = {};
|
|
247
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
248
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
249
|
+
}
|
|
250
|
+
let urlPath = `/repository/list`;
|
|
251
|
+
const response = await this.request({
|
|
252
|
+
path: urlPath,
|
|
253
|
+
method: 'GET',
|
|
254
|
+
headers: headerParameters,
|
|
255
|
+
query: queryParameters,
|
|
256
|
+
}, initOverrides);
|
|
257
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RepositoryFromJSON));
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Lists all the declared repositories.
|
|
261
|
+
* Lists repositories
|
|
262
|
+
*/
|
|
263
|
+
async repositoryList(initOverrides) {
|
|
264
|
+
const response = await this.repositoryListRaw(initOverrides);
|
|
265
|
+
return await response.value();
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Searches images within the repository with the provided criteria.
|
|
269
|
+
* Searches for images within the repository
|
|
270
|
+
*/
|
|
271
|
+
async repositorySearchImagesRaw(requestParameters, initOverrides) {
|
|
272
|
+
if (requestParameters['id'] == null) {
|
|
273
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositorySearchImages().');
|
|
274
|
+
}
|
|
275
|
+
const queryParameters = {};
|
|
276
|
+
if (requestParameters['criteria'] != null) {
|
|
277
|
+
queryParameters['criteria'] = requestParameters['criteria'];
|
|
278
|
+
}
|
|
279
|
+
if (requestParameters['sorting'] != null) {
|
|
280
|
+
queryParameters['sorting'] = requestParameters['sorting'];
|
|
281
|
+
}
|
|
282
|
+
if (requestParameters['range'] != null) {
|
|
283
|
+
queryParameters['range'] = requestParameters['range'];
|
|
284
|
+
}
|
|
285
|
+
const headerParameters = {};
|
|
286
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
287
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
288
|
+
}
|
|
289
|
+
let urlPath = `/repository/{id}/searchImages`;
|
|
290
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
291
|
+
const response = await this.request({
|
|
292
|
+
path: urlPath,
|
|
293
|
+
method: 'GET',
|
|
294
|
+
headers: headerParameters,
|
|
295
|
+
query: queryParameters,
|
|
296
|
+
}, initOverrides);
|
|
297
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ImageSummaryListFromJSON(jsonValue));
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Searches images within the repository with the provided criteria.
|
|
301
|
+
* Searches for images within the repository
|
|
302
|
+
*/
|
|
303
|
+
async repositorySearchImages(requestParameters, initOverrides) {
|
|
304
|
+
const response = await this.repositorySearchImagesRaw(requestParameters, initOverrides);
|
|
305
|
+
return await response.value();
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
|
|
309
|
+
* Starts or stop the repositories
|
|
310
|
+
*/
|
|
311
|
+
async repositoryStartOrStopRaw(requestParameters, initOverrides) {
|
|
312
|
+
if (requestParameters['isStart'] == null) {
|
|
313
|
+
throw new runtime.RequiredError('isStart', 'Required parameter "isStart" was null or undefined when calling repositoryStartOrStop().');
|
|
314
|
+
}
|
|
315
|
+
const queryParameters = {};
|
|
316
|
+
if (requestParameters['isStart'] != null) {
|
|
317
|
+
queryParameters['isStart'] = requestParameters['isStart'];
|
|
318
|
+
}
|
|
319
|
+
const headerParameters = {};
|
|
320
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
321
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
322
|
+
}
|
|
323
|
+
let urlPath = `/repository/startOrStop`;
|
|
324
|
+
const response = await this.request({
|
|
325
|
+
path: urlPath,
|
|
326
|
+
method: 'PUT',
|
|
327
|
+
headers: headerParameters,
|
|
328
|
+
query: queryParameters,
|
|
329
|
+
}, initOverrides);
|
|
330
|
+
return new runtime.VoidApiResponse(response);
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
|
|
334
|
+
* Starts or stop the repositories
|
|
335
|
+
*/
|
|
336
|
+
async repositoryStartOrStop(requestParameters, initOverrides) {
|
|
337
|
+
await this.repositoryStartOrStopRaw(requestParameters, initOverrides);
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Declares an image in the repository and returns it.
|
|
341
|
+
* Creates an image in the repository
|
|
342
|
+
*/
|
|
343
|
+
async repositoryStoreImageRaw(requestParameters, initOverrides) {
|
|
344
|
+
if (requestParameters['id'] == null) {
|
|
345
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositoryStoreImage().');
|
|
346
|
+
}
|
|
347
|
+
if (requestParameters['body'] == null) {
|
|
348
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling repositoryStoreImage().');
|
|
349
|
+
}
|
|
350
|
+
const queryParameters = {};
|
|
351
|
+
if (requestParameters['sourceUrl'] != null) {
|
|
352
|
+
queryParameters['sourceUrl'] = requestParameters['sourceUrl'];
|
|
353
|
+
}
|
|
354
|
+
if (requestParameters['parentId'] != null) {
|
|
355
|
+
queryParameters['parentId'] = requestParameters['parentId'];
|
|
356
|
+
}
|
|
357
|
+
if (requestParameters['applicationMetadata'] != null) {
|
|
358
|
+
queryParameters['applicationMetadata'] = requestParameters['applicationMetadata'];
|
|
359
|
+
}
|
|
360
|
+
if (requestParameters['directoryPath'] != null) {
|
|
361
|
+
queryParameters['directoryPath'] = requestParameters['directoryPath'];
|
|
362
|
+
}
|
|
363
|
+
if (requestParameters['nameWithoutExtension'] != null) {
|
|
364
|
+
queryParameters['nameWithoutExtension'] = requestParameters['nameWithoutExtension'];
|
|
365
|
+
}
|
|
366
|
+
const headerParameters = {};
|
|
367
|
+
headerParameters['Content-Type'] = 'image/png';
|
|
368
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
369
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
370
|
+
}
|
|
371
|
+
let urlPath = `/repository/{id}/storeImage`;
|
|
372
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
373
|
+
const response = await this.request({
|
|
374
|
+
path: urlPath,
|
|
375
|
+
method: 'POST',
|
|
376
|
+
headers: headerParameters,
|
|
377
|
+
query: queryParameters,
|
|
378
|
+
body: requestParameters['body'],
|
|
379
|
+
}, initOverrides);
|
|
380
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ImageFromJSON(jsonValue));
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Declares an image in the repository and returns it.
|
|
384
|
+
* Creates an image in the repository
|
|
385
|
+
*/
|
|
386
|
+
async repositoryStoreImage(requestParameters, initOverrides) {
|
|
387
|
+
const response = await this.repositoryStoreImageRaw(requestParameters, initOverrides);
|
|
388
|
+
return await response.value();
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Synchronizes a repository against its back-end.
|
|
392
|
+
* Synchronizes a repository
|
|
393
|
+
*/
|
|
394
|
+
async repositorySynchronizeRaw(requestParameters, initOverrides) {
|
|
395
|
+
if (requestParameters['id'] == null) {
|
|
396
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositorySynchronize().');
|
|
397
|
+
}
|
|
398
|
+
const queryParameters = {};
|
|
399
|
+
const headerParameters = {};
|
|
400
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
401
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
402
|
+
}
|
|
403
|
+
let urlPath = `/repository/{id}/synchronize`;
|
|
404
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
405
|
+
const response = await this.request({
|
|
406
|
+
path: urlPath,
|
|
407
|
+
method: 'PUT',
|
|
408
|
+
headers: headerParameters,
|
|
409
|
+
query: queryParameters,
|
|
410
|
+
}, initOverrides);
|
|
411
|
+
return new runtime.VoidApiResponse(response);
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Synchronizes a repository against its back-end.
|
|
415
|
+
* Synchronizes a repository
|
|
416
|
+
*/
|
|
417
|
+
async repositorySynchronize(requestParameters, initOverrides) {
|
|
418
|
+
await this.repositorySynchronizeRaw(requestParameters, initOverrides);
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Starts or stops listening to the repository back-end images changes.
|
|
422
|
+
* Starts or stops watching a repository
|
|
423
|
+
*/
|
|
424
|
+
async repositoryWatchRaw(requestParameters, initOverrides) {
|
|
425
|
+
if (requestParameters['id'] == null) {
|
|
426
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositoryWatch().');
|
|
427
|
+
}
|
|
428
|
+
if (requestParameters['isStart'] == null) {
|
|
429
|
+
throw new runtime.RequiredError('isStart', 'Required parameter "isStart" was null or undefined when calling repositoryWatch().');
|
|
430
|
+
}
|
|
431
|
+
const queryParameters = {};
|
|
432
|
+
if (requestParameters['isStart'] != null) {
|
|
433
|
+
queryParameters['isStart'] = requestParameters['isStart'];
|
|
434
|
+
}
|
|
435
|
+
const headerParameters = {};
|
|
436
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
437
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
438
|
+
}
|
|
439
|
+
let urlPath = `/repository/{id}/watch`;
|
|
440
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
441
|
+
const response = await this.request({
|
|
442
|
+
path: urlPath,
|
|
443
|
+
method: 'PUT',
|
|
444
|
+
headers: headerParameters,
|
|
445
|
+
query: queryParameters,
|
|
446
|
+
}, initOverrides);
|
|
447
|
+
return new runtime.VoidApiResponse(response);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Starts or stops listening to the repository back-end images changes.
|
|
451
|
+
* Starts or stops watching a repository
|
|
452
|
+
*/
|
|
453
|
+
async repositoryWatch(requestParameters, initOverrides) {
|
|
454
|
+
await this.repositoryWatchRaw(requestParameters, initOverrides);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* @export
|
|
459
|
+
*/
|
|
460
|
+
export const RepositoryCreateTypeEnum = {
|
|
461
|
+
File: 'file'
|
|
462
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.6
|
|
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 * as runtime from '../runtime.js';
|
|
13
|
+
import type { Settings } from '../models/index.js';
|
|
14
|
+
export interface SettingsApiSettingsComfyuiRequest {
|
|
15
|
+
baseUrl: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* SettingsApi - interface
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface SettingsApiInterface
|
|
22
|
+
*/
|
|
23
|
+
export interface SettingsApiInterface {
|
|
24
|
+
/**
|
|
25
|
+
* Once invoked, ComfyUI related operations can be performed.
|
|
26
|
+
* @summary Sets the ComfyUI settings
|
|
27
|
+
* @param {string} baseUrl The base URL of the ComfyUI server
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
* @memberof SettingsApiInterface
|
|
31
|
+
*/
|
|
32
|
+
settingsComfyuiRaw(requestParameters: SettingsApiSettingsComfyuiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Settings>>;
|
|
33
|
+
/**
|
|
34
|
+
* Once invoked, ComfyUI related operations can be performed.
|
|
35
|
+
* Sets the ComfyUI settings
|
|
36
|
+
*/
|
|
37
|
+
settingsComfyui(requestParameters: SettingsApiSettingsComfyuiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns all the application settings.
|
|
40
|
+
* @summary Gets all the settings
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
* @memberof SettingsApiInterface
|
|
44
|
+
*/
|
|
45
|
+
settingsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Settings>>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns all the application settings.
|
|
48
|
+
* Gets all the settings
|
|
49
|
+
*/
|
|
50
|
+
settingsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
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
|
+
/**
|
|
67
|
+
* Returns all the application settings.
|
|
68
|
+
* Gets all the settings
|
|
69
|
+
*/
|
|
70
|
+
settingsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Settings>>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns all the application settings.
|
|
73
|
+
* Gets all the settings
|
|
74
|
+
*/
|
|
75
|
+
settingsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Settings>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2.6
|
|
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 * as runtime from '../runtime.js';
|
|
15
|
+
import { SettingsFromJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class SettingsApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Once invoked, ComfyUI related operations can be performed.
|
|
22
|
+
* Sets the ComfyUI settings
|
|
23
|
+
*/
|
|
24
|
+
async settingsComfyuiRaw(requestParameters, initOverrides) {
|
|
25
|
+
if (requestParameters['baseUrl'] == null) {
|
|
26
|
+
throw new runtime.RequiredError('baseUrl', 'Required parameter "baseUrl" was null or undefined when calling settingsComfyui().');
|
|
27
|
+
}
|
|
28
|
+
const queryParameters = {};
|
|
29
|
+
if (requestParameters['baseUrl'] != null) {
|
|
30
|
+
queryParameters['baseUrl'] = requestParameters['baseUrl'];
|
|
31
|
+
}
|
|
32
|
+
const headerParameters = {};
|
|
33
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
34
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
35
|
+
}
|
|
36
|
+
let urlPath = `/settings/comfyui`;
|
|
37
|
+
const response = await this.request({
|
|
38
|
+
path: urlPath,
|
|
39
|
+
method: 'PUT',
|
|
40
|
+
headers: headerParameters,
|
|
41
|
+
query: queryParameters,
|
|
42
|
+
}, initOverrides);
|
|
43
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SettingsFromJSON(jsonValue));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Once invoked, ComfyUI related operations can be performed.
|
|
47
|
+
* Sets the ComfyUI settings
|
|
48
|
+
*/
|
|
49
|
+
async settingsComfyui(requestParameters, initOverrides) {
|
|
50
|
+
const response = await this.settingsComfyuiRaw(requestParameters, initOverrides);
|
|
51
|
+
return await response.value();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Returns all the application settings.
|
|
55
|
+
* Gets all the settings
|
|
56
|
+
*/
|
|
57
|
+
async settingsGetRaw(initOverrides) {
|
|
58
|
+
const queryParameters = {};
|
|
59
|
+
const headerParameters = {};
|
|
60
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
61
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
62
|
+
}
|
|
63
|
+
let urlPath = `/settings/get`;
|
|
64
|
+
const response = await this.request({
|
|
65
|
+
path: urlPath,
|
|
66
|
+
method: 'GET',
|
|
67
|
+
headers: headerParameters,
|
|
68
|
+
query: queryParameters,
|
|
69
|
+
}, initOverrides);
|
|
70
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SettingsFromJSON(jsonValue));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns all the application settings.
|
|
74
|
+
* Gets all the settings
|
|
75
|
+
*/
|
|
76
|
+
async settingsGet(initOverrides) {
|
|
77
|
+
const response = await this.settingsGetRaw(initOverrides);
|
|
78
|
+
return await response.value();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './AdministrationApi.js';
|
|
2
|
+
export * from './ExperimentApi.js';
|
|
3
|
+
export * from './ExtensionApi.js';
|
|
4
|
+
export * from './ImageApi.js';
|
|
5
|
+
export * from './ImageAttachmentApi.js';
|
|
6
|
+
export * from './PingApi.js';
|
|
7
|
+
export * from './RepositoryApi.js';
|
|
8
|
+
export * from './SettingsApi.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './AdministrationApi.js';
|
|
4
|
+
export * from './ExperimentApi.js';
|
|
5
|
+
export * from './ExtensionApi.js';
|
|
6
|
+
export * from './ImageApi.js';
|
|
7
|
+
export * from './ImageAttachmentApi.js';
|
|
8
|
+
export * from './PingApi.js';
|
|
9
|
+
export * from './RepositoryApi.js';
|
|
10
|
+
export * from './SettingsApi.js';
|