syncsdk 0.4.0__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {syncsdk-0.4.0 → syncsdk-0.5.0}/PKG-INFO +1 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/pyproject.toml +1 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/__init__.py +104 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/__init__.py +4 -0
- syncsdk-0.5.0/src/sync/account/client.py +182 -0
- syncsdk-0.5.0/src/sync/account/raw_client.py +334 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/__init__.py +4 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_active_jobs.py +1 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_credits.py +1 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_free_allowance.py +2 -2
- syncsdk-0.5.0/src/sync/account/types/account_organization_list_item.py +26 -0
- syncsdk-0.5.0/src/sync/account/types/account_organizations.py +20 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_overview.py +12 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/assets/client.py +380 -9
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/assets/raw_client.py +863 -165
- syncsdk-0.5.0/src/sync/audio_trims/client.py +246 -0
- {syncsdk-0.4.0/src/sync/transcriptions → syncsdk-0.5.0/src/sync/audio_trims}/raw_client.py +128 -117
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/batch/client.py +14 -14
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/batch/raw_client.py +97 -15
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/client.py +4 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/__init__.py +72 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/__init__.py +8 -0
- syncsdk-0.5.0/src/sync/common/errors/audio_trim_too_many_requests_error.py +9 -0
- syncsdk-0.5.0/src/sync/common/errors/link_import_in_progress_error.py +9 -0
- syncsdk-0.5.0/src/sync/common/errors/link_import_too_many_requests_error.py +9 -0
- syncsdk-0.5.0/src/sync/common/errors/speaker_analysis_too_many_requests_error.py +9 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/__init__.py +64 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/active_speaker.py +3 -3
- syncsdk-0.5.0/src/sync/common/types/analyze_speakers_request.py +38 -0
- syncsdk-0.5.0/src/sync/common/types/asset_audio_source.py +5 -0
- syncsdk-0.5.0/src/sync/common/types/asset_ids.py +5 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/audio.py +2 -2
- syncsdk-0.5.0/src/sync/common/types/audio_trim.py +56 -0
- syncsdk-0.5.0/src/sync/common/types/audio_trim_status.py +5 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/batch_concurrency_error.py +2 -9
- syncsdk-0.5.0/src/sync/common/types/batch_get_assets_request.py +23 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/create_asset_request.py +8 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/create_asset_upload_request.py +1 -1
- syncsdk-0.5.0/src/sync/common/types/create_audio_trim_dto.py +49 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/create_dialogue_edit_dto.py +2 -2
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/create_generation_dto.py +3 -3
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/create_project_request.py +1 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/create_transcription_dto.py +2 -2
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_change.py +1 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_error.py +15 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_error_code.py +2 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_failed_slot.py +4 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_job.py +2 -2
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dub_dto.py +21 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dub_language.py +17 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dub_source_language.py +17 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/estimate_cost_request.py +1 -1
- syncsdk-0.5.0/src/sync/common/types/find_uploaded_asset_response.py +23 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation.py +21 -5
- syncsdk-0.5.0/src/sync/common/types/generation_count.py +19 -0
- syncsdk-0.5.0/src/sync/common/types/generation_count_type.py +5 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_error.py +14 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_options.py +3 -3
- syncsdk-0.5.0/src/sync/common/types/generation_progress.py +71 -0
- syncsdk-0.5.0/src/sync/common/types/generation_progress_stage.py +5 -0
- syncsdk-0.5.0/src/sync/common/types/generation_source.py +20 -0
- syncsdk-0.5.0/src/sync/common/types/generation_status.py +7 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/image.py +1 -1
- syncsdk-0.5.0/src/sync/common/types/link_import_error.py +102 -0
- syncsdk-0.5.0/src/sync/common/types/link_import_status.py +7 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_generation_error.py +6 -1
- syncsdk-0.5.0/src/sync/common/types/project_generation_error_reason.py +5 -0
- syncsdk-0.5.0/src/sync/common/types/slice_speaker_face_track_request.py +54 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_analysis.py +72 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_analysis_speaker.py +59 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_analysis_status.py +5 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_avatar.py +40 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_avatar_box.py +26 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_face_support.py +46 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_face_support_interval.py +29 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_face_track.py +48 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_face_track_slice.py +22 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_face_track_slice_frames.py +29 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_match_evidence.py +45 -0
- syncsdk-0.5.0/src/sync/common/types/speaker_match_status.py +5 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcript.py +6 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcript_segment.py +10 -0
- syncsdk-0.5.0/src/sync/common/types/transcript_speaker.py +34 -0
- syncsdk-0.5.0/src/sync/common/types/transcript_speaker_label_flag.py +5 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcript_word.py +13 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcription_job.py +14 -1
- syncsdk-0.5.0/src/sync/common/types/transcription_job_estimate.py +58 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/tts.py +1 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/update_project_request.py +1 -1
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/video.py +3 -3
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/client_wrapper.py +2 -2
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/dialogue_edits/client.py +20 -8
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/dialogue_edits/raw_client.py +46 -9
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/errors/client.py +2 -2
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/errors/raw_client.py +2 -2
- syncsdk-0.5.0/src/sync/generation_costs/__init__.py +29 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/__init__.py +27 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/cost_availability.py +5 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/cost_component.py +46 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/cost_component_status.py +5 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/cost_component_type.py +5 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/cost_source.py +5 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/cost_unit.py +5 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/cost_value_basis.py +5 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/generation_costs.py +60 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/generation_costs_api_key.py +28 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/generation_costs_list.py +32 -0
- syncsdk-0.5.0/src/sync/generation_costs/types/generation_costs_list_item.py +47 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/generations/client.py +352 -43
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/generations/raw_client.py +553 -53
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/projects/client.py +6 -6
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/projects/raw_client.py +6 -6
- syncsdk-0.5.0/src/sync/transcriptions/client.py +603 -0
- syncsdk-0.5.0/src/sync/transcriptions/raw_client.py +1115 -0
- syncsdk-0.5.0/src/sync/voices/__init__.py +2 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/voices/client.py +12 -12
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/voices/raw_client.py +94 -14
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/webhooks/types/generation_notification.py +17 -2
- syncsdk-0.5.0/src/sync/webhooks/types/webhook_status.py +5 -0
- syncsdk-0.4.0/src/sync/account/client.py +0 -101
- syncsdk-0.4.0/src/sync/account/raw_client.py +0 -135
- syncsdk-0.4.0/src/sync/common/types/generation_status.py +0 -5
- syncsdk-0.4.0/src/sync/transcriptions/client.py +0 -258
- syncsdk-0.4.0/src/sync/webhooks/types/webhook_status.py +0 -5
- {syncsdk-0.4.0 → syncsdk-0.5.0}/README.md +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_allowance_usage.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_billing_model.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_billing_period.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_credential_type.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_limits.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_organization.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_plan.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/account/types/account_user.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/assets/__init__.py +0 -0
- {syncsdk-0.4.0/src/sync/batch → syncsdk-0.5.0/src/sync/audio_trims}/__init__.py +0 -0
- {syncsdk-0.4.0/src/sync/dialogue_edits → syncsdk-0.5.0/src/sync/batch}/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/bad_request_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/conflict_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/forbidden_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/gateway_timeout_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/generation_deleted_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/generation_too_many_requests_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/internal_server_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/not_found_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/payload_too_large_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/payment_required_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/service_unavailable_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/too_many_requests_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/unauthorized_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/unprocessable_entity_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/errors/voice_clone_too_many_requests_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/asset.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/asset_id.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/asset_input_type.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/asset_sort.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/asset_type.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/asset_upload_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/asset_visibility.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/attach_project_asset_request.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/batch_id.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/batch_metrics.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/batch_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/batch_row.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/batch_status.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/blending_mode.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/cloned_voice_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/create_batch_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/create_tts_request.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/create_voice_request.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/creator_workflow.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/delete_asset_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/delete_project_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_job_id.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_job_status.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_operation.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_partial_detail.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_reference.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_removal.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_result_slot.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_result_slot_kind.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dialogue_edit_retime_failure_section.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/dub_provider_name.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/eleven_labs.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/emotion.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/error_catalog_entry.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/estimate_breakdown.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/estimate_dubbing_billing.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/estimate_dubbing_part.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/estimate_duration_check.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/estimate_lipsync_part.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/estimate_workflow.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/estimated_generation_cost.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_concurrency_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_error_message.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_estimate.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_estimate_confidence.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_estimate_resolution_source.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_estimate_scope.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_estimate_source.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_id.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/generation_segment.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/input.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/model.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/model_info.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/model_mode.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/output_audio.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/output_format.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/paginated_assets_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/paginated_projects_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_generation.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_generation_input.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_generation_model.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_generation_provider.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_generation_segment.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_id.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_list_item.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_mode.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_sort.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/project_visibility.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/segment_audio_input.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/segment_frames.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/segment_options_override.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/segment_secs.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/sync_mode.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcription_difficulty.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcription_difficulty_reason.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcription_difficulty_tier.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcription_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcription_error_code.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcription_job_id.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/transcription_job_status.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/tts_generation_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/tts_job.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/tts_job_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/tts_job_error_code.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/tts_job_status.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/tts_provider_config.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/update_asset_request.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/validation_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/voice.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/voice_clone_rate_limit_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/voice_provider.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/common/types/voice_restriction.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/api_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/datetime_utils.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/file.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/http_client.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/http_response.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/jsonable_encoder.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/pydantic_utilities.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/query_encoder.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/remove_none_from_dict.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/request_options.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/serialization.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/core/unchecked_base_model.py +0 -0
- {syncsdk-0.4.0/src/sync/errors → syncsdk-0.5.0/src/sync/dialogue_edits}/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/environment.py +0 -0
- {syncsdk-0.4.0/src/sync/generations → syncsdk-0.5.0/src/sync/errors}/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/client.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/errors/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/errors/feedback_too_many_requests_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/raw_client.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/types/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/types/feedback_client.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/types/feedback_kind.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/types/feedback_rate_limit_error.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/types/feedback_receipt.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/types/feedback_severity.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/feedback/types/feedback_source.py +0 -0
- {syncsdk-0.4.0/src/sync/models → syncsdk-0.5.0/src/sync/generations}/__init__.py +0 -0
- {syncsdk-0.4.0/src/sync/projects → syncsdk-0.5.0/src/sync/models}/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/models/client.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/models/raw_client.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/organizations/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/organizations/client.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/organizations/raw_client.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/organizations/types/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/organizations/types/webhook_secret_response.py +0 -0
- {syncsdk-0.4.0/src/sync/transcriptions → syncsdk-0.5.0/src/sync/projects}/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/py.typed +0 -0
- {syncsdk-0.4.0/src/sync/tts → syncsdk-0.5.0/src/sync/transcriptions}/__init__.py +0 -0
- {syncsdk-0.4.0/src/sync/voices → syncsdk-0.5.0/src/sync/tts}/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/tts/client.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/tts/raw_client.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/version.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/webhooks/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/webhooks/types/__init__.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/webhooks/types/batch_notification.py +0 -0
- {syncsdk-0.4.0 → syncsdk-0.5.0}/src/sync/webhooks/types/batch_notification_metrics.py +0 -0
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
from . import (
|
|
4
4
|
account,
|
|
5
5
|
assets,
|
|
6
|
+
audio_trims,
|
|
6
7
|
batch,
|
|
7
8
|
common,
|
|
8
9
|
dialogue_edits,
|
|
9
10
|
errors,
|
|
10
11
|
feedback,
|
|
12
|
+
generation_costs,
|
|
11
13
|
generations,
|
|
12
14
|
models,
|
|
13
15
|
organizations,
|
|
@@ -27,6 +29,8 @@ from .account import (
|
|
|
27
29
|
AccountFreeAllowance,
|
|
28
30
|
AccountLimits,
|
|
29
31
|
AccountOrganization,
|
|
32
|
+
AccountOrganizationListItem,
|
|
33
|
+
AccountOrganizations,
|
|
30
34
|
AccountOverview,
|
|
31
35
|
AccountPlan,
|
|
32
36
|
AccountUser,
|
|
@@ -34,8 +38,11 @@ from .account import (
|
|
|
34
38
|
from .client import AsyncSync, Sync
|
|
35
39
|
from .common import (
|
|
36
40
|
ActiveSpeaker,
|
|
41
|
+
AnalyzeSpeakersRequest,
|
|
37
42
|
Asset,
|
|
43
|
+
AssetAudioSource,
|
|
38
44
|
AssetId,
|
|
45
|
+
AssetIds,
|
|
39
46
|
AssetInputType,
|
|
40
47
|
AssetSort,
|
|
41
48
|
AssetType,
|
|
@@ -43,8 +50,12 @@ from .common import (
|
|
|
43
50
|
AssetVisibility,
|
|
44
51
|
AttachProjectAssetRequest,
|
|
45
52
|
Audio,
|
|
53
|
+
AudioTrim,
|
|
54
|
+
AudioTrimStatus,
|
|
55
|
+
AudioTrimTooManyRequestsError,
|
|
46
56
|
BadRequestError,
|
|
47
57
|
BatchConcurrencyError,
|
|
58
|
+
BatchGetAssetsRequest,
|
|
48
59
|
BatchId,
|
|
49
60
|
BatchMetrics,
|
|
50
61
|
BatchResponse,
|
|
@@ -55,6 +66,7 @@ from .common import (
|
|
|
55
66
|
ConflictError,
|
|
56
67
|
CreateAssetRequest,
|
|
57
68
|
CreateAssetUploadRequest,
|
|
69
|
+
CreateAudioTrimDto,
|
|
58
70
|
CreateBatchResponse,
|
|
59
71
|
CreateDialogueEditDto,
|
|
60
72
|
CreateGenerationDto,
|
|
@@ -96,10 +108,13 @@ from .common import (
|
|
|
96
108
|
EstimateLipsyncPart,
|
|
97
109
|
EstimateWorkflow,
|
|
98
110
|
EstimatedGenerationCost,
|
|
111
|
+
FindUploadedAssetResponse,
|
|
99
112
|
ForbiddenError,
|
|
100
113
|
GatewayTimeoutError,
|
|
101
114
|
Generation,
|
|
102
115
|
GenerationConcurrencyError,
|
|
116
|
+
GenerationCount,
|
|
117
|
+
GenerationCountType,
|
|
103
118
|
GenerationDeletedError,
|
|
104
119
|
GenerationError,
|
|
105
120
|
GenerationErrorMessage,
|
|
@@ -110,12 +125,19 @@ from .common import (
|
|
|
110
125
|
GenerationEstimateSource,
|
|
111
126
|
GenerationId,
|
|
112
127
|
GenerationOptions,
|
|
128
|
+
GenerationProgress,
|
|
129
|
+
GenerationProgressStage,
|
|
113
130
|
GenerationSegment,
|
|
131
|
+
GenerationSource,
|
|
114
132
|
GenerationStatus,
|
|
115
133
|
GenerationTooManyRequestsError,
|
|
116
134
|
Image,
|
|
117
135
|
Input,
|
|
118
136
|
InternalServerError,
|
|
137
|
+
LinkImportError,
|
|
138
|
+
LinkImportInProgressError,
|
|
139
|
+
LinkImportStatus,
|
|
140
|
+
LinkImportTooManyRequestsError,
|
|
119
141
|
Model,
|
|
120
142
|
ModelInfo,
|
|
121
143
|
ModelMode,
|
|
@@ -129,6 +151,7 @@ from .common import (
|
|
|
129
151
|
Project,
|
|
130
152
|
ProjectGeneration,
|
|
131
153
|
ProjectGenerationError,
|
|
154
|
+
ProjectGenerationErrorReason,
|
|
132
155
|
ProjectGenerationInput,
|
|
133
156
|
ProjectGenerationModel,
|
|
134
157
|
ProjectGenerationProvider,
|
|
@@ -143,10 +166,26 @@ from .common import (
|
|
|
143
166
|
SegmentOptionsOverride,
|
|
144
167
|
SegmentSecs,
|
|
145
168
|
ServiceUnavailableError,
|
|
169
|
+
SliceSpeakerFaceTrackRequest,
|
|
170
|
+
SpeakerAnalysis,
|
|
171
|
+
SpeakerAnalysisSpeaker,
|
|
172
|
+
SpeakerAnalysisStatus,
|
|
173
|
+
SpeakerAnalysisTooManyRequestsError,
|
|
174
|
+
SpeakerAvatar,
|
|
175
|
+
SpeakerAvatarBox,
|
|
176
|
+
SpeakerFaceSupport,
|
|
177
|
+
SpeakerFaceSupportInterval,
|
|
178
|
+
SpeakerFaceTrack,
|
|
179
|
+
SpeakerFaceTrackSlice,
|
|
180
|
+
SpeakerFaceTrackSliceFrames,
|
|
181
|
+
SpeakerMatchEvidence,
|
|
182
|
+
SpeakerMatchStatus,
|
|
146
183
|
SyncMode,
|
|
147
184
|
TooManyRequestsError,
|
|
148
185
|
Transcript,
|
|
149
186
|
TranscriptSegment,
|
|
187
|
+
TranscriptSpeaker,
|
|
188
|
+
TranscriptSpeakerLabelFlag,
|
|
150
189
|
TranscriptWord,
|
|
151
190
|
TranscriptionDifficulty,
|
|
152
191
|
TranscriptionDifficultyReason,
|
|
@@ -154,6 +193,7 @@ from .common import (
|
|
|
154
193
|
TranscriptionError,
|
|
155
194
|
TranscriptionErrorCode,
|
|
156
195
|
TranscriptionJob,
|
|
196
|
+
TranscriptionJobEstimate,
|
|
157
197
|
TranscriptionJobId,
|
|
158
198
|
TranscriptionJobStatus,
|
|
159
199
|
Tts,
|
|
@@ -185,6 +225,19 @@ from .feedback import (
|
|
|
185
225
|
FeedbackSource,
|
|
186
226
|
FeedbackTooManyRequestsError,
|
|
187
227
|
)
|
|
228
|
+
from .generation_costs import (
|
|
229
|
+
CostAvailability,
|
|
230
|
+
CostComponent,
|
|
231
|
+
CostComponentStatus,
|
|
232
|
+
CostComponentType,
|
|
233
|
+
CostSource,
|
|
234
|
+
CostUnit,
|
|
235
|
+
CostValueBasis,
|
|
236
|
+
GenerationCosts,
|
|
237
|
+
GenerationCostsApiKey,
|
|
238
|
+
GenerationCostsList,
|
|
239
|
+
GenerationCostsListItem,
|
|
240
|
+
)
|
|
188
241
|
from .organizations import WebhookSecretResponse
|
|
189
242
|
from .version import __version__
|
|
190
243
|
from .webhooks import BatchNotification, BatchNotificationMetrics, GenerationNotification, WebhookStatus
|
|
@@ -199,12 +252,17 @@ __all__ = [
|
|
|
199
252
|
"AccountFreeAllowance",
|
|
200
253
|
"AccountLimits",
|
|
201
254
|
"AccountOrganization",
|
|
255
|
+
"AccountOrganizationListItem",
|
|
256
|
+
"AccountOrganizations",
|
|
202
257
|
"AccountOverview",
|
|
203
258
|
"AccountPlan",
|
|
204
259
|
"AccountUser",
|
|
205
260
|
"ActiveSpeaker",
|
|
261
|
+
"AnalyzeSpeakersRequest",
|
|
206
262
|
"Asset",
|
|
263
|
+
"AssetAudioSource",
|
|
207
264
|
"AssetId",
|
|
265
|
+
"AssetIds",
|
|
208
266
|
"AssetInputType",
|
|
209
267
|
"AssetSort",
|
|
210
268
|
"AssetType",
|
|
@@ -213,8 +271,12 @@ __all__ = [
|
|
|
213
271
|
"AsyncSync",
|
|
214
272
|
"AttachProjectAssetRequest",
|
|
215
273
|
"Audio",
|
|
274
|
+
"AudioTrim",
|
|
275
|
+
"AudioTrimStatus",
|
|
276
|
+
"AudioTrimTooManyRequestsError",
|
|
216
277
|
"BadRequestError",
|
|
217
278
|
"BatchConcurrencyError",
|
|
279
|
+
"BatchGetAssetsRequest",
|
|
218
280
|
"BatchId",
|
|
219
281
|
"BatchMetrics",
|
|
220
282
|
"BatchNotification",
|
|
@@ -225,8 +287,16 @@ __all__ = [
|
|
|
225
287
|
"BlendingMode",
|
|
226
288
|
"ClonedVoiceResponse",
|
|
227
289
|
"ConflictError",
|
|
290
|
+
"CostAvailability",
|
|
291
|
+
"CostComponent",
|
|
292
|
+
"CostComponentStatus",
|
|
293
|
+
"CostComponentType",
|
|
294
|
+
"CostSource",
|
|
295
|
+
"CostUnit",
|
|
296
|
+
"CostValueBasis",
|
|
228
297
|
"CreateAssetRequest",
|
|
229
298
|
"CreateAssetUploadRequest",
|
|
299
|
+
"CreateAudioTrimDto",
|
|
230
300
|
"CreateBatchResponse",
|
|
231
301
|
"CreateDialogueEditDto",
|
|
232
302
|
"CreateGenerationDto",
|
|
@@ -275,10 +345,17 @@ __all__ = [
|
|
|
275
345
|
"FeedbackSeverity",
|
|
276
346
|
"FeedbackSource",
|
|
277
347
|
"FeedbackTooManyRequestsError",
|
|
348
|
+
"FindUploadedAssetResponse",
|
|
278
349
|
"ForbiddenError",
|
|
279
350
|
"GatewayTimeoutError",
|
|
280
351
|
"Generation",
|
|
281
352
|
"GenerationConcurrencyError",
|
|
353
|
+
"GenerationCosts",
|
|
354
|
+
"GenerationCostsApiKey",
|
|
355
|
+
"GenerationCostsList",
|
|
356
|
+
"GenerationCostsListItem",
|
|
357
|
+
"GenerationCount",
|
|
358
|
+
"GenerationCountType",
|
|
282
359
|
"GenerationDeletedError",
|
|
283
360
|
"GenerationError",
|
|
284
361
|
"GenerationErrorMessage",
|
|
@@ -290,12 +367,19 @@ __all__ = [
|
|
|
290
367
|
"GenerationId",
|
|
291
368
|
"GenerationNotification",
|
|
292
369
|
"GenerationOptions",
|
|
370
|
+
"GenerationProgress",
|
|
371
|
+
"GenerationProgressStage",
|
|
293
372
|
"GenerationSegment",
|
|
373
|
+
"GenerationSource",
|
|
294
374
|
"GenerationStatus",
|
|
295
375
|
"GenerationTooManyRequestsError",
|
|
296
376
|
"Image",
|
|
297
377
|
"Input",
|
|
298
378
|
"InternalServerError",
|
|
379
|
+
"LinkImportError",
|
|
380
|
+
"LinkImportInProgressError",
|
|
381
|
+
"LinkImportStatus",
|
|
382
|
+
"LinkImportTooManyRequestsError",
|
|
299
383
|
"Model",
|
|
300
384
|
"ModelInfo",
|
|
301
385
|
"ModelMode",
|
|
@@ -309,6 +393,7 @@ __all__ = [
|
|
|
309
393
|
"Project",
|
|
310
394
|
"ProjectGeneration",
|
|
311
395
|
"ProjectGenerationError",
|
|
396
|
+
"ProjectGenerationErrorReason",
|
|
312
397
|
"ProjectGenerationInput",
|
|
313
398
|
"ProjectGenerationModel",
|
|
314
399
|
"ProjectGenerationProvider",
|
|
@@ -323,12 +408,28 @@ __all__ = [
|
|
|
323
408
|
"SegmentOptionsOverride",
|
|
324
409
|
"SegmentSecs",
|
|
325
410
|
"ServiceUnavailableError",
|
|
411
|
+
"SliceSpeakerFaceTrackRequest",
|
|
412
|
+
"SpeakerAnalysis",
|
|
413
|
+
"SpeakerAnalysisSpeaker",
|
|
414
|
+
"SpeakerAnalysisStatus",
|
|
415
|
+
"SpeakerAnalysisTooManyRequestsError",
|
|
416
|
+
"SpeakerAvatar",
|
|
417
|
+
"SpeakerAvatarBox",
|
|
418
|
+
"SpeakerFaceSupport",
|
|
419
|
+
"SpeakerFaceSupportInterval",
|
|
420
|
+
"SpeakerFaceTrack",
|
|
421
|
+
"SpeakerFaceTrackSlice",
|
|
422
|
+
"SpeakerFaceTrackSliceFrames",
|
|
423
|
+
"SpeakerMatchEvidence",
|
|
424
|
+
"SpeakerMatchStatus",
|
|
326
425
|
"Sync",
|
|
327
426
|
"SyncEnvironment",
|
|
328
427
|
"SyncMode",
|
|
329
428
|
"TooManyRequestsError",
|
|
330
429
|
"Transcript",
|
|
331
430
|
"TranscriptSegment",
|
|
431
|
+
"TranscriptSpeaker",
|
|
432
|
+
"TranscriptSpeakerLabelFlag",
|
|
332
433
|
"TranscriptWord",
|
|
333
434
|
"TranscriptionDifficulty",
|
|
334
435
|
"TranscriptionDifficultyReason",
|
|
@@ -336,6 +437,7 @@ __all__ = [
|
|
|
336
437
|
"TranscriptionError",
|
|
337
438
|
"TranscriptionErrorCode",
|
|
338
439
|
"TranscriptionJob",
|
|
440
|
+
"TranscriptionJobEstimate",
|
|
339
441
|
"TranscriptionJobId",
|
|
340
442
|
"TranscriptionJobStatus",
|
|
341
443
|
"Tts",
|
|
@@ -361,11 +463,13 @@ __all__ = [
|
|
|
361
463
|
"__version__",
|
|
362
464
|
"account",
|
|
363
465
|
"assets",
|
|
466
|
+
"audio_trims",
|
|
364
467
|
"batch",
|
|
365
468
|
"common",
|
|
366
469
|
"dialogue_edits",
|
|
367
470
|
"errors",
|
|
368
471
|
"feedback",
|
|
472
|
+
"generation_costs",
|
|
369
473
|
"generations",
|
|
370
474
|
"models",
|
|
371
475
|
"organizations",
|
|
@@ -10,6 +10,8 @@ from .types import (
|
|
|
10
10
|
AccountFreeAllowance,
|
|
11
11
|
AccountLimits,
|
|
12
12
|
AccountOrganization,
|
|
13
|
+
AccountOrganizationListItem,
|
|
14
|
+
AccountOrganizations,
|
|
13
15
|
AccountOverview,
|
|
14
16
|
AccountPlan,
|
|
15
17
|
AccountUser,
|
|
@@ -25,6 +27,8 @@ __all__ = [
|
|
|
25
27
|
"AccountFreeAllowance",
|
|
26
28
|
"AccountLimits",
|
|
27
29
|
"AccountOrganization",
|
|
30
|
+
"AccountOrganizationListItem",
|
|
31
|
+
"AccountOrganizations",
|
|
28
32
|
"AccountOverview",
|
|
29
33
|
"AccountPlan",
|
|
30
34
|
"AccountUser",
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.client_wrapper import SyncClientWrapper
|
|
4
|
+
from .raw_client import RawAccountClient
|
|
5
|
+
import typing
|
|
6
|
+
from ..core.request_options import RequestOptions
|
|
7
|
+
from .types.account_overview import AccountOverview
|
|
8
|
+
from .types.account_organizations import AccountOrganizations
|
|
9
|
+
from ..core.client_wrapper import AsyncClientWrapper
|
|
10
|
+
from .raw_client import AsyncRawAccountClient
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class AccountClient:
|
|
14
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
15
|
+
self._raw_client = RawAccountClient(client_wrapper=client_wrapper)
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def with_raw_response(self) -> RawAccountClient:
|
|
19
|
+
"""
|
|
20
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
21
|
+
|
|
22
|
+
Returns
|
|
23
|
+
-------
|
|
24
|
+
RawAccountClient
|
|
25
|
+
"""
|
|
26
|
+
return self._raw_client
|
|
27
|
+
|
|
28
|
+
def get(
|
|
29
|
+
self, *, organization_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
|
|
30
|
+
) -> AccountOverview:
|
|
31
|
+
"""
|
|
32
|
+
Get the account, plan, limits and balance behind these credentials. Call it before submitting work to check plan limits and remaining credits or free allowance, and after a 402, 403 or 429 to decide how to recover: `billingModel` says whether to top up credits (`credits`), pay or update the payment method (`usage`), upgrade (`free`) or contact sync. (`enterprise`). Send people to `billingUrl` for anything that needs a payment.
|
|
33
|
+
|
|
34
|
+
Parameters
|
|
35
|
+
----------
|
|
36
|
+
organization_id : typing.Optional[str]
|
|
37
|
+
Organization ID from List Organizations. Omit to use the credential's default organization.
|
|
38
|
+
|
|
39
|
+
request_options : typing.Optional[RequestOptions]
|
|
40
|
+
Request-specific configuration.
|
|
41
|
+
|
|
42
|
+
Returns
|
|
43
|
+
-------
|
|
44
|
+
AccountOverview
|
|
45
|
+
Account, organization, plan, limits and balance
|
|
46
|
+
|
|
47
|
+
Examples
|
|
48
|
+
--------
|
|
49
|
+
from sync import Sync
|
|
50
|
+
|
|
51
|
+
client = Sync(
|
|
52
|
+
api_key="YOUR_API_KEY",
|
|
53
|
+
)
|
|
54
|
+
client.account.get()
|
|
55
|
+
"""
|
|
56
|
+
response = self._raw_client.get(organization_id=organization_id, request_options=request_options)
|
|
57
|
+
return response.data
|
|
58
|
+
|
|
59
|
+
def list_organizations(
|
|
60
|
+
self, *, organization_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
|
|
61
|
+
) -> AccountOrganizations:
|
|
62
|
+
"""
|
|
63
|
+
List the organizations these credentials can access, current one first. An API key lists only its own organization. An OAuth connection lists the organizations selected when it was connected. Send an ID as x-sync-organization-id on subsequent requests to select that organization. An inaccessible organization returns 403; an invalid ID returns 400.
|
|
64
|
+
|
|
65
|
+
Parameters
|
|
66
|
+
----------
|
|
67
|
+
organization_id : typing.Optional[str]
|
|
68
|
+
Organization ID from this list. Omit to use the credential's default organization.
|
|
69
|
+
|
|
70
|
+
request_options : typing.Optional[RequestOptions]
|
|
71
|
+
Request-specific configuration.
|
|
72
|
+
|
|
73
|
+
Returns
|
|
74
|
+
-------
|
|
75
|
+
AccountOrganizations
|
|
76
|
+
|
|
77
|
+
Examples
|
|
78
|
+
--------
|
|
79
|
+
from sync import Sync
|
|
80
|
+
|
|
81
|
+
client = Sync(
|
|
82
|
+
api_key="YOUR_API_KEY",
|
|
83
|
+
)
|
|
84
|
+
client.account.list_organizations()
|
|
85
|
+
"""
|
|
86
|
+
response = self._raw_client.list_organizations(organization_id=organization_id, request_options=request_options)
|
|
87
|
+
return response.data
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class AsyncAccountClient:
|
|
91
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
92
|
+
self._raw_client = AsyncRawAccountClient(client_wrapper=client_wrapper)
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def with_raw_response(self) -> AsyncRawAccountClient:
|
|
96
|
+
"""
|
|
97
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
98
|
+
|
|
99
|
+
Returns
|
|
100
|
+
-------
|
|
101
|
+
AsyncRawAccountClient
|
|
102
|
+
"""
|
|
103
|
+
return self._raw_client
|
|
104
|
+
|
|
105
|
+
async def get(
|
|
106
|
+
self, *, organization_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
|
|
107
|
+
) -> AccountOverview:
|
|
108
|
+
"""
|
|
109
|
+
Get the account, plan, limits and balance behind these credentials. Call it before submitting work to check plan limits and remaining credits or free allowance, and after a 402, 403 or 429 to decide how to recover: `billingModel` says whether to top up credits (`credits`), pay or update the payment method (`usage`), upgrade (`free`) or contact sync. (`enterprise`). Send people to `billingUrl` for anything that needs a payment.
|
|
110
|
+
|
|
111
|
+
Parameters
|
|
112
|
+
----------
|
|
113
|
+
organization_id : typing.Optional[str]
|
|
114
|
+
Organization ID from List Organizations. Omit to use the credential's default organization.
|
|
115
|
+
|
|
116
|
+
request_options : typing.Optional[RequestOptions]
|
|
117
|
+
Request-specific configuration.
|
|
118
|
+
|
|
119
|
+
Returns
|
|
120
|
+
-------
|
|
121
|
+
AccountOverview
|
|
122
|
+
Account, organization, plan, limits and balance
|
|
123
|
+
|
|
124
|
+
Examples
|
|
125
|
+
--------
|
|
126
|
+
import asyncio
|
|
127
|
+
|
|
128
|
+
from sync import AsyncSync
|
|
129
|
+
|
|
130
|
+
client = AsyncSync(
|
|
131
|
+
api_key="YOUR_API_KEY",
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
async def main() -> None:
|
|
136
|
+
await client.account.get()
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
asyncio.run(main())
|
|
140
|
+
"""
|
|
141
|
+
response = await self._raw_client.get(organization_id=organization_id, request_options=request_options)
|
|
142
|
+
return response.data
|
|
143
|
+
|
|
144
|
+
async def list_organizations(
|
|
145
|
+
self, *, organization_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None
|
|
146
|
+
) -> AccountOrganizations:
|
|
147
|
+
"""
|
|
148
|
+
List the organizations these credentials can access, current one first. An API key lists only its own organization. An OAuth connection lists the organizations selected when it was connected. Send an ID as x-sync-organization-id on subsequent requests to select that organization. An inaccessible organization returns 403; an invalid ID returns 400.
|
|
149
|
+
|
|
150
|
+
Parameters
|
|
151
|
+
----------
|
|
152
|
+
organization_id : typing.Optional[str]
|
|
153
|
+
Organization ID from this list. Omit to use the credential's default organization.
|
|
154
|
+
|
|
155
|
+
request_options : typing.Optional[RequestOptions]
|
|
156
|
+
Request-specific configuration.
|
|
157
|
+
|
|
158
|
+
Returns
|
|
159
|
+
-------
|
|
160
|
+
AccountOrganizations
|
|
161
|
+
|
|
162
|
+
Examples
|
|
163
|
+
--------
|
|
164
|
+
import asyncio
|
|
165
|
+
|
|
166
|
+
from sync import AsyncSync
|
|
167
|
+
|
|
168
|
+
client = AsyncSync(
|
|
169
|
+
api_key="YOUR_API_KEY",
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
async def main() -> None:
|
|
174
|
+
await client.account.list_organizations()
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
asyncio.run(main())
|
|
178
|
+
"""
|
|
179
|
+
response = await self._raw_client.list_organizations(
|
|
180
|
+
organization_id=organization_id, request_options=request_options
|
|
181
|
+
)
|
|
182
|
+
return response.data
|