authentik-api 2026.2.2 → 2026.5.0.rc1

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 (218) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/README_API.md +67 -15
  4. data/lib/authentik/api/api/admin_api.rb +5 -13
  5. data/lib/authentik/api/api/authenticators_api.rb +60 -60
  6. data/lib/authentik/api/api/core_api.rb +188 -63
  7. data/lib/authentik/api/api/crypto_api.rb +9 -13
  8. data/lib/authentik/api/api/endpoints_api.rb +1600 -679
  9. data/lib/authentik/api/api/enterprise_api.rb +5 -5
  10. data/lib/authentik/api/api/events_api.rb +141 -58
  11. data/lib/authentik/api/api/flows_api.rb +24 -106
  12. data/lib/authentik/api/api/lifecycle_api.rb +27 -18
  13. data/lib/authentik/api/api/managed_api.rb +79 -6
  14. data/lib/authentik/api/api/oauth2_api.rb +9 -9
  15. data/lib/authentik/api/api/outposts_api.rb +22 -22
  16. data/lib/authentik/api/api/policies_api.rb +57 -58
  17. data/lib/authentik/api/api/propertymappings_api.rb +79 -79
  18. data/lib/authentik/api/api/providers_api.rb +134 -196
  19. data/lib/authentik/api/api/rac_api.rb +10 -10
  20. data/lib/authentik/api/api/rbac_api.rb +15 -20
  21. data/lib/authentik/api/api/reports_api.rb +2 -2
  22. data/lib/authentik/api/api/schema_api.rb +4 -12
  23. data/lib/authentik/api/api/sources_api.rb +158 -219
  24. data/lib/authentik/api/api/ssf_api.rb +64 -7
  25. data/lib/authentik/api/api/stages_api.rb +723 -244
  26. data/lib/authentik/api/api/tasks_api.rb +11 -19
  27. data/lib/authentik/api/api/tenants_api.rb +10 -10
  28. data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
  29. data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
  30. data/lib/authentik/api/models/app_enum.rb +3 -2
  31. data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
  32. data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
  33. data/lib/authentik/api/models/application.rb +14 -4
  34. data/lib/authentik/api/models/application_request.rb +14 -4
  35. data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
  36. data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
  37. data/lib/authentik/api/models/authentication_enum.rb +2 -1
  38. data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
  39. data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
  40. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
  41. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
  42. data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
  43. data/lib/authentik/api/models/brand.rb +11 -1
  44. data/lib/authentik/api/models/brand_request.rb +11 -1
  45. data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
  46. data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
  47. data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
  48. data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
  49. data/lib/authentik/api/models/consent_stage.rb +1 -1
  50. data/lib/authentik/api/models/consent_stage_request.rb +1 -1
  51. data/lib/authentik/api/models/country_code_enum.rb +3 -3
  52. data/lib/authentik/api/models/current_brand.rb +10 -1
  53. data/lib/authentik/api/models/current_brand_flags.rb +31 -27
  54. data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
  55. data/lib/authentik/api/models/device_user_binding.rb +3 -45
  56. data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
  57. data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
  58. data/lib/authentik/api/models/event_stats.rb +187 -0
  59. data/lib/authentik/api/models/event_volume.rb +1 -1
  60. data/lib/authentik/api/models/events_requested_enum.rb +7 -1
  61. data/lib/authentik/api/models/force_binding_enum.rb +34 -0
  62. data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
  63. data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
  64. data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
  65. data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
  66. data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
  67. data/lib/authentik/api/models/grant_types_enum.rb +39 -0
  68. data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
  69. data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
  70. data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
  71. data/lib/authentik/api/models/key_type_enum.rb +3 -3
  72. data/lib/authentik/api/models/lang_enum.rb +131 -0
  73. data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
  74. data/lib/authentik/api/models/logout_url.rb +209 -0
  75. data/lib/authentik/api/models/model_enum.rb +3 -1
  76. data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
  77. data/lib/authentik/api/models/notification_rule.rb +1 -15
  78. data/lib/authentik/api/models/notification_transport.rb +13 -2
  79. data/lib/authentik/api/models/notification_transport_request.rb +13 -2
  80. data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
  81. data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
  82. data/lib/authentik/api/models/operating_system.rb +0 -17
  83. data/lib/authentik/api/models/operating_system_request.rb +2 -9
  84. data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
  85. data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
  86. data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
  87. data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
  88. data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
  89. data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
  90. data/lib/authentik/api/models/patched_application_request.rb +14 -4
  91. data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
  92. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
  93. data/lib/authentik/api/models/patched_brand_request.rb +11 -1
  94. data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
  95. data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
  96. data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
  97. data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
  98. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
  99. data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
  100. data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
  101. data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
  102. data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
  103. data/lib/authentik/api/models/policy_binding.rb +3 -45
  104. data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
  105. data/lib/authentik/api/models/redirect_uri.rb +13 -4
  106. data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
  107. data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
  108. data/lib/authentik/api/models/related_rule.rb +250 -0
  109. data/lib/authentik/api/models/saml_metadata.rb +0 -2
  110. data/lib/authentik/api/models/saml_provider.rb +98 -8
  111. data/lib/authentik/api/models/saml_provider_request.rb +17 -27
  112. data/lib/authentik/api/models/saml_source.rb +11 -1
  113. data/lib/authentik/api/models/saml_source_request.rb +11 -1
  114. data/lib/authentik/api/models/ssf_provider.rb +41 -4
  115. data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
  116. data/lib/authentik/api/models/ssf_stream.rb +10 -1
  117. data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
  118. data/lib/authentik/api/models/task.rb +1 -1
  119. data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
  120. data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
  121. data/lib/authentik/api/models/usage_enum.rb +33 -0
  122. data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
  123. data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
  124. data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
  125. data/lib/authentik/api/models/vendor_enum.rb +2 -1
  126. data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
  127. data/lib/authentik/api/version.rb +1 -1
  128. data/spec/api/admin_api_spec.rb +2 -2
  129. data/spec/api/core_api_spec.rb +27 -3
  130. data/spec/api/crypto_api_spec.rb +1 -1
  131. data/spec/api/endpoints_api_spec.rb +167 -0
  132. data/spec/api/events_api_spec.rb +33 -7
  133. data/spec/api/flows_api_spec.rb +4 -16
  134. data/spec/api/lifecycle_api_spec.rb +6 -3
  135. data/spec/api/managed_api_spec.rb +13 -0
  136. data/spec/api/policies_api_spec.rb +2 -1
  137. data/spec/api/providers_api_spec.rb +21 -19
  138. data/spec/api/schema_api_spec.rb +2 -2
  139. data/spec/api/sources_api_spec.rb +17 -16
  140. data/spec/api/ssf_api_spec.rb +12 -1
  141. data/spec/api/stages_api_spec.rb +117 -18
  142. data/spec/api/tasks_api_spec.rb +2 -2
  143. data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
  144. data/spec/models/account_lockdown_stage_spec.rb +96 -0
  145. data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
  146. data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
  147. data/spec/models/application_request_spec.rb +6 -0
  148. data/spec/models/application_spec.rb +6 -0
  149. data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
  150. data/spec/models/authenticator_validate_stage_spec.rb +30 -0
  151. data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
  152. data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
  153. data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
  154. data/spec/models/brand_request_spec.rb +6 -0
  155. data/spec/models/brand_spec.rb +6 -0
  156. data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
  157. data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
  158. data/spec/models/current_brand_flags_spec.rb +2 -2
  159. data/spec/models/current_brand_spec.rb +6 -0
  160. data/spec/models/event_matcher_policy_request_spec.rb +6 -0
  161. data/spec/models/event_matcher_policy_spec.rb +6 -0
  162. data/spec/models/event_stats_spec.rb +36 -0
  163. data/spec/models/force_binding_enum_spec.rb +24 -0
  164. data/spec/models/format_enum_spec.rb +24 -0
  165. data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
  166. data/spec/models/google_chrome_connector_request_spec.rb +48 -0
  167. data/spec/models/google_chrome_connector_spec.rb +78 -0
  168. data/spec/models/grant_types_enum_spec.rb +24 -0
  169. data/spec/models/group_ldap_source_connection_spec.rb +6 -0
  170. data/spec/models/invitation_send_email_request_spec.rb +48 -0
  171. data/spec/models/lang_enum_spec.rb +24 -0
  172. data/spec/models/lifecycle_iteration_spec.rb +2 -14
  173. data/spec/models/logout_url_spec.rb +60 -0
  174. data/spec/models/native_logout_challenge_spec.rb +13 -7
  175. data/spec/models/notification_transport_request_spec.rb +6 -0
  176. data/spec/models/notification_transport_spec.rb +6 -0
  177. data/spec/models/o_auth2_provider_request_spec.rb +6 -0
  178. data/spec/models/o_auth2_provider_spec.rb +6 -0
  179. data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
  180. data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
  181. data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
  182. data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
  183. data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
  184. data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
  185. data/spec/models/patched_application_request_spec.rb +6 -0
  186. data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
  187. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
  188. data/spec/models/patched_brand_request_spec.rb +6 -0
  189. data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
  190. data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
  191. data/spec/models/patched_notification_transport_request_spec.rb +6 -0
  192. data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
  193. data/spec/models/patched_saml_provider_request_spec.rb +7 -1
  194. data/spec/models/patched_saml_source_request_spec.rb +6 -0
  195. data/spec/models/patched_settings_request_flags_spec.rb +2 -2
  196. data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
  197. data/spec/models/redirect_uri_request_spec.rb +6 -0
  198. data/spec/models/redirect_uri_spec.rb +6 -0
  199. data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
  200. data/spec/models/related_rule_spec.rb +54 -0
  201. data/spec/models/saml_provider_request_spec.rb +7 -1
  202. data/spec/models/saml_provider_spec.rb +25 -1
  203. data/spec/models/saml_source_request_spec.rb +6 -0
  204. data/spec/models/saml_source_spec.rb +6 -0
  205. data/spec/models/ssf_provider_request_spec.rb +6 -0
  206. data/spec/models/ssf_provider_spec.rb +12 -0
  207. data/spec/models/ssf_stream_spec.rb +6 -0
  208. data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
  209. data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
  210. data/spec/models/transport_mode_enum_spec.rb +24 -0
  211. data/spec/models/usage_enum_spec.rb +24 -0
  212. data/spec/models/user_account_lockdown_request_spec.rb +30 -0
  213. data/spec/models/user_ldap_source_connection_spec.rb +6 -0
  214. data/spec/models/user_password_hash_set_request_spec.rb +30 -0
  215. data/spec/models/web_authn_hint_enum_spec.rb +24 -0
  216. data/spec/zeitwerk_spec.rb +34 -0
  217. metadata +113 -32
  218. data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
