@goauthentik/api 2024.6.3-1723206419 → 2024.6.3-1723234818
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/LicenseFlagsEnum.d.ts +24 -0
- package/dist/esm/models/LicenseFlagsEnum.js +31 -0
- package/dist/esm/models/LicenseSummary.d.ts +7 -0
- package/dist/esm/models/LicenseSummary.js +4 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/LicenseFlagsEnum.d.ts +24 -0
- package/dist/models/LicenseFlagsEnum.js +37 -0
- package/dist/models/LicenseSummary.d.ts +7 -0
- package/dist/models/LicenseSummary.js +4 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/LicenseFlagsEnum.ts +39 -0
- package/src/models/LicenseSummary.ts +15 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -213,6 +213,7 @@ src/models/LDAPSourcePropertyMapping.ts
|
|
|
213
213
|
src/models/LDAPSourcePropertyMappingRequest.ts
|
|
214
214
|
src/models/LDAPSourceRequest.ts
|
|
215
215
|
src/models/License.ts
|
|
216
|
+
src/models/LicenseFlagsEnum.ts
|
|
216
217
|
src/models/LicenseForecast.ts
|
|
217
218
|
src/models/LicenseRequest.ts
|
|
218
219
|
src/models/LicenseSummary.ts
|
|
@@ -0,0 +1,24 @@
|
|
|
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 LicenseFlagsEnum: {
|
|
17
|
+
readonly Trial: "trial";
|
|
18
|
+
readonly NonProduction: "non_production";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type LicenseFlagsEnum = typeof LicenseFlagsEnum[keyof typeof LicenseFlagsEnum];
|
|
22
|
+
export declare function LicenseFlagsEnumFromJSON(json: any): LicenseFlagsEnum;
|
|
23
|
+
export declare function LicenseFlagsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseFlagsEnum;
|
|
24
|
+
export declare function LicenseFlagsEnumToJSON(value?: LicenseFlagsEnum | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 LicenseFlagsEnum = {
|
|
19
|
+
Trial: 'trial',
|
|
20
|
+
NonProduction: 'non_production',
|
|
21
|
+
UnknownDefaultOpenApi: '11184809'
|
|
22
|
+
};
|
|
23
|
+
export function LicenseFlagsEnumFromJSON(json) {
|
|
24
|
+
return LicenseFlagsEnumFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function LicenseFlagsEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
export function LicenseFlagsEnumToJSON(value) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LicenseFlagsEnum } from './LicenseFlagsEnum';
|
|
12
13
|
import type { LicenseSummaryStatusEnum } from './LicenseSummaryStatusEnum';
|
|
13
14
|
/**
|
|
14
15
|
* Serializer for license status
|
|
@@ -40,6 +41,12 @@ export interface LicenseSummary {
|
|
|
40
41
|
* @memberof LicenseSummary
|
|
41
42
|
*/
|
|
42
43
|
latestValid: Date;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<LicenseFlagsEnum>}
|
|
47
|
+
* @memberof LicenseSummary
|
|
48
|
+
*/
|
|
49
|
+
licenseFlags: Array<LicenseFlagsEnum>;
|
|
43
50
|
}
|
|
44
51
|
/**
|
|
45
52
|
* 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 { LicenseFlagsEnumFromJSON, LicenseFlagsEnumToJSON, } from './LicenseFlagsEnum';
|
|
14
15
|
import { LicenseSummaryStatusEnumFromJSON, LicenseSummaryStatusEnumToJSON, } from './LicenseSummaryStatusEnum';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the LicenseSummary interface.
|
|
@@ -21,6 +22,7 @@ export function instanceOfLicenseSummary(value) {
|
|
|
21
22
|
isInstance = isInstance && "externalUsers" in value;
|
|
22
23
|
isInstance = isInstance && "status" in value;
|
|
23
24
|
isInstance = isInstance && "latestValid" in value;
|
|
25
|
+
isInstance = isInstance && "licenseFlags" in value;
|
|
24
26
|
return isInstance;
|
|
25
27
|
}
|
|
26
28
|
export function LicenseSummaryFromJSON(json) {
|
|
@@ -35,6 +37,7 @@ export function LicenseSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
37
|
'externalUsers': json['external_users'],
|
|
36
38
|
'status': LicenseSummaryStatusEnumFromJSON(json['status']),
|
|
37
39
|
'latestValid': (new Date(json['latest_valid'])),
|
|
40
|
+
'licenseFlags': (json['license_flags'].map(LicenseFlagsEnumFromJSON)),
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
export function LicenseSummaryToJSON(value) {
|
|
@@ -49,5 +52,6 @@ export function LicenseSummaryToJSON(value) {
|
|
|
49
52
|
'external_users': value.externalUsers,
|
|
50
53
|
'status': LicenseSummaryStatusEnumToJSON(value.status),
|
|
51
54
|
'latest_valid': (value.latestValid.toISOString()),
|
|
55
|
+
'license_flags': (value.licenseFlags.map(LicenseFlagsEnumToJSON)),
|
|
52
56
|
};
|
|
53
57
|
}
|
|
@@ -186,6 +186,7 @@ export * from './LDAPSourcePropertyMapping';
|
|
|
186
186
|
export * from './LDAPSourcePropertyMappingRequest';
|
|
187
187
|
export * from './LDAPSourceRequest';
|
|
188
188
|
export * from './License';
|
|
189
|
+
export * from './LicenseFlagsEnum';
|
|
189
190
|
export * from './LicenseForecast';
|
|
190
191
|
export * from './LicenseRequest';
|
|
191
192
|
export * from './LicenseSummary';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -188,6 +188,7 @@ export * from './LDAPSourcePropertyMapping';
|
|
|
188
188
|
export * from './LDAPSourcePropertyMappingRequest';
|
|
189
189
|
export * from './LDAPSourceRequest';
|
|
190
190
|
export * from './License';
|
|
191
|
+
export * from './LicenseFlagsEnum';
|
|
191
192
|
export * from './LicenseForecast';
|
|
192
193
|
export * from './LicenseRequest';
|
|
193
194
|
export * from './LicenseSummary';
|
|
@@ -0,0 +1,24 @@
|
|
|
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 LicenseFlagsEnum: {
|
|
17
|
+
readonly Trial: "trial";
|
|
18
|
+
readonly NonProduction: "non_production";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type LicenseFlagsEnum = typeof LicenseFlagsEnum[keyof typeof LicenseFlagsEnum];
|
|
22
|
+
export declare function LicenseFlagsEnumFromJSON(json: any): LicenseFlagsEnum;
|
|
23
|
+
export declare function LicenseFlagsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseFlagsEnum;
|
|
24
|
+
export declare function LicenseFlagsEnumToJSON(value?: LicenseFlagsEnum | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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.LicenseFlagsEnumToJSON = exports.LicenseFlagsEnumFromJSONTyped = exports.LicenseFlagsEnumFromJSON = exports.LicenseFlagsEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.LicenseFlagsEnum = {
|
|
22
|
+
Trial: 'trial',
|
|
23
|
+
NonProduction: 'non_production',
|
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
|
25
|
+
};
|
|
26
|
+
function LicenseFlagsEnumFromJSON(json) {
|
|
27
|
+
return LicenseFlagsEnumFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.LicenseFlagsEnumFromJSON = LicenseFlagsEnumFromJSON;
|
|
30
|
+
function LicenseFlagsEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
exports.LicenseFlagsEnumFromJSONTyped = LicenseFlagsEnumFromJSONTyped;
|
|
34
|
+
function LicenseFlagsEnumToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
exports.LicenseFlagsEnumToJSON = LicenseFlagsEnumToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LicenseFlagsEnum } from './LicenseFlagsEnum';
|
|
12
13
|
import type { LicenseSummaryStatusEnum } from './LicenseSummaryStatusEnum';
|
|
13
14
|
/**
|
|
14
15
|
* Serializer for license status
|
|
@@ -40,6 +41,12 @@ export interface LicenseSummary {
|
|
|
40
41
|
* @memberof LicenseSummary
|
|
41
42
|
*/
|
|
42
43
|
latestValid: Date;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<LicenseFlagsEnum>}
|
|
47
|
+
* @memberof LicenseSummary
|
|
48
|
+
*/
|
|
49
|
+
licenseFlags: Array<LicenseFlagsEnum>;
|
|
43
50
|
}
|
|
44
51
|
/**
|
|
45
52
|
* 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 LicenseFlagsEnum_1 = require("./LicenseFlagsEnum");
|
|
17
18
|
const LicenseSummaryStatusEnum_1 = require("./LicenseSummaryStatusEnum");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the LicenseSummary interface.
|
|
@@ -24,6 +25,7 @@ function instanceOfLicenseSummary(value) {
|
|
|
24
25
|
isInstance = isInstance && "externalUsers" in value;
|
|
25
26
|
isInstance = isInstance && "status" in value;
|
|
26
27
|
isInstance = isInstance && "latestValid" in value;
|
|
28
|
+
isInstance = isInstance && "licenseFlags" in value;
|
|
27
29
|
return isInstance;
|
|
28
30
|
}
|
|
29
31
|
exports.instanceOfLicenseSummary = instanceOfLicenseSummary;
|
|
@@ -40,6 +42,7 @@ function LicenseSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
42
|
'externalUsers': json['external_users'],
|
|
41
43
|
'status': (0, LicenseSummaryStatusEnum_1.LicenseSummaryStatusEnumFromJSON)(json['status']),
|
|
42
44
|
'latestValid': (new Date(json['latest_valid'])),
|
|
45
|
+
'licenseFlags': (json['license_flags'].map(LicenseFlagsEnum_1.LicenseFlagsEnumFromJSON)),
|
|
43
46
|
};
|
|
44
47
|
}
|
|
45
48
|
exports.LicenseSummaryFromJSONTyped = LicenseSummaryFromJSONTyped;
|
|
@@ -55,6 +58,7 @@ function LicenseSummaryToJSON(value) {
|
|
|
55
58
|
'external_users': value.externalUsers,
|
|
56
59
|
'status': (0, LicenseSummaryStatusEnum_1.LicenseSummaryStatusEnumToJSON)(value.status),
|
|
57
60
|
'latest_valid': (value.latestValid.toISOString()),
|
|
61
|
+
'license_flags': (value.licenseFlags.map(LicenseFlagsEnum_1.LicenseFlagsEnumToJSON)),
|
|
58
62
|
};
|
|
59
63
|
}
|
|
60
64
|
exports.LicenseSummaryToJSON = LicenseSummaryToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -186,6 +186,7 @@ export * from './LDAPSourcePropertyMapping';
|
|
|
186
186
|
export * from './LDAPSourcePropertyMappingRequest';
|
|
187
187
|
export * from './LDAPSourceRequest';
|
|
188
188
|
export * from './License';
|
|
189
|
+
export * from './LicenseFlagsEnum';
|
|
189
190
|
export * from './LicenseForecast';
|
|
190
191
|
export * from './LicenseRequest';
|
|
191
192
|
export * from './LicenseSummary';
|
package/dist/models/index.js
CHANGED
|
@@ -204,6 +204,7 @@ __exportStar(require("./LDAPSourcePropertyMapping"), exports);
|
|
|
204
204
|
__exportStar(require("./LDAPSourcePropertyMappingRequest"), exports);
|
|
205
205
|
__exportStar(require("./LDAPSourceRequest"), exports);
|
|
206
206
|
__exportStar(require("./License"), exports);
|
|
207
|
+
__exportStar(require("./LicenseFlagsEnum"), exports);
|
|
207
208
|
__exportStar(require("./LicenseForecast"), exports);
|
|
208
209
|
__exportStar(require("./LicenseRequest"), exports);
|
|
209
210
|
__exportStar(require("./LicenseSummary"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
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 LicenseFlagsEnum = {
|
|
21
|
+
Trial: 'trial',
|
|
22
|
+
NonProduction: 'non_production',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
|
+
} as const;
|
|
25
|
+
export type LicenseFlagsEnum = typeof LicenseFlagsEnum[keyof typeof LicenseFlagsEnum];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function LicenseFlagsEnumFromJSON(json: any): LicenseFlagsEnum {
|
|
29
|
+
return LicenseFlagsEnumFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function LicenseFlagsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenseFlagsEnum {
|
|
33
|
+
return json as LicenseFlagsEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function LicenseFlagsEnumToJSON(value?: LicenseFlagsEnum | null): any {
|
|
37
|
+
return value as any;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { LicenseFlagsEnum } from './LicenseFlagsEnum';
|
|
17
|
+
import {
|
|
18
|
+
LicenseFlagsEnumFromJSON,
|
|
19
|
+
LicenseFlagsEnumFromJSONTyped,
|
|
20
|
+
LicenseFlagsEnumToJSON,
|
|
21
|
+
} from './LicenseFlagsEnum';
|
|
16
22
|
import type { LicenseSummaryStatusEnum } from './LicenseSummaryStatusEnum';
|
|
17
23
|
import {
|
|
18
24
|
LicenseSummaryStatusEnumFromJSON,
|
|
@@ -50,6 +56,12 @@ export interface LicenseSummary {
|
|
|
50
56
|
* @memberof LicenseSummary
|
|
51
57
|
*/
|
|
52
58
|
latestValid: Date;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Array<LicenseFlagsEnum>}
|
|
62
|
+
* @memberof LicenseSummary
|
|
63
|
+
*/
|
|
64
|
+
licenseFlags: Array<LicenseFlagsEnum>;
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
/**
|
|
@@ -61,6 +73,7 @@ export function instanceOfLicenseSummary(value: object): boolean {
|
|
|
61
73
|
isInstance = isInstance && "externalUsers" in value;
|
|
62
74
|
isInstance = isInstance && "status" in value;
|
|
63
75
|
isInstance = isInstance && "latestValid" in value;
|
|
76
|
+
isInstance = isInstance && "licenseFlags" in value;
|
|
64
77
|
|
|
65
78
|
return isInstance;
|
|
66
79
|
}
|
|
@@ -79,6 +92,7 @@ export function LicenseSummaryFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
79
92
|
'externalUsers': json['external_users'],
|
|
80
93
|
'status': LicenseSummaryStatusEnumFromJSON(json['status']),
|
|
81
94
|
'latestValid': (new Date(json['latest_valid'])),
|
|
95
|
+
'licenseFlags': ((json['license_flags'] as Array<any>).map(LicenseFlagsEnumFromJSON)),
|
|
82
96
|
};
|
|
83
97
|
}
|
|
84
98
|
|
|
@@ -95,6 +109,7 @@ export function LicenseSummaryToJSON(value?: LicenseSummary | null): any {
|
|
|
95
109
|
'external_users': value.externalUsers,
|
|
96
110
|
'status': LicenseSummaryStatusEnumToJSON(value.status),
|
|
97
111
|
'latest_valid': (value.latestValid.toISOString()),
|
|
112
|
+
'license_flags': ((value.licenseFlags as Array<any>).map(LicenseFlagsEnumToJSON)),
|
|
98
113
|
};
|
|
99
114
|
}
|
|
100
115
|
|
package/src/models/index.ts
CHANGED
|
@@ -188,6 +188,7 @@ export * from './LDAPSourcePropertyMapping';
|
|
|
188
188
|
export * from './LDAPSourcePropertyMappingRequest';
|
|
189
189
|
export * from './LDAPSourceRequest';
|
|
190
190
|
export * from './License';
|
|
191
|
+
export * from './LicenseFlagsEnum';
|
|
191
192
|
export * from './LicenseForecast';
|
|
192
193
|
export * from './LicenseRequest';
|
|
193
194
|
export * from './LicenseSummary';
|