BasisTheoryClient 0.2.0__tar.gz → 0.3.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 (164) hide show
  1. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/PKG-INFO +1 -1
  2. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/pyproject.toml +1 -1
  3. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/__init__.py +6 -0
  4. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/client.py +4 -0
  5. basistheoryclient-0.3.0/src/basis_theory/enrichments/client.py +203 -0
  6. basistheoryclient-0.3.0/src/basis_theory/tenants/__init__.py +5 -0
  7. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/tenants/client.py +4 -0
  8. basistheoryclient-0.3.0/src/basis_theory/tenants/owner/client.py +172 -0
  9. basistheoryclient-0.3.0/src/basis_theory/threeds/__init__.py +5 -0
  10. basistheoryclient-0.3.0/src/basis_theory/threeds/client.py +248 -0
  11. {basistheoryclient-0.2.0/src/basis_theory/threeds → basistheoryclient-0.3.0/src/basis_theory/threeds/sessions}/client.py +38 -46
  12. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/tokens/client.py +16 -40
  13. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/__init__.py +4 -0
  14. basistheoryclient-0.3.0/src/basis_theory/types/create_three_ds_session_response.py +27 -0
  15. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_authentication.py +2 -0
  16. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_session.py +3 -0
  17. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/token.py +4 -0
  18. basistheoryclient-0.3.0/src/basis_theory/types/token_extras.py +19 -0
  19. basistheoryclient-0.3.0/src/basis_theory/webhooks/events/__init__.py +2 -0
  20. basistheoryclient-0.3.0/src/basis_theory/webhooks/signing_key/__init__.py +2 -0
  21. basistheoryclient-0.2.0/src/basis_theory/tenants/__init__.py +0 -5
  22. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/README.md +0 -0
  23. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/application_keys/__init__.py +0 -0
  24. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/application_keys/client.py +0 -0
  25. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/application_templates/__init__.py +0 -0
  26. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/application_templates/client.py +0 -0
  27. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/applications/__init__.py +0 -0
  28. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/applications/client.py +0 -0
  29. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/__init__.py +0 -0
  30. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/api_error.py +0 -0
  31. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/client_wrapper.py +0 -0
  32. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/datetime_utils.py +0 -0
  33. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/file.py +0 -0
  34. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/http_client.py +0 -0
  35. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/jsonable_encoder.py +0 -0
  36. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/pagination.py +0 -0
  37. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/pydantic_utilities.py +0 -0
  38. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/query_encoder.py +0 -0
  39. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/remove_none_from_dict.py +0 -0
  40. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/request_options.py +0 -0
  41. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/core/serialization.py +0 -0
  42. {basistheoryclient-0.2.0/src/basis_theory/logs → basistheoryclient-0.3.0/src/basis_theory/enrichments}/__init__.py +0 -0
  43. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/environment.py +0 -0
  44. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/errors/__init__.py +0 -0
  45. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/errors/bad_request_error.py +0 -0
  46. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/errors/conflict_error.py +0 -0
  47. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/errors/forbidden_error.py +0 -0
  48. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/errors/not_found_error.py +0 -0
  49. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/errors/unauthorized_error.py +0 -0
  50. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/errors/unprocessable_entity_error.py +0 -0
  51. {basistheoryclient-0.2.0/src/basis_theory/permissions → basistheoryclient-0.3.0/src/basis_theory/logs}/__init__.py +0 -0
  52. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/logs/client.py +0 -0
  53. {basistheoryclient-0.2.0/src/basis_theory/proxies → basistheoryclient-0.3.0/src/basis_theory/permissions}/__init__.py +0 -0
  54. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/permissions/client.py +0 -0
  55. {basistheoryclient-0.2.0/src/basis_theory/reactorformulas → basistheoryclient-0.3.0/src/basis_theory/proxies}/__init__.py +0 -0
  56. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/proxies/client.py +0 -0
  57. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/py.typed +0 -0
  58. {basistheoryclient-0.2.0/src/basis_theory/reactors/results → basistheoryclient-0.3.0/src/basis_theory/reactorformulas}/__init__.py +0 -0
  59. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/reactorformulas/client.py +0 -0
  60. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/reactors/__init__.py +0 -0
  61. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/reactors/client.py +0 -0
  62. {basistheoryclient-0.2.0/src/basis_theory/roles → basistheoryclient-0.3.0/src/basis_theory/reactors/results}/__init__.py +0 -0
  63. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/reactors/results/client.py +0 -0
  64. {basistheoryclient-0.2.0/src/basis_theory/sessions → basistheoryclient-0.3.0/src/basis_theory/roles}/__init__.py +0 -0
  65. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/roles/client.py +0 -0
  66. {basistheoryclient-0.2.0/src/basis_theory/tenants/connections → basistheoryclient-0.3.0/src/basis_theory/sessions}/__init__.py +0 -0
  67. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/sessions/client.py +0 -0
  68. {basistheoryclient-0.2.0/src/basis_theory/tenants/invitations → basistheoryclient-0.3.0/src/basis_theory/tenants/connections}/__init__.py +0 -0
  69. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/tenants/connections/client.py +0 -0
  70. {basistheoryclient-0.2.0/src/basis_theory/tenants/members → basistheoryclient-0.3.0/src/basis_theory/tenants/invitations}/__init__.py +0 -0
  71. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/tenants/invitations/client.py +0 -0
  72. {basistheoryclient-0.2.0/src/basis_theory/tenants/self_ → basistheoryclient-0.3.0/src/basis_theory/tenants/members}/__init__.py +0 -0
  73. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/tenants/members/client.py +0 -0
  74. {basistheoryclient-0.2.0/src/basis_theory/threeds → basistheoryclient-0.3.0/src/basis_theory/tenants/owner}/__init__.py +0 -0
  75. {basistheoryclient-0.2.0/src/basis_theory/tokens → basistheoryclient-0.3.0/src/basis_theory/tenants/self_}/__init__.py +0 -0
  76. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/tenants/self_/client.py +0 -0
  77. {basistheoryclient-0.2.0/src/basis_theory/webhooks/events → basistheoryclient-0.3.0/src/basis_theory/threeds/sessions}/__init__.py +0 -0
  78. {basistheoryclient-0.2.0/src/basis_theory/webhooks/signing_key → basistheoryclient-0.3.0/src/basis_theory/tokens}/__init__.py +0 -0
  79. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/access_rule.py +0 -0
  80. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/application.py +0 -0
  81. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/application_key.py +0 -0
  82. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/application_paginated_list.py +0 -0
  83. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/application_template.py +0 -0
  84. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/bin_details.py +0 -0
  85. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/bin_details_bank.py +0 -0
  86. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/bin_details_country.py +0 -0
  87. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/bin_details_product.py +0 -0
  88. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/card_details.py +0 -0
  89. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/condition.py +0 -0
  90. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/create_session_response.py +0 -0
  91. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/create_tenant_connection_response.py +0 -0
  92. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/cursor_pagination.py +0 -0
  93. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/event_types.py +0 -0
  94. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/get_applications.py +0 -0
  95. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/get_logs.py +0 -0
  96. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/get_permissions.py +0 -0
  97. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/get_proxies.py +0 -0
  98. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/get_reactor_formulas.py +0 -0
  99. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/get_reactors.py +0 -0
  100. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/get_tenant_invitations.py +0 -0
  101. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/get_tenant_members.py +0 -0
  102. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/get_tokens.py +0 -0
  103. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/get_tokens_v2.py +0 -0
  104. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/log.py +0 -0
  105. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/log_entity_type.py +0 -0
  106. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/log_paginated_list.py +0 -0
  107. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/pagination.py +0 -0
  108. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/permission.py +0 -0
  109. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/privacy.py +0 -0
  110. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/problem_details.py +0 -0
  111. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/proxy.py +0 -0
  112. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/proxy_paginated_list.py +0 -0
  113. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/proxy_transform.py +0 -0
  114. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/public_key.py +0 -0
  115. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/react_response.py +0 -0
  116. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/reactor.py +0 -0
  117. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/reactor_formula.py +0 -0
  118. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/reactor_formula_configuration.py +0 -0
  119. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/reactor_formula_paginated_list.py +0 -0
  120. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/reactor_formula_request_parameter.py +0 -0
  121. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/reactor_paginated_list.py +0 -0
  122. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/role.py +0 -0
  123. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/string_string_key_value_pair.py +0 -0
  124. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/tenant.py +0 -0
  125. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/tenant_connection_options.py +0 -0
  126. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/tenant_invitation_response.py +0 -0
  127. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/tenant_invitation_response_paginated_list.py +0 -0
  128. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/tenant_invitation_status.py +0 -0
  129. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/tenant_member_response.py +0 -0
  130. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/tenant_member_response_paginated_list.py +0 -0
  131. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/tenant_usage_report.py +0 -0
  132. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_acs_rendering_type.py +0 -0
  133. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_address.py +0 -0
  134. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_cardholder_account_info.py +0 -0
  135. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_cardholder_authentication_info.py +0 -0
  136. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_cardholder_info.py +0 -0
  137. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_cardholder_phone_number.py +0 -0
  138. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_device_info.py +0 -0
  139. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_merchant_info.py +0 -0
  140. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_merchant_risk_info.py +0 -0
  141. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_message_extension.py +0 -0
  142. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_method.py +0 -0
  143. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_mobile_sdk_render_options.py +0 -0
  144. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_prior_authentication_info.py +0 -0
  145. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_purchase_info.py +0 -0
  146. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_requestor_info.py +0 -0
  147. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/three_ds_version.py +0 -0
  148. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/token_cursor_paginated_list.py +0 -0
  149. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/token_enrichments.py +0 -0
  150. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/token_metrics.py +0 -0
  151. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/token_paginated_list.py +0 -0
  152. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/token_report.py +0 -0
  153. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/update_privacy.py +0 -0
  154. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/user.py +0 -0
  155. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/validation_problem_details.py +0 -0
  156. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/webhook.py +0 -0
  157. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/webhook_list.py +0 -0
  158. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/webhook_list_pagination.py +0 -0
  159. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/types/webhook_status.py +0 -0
  160. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/version.py +0 -0
  161. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/webhooks/__init__.py +0 -0
  162. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/webhooks/client.py +0 -0
  163. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/webhooks/events/client.py +0 -0
  164. {basistheoryclient-0.2.0 → basistheoryclient-0.3.0}/src/basis_theory/webhooks/signing_key/client.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: BasisTheoryClient
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "BasisTheoryClient"
3
- version = "0.2.0"
3
+ version = "0.3.0"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  authors = []
@@ -14,6 +14,7 @@ from .types import (
14
14
  Condition,
15
15
  CreateSessionResponse,
16
16
  CreateTenantConnectionResponse,
17
+ CreateThreeDsSessionResponse,
17
18
  CursorPagination,
18
19
  EventTypes,
19
20
  GetApplications,
@@ -75,6 +76,7 @@ from .types import (
75
76
  Token,
76
77
  TokenCursorPaginatedList,
77
78
  TokenEnrichments,
79
+ TokenExtras,
78
80
  TokenMetrics,
79
81
  TokenPaginatedList,
80
82
  TokenReport,
@@ -98,6 +100,7 @@ from . import (
98
100
  application_keys,
99
101
  application_templates,
100
102
  applications,
103
+ enrichments,
101
104
  logs,
102
105
  permissions,
103
106
  proxies,
@@ -133,6 +136,7 @@ __all__ = [
133
136
  "ConflictError",
134
137
  "CreateSessionResponse",
135
138
  "CreateTenantConnectionResponse",
139
+ "CreateThreeDsSessionResponse",
136
140
  "CursorPagination",
137
141
  "EventTypes",
138
142
  "ForbiddenError",
@@ -196,6 +200,7 @@ __all__ = [
196
200
  "Token",
197
201
  "TokenCursorPaginatedList",
198
202
  "TokenEnrichments",
203
+ "TokenExtras",
199
204
  "TokenMetrics",
200
205
  "TokenPaginatedList",
201
206
  "TokenReport",
@@ -212,6 +217,7 @@ __all__ = [
212
217
  "application_keys",
213
218
  "application_templates",
214
219
  "applications",
220
+ "enrichments",
215
221
  "logs",
216
222
  "permissions",
217
223
  "proxies",
@@ -10,6 +10,7 @@ from .applications.client import ApplicationsClient
10
10
  from .application_keys.client import ApplicationKeysClient
11
11
  from .application_templates.client import ApplicationTemplatesClient
12
12
  from .tokens.client import TokensClient
13
+ from .enrichments.client import EnrichmentsClient
13
14
  from .logs.client import LogsClient
14
15
  from .permissions.client import PermissionsClient
15
16
  from .proxies.client import ProxiesClient
@@ -25,6 +26,7 @@ from .applications.client import AsyncApplicationsClient
25
26
  from .application_keys.client import AsyncApplicationKeysClient
26
27
  from .application_templates.client import AsyncApplicationTemplatesClient
27
28
  from .tokens.client import AsyncTokensClient
29
+ from .enrichments.client import AsyncEnrichmentsClient
28
30
  from .logs.client import AsyncLogsClient
29
31
  from .permissions.client import AsyncPermissionsClient
30
32
  from .proxies.client import AsyncProxiesClient
@@ -101,6 +103,7 @@ class BasisTheory:
101
103
  self.application_keys = ApplicationKeysClient(client_wrapper=self._client_wrapper)
102
104
  self.application_templates = ApplicationTemplatesClient(client_wrapper=self._client_wrapper)
103
105
  self.tokens = TokensClient(client_wrapper=self._client_wrapper)
106
+ self.enrichments = EnrichmentsClient(client_wrapper=self._client_wrapper)
104
107
  self.logs = LogsClient(client_wrapper=self._client_wrapper)
105
108
  self.permissions = PermissionsClient(client_wrapper=self._client_wrapper)
106
109
  self.proxies = ProxiesClient(client_wrapper=self._client_wrapper)
@@ -177,6 +180,7 @@ class AsyncBasisTheory:
177
180
  self.application_keys = AsyncApplicationKeysClient(client_wrapper=self._client_wrapper)
178
181
  self.application_templates = AsyncApplicationTemplatesClient(client_wrapper=self._client_wrapper)
179
182
  self.tokens = AsyncTokensClient(client_wrapper=self._client_wrapper)
183
+ self.enrichments = AsyncEnrichmentsClient(client_wrapper=self._client_wrapper)
180
184
  self.logs = AsyncLogsClient(client_wrapper=self._client_wrapper)
181
185
  self.permissions = AsyncPermissionsClient(client_wrapper=self._client_wrapper)
182
186
  self.proxies = AsyncProxiesClient(client_wrapper=self._client_wrapper)
@@ -0,0 +1,203 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from ..core.client_wrapper import SyncClientWrapper
5
+ from ..core.request_options import RequestOptions
6
+ from ..errors.bad_request_error import BadRequestError
7
+ from ..types.validation_problem_details import ValidationProblemDetails
8
+ from ..core.pydantic_utilities import parse_obj_as
9
+ from ..errors.unauthorized_error import UnauthorizedError
10
+ from ..types.problem_details import ProblemDetails
11
+ from ..errors.forbidden_error import ForbiddenError
12
+ from json.decoder import JSONDecodeError
13
+ from ..core.api_error import ApiError
14
+ from ..core.client_wrapper import AsyncClientWrapper
15
+
16
+ # this is used as the default value for optional parameters
17
+ OMIT = typing.cast(typing.Any, ...)
18
+
19
+
20
+ class EnrichmentsClient:
21
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
22
+ self._client_wrapper = client_wrapper
23
+
24
+ def bankaccountverify(
25
+ self,
26
+ *,
27
+ token_id: str,
28
+ country_code: typing.Optional[str] = OMIT,
29
+ routing_number: typing.Optional[str] = OMIT,
30
+ request_options: typing.Optional[RequestOptions] = None,
31
+ ) -> None:
32
+ """
33
+ Parameters
34
+ ----------
35
+ token_id : str
36
+
37
+ country_code : typing.Optional[str]
38
+
39
+ routing_number : typing.Optional[str]
40
+
41
+ request_options : typing.Optional[RequestOptions]
42
+ Request-specific configuration.
43
+
44
+ Returns
45
+ -------
46
+ None
47
+
48
+ Examples
49
+ --------
50
+ from basis_theory import BasisTheory
51
+
52
+ client = BasisTheory(
53
+ api_key="YOUR_API_KEY",
54
+ )
55
+ client.enrichments.bankaccountverify(
56
+ token_id="token_id",
57
+ )
58
+ """
59
+ _response = self._client_wrapper.httpx_client.request(
60
+ "enrichments/bank-account-verify",
61
+ method="POST",
62
+ json={
63
+ "token_id": token_id,
64
+ "country_code": country_code,
65
+ "routing_number": routing_number,
66
+ },
67
+ request_options=request_options,
68
+ omit=OMIT,
69
+ )
70
+ try:
71
+ if 200 <= _response.status_code < 300:
72
+ return
73
+ if _response.status_code == 400:
74
+ raise BadRequestError(
75
+ typing.cast(
76
+ ValidationProblemDetails,
77
+ parse_obj_as(
78
+ type_=ValidationProblemDetails, # type: ignore
79
+ object_=_response.json(),
80
+ ),
81
+ )
82
+ )
83
+ if _response.status_code == 401:
84
+ raise UnauthorizedError(
85
+ typing.cast(
86
+ ProblemDetails,
87
+ parse_obj_as(
88
+ type_=ProblemDetails, # type: ignore
89
+ object_=_response.json(),
90
+ ),
91
+ )
92
+ )
93
+ if _response.status_code == 403:
94
+ raise ForbiddenError(
95
+ typing.cast(
96
+ ProblemDetails,
97
+ parse_obj_as(
98
+ type_=ProblemDetails, # type: ignore
99
+ object_=_response.json(),
100
+ ),
101
+ )
102
+ )
103
+ _response_json = _response.json()
104
+ except JSONDecodeError:
105
+ raise ApiError(status_code=_response.status_code, body=_response.text)
106
+ raise ApiError(status_code=_response.status_code, body=_response_json)
107
+
108
+
109
+ class AsyncEnrichmentsClient:
110
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
111
+ self._client_wrapper = client_wrapper
112
+
113
+ async def bankaccountverify(
114
+ self,
115
+ *,
116
+ token_id: str,
117
+ country_code: typing.Optional[str] = OMIT,
118
+ routing_number: typing.Optional[str] = OMIT,
119
+ request_options: typing.Optional[RequestOptions] = None,
120
+ ) -> None:
121
+ """
122
+ Parameters
123
+ ----------
124
+ token_id : str
125
+
126
+ country_code : typing.Optional[str]
127
+
128
+ routing_number : typing.Optional[str]
129
+
130
+ request_options : typing.Optional[RequestOptions]
131
+ Request-specific configuration.
132
+
133
+ Returns
134
+ -------
135
+ None
136
+
137
+ Examples
138
+ --------
139
+ import asyncio
140
+
141
+ from basis_theory import AsyncBasisTheory
142
+
143
+ client = AsyncBasisTheory(
144
+ api_key="YOUR_API_KEY",
145
+ )
146
+
147
+
148
+ async def main() -> None:
149
+ await client.enrichments.bankaccountverify(
150
+ token_id="token_id",
151
+ )
152
+
153
+
154
+ asyncio.run(main())
155
+ """
156
+ _response = await self._client_wrapper.httpx_client.request(
157
+ "enrichments/bank-account-verify",
158
+ method="POST",
159
+ json={
160
+ "token_id": token_id,
161
+ "country_code": country_code,
162
+ "routing_number": routing_number,
163
+ },
164
+ request_options=request_options,
165
+ omit=OMIT,
166
+ )
167
+ try:
168
+ if 200 <= _response.status_code < 300:
169
+ return
170
+ if _response.status_code == 400:
171
+ raise BadRequestError(
172
+ typing.cast(
173
+ ValidationProblemDetails,
174
+ parse_obj_as(
175
+ type_=ValidationProblemDetails, # type: ignore
176
+ object_=_response.json(),
177
+ ),
178
+ )
179
+ )
180
+ if _response.status_code == 401:
181
+ raise UnauthorizedError(
182
+ typing.cast(
183
+ ProblemDetails,
184
+ parse_obj_as(
185
+ type_=ProblemDetails, # type: ignore
186
+ object_=_response.json(),
187
+ ),
188
+ )
189
+ )
190
+ if _response.status_code == 403:
191
+ raise ForbiddenError(
192
+ typing.cast(
193
+ ProblemDetails,
194
+ parse_obj_as(
195
+ type_=ProblemDetails, # type: ignore
196
+ object_=_response.json(),
197
+ ),
198
+ )
199
+ )
200
+ _response_json = _response.json()
201
+ except JSONDecodeError:
202
+ raise ApiError(status_code=_response.status_code, body=_response.text)
203
+ raise ApiError(status_code=_response.status_code, body=_response_json)
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from . import connections, invitations, members, owner, self_
4
+
5
+ __all__ = ["connections", "invitations", "members", "owner", "self_"]
@@ -4,11 +4,13 @@ from ..core.client_wrapper import SyncClientWrapper
4
4
  from .connections.client import ConnectionsClient
5
5
  from .invitations.client import InvitationsClient
6
6
  from .members.client import MembersClient
7
+ from .owner.client import OwnerClient
7
8
  from .self_.client import SelfClient
8
9
  from ..core.client_wrapper import AsyncClientWrapper
9
10
  from .connections.client import AsyncConnectionsClient
10
11
  from .invitations.client import AsyncInvitationsClient
11
12
  from .members.client import AsyncMembersClient
13
+ from .owner.client import AsyncOwnerClient
12
14
  from .self_.client import AsyncSelfClient
13
15
 
14
16
 
@@ -18,6 +20,7 @@ class TenantsClient:
18
20
  self.connections = ConnectionsClient(client_wrapper=self._client_wrapper)
19
21
  self.invitations = InvitationsClient(client_wrapper=self._client_wrapper)
20
22
  self.members = MembersClient(client_wrapper=self._client_wrapper)
23
+ self.owner = OwnerClient(client_wrapper=self._client_wrapper)
21
24
  self.self_ = SelfClient(client_wrapper=self._client_wrapper)
22
25
 
23
26
 
@@ -27,4 +30,5 @@ class AsyncTenantsClient:
27
30
  self.connections = AsyncConnectionsClient(client_wrapper=self._client_wrapper)
28
31
  self.invitations = AsyncInvitationsClient(client_wrapper=self._client_wrapper)
29
32
  self.members = AsyncMembersClient(client_wrapper=self._client_wrapper)
33
+ self.owner = AsyncOwnerClient(client_wrapper=self._client_wrapper)
30
34
  self.self_ = AsyncSelfClient(client_wrapper=self._client_wrapper)
@@ -0,0 +1,172 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ...core.client_wrapper import SyncClientWrapper
4
+ import typing
5
+ from ...core.request_options import RequestOptions
6
+ from ...types.tenant_member_response import TenantMemberResponse
7
+ from ...core.pydantic_utilities import parse_obj_as
8
+ from ...errors.unauthorized_error import UnauthorizedError
9
+ from ...types.problem_details import ProblemDetails
10
+ from ...errors.forbidden_error import ForbiddenError
11
+ from ...errors.not_found_error import NotFoundError
12
+ from json.decoder import JSONDecodeError
13
+ from ...core.api_error import ApiError
14
+ from ...core.client_wrapper import AsyncClientWrapper
15
+
16
+
17
+ class OwnerClient:
18
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
19
+ self._client_wrapper = client_wrapper
20
+
21
+ def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> TenantMemberResponse:
22
+ """
23
+ Parameters
24
+ ----------
25
+ request_options : typing.Optional[RequestOptions]
26
+ Request-specific configuration.
27
+
28
+ Returns
29
+ -------
30
+ TenantMemberResponse
31
+ Success
32
+
33
+ Examples
34
+ --------
35
+ from basis_theory import BasisTheory
36
+
37
+ client = BasisTheory(
38
+ api_key="YOUR_API_KEY",
39
+ )
40
+ client.tenants.owner.get()
41
+ """
42
+ _response = self._client_wrapper.httpx_client.request(
43
+ "tenants/self/owner",
44
+ method="GET",
45
+ request_options=request_options,
46
+ )
47
+ try:
48
+ if 200 <= _response.status_code < 300:
49
+ return typing.cast(
50
+ TenantMemberResponse,
51
+ parse_obj_as(
52
+ type_=TenantMemberResponse, # type: ignore
53
+ object_=_response.json(),
54
+ ),
55
+ )
56
+ if _response.status_code == 401:
57
+ raise UnauthorizedError(
58
+ typing.cast(
59
+ ProblemDetails,
60
+ parse_obj_as(
61
+ type_=ProblemDetails, # type: ignore
62
+ object_=_response.json(),
63
+ ),
64
+ )
65
+ )
66
+ if _response.status_code == 403:
67
+ raise ForbiddenError(
68
+ typing.cast(
69
+ ProblemDetails,
70
+ parse_obj_as(
71
+ type_=ProblemDetails, # type: ignore
72
+ object_=_response.json(),
73
+ ),
74
+ )
75
+ )
76
+ if _response.status_code == 404:
77
+ raise NotFoundError(
78
+ typing.cast(
79
+ typing.Optional[typing.Any],
80
+ parse_obj_as(
81
+ type_=typing.Optional[typing.Any], # type: ignore
82
+ object_=_response.json(),
83
+ ),
84
+ )
85
+ )
86
+ _response_json = _response.json()
87
+ except JSONDecodeError:
88
+ raise ApiError(status_code=_response.status_code, body=_response.text)
89
+ raise ApiError(status_code=_response.status_code, body=_response_json)
90
+
91
+
92
+ class AsyncOwnerClient:
93
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
94
+ self._client_wrapper = client_wrapper
95
+
96
+ async def get(self, *, request_options: typing.Optional[RequestOptions] = None) -> TenantMemberResponse:
97
+ """
98
+ Parameters
99
+ ----------
100
+ request_options : typing.Optional[RequestOptions]
101
+ Request-specific configuration.
102
+
103
+ Returns
104
+ -------
105
+ TenantMemberResponse
106
+ Success
107
+
108
+ Examples
109
+ --------
110
+ import asyncio
111
+
112
+ from basis_theory import AsyncBasisTheory
113
+
114
+ client = AsyncBasisTheory(
115
+ api_key="YOUR_API_KEY",
116
+ )
117
+
118
+
119
+ async def main() -> None:
120
+ await client.tenants.owner.get()
121
+
122
+
123
+ asyncio.run(main())
124
+ """
125
+ _response = await self._client_wrapper.httpx_client.request(
126
+ "tenants/self/owner",
127
+ method="GET",
128
+ request_options=request_options,
129
+ )
130
+ try:
131
+ if 200 <= _response.status_code < 300:
132
+ return typing.cast(
133
+ TenantMemberResponse,
134
+ parse_obj_as(
135
+ type_=TenantMemberResponse, # type: ignore
136
+ object_=_response.json(),
137
+ ),
138
+ )
139
+ if _response.status_code == 401:
140
+ raise UnauthorizedError(
141
+ typing.cast(
142
+ ProblemDetails,
143
+ parse_obj_as(
144
+ type_=ProblemDetails, # type: ignore
145
+ object_=_response.json(),
146
+ ),
147
+ )
148
+ )
149
+ if _response.status_code == 403:
150
+ raise ForbiddenError(
151
+ typing.cast(
152
+ ProblemDetails,
153
+ parse_obj_as(
154
+ type_=ProblemDetails, # type: ignore
155
+ object_=_response.json(),
156
+ ),
157
+ )
158
+ )
159
+ if _response.status_code == 404:
160
+ raise NotFoundError(
161
+ typing.cast(
162
+ typing.Optional[typing.Any],
163
+ parse_obj_as(
164
+ type_=typing.Optional[typing.Any], # type: ignore
165
+ object_=_response.json(),
166
+ ),
167
+ )
168
+ )
169
+ _response_json = _response.json()
170
+ except JSONDecodeError:
171
+ raise ApiError(status_code=_response.status_code, body=_response.text)
172
+ raise ApiError(status_code=_response.status_code, body=_response_json)
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from . import sessions
4
+
5
+ __all__ = ["sessions"]