authentik-api 2026.8.0.rc6 → 2026.8.0.rc7
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_API.md +21 -5
- data/lib/authentik/api/api/agents_api.rb +410 -0
- data/lib/authentik/api/api/requests_api.rb +72 -0
- data/lib/authentik/api/models/agent.rb +450 -0
- data/lib/authentik/api/models/agent_create_request.rb +203 -0
- data/lib/authentik/api/models/agent_created.rb +185 -0
- data/lib/authentik/api/models/agent_grant_request_create_request.rb +161 -0
- data/lib/authentik/api/models/agent_grant_request_created.rb +185 -0
- data/lib/authentik/api/models/agent_request.rb +303 -0
- data/lib/authentik/api/models/app_enum.rb +2 -2
- data/lib/authentik/api/models/capabilities_enum.rb +3 -1
- data/lib/authentik/api/models/grant_request.rb +27 -1
- data/lib/authentik/api/models/model_enum.rb +3 -1
- data/lib/authentik/api/models/paginated_agent_list.rb +214 -0
- data/lib/authentik/api/models/patched_agent_request.rb +289 -0
- data/lib/authentik/api/models/policy_behavior_enum.rb +35 -0
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/agents_api_spec.rb +101 -0
- data/spec/api/requests_api_spec.rb +13 -0
- data/spec/models/agent_create_request_spec.rb +54 -0
- data/spec/models/agent_created_spec.rb +36 -0
- data/spec/models/agent_grant_request_create_request_spec.rb +30 -0
- data/spec/models/agent_grant_request_created_spec.rb +36 -0
- data/spec/models/agent_request_spec.rb +72 -0
- data/spec/models/agent_spec.rb +108 -0
- data/spec/models/grant_request_spec.rb +6 -0
- data/spec/models/paginated_agent_list_spec.rb +42 -0
- data/spec/models/patched_agent_request_spec.rb +72 -0
- data/spec/models/policy_behavior_enum_spec.rb +24 -0
- metadata +31 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bbdcc7179d76da95fb4488878afb9f991080cfdc9d30f5b7ea96dc99d61226a4
|
|
4
|
+
data.tar.gz: c5192f7c66e10f96eb0215a82cb527d55bd48998d67abade21a67202f0446ea7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f553a1fc4b8bc4877a2e659bbfda3d1c64df241d298707185d061669d908c8c0b2e31f97c0b6074a2ee5090ccb7f4a7f20fdca79a7431542239f59f1d1394f31
|
|
7
|
+
data.tar.gz: 632becc2cecc943bb223fb0c2bc44eb2c993210e2b7d1f543a5ddf500651834f2d8607573c327dd0bd818aeaef91e0ac90ad31b2c0dd2ebff4be48718dd52d36
|
data/README_API.md
CHANGED
|
@@ -6,8 +6,8 @@ Making authentication simple.
|
|
|
6
6
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
|
-
- API version: 2026.8.0-
|
|
10
|
-
- Package version: 2026.8.0.
|
|
9
|
+
- API version: 2026.8.0-rc7
|
|
10
|
+
- Package version: 2026.8.0.rc7
|
|
11
11
|
- Generator version: 7.25.0-SNAPSHOT
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build authentik-api.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./authentik-api-2026.8.0.
|
|
27
|
+
gem install ./authentik-api-2026.8.0.rc7.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./authentik-api-2026.8.0.
|
|
30
|
+
(for development, run `gem install --dev ./authentik-api-2026.8.0.rc7.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'authentik-api', '~> 2026.8.0.
|
|
36
|
+
gem 'authentik-api', '~> 2026.8.0.rc7'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -96,6 +96,12 @@ Class | Method | HTTP request | Description
|
|
|
96
96
|
*Authentik::Api::AdminApi* | [**admin_version_history_list**](docs/AdminApi.md#admin_version_history_list) | **GET** /admin/version/history/ |
|
|
97
97
|
*Authentik::Api::AdminApi* | [**admin_version_history_retrieve**](docs/AdminApi.md#admin_version_history_retrieve) | **GET** /admin/version/history/{id}/ |
|
|
98
98
|
*Authentik::Api::AdminApi* | [**admin_version_retrieve**](docs/AdminApi.md#admin_version_retrieve) | **GET** /admin/version/ |
|
|
99
|
+
*Authentik::Api::AgentsApi* | [**agents_agents_create**](docs/AgentsApi.md#agents_agents_create) | **POST** /agents/agents/ |
|
|
100
|
+
*Authentik::Api::AgentsApi* | [**agents_agents_destroy**](docs/AgentsApi.md#agents_agents_destroy) | **DELETE** /agents/agents/{id}/ |
|
|
101
|
+
*Authentik::Api::AgentsApi* | [**agents_agents_list**](docs/AgentsApi.md#agents_agents_list) | **GET** /agents/agents/ |
|
|
102
|
+
*Authentik::Api::AgentsApi* | [**agents_agents_partial_update**](docs/AgentsApi.md#agents_agents_partial_update) | **PATCH** /agents/agents/{id}/ |
|
|
103
|
+
*Authentik::Api::AgentsApi* | [**agents_agents_retrieve**](docs/AgentsApi.md#agents_agents_retrieve) | **GET** /agents/agents/{id}/ |
|
|
104
|
+
*Authentik::Api::AgentsApi* | [**agents_agents_update**](docs/AgentsApi.md#agents_agents_update) | **PUT** /agents/agents/{id}/ |
|
|
99
105
|
*Authentik::Api::AuthenticatorsApi* | [**authenticators_admin_all_list**](docs/AuthenticatorsApi.md#authenticators_admin_all_list) | **GET** /authenticators/admin/all/ |
|
|
100
106
|
*Authentik::Api::AuthenticatorsApi* | [**authenticators_admin_duo_create**](docs/AuthenticatorsApi.md#authenticators_admin_duo_create) | **POST** /authenticators/admin/duo/ |
|
|
101
107
|
*Authentik::Api::AuthenticatorsApi* | [**authenticators_admin_duo_destroy**](docs/AuthenticatorsApi.md#authenticators_admin_duo_destroy) | **DELETE** /authenticators/admin/duo/{id}/ |
|
|
@@ -828,6 +834,7 @@ Class | Method | HTTP request | Description
|
|
|
828
834
|
*Authentik::Api::ReportsApi* | [**reports_exports_destroy**](docs/ReportsApi.md#reports_exports_destroy) | **DELETE** /reports/exports/{id}/ |
|
|
829
835
|
*Authentik::Api::ReportsApi* | [**reports_exports_list**](docs/ReportsApi.md#reports_exports_list) | **GET** /reports/exports/ |
|
|
830
836
|
*Authentik::Api::ReportsApi* | [**reports_exports_retrieve**](docs/ReportsApi.md#reports_exports_retrieve) | **GET** /reports/exports/{id}/ |
|
|
837
|
+
*Authentik::Api::RequestsApi* | [**requests_grant_requests_agent_create**](docs/RequestsApi.md#requests_grant_requests_agent_create) | **POST** /requests/grant-requests/agent/ |
|
|
831
838
|
*Authentik::Api::RequestsApi* | [**requests_grant_requests_create**](docs/RequestsApi.md#requests_grant_requests_create) | **POST** /requests/grant-requests/ |
|
|
832
839
|
*Authentik::Api::RequestsApi* | [**requests_grant_requests_destroy**](docs/RequestsApi.md#requests_grant_requests_destroy) | **DELETE** /requests/grant-requests/{uuid}/ |
|
|
833
840
|
*Authentik::Api::RequestsApi* | [**requests_grant_requests_fulfill_partial_update**](docs/RequestsApi.md#requests_grant_requests_fulfill_partial_update) | **PATCH** /requests/grant-requests/{uuid}/fulfill/ |
|
|
@@ -1275,13 +1282,19 @@ Class | Method | HTTP request | Description
|
|
|
1275
1282
|
- [Authentik::Api::AccessDeniedChallenge](docs/AccessDeniedChallenge.md)
|
|
1276
1283
|
- [Authentik::Api::AccountLockdownStage](docs/AccountLockdownStage.md)
|
|
1277
1284
|
- [Authentik::Api::AccountLockdownStageRequest](docs/AccountLockdownStageRequest.md)
|
|
1285
|
+
- [Authentik::Api::Agent](docs/Agent.md)
|
|
1278
1286
|
- [Authentik::Api::AgentAuthenticationResponse](docs/AgentAuthenticationResponse.md)
|
|
1279
1287
|
- [Authentik::Api::AgentConfig](docs/AgentConfig.md)
|
|
1280
1288
|
- [Authentik::Api::AgentConnector](docs/AgentConnector.md)
|
|
1281
1289
|
- [Authentik::Api::AgentConnectorRequest](docs/AgentConnectorRequest.md)
|
|
1290
|
+
- [Authentik::Api::AgentCreateRequest](docs/AgentCreateRequest.md)
|
|
1291
|
+
- [Authentik::Api::AgentCreated](docs/AgentCreated.md)
|
|
1292
|
+
- [Authentik::Api::AgentGrantRequestCreateRequest](docs/AgentGrantRequestCreateRequest.md)
|
|
1293
|
+
- [Authentik::Api::AgentGrantRequestCreated](docs/AgentGrantRequestCreated.md)
|
|
1282
1294
|
- [Authentik::Api::AgentPSSODeviceRegistrationRequest](docs/AgentPSSODeviceRegistrationRequest.md)
|
|
1283
1295
|
- [Authentik::Api::AgentPSSODeviceRegistrationResponse](docs/AgentPSSODeviceRegistrationResponse.md)
|
|
1284
1296
|
- [Authentik::Api::AgentPSSOUserRegistrationRequest](docs/AgentPSSOUserRegistrationRequest.md)
|
|
1297
|
+
- [Authentik::Api::AgentRequest](docs/AgentRequest.md)
|
|
1285
1298
|
- [Authentik::Api::AgentTokenResponse](docs/AgentTokenResponse.md)
|
|
1286
1299
|
- [Authentik::Api::AlgEnum](docs/AlgEnum.md)
|
|
1287
1300
|
- [Authentik::Api::App](docs/App.md)
|
|
@@ -1638,6 +1651,7 @@ Class | Method | HTTP request | Description
|
|
|
1638
1651
|
- [Authentik::Api::PKCEMethodEnum](docs/PKCEMethodEnum.md)
|
|
1639
1652
|
- [Authentik::Api::PaginatedAccountLockdownStageList](docs/PaginatedAccountLockdownStageList.md)
|
|
1640
1653
|
- [Authentik::Api::PaginatedAgentConnectorList](docs/PaginatedAgentConnectorList.md)
|
|
1654
|
+
- [Authentik::Api::PaginatedAgentList](docs/PaginatedAgentList.md)
|
|
1641
1655
|
- [Authentik::Api::PaginatedAppleIndependentSecureEnclaveList](docs/PaginatedAppleIndependentSecureEnclaveList.md)
|
|
1642
1656
|
- [Authentik::Api::PaginatedApplicationEntitlementList](docs/PaginatedApplicationEntitlementList.md)
|
|
1643
1657
|
- [Authentik::Api::PaginatedApplicationList](docs/PaginatedApplicationList.md)
|
|
@@ -1813,6 +1827,7 @@ Class | Method | HTTP request | Description
|
|
|
1813
1827
|
- [Authentik::Api::PasswordStageRequest](docs/PasswordStageRequest.md)
|
|
1814
1828
|
- [Authentik::Api::PatchedAccountLockdownStageRequest](docs/PatchedAccountLockdownStageRequest.md)
|
|
1815
1829
|
- [Authentik::Api::PatchedAgentConnectorRequest](docs/PatchedAgentConnectorRequest.md)
|
|
1830
|
+
- [Authentik::Api::PatchedAgentRequest](docs/PatchedAgentRequest.md)
|
|
1816
1831
|
- [Authentik::Api::PatchedAppleIndependentSecureEnclaveRequest](docs/PatchedAppleIndependentSecureEnclaveRequest.md)
|
|
1817
1832
|
- [Authentik::Api::PatchedApplicationEntitlementRequest](docs/PatchedApplicationEntitlementRequest.md)
|
|
1818
1833
|
- [Authentik::Api::PatchedApplicationRequest](docs/PatchedApplicationRequest.md)
|
|
@@ -1958,6 +1973,7 @@ Class | Method | HTTP request | Description
|
|
|
1958
1973
|
- [Authentik::Api::PlexSourceRequest](docs/PlexSourceRequest.md)
|
|
1959
1974
|
- [Authentik::Api::PlexTokenRedeemRequest](docs/PlexTokenRedeemRequest.md)
|
|
1960
1975
|
- [Authentik::Api::Policy](docs/Policy.md)
|
|
1976
|
+
- [Authentik::Api::PolicyBehaviorEnum](docs/PolicyBehaviorEnum.md)
|
|
1961
1977
|
- [Authentik::Api::PolicyBinding](docs/PolicyBinding.md)
|
|
1962
1978
|
- [Authentik::Api::PolicyBindingRequest](docs/PolicyBindingRequest.md)
|
|
1963
1979
|
- [Authentik::Api::PolicyEngineMode](docs/PolicyEngineMode.md)
|
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'cgi'
|
|
8
|
+
|
|
9
|
+
module Authentik::Api
|
|
10
|
+
class AgentsApi
|
|
11
|
+
attr_accessor :api_client
|
|
12
|
+
|
|
13
|
+
def initialize(api_client = ApiClient.default)
|
|
14
|
+
@api_client = api_client
|
|
15
|
+
end
|
|
16
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
17
|
+
# @param [Hash] opts the optional parameters
|
|
18
|
+
# @option opts [AgentCreateRequest] :agent_create_request
|
|
19
|
+
# @return [AgentCreated]
|
|
20
|
+
def agents_agents_create(opts = {})
|
|
21
|
+
data, _status_code, _headers = agents_agents_create_with_http_info(opts)
|
|
22
|
+
data
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [AgentCreateRequest] :agent_create_request
|
|
28
|
+
# @return [Array<(AgentCreated, Integer, Hash)>] AgentCreated data, response status code and response headers
|
|
29
|
+
def agents_agents_create_with_http_info(opts = {})
|
|
30
|
+
if @api_client.config.debugging
|
|
31
|
+
@api_client.config.logger.debug 'Calling API: AgentsApi.agents_agents_create ...'
|
|
32
|
+
end
|
|
33
|
+
# resource path
|
|
34
|
+
local_var_path = '/agents/agents/'
|
|
35
|
+
|
|
36
|
+
# query parameters
|
|
37
|
+
query_params = opts[:query_params] || {}
|
|
38
|
+
|
|
39
|
+
# header parameters
|
|
40
|
+
header_params = opts[:header_params] || {}
|
|
41
|
+
# HTTP header 'Accept' (if needed)
|
|
42
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
43
|
+
# HTTP header 'Content-Type'
|
|
44
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
45
|
+
if !content_type.nil?
|
|
46
|
+
header_params['Content-Type'] = content_type
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# form parameters
|
|
50
|
+
form_params = opts[:form_params] || {}
|
|
51
|
+
|
|
52
|
+
# http body (model)
|
|
53
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'agent_create_request'])
|
|
54
|
+
|
|
55
|
+
# return_type
|
|
56
|
+
return_type = opts[:debug_return_type] || 'AgentCreated'
|
|
57
|
+
|
|
58
|
+
# auth_names
|
|
59
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
60
|
+
|
|
61
|
+
new_options = opts.merge(
|
|
62
|
+
:operation => :"AgentsApi.agents_agents_create",
|
|
63
|
+
:header_params => header_params,
|
|
64
|
+
:query_params => query_params,
|
|
65
|
+
:form_params => form_params,
|
|
66
|
+
:body => post_body,
|
|
67
|
+
:auth_names => auth_names,
|
|
68
|
+
:return_type => return_type
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
72
|
+
if @api_client.config.debugging
|
|
73
|
+
@api_client.config.logger.debug "API called: AgentsApi#agents_agents_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
74
|
+
end
|
|
75
|
+
return data, status_code, headers
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
79
|
+
# @param id [Integer] A unique integer value identifying this Agent.
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @return [nil]
|
|
82
|
+
def agents_agents_destroy(id, opts = {})
|
|
83
|
+
agents_agents_destroy_with_http_info(id, opts)
|
|
84
|
+
nil
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
88
|
+
# @param id [Integer] A unique integer value identifying this Agent.
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
91
|
+
def agents_agents_destroy_with_http_info(id, opts = {})
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug 'Calling API: AgentsApi.agents_agents_destroy ...'
|
|
94
|
+
end
|
|
95
|
+
# verify the required parameter 'id' is set
|
|
96
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
97
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AgentsApi.agents_agents_destroy"
|
|
98
|
+
end
|
|
99
|
+
# resource path
|
|
100
|
+
local_var_path = '/agents/agents/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
101
|
+
|
|
102
|
+
# query parameters
|
|
103
|
+
query_params = opts[:query_params] || {}
|
|
104
|
+
|
|
105
|
+
# header parameters
|
|
106
|
+
header_params = opts[:header_params] || {}
|
|
107
|
+
# HTTP header 'Accept' (if needed)
|
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
109
|
+
|
|
110
|
+
# form parameters
|
|
111
|
+
form_params = opts[:form_params] || {}
|
|
112
|
+
|
|
113
|
+
# http body (model)
|
|
114
|
+
post_body = opts[:debug_body]
|
|
115
|
+
|
|
116
|
+
# return_type
|
|
117
|
+
return_type = opts[:debug_return_type]
|
|
118
|
+
|
|
119
|
+
# auth_names
|
|
120
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
121
|
+
|
|
122
|
+
new_options = opts.merge(
|
|
123
|
+
:operation => :"AgentsApi.agents_agents_destroy",
|
|
124
|
+
:header_params => header_params,
|
|
125
|
+
:query_params => query_params,
|
|
126
|
+
:form_params => form_params,
|
|
127
|
+
:body => post_body,
|
|
128
|
+
:auth_names => auth_names,
|
|
129
|
+
:return_type => return_type
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
133
|
+
if @api_client.config.debugging
|
|
134
|
+
@api_client.config.logger.debug "API called: AgentsApi#agents_agents_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
135
|
+
end
|
|
136
|
+
return data, status_code, headers
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
140
|
+
# @param [Hash] opts the optional parameters
|
|
141
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
142
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
143
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
144
|
+
# @option opts [Integer] :parent
|
|
145
|
+
# @option opts [String] :search A search term.
|
|
146
|
+
# @return [PaginatedAgentList]
|
|
147
|
+
def agents_agents_list(opts = {})
|
|
148
|
+
data, _status_code, _headers = agents_agents_list_with_http_info(opts)
|
|
149
|
+
data
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
153
|
+
# @param [Hash] opts the optional parameters
|
|
154
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
155
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
156
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
157
|
+
# @option opts [Integer] :parent
|
|
158
|
+
# @option opts [String] :search A search term.
|
|
159
|
+
# @return [Array<(PaginatedAgentList, Integer, Hash)>] PaginatedAgentList data, response status code and response headers
|
|
160
|
+
def agents_agents_list_with_http_info(opts = {})
|
|
161
|
+
if @api_client.config.debugging
|
|
162
|
+
@api_client.config.logger.debug 'Calling API: AgentsApi.agents_agents_list ...'
|
|
163
|
+
end
|
|
164
|
+
# resource path
|
|
165
|
+
local_var_path = '/agents/agents/'
|
|
166
|
+
|
|
167
|
+
# query parameters
|
|
168
|
+
query_params = opts[:query_params] || {}
|
|
169
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
170
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
171
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
172
|
+
query_params[:'parent'] = opts[:'parent'] if !opts[:'parent'].nil?
|
|
173
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
174
|
+
|
|
175
|
+
# header parameters
|
|
176
|
+
header_params = opts[:header_params] || {}
|
|
177
|
+
# HTTP header 'Accept' (if needed)
|
|
178
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
179
|
+
|
|
180
|
+
# form parameters
|
|
181
|
+
form_params = opts[:form_params] || {}
|
|
182
|
+
|
|
183
|
+
# http body (model)
|
|
184
|
+
post_body = opts[:debug_body]
|
|
185
|
+
|
|
186
|
+
# return_type
|
|
187
|
+
return_type = opts[:debug_return_type] || 'PaginatedAgentList'
|
|
188
|
+
|
|
189
|
+
# auth_names
|
|
190
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
191
|
+
|
|
192
|
+
new_options = opts.merge(
|
|
193
|
+
:operation => :"AgentsApi.agents_agents_list",
|
|
194
|
+
:header_params => header_params,
|
|
195
|
+
:query_params => query_params,
|
|
196
|
+
:form_params => form_params,
|
|
197
|
+
:body => post_body,
|
|
198
|
+
:auth_names => auth_names,
|
|
199
|
+
:return_type => return_type
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
203
|
+
if @api_client.config.debugging
|
|
204
|
+
@api_client.config.logger.debug "API called: AgentsApi#agents_agents_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
205
|
+
end
|
|
206
|
+
return data, status_code, headers
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
210
|
+
# @param id [Integer] A unique integer value identifying this Agent.
|
|
211
|
+
# @param [Hash] opts the optional parameters
|
|
212
|
+
# @option opts [PatchedAgentRequest] :patched_agent_request
|
|
213
|
+
# @return [Agent]
|
|
214
|
+
def agents_agents_partial_update(id, opts = {})
|
|
215
|
+
data, _status_code, _headers = agents_agents_partial_update_with_http_info(id, opts)
|
|
216
|
+
data
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
220
|
+
# @param id [Integer] A unique integer value identifying this Agent.
|
|
221
|
+
# @param [Hash] opts the optional parameters
|
|
222
|
+
# @option opts [PatchedAgentRequest] :patched_agent_request
|
|
223
|
+
# @return [Array<(Agent, Integer, Hash)>] Agent data, response status code and response headers
|
|
224
|
+
def agents_agents_partial_update_with_http_info(id, opts = {})
|
|
225
|
+
if @api_client.config.debugging
|
|
226
|
+
@api_client.config.logger.debug 'Calling API: AgentsApi.agents_agents_partial_update ...'
|
|
227
|
+
end
|
|
228
|
+
# verify the required parameter 'id' is set
|
|
229
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
230
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AgentsApi.agents_agents_partial_update"
|
|
231
|
+
end
|
|
232
|
+
# resource path
|
|
233
|
+
local_var_path = '/agents/agents/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
234
|
+
|
|
235
|
+
# query parameters
|
|
236
|
+
query_params = opts[:query_params] || {}
|
|
237
|
+
|
|
238
|
+
# header parameters
|
|
239
|
+
header_params = opts[:header_params] || {}
|
|
240
|
+
# HTTP header 'Accept' (if needed)
|
|
241
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
242
|
+
# HTTP header 'Content-Type'
|
|
243
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
244
|
+
if !content_type.nil?
|
|
245
|
+
header_params['Content-Type'] = content_type
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# form parameters
|
|
249
|
+
form_params = opts[:form_params] || {}
|
|
250
|
+
|
|
251
|
+
# http body (model)
|
|
252
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'patched_agent_request'])
|
|
253
|
+
|
|
254
|
+
# return_type
|
|
255
|
+
return_type = opts[:debug_return_type] || 'Agent'
|
|
256
|
+
|
|
257
|
+
# auth_names
|
|
258
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
259
|
+
|
|
260
|
+
new_options = opts.merge(
|
|
261
|
+
:operation => :"AgentsApi.agents_agents_partial_update",
|
|
262
|
+
:header_params => header_params,
|
|
263
|
+
:query_params => query_params,
|
|
264
|
+
:form_params => form_params,
|
|
265
|
+
:body => post_body,
|
|
266
|
+
:auth_names => auth_names,
|
|
267
|
+
:return_type => return_type
|
|
268
|
+
)
|
|
269
|
+
|
|
270
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
271
|
+
if @api_client.config.debugging
|
|
272
|
+
@api_client.config.logger.debug "API called: AgentsApi#agents_agents_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
273
|
+
end
|
|
274
|
+
return data, status_code, headers
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
278
|
+
# @param id [Integer] A unique integer value identifying this Agent.
|
|
279
|
+
# @param [Hash] opts the optional parameters
|
|
280
|
+
# @return [Agent]
|
|
281
|
+
def agents_agents_retrieve(id, opts = {})
|
|
282
|
+
data, _status_code, _headers = agents_agents_retrieve_with_http_info(id, opts)
|
|
283
|
+
data
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
287
|
+
# @param id [Integer] A unique integer value identifying this Agent.
|
|
288
|
+
# @param [Hash] opts the optional parameters
|
|
289
|
+
# @return [Array<(Agent, Integer, Hash)>] Agent data, response status code and response headers
|
|
290
|
+
def agents_agents_retrieve_with_http_info(id, opts = {})
|
|
291
|
+
if @api_client.config.debugging
|
|
292
|
+
@api_client.config.logger.debug 'Calling API: AgentsApi.agents_agents_retrieve ...'
|
|
293
|
+
end
|
|
294
|
+
# verify the required parameter 'id' is set
|
|
295
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
296
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AgentsApi.agents_agents_retrieve"
|
|
297
|
+
end
|
|
298
|
+
# resource path
|
|
299
|
+
local_var_path = '/agents/agents/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
300
|
+
|
|
301
|
+
# query parameters
|
|
302
|
+
query_params = opts[:query_params] || {}
|
|
303
|
+
|
|
304
|
+
# header parameters
|
|
305
|
+
header_params = opts[:header_params] || {}
|
|
306
|
+
# HTTP header 'Accept' (if needed)
|
|
307
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
308
|
+
|
|
309
|
+
# form parameters
|
|
310
|
+
form_params = opts[:form_params] || {}
|
|
311
|
+
|
|
312
|
+
# http body (model)
|
|
313
|
+
post_body = opts[:debug_body]
|
|
314
|
+
|
|
315
|
+
# return_type
|
|
316
|
+
return_type = opts[:debug_return_type] || 'Agent'
|
|
317
|
+
|
|
318
|
+
# auth_names
|
|
319
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
320
|
+
|
|
321
|
+
new_options = opts.merge(
|
|
322
|
+
:operation => :"AgentsApi.agents_agents_retrieve",
|
|
323
|
+
:header_params => header_params,
|
|
324
|
+
:query_params => query_params,
|
|
325
|
+
:form_params => form_params,
|
|
326
|
+
:body => post_body,
|
|
327
|
+
:auth_names => auth_names,
|
|
328
|
+
:return_type => return_type
|
|
329
|
+
)
|
|
330
|
+
|
|
331
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
332
|
+
if @api_client.config.debugging
|
|
333
|
+
@api_client.config.logger.debug "API called: AgentsApi#agents_agents_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
334
|
+
end
|
|
335
|
+
return data, status_code, headers
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
339
|
+
# @param id [Integer] A unique integer value identifying this Agent.
|
|
340
|
+
# @param agent_request [AgentRequest]
|
|
341
|
+
# @param [Hash] opts the optional parameters
|
|
342
|
+
# @return [Agent]
|
|
343
|
+
def agents_agents_update(id, agent_request, opts = {})
|
|
344
|
+
data, _status_code, _headers = agents_agents_update_with_http_info(id, agent_request, opts)
|
|
345
|
+
data
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
# Admin-provisioned delegate identities. An admin creates a Agent for a given parent user, then grants it access the same way as any other User -- ordinary PolicyBindings pointed at whatever it needs.
|
|
349
|
+
# @param id [Integer] A unique integer value identifying this Agent.
|
|
350
|
+
# @param agent_request [AgentRequest]
|
|
351
|
+
# @param [Hash] opts the optional parameters
|
|
352
|
+
# @return [Array<(Agent, Integer, Hash)>] Agent data, response status code and response headers
|
|
353
|
+
def agents_agents_update_with_http_info(id, agent_request, opts = {})
|
|
354
|
+
if @api_client.config.debugging
|
|
355
|
+
@api_client.config.logger.debug 'Calling API: AgentsApi.agents_agents_update ...'
|
|
356
|
+
end
|
|
357
|
+
# verify the required parameter 'id' is set
|
|
358
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
359
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AgentsApi.agents_agents_update"
|
|
360
|
+
end
|
|
361
|
+
# verify the required parameter 'agent_request' is set
|
|
362
|
+
if @api_client.config.client_side_validation && agent_request.nil?
|
|
363
|
+
fail ArgumentError, "Missing the required parameter 'agent_request' when calling AgentsApi.agents_agents_update"
|
|
364
|
+
end
|
|
365
|
+
# resource path
|
|
366
|
+
local_var_path = '/agents/agents/{id}/'.sub('{id}', CGI.escape(id.to_s))
|
|
367
|
+
|
|
368
|
+
# query parameters
|
|
369
|
+
query_params = opts[:query_params] || {}
|
|
370
|
+
|
|
371
|
+
# header parameters
|
|
372
|
+
header_params = opts[:header_params] || {}
|
|
373
|
+
# HTTP header 'Accept' (if needed)
|
|
374
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
375
|
+
# HTTP header 'Content-Type'
|
|
376
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
377
|
+
if !content_type.nil?
|
|
378
|
+
header_params['Content-Type'] = content_type
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# form parameters
|
|
382
|
+
form_params = opts[:form_params] || {}
|
|
383
|
+
|
|
384
|
+
# http body (model)
|
|
385
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(agent_request)
|
|
386
|
+
|
|
387
|
+
# return_type
|
|
388
|
+
return_type = opts[:debug_return_type] || 'Agent'
|
|
389
|
+
|
|
390
|
+
# auth_names
|
|
391
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
392
|
+
|
|
393
|
+
new_options = opts.merge(
|
|
394
|
+
:operation => :"AgentsApi.agents_agents_update",
|
|
395
|
+
:header_params => header_params,
|
|
396
|
+
:query_params => query_params,
|
|
397
|
+
:form_params => form_params,
|
|
398
|
+
:body => post_body,
|
|
399
|
+
:auth_names => auth_names,
|
|
400
|
+
:return_type => return_type
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
404
|
+
if @api_client.config.debugging
|
|
405
|
+
@api_client.config.logger.debug "API called: AgentsApi#agents_agents_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
406
|
+
end
|
|
407
|
+
return data, status_code, headers
|
|
408
|
+
end
|
|
409
|
+
end
|
|
410
|
+
end
|
|
@@ -13,6 +13,72 @@ module Authentik::Api
|
|
|
13
13
|
def initialize(api_client = ApiClient.default)
|
|
14
14
|
@api_client = api_client
|
|
15
15
|
end
|
|
16
|
+
# Delegate access an agent's owner already holds to the agent, time-boxed. Unlike `create` this persists the request directly instead of returning a flow link -- an agent authenticates with an API token and has no browser to run a flow in, so no justification is ever collected. That is why the agent may only ask for what its owner already has: the owner's approval is then the whole decision, and no reviewer is asked to judge a request with nothing in it. The returned `fulfill_url` is what the agent hands to its owner so they can act on it.
|
|
17
|
+
# @param agent_grant_request_create_request [AgentGrantRequestCreateRequest]
|
|
18
|
+
# @param [Hash] opts the optional parameters
|
|
19
|
+
# @return [AgentGrantRequestCreated]
|
|
20
|
+
def requests_grant_requests_agent_create(agent_grant_request_create_request, opts = {})
|
|
21
|
+
data, _status_code, _headers = requests_grant_requests_agent_create_with_http_info(agent_grant_request_create_request, opts)
|
|
22
|
+
data
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Delegate access an agent's owner already holds to the agent, time-boxed. Unlike `create` this persists the request directly instead of returning a flow link -- an agent authenticates with an API token and has no browser to run a flow in, so no justification is ever collected. That is why the agent may only ask for what its owner already has: the owner's approval is then the whole decision, and no reviewer is asked to judge a request with nothing in it. The returned `fulfill_url` is what the agent hands to its owner so they can act on it.
|
|
26
|
+
# @param agent_grant_request_create_request [AgentGrantRequestCreateRequest]
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [Array<(AgentGrantRequestCreated, Integer, Hash)>] AgentGrantRequestCreated data, response status code and response headers
|
|
29
|
+
def requests_grant_requests_agent_create_with_http_info(agent_grant_request_create_request, opts = {})
|
|
30
|
+
if @api_client.config.debugging
|
|
31
|
+
@api_client.config.logger.debug 'Calling API: RequestsApi.requests_grant_requests_agent_create ...'
|
|
32
|
+
end
|
|
33
|
+
# verify the required parameter 'agent_grant_request_create_request' is set
|
|
34
|
+
if @api_client.config.client_side_validation && agent_grant_request_create_request.nil?
|
|
35
|
+
fail ArgumentError, "Missing the required parameter 'agent_grant_request_create_request' when calling RequestsApi.requests_grant_requests_agent_create"
|
|
36
|
+
end
|
|
37
|
+
# resource path
|
|
38
|
+
local_var_path = '/requests/grant-requests/agent/'
|
|
39
|
+
|
|
40
|
+
# query parameters
|
|
41
|
+
query_params = opts[:query_params] || {}
|
|
42
|
+
|
|
43
|
+
# header parameters
|
|
44
|
+
header_params = opts[:header_params] || {}
|
|
45
|
+
# HTTP header 'Accept' (if needed)
|
|
46
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
47
|
+
# HTTP header 'Content-Type'
|
|
48
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
49
|
+
if !content_type.nil?
|
|
50
|
+
header_params['Content-Type'] = content_type
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# form parameters
|
|
54
|
+
form_params = opts[:form_params] || {}
|
|
55
|
+
|
|
56
|
+
# http body (model)
|
|
57
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(agent_grant_request_create_request)
|
|
58
|
+
|
|
59
|
+
# return_type
|
|
60
|
+
return_type = opts[:debug_return_type] || 'AgentGrantRequestCreated'
|
|
61
|
+
|
|
62
|
+
# auth_names
|
|
63
|
+
auth_names = opts[:debug_auth_names] || ['authentik']
|
|
64
|
+
|
|
65
|
+
new_options = opts.merge(
|
|
66
|
+
:operation => :"RequestsApi.requests_grant_requests_agent_create",
|
|
67
|
+
:header_params => header_params,
|
|
68
|
+
:query_params => query_params,
|
|
69
|
+
:form_params => form_params,
|
|
70
|
+
:body => post_body,
|
|
71
|
+
:auth_names => auth_names,
|
|
72
|
+
:return_type => return_type
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
76
|
+
if @api_client.config.debugging
|
|
77
|
+
@api_client.config.logger.debug "API called: RequestsApi#requests_grant_requests_agent_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
78
|
+
end
|
|
79
|
+
return data, status_code, headers
|
|
80
|
+
end
|
|
81
|
+
|
|
16
82
|
# @param grant_request_create_request [GrantRequestCreateRequest]
|
|
17
83
|
# @param [Hash] opts the optional parameters
|
|
18
84
|
# @return [Link]
|
|
@@ -203,6 +269,7 @@ module Authentik::Api
|
|
|
203
269
|
end
|
|
204
270
|
|
|
205
271
|
# @param [Hash] opts the optional parameters
|
|
272
|
+
# @option opts [Integer] :agent_owner
|
|
206
273
|
# @option opts [Integer] :created_by
|
|
207
274
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
208
275
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -216,6 +283,7 @@ module Authentik::Api
|
|
|
216
283
|
end
|
|
217
284
|
|
|
218
285
|
# @param [Hash] opts the optional parameters
|
|
286
|
+
# @option opts [Integer] :agent_owner
|
|
219
287
|
# @option opts [Integer] :created_by
|
|
220
288
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
221
289
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -232,6 +300,7 @@ module Authentik::Api
|
|
|
232
300
|
|
|
233
301
|
# query parameters
|
|
234
302
|
query_params = opts[:query_params] || {}
|
|
303
|
+
query_params[:'agent_owner'] = opts[:'agent_owner'] if !opts[:'agent_owner'].nil?
|
|
235
304
|
query_params[:'created_by'] = opts[:'created_by'] if !opts[:'created_by'].nil?
|
|
236
305
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
237
306
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
@@ -275,6 +344,7 @@ module Authentik::Api
|
|
|
275
344
|
|
|
276
345
|
# List pending grant requests the current user is eligible to review.
|
|
277
346
|
# @param [Hash] opts the optional parameters
|
|
347
|
+
# @option opts [Integer] :agent_owner
|
|
278
348
|
# @option opts [Integer] :created_by
|
|
279
349
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
280
350
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -289,6 +359,7 @@ module Authentik::Api
|
|
|
289
359
|
|
|
290
360
|
# List pending grant requests the current user is eligible to review.
|
|
291
361
|
# @param [Hash] opts the optional parameters
|
|
362
|
+
# @option opts [Integer] :agent_owner
|
|
292
363
|
# @option opts [Integer] :created_by
|
|
293
364
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
294
365
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
@@ -305,6 +376,7 @@ module Authentik::Api
|
|
|
305
376
|
|
|
306
377
|
# query parameters
|
|
307
378
|
query_params = opts[:query_params] || {}
|
|
379
|
+
query_params[:'agent_owner'] = opts[:'agent_owner'] if !opts[:'agent_owner'].nil?
|
|
308
380
|
query_params[:'created_by'] = opts[:'created_by'] if !opts[:'created_by'].nil?
|
|
309
381
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
310
382
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|