@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,170 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.6
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * Brand Serializer
18
+ * @export
19
+ * @interface Brand
20
+ */
21
+ export interface Brand {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Brand
26
+ */
27
+ readonly brandUuid: string;
28
+ /**
29
+ * Domain that activates this brand. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
30
+ * @type {string}
31
+ * @memberof Brand
32
+ */
33
+ domain: string;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof Brand
38
+ */
39
+ _default?: boolean;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Brand
44
+ */
45
+ brandingTitle?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof Brand
50
+ */
51
+ brandingLogo?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof Brand
56
+ */
57
+ brandingFavicon?: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof Brand
62
+ */
63
+ flowAuthentication?: string | null;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof Brand
68
+ */
69
+ flowInvalidation?: string | null;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof Brand
74
+ */
75
+ flowRecovery?: string | null;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof Brand
80
+ */
81
+ flowUnenrollment?: string | null;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof Brand
86
+ */
87
+ flowUserSettings?: string | null;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof Brand
92
+ */
93
+ flowDeviceCode?: string | null;
94
+ /**
95
+ * Web Certificate used by the authentik Core webserver.
96
+ * @type {string}
97
+ * @memberof Brand
98
+ */
99
+ webCertificate?: string | null;
100
+ /**
101
+ *
102
+ * @type {any}
103
+ * @memberof Brand
104
+ */
105
+ attributes?: any | null;
106
+ }
107
+
108
+ /**
109
+ * Check if a given object implements the Brand interface.
110
+ */
111
+ export function instanceOfBrand(value: object): boolean {
112
+ let isInstance = true;
113
+ isInstance = isInstance && "brandUuid" in value;
114
+ isInstance = isInstance && "domain" in value;
115
+
116
+ return isInstance;
117
+ }
118
+
119
+ export function BrandFromJSON(json: any): Brand {
120
+ return BrandFromJSONTyped(json, false);
121
+ }
122
+
123
+ export function BrandFromJSONTyped(json: any, ignoreDiscriminator: boolean): Brand {
124
+ if ((json === undefined) || (json === null)) {
125
+ return json;
126
+ }
127
+ return {
128
+
129
+ 'brandUuid': json['brand_uuid'],
130
+ 'domain': json['domain'],
131
+ '_default': !exists(json, 'default') ? undefined : json['default'],
132
+ 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],
133
+ 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],
134
+ 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],
135
+ 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],
136
+ 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
137
+ 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
138
+ 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
139
+ 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
140
+ 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
141
+ 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
142
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
143
+ };
144
+ }
145
+
146
+ export function BrandToJSON(value?: Brand | null): any {
147
+ if (value === undefined) {
148
+ return undefined;
149
+ }
150
+ if (value === null) {
151
+ return null;
152
+ }
153
+ return {
154
+
155
+ 'domain': value.domain,
156
+ 'default': value._default,
157
+ 'branding_title': value.brandingTitle,
158
+ 'branding_logo': value.brandingLogo,
159
+ 'branding_favicon': value.brandingFavicon,
160
+ 'flow_authentication': value.flowAuthentication,
161
+ 'flow_invalidation': value.flowInvalidation,
162
+ 'flow_recovery': value.flowRecovery,
163
+ 'flow_unenrollment': value.flowUnenrollment,
164
+ 'flow_user_settings': value.flowUserSettings,
165
+ 'flow_device_code': value.flowDeviceCode,
166
+ 'web_certificate': value.webCertificate,
167
+ 'attributes': value.attributes,
168
+ };
169
+ }
170
+
@@ -0,0 +1,162 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.6
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * Brand Serializer
18
+ * @export
19
+ * @interface BrandRequest
20
+ */
21
+ export interface BrandRequest {
22
+ /**
23
+ * Domain that activates this brand. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
24
+ * @type {string}
25
+ * @memberof BrandRequest
26
+ */
27
+ domain: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof BrandRequest
32
+ */
33
+ _default?: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof BrandRequest
38
+ */
39
+ brandingTitle?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof BrandRequest
44
+ */
45
+ brandingLogo?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof BrandRequest
50
+ */
51
+ brandingFavicon?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof BrandRequest
56
+ */
57
+ flowAuthentication?: string | null;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof BrandRequest
62
+ */
63
+ flowInvalidation?: string | null;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof BrandRequest
68
+ */
69
+ flowRecovery?: string | null;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof BrandRequest
74
+ */
75
+ flowUnenrollment?: string | null;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof BrandRequest
80
+ */
81
+ flowUserSettings?: string | null;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof BrandRequest
86
+ */
87
+ flowDeviceCode?: string | null;
88
+ /**
89
+ * Web Certificate used by the authentik Core webserver.
90
+ * @type {string}
91
+ * @memberof BrandRequest
92
+ */
93
+ webCertificate?: string | null;
94
+ /**
95
+ *
96
+ * @type {any}
97
+ * @memberof BrandRequest
98
+ */
99
+ attributes?: any | null;
100
+ }
101
+
102
+ /**
103
+ * Check if a given object implements the BrandRequest interface.
104
+ */
105
+ export function instanceOfBrandRequest(value: object): boolean {
106
+ let isInstance = true;
107
+ isInstance = isInstance && "domain" in value;
108
+
109
+ return isInstance;
110
+ }
111
+
112
+ export function BrandRequestFromJSON(json: any): BrandRequest {
113
+ return BrandRequestFromJSONTyped(json, false);
114
+ }
115
+
116
+ export function BrandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandRequest {
117
+ if ((json === undefined) || (json === null)) {
118
+ return json;
119
+ }
120
+ return {
121
+
122
+ 'domain': json['domain'],
123
+ '_default': !exists(json, 'default') ? undefined : json['default'],
124
+ 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],
125
+ 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],
126
+ 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],
127
+ 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],
128
+ 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
129
+ 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
130
+ 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
131
+ 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
132
+ 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
133
+ 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
134
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
135
+ };
136
+ }
137
+
138
+ export function BrandRequestToJSON(value?: BrandRequest | null): any {
139
+ if (value === undefined) {
140
+ return undefined;
141
+ }
142
+ if (value === null) {
143
+ return null;
144
+ }
145
+ return {
146
+
147
+ 'domain': value.domain,
148
+ 'default': value._default,
149
+ 'branding_title': value.brandingTitle,
150
+ 'branding_logo': value.brandingLogo,
151
+ 'branding_favicon': value.brandingFavicon,
152
+ 'flow_authentication': value.flowAuthentication,
153
+ 'flow_invalidation': value.flowInvalidation,
154
+ 'flow_recovery': value.flowRecovery,
155
+ 'flow_unenrollment': value.flowUnenrollment,
156
+ 'flow_user_settings': value.flowUserSettings,
157
+ 'flow_device_code': value.flowDeviceCode,
158
+ 'web_certificate': value.webCertificate,
159
+ 'attributes': value.attributes,
160
+ };
161
+ }
162
+
@@ -27,95 +27,95 @@ import {
27
27
  } from './UiThemeEnum';
