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
@@ -0,0 +1,219 @@
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
+ # AccountLockdownStage Serializer
12
+ class AccountLockdownStageRequest < ApiModelBase
13
+ attr_accessor :name
14
+
15
+ # Deactivate the user account (set is_active to False)
16
+ attr_accessor :deactivate_user
17
+
18
+ # Set an unusable password for the user
19
+ attr_accessor :set_unusable_password
20
+
21
+ # Delete all active sessions for the user
22
+ attr_accessor :delete_sessions
23
+
24
+ # Revoke all tokens for the user (API, app password, recovery, verification, OAuth)
25
+ attr_accessor :revoke_tokens
26
+
27
+ # Flow to redirect users to after self-service lockdown. This flow should not require authentication since the user's session is deleted.
28
+ attr_accessor :self_service_completion_flow
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'name' => :'name',
34
+ :'deactivate_user' => :'deactivate_user',
35
+ :'set_unusable_password' => :'set_unusable_password',
36
+ :'delete_sessions' => :'delete_sessions',
37
+ :'revoke_tokens' => :'revoke_tokens',
38
+ :'self_service_completion_flow' => :'self_service_completion_flow'
39
+ }
40
+ end
41
+
42
+ # Returns attribute mapping this model knows about
43
+ def self.acceptable_attribute_map
44
+ attribute_map
45
+ end
46
+
47
+ # Returns all the JSON keys this model knows about
48
+ def self.acceptable_attributes
49
+ acceptable_attribute_map.values
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.openapi_types
54
+ {
55
+ :'name' => :'String',
56
+ :'deactivate_user' => :'Boolean',
57
+ :'set_unusable_password' => :'Boolean',
58
+ :'delete_sessions' => :'Boolean',
59
+ :'revoke_tokens' => :'Boolean',
60
+ :'self_service_completion_flow' => :'String'
61
+ }
62
+ end
63
+
64
+ # List of attributes with nullable: true
65
+ def self.openapi_nullable
66
+ Set.new([
67
+ :'self_service_completion_flow'
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::AccountLockdownStageRequest` 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::AccountLockdownStageRequest`. 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?(:'name')
88
+ self.name = attributes[:'name']
89
+ else
90
+ self.name = nil
91
+ end
92
+
93
+ if attributes.key?(:'deactivate_user')
94
+ self.deactivate_user = attributes[:'deactivate_user']
95
+ end
96
+
97
+ if attributes.key?(:'set_unusable_password')
98
+ self.set_unusable_password = attributes[:'set_unusable_password']
99
+ end
100
+
101
+ if attributes.key?(:'delete_sessions')
102
+ self.delete_sessions = attributes[:'delete_sessions']
103
+ end
104
+
105
+ if attributes.key?(:'revoke_tokens')
106
+ self.revoke_tokens = attributes[:'revoke_tokens']
107
+ end
108
+
109
+ if attributes.key?(:'self_service_completion_flow')
110
+ self.self_service_completion_flow = attributes[:'self_service_completion_flow']
111
+ end
112
+ end
113
+
114
+ # Show invalid properties with the reasons. Usually used together with valid?
115
+ # @return Array for valid properties with the reasons
116
+ def list_invalid_properties
117
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
118
+ invalid_properties = Array.new
119
+ if @name.nil?
120
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
121
+ end
122
+
123
+ if @name.to_s.length < 1
124
+ invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
125
+ end
126
+
127
+ invalid_properties
128
+ end
129
+
130
+ # Check to see if the all the properties in the model are valid
131
+ # @return true if the model is valid
132
+ def valid?
133
+ warn '[DEPRECATED] the `valid?` method is obsolete'
134
+ return false if @name.nil?
135
+ return false if @name.to_s.length < 1
136
+ true
137
+ end
138
+
139
+ # Custom attribute writer method with validation
140
+ # @param [Object] name Value to be assigned
141
+ def name=(name)
142
+ if name.nil?
143
+ fail ArgumentError, 'name cannot be nil'
144
+ end
145
+
146
+ if name.to_s.length < 1
147
+ fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
148
+ end
149
+
150
+ @name = name
151
+ end
152
+
153
+ # Checks equality by comparing each attribute.
154
+ # @param [Object] Object to be compared
155
+ def ==(o)
156
+ return true if self.equal?(o)
157
+ self.class == o.class &&
158
+ name == o.name &&
159
+ deactivate_user == o.deactivate_user &&
160
+ set_unusable_password == o.set_unusable_password &&
161
+ delete_sessions == o.delete_sessions &&
162
+ revoke_tokens == o.revoke_tokens &&
163
+ self_service_completion_flow == o.self_service_completion_flow
164
+ end
165
+
166
+ # @see the `==` method
167
+ # @param [Object] Object to be compared
168
+ def eql?(o)
169
+ self == o
170
+ end
171
+
172
+ # Calculates hash code according to all attributes.
173
+ # @return [Integer] Hash code
174
+ def hash
175
+ [name, deactivate_user, set_unusable_password, delete_sessions, revoke_tokens, self_service_completion_flow].hash
176
+ end
177
+
178
+ # Builds the object from hash
179
+ # @param [Hash] attributes Model attributes in the form of hash
180
+ # @return [Object] Returns the model itself
181
+ def self.build_from_hash(attributes)
182
+ return nil unless attributes.is_a?(Hash)
183
+ attributes = attributes.transform_keys(&:to_sym)
184
+ transformed_hash = {}
185
+ openapi_types.each_pair do |key, type|
186
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
187
+ transformed_hash["#{key}"] = nil
188
+ elsif type =~ /\AArray<(.*)>/i
189
+ # check to ensure the input is an array given that the attribute
190
+ # is documented as an array but the input is not
191
+ if attributes[attribute_map[key]].is_a?(Array)
192
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
193
+ end
194
+ elsif !attributes[attribute_map[key]].nil?
195
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
196
+ end
197
+ end
198
+ new(transformed_hash)
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ if value.nil?
208
+ is_nullable = self.class.openapi_nullable.include?(attr)
209
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
+ end
211
+
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ end
218
+
219
+ end
@@ -75,6 +75,7 @@ module Authentik::Api
75
75
  AUTHENTIK_ENTERPRISE_AUDIT = "authentik.enterprise.audit".freeze
76
76
  AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_AGENT = "authentik.enterprise.endpoints.connectors.agent".freeze
77
77
  AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_FLEET = "authentik.enterprise.endpoints.connectors.fleet".freeze
78
+ AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_GOOGLE_CHROME = "authentik.enterprise.endpoints.connectors.google_chrome".freeze
78
79
  AUTHENTIK_ENTERPRISE_LIFECYCLE = "authentik.enterprise.lifecycle".freeze
79
80
  AUTHENTIK_ENTERPRISE_POLICIES_UNIQUE_PASSWORD = "authentik.enterprise.policies.unique_password".freeze
80
81
  AUTHENTIK_ENTERPRISE_PROVIDERS_GOOGLE_WORKSPACE = "authentik.enterprise.providers.google_workspace".freeze
@@ -84,13 +85,13 @@ module Authentik::Api
84
85
  AUTHENTIK_ENTERPRISE_PROVIDERS_SSF = "authentik.enterprise.providers.ssf".freeze
85
86
  AUTHENTIK_ENTERPRISE_PROVIDERS_WS_FEDERATION = "authentik.enterprise.providers.ws_federation".freeze
86
87
  AUTHENTIK_ENTERPRISE_REPORTS = "authentik.enterprise.reports".freeze
87
- AUTHENTIK_ENTERPRISE_SEARCH = "authentik.enterprise.search".freeze
88
+ AUTHENTIK_ENTERPRISE_STAGES_ACCOUNT_LOCKDOWN = "authentik.enterprise.stages.account_lockdown".freeze
88
89
  AUTHENTIK_ENTERPRISE_STAGES_AUTHENTICATOR_ENDPOINT_GDTC = "authentik.enterprise.stages.authenticator_endpoint_gdtc".freeze
89
90
  AUTHENTIK_ENTERPRISE_STAGES_MTLS = "authentik.enterprise.stages.mtls".freeze
90
91
  AUTHENTIK_ENTERPRISE_STAGES_SOURCE = "authentik.enterprise.stages.source".freeze
91
92
 
92
93
  def self.all_vars
93
- @all_vars ||= [AUTHENTIK_COMMANDS, AUTHENTIK_TENANTS, AUTHENTIK_TASKS, AUTHENTIK_ADMIN, AUTHENTIK_API, AUTHENTIK_CORE, AUTHENTIK_CRYPTO, AUTHENTIK_ENDPOINTS, AUTHENTIK_ENDPOINTS_CONNECTORS_AGENT, AUTHENTIK_ENTERPRISE, AUTHENTIK_EVENTS, AUTHENTIK_ADMIN_FILES, AUTHENTIK_FLOWS, AUTHENTIK_OUTPOSTS, AUTHENTIK_POLICIES_DUMMY, AUTHENTIK_POLICIES_EVENT_MATCHER, AUTHENTIK_POLICIES_EXPIRY, AUTHENTIK_POLICIES_EXPRESSION, AUTHENTIK_POLICIES_GEOIP, AUTHENTIK_POLICIES_PASSWORD, AUTHENTIK_POLICIES_REPUTATION, AUTHENTIK_POLICIES, AUTHENTIK_PROVIDERS_LDAP, AUTHENTIK_PROVIDERS_OAUTH2, AUTHENTIK_PROVIDERS_PROXY, AUTHENTIK_PROVIDERS_RAC, AUTHENTIK_PROVIDERS_RADIUS, AUTHENTIK_PROVIDERS_SAML, AUTHENTIK_PROVIDERS_SCIM, AUTHENTIK_RBAC, AUTHENTIK_RECOVERY, AUTHENTIK_SOURCES_KERBEROS, AUTHENTIK_SOURCES_LDAP, AUTHENTIK_SOURCES_OAUTH, AUTHENTIK_SOURCES_PLEX, AUTHENTIK_SOURCES_SAML, AUTHENTIK_SOURCES_SCIM, AUTHENTIK_SOURCES_TELEGRAM, AUTHENTIK_STAGES_AUTHENTICATOR, AUTHENTIK_STAGES_AUTHENTICATOR_DUO, AUTHENTIK_STAGES_AUTHENTICATOR_EMAIL, AUTHENTIK_STAGES_AUTHENTICATOR_SMS, AUTHENTIK_STAGES_AUTHENTICATOR_STATIC, AUTHENTIK_STAGES_AUTHENTICATOR_TOTP, AUTHENTIK_STAGES_AUTHENTICATOR_VALIDATE, AUTHENTIK_STAGES_AUTHENTICATOR_WEBAUTHN, AUTHENTIK_STAGES_CAPTCHA, AUTHENTIK_STAGES_CONSENT, AUTHENTIK_STAGES_DENY, AUTHENTIK_STAGES_DUMMY, AUTHENTIK_STAGES_EMAIL, AUTHENTIK_STAGES_IDENTIFICATION, AUTHENTIK_STAGES_INVITATION, AUTHENTIK_STAGES_PASSWORD, AUTHENTIK_STAGES_PROMPT, AUTHENTIK_STAGES_REDIRECT, AUTHENTIK_STAGES_USER_DELETE, AUTHENTIK_STAGES_USER_LOGIN, AUTHENTIK_STAGES_USER_LOGOUT, AUTHENTIK_STAGES_USER_WRITE, AUTHENTIK_TASKS_SCHEDULES, AUTHENTIK_BRANDS, AUTHENTIK_BLUEPRINTS, AUTHENTIK_ENTERPRISE_AUDIT, AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_AGENT, AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_FLEET, AUTHENTIK_ENTERPRISE_LIFECYCLE, AUTHENTIK_ENTERPRISE_POLICIES_UNIQUE_PASSWORD, AUTHENTIK_ENTERPRISE_PROVIDERS_GOOGLE_WORKSPACE, AUTHENTIK_ENTERPRISE_PROVIDERS_MICROSOFT_ENTRA, AUTHENTIK_ENTERPRISE_PROVIDERS_RADIUS, AUTHENTIK_ENTERPRISE_PROVIDERS_SCIM, AUTHENTIK_ENTERPRISE_PROVIDERS_SSF, AUTHENTIK_ENTERPRISE_PROVIDERS_WS_FEDERATION, AUTHENTIK_ENTERPRISE_REPORTS, AUTHENTIK_ENTERPRISE_SEARCH, AUTHENTIK_ENTERPRISE_STAGES_AUTHENTICATOR_ENDPOINT_GDTC, AUTHENTIK_ENTERPRISE_STAGES_MTLS, AUTHENTIK_ENTERPRISE_STAGES_SOURCE].freeze
94
+ @all_vars ||= [AUTHENTIK_COMMANDS, AUTHENTIK_TENANTS, AUTHENTIK_TASKS, AUTHENTIK_ADMIN, AUTHENTIK_API, AUTHENTIK_CORE, AUTHENTIK_CRYPTO, AUTHENTIK_ENDPOINTS, AUTHENTIK_ENDPOINTS_CONNECTORS_AGENT, AUTHENTIK_ENTERPRISE, AUTHENTIK_EVENTS, AUTHENTIK_ADMIN_FILES, AUTHENTIK_FLOWS, AUTHENTIK_OUTPOSTS, AUTHENTIK_POLICIES_DUMMY, AUTHENTIK_POLICIES_EVENT_MATCHER, AUTHENTIK_POLICIES_EXPIRY, AUTHENTIK_POLICIES_EXPRESSION, AUTHENTIK_POLICIES_GEOIP, AUTHENTIK_POLICIES_PASSWORD, AUTHENTIK_POLICIES_REPUTATION, AUTHENTIK_POLICIES, AUTHENTIK_PROVIDERS_LDAP, AUTHENTIK_PROVIDERS_OAUTH2, AUTHENTIK_PROVIDERS_PROXY, AUTHENTIK_PROVIDERS_RAC, AUTHENTIK_PROVIDERS_RADIUS, AUTHENTIK_PROVIDERS_SAML, AUTHENTIK_PROVIDERS_SCIM, AUTHENTIK_RBAC, AUTHENTIK_RECOVERY, AUTHENTIK_SOURCES_KERBEROS, AUTHENTIK_SOURCES_LDAP, AUTHENTIK_SOURCES_OAUTH, AUTHENTIK_SOURCES_PLEX, AUTHENTIK_SOURCES_SAML, AUTHENTIK_SOURCES_SCIM, AUTHENTIK_SOURCES_TELEGRAM, AUTHENTIK_STAGES_AUTHENTICATOR, AUTHENTIK_STAGES_AUTHENTICATOR_DUO, AUTHENTIK_STAGES_AUTHENTICATOR_EMAIL, AUTHENTIK_STAGES_AUTHENTICATOR_SMS, AUTHENTIK_STAGES_AUTHENTICATOR_STATIC, AUTHENTIK_STAGES_AUTHENTICATOR_TOTP, AUTHENTIK_STAGES_AUTHENTICATOR_VALIDATE, AUTHENTIK_STAGES_AUTHENTICATOR_WEBAUTHN, AUTHENTIK_STAGES_CAPTCHA, AUTHENTIK_STAGES_CONSENT, AUTHENTIK_STAGES_DENY, AUTHENTIK_STAGES_DUMMY, AUTHENTIK_STAGES_EMAIL, AUTHENTIK_STAGES_IDENTIFICATION, AUTHENTIK_STAGES_INVITATION, AUTHENTIK_STAGES_PASSWORD, AUTHENTIK_STAGES_PROMPT, AUTHENTIK_STAGES_REDIRECT, AUTHENTIK_STAGES_USER_DELETE, AUTHENTIK_STAGES_USER_LOGIN, AUTHENTIK_STAGES_USER_LOGOUT, AUTHENTIK_STAGES_USER_WRITE, AUTHENTIK_TASKS_SCHEDULES, AUTHENTIK_BRANDS, AUTHENTIK_BLUEPRINTS, AUTHENTIK_ENTERPRISE_AUDIT, AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_AGENT, AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_FLEET, AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_GOOGLE_CHROME, AUTHENTIK_ENTERPRISE_LIFECYCLE, AUTHENTIK_ENTERPRISE_POLICIES_UNIQUE_PASSWORD, AUTHENTIK_ENTERPRISE_PROVIDERS_GOOGLE_WORKSPACE, AUTHENTIK_ENTERPRISE_PROVIDERS_MICROSOFT_ENTRA, AUTHENTIK_ENTERPRISE_PROVIDERS_RADIUS, AUTHENTIK_ENTERPRISE_PROVIDERS_SCIM, AUTHENTIK_ENTERPRISE_PROVIDERS_SSF, AUTHENTIK_ENTERPRISE_PROVIDERS_WS_FEDERATION, AUTHENTIK_ENTERPRISE_REPORTS, AUTHENTIK_ENTERPRISE_STAGES_ACCOUNT_LOCKDOWN, AUTHENTIK_ENTERPRISE_STAGES_AUTHENTICATOR_ENDPOINT_GDTC, AUTHENTIK_ENTERPRISE_STAGES_MTLS, AUTHENTIK_ENTERPRISE_STAGES_SOURCE].freeze
94
95
  end
95
96
 
96
97
  # Builds the enum from string
@@ -0,0 +1,246 @@
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 AppleIndependentSecureEnclave < ApiModelBase
12
+ attr_accessor :uuid
13
+
14
+ # The user that this device belongs to.
15
+ attr_accessor :user
16
+
17
+ attr_accessor :apple_secure_enclave_key
18
+
19
+ attr_accessor :apple_enclave_key_id
20
+
21
+ attr_accessor :device_type
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'uuid' => :'uuid',
27
+ :'user' => :'user',
28
+ :'apple_secure_enclave_key' => :'apple_secure_enclave_key',
29
+ :'apple_enclave_key_id' => :'apple_enclave_key_id',
30
+ :'device_type' => :'device_type'
31
+ }
32
+ end
33
+
34
+ # Returns attribute mapping this model knows about
35
+ def self.acceptable_attribute_map
36
+ attribute_map
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ acceptable_attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'uuid' => :'String',
48
+ :'user' => :'Integer',
49
+ :'apple_secure_enclave_key' => :'String',
50
+ :'apple_enclave_key_id' => :'String',
51
+ :'device_type' => :'String'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ ])
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::AppleIndependentSecureEnclave` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ acceptable_attribute_map = self.class.acceptable_attribute_map
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!acceptable_attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::AppleIndependentSecureEnclave`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'uuid')
78
+ self.uuid = attributes[:'uuid']
79
+ end
80
+
81
+ if attributes.key?(:'user')
82
+ self.user = attributes[:'user']
83
+ else
84
+ self.user = nil
85
+ end
86
+
87
+ if attributes.key?(:'apple_secure_enclave_key')
88
+ self.apple_secure_enclave_key = attributes[:'apple_secure_enclave_key']
89
+ else
90
+ self.apple_secure_enclave_key = nil
91
+ end
92
+
93
+ if attributes.key?(:'apple_enclave_key_id')
94
+ self.apple_enclave_key_id = attributes[:'apple_enclave_key_id']
95
+ else
96
+ self.apple_enclave_key_id = nil
97
+ end
98
+
99
+ if attributes.key?(:'device_type')
100
+ self.device_type = attributes[:'device_type']
101
+ else
102
+ self.device_type = nil
103
+ end
104
+ end
105
+
106
+ # Show invalid properties with the reasons. Usually used together with valid?
107
+ # @return Array for valid properties with the reasons
108
+ def list_invalid_properties
109
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
110
+ invalid_properties = Array.new
111
+ if @user.nil?
112
+ invalid_properties.push('invalid value for "user", user cannot be nil.')
113
+ end
114
+
115
+ if @apple_secure_enclave_key.nil?
116
+ invalid_properties.push('invalid value for "apple_secure_enclave_key", apple_secure_enclave_key cannot be nil.')
117
+ end
118
+
119
+ if @apple_enclave_key_id.nil?
120
+ invalid_properties.push('invalid value for "apple_enclave_key_id", apple_enclave_key_id cannot be nil.')
121
+ end
122
+
123
+ if @device_type.nil?
124
+ invalid_properties.push('invalid value for "device_type", device_type cannot be nil.')
125
+ end
126
+
127
+ invalid_properties
128
+ end
129
+
130
+ # Check to see if the all the properties in the model are valid
131
+ # @return true if the model is valid
132
+ def valid?
133
+ warn '[DEPRECATED] the `valid?` method is obsolete'
134
+ return false if @user.nil?
135
+ return false if @apple_secure_enclave_key.nil?
136
+ return false if @apple_enclave_key_id.nil?
137
+ return false if @device_type.nil?
138
+ true
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] user Value to be assigned
143
+ def user=(user)
144
+ if user.nil?
145
+ fail ArgumentError, 'user cannot be nil'
146
+ end
147
+
148
+ @user = user
149
+ end
150
+
151
+ # Custom attribute writer method with validation
152
+ # @param [Object] apple_secure_enclave_key Value to be assigned
153
+ def apple_secure_enclave_key=(apple_secure_enclave_key)
154
+ if apple_secure_enclave_key.nil?
155
+ fail ArgumentError, 'apple_secure_enclave_key cannot be nil'
156
+ end
157
+
158
+ @apple_secure_enclave_key = apple_secure_enclave_key
159
+ end
160
+
161
+ # Custom attribute writer method with validation
162
+ # @param [Object] apple_enclave_key_id Value to be assigned
163
+ def apple_enclave_key_id=(apple_enclave_key_id)
164
+ if apple_enclave_key_id.nil?
165
+ fail ArgumentError, 'apple_enclave_key_id cannot be nil'
166
+ end
167
+
168
+ @apple_enclave_key_id = apple_enclave_key_id
169
+ end
170
+
171
+ # Custom attribute writer method with validation
172
+ # @param [Object] device_type Value to be assigned
173
+ def device_type=(device_type)
174
+ if device_type.nil?
175
+ fail ArgumentError, 'device_type cannot be nil'
176
+ end
177
+
178
+ @device_type = device_type
179
+ end
180
+
181
+ # Checks equality by comparing each attribute.
182
+ # @param [Object] Object to be compared
183
+ def ==(o)
184
+ return true if self.equal?(o)
185
+ self.class == o.class &&
186
+ uuid == o.uuid &&
187
+ user == o.user &&
188
+ apple_secure_enclave_key == o.apple_secure_enclave_key &&
189
+ apple_enclave_key_id == o.apple_enclave_key_id &&
190
+ device_type == o.device_type
191
+ end
192
+
193
+ # @see the `==` method
194
+ # @param [Object] Object to be compared
195
+ def eql?(o)
196
+ self == o
197
+ end
198
+
199
+ # Calculates hash code according to all attributes.
200
+ # @return [Integer] Hash code
201
+ def hash
202
+ [uuid, user, apple_secure_enclave_key, apple_enclave_key_id, device_type].hash
203
+ end
204
+
205
+ # Builds the object from hash
206
+ # @param [Hash] attributes Model attributes in the form of hash
207
+ # @return [Object] Returns the model itself
208
+ def self.build_from_hash(attributes)
209
+ return nil unless attributes.is_a?(Hash)
210
+ attributes = attributes.transform_keys(&:to_sym)
211
+ transformed_hash = {}
212
+ openapi_types.each_pair do |key, type|
213
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
214
+ transformed_hash["#{key}"] = nil
215
+ elsif type =~ /\AArray<(.*)>/i
216
+ # check to ensure the input is an array given that the attribute
217
+ # is documented as an array but the input is not
218
+ if attributes[attribute_map[key]].is_a?(Array)
219
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
220
+ end
221
+ elsif !attributes[attribute_map[key]].nil?
222
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
223
+ end
224
+ end
225
+ new(transformed_hash)
226
+ end
227
+
228
+ # Returns the object in the form of hash
229
+ # @return [Hash] Returns the object in the form of hash
230
+ def to_hash
231
+ hash = {}
232
+ self.class.attribute_map.each_pair do |attr, param|
233
+ value = self.send(attr)
234
+ if value.nil?
235
+ is_nullable = self.class.openapi_nullable.include?(attr)
236
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
237
+ end
238
+
239
+ hash[param] = _to_hash(value)
240
+ end
241
+ hash
242
+ end
243
+
244
+ end
245
+
246
+ end