authentik-api 2026.5.6 → 2026.8.0.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. checksums.yaml +4 -4
  2. data/README_API.md +104 -8
  3. data/lib/authentik/api/api/admin_api.rb +3 -0
  4. data/lib/authentik/api/api/core_api.rb +651 -27
  5. data/lib/authentik/api/api/endpoints_api.rb +7 -7
  6. data/lib/authentik/api/api/events_api.rb +35 -2
  7. data/lib/authentik/api/api/lifecycle_api.rb +258 -0
  8. data/lib/authentik/api/api/providers_api.rb +401 -0
  9. data/lib/authentik/api/api/requests_api.rb +1858 -0
  10. data/lib/authentik/api/api/sources_api.rb +6 -3
  11. data/lib/authentik/api/configuration.rb +14 -0
  12. data/lib/authentik/api/inflector.rb +2 -1
  13. data/lib/authentik/api/models/app_enum.rb +3 -1
  14. data/lib/authentik/api/models/application.rb +27 -1
  15. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +1 -11
  16. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +1 -11
  17. data/lib/authentik/api/models/brand.rb +31 -1
  18. data/lib/authentik/api/models/brand_request.rb +31 -1
  19. data/lib/authentik/api/models/captcha_stage.rb +32 -1
  20. data/lib/authentik/api/models/captcha_stage_request.rb +32 -1
  21. data/lib/authentik/api/models/compatibility_mode_enum.rb +2 -1
  22. data/lib/authentik/api/models/content_type.rb +30 -4
  23. data/lib/authentik/api/models/current_brand.rb +45 -1
  24. data/lib/authentik/api/models/current_brand_flags.rb +1 -55
  25. data/lib/authentik/api/models/device_user_binding.rb +39 -1
  26. data/lib/authentik/api/models/event_actions.rb +6 -1
  27. data/lib/authentik/api/models/grant_request.rb +382 -0
  28. data/lib/authentik/api/models/{reviewer_group.rb → grant_request_create_request.rb} +29 -42
  29. data/lib/authentik/api/models/{grant_types_enum.rb → grant_type_enum.rb} +5 -4
  30. data/lib/authentik/api/models/last_task_status_enum.rb +2 -1
  31. data/lib/authentik/api/models/ldap_outpost_config.rb +1 -1
  32. data/lib/authentik/api/models/ldap_source.rb +14 -4
  33. data/lib/authentik/api/models/ldap_source_request.rb +14 -4
  34. data/lib/authentik/api/models/lifecycle_rule.rb +2 -2
  35. data/lib/authentik/api/models/model_enum.rb +8 -1
  36. data/lib/authentik/api/models/notification_mode_enum.rb +35 -0
  37. data/lib/authentik/api/models/o_auth2_dynamic_client_registration.rb +291 -0
  38. data/lib/authentik/api/models/o_auth2_dynamic_client_registration_request.rb +303 -0
  39. data/lib/authentik/api/models/o_auth2_provider.rb +1 -1
  40. data/lib/authentik/api/models/o_auth2_provider_request.rb +1 -1
  41. data/lib/authentik/api/models/o_auth2_provider_setup_urls.rb +16 -4
  42. data/lib/authentik/api/models/o_auth_source.rb +0 -60
  43. data/lib/authentik/api/models/o_auth_source_request.rb +0 -60
  44. data/lib/authentik/api/models/object_attribute.rb +420 -0
  45. data/lib/authentik/api/models/object_attribute_request.rb +358 -0
  46. data/lib/authentik/api/models/object_attribute_type_enum.rb +35 -0
  47. data/lib/authentik/api/models/offboarding_action_enum.rb +34 -0
  48. data/lib/authentik/api/models/offboarding_status_enum.rb +36 -0
  49. data/lib/authentik/api/models/paginated_grant_request_list.rb +214 -0
  50. data/lib/authentik/api/models/paginated_o_auth2_dynamic_client_registration_list.rb +214 -0
  51. data/lib/authentik/api/models/paginated_object_attribute_list.rb +214 -0
  52. data/lib/authentik/api/models/paginated_request_rule_binding_list.rb +214 -0
  53. data/lib/authentik/api/models/paginated_request_rule_child_binding_list.rb +214 -0
  54. data/lib/authentik/api/models/paginated_request_rule_list.rb +214 -0
  55. data/lib/authentik/api/models/paginated_requestable_target_list.rb +214 -0
  56. data/lib/authentik/api/models/paginated_user_offboarding_list.rb +214 -0
  57. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +1 -11
  58. data/lib/authentik/api/models/patched_brand_request.rb +31 -1
  59. data/lib/authentik/api/models/patched_captcha_stage_request.rb +32 -1
  60. data/lib/authentik/api/models/patched_grant_request_fulfill_request.rb +175 -0
  61. data/lib/authentik/api/models/patched_ldap_source_request.rb +14 -4
  62. data/lib/authentik/api/models/patched_o_auth2_dynamic_client_registration_request.rb +286 -0
  63. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +1 -1
  64. data/lib/authentik/api/models/patched_o_auth_source_request.rb +0 -60
  65. data/lib/authentik/api/models/patched_object_attribute_request.rb +320 -0
  66. data/lib/authentik/api/models/patched_request_rule_binding_request.rb +249 -0
  67. data/lib/authentik/api/models/patched_request_rule_child_binding_request.rb +159 -0
  68. data/lib/authentik/api/models/patched_request_rule_request.rb +277 -0
  69. data/lib/authentik/api/models/patched_saml_source_request.rb +8 -8
  70. data/lib/authentik/api/models/patched_settings_request.rb +30 -1
  71. data/lib/authentik/api/models/patched_settings_request_flags.rb +1 -1
  72. data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +11 -1
  73. data/lib/authentik/api/models/policy_binding.rb +42 -4
  74. data/lib/authentik/api/models/provider_type_enum.rb +2 -3
  75. data/lib/authentik/api/models/related_rule.rb +2 -2
  76. data/lib/authentik/api/models/related_target.rb +266 -0
  77. data/lib/authentik/api/models/request_content_type_enum.rb +34 -0
  78. data/lib/authentik/api/models/request_rule.rb +329 -0
  79. data/lib/authentik/api/models/request_rule_binding.rb +353 -0
  80. data/lib/authentik/api/models/request_rule_binding_request.rb +283 -0
  81. data/lib/authentik/api/models/{reviewer_user.rb → request_rule_child_binding.rb} +34 -99
  82. data/lib/authentik/api/models/request_rule_child_binding_request.rb +193 -0
  83. data/lib/authentik/api/models/request_rule_request.rb +284 -0
  84. data/lib/authentik/api/models/request_status.rb +36 -0
  85. data/lib/authentik/api/models/requestable_target.rb +278 -0
  86. data/lib/authentik/api/models/review.rb +1 -1
  87. data/lib/authentik/api/models/saml_source.rb +35 -8
  88. data/lib/authentik/api/models/saml_source_request.rb +8 -8
  89. data/lib/authentik/api/models/saml_version_enum.rb +34 -0
  90. data/lib/authentik/api/models/session_user.rb +32 -4
  91. data/lib/authentik/api/models/settings.rb +30 -1
  92. data/lib/authentik/api/models/settings_request.rb +30 -1
  93. data/lib/authentik/api/models/system_info.rb +31 -4
  94. data/lib/authentik/api/models/task_aggregated_status_enum.rb +2 -1
  95. data/lib/authentik/api/models/task_status_enum.rb +2 -1
  96. data/lib/authentik/api/models/user_offboarding.rb +379 -0
  97. data/lib/authentik/api/models/user_offboarding_request.rb +237 -0
  98. data/lib/authentik/api/models/user_self.rb +28 -1
  99. data/lib/authentik/api/models/user_switch_action_enum.rb +34 -0
  100. data/lib/authentik/api/models/user_switch_request.rb +173 -0
  101. data/lib/authentik/api/models/user_switch_response.rb +159 -0
  102. data/lib/authentik/api/models/ws_federation_provider.rb +41 -4
  103. data/lib/authentik/api/models/ws_federation_provider_request.rb +11 -1
  104. data/lib/authentik/api/version.rb +1 -1
  105. data/spec/api/admin_api_spec.rb +1 -0
  106. data/spec/api/core_api_spec.rb +119 -0
  107. data/spec/api/events_api_spec.rb +11 -0
  108. data/spec/api/lifecycle_api_spec.rb +47 -0
  109. data/spec/api/providers_api_spec.rb +73 -0
  110. data/spec/api/requests_api_spec.rb +365 -0
  111. data/spec/api/sources_api_spec.rb +2 -1
  112. data/spec/models/application_spec.rb +6 -0
  113. data/spec/models/authenticator_web_authn_stage_request_spec.rb +0 -6
  114. data/spec/models/authenticator_web_authn_stage_spec.rb +0 -6
  115. data/spec/models/brand_request_spec.rb +18 -0
  116. data/spec/models/brand_spec.rb +18 -0
  117. data/spec/models/captcha_stage_request_spec.rb +6 -0
  118. data/spec/models/captcha_stage_spec.rb +6 -0
  119. data/spec/models/content_type_spec.rb +6 -0
  120. data/spec/models/current_brand_flags_spec.rb +0 -12
  121. data/spec/models/current_brand_spec.rb +18 -0
  122. data/spec/models/device_user_binding_spec.rb +12 -0
  123. data/spec/models/grant_request_create_request_spec.rb +36 -0
  124. data/spec/models/grant_request_spec.rb +90 -0
  125. data/spec/models/{grant_types_enum_spec.rb → grant_type_enum_spec.rb} +6 -6
  126. data/spec/models/ldap_source_request_spec.rb +6 -0
  127. data/spec/models/ldap_source_spec.rb +6 -0
  128. data/spec/models/notification_mode_enum_spec.rb +24 -0
  129. data/spec/models/o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  130. data/spec/models/o_auth2_dynamic_client_registration_spec.rb +84 -0
  131. data/spec/models/o_auth2_provider_setup_urls_spec.rb +6 -0
  132. data/spec/models/object_attribute_request_spec.rb +84 -0
  133. data/spec/models/object_attribute_spec.rb +108 -0
  134. data/spec/models/object_attribute_type_enum_spec.rb +24 -0
  135. data/spec/models/offboarding_action_enum_spec.rb +24 -0
  136. data/spec/models/offboarding_status_enum_spec.rb +24 -0
  137. data/spec/models/paginated_grant_request_list_spec.rb +42 -0
  138. data/spec/models/paginated_o_auth2_dynamic_client_registration_list_spec.rb +42 -0
  139. data/spec/models/paginated_object_attribute_list_spec.rb +42 -0
  140. data/spec/models/paginated_request_rule_binding_list_spec.rb +42 -0
  141. data/spec/models/paginated_request_rule_child_binding_list_spec.rb +42 -0
  142. data/spec/models/paginated_request_rule_list_spec.rb +42 -0
  143. data/spec/models/paginated_requestable_target_list_spec.rb +42 -0
  144. data/spec/models/paginated_user_offboarding_list_spec.rb +42 -0
  145. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +0 -6
  146. data/spec/models/patched_brand_request_spec.rb +18 -0
  147. data/spec/models/patched_captcha_stage_request_spec.rb +6 -0
  148. data/spec/models/patched_grant_request_fulfill_request_spec.rb +36 -0
  149. data/spec/models/patched_ldap_source_request_spec.rb +6 -0
  150. data/spec/models/patched_o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  151. data/spec/models/patched_object_attribute_request_spec.rb +84 -0
  152. data/spec/models/patched_request_rule_binding_request_spec.rb +60 -0
  153. data/spec/models/patched_request_rule_child_binding_request_spec.rb +42 -0
  154. data/spec/models/patched_request_rule_request_spec.rb +72 -0
  155. data/spec/models/patched_saml_source_request_spec.rb +1 -1
  156. data/spec/models/patched_settings_request_spec.rb +6 -0
  157. data/spec/models/patched_ws_federation_provider_request_spec.rb +6 -0
  158. data/spec/models/policy_binding_spec.rb +12 -0
  159. data/spec/models/related_target_spec.rb +54 -0
  160. data/spec/models/request_content_type_enum_spec.rb +24 -0
  161. data/spec/models/request_rule_binding_request_spec.rb +60 -0
  162. data/spec/models/request_rule_binding_spec.rb +84 -0
  163. data/spec/models/request_rule_child_binding_request_spec.rb +42 -0
  164. data/spec/models/{reviewer_user_spec.rb → request_rule_child_binding_spec.rb} +8 -14
  165. data/spec/models/request_rule_request_spec.rb +72 -0
  166. data/spec/models/request_rule_spec.rb +84 -0
  167. data/spec/models/request_status_spec.rb +24 -0
  168. data/spec/models/requestable_target_spec.rb +60 -0
  169. data/spec/models/saml_source_request_spec.rb +1 -1
  170. data/spec/models/saml_source_spec.rb +7 -1
  171. data/spec/models/saml_version_enum_spec.rb +24 -0
  172. data/spec/models/session_user_spec.rb +6 -0
  173. data/spec/models/settings_request_spec.rb +6 -0
  174. data/spec/models/settings_spec.rb +6 -0
  175. data/spec/models/system_info_spec.rb +6 -0
  176. data/spec/models/user_offboarding_request_spec.rb +54 -0
  177. data/spec/models/user_offboarding_spec.rb +90 -0
  178. data/spec/models/user_self_spec.rb +6 -0
  179. data/spec/models/user_switch_action_enum_spec.rb +24 -0
  180. data/spec/models/{reviewer_group_spec.rb → user_switch_request_spec.rb} +8 -8
  181. data/spec/models/user_switch_response_spec.rb +30 -0
  182. data/spec/models/ws_federation_provider_request_spec.rb +6 -0
  183. data/spec/models/ws_federation_provider_spec.rb +12 -0
  184. metadata +127 -10
