authentik-api 2026.5.6 → 2026.8.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 (184) hide show
  1. checksums.yaml +4 -4
  2. data/README_API.md +104 -8
  3. data/lib/authentik/api/api/admin_api.rb +3 -0
  4. data/lib/authentik/api/api/core_api.rb +651 -27
  5. data/lib/authentik/api/api/endpoints_api.rb +7 -7
  6. data/lib/authentik/api/api/events_api.rb +35 -2
  7. data/lib/authentik/api/api/lifecycle_api.rb +258 -0
  8. data/lib/authentik/api/api/providers_api.rb +401 -0
  9. data/lib/authentik/api/api/requests_api.rb +1858 -0
  10. data/lib/authentik/api/api/sources_api.rb +6 -3
  11. data/lib/authentik/api/configuration.rb +14 -0
  12. data/lib/authentik/api/inflector.rb +2 -1
  13. data/lib/authentik/api/models/app_enum.rb +3 -1
  14. data/lib/authentik/api/models/application.rb +27 -1
  15. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +1 -11
  16. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +1 -11
  17. data/lib/authentik/api/models/brand.rb +31 -1
  18. data/lib/authentik/api/models/brand_request.rb +31 -1
  19. data/lib/authentik/api/models/captcha_stage.rb +32 -1
  20. data/lib/authentik/api/models/captcha_stage_request.rb +32 -1
  21. data/lib/authentik/api/models/compatibility_mode_enum.rb +2 -1
  22. data/lib/authentik/api/models/content_type.rb +30 -4
  23. data/lib/authentik/api/models/current_brand.rb +45 -1
  24. data/lib/authentik/api/models/current_brand_flags.rb +1 -55
  25. data/lib/authentik/api/models/device_user_binding.rb +39 -1
  26. data/lib/authentik/api/models/event_actions.rb +6 -1
  27. data/lib/authentik/api/models/grant_request.rb +382 -0
  28. data/lib/authentik/api/models/{reviewer_group.rb → grant_request_create_request.rb} +29 -42
  29. data/lib/authentik/api/models/{grant_types_enum.rb → grant_type_enum.rb} +5 -4
  30. data/lib/authentik/api/models/last_task_status_enum.rb +2 -1
  31. data/lib/authentik/api/models/ldap_outpost_config.rb +1 -1
  32. data/lib/authentik/api/models/ldap_source.rb +14 -4
  33. data/lib/authentik/api/models/ldap_source_request.rb +14 -4
  34. data/lib/authentik/api/models/lifecycle_rule.rb +2 -2
  35. data/lib/authentik/api/models/model_enum.rb +8 -1
  36. data/lib/authentik/api/models/notification_mode_enum.rb +35 -0
  37. data/lib/authentik/api/models/o_auth2_dynamic_client_registration.rb +291 -0
  38. data/lib/authentik/api/models/o_auth2_dynamic_client_registration_request.rb +303 -0
  39. data/lib/authentik/api/models/o_auth2_provider.rb +1 -1
  40. data/lib/authentik/api/models/o_auth2_provider_request.rb +1 -1
  41. data/lib/authentik/api/models/o_auth2_provider_setup_urls.rb +16 -4
  42. data/lib/authentik/api/models/o_auth_source.rb +0 -60
  43. data/lib/authentik/api/models/o_auth_source_request.rb +0 -60
  44. data/lib/authentik/api/models/object_attribute.rb +420 -0
  45. data/lib/authentik/api/models/object_attribute_request.rb +358 -0
  46. data/lib/authentik/api/models/object_attribute_type_enum.rb +35 -0
  47. data/lib/authentik/api/models/offboarding_action_enum.rb +34 -0
  48. data/lib/authentik/api/models/offboarding_status_enum.rb +36 -0
  49. data/lib/authentik/api/models/paginated_grant_request_list.rb +214 -0
  50. data/lib/authentik/api/models/paginated_o_auth2_dynamic_client_registration_list.rb +214 -0
  51. data/lib/authentik/api/models/paginated_object_attribute_list.rb +214 -0
  52. data/lib/authentik/api/models/paginated_request_rule_binding_list.rb +214 -0
  53. data/lib/authentik/api/models/paginated_request_rule_child_binding_list.rb +214 -0
  54. data/lib/authentik/api/models/paginated_request_rule_list.rb +214 -0
  55. data/lib/authentik/api/models/paginated_requestable_target_list.rb +214 -0
  56. data/lib/authentik/api/models/paginated_user_offboarding_list.rb +214 -0
  57. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +1 -11
  58. data/lib/authentik/api/models/patched_brand_request.rb +31 -1
  59. data/lib/authentik/api/models/patched_captcha_stage_request.rb +32 -1
  60. data/lib/authentik/api/models/patched_grant_request_fulfill_request.rb +175 -0
  61. data/lib/authentik/api/models/patched_ldap_source_request.rb +14 -4
  62. data/lib/authentik/api/models/patched_o_auth2_dynamic_client_registration_request.rb +286 -0
  63. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +1 -1
  64. data/lib/authentik/api/models/patched_o_auth_source_request.rb +0 -60
  65. data/lib/authentik/api/models/patched_object_attribute_request.rb +320 -0
  66. data/lib/authentik/api/models/patched_request_rule_binding_request.rb +249 -0
  67. data/lib/authentik/api/models/patched_request_rule_child_binding_request.rb +159 -0
  68. data/lib/authentik/api/models/patched_request_rule_request.rb +277 -0
  69. data/lib/authentik/api/models/patched_saml_source_request.rb +8 -8
  70. data/lib/authentik/api/models/patched_settings_request.rb +30 -1
  71. data/lib/authentik/api/models/patched_settings_request_flags.rb +1 -1
  72. data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +11 -1
  73. data/lib/authentik/api/models/policy_binding.rb +42 -4
  74. data/lib/authentik/api/models/provider_type_enum.rb +2 -3
  75. data/lib/authentik/api/models/related_rule.rb +2 -2
  76. data/lib/authentik/api/models/related_target.rb +266 -0
  77. data/lib/authentik/api/models/request_content_type_enum.rb +34 -0
  78. data/lib/authentik/api/models/request_rule.rb +329 -0
  79. data/lib/authentik/api/models/request_rule_binding.rb +353 -0
  80. data/lib/authentik/api/models/request_rule_binding_request.rb +283 -0
  81. data/lib/authentik/api/models/{reviewer_user.rb → request_rule_child_binding.rb} +34 -99
  82. data/lib/authentik/api/models/request_rule_child_binding_request.rb +193 -0
  83. data/lib/authentik/api/models/request_rule_request.rb +284 -0
  84. data/lib/authentik/api/models/request_status.rb +36 -0
  85. data/lib/authentik/api/models/requestable_target.rb +278 -0
  86. data/lib/authentik/api/models/review.rb +1 -1
  87. data/lib/authentik/api/models/saml_source.rb +35 -8
  88. data/lib/authentik/api/models/saml_source_request.rb +8 -8
  89. data/lib/authentik/api/models/saml_version_enum.rb +34 -0
  90. data/lib/authentik/api/models/session_user.rb +32 -4
  91. data/lib/authentik/api/models/settings.rb +30 -1
  92. data/lib/authentik/api/models/settings_request.rb +30 -1
  93. data/lib/authentik/api/models/system_info.rb +31 -4
  94. data/lib/authentik/api/models/task_aggregated_status_enum.rb +2 -1
  95. data/lib/authentik/api/models/task_status_enum.rb +2 -1
  96. data/lib/authentik/api/models/user_offboarding.rb +379 -0
  97. data/lib/authentik/api/models/user_offboarding_request.rb +237 -0
  98. data/lib/authentik/api/models/user_self.rb +28 -1
  99. data/lib/authentik/api/models/user_switch_action_enum.rb +34 -0
  100. data/lib/authentik/api/models/user_switch_request.rb +173 -0
  101. data/lib/authentik/api/models/user_switch_response.rb +159 -0
  102. data/lib/authentik/api/models/ws_federation_provider.rb +41 -4
  103. data/lib/authentik/api/models/ws_federation_provider_request.rb +11 -1
  104. data/lib/authentik/api/version.rb +1 -1
  105. data/spec/api/admin_api_spec.rb +1 -0
  106. data/spec/api/core_api_spec.rb +119 -0
  107. data/spec/api/events_api_spec.rb +11 -0
  108. data/spec/api/lifecycle_api_spec.rb +47 -0
  109. data/spec/api/providers_api_spec.rb +73 -0
  110. data/spec/api/requests_api_spec.rb +365 -0
  111. data/spec/api/sources_api_spec.rb +2 -1
  112. data/spec/models/application_spec.rb +6 -0
  113. data/spec/models/authenticator_web_authn_stage_request_spec.rb +0 -6
  114. data/spec/models/authenticator_web_authn_stage_spec.rb +0 -6
  115. data/spec/models/brand_request_spec.rb +18 -0
  116. data/spec/models/brand_spec.rb +18 -0
  117. data/spec/models/captcha_stage_request_spec.rb +6 -0
  118. data/spec/models/captcha_stage_spec.rb +6 -0
  119. data/spec/models/content_type_spec.rb +6 -0
  120. data/spec/models/current_brand_flags_spec.rb +0 -12
  121. data/spec/models/current_brand_spec.rb +18 -0
  122. data/spec/models/device_user_binding_spec.rb +12 -0
  123. data/spec/models/grant_request_create_request_spec.rb +36 -0
  124. data/spec/models/grant_request_spec.rb +90 -0
  125. data/spec/models/{grant_types_enum_spec.rb → grant_type_enum_spec.rb} +6 -6
  126. data/spec/models/ldap_source_request_spec.rb +6 -0
  127. data/spec/models/ldap_source_spec.rb +6 -0
  128. data/spec/models/notification_mode_enum_spec.rb +24 -0
  129. data/spec/models/o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  130. data/spec/models/o_auth2_dynamic_client_registration_spec.rb +84 -0
  131. data/spec/models/o_auth2_provider_setup_urls_spec.rb +6 -0
  132. data/spec/models/object_attribute_request_spec.rb +84 -0
  133. data/spec/models/object_attribute_spec.rb +108 -0
  134. data/spec/models/object_attribute_type_enum_spec.rb +24 -0
  135. data/spec/models/offboarding_action_enum_spec.rb +24 -0
  136. data/spec/models/offboarding_status_enum_spec.rb +24 -0
  137. data/spec/models/paginated_grant_request_list_spec.rb +42 -0
  138. data/spec/models/paginated_o_auth2_dynamic_client_registration_list_spec.rb +42 -0
  139. data/spec/models/paginated_object_attribute_list_spec.rb +42 -0
  140. data/spec/models/paginated_request_rule_binding_list_spec.rb +42 -0
  141. data/spec/models/paginated_request_rule_child_binding_list_spec.rb +42 -0
  142. data/spec/models/paginated_request_rule_list_spec.rb +42 -0
  143. data/spec/models/paginated_requestable_target_list_spec.rb +42 -0
  144. data/spec/models/paginated_user_offboarding_list_spec.rb +42 -0
  145. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +0 -6
  146. data/spec/models/patched_brand_request_spec.rb +18 -0
  147. data/spec/models/patched_captcha_stage_request_spec.rb +6 -0
  148. data/spec/models/patched_grant_request_fulfill_request_spec.rb +36 -0
  149. data/spec/models/patched_ldap_source_request_spec.rb +6 -0
  150. data/spec/models/patched_o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  151. data/spec/models/patched_object_attribute_request_spec.rb +84 -0
  152. data/spec/models/patched_request_rule_binding_request_spec.rb +60 -0
  153. data/spec/models/patched_request_rule_child_binding_request_spec.rb +42 -0
  154. data/spec/models/patched_request_rule_request_spec.rb +72 -0
  155. data/spec/models/patched_saml_source_request_spec.rb +1 -1
  156. data/spec/models/patched_settings_request_spec.rb +6 -0
  157. data/spec/models/patched_ws_federation_provider_request_spec.rb +6 -0
  158. data/spec/models/policy_binding_spec.rb +12 -0
  159. data/spec/models/related_target_spec.rb +54 -0
  160. data/spec/models/request_content_type_enum_spec.rb +24 -0
  161. data/spec/models/request_rule_binding_request_spec.rb +60 -0
  162. data/spec/models/request_rule_binding_spec.rb +84 -0
  163. data/spec/models/request_rule_child_binding_request_spec.rb +42 -0
  164. data/spec/models/{reviewer_user_spec.rb → request_rule_child_binding_spec.rb} +8 -14
  165. data/spec/models/request_rule_request_spec.rb +72 -0
  166. data/spec/models/request_rule_spec.rb +84 -0
  167. data/spec/models/request_status_spec.rb +24 -0
  168. data/spec/models/requestable_target_spec.rb +60 -0
  169. data/spec/models/saml_source_request_spec.rb +1 -1
  170. data/spec/models/saml_source_spec.rb +7 -1
  171. data/spec/models/saml_version_enum_spec.rb +24 -0
  172. data/spec/models/session_user_spec.rb +6 -0
  173. data/spec/models/settings_request_spec.rb +6 -0
  174. data/spec/models/settings_spec.rb +6 -0
  175. data/spec/models/system_info_spec.rb +6 -0
  176. data/spec/models/user_offboarding_request_spec.rb +54 -0
  177. data/spec/models/user_offboarding_spec.rb +90 -0
  178. data/spec/models/user_self_spec.rb +6 -0
  179. data/spec/models/user_switch_action_enum_spec.rb +24 -0
  180. data/spec/models/{reviewer_group_spec.rb → user_switch_request_spec.rb} +8 -8
  181. data/spec/models/user_switch_response_spec.rb +30 -0
  182. data/spec/models/ws_federation_provider_request_spec.rb +6 -0
  183. data/spec/models/ws_federation_provider_spec.rb +12 -0
  184. metadata +127 -10
