authentik-api 2026.5.6 → 2026.8.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 (182) 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 +21 -1
  18. data/lib/authentik/api/models/brand_request.rb +21 -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 +19 -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_auth_source.rb +0 -60
  42. data/lib/authentik/api/models/o_auth_source_request.rb +0 -60
  43. data/lib/authentik/api/models/object_attribute.rb +420 -0
  44. data/lib/authentik/api/models/object_attribute_request.rb +358 -0
  45. data/lib/authentik/api/models/object_attribute_type_enum.rb +35 -0
  46. data/lib/authentik/api/models/offboarding_action_enum.rb +34 -0
  47. data/lib/authentik/api/models/offboarding_status_enum.rb +36 -0
  48. data/lib/authentik/api/models/paginated_grant_request_list.rb +214 -0
  49. data/lib/authentik/api/models/paginated_o_auth2_dynamic_client_registration_list.rb +214 -0
  50. data/lib/authentik/api/models/paginated_object_attribute_list.rb +214 -0
  51. data/lib/authentik/api/models/paginated_request_rule_binding_list.rb +214 -0
  52. data/lib/authentik/api/models/paginated_request_rule_child_binding_list.rb +214 -0
  53. data/lib/authentik/api/models/paginated_request_rule_list.rb +214 -0
  54. data/lib/authentik/api/models/paginated_requestable_target_list.rb +214 -0
  55. data/lib/authentik/api/models/paginated_user_offboarding_list.rb +214 -0
  56. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +1 -11
  57. data/lib/authentik/api/models/patched_brand_request.rb +21 -1
  58. data/lib/authentik/api/models/patched_captcha_stage_request.rb +32 -1
  59. data/lib/authentik/api/models/patched_grant_request_fulfill_request.rb +175 -0
  60. data/lib/authentik/api/models/patched_ldap_source_request.rb +14 -4
  61. data/lib/authentik/api/models/patched_o_auth2_dynamic_client_registration_request.rb +286 -0
  62. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +1 -1
  63. data/lib/authentik/api/models/patched_o_auth_source_request.rb +0 -60
  64. data/lib/authentik/api/models/patched_object_attribute_request.rb +320 -0
  65. data/lib/authentik/api/models/patched_request_rule_binding_request.rb +249 -0
  66. data/lib/authentik/api/models/patched_request_rule_child_binding_request.rb +159 -0
  67. data/lib/authentik/api/models/patched_request_rule_request.rb +277 -0
  68. data/lib/authentik/api/models/patched_saml_source_request.rb +8 -8
  69. data/lib/authentik/api/models/patched_settings_request.rb +30 -1
  70. data/lib/authentik/api/models/patched_settings_request_flags.rb +1 -1
  71. data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +11 -1
  72. data/lib/authentik/api/models/policy_binding.rb +42 -4
  73. data/lib/authentik/api/models/provider_type_enum.rb +2 -3
  74. data/lib/authentik/api/models/related_rule.rb +2 -2
  75. data/lib/authentik/api/models/related_target.rb +266 -0
  76. data/lib/authentik/api/models/request_content_type_enum.rb +34 -0
  77. data/lib/authentik/api/models/request_rule.rb +329 -0
  78. data/lib/authentik/api/models/request_rule_binding.rb +353 -0
  79. data/lib/authentik/api/models/request_rule_binding_request.rb +283 -0
  80. data/lib/authentik/api/models/{reviewer_user.rb → request_rule_child_binding.rb} +34 -99
  81. data/lib/authentik/api/models/request_rule_child_binding_request.rb +193 -0
  82. data/lib/authentik/api/models/request_rule_request.rb +284 -0
  83. data/lib/authentik/api/models/request_status.rb +36 -0
  84. data/lib/authentik/api/models/requestable_target.rb +278 -0
  85. data/lib/authentik/api/models/review.rb +1 -1
  86. data/lib/authentik/api/models/saml_source.rb +35 -8
  87. data/lib/authentik/api/models/saml_source_request.rb +8 -8
  88. data/lib/authentik/api/models/saml_version_enum.rb +34 -0
  89. data/lib/authentik/api/models/session_user.rb +32 -4
  90. data/lib/authentik/api/models/settings.rb +30 -1
  91. data/lib/authentik/api/models/settings_request.rb +30 -1
  92. data/lib/authentik/api/models/system_info.rb +31 -4
  93. data/lib/authentik/api/models/task_aggregated_status_enum.rb +2 -1
  94. data/lib/authentik/api/models/task_status_enum.rb +2 -1
  95. data/lib/authentik/api/models/user_offboarding.rb +379 -0
  96. data/lib/authentik/api/models/user_offboarding_request.rb +237 -0
  97. data/lib/authentik/api/models/user_self.rb +28 -1
  98. data/lib/authentik/api/models/user_switch_action_enum.rb +34 -0
  99. data/lib/authentik/api/models/user_switch_request.rb +173 -0
  100. data/lib/authentik/api/models/user_switch_response.rb +159 -0
  101. data/lib/authentik/api/models/ws_federation_provider.rb +41 -4
  102. data/lib/authentik/api/models/ws_federation_provider_request.rb +11 -1
  103. data/lib/authentik/api/version.rb +1 -1
  104. data/spec/api/admin_api_spec.rb +1 -0
  105. data/spec/api/core_api_spec.rb +119 -0
  106. data/spec/api/events_api_spec.rb +11 -0
  107. data/spec/api/lifecycle_api_spec.rb +47 -0
  108. data/spec/api/providers_api_spec.rb +73 -0
  109. data/spec/api/requests_api_spec.rb +365 -0
  110. data/spec/api/sources_api_spec.rb +2 -1
  111. data/spec/models/application_spec.rb +6 -0
  112. data/spec/models/authenticator_web_authn_stage_request_spec.rb +0 -6
  113. data/spec/models/authenticator_web_authn_stage_spec.rb +0 -6
  114. data/spec/models/brand_request_spec.rb +12 -0
  115. data/spec/models/brand_spec.rb +12 -0
  116. data/spec/models/captcha_stage_request_spec.rb +6 -0
  117. data/spec/models/captcha_stage_spec.rb +6 -0
  118. data/spec/models/content_type_spec.rb +6 -0
  119. data/spec/models/current_brand_flags_spec.rb +0 -12
  120. data/spec/models/current_brand_spec.rb +12 -0
  121. data/spec/models/device_user_binding_spec.rb +12 -0
  122. data/spec/models/grant_request_create_request_spec.rb +36 -0
  123. data/spec/models/grant_request_spec.rb +90 -0
  124. data/spec/models/{grant_types_enum_spec.rb → grant_type_enum_spec.rb} +6 -6
  125. data/spec/models/ldap_source_request_spec.rb +6 -0
  126. data/spec/models/ldap_source_spec.rb +6 -0
  127. data/spec/models/notification_mode_enum_spec.rb +24 -0
  128. data/spec/models/o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  129. data/spec/models/o_auth2_dynamic_client_registration_spec.rb +84 -0
  130. data/spec/models/object_attribute_request_spec.rb +84 -0
  131. data/spec/models/object_attribute_spec.rb +108 -0
  132. data/spec/models/object_attribute_type_enum_spec.rb +24 -0
  133. data/spec/models/offboarding_action_enum_spec.rb +24 -0
  134. data/spec/models/offboarding_status_enum_spec.rb +24 -0
  135. data/spec/models/paginated_grant_request_list_spec.rb +42 -0
  136. data/spec/models/paginated_o_auth2_dynamic_client_registration_list_spec.rb +42 -0
  137. data/spec/models/paginated_object_attribute_list_spec.rb +42 -0
  138. data/spec/models/paginated_request_rule_binding_list_spec.rb +42 -0
  139. data/spec/models/paginated_request_rule_child_binding_list_spec.rb +42 -0
  140. data/spec/models/paginated_request_rule_list_spec.rb +42 -0
  141. data/spec/models/paginated_requestable_target_list_spec.rb +42 -0
  142. data/spec/models/paginated_user_offboarding_list_spec.rb +42 -0
  143. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +0 -6
  144. data/spec/models/patched_brand_request_spec.rb +12 -0
  145. data/spec/models/patched_captcha_stage_request_spec.rb +6 -0
  146. data/spec/models/patched_grant_request_fulfill_request_spec.rb +36 -0
  147. data/spec/models/patched_ldap_source_request_spec.rb +6 -0
  148. data/spec/models/patched_o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  149. data/spec/models/patched_object_attribute_request_spec.rb +84 -0
  150. data/spec/models/patched_request_rule_binding_request_spec.rb +60 -0
  151. data/spec/models/patched_request_rule_child_binding_request_spec.rb +42 -0
  152. data/spec/models/patched_request_rule_request_spec.rb +72 -0
  153. data/spec/models/patched_saml_source_request_spec.rb +1 -1
  154. data/spec/models/patched_settings_request_spec.rb +6 -0
  155. data/spec/models/patched_ws_federation_provider_request_spec.rb +6 -0
  156. data/spec/models/policy_binding_spec.rb +12 -0
  157. data/spec/models/related_target_spec.rb +54 -0
  158. data/spec/models/request_content_type_enum_spec.rb +24 -0
  159. data/spec/models/request_rule_binding_request_spec.rb +60 -0
  160. data/spec/models/request_rule_binding_spec.rb +84 -0
  161. data/spec/models/request_rule_child_binding_request_spec.rb +42 -0
  162. data/spec/models/{reviewer_user_spec.rb → request_rule_child_binding_spec.rb} +8 -14
  163. data/spec/models/request_rule_request_spec.rb +72 -0
  164. data/spec/models/request_rule_spec.rb +84 -0
  165. data/spec/models/request_status_spec.rb +24 -0
  166. data/spec/models/requestable_target_spec.rb +60 -0
  167. data/spec/models/saml_source_request_spec.rb +1 -1
  168. data/spec/models/saml_source_spec.rb +7 -1
  169. data/spec/models/saml_version_enum_spec.rb +24 -0
  170. data/spec/models/session_user_spec.rb +6 -0
  171. data/spec/models/settings_request_spec.rb +6 -0
  172. data/spec/models/settings_spec.rb +6 -0
  173. data/spec/models/system_info_spec.rb +6 -0
  174. data/spec/models/user_offboarding_request_spec.rb +54 -0
  175. data/spec/models/user_offboarding_spec.rb +90 -0
  176. data/spec/models/user_self_spec.rb +6 -0
  177. data/spec/models/user_switch_action_enum_spec.rb +24 -0
  178. data/spec/models/{reviewer_group_spec.rb → user_switch_request_spec.rb} +8 -8
  179. data/spec/models/user_switch_response_spec.rb +30 -0
  180. data/spec/models/ws_federation_provider_request_spec.rb +6 -0
  181. data/spec/models/ws_federation_provider_spec.rb +12 -0
  182. 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
@@ -30,6 +30,8 @@ module Authentik::Api
30
30
 
31
31
  attr_accessor :flow_authentication
32
32
 
33
+ attr_accessor :flow_user_switch
34
+
33
35
  attr_accessor :flow_invalidation
34
36
 
35
37
  attr_accessor :flow_recovery
@@ -42,6 +44,8 @@ module Authentik::Api
42
44
 
43
45
  attr_accessor :flow_lockdown
44
46
 
47
+ attr_accessor :flow_request
48
+
45
49
  attr_accessor :default_locale
46
50
 
47
51
  attr_accessor :flags
@@ -81,12 +85,14 @@ module Authentik::Api
81
85
  :'ui_footer_links' => :'ui_footer_links',
82
86
  :'ui_theme' => :'ui_theme',
83
87
  :'flow_authentication' => :'flow_authentication',
88
+ :'flow_user_switch' => :'flow_user_switch',
84
89
  :'flow_invalidation' => :'flow_invalidation',
85
90
  :'flow_recovery' => :'flow_recovery',
86
91
  :'flow_unenrollment' => :'flow_unenrollment',
87
92
  :'flow_user_settings' => :'flow_user_settings',
88
93
  :'flow_device_code' => :'flow_device_code',
89
94
  :'flow_lockdown' => :'flow_lockdown',
95
+ :'flow_request' => :'flow_request',
90
96
  :'default_locale' => :'default_locale',
91
97
  :'flags' => :'flags'
92
98
  }
@@ -115,12 +121,14 @@ module Authentik::Api
115
121
  :'ui_footer_links' => :'Array<FooterLink>',
116
122
  :'ui_theme' => :'UiThemeEnum',
117
123
  :'flow_authentication' => :'String',
124
+ :'flow_user_switch' => :'String',
118
125
  :'flow_invalidation' => :'String',
119
126
  :'flow_recovery' => :'String',
120
127
  :'flow_unenrollment' => :'String',
121
128
  :'flow_user_settings' => :'String',
122
129
  :'flow_device_code' => :'String',
123
130
  :'flow_lockdown' => :'String',
131
+ :'flow_request' => :'String',
124
132
  :'default_locale' => :'String',
125
133
  :'flags' => :'CurrentBrandFlags'
126
134
  }
@@ -210,6 +218,10 @@ module Authentik::Api
210
218
  self.flow_authentication = attributes[:'flow_authentication']
211
219
  end
212
220
 
221
+ if attributes.key?(:'flow_user_switch')
222
+ self.flow_user_switch = attributes[:'flow_user_switch']
223
+ end
224
+
213
225
  if attributes.key?(:'flow_invalidation')
214
226
  self.flow_invalidation = attributes[:'flow_invalidation']
215
227
  end
@@ -234,6 +246,10 @@ module Authentik::Api
234
246
  self.flow_lockdown = attributes[:'flow_lockdown']
235
247
  end
236
248
 
249
+ if attributes.key?(:'flow_request')
250
+ self.flow_request = attributes[:'flow_request']
251
+ end
252
+
237
253
  if attributes.key?(:'default_locale')
238
254
  self.default_locale = attributes[:'default_locale']
239
255
  else
@@ -412,12 +428,14 @@ module Authentik::Api
412
428
  ui_footer_links == o.ui_footer_links &&
413
429
  ui_theme == o.ui_theme &&
414
430
  flow_authentication == o.flow_authentication &&
431
+ flow_user_switch == o.flow_user_switch &&
415
432
  flow_invalidation == o.flow_invalidation &&
416
433
  flow_recovery == o.flow_recovery &&
417
434
  flow_unenrollment == o.flow_unenrollment &&
418
435
  flow_user_settings == o.flow_user_settings &&
419
436
  flow_device_code == o.flow_device_code &&
420
437
  flow_lockdown == o.flow_lockdown &&
438
+ flow_request == o.flow_request &&
421
439
  default_locale == o.default_locale &&
422
440
  flags == o.flags
423
441
  end
@@ -431,7 +449,7 @@ module Authentik::Api
431
449
  # Calculates hash code according to all attributes.
432
450
  # @return [Integer] Hash code
433
451
  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
452
+ [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_user_switch, flow_invalidation, flow_recovery, flow_unenrollment, flow_user_settings, flow_device_code, flow_lockdown, flow_request, default_locale, flags].hash
435
453
  end
436
454
 
437
455
  # 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