@goauthentik/api 2023.8.3-1696847703 → 2023.8.3-1697470337

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 (147) hide show
  1. package/.openapi-generator/FILES +19 -0
  2. package/dist/apis/RbacApi.d.ts +403 -0
  3. package/dist/apis/RbacApi.js +840 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +1 -0
  6. package/dist/esm/apis/RbacApi.d.ts +403 -0
  7. package/dist/esm/apis/RbacApi.js +836 -0
  8. package/dist/esm/apis/index.d.ts +1 -0
  9. package/dist/esm/apis/index.js +1 -0
  10. package/dist/esm/models/AppEnum.d.ts +2 -0
  11. package/dist/esm/models/AppEnum.js +2 -0
  12. package/dist/esm/models/ConsentChallenge.d.ts +5 -5
  13. package/dist/esm/models/ConsentChallenge.js +5 -5
  14. package/dist/esm/models/ConsentPermission.d.ts +37 -0
  15. package/dist/esm/models/ConsentPermission.js +46 -0
  16. package/dist/esm/models/ExtraRoleObjectPermission.d.ts +81 -0
  17. package/dist/esm/models/ExtraRoleObjectPermission.js +57 -0
  18. package/dist/esm/models/ExtraUserObjectPermission.d.ts +81 -0
  19. package/dist/esm/models/ExtraUserObjectPermission.js +57 -0
  20. package/dist/esm/models/Group.d.ts +15 -2
  21. package/dist/esm/models/Group.js +6 -1
  22. package/dist/esm/models/GroupRequest.d.ts +6 -0
  23. package/dist/esm/models/GroupRequest.js +2 -0
  24. package/dist/esm/models/ModelEnum.d.ts +8 -4
  25. package/dist/esm/models/ModelEnum.js +8 -4
  26. package/dist/esm/models/PaginatedExtraRoleObjectPermissionList.d.ts +39 -0
  27. package/dist/esm/models/PaginatedExtraRoleObjectPermissionList.js +48 -0
  28. package/dist/esm/models/PaginatedExtraUserObjectPermissionList.d.ts +39 -0
  29. package/dist/esm/models/PaginatedExtraUserObjectPermissionList.js +48 -0
  30. package/dist/esm/models/PaginatedPermissionList.d.ts +39 -0
  31. package/dist/esm/models/PaginatedPermissionList.js +48 -0
  32. package/dist/esm/models/PaginatedRoleAssignedObjectPermissionList.d.ts +39 -0
  33. package/dist/esm/models/PaginatedRoleAssignedObjectPermissionList.js +48 -0
  34. package/dist/esm/models/PaginatedRoleList.d.ts +39 -0
  35. package/dist/esm/models/PaginatedRoleList.js +48 -0
  36. package/dist/esm/models/PaginatedUserAssignedObjectPermissionList.d.ts +39 -0
  37. package/dist/esm/models/PaginatedUserAssignedObjectPermissionList.js +48 -0
  38. package/dist/esm/models/PatchedGroupRequest.d.ts +6 -0
  39. package/dist/esm/models/PatchedGroupRequest.js +2 -0
  40. package/dist/esm/models/PatchedPermissionAssignRequest.d.ts +44 -0
  41. package/dist/esm/models/PatchedPermissionAssignRequest.js +48 -0
  42. package/dist/esm/models/PatchedRoleRequest.d.ts +31 -0
  43. package/dist/esm/models/PatchedRoleRequest.js +43 -0
  44. package/dist/esm/models/Permission.d.ts +32 -2
  45. package/dist/esm/models/Permission.js +13 -3
  46. package/dist/esm/models/PermissionAssignRequest.d.ts +44 -0
  47. package/dist/esm/models/PermissionAssignRequest.js +49 -0
  48. package/dist/esm/models/Role.d.ts +37 -0
  49. package/dist/esm/models/Role.js +45 -0
  50. package/dist/esm/models/RoleAssignedObjectPermission.d.ts +44 -0
  51. package/dist/esm/models/RoleAssignedObjectPermission.js +48 -0
  52. package/dist/esm/models/RoleObjectPermission.d.ts +61 -0
  53. package/dist/esm/models/RoleObjectPermission.js +51 -0
  54. package/dist/esm/models/RoleRequest.d.ts +31 -0
  55. package/dist/esm/models/RoleRequest.js +43 -0
  56. package/dist/esm/models/UserAssignedObjectPermission.d.ts +88 -0
  57. package/dist/esm/models/UserAssignedObjectPermission.js +66 -0
  58. package/dist/esm/models/UserObjectPermission.d.ts +61 -0
  59. package/dist/esm/models/UserObjectPermission.js +51 -0
  60. package/dist/esm/models/UserSelf.d.ts +6 -0
  61. package/dist/esm/models/UserSelf.js +2 -0
  62. package/dist/esm/models/index.d.ts +18 -0
  63. package/dist/esm/models/index.js +18 -0
  64. package/dist/models/AppEnum.d.ts +2 -0
  65. package/dist/models/AppEnum.js +2 -0
  66. package/dist/models/ConsentChallenge.d.ts +5 -5
  67. package/dist/models/ConsentChallenge.js +5 -5
  68. package/dist/models/ConsentPermission.d.ts +37 -0
  69. package/dist/models/ConsentPermission.js +53 -0
  70. package/dist/models/ExtraRoleObjectPermission.d.ts +81 -0
  71. package/dist/models/ExtraRoleObjectPermission.js +64 -0
  72. package/dist/models/ExtraUserObjectPermission.d.ts +81 -0
  73. package/dist/models/ExtraUserObjectPermission.js +64 -0
  74. package/dist/models/Group.d.ts +15 -2
  75. package/dist/models/Group.js +6 -1
  76. package/dist/models/GroupRequest.d.ts +6 -0
  77. package/dist/models/GroupRequest.js +2 -0
  78. package/dist/models/ModelEnum.d.ts +8 -4
  79. package/dist/models/ModelEnum.js +8 -4
  80. package/dist/models/PaginatedExtraRoleObjectPermissionList.d.ts +39 -0
  81. package/dist/models/PaginatedExtraRoleObjectPermissionList.js +55 -0
  82. package/dist/models/PaginatedExtraUserObjectPermissionList.d.ts +39 -0
  83. package/dist/models/PaginatedExtraUserObjectPermissionList.js +55 -0
  84. package/dist/models/PaginatedPermissionList.d.ts +39 -0
  85. package/dist/models/PaginatedPermissionList.js +55 -0
  86. package/dist/models/PaginatedRoleAssignedObjectPermissionList.d.ts +39 -0
  87. package/dist/models/PaginatedRoleAssignedObjectPermissionList.js +55 -0
  88. package/dist/models/PaginatedRoleList.d.ts +39 -0
  89. package/dist/models/PaginatedRoleList.js +55 -0
  90. package/dist/models/PaginatedUserAssignedObjectPermissionList.d.ts +39 -0
  91. package/dist/models/PaginatedUserAssignedObjectPermissionList.js +55 -0
  92. package/dist/models/PatchedGroupRequest.d.ts +6 -0
  93. package/dist/models/PatchedGroupRequest.js +2 -0
  94. package/dist/models/PatchedPermissionAssignRequest.d.ts +44 -0
  95. package/dist/models/PatchedPermissionAssignRequest.js +55 -0
  96. package/dist/models/PatchedRoleRequest.d.ts +31 -0
  97. package/dist/models/PatchedRoleRequest.js +50 -0
  98. package/dist/models/Permission.d.ts +32 -2
  99. package/dist/models/Permission.js +13 -3
  100. package/dist/models/PermissionAssignRequest.d.ts +44 -0
  101. package/dist/models/PermissionAssignRequest.js +56 -0
  102. package/dist/models/Role.d.ts +37 -0
  103. package/dist/models/Role.js +52 -0
  104. package/dist/models/RoleAssignedObjectPermission.d.ts +44 -0
  105. package/dist/models/RoleAssignedObjectPermission.js +55 -0
  106. package/dist/models/RoleObjectPermission.d.ts +61 -0
  107. package/dist/models/RoleObjectPermission.js +58 -0
  108. package/dist/models/RoleRequest.d.ts +31 -0
  109. package/dist/models/RoleRequest.js +50 -0
  110. package/dist/models/UserAssignedObjectPermission.d.ts +88 -0
  111. package/dist/models/UserAssignedObjectPermission.js +73 -0
  112. package/dist/models/UserObjectPermission.d.ts +61 -0
  113. package/dist/models/UserObjectPermission.js +58 -0
  114. package/dist/models/UserSelf.d.ts +6 -0
  115. package/dist/models/UserSelf.js +2 -0
  116. package/dist/models/index.d.ts +18 -0
  117. package/dist/models/index.js +18 -0
  118. package/package.json +1 -1
  119. package/src/apis/RbacApi.ts +1081 -0
  120. package/src/apis/index.ts +1 -0
  121. package/src/models/AppEnum.ts +2 -0
  122. package/src/models/ConsentChallenge.ts +14 -14
  123. package/src/models/ConsentPermission.ts +75 -0
  124. package/src/models/ExtraRoleObjectPermission.ts +131 -0
  125. package/src/models/ExtraUserObjectPermission.ts +131 -0
  126. package/src/models/Group.ts +25 -3
  127. package/src/models/GroupRequest.ts +8 -0
  128. package/src/models/ModelEnum.ts +8 -4
  129. package/src/models/PaginatedExtraRoleObjectPermissionList.ts +88 -0
  130. package/src/models/PaginatedExtraUserObjectPermissionList.ts +88 -0
  131. package/src/models/PaginatedPermissionList.ts +88 -0
  132. package/src/models/PaginatedRoleAssignedObjectPermissionList.ts +88 -0
  133. package/src/models/PaginatedRoleList.ts +88 -0
  134. package/src/models/PaginatedUserAssignedObjectPermissionList.ts +88 -0
  135. package/src/models/PatchedGroupRequest.ts +8 -0
  136. package/src/models/PatchedPermissionAssignRequest.ts +88 -0
  137. package/src/models/PatchedRoleRequest.ts +65 -0
  138. package/src/models/Permission.ts +45 -5
  139. package/src/models/PermissionAssignRequest.ts +89 -0
  140. package/src/models/Role.ts +74 -0
  141. package/src/models/RoleAssignedObjectPermission.ts +89 -0
  142. package/src/models/RoleObjectPermission.ts +105 -0
  143. package/src/models/RoleRequest.ts +66 -0
  144. package/src/models/UserAssignedObjectPermission.ts +148 -0
  145. package/src/models/UserObjectPermission.ts +105 -0
  146. package/src/models/UserSelf.ts +8 -0
  147. package/src/models/index.ts +18 -0
