authentik-api 2026.2.3 → 2026.5.0.rc2

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 (206) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/README_API.md +66 -14
  4. data/lib/authentik/api/api/admin_api.rb +4 -12
  5. data/lib/authentik/api/api/core_api.rb +143 -18
  6. data/lib/authentik/api/api/crypto_api.rb +2 -6
  7. data/lib/authentik/api/api/endpoints_api.rb +1577 -656
  8. data/lib/authentik/api/api/events_api.rb +121 -38
  9. data/lib/authentik/api/api/flows_api.rb +8 -90
  10. data/lib/authentik/api/api/lifecycle_api.rb +22 -13
  11. data/lib/authentik/api/api/managed_api.rb +73 -0
  12. data/lib/authentik/api/api/policies_api.rb +5 -6
  13. data/lib/authentik/api/api/providers_api.rb +46 -108
  14. data/lib/authentik/api/api/rbac_api.rb +0 -5
  15. data/lib/authentik/api/api/schema_api.rb +4 -12
  16. data/lib/authentik/api/api/sources_api.rb +35 -96
  17. data/lib/authentik/api/api/ssf_api.rb +63 -6
  18. data/lib/authentik/api/api/stages_api.rb +581 -102
  19. data/lib/authentik/api/api/tasks_api.rb +5 -13
  20. data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
  21. data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
  22. data/lib/authentik/api/models/app_enum.rb +3 -2
  23. data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
  24. data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
  25. data/lib/authentik/api/models/application.rb +14 -4
  26. data/lib/authentik/api/models/application_request.rb +14 -4
  27. data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
  28. data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
  29. data/lib/authentik/api/models/authentication_enum.rb +2 -1
  30. data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
  31. data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
  32. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
  33. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
  34. data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
  35. data/lib/authentik/api/models/brand.rb +11 -1
  36. data/lib/authentik/api/models/brand_request.rb +11 -1
  37. data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
  38. data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
  39. data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
  40. data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
  41. data/lib/authentik/api/models/consent_stage.rb +1 -1
  42. data/lib/authentik/api/models/consent_stage_request.rb +1 -1
  43. data/lib/authentik/api/models/country_code_enum.rb +3 -3
  44. data/lib/authentik/api/models/current_brand.rb +10 -1
  45. data/lib/authentik/api/models/current_brand_flags.rb +31 -27
  46. data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
  47. data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
  48. data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
  49. data/lib/authentik/api/models/event_stats.rb +187 -0
  50. data/lib/authentik/api/models/event_volume.rb +1 -1
  51. data/lib/authentik/api/models/events_requested_enum.rb +7 -1
  52. data/lib/authentik/api/models/force_binding_enum.rb +34 -0
  53. data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
  54. data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
  55. data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
  56. data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
  57. data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
  58. data/lib/authentik/api/models/grant_types_enum.rb +39 -0
  59. data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
  60. data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
  61. data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
  62. data/lib/authentik/api/models/key_type_enum.rb +3 -3
  63. data/lib/authentik/api/models/lang_enum.rb +131 -0
  64. data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
  65. data/lib/authentik/api/models/logout_url.rb +209 -0
  66. data/lib/authentik/api/models/model_enum.rb +3 -1
  67. data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
  68. data/lib/authentik/api/models/notification_transport.rb +13 -2
  69. data/lib/authentik/api/models/notification_transport_request.rb +13 -2
  70. data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
  71. data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
  72. data/lib/authentik/api/models/operating_system.rb +0 -17
  73. data/lib/authentik/api/models/operating_system_request.rb +2 -9
  74. data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
  75. data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
  76. data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
  77. data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
  78. data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
  79. data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
  80. data/lib/authentik/api/models/patched_application_request.rb +14 -4
  81. data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
  82. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
  83. data/lib/authentik/api/models/patched_brand_request.rb +11 -1
  84. data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
  85. data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
  86. data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
  87. data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
  88. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
  89. data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
  90. data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
  91. data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
  92. data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
  93. data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
  94. data/lib/authentik/api/models/redirect_uri.rb +13 -4
  95. data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
  96. data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
  97. data/lib/authentik/api/models/related_rule.rb +250 -0
  98. data/lib/authentik/api/models/saml_provider.rb +98 -8
  99. data/lib/authentik/api/models/saml_provider_request.rb +17 -27
  100. data/lib/authentik/api/models/saml_source.rb +11 -1
  101. data/lib/authentik/api/models/saml_source_request.rb +11 -1
  102. data/lib/authentik/api/models/ssf_provider.rb +41 -4
  103. data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
  104. data/lib/authentik/api/models/ssf_stream.rb +10 -1
  105. data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
  106. data/lib/authentik/api/models/task.rb +1 -1
  107. data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
  108. data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
  109. data/lib/authentik/api/models/usage_enum.rb +33 -0
  110. data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
  111. data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
  112. data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
  113. data/lib/authentik/api/models/vendor_enum.rb +2 -1
  114. data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
  115. data/lib/authentik/api/version.rb +1 -1
  116. data/spec/api/admin_api_spec.rb +2 -2
  117. data/spec/api/core_api_spec.rb +27 -3
  118. data/spec/api/crypto_api_spec.rb +1 -1
  119. data/spec/api/endpoints_api_spec.rb +167 -0
  120. data/spec/api/events_api_spec.rb +33 -7
  121. data/spec/api/flows_api_spec.rb +4 -16
  122. data/spec/api/lifecycle_api_spec.rb +6 -3
  123. data/spec/api/managed_api_spec.rb +13 -0
  124. data/spec/api/policies_api_spec.rb +2 -1
  125. data/spec/api/providers_api_spec.rb +21 -19
  126. data/spec/api/schema_api_spec.rb +2 -2
  127. data/spec/api/sources_api_spec.rb +17 -16
  128. data/spec/api/ssf_api_spec.rb +12 -1
  129. data/spec/api/stages_api_spec.rb +117 -18
  130. data/spec/api/tasks_api_spec.rb +2 -2
  131. data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
  132. data/spec/models/account_lockdown_stage_spec.rb +96 -0
  133. data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
  134. data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
  135. data/spec/models/application_request_spec.rb +6 -0
  136. data/spec/models/application_spec.rb +6 -0
  137. data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
  138. data/spec/models/authenticator_validate_stage_spec.rb +30 -0
  139. data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
  140. data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
  141. data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
  142. data/spec/models/brand_request_spec.rb +6 -0
  143. data/spec/models/brand_spec.rb +6 -0
  144. data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
  145. data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
  146. data/spec/models/current_brand_flags_spec.rb +2 -2
  147. data/spec/models/current_brand_spec.rb +6 -0
  148. data/spec/models/event_matcher_policy_request_spec.rb +6 -0
  149. data/spec/models/event_matcher_policy_spec.rb +6 -0
  150. data/spec/models/event_stats_spec.rb +36 -0
  151. data/spec/models/force_binding_enum_spec.rb +24 -0
  152. data/spec/models/format_enum_spec.rb +24 -0
  153. data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
  154. data/spec/models/google_chrome_connector_request_spec.rb +48 -0
  155. data/spec/models/google_chrome_connector_spec.rb +78 -0
  156. data/spec/models/grant_types_enum_spec.rb +24 -0
  157. data/spec/models/group_ldap_source_connection_spec.rb +6 -0
  158. data/spec/models/invitation_send_email_request_spec.rb +48 -0
  159. data/spec/models/lang_enum_spec.rb +24 -0
  160. data/spec/models/lifecycle_iteration_spec.rb +2 -14
  161. data/spec/models/logout_url_spec.rb +60 -0
  162. data/spec/models/native_logout_challenge_spec.rb +13 -7
  163. data/spec/models/notification_transport_request_spec.rb +6 -0
  164. data/spec/models/notification_transport_spec.rb +6 -0
  165. data/spec/models/o_auth2_provider_request_spec.rb +6 -0
  166. data/spec/models/o_auth2_provider_spec.rb +6 -0
  167. data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
  168. data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
  169. data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
  170. data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
  171. data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
  172. data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
  173. data/spec/models/patched_application_request_spec.rb +6 -0
  174. data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
  175. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
  176. data/spec/models/patched_brand_request_spec.rb +6 -0
  177. data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
  178. data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
  179. data/spec/models/patched_notification_transport_request_spec.rb +6 -0
  180. data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
  181. data/spec/models/patched_saml_provider_request_spec.rb +7 -1
  182. data/spec/models/patched_saml_source_request_spec.rb +6 -0
  183. data/spec/models/patched_settings_request_flags_spec.rb +2 -2
  184. data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
  185. data/spec/models/redirect_uri_request_spec.rb +6 -0
  186. data/spec/models/redirect_uri_spec.rb +6 -0
  187. data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
  188. data/spec/models/related_rule_spec.rb +54 -0
  189. data/spec/models/saml_provider_request_spec.rb +7 -1
  190. data/spec/models/saml_provider_spec.rb +25 -1
  191. data/spec/models/saml_source_request_spec.rb +6 -0
  192. data/spec/models/saml_source_spec.rb +6 -0
  193. data/spec/models/ssf_provider_request_spec.rb +6 -0
  194. data/spec/models/ssf_provider_spec.rb +12 -0
  195. data/spec/models/ssf_stream_spec.rb +6 -0
  196. data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
  197. data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
  198. data/spec/models/transport_mode_enum_spec.rb +24 -0
  199. data/spec/models/usage_enum_spec.rb +24 -0
  200. data/spec/models/user_account_lockdown_request_spec.rb +30 -0
  201. data/spec/models/user_ldap_source_connection_spec.rb +6 -0
  202. data/spec/models/user_password_hash_set_request_spec.rb +30 -0
  203. data/spec/models/web_authn_hint_enum_spec.rb +24 -0
  204. data/spec/zeitwerk_spec.rb +34 -0
  205. metadata +113 -32
  206. data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
