@goauthentik/api 2023.8.3-1696847703 → 2023.8.3-1697642041

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 (167) 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/StagesApi.d.ts +1 -0
  5. package/dist/apis/StagesApi.js +3 -0
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +1 -0
  8. package/dist/esm/apis/RbacApi.d.ts +403 -0
  9. package/dist/esm/apis/RbacApi.js +836 -0
  10. package/dist/esm/apis/StagesApi.d.ts +1 -0
  11. package/dist/esm/apis/StagesApi.js +3 -0
  12. package/dist/esm/apis/index.d.ts +1 -0
  13. package/dist/esm/apis/index.js +1 -0
  14. package/dist/esm/models/AppEnum.d.ts +2 -0
  15. package/dist/esm/models/AppEnum.js +2 -0
  16. package/dist/esm/models/ConsentChallenge.d.ts +5 -5
  17. package/dist/esm/models/ConsentChallenge.js +5 -5
  18. package/dist/esm/models/ConsentPermission.d.ts +37 -0
  19. package/dist/esm/models/ConsentPermission.js +46 -0
  20. package/dist/esm/models/DenyStage.d.ts +6 -0
  21. package/dist/esm/models/DenyStage.js +2 -0
  22. package/dist/esm/models/DenyStageRequest.d.ts +6 -0
  23. package/dist/esm/models/DenyStageRequest.js +2 -0
  24. package/dist/esm/models/ExtraRoleObjectPermission.d.ts +81 -0
  25. package/dist/esm/models/ExtraRoleObjectPermission.js +57 -0
  26. package/dist/esm/models/ExtraUserObjectPermission.d.ts +81 -0
  27. package/dist/esm/models/ExtraUserObjectPermission.js +57 -0
  28. package/dist/esm/models/Group.d.ts +15 -2
  29. package/dist/esm/models/Group.js +6 -1
  30. package/dist/esm/models/GroupRequest.d.ts +6 -0
  31. package/dist/esm/models/GroupRequest.js +2 -0
  32. package/dist/esm/models/ModelEnum.d.ts +8 -4
  33. package/dist/esm/models/ModelEnum.js +8 -4
  34. package/dist/esm/models/PaginatedExtraRoleObjectPermissionList.d.ts +39 -0
  35. package/dist/esm/models/PaginatedExtraRoleObjectPermissionList.js +48 -0
  36. package/dist/esm/models/PaginatedExtraUserObjectPermissionList.d.ts +39 -0
  37. package/dist/esm/models/PaginatedExtraUserObjectPermissionList.js +48 -0
  38. package/dist/esm/models/PaginatedPermissionList.d.ts +39 -0
  39. package/dist/esm/models/PaginatedPermissionList.js +48 -0
  40. package/dist/esm/models/PaginatedRoleAssignedObjectPermissionList.d.ts +39 -0
  41. package/dist/esm/models/PaginatedRoleAssignedObjectPermissionList.js +48 -0
  42. package/dist/esm/models/PaginatedRoleList.d.ts +39 -0
  43. package/dist/esm/models/PaginatedRoleList.js +48 -0
  44. package/dist/esm/models/PaginatedUserAssignedObjectPermissionList.d.ts +39 -0
  45. package/dist/esm/models/PaginatedUserAssignedObjectPermissionList.js +48 -0
  46. package/dist/esm/models/PatchedDenyStageRequest.d.ts +6 -0
  47. package/dist/esm/models/PatchedDenyStageRequest.js +2 -0
  48. package/dist/esm/models/PatchedGroupRequest.d.ts +6 -0
  49. package/dist/esm/models/PatchedGroupRequest.js +2 -0
  50. package/dist/esm/models/PatchedPermissionAssignRequest.d.ts +44 -0
  51. package/dist/esm/models/PatchedPermissionAssignRequest.js +48 -0
  52. package/dist/esm/models/PatchedRoleRequest.d.ts +31 -0
  53. package/dist/esm/models/PatchedRoleRequest.js +43 -0
  54. package/dist/esm/models/Permission.d.ts +32 -2
  55. package/dist/esm/models/Permission.js +13 -3
  56. package/dist/esm/models/PermissionAssignRequest.d.ts +44 -0
  57. package/dist/esm/models/PermissionAssignRequest.js +49 -0
  58. package/dist/esm/models/Role.d.ts +37 -0
  59. package/dist/esm/models/Role.js +45 -0
  60. package/dist/esm/models/RoleAssignedObjectPermission.d.ts +44 -0
  61. package/dist/esm/models/RoleAssignedObjectPermission.js +48 -0
  62. package/dist/esm/models/RoleObjectPermission.d.ts +61 -0
  63. package/dist/esm/models/RoleObjectPermission.js +51 -0
  64. package/dist/esm/models/RoleRequest.d.ts +31 -0
  65. package/dist/esm/models/RoleRequest.js +43 -0
  66. package/dist/esm/models/UserAssignedObjectPermission.d.ts +88 -0
  67. package/dist/esm/models/UserAssignedObjectPermission.js +66 -0
  68. package/dist/esm/models/UserObjectPermission.d.ts +61 -0
  69. package/dist/esm/models/UserObjectPermission.js +51 -0
  70. package/dist/esm/models/UserSelf.d.ts +6 -0
  71. package/dist/esm/models/UserSelf.js +2 -0
  72. package/dist/esm/models/index.d.ts +18 -0
  73. package/dist/esm/models/index.js +18 -0
  74. package/dist/models/AppEnum.d.ts +2 -0
  75. package/dist/models/AppEnum.js +2 -0
  76. package/dist/models/ConsentChallenge.d.ts +5 -5
  77. package/dist/models/ConsentChallenge.js +5 -5
  78. package/dist/models/ConsentPermission.d.ts +37 -0
  79. package/dist/models/ConsentPermission.js +53 -0
  80. package/dist/models/DenyStage.d.ts +6 -0
  81. package/dist/models/DenyStage.js +2 -0
  82. package/dist/models/DenyStageRequest.d.ts +6 -0
  83. package/dist/models/DenyStageRequest.js +2 -0
  84. package/dist/models/ExtraRoleObjectPermission.d.ts +81 -0
  85. package/dist/models/ExtraRoleObjectPermission.js +64 -0
  86. package/dist/models/ExtraUserObjectPermission.d.ts +81 -0
  87. package/dist/models/ExtraUserObjectPermission.js +64 -0
  88. package/dist/models/Group.d.ts +15 -2
  89. package/dist/models/Group.js +6 -1
  90. package/dist/models/GroupRequest.d.ts +6 -0
  91. package/dist/models/GroupRequest.js +2 -0
  92. package/dist/models/ModelEnum.d.ts +8 -4
  93. package/dist/models/ModelEnum.js +8 -4
  94. package/dist/models/PaginatedExtraRoleObjectPermissionList.d.ts +39 -0
  95. package/dist/models/PaginatedExtraRoleObjectPermissionList.js +55 -0
  96. package/dist/models/PaginatedExtraUserObjectPermissionList.d.ts +39 -0
  97. package/dist/models/PaginatedExtraUserObjectPermissionList.js +55 -0
  98. package/dist/models/PaginatedPermissionList.d.ts +39 -0
  99. package/dist/models/PaginatedPermissionList.js +55 -0
  100. package/dist/models/PaginatedRoleAssignedObjectPermissionList.d.ts +39 -0
  101. package/dist/models/PaginatedRoleAssignedObjectPermissionList.js +55 -0
  102. package/dist/models/PaginatedRoleList.d.ts +39 -0
  103. package/dist/models/PaginatedRoleList.js +55 -0
  104. package/dist/models/PaginatedUserAssignedObjectPermissionList.d.ts +39 -0
  105. package/dist/models/PaginatedUserAssignedObjectPermissionList.js +55 -0
  106. package/dist/models/PatchedDenyStageRequest.d.ts +6 -0
  107. package/dist/models/PatchedDenyStageRequest.js +2 -0
  108. package/dist/models/PatchedGroupRequest.d.ts +6 -0
  109. package/dist/models/PatchedGroupRequest.js +2 -0
  110. package/dist/models/PatchedPermissionAssignRequest.d.ts +44 -0
  111. package/dist/models/PatchedPermissionAssignRequest.js +55 -0
  112. package/dist/models/PatchedRoleRequest.d.ts +31 -0
  113. package/dist/models/PatchedRoleRequest.js +50 -0
  114. package/dist/models/Permission.d.ts +32 -2
  115. package/dist/models/Permission.js +13 -3
  116. package/dist/models/PermissionAssignRequest.d.ts +44 -0
  117. package/dist/models/PermissionAssignRequest.js +56 -0
  118. package/dist/models/Role.d.ts +37 -0
  119. package/dist/models/Role.js +52 -0
  120. package/dist/models/RoleAssignedObjectPermission.d.ts +44 -0
  121. package/dist/models/RoleAssignedObjectPermission.js +55 -0
  122. package/dist/models/RoleObjectPermission.d.ts +61 -0
  123. package/dist/models/RoleObjectPermission.js +58 -0
  124. package/dist/models/RoleRequest.d.ts +31 -0
  125. package/dist/models/RoleRequest.js +50 -0
  126. package/dist/models/UserAssignedObjectPermission.d.ts +88 -0
  127. package/dist/models/UserAssignedObjectPermission.js +73 -0
  128. package/dist/models/UserObjectPermission.d.ts +61 -0
  129. package/dist/models/UserObjectPermission.js +58 -0
  130. package/dist/models/UserSelf.d.ts +6 -0
  131. package/dist/models/UserSelf.js +2 -0
  132. package/dist/models/index.d.ts +18 -0
  133. package/dist/models/index.js +18 -0
  134. package/package.json +1 -1
  135. package/src/apis/RbacApi.ts +1081 -0
  136. package/src/apis/StagesApi.ts +5 -0
  137. package/src/apis/index.ts +1 -0
  138. package/src/models/AppEnum.ts +2 -0
  139. package/src/models/ConsentChallenge.ts +14 -14
  140. package/src/models/ConsentPermission.ts +75 -0
  141. package/src/models/DenyStage.ts +8 -0
  142. package/src/models/DenyStageRequest.ts +8 -0
  143. package/src/models/ExtraRoleObjectPermission.ts +131 -0
  144. package/src/models/ExtraUserObjectPermission.ts +131 -0
  145. package/src/models/Group.ts +25 -3
  146. package/src/models/GroupRequest.ts +8 -0
  147. package/src/models/ModelEnum.ts +8 -4
  148. package/src/models/PaginatedExtraRoleObjectPermissionList.ts +88 -0
  149. package/src/models/PaginatedExtraUserObjectPermissionList.ts +88 -0
  150. package/src/models/PaginatedPermissionList.ts +88 -0
  151. package/src/models/PaginatedRoleAssignedObjectPermissionList.ts +88 -0
  152. package/src/models/PaginatedRoleList.ts +88 -0
  153. package/src/models/PaginatedUserAssignedObjectPermissionList.ts +88 -0
  154. package/src/models/PatchedDenyStageRequest.ts +8 -0
  155. package/src/models/PatchedGroupRequest.ts +8 -0
  156. package/src/models/PatchedPermissionAssignRequest.ts +88 -0
  157. package/src/models/PatchedRoleRequest.ts +65 -0
  158. package/src/models/Permission.ts +45 -5
  159. package/src/models/PermissionAssignRequest.ts +89 -0
  160. package/src/models/Role.ts +74 -0
  161. package/src/models/RoleAssignedObjectPermission.ts +89 -0
  162. package/src/models/RoleObjectPermission.ts +105 -0
  163. package/src/models/RoleRequest.ts +66 -0
  164. package/src/models/UserAssignedObjectPermission.ts +148 -0
  165. package/src/models/UserObjectPermission.ts +105 -0
  166. package/src/models/UserSelf.ts +8 -0
  167. package/src/models/index.ts +18 -0
@@ -295,6 +295,7 @@ export interface StagesDenyDestroyRequest {
295
295
  stageUuid: string;
296
296
  }
297
297
  export interface StagesDenyListRequest {
298
+ denyMessage?: string;
298
299
  name?: string;
299
300
  ordering?: string;
300
301
  page?: number;
@@ -2384,6 +2384,9 @@ export class StagesApi extends runtime.BaseAPI {
2384
2384
  stagesDenyListRaw(requestParameters, initOverrides) {
2385
2385
  return __awaiter(this, void 0, void 0, function* () {
2386
2386
  const queryParameters = {};
2387
+ if (requestParameters.denyMessage !== undefined) {
2388
+ queryParameters['deny_message'] = requestParameters.denyMessage;
2389
+ }
2387
2390
  if (requestParameters.name !== undefined) {
2388
2391
  queryParameters['name'] = requestParameters.name;
2389
2392
  }
@@ -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
+ }
@@ -58,6 +58,12 @@ export interface DenyStage {
58
58
  * @memberof DenyStage
59
59
  */
60
60
  flowSet?: Array<FlowSet>;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof DenyStage
65
+ */
66
+ denyMessage?: string;
61
67
  }
62
68
  /**
63
69
  * Check if a given object implements the DenyStage interface.
@@ -41,6 +41,7 @@ export function DenyStageFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'verboseNamePlural': json['verbose_name_plural'],
42
42
  'metaModelName': json['meta_model_name'],
43
43
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
44
+ 'denyMessage': !exists(json, 'deny_message') ? undefined : json['deny_message'],
44
45
  };
45
46
  }
46
47
  export function DenyStageToJSON(value) {
@@ -53,5 +54,6 @@ export function DenyStageToJSON(value) {
53
54
  return {
54
55
  'name': value.name,
55
56
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetToJSON)),
57
+ 'deny_message': value.denyMessage,
56
58
  };
57
59
  }
@@ -28,6 +28,12 @@ export interface DenyStageRequest {
28
28
  * @memberof DenyStageRequest
29
29
  */
30
30
  flowSet?: Array<FlowSetRequest>;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof DenyStageRequest
35
+ */
36
+ denyMessage?: string;
31
37
  }
32
38
  /**
33
39
  * Check if a given object implements the DenyStageRequest interface.
@@ -31,6 +31,7 @@ export function DenyStageRequestFromJSONTyped(json, ignoreDiscriminator) {
31
31
  return {
32
32
  'name': json['name'],
33
33
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
34
+ 'denyMessage': !exists(json, 'deny_message') ? undefined : json['deny_message'],
34
35
  };
35
36
  }
36
37
  export function DenyStageRequestToJSON(value) {
@@ -43,5 +44,6 @@ export function DenyStageRequestToJSON(value) {
43
44
  return {
44
45
  'name': value.name,
45
46
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
47
+ 'deny_message': value.denyMessage,
46
48
  };
47
49
  }
@@ -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
  }