@@ -79,6 +79,9 @@ module Authentik::Api
79
79
  # Allows authentication flows initiated by the IdP. This can be a security risk, as no validation of the request ID is done.
80
80
  attr_accessor :allow_idp_initiated
81
81
 
82
+ # When enabled, the IdP will re-authenticate the user even if a session exists.
83
+ attr_accessor :force_authn
84
+
82
85
  # NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent.
83
86
  attr_accessor :name_id_policy
84
87
 
@@ -155,6 +158,7 @@ module Authentik::Api
155
158
  :'sso_url' => :'sso_url',
156
159
  :'slo_url' => :'slo_url',
157
160
  :'allow_idp_initiated' => :'allow_idp_initiated',
161
+ :'force_authn' => :'force_authn',
158
162
  :'name_id_policy' => :'name_id_policy',
159
163
  :'binding_type' => :'binding_type',
160
164
  :'verification_kp' => :'verification_kp',
@@ -207,6 +211,7 @@ module Authentik::Api
207
211
  :'sso_url' => :'String',
208
212
  :'slo_url' => :'String',
209
213
  :'allow_idp_initiated' => :'Boolean',
214
+ :'force_authn' => :'Boolean',
210
215
  :'name_id_policy' => :'SAMLNameIDPolicyEnum',
