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
 
@@ -18,7 +18,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
20
  from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator
21
- from typing import List, Optional
21
+ from typing import Any, Dict, List, Optional
22
22
  from typing_extensions import Annotated
23
23
  from ory_client.models.batch_patch_identities_response import BatchPatchIdentitiesResponse
24
24
  from ory_client.models.create_identity_body import CreateIdentityBody
@@ -272,7 +272,7 @@ class IdentityApi:
272
272
  _query_params: List[Tuple[str, str]] = []
273
273
  _header_params: Dict[str, Optional[str]] = _headers or {}
274
274
  _form_params: List[Tuple[str, str]] = []
275
- _files: Dict[str, str] = {}
275
+ _files: Dict[str, Union[str, bytes]] = {}
276
276
  _body_params: Optional[bytes] = None
277
277
 
278
278
  # process the path parameters
@@ -285,11 +285,12 @@ class IdentityApi:
285
285
 
286
286
 
287
287
  # set the HTTP header `Accept`
288
- _header_params['Accept'] = self.api_client.select_header_accept(
289
- [
290
- 'application/json'
291
- ]
292
- )
288
+ if 'Accept' not in _header_params:
289
+ _header_params['Accept'] = self.api_client.select_header_accept(
290
+ [
291
+ 'application/json'
292
+ ]
293
+ )
293
294
 
294
295
  # set the HTTP header `Content-Type`
295
296
  if _content_type:
@@ -549,7 +550,7 @@ class IdentityApi:
549
550
  _query_params: List[Tuple[str, str]] = []
550
551
  _header_params: Dict[str, Optional[str]] = _headers or {}
551
552
  _form_params: List[Tuple[str, str]] = []
552
- _files: Dict[str, str] = {}
553
+ _files: Dict[str, Union[str, bytes]] = {}
553
554
  _body_params: Optional[bytes] = None
554
555
 
555
556
  # process the path parameters
@@ -562,11 +563,12 @@ class IdentityApi:
562
563
 
563
564
 
564
565
  # set the HTTP header `Accept`
565
- _header_params['Accept'] = self.api_client.select_header_accept(
566
- [
567
- 'application/json'
568
- ]
569
- )
566
+ if 'Accept' not in _header_params:
567
+ _header_params['Accept'] = self.api_client.select_header_accept(
568
+ [
569
+ 'application/json'
570
+ ]
571
+ )
570
572
 
571
573
  # set the HTTP header `Content-Type`
572
574
  if _content_type:
@@ -826,7 +828,7 @@ class IdentityApi:
826
828
  _query_params: List[Tuple[str, str]] = []
827
829
  _header_params: Dict[str, Optional[str]] = _headers or {}
828
830
  _form_params: List[Tuple[str, str]] = []
829
- _files: Dict[str, str] = {}
831
+ _files: Dict[str, Union[str, bytes]] = {}
830
832
  _body_params: Optional[bytes] = None
831
833
 
832
834
  # process the path parameters
@@ -839,11 +841,12 @@ class IdentityApi:
839
841
 
840
842
 
841
843
  # set the HTTP header `Accept`
842
- _header_params['Accept'] = self.api_client.select_header_accept(
843
- [
844
- 'application/json'
845
- ]
846
- )
844
+ if 'Accept' not in _header_params:
845
+ _header_params['Accept'] = self.api_client.select_header_accept(
846
+ [
847
+ 'application/json'
848
+ ]
849
+ )
847
850
 
848
851
  # set the HTTP header `Content-Type`
849
852
  if _content_type:
@@ -1116,7 +1119,7 @@ class IdentityApi:
1116
1119
  _query_params: List[Tuple[str, str]] = []
1117
1120
  _header_params: Dict[str, Optional[str]] = _headers or {}
1118
1121
  _form_params: List[Tuple[str, str]] = []
1119
- _files: Dict[str, str] = {}
1122
+ _files: Dict[str, Union[str, bytes]] = {}
1120
1123
  _body_params: Optional[bytes] = None
1121
1124
 
1122
1125
  # process the path parameters
@@ -1133,11 +1136,12 @@ class IdentityApi:
1133
1136
 
1134
1137
 
1135
1138
  # set the HTTP header `Accept`
1136
- _header_params['Accept'] = self.api_client.select_header_accept(
1137
- [
1138
- 'application/json'
1139
- ]
1140
- )
1139
+ if 'Accept' not in _header_params:
1140
+ _header_params['Accept'] = self.api_client.select_header_accept(
1141
+ [
1142
+ 'application/json'
1143
+ ]
1144
+ )
1141
1145
 
