authentik-api 2026.2.4 → 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 (264) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/README_API.md +66 -14
  4. data/lib/authentik/api/api/admin_api.rb +4 -12
  5. data/lib/authentik/api/api/core_api.rb +143 -18
  6. data/lib/authentik/api/api/crypto_api.rb +2 -6
  7. data/lib/authentik/api/api/endpoints_api.rb +1577 -656
  8. data/lib/authentik/api/api/events_api.rb +121 -38
  9. data/lib/authentik/api/api/flows_api.rb +8 -90
  10. data/lib/authentik/api/api/lifecycle_api.rb +22 -13
  11. data/lib/authentik/api/api/managed_api.rb +73 -0
  12. data/lib/authentik/api/api/policies_api.rb +5 -6
  13. data/lib/authentik/api/api/providers_api.rb +46 -108
  14. data/lib/authentik/api/api/rbac_api.rb +0 -5
  15. data/lib/authentik/api/api/schema_api.rb +4 -12
  16. data/lib/authentik/api/api/sources_api.rb +35 -96
  17. data/lib/authentik/api/api/ssf_api.rb +63 -6
  18. data/lib/authentik/api/api/stages_api.rb +581 -102
  19. data/lib/authentik/api/api/tasks_api.rb +5 -13
  20. data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
  21. data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
  22. data/lib/authentik/api/models/app_enum.rb +3 -2
  23. data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
  24. data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
  25. data/lib/authentik/api/models/application.rb +14 -4
  26. data/lib/authentik/api/models/application_request.rb +14 -4
  27. data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
  28. data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
  29. data/lib/authentik/api/models/authentication_enum.rb +2 -1
  30. data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
  31. data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
  32. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
  33. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
  34. data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
  35. data/lib/authentik/api/models/brand.rb +11 -1
  36. data/lib/authentik/api/models/brand_request.rb +11 -1
  37. data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
  38. data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
  39. data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
  40. data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
  41. data/lib/authentik/api/models/consent_stage.rb +1 -1
  42. data/lib/authentik/api/models/consent_stage_request.rb +1 -1
  43. data/lib/authentik/api/models/country_code_enum.rb +3 -3
  44. data/lib/authentik/api/models/current_brand.rb +10 -1
  45. data/lib/authentik/api/models/current_brand_flags.rb +31 -27
  46. data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
  47. data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
  48. data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
  49. data/lib/authentik/api/models/event_stats.rb +187 -0
  50. data/lib/authentik/api/models/event_volume.rb +1 -1
  51. data/lib/authentik/api/models/events_requested_enum.rb +7 -1
  52. data/lib/authentik/api/models/expiring_base_grant_model.rb +1 -1
  53. data/lib/authentik/api/models/force_binding_enum.rb +34 -0
  54. data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
  55. data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
  56. data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
  57. data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
  58. data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
  59. data/lib/authentik/api/models/grant_types_enum.rb +39 -0
  60. data/lib/authentik/api/models/group_kerberos_source_connection_request.rb +27 -1
  61. data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
  62. data/lib/authentik/api/models/group_ldap_source_connection_request.rb +27 -1
  63. data/lib/authentik/api/models/group_o_auth_source_connection_request.rb +27 -1
  64. data/lib/authentik/api/models/group_plex_source_connection_request.rb +27 -1
  65. data/lib/authentik/api/models/group_saml_source_connection_request.rb +27 -1
  66. data/lib/authentik/api/models/group_source_connection_request.rb +27 -1
  67. data/lib/authentik/api/models/group_telegram_source_connection_request.rb +27 -1
  68. data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
  69. data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
  70. data/lib/authentik/api/models/key_type_enum.rb +3 -3
  71. data/lib/authentik/api/models/lang_enum.rb +131 -0
  72. data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
  73. data/lib/authentik/api/models/logout_url.rb +209 -0
  74. data/lib/authentik/api/models/model_enum.rb +3 -1
  75. data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
  76. data/lib/authentik/api/models/notification_transport.rb +13 -2
  77. data/lib/authentik/api/models/notification_transport_request.rb +13 -2
  78. data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
  79. data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
  80. data/lib/authentik/api/models/operating_system.rb +0 -17
  81. data/lib/authentik/api/models/operating_system_request.rb +2 -9
  82. data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
  83. data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
  84. data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
  85. data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
  86. data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
  87. data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
  88. data/lib/authentik/api/models/patched_application_request.rb +14 -4
  89. data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
  90. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
  91. data/lib/authentik/api/models/patched_brand_request.rb +11 -1
  92. data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
  93. data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
  94. data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
  95. data/lib/authentik/api/models/patched_group_kerberos_source_connection_request.rb +10 -1
  96. data/lib/authentik/api/models/patched_group_ldap_source_connection_request.rb +10 -1
  97. data/lib/authentik/api/models/patched_group_o_auth_source_connection_request.rb +10 -1
  98. data/lib/authentik/api/models/patched_group_plex_source_connection_request.rb +10 -1
  99. data/lib/authentik/api/models/patched_group_saml_source_connection_request.rb +10 -1
  100. data/lib/authentik/api/models/patched_group_source_connection_request.rb +10 -1
  101. data/lib/authentik/api/models/patched_group_telegram_source_connection_request.rb +10 -1
  102. data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
  103. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
  104. data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
  105. data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
  106. data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
  107. data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
  108. data/lib/authentik/api/models/patched_user_kerberos_source_connection_request.rb +10 -1
  109. data/lib/authentik/api/models/patched_user_ldap_source_connection_request.rb +10 -1
  110. data/lib/authentik/api/models/patched_user_o_auth_source_connection_request.rb +10 -1
  111. data/lib/authentik/api/models/patched_user_plex_source_connection_request.rb +10 -1
  112. data/lib/authentik/api/models/patched_user_saml_source_connection_request.rb +10 -1
  113. data/lib/authentik/api/models/patched_user_source_connection_request.rb +10 -1
  114. data/lib/authentik/api/models/patched_user_telegram_source_connection_request.rb +10 -1
  115. data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
  116. data/lib/authentik/api/models/redirect_uri.rb +13 -4
  117. data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
  118. data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
  119. data/lib/authentik/api/models/related_rule.rb +250 -0
  120. data/lib/authentik/api/models/saml_provider.rb +98 -8
  121. data/lib/authentik/api/models/saml_provider_request.rb +17 -27
  122. data/lib/authentik/api/models/saml_source.rb +11 -1
  123. data/lib/authentik/api/models/saml_source_request.rb +11 -1
  124. data/lib/authentik/api/models/ssf_provider.rb +41 -4
  125. data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
  126. data/lib/authentik/api/models/ssf_stream.rb +10 -1
  127. data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
  128. data/lib/authentik/api/models/task.rb +1 -1
  129. data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
  130. data/lib/authentik/api/models/token_model.rb +1 -1
  131. data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
  132. data/lib/authentik/api/models/usage_enum.rb +33 -0
  133. data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
  134. data/lib/authentik/api/models/user_kerberos_source_connection_request.rb +27 -1
  135. data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
  136. data/lib/authentik/api/models/user_ldap_source_connection_request.rb +27 -1
  137. data/lib/authentik/api/models/user_o_auth_source_connection_request.rb +27 -1
  138. data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
  139. data/lib/authentik/api/models/user_plex_source_connection_request.rb +27 -1
  140. data/lib/authentik/api/models/user_saml_source_connection_request.rb +27 -1
  141. data/lib/authentik/api/models/user_source_connection_request.rb +27 -1
  142. data/lib/authentik/api/models/user_telegram_source_connection_request.rb +27 -1
  143. data/lib/authentik/api/models/vendor_enum.rb +2 -1
  144. data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
  145. data/lib/authentik/api/version.rb +1 -1
  146. data/spec/api/admin_api_spec.rb +2 -2
  147. data/spec/api/core_api_spec.rb +27 -3
  148. data/spec/api/crypto_api_spec.rb +1 -1
  149. data/spec/api/endpoints_api_spec.rb +167 -0
  150. data/spec/api/events_api_spec.rb +33 -7
  151. data/spec/api/flows_api_spec.rb +4 -16
  152. data/spec/api/lifecycle_api_spec.rb +6 -3
  153. data/spec/api/managed_api_spec.rb +13 -0
  154. data/spec/api/policies_api_spec.rb +2 -1
  155. data/spec/api/providers_api_spec.rb +21 -19
  156. data/spec/api/schema_api_spec.rb +2 -2
  157. data/spec/api/sources_api_spec.rb +17 -16
  158. data/spec/api/ssf_api_spec.rb +12 -1
  159. data/spec/api/stages_api_spec.rb +117 -18
  160. data/spec/api/tasks_api_spec.rb +2 -2
  161. data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
  162. data/spec/models/account_lockdown_stage_spec.rb +96 -0
  163. data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
  164. data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
  165. data/spec/models/application_request_spec.rb +6 -0
  166. data/spec/models/application_spec.rb +6 -0
  167. data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
  168. data/spec/models/authenticator_validate_stage_spec.rb +30 -0
  169. data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
  170. data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
  171. data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
  172. data/spec/models/brand_request_spec.rb +6 -0
  173. data/spec/models/brand_spec.rb +6 -0
  174. data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
  175. data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
  176. data/spec/models/current_brand_flags_spec.rb +2 -2
  177. data/spec/models/current_brand_spec.rb +6 -0
  178. data/spec/models/event_matcher_policy_request_spec.rb +6 -0
  179. data/spec/models/event_matcher_policy_spec.rb +6 -0
  180. data/spec/models/event_stats_spec.rb +36 -0
  181. data/spec/models/force_binding_enum_spec.rb +24 -0
  182. data/spec/models/format_enum_spec.rb +24 -0
  183. data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
  184. data/spec/models/google_chrome_connector_request_spec.rb +48 -0
  185. data/spec/models/google_chrome_connector_spec.rb +78 -0
  186. data/spec/models/grant_types_enum_spec.rb +24 -0
  187. data/spec/models/group_kerberos_source_connection_request_spec.rb +6 -0
  188. data/spec/models/group_ldap_source_connection_request_spec.rb +6 -0
  189. data/spec/models/group_ldap_source_connection_spec.rb +6 -0
  190. data/spec/models/group_o_auth_source_connection_request_spec.rb +6 -0
  191. data/spec/models/group_plex_source_connection_request_spec.rb +6 -0
  192. data/spec/models/group_saml_source_connection_request_spec.rb +6 -0
  193. data/spec/models/group_source_connection_request_spec.rb +6 -0
  194. data/spec/models/group_telegram_source_connection_request_spec.rb +6 -0
  195. data/spec/models/invitation_send_email_request_spec.rb +48 -0
  196. data/spec/models/lang_enum_spec.rb +24 -0
  197. data/spec/models/lifecycle_iteration_spec.rb +2 -14
  198. data/spec/models/logout_url_spec.rb +60 -0
  199. data/spec/models/native_logout_challenge_spec.rb +13 -7
  200. data/spec/models/notification_transport_request_spec.rb +6 -0
  201. data/spec/models/notification_transport_spec.rb +6 -0
  202. data/spec/models/o_auth2_provider_request_spec.rb +6 -0
  203. data/spec/models/o_auth2_provider_spec.rb +6 -0
  204. data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
  205. data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
  206. data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
  207. data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
  208. data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
  209. data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
  210. data/spec/models/patched_application_request_spec.rb +6 -0
  211. data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
  212. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
  213. data/spec/models/patched_brand_request_spec.rb +6 -0
  214. data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
  215. data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
  216. data/spec/models/patched_group_kerberos_source_connection_request_spec.rb +6 -0
  217. data/spec/models/patched_group_ldap_source_connection_request_spec.rb +6 -0
  218. data/spec/models/patched_group_o_auth_source_connection_request_spec.rb +6 -0
  219. data/spec/models/patched_group_plex_source_connection_request_spec.rb +6 -0
  220. data/spec/models/patched_group_saml_source_connection_request_spec.rb +6 -0
  221. data/spec/models/patched_group_source_connection_request_spec.rb +6 -0
  222. data/spec/models/patched_group_telegram_source_connection_request_spec.rb +6 -0
  223. data/spec/models/patched_notification_transport_request_spec.rb +6 -0
  224. data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
  225. data/spec/models/patched_saml_provider_request_spec.rb +7 -1
  226. data/spec/models/patched_saml_source_request_spec.rb +6 -0
  227. data/spec/models/patched_settings_request_flags_spec.rb +2 -2
  228. data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
  229. data/spec/models/patched_user_kerberos_source_connection_request_spec.rb +6 -0
  230. data/spec/models/patched_user_ldap_source_connection_request_spec.rb +6 -0
  231. data/spec/models/patched_user_o_auth_source_connection_request_spec.rb +6 -0
  232. data/spec/models/patched_user_plex_source_connection_request_spec.rb +6 -0
  233. data/spec/models/patched_user_saml_source_connection_request_spec.rb +6 -0
  234. data/spec/models/patched_user_source_connection_request_spec.rb +6 -0
  235. data/spec/models/patched_user_telegram_source_connection_request_spec.rb +6 -0
  236. data/spec/models/redirect_uri_request_spec.rb +6 -0
  237. data/spec/models/redirect_uri_spec.rb +6 -0
  238. data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
  239. data/spec/models/related_rule_spec.rb +54 -0
  240. data/spec/models/saml_provider_request_spec.rb +7 -1
  241. data/spec/models/saml_provider_spec.rb +25 -1
  242. data/spec/models/saml_source_request_spec.rb +6 -0
  243. data/spec/models/saml_source_spec.rb +6 -0
  244. data/spec/models/ssf_provider_request_spec.rb +6 -0
  245. data/spec/models/ssf_provider_spec.rb +12 -0
  246. data/spec/models/ssf_stream_spec.rb +6 -0
  247. data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
  248. data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
  249. data/spec/models/transport_mode_enum_spec.rb +24 -0
  250. data/spec/models/usage_enum_spec.rb +24 -0
  251. data/spec/models/user_account_lockdown_request_spec.rb +30 -0
  252. data/spec/models/user_kerberos_source_connection_request_spec.rb +6 -0
  253. data/spec/models/user_ldap_source_connection_request_spec.rb +6 -0
  254. data/spec/models/user_ldap_source_connection_spec.rb +6 -0
  255. data/spec/models/user_o_auth_source_connection_request_spec.rb +6 -0
  256. data/spec/models/user_password_hash_set_request_spec.rb +30 -0
  257. data/spec/models/user_plex_source_connection_request_spec.rb +6 -0
  258. data/spec/models/user_saml_source_connection_request_spec.rb +6 -0
  259. data/spec/models/user_source_connection_request_spec.rb +6 -0
  260. data/spec/models/user_telegram_source_connection_request_spec.rb +6 -0
  261. data/spec/models/web_authn_hint_enum_spec.rb +24 -0
  262. data/spec/zeitwerk_spec.rb +34 -0
  263. metadata +113 -32
  264. data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
@@ -16,6 +16,9 @@ module Authentik::Api
16
16
 
17
17
  attr_accessor :webhook_url
18
18
 
19
+ # When set, the selected ceritifcate is used to validate the certificate of the webhook server.
20
+ attr_accessor :webhook_ca
21
+
19
22
  # Customize the body of the request. Mapping should return data that is JSON-serializable.
20
23
  attr_accessor :webhook_mapping_body
21
24
 
@@ -57,6 +60,7 @@ module Authentik::Api
57
60
  :'name' => :'name',
58
61
  :'mode' => :'mode',
59
62
  :'webhook_url' => :'webhook_url',
63
+ :'webhook_ca' => :'webhook_ca',
60
64
  :'webhook_mapping_body' => :'webhook_mapping_body',
61
65
  :'webhook_mapping_headers' => :'webhook_mapping_headers',
62
66
  :'email_subject_prefix' => :'email_subject_prefix',
@@ -79,8 +83,9 @@ module Authentik::Api
79
83
  def self.openapi_types
80
84
  {
81
85
  :'name' => :'String',
82
- :'mode' => :'NotificationTransportModeEnum',
86
+ :'mode' => :'TransportModeEnum',
83
87
  :'webhook_url' => :'String',
88
+ :'webhook_ca' => :'String',
84
89
  :'webhook_mapping_body' => :'String',
85
90
  :'webhook_mapping_headers' => :'String',
86
91
  :'email_subject_prefix' => :'String',
@@ -92,6 +97,7 @@ module Authentik::Api
92
97
  # List of attributes with nullable: true
93
98
  def self.openapi_nullable
94
99
  Set.new([
100
+ :'webhook_ca',
95
101
  :'webhook_mapping_body',
96
102
  :'webhook_mapping_headers',
97
103
  ])
@@ -127,6 +133,10 @@ module Authentik::Api
127
133
  self.webhook_url = attributes[:'webhook_url']
128
134
  end
129
135
 
136
+ if attributes.key?(:'webhook_ca')
137
+ self.webhook_ca = attributes[:'webhook_ca']
138
+ end
139
+
130
140
  if attributes.key?(:'webhook_mapping_body')
131
141
  self.webhook_mapping_body = attributes[:'webhook_mapping_body']
132
142
  end
@@ -214,6 +224,7 @@ module Authentik::Api
214
224
  name == o.name &&
215
225
  mode == o.mode &&
216
226
  webhook_url == o.webhook_url &&
227
+ webhook_ca == o.webhook_ca &&
217
228
  webhook_mapping_body == o.webhook_mapping_body &&
218
229
  webhook_mapping_headers == o.webhook_mapping_headers &&
219
230
  email_subject_prefix == o.email_subject_prefix &&
@@ -230,7 +241,7 @@ module Authentik::Api
230
241
  # Calculates hash code according to all attributes.
231
242
  # @return [Integer] Hash code
232
243
  def hash
233
- [name, mode, webhook_url, webhook_mapping_body, webhook_mapping_headers, email_subject_prefix, email_template, send_once].hash
244
+ [name, mode, webhook_url, webhook_ca, webhook_mapping_body, webhook_mapping_headers, email_subject_prefix, email_template, send_once].hash
234
245
  end
235
246
 
236
247
  # Builds the object from hash
@@ -52,6 +52,8 @@ module Authentik::Api
52
52
  # Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
53
53
  attr_accessor :client_type
54
54
 
55
+ attr_accessor :grant_types
56
+
55
57
  attr_accessor :client_id
56
58
 
57
59
  attr_accessor :client_secret
@@ -134,6 +136,7 @@ module Authentik::Api
134
136
  :'verbose_name_plural' => :'verbose_name_plural',
135
137
  :'meta_model_name' => :'meta_model_name',
136
138
  :'client_type' => :'client_type',
139
+ :'grant_types' => :'grant_types',
137
140
  :'client_id' => :'client_id',
138
141
  :'client_secret' => :'client_secret',
139
142
  :'access_code_validity' => :'access_code_validity',
@@ -181,6 +184,7 @@ module Authentik::Api
181
184
  :'verbose_name_plural' => :'String',
182
185
  :'meta_model_name' => :'String',
183
186
  :'client_type' => :'ClientTypeEnum',
187
+ :'grant_types' => :'Array<GrantTypesEnum>',
184
188
  :'client_id' => :'String',
185
189
  :'client_secret' => :'String',
186
190
  :'access_code_validity' => :'String',
@@ -315,6 +319,12 @@ module Authentik::Api
315
319
  self.client_type = attributes[:'client_type']
316
320
  end
317
321
 
322
+ if attributes.key?(:'grant_types')
323
+ if (value = attributes[:'grant_types']).is_a?(Array)
324
+ self.grant_types = value
325
+ end
326
+ end
327
+
318
328
  if attributes.key?(:'client_id')
319
329
  self.client_id = attributes[:'client_id']
320
330
  end
@@ -596,6 +606,7 @@ module Authentik::Api
596
606
  verbose_name_plural == o.verbose_name_plural &&
597
607
  meta_model_name == o.meta_model_name &&
598
608
  client_type == o.client_type &&
609
+ grant_types == o.grant_types &&
599
610
  client_id == o.client_id &&
600
611
  client_secret == o.client_secret &&
601
612
  access_code_validity == o.access_code_validity &&
@@ -623,7 +634,7 @@ module Authentik::Api
623
634
  # Calculates hash code according to all attributes.
624
635
  # @return [Integer] Hash code
625
636
  def hash
626
- [pk, name, authentication_flow, authorization_flow, invalidation_flow, property_mappings, component, assigned_application_slug, assigned_application_name, assigned_backchannel_application_slug, assigned_backchannel_application_name, verbose_name, verbose_name_plural, meta_model_name, client_type, client_id, client_secret, access_code_validity, access_token_validity, refresh_token_validity, refresh_token_threshold, include_claims_in_id_token, signing_key, encryption_key, redirect_uris, logout_uri, logout_method, sub_mode, issuer_mode, jwt_federation_sources, jwt_federation_providers].hash
637
+ [pk, name, authentication_flow, authorization_flow, invalidation_flow, property_mappings, component, assigned_application_slug, assigned_application_name, assigned_backchannel_application_slug, assigned_backchannel_application_name, verbose_name, verbose_name_plural, meta_model_name, client_type, grant_types, client_id, client_secret, access_code_validity, access_token_validity, refresh_token_validity, refresh_token_threshold, include_claims_in_id_token, signing_key, encryption_key, redirect_uris, logout_uri, logout_method, sub_mode, issuer_mode, jwt_federation_sources, jwt_federation_providers].hash
627
638
  end
628
639
 
629
640
  # Builds the object from hash
@@ -26,6 +26,8 @@ module Authentik::Api
26
26
  # Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
27
27
  attr_accessor :client_type
28
28
 
29
+ attr_accessor :grant_types
30
+
29
31
  attr_accessor :client_id
30
32
 
31
33
  attr_accessor :client_secret
@@ -99,6 +101,7 @@ module Authentik::Api
99
101
  :'invalidation_flow' => :'invalidation_flow',
100
102
  :'property_mappings' => :'property_mappings',
101
103
  :'client_type' => :'client_type',
104
+ :'grant_types' => :'grant_types',
102
105
  :'client_id' => :'client_id',
103
106
  :'client_secret' => :'client_secret',
104
107
  :'access_code_validity' => :'access_code_validity',
@@ -137,6 +140,7 @@ module Authentik::Api
137
140
  :'invalidation_flow' => :'String',
138
141
  :'property_mappings' => :'Array<String>',
139
142
  :'client_type' => :'ClientTypeEnum',
143
+ :'grant_types' => :'Array<GrantTypesEnum>',
140
144
  :'client_id' => :'String',
141
145
  :'client_secret' => :'String',
142
146
  :'access_code_validity' => :'String',
@@ -213,6 +217,12 @@ module Authentik::Api
213
217
  self.client_type = attributes[:'client_type']
214
218
  end
215
219
 
220
+ if attributes.key?(:'grant_types')
221
+ if (value = attributes[:'grant_types']).is_a?(Array)
222
+ self.grant_types = value
223
+ end
224
+ end
225
+
216
226
  if attributes.key?(:'client_id')
217
227
  self.client_id = attributes[:'client_id']
218
228
  end
@@ -504,6 +514,7 @@ module Authentik::Api
504
514
  invalidation_flow == o.invalidation_flow &&
505
515
  property_mappings == o.property_mappings &&
506
516
  client_type == o.client_type &&
517
+ grant_types == o.grant_types &&
507
518
  client_id == o.client_id &&
508
519
  client_secret == o.client_secret &&
509
520
  access_code_validity == o.access_code_validity &&
@@ -531,7 +542,7 @@ module Authentik::Api
531
542
  # Calculates hash code according to all attributes.
532
543
  # @return [Integer] Hash code
533
544
  def hash
534
- [name, authentication_flow, authorization_flow, invalidation_flow, property_mappings, client_type, client_id, client_secret, access_code_validity, access_token_validity, refresh_token_validity, refresh_token_threshold, include_claims_in_id_token, signing_key, encryption_key, redirect_uris, logout_uri, logout_method, sub_mode, issuer_mode, jwt_federation_sources, jwt_federation_providers].hash
545
+ [name, authentication_flow, authorization_flow, invalidation_flow, property_mappings, client_type, grant_types, client_id, client_secret, access_code_validity, access_token_validity, refresh_token_validity, refresh_token_threshold, include_claims_in_id_token, signing_key, encryption_key, redirect_uris, logout_uri, logout_method, sub_mode, issuer_mode, jwt_federation_sources, jwt_federation_providers].hash
535
546
  end
536
547
 
537
548
  # Builds the object from hash
@@ -110,8 +110,6 @@ module Authentik::Api
110
110
 
111
111
  if attributes.key?(:'arch')
112
112
  self.arch = attributes[:'arch']
113
- else
114
- self.arch = nil
115
113
  end
116
114
  end
117
115
 
@@ -124,10 +122,6 @@ module Authentik::Api
124
122
  invalid_properties.push('invalid value for "family", family cannot be nil.')
125
123
  end
126
124
 
127
- if @arch.nil?
128
- invalid_properties.push('invalid value for "arch", arch cannot be nil.')
129
- end
130
-
131
125
  invalid_properties
132
126
  end
133
127
 
@@ -136,7 +130,6 @@ module Authentik::Api
136
130
  def valid?
137
131
  warn '[DEPRECATED] the `valid?` method is obsolete'
138
132
  return false if @family.nil?
139
- return false if @arch.nil?
140
133
  true
141
134
  end
142
135
 
@@ -150,16 +143,6 @@ module Authentik::Api
150
143
  @family = family
151
144
  end
152
145
 
153
- # Custom attribute writer method with validation
154
- # @param [Object] arch Value to be assigned
155
- def arch=(arch)
156
- if arch.nil?
157
- fail ArgumentError, 'arch cannot be nil'
158
- end
159
-
160
- @arch = arch
161
- end
162
-
163
146
  # Checks equality by comparing each attribute.
164
147
  # @param [Object] Object to be compared
165
148
  def ==(o)
@@ -110,8 +110,6 @@ module Authentik::Api
110
110
 
111
111
  if attributes.key?(:'arch')
112
112
  self.arch = attributes[:'arch']
113
- else
114
- self.arch = nil
115
113
  end
116
114
  end
117
115
 
@@ -132,11 +130,7 @@ module Authentik::Api
132
130
  invalid_properties.push('invalid value for "version", the character length must be greater than or equal to 1.')
133
131
  end
134
132
 
135
- if @arch.nil?
136
- invalid_properties.push('invalid value for "arch", arch cannot be nil.')
137
- end
138
-
139
- if @arch.to_s.length < 1
133
+ if !@arch.nil? && @arch.to_s.length < 1
140
134
  invalid_properties.push('invalid value for "arch", the character length must be greater than or equal to 1.')
141
135
  end
142
136
 
@@ -150,8 +144,7 @@ module Authentik::Api
150
144
  return false if @family.nil?
151
145
  return false if !@name.nil? && @name.to_s.length < 1
152
146
  return false if !@version.nil? && @version.to_s.length < 1
153
- return false if @arch.nil?
154
- return false if @arch.to_s.length < 1
147
+ return false if !@arch.nil? && @arch.to_s.length < 1
155
148
  true
156
149
  end
157
150
 
@@ -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 PaginatedAccountLockdownStageList < 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<AccountLockdownStage>',
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::PaginatedAccountLockdownStageList` 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::PaginatedAccountLockdownStageList`. 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
@@ -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 PaginatedAppleIndependentSecureEnclaveList < 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<AppleIndependentSecureEnclave>',
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::PaginatedAppleIndependentSecureEnclaveList` 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::PaginatedAppleIndependentSecureEnclaveList`. 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