@picteus/extension-sdk 0.14.0 → 0.16.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/featureViewGrammar.d.ts +2814 -0
- package/dist/featureViewGrammar.js +2612 -0
- package/dist/generated/featureViewGrammar.d.ts +3913 -0
- package/dist/generated/featureViewGrammar.js +4099 -0
- package/dist/generated/viewKit.d.ts +3884 -0
- package/dist/generated/viewKit.js +4099 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/intents.d.ts +64 -1
- package/dist/intents.js +6 -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 +84 -26
- package/dist/picteus-ws-client/apis/ExtensionApi.js +99 -26
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +87 -33
- package/dist/picteus-ws-client/apis/ImageApi.js +99 -32
- 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 +5 -5
- package/dist/picteus-ws-client/apis/RepositoryApi.js +3 -3
- 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/ApplicationConfiguration.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationConfiguration.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadata.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadata.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItem.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItem.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationSettings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationSettings.js +1 -1
- package/dist/picteus-ws-client/models/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 +5 -5
- package/dist/picteus-ws-client/models/Extension.js +5 -5
- 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 +5 -5
- package/dist/picteus-ws-client/models/ExtensionAndManual.js +5 -5
- package/dist/picteus-ws-client/models/ExtensionCategory.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionCategory.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionGenerationOptions.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionIdImageEmbeddingName.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionIdImageEmbeddingName.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageEmbeddings.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeature.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeature.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeatureName.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeatureName.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeaturesAttribute.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageFeaturesAttribute.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageTag.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageTag.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageTagsAttribute.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionImageTagsAttribute.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionManual.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionManual.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionSettings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionSettings.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionState.d.ts +25 -0
- package/dist/picteus-ws-client/models/ExtensionState.js +43 -0
- 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 +1 -1
- package/dist/picteus-ws-client/models/ImageEmbedding.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeature.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeature.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +3 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.js +4 -2
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureValue.js +1 -1
- package/dist/picteus-ws-client/models/ImageFormat.d.ts +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 +1 -1
- package/dist/picteus-ws-client/models/ImageSummary.js +1 -1
- package/dist/picteus-ws-client/models/InstructionsPrompt.d.ts +1 -1
- package/dist/picteus-ws-client/models/InstructionsPrompt.js +1 -1
- package/dist/picteus-ws-client/models/Manifest.d.ts +1 -1
- package/dist/picteus-ws-client/models/Manifest.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
- package/dist/picteus-ws-client/models/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/ManifestExtensionCommandUi.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.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 +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElement.js +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElementIntegration.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestInterfaceElementIntegration.js +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntime.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntime.js +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestRuntimeEnvironment.js +1 -1
- package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestThrottlingPolicy.js +1 -1
- package/dist/picteus-ws-client/models/ManifestUserInterface.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestUserInterface.js +1 -1
- package/dist/picteus-ws-client/models/PromptKind.d.ts +1 -1
- package/dist/picteus-ws-client/models/PromptKind.js +1 -1
- package/dist/picteus-ws-client/models/Repository.d.ts +5 -5
- package/dist/picteus-ws-client/models/Repository.js +5 -5
- package/dist/picteus-ws-client/models/RepositoryActivity.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivity.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivityKind.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryActivityKind.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryLocationType.d.ts +1 -1
- package/dist/picteus-ws-client/models/RepositoryLocationType.js +1 -1
- package/dist/picteus-ws-client/models/RepositoryState.d.ts +27 -0
- package/dist/picteus-ws-client/models/RepositoryState.js +45 -0
- 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/RunCommandParameters.d.ts +39 -0
- package/dist/picteus-ws-client/models/RunCommandParameters.js +46 -0
- package/dist/picteus-ws-client/models/SearchCriteria.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchCriteria.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureCondition.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureCondition.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatures.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatures.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeaturesResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeaturesResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchFilter.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFilter.js +1 -1
- package/dist/picteus-ws-client/models/SearchFilterOrigin.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFilterOrigin.js +1 -1
- package/dist/picteus-ws-client/models/SearchImageIdResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImageIdResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchImageResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImageResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchImageSummaryResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImageSummaryResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchImagesOrigin.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImagesOrigin.js +1 -1
- package/dist/picteus-ws-client/models/SearchKeyword.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
- package/dist/picteus-ws-client/models/SearchMediaUrlResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchMediaUrlResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchOriginNature.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchOriginNature.js +1 -1
- package/dist/picteus-ws-client/models/SearchParameters.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchParameters.js +1 -1
- package/dist/picteus-ws-client/models/SearchProperties.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchProperties.js +1 -1
- package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchPropertyRange.js +1 -1
- package/dist/picteus-ws-client/models/SearchRange.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchRange.js +1 -1
- package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.js +1 -1
- package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
- package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchSortingProperty.js +1 -1
- package/dist/picteus-ws-client/models/SearchTags.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchTags.js +1 -1
- package/dist/picteus-ws-client/models/SearchTagsResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchTagsResult.js +1 -1
- package/dist/picteus-ws-client/models/Software.d.ts +1 -1
- package/dist/picteus-ws-client/models/Software.js +1 -1
- package/dist/picteus-ws-client/models/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 +3 -2
- package/dist/picteus-ws-client/models/index.js +3 -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 +46 -23
- package/dist/picteusExtension.js +172 -63
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/intents.d.ts
CHANGED
|
@@ -69,6 +69,12 @@ export interface IntentUi {
|
|
|
69
69
|
export interface UiIntent extends WithContextIntent {
|
|
70
70
|
readonly ui: IntentUi;
|
|
71
71
|
}
|
|
72
|
+
export interface IntentOpenBrowser {
|
|
73
|
+
readonly url: string;
|
|
74
|
+
}
|
|
75
|
+
export interface OpenBrowserIntent extends BasisIntent {
|
|
76
|
+
readonly openBrowser: IntentOpenBrowser;
|
|
77
|
+
}
|
|
72
78
|
export declare enum IntentDialogType {
|
|
73
79
|
Error = "error",
|
|
74
80
|
Info = "info",
|
|
@@ -114,6 +120,46 @@ export interface IntentShow {
|
|
|
114
120
|
export interface ShowIntent extends BasisIntent {
|
|
115
121
|
readonly show: IntentShow;
|
|
116
122
|
}
|
|
123
|
+
export declare enum IntentToastType {
|
|
124
|
+
Info = "info",
|
|
125
|
+
Cancel = "cancel",
|
|
126
|
+
Error = "error"
|
|
127
|
+
}
|
|
128
|
+
export interface IntentToast {
|
|
129
|
+
readonly type: IntentToastType;
|
|
130
|
+
readonly title?: string;
|
|
131
|
+
readonly subtitle: string;
|
|
132
|
+
}
|
|
133
|
+
export interface ToastIntent extends WithContextIntent {
|
|
134
|
+
readonly toast: IntentToast;
|
|
135
|
+
}
|
|
136
|
+
export interface IntentNotification {
|
|
137
|
+
readonly title: string;
|
|
138
|
+
readonly subtitle: string;
|
|
139
|
+
readonly body: string;
|
|
140
|
+
readonly silent: boolean;
|
|
141
|
+
readonly icon?: Buffer;
|
|
142
|
+
readonly isNative: boolean;
|
|
143
|
+
}
|
|
144
|
+
export interface NotificationIntent extends WithContextIntent {
|
|
145
|
+
readonly notification: IntentNotification;
|
|
146
|
+
}
|
|
147
|
+
export interface IntentProcessCommand {
|
|
148
|
+
readonly extensionId: string;
|
|
149
|
+
readonly commandId: string;
|
|
150
|
+
}
|
|
151
|
+
export interface ProcessCommandIntent extends WithContextIntent {
|
|
152
|
+
readonly processCommand: IntentProcessCommand;
|
|
153
|
+
}
|
|
154
|
+
export interface IntentAction {
|
|
155
|
+
readonly intent: ShowIntent | UiIntent | OpenBrowserIntent | ProcessCommandIntent;
|
|
156
|
+
readonly dialogContent: IntentDialogIconSizeContent;
|
|
157
|
+
readonly label?: string;
|
|
158
|
+
}
|
|
159
|
+
export interface ActionIntent extends WithContextIntent {
|
|
160
|
+
readonly action: IntentAction;
|
|
161
|
+
}
|
|
162
|
+
export type FrontIntent = FormIntent | UiIntent | OpenBrowserIntent | DialogIntent | ImagesIntent | ShowIntent | ToastIntent | NotificationIntent | ActionIntent;
|
|
117
163
|
export interface IntentServeBundle {
|
|
118
164
|
readonly content: Buffer;
|
|
119
165
|
readonly settings?: Json;
|
|
@@ -121,5 +167,22 @@ export interface IntentServeBundle {
|
|
|
121
167
|
export interface BundleIntent extends BasisIntent {
|
|
122
168
|
readonly serveBundle: IntentServeBundle;
|
|
123
169
|
}
|
|
124
|
-
export
|
|
170
|
+
export interface IntentReadFile {
|
|
171
|
+
readonly extensions?: string[];
|
|
172
|
+
readonly message: string;
|
|
173
|
+
}
|
|
174
|
+
export interface ReadFileIntent extends WithContextIntent {
|
|
175
|
+
readonly readFile: IntentReadFile;
|
|
176
|
+
}
|
|
177
|
+
export interface IntentWriteFile {
|
|
178
|
+
readonly content: Buffer;
|
|
179
|
+
readonly name: string;
|
|
180
|
+
readonly extension: string;
|
|
181
|
+
readonly message: string;
|
|
182
|
+
}
|
|
183
|
+
export interface WriteFileIntent extends WithContextIntent {
|
|
184
|
+
readonly writeFile: IntentWriteFile;
|
|
185
|
+
}
|
|
186
|
+
export type BackIntent = BundleIntent | ReadFileIntent | WriteFileIntent;
|
|
187
|
+
export type Intent = FrontIntent | BackIntent;
|
|
125
188
|
export {};
|
package/dist/intents.js
CHANGED
|
@@ -18,3 +18,9 @@ export var IntentShowType;
|
|
|
18
18
|
IntentShowType["Image"] = "image";
|
|
19
19
|
IntentShowType["Repository"] = "repository";
|
|
20
20
|
})(IntentShowType || (IntentShowType = {}));
|
|
21
|
+
export var IntentToastType;
|
|
22
|
+
(function (IntentToastType) {
|
|
23
|
+
IntentToastType["Info"] = "info";
|
|
24
|
+
IntentToastType["Cancel"] = "cancel";
|
|
25
|
+
IntentToastType["Error"] = "error";
|
|
26
|
+
})(IntentToastType || (IntentToastType = {}));
|
|
@@ -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.21.0
|
|
6
6
|
* Contact: edouard@koppasoft.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,10 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { Extension, ExtensionActivity, ExtensionAndManual, ExtensionGenerationOptions, ExtensionSettings, ExtensionsConfiguration } from '../models/index.js';
|
|
13
|
+
import type { Extension, ExtensionActivity, ExtensionAndManual, ExtensionGenerationOptions, ExtensionSettings, ExtensionState, ExtensionsConfiguration, RunCommandParameters } from '../models/index.js';
|
|
14
14
|
export interface ExtensionApiExtensionBuildRequest {
|
|
15
15
|
body: Blob;
|
|
16
16
|
}
|
|
17
|
+
export interface ExtensionApiExtensionChangeStateRequest {
|
|
18
|
+
id: string;
|
|
19
|
+
state: ExtensionState;
|
|
20
|
+
}
|
|
21
|
+
export interface ExtensionApiExtensionCompileRequest {
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
17
24
|
export interface ExtensionApiExtensionGenerateRequest {
|
|
18
25
|
withPublicSdk: boolean;
|
|
19
26
|
extensionGenerationOptions: ExtensionGenerationOptions;
|
|
@@ -25,6 +32,8 @@ export interface ExtensionApiExtensionGetSettingsRequest {
|
|
|
25
32
|
id: string;
|
|
26
33
|
}
|
|
27
34
|
export interface ExtensionApiExtensionInstallRequest {
|
|
35
|
+
state: ExtensionState;
|
|
36
|
+
asUnpacked: boolean;
|
|
28
37
|
body: Blob;
|
|
29
38
|
}
|
|
30
39
|
export interface ExtensionApiExtensionInstallChromeExtensionRequest {
|
|
@@ -32,15 +41,13 @@ export interface ExtensionApiExtensionInstallChromeExtensionRequest {
|
|
|
32
41
|
chromeExtensionName: string;
|
|
33
42
|
body: Blob;
|
|
34
43
|
}
|
|
35
|
-
export interface
|
|
44
|
+
export interface ExtensionApiExtensionResetSettingsRequest {
|
|
36
45
|
id: string;
|
|
37
|
-
isPause: boolean;
|
|
38
46
|
}
|
|
39
47
|
export interface ExtensionApiExtensionRunImageCommandRequest {
|
|
40
48
|
id: string;
|
|
41
49
|
commandId: string;
|
|
42
|
-
|
|
43
|
-
body?: object;
|
|
50
|
+
runCommandParameters: RunCommandParameters;
|
|
44
51
|
}
|
|
45
52
|
export interface ExtensionApiExtensionRunProcessCommandRequest {
|
|
46
53
|
id: string;
|
|
@@ -60,6 +67,7 @@ export interface ExtensionApiExtensionUninstallRequest {
|
|
|
60
67
|
export interface ExtensionApiExtensionUpdateRequest {
|
|
61
68
|
id: string;
|
|
62
69
|
body: Blob;
|
|
70
|
+
state?: ExtensionState;
|
|
63
71
|
}
|
|
64
72
|
/**
|
|
65
73
|
* ExtensionApi - interface
|
|
@@ -95,11 +103,40 @@ export interface ExtensionApiInterface {
|
|
|
95
103
|
* Builds an extension
|
|
96
104
|
*/
|
|
97
105
|
extensionBuild(requestParameters: ExtensionApiExtensionBuildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
106
|
+
/**
|
|
107
|
+
* Depending on the state, the extension will be stopped or started.
|
|
108
|
+
* @summary Changes the state of an extension
|
|
109
|
+
* @param {string} id The extension identifier
|
|
110
|
+
* @param {ExtensionState} state The new state to apply
|
|
111
|
+
* @param {*} [options] Override http request option.
|
|
112
|
+
* @throws {RequiredError}
|
|
113
|
+
* @memberof ExtensionApiInterface
|
|
114
|
+
*/
|
|
115
|
+
extensionChangeStateRaw(requestParameters: ExtensionApiExtensionChangeStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
116
|
+
/**
|
|
117
|
+
* Depending on the state, the extension will be stopped or started.
|
|
118
|
+
* Changes the state of an extension
|
|
119
|
+
*/
|
|
120
|
+
extensionChangeState(requestParameters: ExtensionApiExtensionChangeStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* Compiles an unpacked extension.
|
|
123
|
+
* @summary Compiles an extension
|
|
124
|
+
* @param {string} id The extension identifier
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
* @memberof ExtensionApiInterface
|
|
128
|
+
*/
|
|
129
|
+
extensionCompileRaw(requestParameters: ExtensionApiExtensionCompileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
130
|
+
/**
|
|
131
|
+
* Compiles an unpacked extension.
|
|
132
|
+
* Compiles an extension
|
|
133
|
+
*/
|
|
134
|
+
extensionCompile(requestParameters: ExtensionApiExtensionCompileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
98
135
|
/**
|
|
99
136
|
* Scaffolds an extension respecting a set of specifications.
|
|
100
137
|
* @summary Generates an extension
|
|
101
138
|
* @param {boolean} withPublicSdk Should the extension be dependent on the public extension SDK or the internal private one
|
|
102
|
-
* @param {ExtensionGenerationOptions} extensionGenerationOptions
|
|
139
|
+
* @param {ExtensionGenerationOptions} extensionGenerationOptions
|
|
103
140
|
* @param {*} [options] Override http request option.
|
|
104
141
|
* @throws {RequiredError}
|
|
105
142
|
* @memberof ExtensionApiInterface
|
|
@@ -154,6 +191,8 @@ export interface ExtensionApiInterface {
|
|
|
154
191
|
/**
|
|
155
192
|
* Analyzes the extension and installs it.
|
|
156
193
|
* @summary Installs an extension
|
|
194
|
+
* @param {ExtensionState} state Whether the extension should be started if the installation is successful
|
|
195
|
+
* @param {boolean} asUnpacked Whether the extension should be installed in the unpacked directory
|
|
157
196
|
* @param {Blob} body The extension archive
|
|
158
197
|
* @param {*} [options] Override http request option.
|
|
159
198
|
* @throws {RequiredError}
|
|
@@ -195,34 +234,32 @@ export interface ExtensionApiInterface {
|
|
|
195
234
|
*/
|
|
196
235
|
extensionList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Extension>>;
|
|
197
236
|
/**
|
|
198
|
-
*
|
|
199
|
-
* @summary
|
|
237
|
+
* Reverts the settings of an extension to its default value.
|
|
238
|
+
* @summary Resets the settings of an extension
|
|
200
239
|
* @param {string} id The extension identifier
|
|
201
|
-
* @param {boolean} isPause Whether the extension should be paused
|
|
202
240
|
* @param {*} [options] Override http request option.
|
|
203
241
|
* @throws {RequiredError}
|
|
204
242
|
* @memberof ExtensionApiInterface
|
|
205
243
|
*/
|
|
206
|
-
|
|
244
|
+
extensionResetSettingsRaw(requestParameters: ExtensionApiExtensionResetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExtensionSettings>>;
|
|
207
245
|
/**
|
|
208
|
-
*
|
|
209
|
-
*
|
|
246
|
+
* Reverts the settings of an extension to its default value.
|
|
247
|
+
* Resets the settings of an extension
|
|
210
248
|
*/
|
|
211
|
-
|
|
249
|
+
extensionResetSettings(requestParameters: ExtensionApiExtensionResetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExtensionSettings>;
|
|
212
250
|
/**
|
|
213
|
-
* Runs the command
|
|
251
|
+
* Runs the command specified for images, by triggering the relevant event to the extension to images matching search parameters.
|
|
214
252
|
* @summary Runs a command exposed by an extension, on images
|
|
215
253
|
* @param {string} id The extension identifier
|
|
216
254
|
* @param {string} commandId The identifier of the command
|
|
217
|
-
* @param {
|
|
218
|
-
* @param {object} [body] The command parameters
|
|
255
|
+
* @param {RunCommandParameters} runCommandParameters The parameters containing the instructions for running the command
|
|
219
256
|
* @param {*} [options] Override http request option.
|
|
220
257
|
* @throws {RequiredError}
|
|
221
258
|
* @memberof ExtensionApiInterface
|
|
222
259
|
*/
|
|
223
260
|
extensionRunImageCommandRaw(requestParameters: ExtensionApiExtensionRunImageCommandRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
224
261
|
/**
|
|
225
|
-
* Runs the command
|
|
262
|
+
* Runs the command specified for images, by triggering the relevant event to the extension to images matching search parameters.
|
|
226
263
|
* Runs a command exposed by an extension, on images
|
|
227
264
|
*/
|
|
228
265
|
extensionRunImageCommand(requestParameters: ExtensionApiExtensionRunImageCommandRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -290,6 +327,7 @@ export interface ExtensionApiInterface {
|
|
|
290
327
|
* @summary Updates an extension
|
|
291
328
|
* @param {string} id The extension identifier
|
|
292
329
|
* @param {Blob} body The extension archive
|
|
330
|
+
* @param {ExtensionState} [state] The new state of the extension if it was successfully updated
|
|
293
331
|
* @param {*} [options] Override http request option.
|
|
294
332
|
* @throws {RequiredError}
|
|
295
333
|
* @memberof ExtensionApiInterface
|
|
@@ -325,6 +363,26 @@ export declare class ExtensionApi extends runtime.BaseAPI implements ExtensionAp
|
|
|
325
363
|
* Builds an extension
|
|
326
364
|
*/
|
|
327
365
|
extensionBuild(requestParameters: ExtensionApiExtensionBuildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
366
|
+
/**
|
|
367
|
+
* Depending on the state, the extension will be stopped or started.
|
|
368
|
+
* Changes the state of an extension
|
|
369
|
+
*/
|
|
370
|
+
extensionChangeStateRaw(requestParameters: ExtensionApiExtensionChangeStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
371
|
+
/**
|
|
372
|
+
* Depending on the state, the extension will be stopped or started.
|
|
373
|
+
* Changes the state of an extension
|
|
374
|
+
*/
|
|
375
|
+
extensionChangeState(requestParameters: ExtensionApiExtensionChangeStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
376
|
+
/**
|
|
377
|
+
* Compiles an unpacked extension.
|
|
378
|
+
* Compiles an extension
|
|
379
|
+
*/
|
|
380
|
+
extensionCompileRaw(requestParameters: ExtensionApiExtensionCompileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
381
|
+
/**
|
|
382
|
+
* Compiles an unpacked extension.
|
|
383
|
+
* Compiles an extension
|
|
384
|
+
*/
|
|
385
|
+
extensionCompile(requestParameters: ExtensionApiExtensionCompileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
328
386
|
/**
|
|
329
387
|
* Scaffolds an extension respecting a set of specifications.
|
|
330
388
|
* Generates an extension
|
|
@@ -396,22 +454,22 @@ export declare class ExtensionApi extends runtime.BaseAPI implements ExtensionAp
|
|
|
396
454
|
*/
|
|
397
455
|
extensionList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Extension>>;
|
|
398
456
|
/**
|
|
399
|
-
*
|
|
400
|
-
*
|
|
457
|
+
* Reverts the settings of an extension to its default value.
|
|
458
|
+
* Resets the settings of an extension
|
|
401
459
|
*/
|
|
402
|
-
|
|
460
|
+
extensionResetSettingsRaw(requestParameters: ExtensionApiExtensionResetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExtensionSettings>>;
|
|
403
461
|
/**
|
|
404
|
-
*
|
|
405
|
-
*
|
|
462
|
+
* Reverts the settings of an extension to its default value.
|
|
463
|
+
* Resets the settings of an extension
|
|
406
464
|
*/
|
|
407
|
-
|
|
465
|
+
extensionResetSettings(requestParameters: ExtensionApiExtensionResetSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExtensionSettings>;
|
|
408
466
|
/**
|
|
409
|
-
* Runs the command
|
|
467
|
+
* Runs the command specified for images, by triggering the relevant event to the extension to images matching search parameters.
|
|
410
468
|
* Runs a command exposed by an extension, on images
|
|
411
469
|
*/
|
|
412
470
|
extensionRunImageCommandRaw(requestParameters: ExtensionApiExtensionRunImageCommandRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
413
471
|
/**
|
|
414
|
-
* Runs the command
|
|
472
|
+
* Runs the command specified for images, by triggering the relevant event to the extension to images matching search parameters.
|
|
415
473
|
* Runs a command exposed by an extension, on images
|
|
416
474
|
*/
|
|
417
475
|
extensionRunImageCommand(requestParameters: ExtensionApiExtensionRunImageCommandRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -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.21.0
|
|
8
8
|
* Contact: edouard@koppasoft.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { ExtensionFromJSON, ExtensionActivityFromJSON, ExtensionAndManualFromJSON, ExtensionGenerationOptionsToJSON, ExtensionSettingsFromJSON, ExtensionSettingsToJSON, ExtensionsConfigurationFromJSON, } from '../models/index.js';
|
|
15
|
+
import { ExtensionFromJSON, ExtensionActivityFromJSON, ExtensionAndManualFromJSON, ExtensionGenerationOptionsToJSON, ExtensionSettingsFromJSON, ExtensionSettingsToJSON, ExtensionsConfigurationFromJSON, RunCommandParametersToJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -76,6 +76,72 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
76
76
|
const response = await this.extensionBuildRaw(requestParameters, initOverrides);
|
|
77
77
|
return await response.value();
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Depending on the state, the extension will be stopped or started.
|
|
81
|
+
* Changes the state of an extension
|
|
82
|
+
*/
|
|
83
|
+
async extensionChangeStateRaw(requestParameters, initOverrides) {
|
|
84
|
+
if (requestParameters['id'] == null) {
|
|
85
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionChangeState().');
|
|
86
|
+
}
|
|
87
|
+
if (requestParameters['state'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('state', 'Required parameter "state" was null or undefined when calling extensionChangeState().');
|
|
89
|
+
}
|
|
90
|
+
const queryParameters = {};
|
|
91
|
+
if (requestParameters['state'] != null) {
|
|
92
|
+
queryParameters['state'] = requestParameters['state'];
|
|
93
|
+
}
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
97
|
+
}
|
|
98
|
+
let urlPath = `/extension/{id}/changeState`;
|
|
99
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
100
|
+
const response = await this.request({
|
|
101
|
+
path: urlPath,
|
|
102
|
+
method: 'PUT',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
}, initOverrides);
|
|
106
|
+
return new runtime.VoidApiResponse(response);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Depending on the state, the extension will be stopped or started.
|
|
110
|
+
* Changes the state of an extension
|
|
111
|
+
*/
|
|
112
|
+
async extensionChangeState(requestParameters, initOverrides) {
|
|
113
|
+
await this.extensionChangeStateRaw(requestParameters, initOverrides);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Compiles an unpacked extension.
|
|
117
|
+
* Compiles an extension
|
|
118
|
+
*/
|
|
119
|
+
async extensionCompileRaw(requestParameters, initOverrides) {
|
|
120
|
+
if (requestParameters['id'] == null) {
|
|
121
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionCompile().');
|
|
122
|
+
}
|
|
123
|
+
const queryParameters = {};
|
|
124
|
+
const headerParameters = {};
|
|
125
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
126
|
+
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
127
|
+
}
|
|
128
|
+
let urlPath = `/extension/{id}/compile`;
|
|
129
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
130
|
+
const response = await this.request({
|
|
131
|
+
path: urlPath,
|
|
132
|
+
method: 'PUT',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
}, initOverrides);
|
|
136
|
+
return new runtime.VoidApiResponse(response);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Compiles an unpacked extension.
|
|
140
|
+
* Compiles an extension
|
|
141
|
+
*/
|
|
142
|
+
async extensionCompile(requestParameters, initOverrides) {
|
|
143
|
+
await this.extensionCompileRaw(requestParameters, initOverrides);
|
|
144
|
+
}
|
|
79
145
|
/**
|
|
80
146
|
* Scaffolds an extension respecting a set of specifications.
|
|
81
147
|
* Generates an extension
|
|
@@ -208,10 +274,22 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
208
274
|
* Installs an extension
|
|
209
275
|
*/
|
|
210
276
|
async extensionInstallRaw(requestParameters, initOverrides) {
|
|
277
|
+
if (requestParameters['state'] == null) {
|
|
278
|
+
throw new runtime.RequiredError('state', 'Required parameter "state" was null or undefined when calling extensionInstall().');
|
|
279
|
+
}
|
|
280
|
+
if (requestParameters['asUnpacked'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('asUnpacked', 'Required parameter "asUnpacked" was null or undefined when calling extensionInstall().');
|
|
282
|
+
}
|
|
211
283
|
if (requestParameters['body'] == null) {
|
|
212
284
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling extensionInstall().');
|
|
213
285
|
}
|
|
214
286
|
const queryParameters = {};
|
|
287
|
+
if (requestParameters['state'] != null) {
|
|
288
|
+
queryParameters['state'] = requestParameters['state'];
|
|
289
|
+
}
|
|
290
|
+
if (requestParameters['asUnpacked'] != null) {
|
|
291
|
+
queryParameters['asUnpacked'] = requestParameters['asUnpacked'];
|
|
292
|
+
}
|
|
215
293
|
const headerParameters = {};
|
|
216
294
|
headerParameters['Content-Type'] = 'application/zip';
|
|
217
295
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -304,25 +382,19 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
304
382
|
return await response.value();
|
|
305
383
|
}
|
|
306
384
|
/**
|
|
307
|
-
*
|
|
308
|
-
*
|
|
385
|
+
* Reverts the settings of an extension to its default value.
|
|
386
|
+
* Resets the settings of an extension
|
|
309
387
|
*/
|
|
310
|
-
async
|
|
388
|
+
async extensionResetSettingsRaw(requestParameters, initOverrides) {
|
|
311
389
|
if (requestParameters['id'] == null) {
|
|
312
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling
|
|
313
|
-
}
|
|
314
|
-
if (requestParameters['isPause'] == null) {
|
|
315
|
-
throw new runtime.RequiredError('isPause', 'Required parameter "isPause" was null or undefined when calling extensionPauseOrResume().');
|
|
390
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling extensionResetSettings().');
|
|
316
391
|
}
|
|
317
392
|
const queryParameters = {};
|
|
318
|
-
if (requestParameters['isPause'] != null) {
|
|
319
|
-
queryParameters['isPause'] = requestParameters['isPause'];
|
|
320
|
-
}
|
|
321
393
|
const headerParameters = {};
|
|
322
394
|
if (this.configuration && this.configuration.apiKey) {
|
|
323
395
|
headerParameters["X-API-KEY"] = await this.configuration.apiKey("X-API-KEY"); // api-key authentication
|
|
324
396
|
}
|
|
325
|
-
let urlPath = `/extension/{id}/
|
|
397
|
+
let urlPath = `/extension/{id}/resetSettings`;
|
|
326
398
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
327
399
|
const response = await this.request({
|
|
328
400
|
path: urlPath,
|
|
@@ -330,17 +402,18 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
330
402
|
headers: headerParameters,
|
|
331
403
|
query: queryParameters,
|
|
332
404
|
}, initOverrides);
|
|
333
|
-
return new runtime.
|
|
405
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExtensionSettingsFromJSON(jsonValue));
|
|
334
406
|
}
|
|
335
407
|
/**
|
|
336
|
-
*
|
|
337
|
-
*
|
|
408
|
+
* Reverts the settings of an extension to its default value.
|
|
409
|
+
* Resets the settings of an extension
|
|
338
410
|
*/
|
|
339
|
-
async
|
|
340
|
-
await this.
|
|
411
|
+
async extensionResetSettings(requestParameters, initOverrides) {
|
|
412
|
+
const response = await this.extensionResetSettingsRaw(requestParameters, initOverrides);
|
|
413
|
+
return await response.value();
|
|
341
414
|
}
|
|
342
415
|
/**
|
|
343
|
-
* Runs the command
|
|
416
|
+
* Runs the command specified for images, by triggering the relevant event to the extension to images matching search parameters.
|
|
344
417
|
* Runs a command exposed by an extension, on images
|
|
345
418
|
*/
|
|
346
419
|
async extensionRunImageCommandRaw(requestParameters, initOverrides) {
|
|
@@ -350,16 +423,13 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
350
423
|
if (requestParameters['commandId'] == null) {
|
|
351
424
|
throw new runtime.RequiredError('commandId', 'Required parameter "commandId" was null or undefined when calling extensionRunImageCommand().');
|
|
352
425
|
}
|
|
353
|
-
if (requestParameters['
|
|
354
|
-
throw new runtime.RequiredError('
|
|
426
|
+
if (requestParameters['runCommandParameters'] == null) {
|
|
427
|
+
throw new runtime.RequiredError('runCommandParameters', 'Required parameter "runCommandParameters" was null or undefined when calling extensionRunImageCommand().');
|
|
355
428
|
}
|
|
356
429
|
const queryParameters = {};
|
|
357
430
|
if (requestParameters['commandId'] != null) {
|
|
358
431
|
queryParameters['commandId'] = requestParameters['commandId'];
|
|
359
432
|
}
|
|
360
|
-
if (requestParameters['imageIds'] != null) {
|
|
361
|
-
queryParameters['imageIds'] = requestParameters['imageIds'];
|
|
362
|
-
}
|
|
363
433
|
const headerParameters = {};
|
|
364
434
|
headerParameters['Content-Type'] = 'application/json';
|
|
365
435
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -372,12 +442,12 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
372
442
|
method: 'PUT',
|
|
373
443
|
headers: headerParameters,
|
|
374
444
|
query: queryParameters,
|
|
375
|
-
body: requestParameters['
|
|
445
|
+
body: RunCommandParametersToJSON(requestParameters['runCommandParameters']),
|
|
376
446
|
}, initOverrides);
|
|
377
447
|
return new runtime.VoidApiResponse(response);
|
|
378
448
|
}
|
|
379
449
|
/**
|
|
380
|
-
* Runs the command
|
|
450
|
+
* Runs the command specified for images, by triggering the relevant event to the extension to images matching search parameters.
|
|
381
451
|
* Runs a command exposed by an extension, on images
|
|
382
452
|
*/
|
|
383
453
|
async extensionRunImageCommand(requestParameters, initOverrides) {
|
|
@@ -528,6 +598,9 @@ export class ExtensionApi extends runtime.BaseAPI {
|
|
|
528
598
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling extensionUpdate().');
|
|
529
599
|
}
|
|
530
600
|
const queryParameters = {};
|
|
601
|
+
if (requestParameters['state'] != null) {
|
|
602
|
+
queryParameters['state'] = requestParameters['state'];
|
|
603
|
+
}
|
|
531
604
|
const headerParameters = {};
|
|
532
605
|
headerParameters['Content-Type'] = 'application/zip';
|
|
533
606
|
if (this.configuration && this.configuration.apiKey) {
|