dartactyl 1.11.1  dartactyl: ^1.11.1 copied to clipboard
dartactyl: ^1.11.1 copied to clipboard
An API client wrapper for Pterodactyl Panel. Following V1 for now.
CHANGELOG #
1.11.1 #
- FileObject.size is now a Bytes
1.11.0 #
- Increased the minimum SDK version to 3.3.0
- Added the Bytes extension type, so that it can be easily targeted by extensions
- Removed ConnectionState.closing and WebSocketClosedError
1.10.0 #
- Update dependencies
- Replaced instances of dynamicwithObject?
- Added reinstallFailedtoServerStatus
- Have WebsocketDetailsuse aUri
- Improve the translation client
- ServerWebsocket has some changes
- You can now optionally not auto-connect to it
- Calling any action or awaiting readywill connect it
- disconnect()will disconnect without closing, allowing reuse
- close()will fully close and dispose the class entirely
 
- Remove deprecated Actor
- Remove SerializableMixinin favor ofgenericArgumentFactories
- Deprecate typedefs
- [BREAKING] Remove a bunch of extensions. use .attributes/.datainstead, or define your own extensions
- Make StatsResources.uptimenon-nullable and default to -1
1.9.0 #
- Require dart 3 to seal the following
- Meta
- ServerWebsocketRemoteEvent
- WebsocketEvent
- ServerWebsocketEvent
- DartactylWebsocketException
- WingsException
- WebsocketLog
 
1.8.0 #
- Update to match newest Dio version
- Actually use Dio errors correctly (breaking)
- This does mean that errors from this package are no longer DioExceptions
 
- This does mean that errors from this package are no longer 
1.7.0 #
- Nuked existing websocket implementation. Bye and tanks for all the ππ¦!
- Moved to using a Streamwrapper instead of relying on a Cubit for the websocket
 
- Moved to using a 
- Fixed a few models
- Removed most deprecated parameters, types, and values
1.6.10-dev.2 #
- fix ServerSubuser two factor parameter
1.6.10-dev #
- Use VeryGoodVentures' lint rules
- Rename FractalResponseDatatoFractalData(which implementsFractal)- It is now a Freezed Class
 
- Rename FractalResponseListtoFractalDataList(which implementsFractalList)- It is now a Freezed Class
 
1.6.9 #
- Add monthtoRequestSchedule
1.6.8 #
- Add monthtoCron
1.6.7 #
- Changed Egg.uuid to be nullable. This can happen if the egg was changed and the server is still using the old one.
1.6.6 #
- Changed ActivityLog.ip to be nullable, as non-admins may not always see the ip
1.6.5 #
- Deprecated Account.admin in favor of Account.isAdmin
- Attempted to improve the error class
- Fix all network/allocation related endpoints
- Add toString implementation to Fractal and FractalList
- Made filter related classes non private (for example, so you can use a switch case with the enum of available filters)
1.6.4 #
- Added serialization checks so that issues with the source data can be more easily found
- Also made sure everything had a private constructor for consistency
1.6.3 #
- Added object-based filters in order to cut down on unnecessarily many filter parameters.
- Those filter parameters are now deprecated
 
- Moved the dio getter for the PteroClient into an extension so you can optionally show PteroClientVisibleDioif you don't want to be able to directly mess with the dio instance
1.6.2 #
- Updated Renameclass to support changing the server description
1.6.1 #
- Added onReceiveProgressto complementonSendProgress, also @experimental- This may be most useful on the pull file endpoint
 
1.6.0 #
- Renamed onProgresstoonSendProgressto properly indicate its usage.- Also annotated it with @experimental until its use case is better understood
 
1.5.1 #
- Add cancelTokenandonProgressto all methods (I can't believe I didn't know this was an option.)- This allows you to use a CancelTokento cancel api calls, and read the current progress of the call
 
