@picteus/extension-sdk 0.20.2 → 0.22.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/generated/frontEndIntents.d.ts +147 -106
- package/dist/generated/frontEndIntents.js +22 -0
- package/dist/generated/viewKit.d.ts +103 -79
- package/dist/generated/viewKit.js +87 -54
- 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 +78 -16
- package/dist/picteus-ws-client/apis/ExtensionApi.js +82 -9
- package/dist/picteus-ws-client/apis/ImageApi.d.ts +38 -5
- package/dist/picteus-ws-client/apis/ImageApi.js +53 -9
- 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/MarketplaceApi.d.ts +140 -0
- package/dist/picteus-ws-client/apis/MarketplaceApi.js +155 -0
- 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 +43 -47
- package/dist/picteus-ws-client/apis/RepositoryApi.js +52 -54
- package/dist/picteus-ws-client/apis/SettingsApi.d.ts +1 -1
- package/dist/picteus-ws-client/apis/SettingsApi.js +1 -1
- package/dist/picteus-ws-client/apis/index.d.ts +1 -0
- package/dist/picteus-ws-client/apis/index.js +1 -0
- package/dist/picteus-ws-client/models/AiModel.d.ts +8 -1
- package/dist/picteus-ws-client/models/AiModel.js +6 -1
- package/dist/picteus-ws-client/models/AiModelModality.d.ts +27 -0
- package/dist/picteus-ws-client/models/AiModelModality.js +45 -0
- package/dist/picteus-ws-client/models/ApiSecret.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApiSecret.js +1 -1
- package/dist/picteus-ws-client/models/ApiSecretSummary.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApiSecretSummary.js +1 -1
- package/dist/picteus-ws-client/models/ApiSecretType.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApiSecretType.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationConfiguration.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationConfiguration.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadata.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadata.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItem.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItem.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationMetadataItemValue.js +1 -1
- package/dist/picteus-ws-client/models/ApplicationSettings.d.ts +1 -1
- package/dist/picteus-ws-client/models/ApplicationSettings.js +1 -1
- package/dist/picteus-ws-client/models/CaptionInstruction.d.ts +7 -7
- package/dist/picteus-ws-client/models/CaptionInstruction.js +5 -5
- 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/EligibleTagsInstruction.d.ts +7 -7
- package/dist/picteus-ws-client/models/EligibleTagsInstruction.js +5 -5
- package/dist/picteus-ws-client/models/EmbeddingInstruction.d.ts +44 -0
- package/dist/picteus-ws-client/models/{ExtensionEligibleTags.js → EmbeddingInstruction.js} +12 -12
- package/dist/picteus-ws-client/models/Extension.d.ts +1 -1
- package/dist/picteus-ws-client/models/Extension.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivity.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivity.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivityState.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionActivityState.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionAiModel.d.ts +8 -1
- package/dist/picteus-ws-client/models/ExtensionAiModel.js +6 -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 +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 +1 -1
- package/dist/picteus-ws-client/models/ExtensionState.js +1 -1
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.d.ts +1 -1
- package/dist/picteus-ws-client/models/ExtensionsConfiguration.js +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipe.d.ts +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/GenerationRecipeVersion.d.ts +1 -1
- package/dist/picteus-ws-client/models/GenerationRecipeVersion.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 +4 -4
- package/dist/picteus-ws-client/models/ImageEmbedding.js +4 -4
- package/dist/picteus-ws-client/models/ImageFeature.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeature.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureFormat.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureNullValue.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureType.js +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFeatureValue.js +1 -1
- package/dist/picteus-ws-client/models/ImageFormat.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageFormat.js +1 -1
- package/dist/picteus-ws-client/models/ImageMediaUrl.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageMediaUrl.js +1 -1
- package/dist/picteus-ws-client/models/ImageMetadata.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageMetadata.js +1 -1
- package/dist/picteus-ws-client/models/ImageResizeRender.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageResizeRender.js +1 -1
- package/dist/picteus-ws-client/models/ImageSummary.d.ts +1 -1
- package/dist/picteus-ws-client/models/ImageSummary.js +1 -1
- package/dist/picteus-ws-client/models/InstructionsPrompt.d.ts +1 -1
- package/dist/picteus-ws-client/models/InstructionsPrompt.js +1 -1
- package/dist/picteus-ws-client/models/Manifest.d.ts +7 -1
- package/dist/picteus-ws-client/models/Manifest.js +5 -1
- package/dist/picteus-ws-client/models/ManifestAndManual.d.ts +40 -0
- package/dist/picteus-ws-client/models/ManifestAndManual.js +47 -0
- package/dist/picteus-ws-client/models/ManifestCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapability.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityCaptionsDetails.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityCaptionsDetails.js +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityEligibleTagsDetails.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestCapabilityEligibleTagsDetails.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/ManifestEmbeddingsCapability.d.ts +33 -0
- package/dist/picteus-ws-client/models/ManifestEmbeddingsCapability.js +44 -0
- package/dist/picteus-ws-client/models/ManifestEvent.d.ts +2 -1
- package/dist/picteus-ws-client/models/ManifestEvent.js +2 -1
- package/dist/picteus-ws-client/models/ManifestExecution.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExecution.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommand.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandOn.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandSpecification.js +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestExtensionCommandUi.js +1 -1
- package/dist/picteus-ws-client/models/ManifestImageFeaturesCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestImageFeaturesCapability.js +1 -1
- package/dist/picteus-ws-client/models/ManifestImageTagsCapability.d.ts +1 -1
- package/dist/picteus-ws-client/models/ManifestImageTagsCapability.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/ManifestInstructionsCapabilitiesInner.d.ts +4 -4
- package/dist/picteus-ws-client/models/ManifestInstructionsCapabilitiesInner.js +6 -6
- 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/MarketplaceExtension.d.ts +39 -0
- package/dist/picteus-ws-client/models/MarketplaceExtension.js +46 -0
- package/dist/picteus-ws-client/models/MarketplaceExtensionDetails.d.ts +46 -0
- package/dist/picteus-ws-client/models/MarketplaceExtensionDetails.js +49 -0
- 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 +20 -7
- package/dist/picteus-ws-client/models/Repository.js +12 -3
- 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/RepositoryMode.d.ts +26 -0
- package/dist/picteus-ws-client/models/RepositoryMode.js +44 -0
- package/dist/picteus-ws-client/models/RepositoryState.d.ts +4 -5
- package/dist/picteus-ws-client/models/RepositoryState.js +4 -5
- package/dist/picteus-ws-client/models/RunCommandParameters.d.ts +1 -1
- package/dist/picteus-ws-client/models/RunCommandParameters.js +1 -1
- package/dist/picteus-ws-client/models/SearchCriteria.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchCriteria.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureComparisonOperator.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureCondition.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureCondition.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureConditionValue.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatureLogicalOperator.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeatures.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeatures.js +1 -1
- package/dist/picteus-ws-client/models/SearchFeaturesResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFeaturesResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchFilter.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFilter.js +1 -1
- package/dist/picteus-ws-client/models/SearchFilterOrigin.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchFilterOrigin.js +1 -1
- package/dist/picteus-ws-client/models/SearchImageIdResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImageIdResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchImageResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImageResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchImageSummaryResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImageSummaryResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchImagesOrigin.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchImagesOrigin.js +1 -1
- package/dist/picteus-ws-client/models/SearchKeyword.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchKeyword.js +1 -1
- package/dist/picteus-ws-client/models/SearchMediaUrlResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchMediaUrlResult.js +1 -1
- package/dist/picteus-ws-client/models/SearchOriginNature.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchOriginNature.js +1 -1
- package/dist/picteus-ws-client/models/SearchParameters.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchParameters.js +1 -1
- package/dist/picteus-ws-client/models/SearchProperties.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchProperties.js +1 -1
- package/dist/picteus-ws-client/models/SearchPropertyRange.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchPropertyRange.js +1 -1
- package/dist/picteus-ws-client/models/SearchRange.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchRange.js +1 -1
- package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchRepositoriesOrigin.js +1 -1
- package/dist/picteus-ws-client/models/SearchSorting.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchSorting.js +1 -1
- package/dist/picteus-ws-client/models/SearchSortingProperty.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchSortingProperty.js +1 -1
- package/dist/picteus-ws-client/models/SearchTags.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchTags.js +1 -1
- package/dist/picteus-ws-client/models/SearchTagsResult.d.ts +1 -1
- package/dist/picteus-ws-client/models/SearchTagsResult.js +1 -1
- package/dist/picteus-ws-client/models/Software.d.ts +1 -1
- package/dist/picteus-ws-client/models/Software.js +1 -1
- package/dist/picteus-ws-client/models/TagsPlaceholder.d.ts +1 -1
- package/dist/picteus-ws-client/models/TagsPlaceholder.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 -0
- package/dist/picteus-ws-client/models/index.js +6 -0
- package/dist/picteus-ws-client/runtime.d.ts +1 -1
- package/dist/picteus-ws-client/runtime.js +2 -2
- package/dist/picteusExtension.d.ts +7 -2
- package/dist/picteusExtension.js +13 -4
- package/package.json +1 -1
- package/dist/generated/intentValidator.d.ts +0 -49
- package/dist/generated/intentValidator.js +0 -363
- package/dist/picteus-ws-client/models/ExtensionCaption.d.ts +0 -44
- package/dist/picteus-ws-client/models/ExtensionCaption.js +0 -51
- package/dist/picteus-ws-client/models/ExtensionEligibleTags.d.ts +0 -44
|
@@ -116,6 +116,15 @@ export declare enum TimestampFormat {
|
|
|
116
116
|
/** Relative time expression (e.g. "5 minutes ago") */
|
|
117
117
|
relative = "relative"
|
|
118
118
|
}
|
|
119
|
+
/** Image rendering fit mode */
|
|
120
|
+
export declare enum ImageFit {
|
|
121
|
+
/** Scale the image to fit entirely within the container */
|
|
122
|
+
contain = "contain",
|
|
123
|
+
/** Scale the image to cover the container, cropping as needed */
|
|
124
|
+
cover = "cover",
|
|
125
|
+
/** Stretch the image to fill the container */
|
|
126
|
+
fill = "fill"
|
|
127
|
+
}
|
|
119
128
|
/** Visual style variants for interactive button actions. */
|
|
120
129
|
export declare enum ButtonVariant {
|
|
121
130
|
/** Primary emphasis button style for default/recommended actions */
|
|
@@ -801,10 +810,10 @@ export interface TimestampElement extends UiElementBase {
|
|
|
801
810
|
readonly modifiers?: PrimitiveModifiers;
|
|
802
811
|
}
|
|
803
812
|
/**
|
|
804
|
-
*
|
|
813
|
+
* Image reference with configurable fit, dimensions, and URL actions.
|
|
805
814
|
*
|
|
806
815
|
* @remarks
|
|
807
|
-
* References an image source for
|
|
816
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
808
817
|
*/
|
|
809
818
|
export interface ImageReferenceElement extends UiElementBase {
|
|
810
819
|
/**
|
|
@@ -821,28 +830,25 @@ export interface ImageReferenceElement extends UiElementBase {
|
|
|
821
830
|
*/
|
|
822
831
|
readonly src: string;
|
|
823
832
|
/**
|
|
824
|
-
*
|
|
833
|
+
* How the image fits within its container
|
|
825
834
|
*
|
|
826
|
-
* @
|
|
827
|
-
* Alternative text describing the image for assistive technology. Provide meaningful text when the image conveys information; omit it only when it is decorative.
|
|
835
|
+
* @defaultValue ImageFit.cover
|
|
828
836
|
*/
|
|
829
|
-
readonly
|
|
830
|
-
/**
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
* @defaultValue "1:1"
|
|
837
|
-
*/
|
|
838
|
-
readonly aspectRatio?: string;
|
|
837
|
+
readonly fit?: ImageFit;
|
|
838
|
+
/** Image width in pixels */
|
|
839
|
+
readonly width: number;
|
|
840
|
+
/** Image height in pixels */
|
|
841
|
+
readonly height: number;
|
|
842
|
+
/** Image corner radius in pixels */
|
|
843
|
+
readonly radius?: number;
|
|
839
844
|
/**
|
|
840
|
-
*
|
|
845
|
+
* Whether clicking the image invokes the provider image click handler
|
|
841
846
|
*
|
|
842
|
-
* @
|
|
843
|
-
* Optional source to display when the primary image cannot be loaded. It follows the same URI conventions as src.
|
|
847
|
+
* @defaultValue false
|
|
844
848
|
*/
|
|
845
|
-
readonly
|
|
849
|
+
readonly openable?: boolean;
|
|
850
|
+
/** Optional visual modifiers (copyable) */
|
|
851
|
+
readonly modifiers?: BaseModifiers;
|
|
846
852
|
}
|
|
847
853
|
/**
|
|
848
854
|
* Interactive button action triggering an extension command.
|
|
@@ -2223,7 +2229,7 @@ export declare class TimestampElementClass extends BaseUiElement<TimestampElemen
|
|
|
2223
2229
|
* Class implementation of the `ImageReferenceElement` interface.
|
|
2224
2230
|
*
|
|
2225
2231
|
* @remarks
|
|
2226
|
-
* References an image source for
|
|
2232
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
2227
2233
|
*/
|
|
2228
2234
|
export declare class ImageReferenceElementClass extends BaseUiElement<ImageReferenceElement> implements ImageReferenceElement {
|
|
2229
2235
|
/**
|
|
@@ -2239,41 +2245,41 @@ export declare class ImageReferenceElementClass extends BaseUiElement<ImageRefer
|
|
|
2239
2245
|
* Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
2240
2246
|
*/
|
|
2241
2247
|
readonly src: string;
|
|
2248
|
+
/** Image width in pixels */
|
|
2249
|
+
readonly width: number;
|
|
2250
|
+
/** Image height in pixels */
|
|
2251
|
+
readonly height: number;
|
|
2242
2252
|
/**
|
|
2243
|
-
*
|
|
2244
|
-
*
|
|
2245
|
-
* @remarks
|
|
2246
|
-
* Alternative text describing the image for assistive technology. Provide meaningful text when the image conveys information; omit it only when it is decorative.
|
|
2247
|
-
*/
|
|
2248
|
-
readonly alt?: string;
|
|
2249
|
-
/**
|
|
2250
|
-
* Aspect ratio of the thumbnail container
|
|
2251
|
-
*
|
|
2252
|
-
* @remarks
|
|
2253
|
-
* Preferred ratio of the rendered thumbnail container, expressed as a ratio string such as 1:1. It controls presentation rather than modifying the source image.
|
|
2253
|
+
* How the image fits within its container
|
|
2254
2254
|
*
|
|
2255
|
-
* @defaultValue
|
|
2255
|
+
* @defaultValue ImageFit.cover
|
|
2256
2256
|
*/
|
|
2257
|
-
readonly
|
|
2257
|
+
readonly fit?: ImageFit;
|
|
2258
|
+
/** Image corner radius in pixels */
|
|
2259
|
+
readonly radius?: number;
|
|
2258
2260
|
/**
|
|
2259
|
-
*
|
|
2261
|
+
* Whether clicking the image invokes the provider image click handler
|
|
2260
2262
|
*
|
|
2261
|
-
* @
|
|
2262
|
-
* Optional source to display when the primary image cannot be loaded. It follows the same URI conventions as src.
|
|
2263
|
+
* @defaultValue false
|
|
2263
2264
|
*/
|
|
2264
|
-
readonly
|
|
2265
|
+
readonly openable?: boolean;
|
|
2266
|
+
/** Optional visual modifiers (copyable) */
|
|
2267
|
+
readonly modifiers?: BaseModifiers;
|
|
2265
2268
|
/**
|
|
2266
2269
|
* Constructs a new `ImageReferenceElementClass` instance.
|
|
2267
2270
|
*
|
|
2268
2271
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
2269
2272
|
|
|
2270
2273
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
2271
|
-
* @param
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2274
|
+
* @param width - Image width in pixels
|
|
2275
|
+
* @param height - Image height in pixels
|
|
2276
|
+
* @param options - Optional component settings. (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
2277
|
+
*/
|
|
2278
|
+
constructor(src: string, width: number, height: number, options?: {
|
|
2279
|
+
fit?: ImageFit;
|
|
2280
|
+
radius?: number;
|
|
2281
|
+
openable?: boolean;
|
|
2282
|
+
modifiers?: BaseModifiers;
|
|
2277
2283
|
});
|
|
2278
2284
|
}
|
|
2279
2285
|
/**
|
|
@@ -3392,35 +3398,41 @@ export declare class UiContainerBuilder {
|
|
|
3392
3398
|
* Appends a `ImageReferenceElement` component.
|
|
3393
3399
|
*
|
|
3394
3400
|
* @remarks
|
|
3395
|
-
* References an image source for
|
|
3401
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
3396
3402
|
*
|
|
3397
3403
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
3398
3404
|
|
|
3399
3405
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
3400
|
-
* @param
|
|
3406
|
+
* @param width - Image width in pixels
|
|
3407
|
+
* @param height - Image height in pixels
|
|
3408
|
+
* @param options - Optional component settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
3401
3409
|
* @returns This builder instance for method chaining.
|
|
3402
3410
|
*/
|
|
3403
|
-
addImageReference(src: string, options?: {
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3411
|
+
addImageReference(src: string, width: number, height: number, options?: {
|
|
3412
|
+
fit?: ImageFit;
|
|
3413
|
+
radius?: number;
|
|
3414
|
+
openable?: boolean;
|
|
3415
|
+
modifiers?: BaseModifiers;
|
|
3407
3416
|
}): this;
|
|
3408
3417
|
/**
|
|
3409
3418
|
* Appends a `ImageReferenceElement` component.
|
|
3410
3419
|
*
|
|
3411
3420
|
* @remarks
|
|
3412
|
-
* References an image source for
|
|
3421
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
3413
3422
|
*
|
|
3414
3423
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
3415
3424
|
|
|
3416
3425
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
3417
|
-
* @param
|
|
3426
|
+
* @param width - Image width in pixels
|
|
3427
|
+
* @param height - Image height in pixels
|
|
3428
|
+
* @param options - Optional component settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
3418
3429
|
* @returns This builder instance for method chaining.
|
|
3419
3430
|
*/
|
|
3420
|
-
addImageRef(src: string, options?: {
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3431
|
+
addImageRef(src: string, width: number, height: number, options?: {
|
|
3432
|
+
fit?: ImageFit;
|
|
3433
|
+
radius?: number;
|
|
3434
|
+
openable?: boolean;
|
|
3435
|
+
modifiers?: BaseModifiers;
|
|
3424
3436
|
}): this;
|
|
3425
3437
|
/**
|
|
3426
3438
|
* Appends a `MarkdownBlockElement` component.
|
|
@@ -4024,35 +4036,41 @@ export declare class UiCardBuilder {
|
|
|
4024
4036
|
* Appends a `ImageReferenceElement` component.
|
|
4025
4037
|
*
|
|
4026
4038
|
* @remarks
|
|
4027
|
-
* References an image source for
|
|
4039
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
4028
4040
|
*
|
|
4029
4041
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
4030
4042
|
|
|
4031
4043
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
4032
|
-
* @param
|
|
4044
|
+
* @param width - Image width in pixels
|
|
4045
|
+
* @param height - Image height in pixels
|
|
4046
|
+
* @param options - Optional component settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
4033
4047
|
* @returns This builder instance for method chaining.
|
|
4034
4048
|
*/
|
|
4035
|
-
addImageReference(src: string, options?: {
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4049
|
+
addImageReference(src: string, width: number, height: number, options?: {
|
|
4050
|
+
fit?: ImageFit;
|
|
4051
|
+
radius?: number;
|
|
4052
|
+
openable?: boolean;
|
|
4053
|
+
modifiers?: BaseModifiers;
|
|
4039
4054
|
}): this;
|
|
4040
4055
|
/**
|
|
4041
4056
|
* Appends a `ImageReferenceElement` component.
|
|
4042
4057
|
*
|
|
4043
4058
|
* @remarks
|
|
4044
|
-
* References an image source for
|
|
4059
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
4045
4060
|
*
|
|
4046
4061
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
4047
4062
|
|
|
4048
4063
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
4049
|
-
* @param
|
|
4064
|
+
* @param width - Image width in pixels
|
|
4065
|
+
* @param height - Image height in pixels
|
|
4066
|
+
* @param options - Optional component settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
4050
4067
|
* @returns This builder instance for method chaining.
|
|
4051
4068
|
*/
|
|
4052
|
-
addImageRef(src: string, options?: {
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4069
|
+
addImageRef(src: string, width: number, height: number, options?: {
|
|
4070
|
+
fit?: ImageFit;
|
|
4071
|
+
radius?: number;
|
|
4072
|
+
openable?: boolean;
|
|
4073
|
+
modifiers?: BaseModifiers;
|
|
4056
4074
|
}): this;
|
|
4057
4075
|
/**
|
|
4058
4076
|
* Appends a `MarkdownBlockElement` component.
|
|
@@ -4655,35 +4673,41 @@ export declare function timestamp(value: number, options?: {
|
|
|
4655
4673
|
* Creates a `ImageReferenceElement` component instance.
|
|
4656
4674
|
*
|
|
4657
4675
|
* @remarks
|
|
4658
|
-
* References an image source for
|
|
4676
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
4659
4677
|
*
|
|
4660
4678
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
4661
4679
|
|
|
4662
4680
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
4663
|
-
* @param
|
|
4681
|
+
* @param width - Image width in pixels
|
|
4682
|
+
* @param height - Image height in pixels
|
|
4683
|
+
* @param options - Optional settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
4664
4684
|
* @returns A strongly-typed `ImageReferenceElement` object.
|
|
4665
4685
|
*/
|
|
4666
|
-
export declare function imageReference(src: string, options?: {
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4686
|
+
export declare function imageReference(src: string, width: number, height: number, options?: {
|
|
4687
|
+
fit?: ImageFit;
|
|
4688
|
+
radius?: number;
|
|
4689
|
+
openable?: boolean;
|
|
4690
|
+
modifiers?: BaseModifiers;
|
|
4670
4691
|
}): ImageReferenceElement;
|
|
4671
4692
|
/**
|
|
4672
4693
|
* Creates a `ImageReferenceElement` component instance.
|
|
4673
4694
|
*
|
|
4674
4695
|
* @remarks
|
|
4675
|
-
* References an image source for
|
|
4696
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
4676
4697
|
*
|
|
4677
4698
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
4678
4699
|
|
|
4679
4700
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
4680
|
-
* @param
|
|
4701
|
+
* @param width - Image width in pixels
|
|
4702
|
+
* @param height - Image height in pixels
|
|
4703
|
+
* @param options - Optional settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
4681
4704
|
* @returns A strongly-typed `ImageReferenceElement` object.
|
|
4682
4705
|
*/
|
|
4683
|
-
export declare function imageRef(src: string, options?: {
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4706
|
+
export declare function imageRef(src: string, width: number, height: number, options?: {
|
|
4707
|
+
fit?: ImageFit;
|
|
4708
|
+
radius?: number;
|
|
4709
|
+
openable?: boolean;
|
|
4710
|
+
modifiers?: BaseModifiers;
|
|
4687
4711
|
}): ImageReferenceElement;
|
|
4688
4712
|
/**
|
|
4689
4713
|
* Creates a `ButtonActionElement` component instance.
|
|
@@ -152,6 +152,16 @@ export var TimestampFormat;
|
|
|
152
152
|
/** Relative time expression (e.g. "5 minutes ago") */
|
|
153
153
|
TimestampFormat["relative"] = "relative";
|
|
154
154
|
})(TimestampFormat || (TimestampFormat = {}));
|
|
155
|
+
/** Image rendering fit mode */
|
|
156
|
+
export var ImageFit;
|
|
157
|
+
(function (ImageFit) {
|
|
158
|
+
/** Scale the image to fit entirely within the container */
|
|
159
|
+
ImageFit["contain"] = "contain";
|
|
160
|
+
/** Scale the image to cover the container, cropping as needed */
|
|
161
|
+
ImageFit["cover"] = "cover";
|
|
162
|
+
/** Stretch the image to fill the container */
|
|
163
|
+
ImageFit["fill"] = "fill";
|
|
164
|
+
})(ImageFit || (ImageFit = {}));
|
|
155
165
|
/** Visual style variants for interactive button actions. */
|
|
156
166
|
export var ButtonVariant;
|
|
157
167
|
(function (ButtonVariant) {
|
|
@@ -1077,7 +1087,7 @@ export class TimestampElementClass extends BaseUiElement {
|
|
|
1077
1087
|
* Class implementation of the `ImageReferenceElement` interface.
|
|
1078
1088
|
*
|
|
1079
1089
|
* @remarks
|
|
1080
|
-
* References an image source for
|
|
1090
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
1081
1091
|
*/
|
|
1082
1092
|
export class ImageReferenceElementClass extends BaseUiElement {
|
|
1083
1093
|
/**
|
|
@@ -1093,43 +1103,45 @@ export class ImageReferenceElementClass extends BaseUiElement {
|
|
|
1093
1103
|
* Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
1094
1104
|
*/
|
|
1095
1105
|
src;
|
|
1106
|
+
/** Image width in pixels */
|
|
1107
|
+
width;
|
|
1108
|
+
/** Image height in pixels */
|
|
1109
|
+
height;
|
|
1096
1110
|
/**
|
|
1097
|
-
*
|
|
1098
|
-
*
|
|
1099
|
-
* @remarks
|
|
1100
|
-
* Alternative text describing the image for assistive technology. Provide meaningful text when the image conveys information; omit it only when it is decorative.
|
|
1101
|
-
*/
|
|
1102
|
-
alt;
|
|
1103
|
-
/**
|
|
1104
|
-
* Aspect ratio of the thumbnail container
|
|
1111
|
+
* How the image fits within its container
|
|
1105
1112
|
*
|
|
1106
|
-
* @
|
|
1107
|
-
* Preferred ratio of the rendered thumbnail container, expressed as a ratio string such as 1:1. It controls presentation rather than modifying the source image.
|
|
1108
|
-
*
|
|
1109
|
-
* @defaultValue "1:1"
|
|
1113
|
+
* @defaultValue ImageFit.cover
|
|
1110
1114
|
*/
|
|
1111
|
-
|
|
1115
|
+
fit;
|
|
1116
|
+
/** Image corner radius in pixels */
|
|
1117
|
+
radius;
|
|
1112
1118
|
/**
|
|
1113
|
-
*
|
|
1119
|
+
* Whether clicking the image invokes the provider image click handler
|
|
1114
1120
|
*
|
|
1115
|
-
* @
|
|
1116
|
-
* Optional source to display when the primary image cannot be loaded. It follows the same URI conventions as src.
|
|
1121
|
+
* @defaultValue false
|
|
1117
1122
|
*/
|
|
1118
|
-
|
|
1123
|
+
openable;
|
|
1124
|
+
/** Optional visual modifiers (copyable) */
|
|
1125
|
+
modifiers;
|
|
1119
1126
|
/**
|
|
1120
1127
|
* Constructs a new `ImageReferenceElementClass` instance.
|
|
1121
1128
|
*
|
|
1122
1129
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
1123
1130
|
|
|
1124
1131
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
1125
|
-
* @param
|
|
1132
|
+
* @param width - Image width in pixels
|
|
1133
|
+
* @param height - Image height in pixels
|
|
1134
|
+
* @param options - Optional component settings. (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
1126
1135
|
*/
|
|
1127
|
-
constructor(src, options) {
|
|
1136
|
+
constructor(src, width, height, options) {
|
|
1128
1137
|
super();
|
|
1129
1138
|
this.src = src;
|
|
1130
|
-
this.
|
|
1131
|
-
this.
|
|
1132
|
-
this.
|
|
1139
|
+
this.width = width;
|
|
1140
|
+
this.height = height;
|
|
1141
|
+
this.fit = options?.fit ?? ImageFit.cover;
|
|
1142
|
+
this.radius = options?.radius;
|
|
1143
|
+
this.openable = options?.openable ?? false;
|
|
1144
|
+
this.modifiers = options?.modifiers;
|
|
1133
1145
|
}
|
|
1134
1146
|
}
|
|
1135
1147
|
/**
|
|
@@ -2267,31 +2279,35 @@ export class UiContainerBuilder {
|
|
|
2267
2279
|
* Appends a `ImageReferenceElement` component.
|
|
2268
2280
|
*
|
|
2269
2281
|
* @remarks
|
|
2270
|
-
* References an image source for
|
|
2282
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
2271
2283
|
*
|
|
2272
2284
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
2273
2285
|
|
|
2274
2286
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
2275
|
-
* @param
|
|
2287
|
+
* @param width - Image width in pixels
|
|
2288
|
+
* @param height - Image height in pixels
|
|
2289
|
+
* @param options - Optional component settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
2276
2290
|
* @returns This builder instance for method chaining.
|
|
2277
2291
|
*/
|
|
2278
|
-
addImageReference(src, options) {
|
|
2279
|
-
return this.add(imageReference(src, options));
|
|
2292
|
+
addImageReference(src, width, height, options) {
|
|
2293
|
+
return this.add(imageReference(src, width, height, options));
|
|
2280
2294
|
}
|
|
2281
2295
|
/**
|
|
2282
2296
|
* Appends a `ImageReferenceElement` component.
|
|
2283
2297
|
*
|
|
2284
2298
|
* @remarks
|
|
2285
|
-
* References an image source for
|
|
2299
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
2286
2300
|
*
|
|
2287
2301
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
2288
2302
|
|
|
2289
2303
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
2290
|
-
* @param
|
|
2304
|
+
* @param width - Image width in pixels
|
|
2305
|
+
* @param height - Image height in pixels
|
|
2306
|
+
* @param options - Optional component settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
2291
2307
|
* @returns This builder instance for method chaining.
|
|
2292
2308
|
*/
|
|
2293
|
-
addImageRef(src, options) {
|
|
2294
|
-
return this.add(imageRef(src, options));
|
|
2309
|
+
addImageRef(src, width, height, options) {
|
|
2310
|
+
return this.add(imageRef(src, width, height, options));
|
|
2295
2311
|
}
|
|
2296
2312
|
/**
|
|
2297
2313
|
* Appends a `MarkdownBlockElement` component.
|
|
@@ -2897,31 +2913,35 @@ export class UiCardBuilder {
|
|
|
2897
2913
|
* Appends a `ImageReferenceElement` component.
|
|
2898
2914
|
*
|
|
2899
2915
|
* @remarks
|
|
2900
|
-
* References an image source for
|
|
2916
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
2901
2917
|
*
|
|
2902
2918
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
2903
2919
|
|
|
2904
2920
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
2905
|
-
* @param
|
|
2921
|
+
* @param width - Image width in pixels
|
|
2922
|
+
* @param height - Image height in pixels
|
|
2923
|
+
* @param options - Optional component settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
2906
2924
|
* @returns This builder instance for method chaining.
|
|
2907
2925
|
*/
|
|
2908
|
-
addImageReference(src, options) {
|
|
2909
|
-
return this.add(imageReference(src, options));
|
|
2926
|
+
addImageReference(src, width, height, options) {
|
|
2927
|
+
return this.add(imageReference(src, width, height, options));
|
|
2910
2928
|
}
|
|
2911
2929
|
/**
|
|
2912
2930
|
* Appends a `ImageReferenceElement` component.
|
|
2913
2931
|
*
|
|
2914
2932
|
* @remarks
|
|
2915
|
-
* References an image source for
|
|
2933
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
2916
2934
|
*
|
|
2917
2935
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
2918
2936
|
|
|
2919
2937
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
2920
|
-
* @param
|
|
2938
|
+
* @param width - Image width in pixels
|
|
2939
|
+
* @param height - Image height in pixels
|
|
2940
|
+
* @param options - Optional component settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
2921
2941
|
* @returns This builder instance for method chaining.
|
|
2922
2942
|
*/
|
|
2923
|
-
addImageRef(src, options) {
|
|
2924
|
-
return this.add(imageRef(src, options));
|
|
2943
|
+
addImageRef(src, width, height, options) {
|
|
2944
|
+
return this.add(imageRef(src, width, height, options));
|
|
2925
2945
|
}
|
|
2926
2946
|
/**
|
|
2927
2947
|
* Appends a `MarkdownBlockElement` component.
|
|
@@ -3623,42 +3643,52 @@ export function timestamp(value, options) {
|
|
|
3623
3643
|
* Creates a `ImageReferenceElement` component instance.
|
|
3624
3644
|
*
|
|
3625
3645
|
* @remarks
|
|
3626
|
-
* References an image source for
|
|
3646
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
3627
3647
|
*
|
|
3628
3648
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
3629
3649
|
|
|
3630
3650
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
3631
|
-
* @param
|
|
3651
|
+
* @param width - Image width in pixels
|
|
3652
|
+
* @param height - Image height in pixels
|
|
3653
|
+
* @param options - Optional settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
3632
3654
|
* @returns A strongly-typed `ImageReferenceElement` object.
|
|
3633
3655
|
*/
|
|
3634
|
-
export function imageReference(src, options) {
|
|
3656
|
+
export function imageReference(src, width, height, options) {
|
|
3635
3657
|
return {
|
|
3636
3658
|
type: "image-ref",
|
|
3637
3659
|
src,
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3660
|
+
width,
|
|
3661
|
+
height,
|
|
3662
|
+
fit: options?.fit ?? ImageFit.cover,
|
|
3663
|
+
radius: options?.radius,
|
|
3664
|
+
openable: options?.openable ?? false,
|
|
3665
|
+
modifiers: options?.modifiers
|
|
3641
3666
|
};
|
|
3642
3667
|
}
|
|
3643
3668
|
/**
|
|
3644
3669
|
* Creates a `ImageReferenceElement` component instance.
|
|
3645
3670
|
*
|
|
3646
3671
|
* @remarks
|
|
3647
|
-
* References an image source for
|
|
3672
|
+
* References an image source for rendering at the supplied pixel dimensions. The client displays a loading state while the image loads and can optionally expose URL copy and click actions.
|
|
3648
3673
|
*
|
|
3649
3674
|
* @param src - Image source URI (HTTPS URL, base64 data URI, or asset path)
|
|
3650
3675
|
|
|
3651
3676
|
Source URI understood by the client renderer. Supported forms include HTTPS locations, base64 data URIs, and client asset paths; this field is not raw image bytes.
|
|
3652
|
-
* @param
|
|
3677
|
+
* @param width - Image width in pixels
|
|
3678
|
+
* @param height - Image height in pixels
|
|
3679
|
+
* @param options - Optional settings (fit (defaults to `cover`), radius, openable (defaults to `false`), modifiers).
|
|
3653
3680
|
* @returns A strongly-typed `ImageReferenceElement` object.
|
|
3654
3681
|
*/
|
|
3655
|
-
export function imageRef(src, options) {
|
|
3682
|
+
export function imageRef(src, width, height, options) {
|
|
3656
3683
|
return {
|
|
3657
3684
|
type: "image-ref",
|
|
3658
3685
|
src,
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3686
|
+
width,
|
|
3687
|
+
height,
|
|
3688
|
+
fit: options?.fit ?? ImageFit.cover,
|
|
3689
|
+
radius: options?.radius,
|
|
3690
|
+
openable: options?.openable ?? false,
|
|
3691
|
+
modifiers: options?.modifiers
|
|
3662
3692
|
};
|
|
3663
3693
|
}
|
|
3664
3694
|
/**
|
|
@@ -4536,9 +4566,12 @@ export function isImageReferenceElement(value, withDeepValidation = false) {
|
|
|
4536
4566
|
}
|
|
4537
4567
|
const element = value;
|
|
4538
4568
|
return ("src" in value && typeof element.src === "string") &&
|
|
4539
|
-
(element.
|
|
4540
|
-
(
|
|
4541
|
-
(
|
|
4569
|
+
(element.fit === undefined || Object.values(ImageFit).includes(element.fit)) &&
|
|
4570
|
+
("width" in value && typeof element.width === "number") &&
|
|
4571
|
+
("height" in value && typeof element.height === "number") &&
|
|
4572
|
+
(element.radius === undefined || typeof element.radius === "number") &&
|
|
4573
|
+
(element.openable === undefined || typeof element.openable === "boolean") &&
|
|
4574
|
+
(element.modifiers === undefined || isBaseModifiers(element.modifiers, true));
|
|
4542
4575
|
}
|
|
4543
4576
|
/**
|
|
4544
4577
|
* Type guard predicate narrowing a value to `MarkdownBlockElement`.
|