@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,70 @@
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 Brand interface.
17
+ */
18
+ export function instanceOfBrand(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "brandUuid" in value;
21
+ isInstance = isInstance && "domain" in value;
22
+ return isInstance;
23
+ }
24
+ export function BrandFromJSON(json) {
25
+ return BrandFromJSONTyped(json, false);
26
+ }
27
+ export function BrandFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'brandUuid': json['brand_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
+ 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
45
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
46
+ };
47
+ }
48
+ export function BrandToJSON(value) {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+ return {
56
+ 'domain': value.domain,
57
+ 'default': value._default,
58
+ 'branding_title': value.brandingTitle,
59
+ 'branding_logo': value.brandingLogo,
60
+ 'branding_favicon': value.brandingFavicon,
61
+ 'flow_authentication': value.flowAuthentication,
62
+ 'flow_invalidation': value.flowInvalidation,
63
+ 'flow_recovery': value.flowRecovery,
64
+ 'flow_unenrollment': value.flowUnenrollment,
65
+ 'flow_user_settings': value.flowUserSettings,
66
+ 'flow_device_code': value.flowDeviceCode,
67
+ 'web_certificate': value.webCertificate,
68
+ 'attributes': value.attributes,
69
+ };
70
+ }
@@ -0,0 +1,103 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.6
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Brand Serializer
14
+ * @export
15
+ * @interface BrandRequest
16
+ */
17
+ export interface BrandRequest {
18
+ /**
19
+ * Domain that activates this brand. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
20
+ * @type {string}
21
+ * @memberof BrandRequest
22
+ */
23
+ domain: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof BrandRequest
28
+ */
29
+ _default?: boolean;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BrandRequest
34
+ */
35
+ brandingTitle?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BrandRequest
40
+ */
41
+ brandingLogo?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof BrandRequest
46
+ */
47
+ brandingFavicon?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof BrandRequest
52
+ */
53
+ flowAuthentication?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof BrandRequest
58
+ */
59
+ flowInvalidation?: string | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof BrandRequest
64
+ */
65
+ flowRecovery?: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof BrandRequest
70
+ */
71
+ flowUnenrollment?: string | null;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof BrandRequest
76
+ */
77
+ flowUserSettings?: string | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof BrandRequest
82
+ */
83
+ flowDeviceCode?: string | null;
84
+ /**
85
+ * Web Certificate used by the authentik Core webserver.
86
+ * @type {string}
87
+ * @memberof BrandRequest
88
+ */
89
+ webCertificate?: string | null;
90
+ /**
91
+ *
92
+ * @type {any}
93
+ * @memberof BrandRequest
94
+ */
95
+ attributes?: any | null;
96
+ }
97
+ /**
98
+ * Check if a given object implements the BrandRequest interface.
99
+ */
100
+ export declare function instanceOfBrandRequest(value: object): boolean;
101
+ export declare function BrandRequestFromJSON(json: any): BrandRequest;
102
+ export declare function BrandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandRequest;
103
+ export declare function BrandRequestToJSON(value?: BrandRequest | null): any;
@@ -0,0 +1,68 @@
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 BrandRequest interface.
17
+ */
18
+ export function instanceOfBrandRequest(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "domain" in value;
21
+ return isInstance;
22
+ }
23
+ export function BrandRequestFromJSON(json) {
24
+ return BrandRequestFromJSONTyped(json, false);
25
+ }
26
+ export function BrandRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'domain': json['domain'],
32
+ '_default': !exists(json, 'default') ? undefined : json['default'],
33
+ 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],
34
+ 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],
35
+ 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],
36
+ 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],
37
+ 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
38
+ 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
39
+ 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
40
+ 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
41
+ 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
42
+ 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
43
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
44
+ };
45
+ }
46
+ export function BrandRequestToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ 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
+ 'web_certificate': value.webCertificate,
66
+ 'attributes': value.attributes,
67
+ };
68
+ }
@@ -12,94 +12,94 @@
12
12
  import type { FooterLink } from './FooterLink';
13
13
  import type { UiThemeEnum } from './UiThemeEnum';
14
14
  /**
15
- * Partial tenant information for styling
15
+ * Partial brand information for styling
16
16
  * @export
17
- * @interface CurrentTenant
17
+ * @interface CurrentBrand
18
18
  */
