ory-client 1.9.0__py3-none-any.whl → 1.11.6__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 (565) hide show
  1. ory_client/__init__.py +279 -10
  2. ory_client/api/__init__.py +16 -3
  3. ory_client/api/courier_api.py +576 -287
  4. ory_client/api/events_api.py +1147 -576
  5. ory_client/api/frontend_api.py +8736 -4145
  6. ory_client/api/identity_api.py +5219 -2605
  7. ory_client/api/jwk_api.py +1881 -939
  8. ory_client/api/metadata_api.py +245 -376
  9. ory_client/api/o_auth2_api.py +7763 -3858
  10. ory_client/api/oidc_api.py +2071 -1034
  11. ory_client/api/permission_api.py +1675 -776
  12. ory_client/api/project_api.py +5314 -2638
  13. ory_client/api/relationship_api.py +1844 -860
  14. ory_client/api/wellknown_api.py +250 -131
  15. ory_client/api_client.py +520 -658
  16. ory_client/api_response.py +21 -0
  17. ory_client/configuration.py +65 -75
  18. ory_client/exceptions.py +73 -32
  19. ory_client/models/__init__.py +266 -291
  20. ory_client/models/accept_o_auth2_consent_request.py +118 -0
  21. ory_client/models/accept_o_auth2_consent_request_session.py +113 -0
  22. ory_client/models/accept_o_auth2_login_request.py +117 -0
  23. ory_client/models/active_project_in_console.py +101 -0
  24. ory_client/models/attribute.py +103 -0
  25. ory_client/models/attribute_filter.py +115 -0
  26. ory_client/models/attributes_count_datapoint.py +103 -0
  27. ory_client/models/authenticator_assurance_level.py +40 -0
  28. ory_client/models/batch_patch_identities_response.py +109 -0
  29. ory_client/models/check_opl_syntax_result.py +109 -0
  30. ory_client/models/check_permission_result.py +101 -0
  31. ory_client/models/cloud_account.py +105 -0
  32. ory_client/models/consistency_request_parameters.py +111 -0
  33. ory_client/models/continue_with.py +214 -0
  34. ory_client/models/continue_with_recovery_ui.py +114 -0
  35. ory_client/models/continue_with_recovery_ui_flow.py +103 -0
  36. ory_client/models/continue_with_set_ory_session_token.py +110 -0
  37. ory_client/models/continue_with_settings_ui.py +114 -0
  38. ory_client/models/continue_with_settings_ui_flow.py +101 -0
  39. ory_client/models/continue_with_verification_ui.py +114 -0
  40. ory_client/models/continue_with_verification_ui_flow.py +105 -0
  41. ory_client/models/courier_message_status.py +40 -0
  42. ory_client/models/courier_message_type.py +38 -0
  43. ory_client/models/create_custom_domain_body.py +109 -0
  44. ory_client/models/create_event_stream_body.py +112 -0
  45. ory_client/models/create_identity_body.py +155 -0
  46. ory_client/models/create_invite_response.py +114 -0
  47. ory_client/models/create_json_web_key_set.py +105 -0
  48. ory_client/models/create_project_api_key_request.py +101 -0
  49. ory_client/models/create_project_body.py +112 -0
  50. ory_client/models/create_project_branding.py +115 -0
  51. ory_client/models/create_project_member_invite_body.py +101 -0
  52. ory_client/models/create_project_normalized_payload.py +685 -0
  53. ory_client/models/create_recovery_code_for_identity_body.py +114 -0
  54. ory_client/models/create_recovery_link_for_identity_body.py +114 -0
  55. ory_client/models/create_relationship_body.py +113 -0
  56. ory_client/models/create_subscription_body.py +126 -0
  57. ory_client/models/create_subscription_common.py +124 -0
  58. ory_client/models/create_verifiable_credential_request_body.py +109 -0
  59. ory_client/models/create_workspace_member_invite_body.py +101 -0
  60. ory_client/models/create_workspace_payload.py +101 -0
  61. ory_client/models/create_workspace_subscription_body.py +124 -0
  62. ory_client/models/credential_supported_draft00.py +107 -0
  63. ory_client/models/custom_domain.py +132 -0
  64. ory_client/models/delete_my_sessions_count.py +101 -0
  65. ory_client/models/email_template_data.py +107 -0
  66. ory_client/models/email_template_data_body.py +103 -0
  67. ory_client/models/error_authenticator_assurance_level_not_satisfied.py +107 -0
  68. ory_client/models/error_browser_location_change_required.py +107 -0
  69. ory_client/models/error_flow_replaced.py +107 -0
  70. ory_client/models/error_generic.py +105 -0
  71. ory_client/models/error_o_auth2.py +109 -0
  72. ory_client/models/event_stream.py +112 -0
  73. ory_client/models/expanded_permission_tree.py +125 -0
  74. ory_client/models/flow_error.py +108 -0
  75. ory_client/models/generic_error.py +126 -0
  76. ory_client/models/generic_error_content.py +109 -0
  77. ory_client/models/generic_usage.py +103 -0
  78. ory_client/models/get_attributes_count_response.py +111 -0
  79. ory_client/models/get_managed_identity_schema_location.py +101 -0
  80. ory_client/models/get_metrics_event_attributes_response.py +103 -0
  81. ory_client/models/get_metrics_event_types_response.py +103 -0
  82. ory_client/models/get_organization_response.py +105 -0
  83. ory_client/models/get_project_events_body.py +120 -0
  84. ory_client/models/get_project_events_response.py +115 -0
  85. ory_client/models/get_project_metrics_response.py +111 -0
  86. ory_client/models/get_session_activity_response.py +111 -0
  87. ory_client/models/get_version200_response.py +101 -0
  88. ory_client/models/health_not_ready_status.py +101 -0
  89. ory_client/models/health_status.py +101 -0
  90. ory_client/models/identity.py +187 -0
  91. ory_client/models/identity_credentials.py +122 -0
  92. ory_client/models/identity_credentials_code.py +109 -0
  93. ory_client/models/identity_credentials_oidc.py +109 -0
  94. ory_client/models/identity_credentials_oidc_provider.py +111 -0
  95. ory_client/models/identity_credentials_password.py +101 -0
  96. ory_client/models/identity_patch.py +107 -0
  97. ory_client/models/identity_patch_response.py +115 -0
  98. ory_client/models/identity_schema_container.py +103 -0
  99. ory_client/models/identity_schema_preset.py +103 -0
  100. ory_client/models/identity_with_credentials.py +111 -0
  101. ory_client/models/identity_with_credentials_oidc.py +105 -0
  102. ory_client/models/identity_with_credentials_oidc_config.py +115 -0
  103. ory_client/models/identity_with_credentials_oidc_config_provider.py +103 -0
  104. ory_client/models/identity_with_credentials_password.py +105 -0
  105. ory_client/models/identity_with_credentials_password_config.py +103 -0
  106. ory_client/models/internal_get_project_branding_body.py +101 -0
  107. ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +103 -0
  108. ory_client/models/internal_is_owner_for_project_by_slug_body.py +114 -0
  109. ory_client/models/internal_is_owner_for_project_by_slug_response.py +101 -0
  110. ory_client/models/introspected_o_auth2_token.py +127 -0
  111. ory_client/models/is_owner_for_project_by_slug.py +103 -0
  112. ory_client/models/json_patch.py +119 -0
  113. ory_client/models/json_web_key.py +133 -0
  114. ory_client/models/json_web_key_set.py +109 -0
  115. ory_client/models/keto_namespace.py +103 -0
  116. ory_client/models/list_event_streams.py +109 -0
  117. ory_client/models/list_my_workspaces_response.py +113 -0
  118. ory_client/models/list_organizations_response.py +109 -0
  119. ory_client/models/list_workspace_projects_response.py +113 -0
  120. ory_client/models/login_flow.py +165 -0
  121. ory_client/models/login_flow_state.py +39 -0
  122. ory_client/models/logout_flow.py +103 -0
  123. ory_client/models/managed_identity_schema.py +120 -0
  124. ory_client/models/managed_identity_schema_validation_result.py +103 -0
  125. ory_client/models/member_invite.py +148 -0
  126. ory_client/models/message.py +141 -0
  127. ory_client/models/message_dispatch.py +119 -0
  128. ory_client/models/metrics_datapoint.py +104 -0
  129. ory_client/models/migration_options.py +117 -0
  130. ory_client/models/namespace.py +101 -0
  131. ory_client/models/needs_privileged_session_error.py +107 -0
  132. ory_client/models/normalized_project.py +171 -0
  133. ory_client/models/normalized_project_revision.py +674 -0
  134. ory_client/models/normalized_project_revision_courier_channel.py +145 -0
  135. ory_client/models/normalized_project_revision_hook.py +140 -0
  136. ory_client/models/normalized_project_revision_identity_schema.py +133 -0
  137. ory_client/models/normalized_project_revision_third_party_provider.py +187 -0
  138. ory_client/models/normalized_project_revision_tokenizer_template.py +133 -0
  139. ory_client/models/o_auth2_client.py +352 -0
  140. ory_client/models/o_auth2_client_token_lifespans.py +270 -0
  141. ory_client/models/o_auth2_consent_request.py +133 -0
  142. ory_client/models/o_auth2_consent_request_open_id_connect_context.py +109 -0
  143. ory_client/models/o_auth2_consent_session.py +130 -0
  144. ory_client/models/o_auth2_consent_session_expires_at.py +110 -0
  145. ory_client/models/o_auth2_login_request.py +125 -0
  146. ory_client/models/o_auth2_logout_request.py +115 -0
  147. ory_client/models/o_auth2_redirect_to.py +101 -0
  148. ory_client/models/o_auth2_token_exchange.py +111 -0
  149. ory_client/models/oidc_configuration.py +169 -0
  150. ory_client/models/oidc_user_info.py +137 -0
  151. ory_client/models/organization.py +116 -0
  152. ory_client/models/organization_body.py +103 -0
  153. ory_client/models/pagination.py +104 -0
  154. ory_client/models/pagination_headers.py +103 -0
  155. ory_client/models/parse_error.py +112 -0
  156. ory_client/models/patch_identities_body.py +109 -0
  157. ory_client/models/perform_native_logout_body.py +101 -0
  158. ory_client/models/permissions_on_workpace_response.py +101 -0
  159. ory_client/models/plan.py +103 -0
  160. ory_client/models/plan_details.py +128 -0
  161. ory_client/models/post_check_permission_body.py +113 -0
  162. ory_client/models/post_check_permission_or_error_body.py +113 -0
  163. ory_client/models/project.py +148 -0
  164. ory_client/models/project_api_key.py +126 -0
  165. ory_client/models/project_branding.py +129 -0
  166. ory_client/models/project_branding_colors.py +157 -0
  167. ory_client/models/project_branding_theme.py +182 -0
  168. ory_client/models/project_cors.py +103 -0
  169. ory_client/models/project_events_datapoint.py +114 -0
  170. ory_client/models/project_host.py +107 -0
  171. ory_client/models/project_member.py +107 -0
  172. ory_client/models/project_metadata.py +161 -0
  173. ory_client/models/project_service_identity.py +101 -0
  174. ory_client/models/project_service_o_auth2.py +101 -0
  175. ory_client/models/project_service_permission.py +101 -0
  176. ory_client/models/project_services.py +117 -0
  177. ory_client/models/quota_usage.py +118 -0
  178. ory_client/models/recovery_code_for_identity.py +106 -0
  179. ory_client/models/recovery_flow.py +139 -0
  180. ory_client/models/recovery_flow_state.py +39 -0
  181. ory_client/models/recovery_identity_address.py +110 -0
  182. ory_client/models/recovery_link_for_identity.py +104 -0
  183. ory_client/models/registration_flow.py +156 -0
  184. ory_client/models/registration_flow_state.py +39 -0
  185. ory_client/models/reject_o_auth2_request.py +109 -0
  186. ory_client/models/relation_query.py +113 -0
  187. ory_client/models/relationship.py +113 -0
  188. ory_client/models/relationship_namespaces.py +109 -0
  189. ory_client/models/relationship_patch.py +117 -0
  190. ory_client/models/relationships.py +111 -0
  191. ory_client/models/rfc6749_error_json.py +109 -0
  192. ory_client/models/schema_patch.py +103 -0
  193. ory_client/models/self_service_flow_expired_error.py +112 -0
  194. ory_client/models/session.py +141 -0
  195. ory_client/models/session_activity_datapoint.py +105 -0
  196. ory_client/models/session_authentication_method.py +121 -0
  197. ory_client/models/session_device.py +107 -0
  198. ory_client/models/set_active_project_in_console_body.py +101 -0
  199. ory_client/models/set_custom_domain_body.py +109 -0
  200. ory_client/models/set_event_stream_body.py +112 -0
  201. ory_client/models/set_project.py +118 -0
  202. ory_client/models/set_project_branding_theme_body.py +115 -0
  203. ory_client/models/settings_flow.py +145 -0
  204. ory_client/models/settings_flow_state.py +38 -0
  205. ory_client/models/source_position.py +103 -0
  206. ory_client/models/subject_set.py +105 -0
  207. ory_client/models/subscription.py +179 -0
  208. ory_client/models/successful_code_exchange_response.py +107 -0
  209. ory_client/models/successful_native_login.py +117 -0
  210. ory_client/models/successful_native_registration.py +123 -0
  211. ory_client/models/successful_project_update.py +115 -0
  212. ory_client/models/token_pagination.py +104 -0
  213. ory_client/models/token_pagination_headers.py +103 -0
  214. ory_client/models/token_pagination_request_parameters.py +104 -0
  215. ory_client/models/token_pagination_response_headers.py +103 -0
  216. ory_client/models/trust_o_auth2_jwt_grant_issuer.py +116 -0
  217. ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +120 -0
  218. ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +103 -0
  219. ory_client/models/ui_container.py +123 -0
  220. ory_client/models/ui_node.py +139 -0
  221. ory_client/models/ui_node_anchor_attributes.py +118 -0
  222. ory_client/models/ui_node_attributes.py +238 -0
  223. ory_client/models/ui_node_image_attributes.py +116 -0
  224. ory_client/models/ui_node_input_attributes.py +154 -0
  225. ory_client/models/ui_node_meta.py +105 -0
  226. ory_client/models/ui_node_script_attributes.py +124 -0
  227. ory_client/models/ui_node_text_attributes.py +116 -0
  228. ory_client/models/ui_text.py +114 -0
  229. ory_client/models/update_identity_body.py +132 -0
  230. ory_client/models/update_login_flow_body.py +286 -0
  231. ory_client/models/update_login_flow_with_code_method.py +111 -0
  232. ory_client/models/update_login_flow_with_lookup_secret_method.py +105 -0
  233. ory_client/models/update_login_flow_with_oidc_method.py +115 -0
  234. ory_client/models/update_login_flow_with_passkey_method.py +105 -0
  235. ory_client/models/update_login_flow_with_password_method.py +111 -0
  236. ory_client/models/update_login_flow_with_totp_method.py +107 -0
  237. ory_client/models/update_login_flow_with_web_authn_method.py +109 -0
  238. ory_client/models/update_recovery_flow_body.py +166 -0
  239. ory_client/models/update_recovery_flow_with_code_method.py +116 -0
  240. ory_client/models/update_recovery_flow_with_link_method.py +114 -0
  241. ory_client/models/update_registration_flow_body.py +238 -0
  242. ory_client/models/update_registration_flow_with_code_method.py +111 -0
  243. ory_client/models/update_registration_flow_with_oidc_method.py +115 -0
  244. ory_client/models/update_registration_flow_with_passkey_method.py +109 -0
  245. ory_client/models/update_registration_flow_with_password_method.py +109 -0
  246. ory_client/models/update_registration_flow_with_profile_method.py +109 -0
  247. ory_client/models/update_registration_flow_with_web_authn_method.py +111 -0
  248. ory_client/models/update_settings_flow_body.py +286 -0
  249. ory_client/models/update_settings_flow_with_lookup_method.py +113 -0
  250. ory_client/models/update_settings_flow_with_oidc_method.py +113 -0
  251. ory_client/models/update_settings_flow_with_passkey_method.py +107 -0
  252. ory_client/models/update_settings_flow_with_password_method.py +107 -0
  253. ory_client/models/update_settings_flow_with_profile_method.py +107 -0
  254. ory_client/models/update_settings_flow_with_totp_method.py +109 -0
  255. ory_client/models/update_settings_flow_with_web_authn_method.py +111 -0
  256. ory_client/models/update_subscription_body.py +112 -0
  257. ory_client/models/update_verification_flow_body.py +166 -0
  258. ory_client/models/update_verification_flow_with_code_method.py +116 -0
  259. ory_client/models/update_verification_flow_with_link_method.py +114 -0
  260. ory_client/models/update_workspace_payload.py +101 -0
  261. ory_client/models/usage.py +105 -0
  262. ory_client/models/verifiable_credential_priming_response.py +115 -0
  263. ory_client/models/verifiable_credential_proof.py +103 -0
  264. ory_client/models/verifiable_credential_response.py +103 -0
  265. ory_client/models/verifiable_identity_address.py +123 -0
  266. ory_client/models/verification_flow.py +129 -0
  267. ory_client/models/verification_flow_state.py +39 -0
  268. ory_client/models/version.py +101 -0
  269. ory_client/models/warning.py +103 -0
  270. ory_client/models/workspace.py +115 -0
  271. ory_client/models/workspace_meta.py +122 -0
  272. ory_client/py.typed +0 -0
  273. ory_client/rest.py +139 -236
  274. {ory_client-1.9.0.dist-info → ory_client-1.11.6.dist-info}/METADATA +6 -4
  275. ory_client-1.11.6.dist-info/RECORD +278 -0
  276. ory_client/apis/__init__.py +0 -28
  277. ory_client/model/__init__.py +0 -5
  278. ory_client/model/accept_o_auth2_consent_request.py +0 -296
  279. ory_client/model/accept_o_auth2_consent_request_session.py +0 -268
  280. ory_client/model/accept_o_auth2_login_request.py +0 -308
  281. ory_client/model/active_project_in_console.py +0 -264
  282. ory_client/model/attribute.py +0 -268
  283. ory_client/model/attribute_filter.py +0 -282
  284. ory_client/model/attributes_count_datapoint.py +0 -276
  285. ory_client/model/authenticator_assurance_level.py +0 -293
  286. ory_client/model/batch_patch_identities_response.py +0 -270
  287. ory_client/model/check_opl_syntax_result.py +0 -270
  288. ory_client/model/check_permission_result.py +0 -270
  289. ory_client/model/cloud_account.py +0 -282
  290. ory_client/model/consistency_request_parameters.py +0 -269
  291. ory_client/model/continue_with.py +0 -356
  292. ory_client/model/continue_with_recovery_ui.py +0 -287
  293. ory_client/model/continue_with_recovery_ui_flow.py +0 -274
  294. ory_client/model/continue_with_set_ory_session_token.py +0 -281
  295. ory_client/model/continue_with_settings_ui.py +0 -287
  296. ory_client/model/continue_with_settings_ui_flow.py +0 -270
  297. ory_client/model/continue_with_verification_ui.py +0 -287
  298. ory_client/model/continue_with_verification_ui_flow.py +0 -280
  299. ory_client/model/courier_message_status.py +0 -293
  300. ory_client/model/courier_message_type.py +0 -291
  301. ory_client/model/create_custom_domain_body.py +0 -280
  302. ory_client/model/create_event_stream_body.py +0 -287
  303. ory_client/model/create_identity_body.py +0 -314
  304. ory_client/model/create_invite_response.py +0 -282
  305. ory_client/model/create_json_web_key_set.py +0 -282
  306. ory_client/model/create_member_invite_response.py +0 -287
  307. ory_client/model/create_project_api_key_request.py +0 -270
  308. ory_client/model/create_project_body.py +0 -284
  309. ory_client/model/create_project_branding.py +0 -290
  310. ory_client/model/create_project_member_invite_body.py +0 -264
  311. ory_client/model/create_project_normalized_payload.py +0 -1119
  312. ory_client/model/create_recovery_code_for_identity_body.py +0 -279
  313. ory_client/model/create_recovery_link_for_identity_body.py +0 -279
  314. ory_client/model/create_relationship_body.py +0 -286
  315. ory_client/model/create_subscription_body.py +0 -298
  316. ory_client/model/create_subscription_common.py +0 -292
  317. ory_client/model/create_verifiable_credential_request_body.py +0 -278
  318. ory_client/model/create_workspace_member_invite_body.py +0 -264
  319. ory_client/model/create_workspace_payload.py +0 -270
  320. ory_client/model/create_workspace_subscription_body.py +0 -292
  321. ory_client/model/credential_supported_draft00.py +0 -276
  322. ory_client/model/custom_domain.py +0 -334
  323. ory_client/model/delete_my_sessions_count.py +0 -264
  324. ory_client/model/email_template_data.py +0 -282
  325. ory_client/model/email_template_data_body.py +0 -276
  326. ory_client/model/error_authenticator_assurance_level_not_satisfied.py +0 -274
  327. ory_client/model/error_browser_location_change_required.py +0 -274
  328. ory_client/model/error_flow_replaced.py +0 -274
  329. ory_client/model/error_generic.py +0 -276
  330. ory_client/model/error_o_auth2.py +0 -280
  331. ory_client/model/event_stream.py +0 -284
  332. ory_client/model/expanded_permission_tree.py +0 -294
  333. ory_client/model/flow_error.py +0 -282
  334. ory_client/model/generic_error.py +0 -308
  335. ory_client/model/generic_error_content.py +0 -280
  336. ory_client/model/generic_usage.py +0 -276
  337. ory_client/model/get_attributes_count_response.py +0 -273
  338. ory_client/model/get_managed_identity_schema_location.py +0 -264
  339. ory_client/model/get_metrics_event_attributes_response.py +0 -267
  340. ory_client/model/get_metrics_event_types_response.py +0 -267
  341. ory_client/model/get_organization_response.py +0 -276
  342. ory_client/model/get_project_events_body.py +0 -298
  343. ory_client/model/get_project_events_response.py +0 -278
  344. ory_client/model/get_project_metrics_response.py +0 -273
  345. ory_client/model/get_session_activity_response.py +0 -273
  346. ory_client/model/get_version200_response.py +0 -270
  347. ory_client/model/health_not_ready_status.py +0 -264
  348. ory_client/model/health_status.py +0 -264
  349. ory_client/model/identity.py +0 -342
  350. ory_client/model/identity_credentials.py +0 -294
  351. ory_client/model/identity_credentials_code.py +0 -268
  352. ory_client/model/identity_credentials_oidc.py +0 -270
  353. ory_client/model/identity_credentials_oidc_provider.py +0 -284
  354. ory_client/model/identity_credentials_password.py +0 -264
  355. ory_client/model/identity_patch.py +0 -274
  356. ory_client/model/identity_patch_response.py +0 -275
  357. ory_client/model/identity_schema_container.py +0 -268
  358. ory_client/model/identity_schema_preset.py +0 -276
  359. ory_client/model/identity_schema_presets.py +0 -292
  360. ory_client/model/identity_schemas.py +0 -292
  361. ory_client/model/identity_with_credentials.py +0 -276
  362. ory_client/model/identity_with_credentials_oidc.py +0 -270
  363. ory_client/model/identity_with_credentials_oidc_config.py +0 -276
  364. ory_client/model/identity_with_credentials_oidc_config_provider.py +0 -276
  365. ory_client/model/identity_with_credentials_password.py +0 -270
  366. ory_client/model/identity_with_credentials_password_config.py +0 -268
  367. ory_client/model/internal_get_project_branding_body.py +0 -264
  368. ory_client/model/internal_is_ax_welcome_screen_enabled_for_project_body.py +0 -276
  369. ory_client/model/internal_is_owner_for_project_by_slug_body.py +0 -290
  370. ory_client/model/internal_is_owner_for_project_by_slug_response.py +0 -270
  371. ory_client/model/introspected_o_auth2_token.py +0 -322
  372. ory_client/model/is_owner_for_project_by_slug.py +0 -276
  373. ory_client/model/is_ready200_response.py +0 -270
  374. ory_client/model/is_ready503_response.py +0 -270
  375. ory_client/model/json_patch.py +0 -292
  376. ory_client/model/json_patch_document.py +0 -292
  377. ory_client/model/json_web_key.py +0 -340
  378. ory_client/model/json_web_key_set.py +0 -270
  379. ory_client/model/keto_namespace.py +0 -268
  380. ory_client/model/keto_namespaces.py +0 -292
  381. ory_client/model/list_custom_domains.py +0 -292
  382. ory_client/model/list_event_streams.py +0 -270
  383. ory_client/model/list_my_workspaces_response.py +0 -288
  384. ory_client/model/list_organizations_response.py +0 -276
  385. ory_client/model/list_workspace_projects_response.py +0 -288
  386. ory_client/model/login_flow.py +0 -370
  387. ory_client/model/login_flow_state.py +0 -292
  388. ory_client/model/logout_flow.py +0 -276
  389. ory_client/model/managed_identity_schema.py +0 -300
  390. ory_client/model/managed_identity_schema_validation_result.py +0 -268
  391. ory_client/model/managed_identity_schemas.py +0 -292
  392. ory_client/model/member_invite.py +0 -321
  393. ory_client/model/member_invites.py +0 -292
  394. ory_client/model/message.py +0 -355
  395. ory_client/model/message_dispatch.py +0 -302
  396. ory_client/model/metrics_datapoint.py +0 -276
  397. ory_client/model/migration_options.py +0 -284
  398. ory_client/model/namespace.py +0 -264
  399. ory_client/model/needs_privileged_session_error.py +0 -280
  400. ory_client/model/normalized_project.py +0 -337
  401. ory_client/model/normalized_project_revision.py +0 -1105
  402. ory_client/model/normalized_project_revision_courier_channel.py +0 -328
  403. ory_client/model/normalized_project_revision_hook.py +0 -342
  404. ory_client/model/normalized_project_revision_identity_schema.py +0 -308
  405. ory_client/model/normalized_project_revision_identity_schemas.py +0 -292
  406. ory_client/model/normalized_project_revision_third_party_provider.py +0 -368
  407. ory_client/model/normalized_project_revision_tokenizer_template.py +0 -300
  408. ory_client/model/normalized_project_revision_tokenizer_templates.py +0 -292
  409. ory_client/model/normalized_projects.py +0 -292
  410. ory_client/model/null_duration.py +0 -292
  411. ory_client/model/o_auth2_client.py +0 -460
  412. ory_client/model/o_auth2_client_token_lifespans.py +0 -306
  413. ory_client/model/o_auth2_consent_request.py +0 -328
  414. ory_client/model/o_auth2_consent_request_open_id_connect_context.py +0 -280
  415. ory_client/model/o_auth2_consent_session.py +0 -308
  416. ory_client/model/o_auth2_consent_session_expires_at.py +0 -280
  417. ory_client/model/o_auth2_consent_sessions.py +0 -292
  418. ory_client/model/o_auth2_login_request.py +0 -320
  419. ory_client/model/o_auth2_logout_request.py +0 -290
  420. ory_client/model/o_auth2_redirect_to.py +0 -270
  421. ory_client/model/o_auth2_token_exchange.py +0 -284
  422. ory_client/model/oidc_configuration.py +0 -412
  423. ory_client/model/oidc_user_info.py +0 -336
  424. ory_client/model/organization.py +0 -302
  425. ory_client/model/organization_body.py +0 -268
  426. ory_client/model/pagination.py +0 -274
  427. ory_client/model/pagination_headers.py +0 -268
  428. ory_client/model/parse_error.py +0 -278
  429. ory_client/model/patch_identities_body.py +0 -270
  430. ory_client/model/perform_native_logout_body.py +0 -270
  431. ory_client/model/permissions_on_project.py +0 -260
  432. ory_client/model/permissions_on_workpace_response.py +0 -264
  433. ory_client/model/plan.py +0 -276
  434. ory_client/model/plan_details.py +0 -316
  435. ory_client/model/plan_features.py +0 -266
  436. ory_client/model/plans.py +0 -287
  437. ory_client/model/post_check_permission_body.py +0 -286
  438. ory_client/model/post_check_permission_or_error_body.py +0 -286
  439. ory_client/model/pricing.py +0 -292
  440. ory_client/model/project.py +0 -319
  441. ory_client/model/project_api_key.py +0 -298
  442. ory_client/model/project_api_keys.py +0 -292
  443. ory_client/model/project_branding.py +0 -303
  444. ory_client/model/project_branding_colors.py +0 -376
  445. ory_client/model/project_branding_theme.py +0 -421
  446. ory_client/model/project_branding_themes.py +0 -292
  447. ory_client/model/project_cors.py +0 -268
  448. ory_client/model/project_events_datapoint.py +0 -288
  449. ory_client/model/project_host.py +0 -281
  450. ory_client/model/project_member.py +0 -288
  451. ory_client/model/project_members.py +0 -292
  452. ory_client/model/project_metadata.py +0 -337
  453. ory_client/model/project_metadata_list.py +0 -292
  454. ory_client/model/project_revision_hooks.py +0 -292
  455. ory_client/model/project_revision_identity_schemas.py +0 -292
  456. ory_client/model/project_revision_third_party_login_providers.py +0 -292
  457. ory_client/model/project_revisions.py +0 -292
  458. ory_client/model/project_service_identity.py +0 -270
  459. ory_client/model/project_service_o_auth2.py +0 -270
  460. ory_client/model/project_service_permission.py +0 -270
  461. ory_client/model/project_services.py +0 -282
  462. ory_client/model/projects.py +0 -292
  463. ory_client/model/quota_usage.py +0 -328
  464. ory_client/model/recovery_code_for_identity.py +0 -280
  465. ory_client/model/recovery_flow.py +0 -330
  466. ory_client/model/recovery_flow_state.py +0 -292
  467. ory_client/model/recovery_identity_address.py +0 -290
  468. ory_client/model/recovery_link_for_identity.py +0 -274
  469. ory_client/model/registration_flow.py +0 -352
  470. ory_client/model/registration_flow_state.py +0 -292
  471. ory_client/model/reject_o_auth2_request.py +0 -280
  472. ory_client/model/relation_query.py +0 -286
  473. ory_client/model/relationship.py +0 -296
  474. ory_client/model/relationship_namespaces.py +0 -270
  475. ory_client/model/relationship_patch.py +0 -278
  476. ory_client/model/relationships.py +0 -274
  477. ory_client/model/revision_courier_channels.py +0 -292
  478. ory_client/model/rfc6749_error_json.py +0 -280
  479. ory_client/model/schema_patch.py +0 -276
  480. ory_client/model/self_service_flow_expired_error.py +0 -282
  481. ory_client/model/session.py +0 -318
  482. ory_client/model/session_activity_datapoint.py +0 -282
  483. ory_client/model/session_authentication_method.py +0 -297
  484. ory_client/model/session_authentication_methods.py +0 -292
  485. ory_client/model/session_device.py +0 -282
  486. ory_client/model/set_active_project_in_console_body.py +0 -270
  487. ory_client/model/set_custom_domain_body.py +0 -280
  488. ory_client/model/set_event_stream_body.py +0 -287
  489. ory_client/model/set_project.py +0 -296
  490. ory_client/model/set_project_branding_theme_body.py +0 -290
  491. ory_client/model/settings_flow.py +0 -338
  492. ory_client/model/settings_flow_state.py +0 -291
  493. ory_client/model/source_position.py +0 -268
  494. ory_client/model/string_slice_json_format.py +0 -287
  495. ory_client/model/subject_set.py +0 -282
  496. ory_client/model/subscription.py +0 -350
  497. ory_client/model/successful_code_exchange_response.py +0 -280
  498. ory_client/model/successful_native_login.py +0 -280
  499. ory_client/model/successful_native_registration.py +0 -292
  500. ory_client/model/successful_project_update.py +0 -284
  501. ory_client/model/token_pagination.py +0 -274
  502. ory_client/model/token_pagination_headers.py +0 -268
  503. ory_client/model/token_pagination_request_parameters.py +0 -274
  504. ory_client/model/token_pagination_response_headers.py +0 -268
  505. ory_client/model/trust_o_auth2_jwt_grant_issuer.py +0 -302
  506. ory_client/model/trusted_o_auth2_jwt_grant_issuer.py +0 -298
  507. ory_client/model/trusted_o_auth2_jwt_grant_issuers.py +0 -292
  508. ory_client/model/trusted_o_auth2_jwt_grant_json_web_key.py +0 -268
  509. ory_client/model/ui_container.py +0 -294
  510. ory_client/model/ui_node.py +0 -322
  511. ory_client/model/ui_node_anchor_attributes.py +0 -294
  512. ory_client/model/ui_node_attributes.py +0 -440
  513. ory_client/model/ui_node_image_attributes.py +0 -294
  514. ory_client/model/ui_node_input_attributes.py +0 -340
  515. ory_client/model/ui_node_meta.py +0 -270
  516. ory_client/model/ui_node_script_attributes.py +0 -318
  517. ory_client/model/ui_node_text_attributes.py +0 -288
  518. ory_client/model/ui_nodes.py +0 -292
  519. ory_client/model/ui_text.py +0 -291
  520. ory_client/model/ui_texts.py +0 -292
  521. ory_client/model/update_identity_body.py +0 -304
  522. ory_client/model/update_login_flow_body.py +0 -411
  523. ory_client/model/update_login_flow_with_code_method.py +0 -292
  524. ory_client/model/update_login_flow_with_lookup_secret_method.py +0 -280
  525. ory_client/model/update_login_flow_with_oidc_method.py +0 -300
  526. ory_client/model/update_login_flow_with_password_method.py +0 -294
  527. ory_client/model/update_login_flow_with_totp_method.py +0 -284
  528. ory_client/model/update_login_flow_with_web_authn_method.py +0 -288
  529. ory_client/model/update_recovery_flow_body.py +0 -351
  530. ory_client/model/update_recovery_flow_with_code_method.py +0 -290
  531. ory_client/model/update_recovery_flow_with_link_method.py +0 -288
  532. ory_client/model/update_registration_flow_body.py +0 -389
  533. ory_client/model/update_registration_flow_with_code_method.py +0 -292
  534. ory_client/model/update_registration_flow_with_oidc_method.py +0 -300
  535. ory_client/model/update_registration_flow_with_password_method.py +0 -290
  536. ory_client/model/update_registration_flow_with_web_authn_method.py +0 -292
  537. ory_client/model/update_settings_flow_body.py +0 -419
  538. ory_client/model/update_settings_flow_with_lookup_method.py +0 -294
  539. ory_client/model/update_settings_flow_with_oidc_method.py +0 -294
  540. ory_client/model/update_settings_flow_with_password_method.py +0 -284
  541. ory_client/model/update_settings_flow_with_profile_method.py +0 -284
  542. ory_client/model/update_settings_flow_with_totp_method.py +0 -286
  543. ory_client/model/update_settings_flow_with_web_authn_method.py +0 -290
  544. ory_client/model/update_subscription_body.py +0 -284
  545. ory_client/model/update_verification_flow_body.py +0 -351
  546. ory_client/model/update_verification_flow_with_code_method.py +0 -290
  547. ory_client/model/update_verification_flow_with_link_method.py +0 -288
  548. ory_client/model/update_workspace_payload.py +0 -270
  549. ory_client/model/usage.py +0 -270
  550. ory_client/model/verifiable_credential_priming_response.py +0 -292
  551. ory_client/model/verifiable_credential_proof.py +0 -268
  552. ory_client/model/verifiable_credential_response.py +0 -268
  553. ory_client/model/verifiable_identity_address.py +0 -308
  554. ory_client/model/verification_flow.py +0 -318
  555. ory_client/model/verification_flow_state.py +0 -292
  556. ory_client/model/version.py +0 -264
  557. ory_client/model/warning.py +0 -268
  558. ory_client/model/workspace.py +0 -292
  559. ory_client/model/workspace_meta.py +0 -296
  560. ory_client/model/workspaces.py +0 -292
  561. ory_client/model_utils.py +0 -2059
  562. ory_client-1.9.0.dist-info/RECORD +0 -310
  563. {ory_client-1.9.0.dist-info → ory_client-1.11.6.dist-info}/LICENSE +0 -0
  564. {ory_client-1.9.0.dist-info → ory_client-1.11.6.dist-info}/WHEEL +0 -0
  565. {ory_client-1.9.0.dist-info → ory_client-1.11.6.dist-info}/top_level.txt +0 -0