@@ -1541,6 +1541,7 @@ module Authentik::Api
1541
1541
  # @option opts [String] :flow_authentication
1542
1542
  # @option opts [String] :flow_device_code
1543
1543
  # @option opts [String] :flow_invalidation
1544
+ # @option opts [String] :flow_lockdown
1544
1545
  # @option opts [String] :flow_recovery
1545
1546
  # @option opts [String] :flow_unenrollment
1546
1547
  # @option opts [String] :flow_user_settings
@@ -1568,6 +1569,7 @@ module Authentik::Api
1568
1569
  # @option opts [String] :flow_authentication
1569
1570
  # @option opts [String] :flow_device_code
1570
1571
  # @option opts [String] :flow_invalidation
1572
+ # @option opts [String] :flow_lockdown
1571
1573
  # @option opts [String] :flow_recovery
1572
1574
  # @option opts [String] :flow_unenrollment
1573
1575
  # @option opts [String] :flow_user_settings
@@ -1597,6 +1599,7 @@ module Authentik::Api
1597
1599
  query_params[:'flow_authentication'] = opts[:'flow_authentication'] if !opts[:'flow_authentication'].nil?
1598
1600
  query_params[:'flow_device_code'] = opts[:'flow_device_code'] if !opts[:'flow_device_code'].nil?
