@goauthentik/api 2023.10.6-1705263684 → 2023.10.6-1706016512

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/.openapi-generator/FILES +16 -1
  2. package/dist/apis/AdminApi.d.ts +31 -1
  3. package/dist/apis/AdminApi.js +88 -0
  4. package/dist/apis/CoreApi.d.ts +104 -105
  5. package/dist/apis/CoreApi.js +228 -231
  6. package/dist/apis/EventsApi.d.ts +2 -2
  7. package/dist/apis/EventsApi.js +6 -6
  8. package/dist/apis/RbacApi.d.ts +4 -2
  9. package/dist/apis/RbacApi.js +4 -2
  10. package/dist/apis/TenantsApi.d.ts +184 -0
  11. package/dist/apis/TenantsApi.js +468 -0
  12. package/dist/apis/index.d.ts +1 -0
  13. package/dist/apis/index.js +1 -0
  14. package/dist/esm/apis/AdminApi.d.ts +31 -1
  15. package/dist/esm/apis/AdminApi.js +89 -1
  16. package/dist/esm/apis/CoreApi.d.ts +104 -105
  17. package/dist/esm/apis/CoreApi.js +229 -232
  18. package/dist/esm/apis/EventsApi.d.ts +2 -2
  19. package/dist/esm/apis/EventsApi.js +6 -6
  20. package/dist/esm/apis/RbacApi.d.ts +4 -2
  21. package/dist/esm/apis/RbacApi.js +4 -2
  22. package/dist/esm/apis/TenantsApi.d.ts +184 -0
  23. package/dist/esm/apis/TenantsApi.js +464 -0
  24. package/dist/esm/apis/index.d.ts +1 -0
  25. package/dist/esm/apis/index.js +1 -0
  26. package/dist/esm/models/AppEnum.d.ts +4 -2
  27. package/dist/esm/models/AppEnum.js +4 -2
  28. package/dist/esm/models/Brand.d.ts +109 -0
  29. package/dist/esm/models/Brand.js +70 -0
  30. package/dist/esm/models/BrandRequest.d.ts +103 -0
  31. package/dist/esm/models/BrandRequest.js +68 -0
  32. package/dist/esm/models/{CurrentTenant.d.ts → CurrentBrand.d.ts} +21 -21
  33. package/dist/esm/models/{CurrentTenant.js → CurrentBrand.js} +6 -6
  34. package/dist/esm/models/Domain.d.ts +49 -0
  35. package/dist/esm/models/Domain.js +51 -0
  36. package/dist/esm/models/DomainRequest.d.ts +43 -0
  37. package/dist/esm/models/DomainRequest.js +49 -0
  38. package/dist/esm/models/Event.d.ts +1 -1
  39. package/dist/esm/models/Event.js +2 -2
  40. package/dist/esm/models/EventRequest.d.ts +1 -1
  41. package/dist/esm/models/EventRequest.js +2 -2
  42. package/dist/esm/models/ModelEnum.d.ts +4 -2
  43. package/dist/esm/models/ModelEnum.js +4 -2
  44. package/dist/esm/models/PaginatedBrandList.d.ts +39 -0
  45. package/dist/esm/models/PaginatedBrandList.js +48 -0
  46. package/dist/esm/models/PaginatedDomainList.d.ts +39 -0
  47. package/dist/esm/models/PaginatedDomainList.js +48 -0
  48. package/dist/esm/models/PatchedBrandRequest.d.ts +103 -0
  49. package/dist/esm/models/PatchedBrandRequest.js +67 -0
  50. package/dist/esm/models/PatchedDomainRequest.d.ts +43 -0
  51. package/dist/esm/models/PatchedDomainRequest.js +47 -0
  52. package/dist/esm/models/PatchedEventRequest.d.ts +1 -1
  53. package/dist/esm/models/PatchedEventRequest.js +2 -2
  54. package/dist/esm/models/PatchedSettingsRequest.d.ts +73 -0
  55. package/dist/esm/models/PatchedSettingsRequest.js +57 -0
  56. package/dist/esm/models/PatchedTenantRequest.d.ts +4 -70
  57. package/dist/esm/models/PatchedTenantRequest.js +6 -28
  58. package/dist/esm/models/Settings.d.ts +73 -0
  59. package/dist/esm/models/Settings.js +57 -0
  60. package/dist/esm/models/SettingsRequest.d.ts +73 -0
  61. package/dist/esm/models/SettingsRequest.js +57 -0
  62. package/dist/esm/models/SystemInfo.d.ts +8 -2
  63. package/dist/esm/models/SystemInfo.js +4 -2
  64. package/dist/esm/models/Tenant.d.ts +4 -70
  65. package/dist/esm/models/Tenant.js +8 -29
  66. package/dist/esm/models/TenantAdminGroupRequestRequest.d.ts +31 -0
  67. package/dist/esm/models/TenantAdminGroupRequestRequest.js +43 -0
  68. package/dist/esm/models/TenantRecoveryKeyRequestRequest.d.ts +37 -0
  69. package/dist/esm/models/TenantRecoveryKeyRequestRequest.js +46 -0
  70. package/dist/esm/models/TenantRecoveryKeyResponse.d.ts +37 -0
  71. package/dist/esm/models/TenantRecoveryKeyResponse.js +46 -0
  72. package/dist/esm/models/TenantRequest.d.ts +4 -70
  73. package/dist/esm/models/TenantRequest.js +8 -29
  74. package/dist/esm/models/UserSelf.d.ts +1 -1
  75. package/dist/esm/models/index.d.ts +15 -1
  76. package/dist/esm/models/index.js +15 -1
  77. package/dist/models/AppEnum.d.ts +4 -2
  78. package/dist/models/AppEnum.js +4 -2
  79. package/dist/models/Brand.d.ts +109 -0
  80. package/dist/models/Brand.js +77 -0
  81. package/dist/models/BrandRequest.d.ts +103 -0
  82. package/dist/models/BrandRequest.js +75 -0
  83. package/dist/models/{CurrentTenant.d.ts → CurrentBrand.d.ts} +21 -21
  84. package/dist/models/{CurrentTenant.js → CurrentBrand.js} +11 -11
  85. package/dist/models/Domain.d.ts +49 -0
  86. package/dist/models/Domain.js +58 -0
  87. package/dist/models/DomainRequest.d.ts +43 -0
  88. package/dist/models/DomainRequest.js +56 -0
  89. package/dist/models/Event.d.ts +1 -1
  90. package/dist/models/Event.js +2 -2
  91. package/dist/models/EventRequest.d.ts +1 -1
  92. package/dist/models/EventRequest.js +2 -2
  93. package/dist/models/ModelEnum.d.ts +4 -2
  94. package/dist/models/ModelEnum.js +4 -2
  95. package/dist/models/PaginatedBrandList.d.ts +39 -0
  96. package/dist/models/PaginatedBrandList.js +55 -0
  97. package/dist/models/PaginatedDomainList.d.ts +39 -0
  98. package/dist/models/PaginatedDomainList.js +55 -0
  99. package/dist/models/PatchedBrandRequest.d.ts +103 -0
  100. package/dist/models/PatchedBrandRequest.js +74 -0
  101. package/dist/models/PatchedDomainRequest.d.ts +43 -0
  102. package/dist/models/PatchedDomainRequest.js +54 -0
  103. package/dist/models/PatchedEventRequest.d.ts +1 -1
  104. package/dist/models/PatchedEventRequest.js +2 -2
  105. package/dist/models/PatchedSettingsRequest.d.ts +73 -0
  106. package/dist/models/PatchedSettingsRequest.js +64 -0
  107. package/dist/models/PatchedTenantRequest.d.ts +4 -70
  108. package/dist/models/PatchedTenantRequest.js +6 -28
  109. package/dist/models/Settings.d.ts +73 -0
  110. package/dist/models/Settings.js +64 -0
  111. package/dist/models/SettingsRequest.d.ts +73 -0
  112. package/dist/models/SettingsRequest.js +64 -0
  113. package/dist/models/SystemInfo.d.ts +8 -2
  114. package/dist/models/SystemInfo.js +4 -2
  115. package/dist/models/Tenant.d.ts +4 -70
  116. package/dist/models/Tenant.js +8 -29
  117. package/dist/models/TenantAdminGroupRequestRequest.d.ts +31 -0
  118. package/dist/models/TenantAdminGroupRequestRequest.js +50 -0
  119. package/dist/models/TenantRecoveryKeyRequestRequest.d.ts +37 -0
  120. package/dist/models/TenantRecoveryKeyRequestRequest.js +53 -0
  121. package/dist/models/TenantRecoveryKeyResponse.d.ts +37 -0
  122. package/dist/models/TenantRecoveryKeyResponse.js +53 -0
  123. package/dist/models/TenantRequest.d.ts +4 -70
  124. package/dist/models/TenantRequest.js +8 -29
  125. package/dist/models/UserSelf.d.ts +1 -1
  126. package/dist/models/index.d.ts +15 -1
  127. package/dist/models/index.js +15 -1
  128. package/package.json +1 -1
  129. package/src/apis/AdminApi.ts +113 -0
  130. package/src/apis/CoreApi.ts +304 -309
  131. package/src/apis/EventsApi.ts +10 -10
  132. package/src/apis/RbacApi.ts +4 -2
  133. package/src/apis/TenantsApi.ts +615 -0
  134. package/src/apis/index.ts +1 -0
  135. package/src/models/AppEnum.ts +4 -2
  136. package/src/models/Brand.ts +170 -0
  137. package/src/models/BrandRequest.ts +162 -0
  138. package/src/models/{CurrentTenant.ts → CurrentBrand.ts} +22 -22
  139. package/src/models/Domain.ts +91 -0
  140. package/src/models/DomainRequest.ts +83 -0
  141. package/src/models/Event.ts +3 -3
  142. package/src/models/EventRequest.ts +3 -3
  143. package/src/models/ModelEnum.ts +4 -2
  144. package/src/models/PaginatedBrandList.ts +88 -0
  145. package/src/models/PaginatedDomainList.ts +88 -0
  146. package/src/models/PatchedBrandRequest.ts +161 -0
  147. package/src/models/PatchedDomainRequest.ts +81 -0
  148. package/src/models/PatchedEventRequest.ts +3 -3
  149. package/src/models/PatchedSettingsRequest.ts +121 -0
  150. package/src/models/PatchedTenantRequest.ts +10 -98
  151. package/src/models/Settings.ts +121 -0
  152. package/src/models/SettingsRequest.ts +121 -0
  153. package/src/models/SystemInfo.ts +12 -4
  154. package/src/models/Tenant.ts +12 -99
  155. package/src/models/TenantAdminGroupRequestRequest.ts +66 -0
  156. package/src/models/TenantRecoveryKeyRequestRequest.ts +75 -0
  157. package/src/models/TenantRecoveryKeyResponse.ts +75 -0
  158. package/src/models/TenantRequest.ts +12 -99
  159. package/src/models/UserSelf.ts +1 -1
  160. package/src/models/index.ts +15 -1