@@ -11,6 +11,7 @@ export * from './OutpostsApi';
11
11
  export * from './PoliciesApi';
12
12
  export * from './PropertymappingsApi';
13
13
  export * from './ProvidersApi';
14
+ export * from './RbacApi';
14
15
  export * from './RootApi';
15
16
  export * from './SchemaApi';
16
17
  export * from './SourcesApi';
@@ -13,6 +13,7 @@ export * from './OutpostsApi';
13
13
  export * from './PoliciesApi';
14
14
  export * from './PropertymappingsApi';
15
15
  export * from './ProvidersApi';
16
+ export * from './RbacApi';
16
17
  export * from './RootApi';
17
18
  export * from './SchemaApi';
18
19
  export * from './SourcesApi';
@@ -29,6 +29,7 @@
29
29
  * * `authentik.providers.radius` - authentik Providers.Radius
30
30
  * * `authentik.providers.saml` - authentik Providers.SAML
31
31
  * * `authentik.providers.scim` - authentik Providers.SCIM
32
+ * * `authentik.rbac` - authentik RBAC
32
33
  * * `authentik.recovery` - authentik Recovery
33
34
  * * `authentik.sources.ldap` - authentik Sources.LDAP
34
35
  * * `authentik.sources.oauth` - authentik Sources.OAuth
