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
@@ -13,9 +13,11 @@ module Authentik::Api
13
13
  AWS = "aws".freeze
14
14
  SLACK = "slack".freeze
15
15
  SFDC = "sfdc".freeze
16
+ WEBEX = "webex".freeze
17
+ VCENTER = "vcenter".freeze
16
18
 
17
19
  def self.all_vars
18
- @all_vars ||= [DEFAULT, AWS, SLACK, SFDC].freeze
20
+ @all_vars ||= [DEFAULT, AWS, SLACK, SFDC, WEBEX, VCENTER].freeze
19
21
  end
20
22
 
21
23
  # Builds the enum from string
@@ -8,7 +8,7 @@ require 'date'
8
8
  require 'time'
9
9
 
10
10
  module Authentik::Api
11
- class ConsentStageModeEnum
11
+ class ConsentModeEnum
12
12
  ALWAYS_REQUIRE = "always_require".freeze
13
13
  PERMANENT = "permanent".freeze
14
14
  EXPIRING = "expiring".freeze
@@ -28,8 +28,8 @@ module Authentik::Api
28
28
  # @param [String] The enum value in the form of the string
29
29
  # @return [String] The enum value
30
30
  def build_from_hash(value)
31
- return value if ConsentStageModeEnum.all_vars.include?(value)
32
- raise "Invalid ENUM value #{value} for class #ConsentStageModeEnum"
31
+ return value if ConsentModeEnum.all_vars.include?(value)
32
+ raise "Invalid ENUM value #{value} for class #ConsentModeEnum"
33
33
  end
34
34
  end
35
35
  end
@@ -90,7 +90,7 @@ module Authentik::Api
90
90
  :'verbose_name_plural' => :'String',
91
91
  :'meta_model_name' => :'String',
92
92
  :'flow_set' => :'Array<FlowSet>',
93
- :'mode' => :'ConsentStageModeEnum',
93
+ :'mode' => :'ConsentModeEnum',
94
94
  :'consent_expire_in' => :'String'
95
95
  }
96
96
  end
@@ -62,7 +62,7 @@ module Authentik::Api
62
62
  def self.openapi_types
63
63
  {
64
64
  :'name' => :'String',
65
- :'mode' => :'ConsentStageModeEnum',
65
+ :'mode' => :'ConsentModeEnum',
66
66
  :'consent_expire_in' => :'String'
67
67
  }
68
68
  end
@@ -60,7 +60,6 @@ module Authentik::Api
60
60
  CO = "CO".freeze
61
61
  KM = "KM".freeze
62
62
  CG = "CG".freeze
63
- CD = "CD".freeze
64
63
  CK = "CK".freeze
65
64
  CR = "CR".freeze
66
65
  CI = "CI".freeze
@@ -69,6 +68,7 @@ module Authentik::Api
69
68
  CW = "CW".freeze
70
69
  CY = "CY".freeze
71
70
  CZ = "CZ".freeze
71
+ CD = "CD".freeze
72
72
  DK = "DK".freeze
73
73
  DJ = "DJ".freeze
74
74
  DM = "DM".freeze
@@ -107,7 +107,6 @@ module Authentik::Api
107
107
  GY = "GY".freeze
108
108
  HT = "HT".freeze
109
109
  HM = "HM".freeze
110
- VA = "VA".freeze
111
110
  HN = "HN".freeze
112
111
  HK = "HK".freeze
113
112
  HU = "HU".freeze
@@ -249,6 +248,7 @@ module Authentik::Api
249
248
  UY = "UY".freeze
250
249
  UZ = "UZ".freeze
251
250
  VU = "VU".freeze
251
+ VA = "VA".freeze
252
252
  VE = "VE".freeze
253
253
  VN = "VN".freeze
254
254
  VG = "VG".freeze
@@ -260,7 +260,7 @@ module Authentik::Api
260
260
  ZW = "ZW".freeze
261
261
 
262
262
  def self.all_vars
