> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflow notifications

> Notifications workflows send to skins.

## Download

### Pause

Trigger to pause repository operations.

**Version:**  5.1

#### Resume

Trigger to resume repository operations.

**Version:**  5.1

#### Status

Triggered when a status update occurs.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| name | string | File name from the download URL. |
| paused | boolean | Whether or not the download is currently paused. |
| totalBytes | number | Content length. |
| existingBytes | number | Number of bytes existing on disk (resume). |
| progress | number | Download progress. |
| remainingBytes | number | Number of bytes remaining to download. |
| remoteReadBytes | number | Number of bytes read. |
| remoteAvgReadSpeed | number | Number of bytes read on average. |
| remoteMaxReadSpeed | number | Maximum read speed detected. |
| remoteWriteBytes | number | Number of bytes written. |
| remoteAvgWriteSpeed | number | Number of bytes written on average. |
| remoteMaxWriteSpeed | number | Maximum write speed detected from remote repository |
| activeTime | number | Number of seconds the download has been active. |
| pauseTime | number | Number of seconds the download has been paused. |

## Interop

### Load

Triggered when an interop library is loaded.

**Version:**  3.6

| Name | Type | Description |
| - | - | - |
| successful | boolean | *true* if the interop was loaded successfully, *false* otherwise. |
| name | string | Name of the interop |
| path | string | Filename of the interop. |

#### Unload

Triggered when an interop library is unloaded.

**Version:**  3.6

| Name | Type | Description |
| - | - | - |
| successful | boolean | *true* if the interop was unloaded successfully, *false* otherwise. |
| name | string | Name of the interop |
| path | string | Filename of the interop. |

#### Launch

#### Complete

Triggered when the process has been launched.

**Version:**  3.6

#### Output

Triggered when the process has output information to the standard out.

**Version:**  3.6

## MSInstaller

### Complete

Triggered after the installation is complete.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| errorCode | number | Error code if one occurred. |
| successful | boolean | *true* if the install was successful, *false* otherwise. |

#### Event

Triggered whenever an MSI event is triggered by Windows Installer.

**Version:**  5.1

| **Name** | Type | Description |
| - | - | - |
| type | number | Type of event that occurred. |
| message | string | Message related to the event. |
| progress | number | Progress of the install. |
| total | number | Total progress of the install. |

**Event Type**

Type of event that occurred. For detailed description see Microsoft documentation for MSIEvent.

| Name | Value |
| - | - |
| MSINSTALLER\_EVENT\_PROGRESS | 1 |
| MSINSTALLER\_EVENT\_FATALEXIT | 2 |
| MSINSTALLER\_EVENT\_ERROR | 3 |
| MSINSTALLER\_EVENT\_WARNING | 4 |
| MSINSTALLER\_EVENT\_USER | 5 |
| MSINSTALLER\_EVENT\_INFO | 6 |
| MSINSTALLER\_EVENT\_FILESINUSE | 7 |
| MSINSTALLER\_EVENT\_OUTOFDISKSPACE | 8 |
| MSINSTALLER\_EVENT\_ACTIONSTART | 9 |
| MSINSTALLER\_EVENT\_ACTIONDATA | 10 |
| MSINSTALLER\_EVENT\_INITIALIZE | 11 |
| MSINSTALLER\_EVENT\_TERMINATE | 12 |

Queue

#### Start

Triggered when a queue is started.

**Version:**  5.1

#### NextTask

Triggered when a queue is starting its next task.

**Version:**  5.1

## Repository

### OutOfDate

Triggered when a repository is out of date.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| check | bool | Only doing a repository check |

**Changes in 5.2:**

* Added check argument

#### Pause

Trigger to pause repository operations.

**Version:**  5.1

#### Resume

Trigger to resume repository operations.

**Version:**  5.1

#### Shutdown

Triggered when a repository is shutdown.

**Version:**  5.1

#### Status