211
216
  :'binding_type' => :'BindingTypeEnum',
212
217
  :'verification_kp' => :'String',
@@ -382,6 +387,10 @@ module Authentik::Api
382
387
  self.allow_idp_initiated = attributes[:'allow_idp_initiated']
383
388
  end
384
389
 
390
+ if attributes.key?(:'force_authn')
391
+ self.force_authn = attributes[:'force_authn']
392
+ end
393
+
385
394
  if attributes.key?(:'name_id_policy')
386
395
  self.name_id_policy = attributes[:'name_id_policy']
387
396
  end
@@ -630,6 +639,7 @@ module Authentik::Api
630
639
  sso_url == o.sso_url &&
631
640
  slo_url == o.slo_url &&
632
641
  allow_idp_initiated == o.allow_idp_initiated &&
642
+ force_authn == o.force_authn &&
633
643
  name_id_policy == o.name_id_policy &&
634
644
  binding_type == o.binding_type &&
635
645
  verification_kp == o.verification_kp &&
@@ -651,7 +661,7 @@ module Authentik::Api
651
661
  # Calculates hash code according to all attributes.
652
662
  # @return [Integer] Hash code
653
663
  def hash
654
- [pk, name, slug, enabled, promoted, authentication_flow, enrollment_flow, user_property_mappings, group_property_mappings, component, verbose_name, verbose_name_plural, meta_model_name, policy_engine_mode, user_matching_mode, managed, user_path_template, icon, icon_url, icon_themed_urls, group_matching_mode, pre_authentication_flow, issuer, sso_url, slo_url, allow_idp_initiated, name_id_policy, binding_type, verification_kp, signing_kp, digest_algorithm, signature_algorithm, temporary_user_delete_after, encryption_kp, signed_assertion, signed_response].hash
664
+ [pk, name, slug, enabled, promoted, authentication_flow, enrollment_flow, user_property_mappings, group_property_mappings, component, verbose_name, verbose_name_plural, meta_model_name, policy_engine_mode, user_matching_mode, managed, user_path_template, icon, icon_url, icon_themed_urls, group_matching_mode, pre_authentication_flow, issuer, sso_url, slo_url, allow_idp_initiated, force_authn, name_id_policy, binding_type, verification_kp, signing_kp, digest_algorithm, signature_algorithm, temporary_user_delete_after, encryption_kp, signed_assertion, signed_response].hash
655
665
  end
