@goauthentik/api 2023.10.6-1705263684 → 2023.10.6-1706092584
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 +6 -2
- package/dist/esm/models/AppEnum.js +6 -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 +6 -2
- package/dist/models/AppEnum.js +6 -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 +6 -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,170 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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
|
+
/**
|
|
17
|
+
* Brand Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Brand
|
|
20
|
+
*/
|
|
21
|
+
export interface Brand {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Brand
|
|
26
|
+
*/
|
|
27
|
+
readonly brandUuid: string;
|
|
28
|
+
/**
|
|
29
|
+
* Domain that activates this brand. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Brand
|
|
32
|
+
*/
|
|
33
|
+
domain: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof Brand
|
|
38
|
+
*/
|
|
39
|
+
_default?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Brand
|
|
44
|
+
*/
|
|
45
|
+
brandingTitle?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Brand
|
|
50
|
+
*/
|
|
51
|
+
brandingLogo?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Brand
|
|
56
|
+
*/
|
|
57
|
+
brandingFavicon?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Brand
|
|
62
|
+
*/
|
|
63
|
+
flowAuthentication?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Brand
|
|
68
|
+
*/
|
|
69
|
+
flowInvalidation?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Brand
|
|
74
|
+
*/
|
|
75
|
+
flowRecovery?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Brand
|
|
80
|
+
*/
|
|
81
|
+
flowUnenrollment?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Brand
|
|
86
|
+
*/
|
|
87
|
+
flowUserSettings?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof Brand
|
|
92
|
+
*/
|
|
93
|
+
flowDeviceCode?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Web Certificate used by the authentik Core webserver.
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof Brand
|
|
98
|
+
*/
|
|
99
|
+
webCertificate?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {any}
|
|
103
|
+
* @memberof Brand
|
|
104
|
+
*/
|
|
105
|
+
attributes?: any | null;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Check if a given object implements the Brand interface.
|
|
110
|
+
*/
|
|
111
|
+
export function instanceOfBrand(value: object): boolean {
|
|
112
|
+
let isInstance = true;
|
|
113
|
+
isInstance = isInstance && "brandUuid" in value;
|
|
114
|
+
isInstance = isInstance && "domain" in value;
|
|
115
|
+
|
|
116
|
+
return isInstance;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function BrandFromJSON(json: any): Brand {
|
|
120
|
+
return BrandFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function BrandFromJSONTyped(json: any, ignoreDiscriminator: boolean): Brand {
|
|
124
|
+
if ((json === undefined) || (json === null)) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'brandUuid': json['brand_uuid'],
|
|
130
|
+
'domain': json['domain'],
|
|
131
|
+
'_default': !exists(json, 'default') ? undefined : json['default'],
|
|
132
|
+
'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],
|
|
133
|
+
'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],
|
|
134
|
+
'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],
|
|
135
|
+
'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],
|
|
136
|
+
'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
|
|
137
|
+
'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
|
|
138
|
+
'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
|
139
|
+
'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
|
140
|
+
'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
|
141
|
+
'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
|
|
142
|
+
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function BrandToJSON(value?: Brand | null): any {
|
|
147
|
+
if (value === undefined) {
|
|
148
|
+
return undefined;
|
|
149
|
+
}
|
|
150
|
+
if (value === null) {
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
|
|
155
|
+
'domain': value.domain,
|
|
156
|
+
'default': value._default,
|
|
157
|
+
'branding_title': value.brandingTitle,
|
|
158
|
+
'branding_logo': value.brandingLogo,
|
|
159
|
+
'branding_favicon': value.brandingFavicon,
|
|
160
|
+
'flow_authentication': value.flowAuthentication,
|
|
161
|
+
'flow_invalidation': value.flowInvalidation,
|
|
162
|
+
'flow_recovery': value.flowRecovery,
|
|
163
|
+
'flow_unenrollment': value.flowUnenrollment,
|
|
164
|
+
'flow_user_settings': value.flowUserSettings,
|
|
165
|
+
'flow_device_code': value.flowDeviceCode,
|
|
166
|
+
'web_certificate': value.webCertificate,
|
|
167
|
+
'attributes': value.attributes,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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
|
+
/**
|
|
17
|
+
* Brand Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BrandRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface BrandRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Domain that activates this brand. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BrandRequest
|
|
26
|
+
*/
|
|
27
|
+
domain: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof BrandRequest
|
|
32
|
+
*/
|
|
33
|
+
_default?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BrandRequest
|
|
38
|
+
*/
|
|
39
|
+
brandingTitle?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof BrandRequest
|
|
44
|
+
*/
|
|
45
|
+
brandingLogo?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof BrandRequest
|
|
50
|
+
*/
|
|
51
|
+
brandingFavicon?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof BrandRequest
|
|
56
|
+
*/
|
|
57
|
+
flowAuthentication?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof BrandRequest
|
|
62
|
+
*/
|
|
63
|
+
flowInvalidation?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof BrandRequest
|
|
68
|
+
*/
|
|
69
|
+
flowRecovery?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof BrandRequest
|
|
74
|
+
*/
|
|
75
|
+
flowUnenrollment?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof BrandRequest
|
|
80
|
+
*/
|
|
81
|
+
flowUserSettings?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof BrandRequest
|
|
86
|
+
*/
|
|
87
|
+
flowDeviceCode?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Web Certificate used by the authentik Core webserver.
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof BrandRequest
|
|
92
|
+
*/
|
|
93
|
+
webCertificate?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {any}
|
|
97
|
+
* @memberof BrandRequest
|
|
98
|
+
*/
|
|
99
|
+
attributes?: any | null;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the BrandRequest interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfBrandRequest(value: object): boolean {
|
|
106
|
+
let isInstance = true;
|
|
107
|
+
isInstance = isInstance && "domain" in value;
|
|
108
|
+
|
|
109
|
+
return isInstance;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function BrandRequestFromJSON(json: any): BrandRequest {
|
|
113
|
+
return BrandRequestFromJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function BrandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandRequest {
|
|
117
|
+
if ((json === undefined) || (json === null)) {
|
|
118
|
+
return json;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'domain': json['domain'],
|
|
123
|
+
'_default': !exists(json, 'default') ? undefined : json['default'],
|
|
124
|
+
'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],
|
|
125
|
+
'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],
|
|
126
|
+
'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],
|
|
127
|
+
'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],
|
|
128
|
+
'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
|
|
129
|
+
'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
|
|
130
|
+
'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
|
131
|
+
'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
|
132
|
+
'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
|
133
|
+
'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
|
|
134
|
+
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function BrandRequestToJSON(value?: BrandRequest | null): any {
|
|
139
|
+
if (value === undefined) {
|
|
140
|
+
return undefined;
|
|
141
|
+
}
|
|
142
|
+
if (value === null) {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'domain': value.domain,
|
|
148
|
+
'default': value._default,
|
|
149
|
+
'branding_title': value.brandingTitle,
|
|
150
|
+
'branding_logo': value.brandingLogo,
|
|
151
|
+
'branding_favicon': value.brandingFavicon,
|
|
152
|
+
'flow_authentication': value.flowAuthentication,
|
|
153
|
+
'flow_invalidation': value.flowInvalidation,
|
|
154
|
+
'flow_recovery': value.flowRecovery,
|
|
155
|
+
'flow_unenrollment': value.flowUnenrollment,
|
|
156
|
+
'flow_user_settings': value.flowUserSettings,
|
|
157
|
+
'flow_device_code': value.flowDeviceCode,
|
|
158
|
+
'web_certificate': value.webCertificate,
|
|
159
|
+
'attributes': value.attributes,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
@@ -27,95 +27,95 @@ import {
|
|
|
27
27
|
} from './UiThemeEnum';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Partial
|
|
30
|
+
* Partial brand information for styling
|
|
31
31
|
* @export
|
|
32
|
-
* @interface
|
|
32
|
+
* @interface CurrentBrand
|
|
33
33
|
*/
|
|
34
|
-
export interface
|
|
34
|
+
export interface CurrentBrand {
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {string}
|
|
38
|
-
* @memberof
|
|
38
|
+
* @memberof CurrentBrand
|
|
39
39
|
*/
|
|
40
40
|
matchedDomain: string;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {string}
|
|
44
|
-
* @memberof
|
|
44
|
+
* @memberof CurrentBrand
|
|
45
45
|
*/
|
|
46
46
|
brandingTitle: string;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {string}
|
|
50
|
-
* @memberof
|
|
50
|
+
* @memberof CurrentBrand
|
|
51
51
|
*/
|
|
52
52
|
brandingLogo: string;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {string}
|
|
56
|
-
* @memberof
|
|
56
|
+
* @memberof CurrentBrand
|
|
57
57
|
*/
|
|
58
58
|
brandingFavicon: string;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {Array<FooterLink>}
|
|
62
|
-
* @memberof
|
|
62
|
+
* @memberof CurrentBrand
|
|
63
63
|
*/
|
|
64
64
|
readonly uiFooterLinks: Array<FooterLink>;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {UiThemeEnum}
|
|
68
|
-
* @memberof
|
|
68
|
+
* @memberof CurrentBrand
|
|
69
69
|
*/
|
|
70
70
|
readonly uiTheme: UiThemeEnum;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
74
|
-
* @memberof
|
|
74
|
+
* @memberof CurrentBrand
|
|
75
75
|
*/
|
|
76
76
|
flowAuthentication?: string;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @type {string}
|
|
80
|
-
* @memberof
|
|
80
|
+
* @memberof CurrentBrand
|
|
81
81
|
*/
|
|
82
82
|
flowInvalidation?: string;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
* @type {string}
|
|
86
|
-
* @memberof
|
|
86
|
+
* @memberof CurrentBrand
|
|
87
87
|
*/
|
|
88
88
|
flowRecovery?: string;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
* @type {string}
|
|
92
|
-
* @memberof
|
|
92
|
+
* @memberof CurrentBrand
|
|
93
93
|
*/
|
|
94
94
|
flowUnenrollment?: string;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
* @type {string}
|
|
98
|
-
* @memberof
|
|
98
|
+
* @memberof CurrentBrand
|
|
99
99
|
*/
|
|
100
100
|
flowUserSettings?: string;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
104
|
-
* @memberof
|
|
104
|
+
* @memberof CurrentBrand
|
|
105
105
|
*/
|
|
106
106
|
flowDeviceCode?: string;
|
|
107
107
|
/**
|
|
108
108
|
*
|
|
109
109
|
* @type {string}
|
|
110
|
-
* @memberof
|
|
110
|
+
* @memberof CurrentBrand
|
|
111
111
|
*/
|
|
112
112
|
readonly defaultLocale: string;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
* Check if a given object implements the
|
|
116
|
+
* Check if a given object implements the CurrentBrand interface.
|
|
117
117
|
*/
|
|
118
|
-
export function
|
|
118
|
+
export function instanceOfCurrentBrand(value: object): boolean {
|
|
119
119
|
let isInstance = true;
|
|
120
120
|
isInstance = isInstance && "matchedDomain" in value;
|
|
121
121
|
isInstance = isInstance && "brandingTitle" in value;
|
|
@@ -128,11 +128,11 @@ export function instanceOfCurrentTenant(value: object): boolean {
|
|
|
128
128
|
return isInstance;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
export function
|
|
132
|
-
return
|
|
131
|
+
export function CurrentBrandFromJSON(json: any): CurrentBrand {
|
|
132
|
+
return CurrentBrandFromJSONTyped(json, false);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
export function
|
|
135
|
+
export function CurrentBrandFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentBrand {
|
|
136
136
|
if ((json === undefined) || (json === null)) {
|
|
137
137
|
return json;
|
|
138
138
|
}
|
|
@@ -154,7 +154,7 @@ export function CurrentTenantFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
export function
|
|
157
|
+
export function CurrentBrandToJSON(value?: CurrentBrand | null): any {
|
|
158
158
|
if (value === undefined) {
|
|
159
159
|
return undefined;
|
|
160
160
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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
|
+
/**
|
|
17
|
+
* Domain Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Domain
|
|
20
|
+
*/
|
|
21
|
+
export interface Domain {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Domain
|
|
26
|
+
*/
|
|
27
|
+
readonly id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Domain
|
|
32
|
+
*/
|
|
33
|
+
domain: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof Domain
|
|
38
|
+
*/
|
|
39
|
+
isPrimary?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Domain
|
|
44
|
+
*/
|
|
45
|
+
tenant: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the Domain interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfDomain(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "id" in value;
|
|
54
|
+
isInstance = isInstance && "domain" in value;
|
|
55
|
+
isInstance = isInstance && "tenant" in value;
|
|
56
|
+
|
|
57
|
+
return isInstance;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DomainFromJSON(json: any): Domain {
|
|
61
|
+
return DomainFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function DomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): Domain {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'id': json['id'],
|
|
71
|
+
'domain': json['domain'],
|
|
72
|
+
'isPrimary': !exists(json, 'is_primary') ? undefined : json['is_primary'],
|
|
73
|
+
'tenant': json['tenant'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function DomainToJSON(value?: Domain | null): any {
|
|
78
|
+
if (value === undefined) {
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
if (value === null) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'domain': value.domain,
|
|
87
|
+
'is_primary': value.isPrimary,
|
|
88
|
+
'tenant': value.tenant,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2023.10.6
|
|
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
|
+
/**
|
|
17
|
+
* Domain Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DomainRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DomainRequest
|
|
26
|
+
*/
|
|
27
|
+
domain: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof DomainRequest
|
|
32
|
+
*/
|
|
33
|
+
isPrimary?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DomainRequest
|
|
38
|
+
*/
|
|
39
|
+
tenant: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the DomainRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfDomainRequest(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "domain" in value;
|
|
48
|
+
isInstance = isInstance && "tenant" in value;
|
|
49
|
+
|
|
50
|
+
return isInstance;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function DomainRequestFromJSON(json: any): DomainRequest {
|
|
54
|
+
return DomainRequestFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function DomainRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainRequest {
|
|
58
|
+
if ((json === undefined) || (json === null)) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'domain': json['domain'],
|
|
64
|
+
'isPrimary': !exists(json, 'is_primary') ? undefined : json['is_primary'],
|
|
65
|
+
'tenant': json['tenant'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function DomainRequestToJSON(value?: DomainRequest | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'domain': value.domain,
|
|
79
|
+
'is_primary': value.isPrimary,
|
|
80
|
+
'tenant': value.tenant,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
package/src/models/Event.ts
CHANGED
|
@@ -79,7 +79,7 @@ export interface Event {
|
|
|
79
79
|
* @type {any}
|
|
80
80
|
* @memberof Event
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
brand?: any | null;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/**
|
|
@@ -113,7 +113,7 @@ export function EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): Eve
|
|
|
113
113
|
'clientIp': !exists(json, 'client_ip') ? undefined : json['client_ip'],
|
|
114
114
|
'created': (new Date(json['created'])),
|
|
115
115
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
116
|
-
'
|
|
116
|
+
'brand': !exists(json, 'brand') ? undefined : json['brand'],
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -132,7 +132,7 @@ export function EventToJSON(value?: Event | null): any {
|
|
|
132
132
|
'context': value.context,
|
|
133
133
|
'client_ip': value.clientIp,
|
|
134
134
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
135
|
-
'
|
|
135
|
+
'brand': value.brand,
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
|
|
@@ -67,7 +67,7 @@ export interface EventRequest {
|
|
|
67
67
|
* @type {any}
|
|
68
68
|
* @memberof EventRequest
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
brand?: any | null;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
@@ -97,7 +97,7 @@ export function EventRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
97
97
|
'context': !exists(json, 'context') ? undefined : json['context'],
|
|
98
98
|
'clientIp': !exists(json, 'client_ip') ? undefined : json['client_ip'],
|
|
99
99
|
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
100
|
-
'
|
|
100
|
+
'brand': !exists(json, 'brand') ? undefined : json['brand'],
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -116,7 +116,7 @@ export function EventRequestToJSON(value?: EventRequest | null): any {
|
|
|
116
116
|
'context': value.context,
|
|
117
117
|
'client_ip': value.clientIp,
|
|
118
118
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
119
|
-
'
|
|
119
|
+
'brand': value.brand,
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
|