ory-client 1.12.2__py3-none-any.whl → 1.16.10__py3-none-any.whl

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 (301) hide show
  1. ory_client/__init__.py +16 -3
  2. ory_client/api/courier_api.py +17 -15
  3. ory_client/api/events_api.py +30 -26
  4. ory_client/api/frontend_api.py +1677 -1064
  5. ory_client/api/identity_api.py +161 -126
  6. ory_client/api/jwk_api.py +51 -44
  7. ory_client/api/metadata_api.py +9 -8
  8. ory_client/api/o_auth2_api.py +236 -191
  9. ory_client/api/oidc_api.py +52 -45
  10. ory_client/api/permission_api.py +331 -32
  11. ory_client/api/project_api.py +482 -145
  12. ory_client/api/relationship_api.py +44 -38
  13. ory_client/api/wellknown_api.py +12 -11
  14. ory_client/api/workspace_api.py +870 -34
  15. ory_client/api_client.py +54 -31
  16. ory_client/configuration.py +23 -9
  17. ory_client/exceptions.py +2 -2
  18. ory_client/models/__init__.py +15 -2
  19. ory_client/models/accept_o_auth2_consent_request.py +2 -2
  20. ory_client/models/accept_o_auth2_consent_request_session.py +2 -2
  21. ory_client/models/accept_o_auth2_login_request.py +2 -2
  22. ory_client/models/account_experience_colors.py +329 -0
  23. ory_client/models/account_experience_configuration.py +35 -13
  24. ory_client/models/account_experience_theme_variables.py +2 -2
  25. ory_client/models/active_project_in_console.py +2 -2
  26. ory_client/models/add_project_to_workspace_body.py +2 -2
  27. ory_client/models/attribute.py +2 -2
  28. ory_client/models/attribute_filter.py +2 -2
  29. ory_client/models/attributes_count_datapoint.py +2 -2
  30. ory_client/models/authenticator_assurance_level.py +2 -2
  31. ory_client/models/batch_check_permission_body.py +109 -0
  32. ory_client/models/batch_check_permission_result.py +109 -0
  33. ory_client/models/batch_patch_identities_response.py +2 -2
  34. ory_client/models/billing_period_bucket.py +2 -2
  35. ory_client/models/check_opl_syntax_result.py +2 -2
  36. ory_client/models/check_permission_result.py +2 -2
  37. ory_client/models/check_permission_result_with_error.py +103 -0
  38. ory_client/models/cloud_account.py +6 -4
  39. ory_client/models/consistency_request_parameters.py +2 -2
  40. ory_client/models/continue_with.py +35 -11
  41. ory_client/models/continue_with_recovery_ui.py +2 -2
  42. ory_client/models/continue_with_recovery_ui_flow.py +3 -3
  43. ory_client/models/continue_with_redirect_browser_to.py +110 -0
  44. ory_client/models/continue_with_set_ory_session_token.py +2 -2
  45. ory_client/models/continue_with_settings_ui.py +2 -2
  46. ory_client/models/continue_with_settings_ui_flow.py +7 -5
  47. ory_client/models/continue_with_verification_ui.py +2 -2
  48. ory_client/models/continue_with_verification_ui_flow.py +3 -3
  49. ory_client/models/courier_message_status.py +2 -2
  50. ory_client/models/courier_message_type.py +2 -2
  51. ory_client/models/create_custom_domain_body.py +2 -2
  52. ory_client/models/create_event_stream_body.py +2 -2
  53. ory_client/models/create_fedcm_flow_response.py +111 -0
  54. ory_client/models/create_identity_body.py +10 -3
  55. ory_client/models/create_invite_response.py +2 -2
  56. ory_client/models/create_json_web_key_set.py +2 -2
  57. ory_client/models/create_project_api_key_request.py +7 -4
  58. ory_client/models/create_project_body.py +5 -5
  59. ory_client/models/create_project_branding.py +2 -2
  60. ory_client/models/create_project_member_invite_body.py +2 -2
  61. ory_client/models/create_project_normalized_payload.py +42 -6
  62. ory_client/models/create_recovery_code_for_identity_body.py +2 -2
  63. ory_client/models/create_recovery_link_for_identity_body.py +2 -2
  64. ory_client/models/create_relationship_body.py +2 -2
  65. ory_client/models/create_subscription_body.py +2 -2
  66. ory_client/models/create_subscription_common.py +2 -2
  67. ory_client/models/create_verifiable_credential_request_body.py +2 -2
  68. ory_client/models/create_workspace_api_key_body.py +104 -0
  69. ory_client/models/create_workspace_body.py +2 -2
  70. ory_client/models/create_workspace_member_invite_body.py +16 -7
  71. ory_client/models/create_workspace_subscription_body.py +2 -2
  72. ory_client/models/credential_supported_draft00.py +2 -2
  73. ory_client/models/custom_domain.py +2 -2
  74. ory_client/models/delete_my_sessions_count.py +2 -2
  75. ory_client/models/email_template_data.py +2 -2
  76. ory_client/models/email_template_data_body.py +2 -2
  77. ory_client/models/error_authenticator_assurance_level_not_satisfied.py +2 -2
  78. ory_client/models/error_browser_location_change_required.py +2 -2
  79. ory_client/models/error_flow_replaced.py +2 -2
  80. ory_client/models/error_generic.py +2 -2
  81. ory_client/models/error_o_auth2.py +2 -2
  82. ory_client/models/event_stream.py +2 -2
  83. ory_client/models/expanded_permission_tree.py +2 -2
  84. ory_client/models/flow_error.py +2 -2
  85. ory_client/models/generic_error.py +2 -2
  86. ory_client/models/generic_error_content.py +2 -2
  87. ory_client/models/generic_usage.py +2 -2
  88. ory_client/models/get_attributes_count_response.py +2 -2
  89. ory_client/models/get_managed_identity_schema_location.py +2 -2
  90. ory_client/models/get_metrics_event_attributes_response.py +2 -2
  91. ory_client/models/get_metrics_event_types_response.py +2 -2
  92. ory_client/models/get_organization_response.py +2 -2
  93. ory_client/models/get_project_events_body.py +2 -2
  94. ory_client/models/get_project_events_response.py +2 -2
  95. ory_client/models/get_project_metrics_response.py +2 -2
  96. ory_client/models/get_session_activity_response.py +2 -2
  97. ory_client/models/get_version200_response.py +2 -2
  98. ory_client/models/health_not_ready_status.py +2 -2
  99. ory_client/models/health_status.py +2 -2
  100. ory_client/models/identity.py +2 -2
  101. ory_client/models/identity_credentials.py +5 -5
  102. ory_client/models/identity_credentials_code.py +14 -14
  103. ory_client/models/identity_credentials_code_address.py +103 -0
  104. ory_client/models/identity_credentials_oidc.py +2 -2
  105. ory_client/models/identity_credentials_oidc_provider.py +7 -5
  106. ory_client/models/identity_credentials_password.py +7 -5
  107. ory_client/models/identity_patch.py +2 -2
  108. ory_client/models/identity_patch_response.py +13 -6
  109. ory_client/models/identity_schema_container.py +2 -2
  110. ory_client/models/identity_schema_preset.py +2 -2
  111. ory_client/models/identity_with_credentials.py +2 -2
  112. ory_client/models/identity_with_credentials_oidc.py +2 -2
  113. ory_client/models/identity_with_credentials_oidc_config.py +2 -2
  114. ory_client/models/identity_with_credentials_oidc_config_provider.py +8 -6
  115. ory_client/models/identity_with_credentials_password.py +2 -2
  116. ory_client/models/identity_with_credentials_password_config.py +7 -5
  117. ory_client/models/internal_get_project_branding_body.py +2 -2
  118. ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +2 -2
  119. ory_client/models/internal_is_owner_for_project_by_slug_body.py +3 -3
  120. ory_client/models/internal_is_owner_for_project_by_slug_response.py +2 -2
  121. ory_client/models/introspected_o_auth2_token.py +2 -2
  122. ory_client/models/invite_token_body.py +101 -0
  123. ory_client/models/invoice.py +3 -3
  124. ory_client/models/invoice_data_v1.py +9 -5
  125. ory_client/models/is_owner_for_project_by_slug.py +3 -3
  126. ory_client/models/json_patch.py +2 -2
  127. ory_client/models/json_web_key.py +2 -2
  128. ory_client/models/json_web_key_set.py +2 -2
  129. ory_client/models/keto_namespace.py +2 -2
  130. ory_client/models/line_item_v1.py +2 -2
  131. ory_client/models/list_event_streams.py +2 -2
  132. ory_client/models/list_invoices_response.py +2 -2
  133. ory_client/models/list_organizations_response.py +2 -2
  134. ory_client/models/list_workspace_projects.py +2 -2
  135. ory_client/models/list_workspaces.py +2 -2
  136. ory_client/models/login_flow.py +5 -5
  137. ory_client/models/login_flow_state.py +3 -3
  138. ory_client/models/logout_flow.py +2 -2
  139. ory_client/models/managed_identity_schema.py +2 -2
  140. ory_client/models/managed_identity_schema_validation_result.py +2 -2
  141. ory_client/models/member_invite.py +10 -3
  142. ory_client/models/message.py +2 -2
  143. ory_client/models/message_dispatch.py +2 -2
  144. ory_client/models/metrics_datapoint.py +2 -2
  145. ory_client/models/money.py +2 -2
  146. ory_client/models/namespace.py +2 -2
  147. ory_client/models/needs_privileged_session_error.py +2 -2
  148. ory_client/models/normalized_project.py +5 -5
  149. ory_client/models/normalized_project_revision.py +39 -3
  150. ory_client/models/normalized_project_revision_courier_channel.py +2 -2
  151. ory_client/models/normalized_project_revision_hook.py +2 -2
  152. ory_client/models/normalized_project_revision_identity_schema.py +2 -2
  153. ory_client/models/normalized_project_revision_saml_provider.py +148 -0
  154. ory_client/models/normalized_project_revision_third_party_provider.py +34 -3
  155. ory_client/models/normalized_project_revision_tokenizer_template.py +2 -2
  156. ory_client/models/o_auth2_client.py +3 -3
  157. ory_client/models/o_auth2_client_token_lifespans.py +2 -2
  158. ory_client/models/o_auth2_consent_request.py +6 -4
  159. ory_client/models/o_auth2_consent_request_open_id_connect_context.py +2 -2
  160. ory_client/models/o_auth2_consent_session.py +5 -3
  161. ory_client/models/o_auth2_consent_session_expires_at.py +2 -2
  162. ory_client/models/o_auth2_login_request.py +3 -3
  163. ory_client/models/o_auth2_logout_request.py +9 -4
  164. ory_client/models/o_auth2_redirect_to.py +2 -2
  165. ory_client/models/o_auth2_token_exchange.py +2 -2
  166. ory_client/models/oidc_configuration.py +2 -2
  167. ory_client/models/oidc_user_info.py +2 -2
  168. ory_client/models/organization.py +2 -2
  169. ory_client/models/organization_body.py +2 -2
  170. ory_client/models/pagination.py +2 -2
  171. ory_client/models/pagination_headers.py +2 -2
  172. ory_client/models/parse_error.py +2 -2
  173. ory_client/models/patch_identities_body.py +2 -2
  174. ory_client/models/perform_native_logout_body.py +2 -2
  175. ory_client/models/permissions_on_workspace.py +2 -2
  176. ory_client/models/plan.py +2 -2
  177. ory_client/models/plan_details.py +2 -2
  178. ory_client/models/post_check_permission_body.py +2 -2
  179. ory_client/models/post_check_permission_or_error_body.py +2 -2
  180. ory_client/models/project.py +5 -5
  181. ory_client/models/project_api_key.py +5 -3
  182. ory_client/models/project_branding.py +2 -2
  183. ory_client/models/project_branding_colors.py +2 -2
  184. ory_client/models/project_branding_theme.py +2 -2
  185. ory_client/models/project_cors.py +2 -2
  186. ory_client/models/project_events_datapoint.py +2 -2
  187. ory_client/models/project_host.py +2 -2
  188. ory_client/models/project_member.py +6 -4
  189. ory_client/models/project_metadata.py +5 -5
  190. ory_client/models/project_service_identity.py +2 -2
  191. ory_client/models/project_service_o_auth2.py +2 -2
  192. ory_client/models/project_service_permission.py +2 -2
  193. ory_client/models/project_services.py +2 -2
  194. ory_client/models/provider.py +113 -0
  195. ory_client/models/quota_usage.py +8 -6
  196. ory_client/models/recovery_code_for_identity.py +2 -2
  197. ory_client/models/recovery_flow.py +2 -2
  198. ory_client/models/recovery_flow_state.py +3 -3
  199. ory_client/models/recovery_identity_address.py +2 -2
  200. ory_client/models/recovery_link_for_identity.py +2 -2
  201. ory_client/models/registration_flow.py +5 -5
  202. ory_client/models/registration_flow_state.py +3 -3
  203. ory_client/models/reject_o_auth2_request.py +2 -2
  204. ory_client/models/relation_query.py +2 -2
  205. ory_client/models/relationship.py +2 -2
  206. ory_client/models/relationship_namespaces.py +2 -2
  207. ory_client/models/relationship_patch.py +2 -2
  208. ory_client/models/relationships.py +2 -2
  209. ory_client/models/rfc6749_error_json.py +2 -2
  210. ory_client/models/schema_patch.py +2 -2
  211. ory_client/models/self_service_flow_expired_error.py +2 -2
  212. ory_client/models/session.py +2 -2
  213. ory_client/models/session_activity_datapoint.py +2 -2
  214. ory_client/models/session_authentication_method.py +2 -2
  215. ory_client/models/session_device.py +2 -2
  216. ory_client/models/set_active_project_in_console_body.py +2 -2
  217. ory_client/models/set_custom_domain_body.py +2 -2
  218. ory_client/models/set_event_stream_body.py +2 -2
  219. ory_client/models/set_project.py +2 -2
  220. ory_client/models/set_project_branding_theme_body.py +2 -2
  221. ory_client/models/settings_flow.py +2 -2
  222. ory_client/models/settings_flow_state.py +3 -3
  223. ory_client/models/source_position.py +2 -2
  224. ory_client/models/subject_set.py +2 -2
  225. ory_client/models/subscription.py +2 -2
  226. ory_client/models/successful_code_exchange_response.py +2 -2
  227. ory_client/models/successful_native_login.py +2 -2
  228. ory_client/models/successful_native_registration.py +2 -2
  229. ory_client/models/successful_project_update.py +2 -2
  230. ory_client/models/tax_line_item.py +2 -2
  231. ory_client/models/time_interval.py +2 -2
  232. ory_client/models/token_pagination.py +2 -2
  233. ory_client/models/token_pagination_headers.py +2 -2
  234. ory_client/models/token_pagination_request_parameters.py +2 -2
  235. ory_client/models/token_pagination_response_headers.py +2 -2
  236. ory_client/models/trust_o_auth2_jwt_grant_issuer.py +2 -2
  237. ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +2 -2
  238. ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +2 -2
  239. ory_client/models/ui_container.py +2 -2
  240. ory_client/models/ui_node.py +5 -5
  241. ory_client/models/ui_node_anchor_attributes.py +2 -2
  242. ory_client/models/ui_node_attributes.py +4 -4
  243. ory_client/models/ui_node_image_attributes.py +2 -2
  244. ory_client/models/ui_node_input_attributes.py +32 -6
  245. ory_client/models/ui_node_meta.py +2 -2
  246. ory_client/models/ui_node_script_attributes.py +2 -2
  247. ory_client/models/ui_node_text_attributes.py +2 -2
  248. ory_client/models/ui_text.py +2 -2
  249. ory_client/models/update_fedcm_flow_body.py +105 -0
  250. ory_client/models/update_identity_body.py +2 -2
  251. ory_client/models/update_login_flow_body.py +35 -11
  252. ory_client/models/update_login_flow_with_code_method.py +5 -3
  253. ory_client/models/update_login_flow_with_identifier_first_method.py +107 -0
  254. ory_client/models/update_login_flow_with_lookup_secret_method.py +2 -2
  255. ory_client/models/update_login_flow_with_oidc_method.py +3 -3
  256. ory_client/models/update_login_flow_with_passkey_method.py +2 -2
  257. ory_client/models/update_login_flow_with_password_method.py +2 -2
  258. ory_client/models/update_login_flow_with_totp_method.py +2 -2
  259. ory_client/models/update_login_flow_with_web_authn_method.py +2 -2
  260. ory_client/models/update_recovery_flow_body.py +4 -4
  261. ory_client/models/update_recovery_flow_with_code_method.py +2 -2
  262. ory_client/models/update_recovery_flow_with_link_method.py +2 -2
  263. ory_client/models/update_registration_flow_body.py +36 -12
  264. ory_client/models/update_registration_flow_with_code_method.py +2 -2
  265. ory_client/models/update_registration_flow_with_oidc_method.py +3 -3
  266. ory_client/models/update_registration_flow_with_passkey_method.py +2 -2
  267. ory_client/models/update_registration_flow_with_password_method.py +2 -2
  268. ory_client/models/update_registration_flow_with_profile_method.py +14 -4
  269. ory_client/models/update_registration_flow_with_web_authn_method.py +2 -2
  270. ory_client/models/update_settings_flow_body.py +4 -4
  271. ory_client/models/update_settings_flow_with_lookup_method.py +2 -2
  272. ory_client/models/update_settings_flow_with_oidc_method.py +2 -2
  273. ory_client/models/update_settings_flow_with_passkey_method.py +2 -2
  274. ory_client/models/update_settings_flow_with_password_method.py +2 -2
  275. ory_client/models/update_settings_flow_with_profile_method.py +2 -2
  276. ory_client/models/update_settings_flow_with_totp_method.py +2 -2
  277. ory_client/models/update_settings_flow_with_web_authn_method.py +2 -2
  278. ory_client/models/update_subscription_body.py +2 -2
  279. ory_client/models/update_verification_flow_body.py +4 -4
  280. ory_client/models/update_verification_flow_with_code_method.py +2 -2
  281. ory_client/models/update_verification_flow_with_link_method.py +2 -2
  282. ory_client/models/update_workspace_body.py +2 -2
  283. ory_client/models/usage.py +2 -2
  284. ory_client/models/verifiable_credential_priming_response.py +2 -2
  285. ory_client/models/verifiable_credential_proof.py +2 -2
  286. ory_client/models/verifiable_credential_response.py +2 -2
  287. ory_client/models/verifiable_identity_address.py +2 -2
  288. ory_client/models/verification_flow.py +2 -2
  289. ory_client/models/verification_flow_state.py +3 -3
  290. ory_client/models/version.py +2 -2
  291. ory_client/models/warning.py +2 -2
  292. ory_client/models/workspace.py +2 -2
  293. ory_client/models/workspace_api_key.py +6 -4
  294. ory_client/rest.py +4 -2
  295. ory_client-1.16.10.dist-info/METADATA +18 -0
  296. ory_client-1.16.10.dist-info/RECORD +302 -0
  297. {ory_client-1.12.2.dist-info → ory_client-1.16.10.dist-info}/WHEEL +1 -1
  298. ory_client-1.12.2.dist-info/METADATA +0 -19
  299. ory_client-1.12.2.dist-info/RECORD +0 -289
  300. {ory_client-1.12.2.dist-info → ory_client-1.16.10.dist-info}/LICENSE +0 -0
  301. {ory_client-1.12.2.dist-info → ory_client-1.16.10.dist-info}/top_level.txt +0 -0
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Ory APIs
5
5
 