656
666
 
657
667
  # Builds the object from hash
@@ -58,6 +58,9 @@ module Authentik::Api
58
58
  # Allows authentication flows initiated by the IdP. This can be a security risk, as no validation of the request ID is done.
59
59
  attr_accessor :allow_idp_initiated
60
60
 
61
+ # When enabled, the IdP will re-authenticate the user even if a session exists.
62
+ attr_accessor :force_authn
63
+
61
64
  # NameID Policy sent to the IdP. Can be unset, in which case no Policy is sent.
62
65
  attr_accessor :name_id_policy
63
66
 
@@ -126,6 +129,7 @@ module Authentik::Api
126
129
  :'sso_url' => :'sso_url',
127
130
  :'slo_url' => :'slo_url',
128
131
  :'allow_idp_initiated' => :'allow_idp_initiated',
132
+ :'force_authn' => :'force_authn',
129
133
  :'name_id_policy' => :'name_id_policy',
130
134
  :'binding_type' => :'binding_type',
131
135
  :'verification_kp' => :'verification_kp',
@@ -170,6 +174,7 @@ module Authentik::Api
170
174
  :'sso_url' => :'String',
171
175
  :'slo_url' => :'String',
172
176
  :'allow_idp_initiated' => :'Boolean',
177
+ :'force_authn' => :'Boolean',
173
178
  :'name_id_policy' => :'SAMLNameIDPolicyEnum',
174
179
  :'binding_type' => :'BindingTypeEnum',
175
180
  :'verification_kp' => :'String',
@@ -295,6 +300,10 @@ module Authentik::Api
295
300
  self.allow_idp_initiated = attributes[:'allow_idp_initiated']
296
301
  end
297
302
 
303
+ if attributes.key?(:'force_authn')
304
+ self.force_authn = attributes[:'force_authn']
305
+ end
306
+
298
307
  if attributes.key?(:'name_id_policy')
299
308
  self.name_id_policy = attributes[:'name_id_policy']
300
309
  end
@@ -510,6 +519,7 @@ module Authentik::Api
510
519
  sso_url == o.sso_url &&
511
520
  slo_url == o.slo_url &&
512
521
  allow_idp_initiated == o.allow_idp_initiated &&
522
+ force_authn == o.force_authn &&
513
523
  name_id_policy == o.name_id_policy &&
514
524
  binding_type == o.binding_type &&
515
525
  verification_kp == o.verification_kp &&
@@ -531,7 +541,7 @@ module Authentik::Api
531
541
  # Calculates hash code according to all attributes.
532
542
  # @return [Integer] Hash code
533
543
  def hash
