@goauthentik/api 2023.10.6-1705263684 → 2023.10.6-1706016512
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 +16 -1
- package/dist/apis/AdminApi.d.ts +31 -1
- package/dist/apis/AdminApi.js +88 -0
- package/dist/apis/CoreApi.d.ts +104 -105
- package/dist/apis/CoreApi.js +228 -231
- package/dist/apis/EventsApi.d.ts +2 -2
- package/dist/apis/EventsApi.js +6 -6
- package/dist/apis/RbacApi.d.ts +4 -2
- package/dist/apis/RbacApi.js +4 -2
- package/dist/apis/TenantsApi.d.ts +184 -0
- package/dist/apis/TenantsApi.js +468 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AdminApi.d.ts +31 -1
- package/dist/esm/apis/AdminApi.js +89 -1
- package/dist/esm/apis/CoreApi.d.ts +104 -105
- package/dist/esm/apis/CoreApi.js +229 -232
- package/dist/esm/apis/EventsApi.d.ts +2 -2
- package/dist/esm/apis/EventsApi.js +6 -6
- package/dist/esm/apis/RbacApi.d.ts +4 -2
- package/dist/esm/apis/RbacApi.js +4 -2
- package/dist/esm/apis/TenantsApi.d.ts +184 -0
- package/dist/esm/apis/TenantsApi.js +464 -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 +4 -2
- package/dist/esm/models/AppEnum.js +4 -2
- package/dist/esm/models/Brand.d.ts +109 -0
- package/dist/esm/models/Brand.js +70 -0
- package/dist/esm/models/BrandRequest.d.ts +103 -0
- package/dist/esm/models/BrandRequest.js +68 -0
- package/dist/esm/models/{CurrentTenant.d.ts → CurrentBrand.d.ts} +21 -21
- package/dist/esm/models/{CurrentTenant.js → CurrentBrand.js} +6 -6
- package/dist/esm/models/Domain.d.ts +49 -0
- package/dist/esm/models/Domain.js +51 -0
- package/dist/esm/models/DomainRequest.d.ts +43 -0
- package/dist/esm/models/DomainRequest.js +49 -0
- package/dist/esm/models/Event.d.ts +1 -1
- package/dist/esm/models/Event.js +2 -2
- package/dist/esm/models/EventRequest.d.ts +1 -1
- package/dist/esm/models/EventRequest.js +2 -2
- package/dist/esm/models/ModelEnum.d.ts +4 -2
- package/dist/esm/models/ModelEnum.js +4 -2
- package/dist/esm/models/PaginatedBrandList.d.ts +39 -0
- package/dist/esm/models/PaginatedBrandList.js +48 -0
- package/dist/esm/models/PaginatedDomainList.d.ts +39 -0
- package/dist/esm/models/PaginatedDomainList.js +48 -0
- package/dist/esm/models/PatchedBrandRequest.d.ts +103 -0
- package/dist/esm/models/PatchedBrandRequest.js +67 -0
- package/dist/esm/models/PatchedDomainRequest.d.ts +43 -0
- package/dist/esm/models/PatchedDomainRequest.js +47 -0
- package/dist/esm/models/PatchedEventRequest.d.ts +1 -1
- package/dist/esm/models/PatchedEventRequest.js +2 -2
- package/dist/esm/models/PatchedSettingsRequest.d.ts +73 -0
- package/dist/esm/models/PatchedSettingsRequest.js +57 -0
- package/dist/esm/models/PatchedTenantRequest.d.ts +4 -70
- package/dist/esm/models/PatchedTenantRequest.js +6 -28
- package/dist/esm/models/Settings.d.ts +73 -0
- package/dist/esm/models/Settings.js +57 -0
- package/dist/esm/models/SettingsRequest.d.ts +73 -0
- package/dist/esm/models/SettingsRequest.js +57 -0
- package/dist/esm/models/SystemInfo.d.ts +8 -2
- package/dist/esm/models/SystemInfo.js +4 -2
- package/dist/esm/models/Tenant.d.ts +4 -70
- package/dist/esm/models/Tenant.js +8 -29
- package/dist/esm/models/TenantAdminGroupRequestRequest.d.ts +31 -0
- package/dist/esm/models/TenantAdminGroupRequestRequest.js +43 -0
- package/dist/esm/models/TenantRecoveryKeyRequestRequest.d.ts +37 -0
- package/dist/esm/models/TenantRecoveryKeyRequestRequest.js +46 -0
- package/dist/esm/models/TenantRecoveryKeyResponse.d.ts +37 -0
- package/dist/esm/models/TenantRecoveryKeyResponse.js +46 -0
- package/dist/esm/models/TenantRequest.d.ts +4 -70
- package/dist/esm/models/TenantRequest.js +8 -29
- package/dist/esm/models/UserSelf.d.ts +1 -1
- package/dist/esm/models/index.d.ts +15 -1
- package/dist/esm/models/index.js +15 -1
- package/dist/models/AppEnum.d.ts +4 -2
- package/dist/models/AppEnum.js +4 -2
- package/dist/models/Brand.d.ts +109 -0
- package/dist/models/Brand.js +77 -0
- package/dist/models/BrandRequest.d.ts +103 -0
- package/dist/models/BrandRequest.js +75 -0
- package/dist/models/{CurrentTenant.d.ts → CurrentBrand.d.ts} +21 -21
- package/dist/models/{CurrentTenant.js → CurrentBrand.js} +11 -11
- package/dist/models/Domain.d.ts +49 -0
- package/dist/models/Domain.js +58 -0
- package/dist/models/DomainRequest.d.ts +43 -0
- package/dist/models/DomainRequest.js +56 -0
- package/dist/models/Event.d.ts +1 -1
- package/dist/models/Event.js +2 -2
- package/dist/models/EventRequest.d.ts +1 -1
- package/dist/models/EventRequest.js +2 -2
- package/dist/models/ModelEnum.d.ts +4 -2
- package/dist/models/ModelEnum.js +4 -2
- package/dist/models/PaginatedBrandList.d.ts +39 -0
- package/dist/models/PaginatedBrandList.js +55 -0
- package/dist/models/PaginatedDomainList.d.ts +39 -0
- package/dist/models/PaginatedDomainList.js +55 -0
- package/dist/models/PatchedBrandRequest.d.ts +103 -0
- package/dist/models/PatchedBrandRequest.js +74 -0
- package/dist/models/PatchedDomainRequest.d.ts +43 -0
- package/dist/models/PatchedDomainRequest.js +54 -0
- package/dist/models/PatchedEventRequest.d.ts +1 -1
- package/dist/models/PatchedEventRequest.js +2 -2
- package/dist/models/PatchedSettingsRequest.d.ts +73 -0
- package/dist/models/PatchedSettingsRequest.js +64 -0
- package/dist/models/PatchedTenantRequest.d.ts +4 -70
- package/dist/models/PatchedTenantRequest.js +6 -28
- package/dist/models/Settings.d.ts +73 -0
- package/dist/models/Settings.js +64 -0
- package/dist/models/SettingsRequest.d.ts +73 -0
- package/dist/models/SettingsRequest.js +64 -0
- package/dist/models/SystemInfo.d.ts +8 -2
- package/dist/models/SystemInfo.js +4 -2
- package/dist/models/Tenant.d.ts +4 -70
- package/dist/models/Tenant.js +8 -29
- package/dist/models/TenantAdminGroupRequestRequest.d.ts +31 -0
- package/dist/models/TenantAdminGroupRequestRequest.js +50 -0
- package/dist/models/TenantRecoveryKeyRequestRequest.d.ts +37 -0
- package/dist/models/TenantRecoveryKeyRequestRequest.js +53 -0
- package/dist/models/TenantRecoveryKeyResponse.d.ts +37 -0
- package/dist/models/TenantRecoveryKeyResponse.js +53 -0
- package/dist/models/TenantRequest.d.ts +4 -70
- package/dist/models/TenantRequest.js +8 -29
- package/dist/models/UserSelf.d.ts +1 -1
- package/dist/models/index.d.ts +15 -1
- package/dist/models/index.js +15 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +113 -0
- package/src/apis/CoreApi.ts +304 -309
- package/src/apis/EventsApi.ts +10 -10
- package/src/apis/RbacApi.ts +4 -2
- package/src/apis/TenantsApi.ts +615 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AppEnum.ts +4 -2
- package/src/models/Brand.ts +170 -0
- package/src/models/BrandRequest.ts +162 -0
- package/src/models/{CurrentTenant.ts → CurrentBrand.ts} +22 -22
- package/src/models/Domain.ts +91 -0
- package/src/models/DomainRequest.ts +83 -0
- package/src/models/Event.ts +3 -3
- package/src/models/EventRequest.ts +3 -3
- package/src/models/ModelEnum.ts +4 -2
- package/src/models/PaginatedBrandList.ts +88 -0
- package/src/models/PaginatedDomainList.ts +88 -0
- package/src/models/PatchedBrandRequest.ts +161 -0
- package/src/models/PatchedDomainRequest.ts +81 -0
- package/src/models/PatchedEventRequest.ts +3 -3
- package/src/models/PatchedSettingsRequest.ts +121 -0
- package/src/models/PatchedTenantRequest.ts +10 -98
- package/src/models/Settings.ts +121 -0
- package/src/models/SettingsRequest.ts +121 -0
- package/src/models/SystemInfo.ts +12 -4
- package/src/models/Tenant.ts +12 -99
- package/src/models/TenantAdminGroupRequestRequest.ts +66 -0
- package/src/models/TenantRecoveryKeyRequestRequest.ts +75 -0
- package/src/models/TenantRecoveryKeyResponse.ts +75 -0
- package/src/models/TenantRequest.ts +12 -99
- package/src/models/UserSelf.ts +1 -1
- package/src/models/index.ts +15 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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.BrandToJSON = exports.BrandFromJSONTyped = exports.BrandFromJSON = exports.instanceOfBrand = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Brand interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfBrand(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "brandUuid" in value;
|
|
24
|
+
isInstance = isInstance && "domain" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfBrand = instanceOfBrand;
|
|
28
|
+
function BrandFromJSON(json) {
|
|
29
|
+
return BrandFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.BrandFromJSON = BrandFromJSON;
|
|
32
|
+
function BrandFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'brandUuid': json['brand_uuid'],
|
|
38
|
+
'domain': json['domain'],
|
|
39
|
+
'_default': !(0, runtime_1.exists)(json, 'default') ? undefined : json['default'],
|
|
40
|
+
'brandingTitle': !(0, runtime_1.exists)(json, 'branding_title') ? undefined : json['branding_title'],
|
|
41
|
+
'brandingLogo': !(0, runtime_1.exists)(json, 'branding_logo') ? undefined : json['branding_logo'],
|
|
42
|
+
'brandingFavicon': !(0, runtime_1.exists)(json, 'branding_favicon') ? undefined : json['branding_favicon'],
|
|
43
|
+
'flowAuthentication': !(0, runtime_1.exists)(json, 'flow_authentication') ? undefined : json['flow_authentication'],
|
|
44
|
+
'flowInvalidation': !(0, runtime_1.exists)(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
|
|
45
|
+
'flowRecovery': !(0, runtime_1.exists)(json, 'flow_recovery') ? undefined : json['flow_recovery'],
|
|
46
|
+
'flowUnenrollment': !(0, runtime_1.exists)(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
|
47
|
+
'flowUserSettings': !(0, runtime_1.exists)(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
|
48
|
+
'flowDeviceCode': !(0, runtime_1.exists)(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
|
49
|
+
'webCertificate': !(0, runtime_1.exists)(json, 'web_certificate') ? undefined : json['web_certificate'],
|
|
50
|
+
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.BrandFromJSONTyped = BrandFromJSONTyped;
|
|
54
|
+
function BrandToJSON(value) {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'domain': value.domain,
|
|
63
|
+
'default': value._default,
|
|
64
|
+
'branding_title': value.brandingTitle,
|
|
65
|
+
'branding_logo': value.brandingLogo,
|
|
66
|
+
'branding_favicon': value.brandingFavicon,
|
|
67
|
+
'flow_authentication': value.flowAuthentication,
|
|
68
|
+
'flow_invalidation': value.flowInvalidation,
|
|
69
|
+
'flow_recovery': value.flowRecovery,
|
|
70
|
+
'flow_unenrollment': value.flowUnenrollment,
|
|
71
|
+
'flow_user_settings': value.flowUserSettings,
|
|
72
|
+
'flow_device_code': value.flowDeviceCode,
|
|
73
|
+
'web_certificate': value.webCertificate,
|
|
74
|
+
'attributes': value.attributes,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
exports.BrandToJSON = BrandToJSON;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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
|
+
* Brand Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BrandRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface BrandRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Domain that activates this brand. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BrandRequest
|
|
22
|
+
*/
|
|
23
|
+
domain: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof BrandRequest
|
|
28
|
+
*/
|
|
29
|
+
_default?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BrandRequest
|
|
34
|
+
*/
|
|
35
|
+
brandingTitle?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BrandRequest
|
|
40
|
+
*/
|
|
41
|
+
brandingLogo?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BrandRequest
|
|
46
|
+
*/
|
|
47
|
+
brandingFavicon?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BrandRequest
|
|
52
|
+
*/
|
|
53
|
+
flowAuthentication?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BrandRequest
|
|
58
|
+
*/
|
|
59
|
+
flowInvalidation?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof BrandRequest
|
|
64
|
+
*/
|
|
65
|
+
flowRecovery?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof BrandRequest
|
|
70
|
+
*/
|
|
71
|
+
flowUnenrollment?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof BrandRequest
|
|
76
|
+
*/
|
|
77
|
+
flowUserSettings?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof BrandRequest
|
|
82
|
+
*/
|
|
83
|
+
flowDeviceCode?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Web Certificate used by the authentik Core webserver.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof BrandRequest
|
|
88
|
+
*/
|
|
89
|
+
webCertificate?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {any}
|
|
93
|
+
* @memberof BrandRequest
|
|
94
|
+
*/
|
|
95
|
+
attributes?: any | null;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the BrandRequest interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfBrandRequest(value: object): boolean;
|
|
101
|
+
export declare function BrandRequestFromJSON(json: any): BrandRequest;
|
|
102
|
+
export declare function BrandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandRequest;
|
|
103
|
+
export declare function BrandRequestToJSON(value?: BrandRequest | null): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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.BrandRequestToJSON = exports.BrandRequestFromJSONTyped = exports.BrandRequestFromJSON = exports.instanceOfBrandRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the BrandRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfBrandRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "domain" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfBrandRequest = instanceOfBrandRequest;
|
|
27
|
+
function BrandRequestFromJSON(json) {
|
|
28
|
+
return BrandRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.BrandRequestFromJSON = BrandRequestFromJSON;
|
|
31
|
+
function BrandRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'domain': json['domain'],
|
|
37
|
+
'_default': !(0, runtime_1.exists)(json, 'default') ? undefined : json['default'],
|
|
38
|
+
'brandingTitle': !(0, runtime_1.exists)(json, 'branding_title') ? undefined : json['branding_title'],
|
|
39
|
+
'brandingLogo': !(0, runtime_1.exists)(json, 'branding_logo') ? undefined : json['branding_logo'],
|
|
40
|
+
'brandingFavicon': !(0, runtime_1.exists)(json, 'branding_favicon') ? undefined : json['branding_favicon'],
|
|
41
|
+
'flowAuthentication': !(0, runtime_1.exists)(json, 'flow_authentication') ? undefined : json['flow_authentication'],
|
|
42
|
+
'flowInvalidation': !(0, runtime_1.exists)(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
|
|
43
|
+
'flowRecovery': !(0, runtime_1.exists)(json, 'flow_recovery') ? undefined : json['flow_recovery'],
|
|
44
|
+
'flowUnenrollment': !(0, runtime_1.exists)(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
|
45
|
+
'flowUserSettings': !(0, runtime_1.exists)(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
|
46
|
+
'flowDeviceCode': !(0, runtime_1.exists)(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
|
47
|
+
'webCertificate': !(0, runtime_1.exists)(json, 'web_certificate') ? undefined : json['web_certificate'],
|
|
48
|
+
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.BrandRequestFromJSONTyped = BrandRequestFromJSONTyped;
|
|
52
|
+
function BrandRequestToJSON(value) {
|
|
53
|
+
if (value === undefined) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
if (value === null) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'domain': value.domain,
|
|
61
|
+
'default': value._default,
|
|
62
|
+
'branding_title': value.brandingTitle,
|
|
63
|
+
'branding_logo': value.brandingLogo,
|
|
64
|
+
'branding_favicon': value.brandingFavicon,
|
|
65
|
+
'flow_authentication': value.flowAuthentication,
|
|
66
|
+
'flow_invalidation': value.flowInvalidation,
|
|
67
|
+
'flow_recovery': value.flowRecovery,
|
|
68
|
+
'flow_unenrollment': value.flowUnenrollment,
|
|
69
|
+
'flow_user_settings': value.flowUserSettings,
|
|
70
|
+
'flow_device_code': value.flowDeviceCode,
|
|
71
|
+
'web_certificate': value.webCertificate,
|
|
72
|
+
'attributes': value.attributes,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
exports.BrandRequestToJSON = BrandRequestToJSON;
|
|
@@ -12,94 +12,94 @@
|
|
|
12
12
|
import type { FooterLink } from './FooterLink';
|
|
13
13
|
import type { UiThemeEnum } from './UiThemeEnum';
|
|
14
14
|
/**
|
|
15
|
-
* Partial
|
|
15
|
+
* Partial brand information for styling
|
|
16
16
|
* @export
|
|
17
|
-
* @interface
|
|
17
|
+
* @interface CurrentBrand
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface CurrentBrand {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
* @type {string}
|
|
23
|
-
* @memberof
|
|
23
|
+
* @memberof CurrentBrand
|
|
24
24
|
*/
|
|
25
25
|
matchedDomain: string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
|
-
* @memberof
|
|
29
|
+
* @memberof CurrentBrand
|
|
30
30
|
*/
|
|
31
31
|
brandingTitle: string;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {string}
|
|
35
|
-
* @memberof
|
|
35
|
+
* @memberof CurrentBrand
|
|
36
36
|
*/
|
|
37
37
|
brandingLogo: string;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {string}
|
|
41
|
-
* @memberof
|
|
41
|
+
* @memberof CurrentBrand
|
|
42
42
|
*/
|
|
43
43
|
brandingFavicon: string;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {Array<FooterLink>}
|
|
47
|
-
* @memberof
|
|
47
|
+
* @memberof CurrentBrand
|
|
48
48
|
*/
|
|
49
49
|
readonly uiFooterLinks: Array<FooterLink>;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {UiThemeEnum}
|
|
53
|
-
* @memberof
|
|
53
|
+
* @memberof CurrentBrand
|
|
54
54
|
*/
|
|
55
55
|
readonly uiTheme: UiThemeEnum;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {string}
|
|
59
|
-
* @memberof
|
|
59
|
+
* @memberof CurrentBrand
|
|
60
60
|
*/
|
|
61
61
|
flowAuthentication?: string;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @type {string}
|
|
65
|
-
* @memberof
|
|
65
|
+
* @memberof CurrentBrand
|
|
66
66
|
*/
|
|
67
67
|
flowInvalidation?: string;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {string}
|
|
71
|
-
* @memberof
|
|
71
|
+
* @memberof CurrentBrand
|
|
72
72
|
*/
|
|
73
73
|
flowRecovery?: string;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {string}
|
|
77
|
-
* @memberof
|
|
77
|
+
* @memberof CurrentBrand
|
|
78
78
|
*/
|
|
79
79
|
flowUnenrollment?: string;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {string}
|
|
83
|
-
* @memberof
|
|
83
|
+
* @memberof CurrentBrand
|
|
84
84
|
*/
|
|
85
85
|
flowUserSettings?: string;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @type {string}
|
|
89
|
-
* @memberof
|
|
89
|
+
* @memberof CurrentBrand
|
|
90
90
|
*/
|
|
91
91
|
flowDeviceCode?: string;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {string}
|
|
95
|
-
* @memberof
|
|
95
|
+
* @memberof CurrentBrand
|
|
96
96
|
*/
|
|
97
97
|
readonly defaultLocale: string;
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* Check if a given object implements the
|
|
100
|
+
* Check if a given object implements the CurrentBrand interface.
|
|
101
101
|
*/
|
|
102
|
-
export declare function
|
|
103
|
-
export declare function
|
|
104
|
-
export declare function
|
|
105
|
-
export declare function
|
|
102
|
+
export declare function instanceOfCurrentBrand(value: object): boolean;
|
|
103
|
+
export declare function CurrentBrandFromJSON(json: any): CurrentBrand;
|
|
104
|
+
export declare function CurrentBrandFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentBrand;
|
|
105
|
+
export declare function CurrentBrandToJSON(value?: CurrentBrand | null): any;
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.CurrentBrandToJSON = exports.CurrentBrandFromJSONTyped = exports.CurrentBrandFromJSON = exports.instanceOfCurrentBrand = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const FooterLink_1 = require("./FooterLink");
|
|
19
19
|
const UiThemeEnum_1 = require("./UiThemeEnum");
|
|
20
20
|
/**
|
|
21
|
-
* Check if a given object implements the
|
|
21
|
+
* Check if a given object implements the CurrentBrand interface.
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function instanceOfCurrentBrand(value) {
|
|
24
24
|
let isInstance = true;
|
|
25
25
|
isInstance = isInstance && "matchedDomain" in value;
|
|
26
26
|
isInstance = isInstance && "brandingTitle" in value;
|
|
@@ -31,12 +31,12 @@ function instanceOfCurrentTenant(value) {
|
|
|
31
31
|
isInstance = isInstance && "defaultLocale" in value;
|
|
32
32
|
return isInstance;
|
|
33
33
|
}
|
|
34
|
-
exports.
|
|
35
|
-
function
|
|
36
|
-
return
|
|
34
|
+
exports.instanceOfCurrentBrand = instanceOfCurrentBrand;
|
|
35
|
+
function CurrentBrandFromJSON(json) {
|
|
36
|
+
return CurrentBrandFromJSONTyped(json, false);
|
|
37
37
|
}
|
|
38
|
-
exports.
|
|
39
|
-
function
|
|
38
|
+
exports.CurrentBrandFromJSON = CurrentBrandFromJSON;
|
|
39
|
+
function CurrentBrandFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
40
|
if ((json === undefined) || (json === null)) {
|
|
41
41
|
return json;
|
|
42
42
|
}
|
|
@@ -56,8 +56,8 @@ function CurrentTenantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'defaultLocale': json['default_locale'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
exports.
|
|
60
|
-
function
|
|
59
|
+
exports.CurrentBrandFromJSONTyped = CurrentBrandFromJSONTyped;
|
|
60
|
+
function CurrentBrandToJSON(value) {
|
|
61
61
|
if (value === undefined) {
|
|
62
62
|
return undefined;
|
|
63
63
|
}
|
|
@@ -77,4 +77,4 @@ function CurrentTenantToJSON(value) {
|
|
|
77
77
|
'flow_device_code': value.flowDeviceCode,
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
exports.
|
|
80
|
+
exports.CurrentBrandToJSON = CurrentBrandToJSON;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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
|
+
* Domain Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Domain
|
|
16
|
+
*/
|
|
17
|
+
export interface Domain {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Domain
|
|
22
|
+
*/
|
|
23
|
+
readonly id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Domain
|
|
28
|
+
*/
|
|
29
|
+
domain: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof Domain
|
|
34
|
+
*/
|
|
35
|
+
isPrimary?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Domain
|
|
40
|
+
*/
|
|
41
|
+
tenant: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the Domain interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfDomain(value: object): boolean;
|
|
47
|
+
export declare function DomainFromJSON(json: any): Domain;
|
|
48
|
+
export declare function DomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): Domain;
|
|
49
|
+
export declare function DomainToJSON(value?: Domain | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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.DomainToJSON = exports.DomainFromJSONTyped = exports.DomainFromJSON = exports.instanceOfDomain = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Domain interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfDomain(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "id" in value;
|
|
24
|
+
isInstance = isInstance && "domain" in value;
|
|
25
|
+
isInstance = isInstance && "tenant" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfDomain = instanceOfDomain;
|
|
29
|
+
function DomainFromJSON(json) {
|
|
30
|
+
return DomainFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.DomainFromJSON = DomainFromJSON;
|
|
33
|
+
function DomainFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': json['id'],
|
|
39
|
+
'domain': json['domain'],
|
|
40
|
+
'isPrimary': !(0, runtime_1.exists)(json, 'is_primary') ? undefined : json['is_primary'],
|
|
41
|
+
'tenant': json['tenant'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.DomainFromJSONTyped = DomainFromJSONTyped;
|
|
45
|
+
function DomainToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'domain': value.domain,
|
|
54
|
+
'is_primary': value.isPrimary,
|
|
55
|
+
'tenant': value.tenant,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.DomainToJSON = DomainToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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
|
+
* Domain Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DomainRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DomainRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DomainRequest
|
|
22
|
+
*/
|
|
23
|
+
domain: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof DomainRequest
|
|
28
|
+
*/
|
|
29
|
+
isPrimary?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DomainRequest
|
|
34
|
+
*/
|
|
35
|
+
tenant: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the DomainRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfDomainRequest(value: object): boolean;
|
|
41
|
+
export declare function DomainRequestFromJSON(json: any): DomainRequest;
|
|
42
|
+
export declare function DomainRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainRequest;
|
|
43
|
+
export declare function DomainRequestToJSON(value?: DomainRequest | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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.DomainRequestToJSON = exports.DomainRequestFromJSONTyped = exports.DomainRequestFromJSON = exports.instanceOfDomainRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the DomainRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfDomainRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "domain" in value;
|
|
24
|
+
isInstance = isInstance && "tenant" in value;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfDomainRequest = instanceOfDomainRequest;
|
|
28
|
+
function DomainRequestFromJSON(json) {
|
|
29
|
+
return DomainRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.DomainRequestFromJSON = DomainRequestFromJSON;
|
|
32
|
+
function DomainRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'domain': json['domain'],
|
|
38
|
+
'isPrimary': !(0, runtime_1.exists)(json, 'is_primary') ? undefined : json['is_primary'],
|
|
39
|
+
'tenant': json['tenant'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.DomainRequestFromJSONTyped = DomainRequestFromJSONTyped;
|
|
43
|
+
function DomainRequestToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'domain': value.domain,
|
|
52
|
+
'is_primary': value.isPrimary,
|
|
53
|
+
'tenant': value.tenant,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.DomainRequestToJSON = DomainRequestToJSON;
|
package/dist/models/Event.d.ts
CHANGED
package/dist/models/Event.js
CHANGED
|
@@ -45,7 +45,7 @@ function EventFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'clientIp': !(0, runtime_1.exists)(json, 'client_ip') ? undefined : json['client_ip'],
|
|
46
46
|
'created': (new Date(json['created'])),
|
|
47
47
|
'expires': !(0, runtime_1.exists)(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
48
|
-
'
|
|
48
|
+
'brand': !(0, runtime_1.exists)(json, 'brand') ? undefined : json['brand'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
exports.EventFromJSONTyped = EventFromJSONTyped;
|
|
@@ -63,7 +63,7 @@ function EventToJSON(value) {
|
|
|
63
63
|
'context': value.context,
|
|
64
64
|
'client_ip': value.clientIp,
|
|
65
65
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
66
|
-
'
|
|
66
|
+
'brand': value.brand,
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
exports.EventToJSON = EventToJSON;
|