@picteus/extension-sdk 0.8.0 → 0.10.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/Intents.d.ts +125 -0
- package/dist/Intents.js +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/picteus-ws-client/apis/AdministrationApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/AdministrationApi.js +1 -1
- package/dist/picteus-ws-client/apis/ApiSecretApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/ApiSecretApi.js +2 -2
- package/dist/picteus-ws-client/apis/CollectionApi.d.ts +167 -0
- package/dist/picteus-ws-client/apis/CollectionApi.js +188 -0
- package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/ExtensionApi.js +1 -1
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +230 -31
- package/dist/picteus-ws-client/apis/ImageApi.js +268 -24
- 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 +25 -35
- package/dist/picteus-ws-client/apis/RepositoryApi.js +29 -42
- 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/ApiSecret.d.ts +17 -17
- package/dist/picteus-ws-client/models/ApiSecret.js +7 -7
- package/dist/picteus-ws-client/models/ApiSecretSummary.d.ts +17 -17
- package/dist/picteus-ws-client/models/ApiSecretSummary.js +7 -7
- 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/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/Collection.d.ts +63 -0
- package/dist/picteus-ws-client/models/Collection.js +62 -0
- 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 +40 -0
- package/dist/picteus-ws-client/models/ConstantsRegistry.js +49 -0
- package/dist/picteus-ws-client/models/Dates.d.ts +1 -1
- package/dist/picteus-ws-client/models/Dates.js +1 -1
- package/dist/picteus-ws-client/models/Extension.d.ts +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/ExtensionActivityKind.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivityKind.js +1 -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/ExtensionGenerationOptions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +2 -2
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +6 -5
- package/dist/picteus-ws-client/models/ExtensionImageFeature.js +4 -3
- package/dist/picteus-ws-client/models/ExtensionImageFeatureName.d.ts +52 -0
- package/dist/picteus-ws-client/models/ExtensionImageFeatureName.js +57 -0
- package/dist/picteus-ws-client/models/ExtensionImageFeaturesAttribute.d.ts +39 -0
- package/dist/picteus-ws-client/models/ExtensionImageFeaturesAttribute.js +48 -0
- package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +2 -2
- package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageTagsAttribute.d.ts +39 -0
- package/dist/picteus-ws-client/models/ExtensionImageTagsAttribute.js +48 -0
- 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/ExtensionStatus.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionStatus.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 +4 -2
- package/dist/picteus-ws-client/models/GenerationRecipePrompt.d.ts +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipePrompt.js +1 -1
- package/dist/picteus-ws-client/models/Image.d.ts +2 -2
- 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 +2 -2
- package/dist/picteus-ws-client/models/ImageDistance.js +1 -1
- package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +2 -2
- package/dist/picteus-ws-client/models/ImageEmbeddings.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeature.d.ts +6 -5
- package/dist/picteus-ws-client/models/ImageFeature.js +4 -3
- package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +4 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.js +4 -1
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.d.ts +24 -0
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.js +42 -0
- package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +3 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.js +3 -1
- package/dist/picteus-ws-client/models/ImageFeatureValue.d.ts +26 -0
- package/dist/picteus-ws-client/models/ImageFeatureValue.js +31 -0
- package/dist/picteus-ws-client/models/ImageFormat.d.ts +2 -2
- package/dist/picteus-ws-client/models/ImageFormat.js +2 -2
- 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 +2 -2
- package/dist/picteus-ws-client/models/ImageSummary.js +1 -1
- package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageSummaryList.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/ManifestCapabilityId.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
- package/dist/picteus-ws-client/models/ManifestEvent.d.ts +3 -1
- package/dist/picteus-ws-client/models/ManifestEvent.js +3 -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/ManifestInstructions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +13 -7
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +9 -5
- package/dist/picteus-ws-client/models/ManifestInterfaceElementIntegration.d.ts +27 -0
- package/dist/picteus-ws-client/models/ManifestInterfaceElementIntegration.js +47 -0
- 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/RepositoryStatus.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryStatus.js +1 -1
- package/dist/picteus-ws-client/models/SearchCriteria.d.ts +8 -1
- package/dist/picteus-ws-client/models/SearchCriteria.js +4 -1
- package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.d.ts +30 -0
- package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.js +48 -0
- package/dist/picteus-ws-client/models/SearchFeatureCondition.d.ts +60 -0
- package/dist/picteus-ws-client/models/SearchFeatureCondition.js +59 -0
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.d.ts +26 -0
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.js +31 -0
- package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.d.ts +26 -0
- package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.js +44 -0
- package/dist/picteus-ws-client/models/SearchFeatures.d.ts +46 -0
- package/dist/picteus-ws-client/models/SearchFeatures.js +51 -0
- package/dist/picteus-ws-client/models/SearchFeaturesResult.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchFeaturesResult.js +48 -0
- package/dist/picteus-ws-client/models/SearchFilter.d.ts +47 -0
- package/dist/picteus-ws-client/models/SearchFilter.js +48 -0
- package/dist/picteus-ws-client/models/SearchFilterOrigin.d.ts +27 -0
- package/dist/picteus-ws-client/models/SearchFilterOrigin.js +47 -0
- package/dist/picteus-ws-client/models/SearchImageResult.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchImageResult.js +48 -0
- package/dist/picteus-ws-client/models/SearchImageSummaryResult.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchImageSummaryResult.js +48 -0
- package/dist/picteus-ws-client/models/SearchImagesOrigin.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchImagesOrigin.js +48 -0
- package/dist/picteus-ws-client/models/SearchKeyword.d.ts +2 -2
- package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
- package/dist/picteus-ws-client/models/SearchMediaUrlResult.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchMediaUrlResult.js +48 -0
- package/dist/picteus-ws-client/models/SearchOriginNature.d.ts +25 -0
- package/dist/picteus-ws-client/models/SearchOriginNature.js +43 -0
- package/dist/picteus-ws-client/models/SearchParameters.d.ts +46 -0
- package/dist/picteus-ws-client/models/SearchParameters.js +47 -0
- package/dist/picteus-ws-client/models/SearchProperties.d.ts +2 -2
- 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 +2 -2
- package/dist/picteus-ws-client/models/SearchRange.js +1 -1
- package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.js +48 -0
- 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 +3 -3
- package/dist/picteus-ws-client/models/SearchTags.js +1 -1
- package/dist/picteus-ws-client/models/SearchTagsResult.d.ts +39 -0
- package/dist/picteus-ws-client/models/SearchTagsResult.js +48 -0
- package/dist/picteus-ws-client/models/Settings.d.ts +1 -1
- package/dist/picteus-ws-client/models/Settings.js +1 -1
- package/dist/picteus-ws-client/models/Software.d.ts +24 -0
- package/dist/picteus-ws-client/models/Software.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 +2 -3
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +2 -3
- package/dist/picteus-ws-client/models/UserInterfaceSidebarIntegration.d.ts +39 -0
- package/dist/picteus-ws-client/models/UserInterfaceSidebarIntegration.js +48 -0
- package/dist/picteus-ws-client/models/UserInterfaceWindowIntegration.d.ts +33 -0
- package/dist/picteus-ws-client/models/UserInterfaceWindowIntegration.js +44 -0
- package/dist/picteus-ws-client/models/index.d.ts +27 -1
- package/dist/picteus-ws-client/models/index.js +27 -1
- package/dist/picteus-ws-client/runtime.d.ts +1 -1
- package/dist/picteus-ws-client/runtime.js +1 -1
- package/dist/picteusExtension.d.ts +6 -63
- package/dist/picteusExtension.js +19 -21
- package/package.json +4 -4
|
@@ -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.14.1
|
|
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 { ComputedImageFormatFromJSON, ExtensionImageEmbeddingsFromJSON, ExtensionImageFeatureFromJSON, ExtensionImageTagFromJSON, ImageFromJSON, ImageDistanceFromJSON, ImageEmbeddingsFromJSON, ImageEmbeddingsToJSON, ImageFeatureToJSON, ImageMediaUrlFromJSON, ImageMetadataFromJSON,
|
|
15
|
+
import { ComputedImageFormatFromJSON, ExtensionImageEmbeddingsFromJSON, ExtensionImageFeatureFromJSON, ExtensionImageTagFromJSON, GenerationRecipeFromJSON, ImageFromJSON, ImageDistanceFromJSON, ImageEmbeddingsFromJSON, ImageEmbeddingsToJSON, ImageFeatureFromJSON, ImageFeatureToJSON, ImageMediaUrlFromJSON, ImageMetadataFromJSON, SearchFeaturesResultFromJSON, SearchImageResultFromJSON, SearchImageSummaryResultFromJSON, SearchMediaUrlResultFromJSON, SearchParametersToJSON, SearchTagsResultFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -387,6 +387,37 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
387
387
|
const response = await this.imageGetAllFeaturesRaw(requestParameters, initOverrides);
|
|
388
388
|
return await response.value();
|
|
389
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* Returns the recipes of an image for all extensions.
|
|
392
|
+
* Gets all the recipes of an image
|
|
393
|
+
*/
|
|
394
|
+
async imageGetAllRecipesRaw(requestParameters, initOverrides) {
|
|
395
|
+
if (requestParameters['id'] == null) {
|
|
396
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageGetAllRecipes().');
|
|
397
|
+
}
|
|
398
|
+
const queryParameters = {};
|
|
399
|
+
const headerParameters = {};
|
|
400
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
401
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
402
|
+
}
|
|
403
|
+
let urlPath = `/image/{id}/getAllRecipes`;
|
|
404
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
405
|
+
const response = await this.request({
|
|
406
|
+
path: urlPath,
|
|
407
|
+
method: 'GET',
|
|
408
|
+
headers: headerParameters,
|
|
409
|
+
query: queryParameters,
|
|
410
|
+
}, initOverrides);
|
|
411
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GenerationRecipeFromJSON));
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Returns the recipes of an image for all extensions.
|
|
415
|
+
* Gets all the recipes of an image
|
|
416
|
+
*/
|
|
417
|
+
async imageGetAllRecipes(requestParameters, initOverrides) {
|
|
418
|
+
const response = await this.imageGetAllRecipesRaw(requestParameters, initOverrides);
|
|
419
|
+
return await response.value();
|
|
420
|
+
}
|
|
390
421
|
/**
|
|
391
422
|
* Returns the tags of an image for all extensions.
|
|
392
423
|
* Gets all the tags of an image
|
|
@@ -455,6 +486,43 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
455
486
|
const response = await this.imageGetEmbeddingsRaw(requestParameters, initOverrides);
|
|
456
487
|
return await response.value();
|
|
457
488
|
}
|
|
489
|
+
/**
|
|
490
|
+
* Returns the features of an image given an extension.
|
|
491
|
+
* Gets all the features of an image for an extension
|
|
492
|
+
*/
|
|
493
|
+
async imageGetFeaturesRaw(requestParameters, initOverrides) {
|
|
494
|
+
if (requestParameters['id'] == null) {
|
|
495
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageGetFeatures().');
|
|
496
|
+
}
|
|
497
|
+
if (requestParameters['extensionId'] == null) {
|
|
498
|
+
throw new runtime.RequiredError('extensionId', 'Required parameter "extensionId" was null or undefined when calling imageGetFeatures().');
|
|
499
|
+
}
|
|
500
|
+
const queryParameters = {};
|
|
501
|
+
if (requestParameters['extensionId'] != null) {
|
|
502
|
+
queryParameters['extensionId'] = requestParameters['extensionId'];
|
|
503
|
+
}
|
|
504
|
+
const headerParameters = {};
|
|
505
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
506
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
507
|
+
}
|
|
508
|
+
let urlPath = `/image/{id}/getFeatures`;
|
|
509
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
510
|
+
const response = await this.request({
|
|
511
|
+
path: urlPath,
|
|
512
|
+
method: 'GET',
|
|
513
|
+
headers: headerParameters,
|
|
514
|
+
query: queryParameters,
|
|
515
|
+
}, initOverrides);
|
|
516
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ImageFeatureFromJSON));
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Returns the features of an image given an extension.
|
|
520
|
+
* Gets all the features of an image for an extension
|
|
521
|
+
*/
|
|
522
|
+
async imageGetFeatures(requestParameters, initOverrides) {
|
|
523
|
+
const response = await this.imageGetFeaturesRaw(requestParameters, initOverrides);
|
|
524
|
+
return await response.value();
|
|
525
|
+
}
|
|
458
526
|
/**
|
|
459
527
|
* Returns all the metadata of an image available in its representation file.
|
|
460
528
|
* Gets the metadata of an image
|
|
@@ -487,7 +555,44 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
487
555
|
return await response.value();
|
|
488
556
|
}
|
|
489
557
|
/**
|
|
490
|
-
* Returns the
|
|
558
|
+
* Returns the tags of an image given an extension.
|
|
559
|
+
* Gets the tags of an image for an extension
|
|
560
|
+
*/
|
|
561
|
+
async imageGetTagsRaw(requestParameters, initOverrides) {
|
|
562
|
+
if (requestParameters['id'] == null) {
|
|
563
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling imageGetTags().');
|
|
564
|
+
}
|
|
565
|
+
if (requestParameters['extensionId'] == null) {
|
|
566
|
+
throw new runtime.RequiredError('extensionId', 'Required parameter "extensionId" was null or undefined when calling imageGetTags().');
|
|
567
|
+
}
|
|
568
|
+
const queryParameters = {};
|
|
569
|
+
if (requestParameters['extensionId'] != null) {
|
|
570
|
+
queryParameters['extensionId'] = requestParameters['extensionId'];
|
|
571
|
+
}
|
|
572
|
+
const headerParameters = {};
|
|
573
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
574
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
575
|
+
}
|
|
576
|
+
let urlPath = `/image/{id}/getTags`;
|
|
577
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
578
|
+
const response = await this.request({
|
|
579
|
+
path: urlPath,
|
|
580
|
+
method: 'GET',
|
|
581
|
+
headers: headerParameters,
|
|
582
|
+
query: queryParameters,
|
|
583
|
+
}, initOverrides);
|
|
584
|
+
return new runtime.JSONApiResponse(response);
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Returns the tags of an image given an extension.
|
|
588
|
+
* Gets the tags of an image for an extension
|
|
589
|
+
*/
|
|
590
|
+
async imageGetTags(requestParameters, initOverrides) {
|
|
591
|
+
const response = await this.imageGetTagsRaw(requestParameters, initOverrides);
|
|
592
|
+
return await response.value();
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Returns the URL of the image, given some given dimensions and format, which may used to display it.
|
|
491
596
|
* Gets an URL of the image
|
|
492
597
|
*/
|
|
493
598
|
async imageMediaUrlRaw(requestParameters, initOverrides) {
|
|
@@ -522,7 +627,7 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
522
627
|
return new runtime.JSONApiResponse(response, (jsonValue) => ImageMediaUrlFromJSON(jsonValue));
|
|
523
628
|
}
|
|
524
629
|
/**
|
|
525
|
-
* Returns the URL of the image, given
|
|
630
|
+
* Returns the URL of the image, given some given dimensions and format, which may used to display it.
|
|
526
631
|
* Gets an URL of the image
|
|
527
632
|
*/
|
|
528
633
|
async imageMediaUrl(requestParameters, initOverrides) {
|
|
@@ -566,42 +671,181 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
566
671
|
return await response.value();
|
|
567
672
|
}
|
|
568
673
|
/**
|
|
569
|
-
*
|
|
570
|
-
*
|
|
674
|
+
* Retrieves image features following search parameters.
|
|
675
|
+
* Retrieves image features
|
|
676
|
+
*/
|
|
677
|
+
async imageSearchFeaturesRaw(requestParameters, initOverrides) {
|
|
678
|
+
if (requestParameters['searchParameters'] == null) {
|
|
679
|
+
throw new runtime.RequiredError('searchParameters', 'Required parameter "searchParameters" was null or undefined when calling imageSearchFeatures().');
|
|
680
|
+
}
|
|
681
|
+
const queryParameters = {};
|
|
682
|
+
if (requestParameters['extensionIds'] != null) {
|
|
683
|
+
queryParameters['extensionIds'] = requestParameters['extensionIds'];
|
|
684
|
+
}
|
|
685
|
+
const headerParameters = {};
|
|
686
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
687
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
688
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
689
|
+
}
|
|
690
|
+
let urlPath = `/image/search/features`;
|
|
691
|
+
const response = await this.request({
|
|
692
|
+
path: urlPath,
|
|
693
|
+
method: 'POST',
|
|
694
|
+
headers: headerParameters,
|
|
695
|
+
query: queryParameters,
|
|
696
|
+
body: SearchParametersToJSON(requestParameters['searchParameters']),
|
|
697
|
+
}, initOverrides);
|
|
698
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SearchFeaturesResultFromJSON(jsonValue));
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Retrieves image features following search parameters.
|
|
702
|
+
* Retrieves image features
|
|
703
|
+
*/
|
|
704
|
+
async imageSearchFeatures(requestParameters, initOverrides) {
|
|
705
|
+
const response = await this.imageSearchFeaturesRaw(requestParameters, initOverrides);
|
|
706
|
+
return await response.value();
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Retrieves image details following search parameters.
|
|
710
|
+
* Retrieves image details
|
|
571
711
|
*/
|
|
572
|
-
async
|
|
712
|
+
async imageSearchImagesRaw(requestParameters, initOverrides) {
|
|
713
|
+
if (requestParameters['searchParameters'] == null) {
|
|
714
|
+
throw new runtime.RequiredError('searchParameters', 'Required parameter "searchParameters" was null or undefined when calling imageSearchImages().');
|
|
715
|
+
}
|
|
573
716
|
const queryParameters = {};
|
|
574
|
-
|
|
575
|
-
|
|
717
|
+
const headerParameters = {};
|
|
718
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
719
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
720
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
576
721
|
}
|
|
577
|
-
|
|
578
|
-
|
|
722
|
+
let urlPath = `/image/search/images`;
|
|
723
|
+
const response = await this.request({
|
|
724
|
+
path: urlPath,
|
|
725
|
+
method: 'POST',
|
|
726
|
+
headers: headerParameters,
|
|
727
|
+
query: queryParameters,
|
|
728
|
+
body: SearchParametersToJSON(requestParameters['searchParameters']),
|
|
729
|
+
}, initOverrides);
|
|
730
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SearchImageResultFromJSON(jsonValue));
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Retrieves image details following search parameters.
|
|
734
|
+
* Retrieves image details
|
|
735
|
+
*/
|
|
736
|
+
async imageSearchImages(requestParameters, initOverrides) {
|
|
737
|
+
const response = await this.imageSearchImagesRaw(requestParameters, initOverrides);
|
|
738
|
+
return await response.value();
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Retrieves image media URLs following search parameters.
|
|
742
|
+
* Retrieves image media URLs
|
|
743
|
+
*/
|
|
744
|
+
async imageSearchMediaUrlRaw(requestParameters, initOverrides) {
|
|
745
|
+
if (requestParameters['searchParameters'] == null) {
|
|
746
|
+
throw new runtime.RequiredError('searchParameters', 'Required parameter "searchParameters" was null or undefined when calling imageSearchMediaUrl().');
|
|
747
|
+
}
|
|
748
|
+
const queryParameters = {};
|
|
749
|
+
if (requestParameters['format'] != null) {
|
|
750
|
+
queryParameters['format'] = requestParameters['format'];
|
|
751
|
+
}
|
|
752
|
+
if (requestParameters['width'] != null) {
|
|
753
|
+
queryParameters['width'] = requestParameters['width'];
|
|
579
754
|
}
|
|
580
|
-
if (requestParameters['
|
|
581
|
-
queryParameters['
|
|
755
|
+
if (requestParameters['height'] != null) {
|
|
756
|
+
queryParameters['height'] = requestParameters['height'];
|
|
582
757
|
}
|
|
583
|
-
if (requestParameters['
|
|
584
|
-
queryParameters['
|
|
758
|
+
if (requestParameters['resizeRender'] != null) {
|
|
759
|
+
queryParameters['resizeRender'] = requestParameters['resizeRender'];
|
|
585
760
|
}
|
|
586
761
|
const headerParameters = {};
|
|
762
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
587
763
|
if (this.configuration && this.configuration.apiKey) {
|
|
588
764
|
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
589
765
|
}
|
|
590
|
-
let urlPath = `/image/search`;
|
|
766
|
+
let urlPath = `/image/search/mediaUrls`;
|
|
591
767
|
const response = await this.request({
|
|
592
768
|
path: urlPath,
|
|
593
|
-
method: '
|
|
769
|
+
method: 'POST',
|
|
770
|
+
headers: headerParameters,
|
|
771
|
+
query: queryParameters,
|
|
772
|
+
body: SearchParametersToJSON(requestParameters['searchParameters']),
|
|
773
|
+
}, initOverrides);
|
|
774
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SearchMediaUrlResultFromJSON(jsonValue));
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Retrieves image media URLs following search parameters.
|
|
778
|
+
* Retrieves image media URLs
|
|
779
|
+
*/
|
|
780
|
+
async imageSearchMediaUrl(requestParameters, initOverrides) {
|
|
781
|
+
const response = await this.imageSearchMediaUrlRaw(requestParameters, initOverrides);
|
|
782
|
+
return await response.value();
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* Retrieves image summaries following search parameters.
|
|
786
|
+
* Retrieves image summaries
|
|
787
|
+
*/
|
|
788
|
+
async imageSearchSummariesRaw(requestParameters, initOverrides) {
|
|
789
|
+
if (requestParameters['searchParameters'] == null) {
|
|
790
|
+
throw new runtime.RequiredError('searchParameters', 'Required parameter "searchParameters" was null or undefined when calling imageSearchSummaries().');
|
|
791
|
+
}
|
|
792
|
+
const queryParameters = {};
|
|
793
|
+
const headerParameters = {};
|
|
794
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
795
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
796
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
797
|
+
}
|
|
798
|
+
let urlPath = `/image/search/summaries`;
|
|
799
|
+
const response = await this.request({
|
|
800
|
+
path: urlPath,
|
|
801
|
+
method: 'POST',
|
|
802
|
+
headers: headerParameters,
|
|
803
|
+
query: queryParameters,
|
|
804
|
+
body: SearchParametersToJSON(requestParameters['searchParameters']),
|
|
805
|
+
}, initOverrides);
|
|
806
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SearchImageSummaryResultFromJSON(jsonValue));
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Retrieves image summaries following search parameters.
|
|
810
|
+
* Retrieves image summaries
|
|
811
|
+
*/
|
|
812
|
+
async imageSearchSummaries(requestParameters, initOverrides) {
|
|
813
|
+
const response = await this.imageSearchSummariesRaw(requestParameters, initOverrides);
|
|
814
|
+
return await response.value();
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* Retrieves image tags following search parameters.
|
|
818
|
+
* Retrieves image tags
|
|
819
|
+
*/
|
|
820
|
+
async imageSearchTagsRaw(requestParameters, initOverrides) {
|
|
821
|
+
if (requestParameters['searchParameters'] == null) {
|
|
822
|
+
throw new runtime.RequiredError('searchParameters', 'Required parameter "searchParameters" was null or undefined when calling imageSearchTags().');
|
|
823
|
+
}
|
|
824
|
+
const queryParameters = {};
|
|
825
|
+
if (requestParameters['extensionIds'] != null) {
|
|
826
|
+
queryParameters['extensionIds'] = requestParameters['extensionIds'];
|
|
827
|
+
}
|
|
828
|
+
const headerParameters = {};
|
|
829
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
830
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
831
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
832
|
+
}
|
|
833
|
+
let urlPath = `/image/search/tags`;
|
|
834
|
+
const response = await this.request({
|
|
835
|
+
path: urlPath,
|
|
836
|
+
method: 'POST',
|
|
594
837
|
headers: headerParameters,
|
|
595
838
|
query: queryParameters,
|
|
839
|
+
body: SearchParametersToJSON(requestParameters['searchParameters']),
|
|
596
840
|
}, initOverrides);
|
|
597
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
841
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SearchTagsResultFromJSON(jsonValue));
|
|
598
842
|
}
|
|
599
843
|
/**
|
|
600
|
-
*
|
|
601
|
-
*
|
|
844
|
+
* Retrieves image tags following search parameters.
|
|
845
|
+
* Retrieves image tags
|
|
602
846
|
*/
|
|
603
|
-
async
|
|
604
|
-
const response = await this.
|
|
847
|
+
async imageSearchTags(requestParameters, initOverrides) {
|
|
848
|
+
const response = await this.imageSearchTagsRaw(requestParameters, initOverrides);
|
|
605
849
|
return await response.value();
|
|
606
850
|
}
|
|
607
851
|
/**
|
|
@@ -688,7 +932,7 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
688
932
|
}
|
|
689
933
|
/**
|
|
690
934
|
* Sets the tags of an image for a given extension.
|
|
691
|
-
* Sets the tags of an image
|
|
935
|
+
* Sets the tags of an image
|
|
692
936
|
*/
|
|
693
937
|
async imageSetTagsRaw(requestParameters, initOverrides) {
|
|
694
938
|
if (requestParameters['id'] == null) {
|
|
@@ -722,7 +966,7 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
722
966
|
}
|
|
723
967
|
/**
|
|
724
968
|
* Sets the tags of an image for a given extension.
|
|
725
|
-
* Sets the tags of an image
|
|
969
|
+
* Sets the tags of an image
|
|
726
970
|
*/
|
|
727
971
|
async imageSetTags(requestParameters, initOverrides) {
|
|
728
972
|
await this.imageSetTagsRaw(requestParameters, initOverrides);
|
|
@@ -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.14.1
|
|
6
6
|
* Contact: edouard@koppasoft.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { ExtensionImageTag, Image,
|
|
13
|
+
import type { ExtensionImageFeatureName, ExtensionImageTag, Image, Repository, RepositoryActivity } from '../models/index.js';
|
|
14
14
|
export interface RepositoryApiRepositoryCreateRequest {
|
|
15
15
|
type: RepositoryCreateTypeEnum;
|
|
16
16
|
url: string;
|
|
@@ -40,12 +40,6 @@ export interface RepositoryApiRepositoryRenameImageRequest {
|
|
|
40
40
|
nameWithoutExtension: string;
|
|
41
41
|
relativeDirectoryPath?: string;
|
|
42
42
|
}
|
|
43
|
-
export interface RepositoryApiRepositorySearchImagesRequest {
|
|
44
|
-
id: string;
|
|
45
|
-
criteria?: SearchCriteria;
|
|
46
|
-
sorting?: SearchSorting;
|
|
47
|
-
range?: SearchRange;
|
|
48
|
-
}
|
|
49
43
|
export interface RepositoryApiRepositoryStartOrStopRequest {
|
|
50
44
|
isStart: boolean;
|
|
51
45
|
}
|
|
@@ -149,6 +143,19 @@ export interface RepositoryApiInterface {
|
|
|
149
143
|
* Gets a repository
|
|
150
144
|
*/
|
|
151
145
|
repositoryGet(requestParameters: RepositoryApiRepositoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
|
|
146
|
+
/**
|
|
147
|
+
* Returns the feature names of all images extensions.
|
|
148
|
+
* @summary Gets all the feature names
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
* @memberof RepositoryApiInterface
|
|
152
|
+
*/
|
|
153
|
+
repositoryGetFeatureNamesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ExtensionImageFeatureName>>>;
|
|
154
|
+
/**
|
|
155
|
+
* Returns the feature names of all images extensions.
|
|
156
|
+
* Gets all the feature names
|
|
157
|
+
*/
|
|
158
|
+
repositoryGetFeatureNames(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ExtensionImageFeatureName>>;
|
|
152
159
|
/**
|
|
153
160
|
* Returns the details about an image.
|
|
154
161
|
* @summary Gets an image from its URL
|
|
@@ -206,23 +213,6 @@ export interface RepositoryApiInterface {
|
|
|
206
213
|
* Renames an image
|
|
207
214
|
*/
|
|
208
215
|
repositoryRenameImage(requestParameters: RepositoryApiRepositoryRenameImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
|
|
209
|
-
/**
|
|
210
|
-
* Searches images within the repository with the provided criteria.
|
|
211
|
-
* @summary Searches for images within the repository
|
|
212
|
-
* @param {string} id The repository identifier
|
|
213
|
-
* @param {SearchCriteria} [criteria] The criteria that will be applied to the search as a filter
|
|
214
|
-
* @param {SearchSorting} [sorting] Indicates how the search results should be sorted
|
|
215
|
-
* @param {SearchRange} [range] The range of items to consider following the search
|
|
216
|
-
* @param {*} [options] Override http request option.
|
|
217
|
-
* @throws {RequiredError}
|
|
218
|
-
* @memberof RepositoryApiInterface
|
|
219
|
-
*/
|
|
220
|
-
repositorySearchImagesRaw(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImageSummaryList>>;
|
|
221
|
-
/**
|
|
222
|
-
* Searches images within the repository with the provided criteria.
|
|
223
|
-
* Searches for images within the repository
|
|
224
|
-
*/
|
|
225
|
-
repositorySearchImages(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageSummaryList>;
|
|
226
216
|
/**
|
|
227
217
|
* Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
|
|
228
218
|
* @summary Starts or stop the repositories
|
|
@@ -341,6 +331,16 @@ export declare class RepositoryApi extends runtime.BaseAPI implements Repository
|
|
|
341
331
|
* Gets a repository
|
|
342
332
|
*/
|
|
343
333
|
repositoryGet(requestParameters: RepositoryApiRepositoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Repository>;
|
|
334
|
+
/**
|
|
335
|
+
* Returns the feature names of all images extensions.
|
|
336
|
+
* Gets all the feature names
|
|
337
|
+
*/
|
|
338
|
+
repositoryGetFeatureNamesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ExtensionImageFeatureName>>>;
|
|
339
|
+
/**
|
|
340
|
+
* Returns the feature names of all images extensions.
|
|
341
|
+
* Gets all the feature names
|
|
342
|
+
*/
|
|
343
|
+
repositoryGetFeatureNames(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ExtensionImageFeatureName>>;
|
|
344
344
|
/**
|
|
345
345
|
* Returns the details about an image.
|
|
346
346
|
* Gets an image from its URL
|
|
@@ -381,16 +381,6 @@ export declare class RepositoryApi extends runtime.BaseAPI implements Repository
|
|
|
381
381
|
* Renames an image
|
|
382
382
|
*/
|
|
383
383
|
repositoryRenameImage(requestParameters: RepositoryApiRepositoryRenameImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
|
|
384
|
-
/**
|
|
385
|
-
* Searches images within the repository with the provided criteria.
|
|
386
|
-
* Searches for images within the repository
|
|
387
|
-
*/
|
|
388
|
-
repositorySearchImagesRaw(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImageSummaryList>>;
|
|
389
|
-
/**
|
|
390
|
-
* Searches images within the repository with the provided criteria.
|
|
391
|
-
* Searches for images within the repository
|
|
392
|
-
*/
|
|
393
|
-
repositorySearchImages(requestParameters: RepositoryApiRepositorySearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageSummaryList>;
|
|
394
384
|
/**
|
|
395
385
|
* Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
|
|
396
386
|
* Starts or stop the repositories
|
|
@@ -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.14.1
|
|
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 { ExtensionImageTagFromJSON, ImageFromJSON,
|
|
15
|
+
import { ExtensionImageFeatureNameFromJSON, ExtensionImageTagFromJSON, ImageFromJSON, RepositoryFromJSON, RepositoryActivityFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -204,6 +204,33 @@ export class RepositoryApi extends runtime.BaseAPI {
|
|
|
204
204
|
const response = await this.repositoryGetRaw(requestParameters, initOverrides);
|
|
205
205
|
return await response.value();
|
|
206
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Returns the feature names of all images extensions.
|
|
209
|
+
* Gets all the feature names
|
|
210
|
+
*/
|
|
211
|
+
async repositoryGetFeatureNamesRaw(initOverrides) {
|
|
212
|
+
const queryParameters = {};
|
|
213
|
+
const headerParameters = {};
|
|
214
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
215
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
216
|
+
}
|
|
217
|
+
let urlPath = `/repository/featureNames`;
|
|
218
|
+
const response = await this.request({
|
|
219
|
+
path: urlPath,
|
|
220
|
+
method: 'GET',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
}, initOverrides);
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ExtensionImageFeatureNameFromJSON));
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Returns the feature names of all images extensions.
|
|
228
|
+
* Gets all the feature names
|
|
229
|
+
*/
|
|
230
|
+
async repositoryGetFeatureNames(initOverrides) {
|
|
231
|
+
const response = await this.repositoryGetFeatureNamesRaw(initOverrides);
|
|
232
|
+
return await response.value();
|
|
233
|
+
}
|
|
207
234
|
/**
|
|
208
235
|
* Returns the details about an image.
|
|
209
236
|
* Gets an image from its URL
|
|
@@ -337,46 +364,6 @@ export class RepositoryApi extends runtime.BaseAPI {
|
|
|
337
364
|
const response = await this.repositoryRenameImageRaw(requestParameters, initOverrides);
|
|
338
365
|
return await response.value();
|
|
339
366
|
}
|
|
340
|
-
/**
|
|
341
|
-
* Searches images within the repository with the provided criteria.
|
|
342
|
-
* Searches for images within the repository
|
|
343
|
-
*/
|
|
344
|
-
async repositorySearchImagesRaw(requestParameters, initOverrides) {
|
|
345
|
-
if (requestParameters['id'] == null) {
|
|
346
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling repositorySearchImages().');
|
|
347
|
-
}
|
|
348
|
-
const queryParameters = {};
|
|
349
|
-
if (requestParameters['criteria'] != null) {
|
|
350
|
-
queryParameters['criteria'] = requestParameters['criteria'];
|
|
351
|
-
}
|
|
352
|
-
if (requestParameters['sorting'] != null) {
|
|
353
|
-
queryParameters['sorting'] = requestParameters['sorting'];
|
|
354
|
-
}
|
|
355
|
-
if (requestParameters['range'] != null) {
|
|
356
|
-
queryParameters['range'] = requestParameters['range'];
|
|
357
|
-
}
|
|
358
|
-
const headerParameters = {};
|
|
359
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
360
|
-
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
361
|
-
}
|
|
362
|
-
let urlPath = `/repository/{id}/searchImages`;
|
|
363
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
364
|
-
const response = await this.request({
|
|
365
|
-
path: urlPath,
|
|
366
|
-
method: 'GET',
|
|
367
|
-
headers: headerParameters,
|
|
368
|
-
query: queryParameters,
|
|
369
|
-
}, initOverrides);
|
|
370
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ImageSummaryListFromJSON(jsonValue));
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Searches images within the repository with the provided criteria.
|
|
374
|
-
* Searches for images within the repository
|
|
375
|
-
*/
|
|
376
|
-
async repositorySearchImages(requestParameters, initOverrides) {
|
|
377
|
-
const response = await this.repositorySearchImagesRaw(requestParameters, initOverrides);
|
|
378
|
-
return await response.value();
|
|
379
|
-
}
|
|
380
367
|
/**
|
|
381
368
|
* Starts all the repositories, resume synchronization if necessary and starts watching them, or stops them.
|
|
382
369
|
* Starts or stop the repositories
|