@goauthentik/api 2023.10.3-1699554078 → 2023.10.3-1700176062
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 +3 -2
- package/dist/apis/AdminApi.d.ts +5 -5
- package/dist/apis/AdminApi.js +2 -2
- package/dist/apis/SourcesApi.d.ts +4 -4
- package/dist/apis/SourcesApi.js +5 -5
- package/dist/apis/StagesApi.d.ts +3 -3
- package/dist/apis/StagesApi.js +3 -3
- package/dist/esm/apis/AdminApi.d.ts +5 -5
- package/dist/esm/apis/AdminApi.js +3 -3
- package/dist/esm/apis/SourcesApi.d.ts +4 -4
- package/dist/esm/apis/SourcesApi.js +6 -6
- package/dist/esm/apis/StagesApi.d.ts +3 -3
- package/dist/esm/apis/StagesApi.js +3 -3
- package/dist/esm/models/DigitsEnum.d.ts +3 -3
- package/dist/esm/models/DigitsEnum.js +3 -3
- package/dist/esm/models/LDAPSource.d.ts +10 -0
- package/dist/esm/models/LDAPSource.js +2 -0
- package/dist/esm/models/LDAPSyncStatus.d.ts +38 -0
- package/dist/esm/models/LDAPSyncStatus.js +44 -0
- package/dist/esm/models/{System.d.ts → SystemInfo.d.ts} +17 -17
- package/dist/esm/models/{System.js → SystemInfo.js} +9 -9
- package/dist/{models/SystemRuntime.d.ts → esm/models/SystemInfoRuntime.d.ts} +13 -13
- package/dist/esm/models/{SystemRuntime.js → SystemInfoRuntime.js} +6 -6
- package/dist/esm/models/index.d.ts +3 -2
- package/dist/esm/models/index.js +3 -2
- package/dist/models/DigitsEnum.d.ts +3 -3
- package/dist/models/DigitsEnum.js +3 -3
- package/dist/models/LDAPSource.d.ts +10 -0
- package/dist/models/LDAPSource.js +2 -0
- package/dist/models/LDAPSyncStatus.d.ts +38 -0
- package/dist/models/LDAPSyncStatus.js +51 -0
- package/dist/models/{System.d.ts → SystemInfo.d.ts} +17 -17
- package/dist/models/{System.js → SystemInfo.js} +14 -14
- package/dist/{esm/models/SystemRuntime.d.ts → models/SystemInfoRuntime.d.ts} +13 -13
- package/dist/models/{SystemRuntime.js → SystemInfoRuntime.js} +11 -11
- package/dist/models/index.d.ts +3 -2
- package/dist/models/index.js +3 -2
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +9 -9
- package/src/apis/SourcesApi.ts +9 -9
- package/src/apis/StagesApi.ts +3 -3
- package/src/models/DigitsEnum.ts +3 -3
- package/src/models/LDAPSource.ts +8 -0
- package/src/models/LDAPSyncStatus.ts +80 -0
- package/src/models/{System.ts → SystemInfo.ts} +24 -24
- package/src/models/{SystemRuntime.ts → SystemInfoRuntime.ts} +14 -14
- package/src/models/index.ts +3 -2
package/src/apis/AdminApi.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
App,
|
|
19
19
|
GenericError,
|
|
20
20
|
LoginMetrics,
|
|
21
|
-
|
|
21
|
+
SystemInfo,
|
|
22
22
|
Task,
|
|
23
23
|
ValidationError,
|
|
24
24
|
Version,
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
GenericErrorToJSON,
|
|
32
32
|
LoginMetricsFromJSON,
|
|
33
33
|
LoginMetricsToJSON,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
SystemInfoFromJSON,
|
|
35
|
+
SystemInfoToJSON,
|
|
36
36
|
TaskFromJSON,
|
|
37
37
|
TaskToJSON,
|
|
38
38
|
ValidationErrorFromJSON,
|
|
@@ -149,7 +149,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
149
149
|
/**
|
|
150
150
|
* Get system information.
|
|
151
151
|
*/
|
|
152
|
-
async adminSystemCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
152
|
+
async adminSystemCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfo>> {
|
|
153
153
|
const queryParameters: any = {};
|
|
154
154
|
|
|
155
155
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -165,13 +165,13 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
165
165
|
query: queryParameters,
|
|
166
166
|
}, initOverrides);
|
|
167
167
|
|
|
168
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
168
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SystemInfoFromJSON(jsonValue));
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* Get system information.
|
|
173
173
|
*/
|
|
174
|
-
async adminSystemCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
174
|
+
async adminSystemCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfo> {
|
|
175
175
|
const response = await this.adminSystemCreateRaw(initOverrides);
|
|
176
176
|
return await response.value();
|
|
177
177
|
}
|
|
@@ -179,7 +179,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
179
179
|
/**
|
|
180
180
|
* Get system information.
|
|
181
181
|
*/
|
|
182
|
-
async adminSystemRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
182
|
+
async adminSystemRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfo>> {
|
|
183
183
|
const queryParameters: any = {};
|
|
184
184
|
|
|
185
185
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -195,13 +195,13 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
195
195
|
query: queryParameters,
|
|
196
196
|
}, initOverrides);
|
|
197
197
|
|
|
198
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
198
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SystemInfoFromJSON(jsonValue));
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
* Get system information.
|
|
203
203
|
*/
|
|
204
|
-
async adminSystemRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
204
|
+
async adminSystemRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfo> {
|
|
205
205
|
const response = await this.adminSystemRetrieveRaw(initOverrides);
|
|
206
206
|
return await response.value();
|
|
207
207
|
}
|
package/src/apis/SourcesApi.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
LDAPDebug,
|
|
21
21
|
LDAPSource,
|
|
22
22
|
LDAPSourceRequest,
|
|
23
|
+
LDAPSyncStatus,
|
|
23
24
|
OAuthSource,
|
|
24
25
|
OAuthSourceRequest,
|
|
25
26
|
PaginatedLDAPSourceList,
|
|
@@ -49,7 +50,6 @@ import type {
|
|
|
49
50
|
SAMLSourceRequest,
|
|
50
51
|
Source,
|
|
51
52
|
SourceType,
|
|
52
|
-
Task,
|
|
53
53
|
TypeCreate,
|
|
54
54
|
UsedBy,
|
|
55
55
|
UserOAuthSourceConnection,
|
|
@@ -71,6 +71,8 @@ import {
|
|
|
71
71
|
LDAPSourceToJSON,
|
|
72
72
|
LDAPSourceRequestFromJSON,
|
|
73
73
|
LDAPSourceRequestToJSON,
|
|
74
|
+
LDAPSyncStatusFromJSON,
|
|
75
|
+
LDAPSyncStatusToJSON,
|
|
74
76
|
OAuthSourceFromJSON,
|
|
75
77
|
OAuthSourceToJSON,
|
|
76
78
|
OAuthSourceRequestFromJSON,
|
|
@@ -129,8 +131,6 @@ import {
|
|
|
129
131
|
SourceToJSON,
|
|
130
132
|
SourceTypeFromJSON,
|
|
131
133
|
SourceTypeToJSON,
|
|
132
|
-
TaskFromJSON,
|
|
133
|
-
TaskToJSON,
|
|
134
134
|
TypeCreateFromJSON,
|
|
135
135
|
TypeCreateToJSON,
|
|
136
136
|
UsedByFromJSON,
|
|
@@ -234,7 +234,7 @@ export interface SourcesLdapRetrieveRequest {
|
|
|
234
234
|
slug: string;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
export interface
|
|
237
|
+
export interface SourcesLdapSyncStatusRetrieveRequest {
|
|
238
238
|
slug: string;
|
|
239
239
|
}
|
|
240
240
|
|
|
@@ -1172,9 +1172,9 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Get source\'s sync status
|
|
1174
1174
|
*/
|
|
1175
|
-
async
|
|
1175
|
+
async sourcesLdapSyncStatusRetrieveRaw(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LDAPSyncStatus>> {
|
|
1176
1176
|
if (requestParameters.slug === null || requestParameters.slug === undefined) {
|
|
1177
|
-
throw new runtime.RequiredError('slug','Required parameter requestParameters.slug was null or undefined when calling
|
|
1177
|
+
throw new runtime.RequiredError('slug','Required parameter requestParameters.slug was null or undefined when calling sourcesLdapSyncStatusRetrieve.');
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
1180
|
const queryParameters: any = {};
|
|
@@ -1192,14 +1192,14 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
1192
1192
|
query: queryParameters,
|
|
1193
1193
|
}, initOverrides);
|
|
1194
1194
|
|
|
1195
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
1195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LDAPSyncStatusFromJSON(jsonValue));
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Get source\'s sync status
|
|
1200
1200
|
*/
|
|
1201
|
-
async
|
|
1202
|
-
const response = await this.
|
|
1201
|
+
async sourcesLdapSyncStatusRetrieve(requestParameters: SourcesLdapSyncStatusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LDAPSyncStatus> {
|
|
1202
|
+
const response = await this.sourcesLdapSyncStatusRetrieveRaw(requestParameters, initOverrides);
|
|
1203
1203
|
return await response.value();
|
|
1204
1204
|
}
|
|
1205
1205
|
|
package/src/apis/StagesApi.ts
CHANGED
|
@@ -7481,9 +7481,9 @@ export type StagesAuthenticatorSmsListProviderEnum = typeof StagesAuthenticatorS
|
|
|
7481
7481
|
* @export
|
|
7482
7482
|
*/
|
|
7483
7483
|
export const StagesAuthenticatorTotpListDigitsEnum = {
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7484
|
+
_6: '6',
|
|
7485
|
+
_8: '8',
|
|
7486
|
+
UnknownDefaultOpenApi: '11184809'
|
|
7487
7487
|
} as const;
|
|
7488
7488
|
export type StagesAuthenticatorTotpListDigitsEnum = typeof StagesAuthenticatorTotpListDigitsEnum[keyof typeof StagesAuthenticatorTotpListDigitsEnum];
|
|
7489
7489
|
/**
|
package/src/models/DigitsEnum.ts
CHANGED
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* @export
|
|
20
20
|
*/
|
|
21
21
|
export const DigitsEnum = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
_6: '6',
|
|
23
|
+
_8: '8',
|
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
|
25
25
|
} as const;
|
|
26
26
|
export type DigitsEnum = typeof DigitsEnum[keyof typeof DigitsEnum];
|
|
27
27
|
|
package/src/models/LDAPSource.ts
CHANGED
|
@@ -237,6 +237,12 @@ export interface LDAPSource {
|
|
|
237
237
|
* @memberof LDAPSource
|
|
238
238
|
*/
|
|
239
239
|
propertyMappingsGroup?: Array<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Get cached source connectivity
|
|
242
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
243
|
+
* @memberof LDAPSource
|
|
244
|
+
*/
|
|
245
|
+
readonly connectivity: { [key: string]: { [key: string]: string; }; } | null;
|
|
240
246
|
}
|
|
241
247
|
|
|
242
248
|
/**
|
|
@@ -255,6 +261,7 @@ export function instanceOfLDAPSource(value: object): boolean {
|
|
|
255
261
|
isInstance = isInstance && "icon" in value;
|
|
256
262
|
isInstance = isInstance && "serverUri" in value;
|
|
257
263
|
isInstance = isInstance && "baseDn" in value;
|
|
264
|
+
isInstance = isInstance && "connectivity" in value;
|
|
258
265
|
|
|
259
266
|
return isInstance;
|
|
260
267
|
}
|
|
@@ -303,6 +310,7 @@ export function LDAPSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
303
310
|
'syncParentGroup': !exists(json, 'sync_parent_group') ? undefined : json['sync_parent_group'],
|
|
304
311
|
'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
|
|
305
312
|
'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],
|
|
313
|
+
'connectivity': json['connectivity'],
|
|
306
314
|
};
|
|
307
315
|
}
|
|
308
316
|
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.3
|
|
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 { Task } from './Task';
|
|
17
|
+
import {
|
|
18
|
+
TaskFromJSON,
|
|
19
|
+
TaskFromJSONTyped,
|
|
20
|
+
TaskToJSON,
|
|
21
|
+
} from './Task';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* LDAP Source sync status
|
|
25
|
+
* @export
|
|
26
|
+
* @interface LDAPSyncStatus
|
|
27
|
+
*/
|
|
28
|
+
export interface LDAPSyncStatus {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof LDAPSyncStatus
|
|
33
|
+
*/
|
|
34
|
+
readonly isRunning: boolean;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<Task>}
|
|
38
|
+
* @memberof LDAPSyncStatus
|
|
39
|
+
*/
|
|
40
|
+
readonly tasks: Array<Task>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the LDAPSyncStatus interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfLDAPSyncStatus(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "isRunning" in value;
|
|
49
|
+
isInstance = isInstance && "tasks" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function LDAPSyncStatusFromJSON(json: any): LDAPSyncStatus {
|
|
55
|
+
return LDAPSyncStatusFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function LDAPSyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPSyncStatus {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'isRunning': json['is_running'],
|
|
65
|
+
'tasks': ((json['tasks'] as Array<any>).map(TaskFromJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function LDAPSyncStatusToJSON(value?: LDAPSyncStatus | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -13,67 +13,67 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { SystemInfoRuntime } from './SystemInfoRuntime';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
SystemInfoRuntimeFromJSON,
|
|
19
|
+
SystemInfoRuntimeFromJSONTyped,
|
|
20
|
+
SystemInfoRuntimeToJSON,
|
|
21
|
+
} from './SystemInfoRuntime';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Get system information.
|
|
25
25
|
* @export
|
|
26
|
-
* @interface
|
|
26
|
+
* @interface SystemInfo
|
|
27
27
|
*/
|
|
28
|
-
export interface
|
|
28
|
+
export interface SystemInfo {
|
|
29
29
|
/**
|
|
30
30
|
* Get HTTP Request headers
|
|
31
31
|
* @type {{ [key: string]: string; }}
|
|
32
|
-
* @memberof
|
|
32
|
+
* @memberof SystemInfo
|
|
33
33
|
*/
|
|
34
34
|
readonly httpHeaders: { [key: string]: string; };
|
|
35
35
|
/**
|
|
36
36
|
* Get HTTP host
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof SystemInfo
|
|
39
39
|
*/
|
|
40
40
|
readonly httpHost: string;
|
|
41
41
|
/**
|
|
42
42
|
* Get HTTP Secure flag
|
|
43
43
|
* @type {boolean}
|
|
44
|
-
* @memberof
|
|
44
|
+
* @memberof SystemInfo
|
|
45
45
|
*/
|
|
46
46
|
readonly httpIsSecure: boolean;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
50
|
-
* @memberof
|
|
49
|
+
* @type {SystemInfoRuntime}
|
|
50
|
+
* @memberof SystemInfo
|
|
51
51
|
*/
|
|
52
|
-
runtime:
|
|
52
|
+
runtime: SystemInfoRuntime;
|
|
53
53
|
/**
|
|
54
54
|
* Currently active tenant
|
|
55
55
|
* @type {string}
|
|
56
|
-
* @memberof
|
|
56
|
+
* @memberof SystemInfo
|
|
57
57
|
*/
|
|
58
58
|
readonly tenant: string;
|
|
59
59
|
/**
|
|
60
60
|
* Current server time
|
|
61
61
|
* @type {Date}
|
|
62
|
-
* @memberof
|
|
62
|
+
* @memberof SystemInfo
|
|
63
63
|
*/
|
|
64
64
|
readonly serverTime: Date;
|
|
65
65
|
/**
|
|
66
66
|
* Get the FQDN configured on the embedded outpost
|
|
67
67
|
* @type {string}
|
|
68
|
-
* @memberof
|
|
68
|
+
* @memberof SystemInfo
|
|
69
69
|
*/
|
|
70
70
|
readonly embeddedOutpostHost: string;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* Check if a given object implements the
|
|
74
|
+
* Check if a given object implements the SystemInfo interface.
|
|
75
75
|
*/
|
|
76
|
-
export function
|
|
76
|
+
export function instanceOfSystemInfo(value: object): boolean {
|
|
77
77
|
let isInstance = true;
|
|
78
78
|
isInstance = isInstance && "httpHeaders" in value;
|
|
79
79
|
isInstance = isInstance && "httpHost" in value;
|
|
@@ -86,11 +86,11 @@ export function instanceOfSystem(value: object): boolean {
|
|
|
86
86
|
return isInstance;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export function
|
|
90
|
-
return
|
|
89
|
+
export function SystemInfoFromJSON(json: any): SystemInfo {
|
|
90
|
+
return SystemInfoFromJSONTyped(json, false);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export function
|
|
93
|
+
export function SystemInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemInfo {
|
|
94
94
|
if ((json === undefined) || (json === null)) {
|
|
95
95
|
return json;
|
|
96
96
|
}
|
|
@@ -99,14 +99,14 @@ export function SystemFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sy
|
|
|
99
99
|
'httpHeaders': json['http_headers'],
|
|
100
100
|
'httpHost': json['http_host'],
|
|
101
101
|
'httpIsSecure': json['http_is_secure'],
|
|
102
|
-
'runtime':
|
|
102
|
+
'runtime': SystemInfoRuntimeFromJSON(json['runtime']),
|
|
103
103
|
'tenant': json['tenant'],
|
|
104
104
|
'serverTime': (new Date(json['server_time'])),
|
|
105
105
|
'embeddedOutpostHost': json['embedded_outpost_host'],
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export function
|
|
109
|
+
export function SystemInfoToJSON(value?: SystemInfo | null): any {
|
|
110
110
|
if (value === undefined) {
|
|
111
111
|
return undefined;
|
|
112
112
|
}
|
|
@@ -115,7 +115,7 @@ export function SystemToJSON(value?: System | null): any {
|
|
|
115
115
|
}
|
|
116
116
|
return {
|
|
117
117
|
|
|
118
|
-
'runtime':
|
|
118
|
+
'runtime': SystemInfoRuntimeToJSON(value.runtime),
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -16,51 +16,51 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
* Get versions
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface SystemInfoRuntime
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface SystemInfoRuntime {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof SystemInfoRuntime
|
|
26
26
|
*/
|
|
27
27
|
pythonVersion: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof SystemInfoRuntime
|
|
32
32
|
*/
|
|
33
33
|
gunicornVersion: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof SystemInfoRuntime
|
|
38
38
|
*/
|
|
39
39
|
environment: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof SystemInfoRuntime
|
|
44
44
|
*/
|
|
45
45
|
architecture: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof SystemInfoRuntime
|
|
50
50
|
*/
|
|
51
51
|
platform: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof SystemInfoRuntime
|
|
56
56
|
*/
|
|
57
57
|
uname: string;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* Check if a given object implements the
|
|
61
|
+
* Check if a given object implements the SystemInfoRuntime interface.
|
|
62
62
|
*/
|
|
63
|
-
export function
|
|
63
|
+
export function instanceOfSystemInfoRuntime(value: object): boolean {
|
|
64
64
|
let isInstance = true;
|
|
65
65
|
isInstance = isInstance && "pythonVersion" in value;
|
|
66
66
|
isInstance = isInstance && "gunicornVersion" in value;
|
|
@@ -72,11 +72,11 @@ export function instanceOfSystemRuntime(value: object): boolean {
|
|
|
72
72
|
return isInstance;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export function
|
|
76
|
-
return
|
|
75
|
+
export function SystemInfoRuntimeFromJSON(json: any): SystemInfoRuntime {
|
|
76
|
+
return SystemInfoRuntimeFromJSONTyped(json, false);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export function
|
|
79
|
+
export function SystemInfoRuntimeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemInfoRuntime {
|
|
80
80
|
if ((json === undefined) || (json === null)) {
|
|
81
81
|
return json;
|
|
82
82
|
}
|
|
@@ -91,7 +91,7 @@ export function SystemRuntimeFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
export function
|
|
94
|
+
export function SystemInfoRuntimeToJSON(value?: SystemInfoRuntime | null): any {
|
|
95
95
|
if (value === undefined) {
|
|
96
96
|
return undefined;
|
|
97
97
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -154,6 +154,7 @@ export * from './LDAPProvider';
|
|
|
154
154
|
export * from './LDAPProviderRequest';
|
|
155
155
|
export * from './LDAPSource';
|
|
156
156
|
export * from './LDAPSourceRequest';
|
|
157
|
+
export * from './LDAPSyncStatus';
|
|
157
158
|
export * from './LayoutEnum';
|
|
158
159
|
export * from './License';
|
|
159
160
|
export * from './LicenseForecast';
|
|
@@ -443,8 +444,8 @@ export * from './StaticDeviceRequest';
|
|
|
443
444
|
export * from './StaticDeviceToken';
|
|
444
445
|
export * from './StaticDeviceTokenRequest';
|
|
445
446
|
export * from './SubModeEnum';
|
|
446
|
-
export * from './
|
|
447
|
-
export * from './
|
|
447
|
+
export * from './SystemInfo';
|
|
448
|
+
export * from './SystemInfoRuntime';
|
|
448
449
|
export * from './TOTPDevice';
|
|
449
450
|
export * from './TOTPDeviceRequest';
|
|
450
451
|
export * from './Task';
|