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
@@ -3683,7 +3683,7 @@ module Authentik::Api
3683
3683
  # Kerberos Source Viewset
3684
3684
  # @param [Hash] opts the optional parameters
3685
3685
  # @option opts [Boolean] :enabled
3686
- # @option opts [String] :kadmin_type KAdmin server type
3686
+ # @option opts [KadminTypeEnum] :kadmin_type
3687
3687
  # @option opts [String] :name
3688
3688
  # @option opts [String] :ordering Which field to use when ordering the results.
3689
3689
  # @option opts [Integer] :page A page number within the paginated result set.
@@ -3706,7 +3706,7 @@ module Authentik::Api
3706
3706
  # Kerberos Source Viewset
3707
3707
  # @param [Hash] opts the optional parameters
3708
3708
  # @option opts [Boolean] :enabled
3709
- # @option opts [String] :kadmin_type KAdmin server type
3709
+ # @option opts [KadminTypeEnum] :kadmin_type
3710
3710
  # @option opts [String] :name
3711
3711
  # @option opts [String] :ordering Which field to use when ordering the results.
3712
3712
  # @option opts [Integer] :page A page number within the paginated result set.
@@ -3725,10 +3725,6 @@ module Authentik::Api
3725
3725
  if @api_client.config.debugging
3726
3726
  @api_client.config.logger.debug 'Calling API: SourcesApi.sources_kerberos_list ...'
3727
3727
  end
3728
- allowable_values = ["Heimdal", "MIT"]
3729
- if @api_client.config.client_side_validation && opts[:'kadmin_type'] && !allowable_values.include?(opts[:'kadmin_type'])
3730
- fail ArgumentError, "invalid value for \"kadmin_type\", must be one of #{allowable_values}"
3731
- end
3732
3728
  # resource path
3733
3729
  local_var_path = '/sources/kerberos/'
3734
3730
 
@@ -4902,20 +4898,20 @@ module Authentik::Api
4902
4898
  # @option opts [String] :consumer_key
4903
4899
  # @option opts [Boolean] :enabled
4904
4900
  # @option opts [String] :enrollment_flow
4905
- # @option opts [String] :group_matching_mode How the source determines if an existing group should be used or a new group created.
4901
+ # @option opts [GroupMatchingModeEnum] :group_matching_mode
4906
4902
  # @option opts [Boolean] :has_jwks Only return sources with JWKS data
4907
4903
  # @option opts [String] :name
4908
4904
  # @option opts [String] :ordering Which field to use when ordering the results.
4909
4905
  # @option opts [Integer] :page A page number within the paginated result set.
4910
4906
  # @option opts [Integer] :page_size Number of results to return per page.
4911
4907
  # @option opts [String] :pbm_uuid
4912
- # @option opts [String] :policy_engine_mode
4908
+ # @option opts [PolicyEngineMode] :policy_engine_mode
4913
4909
  # @option opts [String] :profile_url
4914
4910
  # @option opts [String] :provider_type
4915
4911
  # @option opts [String] :request_token_url
4916
4912
  # @option opts [String] :search A search term.
4917
4913
  # @option opts [String] :slug
4918
- # @option opts [String] :user_matching_mode How the source determines if an existing user should be authenticated or a new user enrolled.
4914
+ # @option opts [UserMatchingModeEnum] :user_matching_mode
4919
4915
  # @return [PaginatedOAuthSourceList]
4920
4916
  def sources_oauth_list(opts = {})
4921
4917
  data, _status_code, _headers = sources_oauth_list_with_http_info(opts)
@@ -4931,37 +4927,25 @@ module Authentik::Api
4931
4927
  # @option opts [String] :consumer_key
4932
4928
  # @option opts [Boolean] :enabled
4933
4929
  # @option opts [String] :enrollment_flow
4934
- # @option opts [String] :group_matching_mode How the source determines if an existing group should be used or a new group created.
4930
+ # @option opts [GroupMatchingModeEnum] :group_matching_mode
4935
4931
  # @option opts [Boolean] :has_jwks Only return sources with JWKS data
