ory-client 1.20.11__py3-none-any.whl → 1.20.22__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 (319) hide show
  1. ory_client/__init__.py +15 -4
  2. ory_client/api/courier_api.py +1 -1
  3. ory_client/api/events_api.py +1 -1
  4. ory_client/api/frontend_api.py +1 -1
  5. ory_client/api/identity_api.py +19 -19
  6. ory_client/api/jwk_api.py +1 -1
  7. ory_client/api/metadata_api.py +1 -1
  8. ory_client/api/o_auth2_api.py +824 -41
  9. ory_client/api/oidc_api.py +1 -1
  10. ory_client/api/permission_api.py +1 -1
  11. ory_client/api/project_api.py +1941 -723
  12. ory_client/api/relationship_api.py +1 -1
  13. ory_client/api/wellknown_api.py +1 -1
  14. ory_client/api/workspace_api.py +1 -1
  15. ory_client/api_client.py +2 -2
  16. ory_client/configuration.py +4 -4
  17. ory_client/exceptions.py +1 -1
  18. ory_client/models/__init__.py +14 -3
  19. ory_client/models/accept_device_user_code_request.py +101 -0
  20. ory_client/models/accept_o_auth2_consent_request.py +1 -1
  21. ory_client/models/accept_o_auth2_consent_request_session.py +1 -1
  22. ory_client/models/accept_o_auth2_login_request.py +1 -1
  23. ory_client/models/account_experience_colors.py +4 -2
  24. ory_client/models/account_experience_configuration.py +1 -1
  25. ory_client/models/account_experience_theme_variables.py +1 -1
  26. ory_client/models/active_project_in_console.py +1 -1
  27. ory_client/models/add_project_to_workspace_body.py +1 -1
  28. ory_client/models/attribute.py +1 -1
  29. ory_client/models/attribute_filter.py +1 -1
  30. ory_client/models/attributes_count_datapoint.py +1 -1
  31. ory_client/models/authenticator_assurance_level.py +1 -1
  32. ory_client/models/{pagination_headers.py → basic_organization.py} +13 -11
  33. ory_client/models/batch_check_permission_body.py +1 -1
  34. ory_client/models/batch_check_permission_result.py +1 -1
  35. ory_client/models/batch_patch_identities_response.py +1 -1
  36. ory_client/models/billing_period_bucket.py +1 -1
  37. ory_client/models/check_opl_syntax_result.py +1 -1
  38. ory_client/models/check_permission_result.py +1 -1
  39. ory_client/models/check_permission_result_with_error.py +1 -1
  40. ory_client/models/cloud_account.py +1 -1
  41. ory_client/models/consistency_request_parameters.py +1 -1
  42. ory_client/models/continue_with.py +1 -1
  43. ory_client/models/continue_with_recovery_ui.py +1 -1
  44. ory_client/models/continue_with_recovery_ui_flow.py +1 -1
  45. ory_client/models/continue_with_redirect_browser_to.py +1 -1
  46. ory_client/models/continue_with_set_ory_session_token.py +1 -1
  47. ory_client/models/continue_with_settings_ui.py +1 -1
  48. ory_client/models/continue_with_settings_ui_flow.py +1 -1
  49. ory_client/models/continue_with_verification_ui.py +1 -1
  50. ory_client/models/continue_with_verification_ui_flow.py +1 -1
  51. ory_client/models/courier_message_status.py +1 -1
  52. ory_client/models/courier_message_type.py +1 -1
  53. ory_client/models/create_custom_domain_body.py +1 -1
  54. ory_client/models/create_event_stream_body.py +1 -1
  55. ory_client/models/create_fedcm_flow_response.py +1 -1
  56. ory_client/models/create_identity_body.py +1 -1
  57. ory_client/models/create_invite_response.py +1 -1
  58. ory_client/models/create_json_web_key_set.py +1 -1
  59. ory_client/models/create_organization_onboarding_portal_link_body.py +104 -0
  60. ory_client/models/create_project_api_key_request.py +1 -1
  61. ory_client/models/create_project_body.py +1 -1
  62. ory_client/models/create_project_branding.py +1 -1
  63. ory_client/models/create_project_member_invite_body.py +1 -1
  64. ory_client/models/create_project_normalized_payload.py +31 -2
  65. ory_client/models/create_recovery_code_for_identity_body.py +1 -1
  66. ory_client/models/create_recovery_link_for_identity_body.py +1 -1
  67. ory_client/models/create_relationship_body.py +1 -1
  68. ory_client/models/create_subscription_body.py +1 -1
  69. ory_client/models/create_subscription_common.py +1 -1
  70. ory_client/models/create_verifiable_credential_request_body.py +1 -1
  71. ory_client/models/create_workspace_api_key_body.py +1 -1
  72. ory_client/models/create_workspace_body.py +1 -1
  73. ory_client/models/create_workspace_member_invite_body.py +1 -1
  74. ory_client/models/create_workspace_subscription_body.py +1 -1
  75. ory_client/models/credential_supported_draft00.py +1 -1
  76. ory_client/models/custom_domain.py +1 -1
  77. ory_client/models/delete_my_sessions_count.py +1 -1
  78. ory_client/models/device_authorization.py +111 -0
  79. ory_client/models/device_user_auth_request.py +116 -0
  80. ory_client/models/email_template_data.py +1 -1
  81. ory_client/models/email_template_data_body.py +1 -1
  82. ory_client/models/error_authenticator_assurance_level_not_satisfied.py +1 -1
  83. ory_client/models/error_browser_location_change_required.py +1 -1
  84. ory_client/models/error_flow_replaced.py +1 -1
  85. ory_client/models/error_generic.py +1 -1
  86. ory_client/models/error_o_auth2.py +1 -1
  87. ory_client/models/event_stream.py +1 -1
  88. ory_client/models/expanded_permission_tree.py +1 -1
  89. ory_client/models/flow_error.py +1 -1
  90. ory_client/models/generic_error.py +1 -1
  91. ory_client/models/generic_error_content.py +1 -1
  92. ory_client/models/generic_usage.py +1 -1
  93. ory_client/models/get_attributes_count_response.py +1 -1
  94. ory_client/models/get_managed_identity_schema_location.py +1 -1
  95. ory_client/models/get_metrics_event_attributes_response.py +1 -1
  96. ory_client/models/get_metrics_event_types_response.py +1 -1
  97. ory_client/models/get_organization_response.py +1 -1
  98. ory_client/models/get_project_events_body.py +1 -1
  99. ory_client/models/get_project_events_response.py +1 -1
  100. ory_client/models/get_project_metrics_response.py +1 -1
  101. ory_client/models/get_session_activity_response.py +1 -1
  102. ory_client/models/get_version200_response.py +1 -1
  103. ory_client/models/health_not_ready_status.py +1 -1
  104. ory_client/models/health_status.py +1 -1
  105. ory_client/models/identity.py +1 -1
  106. ory_client/models/identity_credentials.py +1 -1
  107. ory_client/models/identity_credentials_code.py +1 -1
  108. ory_client/models/identity_credentials_code_address.py +1 -1
  109. ory_client/models/identity_credentials_oidc.py +1 -1
  110. ory_client/models/identity_credentials_oidc_provider.py +1 -1
  111. ory_client/models/identity_credentials_password.py +1 -1
  112. ory_client/models/identity_patch.py +1 -1
  113. ory_client/models/identity_patch_response.py +1 -1
  114. ory_client/models/identity_schema_container.py +1 -1
  115. ory_client/models/identity_schema_preset.py +1 -1
  116. ory_client/models/identity_with_credentials.py +1 -1
  117. ory_client/models/identity_with_credentials_oidc.py +1 -1
  118. ory_client/models/identity_with_credentials_oidc_config.py +1 -1
  119. ory_client/models/identity_with_credentials_oidc_config_provider.py +1 -1
  120. ory_client/models/identity_with_credentials_password.py +1 -1
  121. ory_client/models/identity_with_credentials_password_config.py +1 -1
  122. ory_client/models/identity_with_credentials_saml.py +1 -1
  123. ory_client/models/identity_with_credentials_saml_config.py +1 -1
  124. ory_client/models/identity_with_credentials_saml_config_provider.py +1 -1
  125. ory_client/models/internal_get_project_branding_body.py +1 -1
  126. ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +1 -1
  127. ory_client/models/internal_is_owner_for_project_by_slug_body.py +1 -1
  128. ory_client/models/internal_is_owner_for_project_by_slug_response.py +1 -1
  129. ory_client/models/introspected_o_auth2_token.py +1 -1
  130. ory_client/models/invite_token_body.py +1 -1
  131. ory_client/models/invoice.py +1 -1
  132. ory_client/models/invoice_data_v1.py +1 -1
  133. ory_client/models/is_owner_for_project_by_slug.py +1 -1
  134. ory_client/models/json_patch.py +1 -1
  135. ory_client/models/json_web_key.py +1 -1
  136. ory_client/models/json_web_key_set.py +1 -1
  137. ory_client/models/keto_namespace.py +1 -1
  138. ory_client/models/{pagination.py → keyset_pagination_request_parameters.py} +9 -9
  139. ory_client/models/keyset_pagination_response_headers.py +101 -0
  140. ory_client/models/line_item_v1.py +1 -1
  141. ory_client/models/list_event_streams.py +1 -1
  142. ory_client/models/list_invoices_response.py +1 -1
  143. ory_client/models/list_organizations_response.py +1 -1
  144. ory_client/models/list_workspace_projects.py +1 -1
  145. ory_client/models/list_workspaces.py +1 -1
  146. ory_client/models/login_flow.py +1 -1
  147. ory_client/models/login_flow_state.py +1 -1
  148. ory_client/models/logout_flow.py +1 -1
  149. ory_client/models/managed_identity_schema.py +1 -1
  150. ory_client/models/managed_identity_schema_validation_result.py +1 -1
  151. ory_client/models/member_invite.py +1 -1
  152. ory_client/models/message.py +1 -1
  153. ory_client/models/message_dispatch.py +1 -1
  154. ory_client/models/metrics_datapoint.py +1 -1
  155. ory_client/models/money.py +1 -1
  156. ory_client/models/namespace.py +1 -1
  157. ory_client/models/needs_privileged_session_error.py +1 -1
  158. ory_client/models/normalized_project.py +1 -1
  159. ory_client/models/normalized_project_revision.py +31 -2
  160. ory_client/models/normalized_project_revision_courier_channel.py +1 -1
  161. ory_client/models/normalized_project_revision_hook.py +1 -1
  162. ory_client/models/normalized_project_revision_identity_schema.py +1 -1
  163. ory_client/models/normalized_project_revision_saml_provider.py +1 -1
  164. ory_client/models/normalized_project_revision_scim_client.py +1 -1
  165. ory_client/models/normalized_project_revision_third_party_provider.py +1 -1
  166. ory_client/models/normalized_project_revision_tokenizer_template.py +1 -1
  167. ory_client/models/o_auth2_client.py +60 -10
  168. ory_client/models/o_auth2_client_token_lifespans.py +53 -2
  169. ory_client/models/o_auth2_consent_request.py +4 -2
  170. ory_client/models/o_auth2_consent_request_open_id_connect_context.py +1 -1
  171. ory_client/models/o_auth2_consent_session.py +1 -1
  172. ory_client/models/o_auth2_consent_session_expires_at.py +1 -1
  173. ory_client/models/o_auth2_login_request.py +1 -1
  174. ory_client/models/o_auth2_logout_request.py +1 -1
  175. ory_client/models/o_auth2_redirect_to.py +1 -1
  176. ory_client/models/o_auth2_token_exchange.py +1 -1
  177. ory_client/models/oidc_configuration.py +4 -2
  178. ory_client/models/oidc_user_info.py +1 -1
  179. ory_client/models/onboarding_portal_link.py +126 -0
  180. ory_client/models/onboarding_portal_organization.py +127 -0
  181. ory_client/models/organization.py +4 -12
  182. ory_client/models/organization_body.py +1 -1
  183. ory_client/models/organization_onboarding_portal_links_response.py +109 -0
  184. ory_client/models/parse_error.py +1 -1
  185. ory_client/models/patch_identities_body.py +1 -1
  186. ory_client/models/perform_native_logout_body.py +1 -1
  187. ory_client/models/permissions_on_workspace.py +1 -1
  188. ory_client/models/plan.py +1 -1
  189. ory_client/models/plan_details.py +1 -1
  190. ory_client/models/post_check_permission_body.py +1 -1
  191. ory_client/models/post_check_permission_or_error_body.py +1 -1
  192. ory_client/models/project.py +12 -2
  193. ory_client/models/project_api_key.py +1 -1
  194. ory_client/models/project_branding.py +1 -1
  195. ory_client/models/project_branding_colors.py +1 -1
  196. ory_client/models/project_branding_theme.py +1 -1
  197. ory_client/models/project_cors.py +1 -1
  198. ory_client/models/project_events_datapoint.py +1 -1
  199. ory_client/models/project_host.py +1 -1
  200. ory_client/models/project_member.py +1 -1
  201. ory_client/models/project_metadata.py +1 -1
  202. ory_client/models/project_service_identity.py +1 -1
  203. ory_client/models/project_service_o_auth2.py +1 -1
  204. ory_client/models/project_service_permission.py +1 -1
  205. ory_client/models/project_services.py +1 -1
  206. ory_client/models/provider.py +1 -1
  207. ory_client/models/quota_usage.py +4 -4
  208. ory_client/models/recovery_code_for_identity.py +1 -1
  209. ory_client/models/recovery_flow.py +1 -1
  210. ory_client/models/recovery_flow_state.py +1 -1
  211. ory_client/models/recovery_identity_address.py +1 -1
  212. ory_client/models/recovery_link_for_identity.py +1 -1
  213. ory_client/models/registration_flow.py +1 -1
  214. ory_client/models/registration_flow_state.py +1 -1
  215. ory_client/models/reject_o_auth2_request.py +1 -1
  216. ory_client/models/relation_query.py +1 -1
  217. ory_client/models/relationship.py +1 -1
  218. ory_client/models/relationship_namespaces.py +1 -1
  219. ory_client/models/relationship_patch.py +1 -1
  220. ory_client/models/relationships.py +1 -1
  221. ory_client/models/rfc6749_error_json.py +1 -1
  222. ory_client/models/schema_patch.py +1 -1
  223. ory_client/models/self_service_flow_expired_error.py +1 -1
  224. ory_client/models/session.py +1 -1
  225. ory_client/models/session_activity_datapoint.py +1 -1
  226. ory_client/models/session_authentication_method.py +1 -1
  227. ory_client/models/session_device.py +1 -1
  228. ory_client/models/set_active_project_in_console_body.py +1 -1
  229. ory_client/models/set_custom_domain_body.py +1 -1
  230. ory_client/models/set_event_stream_body.py +1 -1
  231. ory_client/models/set_organization_from_onboarding_portal_link_body.py +121 -0
  232. ory_client/models/set_project.py +12 -2
  233. ory_client/models/set_project_branding_theme_body.py +1 -1
  234. ory_client/models/settings_flow.py +1 -1
  235. ory_client/models/settings_flow_state.py +1 -1
  236. ory_client/models/source_position.py +1 -1
  237. ory_client/models/subject_set.py +1 -1
  238. ory_client/models/subscription.py +1 -1
  239. ory_client/models/successful_code_exchange_response.py +1 -1
  240. ory_client/models/successful_native_login.py +1 -1
  241. ory_client/models/successful_native_registration.py +1 -1
  242. ory_client/models/successful_project_update.py +1 -1
  243. ory_client/models/tax_line_item.py +1 -1
  244. ory_client/models/time_interval.py +1 -1
  245. ory_client/models/token_pagination.py +1 -1
  246. ory_client/models/token_pagination_headers.py +1 -1
  247. ory_client/models/token_pagination_request_parameters.py +1 -1
  248. ory_client/models/token_pagination_response_headers.py +1 -1
  249. ory_client/models/trust_o_auth2_jwt_grant_issuer.py +1 -1
  250. ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +1 -1
  251. ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +1 -1
  252. ory_client/models/ui_container.py +1 -1
  253. ory_client/models/ui_node.py +1 -1
  254. ory_client/models/ui_node_anchor_attributes.py +3 -3
  255. ory_client/models/ui_node_attributes.py +1 -1
  256. ory_client/models/ui_node_division_attributes.py +5 -5
  257. ory_client/models/ui_node_image_attributes.py +3 -3
  258. ory_client/models/ui_node_input_attributes.py +3 -3
  259. ory_client/models/ui_node_meta.py +1 -1
  260. ory_client/models/ui_node_script_attributes.py +3 -3
  261. ory_client/models/ui_node_text_attributes.py +3 -3
  262. ory_client/models/ui_text.py +1 -1
  263. ory_client/models/update_fedcm_flow_body.py +1 -1
  264. ory_client/models/update_identity_body.py +1 -1
  265. ory_client/models/update_login_flow_body.py +1 -1
  266. ory_client/models/update_login_flow_with_code_method.py +1 -1
  267. ory_client/models/update_login_flow_with_identifier_first_method.py +1 -1
  268. ory_client/models/update_login_flow_with_lookup_secret_method.py +1 -1
  269. ory_client/models/update_login_flow_with_oidc_method.py +1 -1
  270. ory_client/models/update_login_flow_with_passkey_method.py +1 -1
  271. ory_client/models/update_login_flow_with_password_method.py +1 -1
  272. ory_client/models/update_login_flow_with_saml_method.py +1 -1
  273. ory_client/models/update_login_flow_with_totp_method.py +1 -1
  274. ory_client/models/update_login_flow_with_web_authn_method.py +1 -1
  275. ory_client/models/update_organization_onboarding_portal_link_body.py +104 -0
  276. ory_client/models/update_recovery_flow_body.py +1 -1
  277. ory_client/models/update_recovery_flow_with_code_method.py +1 -1
  278. ory_client/models/update_recovery_flow_with_link_method.py +1 -1
  279. ory_client/models/update_registration_flow_body.py +1 -1
  280. ory_client/models/update_registration_flow_with_code_method.py +1 -1
  281. ory_client/models/update_registration_flow_with_oidc_method.py +1 -1
  282. ory_client/models/update_registration_flow_with_passkey_method.py +1 -1
  283. ory_client/models/update_registration_flow_with_password_method.py +1 -1
  284. ory_client/models/update_registration_flow_with_profile_method.py +1 -1
  285. ory_client/models/update_registration_flow_with_saml_method.py +1 -1
  286. ory_client/models/update_registration_flow_with_web_authn_method.py +1 -1
  287. ory_client/models/update_settings_flow_body.py +1 -1
  288. ory_client/models/update_settings_flow_with_lookup_method.py +1 -1
  289. ory_client/models/update_settings_flow_with_oidc_method.py +1 -1
  290. ory_client/models/update_settings_flow_with_passkey_method.py +1 -1
  291. ory_client/models/update_settings_flow_with_password_method.py +1 -1
  292. ory_client/models/update_settings_flow_with_profile_method.py +1 -1
  293. ory_client/models/update_settings_flow_with_saml_method.py +1 -1
  294. ory_client/models/update_settings_flow_with_totp_method.py +1 -1
  295. ory_client/models/update_settings_flow_with_web_authn_method.py +1 -1
  296. ory_client/models/update_subscription_body.py +1 -1
  297. ory_client/models/update_verification_flow_body.py +1 -1
  298. ory_client/models/update_verification_flow_with_code_method.py +1 -1
  299. ory_client/models/update_verification_flow_with_link_method.py +1 -1
  300. ory_client/models/update_workspace_body.py +1 -1
  301. ory_client/models/usage.py +1 -1
  302. ory_client/models/verifiable_credential_priming_response.py +1 -1
  303. ory_client/models/verifiable_credential_proof.py +1 -1
  304. ory_client/models/verifiable_credential_response.py +1 -1
  305. ory_client/models/verifiable_identity_address.py +1 -1
  306. ory_client/models/verification_flow.py +1 -1
  307. ory_client/models/verification_flow_state.py +1 -1
  308. ory_client/models/verify_user_code_request.py +118 -0
  309. ory_client/models/version.py +1 -1
  310. ory_client/models/warning.py +1 -1
  311. ory_client/models/workspace.py +1 -1
  312. ory_client/models/workspace_api_key.py +1 -1
  313. ory_client/rest.py +1 -1
  314. {ory_client-1.20.11.dist-info → ory_client-1.20.22.dist-info}/METADATA +1 -1
  315. ory_client-1.20.22.dist-info/RECORD +321 -0
  316. ory_client-1.20.11.dist-info/RECORD +0 -310
  317. {ory_client-1.20.11.dist-info → ory_client-1.20.22.dist-info}/LICENSE +0 -0
  318. {ory_client-1.20.11.dist-info → ory_client-1.20.22.dist-info}/WHEEL +0 -0
  319. {ory_client-1.20.11.dist-info → ory_client-1.20.22.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@
5
5
 
6
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.20.11
8
+ The version of the OpenAPI document: v1.20.22
9
9
  Contact: support@ory.sh
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -17,11 +17,13 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
17
  from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
- from pydantic import Field, StrictBool, StrictInt, StrictStr
20
+ from pydantic import Field, StrictBool, StrictStr
21
21
  from typing import List, Optional
22
22
  from typing_extensions import Annotated
23
+ from ory_client.models.accept_device_user_code_request import AcceptDeviceUserCodeRequest
23
24
  from ory_client.models.accept_o_auth2_consent_request import AcceptOAuth2ConsentRequest
24
25
  from ory_client.models.accept_o_auth2_login_request import AcceptOAuth2LoginRequest
26
+ from ory_client.models.device_authorization import DeviceAuthorization
25
27
  from ory_client.models.error_o_auth2 import ErrorOAuth2
26
28
  from ory_client.models.introspected_o_auth2_token import IntrospectedOAuth2Token
27
29
  from ory_client.models.json_patch import JsonPatch
@@ -900,6 +902,297 @@ class OAuth2Api:
900
902
 
901
903
 
902
904
 
905
+ @validate_call
906
+ def accept_user_code_request(
907
+ self,
908
+ device_challenge: StrictStr,
909
+ accept_device_user_code_request: Optional[AcceptDeviceUserCodeRequest] = None,
910
+ _request_timeout: Union[
911
+ None,
912
+ Annotated[StrictFloat, Field(gt=0)],
913
+ Tuple[
914
+ Annotated[StrictFloat, Field(gt=0)],
915
+ Annotated[StrictFloat, Field(gt=0)]
916
+ ]
917
+ ] = None,
918
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
919
+ _content_type: Optional[StrictStr] = None,
920
+ _headers: Optional[Dict[StrictStr, Any]] = None,
921
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
922
+ ) -> OAuth2RedirectTo:
923
+ """Accepts a device grant user_code request
924
+
925
+ Accepts a device grant user_code request
926
+
927
+ :param device_challenge: (required)
928
+ :type device_challenge: str
929
+ :param accept_device_user_code_request:
930
+ :type accept_device_user_code_request: AcceptDeviceUserCodeRequest
931
+ :param _request_timeout: timeout setting for this request. If one
932
+ number provided, it will be total request
933
+ timeout. It can also be a pair (tuple) of
934
+ (connection, read) timeouts.
935
+ :type _request_timeout: int, tuple(int, int), optional
936
+ :param _request_auth: set to override the auth_settings for an a single
937
+ request; this effectively ignores the
938
+ authentication in the spec for a single request.
939
+ :type _request_auth: dict, optional
940
+ :param _content_type: force content-type for the request.
941
+ :type _content_type: str, Optional
942
+ :param _headers: set to override the headers for a single
943
+ request; this effectively ignores the headers
944
+ in the spec for a single request.
945
+ :type _headers: dict, optional
946
+ :param _host_index: set to override the host_index for a single
947
+ request; this effectively ignores the host_index
948
+ in the spec for a single request.
949
+ :type _host_index: int, optional
950
+ :return: Returns the result object.
951
+ """ # noqa: E501
952
+
953
+ _param = self._accept_user_code_request_serialize(
954
+ device_challenge=device_challenge,
955
+ accept_device_user_code_request=accept_device_user_code_request,
956
+ _request_auth=_request_auth,
957
+ _content_type=_content_type,
958
+ _headers=_headers,
959
+ _host_index=_host_index
960
+ )
961
+
962
+ _response_types_map: Dict[str, Optional[str]] = {
963
+ '200': "OAuth2RedirectTo",
964
+ }
965
+ response_data = self.api_client.call_api(
966
+ *_param,
967
+ _request_timeout=_request_timeout
968
+ )
969
+ response_data.read()
970
+ return self.api_client.response_deserialize(
971
+ response_data=response_data,
972
+ response_types_map=_response_types_map,
973
+ ).data
974
+
975
+
976
+ @validate_call
977
+ def accept_user_code_request_with_http_info(
978
+ self,
979
+ device_challenge: StrictStr,
980
+ accept_device_user_code_request: Optional[AcceptDeviceUserCodeRequest] = None,
981
+ _request_timeout: Union[
982
+ None,
983
+ Annotated[StrictFloat, Field(gt=0)],
984
+ Tuple[
985
+ Annotated[StrictFloat, Field(gt=0)],
986
+ Annotated[StrictFloat, Field(gt=0)]
987
+ ]
988
+ ] = None,
989
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
990
+ _content_type: Optional[StrictStr] = None,
991
+ _headers: Optional[Dict[StrictStr, Any]] = None,
992
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
993
+ ) -> ApiResponse[OAuth2RedirectTo]:
994
+ """Accepts a device grant user_code request
995
+
996
+ Accepts a device grant user_code request
997
+
998
+ :param device_challenge: (required)
999
+ :type device_challenge: str
1000
+ :param accept_device_user_code_request:
1001
+ :type accept_device_user_code_request: AcceptDeviceUserCodeRequest
1002
+ :param _request_timeout: timeout setting for this request. If one
1003
+ number provided, it will be total request
1004
+ timeout. It can also be a pair (tuple) of
1005
+ (connection, read) timeouts.
1006
+ :type _request_timeout: int, tuple(int, int), optional
1007
+ :param _request_auth: set to override the auth_settings for an a single
1008
+ request; this effectively ignores the
1009
+ authentication in the spec for a single request.
1010
+ :type _request_auth: dict, optional
1011
+ :param _content_type: force content-type for the request.
1012
+ :type _content_type: str, Optional
1013
+ :param _headers: set to override the headers for a single
1014
+ request; this effectively ignores the headers
1015
+ in the spec for a single request.
1016
+ :type _headers: dict, optional
1017
+ :param _host_index: set to override the host_index for a single
1018
+ request; this effectively ignores the host_index
1019
+ in the spec for a single request.
1020
+ :type _host_index: int, optional
1021
+ :return: Returns the result object.
1022
+ """ # noqa: E501
1023
+
1024
+ _param = self._accept_user_code_request_serialize(
1025
+ device_challenge=device_challenge,
1026
+ accept_device_user_code_request=accept_device_user_code_request,
1027
+ _request_auth=_request_auth,
1028
+ _content_type=_content_type,
1029
+ _headers=_headers,
1030
+ _host_index=_host_index
1031
+ )
1032
+
1033
+ _response_types_map: Dict[str, Optional[str]] = {
1034
+ '200': "OAuth2RedirectTo",
1035
+ }
1036
+ response_data = self.api_client.call_api(
1037
+ *_param,
1038
+ _request_timeout=_request_timeout
1039
+ )
1040
+ response_data.read()
1041
+ return self.api_client.response_deserialize(
1042
+ response_data=response_data,
1043
+ response_types_map=_response_types_map,
1044
+ )
1045
+
1046
+
1047
+ @validate_call
1048
+ def accept_user_code_request_without_preload_content(
1049
+ self,
1050
+ device_challenge: StrictStr,
1051
+ accept_device_user_code_request: Optional[AcceptDeviceUserCodeRequest] = None,
1052
+ _request_timeout: Union[
1053
+ None,
1054
+ Annotated[StrictFloat, Field(gt=0)],
1055
+ Tuple[
1056
+ Annotated[StrictFloat, Field(gt=0)],
1057
+ Annotated[StrictFloat, Field(gt=0)]
1058
+ ]
1059
+ ] = None,
1060
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1061
+ _content_type: Optional[StrictStr] = None,
1062
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1063
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1064
+ ) -> RESTResponseType:
1065
+ """Accepts a device grant user_code request
1066
+
1067
+ Accepts a device grant user_code request
1068
+
1069
+ :param device_challenge: (required)
1070
+ :type device_challenge: str
1071
+ :param accept_device_user_code_request:
1072
+ :type accept_device_user_code_request: AcceptDeviceUserCodeRequest
1073
+ :param _request_timeout: timeout setting for this request. If one
1074
+ number provided, it will be total request
1075
+ timeout. It can also be a pair (tuple) of
1076
+ (connection, read) timeouts.
1077
+ :type _request_timeout: int, tuple(int, int), optional
1078
+ :param _request_auth: set to override the auth_settings for an a single
1079
+ request; this effectively ignores the
1080
+ authentication in the spec for a single request.
1081
+ :type _request_auth: dict, optional
1082
+ :param _content_type: force content-type for the request.
1083
+ :type _content_type: str, Optional
1084
+ :param _headers: set to override the headers for a single
1085
+ request; this effectively ignores the headers
1086
+ in the spec for a single request.
1087
+ :type _headers: dict, optional
1088
+ :param _host_index: set to override the host_index for a single
1089
+ request; this effectively ignores the host_index
1090
+ in the spec for a single request.
1091
+ :type _host_index: int, optional
1092
+ :return: Returns the result object.
1093
+ """ # noqa: E501
1094
+
1095
+ _param = self._accept_user_code_request_serialize(
1096
+ device_challenge=device_challenge,
1097
+ accept_device_user_code_request=accept_device_user_code_request,
1098
+ _request_auth=_request_auth,
1099
+ _content_type=_content_type,
1100
+ _headers=_headers,
1101
+ _host_index=_host_index
1102
+ )
1103
+
1104
+ _response_types_map: Dict[str, Optional[str]] = {
1105
+ '200': "OAuth2RedirectTo",
1106
+ }
1107
+ response_data = self.api_client.call_api(
1108
+ *_param,
1109
+ _request_timeout=_request_timeout
1110
+ )
1111
+ return response_data.response
1112
+
1113
+
1114
+ def _accept_user_code_request_serialize(
1115
+ self,
1116
+ device_challenge,
1117
+ accept_device_user_code_request,
1118
+ _request_auth,
1119
+ _content_type,
1120
+ _headers,
1121
+ _host_index,
1122
+ ) -> RequestSerialized:
1123
+
1124
+ _host = None
1125
+
1126
+ _collection_formats: Dict[str, str] = {
1127
+ }
1128
+
1129
+ _path_params: Dict[str, str] = {}
1130
+ _query_params: List[Tuple[str, str]] = []
1131
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1132
+ _form_params: List[Tuple[str, str]] = []
1133
+ _files: Dict[
1134
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1135
+ ] = {}
1136
+ _body_params: Optional[bytes] = None
1137
+
1138
+ # process the path parameters
1139
+ # process the query parameters
1140
+ if device_challenge is not None:
1141
+
1142
+ _query_params.append(('device_challenge', device_challenge))
1143
+
1144
+ # process the header parameters
1145
+ # process the form parameters
1146
+ # process the body parameter
1147
+ if accept_device_user_code_request is not None:
1148
+ _body_params = accept_device_user_code_request
1149
+
1150
+
1151
+ # set the HTTP header `Accept`
1152
+ if 'Accept' not in _header_params:
1153
+ _header_params['Accept'] = self.api_client.select_header_accept(
1154
+ [
1155
+ 'application/json'
1156
+ ]
1157
+ )
1158
+
1159
+ # set the HTTP header `Content-Type`
1160
+ if _content_type:
1161
+ _header_params['Content-Type'] = _content_type
1162
+ else:
1163
+ _default_content_type = (
1164
+ self.api_client.select_header_content_type(
1165
+ [
1166
+ 'application/json'
1167
+ ]
1168
+ )
1169
+ )
1170
+ if _default_content_type is not None:
1171
+ _header_params['Content-Type'] = _default_content_type
1172
+
1173
+ # authentication setting
1174
+ _auth_settings: List[str] = [
1175
+ 'oryAccessToken'
1176
+ ]
1177
+
1178
+ return self.api_client.param_serialize(
1179
+ method='PUT',
1180
+ resource_path='/admin/oauth2/auth/requests/device/accept',
1181
+ path_params=_path_params,
1182
+ query_params=_query_params,
1183
+ header_params=_header_params,
1184
+ body=_body_params,
1185
+ post_params=_form_params,
1186
+ files=_files,
1187
+ auth_settings=_auth_settings,
1188
+ collection_formats=_collection_formats,
1189
+ _host=_host,
1190
+ _request_auth=_request_auth
1191
+ )
1192
+
1193
+
1194
+
1195
+
903
1196
  @validate_call
904
1197
  def create_o_auth2_client(
905
1198
  self,
@@ -3574,8 +3867,8 @@ class OAuth2Api:
3574
3867
  @validate_call
3575
3868
  def list_o_auth2_clients(
3576
3869
  self,
3577
- page_size: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Items per Page 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,
3578
- 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,
3870
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page 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,
3871
+ page_token: Annotated[Optional[StrictStr], 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,
3579
3872
  client_name: Annotated[Optional[StrictStr], Field(description="The name of the clients to filter by.")] = None,
3580
3873
  owner: Annotated[Optional[StrictStr], Field(description="The owner of the clients to filter by.")] = None,
3581
3874
  _request_timeout: Union[
@@ -3653,8 +3946,8 @@ class OAuth2Api:
3653
3946
  @validate_call
3654
3947
  def list_o_auth2_clients_with_http_info(
3655
3948
  self,
3656
- page_size: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Items per Page 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,
3657
- 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,
3949
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page 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,
3950
+ page_token: Annotated[Optional[StrictStr], 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,
3658
3951
  client_name: Annotated[Optional[StrictStr], Field(description="The name of the clients to filter by.")] = None,
3659
3952
  owner: Annotated[Optional[StrictStr], Field(description="The owner of the clients to filter by.")] = None,
3660
3953
  _request_timeout: Union[
@@ -3732,8 +4025,8 @@ class OAuth2Api:
3732
4025
  @validate_call
3733
4026
  def list_o_auth2_clients_without_preload_content(
3734
4027
  self,
3735
- page_size: Annotated[Optional[Annotated[int, Field(le=500, strict=True, ge=1)]], Field(description="Items per Page 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,
3736
- 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,
4028
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page 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,
4029
+ page_token: Annotated[Optional[StrictStr], 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,
3737
4030
  client_name: Annotated[Optional[StrictStr], Field(description="The name of the clients to filter by.")] = None,
3738
4031
  owner: Annotated[Optional[StrictStr], Field(description="The owner of the clients to filter by.")] = None,
3739
4032
  _request_timeout: Union[
@@ -4202,8 +4495,8 @@ class OAuth2Api:
4202
4495
  @validate_call
4203
4496
  def list_trusted_o_auth2_jwt_grant_issuers(
4204
4497
  self,
4205
- max_items: Optional[StrictInt] = None,
4206
- default_items: Optional[StrictInt] = None,
4498
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page 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,
4499
+ page_token: Annotated[Optional[StrictStr], 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,
4207
4500
  issuer: Annotated[Optional[StrictStr], Field(description="If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned.")] = None,
4208
4501
  _request_timeout: Union[
4209
4502
  None,
@@ -4222,13 +4515,13 @@ class OAuth2Api:
4222
4515
 
4223
4516
  Use this endpoint to list all trusted JWT Bearer Grant Type Issuers.
4224
4517
 
4225
- :param max_items:
4226
- :type max_items: int
4227
- :param default_items:
4228
- :type default_items: int
4229
- :param issuer: If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned.
4230
- :type issuer: str
4231
- :param _request_timeout: timeout setting for this request. If one
4518
+ :param page_size: Items per Page 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).
4519
+ :type page_size: int
4520
+ :param page_token: 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).
4521
+ :type page_token: str
4522
+ :param issuer: If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned.
4523
+ :type issuer: str
4524
+ :param _request_timeout: timeout setting for this request. If one
4232
4525
  number provided, it will be total request
4233
4526
  timeout. It can also be a pair (tuple) of
4234
4527
  (connection, read) timeouts.
@@ -4251,8 +4544,8 @@ class OAuth2Api:
4251
4544
  """ # noqa: E501
4252
4545
 
4253
4546
  _param = self._list_trusted_o_auth2_jwt_grant_issuers_serialize(
4254
- max_items=max_items,
4255
- default_items=default_items,
4547
+ page_size=page_size,
4548
+ page_token=page_token,
4256
4549
  issuer=issuer,
4257
4550
  _request_auth=_request_auth,
4258
4551
  _content_type=_content_type,
@@ -4277,8 +4570,8 @@ class OAuth2Api:
4277
4570
  @validate_call
4278
4571
  def list_trusted_o_auth2_jwt_grant_issuers_with_http_info(
4279
4572
  self,
4280
- max_items: Optional[StrictInt] = None,
4281
- default_items: Optional[StrictInt] = None,
4573
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page 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,
4574
+ page_token: Annotated[Optional[StrictStr], 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,
4282
4575
  issuer: Annotated[Optional[StrictStr], Field(description="If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned.")] = None,
4283
4576
  _request_timeout: Union[
4284
4577
  None,
@@ -4297,10 +4590,10 @@ class OAuth2Api:
4297
4590
 
4298
4591
  Use this endpoint to list all trusted JWT Bearer Grant Type Issuers.
4299
4592
 
4300
- :param max_items:
4301
- :type max_items: int
4302
- :param default_items:
4303
- :type default_items: int
4593
+ :param page_size: Items per Page 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).
4594
+ :type page_size: int
4595
+ :param page_token: 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).
4596
+ :type page_token: str
4304
4597
  :param issuer: If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned.
4305
4598
  :type issuer: str
4306
4599
  :param _request_timeout: timeout setting for this request. If one
@@ -4326,8 +4619,8 @@ class OAuth2Api:
4326
4619
  """ # noqa: E501
4327
4620
 
4328
4621
  _param = self._list_trusted_o_auth2_jwt_grant_issuers_serialize(
4329
- max_items=max_items,
4330
- default_items=default_items,
4622
+ page_size=page_size,
4623
+ page_token=page_token,
4331
4624
  issuer=issuer,
4332
4625
  _request_auth=_request_auth,
4333
4626
  _content_type=_content_type,
@@ -4352,8 +4645,8 @@ class OAuth2Api:
4352
4645
  @validate_call
4353
4646
  def list_trusted_o_auth2_jwt_grant_issuers_without_preload_content(
4354
4647
  self,
4355
- max_items: Optional[StrictInt] = None,
4356
- default_items: Optional[StrictInt] = None,
4648
+ page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page 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,
4649
+ page_token: Annotated[Optional[StrictStr], 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,
4357
4650
  issuer: Annotated[Optional[StrictStr], Field(description="If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned.")] = None,
4358
4651
  _request_timeout: Union[
4359
4652
  None,
@@ -4372,10 +4665,10 @@ class OAuth2Api:
4372
4665
 
4373
4666
  Use this endpoint to list all trusted JWT Bearer Grant Type Issuers.
4374
4667
 
4375
- :param max_items:
4376
- :type max_items: int
4377
- :param default_items:
4378
- :type default_items: int
4668
+ :param page_size: Items per Page 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).
4669
+ :type page_size: int
4670
+ :param page_token: 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).
4671
+ :type page_token: str
4379
4672
  :param issuer: If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned.
4380
4673
  :type issuer: str
4381
4674
  :param _request_timeout: timeout setting for this request. If one
@@ -4401,8 +4694,8 @@ class OAuth2Api:
4401
4694
  """ # noqa: E501
4402
4695
 
4403
4696
  _param = self._list_trusted_o_auth2_jwt_grant_issuers_serialize(
4404
- max_items=max_items,
4405
- default_items=default_items,
4697
+ page_size=page_size,
4698
+ page_token=page_token,
4406
4699
  issuer=issuer,
4407
4700
  _request_auth=_request_auth,
4408
4701
  _content_type=_content_type,
@@ -4422,8 +4715,8 @@ class OAuth2Api:
4422
4715
 
4423
4716
  def _list_trusted_o_auth2_jwt_grant_issuers_serialize(
4424
4717
  self,
4425
- max_items,
4426
- default_items,
4718
+ page_size,
4719
+ page_token,
4427
4720
  issuer,
4428
4721
  _request_auth,
4429
4722
  _content_type,
@@ -4447,13 +4740,13 @@ class OAuth2Api:
4447
4740
 
4448
4741
  # process the path parameters
4449
4742
  # process the query parameters
4450
- if max_items is not None:
4743
+ if page_size is not None:
4451
4744
 
4452
- _query_params.append(('MaxItems', max_items))
4745
+ _query_params.append(('page_size', page_size))
4453
4746
 
4454
- if default_items is not None:
4747
+ if page_token is not None:
4455
4748
 
4456
- _query_params.append(('DefaultItems', default_items))
4749
+ _query_params.append(('page_token', page_token))
4457
4750
 
4458
4751
  if issuer is not None:
4459
4752
 
@@ -4741,6 +5034,251 @@ class OAuth2Api:
4741
5034
 
4742
5035
 
4743
5036
 
5037
+ @validate_call
5038
+ def o_auth2_device_flow(
5039
+ self,
5040
+ _request_timeout: Union[
5041
+ None,
5042
+ Annotated[StrictFloat, Field(gt=0)],
5043
+ Tuple[
5044
+ Annotated[StrictFloat, Field(gt=0)],
5045
+ Annotated[StrictFloat, Field(gt=0)]
5046
+ ]
5047
+ ] = None,
5048
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5049
+ _content_type: Optional[StrictStr] = None,
5050
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5051
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5052
+ ) -> DeviceAuthorization:
5053
+ """The OAuth 2.0 Device Authorize Endpoint
5054
+
5055
+ This endpoint is not documented here because you should never use your own implementation to perform OAuth2 flows. OAuth2 is a very popular protocol and a library for your programming language will exists. To learn more about this flow please refer to the specification: https://tools.ietf.org/html/rfc8628
5056
+
5057
+ :param _request_timeout: timeout setting for this request. If one
5058
+ number provided, it will be total request
5059
+ timeout. It can also be a pair (tuple) of
5060
+ (connection, read) timeouts.
5061
+ :type _request_timeout: int, tuple(int, int), optional
5062
+ :param _request_auth: set to override the auth_settings for an a single
5063
+ request; this effectively ignores the
5064
+ authentication in the spec for a single request.
5065
+ :type _request_auth: dict, optional
5066
+ :param _content_type: force content-type for the request.
5067
+ :type _content_type: str, Optional
5068
+ :param _headers: set to override the headers for a single
5069
+ request; this effectively ignores the headers
5070
+ in the spec for a single request.
5071
+ :type _headers: dict, optional
5072
+ :param _host_index: set to override the host_index for a single
5073
+ request; this effectively ignores the host_index
5074
+ in the spec for a single request.
5075
+ :type _host_index: int, optional
5076
+ :return: Returns the result object.
5077
+ """ # noqa: E501
5078
+
5079
+ _param = self._o_auth2_device_flow_serialize(
5080
+ _request_auth=_request_auth,
5081
+ _content_type=_content_type,
5082
+ _headers=_headers,
5083
+ _host_index=_host_index
5084
+ )
5085
+
5086
+ _response_types_map: Dict[str, Optional[str]] = {
5087
+ '200': "DeviceAuthorization",
5088
+ }
5089
+ response_data = self.api_client.call_api(
5090
+ *_param,
5091
+ _request_timeout=_request_timeout
5092
+ )
5093
+ response_data.read()
5094
+ return self.api_client.response_deserialize(
5095
+ response_data=response_data,
5096
+ response_types_map=_response_types_map,
5097
+ ).data
5098
+
5099
+
5100
+ @validate_call
5101
+ def o_auth2_device_flow_with_http_info(
5102
+ self,
5103
+ _request_timeout: Union[
5104
+ None,
5105
+ Annotated[StrictFloat, Field(gt=0)],
5106
+ Tuple[
5107
+ Annotated[StrictFloat, Field(gt=0)],
5108
+ Annotated[StrictFloat, Field(gt=0)]
5109
+ ]
5110
+ ] = None,
5111
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5112
+ _content_type: Optional[StrictStr] = None,
5113
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5114
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5115
+ ) -> ApiResponse[DeviceAuthorization]:
5116
+ """The OAuth 2.0 Device Authorize Endpoint
5117
+
5118
+ This endpoint is not documented here because you should never use your own implementation to perform OAuth2 flows. OAuth2 is a very popular protocol and a library for your programming language will exists. To learn more about this flow please refer to the specification: https://tools.ietf.org/html/rfc8628
5119
+
5120
+ :param _request_timeout: timeout setting for this request. If one
5121
+ number provided, it will be total request
5122
+ timeout. It can also be a pair (tuple) of
5123
+ (connection, read) timeouts.
5124
+ :type _request_timeout: int, tuple(int, int), optional
5125
+ :param _request_auth: set to override the auth_settings for an a single
5126
+ request; this effectively ignores the
5127
+ authentication in the spec for a single request.
5128
+ :type _request_auth: dict, optional
5129
+ :param _content_type: force content-type for the request.
5130
+ :type _content_type: str, Optional
5131
+ :param _headers: set to override the headers for a single
5132
+ request; this effectively ignores the headers
5133
+ in the spec for a single request.
5134
+ :type _headers: dict, optional
5135
+ :param _host_index: set to override the host_index for a single
5136
+ request; this effectively ignores the host_index
5137
+ in the spec for a single request.
5138
+ :type _host_index: int, optional
5139
+ :return: Returns the result object.
5140
+ """ # noqa: E501
5141
+
5142
+ _param = self._o_auth2_device_flow_serialize(
5143
+ _request_auth=_request_auth,
5144
+ _content_type=_content_type,
5145
+ _headers=_headers,
5146
+ _host_index=_host_index
5147
+ )
5148
+
5149
+ _response_types_map: Dict[str, Optional[str]] = {
5150
+ '200': "DeviceAuthorization",
5151
+ }
5152
+ response_data = self.api_client.call_api(
5153
+ *_param,
5154
+ _request_timeout=_request_timeout
5155
+ )
5156
+ response_data.read()
5157
+ return self.api_client.response_deserialize(
5158
+ response_data=response_data,
5159
+ response_types_map=_response_types_map,
5160
+ )
5161
+
5162
+
5163
+ @validate_call
5164
+ def o_auth2_device_flow_without_preload_content(
5165
+ self,
5166
+ _request_timeout: Union[
5167
+ None,
5168
+ Annotated[StrictFloat, Field(gt=0)],
5169
+ Tuple[
5170
+ Annotated[StrictFloat, Field(gt=0)],
5171
+ Annotated[StrictFloat, Field(gt=0)]
5172
+ ]
5173
+ ] = None,
5174
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5175
+ _content_type: Optional[StrictStr] = None,
5176
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5177
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5178
+ ) -> RESTResponseType:
5179
+ """The OAuth 2.0 Device Authorize Endpoint
5180
+
5181
+ This endpoint is not documented here because you should never use your own implementation to perform OAuth2 flows. OAuth2 is a very popular protocol and a library for your programming language will exists. To learn more about this flow please refer to the specification: https://tools.ietf.org/html/rfc8628
5182
+
5183
+ :param _request_timeout: timeout setting for this request. If one
5184
+ number provided, it will be total request
5185
+ timeout. It can also be a pair (tuple) of
5186
+ (connection, read) timeouts.
5187
+ :type _request_timeout: int, tuple(int, int), optional
5188
+ :param _request_auth: set to override the auth_settings for an a single
5189
+ request; this effectively ignores the
5190
+ authentication in the spec for a single request.
5191
+ :type _request_auth: dict, optional
5192
+ :param _content_type: force content-type for the request.
5193
+ :type _content_type: str, Optional
5194
+ :param _headers: set to override the headers for a single
5195
+ request; this effectively ignores the headers
5196
+ in the spec for a single request.
5197
+ :type _headers: dict, optional
5198
+ :param _host_index: set to override the host_index for a single
5199
+ request; this effectively ignores the host_index
5200
+ in the spec for a single request.
5201
+ :type _host_index: int, optional
5202
+ :return: Returns the result object.
5203
+ """ # noqa: E501
5204
+
5205
+ _param = self._o_auth2_device_flow_serialize(
5206
+ _request_auth=_request_auth,
5207
+ _content_type=_content_type,
5208
+ _headers=_headers,
5209
+ _host_index=_host_index
5210
+ )
5211
+
5212
+ _response_types_map: Dict[str, Optional[str]] = {
5213
+ '200': "DeviceAuthorization",
5214
+ }
5215
+ response_data = self.api_client.call_api(
5216
+ *_param,
5217
+ _request_timeout=_request_timeout
5218
+ )
5219
+ return response_data.response
5220
+
5221
+
5222
+ def _o_auth2_device_flow_serialize(
5223
+ self,
5224
+ _request_auth,
5225
+ _content_type,
5226
+ _headers,
5227
+ _host_index,
5228
+ ) -> RequestSerialized:
5229
+
5230
+ _host = None
5231
+
5232
+ _collection_formats: Dict[str, str] = {
5233
+ }
5234
+
5235
+ _path_params: Dict[str, str] = {}
5236
+ _query_params: List[Tuple[str, str]] = []
5237
+ _header_params: Dict[str, Optional[str]] = _headers or {}
5238
+ _form_params: List[Tuple[str, str]] = []
5239
+ _files: Dict[
5240
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
5241
+ ] = {}
5242
+ _body_params: Optional[bytes] = None
5243
+
5244
+ # process the path parameters
5245
+ # process the query parameters
5246
+ # process the header parameters
5247
+ # process the form parameters
5248
+ # process the body parameter
5249
+
5250
+
5251
+ # set the HTTP header `Accept`
5252
+ if 'Accept' not in _header_params:
5253
+ _header_params['Accept'] = self.api_client.select_header_accept(
5254
+ [
5255
+ 'application/json'
5256
+ ]
5257
+ )
5258
+
5259
+
5260
+ # authentication setting
5261
+ _auth_settings: List[str] = [
5262
+ ]
5263
+
5264
+ return self.api_client.param_serialize(
5265
+ method='POST',
5266
+ resource_path='/oauth2/device/auth',
5267
+ path_params=_path_params,
5268
+ query_params=_query_params,
5269
+ header_params=_header_params,
5270
+ body=_body_params,
5271
+ post_params=_form_params,
5272
+ files=_files,
5273
+ auth_settings=_auth_settings,
5274
+ collection_formats=_collection_formats,
5275
+ _host=_host,
5276
+ _request_auth=_request_auth
5277
+ )
5278
+
5279
+
5280
+
5281
+
4744
5282
  @validate_call
4745
5283
  def oauth2_token_exchange(
4746
5284
  self,
@@ -5369,6 +5907,251 @@ class OAuth2Api:
5369
5907
 
5370
5908
 
5371
5909
 
5910
+ @validate_call
5911
+ def perform_o_auth2_device_verification_flow(
5912
+ self,
5913
+ _request_timeout: Union[
5914
+ None,
5915
+ Annotated[StrictFloat, Field(gt=0)],
5916
+ Tuple[
5917
+ Annotated[StrictFloat, Field(gt=0)],
5918
+ Annotated[StrictFloat, Field(gt=0)]
5919
+ ]
5920
+ ] = None,
5921
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5922
+ _content_type: Optional[StrictStr] = None,
5923
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5924
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5925
+ ) -> ErrorOAuth2:
5926
+ """OAuth 2.0 Device Verification Endpoint
5927
+
5928
+ This is the device user verification endpoint. The user is redirected here when trying to login using the device flow.
5929
+
5930
+ :param _request_timeout: timeout setting for this request. If one
5931
+ number provided, it will be total request
5932
+ timeout. It can also be a pair (tuple) of
5933
+ (connection, read) timeouts.
5934
+ :type _request_timeout: int, tuple(int, int), optional
5935
+ :param _request_auth: set to override the auth_settings for an a single
5936
+ request; this effectively ignores the
5937
+ authentication in the spec for a single request.
5938
+ :type _request_auth: dict, optional
5939
+ :param _content_type: force content-type for the request.
5940
+ :type _content_type: str, Optional
5941
+ :param _headers: set to override the headers for a single
5942
+ request; this effectively ignores the headers
5943
+ in the spec for a single request.
5944
+ :type _headers: dict, optional
5945
+ :param _host_index: set to override the host_index for a single
5946
+ request; this effectively ignores the host_index
5947
+ in the spec for a single request.
5948
+ :type _host_index: int, optional
5949
+ :return: Returns the result object.
5950
+ """ # noqa: E501
5951
+
5952
+ _param = self._perform_o_auth2_device_verification_flow_serialize(
5953
+ _request_auth=_request_auth,
5954
+ _content_type=_content_type,
5955
+ _headers=_headers,
5956
+ _host_index=_host_index
5957
+ )
5958
+
5959
+ _response_types_map: Dict[str, Optional[str]] = {
5960
+ '302': None,
5961
+ }
5962
+ response_data = self.api_client.call_api(
5963
+ *_param,
5964
+ _request_timeout=_request_timeout
5965
+ )
5966
+ response_data.read()
5967
+ return self.api_client.response_deserialize(
5968
+ response_data=response_data,
5969
+ response_types_map=_response_types_map,
5970
+ ).data
5971
+
5972
+
5973
+ @validate_call
5974
+ def perform_o_auth2_device_verification_flow_with_http_info(
5975
+ self,
5976
+ _request_timeout: Union[
5977
+ None,
5978
+ Annotated[StrictFloat, Field(gt=0)],
5979
+ Tuple[
5980
+ Annotated[StrictFloat, Field(gt=0)],
5981
+ Annotated[StrictFloat, Field(gt=0)]
5982
+ ]
5983
+ ] = None,
5984
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
5985
+ _content_type: Optional[StrictStr] = None,
5986
+ _headers: Optional[Dict[StrictStr, Any]] = None,
5987
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5988
+ ) -> ApiResponse[ErrorOAuth2]:
5989
+ """OAuth 2.0 Device Verification Endpoint
5990
+
5991
+ This is the device user verification endpoint. The user is redirected here when trying to login using the device flow.
5992
+
5993
+ :param _request_timeout: timeout setting for this request. If one
5994
+ number provided, it will be total request
5995
+ timeout. It can also be a pair (tuple) of
5996
+ (connection, read) timeouts.
5997
+ :type _request_timeout: int, tuple(int, int), optional
5998
+ :param _request_auth: set to override the auth_settings for an a single
5999
+ request; this effectively ignores the
6000
+ authentication in the spec for a single request.
6001
+ :type _request_auth: dict, optional
6002
+ :param _content_type: force content-type for the request.
6003
+ :type _content_type: str, Optional
6004
+ :param _headers: set to override the headers for a single
6005
+ request; this effectively ignores the headers
6006
+ in the spec for a single request.
6007
+ :type _headers: dict, optional
6008
+ :param _host_index: set to override the host_index for a single
6009
+ request; this effectively ignores the host_index
6010
+ in the spec for a single request.
6011
+ :type _host_index: int, optional
6012
+ :return: Returns the result object.
6013
+ """ # noqa: E501
6014
+
6015
+ _param = self._perform_o_auth2_device_verification_flow_serialize(
6016
+ _request_auth=_request_auth,
6017
+ _content_type=_content_type,
6018
+ _headers=_headers,
6019
+ _host_index=_host_index
6020
+ )
6021
+
6022
+ _response_types_map: Dict[str, Optional[str]] = {
6023
+ '302': None,
6024
+ }
6025
+ response_data = self.api_client.call_api(
6026
+ *_param,
6027
+ _request_timeout=_request_timeout
6028
+ )
6029
+ response_data.read()
6030
+ return self.api_client.response_deserialize(
6031
+ response_data=response_data,
6032
+ response_types_map=_response_types_map,
6033
+ )
6034
+
6035
+
6036
+ @validate_call
6037
+ def perform_o_auth2_device_verification_flow_without_preload_content(
6038
+ self,
6039
+ _request_timeout: Union[
6040
+ None,
6041
+ Annotated[StrictFloat, Field(gt=0)],
6042
+ Tuple[
6043
+ Annotated[StrictFloat, Field(gt=0)],
6044
+ Annotated[StrictFloat, Field(gt=0)]
6045
+ ]
6046
+ ] = None,
6047
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
6048
+ _content_type: Optional[StrictStr] = None,
6049
+ _headers: Optional[Dict[StrictStr, Any]] = None,
6050
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6051
+ ) -> RESTResponseType:
6052
+ """OAuth 2.0 Device Verification Endpoint
6053
+
6054
+ This is the device user verification endpoint. The user is redirected here when trying to login using the device flow.
6055
+
6056
+ :param _request_timeout: timeout setting for this request. If one
6057
+ number provided, it will be total request
6058
+ timeout. It can also be a pair (tuple) of
6059
+ (connection, read) timeouts.
6060
+ :type _request_timeout: int, tuple(int, int), optional
6061
+ :param _request_auth: set to override the auth_settings for an a single
6062
+ request; this effectively ignores the
6063
+ authentication in the spec for a single request.
6064
+ :type _request_auth: dict, optional
6065
+ :param _content_type: force content-type for the request.
6066
+ :type _content_type: str, Optional
6067
+ :param _headers: set to override the headers for a single
6068
+ request; this effectively ignores the headers
6069
+ in the spec for a single request.
6070
+ :type _headers: dict, optional
6071
+ :param _host_index: set to override the host_index for a single
6072
+ request; this effectively ignores the host_index
6073
+ in the spec for a single request.
6074
+ :type _host_index: int, optional
6075
+ :return: Returns the result object.
6076
+ """ # noqa: E501
6077
+
6078
+ _param = self._perform_o_auth2_device_verification_flow_serialize(
6079
+ _request_auth=_request_auth,
6080
+ _content_type=_content_type,
6081
+ _headers=_headers,
6082
+ _host_index=_host_index
6083
+ )
6084
+
6085
+ _response_types_map: Dict[str, Optional[str]] = {
6086
+ '302': None,
6087
+ }
6088
+ response_data = self.api_client.call_api(
6089
+ *_param,
6090
+ _request_timeout=_request_timeout
6091
+ )
6092
+ return response_data.response
6093
+
6094
+
6095
+ def _perform_o_auth2_device_verification_flow_serialize(
6096
+ self,
6097
+ _request_auth,
6098
+ _content_type,
6099
+ _headers,
6100
+ _host_index,
6101
+ ) -> RequestSerialized:
6102
+
6103
+ _host = None
6104
+
6105
+ _collection_formats: Dict[str, str] = {
6106
+ }
6107
+
6108
+ _path_params: Dict[str, str] = {}
6109
+ _query_params: List[Tuple[str, str]] = []
6110
+ _header_params: Dict[str, Optional[str]] = _headers or {}
6111
+ _form_params: List[Tuple[str, str]] = []
6112
+ _files: Dict[
6113
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
6114
+ ] = {}
6115
+ _body_params: Optional[bytes] = None
6116
+
6117
+ # process the path parameters
6118
+ # process the query parameters
6119
+ # process the header parameters
6120
+ # process the form parameters
6121
+ # process the body parameter
6122
+
6123
+
6124
+ # set the HTTP header `Accept`
6125
+ if 'Accept' not in _header_params:
6126
+ _header_params['Accept'] = self.api_client.select_header_accept(
6127
+ [
6128
+ 'application/json'
6129
+ ]
6130
+ )
6131
+
6132
+
6133
+ # authentication setting
6134
+ _auth_settings: List[str] = [
6135
+ ]
6136
+
6137
+ return self.api_client.param_serialize(
6138
+ method='GET',
6139
+ resource_path='/oauth2/device/verify',
6140
+ path_params=_path_params,
6141
+ query_params=_query_params,
6142
+ header_params=_header_params,
6143
+ body=_body_params,
6144
+ post_params=_form_params,
6145
+ files=_files,
6146
+ auth_settings=_auth_settings,
6147
+ collection_formats=_collection_formats,
6148
+ _host=_host,
6149
+ _request_auth=_request_auth
6150
+ )
6151
+
6152
+
6153
+
6154
+
5372
6155
  @validate_call
5373
6156
  def reject_o_auth2_consent_request(
5374
6157
  self,