@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
@@ -0,0 +1,64 @@
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.PatchedSettingsRequestToJSON = exports.PatchedSettingsRequestFromJSONTyped = exports.PatchedSettingsRequestFromJSON = exports.instanceOfPatchedSettingsRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the PatchedSettingsRequest interface.
20
+ */
21
+ function instanceOfPatchedSettingsRequest(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfPatchedSettingsRequest = instanceOfPatchedSettingsRequest;
26
+ function PatchedSettingsRequestFromJSON(json) {
27
+ return PatchedSettingsRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.PatchedSettingsRequestFromJSON = PatchedSettingsRequestFromJSON;
30
+ function PatchedSettingsRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'avatars': !(0, runtime_1.exists)(json, 'avatars') ? undefined : json['avatars'],
36
+ 'defaultUserChangeName': !(0, runtime_1.exists)(json, 'default_user_change_name') ? undefined : json['default_user_change_name'],
37
+ 'defaultUserChangeEmail': !(0, runtime_1.exists)(json, 'default_user_change_email') ? undefined : json['default_user_change_email'],
38
+ 'defaultUserChangeUsername': !(0, runtime_1.exists)(json, 'default_user_change_username') ? undefined : json['default_user_change_username'],
39
+ 'eventRetention': !(0, runtime_1.exists)(json, 'event_retention') ? undefined : json['event_retention'],
40
+ 'footerLinks': !(0, runtime_1.exists)(json, 'footer_links') ? undefined : json['footer_links'],
41
+ 'gdprCompliance': !(0, runtime_1.exists)(json, 'gdpr_compliance') ? undefined : json['gdpr_compliance'],
42
+ 'impersonation': !(0, runtime_1.exists)(json, 'impersonation') ? undefined : json['impersonation'],
43
+ };
44
+ }
45
+ exports.PatchedSettingsRequestFromJSONTyped = PatchedSettingsRequestFromJSONTyped;
46
+ function PatchedSettingsRequestToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'avatars': value.avatars,
55
+ 'default_user_change_name': value.defaultUserChangeName,
56
+ 'default_user_change_email': value.defaultUserChangeEmail,
57
+ 'default_user_change_username': value.defaultUserChangeUsername,
58
+ 'event_retention': value.eventRetention,
59
+ 'footer_links': value.footerLinks,
60
+ 'gdpr_compliance': value.gdprCompliance,
61
+ 'impersonation': value.impersonation,
62
+ };
63
+ }
64
+ exports.PatchedSettingsRequestToJSON = PatchedSettingsRequestToJSON;
@@ -15,90 +15,24 @@
15
15
  * @interface PatchedTenantRequest
16
16
  */
17
17
  export interface PatchedTenantRequest {
18
- /**
19
- * Domain that activates this tenant. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
20
- * @type {string}
21
- * @memberof PatchedTenantRequest
22
- */
23
- domain?: string;
24
- /**
25
- *
26
- * @type {boolean}
27
- * @memberof PatchedTenantRequest
28
- */
29
- _default?: boolean;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof PatchedTenantRequest
34
- */
35
- brandingTitle?: string;
36
18
  /**
37
19
  *
38
20
  * @type {string}
39
21
  * @memberof PatchedTenantRequest
40
22
  */
41
- brandingLogo?: string;
23
+ schemaName?: string;
42
24
  /**
43
25
  *
44
26
  * @type {string}
45
27
  * @memberof PatchedTenantRequest
46
28
  */
47
- brandingFavicon?: string;
29
+ name?: string;
48
30
  /**
49
31
  *
50
- * @type {string}
51
- * @memberof PatchedTenantRequest
52
- */
53
- flowAuthentication?: string | null;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof PatchedTenantRequest
58
- */
59
- flowInvalidation?: string | null;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof PatchedTenantRequest
64
- */
65
- flowRecovery?: string | null;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof PatchedTenantRequest
70
- */
71
- flowUnenrollment?: string | null;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof PatchedTenantRequest
76
- */
77
- flowUserSettings?: string | null;
78
- /**
79
- *
80
- * @type {string}
81
- * @memberof PatchedTenantRequest
82
- */
83
- flowDeviceCode?: string | null;
84
- /**
85
- * Events will be deleted after this duration.(Format: weeks=3;days=2;hours=3,seconds=2).
86
- * @type {string}
87
- * @memberof PatchedTenantRequest
88
- */
89
- eventRetention?: string;
90
- /**
91
- * Web Certificate used by the authentik Core webserver.
92
- * @type {string}
93
- * @memberof PatchedTenantRequest
94
- */
95
- webCertificate?: string | null;
96
- /**
97
- *
98
- * @type {any}
32
+ * @type {boolean}
99
33
  * @memberof PatchedTenantRequest
100
34
  */
101
- attributes?: any | null;
35
+ ready?: boolean;
102
36
  }