@@ -21,7 +21,8 @@ const runtime_1 = require("../runtime");
21
21
  function instanceOfTenant(value) {
22
22
  let isInstance = true;
23
23
  isInstance = isInstance && "tenantUuid" in value;
24
- isInstance = isInstance && "domain" in value;
24
+ isInstance = isInstance && "schemaName" in value;
25
+ isInstance = isInstance && "name" in value;
25
26
  return isInstance;
26
27
  }
27
28
  exports.instanceOfTenant = instanceOfTenant;
@@ -35,20 +36,9 @@ function TenantFromJSONTyped(json, ignoreDiscriminator) {
35
36
  }
36
37
  return {
37
38
  'tenantUuid': json['tenant_uuid'],
38
- 'domain': json['domain'],
39
- '_default': !(0, runtime_1.exists)(json, 'default') ? undefined : json['default'],
40
- 'brandingTitle': !(0, runtime_1.exists)(json, 'branding_title') ? undefined : json['branding_title'],
41
- 'brandingLogo': !(0, runtime_1.exists)(json, 'branding_logo') ? undefined : json['branding_logo'],
42
- 'brandingFavicon': !(0, runtime_1.exists)(json, 'branding_favicon') ? undefined : json['branding_favicon'],
43
- 'flowAuthentication': !(0, runtime_1.exists)(json, 'flow_authentication') ? undefined : json['flow_authentication'],
44
- 'flowInvalidation': !(0, runtime_1.exists)(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
45
- 'flowRecovery': !(0, runtime_1.exists)(json, 'flow_recovery') ? undefined : json['flow_recovery'],
46
- 'flowUnenrollment': !(0, runtime_1.exists)(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
47
- 'flowUserSettings': !(0, runtime_1.exists)(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
48
- 'flowDeviceCode': !(0, runtime_1.exists)(json, 'flow_device_code') ? undefined : json['flow_device_code'],
49
- 'eventRetention': !(0, runtime_1.exists)(json, 'event_retention') ? undefined : json['event_retention'],
50
- 'webCertificate': !(0, runtime_1.exists)(json, 'web_certificate') ? undefined : json['web_certificate'],
51
- 'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
39
+ 'schemaName': json['schema_name'],
40
+ 'name': json['name'],
41
+ 'ready': !(0, runtime_1.exists)(json, 'ready') ? undefined : json['ready'],
52
42
  };
53
43
  }
54
44
  exports.TenantFromJSONTyped = TenantFromJSONTyped;
@@ -60,20 +50,9 @@ function TenantToJSON(value) {
60
50
  return null;
61
51
  }
62
52
  return {
63
- 'domain': value.domain,
64
- 'default': value._default,
65
- 'branding_title': value.brandingTitle,
66
- 'branding_logo': value.brandingLogo,
67
- 'branding_favicon': value.brandingFavicon,
68
- 'flow_authentication': value.flowAuthentication,
69
- 'flow_invalidation': value.flowInvalidation,
70
- 'flow_recovery': value.flowRecovery,
71
- 'flow_unenrollment': value.flowUnenrollment,
72
- 'flow_user_settings': value.flowUserSettings,
73
- 'flow_device_code': value.flowDeviceCode,
74
- 'event_retention': value.eventRetention,
75
- 'web_certificate': value.webCertificate,
76
- 'attributes': value.attributes,
53
+ 'schema_name': value.schemaName,
54
+ 'name': value.name,
55
+ 'ready': value.ready,
77
56
  };
78
57
  }
79
58
  exports.TenantToJSON = TenantToJSON;
@@ -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,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2023.10.6
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TenantAdminGroupRequestRequestToJSON = exports.TenantAdminGroupRequestRequestFromJSONTyped = exports.TenantAdminGroupRequestRequestFromJSON = exports.instanceOfTenantAdminGroupRequestRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the TenantAdminGroupRequestRequest interface.
19
+ */
20
+ function instanceOfTenantAdminGroupRequestRequest(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "user" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfTenantAdminGroupRequestRequest = instanceOfTenantAdminGroupRequestRequest;
26
+ function TenantAdminGroupRequestRequestFromJSON(json) {
27
+ return TenantAdminGroupRequestRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.TenantAdminGroupRequestRequestFromJSON = TenantAdminGroupRequestRequestFromJSON;
30
+ function TenantAdminGroupRequestRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'user': json['user'],
36
+ };
37
+ }
38
+ exports.TenantAdminGroupRequestRequestFromJSONTyped = TenantAdminGroupRequestRequestFromJSONTyped;
39
+ function TenantAdminGroupRequestRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'user': value.user,
48
+ };
49
+ }
50
+ exports.TenantAdminGroupRequestRequestToJSON = TenantAdminGroupRequestRequestToJSON;
@@ -0,0 +1,37 @@
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 recovery key creation request serializer
14
+ * @export
15
+ * @interface TenantRecoveryKeyRequestRequest
16
+ */
17
+ export interface TenantRecoveryKeyRequestRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TenantRecoveryKeyRequestRequest
22
+ */
23
+ user: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof TenantRecoveryKeyRequestRequest
28
+ */
29
+ durationDays: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the TenantRecoveryKeyRequestRequest interface.
33
+ */
34
+ export declare function instanceOfTenantRecoveryKeyRequestRequest(value: object): boolean;
35
+ export declare function TenantRecoveryKeyRequestRequestFromJSON(json: any): TenantRecoveryKeyRequestRequest;
36
+ export declare function TenantRecoveryKeyRequestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantRecoveryKeyRequestRequest;
37
+ export declare function TenantRecoveryKeyRequestRequestToJSON(value?: TenantRecoveryKeyRequestRequest | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2023.10.6
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TenantRecoveryKeyRequestRequestToJSON = exports.TenantRecoveryKeyRequestRequestFromJSONTyped = exports.TenantRecoveryKeyRequestRequestFromJSON = exports.instanceOfTenantRecoveryKeyRequestRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the TenantRecoveryKeyRequestRequest interface.
19
+ */
20
+ function instanceOfTenantRecoveryKeyRequestRequest(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "user" in value;
23
+ isInstance = isInstance && "durationDays" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfTenantRecoveryKeyRequestRequest = instanceOfTenantRecoveryKeyRequestRequest;
27
+ function TenantRecoveryKeyRequestRequestFromJSON(json) {
28
+ return TenantRecoveryKeyRequestRequestFromJSONTyped(json, false);
29
+ }
30
+ exports.TenantRecoveryKeyRequestRequestFromJSON = TenantRecoveryKeyRequestRequestFromJSON;
31
+ function TenantRecoveryKeyRequestRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'user': json['user'],
37
+ 'durationDays': json['duration_days'],
38
+ };
39
+ }
40
+ exports.TenantRecoveryKeyRequestRequestFromJSONTyped = TenantRecoveryKeyRequestRequestFromJSONTyped;
41
+ function TenantRecoveryKeyRequestRequestToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'user': value.user,
50
+ 'duration_days': value.durationDays,
51
+ };
52
+ }
53
+ exports.TenantRecoveryKeyRequestRequestToJSON = TenantRecoveryKeyRequestRequestToJSON;
@@ -0,0 +1,37 @@
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 recovery key creation response serializer
14
+ * @export
15
+ * @interface TenantRecoveryKeyResponse
16
+ */
17
+ export interface TenantRecoveryKeyResponse {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof TenantRecoveryKeyResponse
22
+ */
23
+ expiry: Date;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TenantRecoveryKeyResponse
28
+ */
29
+ url: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the TenantRecoveryKeyResponse interface.
33
+ */
34
+ export declare function instanceOfTenantRecoveryKeyResponse(value: object): boolean;
35
+ export declare function TenantRecoveryKeyResponseFromJSON(json: any): TenantRecoveryKeyResponse;
36
+ export declare function TenantRecoveryKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantRecoveryKeyResponse;
37
+ export declare function TenantRecoveryKeyResponseToJSON(value?: TenantRecoveryKeyResponse | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2023.10.6
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TenantRecoveryKeyResponseToJSON = exports.TenantRecoveryKeyResponseFromJSONTyped = exports.TenantRecoveryKeyResponseFromJSON = exports.instanceOfTenantRecoveryKeyResponse = void 0;
17
+ /**
18
+ * Check if a given object implements the TenantRecoveryKeyResponse interface.
19
+ */
20
+ function instanceOfTenantRecoveryKeyResponse(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "expiry" in value;
23
+ isInstance = isInstance && "url" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfTenantRecoveryKeyResponse = instanceOfTenantRecoveryKeyResponse;
27
+ function TenantRecoveryKeyResponseFromJSON(json) {
28
+ return TenantRecoveryKeyResponseFromJSONTyped(json, false);
29
+ }
30
+ exports.TenantRecoveryKeyResponseFromJSON = TenantRecoveryKeyResponseFromJSON;
31
+ function TenantRecoveryKeyResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'expiry': (new Date(json['expiry'])),
37
+ 'url': json['url'],
38
+ };
39
+ }
40
+ exports.TenantRecoveryKeyResponseFromJSONTyped = TenantRecoveryKeyResponseFromJSONTyped;
41
+ function TenantRecoveryKeyResponseToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'expiry': (value.expiry.toISOString()),
50
+ 'url': value.url,
51
+ };
52
+ }
53
+ exports.TenantRecoveryKeyResponseToJSON = TenantRecoveryKeyResponseToJSON;
@@ -15,90 +15,24 @@
15
15
  * @interface TenantRequest
