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.
Files changed (374) hide show
  1. samplehc-0.11.0/.release-please-manifest.json +3 -0
  2. {samplehc-0.10.0 → samplehc-0.11.0}/CHANGELOG.md +25 -0
  3. {samplehc-0.10.0 → samplehc-0.11.0}/PKG-INFO +1 -1
  4. {samplehc-0.10.0 → samplehc-0.11.0}/api.md +33 -89
  5. {samplehc-0.10.0 → samplehc-0.11.0}/pyproject.toml +53 -2
  6. {samplehc-0.10.0 → samplehc-0.11.0}/requirements-dev.lock +0 -1
  7. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_base_client.py +3 -3
  8. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_compat.py +48 -48
  9. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_models.py +40 -40
  10. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_types.py +35 -1
  11. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/__init__.py +9 -2
  12. samplehc-0.11.0/src/samplehc/_utils/_compat.py +45 -0
  13. samplehc-0.11.0/src/samplehc/_utils/_datetime_parse.py +136 -0
  14. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_transform.py +11 -1
  15. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_typing.py +6 -1
  16. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_utils.py +0 -1
  17. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_version.py +1 -1
  18. samplehc-0.11.0/src/samplehc/resources/v2/browser_agents/__init__.py +33 -0
  19. {samplehc-0.10.0/src/samplehc/resources/v2 → samplehc-0.11.0/src/samplehc/resources/v2/browser_agents}/browser_agents.py +40 -8
  20. samplehc-0.11.0/src/samplehc/resources/v2/browser_agents/runs/__init__.py +33 -0
  21. samplehc-0.11.0/src/samplehc/resources/v2/browser_agents/runs/help_requests.py +191 -0
  22. samplehc-0.11.0/src/samplehc/resources/v2/browser_agents/runs/runs.py +102 -0
  23. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/clearinghouse/clearinghouse.py +4 -4
  24. {samplehc-0.10.0/src/samplehc/resources/v2/events → samplehc-0.11.0/src/samplehc/resources/v2}/events.py +8 -40
  25. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/__init__.py +28 -0
  26. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/careviso.py +10 -10
  27. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/integrations.py +64 -0
  28. samplehc-0.11.0/src/samplehc/resources/v2/integrations/salesforce.py +193 -0
  29. {samplehc-0.10.0/src/samplehc/resources/v2/events → samplehc-0.11.0/src/samplehc/resources/v2}/integrations/xcures.py +7 -7
  30. samplehc-0.11.0/src/samplehc/resources/v2/ledger/__init__.py +47 -0
  31. samplehc-0.10.0/src/samplehc/resources/v2/ledger/orders.py → samplehc-0.11.0/src/samplehc/resources/v2/ledger/account.py +120 -82
  32. samplehc-0.11.0/src/samplehc/resources/v2/ledger/entry.py +382 -0
  33. samplehc-0.11.0/src/samplehc/resources/v2/ledger/ledger.py +134 -0
  34. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/v2.py +16 -16
  35. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/__init__.py +0 -28
  36. samplehc-0.11.0/src/samplehc/types/v2/browser_agents/runs/__init__.py +6 -0
  37. samplehc-0.11.0/src/samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py +18 -0
  38. samplehc-0.11.0/src/samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +30 -0
  39. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/claim_submit_params.py +10 -9
  40. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +3 -2
  41. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_check_eligibility_params.py +2 -2
  42. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/communication_send_letter_params.py +4 -3
  43. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_classify_params.py +3 -2
  44. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_generate_csv_params.py +3 -2
  45. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/legacy_extract_params.py +8 -7
  46. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/__init__.py +2 -0
  47. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +6 -5
  48. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +3 -2
  49. samplehc-0.11.0/src/samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +22 -0
  50. samplehc-0.11.0/src/samplehc/types/v2/ledger/__init__.py +10 -0
  51. samplehc-0.11.0/src/samplehc/types/v2/ledger/account_writeoff_params.py +24 -0
  52. samplehc-0.11.0/src/samplehc/types/v2/ledger/account_writeoff_response.py +12 -0
  53. samplehc-0.11.0/src/samplehc/types/v2/ledger/entry_post_params.py +61 -0
  54. samplehc-0.11.0/src/samplehc/types/v2/ledger/entry_post_response.py +10 -0
  55. samplehc-0.11.0/src/samplehc/types/v2/ledger/entry_reverse_params.py +19 -0
  56. samplehc-0.11.0/src/samplehc/types/v2/ledger/entry_reverse_response.py +10 -0
  57. samplehc-0.11.0/tests/api_resources/v2/browser_agents/runs/test_help_requests.py +164 -0
  58. samplehc-0.11.0/tests/api_resources/v2/integrations/test_salesforce.py +147 -0
  59. {samplehc-0.10.0/tests/api_resources/v2/events → samplehc-0.11.0/tests/api_resources/v2}/integrations/test_xcures.py +10 -10
  60. samplehc-0.11.0/tests/api_resources/v2/ledger/test_account.py +267 -0
  61. samplehc-0.11.0/tests/api_resources/v2/ledger/test_entry.py +249 -0
  62. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_client.py +6 -47
  63. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_models.py +24 -24
  64. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_transform.py +8 -8
  65. samplehc-0.11.0/tests/test_utils/test_datetime_parse.py +110 -0
  66. {samplehc-0.10.0 → samplehc-0.11.0}/tests/utils.py +13 -5
  67. samplehc-0.10.0/.release-please-manifest.json +0 -3
  68. samplehc-0.10.0/mypy.ini +0 -50
  69. samplehc-0.10.0/src/samplehc/resources/v2/events/__init__.py +0 -33
  70. samplehc-0.10.0/src/samplehc/resources/v2/events/integrations/__init__.py +0 -33
  71. samplehc-0.10.0/src/samplehc/resources/v2/events/integrations/integrations.py +0 -102
  72. samplehc-0.10.0/src/samplehc/resources/v2/ledger/__init__.py +0 -75
  73. samplehc-0.10.0/src/samplehc/resources/v2/ledger/institutions/__init__.py +0 -33
  74. samplehc-0.10.0/src/samplehc/resources/v2/ledger/institutions/institutions.py +0 -258
  75. samplehc-0.10.0/src/samplehc/resources/v2/ledger/institutions/orders.py +0 -169
  76. samplehc-0.10.0/src/samplehc/resources/v2/ledger/insurance.py +0 -141
  77. samplehc-0.10.0/src/samplehc/resources/v2/ledger/ledger.py +0 -1656
  78. samplehc-0.10.0/src/samplehc/resources/v2/ledger/patients.py +0 -141
  79. samplehc-0.10.0/src/samplehc/types/v2/events/integrations/__init__.py +0 -5
  80. samplehc-0.10.0/src/samplehc/types/v2/ledger/__init__.py +0 -21
  81. samplehc-0.10.0/src/samplehc/types/v2/ledger/institution_list_outstanding_accounts_response.py +0 -25
  82. samplehc-0.10.0/src/samplehc/types/v2/ledger/institution_retrieve_outstanding_orders_response.py +0 -25
  83. samplehc-0.10.0/src/samplehc/types/v2/ledger/institutions/__init__.py +0 -5
  84. samplehc-0.10.0/src/samplehc/types/v2/ledger/institutions/order_retrieve_balance_response.py +0 -12
  85. samplehc-0.10.0/src/samplehc/types/v2/ledger/insurance_list_outstanding_accounts_response.py +0 -25
  86. samplehc-0.10.0/src/samplehc/types/v2/ledger/order_retrieve_balances_response.py +0 -31
  87. samplehc-0.10.0/src/samplehc/types/v2/ledger/order_retrieve_batch_balances_params.py +0 -15
  88. samplehc-0.10.0/src/samplehc/types/v2/ledger/order_retrieve_batch_balances_response.py +0 -38
  89. samplehc-0.10.0/src/samplehc/types/v2/ledger/patient_list_outstanding_accounts_response.py +0 -22
  90. samplehc-0.10.0/src/samplehc/types/v2/ledger_assign_invoice_params.py +0 -34
  91. samplehc-0.10.0/src/samplehc/types/v2/ledger_assign_invoice_response.py +0 -12
  92. samplehc-0.10.0/src/samplehc/types/v2/ledger_claim_adjustment_params.py +0 -34
  93. samplehc-0.10.0/src/samplehc/types/v2/ledger_claim_adjustment_response.py +0 -12
  94. samplehc-0.10.0/src/samplehc/types/v2/ledger_claim_payment_params.py +0 -34
  95. samplehc-0.10.0/src/samplehc/types/v2/ledger_claim_payment_response.py +0 -12
  96. samplehc-0.10.0/src/samplehc/types/v2/ledger_institution_adjustment_params.py +0 -31
  97. samplehc-0.10.0/src/samplehc/types/v2/ledger_institution_adjustment_response.py +0 -12
  98. samplehc-0.10.0/src/samplehc/types/v2/ledger_institution_payment_params.py +0 -31
  99. samplehc-0.10.0/src/samplehc/types/v2/ledger_institution_payment_response.py +0 -12
  100. samplehc-0.10.0/src/samplehc/types/v2/ledger_new_order_params.py +0 -22
  101. samplehc-0.10.0/src/samplehc/types/v2/ledger_new_order_response.py +0 -12
  102. samplehc-0.10.0/src/samplehc/types/v2/ledger_order_writeoff_params.py +0 -28
  103. samplehc-0.10.0/src/samplehc/types/v2/ledger_order_writeoff_response.py +0 -12
  104. samplehc-0.10.0/src/samplehc/types/v2/ledger_patient_adjustment_params.py +0 -31
  105. samplehc-0.10.0/src/samplehc/types/v2/ledger_patient_adjustment_response.py +0 -12
  106. samplehc-0.10.0/src/samplehc/types/v2/ledger_patient_payment_params.py +0 -28
  107. samplehc-0.10.0/src/samplehc/types/v2/ledger_patient_payment_response.py +0 -12
  108. samplehc-0.10.0/src/samplehc/types/v2/ledger_post_remittance_accepted_params.py +0 -37
  109. samplehc-0.10.0/src/samplehc/types/v2/ledger_post_remittance_accepted_response.py +0 -12
  110. samplehc-0.10.0/src/samplehc/types/v2/ledger_reverse_entry_params.py +0 -12
  111. samplehc-0.10.0/src/samplehc/types/v2/ledger_reverse_entry_response.py +0 -12
  112. samplehc-0.10.0/tests/api_resources/v2/ledger/institutions/test_orders.py +0 -128
  113. samplehc-0.10.0/tests/api_resources/v2/ledger/test_institutions.py +0 -167
  114. samplehc-0.10.0/tests/api_resources/v2/ledger/test_insurance.py +0 -80
  115. samplehc-0.10.0/tests/api_resources/v2/ledger/test_orders.py +0 -179
  116. samplehc-0.10.0/tests/api_resources/v2/ledger/test_patients.py +0 -80
  117. samplehc-0.10.0/tests/api_resources/v2/test_ledger.py +0 -1285
  118. samplehc-0.10.0/tests/api_resources/v2/workflow_runs/__init__.py +0 -1
  119. {samplehc-0.10.0 → samplehc-0.11.0}/.gitignore +0 -0
  120. {samplehc-0.10.0 → samplehc-0.11.0}/CONTRIBUTING.md +0 -0
  121. {samplehc-0.10.0 → samplehc-0.11.0}/LICENSE +0 -0
  122. {samplehc-0.10.0 → samplehc-0.11.0}/README.md +0 -0
  123. {samplehc-0.10.0 → samplehc-0.11.0}/SECURITY.md +0 -0
  124. {samplehc-0.10.0 → samplehc-0.11.0}/bin/check-release-environment +0 -0
  125. {samplehc-0.10.0 → samplehc-0.11.0}/bin/publish-pypi +0 -0
  126. {samplehc-0.10.0 → samplehc-0.11.0}/examples/.keep +0 -0
  127. {samplehc-0.10.0 → samplehc-0.11.0}/noxfile.py +0 -0
  128. {samplehc-0.10.0 → samplehc-0.11.0}/release-please-config.json +0 -0
  129. {samplehc-0.10.0 → samplehc-0.11.0}/requirements.lock +0 -0
  130. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/__init__.py +0 -0
  131. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_client.py +0 -0
  132. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_constants.py +0 -0
  133. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_exceptions.py +0 -0
  134. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_files.py +0 -0
  135. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_qs.py +0 -0
  136. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_resource.py +0 -0
  137. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_response.py +0 -0
  138. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_streaming.py +0 -0
  139. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_logs.py +0 -0
  140. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_proxy.py +0 -0
  141. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_reflection.py +0 -0
  142. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_resources_proxy.py +0 -0
  143. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_streams.py +0 -0
  144. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/_utils/_sync.py +0 -0
  145. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/lib/.keep +0 -0
  146. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/py.typed +0 -0
  147. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/__init__.py +0 -0
  148. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v1/__init__.py +0 -0
  149. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v1/v1.py +0 -0
  150. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/__init__.py +0 -0
  151. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/async_results.py +0 -0
  152. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/browser_automation/__init__.py +0 -0
  153. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/browser_automation/availity.py +0 -0
  154. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/browser_automation/browser_automation.py +0 -0
  155. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/clearinghouse/__init__.py +0 -0
  156. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/clearinghouse/claim.py +0 -0
  157. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/clearinghouse/payers.py +0 -0
  158. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/communication.py +0 -0
  159. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/database.py +0 -0
  160. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/__init__.py +0 -0
  161. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/documents.py +0 -0
  162. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/formats.py +0 -0
  163. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/legacy.py +0 -0
  164. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/pdf_template.py +0 -0
  165. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/documents/templates.py +0 -0
  166. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/hie/__init__.py +0 -0
  167. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/hie/adt.py +0 -0
  168. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/hie/documents.py +0 -0
  169. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/hie/hie.py +0 -0
  170. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/bank/__init__.py +0 -0
  171. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/bank/bank.py +0 -0
  172. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/bank/transactions.py +0 -0
  173. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/glidian/__init__.py +0 -0
  174. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/glidian/glidian.py +0 -0
  175. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -0
  176. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +0 -0
  177. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +0 -0
  178. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/kno2/__init__.py +0 -0
  179. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/kno2/kno2.py +0 -0
  180. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/kno2/messages.py +0 -0
  181. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/integrations/snowflake.py +0 -0
  182. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/policies.py +0 -0
  183. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/tasks/__init__.py +0 -0
  184. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/tasks/state.py +0 -0
  185. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/tasks/tasks.py +0 -0
  186. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/workflow_runs/__init__.py +0 -0
  187. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/workflow_runs/step.py +0 -0
  188. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/workflow_runs/workflow_runs.py +0 -0
  189. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/resources/v2/workflows.py +0 -0
  190. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/__init__.py +0 -0
  191. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v1/__init__.py +0 -0
  192. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v1_query_audit_logs_params.py +0 -0
  193. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v1_query_audit_logs_response.py +0 -0
  194. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v1_sql_execute_params.py +0 -0
  195. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v1_sql_execute_response.py +0 -0
  196. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/async_result_retrieve_response.py +0 -0
  197. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/async_result_sleep_params.py +0 -0
  198. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/async_result_sleep_response.py +0 -0
  199. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/browser_agent_invoke_params.py +0 -0
  200. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/browser_agent_invoke_response.py +0 -0
  201. {samplehc-0.10.0/src/samplehc/types/v2/events → samplehc-0.11.0/src/samplehc/types/v2/browser_agents}/__init__.py +0 -0
  202. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/browser_automation/__init__.py +0 -0
  203. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/browser_automation/availity_submit_appeal_params.py +0 -0
  204. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/browser_automation/availity_submit_appeal_response.py +0 -0
  205. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/__init__.py +0 -0
  206. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/claim_submit_response.py +0 -0
  207. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/payer_list_response.py +0 -0
  208. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/payer_search_params.py +0 -0
  209. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse/payer_search_response.py +0 -0
  210. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_check_claim_status_params.py +0 -0
  211. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_check_eligibility_response.py +0 -0
  212. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_coordination_of_benefits_params.py +0 -0
  213. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_run_discovery_params.py +0 -0
  214. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/clearinghouse_run_discovery_response.py +0 -0
  215. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/communication_send_email_params.py +0 -0
  216. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/communication_send_fax_params.py +0 -0
  217. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/communication_send_fax_response.py +0 -0
  218. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/communication_send_letter_response.py +0 -0
  219. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/database_execute_sql_params.py +0 -0
  220. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/database_execute_sql_response.py +0 -0
  221. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_classify_response.py +0 -0
  222. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_combine_params.py +0 -0
  223. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_combine_response.py +0 -0
  224. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_create_from_splits_params.py +0 -0
  225. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_create_from_splits_response.py +0 -0
  226. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_extract_params.py +0 -0
  227. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_extract_response.py +0 -0
  228. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_generate_csv_response.py +0 -0
  229. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_presigned_upload_url_params.py +0 -0
  230. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_presigned_upload_url_response.py +0 -0
  231. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_retrieve_csv_content_response.py +0 -0
  232. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_retrieve_metadata_response.py +0 -0
  233. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_retrieve_response.py +0 -0
  234. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_search_params.py +0 -0
  235. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_search_response.py +0 -0
  236. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_split_params.py +0 -0
  237. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_split_response.py +0 -0
  238. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_transform_json_to_html_params.py +0 -0
  239. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_transform_json_to_html_response.py +0 -0
  240. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/document_unzip_response.py +0 -0
  241. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/__init__.py +0 -0
  242. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/format_create_pdf_params.py +0 -0
  243. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/format_create_pdf_response.py +0 -0
  244. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/legacy_extract_response.py +0 -0
  245. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/legacy_reason_params.py +0 -0
  246. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/legacy_reason_response.py +0 -0
  247. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +0 -0
  248. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/template_generate_document_async_params.py +0 -0
  249. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/template_generate_document_async_response.py +0 -0
  250. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/template_render_document_params.py +0 -0
  251. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/documents/template_render_document_response.py +0 -0
  252. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/event_emit_params.py +0 -0
  253. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/event_emit_response.py +0 -0
  254. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/hie/__init__.py +0 -0
  255. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/hie/adt_subscribe_params.py +0 -0
  256. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/hie/document_query_params.py +0 -0
  257. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/hie/document_query_response.py +0 -0
  258. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/hie/document_upload_params.py +0 -0
  259. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/bank/__init__.py +0 -0
  260. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/bank/transaction_sync_params.py +0 -0
  261. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/bank/transaction_sync_response.py +0 -0
  262. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/careviso_get_payers_response.py +0 -0
  263. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/__init__.py +0 -0
  264. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_params.py +0 -0
  265. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +0 -0
  266. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +0 -0
  267. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +0 -0
  268. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_update_record_params.py +0 -0
  269. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +0 -0
  270. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorizations/__init__.py +0 -0
  271. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +0 -0
  272. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +0 -0
  273. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_get_submission_requirements_params.py +0 -0
  274. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_get_submission_requirements_response.py +0 -0
  275. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_list_payers_params.py +0 -0
  276. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_list_payers_response.py +0 -0
  277. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_list_services_params.py +0 -0
  278. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/glidian_list_services_response.py +0 -0
  279. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/kno2/__init__.py +0 -0
  280. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +0 -0
  281. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/kno2/message_retrieve_response.py +0 -0
  282. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/snowflake_query_params.py +0 -0
  283. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/integrations/snowflake_query_response.py +0 -0
  284. {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
  285. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_companies_params.py +0 -0
  286. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_companies_response.py +0 -0
  287. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_params.py +0 -0
  288. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_plans_params.py +0 -0
  289. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_plans_response.py +0 -0
  290. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_list_response.py +0 -0
  291. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_retrieve_presigned_url_response.py +0 -0
  292. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/policy_retrieve_text_response.py +0 -0
  293. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_cancel_response.py +0 -0
  294. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_complete_params.py +0 -0
  295. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_complete_response.py +0 -0
  296. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_get_suspended_payload_response.py +0 -0
  297. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_retrieve_response.py +0 -0
  298. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_retry_response.py +0 -0
  299. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_update_screen_time_params.py +0 -0
  300. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/task_update_screen_time_response.py +0 -0
  301. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/tasks/__init__.py +0 -0
  302. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/tasks/state_get_response.py +0 -0
  303. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/tasks/state_update_params.py +0 -0
  304. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/tasks/state_update_response.py +0 -0
  305. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_deploy_response.py +0 -0
  306. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_query_params.py +0 -0
  307. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_query_response.py +0 -0
  308. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_run_get_start_data_response.py +0 -0
  309. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_run_resume_when_complete_params.py +0 -0
  310. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_run_resume_when_complete_response.py +0 -0
  311. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_run_retrieve_response.py +0 -0
  312. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_runs/__init__.py +0 -0
  313. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_runs/step_get_output_response.py +0 -0
  314. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_start_params.py +0 -0
  315. {samplehc-0.10.0 → samplehc-0.11.0}/src/samplehc/types/v2/workflow_start_response.py +0 -0
  316. {samplehc-0.10.0 → samplehc-0.11.0}/tests/__init__.py +0 -0
  317. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/__init__.py +0 -0
  318. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/test_v1.py +0 -0
  319. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v1/__init__.py +0 -0
  320. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/__init__.py +0 -0
  321. {samplehc-0.10.0/tests/api_resources/v2/browser_automation → samplehc-0.11.0/tests/api_resources/v2/browser_agents}/__init__.py +0 -0
  322. {samplehc-0.10.0/tests/api_resources/v2/clearinghouse → samplehc-0.11.0/tests/api_resources/v2/browser_agents/runs}/__init__.py +0 -0
  323. {samplehc-0.10.0/tests/api_resources/v2/documents → samplehc-0.11.0/tests/api_resources/v2/browser_automation}/__init__.py +0 -0
  324. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/browser_automation/test_availity.py +0 -0
  325. {samplehc-0.10.0/tests/api_resources/v2/events → samplehc-0.11.0/tests/api_resources/v2/clearinghouse}/__init__.py +0 -0
  326. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/clearinghouse/test_claim.py +0 -0
  327. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/clearinghouse/test_payers.py +0 -0
  328. {samplehc-0.10.0/tests/api_resources/v2/events/integrations → samplehc-0.11.0/tests/api_resources/v2/documents}/__init__.py +0 -0
  329. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/documents/test_formats.py +0 -0
  330. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/documents/test_legacy.py +0 -0
  331. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/documents/test_pdf_template.py +0 -0
  332. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/documents/test_templates.py +0 -0
  333. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/hie/__init__.py +0 -0
  334. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/hie/test_adt.py +0 -0
  335. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/hie/test_documents.py +0 -0
  336. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/__init__.py +0 -0
  337. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/bank/__init__.py +0 -0
  338. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/bank/test_transactions.py +0 -0
  339. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/glidian/__init__.py +0 -0
  340. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/glidian/prior_authorizations/__init__.py +0 -0
  341. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/glidian/prior_authorizations/test_clinical_questions.py +0 -0
  342. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/glidian/test_prior_authorizations.py +0 -0
  343. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/kno2/__init__.py +0 -0
  344. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/kno2/test_messages.py +0 -0
  345. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/test_careviso.py +0 -0
  346. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/test_glidian.py +0 -0
  347. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/integrations/test_snowflake.py +0 -0
  348. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/ledger/__init__.py +0 -0
  349. {samplehc-0.10.0/tests/api_resources/v2/ledger/institutions → samplehc-0.11.0/tests/api_resources/v2/tasks}/__init__.py +0 -0
  350. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/tasks/test_state.py +0 -0
  351. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_async_results.py +0 -0
  352. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_browser_agents.py +0 -0
  353. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_clearinghouse.py +0 -0
  354. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_communication.py +0 -0
  355. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_database.py +0 -0
  356. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_documents.py +0 -0
  357. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_events.py +0 -0
  358. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_policies.py +0 -0
  359. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_tasks.py +0 -0
  360. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_workflow_runs.py +0 -0
  361. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/test_workflows.py +0 -0
  362. {samplehc-0.10.0/tests/api_resources/v2/tasks → samplehc-0.11.0/tests/api_resources/v2/workflow_runs}/__init__.py +0 -0
  363. {samplehc-0.10.0 → samplehc-0.11.0}/tests/api_resources/v2/workflow_runs/test_step.py +0 -0
  364. {samplehc-0.10.0 → samplehc-0.11.0}/tests/conftest.py +0 -0
  365. {samplehc-0.10.0 → samplehc-0.11.0}/tests/sample_file.txt +0 -0
  366. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_deepcopy.py +0 -0
  367. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_extract_files.py +0 -0
  368. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_files.py +0 -0
  369. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_qs.py +0 -0
  370. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_required_args.py +0 -0
  371. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_response.py +0 -0
  372. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_streaming.py +0 -0
  373. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_utils/test_proxy.py +0 -0
  374. {samplehc-0.10.0 → samplehc-0.11.0}/tests/test_utils/test_typing.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.11.0"
3
+ }
@@ -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.10.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
- Types:
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 PatientListOutstandingAccountsResponse
270
+ from samplehc.types.v2.ledger import EntryPostResponse, EntryReverseResponse
343
271
  ```
344
272
 
345
273
  Methods:
346
274
 
347
- - <code title="get /api/v2/ledger/patients/outstanding-accounts">client.v2.ledger.patients.<a href="./src/samplehc/resources/v2/ledger/patients.py">list_outstanding_accounts</a>() -> <a href="./src/samplehc/types/v2/ledger/patient_list_outstanding_accounts_response.py">PatientListOutstandingAccountsResponse</a></code>
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
- ### Orders
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/orders/{orderId}/balances">client.v2.ledger.orders.<a href="./src/samplehc/resources/v2/ledger/orders.py">retrieve_balances</a>(order_id) -> <a href="./src/samplehc/types/v2/ledger/order_retrieve_balances_response.py">OrderRetrieveBalancesResponse</a></code>
363
- - <code title="post /api/v2/ledger/orders/batch-balances">client.v2.ledger.orders.<a href="./src/samplehc/resources/v2/ledger/orders.py">retrieve_batch_balances</a>(\*\*<a href="src/samplehc/types/v2/ledger/order_retrieve_batch_balances_params.py">params</a>) -> <a href="./src/samplehc/types/v2/ledger/order_retrieve_batch_balances_response.py">OrderRetrieveBatchBalancesResponse</a></code>
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/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>
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
- ### Integrations
430
+ Types:
491
431
 
492
- #### Xcures
432
+ ```python
433
+ from samplehc.types.v2 import BrowserAgentInvokeResponse
434
+ ```
493
435
 
494
436
  Methods:
495
437
 
496
- - <code title="post /api/v2/integrations/xcures/{slug}/request">client.v2.events.integrations.xcures.<a href="./src/samplehc/resources/v2/events/integrations/xcures.py">make_request</a>(slug, \*\*<a href="src/samplehc/types/v2/events/integrations/xcure_make_request_params.py">params</a>) -> object</code>
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
- ## BrowserAgents
440
+ ### Runs
441
+
442
+ #### HelpRequests
499
443
 
500
444
  Types:
501
445
 
502
446
  ```python