@@ -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
@@ -25,8 +25,13 @@ module Authentik::Api
25
25
 
26
26
  attr_accessor :branding_default_flow_background
27
27
 
28
+ # URL template for the vector tile source used by the events map. Supports XYZ templates with {z}, {x} and {y} placeholders, or pmtiles:// archive URLs. When empty, the frontend uses the bundled hexworld basemap. This value is part of the brand information served to unauthenticated clients; do not embed API keys or other credentials in it.
29
+ attr_accessor :branding_map_tiles
30
+
28
31
  attr_accessor :flow_authentication
29
32
 
33
+ attr_accessor :flow_user_switch
34
+
30
35
  attr_accessor :flow_invalidation
31
36
 
32
37
  attr_accessor :flow_recovery
@@ -39,6 +44,8 @@ module Authentik::Api
39
44
 
40
45
  attr_accessor :flow_lockdown
41
46
 
47
+ attr_accessor :flow_request
48
+
42
49
  # When set, external users will be redirected to this application after authenticating.
43
50
  attr_accessor :default_application
44
51
 
@@ -60,13 +67,16 @@ module Authentik::Api
60
67
  :'branding_favicon' => :'branding_favicon',
61
68
  :'branding_custom_css' => :'branding_custom_css',
62
69
  :'branding_default_flow_background' => :'branding_default_flow_background',
