@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
|
@@ -0,0 +1,88 @@
|
|
|
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 { ConnectionToken } from './ConnectionToken';
|
|
17
|
+
import {
|
|
18
|
+
ConnectionTokenFromJSON,
|
|
19
|
+
ConnectionTokenFromJSONTyped,
|
|
20
|
+
ConnectionTokenToJSON,
|
|
21
|
+
} from './ConnectionToken';
|
|
22
|
+
import type { Pagination } from './Pagination';
|
|
23
|
+
import {
|
|
24
|
+
PaginationFromJSON,
|
|
25
|
+
PaginationFromJSONTyped,
|
|
26
|
+
PaginationToJSON,
|
|
27
|
+
} from './Pagination';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PaginatedConnectionTokenList
|
|
33
|
+
*/
|
|
34
|
+
export interface PaginatedConnectionTokenList {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Pagination}
|
|
38
|
+
* @memberof PaginatedConnectionTokenList
|
|
39
|
+
*/
|
|
40
|
+
pagination: Pagination;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<ConnectionToken>}
|
|
44
|
+
* @memberof PaginatedConnectionTokenList
|
|
45
|
+
*/
|
|
46
|
+
results: Array<ConnectionToken>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PaginatedConnectionTokenList interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfPaginatedConnectionTokenList(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "pagination" in value;
|
|
55
|
+
isInstance = isInstance && "results" in value;
|
|
56
|
+
|
|
57
|
+
return isInstance;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedConnectionTokenListFromJSON(json: any): PaginatedConnectionTokenList {
|
|
61
|
+
return PaginatedConnectionTokenListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedConnectionTokenListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedConnectionTokenList {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
71
|
+
'results': ((json['results'] as Array<any>).map(ConnectionTokenFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedConnectionTokenListToJSON(value?: PaginatedConnectionTokenList | null): any {
|
|
76
|
+
if (value === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
if (value === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'pagination': PaginationToJSON(value.pagination),
|
|
85
|
+
'results': ((value.results as Array<any>).map(ConnectionTokenToJSON)),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 PatchedConnectionTokenRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PatchedConnectionTokenRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PatchedConnectionTokenRequest
|
|
26
|
+
*/
|
|
27
|
+
provider?: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PatchedConnectionTokenRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPatchedConnectionTokenRequest(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function PatchedConnectionTokenRequestFromJSON(json: any): PatchedConnectionTokenRequest {
|
|
40
|
+
return PatchedConnectionTokenRequestFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PatchedConnectionTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedConnectionTokenRequest {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'provider': !exists(json, 'provider') ? undefined : json['provider'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PatchedConnectionTokenRequestToJSON(value?: PatchedConnectionTokenRequest | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'provider': value.provider,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -55,6 +55,12 @@ export interface PatchedRACProviderRequest {
|
|
|
55
55
|
* @memberof PatchedRACProviderRequest
|
|
56
56
|
*/
|
|
57
57
|
connectionExpiry?: string;
|
|
58
|
+
/**
|
|
59
|
+
* When set to true, connection tokens will be deleted upon disconnect.
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof PatchedRACProviderRequest
|
|
62
|
+
*/
|
|
63
|
+
deleteTokenOnDisconnect?: boolean;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
/**
|
|
@@ -82,6 +88,7 @@ export function PatchedRACProviderRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
82
88
|
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
83
89
|
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
84
90
|
'connectionExpiry': !exists(json, 'connection_expiry') ? undefined : json['connection_expiry'],
|
|
91
|
+
'deleteTokenOnDisconnect': !exists(json, 'delete_token_on_disconnect') ? undefined : json['delete_token_on_disconnect'],
|
|
85
92
|
};
|
|
86
93
|
}
|
|
87
94
|
|
|
@@ -100,6 +107,7 @@ export function PatchedRACProviderRequestToJSON(value?: PatchedRACProviderReques
|
|
|
100
107
|
'property_mappings': value.propertyMappings,
|
|
101
108
|
'settings': value.settings,
|
|
102
109
|
'connection_expiry': value.connectionExpiry,
|
|
110
|
+
'delete_token_on_disconnect': value.deleteTokenOnDisconnect,
|
|
103
111
|
};
|
|
104
112
|
}
|
|
105
113
|
|
|
@@ -115,6 +115,12 @@ export interface RACProvider {
|
|
|
115
115
|
* @memberof RACProvider
|
|
116
116
|
*/
|
|
117
117
|
connectionExpiry?: string;
|
|
118
|
+
/**
|
|
119
|
+
* When set to true, connection tokens will be deleted upon disconnect.
|
|
120
|
+
* @type {boolean}
|
|
121
|
+
* @memberof RACProvider
|
|
122
|
+
*/
|
|
123
|
+
deleteTokenOnDisconnect?: boolean;
|
|
118
124
|
}
|
|
119
125
|
|
|
120
126
|
/**
|
|
@@ -164,6 +170,7 @@ export function RACProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
164
170
|
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
165
171
|
'outpostSet': json['outpost_set'],
|
|
166
172
|
'connectionExpiry': !exists(json, 'connection_expiry') ? undefined : json['connection_expiry'],
|
|
173
|
+
'deleteTokenOnDisconnect': !exists(json, 'delete_token_on_disconnect') ? undefined : json['delete_token_on_disconnect'],
|
|
167
174
|
};
|
|
168
175
|
}
|
|
169
176
|
|
|
@@ -182,6 +189,7 @@ export function RACProviderToJSON(value?: RACProvider | null): any {
|
|
|
182
189
|
'property_mappings': value.propertyMappings,
|
|
183
190
|
'settings': value.settings,
|
|
184
191
|
'connection_expiry': value.connectionExpiry,
|
|
192
|
+
'delete_token_on_disconnect': value.deleteTokenOnDisconnect,
|
|
185
193
|
};
|
|
186
194
|
}
|
|
187
195
|
|
|
@@ -55,6 +55,12 @@ export interface RACProviderRequest {
|
|
|
55
55
|
* @memberof RACProviderRequest
|
|
56
56
|
*/
|
|
57
57
|
connectionExpiry?: string;
|
|
58
|
+
/**
|
|
59
|
+
* When set to true, connection tokens will be deleted upon disconnect.
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof RACProviderRequest
|
|
62
|
+
*/
|
|
63
|
+
deleteTokenOnDisconnect?: boolean;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
/**
|
|
@@ -84,6 +90,7 @@ export function RACProviderRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
84
90
|
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
85
91
|
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
86
92
|
'connectionExpiry': !exists(json, 'connection_expiry') ? undefined : json['connection_expiry'],
|
|
93
|
+
'deleteTokenOnDisconnect': !exists(json, 'delete_token_on_disconnect') ? undefined : json['delete_token_on_disconnect'],
|
|
87
94
|
};
|
|
88
95
|
}
|
|
89
96
|
|
|
@@ -102,6 +109,7 @@ export function RACProviderRequestToJSON(value?: RACProviderRequest | null): any
|
|
|
102
109
|
'property_mappings': value.propertyMappings,
|
|
103
110
|
'settings': value.settings,
|
|
104
111
|
'connection_expiry': value.connectionExpiry,
|
|
112
|
+
'delete_token_on_disconnect': value.deleteTokenOnDisconnect,
|
|
105
113
|
};
|
|
106
114
|
}
|
|
107
115
|
|
|
@@ -44,6 +44,12 @@ export interface UserConsent {
|
|
|
44
44
|
* @memberof UserConsent
|
|
45
45
|
*/
|
|
46
46
|
expires?: Date;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof UserConsent
|
|
51
|
+
*/
|
|
52
|
+
expiring?: boolean;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {User}
|
|
@@ -88,6 +94,7 @@ export function UserConsentFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
88
94
|
|
|
89
95
|
'pk': json['pk'],
|
|
90
96
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
97
|
+
'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],
|
|
91
98
|
'user': UserFromJSON(json['user']),
|
|
92
99
|
'application': ApplicationFromJSON(json['application']),
|
|
93
100
|
'permissions': !exists(json, 'permissions') ? undefined : json['permissions'],
|
|
@@ -104,6 +111,7 @@ export function UserConsentToJSON(value?: UserConsent | null): any {
|
|
|
104
111
|
return {
|
|
105
112
|
|
|
106
113
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
114
|
+
'expiring': value.expiring,
|
|
107
115
|
'user': UserToJSON(value.user),
|
|
108
116
|
'application': ApplicationToJSON(value.application),
|
|
109
117
|
'permissions': value.permissions,
|
package/src/models/index.ts
CHANGED
|
@@ -68,6 +68,8 @@ export * from './ChallengeChoices';
|
|
|
68
68
|
export * from './ChallengeTypes';
|
|
69
69
|
export * from './ClientTypeEnum';
|
|
70
70
|
export * from './Config';
|
|
71
|
+
export * from './ConnectionToken';
|
|
72
|
+
export * from './ConnectionTokenRequest';
|
|
71
73
|
export * from './ConsentChallenge';
|
|
72
74
|
export * from './ConsentChallengeResponseRequest';
|
|
73
75
|
export * from './ConsentPermission';
|
|
@@ -217,6 +219,7 @@ export * from './PaginatedBlueprintInstanceList';
|
|
|
217
219
|
export * from './PaginatedBrandList';
|
|
218
220
|
export * from './PaginatedCaptchaStageList';
|
|
219
221
|
export * from './PaginatedCertificateKeyPairList';
|
|
222
|
+
export * from './PaginatedConnectionTokenList';
|
|
220
223
|
export * from './PaginatedConsentStageList';
|
|
221
224
|
export * from './PaginatedDenyStageList';
|
|
222
225
|
export * from './PaginatedDockerServiceConnectionList';
|
|
@@ -320,6 +323,7 @@ export * from './PatchedBlueprintInstanceRequest';
|
|
|
320
323
|
export * from './PatchedBrandRequest';
|
|
321
324
|
export * from './PatchedCaptchaStageRequest';
|
|
322
325
|
export * from './PatchedCertificateKeyPairRequest';
|
|
326
|
+
export * from './PatchedConnectionTokenRequest';
|
|
323
327
|
export * from './PatchedConsentStageRequest';
|
|
324
328
|
export * from './PatchedDenyStageRequest';
|
|
325
329
|
export * from './PatchedDockerServiceConnectionRequest';
|