1142
1146
  # set the HTTP header `Content-Type`
1143
1147
  if _content_type:
@@ -1394,7 +1398,7 @@ class IdentityApi:
1394
1398
  _query_params: List[Tuple[str, str]] = []
1395
1399
  _header_params: Dict[str, Optional[str]] = _headers or {}
1396
1400
  _form_params: List[Tuple[str, str]] = []
1397
- _files: Dict[str, str] = {}
1401
+ _files: Dict[str, Union[str, bytes]] = {}
1398
1402
  _body_params: Optional[bytes] = None
1399
1403
 
1400
1404
  # process the path parameters
@@ -1407,11 +1411,12 @@ class IdentityApi:
1407
1411
 
1408
1412
 
1409
1413
  # set the HTTP header `Accept`
1410
- _header_params['Accept'] = self.api_client.select_header_accept(
1411
- [
1412
- 'application/json'
1413
- ]
1414
- )
1414
+ if 'Accept' not in _header_params:
1415
+ _header_params['Accept'] = self.api_client.select_header_accept(
1416
+ [
1417
+ 'application/json'
1418
+ ]
1419
+ )
1415
1420
 
1416
1421
 
1417
1422
  # authentication setting
@@ -1441,7 +1446,7 @@ class IdentityApi:
1441
1446
  def delete_identity_credentials(
1442
1447
  self,
1443
1448
  id: Annotated[StrictStr, Field(description="ID is the identity's ID.")],
1444
- type: Annotated[StrictStr, Field(description="Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode")],
1449
+ type: Annotated[StrictStr, Field(description="Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile saml CredentialsTypeSAML link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode")],
1445
1450
  identifier: Annotated[Optional[StrictStr], Field(description="Identifier is the identifier of the OIDC credential to delete. Find the identifier by calling the `GET /admin/identities/{id}?include_credential=oidc` endpoint.")] = None,
1446
1451
  _request_timeout: Union[
1447
1452
  None,
@@ -1462,7 +1467,7 @@ class IdentityApi:
1462
1467
 
1463
1468
  :param id: ID is the identity's ID. (required)
1464
1469
  :type id: str
1465
- :param type: Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode (required)
1470
+ :param type: Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile saml CredentialsTypeSAML link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode (required)
1466
1471
  :type type: str
1467
1472
  :param identifier: Identifier is the identifier of the OIDC credential to delete. Find the identifier by calling the `GET /admin/identities/{id}?include_credential=oidc` endpoint.
1468
1473
  :type identifier: str
@@ -1517,7 +1522,7 @@ class IdentityApi:
1517
1522
  def delete_identity_credentials_with_http_info(
1518
1523
  self,
1519
1524
  id: Annotated[StrictStr, Field(description="ID is the identity's ID.")],
1520
- type: Annotated[StrictStr, Field(description="Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode")],
1525
+ type: Annotated[StrictStr, Field(description="Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile saml CredentialsTypeSAML link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode")],
1521
1526
  identifier: Annotated[Optional[StrictStr], Field(description="Identifier is the identifier of the OIDC credential to delete. Find the identifier by calling the `GET /admin/identities/{id}?include_credential=oidc` endpoint.")] = None,
1522
1527
  _request_timeout: Union[
1523
1528
  None,
@@ -1538,7 +1543,7 @@ class IdentityApi:
1538
1543
 
1539
1544
  :param id: ID is the identity's ID. (required)
1540
1545
  :type id: str
1541
- :param type: Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode (required)
1546
+ :param type: Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile saml CredentialsTypeSAML link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode (required)
1542
1547
  :type type: str
1543
1548
  :param identifier: Identifier is the identifier of the OIDC credential to delete. Find the identifier by calling the `GET /admin/identities/{id}?include_credential=oidc` endpoint.
1544
1549
  :type identifier: str
@@ -1593,7 +1598,7 @@ class IdentityApi:
1593
1598
  def delete_identity_credentials_without_preload_content(
1594
1599
  self,
1595
1600
  id: Annotated[StrictStr, Field(description="ID is the identity's ID.")],
1596
- type: Annotated[StrictStr, Field(description="Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode")],
1601
+ type: Annotated[StrictStr, Field(description="Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile saml CredentialsTypeSAML link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode")],
1597
1602
  identifier: Annotated[Optional[StrictStr], Field(description="Identifier is the identifier of the OIDC credential to delete. Find the identifier by calling the `GET /admin/identities/{id}?include_credential=oidc` endpoint.")] = None,
1598
1603
  _request_timeout: Union[
1599
1604
  None,
@@ -1614,7 +1619,7 @@ class IdentityApi:
1614
1619
 
1615
1620
  :param id: ID is the identity's ID. (required)
1616
1621
  :type id: str
1617
- :param type: Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode (required)
1622
+ :param type: Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile saml CredentialsTypeSAML link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode (required)
1618
1623
  :type type: str
1619
1624
  :param identifier: Identifier is the identifier of the OIDC credential to delete. Find the identifier by calling the `GET /admin/identities/{id}?include_credential=oidc` endpoint.
1620
1625
  :type identifier: str
@@ -1681,7 +1686,7 @@ class IdentityApi:
1681
1686
  _query_params: List[Tuple[str, str]] = []
1682
1687
  _header_params: Dict[str, Optional[str]] = _headers or {}
1683
1688
  _form_params: List[Tuple[str, str]] = []
1684
- _files: Dict[str, str] = {}
1689
+ _files: Dict[str, Union[str, bytes]] = {}
1685
1690
  _body_params: Optional[bytes] = None
1686
1691
 
1687
1692
  # process the path parameters
@@ -1700,11 +1705,12 @@ class IdentityApi:
1700
1705
 
1701
1706
 
1702
1707
  # set the HTTP header `Accept`
1703
- _header_params['Accept'] = self.api_client.select_header_accept(
1704
- [
1705
- 'application/json'
1706
- ]
1707
- )
1708
+ if 'Accept' not in _header_params:
1709
+ _header_params['Accept'] = self.api_client.select_header_accept(
1710
+ [
1711
+ 'application/json'
1712
+ ]
1713
+ )
1708
1714
 
1709
1715
 
1710
1716
  # authentication setting
@@ -1954,7 +1960,7 @@ class IdentityApi:
1954
1960
  _query_params: List[Tuple[str, str]] = []
1955
1961
  _header_params: Dict[str, Optional[str]] = _headers or {}
1956
1962
  _form_params: List[Tuple[str, str]] = []
1957
- _files: Dict[str, str] = {}
1963
+ _files: Dict[str, Union[str, bytes]] = {}
1958
1964
  _body_params: Optional[bytes] = None
1959
1965
 
1960
1966
  # process the path parameters
@@ -1967,11 +1973,12 @@ class IdentityApi:
1967
1973
 
1968
1974
 
1969
1975
  # set the HTTP header `Accept`
1970
- _header_params['Accept'] = self.api_client.select_header_accept(
1971
- [
1972
- 'application/json'
1973
- ]
1974
- )
1976
+ if 'Accept' not in _header_params:
1977
+ _header_params['Accept'] = self.api_client.select_header_accept(
1978
+ [
1979
+ 'application/json'
1980
+ ]
1981
+ )
1975
1982
 
1976
1983
 
1977
1984
  # authentication setting
@@ -2218,7 +2225,7 @@ class IdentityApi:
2218
2225
  _query_params: List[Tuple[str, str]] = []
2219
2226
  _header_params: Dict[str, Optional[str]] = _headers or {}
2220
2227
  _form_params: List[Tuple[str, str]] = []
2221
- _files: Dict[str, str] = {}
2228
+ _files: Dict[str, Union[str, bytes]] = {}
2222
2229
  _body_params: Optional[bytes] = None
2223
2230
 
2224
2231
  # process the path parameters
@@ -2231,11 +2238,12 @@ class IdentityApi:
2231
2238
 
2232
2239
 
2233
2240
  # set the HTTP header `Accept`
2234
- _header_params['Accept'] = self.api_client.select_header_accept(
2235
- [
2236
- 'application/json'
2237
- ]
2238
- )
2241
+ if 'Accept' not in _header_params:
2242
+ _header_params['Accept'] = self.api_client.select_header_accept(
2243
+ [
2244
+ 'application/json'
2245
+ ]
2246
+ )
2239
2247
 
2240
2248
 
2241
2249
  # authentication setting
@@ -2485,7 +2493,7 @@ class IdentityApi:
2485
2493
  _query_params: List[Tuple[str, str]] = []
2486
2494
  _header_params: Dict[str, Optional[str]] = _headers or {}
2487
2495
  _form_params: List[Tuple[str, str]] = []
2488
- _files: Dict[str, str] = {}
2496
+ _files: Dict[str, Union[str, bytes]] = {}
2489
2497
  _body_params: Optional[bytes] = None
2490
2498
 
2491
2499
  # process the path parameters
@@ -2498,11 +2506,12 @@ class IdentityApi:
2498
2506
 
2499
2507
 
2500
2508
  # set the HTTP header `Accept`
2501
- _header_params['Accept'] = self.api_client.select_header_accept(
2502
- [
2503
- 'application/json'
2504
- ]
2505
- )
2509
+ if 'Accept' not in _header_params:
2510
+ _header_params['Accept'] = self.api_client.select_header_accept(
2511
+ [
2512
+ 'application/json'
2513
+ ]
2514
+ )
2506
2515
 
2507
2516
 
2508
2517
  # authentication setting
@@ -2760,7 +2769,7 @@ class IdentityApi:
2760
2769
  _query_params: List[Tuple[str, str]] = []
2761
2770
  _header_params: Dict[str, Optional[str]] = _headers or {}
2762
2771
  _form_params: List[Tuple[str, str]] = []
2763
- _files: Dict[str, str] = {}
2772
+ _files: Dict[str, Union[str, bytes]] = {}
2764
2773
  _body_params: Optional[bytes] = None
2765
2774
 
2766
2775
  # process the path parameters
@@ -2777,11 +2786,12 @@ class IdentityApi:
2777
2786
 
2778
2787
 
2779
2788
  # set the HTTP header `Accept`
2780
- _header_params['Accept'] = self.api_client.select_header_accept(
2781
- [
2782
- 'application/json'
2783
- ]
2784
- )
2789
+ if 'Accept' not in _header_params:
2790
+ _header_params['Accept'] = self.api_client.select_header_accept(
2791
+ [
2792
+ 'application/json'
2793
+ ]
2794
+ )
2785
2795
 
2786
2796
 
2787
2797
  # authentication setting
@@ -3025,7 +3035,7 @@ class IdentityApi:
3025
3035
  _query_params: List[Tuple[str, str]] = []
3026
3036
  _header_params: Dict[str, Optional[str]] = _headers or {}
3027
3037
  _form_params: List[Tuple[str, str]] = []
3028
- _files: Dict[str, str] = {}
3038
+ _files: Dict[str, Union[str, bytes]] = {}
3029
3039
  _body_params: Optional[bytes] = None
3030
3040
 
3031
3041
  # process the path parameters
@@ -3038,11 +3048,12 @@ class IdentityApi:
3038
3048
 
3039
3049
 
3040
3050
  # set the HTTP header `Accept`
3041
- _header_params['Accept'] = self.api_client.select_header_accept(
3042
- [
3043
- 'application/json'
3044
- ]
3045
- )
3051
+ if 'Accept' not in _header_params:
3052
+ _header_params['Accept'] = self.api_client.select_header_accept(
3053
+ [
3054
+ 'application/json'
3055
+ ]
3056
+ )
3046
3057
 
3047
3058
 
3048
3059
  # authentication setting
@@ -3299,7 +3310,7 @@ class IdentityApi:
3299
3310
  _query_params: List[Tuple[str, str]] = []
3300
3311
  _header_params: Dict[str, Optional[str]] = _headers or {}
3301
3312
  _form_params: List[Tuple[str, str]] = []
3302
- _files: Dict[str, str] = {}
3313
+ _files: Dict[str, Union[str, bytes]] = {}
3303
3314
  _body_params: Optional[bytes] = None
3304
3315
 
3305
3316
  # process the path parameters
@@ -3316,11 +3327,12 @@ class IdentityApi:
3316
3327
 
3317
3328
 
3318
3329
  # set the HTTP header `Accept`
3319
- _header_params['Accept'] = self.api_client.select_header_accept(
3320
- [
3321
- 'application/json'
3322
- ]
3323
- )
3330
+ if 'Accept' not in _header_params:
3331
+ _header_params['Accept'] = self.api_client.select_header_accept(
3332
+ [
3333
+ 'application/json'
3334
+ ]
3335
+ )
3324
3336
 
3325
3337
 
3326
3338
  # authentication setting
@@ -3354,10 +3366,11 @@ class IdentityApi:
3354
3366
  page_size: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
3355
3367
  page_token: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
3356
3368
  consistency: Annotated[Optional[StrictStr], Field(description="Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps.")] = None,
3357
- ids: Annotated[Optional[List[StrictStr]], Field(description="List of ids used to filter identities. If this list is empty, then no filter will be applied.")] = None,
3369
+ ids: Annotated[Optional[List[StrictStr]], Field(description="Retrieve multiple identities by their IDs. This parameter has the following limitations: Duplicate or non-existent IDs are ignored. The order of returned IDs may be different from the request. This filter does not support pagination. You must implement your own pagination as the maximum number of items returned by this endpoint may not exceed a certain threshold (currently 500).")] = None,
3358
3370
  credentials_identifier: Annotated[Optional[StrictStr], Field(description="CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.")] = None,
3359
3371
  preview_credentials_identifier_similar: Annotated[Optional[StrictStr], Field(description="This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.")] = None,
3360
3372
  include_credential: Annotated[Optional[List[StrictStr]], Field(description="Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available.")] = None,
3373
+ organization_id: Annotated[Optional[StrictStr], Field(description="List identities that belong to a specific organization.")] = None,
3361
3374
  _request_timeout: Union[
3362
3375
  None,
3363
3376
  Annotated[StrictFloat, Field(gt=0)],
@@ -3373,7 +3386,7 @@ class IdentityApi:
3373
3386
  ) -> List[Identity]:
3374
3387
  """List Identities
3375
3388
 
3376
- Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system.
3389
+ Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. Note: filters cannot be combined.
3377
3390
 
3378
3391
  :param per_page: Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page.
3379
3392
  :type per_page: int
@@ -3385,7 +3398,7 @@ class IdentityApi:
3385
3398
  :type page_token: str
3386
3399
  :param consistency: Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps.
3387
3400
  :type consistency: str
3388
- :param ids: List of ids used to filter identities. If this list is empty, then no filter will be applied.
3401
+ :param ids: Retrieve multiple identities by their IDs. This parameter has the following limitations: Duplicate or non-existent IDs are ignored. The order of returned IDs may be different from the request. This filter does not support pagination. You must implement your own pagination as the maximum number of items returned by this endpoint may not exceed a certain threshold (currently 500).
3389
3402
  :type ids: List[str]
3390
3403
  :param credentials_identifier: CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.
3391
3404
  :type credentials_identifier: str
@@ -3393,6 +3406,8 @@ class IdentityApi:
3393
3406
  :type preview_credentials_identifier_similar: str
3394
3407
  :param include_credential: Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available.
3395
3408
  :type include_credential: List[str]
3409
+ :param organization_id: List identities that belong to a specific organization.
3410
+ :type organization_id: str
3396
3411
  :param _request_timeout: timeout setting for this request. If one
3397
3412
  number provided, it will be total request
3398
3413
  timeout. It can also be a pair (tuple) of
@@ -3425,6 +3440,7 @@ class IdentityApi:
3425
3440
  credentials_identifier=credentials_identifier,
3426
3441
  preview_credentials_identifier_similar=preview_credentials_identifier_similar,
3427
3442
  include_credential=include_credential,
3443
+ organization_id=organization_id,
3428
3444
  _request_auth=_request_auth,
3429
3445
  _content_type=_content_type,
3430
3446
  _headers=_headers,
@@ -3453,10 +3469,11 @@ class IdentityApi:
3453
3469
  page_size: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
3454
3470
  page_token: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
3455
3471
  consistency: Annotated[Optional[StrictStr], Field(description="Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps.")] = None,
3456
- ids: Annotated[Optional[List[StrictStr]], Field(description="List of ids used to filter identities. If this list is empty, then no filter will be applied.")] = None,
3472
+ ids: Annotated[Optional[List[StrictStr]], Field(description="Retrieve multiple identities by their IDs. This parameter has the following limitations: Duplicate or non-existent IDs are ignored. The order of returned IDs may be different from the request. This filter does not support pagination. You must implement your own pagination as the maximum number of items returned by this endpoint may not exceed a certain threshold (currently 500).")] = None,
3457
3473
  credentials_identifier: Annotated[Optional[StrictStr], Field(description="CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.")] = None,
3458
3474
  preview_credentials_identifier_similar: Annotated[Optional[StrictStr], Field(description="This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.")] = None,
3459
3475
  include_credential: Annotated[Optional[List[StrictStr]], Field(description="Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available.")] = None,
3476
+ organization_id: Annotated[Optional[StrictStr], Field(description="List identities that belong to a specific organization.")] = None,
3460
3477
  _request_timeout: Union[
3461
3478
  None,
3462
3479
  Annotated[StrictFloat, Field(gt=0)],
@@ -3472,7 +3489,7 @@ class IdentityApi:
3472
3489
  ) -> ApiResponse[List[Identity]]:
3473
3490
  """List Identities
3474
3491
 
3475
- Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system.
3492
+ Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. Note: filters cannot be combined.
3476
3493
 
3477
3494
  :param per_page: Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page.
3478
3495
  :type per_page: int
@@ -3484,7 +3501,7 @@ class IdentityApi:
3484
3501
  :type page_token: str
3485
3502
  :param consistency: Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps.
3486
3503
  :type consistency: str
3487
- :param ids: List of ids used to filter identities. If this list is empty, then no filter will be applied.
3504
+ :param ids: Retrieve multiple identities by their IDs. This parameter has the following limitations: Duplicate or non-existent IDs are ignored. The order of returned IDs may be different from the request. This filter does not support pagination. You must implement your own pagination as the maximum number of items returned by this endpoint may not exceed a certain threshold (currently 500).
3488
3505
  :type ids: List[str]
3489
3506
  :param credentials_identifier: CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.
3490
3507
  :type credentials_identifier: str
@@ -3492,6 +3509,8 @@ class IdentityApi:
3492
3509
  :type preview_credentials_identifier_similar: str
3493
3510
  :param include_credential: Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available.
3494
3511
  :type include_credential: List[str]
3512
+ :param organization_id: List identities that belong to a specific organization.
3513
+ :type organization_id: str
3495
3514
  :param _request_timeout: timeout setting for this request. If one
3496
3515
  number provided, it will be total request
3497
3516
  timeout. It can also be a pair (tuple) of
@@ -3524,6 +3543,7 @@ class IdentityApi:
3524
3543
  credentials_identifier=credentials_identifier,
3525
3544
  preview_credentials_identifier_similar=preview_credentials_identifier_similar,
3526
3545
  include_credential=include_credential,
3546
+ organization_id=organization_id,
3527
3547
  _request_auth=_request_auth,
3528
3548
  _content_type=_content_type,
3529
3549
  _headers=_headers,
@@ -3552,10 +3572,11 @@ class IdentityApi:
3552
3572
  page_size: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
3553
3573
  page_token: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
3554
3574
  consistency: Annotated[Optional[StrictStr], Field(description="Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps.")] = None,
3555
- ids: Annotated[Optional[List[StrictStr]], Field(description="List of ids used to filter identities. If this list is empty, then no filter will be applied.")] = None,
3575
+ ids: Annotated[Optional[List[StrictStr]], Field(description="Retrieve multiple identities by their IDs. This parameter has the following limitations: Duplicate or non-existent IDs are ignored. The order of returned IDs may be different from the request. This filter does not support pagination. You must implement your own pagination as the maximum number of items returned by this endpoint may not exceed a certain threshold (currently 500).")] = None,
3556
3576
  credentials_identifier: Annotated[Optional[StrictStr], Field(description="CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.")] = None,
3557
3577
  preview_credentials_identifier_similar: Annotated[Optional[StrictStr], Field(description="This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.")] = None,
3558
3578
  include_credential: Annotated[Optional[List[StrictStr]], Field(description="Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available.")] = None,
3579
+ organization_id: Annotated[Optional[StrictStr], Field(description="List identities that belong to a specific organization.")] = None,
3559
3580
  _request_timeout: Union[
3560
3581
  None,
3561
3582
  Annotated[StrictFloat, Field(gt=0)],
@@ -3571,7 +3592,7 @@ class IdentityApi:
3571
3592
  ) -> RESTResponseType:
3572
3593
  """List Identities
3573
3594
 
3574
- Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system.
3595
+ Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. Note: filters cannot be combined.
3575
3596
 
3576
3597
  :param per_page: Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page.
3577
3598
  :type per_page: int
@@ -3583,7 +3604,7 @@ class IdentityApi:
3583
3604
  :type page_token: str
3584
3605
  :param consistency: Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps.
3585
3606
  :type consistency: str
3586
- :param ids: List of ids used to filter identities. If this list is empty, then no filter will be applied.
3607
+ :param ids: Retrieve multiple identities by their IDs. This parameter has the following limitations: Duplicate or non-existent IDs are ignored. The order of returned IDs may be different from the request. This filter does not support pagination. You must implement your own pagination as the maximum number of items returned by this endpoint may not exceed a certain threshold (currently 500).
3587
3608
  :type ids: List[str]
3588
3609
  :param credentials_identifier: CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.
3589
3610
  :type credentials_identifier: str
@@ -3591,6 +3612,8 @@ class IdentityApi:
3591
3612
  :type preview_credentials_identifier_similar: str
3592
3613
  :param include_credential: Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available.
3593
3614
  :type include_credential: List[str]
3615
+ :param organization_id: List identities that belong to a specific organization.
3616
+ :type organization_id: str
3594
3617
  :param _request_timeout: timeout setting for this request. If one
3595
3618
  number provided, it will be total request
3596
3619
  timeout. It can also be a pair (tuple) of
@@ -3623,6 +3646,7 @@ class IdentityApi:
3623
3646
  credentials_identifier=credentials_identifier,
3624
3647
  preview_credentials_identifier_similar=preview_credentials_identifier_similar,
3625
3648
  include_credential=include_credential,
3649
+ organization_id=organization_id,
3626
3650
  _request_auth=_request_auth,
3627
3651
  _content_type=_content_type,
3628
3652
  _headers=_headers,
@@ -3650,6 +3674,7 @@ class IdentityApi:
3650
3674
  credentials_identifier,
3651
3675
  preview_credentials_identifier_similar,
3652
3676
  include_credential,
3677
+ organization_id,
3653
3678
  _request_auth,
3654
3679
  _content_type,
3655
3680
  _headers,
@@ -3667,7 +3692,7 @@ class IdentityApi:
3667
3692
  _query_params: List[Tuple[str, str]] = []
3668
3693
  _header_params: Dict[str, Optional[str]] = _headers or {}
3669
3694
  _form_params: List[Tuple[str, str]] = []
3670
- _files: Dict[str, str] = {}
3695
+ _files: Dict[str, Union[str, bytes]] = {}
3671
3696
  _body_params: Optional[bytes] = None
3672
3697
 
3673
3698
  # process the path parameters
@@ -3708,17 +3733,22 @@ class IdentityApi:
3708
3733
 
3709
3734
  _query_params.append(('include_credential', include_credential))
3710
3735
 
3736
+ if organization_id is not None:
3737
+
3738
+ _query_params.append(('organization_id', organization_id))
3739
+
3711
3740
  # process the header parameters
3712
3741
  # process the form parameters
3713
3742
  # process the body parameter
3714
3743
 
3715
3744
 
3716
3745
  # set the HTTP header `Accept`
3717
- _header_params['Accept'] = self.api_client.select_header_accept(
3718
- [
3719
- 'application/json'
3720
- ]
3721
- )
3746
+ if 'Accept' not in _header_params:
3747
+ _header_params['Accept'] = self.api_client.select_header_accept(
3748
+ [
3749
+ 'application/json'
3750
+ ]
3751
+ )
3722
3752
 
3723
3753
 
3724
3754
  # authentication setting
@@ -3998,7 +4028,7 @@ class IdentityApi:
3998
4028
  _query_params: List[Tuple[str, str]] = []
3999
4029
  _header_params: Dict[str, Optional[str]] = _headers or {}
4000
4030
  _form_params: List[Tuple[str, str]] = []
4001
- _files: Dict[str, str] = {}
4031
+ _files: Dict[str, Union[str, bytes]] = {}
4002
4032
  _body_params: Optional[bytes] = None
4003
4033
 
4004
4034
  # process the path parameters
@@ -4025,11 +4055,12 @@ class IdentityApi:
4025
4055
 
4026
4056
 
4027
4057
  # set the HTTP header `Accept`
4028
- _header_params['Accept'] = self.api_client.select_header_accept(
4029
- [
4030
- 'application/json'
4031
- ]
4032
- )
4058
+ if 'Accept' not in _header_params:
4059
+ _header_params['Accept'] = self.api_client.select_header_accept(
4060
+ [
4061
+ 'application/json'
4062
+ ]
4063
+ )
4033
4064
 
4034
4065
 
4035
4066
  # authentication setting
@@ -4340,7 +4371,7 @@ class IdentityApi:
4340
4371
  _query_params: List[Tuple[str, str]] = []
4341
4372
  _header_params: Dict[str, Optional[str]] = _headers or {}
4342
4373
  _form_params: List[Tuple[str, str]] = []
4343
- _files: Dict[str, str] = {}
4374
+ _files: Dict[str, Union[str, bytes]] = {}
4344
4375
  _body_params: Optional[bytes] = None
4345
4376
 
4346
4377
  # process the path parameters
@@ -4373,11 +4404,12 @@ class IdentityApi:
4373
4404
 
4374
4405
 
4375
4406
  # set the HTTP header `Accept`
4376
- _header_params['Accept'] = self.api_client.select_header_accept(
4377
- [
4378
- 'application/json'
4379
- ]
4380
- )
4407
+ if 'Accept' not in _header_params:
4408
+ _header_params['Accept'] = self.api_client.select_header_accept(
4409
+ [
4410
+ 'application/json'
4411
+ ]
4412
+ )
4381
4413
 
4382
4414
 
4383
4415
  # authentication setting
@@ -4661,7 +4693,7 @@ class IdentityApi:
4661
4693
  _query_params: List[Tuple[str, str]] = []
4662
4694
  _header_params: Dict[str, Optional[str]] = _headers or {}
4663
4695
  _form_params: List[Tuple[str, str]] = []
4664
- _files: Dict[str, str] = {}
4696
+ _files: Dict[str, Union[str, bytes]] = {}
4665
4697
  _body_params: Optional[bytes] = None
4666
4698
 
4667
4699
  # process the path parameters
@@ -4688,11 +4720,12 @@ class IdentityApi:
4688
4720
 
4689
4721
 
4690
4722
  # set the HTTP header `Accept`
4691
- _header_params['Accept'] = self.api_client.select_header_accept(
4692
- [
4693
- 'application/json'
4694
- ]
4695
- )
4723
+ if 'Accept' not in _header_params:
4724
+ _header_params['Accept'] = self.api_client.select_header_accept(
4725
+ [
4726
+ 'application/json'
4727
+ ]
4728
+ )
4696
4729
 
4697
4730
 
4698
4731
  # authentication setting
@@ -4956,7 +4989,7 @@ class IdentityApi:
4956
4989
  _query_params: List[Tuple[str, str]] = []
4957
4990
  _header_params: Dict[str, Optional[str]] = _headers or {}
4958
4991
  _form_params: List[Tuple[str, str]] = []
4959
- _files: Dict[str, str] = {}
4992
+ _files: Dict[str, Union[str, bytes]] = {}
4960
4993
  _body_params: Optional[bytes] = None
4961
4994
 
4962
4995
  # process the path parameters
@@ -4971,11 +5004,12 @@ class IdentityApi:
4971
5004
 
4972
5005
 
4973
5006
  # set the HTTP header `Accept`
4974
- _header_params['Accept'] = self.api_client.select_header_accept(
4975
- [
4976
- 'application/json'
4977
- ]
4978
- )
5007
+ if 'Accept' not in _header_params:
5008
+ _header_params['Accept'] = self.api_client.select_header_accept(
5009
+ [
5010
+ 'application/json'
5011
+ ]
5012
+ )
4979
5013
 
4980
5014
  # set the HTTP header `Content-Type`
4981
5015
  if _content_type:
@@ -5251,7 +5285,7 @@ class IdentityApi:
5251
5285
  _query_params: List[Tuple[str, str]] = []
5252
5286
  _header_params: Dict[str, Optional[str]] = _headers or {}
5253
5287
  _form_params: List[Tuple[str, str]] = []
5254
- _files: Dict[str, str] = {}
5288
+ _files: Dict[str, Union[str, bytes]] = {}
5255
5289
  _body_params: Optional[bytes] = None
5256
5290
 
5257
5291
  # process the path parameters
@@ -5266,11 +5300,12 @@ class IdentityApi:
5266
5300
 
5267
5301
 
5268
5302
  # set the HTTP header `Accept`
5269
- _header_params['Accept'] = self.api_client.select_header_accept(
5270
- [
5271
- 'application/json'
5272
- ]
5273
- )
5303
+ if 'Accept' not in _header_params:
5304
+ _header_params['Accept'] = self.api_client.select_header_accept(
5305
+ [
5306
+ 'application/json'
5307
+ ]
5308
+ )
5274
5309
 
5275
5310
  # set the HTTP header `Content-Type`
5276
5311
  if _content_type: