@goauthentik/api 2024.6.3-1723050887 → 2024.6.3-1723109801

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. package/.openapi-generator/FILES +10 -4
  2. package/dist/apis/PropertymappingsApi.d.ts +86 -1
  3. package/dist/apis/PropertymappingsApi.js +271 -0
  4. package/dist/apis/RbacApi.d.ts +6 -2
  5. package/dist/apis/RbacApi.js +6 -2
  6. package/dist/apis/SourcesApi.d.ts +104 -14
  7. package/dist/apis/SourcesApi.js +281 -13
  8. package/dist/esm/apis/PropertymappingsApi.d.ts +86 -1
  9. package/dist/esm/apis/PropertymappingsApi.js +272 -1
  10. package/dist/esm/apis/RbacApi.d.ts +6 -2
  11. package/dist/esm/apis/RbacApi.js +6 -2
  12. package/dist/esm/apis/SourcesApi.d.ts +104 -14
  13. package/dist/esm/apis/SourcesApi.js +281 -13
  14. package/dist/esm/models/GroupPlexSourceConnection.d.ts +56 -0
  15. package/dist/esm/models/GroupPlexSourceConnection.js +50 -0
  16. package/dist/esm/models/ModelEnum.d.ts +3 -1
  17. package/dist/esm/models/ModelEnum.js +3 -1
  18. package/dist/esm/models/PaginatedGroupPlexSourceConnectionList.d.ts +39 -0
  19. package/dist/esm/models/PaginatedGroupPlexSourceConnectionList.js +48 -0
  20. package/dist/esm/models/PaginatedPlexSourcePropertyMappingList.d.ts +39 -0
  21. package/dist/esm/models/PaginatedPlexSourcePropertyMappingList.js +48 -0
  22. package/dist/esm/models/PaginatedUserPlexSourceConnectionList.d.ts +39 -0
  23. package/dist/esm/models/{PaginatedPlexSourceConnectionList.js → PaginatedUserPlexSourceConnectionList.js} +9 -9
  24. package/dist/esm/models/PatchedPlexSourcePropertyMappingRequest.d.ts +43 -0
  25. package/dist/esm/models/PatchedPlexSourcePropertyMappingRequest.js +47 -0
  26. package/dist/esm/models/PatchedPlexSourceRequest.d.ts +7 -0
  27. package/dist/esm/models/PatchedPlexSourceRequest.js +3 -0
  28. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +6 -0
  29. package/dist/esm/models/PatchedSAMLSourceRequest.js +2 -0
  30. package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.d.ts +37 -0
  31. package/dist/esm/models/{PatchedPlexSourceConnectionRequest.js → PatchedUserPlexSourceConnectionRequest.js} +6 -6
  32. package/dist/esm/models/PlexSource.d.ts +7 -0
  33. package/dist/esm/models/PlexSource.js +3 -0
  34. package/dist/esm/models/PlexSourcePropertyMapping.d.ts +73 -0
  35. package/dist/esm/models/PlexSourcePropertyMapping.js +59 -0
  36. package/dist/esm/models/PlexSourcePropertyMappingRequest.d.ts +43 -0
  37. package/dist/esm/models/PlexSourcePropertyMappingRequest.js +49 -0
  38. package/dist/esm/models/PlexSourceRequest.d.ts +7 -0
  39. package/dist/esm/models/PlexSourceRequest.js +3 -0
  40. package/dist/esm/models/SAMLSource.d.ts +6 -0
  41. package/dist/esm/models/SAMLSource.js +2 -0
  42. package/dist/esm/models/SAMLSourceRequest.d.ts +6 -0
  43. package/dist/esm/models/SAMLSourceRequest.js +2 -0
  44. package/dist/esm/models/UserPlexSourceConnection.d.ts +56 -0
  45. package/dist/esm/models/{PlexSourceConnection.js → UserPlexSourceConnection.js} +6 -6
  46. package/dist/esm/models/UserPlexSourceConnectionRequest.d.ts +37 -0
  47. package/dist/esm/models/{PlexSourceConnectionRequest.js → UserPlexSourceConnectionRequest.js} +6 -6
  48. package/dist/esm/models/index.d.ts +10 -4
  49. package/dist/esm/models/index.js +10 -4
  50. package/dist/models/GroupPlexSourceConnection.d.ts +56 -0
  51. package/dist/models/GroupPlexSourceConnection.js +57 -0
  52. package/dist/models/ModelEnum.d.ts +3 -1
  53. package/dist/models/ModelEnum.js +3 -1
  54. package/dist/models/PaginatedGroupPlexSourceConnectionList.d.ts +39 -0
  55. package/dist/models/PaginatedGroupPlexSourceConnectionList.js +55 -0
  56. package/dist/models/PaginatedPlexSourcePropertyMappingList.d.ts +39 -0
  57. package/dist/models/PaginatedPlexSourcePropertyMappingList.js +55 -0
  58. package/dist/models/PaginatedUserPlexSourceConnectionList.d.ts +39 -0
  59. package/dist/models/PaginatedUserPlexSourceConnectionList.js +55 -0
  60. package/dist/models/PatchedPlexSourcePropertyMappingRequest.d.ts +43 -0
  61. package/dist/models/PatchedPlexSourcePropertyMappingRequest.js +54 -0
  62. package/dist/models/PatchedPlexSourceRequest.d.ts +7 -0
  63. package/dist/models/PatchedPlexSourceRequest.js +3 -0
  64. package/dist/models/PatchedSAMLSourceRequest.d.ts +6 -0
  65. package/dist/models/PatchedSAMLSourceRequest.js +2 -0
  66. package/dist/models/PatchedUserPlexSourceConnectionRequest.d.ts +37 -0
  67. package/dist/models/PatchedUserPlexSourceConnectionRequest.js +52 -0
  68. package/dist/models/PlexSource.d.ts +7 -0
  69. package/dist/models/PlexSource.js +3 -0
  70. package/dist/models/PlexSourcePropertyMapping.d.ts +73 -0
  71. package/dist/models/PlexSourcePropertyMapping.js +66 -0
  72. package/dist/models/PlexSourcePropertyMappingRequest.d.ts +43 -0
  73. package/dist/models/PlexSourcePropertyMappingRequest.js +56 -0
  74. package/dist/models/PlexSourceRequest.d.ts +7 -0
  75. package/dist/models/PlexSourceRequest.js +3 -0
  76. package/dist/models/SAMLSource.d.ts +6 -0
  77. package/dist/models/SAMLSource.js +2 -0
  78. package/dist/models/SAMLSourceRequest.d.ts +6 -0
  79. package/dist/models/SAMLSourceRequest.js +2 -0
  80. package/dist/models/UserPlexSourceConnection.d.ts +56 -0
  81. package/dist/models/{PlexSourceConnection.js → UserPlexSourceConnection.js} +11 -11
  82. package/dist/models/UserPlexSourceConnectionRequest.d.ts +37 -0
  83. package/dist/models/UserPlexSourceConnectionRequest.js +53 -0
  84. package/dist/models/index.d.ts +10 -4
  85. package/dist/models/index.js +10 -4
  86. package/package.json +1 -1
  87. package/src/apis/PropertymappingsApi.ts +350 -0
  88. package/src/apis/RbacApi.ts +6 -2
  89. package/src/apis/SourcesApi.ts +368 -37
  90. package/src/models/GroupPlexSourceConnection.ts +104 -0
  91. package/src/models/ModelEnum.ts +3 -1
  92. package/src/models/PaginatedGroupPlexSourceConnectionList.ts +88 -0
  93. package/src/models/{PaginatedPlexSourceConnectionList.ts → PaginatedPlexSourcePropertyMappingList.ts} +19 -19
  94. package/src/models/PaginatedUserPlexSourceConnectionList.ts +88 -0
  95. package/src/models/PatchedPlexSourcePropertyMappingRequest.ts +81 -0
  96. package/src/models/PatchedPlexSourceRequest.ts +14 -0
  97. package/src/models/PatchedSAMLSourceRequest.ts +8 -0
  98. package/src/models/{PatchedPlexSourceConnectionRequest.ts → PatchedUserPlexSourceConnectionRequest.ts} +10 -10
  99. package/src/models/PlexSource.ts +14 -0
  100. package/src/models/PlexSourcePropertyMapping.ts +123 -0
  101. package/src/models/PlexSourcePropertyMappingRequest.ts +83 -0
  102. package/src/models/PlexSourceRequest.ts +14 -0
  103. package/src/models/SAMLSource.ts +8 -0
  104. package/src/models/SAMLSourceRequest.ts +8 -0
  105. package/src/models/{PlexSourceConnection.ts → UserPlexSourceConnection.ts} +13 -13
  106. package/src/models/{PlexSourceConnectionRequest.ts → UserPlexSourceConnectionRequest.ts} +10 -10
  107. package/src/models/index.ts +10 -4
  108. package/dist/esm/models/PaginatedPlexSourceConnectionList.d.ts +0 -39
  109. package/dist/esm/models/PatchedPlexSourceConnectionRequest.d.ts +0 -37
  110. package/dist/esm/models/PlexSourceConnection.d.ts +0 -56
  111. package/dist/esm/models/PlexSourceConnectionRequest.d.ts +0 -37
  112. package/dist/models/PaginatedPlexSourceConnectionList.d.ts +0 -39
  113. package/dist/models/PaginatedPlexSourceConnectionList.js +0 -55
  114. package/dist/models/PatchedPlexSourceConnectionRequest.d.ts +0 -37
  115. package/dist/models/PatchedPlexSourceConnectionRequest.js +0 -52
  116. package/dist/models/PlexSourceConnection.d.ts +0 -56
  117. package/dist/models/PlexSourceConnectionRequest.d.ts +0 -37
  118. package/dist/models/PlexSourceConnectionRequest.js +0 -53
