ory-client 1.12.1__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.1.dist-info → ory_client-1.16.10.dist-info}/WHEEL +1 -1
  298. ory_client-1.12.1.dist-info/METADATA +0 -19
  299. ory_client-1.12.1.dist-info/RECORD +0 -289
  300. {ory_client-1.12.1.dist-info → ory_client-1.16.10.dist-info}/LICENSE +0 -0
  301. {ory_client-1.12.1.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.1
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
 
@@ -70,9 +70,9 @@ class ProjectApi:
70
70
  _headers: Optional[Dict[StrictStr, Any]] = None,
71
71
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
72
72
  ) -> Organization:
73
- """create_organization
73
+ """Create an Enterprise SSO Organization
74
74
 
75
- Create a B2B SSO Organization
75
+ Creates an Enterprise SSO Organization in a project.
76
76
 
77
77
  :param project_id: Project ID The project's ID. (required)
78
78
  :type project_id: str
@@ -144,9 +144,9 @@ class ProjectApi:
144
144
  _headers: Optional[Dict[StrictStr, Any]] = None,
145
145
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
146
146
  ) -> ApiResponse[Organization]:
147
- """create_organization
147
+ """Create an Enterprise SSO Organization
148
148
 
149
- Create a B2B SSO Organization
149
+ Creates an Enterprise SSO Organization in a project.
150
150
 
151
151
  :param project_id: Project ID The project's ID. (required)
152
152
  :type project_id: str
@@ -218,9 +218,9 @@ class ProjectApi:
218
218
  _headers: Optional[Dict[StrictStr, Any]] = None,
219
219
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
220
220
  ) -> RESTResponseType:
221
- """create_organization
221
+ """Create an Enterprise SSO Organization
222
222
 
223
- Create a B2B SSO Organization
223
+ Creates an Enterprise SSO Organization in a project.
224
224
 
225
225
  :param project_id: Project ID The project's ID. (required)
226
226
  :type project_id: str
@@ -292,7 +292,7 @@ class ProjectApi:
292
292
  _query_params: List[Tuple[str, str]] = []
293
293
  _header_params: Dict[str, Optional[str]] = _headers or {}
294
294
  _form_params: List[Tuple[str, str]] = []
295
- _files: Dict[str, str] = {}
295
+ _files: Dict[str, Union[str, bytes]] = {}
296
296
  _body_params: Optional[bytes] = None
297
297
 
298
298
  # process the path parameters
@@ -307,11 +307,12 @@ class ProjectApi:
307
307
 
308
308
 
309
309
  # set the HTTP header `Accept`
310
- _header_params['Accept'] = self.api_client.select_header_accept(
311
- [
312
- 'application/json'
313
- ]
314
- )
310
+ if 'Accept' not in _header_params:
311
+ _header_params['Accept'] = self.api_client.select_header_accept(
312
+ [
313
+ 'application/json'
314
+ ]
315
+ )
315
316
 
316
317
  # set the HTTP header `Content-Type`
317
318
  if _content_type:
@@ -577,7 +578,7 @@ class ProjectApi:
577
578
  _query_params: List[Tuple[str, str]] = []
578
579
  _header_params: Dict[str, Optional[str]] = _headers or {}
579
580
  _form_params: List[Tuple[str, str]] = []
580
- _files: Dict[str, str] = {}
581
+ _files: Dict[str, Union[str, bytes]] = {}
581
582
  _body_params: Optional[bytes] = None
582
583
 
583
584
  # process the path parameters
@@ -590,11 +591,12 @@ class ProjectApi:
590
591
 
591
592
 
592
593
  # set the HTTP header `Accept`
593
- _header_params['Accept'] = self.api_client.select_header_accept(
594
- [
595
- 'application/json'
596
- ]
597
- )
594
+ if 'Accept' not in _header_params:
595
+ _header_params['Accept'] = self.api_client.select_header_accept(
596
+ [
597
+ 'application/json'
598
+ ]
599
+ )
598
600
 
599
601
  # set the HTTP header `Content-Type`
600
602
  if _content_type:
@@ -651,9 +653,9 @@ class ProjectApi:
651
653
  _headers: Optional[Dict[StrictStr, Any]] = None,
652
654
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
653
655
  ) -> ProjectApiKey:
654
- """Create project API token
656
+ """Create project API key
655
657
 
656
- Create an API token for a project.
658
+ Create an API key for a project.
657
659
 
658
660
  :param project: The Project ID or Project slug (required)
659
661
  :type project: str
@@ -722,9 +724,9 @@ class ProjectApi:
722
724
  _headers: Optional[Dict[StrictStr, Any]] = None,
723
725
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
724
726
  ) -> ApiResponse[ProjectApiKey]:
725
- """Create project API token
727
+ """Create project API key
726
728
 
727
- Create an API token for a project.
729
+ Create an API key for a project.
728
730
 
729
731
  :param project: The Project ID or Project slug (required)
730
732
  :type project: str
@@ -793,9 +795,9 @@ class ProjectApi:
793
795
  _headers: Optional[Dict[StrictStr, Any]] = None,
794
796
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
795
797
  ) -> RESTResponseType:
796
- """Create project API token
798
+ """Create project API key
797
799
 
798
- Create an API token for a project.
800
+ Create an API key for a project.
799
801
 
800
802
  :param project: The Project ID or Project slug (required)
801
803
  :type project: str
@@ -864,7 +866,7 @@ class ProjectApi:
864
866
  _query_params: List[Tuple[str, str]] = []
865
867
  _header_params: Dict[str, Optional[str]] = _headers or {}
866
868
  _form_params: List[Tuple[str, str]] = []
