authentik-api 2026.5.9 → 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
@@ -0,0 +1,214 @@
1
+ =begin
2
+ This file is automatically generated by: https://openapi-generator.tech.
3
+ Any manual changes will be lost when the OpenAPI scheme changes.
4
+
5
+ =end
6
+
7
+ require 'date'
8
+ require 'time'
9
+
10
+ module Authentik::Api
11
+ class PaginatedUserOffboardingList < ApiModelBase
12
+ attr_accessor :pagination
13
+
14
+ attr_accessor :results
15
+
16
+ attr_accessor :autocomplete
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'pagination' => :'pagination',
22
+ :'results' => :'results',
23
+ :'autocomplete' => :'autocomplete'
24
+ }
25
+ end
26
+
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ acceptable_attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'pagination' => :'Pagination',
41
+ :'results' => :'Array<UserOffboarding>',
42
+ :'autocomplete' => :'Hash<String, Object>'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::PaginatedUserOffboardingList` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ acceptable_attribute_map = self.class.acceptable_attribute_map
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!acceptable_attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::PaginatedUserOffboardingList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'pagination')
69
+ self.pagination = attributes[:'pagination']
70
+ else
71
+ self.pagination = nil
72
+ end
73
+
74
+ if attributes.key?(:'results')
75
+ if (value = attributes[:'results']).is_a?(Array)
76
+ self.results = value
77
+ end
78
+ else
79
+ self.results = nil
80
+ end
81
+
82
+ if attributes.key?(:'autocomplete')
83
+ if (value = attributes[:'autocomplete']).is_a?(Hash)
84
+ self.autocomplete = value
85
+ end
86
+ else
87
+ self.autocomplete = nil
88
+ end
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properties with the reasons
93
+ def list_invalid_properties
94
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
95
+ invalid_properties = Array.new
96
+ if @pagination.nil?
97
+ invalid_properties.push('invalid value for "pagination", pagination cannot be nil.')
98
+ end
99
+
100
+ if @results.nil?
101
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
102
+ end
103
+
104
+ if @autocomplete.nil?
105
+ invalid_properties.push('invalid value for "autocomplete", autocomplete cannot be nil.')
106
+ end
107
+
108
+ invalid_properties
109
+ end
110
+
111
+ # Check to see if the all the properties in the model are valid
112
+ # @return true if the model is valid
113
+ def valid?
114
+ warn '[DEPRECATED] the `valid?` method is obsolete'
115
+ return false if @pagination.nil?
116
+ return false if @results.nil?
117
+ return false if @autocomplete.nil?
118
+ true
119
+ end
120
+
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] pagination Value to be assigned
123
+ def pagination=(pagination)
124
+ if pagination.nil?
125
+ fail ArgumentError, 'pagination cannot be nil'
126
+ end
127
+
128
+ @pagination = pagination
129
+ end
130
+
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] results Value to be assigned
133
+ def results=(results)
134
+ if results.nil?
135
+ fail ArgumentError, 'results cannot be nil'
136
+ end
137
+
138
+ @results = results
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] autocomplete Value to be assigned
143
+ def autocomplete=(autocomplete)
144
+ if autocomplete.nil?
145
+ fail ArgumentError, 'autocomplete cannot be nil'
146
+ end
147
+
148
+ @autocomplete = autocomplete
149
+ end
150
+
151
+ # Checks equality by comparing each attribute.
152
+ # @param [Object] Object to be compared
153
+ def ==(o)
154
+ return true if self.equal?(o)
155
+ self.class == o.class &&
156
+ pagination == o.pagination &&
157
+ results == o.results &&
158
+ autocomplete == o.autocomplete
159
+ end
160
+
161
+ # @see the `==` method
162
+ # @param [Object] Object to be compared
163
+ def eql?(o)
164
+ self == o
165
+ end
166
+
167
+ # Calculates hash code according to all attributes.
168
+ # @return [Integer] Hash code
169
+ def hash
170
+ [pagination, results, autocomplete].hash
171
+ end
172
+
173
+ # Builds the object from hash
174
+ # @param [Hash] attributes Model attributes in the form of hash
175
+ # @return [Object] Returns the model itself
176
+ def self.build_from_hash(attributes)
177
+ return nil unless attributes.is_a?(Hash)
178
+ attributes = attributes.transform_keys(&:to_sym)
179
+ transformed_hash = {}
180
+ openapi_types.each_pair do |key, type|
181
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
182
+ transformed_hash["#{key}"] = nil
183
+ elsif type =~ /\AArray<(.*)>/i
184
+ # check to ensure the input is an array given that the attribute
185
+ # is documented as an array but the input is not
186
+ if attributes[attribute_map[key]].is_a?(Array)
187
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
188
+ end
189
+ elsif !attributes[attribute_map[key]].nil?
190
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
191
+ end
192
+ end
193
+ new(transformed_hash)
194
+ end
195
+
196
+ # Returns the object in the form of hash
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_hash
199
+ hash = {}
200
+ self.class.attribute_map.each_pair do |attr, param|
201
+ value = self.send(attr)
202
+ if value.nil?
203
+ is_nullable = self.class.openapi_nullable.include?(attr)
204
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
205
+ end
206
+
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ end
213
+
214
+ end
@@ -27,9 +27,6 @@ module Authentik::Api
27
27
 
28
28
  attr_accessor :device_type_restrictions
29
29
 
30
- # When enabled, a given device can only be registered once.
31
- attr_accessor :prevent_duplicate_devices
32
-
33
30
  attr_accessor :max_attempts
34
31
 
35
32
  class EnumAttributeValidator
@@ -65,7 +62,6 @@ module Authentik::Api
65
62
  :'resident_key_requirement' => :'resident_key_requirement',
66
63
  :'hints' => :'hints',
67
64
  :'device_type_restrictions' => :'device_type_restrictions',
68
- :'prevent_duplicate_devices' => :'prevent_duplicate_devices',
69
65
  :'max_attempts' => :'max_attempts'
70
66
  }
71
67
  end
@@ -91,7 +87,6 @@ module Authentik::Api
91
87
  :'resident_key_requirement' => :'UserVerificationEnum',
92
88
  :'hints' => :'Array<WebAuthnHintEnum>',
93
89
  :'device_type_restrictions' => :'Array<String>',
94
- :'prevent_duplicate_devices' => :'Boolean',
95
90
  :'max_attempts' => :'Integer'
96
91
  }
97
92
  end
@@ -156,10 +151,6 @@ module Authentik::Api
156
151
  end
157
152
  end
158
153
 
159
- if attributes.key?(:'prevent_duplicate_devices')
160
- self.prevent_duplicate_devices = attributes[:'prevent_duplicate_devices']
161
- end
162
-
163
154
  if attributes.key?(:'max_attempts')
164
155
  self.max_attempts = attributes[:'max_attempts']
165
156
  end
@@ -240,7 +231,6 @@ module Authentik::Api
240
231
  resident_key_requirement == o.resident_key_requirement &&
241
232
  hints == o.hints &&
242
233
  device_type_restrictions == o.device_type_restrictions &&
243
- prevent_duplicate_devices == o.prevent_duplicate_devices &&
244
234
  max_attempts == o.max_attempts
245
235
  end
246
236
 
@@ -253,7 +243,7 @@ module Authentik::Api
253
243
  # Calculates hash code according to all attributes.
254
244
  # @return [Integer] Hash code
255
245
  def hash
256
- [name, configure_flow, friendly_name, user_verification, authenticator_attachment, resident_key_requirement, hints, device_type_restrictions, prevent_duplicate_devices, max_attempts].hash
246
+ [name, configure_flow, friendly_name, user_verification, authenticator_attachment, resident_key_requirement, hints, device_type_restrictions, max_attempts].hash
257
247
  end
258
248
 
259
249
  # Builds the object from hash
@@ -27,6 +27,8 @@ module Authentik::Api
27
27
 
28
28
  attr_accessor :flow_authentication
29
29
 
30
+ attr_accessor :flow_user_switch
31
+
30
32
  attr_accessor :flow_invalidation
31
33
 
32
34
  attr_accessor :flow_recovery
@@ -39,6 +41,8 @@ module Authentik::Api
39
41
 
40
42
  attr_accessor :flow_lockdown
41
43
 
44
+ attr_accessor :flow_request
45
+
42
46
  # When set, external users will be redirected to this application after authenticating.
43
47
  attr_accessor :default_application
44
48
 
@@ -61,12 +65,14 @@ module Authentik::Api
61
65
  :'branding_custom_css' => :'branding_custom_css',
62
66
  :'branding_default_flow_background' => :'branding_default_flow_background',
63
67
  :'flow_authentication' => :'flow_authentication',
68
+ :'flow_user_switch' => :'flow_user_switch',
64
69
  :'flow_invalidation' => :'flow_invalidation',
65
70
  :'flow_recovery' => :'flow_recovery',
66
71
  :'flow_unenrollment' => :'flow_unenrollment',
67
72
  :'flow_user_settings' => :'flow_user_settings',
68
73
  :'flow_device_code' => :'flow_device_code',
69
74
  :'flow_lockdown' => :'flow_lockdown',
75
+ :'flow_request' => :'flow_request',
70
76
  :'default_application' => :'default_application',
71
77
  :'web_certificate' => :'web_certificate',
72
78
  :'client_certificates' => :'client_certificates',
@@ -95,12 +101,14 @@ module Authentik::Api
95
101
  :'branding_custom_css' => :'String',
96
102
  :'branding_default_flow_background' => :'String',
97
103
  :'flow_authentication' => :'String',
104
+ :'flow_user_switch' => :'String',
98
105
  :'flow_invalidation' => :'String',
99
106
  :'flow_recovery' => :'String',
100
107
  :'flow_unenrollment' => :'String',
101
108
  :'flow_user_settings' => :'String',
102
109
  :'flow_device_code' => :'String',
103
110
  :'flow_lockdown' => :'String',
111
+ :'flow_request' => :'String',
104
112
  :'default_application' => :'String',
105
113
  :'web_certificate' => :'String',
106
114
  :'client_certificates' => :'Array<String>',
@@ -112,12 +120,14 @@ module Authentik::Api
112
120
  def self.openapi_nullable
113
121
  Set.new([
114
122
  :'flow_authentication',
123
+ :'flow_user_switch',
115
124
  :'flow_invalidation',
116
125
  :'flow_recovery',
117
126
  :'flow_unenrollment',
118
127
  :'flow_user_settings',
119
128
  :'flow_device_code',
120
129
  :'flow_lockdown',
130
+ :'flow_request',
121
131
  :'default_application',
122
132
  :'web_certificate',
123
133
  ])
@@ -171,6 +181,10 @@ module Authentik::Api
171
181
  self.flow_authentication = attributes[:'flow_authentication']
172
182
  end
173
183
 
184
+ if attributes.key?(:'flow_user_switch')
185
+ self.flow_user_switch = attributes[:'flow_user_switch']
186
+ end
187
+
174
188
  if attributes.key?(:'flow_invalidation')
175
189
  self.flow_invalidation = attributes[:'flow_invalidation']
176
190
  end
@@ -195,6 +209,10 @@ module Authentik::Api
195
209
  self.flow_lockdown = attributes[:'flow_lockdown']
196
210
  end
197
211
 
212
+ if attributes.key?(:'flow_request')
213
+ self.flow_request = attributes[:'flow_request']
214
+ end
215
+
198
216
  if attributes.key?(:'default_application')
199
217
  self.default_application = attributes[:'default_application']
200
218
  end
@@ -339,12 +357,14 @@ module Authentik::Api
339
357
  branding_custom_css == o.branding_custom_css &&
340
358
  branding_default_flow_background == o.branding_default_flow_background &&
341
359
  flow_authentication == o.flow_authentication &&
360
+ flow_user_switch == o.flow_user_switch &&
342
361
  flow_invalidation == o.flow_invalidation &&
343
362
  flow_recovery == o.flow_recovery &&
344
363
  flow_unenrollment == o.flow_unenrollment &&
345
364
  flow_user_settings == o.flow_user_settings &&
346
365
  flow_device_code == o.flow_device_code &&
347
366
  flow_lockdown == o.flow_lockdown &&
367
+ flow_request == o.flow_request &&
348
368
  default_application == o.default_application &&
349
369
  web_certificate == o.web_certificate &&
350
370
  client_certificates == o.client_certificates &&
@@ -360,7 +380,7 @@ module Authentik::Api
360
380
  # Calculates hash code according to all attributes.
361
381
  # @return [Integer] Hash code
362
382
  def hash
363
- [domain, default, branding_title, branding_logo, branding_favicon, branding_custom_css, branding_default_flow_background, flow_authentication, flow_invalidation, flow_recovery, flow_unenrollment, flow_user_settings, flow_device_code, flow_lockdown, default_application, web_certificate, client_certificates, attributes].hash
383
+ [domain, default, branding_title, branding_logo, branding_favicon, branding_custom_css, branding_default_flow_background, flow_authentication, flow_user_switch, flow_invalidation, flow_recovery, flow_unenrollment, flow_user_settings, flow_device_code, flow_lockdown, flow_request, default_application, web_certificate, client_certificates, attributes].hash
364
384
  end
365
385
 
366
386
  # 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',
@@ -113,6 +139,10 @@ module Authentik::Api
113
139
  self.api_url = attributes[:'api_url']
114
140
  end
115
141
 
142
+ if attributes.key?(:'request_content_type')
143
+ self.request_content_type = attributes[:'request_content_type']
144
+ end
145
+
116
146
  if attributes.key?(:'interactive')
117
147
  self.interactive = attributes[:'interactive']
118
148
  end
@@ -250,6 +280,7 @@ module Authentik::Api
250
280
  private_key == o.private_key &&
251
281
  js_url == o.js_url &&
252
282
  api_url == o.api_url &&
283
+ request_content_type == o.request_content_type &&
253
284
  interactive == o.interactive &&
254
285
  score_min_threshold == o.score_min_threshold &&
255
286
  score_max_threshold == o.score_max_threshold &&
@@ -265,7 +296,7 @@ module Authentik::Api
265
296
  # Calculates hash code according to all attributes.
266
297
  # @return [Integer] Hash code
267
298
  def hash
268
- [name, public_key, private_key, js_url, api_url, interactive, score_min_threshold, score_max_threshold, error_on_invalid_score].hash
299
+ [name, public_key, private_key, js_url, api_url, request_content_type, interactive, score_min_threshold, score_max_threshold, error_on_invalid_score].hash
269
300
  end
270
301
 
271
302
  # Builds the object from hash
@@ -0,0 +1,175 @@
1
+ =begin
2
+ This file is automatically generated by: https://openapi-generator.tech.
3
+ Any manual changes will be lost when the OpenAPI scheme changes.
4
+
5
+ =end
6
+
7
+ require 'date'
8
+ require 'time'
9
+
10
+ module Authentik::Api
11
+ # Base serializer class which doesn't implement create/update methods
12
+ class PatchedGrantRequestFulfillRequest < ApiModelBase
13
+ attr_accessor :data
14
+
15
+ attr_accessor :status
16
+
17
+ class EnumAttributeValidator
18
+ attr_reader :datatype
19
+ attr_reader :allowable_values
20
+
21
+ def initialize(datatype, allowable_values)
22
+ @allowable_values = allowable_values.map do |value|
23
+ case datatype.to_s
24
+ when /Integer/i
25
+ value.to_i
26
+ when /Float/i
27
+ value.to_f
28
+ else
29
+ value
30
+ end
31
+ end
32
+ end
33
+
34
+ def valid?(value)
35
+ !value || allowable_values.include?(value)
36
+ end
37
+ end
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'data' => :'data',
43
+ :'status' => :'status'
44
+ }
45
+ end
46
+
47
+ # Returns attribute mapping this model knows about
48
+ def self.acceptable_attribute_map
49
+ attribute_map
50
+ end
51
+
52
+ # Returns all the JSON keys this model knows about
53
+ def self.acceptable_attributes
54
+ acceptable_attribute_map.values
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.openapi_types
59
+ {
60
+ :'data' => :'Hash<String, Object>',
61
+ :'status' => :'RequestStatus'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::PatchedGrantRequestFulfillRequest` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ acceptable_attribute_map = self.class.acceptable_attribute_map
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!acceptable_attribute_map.key?(k.to_sym))
82
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::PatchedGrantRequestFulfillRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
83
+ end
84
+ h[k.to_sym] = v
85
+ }
86
+
87
+ if attributes.key?(:'data')
88
+ if (value = attributes[:'data']).is_a?(Hash)
89
+ self.data = value
90
+ end
91
+ end
92
+
93
+ if attributes.key?(:'status')
94
+ self.status = attributes[:'status']
95
+ end
96
+ end
97
+
98
+ # Show invalid properties with the reasons. Usually used together with valid?
99
+ # @return Array for valid properties with the reasons
100
+ def list_invalid_properties
101
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
102
+ invalid_properties = Array.new
103
+ invalid_properties
104
+ end
105
+
106
+ # Check to see if the all the properties in the model are valid
107
+ # @return true if the model is valid
108
+ def valid?
109
+ warn '[DEPRECATED] the `valid?` method is obsolete'
110
+ true
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ data == o.data &&
119
+ status == o.status
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [data, status].hash
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def self.build_from_hash(attributes)
138
+ return nil unless attributes.is_a?(Hash)
139
+ attributes = attributes.transform_keys(&:to_sym)
140
+ transformed_hash = {}
141
+ openapi_types.each_pair do |key, type|
142
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
143
+ transformed_hash["#{key}"] = nil
144
+ elsif type =~ /\AArray<(.*)>/i
145
+ # check to ensure the input is an array given that the attribute
146
+ # is documented as an array but the input is not
147
+ if attributes[attribute_map[key]].is_a?(Array)
148
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
149
+ end
150
+ elsif !attributes[attribute_map[key]].nil?
151
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
152
+ end
153
+ end
154
+ new(transformed_hash)
155
+ end
156
+
157
+ # Returns the object in the form of hash
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_hash
160
+ hash = {}
161
+ self.class.attribute_map.each_pair do |attr, param|
162
+ value = self.send(attr)
163
+ if value.nil?
164
+ is_nullable = self.class.openapi_nullable.include?(attr)
165
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
166
+ end
167
+
168
+ hash[param] = _to_hash(value)
169
+ end
170
+ hash
171
+ end
172
+
173
+ end
174
+
175
+ end
@@ -100,6 +100,9 @@ module Authentik::Api
100
100
  # When to trigger sync for outgoing providers
