@picteus/extension-sdk 0.19.0 → 0.20.1
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/viewKit.d.ts +46 -19
- package/dist/generated/viewKit.js +37 -17
- 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 +166 -2
- package/dist/picteus-ws-client/apis/ExtensionApi.js +199 -2
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +25 -1
- package/dist/picteus-ws-client/apis/ImageApi.js +25 -1
- 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 +1 -1
- package/dist/picteus-ws-client/apis/RepositoryApi.js +1 -1
- 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/AiModel.d.ts +44 -0
- package/dist/picteus-ws-client/models/AiModel.js +49 -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 +50 -0
- package/dist/picteus-ws-client/models/CaptionInstruction.js +55 -0
- 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 +15 -1
- package/dist/picteus-ws-client/models/ConstantsRegistry.js +11 -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 +56 -0
- package/dist/picteus-ws-client/models/EligibleTagsInstruction.js +59 -0
- 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 +56 -0
- package/dist/picteus-ws-client/models/ExtensionAiModel.js +57 -0
- 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/ExtensionCaption.d.ts +44 -0
- package/dist/picteus-ws-client/models/ExtensionCaption.js +51 -0
- 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/ExtensionEligibleTags.d.ts +44 -0
- package/dist/picteus-ws-client/models/ExtensionEligibleTags.js +51 -0
- 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 +2 -2
- 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 +24 -0
- package/dist/picteus-ws-client/models/GenerationRecipeVersion.js +42 -0
- 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 +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 +1 -1
- package/dist/picteus-ws-client/models/Manifest.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityCaptionsDetails.d.ts +32 -0
- package/dist/picteus-ws-client/models/ManifestCapabilityCaptionsDetails.js +41 -0
- package/dist/picteus-ws-client/models/ManifestCapabilityEligibleTagsDetails.d.ts +32 -0
- package/dist/picteus-ws-client/models/ManifestCapabilityEligibleTagsDetails.js +41 -0
- package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
- package/dist/picteus-ws-client/models/ManifestEvent.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestEvent.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.js +1 -1
- package/dist/picteus-ws-client/models/ManifestImageFeaturesCapability.d.ts +40 -0
- package/dist/picteus-ws-client/models/ManifestImageFeaturesCapability.js +47 -0
- package/dist/picteus-ws-client/models/ManifestImageTagsCapability.d.ts +40 -0
- package/dist/picteus-ws-client/models/ManifestImageTagsCapability.js +47 -0
- package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +4 -4
- package/dist/picteus-ws-client/models/ManifestInstructions.js +4 -4
- package/dist/picteus-ws-client/models/ManifestInstructionsCapabilitiesInner.d.ts +32 -0
- package/dist/picteus-ws-client/models/ManifestInstructionsCapabilitiesInner.js +56 -0
- 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 +1 -1
- package/dist/picteus-ws-client/models/Repository.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryState.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryState.js +1 -1
- 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 +24 -0
- package/dist/picteus-ws-client/models/TagsPlaceholder.js +42 -0
- 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 +11 -0
- package/dist/picteus-ws-client/models/index.js +11 -0
- package/dist/picteus-ws-client/runtime.d.ts +1 -1
- package/dist/picteus-ws-client/runtime.js +1 -1
- package/dist/picteusExtension.d.ts +15 -2
- package/dist/picteusExtension.js +17 -3
- package/package.json +1 -1
|
@@ -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.24.0
|
|
8
8
|
* Contact: edouard@koppasoft.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { ExtensionFromJSON, ExtensionActivityFromJSON, ExtensionAndManualFromJSON, ExtensionGenerationOptionsToJSON, ExtensionSettingsFromJSON, ExtensionSettingsToJSON, ExtensionsConfigurationFromJSON, RunCommandParametersToJSON, } from '../models/index.js';
|
|
15
|
+
import { AiModelToJSON, CaptionInstructionFromJSON, CaptionInstructionToJSON, EligibleTagsInstructionFromJSON, EligibleTagsInstructionToJSON, ExtensionFromJSON, ExtensionActivityFromJSON, ExtensionAiModelFromJSON, ExtensionAndManualFromJSON, ExtensionGenerationOptionsToJSON, ExtensionSettingsFromJSON, ExtensionSettingsToJSON, ExtensionsConfigurationFromJSON, RunCommandParametersToJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -211,6 +211,37 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
211
211
|
const response = await this.extensionGetRaw(requestParameters, initOverrides);
|
|
212
212
|
return await response.value();
|
|
213
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* Returns the caption instructions declared for an extension.
|
|
216
|
+
* Gets the caption instructions for an extension
|
|
217
|
+
*/
|
|
218
|
+
async extensionGetCaptionInstructionsRaw(requestParameters, initOverrides) {
|
|
219
|
+
if (requestParameters['id'] == null) {
|
|
220
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionGetCaptionInstructions().');
|
|
221
|
+
}
|
|
222
|
+
const queryParameters = {};
|
|
223
|
+
const headerParameters = {};
|
|
224
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
225
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
226
|
+
}
|
|
227
|
+
let urlPath = `/extension/{id}/getCaptionInstructions`;
|
|
228
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
229
|
+
const response = await this.request({
|
|
230
|
+
path: urlPath,
|
|
231
|
+
method: 'GET',
|
|
232
|
+
headers: headerParameters,
|
|
233
|
+
query: queryParameters,
|
|
234
|
+
}, initOverrides);
|
|
235
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CaptionInstructionFromJSON));
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Returns the caption instructions declared for an extension.
|
|
239
|
+
* Gets the caption instructions for an extension
|
|
240
|
+
*/
|
|
241
|
+
async extensionGetCaptionInstructions(requestParameters, initOverrides) {
|
|
242
|
+
const response = await this.extensionGetCaptionInstructionsRaw(requestParameters, initOverrides);
|
|
243
|
+
return await response.value();
|
|
244
|
+
}
|
|
214
245
|
/**
|
|
215
246
|
* Returns the details in terms of all installed extensions capabilities, i.e. what they can offer, and the command they offer.
|
|
216
247
|
* Provides the extensions configuration
|
|
@@ -238,6 +269,37 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
238
269
|
const response = await this.extensionGetConfigurationRaw(initOverrides);
|
|
239
270
|
return await response.value();
|
|
240
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* Returns the eligible tags instructions declared for an extension.
|
|
274
|
+
* Gets the eligible tags instructions for an extension
|
|
275
|
+
*/
|
|
276
|
+
async extensionGetEligibleTagsInstructionsRaw(requestParameters, initOverrides) {
|
|
277
|
+
if (requestParameters['id'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionGetEligibleTagsInstructions().');
|
|
279
|
+
}
|
|
280
|
+
const queryParameters = {};
|
|
281
|
+
const headerParameters = {};
|
|
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 = `/extension/{id}/getEligibleTagsInstructions`;
|
|
286
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
287
|
+
const response = await this.request({
|
|
288
|
+
path: urlPath,
|
|
289
|
+
method: 'GET',
|
|
290
|
+
headers: headerParameters,
|
|
291
|
+
query: queryParameters,
|
|
292
|
+
}, initOverrides);
|
|
293
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(EligibleTagsInstructionFromJSON));
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Returns the eligible tags instructions declared for an extension.
|
|
297
|
+
* Gets the eligible tags instructions for an extension
|
|
298
|
+
*/
|
|
299
|
+
async extensionGetEligibleTagsInstructions(requestParameters, initOverrides) {
|
|
300
|
+
const response = await this.extensionGetEligibleTagsInstructionsRaw(requestParameters, initOverrides);
|
|
301
|
+
return await response.value();
|
|
302
|
+
}
|
|
241
303
|
/**
|
|
242
304
|
* Returns the settings of an extension.
|
|
243
305
|
* Gets an extension settings
|
|
@@ -381,6 +443,33 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
381
443
|
const response = await this.extensionListRaw(initOverrides);
|
|
382
444
|
return await response.value();
|
|
383
445
|
}
|
|
446
|
+
/**
|
|
447
|
+
* Returns the AI models declared by all installed extensions.
|
|
448
|
+
* Lists the AI models declared by all extensions
|
|
449
|
+
*/
|
|
450
|
+
async extensionListAiModelsRaw(initOverrides) {
|
|
451
|
+
const queryParameters = {};
|
|
452
|
+
const headerParameters = {};
|
|
453
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
454
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
455
|
+
}
|
|
456
|
+
let urlPath = `/extension/listAiModels`;
|
|
457
|
+
const response = await this.request({
|
|
458
|
+
path: urlPath,
|
|
459
|
+
method: 'GET',
|
|
460
|
+
headers: headerParameters,
|
|
461
|
+
query: queryParameters,
|
|
462
|
+
}, initOverrides);
|
|
463
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ExtensionAiModelFromJSON));
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Returns the AI models declared by all installed extensions.
|
|
467
|
+
* Lists the AI models declared by all extensions
|
|
468
|
+
*/
|
|
469
|
+
async extensionListAiModels(initOverrides) {
|
|
470
|
+
const response = await this.extensionListAiModelsRaw(initOverrides);
|
|
471
|
+
return await response.value();
|
|
472
|
+
}
|
|
384
473
|
/**
|
|
385
474
|
* Reverts the settings of an extension to its default value.
|
|
386
475
|
* Resets the settings of an extension
|
|
@@ -491,6 +580,114 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
491
580
|
async extensionRunProcessCommand(requestParameters, initOverrides) {
|
|
492
581
|
await this.extensionRunProcessCommandRaw(requestParameters, initOverrides);
|
|
493
582
|
}
|
|
583
|
+
/**
|
|
584
|
+
* Overwrites the AI models previously declared for an extension and returns them. An empty array clears them.
|
|
585
|
+
* Sets the AI models declared for an extension
|
|
586
|
+
*/
|
|
587
|
+
async extensionSetAiModelsRaw(requestParameters, initOverrides) {
|
|
588
|
+
if (requestParameters['id'] == null) {
|
|
589
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionSetAiModels().');
|
|
590
|
+
}
|
|
591
|
+
if (requestParameters['aiModel'] == null) {
|
|
592
|
+
throw new runtime.RequiredError('aiModel', 'Required parameter "aiModel" was null or undefined when calling extensionSetAiModels().');
|
|
593
|
+
}
|
|
594
|
+
const queryParameters = {};
|
|
595
|
+
const headerParameters = {};
|
|
596
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
597
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
598
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
599
|
+
}
|
|
600
|
+
let urlPath = `/extension/{id}/setAiModels`;
|
|
601
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
602
|
+
const response = await this.request({
|
|
603
|
+
path: urlPath,
|
|
604
|
+
method: 'PUT',
|
|
605
|
+
headers: headerParameters,
|
|
606
|
+
query: queryParameters,
|
|
607
|
+
body: requestParameters['aiModel'].map(AiModelToJSON),
|
|
608
|
+
}, initOverrides);
|
|
609
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ExtensionAiModelFromJSON));
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Overwrites the AI models previously declared for an extension and returns them. An empty array clears them.
|
|
613
|
+
* Sets the AI models declared for an extension
|
|
614
|
+
*/
|
|
615
|
+
async extensionSetAiModels(requestParameters, initOverrides) {
|
|
616
|
+
const response = await this.extensionSetAiModelsRaw(requestParameters, initOverrides);
|
|
617
|
+
return await response.value();
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* Overwrites the caption instructions declared for an extension.
|
|
621
|
+
* Sets the caption instructions for an extension
|
|
622
|
+
*/
|
|
623
|
+
async extensionSetCaptionInstructionsRaw(requestParameters, initOverrides) {
|
|
624
|
+
if (requestParameters['id'] == null) {
|
|
625
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionSetCaptionInstructions().');
|
|
626
|
+
}
|
|
627
|
+
if (requestParameters['captionInstruction'] == null) {
|
|
628
|
+
throw new runtime.RequiredError('captionInstruction', 'Required parameter "captionInstruction" was null or undefined when calling extensionSetCaptionInstructions().');
|
|
629
|
+
}
|
|
630
|
+
const queryParameters = {};
|
|
631
|
+
const headerParameters = {};
|
|
632
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
633
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
634
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
635
|
+
}
|
|
636
|
+
let urlPath = `/extension/{id}/setCaptionInstructions`;
|
|
637
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
638
|
+
const response = await this.request({
|
|
639
|
+
path: urlPath,
|
|
640
|
+
method: 'PUT',
|
|
641
|
+
headers: headerParameters,
|
|
642
|
+
query: queryParameters,
|
|
643
|
+
body: requestParameters['captionInstruction'].map(CaptionInstructionToJSON),
|
|
644
|
+
}, initOverrides);
|
|
645
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CaptionInstructionFromJSON));
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Overwrites the caption instructions declared for an extension.
|
|
649
|
+
* Sets the caption instructions for an extension
|
|
650
|
+
*/
|
|
651
|
+
async extensionSetCaptionInstructions(requestParameters, initOverrides) {
|
|
652
|
+
const response = await this.extensionSetCaptionInstructionsRaw(requestParameters, initOverrides);
|
|
653
|
+
return await response.value();
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Overwrites the eligible tags instructions declared for an extension.
|
|
657
|
+
* Sets the eligible tags instructions for an extension
|
|
658
|
+
*/
|
|
659
|
+
async extensionSetEligibleTagsInstructionsRaw(requestParameters, initOverrides) {
|
|
660
|
+
if (requestParameters['id'] == null) {
|
|
661
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionSetEligibleTagsInstructions().');
|
|
662
|
+
}
|
|
663
|
+
if (requestParameters['eligibleTagsInstruction'] == null) {
|
|
664
|
+
throw new runtime.RequiredError('eligibleTagsInstruction', 'Required parameter "eligibleTagsInstruction" was null or undefined when calling extensionSetEligibleTagsInstructions().');
|
|
665
|
+
}
|
|
666
|
+
const queryParameters = {};
|
|
667
|
+
const headerParameters = {};
|
|
668
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
669
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
670
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
671
|
+
}
|
|
672
|
+
let urlPath = `/extension/{id}/setEligibleTagsInstructions`;
|
|
673
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
674
|
+
const response = await this.request({
|
|
675
|
+
path: urlPath,
|
|
676
|
+
method: 'PUT',
|
|
677
|
+
headers: headerParameters,
|
|
678
|
+
query: queryParameters,
|
|
679
|
+
body: requestParameters['eligibleTagsInstruction'].map(EligibleTagsInstructionToJSON),
|
|
680
|
+
}, initOverrides);
|
|
681
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(EligibleTagsInstructionFromJSON));
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Overwrites the eligible tags instructions declared for an extension.
|
|
685
|
+
* Sets the eligible tags instructions for an extension
|
|
686
|
+
*/
|
|
687
|
+
async extensionSetEligibleTagsInstructions(requestParameters, initOverrides) {
|
|
688
|
+
const response = await this.extensionSetEligibleTagsInstructionsRaw(requestParameters, initOverrides);
|
|
689
|
+
return await response.value();
|
|
690
|
+
}
|
|
494
691
|
/**
|
|
495
692
|
* Defines the settings of an extension.
|
|
496
693
|
* Sets an extension settings
|
|
@@ -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.24.0
|
|
6
6
|
* Contact: edouard@koppasoft.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -97,6 +97,7 @@ export interface ImageApiImageModifyRequest {
|
|
|
97
97
|
}
|
|
98
98
|
export interface ImageApiImageRunCapabilitiesRequest {
|
|
99
99
|
id: string;
|
|
100
|
+
capabilityIds?: Array<ImageRunCapabilitiesCapabilityIdsEnum>;
|
|
100
101
|
extensionIds?: Array<string>;
|
|
101
102
|
}
|
|
102
103
|
export interface ImageApiImageSearchFeaturesRequest {
|
|
@@ -118,6 +119,7 @@ export interface ImageApiImageSearchMediaUrlRequest {
|
|
|
118
119
|
}
|
|
119
120
|
export interface ImageApiImageSearchRunCapabilitiesRequest {
|
|
120
121
|
searchParameters: SearchParameters;
|
|
122
|
+
capabilityIds?: Array<ImageSearchRunCapabilitiesCapabilityIdsEnum>;
|
|
121
123
|
extensionIds?: Array<string>;
|
|
122
124
|
}
|
|
123
125
|
export interface ImageApiImageSearchSummariesRequest {
|
|
@@ -463,6 +465,7 @@ export interface ImageApiInterface {
|
|
|
463
465
|
* Runs all extensions capabilities against the image.
|
|
464
466
|
* @summary Runs capabilities on an image
|
|
465
467
|
* @param {string} id The image identifier
|
|
468
|
+
* @param {Array<'image.features' | 'image.embeddings' | 'image.tags' | 'text.embeddings'>} [capabilityIds] The capabilities to run
|
|
466
469
|
* @param {Array<string>} [extensionIds] The extension identifiers the capabilities should be limited to
|
|
467
470
|
* @param {*} [options] Override http request option.
|
|
468
471
|
* @throws {RequiredError}
|
|
@@ -539,6 +542,7 @@ export interface ImageApiInterface {
|
|
|
539
542
|
* Runs all extensions capabilities against the images following search parameters.
|
|
540
543
|
* @summary Run capabilities on images
|
|
541
544
|
* @param {SearchParameters} searchParameters The search parameters
|
|
545
|
+
* @param {Array<'image.features' | 'image.embeddings' | 'image.tags' | 'text.embeddings'>} [capabilityIds] The capabilities to run
|
|
542
546
|
* @param {Array<string>} [extensionIds] The extension identifiers the capabilities should be limited to
|
|
543
547
|
* @param {*} [options] Override http request option.
|
|
544
548
|
* @throws {RequiredError}
|
|
@@ -970,3 +974,23 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
|
|
|
970
974
|
*/
|
|
971
975
|
imageTextToImages(requestParameters: ImageApiImageTextToImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ImageDistance>>;
|
|
972
976
|
}
|
|
977
|
+
/**
|
|
978
|
+
* @export
|
|
979
|
+
*/
|
|
980
|
+
export declare const ImageRunCapabilitiesCapabilityIdsEnum: {
|
|
981
|
+
readonly ImageFeatures: "image.features";
|
|
982
|
+
readonly ImageEmbeddings: "image.embeddings";
|
|
983
|
+
readonly ImageTags: "image.tags";
|
|
984
|
+
readonly TextEmbeddings: "text.embeddings";
|
|
985
|
+
};
|
|
986
|
+
export type ImageRunCapabilitiesCapabilityIdsEnum = typeof ImageRunCapabilitiesCapabilityIdsEnum[keyof typeof ImageRunCapabilitiesCapabilityIdsEnum];
|
|
987
|
+
/**
|
|
988
|
+
* @export
|
|
989
|
+
*/
|
|
990
|
+
export declare const ImageSearchRunCapabilitiesCapabilityIdsEnum: {
|
|
991
|
+
readonly ImageFeatures: "image.features";
|
|
992
|
+
readonly ImageEmbeddings: "image.embeddings";
|
|
993
|
+
readonly ImageTags: "image.tags";
|
|
994
|
+
readonly TextEmbeddings: "text.embeddings";
|
|
995
|
+
};
|
|
996
|
+
export type ImageSearchRunCapabilitiesCapabilityIdsEnum = typeof ImageSearchRunCapabilitiesCapabilityIdsEnum[keyof typeof ImageSearchRunCapabilitiesCapabilityIdsEnum];
|
|
@@ -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.24.0
|
|
8
8
|
* Contact: edouard@koppasoft.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -762,6 +762,9 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
762
762
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageRunCapabilities().');
|
|
763
763
|
}
|
|
764
764
|
const queryParameters = {};
|
|
765
|
+
if (requestParameters['capabilityIds'] != null) {
|
|
766
|
+
queryParameters['capabilityIds'] = requestParameters['capabilityIds'];
|
|
767
|
+
}
|
|
765
768
|
if (requestParameters['extensionIds'] != null) {
|
|
766
769
|
queryParameters['extensionIds'] = requestParameters['extensionIds'];
|
|
767
770
|
}
|
|
@@ -939,6 +942,9 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
939
942
|
throw new runtime.RequiredError('searchParameters', 'Required parameter "searchParameters" was null or undefined when calling imageSearchRunCapabilities().');
|
|
940
943
|
}
|
|
941
944
|
const queryParameters = {};
|
|
945
|
+
if (requestParameters['capabilityIds'] != null) {
|
|
946
|
+
queryParameters['capabilityIds'] = requestParameters['capabilityIds'];
|
|
947
|
+
}
|
|
942
948
|
if (requestParameters['extensionIds'] != null) {
|
|
943
949
|
queryParameters['extensionIds'] = requestParameters['extensionIds'];
|
|
944
950
|
}
|
|
@@ -1206,3 +1212,21 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
1206
1212
|
return await response.value();
|
|
1207
1213
|
}
|
|
1208
1214
|
}
|
|
1215
|
+
/**
|
|
1216
|
+
* @export
|
|
1217
|
+
*/
|
|
1218
|
+
export const ImageRunCapabilitiesCapabilityIdsEnum = {
|
|
1219
|
+
ImageFeatures: 'image.features',
|
|
1220
|
+
ImageEmbeddings: 'image.embeddings',
|
|
1221
|
+
ImageTags: 'image.tags',
|
|
1222
|
+
TextEmbeddings: 'text.embeddings'
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* @export
|
|
1226
|
+
*/
|
|
1227
|
+
export const ImageSearchRunCapabilitiesCapabilityIdsEnum = {
|
|
1228
|
+
ImageFeatures: 'image.features',
|
|
1229
|
+
ImageEmbeddings: 'image.embeddings',
|
|
1230
|
+
ImageTags: 'image.tags',
|
|
1231
|
+
TextEmbeddings: 'text.embeddings'
|
|
1232
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picteus
|
|
3
|
+
* The Picteus API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.24.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
|
+
/**
|
|
13
|
+
* An AI model declared by an extension
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AiModel
|
|
16
|
+
*/
|
|
17
|
+
export interface AiModel {
|
|
18
|
+
/**
|
|
19
|
+
* The model technical identifier, unique within the extension
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiModel
|
|
22
|
+
*/
|
|
23
|
+
technicalId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The model display name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiModel
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* The model comment
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AiModel
|
|
34
|
+
*/
|
|
35
|
+
comment?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AiModel interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAiModel(value: object): value is AiModel;
|
|
41
|
+
export declare function AiModelFromJSON(json: any): AiModel;
|
|
42
|
+
export declare function AiModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiModel;
|
|
43
|
+
export declare function AiModelToJSON(json: any): AiModel;
|
|
44
|
+
export declare function AiModelToJSONTyped(value?: AiModel | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Picteus
|
|
5
|
+
* The Picteus API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.24.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
|
+
/**
|
|
15
|
+
* Check if a given object implements the AiModel interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAiModel(value) {
|
|
18
|
+
if (!('technicalId' in value) || value['technicalId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function AiModelFromJSON(json) {
|
|
25
|
+
return AiModelFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function AiModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'technicalId': json['technicalId'],
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
'comment': json['comment'] == null ? undefined : json['comment'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function AiModelToJSON(json) {
|
|
38
|
+
return AiModelToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function AiModelToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'technicalId': value['technicalId'],
|
|
46
|
+
'name': value['name'],
|
|
47
|
+
'comment': value['comment'],
|
|
48
|
+
};
|
|
49
|
+
}
|