263
- @all_vars ||= [AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, CV, KH, CM, CA, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, CI, HR, CU, CW, CY, CZ, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, KP, MK, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, KR, SS, ES, LK, SD, SR, SJ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, UM, US, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW].freeze
263
+ @all_vars ||= [AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, CV, KH, CM, CA, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CK, CR, CI, HR, CU, CW, CY, CZ, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, KP, MK, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, KR, SS, ES, LK, SD, SR, SJ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, UM, US, UY, UZ, VU, VA, VE, VN, VG, VI, WF, EH, YE, ZM, ZW].freeze
264
264
  end
265
265
 
266
266
  # Builds the enum from string
@@ -40,6 +40,8 @@ module Authentik::Api
40
40
 
41
41
  attr_accessor :flow_device_code
42
42
 
43
+ attr_accessor :flow_lockdown
44
+
43
45
  attr_accessor :default_locale
44
46
 
45
47
  attr_accessor :flags
@@ -84,6 +86,7 @@ module Authentik::Api
84
86
  :'flow_unenrollment' => :'flow_unenrollment',
85
87
  :'flow_user_settings' => :'flow_user_settings',
86
88
  :'flow_device_code' => :'flow_device_code',
89
+ :'flow_lockdown' => :'flow_lockdown',
87
90
  :'default_locale' => :'default_locale',
88
91
  :'flags' => :'flags'
89
92
  }
@@ -117,6 +120,7 @@ module Authentik::Api
117
120
  :'flow_unenrollment' => :'String',
118
121
  :'flow_user_settings' => :'String',
119
122
  :'flow_device_code' => :'String',
123
+ :'flow_lockdown' => :'String',
120
124
  :'default_locale' => :'String',
121
125
  :'flags' => :'CurrentBrandFlags'
122
126
  }
@@ -226,6 +230,10 @@ module Authentik::Api
226
230
  self.flow_device_code = attributes[:'flow_device_code']
227
231
  end
228
232
 
233
+ if attributes.key?(:'flow_lockdown')
234
+ self.flow_lockdown = attributes[:'flow_lockdown']
235
+ end
236
+
229
237
  if attributes.key?(:'default_locale')
230
238
  self.default_locale = attributes[:'default_locale']
231
239
  else
@@ -409,6 +417,7 @@ module Authentik::Api
409
417
  flow_unenrollment == o.flow_unenrollment &&
410
418
  flow_user_settings == o.flow_user_settings &&
411
419
  flow_device_code == o.flow_device_code &&
420
+ flow_lockdown == o.flow_lockdown &&
412
421
  default_locale == o.default_locale &&
413
422
  flags == o.flags
414
423
  end
@@ -422,7 +431,7 @@ module Authentik::Api
422
431
  # Calculates hash code according to all attributes.
423
432
  # @return [Integer] Hash code
424
433
  def hash
425
- [matched_domain, branding_title, branding_logo, branding_logo_themed_urls, branding_favicon, branding_favicon_themed_urls, branding_custom_css, ui_footer_links, ui_theme, flow_authentication, flow_invalidation, flow_recovery, flow_unenrollment, flow_user_settings, flow_device_code, default_locale, flags].hash
434
+ [matched_domain, branding_title, branding_logo, branding_logo_themed_urls, branding_favicon, branding_favicon_themed_urls, branding_custom_css, ui_footer_links, ui_theme, flow_authentication, flow_invalidation, flow_recovery, flow_unenrollment, flow_user_settings, flow_device_code, flow_lockdown, default_locale, flags].hash
426
435
  end
427
436
 
428
437
  # Builds the object from hash
@@ -9,19 +9,23 @@ require 'time'
9
9
 
10
10
  module Authentik::Api
11
11
  class CurrentBrandFlags < ApiModelBase
12
- attr_accessor :enterprise_audit_include_expanded_diff
12
+ # Configure if applications without any policy/group/user bindings should be accessible to any user.
13
+ attr_accessor :core_default_app_access
13
14
 