1599
1601
  query_params[:'flow_invalidation'] = opts[:'flow_invalidation'] if !opts[:'flow_invalidation'].nil?
1602
+ query_params[:'flow_lockdown'] = opts[:'flow_lockdown'] if !opts[:'flow_lockdown'].nil?
1600
1603
  query_params[:'flow_recovery'] = opts[:'flow_recovery'] if !opts[:'flow_recovery'].nil?
1601
1604
  query_params[:'flow_unenrollment'] = opts[:'flow_unenrollment'] if !opts[:'flow_unenrollment'].nil?
1602
1605
  query_params[:'flow_user_settings'] = opts[:'flow_user_settings'] if !opts[:'flow_user_settings'].nil?
@@ -2674,7 +2677,7 @@ module Authentik::Api
2674
2677
  # @option opts [Time] :expires
2675
2678
  # @option opts [Boolean] :expiring
2676
2679
  # @option opts [String] :identifier
2677
- # @option opts [String] :intent
2680
+ # @option opts [IntentEnum] :intent
2678
2681
  # @option opts [String] :managed
2679
2682
  # @option opts [String] :ordering Which field to use when ordering the results.
2680
2683
  # @option opts [Integer] :page A page number within the paginated result set.
@@ -2693,7 +2696,7 @@ module Authentik::Api
2693
2696
  # @option opts [Time] :expires
2694
2697
  # @option opts [Boolean] :expiring
2695
2698
  # @option opts [String] :identifier
2696
- # @option opts [String] :intent
2699
+ # @option opts [IntentEnum] :intent
2697
2700
  # @option opts [String] :managed
2698
2701
  # @option opts [String] :ordering Which field to use when ordering the results.