101
101
  attr_accessor :sync_outgoing_trigger_mode
102
102
 
103
+ # Sync group parentage/hierarchy from LDAP directories.
104
+ attr_accessor :sync_group_hierarchy
105
+
103
106
  class EnumAttributeValidator
104
107
  attr_reader :datatype
105
108
  attr_reader :allowable_values
@@ -159,7 +162,8 @@ module Authentik::Api
159
162
  :'sync_parent_group' => :'sync_parent_group',
160
163
  :'lookup_groups_from_user' => :'lookup_groups_from_user',
161
164
  :'delete_not_found_objects' => :'delete_not_found_objects',
162
- :'sync_outgoing_trigger_mode' => :'sync_outgoing_trigger_mode'
165
+ :'sync_outgoing_trigger_mode' => :'sync_outgoing_trigger_mode',
166
+ :'sync_group_hierarchy' => :'sync_group_hierarchy'
163
167
  }
164
168
  end
165
169
 
@@ -210,7 +214,8 @@ module Authentik::Api
210
214
  :'sync_parent_group' => :'String',
211
215
  :'lookup_groups_from_user' => :'Boolean',
212
216
  :'delete_not_found_objects' => :'Boolean',
213
- :'sync_outgoing_trigger_mode' => :'SyncOutgoingTriggerModeEnum'
217
+ :'sync_outgoing_trigger_mode' => :'SyncOutgoingTriggerModeEnum',
218
+ :'sync_group_hierarchy' => :'Boolean'
214
219
  }