867
- _files: Dict[str, str] = {}
869
+ _files: Dict[str, Union[str, bytes]] = {}
868
870
  _body_params: Optional[bytes] = None
869
871
 
870
872
  # process the path parameters
@@ -879,11 +881,12 @@ class ProjectApi:
879
881
 
880
882
 
881
883
  # set the HTTP header `Accept`
882
- _header_params['Accept'] = self.api_client.select_header_accept(
883
- [
884
- 'application/json'
885
- ]
886
- )
884
+ if 'Accept' not in _header_params:
885
+ _header_params['Accept'] = self.api_client.select_header_accept(
886
+ [
887
+ 'application/json'
888
+ ]
889
+ )
887
890
 
888
891
  # set the HTTP header `Content-Type`
889
892
  if _content_type:
@@ -940,9 +943,9 @@ class ProjectApi:
940
943
  _headers: Optional[Dict[StrictStr, Any]] = None,
941
944
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
942
945
  ) -> None:
943
- """delete_organization
946
+ """Delete Enterprise SSO Organization
944
947
 
945
- Delete a B2B SSO Organization for a project
948
+ Irrecoverably deletes an Enterprise SSO Organization in a project by its ID.
946
949
 
947
950
  :param project_id: Project ID The project's ID. (required)
948
951
  :type project_id: str
@@ -1015,9 +1018,9 @@ class ProjectApi:
1015
1018
  _headers: Optional[Dict[StrictStr, Any]] = None,
1016
1019
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1017
1020
  ) -> ApiResponse[None]:
1018
- """delete_organization
1021
+ """Delete Enterprise SSO Organization
1019
1022
 
1020
- Delete a B2B SSO Organization for a project
1023
+ Irrecoverably deletes an Enterprise SSO Organization in a project by its ID.
1021
1024
 
1022
1025
  :param project_id: Project ID The project's ID. (required)
1023
1026
  :type project_id: str
@@ -1090,9 +1093,9 @@ class ProjectApi:
1090
1093
  _headers: Optional[Dict[StrictStr, Any]] = None,
1091
1094
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1092
1095
  ) -> RESTResponseType:
1093
- """delete_organization
1096
+ """Delete Enterprise SSO Organization
1094
1097
 
1095
- Delete a B2B SSO Organization for a project
1098
+ Irrecoverably deletes an Enterprise SSO Organization in a project by its ID.
1096
1099
 
1097
1100
  :param project_id: Project ID The project's ID. (required)
1098
1101
  :type project_id: str
@@ -1165,7 +1168,7 @@ class ProjectApi:
1165
1168
  _query_params: List[Tuple[str, str]] = []
1166
1169
  _header_params: Dict[str, Optional[str]] = _headers or {}
1167
1170
  _form_params: List[Tuple[str, str]] = []
1168
- _files: Dict[str, str] = {}
1171
+ _files: Dict[str, Union[str, bytes]] = {}
1169
1172
  _body_params: Optional[bytes] = None
1170
1173
 
1171
1174
  # process the path parameters
@@ -1180,11 +1183,12 @@ class ProjectApi:
1180
1183
 
1181
1184
 
1182
1185
  # set the HTTP header `Accept`
1183
- _header_params['Accept'] = self.api_client.select_header_accept(
1184
- [
1185
- 'application/json'
1186
- ]
1187
- )
1186
+ if 'Accept' not in _header_params:
1187
+ _header_params['Accept'] = self.api_client.select_header_accept(
1188
+ [
1189
+ 'application/json'
1190
+ ]
1191
+ )
1188
1192
 
1189
1193
 
1190
1194
  # authentication setting
@@ -1228,9 +1232,9 @@ class ProjectApi:
1228
1232
  _headers: Optional[Dict[StrictStr, Any]] = None,
1229
1233
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1230
1234
  ) -> None:
1231
- """Delete project API token
1235
+ """Delete project API key
1232
1236
 
1233
- Deletes an API token and immediately removes it.
1237
+ Deletes an API key and immediately removes it.
1234
1238
 
1235
1239
  :param project: The Project ID or Project slug (required)
1236
1240
  :type project: str
@@ -1299,9 +1303,9 @@ class ProjectApi:
1299
1303
  _headers: Optional[Dict[StrictStr, Any]] = None,
1300
1304
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1301
1305
  ) -> ApiResponse[None]:
1302
- """Delete project API token
1306
+ """Delete project API key
1303
1307
 
1304
- Deletes an API token and immediately removes it.
1308
+ Deletes an API key and immediately removes it.
1305
1309
 
1306
1310
  :param project: The Project ID or Project slug (required)
1307
1311
  :type project: str
@@ -1370,9 +1374,9 @@ class ProjectApi:
1370
1374
  _headers: Optional[Dict[StrictStr, Any]] = None,
1371
1375
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1372
1376
  ) -> RESTResponseType:
1373
- """Delete project API token
1377
+ """Delete project API key
1374
1378
 
1375
- Deletes an API token and immediately removes it.
1379
+ Deletes an API key and immediately removes it.
1376
1380
 
1377
1381
  :param project: The Project ID or Project slug (required)
1378
1382
  :type project: str
@@ -1441,7 +1445,7 @@ class ProjectApi:
1441
1445
  _query_params: List[Tuple[str, str]] = []
1442
1446
  _header_params: Dict[str, Optional[str]] = _headers or {}
1443
1447
  _form_params: List[Tuple[str, str]] = []
1444
- _files: Dict[str, str] = {}
1448
+ _files: Dict[str, Union[str, bytes]] = {}
1445
1449
  _body_params: Optional[bytes] = None
1446
1450
 
1447
1451
  # process the path parameters
