samplehc 0.10.0__tar.gz → 0.11.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.
- samplehc-0.11.0/.release-please-manifest.json +3 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/CHANGELOG.md +25 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/PKG-INFO +1 -1
- {samplehc-0.10.0 → samplehc-0.11.0}/api.md +33 -89
- {samplehc-0.10.0 → samplehc-0.11.0}/pyproject.toml +53 -2
- {samplehc-0.10.0 → samplehc-0.11.0}/requirements-dev.lock +0 -1
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_base_client.py +3 -3
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_compat.py +48 -48
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_models.py +40 -40
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_types.py +35 -1
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/__init__.py +9 -2
- samplehc-0.11.0/src/samplehc/_utils/_compat.py +45 -0
- samplehc-0.11.0/src/samplehc/_utils/_datetime_parse.py +136 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_transform.py +11 -1
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_typing.py +6 -1
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_utils.py +0 -1
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_version.py +1 -1
- samplehc-0.11.0/src/samplehc/resources/v2/browser_agents/__init__.py +33 -0
- {samplehc-0.10.0/src/samplehc/resources/v2 → samplehc-0.11.0/src/samplehc/resources/v2/browser_agents}/browser_agents.py +40 -8
- samplehc-0.11.0/src/samplehc/resources/v2/browser_agents/runs/__init__.py +33 -0
- samplehc-0.11.0/src/samplehc/resources/v2/browser_agents/runs/help_requests.py +191 -0
- samplehc-0.11.0/src/samplehc/resources/v2/browser_agents/runs/runs.py +102 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/clearinghouse/clearinghouse.py +4 -4
- {samplehc-0.10.0/src/samplehc/resources/v2/events → samplehc-0.11.0/src/samplehc/resources/v2}/events.py +8 -40
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/__init__.py +28 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/careviso.py +10 -10
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/integrations.py +64 -0
- samplehc-0.11.0/src/samplehc/resources/v2/integrations/salesforce.py +193 -0
- {samplehc-0.10.0/src/samplehc/resources/v2/events → samplehc-0.11.0/src/samplehc/resources/v2}/integrations/xcures.py +7 -7
- samplehc-0.11.0/src/samplehc/resources/v2/ledger/__init__.py +47 -0
- samplehc-0.10.0/src/samplehc/resources/v2/ledger/orders.py → samplehc-0.11.0/src/samplehc/resources/v2/ledger/account.py +120 -82
- samplehc-0.11.0/src/samplehc/resources/v2/ledger/entry.py +382 -0
- samplehc-0.11.0/src/samplehc/resources/v2/ledger/ledger.py +134 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/v2.py +16 -16
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/__init__.py +0 -28
- samplehc-0.11.0/src/samplehc/types/v2/browser_agents/runs/__init__.py +6 -0
- samplehc-0.11.0/src/samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py +18 -0
- samplehc-0.11.0/src/samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +30 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/claim_submit_params.py +10 -9
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +3 -2
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_check_eligibility_params.py +2 -2
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/communication_send_letter_params.py +4 -3
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_classify_params.py +3 -2
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_generate_csv_params.py +3 -2
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/legacy_extract_params.py +8 -7
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/__init__.py +2 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +6 -5
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +3 -2
- samplehc-0.11.0/src/samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +22 -0
- samplehc-0.11.0/src/samplehc/types/v2/ledger/__init__.py +10 -0
- samplehc-0.11.0/src/samplehc/types/v2/ledger/account_writeoff_params.py +24 -0
- samplehc-0.11.0/src/samplehc/types/v2/ledger/account_writeoff_response.py +12 -0
- samplehc-0.11.0/src/samplehc/types/v2/ledger/entry_post_params.py +61 -0
- samplehc-0.11.0/src/samplehc/types/v2/ledger/entry_post_response.py +10 -0
- samplehc-0.11.0/src/samplehc/types/v2/ledger/entry_reverse_params.py +19 -0
- samplehc-0.11.0/src/samplehc/types/v2/ledger/entry_reverse_response.py +10 -0
- samplehc-0.11.0/tests/api_resources/v2/browser_agents/runs/test_help_requests.py +164 -0
- samplehc-0.11.0/tests/api_resources/v2/integrations/test_salesforce.py +147 -0
- {samplehc-0.10.0/tests/api_resources/v2/events → samplehc-0.11.0/tests/api_resources/v2}/integrations/test_xcures.py +10 -10
- samplehc-0.11.0/tests/api_resources/v2/ledger/test_account.py +267 -0
- samplehc-0.11.0/tests/api_resources/v2/ledger/test_entry.py +249 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_client.py +6 -47
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_models.py +24 -24
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_transform.py +8 -8
- samplehc-0.11.0/tests/test_utils/test_datetime_parse.py +110 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/utils.py +13 -5
- samplehc-0.10.0/.release-please-manifest.json +0 -3
- samplehc-0.10.0/mypy.ini +0 -50
- samplehc-0.10.0/src/samplehc/resources/v2/events/__init__.py +0 -33
- samplehc-0.10.0/src/samplehc/resources/v2/events/integrations/__init__.py +0 -33
- samplehc-0.10.0/src/samplehc/resources/v2/events/integrations/integrations.py +0 -102
- samplehc-0.10.0/src/samplehc/resources/v2/ledger/__init__.py +0 -75
- samplehc-0.10.0/src/samplehc/resources/v2/ledger/institutions/__init__.py +0 -33
- samplehc-0.10.0/src/samplehc/resources/v2/ledger/institutions/institutions.py +0 -258
- samplehc-0.10.0/src/samplehc/resources/v2/ledger/institutions/orders.py +0 -169
- samplehc-0.10.0/src/samplehc/resources/v2/ledger/insurance.py +0 -141
- samplehc-0.10.0/src/samplehc/resources/v2/ledger/ledger.py +0 -1656
- samplehc-0.10.0/src/samplehc/resources/v2/ledger/patients.py +0 -141
- samplehc-0.10.0/src/samplehc/types/v2/events/integrations/__init__.py +0 -5
- samplehc-0.10.0/src/samplehc/types/v2/ledger/__init__.py +0 -21
- samplehc-0.10.0/src/samplehc/types/v2/ledger/institution_list_outstanding_accounts_response.py +0 -25
- samplehc-0.10.0/src/samplehc/types/v2/ledger/institution_retrieve_outstanding_orders_response.py +0 -25
- samplehc-0.10.0/src/samplehc/types/v2/ledger/institutions/__init__.py +0 -5
- samplehc-0.10.0/src/samplehc/types/v2/ledger/institutions/order_retrieve_balance_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger/insurance_list_outstanding_accounts_response.py +0 -25
- samplehc-0.10.0/src/samplehc/types/v2/ledger/order_retrieve_balances_response.py +0 -31
- samplehc-0.10.0/src/samplehc/types/v2/ledger/order_retrieve_batch_balances_params.py +0 -15
- samplehc-0.10.0/src/samplehc/types/v2/ledger/order_retrieve_batch_balances_response.py +0 -38
- samplehc-0.10.0/src/samplehc/types/v2/ledger/patient_list_outstanding_accounts_response.py +0 -22
- samplehc-0.10.0/src/samplehc/types/v2/ledger_assign_invoice_params.py +0 -34
- samplehc-0.10.0/src/samplehc/types/v2/ledger_assign_invoice_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_claim_adjustment_params.py +0 -34
- samplehc-0.10.0/src/samplehc/types/v2/ledger_claim_adjustment_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_claim_payment_params.py +0 -34
- samplehc-0.10.0/src/samplehc/types/v2/ledger_claim_payment_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_institution_adjustment_params.py +0 -31
- samplehc-0.10.0/src/samplehc/types/v2/ledger_institution_adjustment_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_institution_payment_params.py +0 -31
- samplehc-0.10.0/src/samplehc/types/v2/ledger_institution_payment_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_new_order_params.py +0 -22
- samplehc-0.10.0/src/samplehc/types/v2/ledger_new_order_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_order_writeoff_params.py +0 -28
- samplehc-0.10.0/src/samplehc/types/v2/ledger_order_writeoff_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_patient_adjustment_params.py +0 -31
- samplehc-0.10.0/src/samplehc/types/v2/ledger_patient_adjustment_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_patient_payment_params.py +0 -28
- samplehc-0.10.0/src/samplehc/types/v2/ledger_patient_payment_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_post_remittance_accepted_params.py +0 -37
- samplehc-0.10.0/src/samplehc/types/v2/ledger_post_remittance_accepted_response.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_reverse_entry_params.py +0 -12
- samplehc-0.10.0/src/samplehc/types/v2/ledger_reverse_entry_response.py +0 -12
- samplehc-0.10.0/tests/api_resources/v2/ledger/institutions/test_orders.py +0 -128
- samplehc-0.10.0/tests/api_resources/v2/ledger/test_institutions.py +0 -167
- samplehc-0.10.0/tests/api_resources/v2/ledger/test_insurance.py +0 -80
- samplehc-0.10.0/tests/api_resources/v2/ledger/test_orders.py +0 -179
- samplehc-0.10.0/tests/api_resources/v2/ledger/test_patients.py +0 -80
- samplehc-0.10.0/tests/api_resources/v2/test_ledger.py +0 -1285
- samplehc-0.10.0/tests/api_resources/v2/workflow_runs/__init__.py +0 -1
- {samplehc-0.10.0 → samplehc-0.11.0}/.gitignore +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/CONTRIBUTING.md +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/LICENSE +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/README.md +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/SECURITY.md +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/bin/check-release-environment +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/bin/publish-pypi +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/examples/.keep +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/noxfile.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/release-please-config.json +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/requirements.lock +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_client.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_constants.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_exceptions.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_files.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_qs.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_resource.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_streaming.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_logs.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_proxy.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_reflection.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_resources_proxy.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_streams.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_sync.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/lib/.keep +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/py.typed +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v1/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v1/v1.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/async_results.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/browser_automation/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/browser_automation/availity.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/browser_automation/browser_automation.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/clearinghouse/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/clearinghouse/claim.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/clearinghouse/payers.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/communication.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/database.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/documents.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/formats.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/legacy.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/pdf_template.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/templates.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/hie/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/hie/adt.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/hie/documents.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/hie/hie.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/bank/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/bank/bank.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/bank/transactions.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/glidian/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/glidian/glidian.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/kno2/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/kno2/kno2.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/kno2/messages.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/snowflake.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/policies.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/tasks/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/tasks/state.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/tasks/tasks.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/workflow_runs/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/workflow_runs/step.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/workflow_runs/workflow_runs.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/workflows.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v1/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v1_query_audit_logs_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v1_query_audit_logs_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v1_sql_execute_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v1_sql_execute_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/async_result_retrieve_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/async_result_sleep_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/async_result_sleep_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/browser_agent_invoke_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/browser_agent_invoke_response.py +0 -0
- {samplehc-0.10.0/src/samplehc/types/v2/events → samplehc-0.11.0/src/samplehc/types/v2/browser_agents}/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/browser_automation/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/browser_automation/availity_submit_appeal_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/browser_automation/availity_submit_appeal_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/claim_submit_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/payer_list_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/payer_search_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/payer_search_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_check_claim_status_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_check_eligibility_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_run_discovery_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_run_discovery_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/communication_send_email_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/communication_send_fax_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/communication_send_fax_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/communication_send_letter_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/database_execute_sql_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/database_execute_sql_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_classify_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_combine_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_combine_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_create_from_splits_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_create_from_splits_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_extract_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_extract_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_generate_csv_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_presigned_upload_url_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_presigned_upload_url_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_retrieve_csv_content_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_retrieve_metadata_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_retrieve_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_search_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_search_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_split_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_split_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_transform_json_to_html_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_transform_json_to_html_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_unzip_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/format_create_pdf_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/format_create_pdf_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/legacy_extract_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/legacy_reason_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/legacy_reason_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/template_generate_document_async_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/template_generate_document_async_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/template_render_document_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/template_render_document_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/event_emit_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/event_emit_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/hie/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/hie/adt_subscribe_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/hie/document_query_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/hie/document_query_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/hie/document_upload_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/bank/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/bank/transaction_sync_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/bank/transaction_sync_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/careviso_get_payers_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_list_payers_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_list_payers_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_list_services_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_list_services_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/kno2/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/kno2/message_retrieve_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/snowflake_query_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/snowflake_query_response.py +0 -0
- {samplehc-0.10.0/src/samplehc/types/v2/events → samplehc-0.11.0/src/samplehc/types/v2}/integrations/xcure_make_request_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_companies_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_companies_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_plans_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_plans_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_retrieve_presigned_url_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_retrieve_text_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_cancel_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_complete_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_complete_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_get_suspended_payload_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_retrieve_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_retry_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_update_screen_time_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_update_screen_time_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/tasks/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/tasks/state_get_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/tasks/state_update_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/tasks/state_update_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_deploy_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_query_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_query_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_run_get_start_data_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_run_resume_when_complete_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_run_resume_when_complete_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_run_retrieve_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_runs/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_runs/step_get_output_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_start_params.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_start_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/test_v1.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v1/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/__init__.py +0 -0
- {samplehc-0.10.0/tests/api_resources/v2/browser_automation → samplehc-0.11.0/tests/api_resources/v2/browser_agents}/__init__.py +0 -0
- {samplehc-0.10.0/tests/api_resources/v2/clearinghouse → samplehc-0.11.0/tests/api_resources/v2/browser_agents/runs}/__init__.py +0 -0
- {samplehc-0.10.0/tests/api_resources/v2/documents → samplehc-0.11.0/tests/api_resources/v2/browser_automation}/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/browser_automation/test_availity.py +0 -0
- {samplehc-0.10.0/tests/api_resources/v2/events → samplehc-0.11.0/tests/api_resources/v2/clearinghouse}/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/clearinghouse/test_claim.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/clearinghouse/test_payers.py +0 -0
- {samplehc-0.10.0/tests/api_resources/v2/events/integrations → samplehc-0.11.0/tests/api_resources/v2/documents}/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/documents/test_formats.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/documents/test_legacy.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/documents/test_pdf_template.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/documents/test_templates.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/hie/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/hie/test_adt.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/hie/test_documents.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/bank/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/bank/test_transactions.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/glidian/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/glidian/prior_authorizations/test_clinical_questions.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/glidian/test_prior_authorizations.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/kno2/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/kno2/test_messages.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/test_careviso.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/test_glidian.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/test_snowflake.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/ledger/__init__.py +0 -0
- {samplehc-0.10.0/tests/api_resources/v2/ledger/institutions → samplehc-0.11.0/tests/api_resources/v2/tasks}/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/tasks/test_state.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_async_results.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_browser_agents.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_clearinghouse.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_communication.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_database.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_documents.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_events.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_policies.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_tasks.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_workflow_runs.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_workflows.py +0 -0
- {samplehc-0.10.0/tests/api_resources/v2/tasks → samplehc-0.11.0/tests/api_resources/v2/workflow_runs}/__init__.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/workflow_runs/test_step.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/conftest.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/sample_file.txt +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_deepcopy.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_extract_files.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_files.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_qs.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_required_args.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_response.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_streaming.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_utils/test_proxy.py +0 -0
- {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_utils/test_typing.py +0 -0
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.11.0 (2025-09-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.10.0...v0.11.0](https://github.com/samplehc/samplehc-python/compare/v0.10.0...v0.11.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([e1bf34e](https://github.com/samplehc/samplehc-python/commit/e1bf34e2fd27fb7798dcdd1caf5c612d9bef8a88))
|
|
10
|
+
* **api:** api update ([f7a33ad](https://github.com/samplehc/samplehc-python/commit/f7a33ad842f095b97cf2525bc8049ec8684d6e88))
|
|
11
|
+
* **api:** manual updates ([40aa4bc](https://github.com/samplehc/samplehc-python/commit/40aa4bc965cc51598e35f3a9b1265869f0d6a0e7))
|
|
12
|
+
* **api:** manual updates ([072163f](https://github.com/samplehc/samplehc-python/commit/072163fffa0c862144bba3a3e490a8d28aa8ecf3))
|
|
13
|
+
* improve future compat with pydantic v3 ([400f2e9](https://github.com/samplehc/samplehc-python/commit/400f2e9adb39956505a9af6f7afada163bac9849))
|
|
14
|
+
* **types:** replace List[str] with SequenceNotStr in params ([3838a8b](https://github.com/samplehc/samplehc-python/commit/3838a8b0a40b24f8e30dc20e24cc5549c1c09a34))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* wrong path for salesforce and xcures ([17f83aa](https://github.com/samplehc/samplehc-python/commit/17f83aa79f5651258f77d4e80a73aa59961c6f0b))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Chores
|
|
23
|
+
|
|
24
|
+
* **internal:** add Sequence related utils ([ea54e4a](https://github.com/samplehc/samplehc-python/commit/ea54e4a6346af8be1a5716e283b8a608b86f658d))
|
|
25
|
+
* **internal:** codegen related update ([c8dfd56](https://github.com/samplehc/samplehc-python/commit/c8dfd56e4fa2165cc23e0dd242591077ab64217f))
|
|
26
|
+
* **tests:** simplify `get_platform` test ([1fc255f](https://github.com/samplehc/samplehc-python/commit/1fc255fdbaf3302704c80362fe656dc9596d4f04))
|
|
27
|
+
|
|
3
28
|
## 0.10.0 (2025-08-27)
|
|
4
29
|
|
|
5
30
|
Full Changelog: [v0.9.0...v0.10.0](https://github.com/samplehc/samplehc-python/compare/v0.9.0...v0.10.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: samplehc
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: The official Python library for the Sample Healthcare API
|
|
5
5
|
Project-URL: Homepage, https://github.com/samplehc/samplehc-python
|
|
6
6
|
Project-URL: Repository, https://github.com/samplehc/samplehc-python
|
|
@@ -262,105 +262,31 @@ Methods:
|
|
|
262
262
|
|
|
263
263
|
## Ledger
|
|
264
264
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
```python
|
|
268
|
-
from samplehc.types.v2 import (
|
|
269
|
-
LedgerAssignInvoiceResponse,
|
|
270
|
-
LedgerClaimAdjustmentResponse,
|
|
271
|
-
LedgerClaimPaymentResponse,
|
|
272
|
-
LedgerInstitutionAdjustmentResponse,
|
|
273
|
-
LedgerInstitutionPaymentResponse,
|
|
274
|
-
LedgerNewOrderResponse,
|
|
275
|
-
LedgerOrderWriteoffResponse,
|
|
276
|
-
LedgerPatientAdjustmentResponse,
|
|
277
|
-
LedgerPatientPaymentResponse,
|
|
278
|
-
LedgerPostRemittanceAcceptedResponse,
|
|
279
|
-
LedgerReverseEntryResponse,
|
|
280
|
-
)
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
Methods:
|
|
284
|
-
|
|
285
|
-
- <code title="post /api/v2/ledger/invoice-assignment">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">assign_invoice</a>(\*\*<a href="src/samplehc/types/v2/ledger_assign_invoice_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_assign_invoice_response.py">LedgerAssignInvoiceResponse</a></code>
|
|
286
|
-
- <code title="post /api/v2/ledger/claim-adjustment">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">claim_adjustment</a>(\*\*<a href="src/samplehc/types/v2/ledger_claim_adjustment_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_claim_adjustment_response.py">LedgerClaimAdjustmentResponse</a></code>
|
|
287
|
-
- <code title="post /api/v2/ledger/claim-payment">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">claim_payment</a>(\*\*<a href="src/samplehc/types/v2/ledger_claim_payment_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_claim_payment_response.py">LedgerClaimPaymentResponse</a></code>
|
|
288
|
-
- <code title="post /api/v2/ledger/institution-adjustment">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">institution_adjustment</a>(\*\*<a href="src/samplehc/types/v2/ledger_institution_adjustment_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_institution_adjustment_response.py">LedgerInstitutionAdjustmentResponse</a></code>
|
|
289
|
-
- <code title="post /api/v2/ledger/institution-payment">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">institution_payment</a>(\*\*<a href="src/samplehc/types/v2/ledger_institution_payment_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_institution_payment_response.py">LedgerInstitutionPaymentResponse</a></code>
|
|
290
|
-
- <code title="post /api/v2/ledger/new-order">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">new_order</a>(\*\*<a href="src/samplehc/types/v2/ledger_new_order_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_new_order_response.py">LedgerNewOrderResponse</a></code>
|
|
291
|
-
- <code title="post /api/v2/ledger/order-writeoff">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">order_writeoff</a>(\*\*<a href="src/samplehc/types/v2/ledger_order_writeoff_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_order_writeoff_response.py">LedgerOrderWriteoffResponse</a></code>
|
|
292
|
-
- <code title="post /api/v2/ledger/patient-adjustment">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">patient_adjustment</a>(\*\*<a href="src/samplehc/types/v2/ledger_patient_adjustment_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_patient_adjustment_response.py">LedgerPatientAdjustmentResponse</a></code>
|
|
293
|
-
- <code title="post /api/v2/ledger/patient-payment">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">patient_payment</a>(\*\*<a href="src/samplehc/types/v2/ledger_patient_payment_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_patient_payment_response.py">LedgerPatientPaymentResponse</a></code>
|
|
294
|
-
- <code title="post /api/v2/ledger/remittance-accepted">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">post_remittance_accepted</a>(\*\*<a href="src/samplehc/types/v2/ledger_post_remittance_accepted_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_post_remittance_accepted_response.py">LedgerPostRemittanceAcceptedResponse</a></code>
|
|
295
|
-
- <code title="post /api/v2/ledger/reverse-entry">client.v2.ledger.<a href="./src/samplehc/resources/v2/ledger/ledger.py">reverse_entry</a>(\*\*<a href="src/samplehc/types/v2/ledger_reverse_entry_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger_reverse_entry_response.py">LedgerReverseEntryResponse</a></code>
|
|
296
|
-
|
|
297
|
-
### Institutions
|
|
298
|
-
|
|
299
|
-
Types:
|
|
300
|
-
|
|
301
|
-
```python
|
|
302
|
-
from samplehc.types.v2.ledger import (
|
|
303
|
-
InstitutionListOutstandingAccountsResponse,
|
|
304
|
-
InstitutionRetrieveOutstandingOrdersResponse,
|
|
305
|
-
)
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
Methods:
|
|
309
|
-
|
|
310
|
-
- <code title="get /api/v2/ledger/institutions/outstanding-accounts">client.v2.ledger.institutions.<a href="./src/samplehc/resources/v2/ledger/institutions/institutions.py">list_outstanding_accounts</a>() -> <a href="./src/samplehc/types/v2/ledger/institution_list_outstanding_accounts_response.py">InstitutionListOutstandingAccountsResponse</a></code>
|
|
311
|
-
- <code title="get /api/v2/ledger/institutions/{institutionId}/outstanding-orders">client.v2.ledger.institutions.<a href="./src/samplehc/resources/v2/ledger/institutions/institutions.py">retrieve_outstanding_orders</a>(institution_id) -> <a href="./src/samplehc/types/v2/ledger/institution_retrieve_outstanding_orders_response.py">InstitutionRetrieveOutstandingOrdersResponse</a></code>
|
|
312
|
-
|
|
313
|
-
#### Orders
|
|
314
|
-
|
|
315
|
-
Types:
|
|
316
|
-
|
|
317
|
-
```python
|
|
318
|
-
from samplehc.types.v2.ledger.institutions import OrderRetrieveBalanceResponse
|
|
319
|
-
```
|
|
320
|
-
|
|
321
|
-
Methods:
|
|
322
|
-
|
|
323
|
-
- <code title="get /api/v2/ledger/institutions/{institutionId}/orders/{orderId}/balance">client.v2.ledger.institutions.orders.<a href="./src/samplehc/resources/v2/ledger/institutions/orders.py">retrieve_balance</a>(order_id, \*, institution_id) -> <a href="./src/samplehc/types/v2/ledger/institutions/order_retrieve_balance_response.py">OrderRetrieveBalanceResponse</a></code>
|
|
324
|
-
|
|
325
|
-
### Insurance
|
|
326
|
-
|
|
327
|
-
Types:
|
|
328
|
-
|
|
329
|
-
```python
|
|
330
|
-
from samplehc.types.v2.ledger import InsuranceListOutstandingAccountsResponse
|
|
331
|
-
```
|
|
332
|
-
|
|
333
|
-
Methods:
|
|
334
|
-
|
|
335
|
-
- <code title="get /api/v2/ledger/insurance/outstanding-accounts">client.v2.ledger.insurance.<a href="./src/samplehc/resources/v2/ledger/insurance.py">list_outstanding_accounts</a>() -> <a href="./src/samplehc/types/v2/ledger/insurance_list_outstanding_accounts_response.py">InsuranceListOutstandingAccountsResponse</a></code>
|
|
336
|
-
|
|
337
|
-
### Patients
|
|
265
|
+
### Entry
|
|
338
266
|
|
|
339
267
|
Types:
|
|
340
268
|
|
|
341
269
|
```python
|
|
342
|
-
from samplehc.types.v2.ledger import
|
|
270
|
+
from samplehc.types.v2.ledger import EntryPostResponse, EntryReverseResponse
|
|
343
271
|
```
|
|
344
272
|
|
|
345
273
|
Methods:
|
|
346
274
|
|
|
347
|
-
- <code title="
|
|
275
|
+
- <code title="post /api/v2/ledger/entry">client.v2.ledger.entry.<a href="./src/samplehc/resources/v2/ledger/entry.py">post</a>(\*\*<a href="src/samplehc/types/v2/ledger/entry_post_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger/entry_post_response.py">EntryPostResponse</a></code>
|
|
276
|
+
- <code title="post /api/v2/ledger/entry/{id}/reverse">client.v2.ledger.entry.<a href="./src/samplehc/resources/v2/ledger/entry.py">reverse</a>(id, \*\*<a href="src/samplehc/types/v2/ledger/entry_reverse_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger/entry_reverse_response.py">EntryReverseResponse</a></code>
|
|
348
277
|
|
|
349
|
-
###
|
|
278
|
+
### Account
|
|
350
279
|
|
|
351
280
|
Types:
|
|
352
281
|
|
|
353
282
|
```python
|
|
354
|
-
from samplehc.types.v2.ledger import
|
|
355
|
-
OrderRetrieveBalancesResponse,
|
|
356
|
-
OrderRetrieveBatchBalancesResponse,
|
|
357
|
-
)
|
|
283
|
+
from samplehc.types.v2.ledger import AccountWriteoffResponse
|
|
358
284
|
```
|
|
359
285
|
|
|
360
286
|
Methods:
|
|
361
287
|
|
|
362
|
-
- <code title="get /api/v2/ledger/
|
|
363
|
-
- <code title="post /api/v2/ledger/
|
|
288
|
+
- <code title="get /api/v2/ledger/account/{orderId}/line-item/{lineItemId}/balance">client.v2.ledger.account.<a href="./src/samplehc/resources/v2/ledger/account.py">get_balance</a>(line_item_id, \*, order_id) -> None</code>
|
|
289
|
+
- <code title="post /api/v2/ledger/account/{orderId}/line-item/{lineItemId}/writeoff">client.v2.ledger.account.<a href="./src/samplehc/resources/v2/ledger/account.py">writeoff</a>(line_item_id, \*, order_id, \*\*<a href="src/samplehc/types/v2/ledger/account_writeoff_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger/account_writeoff_response.py">AccountWriteoffResponse</a></code>
|
|
364
290
|
|
|
365
291
|
## Integrations
|
|
366
292
|
|
|
@@ -475,6 +401,18 @@ Methods:
|
|
|
475
401
|
- <code title="put /api/v2/integrations/glidian/{slug}/prior-authorizations/{recordId}/clinical-questions">client.v2.integrations.glidian.prior_authorizations.clinical_questions.<a href="./src/samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py">update</a>(record_id, \*, slug, \*\*<a href="src/samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py">params</a>) -> <a href="./src/samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py">ClinicalQuestionUpdateResponse</a></code>
|
|
476
402
|
- <code title="get /api/v2/integrations/glidian/{slug}/prior-authorizations/{recordId}/clinical-questions">client.v2.integrations.glidian.prior_authorizations.clinical_questions.<a href="./src/samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py">list</a>(record_id, \*, slug) -> <a href="./src/samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py">ClinicalQuestionListResponse</a></code>
|
|
477
403
|
|
|
404
|
+
### Xcures
|
|
405
|
+
|
|
406
|
+
Methods:
|
|
407
|
+
|
|
408
|
+
- <code title="post /api/v2/integrations/xcures/{slug}/request">client.v2.integrations.xcures.<a href="./src/samplehc/resources/v2/integrations/xcures.py">make_request</a>(slug, \*\*<a href="src/samplehc/types/v2/integrations/xcure_make_request_params.py">params</a>) -> object</code>
|
|
409
|
+
|
|
410
|
+
### Salesforce
|
|
411
|
+
|
|
412
|
+
Methods:
|
|
413
|
+
|
|
414
|
+
- <code title="post /api/v2/integrations/salesforce/{slug}/crud-action">client.v2.integrations.salesforce.<a href="./src/samplehc/resources/v2/integrations/salesforce.py">run_crud_action</a>(slug, \*\*<a href="src/samplehc/types/v2/integrations/salesforce_run_crud_action_params.py">params</a>) -> object</code>
|
|
415
|
+
|
|
478
416
|
## Events
|
|
479
417
|
|
|
480
418
|
Types:
|
|
@@ -485,27 +423,33 @@ from samplehc.types.v2 import EventEmitResponse
|
|
|
485
423
|
|
|
486
424
|
Methods:
|
|
487
425
|
|
|
488
|
-
- <code title="post /api/v2/events/">client.v2.events.<a href="./src/samplehc/resources/v2/events
|
|
426
|
+
- <code title="post /api/v2/events/">client.v2.events.<a href="./src/samplehc/resources/v2/events.py">emit</a>(\*\*<a href="src/samplehc/types/v2/event_emit_params.py">params</a>) -> <a href="./src/samplehc/types/v2/event_emit_response.py">EventEmitResponse</a></code>
|
|
427
|
+
|
|
428
|
+
## BrowserAgents
|
|
489
429
|
|
|
490
|
-
|
|
430
|
+
Types:
|
|
491
431
|
|
|
492
|
-
|
|
432
|
+
```python
|
|
433
|
+
from samplehc.types.v2 import BrowserAgentInvokeResponse
|
|
434
|
+
```
|
|
493
435
|
|
|
494
436
|
Methods:
|
|
495
437
|
|
|
496
|
-
- <code title="post /api/v2/
|
|
438
|
+
- <code title="post /api/v2/browser-agents/{slug}/invoke">client.v2.browser_agents.<a href="./src/samplehc/resources/v2/browser_agents/browser_agents.py">invoke</a>(slug, \*\*<a href="src/samplehc/types/v2/browser_agent_invoke_params.py">params</a>) -> <a href="./src/samplehc/types/v2/browser_agent_invoke_response.py">BrowserAgentInvokeResponse</a></code>
|
|
497
439
|
|
|
498
|
-
|
|
440
|
+
### Runs
|
|
441
|
+
|
|
442
|
+
#### HelpRequests
|
|
499
443
|
|
|
500
444
|
Types:
|
|
501
445
|
|
|
502
446
|
```python
|
|
503
|
-
from samplehc.types.v2 import
|
|
447
|
+
from samplehc.types.v2.browser_agents.runs import HelpRequestResolveResponse
|
|
504
448
|
```
|
|
505
449
|
|
|
506
450
|
Methods:
|
|
507
451
|
|
|
508
|
-
- <code title="
|
|
452
|
+
- <code title="patch /api/v2/browser-agents/{slug}/runs/{browserAgentRunId}/help-requests/{helpRequestId}/resolution">client.v2.browser_agents.runs.help_requests.<a href="./src/samplehc/resources/v2/browser_agents/runs/help_requests.py">resolve</a>(help_request_id, \*, slug, browser_agent_run_id, \*\*<a href="src/samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py">params</a>) -> <a href="./src/samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py">HelpRequestResolveResponse</a></code>
|
|
509
453
|
|
|
510
454
|
## Policies
|
|
511
455
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "samplehc"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.11.0"
|
|
4
4
|
description = "The official Python library for the Sample Healthcare API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -56,7 +56,6 @@ dev-dependencies = [
|
|
|
56
56
|
"dirty-equals>=0.6.0",
|
|
57
57
|
"importlib-metadata>=6.7.0",
|
|
58
58
|
"rich>=13.7.1",
|
|
59
|
-
"nest_asyncio==1.6.0",
|
|
60
59
|
"pytest-xdist>=3.6.1",
|
|
61
60
|
]
|
|
62
61
|
|
|
@@ -157,6 +156,58 @@ reportOverlappingOverload = false
|
|
|
157
156
|
reportImportCycles = false
|
|
158
157
|
reportPrivateUsage = false
|
|
159
158
|
|
|
159
|
+
[tool.mypy]
|
|
160
|
+
pretty = true
|
|
161
|
+
show_error_codes = true
|
|
162
|
+
|
|
163
|
+
# Exclude _files.py because mypy isn't smart enough to apply
|
|
164
|
+
# the correct type narrowing and as this is an internal module
|
|
165
|
+
# it's fine to just use Pyright.
|
|
166
|
+
#
|
|
167
|
+
# We also exclude our `tests` as mypy doesn't always infer
|
|
168
|
+
# types correctly and Pyright will still catch any type errors.
|
|
169
|
+
exclude = ['src/samplehc/_files.py', '_dev/.*.py', 'tests/.*']
|
|
170
|
+
|
|
171
|
+
strict_equality = true
|
|
172
|
+
implicit_reexport = true
|
|
173
|
+
check_untyped_defs = true
|
|
174
|
+
no_implicit_optional = true
|
|
175
|
+
|
|
176
|
+
warn_return_any = true
|
|
177
|
+
warn_unreachable = true
|
|
178
|
+
warn_unused_configs = true
|
|
179
|
+
|
|
180
|
+
# Turn these options off as it could cause conflicts
|
|
181
|
+
# with the Pyright options.
|
|
182
|
+
warn_unused_ignores = false
|
|
183
|
+
warn_redundant_casts = false
|
|
184
|
+
|
|
185
|
+
disallow_any_generics = true
|
|
186
|
+
disallow_untyped_defs = true
|
|
187
|
+
disallow_untyped_calls = true
|
|
188
|
+
disallow_subclassing_any = true
|
|
189
|
+
disallow_incomplete_defs = true
|
|
190
|
+
disallow_untyped_decorators = true
|
|
191
|
+
cache_fine_grained = true
|
|
192
|
+
|
|
193
|
+
# By default, mypy reports an error if you assign a value to the result
|
|
194
|
+
# of a function call that doesn't return anything. We do this in our test
|
|
195
|
+
# cases:
|
|
196
|
+
# ```
|
|
197
|
+
# result = ...
|
|
198
|
+
# assert result is None
|
|
199
|
+
# ```
|
|
200
|
+
# Changing this codegen to make mypy happy would increase complexity
|
|
201
|
+
# and would not be worth it.
|
|
202
|
+
disable_error_code = "func-returns-value,overload-cannot-match"
|
|
203
|
+
|
|
204
|
+
# https://github.com/python/mypy/issues/12162
|
|
205
|
+
[[tool.mypy.overrides]]
|
|
206
|
+
module = "black.files.*"
|
|
207
|
+
ignore_errors = true
|
|
208
|
+
ignore_missing_imports = true
|
|
209
|
+
|
|
210
|
+
|
|
160
211
|
[tool.ruff]
|
|
161
212
|
line-length = 120
|
|
162
213
|
output-format = "grouped"
|
|
@@ -59,7 +59,7 @@ from ._types import (
|
|
|
59
59
|
ModelBuilderProtocol,
|
|
60
60
|
)
|
|
61
61
|
from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
|
|
62
|
-
from ._compat import
|
|
62
|
+
from ._compat import PYDANTIC_V1, model_copy, model_dump
|
|
63
63
|
from ._models import GenericModel, FinalRequestOptions, validate_type, construct_type
|
|
64
64
|
from ._response import (
|
|
65
65
|
APIResponse,
|
|
@@ -232,7 +232,7 @@ class BaseSyncPage(BasePage[_T], Generic[_T]):
|
|
|
232
232
|
model: Type[_T],
|
|
233
233
|
options: FinalRequestOptions,
|
|
234
234
|
) -> None:
|
|
235
|
-
if
|
|
235
|
+
if (not PYDANTIC_V1) and getattr(self, "__pydantic_private__", None) is None:
|
|
236
236
|
self.__pydantic_private__ = {}
|
|
237
237
|
|
|
238
238
|
self._model = model
|
|
@@ -320,7 +320,7 @@ class BaseAsyncPage(BasePage[_T], Generic[_T]):
|
|
|
320
320
|
client: AsyncAPIClient,
|
|
321
321
|
options: FinalRequestOptions,
|
|
322
322
|
) -> None:
|
|
323
|
-
if
|
|
323
|
+
if (not PYDANTIC_V1) and getattr(self, "__pydantic_private__", None) is None:
|
|
324
324
|
self.__pydantic_private__ = {}
|
|
325
325
|
|
|
326
326
|
self._model = model
|
|
@@ -12,14 +12,13 @@ from ._types import IncEx, StrBytesIntFloat
|
|
|
12
12
|
_T = TypeVar("_T")
|
|
13
13
|
_ModelT = TypeVar("_ModelT", bound=pydantic.BaseModel)
|
|
14
14
|
|
|
15
|
-
# --------------- Pydantic v2 compatibility ---------------
|
|
15
|
+
# --------------- Pydantic v2, v3 compatibility ---------------
|
|
16
16
|
|
|
17
17
|
# Pyright incorrectly reports some of our functions as overriding a method when they don't
|
|
18
18
|
# pyright: reportIncompatibleMethodOverride=false
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
PYDANTIC_V1 = pydantic.VERSION.startswith("1.")
|
|
21
21
|
|
|
22
|
-
# v1 re-exports
|
|
23
22
|
if TYPE_CHECKING:
|
|
24
23
|
|
|
25
24
|
def parse_date(value: date | StrBytesIntFloat) -> date: # noqa: ARG001
|
|
@@ -44,90 +43,92 @@ if TYPE_CHECKING:
|
|
|
44
43
|
...
|
|
45
44
|
|
|
46
45
|
else:
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
# v1 re-exports
|
|
47
|
+
if PYDANTIC_V1:
|
|
48
|
+
from pydantic.typing import (
|
|
49
49
|
get_args as get_args,
|
|
50
50
|
is_union as is_union,
|
|
51
51
|
get_origin as get_origin,
|
|
52
52
|
is_typeddict as is_typeddict,
|
|
53
53
|
is_literal_type as is_literal_type,
|
|
54
54
|
)
|
|
55
|
-
from pydantic.
|
|
55
|
+
from pydantic.datetime_parse import parse_date as parse_date, parse_datetime as parse_datetime
|
|
56
56
|
else:
|
|
57
|
-
from
|
|
57
|
+
from ._utils import (
|
|
58
58
|
get_args as get_args,
|
|
59
59
|
is_union as is_union,
|
|
60
60
|
get_origin as get_origin,
|
|
61
|
+
parse_date as parse_date,
|
|
61
62
|
is_typeddict as is_typeddict,
|
|
63
|
+
parse_datetime as parse_datetime,
|
|
62
64
|
is_literal_type as is_literal_type,
|
|
63
65
|
)
|
|
64
|
-
from pydantic.datetime_parse import parse_date as parse_date, parse_datetime as parse_datetime
|
|
65
66
|
|
|
66
67
|
|
|
67
68
|
# refactored config
|
|
68
69
|
if TYPE_CHECKING:
|
|
69
70
|
from pydantic import ConfigDict as ConfigDict
|
|
70
71
|
else:
|
|
71
|
-
if
|
|
72
|
-
from pydantic import ConfigDict
|
|
73
|
-
else:
|
|
72
|
+
if PYDANTIC_V1:
|
|
74
73
|
# TODO: provide an error message here?
|
|
75
74
|
ConfigDict = None
|
|
75
|
+
else:
|
|
76
|
+
from pydantic import ConfigDict as ConfigDict
|
|
76
77
|
|
|
77
78
|
|
|
78
79
|
# renamed methods / properties
|
|
79
80
|
def parse_obj(model: type[_ModelT], value: object) -> _ModelT:
|
|
80
|
-
if
|
|
81
|
-
return model.model_validate(value)
|
|
82
|
-
else:
|
|
81
|
+
if PYDANTIC_V1:
|
|
83
82
|
return cast(_ModelT, model.parse_obj(value)) # pyright: ignore[reportDeprecated, reportUnnecessaryCast]
|
|
83
|
+
else:
|
|
84
|
+
return model.model_validate(value)
|
|
84
85
|
|
|
85
86
|
|
|
86
87
|
def field_is_required(field: FieldInfo) -> bool:
|
|
87
|
-
if
|
|
88
|
-
return field.
|
|
89
|
-
return field.
|
|
88
|
+
if PYDANTIC_V1:
|
|
89
|
+
return field.required # type: ignore
|
|
90
|
+
return field.is_required()
|
|
90
91
|
|
|
91
92
|
|
|
92
93
|
def field_get_default(field: FieldInfo) -> Any:
|
|
93
94
|
value = field.get_default()
|
|
94
|
-
if
|
|
95
|
-
from pydantic_core import PydanticUndefined
|
|
96
|
-
|
|
97
|
-
if value == PydanticUndefined:
|
|
98
|
-
return None
|
|
95
|
+
if PYDANTIC_V1:
|
|
99
96
|
return value
|
|
97
|
+
from pydantic_core import PydanticUndefined
|
|
98
|
+
|
|
99
|
+
if value == PydanticUndefined:
|
|
100
|
+
return None
|
|
100
101
|
return value
|
|
101
102
|
|
|
102
103
|
|
|
103
104
|
def field_outer_type(field: FieldInfo) -> Any:
|
|
104
|
-
if
|
|
105
|
-
return field.
|
|
106
|
-
return field.
|
|
105
|
+
if PYDANTIC_V1:
|
|
106
|
+
return field.outer_type_ # type: ignore
|
|
107
|
+
return field.annotation
|
|
107
108
|
|
|
108
109
|
|
|
109
110
|
def get_model_config(model: type[pydantic.BaseModel]) -> Any:
|
|
110
|
-
if
|
|
111
|
-
return model.
|
|
112
|
-
return model.
|
|
111
|
+
if PYDANTIC_V1:
|
|
112
|
+
return model.__config__ # type: ignore
|
|
113
|
+
return model.model_config
|
|
113
114
|
|
|
114
115
|
|
|
115
116
|
def get_model_fields(model: type[pydantic.BaseModel]) -> dict[str, FieldInfo]:
|
|
116
|
-
if
|
|
117
|
-
return model.
|
|
118
|
-
return model.
|
|
117
|
+
if PYDANTIC_V1:
|
|
118
|
+
return model.__fields__ # type: ignore
|
|
119
|
+
return model.model_fields
|
|
119
120
|
|
|
120
121
|
|
|
121
122
|
def model_copy(model: _ModelT, *, deep: bool = False) -> _ModelT:
|
|
122
|
-
if
|
|
123
|
-
return model.
|
|
124
|
-
return model.
|
|
123
|
+
if PYDANTIC_V1:
|
|
124
|
+
return model.copy(deep=deep) # type: ignore
|
|
125
|
+
return model.model_copy(deep=deep)
|
|
125
126
|
|
|
126
127
|
|
|
127
128
|
def model_json(model: pydantic.BaseModel, *, indent: int | None = None) -> str:
|
|
128
|
-
if
|
|
129
|
-
return model.
|
|
130
|
-
return model.
|
|
129
|
+
if PYDANTIC_V1:
|
|
130
|
+
return model.json(indent=indent) # type: ignore
|
|
131
|
+
return model.model_dump_json(indent=indent)
|
|
131
132
|
|
|
132
133
|
|
|
133
134
|
def model_dump(
|
|
@@ -139,14 +140,14 @@ def model_dump(
|
|
|
139
140
|
warnings: bool = True,
|
|
140
141
|
mode: Literal["json", "python"] = "python",
|
|
141
142
|
) -> dict[str, Any]:
|
|
142
|
-
if
|
|
143
|
+
if (not PYDANTIC_V1) or hasattr(model, "model_dump"):
|
|
143
144
|
return model.model_dump(
|
|
144
145
|
mode=mode,
|
|
145
146
|
exclude=exclude,
|
|
146
147
|
exclude_unset=exclude_unset,
|
|
147
148
|
exclude_defaults=exclude_defaults,
|
|
148
149
|
# warnings are not supported in Pydantic v1
|
|
149
|
-
warnings=
|
|
150
|
+
warnings=True if PYDANTIC_V1 else warnings,
|
|
150
151
|
)
|
|
151
152
|
return cast(
|
|
152
153
|
"dict[str, Any]",
|
|
@@ -159,9 +160,9 @@ def model_dump(
|
|
|
159
160
|
|
|
160
161
|
|
|
161
162
|
def model_parse(model: type[_ModelT], data: Any) -> _ModelT:
|
|
162
|
-
if
|
|
163
|
-
return model.
|
|
164
|
-
return model.
|
|
163
|
+
if PYDANTIC_V1:
|
|
164
|
+
return model.parse_obj(data) # pyright: ignore[reportDeprecated]
|
|
165
|
+
return model.model_validate(data)
|
|
165
166
|
|
|
166
167
|
|
|
167
168
|
# generic models
|
|
@@ -170,17 +171,16 @@ if TYPE_CHECKING:
|
|
|
170
171
|
class GenericModel(pydantic.BaseModel): ...
|
|
171
172
|
|
|
172
173
|
else:
|
|
173
|
-
if
|
|
174
|
+
if PYDANTIC_V1:
|
|
175
|
+
import pydantic.generics
|
|
176
|
+
|
|
177
|
+
class GenericModel(pydantic.generics.GenericModel, pydantic.BaseModel): ...
|
|
178
|
+
else:
|
|
174
179
|
# there no longer needs to be a distinction in v2 but
|
|
175
180
|
# we still have to create our own subclass to avoid
|
|
176
181
|
# inconsistent MRO ordering errors
|
|
177
182
|
class GenericModel(pydantic.BaseModel): ...
|
|
178
183
|
|
|
179
|
-
else:
|
|
180
|
-
import pydantic.generics
|
|
181
|
-
|
|
182
|
-
class GenericModel(pydantic.generics.GenericModel, pydantic.BaseModel): ...
|
|
183
|
-
|
|
184
184
|
|
|
185
185
|
# cached properties
|
|
186
186
|
if TYPE_CHECKING:
|