Repository navigation
v0.9.0 — FoxNose Files
This release adds FoxNose Files: upload links, a file's analysis and review, downloads, the files policy and the review queue on the management clients, and upload signatures and upload status on the Flux clients, with typed models and errors. Everything is available on both the sync and the async client.
Added
- FoxNose Files on
ManagementClientandAsyncManagementClient, with typed responses:- Upload links:
list_upload_links,create_upload_link,get_upload_link,revoke_upload_link. - A record's file:
get_file_analysis,approve_file,reject_file,reanalyze_file. - Short-lived download links:
get_file_original,get_file_safe_copy,get_file_page, andget_file_page_detailfor one page's image, withheld regions, tables and text. - Collection and environment:
list_file_tombstones,get_files_policy,update_files_policy,list_file_review_queue.
- Upload links:
- File uploads on
FluxClientandAsyncFluxClient:create_upload_signatureandget_upload_status, withUploadSignatureandUploadStatusmodels.repr()of anUploadSignatureleaves out its credentials. patch_organization,patch_collectionandpatch_componenton both Management clients write only the fields they are given.get_my_permissionson both Management clients reads what the caller may do in the environment, withMyPermissions,ContentTypeAccessandEnvironmentAccessmodels.RevisionSummary.schema_version_numberandRevisionSummary.file.ResourceSummarycarriesname_is_autoandfile, and on a record of a files collectionowner,status,progress,analysis_state,thumbnail_url,file_info,verdictandverdict_reasons.FileFinding.text_evidenceparses the text ahidden_textorlow_legibility_textfinding holds, withFileTextEvidence.partsfor the text of each zone.OrganizationSummary.is_verifiedandverification_method.FilesQuotaExceeded(HTTP 402files_quota_exceeded), a subclass ofFoxnoseAPIError, withaxis,reason,used_units,included_units,cap_usd,window_resets_at,upgrade_urlandraise_cap_url.FilesQuotaUnavailable(HTTP 503files_quota_unavailable) withretry_after.FileDownloadOptions.origin(FileOrigin): where a record's file came from.ResourceSummary.guardrailsandRevisionSummary.guardrails: the trust summary where the API computes one.repr()of the Files models leaves out credentials, signed URLs, a file's own text and an uploader's personal data.
Changed
RevisionSummary.schema_versionisstr | None: it isNonewhen the schema version is gone.