4936
4932
  # @option opts [String] :name
4937
4933
  # @option opts [String] :ordering Which field to use when ordering the results.
4938
4934
  # @option opts [Integer] :page A page number within the paginated result set.
4939
4935
  # @option opts [Integer] :page_size Number of results to return per page.
4940
4936
  # @option opts [String] :pbm_uuid
4941
- # @option opts [String] :policy_engine_mode
4937
+ # @option opts [PolicyEngineMode] :policy_engine_mode
4942
4938
  # @option opts [String] :profile_url
4943
4939
  # @option opts [String] :provider_type
4944
4940
  # @option opts [String] :request_token_url
4945
4941
  # @option opts [String] :search A search term.
4946
4942
  # @option opts [String] :slug
4947
- # @option opts [String] :user_matching_mode How the source determines if an existing user should be authenticated or a new user enrolled.
4943
+ # @option opts [UserMatchingModeEnum] :user_matching_mode
4948
4944
  # @return [Array<(PaginatedOAuthSourceList, Integer, Hash)>] PaginatedOAuthSourceList data, response status code and response headers
4949
4945
  def sources_oauth_list_with_http_info(opts = {})
4950
4946
  if @api_client.config.debugging
4951
4947
  @api_client.config.logger.debug 'Calling API: SourcesApi.sources_oauth_list ...'
4952
4948
  end
4953
- allowable_values = ["identifier", "name_deny", "name_link"]
4954
- if @api_client.config.client_side_validation && opts[:'group_matching_mode'] && !allowable_values.include?(opts[:'group_matching_mode'])
4955
- fail ArgumentError, "invalid value for \"group_matching_mode\", must be one of #{allowable_values}"
4956
- end
4957
- allowable_values = ["all", "any"]
4958
- if @api_client.config.client_side_validation && opts[:'policy_engine_mode'] && !allowable_values.include?(opts[:'policy_engine_mode'])
4959
- fail ArgumentError, "invalid value for \"policy_engine_mode\", must be one of #{allowable_values}"
4960
- end
4961
- allowable_values = ["email_deny", "email_link", "identifier", "username_deny", "username_link"]
4962
- if @api_client.config.client_side_validation && opts[:'user_matching_mode'] && !allowable_values.include?(opts[:'user_matching_mode'])
4963
- fail ArgumentError, "invalid value for \"user_matching_mode\", must be one of #{allowable_values}"
4964
- end
4965
4949
  # resource path
4966
4950
  local_var_path = '/sources/oauth/'
4967
4951
 
@@ -5477,16 +5461,16 @@ module Authentik::Api
5477
5461
  # @option opts [String] :client_id
5478
5462
  # @option opts [Boolean] :enabled
5479
5463
  # @option opts [String] :enrollment_flow
5480
- # @option opts [String] :group_matching_mode How the source determines if an existing group should be used or a new group created.
5464
+ # @option opts [GroupMatchingModeEnum] :group_matching_mode
5481
5465
  # @option opts [String] :name
5482
5466
  # @option opts [String] :ordering Which field to use when ordering the results.
5483
5467
  # @option opts [Integer] :page A page number within the paginated result set.
5484
5468
  # @option opts [Integer] :page_size Number of results to return per page.
5485
5469
  # @option opts [String] :pbm_uuid
5486
- # @option opts [String] :policy_engine_mode
5470
+ # @option opts [PolicyEngineMode] :policy_engine_mode
5487
5471
  # @option opts [String] :search A search term.
5488
5472
  # @option opts [String] :slug
5489
- # @option opts [String] :user_matching_mode How the source determines if an existing user should be authenticated or a new user enrolled.
5473
+ # @option opts [UserMatchingModeEnum] :user_matching_mode
5490
5474
  # @return [PaginatedPlexSourceList]
5491
5475
  def sources_plex_list(opts = {})
