@picteus/extension-sdk 0.20.2 → 0.22.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/generated/frontEndIntents.d.ts +147 -106
- package/dist/generated/frontEndIntents.js +22 -0
- package/dist/generated/viewKit.d.ts +103 -79
- package/dist/generated/viewKit.js +87 -54
- 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 +78 -16
- package/dist/picteus-ws-client/apis/ExtensionApi.js +82 -9
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +38 -5
- package/dist/picteus-ws-client/apis/ImageApi.js +53 -9
- 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/MarketplaceApi.d.ts +140 -0
- package/dist/picteus-ws-client/apis/MarketplaceApi.js +155 -0
- 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 +43 -47
- package/dist/picteus-ws-client/apis/RepositoryApi.js +52 -54
- 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/apis/index.d.ts +1 -0
- package/dist/picteus-ws-client/apis/index.js +1 -0
- package/dist/picteus-ws-client/models/AiModel.d.ts +8 -1
- package/dist/picteus-ws-client/models/AiModel.js +6 -1
- package/dist/picteus-ws-client/models/AiModelModality.d.ts +27 -0
- package/dist/picteus-ws-client/models/AiModelModality.js +45 -0
- 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 +1 -1
- 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/CaptionInstruction.d.ts +7 -7
- package/dist/picteus-ws-client/models/CaptionInstruction.js +5 -5
- 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/EligibleTagsInstruction.d.ts +7 -7
- package/dist/picteus-ws-client/models/EligibleTagsInstruction.js +5 -5
- package/dist/picteus-ws-client/models/EmbeddingInstruction.d.ts +44 -0
- package/dist/picteus-ws-client/models/{ExtensionEligibleTags.js → EmbeddingInstruction.js} +12 -12
- package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
- package/dist/picteus-ws-client/models/Extension.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivityState.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivityState.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionAiModel.d.ts +8 -1
- package/dist/picteus-ws-client/models/ExtensionAiModel.js +6 -1
- package/dist/picteus-ws-client/models/ExtensionAndManual.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionAndManual.js +1 -1
- package/dist/picteus-ws-client/models/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 +1 -1
- package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionState.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionState.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipe.d.ts +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipe.js +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipePrompt.d.ts +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipePrompt.js +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipeVersion.d.ts +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipeVersion.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 +4 -4
- package/dist/picteus-ws-client/models/ImageEmbedding.js +4 -4
- package/dist/picteus-ws-client/models/ImageFeature.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeature.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.js +1 -1
- package/dist/picteus-ws-client/models/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 +1 -1
- package/dist/picteus-ws-client/models/InstructionsPrompt.js +1 -1
- package/dist/picteus-ws-client/models/Manifest.d.ts +7 -1
- package/dist/picteus-ws-client/models/Manifest.js +5 -1
- package/dist/picteus-ws-client/models/ManifestAndManual.d.ts +40 -0
- package/dist/picteus-ws-client/models/ManifestAndManual.js +47 -0
- 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/ManifestCapabilityCaptionsDetails.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityCaptionsDetails.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityEligibleTagsDetails.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityEligibleTagsDetails.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/ManifestEmbeddingsCapability.d.ts +33 -0
- package/dist/picteus-ws-client/models/ManifestEmbeddingsCapability.js +44 -0
- package/dist/picteus-ws-client/models/ManifestEvent.d.ts +2 -1
- package/dist/picteus-ws-client/models/ManifestEvent.js +2 -1
- package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.js +1 -1
- package/dist/picteus-ws-client/models/ManifestImageFeaturesCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestImageFeaturesCapability.js +1 -1
- package/dist/picteus-ws-client/models/ManifestImageTagsCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestImageTagsCapability.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/ManifestInstructionsCapabilitiesInner.d.ts +4 -4
- package/dist/picteus-ws-client/models/ManifestInstructionsCapabilitiesInner.js +6 -6
- 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/MarketplaceExtension.d.ts +39 -0
- package/dist/picteus-ws-client/models/MarketplaceExtension.js +46 -0
- package/dist/picteus-ws-client/models/MarketplaceExtensionDetails.d.ts +46 -0
- package/dist/picteus-ws-client/models/MarketplaceExtensionDetails.js +49 -0
- 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 +20 -7
- package/dist/picteus-ws-client/models/Repository.js +12 -3
- 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/RepositoryMode.d.ts +26 -0
- package/dist/picteus-ws-client/models/RepositoryMode.js +44 -0
- package/dist/picteus-ws-client/models/RepositoryState.d.ts +4 -5
- package/dist/picteus-ws-client/models/RepositoryState.js +4 -5
- package/dist/picteus-ws-client/models/RunCommandParameters.d.ts +1 -1
- 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/TagsPlaceholder.d.ts +1 -1
- package/dist/picteus-ws-client/models/TagsPlaceholder.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 +6 -0
- package/dist/picteus-ws-client/models/index.js +6 -0
- package/dist/picteus-ws-client/runtime.d.ts +1 -1
- package/dist/picteus-ws-client/runtime.js +2 -2
- package/dist/picteusExtension.d.ts +7 -2
- package/dist/picteusExtension.js +13 -4
- package/package.json +1 -1
- package/dist/generated/intentValidator.d.ts +0 -49
- package/dist/generated/intentValidator.js +0 -363
- package/dist/picteus-ws-client/models/ExtensionCaption.d.ts +0 -44
- package/dist/picteus-ws-client/models/ExtensionCaption.js +0 -51
- package/dist/picteus-ws-client/models/ExtensionEligibleTags.d.ts +0 -44
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.26.0
|
|
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 { Extension, ExtensionCategory, ExtensionState, MarketplaceExtension, MarketplaceExtensionDetails } from '../models/index.js';
|
|
14
|
+
export interface MarketplaceApiMarketplaceGetRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface MarketplaceApiMarketplaceInstallRequest {
|
|
18
|
+
id: string;
|
|
19
|
+
state: ExtensionState;
|
|
20
|
+
}
|
|
21
|
+
export interface MarketplaceApiMarketplaceListRequest {
|
|
22
|
+
search?: string;
|
|
23
|
+
category?: Array<ExtensionCategory>;
|
|
24
|
+
}
|
|
25
|
+
export interface MarketplaceApiMarketplaceUpdateRequest {
|
|
26
|
+
id: string;
|
|
27
|
+
state?: ExtensionState;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* MarketplaceApi - interface
|
|
31
|
+
*
|
|
32
|
+
* @export
|
|
33
|
+
* @interface MarketplaceApiInterface
|
|
34
|
+
*/
|
|
35
|
+
export interface MarketplaceApiInterface {
|
|
36
|
+
/**
|
|
37
|
+
* Returns the manifest, icon and manual of an extension.
|
|
38
|
+
* @summary Gets a marketplace extension
|
|
39
|
+
* @param {string} id The extension identifier
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
* @memberof MarketplaceApiInterface
|
|
43
|
+
*/
|
|
44
|
+
marketplaceGetRaw(requestParameters: MarketplaceApiMarketplaceGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketplaceExtensionDetails>>;
|
|
45
|
+
/**
|
|
46
|
+
* Returns the manifest, icon and manual of an extension.
|
|
47
|
+
* Gets a marketplace extension
|
|
48
|
+
*/
|
|
49
|
+
marketplaceGet(requestParameters: MarketplaceApiMarketplaceGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketplaceExtensionDetails>;
|
|
50
|
+
/**
|
|
51
|
+
* Installs an extension and optionally starts it.
|
|
52
|
+
* @summary Installs an extension
|
|
53
|
+
* @param {string} id The extension identifier
|
|
54
|
+
* @param {ExtensionState} state Whether the extension should be started
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
* @memberof MarketplaceApiInterface
|
|
58
|
+
*/
|
|
59
|
+
marketplaceInstallRaw(requestParameters: MarketplaceApiMarketplaceInstallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Extension>>;
|
|
60
|
+
/**
|
|
61
|
+
* Installs an extension and optionally starts it.
|
|
62
|
+
* Installs an extension
|
|
63
|
+
*/
|
|
64
|
+
marketplaceInstall(requestParameters: MarketplaceApiMarketplaceInstallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Extension>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the extensions matching the search criteria.
|
|
67
|
+
* @summary Lists extensions
|
|
68
|
+
* @param {string} [search] A case-insensitive search applied to the extension identifier, name, description, and author
|
|
69
|
+
* @param {Array<ExtensionCategory>} [category] The categories the extension should belong to
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
* @memberof MarketplaceApiInterface
|
|
73
|
+
*/
|
|
74
|
+
marketplaceListRaw(requestParameters: MarketplaceApiMarketplaceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MarketplaceExtension>>>;
|
|
75
|
+
/**
|
|
76
|
+
* Returns the extensions matching the search criteria.
|
|
77
|
+
* Lists extensions
|
|
78
|
+
*/
|
|
79
|
+
marketplaceList(requestParameters: MarketplaceApiMarketplaceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MarketplaceExtension>>;
|
|
80
|
+
/**
|
|
81
|
+
* Updates an already installed extension.
|
|
82
|
+
* @summary Updates an extension
|
|
83
|
+
* @param {string} id The extension identifier
|
|
84
|
+
* @param {ExtensionState} [state] The state to apply to the extension after updating
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
* @memberof MarketplaceApiInterface
|
|
88
|
+
*/
|
|
89
|
+
marketplaceUpdateRaw(requestParameters: MarketplaceApiMarketplaceUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Extension>>;
|
|
90
|
+
/**
|
|
91
|
+
* Updates an already installed extension.
|
|
92
|
+
* Updates an extension
|
|
93
|
+
*/
|
|
94
|
+
marketplaceUpdate(requestParameters: MarketplaceApiMarketplaceUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Extension>;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
export declare class MarketplaceApi extends runtime.BaseAPI implements MarketplaceApiInterface {
|
|
100
|
+
/**
|
|
101
|
+
* Returns the manifest, icon and manual of an extension.
|
|
102
|
+
* Gets a marketplace extension
|
|
103
|
+
*/
|
|
104
|
+
marketplaceGetRaw(requestParameters: MarketplaceApiMarketplaceGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketplaceExtensionDetails>>;
|
|
105
|
+
/**
|
|
106
|
+
* Returns the manifest, icon and manual of an extension.
|
|
107
|
+
* Gets a marketplace extension
|
|
108
|
+
*/
|
|
109
|
+
marketplaceGet(requestParameters: MarketplaceApiMarketplaceGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketplaceExtensionDetails>;
|
|
110
|
+
/**
|
|
111
|
+
* Installs an extension and optionally starts it.
|
|
112
|
+
* Installs an extension
|
|
113
|
+
*/
|
|
114
|
+
marketplaceInstallRaw(requestParameters: MarketplaceApiMarketplaceInstallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Extension>>;
|
|
115
|
+
/**
|
|
116
|
+
* Installs an extension and optionally starts it.
|
|
117
|
+
* Installs an extension
|
|
118
|
+
*/
|
|
119
|
+
marketplaceInstall(requestParameters: MarketplaceApiMarketplaceInstallRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Extension>;
|
|
120
|
+
/**
|
|
121
|
+
* Returns the extensions matching the search criteria.
|
|
122
|
+
* Lists extensions
|
|
123
|
+
*/
|
|
124
|
+
marketplaceListRaw(requestParameters: MarketplaceApiMarketplaceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MarketplaceExtension>>>;
|
|
125
|
+
/**
|
|
126
|
+
* Returns the extensions matching the search criteria.
|
|
127
|
+
* Lists extensions
|
|
128
|
+
*/
|
|
129
|
+
marketplaceList(requestParameters?: MarketplaceApiMarketplaceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MarketplaceExtension>>;
|
|
130
|
+
/**
|
|
131
|
+
* Updates an already installed extension.
|
|
132
|
+
* Updates an extension
|
|
133
|
+
*/
|
|
134
|
+
marketplaceUpdateRaw(requestParameters: MarketplaceApiMarketplaceUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Extension>>;
|
|
135
|
+
/**
|
|
136
|
+
* Updates an already installed extension.
|
|
137
|
+
* Updates an extension
|
|
138
|
+
*/
|
|
139
|
+
marketplaceUpdate(requestParameters: MarketplaceApiMarketplaceUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Extension>;
|
|
140
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.26.0
|
|
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, MarketplaceExtensionFromJSON, MarketplaceExtensionDetailsFromJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class MarketplaceApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Returns the manifest, icon and manual of an extension.
|
|
22
|
+
* Gets a marketplace extension
|
|
23
|
+
*/
|
|
24
|
+
async marketplaceGetRaw(requestParameters, initOverrides) {
|
|
25
|
+
if (requestParameters['id'] == null) {
|
|
26
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling marketplaceGet().');
|
|
27
|
+
}
|
|
28
|
+
const queryParameters = {};
|
|
29
|
+
const headerParameters = {};
|
|
30
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
31
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
32
|
+
}
|
|
33
|
+
let urlPath = `/marketplace/{id}/get`;
|
|
34
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
35
|
+
const response = await this.request({
|
|
36
|
+
path: urlPath,
|
|
37
|
+
method: 'GET',
|
|
38
|
+
headers: headerParameters,
|
|
39
|
+
query: queryParameters,
|
|
40
|
+
}, initOverrides);
|
|
41
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MarketplaceExtensionDetailsFromJSON(jsonValue));
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns the manifest, icon and manual of an extension.
|
|
45
|
+
* Gets a marketplace extension
|
|
46
|
+
*/
|
|
47
|
+
async marketplaceGet(requestParameters, initOverrides) {
|
|
48
|
+
const response = await this.marketplaceGetRaw(requestParameters, initOverrides);
|
|
49
|
+
return await response.value();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Installs an extension and optionally starts it.
|
|
53
|
+
* Installs an extension
|
|
54
|
+
*/
|
|
55
|
+
async marketplaceInstallRaw(requestParameters, initOverrides) {
|
|
56
|
+
if (requestParameters['id'] == null) {
|
|
57
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling marketplaceInstall().');
|
|
58
|
+
}
|
|
59
|
+
if (requestParameters['state'] == null) {
|
|
60
|
+
throw new runtime.RequiredError('state', 'Required parameter "state" was null or undefined when calling marketplaceInstall().');
|
|
61
|
+
}
|
|
62
|
+
const queryParameters = {};
|
|
63
|
+
if (requestParameters['state'] != null) {
|
|
64
|
+
queryParameters['state'] = requestParameters['state'];
|
|
65
|
+
}
|
|
66
|
+
const headerParameters = {};
|
|
67
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
68
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
69
|
+
}
|
|
70
|
+
let urlPath = `/marketplace/{id}/install`;
|
|
71
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
72
|
+
const response = await this.request({
|
|
73
|
+
path: urlPath,
|
|
74
|
+
method: 'POST',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
}, initOverrides);
|
|
78
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExtensionFromJSON(jsonValue));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Installs an extension and optionally starts it.
|
|
82
|
+
* Installs an extension
|
|
83
|
+
*/
|
|
84
|
+
async marketplaceInstall(requestParameters, initOverrides) {
|
|
85
|
+
const response = await this.marketplaceInstallRaw(requestParameters, initOverrides);
|
|
86
|
+
return await response.value();
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns the extensions matching the search criteria.
|
|
90
|
+
* Lists extensions
|
|
91
|
+
*/
|
|
92
|
+
async marketplaceListRaw(requestParameters, initOverrides) {
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
if (requestParameters['search'] != null) {
|
|
95
|
+
queryParameters['search'] = requestParameters['search'];
|
|
96
|
+
}
|
|
97
|
+
if (requestParameters['category'] != null) {
|
|
98
|
+
queryParameters['category'] = requestParameters['category'];
|
|
99
|
+
}
|
|
100
|
+
const headerParameters = {};
|
|
101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
103
|
+
}
|
|
104
|
+
let urlPath = `/marketplace/list`;
|
|
105
|
+
const response = await this.request({
|
|
106
|
+
path: urlPath,
|
|
107
|
+
method: 'GET',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
}, initOverrides);
|
|
111
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MarketplaceExtensionFromJSON));
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Returns the extensions matching the search criteria.
|
|
115
|
+
* Lists extensions
|
|
116
|
+
*/
|
|
117
|
+
async marketplaceList(requestParameters = {}, initOverrides) {
|
|
118
|
+
const response = await this.marketplaceListRaw(requestParameters, initOverrides);
|
|
119
|
+
return await response.value();
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Updates an already installed extension.
|
|
123
|
+
* Updates an extension
|
|
124
|
+
*/
|
|
125
|
+
async marketplaceUpdateRaw(requestParameters, initOverrides) {
|
|
126
|
+
if (requestParameters['id'] == null) {
|
|
127
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling marketplaceUpdate().');
|
|
128
|
+
}
|
|
129
|
+
const queryParameters = {};
|
|
130
|
+
if (requestParameters['state'] != null) {
|
|
131
|
+
queryParameters['state'] = requestParameters['state'];
|
|
132
|
+
}
|
|
133
|
+
const headerParameters = {};
|
|
134
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
135
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
136
|
+
}
|
|
137
|
+
let urlPath = `/marketplace/{id}/update`;
|
|
138
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
139
|
+
const response = await this.request({
|
|
140
|
+
path: urlPath,
|
|
141
|
+
method: 'PUT',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
}, initOverrides);
|
|
145
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExtensionFromJSON(jsonValue));
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Updates an already installed extension.
|
|
149
|
+
* Updates an extension
|
|
150
|
+
*/
|
|
151
|
+
async marketplaceUpdate(requestParameters, initOverrides) {
|
|
152
|
+
const response = await this.marketplaceUpdateRaw(requestParameters, initOverrides);
|
|
153
|
+
return await response.value();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -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.26.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,23 +10,21 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { ExtensionIdImageEmbeddingName, ExtensionImageFeatureName, ExtensionImageTag, Image, Repository, RepositoryActivity } from '../models/index.js';
|
|
13
|
+
import type { ExtensionIdImageEmbeddingName, ExtensionImageFeatureName, ExtensionImageTag, Image, Repository, RepositoryActivity, RepositoryMode } from '../models/index.js';
|
|
14
14
|
export interface RepositoryApiRepositoryCreateRequest {
|
|
15
15
|
type: RepositoryCreateTypeEnum;
|
|
16
16
|
url: string;
|
|
17
17
|
name: string;
|
|
18
|
+
mode: RepositoryMode;
|
|
18
19
|
comment?: string;
|
|
19
|
-
watch?: boolean;
|
|
20
|
-
technicalId?: string;
|
|
21
20
|
}
|
|
22
21
|
export interface RepositoryApiRepositoryDeleteRequest {
|
|
23
22
|
id: string;
|
|
24
23
|
}
|
|
25
24
|
export interface RepositoryApiRepositoryEnsureRequest {
|
|
26
|
-
|
|
25
|
+
extensionId: string;
|
|
27
26
|
name: string;
|
|
28
27
|
comment?: string;
|
|
29
|
-
watch?: boolean;
|
|
30
28
|
}
|
|
31
29
|
export interface RepositoryApiRepositoryGetRequest {
|
|
32
30
|
id: string;
|
|
@@ -40,6 +38,10 @@ export interface RepositoryApiRepositoryRenameImageRequest {
|
|
|
40
38
|
nameWithoutExtension: string;
|
|
41
39
|
relativeDirectoryPath?: string;
|
|
42
40
|
}
|
|
41
|
+
export interface RepositoryApiRepositorySetModeRequest {
|
|
42
|
+
id: string;
|
|
43
|
+
mode: RepositoryMode;
|
|
44
|
+
}
|
|
43
45
|
export interface RepositoryApiRepositoryStartOrStopRequest {
|
|
44
46
|
isStart: boolean;
|
|
45
47
|
}
|
|
@@ -61,10 +63,6 @@ export interface RepositoryApiRepositoryUpdateRequest {
|
|
|
61
63
|
name?: string;
|
|
62
64
|
comment?: string;
|
|
63
65
|
}
|
|
64
|
-
export interface RepositoryApiRepositoryWatchRequest {
|
|
65
|
-
id: string;
|
|
66
|
-
isStart: boolean;
|
|
67
|
-
}
|
|
68
66
|
/**
|
|
69
67
|
* RepositoryApi - interface
|
|
70
68
|
*
|
|
@@ -91,9 +89,8 @@ export interface RepositoryApiInterface {
|
|
|
91
89
|
* @param {'file'} type The repository type
|
|
92
90
|
* @param {string} url The repository URL
|
|
93
91
|
* @param {string} name The repository name
|
|
92
|
+
* @param {RepositoryMode} mode The operating mode of the repository
|
|
94
93
|
* @param {string} [comment] The repository comment
|
|
95
|
-
* @param {boolean} [watch] Whether the repository should be watched immediately ; when not defined, this parameter has the implicit \'false\' value
|
|
96
|
-
* @param {string} [technicalId] The technical identifier
|
|
97
94
|
* @param {*} [options] Override http request option.
|
|
98
95
|
* @throws {RequiredError}
|
|
99
96
|
* @memberof RepositoryApiInterface
|
|
@@ -119,20 +116,19 @@ export interface RepositoryApiInterface {
|
|
|
119
116
|
*/
|
|
120
117
|
repositoryDelete(requestParameters: RepositoryApiRepositoryDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
121
118
|
/**
|
|
122
|
-
* Ensures that a repository with type \'file\'
|
|
123
|
-
* @summary Ensures a repository exists
|
|
124
|
-
* @param {string}
|
|
119
|
+
* Ensures that a repository with type \'file\' attached to the provided extension exists, and if not, creates it.
|
|
120
|
+
* @summary Ensures a repository attached to an extension exists
|
|
121
|
+
* @param {string} extensionId The identifier of the extension the repository is attached to
|
|
125
122
|
* @param {string} name The repository name
|
|
126
123
|
* @param {string} [comment] The repository comment
|
|
127
|
-
* @param {boolean} [watch] Whether the repository should be watched immediately ; when not defined, this parameter has the implicit \'false\' value
|
|
128
124
|
* @param {*} [options] Override http request option.
|
|
129
125
|
* @throws {RequiredError}
|
|
130
126
|
* @memberof RepositoryApiInterface
|
|
131
127
|
*/
|
|
132
128
|
repositoryEnsureRaw(requestParameters: RepositoryApiRepositoryEnsureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Repository>>;
|
|
133
129
|
/**
|
|
134
|
-
* Ensures that a repository with type \'file\'
|
|
135
|
-
* Ensures a repository exists
|
|
130
|
+
* Ensures that a repository with type \'file\' attached to the provided extension exists, and if not, creates it.
|
|
131
|
+
* Ensures a repository attached to an extension exists
|
|
136
132
|
*/
|
|
137
133
|
repositoryEnsure(requestParameters: RepositoryApiRepositoryEnsureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
|
|
138
134
|
/**
|
|
@@ -232,6 +228,21 @@ export interface RepositoryApiInterface {
|
|
|
232
228
|
* Renames an image
|
|
233
229
|
*/
|
|
234
230
|
repositoryRenameImage(requestParameters: RepositoryApiRepositoryRenameImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
|
|
231
|
+
/**
|
|
232
|
+
* Changes the operating mode of a repository.
|
|
233
|
+
* @summary Sets the operating mode of a repository
|
|
234
|
+
* @param {string} id The repository identifier
|
|
235
|
+
* @param {RepositoryMode} mode The operating mode to apply to the repository
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
* @memberof RepositoryApiInterface
|
|
239
|
+
*/
|
|
240
|
+
repositorySetModeRaw(requestParameters: RepositoryApiRepositorySetModeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Repository>>;
|
|
241
|
+
/**
|
|
242
|
+
* Changes the operating mode of a repository.
|
|
243
|
+
* Sets the operating mode of a repository
|
|
244
|
+
*/
|
|
245
|
+
repositorySetMode(requestParameters: RepositoryApiRepositorySetModeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
|
|
235
246
|
/**
|
|
236
247
|
* Starts all the repositories, resumes synchronization if necessary and starts watching them, or stops them.
|
|
237
248
|
* @summary Starts or stop the repositories
|
|
@@ -297,21 +308,6 @@ export interface RepositoryApiInterface {
|
|
|
297
308
|
* Updates a repository
|
|
298
309
|
*/
|
|
299
310
|
repositoryUpdate(requestParameters: RepositoryApiRepositoryUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
|
|
300
|
-
/**
|
|
301
|
-
* Starts or stops listening to the repository back-end images changes.
|
|
302
|
-
* @summary Starts or stops watching a repository
|
|
303
|
-
* @param {string} id The repository identifier
|
|
304
|
-
* @param {boolean} isStart Whether the repository should start or stop watching
|
|
305
|
-
* @param {*} [options] Override http request option.
|
|
306
|
-
* @throws {RequiredError}
|
|
307
|
-
* @memberof RepositoryApiInterface
|
|
308
|
-
*/
|
|
309
|
-
repositoryWatchRaw(requestParameters: RepositoryApiRepositoryWatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
310
|
-
/**
|
|
311
|
-
* Starts or stops listening to the repository back-end images changes.
|
|
312
|
-
* Starts or stops watching a repository
|
|
313
|
-
*/
|
|
314
|
-
repositoryWatch(requestParameters: RepositoryApiRepositoryWatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
315
311
|
}
|
|
316
312
|
/**
|
|
317
313
|
*
|
|
@@ -348,13 +344,13 @@ export declare class RepositoryApi extends runtime.BaseAPI implements Repository
|
|
|
348
344
|
*/
|
|
349
345
|
repositoryDelete(requestParameters: RepositoryApiRepositoryDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
350
346
|
/**
|
|
351
|
-
* Ensures that a repository with type \'file\'
|
|
352
|
-
* Ensures a repository exists
|
|
347
|
+
* Ensures that a repository with type \'file\' attached to the provided extension exists, and if not, creates it.
|
|
348
|
+
* Ensures a repository attached to an extension exists
|
|
353
349
|
*/
|
|
354
350
|
repositoryEnsureRaw(requestParameters: RepositoryApiRepositoryEnsureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Repository>>;
|
|
355
351
|
/**
|
|
356
|
-
* Ensures that a repository with type \'file\'
|
|
357
|
-
* Ensures a repository exists
|
|
352
|
+
* Ensures that a repository with type \'file\' attached to the provided extension exists, and if not, creates it.
|
|
353
|
+
* Ensures a repository attached to an extension exists
|
|
358
354
|
*/
|
|
359
355
|
repositoryEnsure(requestParameters: RepositoryApiRepositoryEnsureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
|
|
360
356
|
/**
|
|
@@ -427,6 +423,16 @@ export declare class RepositoryApi extends runtime.BaseAPI implements Repository
|
|
|
427
423
|
* Renames an image
|
|
428
424
|
*/
|
|
429
425
|
repositoryRenameImage(requestParameters: RepositoryApiRepositoryRenameImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
|
|
426
|
+
/**
|
|
427
|
+
* Changes the operating mode of a repository.
|
|
428
|
+
* Sets the operating mode of a repository
|
|
429
|
+
*/
|
|
430
|
+
repositorySetModeRaw(requestParameters: RepositoryApiRepositorySetModeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Repository>>;
|
|
431
|
+
/**
|
|
432
|
+
* Changes the operating mode of a repository.
|
|
433
|
+
* Sets the operating mode of a repository
|
|
434
|
+
*/
|
|
435
|
+
repositorySetMode(requestParameters: RepositoryApiRepositorySetModeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
|
|
430
436
|
/**
|
|
431
437
|
* Starts all the repositories, resumes synchronization if necessary and starts watching them, or stops them.
|
|
432
438
|
* Starts or stop the repositories
|
|
@@ -467,16 +473,6 @@ export declare class RepositoryApi extends runtime.BaseAPI implements Repository
|
|
|
467
473
|
* Updates a repository
|
|
468
474
|
*/
|
|
469
475
|
repositoryUpdate(requestParameters: RepositoryApiRepositoryUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
|
|
470
|
-
/**
|
|
471
|
-
* Starts or stops listening to the repository back-end images changes.
|
|
472
|
-
* Starts or stops watching a repository
|
|
473
|
-
*/
|
|
474
|
-
repositoryWatchRaw(requestParameters: RepositoryApiRepositoryWatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
475
|
-
/**
|
|
476
|
-
* Starts or stops listening to the repository back-end images changes.
|
|
477
|
-
* Starts or stops watching a repository
|
|
478
|
-
*/
|
|
479
|
-
repositoryWatch(requestParameters: RepositoryApiRepositoryWatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
480
476
|
}
|
|
481
477
|
/**
|
|
482
478
|
* @export
|
|
@@ -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.26.0
|
|
8
8
|
* Contact: edouard@koppasoft.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -58,6 +58,9 @@ export class RepositoryApi extends runtime.BaseAPI {
|
|
|
58
58
|
if (requestParameters['name'] == null) {
|
|
59
59
|
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling repositoryCreate().');
|
|
60
60
|
}
|
|
61
|
+
if (requestParameters['mode'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('mode', 'Required parameter "mode" was null or undefined when calling repositoryCreate().');
|
|
63
|
+
}
|
|
61
64
|
const queryParameters = {};
|
|
62
65
|
if (requestParameters['type'] != null) {
|
|
63
66
|
queryParameters['type'] = requestParameters['type'];
|
|
@@ -68,15 +71,12 @@ export class RepositoryApi extends runtime.BaseAPI {
|
|
|
68
71
|
if (requestParameters['name'] != null) {
|
|
69
72
|
queryParameters['name'] = requestParameters['name'];
|
|
70
73
|
}
|
|
74
|
+
if (requestParameters['mode'] != null) {
|
|
75
|
+
queryParameters['mode'] = requestParameters['mode'];
|
|
76
|
+
}
|
|
71
77
|
if (requestParameters['comment'] != null) {
|
|
72
78
|
queryParameters['comment'] = requestParameters['comment'];
|
|
73
79
|
}
|
|
74
|
-
if (requestParameters['watch'] != null) {
|
|
75
|
-
queryParameters['watch'] = requestParameters['watch'];
|
|
76
|
-
}
|
|
77
|
-
if (requestParameters['technicalId'] != null) {
|
|
78
|
-
queryParameters['technicalId'] = requestParameters['technicalId'];
|
|
79
|
-
}
|
|
80
80
|
const headerParameters = {};
|
|
81
81
|
if (this.configuration && this.configuration.apiKey) {
|
|
82
82
|
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
@@ -129,19 +129,19 @@ export class RepositoryApi extends runtime.BaseAPI {
|
|
|
129
129
|
await this.repositoryDeleteRaw(requestParameters, initOverrides);
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
|
-
* Ensures that a repository with type \'file\'
|
|
133
|
-
* Ensures a repository exists
|
|
132
|
+
* Ensures that a repository with type \'file\' attached to the provided extension exists, and if not, creates it.
|
|
133
|
+
* Ensures a repository attached to an extension exists
|
|
134
134
|
*/
|
|
135
135
|
async repositoryEnsureRaw(requestParameters, initOverrides) {
|
|
136
|
-
if (requestParameters['
|
|
137
|
-
throw new runtime.RequiredError('
|
|
136
|
+
if (requestParameters['extensionId'] == null) {
|
|
137
|
+
throw new runtime.RequiredError('extensionId', 'Required parameter "extensionId" was null or undefined when calling repositoryEnsure().');
|
|
138
138
|
}
|
|
139
139
|
if (requestParameters['name'] == null) {
|
|
140
140
|
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling repositoryEnsure().');
|
|
141
141
|
}
|
|
142
142
|
const queryParameters = {};
|
|
143
|
-
if (requestParameters['
|
|
144
|
-
queryParameters['
|
|
143
|
+
if (requestParameters['extensionId'] != null) {
|
|
144
|
+
queryParameters['extensionId'] = requestParameters['extensionId'];
|
|
145
145
|
}
|
|
146
146
|
if (requestParameters['name'] != null) {
|
|
147
147
|
queryParameters['name'] = requestParameters['name'];
|
|
@@ -149,9 +149,6 @@ export class RepositoryApi extends runtime.BaseAPI {
|
|
|
149
149
|
if (requestParameters['comment'] != null) {
|
|
150
150
|
queryParameters['comment'] = requestParameters['comment'];
|
|
151
151
|
}
|
|
152
|
-
if (requestParameters['watch'] != null) {
|
|
153
|
-
queryParameters['watch'] = requestParameters['watch'];
|
|
154
|
-
}
|
|
155
152
|
const headerParameters = {};
|
|
156
153
|
if (this.configuration && this.configuration.apiKey) {
|
|
157
154
|
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
@@ -166,8 +163,8 @@ export class RepositoryApi extends runtime.BaseAPI {
|
|
|
166
163
|
return new runtime.JSONApiResponse(response, (jsonValue) => RepositoryFromJSON(jsonValue));
|
|
167
164
|
}
|
|
168
165
|
/**
|
|
169
|
-
* Ensures that a repository with type \'file\'
|
|
170
|
-
* Ensures a repository exists
|
|
166
|
+
* Ensures that a repository with type \'file\' attached to the provided extension exists, and if not, creates it.
|
|
167
|
+
* Ensures a repository attached to an extension exists
|
|
171
168
|
*/
|
|
172
169
|
async repositoryEnsure(requestParameters, initOverrides) {
|
|
173
170
|
const response = await this.repositoryEnsureRaw(requestParameters, initOverrides);
|
|
@@ -391,6 +388,43 @@ export class RepositoryApi extends runtime.BaseAPI {
|
|
|
391
388
|
const response = await this.repositoryRenameImageRaw(requestParameters, initOverrides);
|
|
392
389
|
return await response.value();
|
|
393
390
|
}
|
|
391
|
+
/**
|
|
392
|
+
* Changes the operating mode of a repository.
|
|
393
|
+
* Sets the operating mode of a repository
|
|
394
|
+
*/
|
|
395
|
+
async repositorySetModeRaw(requestParameters, initOverrides) {
|
|
396
|
+
if (requestParameters['id'] == null) {
|
|
397
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositorySetMode().');
|
|
398
|
+
}
|
|
399
|
+
if (requestParameters['mode'] == null) {
|
|
400
|
+
throw new runtime.RequiredError('mode', 'Required parameter "mode" was null or undefined when calling repositorySetMode().');
|
|
401
|
+
}
|
|
402
|
+
const queryParameters = {};
|
|
403
|
+
if (requestParameters['mode'] != null) {
|
|
404
|
+
queryParameters['mode'] = requestParameters['mode'];
|
|
405
|
+
}
|
|
406
|
+
const headerParameters = {};
|
|
407
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
408
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
409
|
+
}
|
|
410
|
+
let urlPath = `/repository/{id}/setMode`;
|
|
411
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
412
|
+
const response = await this.request({
|
|
413
|
+
path: urlPath,
|
|
414
|
+
method: 'PUT',
|
|
415
|
+
headers: headerParameters,
|
|
416
|
+
query: queryParameters,
|
|
417
|
+
}, initOverrides);
|
|
418
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RepositoryFromJSON(jsonValue));
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Changes the operating mode of a repository.
|
|
422
|
+
* Sets the operating mode of a repository
|
|
423
|
+
*/
|
|
424
|
+
async repositorySetMode(requestParameters, initOverrides) {
|
|
425
|
+
const response = await this.repositorySetModeRaw(requestParameters, initOverrides);
|
|
426
|
+
return await response.value();
|
|
427
|
+
}
|
|
394
428
|
/**
|
|
395
429
|
* Starts all the repositories, resumes synchronization if necessary and starts watching them, or stops them.
|
|
396
430
|
* Starts or stop the repositories
|
|
@@ -544,42 +578,6 @@ export class RepositoryApi extends runtime.BaseAPI {
|
|
|
544
578
|
const response = await this.repositoryUpdateRaw(requestParameters, initOverrides);
|
|
545
579
|
return await response.value();
|
|
546
580
|
}
|
|
547
|
-
/**
|
|
548
|
-
* Starts or stops listening to the repository back-end images changes.
|
|
549
|
-
* Starts or stops watching a repository
|
|
550
|
-
*/
|
|
551
|
-
async repositoryWatchRaw(requestParameters, initOverrides) {
|
|
552
|
-
if (requestParameters['id'] == null) {
|
|
553
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositoryWatch().');
|
|
554
|
-
}
|
|
555
|
-
if (requestParameters['isStart'] == null) {
|
|
556
|
-
throw new runtime.RequiredError('isStart', 'Required parameter "isStart" was null or undefined when calling repositoryWatch().');
|
|
557
|
-
}
|
|
558
|
-
const queryParameters = {};
|
|
559
|
-
if (requestParameters['isStart'] != null) {
|
|
560
|
-
queryParameters['isStart'] = requestParameters['isStart'];
|
|
561
|
-
}
|
|
562
|
-
const headerParameters = {};
|
|
563
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
564
|
-
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
565
|
-
}
|
|
566
|
-
let urlPath = `/repository/{id}/watch`;
|
|
567
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
568
|
-
const response = await this.request({
|
|
569
|
-
path: urlPath,
|
|
570
|
-
method: 'PUT',
|
|
571
|
-
headers: headerParameters,
|
|
572
|
-
query: queryParameters,
|
|
573
|
-
}, initOverrides);
|
|
574
|
-
return new runtime.VoidApiResponse(response);
|
|
575
|
-
}
|
|
576
|
-
/**
|
|
577
|
-
* Starts or stops listening to the repository back-end images changes.
|
|
578
|
-
* Starts or stops watching a repository
|
|
579
|
-
*/
|
|
580
|
-
async repositoryWatch(requestParameters, initOverrides) {
|
|
581
|
-
await this.repositoryWatchRaw(requestParameters, initOverrides);
|
|
582
|
-
}
|
|
583
581
|
}
|
|
584
582
|
/**
|
|
585
583
|
* @export
|