70
+ :'branding_map_tiles' => :'branding_map_tiles',
63
71
  :'flow_authentication' => :'flow_authentication',
72
+ :'flow_user_switch' => :'flow_user_switch',
64
73
  :'flow_invalidation' => :'flow_invalidation',
65
74
  :'flow_recovery' => :'flow_recovery',
66
75
  :'flow_unenrollment' => :'flow_unenrollment',
67
76
  :'flow_user_settings' => :'flow_user_settings',
68
77
  :'flow_device_code' => :'flow_device_code',
69
78
  :'flow_lockdown' => :'flow_lockdown',
79
+ :'flow_request' => :'flow_request',
70
80
  :'default_application' => :'default_application',
71
81
  :'web_certificate' => :'web_certificate',
72
82
  :'client_certificates' => :'client_certificates',
@@ -94,13 +104,16 @@ module Authentik::Api
94
104
  :'branding_favicon' => :'String',
95
105
  :'branding_custom_css' => :'String',
96
106
  :'branding_default_flow_background' => :'String',
107
+ :'branding_map_tiles' => :'String',
97
108
  :'flow_authentication' => :'String',
109
+ :'flow_user_switch' => :'String',
98
110
  :'flow_invalidation' => :'String',
99
111
  :'flow_recovery' => :'String',