5492
5476
  data, _status_code, _headers = sources_plex_list_with_http_info(opts)
@@ -5500,33 +5484,21 @@ module Authentik::Api
5500
5484
  # @option opts [String] :client_id
5501
5485
  # @option opts [Boolean] :enabled
5502
5486
  # @option opts [String] :enrollment_flow
5503
- # @option opts [String] :group_matching_mode How the source determines if an existing group should be used or a new group created.
5487
+ # @option opts [GroupMatchingModeEnum] :group_matching_mode
5504
5488
  # @option opts [String] :name
5505
5489
  # @option opts [String] :ordering Which field to use when ordering the results.
5506
5490
  # @option opts [Integer] :page A page number within the paginated result set.
5507
5491
  # @option opts [Integer] :page_size Number of results to return per page.
5508
5492
  # @option opts [String] :pbm_uuid
5509
- # @option opts [String] :policy_engine_mode
5493
+ # @option opts [PolicyEngineMode] :policy_engine_mode
5510
5494
  # @option opts [String] :search A search term.
5511
5495
  # @option opts [String] :slug
5512
- # @option opts [String] :user_matching_mode How the source determines if an existing user should be authenticated or a new user enrolled.
5496
+ # @option opts [UserMatchingModeEnum] :user_matching_mode
5513
5497
  # @return [Array<(PaginatedPlexSourceList, Integer, Hash)>] PaginatedPlexSourceList data, response status code and response headers
5514
5498
  def sources_plex_list_with_http_info(opts = {})
5515
5499
  if @api_client.config.debugging
5516
5500
  @api_client.config.logger.debug 'Calling API: SourcesApi.sources_plex_list ...'
5517
5501
  end
5518
- allowable_values = ["identifier", "name_deny", "name_link"]
5519
- if @api_client.config.client_side_validation && opts[:'group_matching_mode'] && !allowable_values.include?(opts[:'group_matching_mode'])
5520
- fail ArgumentError, "invalid value for \"group_matching_mode\", must be one of #{allowable_values}"
5521
- end
5522
- allowable_values = ["all", "any"]
5523
- if @api_client.config.client_side_validation && opts[:'policy_engine_mode'] && !allowable_values.include?(opts[:'policy_engine_mode'])
5524
- fail ArgumentError, "invalid value for \"policy_engine_mode\", must be one of #{allowable_values}"
5525
- end
5526
- allowable_values = ["email_deny", "email_link", "identifier", "username_deny", "username_link"]
5527
- if @api_client.config.client_side_validation && opts[:'user_matching_mode'] && !allowable_values.include?(opts[:'user_matching_mode'])
5528
- fail ArgumentError, "invalid value for \"user_matching_mode\", must be one of #{allowable_values}"
5529
- end
5530
5502
  # resource path
5531
5503
  local_var_path = '/sources/plex/'
5532
5504
 
@@ -6111,22 +6083,23 @@ module Authentik::Api
6111
6083
  # @param [Hash] opts the optional parameters
6112
6084
  # @option opts [Boolean] :allow_idp_initiated
6113
6085
  # @option opts [String] :authentication_flow
6114
- # @option opts [String] :binding_type
6115
- # @option opts [String] :digest_algorithm
6086
+ # @option opts [BindingTypeEnum] :binding_type
6087
+ # @option opts [DigestAlgorithmEnum] :digest_algorithm
6116
6088
  # @option opts [Boolean] :enabled
6117
6089
  # @option opts [String] :enrollment_flow
6090
+ # @option opts [Boolean] :force_authn
6118
6091
  # @option opts [String] :issuer
6119
6092
  # @option opts [String] :managed
6120
6093
  # @option opts [String] :name
6121
- # @option opts [String] :name_id_policy NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent.
6094
+ # @option opts [SAMLNameIDPolicyEnum] :name_id_policy
6122
6095
  # @option opts [String] :ordering Which field to use when ordering the results.
6123
6096
  # @option opts [Integer] :page A page number within the paginated result set.
