@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,482 @@
|
|
|
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 { ExtensionFromJSON, ExtensionActivityFromJSON, ExtensionGenerationOptionsToJSON, ExtensionSettingsFromJSON, ExtensionSettingsToJSON, ExtensionsConfigurationFromJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class ExtensionApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Returns all the installed and active extensions activities.
|
|
22
|
+
* Indicates the extension activities
|
|
23
|
+
*/
|
|
24
|
+
async extensionActivitiesRaw(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 = `/extension/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(ExtensionActivityFromJSON));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns all the installed and active extensions activities.
|
|
41
|
+
* Indicates the extension activities
|
|
42
|
+
*/
|
|
43
|
+
async extensionActivities(initOverrides) {
|
|
44
|
+
const response = await this.extensionActivitiesRaw(initOverrides);
|
|
45
|
+
return await response.value();
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Scaffolds an extension respecting a set of specifications.
|
|
49
|
+
* Generates an extension
|
|
50
|
+
*/
|
|
51
|
+
async extensionGenerateRaw(requestParameters, initOverrides) {
|
|
52
|
+
if (requestParameters['withPublicSdk'] == null) {
|
|
53
|
+
throw new runtime.RequiredError('withPublicSdk', 'Required parameter "withPublicSdk" was null or undefined when calling extensionGenerate().');
|
|
54
|
+
}
|
|
55
|
+
if (requestParameters['extensionGenerationOptions'] == null) {
|
|
56
|
+
throw new runtime.RequiredError('extensionGenerationOptions', 'Required parameter "extensionGenerationOptions" was null or undefined when calling extensionGenerate().');
|
|
57
|
+
}
|
|
58
|
+
const queryParameters = {};
|
|
59
|
+
if (requestParameters['withPublicSdk'] != null) {
|
|
60
|
+
queryParameters['withPublicSdk'] = requestParameters['withPublicSdk'];
|
|
61
|
+
}
|
|
62
|
+
const headerParameters = {};
|
|
63
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
64
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
65
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
66
|
+
}
|
|
67
|
+
let urlPath = `/extension/generate`;
|
|
68
|
+
const response = await this.request({
|
|
69
|
+
path: urlPath,
|
|
70
|
+
method: 'PUT',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
body: ExtensionGenerationOptionsToJSON(requestParameters['extensionGenerationOptions']),
|
|
74
|
+
}, initOverrides);
|
|
75
|
+
return new runtime.BlobApiResponse(response);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Scaffolds an extension respecting a set of specifications.
|
|
79
|
+
* Generates an extension
|
|
80
|
+
*/
|
|
81
|
+
async extensionGenerate(requestParameters, initOverrides) {
|
|
82
|
+
const response = await this.extensionGenerateRaw(requestParameters, initOverrides);
|
|
83
|
+
return await response.value();
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Returns the details about an extension.
|
|
87
|
+
* Gets an extension
|
|
88
|
+
*/
|
|
89
|
+
async extensionGetRaw(requestParameters, initOverrides) {
|
|
90
|
+
if (requestParameters['id'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionGet().');
|
|
92
|
+
}
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
97
|
+
}
|
|
98
|
+
let urlPath = `/extension/{id}/get`;
|
|
99
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
100
|
+
const response = await this.request({
|
|
101
|
+
path: urlPath,
|
|
102
|
+
method: 'GET',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
}, initOverrides);
|
|
106
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExtensionFromJSON(jsonValue));
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Returns the details about an extension.
|
|
110
|
+
* Gets an extension
|
|
111
|
+
*/
|
|
112
|
+
async extensionGet(requestParameters, initOverrides) {
|
|
113
|
+
const response = await this.extensionGetRaw(requestParameters, initOverrides);
|
|
114
|
+
return await response.value();
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Returns the details in terms of all installed extensions capabilities, i.e. what they can offer, and the command they offer.
|
|
118
|
+
* Provides the extensions configuration
|
|
119
|
+
*/
|
|
120
|
+
async extensionGetConfigurationRaw(initOverrides) {
|
|
121
|
+
const queryParameters = {};
|
|
122
|
+
const headerParameters = {};
|
|
123
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
124
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
125
|
+
}
|
|
126
|
+
let urlPath = `/extension/getConfiguration`;
|
|
127
|
+
const response = await this.request({
|
|
128
|
+
path: urlPath,
|
|
129
|
+
method: 'GET',
|
|
130
|
+
headers: headerParameters,
|
|
131
|
+
query: queryParameters,
|
|
132
|
+
}, initOverrides);
|
|
133
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExtensionsConfigurationFromJSON(jsonValue));
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Returns the details in terms of all installed extensions capabilities, i.e. what they can offer, and the command they offer.
|
|
137
|
+
* Provides the extensions configuration
|
|
138
|
+
*/
|
|
139
|
+
async extensionGetConfiguration(initOverrides) {
|
|
140
|
+
const response = await this.extensionGetConfigurationRaw(initOverrides);
|
|
141
|
+
return await response.value();
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Returns the settings of an extension.
|
|
145
|
+
* Gets an extension settings
|
|
146
|
+
*/
|
|
147
|
+
async extensionGetSettingsRaw(requestParameters, initOverrides) {
|
|
148
|
+
if (requestParameters['id'] == null) {
|
|
149
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionGetSettings().');
|
|
150
|
+
}
|
|
151
|
+
const queryParameters = {};
|
|
152
|
+
const headerParameters = {};
|
|
153
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
154
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
155
|
+
}
|
|
156
|
+
let urlPath = `/extension/{id}/getSettings`;
|
|
157
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
158
|
+
const response = await this.request({
|
|
159
|
+
path: urlPath,
|
|
160
|
+
method: 'GET',
|
|
161
|
+
headers: headerParameters,
|
|
162
|
+
query: queryParameters,
|
|
163
|
+
}, initOverrides);
|
|
164
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExtensionSettingsFromJSON(jsonValue));
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Returns the settings of an extension.
|
|
168
|
+
* Gets an extension settings
|
|
169
|
+
*/
|
|
170
|
+
async extensionGetSettings(requestParameters, initOverrides) {
|
|
171
|
+
const response = await this.extensionGetSettingsRaw(requestParameters, initOverrides);
|
|
172
|
+
return await response.value();
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Analyzes the extension and installs it.
|
|
176
|
+
* Installs an extension
|
|
177
|
+
*/
|
|
178
|
+
async extensionInstallRaw(requestParameters, initOverrides) {
|
|
179
|
+
if (requestParameters['body'] == null) {
|
|
180
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling extensionInstall().');
|
|
181
|
+
}
|
|
182
|
+
const queryParameters = {};
|
|
183
|
+
const headerParameters = {};
|
|
184
|
+
headerParameters['Content-Type'] = 'application/zip';
|
|
185
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
186
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
187
|
+
}
|
|
188
|
+
let urlPath = `/extension/install`;
|
|
189
|
+
const response = await this.request({
|
|
190
|
+
path: urlPath,
|
|
191
|
+
method: 'POST',
|
|
192
|
+
headers: headerParameters,
|
|
193
|
+
query: queryParameters,
|
|
194
|
+
body: requestParameters['body'],
|
|
195
|
+
}, initOverrides);
|
|
196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExtensionFromJSON(jsonValue));
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Analyzes the extension and installs it.
|
|
200
|
+
* Installs an extension
|
|
201
|
+
*/
|
|
202
|
+
async extensionInstall(requestParameters, initOverrides) {
|
|
203
|
+
const response = await this.extensionInstallRaw(requestParameters, initOverrides);
|
|
204
|
+
return await response.value();
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Returns all installed extensions.
|
|
208
|
+
* Lists all extensions
|
|
209
|
+
*/
|
|
210
|
+
async extensionListRaw(initOverrides) {
|
|
211
|
+
const queryParameters = {};
|
|
212
|
+
const headerParameters = {};
|
|
213
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
214
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
215
|
+
}
|
|
216
|
+
let urlPath = `/extension/list`;
|
|
217
|
+
const response = await this.request({
|
|
218
|
+
path: urlPath,
|
|
219
|
+
method: 'GET',
|
|
220
|
+
headers: headerParameters,
|
|
221
|
+
query: queryParameters,
|
|
222
|
+
}, initOverrides);
|
|
223
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ExtensionFromJSON));
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Returns all installed extensions.
|
|
227
|
+
* Lists all extensions
|
|
228
|
+
*/
|
|
229
|
+
async extensionList(initOverrides) {
|
|
230
|
+
const response = await this.extensionListRaw(initOverrides);
|
|
231
|
+
return await response.value();
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Either stops and marks it as paused the extension or starts it.
|
|
235
|
+
* Pauses or resumes an extension
|
|
236
|
+
*/
|
|
237
|
+
async extensionPauseOrResumeRaw(requestParameters, initOverrides) {
|
|
238
|
+
if (requestParameters['id'] == null) {
|
|
239
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionPauseOrResume().');
|
|
240
|
+
}
|
|
241
|
+
if (requestParameters['isPause'] == null) {
|
|
242
|
+
throw new runtime.RequiredError('isPause', 'Required parameter "isPause" was null or undefined when calling extensionPauseOrResume().');
|
|
243
|
+
}
|
|
244
|
+
const queryParameters = {};
|
|
245
|
+
if (requestParameters['isPause'] != null) {
|
|
246
|
+
queryParameters['isPause'] = requestParameters['isPause'];
|
|
247
|
+
}
|
|
248
|
+
const headerParameters = {};
|
|
249
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
250
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
251
|
+
}
|
|
252
|
+
let urlPath = `/extension/{id}/pauseOrResume`;
|
|
253
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
254
|
+
const response = await this.request({
|
|
255
|
+
path: urlPath,
|
|
256
|
+
method: 'PUT',
|
|
257
|
+
headers: headerParameters,
|
|
258
|
+
query: queryParameters,
|
|
259
|
+
}, initOverrides);
|
|
260
|
+
return new runtime.VoidApiResponse(response);
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Either stops and marks it as paused the extension or starts it.
|
|
264
|
+
* Pauses or resumes an extension
|
|
265
|
+
*/
|
|
266
|
+
async extensionPauseOrResume(requestParameters, initOverrides) {
|
|
267
|
+
await this.extensionPauseOrResumeRaw(requestParameters, initOverrides);
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Runs the command defined for images, by triggering the relevant event to the extension.
|
|
271
|
+
* Runs a command exposed by an extension, on images
|
|
272
|
+
*/
|
|
273
|
+
async extensionRunImageCommandRaw(requestParameters, initOverrides) {
|
|
274
|
+
if (requestParameters['id'] == null) {
|
|
275
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionRunImageCommand().');
|
|
276
|
+
}
|
|
277
|
+
if (requestParameters['commandId'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('commandId', 'Required parameter "commandId" was null or undefined when calling extensionRunImageCommand().');
|
|
279
|
+
}
|
|
280
|
+
if (requestParameters['imageIds'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('imageIds', 'Required parameter "imageIds" was null or undefined when calling extensionRunImageCommand().');
|
|
282
|
+
}
|
|
283
|
+
const queryParameters = {};
|
|
284
|
+
if (requestParameters['commandId'] != null) {
|
|
285
|
+
queryParameters['commandId'] = requestParameters['commandId'];
|
|
286
|
+
}
|
|
287
|
+
if (requestParameters['imageIds'] != null) {
|
|
288
|
+
queryParameters['imageIds'] = requestParameters['imageIds'];
|
|
289
|
+
}
|
|
290
|
+
const headerParameters = {};
|
|
291
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
292
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
293
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
294
|
+
}
|
|
295
|
+
let urlPath = `/extension/{id}/runImageCommand`;
|
|
296
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
297
|
+
const response = await this.request({
|
|
298
|
+
path: urlPath,
|
|
299
|
+
method: 'PUT',
|
|
300
|
+
headers: headerParameters,
|
|
301
|
+
query: queryParameters,
|
|
302
|
+
body: requestParameters['body'],
|
|
303
|
+
}, initOverrides);
|
|
304
|
+
return new runtime.VoidApiResponse(response);
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Runs the command defined for images, by triggering the relevant event to the extension.
|
|
308
|
+
* Runs a command exposed by an extension, on images
|
|
309
|
+
*/
|
|
310
|
+
async extensionRunImageCommand(requestParameters, initOverrides) {
|
|
311
|
+
await this.extensionRunImageCommandRaw(requestParameters, initOverrides);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Runs the command defined for the process, by triggering the relevant event to the extension.
|
|
315
|
+
* Runs a command exposed by an extension, on the process
|
|
316
|
+
*/
|
|
317
|
+
async extensionRunProcessCommandRaw(requestParameters, initOverrides) {
|
|
318
|
+
if (requestParameters['id'] == null) {
|
|
319
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionRunProcessCommand().');
|
|
320
|
+
}
|
|
321
|
+
if (requestParameters['commandId'] == null) {
|
|
322
|
+
throw new runtime.RequiredError('commandId', 'Required parameter "commandId" was null or undefined when calling extensionRunProcessCommand().');
|
|
323
|
+
}
|
|
324
|
+
const queryParameters = {};
|
|
325
|
+
if (requestParameters['commandId'] != null) {
|
|
326
|
+
queryParameters['commandId'] = requestParameters['commandId'];
|
|
327
|
+
}
|
|
328
|
+
const headerParameters = {};
|
|
329
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
330
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
331
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
332
|
+
}
|
|
333
|
+
let urlPath = `/extension/{id}/runProcessCommand`;
|
|
334
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
335
|
+
const response = await this.request({
|
|
336
|
+
path: urlPath,
|
|
337
|
+
method: 'PUT',
|
|
338
|
+
headers: headerParameters,
|
|
339
|
+
query: queryParameters,
|
|
340
|
+
body: requestParameters['body'],
|
|
341
|
+
}, initOverrides);
|
|
342
|
+
return new runtime.VoidApiResponse(response);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Runs the command defined for the process, by triggering the relevant event to the extension.
|
|
346
|
+
* Runs a command exposed by an extension, on the process
|
|
347
|
+
*/
|
|
348
|
+
async extensionRunProcessCommand(requestParameters, initOverrides) {
|
|
349
|
+
await this.extensionRunProcessCommandRaw(requestParameters, initOverrides);
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Defines the settings of an extension.
|
|
353
|
+
* Sets an extension settings
|
|
354
|
+
*/
|
|
355
|
+
async extensionSetSettingsRaw(requestParameters, initOverrides) {
|
|
356
|
+
if (requestParameters['id'] == null) {
|
|
357
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionSetSettings().');
|
|
358
|
+
}
|
|
359
|
+
if (requestParameters['extensionSettings'] == null) {
|
|
360
|
+
throw new runtime.RequiredError('extensionSettings', 'Required parameter "extensionSettings" was null or undefined when calling extensionSetSettings().');
|
|
361
|
+
}
|
|
362
|
+
const queryParameters = {};
|
|
363
|
+
const headerParameters = {};
|
|
364
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
365
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
366
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
367
|
+
}
|
|
368
|
+
let urlPath = `/extension/{id}/setSettings`;
|
|
369
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
370
|
+
const response = await this.request({
|
|
371
|
+
path: urlPath,
|
|
372
|
+
method: 'PUT',
|
|
373
|
+
headers: headerParameters,
|
|
374
|
+
query: queryParameters,
|
|
375
|
+
body: ExtensionSettingsToJSON(requestParameters['extensionSettings']),
|
|
376
|
+
}, initOverrides);
|
|
377
|
+
return new runtime.VoidApiResponse(response);
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Defines the settings of an extension.
|
|
381
|
+
* Sets an extension settings
|
|
382
|
+
*/
|
|
383
|
+
async extensionSetSettings(requestParameters, initOverrides) {
|
|
384
|
+
await this.extensionSetSettingsRaw(requestParameters, initOverrides);
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Iterates over all images available in the repositories and asks the extension to operate its work if the image is not indexed by it.
|
|
388
|
+
* Synchronizes the images via an extension
|
|
389
|
+
*/
|
|
390
|
+
async extensionSynchronizeRaw(requestParameters, initOverrides) {
|
|
391
|
+
if (requestParameters['id'] == null) {
|
|
392
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionSynchronize().');
|
|
393
|
+
}
|
|
394
|
+
const queryParameters = {};
|
|
395
|
+
const headerParameters = {};
|
|
396
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
397
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
398
|
+
}
|
|
399
|
+
let urlPath = `/extension/{id}/synchronize`;
|
|
400
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
401
|
+
const response = await this.request({
|
|
402
|
+
path: urlPath,
|
|
403
|
+
method: 'PUT',
|
|
404
|
+
headers: headerParameters,
|
|
405
|
+
query: queryParameters,
|
|
406
|
+
}, initOverrides);
|
|
407
|
+
return new runtime.VoidApiResponse(response);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Iterates over all images available in the repositories and asks the extension to operate its work if the image is not indexed by it.
|
|
411
|
+
* Synchronizes the images via an extension
|
|
412
|
+
*/
|
|
413
|
+
async extensionSynchronize(requestParameters, initOverrides) {
|
|
414
|
+
await this.extensionSynchronizeRaw(requestParameters, initOverrides);
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Stops the extension and uninstalls it.
|
|
418
|
+
* Uninstalls an extension
|
|
419
|
+
*/
|
|
420
|
+
async extensionUninstallRaw(requestParameters, initOverrides) {
|
|
421
|
+
if (requestParameters['id'] == null) {
|
|
422
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionUninstall().');
|
|
423
|
+
}
|
|
424
|
+
const queryParameters = {};
|
|
425
|
+
const headerParameters = {};
|
|
426
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
427
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
428
|
+
}
|
|
429
|
+
let urlPath = `/extension/{id}/uninstall`;
|
|
430
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
431
|
+
const response = await this.request({
|
|
432
|
+
path: urlPath,
|
|
433
|
+
method: 'DELETE',
|
|
434
|
+
headers: headerParameters,
|
|
435
|
+
query: queryParameters,
|
|
436
|
+
}, initOverrides);
|
|
437
|
+
return new runtime.VoidApiResponse(response);
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Stops the extension and uninstalls it.
|
|
441
|
+
* Uninstalls an extension
|
|
442
|
+
*/
|
|
443
|
+
async extensionUninstall(requestParameters, initOverrides) {
|
|
444
|
+
await this.extensionUninstallRaw(requestParameters, initOverrides);
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Analyzes the extension and updates it.
|
|
448
|
+
* Updates an extension
|
|
449
|
+
*/
|
|
450
|
+
async extensionUpdateRaw(requestParameters, initOverrides) {
|
|
451
|
+
if (requestParameters['id'] == null) {
|
|
452
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionUpdate().');
|
|
453
|
+
}
|
|
454
|
+
if (requestParameters['body'] == null) {
|
|
455
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling extensionUpdate().');
|
|
456
|
+
}
|
|
457
|
+
const queryParameters = {};
|
|
458
|
+
const headerParameters = {};
|
|
459
|
+
headerParameters['Content-Type'] = 'application/zip';
|
|
460
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
461
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
462
|
+
}
|
|
463
|
+
let urlPath = `/extension/{id}/update`;
|
|
464
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
465
|
+
const response = await this.request({
|
|
466
|
+
path: urlPath,
|
|
467
|
+
method: 'PUT',
|
|
468
|
+
headers: headerParameters,
|
|
469
|
+
query: queryParameters,
|
|
470
|
+
body: requestParameters['body'],
|
|
471
|
+
}, initOverrides);
|
|
472
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExtensionFromJSON(jsonValue));
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Analyzes the extension and updates it.
|
|
476
|
+
* Updates an extension
|
|
477
|
+
*/
|
|
478
|
+
async extensionUpdate(requestParameters, initOverrides) {
|
|
479
|
+
const response = await this.extensionUpdateRaw(requestParameters, initOverrides);
|
|
480
|
+
return await response.value();
|
|
481
|
+
}
|
|
482
|
+
}
|