@@ -22,6 +22,8 @@ module Authentik::Api
22
22
 
23
23
  attr_accessor :api_url
24
24
 
25
+ attr_accessor :request_content_type
26
+
25
27
  attr_accessor :interactive
26
28
 
27
29
  attr_accessor :score_min_threshold
@@ -31,6 +33,28 @@ module Authentik::Api
31
33
  # When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions
32
34
  attr_accessor :error_on_invalid_score
33
35
 
36
+ class EnumAttributeValidator
37
+ attr_reader :datatype
38
+ attr_reader :allowable_values
39
+
40
+ def initialize(datatype, allowable_values)
41
+ @allowable_values = allowable_values.map do |value|
42
+ case datatype.to_s
43
+ when /Integer/i
44
+ value.to_i
45
+ when /Float/i
46
+ value.to_f
47
+ else
48
+ value
49
+ end
50
+ end
51
+ end
52
+
53
+ def valid?(value)
54
+ !value || allowable_values.include?(value)
55
+ end
56
+ end
57
+
34
58
  # Attribute mapping from ruby-style variable name to JSON key.
35
59
  def self.attribute_map
36
60
  {
@@ -39,6 +63,7 @@ module Authentik::Api
39
63
  :'private_key' => :'private_key',
40
64
  :'js_url' => :'js_url',
41
65
  :'api_url' => :'api_url',
66
+ :'request_content_type' => :'request_content_type',
42
67
  :'interactive' => :'interactive',
43
68
  :'score_min_threshold' => :'score_min_threshold',
44
69
  :'score_max_threshold' => :'score_max_threshold',
@@ -64,6 +89,7 @@ module Authentik::Api
64
89
  :'private_key' => :'String',
65
90
  :'js_url' => :'String',
66
91
  :'api_url' => :'String',
92
+ :'request_content_type' => :'RequestContentTypeEnum',
67
93
  :'interactive' => :'Boolean',
68
94
  :'score_min_threshold' => :'Float',
69
95
  :'score_max_threshold' => :'Float',
@@ -119,6 +145,10 @@ module Authentik::Api
119
145
  self.api_url = attributes[:'api_url']
120
146
  end
121
147
 
148
+ if attributes.key?(:'request_content_type')
149
+ self.request_content_type = attributes[:'request_content_type']
150
+ end
151
+
122
152
  if attributes.key?(:'interactive')
123
153
  self.interactive = attributes[:'interactive']
124
154
  end
@@ -271,6 +301,7 @@ module Authentik::Api
271
301
  private_key == o.private_key &&
272
302
  js_url == o.js_url &&
273
303
  api_url == o.api_url &&
304
+ request_content_type == o.request_content_type &&
274
305
  interactive == o.interactive &&
275
306
  score_min_threshold == o.score_min_threshold &&
276
307
  score_max_threshold == o.score_max_threshold &&
@@ -286,7 +317,7 @@ module Authentik::Api
286
317
  # Calculates hash code according to all attributes.
287
318
  # @return [Integer] Hash code
288
319
  def hash
289
- [name, public_key, private_key, js_url, api_url, interactive, score_min_threshold, score_max_threshold, error_on_invalid_score].hash
320
+ [name, public_key, private_key, js_url, api_url, request_content_type, interactive, score_min_threshold, score_max_threshold, error_on_invalid_score].hash
290
321
  end
291
322
 
292
323
  # Builds the object from hash
@@ -13,11 +13,12 @@ module Authentik::Api
13
13
  AWS = "aws".freeze
14
14
  SLACK = "slack".freeze
15
15
  SFDC = "sfdc".freeze
16
+ GITLAB = "gitlab".freeze
16
17
  WEBEX = "webex".freeze
17
18
  VCENTER = "vcenter".freeze
18
19
 
19
20
  def self.all_vars
20
- @all_vars ||= [DEFAULT, AWS, SLACK, SFDC, WEBEX, VCENTER].freeze
21
+ @all_vars ||= [DEFAULT, AWS, SLACK, SFDC, GITLAB, WEBEX, VCENTER].freeze
21
22
  end
22
23
 
23
24
  # Builds the enum from string
@@ -17,13 +17,16 @@ module Authentik::Api
17
17
 
18
18
  attr_accessor :verbose_name_plural
19
19
 
20
+ attr_accessor :fully_qualified_model
21
+
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
23
25
  :'id' => :'id',
24
26
  :'app_label' => :'app_label',
25
27
  :'model' => :'model',
26
- :'verbose_name_plural' => :'verbose_name_plural'
28
+ :'verbose_name_plural' => :'verbose_name_plural',
29
+ :'fully_qualified_model' => :'fully_qualified_model'
27
30
  }