@@ -80,6 +81,7 @@ export declare const AppEnum: {
80
81
  readonly ProvidersRadius: "authentik.providers.radius";
81
82
  readonly ProvidersSaml: "authentik.providers.saml";
82
83
  readonly ProvidersScim: "authentik.providers.scim";
84
+ readonly Rbac: "authentik.rbac";
83
85
  readonly Recovery: "authentik.recovery";
84
86
  readonly SourcesLdap: "authentik.sources.ldap";
85
87
  readonly SourcesOauth: "authentik.sources.oauth";
@@ -31,6 +31,7 @@
31
31
  * * `authentik.providers.radius` - authentik Providers.Radius
32
32
  * * `authentik.providers.saml` - authentik Providers.SAML
33
33
  * * `authentik.providers.scim` - authentik Providers.SCIM
34
+ * * `authentik.rbac` - authentik RBAC
34
35
  * * `authentik.recovery` - authentik Recovery
35
36
  * * `authentik.sources.ldap` - authentik Sources.LDAP
36
37
  * * `authentik.sources.oauth` - authentik Sources.OAuth
@@ -82,6 +83,7 @@ export const AppEnum = {
82
83
  ProvidersRadius: 'authentik.providers.radius',
83
84
  ProvidersSaml: 'authentik.providers.saml',
84
85
  ProvidersScim: 'authentik.providers.scim',
86
+ Rbac: 'authentik.rbac',
85
87
  Recovery: 'authentik.recovery',
86
88
  SourcesLdap: 'authentik.sources.ldap',
87
89
  SourcesOauth: 'authentik.sources.oauth',
@@ -10,9 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ChallengeChoices } from './ChallengeChoices';
13
+ import type { ConsentPermission } from './ConsentPermission';
13
14
  import type { ContextualFlowInfo } from './ContextualFlowInfo';
14
15
  import type { ErrorDetail } from './ErrorDetail';
15
- import type { Permission } from './Permission';
16
16
  /**
17
17
  * Challenge info for consent screens
18
18
  * @export
@@ -65,16 +65,16 @@ export interface ConsentChallenge {
65
65
  headerText?: string;
66
66
  /**
67
67
  *
68
- * @type {Array<Permission>}
68
+ * @type {Array<ConsentPermission>}
69
69
  * @memberof ConsentChallenge
70
70
  */
71
- permissions: Array<Permission>;
71
+ permissions: Array<ConsentPermission>;
72
72
  /**
73
73
  *
74
- * @type {Array<Permission>}
74
+ * @type {Array<ConsentPermission>}
75
75
  * @memberof ConsentChallenge
76
76
  */
77
- additionalPermissions: Array<Permission>;
77
+ additionalPermissions: Array<ConsentPermission>;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -13,8 +13,8 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
16
+ import { ConsentPermissionFromJSON, ConsentPermissionToJSON, } from './ConsentPermission';
16
17
  import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
17
- import { PermissionFromJSON, PermissionToJSON, } from './Permission';
18
18
  /**
19
19
  * Check if a given object implements the ConsentChallenge interface.
20
20
  */
@@ -43,8 +43,8 @@ export function ConsentChallengeFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'pendingUser': json['pending_user'],
44
44
  'pendingUserAvatar': json['pending_user_avatar'],
45
45
  'headerText': !exists(json, 'header_text') ? undefined : json['header_text'],
46
- 'permissions': (json['permissions'].map(PermissionFromJSON)),
47
- 'additionalPermissions': (json['additional_permissions'].map(PermissionFromJSON)),
46
+ 'permissions': (json['permissions'].map(ConsentPermissionFromJSON)),
47
+ 'additionalPermissions': (json['additional_permissions'].map(ConsentPermissionFromJSON)),
48
48
  'token': json['token'],
49
49
  };
