@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.
Files changed (165) hide show
  1. package/.openapi-generator/FILES +16 -1
  2. package/dist/apis/AdminApi.d.ts +31 -1
  3. package/dist/apis/AdminApi.js +88 -0
  4. package/dist/apis/CoreApi.d.ts +104 -105
  5. package/dist/apis/CoreApi.js +228 -231
  6. package/dist/apis/EventsApi.d.ts +2 -2
  7. package/dist/apis/EventsApi.js +6 -6
  8. package/dist/apis/PropertymappingsApi.d.ts +1 -1
  9. package/dist/apis/PropertymappingsApi.js +1 -1
  10. package/dist/apis/RbacApi.d.ts +4 -2
  11. package/dist/apis/RbacApi.js +4 -2
  12. package/dist/apis/TenantsApi.d.ts +184 -0
  13. package/dist/apis/TenantsApi.js +468 -0
  14. package/dist/apis/index.d.ts +1 -0
  15. package/dist/apis/index.js +1 -0
  16. package/dist/esm/apis/AdminApi.d.ts +31 -1
  17. package/dist/esm/apis/AdminApi.js +89 -1
  18. package/dist/esm/apis/CoreApi.d.ts +104 -105
  19. package/dist/esm/apis/CoreApi.js +229 -232
  20. package/dist/esm/apis/EventsApi.d.ts +2 -2
  21. package/dist/esm/apis/EventsApi.js +6 -6
  22. package/dist/esm/apis/PropertymappingsApi.d.ts +1 -1
  23. package/dist/esm/apis/PropertymappingsApi.js +1 -1
  24. package/dist/esm/apis/RbacApi.d.ts +4 -2
  25. package/dist/esm/apis/RbacApi.js +4 -2
  26. package/dist/esm/apis/TenantsApi.d.ts +184 -0
  27. package/dist/esm/apis/TenantsApi.js +464 -0
  28. package/dist/esm/apis/index.d.ts +1 -0
  29. package/dist/esm/apis/index.js +1 -0
  30. package/dist/esm/models/AppEnum.d.ts +4 -2
  31. package/dist/esm/models/AppEnum.js +4 -2
  32. package/dist/esm/models/Brand.d.ts +109 -0
  33. package/dist/esm/models/Brand.js +70 -0
  34. package/dist/esm/models/BrandRequest.d.ts +103 -0
  35. package/dist/esm/models/BrandRequest.js +68 -0
  36. package/dist/esm/models/{CurrentTenant.d.ts → CurrentBrand.d.ts} +21 -21
  37. package/dist/esm/models/{CurrentTenant.js → CurrentBrand.js} +6 -6
  38. package/dist/esm/models/Domain.d.ts +49 -0
  39. package/dist/esm/models/Domain.js +51 -0
  40. package/dist/esm/models/DomainRequest.d.ts +43 -0
  41. package/dist/esm/models/DomainRequest.js +49 -0
  42. package/dist/esm/models/Event.d.ts +1 -1
  43. package/dist/esm/models/Event.js +2 -2
  44. package/dist/esm/models/EventRequest.d.ts +1 -1
  45. package/dist/esm/models/EventRequest.js +2 -2
  46. package/dist/esm/models/ModelEnum.d.ts +4 -2
  47. package/dist/esm/models/ModelEnum.js +4 -2
  48. package/dist/esm/models/PaginatedBrandList.d.ts +39 -0
  49. package/dist/esm/models/PaginatedBrandList.js +48 -0
  50. package/dist/esm/models/PaginatedDomainList.d.ts +39 -0
  51. package/dist/esm/models/PaginatedDomainList.js +48 -0
  52. package/dist/esm/models/PatchedBrandRequest.d.ts +103 -0
  53. package/dist/esm/models/PatchedBrandRequest.js +67 -0
  54. package/dist/esm/models/PatchedDomainRequest.d.ts +43 -0
  55. package/dist/esm/models/PatchedDomainRequest.js +47 -0
  56. package/dist/esm/models/PatchedEventRequest.d.ts +1 -1
  57. package/dist/esm/models/PatchedEventRequest.js +2 -2
  58. package/dist/esm/models/PatchedSettingsRequest.d.ts +73 -0
  59. package/dist/esm/models/PatchedSettingsRequest.js +57 -0
  60. package/dist/esm/models/PatchedTenantRequest.d.ts +4 -70
  61. package/dist/esm/models/PatchedTenantRequest.js +6 -28
  62. package/dist/esm/models/Settings.d.ts +73 -0
  63. package/dist/esm/models/Settings.js +57 -0
  64. package/dist/esm/models/SettingsRequest.d.ts +73 -0
  65. package/dist/esm/models/SettingsRequest.js +57 -0
  66. package/dist/esm/models/SystemInfo.d.ts +8 -2
  67. package/dist/esm/models/SystemInfo.js +4 -2
  68. package/dist/esm/models/Tenant.d.ts +4 -70
  69. package/dist/esm/models/Tenant.js +8 -29
  70. package/dist/esm/models/TenantAdminGroupRequestRequest.d.ts +31 -0
  71. package/dist/esm/models/TenantAdminGroupRequestRequest.js +43 -0
  72. package/dist/esm/models/TenantRecoveryKeyRequestRequest.d.ts +37 -0
  73. package/dist/esm/models/TenantRecoveryKeyRequestRequest.js +46 -0
  74. package/dist/esm/models/TenantRecoveryKeyResponse.d.ts +37 -0
  75. package/dist/esm/models/TenantRecoveryKeyResponse.js +46 -0
  76. package/dist/esm/models/TenantRequest.d.ts +4 -70
  77. package/dist/esm/models/TenantRequest.js +8 -29
  78. package/dist/esm/models/UserSelf.d.ts +1 -1
  79. package/dist/esm/models/index.d.ts +15 -1
  80. package/dist/esm/models/index.js +15 -1
  81. package/dist/models/AppEnum.d.ts +4 -2
  82. package/dist/models/AppEnum.js +4 -2
  83. package/dist/models/Brand.d.ts +109 -0
  84. package/dist/models/Brand.js +77 -0
  85. package/dist/models/BrandRequest.d.ts +103 -0
  86. package/dist/models/BrandRequest.js +75 -0
  87. package/dist/models/{CurrentTenant.d.ts → CurrentBrand.d.ts} +21 -21
  88. package/dist/models/{CurrentTenant.js → CurrentBrand.js} +11 -11
  89. package/dist/models/Domain.d.ts +49 -0
  90. package/dist/models/Domain.js +58 -0
  91. package/dist/models/DomainRequest.d.ts +43 -0
  92. package/dist/models/DomainRequest.js +56 -0
  93. package/dist/models/Event.d.ts +1 -1
  94. package/dist/models/Event.js +2 -2
  95. package/dist/models/EventRequest.d.ts +1 -1
  96. package/dist/models/EventRequest.js +2 -2
  97. package/dist/models/ModelEnum.d.ts +4 -2
  98. package/dist/models/ModelEnum.js +4 -2
  99. package/dist/models/PaginatedBrandList.d.ts +39 -0
  100. package/dist/models/PaginatedBrandList.js +55 -0
  101. package/dist/models/PaginatedDomainList.d.ts +39 -0
  102. package/dist/models/PaginatedDomainList.js +55 -0
  103. package/dist/models/PatchedBrandRequest.d.ts +103 -0
  104. package/dist/models/PatchedBrandRequest.js +74 -0
  105. package/dist/models/PatchedDomainRequest.d.ts +43 -0
  106. package/dist/models/PatchedDomainRequest.js +54 -0
  107. package/dist/models/PatchedEventRequest.d.ts +1 -1
  108. package/dist/models/PatchedEventRequest.js +2 -2
  109. package/dist/models/PatchedSettingsRequest.d.ts +73 -0
  110. package/dist/models/PatchedSettingsRequest.js +64 -0
  111. package/dist/models/PatchedTenantRequest.d.ts +4 -70
  112. package/dist/models/PatchedTenantRequest.js +6 -28
  113. package/dist/models/Settings.d.ts +73 -0
  114. package/dist/models/Settings.js +64 -0
  115. package/dist/models/SettingsRequest.d.ts +73 -0
  116. package/dist/models/SettingsRequest.js +64 -0
  117. package/dist/models/SystemInfo.d.ts +8 -2
  118. package/dist/models/SystemInfo.js +4 -2
  119. package/dist/models/Tenant.d.ts +4 -70
  120. package/dist/models/Tenant.js +8 -29
  121. package/dist/models/TenantAdminGroupRequestRequest.d.ts +31 -0
  122. package/dist/models/TenantAdminGroupRequestRequest.js +50 -0
  123. package/dist/models/TenantRecoveryKeyRequestRequest.d.ts +37 -0
  124. package/dist/models/TenantRecoveryKeyRequestRequest.js +53 -0
  125. package/dist/models/TenantRecoveryKeyResponse.d.ts +37 -0
  126. package/dist/models/TenantRecoveryKeyResponse.js +53 -0
  127. package/dist/models/TenantRequest.d.ts +4 -70
  128. package/dist/models/TenantRequest.js +8 -29
  129. package/dist/models/UserSelf.d.ts +1 -1
  130. package/dist/models/index.d.ts +15 -1
  131. package/dist/models/index.js +15 -1
  132. package/package.json +1 -1
  133. package/src/apis/AdminApi.ts +113 -0
  134. package/src/apis/CoreApi.ts +304 -309
  135. package/src/apis/EventsApi.ts +10 -10
  136. package/src/apis/PropertymappingsApi.ts +2 -2
  137. package/src/apis/RbacApi.ts +4 -2
  138. package/src/apis/TenantsApi.ts +615 -0
  139. package/src/apis/index.ts +1 -0
  140. package/src/models/AppEnum.ts +4 -2
  141. package/src/models/Brand.ts +170 -0
  142. package/src/models/BrandRequest.ts +162 -0
  143. package/src/models/{CurrentTenant.ts → CurrentBrand.ts} +22 -22
  144. package/src/models/Domain.ts +91 -0
  145. package/src/models/DomainRequest.ts +83 -0
  146. package/src/models/Event.ts +3 -3
  147. package/src/models/EventRequest.ts +3 -3
  148. package/src/models/ModelEnum.ts +4 -2
  149. package/src/models/PaginatedBrandList.ts +88 -0
  150. package/src/models/PaginatedDomainList.ts +88 -0
  151. package/src/models/PatchedBrandRequest.ts +161 -0
  152. package/src/models/PatchedDomainRequest.ts +81 -0
  153. package/src/models/PatchedEventRequest.ts +3 -3
  154. package/src/models/PatchedSettingsRequest.ts +121 -0
  155. package/src/models/PatchedTenantRequest.ts +10 -98
  156. package/src/models/Settings.ts +121 -0
  157. package/src/models/SettingsRequest.ts +121 -0
  158. package/src/models/SystemInfo.ts +12 -4
  159. package/src/models/Tenant.ts +12 -99
  160. package/src/models/TenantAdminGroupRequestRequest.ts +66 -0
  161. package/src/models/TenantRecoveryKeyRequestRequest.ts +75 -0
  162. package/src/models/TenantRecoveryKeyResponse.ts +75 -0
  163. package/src/models/TenantRequest.ts +12 -99
  164. package/src/models/UserSelf.ts +1 -1
  165. package/src/models/index.ts +15 -1
@@ -14,6 +14,7 @@
14
14
 
15
15
 
16
16
  /**
17
+ * * `authentik_tenants.domain` - Domain
17
18
  * * `authentik_crypto.certificatekeypair` - Certificate-Key Pair
18
19
  * * `authentik_events.event` - Event
19
20
  * * `authentik_events.notificationtransport` - Notification Transport
@@ -81,7 +82,7 @@
81
82
  * * `authentik_stages_user_login.userloginstage` - User Login Stage
82
83
  * * `authentik_stages_user_logout.userlogoutstage` - User Logout Stage
83
84
  * * `authentik_stages_user_write.userwritestage` - User Write Stage
84
- * * `authentik_tenants.tenant` - Tenant
85
+ * * `authentik_brands.brand` - Brand
85
86
  * * `authentik_blueprints.blueprintinstance` - Blueprint Instance
86
87
  * * `authentik_core.group` - Group
87
88
  * * `authentik_core.user` - User
@@ -94,6 +95,7 @@
94
95
  * @export
95
96
  */
96
97
  export const ModelEnum = {
98
+ TenantsDomain: 'authentik_tenants.domain',
97
99
  CryptoCertificatekeypair: 'authentik_crypto.certificatekeypair',
98
100
  EventsEvent: 'authentik_events.event',
99
101
  EventsNotificationtransport: 'authentik_events.notificationtransport',
@@ -161,7 +163,7 @@ export const ModelEnum = {
161
163
  StagesUserLoginUserloginstage: 'authentik_stages_user_login.userloginstage',
162
164
  StagesUserLogoutUserlogoutstage: 'authentik_stages_user_logout.userlogoutstage',
163
165
  StagesUserWriteUserwritestage: 'authentik_stages_user_write.userwritestage',
164
- TenantsTenant: 'authentik_tenants.tenant',
166
+ BrandsBrand: 'authentik_brands.brand',
165
167
  BlueprintsBlueprintinstance: 'authentik_blueprints.blueprintinstance',
166
168
  CoreGroup: 'authentik_core.group',
167
169
  CoreUser: 'authentik_core.user',
@@ -0,0 +1,88 @@
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
+ import type { Brand } from './Brand';
17
+ import {
18
+ BrandFromJSON,
19
+ BrandFromJSONTyped,
20
+ BrandToJSON,
21
+ } from './Brand';
22
+ import type { Pagination } from './Pagination';
23
+ import {
24
+ PaginationFromJSON,
25
+ PaginationFromJSONTyped,
26
+ PaginationToJSON,
27
+ } from './Pagination';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedBrandList
33
+ */
34
+ export interface PaginatedBrandList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedBrandList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<Brand>}
44
+ * @memberof PaginatedBrandList
45
+ */
46
+ results: Array<Brand>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedBrandList interface.
51
+ */
52
+ export function instanceOfPaginatedBrandList(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "pagination" in value;
55
+ isInstance = isInstance && "results" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function PaginatedBrandListFromJSON(json: any): PaginatedBrandList {
61
+ return PaginatedBrandListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedBrandListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBrandList {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(BrandFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedBrandListToJSON(value?: PaginatedBrandList | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'pagination': PaginationToJSON(value.pagination),
85
+ 'results': ((value.results as Array<any>).map(BrandToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,88 @@
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
+ import type { Domain } from './Domain';
17
+ import {
18
+ DomainFromJSON,
19
+ DomainFromJSONTyped,
20
+ DomainToJSON,
21
+ } from './Domain';
22
+ import type { Pagination } from './Pagination';
23
+ import {
24
+ PaginationFromJSON,
25
+ PaginationFromJSONTyped,
26
+ PaginationToJSON,
27
+ } from './Pagination';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedDomainList
33
+ */
34
+ export interface PaginatedDomainList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedDomainList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<Domain>}
44
+ * @memberof PaginatedDomainList
45
+ */
46
+ results: Array<Domain>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedDomainList interface.
51
+ */
52
+ export function instanceOfPaginatedDomainList(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "pagination" in value;
55
+ isInstance = isInstance && "results" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function PaginatedDomainListFromJSON(json: any): PaginatedDomainList {
61
+ return PaginatedDomainListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedDomainListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedDomainList {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(DomainFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedDomainListToJSON(value?: PaginatedDomainList | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'pagination': PaginationToJSON(value.pagination),
85
+ 'results': ((value.results as Array<any>).map(DomainToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,161 @@
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 PatchedBrandRequest
20
+ */
21
+ export interface PatchedBrandRequest {
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 PatchedBrandRequest
26
+ */
27
+ domain?: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof PatchedBrandRequest
32
+ */
33
+ _default?: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedBrandRequest
38
+ */
39
+ brandingTitle?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PatchedBrandRequest
44
+ */
45
+ brandingLogo?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof PatchedBrandRequest
50
+ */
51
+ brandingFavicon?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof PatchedBrandRequest
56
+ */
57
+ flowAuthentication?: string | null;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof PatchedBrandRequest
62
+ */
63
+ flowInvalidation?: string | null;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof PatchedBrandRequest
68
+ */
69
+ flowRecovery?: string | null;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof PatchedBrandRequest
74
+ */
75
+ flowUnenrollment?: string | null;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof PatchedBrandRequest
80
+ */
81
+ flowUserSettings?: string | null;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof PatchedBrandRequest
86
+ */
87
+ flowDeviceCode?: string | null;
88
+ /**
89
+ * Web Certificate used by the authentik Core webserver.
90
+ * @type {string}
91
+ * @memberof PatchedBrandRequest
92
+ */
93
+ webCertificate?: string | null;
94
+ /**
95
+ *
96
+ * @type {any}
97
+ * @memberof PatchedBrandRequest
98
+ */
99
+ attributes?: any | null;
100
+ }
101
+
102
+ /**
103
+ * Check if a given object implements the PatchedBrandRequest interface.
104
+ */
105
+ export function instanceOfPatchedBrandRequest(value: object): boolean {
106
+ let isInstance = true;
107
+
108
+ return isInstance;
109
+ }
110
+
111
+ export function PatchedBrandRequestFromJSON(json: any): PatchedBrandRequest {
112
+ return PatchedBrandRequestFromJSONTyped(json, false);
113
+ }
114
+
115
+ export function PatchedBrandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedBrandRequest {
116
+ if ((json === undefined) || (json === null)) {
117
+ return json;
118
+ }
119
+ return {
120
+
121
+ 'domain': !exists(json, 'domain') ? undefined : json['domain'],
122
+ '_default': !exists(json, 'default') ? undefined : json['default'],
123
+ 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],
124
+ 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],
125
+ 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],
126
+ 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],
127
+ 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
128
+ 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
129
+ 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
130
+ 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
131
+ 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
132
+ 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
133
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
134
+ };
135
+ }
136
+
137
+ export function PatchedBrandRequestToJSON(value?: PatchedBrandRequest | null): any {
138
+ if (value === undefined) {
139
+ return undefined;
140
+ }
141
+ if (value === null) {
142
+ return null;
143
+ }
144
+ return {
145
+
146
+ 'domain': value.domain,
147
+ 'default': value._default,
148
+ 'branding_title': value.brandingTitle,
149
+ 'branding_logo': value.brandingLogo,
150
+ 'branding_favicon': value.brandingFavicon,
151
+ 'flow_authentication': value.flowAuthentication,
152
+ 'flow_invalidation': value.flowInvalidation,
153
+ 'flow_recovery': value.flowRecovery,
154
+ 'flow_unenrollment': value.flowUnenrollment,
155
+ 'flow_user_settings': value.flowUserSettings,
156
+ 'flow_device_code': value.flowDeviceCode,
157
+ 'web_certificate': value.webCertificate,
158
+ 'attributes': value.attributes,
159
+ };
160
+ }
161
+
@@ -0,0 +1,81 @@
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 PatchedDomainRequest
20
+ */
21
+ export interface PatchedDomainRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PatchedDomainRequest
26
+ */
27
+ domain?: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof PatchedDomainRequest
32
+ */
33
+ isPrimary?: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedDomainRequest
38
+ */
39
+ tenant?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PatchedDomainRequest interface.
44
+ */
45
+ export function instanceOfPatchedDomainRequest(value: object): boolean {
46
+ let isInstance = true;
47
+
48
+ return isInstance;
49
+ }
50
+
51
+ export function PatchedDomainRequestFromJSON(json: any): PatchedDomainRequest {
52
+ return PatchedDomainRequestFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function PatchedDomainRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedDomainRequest {
56
+ if ((json === undefined) || (json === null)) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'domain': !exists(json, 'domain') ? undefined : json['domain'],
62
+ 'isPrimary': !exists(json, 'is_primary') ? undefined : json['is_primary'],
63
+ 'tenant': !exists(json, 'tenant') ? undefined : json['tenant'],
64
+ };
65
+ }
66
+
67
+ export function PatchedDomainRequestToJSON(value?: PatchedDomainRequest | null): any {
68
+ if (value === undefined) {
69
+ return undefined;
70
+ }
71
+ if (value === null) {
72
+ return null;
73
+ }
74
+ return {
75
+
76
+ 'domain': value.domain,
77
+ 'is_primary': value.isPrimary,
78
+ 'tenant': value.tenant,
79
+ };
80
+ }
81
+
@@ -67,7 +67,7 @@ export interface PatchedEventRequest {
67
67
  * @type {any}
68
68
  * @memberof PatchedEventRequest
69
69
  */
70
- tenant?: any | null;
70
+ brand?: any | null;
71
71
  }
72
72
 
73
73
  /**
@@ -95,7 +95,7 @@ export function PatchedEventRequestFromJSONTyped(json: any, ignoreDiscriminator:
95
95
  'context': !exists(json, 'context') ? undefined : json['context'],
96
96
  'clientIp': !exists(json, 'client_ip') ? undefined : json['client_ip'],
97
97
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
98
- 'tenant': !exists(json, 'tenant') ? undefined : json['tenant'],
98
+ 'brand': !exists(json, 'brand') ? undefined : json['brand'],
99
99
  };
100
100
  }
101
101
 
@@ -114,7 +114,7 @@ export function PatchedEventRequestToJSON(value?: PatchedEventRequest | null): a
114
114
  'context': value.context,
115
115
  'client_ip': value.clientIp,
116
116
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
117
- 'tenant': value.tenant,
117
+ 'brand': value.brand,
118
118
  };
119
119
  }
120
120
 
@@ -0,0 +1,121 @@
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
+ * Settings Serializer
18
+ * @export
19
+ * @interface PatchedSettingsRequest
20
+ */
21
+ export interface PatchedSettingsRequest {
22
+ /**
23
+ * Configure how authentik should show avatars for users.
24
+ * @type {string}
25
+ * @memberof PatchedSettingsRequest
26
+ */
27
+ avatars?: string;
28
+ /**
29
+ * Enable the ability for users to change their name.
30
+ * @type {boolean}
31
+ * @memberof PatchedSettingsRequest
32
+ */
33
+ defaultUserChangeName?: boolean;
34
+ /**
35
+ * Enable the ability for users to change their email address.
36
+ * @type {boolean}
37
+ * @memberof PatchedSettingsRequest
38
+ */
39
+ defaultUserChangeEmail?: boolean;
40
+ /**
41
+ * Enable the ability for users to change their username.
42
+ * @type {boolean}
43
+ * @memberof PatchedSettingsRequest
44
+ */
45
+ defaultUserChangeUsername?: boolean;
46
+ /**
47
+ * Events will be deleted after this duration.(Format: weeks=3;days=2;hours=3,seconds=2).
48
+ * @type {string}
49
+ * @memberof PatchedSettingsRequest
50
+ */
51
+ eventRetention?: string;
52
+ /**
53
+ * The option configures the footer links on the flow executor pages.
54
+ * @type {any}
55
+ * @memberof PatchedSettingsRequest
56
+ */
57
+ footerLinks?: any | null;
58
+ /**
59
+ * When enabled, all the events caused by a user will be deleted upon the user's deletion.
60
+ * @type {boolean}
61
+ * @memberof PatchedSettingsRequest
62
+ */
63
+ gdprCompliance?: boolean;
64
+ /**
65
+ * Globally enable/disable impersonation.
66
+ * @type {boolean}
67
+ * @memberof PatchedSettingsRequest
68
+ */
69
+ impersonation?: boolean;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the PatchedSettingsRequest interface.
74
+ */
75
+ export function instanceOfPatchedSettingsRequest(value: object): boolean {
76
+ let isInstance = true;
77
+
78
+ return isInstance;
79
+ }
80
+
81
+ export function PatchedSettingsRequestFromJSON(json: any): PatchedSettingsRequest {
82
+ return PatchedSettingsRequestFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function PatchedSettingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSettingsRequest {
86
+ if ((json === undefined) || (json === null)) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'avatars': !exists(json, 'avatars') ? undefined : json['avatars'],
92
+ 'defaultUserChangeName': !exists(json, 'default_user_change_name') ? undefined : json['default_user_change_name'],
93
+ 'defaultUserChangeEmail': !exists(json, 'default_user_change_email') ? undefined : json['default_user_change_email'],
94
+ 'defaultUserChangeUsername': !exists(json, 'default_user_change_username') ? undefined : json['default_user_change_username'],
95
+ 'eventRetention': !exists(json, 'event_retention') ? undefined : json['event_retention'],
96
+ 'footerLinks': !exists(json, 'footer_links') ? undefined : json['footer_links'],
97
+ 'gdprCompliance': !exists(json, 'gdpr_compliance') ? undefined : json['gdpr_compliance'],
98
+ 'impersonation': !exists(json, 'impersonation') ? undefined : json['impersonation'],
99
+ };
100
+ }
101
+
102
+ export function PatchedSettingsRequestToJSON(value?: PatchedSettingsRequest | null): any {
103
+ if (value === undefined) {
104
+ return undefined;
105
+ }
106
+ if (value === null) {
107
+ return null;
108
+ }
109
+ return {
110
+
111
+ 'avatars': value.avatars,
112
+ 'default_user_change_name': value.defaultUserChangeName,
113
+ 'default_user_change_email': value.defaultUserChangeEmail,
114
+ 'default_user_change_username': value.defaultUserChangeUsername,
115
+ 'event_retention': value.eventRetention,
116
+ 'footer_links': value.footerLinks,
117
+ 'gdpr_compliance': value.gdprCompliance,
118
+ 'impersonation': value.impersonation,
119
+ };
120
+ }
121
+