6124
6097
  # @option opts [Integer] :page_size Number of results to return per page.
6125
6098
  # @option opts [String] :pbm_uuid
6126
- # @option opts [String] :policy_engine_mode
6099
+ # @option opts [PolicyEngineMode] :policy_engine_mode
6127
6100
  # @option opts [String] :pre_authentication_flow
6128
6101
  # @option opts [String] :search A search term.
6129
- # @option opts [String] :signature_algorithm
6102
+ # @option opts [SignatureAlgorithmEnum] :signature_algorithm
6130
6103
  # @option opts [Boolean] :signed_assertion
6131
6104
  # @option opts [Boolean] :signed_response
6132
6105
  # @option opts [String] :signing_kp
@@ -6134,7 +6107,7 @@ module Authentik::Api
6134
6107
  # @option opts [String] :slug
6135
6108
  # @option opts [String] :sso_url
6136
6109
  # @option opts [String] :temporary_user_delete_after
6137
- # @option opts [String] :user_matching_mode How the source determines if an existing user should be authenticated or a new user enrolled.
6110
+ # @option opts [UserMatchingModeEnum] :user_matching_mode
6138
6111
  # @option opts [String] :verification_kp
6139
6112
  # @return [PaginatedSAMLSourceList]
6140
6113
  def sources_saml_list(opts = {})
@@ -6146,22 +6119,23 @@ module Authentik::Api
6146
6119
  # @param [Hash] opts the optional parameters
6147
6120
  # @option opts [Boolean] :allow_idp_initiated
6148
6121
  # @option opts [String] :authentication_flow
6149
- # @option opts [String] :binding_type
6150
- # @option opts [String] :digest_algorithm
6122
+ # @option opts [BindingTypeEnum] :binding_type
6123
+ # @option opts [DigestAlgorithmEnum] :digest_algorithm
6151
6124
  # @option opts [Boolean] :enabled
6152
6125
  # @option opts [String] :enrollment_flow
6126
+ # @option opts [Boolean] :force_authn
6153
6127
  # @option opts [String] :issuer
6154
6128
  # @option opts [String] :managed
6155
6129
  # @option opts [String] :name
6156
- # @option opts [String] :name_id_policy NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent.
6130
+ # @option opts [SAMLNameIDPolicyEnum] :name_id_policy
6157
6131
  # @option opts [String] :ordering Which field to use when ordering the results.
6158
6132
  # @option opts [Integer] :page A page number within the paginated result set.
6159
6133
  # @option opts [Integer] :page_size Number of results to return per page.
6160
6134
  # @option opts [String] :pbm_uuid
6161
- # @option opts [String] :policy_engine_mode
6135
+ # @option opts [PolicyEngineMode] :policy_engine_mode
6162
6136
  # @option opts [String] :pre_authentication_flow
6163
6137
  # @option opts [String] :search A search term.
6164
- # @option opts [String] :signature_algorithm
6138
+ # @option opts [SignatureAlgorithmEnum] :signature_algorithm
6165
6139
  # @option opts [Boolean] :signed_assertion
6166
6140
  # @option opts [Boolean] :signed_response
6167
6141
  # @option opts [String] :signing_kp
@@ -6169,37 +6143,13 @@ module Authentik::Api
6169
6143
  # @option opts [String] :slug
6170
6144
  # @option opts [String] :sso_url
6171
6145
  # @option opts [String] :temporary_user_delete_after
6172
- # @option opts [String] :user_matching_mode How the source determines if an existing user should be authenticated or a new user enrolled.
6146
+ # @option opts [UserMatchingModeEnum] :user_matching_mode
6173
6147
  # @option opts [String] :verification_kp
6174
6148
  # @return [Array<(PaginatedSAMLSourceList, Integer, Hash)>] PaginatedSAMLSourceList data, response status code and response headers
6175
6149
  def sources_saml_list_with_http_info(opts = {})
6176
6150
  if @api_client.config.debugging