215
220
  end
216
221
 
@@ -384,6 +389,10 @@ module Authentik::Api
384
389
  if attributes.key?(:'sync_outgoing_trigger_mode')
385
390
  self.sync_outgoing_trigger_mode = attributes[:'sync_outgoing_trigger_mode']
386
391
  end
392
+
393
+ if attributes.key?(:'sync_group_hierarchy')
394
+ self.sync_group_hierarchy = attributes[:'sync_group_hierarchy']
395
+ end
387
396
  end
388
397
 
389
398
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -641,7 +650,8 @@ module Authentik::Api
641
650
  sync_parent_group == o.sync_parent_group &&
642
651
  lookup_groups_from_user == o.lookup_groups_from_user &&
643
652
  delete_not_found_objects == o.delete_not_found_objects &&
644
- sync_outgoing_trigger_mode == o.sync_outgoing_trigger_mode
653
+ sync_outgoing_trigger_mode == o.sync_outgoing_trigger_mode &&
654
+ sync_group_hierarchy == o.sync_group_hierarchy
645
655
  end
646
656
 
647
657
  # @see the `==` method
@@ -653,7 +663,7 @@ module Authentik::Api
653
663
  # Calculates hash code according to all attributes.
654
664
  # @return [Integer] Hash code
655
665
  def hash