14
- attr_accessor :policies_buffered_access_view
15
+ # Include additional information in audit logs, may incur a performance penalty.
16
+ attr_accessor :enterprise_audit_include_expanded_diff
15
17
 
18
+ # Upon successful authentication, re-start authentication in other open tabs.
16
19
  attr_accessor :flows_continuous_login
17
20
 
21
+ # Refresh other tabs after successful authentication.
18
22
  attr_accessor :flows_refresh_others
19
23
 
20
24
  # Attribute mapping from ruby-style variable name to JSON key.
21
25
  def self.attribute_map
22
26
  {
27
+ :'core_default_app_access' => :'core_default_app_access',
23
28
  :'enterprise_audit_include_expanded_diff' => :'enterprise_audit_include_expanded_diff',
24
- :'policies_buffered_access_view' => :'policies_buffered_access_view',
25
29
  :'flows_continuous_login' => :'flows_continuous_login',
26
30
  :'flows_refresh_others' => :'flows_refresh_others'
27
31
  }
@@ -40,8 +44,8 @@ module Authentik::Api
40
44
  # Attribute type mapping.
41
45
  def self.openapi_types
42
46
  {
47
+ :'core_default_app_access' => :'Boolean',
43
48
  :'enterprise_audit_include_expanded_diff' => :'Boolean',
44
- :'policies_buffered_access_view' => :'Boolean',
45
49
  :'flows_continuous_login' => :'Boolean',
46
50
  :'flows_refresh_others' => :'Boolean'
47
51
  }
@@ -69,16 +73,16 @@ module Authentik::Api
69
73
  h[k.to_sym] = v
70
74
  }
71
75
 
72
- if attributes.key?(:'enterprise_audit_include_expanded_diff')
73
- self.enterprise_audit_include_expanded_diff = attributes[:'enterprise_audit_include_expanded_diff']
76
+ if attributes.key?(:'core_default_app_access')
77
+ self.core_default_app_access = attributes[:'core_default_app_access']
74
78
  else
75
- self.enterprise_audit_include_expanded_diff = nil
79
+ self.core_default_app_access = nil
76
80
  end
77
81
 
78
- if attributes.key?(:'policies_buffered_access_view')
79
- self.policies_buffered_access_view = attributes[:'policies_buffered_access_view']
82
+ if attributes.key?(:'enterprise_audit_include_expanded_diff')
83
+ self.enterprise_audit_include_expanded_diff = attributes[:'enterprise_audit_include_expanded_diff']
80
84
  else
81
- self.policies_buffered_access_view = nil
85
+ self.enterprise_audit_include_expanded_diff = nil
82
86
  end
83
87
 
84
88
  if attributes.key?(:'flows_continuous_login')
@@ -99,12 +103,12 @@ module Authentik::Api
99
103
  def list_invalid_properties
100
104
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
101
105
  invalid_properties = Array.new
102
- if @enterprise_audit_include_expanded_diff.nil?
103
- invalid_properties.push('invalid value for "enterprise_audit_include_expanded_diff", enterprise_audit_include_expanded_diff cannot be nil.')
106
+ if @core_default_app_access.nil?
107
+ invalid_properties.push('invalid value for "core_default_app_access", core_default_app_access cannot be nil.')
104
108
  end
105
109
 
106
- if @policies_buffered_access_view.nil?
107
- invalid_properties.push('invalid value for "policies_buffered_access_view", policies_buffered_access_view cannot be nil.')
110
+ if @enterprise_audit_include_expanded_diff.nil?
111
+ invalid_properties.push('invalid value for "enterprise_audit_include_expanded_diff", enterprise_audit_include_expanded_diff cannot be nil.')
108
112
  end
109
113
 
110
114
  if @flows_continuous_login.nil?
@@ -122,31 +126,31 @@ module Authentik::Api
122
126
  # @return true if the model is valid
123
127
  def valid?
124
128
  warn '[DEPRECATED] the `valid?` method is obsolete'
129
+ return false if @core_default_app_access.nil?
125
130
  return false if @enterprise_audit_include_expanded_diff.nil?
