@goauthentik/api 2024.6.2-1722467631 → 2024.6.2-1722867797

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 (67) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/dist/apis/CoreApi.d.ts +1 -0
  3. package/dist/apis/CoreApi.js +3 -0
  4. package/dist/apis/PropertymappingsApi.d.ts +3 -2
  5. package/dist/apis/PropertymappingsApi.js +9 -6
  6. package/dist/apis/RbacApi.d.ts +103 -11
  7. package/dist/apis/RbacApi.js +308 -20
  8. package/dist/esm/apis/CoreApi.d.ts +1 -0
  9. package/dist/esm/apis/CoreApi.js +3 -0
  10. package/dist/esm/apis/PropertymappingsApi.d.ts +3 -2
  11. package/dist/esm/apis/PropertymappingsApi.js +9 -6
  12. package/dist/esm/apis/RbacApi.d.ts +103 -11
  13. package/dist/esm/apis/RbacApi.js +309 -21
  14. package/dist/esm/models/ExtraRoleObjectPermission.d.ts +1 -1
  15. package/dist/esm/models/ExtraRoleObjectPermission.js +3 -1
  16. package/dist/esm/models/ExtraRoleObjectPermissionRequest.d.ts +31 -0
  17. package/dist/esm/models/ExtraRoleObjectPermissionRequest.js +43 -0
  18. package/dist/esm/models/ExtraUserObjectPermission.d.ts +1 -1
  19. package/dist/esm/models/ExtraUserObjectPermission.js +3 -1
  20. package/dist/esm/models/ExtraUserObjectPermissionRequest.d.ts +31 -0
  21. package/dist/esm/models/ExtraUserObjectPermissionRequest.js +43 -0
  22. package/dist/esm/models/PatchedExtraRoleObjectPermissionRequest.d.ts +31 -0
  23. package/dist/esm/models/PatchedExtraRoleObjectPermissionRequest.js +43 -0
  24. package/dist/esm/models/PatchedExtraUserObjectPermissionRequest.d.ts +31 -0
  25. package/dist/esm/models/PatchedExtraUserObjectPermissionRequest.js +43 -0
  26. package/dist/esm/models/PermissionAssignResult.d.ts +31 -0
  27. package/dist/esm/models/PermissionAssignResult.js +43 -0
  28. package/dist/esm/models/RoleObjectPermission.d.ts +1 -1
  29. package/dist/esm/models/RoleObjectPermission.js +3 -1
  30. package/dist/esm/models/UserObjectPermission.d.ts +1 -1
  31. package/dist/esm/models/UserObjectPermission.js +3 -1
  32. package/dist/esm/models/index.d.ts +5 -0
  33. package/dist/esm/models/index.js +5 -0
  34. package/dist/models/ExtraRoleObjectPermission.d.ts +1 -1
  35. package/dist/models/ExtraRoleObjectPermission.js +3 -1
  36. package/dist/models/ExtraRoleObjectPermissionRequest.d.ts +31 -0
  37. package/dist/models/ExtraRoleObjectPermissionRequest.js +50 -0
  38. package/dist/models/ExtraUserObjectPermission.d.ts +1 -1
  39. package/dist/models/ExtraUserObjectPermission.js +3 -1
  40. package/dist/models/ExtraUserObjectPermissionRequest.d.ts +31 -0
  41. package/dist/models/ExtraUserObjectPermissionRequest.js +50 -0
  42. package/dist/models/PatchedExtraRoleObjectPermissionRequest.d.ts +31 -0
  43. package/dist/models/PatchedExtraRoleObjectPermissionRequest.js +50 -0
  44. package/dist/models/PatchedExtraUserObjectPermissionRequest.d.ts +31 -0
  45. package/dist/models/PatchedExtraUserObjectPermissionRequest.js +50 -0
  46. package/dist/models/PermissionAssignResult.d.ts +31 -0
  47. package/dist/models/PermissionAssignResult.js +50 -0
  48. package/dist/models/RoleObjectPermission.d.ts +1 -1
  49. package/dist/models/RoleObjectPermission.js +3 -1
  50. package/dist/models/UserObjectPermission.d.ts +1 -1
  51. package/dist/models/UserObjectPermission.js +3 -1
  52. package/dist/models/index.d.ts +5 -0
  53. package/dist/models/index.js +5 -0
  54. package/package.json +1 -1
  55. package/src/apis/CoreApi.ts +5 -0
  56. package/src/apis/PropertymappingsApi.ts +15 -10
  57. package/src/apis/RbacApi.ts +397 -24
  58. package/src/models/ExtraRoleObjectPermission.ts +2 -1
  59. package/src/models/ExtraRoleObjectPermissionRequest.ts +66 -0
  60. package/src/models/ExtraUserObjectPermission.ts +2 -1
  61. package/src/models/ExtraUserObjectPermissionRequest.ts +66 -0
  62. package/src/models/PatchedExtraRoleObjectPermissionRequest.ts +65 -0
  63. package/src/models/PatchedExtraUserObjectPermissionRequest.ts +65 -0
  64. package/src/models/PermissionAssignResult.ts +66 -0
  65. package/src/models/RoleObjectPermission.ts +2 -1
  66. package/src/models/UserObjectPermission.ts +2 -1
  67. package/src/models/index.ts +5 -0
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.2
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * User permission with additional object-related data
18
+ * @export
19
+ * @interface ExtraUserObjectPermissionRequest
20
+ */
21
+ export interface ExtraUserObjectPermissionRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ExtraUserObjectPermissionRequest
26
+ */
27
+ objectPk: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ExtraUserObjectPermissionRequest interface.
32
+ */
33
+ export function instanceOfExtraUserObjectPermissionRequest(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "objectPk" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function ExtraUserObjectPermissionRequestFromJSON(json: any): ExtraUserObjectPermissionRequest {
41
+ return ExtraUserObjectPermissionRequestFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function ExtraUserObjectPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtraUserObjectPermissionRequest {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'objectPk': json['object_pk'],
51
+ };
52
+ }
53
+
54
+ export function ExtraUserObjectPermissionRequestToJSON(value?: ExtraUserObjectPermissionRequest | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'object_pk': value.objectPk,
64
+ };
65
+ }
66
+
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.2
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * User permission with additional object-related data
18
+ * @export
19
+ * @interface PatchedExtraRoleObjectPermissionRequest
20
+ */
21
+ export interface PatchedExtraRoleObjectPermissionRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PatchedExtraRoleObjectPermissionRequest
26
+ */
27
+ objectPk?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PatchedExtraRoleObjectPermissionRequest interface.
32
+ */
33
+ export function instanceOfPatchedExtraRoleObjectPermissionRequest(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function PatchedExtraRoleObjectPermissionRequestFromJSON(json: any): PatchedExtraRoleObjectPermissionRequest {
40
+ return PatchedExtraRoleObjectPermissionRequestFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function PatchedExtraRoleObjectPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedExtraRoleObjectPermissionRequest {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'objectPk': !exists(json, 'object_pk') ? undefined : json['object_pk'],
50
+ };
51
+ }
52
+
53
+ export function PatchedExtraRoleObjectPermissionRequestToJSON(value?: PatchedExtraRoleObjectPermissionRequest | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'object_pk': value.objectPk,
63
+ };
64
+ }
65
+
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.2
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * User permission with additional object-related data
18
+ * @export
19
+ * @interface PatchedExtraUserObjectPermissionRequest
20
+ */
21
+ export interface PatchedExtraUserObjectPermissionRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PatchedExtraUserObjectPermissionRequest
26
+ */
27
+ objectPk?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PatchedExtraUserObjectPermissionRequest interface.
32
+ */
33
+ export function instanceOfPatchedExtraUserObjectPermissionRequest(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function PatchedExtraUserObjectPermissionRequestFromJSON(json: any): PatchedExtraUserObjectPermissionRequest {
40
+ return PatchedExtraUserObjectPermissionRequestFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function PatchedExtraUserObjectPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedExtraUserObjectPermissionRequest {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'objectPk': !exists(json, 'object_pk') ? undefined : json['object_pk'],
50
+ };
51
+ }
52
+
53
+ export function PatchedExtraUserObjectPermissionRequestToJSON(value?: PatchedExtraUserObjectPermissionRequest | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'object_pk': value.objectPk,
63
+ };
64
+ }
65
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.2
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * Result from assigning permissions to a user/role
18
+ * @export
19
+ * @interface PermissionAssignResult
20
+ */
21
+ export interface PermissionAssignResult {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PermissionAssignResult
26
+ */
27
+ id: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PermissionAssignResult interface.
32
+ */
33
+ export function instanceOfPermissionAssignResult(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "id" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function PermissionAssignResultFromJSON(json: any): PermissionAssignResult {
41
+ return PermissionAssignResultFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function PermissionAssignResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionAssignResult {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'id': json['id'],
51
+ };
52
+ }
53
+
54
+ export function PermissionAssignResultToJSON(value?: PermissionAssignResult | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'id': value.id,
64
+ };
65
+ }
66
+
@@ -48,7 +48,7 @@ export interface RoleObjectPermission {
48
48
  * @type {string}
49
49
  * @memberof RoleObjectPermission
50
50
  */
51
- readonly objectPk: string;
51
+ objectPk: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -100,6 +100,7 @@ export function RoleObjectPermissionToJSON(value?: RoleObjectPermission | null):
100
100
  }
101
101
  return {
102
102
 
103
+ 'object_pk': value.objectPk,
103
104
  };
104
105
  }
105
106
 
@@ -48,7 +48,7 @@ export interface UserObjectPermission {
48
48
  * @type {string}
49
49
  * @memberof UserObjectPermission
50
50
  */
51
- readonly objectPk: string;
51
+ objectPk: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
@@ -100,6 +100,7 @@ export function UserObjectPermissionToJSON(value?: UserObjectPermission | null):
100
100
  }
101
101
  return {
102
102
 
103
+ 'object_pk': value.objectPk,
103
104
  };
104
105
  }
105
106
 
@@ -121,7 +121,9 @@ export * from './ExpiringBaseGrantModel';
121
121
  export * from './ExpressionPolicy';
122
122
  export * from './ExpressionPolicyRequest';
123
123
  export * from './ExtraRoleObjectPermission';
124
+ export * from './ExtraRoleObjectPermissionRequest';
124
125
  export * from './ExtraUserObjectPermission';
126
+ export * from './ExtraUserObjectPermissionRequest';
125
127
  export * from './FilePathRequest';
126
128
  export * from './Flow';
127
129
  export * from './FlowChallengeResponseRequest';
@@ -371,6 +373,8 @@ export * from './PatchedEndpointRequest';
371
373
  export * from './PatchedEventMatcherPolicyRequest';
372
374
  export * from './PatchedEventRequest';
373
375
  export * from './PatchedExpressionPolicyRequest';
376
+ export * from './PatchedExtraRoleObjectPermissionRequest';
377
+ export * from './PatchedExtraUserObjectPermissionRequest';
374
378
  export * from './PatchedFlowRequest';
375
379
  export * from './PatchedFlowStageBindingRequest';
376
380
  export * from './PatchedGoogleWorkspaceProviderMappingRequest';
@@ -436,6 +440,7 @@ export * from './PatchedUserWriteStageRequest';
436
440
  export * from './PatchedWebAuthnDeviceRequest';
437
441
  export * from './Permission';
438
442
  export * from './PermissionAssignRequest';
443
+ export * from './PermissionAssignResult';
439
444
  export * from './PlexAuthenticationChallenge';
440
445
  export * from './PlexAuthenticationChallengeResponseRequest';
441
446
  export * from './PlexSource';