656
- [name, slug, enabled, promoted, authentication_flow, enrollment_flow, user_property_mappings, group_property_mappings, policy_engine_mode, user_matching_mode, user_path_template, icon, server_uri, peer_certificate, client_certificate, bind_cn, bind_password, start_tls, sni, base_dn, additional_user_dn, additional_group_dn, user_object_filter, group_object_filter, group_membership_field, user_membership_attribute, object_uniqueness_field, password_login_update_internal_password, sync_users, sync_users_password, sync_groups, sync_parent_group, lookup_groups_from_user, delete_not_found_objects, sync_outgoing_trigger_mode].hash
666
+ [name, slug, enabled, promoted, authentication_flow, enrollment_flow, user_property_mappings, group_property_mappings, policy_engine_mode, user_matching_mode, user_path_template, icon, server_uri, peer_certificate, client_certificate, bind_cn, bind_password, start_tls, sni, base_dn, additional_user_dn, additional_group_dn, user_object_filter, group_object_filter, group_membership_field, user_membership_attribute, object_uniqueness_field, password_login_update_internal_password, sync_users, sync_users_password, sync_groups, sync_parent_group, lookup_groups_from_user, delete_not_found_objects, sync_outgoing_trigger_mode, sync_group_hierarchy].hash
657
667
  end
658
668
 
659
669
  # Builds the object from hash