2699
2702
  # @option opts [Integer] :page A page number within the paginated result set.
@@ -2705,10 +2708,6 @@ module Authentik::Api
2705
2708
  if @api_client.config.debugging
2706
2709
  @api_client.config.logger.debug 'Calling API: CoreApi.core_tokens_list ...'
2707
2710
  end
2708
- allowable_values = ["api", "app_password", "recovery", "verification"]
2709
- if @api_client.config.client_side_validation && opts[:'intent'] && !allowable_values.include?(opts[:'intent'])
2710
- fail ArgumentError, "invalid value for \"intent\", must be one of #{allowable_values}"
2711
- end
2712
2711
  # resource path
2713
2712
  local_var_path = '/core/tokens/'
2714
2713
 
@@ -3477,6 +3476,68 @@ module Authentik::Api
3477
3476
  return data, status_code, headers
3478
3477
  end
3479
3478
 
3479
+ # Choose the target account, then return a flow link.
3480
+ # @param [Hash] opts the optional parameters
3481
+ # @option opts [UserAccountLockdownRequest] :user_account_lockdown_request
3482
+ # @return [Link]
3483
+ def core_users_account_lockdown_create(opts = {})
3484
+ data, _status_code, _headers = core_users_account_lockdown_create_with_http_info(opts)
3485
+ data
3486
+ end
3487
+
3488
+ # Choose the target account, then return a flow link.
3489
+ # @param [Hash] opts the optional parameters
3490
+ # @option opts [UserAccountLockdownRequest] :user_account_lockdown_request
3491
+ # @return [Array<(Link, Integer, Hash)>] Link data, response status code and response headers
3492
+ def core_users_account_lockdown_create_with_http_info(opts = {})
3493
+ if @api_client.config.debugging
3494
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_account_lockdown_create ...'
3495
+ end
3496
+ # resource path
3497
+ local_var_path = '/core/users/account_lockdown/'
3498
+
3499
+ # query parameters
3500
+ query_params = opts[:query_params] || {}
3501
+
3502
+ # header parameters
3503
+ header_params = opts[:header_params] || {}
3504
+ # HTTP header 'Accept' (if needed)
3505
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3506
+ # HTTP header 'Content-Type'
3507
+ content_type = @api_client.select_header_content_type(['application/json'])
3508
+ if !content_type.nil?
3509
+ header_params['Content-Type'] = content_type
3510
+ end
3511
+
3512
+ # form parameters
3513
+ form_params = opts[:form_params] || {}
3514
+
3515
+ # http body (model)
3516
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'user_account_lockdown_request'])
3517
+
3518
+ # return_type
3519
+ return_type = opts[:debug_return_type] || 'Link'
3520
+
3521
+ # auth_names
3522
+ auth_names = opts[:debug_auth_names] || ['authentik']
3523
+
3524
+ new_options = opts.merge(
3525
+ :operation => :"CoreApi.core_users_account_lockdown_create",
3526
+ :header_params => header_params,
3527
+ :query_params => query_params,
3528
+ :form_params => form_params,
3529
+ :body => post_body,
3530
+ :auth_names => auth_names,
3531
+ :return_type => return_type
3532
+ )
3533
+
3534
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3535
+ if @api_client.config.debugging
3536
+ @api_client.config.logger.debug "API called: CoreApi#core_users_account_lockdown_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3537
+ end
3538
+ return data, status_code, headers
3539
+ end
3540
+
3480
3541
  # User Viewset
3481
3542
  # @param user_request [UserRequest]
3482
3543
  # @param [Hash] opts the optional parameters
@@ -3629,7 +3690,7 @@ module Authentik::Api
3629
3690
  # @option opts [Array<String>] :roles_by_name
3630
3691
  # @option opts [Array<String>] :roles_by_pk
3631
3692
  # @option opts [String] :search A search term.
3632
- # @option opts [Array<String>] :type
3693
+ # @option opts [Array<UserTypeEnum>] :type
3633
3694
  # @option opts [String] :username
3634
3695
  # @option opts [String] :uuid
3635
3696
  # @return [DataExport]
@@ -3663,7 +3724,7 @@ module Authentik::Api
3663
3724
  # @option opts [Array<String>] :roles_by_name
3664
3725
  # @option opts [Array<String>] :roles_by_pk
3665
3726
  # @option opts [String] :search A search term.
