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.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/README_API.md +66 -14
- data/lib/authentik/api/api/admin_api.rb +4 -12
- data/lib/authentik/api/api/core_api.rb +143 -18
- data/lib/authentik/api/api/crypto_api.rb +2 -6
- data/lib/authentik/api/api/endpoints_api.rb +1577 -656
- data/lib/authentik/api/api/events_api.rb +121 -38
- data/lib/authentik/api/api/flows_api.rb +8 -90
- data/lib/authentik/api/api/lifecycle_api.rb +22 -13
- data/lib/authentik/api/api/managed_api.rb +73 -0
- data/lib/authentik/api/api/policies_api.rb +5 -6
- data/lib/authentik/api/api/providers_api.rb +46 -108
- data/lib/authentik/api/api/rbac_api.rb +0 -5
- data/lib/authentik/api/api/schema_api.rb +4 -12
- data/lib/authentik/api/api/sources_api.rb +35 -96
- data/lib/authentik/api/api/ssf_api.rb +63 -6
- data/lib/authentik/api/api/stages_api.rb +581 -102
- data/lib/authentik/api/api/tasks_api.rb +5 -13
- data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
- data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
- data/lib/authentik/api/models/app_enum.rb +3 -2
- data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
- data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
- data/lib/authentik/api/models/application.rb +14 -4
- data/lib/authentik/api/models/application_request.rb +14 -4
- data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
- data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
- data/lib/authentik/api/models/authentication_enum.rb +2 -1
- data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
- data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
- data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
- data/lib/authentik/api/models/brand.rb +11 -1
- data/lib/authentik/api/models/brand_request.rb +11 -1
- data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
- data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
- data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
- data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/consent_stage.rb +1 -1
- data/lib/authentik/api/models/consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/country_code_enum.rb +3 -3
- data/lib/authentik/api/models/current_brand.rb +10 -1
- data/lib/authentik/api/models/current_brand_flags.rb +31 -27
- data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
- data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
- data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/event_stats.rb +187 -0
- data/lib/authentik/api/models/event_volume.rb +1 -1
- data/lib/authentik/api/models/events_requested_enum.rb +7 -1
- data/lib/authentik/api/models/force_binding_enum.rb +34 -0
- data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
- data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
- data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
- data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
- data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
- data/lib/authentik/api/models/grant_types_enum.rb +39 -0
- data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
- data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
- data/lib/authentik/api/models/key_type_enum.rb +3 -3
- data/lib/authentik/api/models/lang_enum.rb +131 -0
- data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
- data/lib/authentik/api/models/logout_url.rb +209 -0
- data/lib/authentik/api/models/model_enum.rb +3 -1
- data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
- data/lib/authentik/api/models/notification_transport.rb +13 -2
- data/lib/authentik/api/models/notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
- data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/operating_system.rb +0 -17
- data/lib/authentik/api/models/operating_system_request.rb +2 -9
- data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
- data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
- data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
- data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
- data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
- data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
- data/lib/authentik/api/models/patched_application_request.rb +14 -4
- data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/patched_brand_request.rb +11 -1
- data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
- data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
- data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
- data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
- data/lib/authentik/api/models/redirect_uri.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
- data/lib/authentik/api/models/related_rule.rb +250 -0
- data/lib/authentik/api/models/saml_provider.rb +98 -8
- data/lib/authentik/api/models/saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/saml_source.rb +11 -1
- data/lib/authentik/api/models/saml_source_request.rb +11 -1
- data/lib/authentik/api/models/ssf_provider.rb +41 -4
- data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/ssf_stream.rb +10 -1
- data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
- data/lib/authentik/api/models/task.rb +1 -1
- data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
- data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/usage_enum.rb +33 -0
- data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
- data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
- data/lib/authentik/api/models/vendor_enum.rb +2 -1
- data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/admin_api_spec.rb +2 -2
- data/spec/api/core_api_spec.rb +27 -3
- data/spec/api/crypto_api_spec.rb +1 -1
- data/spec/api/endpoints_api_spec.rb +167 -0
- data/spec/api/events_api_spec.rb +33 -7
- data/spec/api/flows_api_spec.rb +4 -16
- data/spec/api/lifecycle_api_spec.rb +6 -3
- data/spec/api/managed_api_spec.rb +13 -0
- data/spec/api/policies_api_spec.rb +2 -1
- data/spec/api/providers_api_spec.rb +21 -19
- data/spec/api/schema_api_spec.rb +2 -2
- data/spec/api/sources_api_spec.rb +17 -16
- data/spec/api/ssf_api_spec.rb +12 -1
- data/spec/api/stages_api_spec.rb +117 -18
- data/spec/api/tasks_api_spec.rb +2 -2
- data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/account_lockdown_stage_spec.rb +96 -0
- data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
- data/spec/models/application_request_spec.rb +6 -0
- data/spec/models/application_spec.rb +6 -0
- data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/authenticator_validate_stage_spec.rb +30 -0
- data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
- data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
- data/spec/models/brand_request_spec.rb +6 -0
- data/spec/models/brand_spec.rb +6 -0
- data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
- data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
- data/spec/models/current_brand_flags_spec.rb +2 -2
- data/spec/models/current_brand_spec.rb +6 -0
- data/spec/models/event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/event_matcher_policy_spec.rb +6 -0
- data/spec/models/event_stats_spec.rb +36 -0
- data/spec/models/force_binding_enum_spec.rb +24 -0
- data/spec/models/format_enum_spec.rb +24 -0
- data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
- data/spec/models/google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/google_chrome_connector_spec.rb +78 -0
- data/spec/models/grant_types_enum_spec.rb +24 -0
- data/spec/models/group_ldap_source_connection_spec.rb +6 -0
- data/spec/models/invitation_send_email_request_spec.rb +48 -0
- data/spec/models/lang_enum_spec.rb +24 -0
- data/spec/models/lifecycle_iteration_spec.rb +2 -14
- data/spec/models/logout_url_spec.rb +60 -0
- data/spec/models/native_logout_challenge_spec.rb +13 -7
- data/spec/models/notification_transport_request_spec.rb +6 -0
- data/spec/models/notification_transport_spec.rb +6 -0
- data/spec/models/o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/o_auth2_provider_spec.rb +6 -0
- data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
- data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
- data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
- data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
- data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/patched_application_request_spec.rb +6 -0
- data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/patched_brand_request_spec.rb +6 -0
- data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/patched_notification_transport_request_spec.rb +6 -0
- data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/patched_saml_provider_request_spec.rb +7 -1
- data/spec/models/patched_saml_source_request_spec.rb +6 -0
- data/spec/models/patched_settings_request_flags_spec.rb +2 -2
- data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
- data/spec/models/redirect_uri_request_spec.rb +6 -0
- data/spec/models/redirect_uri_spec.rb +6 -0
- data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
- data/spec/models/related_rule_spec.rb +54 -0
- data/spec/models/saml_provider_request_spec.rb +7 -1
- data/spec/models/saml_provider_spec.rb +25 -1
- data/spec/models/saml_source_request_spec.rb +6 -0
- data/spec/models/saml_source_spec.rb +6 -0
- data/spec/models/ssf_provider_request_spec.rb +6 -0
- data/spec/models/ssf_provider_spec.rb +12 -0
- data/spec/models/ssf_stream_spec.rb +6 -0
- data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
- data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
- data/spec/models/transport_mode_enum_spec.rb +24 -0
- data/spec/models/usage_enum_spec.rb +24 -0
- data/spec/models/user_account_lockdown_request_spec.rb +30 -0
- data/spec/models/user_ldap_source_connection_spec.rb +6 -0
- data/spec/models/user_password_hash_set_request_spec.rb +30 -0
- data/spec/models/web_authn_hint_enum_spec.rb +24 -0
- data/spec/zeitwerk_spec.rb +34 -0
- metadata +113 -32
- data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
|
@@ -198,10 +198,11 @@ module Authentik::Api
|
|
|
198
198
|
# Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download
|
|
199
199
|
# @param [Hash] opts the optional parameters
|
|
200
200
|
# @option opts [String] :action
|
|
201
|
-
# @option opts [Array<
|
|
201
|
+
# @option opts [Array<EventActions>] :actions
|
|
202
202
|
# @option opts [String] :brand_name Brand name
|
|
203
203
|
# @option opts [String] :client_ip
|
|
204
204
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
205
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
205
206
|
# @option opts [String] :context_model_app Context Model App
|
|
206
207
|
# @option opts [String] :context_model_name Context Model Name
|
|
207
208
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
@@ -217,10 +218,11 @@ module Authentik::Api
|
|
|
217
218
|
# Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download
|
|
218
219
|
# @param [Hash] opts the optional parameters
|
|
219
220
|
# @option opts [String] :action
|
|
220
|
-
# @option opts [Array<
|
|
221
|
+
# @option opts [Array<EventActions>] :actions
|
|
221
222
|
# @option opts [String] :brand_name Brand name
|
|
222
223
|
# @option opts [String] :client_ip
|
|
223
224
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
225
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
224
226
|
# @option opts [String] :context_model_app Context Model App
|
|
225
227
|
# @option opts [String] :context_model_name Context Model Name
|
|
226
228
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
@@ -232,10 +234,6 @@ module Authentik::Api
|
|
|
232
234
|
if @api_client.config.debugging
|
|
233
235
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_events_export_create ...'
|
|
234
236
|
end
|
|
235
|
-
allowable_values = ["authorize_application", "configuration_error", "configuration_warning", "custom_", "email_sent", "export_ready", "flow_execution", "impersonation_ended", "impersonation_started", "invitation_used", "login", "login_failed", "logout", "model_created", "model_deleted", "model_updated", "password_set", "policy_exception", "policy_execution", "property_mapping_exception", "review_attested", "review_completed", "review_initiated", "review_overdue", "secret_rotate", "secret_view", "source_linked", "suspicious_request", "system_exception", "system_task_exception", "system_task_execution", "update_available", "user_write"]
|
|
236
|
-
if @api_client.config.client_side_validation && opts[:'actions'] && !opts[:'actions'].all? { |item| allowable_values.include?(item) }
|
|
237
|
-
fail ArgumentError, "invalid value for \"actions\", must include one of #{allowable_values}"
|
|
238
|
-
end
|
|
239
237
|
# resource path
|
|
240
238
|
local_var_path = '/events/events/export/'
|
|
241
239
|
|
|
@@ -246,6 +244,7 @@ module Authentik::Api
|
|
|
246
244
|
query_params[:'brand_name'] = opts[:'brand_name'] if !opts[:'brand_name'].nil?
|
|
247
245
|
query_params[:'client_ip'] = opts[:'client_ip'] if !opts[:'client_ip'].nil?
|
|
248
246
|
query_params[:'context_authorized_app'] = opts[:'context_authorized_app'] if !opts[:'context_authorized_app'].nil?
|
|
247
|
+
query_params[:'context_device'] = opts[:'context_device'] if !opts[:'context_device'].nil?
|
|
249
248
|
query_params[:'context_model_app'] = opts[:'context_model_app'] if !opts[:'context_model_app'].nil?
|
|
250
249
|
query_params[:'context_model_name'] = opts[:'context_model_name'] if !opts[:'context_model_name'].nil?
|
|
251
250
|
query_params[:'context_model_pk'] = opts[:'context_model_pk'] if !opts[:'context_model_pk'].nil?
|
|
@@ -290,10 +289,11 @@ module Authentik::Api
|
|
|
290
289
|
# Event Read-Only Viewset
|
|
291
290
|
# @param [Hash] opts the optional parameters
|
|
292
291
|
# @option opts [String] :action
|
|
293
|
-
# @option opts [Array<
|
|
292
|
+
# @option opts [Array<EventActions>] :actions
|
|
294
293
|
# @option opts [String] :brand_name Brand name
|
|
295
294
|
# @option opts [String] :client_ip
|
|
296
295
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
296
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
297
297
|
# @option opts [String] :context_model_app Context Model App
|
|
298
298
|
# @option opts [String] :context_model_name Context Model Name
|
|
299
299
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
@@ -311,10 +311,11 @@ module Authentik::Api
|
|
|
311
311
|
# Event Read-Only Viewset
|
|
312
312
|
# @param [Hash] opts the optional parameters
|
|
313
313
|
# @option opts [String] :action
|
|
314
|
-
# @option opts [Array<
|
|
314
|
+
# @option opts [Array<EventActions>] :actions
|
|
315
315
|
# @option opts [String] :brand_name Brand name
|
|
316
316
|
# @option opts [String] :client_ip
|
|
317
317
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
318
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
318
319
|
# @option opts [String] :context_model_app Context Model App
|
|
319
320
|
# @option opts [String] :context_model_name Context Model Name
|
|
320
321
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
@@ -328,10 +329,6 @@ module Authentik::Api
|
|
|
328
329
|
if @api_client.config.debugging
|
|
329
330
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_events_list ...'
|
|
330
331
|
end
|
|
331
|
-
allowable_values = ["authorize_application", "configuration_error", "configuration_warning", "custom_", "email_sent", "export_ready", "flow_execution", "impersonation_ended", "impersonation_started", "invitation_used", "login", "login_failed", "logout", "model_created", "model_deleted", "model_updated", "password_set", "policy_exception", "policy_execution", "property_mapping_exception", "review_attested", "review_completed", "review_initiated", "review_overdue", "secret_rotate", "secret_view", "source_linked", "suspicious_request", "system_exception", "system_task_exception", "system_task_execution", "update_available", "user_write"]
|
|
332
|
-
if @api_client.config.client_side_validation && opts[:'actions'] && !opts[:'actions'].all? { |item| allowable_values.include?(item) }
|
|
333
|
-
fail ArgumentError, "invalid value for \"actions\", must include one of #{allowable_values}"
|
|
334
|
-
end
|
|
335
332
|
# resource path
|
|
336
333
|
local_var_path = '/events/events/'
|
|
337
334
|
|
|
@@ -342,6 +339,7 @@ module Authentik::Api
|
|
|
342
339
|
query_params[:'brand_name'] = opts[:'brand_name'] if !opts[:'brand_name'].nil?
|
|
343
340
|
query_params[:'client_ip'] = opts[:'client_ip'] if !opts[:'client_ip'].nil?
|
|
344
341
|
query_params[:'context_authorized_app'] = opts[:'context_authorized_app'] if !opts[:'context_authorized_app'].nil?
|
|
342
|
+
query_params[:'context_device'] = opts[:'context_device'] if !opts[:'context_device'].nil?
|
|
345
343
|
query_params[:'context_model_app'] = opts[:'context_model_app'] if !opts[:'context_model_app'].nil?
|
|
346
344
|
query_params[:'context_model_name'] = opts[:'context_model_name'] if !opts[:'context_model_name'].nil?
|
|
347
345
|
query_params[:'context_model_pk'] = opts[:'context_model_pk'] if !opts[:'context_model_pk'].nil?
|
|
@@ -514,6 +512,104 @@ module Authentik::Api
|
|
|
514
512
|
return data, status_code, headers
|
|
515
513
|
end
|
|
516
514
|
|
|
515
|
+
# Get event stats for specified filters and count steps
|
|
516
|
+
# @param count_steps [Array<String>] Timedelta, format of 'weeks=3;days=2;hours=3,seconds=2'
|
|
517
|
+
# @param [Hash] opts the optional parameters
|
|
518
|
+
# @option opts [String] :action
|
|
519
|
+
# @option opts [Array<EventActions>] :actions
|
|
520
|
+
# @option opts [String] :brand_name Brand name
|
|
521
|
+
# @option opts [String] :client_ip
|
|
522
|
+
# @option opts [String] :context_authorized_app Context Authorized application
|
|
523
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
524
|
+
# @option opts [String] :context_model_app Context Model App
|
|
525
|
+
# @option opts [String] :context_model_name Context Model Name
|
|
526
|
+
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
527
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
528
|
+
# @option opts [String] :search A search term.
|
|
529
|
+
# @option opts [String] :username Username
|
|
530
|
+
# @return [EventStats]
|
|
531
|
+
def events_events_stats_retrieve(count_steps, opts = {})
|
|
532
|
+
data, _status_code, _headers = events_events_stats_retrieve_with_http_info(count_steps, opts)
|
|
533
|
+
data
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
# Get event stats for specified filters and count steps
|
|
537
|
+
# @param count_steps [Array<String>] Timedelta, format of 'weeks=3;days=2;hours=3,seconds=2'
|
|
538
|
+
# @param [Hash] opts the optional parameters
|
|
539
|
+
# @option opts [String] :action
|
|
540
|
+
# @option opts [Array<EventActions>] :actions
|
|
541
|
+
# @option opts [String] :brand_name Brand name
|
|
542
|
+
# @option opts [String] :client_ip
|
|
543
|
+
# @option opts [String] :context_authorized_app Context Authorized application
|
|
544
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
545
|
+
# @option opts [String] :context_model_app Context Model App
|
|
546
|
+
# @option opts [String] :context_model_name Context Model Name
|
|
547
|
+
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
548
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
549
|
+
# @option opts [String] :search A search term.
|
|
550
|
+
# @option opts [String] :username Username
|
|
551
|
+
# @return [Array<(EventStats, Integer, Hash)>] EventStats data, response status code and response headers
|
|
552
|
+
def events_events_stats_retrieve_with_http_info(count_steps, opts = {})
|
|
553
|
+
if @api_client.config.debugging
|
|
554
|
+
@api_client.config.logger.debug 'Calling API: EventsApi.events_events_stats_retrieve ...'
|
|
555
|
+
end
|
|
556
|
+
# verify the required parameter 'count_steps' is set
|
|
557
|
+
if @api_client.config.client_side_validation && count_steps.nil?
|
|
558
|
+
fail ArgumentError, "Missing the required parameter 'count_steps' when calling EventsApi.events_events_stats_retrieve"
|
|
559
|
+
end
|
|
560
|
+
# resource path
|
|
561
|
+
local_var_path = '/events/events/stats/'
|
|
562
|
+
|
|
563
|
+
# query parameters
|
|
564
|
+
query_params = opts[:query_params] || {}
|
|
565
|
+
query_params[:'count_steps'] = @api_client.build_collection_param(count_steps, :multi)
|
|
566
|
+
query_params[:'action'] = opts[:'action'] if !opts[:'action'].nil?
|
|
567
|
+
query_params[:'actions'] = @api_client.build_collection_param(opts[:'actions'], :multi) if !opts[:'actions'].nil?
|
|
568
|
+
query_params[:'brand_name'] = opts[:'brand_name'] if !opts[:'brand_name'].nil?
|
|
569
|
+
query_params[:'client_ip'] = opts[:'client_ip'] if !opts[:'client_ip'].nil?
|
|
570
|
+
query_params[:'context_authorized_app'] = opts[:'context_authorized_app'] if !opts[:'context_authorized_app'].nil?
|
|
571
|
+
query_params[:'context_device'] = opts[:'context_device'] if !opts[:'context_device'].nil?
|
|
572
|
+
query_params[:'context_model_app'] = opts[:'context_model_app'] if !opts[:'context_model_app'].nil?
|
|
573
|
+
query_params[:'context_model_name'] = opts[:'context_model_name'] if !opts[:'context_model_name'].nil?
|
|
574
|
+
query_params[:'context_model_pk'] = opts[:'context_model_pk'] if !opts[:'context_model_pk'].nil?
|
|
575
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
576
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
577
|
+
query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
|
|
578
|
+
|
|
579
|
+
# header parameters
|
|
580
|
+
header_params = opts[:header_params] || {}
|
|
581
|
+
# HTTP header 'Accept' (if needed)
|
|
582
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
583
|
+
|
|
584
|
+
# form parameters
|
|
585
|
+
form_params = opts[:form_params] || {}
|
|
586
|
+
|
|
587
|
+
# http body (model)
|
|
588
|
+
post_body = opts[:debug_body]
|
|
589
|
+
|
|
590
|
+
# return_type
|
|
591
|
+
return_type = opts[:debug_return_type] || 'EventStats'
|
|
592
|
+
|
|
593
|
+
# auth_names
|
|
594
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
595
|
+
|
|
596
|
+
new_options = opts.merge(
|
|
597
|
+
:operation => :"EventsApi.events_events_stats_retrieve",
|
|
598
|
+
:header_params => header_params,
|
|
599
|
+
:query_params => query_params,
|
|
600
|
+
:form_params => form_params,
|
|
601
|
+
:body => post_body,
|
|
602
|
+
:auth_names => auth_names,
|
|
603
|
+
:return_type => return_type
|
|
604
|
+
)
|
|
605
|
+
|
|
606
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
607
|
+
if @api_client.config.debugging
|
|
608
|
+
@api_client.config.logger.debug "API called: EventsApi#events_events_stats_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
609
|
+
end
|
|
610
|
+
return data, status_code, headers
|
|
611
|
+
end
|
|
612
|
+
|
|
517
613
|
# Get the top_n events grouped by user count
|
|
518
614
|
# @param [Hash] opts the optional parameters
|
|
519
615
|
# @option opts [String] :action
|
|
@@ -650,14 +746,15 @@ module Authentik::Api
|
|
|
650
746
|
# Get event volume for specified filters and timeframe
|
|
651
747
|
# @param [Hash] opts the optional parameters
|
|
652
748
|
# @option opts [String] :action
|
|
653
|
-
# @option opts [Array<
|
|
749
|
+
# @option opts [Array<EventActions>] :actions
|
|
654
750
|
# @option opts [String] :brand_name Brand name
|
|
655
751
|
# @option opts [String] :client_ip
|
|
656
752
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
753
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
657
754
|
# @option opts [String] :context_model_app Context Model App
|
|
658
755
|
# @option opts [String] :context_model_name Context Model Name
|
|
659
756
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
660
|
-
# @option opts [
|
|
757
|
+
# @option opts [Integer] :history_days (default to 7)
|
|
661
758
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
662
759
|
# @option opts [String] :search A search term.
|
|
663
760
|
# @option opts [String] :username Username
|
|
@@ -670,14 +767,15 @@ module Authentik::Api
|
|
|
670
767
|
# Get event volume for specified filters and timeframe
|
|
671
768
|
# @param [Hash] opts the optional parameters
|
|
672
769
|
# @option opts [String] :action
|
|
673
|
-
# @option opts [Array<
|
|
770
|
+
# @option opts [Array<EventActions>] :actions
|
|
674
771
|
# @option opts [String] :brand_name Brand name
|
|
675
772
|
# @option opts [String] :client_ip
|
|
676
773
|
# @option opts [String] :context_authorized_app Context Authorized application
|
|
774
|
+
# @option opts [String] :context_device Context Device Primary Key
|
|
677
775
|
# @option opts [String] :context_model_app Context Model App
|
|
678
776
|
# @option opts [String] :context_model_name Context Model Name
|
|
679
777
|
# @option opts [String] :context_model_pk Context Model Primary Key
|
|
680
|
-
# @option opts [
|
|
778
|
+
# @option opts [Integer] :history_days (default to 7)
|
|
681
779
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
682
780
|
# @option opts [String] :search A search term.
|
|
683
781
|
# @option opts [String] :username Username
|
|
@@ -686,10 +784,6 @@ module Authentik::Api
|
|
|
686
784
|
if @api_client.config.debugging
|
|
687
785
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_events_volume_list ...'
|
|
688
786
|
end
|
|
689
|
-
allowable_values = ["authorize_application", "configuration_error", "configuration_warning", "custom_", "email_sent", "export_ready", "flow_execution", "impersonation_ended", "impersonation_started", "invitation_used", "login", "login_failed", "logout", "model_created", "model_deleted", "model_updated", "password_set", "policy_exception", "policy_execution", "property_mapping_exception", "review_attested", "review_completed", "review_initiated", "review_overdue", "secret_rotate", "secret_view", "source_linked", "suspicious_request", "system_exception", "system_task_exception", "system_task_execution", "update_available", "user_write"]
|
|
690
|
-
if @api_client.config.client_side_validation && opts[:'actions'] && !opts[:'actions'].all? { |item| allowable_values.include?(item) }
|
|
691
|
-
fail ArgumentError, "invalid value for \"actions\", must include one of #{allowable_values}"
|
|
692
|
-
end
|
|
693
787
|
# resource path
|
|
694
788
|
local_var_path = '/events/events/volume/'
|
|
695
789
|
|
|
@@ -700,6 +794,7 @@ module Authentik::Api
|
|
|
700
794
|
query_params[:'brand_name'] = opts[:'brand_name'] if !opts[:'brand_name'].nil?
|
|
701
795
|
query_params[:'client_ip'] = opts[:'client_ip'] if !opts[:'client_ip'].nil?
|
|
702
796
|
query_params[:'context_authorized_app'] = opts[:'context_authorized_app'] if !opts[:'context_authorized_app'].nil?
|
|
797
|
+
query_params[:'context_device'] = opts[:'context_device'] if !opts[:'context_device'].nil?
|
|
703
798
|
query_params[:'context_model_app'] = opts[:'context_model_app'] if !opts[:'context_model_app'].nil?
|
|
704
799
|
query_params[:'context_model_name'] = opts[:'context_model_name'] if !opts[:'context_model_name'].nil?
|
|
705
800
|
query_params[:'context_model_pk'] = opts[:'context_model_pk'] if !opts[:'context_model_pk'].nil?
|
|
@@ -813,7 +908,7 @@ module Authentik::Api
|
|
|
813
908
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
814
909
|
# @option opts [String] :search A search term.
|
|
815
910
|
# @option opts [Boolean] :seen
|
|
816
|
-
# @option opts [
|
|
911
|
+
# @option opts [SeverityEnum] :severity
|
|
817
912
|
# @option opts [Integer] :user
|
|
818
913
|
# @return [PaginatedNotificationList]
|
|
819
914
|
def events_notifications_list(opts = {})
|
|
@@ -831,17 +926,13 @@ module Authentik::Api
|
|
|
831
926
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
832
927
|
# @option opts [String] :search A search term.
|
|
833
928
|
# @option opts [Boolean] :seen
|
|
834
|
-
# @option opts [
|
|
929
|
+
# @option opts [SeverityEnum] :severity
|
|
835
930
|
# @option opts [Integer] :user
|
|
836
931
|
# @return [Array<(PaginatedNotificationList, Integer, Hash)>] PaginatedNotificationList data, response status code and response headers
|
|
837
932
|
def events_notifications_list_with_http_info(opts = {})
|
|
838
933
|
if @api_client.config.debugging
|
|
839
934
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_notifications_list ...'
|
|
840
935
|
end
|
|
841
|
-
allowable_values = ["alert", "notice", "warning"]
|
|
842
|
-
if @api_client.config.client_side_validation && opts[:'severity'] && !allowable_values.include?(opts[:'severity'])
|
|
843
|
-
fail ArgumentError, "invalid value for \"severity\", must be one of #{allowable_values}"
|
|
844
|
-
end
|
|
845
936
|
# resource path
|
|
846
937
|
local_var_path = '/events/notifications/'
|
|
847
938
|
|
|
@@ -1340,7 +1431,7 @@ module Authentik::Api
|
|
|
1340
1431
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1341
1432
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
1342
1433
|
# @option opts [String] :search A search term.
|
|
1343
|
-
# @option opts [
|
|
1434
|
+
# @option opts [SeverityEnum] :severity
|
|
1344
1435
|
# @return [PaginatedNotificationRuleList]
|
|
1345
1436
|
def events_rules_list(opts = {})
|
|
1346
1437
|
data, _status_code, _headers = events_rules_list_with_http_info(opts)
|
|
@@ -1355,16 +1446,12 @@ module Authentik::Api
|
|
|
1355
1446
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
1356
1447
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
1357
1448
|
# @option opts [String] :search A search term.
|
|
1358
|
-
# @option opts [
|
|
1449
|
+
# @option opts [SeverityEnum] :severity
|
|
1359
1450
|
# @return [Array<(PaginatedNotificationRuleList, Integer, Hash)>] PaginatedNotificationRuleList data, response status code and response headers
|
|
1360
1451
|
def events_rules_list_with_http_info(opts = {})
|
|
1361
1452
|
if @api_client.config.debugging
|
|
1362
1453
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_rules_list ...'
|
|
1363
1454
|
end
|
|
1364
|
-
allowable_values = ["alert", "notice", "warning"]
|
|
1365
|
-
if @api_client.config.client_side_validation && opts[:'severity'] && !allowable_values.include?(opts[:'severity'])
|
|
1366
|
-
fail ArgumentError, "invalid value for \"severity\", must be one of #{allowable_values}"
|
|
1367
|
-
end
|
|
1368
1455
|
# resource path
|
|
1369
1456
|
local_var_path = '/events/rules/'
|
|
1370
1457
|
|
|
@@ -1803,7 +1890,7 @@ module Authentik::Api
|
|
|
1803
1890
|
|
|
1804
1891
|
# NotificationTransport Viewset
|
|
1805
1892
|
# @param [Hash] opts the optional parameters
|
|
1806
|
-
# @option opts [
|
|
1893
|
+
# @option opts [TransportModeEnum] :mode
|
|
1807
1894
|
# @option opts [String] :name
|
|
1808
1895
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
1809
1896
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -1819,7 +1906,7 @@ module Authentik::Api
|
|
|
1819
1906
|
|
|
1820
1907
|
# NotificationTransport Viewset
|
|
1821
1908
|
# @param [Hash] opts the optional parameters
|
|
1822
|
-
# @option opts [
|
|
1909
|
+
# @option opts [TransportModeEnum] :mode
|
|
1823
1910
|
# @option opts [String] :name
|
|
1824
1911
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
1825
1912
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -1832,10 +1919,6 @@ module Authentik::Api
|
|
|
1832
1919
|
if @api_client.config.debugging
|
|
1833
1920
|
@api_client.config.logger.debug 'Calling API: EventsApi.events_transports_list ...'
|
|
1834
1921
|
end
|
|
1835
|
-
allowable_values = ["email", "local", "webhook", "webhook_slack"]
|
|
1836
|
-
if @api_client.config.client_side_validation && opts[:'mode'] && !allowable_values.include?(opts[:'mode'])
|
|
1837
|
-
fail ArgumentError, "invalid value for \"mode\", must be one of #{allowable_values}"
|
|
1838
|
-
end
|
|
1839
1922
|
# resource path
|
|
1840
1923
|
local_var_path = '/events/transports/'
|
|
1841
1924
|
|
|
@@ -144,14 +144,14 @@ module Authentik::Api
|
|
|
144
144
|
# @param [Hash] opts the optional parameters
|
|
145
145
|
# @option opts [Boolean] :evaluate_on_plan
|
|
146
146
|
# @option opts [String] :fsb_uuid
|
|
147
|
-
# @option opts [
|
|
147
|
+
# @option opts [InvalidResponseActionEnum] :invalid_response_action
|
|
148
148
|
# @option opts [Integer] :order
|
|
149
149
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
150
150
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
151
151
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
152
152
|
# @option opts [String] :pbm_uuid
|
|
153
153
|
# @option opts [Array<String>] :policies
|
|
154
|
-
# @option opts [
|
|
154
|
+
# @option opts [PolicyEngineMode] :policy_engine_mode
|
|
155
155
|
# @option opts [Boolean] :re_evaluate_policies
|
|
156
156
|
# @option opts [String] :search A search term.
|
|
157
157
|
# @option opts [String] :stage
|
|
@@ -166,14 +166,14 @@ module Authentik::Api
|
|
|
166
166
|
# @param [Hash] opts the optional parameters
|
|
167
167
|
# @option opts [Boolean] :evaluate_on_plan
|
|
168
168
|
# @option opts [String] :fsb_uuid
|
|
169
|
-
# @option opts [
|
|
169
|
+
# @option opts [InvalidResponseActionEnum] :invalid_response_action
|
|
170
170
|
# @option opts [Integer] :order
|
|
171
171
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
172
172
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
173
173
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
174
174
|
# @option opts [String] :pbm_uuid
|
|
175
175
|
# @option opts [Array<String>] :policies
|
|
176
|
-
# @option opts [
|
|
176
|
+
# @option opts [PolicyEngineMode] :policy_engine_mode
|
|
177
177
|
# @option opts [Boolean] :re_evaluate_policies
|
|
178
178
|
# @option opts [String] :search A search term.
|
|
179
179
|
# @option opts [String] :stage
|
|
@@ -183,14 +183,6 @@ module Authentik::Api
|
|
|
183
183
|
if @api_client.config.debugging
|
|
184
184
|
@api_client.config.logger.debug 'Calling API: FlowsApi.flows_bindings_list ...'
|
|
185
185
|
end
|
|
186
|
-
allowable_values = ["restart", "restart_with_context", "retry"]
|
|
187
|
-
if @api_client.config.client_side_validation && opts[:'invalid_response_action'] && !allowable_values.include?(opts[:'invalid_response_action'])
|
|
188
|
-
fail ArgumentError, "invalid value for \"invalid_response_action\", must be one of #{allowable_values}"
|
|
189
|
-
end
|
|
190
|
-
allowable_values = ["all", "any"]
|
|
191
|
-
if @api_client.config.client_side_validation && opts[:'policy_engine_mode'] && !allowable_values.include?(opts[:'policy_engine_mode'])
|
|
192
|
-
fail ArgumentError, "invalid value for \"policy_engine_mode\", must be one of #{allowable_values}"
|
|
193
|
-
end
|
|
194
186
|
# resource path
|
|
195
187
|
local_var_path = '/flows/bindings/'
|
|
196
188
|
|
|
@@ -1131,76 +1123,10 @@ module Authentik::Api
|
|
|
1131
1123
|
return data, status_code, headers
|
|
1132
1124
|
end
|
|
1133
1125
|
|
|
1134
|
-
# Import flow from .yaml file
|
|
1135
|
-
# @param [Hash] opts the optional parameters
|
|
1136
|
-
# @option opts [File] :file
|
|
1137
|
-
# @option opts [Boolean] :clear (default to false)
|
|
1138
|
-
# @return [FlowImportResult]
|
|
1139
|
-
def flows_instances_import_create(opts = {})
|
|
1140
|
-
data, _status_code, _headers = flows_instances_import_create_with_http_info(opts)
|
|
1141
|
-
data
|
|
1142
|
-
end
|
|
1143
|
-
|
|
1144
|
-
# Import flow from .yaml file
|
|
1145
|
-
# @param [Hash] opts the optional parameters
|
|
1146
|
-
# @option opts [File] :file
|
|
1147
|
-
# @option opts [Boolean] :clear (default to false)
|
|
1148
|
-
# @return [Array<(FlowImportResult, Integer, Hash)>] FlowImportResult data, response status code and response headers
|
|
1149
|
-
def flows_instances_import_create_with_http_info(opts = {})
|
|
1150
|
-
if @api_client.config.debugging
|
|
1151
|
-
@api_client.config.logger.debug 'Calling API: FlowsApi.flows_instances_import_create ...'
|
|
1152
|
-
end
|
|
1153
|
-
# resource path
|
|
1154
|
-
local_var_path = '/flows/instances/import/'
|
|
1155
|
-
|
|
1156
|
-
# query parameters
|
|
1157
|
-
query_params = opts[:query_params] || {}
|
|
1158
|
-
|
|
1159
|
-
# header parameters
|
|
1160
|
-
header_params = opts[:header_params] || {}
|
|
1161
|
-
# HTTP header 'Accept' (if needed)
|
|
1162
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1163
|
-
# HTTP header 'Content-Type'
|
|
1164
|
-
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
1165
|
-
if !content_type.nil?
|
|
1166
|
-
header_params['Content-Type'] = content_type
|
|
1167
|
-
end
|
|
1168
|
-
|
|
1169
|
-
# form parameters
|
|
1170
|
-
form_params = opts[:form_params] || {}
|
|
1171
|
-
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
1172
|
-
form_params['clear'] = opts[:'clear'] if !opts[:'clear'].nil?
|
|
1173
|
-
|
|
1174
|
-
# http body (model)
|
|
1175
|
-
post_body = opts[:debug_body]
|
|
1176
|
-
|
|
1177
|
-
# return_type
|
|
1178
|
-
return_type = opts[:debug_return_type] || 'FlowImportResult'
|
|
1179
|
-
|
|
1180
|
-
# auth_names
|
|
1181
|
-
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
1182
|
-
|
|
1183
|
-
new_options = opts.merge(
|
|
1184
|
-
:operation => :"FlowsApi.flows_instances_import_create",
|
|
1185
|
-
:header_params => header_params,
|
|
1186
|
-
:query_params => query_params,
|
|
1187
|
-
:form_params => form_params,
|
|
1188
|
-
:body => post_body,
|
|
1189
|
-
:auth_names => auth_names,
|
|
1190
|
-
:return_type => return_type
|
|
1191
|
-
)
|
|
1192
|
-
|
|
1193
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1194
|
-
if @api_client.config.debugging
|
|
1195
|
-
@api_client.config.logger.debug "API called: FlowsApi#flows_instances_import_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1196
|
-
end
|
|
1197
|
-
return data, status_code, headers
|
|
1198
|
-
end
|
|
1199
|
-
|
|
1200
1126
|
# Flow Viewset
|
|
1201
1127
|
# @param [Hash] opts the optional parameters
|
|
1202
|
-
# @option opts [
|
|
1203
|
-
# @option opts [
|
|
1128
|
+
# @option opts [DeniedActionEnum] :denied_action
|
|
1129
|
+
# @option opts [FlowDesignationEnum] :designation
|
|
1204
1130
|
# @option opts [String] :flow_uuid
|
|
1205
1131
|
# @option opts [String] :name
|
|
1206
1132
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
@@ -1216,8 +1142,8 @@ module Authentik::Api
|
|
|
1216
1142
|
|
|
1217
1143
|
# Flow Viewset
|
|
1218
1144
|
# @param [Hash] opts the optional parameters
|
|
1219
|
-
# @option opts [
|
|
1220
|
-
# @option opts [
|
|
1145
|
+
# @option opts [DeniedActionEnum] :denied_action
|
|
1146
|
+
# @option opts [FlowDesignationEnum] :designation
|
|
1221
1147
|
# @option opts [String] :flow_uuid
|
|
1222
1148
|
# @option opts [String] :name
|
|
1223
1149
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
@@ -1230,14 +1156,6 @@ module Authentik::Api
|
|
|
1230
1156
|
if @api_client.config.debugging
|
|
1231
1157
|
@api_client.config.logger.debug 'Calling API: FlowsApi.flows_instances_list ...'
|
|
1232
1158
|
end
|
|
1233
|
-
allowable_values = ["continue", "message", "message_continue"]
|
|
1234
|
-
if @api_client.config.client_side_validation && opts[:'denied_action'] && !allowable_values.include?(opts[:'denied_action'])
|
|
1235
|
-
fail ArgumentError, "invalid value for \"denied_action\", must be one of #{allowable_values}"
|
|
1236
|
-
end
|
|
1237
|
-
allowable_values = ["authentication", "authorization", "enrollment", "invalidation", "recovery", "stage_configuration", "unenrollment"]
|
|
1238
|
-
if @api_client.config.client_side_validation && opts[:'designation'] && !allowable_values.include?(opts[:'designation'])
|
|
1239
|
-
fail ArgumentError, "invalid value for \"designation\", must be one of #{allowable_values}"
|
|
1240
|
-
end
|
|
1241
1159
|
# resource path
|
|
1242
1160
|
local_var_path = '/flows/instances/'
|
|
1243
1161
|
|
|
@@ -83,9 +83,12 @@ module Authentik::Api
|
|
|
83
83
|
# @param content_type [String]
|
|
84
84
|
# @param obj_id [String]
|
|
85
85
|
# @param [Hash] opts the optional parameters
|
|
86
|
-
# @
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
87
|
+
# @option opts [String] :search A search term.
|
|
88
|
+
# @option opts [Boolean] :user_is_reviewer
|
|
89
|
+
# @return [Array<LifecycleIteration>]
|
|
90
|
+
def lifecycle_iterations_list_latest(content_type, obj_id, opts = {})
|
|
91
|
+
data, _status_code, _headers = lifecycle_iterations_list_latest_with_http_info(content_type, obj_id, opts)
|
|
89
92
|
data
|
|
90
93
|
end
|
|
91
94
|
|
|
@@ -93,27 +96,30 @@ module Authentik::Api
|
|
|
93
96
|
# @param content_type [String]
|
|
94
97
|
# @param obj_id [String]
|
|
95
98
|
# @param [Hash] opts the optional parameters
|
|
96
|
-
# @
|
|
97
|
-
|
|
99
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
100
|
+
# @option opts [String] :search A search term.
|
|
101
|
+
# @option opts [Boolean] :user_is_reviewer
|
|
102
|
+
# @return [Array<(Array<LifecycleIteration>, Integer, Hash)>] Array<LifecycleIteration> data, response status code and response headers
|
|
103
|
+
def lifecycle_iterations_list_latest_with_http_info(content_type, obj_id, opts = {})
|
|
98
104
|
if @api_client.config.debugging
|
|
99
|
-
@api_client.config.logger.debug 'Calling API: LifecycleApi.
|
|
105
|
+
@api_client.config.logger.debug 'Calling API: LifecycleApi.lifecycle_iterations_list_latest ...'
|
|
100
106
|
end
|
|
101
107
|
# verify the required parameter 'content_type' is set
|
|
102
108
|
if @api_client.config.client_side_validation && content_type.nil?
|
|
103
|
-
fail ArgumentError, "Missing the required parameter 'content_type' when calling LifecycleApi.
|
|
109
|
+
fail ArgumentError, "Missing the required parameter 'content_type' when calling LifecycleApi.lifecycle_iterations_list_latest"
|
|
104
110
|
end
|
|
105
111
|
pattern = Regexp.new(/^[^\/]+$/)
|
|
106
112
|
if @api_client.config.client_side_validation && content_type !~ pattern
|
|
107
|
-
fail ArgumentError, "invalid value for 'content_type' when calling LifecycleApi.
|
|
113
|
+
fail ArgumentError, "invalid value for 'content_type' when calling LifecycleApi.lifecycle_iterations_list_latest, must conform to the pattern #{pattern}."
|
|
108
114
|
end
|
|
109
115
|
|
|
110
116
|
# verify the required parameter 'obj_id' is set
|
|
111
117
|
if @api_client.config.client_side_validation && obj_id.nil?
|
|
112
|
-
fail ArgumentError, "Missing the required parameter 'obj_id' when calling LifecycleApi.
|
|
118
|
+
fail ArgumentError, "Missing the required parameter 'obj_id' when calling LifecycleApi.lifecycle_iterations_list_latest"
|
|
113
119
|
end
|
|
114
120
|
pattern = Regexp.new(/^[^\/]+$/)
|
|
115
121
|
if @api_client.config.client_side_validation && obj_id !~ pattern
|
|
116
|
-
fail ArgumentError, "invalid value for 'obj_id' when calling LifecycleApi.
|
|
122
|
+
fail ArgumentError, "invalid value for 'obj_id' when calling LifecycleApi.lifecycle_iterations_list_latest, must conform to the pattern #{pattern}."
|
|
117
123
|
end
|
|
118
124
|
|
|
119
125
|
# resource path
|
|
@@ -121,6 +127,9 @@ module Authentik::Api
|
|
|
121
127
|
|
|
122
128
|
# query parameters
|
|
123
129
|
query_params = opts[:query_params] || {}
|
|
130
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
131
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
132
|
+
query_params[:'user_is_reviewer'] = opts[:'user_is_reviewer'] if !opts[:'user_is_reviewer'].nil?
|
|
124
133
|
|
|
125
134
|
# header parameters
|
|
126
135
|
header_params = opts[:header_params] || {}
|
|
@@ -134,13 +143,13 @@ module Authentik::Api
|
|
|
134
143
|
post_body = opts[:debug_body]
|
|
135
144
|
|
|
136
145
|
# return_type
|
|
137
|
-
return_type = opts[:debug_return_type] || 'LifecycleIteration'
|
|
146
|
+
return_type = opts[:debug_return_type] || 'Array<LifecycleIteration>'
|
|
138
147
|
|
|
139
148
|
# auth_names
|
|
140
149
|
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
141
150
|
|
|
142
151
|
new_options = opts.merge(
|
|
143
|
-
:operation => :"LifecycleApi.
|
|
152
|
+
:operation => :"LifecycleApi.lifecycle_iterations_list_latest",
|
|
144
153
|
:header_params => header_params,
|
|
145
154
|
:query_params => query_params,
|
|
146
155
|
:form_params => form_params,
|
|
@@ -151,7 +160,7 @@ module Authentik::Api
|
|
|
151
160
|
|
|
152
161
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
153
162
|
if @api_client.config.debugging
|
|
154
|
-
@api_client.config.logger.debug "API called: LifecycleApi#
|
|
163
|
+
@api_client.config.logger.debug "API called: LifecycleApi#lifecycle_iterations_list_latest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
155
164
|
end
|
|
156
165
|
return data, status_code, headers
|
|
157
166
|
end
|
|
@@ -256,6 +256,79 @@ module Authentik::Api
|
|
|
256
256
|
return data, status_code, headers
|
|
257
257
|
end
|
|
258
258
|
|
|
259
|
+
# Import blueprint from .yaml file and apply it once, without creating an instance
|
|
260
|
+
# @param [Hash] opts the optional parameters
|
|
261
|
+
# @option opts [File] :file
|
|
262
|
+
# @option opts [String] :path
|
|
263
|
+
# @option opts [String] :context
|
|
264
|
+
# @return [BlueprintImportResult]
|
|
265
|
+
def managed_blueprints_import_create(opts = {})
|
|
266
|
+
data, _status_code, _headers = managed_blueprints_import_create_with_http_info(opts)
|
|
267
|
+
data
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Import blueprint from .yaml file and apply it once, without creating an instance
|
|
271
|
+
# @param [Hash] opts the optional parameters
|
|
272
|
+
# @option opts [File] :file
|
|
273
|
+
# @option opts [String] :path
|
|
274
|
+
# @option opts [String] :context
|
|
275
|
+
# @return [Array<(BlueprintImportResult, Integer, Hash)>] BlueprintImportResult data, response status code and response headers
|
|
276
|
+
def managed_blueprints_import_create_with_http_info(opts = {})
|
|
277
|
+
if @api_client.config.debugging
|
|
278
|
+
@api_client.config.logger.debug 'Calling API: ManagedApi.managed_blueprints_import_create ...'
|
|
279
|
+
end
|
|
280
|
+
if @api_client.config.client_side_validation && !opts[:'path'].nil? && opts[:'path'].to_s.length < 1
|
|
281
|
+
fail ArgumentError, 'invalid value for "opts[:"path"]" when calling ManagedApi.managed_blueprints_import_create, the character length must be greater than or equal to 1.'
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# resource path
|
|
285
|
+
local_var_path = '/managed/blueprints/import/'
|
|
286
|
+
|
|
287
|
+
# query parameters
|
|
288
|
+
query_params = opts[:query_params] || {}
|
|
289
|
+
|
|
290
|
+
# header parameters
|
|
291
|
+
header_params = opts[:header_params] || {}
|
|
292
|
+
# HTTP header 'Accept' (if needed)
|
|
293
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
294
|
+
# HTTP header 'Content-Type'
|
|
295
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
|
296
|
+
if !content_type.nil?
|
|
297
|
+
header_params['Content-Type'] = content_type
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# form parameters
|
|
301
|
+
form_params = opts[:form_params] || {}
|
|
302
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
303
|
+
form_params['path'] = opts[:'path'] if !opts[:'path'].nil?
|
|
304
|
+
form_params['context'] = opts[:'context'] if !opts[:'context'].nil?
|
|
305
|
+
|
|
306
|
+
# http body (model)
|
|
307
|
+
post_body = opts[:debug_body]
|
|
308
|
+
|
|
309
|
+
# return_type
|
|
310
|
+
return_type = opts[:debug_return_type] || 'BlueprintImportResult'
|
|
311
|
+
|
|
312
|
+
# auth_names
|
|
313
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
314
|
+
|
|
315
|
+
new_options = opts.merge(
|
|
316
|
+
:operation => :"ManagedApi.managed_blueprints_import_create",
|
|
317
|
+
:header_params => header_params,
|
|
318
|
+
:query_params => query_params,
|
|
319
|
+
:form_params => form_params,
|
|
320
|
+
:body => post_body,
|
|
321
|
+
:auth_names => auth_names,
|
|
322
|
+
:return_type => return_type
|
|
323
|
+
)
|
|
324
|
+
|
|
325
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
326
|
+
if @api_client.config.debugging
|
|
327
|
+
@api_client.config.logger.debug "API called: ManagedApi#managed_blueprints_import_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
328
|
+
end
|
|
329
|
+
return data, status_code, headers
|
|
330
|
+
end
|
|
331
|
+
|
|
259
332
|
# Blueprint instances
|
|
260
333
|
# @param [Hash] opts the optional parameters
|
|
261
334
|
# @option opts [String] :name
|