Add a job to the job queue. Automatically determines whether to add a utility or analysis job based on the gear category.
Promise that resolves with the job ID
Send an arbitrary HTTP request to the Flywheel API via the frontend proxy.
The path must start with /api/ — other prefixes will be rejected by the host.
The caller is responsible for providing the correct return type T.
Requires ReadWrite scope for non-GET requests.
HTTP method
API path, must start with /api/
Optionalparams: Record<string, unknown>
Optional query parameters
Optionalbody: unknown
Optional request body
Signal to Flywheel that this application is ready to close, and terminate the message channel.
Execute an ad-hoc view, returning data in the preferred format.
ID of the container
Object specifying the criteria of a DataView to be created.
Get information about the files within an archive file.
Archive file instance
Get a list of containers that are children of the given parent container, of a given type, and matching a query if provided.
Parent container
Type of child container to retrieve
Search parameters
A pagination response with current and total items
Get a container in the hierarchy.
Type of the container
ID of the container
Get the set of permission actions that the user can take on a container.
Container in the hierarchy
Get a file record by unique ID.
file_id that identifies the file across the Flywheel site
Additional options, such as a specific version of the file
File record
Get the contents of a file as a binary Blob.
File instance
Optionaloptions: FileGetOptions
Options for this action
Container that the file is attached to
Optionaloptions: FileGetOptionsGet the contents of a file as a string.
File instance
Optionaloptions: FileGetOptions
Options for this action
Container that the file is attached to
Optionaloptions: FileGetOptionsGet a parameterized URL to a file that will expire in a limited amount of time.
File instance
Optionaloptions: FileGetOptions
Options for this action
Container that the file is attached to
Optionaloptions: FileGetOptionsGet a job by ID.
ID of the job
Promise that resolves with the Job object
Get a role by ID.
ID of the role
Promise that resolves with the Role object
Get a list of containers of a certain type, and matching a query if provided.
Type of container to retrieve
Search parameters
A pagination response with current and total items
Get a list of gears on an instance, matching a query if provided.
Search parameters
A pagination response with current and total items
Get a setting associated to a container in the hierarchy.
ID of the container. Defaults to 'site'
Key of the setting
Update the custom info of a container.
Container instance
Object specifying which info keys to set or delete, or a total replace object
Update the custom info of a file.
File instance
Object specifying which info keys to set or delete, or a total replace object
Container that the file is attached to
Update the height and/or width of the extension frame.
Viewport dimensions
Upload a file to a container. Upload progress is emitted as observable events.
Use .toPromise() on the return value to get a Promise that resolves when
the upload is complete.
Container that the file will be attached to
File instance from an <input> element or FileList
Optionalfilename?: stringOverride the name of the file, default to source filesystem name
OptionalpreserveMetadata?: booleanCopy info metadata from latest version to the new file version, if there is an existing version of the file. Available from Flywheel 16.8.0.
Observable that emits upload progress events
Upload a string back to the component which instantiated this extension. Used for editing strings in place without an associated file.
String contents to be passed back to Flywheel Available from Flywheel 17.4.0
Promise signaling completion of upload
Wait for Flywheel to connect to this application.
Update a setting for the given container in the hierarchy.
ID of the container. Defaults to 'site'
Key of the setting
Value of the setting
Includes user configurable parameters added to Viewer Registration, as well as fileIds from Flywheel.
See ViewerParameters for more details