103
37
  /**
104
38
  * Check if a given object implements the PatchedTenantRequest interface.
@@ -32,20 +32,9 @@ function PatchedTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
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
- 'eventRetention': !(0, runtime_1.exists)(json, 'event_retention') ? undefined : json['event_retention'],
47
- 'webCertificate': !(0, runtime_1.exists)(json, 'web_certificate') ? undefined : json['web_certificate'],
48
- 'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
35
+ 'schemaName': !(0, runtime_1.exists)(json, 'schema_name') ? undefined : json['schema_name'],
36
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
+ 'ready': !(0, runtime_1.exists)(json, 'ready') ? undefined : json['ready'],
49
38
  };
50
39
  }
51
40
  exports.PatchedTenantRequestFromJSONTyped = PatchedTenantRequestFromJSONTyped;
@@ -57,20 +46,9 @@ function PatchedTenantRequestToJSON(value) {
57
46
  return null;
58
47
  }
59
48
  return {
60
- 'domain': value.domain,
61
- 'default': value._default,
62
- 'branding_title': value.brandingTitle,
63
- 'branding_logo': value.brandingLogo,
64
- 'branding_favicon': value.brandingFavicon,
65
- 'flow_authentication': value.flowAuthentication,
66
- 'flow_invalidation': value.flowInvalidation,
67
- 'flow_recovery': value.flowRecovery,
68
- 'flow_unenrollment': value.flowUnenrollment,
69
- 'flow_user_settings': value.flowUserSettings,
70
- 'flow_device_code': value.flowDeviceCode,
71
- 'event_retention': value.eventRetention,
72
- 'web_certificate': value.webCertificate,
73
- 'attributes': value.attributes,
49
+ 'schema_name': value.schemaName,
50
+ 'name': value.name,
51
+ 'ready': value.ready,
74
52
  };
75
53
  }
76
54
  exports.PatchedTenantRequestToJSON = PatchedTenantRequestToJSON;
@@ -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 Settings
16
+ */
17
+ export interface Settings {
18
+ /**
19
+ * Configure how authentik should show avatars for users.
20
+ * @type {string}
21
+ * @memberof Settings
22
+ */
23
+ avatars?: string;
24
+ /**
25
+ * Enable the ability for users to change their name.
26
+ * @type {boolean}
27
+ * @memberof Settings
28
+ */
29
+ defaultUserChangeName?: boolean;
30
+ /**
31
+ * Enable the ability for users to change their email address.
32
+ * @type {boolean}
33
+ * @memberof Settings
34
+ */
35
+ defaultUserChangeEmail?: boolean;
36
+ /**
37
+ * Enable the ability for users to change their username.
38
+ * @type {boolean}
39
+ * @memberof Settings
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 Settings
46
+ */
47
+ eventRetention?: string;
48
+ /**
49
+ * The option configures the footer links on the flow executor pages.
50
+ * @type {any}
51
+ * @memberof Settings
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 Settings
58
+ */
59
+ gdprCompliance?: boolean;
60
+ /**
61
+ * Globally enable/disable impersonation.
62
+ * @type {boolean}
63
+ * @memberof Settings
64
+ */
65
+ impersonation?: boolean;
66
+ }
67
+ /**
68
+ * Check if a given object implements the Settings interface.
69
+ */
70
+ export declare function instanceOfSettings(value: object): boolean;
71
+ export declare function SettingsFromJSON(json: any): Settings;
72
+ export declare function SettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Settings;
73
+ export declare function SettingsToJSON(value?: Settings | null): any;
@@ -0,0 +1,64 @@
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.SettingsToJSON = exports.SettingsFromJSONTyped = exports.SettingsFromJSON = exports.instanceOfSettings = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the Settings interface.
20
+ */
21
+ function instanceOfSettings(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfSettings = instanceOfSettings;
26
+ function SettingsFromJSON(json) {
27
+ return SettingsFromJSONTyped(json, false);
28
+ }
29
+ exports.SettingsFromJSON = SettingsFromJSON;
30
+ function SettingsFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'avatars': !(0, runtime_1.exists)(json, 'avatars') ? undefined : json['avatars'],
36
+ 'defaultUserChangeName': !(0, runtime_1.exists)(json, 'default_user_change_name') ? undefined : json['default_user_change_name'],
37
+ 'defaultUserChangeEmail': !(0, runtime_1.exists)(json, 'default_user_change_email') ? undefined : json['default_user_change_email'],
38
+ 'defaultUserChangeUsername': !(0, runtime_1.exists)(json, 'default_user_change_username') ? undefined : json['default_user_change_username'],
39
+ 'eventRetention': !(0, runtime_1.exists)(json, 'event_retention') ? undefined : json['event_retention'],
40
+ 'footerLinks': !(0, runtime_1.exists)(json, 'footer_links') ? undefined : json['footer_links'],
41
+ 'gdprCompliance': !(0, runtime_1.exists)(json, 'gdpr_compliance') ? undefined : json['gdpr_compliance'],
42
+ 'impersonation': !(0, runtime_1.exists)(json, 'impersonation') ? undefined : json['impersonation'],
43
+ };
44
+ }
45
+ exports.SettingsFromJSONTyped = SettingsFromJSONTyped;
46
+ function SettingsToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'avatars': value.avatars,
55
+ 'default_user_change_name': value.defaultUserChangeName,
56
+ 'default_user_change_email': value.defaultUserChangeEmail,
57
+ 'default_user_change_username': value.defaultUserChangeUsername,
58
+ 'event_retention': value.eventRetention,
59
+ 'footer_links': value.footerLinks,
60
+ 'gdpr_compliance': value.gdprCompliance,
61
+ 'impersonation': value.impersonation,
62
+ };
63
+ }
64
+ exports.SettingsToJSON = SettingsToJSON;
@@ -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 SettingsRequest
16
+ */
17
+ export interface SettingsRequest {
18
+ /**
19
+ * Configure how authentik should show avatars for users.
20
+ * @type {string}
21
+ * @memberof SettingsRequest
22
+ */
23
+ avatars?: string;
24
+ /**
25
+ * Enable the ability for users to change their name.
26
+ * @type {boolean}
27
+ * @memberof SettingsRequest
28
+ */
29
+ defaultUserChangeName?: boolean;
30
+ /**
31
+ * Enable the ability for users to change their email address.
32
+ * @type {boolean}
33
+ * @memberof SettingsRequest
34
+ */
35
+ defaultUserChangeEmail?: boolean;
36
+ /**
37
+ * Enable the ability for users to change their username.
38
+ * @type {boolean}
39
+ * @memberof SettingsRequest
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 SettingsRequest
46
+ */
47
+ eventRetention?: string;
48
+ /**
49
+ * The option configures the footer links on the flow executor pages.
50
+ * @type {any}
51
+ * @memberof SettingsRequest
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 SettingsRequest
58
+ */
59
+ gdprCompliance?: boolean;
60
+ /**
61
+ * Globally enable/disable impersonation.
62
+ * @type {boolean}
63
+ * @memberof SettingsRequest
64
+ */
65
+ impersonation?: boolean;
66
+ }
67
+ /**
68
+ * Check if a given object implements the SettingsRequest interface.
69
+ */
70
+ export declare function instanceOfSettingsRequest(value: object): boolean;
71
+ export declare function SettingsRequestFromJSON(json: any): SettingsRequest;
72
+ export declare function SettingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsRequest;
73
+ export declare function SettingsRequestToJSON(value?: SettingsRequest | null): any;
@@ -0,0 +1,64 @@
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.SettingsRequestToJSON = exports.SettingsRequestFromJSONTyped = exports.SettingsRequestFromJSON = exports.instanceOfSettingsRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the SettingsRequest interface.
20
+ */
21
+ function instanceOfSettingsRequest(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfSettingsRequest = instanceOfSettingsRequest;
26
+ function SettingsRequestFromJSON(json) {
27
+ return SettingsRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.SettingsRequestFromJSON = SettingsRequestFromJSON;
30
+ function SettingsRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'avatars': !(0, runtime_1.exists)(json, 'avatars') ? undefined : json['avatars'],
36
+ 'defaultUserChangeName': !(0, runtime_1.exists)(json, 'default_user_change_name') ? undefined : json['default_user_change_name'],
37
+ 'defaultUserChangeEmail': !(0, runtime_1.exists)(json, 'default_user_change_email') ? undefined : json['default_user_change_email'],
38
+ 'defaultUserChangeUsername': !(0, runtime_1.exists)(json, 'default_user_change_username') ? undefined : json['default_user_change_username'],
39
+ 'eventRetention': !(0, runtime_1.exists)(json, 'event_retention') ? undefined : json['event_retention'],
40
+ 'footerLinks': !(0, runtime_1.exists)(json, 'footer_links') ? undefined : json['footer_links'],
41
+ 'gdprCompliance': !(0, runtime_1.exists)(json, 'gdpr_compliance') ? undefined : json['gdpr_compliance'],
42
+ 'impersonation': !(0, runtime_1.exists)(json, 'impersonation') ? undefined : json['impersonation'],
43
+ };
44
+ }
45
+ exports.SettingsRequestFromJSONTyped = SettingsRequestFromJSONTyped;
46
+ function SettingsRequestToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'avatars': value.avatars,
55
+ 'default_user_change_name': value.defaultUserChangeName,
56
+ 'default_user_change_email': value.defaultUserChangeEmail,
57
+ 'default_user_change_username': value.defaultUserChangeUsername,
58
+ 'event_retention': value.eventRetention,
59
+ 'footer_links': value.footerLinks,
60
+ 'gdpr_compliance': value.gdprCompliance,
61
+ 'impersonation': value.impersonation,
62
+ };
63
+ }
64
+ exports.SettingsRequestToJSON = SettingsRequestToJSON;
@@ -43,17 +43,23 @@ export interface SystemInfo {
43
43
  */
44
44
  runtime: SystemInfoRuntime;
45
45
  /**
46
- * Currently active tenant
46
+ * Currently active brand
47
47
  * @type {string}
48
48
  * @memberof SystemInfo
49
49
  */
50
- readonly tenant: string;
50
+ readonly brand: string;
51
51
  /**
52
52
  * Current server time
53
53
  * @type {Date}
54
54
  * @memberof SystemInfo
55
55
  */
56
56
  readonly serverTime: Date;
57
+ /**
58
+ * Whether the embedded outpost is disabled
59
+ * @type {boolean}
60
+ * @memberof SystemInfo
61
+ */
62
+ readonly embeddedOutpostDisabled: boolean;
57
63
  /**
58
64
  * Get the FQDN configured on the embedded outpost
59
65
  * @type {string}
@@ -24,8 +24,9 @@ function instanceOfSystemInfo(value) {
24
24
  isInstance = isInstance && "httpHost" in value;
25
25
  isInstance = isInstance && "httpIsSecure" in value;
26
26
  isInstance = isInstance && "runtime" in value;
27
- isInstance = isInstance && "tenant" in value;
27
+ isInstance = isInstance && "brand" in value;
28
28
  isInstance = isInstance && "serverTime" in value;
29
+ isInstance = isInstance && "embeddedOutpostDisabled" in value;
29
30
  isInstance = isInstance && "embeddedOutpostHost" in value;
30
31
  return isInstance;
31
32
  }
@@ -43,8 +44,9 @@ function SystemInfoFromJSONTyped(json, ignoreDiscriminator) {
43
44
  'httpHost': json['http_host'],
44
45
  'httpIsSecure': json['http_is_secure'],
45
46
  'runtime': (0, SystemInfoRuntime_1.SystemInfoRuntimeFromJSON)(json['runtime']),
46
- 'tenant': json['tenant'],
47
+ 'brand': json['brand'],
47
48
  'serverTime': (new Date(json['server_time'])),
49
+ 'embeddedOutpostDisabled': json['embedded_outpost_disabled'],
48
50
  'embeddedOutpostHost': json['embedded_outpost_host'],
49
51
  };
50
52
  }
@@ -21,90 +21,24 @@ export interface Tenant {
21
21
  * @memberof Tenant
22
22
  */
23
23
  readonly tenantUuid: string;
24
- /**
25
- * Domain that activates this tenant. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
26
- * @type {string}
27
- * @memberof Tenant
28
- */
29
- domain: string;
30
- /**
31
- *
32
- * @type {boolean}
33
- * @memberof Tenant
34
- */
35
- _default?: boolean;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof Tenant
40
- */
41
- brandingTitle?: string;
42
24
  /**
43
25
  *
44
26
  * @type {string}
45
27
  * @memberof Tenant
46
28
  */
47
- brandingLogo?: string;
29
+ schemaName: string;
48
30
  /**
49
31
  *
50
32
  * @type {string}
51
33
  * @memberof Tenant
52
34
  */
53
- brandingFavicon?: string;
35
+ name: string;
54
36
  /**
55
37
  *
56
- * @type {string}
57
- * @memberof Tenant
58
- */
59
- flowAuthentication?: string | null;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof Tenant
64
- */
65
- flowInvalidation?: string | null;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof Tenant
70
- */
71
- flowRecovery?: string | null;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof Tenant
76
- */
77
- flowUnenrollment?: string | null;
78
- /**
79
- *
80
- * @type {string}
81
- * @memberof Tenant
82
- */
83
- flowUserSettings?: string | null;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof Tenant
88
- */
89
- flowDeviceCode?: string | null;
90
- /**
91
- * Events will be deleted after this duration.(Format: weeks=3;days=2;hours=3,seconds=2).
92
- * @type {string}
93
- * @memberof Tenant
94
- */
95
- eventRetention?: string;
96
- /**
97
- * Web Certificate used by the authentik Core webserver.
98
- * @type {string}
99
- * @memberof Tenant
100
- */
101
- webCertificate?: string | null;
102
- /**
103
- *
104
- * @type {any}
38
+ * @type {boolean}
105
39
  * @memberof Tenant
106
40
  */
107
- attributes?: any | null;
41
+ ready?: boolean;
108
42
  }
109
43
  /**
110
44
  * Check if a given object implements the Tenant interface.