authentik-api 2026.5.6 → 2026.8.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 (182) hide show
  1. checksums.yaml +4 -4
  2. data/README_API.md +104 -8
  3. data/lib/authentik/api/api/admin_api.rb +3 -0
  4. data/lib/authentik/api/api/core_api.rb +651 -27
  5. data/lib/authentik/api/api/endpoints_api.rb +7 -7
  6. data/lib/authentik/api/api/events_api.rb +35 -2
  7. data/lib/authentik/api/api/lifecycle_api.rb +258 -0
  8. data/lib/authentik/api/api/providers_api.rb +401 -0
  9. data/lib/authentik/api/api/requests_api.rb +1858 -0
  10. data/lib/authentik/api/api/sources_api.rb +6 -3
  11. data/lib/authentik/api/configuration.rb +14 -0
  12. data/lib/authentik/api/inflector.rb +2 -1
  13. data/lib/authentik/api/models/app_enum.rb +3 -1
  14. data/lib/authentik/api/models/application.rb +27 -1
  15. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +1 -11
  16. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +1 -11
  17. data/lib/authentik/api/models/brand.rb +21 -1
  18. data/lib/authentik/api/models/brand_request.rb +21 -1
  19. data/lib/authentik/api/models/captcha_stage.rb +32 -1
  20. data/lib/authentik/api/models/captcha_stage_request.rb +32 -1
  21. data/lib/authentik/api/models/compatibility_mode_enum.rb +2 -1
  22. data/lib/authentik/api/models/content_type.rb +30 -4
  23. data/lib/authentik/api/models/current_brand.rb +19 -1
  24. data/lib/authentik/api/models/current_brand_flags.rb +1 -55
  25. data/lib/authentik/api/models/device_user_binding.rb +39 -1
  26. data/lib/authentik/api/models/event_actions.rb +6 -1
  27. data/lib/authentik/api/models/grant_request.rb +382 -0
  28. data/lib/authentik/api/models/{reviewer_group.rb → grant_request_create_request.rb} +29 -42
  29. data/lib/authentik/api/models/{grant_types_enum.rb → grant_type_enum.rb} +5 -4
  30. data/lib/authentik/api/models/last_task_status_enum.rb +2 -1
  31. data/lib/authentik/api/models/ldap_outpost_config.rb +1 -1
  32. data/lib/authentik/api/models/ldap_source.rb +14 -4
  33. data/lib/authentik/api/models/ldap_source_request.rb +14 -4
  34. data/lib/authentik/api/models/lifecycle_rule.rb +2 -2
  35. data/lib/authentik/api/models/model_enum.rb +8 -1
  36. data/lib/authentik/api/models/notification_mode_enum.rb +35 -0
  37. data/lib/authentik/api/models/o_auth2_dynamic_client_registration.rb +291 -0
  38. data/lib/authentik/api/models/o_auth2_dynamic_client_registration_request.rb +303 -0
  39. data/lib/authentik/api/models/o_auth2_provider.rb +1 -1
  40. data/lib/authentik/api/models/o_auth2_provider_request.rb +1 -1
  41. data/lib/authentik/api/models/o_auth_source.rb +0 -60
  42. data/lib/authentik/api/models/o_auth_source_request.rb +0 -60
  43. data/lib/authentik/api/models/object_attribute.rb +420 -0
  44. data/lib/authentik/api/models/object_attribute_request.rb +358 -0
  45. data/lib/authentik/api/models/object_attribute_type_enum.rb +35 -0
  46. data/lib/authentik/api/models/offboarding_action_enum.rb +34 -0
  47. data/lib/authentik/api/models/offboarding_status_enum.rb +36 -0
  48. data/lib/authentik/api/models/paginated_grant_request_list.rb +214 -0
  49. data/lib/authentik/api/models/paginated_o_auth2_dynamic_client_registration_list.rb +214 -0
  50. data/lib/authentik/api/models/paginated_object_attribute_list.rb +214 -0
  51. data/lib/authentik/api/models/paginated_request_rule_binding_list.rb +214 -0
  52. data/lib/authentik/api/models/paginated_request_rule_child_binding_list.rb +214 -0
  53. data/lib/authentik/api/models/paginated_request_rule_list.rb +214 -0
  54. data/lib/authentik/api/models/paginated_requestable_target_list.rb +214 -0
  55. data/lib/authentik/api/models/paginated_user_offboarding_list.rb +214 -0
  56. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +1 -11
  57. data/lib/authentik/api/models/patched_brand_request.rb +21 -1
  58. data/lib/authentik/api/models/patched_captcha_stage_request.rb +32 -1
  59. data/lib/authentik/api/models/patched_grant_request_fulfill_request.rb +175 -0
  60. data/lib/authentik/api/models/patched_ldap_source_request.rb +14 -4
  61. data/lib/authentik/api/models/patched_o_auth2_dynamic_client_registration_request.rb +286 -0
  62. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +1 -1
  63. data/lib/authentik/api/models/patched_o_auth_source_request.rb +0 -60
  64. data/lib/authentik/api/models/patched_object_attribute_request.rb +320 -0
  65. data/lib/authentik/api/models/patched_request_rule_binding_request.rb +249 -0
  66. data/lib/authentik/api/models/patched_request_rule_child_binding_request.rb +159 -0
  67. data/lib/authentik/api/models/patched_request_rule_request.rb +277 -0
  68. data/lib/authentik/api/models/patched_saml_source_request.rb +8 -8
  69. data/lib/authentik/api/models/patched_settings_request.rb +30 -1
  70. data/lib/authentik/api/models/patched_settings_request_flags.rb +1 -1
  71. data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +11 -1
  72. data/lib/authentik/api/models/policy_binding.rb +42 -4
  73. data/lib/authentik/api/models/provider_type_enum.rb +2 -3
  74. data/lib/authentik/api/models/related_rule.rb +2 -2
  75. data/lib/authentik/api/models/related_target.rb +266 -0
  76. data/lib/authentik/api/models/request_content_type_enum.rb +34 -0
  77. data/lib/authentik/api/models/request_rule.rb +329 -0
  78. data/lib/authentik/api/models/request_rule_binding.rb +353 -0
  79. data/lib/authentik/api/models/request_rule_binding_request.rb +283 -0
  80. data/lib/authentik/api/models/{reviewer_user.rb → request_rule_child_binding.rb} +34 -99
  81. data/lib/authentik/api/models/request_rule_child_binding_request.rb +193 -0
  82. data/lib/authentik/api/models/request_rule_request.rb +284 -0
  83. data/lib/authentik/api/models/request_status.rb +36 -0
  84. data/lib/authentik/api/models/requestable_target.rb +278 -0
  85. data/lib/authentik/api/models/review.rb +1 -1
  86. data/lib/authentik/api/models/saml_source.rb +35 -8
  87. data/lib/authentik/api/models/saml_source_request.rb +8 -8
  88. data/lib/authentik/api/models/saml_version_enum.rb +34 -0
  89. data/lib/authentik/api/models/session_user.rb +32 -4
  90. data/lib/authentik/api/models/settings.rb +30 -1
  91. data/lib/authentik/api/models/settings_request.rb +30 -1
  92. data/lib/authentik/api/models/system_info.rb +31 -4
  93. data/lib/authentik/api/models/task_aggregated_status_enum.rb +2 -1
  94. data/lib/authentik/api/models/task_status_enum.rb +2 -1
  95. data/lib/authentik/api/models/user_offboarding.rb +379 -0
  96. data/lib/authentik/api/models/user_offboarding_request.rb +237 -0
  97. data/lib/authentik/api/models/user_self.rb +28 -1
  98. data/lib/authentik/api/models/user_switch_action_enum.rb +34 -0
  99. data/lib/authentik/api/models/user_switch_request.rb +173 -0
  100. data/lib/authentik/api/models/user_switch_response.rb +159 -0
  101. data/lib/authentik/api/models/ws_federation_provider.rb +41 -4
  102. data/lib/authentik/api/models/ws_federation_provider_request.rb +11 -1
  103. data/lib/authentik/api/version.rb +1 -1
  104. data/spec/api/admin_api_spec.rb +1 -0
  105. data/spec/api/core_api_spec.rb +119 -0
  106. data/spec/api/events_api_spec.rb +11 -0
  107. data/spec/api/lifecycle_api_spec.rb +47 -0
  108. data/spec/api/providers_api_spec.rb +73 -0
  109. data/spec/api/requests_api_spec.rb +365 -0
  110. data/spec/api/sources_api_spec.rb +2 -1
  111. data/spec/models/application_spec.rb +6 -0
  112. data/spec/models/authenticator_web_authn_stage_request_spec.rb +0 -6
  113. data/spec/models/authenticator_web_authn_stage_spec.rb +0 -6
  114. data/spec/models/brand_request_spec.rb +12 -0
  115. data/spec/models/brand_spec.rb +12 -0
  116. data/spec/models/captcha_stage_request_spec.rb +6 -0
  117. data/spec/models/captcha_stage_spec.rb +6 -0
  118. data/spec/models/content_type_spec.rb +6 -0
  119. data/spec/models/current_brand_flags_spec.rb +0 -12
  120. data/spec/models/current_brand_spec.rb +12 -0
  121. data/spec/models/device_user_binding_spec.rb +12 -0
  122. data/spec/models/grant_request_create_request_spec.rb +36 -0
  123. data/spec/models/grant_request_spec.rb +90 -0
  124. data/spec/models/{grant_types_enum_spec.rb → grant_type_enum_spec.rb} +6 -6
  125. data/spec/models/ldap_source_request_spec.rb +6 -0
  126. data/spec/models/ldap_source_spec.rb +6 -0
  127. data/spec/models/notification_mode_enum_spec.rb +24 -0
  128. data/spec/models/o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  129. data/spec/models/o_auth2_dynamic_client_registration_spec.rb +84 -0
  130. data/spec/models/object_attribute_request_spec.rb +84 -0
  131. data/spec/models/object_attribute_spec.rb +108 -0
  132. data/spec/models/object_attribute_type_enum_spec.rb +24 -0
  133. data/spec/models/offboarding_action_enum_spec.rb +24 -0
  134. data/spec/models/offboarding_status_enum_spec.rb +24 -0
  135. data/spec/models/paginated_grant_request_list_spec.rb +42 -0
  136. data/spec/models/paginated_o_auth2_dynamic_client_registration_list_spec.rb +42 -0
  137. data/spec/models/paginated_object_attribute_list_spec.rb +42 -0
  138. data/spec/models/paginated_request_rule_binding_list_spec.rb +42 -0
  139. data/spec/models/paginated_request_rule_child_binding_list_spec.rb +42 -0
  140. data/spec/models/paginated_request_rule_list_spec.rb +42 -0
  141. data/spec/models/paginated_requestable_target_list_spec.rb +42 -0
  142. data/spec/models/paginated_user_offboarding_list_spec.rb +42 -0
  143. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +0 -6
  144. data/spec/models/patched_brand_request_spec.rb +12 -0
  145. data/spec/models/patched_captcha_stage_request_spec.rb +6 -0
  146. data/spec/models/patched_grant_request_fulfill_request_spec.rb +36 -0
  147. data/spec/models/patched_ldap_source_request_spec.rb +6 -0
  148. data/spec/models/patched_o_auth2_dynamic_client_registration_request_spec.rb +78 -0
  149. data/spec/models/patched_object_attribute_request_spec.rb +84 -0
  150. data/spec/models/patched_request_rule_binding_request_spec.rb +60 -0
  151. data/spec/models/patched_request_rule_child_binding_request_spec.rb +42 -0
  152. data/spec/models/patched_request_rule_request_spec.rb +72 -0
  153. data/spec/models/patched_saml_source_request_spec.rb +1 -1
  154. data/spec/models/patched_settings_request_spec.rb +6 -0
  155. data/spec/models/patched_ws_federation_provider_request_spec.rb +6 -0
  156. data/spec/models/policy_binding_spec.rb +12 -0
  157. data/spec/models/related_target_spec.rb +54 -0
  158. data/spec/models/request_content_type_enum_spec.rb +24 -0
  159. data/spec/models/request_rule_binding_request_spec.rb +60 -0
  160. data/spec/models/request_rule_binding_spec.rb +84 -0
  161. data/spec/models/request_rule_child_binding_request_spec.rb +42 -0
  162. data/spec/models/{reviewer_user_spec.rb → request_rule_child_binding_spec.rb} +8 -14
  163. data/spec/models/request_rule_request_spec.rb +72 -0
  164. data/spec/models/request_rule_spec.rb +84 -0
  165. data/spec/models/request_status_spec.rb +24 -0
  166. data/spec/models/requestable_target_spec.rb +60 -0
  167. data/spec/models/saml_source_request_spec.rb +1 -1
  168. data/spec/models/saml_source_spec.rb +7 -1
  169. data/spec/models/saml_version_enum_spec.rb +24 -0
  170. data/spec/models/session_user_spec.rb +6 -0
  171. data/spec/models/settings_request_spec.rb +6 -0
  172. data/spec/models/settings_spec.rb +6 -0
  173. data/spec/models/system_info_spec.rb +6 -0
  174. data/spec/models/user_offboarding_request_spec.rb +54 -0
  175. data/spec/models/user_offboarding_spec.rb +90 -0
  176. data/spec/models/user_self_spec.rb +6 -0
  177. data/spec/models/user_switch_action_enum_spec.rb +24 -0
  178. data/spec/models/{reviewer_group_spec.rb → user_switch_request_spec.rb} +8 -8
  179. data/spec/models/user_switch_response_spec.rb +30 -0
  180. data/spec/models/ws_federation_provider_request_spec.rb +6 -0
  181. data/spec/models/ws_federation_provider_spec.rb +12 -0
  182. metadata +127 -10