100
112
  :'flow_unenrollment' => :'String',
101
113
  :'flow_user_settings' => :'String',
102
114
  :'flow_device_code' => :'String',
103
115
  :'flow_lockdown' => :'String',
116
+ :'flow_request' => :'String',
104
117
  :'default_application' => :'String',
105
118
  :'web_certificate' => :'String',
106
119
  :'client_certificates' => :'Array<String>',
@@ -112,12 +125,14 @@ module Authentik::Api
112
125
  def self.openapi_nullable
113
126
  Set.new([
114
127
  :'flow_authentication',
128
+ :'flow_user_switch',
115
129
  :'flow_invalidation',
116
130
  :'flow_recovery',
117
131
  :'flow_unenrollment',
118
132
  :'flow_user_settings',
119
133
  :'flow_device_code',
120
134
  :'flow_lockdown',
135
+ :'flow_request',
121
136
  :'default_application',
122
137
  :'web_certificate',
123
138
  ])
@@ -167,10 +182,18 @@ module Authentik::Api
167
182
  self.branding_default_flow_background = attributes[:'branding_default_flow_background']
168
183
  end
169
184
 
185
+ if attributes.key?(:'branding_map_tiles')
186
+ self.branding_map_tiles = attributes[:'branding_map_tiles']
187
+ end
188
+
170
189
  if attributes.key?(:'flow_authentication')
171
190
  self.flow_authentication = attributes[:'flow_authentication']
172
191
  end
173
192
 
193
+ if attributes.key?(:'flow_user_switch')
194
+ self.flow_user_switch = attributes[:'flow_user_switch']
195
+ end
196
+
174
197
  if attributes.key?(:'flow_invalidation')
175
198
  self.flow_invalidation = attributes[:'flow_invalidation']
176
199
  end
@@ -195,6 +218,10 @@ module Authentik::Api
195
218
  self.flow_lockdown = attributes[:'flow_lockdown']
196
219
  end
197
220
 
221
+ if attributes.key?(:'flow_request')
222
+ self.flow_request = attributes[:'flow_request']
223
+ end
224
+
198
225
  if attributes.key?(:'default_application')
199
226
  self.default_application = attributes[:'default_application']
200
227
  end
@@ -338,13 +365,16 @@ module Authentik::Api
338
365
  branding_favicon == o.branding_favicon &&
339
366
  branding_custom_css == o.branding_custom_css &&
340
367
  branding_default_flow_background == o.branding_default_flow_background &&
368
+ branding_map_tiles == o.branding_map_tiles &&
341
369
  flow_authentication == o.flow_authentication &&
370
+ flow_user_switch == o.flow_user_switch &&
342
371
  flow_invalidation == o.flow_invalidation &&
343
372
  flow_recovery == o.flow_recovery &&
344
373
  flow_unenrollment == o.flow_unenrollment &&
345
374
  flow_user_settings == o.flow_user_settings &&
346
375
  flow_device_code == o.flow_device_code &&
347
376
  flow_lockdown == o.flow_lockdown &&
377
+ flow_request == o.flow_request &&
348
378
  default_application == o.default_application &&
349
379
  web_certificate == o.web_certificate &&
350
380
  client_certificates == o.client_certificates &&
@@ -360,7 +390,7 @@ module Authentik::Api
360
390
  # Calculates hash code according to all attributes.
361
391
  # @return [Integer] Hash code
362
392
  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
393
+ [domain, default, branding_title, branding_logo, branding_favicon, branding_custom_css, branding_default_flow_background, branding_map_tiles, 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
394
  end
365
395
 
366
396
  # 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