@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,358 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
Endpoint,
|
|
19
|
+
EndpointRequest,
|
|
20
|
+
GenericError,
|
|
21
|
+
PaginatedEndpointList,
|
|
22
|
+
PatchedEndpointRequest,
|
|
23
|
+
UsedBy,
|
|
24
|
+
ValidationError,
|
|
25
|
+
} from '../models';
|
|
26
|
+
import {
|
|
27
|
+
EndpointFromJSON,
|
|
28
|
+
EndpointToJSON,
|
|
29
|
+
EndpointRequestFromJSON,
|
|
30
|
+
EndpointRequestToJSON,
|
|
31
|
+
GenericErrorFromJSON,
|
|
32
|
+
GenericErrorToJSON,
|
|
33
|
+
PaginatedEndpointListFromJSON,
|
|
34
|
+
PaginatedEndpointListToJSON,
|
|
35
|
+
PatchedEndpointRequestFromJSON,
|
|
36
|
+
PatchedEndpointRequestToJSON,
|
|
37
|
+
UsedByFromJSON,
|
|
38
|
+
UsedByToJSON,
|
|
39
|
+
ValidationErrorFromJSON,
|
|
40
|
+
ValidationErrorToJSON,
|
|
41
|
+
} from '../models';
|
|
42
|
+
|
|
43
|
+
export interface RacEndpointsCreateRequest {
|
|
44
|
+
endpointRequest: EndpointRequest;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface RacEndpointsDestroyRequest {
|
|
48
|
+
pbmUuid: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface RacEndpointsListRequest {
|
|
52
|
+
name?: string;
|
|
53
|
+
ordering?: string;
|
|
54
|
+
page?: number;
|
|
55
|
+
pageSize?: number;
|
|
56
|
+
provider?: number;
|
|
57
|
+
search?: string;
|
|
58
|
+
superuserFullList?: boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface RacEndpointsPartialUpdateRequest {
|
|
62
|
+
pbmUuid: string;
|
|
63
|
+
patchedEndpointRequest?: PatchedEndpointRequest;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface RacEndpointsRetrieveRequest {
|
|
67
|
+
pbmUuid: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface RacEndpointsUpdateRequest {
|
|
71
|
+
pbmUuid: string;
|
|
72
|
+
endpointRequest: EndpointRequest;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface RacEndpointsUsedByListRequest {
|
|
76
|
+
pbmUuid: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
export class RacApi extends runtime.BaseAPI {
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Endpoint Viewset
|
|
86
|
+
*/
|
|
87
|
+
async racEndpointsCreateRaw(requestParameters: RacEndpointsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Endpoint>> {
|
|
88
|
+
if (requestParameters.endpointRequest === null || requestParameters.endpointRequest === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('endpointRequest','Required parameter requestParameters.endpointRequest was null or undefined when calling racEndpointsCreate.');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const queryParameters: any = {};
|
|
93
|
+
|
|
94
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
95
|
+
|
|
96
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
97
|
+
|
|
98
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
99
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const response = await this.request({
|
|
103
|
+
path: `/rac/endpoints/`,
|
|
104
|
+
method: 'POST',
|
|
105
|
+
headers: headerParameters,
|
|
106
|
+
query: queryParameters,
|
|
107
|
+
body: EndpointRequestToJSON(requestParameters.endpointRequest),
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
|
|
110
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointFromJSON(jsonValue));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Endpoint Viewset
|
|
115
|
+
*/
|
|
116
|
+
async racEndpointsCreate(requestParameters: RacEndpointsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Endpoint> {
|
|
117
|
+
const response = await this.racEndpointsCreateRaw(requestParameters, initOverrides);
|
|
118
|
+
return await response.value();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Endpoint Viewset
|
|
123
|
+
*/
|
|
124
|
+
async racEndpointsDestroyRaw(requestParameters: RacEndpointsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
125
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
126
|
+
throw new runtime.RequiredError('pbmUuid','Required parameter requestParameters.pbmUuid was null or undefined when calling racEndpointsDestroy.');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const queryParameters: any = {};
|
|
130
|
+
|
|
131
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
132
|
+
|
|
133
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
134
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const response = await this.request({
|
|
138
|
+
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
139
|
+
method: 'DELETE',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
|
|
144
|
+
return new runtime.VoidApiResponse(response);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Endpoint Viewset
|
|
149
|
+
*/
|
|
150
|
+
async racEndpointsDestroy(requestParameters: RacEndpointsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
151
|
+
await this.racEndpointsDestroyRaw(requestParameters, initOverrides);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* List accessible endpoints
|
|
156
|
+
*/
|
|
157
|
+
async racEndpointsListRaw(requestParameters: RacEndpointsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedEndpointList>> {
|
|
158
|
+
const queryParameters: any = {};
|
|
159
|
+
|
|
160
|
+
if (requestParameters.name !== undefined) {
|
|
161
|
+
queryParameters['name'] = requestParameters.name;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (requestParameters.ordering !== undefined) {
|
|
165
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (requestParameters.page !== undefined) {
|
|
169
|
+
queryParameters['page'] = requestParameters.page;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (requestParameters.pageSize !== undefined) {
|
|
173
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (requestParameters.provider !== undefined) {
|
|
177
|
+
queryParameters['provider'] = requestParameters.provider;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (requestParameters.search !== undefined) {
|
|
181
|
+
queryParameters['search'] = requestParameters.search;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (requestParameters.superuserFullList !== undefined) {
|
|
185
|
+
queryParameters['superuser_full_list'] = requestParameters.superuserFullList;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
189
|
+
|
|
190
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
191
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const response = await this.request({
|
|
195
|
+
path: `/rac/endpoints/`,
|
|
196
|
+
method: 'GET',
|
|
197
|
+
headers: headerParameters,
|
|
198
|
+
query: queryParameters,
|
|
199
|
+
}, initOverrides);
|
|
200
|
+
|
|
201
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEndpointListFromJSON(jsonValue));
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* List accessible endpoints
|
|
206
|
+
*/
|
|
207
|
+
async racEndpointsList(requestParameters: RacEndpointsListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedEndpointList> {
|
|
208
|
+
const response = await this.racEndpointsListRaw(requestParameters, initOverrides);
|
|
209
|
+
return await response.value();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Endpoint Viewset
|
|
214
|
+
*/
|
|
215
|
+
async racEndpointsPartialUpdateRaw(requestParameters: RacEndpointsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Endpoint>> {
|
|
216
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
217
|
+
throw new runtime.RequiredError('pbmUuid','Required parameter requestParameters.pbmUuid was null or undefined when calling racEndpointsPartialUpdate.');
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const queryParameters: any = {};
|
|
221
|
+
|
|
222
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
223
|
+
|
|
224
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
225
|
+
|
|
226
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
227
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
const response = await this.request({
|
|
231
|
+
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
232
|
+
method: 'PATCH',
|
|
233
|
+
headers: headerParameters,
|
|
234
|
+
query: queryParameters,
|
|
235
|
+
body: PatchedEndpointRequestToJSON(requestParameters.patchedEndpointRequest),
|
|
236
|
+
}, initOverrides);
|
|
237
|
+
|
|
238
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointFromJSON(jsonValue));
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Endpoint Viewset
|
|
243
|
+
*/
|
|
244
|
+
async racEndpointsPartialUpdate(requestParameters: RacEndpointsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Endpoint> {
|
|
245
|
+
const response = await this.racEndpointsPartialUpdateRaw(requestParameters, initOverrides);
|
|
246
|
+
return await response.value();
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Endpoint Viewset
|
|
251
|
+
*/
|
|
252
|
+
async racEndpointsRetrieveRaw(requestParameters: RacEndpointsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Endpoint>> {
|
|
253
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
254
|
+
throw new runtime.RequiredError('pbmUuid','Required parameter requestParameters.pbmUuid was null or undefined when calling racEndpointsRetrieve.');
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
const queryParameters: any = {};
|
|
258
|
+
|
|
259
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
260
|
+
|
|
261
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
262
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
const response = await this.request({
|
|
266
|
+
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
267
|
+
method: 'GET',
|
|
268
|
+
headers: headerParameters,
|
|
269
|
+
query: queryParameters,
|
|
270
|
+
}, initOverrides);
|
|
271
|
+
|
|
272
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointFromJSON(jsonValue));
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Endpoint Viewset
|
|
277
|
+
*/
|
|
278
|
+
async racEndpointsRetrieve(requestParameters: RacEndpointsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Endpoint> {
|
|
279
|
+
const response = await this.racEndpointsRetrieveRaw(requestParameters, initOverrides);
|
|
280
|
+
return await response.value();
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Endpoint Viewset
|
|
285
|
+
*/
|
|
286
|
+
async racEndpointsUpdateRaw(requestParameters: RacEndpointsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Endpoint>> {
|
|
287
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
288
|
+
throw new runtime.RequiredError('pbmUuid','Required parameter requestParameters.pbmUuid was null or undefined when calling racEndpointsUpdate.');
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
if (requestParameters.endpointRequest === null || requestParameters.endpointRequest === undefined) {
|
|
292
|
+
throw new runtime.RequiredError('endpointRequest','Required parameter requestParameters.endpointRequest was null or undefined when calling racEndpointsUpdate.');
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
const queryParameters: any = {};
|
|
296
|
+
|
|
297
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
298
|
+
|
|
299
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
300
|
+
|
|
301
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
302
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
const response = await this.request({
|
|
306
|
+
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
307
|
+
method: 'PUT',
|
|
308
|
+
headers: headerParameters,
|
|
309
|
+
query: queryParameters,
|
|
310
|
+
body: EndpointRequestToJSON(requestParameters.endpointRequest),
|
|
311
|
+
}, initOverrides);
|
|
312
|
+
|
|
313
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EndpointFromJSON(jsonValue));
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Endpoint Viewset
|
|
318
|
+
*/
|
|
319
|
+
async racEndpointsUpdate(requestParameters: RacEndpointsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Endpoint> {
|
|
320
|
+
const response = await this.racEndpointsUpdateRaw(requestParameters, initOverrides);
|
|
321
|
+
return await response.value();
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Get a list of all objects that use this object
|
|
326
|
+
*/
|
|
327
|
+
async racEndpointsUsedByListRaw(requestParameters: RacEndpointsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
|
328
|
+
if (requestParameters.pbmUuid === null || requestParameters.pbmUuid === undefined) {
|
|
329
|
+
throw new runtime.RequiredError('pbmUuid','Required parameter requestParameters.pbmUuid was null or undefined when calling racEndpointsUsedByList.');
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
const queryParameters: any = {};
|
|
333
|
+
|
|
334
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
335
|
+
|
|
336
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
337
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
const response = await this.request({
|
|
341
|
+
path: `/rac/endpoints/{pbm_uuid}/used_by/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
342
|
+
method: 'GET',
|
|
343
|
+
headers: headerParameters,
|
|
344
|
+
query: queryParameters,
|
|
345
|
+
}, initOverrides);
|
|
346
|
+
|
|
347
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Get a list of all objects that use this object
|
|
352
|
+
*/
|
|
353
|
+
async racEndpointsUsedByList(requestParameters: RacEndpointsUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
|
354
|
+
const response = await this.racEndpointsUsedByListRaw(requestParameters, initOverrides);
|
|
355
|
+
return await response.value();
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
}
|
package/src/apis/RbacApi.ts
CHANGED
|
@@ -953,6 +953,9 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
953
953
|
ProvidersOauth2Refreshtoken: 'authentik_providers_oauth2.refreshtoken',
|
|
954
954
|
ProvidersOauth2Scopemapping: 'authentik_providers_oauth2.scopemapping',
|
|
955
955
|
ProvidersProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
|
|
956
|
+
ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
|
|
957
|
+
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
|
958
|
+
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
|
956
959
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
|
957
960
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
|
958
961
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
|
@@ -1034,6 +1037,9 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
|
1034
1037
|
ProvidersOauth2Refreshtoken: 'authentik_providers_oauth2.refreshtoken',
|
|
1035
1038
|
ProvidersOauth2Scopemapping: 'authentik_providers_oauth2.scopemapping',
|
|
1036
1039
|
ProvidersProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
|
|
1040
|
+
ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
|
|
1041
|
+
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
|
1042
|
+
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
|
1037
1043
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
|
1038
1044
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
|
1039
1045
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
package/src/apis/SchemaApi.ts
CHANGED
package/src/apis/StagesApi.ts
CHANGED
|
@@ -1036,7 +1036,9 @@ export interface StagesUserLoginDestroyRequest {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
|
|
1038
1038
|
export interface StagesUserLoginListRequest {
|
|
1039
|
+
geoipBinding?: StagesUserLoginListGeoipBindingEnum;
|
|
1039
1040
|
name?: string;
|
|
1041
|
+
networkBinding?: StagesUserLoginListNetworkBindingEnum;
|
|
1040
1042
|
ordering?: string;
|
|
1041
1043
|
page?: number;
|
|
1042
1044
|
pageSize?: number;
|
|
@@ -6691,10 +6693,18 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
6691
6693
|
async stagesUserLoginListRaw(requestParameters: StagesUserLoginListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedUserLoginStageList>> {
|
|
6692
6694
|
const queryParameters: any = {};
|
|
6693
6695
|
|
|
6696
|
+
if (requestParameters.geoipBinding !== undefined) {
|
|
6697
|
+
queryParameters['geoip_binding'] = requestParameters.geoipBinding;
|
|
6698
|
+
}
|
|
6699
|
+
|
|
6694
6700
|
if (requestParameters.name !== undefined) {
|
|
6695
6701
|
queryParameters['name'] = requestParameters.name;
|
|
6696
6702
|
}
|
|
6697
6703
|
|
|
6704
|
+
if (requestParameters.networkBinding !== undefined) {
|
|
6705
|
+
queryParameters['network_binding'] = requestParameters.networkBinding;
|
|
6706
|
+
}
|
|
6707
|
+
|
|
6698
6708
|
if (requestParameters.ordering !== undefined) {
|
|
6699
6709
|
queryParameters['ordering'] = requestParameters.ordering;
|
|
6700
6710
|
}
|
|
@@ -7560,6 +7570,28 @@ export const StagesPromptPromptsListTypeEnum = {
|
|
|
7560
7570
|
UnknownDefaultOpenApi: '11184809'
|
|
7561
7571
|
} as const;
|
|
7562
7572
|
export type StagesPromptPromptsListTypeEnum = typeof StagesPromptPromptsListTypeEnum[keyof typeof StagesPromptPromptsListTypeEnum];
|
|
7573
|
+
/**
|
|
7574
|
+
* @export
|
|
7575
|
+
*/
|
|
7576
|
+
export const StagesUserLoginListGeoipBindingEnum = {
|
|
7577
|
+
BindContinent: 'bind_continent',
|
|
7578
|
+
BindContinentCountry: 'bind_continent_country',
|
|
7579
|
+
BindContinentCountryCity: 'bind_continent_country_city',
|
|
7580
|
+
NoBinding: 'no_binding',
|
|
7581
|
+
UnknownDefaultOpenApi: '11184809'
|
|
7582
|
+
} as const;
|
|
7583
|
+
export type StagesUserLoginListGeoipBindingEnum = typeof StagesUserLoginListGeoipBindingEnum[keyof typeof StagesUserLoginListGeoipBindingEnum];
|
|
7584
|
+
/**
|
|
7585
|
+
* @export
|
|
7586
|
+
*/
|
|
7587
|
+
export const StagesUserLoginListNetworkBindingEnum = {
|
|
7588
|
+
BindAsn: 'bind_asn',
|
|
7589
|
+
BindAsnNetwork: 'bind_asn_network',
|
|
7590
|
+
BindAsnNetworkIp: 'bind_asn_network_ip',
|
|
7591
|
+
NoBinding: 'no_binding',
|
|
7592
|
+
UnknownDefaultOpenApi: '11184809'
|
|
7593
|
+
} as const;
|
|
7594
|
+
export type StagesUserLoginListNetworkBindingEnum = typeof StagesUserLoginListNetworkBindingEnum[keyof typeof StagesUserLoginListNetworkBindingEnum];
|
|
7563
7595
|
/**
|
|
7564
7596
|
* @export
|
|
7565
7597
|
*/
|
package/src/apis/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './OutpostsApi';
|
|
|
13
13
|
export * from './PoliciesApi';
|
|
14
14
|
export * from './PropertymappingsApi';
|
|
15
15
|
export * from './ProvidersApi';
|
|
16
|
+
export * from './RacApi';
|
|
16
17
|
export * from './RbacApi';
|
|
17
18
|
export * from './RootApi';
|
|
18
19
|
export * from './SchemaApi';
|
package/src/models/AppEnum.ts
CHANGED
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
* * `authentik.blueprints` - authentik Blueprints
|
|
64
64
|
* * `authentik.core` - authentik Core
|
|
65
65
|
* * `authentik.enterprise` - authentik Enterprise
|
|
66
|
+
* * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
|
|
66
67
|
* @export
|
|
67
68
|
*/
|
|
68
69
|
export const AppEnum = {
|
|
@@ -115,6 +116,7 @@ export const AppEnum = {
|
|
|
115
116
|
Blueprints: 'authentik.blueprints',
|
|
116
117
|
Core: 'authentik.core',
|
|
117
118
|
Enterprise: 'authentik.enterprise',
|
|
119
|
+
EnterpriseProvidersRac: 'authentik.enterprise.providers.rac',
|
|
118
120
|
UnknownDefaultOpenApi: '11184809'
|
|
119
121
|
} as const;
|
|
120
122
|
export type AppEnum = typeof AppEnum[keyof typeof AppEnum];
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* * `static` - Static
|
|
18
|
+
* * `prompt` - Prompt
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const AuthModeEnum = {
|
|
22
|
+
Static: 'static',
|
|
23
|
+
Prompt: 'prompt',
|
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
|
25
|
+
} as const;
|
|
26
|
+
export type AuthModeEnum = typeof AuthModeEnum[keyof typeof AuthModeEnum];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function AuthModeEnumFromJSON(json: any): AuthModeEnum {
|
|
30
|
+
return AuthModeEnumFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function AuthModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthModeEnum {
|
|
34
|
+
return json as AuthModeEnum;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function AuthModeEnumToJSON(value?: AuthModeEnum | null): any {
|
|
38
|
+
return value as any;
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,162 @@
|
|
|
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
|
+
import type { RACProvider } from './RACProvider';
|
|
29
|
+
import {
|
|
30
|
+
RACProviderFromJSON,
|
|
31
|
+
RACProviderFromJSONTyped,
|
|
32
|
+
RACProviderToJSON,
|
|
33
|
+
} from './RACProvider';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Endpoint Serializer
|
|
37
|
+
* @export
|
|
38
|
+
* @interface Endpoint
|
|
39
|
+
*/
|
|
40
|
+
export interface Endpoint {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Endpoint
|
|
45
|
+
*/
|
|
46
|
+
readonly pk: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Endpoint
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof Endpoint
|
|
57
|
+
*/
|
|
58
|
+
provider: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {RACProvider}
|
|
62
|
+
* @memberof Endpoint
|
|
63
|
+
*/
|
|
64
|
+
readonly providerObj: RACProvider;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {ProtocolEnum}
|
|
68
|
+
* @memberof Endpoint
|
|
69
|
+
*/
|
|
70
|
+
protocol: ProtocolEnum;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof Endpoint
|
|
75
|
+
*/
|
|
76
|
+
host: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {any}
|
|
80
|
+
* @memberof Endpoint
|
|
81
|
+
*/
|
|
82
|
+
settings?: any | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Array<string>}
|
|
86
|
+
* @memberof Endpoint
|
|
87
|
+
*/
|
|
88
|
+
propertyMappings?: Array<string>;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {AuthModeEnum}
|
|
92
|
+
* @memberof Endpoint
|
|
93
|
+
*/
|
|
94
|
+
authMode: AuthModeEnum;
|
|
95
|
+
/**
|
|
96
|
+
* Build actual launch URL (the provider itself does not have one, just
|
|
97
|
+
* individual endpoints)
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof Endpoint
|
|
100
|
+
*/
|
|
101
|
+
readonly launchUrl: string | null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Check if a given object implements the Endpoint interface.
|
|
106
|
+
*/
|
|
107
|
+
export function instanceOfEndpoint(value: object): boolean {
|
|
108
|
+
let isInstance = true;
|
|
109
|
+
isInstance = isInstance && "pk" in value;
|
|
110
|
+
isInstance = isInstance && "name" in value;
|
|
111
|
+
isInstance = isInstance && "provider" in value;
|
|
112
|
+
isInstance = isInstance && "providerObj" in value;
|
|
113
|
+
isInstance = isInstance && "protocol" in value;
|
|
114
|
+
isInstance = isInstance && "host" in value;
|
|
115
|
+
isInstance = isInstance && "authMode" in value;
|
|
116
|
+
isInstance = isInstance && "launchUrl" in value;
|
|
117
|
+
|
|
118
|
+
return isInstance;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function EndpointFromJSON(json: any): Endpoint {
|
|
122
|
+
return EndpointFromJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function EndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): Endpoint {
|
|
126
|
+
if ((json === undefined) || (json === null)) {
|
|
127
|
+
return json;
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'pk': json['pk'],
|
|
132
|
+
'name': json['name'],
|
|
133
|
+
'provider': json['provider'],
|
|
134
|
+
'providerObj': RACProviderFromJSON(json['provider_obj']),
|
|
135
|
+
'protocol': ProtocolEnumFromJSON(json['protocol']),
|
|
136
|
+
'host': json['host'],
|
|
137
|
+
'settings': !exists(json, 'settings') ? undefined : json['settings'],
|
|
138
|
+
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
139
|
+
'authMode': AuthModeEnumFromJSON(json['auth_mode']),
|
|
140
|
+
'launchUrl': json['launch_url'],
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function EndpointToJSON(value?: Endpoint | null): any {
|
|
145
|
+
if (value === undefined) {
|
|
146
|
+
return undefined;
|
|
147
|
+
}
|
|
148
|
+
if (value === null) {
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'name': value.name,
|
|
154
|
+
'provider': value.provider,
|
|
155
|
+
'protocol': ProtocolEnumToJSON(value.protocol),
|
|
156
|
+
'host': value.host,
|
|
157
|
+
'settings': value.settings,
|
|
158
|
+
'property_mappings': value.propertyMappings,
|
|
159
|
+
'auth_mode': AuthModeEnumToJSON(value.authMode),
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|