6
- Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
6
+ # Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
7
7
 
8
- The version of the OpenAPI document: v1.12.2
8
+ The version of the OpenAPI document: v1.16.10
9
9
  Contact: support@ory.sh
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -262,7 +262,7 @@ class OidcApi:
262
262
  _query_params: List[Tuple[str, str]] = []
263
263
  _header_params: Dict[str, Optional[str]] = _headers or {}
264
264
  _form_params: List[Tuple[str, str]] = []
265
- _files: Dict[str, str] = {}
265
+ _files: Dict[str, Union[str, bytes]] = {}
266
266
  _body_params: Optional[bytes] = None
267
267
 
268
268
  # process the path parameters
@@ -275,11 +275,12 @@ class OidcApi:
275
275
 
276
276
 
277
277
  # set the HTTP header `Accept`
278
- _header_params['Accept'] = self.api_client.select_header_accept(
279
- [
280
- 'application/json'
281
- ]
282
- )
278
+ if 'Accept' not in _header_params:
279
+ _header_params['Accept'] = self.api_client.select_header_accept(
280
+ [
281
+ 'application/json'
282
+ ]
283
+ )
283
284
 
284
285
  # set the HTTP header `Content-Type`
285
286
  if _content_type:
@@ -535,7 +536,7 @@ class OidcApi:
535
536
  _query_params: List[Tuple[str, str]] = []
