@picteus/extension-sdk 0.9.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 +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 +1 -1
- package/dist/picteus-ws-client/apis/ExtensionApi.js +1 -1
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +141 -25
- package/dist/picteus-ws-client/apis/ImageApi.js +162 -20
- 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/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/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 +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/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 +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 +39 -0
- package/dist/picteus-ws-client/models/ExtensionImageFeaturesAttribute.js +48 -0
- 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 +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 +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 +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 +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 +9 -4
- package/dist/picteus-ws-client/models/ImageFeatureValue.js +9 -33
- 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 +2 -2
- 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/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 +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 +9 -4
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.js +9 -33
- 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 +39 -0
- package/dist/picteus-ws-client/models/SearchFeaturesResult.js +48 -0
- 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/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 +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 +39 -0
- package/dist/picteus-ws-client/models/SearchMediaUrlResult.js +48 -0
- 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 +46 -0
- package/dist/picteus-ws-client/models/SearchParameters.js +47 -0
- 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 +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 +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 +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 +11 -1
- package/dist/picteus-ws-client/models/index.js +11 -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 +5 -66
- package/dist/picteusExtension.js +18 -20
- package/package.json +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
type Json = Record<string, any>;
|
|
2
|
+
export interface IntentIdentity {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IntentContext {
|
|
6
|
+
readonly imageIds?: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface BasisIntent {
|
|
9
|
+
readonly identity?: IntentIdentity;
|
|
10
|
+
}
|
|
11
|
+
export interface WithContextIntent extends BasisIntent {
|
|
12
|
+
readonly context?: IntentContext;
|
|
13
|
+
}
|
|
14
|
+
export interface IntentResourceUrl {
|
|
15
|
+
readonly url: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IntentResourceContent {
|
|
18
|
+
readonly content: Buffer;
|
|
19
|
+
}
|
|
20
|
+
export type IntentResource = IntentResourceUrl | IntentResourceContent;
|
|
21
|
+
export interface IntentDialogContent {
|
|
22
|
+
readonly title: string;
|
|
23
|
+
readonly description: string;
|
|
24
|
+
readonly details?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IntentDialogIconContent extends IntentDialogContent {
|
|
27
|
+
readonly icon?: IntentResource;
|
|
28
|
+
}
|
|
29
|
+
export interface IntentDialogIconSizeContent extends IntentDialogIconContent {
|
|
30
|
+
readonly size?: "auto" | "xs" | "s" | "m" | "l" | "xl";
|
|
31
|
+
}
|
|
32
|
+
export interface IntentFormContent {
|
|
33
|
+
readonly parameters: Json;
|
|
34
|
+
readonly dialogContent?: IntentDialogIconSizeContent;
|
|
35
|
+
}
|
|
36
|
+
export interface FormIntent extends WithContextIntent {
|
|
37
|
+
readonly form: IntentFormContent;
|
|
38
|
+
}
|
|
39
|
+
export declare enum IntentUiAnchor {
|
|
40
|
+
Modal = "modal",
|
|
41
|
+
Sidebar = "sidebar",
|
|
42
|
+
Window = "window",
|
|
43
|
+
ImageDetail = "imageDetail"
|
|
44
|
+
}
|
|
45
|
+
export interface IntentUISidebarIntegration {
|
|
46
|
+
anchor: IntentUiAnchor.Sidebar;
|
|
47
|
+
isExternal: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface IntentUIWindowIntegration {
|
|
50
|
+
anchor: IntentUiAnchor.Window;
|
|
51
|
+
}
|
|
52
|
+
export interface IntentUIModalIntegration {
|
|
53
|
+
anchor: IntentUiAnchor.Modal;
|
|
54
|
+
}
|
|
55
|
+
export type IntentUIIntegration = IntentUISidebarIntegration | IntentUIWindowIntegration | IntentUIModalIntegration;
|
|
56
|
+
export interface IntentUrlContent {
|
|
57
|
+
readonly url: string;
|
|
58
|
+
}
|
|
59
|
+
export interface IntentHtmlContent {
|
|
60
|
+
readonly html: string;
|
|
61
|
+
}
|
|
62
|
+
export type IntentFrameContent = IntentUrlContent | IntentHtmlContent;
|
|
63
|
+
export interface IntentUi {
|
|
64
|
+
readonly id: string;
|
|
65
|
+
readonly integration: IntentUIIntegration;
|
|
66
|
+
readonly frameContent: IntentFrameContent;
|
|
67
|
+
readonly dialogContent?: IntentDialogIconContent;
|
|
68
|
+
}
|
|
69
|
+
export interface UiIntent extends WithContextIntent {
|
|
70
|
+
readonly ui: IntentUi;
|
|
71
|
+
}
|
|
72
|
+
export declare enum IntentDialogType {
|
|
73
|
+
Error = "error",
|
|
74
|
+
Info = "info",
|
|
75
|
+
Question = "question"
|
|
76
|
+
}
|
|
77
|
+
export interface IntentFrame {
|
|
78
|
+
readonly content: IntentFrameContent;
|
|
79
|
+
readonly height: number;
|
|
80
|
+
}
|
|
81
|
+
export interface IntentDialogButtons {
|
|
82
|
+
yes: string;
|
|
83
|
+
no?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface IntentDialog extends IntentDialogIconSizeContent {
|
|
86
|
+
readonly type: IntentDialogType;
|
|
87
|
+
readonly frame?: IntentFrame;
|
|
88
|
+
readonly buttons: IntentDialogButtons;
|
|
89
|
+
}
|
|
90
|
+
export interface DialogIntent extends WithContextIntent {
|
|
91
|
+
readonly dialog: IntentDialog;
|
|
92
|
+
}
|
|
93
|
+
export interface IntentImage {
|
|
94
|
+
readonly imageId: string;
|
|
95
|
+
readonly dialogContent?: IntentDialogContent;
|
|
96
|
+
}
|
|
97
|
+
export interface IntentImages {
|
|
98
|
+
readonly images: IntentImage[];
|
|
99
|
+
readonly dialogContent: IntentDialogIconContent;
|
|
100
|
+
}
|
|
101
|
+
export interface ImagesIntent extends WithContextIntent {
|
|
102
|
+
readonly images: IntentImages;
|
|
103
|
+
}
|
|
104
|
+
export declare enum IntentShowType {
|
|
105
|
+
Sidebar = "sidebar",
|
|
106
|
+
ExtensionSettings = "extensionSettings",
|
|
107
|
+
Image = "image",
|
|
108
|
+
Repository = "repository"
|
|
109
|
+
}
|
|
110
|
+
export interface IntentShow {
|
|
111
|
+
readonly type: IntentShowType;
|
|
112
|
+
readonly id: string;
|
|
113
|
+
}
|
|
114
|
+
export interface ShowIntent extends BasisIntent {
|
|
115
|
+
readonly show: IntentShow;
|
|
116
|
+
}
|
|
117
|
+
export interface IntentServeBundle {
|
|
118
|
+
readonly content: Buffer;
|
|
119
|
+
readonly settings?: Json;
|
|
120
|
+
}
|
|
121
|
+
export interface BundleIntent extends BasisIntent {
|
|
122
|
+
readonly serveBundle: IntentServeBundle;
|
|
123
|
+
}
|
|
124
|
+
export type Intent = FormIntent | UiIntent | DialogIntent | ImagesIntent | ShowIntent | BundleIntent;
|
|
125
|
+
export {};
|
package/dist/Intents.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export var IntentUiAnchor;
|
|
2
|
+
(function (IntentUiAnchor) {
|
|
3
|
+
IntentUiAnchor["Modal"] = "modal";
|
|
4
|
+
IntentUiAnchor["Sidebar"] = "sidebar";
|
|
5
|
+
IntentUiAnchor["Window"] = "window";
|
|
6
|
+
IntentUiAnchor["ImageDetail"] = "imageDetail";
|
|
7
|
+
})(IntentUiAnchor || (IntentUiAnchor = {}));
|
|
8
|
+
export var IntentDialogType;
|
|
9
|
+
(function (IntentDialogType) {
|
|
10
|
+
IntentDialogType["Error"] = "error";
|
|
11
|
+
IntentDialogType["Info"] = "info";
|
|
12
|
+
IntentDialogType["Question"] = "question";
|
|
13
|
+
})(IntentDialogType || (IntentDialogType = {}));
|
|
14
|
+
export var IntentShowType;
|
|
15
|
+
(function (IntentShowType) {
|
|
16
|
+
IntentShowType["Sidebar"] = "sidebar";
|
|
17
|
+
IntentShowType["ExtensionSettings"] = "extensionSettings";
|
|
18
|
+
IntentShowType["Image"] = "image";
|
|
19
|
+
IntentShowType["Repository"] = "repository";
|
|
20
|
+
})(IntentShowType || (IntentShowType = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Picteus
|
|
3
3
|
* The Picteus API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.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 { ComputedImageFormat, ExtensionImageEmbeddings, ExtensionImageFeature, ExtensionImageTag, GenerationRecipe, Image, ImageDistance, ImageEmbeddings, ImageFeature, ImageFormat, ImageMediaUrl, ImageMetadata, ImageResizeRender,
|
|
13
|
+
import type { ComputedImageFormat, ExtensionImageEmbeddings, ExtensionImageFeature, ExtensionImageTag, GenerationRecipe, Image, ImageDistance, ImageEmbeddings, ImageFeature, ImageFormat, ImageMediaUrl, ImageMetadata, ImageResizeRender, SearchFeaturesResult, SearchImageResult, SearchImageSummaryResult, SearchMediaUrlResult, SearchParameters, SearchTagsResult } from '../models/index.js';
|
|
14
14
|
export interface ImageApiImageClosestEmbeddingsImagesRequest {
|
|
15
15
|
extensionId: string;
|
|
16
16
|
count: number;
|
|
@@ -86,10 +86,26 @@ export interface ImageApiImageModifyRequest {
|
|
|
86
86
|
id: string;
|
|
87
87
|
body: Blob;
|
|
88
88
|
}
|
|
89
|
-
export interface
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
export interface ImageApiImageSearchFeaturesRequest {
|
|
90
|
+
searchParameters: SearchParameters;
|
|
91
|
+
extensionIds?: Array<string>;
|
|
92
|
+
}
|
|
93
|
+
export interface ImageApiImageSearchImagesRequest {
|
|
94
|
+
searchParameters: SearchParameters;
|
|
95
|
+
}
|
|
96
|
+
export interface ImageApiImageSearchMediaUrlRequest {
|
|
97
|
+
searchParameters: SearchParameters;
|
|
98
|
+
format?: ImageFormat;
|
|
99
|
+
width?: number;
|
|
100
|
+
height?: number;
|
|
101
|
+
resizeRender?: ImageResizeRender;
|
|
102
|
+
}
|
|
103
|
+
export interface ImageApiImageSearchSummariesRequest {
|
|
104
|
+
searchParameters: SearchParameters;
|
|
105
|
+
}
|
|
106
|
+
export interface ImageApiImageSearchTagsRequest {
|
|
107
|
+
searchParameters: SearchParameters;
|
|
108
|
+
extensionIds?: Array<string>;
|
|
93
109
|
}
|
|
94
110
|
export interface ImageApiImageSetEmbeddingsRequest {
|
|
95
111
|
id: string;
|
|
@@ -362,7 +378,7 @@ export interface ImageApiInterface {
|
|
|
362
378
|
*/
|
|
363
379
|
imageGetTags(requestParameters: ImageApiImageGetTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
364
380
|
/**
|
|
365
|
-
* Returns the URL of the image, given
|
|
381
|
+
* Returns the URL of the image, given some given dimensions and format, which may used to display it.
|
|
366
382
|
* @summary Gets an URL of the image
|
|
367
383
|
* @param {string} id The image identifier
|
|
368
384
|
* @param {ImageFormat} [format] The image format
|
|
@@ -375,7 +391,7 @@ export interface ImageApiInterface {
|
|
|
375
391
|
*/
|
|
376
392
|
imageMediaUrlRaw(requestParameters: ImageApiImageMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImageMediaUrl>>;
|
|
377
393
|
/**
|
|
378
|
-
* Returns the URL of the image, given
|
|
394
|
+
* Returns the URL of the image, given some given dimensions and format, which may used to display it.
|
|
379
395
|
* Gets an URL of the image
|
|
380
396
|
*/
|
|
381
397
|
imageMediaUrl(requestParameters: ImageApiImageMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageMediaUrl>;
|
|
@@ -395,21 +411,81 @@ export interface ImageApiInterface {
|
|
|
395
411
|
*/
|
|
396
412
|
imageModify(requestParameters: ImageApiImageModifyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
|
|
397
413
|
/**
|
|
398
|
-
*
|
|
399
|
-
* @summary
|
|
400
|
-
* @param {
|
|
401
|
-
* @param {
|
|
402
|
-
* @param {
|
|
414
|
+
* Retrieves image features following search parameters.
|
|
415
|
+
* @summary Retrieves image features
|
|
416
|
+
* @param {SearchParameters} searchParameters
|
|
417
|
+
* @param {Array<string>} [extensionIds] The extension identifiers the features must belong to
|
|
418
|
+
* @param {*} [options] Override http request option.
|
|
419
|
+
* @throws {RequiredError}
|
|
420
|
+
* @memberof ImageApiInterface
|
|
421
|
+
*/
|
|
422
|
+
imageSearchFeaturesRaw(requestParameters: ImageApiImageSearchFeaturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchFeaturesResult>>;
|
|
423
|
+
/**
|
|
424
|
+
* Retrieves image features following search parameters.
|
|
425
|
+
* Retrieves image features
|
|
426
|
+
*/
|
|
427
|
+
imageSearchFeatures(requestParameters: ImageApiImageSearchFeaturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchFeaturesResult>;
|
|
428
|
+
/**
|
|
429
|
+
* Retrieves image details following search parameters.
|
|
430
|
+
* @summary Retrieves image details
|
|
431
|
+
* @param {SearchParameters} searchParameters
|
|
432
|
+
* @param {*} [options] Override http request option.
|
|
433
|
+
* @throws {RequiredError}
|
|
434
|
+
* @memberof ImageApiInterface
|
|
435
|
+
*/
|
|
436
|
+
imageSearchImagesRaw(requestParameters: ImageApiImageSearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchImageResult>>;
|
|
437
|
+
/**
|
|
438
|
+
* Retrieves image details following search parameters.
|
|
439
|
+
* Retrieves image details
|
|
440
|
+
*/
|
|
441
|
+
imageSearchImages(requestParameters: ImageApiImageSearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchImageResult>;
|
|
442
|
+
/**
|
|
443
|
+
* Retrieves image media URLs following search parameters.
|
|
444
|
+
* @summary Retrieves image media URLs
|
|
445
|
+
* @param {SearchParameters} searchParameters
|
|
446
|
+
* @param {ImageFormat} [format] The image format
|
|
447
|
+
* @param {number} [width] The image maximum width ; if not defined, the original width is used
|
|
448
|
+
* @param {number} [height] The image maximum height ; if not defined, the original height is used
|
|
449
|
+
* @param {ImageResizeRender} [resizeRender] The way the image should be resized
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
* @memberof ImageApiInterface
|
|
453
|
+
*/
|
|
454
|
+
imageSearchMediaUrlRaw(requestParameters: ImageApiImageSearchMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchMediaUrlResult>>;
|
|
455
|
+
/**
|
|
456
|
+
* Retrieves image media URLs following search parameters.
|
|
457
|
+
* Retrieves image media URLs
|
|
458
|
+
*/
|
|
459
|
+
imageSearchMediaUrl(requestParameters: ImageApiImageSearchMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchMediaUrlResult>;
|
|
460
|
+
/**
|
|
461
|
+
* Retrieves image summaries following search parameters.
|
|
462
|
+
* @summary Retrieves image summaries
|
|
463
|
+
* @param {SearchParameters} searchParameters
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
* @memberof ImageApiInterface
|
|
467
|
+
*/
|
|
468
|
+
imageSearchSummariesRaw(requestParameters: ImageApiImageSearchSummariesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchImageSummaryResult>>;
|
|
469
|
+
/**
|
|
470
|
+
* Retrieves image summaries following search parameters.
|
|
471
|
+
* Retrieves image summaries
|
|
472
|
+
*/
|
|
473
|
+
imageSearchSummaries(requestParameters: ImageApiImageSearchSummariesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchImageSummaryResult>;
|
|
474
|
+
/**
|
|
475
|
+
* Retrieves image tags following search parameters.
|
|
476
|
+
* @summary Retrieves image tags
|
|
477
|
+
* @param {SearchParameters} searchParameters
|
|
478
|
+
* @param {Array<string>} [extensionIds] The extension identifiers the tags must belong to
|
|
403
479
|
* @param {*} [options] Override http request option.
|
|
404
480
|
* @throws {RequiredError}
|
|
405
481
|
* @memberof ImageApiInterface
|
|
406
482
|
*/
|
|
407
|
-
|
|
483
|
+
imageSearchTagsRaw(requestParameters: ImageApiImageSearchTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchTagsResult>>;
|
|
408
484
|
/**
|
|
409
|
-
*
|
|
410
|
-
*
|
|
485
|
+
* Retrieves image tags following search parameters.
|
|
486
|
+
* Retrieves image tags
|
|
411
487
|
*/
|
|
412
|
-
|
|
488
|
+
imageSearchTags(requestParameters: ImageApiImageSearchTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchTagsResult>;
|
|
413
489
|
/**
|
|
414
490
|
* Sets the computed embeddings of an image for a given extension.
|
|
415
491
|
* @summary Sets the embeddings of an image
|
|
@@ -654,12 +730,12 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
|
|
|
654
730
|
*/
|
|
655
731
|
imageGetTags(requestParameters: ImageApiImageGetTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
656
732
|
/**
|
|
657
|
-
* Returns the URL of the image, given
|
|
733
|
+
* Returns the URL of the image, given some given dimensions and format, which may used to display it.
|
|
658
734
|
* Gets an URL of the image
|
|
659
735
|
*/
|
|
660
736
|
imageMediaUrlRaw(requestParameters: ImageApiImageMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImageMediaUrl>>;
|
|
661
737
|
/**
|
|
662
|
-
* Returns the URL of the image, given
|
|
738
|
+
* Returns the URL of the image, given some given dimensions and format, which may used to display it.
|
|
663
739
|
* Gets an URL of the image
|
|
664
740
|
*/
|
|
665
741
|
imageMediaUrl(requestParameters: ImageApiImageMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ImageMediaUrl>;
|
|
@@ -674,15 +750,55 @@ export declare class ImageApi extends runtime.BaseAPI implements ImageApiInterfa
|
|
|
674
750
|
*/
|
|
675
751
|
imageModify(requestParameters: ImageApiImageModifyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Image>;
|
|
676
752
|
/**
|
|
677
|
-
*
|
|
678
|
-
*
|
|
753
|
+
* Retrieves image features following search parameters.
|
|
754
|
+
* Retrieves image features
|
|
755
|
+
*/
|
|
756
|
+
imageSearchFeaturesRaw(requestParameters: ImageApiImageSearchFeaturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchFeaturesResult>>;
|
|
757
|
+
/**
|
|
758
|
+
* Retrieves image features following search parameters.
|
|
759
|
+
* Retrieves image features
|
|
760
|
+
*/
|
|
761
|
+
imageSearchFeatures(requestParameters: ImageApiImageSearchFeaturesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchFeaturesResult>;
|
|
762
|
+
/**
|
|
763
|
+
* Retrieves image details following search parameters.
|
|
764
|
+
* Retrieves image details
|
|
765
|
+
*/
|
|
766
|
+
imageSearchImagesRaw(requestParameters: ImageApiImageSearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchImageResult>>;
|
|
767
|
+
/**
|
|
768
|
+
* Retrieves image details following search parameters.
|
|
769
|
+
* Retrieves image details
|
|
770
|
+
*/
|
|
771
|
+
imageSearchImages(requestParameters: ImageApiImageSearchImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchImageResult>;
|
|
772
|
+
/**
|
|
773
|
+
* Retrieves image media URLs following search parameters.
|
|
774
|
+
* Retrieves image media URLs
|
|
775
|
+
*/
|
|
776
|
+
imageSearchMediaUrlRaw(requestParameters: ImageApiImageSearchMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchMediaUrlResult>>;
|
|
777
|
+
/**
|
|
778
|
+
* Retrieves image media URLs following search parameters.
|
|
779
|
+
* Retrieves image media URLs
|
|
780
|
+
*/
|
|
781
|
+
imageSearchMediaUrl(requestParameters: ImageApiImageSearchMediaUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchMediaUrlResult>;
|
|
782
|
+
/**
|
|
783
|
+
* Retrieves image summaries following search parameters.
|
|
784
|
+
* Retrieves image summaries
|
|
785
|
+
*/
|
|
786
|
+
imageSearchSummariesRaw(requestParameters: ImageApiImageSearchSummariesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchImageSummaryResult>>;
|
|
787
|
+
/**
|
|
788
|
+
* Retrieves image summaries following search parameters.
|
|
789
|
+
* Retrieves image summaries
|
|
790
|
+
*/
|
|
791
|
+
imageSearchSummaries(requestParameters: ImageApiImageSearchSummariesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchImageSummaryResult>;
|
|
792
|
+
/**
|
|
793
|
+
* Retrieves image tags following search parameters.
|
|
794
|
+
* Retrieves image tags
|
|
679
795
|
*/
|
|
680
|
-
|
|
796
|
+
imageSearchTagsRaw(requestParameters: ImageApiImageSearchTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchTagsResult>>;
|
|
681
797
|
/**
|
|
682
|
-
*
|
|
683
|
-
*
|
|
798
|
+
* Retrieves image tags following search parameters.
|
|
799
|
+
* Retrieves image tags
|
|
684
800
|
*/
|
|
685
|
-
|
|
801
|
+
imageSearchTags(requestParameters: ImageApiImageSearchTagsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchTagsResult>;
|
|
686
802
|
/**
|
|
687
803
|
* Sets the computed embeddings of an image for a given extension.
|
|
688
804
|
* Sets the embeddings of an image
|