@@ -1456,11 +1460,12 @@ class ProjectApi:
1456
1460
 
1457
1461
 
1458
1462
  # set the HTTP header `Accept`
1459
- _header_params['Accept'] = self.api_client.select_header_accept(
1460
- [
1461
- 'application/json'
1462
- ]
1463
- )
1463
+ if 'Accept' not in _header_params:
1464
+ _header_params['Accept'] = self.api_client.select_header_accept(
1465
+ [
1466
+ 'application/json'
1467
+ ]
1468
+ )
1464
1469
 
1465
1470
 
1466
1471
  # authentication setting
@@ -1504,8 +1509,9 @@ class ProjectApi:
1504
1509
  _headers: Optional[Dict[StrictStr, Any]] = None,
1505
1510
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1506
1511
  ) -> GetOrganizationResponse:
1507
- """Returns a B2B SSO Organization for a project by its ID
1512
+ """Get Enterprise SSO Organization by ID
1508
1513
 
1514
+ Retrieves an Enterprise SSO Organization for a project by its ID
1509
1515
 
1510
1516
  :param project_id: Project ID The project's ID. (required)
1511
1517
  :type project_id: str
@@ -1576,8 +1582,9 @@ class ProjectApi:
1576
1582
  _headers: Optional[Dict[StrictStr, Any]] = None,
1577
1583
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1578
1584
  ) -> ApiResponse[GetOrganizationResponse]:
1579
- """Returns a B2B SSO Organization for a project by its ID
1585
+ """Get Enterprise SSO Organization by ID
1580
1586
 
1587
+ Retrieves an Enterprise SSO Organization for a project by its ID
1581
1588
 
1582
1589
  :param project_id: Project ID The project's ID. (required)
1583
1590
  :type project_id: str
@@ -1648,8 +1655,9 @@ class ProjectApi:
1648
1655
  _headers: Optional[Dict[StrictStr, Any]] = None,
1649
1656
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
1650
1657
  ) -> RESTResponseType:
1651
- """Returns a B2B SSO Organization for a project by its ID
1658
+ """Get Enterprise SSO Organization by ID
1652
1659
 
1660
+ Retrieves an Enterprise SSO Organization for a project by its ID
1653
1661
 
1654
1662
  :param project_id: Project ID The project's ID. (required)
1655
1663
  :type project_id: str
@@ -1720,7 +1728,7 @@ class ProjectApi:
1720
1728
  _query_params: List[Tuple[str, str]] = []
1721
1729
  _header_params: Dict[str, Optional[str]] = _headers or {}
1722
1730
  _form_params: List[Tuple[str, str]] = []
1723
- _files: Dict[str, str] = {}
1731
+ _files: Dict[str, Union[str, bytes]] = {}
1724
1732
  _body_params: Optional[bytes] = None
1725
1733
 
1726
1734
  # process the path parameters
@@ -1735,11 +1743,12 @@ class ProjectApi:
1735
1743
 
1736
1744
 
1737
1745
  # set the HTTP header `Accept`
1738
- _header_params['Accept'] = self.api_client.select_header_accept(
1739
- [
1740
- 'application/json'
1741
- ]
1742
- )
1746
+ if 'Accept' not in _header_params:
1747
+ _header_params['Accept'] = self.api_client.select_header_accept(
1748
+ [
1749
+ 'application/json'
1750
+ ]
1751
+ )
1743
1752
 
1744
1753
 
1745
1754
  # authentication setting
@@ -1992,7 +2001,7 @@ class ProjectApi:
1992
2001
  _query_params: List[Tuple[str, str]] = []
1993
2002
  _header_params: Dict[str, Optional[str]] = _headers or {}
1994
2003
  _form_params: List[Tuple[str, str]] = []
1995
- _files: Dict[str, str] = {}
2004
+ _files: Dict[str, Union[str, bytes]] = {}
1996
2005
  _body_params: Optional[bytes] = None
1997
2006
 
1998
2007
  # process the path parameters
@@ -2005,11 +2014,12 @@ class ProjectApi:
2005
2014
 
2006
2015
 
2007
2016
  # set the HTTP header `Accept`
2008
- _header_params['Accept'] = self.api_client.select_header_accept(
2009
- [
2010
- 'application/json'
2011
- ]
2012
- )
2017
+ if 'Accept' not in _header_params:
2018
+ _header_params['Accept'] = self.api_client.select_header_accept(
2019
+ [
2020
+ 'application/json'
2021
+ ]
2022
+ )
2013
2023
 
2014
2024
 
2015
2025
  # authentication setting
@@ -2259,7 +2269,7 @@ class ProjectApi:
2259
2269
  _query_params: List[Tuple[str, str]] = []
2260
2270
  _header_params: Dict[str, Optional[str]] = _headers or {}
2261
2271
  _form_params: List[Tuple[str, str]] = []
2262
- _files: Dict[str, str] = {}
2272
+ _files: Dict[str, Union[str, bytes]] = {}
2263
2273
  _body_params: Optional[bytes] = None
2264
2274
 
2265
2275
  # process the path parameters
@@ -2272,11 +2282,12 @@ class ProjectApi:
2272
2282
 
2273
2283
 
2274
2284
  # set the HTTP header `Accept`
2275
- _header_params['Accept'] = self.api_client.select_header_accept(
2276
- [
2277
- 'application/json'
2278
- ]
2279
- )
2285
+ if 'Accept' not in _header_params:
2286
+ _header_params['Accept'] = self.api_client.select_header_accept(
2287
+ [
2288
+ 'application/json'
2289
+ ]
2290
+ )
2280
2291
 
2281
2292
 
2282
2293
  # authentication setting