6177
6151
  @api_client.config.logger.debug 'Calling API: SourcesApi.sources_saml_list ...'
6178
6152
  end
6179
- allowable_values = ["POST", "POST_AUTO", "REDIRECT"]
6180
- if @api_client.config.client_side_validation && opts[:'binding_type'] && !allowable_values.include?(opts[:'binding_type'])
6181
- fail ArgumentError, "invalid value for \"binding_type\", must be one of #{allowable_values}"
6182
- end
6183
- allowable_values = ["http://www.w3.org/2000/09/xmldsig#sha1", "http://www.w3.org/2001/04/xmldsig-more#sha384", "http://www.w3.org/2001/04/xmlenc#sha256", "http://www.w3.org/2001/04/xmlenc#sha512"]
6184
- if @api_client.config.client_side_validation && opts[:'digest_algorithm'] && !allowable_values.include?(opts[:'digest_algorithm'])
6185
- fail ArgumentError, "invalid value for \"digest_algorithm\", must be one of #{allowable_values}"
6186
- end
6187
- allowable_values = ["urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName", "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress", "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified", "urn:oasis:names:tc:SAML:2.0:nameid-format:WindowsDomainQualifiedName", "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent", "urn:oasis:names:tc:SAML:2.0:nameid-format:transient"]
6188
- if @api_client.config.client_side_validation && opts[:'name_id_policy'] && !allowable_values.include?(opts[:'name_id_policy'])
6189
- fail ArgumentError, "invalid value for \"name_id_policy\", must be one of #{allowable_values}"
6190
- end
6191
- allowable_values = ["all", "any"]
6192
- if @api_client.config.client_side_validation && opts[:'policy_engine_mode'] && !allowable_values.include?(opts[:'policy_engine_mode'])
6193
- fail ArgumentError, "invalid value for \"policy_engine_mode\", must be one of #{allowable_values}"
6194
- end
6195
- allowable_values = ["http://www.w3.org/2000/09/xmldsig#dsa-sha1", "http://www.w3.org/2000/09/xmldsig#rsa-sha1", "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1", "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256", "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384", "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512", "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384", "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"]
6196
- if @api_client.config.client_side_validation && opts[:'signature_algorithm'] && !allowable_values.include?(opts[:'signature_algorithm'])
6197
- fail ArgumentError, "invalid value for \"signature_algorithm\", must be one of #{allowable_values}"
6198
- end
6199
- allowable_values = ["email_deny", "email_link", "identifier", "username_deny", "username_link"]
6200
- if @api_client.config.client_side_validation && opts[:'user_matching_mode'] && !allowable_values.include?(opts[:'user_matching_mode'])
6201
- fail ArgumentError, "invalid value for \"user_matching_mode\", must be one of #{allowable_values}"
6202
- end
6203
6153
  # resource path
6204
6154
  local_var_path = '/sources/saml/'
6205
6155
 
@@ -6211,6 +6161,7 @@ module Authentik::Api
6211
6161
  query_params[:'digest_algorithm'] = opts[:'digest_algorithm'] if !opts[:'digest_algorithm'].nil?
6212
6162
  query_params[:'enabled'] = opts[:'enabled'] if !opts[:'enabled'].nil?
6213
6163
  query_params[:'enrollment_flow'] = opts[:'enrollment_flow'] if !opts[:'enrollment_flow'].nil?
6164
+ query_params[:'force_authn'] = opts[:'force_authn'] if !opts[:'force_authn'].nil?
6214
6165
  query_params[:'issuer'] = opts[:'issuer'] if !opts[:'issuer'].nil?
6215
6166
  query_params[:'managed'] = opts[:'managed'] if !opts[:'managed'].nil?
6216
6167
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
@@ -8190,17 +8141,17 @@ module Authentik::Api
8190
8141
  # @option opts [String] :bot_username
8191
8142
  # @option opts [Boolean] :enabled
8192
8143
  # @option opts [String] :enrollment_flow
