@goauthentik/api 2023.10.6-1705263684 → 2023.10.6-1706016512

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) 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/RbacApi.d.ts +4 -2
  9. package/dist/apis/RbacApi.js +4 -2
  10. package/dist/apis/TenantsApi.d.ts +184 -0
  11. package/dist/apis/TenantsApi.js +468 -0
  12. package/dist/apis/index.d.ts +1 -0
  13. package/dist/apis/index.js +1 -0
  14. package/dist/esm/apis/AdminApi.d.ts +31 -1
  15. package/dist/esm/apis/AdminApi.js +89 -1
  16. package/dist/esm/apis/CoreApi.d.ts +104 -105
  17. package/dist/esm/apis/CoreApi.js +229 -232
  18. package/dist/esm/apis/EventsApi.d.ts +2 -2
  19. package/dist/esm/apis/EventsApi.js +6 -6
  20. package/dist/esm/apis/RbacApi.d.ts +4 -2
  21. package/dist/esm/apis/RbacApi.js +4 -2
  22. package/dist/esm/apis/TenantsApi.d.ts +184 -0
  23. package/dist/esm/apis/TenantsApi.js +464 -0
  24. package/dist/esm/apis/index.d.ts +1 -0
  25. package/dist/esm/apis/index.js +1 -0
  26. package/dist/esm/models/AppEnum.d.ts +4 -2
  27. package/dist/esm/models/AppEnum.js +4 -2
  28. package/dist/esm/models/Brand.d.ts +109 -0
  29. package/dist/esm/models/Brand.js +70 -0
  30. package/dist/esm/models/BrandRequest.d.ts +103 -0
  31. package/dist/esm/models/BrandRequest.js +68 -0
  32. package/dist/esm/models/{CurrentTenant.d.ts → CurrentBrand.d.ts} +21 -21
  33. package/dist/esm/models/{CurrentTenant.js → CurrentBrand.js} +6 -6
  34. package/dist/esm/models/Domain.d.ts +49 -0
  35. package/dist/esm/models/Domain.js +51 -0
  36. package/dist/esm/models/DomainRequest.d.ts +43 -0
  37. package/dist/esm/models/DomainRequest.js +49 -0
  38. package/dist/esm/models/Event.d.ts +1 -1
  39. package/dist/esm/models/Event.js +2 -2
  40. package/dist/esm/models/EventRequest.d.ts +1 -1
  41. package/dist/esm/models/EventRequest.js +2 -2
  42. package/dist/esm/models/ModelEnum.d.ts +4 -2
  43. package/dist/esm/models/ModelEnum.js +4 -2
  44. package/dist/esm/models/PaginatedBrandList.d.ts +39 -0
  45. package/dist/esm/models/PaginatedBrandList.js +48 -0
  46. package/dist/esm/models/PaginatedDomainList.d.ts +39 -0
  47. package/dist/esm/models/PaginatedDomainList.js +48 -0
  48. package/dist/esm/models/PatchedBrandRequest.d.ts +103 -0
  49. package/dist/esm/models/PatchedBrandRequest.js +67 -0
  50. package/dist/esm/models/PatchedDomainRequest.d.ts +43 -0
  51. package/dist/esm/models/PatchedDomainRequest.js +47 -0
  52. package/dist/esm/models/PatchedEventRequest.d.ts +1 -1
  53. package/dist/esm/models/PatchedEventRequest.js +2 -2
  54. package/dist/esm/models/PatchedSettingsRequest.d.ts +73 -0
  55. package/dist/esm/models/PatchedSettingsRequest.js +57 -0
  56. package/dist/esm/models/PatchedTenantRequest.d.ts +4 -70
  57. package/dist/esm/models/PatchedTenantRequest.js +6 -28
  58. package/dist/esm/models/Settings.d.ts +73 -0
  59. package/dist/esm/models/Settings.js +57 -0
  60. package/dist/esm/models/SettingsRequest.d.ts +73 -0
  61. package/dist/esm/models/SettingsRequest.js +57 -0
  62. package/dist/esm/models/SystemInfo.d.ts +8 -2
  63. package/dist/esm/models/SystemInfo.js +4 -2
  64. package/dist/esm/models/Tenant.d.ts +4 -70
  65. package/dist/esm/models/Tenant.js +8 -29
  66. package/dist/esm/models/TenantAdminGroupRequestRequest.d.ts +31 -0
  67. package/dist/esm/models/TenantAdminGroupRequestRequest.js +43 -0
  68. package/dist/esm/models/TenantRecoveryKeyRequestRequest.d.ts +37 -0
  69. package/dist/esm/models/TenantRecoveryKeyRequestRequest.js +46 -0
  70. package/dist/esm/models/TenantRecoveryKeyResponse.d.ts +37 -0
  71. package/dist/esm/models/TenantRecoveryKeyResponse.js +46 -0
  72. package/dist/esm/models/TenantRequest.d.ts +4 -70
  73. package/dist/esm/models/TenantRequest.js +8 -29
  74. package/dist/esm/models/UserSelf.d.ts +1 -1
  75. package/dist/esm/models/index.d.ts +15 -1
  76. package/dist/esm/models/index.js +15 -1
  77. package/dist/models/AppEnum.d.ts +4 -2
  78. package/dist/models/AppEnum.js +4 -2
  79. package/dist/models/Brand.d.ts +109 -0
  80. package/dist/models/Brand.js +77 -0
  81. package/dist/models/BrandRequest.d.ts +103 -0
  82. package/dist/models/BrandRequest.js +75 -0
  83. package/dist/models/{CurrentTenant.d.ts → CurrentBrand.d.ts} +21 -21
  84. package/dist/models/{CurrentTenant.js → CurrentBrand.js} +11 -11
  85. package/dist/models/Domain.d.ts +49 -0
  86. package/dist/models/Domain.js +58 -0
  87. package/dist/models/DomainRequest.d.ts +43 -0
  88. package/dist/models/DomainRequest.js +56 -0
  89. package/dist/models/Event.d.ts +1 -1
  90. package/dist/models/Event.js +2 -2
  91. package/dist/models/EventRequest.d.ts +1 -1
  92. package/dist/models/EventRequest.js +2 -2
  93. package/dist/models/ModelEnum.d.ts +4 -2
  94. package/dist/models/ModelEnum.js +4 -2
  95. package/dist/models/PaginatedBrandList.d.ts +39 -0
  96. package/dist/models/PaginatedBrandList.js +55 -0
  97. package/dist/models/PaginatedDomainList.d.ts +39 -0
  98. package/dist/models/PaginatedDomainList.js +55 -0
  99. package/dist/models/PatchedBrandRequest.d.ts +103 -0
  100. package/dist/models/PatchedBrandRequest.js +74 -0
  101. package/dist/models/PatchedDomainRequest.d.ts +43 -0
  102. package/dist/models/PatchedDomainRequest.js +54 -0
  103. package/dist/models/PatchedEventRequest.d.ts +1 -1
  104. package/dist/models/PatchedEventRequest.js +2 -2
  105. package/dist/models/PatchedSettingsRequest.d.ts +73 -0
  106. package/dist/models/PatchedSettingsRequest.js +64 -0
  107. package/dist/models/PatchedTenantRequest.d.ts +4 -70
  108. package/dist/models/PatchedTenantRequest.js +6 -28
  109. package/dist/models/Settings.d.ts +73 -0
  110. package/dist/models/Settings.js +64 -0
  111. package/dist/models/SettingsRequest.d.ts +73 -0
  112. package/dist/models/SettingsRequest.js +64 -0
  113. package/dist/models/SystemInfo.d.ts +8 -2
  114. package/dist/models/SystemInfo.js +4 -2
  115. package/dist/models/Tenant.d.ts +4 -70
  116. package/dist/models/Tenant.js +8 -29
  117. package/dist/models/TenantAdminGroupRequestRequest.d.ts +31 -0
  118. package/dist/models/TenantAdminGroupRequestRequest.js +50 -0
  119. package/dist/models/TenantRecoveryKeyRequestRequest.d.ts +37 -0
  120. package/dist/models/TenantRecoveryKeyRequestRequest.js +53 -0
  121. package/dist/models/TenantRecoveryKeyResponse.d.ts +37 -0
  122. package/dist/models/TenantRecoveryKeyResponse.js +53 -0
  123. package/dist/models/TenantRequest.d.ts +4 -70
  124. package/dist/models/TenantRequest.js +8 -29
  125. package/dist/models/UserSelf.d.ts +1 -1
  126. package/dist/models/index.d.ts +15 -1
  127. package/dist/models/index.js +15 -1
  128. package/package.json +1 -1
  129. package/src/apis/AdminApi.ts +113 -0
  130. package/src/apis/CoreApi.ts +304 -309
  131. package/src/apis/EventsApi.ts +10 -10
  132. package/src/apis/RbacApi.ts +4 -2
  133. package/src/apis/TenantsApi.ts +615 -0
  134. package/src/apis/index.ts +1 -0
  135. package/src/models/AppEnum.ts +4 -2
  136. package/src/models/Brand.ts +170 -0
  137. package/src/models/BrandRequest.ts +162 -0
  138. package/src/models/{CurrentTenant.ts → CurrentBrand.ts} +22 -22
  139. package/src/models/Domain.ts +91 -0
  140. package/src/models/DomainRequest.ts +83 -0
  141. package/src/models/Event.ts +3 -3
  142. package/src/models/EventRequest.ts +3 -3
  143. package/src/models/ModelEnum.ts +4 -2
  144. package/src/models/PaginatedBrandList.ts +88 -0
  145. package/src/models/PaginatedDomainList.ts +88 -0
  146. package/src/models/PatchedBrandRequest.ts +161 -0
  147. package/src/models/PatchedDomainRequest.ts +81 -0
  148. package/src/models/PatchedEventRequest.ts +3 -3
  149. package/src/models/PatchedSettingsRequest.ts +121 -0
  150. package/src/models/PatchedTenantRequest.ts +10 -98
  151. package/src/models/Settings.ts +121 -0
  152. package/src/models/SettingsRequest.ts +121 -0
  153. package/src/models/SystemInfo.ts +12 -4
  154. package/src/models/Tenant.ts +12 -99
  155. package/src/models/TenantAdminGroupRequestRequest.ts +66 -0
  156. package/src/models/TenantRecoveryKeyRequestRequest.ts +75 -0
  157. package/src/models/TenantRecoveryKeyResponse.ts +75 -0
  158. package/src/models/TenantRequest.ts +12 -99
  159. package/src/models/UserSelf.ts +1 -1
  160. package/src/models/index.ts +15 -1