536
537
  _header_params: Dict[str, Optional[str]] = _headers or {}
537
538
  _form_params: List[Tuple[str, str]] = []
538
- _files: Dict[str, str] = {}
539
+ _files: Dict[str, Union[str, bytes]] = {}
539
540
  _body_params: Optional[bytes] = None
540
541
 
541
542
  # process the path parameters
@@ -548,11 +549,12 @@ class OidcApi:
548
549
 
549
550
 
550
551
  # set the HTTP header `Accept`
551
- _header_params['Accept'] = self.api_client.select_header_accept(
552
- [
553
- 'application/json'
554
- ]
555
- )
552
+ if 'Accept' not in _header_params:
553
+ _header_params['Accept'] = self.api_client.select_header_accept(
554
+ [
555
+ 'application/json'
556
+ ]
557
+ )
556
558
 
557
559
  # set the HTTP header `Content-Type`
558
560
  if _content_type:
@@ -805,7 +807,7 @@ class OidcApi:
805
807
  _query_params: List[Tuple[str, str]] = []
806
808
  _header_params: Dict[str, Optional[str]] = _headers or {}
807
809
  _form_params: List[Tuple[str, str]] = []
808
- _files: Dict[str, str] = {}
810
+ _files: Dict[str, Union[str, bytes]] = {}
809
811
  _body_params: Optional[bytes] = None