8193
- # @option opts [String] :group_matching_mode How the source determines if an existing group should be used or a new group created.
8144
+ # @option opts [GroupMatchingModeEnum] :group_matching_mode
8194
8145
  # @option opts [String] :name
8195
8146
  # @option opts [String] :ordering Which field to use when ordering the results.
8196
8147
  # @option opts [Integer] :page A page number within the paginated result set.
8197
8148
  # @option opts [Integer] :page_size Number of results to return per page.
8198
8149
  # @option opts [String] :pbm_uuid
8199
- # @option opts [String] :policy_engine_mode
8150
+ # @option opts [PolicyEngineMode] :policy_engine_mode
8200
8151
  # @option opts [Boolean] :request_message_access
8201
8152
  # @option opts [String] :search A search term.
8202
8153
  # @option opts [String] :slug
8203
- # @option opts [String] :user_matching_mode How the source determines if an existing user should be authenticated or a new user enrolled.
8154
+ # @option opts [UserMatchingModeEnum] :user_matching_mode
8204
8155
  # @return [PaginatedTelegramSourceList]
8205
8156
  def sources_telegram_list(opts = {})
8206
8157
  data, _status_code, _headers = sources_telegram_list_with_http_info(opts)
@@ -8213,34 +8164,22 @@ module Authentik::Api
8213
8164
  # @option opts [String] :bot_username
8214
8165
  # @option opts [Boolean] :enabled
8215
8166
  # @option opts [String] :enrollment_flow
8216
- # @option opts [String] :group_matching_mode How the source determines if an existing group should be used or a new group created.
8167
+ # @option opts [GroupMatchingModeEnum] :group_matching_mode
8217
8168
  # @option opts [String] :name
8218
8169
  # @option opts [String] :ordering Which field to use when ordering the results.
8219
8170
  # @option opts [Integer] :page A page number within the paginated result set.
8220
8171
  # @option opts [Integer] :page_size Number of results to return per page.
8221
8172
  # @option opts [String] :pbm_uuid
8222
- # @option opts [String] :policy_engine_mode
8173
+ # @option opts [PolicyEngineMode] :policy_engine_mode
8223
8174
  # @option opts [Boolean] :request_message_access
8224
8175
  # @option opts [String] :search A search term.
8225
8176
  # @option opts [String] :slug
8226
- # @option opts [String] :user_matching_mode How the source determines if an existing user should be authenticated or a new user enrolled.
8177
+ # @option opts [UserMatchingModeEnum] :user_matching_mode
8227
8178
  # @return [Array<(PaginatedTelegramSourceList, Integer, Hash)>] PaginatedTelegramSourceList data, response status code and response headers
8228
8179
  def sources_telegram_list_with_http_info(opts = {})
8229
8180
  if @api_client.config.debugging
8230
8181
  @api_client.config.logger.debug 'Calling API: SourcesApi.sources_telegram_list ...'
8231
8182
  end
8232
- allowable_values = ["identifier", "name_deny", "name_link"]
8233
- if @api_client.config.client_side_validation && opts[:'group_matching_mode'] && !allowable_values.include?(opts[:'group_matching_mode'])
8234
- fail ArgumentError, "invalid value for \"group_matching_mode\", must be one of #{allowable_values}"
8235
- end
8236
- allowable_values = ["all", "any"]
8237
- if @api_client.config.client_side_validation && opts[:'policy_engine_mode'] && !allowable_values.include?(opts[:'policy_engine_mode'])
8238
- fail ArgumentError, "invalid value for \"policy_engine_mode\", must be one of #{allowable_values}"
8239
- end
8240
- allowable_values = ["email_deny", "email_link", "identifier", "username_deny", "username_link"]
8241
- if @api_client.config.client_side_validation && opts[:'user_matching_mode'] && !allowable_values.include?(opts[:'user_matching_mode'])
8242
- fail ArgumentError, "invalid value for \"user_matching_mode\", must be one of #{allowable_values}"
8243
- end
8244
8183
  # resource path
