@picteus/extension-sdk 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/featureViewGrammar.d.ts +2814 -0
- package/dist/featureViewGrammar.js +2612 -0
- package/dist/generated/featureViewGrammar.d.ts +3913 -0
- package/dist/generated/featureViewGrammar.js +4099 -0
- package/dist/generated/viewKit.d.ts +3853 -0
- package/dist/generated/viewKit.js +4022 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- 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/CollectionApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/CollectionApi.js +1 -1
- package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +69 -34
- package/dist/picteus-ws-client/apis/ExtensionApi.js +83 -38
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +36 -5
- package/dist/picteus-ws-client/apis/ImageApi.js +44 -3
- 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 +5 -5
- package/dist/picteus-ws-client/apis/RepositoryApi.js +3 -3
- package/dist/picteus-ws-client/apis/SettingsApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/SettingsApi.js +1 -1
- package/dist/picteus-ws-client/models/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/ApplicationConfiguration.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationConfiguration.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadata.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadata.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItem.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItem.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.d.ts +4 -2
- package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationSettings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationSettings.js +1 -1
- package/dist/picteus-ws-client/models/Collection.d.ts +1 -1
- package/dist/picteus-ws-client/models/Collection.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/ConstantsRegistry.d.ts +1 -1
- package/dist/picteus-ws-client/models/ConstantsRegistry.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 +5 -5
- package/dist/picteus-ws-client/models/Extension.js +5 -5
- package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +23 -5
- package/dist/picteus-ws-client/models/ExtensionActivity.js +17 -5
- 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/ExtensionActivityState.d.ts +25 -0
- package/dist/picteus-ws-client/models/ExtensionActivityState.js +43 -0
- package/dist/picteus-ws-client/models/ExtensionAndManual.d.ts +5 -5
- package/dist/picteus-ws-client/models/ExtensionAndManual.js +5 -5
- package/dist/picteus-ws-client/models/ExtensionCategory.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionCategory.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/ExtensionIdImageEmbeddingName.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionIdImageEmbeddingName.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/ExtensionImageFeatureName.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeatureName.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeaturesAttribute.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeaturesAttribute.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/ExtensionImageTagsAttribute.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageTagsAttribute.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 +5 -3
- package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionState.d.ts +25 -0
- package/dist/picteus-ws-client/models/ExtensionState.js +43 -0
- 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 +13 -1
- package/dist/picteus-ws-client/models/GenerationRecipe.js +5 -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/ImageEmbedding.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageEmbedding.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 +3 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.js +4 -2
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +2 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.js +2 -1
- package/dist/picteus-ws-client/models/ImageFeatureValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureValue.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/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/InstructionsPrompt.d.ts +5 -3
- package/dist/picteus-ws-client/models/InstructionsPrompt.js +1 -1
- package/dist/picteus-ws-client/models/Manifest.d.ts +5 -3
- 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 -3
- package/dist/picteus-ws-client/models/ManifestEvent.js +1 -3
- 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 +5 -3
- 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/ManifestExtensionCommandUi.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElementIntegration.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElementIntegration.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 +1 -1
- package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.js +1 -1
- package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
- package/dist/picteus-ws-client/models/PromptKind.d.ts +1 -1
- package/dist/picteus-ws-client/models/PromptKind.js +1 -1
- package/dist/picteus-ws-client/models/Repository.d.ts +5 -5
- package/dist/picteus-ws-client/models/Repository.js +5 -5
- 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/RepositoryState.d.ts +27 -0
- package/dist/picteus-ws-client/models/RepositoryState.js +45 -0
- package/dist/picteus-ws-client/models/RunCommandParameters.d.ts +5 -3
- package/dist/picteus-ws-client/models/RunCommandParameters.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/SearchFeatureComparisonOperator.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureCondition.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureCondition.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatures.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatures.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeaturesResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeaturesResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchFilter.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFilter.js +1 -1
- package/dist/picteus-ws-client/models/SearchFilterOrigin.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFilterOrigin.js +1 -1
- package/dist/picteus-ws-client/models/SearchImageIdResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImageIdResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchImageResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImageResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchImageSummaryResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImageSummaryResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchImagesOrigin.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImagesOrigin.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/SearchMediaUrlResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchMediaUrlResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchOriginNature.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchOriginNature.js +1 -1
- package/dist/picteus-ws-client/models/SearchParameters.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchParameters.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/SearchRepositoriesOrigin.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.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/SearchTagsResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchTagsResult.js +1 -1
- package/dist/picteus-ws-client/models/Software.d.ts +1 -1
- package/dist/picteus-ws-client/models/Software.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/UserInterfaceSidebarIntegration.d.ts +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceSidebarIntegration.js +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceWindowIntegration.d.ts +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceWindowIntegration.js +1 -1
- package/dist/picteus-ws-client/models/index.d.ts +3 -3
- package/dist/picteus-ws-client/models/index.js +3 -3
- package/dist/picteus-ws-client/runtime.d.ts +1 -1
- package/dist/picteus-ws-client/runtime.js +1 -1
- package/dist/picteusExtension.d.ts +1 -1
- package/dist/picteusExtension.js +18 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Picteus
|
|
3
3
|
* The Picteus API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.22.0
|
|
6
6
|
* Contact: edouard@koppasoft.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,10 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { Extension, ExtensionActivity, ExtensionAndManual, ExtensionGenerationOptions, ExtensionSettings, ExtensionsConfiguration, RunCommandParameters } from '../models/index.js';
|
|
13
|
+
import type { Extension, ExtensionActivity, ExtensionAndManual, ExtensionGenerationOptions, ExtensionSettings, ExtensionState, ExtensionsConfiguration, RunCommandParameters } from '../models/index.js';
|
|
14
14
|
export interface ExtensionApiExtensionBuildRequest {
|
|
15
15
|
body: Blob;
|
|
16
16
|
}
|
|
17
|
+
export interface ExtensionApiExtensionChangeStateRequest {
|
|
18
|
+
id: string;
|
|
19
|
+
state: ExtensionState;
|
|
20
|
+
}
|
|
21
|
+
export interface ExtensionApiExtensionCompileRequest {
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
17
24
|
export interface ExtensionApiExtensionGenerateRequest {
|
|
18
25
|
withPublicSdk: boolean;
|
|
19
26
|
extensionGenerationOptions: ExtensionGenerationOptions;
|
|
@@ -25,6 +32,8 @@ export interface ExtensionApiExtensionGetSettingsRequest {
|
|
|
25
32
|
id: string;
|
|
26
33
|
}
|
|
27
34
|
export interface ExtensionApiExtensionInstallRequest {
|
|
35
|
+
state: ExtensionState;
|
|
36
|
+
asUnpacked: boolean;
|
|
28
37
|
body: Blob;
|
|
29
38
|
}
|
|
30
39
|
export interface ExtensionApiExtensionInstallChromeExtensionRequest {
|
|
@@ -32,10 +41,6 @@ export interface ExtensionApiExtensionInstallChromeExtensionRequest {
|
|
|
32
41
|
chromeExtensionName: string;
|
|
33
42
|
body: Blob;
|
|
34
43
|
}
|
|
35
|
-
export interface ExtensionApiExtensionPauseOrResumeRequest {
|
|
36
|
-
id: string;
|
|
37
|
-
isPause: boolean;
|
|
38
|
-
}
|
|
39
44
|
export interface ExtensionApiExtensionResetSettingsRequest {
|
|
40
45
|
id: string;
|
|
41
46
|
}
|
|
@@ -47,7 +52,9 @@ export interface ExtensionApiExtensionRunImageCommandRequest {
|
|
|
47
52
|
export interface ExtensionApiExtensionRunProcessCommandRequest {
|
|
48
53
|
id: string;
|
|
49
54
|
commandId: string;
|
|
50
|
-
|
|
55
|
+
requestBody?: {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
};
|
|
51
58
|
}
|
|
52
59
|
export interface ExtensionApiExtensionSetSettingsRequest {
|
|
53
60
|
id: string;
|
|
@@ -62,6 +69,7 @@ export interface ExtensionApiExtensionUninstallRequest {
|
|
|
62
69
|
export interface ExtensionApiExtensionUpdateRequest {
|
|
63
70
|
id: string;
|
|
64
71
|
body: Blob;
|
|
72
|
+
state?: ExtensionState;
|
|
65
73
|
}
|
|
66
74
|
/**
|
|
67
75
|
* ExtensionApi - interface
|
|
@@ -97,11 +105,40 @@ export interface ExtensionApiInterface {
|
|
|
97
105
|
* Builds an extension
|
|
98
106
|
*/
|
|
99
107
|
extensionBuild(requestParameters: ExtensionApiExtensionBuildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
108
|
+
/**
|
|
109
|
+
* Depending on the state, the extension will be stopped or started.
|
|
110
|
+
* @summary Changes the state of an extension
|
|
111
|
+
* @param {string} id The extension identifier
|
|
112
|
+
* @param {ExtensionState} state The new state to apply
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
* @memberof ExtensionApiInterface
|
|
116
|
+
*/
|
|
117
|
+
extensionChangeStateRaw(requestParameters: ExtensionApiExtensionChangeStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
118
|
+
/**
|
|
119
|
+
* Depending on the state, the extension will be stopped or started.
|
|
120
|
+
* Changes the state of an extension
|
|
121
|
+
*/
|
|
122
|
+
extensionChangeState(requestParameters: ExtensionApiExtensionChangeStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Compiles an unpacked extension.
|
|
125
|
+
* @summary Compiles an extension
|
|
126
|
+
* @param {string} id The extension identifier
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
* @memberof ExtensionApiInterface
|
|
130
|
+
*/
|
|
131
|
+
extensionCompileRaw(requestParameters: ExtensionApiExtensionCompileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
132
|
+
/**
|
|
133
|
+
* Compiles an unpacked extension.
|
|
134
|
+
* Compiles an extension
|
|
135
|
+
*/
|
|
136
|
+
extensionCompile(requestParameters: ExtensionApiExtensionCompileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
100
137
|
/**
|
|
101
138
|
* Scaffolds an extension respecting a set of specifications.
|
|
102
139
|
* @summary Generates an extension
|
|
103
140
|
* @param {boolean} withPublicSdk Should the extension be dependent on the public extension SDK or the internal private one
|
|
104
|
-
* @param {ExtensionGenerationOptions} extensionGenerationOptions
|
|
141
|
+
* @param {ExtensionGenerationOptions} extensionGenerationOptions
|
|
105
142
|
* @param {*} [options] Override http request option.
|
|
106
143
|
* @throws {RequiredError}
|
|
107
144
|
* @memberof ExtensionApiInterface
|
|
@@ -156,6 +193,8 @@ export interface ExtensionApiInterface {
|
|
|
156
193
|
/**
|
|
157
194
|
* Analyzes the extension and installs it.
|
|
158
195
|
* @summary Installs an extension
|
|
196
|
+
* @param {ExtensionState} state Whether the extension should be started if the installation is successful
|
|
197
|
+
* @param {boolean} asUnpacked Whether the extension should be installed in the unpacked directory
|
|
159
198
|
* @param {Blob} body The extension archive
|
|
160
199
|
* @param {*} [options] Override http request option.
|
|
161
200
|
* @throws {RequiredError}
|
|
@@ -196,21 +235,6 @@ export interface ExtensionApiInterface {
|
|
|
196
235
|
* Lists all extensions
|
|
197
236
|
*/
|
|
198
237
|
extensionList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Extension>>;
|
|
199
|
-
/**
|
|
200
|
-
* Either stops and marks it as paused the extension or starts it.
|
|
201
|
-
* @summary Pauses or resumes an extension
|
|
202
|
-
* @param {string} id The extension identifier
|
|
203
|
-
* @param {boolean} isPause Whether the extension should be paused
|
|
204
|
-
* @param {*} [options] Override http request option.
|
|
205
|
-
* @throws {RequiredError}
|
|
206
|
-
* @memberof ExtensionApiInterface
|
|
207
|
-
*/
|
|
208
|
-
extensionPauseOrResumeRaw(requestParameters: ExtensionApiExtensionPauseOrResumeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
209
|
-
/**
|
|
210
|
-
* Either stops and marks it as paused the extension or starts it.
|
|
211
|
-
* Pauses or resumes an extension
|
|
212
|
-
*/
|
|
213
|
-
extensionPauseOrResume(requestParameters: ExtensionApiExtensionPauseOrResumeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
214
238
|
/**
|
|
215
239
|
* Reverts the settings of an extension to its default value.
|
|
216
240
|
* @summary Resets the settings of an extension
|
|
@@ -246,7 +270,7 @@ export interface ExtensionApiInterface {
|
|
|
246
270
|
* @summary Runs a command exposed by an extension, on the process
|
|
247
271
|
* @param {string} id The extension identifier
|
|
248
272
|
* @param {string} commandId The identifier of the command
|
|
249
|
-
* @param {
|
|
273
|
+
* @param {{ [key: string]: any; }} [requestBody] The command parameters
|
|
250
274
|
* @param {*} [options] Override http request option.
|
|
251
275
|
* @throws {RequiredError}
|
|
252
276
|
* @memberof ExtensionApiInterface
|
|
@@ -305,6 +329,7 @@ export interface ExtensionApiInterface {
|
|
|
305
329
|
* @summary Updates an extension
|
|
306
330
|
* @param {string} id The extension identifier
|
|
307
331
|
* @param {Blob} body The extension archive
|
|
332
|
+
* @param {ExtensionState} [state] The new state of the extension if it was successfully updated
|
|
308
333
|
* @param {*} [options] Override http request option.
|
|
309
334
|
* @throws {RequiredError}
|
|
310
335
|
* @memberof ExtensionApiInterface
|
|
@@ -340,6 +365,26 @@ export declare class ExtensionApi extends runtime.BaseAPI implements ExtensionAp
|
|
|
340
365
|
* Builds an extension
|
|
341
366
|
*/
|
|
342
367
|
extensionBuild(requestParameters: ExtensionApiExtensionBuildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
368
|
+
/**
|
|
369
|
+
* Depending on the state, the extension will be stopped or started.
|
|
370
|
+
* Changes the state of an extension
|
|
371
|
+
*/
|
|
372
|
+
extensionChangeStateRaw(requestParameters: ExtensionApiExtensionChangeStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
373
|
+
/**
|
|
374
|
+
* Depending on the state, the extension will be stopped or started.
|
|
375
|
+
* Changes the state of an extension
|
|
376
|
+
*/
|
|
377
|
+
extensionChangeState(requestParameters: ExtensionApiExtensionChangeStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
378
|
+
/**
|
|
379
|
+
* Compiles an unpacked extension.
|
|
380
|
+
* Compiles an extension
|
|
381
|
+
*/
|
|
382
|
+
extensionCompileRaw(requestParameters: ExtensionApiExtensionCompileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
383
|
+
/**
|
|
384
|
+
* Compiles an unpacked extension.
|
|
385
|
+
* Compiles an extension
|
|
386
|
+
*/
|
|
387
|
+
extensionCompile(requestParameters: ExtensionApiExtensionCompileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
343
388
|
/**
|
|
344
389
|
* Scaffolds an extension respecting a set of specifications.
|
|
345
390
|
* Generates an extension
|
|
@@ -410,16 +455,6 @@ export declare class ExtensionApi extends runtime.BaseAPI implements ExtensionAp
|
|
|
410
455
|
* Lists all extensions
|
|
411
456
|
*/
|
|
412
457
|
extensionList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Extension>>;
|
|
413
|
-
/**
|
|
414
|
-
* Either stops and marks it as paused the extension or starts it.
|
|
415
|
-
* Pauses or resumes an extension
|
|
416
|
-
*/
|
|
417
|
-
extensionPauseOrResumeRaw(requestParameters: ExtensionApiExtensionPauseOrResumeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
418
|
-
/**
|
|
419
|
-
* Either stops and marks it as paused the extension or starts it.
|
|
420
|
-
* Pauses or resumes an extension
|
|
421
|
-
*/
|
|
422
|
-
extensionPauseOrResume(requestParameters: ExtensionApiExtensionPauseOrResumeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
423
458
|
/**
|
|
424
459
|
* Reverts the settings of an extension to its default value.
|
|
425
460
|
* Resets the settings of an extension
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Picteus
|
|
5
5
|
* The Picteus API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.22.0
|
|
8
8
|
* Contact: edouard@koppasoft.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -76,6 +76,72 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
76
76
|
const response = await this.extensionBuildRaw(requestParameters, initOverrides);
|
|
77
77
|
return await response.value();
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Depending on the state, the extension will be stopped or started.
|
|
81
|
+
* Changes the state of an extension
|
|
82
|
+
*/
|
|
83
|
+
async extensionChangeStateRaw(requestParameters, initOverrides) {
|
|
84
|
+
if (requestParameters['id'] == null) {
|
|
85
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionChangeState().');
|
|
86
|
+
}
|
|
87
|
+
if (requestParameters['state'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('state', 'Required parameter "state" was null or undefined when calling extensionChangeState().');
|
|
89
|
+
}
|
|
90
|
+
const queryParameters = {};
|
|
91
|
+
if (requestParameters['state'] != null) {
|
|
92
|
+
queryParameters['state'] = requestParameters['state'];
|
|
93
|
+
}
|
|
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}/changeState`;
|
|
99
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
100
|
+
const response = await this.request({
|
|
101
|
+
path: urlPath,
|
|
102
|
+
method: 'PUT',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
}, initOverrides);
|
|
106
|
+
return new runtime.VoidApiResponse(response);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Depending on the state, the extension will be stopped or started.
|
|
110
|
+
* Changes the state of an extension
|
|
111
|
+
*/
|
|
112
|
+
async extensionChangeState(requestParameters, initOverrides) {
|
|
113
|
+
await this.extensionChangeStateRaw(requestParameters, initOverrides);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Compiles an unpacked extension.
|
|
117
|
+
* Compiles an extension
|
|
118
|
+
*/
|
|
119
|
+
async extensionCompileRaw(requestParameters, initOverrides) {
|
|
120
|
+
if (requestParameters['id'] == null) {
|
|
121
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionCompile().');
|
|
122
|
+
}
|
|
123
|
+
const queryParameters = {};
|
|
124
|
+
const headerParameters = {};
|
|
125
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
126
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
127
|
+
}
|
|
128
|
+
let urlPath = `/extension/{id}/compile`;
|
|
129
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
130
|
+
const response = await this.request({
|
|
131
|
+
path: urlPath,
|
|
132
|
+
method: 'PUT',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
}, initOverrides);
|
|
136
|
+
return new runtime.VoidApiResponse(response);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Compiles an unpacked extension.
|
|
140
|
+
* Compiles an extension
|
|
141
|
+
*/
|
|
142
|
+
async extensionCompile(requestParameters, initOverrides) {
|
|
143
|
+
await this.extensionCompileRaw(requestParameters, initOverrides);
|
|
144
|
+
}
|
|
79
145
|
/**
|
|
80
146
|
* Scaffolds an extension respecting a set of specifications.
|
|
81
147
|
* Generates an extension
|
|
@@ -208,10 +274,22 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
208
274
|
* Installs an extension
|
|
209
275
|
*/
|
|
210
276
|
async extensionInstallRaw(requestParameters, initOverrides) {
|
|
277
|
+
if (requestParameters['state'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('state', 'Required parameter "state" was null or undefined when calling extensionInstall().');
|
|
279
|
+
}
|
|
280
|
+
if (requestParameters['asUnpacked'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('asUnpacked', 'Required parameter "asUnpacked" was null or undefined when calling extensionInstall().');
|
|
282
|
+
}
|
|
211
283
|
if (requestParameters['body'] == null) {
|
|
212
284
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling extensionInstall().');
|
|
213
285
|
}
|
|
214
286
|
const queryParameters = {};
|
|
287
|
+
if (requestParameters['state'] != null) {
|
|
288
|
+
queryParameters['state'] = requestParameters['state'];
|
|
289
|
+
}
|
|
290
|
+
if (requestParameters['asUnpacked'] != null) {
|
|
291
|
+
queryParameters['asUnpacked'] = requestParameters['asUnpacked'];
|
|
292
|
+
}
|
|
215
293
|
const headerParameters = {};
|
|
216
294
|
headerParameters['Content-Type'] = 'application/zip';
|
|
217
295
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -303,42 +381,6 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
303
381
|
const response = await this.extensionListRaw(initOverrides);
|
|
304
382
|
return await response.value();
|
|
305
383
|
}
|
|
306
|
-
/**
|
|
307
|
-
* Either stops and marks it as paused the extension or starts it.
|
|
308
|
-
* Pauses or resumes an extension
|
|
309
|
-
*/
|
|
310
|
-
async extensionPauseOrResumeRaw(requestParameters, initOverrides) {
|
|
311
|
-
if (requestParameters['id'] == null) {
|
|
312
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionPauseOrResume().');
|
|
313
|
-
}
|
|
314
|
-
if (requestParameters['isPause'] == null) {
|
|
315
|
-
throw new runtime.RequiredError('isPause', 'Required parameter "isPause" was null or undefined when calling extensionPauseOrResume().');
|
|
316
|
-
}
|
|
317
|
-
const queryParameters = {};
|
|
318
|
-
if (requestParameters['isPause'] != null) {
|
|
319
|
-
queryParameters['isPause'] = requestParameters['isPause'];
|
|
320
|
-
}
|
|
321
|
-
const headerParameters = {};
|
|
322
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
323
|
-
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
324
|
-
}
|
|
325
|
-
let urlPath = `/extension/{id}/pauseOrResume`;
|
|
326
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
327
|
-
const response = await this.request({
|
|
328
|
-
path: urlPath,
|
|
329
|
-
method: 'PUT',
|
|
330
|
-
headers: headerParameters,
|
|
331
|
-
query: queryParameters,
|
|
332
|
-
}, initOverrides);
|
|
333
|
-
return new runtime.VoidApiResponse(response);
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* Either stops and marks it as paused the extension or starts it.
|
|
337
|
-
* Pauses or resumes an extension
|
|
338
|
-
*/
|
|
339
|
-
async extensionPauseOrResume(requestParameters, initOverrides) {
|
|
340
|
-
await this.extensionPauseOrResumeRaw(requestParameters, initOverrides);
|
|
341
|
-
}
|
|
342
384
|
/**
|
|
343
385
|
* Reverts the settings of an extension to its default value.
|
|
344
386
|
* Resets the settings of an extension
|
|
@@ -438,7 +480,7 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
438
480
|
method: 'PUT',
|
|
439
481
|
headers: headerParameters,
|
|
440
482
|
query: queryParameters,
|
|
441
|
-
body: requestParameters['
|
|
483
|
+
body: requestParameters['requestBody'],
|
|
442
484
|
}, initOverrides);
|
|
443
485
|
return new runtime.VoidApiResponse(response);
|
|
444
486
|
}
|
|
@@ -556,6 +598,9 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
556
598
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling extensionUpdate().');
|
|
557
599
|
}
|
|
558
600
|
const queryParameters = {};
|
|
601
|
+
if (requestParameters['state'] != null) {
|
|
602
|
+
queryParameters['state'] = requestParameters['state'];
|
|
603
|
+
}
|
|
559
604
|
const headerParameters = {};
|
|
560
605
|
headerParameters['Content-Type'] = 'application/zip';
|
|
561
606
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Picteus
|
|
3
3
|
* The Picteus API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.22.0
|
|
6
6
|
* Contact: edouard@koppasoft.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,6 +41,11 @@ export interface ImageApiImageDownloadRequest {
|
|
|
41
41
|
resizeRender?: ImageResizeRender;
|
|
42
42
|
stripMetadata?: boolean;
|
|
43
43
|
}
|
|
44
|
+
export interface ImageApiImageEnsureFeaturesRequest {
|
|
45
|
+
id: string;
|
|
46
|
+
extensionId: string;
|
|
47
|
+
imageFeature: Array<ImageFeature>;
|
|
48
|
+
}
|
|
44
49
|
export interface ImageApiImageEnsureTagsRequest {
|
|
45
50
|
id: string;
|
|
46
51
|
extensionId: string;
|
|
@@ -244,9 +249,25 @@ export interface ImageApiInterface {
|
|
|
244
249
|
* Downloads an image
|
|
245
250
|
*/
|
|
246
251
|
imageDownload(requestParameters: ImageApiImageDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
252
|
+
/**
|
|
253
|
+
* Ensures that the provided features are set on an image for a given extension, potentially overwriting existing ones with the same type, format and name.
|
|
254
|
+
* @summary Ensures that features are set on an image
|
|
255
|
+
* @param {string} id The image identifier
|
|
256
|
+
* @param {string} extensionId The extension identifier
|
|
257
|
+
* @param {Array<ImageFeature>} imageFeature The image features
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
* @memberof ImageApiInterface
|
|
261
|
+
*/
|
|
262
|
+
imageEnsureFeaturesRaw(requestParameters: ImageApiImageEnsureFeaturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
263
|
+
/**
|
|
264
|
+
* Ensures that the provided features are set on an image for a given extension, potentially overwriting existing ones with the same type, format and name.
|
|
265
|
+
* Ensures that features are set on an image
|
|
266
|
+
*/
|
|
267
|
+
imageEnsureFeatures(requestParameters: ImageApiImageEnsureFeaturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
247
268
|
/**
|
|
248
269
|
* Ensures that some tags are set on an image for a given extension.
|
|
249
|
-
* @summary Ensures that
|
|
270
|
+
* @summary Ensures that tags are set on an image
|
|
250
271
|
* @param {string} id The image identifier
|
|
251
272
|
* @param {string} extensionId The extension identifier
|
|
252
273
|
* @param {Array<string>} requestBody The image tags
|
|
@@ -257,7 +278,7 @@ export interface ImageApiInterface {
|
|
|
257
278
|
imageEnsureTagsRaw(requestParameters: ImageApiImageEnsureTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
258
279
|
/**
|
|
259
280
|
* Ensures that some tags are set on an image for a given extension.
|
|
260
|
-
* Ensures that
|
|
281
|
+
* Ensures that tags are set on an image
|
|
261
282
|
*/
|
|
262
283
|
imageEnsureTags(requestParameters: ImageApiImageEnsureTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
263
284
|
/**
|
|
@@ -684,14 +705,24 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
|
|
|
684
705
|
* Downloads an image
|
|
685
706
|
*/
|
|
686
707
|
imageDownload(requestParameters: ImageApiImageDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
708
|
+
/**
|
|
709
|
+
* Ensures that the provided features are set on an image for a given extension, potentially overwriting existing ones with the same type, format and name.
|
|
710
|
+
* Ensures that features are set on an image
|
|
711
|
+
*/
|
|
712
|
+
imageEnsureFeaturesRaw(requestParameters: ImageApiImageEnsureFeaturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
713
|
+
/**
|
|
714
|
+
* Ensures that the provided features are set on an image for a given extension, potentially overwriting existing ones with the same type, format and name.
|
|
715
|
+
* Ensures that features are set on an image
|
|
716
|
+
*/
|
|
717
|
+
imageEnsureFeatures(requestParameters: ImageApiImageEnsureFeaturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
687
718
|
/**
|
|
688
719
|
* Ensures that some tags are set on an image for a given extension.
|
|
689
|
-
* Ensures that
|
|
720
|
+
* Ensures that tags are set on an image
|
|
690
721
|
*/
|
|
691
722
|
imageEnsureTagsRaw(requestParameters: ImageApiImageEnsureTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
692
723
|
/**
|
|
693
724
|
* Ensures that some tags are set on an image for a given extension.
|
|
694
|
-
* Ensures that
|
|
725
|
+
* Ensures that tags are set on an image
|
|
695
726
|
*/
|
|
696
727
|
imageEnsureTags(requestParameters: ImageApiImageEnsureTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
697
728
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Picteus
|
|
5
5
|
* The Picteus API
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.22.0
|
|
8
8
|
* Contact: edouard@koppasoft.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -259,9 +259,50 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
259
259
|
const response = await this.imageDownloadRaw(requestParameters, initOverrides);
|
|
260
260
|
return await response.value();
|
|
261
261
|
}
|
|
262
|
+
/**
|
|
263
|
+
* Ensures that the provided features are set on an image for a given extension, potentially overwriting existing ones with the same type, format and name.
|
|
264
|
+
* Ensures that features are set on an image
|
|
265
|
+
*/
|
|
266
|
+
async imageEnsureFeaturesRaw(requestParameters, initOverrides) {
|
|
267
|
+
if (requestParameters['id'] == null) {
|
|
268
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageEnsureFeatures().');
|
|
269
|
+
}
|
|
270
|
+
if (requestParameters['extensionId'] == null) {
|
|
271
|
+
throw new runtime.RequiredError('extensionId', 'Required parameter "extensionId" was null or undefined when calling imageEnsureFeatures().');
|
|
272
|
+
}
|
|
273
|
+
if (requestParameters['imageFeature'] == null) {
|
|
274
|
+
throw new runtime.RequiredError('imageFeature', 'Required parameter "imageFeature" was null or undefined when calling imageEnsureFeatures().');
|
|
275
|
+
}
|
|
276
|
+
const queryParameters = {};
|
|
277
|
+
if (requestParameters['extensionId'] != null) {
|
|
278
|
+
queryParameters['extensionId'] = requestParameters['extensionId'];
|
|
279
|
+
}
|
|
280
|
+
const headerParameters = {};
|
|
281
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
282
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
283
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
284
|
+
}
|
|
285
|
+
let urlPath = `/image/{id}/ensureFeatures`;
|
|
286
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
287
|
+
const response = await this.request({
|
|
288
|
+
path: urlPath,
|
|
289
|
+
method: 'PUT',
|
|
290
|
+
headers: headerParameters,
|
|
291
|
+
query: queryParameters,
|
|
292
|
+
body: requestParameters['imageFeature'].map(ImageFeatureToJSON),
|
|
293
|
+
}, initOverrides);
|
|
294
|
+
return new runtime.VoidApiResponse(response);
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Ensures that the provided features are set on an image for a given extension, potentially overwriting existing ones with the same type, format and name.
|
|
298
|
+
* Ensures that features are set on an image
|
|
299
|
+
*/
|
|
300
|
+
async imageEnsureFeatures(requestParameters, initOverrides) {
|
|
301
|
+
await this.imageEnsureFeaturesRaw(requestParameters, initOverrides);
|
|
302
|
+
}
|
|
262
303
|
/**
|
|
263
304
|
* Ensures that some tags are set on an image for a given extension.
|
|
264
|
-
* Ensures that
|
|
305
|
+
* Ensures that tags are set on an image
|
|
265
306
|
*/
|
|
266
307
|
async imageEnsureTagsRaw(requestParameters, initOverrides) {
|
|
267
308
|
if (requestParameters['id'] == null) {
|
|
@@ -295,7 +336,7 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
295
336
|
}
|
|
296
337
|
/**
|
|
297
338
|
* Ensures that some tags are set on an image for a given extension.
|
|
298
|
-
* Ensures that
|
|
339
|
+
* Ensures that tags are set on an image
|
|
299
340
|
*/
|
|
300
341
|
async imageEnsureTags(requestParameters, initOverrides) {
|
|
301
342
|
await this.imageEnsureTagsRaw(requestParameters, initOverrides);
|