810
812
 
811
813
  # process the path parameters
@@ -818,11 +820,12 @@ class OidcApi:
818
820
 
819
821
 
820
822
  # set the HTTP header `Accept`
821
- _header_params['Accept'] = self.api_client.select_header_accept(
822
- [
823
- 'application/json'
824
- ]
825
- )
823
+ if 'Accept' not in _header_params:
824
+ _header_params['Accept'] = self.api_client.select_header_accept(
825
+ [
826
+ 'application/json'
827
+ ]
828
+ )
826
829
 
827
830
 
828
831
  # authentication setting
@@ -1050,7 +1053,7 @@ class OidcApi:
1050
1053
  _query_params: List[Tuple[str, str]] = []
1051
1054
  _header_params: Dict[str, Optional[str]] = _headers or {}
1052
1055
  _form_params: List[Tuple[str, str]] = []
1053
- _files: Dict[str, str] = {}
1056
+ _files: Dict[str, Union[str, bytes]] = {}
1054
1057
  _body_params: Optional[bytes] = None
1055
1058
 
1056
1059
  # process the path parameters
@@ -1061,11 +1064,12 @@ class OidcApi:
1061
1064
 
1062
1065
 
1063
1066
  # set the HTTP header `Accept`
1064
- _header_params['Accept'] = self.api_client.select_header_accept(
1065
- [
1066
- 'application/json'
1067
- ]
1068
- )
1067
+ if 'Accept' not in _header_params:
1068
+ _header_params['Accept'] = self.api_client.select_header_accept(
1069
+ [
1070
+ 'application/json'
1071
+ ]
1072
+ )
1069
1073
 
