@picteus/extension-sdk 0.13.0 → 0.14.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/picteus-ws-client/apis/AdministrationApi.d.ts +5 -5
- package/dist/picteus-ws-client/apis/AdministrationApi.js +3 -9
- package/dist/picteus-ws-client/apis/ApiSecretApi.d.ts +5 -5
- package/dist/picteus-ws-client/apis/ApiSecretApi.js +3 -9
- package/dist/picteus-ws-client/apis/CollectionApi.d.ts +5 -5
- package/dist/picteus-ws-client/apis/CollectionApi.js +3 -9
- package/dist/picteus-ws-client/apis/ExtensionApi.d.ts +29 -29
- package/dist/picteus-ws-client/apis/ExtensionApi.js +15 -57
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +42 -38
- package/dist/picteus-ws-client/apis/ImageApi.js +35 -53
- 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 +24 -23
- package/dist/picteus-ws-client/apis/MiscellaneousApi.js +19 -23
- package/dist/picteus-ws-client/apis/RepositoryApi.d.ts +41 -18
- package/dist/picteus-ws-client/apis/RepositoryApi.js +37 -34
- package/dist/picteus-ws-client/apis/SettingsApi.d.ts +12 -12
- package/dist/picteus-ws-client/apis/SettingsApi.js +7 -7
- 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 +32 -0
- package/dist/picteus-ws-client/models/ApplicationConfiguration.js +41 -0
- 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 +32 -0
- package/dist/picteus-ws-client/models/ApplicationSettings.js +41 -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 +1 -1
- package/dist/picteus-ws-client/models/ConstantsRegistry.js +1 -1
- package/dist/picteus-ws-client/models/Dates.d.ts +1 -1
- package/dist/picteus-ws-client/models/Dates.js +1 -1
- package/dist/picteus-ws-client/models/Extension.d.ts +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/ExtensionCategory.d.ts +29 -0
- package/dist/picteus-ws-client/models/ExtensionCategory.js +47 -0
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +14 -1
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +8 -1
- package/dist/picteus-ws-client/models/ExtensionIdImageEmbeddingName.d.ts +38 -0
- package/dist/picteus-ws-client/models/ExtensionIdImageEmbeddingName.js +47 -0
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +8 -7
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +6 -5
- 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/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 +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/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 +38 -0
- package/dist/picteus-ws-client/models/ImageEmbedding.js +47 -0
- package/dist/picteus-ws-client/models/ImageEmbeddings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageEmbeddings.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 +4 -9
- package/dist/picteus-ws-client/models/ImageFeatureValue.js +33 -9
- 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 +9 -2
- package/dist/picteus-ws-client/models/Manifest.js +6 -1
- package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityId.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityId.js +1 -1
- package/dist/picteus-ws-client/models/ManifestEvent.d.ts +1 -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 +8 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +4 -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 +10 -4
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +4 -4
- package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.d.ts +32 -0
- package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.js +43 -0
- package/dist/picteus-ws-client/models/ManifestInstructions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInstructions.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElementIntegration.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElementIntegration.js +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
- package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.js +1 -1
- package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +3 -3
- 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 +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/Settings.d.ts +1 -1
- package/dist/picteus-ws-client/models/Settings.js +1 -1
- package/dist/picteus-ws-client/models/Software.d.ts +1 -1
- package/dist/picteus-ws-client/models/Software.js +1 -1
- package/dist/picteus-ws-client/models/TextualPrompt.d.ts +1 -1
- package/dist/picteus-ws-client/models/TextualPrompt.js +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.d.ts +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceAnchor.js +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceSidebarIntegration.d.ts +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceSidebarIntegration.js +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceWindowIntegration.d.ts +1 -1
- package/dist/picteus-ws-client/models/UserInterfaceWindowIntegration.js +1 -1
- package/dist/picteus-ws-client/models/index.d.ts +6 -2
- package/dist/picteus-ws-client/models/index.js +6 -2
- package/dist/picteus-ws-client/runtime.d.ts +1 -1
- package/dist/picteus-ws-client/runtime.js +1 -1
- package/dist/picteusExtension.d.ts +7 -4
- package/dist/picteusExtension.js +33 -12
- package/package.json +1 -1
- package/dist/picteus-ws-client/apis/ExperimentApi.d.ts +0 -48
- package/dist/picteus-ws-client/apis/ExperimentApi.js +0 -51
- package/dist/picteus-ws-client/apis/PingApi.d.ts +0 -48
- package/dist/picteus-ws-client/apis/PingApi.js +0 -51
- package/dist/picteus-ws-client/models/Automatic1111Instruction.d.ts +0 -38
- package/dist/picteus-ws-client/models/Automatic1111Instruction.js +0 -47
- package/dist/picteus-ws-client/models/Automatic1111UserComment.d.ts +0 -45
- package/dist/picteus-ws-client/models/Automatic1111UserComment.js +0 -50
- package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.d.ts +0 -38
- package/dist/picteus-ws-client/models/ComfyUiPromptAndWorkflow.js +0 -47
- package/dist/picteus-ws-client/models/GenerationRecipeSchemaVersions.d.ts +0 -32
- package/dist/picteus-ws-client/models/GenerationRecipeSchemaVersions.js +0 -41
- package/dist/picteus-ws-client/models/ImageGenerator.d.ts +0 -26
- package/dist/picteus-ws-client/models/ImageGenerator.js +0 -44
- package/dist/picteus-ws-client/models/ImageSummaryList.d.ts +0 -39
- package/dist/picteus-ws-client/models/ImageSummaryList.js +0 -48
- package/dist/picteus-ws-client/models/ManifestExtensionCommandLabel.d.ts +0 -38
- package/dist/picteus-ws-client/models/ManifestExtensionCommandLabel.js +0 -47
- package/dist/picteus-ws-client/models/MidjourneyInstructions.d.ts +0 -74
- package/dist/picteus-ws-client/models/MidjourneyInstructions.js +0 -71
- /package/dist/{Intents.d.ts → intents.d.ts} +0 -0
- /package/dist/{Intents.js → intents.js} +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './ApiSecret.js';
|
|
2
2
|
export * from './ApiSecretSummary.js';
|
|
3
3
|
export * from './ApiSecretType.js';
|
|
4
|
+
export * from './ApplicationConfiguration.js';
|
|
4
5
|
export * from './ApplicationMetadata.js';
|
|
5
6
|
export * from './ApplicationMetadataItem.js';
|
|
6
7
|
export * from './ApplicationMetadataItemValue.js';
|
|
8
|
+
export * from './ApplicationSettings.js';
|
|
7
9
|
export * from './Collection.js';
|
|
8
10
|
export * from './CommandEntity.js';
|
|
9
11
|
export * from './ComputedImageFormat.js';
|
|
@@ -15,7 +17,9 @@ export * from './Extension.js';
|
|
|
15
17
|
export * from './ExtensionActivity.js';
|
|
16
18
|
export * from './ExtensionActivityKind.js';
|
|
17
19
|
export * from './ExtensionAndManual.js';
|
|
20
|
+
export * from './ExtensionCategory.js';
|
|
18
21
|
export * from './ExtensionGenerationOptions.js';
|
|
22
|
+
export * from './ExtensionIdImageEmbeddingName.js';
|
|
19
23
|
export * from './ExtensionImageEmbeddings.js';
|
|
20
24
|
export * from './ExtensionImageFeature.js';
|
|
21
25
|
export * from './ExtensionImageFeatureName.js';
|
|
@@ -31,7 +35,7 @@ export * from './GenerationRecipePrompt.js';
|
|
|
31
35
|
export * from './Image.js';
|
|
32
36
|
export * from './ImageDimensions.js';
|
|
33
37
|
export * from './ImageDistance.js';
|
|
34
|
-
export * from './
|
|
38
|
+
export * from './ImageEmbedding.js';
|
|
35
39
|
export * from './ImageFeature.js';
|
|
36
40
|
export * from './ImageFeatureFormat.js';
|
|
37
41
|
export * from './ImageFeatureNullValue.js';
|
|
@@ -51,6 +55,7 @@ export * from './ManifestExecution.js';
|
|
|
51
55
|
export * from './ManifestExtensionCommand.js';
|
|
52
56
|
export * from './ManifestExtensionCommandOn.js';
|
|
53
57
|
export * from './ManifestExtensionCommandSpecification.js';
|
|
58
|
+
export * from './ManifestExtensionCommandUi.js';
|
|
54
59
|
export * from './ManifestInstructions.js';
|
|
55
60
|
export * from './ManifestInterfaceElement.js';
|
|
56
61
|
export * from './ManifestInterfaceElementIntegration.js';
|
|
@@ -89,7 +94,6 @@ export * from './SearchSorting.js';
|
|
|
89
94
|
export * from './SearchSortingProperty.js';
|
|
90
95
|
export * from './SearchTags.js';
|
|
91
96
|
export * from './SearchTagsResult.js';
|
|
92
|
-
export * from './Settings.js';
|
|
93
97
|
export * from './Software.js';
|
|
94
98
|
export * from './TextualPrompt.js';
|
|
95
99
|
export * from './UserInterfaceAnchor.js';
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
export * from './ApiSecret.js';
|
|
4
4
|
export * from './ApiSecretSummary.js';
|
|
5
5
|
export * from './ApiSecretType.js';
|
|
6
|
+
export * from './ApplicationConfiguration.js';
|
|
6
7
|
export * from './ApplicationMetadata.js';
|
|
7
8
|
export * from './ApplicationMetadataItem.js';
|
|
8
9
|
export * from './ApplicationMetadataItemValue.js';
|
|
10
|
+
export * from './ApplicationSettings.js';
|
|
9
11
|
export * from './Collection.js';
|
|
10
12
|
export * from './CommandEntity.js';
|
|
11
13
|
export * from './ComputedImageFormat.js';
|
|
@@ -17,7 +19,9 @@ export * from './Extension.js';
|
|
|
17
19
|
export * from './ExtensionActivity.js';
|
|
18
20
|
export * from './ExtensionActivityKind.js';
|
|
19
21
|
export * from './ExtensionAndManual.js';
|
|
22
|
+
export * from './ExtensionCategory.js';
|
|
20
23
|
export * from './ExtensionGenerationOptions.js';
|
|
24
|
+
export * from './ExtensionIdImageEmbeddingName.js';
|
|
21
25
|
export * from './ExtensionImageEmbeddings.js';
|
|
22
26
|
export * from './ExtensionImageFeature.js';
|
|
23
27
|
export * from './ExtensionImageFeatureName.js';
|
|
@@ -33,7 +37,7 @@ export * from './GenerationRecipePrompt.js';
|
|
|
33
37
|
export * from './Image.js';
|
|
34
38
|
export * from './ImageDimensions.js';
|
|
35
39
|
export * from './ImageDistance.js';
|
|
36
|
-
export * from './
|
|
40
|
+
export * from './ImageEmbedding.js';
|
|
37
41
|
export * from './ImageFeature.js';
|
|
38
42
|
export * from './ImageFeatureFormat.js';
|
|
39
43
|
export * from './ImageFeatureNullValue.js';
|
|
@@ -53,6 +57,7 @@ export * from './ManifestExecution.js';
|
|
|
53
57
|
export * from './ManifestExtensionCommand.js';
|
|
54
58
|
export * from './ManifestExtensionCommandOn.js';
|
|
55
59
|
export * from './ManifestExtensionCommandSpecification.js';
|
|
60
|
+
export * from './ManifestExtensionCommandUi.js';
|
|
56
61
|
export * from './ManifestInstructions.js';
|
|
57
62
|
export * from './ManifestInterfaceElement.js';
|
|
58
63
|
export * from './ManifestInterfaceElementIntegration.js';
|
|
@@ -91,7 +96,6 @@ export * from './SearchSorting.js';
|
|
|
91
96
|
export * from './SearchSortingProperty.js';
|
|
92
97
|
export * from './SearchTags.js';
|
|
93
98
|
export * from './SearchTagsResult.js';
|
|
94
|
-
export * from './Settings.js';
|
|
95
99
|
export * from './Software.js';
|
|
96
100
|
export * from './TextualPrompt.js';
|
|
97
101
|
export * from './UserInterfaceAnchor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Socket } from "socket.io-client";
|
|
2
|
-
import { ApiSecretApi, Configuration, ExtensionApi, ImageApi, ImageAttachmentApi, Manifest, MiscellaneousApi, RepositoryApi } from "./index.js";
|
|
2
|
+
import { ApiSecretApi, CollectionApi, Configuration, ExtensionApi, ImageApi, ImageAttachmentApi, Manifest, MiscellaneousApi, RepositoryApi } from "./index.js";
|
|
3
3
|
import { Intent } from "./intents.js";
|
|
4
4
|
export type NotificationValue = Record<string, any>;
|
|
5
5
|
export declare enum NotificationReturnedErrorCause {
|
|
@@ -58,7 +58,9 @@ declare class MessageSender {
|
|
|
58
58
|
private readonly socket;
|
|
59
59
|
readonly toString: () => string;
|
|
60
60
|
private readonly contextId?;
|
|
61
|
+
private _maximumPayloadSizeInBytes?;
|
|
61
62
|
constructor(logger: Logger, parameters: ExtensionParameters, socket: Socket, toString: () => string, contextId?: string);
|
|
63
|
+
set maximumPayloadSizeInBytes(value: number);
|
|
62
64
|
sendMessage(channel: string, body: Record<string, any>, callback?: (result: any) => Promise<void>): void;
|
|
63
65
|
}
|
|
64
66
|
export declare class Communicator {
|
|
@@ -89,14 +91,15 @@ export declare class PicteusExtension {
|
|
|
89
91
|
run(): Promise<void>;
|
|
90
92
|
protected toString(): string;
|
|
91
93
|
protected initialize(): Promise<boolean>;
|
|
92
|
-
protected onReady(
|
|
94
|
+
protected onReady(_communicator?: Communicator): Promise<void>;
|
|
93
95
|
protected onTerminate(): Promise<void>;
|
|
94
|
-
protected onSettings(
|
|
95
|
-
protected onEvent(
|
|
96
|
+
protected onSettings(_communicator: Communicator, _value: SettingsValue): Promise<void>;
|
|
97
|
+
protected onEvent(_communicator: Communicator, _event: string, _value: NotificationValue): Promise<any>;
|
|
96
98
|
protected getMiscellaneousApi(): MiscellaneousApi;
|
|
97
99
|
protected getApiSecretApi(): ApiSecretApi;
|
|
98
100
|
protected getExtensionApi(): ExtensionApi;
|
|
99
101
|
protected getRepositoryApi(): RepositoryApi;
|
|
102
|
+
protected getCollectionApi(): CollectionApi;
|
|
100
103
|
protected getImageApi(): ImageApi;
|
|
101
104
|
protected getImageAttachmentApi(): ImageAttachmentApi;
|
|
102
105
|
protected getSettings(): Promise<SettingsValue>;
|
package/dist/picteusExtension.js
CHANGED
|
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
|
|
|
4
4
|
// We do not import the "process" package on purpose, otherwise we get the runtime error "process.on is not a function"
|
|
5
5
|
import console from "node:console";
|
|
6
6
|
import { io } from "socket.io-client";
|
|
7
|
-
import { ApiSecretApi, Configuration, ExtensionApi, ImageApi, ImageAttachmentApi, ManifestFromJSON, MiscellaneousApi, RepositoryApi } from "./index.js";
|
|
7
|
+
import { ApiSecretApi, CollectionApi, Configuration, ExtensionApi, ImageApi, ImageAttachmentApi, ManifestFromJSON, MiscellaneousApi, RepositoryApi } from "./index.js";
|
|
8
8
|
export var NotificationReturnedErrorCause;
|
|
9
9
|
(function (NotificationReturnedErrorCause) {
|
|
10
10
|
NotificationReturnedErrorCause[NotificationReturnedErrorCause["Cancel"] = 0] = "Cancel";
|
|
@@ -17,6 +17,7 @@ export class NotificationReturnedError extends Error {
|
|
|
17
17
|
this.reason = reason;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
+
// noinspection JSUnusedGlobalSymbols
|
|
20
21
|
export var NotificationEvent;
|
|
21
22
|
(function (NotificationEvent) {
|
|
22
23
|
NotificationEvent["ProcessRunCommand"] = "process.runCommand";
|
|
@@ -32,6 +33,7 @@ export var NotificationEvent;
|
|
|
32
33
|
NotificationEvent["TextComputeEmbeddings"] = "text.computeEmbeddings";
|
|
33
34
|
})(NotificationEvent || (NotificationEvent = {}));
|
|
34
35
|
const extensionSettingsEvent = "extension.settings";
|
|
36
|
+
// noinspection JSUnusedGlobalSymbols
|
|
35
37
|
export class Helper {
|
|
36
38
|
static GENERATION_RECIPE_SCHEMA_VERSION = 1;
|
|
37
39
|
}
|
|
@@ -77,7 +79,7 @@ const stringifyWithStrippedBuffers = (object) => {
|
|
|
77
79
|
const bufferReplacement = "<bytes>";
|
|
78
80
|
return JSON.stringify(object, (_key, value) => {
|
|
79
81
|
// We check if the value is a Buffer
|
|
80
|
-
if (value !== undefined && value.type === "Buffer" && Array.isArray(value.data) === true) {
|
|
82
|
+
if (value !== undefined && value !== null && value.type === "Buffer" && Array.isArray(value.data) === true) {
|
|
81
83
|
return bufferReplacement;
|
|
82
84
|
}
|
|
83
85
|
// We also check for native Buffer instances if they haven't been pre-processed
|
|
@@ -93,6 +95,7 @@ class MessageSender {
|
|
|
93
95
|
socket;
|
|
94
96
|
toString;
|
|
95
97
|
contextId;
|
|
98
|
+
_maximumPayloadSizeInBytes;
|
|
96
99
|
constructor(logger, parameters, socket, toString, contextId) {
|
|
97
100
|
this.logger = logger;
|
|
98
101
|
this.parameters = parameters;
|
|
@@ -100,6 +103,9 @@ class MessageSender {
|
|
|
100
103
|
this.toString = toString;
|
|
101
104
|
this.contextId = contextId;
|
|
102
105
|
}
|
|
106
|
+
set maximumPayloadSizeInBytes(value) {
|
|
107
|
+
this._maximumPayloadSizeInBytes = value;
|
|
108
|
+
}
|
|
103
109
|
sendMessage(channel, body, callback) {
|
|
104
110
|
const contextId = this.contextId;
|
|
105
111
|
this.logger.debug(`Sending the message '${stringifyWithStrippedBuffers(body)}' on channel '${channel}' for ${this.toString()}${contextId === undefined ? "" : ` attached to the context with id '${contextId}'`}${callback === undefined ? "" : " and waiting for a callback"}`);
|
|
@@ -134,6 +140,7 @@ export class Communicator {
|
|
|
134
140
|
this.logger[level](message);
|
|
135
141
|
this.sendMessage(notificationsChannel, { log: { message, level } });
|
|
136
142
|
}
|
|
143
|
+
// noinspection JSUnusedGlobalSymbols
|
|
137
144
|
sendNotification(value) {
|
|
138
145
|
this.sendMessage(notificationsChannel, { notification: value });
|
|
139
146
|
}
|
|
@@ -232,34 +239,43 @@ export class PicteusExtension {
|
|
|
232
239
|
async initialize() {
|
|
233
240
|
return true;
|
|
234
241
|
}
|
|
235
|
-
async onReady(
|
|
242
|
+
async onReady(_communicator) {
|
|
236
243
|
}
|
|
237
244
|
async onTerminate() {
|
|
238
245
|
}
|
|
239
|
-
async onSettings(
|
|
246
|
+
async onSettings(_communicator, _value) {
|
|
240
247
|
return Promise.resolve();
|
|
241
248
|
}
|
|
242
|
-
|
|
243
|
-
async onEvent(communicator, event, value) {
|
|
249
|
+
async onEvent(_communicator, _event, _value) {
|
|
244
250
|
}
|
|
251
|
+
// noinspection JSUnusedGlobalSymbols
|
|
245
252
|
getMiscellaneousApi() {
|
|
246
253
|
return new MiscellaneousApi(this.configuration);
|
|
247
254
|
}
|
|
255
|
+
// noinspection JSUnusedGlobalSymbols
|
|
248
256
|
getApiSecretApi() {
|
|
249
257
|
return new ApiSecretApi(this.configuration);
|
|
250
258
|
}
|
|
259
|
+
// noinspection JSUnusedGlobalSymbols
|
|
251
260
|
getExtensionApi() {
|
|
252
261
|
return new ExtensionApi(this.configuration);
|
|
253
262
|
}
|
|
263
|
+
// noinspection JSUnusedGlobalSymbols
|
|
254
264
|
getRepositoryApi() {
|
|
255
265
|
return new RepositoryApi(this.configuration);
|
|
256
266
|
}
|
|
267
|
+
// noinspection JSUnusedGlobalSymbols
|
|
268
|
+
getCollectionApi() {
|
|
269
|
+
return new CollectionApi(this.configuration);
|
|
270
|
+
}
|
|
257
271
|
getImageApi() {
|
|
258
272
|
return new ImageApi(this.configuration);
|
|
259
273
|
}
|
|
274
|
+
// noinspection JSUnusedGlobalSymbols
|
|
260
275
|
getImageAttachmentApi() {
|
|
261
276
|
return new ImageAttachmentApi(this.configuration);
|
|
262
277
|
}
|
|
278
|
+
// noinspection JSUnusedGlobalSymbols
|
|
263
279
|
async getSettings() {
|
|
264
280
|
return (await new ExtensionApi(this.configuration).extensionGetSettings({ id: this.extensionId })).value;
|
|
265
281
|
}
|
|
@@ -280,7 +296,16 @@ export class PicteusExtension {
|
|
|
280
296
|
this.globalCommunicator = new Communicator(this.logger, globalSender);
|
|
281
297
|
this.socket.on("connect", async () => {
|
|
282
298
|
this.logger.info(`The ${this.toString()} socket is connected`);
|
|
283
|
-
|
|
299
|
+
globalSender.sendMessage("connection", {
|
|
300
|
+
isOpen: true,
|
|
301
|
+
sdkVersion: PicteusExtension.getSdkVersion(),
|
|
302
|
+
environment: "node"
|
|
303
|
+
}, async (result) => {
|
|
304
|
+
const maximumPayloadSizeInBytes = result.maximumPayloadSizeInBytes;
|
|
305
|
+
this.logger.debug(`The ${this.toString()} socket has a maximum payload size of ${maximumPayloadSizeInBytes} bytes`);
|
|
306
|
+
globalSender.maximumPayloadSizeInBytes = maximumPayloadSizeInBytes;
|
|
307
|
+
await this.onReady(this.globalCommunicator);
|
|
308
|
+
});
|
|
284
309
|
});
|
|
285
310
|
this.socket.on("connect_error", async () => {
|
|
286
311
|
this.logger.warn(`The ${this.toString()} socket connection failed"`);
|
|
@@ -294,6 +319,7 @@ export class PicteusExtension {
|
|
|
294
319
|
const sender = new MessageSender(this.logger, this.parameters, this.socket, () => {
|
|
295
320
|
return this.toString();
|
|
296
321
|
}, contextId);
|
|
322
|
+
sender.maximumPayloadSizeInBytes = globalSender.maximumPayloadSizeInBytes;
|
|
297
323
|
const communicator = new Communicator(this.logger, sender);
|
|
298
324
|
const isRegularEvent = channel !== extensionSettingsEvent;
|
|
299
325
|
let result;
|
|
@@ -314,11 +340,6 @@ export class PicteusExtension {
|
|
|
314
340
|
onResult(result);
|
|
315
341
|
}
|
|
316
342
|
});
|
|
317
|
-
globalSender.sendMessage("connection", {
|
|
318
|
-
isOpen: true,
|
|
319
|
-
sdkVersion: PicteusExtension.getSdkVersion(),
|
|
320
|
-
environment: "node"
|
|
321
|
-
});
|
|
322
343
|
}
|
|
323
344
|
disconnectSocket() {
|
|
324
345
|
if (this.socket !== undefined && this.socket.disconnected === false) {
|
package/package.json
CHANGED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Picteus
|
|
3
|
-
* The Picteus API
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.3.5
|
|
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
|
-
/**
|
|
14
|
-
* ExperimentApi - interface
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface ExperimentApiInterface
|
|
18
|
-
*/
|
|
19
|
-
export interface ExperimentApiInterface {
|
|
20
|
-
/**
|
|
21
|
-
* This endpoint is for experimentation only.
|
|
22
|
-
* @summary Runs a test
|
|
23
|
-
* @param {*} [options] Override http request option.
|
|
24
|
-
* @throws {RequiredError}
|
|
25
|
-
* @memberof ExperimentApiInterface
|
|
26
|
-
*/
|
|
27
|
-
experimentTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
28
|
-
/**
|
|
29
|
-
* This endpoint is for experimentation only.
|
|
30
|
-
* Runs a test
|
|
31
|
-
*/
|
|
32
|
-
experimentTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
export declare class ExperimentApi extends runtime.BaseAPI implements ExperimentApiInterface {
|
|
38
|
-
/**
|
|
39
|
-
* This endpoint is for experimentation only.
|
|
40
|
-
* Runs a test
|
|
41
|
-
*/
|
|
42
|
-
experimentTestRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
43
|
-
/**
|
|
44
|
-
* This endpoint is for experimentation only.
|
|
45
|
-
* Runs a test
|
|
46
|
-
*/
|
|
47
|
-
experimentTest(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
48
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Picteus
|
|
5
|
-
* The Picteus API
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.3.5
|
|
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
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
export class ExperimentApi extends runtime.BaseAPI {
|
|
19
|
-
/**
|
|
20
|
-
* This endpoint is for experimentation only.
|
|
21
|
-
* Runs a test
|
|
22
|
-
*/
|
|
23
|
-
async experimentTestRaw(initOverrides) {
|
|
24
|
-
const queryParameters = {};
|
|
25
|
-
const headerParameters = {};
|
|
26
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
27
|
-
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
28
|
-
}
|
|
29
|
-
let urlPath = `/experiment/test`;
|
|
30
|
-
const response = await this.request({
|
|
31
|
-
path: urlPath,
|
|
32
|
-
method: 'GET',
|
|
33
|
-
headers: headerParameters,
|
|
34
|
-
query: queryParameters,
|
|
35
|
-
}, initOverrides);
|
|
36
|
-
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
37
|
-
return new runtime.JSONApiResponse(response);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return new runtime.TextApiResponse(response);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* This endpoint is for experimentation only.
|
|
45
|
-
* Runs a test
|
|
46
|
-
*/
|
|
47
|
-
async experimentTest(initOverrides) {
|
|
48
|
-
const response = await this.experimentTestRaw(initOverrides);
|
|
49
|
-
return await response.value();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Picteus
|
|
3
|
-
* The Picteus API
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.3.5
|
|
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
|
-
/**
|
|
14
|
-
* PingApi - interface
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PingApiInterface
|
|
18
|
-
*/
|
|
19
|
-
export interface PingApiInterface {
|
|
20
|
-
/**
|
|
21
|
-
* Enables to check that the service is accessible.
|
|
22
|
-
* @summary Pings the service
|
|
23
|
-
* @param {*} [options] Override http request option.
|
|
24
|
-
* @throws {RequiredError}
|
|
25
|
-
* @memberof PingApiInterface
|
|
26
|
-
*/
|
|
27
|
-
pingPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
28
|
-
/**
|
|
29
|
-
* Enables to check that the service is accessible.
|
|
30
|
-
* Pings the service
|
|
31
|
-
*/
|
|
32
|
-
pingPing(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
export declare class PingApi extends runtime.BaseAPI implements PingApiInterface {
|
|
38
|
-
/**
|
|
39
|
-
* Enables to check that the service is accessible.
|
|
40
|
-
* Pings the service
|
|
41
|
-
*/
|
|
42
|
-
pingPingRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
43
|
-
/**
|
|
44
|
-
* Enables to check that the service is accessible.
|
|
45
|
-
* Pings the service
|
|
46
|
-
*/
|
|
47
|
-
pingPing(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
48
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Picteus
|
|
5
|
-
* The Picteus API
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.3.5
|
|
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
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
export class PingApi extends runtime.BaseAPI {
|
|
19
|
-
/**
|
|
20
|
-
* Enables to check that the service is accessible.
|
|
21
|
-
* Pings the service
|
|
22
|
-
*/
|
|
23
|
-
async pingPingRaw(initOverrides) {
|
|
24
|
-
const queryParameters = {};
|
|
25
|
-
const headerParameters = {};
|
|
26
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
27
|
-
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
28
|
-
}
|
|
29
|
-
let urlPath = `/ping`;
|
|
30
|
-
const response = await this.request({
|
|
31
|
-
path: urlPath,
|
|
32
|
-
method: 'GET',
|
|
33
|
-
headers: headerParameters,
|
|
34
|
-
query: queryParameters,
|
|
35
|
-
}, initOverrides);
|
|
36
|
-
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
37
|
-
return new runtime.JSONApiResponse(response);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return new runtime.TextApiResponse(response);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Enables to check that the service is accessible.
|
|
45
|
-
* Pings the service
|
|
46
|
-
*/
|
|
47
|
-
async pingPing(initOverrides) {
|
|
48
|
-
const response = await this.pingPingRaw(initOverrides);
|
|
49
|
-
return await response.value();
|
|
50
|
-
}
|
|
51
|
-
}
|