- This allows you to use a 
- Removed experimental (and outdated) login methods. I may come back to this later.
1.5.0 #
- const all the things, where possible.
- Get work done for Application Client. some of it might even work
- Renamed User to Account
- Renamed Actor to User. Yes this will get confusing. Yes this is breaking.
1.4.12 #
- Correct the Websocket Handler's init() forward function to use Future like the cubit does
1.4.11 #
- Added restoreBackup
- Renamed lockBackuptotoggleBackupLockto better indicate its functionality
- Some other misc stuff your IDE will direct you to
- Added a Translation Client, for those of you who need it, not that it supports anything other than enanyway
1.4.10 #
- Murdered all existence of "null_resource" in all responses, making them just null, instead of a useless serializer-breaking object through the use of an interceptor
1.4.9 #
- Added a lastKnownPowerStateto the websocket cubit. may or may not stay
1.4.8 #
- Fix Subuser
1.4.7 #
- Fix ActivityLog.properties
1.4.6 #
- improved websockethandling a little
1.4.5 #
- backup-related methods should now be fully functional
- listServerDatabasesnow has pagination
1.4.4 #
- fix more ActivityLogstuff
1.4.3 #
- fix ActivityLog
1.4.2 #
- added activity log stuff
- improved includes
- updated deleteSshKeyto work with new versions, as well as keeping the old method
- updated FileObject
1.4.1 #
- added lockBackup
- updated server websocket extensions
- updated dependencies
1.4.0 #
- bump release
- fixed an issue with the websocket cubit trying to emit new states after its closed
1.4.0-dev.21 #
- renames uploadFiletogetFileUploadUrl
- adds ServerStateConflictExceptionerror code and specifies anUNKNOWNwhen not in list
1.4.0-dev.20 #
- Fix CreateSshKeymodel
1.4.0-dev.19 #
- added pullFile,createSshKey,listSshKeys, andchmodFile
1.4.0-dev.18 #
- Updated models so that listDockerImagesactually works
1.4.0-dev.17 #
- Add listDockerImagesconvenience method
1.4.0-dev.16 #
- Fix the error handler
1.4.0-dev.15 #
- Fix Pterodactyl v1.7 support
- Fix Websocket registerListeners not supporting multiple registrations
1.4.0-dev.14 #
- Add Pterodactyl v1.8 support
1.4.0-dev.13 #
- Add websocket handler ServerWebsocketCubitand websocket convenience classServerWebsocketHandler
1.4.0-dev.12 #
- Fix deleteFiles
1.4.0-dev.11 #
- Maybe fix writeFileandFractalResponseList
1.4.0-dev.10 #
- Fix FileObject
1.4.0-dev.9 #
- Remove origin header
1.4.0-dev.8 #
- createApiKeynow includes the token secret
1.4.0-dev.7 #
- Fix ApiKeymodel to make last_used_at nullable
1.4.0-dev.6 #
- Fix ServerFeatureLimits
1.4.0-dev.5 #
- Forget it. Separate classes it is.
1.4.0-dev.4 #
- FileListConverterwas the previous bug. still not working. just gonna throw- UnimplementedErrorfor now
1.4.0-dev.3 #
- Another minor bug that hardly needs mentioning
- A JsonConverter was being used wrong
 
1.4.0-dev.2 #
- Type related bug... PteroDataneeded to requireSerializableMixin, soSerializableMixinneeded to be onWebsocketDetails
1.4.0-dev.1 #
- Accidentally made FractalServer.serverno longer work. Fixed now.
1.4.0-dev.0 #
- Make all models @freezedwhere possible
- Add annotations to better represent certain things
- Adjust some models (like Server) to better represent the api
- Make Metainto multiple classes to enforce typed responses
- Make Metaonly show where it should, and made it non-nullable.
1.3.9-dev.0 #
- Refactored the generated files into their own folder, cause thats apparently possible
- Removed the cookie manager in order to allow web use.
- Add dio_cookie_manageryourself to make use of it.
1.3.8 #
- Fixed 419 error in login()
1.3.7 #
- Fixed getServerDetails
1.3.6 #
- JsonMaptypedef now used anywhere- Map<String, dynamic>was, not including generated files
- getSiteConfiguration()and- getPterodactylUser()added to the client
- getSiteConfiguration()works without needing to be logged in
1.3.5 #
- null_resourceis a thing apparently.
- Fixed fromJsonserialization forFractalListbecause json_serializable doesn't know wtf to do with this
1.3.4 #
- Apparently I forgot to make lista valid option, makingFractalResponseListnever work.
1.3.3 #
- Apparently I need to commit generated files?
1.3.2 #
- Removed with SerializableMixinon stuff that doesn't actually need it, as its only used to make serialization easier in-package. May give to everything with atoJsonin the future, but its not necessary for now
- Added a bunch of extensions using those same type aliases
- FractalServernow has a- servergetter (ie- fractalServer.server=>- Server)
- FractalServerListnow has a- serversgetter (ie- fractalServerList.servers=>- List<Server>)
1.3.1 #
- Bump min SDK version to 2.13.0 so that I can use type aliases. So much nicer...
- A bunch of new type aliases like FractalServer
1.3.0 #
- Added Query parameters like includes
- getServersis now more powerful with- typeand- filter[ ]
- Renamed a bunch of stuff
- getPermissions->- getSystemPermissions
- A bunch of parameters like serverare now suffixed byId(ex:serverId)
- Anything that returns a FractalResponseListis now prefixed bylistinstead ofget(ie.getServers->listServers)
1.2.2 #
- Barrels apparently don't work. Why?
1.2.1 #
- Start adding tests.
- Fix import issue?
1.2.0 #
- Cleaner JSON Serialization
- Error Handling YAY
- Make it so anything with a .toJson()is a member of theSerializableMixinclass to make generic calls possible
- Moved around some files
1.1.7 #
- Fix an issue with toJson()on a couple models
- Fix PteroClient.mock()(needed to include thehttps://-.-)
- Add example using PteroClient.mock()
1.1.6 #
- Add PteroClient.mock()for testing
- Uses mockapi.ptero.shwhich itself wraps the https://pterodactyl.stoplight.io mock server in a way that works with this client, as/api/clientis hardcoded
- (!!SERVER NOT COMPLETED AS OF WRITING THIS!!)
1.1.5 #
- Add missing updateDockerContainer
1.1.4 #
- Add a utility extension for the Server, such as getting the docker images on the object directly
1.1.3 #
- Add a utility extension for the client
1.1.2 #
- Add dockerImagestoMetaas thats apparently where it shows up.
1.1.1 #
- Make it possible to disable the automatic CookieJar so you can put your own
1.1.0 #
- REMOVED PteroClientConfigandcreatePteroClient()
- Instead, use PteroClient.generate()
- Made it possible to use cookies instead of Api Key by simply omitting the key in the PteroClient.generate() constructor
- Added login(), which is only possible if you are in cookie mode!
- Conveniently, I will take you out of Key mode and into Cookie mode for you!
- Added the inverse of login();logout(). also takes you out of key mode- but wont work in key mode anyway so...
- Added an interceptor to do mentioned "taking out of key mode"
- Updated dependencies
1.0.12 #
- Add Originheader. hopefully it works.
1.0.11 #
- ACTUALLY fix cpuAbsoluteinStats
1.0.10 #
- Fix cpuAbsoluteinStats
1.0.9 #
- Renamed ServerStatetoServerPowerState
- Renamed SignalTypetoServerPowerAction
1.0.8 #
- Minor changes and formatting
1.0.7 #
- Renamed ScheduletoRequestSchedule
- Updated Backupto hopefully be more accurate
1.0.6 #
- Renamed
deleteApiKeys=>deleteApiKey
1.0.5 #
- ServerStatus?enum instead of a- String?
- Add fields to CronandServerSchedule
- Minor import adjustments
- Apparently FractalResponseList's data can get a null object...
1.0.4 #
- Improve error files further
- Make ServerStatus an enum for current server status
- Add nameto Cron
1.0.3 #
- Split error files, and made PteroError.codean enum
- Added PteroError.statusCodegetter which returns anint?, though it should never be null
1.0.2 #
- Updated createPteroClientto not set thebaseUrldirectly inPteroClient, so that it could be changed in the user-providedDioinstance
- Formatted imports, and removed redundant models.dart
1.0.1 #
- Add an optional [dio]parameter tocreatePteroClient(config, dio: Dio())
1.0.0 #
- Initial version.