1070
1074
 
1071
1075
  # authentication setting
@@ -1305,7 +1309,7 @@ class OidcApi:
1305
1309
  _query_params: List[Tuple[str, str]] = []
1306
1310
  _header_params: Dict[str, Optional[str]] = _headers or {}
1307
1311
  _form_params: List[Tuple[str, str]] = []
1308
- _files: Dict[str, str] = {}
1312
+ _files: Dict[str, Union[str, bytes]] = {}
1309
1313
  _body_params: Optional[bytes] = None
1310
1314
 
1311
1315
  # process the path parameters
@@ -1318,11 +1322,12 @@ class OidcApi:
1318
1322
 
1319
1323
 
1320
1324
  # set the HTTP header `Accept`
1321
- _header_params['Accept'] = self.api_client.select_header_accept(
1322
- [
1323
- 'application/json'
1324
- ]
1325
- )
1325
+ if 'Accept' not in _header_params:
1326
+ _header_params['Accept'] = self.api_client.select_header_accept(
1327
+ [
1328
+ 'application/json'
1329
+ ]
1330
+ )
1326
1331
 
1327
1332
 
1328
1333
  # authentication setting
@@ -1550,7 +1555,7 @@ class OidcApi:
1550
1555
  _query_params: List[Tuple[str, str]] = []
1551
1556
  _header_params: Dict[str, Optional[str]] = _headers or {}
1552
1557
  _form_params: List[Tuple[str, str]] = []
1553
- _files: Dict[str, str] = {}
1558
+ _files: Dict[str, Union[str, bytes]] = {}
1554
1559
  _body_params: Optional[bytes] = None
1555
1560
 
1556
1561
  # process the path parameters
@@ -1561,11 +1566,12 @@ class OidcApi:
1561
1566
 
1562
1567
 
1563
1568
  # set the HTTP header `Accept`
1564
- _header_params['Accept'] = self.api_client.select_header_accept(
1565
- [
1566
- 'application/json'
1567
- ]
1568
- )
1569
+ if 'Accept' not in _header_params:
1570
+ _header_params['Accept'] = self.api_client.select_header_accept(
1571
+ [
1572
+ 'application/json'
1573
+ ]
1574
+ )
1569
1575
 
1570
1576
 
1571
1577
  # authentication setting
@@ -1793,7 +1799,7 @@ class OidcApi:
1793
1799
  _query_params: List[Tuple[str, str]] = []
1794
1800
  _header_params: Dict[str, Optional[str]] = _headers or {}
1795
1801
  _form_params: List[Tuple[str, str]] = []
1796
- _files: Dict[str, str] = {}
1802
+ _files: Dict[str, Union[str, bytes]] = {}
1797
1803
  _body_params: Optional[bytes] = None
1798
1804
 
1799
1805
  # process the path parameters
@@ -2058,7 +2064,7 @@ class OidcApi:
2058
2064
  _query_params: List[Tuple[str, str]] = []
2059
2065
  _header_params: Dict[str, Optional[str]] = _headers or {}
2060
2066
  _form_params: List[Tuple[str, str]] = []
2061
- _files: Dict[str, str] = {}
2067
+ _files: Dict[str, Union[str, bytes]] = {}
2062
2068
  _body_params: Optional[bytes] = None
2063
2069
 
2064
2070
  # process the path parameters
@@ -2073,11 +2079,12 @@ class OidcApi:
2073
2079
 
2074
2080
 
2075
2081
  # set the HTTP header `Accept`
2076
- _header_params['Accept'] = self.api_client.select_header_accept(
2077
- [
2078
- 'application/json'
2079
- ]
2080
- )
2082
+ if 'Accept' not in _header_params:
2083
+ _header_params['Accept'] = self.api_client.select_header_accept(
2084
+ [
2085
+ 'application/json'
2086
+ ]
2087
+ )
2081
2088
 
2082
2089
  # set the HTTP header `Content-Type`
2083
2090
  if _content_type:
