@goauthentik/api 2023.10.6-1705263684 → 2023.10.6-1706092584

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +6 -2
  27. package/dist/esm/models/AppEnum.js +6 -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 +6 -2
  78. package/dist/models/AppEnum.js +6 -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 +6 -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
@@ -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.
@@ -27,20 +27,9 @@ export function PatchedTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
27
27
  return json;
28
28
  }
29
29
  return {
30
- 'domain': !exists(json, 'domain') ? undefined : json['domain'],
31
- '_default': !exists(json, 'default') ? undefined : json['default'],
32
- 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],
33
- 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],
34
- 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],
35
- 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],
36
- 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
37
- 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
38
- 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
39
- 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
40
- 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
41
- 'eventRetention': !exists(json, 'event_retention') ? undefined : json['event_retention'],
42
- 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
43
- 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
30
+ 'schemaName': !exists(json, 'schema_name') ? undefined : json['schema_name'],
31
+ 'name': !exists(json, 'name') ? undefined : json['name'],
32
+ 'ready': !exists(json, 'ready') ? undefined : json['ready'],
44
33
  };
45
34
  }
46
35
  export function PatchedTenantRequestToJSON(value) {
@@ -51,19 +40,8 @@ export function PatchedTenantRequestToJSON(value) {
51
40
  return null;
52
41
  }
53
42
  return {
54
- 'domain': value.domain,
55
- 'default': value._default,
56
- 'branding_title': value.brandingTitle,
57
- 'branding_logo': value.brandingLogo,
58
- 'branding_favicon': value.brandingFavicon,
59
- 'flow_authentication': value.flowAuthentication,
60
- 'flow_invalidation': value.flowInvalidation,
61
- 'flow_recovery': value.flowRecovery,
62
- 'flow_unenrollment': value.flowUnenrollment,
63
- 'flow_user_settings': value.flowUserSettings,
64
- 'flow_device_code': value.flowDeviceCode,
65
- 'event_retention': value.eventRetention,
66
- 'web_certificate': value.webCertificate,
67
- 'attributes': value.attributes,
43
+ 'schema_name': value.schemaName,
44
+ 'name': value.name,
45
+ 'ready': value.ready,
68
46
  };
69
47
  }
@@ -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,57 @@
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the Settings interface.
17
+ */
18
+ export function instanceOfSettings(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function SettingsFromJSON(json) {
23
+ return SettingsFromJSONTyped(json, false);
24
+ }
25
+ export function SettingsFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'avatars': !exists(json, 'avatars') ? undefined : json['avatars'],
31
+ 'defaultUserChangeName': !exists(json, 'default_user_change_name') ? undefined : json['default_user_change_name'],
32
+ 'defaultUserChangeEmail': !exists(json, 'default_user_change_email') ? undefined : json['default_user_change_email'],
33
+ 'defaultUserChangeUsername': !exists(json, 'default_user_change_username') ? undefined : json['default_user_change_username'],
34
+ 'eventRetention': !exists(json, 'event_retention') ? undefined : json['event_retention'],
35
+ 'footerLinks': !exists(json, 'footer_links') ? undefined : json['footer_links'],
36
+ 'gdprCompliance': !exists(json, 'gdpr_compliance') ? undefined : json['gdpr_compliance'],
37
+ 'impersonation': !exists(json, 'impersonation') ? undefined : json['impersonation'],
38
+ };
39
+ }
40
+ export function SettingsToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'avatars': value.avatars,
49
+ 'default_user_change_name': value.defaultUserChangeName,
50
+ 'default_user_change_email': value.defaultUserChangeEmail,
51
+ 'default_user_change_username': value.defaultUserChangeUsername,
52
+ 'event_retention': value.eventRetention,
53
+ 'footer_links': value.footerLinks,
54
+ 'gdpr_compliance': value.gdprCompliance,
55
+ 'impersonation': value.impersonation,
56
+ };
57
+ }
@@ -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,57 @@
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the SettingsRequest interface.
17
+ */
18
+ export function instanceOfSettingsRequest(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function SettingsRequestFromJSON(json) {
23
+ return SettingsRequestFromJSONTyped(json, false);
24
+ }
25
+ export function SettingsRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'avatars': !exists(json, 'avatars') ? undefined : json['avatars'],
31
+ 'defaultUserChangeName': !exists(json, 'default_user_change_name') ? undefined : json['default_user_change_name'],
32
+ 'defaultUserChangeEmail': !exists(json, 'default_user_change_email') ? undefined : json['default_user_change_email'],
33
+ 'defaultUserChangeUsername': !exists(json, 'default_user_change_username') ? undefined : json['default_user_change_username'],
34
+ 'eventRetention': !exists(json, 'event_retention') ? undefined : json['event_retention'],
35
+ 'footerLinks': !exists(json, 'footer_links') ? undefined : json['footer_links'],
36
+ 'gdprCompliance': !exists(json, 'gdpr_compliance') ? undefined : json['gdpr_compliance'],
37
+ 'impersonation': !exists(json, 'impersonation') ? undefined : json['impersonation'],
38
+ };
39
+ }
40
+ export function SettingsRequestToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'avatars': value.avatars,
49
+ 'default_user_change_name': value.defaultUserChangeName,
50
+ 'default_user_change_email': value.defaultUserChangeEmail,
51
+ 'default_user_change_username': value.defaultUserChangeUsername,
52
+ 'event_retention': value.eventRetention,
53
+ 'footer_links': value.footerLinks,
54
+ 'gdpr_compliance': value.gdprCompliance,
55
+ 'impersonation': value.impersonation,
56
+ };
57
+ }
@@ -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}
@@ -21,8 +21,9 @@ export function instanceOfSystemInfo(value) {
21
21
  isInstance = isInstance && "httpHost" in value;
22
22
  isInstance = isInstance && "httpIsSecure" in value;
23
23
  isInstance = isInstance && "runtime" in value;
24
- isInstance = isInstance && "tenant" in value;
24
+ isInstance = isInstance && "brand" in value;
25
25
  isInstance = isInstance && "serverTime" in value;
26
+ isInstance = isInstance && "embeddedOutpostDisabled" in value;
26
27
  isInstance = isInstance && "embeddedOutpostHost" in value;
27
28
  return isInstance;
28
29
  }
@@ -38,8 +39,9 @@ export function SystemInfoFromJSONTyped(json, ignoreDiscriminator) {
38
39
  'httpHost': json['http_host'],
39
40
  'httpIsSecure': json['http_is_secure'],
40
41
  'runtime': SystemInfoRuntimeFromJSON(json['runtime']),
41
- 'tenant': json['tenant'],
42
+ 'brand': json['brand'],
42
43
  'serverTime': (new Date(json['server_time'])),
44
+ 'embeddedOutpostDisabled': json['embedded_outpost_disabled'],
43
45
  'embeddedOutpostHost': json['embedded_outpost_host'],
44
46
  };
45
47
  }
@@ -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.
@@ -18,7 +18,8 @@ import { exists } from '../runtime';
18
18
  export function instanceOfTenant(value) {
19
19
  let isInstance = true;
20
20
  isInstance = isInstance && "tenantUuid" in value;
21
- isInstance = isInstance && "domain" in value;
21
+ isInstance = isInstance && "schemaName" in value;
22
+ isInstance = isInstance && "name" in value;
22
23
  return isInstance;
23
24
  }
24
25
  export function TenantFromJSON(json) {
@@ -30,20 +31,9 @@ export function TenantFromJSONTyped(json, ignoreDiscriminator) {
30
31
  }
31
32
  return {
32
33
  'tenantUuid': json['tenant_uuid'],
33
- 'domain': json['domain'],
34
- '_default': !exists(json, 'default') ? undefined : json['default'],
35
- 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],
36
- 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],
37
- 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],
38
- 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],
39
- 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
40
- 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
41
- 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
42
- 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
43
- 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
44
- 'eventRetention': !exists(json, 'event_retention') ? undefined : json['event_retention'],
45
- 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
46
- 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
34
+ 'schemaName': json['schema_name'],
35
+ 'name': json['name'],
36
+ 'ready': !exists(json, 'ready') ? undefined : json['ready'],
47
37
  };
48
38
  }
49
39
  export function TenantToJSON(value) {
@@ -54,19 +44,8 @@ export function TenantToJSON(value) {
54
44
  return null;
55
45
  }
56
46
  return {
57
- 'domain': value.domain,
58
- 'default': value._default,
59
- 'branding_title': value.brandingTitle,
60
- 'branding_logo': value.brandingLogo,
61
- 'branding_favicon': value.brandingFavicon,
62
- 'flow_authentication': value.flowAuthentication,
63
- 'flow_invalidation': value.flowInvalidation,
64
- 'flow_recovery': value.flowRecovery,
65
- 'flow_unenrollment': value.flowUnenrollment,
66
- 'flow_user_settings': value.flowUserSettings,
67
- 'flow_device_code': value.flowDeviceCode,
68
- 'event_retention': value.eventRetention,
69
- 'web_certificate': value.webCertificate,
70
- 'attributes': value.attributes,
47
+ 'schema_name': value.schemaName,
48
+ 'name': value.name,
49
+ 'ready': value.ready,
71
50
  };
72
51
  }
@@ -0,0 +1,31 @@
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
+ * Tenant admin group creation request serializer
14
+ * @export
15
+ * @interface TenantAdminGroupRequestRequest
16
+ */
17
+ export interface TenantAdminGroupRequestRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TenantAdminGroupRequestRequest
22
+ */
23
+ user: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the TenantAdminGroupRequestRequest interface.
27
+ */
28
+ export declare function instanceOfTenantAdminGroupRequestRequest(value: object): boolean;
29
+ export declare function TenantAdminGroupRequestRequestFromJSON(json: any): TenantAdminGroupRequestRequest;
30
+ export declare function TenantAdminGroupRequestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantAdminGroupRequestRequest;
31
+ export declare function TenantAdminGroupRequestRequestToJSON(value?: TenantAdminGroupRequestRequest | null): any;
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the TenantAdminGroupRequestRequest interface.
16
+ */
17
+ export function instanceOfTenantAdminGroupRequestRequest(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "user" in value;
20
+ return isInstance;
21
+ }
22
+ export function TenantAdminGroupRequestRequestFromJSON(json) {
23
+ return TenantAdminGroupRequestRequestFromJSONTyped(json, false);
24
+ }
25
+ export function TenantAdminGroupRequestRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'user': json['user'],
31
+ };
32
+ }
33
+ export function TenantAdminGroupRequestRequestToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'user': value.user,
42
+ };
43
+ }