3666
- # @option opts [Array<String>] :type
3727
+ # @option opts [Array<UserTypeEnum>] :type
3667
3728
  # @option opts [String] :username
3668
3729
  # @option opts [String] :uuid
3669
3730
  # @return [Array<(DataExport, Integer, Hash)>] DataExport data, response status code and response headers
@@ -3671,10 +3732,6 @@ module Authentik::Api
3671
3732
  if @api_client.config.debugging
3672
3733
  @api_client.config.logger.debug 'Calling API: CoreApi.core_users_export_create ...'
3673
3734
  end
3674
- allowable_values = ["external", "internal", "internal_service_account", "service_account"]
3675
- if @api_client.config.client_side_validation && opts[:'type'] && !opts[:'type'].all? { |item| allowable_values.include?(item) }
3676
- fail ArgumentError, "invalid value for \"type\", must include one of #{allowable_values}"
3677
- end
3678
3735
  # resource path
3679
3736
  local_var_path = '/core/users/export/'
3680
3737
 
@@ -3897,7 +3954,7 @@ module Authentik::Api
3897
3954
  # @option opts [Array<String>] :roles_by_name
3898
3955
  # @option opts [Array<String>] :roles_by_pk
3899
3956
  # @option opts [String] :search A search term.
3900
- # @option opts [Array<String>] :type
3957
+ # @option opts [Array<UserTypeEnum>] :type
3901
3958
  # @option opts [String] :username
3902
3959
  # @option opts [String] :uuid
3903
3960
  # @return [PaginatedUserList]
@@ -3935,7 +3992,7 @@ module Authentik::Api
3935
3992
  # @option opts [Array<String>] :roles_by_name
3936
3993
  # @option opts [Array<String>] :roles_by_pk
3937
3994
  # @option opts [String] :search A search term.
3938
- # @option opts [Array<String>] :type
3995
+ # @option opts [Array<UserTypeEnum>] :type
3939
3996
  # @option opts [String] :username
3940
3997
  # @option opts [String] :uuid
3941
3998
  # @return [Array<(PaginatedUserList, Integer, Hash)>] PaginatedUserList data, response status code and response headers
@@ -3943,10 +4000,6 @@ module Authentik::Api
3943
4000
  if @api_client.config.debugging
3944
4001
  @api_client.config.logger.debug 'Calling API: CoreApi.core_users_list ...'
3945
4002
  end
3946
- allowable_values = ["external", "internal", "internal_service_account", "service_account"]
3947
- if @api_client.config.client_side_validation && opts[:'type'] && !opts[:'type'].all? { |item| allowable_values.include?(item) }
3948
- fail ArgumentError, "invalid value for \"type\", must include one of #{allowable_values}"
3949
- end
3950
4003
  # resource path
3951
4004
  local_var_path = '/core/users/'
3952
4005
 
@@ -4537,6 +4590,78 @@ module Authentik::Api
4537
4590
  return data, status_code, headers
4538
4591
  end
4539
4592
 
