authentik-api 2026.2.4 → 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 (264) 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/expiring_base_grant_model.rb +1 -1
  53. data/lib/authentik/api/models/force_binding_enum.rb +34 -0
  54. data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
  55. data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
  56. data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
  57. data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
  58. data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
  59. data/lib/authentik/api/models/grant_types_enum.rb +39 -0
  60. data/lib/authentik/api/models/group_kerberos_source_connection_request.rb +27 -1
  61. data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
  62. data/lib/authentik/api/models/group_ldap_source_connection_request.rb +27 -1
  63. data/lib/authentik/api/models/group_o_auth_source_connection_request.rb +27 -1
  64. data/lib/authentik/api/models/group_plex_source_connection_request.rb +27 -1
  65. data/lib/authentik/api/models/group_saml_source_connection_request.rb +27 -1
  66. data/lib/authentik/api/models/group_source_connection_request.rb +27 -1
  67. data/lib/authentik/api/models/group_telegram_source_connection_request.rb +27 -1
  68. data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
  69. data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
  70. data/lib/authentik/api/models/key_type_enum.rb +3 -3
  71. data/lib/authentik/api/models/lang_enum.rb +131 -0
  72. data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
  73. data/lib/authentik/api/models/logout_url.rb +209 -0
  74. data/lib/authentik/api/models/model_enum.rb +3 -1
  75. data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
  76. data/lib/authentik/api/models/notification_transport.rb +13 -2
  77. data/lib/authentik/api/models/notification_transport_request.rb +13 -2
  78. data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
  79. data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
  80. data/lib/authentik/api/models/operating_system.rb +0 -17
  81. data/lib/authentik/api/models/operating_system_request.rb +2 -9
  82. data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
  83. data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
  84. data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
  85. data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
  86. data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
  87. data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
  88. data/lib/authentik/api/models/patched_application_request.rb +14 -4
  89. data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
  90. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
  91. data/lib/authentik/api/models/patched_brand_request.rb +11 -1
  92. data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
  93. data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
  94. data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
  95. data/lib/authentik/api/models/patched_group_kerberos_source_connection_request.rb +10 -1
  96. data/lib/authentik/api/models/patched_group_ldap_source_connection_request.rb +10 -1
  97. data/lib/authentik/api/models/patched_group_o_auth_source_connection_request.rb +10 -1
  98. data/lib/authentik/api/models/patched_group_plex_source_connection_request.rb +10 -1
  99. data/lib/authentik/api/models/patched_group_saml_source_connection_request.rb +10 -1
  100. data/lib/authentik/api/models/patched_group_source_connection_request.rb +10 -1
  101. data/lib/authentik/api/models/patched_group_telegram_source_connection_request.rb +10 -1
  102. data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
  103. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
  104. data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
  105. data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
  106. data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
  107. data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
  108. data/lib/authentik/api/models/patched_user_kerberos_source_connection_request.rb +10 -1
  109. data/lib/authentik/api/models/patched_user_ldap_source_connection_request.rb +10 -1
  110. data/lib/authentik/api/models/patched_user_o_auth_source_connection_request.rb +10 -1
  111. data/lib/authentik/api/models/patched_user_plex_source_connection_request.rb +10 -1
  112. data/lib/authentik/api/models/patched_user_saml_source_connection_request.rb +10 -1
  113. data/lib/authentik/api/models/patched_user_source_connection_request.rb +10 -1
  114. data/lib/authentik/api/models/patched_user_telegram_source_connection_request.rb +10 -1
  115. data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
  116. data/lib/authentik/api/models/redirect_uri.rb +13 -4
  117. data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
  118. data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
  119. data/lib/authentik/api/models/related_rule.rb +250 -0
  120. data/lib/authentik/api/models/saml_provider.rb +98 -8
  121. data/lib/authentik/api/models/saml_provider_request.rb +17 -27
  122. data/lib/authentik/api/models/saml_source.rb +11 -1
  123. data/lib/authentik/api/models/saml_source_request.rb +11 -1
  124. data/lib/authentik/api/models/ssf_provider.rb +41 -4
  125. data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
  126. data/lib/authentik/api/models/ssf_stream.rb +10 -1
  127. data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
  128. data/lib/authentik/api/models/task.rb +1 -1
  129. data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
  130. data/lib/authentik/api/models/token_model.rb +1 -1
  131. data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
  132. data/lib/authentik/api/models/usage_enum.rb +33 -0
  133. data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
  134. data/lib/authentik/api/models/user_kerberos_source_connection_request.rb +27 -1
  135. data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
  136. data/lib/authentik/api/models/user_ldap_source_connection_request.rb +27 -1
  137. data/lib/authentik/api/models/user_o_auth_source_connection_request.rb +27 -1
  138. data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
  139. data/lib/authentik/api/models/user_plex_source_connection_request.rb +27 -1
  140. data/lib/authentik/api/models/user_saml_source_connection_request.rb +27 -1
  141. data/lib/authentik/api/models/user_source_connection_request.rb +27 -1
  142. data/lib/authentik/api/models/user_telegram_source_connection_request.rb +27 -1
  143. data/lib/authentik/api/models/vendor_enum.rb +2 -1
  144. data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
  145. data/lib/authentik/api/version.rb +1 -1
  146. data/spec/api/admin_api_spec.rb +2 -2
  147. data/spec/api/core_api_spec.rb +27 -3
  148. data/spec/api/crypto_api_spec.rb +1 -1
  149. data/spec/api/endpoints_api_spec.rb +167 -0
  150. data/spec/api/events_api_spec.rb +33 -7
  151. data/spec/api/flows_api_spec.rb +4 -16
  152. data/spec/api/lifecycle_api_spec.rb +6 -3
  153. data/spec/api/managed_api_spec.rb +13 -0
  154. data/spec/api/policies_api_spec.rb +2 -1
  155. data/spec/api/providers_api_spec.rb +21 -19
  156. data/spec/api/schema_api_spec.rb +2 -2
  157. data/spec/api/sources_api_spec.rb +17 -16
  158. data/spec/api/ssf_api_spec.rb +12 -1
  159. data/spec/api/stages_api_spec.rb +117 -18
  160. data/spec/api/tasks_api_spec.rb +2 -2
  161. data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
  162. data/spec/models/account_lockdown_stage_spec.rb +96 -0
  163. data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
  164. data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
  165. data/spec/models/application_request_spec.rb +6 -0
  166. data/spec/models/application_spec.rb +6 -0
  167. data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
  168. data/spec/models/authenticator_validate_stage_spec.rb +30 -0
  169. data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
  170. data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
  171. data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
  172. data/spec/models/brand_request_spec.rb +6 -0
  173. data/spec/models/brand_spec.rb +6 -0
  174. data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
  175. data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
  176. data/spec/models/current_brand_flags_spec.rb +2 -2
  177. data/spec/models/current_brand_spec.rb +6 -0
  178. data/spec/models/event_matcher_policy_request_spec.rb +6 -0
  179. data/spec/models/event_matcher_policy_spec.rb +6 -0
  180. data/spec/models/event_stats_spec.rb +36 -0
  181. data/spec/models/force_binding_enum_spec.rb +24 -0
  182. data/spec/models/format_enum_spec.rb +24 -0
  183. data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
  184. data/spec/models/google_chrome_connector_request_spec.rb +48 -0
  185. data/spec/models/google_chrome_connector_spec.rb +78 -0
  186. data/spec/models/grant_types_enum_spec.rb +24 -0
  187. data/spec/models/group_kerberos_source_connection_request_spec.rb +6 -0
  188. data/spec/models/group_ldap_source_connection_request_spec.rb +6 -0
  189. data/spec/models/group_ldap_source_connection_spec.rb +6 -0
  190. data/spec/models/group_o_auth_source_connection_request_spec.rb +6 -0
  191. data/spec/models/group_plex_source_connection_request_spec.rb +6 -0
  192. data/spec/models/group_saml_source_connection_request_spec.rb +6 -0
  193. data/spec/models/group_source_connection_request_spec.rb +6 -0
  194. data/spec/models/group_telegram_source_connection_request_spec.rb +6 -0
  195. data/spec/models/invitation_send_email_request_spec.rb +48 -0
  196. data/spec/models/lang_enum_spec.rb +24 -0
  197. data/spec/models/lifecycle_iteration_spec.rb +2 -14
  198. data/spec/models/logout_url_spec.rb +60 -0
  199. data/spec/models/native_logout_challenge_spec.rb +13 -7
  200. data/spec/models/notification_transport_request_spec.rb +6 -0
  201. data/spec/models/notification_transport_spec.rb +6 -0
  202. data/spec/models/o_auth2_provider_request_spec.rb +6 -0
  203. data/spec/models/o_auth2_provider_spec.rb +6 -0
  204. data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
  205. data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
  206. data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
  207. data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
  208. data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
  209. data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
  210. data/spec/models/patched_application_request_spec.rb +6 -0
  211. data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
  212. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
  213. data/spec/models/patched_brand_request_spec.rb +6 -0
  214. data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
  215. data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
  216. data/spec/models/patched_group_kerberos_source_connection_request_spec.rb +6 -0
  217. data/spec/models/patched_group_ldap_source_connection_request_spec.rb +6 -0
  218. data/spec/models/patched_group_o_auth_source_connection_request_spec.rb +6 -0
  219. data/spec/models/patched_group_plex_source_connection_request_spec.rb +6 -0
  220. data/spec/models/patched_group_saml_source_connection_request_spec.rb +6 -0
  221. data/spec/models/patched_group_source_connection_request_spec.rb +6 -0
  222. data/spec/models/patched_group_telegram_source_connection_request_spec.rb +6 -0
  223. data/spec/models/patched_notification_transport_request_spec.rb +6 -0
  224. data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
  225. data/spec/models/patched_saml_provider_request_spec.rb +7 -1
  226. data/spec/models/patched_saml_source_request_spec.rb +6 -0
  227. data/spec/models/patched_settings_request_flags_spec.rb +2 -2
  228. data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
  229. data/spec/models/patched_user_kerberos_source_connection_request_spec.rb +6 -0
  230. data/spec/models/patched_user_ldap_source_connection_request_spec.rb +6 -0
  231. data/spec/models/patched_user_o_auth_source_connection_request_spec.rb +6 -0
  232. data/spec/models/patched_user_plex_source_connection_request_spec.rb +6 -0
  233. data/spec/models/patched_user_saml_source_connection_request_spec.rb +6 -0
  234. data/spec/models/patched_user_source_connection_request_spec.rb +6 -0
  235. data/spec/models/patched_user_telegram_source_connection_request_spec.rb +6 -0
  236. data/spec/models/redirect_uri_request_spec.rb +6 -0
  237. data/spec/models/redirect_uri_spec.rb +6 -0
  238. data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
  239. data/spec/models/related_rule_spec.rb +54 -0
  240. data/spec/models/saml_provider_request_spec.rb +7 -1
  241. data/spec/models/saml_provider_spec.rb +25 -1
  242. data/spec/models/saml_source_request_spec.rb +6 -0
  243. data/spec/models/saml_source_spec.rb +6 -0
  244. data/spec/models/ssf_provider_request_spec.rb +6 -0
  245. data/spec/models/ssf_provider_spec.rb +12 -0
  246. data/spec/models/ssf_stream_spec.rb +6 -0
  247. data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
  248. data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
  249. data/spec/models/transport_mode_enum_spec.rb +24 -0
  250. data/spec/models/usage_enum_spec.rb +24 -0
  251. data/spec/models/user_account_lockdown_request_spec.rb +30 -0
  252. data/spec/models/user_kerberos_source_connection_request_spec.rb +6 -0
  253. data/spec/models/user_ldap_source_connection_request_spec.rb +6 -0
  254. data/spec/models/user_ldap_source_connection_spec.rb +6 -0
  255. data/spec/models/user_o_auth_source_connection_request_spec.rb +6 -0
  256. data/spec/models/user_password_hash_set_request_spec.rb +30 -0
  257. data/spec/models/user_plex_source_connection_request_spec.rb +6 -0
  258. data/spec/models/user_saml_source_connection_request_spec.rb +6 -0
  259. data/spec/models/user_source_connection_request_spec.rb +6 -0
  260. data/spec/models/user_telegram_source_connection_request_spec.rb +6 -0
  261. data/spec/models/web_authn_hint_enum_spec.rb +24 -0
  262. data/spec/zeitwerk_spec.rb +34 -0
  263. metadata +113 -32
  264. data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
