Skip to content

0.9.0

Compare
Choose a tag to compare
@makoni makoni released this 20 Oct 21:26
· 10 commits to master since this release
d16065b

This release is a result of REST API update to a new version. Read more about it here.

New:

  • Using REST API version 0.7.
  • Minimum required Swift version is now 5.5.
  • Metadata dictionary can be provided for direct, multipart and primary upload methods.
  • Metadata dictionary can be provided for Upload from URL method.
  • fileInfo method of REST API accepts query string or FileInfoQuery struct that allows to include additional fields in the response data.
  • fileMetadata method added to get file's metadata dictionary.
  • fileMetadataValue method added to get metadata key's value.
  • updateFileMetadata method added to update/create metadata key's value.
  • deleteFileMetadata method added to delete metadata key.
    • deleteGroup method to delete a file group by its ID.
  • REST API: new methods executeAWSRecognition, checkAWSRecognitionStatus, executeClamav, checkClamAVStatus, executeRemoveBG and checkRemoveBGStatus for Add-Ons feature (check Add-Ons docs for more details).
  • File model:
    • New property: metadata dictionary.
    • New property: appData (Application names and data associated with these applications. Check Add-Ons section of REST API).
    • New property: contentInfo that contains image/video metadata and MIME type.
  • UploadedFile model:
    • New property: done (Same as size according API docs).
    • New property: contentInfo that contains image/video metadata and MIME type.
    • New property: metadata dictionary.

Changed:

  • Fixed: type of channels property of AudioMetadata model is now Int.
  • File model:
    • Updated: VideoInfo model's properties audio and video are arrays now that contains metadata of audio and video tracks of the file.

Removed:

  • storeGroup method is unavailable (removed on API side). To store or remove files from a group, query the list of files in it, split the list into chunks of 100 files per chunk and then perform batch file storing or batch file removal for all the chunks.
  • Removed sorting by size from pagination query for getting list of files (removed on API side).
  • File model:
    • Removed: imageInfo and videoInfo (replaced with new contentInfo property).
    • Removed: rekognitionInfo.