534
- [name, slug, enabled, promoted, authentication_flow, enrollment_flow, user_property_mappings, group_property_mappings, policy_engine_mode, user_matching_mode, user_path_template, icon, group_matching_mode, pre_authentication_flow, issuer, sso_url, slo_url, allow_idp_initiated, name_id_policy, binding_type, verification_kp, signing_kp, digest_algorithm, signature_algorithm, temporary_user_delete_after, encryption_kp, signed_assertion, signed_response].hash
544
+ [name, slug, enabled, promoted, authentication_flow, enrollment_flow, user_property_mappings, group_property_mappings, policy_engine_mode, user_matching_mode, user_path_template, icon, group_matching_mode, pre_authentication_flow, issuer, sso_url, slo_url, allow_idp_initiated, force_authn, name_id_policy, binding_type, verification_kp, signing_kp, digest_algorithm, signature_algorithm, temporary_user_delete_after, encryption_kp, signed_assertion, signed_response].hash
535
545
  end
536
546
 
537
547
  # Builds the object from hash
@@ -33,10 +33,14 @@ module Authentik::Api
33
33
 
34
34
  attr_accessor :oidc_auth_providers
35
35
 
36
+ attr_accessor :oidc_auth_providers_obj
37
+
36
38
  attr_accessor :ssf_url
37
39
 
38
40
  attr_accessor :event_retention
39
41
 
42
+ attr_accessor :push_verify_certificates
43
+
40
44
  # Attribute mapping from ruby-style variable name to JSON key.
41
45
  def self.attribute_map
42
46
  {
@@ -49,8 +53,10 @@ module Authentik::Api
49
53
  :'signing_key' => :'signing_key',
50
54
  :'token_obj' => :'token_obj',
51
55
  :'oidc_auth_providers' => :'oidc_auth_providers',
56
+ :'oidc_auth_providers_obj' => :'oidc_auth_providers_obj',
52
57
  :'ssf_url' => :'ssf_url',
53
- :'event_retention' => :'event_retention'
58
+ :'event_retention' => :'event_retention',
59
+ :'push_verify_certificates' => :'push_verify_certificates'
54
60
  }
55
61
  end
56
62
 
@@ -76,8 +82,10 @@ module Authentik::Api
76
82
  :'signing_key' => :'String',
77
83
  :'token_obj' => :'Token',
78
84
  :'oidc_auth_providers' => :'Array<Integer>',
85
+ :'oidc_auth_providers_obj' => :'Array<Provider>',
79
86
  :'ssf_url' => :'String',
80
- :'event_retention' => :'String'
87
+ :'event_retention' => :'String',
88
+ :'push_verify_certificates' => :'Boolean'
81
89
  }
82
90
  end
83
91
 
@@ -158,6 +166,14 @@ module Authentik::Api
158
166
  end
159
167
  end
160
168
 
169
+ if attributes.key?(:'oidc_auth_providers_obj')
170
+ if (value = attributes[:'oidc_auth_providers_obj']).is_a?(Array)
171
+ self.oidc_auth_providers_obj = value
172
+ end
173
+ else
174
+ self.oidc_auth_providers_obj = nil
175
+ end
176
+
161
177
  if attributes.key?(:'ssf_url')
162
178
  self.ssf_url = attributes[:'ssf_url']
163
179
  else
@@ -167,6 +183,10 @@ module Authentik::Api
167
183
  if attributes.key?(:'event_retention')
168
184
  self.event_retention = attributes[:'event_retention']
169
185
  end
186
+
187
+ if attributes.key?(:'push_verify_certificates')
188
+ self.push_verify_certificates = attributes[:'push_verify_certificates']
189
+ end
170
190
  end
171
191
 
172
192
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -206,6 +226,10 @@ module Authentik::Api
206
226
  invalid_properties.push('invalid value for "token_obj", token_obj cannot be nil.')
207
227
  end
208
228
 
229
+ if @oidc_auth_providers_obj.nil?
230
+ invalid_properties.push('invalid value for "oidc_auth_providers_obj", oidc_auth_providers_obj cannot be nil.')
231
+ end
232
+
209
233
  invalid_properties
210
234
  end
211
235
 
@@ -221,6 +245,7 @@ module Authentik::Api
221
245
  return false if @meta_model_name.nil?
222
246
  return false if @signing_key.nil?
223
247
  return false if @token_obj.nil?
248
+ return false if @oidc_auth_providers_obj.nil?
224
249
  true
225
250
  end
226
251
 
@@ -304,6 +329,16 @@ module Authentik::Api
304
329
  @token_obj = token_obj
305
330
  end
306
331
 