@@ -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
@@ -56,7 +56,7 @@ module Authentik::Api
56
56
  def self.openapi_types
57
57
  {
58
58
  :'pk' => :'Integer',
59
- :'provider' => :'Provider',
59
+ :'provider' => :'OAuth2Provider',
60
60
  :'user' => :'User',
61
61
  :'is_expired' => :'Boolean',
62
62
  :'expires' => :'Time',
@@ -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
@@ -10,6 +10,8 @@ require 'time'
10
10
  module Authentik::Api
11
11
  # User source connection
12
12
  class UserKerberosSourceConnectionRequest < ApiModelBase
13
+ attr_accessor :user
14
+
13
15
  attr_accessor :source
14
16
 
15
17
  attr_accessor :identifier
@@ -17,6 +19,7 @@ module Authentik::Api
17
19
  # Attribute mapping from ruby-style variable name to JSON key.
18
20
  def self.attribute_map
19
21
  {
22
+ :'user' => :'user',
20
23
  :'source' => :'source',
21
24
  :'identifier' => :'identifier'
22
25
  }
@@ -35,6 +38,7 @@ module Authentik::Api
35
38
  # Attribute type mapping.
36
39
  def self.openapi_types
37
40
  {
41
+ :'user' => :'Integer',
38
42
  :'source' => :'String',
39
43
  :'identifier' => :'String'
40
44
  }
@@ -62,6 +66,12 @@ module Authentik::Api
62
66
  h[k.to_sym] = v
63
67
  }