126
- return false if @policies_buffered_access_view.nil?
127
131
  return false if @flows_continuous_login.nil?
128
132
  return false if @flows_refresh_others.nil?
129
133
  true
130
134
  end
131
135
 
132
136
  # Custom attribute writer method with validation
133
- # @param [Object] enterprise_audit_include_expanded_diff Value to be assigned
134
- def enterprise_audit_include_expanded_diff=(enterprise_audit_include_expanded_diff)
135
- if enterprise_audit_include_expanded_diff.nil?
136
- fail ArgumentError, 'enterprise_audit_include_expanded_diff cannot be nil'
137
+ # @param [Object] core_default_app_access Value to be assigned
138
+ def core_default_app_access=(core_default_app_access)
139
+ if core_default_app_access.nil?
140
+ fail ArgumentError, 'core_default_app_access cannot be nil'
137
141
  end
138
142
 
139
- @enterprise_audit_include_expanded_diff = enterprise_audit_include_expanded_diff
143
+ @core_default_app_access = core_default_app_access
140
144
  end
141
145
 
142
146
  # Custom attribute writer method with validation
143
- # @param [Object] policies_buffered_access_view Value to be assigned
144
- def policies_buffered_access_view=(policies_buffered_access_view)
145
- if policies_buffered_access_view.nil?
146
- fail ArgumentError, 'policies_buffered_access_view cannot be nil'
147
+ # @param [Object] enterprise_audit_include_expanded_diff Value to be assigned
148
+ def enterprise_audit_include_expanded_diff=(enterprise_audit_include_expanded_diff)
149
+ if enterprise_audit_include_expanded_diff.nil?
150
+ fail ArgumentError, 'enterprise_audit_include_expanded_diff cannot be nil'
147
151
  end
148
152
 
149
- @policies_buffered_access_view = policies_buffered_access_view
153
+ @enterprise_audit_include_expanded_diff = enterprise_audit_include_expanded_diff
150
154
  end
151
155
 
152
156
  # Custom attribute writer method with validation
@@ -174,8 +178,8 @@ module Authentik::Api
174
178
  def ==(o)
175
179
  return true if self.equal?(o)
176
180
  self.class == o.class &&
181
+ core_default_app_access == o.core_default_app_access &&
177
182
  enterprise_audit_include_expanded_diff == o.enterprise_audit_include_expanded_diff &&
178
- policies_buffered_access_view == o.policies_buffered_access_view &&
179
183
  flows_continuous_login == o.flows_continuous_login &&
180
184
  flows_refresh_others == o.flows_refresh_others
181
185
  end
@@ -189,7 +193,7 @@ module Authentik::Api
189
193
  # Calculates hash code according to all attributes.
190
194
  # @return [Integer] Hash code
191
195
  def hash
192
- [enterprise_audit_include_expanded_diff, policies_buffered_access_view, flows_continuous_login, flows_refresh_others].hash
196
+ [core_default_app_access, enterprise_audit_include_expanded_diff, flows_continuous_login, flows_refresh_others].hash
193
197
  end
194
198
 
195
199
  # Builds the object from hash
@@ -11,9 +11,11 @@ module Authentik::Api
11
11
  class DeliveryMethodEnum
12
12
  HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_PUSH = "https://schemas.openid.net/secevent/risc/delivery-method/push".freeze
13
13
  HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_POLL = "https://schemas.openid.net/secevent/risc/delivery-method/poll".freeze
14
+ URN_IETF_RFC_8935 = "urn:ietf:rfc:8935".freeze
15
+ URN_IETF_RFC_8936 = "urn:ietf:rfc:8936".freeze
14
16
 
15
17
  def self.all_vars
16
- @all_vars ||= [HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_PUSH, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_POLL].freeze
18
+ @all_vars ||= [HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_PUSH, HTTPS___SCHEMAS_OPENID_NET_SECEVENT_RISC_DELIVERY_METHOD_POLL, URN_IETF_RFC_8935, URN_IETF_RFC_8936].freeze
17
19
  end