16
16
  */
17
17
  export interface TenantRequest {
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 TenantRequest
22
- */
23
- domain: string;
24
- /**
25
- *
26
- * @type {boolean}
27
- * @memberof TenantRequest
28
- */
29
- _default?: boolean;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof TenantRequest
34
- */
35
- brandingTitle?: string;
36
18
  /**
37
19
  *
38
20
  * @type {string}
39
21
  * @memberof TenantRequest
40
22
  */
41
- brandingLogo?: string;
23
+ schemaName: string;
42
24
  /**
43
25
  *
44
26
  * @type {string}
45
27
  * @memberof TenantRequest
46
28
  */
47
- brandingFavicon?: string;
29
+ name: string;
48
30
  /**
49
31
  *
50
- * @type {string}
51
- * @memberof TenantRequest
52
- */
53
- flowAuthentication?: string | null;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof TenantRequest
58
- */
59
- flowInvalidation?: string | null;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof TenantRequest
64
- */
65
- flowRecovery?: string | null;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof TenantRequest
70
- */
71
- flowUnenrollment?: string | null;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof TenantRequest
76
- */
77
- flowUserSettings?: string | null;
78
- /**
79
- *
80
- * @type {string}
81
- * @memberof TenantRequest
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 TenantRequest
88
- */
89
- eventRetention?: string;
90
- /**
91
- * Web Certificate used by the authentik Core webserver.
92
- * @type {string}
93
- * @memberof TenantRequest
94
- */
95
- webCertificate?: string | null;
96
- /**
97
- *
98
- * @type {any}
32
+ * @type {boolean}
99
33
  * @memberof TenantRequest
100
34
  */
101
- attributes?: any | null;
35
+ ready?: boolean;
102
36
  }
