authentik-api 2026.2.2 → 2026.5.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 (218) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/README_API.md +67 -15
  4. data/lib/authentik/api/api/admin_api.rb +5 -13
  5. data/lib/authentik/api/api/authenticators_api.rb +60 -60
  6. data/lib/authentik/api/api/core_api.rb +188 -63
  7. data/lib/authentik/api/api/crypto_api.rb +9 -13
  8. data/lib/authentik/api/api/endpoints_api.rb +1600 -679
  9. data/lib/authentik/api/api/enterprise_api.rb +5 -5
  10. data/lib/authentik/api/api/events_api.rb +141 -58
  11. data/lib/authentik/api/api/flows_api.rb +24 -106
  12. data/lib/authentik/api/api/lifecycle_api.rb +27 -18
  13. data/lib/authentik/api/api/managed_api.rb +79 -6
  14. data/lib/authentik/api/api/oauth2_api.rb +9 -9
  15. data/lib/authentik/api/api/outposts_api.rb +22 -22
  16. data/lib/authentik/api/api/policies_api.rb +57 -58
  17. data/lib/authentik/api/api/propertymappings_api.rb +79 -79
  18. data/lib/authentik/api/api/providers_api.rb +134 -196
  19. data/lib/authentik/api/api/rac_api.rb +10 -10
  20. data/lib/authentik/api/api/rbac_api.rb +15 -20
  21. data/lib/authentik/api/api/reports_api.rb +2 -2
  22. data/lib/authentik/api/api/schema_api.rb +4 -12
  23. data/lib/authentik/api/api/sources_api.rb +158 -219
  24. data/lib/authentik/api/api/ssf_api.rb +64 -7
  25. data/lib/authentik/api/api/stages_api.rb +723 -244
  26. data/lib/authentik/api/api/tasks_api.rb +11 -19
  27. data/lib/authentik/api/api/tenants_api.rb +10 -10
  28. data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
  29. data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
  30. data/lib/authentik/api/models/app_enum.rb +3 -2
  31. data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
  32. data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
  33. data/lib/authentik/api/models/application.rb +14 -4
  34. data/lib/authentik/api/models/application_request.rb +14 -4
  35. data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
  36. data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
  37. data/lib/authentik/api/models/authentication_enum.rb +2 -1
  38. data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
  39. data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
  40. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
  41. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
  42. data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
  43. data/lib/authentik/api/models/brand.rb +11 -1
  44. data/lib/authentik/api/models/brand_request.rb +11 -1
  45. data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
  46. data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
  47. data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
  48. data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
  49. data/lib/authentik/api/models/consent_stage.rb +1 -1
  50. data/lib/authentik/api/models/consent_stage_request.rb +1 -1
  51. data/lib/authentik/api/models/country_code_enum.rb +3 -3
  52. data/lib/authentik/api/models/current_brand.rb +10 -1
  53. data/lib/authentik/api/models/current_brand_flags.rb +31 -27
  54. data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
  55. data/lib/authentik/api/models/device_user_binding.rb +3 -45
  56. data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
  57. data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
  58. data/lib/authentik/api/models/event_stats.rb +187 -0
  59. data/lib/authentik/api/models/event_volume.rb +1 -1
  60. data/lib/authentik/api/models/events_requested_enum.rb +7 -1
  61. data/lib/authentik/api/models/force_binding_enum.rb +34 -0
  62. data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
  63. data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
  64. data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
  65. data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
  66. data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
  67. data/lib/authentik/api/models/grant_types_enum.rb +39 -0
  68. data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
  69. data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
  70. data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
  71. data/lib/authentik/api/models/key_type_enum.rb +3 -3
  72. data/lib/authentik/api/models/lang_enum.rb +131 -0
  73. data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
  74. data/lib/authentik/api/models/logout_url.rb +209 -0
  75. data/lib/authentik/api/models/model_enum.rb +3 -1
  76. data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
  77. data/lib/authentik/api/models/notification_rule.rb +1 -15
  78. data/lib/authentik/api/models/notification_transport.rb +13 -2
  79. data/lib/authentik/api/models/notification_transport_request.rb +13 -2
  80. data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
  81. data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
  82. data/lib/authentik/api/models/operating_system.rb +0 -17
  83. data/lib/authentik/api/models/operating_system_request.rb +2 -9
  84. data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
  85. data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
  86. data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
  87. data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
  88. data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
  89. data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
  90. data/lib/authentik/api/models/patched_application_request.rb +14 -4
  91. data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
  92. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
  93. data/lib/authentik/api/models/patched_brand_request.rb +11 -1
  94. data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
  95. data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
  96. data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
  97. data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
  98. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
  99. data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
  100. data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
  101. data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
  102. data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
  103. data/lib/authentik/api/models/policy_binding.rb +3 -45
  104. data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
  105. data/lib/authentik/api/models/redirect_uri.rb +13 -4
  106. data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
  107. data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
  108. data/lib/authentik/api/models/related_rule.rb +250 -0
  109. data/lib/authentik/api/models/saml_metadata.rb +0 -2
  110. data/lib/authentik/api/models/saml_provider.rb +98 -8
  111. data/lib/authentik/api/models/saml_provider_request.rb +17 -27
  112. data/lib/authentik/api/models/saml_source.rb +11 -1
  113. data/lib/authentik/api/models/saml_source_request.rb +11 -1
  114. data/lib/authentik/api/models/ssf_provider.rb +41 -4
  115. data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
  116. data/lib/authentik/api/models/ssf_stream.rb +10 -1
  117. data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
  118. data/lib/authentik/api/models/task.rb +1 -1
  119. data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
  120. data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
  121. data/lib/authentik/api/models/usage_enum.rb +33 -0
  122. data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
  123. data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
  124. data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
  125. data/lib/authentik/api/models/vendor_enum.rb +2 -1
  126. data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
  127. data/lib/authentik/api/version.rb +1 -1
  128. data/spec/api/admin_api_spec.rb +2 -2
  129. data/spec/api/core_api_spec.rb +27 -3
  130. data/spec/api/crypto_api_spec.rb +1 -1
  131. data/spec/api/endpoints_api_spec.rb +167 -0
  132. data/spec/api/events_api_spec.rb +33 -7
  133. data/spec/api/flows_api_spec.rb +4 -16
  134. data/spec/api/lifecycle_api_spec.rb +6 -3
  135. data/spec/api/managed_api_spec.rb +13 -0
  136. data/spec/api/policies_api_spec.rb +2 -1
  137. data/spec/api/providers_api_spec.rb +21 -19
  138. data/spec/api/schema_api_spec.rb +2 -2
  139. data/spec/api/sources_api_spec.rb +17 -16
  140. data/spec/api/ssf_api_spec.rb +12 -1
  141. data/spec/api/stages_api_spec.rb +117 -18
  142. data/spec/api/tasks_api_spec.rb +2 -2
  143. data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
  144. data/spec/models/account_lockdown_stage_spec.rb +96 -0
  145. data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
  146. data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
  147. data/spec/models/application_request_spec.rb +6 -0
  148. data/spec/models/application_spec.rb +6 -0
  149. data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
  150. data/spec/models/authenticator_validate_stage_spec.rb +30 -0
  151. data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
  152. data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
  153. data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
  154. data/spec/models/brand_request_spec.rb +6 -0
  155. data/spec/models/brand_spec.rb +6 -0
  156. data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
  157. data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
  158. data/spec/models/current_brand_flags_spec.rb +2 -2
  159. data/spec/models/current_brand_spec.rb +6 -0
  160. data/spec/models/event_matcher_policy_request_spec.rb +6 -0
  161. data/spec/models/event_matcher_policy_spec.rb +6 -0
  162. data/spec/models/event_stats_spec.rb +36 -0
  163. data/spec/models/force_binding_enum_spec.rb +24 -0
  164. data/spec/models/format_enum_spec.rb +24 -0
  165. data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
  166. data/spec/models/google_chrome_connector_request_spec.rb +48 -0
  167. data/spec/models/google_chrome_connector_spec.rb +78 -0
  168. data/spec/models/grant_types_enum_spec.rb +24 -0
  169. data/spec/models/group_ldap_source_connection_spec.rb +6 -0
  170. data/spec/models/invitation_send_email_request_spec.rb +48 -0
  171. data/spec/models/lang_enum_spec.rb +24 -0
  172. data/spec/models/lifecycle_iteration_spec.rb +2 -14
  173. data/spec/models/logout_url_spec.rb +60 -0
  174. data/spec/models/native_logout_challenge_spec.rb +13 -7
  175. data/spec/models/notification_transport_request_spec.rb +6 -0
  176. data/spec/models/notification_transport_spec.rb +6 -0
  177. data/spec/models/o_auth2_provider_request_spec.rb +6 -0
  178. data/spec/models/o_auth2_provider_spec.rb +6 -0
  179. data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
  180. data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
  181. data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
  182. data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
  183. data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
  184. data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
  185. data/spec/models/patched_application_request_spec.rb +6 -0
  186. data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
  187. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
  188. data/spec/models/patched_brand_request_spec.rb +6 -0
  189. data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
  190. data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
  191. data/spec/models/patched_notification_transport_request_spec.rb +6 -0
  192. data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
  193. data/spec/models/patched_saml_provider_request_spec.rb +7 -1
  194. data/spec/models/patched_saml_source_request_spec.rb +6 -0
  195. data/spec/models/patched_settings_request_flags_spec.rb +2 -2
  196. data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
  197. data/spec/models/redirect_uri_request_spec.rb +6 -0
  198. data/spec/models/redirect_uri_spec.rb +6 -0
  199. data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
  200. data/spec/models/related_rule_spec.rb +54 -0
  201. data/spec/models/saml_provider_request_spec.rb +7 -1
  202. data/spec/models/saml_provider_spec.rb +25 -1
  203. data/spec/models/saml_source_request_spec.rb +6 -0
  204. data/spec/models/saml_source_spec.rb +6 -0
  205. data/spec/models/ssf_provider_request_spec.rb +6 -0
  206. data/spec/models/ssf_provider_spec.rb +12 -0
  207. data/spec/models/ssf_stream_spec.rb +6 -0
  208. data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
  209. data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
  210. data/spec/models/transport_mode_enum_spec.rb +24 -0
  211. data/spec/models/usage_enum_spec.rb +24 -0
  212. data/spec/models/user_account_lockdown_request_spec.rb +30 -0
  213. data/spec/models/user_ldap_source_connection_spec.rb +6 -0
  214. data/spec/models/user_password_hash_set_request_spec.rb +30 -0
  215. data/spec/models/web_authn_hint_enum_spec.rb +24 -0
  216. data/spec/zeitwerk_spec.rb +34 -0
  217. metadata +113 -32
  218. data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