19
- export interface CurrentTenant {
19
+ export interface CurrentBrand {
20
20
  /**
21
21
  *
22
22
  * @type {string}
23
- * @memberof CurrentTenant
23
+ * @memberof CurrentBrand
24
24
  */
25
25
  matchedDomain: string;
26
26
  /**
27
27
  *
28
28
  * @type {string}
29
- * @memberof CurrentTenant
29
+ * @memberof CurrentBrand
30
30
  */
31
31
  brandingTitle: string;
32
32
  /**
33
33
  *
34
34
  * @type {string}
35
- * @memberof CurrentTenant
35
+ * @memberof CurrentBrand
36
36
  */
37
37
  brandingLogo: string;
38
38
  /**
39
39
  *
40
40
  * @type {string}
41
- * @memberof CurrentTenant
41
+ * @memberof CurrentBrand
42
42
  */
43
43
  brandingFavicon: string;
44
44
  /**
45
45
  *
46
46
  * @type {Array<FooterLink>}
47
- * @memberof CurrentTenant
47
+ * @memberof CurrentBrand
48
48
  */
49
49
  readonly uiFooterLinks: Array<FooterLink>;
50
50
  /**
51
51
  *
52
52
  * @type {UiThemeEnum}
53
- * @memberof CurrentTenant
53
+ * @memberof CurrentBrand
54
54
  */
55
55
  readonly uiTheme: UiThemeEnum;
56
56
  /**
57
57
  *
58
58
  * @type {string}
59
- * @memberof CurrentTenant
59
+ * @memberof CurrentBrand
60
60
  */
61
61
  flowAuthentication?: string;
62
62
  /**
63
63
  *
64
64
  * @type {string}
65
- * @memberof CurrentTenant
65
+ * @memberof CurrentBrand
66
66
  */
67
67
  flowInvalidation?: string;
68
68
  /**
69
69
  *
70
70
  * @type {string}
71
- * @memberof CurrentTenant
71
+ * @memberof CurrentBrand
72
72
  */
73
73
  flowRecovery?: string;
74
74
  /**
75
75
  *
76
76
  * @type {string}
77
- * @memberof CurrentTenant
77
+ * @memberof CurrentBrand
78
78
  */
79
79
  flowUnenrollment?: string;
80
80
  /**
81
81
  *
82
82
  * @type {string}
83
- * @memberof CurrentTenant
83
+ * @memberof CurrentBrand
84
84
  */
85
85
  flowUserSettings?: string;
86
86
  /**
87
87
  *
88
88
  * @type {string}
89
- * @memberof CurrentTenant
89
+ * @memberof CurrentBrand
90
90
  */
91
91
  flowDeviceCode?: string;
92
92
  /**
93
93
  *
94
94
  * @type {string}
95
- * @memberof CurrentTenant
95
+ * @memberof CurrentBrand
96
96
  */
97
97
  readonly defaultLocale: string;
98
98
  }
99
99
  /**
100
- * Check if a given object implements the CurrentTenant interface.
100
+ * Check if a given object implements the CurrentBrand interface.
101
101
  */
102
- export declare function instanceOfCurrentTenant(value: object): boolean;
103
- export declare function CurrentTenantFromJSON(json: any): CurrentTenant;
104
- export declare function CurrentTenantFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentTenant;
105
- export declare function CurrentTenantToJSON(value?: CurrentTenant | null): any;
102
+ export declare function instanceOfCurrentBrand(value: object): boolean;
103
+ export declare function CurrentBrandFromJSON(json: any): CurrentBrand;
104
+ export declare function CurrentBrandFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentBrand;
105
+ export declare function CurrentBrandToJSON(value?: CurrentBrand | null): any;
@@ -15,9 +15,9 @@ import { exists } from '../runtime';
15
15
  import { FooterLinkFromJSON, } from './FooterLink';
16
16
  import { UiThemeEnumFromJSON, } from './UiThemeEnum';
17
17
  /**
18
- * Check if a given object implements the CurrentTenant interface.
18
+ * Check if a given object implements the CurrentBrand interface.
19
19
  */
20
- export function instanceOfCurrentTenant(value) {
20
+ export function instanceOfCurrentBrand(value) {
21
21
  let isInstance = true;
22
22
  isInstance = isInstance && "matchedDomain" in value;
23
23
  isInstance = isInstance && "brandingTitle" in value;
@@ -28,10 +28,10 @@ export function instanceOfCurrentTenant(value) {
28
28
  isInstance = isInstance && "defaultLocale" in value;
29
29
  return isInstance;
30
30
  }
31
- export function CurrentTenantFromJSON(json) {
32
- return CurrentTenantFromJSONTyped(json, false);
31
+ export function CurrentBrandFromJSON(json) {
32
+ return CurrentBrandFromJSONTyped(json, false);
33
33
  }
34
- export function CurrentTenantFromJSONTyped(json, ignoreDiscriminator) {
34
+ export function CurrentBrandFromJSONTyped(json, ignoreDiscriminator) {
35
35
  if ((json === undefined) || (json === null)) {
36
36
  return json;
37
37
  }
@@ -51,7 +51,7 @@ export function CurrentTenantFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'defaultLocale': json['default_locale'],
52
52
  };
53
53
  }
54
- export function CurrentTenantToJSON(value) {
54
+ export function CurrentBrandToJSON(value) {
55
55
  if (value === undefined) {
56
56
  return undefined;
57
57
  }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.6
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Domain Serializer
14
+ * @export
15
+ * @interface Domain
16
+ */
17
+ export interface Domain {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof Domain
22
+ */
23
+ readonly id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Domain
28
+ */
29
+ domain: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof Domain
34
+ */
35
+ isPrimary?: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Domain
40
+ */
41
+ tenant: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the Domain interface.
45
+ */
46
+ export declare function instanceOfDomain(value: object): boolean;
47
+ export declare function DomainFromJSON(json: any): Domain;
48
+ export declare function DomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): Domain;
49
+ export declare function DomainToJSON(value?: Domain | null): any;
@@ -0,0 +1,51 @@
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 Domain interface.
17
+ */
18
+ export function instanceOfDomain(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "id" in value;
21
+ isInstance = isInstance && "domain" in value;
22
+ isInstance = isInstance && "tenant" in value;
23
+ return isInstance;
24
+ }
25
+ export function DomainFromJSON(json) {
26
+ return DomainFromJSONTyped(json, false);
27
+ }
28
+ export function DomainFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'id': json['id'],
34
+ 'domain': json['domain'],
35
+ 'isPrimary': !exists(json, 'is_primary') ? undefined : json['is_primary'],
36
+ 'tenant': json['tenant'],
37
+ };
38
+ }
39
+ export function DomainToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'domain': value.domain,
48
+ 'is_primary': value.isPrimary,
49
+ 'tenant': value.tenant,
50
+ };
51
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.6
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Domain Serializer
14
+ * @export
15
+ * @interface DomainRequest
16
+ */
17
+ export interface DomainRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DomainRequest
22
+ */
23
+ domain: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof DomainRequest
28
+ */
29
+ isPrimary?: boolean;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof DomainRequest
34
+ */
35
+ tenant: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the DomainRequest interface.
39
+ */
40
+ export declare function instanceOfDomainRequest(value: object): boolean;
41
+ export declare function DomainRequestFromJSON(json: any): DomainRequest;
42
+ export declare function DomainRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainRequest;
43
+ export declare function DomainRequestToJSON(value?: DomainRequest | null): any;
@@ -0,0 +1,49 @@
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 DomainRequest interface.
17
+ */
18
+ export function instanceOfDomainRequest(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "domain" in value;
21
+ isInstance = isInstance && "tenant" in value;
22
+ return isInstance;
23
+ }
24
+ export function DomainRequestFromJSON(json) {
25
+ return DomainRequestFromJSONTyped(json, false);
26
+ }
27
+ export function DomainRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'domain': json['domain'],
33
+ 'isPrimary': !exists(json, 'is_primary') ? undefined : json['is_primary'],
34
+ 'tenant': json['tenant'],
35
+ };
36
+ }
37
+ export function DomainRequestToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'domain': value.domain,
46
+ 'is_primary': value.isPrimary,
47
+ 'tenant': value.tenant,
48
+ };
49
+ }
@@ -69,7 +69,7 @@ export interface Event {
69
69
  * @type {any}
70
70
  * @memberof Event
71
71
  */
72
- tenant?: any | null;
72
+ brand?: any | null;
73
73
  }
