unofficial_capacities 0.3.1 copy "unofficial_capacities: ^0.3.1" to clipboard
unofficial_capacities: ^0.3.1 copied to clipboard

An unofficial Dart client for the Capacities REST API (https://developers.capacities.io), built on dio.

0.3.0 #

  • BREAKING: Block is now a sealed union matching the official @capacities/api ApiBlockTextBlock, CodeBlock, GridBlock (tables), GroupBlock, MathBlock, EntityBlock, HorizontalLineBlock, and an UnsupportedBlock fallback for unknown types. Field access moves onto the arms (e.g. TextBlock.tokens, CodeBlock.text/lang, GridBlock.columns). Construct concrete arms (TextBlock(...), CodeBlock(...)) instead of Block(type: ...).
  • Added a sealed Token union (TextToken with typed TokenStyle, LinkToken, MathToken, CodeToken, UnsupportedToken); TextBlock.tokens is now List<Token>.
  • Unknown block/token types round-trip losslessly via the Unsupported* fallbacks rather than dropping data.

0.2.0 #

  • Block now models CodeBlock content: added optional text and lang fields (read and written when present), so callers can create/read code blocks — e.g. single-line code blocks. TextBlock serialization is unchanged.

0.1.0 #

  • Initial release: CapacitiesClient covering all 9 Capacities REST API endpoints (space, object, search, blocks) with typed DTOs, Bearer auth, X-Capacities-Api-Version header handling, and typed CapacitiesApiException error mapping.
0
likes
135
points
8
downloads

Documentation

API reference

Publisher

verified publisherapplewood.sarl

Weekly Downloads

An unofficial Dart client for the Capacities REST API (https://developers.capacities.io), built on dio.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio

More

Packages that depend on unofficial_capacities