@@ -2322,9 +2333,9 @@ class ProjectApi:
2322
2333
  _headers: Optional[Dict[StrictStr, Any]] = None,
2323
2334
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2324
2335
  ) -> ListOrganizationsResponse:
2325
- """list_organizations
2336
+ """List all Enterprise SSO organizations
2326
2337
 
2327
- List all B2B SSO Organizations for a project
2338
+ Lists all Enterprise SSO organizations in a project.
2328
2339
 
2329
2340
  :param project_id: Project ID The project's ID. (required)
2330
2341
  :type project_id: str
@@ -2403,9 +2414,9 @@ class ProjectApi:
2403
2414
  _headers: Optional[Dict[StrictStr, Any]] = None,
2404
2415
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2405
2416
  ) -> ApiResponse[ListOrganizationsResponse]:
2406
- """list_organizations
2417
+ """List all Enterprise SSO organizations
2407
2418
 
2408
- List all B2B SSO Organizations for a project
2419
+ Lists all Enterprise SSO organizations in a project.
2409
2420
 
2410
2421
  :param project_id: Project ID The project's ID. (required)
2411
2422
  :type project_id: str
@@ -2484,9 +2495,9 @@ class ProjectApi:
2484
2495
  _headers: Optional[Dict[StrictStr, Any]] = None,
2485
2496
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2486
2497
  ) -> RESTResponseType:
2487
- """list_organizations
2498
+ """List all Enterprise SSO organizations
2488
2499
 
2489
- List all B2B SSO Organizations for a project
2500
+ Lists all Enterprise SSO organizations in a project.
2490
2501
 
2491
2502
  :param project_id: Project ID The project's ID. (required)
2492
2503
  :type project_id: str
@@ -2565,7 +2576,7 @@ class ProjectApi:
2565
2576
  _query_params: List[Tuple[str, str]] = []
2566
2577
  _header_params: Dict[str, Optional[str]] = _headers or {}
2567
2578
  _form_params: List[Tuple[str, str]] = []
2568
- _files: Dict[str, str] = {}
2579
+ _files: Dict[str, Union[str, bytes]] = {}
2569
2580
  _body_params: Optional[bytes] = None
2570
2581
 
2571
2582
  # process the path parameters
@@ -2590,11 +2601,12 @@ class ProjectApi:
2590
2601
 
2591
2602
 
2592
2603
  # set the HTTP header `Accept`
2593
- _header_params['Accept'] = self.api_client.select_header_accept(
2594
- [
2595
- 'application/json'
2596
- ]
2597
- )
2604
+ if 'Accept' not in _header_params:
2605
+ _header_params['Accept'] = self.api_client.select_header_accept(
2606
+ [
2607
+ 'application/json'
2608
+ ]
2609
+ )
2598
2610
 
2599
2611
 
2600
2612
  # authentication setting
@@ -2637,9 +2649,9 @@ class ProjectApi:
2637
2649
  _headers: Optional[Dict[StrictStr, Any]] = None,
2638
2650
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2639
2651
  ) -> List[ProjectApiKey]:
2640
- """List a project's API Tokens
2652
+ """List a project's API keys
2641
2653
 
2642
- A list of all the project's API tokens.
2654
+ A list of all the project's API keys.
2643
2655
 
2644
2656
  :param project: The Project ID or Project slug (required)
2645
2657
  :type project: str
@@ -2704,9 +2716,9 @@ class ProjectApi:
2704
2716
  _headers: Optional[Dict[StrictStr, Any]] = None,
2705
2717
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2706
2718
  ) -> ApiResponse[List[ProjectApiKey]]:
2707
- """List a project's API Tokens
2719
+ """List a project's API keys
2708
2720
 
2709
- A list of all the project's API tokens.
2721
+ A list of all the project's API keys.
2710
2722
 
2711
2723
  :param project: The Project ID or Project slug (required)
2712
2724
  :type project: str
@@ -2771,9 +2783,9 @@ class ProjectApi:
2771
2783
  _headers: Optional[Dict[StrictStr, Any]] = None,
2772
2784
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
2773
2785
  ) -> RESTResponseType:
2774
- """List a project's API Tokens
2786
+ """List a project's API keys
2775
2787
 
2776
- A list of all the project's API tokens.
2788
+ A list of all the project's API keys.
2777
2789
 
2778
2790
  :param project: The Project ID or Project slug (required)
2779
2791
  :type project: str
@@ -2838,7 +2850,7 @@ class ProjectApi:
2838
2850
  _query_params: List[Tuple[str, str]] = []
2839
2851
  _header_params: Dict[str, Optional[str]] = _headers or {}
2840
2852
  _form_params: List[Tuple[str, str]] = []
2841
- _files: Dict[str, str] = {}
2853
+ _files: Dict[str, Union[str, bytes]] = {}
2842
2854
  _body_params: Optional[bytes] = None
2843
2855
 
2844
2856
  # process the path parameters
@@ -2851,11 +2863,12 @@ class ProjectApi:
2851
2863
 
2852
2864
 
2853
2865
  # set the HTTP header `Accept`
2854
- _header_params['Accept'] = self.api_client.select_header_accept(
2855
- [
2856
- 'application/json'
2857
- ]
2858
- )
2866
+ if 'Accept' not in _header_params:
2867
+ _header_params['Accept'] = self.api_client.select_header_accept(
2868
+ [
2869
+ 'application/json'
2870
+ ]
2871
+ )
2859
2872
 
2860
2873
 
2861
2874
  # authentication setting
@@ -3095,7 +3108,7 @@ class ProjectApi:
3095
3108
  _query_params: List[Tuple[str, str]] = []