503
- from samplehc.types.v2 import BrowserAgentInvokeResponse
447
+ from samplehc.types.v2.browser_agents.runs import HelpRequestResolveResponse
504
448
  ```
505
449
 
506
450
  Methods:
507
451
 
508
- - <code title="post /api/v2/browser-agents/{slug}/invoke">client.v2.browser_agents.<a href="./src/samplehc/resources/v2/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>
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.10.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"
@@ -75,7 +75,6 @@ multidict==6.4.4
75
75
  mypy==1.14.1
76
76
  mypy-extensions==1.0.0
77
77
  # via mypy
78
- nest-asyncio==1.6.0
79
78
  nodeenv==1.8.0
80
79
  # via pyright
81
80
  nox==2023.4.22
@@ -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 PYDANTIC_V2, model_copy, model_dump
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 PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None:
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 PYDANTIC_V2 and getattr(self, "__pydantic_private__", None) is None:
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
- PYDANTIC_V2 = pydantic.VERSION.startswith("2.")
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
- if PYDANTIC_V2:
48
- from pydantic.v1.typing import (
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.v1.datetime_parse import parse_date as parse_date, parse_datetime as parse_datetime
55
+ from pydantic.datetime_parse import parse_date as parse_date, parse_datetime as parse_datetime
56
56
  else:
57
- from pydantic.typing import (
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 PYDANTIC_V2:
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 PYDANTIC_V2:
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 PYDANTIC_V2:
88
- return field.is_required()
89
- return field.required # type: ignore
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 PYDANTIC_V2:
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 PYDANTIC_V2:
105
- return field.annotation
106
- return field.outer_type_ # type: ignore
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 PYDANTIC_V2:
111
- return model.model_config
112
- return model.__config__ # type: ignore
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 PYDANTIC_V2:
117
- return model.model_fields
118
- return model.__fields__ # type: ignore
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 PYDANTIC_V2:
123
- return model.model_copy(deep=deep)
124
- return model.copy(deep=deep) # type: ignore
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 PYDANTIC_V2:
129
- return model.model_dump_json(indent=indent)
130
- return model.json(indent=indent) # type: ignore
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 PYDANTIC_V2 or hasattr(model, "model_dump"):
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=warnings if PYDANTIC_V2 else True,
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 PYDANTIC_V2:
163
- return model.model_validate(data)
164
- return model.parse_obj(data) # pyright: ignore[reportDeprecated]
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 PYDANTIC_V2:
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: