Skip to content

v0.6.0

Choose a tag to compare

@loookashow loookashow released this 21 Jul 09:11
· 32 commits to main since this release
9fed6dc

foxnose-sdk 0.6.0

Warning

Breaking changes. This release renames the Folder API to Collection and
removes composite folder support. The old *_folder* methods still work as
deprecated aliases (removed in 1.0) — see Migration below.

Added

  • Typed billing exceptions in foxnose_sdk.errors, all subclasses of FoxnoseAPIError
    and exported from the package root (caught by except FoxnoseAPIError):
    • SpendCapExceeded (402 spend_cap_reached) — cap_usd, cycle_resets_at, raise_cap_url
    • PlanExhausted (402 plan_exhausted) — axis, window_resets_at, upgrade_url
    • PlanLimitExceeded (403 plan_limit_exceeded) — entity, limit, current, upgrade_url
    • RateLimitExceeded (429 rate_limited) — retry_after (from the Retry-After header)
  • Components on Collections — NestedFieldMeta helper for building nested-field meta
    (component, component_version, auto_update), and sync_collection_component() on
    ManagementClient / AsyncManagementClient to advance pinned nested fields to a target
    Component version. New models SyncComponentResponse, SyncComponentSkippedItem,
    ComponentSyncConflictDetail.

Changed

  • Renamed Folder → Collection across the Management API surface. New *_collection*
    methods (list_collections, create_collection, list_collection_versions,
    list_collection_fields, …) and models (CollectionSummary, CollectionList,
    APICollectionSummary, APICollectionList) are the preferred names. The old *_folder*
    methods and FolderSummary / FolderList remain as deprecated aliases that emit a
    one-shot DeprecationWarning on first use and will be removed in 1.0.

Removed

  • Composite folder support.

Fixed

  • RolePermission.all_objects is now optional (bool | None), so permissions for
    non-object-based content types (returned by the API as all_objects: null) parse
    without error.
  • Corrected the roles_and_permissions example and docs to the real permission wire-shape
    (content_type + actions list, all_objects only on object-based content types), the
    renamed content-type keys (collection-structure / collection-items in place of
    folder-*), and the real API-key create shape (description + a single role).

Migration

  • Replace *_folder* calls with their *_collection* equivalents; old names still work but
    emit a DeprecationWarning and are removed in 1.0.
  • Content-type keys folder-structure / folder-items → collection-structure / collection-items.
  • Remove any usage of composite folders.

Full changelog: v0.5.0...v0.6.0