ory_client/api/jwk_api.py CHANGED
@@ -1,1035 +1,1977 @@
1
+ # coding: utf-8
2
+
1
3
  """
2
4
  Ory APIs
3
5
 
4
- 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. # noqa: E501
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.
5
7
 
6
- The version of the OpenAPI document: v1.9.0
8
+ The version of the OpenAPI document: v1.11.6
7
9
  Contact: support@ory.sh
8
- Generated by: https://openapi-generator.tech
9
- """
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
11
 
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
11
14
 
12
- import re # noqa: F401
13
- import sys # noqa: F401
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
14
19
 
15
- from ory_client.api_client import ApiClient, Endpoint as _Endpoint
16
- from ory_client.model_utils import ( # noqa: F401
17
- check_allowed_values,
18
- check_validations,
19
- date,
20
- datetime,
21
- file_type,
22
- none_type,
23
- validate_and_convert_types
24
- )
25
- from ory_client.model.create_json_web_key_set import CreateJsonWebKeySet
26
- from ory_client.model.error_o_auth2 import ErrorOAuth2
27
- from ory_client.model.json_web_key import JsonWebKey
28
- from ory_client.model.json_web_key_set import JsonWebKeySet
20
+ from pydantic import Field, StrictStr
21
+ from typing import Optional
22
+ from typing_extensions import Annotated
23
+ from ory_client.models.create_json_web_key_set import CreateJsonWebKeySet
24
+ from ory_client.models.json_web_key import JsonWebKey
25
+ from ory_client.models.json_web_key_set import JsonWebKeySet
29
26
 
27
+ from ory_client.api_client import ApiClient, RequestSerialized
28
+ from ory_client.api_response import ApiResponse
29
+ from ory_client.rest import RESTResponseType
30
30
 
31
- class JwkApi(object):
31
+
32
+ class JwkApi:
32
33
  """NOTE: This class is auto generated by OpenAPI Generator
33
34
  Ref: https://openapi-generator.tech
34
35
 
35
36
  Do not edit the class manually.
36
37
  """
37
38
 
38
- def __init__(self, api_client=None):
39
+ def __init__(self, api_client=None) -> None:
39
40
  if api_client is None:
40
- api_client = ApiClient()
41
+ api_client = ApiClient.get_default()
41
42
  self.api_client = api_client
42
- self.create_json_web_key_set_endpoint = _Endpoint(
43
- settings={
44
- 'response_type': (JsonWebKeySet,),
45
- 'auth': [
46
- 'oryAccessToken'
47
- ],
48
- 'endpoint_path': '/admin/keys/{set}',
49
- 'operation_id': 'create_json_web_key_set',
50
- 'http_method': 'POST',
51
- 'servers': None,
52
- },
53
- params_map={
54
- 'all': [
55
- 'set',
56
- 'create_json_web_key_set',
57
- ],
58
- 'required': [
59
- 'set',
60
- 'create_json_web_key_set',
61
- ],
62
- 'nullable': [
63
- ],
64
- 'enum': [
65
- ],
66
- 'validation': [
67
- ]
68
- },
69
- root_map={
70
- 'validations': {
71
- },
72
- 'allowed_values': {
73
- },
74
- 'openapi_types': {
75
- 'set':
76
- (str,),
77
- 'create_json_web_key_set':
78
- (CreateJsonWebKeySet,),
79
- },
80
- 'attribute_map': {
81
- 'set': 'set',
82
- },
83
- 'location_map': {
84
- 'set': 'path',
85
- 'create_json_web_key_set': 'body',
86
- },
87
- 'collection_format_map': {
88
- }
89
- },
90
- headers_map={
91
- 'accept': [
92
- 'application/json'
93
- ],
94
- 'content_type': [
95
- 'application/json'
96
- ]
97
- },
98
- api_client=api_client
43
+
44
+
45
+ @validate_call
46
+ def create_json_web_key_set(
47
+ self,
48
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
49
+ create_json_web_key_set: CreateJsonWebKeySet,
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
+ ) -> JsonWebKeySet:
63
+ """Create JSON Web Key
64
+
65
+ This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
66
+
67
+ :param set: The JSON Web Key Set ID (required)
68
+ :type set: str
69
+ :param create_json_web_key_set: (required)
70
+ :type create_json_web_key_set: CreateJsonWebKeySet
71
+ :param _request_timeout: timeout setting for this request. If one
72
+ number provided, it will be total request
73
+ timeout. It can also be a pair (tuple) of
74
+ (connection, read) timeouts.
75
+ :type _request_timeout: int, tuple(int, int), optional
76
+ :param _request_auth: set to override the auth_settings for an a single
77
+ request; this effectively ignores the
78
+ authentication in the spec for a single request.
79
+ :type _request_auth: dict, optional
80
+ :param _content_type: force content-type for the request.
81
+ :type _content_type: str, Optional
82
+ :param _headers: set to override the headers for a single
83
+ request; this effectively ignores the headers
84
+ in the spec for a single request.
85
+ :type _headers: dict, optional
86
+ :param _host_index: set to override the host_index for a single
87
+ request; this effectively ignores the host_index
88
+ in the spec for a single request.
89
+ :type _host_index: int, optional
90
+ :return: Returns the result object.
91
+ """ # noqa: E501
92
+
93
+ _param = self._create_json_web_key_set_serialize(
94
+ set=set,
95
+ create_json_web_key_set=create_json_web_key_set,
96
+ _request_auth=_request_auth,
97
+ _content_type=_content_type,
98
+ _headers=_headers,
99
+ _host_index=_host_index
99
100
  )
100
- self.delete_json_web_key_endpoint = _Endpoint(
101
- settings={
102
- 'response_type': None,
103
- 'auth': [
104
- 'oryAccessToken'
105
- ],
106
- 'endpoint_path': '/admin/keys/{set}/{kid}',
107
- 'operation_id': 'delete_json_web_key',
108
- 'http_method': 'DELETE',
109
- 'servers': None,
110
- },
111
- params_map={
112
- 'all': [
113
- 'set',
114
- 'kid',
115
- ],
116
- 'required': [
117
- 'set',
118
- 'kid',
119
- ],
120
- 'nullable': [
121
- ],
122
- 'enum': [
123
- ],
124
- 'validation': [
125
- ]
126
- },
127
- root_map={
128
- 'validations': {
129
- },
130
- 'allowed_values': {
131
- },
132
- 'openapi_types': {
133
- 'set':
134
- (str,),
135
- 'kid':
136
- (str,),
137
- },
138
- 'attribute_map': {
139
- 'set': 'set',
140
- 'kid': 'kid',
141
- },
142
- 'location_map': {
143
- 'set': 'path',
144
- 'kid': 'path',
145
- },
146
- 'collection_format_map': {
147
- }
148
- },
149
- headers_map={
150
- 'accept': [
151
- 'application/json'
152
- ],
153
- 'content_type': [],
154
- },
155
- api_client=api_client
101
+
102
+ _response_types_map: Dict[str, Optional[str]] = {
103
+ '201': "JsonWebKeySet",
104
+ }
105
+ response_data = self.api_client.call_api(
106
+ *_param,
107
+ _request_timeout=_request_timeout
156
108
  )
157
- self.delete_json_web_key_set_endpoint = _Endpoint(
158
- settings={
159
- 'response_type': None,
160
- 'auth': [
161
- 'oryAccessToken'
162
- ],
163
- 'endpoint_path': '/admin/keys/{set}',
164
- 'operation_id': 'delete_json_web_key_set',
165
- 'http_method': 'DELETE',
166
- 'servers': None,
167
- },
168
- params_map={
169
- 'all': [
170
- 'set',
171
- ],
172
- 'required': [
173
- 'set',
174
- ],
175
- 'nullable': [
176
- ],
177
- 'enum': [
178
- ],
179
- 'validation': [
180
- ]
181
- },
182
- root_map={
183
- 'validations': {
184
- },
185
- 'allowed_values': {
186
- },
187
- 'openapi_types': {
188
- 'set':
189
- (str,),
190
- },
191
- 'attribute_map': {
192
- 'set': 'set',
193
- },
194
- 'location_map': {
195
- 'set': 'path',
196
- },
197
- 'collection_format_map': {
198
- }
199
- },
200
- headers_map={
201
- 'accept': [
202
- 'application/json'
203
- ],
204
- 'content_type': [],
205
- },
206
- api_client=api_client
109
+ response_data.read()
110
+ return self.api_client.response_deserialize(
111
+ response_data=response_data,
112
+ response_types_map=_response_types_map,
113
+ ).data
114
+
115
+
116
+ @validate_call
117
+ def create_json_web_key_set_with_http_info(
118
+ self,
119
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
120
+ create_json_web_key_set: CreateJsonWebKeySet,
121
+ _request_timeout: Union[
122
+ None,
123
+ Annotated[StrictFloat, Field(gt=0)],
124
+ Tuple[
125
+ Annotated[StrictFloat, Field(gt=0)],
126
+ Annotated[StrictFloat, Field(gt=0)]
127
+ ]
128
+ ] = None,
129
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
130
+ _content_type: Optional[StrictStr] = None,
131
+ _headers: Optional[Dict[StrictStr, Any]] = None,
132
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
133
+ ) -> ApiResponse[JsonWebKeySet]:
134
+ """Create JSON Web Key
135
+
136
+ This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
137
+
138
+ :param set: The JSON Web Key Set ID (required)
139
+ :type set: str
140
+ :param create_json_web_key_set: (required)
141
+ :type create_json_web_key_set: CreateJsonWebKeySet
142
+ :param _request_timeout: timeout setting for this request. If one
143
+ number provided, it will be total request
144
+ timeout. It can also be a pair (tuple) of
145
+ (connection, read) timeouts.
146
+ :type _request_timeout: int, tuple(int, int), optional
147
+ :param _request_auth: set to override the auth_settings for an a single
148
+ request; this effectively ignores the
149
+ authentication in the spec for a single request.
150
+ :type _request_auth: dict, optional
151
+ :param _content_type: force content-type for the request.
152
+ :type _content_type: str, Optional
153
+ :param _headers: set to override the headers for a single
154
+ request; this effectively ignores the headers
155
+ in the spec for a single request.
156
+ :type _headers: dict, optional
157
+ :param _host_index: set to override the host_index for a single
158
+ request; this effectively ignores the host_index
159
+ in the spec for a single request.
160
+ :type _host_index: int, optional
161
+ :return: Returns the result object.
162
+ """ # noqa: E501
163
+
164
+ _param = self._create_json_web_key_set_serialize(
165
+ set=set,
166
+ create_json_web_key_set=create_json_web_key_set,
167
+ _request_auth=_request_auth,
168
+ _content_type=_content_type,
169
+ _headers=_headers,
170
+ _host_index=_host_index
207
171
  )
208
- self.get_json_web_key_endpoint = _Endpoint(
209
- settings={
210
- 'response_type': (JsonWebKeySet,),
211
- 'auth': [
212
- 'oryAccessToken'
213
- ],
214
- 'endpoint_path': '/admin/keys/{set}/{kid}',
215
- 'operation_id': 'get_json_web_key',
216
- 'http_method': 'GET',
217
- 'servers': None,
218
- },
219
- params_map={
220
- 'all': [
221
- 'set',
222
- 'kid',
223
- ],
224
- 'required': [
225
- 'set',
226
- 'kid',
227
- ],
228
- 'nullable': [
229
- ],
230
- 'enum': [
231
- ],
232
- 'validation': [
233
- ]
234
- },
235
- root_map={
236
- 'validations': {
237
- },
238
- 'allowed_values': {
239
- },
240
- 'openapi_types': {
241
- 'set':
242
- (str,),
243
- 'kid':
244
- (str,),
245
- },
246
- 'attribute_map': {
247
- 'set': 'set',
248
- 'kid': 'kid',
249
- },
250
- 'location_map': {
251
- 'set': 'path',
252
- 'kid': 'path',
253
- },
254
- 'collection_format_map': {
255
- }
256
- },
257
- headers_map={
258
- 'accept': [
259
- 'application/json'
260
- ],
261
- 'content_type': [],
262
- },
263
- api_client=api_client
172
+
173
+ _response_types_map: Dict[str, Optional[str]] = {
174
+ '201': "JsonWebKeySet",
175
+ }
176
+ response_data = self.api_client.call_api(
177
+ *_param,
178
+ _request_timeout=_request_timeout
264
179
  )
265
- self.get_json_web_key_set_endpoint = _Endpoint(
266
- settings={
267
- 'response_type': (JsonWebKeySet,),
268
- 'auth': [
269
- 'oryAccessToken'
270
- ],
271
- 'endpoint_path': '/admin/keys/{set}',
272
- 'operation_id': 'get_json_web_key_set',
273
- 'http_method': 'GET',
274
- 'servers': None,
275
- },
276
- params_map={
277
- 'all': [
278
- 'set',
279
- ],
280
- 'required': [
281
- 'set',
282
- ],
283
- 'nullable': [
284
- ],
285
- 'enum': [
286
- ],
287
- 'validation': [
288
- ]
289
- },
290
- root_map={
291
- 'validations': {
292
- },
293
- 'allowed_values': {
294
- },
295
- 'openapi_types': {
296
- 'set':
297
- (str,),
298
- },
299
- 'attribute_map': {
300
- 'set': 'set',
301
- },
302
- 'location_map': {
303
- 'set': 'path',
304
- },
305
- 'collection_format_map': {
306
- }
307
- },
308
- headers_map={
309
- 'accept': [
310
- 'application/json'
311
- ],
312
- 'content_type': [],
313
- },
314
- api_client=api_client
180
+ response_data.read()
181
+ return self.api_client.response_deserialize(
182
+ response_data=response_data,
183
+ response_types_map=_response_types_map,
315
184
  )
316
- self.set_json_web_key_endpoint = _Endpoint(
317
- settings={
318
- 'response_type': (JsonWebKey,),
319
- 'auth': [
320
- 'oryAccessToken'
321
- ],
322
- 'endpoint_path': '/admin/keys/{set}/{kid}',
323
- 'operation_id': 'set_json_web_key',
324
- 'http_method': 'PUT',
325
- 'servers': None,
326
- },
327
- params_map={
328
- 'all': [
329
- 'set',
330
- 'kid',
331
- 'json_web_key',
332
- ],
333
- 'required': [
334
- 'set',
335
- 'kid',
336
- ],
337
- 'nullable': [
338
- ],
339
- 'enum': [
340
- ],
341
- 'validation': [
342
- ]
343
- },
344
- root_map={
345
- 'validations': {
346
- },
347
- 'allowed_values': {
348
- },
349
- 'openapi_types': {
350
- 'set':
351
- (str,),
352
- 'kid':
353
- (str,),
354
- 'json_web_key':
355
- (JsonWebKey,),
356
- },
357
- 'attribute_map': {
358
- 'set': 'set',
359
- 'kid': 'kid',
360
- },
361
- 'location_map': {
362
- 'set': 'path',
363
- 'kid': 'path',
364
- 'json_web_key': 'body',
365
- },
366
- 'collection_format_map': {
367
- }
368
- },
369
- headers_map={
370
- 'accept': [
371
- 'application/json'
372
- ],
373
- 'content_type': [
374
- 'application/json'
375
- ]
376
- },
377
- api_client=api_client
185
+
186
+
187
+ @validate_call
188
+ def create_json_web_key_set_without_preload_content(
189
+ self,
190
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
191
+ create_json_web_key_set: CreateJsonWebKeySet,
192
+ _request_timeout: Union[
193
+ None,
194
+ Annotated[StrictFloat, Field(gt=0)],
195
+ Tuple[
196
+ Annotated[StrictFloat, Field(gt=0)],
197
+ Annotated[StrictFloat, Field(gt=0)]
198
+ ]
199
+ ] = None,
200
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
201
+ _content_type: Optional[StrictStr] = None,
202
+ _headers: Optional[Dict[StrictStr, Any]] = None,
203
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
204
+ ) -> RESTResponseType:
205
+ """Create JSON Web Key
206
+
207
+ This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
208
+
209
+ :param set: The JSON Web Key Set ID (required)
210
+ :type set: str
211
+ :param create_json_web_key_set: (required)
212
+ :type create_json_web_key_set: CreateJsonWebKeySet
213
+ :param _request_timeout: timeout setting for this request. If one
214
+ number provided, it will be total request
215
+ timeout. It can also be a pair (tuple) of
216
+ (connection, read) timeouts.
217
+ :type _request_timeout: int, tuple(int, int), optional
218
+ :param _request_auth: set to override the auth_settings for an a single
219
+ request; this effectively ignores the
220
+ authentication in the spec for a single request.
221
+ :type _request_auth: dict, optional
222
+ :param _content_type: force content-type for the request.
223
+ :type _content_type: str, Optional
224
+ :param _headers: set to override the headers for a single
225
+ request; this effectively ignores the headers
226
+ in the spec for a single request.
227
+ :type _headers: dict, optional
228
+ :param _host_index: set to override the host_index for a single
229
+ request; this effectively ignores the host_index
230
+ in the spec for a single request.
231
+ :type _host_index: int, optional
232
+ :return: Returns the result object.
233
+ """ # noqa: E501
234
+
235
+ _param = self._create_json_web_key_set_serialize(
236
+ set=set,
237
+ create_json_web_key_set=create_json_web_key_set,
238
+ _request_auth=_request_auth,
239
+ _content_type=_content_type,
240
+ _headers=_headers,
241
+ _host_index=_host_index
378
242
  )
379
- self.set_json_web_key_set_endpoint = _Endpoint(
380
- settings={
381
- 'response_type': (JsonWebKeySet,),
382
- 'auth': [
383
- 'oryAccessToken'
384
- ],
385
- 'endpoint_path': '/admin/keys/{set}',
386
- 'operation_id': 'set_json_web_key_set',
387
- 'http_method': 'PUT',
388
- 'servers': None,
389
- },
390
- params_map={
391
- 'all': [
392
- 'set',
393
- 'json_web_key_set',
394
- ],
395
- 'required': [
396
- 'set',
397
- ],
398
- 'nullable': [
399
- ],
400
- 'enum': [
401
- ],
402
- 'validation': [
403
- ]
404
- },
405
- root_map={
406
- 'validations': {
407
- },
408
- 'allowed_values': {
409
- },
410
- 'openapi_types': {
411
- 'set':
412
- (str,),
413
- 'json_web_key_set':
414
- (JsonWebKeySet,),
415
- },
416
- 'attribute_map': {
417
- 'set': 'set',
418
- },
419
- 'location_map': {
420
- 'set': 'path',
421
- 'json_web_key_set': 'body',
422
- },
423
- 'collection_format_map': {
424
- }
425
- },
426
- headers_map={
427
- 'accept': [
428
- 'application/json'
429
- ],
430
- 'content_type': [
431
- 'application/json'
432
- ]
433
- },
434
- api_client=api_client
243
+
244
+ _response_types_map: Dict[str, Optional[str]] = {
245
+ '201': "JsonWebKeySet",
246
+ }
247
+ response_data = self.api_client.call_api(
248
+ *_param,
249
+ _request_timeout=_request_timeout
435
250
  )
251
+ return response_data.response
436
252
 
437
- def create_json_web_key_set(
253
+
254
+ def _create_json_web_key_set_serialize(
438
255
  self,
439
256
  set,
440
257
  create_json_web_key_set,
441
- **kwargs
442
- ):
443
- """Create JSON Web Key # noqa: E501
444
-
445
- This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. # noqa: E501
446
- This method makes a synchronous HTTP request by default. To make an
447
- asynchronous HTTP request, please pass async_req=True
448
-
449
- >>> thread = api.create_json_web_key_set(set, create_json_web_key_set, async_req=True)
450
- >>> result = thread.get()
451
-
452
- Args:
453
- set (str): The JSON Web Key Set ID
454
- create_json_web_key_set (CreateJsonWebKeySet):
455
-
456
- Keyword Args:
457
- _return_http_data_only (bool): response data without head status
458
- code and headers. Default is True.
459
- _preload_content (bool): if False, the urllib3.HTTPResponse object
460
- will be returned without reading/decoding response data.
461
- Default is True.
462
- _request_timeout (int/float/tuple): timeout setting for this request. If
463
- one number provided, it will be total request timeout. It can also
464
- be a pair (tuple) of (connection, read) timeouts.
465
- Default is None.
466
- _check_input_type (bool): specifies if type checking
467
- should be done one the data sent to the server.
468
- Default is True.
469
- _check_return_type (bool): specifies if type checking
470
- should be done one the data received from the server.
471
- Default is True.
472
- _spec_property_naming (bool): True if the variable names in the input data
473
- are serialized names, as specified in the OpenAPI document.
474
- False if the variable names in the input data
475
- are pythonic names, e.g. snake case (default)
476
- _content_type (str/None): force body content-type.
477
- Default is None and content-type will be predicted by allowed
478
- content-types and body.
479
- _host_index (int/None): specifies the index of the server
480
- that we want to use.
481
- Default is read from the configuration.
482
- _request_auths (list): set to override the auth_settings for an a single
483
- request; this effectively ignores the authentication
484
- in the spec for a single request.
485
- Default is None
486
- async_req (bool): execute request asynchronously
487
-
488
- Returns:
489
- JsonWebKeySet
490
- If the method is called asynchronously, returns the request
491
- thread.
492
- """
493
- kwargs['async_req'] = kwargs.get(
494
- 'async_req', False
258
+ _request_auth,
259
+ _content_type,
260
+ _headers,
261
+ _host_index,
262
+ ) -> RequestSerialized:
263
+
264
+ _host = None
265
+
266
+ _collection_formats: Dict[str, str] = {
267
+ }
268
+
269
+ _path_params: Dict[str, str] = {}
270
+ _query_params: List[Tuple[str, str]] = []
271
+ _header_params: Dict[str, Optional[str]] = _headers or {}
272
+ _form_params: List[Tuple[str, str]] = []
273
+ _files: Dict[str, str] = {}
274
+ _body_params: Optional[bytes] = None
275
+
276
+ # process the path parameters
277
+ if set is not None:
278
+ _path_params['set'] = set
279
+ # process the query parameters
280
+ # process the header parameters
281
+ # process the form parameters
282
+ # process the body parameter
283
+ if create_json_web_key_set is not None:
284
+ _body_params = create_json_web_key_set
285
+
286
+
287
+ # set the HTTP header `Accept`
288
+ _header_params['Accept'] = self.api_client.select_header_accept(
289
+ [
290
+ 'application/json'
291
+ ]
495
292
  )
496
- kwargs['_return_http_data_only'] = kwargs.get(
497
- '_return_http_data_only', True
293
+
294
+ # set the HTTP header `Content-Type`
295
+ if _content_type:
296
+ _header_params['Content-Type'] = _content_type
297
+ else:
298
+ _default_content_type = (
299
+ self.api_client.select_header_content_type(
300
+ [
301
+ 'application/json'
302
+ ]
303
+ )
304
+ )
305
+ if _default_content_type is not None:
306
+ _header_params['Content-Type'] = _default_content_type
307
+
308
+ # authentication setting
309
+ _auth_settings: List[str] = [
310
+ 'oryAccessToken'
311
+ ]
312
+
313
+ return self.api_client.param_serialize(
314
+ method='POST',
315
+ resource_path='/admin/keys/{set}',
316
+ path_params=_path_params,
317
+ query_params=_query_params,
318
+ header_params=_header_params,
319
+ body=_body_params,
320
+ post_params=_form_params,
321
+ files=_files,
322
+ auth_settings=_auth_settings,
323
+ collection_formats=_collection_formats,
324
+ _host=_host,
325
+ _request_auth=_request_auth
498
326
  )
499
- kwargs['_preload_content'] = kwargs.get(
500
- '_preload_content', True
327
+
328
+
329
+
330
+
331
+ @validate_call
332
+ def delete_json_web_key(
333
+ self,
334
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
335
+ kid: Annotated[StrictStr, Field(description="The JSON Web Key ID (kid)")],
336
+ _request_timeout: Union[
337
+ None,
338
+ Annotated[StrictFloat, Field(gt=0)],
339
+ Tuple[
340
+ Annotated[StrictFloat, Field(gt=0)],
341
+ Annotated[StrictFloat, Field(gt=0)]
342
+ ]
343
+ ] = None,
344
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
345
+ _content_type: Optional[StrictStr] = None,
346
+ _headers: Optional[Dict[StrictStr, Any]] = None,
347
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
348
+ ) -> None:
349
+ """Delete JSON Web Key
350
+
351
+ Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
352
+
353
+ :param set: The JSON Web Key Set (required)
354
+ :type set: str
355
+ :param kid: The JSON Web Key ID (kid) (required)
356
+ :type kid: str
357
+ :param _request_timeout: timeout setting for this request. If one
358
+ number provided, it will be total request
359
+ timeout. It can also be a pair (tuple) of
360
+ (connection, read) timeouts.
361
+ :type _request_timeout: int, tuple(int, int), optional
362
+ :param _request_auth: set to override the auth_settings for an a single
363
+ request; this effectively ignores the
364
+ authentication in the spec for a single request.
365
+ :type _request_auth: dict, optional
366
+ :param _content_type: force content-type for the request.
367
+ :type _content_type: str, Optional
368
+ :param _headers: set to override the headers for a single
369
+ request; this effectively ignores the headers
370
+ in the spec for a single request.
371
+ :type _headers: dict, optional
372
+ :param _host_index: set to override the host_index for a single
373
+ request; this effectively ignores the host_index
374
+ in the spec for a single request.
375
+ :type _host_index: int, optional
376
+ :return: Returns the result object.
377
+ """ # noqa: E501
378
+
379
+ _param = self._delete_json_web_key_serialize(
380
+ set=set,
381
+ kid=kid,
382
+ _request_auth=_request_auth,
383
+ _content_type=_content_type,
384
+ _headers=_headers,
385
+ _host_index=_host_index
501
386
  )
502
- kwargs['_request_timeout'] = kwargs.get(
503
- '_request_timeout', None
387
+
388
+ _response_types_map: Dict[str, Optional[str]] = {
389
+ '204': None,
390
+ }
391
+ response_data = self.api_client.call_api(
392
+ *_param,
393
+ _request_timeout=_request_timeout
504
394
  )
505
- kwargs['_check_input_type'] = kwargs.get(
506
- '_check_input_type', True
395
+ response_data.read()
396
+ return self.api_client.response_deserialize(
397
+ response_data=response_data,
398
+ response_types_map=_response_types_map,
399
+ ).data
400
+
401
+
402
+ @validate_call
403
+ def delete_json_web_key_with_http_info(
404
+ self,
405
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
406
+ kid: Annotated[StrictStr, Field(description="The JSON Web Key ID (kid)")],
407
+ _request_timeout: Union[
408
+ None,
409
+ Annotated[StrictFloat, Field(gt=0)],
410
+ Tuple[
411
+ Annotated[StrictFloat, Field(gt=0)],
412
+ Annotated[StrictFloat, Field(gt=0)]
413
+ ]
414
+ ] = None,
415
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
416
+ _content_type: Optional[StrictStr] = None,
417
+ _headers: Optional[Dict[StrictStr, Any]] = None,
418
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
419
+ ) -> ApiResponse[None]:
420
+ """Delete JSON Web Key
421
+
422
+ Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
423
+
424
+ :param set: The JSON Web Key Set (required)
425
+ :type set: str
426
+ :param kid: The JSON Web Key ID (kid) (required)
427
+ :type kid: str
428
+ :param _request_timeout: timeout setting for this request. If one
429
+ number provided, it will be total request
430
+ timeout. It can also be a pair (tuple) of
431
+ (connection, read) timeouts.
432
+ :type _request_timeout: int, tuple(int, int), optional
433
+ :param _request_auth: set to override the auth_settings for an a single
434
+ request; this effectively ignores the
435
+ authentication in the spec for a single request.
436
+ :type _request_auth: dict, optional
437
+ :param _content_type: force content-type for the request.
438
+ :type _content_type: str, Optional
439
+ :param _headers: set to override the headers for a single
440
+ request; this effectively ignores the headers
441
+ in the spec for a single request.
442
+ :type _headers: dict, optional
443
+ :param _host_index: set to override the host_index for a single
444
+ request; this effectively ignores the host_index
445
+ in the spec for a single request.
446
+ :type _host_index: int, optional
447
+ :return: Returns the result object.
448
+ """ # noqa: E501
449
+
450
+ _param = self._delete_json_web_key_serialize(
451
+ set=set,
452
+ kid=kid,
453
+ _request_auth=_request_auth,
454
+ _content_type=_content_type,
455
+ _headers=_headers,
456
+ _host_index=_host_index
507
457
  )
508
- kwargs['_check_return_type'] = kwargs.get(
509
- '_check_return_type', True
458
+
459
+ _response_types_map: Dict[str, Optional[str]] = {
460
+ '204': None,
461
+ }
462
+ response_data = self.api_client.call_api(
463
+ *_param,
464
+ _request_timeout=_request_timeout
510
465
  )
511
- kwargs['_spec_property_naming'] = kwargs.get(
512
- '_spec_property_naming', False
466
+ response_data.read()
467
+ return self.api_client.response_deserialize(
468
+ response_data=response_data,
469
+ response_types_map=_response_types_map,
513
470
  )
514
- kwargs['_content_type'] = kwargs.get(
515
- '_content_type')
516
- kwargs['_host_index'] = kwargs.get('_host_index')
517
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
518
- kwargs['set'] = \
519
- set
520
- kwargs['create_json_web_key_set'] = \
521
- create_json_web_key_set
522
- return self.create_json_web_key_set_endpoint.call_with_http_info(**kwargs)
523
471
 
524
- def delete_json_web_key(
472
+
473
+ @validate_call
474
+ def delete_json_web_key_without_preload_content(
475
+ self,
476
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
477
+ kid: Annotated[StrictStr, Field(description="The JSON Web Key ID (kid)")],
478
+ _request_timeout: Union[
479
+ None,
480
+ Annotated[StrictFloat, Field(gt=0)],
481
+ Tuple[
482
+ Annotated[StrictFloat, Field(gt=0)],
483
+ Annotated[StrictFloat, Field(gt=0)]
484
+ ]
485
+ ] = None,
486
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
487
+ _content_type: Optional[StrictStr] = None,
488
+ _headers: Optional[Dict[StrictStr, Any]] = None,
489
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
490
+ ) -> RESTResponseType:
491
+ """Delete JSON Web Key
492
+
493
+ Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
494
+
495
+ :param set: The JSON Web Key Set (required)
496
+ :type set: str
497
+ :param kid: The JSON Web Key ID (kid) (required)
498
+ :type kid: str
499
+ :param _request_timeout: timeout setting for this request. If one
500
+ number provided, it will be total request
501
+ timeout. It can also be a pair (tuple) of
502
+ (connection, read) timeouts.
503
+ :type _request_timeout: int, tuple(int, int), optional
504
+ :param _request_auth: set to override the auth_settings for an a single
505
+ request; this effectively ignores the
506
+ authentication in the spec for a single request.
507
+ :type _request_auth: dict, optional
508
+ :param _content_type: force content-type for the request.
509
+ :type _content_type: str, Optional
510
+ :param _headers: set to override the headers for a single
511
+ request; this effectively ignores the headers
512
+ in the spec for a single request.
513
+ :type _headers: dict, optional
514
+ :param _host_index: set to override the host_index for a single
515
+ request; this effectively ignores the host_index
516
+ in the spec for a single request.
517
+ :type _host_index: int, optional
518
+ :return: Returns the result object.
519
+ """ # noqa: E501
520
+
521
+ _param = self._delete_json_web_key_serialize(
522
+ set=set,
523
+ kid=kid,
524
+ _request_auth=_request_auth,
525
+ _content_type=_content_type,
526
+ _headers=_headers,
527
+ _host_index=_host_index
528
+ )
529
+
530
+ _response_types_map: Dict[str, Optional[str]] = {
531
+ '204': None,
532
+ }
533
+ response_data = self.api_client.call_api(
534
+ *_param,
535
+ _request_timeout=_request_timeout
536
+ )
537
+ return response_data.response
538
+
539
+
540
+ def _delete_json_web_key_serialize(
525
541
  self,
526
542
  set,
527
543
  kid,
528
- **kwargs
529
- ):
530
- """Delete JSON Web Key # noqa: E501
531
-
532
- Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. # noqa: E501
533
- This method makes a synchronous HTTP request by default. To make an
534
- asynchronous HTTP request, please pass async_req=True
535
-
536
- >>> thread = api.delete_json_web_key(set, kid, async_req=True)
537
- >>> result = thread.get()
538
-
539
- Args:
540
- set (str): The JSON Web Key Set
541
- kid (str): The JSON Web Key ID (kid)
542
-
543
- Keyword Args:
544
- _return_http_data_only (bool): response data without head status
545
- code and headers. Default is True.
546
- _preload_content (bool): if False, the urllib3.HTTPResponse object
547
- will be returned without reading/decoding response data.
548
- Default is True.
549
- _request_timeout (int/float/tuple): timeout setting for this request. If
550
- one number provided, it will be total request timeout. It can also
551
- be a pair (tuple) of (connection, read) timeouts.
552
- Default is None.
553
- _check_input_type (bool): specifies if type checking
554
- should be done one the data sent to the server.
555
- Default is True.
556
- _check_return_type (bool): specifies if type checking
557
- should be done one the data received from the server.
558
- Default is True.
559
- _spec_property_naming (bool): True if the variable names in the input data
560
- are serialized names, as specified in the OpenAPI document.
561
- False if the variable names in the input data
562
- are pythonic names, e.g. snake case (default)
563
- _content_type (str/None): force body content-type.
564
- Default is None and content-type will be predicted by allowed
565
- content-types and body.
566
- _host_index (int/None): specifies the index of the server
567
- that we want to use.
568
- Default is read from the configuration.
569
- _request_auths (list): set to override the auth_settings for an a single
570
- request; this effectively ignores the authentication
571
- in the spec for a single request.
572
- Default is None
573
- async_req (bool): execute request asynchronously
574
-
575
- Returns:
576
- None
577
- If the method is called asynchronously, returns the request
578
- thread.
579
- """
580
- kwargs['async_req'] = kwargs.get(
581
- 'async_req', False
544
+ _request_auth,
545
+ _content_type,
546
+ _headers,
547
+ _host_index,
548
+ ) -> RequestSerialized:
549
+
550
+ _host = None
551
+
552
+ _collection_formats: Dict[str, str] = {
553
+ }
554
+
555
+ _path_params: Dict[str, str] = {}
556
+ _query_params: List[Tuple[str, str]] = []
557
+ _header_params: Dict[str, Optional[str]] = _headers or {}
558
+ _form_params: List[Tuple[str, str]] = []
559
+ _files: Dict[str, str] = {}
560
+ _body_params: Optional[bytes] = None
561
+
562
+ # process the path parameters
563
+ if set is not None:
564
+ _path_params['set'] = set
565
+ if kid is not None:
566
+ _path_params['kid'] = kid
567
+ # process the query parameters
568
+ # process the header parameters
569
+ # process the form parameters
570
+ # process the body parameter
571
+
572
+
573
+ # set the HTTP header `Accept`
574
+ _header_params['Accept'] = self.api_client.select_header_accept(
575
+ [
576
+ 'application/json'
577
+ ]
582
578
  )
583
- kwargs['_return_http_data_only'] = kwargs.get(
584
- '_return_http_data_only', True
579
+
580
+
581
+ # authentication setting
582
+ _auth_settings: List[str] = [
583
+ 'oryAccessToken'
584
+ ]
585
+
586
+ return self.api_client.param_serialize(
587
+ method='DELETE',
588
+ resource_path='/admin/keys/{set}/{kid}',
589
+ path_params=_path_params,
590
+ query_params=_query_params,
591
+ header_params=_header_params,
592
+ body=_body_params,
593
+ post_params=_form_params,
594
+ files=_files,
595
+ auth_settings=_auth_settings,
596
+ collection_formats=_collection_formats,
597
+ _host=_host,
598
+ _request_auth=_request_auth
585
599
  )
586
- kwargs['_preload_content'] = kwargs.get(
587
- '_preload_content', True
600
+
601
+
602
+
603
+
604
+ @validate_call
605
+ def delete_json_web_key_set(
606
+ self,
607
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
608
+ _request_timeout: Union[
609
+ None,
610
+ Annotated[StrictFloat, Field(gt=0)],
611
+ Tuple[
612
+ Annotated[StrictFloat, Field(gt=0)],
613
+ Annotated[StrictFloat, Field(gt=0)]
614
+ ]
615
+ ] = None,
616
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
617
+ _content_type: Optional[StrictStr] = None,
618
+ _headers: Optional[Dict[StrictStr, Any]] = None,
619
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
620
+ ) -> None:
621
+ """Delete JSON Web Key Set
622
+
623
+ Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
624
+
625
+ :param set: The JSON Web Key Set (required)
626
+ :type set: str
627
+ :param _request_timeout: timeout setting for this request. If one
628
+ number provided, it will be total request
629
+ timeout. It can also be a pair (tuple) of
630
+ (connection, read) timeouts.
631
+ :type _request_timeout: int, tuple(int, int), optional
632
+ :param _request_auth: set to override the auth_settings for an a single
633
+ request; this effectively ignores the
634
+ authentication in the spec for a single request.
635
+ :type _request_auth: dict, optional
636
+ :param _content_type: force content-type for the request.
637
+ :type _content_type: str, Optional
638
+ :param _headers: set to override the headers for a single
639
+ request; this effectively ignores the headers
640
+ in the spec for a single request.
641
+ :type _headers: dict, optional
642
+ :param _host_index: set to override the host_index for a single
643
+ request; this effectively ignores the host_index
644
+ in the spec for a single request.
645
+ :type _host_index: int, optional
646
+ :return: Returns the result object.
647
+ """ # noqa: E501
648
+
649
+ _param = self._delete_json_web_key_set_serialize(
650
+ set=set,
651
+ _request_auth=_request_auth,
652
+ _content_type=_content_type,
653
+ _headers=_headers,
654
+ _host_index=_host_index
588
655
  )
589
- kwargs['_request_timeout'] = kwargs.get(
590
- '_request_timeout', None
656
+
657
+ _response_types_map: Dict[str, Optional[str]] = {
658
+ '204': None,
659
+ }
660
+ response_data = self.api_client.call_api(
661
+ *_param,
662
+ _request_timeout=_request_timeout
663
+ )
664
+ response_data.read()
665
+ return self.api_client.response_deserialize(
666
+ response_data=response_data,
667
+ response_types_map=_response_types_map,
668
+ ).data
669
+
670
+
671
+ @validate_call
672
+ def delete_json_web_key_set_with_http_info(
673
+ self,
674
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
675
+ _request_timeout: Union[
676
+ None,
677
+ Annotated[StrictFloat, Field(gt=0)],
678
+ Tuple[
679
+ Annotated[StrictFloat, Field(gt=0)],
680
+ Annotated[StrictFloat, Field(gt=0)]
681
+ ]
682
+ ] = None,
683
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
684
+ _content_type: Optional[StrictStr] = None,
685
+ _headers: Optional[Dict[StrictStr, Any]] = None,
686
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
687
+ ) -> ApiResponse[None]:
688
+ """Delete JSON Web Key Set
689
+
690
+ Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
691
+
692
+ :param set: The JSON Web Key Set (required)
693
+ :type set: str
694
+ :param _request_timeout: timeout setting for this request. If one
695
+ number provided, it will be total request
696
+ timeout. It can also be a pair (tuple) of
697
+ (connection, read) timeouts.
698
+ :type _request_timeout: int, tuple(int, int), optional
699
+ :param _request_auth: set to override the auth_settings for an a single
700
+ request; this effectively ignores the
701
+ authentication in the spec for a single request.
702
+ :type _request_auth: dict, optional
703
+ :param _content_type: force content-type for the request.
704
+ :type _content_type: str, Optional
705
+ :param _headers: set to override the headers for a single
706
+ request; this effectively ignores the headers
707
+ in the spec for a single request.
708
+ :type _headers: dict, optional
709
+ :param _host_index: set to override the host_index for a single
710
+ request; this effectively ignores the host_index
711
+ in the spec for a single request.
712
+ :type _host_index: int, optional
713
+ :return: Returns the result object.
714
+ """ # noqa: E501
715
+
716
+ _param = self._delete_json_web_key_set_serialize(
717
+ set=set,
718
+ _request_auth=_request_auth,
719
+ _content_type=_content_type,
720
+ _headers=_headers,
721
+ _host_index=_host_index
591
722
  )
592
- kwargs['_check_input_type'] = kwargs.get(
593
- '_check_input_type', True
723
+
724
+ _response_types_map: Dict[str, Optional[str]] = {
725
+ '204': None,
726
+ }
727
+ response_data = self.api_client.call_api(
728
+ *_param,
729
+ _request_timeout=_request_timeout
594
730
  )
595
- kwargs['_check_return_type'] = kwargs.get(
596
- '_check_return_type', True
731
+ response_data.read()
732
+ return self.api_client.response_deserialize(
733
+ response_data=response_data,
734
+ response_types_map=_response_types_map,
597
735
  )
598
- kwargs['_spec_property_naming'] = kwargs.get(
599
- '_spec_property_naming', False
736
+
737
+
738
+ @validate_call
739
+ def delete_json_web_key_set_without_preload_content(
740
+ self,
741
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set")],
742
+ _request_timeout: Union[
743
+ None,
744
+ Annotated[StrictFloat, Field(gt=0)],
745
+ Tuple[
746
+ Annotated[StrictFloat, Field(gt=0)],
747
+ Annotated[StrictFloat, Field(gt=0)]
748
+ ]
749
+ ] = None,
750
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
751
+ _content_type: Optional[StrictStr] = None,
752
+ _headers: Optional[Dict[StrictStr, Any]] = None,
753
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
754
+ ) -> RESTResponseType:
755
+ """Delete JSON Web Key Set
756
+
757
+ Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
758
+
759
+ :param set: The JSON Web Key Set (required)
760
+ :type set: str
761
+ :param _request_timeout: timeout setting for this request. If one
762
+ number provided, it will be total request
763
+ timeout. It can also be a pair (tuple) of
764
+ (connection, read) timeouts.
765
+ :type _request_timeout: int, tuple(int, int), optional
766
+ :param _request_auth: set to override the auth_settings for an a single
767
+ request; this effectively ignores the
768
+ authentication in the spec for a single request.
769
+ :type _request_auth: dict, optional
770
+ :param _content_type: force content-type for the request.
771
+ :type _content_type: str, Optional
772
+ :param _headers: set to override the headers for a single
773
+ request; this effectively ignores the headers
774
+ in the spec for a single request.
775
+ :type _headers: dict, optional
776
+ :param _host_index: set to override the host_index for a single
777
+ request; this effectively ignores the host_index
778
+ in the spec for a single request.
779
+ :type _host_index: int, optional
780
+ :return: Returns the result object.
781
+ """ # noqa: E501
782
+
783
+ _param = self._delete_json_web_key_set_serialize(
784
+ set=set,
785
+ _request_auth=_request_auth,
786
+ _content_type=_content_type,
787
+ _headers=_headers,
788
+ _host_index=_host_index
600
789
  )
601
- kwargs['_content_type'] = kwargs.get(
602
- '_content_type')
603
- kwargs['_host_index'] = kwargs.get('_host_index')
604
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
605
- kwargs['set'] = \
606
- set
607
- kwargs['kid'] = \
608
- kid
609
- return self.delete_json_web_key_endpoint.call_with_http_info(**kwargs)
610
790
 
611
- def delete_json_web_key_set(
791
+ _response_types_map: Dict[str, Optional[str]] = {
792
+ '204': None,
793
+ }
794
+ response_data = self.api_client.call_api(
795
+ *_param,
796
+ _request_timeout=_request_timeout
797
+ )
798
+ return response_data.response
799
+
800
+
801
+ def _delete_json_web_key_set_serialize(
612
802
  self,
613
803
  set,
614
- **kwargs
615
- ):
616
- """Delete JSON Web Key Set # noqa: E501
617
-
618
- Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. # noqa: E501
619
- This method makes a synchronous HTTP request by default. To make an
620
- asynchronous HTTP request, please pass async_req=True
621
-
622
- >>> thread = api.delete_json_web_key_set(set, async_req=True)
623
- >>> result = thread.get()
624
-
625
- Args:
626
- set (str): The JSON Web Key Set
627
-
628
- Keyword Args:
629
- _return_http_data_only (bool): response data without head status
630
- code and headers. Default is True.
631
- _preload_content (bool): if False, the urllib3.HTTPResponse object
632
- will be returned without reading/decoding response data.
633
- Default is True.
634
- _request_timeout (int/float/tuple): timeout setting for this request. If
635
- one number provided, it will be total request timeout. It can also
636
- be a pair (tuple) of (connection, read) timeouts.
637
- Default is None.
638
- _check_input_type (bool): specifies if type checking
639
- should be done one the data sent to the server.
640
- Default is True.
641
- _check_return_type (bool): specifies if type checking
642
- should be done one the data received from the server.
643
- Default is True.
644
- _spec_property_naming (bool): True if the variable names in the input data
645
- are serialized names, as specified in the OpenAPI document.
646
- False if the variable names in the input data
647
- are pythonic names, e.g. snake case (default)
648
- _content_type (str/None): force body content-type.
649
- Default is None and content-type will be predicted by allowed
650
- content-types and body.
651
- _host_index (int/None): specifies the index of the server
652
- that we want to use.
653
- Default is read from the configuration.
654
- _request_auths (list): set to override the auth_settings for an a single
655
- request; this effectively ignores the authentication
656
- in the spec for a single request.
657
- Default is None
658
- async_req (bool): execute request asynchronously
659
-
660
- Returns:
661
- None
662
- If the method is called asynchronously, returns the request
663
- thread.
664
- """
665
- kwargs['async_req'] = kwargs.get(
666
- 'async_req', False
804
+ _request_auth,
805
+ _content_type,
806
+ _headers,
807
+ _host_index,
808
+ ) -> RequestSerialized:
809
+
810
+ _host = None
811
+
812
+ _collection_formats: Dict[str, str] = {
813
+ }
814
+
815
+ _path_params: Dict[str, str] = {}
816
+ _query_params: List[Tuple[str, str]] = []
817
+ _header_params: Dict[str, Optional[str]] = _headers or {}
818
+ _form_params: List[Tuple[str, str]] = []
819
+ _files: Dict[str, str] = {}
820
+ _body_params: Optional[bytes] = None
821
+
822
+ # process the path parameters
823
+ if set is not None:
824
+ _path_params['set'] = set
825
+ # process the query parameters
826
+ # process the header parameters
827
+ # process the form parameters
828
+ # process the body parameter
829
+
830
+
831
+ # set the HTTP header `Accept`
832
+ _header_params['Accept'] = self.api_client.select_header_accept(
833
+ [
834
+ 'application/json'
835
+ ]
667
836
  )
668
- kwargs['_return_http_data_only'] = kwargs.get(
669
- '_return_http_data_only', True
837
+
838
+
839
+ # authentication setting
840
+ _auth_settings: List[str] = [
841
+ 'oryAccessToken'
842
+ ]
843
+
844
+ return self.api_client.param_serialize(
845
+ method='DELETE',
846
+ resource_path='/admin/keys/{set}',
847
+ path_params=_path_params,
848
+ query_params=_query_params,
849
+ header_params=_header_params,
850
+ body=_body_params,
851
+ post_params=_form_params,
852
+ files=_files,
853
+ auth_settings=_auth_settings,
854
+ collection_formats=_collection_formats,
855
+ _host=_host,
856
+ _request_auth=_request_auth
670
857
  )
671
- kwargs['_preload_content'] = kwargs.get(
672
- '_preload_content', True
858
+
859
+
860
+
861
+
862
+ @validate_call
863
+ def get_json_web_key(
864
+ self,
865
+ set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
866
+ kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
867
+ _request_timeout: Union[
868
+ None,
869
+ Annotated[StrictFloat, Field(gt=0)],
870
+ Tuple[
871
+ Annotated[StrictFloat, Field(gt=0)],
872
+ Annotated[StrictFloat, Field(gt=0)]
873
+ ]
874
+ ] = None,
875
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
876
+ _content_type: Optional[StrictStr] = None,
877
+ _headers: Optional[Dict[StrictStr, Any]] = None,
878
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
879
+ ) -> JsonWebKeySet:
880
+ """Get JSON Web Key
881
+
882
+ This endpoint returns a singular JSON Web Key contained in a set. It is identified by the set and the specific key ID (kid).
883
+
884
+ :param set: JSON Web Key Set ID (required)
885
+ :type set: str
886
+ :param kid: JSON Web Key ID (required)
887
+ :type kid: str
888
+ :param _request_timeout: timeout setting for this request. If one
889
+ number provided, it will be total request
890
+ timeout. It can also be a pair (tuple) of
891
+ (connection, read) timeouts.
892
+ :type _request_timeout: int, tuple(int, int), optional
893
+ :param _request_auth: set to override the auth_settings for an a single
894
+ request; this effectively ignores the
895
+ authentication in the spec for a single request.
896
+ :type _request_auth: dict, optional
897
+ :param _content_type: force content-type for the request.
898
+ :type _content_type: str, Optional
899
+ :param _headers: set to override the headers for a single
900
+ request; this effectively ignores the headers
901
+ in the spec for a single request.
902
+ :type _headers: dict, optional
903
+ :param _host_index: set to override the host_index for a single
904
+ request; this effectively ignores the host_index
905
+ in the spec for a single request.
906
+ :type _host_index: int, optional
907
+ :return: Returns the result object.
908
+ """ # noqa: E501
909
+
910
+ _param = self._get_json_web_key_serialize(
911
+ set=set,
912
+ kid=kid,
913
+ _request_auth=_request_auth,
914
+ _content_type=_content_type,
915
+ _headers=_headers,
916
+ _host_index=_host_index
673
917
  )
674
- kwargs['_request_timeout'] = kwargs.get(
675
- '_request_timeout', None
918
+
919
+ _response_types_map: Dict[str, Optional[str]] = {
920
+ '200': "JsonWebKeySet",
921
+ }
922
+ response_data = self.api_client.call_api(
923
+ *_param,
924
+ _request_timeout=_request_timeout
676
925
  )
677
- kwargs['_check_input_type'] = kwargs.get(
678
- '_check_input_type', True
926
+ response_data.read()
927
+ return self.api_client.response_deserialize(
928
+ response_data=response_data,
929
+ response_types_map=_response_types_map,
930
+ ).data
931
+
932
+
933
+ @validate_call
934
+ def get_json_web_key_with_http_info(
935
+ self,
936
+ set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
937
+ kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
938
+ _request_timeout: Union[
939
+ None,
940
+ Annotated[StrictFloat, Field(gt=0)],
941
+ Tuple[
942
+ Annotated[StrictFloat, Field(gt=0)],
943
+ Annotated[StrictFloat, Field(gt=0)]
944
+ ]
945
+ ] = None,
946
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
947
+ _content_type: Optional[StrictStr] = None,
948
+ _headers: Optional[Dict[StrictStr, Any]] = None,
949
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
950
+ ) -> ApiResponse[JsonWebKeySet]:
951
+ """Get JSON Web Key
952
+
953
+ This endpoint returns a singular JSON Web Key contained in a set. It is identified by the set and the specific key ID (kid).
954
+
955
+ :param set: JSON Web Key Set ID (required)
956
+ :type set: str
957
+ :param kid: JSON Web Key ID (required)
958
+ :type kid: str
959
+ :param _request_timeout: timeout setting for this request. If one
960
+ number provided, it will be total request
961
+ timeout. It can also be a pair (tuple) of
962
+ (connection, read) timeouts.
963
+ :type _request_timeout: int, tuple(int, int), optional
964
+ :param _request_auth: set to override the auth_settings for an a single
965
+ request; this effectively ignores the
966
+ authentication in the spec for a single request.
967
+ :type _request_auth: dict, optional
968
+ :param _content_type: force content-type for the request.
969
+ :type _content_type: str, Optional
970
+ :param _headers: set to override the headers for a single
971
+ request; this effectively ignores the headers
972
+ in the spec for a single request.
973
+ :type _headers: dict, optional
974
+ :param _host_index: set to override the host_index for a single
975
+ request; this effectively ignores the host_index
976
+ in the spec for a single request.
977
+ :type _host_index: int, optional
978
+ :return: Returns the result object.
979
+ """ # noqa: E501
980
+
981
+ _param = self._get_json_web_key_serialize(
982
+ set=set,
983
+ kid=kid,
984
+ _request_auth=_request_auth,
985
+ _content_type=_content_type,
986
+ _headers=_headers,
987
+ _host_index=_host_index
679
988
  )
680
- kwargs['_check_return_type'] = kwargs.get(
681
- '_check_return_type', True
989
+
990
+ _response_types_map: Dict[str, Optional[str]] = {
991
+ '200': "JsonWebKeySet",
992
+ }
993
+ response_data = self.api_client.call_api(
994
+ *_param,
995
+ _request_timeout=_request_timeout
682
996
  )
683
- kwargs['_spec_property_naming'] = kwargs.get(
684
- '_spec_property_naming', False
997
+ response_data.read()
998
+ return self.api_client.response_deserialize(
999
+ response_data=response_data,
1000
+ response_types_map=_response_types_map,
685
1001
  )
686
- kwargs['_content_type'] = kwargs.get(
687
- '_content_type')
688
- kwargs['_host_index'] = kwargs.get('_host_index')
689
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
690
- kwargs['set'] = \
691
- set
692
- return self.delete_json_web_key_set_endpoint.call_with_http_info(**kwargs)
693
1002
 
694
- def get_json_web_key(
1003
+
1004
+ @validate_call
1005
+ def get_json_web_key_without_preload_content(
1006
+ self,
1007
+ set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
1008
+ kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
1009
+ _request_timeout: Union[
1010
+ None,
1011
+ Annotated[StrictFloat, Field(gt=0)],
1012
+ Tuple[
1013
+ Annotated[StrictFloat, Field(gt=0)],
1014
+ Annotated[StrictFloat, Field(gt=0)]
1015
+ ]
1016
+ ] = None,
1017
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1018
+ _content_type: Optional[StrictStr] = None,
1019
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1020
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1021
+ ) -> RESTResponseType:
1022
+ """Get JSON Web Key
1023
+
1024
+ This endpoint returns a singular JSON Web Key contained in a set. It is identified by the set and the specific key ID (kid).
1025
+
1026
+ :param set: JSON Web Key Set ID (required)
1027
+ :type set: str
1028
+ :param kid: JSON Web Key ID (required)
1029
+ :type kid: str
1030
+ :param _request_timeout: timeout setting for this request. If one
1031
+ number provided, it will be total request
1032
+ timeout. It can also be a pair (tuple) of
1033
+ (connection, read) timeouts.
1034
+ :type _request_timeout: int, tuple(int, int), optional
1035
+ :param _request_auth: set to override the auth_settings for an a single
1036
+ request; this effectively ignores the
1037
+ authentication in the spec for a single request.
1038
+ :type _request_auth: dict, optional
1039
+ :param _content_type: force content-type for the request.
1040
+ :type _content_type: str, Optional
1041
+ :param _headers: set to override the headers for a single
1042
+ request; this effectively ignores the headers
1043
+ in the spec for a single request.
1044
+ :type _headers: dict, optional
1045
+ :param _host_index: set to override the host_index for a single
1046
+ request; this effectively ignores the host_index
1047
+ in the spec for a single request.
1048
+ :type _host_index: int, optional
1049
+ :return: Returns the result object.
1050
+ """ # noqa: E501
1051
+
1052
+ _param = self._get_json_web_key_serialize(
1053
+ set=set,
1054
+ kid=kid,
1055
+ _request_auth=_request_auth,
1056
+ _content_type=_content_type,
1057
+ _headers=_headers,
1058
+ _host_index=_host_index
1059
+ )
1060
+
1061
+ _response_types_map: Dict[str, Optional[str]] = {
1062
+ '200': "JsonWebKeySet",
1063
+ }
1064
+ response_data = self.api_client.call_api(
1065
+ *_param,
1066
+ _request_timeout=_request_timeout
1067
+ )
1068
+ return response_data.response
1069
+
1070
+
1071
+ def _get_json_web_key_serialize(
695
1072
  self,
696
1073
  set,
697
1074
  kid,
698
- **kwargs
699
- ):
700
- """Get JSON Web Key # noqa: E501
701
-
702
- This endpoint returns a singular JSON Web Key contained in a set. It is identified by the set and the specific key ID (kid). # noqa: E501
703
- This method makes a synchronous HTTP request by default. To make an
704
- asynchronous HTTP request, please pass async_req=True
705
-
706
- >>> thread = api.get_json_web_key(set, kid, async_req=True)
707
- >>> result = thread.get()
708
-
709
- Args:
710
- set (str): JSON Web Key Set ID
711
- kid (str): JSON Web Key ID
712
-
713
- Keyword Args:
714
- _return_http_data_only (bool): response data without head status
715
- code and headers. Default is True.
716
- _preload_content (bool): if False, the urllib3.HTTPResponse object
717
- will be returned without reading/decoding response data.
718
- Default is True.
719
- _request_timeout (int/float/tuple): timeout setting for this request. If
720
- one number provided, it will be total request timeout. It can also
721
- be a pair (tuple) of (connection, read) timeouts.
722
- Default is None.
723
- _check_input_type (bool): specifies if type checking
724
- should be done one the data sent to the server.
725
- Default is True.
726
- _check_return_type (bool): specifies if type checking
727
- should be done one the data received from the server.
728
- Default is True.
729
- _spec_property_naming (bool): True if the variable names in the input data
730
- are serialized names, as specified in the OpenAPI document.
731
- False if the variable names in the input data
732
- are pythonic names, e.g. snake case (default)
733
- _content_type (str/None): force body content-type.
734
- Default is None and content-type will be predicted by allowed
735
- content-types and body.
736
- _host_index (int/None): specifies the index of the server
737
- that we want to use.
738
- Default is read from the configuration.
739
- _request_auths (list): set to override the auth_settings for an a single
740
- request; this effectively ignores the authentication
741
- in the spec for a single request.
742
- Default is None
743
- async_req (bool): execute request asynchronously
744
-
745
- Returns:
746
- JsonWebKeySet
747
- If the method is called asynchronously, returns the request
748
- thread.
749
- """
750
- kwargs['async_req'] = kwargs.get(
751
- 'async_req', False
1075
+ _request_auth,
1076
+ _content_type,
1077
+ _headers,
1078
+ _host_index,
1079
+ ) -> RequestSerialized:
1080
+
1081
+ _host = None
1082
+
1083
+ _collection_formats: Dict[str, str] = {
1084
+ }
1085
+
1086
+ _path_params: Dict[str, str] = {}
1087
+ _query_params: List[Tuple[str, str]] = []
1088
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1089
+ _form_params: List[Tuple[str, str]] = []
1090
+ _files: Dict[str, str] = {}
1091
+ _body_params: Optional[bytes] = None
1092
+
1093
+ # process the path parameters
1094
+ if set is not None:
1095
+ _path_params['set'] = set
1096
+ if kid is not None:
1097
+ _path_params['kid'] = kid
1098
+ # process the query parameters
1099
+ # process the header parameters
1100
+ # process the form parameters
1101
+ # process the body parameter
1102
+
1103
+
1104
+ # set the HTTP header `Accept`
1105
+ _header_params['Accept'] = self.api_client.select_header_accept(
1106
+ [
1107
+ 'application/json'
1108
+ ]
752
1109
  )
753
- kwargs['_return_http_data_only'] = kwargs.get(
754
- '_return_http_data_only', True
1110
+
1111
+
1112
+ # authentication setting
1113
+ _auth_settings: List[str] = [
1114
+ 'oryAccessToken'
1115
+ ]
1116
+
1117
+ return self.api_client.param_serialize(
1118
+ method='GET',
1119
+ resource_path='/admin/keys/{set}/{kid}',
1120
+ path_params=_path_params,
1121
+ query_params=_query_params,
1122
+ header_params=_header_params,
1123
+ body=_body_params,
1124
+ post_params=_form_params,
1125
+ files=_files,
1126
+ auth_settings=_auth_settings,
1127
+ collection_formats=_collection_formats,
1128
+ _host=_host,
1129
+ _request_auth=_request_auth
755
1130
  )
756
- kwargs['_preload_content'] = kwargs.get(
757
- '_preload_content', True
1131
+
1132
+
1133
+
1134
+
1135
+ @validate_call
1136
+ def get_json_web_key_set(
1137
+ self,
1138
+ set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
1139
+ _request_timeout: Union[
1140
+ None,
1141
+ Annotated[StrictFloat, Field(gt=0)],
1142
+ Tuple[
1143
+ Annotated[StrictFloat, Field(gt=0)],
1144
+ Annotated[StrictFloat, Field(gt=0)]
1145
+ ]
1146
+ ] = None,
1147
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1148
+ _content_type: Optional[StrictStr] = None,
1149
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1150
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1151
+ ) -> JsonWebKeySet:
1152
+ """Retrieve a JSON Web Key Set
1153
+
1154
+ This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
1155
+
1156
+ :param set: JSON Web Key Set ID (required)
1157
+ :type set: str
1158
+ :param _request_timeout: timeout setting for this request. If one
1159
+ number provided, it will be total request
1160
+ timeout. It can also be a pair (tuple) of
1161
+ (connection, read) timeouts.
1162
+ :type _request_timeout: int, tuple(int, int), optional
1163
+ :param _request_auth: set to override the auth_settings for an a single
1164
+ request; this effectively ignores the
1165
+ authentication in the spec for a single request.
1166
+ :type _request_auth: dict, optional
1167
+ :param _content_type: force content-type for the request.
1168
+ :type _content_type: str, Optional
1169
+ :param _headers: set to override the headers for a single
1170
+ request; this effectively ignores the headers
1171
+ in the spec for a single request.
1172
+ :type _headers: dict, optional
1173
+ :param _host_index: set to override the host_index for a single
1174
+ request; this effectively ignores the host_index
1175
+ in the spec for a single request.
1176
+ :type _host_index: int, optional
1177
+ :return: Returns the result object.
1178
+ """ # noqa: E501
1179
+
1180
+ _param = self._get_json_web_key_set_serialize(
1181
+ set=set,
1182
+ _request_auth=_request_auth,
1183
+ _content_type=_content_type,
1184
+ _headers=_headers,
1185
+ _host_index=_host_index
758
1186
  )
759
- kwargs['_request_timeout'] = kwargs.get(
760
- '_request_timeout', None
1187
+
1188
+ _response_types_map: Dict[str, Optional[str]] = {
1189
+ '200': "JsonWebKeySet",
1190
+ }
1191
+ response_data = self.api_client.call_api(
1192
+ *_param,
1193
+ _request_timeout=_request_timeout
761
1194
  )
762
- kwargs['_check_input_type'] = kwargs.get(
763
- '_check_input_type', True
1195
+ response_data.read()
1196
+ return self.api_client.response_deserialize(
1197
+ response_data=response_data,
1198
+ response_types_map=_response_types_map,
1199
+ ).data
1200
+
1201
+
1202
+ @validate_call
1203
+ def get_json_web_key_set_with_http_info(
1204
+ self,
1205
+ set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
1206
+ _request_timeout: Union[
1207
+ None,
1208
+ Annotated[StrictFloat, Field(gt=0)],
1209
+ Tuple[
1210
+ Annotated[StrictFloat, Field(gt=0)],
1211
+ Annotated[StrictFloat, Field(gt=0)]
1212
+ ]
1213
+ ] = None,
1214
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1215
+ _content_type: Optional[StrictStr] = None,
1216
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1217
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1218
+ ) -> ApiResponse[JsonWebKeySet]:
1219
+ """Retrieve a JSON Web Key Set
1220
+
1221
+ This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
1222
+
1223
+ :param set: JSON Web Key Set ID (required)
1224
+ :type set: str
1225
+ :param _request_timeout: timeout setting for this request. If one
1226
+ number provided, it will be total request
1227
+ timeout. It can also be a pair (tuple) of
1228
+ (connection, read) timeouts.
1229
+ :type _request_timeout: int, tuple(int, int), optional
1230
+ :param _request_auth: set to override the auth_settings for an a single
1231
+ request; this effectively ignores the
1232
+ authentication in the spec for a single request.
1233
+ :type _request_auth: dict, optional
1234
+ :param _content_type: force content-type for the request.
1235
+ :type _content_type: str, Optional
1236
+ :param _headers: set to override the headers for a single
1237
+ request; this effectively ignores the headers
1238
+ in the spec for a single request.
1239
+ :type _headers: dict, optional
1240
+ :param _host_index: set to override the host_index for a single
1241
+ request; this effectively ignores the host_index
1242
+ in the spec for a single request.
1243
+ :type _host_index: int, optional
1244
+ :return: Returns the result object.
1245
+ """ # noqa: E501
1246
+
1247
+ _param = self._get_json_web_key_set_serialize(
1248
+ set=set,
1249
+ _request_auth=_request_auth,
1250
+ _content_type=_content_type,
1251
+ _headers=_headers,
1252
+ _host_index=_host_index
764
1253
  )
765
- kwargs['_check_return_type'] = kwargs.get(
766
- '_check_return_type', True
1254
+
1255
+ _response_types_map: Dict[str, Optional[str]] = {
1256
+ '200': "JsonWebKeySet",
1257
+ }
1258
+ response_data = self.api_client.call_api(
1259
+ *_param,
1260
+ _request_timeout=_request_timeout
767
1261
  )
768
- kwargs['_spec_property_naming'] = kwargs.get(
769
- '_spec_property_naming', False
1262
+ response_data.read()
1263
+ return self.api_client.response_deserialize(
1264
+ response_data=response_data,
1265
+ response_types_map=_response_types_map,
770
1266
  )
771
- kwargs['_content_type'] = kwargs.get(
772
- '_content_type')
773
- kwargs['_host_index'] = kwargs.get('_host_index')
774
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
775
- kwargs['set'] = \
776
- set
777
- kwargs['kid'] = \
778
- kid
779
- return self.get_json_web_key_endpoint.call_with_http_info(**kwargs)
780
1267
 
781
- def get_json_web_key_set(
1268
+
1269
+ @validate_call
1270
+ def get_json_web_key_set_without_preload_content(
782
1271
  self,
783
- set,
784
- **kwargs
785
- ):
786
- """Retrieve a JSON Web Key Set # noqa: E501
787
-
788
- This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. # noqa: E501
789
- This method makes a synchronous HTTP request by default. To make an
790
- asynchronous HTTP request, please pass async_req=True
791
-
792
- >>> thread = api.get_json_web_key_set(set, async_req=True)
793
- >>> result = thread.get()
794
-
795
- Args:
796
- set (str): JSON Web Key Set ID
797
-
798
- Keyword Args:
799
- _return_http_data_only (bool): response data without head status
800
- code and headers. Default is True.
801
- _preload_content (bool): if False, the urllib3.HTTPResponse object
802
- will be returned without reading/decoding response data.
803
- Default is True.
804
- _request_timeout (int/float/tuple): timeout setting for this request. If
805
- one number provided, it will be total request timeout. It can also
806
- be a pair (tuple) of (connection, read) timeouts.
807
- Default is None.
808
- _check_input_type (bool): specifies if type checking
809
- should be done one the data sent to the server.
810
- Default is True.
811
- _check_return_type (bool): specifies if type checking
812
- should be done one the data received from the server.
813
- Default is True.
814
- _spec_property_naming (bool): True if the variable names in the input data
815
- are serialized names, as specified in the OpenAPI document.
816
- False if the variable names in the input data
817
- are pythonic names, e.g. snake case (default)
818
- _content_type (str/None): force body content-type.
819
- Default is None and content-type will be predicted by allowed
820
- content-types and body.
821
- _host_index (int/None): specifies the index of the server
822
- that we want to use.
823
- Default is read from the configuration.
824
- _request_auths (list): set to override the auth_settings for an a single
825
- request; this effectively ignores the authentication
826
- in the spec for a single request.
827
- Default is None
828
- async_req (bool): execute request asynchronously
829
-
830
- Returns:
831
- JsonWebKeySet
832
- If the method is called asynchronously, returns the request
833
- thread.
834
- """
835
- kwargs['async_req'] = kwargs.get(
836
- 'async_req', False
837
- )
838
- kwargs['_return_http_data_only'] = kwargs.get(
839
- '_return_http_data_only', True
1272
+ set: Annotated[StrictStr, Field(description="JSON Web Key Set ID")],
1273
+ _request_timeout: Union[
1274
+ None,
1275
+ Annotated[StrictFloat, Field(gt=0)],
1276
+ Tuple[
1277
+ Annotated[StrictFloat, Field(gt=0)],
1278
+ Annotated[StrictFloat, Field(gt=0)]
1279
+ ]
1280
+ ] = None,
1281
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1282
+ _content_type: Optional[StrictStr] = None,
1283
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1284
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1285
+ ) -> RESTResponseType:
1286
+ """Retrieve a JSON Web Key Set
1287
+
1288
+ This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
1289
+
1290
+ :param set: JSON Web Key Set ID (required)
1291
+ :type set: str
1292
+ :param _request_timeout: timeout setting for this request. If one
1293
+ number provided, it will be total request
1294
+ timeout. It can also be a pair (tuple) of
1295
+ (connection, read) timeouts.
1296
+ :type _request_timeout: int, tuple(int, int), optional
1297
+ :param _request_auth: set to override the auth_settings for an a single
1298
+ request; this effectively ignores the
1299
+ authentication in the spec for a single request.
1300
+ :type _request_auth: dict, optional
1301
+ :param _content_type: force content-type for the request.
1302
+ :type _content_type: str, Optional
1303
+ :param _headers: set to override the headers for a single
1304
+ request; this effectively ignores the headers
1305
+ in the spec for a single request.
1306
+ :type _headers: dict, optional
1307
+ :param _host_index: set to override the host_index for a single
1308
+ request; this effectively ignores the host_index
1309
+ in the spec for a single request.
1310
+ :type _host_index: int, optional
1311
+ :return: Returns the result object.
1312
+ """ # noqa: E501
1313
+
1314
+ _param = self._get_json_web_key_set_serialize(
1315
+ set=set,
1316
+ _request_auth=_request_auth,
1317
+ _content_type=_content_type,
1318
+ _headers=_headers,
1319
+ _host_index=_host_index
840
1320
  )
841
- kwargs['_preload_content'] = kwargs.get(
842
- '_preload_content', True
1321
+
1322
+ _response_types_map: Dict[str, Optional[str]] = {
1323
+ '200': "JsonWebKeySet",
1324
+ }
1325
+ response_data = self.api_client.call_api(
1326
+ *_param,
1327
+ _request_timeout=_request_timeout
843
1328
  )
844
- kwargs['_request_timeout'] = kwargs.get(
845
- '_request_timeout', None
1329
+ return response_data.response
1330
+
1331
+
1332
+ def _get_json_web_key_set_serialize(
1333
+ self,
1334
+ set,
1335
+ _request_auth,
1336
+ _content_type,
1337
+ _headers,
1338
+ _host_index,
1339
+ ) -> RequestSerialized:
1340
+
1341
+ _host = None
1342
+
1343
+ _collection_formats: Dict[str, str] = {
1344
+ }
1345
+
1346
+ _path_params: Dict[str, str] = {}
1347
+ _query_params: List[Tuple[str, str]] = []
1348
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1349
+ _form_params: List[Tuple[str, str]] = []
1350
+ _files: Dict[str, str] = {}
1351
+ _body_params: Optional[bytes] = None
1352
+
1353
+ # process the path parameters
1354
+ if set is not None:
1355
+ _path_params['set'] = set
1356
+ # process the query parameters
1357
+ # process the header parameters
1358
+ # process the form parameters
1359
+ # process the body parameter
1360
+
1361
+
1362
+ # set the HTTP header `Accept`
1363
+ _header_params['Accept'] = self.api_client.select_header_accept(
1364
+ [
1365
+ 'application/json'
1366
+ ]
846
1367
  )
847
- kwargs['_check_input_type'] = kwargs.get(
848
- '_check_input_type', True
1368
+
1369
+
1370
+ # authentication setting
1371
+ _auth_settings: List[str] = [
1372
+ 'oryAccessToken'
1373
+ ]
1374
+
1375
+ return self.api_client.param_serialize(
1376
+ method='GET',
1377
+ resource_path='/admin/keys/{set}',
1378
+ path_params=_path_params,
1379
+ query_params=_query_params,
1380
+ header_params=_header_params,
1381
+ body=_body_params,
1382
+ post_params=_form_params,
1383
+ files=_files,
1384
+ auth_settings=_auth_settings,
1385
+ collection_formats=_collection_formats,
1386
+ _host=_host,
1387
+ _request_auth=_request_auth
849
1388
  )
850
- kwargs['_check_return_type'] = kwargs.get(
851
- '_check_return_type', True
1389
+
1390
+
1391
+
1392
+
1393
+ @validate_call
1394
+ def set_json_web_key(
1395
+ self,
1396
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
1397
+ kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
1398
+ json_web_key: Optional[JsonWebKey] = None,
1399
+ _request_timeout: Union[
1400
+ None,
1401
+ Annotated[StrictFloat, Field(gt=0)],
1402
+ Tuple[
1403
+ Annotated[StrictFloat, Field(gt=0)],
1404
+ Annotated[StrictFloat, Field(gt=0)]
1405
+ ]
1406
+ ] = None,
1407
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1408
+ _content_type: Optional[StrictStr] = None,
1409
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1410
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1411
+ ) -> JsonWebKey:
1412
+ """Set JSON Web Key
1413
+
1414
+ Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
1415
+
1416
+ :param set: The JSON Web Key Set ID (required)
1417
+ :type set: str
1418
+ :param kid: JSON Web Key ID (required)
1419
+ :type kid: str
1420
+ :param json_web_key:
1421
+ :type json_web_key: JsonWebKey
1422
+ :param _request_timeout: timeout setting for this request. If one
1423
+ number provided, it will be total request
1424
+ timeout. It can also be a pair (tuple) of
1425
+ (connection, read) timeouts.
1426
+ :type _request_timeout: int, tuple(int, int), optional
1427
+ :param _request_auth: set to override the auth_settings for an a single
1428
+ request; this effectively ignores the
1429
+ authentication in the spec for a single request.
1430
+ :type _request_auth: dict, optional
1431
+ :param _content_type: force content-type for the request.
1432
+ :type _content_type: str, Optional
1433
+ :param _headers: set to override the headers for a single
1434
+ request; this effectively ignores the headers
1435
+ in the spec for a single request.
1436
+ :type _headers: dict, optional
1437
+ :param _host_index: set to override the host_index for a single
1438
+ request; this effectively ignores the host_index
1439
+ in the spec for a single request.
1440
+ :type _host_index: int, optional
1441
+ :return: Returns the result object.
1442
+ """ # noqa: E501
1443
+
1444
+ _param = self._set_json_web_key_serialize(
1445
+ set=set,
1446
+ kid=kid,
1447
+ json_web_key=json_web_key,
1448
+ _request_auth=_request_auth,
1449
+ _content_type=_content_type,
1450
+ _headers=_headers,
1451
+ _host_index=_host_index
852
1452
  )
853
- kwargs['_spec_property_naming'] = kwargs.get(
854
- '_spec_property_naming', False
1453
+
1454
+ _response_types_map: Dict[str, Optional[str]] = {
1455
+ '200': "JsonWebKey",
1456
+ }
1457
+ response_data = self.api_client.call_api(
1458
+ *_param,
1459
+ _request_timeout=_request_timeout
855
1460
  )
856
- kwargs['_content_type'] = kwargs.get(
857
- '_content_type')
858
- kwargs['_host_index'] = kwargs.get('_host_index')
859
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
860
- kwargs['set'] = \
861
- set
862
- return self.get_json_web_key_set_endpoint.call_with_http_info(**kwargs)
1461
+ response_data.read()
1462
+ return self.api_client.response_deserialize(
1463
+ response_data=response_data,
1464
+ response_types_map=_response_types_map,
1465
+ ).data
863
1466
 
864
- def set_json_web_key(
1467
+
1468
+ @validate_call
1469
+ def set_json_web_key_with_http_info(
865
1470
  self,
866
- set,
867
- kid,
868
- **kwargs
869
- ):
870
- """Set JSON Web Key # noqa: E501
871
-
872
- Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. # noqa: E501
873
- This method makes a synchronous HTTP request by default. To make an
874
- asynchronous HTTP request, please pass async_req=True
875
-
876
- >>> thread = api.set_json_web_key(set, kid, async_req=True)
877
- >>> result = thread.get()
878
-
879
- Args:
880
- set (str): The JSON Web Key Set ID
881
- kid (str): JSON Web Key ID
882
-
883
- Keyword Args:
884
- json_web_key (JsonWebKey): [optional]
885
- _return_http_data_only (bool): response data without head status
886
- code and headers. Default is True.
887
- _preload_content (bool): if False, the urllib3.HTTPResponse object
888
- will be returned without reading/decoding response data.
889
- Default is True.
890
- _request_timeout (int/float/tuple): timeout setting for this request. If
891
- one number provided, it will be total request timeout. It can also
892
- be a pair (tuple) of (connection, read) timeouts.
893
- Default is None.
894
- _check_input_type (bool): specifies if type checking
895
- should be done one the data sent to the server.
896
- Default is True.
897
- _check_return_type (bool): specifies if type checking
898
- should be done one the data received from the server.
899
- Default is True.
900
- _spec_property_naming (bool): True if the variable names in the input data
901
- are serialized names, as specified in the OpenAPI document.
902
- False if the variable names in the input data
903
- are pythonic names, e.g. snake case (default)
904
- _content_type (str/None): force body content-type.
905
- Default is None and content-type will be predicted by allowed
906
- content-types and body.
907
- _host_index (int/None): specifies the index of the server
908
- that we want to use.
909
- Default is read from the configuration.
910
- _request_auths (list): set to override the auth_settings for an a single
911
- request; this effectively ignores the authentication
912
- in the spec for a single request.
913
- Default is None
914
- async_req (bool): execute request asynchronously
915
-
916
- Returns:
917
- JsonWebKey
918
- If the method is called asynchronously, returns the request
919
- thread.
920
- """
921
- kwargs['async_req'] = kwargs.get(
922
- 'async_req', False
1471
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
1472
+ kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
1473
+ json_web_key: Optional[JsonWebKey] = None,
1474
+ _request_timeout: Union[
1475
+ None,
1476
+ Annotated[StrictFloat, Field(gt=0)],
1477
+ Tuple[
1478
+ Annotated[StrictFloat, Field(gt=0)],
1479
+ Annotated[StrictFloat, Field(gt=0)]
1480
+ ]
1481
+ ] = None,
1482
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1483
+ _content_type: Optional[StrictStr] = None,
1484
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1485
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1486
+ ) -> ApiResponse[JsonWebKey]:
1487
+ """Set JSON Web Key
1488
+
1489
+ Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
1490
+
1491
+ :param set: The JSON Web Key Set ID (required)
1492
+ :type set: str
1493
+ :param kid: JSON Web Key ID (required)
1494
+ :type kid: str
1495
+ :param json_web_key:
1496
+ :type json_web_key: JsonWebKey
1497
+ :param _request_timeout: timeout setting for this request. If one
1498
+ number provided, it will be total request
1499
+ timeout. It can also be a pair (tuple) of
1500
+ (connection, read) timeouts.
1501
+ :type _request_timeout: int, tuple(int, int), optional
1502
+ :param _request_auth: set to override the auth_settings for an a single
1503
+ request; this effectively ignores the
1504
+ authentication in the spec for a single request.
1505
+ :type _request_auth: dict, optional
1506
+ :param _content_type: force content-type for the request.
1507
+ :type _content_type: str, Optional
1508
+ :param _headers: set to override the headers for a single
1509
+ request; this effectively ignores the headers
1510
+ in the spec for a single request.
1511
+ :type _headers: dict, optional
1512
+ :param _host_index: set to override the host_index for a single
1513
+ request; this effectively ignores the host_index
1514
+ in the spec for a single request.
1515
+ :type _host_index: int, optional
1516
+ :return: Returns the result object.
1517
+ """ # noqa: E501
1518
+
1519
+ _param = self._set_json_web_key_serialize(
1520
+ set=set,
1521
+ kid=kid,
1522
+ json_web_key=json_web_key,
1523
+ _request_auth=_request_auth,
1524
+ _content_type=_content_type,
1525
+ _headers=_headers,
1526
+ _host_index=_host_index
923
1527
  )
924
- kwargs['_return_http_data_only'] = kwargs.get(
925
- '_return_http_data_only', True
1528
+
1529
+ _response_types_map: Dict[str, Optional[str]] = {
1530
+ '200': "JsonWebKey",
1531
+ }
1532
+ response_data = self.api_client.call_api(
1533
+ *_param,
1534
+ _request_timeout=_request_timeout
926
1535
  )
927
- kwargs['_preload_content'] = kwargs.get(
928
- '_preload_content', True
1536
+ response_data.read()
1537
+ return self.api_client.response_deserialize(
1538
+ response_data=response_data,
1539
+ response_types_map=_response_types_map,
929
1540
  )
930
- kwargs['_request_timeout'] = kwargs.get(
931
- '_request_timeout', None
1541
+
1542
+
1543
+ @validate_call
1544
+ def set_json_web_key_without_preload_content(
1545
+ self,
1546
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
1547
+ kid: Annotated[StrictStr, Field(description="JSON Web Key ID")],
1548
+ json_web_key: Optional[JsonWebKey] = None,
1549
+ _request_timeout: Union[
1550
+ None,
1551
+ Annotated[StrictFloat, Field(gt=0)],
1552
+ Tuple[
1553
+ Annotated[StrictFloat, Field(gt=0)],
1554
+ Annotated[StrictFloat, Field(gt=0)]
1555
+ ]
1556
+ ] = None,
1557
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1558
+ _content_type: Optional[StrictStr] = None,
1559
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1560
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1561
+ ) -> RESTResponseType:
1562
+ """Set JSON Web Key
1563
+
1564
+ Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
1565
+
1566
+ :param set: The JSON Web Key Set ID (required)
1567
+ :type set: str
1568
+ :param kid: JSON Web Key ID (required)
1569
+ :type kid: str
1570
+ :param json_web_key:
1571
+ :type json_web_key: JsonWebKey
1572
+ :param _request_timeout: timeout setting for this request. If one
1573
+ number provided, it will be total request
1574
+ timeout. It can also be a pair (tuple) of
1575
+ (connection, read) timeouts.
1576
+ :type _request_timeout: int, tuple(int, int), optional
1577
+ :param _request_auth: set to override the auth_settings for an a single
1578
+ request; this effectively ignores the
1579
+ authentication in the spec for a single request.
1580
+ :type _request_auth: dict, optional
1581
+ :param _content_type: force content-type for the request.
1582
+ :type _content_type: str, Optional
1583
+ :param _headers: set to override the headers for a single
1584
+ request; this effectively ignores the headers
1585
+ in the spec for a single request.
1586
+ :type _headers: dict, optional
1587
+ :param _host_index: set to override the host_index for a single
1588
+ request; this effectively ignores the host_index
1589
+ in the spec for a single request.
1590
+ :type _host_index: int, optional
1591
+ :return: Returns the result object.
1592
+ """ # noqa: E501
1593
+
1594
+ _param = self._set_json_web_key_serialize(
1595
+ set=set,
1596
+ kid=kid,
1597
+ json_web_key=json_web_key,
1598
+ _request_auth=_request_auth,
1599
+ _content_type=_content_type,
1600
+ _headers=_headers,
1601
+ _host_index=_host_index
932
1602
  )
933
- kwargs['_check_input_type'] = kwargs.get(
934
- '_check_input_type', True
1603
+
1604
+ _response_types_map: Dict[str, Optional[str]] = {
1605
+ '200': "JsonWebKey",
1606
+ }
1607
+ response_data = self.api_client.call_api(
1608
+ *_param,
1609
+ _request_timeout=_request_timeout
935
1610
  )
936
- kwargs['_check_return_type'] = kwargs.get(
937
- '_check_return_type', True
1611
+ return response_data.response
1612
+
1613
+
1614
+ def _set_json_web_key_serialize(
1615
+ self,
1616
+ set,
1617
+ kid,
1618
+ json_web_key,
1619
+ _request_auth,
1620
+ _content_type,
1621
+ _headers,
1622
+ _host_index,
1623
+ ) -> RequestSerialized:
1624
+
1625
+ _host = None
1626
+
1627
+ _collection_formats: Dict[str, str] = {
1628
+ }
1629
+
1630
+ _path_params: Dict[str, str] = {}
1631
+ _query_params: List[Tuple[str, str]] = []
1632
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1633
+ _form_params: List[Tuple[str, str]] = []
1634
+ _files: Dict[str, str] = {}
1635
+ _body_params: Optional[bytes] = None
1636
+
1637
+ # process the path parameters
1638
+ if set is not None:
1639
+ _path_params['set'] = set
1640
+ if kid is not None:
1641
+ _path_params['kid'] = kid
1642
+ # process the query parameters
1643
+ # process the header parameters
1644
+ # process the form parameters
1645
+ # process the body parameter
1646
+ if json_web_key is not None:
1647
+ _body_params = json_web_key
1648
+
1649
+
1650
+ # set the HTTP header `Accept`
1651
+ _header_params['Accept'] = self.api_client.select_header_accept(
1652
+ [
1653
+ 'application/json'
1654
+ ]
938
1655
  )
939
- kwargs['_spec_property_naming'] = kwargs.get(
940
- '_spec_property_naming', False
1656
+
1657
+ # set the HTTP header `Content-Type`
1658
+ if _content_type:
1659
+ _header_params['Content-Type'] = _content_type
1660
+ else:
1661
+ _default_content_type = (
1662
+ self.api_client.select_header_content_type(
1663
+ [
1664
+ 'application/json'
1665
+ ]
1666
+ )
1667
+ )
1668
+ if _default_content_type is not None:
1669
+ _header_params['Content-Type'] = _default_content_type
1670
+
1671
+ # authentication setting
1672
+ _auth_settings: List[str] = [
1673
+ 'oryAccessToken'
1674
+ ]
1675
+
1676
+ return self.api_client.param_serialize(
1677
+ method='PUT',
1678
+ resource_path='/admin/keys/{set}/{kid}',
1679
+ path_params=_path_params,
1680
+ query_params=_query_params,
1681
+ header_params=_header_params,
1682
+ body=_body_params,
1683
+ post_params=_form_params,
1684
+ files=_files,
1685
+ auth_settings=_auth_settings,
1686
+ collection_formats=_collection_formats,
1687
+ _host=_host,
1688
+ _request_auth=_request_auth
941
1689
  )
942
- kwargs['_content_type'] = kwargs.get(
943
- '_content_type')
944
- kwargs['_host_index'] = kwargs.get('_host_index')
945
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
946
- kwargs['set'] = \
947
- set
948
- kwargs['kid'] = \
949
- kid
950
- return self.set_json_web_key_endpoint.call_with_http_info(**kwargs)
951
1690
 
1691
+
1692
+
1693
+
1694
+ @validate_call
952
1695
  def set_json_web_key_set(
953
1696
  self,
954
- set,
955
- **kwargs
956
- ):
957
- """Update a JSON Web Key Set # noqa: E501
958
-
959
- Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. # noqa: E501
960
- This method makes a synchronous HTTP request by default. To make an
961
- asynchronous HTTP request, please pass async_req=True
962
-
963
- >>> thread = api.set_json_web_key_set(set, async_req=True)
964
- >>> result = thread.get()
965
-
966
- Args:
967
- set (str): The JSON Web Key Set ID
968
-
969
- Keyword Args:
970
- json_web_key_set (JsonWebKeySet): [optional]
971
- _return_http_data_only (bool): response data without head status
972
- code and headers. Default is True.
973
- _preload_content (bool): if False, the urllib3.HTTPResponse object
974
- will be returned without reading/decoding response data.
975
- Default is True.
976
- _request_timeout (int/float/tuple): timeout setting for this request. If
977
- one number provided, it will be total request timeout. It can also
978
- be a pair (tuple) of (connection, read) timeouts.
979
- Default is None.
980
- _check_input_type (bool): specifies if type checking
981
- should be done one the data sent to the server.
982
- Default is True.
983
- _check_return_type (bool): specifies if type checking
984
- should be done one the data received from the server.
985
- Default is True.
986
- _spec_property_naming (bool): True if the variable names in the input data
987
- are serialized names, as specified in the OpenAPI document.
988
- False if the variable names in the input data
989
- are pythonic names, e.g. snake case (default)
990
- _content_type (str/None): force body content-type.
991
- Default is None and content-type will be predicted by allowed
992
- content-types and body.
993
- _host_index (int/None): specifies the index of the server
994
- that we want to use.
995
- Default is read from the configuration.
996
- _request_auths (list): set to override the auth_settings for an a single
997
- request; this effectively ignores the authentication
998
- in the spec for a single request.
999
- Default is None
1000
- async_req (bool): execute request asynchronously
1001
-
1002
- Returns:
1003
- JsonWebKeySet
1004
- If the method is called asynchronously, returns the request
1005
- thread.
1006
- """
1007
- kwargs['async_req'] = kwargs.get(
1008
- 'async_req', False
1697
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
1698
+ json_web_key_set: Optional[JsonWebKeySet] = None,
1699
+ _request_timeout: Union[
1700
+ None,
1701
+ Annotated[StrictFloat, Field(gt=0)],
1702
+ Tuple[
1703
+ Annotated[StrictFloat, Field(gt=0)],
1704
+ Annotated[StrictFloat, Field(gt=0)]
1705
+ ]
1706
+ ] = None,
1707
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1708
+ _content_type: Optional[StrictStr] = None,
1709
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1710
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1711
+ ) -> JsonWebKeySet:
1712
+ """Update a JSON Web Key Set
1713
+
1714
+ Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
1715
+
1716
+ :param set: The JSON Web Key Set ID (required)
1717
+ :type set: str
1718
+ :param json_web_key_set:
1719
+ :type json_web_key_set: JsonWebKeySet
1720
+ :param _request_timeout: timeout setting for this request. If one
1721
+ number provided, it will be total request
1722
+ timeout. It can also be a pair (tuple) of
1723
+ (connection, read) timeouts.
1724
+ :type _request_timeout: int, tuple(int, int), optional
1725
+ :param _request_auth: set to override the auth_settings for an a single
1726
+ request; this effectively ignores the
1727
+ authentication in the spec for a single request.
1728
+ :type _request_auth: dict, optional
1729
+ :param _content_type: force content-type for the request.
1730
+ :type _content_type: str, Optional
1731
+ :param _headers: set to override the headers for a single
1732
+ request; this effectively ignores the headers
1733
+ in the spec for a single request.
1734
+ :type _headers: dict, optional
1735
+ :param _host_index: set to override the host_index for a single
1736
+ request; this effectively ignores the host_index
1737
+ in the spec for a single request.
1738
+ :type _host_index: int, optional
1739
+ :return: Returns the result object.
1740
+ """ # noqa: E501
1741
+
1742
+ _param = self._set_json_web_key_set_serialize(
1743
+ set=set,
1744
+ json_web_key_set=json_web_key_set,
1745
+ _request_auth=_request_auth,
1746
+ _content_type=_content_type,
1747
+ _headers=_headers,
1748
+ _host_index=_host_index
1749
+ )
1750
+
1751
+ _response_types_map: Dict[str, Optional[str]] = {
1752
+ '200': "JsonWebKeySet",
1753
+ }
1754
+ response_data = self.api_client.call_api(
1755
+ *_param,
1756
+ _request_timeout=_request_timeout
1757
+ )
1758
+ response_data.read()
1759
+ return self.api_client.response_deserialize(
1760
+ response_data=response_data,
1761
+ response_types_map=_response_types_map,
1762
+ ).data
1763
+
1764
+
1765
+ @validate_call
1766
+ def set_json_web_key_set_with_http_info(
1767
+ self,
1768
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
1769
+ json_web_key_set: Optional[JsonWebKeySet] = None,
1770
+ _request_timeout: Union[
1771
+ None,
1772
+ Annotated[StrictFloat, Field(gt=0)],
1773
+ Tuple[
1774
+ Annotated[StrictFloat, Field(gt=0)],
1775
+ Annotated[StrictFloat, Field(gt=0)]
1776
+ ]
1777
+ ] = None,
1778
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1779
+ _content_type: Optional[StrictStr] = None,
1780
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1781
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1782
+ ) -> ApiResponse[JsonWebKeySet]:
1783
+ """Update a JSON Web Key Set
1784
+
1785
+ Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
1786
+
1787
+ :param set: The JSON Web Key Set ID (required)
1788
+ :type set: str
1789
+ :param json_web_key_set:
1790
+ :type json_web_key_set: JsonWebKeySet
1791
+ :param _request_timeout: timeout setting for this request. If one
1792
+ number provided, it will be total request
1793
+ timeout. It can also be a pair (tuple) of
1794
+ (connection, read) timeouts.
1795
+ :type _request_timeout: int, tuple(int, int), optional
1796
+ :param _request_auth: set to override the auth_settings for an a single
1797
+ request; this effectively ignores the
1798
+ authentication in the spec for a single request.
1799
+ :type _request_auth: dict, optional
1800
+ :param _content_type: force content-type for the request.
1801
+ :type _content_type: str, Optional
1802
+ :param _headers: set to override the headers for a single
1803
+ request; this effectively ignores the headers
1804
+ in the spec for a single request.
1805
+ :type _headers: dict, optional
1806
+ :param _host_index: set to override the host_index for a single
1807
+ request; this effectively ignores the host_index
1808
+ in the spec for a single request.
1809
+ :type _host_index: int, optional
1810
+ :return: Returns the result object.
1811
+ """ # noqa: E501
1812
+
1813
+ _param = self._set_json_web_key_set_serialize(
1814
+ set=set,
1815
+ json_web_key_set=json_web_key_set,
1816
+ _request_auth=_request_auth,
1817
+ _content_type=_content_type,
1818
+ _headers=_headers,
1819
+ _host_index=_host_index
1009
1820
  )
1010
- kwargs['_return_http_data_only'] = kwargs.get(
1011
- '_return_http_data_only', True
1821
+
1822
+ _response_types_map: Dict[str, Optional[str]] = {
1823
+ '200': "JsonWebKeySet",
1824
+ }
1825
+ response_data = self.api_client.call_api(
1826
+ *_param,
1827
+ _request_timeout=_request_timeout
1012
1828
  )
1013
- kwargs['_preload_content'] = kwargs.get(
1014
- '_preload_content', True
1829
+ response_data.read()
1830
+ return self.api_client.response_deserialize(
1831
+ response_data=response_data,
1832
+ response_types_map=_response_types_map,
1015
1833
  )
1016
- kwargs['_request_timeout'] = kwargs.get(
1017
- '_request_timeout', None
1834
+
1835
+
1836
+ @validate_call
1837
+ def set_json_web_key_set_without_preload_content(
1838
+ self,
1839
+ set: Annotated[StrictStr, Field(description="The JSON Web Key Set ID")],
1840
+ json_web_key_set: Optional[JsonWebKeySet] = None,
1841
+ _request_timeout: Union[
1842
+ None,
1843
+ Annotated[StrictFloat, Field(gt=0)],
1844
+ Tuple[
1845
+ Annotated[StrictFloat, Field(gt=0)],
1846
+ Annotated[StrictFloat, Field(gt=0)]
1847
+ ]
1848
+ ] = None,
1849
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1850
+ _content_type: Optional[StrictStr] = None,
1851
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1852
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1853
+ ) -> RESTResponseType:
1854
+ """Update a JSON Web Key Set
1855
+
1856
+ Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well.
1857
+
1858
+ :param set: The JSON Web Key Set ID (required)
1859
+ :type set: str
1860
+ :param json_web_key_set:
1861
+ :type json_web_key_set: JsonWebKeySet
1862
+ :param _request_timeout: timeout setting for this request. If one
1863
+ number provided, it will be total request
1864
+ timeout. It can also be a pair (tuple) of
1865
+ (connection, read) timeouts.
1866
+ :type _request_timeout: int, tuple(int, int), optional
1867
+ :param _request_auth: set to override the auth_settings for an a single
1868
+ request; this effectively ignores the
1869
+ authentication in the spec for a single request.
1870
+ :type _request_auth: dict, optional
1871
+ :param _content_type: force content-type for the request.
1872
+ :type _content_type: str, Optional
1873
+ :param _headers: set to override the headers for a single
1874
+ request; this effectively ignores the headers
1875
+ in the spec for a single request.
1876
+ :type _headers: dict, optional
1877
+ :param _host_index: set to override the host_index for a single
1878
+ request; this effectively ignores the host_index
1879
+ in the spec for a single request.
1880
+ :type _host_index: int, optional
1881
+ :return: Returns the result object.
1882
+ """ # noqa: E501
1883
+
1884
+ _param = self._set_json_web_key_set_serialize(
1885
+ set=set,
1886
+ json_web_key_set=json_web_key_set,
1887
+ _request_auth=_request_auth,
1888
+ _content_type=_content_type,
1889
+ _headers=_headers,
1890
+ _host_index=_host_index
1018
1891
  )
1019
- kwargs['_check_input_type'] = kwargs.get(
1020
- '_check_input_type', True
1892
+
1893
+ _response_types_map: Dict[str, Optional[str]] = {
1894
+ '200': "JsonWebKeySet",
1895
+ }
1896
+ response_data = self.api_client.call_api(
1897
+ *_param,
1898
+ _request_timeout=_request_timeout
1021
1899
  )
1022
- kwargs['_check_return_type'] = kwargs.get(
1023
- '_check_return_type', True
1900
+ return response_data.response
1901
+
1902
+
1903
+ def _set_json_web_key_set_serialize(
1904
+ self,
1905
+ set,
1906
+ json_web_key_set,
1907
+ _request_auth,
1908
+ _content_type,
1909
+ _headers,
1910
+ _host_index,
1911
+ ) -> RequestSerialized:
1912
+
1913
+ _host = None
1914
+
1915
+ _collection_formats: Dict[str, str] = {
1916
+ }
1917
+
1918
+ _path_params: Dict[str, str] = {}
1919
+ _query_params: List[Tuple[str, str]] = []
1920
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1921
+ _form_params: List[Tuple[str, str]] = []
1922
+ _files: Dict[str, str] = {}
1923
+ _body_params: Optional[bytes] = None
1924
+
1925
+ # process the path parameters
1926
+ if set is not None:
1927
+ _path_params['set'] = set
1928
+ # process the query parameters
1929
+ # process the header parameters
1930
+ # process the form parameters
1931
+ # process the body parameter
1932
+ if json_web_key_set is not None:
1933
+ _body_params = json_web_key_set
1934
+
1935
+
1936
+ # set the HTTP header `Accept`
1937
+ _header_params['Accept'] = self.api_client.select_header_accept(
1938
+ [
1939
+ 'application/json'
1940
+ ]
1024
1941
  )
1025
- kwargs['_spec_property_naming'] = kwargs.get(
1026
- '_spec_property_naming', False
1942
+
1943
+ # set the HTTP header `Content-Type`
1944
+ if _content_type:
1945
+ _header_params['Content-Type'] = _content_type
1946
+ else:
1947
+ _default_content_type = (
1948
+ self.api_client.select_header_content_type(
1949
+ [
1950
+ 'application/json'
1951
+ ]
1952
+ )
1953
+ )
1954
+ if _default_content_type is not None:
1955
+ _header_params['Content-Type'] = _default_content_type
1956
+
1957
+ # authentication setting
1958
+ _auth_settings: List[str] = [
1959
+ 'oryAccessToken'
1960
+ ]
1961
+
1962
+ return self.api_client.param_serialize(
1963
+ method='PUT',
1964
+ resource_path='/admin/keys/{set}',
1965
+ path_params=_path_params,
1966
+ query_params=_query_params,
1967
+ header_params=_header_params,
1968
+ body=_body_params,
1969
+ post_params=_form_params,
1970
+ files=_files,
1971
+ auth_settings=_auth_settings,
1972
+ collection_formats=_collection_formats,
1973
+ _host=_host,
1974
+ _request_auth=_request_auth
1027
1975
  )
1028
- kwargs['_content_type'] = kwargs.get(
1029
- '_content_type')
1030
- kwargs['_host_index'] = kwargs.get('_host_index')
1031
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1032
- kwargs['set'] = \
1033
- set
1034
- return self.set_json_web_key_set_endpoint.call_with_http_info(**kwargs)
1976
+
1035
1977