50
50
  }
@@ -63,8 +63,8 @@ export function ConsentChallengeToJSON(value) {
63
63
  'pending_user': value.pendingUser,
64
64
  'pending_user_avatar': value.pendingUserAvatar,
65
65
  'header_text': value.headerText,
66
- 'permissions': (value.permissions.map(PermissionToJSON)),
67
- 'additional_permissions': (value.additionalPermissions.map(PermissionToJSON)),
66
+ 'permissions': (value.permissions.map(ConsentPermissionToJSON)),
67
+ 'additional_permissions': (value.additionalPermissions.map(ConsentPermissionToJSON)),
68
68
  'token': value.token,
69
69
  };
70
70
  }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.3
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
+ * Permission used for consent
14
+ * @export
15
+ * @interface ConsentPermission
16
+ */
17
+ export interface ConsentPermission {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConsentPermission
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConsentPermission
28
+ */
29
+ id: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ConsentPermission interface.
33
+ */
34
+ export declare function instanceOfConsentPermission(value: object): boolean;
35
+ export declare function ConsentPermissionFromJSON(json: any): ConsentPermission;
36
+ export declare function ConsentPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentPermission;
37
+ export declare function ConsentPermissionToJSON(value?: ConsentPermission | null): any;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.8.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ConsentPermission interface.
16
+ */
17
+ export function instanceOfConsentPermission(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "name" in value;
20
+ isInstance = isInstance && "id" in value;
21
+ return isInstance;
22
+ }
23
+ export function ConsentPermissionFromJSON(json) {
24
+ return ConsentPermissionFromJSONTyped(json, false);
25
+ }
26
+ export function ConsentPermissionFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'id': json['id'],
33
+ };
34
+ }
35
+ export function ConsentPermissionToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'name': value.name,
44
+ 'id': value.id,
45
+ };
46
+ }
@@ -0,0 +1,81 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.3
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
+ * User permission with additional object-related data
14
+ * @export
15
+ * @interface ExtraRoleObjectPermission
16
+ */
17
+ export interface ExtraRoleObjectPermission {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ExtraRoleObjectPermission
22
+ */
23
+ readonly id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ExtraRoleObjectPermission
28
+ */
29
+ readonly codename: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ExtraRoleObjectPermission
34
+ */
35
+ readonly model: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ExtraRoleObjectPermission
40
+ */
41
+ readonly appLabel: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ExtraRoleObjectPermission
46
+ */
47
+ readonly objectPk: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ExtraRoleObjectPermission
52
+ */
53
+ readonly name: string;
54
+ /**
55
+ * Get app label from permission's model
56
+ * @type {string}
57
+ * @memberof ExtraRoleObjectPermission
58
+ */
59
+ readonly appLabelVerbose: string;
60
+ /**
61
+ * Get model label from permission's model
62
+ * @type {string}
63
+ * @memberof ExtraRoleObjectPermission
64
+ */
65
+ readonly modelVerbose: string;
66
+ /**
67
+ * Get model description from attached model. This operation takes at least
68
+ * one additional query, and the description is only shown if the user/role has the
69
+ * view_ permission on the object
70
+ * @type {string}
71
+ * @memberof ExtraRoleObjectPermission
72
+ */
73
+ readonly objectDescription: string | null;
74
+ }
75
+ /**
76
+ * Check if a given object implements the ExtraRoleObjectPermission interface.
77
+ */
78
+ export declare function instanceOfExtraRoleObjectPermission(value: object): boolean;
79
+ export declare function ExtraRoleObjectPermissionFromJSON(json: any): ExtraRoleObjectPermission;
80
+ export declare function ExtraRoleObjectPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtraRoleObjectPermission;
81
+ export declare function ExtraRoleObjectPermissionToJSON(value?: ExtraRoleObjectPermission | null): any;
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.8.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ExtraRoleObjectPermission interface.
16
+ */
17
+ export function instanceOfExtraRoleObjectPermission(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "id" in value;
20
+ isInstance = isInstance && "codename" in value;
21
+ isInstance = isInstance && "model" in value;
22
+ isInstance = isInstance && "appLabel" in value;
23
+ isInstance = isInstance && "objectPk" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "appLabelVerbose" in value;
26
+ isInstance = isInstance && "modelVerbose" in value;
27
+ isInstance = isInstance && "objectDescription" in value;
28
+ return isInstance;
29
+ }
30
+ export function ExtraRoleObjectPermissionFromJSON(json) {
31
+ return ExtraRoleObjectPermissionFromJSONTyped(json, false);
32
+ }
33
+ export function ExtraRoleObjectPermissionFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'codename': json['codename'],
40
+ 'model': json['model'],
41
+ 'appLabel': json['app_label'],
42
+ 'objectPk': json['object_pk'],
43
+ 'name': json['name'],
44
+ 'appLabelVerbose': json['app_label_verbose'],
45
+ 'modelVerbose': json['model_verbose'],
46
+ 'objectDescription': json['object_description'],
47
+ };
48
+ }
49
+ export function ExtraRoleObjectPermissionToJSON(value) {
50
+ if (value === undefined) {
51
+ return undefined;
52
+ }
53
+ if (value === null) {
54
+ return null;
55
+ }
56
+ return {};
57
+ }
@@ -0,0 +1,81 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.3
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
+ * User permission with additional object-related data
14
+ * @export
15
+ * @interface ExtraUserObjectPermission
16
+ */
17
+ export interface ExtraUserObjectPermission {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ExtraUserObjectPermission
22
+ */
23
+ readonly id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ExtraUserObjectPermission
28
+ */
29
+ readonly codename: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ExtraUserObjectPermission
34
+ */
35
+ readonly model: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ExtraUserObjectPermission
40
+ */
41
+ readonly appLabel: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ExtraUserObjectPermission
46
+ */
47
+ readonly objectPk: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ExtraUserObjectPermission
52
+ */
53
+ readonly name: string;
54
+ /**
55
+ * Get app label from permission's model
56
+ * @type {string}
57
+ * @memberof ExtraUserObjectPermission
58
+ */
59
+ readonly appLabelVerbose: string;
60
+ /**
61
+ * Get model label from permission's model
62
+ * @type {string}
63
+ * @memberof ExtraUserObjectPermission
64
+ */
65
+ readonly modelVerbose: string;
66
+ /**
67
+ * Get model description from attached model. This operation takes at least
68
+ * one additional query, and the description is only shown if the user/role has the
69
+ * view_ permission on the object
70
+ * @type {string}
71
+ * @memberof ExtraUserObjectPermission
72
+ */
73
+ readonly objectDescription: string | null;
74
+ }
75
+ /**
76
+ * Check if a given object implements the ExtraUserObjectPermission interface.
77
+ */
78
+ export declare function instanceOfExtraUserObjectPermission(value: object): boolean;
79
+ export declare function ExtraUserObjectPermissionFromJSON(json: any): ExtraUserObjectPermission;
80
+ export declare function ExtraUserObjectPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtraUserObjectPermission;
81
+ export declare function ExtraUserObjectPermissionToJSON(value?: ExtraUserObjectPermission | null): any;
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.8.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ExtraUserObjectPermission interface.
16
+ */
17
+ export function instanceOfExtraUserObjectPermission(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "id" in value;
20
+ isInstance = isInstance && "codename" in value;
21
+ isInstance = isInstance && "model" in value;
22
+ isInstance = isInstance && "appLabel" in value;
23
+ isInstance = isInstance && "objectPk" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "appLabelVerbose" in value;
26
+ isInstance = isInstance && "modelVerbose" in value;
27
+ isInstance = isInstance && "objectDescription" in value;
28
+ return isInstance;
29
+ }
30
+ export function ExtraUserObjectPermissionFromJSON(json) {
31
+ return ExtraUserObjectPermissionFromJSONTyped(json, false);
32
+ }
33
+ export function ExtraUserObjectPermissionFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'codename': json['codename'],
40
+ 'model': json['model'],
41
+ 'appLabel': json['app_label'],
42
+ 'objectPk': json['object_pk'],
43
+ 'name': json['name'],
44
+ 'appLabelVerbose': json['app_label_verbose'],
45
+ 'modelVerbose': json['model_verbose'],
46
+ 'objectDescription': json['object_description'],
47
+ };
48
+ }
49
+ export function ExtraUserObjectPermissionToJSON(value) {
50
+ if (value === undefined) {
51
+ return undefined;
52
+ }
53
+ if (value === null) {
54
+ return null;
55
+ }
56
+ return {};
57
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { GroupMember } from './GroupMember';
13
+ import type { Role } from './Role';
13
14
  /**
14
15
  * Group Serializer
15
16
  * @export
@@ -58,6 +59,12 @@ export interface Group {
58
59
  * @memberof Group
59
60
  */
60
61
  users?: Array<number>;
62
+ /**
63
+ *
64
+ * @type {Array<GroupMember>}
65
+ * @memberof Group
66
+ */
67
+ readonly usersObj: Array<GroupMember>;
61
68
  /**
62
69
  *
63
70
  * @type {{ [key: string]: any; }}
@@ -68,10 +75,16 @@ export interface Group {
68
75
  };
69
76
  /**
70
77
  *
71
- * @type {Array<GroupMember>}
78
+ * @type {Array<string>}
72
79
  * @memberof Group
73
80
  */
74
- readonly usersObj: Array<GroupMember>;
81
+ roles?: Array<string>;
82
+ /**
83
+ *
84
+ * @type {Array<Role>}
85
+ * @memberof Group
86
+ */
87
+ readonly rolesObj: Array<Role>;
75
88
  }