4593
+ # Set a user's password from a pre-hashed Django password value. Submit the Django password hash in the shared ``password`` request field. This updates authentik's local password verifier only. It does not attempt to propagate the password change to LDAP or Kerberos because no raw password is available from the request payload.
4594
+ # @param id [Integer] A unique integer value identifying this User.
4595
+ # @param user_password_hash_set_request [UserPasswordHashSetRequest]
4596
+ # @param [Hash] opts the optional parameters
4597
+ # @return [nil]
4598
+ def core_users_set_password_hash_create(id, user_password_hash_set_request, opts = {})
4599
+ core_users_set_password_hash_create_with_http_info(id, user_password_hash_set_request, opts)
4600
+ nil
4601
+ end
4602
+
4603
+ # Set a user&#39;s password from a pre-hashed Django password value. Submit the Django password hash in the shared &#x60;&#x60;password&#x60;&#x60; request field. This updates authentik&#39;s local password verifier only. It does not attempt to propagate the password change to LDAP or Kerberos because no raw password is available from the request payload.
4604
+ # @param id [Integer] A unique integer value identifying this User.
4605
+ # @param user_password_hash_set_request [UserPasswordHashSetRequest]
4606
+ # @param [Hash] opts the optional parameters
4607
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4608
+ def core_users_set_password_hash_create_with_http_info(id, user_password_hash_set_request, opts = {})
4609
+ if @api_client.config.debugging
4610
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_set_password_hash_create ...'
4611
+ end
4612
+ # verify the required parameter 'id' is set
4613
+ if @api_client.config.client_side_validation && id.nil?
4614
+ fail ArgumentError, "Missing the required parameter 'id' when calling CoreApi.core_users_set_password_hash_create"
4615
+ end
4616
+ # verify the required parameter 'user_password_hash_set_request' is set
4617
+ if @api_client.config.client_side_validation && user_password_hash_set_request.nil?
4618
+ fail ArgumentError, "Missing the required parameter 'user_password_hash_set_request' when calling CoreApi.core_users_set_password_hash_create"
4619
+ end
4620
+ # resource path
4621
+ local_var_path = '/core/users/{id}/set_password_hash/'.sub('{id}', CGI.escape(id.to_s))
4622
+
4623
+ # query parameters
4624
+ query_params = opts[:query_params] || {}
4625
+
4626
+ # header parameters
4627
+ header_params = opts[:header_params] || {}
4628
+ # HTTP header 'Accept' (if needed)
4629
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
4630
+ # HTTP header 'Content-Type'
4631
+ content_type = @api_client.select_header_content_type(['application/json'])
4632
+ if !content_type.nil?
4633
+ header_params['Content-Type'] = content_type
4634
+ end
4635
+
4636
+ # form parameters
4637
+ form_params = opts[:form_params] || {}
4638
+
4639
+ # http body (model)
4640
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_password_hash_set_request)
4641
+
4642
+ # return_type
4643
+ return_type = opts[:debug_return_type]
4644
+
4645
+ # auth_names
4646
+ auth_names = opts[:debug_auth_names] || ['authentik']
4647
+
4648
+ new_options = opts.merge(
4649
+ :operation => :"CoreApi.core_users_set_password_hash_create",
4650
+ :header_params => header_params,
4651
+ :query_params => query_params,
4652
+ :form_params => form_params,
4653
+ :body => post_body,
4654
+ :auth_names => auth_names,
4655
+ :return_type => return_type
4656
+ )
4657
+
4658
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4659
+ if @api_client.config.debugging
4660
+ @api_client.config.logger.debug "API called: CoreApi#core_users_set_password_hash_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4661
+ end
4662
+ return data, status_code, headers
4663
+ end
4664
+
4540
4665
  # User Viewset
4541
4666
  # @param id [Integer] A unique integer value identifying this User.
4542
4667
  # @param user_request [UserRequest]
@@ -209,7 +209,7 @@ module Authentik::Api
209
209
  # CertificateKeyPair Viewset
210
210
  # @param [Hash] opts the optional parameters
211
211
  # @option opts [Boolean] :has_key Only return certificate-key pairs with keys
212
- # @option opts [Array<String>] :key_type Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. &#39;?key_type&#x3D;rsa&amp;key_type&#x3D;ec&#39;)
212
+ # @option opts [Array<KeyTypeEnum>] :key_type
213
213
  # @option opts [String] :managed
214
214
  # @option opts [String] :name
215
215
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -225,7 +225,7 @@ module Authentik::Api
225
225
  # CertificateKeyPair Viewset
226
226
  # @param [Hash] opts the optional parameters
227
227
  # @option opts [Boolean] :has_key Only return certificate-key pairs with keys
228
- # @option opts [Array<String>] :key_type Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. &#39;?key_type&#x3D;rsa&amp;key_type&#x3D;ec&#39;)
228
+ # @option opts [Array<KeyTypeEnum>] :key_type
229
229
  # @option opts [String] :managed
230
230
  # @option opts [String] :name
231
231
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -237,10 +237,6 @@ module Authentik::Api
237
237
  if @api_client.config.debugging
238
238
  @api_client.config.logger.debug 'Calling API: CryptoApi.crypto_certificatekeypairs_list ...'
239
239
  end
240
- allowable_values = ["dsa", "ec", "ed25519", "ed448", "rsa"]
241
- if @api_client.config.client_side_validation && opts[:'key_type'] && !opts[:'key_type'].all? { |item| allowable_values.include?(item) }
242
- fail ArgumentError, "invalid value for \"key_type\", must include one of #{allowable_values}"
243
- end
244
240
  # resource path
245
241
  local_var_path = '/crypto/certificatekeypairs/'
246
242