18
20
 
19
21
  # Builds the enum from string
@@ -44,6 +44,8 @@ module Authentik::Api
44
44
  # Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched.
45
45
  attr_accessor :model
46
46
 
47
+ attr_accessor :query
48
+
47
49
  class EnumAttributeValidator
48
50
  attr_reader :datatype
49
51
  attr_reader :allowable_values
@@ -80,7 +82,8 @@ module Authentik::Api
80
82
  :'action' => :'action',
81
83
  :'client_ip' => :'client_ip',
82
84
  :'app' => :'app',
83
- :'model' => :'model'
85
+ :'model' => :'model',
86
+ :'query' => :'query'
84
87
  }
85
88
  end
86
89
 
@@ -108,7 +111,8 @@ module Authentik::Api
108
111
  :'action' => :'EventActions',
109
112
  :'client_ip' => :'String',
110
113
  :'app' => :'AppEnum',
111
- :'model' => :'ModelEnum'
114
+ :'model' => :'ModelEnum',
115
+ :'query' => :'String'
112
116
  }
113
117
  end
114
118
 
@@ -118,7 +122,8 @@ module Authentik::Api
118
122
  :'action',
119
123
  :'client_ip',
120
124
  :'app',
121
- :'model'
125
+ :'model',
126
+ :'query'
122
127
  ])
123
128
  end
124
129
 
@@ -199,6 +204,10 @@ module Authentik::Api
199
204
  if attributes.key?(:'model')
200
205
  self.model = attributes[:'model']
201
206
  end
207
+
208
+ if attributes.key?(:'query')
209
+ self.query = attributes[:'query']
210
+ end
202
211
  end
203
212
 
204
213
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -337,7 +346,8 @@ module Authentik::Api
337
346
  action == o.action &&
338
347
  client_ip == o.client_ip &&
339
348
  app == o.app &&
340
- model == o.model
349
+ model == o.model &&
350
+ query == o.query
341
351
  end
342
352
 
343
353
  # @see the `==` method
@@ -349,7 +359,7 @@ module Authentik::Api
349
359
  # Calculates hash code according to all attributes.
350
360
  # @return [Integer] Hash code
351
361
  def hash
352
- [pk, name, execution_logging, component, verbose_name, verbose_name_plural, meta_model_name, bound_to, action, client_ip, app, model].hash
362
+ [pk, name, execution_logging, component, verbose_name, verbose_name_plural, meta_model_name, bound_to, action, client_ip, app, model, query].hash
353
363
  end
354
364
 
355
365
  # Builds the object from hash
@@ -27,6 +27,8 @@ module Authentik::Api
27
27
  # Match events created by selected model. When left empty, all models are matched. When an app is selected, all the application's models are matched.
28
28
  attr_accessor :model
29
29
 
30
+ attr_accessor :query
31
+
30
32
  class EnumAttributeValidator
31
33
  attr_reader :datatype
32
34
  attr_reader :allowable_values
@@ -57,7 +59,8 @@ module Authentik::Api
57
59
  :'action' => :'action',
58
60
  :'client_ip' => :'client_ip',
59
61
  :'app' => :'app',
60
- :'model' => :'model'
62
+ :'model' => :'model',
63
+ :'query' => :'query'
61
64
  }
62
65
  end
63
66
 
@@ -79,7 +82,8 @@ module Authentik::Api
79
82
  :'action' => :'EventActions',
80
83
  :'client_ip' => :'String',
81
84
  :'app' => :'AppEnum',
82
- :'model' => :'ModelEnum'
85
+ :'model' => :'ModelEnum',
86
+ :'query' => :'String'
83
87
  }
84
88
  end
85
89
 
@@ -89,7 +93,8 @@ module Authentik::Api
89
93
  :'action',
90
94
  :'client_ip',
91
95
  :'app',
92
- :'model'
96
+ :'model',
97
+ :'query'
93
98
  ])
94
99
  end
95
100
 
@@ -134,6 +139,10 @@ module Authentik::Api
134
139
  if attributes.key?(:'model')
