ExtensionAndManual
The manual and instructions of an extension
manifest objectrequired
The extension manifest
The identifier of the extension
Possible values: non-empty and <= 32 characters, Value must match regular expression ^[a-z0-9A-Z-_.]{1,32}$
extension-idThe version of the extension, which should follow the semver convention
Possible values: >= 5 characters and <= 32 characters, Value must match regular expression ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
1.0.0The name of the extension
Possible values: non-empty and <= 128 characters, Value must match regular expression ^[a-z0-9A-Z-_.:;|/ ]{1,128}$
My extensionThe description of the extension's purpose
Possible values: non-empty and <= 1024 characters
Computes the embeddings of images.The categories the extension belongs to
Possible values: [capture, generation, enrichment, integration, utility, other], >= 1
The author of the extension
Possible values: non-empty and <= 128 characters
John Doeruntimes object[]required
The required runtime environments
The unique identifier of the runtime environment
Possible values: [python, node]
pythoninstructions object[]required
The instructions regarding the way the extension handle events
Possible values: >= 1
The events which will trigger the instructions
Possible values: [process.started, process.runCommand, extension.settings, image.created, image.updated, image.tags.updated, image.features.updated, image.embeddings.updated, image.deleted, image.computeFeatures, image.computeEmbeddings, image.computeTags, image.runCommand, text.computeEmbeddings], >= 1
capabilities object[]
The capabilities attached to the instructions
- ManifestImageFeaturesCapability
- ManifestImageTagsCapability
- ManifestEmbeddingsCapability
A capability to compute features, optionally captions
The identifier of the extension capability
Possible values: [image.features, image.embeddings, image.tags, text.embeddings]
image.featuresdetails object
Present to mark this image.features capability as computing captions
Whether caption computation is supported
truethrottlingPolicies object[]
The throttling policies for some events
The events which are involved in the throttling
Possible values: [process.started, process.runCommand, extension.settings, image.created, image.updated, image.tags.updated, image.features.updated, image.embeddings.updated, image.deleted, image.computeFeatures, image.computeEmbeddings, image.computeTags, image.runCommand, text.computeEmbeddings], >= 1
The duration during which a maximal number of events can be handled
Possible values: > 0
1000The maximal number of events that be handled during the duration
Possible values: > 0
10execution objectrequired
The execution to run when one of the event of the instructions occurs
The executable to run
Possible values: non-empty and <= 512 characters
pythonThe arguments to provide to the executable
Possible values: <= 64
commands object[]
The possible commands of the event
The identifier of the command
Possible values: non-empty and <= 32 characters, Value must match regular expression ^[a-z0-9A-Z-_.]{1,32}$
converton objectrequired
The kind of entity and the conditions the command applies to
The entity the command applies to
Possible values: [Process, Images, Image]
The tags the entity should be attached to for the command to apply
Possible values: non-empty and <= 64 characters
parameters object
The definition of the parameters the command requires
The definition of the parameters the command requires
specifications object[]required
The specifications for the command
Possible values: >= 1
The locale the specification applies on
Possible values: non-empty and <= 8 characters
enfrThe command label displayed on buttons
Possible values: non-empty and <= 32 characters
ResizeThe command name displayed on dialog boxes
Possible values: non-empty and <= 128 characters
Resize an imageThe command description
Possible values: non-empty and <= 1024 characters
Resizes an image given a format asked to the user.ui object
The UI specifications of the command
The URI of the command icon
Possible values: non-empty and <= 4096 characters, Value must match regular expression ^(https?://|/?)[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]+$
/assets/icon.svgsettings objectrequired
The extension settings definition
The extension settings definition
{"type":"object","properties":{"key":{"type":"string","title":"Key","description":"A key."}},"required":["key"]}ui object
The UI definition of the extensions
elements object[]required
The various elements of the UI
Possible values: >= 1
The identifier of the UI fragment
Possible values: non-empty and <= 32 characters, Value must match regular expression ^[a-z0-9A-Z-_.]{1,32}$
mainintegration objectrequired
The way it is integrated within the application overall UI
The way it is integrated within the application overall UI
Possible values: [sidebar, window]
- sidebar
- window
Specifies how a sidebar UI element integrates
Whether the element should be displayed via an external window or through an internal frame
falseSpecifies how a window UI element integrates
The URL of the content
Possible values: non-empty and <= 4096 characters, Value must match regular expression ^(https?://|/?)[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]+$
/assets/path/file.extThe state of the extension
Possible values: [enabled, paused]
enabledmanual object
The extension manual
The instructions
Possible values: non-empty and <= 131072 characters
To use the extension, you need to install…{
"manifest": {
"id": "extension-id",
"version": "1.0.0",
"name": "My extension",
"description": "Computes the embeddings of images.",
"categories": [
"capture"
],
"author": "John Doe",
"runtimes": [
{
"environment": "python"
}
],
"instructions": [
{
"events": [
"process.started"
],
"capabilities": [
{
"id": "image.features",
"details": {
"caption": true
}
},
{
"id": "image.tags",
"details": {
"eligibleTags": true
}
},
{
"id": "image.embeddings"
}
],
"throttlingPolicies": [
{
"events": [
"process.started"
],
"durationInMilliseconds": 1000,
"maximumCount": 10
}
],
"execution": {
"executable": "python",
"arguments": [
"string"
]
},
"commands": [
{
"id": "convert",
"on": {
"entity": "Process",
"withTags": [
"string"
]
},
"parameters": {},
"specifications": [
{
"locale": "fr",
"label": "Resize",
"name": "Resize an image",
"description": "Resizes an image given a format asked to the user."
}
],
"ui": {
"iconUri": "/assets/icon.svg"
}
}
]
}
],
"settings": {
"type": "object",
"properties": {
"key": {
"type": "string",
"title": "Key",
"description": "A key."
}
},
"required": [
"key"
]
},
"ui": {
"elements": [
{
"id": "main",
"integration": {
"anchor": "sidebar",
"isExternal": false
},
"url": "/assets/path/file.ext"
}
]
}
},
"state": "enabled",
"manual": {
"instructions": "To use the extension, you need to install…"
}
}