@@ -24,6 +24,8 @@ module Authentik::Api
24
24
 
25
25
  attr_accessor :last_updated
26
26
 
27
+ attr_accessor :user_obj
28
+
27
29
  # Attribute mapping from ruby-style variable name to JSON key.
28
30
  def self.attribute_map
29
31
  {
@@ -33,7 +35,8 @@ module Authentik::Api
33
35
  :'source_obj' => :'source_obj',
34
36
  :'identifier' => :'identifier',
35
37
  :'created' => :'created',
36
- :'last_updated' => :'last_updated'
38
+ :'last_updated' => :'last_updated',
39
+ :'user_obj' => :'user_obj'
37
40
  }
38
41
  end
39
42
 
@@ -56,7 +59,8 @@ module Authentik::Api
56
59
  :'source_obj' => :'Source',
57
60
  :'identifier' => :'String',
58
61
  :'created' => :'Time',
59
- :'last_updated' => :'Time'
62
+ :'last_updated' => :'Time',
63
+ :'user_obj' => :'PartialUser'
60
64
  }
61
65
  end
62
66
 
@@ -123,6 +127,12 @@ module Authentik::Api
123
127
  else
124
128
  self.last_updated = nil
125
129
  end
130
+
131
+ if attributes.key?(:'user_obj')
132
+ self.user_obj = attributes[:'user_obj']
133
+ else
134
+ self.user_obj = nil
135
+ end
126
136
  end