@@ -284,6 +284,82 @@ module Authentik::Api
284
284
  return data, status_code, headers
285
285
  end
286
286
 
287
+ # List application entitlements which the current user can request access to
288
+ # @param [Hash] opts the optional parameters
289
+ # @option opts [String] :app
290
+ # @option opts [String] :name
291
+ # @option opts [String] :ordering Which field to use when ordering the results.
292
+ # @option opts [Integer] :page A page number within the paginated result set.
293
+ # @option opts [Integer] :page_size Number of results to return per page.
294
+ # @option opts [String] :pbm_uuid
295
+ # @option opts [String] :search A search term.
296
+ # @return [PaginatedRequestableTargetList]
297
+ def core_application_entitlements_requestable_list(opts = {})
298
+ data, _status_code, _headers = core_application_entitlements_requestable_list_with_http_info(opts)
299
+ data
300
+ end
301
+
302
+ # List application entitlements which the current user can request access to
303
+ # @param [Hash] opts the optional parameters
304
+ # @option opts [String] :app
305
+ # @option opts [String] :name
306
+ # @option opts [String] :ordering Which field to use when ordering the results.
307
+ # @option opts [Integer] :page A page number within the paginated result set.
308
+ # @option opts [Integer] :page_size Number of results to return per page.
309
+ # @option opts [String] :pbm_uuid
310
+ # @option opts [String] :search A search term.
311
+ # @return [Array<(PaginatedRequestableTargetList, Integer, Hash)>] PaginatedRequestableTargetList data, response status code and response headers
312
+ def core_application_entitlements_requestable_list_with_http_info(opts = {})
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_application_entitlements_requestable_list ...'
315
+ end
316
+ # resource path
317
+ local_var_path = '/core/application_entitlements/requestable/'
318
+
319
+ # query parameters
320
+ query_params = opts[:query_params] || {}
321
+ query_params[:'app'] = opts[:'app'] if !opts[:'app'].nil?
322
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
323
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
324
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
325
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
326
+ query_params[:'pbm_uuid'] = opts[:'pbm_uuid'] if !opts[:'pbm_uuid'].nil?
327
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
328
+
329
+ # header parameters
330
+ header_params = opts[:header_params] || {}
331
+ # HTTP header 'Accept' (if needed)
332
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
333
+
334
+ # form parameters
335
+ form_params = opts[:form_params] || {}
336
+
337
+ # http body (model)
338
+ post_body = opts[:debug_body]
339
+
340
+ # return_type
341
+ return_type = opts[:debug_return_type] || 'PaginatedRequestableTargetList'
342
+
343
+ # auth_names
344
+ auth_names = opts[:debug_auth_names] || ['authentik']
345
+
346
+ new_options = opts.merge(
347
+ :operation => :"CoreApi.core_application_entitlements_requestable_list",
348
+ :header_params => header_params,
349
+ :query_params => query_params,
350
+ :form_params => form_params,
351
+ :body => post_body,
352
+ :auth_names => auth_names,
353
+ :return_type => return_type
354
+ )
355
+
356
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
357
+ if @api_client.config.debugging
358
+ @api_client.config.logger.debug "API called: CoreApi#core_application_entitlements_requestable_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
359
+ end
360
+ return data, status_code, headers
361
+ end
362
+
287
363
  # ApplicationEntitlement Viewset