8245
8184
  local_var_path = '/sources/telegram/'
8246
8185
 
@@ -13,9 +13,70 @@ module Authentik::Api
13
13
  def initialize(api_client = ApiClient.default)
14
14
  @api_client = api_client
15
15
  end
16
+ # SSFStream Viewset
17
+ # @param uuid [String] A UUID string identifying this SSF Stream.
18
+ # @param [Hash] opts the optional parameters
19
+ # @return [nil]
20
+ def ssf_streams_destroy(uuid, opts = {})
21
+ ssf_streams_destroy_with_http_info(uuid, opts)
22
+ nil
23
+ end
24
+
25
+ # SSFStream Viewset
26
+ # @param uuid [String] A UUID string identifying this SSF Stream.
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
29
+ def ssf_streams_destroy_with_http_info(uuid, opts = {})
30
+ if @api_client.config.debugging
31
+ @api_client.config.logger.debug 'Calling API: SsfApi.ssf_streams_destroy ...'
32
+ end
33
+ # verify the required parameter 'uuid' is set
34
+ if @api_client.config.client_side_validation && uuid.nil?
35
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling SsfApi.ssf_streams_destroy"
36
+ end
37
+ # resource path
38
+ local_var_path = '/ssf/streams/{uuid}/'.sub('{uuid}', CGI.escape(uuid.to_s))
39
+
40
+ # query parameters
41
+ query_params = opts[:query_params] || {}
42
+
43
+ # header parameters
44
+ header_params = opts[:header_params] || {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
47
+
48
+ # form parameters
49
+ form_params = opts[:form_params] || {}
50
+
51
+ # http body (model)
52
+ post_body = opts[:debug_body]
53
+
54
+ # return_type
55
+ return_type = opts[:debug_return_type]
56
+
57
+ # auth_names
58
+ auth_names = opts[:debug_auth_names] || ['authentik']
59
+
60
+ new_options = opts.merge(
61
+ :operation => :"SsfApi.ssf_streams_destroy",
62
+ :header_params => header_params,
63
+ :query_params => query_params,
64
+ :form_params => form_params,
65
+ :body => post_body,
66
+ :auth_names => auth_names,
67
+ :return_type => return_type
68
+ )
69
+
70
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: SsfApi#ssf_streams_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+
16
77
  # SSFStream Viewset
17
78
  # @param [Hash] opts the optional parameters
18
- # @option opts [String] :delivery_method
79
+ # @option opts [DeliveryMethodEnum] :delivery_method
19
80
  # @option opts [String] :endpoint_url
20
81
  # @option opts [String] :ordering Which field to use when ordering the results.
21
82
  # @option opts [Integer] :page A page number within the paginated result set.
@@ -30,7 +91,7 @@ module Authentik::Api
30
91
 
31
92
  # SSFStream Viewset
32
93
  # @param [Hash] opts the optional parameters
33
- # @option opts [String] :delivery_method
94
+ # @option opts [DeliveryMethodEnum] :delivery_method
34
95
  # @option opts [String] :endpoint_url
35
96
  # @option opts [String] :ordering Which field to use when ordering the results.
36
97
  # @option opts [Integer] :page A page number within the paginated result set.
@@ -42,10 +103,6 @@ module Authentik::Api
42
103
  if @api_client.config.debugging
43
104
  @api_client.config.logger.debug 'Calling API: SsfApi.ssf_streams_list ...'
44
105
  end
45
- allowable_values = ["https://schemas.openid.net/secevent/risc/delivery-method/poll", "https://schemas.openid.net/secevent/risc/delivery-method/push"]
46
- if @api_client.config.client_side_validation && opts[:'delivery_method'] && !allowable_values.include?(opts[:'delivery_method'])
47
- fail ArgumentError, "invalid value for \"delivery_method\", must be one of #{allowable_values}"
48
- end
49
106
  # resource path
50
107
  local_var_path = '/ssf/streams/'
51
108