127
137
 
128
138
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -158,6 +168,10 @@ module Authentik::Api
158
168
  invalid_properties.push('invalid value for "last_updated", last_updated cannot be nil.')
159
169
  end
160
170
 
171
+ if @user_obj.nil?
172
+ invalid_properties.push('invalid value for "user_obj", user_obj cannot be nil.')
173
+ end
174
+
161
175
  invalid_properties
162
176
  end
163
177
 
@@ -172,6 +186,7 @@ module Authentik::Api
172
186
  return false if @identifier.nil?
173
187
  return false if @created.nil?
174
188
  return false if @last_updated.nil?
189
+ return false if @user_obj.nil?
175
190
  true
176
191
  end
177
192
 
@@ -245,6 +260,16 @@ module Authentik::Api
245
260
  @last_updated = last_updated
246
261
  end
247
262
 
263
+ # Custom attribute writer method with validation
264
+ # @param [Object] user_obj Value to be assigned
265
+ def user_obj=(user_obj)
266
+ if user_obj.nil?
267
+ fail ArgumentError, 'user_obj cannot be nil'
268
+ end
269
+
270
+ @user_obj = user_obj
271
+ end
272
+
248
273
  # Checks equality by comparing each attribute.
249
274
  # @param [Object] Object to be compared
250
275
  def ==(o)
@@ -256,7 +281,8 @@ module Authentik::Api
256
281
  source_obj == o.source_obj &&
257
282
  identifier == o.identifier &&
258
283
  created == o.created &&
259
- last_updated == o.last_updated
284
+ last_updated == o.last_updated &&
285
+ user_obj == o.user_obj
260
286
  end
261
287
 
262
288
  # @see the `==` method
@@ -268,7 +294,7 @@ module Authentik::Api
268
294
  # Calculates hash code according to all attributes.
269
295
  # @return [Integer] Hash code
270
296
  def hash
271
- [pk, user, source, source_obj, identifier, created, last_updated].hash
297
+ [pk, user, source, source_obj, identifier, created, last_updated, user_obj].hash
272
298
  end
273
299
 
274
300
  # Builds the object from hash
@@ -0,0 +1,168 @@
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
+ # Payload to set a users' password hash directly
12
+ class UserPasswordHashSetRequest < ApiModelBase
13
+ attr_accessor :password
14
+
15
+ # Attribute mapping from ruby-style variable name to JSON key.
16
+ def self.attribute_map
17
+ {
18
+ :'password' => :'password'
19
+ }
20
+ end
21
+
22
+ # Returns attribute mapping this model knows about
23
+ def self.acceptable_attribute_map
24
+ attribute_map
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ acceptable_attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'password' => :'String'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::UserPasswordHashSetRequest` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ acceptable_attribute_map = self.class.acceptable_attribute_map
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!acceptable_attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::UserPasswordHashSetRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'password')
62
+ self.password = attributes[:'password']
63
+ else
64
+ self.password = nil
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
72
+ invalid_properties = Array.new
73
+ if @password.nil?
74
+ invalid_properties.push('invalid value for "password", password cannot be nil.')
75
+ end
76
+
77
+ if @password.to_s.length < 1
78
+ invalid_properties.push('invalid value for "password", the character length must be greater than or equal to 1.')
79
+ end
80
+
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ warn '[DEPRECATED] the `valid?` method is obsolete'
88
+ return false if @password.nil?
89
+ return false if @password.to_s.length < 1
90
+ true
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] password Value to be assigned
95
+ def password=(password)
96
+ if password.nil?
97
+ fail ArgumentError, 'password cannot be nil'
98
+ end
99
+
100
+ if password.to_s.length < 1
101
+ fail ArgumentError, 'invalid value for "password", the character length must be greater than or equal to 1.'
102
+ end
103
+
104
+ @password = password
105
+ end
106
+
107
+ # Checks equality by comparing each attribute.
108
+ # @param [Object] Object to be compared
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ password == o.password
113
+ end
114
+
115
+ # @see the `==` method
116
+ # @param [Object] Object to be compared
117
+ def eql?(o)
118
+ self == o
119
+ end
120
+
121
+ # Calculates hash code according to all attributes.
122
+ # @return [Integer] Hash code
123
+ def hash
124
+ [password].hash
125
+ end
126
+
127
+ # Builds the object from hash
128
+ # @param [Hash] attributes Model attributes in the form of hash
129
+ # @return [Object] Returns the model itself
130
+ def self.build_from_hash(attributes)
131
+ return nil unless attributes.is_a?(Hash)
132
+ attributes = attributes.transform_keys(&:to_sym)
133
+ transformed_hash = {}
134
+ openapi_types.each_pair do |key, type|
135
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
136
+ transformed_hash["#{key}"] = nil
137
+ elsif type =~ /\AArray<(.*)>/i
138
+ # check to ensure the input is an array given that the attribute
139
+ # is documented as an array but the input is not
140
+ if attributes[attribute_map[key]].is_a?(Array)
141
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
142
+ end
143
+ elsif !attributes[attribute_map[key]].nil?
144
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
145
+ end
146
+ end
147
+ new(transformed_hash)
148
+ end
149
+
150
+ # Returns the object in the form of hash
151
+ # @return [Hash] Returns the object in the form of hash
152
+ def to_hash
153
+ hash = {}
154
+ self.class.attribute_map.each_pair do |attr, param|
155
+ value = self.send(attr)
156
+ if value.nil?
157
+ is_nullable = self.class.openapi_nullable.include?(attr)
158
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
159
+ end
160
+
161
+ hash[param] = _to_hash(value)
162
+ end
163
+ hash
164
+ end
165
+
166
+ end
167
+
168
+ end
@@ -12,9 +12,10 @@ module Authentik::Api
12
12
  GOAUTHENTIK_IO_MERGED = "goauthentik.io/@merged".freeze
13
13
  GOAUTHENTIK_IO_PLATFORM = "goauthentik.io/platform".freeze
14
14
  FLEETDM_COM = "fleetdm.com".freeze
15
+ CHROME_GOOGLE_COM = "chrome.google.com".freeze
15
16
 
16
17
  def self.all_vars
17
- @all_vars ||= [GOAUTHENTIK_IO_MERGED, GOAUTHENTIK_IO_PLATFORM, FLEETDM_COM].freeze
18
+ @all_vars ||= [GOAUTHENTIK_IO_MERGED, GOAUTHENTIK_IO_PLATFORM, FLEETDM_COM, CHROME_GOOGLE_COM].freeze
18
19
  end
19
20
 
20
21
  # Builds the enum from string
@@ -0,0 +1,35 @@
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 WebAuthnHintEnum
12
+ SECURITY_KEY = "security-key".freeze
13
+ CLIENT_DEVICE = "client-device".freeze
14
+ HYBRID = "hybrid".freeze
15
+
16
+ def self.all_vars
17
+ @all_vars ||= [SECURITY_KEY, CLIENT_DEVICE, HYBRID].freeze
18
+ end
19
+
20
+ # Builds the enum from string
21
+ # @param [String] The enum value in the form of the string
22
+ # @return [String] The enum value
23
+ def self.build_from_hash(value)
24
+ new.build_from_hash(value)
25
+ end
26
+
27
+ # Builds the enum from string
28
+ # @param [String] The enum value in the form of the string
29
+ # @return [String] The enum value
30
+ def build_from_hash(value)
31
+ return value if WebAuthnHintEnum.all_vars.include?(value)
32
+ raise "Invalid ENUM value #{value} for class #WebAuthnHintEnum"
33
+ end
34
+ end
35
+ end
@@ -6,6 +6,6 @@ Any manual changes will be lost when the OpenAPI scheme changes.
6
6
 
7
7
  module Authentik
8
8
  module Api
9
- VERSION = '2026.2.2'
9
+ VERSION = '2026.5.0.rc1'
10
10
  end
11
11
  end
@@ -53,7 +53,7 @@ describe 'AdminApi' do
53
53
  # Delete file from storage backend.
54
54
  # @param [Hash] opts the optional parameters
55
55
  # @option opts [String] :name
56
- # @option opts [String] :usage
56
+ # @option opts [UsageEnum] :usage
57
57
  # @return [nil]
58
58
  describe 'admin_file_destroy test' do
59
59
  it 'should work' do
@@ -66,7 +66,7 @@ describe 'AdminApi' do
66
66
  # @param [Hash] opts the optional parameters
67
67
  # @option opts [Boolean] :manageable_only
68
68
  # @option opts [String] :search A search term.
69
- # @option opts [String] :usage
69
+ # @option opts [UsageEnum] :usage
70
70
  # @return [Array<FileList>]
71
71
  describe 'admin_file_list test' do
72
72
  it 'should work' do
@@ -321,6 +321,7 @@ describe 'CoreApi' do
321
321
  # @option opts [String] :flow_authentication
322
322
  # @option opts [String] :flow_device_code
323
323
  # @option opts [String] :flow_invalidation
324
+ # @option opts [String] :flow_lockdown
324
325
  # @option opts [String] :flow_recovery
325
326
  # @option opts [String] :flow_unenrollment
326
327
  # @option opts [String] :flow_user_settings
@@ -530,7 +531,7 @@ describe 'CoreApi' do
530
531
  # @option opts [Time] :expires
531
532
  # @option opts [Boolean] :expiring
532
533
  # @option opts [String] :identifier
533
- # @option opts [String] :intent
534
+ # @option opts [IntentEnum] :intent
534
535
  # @option opts [String] :managed
535
536
  # @option opts [String] :ordering Which field to use when ordering the results.
536
537
  # @option opts [Integer] :page A page number within the paginated result set.
@@ -673,6 +674,17 @@ describe 'CoreApi' do
673
674
  end
674
675
  end
675
676
 
677
+ # unit tests for core_users_account_lockdown_create
678
+ # Choose the target account, then return a flow link.
679
+ # @param [Hash] opts the optional parameters
680
+ # @option opts [UserAccountLockdownRequest] :user_account_lockdown_request
681
+ # @return [Link]
682
+ describe 'core_users_account_lockdown_create test' do
683
+ it 'should work' do
684
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
685
+ end
686
+ end
687
+
676
688
  # unit tests for core_users_create
677
689
  # User Viewset
678
690
  # @param user_request
@@ -721,7 +733,7 @@ describe 'CoreApi' do
721
733
  # @option opts [Array<String>] :roles_by_name
722
734
  # @option opts [Array<String>] :roles_by_pk
723
735
  # @option opts [String] :search A search term.
724
- # @option opts [Array<String>] :type
736
+ # @option opts [Array<UserTypeEnum>] :type
725
737
  # @option opts [String] :username
726
738
  # @option opts [String] :uuid
727
739
  # @return [DataExport]
@@ -783,7 +795,7 @@ describe 'CoreApi' do
783
795
  # @option opts [Array<String>] :roles_by_name
784
796
  # @option opts [Array<String>] :roles_by_pk
785
797
  # @option opts [String] :search A search term.
786
- # @option opts [Array<String>] :type
798
+ # @option opts [Array<UserTypeEnum>] :type
787
799
  # @option opts [String] :username
788
800
  # @option opts [String] :uuid
789
801
  # @return [PaginatedUserList]
@@ -884,6 +896,18 @@ describe 'CoreApi' do
884
896
  end
885
897
  end
886
898
 
899
+ # unit tests for core_users_set_password_hash_create
900
+ # Set a user&#39;s password from a pre-hashed Django password value. Submit the Django password hash in the shared &#x60;&#x60;password&#x60;&#x60; request field. This updates authentik&#39;s local password verifier only. It does not attempt to propagate the password change to LDAP or Kerberos because no raw password is available from the request payload.
901
+ # @param id A unique integer value identifying this User.
902
+ # @param user_password_hash_set_request
903
+ # @param [Hash] opts the optional parameters
904
+ # @return [nil]
905
+ describe 'core_users_set_password_hash_create test' do
906
+ it 'should work' do
907
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
908
+ end
909
+ end
910
+
887
911
  # unit tests for core_users_update
888
912
  # User Viewset
889
913
  # @param id A unique integer value identifying this User.
@@ -63,7 +63,7 @@ describe 'CryptoApi' do
63
63
  # CertificateKeyPair Viewset
64
64
  # @param [Hash] opts the optional parameters
65
65
  # @option opts [Boolean] :has_key Only return certificate-key pairs with keys
66
- # @option opts [Array<String>] :key_type Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. &#39;?key_type&#x3D;rsa&amp;key_type&#x3D;ec&#39;)
66
+ # @option opts [Array<KeyTypeEnum>] :key_type
67
67
  # @option opts [String] :managed
68
68
  # @option opts [String] :name
69
69
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -270,6 +270,90 @@ describe 'EndpointsApi' do
270
270
  end
271
271
  end
272
272
 
273
+ # unit tests for endpoints_agents_psso_ise_create
274
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
275
+ # @param apple_independent_secure_enclave_request
276
+ # @param [Hash] opts the optional parameters
277
+ # @return [AppleIndependentSecureEnclave]
278
+ describe 'endpoints_agents_psso_ise_create test' do
279
+ it 'should work' do
280
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
281
+ end
282
+ end
283
+
284
+ # unit tests for endpoints_agents_psso_ise_destroy
285
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
286
+ # @param uuid A UUID string identifying this Apple Independent Secure Enclave.
287
+ # @param [Hash] opts the optional parameters
288
+ # @return [nil]
289
+ describe 'endpoints_agents_psso_ise_destroy test' do
290
+ it 'should work' do
291
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
292
+ end
293
+ end
294
+
295
+ # unit tests for endpoints_agents_psso_ise_list
296
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
297
+ # @param [Hash] opts the optional parameters
298
+ # @option opts [String] :apple_enclave_key_id
299
+ # @option opts [String] :ordering Which field to use when ordering the results.
300
+ # @option opts [Integer] :page A page number within the paginated result set.
301
+ # @option opts [Integer] :page_size Number of results to return per page.
302
+ # @option opts [String] :search A search term.
303
+ # @option opts [Integer] :user
304
+ # @return [PaginatedAppleIndependentSecureEnclaveList]
305
+ describe 'endpoints_agents_psso_ise_list test' do
306
+ it 'should work' do
307
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
308
+ end
309
+ end
310
+
311
+ # unit tests for endpoints_agents_psso_ise_partial_update
312
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
313
+ # @param uuid A UUID string identifying this Apple Independent Secure Enclave.
314
+ # @param [Hash] opts the optional parameters
315
+ # @option opts [PatchedAppleIndependentSecureEnclaveRequest] :patched_apple_independent_secure_enclave_request
316
+ # @return [AppleIndependentSecureEnclave]
317
+ describe 'endpoints_agents_psso_ise_partial_update test' do
318
+ it 'should work' do
319
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
320
+ end
321
+ end
322
+
323
+ # unit tests for endpoints_agents_psso_ise_retrieve
324
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
325
+ # @param uuid A UUID string identifying this Apple Independent Secure Enclave.
326
+ # @param [Hash] opts the optional parameters
327
+ # @return [AppleIndependentSecureEnclave]
328
+ describe 'endpoints_agents_psso_ise_retrieve test' do
329
+ it 'should work' do
330
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
331
+ end
332
+ end
333
+
334
+ # unit tests for endpoints_agents_psso_ise_update
335
+ # Mixin to add a used_by endpoint to return a list of all objects using this object
336
+ # @param uuid A UUID string identifying this Apple Independent Secure Enclave.
337
+ # @param apple_independent_secure_enclave_request
338
+ # @param [Hash] opts the optional parameters
339
+ # @return [AppleIndependentSecureEnclave]
340
+ describe 'endpoints_agents_psso_ise_update test' do
341
+ it 'should work' do
342
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
343
+ end
344
+ end
345
+
346
+ # unit tests for endpoints_agents_psso_ise_used_by_list
347
+ # Get a list of all objects that use this object
348
+ # @param uuid A UUID string identifying this Apple Independent Secure Enclave.
349
+ # @param [Hash] opts the optional parameters
350
+ # @return [Array<UsedBy>]
351
+ describe 'endpoints_agents_psso_ise_used_by_list test' do
352
+ it 'should work' do
353
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
354
+ end
355
+ end
356
+
273
357
  # unit tests for endpoints_agents_psso_register_device_create
274
358
  # @param agent_psso_device_registration_request
275
359
  # @param [Hash] opts the optional parameters
@@ -686,4 +770,87 @@ describe 'EndpointsApi' do
686
770
  end
687
771
  end
688
772
 
773
+ # unit tests for endpoints_google_chrome_connectors_create
774
+ # GoogleChromeConnector Viewset
775
+ # @param google_chrome_connector_request
776
+ # @param [Hash] opts the optional parameters
777
+ # @return [GoogleChromeConnector]
778
+ describe 'endpoints_google_chrome_connectors_create test' do
779
+ it 'should work' do
780
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
781
+ end
782
+ end
783
+
784
+ # unit tests for endpoints_google_chrome_connectors_destroy
785
+ # GoogleChromeConnector Viewset
786
+ # @param connector_uuid A UUID string identifying this Google Device Trust Connector.
787
+ # @param [Hash] opts the optional parameters
788
+ # @return [nil]
789
+ describe 'endpoints_google_chrome_connectors_destroy test' do
790
+ it 'should work' do
791
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
792
+ end
793
+ end
794
+
795
+ # unit tests for endpoints_google_chrome_connectors_list
796
+ # GoogleChromeConnector Viewset
797
+ # @param [Hash] opts the optional parameters
798
+ # @option opts [String] :name
799
+ # @option opts [String] :ordering Which field to use when ordering the results.
800
+ # @option opts [Integer] :page A page number within the paginated result set.
801
+ # @option opts [Integer] :page_size Number of results to return per page.
802
+ # @option opts [String] :search A search term.
803
+ # @return [PaginatedGoogleChromeConnectorList]
804
+ describe 'endpoints_google_chrome_connectors_list test' do
805
+ it 'should work' do
806
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
807
+ end
808
+ end
809
+
810
+ # unit tests for endpoints_google_chrome_connectors_partial_update
811
+ # GoogleChromeConnector Viewset
812
+ # @param connector_uuid A UUID string identifying this Google Device Trust Connector.
813
+ # @param [Hash] opts the optional parameters
814
+ # @option opts [PatchedGoogleChromeConnectorRequest] :patched_google_chrome_connector_request
815
+ # @return [GoogleChromeConnector]
816
+ describe 'endpoints_google_chrome_connectors_partial_update test' do
817
+ it 'should work' do
818
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
819
+ end
820
+ end
821
+
822
+ # unit tests for endpoints_google_chrome_connectors_retrieve
823
+ # GoogleChromeConnector Viewset
824
+ # @param connector_uuid A UUID string identifying this Google Device Trust Connector.
825
+ # @param [Hash] opts the optional parameters
826
+ # @return [GoogleChromeConnector]
827
+ describe 'endpoints_google_chrome_connectors_retrieve test' do
828
+ it 'should work' do
829
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
830
+ end
831
+ end
832
+
833
+ # unit tests for endpoints_google_chrome_connectors_update
834
+ # GoogleChromeConnector Viewset
835
+ # @param connector_uuid A UUID string identifying this Google Device Trust Connector.
836
+ # @param google_chrome_connector_request
837
+ # @param [Hash] opts the optional parameters
838
+ # @return [GoogleChromeConnector]
839
+ describe 'endpoints_google_chrome_connectors_update test' do
840
+ it 'should work' do
841
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
842
+ end
843
+ end
844
+
845
+ # unit tests for endpoints_google_chrome_connectors_used_by_list
846
+ # Get a list of all objects that use this object
847
+ # @param connector_uuid A UUID string identifying this Google Device Trust Connector.
848
+ # @param [Hash] opts the optional parameters
849
+ # @return [Array<UsedBy>]
850
+ describe 'endpoints_google_chrome_connectors_used_by_list test' do
851
+ it 'should work' do
852
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
853
+ end
854
+ end
855
+
689
856
  end