@goauthentik/api 2023.10.7-1707321538 → 2023.10.7-1707933453
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.
- package/.openapi-generator/FILES +4 -0
- package/dist/apis/RacApi.d.ts +75 -1
- package/dist/apis/RacApi.js +210 -0
- package/dist/esm/apis/RacApi.d.ts +75 -1
- package/dist/esm/apis/RacApi.js +211 -1
- package/dist/esm/models/AppEnum.d.ts +2 -2
- package/dist/esm/models/AppEnum.js +2 -2
- package/dist/esm/models/ConnectionToken.d.ts +64 -0
- package/dist/esm/models/ConnectionToken.js +56 -0
- package/dist/esm/models/ConnectionTokenRequest.d.ts +31 -0
- package/dist/esm/models/ConnectionTokenRequest.js +43 -0
- package/dist/esm/models/ModelEnum.d.ts +10 -10
- package/dist/esm/models/ModelEnum.js +10 -10
- package/dist/esm/models/PaginatedConnectionTokenList.d.ts +39 -0
- package/dist/esm/models/PaginatedConnectionTokenList.js +48 -0
- package/dist/esm/models/PatchedConnectionTokenRequest.d.ts +31 -0
- package/dist/esm/models/PatchedConnectionTokenRequest.js +43 -0
- package/dist/esm/models/PatchedRACProviderRequest.d.ts +6 -0
- package/dist/esm/models/PatchedRACProviderRequest.js +2 -0
- package/dist/esm/models/RACProvider.d.ts +6 -0
- package/dist/esm/models/RACProvider.js +2 -0
- package/dist/esm/models/RACProviderRequest.d.ts +6 -0
- package/dist/esm/models/RACProviderRequest.js +2 -0
- package/dist/esm/models/UserConsent.d.ts +6 -0
- package/dist/esm/models/UserConsent.js +2 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/AppEnum.d.ts +2 -2
- package/dist/models/AppEnum.js +2 -2
- package/dist/models/ConnectionToken.d.ts +64 -0
- package/dist/models/ConnectionToken.js +63 -0
- package/dist/models/ConnectionTokenRequest.d.ts +31 -0
- package/dist/models/ConnectionTokenRequest.js +50 -0
- package/dist/models/ModelEnum.d.ts +10 -10
- package/dist/models/ModelEnum.js +10 -10
- package/dist/models/PaginatedConnectionTokenList.d.ts +39 -0
- package/dist/models/PaginatedConnectionTokenList.js +55 -0
- package/dist/models/PatchedConnectionTokenRequest.d.ts +31 -0
- package/dist/models/PatchedConnectionTokenRequest.js +50 -0
- package/dist/models/PatchedRACProviderRequest.d.ts +6 -0
- package/dist/models/PatchedRACProviderRequest.js +2 -0
- package/dist/models/RACProvider.d.ts +6 -0
- package/dist/models/RACProvider.js +2 -0
- package/dist/models/RACProviderRequest.d.ts +6 -0
- package/dist/models/RACProviderRequest.js +2 -0
- package/dist/models/UserConsent.d.ts +6 -0
- package/dist/models/UserConsent.js +2 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/RacApi.ts +281 -0
- package/src/models/AppEnum.ts +2 -2
- package/src/models/ConnectionToken.ts +125 -0
- package/src/models/ConnectionTokenRequest.ts +66 -0
- package/src/models/ModelEnum.ts +10 -10
- package/src/models/PaginatedConnectionTokenList.ts +88 -0
- package/src/models/PatchedConnectionTokenRequest.ts +65 -0
- package/src/models/PatchedRACProviderRequest.ts +8 -0
- package/src/models/RACProvider.ts +8 -0
- package/src/models/RACProviderRequest.ts +8 -0
- package/src/models/UserConsent.ts +8 -0
- package/src/models/index.ts +4 -0
|
@@ -39,6 +39,7 @@ function UserConsentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
return {
|
|
40
40
|
'pk': json['pk'],
|
|
41
41
|
'expires': !(0, runtime_1.exists)(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
42
|
+
'expiring': !(0, runtime_1.exists)(json, 'expiring') ? undefined : json['expiring'],
|
|
42
43
|
'user': (0, User_1.UserFromJSON)(json['user']),
|
|
43
44
|
'application': (0, Application_1.ApplicationFromJSON)(json['application']),
|
|
44
45
|
'permissions': !(0, runtime_1.exists)(json, 'permissions') ? undefined : json['permissions'],
|
|
@@ -54,6 +55,7 @@ function UserConsentToJSON(value) {
|
|
|
54
55
|
}
|
|
55
56
|
return {
|
|
56
57
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
58
|
+
'expiring': value.expiring,
|
|
57
59
|
'user': (0, User_1.UserToJSON)(value.user),
|
|
58
60
|
'application': (0, Application_1.ApplicationToJSON)(value.application),
|
|
59
61
|
'permissions': value.permissions,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ export * from './ChallengeChoices';
|
|
|
66
66
|
export * from './ChallengeTypes';
|
|
67
67
|
export * from './ClientTypeEnum';
|
|
68
68
|
export * from './Config';
|
|
69
|
+
export * from './ConnectionToken';
|
|
70
|
+
export * from './ConnectionTokenRequest';
|
|
69
71
|
export * from './ConsentChallenge';
|
|
70
72
|
export * from './ConsentChallengeResponseRequest';
|
|
71
73
|
export * from './ConsentPermission';
|
|
@@ -215,6 +217,7 @@ export * from './PaginatedBlueprintInstanceList';
|
|
|
215
217
|
export * from './PaginatedBrandList';
|
|
216
218
|
export * from './PaginatedCaptchaStageList';
|
|
217
219
|
export * from './PaginatedCertificateKeyPairList';
|
|
220
|
+
export * from './PaginatedConnectionTokenList';
|
|
218
221
|
export * from './PaginatedConsentStageList';
|
|
219
222
|
export * from './PaginatedDenyStageList';
|
|
220
223
|
export * from './PaginatedDockerServiceConnectionList';
|
|
@@ -318,6 +321,7 @@ export * from './PatchedBlueprintInstanceRequest';
|
|
|
318
321
|
export * from './PatchedBrandRequest';
|
|
319
322
|
export * from './PatchedCaptchaStageRequest';
|
|
320
323
|
export * from './PatchedCertificateKeyPairRequest';
|
|
324
|
+
export * from './PatchedConnectionTokenRequest';
|
|
321
325
|
export * from './PatchedConsentStageRequest';
|
|
322
326
|
export * from './PatchedDenyStageRequest';
|
|
323
327
|
export * from './PatchedDockerServiceConnectionRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -84,6 +84,8 @@ __exportStar(require("./ChallengeChoices"), exports);
|
|
|
84
84
|
__exportStar(require("./ChallengeTypes"), exports);
|
|
85
85
|
__exportStar(require("./ClientTypeEnum"), exports);
|
|
86
86
|
__exportStar(require("./Config"), exports);
|
|
87
|
+
__exportStar(require("./ConnectionToken"), exports);
|
|
88
|
+
__exportStar(require("./ConnectionTokenRequest"), exports);
|
|
87
89
|
__exportStar(require("./ConsentChallenge"), exports);
|
|
88
90
|
__exportStar(require("./ConsentChallengeResponseRequest"), exports);
|
|
89
91
|
__exportStar(require("./ConsentPermission"), exports);
|
|
@@ -233,6 +235,7 @@ __exportStar(require("./PaginatedBlueprintInstanceList"), exports);
|
|
|
233
235
|
__exportStar(require("./PaginatedBrandList"), exports);
|
|
234
236
|
__exportStar(require("./PaginatedCaptchaStageList"), exports);
|
|
235
237
|
__exportStar(require("./PaginatedCertificateKeyPairList"), exports);
|
|
238
|
+
__exportStar(require("./PaginatedConnectionTokenList"), exports);
|
|
236
239
|
__exportStar(require("./PaginatedConsentStageList"), exports);
|
|
237
240
|
__exportStar(require("./PaginatedDenyStageList"), exports);
|
|
238
241
|
__exportStar(require("./PaginatedDockerServiceConnectionList"), exports);
|
|
@@ -336,6 +339,7 @@ __exportStar(require("./PatchedBlueprintInstanceRequest"), exports);
|
|
|
336
339
|
__exportStar(require("./PatchedBrandRequest"), exports);
|
|
337
340
|
__exportStar(require("./PatchedCaptchaStageRequest"), exports);
|
|
338
341
|
__exportStar(require("./PatchedCertificateKeyPairRequest"), exports);
|
|
342
|
+
__exportStar(require("./PatchedConnectionTokenRequest"), exports);
|
|
339
343
|
__exportStar(require("./PatchedConsentStageRequest"), exports);
|
|
340
344
|
__exportStar(require("./PatchedDenyStageRequest"), exports);
|
|
341
345
|
__exportStar(require("./PatchedDockerServiceConnectionRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/RacApi.ts
CHANGED
|
@@ -15,23 +15,35 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ConnectionToken,
|
|
19
|
+
ConnectionTokenRequest,
|
|
18
20
|
Endpoint,
|
|
19
21
|
EndpointRequest,
|
|
20
22
|
GenericError,
|
|
23
|
+
PaginatedConnectionTokenList,
|
|
21
24
|
PaginatedEndpointList,
|
|
25
|
+
PatchedConnectionTokenRequest,
|
|
22
26
|
PatchedEndpointRequest,
|
|
23
27
|
UsedBy,
|
|
24
28
|
ValidationError,
|
|
25
29
|
} from '../models';
|
|
26
30
|
import {
|
|
31
|
+
ConnectionTokenFromJSON,
|
|
32
|
+
ConnectionTokenToJSON,
|
|
33
|
+
ConnectionTokenRequestFromJSON,
|
|
34
|
+
ConnectionTokenRequestToJSON,
|
|
27
35
|
EndpointFromJSON,
|
|
28
36
|
EndpointToJSON,
|
|
29
37
|
EndpointRequestFromJSON,
|
|
30
38
|
EndpointRequestToJSON,
|
|
31
39
|
GenericErrorFromJSON,
|
|
32
40
|
GenericErrorToJSON,
|
|
41
|
+
PaginatedConnectionTokenListFromJSON,
|
|
42
|
+
PaginatedConnectionTokenListToJSON,
|
|
33
43
|
PaginatedEndpointListFromJSON,
|
|
34
44
|
PaginatedEndpointListToJSON,
|
|
45
|
+
PatchedConnectionTokenRequestFromJSON,
|
|
46
|
+
PatchedConnectionTokenRequestToJSON,
|
|
35
47
|
PatchedEndpointRequestFromJSON,
|
|
36
48
|
PatchedEndpointRequestToJSON,
|
|
37
49
|
UsedByFromJSON,
|
|
@@ -40,6 +52,38 @@ import {
|
|
|
40
52
|
ValidationErrorToJSON,
|
|
41
53
|
} from '../models';
|
|
42
54
|
|
|
55
|
+
export interface RacConnectionTokensDestroyRequest {
|
|
56
|
+
connectionTokenUuid: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface RacConnectionTokensListRequest {
|
|
60
|
+
endpoint?: string;
|
|
61
|
+
ordering?: string;
|
|
62
|
+
page?: number;
|
|
63
|
+
pageSize?: number;
|
|
64
|
+
provider?: number;
|
|
65
|
+
search?: string;
|
|
66
|
+
sessionUser?: number;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface RacConnectionTokensPartialUpdateRequest {
|
|
70
|
+
connectionTokenUuid: string;
|
|
71
|
+
patchedConnectionTokenRequest?: PatchedConnectionTokenRequest;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface RacConnectionTokensRetrieveRequest {
|
|
75
|
+
connectionTokenUuid: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface RacConnectionTokensUpdateRequest {
|
|
79
|
+
connectionTokenUuid: string;
|
|
80
|
+
connectionTokenRequest: ConnectionTokenRequest;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface RacConnectionTokensUsedByListRequest {
|
|
84
|
+
connectionTokenUuid: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
43
87
|
export interface RacEndpointsCreateRequest {
|
|
44
88
|
endpointRequest: EndpointRequest;
|
|
45
89
|
}
|
|
@@ -81,6 +125,243 @@ export interface RacEndpointsUsedByListRequest {
|
|
|
81
125
|
*/
|
|
82
126
|
export class RacApi extends runtime.BaseAPI {
|
|
83
127
|
|
|
128
|
+
/**
|
|
129
|
+
* ConnectionToken Viewset
|
|
130
|
+
*/
|
|
131
|
+
async racConnectionTokensDestroyRaw(requestParameters: RacConnectionTokensDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
132
|
+
if (requestParameters.connectionTokenUuid === null || requestParameters.connectionTokenUuid === undefined) {
|
|
133
|
+
throw new runtime.RequiredError('connectionTokenUuid','Required parameter requestParameters.connectionTokenUuid was null or undefined when calling racConnectionTokensDestroy.');
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const queryParameters: any = {};
|
|
137
|
+
|
|
138
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
139
|
+
|
|
140
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
141
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const response = await this.request({
|
|
145
|
+
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
|
146
|
+
method: 'DELETE',
|
|
147
|
+
headers: headerParameters,
|
|
148
|
+
query: queryParameters,
|
|
149
|
+
}, initOverrides);
|
|
150
|
+
|
|
151
|
+
return new runtime.VoidApiResponse(response);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* ConnectionToken Viewset
|
|
156
|
+
*/
|
|
157
|
+
async racConnectionTokensDestroy(requestParameters: RacConnectionTokensDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
158
|
+
await this.racConnectionTokensDestroyRaw(requestParameters, initOverrides);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* ConnectionToken Viewset
|
|
163
|
+
*/
|
|
164
|
+
async racConnectionTokensListRaw(requestParameters: RacConnectionTokensListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedConnectionTokenList>> {
|
|
165
|
+
const queryParameters: any = {};
|
|
166
|
+
|
|
167
|
+
if (requestParameters.endpoint !== undefined) {
|
|
168
|
+
queryParameters['endpoint'] = requestParameters.endpoint;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (requestParameters.ordering !== undefined) {
|
|
172
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (requestParameters.page !== undefined) {
|
|
176
|
+
queryParameters['page'] = requestParameters.page;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (requestParameters.pageSize !== undefined) {
|
|
180
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (requestParameters.provider !== undefined) {
|
|
184
|
+
queryParameters['provider'] = requestParameters.provider;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (requestParameters.search !== undefined) {
|
|
188
|
+
queryParameters['search'] = requestParameters.search;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (requestParameters.sessionUser !== undefined) {
|
|
192
|
+
queryParameters['session__user'] = requestParameters.sessionUser;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
196
|
+
|
|
197
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
198
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
const response = await this.request({
|
|
202
|
+
path: `/rac/connection_tokens/`,
|
|
203
|
+
method: 'GET',
|
|
204
|
+
headers: headerParameters,
|
|
205
|
+
query: queryParameters,
|
|
206
|
+
}, initOverrides);
|
|
207
|
+
|
|
208
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedConnectionTokenListFromJSON(jsonValue));
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* ConnectionToken Viewset
|
|
213
|
+
*/
|
|
214
|
+
async racConnectionTokensList(requestParameters: RacConnectionTokensListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedConnectionTokenList> {
|
|
215
|
+
const response = await this.racConnectionTokensListRaw(requestParameters, initOverrides);
|
|
216
|
+
return await response.value();
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* ConnectionToken Viewset
|
|
221
|
+
*/
|
|
222
|
+
async racConnectionTokensPartialUpdateRaw(requestParameters: RacConnectionTokensPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectionToken>> {
|
|
223
|
+
if (requestParameters.connectionTokenUuid === null || requestParameters.connectionTokenUuid === undefined) {
|
|
224
|
+
throw new runtime.RequiredError('connectionTokenUuid','Required parameter requestParameters.connectionTokenUuid was null or undefined when calling racConnectionTokensPartialUpdate.');
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const queryParameters: any = {};
|
|
228
|
+
|
|
229
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
230
|
+
|
|
231
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
232
|
+
|
|
233
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
234
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const response = await this.request({
|
|
238
|
+
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
|
239
|
+
method: 'PATCH',
|
|
240
|
+
headers: headerParameters,
|
|
241
|
+
query: queryParameters,
|
|
242
|
+
body: PatchedConnectionTokenRequestToJSON(requestParameters.patchedConnectionTokenRequest),
|
|
243
|
+
}, initOverrides);
|
|
244
|
+
|
|
245
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectionTokenFromJSON(jsonValue));
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* ConnectionToken Viewset
|
|
250
|
+
*/
|
|
251
|
+
async racConnectionTokensPartialUpdate(requestParameters: RacConnectionTokensPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectionToken> {
|
|
252
|
+
const response = await this.racConnectionTokensPartialUpdateRaw(requestParameters, initOverrides);
|
|
253
|
+
return await response.value();
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* ConnectionToken Viewset
|
|
258
|
+
*/
|
|
259
|
+
async racConnectionTokensRetrieveRaw(requestParameters: RacConnectionTokensRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectionToken>> {
|
|
260
|
+
if (requestParameters.connectionTokenUuid === null || requestParameters.connectionTokenUuid === undefined) {
|
|
261
|
+
throw new runtime.RequiredError('connectionTokenUuid','Required parameter requestParameters.connectionTokenUuid was null or undefined when calling racConnectionTokensRetrieve.');
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const queryParameters: any = {};
|
|
265
|
+
|
|
266
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
267
|
+
|
|
268
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
269
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const response = await this.request({
|
|
273
|
+
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
|
274
|
+
method: 'GET',
|
|
275
|
+
headers: headerParameters,
|
|
276
|
+
query: queryParameters,
|
|
277
|
+
}, initOverrides);
|
|
278
|
+
|
|
279
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectionTokenFromJSON(jsonValue));
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* ConnectionToken Viewset
|
|
284
|
+
*/
|
|
285
|
+
async racConnectionTokensRetrieve(requestParameters: RacConnectionTokensRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectionToken> {
|
|
286
|
+
const response = await this.racConnectionTokensRetrieveRaw(requestParameters, initOverrides);
|
|
287
|
+
return await response.value();
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* ConnectionToken Viewset
|
|
292
|
+
*/
|
|
293
|
+
async racConnectionTokensUpdateRaw(requestParameters: RacConnectionTokensUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectionToken>> {
|
|
294
|
+
if (requestParameters.connectionTokenUuid === null || requestParameters.connectionTokenUuid === undefined) {
|
|
295
|
+
throw new runtime.RequiredError('connectionTokenUuid','Required parameter requestParameters.connectionTokenUuid was null or undefined when calling racConnectionTokensUpdate.');
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
if (requestParameters.connectionTokenRequest === null || requestParameters.connectionTokenRequest === undefined) {
|
|
299
|
+
throw new runtime.RequiredError('connectionTokenRequest','Required parameter requestParameters.connectionTokenRequest was null or undefined when calling racConnectionTokensUpdate.');
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
const queryParameters: any = {};
|
|
303
|
+
|
|
304
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
305
|
+
|
|
306
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
307
|
+
|
|
308
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
309
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const response = await this.request({
|
|
313
|
+
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
|
314
|
+
method: 'PUT',
|
|
315
|
+
headers: headerParameters,
|
|
316
|
+
query: queryParameters,
|
|
317
|
+
body: ConnectionTokenRequestToJSON(requestParameters.connectionTokenRequest),
|
|
318
|
+
}, initOverrides);
|
|
319
|
+
|
|
320
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectionTokenFromJSON(jsonValue));
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* ConnectionToken Viewset
|
|
325
|
+
*/
|
|
326
|
+
async racConnectionTokensUpdate(requestParameters: RacConnectionTokensUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectionToken> {
|
|
327
|
+
const response = await this.racConnectionTokensUpdateRaw(requestParameters, initOverrides);
|
|
328
|
+
return await response.value();
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Get a list of all objects that use this object
|
|
333
|
+
*/
|
|
334
|
+
async racConnectionTokensUsedByListRaw(requestParameters: RacConnectionTokensUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
|
335
|
+
if (requestParameters.connectionTokenUuid === null || requestParameters.connectionTokenUuid === undefined) {
|
|
336
|
+
throw new runtime.RequiredError('connectionTokenUuid','Required parameter requestParameters.connectionTokenUuid was null or undefined when calling racConnectionTokensUsedByList.');
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
const queryParameters: any = {};
|
|
340
|
+
|
|
341
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
342
|
+
|
|
343
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
344
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
const response = await this.request({
|
|
348
|
+
path: `/rac/connection_tokens/{connection_token_uuid}/used_by/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
|
349
|
+
method: 'GET',
|
|
350
|
+
headers: headerParameters,
|
|
351
|
+
query: queryParameters,
|
|
352
|
+
}, initOverrides);
|
|
353
|
+
|
|
354
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Get a list of all objects that use this object
|
|
359
|
+
*/
|
|
360
|
+
async racConnectionTokensUsedByList(requestParameters: RacConnectionTokensUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
|
361
|
+
const response = await this.racConnectionTokensUsedByListRaw(requestParameters, initOverrides);
|
|
362
|
+
return await response.value();
|
|
363
|
+
}
|
|
364
|
+
|
|
84
365
|
/**
|
|
85
366
|
* Endpoint Viewset
|
|
86
367
|
*/
|
package/src/models/AppEnum.ts
CHANGED
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
* * `authentik.admin` - authentik Admin
|
|
19
19
|
* * `authentik.api` - authentik API
|
|
20
20
|
* * `authentik.crypto` - authentik Crypto
|
|
21
|
-
* * `authentik.events` - authentik Events
|
|
22
21
|
* * `authentik.flows` - authentik Flows
|
|
23
22
|
* * `authentik.outposts` - authentik Outpost
|
|
24
23
|
* * `authentik.policies.dummy` - authentik Policies.Dummy
|
|
@@ -66,6 +65,7 @@
|
|
|
66
65
|
* * `authentik.enterprise` - authentik Enterprise
|
|
67
66
|
* * `authentik.enterprise.audit` - authentik Enterprise.Audit
|
|
68
67
|
* * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
|
|
68
|
+
* * `authentik.events` - authentik Events
|
|
69
69
|
* @export
|
|
70
70
|
*/
|
|
71
71
|
export const AppEnum = {
|
|
@@ -73,7 +73,6 @@ export const AppEnum = {
|
|
|
73
73
|
Admin: 'authentik.admin',
|
|
74
74
|
Api: 'authentik.api',
|
|
75
75
|
Crypto: 'authentik.crypto',
|
|
76
|
-
Events: 'authentik.events',
|
|
77
76
|
Flows: 'authentik.flows',
|
|
78
77
|
Outposts: 'authentik.outposts',
|
|
79
78
|
PoliciesDummy: 'authentik.policies.dummy',
|
|
@@ -121,6 +120,7 @@ export const AppEnum = {
|
|
|
121
120
|
Enterprise: 'authentik.enterprise',
|
|
122
121
|
EnterpriseAudit: 'authentik.enterprise.audit',
|
|
123
122
|
EnterpriseProvidersRac: 'authentik.enterprise.providers.rac',
|
|
123
|
+
Events: 'authentik.events',
|
|
124
124
|
UnknownDefaultOpenApi: '11184809'
|
|
125
125
|
} as const;
|
|
126
126
|
export type AppEnum = typeof AppEnum[keyof typeof AppEnum];
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.7
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Endpoint } from './Endpoint';
|
|
17
|
+
import {
|
|
18
|
+
EndpointFromJSON,
|
|
19
|
+
EndpointFromJSONTyped,
|
|
20
|
+
EndpointToJSON,
|
|
21
|
+
} from './Endpoint';
|
|
22
|
+
import type { GroupMember } from './GroupMember';
|
|
23
|
+
import {
|
|
24
|
+
GroupMemberFromJSON,
|
|
25
|
+
GroupMemberFromJSONTyped,
|
|
26
|
+
GroupMemberToJSON,
|
|
27
|
+
} from './GroupMember';
|
|
28
|
+
import type { RACProvider } from './RACProvider';
|
|
29
|
+
import {
|
|
30
|
+
RACProviderFromJSON,
|
|
31
|
+
RACProviderFromJSONTyped,
|
|
32
|
+
RACProviderToJSON,
|
|
33
|
+
} from './RACProvider';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* ConnectionToken Serializer
|
|
37
|
+
* @export
|
|
38
|
+
* @interface ConnectionToken
|
|
39
|
+
*/
|
|
40
|
+
export interface ConnectionToken {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ConnectionToken
|
|
45
|
+
*/
|
|
46
|
+
readonly pk: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof ConnectionToken
|
|
51
|
+
*/
|
|
52
|
+
provider: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {RACProvider}
|
|
56
|
+
* @memberof ConnectionToken
|
|
57
|
+
*/
|
|
58
|
+
readonly providerObj: RACProvider;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ConnectionToken
|
|
63
|
+
*/
|
|
64
|
+
readonly endpoint: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Endpoint}
|
|
68
|
+
* @memberof ConnectionToken
|
|
69
|
+
*/
|
|
70
|
+
readonly endpointObj: Endpoint;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {GroupMember}
|
|
74
|
+
* @memberof ConnectionToken
|
|
75
|
+
*/
|
|
76
|
+
readonly user: GroupMember;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the ConnectionToken interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfConnectionToken(value: object): boolean {
|
|
83
|
+
let isInstance = true;
|
|
84
|
+
isInstance = isInstance && "pk" in value;
|
|
85
|
+
isInstance = isInstance && "provider" in value;
|
|
86
|
+
isInstance = isInstance && "providerObj" in value;
|
|
87
|
+
isInstance = isInstance && "endpoint" in value;
|
|
88
|
+
isInstance = isInstance && "endpointObj" in value;
|
|
89
|
+
isInstance = isInstance && "user" in value;
|
|
90
|
+
|
|
91
|
+
return isInstance;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ConnectionTokenFromJSON(json: any): ConnectionToken {
|
|
95
|
+
return ConnectionTokenFromJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function ConnectionTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectionToken {
|
|
99
|
+
if ((json === undefined) || (json === null)) {
|
|
100
|
+
return json;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'pk': json['pk'],
|
|
105
|
+
'provider': json['provider'],
|
|
106
|
+
'providerObj': RACProviderFromJSON(json['provider_obj']),
|
|
107
|
+
'endpoint': json['endpoint'],
|
|
108
|
+
'endpointObj': EndpointFromJSON(json['endpoint_obj']),
|
|
109
|
+
'user': GroupMemberFromJSON(json['user']),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function ConnectionTokenToJSON(value?: ConnectionToken | null): any {
|
|
114
|
+
if (value === undefined) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
if (value === null) {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'provider': value.provider,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.7
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* ConnectionToken Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ConnectionTokenRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ConnectionTokenRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ConnectionTokenRequest
|
|
26
|
+
*/
|
|
27
|
+
provider: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ConnectionTokenRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfConnectionTokenRequest(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "provider" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ConnectionTokenRequestFromJSON(json: any): ConnectionTokenRequest {
|
|
41
|
+
return ConnectionTokenRequestFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ConnectionTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectionTokenRequest {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'provider': json['provider'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ConnectionTokenRequestToJSON(value?: ConnectionTokenRequest | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'provider': value.provider,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/ModelEnum.ts
CHANGED
|
@@ -16,11 +16,6 @@
|
|
|
16
16
|
/**
|
|
17
17
|
* * `authentik_tenants.domain` - Domain
|
|
18
18
|
* * `authentik_crypto.certificatekeypair` - Certificate-Key Pair
|
|
19
|
-
* * `authentik_events.event` - Event
|
|
20
|
-
* * `authentik_events.notificationtransport` - Notification Transport
|
|
21
|
-
* * `authentik_events.notification` - Notification
|
|
22
|
-
* * `authentik_events.notificationrule` - Notification Rule
|
|
23
|
-
* * `authentik_events.notificationwebhookmapping` - Webhook Mapping
|
|
24
19
|
* * `authentik_flows.flow` - Flow
|
|
25
20
|
* * `authentik_flows.flowstagebinding` - Flow Stage Binding
|
|
26
21
|
* * `authentik_outposts.dockerserviceconnection` - Docker Service-Connection
|
|
@@ -88,16 +83,16 @@
|
|
|
88
83
|
* * `authentik_providers_rac.racprovider` - RAC Provider
|
|
89
84
|
* * `authentik_providers_rac.endpoint` - RAC Endpoint
|
|
90
85
|
* * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
|
|
86
|
+
* * `authentik_events.event` - Event
|
|
87
|
+
* * `authentik_events.notificationtransport` - Notification Transport
|
|
88
|
+
* * `authentik_events.notification` - Notification
|
|
89
|
+
* * `authentik_events.notificationrule` - Notification Rule
|
|
90
|
+
* * `authentik_events.notificationwebhookmapping` - Webhook Mapping
|
|
91
91
|
* @export
|
|
92
92
|
*/
|
|
93
93
|
export const ModelEnum = {
|
|
94
94
|
TenantsDomain: 'authentik_tenants.domain',
|
|
95
95
|
CryptoCertificatekeypair: 'authentik_crypto.certificatekeypair',
|
|
96
|
-
EventsEvent: 'authentik_events.event',
|
|
97
|
-
EventsNotificationtransport: 'authentik_events.notificationtransport',
|
|
98
|
-
EventsNotification: 'authentik_events.notification',
|
|
99
|
-
EventsNotificationrule: 'authentik_events.notificationrule',
|
|
100
|
-
EventsNotificationwebhookmapping: 'authentik_events.notificationwebhookmapping',
|
|
101
96
|
FlowsFlow: 'authentik_flows.flow',
|
|
102
97
|
FlowsFlowstagebinding: 'authentik_flows.flowstagebinding',
|
|
103
98
|
OutpostsDockerserviceconnection: 'authentik_outposts.dockerserviceconnection',
|
|
@@ -165,6 +160,11 @@ export const ModelEnum = {
|
|
|
165
160
|
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
|
166
161
|
ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
|
|
167
162
|
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
|
163
|
+
EventsEvent: 'authentik_events.event',
|
|
164
|
+
EventsNotificationtransport: 'authentik_events.notificationtransport',
|
|
165
|
+
EventsNotification: 'authentik_events.notification',
|
|
166
|
+
EventsNotificationrule: 'authentik_events.notificationrule',
|
|
167
|
+
EventsNotificationwebhookmapping: 'authentik_events.notificationwebhookmapping',
|
|
168
168
|
UnknownDefaultOpenApi: '11184809'
|
|
169
169
|
} as const;
|
|
170
170
|
export type ModelEnum = typeof ModelEnum[keyof typeof ModelEnum];
|