This PR updates StandardCyborgNetworking to use version 2 of the StandardCyborg API (which is necessary for supporting team-based actions).
Changes include:
DefaultServerAPIClient now holds references to credentials for a user's personal credentials and team credentials (note for now only a user can only be logged into one team at a time)
Uses a custom extension on Codable to support generic encoding/decoding of JSON types from the API.
This is necessary to support the metadata field of ServerScanAttachment
Refactors how server credentials are persisted to disk
Fixes some issues around Codable serialization for object properties that aren't required by the API
Updates ServerScan object and adds ServerScanAttachment model
Removes localURL prop in S3UploadInfo so it can be used for serialization (this was a bit confusing because localURL wasn't ever sent to the server and was only necessary while the file was uploading).
Please review after #2.
This PR updates StandardCyborgNetworking to use version 2 of the StandardCyborg API (which is necessary for supporting team-based actions).
Changes include:
metadata
field ofServerScanAttachment
ServerScan
object and addsServerScanAttachment
modellocalURL
prop inS3UploadInfo
so it can be used for serialization (this was a bit confusing becauselocalURL
wasn't ever sent to the server and was only necessary while the file was uploading).