103
37
  /**
104
38
  * Check if a given object implements the TenantRequest interface.
@@ -20,7 +20,8 @@ const runtime_1 = require("../runtime");
20
20
  */
21
21
  function instanceOfTenantRequest(value) {
22
22
  let isInstance = true;
23
- isInstance = isInstance && "domain" in value;
23
+ isInstance = isInstance && "schemaName" in value;
24
+ isInstance = isInstance && "name" in value;
24
25
  return isInstance;
25
26
  }
26
27
  exports.instanceOfTenantRequest = instanceOfTenantRequest;
@@ -33,20 +34,9 @@ function TenantRequestFromJSONTyped(json, ignoreDiscriminator) {
33
34
  return json;
34
35
  }
35
36
  return {
36
- 'domain': json['domain'],
37
- '_default': !(0, runtime_1.exists)(json, 'default') ? undefined : json['default'],
38
- 'brandingTitle': !(0, runtime_1.exists)(json, 'branding_title') ? undefined : json['branding_title'],
39
- 'brandingLogo': !(0, runtime_1.exists)(json, 'branding_logo') ? undefined : json['branding_logo'],
40
- 'brandingFavicon': !(0, runtime_1.exists)(json, 'branding_favicon') ? undefined : json['branding_favicon'],
41
- 'flowAuthentication': !(0, runtime_1.exists)(json, 'flow_authentication') ? undefined : json['flow_authentication'],
42
- 'flowInvalidation': !(0, runtime_1.exists)(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],
43
- 'flowRecovery': !(0, runtime_1.exists)(json, 'flow_recovery') ? undefined : json['flow_recovery'],
44
- 'flowUnenrollment': !(0, runtime_1.exists)(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
45
- 'flowUserSettings': !(0, runtime_1.exists)(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
46
- 'flowDeviceCode': !(0, runtime_1.exists)(json, 'flow_device_code') ? undefined : json['flow_device_code'],
47
- 'eventRetention': !(0, runtime_1.exists)(json, 'event_retention') ? undefined : json['event_retention'],
48
- 'webCertificate': !(0, runtime_1.exists)(json, 'web_certificate') ? undefined : json['web_certificate'],
49
- 'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
37
+ 'schemaName': json['schema_name'],
38
+ 'name': json['name'],
39
+ 'ready': !(0, runtime_1.exists)(json, 'ready') ? undefined : json['ready'],
50
40
  };
51
41
  }
52
42
  exports.TenantRequestFromJSONTyped = TenantRequestFromJSONTyped;
@@ -58,20 +48,9 @@ function TenantRequestToJSON(value) {
58
48
  return null;
59
49
  }
60
50
  return {
61
- 'domain': value.domain,
62
- 'default': value._default,
63
- 'branding_title': value.brandingTitle,
64
- 'branding_logo': value.brandingLogo,
65
- 'branding_favicon': value.brandingFavicon,
66
- 'flow_authentication': value.flowAuthentication,
67
- 'flow_invalidation': value.flowInvalidation,
68
- 'flow_recovery': value.flowRecovery,
69
- 'flow_unenrollment': value.flowUnenrollment,
70
- 'flow_user_settings': value.flowUserSettings,
71
- 'flow_device_code': value.flowDeviceCode,
72
- 'event_retention': value.eventRetention,
73
- 'web_certificate': value.webCertificate,
74
- 'attributes': value.attributes,
51
+ 'schema_name': value.schemaName,
52
+ 'name': value.name,
53
+ 'ready': value.ready,
75
54
  };
76
55
  }