76
89
  /**
77
90
  * Check if a given object implements the Group interface.
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { GroupMemberFromJSON, } from './GroupMember';
16
+ import { RoleFromJSON, } from './Role';
16
17
  /**
17
18
  * Check if a given object implements the Group interface.
18
19
  */
@@ -23,6 +24,7 @@ export function instanceOfGroup(value) {
23
24
  isInstance = isInstance && "name" in value;
24
25
  isInstance = isInstance && "parentName" in value;
25
26
  isInstance = isInstance && "usersObj" in value;
27
+ isInstance = isInstance && "rolesObj" in value;
26
28
  return isInstance;
27
29
  }
28
30
  export function GroupFromJSON(json) {
@@ -40,8 +42,10 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
40
42
  'parent': !exists(json, 'parent') ? undefined : json['parent'],
41
43
  'parentName': json['parent_name'],
42
44
  'users': !exists(json, 'users') ? undefined : json['users'],
43
- 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
44
45
  'usersObj': (json['users_obj'].map(GroupMemberFromJSON)),
46
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
47
+ 'roles': !exists(json, 'roles') ? undefined : json['roles'],
48
+ 'rolesObj': (json['roles_obj'].map(RoleFromJSON)),
45
49
  };
46
50
  }
47
51
  export function GroupToJSON(value) {
@@ -57,5 +61,6 @@ export function GroupToJSON(value) {
57
61
  'parent': value.parent,
58
62
  'users': value.users,
59
63
  'attributes': value.attributes,
64
+ 'roles': value.roles,
60
65
  };
61
66
  }
