Skip to main content

ExtensionAndManual

The manual and instructions of an extension

manifest objectrequired

The extension manifest

idstringrequired

The identifier of the extension

Possible values: non-empty and <= 32 characters, Value must match regular expression ^[a-z0-9A-Z-_.]{1,32}$

Example: extension-id
versionstringrequired

The 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-]+)*))?$

Example: 1.0.0
namestringrequired

The name of the extension

Possible values: non-empty and <= 128 characters, Value must match regular expression ^[a-z0-9A-Z-_.:;|/ ]{1,128}$

Example: My extension
descriptionstringrequired

The description of the extension's purpose

Possible values: non-empty and <= 1024 characters

Example: Computes the embeddings of images.
categoriesExtensionCategory[]required

The categories the extension belongs to

Possible values: [capture, generation, enrichment, integration, utility, other], >= 1

authorstringrequired

The author of the extension

Possible values: non-empty and <= 128 characters

Example: John Doe
runtimes object[]required

The required runtime environments

  • Array [
  • environmentManifestRuntimeEnvironmentrequired

    The unique identifier of the runtime environment

    Possible values: [python, node]

    Example: python
  • ]
  • instructions object[]required

    The instructions regarding the way the extension handle events

    Possible values: >= 1

  • Array [
  • eventsManifestEvent[]required

    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

  • Array [
  • oneOf

    A capability to compute features, optionally captions

    idManifestCapabilityIdrequired

    The identifier of the extension capability

    Possible values: [image.features, image.embeddings, image.tags, text.embeddings]

    Example: image.features
    details object

    Present to mark this image.features capability as computing captions

    captionboolean

    Whether caption computation is supported

    Example: true
  • ]
  • throttlingPolicies object[]

    The throttling policies for some events

  • Array [
  • eventsManifestEvent[]required

    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

    durationInMillisecondsinteger<int32>

    The duration during which a maximal number of events can be handled

    Possible values: > 0

    Example: 1000
    maximumCountinteger<int32>

    The maximal number of events that be handled during the duration

    Possible values: > 0

    Example: 10
  • ]
  • execution objectrequired

    The execution to run when one of the event of the instructions occurs

    executablestringrequired

    The executable to run

    Possible values: non-empty and <= 512 characters

    Example: python
    argumentsstring[]required

    The arguments to provide to the executable

    Possible values: <= 64

    commands object[]

    The possible commands of the event

  • Array [
  • idstringrequired

    The identifier of the command

    Possible values: non-empty and <= 32 characters, Value must match regular expression ^[a-z0-9A-Z-_.]{1,32}$

    Example: convert
    on objectrequired

    The kind of entity and the conditions the command applies to

    entityCommandEntityrequired

    The entity the command applies to

    Possible values: [Process, Images, Image]

    withTagsstring[]

    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

    property name*any

    The definition of the parameters the command requires

    specifications object[]required

    The specifications for the command

    Possible values: >= 1

  • Array [
  • localestringrequired

    The locale the specification applies on

    Possible values: non-empty and <= 8 characters

    Default value: en
    Example: fr
    labelstringrequired

    The command label displayed on buttons

    Possible values: non-empty and <= 32 characters

    Example: Resize
    namestring

    The command name displayed on dialog boxes

    Possible values: non-empty and <= 128 characters

    Example: Resize an image
    descriptionstring

    The command description

    Possible values: non-empty and <= 1024 characters

    Example: Resizes an image given a format asked to the user.
  • ]
  • ui object

    The UI specifications of the command

    iconUristringrequired

    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+&@#/%=~_|]+$

    Example: /assets/icon.svg
  • ]
  • ]
  • settings objectrequired

    The extension settings definition

    property name*any

    The extension settings definition

    Example: {"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

  • Array [
  • idstringrequired

    The identifier of the UI fragment

    Possible values: non-empty and <= 32 characters, Value must match regular expression ^[a-z0-9A-Z-_.]{1,32}$

    Example: main
    integration objectrequired

    The way it is integrated within the application overall UI

    anchor UserInterfaceAnchorrequired

    The way it is integrated within the application overall UI

    Possible values: [sidebar, window]

    Specifies how a sidebar UI element integrates

    isExternalbooleanrequired

    Whether the element should be displayed via an external window or through an internal frame

    Example: false
    urlstringrequired

    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+&@#/%=~_|]+$

    Example: /assets/path/file.ext
  • ]
  • stateExtensionStaterequired

    The state of the extension

    Possible values: [enabled, paused]

    Example: enabled
    manual object

    The extension manual

    instructionsstringrequired

    The instructions

    Possible values: non-empty and <= 131072 characters

    Example: To use the extension, you need to install…
    ExtensionAndManual
    {
    "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…"
    }
    }