28
28
 
29
29
  /**
30
- * Partial tenant information for styling
30
+ * Partial brand information for styling
31
31
  * @export
32
- * @interface CurrentTenant
32
+ * @interface CurrentBrand
33
33
  */
34
- export interface CurrentTenant {
34
+ export interface CurrentBrand {
35
35
  /**
36
36
  *
37
37
  * @type {string}
38
- * @memberof CurrentTenant
38
+ * @memberof CurrentBrand
39
39
  */
40
40
  matchedDomain: string;
41
41
  /**
42
42
  *
43
43
  * @type {string}
44
- * @memberof CurrentTenant
44
+ * @memberof CurrentBrand
45
45
  */
46
46
  brandingTitle: string;
47
47
  /**
48
48
  *
49
49
  * @type {string}
50
- * @memberof CurrentTenant
50
+ * @memberof CurrentBrand
51
51
  */
52
52
  brandingLogo: string;
53
53
  /**
54
54
  *
55
55
  * @type {string}
56
- * @memberof CurrentTenant
56
+ * @memberof CurrentBrand
57
57
  */
58
58
  brandingFavicon: string;
59
59
  /**
60
60
  *
61
61
  * @type {Array<FooterLink>}
62
- * @memberof CurrentTenant
62
+ * @memberof CurrentBrand
63
63
  */
64
64
  readonly uiFooterLinks: Array<FooterLink>;
65
65
  /**
66
66
  *
67
67
  * @type {UiThemeEnum}
68
- * @memberof CurrentTenant
68
+ * @memberof CurrentBrand
69
69
  */
70
70
  readonly uiTheme: UiThemeEnum;
71
71
  /**
72
72
  *
73
73
  * @type {string}
74
- * @memberof CurrentTenant
74
+ * @memberof CurrentBrand
75
75
  */
76
76
  flowAuthentication?: string;
77
77
  /**
78
78
  *
79
79
  * @type {string}
80
- * @memberof CurrentTenant
80
+ * @memberof CurrentBrand
81
81
  */
82
82
  flowInvalidation?: string;
83
83
  /**
84
84
  *
85
85
  * @type {string}
86
- * @memberof CurrentTenant
86
+ * @memberof CurrentBrand
87
87
  */
88
88
  flowRecovery?: string;
89
89
  /**
90
90
  *
91
91
  * @type {string}
92
- * @memberof CurrentTenant
92
+ * @memberof CurrentBrand
93
93
  */
94
94
  flowUnenrollment?: string;
95
95
  /**
96
96
  *
97
97
  * @type {string}
98
- * @memberof CurrentTenant
98
+ * @memberof CurrentBrand
99
99
  */
100
100
  flowUserSettings?: string;
101
101
  /**
102
102
  *
103
103
  * @type {string}
104
- * @memberof CurrentTenant
104
+ * @memberof CurrentBrand
105
105
  */
106
106
  flowDeviceCode?: string;
107
107
  /**
108
108
  *
109
109
  * @type {string}
110
- * @memberof CurrentTenant
110
+ * @memberof CurrentBrand
111
111
  */
112
112
  readonly defaultLocale: string;
113
113
  }
114
114
 
115
115
  /**
116
- * Check if a given object implements the CurrentTenant interface.
116
+ * Check if a given object implements the CurrentBrand interface.
117
117
  */
118
- export function instanceOfCurrentTenant(value: object): boolean {
118
+ export function instanceOfCurrentBrand(value: object): boolean {
119
119
  let isInstance = true;
120
120
  isInstance = isInstance && "matchedDomain" in value;
121
121
  isInstance = isInstance && "brandingTitle" in value;
@@ -128,11 +128,11 @@ export function instanceOfCurrentTenant(value: object): boolean {
128
128
  return isInstance;
129
129
  }
130
130
 
131
- export function CurrentTenantFromJSON(json: any): CurrentTenant {
132
- return CurrentTenantFromJSONTyped(json, false);
131
+ export function CurrentBrandFromJSON(json: any): CurrentBrand {
132
+ return CurrentBrandFromJSONTyped(json, false);
133
133
  }
134
134
 
135
- export function CurrentTenantFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentTenant {
135
+ export function CurrentBrandFromJSONTyped(json: any, ignoreDiscriminator: boolean): CurrentBrand {
136
136
  if ((json === undefined) || (json === null)) {
137
137
  return json;
138
138
  }
@@ -154,7 +154,7 @@ export function CurrentTenantFromJSONTyped(json: any, ignoreDiscriminator: boole
154
154
  };
155
155
  }
156
156
 
157
- export function CurrentTenantToJSON(value?: CurrentTenant | null): any {
157
+ export function CurrentBrandToJSON(value?: CurrentBrand | null): any {
158
158
  if (value === undefined) {
159
159
  return undefined;
160
160
  }
@@ -0,0 +1,91 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.6
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * Domain Serializer
18
+ * @export
19
+ * @interface Domain
20
+ */
21
+ export interface Domain {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof Domain
26
+ */
27
+ readonly id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Domain
32
+ */
33
+ domain: string;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof Domain
38
+ */
39
+ isPrimary?: boolean;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Domain
44
+ */
45
+ tenant: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the Domain interface.
50
+ */
51
+ export function instanceOfDomain(value: object): boolean {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "id" in value;
54
+ isInstance = isInstance && "domain" in value;
55
+ isInstance = isInstance && "tenant" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function DomainFromJSON(json: any): Domain {
61
+ return DomainFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function DomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): Domain {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'id': json['id'],
71
+ 'domain': json['domain'],
72
+ 'isPrimary': !exists(json, 'is_primary') ? undefined : json['is_primary'],
73
+ 'tenant': json['tenant'],
74
+ };
75
+ }
76
+
77
+ export function DomainToJSON(value?: Domain | null): any {
78
+ if (value === undefined) {
79
+ return undefined;
80
+ }
81
+ if (value === null) {
82
+ return null;
83
+ }
84
+ return {
85
+
86
+ 'domain': value.domain,
87
+ 'is_primary': value.isPrimary,
88
+ 'tenant': value.tenant,
89
+ };
90
+ }
91
+
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.6
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * Domain Serializer
18
+ * @export
19
+ * @interface DomainRequest
20
+ */
21
+ export interface DomainRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof DomainRequest
26
+ */
27
+ domain: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof DomainRequest
32
+ */
33
+ isPrimary?: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof DomainRequest
38
+ */
39
+ tenant: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the DomainRequest interface.
44
+ */
45
+ export function instanceOfDomainRequest(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "domain" in value;
48
+ isInstance = isInstance && "tenant" in value;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function DomainRequestFromJSON(json: any): DomainRequest {
54
+ return DomainRequestFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function DomainRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainRequest {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'domain': json['domain'],
64
+ 'isPrimary': !exists(json, 'is_primary') ? undefined : json['is_primary'],
65
+ 'tenant': json['tenant'],
66
+ };
67
+ }
68
+
69
+ export function DomainRequestToJSON(value?: DomainRequest | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'domain': value.domain,
79
+ 'is_primary': value.isPrimary,
80
+ 'tenant': value.tenant,
81
+ };
82
+ }
83
+
@@ -79,7 +79,7 @@ export interface Event {
79
79
  * @type {any}
80
80
  * @memberof Event
81
81
  */
82
- tenant?: any | null;
82
+ brand?: any | null;
83
83
  }
84
84
 
85
85
  /**
@@ -113,7 +113,7 @@ export function EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): Eve
113
113
  'clientIp': !exists(json, 'client_ip') ? undefined : json['client_ip'],
114
114
  'created': (new Date(json['created'])),
115
115
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
116
- 'tenant': !exists(json, 'tenant') ? undefined : json['tenant'],
116
+ 'brand': !exists(json, 'brand') ? undefined : json['brand'],
117
117
  };
118
118
  }
119
119
 
@@ -132,7 +132,7 @@ export function EventToJSON(value?: Event | null): any {
132
132
  'context': value.context,
133
133
  'client_ip': value.clientIp,
134
134
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
135
- 'tenant': value.tenant,
135
+ 'brand': value.brand,
136
136
  };
137
137
  }
138
138
 
@@ -67,7 +67,7 @@ export interface EventRequest {
67
67
  * @type {any}
68
68
  * @memberof EventRequest
69
69
  */
70
- tenant?: any | null;
70
+ brand?: any | null;
71
71
  }
72
72
 
73
73
  /**
@@ -97,7 +97,7 @@ export function EventRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea
97
97
  'context': !exists(json, 'context') ? undefined : json['context'],
98
98
  'clientIp': !exists(json, 'client_ip') ? undefined : json['client_ip'],
99
99
  'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
100
- 'tenant': !exists(json, 'tenant') ? undefined : json['tenant'],
100
+ 'brand': !exists(json, 'brand') ? undefined : json['brand'],
101
101
  };
102
102
  }
103
103
 
@@ -116,7 +116,7 @@ export function EventRequestToJSON(value?: EventRequest | null): any {
116
116
  'context': value.context,
117
117
  'client_ip': value.clientIp,
118
118
  'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
119
- 'tenant': value.tenant,
119
+ 'brand': value.brand,
120
120
  };
121
121
  }
122
122