288
364
  # @param pbm_uuid [String] A UUID string identifying this Application Entitlement.
289
365
  # @param [Hash] opts the optional parameters
@@ -831,6 +907,91 @@ module Authentik::Api
831
907
  return data, status_code, headers
832
908
  end
833
909
 
910
+ # List applications which the current user can request access to
911
+ # @param [Hash] opts the optional parameters
912
+ # @option opts [String] :group
913
+ # @option opts [String] :meta_description
914
+ # @option opts [String] :meta_launch_url
915
+ # @option opts [String] :meta_publisher
916
+ # @option opts [String] :name
917
+ # @option opts [String] :ordering Which field to use when ordering the results.
918
+ # @option opts [Integer] :page A page number within the paginated result set.
919
+ # @option opts [Integer] :page_size Number of results to return per page.
920
+ # @option opts [String] :search A search term.
921
+ # @option opts [String] :slug
922
+ # @return [PaginatedApplicationList]
923
+ def core_applications_requestable_list(opts = {})
924
+ data, _status_code, _headers = core_applications_requestable_list_with_http_info(opts)
925
+ data
926
+ end
927
+
928
+ # List applications which the current user can request access to
929
+ # @param [Hash] opts the optional parameters
930
+ # @option opts [String] :group
931
+ # @option opts [String] :meta_description
932
+ # @option opts [String] :meta_launch_url
933
+ # @option opts [String] :meta_publisher
934
+ # @option opts [String] :name
935
+ # @option opts [String] :ordering Which field to use when ordering the results.
936
+ # @option opts [Integer] :page A page number within the paginated result set.
937
+ # @option opts [Integer] :page_size Number of results to return per page.
938
+ # @option opts [String] :search A search term.
939
+ # @option opts [String] :slug
940
+ # @return [Array<(PaginatedApplicationList, Integer, Hash)>] PaginatedApplicationList data, response status code and response headers
941
+ def core_applications_requestable_list_with_http_info(opts = {})
942
+ if @api_client.config.debugging
943
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_applications_requestable_list ...'
944
+ end
945
+ # resource path
946
+ local_var_path = '/core/applications/requestable/'
947
+
948
+ # query parameters
949
+ query_params = opts[:query_params] || {}
950
+ query_params[:'group'] = opts[:'group'] if !opts[:'group'].nil?
951
+ query_params[:'meta_description'] = opts[:'meta_description'] if !opts[:'meta_description'].nil?
952
+ query_params[:'meta_launch_url'] = opts[:'meta_launch_url'] if !opts[:'meta_launch_url'].nil?
953
+ query_params[:'meta_publisher'] = opts[:'meta_publisher'] if !opts[:'meta_publisher'].nil?
954
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
955
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
956
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
957
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
958
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
959
+ query_params[:'slug'] = opts[:'slug'] if !opts[:'slug'].nil?
960
+
961
+ # header parameters
962
+ header_params = opts[:header_params] || {}
963
+ # HTTP header 'Accept' (if needed)
964
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
965
+
966
+ # form parameters
967
+ form_params = opts[:form_params] || {}
968
+
969
+ # http body (model)
970
+ post_body = opts[:debug_body]
971
+
972
+ # return_type
973
+ return_type = opts[:debug_return_type] || 'PaginatedApplicationList'
974
+
975
+ # auth_names
976
+ auth_names = opts[:debug_auth_names] || ['authentik']
977
+
978
+ new_options = opts.merge(
979
+ :operation => :"CoreApi.core_applications_requestable_list",
980
+ :header_params => header_params,
981
+ :query_params => query_params,
982
+ :form_params => form_params,
983
+ :body => post_body,
984
+ :auth_names => auth_names,
985
+ :return_type => return_type
986
+ )
987
+
988
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
989
+ if @api_client.config.debugging
990
+ @api_client.config.logger.debug "API called: CoreApi#core_applications_requestable_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
991
+ end
992
+ return data, status_code, headers
993
+ end
994
+
834
995
  # Application Viewset
835
996
  # @param slug [String]
836
997
  # @param [Hash] opts the optional parameters
@@ -1543,8 +1704,10 @@ module Authentik::Api
1543
1704
  # @option opts [String] :flow_invalidation
1544
1705
  # @option opts [String] :flow_lockdown
1545
1706
  # @option opts [String] :flow_recovery
1707
+ # @option opts [String] :flow_request
1546
1708
  # @option opts [String] :flow_unenrollment
1547
1709
  # @option opts [String] :flow_user_settings
1710
+ # @option opts [String] :flow_user_switch
1548
1711
  # @option opts [String] :ordering Which field to use when ordering the results.
1549
1712
  # @option opts [Integer] :page A page number within the paginated result set.
1550
1713
  # @option opts [Integer] :page_size Number of results to return per page.
@@ -1571,8 +1734,10 @@ module Authentik::Api
1571
1734
  # @option opts [String] :flow_invalidation
1572
1735
  # @option opts [String] :flow_lockdown
1573
1736
  # @option opts [String] :flow_recovery
1737
+ # @option opts [String] :flow_request
1574
1738
  # @option opts [String] :flow_unenrollment
1575
1739
  # @option opts [String] :flow_user_settings
1740
+ # @option opts [String] :flow_user_switch
1576
1741
  # @option opts [String] :ordering Which field to use when ordering the results.
1577
1742
  # @option opts [Integer] :page A page number within the paginated result set.
1578
1743
  # @option opts [Integer] :page_size Number of results to return per page.
@@ -1601,8 +1766,10 @@ module Authentik::Api
1601
1766
  query_params[:'flow_invalidation'] = opts[:'flow_invalidation'] if !opts[:'flow_invalidation'].nil?
1602
1767
  query_params[:'flow_lockdown'] = opts[:'flow_lockdown'] if !opts[:'flow_lockdown'].nil?
1603
1768
  query_params[:'flow_recovery'] = opts[:'flow_recovery'] if !opts[:'flow_recovery'].nil?
1769
+ query_params[:'flow_request'] = opts[:'flow_request'] if !opts[:'flow_request'].nil?
1604
1770
  query_params[:'flow_unenrollment'] = opts[:'flow_unenrollment'] if !opts[:'flow_unenrollment'].nil?
1605
1771
  query_params[:'flow_user_settings'] = opts[:'flow_user_settings'] if !opts[:'flow_user_settings'].nil?
1772
+ query_params[:'flow_user_switch'] = opts[:'flow_user_switch'] if !opts[:'flow_user_switch'].nil?
1606
1773
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
1607
1774
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1608
1775
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
@@ -1958,7 +2125,7 @@ module Authentik::Api
1958
2125
  return_type = opts[:debug_return_type]
1959
2126
 
1960
2127
  # auth_names
1961
- auth_names = opts[:debug_auth_names] || ['authentik']
2128
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
1962
2129
 
1963
2130
  new_options = opts.merge(
1964
2131
  :operation => :"CoreApi.core_groups_add_user_create",
@@ -2024,7 +2191,7 @@ module Authentik::Api
2024
2191
  return_type = opts[:debug_return_type] || 'Group'
2025
2192
 
2026
2193
  # auth_names
2027
- auth_names = opts[:debug_auth_names] || ['authentik']
2194
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
2028
2195
 
2029
2196
  new_options = opts.merge(
2030
2197
  :operation => :"CoreApi.core_groups_create",
@@ -2085,7 +2252,7 @@ module Authentik::Api
2085
2252
  return_type = opts[:debug_return_type]
2086
2253
 
2087
2254
  # auth_names
2088
- auth_names = opts[:debug_auth_names] || ['authentik']
2255
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
2089
2256
 
2090
2257
  new_options = opts.merge(
2091
2258
  :operation => :"CoreApi.core_groups_destroy",
@@ -2179,7 +2346,7 @@ module Authentik::Api
2179
2346
  return_type = opts[:debug_return_type] || 'PaginatedGroupList'
2180
2347
 
2181
2348
  # auth_names
2182
- auth_names = opts[:debug_auth_names] || ['authentik']
2349
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
2183
2350
 
2184
2351
  new_options = opts.merge(
2185
2352
  :operation => :"CoreApi.core_groups_list",
@@ -2247,7 +2414,7 @@ module Authentik::Api
2247
2414
  return_type = opts[:debug_return_type] || 'Group'
2248
2415
 
2249
2416
  # auth_names
2250
- auth_names = opts[:debug_auth_names] || ['authentik']
2417
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
2251
2418
 
2252
2419
  new_options = opts.merge(
2253
2420
  :operation => :"CoreApi.core_groups_partial_update",
@@ -2319,7 +2486,7 @@ module Authentik::Api
2319
2486
  return_type = opts[:debug_return_type]
2320
2487
 
2321
2488
  # auth_names
2322
- auth_names = opts[:debug_auth_names] || ['authentik']
2489
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
2323
2490
 
2324
2491
  new_options = opts.merge(
2325
2492
  :operation => :"CoreApi.core_groups_remove_user_create",
@@ -2392,7 +2559,7 @@ module Authentik::Api
2392
2559
  return_type = opts[:debug_return_type] || 'Group'
2393
2560
 
2394
2561
  # auth_names
2395
- auth_names = opts[:debug_auth_names] || ['authentik']
2562
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
2396
2563
 
2397
2564
  new_options = opts.merge(
2398
2565
  :operation => :"CoreApi.core_groups_retrieve",
@@ -2464,7 +2631,7 @@ module Authentik::Api
2464
2631
  return_type = opts[:debug_return_type] || 'Group'
2465
2632
 
2466
2633
  # auth_names
2467
- auth_names = opts[:debug_auth_names] || ['authentik']
2634
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
2468
2635
 
2469
2636
  new_options = opts.merge(
2470
2637
  :operation => :"CoreApi.core_groups_update",
@@ -2525,7 +2692,7 @@ module Authentik::Api
2525
2692
  return_type = opts[:debug_return_type] || 'Array<UsedBy>'
2526
2693
 
2527
2694
  # auth_names
2528
- auth_names = opts[:debug_auth_names] || ['authentik']
2695
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
2529
2696
 
2530
2697
  new_options = opts.merge(
2531
2698
  :operation => :"CoreApi.core_groups_used_by_list",
@@ -2544,6 +2711,398 @@ module Authentik::Api
2544
2711
  return data, status_code, headers
2545
2712
  end
2546
2713
 
2714
+ # @param object_attribute_request [ObjectAttributeRequest]
2715
+ # @param [Hash] opts the optional parameters
2716
+ # @return [ObjectAttribute]
2717
+ def core_object_attributes_create(object_attribute_request, opts = {})
2718
+ data, _status_code, _headers = core_object_attributes_create_with_http_info(object_attribute_request, opts)
2719
+ data
2720
+ end
2721
+
2722
+ # @param object_attribute_request [ObjectAttributeRequest]
2723
+ # @param [Hash] opts the optional parameters
2724
+ # @return [Array<(ObjectAttribute, Integer, Hash)>] ObjectAttribute data, response status code and response headers
2725
+ def core_object_attributes_create_with_http_info(object_attribute_request, opts = {})
2726
+ if @api_client.config.debugging
2727
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_create ...'
2728
+ end
2729
+ # verify the required parameter 'object_attribute_request' is set
2730
+ if @api_client.config.client_side_validation && object_attribute_request.nil?
2731
+ fail ArgumentError, "Missing the required parameter 'object_attribute_request' when calling CoreApi.core_object_attributes_create"
2732
+ end
2733
+ # resource path
2734
+ local_var_path = '/core/object_attributes/'
2735
+
2736
+ # query parameters
2737
+ query_params = opts[:query_params] || {}
2738
+
2739
+ # header parameters
2740
+ header_params = opts[:header_params] || {}
2741
+ # HTTP header 'Accept' (if needed)
2742
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2743
+ # HTTP header 'Content-Type'
2744
+ content_type = @api_client.select_header_content_type(['application/json'])
2745
+ if !content_type.nil?
2746
+ header_params['Content-Type'] = content_type
2747
+ end
2748
+
2749
+ # form parameters
2750
+ form_params = opts[:form_params] || {}
2751
+
2752
+ # http body (model)
2753
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(object_attribute_request)
2754
+
2755
+ # return_type
2756
+ return_type = opts[:debug_return_type] || 'ObjectAttribute'
2757
+
2758
+ # auth_names
2759
+ auth_names = opts[:debug_auth_names] || ['authentik']
2760
+
2761
+ new_options = opts.merge(
2762
+ :operation => :"CoreApi.core_object_attributes_create",
2763
+ :header_params => header_params,
2764
+ :query_params => query_params,
2765
+ :form_params => form_params,
2766
+ :body => post_body,
2767
+ :auth_names => auth_names,
2768
+ :return_type => return_type
2769
+ )
2770
+
2771
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2772
+ if @api_client.config.debugging
2773
+ @api_client.config.logger.debug "API called: CoreApi#core_object_attributes_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2774
+ end
2775
+ return data, status_code, headers
2776
+ end
2777
+
2778
+ # @param attribute_id [String] A UUID string identifying this Object Attribute.
2779
+ # @param [Hash] opts the optional parameters
2780
+ # @return [nil]
2781
+ def core_object_attributes_destroy(attribute_id, opts = {})
2782
+ core_object_attributes_destroy_with_http_info(attribute_id, opts)
2783
+ nil
2784
+ end
2785
+
2786
+ # @param attribute_id [String] A UUID string identifying this Object Attribute.
2787
+ # @param [Hash] opts the optional parameters
2788
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2789
+ def core_object_attributes_destroy_with_http_info(attribute_id, opts = {})
2790
+ if @api_client.config.debugging
2791
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_destroy ...'
2792
+ end
2793
+ # verify the required parameter 'attribute_id' is set
2794
+ if @api_client.config.client_side_validation && attribute_id.nil?
2795
+ fail ArgumentError, "Missing the required parameter 'attribute_id' when calling CoreApi.core_object_attributes_destroy"
2796
+ end
2797
+ # resource path
2798
+ local_var_path = '/core/object_attributes/{attribute_id}/'.sub('{attribute_id}', CGI.escape(attribute_id.to_s))
2799
+
2800
+ # query parameters
2801
+ query_params = opts[:query_params] || {}
2802
+
2803
+ # header parameters
2804
+ header_params = opts[:header_params] || {}
2805
+ # HTTP header 'Accept' (if needed)
2806
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2807
+
2808
+ # form parameters
2809
+ form_params = opts[:form_params] || {}
2810
+
2811
+ # http body (model)
2812
+ post_body = opts[:debug_body]
2813
+
2814
+ # return_type
2815
+ return_type = opts[:debug_return_type]
2816
+
2817
+ # auth_names
2818
+ auth_names = opts[:debug_auth_names] || ['authentik']
2819
+
2820
+ new_options = opts.merge(
2821
+ :operation => :"CoreApi.core_object_attributes_destroy",
2822
+ :header_params => header_params,
2823
+ :query_params => query_params,
2824
+ :form_params => form_params,
2825
+ :body => post_body,
2826
+ :auth_names => auth_names,
2827
+ :return_type => return_type
2828
+ )
2829
+
2830
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2831
+ if @api_client.config.debugging
2832
+ @api_client.config.logger.debug "API called: CoreApi#core_object_attributes_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2833
+ end
2834
+ return data, status_code, headers
2835
+ end
2836
+
2837
+ # @param [Hash] opts the optional parameters
2838
+ # @option opts [Boolean] :enabled
2839
+ # @option opts [String] :object_type__app_label
2840
+ # @option opts [String] :object_type__model
2841
+ # @option opts [String] :ordering Which field to use when ordering the results.
2842
+ # @option opts [Integer] :page A page number within the paginated result set.
2843
+ # @option opts [Integer] :page_size Number of results to return per page.
2844
+ # @option opts [String] :search A search term.
2845
+ # @return [PaginatedObjectAttributeList]
2846
+ def core_object_attributes_list(opts = {})
2847
+ data, _status_code, _headers = core_object_attributes_list_with_http_info(opts)
2848
+ data
2849
+ end
2850
+
2851
+ # @param [Hash] opts the optional parameters
2852
+ # @option opts [Boolean] :enabled
2853
+ # @option opts [String] :object_type__app_label
2854
+ # @option opts [String] :object_type__model
2855
+ # @option opts [String] :ordering Which field to use when ordering the results.
2856
+ # @option opts [Integer] :page A page number within the paginated result set.
2857
+ # @option opts [Integer] :page_size Number of results to return per page.
2858
+ # @option opts [String] :search A search term.
2859
+ # @return [Array<(PaginatedObjectAttributeList, Integer, Hash)>] PaginatedObjectAttributeList data, response status code and response headers
2860
+ def core_object_attributes_list_with_http_info(opts = {})
2861
+ if @api_client.config.debugging
2862
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_list ...'
2863
+ end
2864
+ # resource path
2865
+ local_var_path = '/core/object_attributes/'
2866
+
2867
+ # query parameters
2868
+ query_params = opts[:query_params] || {}
2869
+ query_params[:'enabled'] = opts[:'enabled'] if !opts[:'enabled'].nil?
2870
+ query_params[:'object_type__app_label'] = opts[:'object_type__app_label'] if !opts[:'object_type__app_label'].nil?
2871
+ query_params[:'object_type__model'] = opts[:'object_type__model'] if !opts[:'object_type__model'].nil?
2872
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
2873
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2874
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
2875
+ query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
2876
+
2877
+ # header parameters
2878
+ header_params = opts[:header_params] || {}
2879
+ # HTTP header 'Accept' (if needed)
2880
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2881
+
2882
+ # form parameters
2883
+ form_params = opts[:form_params] || {}
2884
+
2885
+ # http body (model)
2886
+ post_body = opts[:debug_body]
2887
+
2888
+ # return_type
2889
+ return_type = opts[:debug_return_type] || 'PaginatedObjectAttributeList'
2890
+
2891
+ # auth_names
2892
+ auth_names = opts[:debug_auth_names] || ['authentik']
2893
+
2894
+ new_options = opts.merge(
2895
+ :operation => :"CoreApi.core_object_attributes_list",
2896
+ :header_params => header_params,
2897
+ :query_params => query_params,
2898
+ :form_params => form_params,
2899
+ :body => post_body,
2900
+ :auth_names => auth_names,
2901
+ :return_type => return_type
2902
+ )
2903
+
2904
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2905
+ if @api_client.config.debugging
2906
+ @api_client.config.logger.debug "API called: CoreApi#core_object_attributes_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2907
+ end
2908
+ return data, status_code, headers
2909
+ end
2910
+
2911
+ # @param attribute_id [String] A UUID string identifying this Object Attribute.
2912
+ # @param [Hash] opts the optional parameters
2913
+ # @option opts [PatchedObjectAttributeRequest] :patched_object_attribute_request
2914
+ # @return [ObjectAttribute]
2915
+ def core_object_attributes_partial_update(attribute_id, opts = {})
2916
+ data, _status_code, _headers = core_object_attributes_partial_update_with_http_info(attribute_id, opts)
2917
+ data
2918
+ end
2919
+
2920
+ # @param attribute_id [String] A UUID string identifying this Object Attribute.
2921
+ # @param [Hash] opts the optional parameters
2922
+ # @option opts [PatchedObjectAttributeRequest] :patched_object_attribute_request
2923
+ # @return [Array<(ObjectAttribute, Integer, Hash)>] ObjectAttribute data, response status code and response headers
2924
+ def core_object_attributes_partial_update_with_http_info(attribute_id, opts = {})
2925
+ if @api_client.config.debugging
2926
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_partial_update ...'
2927
+ end
2928
+ # verify the required parameter 'attribute_id' is set
2929
+ if @api_client.config.client_side_validation && attribute_id.nil?
2930
+ fail ArgumentError, "Missing the required parameter 'attribute_id' when calling CoreApi.core_object_attributes_partial_update"
2931
+ end
2932
+ # resource path
2933
+ local_var_path = '/core/object_attributes/{attribute_id}/'.sub('{attribute_id}', CGI.escape(attribute_id.to_s))
2934
+
2935
+ # query parameters
2936
+ query_params = opts[:query_params] || {}
2937
+
2938
+ # header parameters
2939
+ header_params = opts[:header_params] || {}
2940
+ # HTTP header 'Accept' (if needed)
2941
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2942
+ # HTTP header 'Content-Type'
2943
+ content_type = @api_client.select_header_content_type(['application/json'])
2944
+ if !content_type.nil?
2945
+ header_params['Content-Type'] = content_type
2946
+ end
2947
+
2948
+ # form parameters
2949
+ form_params = opts[:form_params] || {}
2950
+
2951
+ # http body (model)
2952
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_object_attribute_request'])
2953
+
2954
+ # return_type
2955
+ return_type = opts[:debug_return_type] || 'ObjectAttribute'
2956
+
2957
+ # auth_names
2958
+ auth_names = opts[:debug_auth_names] || ['authentik']
2959
+
2960
+ new_options = opts.merge(
2961
+ :operation => :"CoreApi.core_object_attributes_partial_update",
2962
+ :header_params => header_params,
2963
+ :query_params => query_params,
2964
+ :form_params => form_params,
2965
+ :body => post_body,
2966
+ :auth_names => auth_names,
2967
+ :return_type => return_type
2968
+ )
2969
+
2970
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2971
+ if @api_client.config.debugging
2972
+ @api_client.config.logger.debug "API called: CoreApi#core_object_attributes_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2973
+ end
2974
+ return data, status_code, headers
2975
+ end
2976
+
2977
+ # @param attribute_id [String] A UUID string identifying this Object Attribute.
2978
+ # @param [Hash] opts the optional parameters
2979
+ # @return [ObjectAttribute]
2980
+ def core_object_attributes_retrieve(attribute_id, opts = {})
2981
+ data, _status_code, _headers = core_object_attributes_retrieve_with_http_info(attribute_id, opts)
2982
+ data
2983
+ end
2984
+
2985
+ # @param attribute_id [String] A UUID string identifying this Object Attribute.
2986
+ # @param [Hash] opts the optional parameters
2987
+ # @return [Array<(ObjectAttribute, Integer, Hash)>] ObjectAttribute data, response status code and response headers
2988
+ def core_object_attributes_retrieve_with_http_info(attribute_id, opts = {})
2989
+ if @api_client.config.debugging
2990
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_retrieve ...'
2991
+ end
2992
+ # verify the required parameter 'attribute_id' is set
2993
+ if @api_client.config.client_side_validation && attribute_id.nil?
2994
+ fail ArgumentError, "Missing the required parameter 'attribute_id' when calling CoreApi.core_object_attributes_retrieve"
2995
+ end
2996
+ # resource path
2997
+ local_var_path = '/core/object_attributes/{attribute_id}/'.sub('{attribute_id}', CGI.escape(attribute_id.to_s))
2998
+
2999
+ # query parameters
3000
+ query_params = opts[:query_params] || {}
3001
+
3002
+ # header parameters
3003
+ header_params = opts[:header_params] || {}
3004
+ # HTTP header 'Accept' (if needed)
3005
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3006
+
3007
+ # form parameters
3008
+ form_params = opts[:form_params] || {}
3009
+
3010
+ # http body (model)
3011
+ post_body = opts[:debug_body]
3012
+
3013
+ # return_type
3014
+ return_type = opts[:debug_return_type] || 'ObjectAttribute'
3015
+
3016
+ # auth_names
3017
+ auth_names = opts[:debug_auth_names] || ['authentik']
3018
+
3019
+ new_options = opts.merge(
3020
+ :operation => :"CoreApi.core_object_attributes_retrieve",
3021
+ :header_params => header_params,
3022
+ :query_params => query_params,
3023
+ :form_params => form_params,
3024
+ :body => post_body,
3025
+ :auth_names => auth_names,
3026
+ :return_type => return_type
3027
+ )
3028
+
3029
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3030
+ if @api_client.config.debugging
3031
+ @api_client.config.logger.debug "API called: CoreApi#core_object_attributes_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3032
+ end
3033
+ return data, status_code, headers
3034
+ end
3035
+
3036
+ # @param attribute_id [String] A UUID string identifying this Object Attribute.
3037
+ # @param object_attribute_request [ObjectAttributeRequest]
3038
+ # @param [Hash] opts the optional parameters
3039
+ # @return [ObjectAttribute]
3040
+ def core_object_attributes_update(attribute_id, object_attribute_request, opts = {})
3041
+ data, _status_code, _headers = core_object_attributes_update_with_http_info(attribute_id, object_attribute_request, opts)
3042
+ data
3043
+ end
3044
+
3045
+ # @param attribute_id [String] A UUID string identifying this Object Attribute.
3046
+ # @param object_attribute_request [ObjectAttributeRequest]
3047
+ # @param [Hash] opts the optional parameters
3048
+ # @return [Array<(ObjectAttribute, Integer, Hash)>] ObjectAttribute data, response status code and response headers
3049
+ def core_object_attributes_update_with_http_info(attribute_id, object_attribute_request, opts = {})
3050
+ if @api_client.config.debugging
3051
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_object_attributes_update ...'
3052
+ end
3053
+ # verify the required parameter 'attribute_id' is set
3054
+ if @api_client.config.client_side_validation && attribute_id.nil?
3055
+ fail ArgumentError, "Missing the required parameter 'attribute_id' when calling CoreApi.core_object_attributes_update"
3056
+ end
3057
+ # verify the required parameter 'object_attribute_request' is set
3058
+ if @api_client.config.client_side_validation && object_attribute_request.nil?
3059
+ fail ArgumentError, "Missing the required parameter 'object_attribute_request' when calling CoreApi.core_object_attributes_update"
3060
+ end
3061
+ # resource path
3062
+ local_var_path = '/core/object_attributes/{attribute_id}/'.sub('{attribute_id}', CGI.escape(attribute_id.to_s))
3063
+
3064
+ # query parameters
3065
+ query_params = opts[:query_params] || {}
3066
+
3067
+ # header parameters
3068
+ header_params = opts[:header_params] || {}
3069
+ # HTTP header 'Accept' (if needed)
3070
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3071
+ # HTTP header 'Content-Type'
3072
+ content_type = @api_client.select_header_content_type(['application/json'])
3073
+ if !content_type.nil?
3074
+ header_params['Content-Type'] = content_type
3075
+ end
3076
+
3077
+ # form parameters
3078
+ form_params = opts[:form_params] || {}
3079
+
3080
+ # http body (model)
3081
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(object_attribute_request)
3082
+
3083
+ # return_type
3084
+ return_type = opts[:debug_return_type] || 'ObjectAttribute'
3085
+
3086
+ # auth_names
3087
+ auth_names = opts[:debug_auth_names] || ['authentik']
3088
+
3089
+ new_options = opts.merge(
3090
+ :operation => :"CoreApi.core_object_attributes_update",
3091
+ :header_params => header_params,
3092
+ :query_params => query_params,
3093
+ :form_params => form_params,
3094
+ :body => post_body,
3095
+ :auth_names => auth_names,
3096
+ :return_type => return_type
3097
+ )
3098
+
3099
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3100
+ if @api_client.config.debugging
3101
+ @api_client.config.logger.debug "API called: CoreApi#core_object_attributes_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3102
+ end
3103
+ return data, status_code, headers
3104
+ end
3105
+
2547
3106
  # Token Viewset
2548
3107
  # @param token_request [TokenRequest]
2549
3108
  # @param [Hash] opts the optional parameters
@@ -3519,7 +4078,7 @@ module Authentik::Api
3519
4078
  return_type = opts[:debug_return_type] || 'Link'
3520
4079
 
3521
4080
  # auth_names
3522
- auth_names = opts[:debug_auth_names] || ['authentik']
4081
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
3523
4082
 
3524
4083
  new_options = opts.merge(
3525
4084
  :operation => :"CoreApi.core_users_account_lockdown_create",
@@ -3585,7 +4144,7 @@ module Authentik::Api
3585
4144
  return_type = opts[:debug_return_type] || 'User'
3586
4145
 
3587
4146
  # auth_names
3588
- auth_names = opts[:debug_auth_names] || ['authentik']
4147
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
3589
4148
 
3590
4149
  new_options = opts.merge(
3591
4150
  :operation => :"CoreApi.core_users_create",
@@ -3646,7 +4205,7 @@ module Authentik::Api
3646
4205
  return_type = opts[:debug_return_type]
3647
4206
 
3648
4207
  # auth_names
3649
- auth_names = opts[:debug_auth_names] || ['authentik']
4208
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
3650
4209
 
3651
4210
  new_options = opts.merge(
3652
4211
  :operation => :"CoreApi.core_users_destroy",
@@ -3779,7 +4338,7 @@ module Authentik::Api
3779
4338
  return_type = opts[:debug_return_type] || 'DataExport'
3780
4339
 
3781
4340
  # auth_names
3782
- auth_names = opts[:debug_auth_names] || ['authentik']
4341
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
3783
4342
 
3784
4343
  new_options = opts.merge(
3785
4344
  :operation => :"CoreApi.core_users_export_create",
@@ -3851,7 +4410,7 @@ module Authentik::Api
3851
4410
  return_type = opts[:debug_return_type]
3852
4411
 
3853
4412
  # auth_names
3854
- auth_names = opts[:debug_auth_names] || ['authentik']
4413
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
3855
4414
 
3856
4415
  new_options = opts.merge(
3857
4416
  :operation => :"CoreApi.core_users_impersonate_create",
@@ -3906,7 +4465,7 @@ module Authentik::Api
3906
4465
  return_type = opts[:debug_return_type]
3907
4466
 
3908
4467
  # auth_names
3909
- auth_names = opts[:debug_auth_names] || ['authentik']
4468
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
3910
4469
 
3911
4470
  new_options = opts.merge(
3912
4471
  :operation => :"CoreApi.core_users_impersonate_end_retrieve",
@@ -4051,7 +4610,7 @@ module Authentik::Api
4051
4610
  return_type = opts[:debug_return_type] || 'PaginatedUserList'
4052
4611
 
4053
4612
  # auth_names
4054
- auth_names = opts[:debug_auth_names] || ['authentik']
4613
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4055
4614
 
4056
4615
  new_options = opts.merge(
4057
4616
  :operation => :"CoreApi.core_users_list",
@@ -4106,7 +4665,7 @@ module Authentik::Api
4106
4665
  return_type = opts[:debug_return_type] || 'SessionUser'
4107
4666
 
4108
4667
  # auth_names
4109
- auth_names = opts[:debug_auth_names] || ['authentik']
4668
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4110
4669
 
4111
4670
  new_options = opts.merge(
4112
4671
  :operation => :"CoreApi.core_users_me_retrieve",
@@ -4174,7 +4733,7 @@ module Authentik::Api
4174
4733
  return_type = opts[:debug_return_type] || 'User'
4175
4734
 
4176
4735
  # auth_names
4177
- auth_names = opts[:debug_auth_names] || ['authentik']
4736
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4178
4737
 
4179
4738
  new_options = opts.merge(
4180
4739
  :operation => :"CoreApi.core_users_partial_update",
@@ -4232,7 +4791,7 @@ module Authentik::Api
4232
4791
  return_type = opts[:debug_return_type] || 'UserPath'
4233
4792
 
4234
4793
  # auth_names
4235
- auth_names = opts[:debug_auth_names] || ['authentik']
4794
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4236
4795
 
4237
4796
  new_options = opts.merge(
4238
4797
  :operation => :"CoreApi.core_users_paths_retrieve",
@@ -4300,7 +4859,7 @@ module Authentik::Api
4300
4859
  return_type = opts[:debug_return_type] || 'Link'
4301
4860
 
4302
4861
  # auth_names
4303
- auth_names = opts[:debug_auth_names] || ['authentik']
4862
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4304
4863
 
4305
4864
  new_options = opts.merge(
4306
4865
  :operation => :"CoreApi.core_users_recovery_create",
@@ -4372,7 +4931,7 @@ module Authentik::Api
4372
4931
  return_type = opts[:debug_return_type]
4373
4932
 
4374
4933
  # auth_names
4375
- auth_names = opts[:debug_auth_names] || ['authentik']
4934
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4376
4935
 
4377
4936
  new_options = opts.merge(
4378
4937
  :operation => :"CoreApi.core_users_recovery_email_create",
@@ -4433,7 +4992,7 @@ module Authentik::Api
4433
4992
  return_type = opts[:debug_return_type] || 'User'
4434
4993
 
4435
4994
  # auth_names
4436
- auth_names = opts[:debug_auth_names] || ['authentik']
4995
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4437
4996
 
4438
4997
  new_options = opts.merge(
4439
4998
  :operation => :"CoreApi.core_users_retrieve",
@@ -4499,7 +5058,7 @@ module Authentik::Api
4499
5058
  return_type = opts[:debug_return_type] || 'UserServiceAccountResponse'
4500
5059
 
4501
5060
  # auth_names
4502
- auth_names = opts[:debug_auth_names] || ['authentik']
5061
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4503
5062
 
4504
5063
  new_options = opts.merge(
4505
5064
  :operation => :"CoreApi.core_users_service_account_create",
@@ -4571,7 +5130,7 @@ module Authentik::Api
4571
5130
  return_type = opts[:debug_return_type]
4572
5131
 
4573
5132
  # auth_names
4574
- auth_names = opts[:debug_auth_names] || ['authentik']
5133
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4575
5134
 
4576
5135
  new_options = opts.merge(
4577
5136
  :operation => :"CoreApi.core_users_set_password_create",
@@ -4643,7 +5202,7 @@ module Authentik::Api
4643
5202
  return_type = opts[:debug_return_type]
4644
5203
 
4645
5204
  # auth_names
4646
- auth_names = opts[:debug_auth_names] || ['authentik']
5205
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4647
5206
 
4648
5207
  new_options = opts.merge(
4649
5208
  :operation => :"CoreApi.core_users_set_password_hash_create",
@@ -4662,6 +5221,71 @@ module Authentik::Api
4662
5221
  return data, status_code, headers
4663
5222
  end
4664
5223
 
5224
+ # Start browser user switching.
5225
+ # @param [Hash] opts the optional parameters
5226
+ # @option opts [String] :_next
5227
+ # @option opts [UserSwitchRequest] :user_switch_request
5228
+ # @return [UserSwitchResponse]
5229
+ def core_users_switch_create(opts = {})
5230
+ data, _status_code, _headers = core_users_switch_create_with_http_info(opts)
5231
+ data
5232
+ end
5233
+
5234
+ # Start browser user switching.
5235
+ # @param [Hash] opts the optional parameters
5236
+ # @option opts [String] :_next
5237
+ # @option opts [UserSwitchRequest] :user_switch_request
5238
+ # @return [Array<(UserSwitchResponse, Integer, Hash)>] UserSwitchResponse data, response status code and response headers
5239
+ def core_users_switch_create_with_http_info(opts = {})
5240
+ if @api_client.config.debugging
5241
+ @api_client.config.logger.debug 'Calling API: CoreApi.core_users_switch_create ...'
5242
+ end
5243
+ # resource path
5244
+ local_var_path = '/core/users/switch/'
5245
+
5246
+ # query parameters
5247
+ query_params = opts[:query_params] || {}
5248
+ query_params[:'next'] = opts[:'_next'] if !opts[:'_next'].nil?
5249
+
5250
+ # header parameters
5251
+ header_params = opts[:header_params] || {}
5252
+ # HTTP header 'Accept' (if needed)
5253
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
5254
+ # HTTP header 'Content-Type'
5255
+ content_type = @api_client.select_header_content_type(['application/json'])
5256
+ if !content_type.nil?
5257
+ header_params['Content-Type'] = content_type
5258
+ end
5259
+
5260
+ # form parameters
5261
+ form_params = opts[:form_params] || {}
5262
+
5263
+ # http body (model)
5264
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'user_switch_request'])
5265
+
5266
+ # return_type
5267
+ return_type = opts[:debug_return_type] || 'UserSwitchResponse'
5268
+
5269
+ # auth_names
5270
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
5271
+
5272
+ new_options = opts.merge(
5273
+ :operation => :"CoreApi.core_users_switch_create",
5274
+ :header_params => header_params,
5275
+ :query_params => query_params,
5276
+ :form_params => form_params,
5277
+ :body => post_body,
5278
+ :auth_names => auth_names,
5279
+ :return_type => return_type
5280
+ )
5281
+
5282
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
5283
+ if @api_client.config.debugging
5284
+ @api_client.config.logger.debug "API called: CoreApi#core_users_switch_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5285
+ end
5286
+ return data, status_code, headers
5287
+ end
5288
+
4665
5289
  # User Viewset
4666
5290
  # @param id [Integer] A unique integer value identifying this User.
4667
5291
  # @param user_request [UserRequest]
@@ -4715,7 +5339,7 @@ module Authentik::Api
4715
5339
  return_type = opts[:debug_return_type] || 'User'
4716
5340
 
4717
5341
  # auth_names
4718
- auth_names = opts[:debug_auth_names] || ['authentik']
5342
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4719
5343
 
4720
5344
  new_options = opts.merge(
4721
5345
  :operation => :"CoreApi.core_users_update",
@@ -4776,7 +5400,7 @@ module Authentik::Api
4776
5400
  return_type = opts[:debug_return_type] || 'Array<UsedBy>'
4777
5401
 
4778
5402
  # auth_names
4779
- auth_names = opts[:debug_auth_names] || ['authentik']
5403
+ auth_names = opts[:debug_auth_names] || ['authentik', 'authentik_device_auth']
4780
5404
 
4781
5405
  new_options = opts.merge(
4782
5406
  :operation => :"CoreApi.core_users_used_by_list",