@goauthentik/api 2024.6.3-1723109801 → 2024.6.3-1723206419
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 +1 -0
- package/dist/esm/models/LicenseSummary.d.ts +3 -26
- package/dist/esm/models/LicenseSummary.js +4 -15
- package/dist/esm/models/LicenseSummaryStatusEnum.d.ts +29 -0
- package/dist/esm/models/LicenseSummaryStatusEnum.js +36 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/LicenseSummary.d.ts +3 -26
- package/dist/models/LicenseSummary.js +4 -15
- package/dist/models/LicenseSummaryStatusEnum.d.ts +29 -0
- package/dist/models/LicenseSummaryStatusEnum.js +42 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/LicenseSummary.ts +12 -41
- package/src/models/LicenseSummaryStatusEnum.ts +44 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LicenseSummaryStatusEnum } from './LicenseSummaryStatusEnum';
|
|
12
13
|
/**
|
|
13
14
|
* Serializer for license status
|
|
14
15
|
* @export
|
|
@@ -29,40 +30,16 @@ export interface LicenseSummary {
|
|
|
29
30
|
externalUsers: number;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @type {
|
|
33
|
+
* @type {LicenseSummaryStatusEnum}
|
|
33
34
|
* @memberof LicenseSummary
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
* @memberof LicenseSummary
|
|
40
|
-
*/
|
|
41
|
-
showAdminWarning: boolean;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {boolean}
|
|
45
|
-
* @memberof LicenseSummary
|
|
46
|
-
*/
|
|
47
|
-
showUserWarning: boolean;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof LicenseSummary
|
|
52
|
-
*/
|
|
53
|
-
readOnly: boolean;
|
|
36
|
+
status: LicenseSummaryStatusEnum;
|
|
54
37
|
/**
|
|
55
38
|
*
|
|
56
39
|
* @type {Date}
|
|
57
40
|
* @memberof LicenseSummary
|
|
58
41
|
*/
|
|
59
42
|
latestValid: Date;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {boolean}
|
|
63
|
-
* @memberof LicenseSummary
|
|
64
|
-
*/
|
|
65
|
-
hasLicense: boolean;
|
|
66
43
|
}
|
|
67
44
|
/**
|
|
68
45
|
* Check if a given object implements the LicenseSummary interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { LicenseSummaryStatusEnumFromJSON, LicenseSummaryStatusEnumToJSON, } from './LicenseSummaryStatusEnum';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the LicenseSummary interface.
|
|
16
17
|
*/
|
|
@@ -18,12 +19,8 @@ export function instanceOfLicenseSummary(value) {
|
|
|
18
19
|
let isInstance = true;
|
|
19
20
|
isInstance = isInstance && "internalUsers" in value;
|
|
20
21
|
isInstance = isInstance && "externalUsers" in value;
|
|
21
|
-
isInstance = isInstance && "
|
|
22
|
-
isInstance = isInstance && "showAdminWarning" in value;
|
|
23
|
-
isInstance = isInstance && "showUserWarning" in value;
|
|
24
|
-
isInstance = isInstance && "readOnly" in value;
|
|
22
|
+
isInstance = isInstance && "status" in value;
|
|
25
23
|
isInstance = isInstance && "latestValid" in value;
|
|
26
|
-
isInstance = isInstance && "hasLicense" in value;
|
|
27
24
|
return isInstance;
|
|
28
25
|
}
|
|
29
26
|
export function LicenseSummaryFromJSON(json) {
|
|
@@ -36,12 +33,8 @@ export function LicenseSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
33
|
return {
|
|
37
34
|
'internalUsers': json['internal_users'],
|
|
38
35
|
'externalUsers': json['external_users'],
|
|
39
|
-
'
|
|
40
|
-
'showAdminWarning': json['show_admin_warning'],
|
|
41
|
-
'showUserWarning': json['show_user_warning'],
|
|
42
|
-
'readOnly': json['read_only'],
|
|
36
|
+
'status': LicenseSummaryStatusEnumFromJSON(json['status']),
|
|
43
37
|
'latestValid': (new Date(json['latest_valid'])),
|
|
44
|
-
'hasLicense': json['has_license'],
|
|
45
38
|
};
|
|
46
39
|
}
|
|
47
40
|
export function LicenseSummaryToJSON(value) {
|
|
@@ -54,11 +47,7 @@ export function LicenseSummaryToJSON(value) {
|
|
|
54
47
|
return {
|
|
55
48
|
'internal_users': value.internalUsers,
|
|
56
49
|
'external_users': value.externalUsers,
|
|
57
|
-
'
|
|
58
|
-
'show_admin_warning': value.showAdminWarning,
|
|
59
|
-
'show_user_warning': value.showUserWarning,
|
|
60
|
-
'read_only': value.readOnly,
|
|
50
|
+
'status': LicenseSummaryStatusEnumToJSON(value.status),
|
|
61
51
|
'latest_valid': (value.latestValid.toISOString()),
|
|
62
|
-
'has_license': value.hasLicense,
|
|
63
52
|
};
|
|
64
53
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.6.3
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const LicenseSummaryStatusEnum: {
|
|
17
|
+
readonly Unlicensed: "unlicensed";
|
|
18
|
+
readonly Valid: "valid";
|
|
19
|
+
readonly Expired: "expired";
|
|
20
|
+
readonly ExpirySoon: "expiry_soon";
|
|
21
|
+
readonly LimitExceededAdmin: "limit_exceeded_admin";
|
|
22
|
+
readonly LimitExceededUser: "limit_exceeded_user";
|
|
23
|
+
readonly ReadOnly: "read_only";
|
|
24
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
25
|
+
};
|
|
26
|
+
export type LicenseSummaryStatusEnum = typeof LicenseSummaryStatusEnum[keyof typeof LicenseSummaryStatusEnum];
|
|
27
|
+
export declare function LicenseSummaryStatusEnumFromJSON(json: any): LicenseSummaryStatusEnum;
|
|
28
|
+
export declare function LicenseSummaryStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseSummaryStatusEnum;
|
|
29
|
+
export declare function LicenseSummaryStatusEnumToJSON(value?: LicenseSummaryStatusEnum | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.6.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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const LicenseSummaryStatusEnum = {
|
|
19
|
+
Unlicensed: 'unlicensed',
|
|
20
|
+
Valid: 'valid',
|
|
21
|
+
Expired: 'expired',
|
|
22
|
+
ExpirySoon: 'expiry_soon',
|
|
23
|
+
LimitExceededAdmin: 'limit_exceeded_admin',
|
|
24
|
+
LimitExceededUser: 'limit_exceeded_user',
|
|
25
|
+
ReadOnly: 'read_only',
|
|
26
|
+
UnknownDefaultOpenApi: '11184809'
|
|
27
|
+
};
|
|
28
|
+
export function LicenseSummaryStatusEnumFromJSON(json) {
|
|
29
|
+
return LicenseSummaryStatusEnumFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function LicenseSummaryStatusEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
export function LicenseSummaryStatusEnumToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
@@ -189,6 +189,7 @@ export * from './License';
|
|
|
189
189
|
export * from './LicenseForecast';
|
|
190
190
|
export * from './LicenseRequest';
|
|
191
191
|
export * from './LicenseSummary';
|
|
192
|
+
export * from './LicenseSummaryStatusEnum';
|
|
192
193
|
export * from './Link';
|
|
193
194
|
export * from './LogEvent';
|
|
194
195
|
export * from './LogLevelEnum';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -191,6 +191,7 @@ export * from './License';
|
|
|
191
191
|
export * from './LicenseForecast';
|
|
192
192
|
export * from './LicenseRequest';
|
|
193
193
|
export * from './LicenseSummary';
|
|
194
|
+
export * from './LicenseSummaryStatusEnum';
|
|
194
195
|
export * from './Link';
|
|
195
196
|
export * from './LogEvent';
|
|
196
197
|
export * from './LogLevelEnum';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LicenseSummaryStatusEnum } from './LicenseSummaryStatusEnum';
|
|
12
13
|
/**
|
|
13
14
|
* Serializer for license status
|
|
14
15
|
* @export
|
|
@@ -29,40 +30,16 @@ export interface LicenseSummary {
|
|
|
29
30
|
externalUsers: number;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @type {
|
|
33
|
+
* @type {LicenseSummaryStatusEnum}
|
|
33
34
|
* @memberof LicenseSummary
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
* @memberof LicenseSummary
|
|
40
|
-
*/
|
|
41
|
-
showAdminWarning: boolean;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {boolean}
|
|
45
|
-
* @memberof LicenseSummary
|
|
46
|
-
*/
|
|
47
|
-
showUserWarning: boolean;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof LicenseSummary
|
|
52
|
-
*/
|
|
53
|
-
readOnly: boolean;
|
|
36
|
+
status: LicenseSummaryStatusEnum;
|
|
54
37
|
/**
|
|
55
38
|
*
|
|
56
39
|
* @type {Date}
|
|
57
40
|
* @memberof LicenseSummary
|
|
58
41
|
*/
|
|
59
42
|
latestValid: Date;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {boolean}
|
|
63
|
-
* @memberof LicenseSummary
|
|
64
|
-
*/
|
|
65
|
-
hasLicense: boolean;
|
|
66
43
|
}
|
|
67
44
|
/**
|
|
68
45
|
* Check if a given object implements the LicenseSummary interface.
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.LicenseSummaryToJSON = exports.LicenseSummaryFromJSONTyped = exports.LicenseSummaryFromJSON = exports.instanceOfLicenseSummary = void 0;
|
|
17
|
+
const LicenseSummaryStatusEnum_1 = require("./LicenseSummaryStatusEnum");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the LicenseSummary interface.
|
|
19
20
|
*/
|
|
@@ -21,12 +22,8 @@ function instanceOfLicenseSummary(value) {
|
|
|
21
22
|
let isInstance = true;
|
|
22
23
|
isInstance = isInstance && "internalUsers" in value;
|
|
23
24
|
isInstance = isInstance && "externalUsers" in value;
|
|
24
|
-
isInstance = isInstance && "
|
|
25
|
-
isInstance = isInstance && "showAdminWarning" in value;
|
|
26
|
-
isInstance = isInstance && "showUserWarning" in value;
|
|
27
|
-
isInstance = isInstance && "readOnly" in value;
|
|
25
|
+
isInstance = isInstance && "status" in value;
|
|
28
26
|
isInstance = isInstance && "latestValid" in value;
|
|
29
|
-
isInstance = isInstance && "hasLicense" in value;
|
|
30
27
|
return isInstance;
|
|
31
28
|
}
|
|
32
29
|
exports.instanceOfLicenseSummary = instanceOfLicenseSummary;
|
|
@@ -41,12 +38,8 @@ function LicenseSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
38
|
return {
|
|
42
39
|
'internalUsers': json['internal_users'],
|
|
43
40
|
'externalUsers': json['external_users'],
|
|
44
|
-
'
|
|
45
|
-
'showAdminWarning': json['show_admin_warning'],
|
|
46
|
-
'showUserWarning': json['show_user_warning'],
|
|
47
|
-
'readOnly': json['read_only'],
|
|
41
|
+
'status': (0, LicenseSummaryStatusEnum_1.LicenseSummaryStatusEnumFromJSON)(json['status']),
|
|
48
42
|
'latestValid': (new Date(json['latest_valid'])),
|
|
49
|
-
'hasLicense': json['has_license'],
|
|
50
43
|
};
|
|
51
44
|
}
|
|
52
45
|
exports.LicenseSummaryFromJSONTyped = LicenseSummaryFromJSONTyped;
|
|
@@ -60,12 +53,8 @@ function LicenseSummaryToJSON(value) {
|
|
|
60
53
|
return {
|
|
61
54
|
'internal_users': value.internalUsers,
|
|
62
55
|
'external_users': value.externalUsers,
|
|
63
|
-
'
|
|
64
|
-
'show_admin_warning': value.showAdminWarning,
|
|
65
|
-
'show_user_warning': value.showUserWarning,
|
|
66
|
-
'read_only': value.readOnly,
|
|
56
|
+
'status': (0, LicenseSummaryStatusEnum_1.LicenseSummaryStatusEnumToJSON)(value.status),
|
|
67
57
|
'latest_valid': (value.latestValid.toISOString()),
|
|
68
|
-
'has_license': value.hasLicense,
|
|
69
58
|
};
|
|
70
59
|
}
|
|
71
60
|
exports.LicenseSummaryToJSON = LicenseSummaryToJSON;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.6.3
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const LicenseSummaryStatusEnum: {
|
|
17
|
+
readonly Unlicensed: "unlicensed";
|
|
18
|
+
readonly Valid: "valid";
|
|
19
|
+
readonly Expired: "expired";
|
|
20
|
+
readonly ExpirySoon: "expiry_soon";
|
|
21
|
+
readonly LimitExceededAdmin: "limit_exceeded_admin";
|
|
22
|
+
readonly LimitExceededUser: "limit_exceeded_user";
|
|
23
|
+
readonly ReadOnly: "read_only";
|
|
24
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
25
|
+
};
|
|
26
|
+
export type LicenseSummaryStatusEnum = typeof LicenseSummaryStatusEnum[keyof typeof LicenseSummaryStatusEnum];
|
|
27
|
+
export declare function LicenseSummaryStatusEnumFromJSON(json: any): LicenseSummaryStatusEnum;
|
|
28
|
+
export declare function LicenseSummaryStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseSummaryStatusEnum;
|
|
29
|
+
export declare function LicenseSummaryStatusEnumToJSON(value?: LicenseSummaryStatusEnum | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.6.3
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LicenseSummaryStatusEnumToJSON = exports.LicenseSummaryStatusEnumFromJSONTyped = exports.LicenseSummaryStatusEnumFromJSON = exports.LicenseSummaryStatusEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.LicenseSummaryStatusEnum = {
|
|
22
|
+
Unlicensed: 'unlicensed',
|
|
23
|
+
Valid: 'valid',
|
|
24
|
+
Expired: 'expired',
|
|
25
|
+
ExpirySoon: 'expiry_soon',
|
|
26
|
+
LimitExceededAdmin: 'limit_exceeded_admin',
|
|
27
|
+
LimitExceededUser: 'limit_exceeded_user',
|
|
28
|
+
ReadOnly: 'read_only',
|
|
29
|
+
UnknownDefaultOpenApi: '11184809'
|
|
30
|
+
};
|
|
31
|
+
function LicenseSummaryStatusEnumFromJSON(json) {
|
|
32
|
+
return LicenseSummaryStatusEnumFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.LicenseSummaryStatusEnumFromJSON = LicenseSummaryStatusEnumFromJSON;
|
|
35
|
+
function LicenseSummaryStatusEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
exports.LicenseSummaryStatusEnumFromJSONTyped = LicenseSummaryStatusEnumFromJSONTyped;
|
|
39
|
+
function LicenseSummaryStatusEnumToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
exports.LicenseSummaryStatusEnumToJSON = LicenseSummaryStatusEnumToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -189,6 +189,7 @@ export * from './License';
|
|
|
189
189
|
export * from './LicenseForecast';
|
|
190
190
|
export * from './LicenseRequest';
|
|
191
191
|
export * from './LicenseSummary';
|
|
192
|
+
export * from './LicenseSummaryStatusEnum';
|
|
192
193
|
export * from './Link';
|
|
193
194
|
export * from './LogEvent';
|
|
194
195
|
export * from './LogLevelEnum';
|
package/dist/models/index.js
CHANGED
|
@@ -207,6 +207,7 @@ __exportStar(require("./License"), exports);
|
|
|
207
207
|
__exportStar(require("./LicenseForecast"), exports);
|
|
208
208
|
__exportStar(require("./LicenseRequest"), exports);
|
|
209
209
|
__exportStar(require("./LicenseSummary"), exports);
|
|
210
|
+
__exportStar(require("./LicenseSummaryStatusEnum"), exports);
|
|
210
211
|
__exportStar(require("./Link"), exports);
|
|
211
212
|
__exportStar(require("./LogEvent"), exports);
|
|
212
213
|
__exportStar(require("./LogLevelEnum"), exports);
|
package/package.json
CHANGED
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { LicenseSummaryStatusEnum } from './LicenseSummaryStatusEnum';
|
|
17
|
+
import {
|
|
18
|
+
LicenseSummaryStatusEnumFromJSON,
|
|
19
|
+
LicenseSummaryStatusEnumFromJSONTyped,
|
|
20
|
+
LicenseSummaryStatusEnumToJSON,
|
|
21
|
+
} from './LicenseSummaryStatusEnum';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
* Serializer for license status
|
|
18
25
|
* @export
|
|
@@ -33,40 +40,16 @@ export interface LicenseSummary {
|
|
|
33
40
|
externalUsers: number;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
|
-
* @type {
|
|
37
|
-
* @memberof LicenseSummary
|
|
38
|
-
*/
|
|
39
|
-
valid: boolean;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {boolean}
|
|
43
|
-
* @memberof LicenseSummary
|
|
44
|
-
*/
|
|
45
|
-
showAdminWarning: boolean;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {boolean}
|
|
43
|
+
* @type {LicenseSummaryStatusEnum}
|
|
49
44
|
* @memberof LicenseSummary
|
|
50
45
|
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {boolean}
|
|
55
|
-
* @memberof LicenseSummary
|
|
56
|
-
*/
|
|
57
|
-
readOnly: boolean;
|
|
46
|
+
status: LicenseSummaryStatusEnum;
|
|
58
47
|
/**
|
|
59
48
|
*
|
|
60
49
|
* @type {Date}
|
|
61
50
|
* @memberof LicenseSummary
|
|
62
51
|
*/
|
|
63
52
|
latestValid: Date;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {boolean}
|
|
67
|
-
* @memberof LicenseSummary
|
|
68
|
-
*/
|
|
69
|
-
hasLicense: boolean;
|
|
70
53
|
}
|
|
71
54
|
|
|
72
55
|
/**
|
|
@@ -76,12 +59,8 @@ export function instanceOfLicenseSummary(value: object): boolean {
|
|
|
76
59
|
let isInstance = true;
|
|
77
60
|
isInstance = isInstance && "internalUsers" in value;
|
|
78
61
|
isInstance = isInstance && "externalUsers" in value;
|
|
79
|
-
isInstance = isInstance && "
|
|
80
|
-
isInstance = isInstance && "showAdminWarning" in value;
|
|
81
|
-
isInstance = isInstance && "showUserWarning" in value;
|
|
82
|
-
isInstance = isInstance && "readOnly" in value;
|
|
62
|
+
isInstance = isInstance && "status" in value;
|
|
83
63
|
isInstance = isInstance && "latestValid" in value;
|
|
84
|
-
isInstance = isInstance && "hasLicense" in value;
|
|
85
64
|
|
|
86
65
|
return isInstance;
|
|
87
66
|
}
|
|
@@ -98,12 +77,8 @@ export function LicenseSummaryFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
98
77
|
|
|
99
78
|
'internalUsers': json['internal_users'],
|
|
100
79
|
'externalUsers': json['external_users'],
|
|
101
|
-
'
|
|
102
|
-
'showAdminWarning': json['show_admin_warning'],
|
|
103
|
-
'showUserWarning': json['show_user_warning'],
|
|
104
|
-
'readOnly': json['read_only'],
|
|
80
|
+
'status': LicenseSummaryStatusEnumFromJSON(json['status']),
|
|
105
81
|
'latestValid': (new Date(json['latest_valid'])),
|
|
106
|
-
'hasLicense': json['has_license'],
|
|
107
82
|
};
|
|
108
83
|
}
|
|
109
84
|
|
|
@@ -118,12 +93,8 @@ export function LicenseSummaryToJSON(value?: LicenseSummary | null): any {
|
|
|
118
93
|
|
|
119
94
|
'internal_users': value.internalUsers,
|
|
120
95
|
'external_users': value.externalUsers,
|
|
121
|
-
'
|
|
122
|
-
'show_admin_warning': value.showAdminWarning,
|
|
123
|
-
'show_user_warning': value.showUserWarning,
|
|
124
|
-
'read_only': value.readOnly,
|
|
96
|
+
'status': LicenseSummaryStatusEnumToJSON(value.status),
|
|
125
97
|
'latest_valid': (value.latestValid.toISOString()),
|
|
126
|
-
'has_license': value.hasLicense,
|
|
127
98
|
};
|
|
128
99
|
}
|
|
129
100
|
|
|
@@ -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: 2024.6.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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const LicenseSummaryStatusEnum = {
|
|
21
|
+
Unlicensed: 'unlicensed',
|
|
22
|
+
Valid: 'valid',
|
|
23
|
+
Expired: 'expired',
|
|
24
|
+
ExpirySoon: 'expiry_soon',
|
|
25
|
+
LimitExceededAdmin: 'limit_exceeded_admin',
|
|
26
|
+
LimitExceededUser: 'limit_exceeded_user',
|
|
27
|
+
ReadOnly: 'read_only',
|
|
28
|
+
UnknownDefaultOpenApi: '11184809'
|
|
29
|
+
} as const;
|
|
30
|
+
export type LicenseSummaryStatusEnum = typeof LicenseSummaryStatusEnum[keyof typeof LicenseSummaryStatusEnum];
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
export function LicenseSummaryStatusEnumFromJSON(json: any): LicenseSummaryStatusEnum {
|
|
34
|
+
return LicenseSummaryStatusEnumFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function LicenseSummaryStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseSummaryStatusEnum {
|
|
38
|
+
return json as LicenseSummaryStatusEnum;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function LicenseSummaryStatusEnumToJSON(value?: LicenseSummaryStatusEnum | null): any {
|
|
42
|
+
return value as any;
|
|
43
|
+
}
|
|
44
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -191,6 +191,7 @@ export * from './License';
|
|
|
191
191
|
export * from './LicenseForecast';
|
|
192
192
|
export * from './LicenseRequest';
|
|
193
193
|
export * from './LicenseSummary';
|
|
194
|
+
export * from './LicenseSummaryStatusEnum';
|
|
194
195
|
export * from './Link';
|
|
195
196
|
export * from './LogEvent';
|
|
196
197
|
export * from './LogLevelEnum';
|