64
68
 
69
+ if attributes.key?(:'user')
70
+ self.user = attributes[:'user']
71
+ else
72
+ self.user = nil
73
+ end
74
+
65
75
  if attributes.key?(:'source')
66
76
  self.source = attributes[:'source']
67
77
  else
@@ -80,6 +90,10 @@ module Authentik::Api
80
90
  def list_invalid_properties
81
91
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
82
92
  invalid_properties = Array.new
93
+ if @user.nil?
94
+ invalid_properties.push('invalid value for "user", user cannot be nil.')
95
+ end
96
+
83
97
  if @source.nil?
84
98
  invalid_properties.push('invalid value for "source", source cannot be nil.')
85
99
  end
@@ -99,12 +113,23 @@ module Authentik::Api
99
113
  # @return true if the model is valid
100
114
  def valid?
101
115
  warn '[DEPRECATED] the `valid?` method is obsolete'
116
+ return false if @user.nil?
102
117
  return false if @source.nil?
103
118
  return false if @identifier.nil?
104
119
  return false if @identifier.to_s.length < 1
105
120
  true
106
121
  end
107
122
 
123
+ # Custom attribute writer method with validation
124
+ # @param [Object] user Value to be assigned
125
+ def user=(user)
126
+ if user.nil?
127
+ fail ArgumentError, 'user cannot be nil'
128
+ end
129
+
130
+ @user = user
131
+ end
132
+
108
133
  # Custom attribute writer method with validation