77
56
  exports.TenantRequestToJSON = TenantRequestToJSON;
@@ -72,7 +72,7 @@ export interface UserSelf {
72
72
  */
73
73
  readonly uid: string;
74
74
  /**
75
- * Get user settings with tenant and group settings applied
75
+ * Get user settings with brand and group settings applied
76
76
  * @type {{ [key: string]: any; }}
77
77
  * @memberof UserSelf
78
78
  */
@@ -50,6 +50,8 @@ export * from './BlueprintFile';
50
50
  export * from './BlueprintInstance';
51
51
  export * from './BlueprintInstanceRequest';
52
52
  export * from './BlueprintInstanceStatusEnum';
53
+ export * from './Brand';
54
+ export * from './BrandRequest';
53
55
  export * from './Cache';
54
56
  export * from './CapabilitiesEnum';
55
57
  export * from './CaptchaChallenge';
@@ -73,7 +75,7 @@ export * from './ConsentStageRequest';
73
75
  export * from './ContextualFlowInfo';
74
76
  export * from './ContextualFlowInfoLayoutEnum';
75
77
  export * from './Coordinate';
76
- export * from './CurrentTenant';
78
+ export * from './CurrentBrand';
77
79
  export * from './DeniedActionEnum';
78
80
  export * from './DenyStage';
79
81
  export * from './DenyStageRequest';
@@ -85,6 +87,8 @@ export * from './DigestAlgorithmEnum';
85
87
  export * from './DigitsEnum';
86
88
  export * from './DockerServiceConnection';
87
89
  export * from './DockerServiceConnectionRequest';
90
+ export * from './Domain';
91
+ export * from './DomainRequest';
88
92
  export * from './DummyChallenge';
89
93
  export * from './DummyChallengeResponseRequest';
90
94
  export * from './DummyPolicy';
@@ -208,11 +212,13 @@ export * from './PaginatedAuthenticatorStaticStageList';
208
212
  export * from './PaginatedAuthenticatorTOTPStageList';
209
213
  export * from './PaginatedAuthenticatorValidateStageList';
210
214
  export * from './PaginatedBlueprintInstanceList';
215
+ export * from './PaginatedBrandList';
211
216
  export * from './PaginatedCaptchaStageList';
212
217
  export * from './PaginatedCertificateKeyPairList';
213
218
  export * from './PaginatedConsentStageList';
214
219
  export * from './PaginatedDenyStageList';
215
220
  export * from './PaginatedDockerServiceConnectionList';
221
+ export * from './PaginatedDomainList';
216
222
  export * from './PaginatedDummyPolicyList';
217
223
  export * from './PaginatedDummyStageList';
218
224
  export * from './PaginatedDuoDeviceList';
@@ -308,11 +314,13 @@ export * from './PatchedAuthenticatorStaticStageRequest';
308
314
  export * from './PatchedAuthenticatorTOTPStageRequest';
309
315
  export * from './PatchedAuthenticatorValidateStageRequest';
310
316
  export * from './PatchedBlueprintInstanceRequest';
317
+ export * from './PatchedBrandRequest';
311
318
  export * from './PatchedCaptchaStageRequest';
312
319
  export * from './PatchedCertificateKeyPairRequest';
313
320
  export * from './PatchedConsentStageRequest';
314
321
  export * from './PatchedDenyStageRequest';
315
322
  export * from './PatchedDockerServiceConnectionRequest';
323
+ export * from './PatchedDomainRequest';
316
324
  export * from './PatchedDummyPolicyRequest';
317
325
  export * from './PatchedDummyStageRequest';
318
326
  export * from './PatchedDuoDeviceRequest';
@@ -361,6 +369,7 @@ export * from './PatchedSCIMMappingRequest';
361
369
  export * from './PatchedSCIMProviderRequest';
362
370
  export * from './PatchedSMSDeviceRequest';
363
371
  export * from './PatchedScopeMappingRequest';
372
+ export * from './PatchedSettingsRequest';
364
373
  export * from './PatchedStaticDeviceRequest';
365
374
  export * from './PatchedTOTPDeviceRequest';
366
375
  export * from './PatchedTenantRequest';
@@ -446,6 +455,8 @@ export * from './ServiceConnection';
446
455
  export * from './ServiceConnectionRequest';
447
456
  export * from './ServiceConnectionState';
448
457
  export * from './SessionUser';
458
+ export * from './Settings';
459
+ export * from './SettingsRequest';
449
460
  export * from './SeverityEnum';
450
461
  export * from './ShellChallenge';
451
462
  export * from './SignatureAlgorithmEnum';
@@ -468,6 +479,9 @@ export * from './TOTPDeviceRequest';
468
479
  export * from './Task';
469
480
  export * from './TaskStatusEnum';
470
481
  export * from './Tenant';
482
+ export * from './TenantAdminGroupRequestRequest';
483
+ export * from './TenantRecoveryKeyRequestRequest';
484
+ export * from './TenantRecoveryKeyResponse';
471
485
  export * from './TenantRequest';
472
486
  export * from './Token';
473
487
  export * from './TokenModel';
@@ -68,6 +68,8 @@ __exportStar(require("./BlueprintFile"), exports);
68
68
  __exportStar(require("./BlueprintInstance"), exports);
69
69
  __exportStar(require("./BlueprintInstanceRequest"), exports);
70
70
  __exportStar(require("./BlueprintInstanceStatusEnum"), exports);
71
+ __exportStar(require("./Brand"), exports);
72
+ __exportStar(require("./BrandRequest"), exports);
71
73
  __exportStar(require("./Cache"), exports);
72
74
  __exportStar(require("./CapabilitiesEnum"), exports);
73
75
  __exportStar(require("./CaptchaChallenge"), exports);
@@ -91,7 +93,7 @@ __exportStar(require("./ConsentStageRequest"), exports);
91
93
  __exportStar(require("./ContextualFlowInfo"), exports);
92
94
  __exportStar(require("./ContextualFlowInfoLayoutEnum"), exports);
93
95
  __exportStar(require("./Coordinate"), exports);
94
- __exportStar(require("./CurrentTenant"), exports);
96
+ __exportStar(require("./CurrentBrand"), exports);
95
97
  __exportStar(require("./DeniedActionEnum"), exports);
96
98
  __exportStar(require("./DenyStage"), exports);
97
99
  __exportStar(require("./DenyStageRequest"), exports);
@@ -103,6 +105,8 @@ __exportStar(require("./DigestAlgorithmEnum"), exports);
103
105
  __exportStar(require("./DigitsEnum"), exports);
104
106
  __exportStar(require("./DockerServiceConnection"), exports);
105
107
  __exportStar(require("./DockerServiceConnectionRequest"), exports);
108
+ __exportStar(require("./Domain"), exports);
109
+ __exportStar(require("./DomainRequest"), exports);
106
110
  __exportStar(require("./DummyChallenge"), exports);
107
111
  __exportStar(require("./DummyChallengeResponseRequest"), exports);
108
112
  __exportStar(require("./DummyPolicy"), exports);
@@ -226,11 +230,13 @@ __exportStar(require("./PaginatedAuthenticatorStaticStageList"), exports);
226
230
  __exportStar(require("./PaginatedAuthenticatorTOTPStageList"), exports);
227
231
  __exportStar(require("./PaginatedAuthenticatorValidateStageList"), exports);
228
232
  __exportStar(require("./PaginatedBlueprintInstanceList"), exports);
233
+ __exportStar(require("./PaginatedBrandList"), exports);
229
234
  __exportStar(require("./PaginatedCaptchaStageList"), exports);
230
235
  __exportStar(require("./PaginatedCertificateKeyPairList"), exports);
231
236
  __exportStar(require("./PaginatedConsentStageList"), exports);
232
237
  __exportStar(require("./PaginatedDenyStageList"), exports);
233
238
  __exportStar(require("./PaginatedDockerServiceConnectionList"), exports);
239
+ __exportStar(require("./PaginatedDomainList"), exports);
234
240
  __exportStar(require("./PaginatedDummyPolicyList"), exports);
235
241
  __exportStar(require("./PaginatedDummyStageList"), exports);
236
242
  __exportStar(require("./PaginatedDuoDeviceList"), exports);
@@ -326,11 +332,13 @@ __exportStar(require("./PatchedAuthenticatorStaticStageRequest"), exports);
326
332
  __exportStar(require("./PatchedAuthenticatorTOTPStageRequest"), exports);
327
333
  __exportStar(require("./PatchedAuthenticatorValidateStageRequest"), exports);
328
334
  __exportStar(require("./PatchedBlueprintInstanceRequest"), exports);
335
+ __exportStar(require("./PatchedBrandRequest"), exports);
329
336
  __exportStar(require("./PatchedCaptchaStageRequest"), exports);
330
337
  __exportStar(require("./PatchedCertificateKeyPairRequest"), exports);
331
338
  __exportStar(require("./PatchedConsentStageRequest"), exports);
332
339
  __exportStar(require("./PatchedDenyStageRequest"), exports);
333
340
  __exportStar(require("./PatchedDockerServiceConnectionRequest"), exports);
341
+ __exportStar(require("./PatchedDomainRequest"), exports);
334
342
  __exportStar(require("./PatchedDummyPolicyRequest"), exports);
335
343
  __exportStar(require("./PatchedDummyStageRequest"), exports);
336
344
  __exportStar(require("./PatchedDuoDeviceRequest"), exports);
@@ -379,6 +387,7 @@ __exportStar(require("./PatchedSCIMMappingRequest"), exports);
379
387
  __exportStar(require("./PatchedSCIMProviderRequest"), exports);
380
388
  __exportStar(require("./PatchedSMSDeviceRequest"), exports);
381
389
  __exportStar(require("./PatchedScopeMappingRequest"), exports);
390
+ __exportStar(require("./PatchedSettingsRequest"), exports);
382
391
  __exportStar(require("./PatchedStaticDeviceRequest"), exports);
383
392
  __exportStar(require("./PatchedTOTPDeviceRequest"), exports);
384
393
  __exportStar(require("./PatchedTenantRequest"), exports);
@@ -464,6 +473,8 @@ __exportStar(require("./ServiceConnection"), exports);
464
473
  __exportStar(require("./ServiceConnectionRequest"), exports);
465
474
  __exportStar(require("./ServiceConnectionState"), exports);
466
475
  __exportStar(require("./SessionUser"), exports);
476
+ __exportStar(require("./Settings"), exports);
477
+ __exportStar(require("./SettingsRequest"), exports);
467
478
  __exportStar(require("./SeverityEnum"), exports);
468
479
  __exportStar(require("./ShellChallenge"), exports);
469
480
  __exportStar(require("./SignatureAlgorithmEnum"), exports);
@@ -486,6 +497,9 @@ __exportStar(require("./TOTPDeviceRequest"), exports);
486
497
  __exportStar(require("./Task"), exports);
487
498
  __exportStar(require("./TaskStatusEnum"), exports);
488
499
  __exportStar(require("./Tenant"), exports);
500
+ __exportStar(require("./TenantAdminGroupRequestRequest"), exports);
501
+ __exportStar(require("./TenantRecoveryKeyRequestRequest"), exports);
502
+ __exportStar(require("./TenantRecoveryKeyResponse"), exports);
489
503
  __exportStar(require("./TenantRequest"), exports);
490
504
  __exportStar(require("./Token"), exports);
491
505
  __exportStar(require("./TokenModel"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.10.6-1705263684",
3
+ "version": "2023.10.6-1706016512",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {