authentik-api 2026.2.3 → 2026.5.0.rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) 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/force_binding_enum.rb +34 -0
  53. data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
  54. data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
  55. data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
  56. data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
  57. data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
  58. data/lib/authentik/api/models/grant_types_enum.rb +39 -0
  59. data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
  60. data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
  61. data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
  62. data/lib/authentik/api/models/key_type_enum.rb +3 -3
  63. data/lib/authentik/api/models/lang_enum.rb +131 -0
  64. data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
  65. data/lib/authentik/api/models/logout_url.rb +209 -0
  66. data/lib/authentik/api/models/model_enum.rb +3 -1
  67. data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
  68. data/lib/authentik/api/models/notification_transport.rb +13 -2
  69. data/lib/authentik/api/models/notification_transport_request.rb +13 -2
  70. data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
  71. data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
  72. data/lib/authentik/api/models/operating_system.rb +0 -17
  73. data/lib/authentik/api/models/operating_system_request.rb +2 -9
  74. data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
  75. data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
  76. data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
  77. data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
  78. data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
  79. data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
  80. data/lib/authentik/api/models/patched_application_request.rb +14 -4
  81. data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
  82. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
  83. data/lib/authentik/api/models/patched_brand_request.rb +11 -1
  84. data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
  85. data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
  86. data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
  87. data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
  88. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
  89. data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
  90. data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
  91. data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
  92. data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
  93. data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
  94. data/lib/authentik/api/models/redirect_uri.rb +13 -4
  95. data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
  96. data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
  97. data/lib/authentik/api/models/related_rule.rb +250 -0
  98. data/lib/authentik/api/models/saml_provider.rb +98 -8
  99. data/lib/authentik/api/models/saml_provider_request.rb +17 -27
  100. data/lib/authentik/api/models/saml_source.rb +11 -1
  101. data/lib/authentik/api/models/saml_source_request.rb +11 -1
  102. data/lib/authentik/api/models/ssf_provider.rb +41 -4
  103. data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
  104. data/lib/authentik/api/models/ssf_stream.rb +10 -1
  105. data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
  106. data/lib/authentik/api/models/task.rb +1 -1
  107. data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
  108. data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
  109. data/lib/authentik/api/models/usage_enum.rb +33 -0
  110. data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
  111. data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
  112. data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
  113. data/lib/authentik/api/models/vendor_enum.rb +2 -1
  114. data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
  115. data/lib/authentik/api/version.rb +1 -1
  116. data/spec/api/admin_api_spec.rb +2 -2
  117. data/spec/api/core_api_spec.rb +27 -3
  118. data/spec/api/crypto_api_spec.rb +1 -1
  119. data/spec/api/endpoints_api_spec.rb +167 -0
  120. data/spec/api/events_api_spec.rb +33 -7
  121. data/spec/api/flows_api_spec.rb +4 -16
  122. data/spec/api/lifecycle_api_spec.rb +6 -3
  123. data/spec/api/managed_api_spec.rb +13 -0
  124. data/spec/api/policies_api_spec.rb +2 -1
  125. data/spec/api/providers_api_spec.rb +21 -19
  126. data/spec/api/schema_api_spec.rb +2 -2
  127. data/spec/api/sources_api_spec.rb +17 -16
  128. data/spec/api/ssf_api_spec.rb +12 -1
  129. data/spec/api/stages_api_spec.rb +117 -18
  130. data/spec/api/tasks_api_spec.rb +2 -2
  131. data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
  132. data/spec/models/account_lockdown_stage_spec.rb +96 -0
  133. data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
  134. data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
  135. data/spec/models/application_request_spec.rb +6 -0
  136. data/spec/models/application_spec.rb +6 -0
  137. data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
  138. data/spec/models/authenticator_validate_stage_spec.rb +30 -0
  139. data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
  140. data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
  141. data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
  142. data/spec/models/brand_request_spec.rb +6 -0
  143. data/spec/models/brand_spec.rb +6 -0
  144. data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
  145. data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
  146. data/spec/models/current_brand_flags_spec.rb +2 -2
  147. data/spec/models/current_brand_spec.rb +6 -0
  148. data/spec/models/event_matcher_policy_request_spec.rb +6 -0
  149. data/spec/models/event_matcher_policy_spec.rb +6 -0
  150. data/spec/models/event_stats_spec.rb +36 -0
  151. data/spec/models/force_binding_enum_spec.rb +24 -0
  152. data/spec/models/format_enum_spec.rb +24 -0
  153. data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
  154. data/spec/models/google_chrome_connector_request_spec.rb +48 -0
  155. data/spec/models/google_chrome_connector_spec.rb +78 -0
  156. data/spec/models/grant_types_enum_spec.rb +24 -0
  157. data/spec/models/group_ldap_source_connection_spec.rb +6 -0
  158. data/spec/models/invitation_send_email_request_spec.rb +48 -0
  159. data/spec/models/lang_enum_spec.rb +24 -0
  160. data/spec/models/lifecycle_iteration_spec.rb +2 -14
  161. data/spec/models/logout_url_spec.rb +60 -0
  162. data/spec/models/native_logout_challenge_spec.rb +13 -7
  163. data/spec/models/notification_transport_request_spec.rb +6 -0
  164. data/spec/models/notification_transport_spec.rb +6 -0
  165. data/spec/models/o_auth2_provider_request_spec.rb +6 -0
  166. data/spec/models/o_auth2_provider_spec.rb +6 -0
  167. data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
  168. data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
  169. data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
  170. data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
  171. data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
  172. data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
  173. data/spec/models/patched_application_request_spec.rb +6 -0
  174. data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
  175. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
  176. data/spec/models/patched_brand_request_spec.rb +6 -0
  177. data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
  178. data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
  179. data/spec/models/patched_notification_transport_request_spec.rb +6 -0
  180. data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
  181. data/spec/models/patched_saml_provider_request_spec.rb +7 -1
  182. data/spec/models/patched_saml_source_request_spec.rb +6 -0
  183. data/spec/models/patched_settings_request_flags_spec.rb +2 -2
  184. data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
  185. data/spec/models/redirect_uri_request_spec.rb +6 -0
  186. data/spec/models/redirect_uri_spec.rb +6 -0
  187. data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
  188. data/spec/models/related_rule_spec.rb +54 -0
  189. data/spec/models/saml_provider_request_spec.rb +7 -1
  190. data/spec/models/saml_provider_spec.rb +25 -1
  191. data/spec/models/saml_source_request_spec.rb +6 -0
  192. data/spec/models/saml_source_spec.rb +6 -0
  193. data/spec/models/ssf_provider_request_spec.rb +6 -0
  194. data/spec/models/ssf_provider_spec.rb +12 -0
  195. data/spec/models/ssf_stream_spec.rb +6 -0
  196. data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
  197. data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
  198. data/spec/models/transport_mode_enum_spec.rb +24 -0
  199. data/spec/models/usage_enum_spec.rb +24 -0
  200. data/spec/models/user_account_lockdown_request_spec.rb +30 -0
  201. data/spec/models/user_ldap_source_connection_spec.rb +6 -0
  202. data/spec/models/user_password_hash_set_request_spec.rb +30 -0
  203. data/spec/models/web_authn_hint_enum_spec.rb +24 -0
  204. data/spec/zeitwerk_spec.rb +34 -0
  205. metadata +113 -32
  206. data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
@@ -13,6 +13,483 @@ module Authentik::Api
13
13
  def initialize(api_client = ApiClient.default)
14
14
  @api_client = api_client
15
15
  end
16
+ # AccountLockdownStage Viewset
17
+ # @param account_lockdown_stage_request [AccountLockdownStageRequest]
18
+ # @param [Hash] opts the optional parameters
19
+ # @return [AccountLockdownStage]
20
+ def stages_account_lockdown_create(account_lockdown_stage_request, opts = {})
21
+ data, _status_code, _headers = stages_account_lockdown_create_with_http_info(account_lockdown_stage_request, opts)
22
+ data
23
+ end
24
+
25
+ # AccountLockdownStage Viewset
26
+ # @param account_lockdown_stage_request [AccountLockdownStageRequest]
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [Array<(AccountLockdownStage, Integer, Hash)>] AccountLockdownStage data, response status code and response headers
29
+ def stages_account_lockdown_create_with_http_info(account_lockdown_stage_request, opts = {})
30
+ if @api_client.config.debugging
31
+ @api_client.config.logger.debug 'Calling API: StagesApi.stages_account_lockdown_create ...'
32
+ end
33
+ # verify the required parameter 'account_lockdown_stage_request' is set
34
+ if @api_client.config.client_side_validation && account_lockdown_stage_request.nil?
35
+ fail ArgumentError, "Missing the required parameter 'account_lockdown_stage_request' when calling StagesApi.stages_account_lockdown_create"
36
+ end
37
+ # resource path
38
+ local_var_path = '/stages/account_lockdown/'
39
+
40
+ # query parameters
41
+ query_params = opts[:query_params] || {}
42
+
43
+ # header parameters
44
+ header_params = opts[:header_params] || {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
47
+ # HTTP header 'Content-Type'
48
+ content_type = @api_client.select_header_content_type(['application/json'])
49
+ if !content_type.nil?
50
+ header_params['Content-Type'] = content_type
51
+ end
52
+
53
+ # form parameters
54
+ form_params = opts[:form_params] || {}
55
+
56
+ # http body (model)
57
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(account_lockdown_stage_request)
58
+
59
+ # return_type
60
+ return_type = opts[:debug_return_type] || 'AccountLockdownStage'
61
+
62
+ # auth_names
63
+ auth_names = opts[:debug_auth_names] || ['authentik']
64
+
65
+ new_options = opts.merge(
66
+ :operation => :"StagesApi.stages_account_lockdown_create",
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => return_type
73
+ )
74
+
75
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: StagesApi#stages_account_lockdown_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+
82
+ # AccountLockdownStage Viewset
83
+ # @param stage_uuid [String] A UUID string identifying this Account Lockdown Stage.
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [nil]
86
+ def stages_account_lockdown_destroy(stage_uuid, opts = {})
87
+ stages_account_lockdown_destroy_with_http_info(stage_uuid, opts)
88
+ nil
89
+ end
90
+
91
+ # AccountLockdownStage Viewset
92
+ # @param stage_uuid [String] A UUID string identifying this Account Lockdown Stage.
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
95
+ def stages_account_lockdown_destroy_with_http_info(stage_uuid, opts = {})
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug 'Calling API: StagesApi.stages_account_lockdown_destroy ...'
98
+ end
99
+ # verify the required parameter 'stage_uuid' is set
100
+ if @api_client.config.client_side_validation && stage_uuid.nil?
101
+ fail ArgumentError, "Missing the required parameter 'stage_uuid' when calling StagesApi.stages_account_lockdown_destroy"
102
+ end
103
+ # resource path
104
+ local_var_path = '/stages/account_lockdown/{stage_uuid}/'.sub('{stage_uuid}', CGI.escape(stage_uuid.to_s))
105
+
106
+ # query parameters
107
+ query_params = opts[:query_params] || {}
108
+
109
+ # header parameters
110
+ header_params = opts[:header_params] || {}
111
+ # HTTP header 'Accept' (if needed)
112
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
113
+
114
+ # form parameters
115
+ form_params = opts[:form_params] || {}
116
+
117
+ # http body (model)
118
+ post_body = opts[:debug_body]
119
+
120
+ # return_type
121
+ return_type = opts[:debug_return_type]
122
+
123
+ # auth_names
124
+ auth_names = opts[:debug_auth_names] || ['authentik']
125
+
126
+ new_options = opts.merge(
127
+ :operation => :"StagesApi.stages_account_lockdown_destroy",
128
+ :header_params => header_params,
129
+ :query_params => query_params,
130
+ :form_params => form_params,
131
+ :body => post_body,
132
+ :auth_names => auth_names,
133
+ :return_type => return_type
134
+ )
135
+
136
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
137
+ if @api_client.config.debugging
138
+ @api_client.config.logger.debug "API called: StagesApi#stages_account_lockdown_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
139
+ end
140
+ return data, status_code, headers
141
+ end
142
+
143
+ # AccountLockdownStage Viewset
144
+ # @param [Hash] opts the optional parameters
145
+ # @option opts [Boolean] :deactivate_user
146
+ # @option opts [Boolean] :delete_sessions
147
+ # @option opts [String] :name
148
+ # @option opts [String] :ordering Which field to use when ordering the results.
149
+ # @option opts [Integer] :page A page number within the paginated result set.
150
+ # @option opts [Integer] :page_size Number of results to return per page.
151
+ # @option opts [Boolean] :revoke_tokens
152
+ # @option opts [String] :search A search term.
153
+ # @option opts [String] :self_service_completion_flow
154
+ # @option opts [Boolean] :set_unusable_password
155
+ # @option opts [String] :stage_uuid
156
+ # @return [PaginatedAccountLockdownStageList]
157
+ def stages_account_lockdown_list(opts = {})
158
+ data, _status_code, _headers = stages_account_lockdown_list_with_http_info(opts)
159
+ data
160
+ end
161
+
162
+ # AccountLockdownStage Viewset
163
+ # @param [Hash] opts the optional parameters
164
+ # @option opts [Boolean] :deactivate_user
165
+ # @option opts [Boolean] :delete_sessions
166
+ # @option opts [String] :name
167
+ # @option opts [String] :ordering Which field to use when ordering the results.
168
+ # @option opts [Integer] :page A page number within the paginated result set.
169
+ # @option opts [Integer] :page_size Number of results to return per page.
170
+ # @option opts [Boolean] :revoke_tokens
171
+ # @option opts [String] :search A search term.
172
+ # @option opts [String] :self_service_completion_flow
173
+ # @option opts [Boolean] :set_unusable_password
174
+ # @option opts [String] :stage_uuid
175
+ # @return [Array<(PaginatedAccountLockdownStageList, Integer, Hash)>] PaginatedAccountLockdownStageList data, response status code and response headers
176
+ def stages_account_lockdown_list_with_http_info(opts = {})
177
+ if @api_client.config.debugging
178
+ @api_client.config.logger.debug 'Calling API: StagesApi.stages_account_lockdown_list ...'
179
+ end
180
+ # resource path
181
+ local_var_path = '/stages/account_lockdown/'
182
+
183
+ # query parameters
184
+ query_params = opts[:query_params] || {}
185
+ query_params[:'deactivate_user'] = opts[:'deactivate_user'] if !opts[:'deactivate_user'].nil?
186
+ query_params[:'delete_sessions'] = opts[:'delete_sessions'] if !opts[:'delete_sessions'].nil?
187
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
188
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
189
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
190
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
191
+ query_params[:'revoke_tokens'] = opts[:'revoke_tokens'] if !opts[:'revoke_tokens'].nil?
192
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
193
+ query_params[:'self_service_completion_flow'] = opts[:'self_service_completion_flow'] if !opts[:'self_service_completion_flow'].nil?
194
+ query_params[:'set_unusable_password'] = opts[:'set_unusable_password'] if !opts[:'set_unusable_password'].nil?
195
+ query_params[:'stage_uuid'] = opts[:'stage_uuid'] if !opts[:'stage_uuid'].nil?
196
+
197
+ # header parameters
198
+ header_params = opts[:header_params] || {}
199
+ # HTTP header 'Accept' (if needed)
200
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
201
+
202
+ # form parameters
203
+ form_params = opts[:form_params] || {}
204
+
205
+ # http body (model)
206
+ post_body = opts[:debug_body]
207
+
208
+ # return_type
209
+ return_type = opts[:debug_return_type] || 'PaginatedAccountLockdownStageList'
210
+
211
+ # auth_names
212
+ auth_names = opts[:debug_auth_names] || ['authentik']
213
+
214
+ new_options = opts.merge(
215
+ :operation => :"StagesApi.stages_account_lockdown_list",
216
+ :header_params => header_params,
217
+ :query_params => query_params,
218
+ :form_params => form_params,
219
+ :body => post_body,
220
+ :auth_names => auth_names,
221
+ :return_type => return_type
222
+ )
223
+
224
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
225
+ if @api_client.config.debugging
226
+ @api_client.config.logger.debug "API called: StagesApi#stages_account_lockdown_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
227
+ end
228
+ return data, status_code, headers
229
+ end
230
+
231
+ # AccountLockdownStage Viewset
232
+ # @param stage_uuid [String] A UUID string identifying this Account Lockdown Stage.
233
+ # @param [Hash] opts the optional parameters
234
+ # @option opts [PatchedAccountLockdownStageRequest] :patched_account_lockdown_stage_request
235
+ # @return [AccountLockdownStage]
236
+ def stages_account_lockdown_partial_update(stage_uuid, opts = {})
237
+ data, _status_code, _headers = stages_account_lockdown_partial_update_with_http_info(stage_uuid, opts)
238
+ data
239
+ end
240
+
241
+ # AccountLockdownStage Viewset
242
+ # @param stage_uuid [String] A UUID string identifying this Account Lockdown Stage.
243
+ # @param [Hash] opts the optional parameters
244
+ # @option opts [PatchedAccountLockdownStageRequest] :patched_account_lockdown_stage_request
245
+ # @return [Array<(AccountLockdownStage, Integer, Hash)>] AccountLockdownStage data, response status code and response headers
246
+ def stages_account_lockdown_partial_update_with_http_info(stage_uuid, opts = {})
247
+ if @api_client.config.debugging
248
+ @api_client.config.logger.debug 'Calling API: StagesApi.stages_account_lockdown_partial_update ...'
249
+ end
250
+ # verify the required parameter 'stage_uuid' is set
251
+ if @api_client.config.client_side_validation && stage_uuid.nil?
252
+ fail ArgumentError, "Missing the required parameter 'stage_uuid' when calling StagesApi.stages_account_lockdown_partial_update"
253
+ end
254
+ # resource path
255
+ local_var_path = '/stages/account_lockdown/{stage_uuid}/'.sub('{stage_uuid}', CGI.escape(stage_uuid.to_s))
256
+
257
+ # query parameters
258
+ query_params = opts[:query_params] || {}
259
+
260
+ # header parameters
261
+ header_params = opts[:header_params] || {}
262
+ # HTTP header 'Accept' (if needed)
263
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
264
+ # HTTP header 'Content-Type'
265
+ content_type = @api_client.select_header_content_type(['application/json'])
266
+ if !content_type.nil?
267
+ header_params['Content-Type'] = content_type
268
+ end
269
+
270
+ # form parameters
271
+ form_params = opts[:form_params] || {}
272
+
273
+ # http body (model)
274
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_account_lockdown_stage_request'])
275
+
276
+ # return_type
277
+ return_type = opts[:debug_return_type] || 'AccountLockdownStage'
278
+
279
+ # auth_names
280
+ auth_names = opts[:debug_auth_names] || ['authentik']
281
+
282
+ new_options = opts.merge(
283
+ :operation => :"StagesApi.stages_account_lockdown_partial_update",
284
+ :header_params => header_params,
285
+ :query_params => query_params,
286
+ :form_params => form_params,
287
+ :body => post_body,
288
+ :auth_names => auth_names,
289
+ :return_type => return_type
290
+ )
291
+
292
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
293
+ if @api_client.config.debugging
294
+ @api_client.config.logger.debug "API called: StagesApi#stages_account_lockdown_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
295
+ end
296
+ return data, status_code, headers
297
+ end
298
+
299
+ # AccountLockdownStage Viewset
300
+ # @param stage_uuid [String] A UUID string identifying this Account Lockdown Stage.
301
+ # @param [Hash] opts the optional parameters
302
+ # @return [AccountLockdownStage]
303
+ def stages_account_lockdown_retrieve(stage_uuid, opts = {})
304
+ data, _status_code, _headers = stages_account_lockdown_retrieve_with_http_info(stage_uuid, opts)
305
+ data
306
+ end
307
+
308
+ # AccountLockdownStage Viewset
309
+ # @param stage_uuid [String] A UUID string identifying this Account Lockdown Stage.
310
+ # @param [Hash] opts the optional parameters
311
+ # @return [Array<(AccountLockdownStage, Integer, Hash)>] AccountLockdownStage data, response status code and response headers
312
+ def stages_account_lockdown_retrieve_with_http_info(stage_uuid, opts = {})
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug 'Calling API: StagesApi.stages_account_lockdown_retrieve ...'
315
+ end
316
+ # verify the required parameter 'stage_uuid' is set
317
+ if @api_client.config.client_side_validation && stage_uuid.nil?
318
+ fail ArgumentError, "Missing the required parameter 'stage_uuid' when calling StagesApi.stages_account_lockdown_retrieve"
319
+ end
320
+ # resource path
321
+ local_var_path = '/stages/account_lockdown/{stage_uuid}/'.sub('{stage_uuid}', CGI.escape(stage_uuid.to_s))
322
+
323
+ # query parameters
324
+ query_params = opts[:query_params] || {}
325
+
326
+ # header parameters
327
+ header_params = opts[:header_params] || {}
328
+ # HTTP header 'Accept' (if needed)
329
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
330
+
331
+ # form parameters
332
+ form_params = opts[:form_params] || {}
333
+
334
+ # http body (model)
335
+ post_body = opts[:debug_body]
336
+
337
+ # return_type
338
+ return_type = opts[:debug_return_type] || 'AccountLockdownStage'
339
+
340
+ # auth_names
341
+ auth_names = opts[:debug_auth_names] || ['authentik']
342
+
343
+ new_options = opts.merge(
344
+ :operation => :"StagesApi.stages_account_lockdown_retrieve",
345
+ :header_params => header_params,
346
+ :query_params => query_params,
347
+ :form_params => form_params,
348
+ :body => post_body,
349
+ :auth_names => auth_names,
350
+ :return_type => return_type
351
+ )
352
+
353
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug "API called: StagesApi#stages_account_lockdown_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
356
+ end
357
+ return data, status_code, headers
358
+ end
359
+
360
+ # AccountLockdownStage Viewset
361
+ # @param stage_uuid [String] A UUID string identifying this Account Lockdown Stage.
362
+ # @param account_lockdown_stage_request [AccountLockdownStageRequest]
363
+ # @param [Hash] opts the optional parameters
364
+ # @return [AccountLockdownStage]
365
+ def stages_account_lockdown_update(stage_uuid, account_lockdown_stage_request, opts = {})
366
+ data, _status_code, _headers = stages_account_lockdown_update_with_http_info(stage_uuid, account_lockdown_stage_request, opts)
367
+ data
368
+ end
369
+
370
+ # AccountLockdownStage Viewset
371
+ # @param stage_uuid [String] A UUID string identifying this Account Lockdown Stage.
372
+ # @param account_lockdown_stage_request [AccountLockdownStageRequest]
373
+ # @param [Hash] opts the optional parameters
374
+ # @return [Array<(AccountLockdownStage, Integer, Hash)>] AccountLockdownStage data, response status code and response headers
375
+ def stages_account_lockdown_update_with_http_info(stage_uuid, account_lockdown_stage_request, opts = {})
376
+ if @api_client.config.debugging
377
+ @api_client.config.logger.debug 'Calling API: StagesApi.stages_account_lockdown_update ...'
378
+ end
379
+ # verify the required parameter 'stage_uuid' is set
380
+ if @api_client.config.client_side_validation && stage_uuid.nil?
381
+ fail ArgumentError, "Missing the required parameter 'stage_uuid' when calling StagesApi.stages_account_lockdown_update"
382
+ end
383
+ # verify the required parameter 'account_lockdown_stage_request' is set
384
+ if @api_client.config.client_side_validation && account_lockdown_stage_request.nil?
385
+ fail ArgumentError, "Missing the required parameter 'account_lockdown_stage_request' when calling StagesApi.stages_account_lockdown_update"
386
+ end
387
+ # resource path
388
+ local_var_path = '/stages/account_lockdown/{stage_uuid}/'.sub('{stage_uuid}', CGI.escape(stage_uuid.to_s))
389
+
390
+ # query parameters
391
+ query_params = opts[:query_params] || {}
392
+
393
+ # header parameters
394
+ header_params = opts[:header_params] || {}
395
+ # HTTP header 'Accept' (if needed)
396
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
397
+ # HTTP header 'Content-Type'
398
+ content_type = @api_client.select_header_content_type(['application/json'])
399
+ if !content_type.nil?
400
+ header_params['Content-Type'] = content_type
401
+ end
402
+
403
+ # form parameters
404
+ form_params = opts[:form_params] || {}
405
+
406
+ # http body (model)
407
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(account_lockdown_stage_request)
408
+
409
+ # return_type
410
+ return_type = opts[:debug_return_type] || 'AccountLockdownStage'
411
+
412
+ # auth_names
413
+ auth_names = opts[:debug_auth_names] || ['authentik']
414
+
415
+ new_options = opts.merge(
416
+ :operation => :"StagesApi.stages_account_lockdown_update",
417
+ :header_params => header_params,
418
+ :query_params => query_params,
419
+ :form_params => form_params,
420
+ :body => post_body,
421
+ :auth_names => auth_names,
422
+ :return_type => return_type
423
+ )
424
+
425
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
426
+ if @api_client.config.debugging
427
+ @api_client.config.logger.debug "API called: StagesApi#stages_account_lockdown_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
428
+ end
429
+ return data, status_code, headers
430
+ end
431
+
432
+ # Get a list of all objects that use this object
433
+ # @param stage_uuid [String] A UUID string identifying this Account Lockdown Stage.
434
+ # @param [Hash] opts the optional parameters
435
+ # @return [Array<UsedBy>]
436
+ def stages_account_lockdown_used_by_list(stage_uuid, opts = {})
437
+ data, _status_code, _headers = stages_account_lockdown_used_by_list_with_http_info(stage_uuid, opts)
438
+ data
439
+ end
440
+
441
+ # Get a list of all objects that use this object
442
+ # @param stage_uuid [String] A UUID string identifying this Account Lockdown Stage.
443
+ # @param [Hash] opts the optional parameters
444
+ # @return [Array<(Array<UsedBy>, Integer, Hash)>] Array<UsedBy> data, response status code and response headers
445
+ def stages_account_lockdown_used_by_list_with_http_info(stage_uuid, opts = {})
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug 'Calling API: StagesApi.stages_account_lockdown_used_by_list ...'
448
+ end
449
+ # verify the required parameter 'stage_uuid' is set
450
+ if @api_client.config.client_side_validation && stage_uuid.nil?
451
+ fail ArgumentError, "Missing the required parameter 'stage_uuid' when calling StagesApi.stages_account_lockdown_used_by_list"
452
+ end
453
+ # resource path
454
+ local_var_path = '/stages/account_lockdown/{stage_uuid}/used_by/'.sub('{stage_uuid}', CGI.escape(stage_uuid.to_s))
455
+
456
+ # query parameters
457
+ query_params = opts[:query_params] || {}
458
+
459
+ # header parameters
460
+ header_params = opts[:header_params] || {}
461
+ # HTTP header 'Accept' (if needed)
462
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
463
+
464
+ # form parameters
465
+ form_params = opts[:form_params] || {}
466
+
467
+ # http body (model)
468
+ post_body = opts[:debug_body]
469
+
470
+ # return_type
471
+ return_type = opts[:debug_return_type] || 'Array<UsedBy>'
472
+
473
+ # auth_names
474
+ auth_names = opts[:debug_auth_names] || ['authentik']
475
+
476
+ new_options = opts.merge(
477
+ :operation => :"StagesApi.stages_account_lockdown_used_by_list",
478
+ :header_params => header_params,
479
+ :query_params => query_params,
480
+ :form_params => form_params,
481
+ :body => post_body,
482
+ :auth_names => auth_names,
483
+ :return_type => return_type
484
+ )
485
+
486
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
487
+ if @api_client.config.debugging
488
+ @api_client.config.logger.debug "API called: StagesApi#stages_account_lockdown_used_by_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
489
+ end
490
+ return data, status_code, headers
491
+ end
492
+
16
493
  # Stage Viewset
17
494
  # @param stage_uuid [String] A UUID string identifying this stage.
18
495
  # @param [Hash] opts the optional parameters
@@ -2136,7 +2613,7 @@ module Authentik::Api
2136
2613
  # @option opts [String] :account_sid
2137
2614
  # @option opts [String] :auth
2138
2615
  # @option opts [String] :auth_password
2139
- # @option opts [String] :auth_type
2616
+ # @option opts [AuthTypeEnum] :auth_type
2140
2617
  # @option opts [String] :configure_flow
2141
2618
  # @option opts [String] :friendly_name
2142
2619
  # @option opts [String] :from_number
@@ -2145,7 +2622,7 @@ module Authentik::Api
2145
2622
  # @option opts [String] :ordering Which field to use when ordering the results.
2146
2623
  # @option opts [Integer] :page A page number within the paginated result set.
2147
2624
  # @option opts [Integer] :page_size Number of results to return per page.
2148
- # @option opts [String] :provider
2625
+ # @option opts [ProviderEnum] :provider
2149
2626
  # @option opts [String] :search A search term.
2150
2627
  # @option opts [String] :stage_uuid
2151
2628
  # @option opts [Boolean] :verify_only
@@ -2160,7 +2637,7 @@ module Authentik::Api
2160
2637
  # @option opts [String] :account_sid
2161
2638
  # @option opts [String] :auth
2162
2639
  # @option opts [String] :auth_password
2163
- # @option opts [String] :auth_type
2640
+ # @option opts [AuthTypeEnum] :auth_type
2164
2641
  # @option opts [String] :configure_flow
2165
2642
  # @option opts [String] :friendly_name
2166
2643
  # @option opts [String] :from_number
@@ -2169,7 +2646,7 @@ module Authentik::Api
2169
2646
  # @option opts [String] :ordering Which field to use when ordering the results.
2170
2647
  # @option opts [Integer] :page A page number within the paginated result set.
2171
2648
  # @option opts [Integer] :page_size Number of results to return per page.
2172
- # @option opts [String] :provider
2649
+ # @option opts [ProviderEnum] :provider
2173
2650
  # @option opts [String] :search A search term.
2174
2651
  # @option opts [String] :stage_uuid
2175
2652
  # @option opts [Boolean] :verify_only
@@ -2178,14 +2655,6 @@ module Authentik::Api
2178
2655
  if @api_client.config.debugging
2179
2656
  @api_client.config.logger.debug 'Calling API: StagesApi.stages_authenticator_sms_list ...'
2180
2657
  end
2181
- allowable_values = ["basic", "bearer"]
2182
- if @api_client.config.client_side_validation && opts[:'auth_type'] && !allowable_values.include?(opts[:'auth_type'])
2183
- fail ArgumentError, "invalid value for \"auth_type\", must be one of #{allowable_values}"
2184
- end
2185
- allowable_values = ["generic", "twilio"]
2186
- if @api_client.config.client_side_validation && opts[:'provider'] && !allowable_values.include?(opts[:'provider'])
2187
- fail ArgumentError, "invalid value for \"provider\", must be one of #{allowable_values}"
2188
- end
2189
2658
  # resource path
2190
2659
  local_var_path = '/stages/authenticator/sms/'
2191
2660
 
@@ -3108,7 +3577,7 @@ module Authentik::Api
3108
3577
  # AuthenticatorTOTPStage Viewset
3109
3578
  # @param [Hash] opts the optional parameters
3110
3579
  # @option opts [String] :configure_flow
3111
- # @option opts [String] :digits
3580
+ # @option opts [DigitsEnum] :digits
3112
3581
  # @option opts [String] :friendly_name
3113
3582
  # @option opts [String] :name
3114
3583
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -3125,7 +3594,7 @@ module Authentik::Api
3125
3594
  # AuthenticatorTOTPStage Viewset
3126
3595
  # @param [Hash] opts the optional parameters
3127
3596
  # @option opts [String] :configure_flow
3128
- # @option opts [String] :digits
3597
+ # @option opts [DigitsEnum] :digits
3129
3598
  # @option opts [String] :friendly_name
3130
3599
  # @option opts [String] :name
3131
3600
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -3138,10 +3607,6 @@ module Authentik::Api
3138
3607
  if @api_client.config.debugging
3139
3608
  @api_client.config.logger.debug 'Calling API: StagesApi.stages_authenticator_totp_list ...'
3140
3609
  end
3141
- allowable_values = ["6", "8"]
3142
- if @api_client.config.client_side_validation && opts[:'digits'] && !allowable_values.include?(opts[:'digits'])
3143
- fail ArgumentError, "invalid value for \"digits\", must be one of #{allowable_values}"
3144
- end
3145
3610
  # resource path
3146
3611
  local_var_path = '/stages/authenticator/totp/'
3147
3612
 
@@ -3584,7 +4049,7 @@ module Authentik::Api
3584
4049
  # @param [Hash] opts the optional parameters
3585
4050
  # @option opts [Array<String>] :configuration_stages
3586
4051
  # @option opts [String] :name
3587
- # @option opts [String] :not_configured_action
4052
+ # @option opts [NotConfiguredActionEnum] :not_configured_action
3588
4053
  # @option opts [String] :ordering Which field to use when ordering the results.
3589
4054
  # @option opts [Integer] :page A page number within the paginated result set.
3590
4055
  # @option opts [Integer] :page_size Number of results to return per page.
@@ -3599,7 +4064,7 @@ module Authentik::Api
3599
4064
  # @param [Hash] opts the optional parameters
3600
4065
  # @option opts [Array<String>] :configuration_stages
3601
4066
  # @option opts [String] :name
3602
- # @option opts [String] :not_configured_action
4067
+ # @option opts [NotConfiguredActionEnum] :not_configured_action
3603
4068
  # @option opts [String] :ordering Which field to use when ordering the results.
3604
4069
  # @option opts [Integer] :page A page number within the paginated result set.
3605
4070
  # @option opts [Integer] :page_size Number of results to return per page.
@@ -3609,10 +4074,6 @@ module Authentik::Api
3609
4074
  if @api_client.config.debugging
3610
4075
  @api_client.config.logger.debug 'Calling API: StagesApi.stages_authenticator_validate_list ...'
3611
4076
  end
3612
- allowable_values = ["configure", "deny", "skip"]
3613
- if @api_client.config.client_side_validation && opts[:'not_configured_action'] && !allowable_values.include?(opts[:'not_configured_action'])
3614
- fail ArgumentError, "invalid value for \"not_configured_action\", must be one of #{allowable_values}"
3615
- end
3616
4077
  # resource path
3617
4078
  local_var_path = '/stages/authenticator/validate/'
3618
4079
 
@@ -4188,19 +4649,17 @@ module Authentik::Api
4188
4649
 
4189
4650
  # AuthenticatorWebAuthnStage Viewset
4190
4651
  # @param [Hash] opts the optional parameters
4191
- # @option opts [String] :authenticator_attachment
4652
+ # @option opts [AuthenticatorAttachmentEnum] :authenticator_attachment
4192
4653
  # @option opts [String] :configure_flow
4193
4654
  # @option opts [Array<String>] :device_type_restrictions
4194
- # @option opts [String] :friendly_name
4195
4655
  # @option opts [Integer] :max_attempts
4196
4656
  # @option opts [String] :name
4197
4657
  # @option opts [String] :ordering Which field to use when ordering the results.
4198
4658
  # @option opts [Integer] :page A page number within the paginated result set.
4199
4659
  # @option opts [Integer] :page_size Number of results to return per page.
4200
- # @option opts [String] :resident_key_requirement
4660
+ # @option opts [UserVerificationEnum] :resident_key_requirement
4201
4661
  # @option opts [String] :search A search term.
4202
- # @option opts [String] :stage_uuid
4203
- # @option opts [String] :user_verification
4662
+ # @option opts [UserVerificationEnum] :user_verification
4204
4663
  # @return [PaginatedAuthenticatorWebAuthnStageList]
4205
4664
  def stages_authenticator_webauthn_list(opts = {})
4206
4665
  data, _status_code, _headers = stages_authenticator_webauthn_list_with_http_info(opts)
@@ -4209,36 +4668,22 @@ module Authentik::Api
4209
4668
 
4210
4669
  # AuthenticatorWebAuthnStage Viewset
4211
4670
  # @param [Hash] opts the optional parameters
4212
- # @option opts [String] :authenticator_attachment
4671
+ # @option opts [AuthenticatorAttachmentEnum] :authenticator_attachment
4213
4672
  # @option opts [String] :configure_flow
4214
4673
  # @option opts [Array<String>] :device_type_restrictions
4215
- # @option opts [String] :friendly_name
4216
4674
  # @option opts [Integer] :max_attempts
4217
4675
  # @option opts [String] :name
4218
4676
  # @option opts [String] :ordering Which field to use when ordering the results.
4219
4677
  # @option opts [Integer] :page A page number within the paginated result set.
4220
4678
  # @option opts [Integer] :page_size Number of results to return per page.
4221
- # @option opts [String] :resident_key_requirement
4679
+ # @option opts [UserVerificationEnum] :resident_key_requirement
4222
4680
  # @option opts [String] :search A search term.
4223
- # @option opts [String] :stage_uuid
4224
- # @option opts [String] :user_verification
4681
+ # @option opts [UserVerificationEnum] :user_verification
4225
4682
  # @return [Array<(PaginatedAuthenticatorWebAuthnStageList, Integer, Hash)>] PaginatedAuthenticatorWebAuthnStageList data, response status code and response headers
4226
4683
  def stages_authenticator_webauthn_list_with_http_info(opts = {})
4227
4684
  if @api_client.config.debugging
4228
4685
  @api_client.config.logger.debug 'Calling API: StagesApi.stages_authenticator_webauthn_list ...'
4229
4686
  end
4230
- allowable_values = ["cross-platform", "platform"]
4231
- if @api_client.config.client_side_validation && opts[:'authenticator_attachment'] && !allowable_values.include?(opts[:'authenticator_attachment'])
4232
- fail ArgumentError, "invalid value for \"authenticator_attachment\", must be one of #{allowable_values}"
4233
- end
4234
- allowable_values = ["discouraged", "preferred", "required"]
4235
- if @api_client.config.client_side_validation && opts[:'resident_key_requirement'] && !allowable_values.include?(opts[:'resident_key_requirement'])
4236
- fail ArgumentError, "invalid value for \"resident_key_requirement\", must be one of #{allowable_values}"
4237
- end
4238
- allowable_values = ["discouraged", "preferred", "required"]
4239
- if @api_client.config.client_side_validation && opts[:'user_verification'] && !allowable_values.include?(opts[:'user_verification'])
4240
- fail ArgumentError, "invalid value for \"user_verification\", must be one of #{allowable_values}"
4241
- end
4242
4687
  # resource path
4243
4688
  local_var_path = '/stages/authenticator/webauthn/'
4244
4689
 
@@ -4247,7 +4692,6 @@ module Authentik::Api
4247
4692
  query_params[:'authenticator_attachment'] = opts[:'authenticator_attachment'] if !opts[:'authenticator_attachment'].nil?
4248
4693
  query_params[:'configure_flow'] = opts[:'configure_flow'] if !opts[:'configure_flow'].nil?
4249
4694
  query_params[:'device_type_restrictions'] = @api_client.build_collection_param(opts[:'device_type_restrictions'], :multi) if !opts[:'device_type_restrictions'].nil?
4250
- query_params[:'friendly_name'] = opts[:'friendly_name'] if !opts[:'friendly_name'].nil?
4251
4695
  query_params[:'max_attempts'] = opts[:'max_attempts'] if !opts[:'max_attempts'].nil?
4252
4696
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
4253
4697
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -4255,7 +4699,6 @@ module Authentik::Api
4255
4699
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
4256
4700
  query_params[:'resident_key_requirement'] = opts[:'resident_key_requirement'] if !opts[:'resident_key_requirement'].nil?
4257
4701
  query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
4258
- query_params[:'stage_uuid'] = opts[:'stage_uuid'] if !opts[:'stage_uuid'].nil?
4259
4702
  query_params[:'user_verification'] = opts[:'user_verification'] if !opts[:'user_verification'].nil?
4260
4703
 
4261
4704
  # header parameters
@@ -5146,7 +5589,7 @@ module Authentik::Api
5146
5589
  # ConsentStage Viewset
5147
5590
  # @param [Hash] opts the optional parameters
5148
5591
  # @option opts [String] :consent_expire_in
5149
- # @option opts [String] :mode
5592
+ # @option opts [ConsentModeEnum] :mode
5150
5593
  # @option opts [String] :name
5151
5594
  # @option opts [String] :ordering Which field to use when ordering the results.
5152
5595
  # @option opts [Integer] :page A page number within the paginated result set.
@@ -5162,7 +5605,7 @@ module Authentik::Api
5162
5605
  # ConsentStage Viewset
5163
5606
  # @param [Hash] opts the optional parameters
5164
5607
  # @option opts [String] :consent_expire_in
5165
- # @option opts [String] :mode
5608
+ # @option opts [ConsentModeEnum] :mode
5166
5609
  # @option opts [String] :name
5167
5610
  # @option opts [String] :ordering Which field to use when ordering the results.
5168
5611
  # @option opts [Integer] :page A page number within the paginated result set.
@@ -5174,10 +5617,6 @@ module Authentik::Api
5174
5617
  if @api_client.config.debugging
5175
5618
  @api_client.config.logger.debug 'Calling API: StagesApi.stages_consent_list ...'
5176
5619
  end
5177
- allowable_values = ["always_require", "expiring", "permanent"]
5178
- if @api_client.config.client_side_validation && opts[:'mode'] && !allowable_values.include?(opts[:'mode'])
5179
- fail ArgumentError, "invalid value for \"mode\", must be one of #{allowable_values}"
5180
- end
5181
5620
  # resource path
5182
5621
  local_var_path = '/stages/consent/'
5183
5622
 
@@ -8248,6 +8687,78 @@ module Authentik::Api
8248
8687
  return data, status_code, headers
8249
8688
  end
8250
8689
 
8690
+ # Send invitation link via email to one or more addresses
8691
+ # @param invite_uuid [String] A UUID string identifying this Invitation.
8692
+ # @param invitation_send_email_request [InvitationSendEmailRequest]
8693
+ # @param [Hash] opts the optional parameters
8694
+ # @return [nil]
8695
+ def stages_invitation_invitations_send_email_create(invite_uuid, invitation_send_email_request, opts = {})
8696
+ stages_invitation_invitations_send_email_create_with_http_info(invite_uuid, invitation_send_email_request, opts)
8697
+ nil
8698
+ end
8699
+
8700
+ # Send invitation link via email to one or more addresses
8701
+ # @param invite_uuid [String] A UUID string identifying this Invitation.
8702
+ # @param invitation_send_email_request [InvitationSendEmailRequest]
8703
+ # @param [Hash] opts the optional parameters
8704
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
8705
+ def stages_invitation_invitations_send_email_create_with_http_info(invite_uuid, invitation_send_email_request, opts = {})
8706
+ if @api_client.config.debugging
8707
+ @api_client.config.logger.debug 'Calling API: StagesApi.stages_invitation_invitations_send_email_create ...'
8708
+ end
8709
+ # verify the required parameter 'invite_uuid' is set
8710
+ if @api_client.config.client_side_validation && invite_uuid.nil?
8711
+ fail ArgumentError, "Missing the required parameter 'invite_uuid' when calling StagesApi.stages_invitation_invitations_send_email_create"
8712
+ end
8713
+ # verify the required parameter 'invitation_send_email_request' is set
8714
+ if @api_client.config.client_side_validation && invitation_send_email_request.nil?
8715
+ fail ArgumentError, "Missing the required parameter 'invitation_send_email_request' when calling StagesApi.stages_invitation_invitations_send_email_create"
8716
+ end
8717
+ # resource path
8718
+ local_var_path = '/stages/invitation/invitations/{invite_uuid}/send_email/'.sub('{invite_uuid}', CGI.escape(invite_uuid.to_s))
8719
+
8720
+ # query parameters
8721
+ query_params = opts[:query_params] || {}
8722
+
8723
+ # header parameters
8724
+ header_params = opts[:header_params] || {}
8725
+ # HTTP header 'Accept' (if needed)
8726
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
8727
+ # HTTP header 'Content-Type'
8728
+ content_type = @api_client.select_header_content_type(['application/json'])
8729
+ if !content_type.nil?
8730
+ header_params['Content-Type'] = content_type
8731
+ end
8732
+
8733
+ # form parameters
8734
+ form_params = opts[:form_params] || {}
8735
+
8736
+ # http body (model)
8737
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(invitation_send_email_request)
8738
+
8739
+ # return_type
8740
+ return_type = opts[:debug_return_type]
8741
+
8742
+ # auth_names
8743
+ auth_names = opts[:debug_auth_names] || ['authentik']
8744
+
8745
+ new_options = opts.merge(
8746
+ :operation => :"StagesApi.stages_invitation_invitations_send_email_create",
8747
+ :header_params => header_params,
8748
+ :query_params => query_params,
8749
+ :form_params => form_params,
8750
+ :body => post_body,
8751
+ :auth_names => auth_names,
8752
+ :return_type => return_type
8753
+ )
8754
+
8755
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
8756
+ if @api_client.config.debugging
8757
+ @api_client.config.logger.debug "API called: StagesApi#stages_invitation_invitations_send_email_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8758
+ end
8759
+ return data, status_code, headers
8760
+ end
8761
+
8251
8762
  # Invitation Viewset
8252
8763
  # @param invite_uuid [String] A UUID string identifying this Invitation.
8253
8764
  # @param invitation_request [InvitationRequest]
@@ -8978,16 +9489,16 @@ module Authentik::Api
8978
9489
 
8979
9490
  # MutualTLSStage Viewset
8980
9491
  # @param [Hash] opts the optional parameters
8981
- # @option opts [String] :cert_attribute
9492
+ # @option opts [CertAttributeEnum] :cert_attribute
8982
9493
  # @option opts [Array<String>] :certificate_authorities
8983
- # @option opts [String] :mode
9494
+ # @option opts [StageModeEnum] :mode
8984
9495
  # @option opts [String] :name
8985
9496
  # @option opts [String] :ordering Which field to use when ordering the results.
8986
9497
  # @option opts [Integer] :page A page number within the paginated result set.
8987
9498
  # @option opts [Integer] :page_size Number of results to return per page.
8988
9499
  # @option opts [String] :search A search term.
8989
9500
  # @option opts [String] :stage_uuid
8990
- # @option opts [String] :user_attribute
9501
+ # @option opts [UserAttributeEnum] :user_attribute
8991
9502
  # @return [PaginatedMutualTLSStageList]
8992
9503
  def stages_mtls_list(opts = {})
8993
9504
  data, _status_code, _headers = stages_mtls_list_with_http_info(opts)
@@ -8996,33 +9507,21 @@ module Authentik::Api
8996
9507
 
8997
9508
  # MutualTLSStage Viewset
8998
9509
  # @param [Hash] opts the optional parameters
8999
- # @option opts [String] :cert_attribute
9510
+ # @option opts [CertAttributeEnum] :cert_attribute
9000
9511
  # @option opts [Array<String>] :certificate_authorities
9001
- # @option opts [String] :mode
9512
+ # @option opts [StageModeEnum] :mode
9002
9513
  # @option opts [String] :name
9003
9514
  # @option opts [String] :ordering Which field to use when ordering the results.
9004
9515
  # @option opts [Integer] :page A page number within the paginated result set.
9005
9516
  # @option opts [Integer] :page_size Number of results to return per page.
9006
9517
  # @option opts [String] :search A search term.
9007
9518
  # @option opts [String] :stage_uuid
9008
- # @option opts [String] :user_attribute
9519
+ # @option opts [UserAttributeEnum] :user_attribute
9009
9520
  # @return [Array<(PaginatedMutualTLSStageList, Integer, Hash)>] PaginatedMutualTLSStageList data, response status code and response headers
9010
9521
  def stages_mtls_list_with_http_info(opts = {})
9011
9522
  if @api_client.config.debugging
9012
9523
  @api_client.config.logger.debug 'Calling API: StagesApi.stages_mtls_list ...'
9013
9524
  end
9014
- allowable_values = ["common_name", "email", "subject"]
9015
- if @api_client.config.client_side_validation && opts[:'cert_attribute'] && !allowable_values.include?(opts[:'cert_attribute'])
9016
- fail ArgumentError, "invalid value for \"cert_attribute\", must be one of #{allowable_values}"
9017
- end
9018
- allowable_values = ["optional", "required"]
9019
- if @api_client.config.client_side_validation && opts[:'mode'] && !allowable_values.include?(opts[:'mode'])
9020
- fail ArgumentError, "invalid value for \"mode\", must be one of #{allowable_values}"
9021
- end
9022
- allowable_values = ["email", "username"]
9023
- if @api_client.config.client_side_validation && opts[:'user_attribute'] && !allowable_values.include?(opts[:'user_attribute'])
9024
- fail ArgumentError, "invalid value for \"user_attribute\", must be one of #{allowable_values}"
9025
- end
9026
9525
  # resource path
9027
9526
  local_var_path = '/stages/mtls/'
9028
9527
 
@@ -9940,7 +10439,7 @@ module Authentik::Api
9940
10439
  # @option opts [Integer] :page_size Number of results to return per page.
9941
10440
  # @option opts [String] :placeholder
9942
10441
  # @option opts [String] :search A search term.
9943
- # @option opts [String] :type
10442
+ # @option opts [PromptTypeEnum] :type
9944
10443
  # @return [PaginatedPromptList]
9945
10444
  def stages_prompt_prompts_list(opts = {})
9946
10445
  data, _status_code, _headers = stages_prompt_prompts_list_with_http_info(opts)
@@ -9957,16 +10456,12 @@ module Authentik::Api
9957
10456
  # @option opts [Integer] :page_size Number of results to return per page.
9958
10457
  # @option opts [String] :placeholder
9959
10458
  # @option opts [String] :search A search term.
9960
- # @option opts [String] :type
10459
+ # @option opts [PromptTypeEnum] :type
9961
10460
  # @return [Array<(PaginatedPromptList, Integer, Hash)>] PaginatedPromptList data, response status code and response headers
9962
10461
  def stages_prompt_prompts_list_with_http_info(opts = {})
9963
10462
  if @api_client.config.debugging
9964
10463
  @api_client.config.logger.debug 'Calling API: StagesApi.stages_prompt_prompts_list ...'
9965
10464
  end
9966
- allowable_values = ["ak-locale", "checkbox", "date", "date-time", "dropdown", "email", "file", "hidden", "number", "password", "radio-button-group", "separator", "static", "text", "text_area", "text_area_read_only", "text_read_only", "username"]
9967
- if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type'])
9968
- fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
9969
- end
9970
10465
  # resource path
9971
10466
  local_var_path = '/stages/prompt/prompts/'
9972
10467
 
@@ -12330,9 +12825,9 @@ module Authentik::Api
12330
12825
 
12331
12826
  # UserLoginStage Viewset
12332
12827
  # @param [Hash] opts the optional parameters
12333
- # @option opts [String] :geoip_binding Bind sessions created by this stage to the configured GeoIP location
12828
+ # @option opts [GeoipBindingEnum] :geoip_binding
12334
12829
  # @option opts [String] :name
12335
- # @option opts [String] :network_binding Bind sessions created by this stage to the configured network
12830
+ # @option opts [NetworkBindingEnum] :network_binding
12336
12831
  # @option opts [String] :ordering Which field to use when ordering the results.
12337
12832
  # @option opts [Integer] :page A page number within the paginated result set.
12338
12833
  # @option opts [Integer] :page_size Number of results to return per page.
@@ -12350,9 +12845,9 @@ module Authentik::Api
12350
12845
 
12351
12846
  # UserLoginStage Viewset
12352
12847
  # @param [Hash] opts the optional parameters
12353
- # @option opts [String] :geoip_binding Bind sessions created by this stage to the configured GeoIP location
12848
+ # @option opts [GeoipBindingEnum] :geoip_binding
12354
12849
  # @option opts [String] :name
12355
- # @option opts [String] :network_binding Bind sessions created by this stage to the configured network
12850
+ # @option opts [NetworkBindingEnum] :network_binding
12356
12851
  # @option opts [String] :ordering Which field to use when ordering the results.
12357
12852
  # @option opts [Integer] :page A page number within the paginated result set.
12358
12853
  # @option opts [Integer] :page_size Number of results to return per page.
@@ -12367,14 +12862,6 @@ module Authentik::Api
12367
12862
  if @api_client.config.debugging
12368
12863
  @api_client.config.logger.debug 'Calling API: StagesApi.stages_user_login_list ...'
12369
12864
  end
12370
- allowable_values = ["bind_continent", "bind_continent_country", "bind_continent_country_city", "no_binding"]
12371
- if @api_client.config.client_side_validation && opts[:'geoip_binding'] && !allowable_values.include?(opts[:'geoip_binding'])
12372
- fail ArgumentError, "invalid value for \"geoip_binding\", must be one of #{allowable_values}"
12373
- end
12374
- allowable_values = ["bind_asn", "bind_asn_network", "bind_asn_network_ip", "no_binding"]
12375
- if @api_client.config.client_side_validation && opts[:'network_binding'] && !allowable_values.include?(opts[:'network_binding'])
12376
- fail ArgumentError, "invalid value for \"network_binding\", must be one of #{allowable_values}"
12377
- end
12378
12865
  # resource path
12379
12866
  local_var_path = '/stages/user_login/'
12380
12867
 
@@ -13288,9 +13775,9 @@ module Authentik::Api
13288
13775
  # @option opts [Integer] :page_size Number of results to return per page.
13289
13776
  # @option opts [String] :search A search term.
13290
13777
  # @option opts [String] :stage_uuid
13291
- # @option opts [String] :user_creation_mode
13778
+ # @option opts [UserCreationModeEnum] :user_creation_mode
13292
13779
  # @option opts [String] :user_path_template
13293
- # @option opts [String] :user_type
13780
+ # @option opts [UserTypeEnum] :user_type
13294
13781
  # @return [PaginatedUserWriteStageList]
13295
13782
  def stages_user_write_list(opts = {})
13296
13783
  data, _status_code, _headers = stages_user_write_list_with_http_info(opts)
@@ -13307,22 +13794,14 @@ module Authentik::Api
13307
13794
  # @option opts [Integer] :page_size Number of results to return per page.
13308
13795
  # @option opts [String] :search A search term.
13309
13796
  # @option opts [String] :stage_uuid
13310
- # @option opts [String] :user_creation_mode
13797
+ # @option opts [UserCreationModeEnum] :user_creation_mode
13311
13798
  # @option opts [String] :user_path_template
13312
- # @option opts [String] :user_type
13799
+ # @option opts [UserTypeEnum] :user_type
13313
13800
  # @return [Array<(PaginatedUserWriteStageList, Integer, Hash)>] PaginatedUserWriteStageList data, response status code and response headers
13314
13801
  def stages_user_write_list_with_http_info(opts = {})
13315
13802
  if @api_client.config.debugging
13316
13803
  @api_client.config.logger.debug 'Calling API: StagesApi.stages_user_write_list ...'
13317
13804
  end
13318
- allowable_values = ["always_create", "create_when_required", "never_create"]
13319
- if @api_client.config.client_side_validation && opts[:'user_creation_mode'] && !allowable_values.include?(opts[:'user_creation_mode'])
13320
- fail ArgumentError, "invalid value for \"user_creation_mode\", must be one of #{allowable_values}"
13321
- end
13322
- allowable_values = ["external", "internal", "internal_service_account", "service_account"]
13323
- if @api_client.config.client_side_validation && opts[:'user_type'] && !allowable_values.include?(opts[:'user_type'])
13324
- fail ArgumentError, "invalid value for \"user_type\", must be one of #{allowable_values}"
13325
- end
13326
13805
  # resource path
13327
13806
  local_var_path = '/stages/user_write/'
13328
13807