@@ -47,6 +47,12 @@ export interface GroupRequest {
47
47
  attributes?: {
48
48
  [key: string]: any;
49
49
  };
50
+ /**
51
+ *
52
+ * @type {Array<string>}
53
+ * @memberof GroupRequest
54
+ */
55
+ roles?: Array<string>;
50
56
  }
51
57
  /**
52
58
  * Check if a given object implements the GroupRequest interface.
@@ -33,6 +33,7 @@ export function GroupRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'parent': !exists(json, 'parent') ? undefined : json['parent'],
34
34
  'users': !exists(json, 'users') ? undefined : json['users'],
35
35
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
36
+ 'roles': !exists(json, 'roles') ? undefined : json['roles'],
36
37
  };
37
38
  }
38
39
  export function GroupRequestToJSON(value) {
@@ -48,5 +49,6 @@ export function GroupRequestToJSON(value) {
48
49
  'parent': value.parent,
49
50
  'users': value.users,
50
51
  'attributes': value.attributes,
52
+ 'roles': value.roles,
51
53
  };
52
54
  }
@@ -20,7 +20,7 @@
20
20
  * * `authentik_flows.flowstagebinding` - Flow Stage Binding
21
21
  * * `authentik_outposts.dockerserviceconnection` - Docker Service-Connection
22
22
  * * `authentik_outposts.kubernetesserviceconnection` - Kubernetes Service-Connection
23
- * * `authentik_outposts.outpost` - outpost
23
+ * * `authentik_outposts.outpost` - Outpost
24
24
  * * `authentik_policies_dummy.dummypolicy` - Dummy Policy
25
25
  * * `authentik_policies_event_matcher.eventmatcherpolicy` - Event Matcher Policy
26
26
  * * `authentik_policies_expiry.passwordexpirypolicy` - Password Expiry Policy
@@ -41,6 +41,7 @@
41
41
  * * `authentik_providers_saml.samlpropertymapping` - SAML Property Mapping
42
42
  * * `authentik_providers_scim.scimprovider` - SCIM Provider
43
43
  * * `authentik_providers_scim.scimmapping` - SCIM Mapping
44
+ * * `authentik_rbac.role` - Role
44
45
  * * `authentik_sources_ldap.ldapsource` - LDAP Source
45
46
  * * `authentik_sources_ldap.ldappropertymapping` - LDAP Property Mapping
46
47
  * * `authentik_sources_oauth.oauthsource` - OAuth Source
@@ -54,9 +55,9 @@
54
55
  * * `authentik_stages_authenticator_sms.authenticatorsmsstage` - SMS Authenticator Setup Stage
55
56
  * * `authentik_stages_authenticator_sms.smsdevice` - SMS Device
56
57
  * * `authentik_stages_authenticator_static.authenticatorstaticstage` - Static Authenticator Stage
57
- * * `authentik_stages_authenticator_static.staticdevice` - Static device
58
+ * * `authentik_stages_authenticator_static.staticdevice` - Static Device
58
59
  * * `authentik_stages_authenticator_totp.authenticatortotpstage` - TOTP Authenticator Setup Stage
59
- * * `authentik_stages_authenticator_totp.totpdevice` - TOTP device
60
+ * * `authentik_stages_authenticator_totp.totpdevice` - TOTP Device
60
61
  * * `authentik_stages_authenticator_validate.authenticatorvalidatestage` - Authenticator Validation Stage
61
62
  * * `authentik_stages_authenticator_webauthn.authenticatewebauthnstage` - WebAuthn Authenticator Setup Stage
62
63
  * * `authentik_stages_authenticator_webauthn.webauthndevice` - WebAuthn Device
@@ -78,10 +79,11 @@
78
79
  * * `authentik_stages_user_write.userwritestage` - User Write Stage
79
80
  * * `authentik_tenants.tenant` - Tenant
80
81
  * * `authentik_blueprints.blueprintinstance` - Blueprint Instance
81
- * * `authentik_core.group` - group
82
+ * * `authentik_core.group` - Group
82
83
  * * `authentik_core.user` - User
83
84
  * * `authentik_core.application` - Application
84
85
  * * `authentik_core.token` - Token
86
+ * * `authentik_enterprise.license` - License
85
87
  * @export
86
88
  */
87
89
  export declare const ModelEnum: {
@@ -116,6 +118,7 @@ export declare const ModelEnum: {
116
118
  readonly ProvidersSamlSamlpropertymapping: "authentik_providers_saml.samlpropertymapping";
117
119
  readonly ProvidersScimScimprovider: "authentik_providers_scim.scimprovider";
118
120
  readonly ProvidersScimScimmapping: "authentik_providers_scim.scimmapping";
121
+ readonly RbacRole: "authentik_rbac.role";
119
122
  readonly SourcesLdapLdapsource: "authentik_sources_ldap.ldapsource";
120
123
  readonly SourcesLdapLdappropertymapping: "authentik_sources_ldap.ldappropertymapping";
121
124
  readonly SourcesOauthOauthsource: "authentik_sources_oauth.oauthsource";
@@ -157,6 +160,7 @@ export declare const ModelEnum: {
157
160
  readonly CoreUser: "authentik_core.user";
158
161
  readonly CoreApplication: "authentik_core.application";
159
162
  readonly CoreToken: "authentik_core.token";
163
+ readonly EnterpriseLicense: "authentik_enterprise.license";
160
164
  readonly UnknownDefaultOpenApi: "11184809";
161
165
  };
162
166
  export type ModelEnum = typeof ModelEnum[keyof typeof ModelEnum];