@goauthentik/api 2024.6.2-1722467631 → 2024.6.2-1722867797

Sign up to get free protection for your applications and to get access to all the features.
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,43 @@
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
+ * Check if a given object implements the ExtraRoleObjectPermissionRequest interface.
16
+ */
17
+ export function instanceOfExtraRoleObjectPermissionRequest(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "objectPk" in value;
20
+ return isInstance;
21
+ }
22
+ export function ExtraRoleObjectPermissionRequestFromJSON(json) {
23
+ return ExtraRoleObjectPermissionRequestFromJSONTyped(json, false);
24
+ }
25
+ export function ExtraRoleObjectPermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'objectPk': json['object_pk'],
31
+ };
32
+ }
33
+ export function ExtraRoleObjectPermissionRequestToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'object_pk': value.objectPk,
42
+ };
43
+ }
@@ -44,7 +44,7 @@ export interface ExtraUserObjectPermission {
44
44
  * @type {string}
45
45
  * @memberof ExtraUserObjectPermission
46
46
  */
47
- readonly objectPk: string;
47
+ objectPk: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -53,5 +53,7 @@ export function ExtraUserObjectPermissionToJSON(value) {
53
53
  if (value === null) {
54
54
  return null;
55
55
  }
56
- return {};
56
+ return {
57
+ 'object_pk': value.objectPk,
58
+ };
57
59
  }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.2
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 ExtraUserObjectPermissionRequest
16
+ */
17
+ export interface ExtraUserObjectPermissionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExtraUserObjectPermissionRequest
22
+ */
23
+ objectPk: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ExtraUserObjectPermissionRequest interface.
27
+ */
28
+ export declare function instanceOfExtraUserObjectPermissionRequest(value: object): boolean;
29
+ export declare function ExtraUserObjectPermissionRequestFromJSON(json: any): ExtraUserObjectPermissionRequest;
30
+ export declare function ExtraUserObjectPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtraUserObjectPermissionRequest;
31
+ export declare function ExtraUserObjectPermissionRequestToJSON(value?: ExtraUserObjectPermissionRequest | null): any;
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the ExtraUserObjectPermissionRequest interface.
16
+ */
17
+ export function instanceOfExtraUserObjectPermissionRequest(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "objectPk" in value;
20
+ return isInstance;
21
+ }
22
+ export function ExtraUserObjectPermissionRequestFromJSON(json) {
23
+ return ExtraUserObjectPermissionRequestFromJSONTyped(json, false);
24
+ }
25
+ export function ExtraUserObjectPermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'objectPk': json['object_pk'],
31
+ };
32
+ }
33
+ export function ExtraUserObjectPermissionRequestToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'object_pk': value.objectPk,
42
+ };
43
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.2
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 PatchedExtraRoleObjectPermissionRequest
16
+ */
17
+ export interface PatchedExtraRoleObjectPermissionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PatchedExtraRoleObjectPermissionRequest
22
+ */
23
+ objectPk?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PatchedExtraRoleObjectPermissionRequest interface.
27
+ */
28
+ export declare function instanceOfPatchedExtraRoleObjectPermissionRequest(value: object): boolean;
29
+ export declare function PatchedExtraRoleObjectPermissionRequestFromJSON(json: any): PatchedExtraRoleObjectPermissionRequest;
30
+ export declare function PatchedExtraRoleObjectPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedExtraRoleObjectPermissionRequest;
31
+ export declare function PatchedExtraRoleObjectPermissionRequestToJSON(value?: PatchedExtraRoleObjectPermissionRequest | null): any;
@@ -0,0 +1,43 @@
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the PatchedExtraRoleObjectPermissionRequest interface.
17
+ */
18
+ export function instanceOfPatchedExtraRoleObjectPermissionRequest(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function PatchedExtraRoleObjectPermissionRequestFromJSON(json) {
23
+ return PatchedExtraRoleObjectPermissionRequestFromJSONTyped(json, false);
24
+ }
25
+ export function PatchedExtraRoleObjectPermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'objectPk': !exists(json, 'object_pk') ? undefined : json['object_pk'],
31
+ };
32
+ }
33
+ export function PatchedExtraRoleObjectPermissionRequestToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'object_pk': value.objectPk,
42
+ };
43
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.2
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 PatchedExtraUserObjectPermissionRequest
16
+ */
17
+ export interface PatchedExtraUserObjectPermissionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PatchedExtraUserObjectPermissionRequest
22
+ */
23
+ objectPk?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PatchedExtraUserObjectPermissionRequest interface.
27
+ */
28
+ export declare function instanceOfPatchedExtraUserObjectPermissionRequest(value: object): boolean;
29
+ export declare function PatchedExtraUserObjectPermissionRequestFromJSON(json: any): PatchedExtraUserObjectPermissionRequest;
30
+ export declare function PatchedExtraUserObjectPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedExtraUserObjectPermissionRequest;
31
+ export declare function PatchedExtraUserObjectPermissionRequestToJSON(value?: PatchedExtraUserObjectPermissionRequest | null): any;
@@ -0,0 +1,43 @@
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the PatchedExtraUserObjectPermissionRequest interface.
17
+ */
18
+ export function instanceOfPatchedExtraUserObjectPermissionRequest(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function PatchedExtraUserObjectPermissionRequestFromJSON(json) {
23
+ return PatchedExtraUserObjectPermissionRequestFromJSONTyped(json, false);
24
+ }
25
+ export function PatchedExtraUserObjectPermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'objectPk': !exists(json, 'object_pk') ? undefined : json['object_pk'],
31
+ };
32
+ }
33
+ export function PatchedExtraUserObjectPermissionRequestToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'object_pk': value.objectPk,
42
+ };
43
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.2
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
+ * Result from assigning permissions to a user/role
14
+ * @export
15
+ * @interface PermissionAssignResult
16
+ */
17
+ export interface PermissionAssignResult {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PermissionAssignResult
22
+ */
23
+ id: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PermissionAssignResult interface.
27
+ */
28
+ export declare function instanceOfPermissionAssignResult(value: object): boolean;
29
+ export declare function PermissionAssignResultFromJSON(json: any): PermissionAssignResult;
30
+ export declare function PermissionAssignResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionAssignResult;
31
+ export declare function PermissionAssignResultToJSON(value?: PermissionAssignResult | null): any;
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the PermissionAssignResult interface.
16
+ */
17
+ export function instanceOfPermissionAssignResult(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "id" in value;
20
+ return isInstance;
21
+ }
22
+ export function PermissionAssignResultFromJSON(json) {
23
+ return PermissionAssignResultFromJSONTyped(json, false);
24
+ }
25
+ export function PermissionAssignResultFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'id': json['id'],
31
+ };
32
+ }
33
+ export function PermissionAssignResultToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'id': value.id,
42
+ };
43
+ }
@@ -44,7 +44,7 @@ export interface RoleObjectPermission {
44
44
  * @type {string}
45
45
  * @memberof RoleObjectPermission
46
46
  */
47
- readonly objectPk: string;
47
+ objectPk: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -47,5 +47,7 @@ export function RoleObjectPermissionToJSON(value) {
47
47
  if (value === null) {
48
48
  return null;
49
49
  }
50
- return {};
50
+ return {
51
+ 'object_pk': value.objectPk,
52
+ };
51
53
  }
@@ -44,7 +44,7 @@ export interface UserObjectPermission {
44
44
  * @type {string}
45
45
  * @memberof UserObjectPermission
46
46
  */
47
- readonly objectPk: string;
47
+ objectPk: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -47,5 +47,7 @@ export function UserObjectPermissionToJSON(value) {
47
47
  if (value === null) {
48
48
  return null;
49
49
  }
50
- return {};
50
+ return {
51
+ 'object_pk': value.objectPk,
52
+ };
51
53
  }
@@ -119,7 +119,9 @@ export * from './ExpiringBaseGrantModel';
119
119
  export * from './ExpressionPolicy';
120
120
  export * from './ExpressionPolicyRequest';
121
121
  export * from './ExtraRoleObjectPermission';
122
+ export * from './ExtraRoleObjectPermissionRequest';
122
123
  export * from './ExtraUserObjectPermission';
124
+ export * from './ExtraUserObjectPermissionRequest';
123
125
  export * from './FilePathRequest';
124
126
  export * from './Flow';
125
127
  export * from './FlowChallengeResponseRequest';
@@ -369,6 +371,8 @@ export * from './PatchedEndpointRequest';
369
371
  export * from './PatchedEventMatcherPolicyRequest';
370
372
  export * from './PatchedEventRequest';
371
373
  export * from './PatchedExpressionPolicyRequest';
374
+ export * from './PatchedExtraRoleObjectPermissionRequest';
375
+ export * from './PatchedExtraUserObjectPermissionRequest';
372
376
  export * from './PatchedFlowRequest';
373
377
  export * from './PatchedFlowStageBindingRequest';
374
378
  export * from './PatchedGoogleWorkspaceProviderMappingRequest';
@@ -434,6 +438,7 @@ export * from './PatchedUserWriteStageRequest';
434
438
  export * from './PatchedWebAuthnDeviceRequest';
435
439
  export * from './Permission';
436
440
  export * from './PermissionAssignRequest';
441
+ export * from './PermissionAssignResult';
437
442
  export * from './PlexAuthenticationChallenge';
438
443
  export * from './PlexAuthenticationChallengeResponseRequest';
439
444
  export * from './PlexSource';
@@ -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';
@@ -44,7 +44,7 @@ export interface ExtraRoleObjectPermission {
44
44
  * @type {string}
45
45
  * @memberof ExtraRoleObjectPermission
46
46
  */
47
- readonly objectPk: string;
47
+ objectPk: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -59,6 +59,8 @@ function ExtraRoleObjectPermissionToJSON(value) {
59
59
  if (value === null) {
60
60
  return null;
61
61
  }
62
- return {};
62
+ return {
63
+ 'object_pk': value.objectPk,
64
+ };
63
65
  }
64
66
  exports.ExtraRoleObjectPermissionToJSON = ExtraRoleObjectPermissionToJSON;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.2
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 ExtraRoleObjectPermissionRequest
16
+ */
17
+ export interface ExtraRoleObjectPermissionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExtraRoleObjectPermissionRequest
22
+ */
23
+ objectPk: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ExtraRoleObjectPermissionRequest interface.
27
+ */
28
+ export declare function instanceOfExtraRoleObjectPermissionRequest(value: object): boolean;
29
+ export declare function ExtraRoleObjectPermissionRequestFromJSON(json: any): ExtraRoleObjectPermissionRequest;
30
+ export declare function ExtraRoleObjectPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtraRoleObjectPermissionRequest;
31
+ export declare function ExtraRoleObjectPermissionRequestToJSON(value?: ExtraRoleObjectPermissionRequest | 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: 2024.6.2
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.ExtraRoleObjectPermissionRequestToJSON = exports.ExtraRoleObjectPermissionRequestFromJSONTyped = exports.ExtraRoleObjectPermissionRequestFromJSON = exports.instanceOfExtraRoleObjectPermissionRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the ExtraRoleObjectPermissionRequest interface.
19
+ */
20
+ function instanceOfExtraRoleObjectPermissionRequest(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "objectPk" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfExtraRoleObjectPermissionRequest = instanceOfExtraRoleObjectPermissionRequest;
26
+ function ExtraRoleObjectPermissionRequestFromJSON(json) {
27
+ return ExtraRoleObjectPermissionRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.ExtraRoleObjectPermissionRequestFromJSON = ExtraRoleObjectPermissionRequestFromJSON;
30
+ function ExtraRoleObjectPermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'objectPk': json['object_pk'],
36
+ };
37
+ }
38
+ exports.ExtraRoleObjectPermissionRequestFromJSONTyped = ExtraRoleObjectPermissionRequestFromJSONTyped;
39
+ function ExtraRoleObjectPermissionRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'object_pk': value.objectPk,
48
+ };
49
+ }
50
+ exports.ExtraRoleObjectPermissionRequestToJSON = ExtraRoleObjectPermissionRequestToJSON;
@@ -44,7 +44,7 @@ export interface ExtraUserObjectPermission {
44
44
  * @type {string}
45
45
  * @memberof ExtraUserObjectPermission
46
46
  */
47
- readonly objectPk: string;
47
+ objectPk: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -59,6 +59,8 @@ function ExtraUserObjectPermissionToJSON(value) {
59
59
  if (value === null) {
60
60
  return null;
61
61
  }
62
- return {};
62
+ return {
63
+ 'object_pk': value.objectPk,
64
+ };
63
65
  }
64
66
  exports.ExtraUserObjectPermissionToJSON = ExtraUserObjectPermissionToJSON;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.2
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 ExtraUserObjectPermissionRequest
16
+ */
17
+ export interface ExtraUserObjectPermissionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExtraUserObjectPermissionRequest
22
+ */
23
+ objectPk: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ExtraUserObjectPermissionRequest interface.
27
+ */
28
+ export declare function instanceOfExtraUserObjectPermissionRequest(value: object): boolean;
29
+ export declare function ExtraUserObjectPermissionRequestFromJSON(json: any): ExtraUserObjectPermissionRequest;
30
+ export declare function ExtraUserObjectPermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtraUserObjectPermissionRequest;
31
+ export declare function ExtraUserObjectPermissionRequestToJSON(value?: ExtraUserObjectPermissionRequest | 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: 2024.6.2
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.ExtraUserObjectPermissionRequestToJSON = exports.ExtraUserObjectPermissionRequestFromJSONTyped = exports.ExtraUserObjectPermissionRequestFromJSON = exports.instanceOfExtraUserObjectPermissionRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the ExtraUserObjectPermissionRequest interface.
19
+ */
20
+ function instanceOfExtraUserObjectPermissionRequest(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "objectPk" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfExtraUserObjectPermissionRequest = instanceOfExtraUserObjectPermissionRequest;
26
+ function ExtraUserObjectPermissionRequestFromJSON(json) {
27
+ return ExtraUserObjectPermissionRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.ExtraUserObjectPermissionRequestFromJSON = ExtraUserObjectPermissionRequestFromJSON;
30
+ function ExtraUserObjectPermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'objectPk': json['object_pk'],
36
+ };
37
+ }
38
+ exports.ExtraUserObjectPermissionRequestFromJSONTyped = ExtraUserObjectPermissionRequestFromJSONTyped;
39
+ function ExtraUserObjectPermissionRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'object_pk': value.objectPk,
48
+ };
49
+ }
50
+ exports.ExtraUserObjectPermissionRequestToJSON = ExtraUserObjectPermissionRequestToJSON;