@@ -0,0 +1,104 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.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
+ import { exists, mapValues } from '../runtime';
16
+ import type { Source } from './Source';
17
+ import {
18
+ SourceFromJSON,
19
+ SourceFromJSONTyped,
20
+ SourceToJSON,
21
+ } from './Source';
22
+
23
+ /**
24
+ * Plex Group-Source connection Serializer
25
+ * @export
26
+ * @interface GroupPlexSourceConnection
27
+ */
28
+ export interface GroupPlexSourceConnection {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof GroupPlexSourceConnection
33
+ */
34
+ readonly pk: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof GroupPlexSourceConnection
39
+ */
40
+ readonly group: string;
41
+ /**
42
+ *
43
+ * @type {Source}
44
+ * @memberof GroupPlexSourceConnection
45
+ */
46
+ readonly source: Source;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof GroupPlexSourceConnection
51
+ */
52
+ readonly identifier: string;
53
+ /**
54
+ *
55
+ * @type {Date}
56
+ * @memberof GroupPlexSourceConnection
57
+ */
58
+ readonly created: Date;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the GroupPlexSourceConnection interface.
63
+ */
64
+ export function instanceOfGroupPlexSourceConnection(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "pk" in value;
67
+ isInstance = isInstance && "group" in value;
68
+ isInstance = isInstance && "source" in value;
69
+ isInstance = isInstance && "identifier" in value;
70
+ isInstance = isInstance && "created" in value;
71
+
72
+ return isInstance;
73
+ }
74
+
75
+ export function GroupPlexSourceConnectionFromJSON(json: any): GroupPlexSourceConnection {
76
+ return GroupPlexSourceConnectionFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function GroupPlexSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupPlexSourceConnection {
80
+ if ((json === undefined) || (json === null)) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'pk': json['pk'],
86
+ 'group': json['group'],
87
+ 'source': SourceFromJSON(json['source']),
88
+ 'identifier': json['identifier'],
89
+ 'created': (new Date(json['created'])),
90
+ };
91
+ }
92
+
93
+ export function GroupPlexSourceConnectionToJSON(value?: GroupPlexSourceConnection | null): any {
94
+ if (value === undefined) {
95
+ return undefined;
96
+ }
97
+ if (value === null) {
98
+ return null;
99
+ }
100
+ return {
101
+
102
+ };
103
+ }
104
+
@@ -51,7 +51,9 @@ export const ModelEnum = {
51
51
  SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
52
52
  SourcesOauthGroupoauthsourceconnection: 'authentik_sources_oauth.groupoauthsourceconnection',
53
53
  SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
54
- SourcesPlexPlexsourceconnection: 'authentik_sources_plex.plexsourceconnection',
54
+ SourcesPlexPlexsourcepropertymapping: 'authentik_sources_plex.plexsourcepropertymapping',
55
+ SourcesPlexUserplexsourceconnection: 'authentik_sources_plex.userplexsourceconnection',
56
+ SourcesPlexGroupplexsourceconnection: 'authentik_sources_plex.groupplexsourceconnection',
55
57
  SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
56
58
  SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
57
59
  SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.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
+ import { exists, mapValues } from '../runtime';
16
+ import type { GroupPlexSourceConnection } from './GroupPlexSourceConnection';
17
+ import {
18
+ GroupPlexSourceConnectionFromJSON,
19
+ GroupPlexSourceConnectionFromJSONTyped,
20
+ GroupPlexSourceConnectionToJSON,
21
+ } from './GroupPlexSourceConnection';
22
+ import type { Pagination } from './Pagination';
23
+ import {
24
+ PaginationFromJSON,
25
+ PaginationFromJSONTyped,
26
+ PaginationToJSON,
27
+ } from './Pagination';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedGroupPlexSourceConnectionList
33
+ */
34
+ export interface PaginatedGroupPlexSourceConnectionList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedGroupPlexSourceConnectionList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<GroupPlexSourceConnection>}
44
+ * @memberof PaginatedGroupPlexSourceConnectionList
45
+ */
46
+ results: Array<GroupPlexSourceConnection>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedGroupPlexSourceConnectionList interface.
51
+ */
52
+ export function instanceOfPaginatedGroupPlexSourceConnectionList(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "pagination" in value;
55
+ isInstance = isInstance && "results" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function PaginatedGroupPlexSourceConnectionListFromJSON(json: any): PaginatedGroupPlexSourceConnectionList {
61
+ return PaginatedGroupPlexSourceConnectionListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedGroupPlexSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupPlexSourceConnectionList {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(GroupPlexSourceConnectionFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedGroupPlexSourceConnectionListToJSON(value?: PaginatedGroupPlexSourceConnectionList | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'pagination': PaginationToJSON(value.pagination),
85
+ 'results': ((value.results as Array<any>).map(GroupPlexSourceConnectionToJSON)),
86
+ };
87
+ }
88
+
@@ -19,37 +19,37 @@ import {
19
19
  PaginationFromJSONTyped,
20
20
  PaginationToJSON,
21
21
  } from './Pagination';
22
- import type { PlexSourceConnection } from './PlexSourceConnection';
22
+ import type { PlexSourcePropertyMapping } from './PlexSourcePropertyMapping';
23
23
  import {
24
- PlexSourceConnectionFromJSON,
25
- PlexSourceConnectionFromJSONTyped,
26
- PlexSourceConnectionToJSON,
27
- } from './PlexSourceConnection';
24
+ PlexSourcePropertyMappingFromJSON,
25
+ PlexSourcePropertyMappingFromJSONTyped,
26
+ PlexSourcePropertyMappingToJSON,
27
+ } from './PlexSourcePropertyMapping';
28
28
 
29
29
  /**
30
30
  *
31
31
  * @export
32
- * @interface PaginatedPlexSourceConnectionList
32
+ * @interface PaginatedPlexSourcePropertyMappingList
33
33
  */
34
- export interface PaginatedPlexSourceConnectionList {
34
+ export interface PaginatedPlexSourcePropertyMappingList {
35
35
  /**
36
36
  *
37
37
  * @type {Pagination}
38
- * @memberof PaginatedPlexSourceConnectionList
38
+ * @memberof PaginatedPlexSourcePropertyMappingList
39
39
  */
40
40
  pagination: Pagination;
41
41
  /**
42
42
  *
43
- * @type {Array<PlexSourceConnection>}
44
- * @memberof PaginatedPlexSourceConnectionList
43
+ * @type {Array<PlexSourcePropertyMapping>}
44
+ * @memberof PaginatedPlexSourcePropertyMappingList
45
45
  */
46
- results: Array<PlexSourceConnection>;
46
+ results: Array<PlexSourcePropertyMapping>;
47
47
  }
48
48
 
49
49
  /**
50
- * Check if a given object implements the PaginatedPlexSourceConnectionList interface.
50
+ * Check if a given object implements the PaginatedPlexSourcePropertyMappingList interface.
51
51
  */
52
- export function instanceOfPaginatedPlexSourceConnectionList(value: object): boolean {
52
+ export function instanceOfPaginatedPlexSourcePropertyMappingList(value: object): boolean {
53
53
  let isInstance = true;
54
54
  isInstance = isInstance && "pagination" in value;
55
55
  isInstance = isInstance && "results" in value;
@@ -57,22 +57,22 @@ export function instanceOfPaginatedPlexSourceConnectionList(value: object): bool
57
57
  return isInstance;
58
58
  }
59
59
 
60
- export function PaginatedPlexSourceConnectionListFromJSON(json: any): PaginatedPlexSourceConnectionList {
61
- return PaginatedPlexSourceConnectionListFromJSONTyped(json, false);
60
+ export function PaginatedPlexSourcePropertyMappingListFromJSON(json: any): PaginatedPlexSourcePropertyMappingList {
61
+ return PaginatedPlexSourcePropertyMappingListFromJSONTyped(json, false);
62
62
  }
63
63
 
64
- export function PaginatedPlexSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPlexSourceConnectionList {
64
+ export function PaginatedPlexSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPlexSourcePropertyMappingList {
65
65
  if ((json === undefined) || (json === null)) {
66
66
  return json;
67
67
  }
68
68
  return {
69
69
 
70
70
  'pagination': PaginationFromJSON(json['pagination']),
71
- 'results': ((json['results'] as Array<any>).map(PlexSourceConnectionFromJSON)),
71
+ 'results': ((json['results'] as Array<any>).map(PlexSourcePropertyMappingFromJSON)),
72
72
  };
73
73
  }
74
74
 
75
- export function PaginatedPlexSourceConnectionListToJSON(value?: PaginatedPlexSourceConnectionList | null): any {
75
+ export function PaginatedPlexSourcePropertyMappingListToJSON(value?: PaginatedPlexSourcePropertyMappingList | null): any {
76
76
  if (value === undefined) {
77
77
  return undefined;
78
78
  }
@@ -82,7 +82,7 @@ export function PaginatedPlexSourceConnectionListToJSON(value?: PaginatedPlexSou
82
82
  return {
83
83
 
84
84
  'pagination': PaginationToJSON(value.pagination),
85
- 'results': ((value.results as Array<any>).map(PlexSourceConnectionToJSON)),
85
+ 'results': ((value.results as Array<any>).map(PlexSourcePropertyMappingToJSON)),
86
86
  };
87
87
  }
88
88
 
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.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
+ import { exists, mapValues } from '../runtime';
16
+ import type { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ } from './Pagination';
22
+ import type { UserPlexSourceConnection } from './UserPlexSourceConnection';
23
+ import {
24
+ UserPlexSourceConnectionFromJSON,
25
+ UserPlexSourceConnectionFromJSONTyped,
26
+ UserPlexSourceConnectionToJSON,
27
+ } from './UserPlexSourceConnection';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedUserPlexSourceConnectionList
33
+ */
34
+ export interface PaginatedUserPlexSourceConnectionList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedUserPlexSourceConnectionList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<UserPlexSourceConnection>}
44
+ * @memberof PaginatedUserPlexSourceConnectionList
45
+ */
46
+ results: Array<UserPlexSourceConnection>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedUserPlexSourceConnectionList interface.
51
+ */
52
+ export function instanceOfPaginatedUserPlexSourceConnectionList(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "pagination" in value;
55
+ isInstance = isInstance && "results" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function PaginatedUserPlexSourceConnectionListFromJSON(json: any): PaginatedUserPlexSourceConnectionList {
61
+ return PaginatedUserPlexSourceConnectionListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedUserPlexSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserPlexSourceConnectionList {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(UserPlexSourceConnectionFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedUserPlexSourceConnectionListToJSON(value?: PaginatedUserPlexSourceConnectionList | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'pagination': PaginationToJSON(value.pagination),
85
+ 'results': ((value.results as Array<any>).map(UserPlexSourceConnectionToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.6.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
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * PlexSourcePropertyMapping Serializer
18
+ * @export
19
+ * @interface PatchedPlexSourcePropertyMappingRequest
20
+ */
21
+ export interface PatchedPlexSourcePropertyMappingRequest {
22
+ /**
23
+ * Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
24
+ * @type {string}
25
+ * @memberof PatchedPlexSourcePropertyMappingRequest
26
+ */
27
+ managed?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PatchedPlexSourcePropertyMappingRequest
32
+ */
33
+ name?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedPlexSourcePropertyMappingRequest
38
+ */
39
+ expression?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PatchedPlexSourcePropertyMappingRequest interface.
44
+ */
45
+ export function instanceOfPatchedPlexSourcePropertyMappingRequest(value: object): boolean {
46
+ let isInstance = true;
47
+
48
+ return isInstance;
49
+ }
50
+
51
+ export function PatchedPlexSourcePropertyMappingRequestFromJSON(json: any): PatchedPlexSourcePropertyMappingRequest {
52
+ return PatchedPlexSourcePropertyMappingRequestFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function PatchedPlexSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedPlexSourcePropertyMappingRequest {
56
+ if ((json === undefined) || (json === null)) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
62
+ 'name': !exists(json, 'name') ? undefined : json['name'],
63
+ 'expression': !exists(json, 'expression') ? undefined : json['expression'],
64
+ };
65
+ }
66
+
67
+ export function PatchedPlexSourcePropertyMappingRequestToJSON(value?: PatchedPlexSourcePropertyMappingRequest | null): any {
68
+ if (value === undefined) {
69
+ return undefined;
70
+ }
71
+ if (value === null) {
72
+ return null;
73
+ }
74
+ return {
75
+
76
+ 'managed': value.managed,
77
+ 'name': value.name,
78
+ 'expression': value.expression,
79
+ };
80
+ }
81
+
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
17
+ import {
18
+ GroupMatchingModeEnumFromJSON,
19
+ GroupMatchingModeEnumFromJSONTyped,
20
+ GroupMatchingModeEnumToJSON,
21
+ } from './GroupMatchingModeEnum';
16
22
  import type { PolicyEngineMode } from './PolicyEngineMode';
17
23
  import {
18
24
  PolicyEngineModeFromJSON,
@@ -92,6 +98,12 @@ export interface PatchedPlexSourceRequest {
92
98
  * @memberof PatchedPlexSourceRequest
93
99
  */
94
100
  userPathTemplate?: string;
101
+ /**
102
+ *
103
+ * @type {GroupMatchingModeEnum}
104
+ * @memberof PatchedPlexSourceRequest
105
+ */
106
+ groupMatchingMode?: GroupMatchingModeEnum;
95
107
  /**
96
108
  * Client identifier used to talk to Plex.
97
109
  * @type {string}
@@ -147,6 +159,7 @@ export function PatchedPlexSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
147
159
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
148
160
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
149
161
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
162
+ 'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
150
163
  'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
151
164
  'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
152
165
  'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
@@ -173,6 +186,7 @@ export function PatchedPlexSourceRequestToJSON(value?: PatchedPlexSourceRequest
173
186
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
174
187
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
175
188
  'user_path_template': value.userPathTemplate,
189
+ 'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
176
190
  'client_id': value.clientId,
177
191
  'allowed_servers': value.allowedServers,
178
192
  'allow_friends': value.allowFriends,
@@ -200,6 +200,12 @@ export interface PatchedSAMLSourceRequest {
200
200
  * @memberof PatchedSAMLSourceRequest
201
201
  */
202
202
  temporaryUserDeleteAfter?: string;
203
+ /**
204
+ * When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.
205
+ * @type {string}
206
+ * @memberof PatchedSAMLSourceRequest
207
+ */
208
+ encryptionKp?: string | null;
203
209
  }
204
210
 
205
211
  /**
@@ -244,6 +250,7 @@ export function PatchedSAMLSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
244
250
  'digestAlgorithm': !exists(json, 'digest_algorithm') ? undefined : DigestAlgorithmEnumFromJSON(json['digest_algorithm']),
245
251
  'signatureAlgorithm': !exists(json, 'signature_algorithm') ? undefined : SignatureAlgorithmEnumFromJSON(json['signature_algorithm']),
246
252
  'temporaryUserDeleteAfter': !exists(json, 'temporary_user_delete_after') ? undefined : json['temporary_user_delete_after'],
253
+ 'encryptionKp': !exists(json, 'encryption_kp') ? undefined : json['encryption_kp'],
247
254
  };
248
255
  }
249
256
 
@@ -279,6 +286,7 @@ export function PatchedSAMLSourceRequestToJSON(value?: PatchedSAMLSourceRequest
279
286
  'digest_algorithm': DigestAlgorithmEnumToJSON(value.digestAlgorithm),
280
287
  'signature_algorithm': SignatureAlgorithmEnumToJSON(value.signatureAlgorithm),
281
288
  'temporary_user_delete_after': value.temporaryUserDeleteAfter,
289
+ 'encryption_kp': value.encryptionKp,
282
290
  };
283
291
  }
284
292
 
@@ -16,37 +16,37 @@ import { exists, mapValues } from '../runtime';
16
16
  /**
17
17
  * Plex Source connection Serializer
18
18
  * @export
19
- * @interface PatchedPlexSourceConnectionRequest
19
+ * @interface PatchedUserPlexSourceConnectionRequest
20
20
  */
21
- export interface PatchedPlexSourceConnectionRequest {
21
+ export interface PatchedUserPlexSourceConnectionRequest {
22
22
  /**
23
23
  *
24
24
  * @type {string}
25
- * @memberof PatchedPlexSourceConnectionRequest
25
+ * @memberof PatchedUserPlexSourceConnectionRequest
26
26
  */
27
27
  identifier?: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
- * @memberof PatchedPlexSourceConnectionRequest
31
+ * @memberof PatchedUserPlexSourceConnectionRequest
32
32
  */
33
33
  plexToken?: string;
34
34
  }
35
35
 
36
36
  /**
37
- * Check if a given object implements the PatchedPlexSourceConnectionRequest interface.
37
+ * Check if a given object implements the PatchedUserPlexSourceConnectionRequest interface.
38
38
  */
39
- export function instanceOfPatchedPlexSourceConnectionRequest(value: object): boolean {
39
+ export function instanceOfPatchedUserPlexSourceConnectionRequest(value: object): boolean {
40
40
  let isInstance = true;
41
41
 
42
42
  return isInstance;
43
43
  }
44
44
 
45
- export function PatchedPlexSourceConnectionRequestFromJSON(json: any): PatchedPlexSourceConnectionRequest {
46
- return PatchedPlexSourceConnectionRequestFromJSONTyped(json, false);
45
+ export function PatchedUserPlexSourceConnectionRequestFromJSON(json: any): PatchedUserPlexSourceConnectionRequest {
46
+ return PatchedUserPlexSourceConnectionRequestFromJSONTyped(json, false);
47
47
  }
48
48
 
49
- export function PatchedPlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedPlexSourceConnectionRequest {
49
+ export function PatchedUserPlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserPlexSourceConnectionRequest {
50
50
  if ((json === undefined) || (json === null)) {
51
51
  return json;
52
52
  }
@@ -57,7 +57,7 @@ export function PatchedPlexSourceConnectionRequestFromJSONTyped(json: any, ignor
57
57
  };
58
58
  }
59
59
 
60
- export function PatchedPlexSourceConnectionRequestToJSON(value?: PatchedPlexSourceConnectionRequest | null): any {
60
+ export function PatchedUserPlexSourceConnectionRequestToJSON(value?: PatchedUserPlexSourceConnectionRequest | null): any {
61
61
  if (value === undefined) {
62
62
  return undefined;
63
63
  }
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
17
+ import {
18
+ GroupMatchingModeEnumFromJSON,
19
+ GroupMatchingModeEnumFromJSONTyped,
20
+ GroupMatchingModeEnumToJSON,
21
+ } from './GroupMatchingModeEnum';
16
22
  import type { PolicyEngineMode } from './PolicyEngineMode';
17
23
  import {
18
24
  PolicyEngineModeFromJSON,
@@ -134,6 +140,12 @@ export interface PlexSource {
134
140
  * @memberof PlexSource
135
141
  */
136
142
  readonly icon: string;
143
+ /**
144
+ *
145
+ * @type {GroupMatchingModeEnum}
146
+ * @memberof PlexSource
147
+ */
148
+ groupMatchingMode?: GroupMatchingModeEnum;
137
149
  /**
138
150
  * Client identifier used to talk to Plex.
139
151
  * @type {string}
@@ -206,6 +218,7 @@ export function PlexSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
206
218
  'managed': json['managed'],
207
219
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
208
220
  'icon': json['icon'],
221
+ 'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
209
222
  'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
210
223
  'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
211
224
  'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
@@ -232,6 +245,7 @@ export function PlexSourceToJSON(value?: PlexSource | null): any {
232
245
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
233
246
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
234
247
  'user_path_template': value.userPathTemplate,
248
+ 'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
235
249
  'client_id': value.clientId,
236
250
  'allowed_servers': value.allowedServers,
237
251
  'allow_friends': value.allowFriends,