28
31
  end
29
32
 
@@ -43,7 +46,8 @@ module Authentik::Api
43
46
  :'id' => :'Integer',
44
47
  :'app_label' => :'String',
45
48
  :'model' => :'String',
46
- :'verbose_name_plural' => :'String'
49
+ :'verbose_name_plural' => :'String',
50
+ :'fully_qualified_model' => :'String'
47
51
  }
48
52
  end
49
53
 
@@ -92,6 +96,12 @@ module Authentik::Api
92
96
  else
93
97
  self.verbose_name_plural = nil
94
98
  end
99
+
100
+ if attributes.key?(:'fully_qualified_model')
101
+ self.fully_qualified_model = attributes[:'fully_qualified_model']
102
+ else
103
+ self.fully_qualified_model = nil
104
+ end
95
105
  end
96
106
 
97
107
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -115,6 +125,10 @@ module Authentik::Api
115
125
  invalid_properties.push('invalid value for "verbose_name_plural", verbose_name_plural cannot be nil.')
116
126
  end
117
127
 
128
+ if @fully_qualified_model.nil?
129
+ invalid_properties.push('invalid value for "fully_qualified_model", fully_qualified_model cannot be nil.')
130
+ end
131
+
118
132
  invalid_properties
119
133
  end
120
134
 
@@ -126,6 +140,7 @@ module Authentik::Api
126
140
  return false if @app_label.nil?
127
141
  return false if @model.nil?
128
142
  return false if @verbose_name_plural.nil?
143
+ return false if @fully_qualified_model.nil?
129
144
  true
130
145
  end
131
146
 
@@ -169,6 +184,16 @@ module Authentik::Api
169
184
  @verbose_name_plural = verbose_name_plural
170
185
  end
171
186
 
187
+ # Custom attribute writer method with validation
188
+ # @param [Object] fully_qualified_model Value to be assigned
189
+ def fully_qualified_model=(fully_qualified_model)
190
+ if fully_qualified_model.nil?
191
+ fail ArgumentError, 'fully_qualified_model cannot be nil'
192
+ end
193
+
194
+ @fully_qualified_model = fully_qualified_model
195
+ end
196
+
172
197
  # Checks equality by comparing each attribute.
173
198
  # @param [Object] Object to be compared
174
199
  def ==(o)
@@ -177,7 +202,8 @@ module Authentik::Api
177
202
  id == o.id &&
178
203
  app_label == o.app_label &&
179
204
  model == o.model &&
180
- verbose_name_plural == o.verbose_name_plural
205
+ verbose_name_plural == o.verbose_name_plural &&
206
+ fully_qualified_model == o.fully_qualified_model
181
207
  end
182
208
 
183
209
  # @see the `==` method
@@ -189,7 +215,7 @@ module Authentik::Api
189
215
  # Calculates hash code according to all attributes.
190
216
  # @return [Integer] Hash code
191
217
  def hash
192
- [id, app_label, model, verbose_name_plural].hash
218
+ [id, app_label, model, verbose_name_plural, fully_qualified_model].hash
193
219
  end
194
220
 
195
221
  # Builds the object from hash
@@ -24,12 +24,16 @@ module Authentik::Api
24
24
 
25
25
  attr_accessor :branding_custom_css
26
26
 
27
+ attr_accessor :branding_map_tiles
28
+
27
29
  attr_accessor :ui_footer_links
28
30
 
29
31
  attr_accessor :ui_theme
30
32
 
31
33
  attr_accessor :flow_authentication
32
34
 
35
+ attr_accessor :flow_user_switch
36
+
33
37
  attr_accessor :flow_invalidation
34
38
 
35
39
  attr_accessor :flow_recovery
@@ -42,6 +46,8 @@ module Authentik::Api
42
46
 
43
47
  attr_accessor :flow_lockdown
44
48
 
49
+ attr_accessor :flow_request
50
+
45
51
  attr_accessor :default_locale
46
52
 
47
53
  attr_accessor :flags
@@ -78,15 +84,18 @@ module Authentik::Api
78
84
  :'branding_favicon' => :'branding_favicon',
79
85
  :'branding_favicon_themed_urls' => :'branding_favicon_themed_urls',
80
86
  :'branding_custom_css' => :'branding_custom_css',
87
+ :'branding_map_tiles' => :'branding_map_tiles',
81
88
  :'ui_footer_links' => :'ui_footer_links',
82
89
  :'ui_theme' => :'ui_theme',
83
90
  :'flow_authentication' => :'flow_authentication',
91
+ :'flow_user_switch' => :'flow_user_switch',
84
92
  :'flow_invalidation' => :'flow_invalidation',
85
93
  :'flow_recovery' => :'flow_recovery',
86
94
  :'flow_unenrollment' => :'flow_unenrollment',
87
95
  :'flow_user_settings' => :'flow_user_settings',
88
96
  :'flow_device_code' => :'flow_device_code',
89
97
  :'flow_lockdown' => :'flow_lockdown',
98
+ :'flow_request' => :'flow_request',
90
99
  :'default_locale' => :'default_locale',
91
100
  :'flags' => :'flags'
92
101
  }
@@ -112,15 +121,18 @@ module Authentik::Api
112
121
  :'branding_favicon' => :'String',
113
122
  :'branding_favicon_themed_urls' => :'ThemedUrls',
114
123
  :'branding_custom_css' => :'String',
124
+ :'branding_map_tiles' => :'String',
115
125
  :'ui_footer_links' => :'Array<FooterLink>',
116
126
  :'ui_theme' => :'UiThemeEnum',
117
127
  :'flow_authentication' => :'String',
128
+ :'flow_user_switch' => :'String',
118
129
  :'flow_invalidation' => :'String',
119
130
  :'flow_recovery' => :'String',
120
131
  :'flow_unenrollment' => :'String',
121
132
  :'flow_user_settings' => :'String',
122
133
  :'flow_device_code' => :'String',
123
134
  :'flow_lockdown' => :'String',
135
+ :'flow_request' => :'String',
124
136
  :'default_locale' => :'String',
125
137
  :'flags' => :'CurrentBrandFlags'
126
138
  }
@@ -192,6 +204,12 @@ module Authentik::Api
192
204
  self.branding_custom_css = nil
193
205
  end
194
206
 
207
+ if attributes.key?(:'branding_map_tiles')
208
+ self.branding_map_tiles = attributes[:'branding_map_tiles']
209
+ else
210
+ self.branding_map_tiles = nil
211
+ end
212
+
195
213
  if attributes.key?(:'ui_footer_links')
196
214
  if (value = attributes[:'ui_footer_links']).is_a?(Array)
197
215
  self.ui_footer_links = value
@@ -210,6 +228,10 @@ module Authentik::Api
210
228
  self.flow_authentication = attributes[:'flow_authentication']
211
229
  end
212
230
 
231
+ if attributes.key?(:'flow_user_switch')
232
+ self.flow_user_switch = attributes[:'flow_user_switch']
233
+ end
234
+
213
235
  if attributes.key?(:'flow_invalidation')
214
236
  self.flow_invalidation = attributes[:'flow_invalidation']
215
237
  end
@@ -234,6 +256,10 @@ module Authentik::Api
234
256
  self.flow_lockdown = attributes[:'flow_lockdown']
235
257
  end
236
258
 
259
+ if attributes.key?(:'flow_request')
260
+ self.flow_request = attributes[:'flow_request']
261
+ end
262
+
237
263
  if attributes.key?(:'default_locale')
238
264
  self.default_locale = attributes[:'default_locale']
239
265
  else
@@ -272,6 +298,10 @@ module Authentik::Api
272
298
  invalid_properties.push('invalid value for "branding_custom_css", branding_custom_css cannot be nil.')
273
299
  end
274
300
 
301
+ if @branding_map_tiles.nil?
302
+ invalid_properties.push('invalid value for "branding_map_tiles", branding_map_tiles cannot be nil.')
303
+ end
304
+
275
305
  if @ui_footer_links.nil?
276
306
  invalid_properties.push('invalid value for "ui_footer_links", ui_footer_links cannot be nil.')
277
307
  end
@@ -300,6 +330,7 @@ module Authentik::Api
300
330
  return false if @branding_logo.nil?
301
331
  return false if @branding_favicon.nil?
302
332
  return false if @branding_custom_css.nil?
333
+ return false if @branding_map_tiles.nil?
303
334
  return false if @ui_footer_links.nil?
304
335
  return false if @ui_theme.nil?
305
336
  return false if @default_locale.nil?
@@ -357,6 +388,16 @@ module Authentik::Api
357
388
  @branding_custom_css = branding_custom_css
358
389
  end
359
390
 
391
+ # Custom attribute writer method with validation
392
+ # @param [Object] branding_map_tiles Value to be assigned
393
+ def branding_map_tiles=(branding_map_tiles)
394
+ if branding_map_tiles.nil?
395
+ fail ArgumentError, 'branding_map_tiles cannot be nil'
396
+ end
397
+
398
+ @branding_map_tiles = branding_map_tiles
399
+ end
400
+
360
401
  # Custom attribute writer method with validation
361
402
  # @param [Object] ui_footer_links Value to be assigned
362
403
  def ui_footer_links=(ui_footer_links)
@@ -409,15 +450,18 @@ module Authentik::Api
409
450
  branding_favicon == o.branding_favicon &&
410
451
  branding_favicon_themed_urls == o.branding_favicon_themed_urls &&
411
452
  branding_custom_css == o.branding_custom_css &&
453
+ branding_map_tiles == o.branding_map_tiles &&
412
454
  ui_footer_links == o.ui_footer_links &&
413
455
  ui_theme == o.ui_theme &&
414
456
  flow_authentication == o.flow_authentication &&
457
+ flow_user_switch == o.flow_user_switch &&
415
458
  flow_invalidation == o.flow_invalidation &&
416
459
  flow_recovery == o.flow_recovery &&
417
460
  flow_unenrollment == o.flow_unenrollment &&
418
461
  flow_user_settings == o.flow_user_settings &&
419
462
  flow_device_code == o.flow_device_code &&
420
463
  flow_lockdown == o.flow_lockdown &&
464
+ flow_request == o.flow_request &&
421
465
  default_locale == o.default_locale &&
422
466
  flags == o.flags
423
467
  end
@@ -431,7 +475,7 @@ module Authentik::Api
431
475
  # Calculates hash code according to all attributes.
432
476
  # @return [Integer] Hash code
433
477
  def 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
478
+ [matched_domain, branding_title, branding_logo, branding_logo_themed_urls, branding_favicon, branding_favicon_themed_urls, branding_custom_css, branding_map_tiles, ui_footer_links, ui_theme, flow_authentication, flow_user_switch, flow_invalidation, flow_recovery, flow_unenrollment, flow_user_settings, flow_device_code, flow_lockdown, flow_request, default_locale, flags].hash
435
479
  end
436
480
 
437
481
  # Builds the object from hash
@@ -9,12 +9,6 @@ require 'time'
9
9
 
10
10
  module Authentik::Api
11
11
  class CurrentBrandFlags < ApiModelBase
12
- # Configure if applications without any policy/group/user bindings should be accessible to any user.
13
- attr_accessor :core_default_app_access
14
-
15
- # Include additional information in audit logs, may incur a performance penalty.
16
- attr_accessor :enterprise_audit_include_expanded_diff
17
-
18
12
  # Upon successful authentication, re-start authentication in other open tabs.
19
13
  attr_accessor :flows_continuous_login
20
14
 
@@ -24,8 +18,6 @@ module Authentik::Api
24
18
  # Attribute mapping from ruby-style variable name to JSON key.
25
19
  def self.attribute_map
26
20
  {
27
- :'core_default_app_access' => :'core_default_app_access',
28
- :'enterprise_audit_include_expanded_diff' => :'enterprise_audit_include_expanded_diff',
29
21
  :'flows_continuous_login' => :'flows_continuous_login',
30
22
  :'flows_refresh_others' => :'flows_refresh_others'
31
23
  }
@@ -44,8 +36,6 @@ module Authentik::Api
44
36
  # Attribute type mapping.
45
37
  def self.openapi_types
46
38
  {
47
- :'core_default_app_access' => :'Boolean',
48
- :'enterprise_audit_include_expanded_diff' => :'Boolean',
49
39
  :'flows_continuous_login' => :'Boolean',
50
40
  :'flows_refresh_others' => :'Boolean'
51
41
  }
@@ -73,18 +63,6 @@ module Authentik::Api
73
63
  h[k.to_sym] = v
74
64
  }
75
65
 
76
- if attributes.key?(:'core_default_app_access')
77
- self.core_default_app_access = attributes[:'core_default_app_access']
78
- else
79
- self.core_default_app_access = nil
80
- end
81
-
82
- if attributes.key?(:'enterprise_audit_include_expanded_diff')
83
- self.enterprise_audit_include_expanded_diff = attributes[:'enterprise_audit_include_expanded_diff']
84
- else
85
- self.enterprise_audit_include_expanded_diff = nil
86
- end
87
-
88
66
  if attributes.key?(:'flows_continuous_login')
89
67
  self.flows_continuous_login = attributes[:'flows_continuous_login']
90
68
  else
@@ -103,14 +81,6 @@ module Authentik::Api
103
81
  def list_invalid_properties
104
82
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
105
83
  invalid_properties = Array.new
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.')
108
- end
109
-
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.')
112
- end
113
-
114
84
  if @flows_continuous_login.nil?
115
85
  invalid_properties.push('invalid value for "flows_continuous_login", flows_continuous_login cannot be nil.')
116
86
  end
@@ -126,33 +96,11 @@ module Authentik::Api
126
96
  # @return true if the model is valid
127
97
  def valid?
128
98
  warn '[DEPRECATED] the `valid?` method is obsolete'
129
- return false if @core_default_app_access.nil?
130
- return false if @enterprise_audit_include_expanded_diff.nil?
131
99
  return false if @flows_continuous_login.nil?
132
100
  return false if @flows_refresh_others.nil?
133
101
  true
134
102
  end
135
103
 
136
- # Custom attribute writer method with validation
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'
141
- end
142
-
143
- @core_default_app_access = core_default_app_access
144
- end
145
-
146
- # Custom attribute writer method with validation
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'
151
- end
152
-
153
- @enterprise_audit_include_expanded_diff = enterprise_audit_include_expanded_diff
154
- end
155
-
156
104
  # Custom attribute writer method with validation
157
105
  # @param [Object] flows_continuous_login Value to be assigned
158
106
  def flows_continuous_login=(flows_continuous_login)
@@ -178,8 +126,6 @@ module Authentik::Api
178
126
  def ==(o)
179
127
  return true if self.equal?(o)
180
128
  self.class == o.class &&
181
- core_default_app_access == o.core_default_app_access &&
182
- enterprise_audit_include_expanded_diff == o.enterprise_audit_include_expanded_diff &&
183
129
  flows_continuous_login == o.flows_continuous_login &&
184
130
  flows_refresh_others == o.flows_refresh_others
185
131
  end
@@ -193,7 +139,7 @@ module Authentik::Api
193
139
  # Calculates hash code according to all attributes.
194
140
  # @return [Integer] Hash code
195
141
  def hash
196
- [core_default_app_access, enterprise_audit_include_expanded_diff, flows_continuous_login, flows_refresh_others].hash
142
+ [flows_continuous_login, flows_refresh_others].hash
197
143
  end
198
144
 
199
145
  # Builds the object from hash
@@ -39,6 +39,10 @@ module Authentik::Api
39
39
  # Result if the Policy execution fails.
40
40
  attr_accessor :failure_result
41
41
 
42
+ attr_accessor :expires
43
+
44
+ attr_accessor :expiring
45
+
42
46
  attr_accessor :is_primary
43
47
 
44
48
  attr_accessor :connector
@@ -61,6 +65,8 @@ module Authentik::Api
61
65
  :'order' => :'order',
62
66
  :'timeout' => :'timeout',
63
67
  :'failure_result' => :'failure_result',
68
+ :'expires' => :'expires',
69
+ :'expiring' => :'expiring',
64
70
  :'is_primary' => :'is_primary',
65
71
  :'connector' => :'connector',
66
72
  :'connector_obj' => :'connector_obj'
@@ -93,6 +99,8 @@ module Authentik::Api
93
99
  :'order' => :'Integer',
94
100
  :'timeout' => :'Integer',
95
101
  :'failure_result' => :'Boolean',
102
+ :'expires' => :'Time',
103
+ :'expiring' => :'Boolean',
96
104
  :'is_primary' => :'Boolean',
97
105
  :'connector' => :'String',
98
106
  :'connector_obj' => :'Connector'
@@ -108,6 +116,7 @@ module Authentik::Api
108
116
  :'policy_obj',
109
117
  :'group_obj',
110
118
  :'user_obj',
119
+ :'expires',
111
120
  :'connector',
112
121
  ])
113
122
  end
@@ -192,6 +201,18 @@ module Authentik::Api
192
201
  self.failure_result = attributes[:'failure_result']
193
202
  end
194
203
 
204
+ if attributes.key?(:'expires')
205
+ self.expires = attributes[:'expires']
206
+ else
207
+ self.expires = nil
208
+ end
209
+
210
+ if attributes.key?(:'expiring')
211
+ self.expiring = attributes[:'expiring']
212
+ else
213
+ self.expiring = nil
214
+ end
215
+
195
216
  if attributes.key?(:'is_primary')
196
217
  self.is_primary = attributes[:'is_primary']
197
218
  end
@@ -242,6 +263,10 @@ module Authentik::Api
242
263
  invalid_properties.push('invalid value for "timeout", must be greater than or equal to 0.')
243
264
  end
244
265
 
266
+ if @expiring.nil?
267
+ invalid_properties.push('invalid value for "expiring", expiring cannot be nil.')
268
+ end
269
+
245
270
  if @connector_obj.nil?
246
271
  invalid_properties.push('invalid value for "connector_obj", connector_obj cannot be nil.')
247
272
  end
@@ -260,6 +285,7 @@ module Authentik::Api
260
285
  return false if @order < -2147483648
261
286
  return false if !@timeout.nil? && @timeout > 2147483647
262
287
  return false if !@timeout.nil? && @timeout < 0
288
+ return false if @expiring.nil?
263
289
  return false if @connector_obj.nil?
264
290
  true
265
291
  end
@@ -320,6 +346,16 @@ module Authentik::Api
320
346
  @timeout = timeout
321
347
  end
322
348
 
349
+ # Custom attribute writer method with validation
350
+ # @param [Object] expiring Value to be assigned
351
+ def expiring=(expiring)
352
+ if expiring.nil?
353
+ fail ArgumentError, 'expiring cannot be nil'
354
+ end
355
+
356
+ @expiring = expiring
357
+ end
358
+
323
359
  # Custom attribute writer method with validation
324
360
  # @param [Object] connector_obj Value to be assigned
325
361
  def connector_obj=(connector_obj)
@@ -348,6 +384,8 @@ module Authentik::Api
348
384
  order == o.order &&
349
385
  timeout == o.timeout &&
350
386
  failure_result == o.failure_result &&
387
+ expires == o.expires &&
388
+ expiring == o.expiring &&
351
389
  is_primary == o.is_primary &&
352
390
  connector == o.connector &&
353
391
  connector_obj == o.connector_obj
@@ -362,7 +400,7 @@ module Authentik::Api
362
400
  # Calculates hash code according to all attributes.
363
401
  # @return [Integer] Hash code
364
402
  def hash
365
- [pk, policy, group, user, policy_obj, group_obj, user_obj, target, negate, enabled, order, timeout, failure_result, is_primary, connector, connector_obj].hash
403
+ [pk, policy, group, user, policy_obj, group_obj, user_obj, target, negate, enabled, order, timeout, failure_result, expires, expiring, is_primary, connector, connector_obj].hash
366
404
  end
367
405
 
368
406
  # Builds the object from hash
@@ -13,6 +13,7 @@ module Authentik::Api
13
13
  LOGIN_FAILED = "login_failed".freeze
14
14
  LOGOUT = "logout".freeze
15
15
  USER_WRITE = "user_write".freeze
16
+ USER_OFFBOARDED = "user_offboarded".freeze
16
17
  SUSPICIOUS_REQUEST = "suspicious_request".freeze
17
18
  PASSWORD_SET = "password_set".freeze
18
19
  SECRET_VIEW = "secret_view".freeze
@@ -41,10 +42,14 @@ module Authentik::Api
41
42
  REVIEW_OVERDUE = "review_overdue".freeze
42
43
  REVIEW_ATTESTED = "review_attested".freeze
43
44
  REVIEW_COMPLETED = "review_completed".freeze
45
+ ACCESS_REQUEST_CREATED = "access_request_created".freeze
46
+ ACCESS_REQUEST_APPROVED = "access_request_approved".freeze
47
+ ACCESS_REQUEST_DENIED = "access_request_denied".freeze
48
+ ACCESS_REQUEST_REVOKED = "access_request_revoked".freeze
44
49
  CUSTOM = "custom_".freeze
45
50
 
46
51
  def self.all_vars
47
- @all_vars ||= [LOGIN, LOGIN_FAILED, LOGOUT, USER_WRITE, SUSPICIOUS_REQUEST, PASSWORD_SET, SECRET_VIEW, SECRET_ROTATE, INVITATION_USED, AUTHORIZE_APPLICATION, SOURCE_LINKED, IMPERSONATION_STARTED, IMPERSONATION_ENDED, FLOW_EXECUTION, POLICY_EXECUTION, POLICY_EXCEPTION, PROPERTY_MAPPING_EXCEPTION, SYSTEM_TASK_EXECUTION, SYSTEM_TASK_EXCEPTION, SYSTEM_EXCEPTION, CONFIGURATION_ERROR, CONFIGURATION_WARNING, MODEL_CREATED, MODEL_UPDATED, MODEL_DELETED, EMAIL_SENT, UPDATE_AVAILABLE, EXPORT_READY, REVIEW_INITIATED, REVIEW_OVERDUE, REVIEW_ATTESTED, REVIEW_COMPLETED, CUSTOM].freeze
52
+ @all_vars ||= [LOGIN, LOGIN_FAILED, LOGOUT, USER_WRITE, USER_OFFBOARDED, SUSPICIOUS_REQUEST, PASSWORD_SET, SECRET_VIEW, SECRET_ROTATE, INVITATION_USED, AUTHORIZE_APPLICATION, SOURCE_LINKED, IMPERSONATION_STARTED, IMPERSONATION_ENDED, FLOW_EXECUTION, POLICY_EXECUTION, POLICY_EXCEPTION, PROPERTY_MAPPING_EXCEPTION, SYSTEM_TASK_EXECUTION, SYSTEM_TASK_EXCEPTION, SYSTEM_EXCEPTION, CONFIGURATION_ERROR, CONFIGURATION_WARNING, MODEL_CREATED, MODEL_UPDATED, MODEL_DELETED, EMAIL_SENT, UPDATE_AVAILABLE, EXPORT_READY, REVIEW_INITIATED, REVIEW_OVERDUE, REVIEW_ATTESTED, REVIEW_COMPLETED, ACCESS_REQUEST_CREATED, ACCESS_REQUEST_APPROVED, ACCESS_REQUEST_DENIED, ACCESS_REQUEST_REVOKED, CUSTOM].freeze
48
53
  end
49
54
 
50
55
  # Builds the enum from string