332
+ # Custom attribute writer method with validation
333
+ # @param [Object] oidc_auth_providers_obj Value to be assigned
334
+ def oidc_auth_providers_obj=(oidc_auth_providers_obj)
335
+ if oidc_auth_providers_obj.nil?
336
+ fail ArgumentError, 'oidc_auth_providers_obj cannot be nil'
337
+ end
338
+
339
+ @oidc_auth_providers_obj = oidc_auth_providers_obj
340
+ end
341
+
307
342
  # Checks equality by comparing each attribute.
308
343
  # @param [Object] Object to be compared
309
344
  def ==(o)
@@ -318,8 +353,10 @@ module Authentik::Api
318
353
  signing_key == o.signing_key &&
319
354
  token_obj == o.token_obj &&
320
355
  oidc_auth_providers == o.oidc_auth_providers &&
356
+ oidc_auth_providers_obj == o.oidc_auth_providers_obj &&
321
357
  ssf_url == o.ssf_url &&
322
- event_retention == o.event_retention
358
+ event_retention == o.event_retention &&
359
+ push_verify_certificates == o.push_verify_certificates
323
360
  end
324
361
 
325
362
  # @see the `==` method
@@ -331,7 +368,7 @@ module Authentik::Api
331
368
  # Calculates hash code according to all attributes.
332
369
  # @return [Integer] Hash code
333
370
  def hash
334
- [pk, name, component, verbose_name, verbose_name_plural, meta_model_name, signing_key, token_obj, oidc_auth_providers, ssf_url, event_retention].hash
371
+ [pk, name, component, verbose_name, verbose_name_plural, meta_model_name, signing_key, token_obj, oidc_auth_providers, oidc_auth_providers_obj, ssf_url, event_retention, push_verify_certificates].hash
335
372
  end
336
373
 
337
374
  # Builds the object from hash
@@ -19,13 +19,16 @@ module Authentik::Api
19
19
 
20
20
  attr_accessor :event_retention
21
21
 
22
+ attr_accessor :push_verify_certificates
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'name' => :'name',
26
28
  :'signing_key' => :'signing_key',
27
29
  :'oidc_auth_providers' => :'oidc_auth_providers',
28
- :'event_retention' => :'event_retention'
30
+ :'event_retention' => :'event_retention',
31
+ :'push_verify_certificates' => :'push_verify_certificates'
29
32
  }
30
33
  end
31
34
 
@@ -45,7 +48,8 @@ module Authentik::Api
45
48
  :'name' => :'String',
46
49
  :'signing_key' => :'String',
47
50
  :'oidc_auth_providers' => :'Array<Integer>',
48
- :'event_retention' => :'String'
51
+ :'event_retention' => :'String',
52
+ :'push_verify_certificates' => :'Boolean'
49
53
  }
50
54
  end
51
55
 
@@ -92,6 +96,10 @@ module Authentik::Api
92
96
  if attributes.key?(:'event_retention')
93
97
  self.event_retention = attributes[:'event_retention']
94
98
  end
99
+
100
+ if attributes.key?(:'push_verify_certificates')
101
+ self.push_verify_certificates = attributes[:'push_verify_certificates']
102
+ end
95
103
  end
96
104
 
97
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -175,7 +183,8 @@ module Authentik::Api
175
183
  name == o.name &&
176
184
  signing_key == o.signing_key &&
177
185
  oidc_auth_providers == o.oidc_auth_providers &&
178
- event_retention == o.event_retention
186
+ event_retention == o.event_retention &&
187
+ push_verify_certificates == o.push_verify_certificates
179
188
  end
180
189
 
181
190
  # @see the `==` method
@@ -187,7 +196,7 @@ module Authentik::Api
187
196
  # Calculates hash code according to all attributes.
188
197
  # @return [Integer] Hash code
189
198
  def hash
190
- [name, signing_key, oidc_auth_providers, event_retention].hash
199
+ [name, signing_key, oidc_auth_providers, event_retention, push_verify_certificates].hash
191
200
  end
192
201
 
193
202
  # Builds the object from hash
@@ -12,6 +12,8 @@ module Authentik::Api
12
12
  class SSFStream < ApiModelBase
13
13
  attr_accessor :pk
14
14
 
15
+ attr_accessor :status
16
+
15
17
  attr_accessor :provider
16
18
 
17
19
  attr_accessor :provider_obj
@@ -54,6 +56,7 @@ module Authentik::Api
54
56
  def self.attribute_map