Triggered when a status change occurs.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| name | string | Name of the repository |
| actionFlags | int32 | Action flags |
| stateFlags | int32 | State flags |
| localId | string | Local repository id |
| remoteId | string | Remote repository id |
| deltaFailures | int32 | Number of delta failures |
| pendingRequests | int32 | Number of pending storage requests |
| cancelled | boolean | true if task was cancelled, false otherwise |
| repair | boolean | true if task was a repair, false otherwise |
| complete | boolean | true if task completed, false otherwise |
| piecesTotal | int32 | Total number of pieces during apply/copy phases |
| piecesSkipped | int32 | Number of pieces skipped during apply/copy phases |
| piecesMasked | int32 | Number of pieces masked during apply/copy phases |
| piecesComplete | int32 | Number of pieces successfully completed |
| pieceAverageTime | float64 | Average duration of piece during apply/copy phases |
| localMetaFileLoadTime | float64 | Number of seconds elapsed loading the local metafile |
| remoteMetaFileLoadTime | float64 | Number of second elapsed loading the remote metafile |
| aliasLoadTime | float64 | Number of seconds elapsed loading the alias |
| catalogLoadTime | float64 | Number of seconds elapsed loading the catalog |
| localCleanTime | float64 | Number of seconds elapsed during cleaning state for local storage |
| pendingCleanTime | float64 | Number of seconds elapsed during cleaning state for pending local storage |
| refreshTime | float64 | Number of seconds elapsed during refresh state |
| syncTime | float64 | Number of seconds elapsed in the sync state |
| eraseTime | float64 | Number of seconds elapsed in the erase state |
| stallTime | float64 | Number of seconds elapsed in the stall state |
| aliveTime | float64 | Number of seconds elapsed in the alive state |
| pauseTime | float64 | Number of seconds elapsed while paused |
| phases | array | string list of all the phases for applicable to the repository (copy, apply, clean) |
| errorCount | int32 | Total number of errors encountered during the sync |
| lastErrorCode | int32 | Information from last error encountered |
| lastErrorCodeEx | int32 | Information from last error encountered |
| lastErrorIndex | int32 | Information from last error encountered |
| lastErrorType | int32 | Information from last error encountered |
| localMaxReadSpeed | float64 | Maximum read speed detected from local repository |
| localReadBytes | int64 | Number of bytes read from local repository |
| localMaxWriteSpeed | float64 | Maximum write speed detected from local repository |
| localWriteBytes | int64 | Number of bytes written from local repository |
| remoteMaxReadSpeed | float64 | Maximum read speed detected from remote repository |
| remoteReadBytes | int64 | Number of bytes read from remote repository |
| remoteMaxWriteSpeed | float64 | Maximum write speed detected from remote repository |
| remoteWriteBytes | int64 | Number of bytes written from remote repository |
| localMetaFile | object | Metafile container for local properties |
| remoteMetaFile | object | Metafile container for remote properties |
| alias | object | Alias container |
| catalog | object | Catalog container |
| delta | object | Delta container |
| copy | object | Storage copy container for copying state |
| apply | object | Storage copy container for apply state |
| cleanupLocal | object | Storage cleanup container for local |
| cleanupPending | object | Storage cleanup container for pending |
| local | object | Storage container for local |
| remote | array | Storage containers for remote |
| pending | object | Storage container for pending |

##### Alias container

| Name | Type | Description |
| - | - | - |
| errorCount | int32 | Number of errors |
| errorCode | int32 | Last error code |
| errorCodeEx | int32 | Last error code extended information |
| resumeTime | float64 | Unix epoch indicating the time to retry the operation after an error |

##### Catalog container

| Name | Type | Description |
| - | - | - |
| errorCount | int32 | Number of errors |
| errorCode | int32 | Last error code |
| errorCodeEx | int32 | Last error code extended information |
| resumeTime | float64 | Unix epoch indicating the time to retry the operation after an error |

##### Storage container

| Name | Container | Type | Description |
| - | - | - | - |
| type | all | string | Type of storage container ("file", "filePiece", "http", "httpPiece", "none") |
| id | all | string | Unique instance id |
| errorCount | all | int32 | Number of errors |
| pendingRequests | all | int32 | Number of requests pending |
| readBytes | all | int64 | Number of bytes read |
| writeBytes | all | int64 | Number of bytes written |
| maxReadSpeed | all | float64 | Maximum read speed detected |
| maxWriteSpeed | all | float64 | Maximum write speed detected |
| readSpeed | all | float64 | Current read speed |
| writeSpeed | all | float64 | Current write speed |
| lockDirectory | file | string | Path used to store locked files |
| openFiles | file | int | Number of files open |
| extraFileFlags | file/filePiece | int32 | Extra file flags used by container 0x100: No Buffering |
| lastError | http/httpPiece | int | Information from last error encountered |
| lastErrorEx | http/httpPiece | int | Information from last error encountered |
| url | http/httpPiece | string | Http base path |

##### Storage cleanup request container

| Name | Type | Description |
| - | - | - |
| index | int32 | Piece index for current request |
| resumeTime | float64 | Unix epoch indicating the time to retry the operation after an error |