3096
3109
  _header_params: Dict[str, Optional[str]] = _headers or {}
3097
3110
  _form_params: List[Tuple[str, str]] = []
3098
- _files: Dict[str, str] = {}
3111
+ _files: Dict[str, Union[str, bytes]] = {}
3099
3112
  _body_params: Optional[bytes] = None
3100
3113
 
3101
3114
  # process the path parameters
@@ -3106,11 +3119,12 @@ class ProjectApi:
3106
3119
 
3107
3120
 
3108
3121
  # set the HTTP header `Accept`
3109
- _header_params['Accept'] = self.api_client.select_header_accept(
3110
- [
3111
- 'application/json'
3112
- ]
3113
- )
3122
+ if 'Accept' not in _header_params:
3123
+ _header_params['Accept'] = self.api_client.select_header_accept(
3124
+ [
3125
+ 'application/json'
3126
+ ]
3127
+ )
3114
3128
 
3115
3129
 
3116
3130
  # authentication setting
@@ -3380,7 +3394,7 @@ class ProjectApi:
3380
3394
  _query_params: List[Tuple[str, str]] = []
3381
3395
  _header_params: Dict[str, Optional[str]] = _headers or {}
3382
3396
  _form_params: List[Tuple[str, str]] = []
3383
- _files: Dict[str, str] = {}
3397
+ _files: Dict[str, Union[str, bytes]] = {}
3384
3398
  _body_params: Optional[bytes] = None
3385
3399
 
3386
3400
  # process the path parameters
@@ -3395,11 +3409,330 @@ class ProjectApi:
3395
3409
 
3396
3410
 
3397
3411
  # set the HTTP header `Accept`