109
134
  # @param [Object] source Value to be assigned
110
135
  def source=(source)
@@ -134,6 +159,7 @@ module Authentik::Api
134
159
  def ==(o)
135
160
  return true if self.equal?(o)
136
161
  self.class == o.class &&
162
+ user == o.user &&
137
163
  source == o.source &&
138
164
  identifier == o.identifier
139
165
  end
@@ -147,7 +173,7 @@ module Authentik::Api
147
173
  # Calculates hash code according to all attributes.
148
174
  # @return [Integer] Hash code
149
175
  def hash
150
- [source, identifier].hash
176
+ [user, source, identifier].hash
151
177
  end
152
178
 
153
179
  # Builds the object from hash
@@ -24,6 +24,8 @@ module Authentik::Api
24
24
 
25
25
  attr_accessor :last_updated
26
26
 
27
+ attr_accessor :user_obj
28
+
27
29
  # Attribute mapping from ruby-style variable name to JSON key.
28
30
  def self.attribute_map
29
31
  {
@@ -33,7 +35,8 @@ module Authentik::Api
33
35
  :'source_obj' => :'source_obj',
34
36
  :'identifier' => :'identifier',
35
37
  :'created' => :'created',
36
- :'last_updated' => :'last_updated'
38
+ :'last_updated' => :'last_updated',
39
+ :'user_obj' => :'user_obj'
37
40
  }
38
41
  end
39
42
 
@@ -56,7 +59,8 @@ module Authentik::Api
56
59
  :'source_obj' => :'Source',
57
60
  :'identifier' => :'String',
58
61
  :'created' => :'Time',
59
- :'last_updated' => :'Time'
62
+ :'last_updated' => :'Time',
63
+ :'user_obj' => :'PartialUser'
60
64
  }
61
65
  end
62
66
 
@@ -123,6 +127,12 @@ module Authentik::Api
123
127
  else
124
128
  self.last_updated = nil
