Repository navigation
v0.6.0
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 ofFoxnoseAPIError
and exported from the package root (caught byexcept FoxnoseAPIError):SpendCapExceeded(402spend_cap_reached) —cap_usd,cycle_resets_at,raise_cap_urlPlanExhausted(402plan_exhausted) —axis,window_resets_at,upgrade_urlPlanLimitExceeded(403plan_limit_exceeded) —entity,limit,current,upgrade_urlRateLimitExceeded(429rate_limited) —retry_after(from theRetry-Afterheader)
- Components on Collections —
NestedFieldMetahelper for building nested-fieldmeta
(component,component_version,auto_update), andsync_collection_component()on
ManagementClient/AsyncManagementClientto advance pinned nested fields to a target
Component version. New modelsSyncComponentResponse,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 andFolderSummary/FolderListremain as deprecated aliases that emit a
one-shotDeprecationWarningon first use and will be removed in 1.0.
Removed
- Composite folder support.
Fixed
RolePermission.all_objectsis now optional (bool | None), so permissions for
non-object-based content types (returned by the API asall_objects: null) parse
without error.- Corrected the
roles_and_permissionsexample and docs to the real permission wire-shape
(content_type+actionslist,all_objectsonly on object-based content types), the
renamed content-type keys (collection-structure/collection-itemsin place of
folder-*), and the real API-key create shape (description+ a singlerole).
Migration
- Replace
*_folder*calls with their*_collection*equivalents; old names still work but
emit aDeprecationWarningand 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