74
74
  /**
75
75
  * Check if a given object implements the Event interface.
@@ -40,7 +40,7 @@ export function EventFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'clientIp': !exists(json, 'client_ip') ? undefined : json['client_ip'],
41
41
  'created': (new Date(json['created'])),
42
42
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
43
- 'tenant': !exists(json, 'tenant') ? undefined : json['tenant'],
43
+ 'brand': !exists(json, 'brand') ? undefined : json['brand'],
44
44
  };
45
45
  }
46
46
  export function EventToJSON(value) {
@@ -57,6 +57,6 @@ export function EventToJSON(value) {
57
57
  'context': value.context,
58
58
  'client_ip': value.clientIp,
59
59
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
60
- 'tenant': value.tenant,
60
+ 'brand': value.brand,
61
61
  };
62
62
  }
@@ -57,7 +57,7 @@ export interface EventRequest {
57
57
  * @type {any}
58
58
  * @memberof EventRequest
59
59
  */
60
- tenant?: any | null;
60
+ brand?: any | null;
61
61
  }
62
62
  /**
63
63
  * Check if a given object implements the EventRequest interface.
@@ -36,7 +36,7 @@ export function EventRequestFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'context': !exists(json, 'context') ? undefined : json['context'],
37
37
  'clientIp': !exists(json, 'client_ip') ? undefined : json['client_ip'],
38
38
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
39
- 'tenant': !exists(json, 'tenant') ? undefined : json['tenant'],
39
+ 'brand': !exists(json, 'brand') ? undefined : json['brand'],
40
40
  };
41
41
  }
42
42
  export function EventRequestToJSON(value) {
@@ -53,6 +53,6 @@ export function EventRequestToJSON(value) {
53
53
  'context': value.context,
54
54
  'client_ip': value.clientIp,
55
55
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
56
- 'tenant': value.tenant,
56
+ 'brand': value.brand,
57
57
  };
58
58
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
+ * * `authentik_tenants.domain` - Domain
13
14
  * * `authentik_crypto.certificatekeypair` - Certificate-Key Pair
14
15
  * * `authentik_events.event` - Event
15
16
  * * `authentik_events.notificationtransport` - Notification Transport
@@ -77,7 +78,7 @@
77
78
  * * `authentik_stages_user_login.userloginstage` - User Login Stage
78
79
  * * `authentik_stages_user_logout.userlogoutstage` - User Logout Stage
79
80
  * * `authentik_stages_user_write.userwritestage` - User Write Stage
80
- * * `authentik_tenants.tenant` - Tenant
81
+ * * `authentik_brands.brand` - Brand
81
82
  * * `authentik_blueprints.blueprintinstance` - Blueprint Instance
82
83
  * * `authentik_core.group` - Group
83
84
  * * `authentik_core.user` - User
@@ -90,6 +91,7 @@
90
91
  * @export
91
92
  */
92
93
  export declare const ModelEnum: {
94
+ readonly TenantsDomain: "authentik_tenants.domain";
93
95
  readonly CryptoCertificatekeypair: "authentik_crypto.certificatekeypair";
94
96
  readonly EventsEvent: "authentik_events.event";
95
97
  readonly EventsNotificationtransport: "authentik_events.notificationtransport";
@@ -157,7 +159,7 @@ export declare const ModelEnum: {
157
159
  readonly StagesUserLoginUserloginstage: "authentik_stages_user_login.userloginstage";
158
160
  readonly StagesUserLogoutUserlogoutstage: "authentik_stages_user_logout.userlogoutstage";
159
161
  readonly StagesUserWriteUserwritestage: "authentik_stages_user_write.userwritestage";
160
- readonly TenantsTenant: "authentik_tenants.tenant";
162
+ readonly BrandsBrand: "authentik_brands.brand";
161
163
  readonly BlueprintsBlueprintinstance: "authentik_blueprints.blueprintinstance";
162
164
  readonly CoreGroup: "authentik_core.group";
163
165
  readonly CoreUser: "authentik_core.user";