125
129
  end
130
+
131
+ if attributes.key?(:'user_obj')
132
+ self.user_obj = attributes[:'user_obj']
133
+ else
134
+ self.user_obj = nil
135
+ end
126
136
  end
127
137
 
128
138
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -158,6 +168,10 @@ module Authentik::Api
158
168
  invalid_properties.push('invalid value for "last_updated", last_updated cannot be nil.')
159
169
  end
160
170
 
171
+ if @user_obj.nil?
172
+ invalid_properties.push('invalid value for "user_obj", user_obj cannot be nil.')
173
+ end
174
+
161
175
  invalid_properties
162
176
  end
163
177
 
@@ -172,6 +186,7 @@ module Authentik::Api
172
186
  return false if @identifier.nil?
173
187
  return false if @created.nil?
174
188
  return false if @last_updated.nil?
189
+ return false if @user_obj.nil?
175
190
  true
176
191
  end
177
192
 
@@ -245,6 +260,16 @@ module Authentik::Api
245
260
  @last_updated = last_updated
246
261
  end
247
262
 
263
+ # Custom attribute writer method with validation
264
+ # @param [Object] user_obj Value to be assigned
265
+ def user_obj=(user_obj)
266
+ if user_obj.nil?
267
+ fail ArgumentError, 'user_obj cannot be nil'
268
+ end
269
+
270
+ @user_obj = user_obj
271
+ end
272
+
248
273
  # Checks equality by comparing each attribute.
249
274
  # @param [Object] Object to be compared
250
275
  def ==(o)
@@ -256,7 +281,8 @@ module Authentik::Api
256
281
  source_obj == o.source_obj &&
257
282
  identifier == o.identifier &&
258
283
  created == o.created &&
259
- last_updated == o.last_updated
284
+ last_updated == o.last_updated &&
285
+ user_obj == o.user_obj
260
286
  end
261
287
 
262
288
  # @see the `==` method
@@ -268,7 +294,7 @@ module Authentik::Api
268
294
  # Calculates hash code according to all attributes.
269
295
  # @return [Integer] Hash code
270
296
  def hash
271
- [pk, user, source, source_obj, identifier, created, last_updated].hash
297
+ [pk, user, source, source_obj, identifier, created, last_updated, user_obj].hash
272
298
  end
273
299
 
274
300
  # Builds the object from hash
@@ -10,6 +10,8 @@ require 'time'
10
10
  module Authentik::Api
11
11
  # User source connection
12
12
  class UserLDAPSourceConnectionRequest < ApiModelBase
13
+ attr_accessor :user
14
+
13
15
  attr_accessor :source
14
16
 
15
17
  attr_accessor :identifier
@@ -17,6 +19,7 @@ module Authentik::Api
17
19
  # Attribute mapping from ruby-style variable name to JSON key.
18
20
  def self.attribute_map
19
21
  {
22
+ :'user' => :'user',
20
23
  :'source' => :'source',
21
24
  :'identifier' => :'identifier'
22
25
  }
@@ -35,6 +38,7 @@ module Authentik::Api
35
38
  # Attribute type mapping.
36
39
  def self.openapi_types
37
40
  {
41
+ :'user' => :'Integer',
38
42
  :'source' => :'String',
39
43
  :'identifier' => :'String'
40
44
  }
@@ -62,6 +66,12 @@ module Authentik::Api
62
66
  h[k.to_sym] = v
63
67
  }
64
68
 
69
+ if attributes.key?(:'user')
70
+ self.user = attributes[:'user']
71
+ else
72
+ self.user = nil
73
+ end
74
+
65
75
  if attributes.key?(:'source')
66
76
  self.source = attributes[:'source']
67
77
  else
@@ -80,6 +90,10 @@ module Authentik::Api
80
90
  def list_invalid_properties
81
91
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
82
92
  invalid_properties = Array.new
93
+ if @user.nil?
94
+ invalid_properties.push('invalid value for "user", user cannot be nil.')
95
+ end
96
+
83
97
  if @source.nil?
84
98
  invalid_properties.push('invalid value for "source", source cannot be nil.')
85
99
  end
@@ -99,12 +113,23 @@ module Authentik::Api
99
113
  # @return true if the model is valid
100
114
  def valid?
101
115
  warn '[DEPRECATED] the `valid?` method is obsolete'
116
+ return false if @user.nil?
102
117
  return false if @source.nil?
103
118
  return false if @identifier.nil?
104
119
  return false if @identifier.to_s.length < 1
105
120
  true
106
121
  end
107
122
 
123
+ # Custom attribute writer method with validation
124
+ # @param [Object] user Value to be assigned
125
+ def user=(user)
126
+ if user.nil?
127
+ fail ArgumentError, 'user cannot be nil'
128
+ end
129
+
130
+ @user = user
131
+ end
132
+
108
133
  # Custom attribute writer method with validation
109
134
  # @param [Object] source Value to be assigned
110
135
  def source=(source)
@@ -134,6 +159,7 @@ module Authentik::Api
134
159
  def ==(o)
135
160
  return true if self.equal?(o)
136
161
  self.class == o.class &&
162
+ user == o.user &&
137
163
  source == o.source &&
138
164
  identifier == o.identifier
139
165
  end
@@ -147,7 +173,7 @@ module Authentik::Api
147
173
  # Calculates hash code according to all attributes.
148
174
  # @return [Integer] Hash code
149
175
  def hash
150
- [source, identifier].hash
176
+ [user, source, identifier].hash
151
177
  end
152
178
 
153
179
  # Builds the object from hash
@@ -10,6 +10,8 @@ require 'time'
10
10
  module Authentik::Api
11
11
  # User source connection
12
12
  class UserOAuthSourceConnectionRequest < ApiModelBase
13
+ attr_accessor :user
14
+
13
15
  attr_accessor :source
14
16
 
15
17
  attr_accessor :identifier
@@ -21,6 +23,7 @@ module Authentik::Api
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
26
+ :'user' => :'user',
24
27
  :'source' => :'source',
25
28
  :'identifier' => :'identifier',
26
29
  :'access_token' => :'access_token',
@@ -41,6 +44,7 @@ module Authentik::Api
41
44
  # Attribute type mapping.
42
45
  def self.openapi_types
43
46
  {
47
+ :'user' => :'Integer',
44
48
  :'source' => :'String',
45
49
  :'identifier' => :'String',
46
50
  :'access_token' => :'String',
@@ -71,6 +75,12 @@ module Authentik::Api
71
75
  h[k.to_sym] = v
72
76
  }
73
77
 
78
+ if attributes.key?(:'user')
79
+ self.user = attributes[:'user']
80
+ else
81
+ self.user = nil
82
+ end
83
+
74
84
  if attributes.key?(:'source')
75
85
  self.source = attributes[:'source']
76
86
  else
@@ -97,6 +107,10 @@ module Authentik::Api
97
107
  def list_invalid_properties
98
108
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
99
109
  invalid_properties = Array.new
110
+ if @user.nil?
111
+ invalid_properties.push('invalid value for "user", user cannot be nil.')
112
+ end
113
+
100
114
  if @source.nil?
101
115
  invalid_properties.push('invalid value for "source", source cannot be nil.')
102
116
  end
@@ -116,12 +130,23 @@ module Authentik::Api
116
130
  # @return true if the model is valid
117
131
  def valid?
118
132
  warn '[DEPRECATED] the `valid?` method is obsolete'
133
+ return false if @user.nil?
119
134
  return false if @source.nil?
120
135
  return false if @identifier.nil?
121
136
  return false if @identifier.to_s.length < 1
122
137
  true
123
138
  end
124
139
 
140
+ # Custom attribute writer method with validation
141
+ # @param [Object] user Value to be assigned
142
+ def user=(user)
143
+ if user.nil?
144
+ fail ArgumentError, 'user cannot be nil'
145
+ end
146
+
147
+ @user = user
148
+ end
149
+
125
150
  # Custom attribute writer method with validation
126
151
  # @param [Object] source Value to be assigned
127
152
  def source=(source)
@@ -151,6 +176,7 @@ module Authentik::Api
151
176
  def ==(o)
152
177
  return true if self.equal?(o)
153
178
  self.class == o.class &&
179
+ user == o.user &&
154
180
  source == o.source &&
155
181
  identifier == o.identifier &&
156
182
  access_token == o.access_token &&
@@ -166,7 +192,7 @@ module Authentik::Api
166
192
  # Calculates hash code according to all attributes.
167
193
  # @return [Integer] Hash code
168
194
  def hash
169
- [source, identifier, access_token, expires].hash
195
+ [user, source, identifier, access_token, expires].hash
170
196
  end
171
197
 
172
198
  # Builds the object from hash