@@ -3,9 +3,9 @@
3
3
  """
4
4
  Ory APIs
5
5
 
6
- Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
6
+ # Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
7
7
 
8
- The version of the OpenAPI document: v1.12.2
8
+ The version of the OpenAPI document: v1.16.10
9
9
  Contact: support@ory.sh
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -20,6 +20,8 @@ from typing_extensions import Annotated
20
20
  from pydantic import Field, StrictInt, StrictStr
21
21
  from typing import Optional
22
22
  from typing_extensions import Annotated
23
+ from ory_client.models.batch_check_permission_body import BatchCheckPermissionBody
24
+ from ory_client.models.batch_check_permission_result import BatchCheckPermissionResult
23
25
  from ory_client.models.check_permission_result import CheckPermissionResult
24
26
  from ory_client.models.expanded_permission_tree import ExpandedPermissionTree
25
27
  from ory_client.models.post_check_permission_body import PostCheckPermissionBody
@@ -43,6 +45,298 @@ class PermissionApi:
43
45
  self.api_client = api_client
44
46
 
45
47
 
48
+ @validate_call
49
+ def batch_check_permission(
50
+ self,
51
+ max_depth: Optional[StrictInt] = None,
52
+ batch_check_permission_body: Optional[BatchCheckPermissionBody] = None,
53
+ _request_timeout: Union[
54
+ None,
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Tuple[
57
+ Annotated[StrictFloat, Field(gt=0)],
58
+ Annotated[StrictFloat, Field(gt=0)]
59
+ ]
60
+ ] = None,
61
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
62
+ _content_type: Optional[StrictStr] = None,
63
+ _headers: Optional[Dict[StrictStr, Any]] = None,
64
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
+ ) -> BatchCheckPermissionResult:
66
+ """Batch check permissions
67
+
68
+ To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
69
+
70
+ :param max_depth:
71
+ :type max_depth: int
72
+ :param batch_check_permission_body:
73
+ :type batch_check_permission_body: BatchCheckPermissionBody
74
+ :param _request_timeout: timeout setting for this request. If one
75
+ number provided, it will be total request
76
+ timeout. It can also be a pair (tuple) of
77
+ (connection, read) timeouts.
78
+ :type _request_timeout: int, tuple(int, int), optional
79
+ :param _request_auth: set to override the auth_settings for an a single
80
+ request; this effectively ignores the
81
+ authentication in the spec for a single request.
82
+ :type _request_auth: dict, optional
83
+ :param _content_type: force content-type for the request.
84
+ :type _content_type: str, Optional
85
+ :param _headers: set to override the headers for a single
86
+ request; this effectively ignores the headers
87
+ in the spec for a single request.
88
+ :type _headers: dict, optional
89
+ :param _host_index: set to override the host_index for a single
90
+ request; this effectively ignores the host_index
91
+ in the spec for a single request.
92
+ :type _host_index: int, optional
93
+ :return: Returns the result object.
94
+ """ # noqa: E501
95
+
96
+ _param = self._batch_check_permission_serialize(
97
+ max_depth=max_depth,
98
+ batch_check_permission_body=batch_check_permission_body,
99
+ _request_auth=_request_auth,
100
+ _content_type=_content_type,
101
+ _headers=_headers,
102
+ _host_index=_host_index
103
+ )
104
+
105
+ _response_types_map: Dict[str, Optional[str]] = {
106
+ '200': "BatchCheckPermissionResult",
107
+ '400': "ErrorGeneric",
108
+ }
109
+ response_data = self.api_client.call_api(
110
+ *_param,
111
+ _request_timeout=_request_timeout
112
+ )
113
+ response_data.read()
114
+ return self.api_client.response_deserialize(
115
+ response_data=response_data,
116
+ response_types_map=_response_types_map,
117
+ ).data
118
+
119
+
120
+ @validate_call
121
+ def batch_check_permission_with_http_info(
122
+ self,
123
+ max_depth: Optional[StrictInt] = None,
124
+ batch_check_permission_body: Optional[BatchCheckPermissionBody] = None,
125
+ _request_timeout: Union[
126
+ None,
127
+ Annotated[StrictFloat, Field(gt=0)],
128
+ Tuple[
129
+ Annotated[StrictFloat, Field(gt=0)],
130
+ Annotated[StrictFloat, Field(gt=0)]
131
+ ]
132
+ ] = None,
133
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
134
+ _content_type: Optional[StrictStr] = None,
135
+ _headers: Optional[Dict[StrictStr, Any]] = None,
136
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
137
+ ) -> ApiResponse[BatchCheckPermissionResult]:
138
+ """Batch check permissions
139
+
140
+ To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
141
+
142
+ :param max_depth:
143
+ :type max_depth: int
144
+ :param batch_check_permission_body:
145
+ :type batch_check_permission_body: BatchCheckPermissionBody
146
+ :param _request_timeout: timeout setting for this request. If one
147
+ number provided, it will be total request
148
+ timeout. It can also be a pair (tuple) of
149
+ (connection, read) timeouts.
150
+ :type _request_timeout: int, tuple(int, int), optional
151
+ :param _request_auth: set to override the auth_settings for an a single
152
+ request; this effectively ignores the
153
+ authentication in the spec for a single request.
154
+ :type _request_auth: dict, optional
155
+ :param _content_type: force content-type for the request.
156
+ :type _content_type: str, Optional
157
+ :param _headers: set to override the headers for a single
158
+ request; this effectively ignores the headers
159
+ in the spec for a single request.
160
+ :type _headers: dict, optional
161
+ :param _host_index: set to override the host_index for a single
162
+ request; this effectively ignores the host_index
163
+ in the spec for a single request.
164
+ :type _host_index: int, optional
165
+ :return: Returns the result object.
166
+ """ # noqa: E501
167
+
168
+ _param = self._batch_check_permission_serialize(
169
+ max_depth=max_depth,
170
+ batch_check_permission_body=batch_check_permission_body,
171
+ _request_auth=_request_auth,
172
+ _content_type=_content_type,
173
+ _headers=_headers,
174
+ _host_index=_host_index
175
+ )
176
+
177
+ _response_types_map: Dict[str, Optional[str]] = {
178
+ '200': "BatchCheckPermissionResult",
179
+ '400': "ErrorGeneric",
180
+ }
181
+ response_data = self.api_client.call_api(
182
+ *_param,
183
+ _request_timeout=_request_timeout
184
+ )
185
+ response_data.read()
186
+ return self.api_client.response_deserialize(
187
+ response_data=response_data,
188
+ response_types_map=_response_types_map,
189
+ )
190
+
191
+
192
+ @validate_call
193
+ def batch_check_permission_without_preload_content(
194
+ self,
195
+ max_depth: Optional[StrictInt] = None,
196
+ batch_check_permission_body: Optional[BatchCheckPermissionBody] = None,
197
+ _request_timeout: Union[
198
+ None,
199
+ Annotated[StrictFloat, Field(gt=0)],
200
+ Tuple[
201
+ Annotated[StrictFloat, Field(gt=0)],
202
+ Annotated[StrictFloat, Field(gt=0)]
203
+ ]
204
+ ] = None,
205
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
206
+ _content_type: Optional[StrictStr] = None,
207
+ _headers: Optional[Dict[StrictStr, Any]] = None,
208
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
209
+ ) -> RESTResponseType:
210
+ """Batch check permissions
211
+
212
+ To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
213
+
214
+ :param max_depth:
215
+ :type max_depth: int
216
+ :param batch_check_permission_body:
217
+ :type batch_check_permission_body: BatchCheckPermissionBody
218
+ :param _request_timeout: timeout setting for this request. If one
219
+ number provided, it will be total request
220
+ timeout. It can also be a pair (tuple) of
221
+ (connection, read) timeouts.
222
+ :type _request_timeout: int, tuple(int, int), optional
223
+ :param _request_auth: set to override the auth_settings for an a single
224
+ request; this effectively ignores the
225
+ authentication in the spec for a single request.
226
+ :type _request_auth: dict, optional
227
+ :param _content_type: force content-type for the request.
228
+ :type _content_type: str, Optional
229
+ :param _headers: set to override the headers for a single
230
+ request; this effectively ignores the headers
231
+ in the spec for a single request.
232
+ :type _headers: dict, optional
233
+ :param _host_index: set to override the host_index for a single
234
+ request; this effectively ignores the host_index
235
+ in the spec for a single request.
236
+ :type _host_index: int, optional
237
+ :return: Returns the result object.
238
+ """ # noqa: E501
239
+
240
+ _param = self._batch_check_permission_serialize(
241
+ max_depth=max_depth,
242
+ batch_check_permission_body=batch_check_permission_body,
243
+ _request_auth=_request_auth,
244
+ _content_type=_content_type,
245
+ _headers=_headers,
246
+ _host_index=_host_index
247
+ )
248
+
249
+ _response_types_map: Dict[str, Optional[str]] = {
250
+ '200': "BatchCheckPermissionResult",
251
+ '400': "ErrorGeneric",
252
+ }
253
+ response_data = self.api_client.call_api(
254
+ *_param,
255
+ _request_timeout=_request_timeout
256
+ )
257
+ return response_data.response
258
+
259
+
260
+ def _batch_check_permission_serialize(
261
+ self,
262
+ max_depth,
263
+ batch_check_permission_body,
264
+ _request_auth,
265
+ _content_type,
266
+ _headers,
267
+ _host_index,
268
+ ) -> RequestSerialized:
269
+
270
+ _host = None
271
+
272
+ _collection_formats: Dict[str, str] = {
273
+ }
274
+
275
+ _path_params: Dict[str, str] = {}
276
+ _query_params: List[Tuple[str, str]] = []
277
+ _header_params: Dict[str, Optional[str]] = _headers or {}
278
+ _form_params: List[Tuple[str, str]] = []
279
+ _files: Dict[str, Union[str, bytes]] = {}
280
+ _body_params: Optional[bytes] = None
281
+
282
+ # process the path parameters
283
+ # process the query parameters
284
+ if max_depth is not None:
285
+
286
+ _query_params.append(('max-depth', max_depth))
287
+
288
+ # process the header parameters
289
+ # process the form parameters
290
+ # process the body parameter
291
+ if batch_check_permission_body is not None:
292
+ _body_params = batch_check_permission_body
293
+
294
+
295
+ # set the HTTP header `Accept`
296
+ if 'Accept' not in _header_params:
297
+ _header_params['Accept'] = self.api_client.select_header_accept(
298
+ [
299
+ 'application/json'
300
+ ]
301
+ )
302
+
303
+ # set the HTTP header `Content-Type`
304
+ if _content_type:
305
+ _header_params['Content-Type'] = _content_type
306
+ else:
307
+ _default_content_type = (
308
+ self.api_client.select_header_content_type(
309
+ [
310
+ 'application/json'
311
+ ]
312
+ )
313
+ )
314
+ if _default_content_type is not None:
315
+ _header_params['Content-Type'] = _default_content_type
316
+
317
+ # authentication setting
318
+ _auth_settings: List[str] = [
319
+ 'oryAccessToken'
320
+ ]
321
+
322
+ return self.api_client.param_serialize(
323
+ method='POST',
324
+ resource_path='/relation-tuples/batch/check',
325
+ path_params=_path_params,
326
+ query_params=_query_params,
327
+ header_params=_header_params,
328
+ body=_body_params,
329
+ post_params=_form_params,
330
+ files=_files,
331
+ auth_settings=_auth_settings,
332
+ collection_formats=_collection_formats,
333
+ _host=_host,
334
+ _request_auth=_request_auth
335
+ )
336
+
337
+
338
+
339
+
46
340
  @validate_call
47
341
  def check_permission(
48
342
  self,
@@ -352,7 +646,7 @@ class PermissionApi:
352
646
  _query_params: List[Tuple[str, str]] = []
353
647
  _header_params: Dict[str, Optional[str]] = _headers or {}
354
648
  _form_params: List[Tuple[str, str]] = []
355
- _files: Dict[str, str] = {}
649
+ _files: Dict[str, Union[str, bytes]] = {}
356
650
  _body_params: Optional[bytes] = None
357
651
 
358
652
  # process the path parameters
@@ -395,11 +689,12 @@ class PermissionApi:
395
689
 
396
690
 
397
691
  # set the HTTP header `Accept`
398
- _header_params['Accept'] = self.api_client.select_header_accept(
399
- [
400
- 'application/json'
401
- ]
402
- )
692
+ if 'Accept' not in _header_params:
693
+ _header_params['Accept'] = self.api_client.select_header_accept(
694
+ [
695
+ 'application/json'
696
+ ]
697
+ )
403
698
 
404
699
 
405
700
  # authentication setting
@@ -737,7 +1032,7 @@ class PermissionApi:
737
1032
  _query_params: List[Tuple[str, str]] = []
738
1033
  _header_params: Dict[str, Optional[str]] = _headers or {}
739
1034
  _form_params: List[Tuple[str, str]] = []
740
- _files: Dict[str, str] = {}
1035
+ _files: Dict[str, Union[str, bytes]] = {}
741
1036
  _body_params: Optional[bytes] = None
742
1037
 
743
1038
  # process the path parameters
@@ -780,11 +1075,12 @@ class PermissionApi:
780
1075
 
781
1076
 
782
1077
  # set the HTTP header `Accept`
783
- _header_params['Accept'] = self.api_client.select_header_accept(
784
- [
785
- 'application/json'
786
- ]
787
- )
1078
+ if 'Accept' not in _header_params:
1079
+ _header_params['Accept'] = self.api_client.select_header_accept(
1080
+ [
1081
+ 'application/json'
1082
+ ]
1083
+ )
788
1084
 
789
1085
 
790
1086
  # authentication setting
@@ -1070,7 +1366,7 @@ class PermissionApi:
1070
1366
  _query_params: List[Tuple[str, str]] = []
1071
1367
  _header_params: Dict[str, Optional[str]] = _headers or {}
1072
1368
  _form_params: List[Tuple[str, str]] = []
1073
- _files: Dict[str, str] = {}
1369
+ _files: Dict[str, Union[str, bytes]] = {}
1074
1370
  _body_params: Optional[bytes] = None
1075
1371
 
1076
1372
  # process the path parameters
@@ -1097,11 +1393,12 @@ class PermissionApi:
1097
1393
 
1098
1394
 
1099
1395
  # set the HTTP header `Accept`
1100
- _header_params['Accept'] = self.api_client.select_header_accept(
1101
- [
1102
- 'application/json'
1103
- ]
1104
- )
1396
+ if 'Accept' not in _header_params:
1397
+ _header_params['Accept'] = self.api_client.select_header_accept(
1398
+ [
1399
+ 'application/json'
1400
+ ]
1401
+ )
1105
1402
 
1106
1403
 
1107
1404
  # authentication setting
@@ -1358,7 +1655,7 @@ class PermissionApi:
1358
1655
  _query_params: List[Tuple[str, str]] = []
1359
1656
  _header_params: Dict[str, Optional[str]] = _headers or {}
1360
1657
  _form_params: List[Tuple[str, str]] = []
1361
- _files: Dict[str, str] = {}
1658
+ _files: Dict[str, Union[str, bytes]] = {}
1362
1659
  _body_params: Optional[bytes] = None
1363
1660
 
1364
1661
  # process the path parameters
@@ -1375,11 +1672,12 @@ class PermissionApi:
1375
1672
 
1376
1673
 
1377
1674
  # set the HTTP header `Accept`
1378
- _header_params['Accept'] = self.api_client.select_header_accept(
1379
- [
1380
- 'application/json'
1381
- ]
1382
- )
1675
+ if 'Accept' not in _header_params:
1676
+ _header_params['Accept'] = self.api_client.select_header_accept(
1677
+ [
1678
+ 'application/json'
1679
+ ]
1680
+ )
1383
1681
 
1384
1682
  # set the HTTP header `Content-Type`
1385
1683
  if _content_type:
@@ -1652,7 +1950,7 @@ class PermissionApi:
1652
1950
  _query_params: List[Tuple[str, str]] = []
1653
1951
  _header_params: Dict[str, Optional[str]] = _headers or {}
1654
1952
  _form_params: List[Tuple[str, str]] = []
1655
- _files: Dict[str, str] = {}
1953
+ _files: Dict[str, Union[str, bytes]] = {}
1656
1954
  _body_params: Optional[bytes] = None
1657
1955
 
1658
1956
  # process the path parameters
@@ -1669,11 +1967,12 @@ class PermissionApi:
1669
1967
 
1670
1968
 
1671
1969
  # set the HTTP header `Accept`
1672
- _header_params['Accept'] = self.api_client.select_header_accept(
1673
- [
1674
- 'application/json'
1675
- ]
1676
- )
1970
+ if 'Accept' not in _header_params:
1971
+ _header_params['Accept'] = self.api_client.select_header_accept(
1972
+ [
1973
+ 'application/json'
1974
+ ]
1975
+ )
1677
1976
 
1678
1977
  # set the HTTP header `Content-Type`
1679
1978
  if _content_type: