authentik-api 2026.5.7 → 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 (190) hide show
  1. checksums.yaml +4 -4
  2. data/README_API.md +94 -9
  3. data/lib/authentik/api/api/admin_api.rb +3 -0
  4. data/lib/authentik/api/api/core_api.rb +624 -0
  5. data/lib/authentik/api/api/events_api.rb +35 -2
  6. data/lib/authentik/api/api/lifecycle_api.rb +258 -0
  7. data/lib/authentik/api/api/providers_api.rb +401 -0
  8. data/lib/authentik/api/api/requests_api.rb +1858 -0
  9. data/lib/authentik/api/api/sources_api.rb +6 -3
  10. data/lib/authentik/api/inflector.rb +2 -1
  11. data/lib/authentik/api/models/app_enum.rb +3 -1
  12. data/lib/authentik/api/models/application.rb +27 -1
  13. data/lib/authentik/api/models/authenticator_email_stage.rb +10 -1
  14. data/lib/authentik/api/models/authenticator_sms_stage.rb +36 -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/device_user_binding.rb +39 -1
  25. data/lib/authentik/api/models/endpoint_device.rb +15 -1
  26. data/lib/authentik/api/models/endpoint_device_details.rb +15 -1
  27. data/lib/authentik/api/models/event_actions.rb +6 -1
  28. data/lib/authentik/api/models/grant_request.rb +382 -0
  29. data/lib/authentik/api/models/{reviewer_group.rb → grant_request_create_request.rb} +29 -42
  30. data/lib/authentik/api/models/{grant_types_enum.rb → grant_type_enum.rb} +5 -4
  31. data/lib/authentik/api/models/kerberos_source.rb +21 -1
  32. data/lib/authentik/api/models/last_task_status_enum.rb +2 -1
  33. data/lib/authentik/api/models/ldap_outpost_config.rb +1 -1
  34. data/lib/authentik/api/models/ldap_source.rb +14 -4
  35. data/lib/authentik/api/models/ldap_source_request.rb +14 -4
  36. data/lib/authentik/api/models/lifecycle_rule.rb +2 -2
  37. data/lib/authentik/api/models/microsoft_entra_provider.rb +27 -1
  38. data/lib/authentik/api/models/model_enum.rb +8 -1
  39. data/lib/authentik/api/models/notification_mode_enum.rb +35 -0
  40. data/lib/authentik/api/models/o_auth2_dynamic_client_registration.rb +291 -0
  41. data/lib/authentik/api/models/o_auth2_dynamic_client_registration_request.rb +303 -0
  42. data/lib/authentik/api/models/o_auth2_provider.rb +1 -1
  43. data/lib/authentik/api/models/o_auth2_provider_request.rb +1 -1
  44. data/lib/authentik/api/models/o_auth_source.rb +0 -60
  45. data/lib/authentik/api/models/o_auth_source_request.rb +0 -60
  46. data/lib/authentik/api/models/object_attribute.rb +420 -0
  47. data/lib/authentik/api/models/object_attribute_request.rb +358 -0
  48. data/lib/authentik/api/models/object_attribute_type_enum.rb +35 -0
  49. data/lib/authentik/api/models/offboarding_action_enum.rb +34 -0
  50. data/lib/authentik/api/models/offboarding_status_enum.rb +36 -0
  51. data/lib/authentik/api/models/paginated_grant_request_list.rb +214 -0
  52. data/lib/authentik/api/models/paginated_o_auth2_dynamic_client_registration_list.rb +214 -0
  53. data/lib/authentik/api/models/paginated_object_attribute_list.rb +214 -0
  54. data/lib/authentik/api/models/paginated_request_rule_binding_list.rb +214 -0
  55. data/lib/authentik/api/models/paginated_request_rule_child_binding_list.rb +214 -0
  56. data/lib/authentik/api/models/paginated_request_rule_list.rb +214 -0
  57. data/lib/authentik/api/models/paginated_requestable_target_list.rb +214 -0
  58. data/lib/authentik/api/models/paginated_user_offboarding_list.rb +214 -0
  59. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +1 -11
  60. data/lib/authentik/api/models/patched_brand_request.rb +21 -1
  61. data/lib/authentik/api/models/patched_captcha_stage_request.rb +32 -1
  62. data/lib/authentik/api/models/patched_grant_request_fulfill_request.rb +175 -0
  63. data/lib/authentik/api/models/patched_ldap_source_request.rb +14 -4
  64. data/lib/authentik/api/models/patched_o_auth2_dynamic_client_registration_request.rb +286 -0
  65. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +1 -1
  66. data/lib/authentik/api/models/patched_o_auth_source_request.rb +0 -60
  67. data/lib/authentik/api/models/patched_object_attribute_request.rb +320 -0
  68. data/lib/authentik/api/models/patched_request_rule_binding_request.rb +249 -0
  69. data/lib/authentik/api/models/patched_request_rule_child_binding_request.rb +159 -0
  70. data/lib/authentik/api/models/patched_request_rule_request.rb +277 -0
  71. data/lib/authentik/api/models/patched_saml_source_request.rb +8 -8
  72. data/lib/authentik/api/models/patched_settings_request.rb +30 -1
  73. data/lib/authentik/api/models/patched_settings_request_flags.rb +1 -1
  74. data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +11 -1
  75. data/lib/authentik/api/models/policy_binding.rb +42 -4
  76. data/lib/authentik/api/models/provider_type_enum.rb +2 -3
  77. data/lib/authentik/api/models/related_rule.rb +2 -2
  78. data/lib/authentik/api/models/related_target.rb +266 -0
  79. data/lib/authentik/api/models/request_content_type_enum.rb +34 -0
  80. data/lib/authentik/api/models/request_rule.rb +329 -0
  81. data/lib/authentik/api/models/request_rule_binding.rb +353 -0
  82. data/lib/authentik/api/models/request_rule_binding_request.rb +283 -0
  83. data/lib/authentik/api/models/{reviewer_user.rb → request_rule_child_binding.rb} +34 -99
  84. data/lib/authentik/api/models/request_rule_child_binding_request.rb +193 -0
  85. data/lib/authentik/api/models/request_rule_request.rb +284 -0
  86. data/lib/authentik/api/models/request_status.rb +36 -0
  87. data/lib/authentik/api/models/requestable_target.rb +278 -0
  88. data/lib/authentik/api/models/review.rb +1 -1
  89. data/lib/authentik/api/models/saml_source.rb +35 -8
  90. data/lib/authentik/api/models/saml_source_request.rb +8 -8
  91. data/lib/authentik/api/models/saml_version_enum.rb +34 -0
  92. data/lib/authentik/api/models/scim_provider.rb +11 -1
  93. data/lib/authentik/api/models/session_user.rb +32 -4
  94. data/lib/authentik/api/models/settings.rb +30 -1
  95. data/lib/authentik/api/models/settings_request.rb +30 -1
  96. data/lib/authentik/api/models/system_info.rb +31 -4
  97. data/lib/authentik/api/models/task_aggregated_status_enum.rb +2 -1
  98. data/lib/authentik/api/models/task_status_enum.rb +2 -1
  99. data/lib/authentik/api/models/user_offboarding.rb +379 -0
  100. data/lib/authentik/api/models/user_offboarding_request.rb +237 -0
  101. data/lib/authentik/api/models/user_self.rb +28 -1
  102. data/lib/authentik/api/models/user_switch_action_enum.rb +34 -0
  103. data/lib/authentik/api/models/user_switch_request.rb +173 -0
  104. data/lib/authentik/api/models/user_switch_response.rb +159 -0
  105. data/lib/authentik/api/models/ws_federation_provider.rb +41 -4
  106. data/lib/authentik/api/models/ws_federation_provider_request.rb +11 -1
  107. data/lib/authentik/api/version.rb +1 -1
  108. data/spec/api/admin_api_spec.rb +1 -0
  109. data/spec/api/core_api_spec.rb +119 -0
  110. data/spec/api/events_api_spec.rb +11 -0
  111. data/spec/api/lifecycle_api_spec.rb +47 -0
  112. data/spec/api/providers_api_spec.rb +73 -0
  113. data/spec/api/requests_api_spec.rb +365 -0
  114. data/spec/api/sources_api_spec.rb +2 -1
  115. data/spec/models/application_spec.rb +6 -0
  116. data/spec/models/authenticator_email_stage_spec.rb +6 -0
  117. data/spec/models/authenticator_sms_stage_spec.rb +12 -0
  118. data/spec/models/authenticator_web_authn_stage_request_spec.rb +0 -6
  119. data/spec/models/authenticator_web_authn_stage_spec.rb +0 -6
  120. data/spec/models/brand_request_spec.rb +12 -0
  121. data/spec/models/brand_spec.rb +12 -0
  122. data/spec/models/captcha_stage_request_spec.rb +6 -0
  123. data/spec/models/captcha_stage_spec.rb +6 -0
  124. data/spec/models/content_type_spec.rb +6 -0
  125. data/spec/models/current_brand_spec.rb +12 -0
  126. data/spec/models/device_user_binding_spec.rb +12 -0
  127. data/spec/models/grant_request_create_request_spec.rb +36 -0
  128. data/spec/models/grant_request_spec.rb +90 -0
  129. data/spec/models/{grant_types_enum_spec.rb → grant_type_enum_spec.rb} +6 -6
  130. data/spec/models/kerberos_source_spec.rb +12 -0
  131. data/spec/models/ldap_source_request_spec.rb +6 -0
  132. data/spec/models/ldap_source_spec.rb +6 -0
  133. data/spec/models/microsoft_entra_provider_spec.rb +6 -0
  134. data/spec/models/notification_mode_enum_spec.rb +24 -0
  135. data/spec/models/o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  136. data/spec/models/o_auth2_dynamic_client_registration_spec.rb +84 -0
  137. data/spec/models/object_attribute_request_spec.rb +84 -0
  138. data/spec/models/object_attribute_spec.rb +108 -0
  139. data/spec/models/object_attribute_type_enum_spec.rb +24 -0
  140. data/spec/models/offboarding_action_enum_spec.rb +24 -0
  141. data/spec/models/offboarding_status_enum_spec.rb +24 -0
  142. data/spec/models/paginated_grant_request_list_spec.rb +42 -0
  143. data/spec/models/paginated_o_auth2_dynamic_client_registration_list_spec.rb +42 -0
  144. data/spec/models/paginated_object_attribute_list_spec.rb +42 -0
  145. data/spec/models/paginated_request_rule_binding_list_spec.rb +42 -0
  146. data/spec/models/paginated_request_rule_child_binding_list_spec.rb +42 -0
  147. data/spec/models/paginated_request_rule_list_spec.rb +42 -0
  148. data/spec/models/paginated_requestable_target_list_spec.rb +42 -0
  149. data/spec/models/paginated_user_offboarding_list_spec.rb +42 -0
  150. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +0 -6
  151. data/spec/models/patched_brand_request_spec.rb +12 -0
  152. data/spec/models/patched_captcha_stage_request_spec.rb +6 -0
  153. data/spec/models/patched_grant_request_fulfill_request_spec.rb +36 -0
  154. data/spec/models/patched_ldap_source_request_spec.rb +6 -0
  155. data/spec/models/patched_o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  156. data/spec/models/patched_object_attribute_request_spec.rb +84 -0
  157. data/spec/models/patched_request_rule_binding_request_spec.rb +60 -0
  158. data/spec/models/patched_request_rule_child_binding_request_spec.rb +42 -0
  159. data/spec/models/patched_request_rule_request_spec.rb +72 -0
  160. data/spec/models/patched_saml_source_request_spec.rb +1 -1
  161. data/spec/models/patched_settings_request_spec.rb +6 -0
  162. data/spec/models/patched_ws_federation_provider_request_spec.rb +6 -0
  163. data/spec/models/policy_binding_spec.rb +12 -0
  164. data/spec/models/related_target_spec.rb +54 -0
  165. data/spec/models/request_content_type_enum_spec.rb +24 -0
  166. data/spec/models/request_rule_binding_request_spec.rb +60 -0
  167. data/spec/models/request_rule_binding_spec.rb +84 -0
  168. data/spec/models/request_rule_child_binding_request_spec.rb +42 -0
  169. data/spec/models/{reviewer_user_spec.rb → request_rule_child_binding_spec.rb} +8 -14
  170. data/spec/models/request_rule_request_spec.rb +72 -0
  171. data/spec/models/request_rule_spec.rb +84 -0
  172. data/spec/models/request_status_spec.rb +24 -0
  173. data/spec/models/requestable_target_spec.rb +60 -0
  174. data/spec/models/saml_source_request_spec.rb +1 -1
  175. data/spec/models/saml_source_spec.rb +7 -1
  176. data/spec/models/saml_version_enum_spec.rb +24 -0
  177. data/spec/models/scim_provider_spec.rb +6 -0
  178. data/spec/models/session_user_spec.rb +6 -0
  179. data/spec/models/settings_request_spec.rb +6 -0
  180. data/spec/models/settings_spec.rb +6 -0
  181. data/spec/models/system_info_spec.rb +6 -0
  182. data/spec/models/user_offboarding_request_spec.rb +54 -0
  183. data/spec/models/user_offboarding_spec.rb +90 -0
  184. data/spec/models/user_self_spec.rb +6 -0
  185. data/spec/models/user_switch_action_enum_spec.rb +24 -0
  186. data/spec/models/{reviewer_group_spec.rb → user_switch_request_spec.rb} +8 -8
  187. data/spec/models/user_switch_response_spec.rb +30 -0
  188. data/spec/models/ws_federation_provider_request_spec.rb +6 -0
  189. data/spec/models/ws_federation_provider_spec.rb +12 -0
  190. metadata +127 -10
@@ -35,6 +35,8 @@ module Authentik::Api
35
35
 
36
36
  attr_accessor :api_url
37
37
 
38
+ attr_accessor :request_content_type
39
+
38
40
  attr_accessor :interactive
39
41
 
40
42
  attr_accessor :score_min_threshold
@@ -44,6 +46,28 @@ module Authentik::Api
44
46
  # 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
45
47
  attr_accessor :error_on_invalid_score
46
48
 
49
+ class EnumAttributeValidator
50
+ attr_reader :datatype
51
+ attr_reader :allowable_values
52
+
53
+ def initialize(datatype, allowable_values)
54
+ @allowable_values = allowable_values.map do |value|
55
+ case datatype.to_s
56
+ when /Integer/i
57
+ value.to_i
58
+ when /Float/i
59
+ value.to_f
60
+ else
61
+ value
62
+ end
63
+ end
64
+ end
65
+
66
+ def valid?(value)
67
+ !value || allowable_values.include?(value)
68
+ end
69
+ end
70
+
47
71
  # Attribute mapping from ruby-style variable name to JSON key.
48
72
  def self.attribute_map
49
73
  {
@@ -57,6 +81,7 @@ module Authentik::Api
57
81
  :'public_key' => :'public_key',
58
82
  :'js_url' => :'js_url',
59
83
  :'api_url' => :'api_url',
84
+ :'request_content_type' => :'request_content_type',
60
85
  :'interactive' => :'interactive',
61
86
  :'score_min_threshold' => :'score_min_threshold',
62
87
  :'score_max_threshold' => :'score_max_threshold',
@@ -87,6 +112,7 @@ module Authentik::Api
87
112
  :'public_key' => :'String',
88
113
  :'js_url' => :'String',
89
114
  :'api_url' => :'String',
115
+ :'request_content_type' => :'RequestContentTypeEnum',
90
116
  :'interactive' => :'Boolean',
91
117
  :'score_min_threshold' => :'Float',
92
118
  :'score_max_threshold' => :'Float',
@@ -174,6 +200,10 @@ module Authentik::Api
174
200
  self.api_url = attributes[:'api_url']
175
201
  end
176
202
 
203
+ if attributes.key?(:'request_content_type')
204
+ self.request_content_type = attributes[:'request_content_type']
205
+ end
206
+
177
207
  if attributes.key?(:'interactive')
178
208
  self.interactive = attributes[:'interactive']
179
209
  end
@@ -341,6 +371,7 @@ module Authentik::Api
341
371
  public_key == o.public_key &&
342
372
  js_url == o.js_url &&
343
373
  api_url == o.api_url &&
374
+ request_content_type == o.request_content_type &&
344
375
  interactive == o.interactive &&
345
376
  score_min_threshold == o.score_min_threshold &&
346
377
  score_max_threshold == o.score_max_threshold &&
@@ -356,7 +387,7 @@ module Authentik::Api
356
387
  # Calculates hash code according to all attributes.
357
388
  # @return [Integer] Hash code
358
389
  def hash
359
- [pk, name, component, verbose_name, verbose_name_plural, meta_model_name, flow_set, public_key, js_url, api_url, interactive, score_min_threshold, score_max_threshold, error_on_invalid_score].hash
390
+ [pk, name, component, verbose_name, verbose_name_plural, meta_model_name, flow_set, public_key, js_url, api_url, request_content_type, interactive, score_min_threshold, score_max_threshold, error_on_invalid_score].hash
360
391
  end
361
392
 
362
393
  # Builds the object from hash
@@ -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
@@ -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
@@ -72,7 +72,6 @@ module Authentik::Api
72
72
  Set.new([
73
73
  :'access_group',
74
74
  :'expires',
75
- :'facts',
76
75
  ])
77
76
  end
78
77
 
@@ -150,6 +149,10 @@ module Authentik::Api
150
149
  invalid_properties.push('invalid value for "name", name cannot be nil.')
151
150
  end
152
151
 
152
+ if @facts.nil?
153
+ invalid_properties.push('invalid value for "facts", facts cannot be nil.')
154
+ end
155
+
153
156
  invalid_properties
154
157
  end
155
158
 
@@ -159,6 +162,7 @@ module Authentik::Api
159
162
  warn '[DEPRECATED] the `valid?` method is obsolete'
160
163
  return false if @pbm_uuid.nil?
161
164
  return false if @name.nil?
165
+ return false if @facts.nil?
162
166
  true
163
167
  end
164
168
 
@@ -182,6 +186,16 @@ module Authentik::Api
182
186
  @name = name
183
187
  end
184
188
 
189
+ # Custom attribute writer method with validation
190
+ # @param [Object] facts Value to be assigned
191
+ def facts=(facts)
192
+ if facts.nil?
193
+ fail ArgumentError, 'facts cannot be nil'
194
+ end
195
+
196
+ @facts = facts
197
+ end
198
+
185
199
  # Checks equality by comparing each attribute.
186
200
  # @param [Object] Object to be compared
187
201
  def ==(o)
@@ -84,7 +84,6 @@ module Authentik::Api
84
84
  Set.new([
85
85
  :'access_group',
86
86
  :'expires',
87
- :'facts',
88
87
  ])
89
88
  end
90
89
 
@@ -186,6 +185,10 @@ module Authentik::Api
186
185
  invalid_properties.push('invalid value for "name", name cannot be nil.')
187
186
  end
188
187
 
188
+ if @facts.nil?
189
+ invalid_properties.push('invalid value for "facts", facts cannot be nil.')
190
+ end
191
+
189
192
  if @connections_obj.nil?
190
193
  invalid_properties.push('invalid value for "connections_obj", connections_obj cannot be nil.')
191
194
  end
@@ -207,6 +210,7 @@ module Authentik::Api
207
210
  warn '[DEPRECATED] the `valid?` method is obsolete'
208
211
  return false if @pbm_uuid.nil?
209
212
  return false if @name.nil?
213
+ return false if @facts.nil?
210
214
  return false if @connections_obj.nil?
211
215
  return false if @policies.nil?
212
216
  return false if @connections.nil?
@@ -233,6 +237,16 @@ module Authentik::Api
233
237
  @name = name
234
238
  end
235
239
 
240
+ # Custom attribute writer method with validation
241
+ # @param [Object] facts Value to be assigned
242
+ def facts=(facts)
243
+ if facts.nil?
244
+ fail ArgumentError, 'facts cannot be nil'
245
+ end
246
+
247
+ @facts = facts
248
+ end
249
+
236
250
  # Custom attribute writer method with validation
237
251
  # @param [Object] connections_obj Value to be assigned
238
252
  def connections_obj=(connections_obj)
@@ -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