@goauthentik/api 2023.10.6-1705072854 → 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/PropertymappingsApi.d.ts +1 -1
- package/dist/apis/PropertymappingsApi.js +1 -1
- 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/PropertymappingsApi.d.ts +1 -1
- package/dist/esm/apis/PropertymappingsApi.js +1 -1
- 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/PropertymappingsApi.ts +2 -2
- 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
|
@@ -41,7 +41,7 @@ function EventRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'context': !(0, runtime_1.exists)(json, 'context') ? undefined : json['context'],
|
|
42
42
|
'clientIp': !(0, runtime_1.exists)(json, 'client_ip') ? undefined : json['client_ip'],
|
|
43
43
|
'expires': !(0, runtime_1.exists)(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
44
|
-
'
|
|
44
|
+
'brand': !(0, runtime_1.exists)(json, 'brand') ? undefined : json['brand'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
exports.EventRequestFromJSONTyped = EventRequestFromJSONTyped;
|
|
@@ -59,7 +59,7 @@ function EventRequestToJSON(value) {
|
|
|
59
59
|
'context': value.context,
|
|
60
60
|
'client_ip': value.clientIp,
|
|
61
61
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
62
|
-
'
|
|
62
|
+
'brand': value.brand,
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
exports.EventRequestToJSON = EventRequestToJSON;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
+
* * `authentik_tenants.domain` - Domain
|
|
13
14
|
* * `authentik_crypto.certificatekeypair` - Certificate-Key Pair
|
|
14
15
|
* * `authentik_events.event` - Event
|
|
15
16
|
* * `authentik_events.notificationtransport` - Notification Transport
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
* * `authentik_stages_user_login.userloginstage` - User Login Stage
|
|
78
79
|
* * `authentik_stages_user_logout.userlogoutstage` - User Logout Stage
|
|
79
80
|
* * `authentik_stages_user_write.userwritestage` - User Write Stage
|
|
80
|
-
* * `
|
|
81
|
+
* * `authentik_brands.brand` - Brand
|
|
81
82
|
* * `authentik_blueprints.blueprintinstance` - Blueprint Instance
|
|
82
83
|
* * `authentik_core.group` - Group
|
|
83
84
|
* * `authentik_core.user` - User
|
|
@@ -90,6 +91,7 @@
|
|
|
90
91
|
* @export
|
|
91
92
|
*/
|
|
92
93
|
export declare const ModelEnum: {
|
|
94
|
+
readonly TenantsDomain: "authentik_tenants.domain";
|
|
93
95
|
readonly CryptoCertificatekeypair: "authentik_crypto.certificatekeypair";
|
|
94
96
|
readonly EventsEvent: "authentik_events.event";
|
|
95
97
|
readonly EventsNotificationtransport: "authentik_events.notificationtransport";
|
|
@@ -157,7 +159,7 @@ export declare const ModelEnum: {
|
|
|
157
159
|
readonly StagesUserLoginUserloginstage: "authentik_stages_user_login.userloginstage";
|
|
158
160
|
readonly StagesUserLogoutUserlogoutstage: "authentik_stages_user_logout.userlogoutstage";
|
|
159
161
|
readonly StagesUserWriteUserwritestage: "authentik_stages_user_write.userwritestage";
|
|
160
|
-
readonly
|
|
162
|
+
readonly BrandsBrand: "authentik_brands.brand";
|
|
161
163
|
readonly BlueprintsBlueprintinstance: "authentik_blueprints.blueprintinstance";
|
|
162
164
|
readonly CoreGroup: "authentik_core.group";
|
|
163
165
|
readonly CoreUser: "authentik_core.user";
|
package/dist/models/ModelEnum.js
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ModelEnumToJSON = exports.ModelEnumFromJSONTyped = exports.ModelEnumFromJSON = exports.ModelEnum = void 0;
|
|
17
17
|
/**
|
|
18
|
+
* * `authentik_tenants.domain` - Domain
|
|
18
19
|
* * `authentik_crypto.certificatekeypair` - Certificate-Key Pair
|
|
19
20
|
* * `authentik_events.event` - Event
|
|
20
21
|
* * `authentik_events.notificationtransport` - Notification Transport
|
|
@@ -82,7 +83,7 @@ exports.ModelEnumToJSON = exports.ModelEnumFromJSONTyped = exports.ModelEnumFrom
|
|
|
82
83
|
* * `authentik_stages_user_login.userloginstage` - User Login Stage
|
|
83
84
|
* * `authentik_stages_user_logout.userlogoutstage` - User Logout Stage
|
|
84
85
|
* * `authentik_stages_user_write.userwritestage` - User Write Stage
|
|
85
|
-
* * `
|
|
86
|
+
* * `authentik_brands.brand` - Brand
|
|
86
87
|
* * `authentik_blueprints.blueprintinstance` - Blueprint Instance
|
|
87
88
|
* * `authentik_core.group` - Group
|
|
88
89
|
* * `authentik_core.user` - User
|
|
@@ -95,6 +96,7 @@ exports.ModelEnumToJSON = exports.ModelEnumFromJSONTyped = exports.ModelEnumFrom
|
|
|
95
96
|
* @export
|
|
96
97
|
*/
|
|
97
98
|
exports.ModelEnum = {
|
|
99
|
+
TenantsDomain: 'authentik_tenants.domain',
|
|
98
100
|
CryptoCertificatekeypair: 'authentik_crypto.certificatekeypair',
|
|
99
101
|
EventsEvent: 'authentik_events.event',
|
|
100
102
|
EventsNotificationtransport: 'authentik_events.notificationtransport',
|
|
@@ -162,7 +164,7 @@ exports.ModelEnum = {
|
|
|
162
164
|
StagesUserLoginUserloginstage: 'authentik_stages_user_login.userloginstage',
|
|
163
165
|
StagesUserLogoutUserlogoutstage: 'authentik_stages_user_logout.userlogoutstage',
|
|
164
166
|
StagesUserWriteUserwritestage: 'authentik_stages_user_write.userwritestage',
|
|
165
|
-
|
|
167
|
+
BrandsBrand: 'authentik_brands.brand',
|
|
166
168
|
BlueprintsBlueprintinstance: 'authentik_blueprints.blueprintinstance',
|
|
167
169
|
CoreGroup: 'authentik_core.group',
|
|
168
170
|
CoreUser: 'authentik_core.user',
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import type { Brand } from './Brand';
|
|
13
|
+
import type { Pagination } from './Pagination';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedBrandList
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedBrandList {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Pagination}
|
|
23
|
+
* @memberof PaginatedBrandList
|
|
24
|
+
*/
|
|
25
|
+
pagination: Pagination;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Brand>}
|
|
29
|
+
* @memberof PaginatedBrandList
|
|
30
|
+
*/
|
|
31
|
+
results: Array<Brand>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedBrandList interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedBrandList(value: object): boolean;
|
|
37
|
+
export declare function PaginatedBrandListFromJSON(json: any): PaginatedBrandList;
|
|
38
|
+
export declare function PaginatedBrandListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBrandList;
|
|
39
|
+
export declare function PaginatedBrandListToJSON(value?: PaginatedBrandList | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.PaginatedBrandListToJSON = exports.PaginatedBrandListFromJSONTyped = exports.PaginatedBrandListFromJSON = exports.instanceOfPaginatedBrandList = void 0;
|
|
17
|
+
const Brand_1 = require("./Brand");
|
|
18
|
+
const Pagination_1 = require("./Pagination");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the PaginatedBrandList interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfPaginatedBrandList(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "pagination" in value;
|
|
25
|
+
isInstance = isInstance && "results" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfPaginatedBrandList = instanceOfPaginatedBrandList;
|
|
29
|
+
function PaginatedBrandListFromJSON(json) {
|
|
30
|
+
return PaginatedBrandListFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.PaginatedBrandListFromJSON = PaginatedBrandListFromJSON;
|
|
33
|
+
function PaginatedBrandListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
|
|
39
|
+
'results': (json['results'].map(Brand_1.BrandFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.PaginatedBrandListFromJSONTyped = PaginatedBrandListFromJSONTyped;
|
|
43
|
+
function PaginatedBrandListToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
|
|
52
|
+
'results': (value.results.map(Brand_1.BrandToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.PaginatedBrandListToJSON = PaginatedBrandListToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import type { Domain } from './Domain';
|
|
13
|
+
import type { Pagination } from './Pagination';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedDomainList
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedDomainList {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Pagination}
|
|
23
|
+
* @memberof PaginatedDomainList
|
|
24
|
+
*/
|
|
25
|
+
pagination: Pagination;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Domain>}
|
|
29
|
+
* @memberof PaginatedDomainList
|
|
30
|
+
*/
|
|
31
|
+
results: Array<Domain>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedDomainList interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedDomainList(value: object): boolean;
|
|
37
|
+
export declare function PaginatedDomainListFromJSON(json: any): PaginatedDomainList;
|
|
38
|
+
export declare function PaginatedDomainListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedDomainList;
|
|
39
|
+
export declare function PaginatedDomainListToJSON(value?: PaginatedDomainList | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.PaginatedDomainListToJSON = exports.PaginatedDomainListFromJSONTyped = exports.PaginatedDomainListFromJSON = exports.instanceOfPaginatedDomainList = void 0;
|
|
17
|
+
const Domain_1 = require("./Domain");
|
|
18
|
+
const Pagination_1 = require("./Pagination");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the PaginatedDomainList interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfPaginatedDomainList(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "pagination" in value;
|
|
25
|
+
isInstance = isInstance && "results" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfPaginatedDomainList = instanceOfPaginatedDomainList;
|
|
29
|
+
function PaginatedDomainListFromJSON(json) {
|
|
30
|
+
return PaginatedDomainListFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.PaginatedDomainListFromJSON = PaginatedDomainListFromJSON;
|
|
33
|
+
function PaginatedDomainListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
|
|
39
|
+
'results': (json['results'].map(Domain_1.DomainFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.PaginatedDomainListFromJSONTyped = PaginatedDomainListFromJSONTyped;
|
|
43
|
+
function PaginatedDomainListToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
|
|
52
|
+
'results': (value.results.map(Domain_1.DomainToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.PaginatedDomainListToJSON = PaginatedDomainListToJSON;
|
|
@@ -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 PatchedBrandRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PatchedBrandRequest {
|
|
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 PatchedBrandRequest
|
|
22
|
+
*/
|
|
23
|
+
domain?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof PatchedBrandRequest
|
|
28
|
+
*/
|
|
29
|
+
_default?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PatchedBrandRequest
|
|
34
|
+
*/
|
|
35
|
+
brandingTitle?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PatchedBrandRequest
|
|
40
|
+
*/
|
|
41
|
+
brandingLogo?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PatchedBrandRequest
|
|
46
|
+
*/
|
|
47
|
+
brandingFavicon?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PatchedBrandRequest
|
|
52
|
+
*/
|
|
53
|
+
flowAuthentication?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PatchedBrandRequest
|
|
58
|
+
*/
|
|
59
|
+
flowInvalidation?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PatchedBrandRequest
|
|
64
|
+
*/
|
|
65
|
+
flowRecovery?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof PatchedBrandRequest
|
|
70
|
+
*/
|
|
71
|
+
flowUnenrollment?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PatchedBrandRequest
|
|
76
|
+
*/
|
|
77
|
+
flowUserSettings?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PatchedBrandRequest
|
|
82
|
+
*/
|
|
83
|
+
flowDeviceCode?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Web Certificate used by the authentik Core webserver.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof PatchedBrandRequest
|
|
88
|
+
*/
|
|
89
|
+
webCertificate?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {any}
|
|
93
|
+
* @memberof PatchedBrandRequest
|
|
94
|
+
*/
|
|
95
|
+
attributes?: any | null;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the PatchedBrandRequest interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfPatchedBrandRequest(value: object): boolean;
|
|
101
|
+
export declare function PatchedBrandRequestFromJSON(json: any): PatchedBrandRequest;
|
|
102
|
+
export declare function PatchedBrandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedBrandRequest;
|
|
103
|
+
export declare function PatchedBrandRequestToJSON(value?: PatchedBrandRequest | null): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.PatchedBrandRequestToJSON = exports.PatchedBrandRequestFromJSONTyped = exports.PatchedBrandRequestFromJSON = exports.instanceOfPatchedBrandRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PatchedBrandRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPatchedBrandRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfPatchedBrandRequest = instanceOfPatchedBrandRequest;
|
|
26
|
+
function PatchedBrandRequestFromJSON(json) {
|
|
27
|
+
return PatchedBrandRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.PatchedBrandRequestFromJSON = PatchedBrandRequestFromJSON;
|
|
30
|
+
function PatchedBrandRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'domain': !(0, runtime_1.exists)(json, 'domain') ? undefined : json['domain'],
|
|
36
|
+
'_default': !(0, runtime_1.exists)(json, 'default') ? undefined : json['default'],
|
|
37
|
+
'brandingTitle': !(0, runtime_1.exists)(json, 'branding_title') ? undefined : json['branding_title'],
|
|
38
|
+
'brandingLogo': !(0, runtime_1.exists)(json, 'branding_logo') ? undefined : json['branding_logo'],
|
|
39
|
+
'brandingFavicon': !(0, runtime_1.exists)(json, 'branding_favicon') ? undefined : json['branding_favicon'],
|
|
40
|
+
'flowAuthentication': !(0, runtime_1.exists)(json, 'flow_authentication') ? undefined : json['flow_authentication'],
|
|
41
|
+
'flowInvalidation': !(0, runtime_1.exists)(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
|
|
42
|
+
'flowRecovery': !(0, runtime_1.exists)(json, 'flow_recovery') ? undefined : json['flow_recovery'],
|
|
43
|
+
'flowUnenrollment': !(0, runtime_1.exists)(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
|
44
|
+
'flowUserSettings': !(0, runtime_1.exists)(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
|
45
|
+
'flowDeviceCode': !(0, runtime_1.exists)(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
|
46
|
+
'webCertificate': !(0, runtime_1.exists)(json, 'web_certificate') ? undefined : json['web_certificate'],
|
|
47
|
+
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.PatchedBrandRequestFromJSONTyped = PatchedBrandRequestFromJSONTyped;
|
|
51
|
+
function PatchedBrandRequestToJSON(value) {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'domain': value.domain,
|
|
60
|
+
'default': value._default,
|
|
61
|
+
'branding_title': value.brandingTitle,
|
|
62
|
+
'branding_logo': value.brandingLogo,
|
|
63
|
+
'branding_favicon': value.brandingFavicon,
|
|
64
|
+
'flow_authentication': value.flowAuthentication,
|
|
65
|
+
'flow_invalidation': value.flowInvalidation,
|
|
66
|
+
'flow_recovery': value.flowRecovery,
|
|
67
|
+
'flow_unenrollment': value.flowUnenrollment,
|
|
68
|
+
'flow_user_settings': value.flowUserSettings,
|
|
69
|
+
'flow_device_code': value.flowDeviceCode,
|
|
70
|
+
'web_certificate': value.webCertificate,
|
|
71
|
+
'attributes': value.attributes,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
exports.PatchedBrandRequestToJSON = PatchedBrandRequestToJSON;
|
|
@@ -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 PatchedDomainRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PatchedDomainRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PatchedDomainRequest
|
|
22
|
+
*/
|
|
23
|
+
domain?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof PatchedDomainRequest
|
|
28
|
+
*/
|
|
29
|
+
isPrimary?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PatchedDomainRequest
|
|
34
|
+
*/
|
|
35
|
+
tenant?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PatchedDomainRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPatchedDomainRequest(value: object): boolean;
|
|
41
|
+
export declare function PatchedDomainRequestFromJSON(json: any): PatchedDomainRequest;
|
|
42
|
+
export declare function PatchedDomainRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedDomainRequest;
|
|
43
|
+
export declare function PatchedDomainRequestToJSON(value?: PatchedDomainRequest | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.PatchedDomainRequestToJSON = exports.PatchedDomainRequestFromJSONTyped = exports.PatchedDomainRequestFromJSON = exports.instanceOfPatchedDomainRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PatchedDomainRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPatchedDomainRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfPatchedDomainRequest = instanceOfPatchedDomainRequest;
|
|
26
|
+
function PatchedDomainRequestFromJSON(json) {
|
|
27
|
+
return PatchedDomainRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.PatchedDomainRequestFromJSON = PatchedDomainRequestFromJSON;
|
|
30
|
+
function PatchedDomainRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'domain': !(0, runtime_1.exists)(json, 'domain') ? undefined : json['domain'],
|
|
36
|
+
'isPrimary': !(0, runtime_1.exists)(json, 'is_primary') ? undefined : json['is_primary'],
|
|
37
|
+
'tenant': !(0, runtime_1.exists)(json, 'tenant') ? undefined : json['tenant'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.PatchedDomainRequestFromJSONTyped = PatchedDomainRequestFromJSONTyped;
|
|
41
|
+
function PatchedDomainRequestToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'domain': value.domain,
|
|
50
|
+
'is_primary': value.isPrimary,
|
|
51
|
+
'tenant': value.tenant,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.PatchedDomainRequestToJSON = PatchedDomainRequestToJSON;
|
|
@@ -39,7 +39,7 @@ function PatchedEventRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'context': !(0, runtime_1.exists)(json, 'context') ? undefined : json['context'],
|
|
40
40
|
'clientIp': !(0, runtime_1.exists)(json, 'client_ip') ? undefined : json['client_ip'],
|
|
41
41
|
'expires': !(0, runtime_1.exists)(json, 'expires') ? undefined : (new Date(json['expires'])),
|
|
42
|
-
'
|
|
42
|
+
'brand': !(0, runtime_1.exists)(json, 'brand') ? undefined : json['brand'],
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
exports.PatchedEventRequestFromJSONTyped = PatchedEventRequestFromJSONTyped;
|
|
@@ -57,7 +57,7 @@ function PatchedEventRequestToJSON(value) {
|
|
|
57
57
|
'context': value.context,
|
|
58
58
|
'client_ip': value.clientIp,
|
|
59
59
|
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
|
60
|
-
'
|
|
60
|
+
'brand': value.brand,
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
exports.PatchedEventRequestToJSON = PatchedEventRequestToJSON;
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
* Settings Serializer
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PatchedSettingsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PatchedSettingsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Configure how authentik should show avatars for users.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PatchedSettingsRequest
|
|
22
|
+
*/
|
|
23
|
+
avatars?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Enable the ability for users to change their name.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof PatchedSettingsRequest
|
|
28
|
+
*/
|
|
29
|
+
defaultUserChangeName?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Enable the ability for users to change their email address.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof PatchedSettingsRequest
|
|
34
|
+
*/
|
|
35
|
+
defaultUserChangeEmail?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Enable the ability for users to change their username.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof PatchedSettingsRequest
|
|
40
|
+
*/
|
|
41
|
+
defaultUserChangeUsername?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Events will be deleted after this duration.(Format: weeks=3;days=2;hours=3,seconds=2).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PatchedSettingsRequest
|
|
46
|
+
*/
|
|
47
|
+
eventRetention?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The option configures the footer links on the flow executor pages.
|
|
50
|
+
* @type {any}
|
|
51
|
+
* @memberof PatchedSettingsRequest
|
|
52
|
+
*/
|
|
53
|
+
footerLinks?: any | null;
|
|
54
|
+
/**
|
|
55
|
+
* When enabled, all the events caused by a user will be deleted upon the user's deletion.
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof PatchedSettingsRequest
|
|
58
|
+
*/
|
|
59
|
+
gdprCompliance?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Globally enable/disable impersonation.
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof PatchedSettingsRequest
|
|
64
|
+
*/
|
|
65
|
+
impersonation?: boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the PatchedSettingsRequest interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfPatchedSettingsRequest(value: object): boolean;
|
|
71
|
+
export declare function PatchedSettingsRequestFromJSON(json: any): PatchedSettingsRequest;
|
|
72
|
+
export declare function PatchedSettingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSettingsRequest;
|
|
73
|
+
export declare function PatchedSettingsRequestToJSON(value?: PatchedSettingsRequest | null): any;
|