135
140
  self.model = attributes[:'model']
136
141
  end
142
+
143
+ if attributes.key?(:'query')
144
+ self.query = attributes[:'query']
145
+ end
137
146
  end
138
147
 
139
148
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -153,6 +162,10 @@ module Authentik::Api
153
162
  invalid_properties.push('invalid value for "client_ip", the character length must be greater than or equal to 1.')
154
163
  end
155
164
 
165
+ if !@query.nil? && @query.to_s.length < 1
166
+ invalid_properties.push('invalid value for "query", the character length must be greater than or equal to 1.')
167
+ end
168
+
156
169
  invalid_properties
157
170
  end
158
171
 
@@ -163,6 +176,7 @@ module Authentik::Api
163
176
  return false if @name.nil?
164
177
  return false if @name.to_s.length < 1
165
178
  return false if !@client_ip.nil? && @client_ip.to_s.length < 1
179
+ return false if !@query.nil? && @query.to_s.length < 1
166
180
  true
167
181
  end
168
182
 
@@ -190,6 +204,16 @@ module Authentik::Api
190
204
  @client_ip = client_ip
191
205
  end
192
206
 
207
+ # Custom attribute writer method with validation
208
+ # @param [Object] query Value to be assigned
209
+ def query=(query)
210
+ if !query.nil? && query.to_s.length < 1
211
+ fail ArgumentError, 'invalid value for "query", the character length must be greater than or equal to 1.'
212
+ end
213
+
214
+ @query = query
215
+ end
216
+
193
217
  # Checks equality by comparing each attribute.
194
218
  # @param [Object] Object to be compared
195
219
  def ==(o)
@@ -200,7 +224,8 @@ module Authentik::Api
200
224
  action == o.action &&
201
225
  client_ip == o.client_ip &&
202
226
  app == o.app &&
203
- model == o.model
227
+ model == o.model &&
228
+ query == o.query
204
229
  end
205
230
 
206
231
  # @see the `==` method
@@ -212,7 +237,7 @@ module Authentik::Api
212
237
  # Calculates hash code according to all attributes.
213
238
  # @return [Integer] Hash code
214
239
  def hash
215
- [name, execution_logging, action, client_ip, app, model].hash
240
+ [name, execution_logging, action, client_ip, app, model, query].hash
216
241
  end
217
242
 
218
243
  # Builds the object from hash
@@ -0,0 +1,187 @@
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
+ # Count of unique users in events and aggregated counts per specified deltas
12
+ class EventStats < ApiModelBase
13
+ attr_accessor :unique_users
14
+
15
+ attr_accessor :count_step
16
+
17
+ # Attribute mapping from ruby-style variable name to JSON key.
18
+ def self.attribute_map
19
+ {
20
+ :'unique_users' => :'unique_users',
21
+ :'count_step' => :'count_step'
22
+ }
23
+ end
24
+
25
+ # Returns attribute mapping this model knows about
26
+ def self.acceptable_attribute_map
27
+ attribute_map
28
+ end
29
+
30
+ # Returns all the JSON keys this model knows about
31
+ def self.acceptable_attributes
32
+ acceptable_attribute_map.values
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'unique_users' => :'Integer',
39
+ :'count_step' => :'Hash<String, Object>'
40
+ }
41
+ end
42
+
43
+ # List of attributes with nullable: true
44
+ def self.openapi_nullable
45
+ Set.new([
46
+ ])
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ if (!attributes.is_a?(Hash))
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::EventStats` initialize method"
54
+ end
55
+
56
+ # check to see if the attribute exists and convert string to symbol for hash key
57
+ acceptable_attribute_map = self.class.acceptable_attribute_map
58
+ attributes = attributes.each_with_object({}) { |(k, v), h|
59
+ if (!acceptable_attribute_map.key?(k.to_sym))
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::EventStats`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
61
+ end
62
+ h[k.to_sym] = v
63
+ }
64
+
65
+ if attributes.key?(:'unique_users')
66
+ self.unique_users = attributes[:'unique_users']
67
+ else
68
+ self.unique_users = nil
69
+ end
70
+
71
+ if attributes.key?(:'count_step')
72
+ if (value = attributes[:'count_step']).is_a?(Hash)
73
+ self.count_step = value
74
+ end
75
+ else
76
+ self.count_step = nil
77
+ end
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properties with the reasons
82
+ def list_invalid_properties
83
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
84
+ invalid_properties = Array.new
85
+ if @unique_users.nil?
86
+ invalid_properties.push('invalid value for "unique_users", unique_users cannot be nil.')
87
+ end
88
+
89
+ if @count_step.nil?
90
+ invalid_properties.push('invalid value for "count_step", count_step cannot be nil.')
91
+ end
92
+
93
+ invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ warn '[DEPRECATED] the `valid?` method is obsolete'
100
+ return false if @unique_users.nil?
101
+ return false if @count_step.nil?
102
+ true
103
+ end
104
+
105
+ # Custom attribute writer method with validation
106
+ # @param [Object] unique_users Value to be assigned
107
+ def unique_users=(unique_users)
108
+ if unique_users.nil?
109
+ fail ArgumentError, 'unique_users cannot be nil'
110
+ end
111
+
112
+ @unique_users = unique_users
113
+ end
114
+
115
+ # Custom attribute writer method with validation
116
+ # @param [Object] count_step Value to be assigned
117
+ def count_step=(count_step)
118
+ if count_step.nil?
119
+ fail ArgumentError, 'count_step cannot be nil'
120
+ end
121
+
122
+ @count_step = count_step
123
+ end
124
+
125
+ # Checks equality by comparing each attribute.
126
+ # @param [Object] Object to be compared
127
+ def ==(o)
128
+ return true if self.equal?(o)
129
+ self.class == o.class &&
130
+ unique_users == o.unique_users &&
131
+ count_step == o.count_step
132
+ end
133
+
134
+ # @see the `==` method
135
+ # @param [Object] Object to be compared
136
+ def eql?(o)
137
+ self == o
138
+ end
139
+
140
+ # Calculates hash code according to all attributes.
141
+ # @return [Integer] Hash code
142
+ def hash
143
+ [unique_users, count_step].hash
144
+ end
145
+
146
+ # Builds the object from hash
147
+ # @param [Hash] attributes Model attributes in the form of hash
148
+ # @return [Object] Returns the model itself
149
+ def self.build_from_hash(attributes)
150
+ return nil unless attributes.is_a?(Hash)
151
+ attributes = attributes.transform_keys(&:to_sym)
152
+ transformed_hash = {}
153
+ openapi_types.each_pair do |key, type|
154
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
155
+ transformed_hash["#{key}"] = nil
156
+ elsif type =~ /\AArray<(.*)>/i
157
+ # check to ensure the input is an array given that the attribute
158
+ # is documented as an array but the input is not
159
+ if attributes[attribute_map[key]].is_a?(Array)
160
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
161
+ end
162
+ elsif !attributes[attribute_map[key]].nil?
163
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
164
+ end
165
+ end
166
+ new(transformed_hash)
167
+ end
168
+
169
+ # Returns the object in the form of hash
170
+ # @return [Hash] Returns the object in the form of hash
171
+ def to_hash
172
+ hash = {}
173
+ self.class.attribute_map.each_pair do |attr, param|
174
+ value = self.send(attr)
175
+ if value.nil?
176
+ is_nullable = self.class.openapi_nullable.include?(attr)
177
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
178
+ end
179
+
180
+ hash[param] = _to_hash(value)
181
+ end
182
+ hash
183
+ end
184
+
185
+ end
186
+
187
+ end
@@ -8,7 +8,7 @@ require 'date'
8
8
  require 'time'
9
9
 
10
10
  module Authentik::Api
11
- # Count of events of action created on day
11
+ # Count of events of action created on day for a single event action
12
12
  class EventVolume < ApiModelBase
13
13
  attr_accessor :action
14
14