55
57
  {
56
58
  :'pk' => :'pk',
59
+ :'status' => :'status',
57
60
  :'provider' => :'provider',
58
61
  :'provider_obj' => :'provider_obj',
59
62
  :'delivery_method' => :'delivery_method',
@@ -79,6 +82,7 @@ module Authentik::Api
79
82
  def self.openapi_types
80
83
  {
81
84
  :'pk' => :'String',
85
+ :'status' => :'SSFStreamStatusEnum',
82
86
  :'provider' => :'Integer',
83
87
  :'provider_obj' => :'SSFProvider',
84
88
  :'delivery_method' => :'DeliveryMethodEnum',
@@ -119,6 +123,10 @@ module Authentik::Api
119
123
  self.pk = nil
120
124
  end
121
125
 
126
+ if attributes.key?(:'status')
127
+ self.status = attributes[:'status']
128
+ end
129
+
122
130
  if attributes.key?(:'provider')
123
131
  self.provider = attributes[:'provider']
124
132
  else
@@ -277,6 +285,7 @@ module Authentik::Api
277
285
  return true if self.equal?(o)
278
286
  self.class == o.class &&
279
287
  pk == o.pk &&
288
+ status == o.status &&
280
289
  provider == o.provider &&
281
290
  provider_obj == o.provider_obj &&
282
291
  delivery_method == o.delivery_method &&
@@ -296,7 +305,7 @@ module Authentik::Api
296
305
  # Calculates hash code according to all attributes.
297
306
  # @return [Integer] Hash code
298
307
  def hash
299
- [pk, provider, provider_obj, delivery_method, endpoint_url, events_requested, format, aud, iss].hash
308
+ [pk, status, provider, provider_obj, delivery_method, endpoint_url, events_requested, format, aud, iss].hash
300
309
  end
301
310
 
302
311
  # Builds the object from hash
@@ -0,0 +1,36 @@
1
+ =begin
2
+ This file is automatically generated by: https://openapi-generator.tech.
3
+ Any manual changes will be lost when the OpenAPI scheme changes.
4
+
5
+ =end
6
+
7
+ require 'date'
8
+ require 'time'
9
+
10
+ module Authentik::Api
11
+ class SSFStreamStatusEnum
12
+ ENABLED = "enabled".freeze
13
+ PAUSED = "paused".freeze
14
+ DISABLED = "disabled".freeze
15
+ DISABLED_DELETED = "disabled_deleted".freeze
16
+
17
+ def self.all_vars
18
+ @all_vars ||= [ENABLED, PAUSED, DISABLED, DISABLED_DELETED].freeze
19
+ end
20
+
21
+ # Builds the enum from string
22
+ # @param [String] The enum value in the form of the string
23
+ # @return [String] The enum value
24
+ def self.build_from_hash(value)
25
+ new.build_from_hash(value)
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def build_from_hash(value)
32
+ return value if SSFStreamStatusEnum.all_vars.include?(value)
33
+ raise "Invalid ENUM value #{value} for class #SSFStreamStatusEnum"
34
+ end
35
+ end
36
+ end
@@ -104,7 +104,7 @@ module Authentik::Api
104
104
  :'message_id' => :'String',
105
105
  :'queue_name' => :'String',
106
106
  :'actor_name' => :'String',
107
- :'state' => :'TaskStateEnum',
107
+ :'state' => :'TaskStatusEnum',
108
108
  :'mtime' => :'Time',
109
109
  :'retries' => :'Integer',
110
110
  :'eta' => :'Time',
@@ -8,7 +8,7 @@ require 'date'
8
8
  require 'time'
9
9
 
10
10
  module Authentik::Api
11
- class TaskStateEnum
11
+ class TaskStatusEnum
12
12
  QUEUED = "queued".freeze
13
13
  CONSUMED = "consumed".freeze
14
14
  PREPROCESS = "preprocess".freeze
@@ -32,8 +32,8 @@ module Authentik::Api
32
32
  # @param [String] The enum value in the form of the string
33
33
  # @return [String] The enum value
34
34
  def build_from_hash(value)
35
- return value if TaskStateEnum.all_vars.include?(value)
36
- raise "Invalid ENUM value #{value} for class #TaskStateEnum"
35
+ return value if TaskStatusEnum.all_vars.include?(value)
36
+ raise "Invalid ENUM value #{value} for class #TaskStatusEnum"
37
37
  end
38
38
  end
39
39
  end
@@ -8,7 +8,7 @@ require 'date'
8
8
  require 'time'
9
9
 
10
10
  module Authentik::Api
11
- class NotificationTransportModeEnum
11
+ class TransportModeEnum
12
12
  LOCAL = "local".freeze
13
13
  WEBHOOK = "webhook".freeze
14
14
  WEBHOOK_SLACK = "webhook_slack".freeze
@@ -29,8 +29,8 @@ module Authentik::Api
29
29
  # @param [String] The enum value in the form of the string
30
30
  # @return [String] The enum value
31
31
  def build_from_hash(value)
32
- return value if NotificationTransportModeEnum.all_vars.include?(value)
33
- raise "Invalid ENUM value #{value} for class #NotificationTransportModeEnum"
32
+ return value if TransportModeEnum.all_vars.include?(value)
33
+ raise "Invalid ENUM value #{value} for class #TransportModeEnum"
34
34
  end
35
35
  end
36
36
  end
@@ -0,0 +1,33 @@
1
+ =begin
2
+ This file is automatically generated by: https://openapi-generator.tech.
3
+ Any manual changes will be lost when the OpenAPI scheme changes.
4
+
5
+ =end
6
+
7
+ require 'date'
8
+ require 'time'
9
+
10
+ module Authentik::Api
11
+ class UsageEnum
12
+ MEDIA = "media".freeze
13
+
14
+ def self.all_vars
15
+ @all_vars ||= [MEDIA].freeze
16
+ end
17
+
18
+ # Builds the enum from string
19
+ # @param [String] The enum value in the form of the string
20
+ # @return [String] The enum value
21
+ def self.build_from_hash(value)
22
+ new.build_from_hash(value)
23
+ end
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def build_from_hash(value)
29
+ return value if UsageEnum.all_vars.include?(value)
30
+ raise "Invalid ENUM value #{value} for class #UsageEnum"
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,144 @@
1
+ =begin
2
+ This file is automatically generated by: https://openapi-generator.tech.
3
+ Any manual changes will be lost when the OpenAPI scheme changes.
4
+
5
+ =end
6
+
7
+ require 'date'
8
+ require 'time'
9
+
10
+ module Authentik::Api
11
+ # Choose the target account before starting the lockdown flow.
12
+ class UserAccountLockdownRequest < ApiModelBase
13
+ # User to lock. If omitted, locks the current user (self-service).
14
+ attr_accessor :user
15
+
16
+ # Attribute mapping from ruby-style variable name to JSON key.
17
+ def self.attribute_map
18
+ {
19
+ :'user' => :'user'
20
+ }
21
+ end
22
+
23
+ # Returns attribute mapping this model knows about
24
+ def self.acceptable_attribute_map
25
+ attribute_map
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ acceptable_attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'user' => :'Integer'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ :'user'
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::UserAccountLockdownRequest` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ acceptable_attribute_map = self.class.acceptable_attribute_map
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!acceptable_attribute_map.key?(k.to_sym))
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::UserAccountLockdownRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
59
+ end
60
+ h[k.to_sym] = v
61
+ }
62
+
63
+ if attributes.key?(:'user')
64
+ self.user = attributes[:'user']
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
72
+ invalid_properties = Array.new
73
+ invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
79
+ warn '[DEPRECATED] the `valid?` method is obsolete'
80
+ true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ user == o.user
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Integer] Hash code
99
+ def hash
100
+ [user].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def self.build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ attributes = attributes.transform_keys(&:to_sym)
109
+ transformed_hash = {}
110
+ openapi_types.each_pair do |key, type|
111
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
112
+ transformed_hash["#{key}"] = nil
113
+ elsif type =~ /\AArray<(.*)>/i
114
+ # check to ensure the input is an array given that the attribute
115
+ # is documented as an array but the input is not
116
+ if attributes[attribute_map[key]].is_a?(Array)
117
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
118
+ end
119
+ elsif !attributes[attribute_map[key]].nil?
120
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
121
+ end
122
+ end
123
+ new(transformed_hash)
124
+ end
125
+
126
+ # Returns the object in the form of hash
127
+ # @return [Hash] Returns the object in the form of hash
128
+ def to_hash
129
+ hash = {}
130
+ self.class.attribute_map.each_pair do |attr, param|
131
+ value = self.send(attr)
132
+ if value.nil?
133
+ is_nullable = self.class.openapi_nullable.include?(attr)
134
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
135
+ end
136
+
137
+ hash[param] = _to_hash(value)
138
+ end
139
+ hash
140
+ end
141
+
142
+ end
143
+
144
+ end