@goauthentik/api 2023.10.5-1703167718 → 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 +17 -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/StagesApi.d.ts +24 -0
- package/dist/apis/StagesApi.js +27 -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/StagesApi.d.ts +24 -0
- package/dist/esm/apis/StagesApi.js +26 -0
- 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/GeoipBindingEnum.d.ts +29 -0
- package/dist/esm/models/GeoipBindingEnum.js +36 -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/NetworkBindingEnum.d.ts +29 -0
- package/dist/esm/models/NetworkBindingEnum.js +36 -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/PatchedUserLoginStageRequest.d.ts +14 -0
- package/dist/esm/models/PatchedUserLoginStageRequest.js +6 -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/ProviderTypeEnum.d.ts +2 -2
- package/dist/esm/models/ProviderTypeEnum.js +2 -2
- 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/UserLoginStage.d.ts +14 -0
- package/dist/esm/models/UserLoginStage.js +6 -0
- package/dist/esm/models/UserLoginStageRequest.d.ts +14 -0
- package/dist/esm/models/UserLoginStageRequest.js +6 -0
- package/dist/esm/models/index.d.ts +16 -0
- package/dist/esm/models/index.js +16 -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/GeoipBindingEnum.d.ts +29 -0
- package/dist/models/GeoipBindingEnum.js +42 -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/NetworkBindingEnum.d.ts +29 -0
- package/dist/models/NetworkBindingEnum.js +42 -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/PatchedUserLoginStageRequest.d.ts +14 -0
- package/dist/models/PatchedUserLoginStageRequest.js +6 -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/ProviderTypeEnum.d.ts +2 -2
- package/dist/models/ProviderTypeEnum.js +2 -2
- 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/UserLoginStage.d.ts +14 -0
- package/dist/models/UserLoginStage.js +6 -0
- package/dist/models/UserLoginStageRequest.d.ts +14 -0
- package/dist/models/UserLoginStageRequest.js +6 -0
- package/dist/models/index.d.ts +16 -0
- package/dist/models/index.js +16 -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/StagesApi.ts +32 -0
- 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/GeoipBindingEnum.ts +44 -0
- package/src/models/ModelEnum.ts +6 -0
- package/src/models/ModelRequest.ts +12 -1
- package/src/models/NetworkBindingEnum.ts +44 -0
- 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/PatchedUserLoginStageRequest.ts +28 -0
- package/src/models/ProtocolEnum.ts +42 -0
- package/src/models/ProviderModelEnum.ts +2 -0
- package/src/models/ProviderTypeEnum.ts +2 -2
- 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/UserLoginStage.ts +28 -0
- package/src/models/UserLoginStageRequest.ts +28 -0
- package/src/models/index.ts +16 -0
|
@@ -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
|
+
import type { AuthModeEnum } from './AuthModeEnum';
|
|
17
|
+
import {
|
|
18
|
+
AuthModeEnumFromJSON,
|
|
19
|
+
AuthModeEnumFromJSONTyped,
|
|
20
|
+
AuthModeEnumToJSON,
|
|
21
|
+
} from './AuthModeEnum';
|
|
22
|
+
import type { ProtocolEnum } from './ProtocolEnum';
|
|
23
|
+
import {
|
|
24
|
+
ProtocolEnumFromJSON,
|
|
25
|
+
ProtocolEnumFromJSONTyped,
|
|
26
|
+
ProtocolEnumToJSON,
|
|
27
|
+
} from './ProtocolEnum';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Endpoint Serializer
|
|
31
|
+
* @export
|
|
32
|
+
* @interface EndpointRequest
|
|
33
|
+
*/
|
|
34
|
+
export interface EndpointRequest {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof EndpointRequest
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof EndpointRequest
|
|
45
|
+
*/
|
|
46
|
+
provider: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {ProtocolEnum}
|
|
50
|
+
* @memberof EndpointRequest
|
|
51
|
+
*/
|
|
52
|
+
protocol: ProtocolEnum;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof EndpointRequest
|
|
57
|
+
*/
|
|
58
|
+
host: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {any}
|
|
62
|
+
* @memberof EndpointRequest
|
|
63
|
+
*/
|
|
64
|
+
settings?: any | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof EndpointRequest
|
|
69
|
+
*/
|
|
70
|
+
propertyMappings?: Array<string>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {AuthModeEnum}
|
|
74
|
+
* @memberof EndpointRequest
|
|
75
|
+
*/
|
|
76
|
+
authMode: AuthModeEnum;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the EndpointRequest interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfEndpointRequest(value: object): boolean {
|
|
83
|
+
let isInstance = true;
|
|
84
|
+
isInstance = isInstance && "name" in value;
|
|
85
|
+
isInstance = isInstance && "provider" in value;
|
|
86
|
+
isInstance = isInstance && "protocol" in value;
|
|
87
|
+
isInstance = isInstance && "host" in value;
|
|
88
|
+
isInstance = isInstance && "authMode" in value;
|
|
89
|
+
|
|
90
|
+
return isInstance;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function EndpointRequestFromJSON(json: any): EndpointRequest {
|
|
94
|
+
return EndpointRequestFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function EndpointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointRequest {
|
|
98
|
+
if ((json === undefined) || (json === null)) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'name': json['name'],
|
|
104
|
+
'provider': json['provider'],
|
|
105
|
+
'protocol': ProtocolEnumFromJSON(json['protocol']),
|
|
106
|
+
'host': json['host'],
|
|
107
|
+
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
108
|
+
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
109
|
+
'authMode': AuthModeEnumFromJSON(json['auth_mode']),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function EndpointRequestToJSON(value?: EndpointRequest | null): any {
|
|
114
|
+
if (value === undefined) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
if (value === null) {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'name': value.name,
|
|
123
|
+
'provider': value.provider,
|
|
124
|
+
'protocol': ProtocolEnumToJSON(value.protocol),
|
|
125
|
+
'host': value.host,
|
|
126
|
+
'settings': value.settings,
|
|
127
|
+
'property_mappings': value.propertyMappings,
|
|
128
|
+
'auth_mode': AuthModeEnumToJSON(value.authMode),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* * `no_binding` - No Binding
|
|
18
|
+
* * `bind_continent` - Bind Continent
|
|
19
|
+
* * `bind_continent_country` - Bind Continent Country
|
|
20
|
+
* * `bind_continent_country_city` - Bind Continent Country City
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export const GeoipBindingEnum = {
|
|
24
|
+
NoBinding: 'no_binding',
|
|
25
|
+
BindContinent: 'bind_continent',
|
|
26
|
+
BindContinentCountry: 'bind_continent_country',
|
|
27
|
+
BindContinentCountryCity: 'bind_continent_country_city',
|
|
28
|
+
UnknownDefaultOpenApi: '11184809'
|
|
29
|
+
} as const;
|
|
30
|
+
export type GeoipBindingEnum = typeof GeoipBindingEnum[keyof typeof GeoipBindingEnum];
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
export function GeoipBindingEnumFromJSON(json: any): GeoipBindingEnum {
|
|
34
|
+
return GeoipBindingEnumFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function GeoipBindingEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoipBindingEnum {
|
|
38
|
+
return json as GeoipBindingEnum;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function GeoipBindingEnumToJSON(value?: GeoipBindingEnum | null): any {
|
|
42
|
+
return value as any;
|
|
43
|
+
}
|
|
44
|
+
|
package/src/models/ModelEnum.ts
CHANGED
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
* * `authentik_core.application` - Application
|
|
89
89
|
* * `authentik_core.token` - Token
|
|
90
90
|
* * `authentik_enterprise.license` - License
|
|
91
|
+
* * `authentik_providers_rac.racprovider` - RAC Provider
|
|
92
|
+
* * `authentik_providers_rac.endpoint` - RAC Endpoint
|
|
93
|
+
* * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
|
|
91
94
|
* @export
|
|
92
95
|
*/
|
|
93
96
|
export const ModelEnum = {
|
|
@@ -165,6 +168,9 @@ export const ModelEnum = {
|
|
|
165
168
|
CoreApplication: 'authentik_core.application',
|
|
166
169
|
CoreToken: 'authentik_core.token',
|
|
167
170
|
EnterpriseLicense: 'authentik_enterprise.license',
|
|
171
|
+
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
|
172
|
+
ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
|
|
173
|
+
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
|
168
174
|
UnknownDefaultOpenApi: '11184809'
|
|
169
175
|
} as const;
|
|
170
176
|
export type ModelEnum = typeof ModelEnum[keyof typeof ModelEnum];
|
|
@@ -33,6 +33,13 @@ import {
|
|
|
33
33
|
ProxyProviderRequestFromJSONTyped,
|
|
34
34
|
ProxyProviderRequestToJSON,
|
|
35
35
|
} from './ProxyProviderRequest';
|
|
36
|
+
import {
|
|
37
|
+
RACProviderRequest,
|
|
38
|
+
instanceOfRACProviderRequest,
|
|
39
|
+
RACProviderRequestFromJSON,
|
|
40
|
+
RACProviderRequestFromJSONTyped,
|
|
41
|
+
RACProviderRequestToJSON,
|
|
42
|
+
} from './RACProviderRequest';
|
|
36
43
|
import {
|
|
37
44
|
RadiusProviderRequest,
|
|
38
45
|
instanceOfRadiusProviderRequest,
|
|
@@ -60,7 +67,7 @@ import {
|
|
|
60
67
|
*
|
|
61
68
|
* @export
|
|
62
69
|
*/
|
|
63
|
-
export type ModelRequest = { providerModel: 'authentik_providers_ldap.ldapprovider' } & LDAPProviderRequest | { providerModel: 'authentik_providers_oauth2.oauth2provider' } & OAuth2ProviderRequest | { providerModel: 'authentik_providers_proxy.proxyprovider' } & ProxyProviderRequest | { providerModel: 'authentik_providers_radius.radiusprovider' } & RadiusProviderRequest | { providerModel: 'authentik_providers_saml.samlprovider' } & SAMLProviderRequest | { providerModel: 'authentik_providers_scim.scimprovider' } & SCIMProviderRequest;
|
|
70
|
+
export type ModelRequest = { providerModel: 'authentik_providers_ldap.ldapprovider' } & LDAPProviderRequest | { providerModel: 'authentik_providers_oauth2.oauth2provider' } & OAuth2ProviderRequest | { providerModel: 'authentik_providers_proxy.proxyprovider' } & ProxyProviderRequest | { providerModel: 'authentik_providers_rac.racprovider' } & RACProviderRequest | { providerModel: 'authentik_providers_radius.radiusprovider' } & RadiusProviderRequest | { providerModel: 'authentik_providers_saml.samlprovider' } & SAMLProviderRequest | { providerModel: 'authentik_providers_scim.scimprovider' } & SCIMProviderRequest;
|
|
64
71
|
|
|
65
72
|
export function ModelRequestFromJSON(json: any): ModelRequest {
|
|
66
73
|
return ModelRequestFromJSONTyped(json, false);
|
|
@@ -77,6 +84,8 @@ export function ModelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
77
84
|
return {...OAuth2ProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_oauth2.oauth2provider'};
|
|
78
85
|
case 'authentik_providers_proxy.proxyprovider':
|
|
79
86
|
return {...ProxyProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_proxy.proxyprovider'};
|
|
87
|
+
case 'authentik_providers_rac.racprovider':
|
|
88
|
+
return {...RACProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_rac.racprovider'};
|
|
80
89
|
case 'authentik_providers_radius.radiusprovider':
|
|
81
90
|
return {...RadiusProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_radius.radiusprovider'};
|
|
82
91
|
case 'authentik_providers_saml.samlprovider':
|
|
@@ -102,6 +111,8 @@ export function ModelRequestToJSON(value?: ModelRequest | null): any {
|
|
|
102
111
|
return OAuth2ProviderRequestToJSON(value);
|
|
103
112
|
case 'authentik_providers_proxy.proxyprovider':
|
|
104
113
|
return ProxyProviderRequestToJSON(value);
|
|
114
|
+
case 'authentik_providers_rac.racprovider':
|
|
115
|
+
return RACProviderRequestToJSON(value);
|
|
105
116
|
case 'authentik_providers_radius.radiusprovider':
|
|
106
117
|
return RadiusProviderRequestToJSON(value);
|
|
107
118
|
case 'authentik_providers_saml.samlprovider':
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* * `no_binding` - No Binding
|
|
18
|
+
* * `bind_asn` - Bind Asn
|
|
19
|
+
* * `bind_asn_network` - Bind Asn Network
|
|
20
|
+
* * `bind_asn_network_ip` - Bind Asn Network Ip
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export const NetworkBindingEnum = {
|
|
24
|
+
NoBinding: 'no_binding',
|
|
25
|
+
BindAsn: 'bind_asn',
|
|
26
|
+
BindAsnNetwork: 'bind_asn_network',
|
|
27
|
+
BindAsnNetworkIp: 'bind_asn_network_ip',
|
|
28
|
+
UnknownDefaultOpenApi: '11184809'
|
|
29
|
+
} as const;
|
|
30
|
+
export type NetworkBindingEnum = typeof NetworkBindingEnum[keyof typeof NetworkBindingEnum];
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
export function NetworkBindingEnumFromJSON(json: any): NetworkBindingEnum {
|
|
34
|
+
return NetworkBindingEnumFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function NetworkBindingEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworkBindingEnum {
|
|
38
|
+
return json as NetworkBindingEnum;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function NetworkBindingEnumToJSON(value?: NetworkBindingEnum | null): any {
|
|
42
|
+
return value as any;
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -17,12 +17,14 @@
|
|
|
17
17
|
* * `proxy` - Proxy
|
|
18
18
|
* * `ldap` - Ldap
|
|
19
19
|
* * `radius` - Radius
|
|
20
|
+
* * `rac` - Rac
|
|
20
21
|
* @export
|
|
21
22
|
*/
|
|
22
23
|
export const OutpostTypeEnum = {
|
|
23
24
|
Proxy: 'proxy',
|
|
24
25
|
Ldap: 'ldap',
|
|
25
26
|
Radius: 'radius',
|
|
27
|
+
Rac: 'rac',
|
|
26
28
|
UnknownDefaultOpenApi: '11184809'
|
|
27
29
|
} as const;
|
|
28
30
|
export type OutpostTypeEnum = typeof OutpostTypeEnum[keyof typeof OutpostTypeEnum];
|
|
@@ -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.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
|
+
import type { Endpoint } from './Endpoint';
|
|
17
|
+
import {
|
|
18
|
+
EndpointFromJSON,
|
|
19
|
+
EndpointFromJSONTyped,
|
|
20
|
+
EndpointToJSON,
|
|
21
|
+
} from './Endpoint';
|
|
22
|
+
import type { Pagination } from './Pagination';
|
|
23
|
+
import {
|
|
24
|
+
PaginationFromJSON,
|
|
25
|
+
PaginationFromJSONTyped,
|
|
26
|
+
PaginationToJSON,
|
|
27
|
+
} from './Pagination';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PaginatedEndpointList
|
|
33
|
+
*/
|
|
34
|
+
export interface PaginatedEndpointList {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Pagination}
|
|
38
|
+
* @memberof PaginatedEndpointList
|
|
39
|
+
*/
|
|
40
|
+
pagination: Pagination;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<Endpoint>}
|
|
44
|
+
* @memberof PaginatedEndpointList
|
|
45
|
+
*/
|
|
46
|
+
results: Array<Endpoint>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PaginatedEndpointList interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfPaginatedEndpointList(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 PaginatedEndpointListFromJSON(json: any): PaginatedEndpointList {
|
|
61
|
+
return PaginatedEndpointListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedEndpointListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEndpointList {
|
|
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(EndpointFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedEndpointListToJSON(value?: PaginatedEndpointList | 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(EndpointToJSON)),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -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.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
|
+
import type { Pagination } from './Pagination';
|
|
17
|
+
import {
|
|
18
|
+
PaginationFromJSON,
|
|
19
|
+
PaginationFromJSONTyped,
|
|
20
|
+
PaginationToJSON,
|
|
21
|
+
} from './Pagination';
|
|
22
|
+
import type { RACPropertyMapping } from './RACPropertyMapping';
|
|
23
|
+
import {
|
|
24
|
+
RACPropertyMappingFromJSON,
|
|
25
|
+
RACPropertyMappingFromJSONTyped,
|
|
26
|
+
RACPropertyMappingToJSON,
|
|
27
|
+
} from './RACPropertyMapping';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PaginatedRACPropertyMappingList
|
|
33
|
+
*/
|
|
34
|
+
export interface PaginatedRACPropertyMappingList {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Pagination}
|
|
38
|
+
* @memberof PaginatedRACPropertyMappingList
|
|
39
|
+
*/
|
|
40
|
+
pagination: Pagination;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<RACPropertyMapping>}
|
|
44
|
+
* @memberof PaginatedRACPropertyMappingList
|
|
45
|
+
*/
|
|
46
|
+
results: Array<RACPropertyMapping>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PaginatedRACPropertyMappingList interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfPaginatedRACPropertyMappingList(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 PaginatedRACPropertyMappingListFromJSON(json: any): PaginatedRACPropertyMappingList {
|
|
61
|
+
return PaginatedRACPropertyMappingListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedRACPropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRACPropertyMappingList {
|
|
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(RACPropertyMappingFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedRACPropertyMappingListToJSON(value?: PaginatedRACPropertyMappingList | 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(RACPropertyMappingToJSON)),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -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.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
|
+
import type { Pagination } from './Pagination';
|
|
17
|
+
import {
|
|
18
|
+
PaginationFromJSON,
|
|
19
|
+
PaginationFromJSONTyped,
|
|
20
|
+
PaginationToJSON,
|
|
21
|
+
} from './Pagination';
|
|
22
|
+
import type { RACProvider } from './RACProvider';
|
|
23
|
+
import {
|
|
24
|
+
RACProviderFromJSON,
|
|
25
|
+
RACProviderFromJSONTyped,
|
|
26
|
+
RACProviderToJSON,
|
|
27
|
+
} from './RACProvider';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PaginatedRACProviderList
|
|
33
|
+
*/
|
|
34
|
+
export interface PaginatedRACProviderList {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Pagination}
|
|
38
|
+
* @memberof PaginatedRACProviderList
|
|
39
|
+
*/
|
|
40
|
+
pagination: Pagination;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<RACProvider>}
|
|
44
|
+
* @memberof PaginatedRACProviderList
|
|
45
|
+
*/
|
|
46
|
+
results: Array<RACProvider>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PaginatedRACProviderList interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfPaginatedRACProviderList(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 PaginatedRACProviderListFromJSON(json: any): PaginatedRACProviderList {
|
|
61
|
+
return PaginatedRACProviderListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedRACProviderListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRACProviderList {
|
|
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(RACProviderFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedRACProviderListToJSON(value?: PaginatedRACProviderList | 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(RACProviderToJSON)),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
import type { AuthModeEnum } from './AuthModeEnum';
|
|
17
|
+
import {
|
|
18
|
+
AuthModeEnumFromJSON,
|
|
19
|
+
AuthModeEnumFromJSONTyped,
|
|
20
|
+
AuthModeEnumToJSON,
|
|
21
|
+
} from './AuthModeEnum';
|
|
22
|
+
import type { ProtocolEnum } from './ProtocolEnum';
|
|
23
|
+
import {
|
|
24
|
+
ProtocolEnumFromJSON,
|
|
25
|
+
ProtocolEnumFromJSONTyped,
|
|
26
|
+
ProtocolEnumToJSON,
|
|
27
|
+
} from './ProtocolEnum';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Endpoint Serializer
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PatchedEndpointRequest
|
|
33
|
+
*/
|
|
34
|
+
export interface PatchedEndpointRequest {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PatchedEndpointRequest
|
|
39
|
+
*/
|
|
40
|
+
name?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof PatchedEndpointRequest
|
|
45
|
+
*/
|
|
46
|
+
provider?: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {ProtocolEnum}
|
|
50
|
+
* @memberof PatchedEndpointRequest
|
|
51
|
+
*/
|
|
52
|
+
protocol?: ProtocolEnum;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof PatchedEndpointRequest
|
|
57
|
+
*/
|
|
58
|
+
host?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {any}
|
|
62
|
+
* @memberof PatchedEndpointRequest
|
|
63
|
+
*/
|
|
64
|
+
settings?: any | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof PatchedEndpointRequest
|
|
69
|
+
*/
|
|
70
|
+
propertyMappings?: Array<string>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {AuthModeEnum}
|
|
74
|
+
* @memberof PatchedEndpointRequest
|
|
75
|
+
*/
|
|
76
|
+
authMode?: AuthModeEnum;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the PatchedEndpointRequest interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfPatchedEndpointRequest(value: object): boolean {
|
|
83
|
+
let isInstance = true;
|
|
84
|
+
|
|
85
|
+
return isInstance;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PatchedEndpointRequestFromJSON(json: any): PatchedEndpointRequest {
|
|
89
|
+
return PatchedEndpointRequestFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function PatchedEndpointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedEndpointRequest {
|
|
93
|
+
if ((json === undefined) || (json === null)) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
99
|
+
'provider': !exists(json, 'provider') ? undefined : json['provider'],
|
|
100
|
+
'protocol': !exists(json, 'protocol') ? undefined : ProtocolEnumFromJSON(json['protocol']),
|
|
101
|
+
'host': !exists(json, 'host') ? undefined : json['host'],
|
|
102
|
+
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
103
|
+
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
104
|
+
'authMode': !exists(json, 'auth_mode') ? undefined : AuthModeEnumFromJSON(json['auth_mode']),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function PatchedEndpointRequestToJSON(value?: PatchedEndpointRequest | null): any {
|
|
109
|
+
if (value === undefined) {
|
|
110
|
+
return undefined;
|
|
111
|
+
}
|
|
112
|
+
if (value === null) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'name': value.name,
|
|
118
|
+
'provider': value.provider,
|
|
119
|
+
'protocol': ProtocolEnumToJSON(value.protocol),
|
|
120
|
+
'host': value.host,
|
|
121
|
+
'settings': value.settings,
|
|
122
|
+
'property_mappings': value.propertyMappings,
|
|
123
|
+
'auth_mode': AuthModeEnumToJSON(value.authMode),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|