@@ -19,90 +19,24 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface PatchedTenantRequest
20
20
  */
21
21
  export interface PatchedTenantRequest {
22
- /**
23
- * Domain that activates this tenant. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
24
- * @type {string}
25
- * @memberof PatchedTenantRequest
26
- */
27
- domain?: string;
28
- /**
29
- *
30
- * @type {boolean}
31
- * @memberof PatchedTenantRequest
32
- */
33
- _default?: boolean;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof PatchedTenantRequest
38
- */
39
- brandingTitle?: string;
40
22
  /**
41
23
  *
42
24
  * @type {string}
43
25
  * @memberof PatchedTenantRequest
44
26
  */
45
- brandingLogo?: string;
27
+ schemaName?: string;
46
28
  /**
47
29
  *
48
30
  * @type {string}
49
31
  * @memberof PatchedTenantRequest
50
32
  */
51
- brandingFavicon?: string;
33
+ name?: string;
52
34
  /**
53
35
  *
54
- * @type {string}
55
- * @memberof PatchedTenantRequest
56
- */
57
- flowAuthentication?: string | null;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof PatchedTenantRequest
62
- */
63
- flowInvalidation?: string | null;
64
- /**
65
- *
66
- * @type {string}
67
- * @memberof PatchedTenantRequest
68
- */
69
- flowRecovery?: string | null;
70
- /**
71
- *
72
- * @type {string}
73
- * @memberof PatchedTenantRequest
74
- */
75
- flowUnenrollment?: string | null;
76
- /**
77
- *
78
- * @type {string}
79
- * @memberof PatchedTenantRequest
80
- */
81
- flowUserSettings?: string | null;
82
- /**
83
- *
84
- * @type {string}
85
- * @memberof PatchedTenantRequest
86
- */
87
- flowDeviceCode?: string | null;
88
- /**
89
- * Events will be deleted after this duration.(Format: weeks=3;days=2;hours=3,seconds=2).
90
- * @type {string}
91
- * @memberof PatchedTenantRequest
92
- */
93
- eventRetention?: string;
94
- /**
95
- * Web Certificate used by the authentik Core webserver.
96
- * @type {string}
97
- * @memberof PatchedTenantRequest
98
- */
99
- webCertificate?: string | null;
100
- /**
101
- *
102
- * @type {any}
36
+ * @type {boolean}
103
37
  * @memberof PatchedTenantRequest
104
38
  */
105
- attributes?: any | null;
39
+ ready?: boolean;
106
40
  }
107
41
 
108
42
  /**
@@ -124,20 +58,9 @@ export function PatchedTenantRequestFromJSONTyped(json: any, ignoreDiscriminator
124
58
  }
125
59
  return {
126
60
 
127
- 'domain': !exists(json, 'domain') ? undefined : json['domain'],
128
- '_default': !exists(json, 'default') ? undefined : json['default'],
129
- 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],
130
- 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],
131
- 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],
132
- 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],
133
- 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
134
- 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
135
- 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
136
- 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
137
- 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
138
- 'eventRetention': !exists(json, 'event_retention') ? undefined : json['event_retention'],
139
- 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
140
- 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
61
+ 'schemaName': !exists(json, 'schema_name') ? undefined : json['schema_name'],
62
+ 'name': !exists(json, 'name') ? undefined : json['name'],
63
+ 'ready': !exists(json, 'ready') ? undefined : json['ready'],
141
64
  };
142
65
  }
143
66
 
@@ -150,20 +73,9 @@ export function PatchedTenantRequestToJSON(value?: PatchedTenantRequest | null):
150
73
  }
151
74
  return {
152
75
 
153
- 'domain': value.domain,
154
- 'default': value._default,
155
- 'branding_title': value.brandingTitle,
156
- 'branding_logo': value.brandingLogo,
157
- 'branding_favicon': value.brandingFavicon,
158
- 'flow_authentication': value.flowAuthentication,
159
- 'flow_invalidation': value.flowInvalidation,
160
- 'flow_recovery': value.flowRecovery,
161
- 'flow_unenrollment': value.flowUnenrollment,
162
- 'flow_user_settings': value.flowUserSettings,
163
- 'flow_device_code': value.flowDeviceCode,
164
- 'event_retention': value.eventRetention,
165
- 'web_certificate': value.webCertificate,
166
- 'attributes': value.attributes,
76
+ 'schema_name': value.schemaName,
77
+ 'name': value.name,
78
+ 'ready': value.ready,
167
79
  };
168
80
  }
169
81
 
@@ -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 Settings
20
+ */
21
+ export interface Settings {
22
+ /**
23
+ * Configure how authentik should show avatars for users.
24
+ * @type {string}
25
+ * @memberof Settings
26
+ */
27
+ avatars?: string;
28
+ /**
29
+ * Enable the ability for users to change their name.
30
+ * @type {boolean}
31
+ * @memberof Settings
32
+ */
33
+ defaultUserChangeName?: boolean;
34
+ /**
35
+ * Enable the ability for users to change their email address.
36
+ * @type {boolean}
37
+ * @memberof Settings
38
+ */
39
+ defaultUserChangeEmail?: boolean;
40
+ /**
41
+ * Enable the ability for users to change their username.
42
+ * @type {boolean}
43
+ * @memberof Settings
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 Settings
50
+ */
51
+ eventRetention?: string;
52
+ /**
53
+ * The option configures the footer links on the flow executor pages.
54
+ * @type {any}
55
+ * @memberof Settings
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 Settings
62
+ */
63
+ gdprCompliance?: boolean;
64
+ /**
65
+ * Globally enable/disable impersonation.
66
+ * @type {boolean}
67
+ * @memberof Settings
68
+ */
69
+ impersonation?: boolean;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the Settings interface.
74
+ */
75
+ export function instanceOfSettings(value: object): boolean {
76
+ let isInstance = true;
77
+
78
+ return isInstance;
79
+ }
80
+
81
+ export function SettingsFromJSON(json: any): Settings {
82
+ return SettingsFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function SettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Settings {
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 SettingsToJSON(value?: Settings | 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
+
@@ -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 SettingsRequest
20
+ */
21
+ export interface SettingsRequest {
22
+ /**
23
+ * Configure how authentik should show avatars for users.
24
+ * @type {string}
25
+ * @memberof SettingsRequest
26
+ */
27
+ avatars?: string;
28
+ /**
29
+ * Enable the ability for users to change their name.
30
+ * @type {boolean}
31
+ * @memberof SettingsRequest
32
+ */
33
+ defaultUserChangeName?: boolean;
34
+ /**
35
+ * Enable the ability for users to change their email address.
36
+ * @type {boolean}
37
+ * @memberof SettingsRequest
38
+ */
39
+ defaultUserChangeEmail?: boolean;
40
+ /**
41
+ * Enable the ability for users to change their username.
42
+ * @type {boolean}
43
+ * @memberof SettingsRequest
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 SettingsRequest
50
+ */
51
+ eventRetention?: string;
52
+ /**
53
+ * The option configures the footer links on the flow executor pages.
54
+ * @type {any}
55
+ * @memberof SettingsRequest
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 SettingsRequest
62
+ */
63
+ gdprCompliance?: boolean;
64
+ /**
65
+ * Globally enable/disable impersonation.
66
+ * @type {boolean}
67
+ * @memberof SettingsRequest
68
+ */
69
+ impersonation?: boolean;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the SettingsRequest interface.
74
+ */
75
+ export function instanceOfSettingsRequest(value: object): boolean {
76
+ let isInstance = true;
77
+
78
+ return isInstance;
79
+ }
80
+
81
+ export function SettingsRequestFromJSON(json: any): SettingsRequest {
82
+ return SettingsRequestFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function SettingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsRequest {
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 SettingsRequestToJSON(value?: SettingsRequest | 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
+
@@ -51,17 +51,23 @@ export interface SystemInfo {
51
51
  */
52
52
  runtime: SystemInfoRuntime;
53
53
  /**
54
- * Currently active tenant
54
+ * Currently active brand
55
55
  * @type {string}
56
56
  * @memberof SystemInfo
57
57
  */
58
- readonly tenant: string;
58
+ readonly brand: string;
59
59
  /**
60
60
  * Current server time
61
61
  * @type {Date}
62
62
  * @memberof SystemInfo
63
63
  */
64
64
  readonly serverTime: Date;
65
+ /**
66
+ * Whether the embedded outpost is disabled
67
+ * @type {boolean}
68
+ * @memberof SystemInfo
69
+ */
70
+ readonly embeddedOutpostDisabled: boolean;
65
71
  /**
66
72
  * Get the FQDN configured on the embedded outpost
67
73
  * @type {string}
@@ -79,8 +85,9 @@ export function instanceOfSystemInfo(value: object): boolean {
79
85
  isInstance = isInstance && "httpHost" in value;
80
86
  isInstance = isInstance && "httpIsSecure" in value;
81
87
  isInstance = isInstance && "runtime" in value;
82
- isInstance = isInstance && "tenant" in value;
88
+ isInstance = isInstance && "brand" in value;
83
89
  isInstance = isInstance && "serverTime" in value;
90
+ isInstance = isInstance && "embeddedOutpostDisabled" in value;
84
91
  isInstance = isInstance && "embeddedOutpostHost" in value;
85
92
 
86
93
  return isInstance;
@@ -100,8 +107,9 @@ export function SystemInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
100
107
  'httpHost': json['http_host'],
101
108
  'httpIsSecure': json['http_is_secure'],
102
109
  'runtime': SystemInfoRuntimeFromJSON(json['runtime']),
103
- 'tenant': json['tenant'],
110
+ 'brand': json['brand'],
104
111
  'serverTime': (new Date(json['server_time'])),
112
+ 'embeddedOutpostDisabled': json['embedded_outpost_disabled'],
105
113
  'embeddedOutpostHost': json['embedded_outpost_host'],
106
114
  };
107
115
  }
@@ -25,90 +25,24 @@ export interface Tenant {
25
25
  * @memberof Tenant
26
26
  */
27
27
  readonly tenantUuid: string;
28
- /**
29
- * Domain that activates this tenant. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
30
- * @type {string}
31
- * @memberof Tenant
32
- */
33
- domain: string;
34
- /**
35
- *
36
- * @type {boolean}
37
- * @memberof Tenant
38
- */
39
- _default?: boolean;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof Tenant
44
- */
45
- brandingTitle?: string;
46
28
  /**
47
29
  *
48
30
  * @type {string}
49
31
  * @memberof Tenant
50
32
  */
51
- brandingLogo?: string;
33
+ schemaName: string;
52
34
  /**
53
35
  *
54
36
  * @type {string}
55
37
  * @memberof Tenant
56
38
  */
57
- brandingFavicon?: string;
39
+ name: string;
58
40
  /**
59
41
  *
60
- * @type {string}
61
- * @memberof Tenant
62
- */
63
- flowAuthentication?: string | null;
64
- /**
65
- *
66
- * @type {string}
67
- * @memberof Tenant
68
- */
69
- flowInvalidation?: string | null;
70
- /**
71
- *
72
- * @type {string}
73
- * @memberof Tenant
74
- */
75
- flowRecovery?: string | null;
76
- /**
77
- *
78
- * @type {string}
79
- * @memberof Tenant
80
- */
81
- flowUnenrollment?: string | null;
82
- /**
83
- *
84
- * @type {string}
85
- * @memberof Tenant
86
- */
87
- flowUserSettings?: string | null;
88
- /**
89
- *
90
- * @type {string}
91
- * @memberof Tenant
92
- */
93
- flowDeviceCode?: string | null;
94
- /**
95
- * Events will be deleted after this duration.(Format: weeks=3;days=2;hours=3,seconds=2).
96
- * @type {string}
97
- * @memberof Tenant
98
- */
99
- eventRetention?: string;
100
- /**
101
- * Web Certificate used by the authentik Core webserver.
102
- * @type {string}
103
- * @memberof Tenant
104
- */
105
- webCertificate?: string | null;
106
- /**
107
- *
108
- * @type {any}
42
+ * @type {boolean}
109
43
  * @memberof Tenant
110
44
  */
111
- attributes?: any | null;
45
+ ready?: boolean;
112
46
  }
113
47
 
114
48
  /**
@@ -117,7 +51,8 @@ export interface Tenant {
117
51
  export function instanceOfTenant(value: object): boolean {
118
52
  let isInstance = true;
119
53
  isInstance = isInstance && "tenantUuid" in value;
120
- isInstance = isInstance && "domain" in value;
54
+ isInstance = isInstance && "schemaName" in value;
55
+ isInstance = isInstance && "name" in value;
121
56
 
122
57
  return isInstance;
123
58
  }
@@ -133,20 +68,9 @@ export function TenantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Te
133
68
  return {
134
69
 
135
70
  'tenantUuid': json['tenant_uuid'],
136
- 'domain': json['domain'],
137
- '_default': !exists(json, 'default') ? undefined : json['default'],
138
- 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],
139
- 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],
140
- 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],
141
- 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],
142
- 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
143
- 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
144
- 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
145
- 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
146
- 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
147
- 'eventRetention': !exists(json, 'event_retention') ? undefined : json['event_retention'],
148
- 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
149
- 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
71
+ 'schemaName': json['schema_name'],
72
+ 'name': json['name'],
73
+ 'ready': !exists(json, 'ready') ? undefined : json['ready'],
150
74
  };
151
75
  }
152
76
 
@@ -159,20 +83,9 @@ export function TenantToJSON(value?: Tenant | null): any {
159
83
  }
160
84
  return {
161
85
 
162
- 'domain': value.domain,
163
- 'default': value._default,
164
- 'branding_title': value.brandingTitle,
165
- 'branding_logo': value.brandingLogo,
166
- 'branding_favicon': value.brandingFavicon,
167
- 'flow_authentication': value.flowAuthentication,
168
- 'flow_invalidation': value.flowInvalidation,
169
- 'flow_recovery': value.flowRecovery,
170
- 'flow_unenrollment': value.flowUnenrollment,
171
- 'flow_user_settings': value.flowUserSettings,
172
- 'flow_device_code': value.flowDeviceCode,
173
- 'event_retention': value.eventRetention,
174
- 'web_certificate': value.webCertificate,
175
- 'attributes': value.attributes,
86
+ 'schema_name': value.schemaName,
87
+ 'name': value.name,
88
+ 'ready': value.ready,
176
89
  };
177
90
  }
178
91
 
@@ -0,0 +1,66 @@
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
+ * Tenant admin group creation request serializer
18
+ * @export
19
+ * @interface TenantAdminGroupRequestRequest
20
+ */
21
+ export interface TenantAdminGroupRequestRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof TenantAdminGroupRequestRequest
26
+ */
27
+ user: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the TenantAdminGroupRequestRequest interface.
32
+ */
33
+ export function instanceOfTenantAdminGroupRequestRequest(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "user" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function TenantAdminGroupRequestRequestFromJSON(json: any): TenantAdminGroupRequestRequest {
41
+ return TenantAdminGroupRequestRequestFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function TenantAdminGroupRequestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantAdminGroupRequestRequest {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'user': json['user'],
51
+ };
52
+ }
53
+
54
+ export function TenantAdminGroupRequestRequestToJSON(value?: TenantAdminGroupRequestRequest | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'user': value.user,
64
+ };
65
+ }
66
+