3398
- _header_params['Accept'] = self.api_client.select_header_accept(
3399
- [
3400
- 'application/json'
3412
+ if 'Accept' not in _header_params:
3413
+ _header_params['Accept'] = self.api_client.select_header_accept(
3414
+ [
3415
+ 'application/json'
3416
+ ]
3417
+ )
3418
+
3419
+ # set the HTTP header `Content-Type`
3420
+ if _content_type:
3421
+ _header_params['Content-Type'] = _content_type
3422
+ else:
3423
+ _default_content_type = (
3424
+ self.api_client.select_header_content_type(
3425
+ [
3426
+ 'application/json'
3427
+ ]
3428
+ )
3429
+ )
3430
+ if _default_content_type is not None:
3431
+ _header_params['Content-Type'] = _default_content_type
3432
+
3433
+ # authentication setting
3434
+ _auth_settings: List[str] = [
3435
+ 'oryWorkspaceApiKey'
3436
+ ]
3437
+
3438
+ return self.api_client.param_serialize(
3439
+ method='PATCH',
3440
+ resource_path='/projects/{project_id}',
3441
+ path_params=_path_params,
3442
+ query_params=_query_params,
3443
+ header_params=_header_params,
3444
+ body=_body_params,
3445
+ post_params=_form_params,
3446
+ files=_files,
3447
+ auth_settings=_auth_settings,
3448
+ collection_formats=_collection_formats,
3449
+ _host=_host,
3450
+ _request_auth=_request_auth
3451
+ )
3452
+
3453
+
3454
+
3455
+
3456
+ @validate_call
3457
+ def patch_project_with_revision(
3458
+ self,
3459
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
3460
+ revision_id: Annotated[StrictStr, Field(description="Revision ID The revision ID that this patch was generated for.")],
3461
+ json_patch: Optional[List[JsonPatch]] = None,
3462
+ _request_timeout: Union[
3463
+ None,
3464
+ Annotated[StrictFloat, Field(gt=0)],
3465
+ Tuple[
3466
+ Annotated[StrictFloat, Field(gt=0)],
3467
+ Annotated[StrictFloat, Field(gt=0)]
3401
3468
  ]
3469
+ ] = None,
3470
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3471
+ _content_type: Optional[StrictStr] = None,
3472
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3473
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3474
+ ) -> SuccessfulProjectUpdate:
3475
+ """Patch an Ory Network Project Configuration based on a revision ID
3476
+
3477
+ This endpoints allows you to patch individual Ory Network Project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
3478
+
3479
+ :param project_id: Project ID The project's ID. (required)
3480
+ :type project_id: str
3481
+ :param revision_id: Revision ID The revision ID that this patch was generated for. (required)
3482
+ :type revision_id: str
3483
+ :param json_patch:
3484
+ :type json_patch: List[JsonPatch]
3485
+ :param _request_timeout: timeout setting for this request. If one
3486
+ number provided, it will be total request
3487
+ timeout. It can also be a pair (tuple) of
3488
+ (connection, read) timeouts.
3489
+ :type _request_timeout: int, tuple(int, int), optional
3490
+ :param _request_auth: set to override the auth_settings for an a single
3491
+ request; this effectively ignores the
3492
+ authentication in the spec for a single request.
3493
+ :type _request_auth: dict, optional
3494
+ :param _content_type: force content-type for the request.
3495
+ :type _content_type: str, Optional
3496
+ :param _headers: set to override the headers for a single
3497
+ request; this effectively ignores the headers
3498
+ in the spec for a single request.
3499
+ :type _headers: dict, optional
3500
+ :param _host_index: set to override the host_index for a single
3501
+ request; this effectively ignores the host_index
3502
+ in the spec for a single request.
3503
+ :type _host_index: int, optional
3504
+ :return: Returns the result object.
3505
+ """ # noqa: E501
3506
+
3507
+ _param = self._patch_project_with_revision_serialize(
3508
+ project_id=project_id,
3509
+ revision_id=revision_id,
3510
+ json_patch=json_patch,
3511
+ _request_auth=_request_auth,
3512
+ _content_type=_content_type,
3513
+ _headers=_headers,
3514
+ _host_index=_host_index
3515
+ )
3516
+
3517
+ _response_types_map: Dict[str, Optional[str]] = {
3518
+ '200': "SuccessfulProjectUpdate",
3519
+ '400': "ErrorGeneric",
3520
+ '401': "ErrorGeneric",
3521
+ '403': "ErrorGeneric",
3522
+ '404': "ErrorGeneric",
3523
+ }
3524
+ response_data = self.api_client.call_api(
3525
+ *_param,
3526
+ _request_timeout=_request_timeout
3402
3527
  )
3528
+ response_data.read()
3529
+ return self.api_client.response_deserialize(
3530
+ response_data=response_data,
3531
+ response_types_map=_response_types_map,
3532
+ ).data
3533
+
3534
+
3535
+ @validate_call
3536
+ def patch_project_with_revision_with_http_info(
3537
+ self,
3538
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
3539
+ revision_id: Annotated[StrictStr, Field(description="Revision ID The revision ID that this patch was generated for.")],
3540
+ json_patch: Optional[List[JsonPatch]] = None,
3541
+ _request_timeout: Union[
3542
+ None,
3543
+ Annotated[StrictFloat, Field(gt=0)],
3544
+ Tuple[
3545
+ Annotated[StrictFloat, Field(gt=0)],
3546
+ Annotated[StrictFloat, Field(gt=0)]
3547
+ ]
3548
+ ] = None,
3549
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3550
+ _content_type: Optional[StrictStr] = None,
3551
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3552
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3553
+ ) -> ApiResponse[SuccessfulProjectUpdate]:
3554
+ """Patch an Ory Network Project Configuration based on a revision ID
3555
+
3556
+ This endpoints allows you to patch individual Ory Network Project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
3557
+
3558
+ :param project_id: Project ID The project's ID. (required)
3559
+ :type project_id: str
3560
+ :param revision_id: Revision ID The revision ID that this patch was generated for. (required)
3561
+ :type revision_id: str
3562
+ :param json_patch:
3563
+ :type json_patch: List[JsonPatch]
3564
+ :param _request_timeout: timeout setting for this request. If one
3565
+ number provided, it will be total request
3566
+ timeout. It can also be a pair (tuple) of
3567
+ (connection, read) timeouts.
3568
+ :type _request_timeout: int, tuple(int, int), optional
3569
+ :param _request_auth: set to override the auth_settings for an a single
3570
+ request; this effectively ignores the
3571
+ authentication in the spec for a single request.
3572
+ :type _request_auth: dict, optional
3573
+ :param _content_type: force content-type for the request.
3574
+ :type _content_type: str, Optional
3575
+ :param _headers: set to override the headers for a single
3576
+ request; this effectively ignores the headers
3577
+ in the spec for a single request.
3578
+ :type _headers: dict, optional
3579
+ :param _host_index: set to override the host_index for a single
3580
+ request; this effectively ignores the host_index
3581
+ in the spec for a single request.
3582
+ :type _host_index: int, optional
3583
+ :return: Returns the result object.
3584
+ """ # noqa: E501
3585
+
3586
+ _param = self._patch_project_with_revision_serialize(
3587
+ project_id=project_id,
3588
+ revision_id=revision_id,
3589
+ json_patch=json_patch,
3590
+ _request_auth=_request_auth,
3591
+ _content_type=_content_type,
3592
+ _headers=_headers,
3593
+ _host_index=_host_index
3594
+ )
3595
+
3596
+ _response_types_map: Dict[str, Optional[str]] = {
3597
+ '200': "SuccessfulProjectUpdate",
3598
+ '400': "ErrorGeneric",
3599
+ '401': "ErrorGeneric",
3600
+ '403': "ErrorGeneric",
3601
+ '404': "ErrorGeneric",
3602
+ }
3603
+ response_data = self.api_client.call_api(
3604
+ *_param,
3605
+ _request_timeout=_request_timeout
3606
+ )
3607
+ response_data.read()
3608
+ return self.api_client.response_deserialize(
3609
+ response_data=response_data,
3610
+ response_types_map=_response_types_map,
3611
+ )
3612
+
3613
+
3614
+ @validate_call
3615
+ def patch_project_with_revision_without_preload_content(
3616
+ self,
3617
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
3618
+ revision_id: Annotated[StrictStr, Field(description="Revision ID The revision ID that this patch was generated for.")],
3619
+ json_patch: Optional[List[JsonPatch]] = None,
3620
+ _request_timeout: Union[
3621
+ None,
3622
+ Annotated[StrictFloat, Field(gt=0)],
3623
+ Tuple[
3624
+ Annotated[StrictFloat, Field(gt=0)],
3625
+ Annotated[StrictFloat, Field(gt=0)]
3626
+ ]
3627
+ ] = None,
3628
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3629
+ _content_type: Optional[StrictStr] = None,
3630
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3631
+ _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
3632
+ ) -> RESTResponseType:
3633
+ """Patch an Ory Network Project Configuration based on a revision ID
3634
+
3635
+ This endpoints allows you to patch individual Ory Network Project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
3636
+
3637
+ :param project_id: Project ID The project's ID. (required)
3638
+ :type project_id: str
3639
+ :param revision_id: Revision ID The revision ID that this patch was generated for. (required)
3640
+ :type revision_id: str
3641
+ :param json_patch:
3642
+ :type json_patch: List[JsonPatch]
3643
+ :param _request_timeout: timeout setting for this request. If one
3644
+ number provided, it will be total request
3645
+ timeout. It can also be a pair (tuple) of
3646
+ (connection, read) timeouts.
3647
+ :type _request_timeout: int, tuple(int, int), optional
3648
+ :param _request_auth: set to override the auth_settings for an a single
3649
+ request; this effectively ignores the
3650
+ authentication in the spec for a single request.
3651
+ :type _request_auth: dict, optional
3652
+ :param _content_type: force content-type for the request.
3653
+ :type _content_type: str, Optional
3654
+ :param _headers: set to override the headers for a single
3655
+ request; this effectively ignores the headers
3656
+ in the spec for a single request.
3657
+ :type _headers: dict, optional
3658
+ :param _host_index: set to override the host_index for a single
3659
+ request; this effectively ignores the host_index
3660
+ in the spec for a single request.
3661
+ :type _host_index: int, optional
3662
+ :return: Returns the result object.
3663
+ """ # noqa: E501
3664
+
3665
+ _param = self._patch_project_with_revision_serialize(
3666
+ project_id=project_id,
3667
+ revision_id=revision_id,
3668
+ json_patch=json_patch,
3669
+ _request_auth=_request_auth,
3670
+ _content_type=_content_type,
3671
+ _headers=_headers,
3672
+ _host_index=_host_index
3673
+ )
3674
+
3675
+ _response_types_map: Dict[str, Optional[str]] = {
3676
+ '200': "SuccessfulProjectUpdate",
3677
+ '400': "ErrorGeneric",
3678
+ '401': "ErrorGeneric",
3679
+ '403': "ErrorGeneric",
3680
+ '404': "ErrorGeneric",
3681
+ }
3682
+ response_data = self.api_client.call_api(
3683
+ *_param,
3684
+ _request_timeout=_request_timeout
3685
+ )
3686
+ return response_data.response
3687
+
3688
+
3689
+ def _patch_project_with_revision_serialize(
3690
+ self,
3691
+ project_id,
3692
+ revision_id,
3693
+ json_patch,
3694
+ _request_auth,
3695
+ _content_type,
3696
+ _headers,
3697
+ _host_index,
3698
+ ) -> RequestSerialized:
3699
+
3700
+ _hosts = [
3701
+ 'https://api.console.ory.sh'
3702
+ ]
3703
+ _host = _hosts[_host_index]
3704
+
3705
+ _collection_formats: Dict[str, str] = {
3706
+ 'JsonPatch': '',
3707
+ }
3708
+
3709
+ _path_params: Dict[str, str] = {}
3710
+ _query_params: List[Tuple[str, str]] = []
3711
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3712
+ _form_params: List[Tuple[str, str]] = []
3713
+ _files: Dict[str, Union[str, bytes]] = {}
3714
+ _body_params: Optional[bytes] = None
3715
+
3716
+ # process the path parameters
3717
+ if project_id is not None:
3718
+ _path_params['project_id'] = project_id
3719
+ if revision_id is not None:
3720
+ _path_params['revision_id'] = revision_id
3721
+ # process the query parameters
3722
+ # process the header parameters
3723
+ # process the form parameters
3724
+ # process the body parameter
3725
+ if json_patch is not None:
3726
+ _body_params = json_patch
3727
+
3728
+
3729
+ # set the HTTP header `Accept`
3730
+ if 'Accept' not in _header_params:
3731
+ _header_params['Accept'] = self.api_client.select_header_accept(
3732
+ [
3733
+ 'application/json'
3734
+ ]
3735
+ )
3403
3736
 
3404
3737
  # set the HTTP header `Content-Type`
3405
3738
  if _content_type:
@@ -3422,7 +3755,7 @@ class ProjectApi:
3422
3755
 
3423
3756
  return self.api_client.param_serialize(
3424
3757
  method='PATCH',
3425
- resource_path='/projects/{project_id}',
3758
+ resource_path='/projects/{project_id}/revision/{revision_id}',
3426
3759
  path_params=_path_params,
3427
3760
  query_params=_query_params,
3428
3761
  header_params=_header_params,
@@ -3457,7 +3790,7 @@ class ProjectApi:
3457
3790
  ) -> None:
3458
3791
  """Irrecoverably purge a project
3459
3792
 
3460
- !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. !! Use with extreme caution !!
3793
+ !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first.
3461
3794
 
3462
3795
  :param project_id: Project ID The project's ID. (required)
3463
3796
  :type project_id: str
@@ -3527,7 +3860,7 @@ class ProjectApi:
3527
3860
  ) -> ApiResponse[None]:
3528
3861
  """Irrecoverably purge a project
3529
3862
 
3530
- !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. !! Use with extreme caution !!
3863
+ !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first.
3531
3864
 
3532
3865
  :param project_id: Project ID The project's ID. (required)
3533
3866
  :type project_id: str
@@ -3597,7 +3930,7 @@ class ProjectApi:
3597
3930
  ) -> RESTResponseType:
3598
3931
  """Irrecoverably purge a project
3599
3932
 
3600
- !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. !! Use with extreme caution !!
3933
+ !! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first.
3601
3934
 
3602
3935
  :param project_id: Project ID The project's ID. (required)
3603
3936
  :type project_id: str
@@ -3665,7 +3998,7 @@ class ProjectApi:
3665
3998
  _query_params: List[Tuple[str, str]] = []
3666
3999
  _header_params: Dict[str, Optional[str]] = _headers or {}
3667
4000
  _form_params: List[Tuple[str, str]] = []
3668
- _files: Dict[str, str] = {}
4001
+ _files: Dict[str, Union[str, bytes]] = {}
3669
4002
  _body_params: Optional[bytes] = None
3670
4003
 
3671
4004
  # process the path parameters
@@ -3678,11 +4011,12 @@ class ProjectApi:
3678
4011
 
3679
4012
 
3680
4013
  # set the HTTP header `Accept`
3681
- _header_params['Accept'] = self.api_client.select_header_accept(
3682
- [
3683
- 'application/json'
3684
- ]
3685
- )
4014
+ if 'Accept' not in _header_params:
4015
+ _header_params['Accept'] = self.api_client.select_header_accept(
4016
+ [
4017
+ 'application/json'
4018
+ ]
4019
+ )
3686
4020
 
3687
4021
 
3688
4022
  # authentication setting
@@ -3945,7 +4279,7 @@ class ProjectApi:
3945
4279
  _query_params: List[Tuple[str, str]] = []
3946
4280
  _header_params: Dict[str, Optional[str]] = _headers or {}
3947
4281
  _form_params: List[Tuple[str, str]] = []
3948
- _files: Dict[str, str] = {}
4282
+ _files: Dict[str, Union[str, bytes]] = {}
3949
4283
  _body_params: Optional[bytes] = None
3950
4284
 
3951
4285
  # process the path parameters
@@ -3960,11 +4294,12 @@ class ProjectApi:
3960
4294
 
3961
4295
 
3962
4296
  # set the HTTP header `Accept`
3963
- _header_params['Accept'] = self.api_client.select_header_accept(
3964
- [
3965
- 'application/json'
3966
- ]
3967
- )
4297
+ if 'Accept' not in _header_params:
4298
+ _header_params['Accept'] = self.api_client.select_header_accept(
4299
+ [
4300
+ 'application/json'
4301
+ ]
4302
+ )
3968
4303
 
3969
4304
 
3970
4305
  # authentication setting
@@ -4233,7 +4568,7 @@ class ProjectApi:
4233
4568
  _query_params: List[Tuple[str, str]] = []
4234
4569
  _header_params: Dict[str, Optional[str]] = _headers or {}
4235
4570
  _form_params: List[Tuple[str, str]] = []
4236
- _files: Dict[str, str] = {}
4571
+ _files: Dict[str, Union[str, bytes]] = {}
4237
4572
  _body_params: Optional[bytes] = None
4238
4573
 
4239
4574
  # process the path parameters
@@ -4248,11 +4583,12 @@ class ProjectApi:
4248
4583
 
4249
4584
 
4250
4585
  # set the HTTP header `Accept`
4251
- _header_params['Accept'] = self.api_client.select_header_accept(
4252
- [
4253
- 'application/json'
4254
- ]
4255
- )
4586
+ if 'Accept' not in _header_params:
4587
+ _header_params['Accept'] = self.api_client.select_header_accept(
4588
+ [
4589
+ 'application/json'
4590
+ ]
4591
+ )
4256
4592
 
4257
4593
  # set the HTTP header `Content-Type`
4258
4594
  if _content_type:
@@ -4310,9 +4646,9 @@ class ProjectApi:
4310
4646
  _headers: Optional[Dict[StrictStr, Any]] = None,
4311
4647
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
4312
4648
  ) -> Organization:
4313
- """update_organization
4649
+ """Update an Enterprise SSO Organization
4314
4650
 
4315
- Update a B2B SSO Organization for a project
4651
+ Updates an Enterprise SSO Organization in a project by its ID.
4316
4652
 
4317
4653
  :param project_id: Project ID The project's ID. (required)
4318
4654
  :type project_id: str
@@ -4389,9 +4725,9 @@ class ProjectApi:
4389
4725
  _headers: Optional[Dict[StrictStr, Any]] = None,
4390
4726
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
4391
4727
  ) -> ApiResponse[Organization]:
4392
- """update_organization
4728
+ """Update an Enterprise SSO Organization
4393
4729
 
4394
- Update a B2B SSO Organization for a project
4730
+ Updates an Enterprise SSO Organization in a project by its ID.
4395
4731
 
4396
4732
  :param project_id: Project ID The project's ID. (required)
4397
4733
  :type project_id: str
@@ -4468,9 +4804,9 @@ class ProjectApi:
4468
4804
  _headers: Optional[Dict[StrictStr, Any]] = None,
4469
4805
  _host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
4470
4806
  ) -> RESTResponseType:
4471
- """update_organization
4807
+ """Update an Enterprise SSO Organization
4472
4808
 
4473
- Update a B2B SSO Organization for a project
4809
+ Updates an Enterprise SSO Organization in a project by its ID.
4474
4810
 
4475
4811
  :param project_id: Project ID The project's ID. (required)
4476
4812
  :type project_id: str
@@ -4547,7 +4883,7 @@ class ProjectApi:
4547
4883
  _query_params: List[Tuple[str, str]] = []
4548
4884
  _header_params: Dict[str, Optional[str]] = _headers or {}
4549
4885
  _form_params: List[Tuple[str, str]] = []
4550
- _files: Dict[str, str] = {}
4886
+ _files: Dict[str, Union[str, bytes]] = {}
4551
4887
  _body_params: Optional[bytes] = None
4552
4888
 
4553
4889
  # process the path parameters
@@ -4564,11 +4900,12 @@ class ProjectApi:
4564
4900
 
4565
4901
 
4566
4902
  # set the HTTP header `Accept`
4567
- _header_params['Accept'] = self.api_client.select_header_accept(
4568
- [
4569
- 'application/json'
4570
- ]
4571
- )
4903
+ if 'Accept' not in _header_params:
4904
+ _header_params['Accept'] = self.api_client.select_header_accept(
4905
+ [
4906
+ 'application/json'
4907
+ ]
4908
+ )
4572
4909
 
4573
4910
  # set the HTTP header `Content-Type`
4574
4911
  if _content_type: