@goauthentik/api 2023.10.5-1703290840 → 2023.10.5-1703968412
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 +15 -0
- package/dist/apis/PropertymappingsApi.d.ts +85 -1
- package/dist/apis/PropertymappingsApi.js +240 -0
- package/dist/apis/ProvidersApi.d.ts +85 -1
- package/dist/apis/ProvidersApi.js +240 -0
- package/dist/apis/RacApi.d.ts +103 -0
- package/dist/apis/RacApi.js +276 -0
- package/dist/apis/RbacApi.d.ts +6 -0
- package/dist/apis/RbacApi.js +6 -0
- package/dist/apis/SchemaApi.d.ts +0 -1
- package/dist/apis/SchemaApi.js +0 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/PropertymappingsApi.d.ts +85 -1
- package/dist/esm/apis/PropertymappingsApi.js +241 -1
- package/dist/esm/apis/ProvidersApi.d.ts +85 -1
- package/dist/esm/apis/ProvidersApi.js +241 -1
- package/dist/esm/apis/RacApi.d.ts +103 -0
- package/dist/esm/apis/RacApi.js +272 -0
- package/dist/esm/apis/RbacApi.d.ts +6 -0
- package/dist/esm/apis/RbacApi.js +6 -0
- package/dist/esm/apis/SchemaApi.d.ts +0 -1
- package/dist/esm/apis/SchemaApi.js +0 -1
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AppEnum.d.ts +2 -0
- package/dist/esm/models/AppEnum.js +2 -0
- package/dist/esm/models/AuthModeEnum.d.ts +25 -0
- package/dist/esm/models/AuthModeEnum.js +32 -0
- package/dist/esm/models/Endpoint.d.ts +89 -0
- package/dist/esm/models/Endpoint.js +69 -0
- package/dist/esm/models/EndpointRequest.d.ts +69 -0
- package/dist/esm/models/EndpointRequest.js +62 -0
- package/dist/esm/models/ModelEnum.d.ts +6 -0
- package/dist/esm/models/ModelEnum.js +6 -0
- package/dist/esm/models/ModelRequest.d.ts +3 -0
- package/dist/esm/models/ModelRequest.js +5 -0
- package/dist/esm/models/OutpostTypeEnum.d.ts +2 -0
- package/dist/esm/models/OutpostTypeEnum.js +2 -0
- package/dist/esm/models/PaginatedEndpointList.d.ts +39 -0
- package/dist/esm/models/PaginatedEndpointList.js +48 -0
- package/dist/esm/models/PaginatedRACPropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedRACPropertyMappingList.js +48 -0
- package/dist/esm/models/PaginatedRACProviderList.d.ts +39 -0
- package/dist/esm/models/PaginatedRACProviderList.js +48 -0
- package/dist/esm/models/PatchedEndpointRequest.d.ts +69 -0
- package/dist/esm/models/PatchedEndpointRequest.js +57 -0
- package/dist/esm/models/PatchedRACPropertyMappingRequest.d.ts +51 -0
- package/dist/esm/models/PatchedRACPropertyMappingRequest.js +49 -0
- package/dist/esm/models/PatchedRACProviderRequest.d.ts +61 -0
- package/dist/esm/models/PatchedRACProviderRequest.js +53 -0
- package/dist/esm/models/ProtocolEnum.d.ts +27 -0
- package/dist/esm/models/ProtocolEnum.js +34 -0
- package/dist/esm/models/ProviderModelEnum.d.ts +2 -0
- package/dist/esm/models/ProviderModelEnum.js +2 -0
- package/dist/esm/models/RACPropertyMapping.d.ts +81 -0
- package/dist/esm/models/RACPropertyMapping.js +61 -0
- package/dist/esm/models/RACPropertyMappingRequest.d.ts +51 -0
- package/dist/esm/models/RACPropertyMappingRequest.js +51 -0
- package/dist/esm/models/RACProvider.d.ts +121 -0
- package/dist/esm/models/RACProvider.js +75 -0
- package/dist/esm/models/RACProviderRequest.d.ts +61 -0
- package/dist/esm/models/RACProviderRequest.js +55 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/AppEnum.d.ts +2 -0
- package/dist/models/AppEnum.js +2 -0
- package/dist/models/AuthModeEnum.d.ts +25 -0
- package/dist/models/AuthModeEnum.js +38 -0
- package/dist/models/Endpoint.d.ts +89 -0
- package/dist/models/Endpoint.js +76 -0
- package/dist/models/EndpointRequest.d.ts +69 -0
- package/dist/models/EndpointRequest.js +69 -0
- package/dist/models/ModelEnum.d.ts +6 -0
- package/dist/models/ModelEnum.js +6 -0
- package/dist/models/ModelRequest.d.ts +3 -0
- package/dist/models/ModelRequest.js +5 -0
- package/dist/models/OutpostTypeEnum.d.ts +2 -0
- package/dist/models/OutpostTypeEnum.js +2 -0
- package/dist/models/PaginatedEndpointList.d.ts +39 -0
- package/dist/models/PaginatedEndpointList.js +55 -0
- package/dist/models/PaginatedRACPropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedRACPropertyMappingList.js +55 -0
- package/dist/models/PaginatedRACProviderList.d.ts +39 -0
- package/dist/models/PaginatedRACProviderList.js +55 -0
- package/dist/models/PatchedEndpointRequest.d.ts +69 -0
- package/dist/models/PatchedEndpointRequest.js +64 -0
- package/dist/models/PatchedRACPropertyMappingRequest.d.ts +51 -0
- package/dist/models/PatchedRACPropertyMappingRequest.js +56 -0
- package/dist/models/PatchedRACProviderRequest.d.ts +61 -0
- package/dist/models/PatchedRACProviderRequest.js +60 -0
- package/dist/models/ProtocolEnum.d.ts +27 -0
- package/dist/models/ProtocolEnum.js +40 -0
- package/dist/models/ProviderModelEnum.d.ts +2 -0
- package/dist/models/ProviderModelEnum.js +2 -0
- package/dist/models/RACPropertyMapping.d.ts +81 -0
- package/dist/models/RACPropertyMapping.js +68 -0
- package/dist/models/RACPropertyMappingRequest.d.ts +51 -0
- package/dist/models/RACPropertyMappingRequest.js +58 -0
- package/dist/models/RACProvider.d.ts +121 -0
- package/dist/models/RACProvider.js +82 -0
- package/dist/models/RACProviderRequest.d.ts +61 -0
- package/dist/models/RACProviderRequest.js +62 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +317 -0
- package/src/apis/ProvidersApi.ts +317 -0
- package/src/apis/RacApi.ts +358 -0
- package/src/apis/RbacApi.ts +6 -0
- package/src/apis/SchemaApi.ts +0 -1
- package/src/apis/index.ts +1 -0
- package/src/models/AppEnum.ts +2 -0
- package/src/models/AuthModeEnum.ts +40 -0
- package/src/models/Endpoint.ts +162 -0
- package/src/models/EndpointRequest.ts +131 -0
- package/src/models/ModelEnum.ts +6 -0
- package/src/models/ModelRequest.ts +12 -1
- package/src/models/OutpostTypeEnum.ts +2 -0
- package/src/models/PaginatedEndpointList.ts +88 -0
- package/src/models/PaginatedRACPropertyMappingList.ts +88 -0
- package/src/models/PaginatedRACProviderList.ts +88 -0
- package/src/models/PatchedEndpointRequest.ts +126 -0
- package/src/models/PatchedRACPropertyMappingRequest.ts +89 -0
- package/src/models/PatchedRACProviderRequest.ts +105 -0
- package/src/models/ProtocolEnum.ts +42 -0
- package/src/models/ProviderModelEnum.ts +2 -0
- package/src/models/RACPropertyMapping.ts +131 -0
- package/src/models/RACPropertyMappingRequest.ts +91 -0
- package/src/models/RACProvider.ts +187 -0
- package/src/models/RACProviderRequest.ts +107 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.5
|
|
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
|
+
* RACProvider Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PatchedRACProviderRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PatchedRACProviderRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PatchedRACProviderRequest
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Flow used for authentication when the associated application is accessed by an un-authenticated user.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedRACProviderRequest
|
|
32
|
+
*/
|
|
33
|
+
authenticationFlow?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Flow used when authorizing this provider.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PatchedRACProviderRequest
|
|
38
|
+
*/
|
|
39
|
+
authorizationFlow?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof PatchedRACProviderRequest
|
|
44
|
+
*/
|
|
45
|
+
propertyMappings?: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {any}
|
|
49
|
+
* @memberof PatchedRACProviderRequest
|
|
50
|
+
*/
|
|
51
|
+
settings?: any | null;
|
|
52
|
+
/**
|
|
53
|
+
* Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3)
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof PatchedRACProviderRequest
|
|
56
|
+
*/
|
|
57
|
+
connectionExpiry?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the PatchedRACProviderRequest interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfPatchedRACProviderRequest(value: object): boolean {
|
|
64
|
+
let isInstance = true;
|
|
65
|
+
|
|
66
|
+
return isInstance;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PatchedRACProviderRequestFromJSON(json: any): PatchedRACProviderRequest {
|
|
70
|
+
return PatchedRACProviderRequestFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PatchedRACProviderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRACProviderRequest {
|
|
74
|
+
if ((json === undefined) || (json === null)) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
80
|
+
'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
|
|
81
|
+
'authorizationFlow': !exists(json, 'authorization_flow') ? undefined : json['authorization_flow'],
|
|
82
|
+
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
83
|
+
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
84
|
+
'connectionExpiry': !exists(json, 'connection_expiry') ? undefined : json['connection_expiry'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PatchedRACProviderRequestToJSON(value?: PatchedRACProviderRequest | null): any {
|
|
89
|
+
if (value === undefined) {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
if (value === null) {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'name': value.name,
|
|
98
|
+
'authentication_flow': value.authenticationFlow,
|
|
99
|
+
'authorization_flow': value.authorizationFlow,
|
|
100
|
+
'property_mappings': value.propertyMappings,
|
|
101
|
+
'settings': value.settings,
|
|
102
|
+
'connection_expiry': value.connectionExpiry,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.5
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* * `rdp` - Rdp
|
|
18
|
+
* * `vnc` - Vnc
|
|
19
|
+
* * `ssh` - Ssh
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export const ProtocolEnum = {
|
|
23
|
+
Rdp: 'rdp',
|
|
24
|
+
Vnc: 'vnc',
|
|
25
|
+
Ssh: 'ssh',
|
|
26
|
+
UnknownDefaultOpenApi: '11184809'
|
|
27
|
+
} as const;
|
|
28
|
+
export type ProtocolEnum = typeof ProtocolEnum[keyof typeof ProtocolEnum];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export function ProtocolEnumFromJSON(json: any): ProtocolEnum {
|
|
32
|
+
return ProtocolEnumFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function ProtocolEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProtocolEnum {
|
|
36
|
+
return json as ProtocolEnum;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ProtocolEnumToJSON(value?: ProtocolEnum | null): any {
|
|
40
|
+
return value as any;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* * `authentik_providers_ldap.ldapprovider` - authentik_providers_ldap.ldapprovider
|
|
18
18
|
* * `authentik_providers_oauth2.oauth2provider` - authentik_providers_oauth2.oauth2provider
|
|
19
19
|
* * `authentik_providers_proxy.proxyprovider` - authentik_providers_proxy.proxyprovider
|
|
20
|
+
* * `authentik_providers_rac.racprovider` - authentik_providers_rac.racprovider
|
|
20
21
|
* * `authentik_providers_radius.radiusprovider` - authentik_providers_radius.radiusprovider
|
|
21
22
|
* * `authentik_providers_saml.samlprovider` - authentik_providers_saml.samlprovider
|
|
22
23
|
* * `authentik_providers_scim.scimprovider` - authentik_providers_scim.scimprovider
|
|
@@ -26,6 +27,7 @@ export const ProviderModelEnum = {
|
|
|
26
27
|
LdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
|
|
27
28
|
Oauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
|
|
28
29
|
ProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
|
|
30
|
+
RacRacprovider: 'authentik_providers_rac.racprovider',
|
|
29
31
|
RadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
|
30
32
|
SamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
|
31
33
|
ScimScimprovider: 'authentik_providers_scim.scimprovider',
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.5
|
|
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
|
+
* RACPropertyMapping Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RACPropertyMapping
|
|
20
|
+
*/
|
|
21
|
+
export interface RACPropertyMapping {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RACPropertyMapping
|
|
26
|
+
*/
|
|
27
|
+
readonly pk: string;
|
|
28
|
+
/**
|
|
29
|
+
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RACPropertyMapping
|
|
32
|
+
*/
|
|
33
|
+
managed?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RACPropertyMapping
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof RACPropertyMapping
|
|
44
|
+
*/
|
|
45
|
+
expression?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Get object's component so that we know how to edit the object
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof RACPropertyMapping
|
|
50
|
+
*/
|
|
51
|
+
readonly component: string;
|
|
52
|
+
/**
|
|
53
|
+
* Return object's verbose_name
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof RACPropertyMapping
|
|
56
|
+
*/
|
|
57
|
+
readonly verboseName: string;
|
|
58
|
+
/**
|
|
59
|
+
* Return object's plural verbose_name
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof RACPropertyMapping
|
|
62
|
+
*/
|
|
63
|
+
readonly verboseNamePlural: string;
|
|
64
|
+
/**
|
|
65
|
+
* Return internal model name
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof RACPropertyMapping
|
|
68
|
+
*/
|
|
69
|
+
readonly metaModelName: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {{ [key: string]: any; }}
|
|
73
|
+
* @memberof RACPropertyMapping
|
|
74
|
+
*/
|
|
75
|
+
staticSettings: { [key: string]: any; };
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the RACPropertyMapping interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfRACPropertyMapping(value: object): boolean {
|
|
82
|
+
let isInstance = true;
|
|
83
|
+
isInstance = isInstance && "pk" in value;
|
|
84
|
+
isInstance = isInstance && "name" in value;
|
|
85
|
+
isInstance = isInstance && "component" in value;
|
|
86
|
+
isInstance = isInstance && "verboseName" in value;
|
|
87
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
|
88
|
+
isInstance = isInstance && "metaModelName" in value;
|
|
89
|
+
isInstance = isInstance && "staticSettings" in value;
|
|
90
|
+
|
|
91
|
+
return isInstance;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function RACPropertyMappingFromJSON(json: any): RACPropertyMapping {
|
|
95
|
+
return RACPropertyMappingFromJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function RACPropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RACPropertyMapping {
|
|
99
|
+
if ((json === undefined) || (json === null)) {
|
|
100
|
+
return json;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'pk': json['pk'],
|
|
105
|
+
'managed': !exists(json, 'managed') ? undefined : json['managed'],
|
|
106
|
+
'name': json['name'],
|
|
107
|
+
'expression': !exists(json, 'expression') ? undefined : json['expression'],
|
|
108
|
+
'component': json['component'],
|
|
109
|
+
'verboseName': json['verbose_name'],
|
|
110
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
111
|
+
'metaModelName': json['meta_model_name'],
|
|
112
|
+
'staticSettings': json['static_settings'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function RACPropertyMappingToJSON(value?: RACPropertyMapping | null): any {
|
|
117
|
+
if (value === undefined) {
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
if (value === null) {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'managed': value.managed,
|
|
126
|
+
'name': value.name,
|
|
127
|
+
'expression': value.expression,
|
|
128
|
+
'static_settings': value.staticSettings,
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.5
|
|
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
|
+
* RACPropertyMapping Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RACPropertyMappingRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RACPropertyMappingRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RACPropertyMappingRequest
|
|
26
|
+
*/
|
|
27
|
+
managed?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RACPropertyMappingRequest
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RACPropertyMappingRequest
|
|
38
|
+
*/
|
|
39
|
+
expression?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {{ [key: string]: any; }}
|
|
43
|
+
* @memberof RACPropertyMappingRequest
|
|
44
|
+
*/
|
|
45
|
+
staticSettings: { [key: string]: any; };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the RACPropertyMappingRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfRACPropertyMappingRequest(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "name" in value;
|
|
54
|
+
isInstance = isInstance && "staticSettings" in value;
|
|
55
|
+
|
|
56
|
+
return isInstance;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function RACPropertyMappingRequestFromJSON(json: any): RACPropertyMappingRequest {
|
|
60
|
+
return RACPropertyMappingRequestFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function RACPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RACPropertyMappingRequest {
|
|
64
|
+
if ((json === undefined) || (json === null)) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'managed': !exists(json, 'managed') ? undefined : json['managed'],
|
|
70
|
+
'name': json['name'],
|
|
71
|
+
'expression': !exists(json, 'expression') ? undefined : json['expression'],
|
|
72
|
+
'staticSettings': json['static_settings'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function RACPropertyMappingRequestToJSON(value?: RACPropertyMappingRequest | null): any {
|
|
77
|
+
if (value === undefined) {
|
|
78
|
+
return undefined;
|
|
79
|
+
}
|
|
80
|
+
if (value === null) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'managed': value.managed,
|
|
86
|
+
'name': value.name,
|
|
87
|
+
'expression': value.expression,
|
|
88
|
+
'static_settings': value.staticSettings,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.5
|
|
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
|
+
* RACProvider Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RACProvider
|
|
20
|
+
*/
|
|
21
|
+
export interface RACProvider {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof RACProvider
|
|
26
|
+
*/
|
|
27
|
+
readonly pk: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RACProvider
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Flow used for authentication when the associated application is accessed by an un-authenticated user.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RACProvider
|
|
38
|
+
*/
|
|
39
|
+
authenticationFlow?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Flow used when authorizing this provider.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof RACProvider
|
|
44
|
+
*/
|
|
45
|
+
authorizationFlow: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof RACProvider
|
|
50
|
+
*/
|
|
51
|
+
propertyMappings?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Get object component so that we know how to edit the object
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof RACProvider
|
|
56
|
+
*/
|
|
57
|
+
readonly component: string;
|
|
58
|
+
/**
|
|
59
|
+
* Internal application name, used in URLs.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof RACProvider
|
|
62
|
+
*/
|
|
63
|
+
readonly assignedApplicationSlug: string;
|
|
64
|
+
/**
|
|
65
|
+
* Application's display Name.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof RACProvider
|
|
68
|
+
*/
|
|
69
|
+
readonly assignedApplicationName: string;
|
|
70
|
+
/**
|
|
71
|
+
* Internal application name, used in URLs.
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof RACProvider
|
|
74
|
+
*/
|
|
75
|
+
readonly assignedBackchannelApplicationSlug: string;
|
|
76
|
+
/**
|
|
77
|
+
* Application's display Name.
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof RACProvider
|
|
80
|
+
*/
|
|
81
|
+
readonly assignedBackchannelApplicationName: string;
|
|
82
|
+
/**
|
|
83
|
+
* Return object's verbose_name
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof RACProvider
|
|
86
|
+
*/
|
|
87
|
+
readonly verboseName: string;
|
|
88
|
+
/**
|
|
89
|
+
* Return object's plural verbose_name
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof RACProvider
|
|
92
|
+
*/
|
|
93
|
+
readonly verboseNamePlural: string;
|
|
94
|
+
/**
|
|
95
|
+
* Return internal model name
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof RACProvider
|
|
98
|
+
*/
|
|
99
|
+
readonly metaModelName: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {any}
|
|
103
|
+
* @memberof RACProvider
|
|
104
|
+
*/
|
|
105
|
+
settings?: any | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {Array<string>}
|
|
109
|
+
* @memberof RACProvider
|
|
110
|
+
*/
|
|
111
|
+
readonly outpostSet: Array<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3)
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof RACProvider
|
|
116
|
+
*/
|
|
117
|
+
connectionExpiry?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Check if a given object implements the RACProvider interface.
|
|
122
|
+
*/
|
|
123
|
+
export function instanceOfRACProvider(value: object): boolean {
|
|
124
|
+
let isInstance = true;
|
|
125
|
+
isInstance = isInstance && "pk" in value;
|
|
126
|
+
isInstance = isInstance && "name" in value;
|
|
127
|
+
isInstance = isInstance && "authorizationFlow" in value;
|
|
128
|
+
isInstance = isInstance && "component" in value;
|
|
129
|
+
isInstance = isInstance && "assignedApplicationSlug" in value;
|
|
130
|
+
isInstance = isInstance && "assignedApplicationName" in value;
|
|
131
|
+
isInstance = isInstance && "assignedBackchannelApplicationSlug" in value;
|
|
132
|
+
isInstance = isInstance && "assignedBackchannelApplicationName" in value;
|
|
133
|
+
isInstance = isInstance && "verboseName" in value;
|
|
134
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
|
135
|
+
isInstance = isInstance && "metaModelName" in value;
|
|
136
|
+
isInstance = isInstance && "outpostSet" in value;
|
|
137
|
+
|
|
138
|
+
return isInstance;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function RACProviderFromJSON(json: any): RACProvider {
|
|
142
|
+
return RACProviderFromJSONTyped(json, false);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function RACProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): RACProvider {
|
|
146
|
+
if ((json === undefined) || (json === null)) {
|
|
147
|
+
return json;
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
|
|
151
|
+
'pk': json['pk'],
|
|
152
|
+
'name': json['name'],
|
|
153
|
+
'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
|
|
154
|
+
'authorizationFlow': json['authorization_flow'],
|
|
155
|
+
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
156
|
+
'component': json['component'],
|
|
157
|
+
'assignedApplicationSlug': json['assigned_application_slug'],
|
|
158
|
+
'assignedApplicationName': json['assigned_application_name'],
|
|
159
|
+
'assignedBackchannelApplicationSlug': json['assigned_backchannel_application_slug'],
|
|
160
|
+
'assignedBackchannelApplicationName': json['assigned_backchannel_application_name'],
|
|
161
|
+
'verboseName': json['verbose_name'],
|
|
162
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
163
|
+
'metaModelName': json['meta_model_name'],
|
|
164
|
+
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
165
|
+
'outpostSet': json['outpost_set'],
|
|
166
|
+
'connectionExpiry': !exists(json, 'connection_expiry') ? undefined : json['connection_expiry'],
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function RACProviderToJSON(value?: RACProvider | null): any {
|
|
171
|
+
if (value === undefined) {
|
|
172
|
+
return undefined;
|
|
173
|
+
}
|
|
174
|
+
if (value === null) {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
return {
|
|
178
|
+
|
|
179
|
+
'name': value.name,
|
|
180
|
+
'authentication_flow': value.authenticationFlow,
|
|
181
|
+
'authorization_flow': value.authorizationFlow,
|
|
182
|
+
'property_mappings': value.propertyMappings,
|
|
183
|
+
'settings': value.settings,
|
|
184
|
+
'connection_expiry': value.connectionExpiry,
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.5
|
|
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
|
+
* RACProvider Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RACProviderRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RACProviderRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RACProviderRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Flow used for authentication when the associated application is accessed by an un-authenticated user.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RACProviderRequest
|
|
32
|
+
*/
|
|
33
|
+
authenticationFlow?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Flow used when authorizing this provider.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RACProviderRequest
|
|
38
|
+
*/
|
|
39
|
+
authorizationFlow: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof RACProviderRequest
|
|
44
|
+
*/
|
|
45
|
+
propertyMappings?: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {any}
|
|
49
|
+
* @memberof RACProviderRequest
|
|
50
|
+
*/
|
|
51
|
+
settings?: any | null;
|
|
52
|
+
/**
|
|
53
|
+
* Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3)
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof RACProviderRequest
|
|
56
|
+
*/
|
|
57
|
+
connectionExpiry?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the RACProviderRequest interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfRACProviderRequest(value: object): boolean {
|
|
64
|
+
let isInstance = true;
|
|
65
|
+
isInstance = isInstance && "name" in value;
|
|
66
|
+
isInstance = isInstance && "authorizationFlow" in value;
|
|
67
|
+
|
|
68
|
+
return isInstance;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function RACProviderRequestFromJSON(json: any): RACProviderRequest {
|
|
72
|
+
return RACProviderRequestFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function RACProviderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RACProviderRequest {
|
|
76
|
+
if ((json === undefined) || (json === null)) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'name': json['name'],
|
|
82
|
+
'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
|
|
83
|
+
'authorizationFlow': json['authorization_flow'],
|
|
84
|
+
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
85
|
+
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
86
|
+
'connectionExpiry': !exists(json, 'connection_expiry') ? undefined : json['connection_expiry'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function RACProviderRequestToJSON(value?: RACProviderRequest | null): any {
|
|
91
|
+
if (value === undefined) {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
if (value === null) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'name': value.name,
|
|
100
|
+
'authentication_flow': value.authenticationFlow,
|
|
101
|
+
'authorization_flow': value.authorizationFlow,
|
|
102
|
+
'property_mappings': value.propertyMappings,
|
|
103
|
+
'settings': value.settings,
|
|
104
|
+
'connection_expiry': value.connectionExpiry,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|