Skip to main content

ManifestInstructions

The full specifications of an extension, including the events it handles, its capabilities, its execution and its commands

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
  • ]
  • ManifestInstructions
    {
    "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"
    }
    }
    ]
    }