##### Storage cleanup container

| Name | Type | Description |
| - | - | - |
| progress | float64 | Current progress percentage for this operation |
| piecesTotal | int32 | Number of pieces to copy |
| piecesComplete | int32 | Number of pieces completed |
| pieceAverageTime | float64 | Weighted average duration of piece |
| remainingTime | float64 | Number of seconds left for this operation |
| requests | array | Storage cleanup request container |

##### Storage copy request container

| Name | Type | Description |
| - | - | - |
| index | int32 | Piece index for current request |
| state | int32 | State code for request 0: Begin 1: Pending Get 2: Destination Get 3: Source Get 4: Destination Put |
| allowVCDiff | bool | Allow delta operation for this request |
| resumeTime | float64 | Unix epoch indicating the time to retry the operation after an error |

##### Storage copy container

| Name | Type | Description |
| - | - | - |
| flags | int32 | Storage copy flags 0x01: Destination Get 0x02: Pending Get 0x04: Source Get 0x08: Destination Put 0x10: Pending Put 0x20: Auto Mask |
| filesTotal | int32 | Number of files in remote metafile |
| filesComplete | int32 | Number of files completed |
| filesPending | int32 | Number of files pending complete (waiting for av scan and renaming) |
| filesPendingInFlight | int32 | Number of files actively being completed |
| progress | float64 | Current progress percentage for this operation |
| piecesTotal | int32 | Number of pieces to copy |
| piecesSkipped | int32 | Number of pieces skipped |
| piecesWritten | int32 | Number of pieces written to destination |
| piecesMasked | int32 | Number of pieces masked |
| piecesComplete | int32 | Number of pieces completed |
| pieceCompleteLastTime | float64 | Epoch of the time when the last piece completed |
| pieceAverageTime | float64 | Weighted average duration of piece |
| remainingTime | float64 | Number of seconds left for this operation |
| fileCompleteLastTime | float64 | Epoch of the time when the last file completed |
| bytesTotal | int64 | Estimate for the total bytes requiring processing (includes padding) |
| bytesComplete | int64 | Estimate for the total bytes completed (includes padding) |
| bytesWritten | int64 | Estimate for the number of bytes written (includes padding) |
| byteSkipped | int64 | Estimate for the number of bytes skipped (includes padding) |
| bytesRemaining | int64 | Estimate for the number of bytes remaining (includes padding) |
| requests | array | Storage copy request container |

##### Delta container

| Name | Type | Description |
| - | - | - |
| readBytes | int64 | Number of source bytes read |
| cache | object | Piece cache container |

##### Metafile container

| Name | Type | Description |
| - | - | - |
| errorCount | int | Number of errors |
| errorCode | int | Last error code |
| errorCodeEx | int | Last error code extended information |
| resumeTime | float64 | Unix epoch indicating the time to retry the operation after an error |
| totalLength | int64 | Total length of all the files in the metafile (does not include padding) |
| totalPadding | int64 | Total length of all the padding in the metafile |

##### Piece cache container

| Name | Type | Description |
| - | - | - |
| size | int | Maximum size of the cache |
| hits | int | Number of cache hits |
| misses | int | Number of cache misses |
| used | int | Number of bytes used in cache |

#### UpToDate

Triggered when a repository is up to date.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| check | bool | Only doing a repository check |

Task

#### Complete

Triggered when a task and all of its subtasks completes.

**Version:**  5.1

#### End

Triggered when the task ends.

**Version:**  7.0

#### Error

Triggered when a task error occurs.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| message | string | Error message passed to task. |

#### Pause

Trigger to pause repository/download operations.

*Must be implemented by specific task in order for it to work.*

**Version:**  5.1

#### Resume

Trigger to resume repository/download operations.  *Must be implemented by specific task in order for it to work.*

**Version:**  5.1

#### Start

Triggered when a task starts.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| \[Task.Name] | object | JSON object containing the task's arguments. |
| workflow | string | Instance Id of the task's workflow. |

#### Skip

Trigger to skip repository/download operations.  *Must be implemented by specific task in order for it to work.*

**Version:**  5.2

#### Status

Triggered when a task status change occurs.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| \* | object | JSON containing the status variables that have changed. |

#### Warning

Triggered when a task warning occurs.

**Version:**  5.1

| Parameter | Type | Description |
| - | - | - |
| message | string | Warning message passed to task. |

## Workflow

### Activate

Triggered when first task is run.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| sender | string | Remote instance id. Used when workflow created from a remote task. |

#### Cancel

Triggered when a remote workflow needs to be canceled.

**Version:**  5.1

#### Deactivate

Triggered when last task is run.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| sender | string | Remote instance id. |

#### RegisterTaskHandlers

Triggered when a workflow needs to register new task types.

**Version:**  5.1

#### Status

Triggered when a workflow status update occurs.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| \* | object | Status variables |

#### UnregisterTaskHandlers

Triggered when a workflow needs to unregister task types.

**Version:**  5.1

## WorkflowApp

### Shutdown

Trigger to shutdown the workflow engine. Shutting down is typically handled by the application implementing the workflow engine.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| force | boolean | If *true* , the implementing app should close immediately, otherwise,do nothing. |

## WorkflowEvent

### Complete

Triggered when a workflow event completes.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| name | string | Name of the event. |
| workflow | string | Instance id of the workflow. |
| successful | boolean | Indicates whether or not the event was successful. |

#### Start

Triggered when a workflow event starts.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| name | string | Name of the event, for example "load", "start", and "unload". |
| workflow | string | Instance id of the workflow. |

## WorkflowManager

### Activate

Triggered when a task has been started, after a period of which no task had been active.

**Version:**  5.2

#### Deactivate

Triggered when there are no active tasks, and no tasks queued.

**Version:**  5.2

#### Status

Triggered when the status of the workflow manager changes.

**Version:**  5.2

| Name | Type | Description |
| - | - | - |
| active | object | Contains the active task for each workflow instance id. Object is a dictionary of key/value pairs where the key is the workflow instance id and the value is the active task name. |
| available | object | Contains a list of available actions/tasks each workflow can run. Object is a dictionary of key/value pairs where the key is the workflow instance id and the value is a list of names of tasks that are available to queue. |
| dependencies | object | Contains a dependency id map. Object contains a dictionary of key/value pairs where the key is a workflow id and the value is the workflow id that it depends on. |
| progress | number | Unified progress of the active tasks. |
| queued | object | Contains list of tasks that are queued for each workflow. Object is a dictionary of key/value pairs where the key is the workflow instance id and the value is a list of task names that are queued for the workflow. This list contains both immediate tasks that are queued and their dependencies that are queued. |
| queuedDependencies | object | Contains list of tasks that are queued for workflows that are dependencies to other workflows. Object is a dictionary of key/value pairs where the key is the workflow instance id and the value is a list of task names that are queued for the workflow. |
| workflowId | object | Contains workflow/id lookup table. Each workflow is associated with an id that can be specified when initiating a workflow. This table is used for looking up workflow and id associations. Object is a dictionary of key/value pairs where the key is the workflow instance id and the id is the id specified when the workflow was instantiated. |

#### TaskComplete

Triggered when a task completes. It includes all current task information.

**Version:**  5.2

| Name | Type | Description |
| - | - | - |
| \* | \* | Basic task info. |
| status | \* | All task status properties. |
| successful | boolean | If *true* , the task was successful, *false* otherwise. |
| cancelled | boolean | If *true* , the task was cancelled, *false* otherwise. |

#### TaskError

Triggered when a task has an error. It includes all current task information.

**Version:**  5.2

| Name | Type | Description |
| - | - | - |
| \* | \* | Basic task info. |
| status | \* | All task status properties. |
| errors | list | List of errors. |

#### TaskStart

Triggered when a task starts. It includes all current task information.

**Version:**  5.2

#### TaskStatus

Triggered when a task's status changes. It includes all current task information.

**Version:**  5.2

| Name | Type | Description |
| - | - | - |
| \* | \* | Basic task info. |
| status | \* | All task status properties. |

#### TaskWarning

Triggered when a task has an warning. It includes all current task information.

**Version:**  5.2

| Name | Type | Description |
| - | - | - |
| \* | \* | Basic task info. |
| status | \* | All task status properties. |
| warnings | list | List of warnings. |

## WorkflowRun

### Complete

Triggered when a workflow is complete.

**Version:**  5.1

#### Start

Trigger to add a new workflow.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| filename | string | Filename of the workflow JSON. |
| \* | object | Workflow JSON object. |

#### Stop

Trigger to remove a workflow.

**Version:**  5.1

| Name | Type | Description |
| - | - | - |
| workflow | string | Instance Id of the workflow to remove. |
| errors | array | Contains a list of errors occurred. |
| warnings | array | Contains a list of warnings that occurred. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.