@goauthentik/api 2024.6.3-1723053526 → 2024.6.3-1723206419

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/.openapi-generator/FILES +11 -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/LicenseSummary.d.ts +3 -26
  17. package/dist/esm/models/LicenseSummary.js +4 -15
  18. package/dist/esm/models/LicenseSummaryStatusEnum.d.ts +29 -0
  19. package/dist/esm/models/LicenseSummaryStatusEnum.js +36 -0
  20. package/dist/esm/models/ModelEnum.d.ts +3 -1
  21. package/dist/esm/models/ModelEnum.js +3 -1
  22. package/dist/esm/models/PaginatedGroupPlexSourceConnectionList.d.ts +39 -0
  23. package/dist/esm/models/PaginatedGroupPlexSourceConnectionList.js +48 -0
  24. package/dist/esm/models/PaginatedPlexSourcePropertyMappingList.d.ts +39 -0
  25. package/dist/esm/models/PaginatedPlexSourcePropertyMappingList.js +48 -0
  26. package/dist/esm/models/PaginatedUserPlexSourceConnectionList.d.ts +39 -0
  27. package/dist/esm/models/{PaginatedPlexSourceConnectionList.js → PaginatedUserPlexSourceConnectionList.js} +9 -9
  28. package/dist/esm/models/PatchedPlexSourcePropertyMappingRequest.d.ts +43 -0
  29. package/dist/esm/models/PatchedPlexSourcePropertyMappingRequest.js +47 -0
  30. package/dist/esm/models/PatchedPlexSourceRequest.d.ts +7 -0
  31. package/dist/esm/models/PatchedPlexSourceRequest.js +3 -0
  32. package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.d.ts +37 -0
  33. package/dist/esm/models/{PatchedPlexSourceConnectionRequest.js → PatchedUserPlexSourceConnectionRequest.js} +6 -6
  34. package/dist/esm/models/PlexSource.d.ts +7 -0
  35. package/dist/esm/models/PlexSource.js +3 -0
  36. package/dist/esm/models/PlexSourcePropertyMapping.d.ts +73 -0
  37. package/dist/esm/models/PlexSourcePropertyMapping.js +59 -0
  38. package/dist/esm/models/PlexSourcePropertyMappingRequest.d.ts +43 -0
  39. package/dist/esm/models/PlexSourcePropertyMappingRequest.js +49 -0
  40. package/dist/esm/models/PlexSourceRequest.d.ts +7 -0
  41. package/dist/esm/models/PlexSourceRequest.js +3 -0
  42. package/dist/esm/models/UserPlexSourceConnection.d.ts +56 -0
  43. package/dist/esm/models/{PlexSourceConnection.js → UserPlexSourceConnection.js} +6 -6
  44. package/dist/esm/models/UserPlexSourceConnectionRequest.d.ts +37 -0
  45. package/dist/esm/models/{PlexSourceConnectionRequest.js → UserPlexSourceConnectionRequest.js} +6 -6
  46. package/dist/esm/models/index.d.ts +11 -4
  47. package/dist/esm/models/index.js +11 -4
  48. package/dist/models/GroupPlexSourceConnection.d.ts +56 -0
  49. package/dist/models/GroupPlexSourceConnection.js +57 -0
  50. package/dist/models/LicenseSummary.d.ts +3 -26
  51. package/dist/models/LicenseSummary.js +4 -15
  52. package/dist/models/LicenseSummaryStatusEnum.d.ts +29 -0
  53. package/dist/models/LicenseSummaryStatusEnum.js +42 -0
  54. package/dist/models/ModelEnum.d.ts +3 -1
  55. package/dist/models/ModelEnum.js +3 -1
  56. package/dist/models/PaginatedGroupPlexSourceConnectionList.d.ts +39 -0
  57. package/dist/models/PaginatedGroupPlexSourceConnectionList.js +55 -0
  58. package/dist/models/PaginatedPlexSourcePropertyMappingList.d.ts +39 -0
  59. package/dist/models/PaginatedPlexSourcePropertyMappingList.js +55 -0
  60. package/dist/models/PaginatedUserPlexSourceConnectionList.d.ts +39 -0
  61. package/dist/models/PaginatedUserPlexSourceConnectionList.js +55 -0
  62. package/dist/models/PatchedPlexSourcePropertyMappingRequest.d.ts +43 -0
  63. package/dist/models/PatchedPlexSourcePropertyMappingRequest.js +54 -0
  64. package/dist/models/PatchedPlexSourceRequest.d.ts +7 -0
  65. package/dist/models/PatchedPlexSourceRequest.js +3 -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/UserPlexSourceConnection.d.ts +56 -0
  77. package/dist/models/{PlexSourceConnection.js → UserPlexSourceConnection.js} +11 -11
  78. package/dist/models/UserPlexSourceConnectionRequest.d.ts +37 -0
  79. package/dist/models/UserPlexSourceConnectionRequest.js +53 -0
  80. package/dist/models/index.d.ts +11 -4
  81. package/dist/models/index.js +11 -4
  82. package/package.json +1 -1
  83. package/src/apis/PropertymappingsApi.ts +350 -0
  84. package/src/apis/RbacApi.ts +6 -2
  85. package/src/apis/SourcesApi.ts +368 -37
  86. package/src/models/GroupPlexSourceConnection.ts +104 -0
  87. package/src/models/LicenseSummary.ts +12 -41
  88. package/src/models/LicenseSummaryStatusEnum.ts +44 -0
  89. package/src/models/ModelEnum.ts +3 -1
  90. package/src/models/PaginatedGroupPlexSourceConnectionList.ts +88 -0
  91. package/src/models/{PaginatedPlexSourceConnectionList.ts → PaginatedPlexSourcePropertyMappingList.ts} +19 -19
  92. package/src/models/PaginatedUserPlexSourceConnectionList.ts +88 -0
  93. package/src/models/PatchedPlexSourcePropertyMappingRequest.ts +81 -0
  94. package/src/models/PatchedPlexSourceRequest.ts +14 -0
  95. package/src/models/{PatchedPlexSourceConnectionRequest.ts → PatchedUserPlexSourceConnectionRequest.ts} +10 -10
  96. package/src/models/PlexSource.ts +14 -0
  97. package/src/models/PlexSourcePropertyMapping.ts +123 -0
  98. package/src/models/PlexSourcePropertyMappingRequest.ts +83 -0
  99. package/src/models/PlexSourceRequest.ts +14 -0
  100. package/src/models/{PlexSourceConnection.ts → UserPlexSourceConnection.ts} +13 -13
  101. package/src/models/{PlexSourceConnectionRequest.ts → UserPlexSourceConnectionRequest.ts} +10 -10
  102. package/src/models/index.ts +11 -4
  103. package/dist/esm/models/PaginatedPlexSourceConnectionList.d.ts +0 -39
  104. package/dist/esm/models/PatchedPlexSourceConnectionRequest.d.ts +0 -37
  105. package/dist/esm/models/PlexSourceConnection.d.ts +0 -56
  106. package/dist/esm/models/PlexSourceConnectionRequest.d.ts +0 -37
  107. package/dist/models/PaginatedPlexSourceConnectionList.d.ts +0 -39
  108. package/dist/models/PaginatedPlexSourceConnectionList.js +0 -55
  109. package/dist/models/PatchedPlexSourceConnectionRequest.d.ts +0 -37
  110. package/dist/models/PatchedPlexSourceConnectionRequest.js +0 -52
  111. package/dist/models/PlexSourceConnection.d.ts +0 -56
  112. package/dist/models/PlexSourceConnectionRequest.d.ts +0 -37
  113. package/dist/models/PlexSourceConnectionRequest.js +0 -53
@@ -0,0 +1,37 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.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
+ * Plex Source connection Serializer
14
+ * @export
15
+ * @interface PatchedUserPlexSourceConnectionRequest
16
+ */
17
+ export interface PatchedUserPlexSourceConnectionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PatchedUserPlexSourceConnectionRequest
22
+ */
23
+ identifier?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PatchedUserPlexSourceConnectionRequest
28
+ */
29
+ plexToken?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PatchedUserPlexSourceConnectionRequest interface.
33
+ */
34
+ export declare function instanceOfPatchedUserPlexSourceConnectionRequest(value: object): boolean;
35
+ export declare function PatchedUserPlexSourceConnectionRequestFromJSON(json: any): PatchedUserPlexSourceConnectionRequest;
36
+ export declare function PatchedUserPlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserPlexSourceConnectionRequest;
37
+ export declare function PatchedUserPlexSourceConnectionRequestToJSON(value?: PatchedUserPlexSourceConnectionRequest | null): any;
@@ -13,16 +13,16 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  /**
16
- * Check if a given object implements the PatchedPlexSourceConnectionRequest interface.
16
+ * Check if a given object implements the PatchedUserPlexSourceConnectionRequest interface.
17
17
  */
18
- export function instanceOfPatchedPlexSourceConnectionRequest(value) {
18
+ export function instanceOfPatchedUserPlexSourceConnectionRequest(value) {
19
19
  let isInstance = true;
20
20
  return isInstance;
21
21
  }
22
- export function PatchedPlexSourceConnectionRequestFromJSON(json) {
23
- return PatchedPlexSourceConnectionRequestFromJSONTyped(json, false);
22
+ export function PatchedUserPlexSourceConnectionRequestFromJSON(json) {
23
+ return PatchedUserPlexSourceConnectionRequestFromJSONTyped(json, false);
24
24
  }
25
- export function PatchedPlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
25
+ export function PatchedUserPlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
26
26
  if ((json === undefined) || (json === null)) {
27
27
  return json;
28
28
  }
@@ -31,7 +31,7 @@ export function PatchedPlexSourceConnectionRequestFromJSONTyped(json, ignoreDisc
31
31
  'plexToken': !exists(json, 'plex_token') ? undefined : json['plex_token'],
32
32
  };
33
33
  }
34
- export function PatchedPlexSourceConnectionRequestToJSON(value) {
34
+ export function PatchedUserPlexSourceConnectionRequestToJSON(value) {
35
35
  if (value === undefined) {
36
36
  return undefined;
37
37
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
12
13
  import type { PolicyEngineMode } from './PolicyEngineMode';
13
14
  import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
14
15
  /**
@@ -119,6 +120,12 @@ export interface PlexSource {
119
120
  * @memberof PlexSource
120
121
  */
121
122
  readonly icon: string;
123
+ /**
124
+ *
125
+ * @type {GroupMatchingModeEnum}
126
+ * @memberof PlexSource
127
+ */
128
+ groupMatchingMode?: GroupMatchingModeEnum;
122
129
  /**
123
130
  * Client identifier used to talk to Plex.
124
131
  * @type {string}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { GroupMatchingModeEnumFromJSON, GroupMatchingModeEnumToJSON, } from './GroupMatchingModeEnum';
15
16
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
16
17
  import { UserMatchingModeEnumFromJSON, UserMatchingModeEnumToJSON, } from './UserMatchingModeEnum';
17
18
  /**
@@ -56,6 +57,7 @@ export function PlexSourceFromJSONTyped(json, ignoreDiscriminator) {
56
57
  'managed': json['managed'],
57
58
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
58
59
  'icon': json['icon'],
60
+ 'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
59
61
  'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
60
62
  'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
61
63
  'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
@@ -80,6 +82,7 @@ export function PlexSourceToJSON(value) {
80
82
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
81
83
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
82
84
  'user_path_template': value.userPathTemplate,
85
+ 'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
83
86
  'client_id': value.clientId,
84
87
  'allowed_servers': value.allowedServers,
85
88
  'allow_friends': value.allowFriends,
@@ -0,0 +1,73 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.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
+ * PlexSourcePropertyMapping Serializer
14
+ * @export
15
+ * @interface PlexSourcePropertyMapping
16
+ */
17
+ export interface PlexSourcePropertyMapping {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PlexSourcePropertyMapping
22
+ */
23
+ readonly pk: string;
24
+ /**
25
+ * 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.
26
+ * @type {string}
27
+ * @memberof PlexSourcePropertyMapping
28
+ */
29
+ managed?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PlexSourcePropertyMapping
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PlexSourcePropertyMapping
40
+ */
41
+ expression: string;
42
+ /**
43
+ * Get object's component so that we know how to edit the object
44
+ * @type {string}
45
+ * @memberof PlexSourcePropertyMapping
46
+ */
47
+ readonly component: string;
48
+ /**
49
+ * Return object's verbose_name
50
+ * @type {string}
51
+ * @memberof PlexSourcePropertyMapping
52
+ */
53
+ readonly verboseName: string;
54
+ /**
55
+ * Return object's plural verbose_name
56
+ * @type {string}
57
+ * @memberof PlexSourcePropertyMapping
58
+ */
59
+ readonly verboseNamePlural: string;
60
+ /**
61
+ * Return internal model name
62
+ * @type {string}
63
+ * @memberof PlexSourcePropertyMapping
64
+ */
65
+ readonly metaModelName: string;
66
+ }
67
+ /**
68
+ * Check if a given object implements the PlexSourcePropertyMapping interface.
69
+ */
70
+ export declare function instanceOfPlexSourcePropertyMapping(value: object): boolean;
71
+ export declare function PlexSourcePropertyMappingFromJSON(json: any): PlexSourcePropertyMapping;
72
+ export declare function PlexSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlexSourcePropertyMapping;
73
+ export declare function PlexSourcePropertyMappingToJSON(value?: PlexSourcePropertyMapping | null): any;
@@ -0,0 +1,59 @@
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the PlexSourcePropertyMapping interface.
17
+ */
18
+ export function instanceOfPlexSourcePropertyMapping(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "pk" in value;
21
+ isInstance = isInstance && "name" in value;
22
+ isInstance = isInstance && "expression" in value;
23
+ isInstance = isInstance && "component" in value;
24
+ isInstance = isInstance && "verboseName" in value;
25
+ isInstance = isInstance && "verboseNamePlural" in value;
26
+ isInstance = isInstance && "metaModelName" in value;
27
+ return isInstance;
28
+ }
29
+ export function PlexSourcePropertyMappingFromJSON(json) {
30
+ return PlexSourcePropertyMappingFromJSONTyped(json, false);
31
+ }
32
+ export function PlexSourcePropertyMappingFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'pk': json['pk'],
38
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
39
+ 'name': json['name'],
40
+ 'expression': json['expression'],
41
+ 'component': json['component'],
42
+ 'verboseName': json['verbose_name'],
43
+ 'verboseNamePlural': json['verbose_name_plural'],
44
+ 'metaModelName': json['meta_model_name'],
45
+ };
46
+ }
47
+ export function PlexSourcePropertyMappingToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'managed': value.managed,
56
+ 'name': value.name,
57
+ 'expression': value.expression,
58
+ };
59
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.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
+ * PlexSourcePropertyMapping Serializer
14
+ * @export
15
+ * @interface PlexSourcePropertyMappingRequest
16
+ */
17
+ export interface PlexSourcePropertyMappingRequest {
18
+ /**
19
+ * 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.
20
+ * @type {string}
21
+ * @memberof PlexSourcePropertyMappingRequest
22
+ */
23
+ managed?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PlexSourcePropertyMappingRequest
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PlexSourcePropertyMappingRequest
34
+ */
35
+ expression: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PlexSourcePropertyMappingRequest interface.
39
+ */
40
+ export declare function instanceOfPlexSourcePropertyMappingRequest(value: object): boolean;
41
+ export declare function PlexSourcePropertyMappingRequestFromJSON(json: any): PlexSourcePropertyMappingRequest;
42
+ export declare function PlexSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlexSourcePropertyMappingRequest;
43
+ export declare function PlexSourcePropertyMappingRequestToJSON(value?: PlexSourcePropertyMappingRequest | null): any;
@@ -0,0 +1,49 @@
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the PlexSourcePropertyMappingRequest interface.
17
+ */
18
+ export function instanceOfPlexSourcePropertyMappingRequest(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "name" in value;
21
+ isInstance = isInstance && "expression" in value;
22
+ return isInstance;
23
+ }
24
+ export function PlexSourcePropertyMappingRequestFromJSON(json) {
25
+ return PlexSourcePropertyMappingRequestFromJSONTyped(json, false);
26
+ }
27
+ export function PlexSourcePropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
33
+ 'name': json['name'],
34
+ 'expression': json['expression'],
35
+ };
36
+ }
37
+ export function PlexSourcePropertyMappingRequestToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'managed': value.managed,
46
+ 'name': value.name,
47
+ 'expression': value.expression,
48
+ };
49
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
12
13
  import type { PolicyEngineMode } from './PolicyEngineMode';
13
14
  import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
14
15
  /**
@@ -77,6 +78,12 @@ export interface PlexSourceRequest {
77
78
  * @memberof PlexSourceRequest
78
79
  */
79
80
  userPathTemplate?: string;
81
+ /**
82
+ *
83
+ * @type {GroupMatchingModeEnum}
84
+ * @memberof PlexSourceRequest
85
+ */
86
+ groupMatchingMode?: GroupMatchingModeEnum;
80
87
  /**
81
88
  * Client identifier used to talk to Plex.
82
89
  * @type {string}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { exists } from '../runtime';
15
+ import { GroupMatchingModeEnumFromJSON, GroupMatchingModeEnumToJSON, } from './GroupMatchingModeEnum';
15
16
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
16
17
  import { UserMatchingModeEnumFromJSON, UserMatchingModeEnumToJSON, } from './UserMatchingModeEnum';
17
18
  /**
@@ -42,6 +43,7 @@ export function PlexSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
43
44
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
44
45
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
46
+ 'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
45
47
  'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
46
48
  'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
47
49
  'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
@@ -66,6 +68,7 @@ export function PlexSourceRequestToJSON(value) {
66
68
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
67
69
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
68
70
  'user_path_template': value.userPathTemplate,
71
+ 'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
69
72
  'client_id': value.clientId,
70
73
  'allowed_servers': value.allowedServers,
71
74
  'allow_friends': value.allowFriends,
@@ -0,0 +1,56 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.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
+ import type { Source } from './Source';
13
+ /**
14
+ * Plex Source connection Serializer
15
+ * @export
16
+ * @interface UserPlexSourceConnection
17
+ */
18
+ export interface UserPlexSourceConnection {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof UserPlexSourceConnection
23
+ */
24
+ readonly pk: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof UserPlexSourceConnection
29
+ */
30
+ readonly user: number;
31
+ /**
32
+ *
33
+ * @type {Source}
34
+ * @memberof UserPlexSourceConnection
35
+ */
36
+ readonly source: Source;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof UserPlexSourceConnection
41
+ */
42
+ readonly created: Date;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof UserPlexSourceConnection
47
+ */
48
+ identifier: string;
49
+ }
50
+ /**
51
+ * Check if a given object implements the UserPlexSourceConnection interface.
52
+ */
53
+ export declare function instanceOfUserPlexSourceConnection(value: object): boolean;
54
+ export declare function UserPlexSourceConnectionFromJSON(json: any): UserPlexSourceConnection;
55
+ export declare function UserPlexSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPlexSourceConnection;
56
+ export declare function UserPlexSourceConnectionToJSON(value?: UserPlexSourceConnection | null): any;
@@ -13,9 +13,9 @@
13
13
  */
14
14
  import { SourceFromJSON, } from './Source';
15
15
  /**
16
- * Check if a given object implements the PlexSourceConnection interface.
16
+ * Check if a given object implements the UserPlexSourceConnection interface.
17
17
  */
18
- export function instanceOfPlexSourceConnection(value) {
18
+ export function instanceOfUserPlexSourceConnection(value) {
19
19
  let isInstance = true;
20
20
  isInstance = isInstance && "pk" in value;
21
21
  isInstance = isInstance && "user" in value;
@@ -24,10 +24,10 @@ export function instanceOfPlexSourceConnection(value) {
24
24
  isInstance = isInstance && "identifier" in value;
25
25
  return isInstance;
26
26
  }
27
- export function PlexSourceConnectionFromJSON(json) {
28
- return PlexSourceConnectionFromJSONTyped(json, false);
27
+ export function UserPlexSourceConnectionFromJSON(json) {
28
+ return UserPlexSourceConnectionFromJSONTyped(json, false);
29
29
  }
30
- export function PlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
30
+ export function UserPlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
31
31
  if ((json === undefined) || (json === null)) {
32
32
  return json;
33
33
  }
@@ -39,7 +39,7 @@ export function PlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'identifier': json['identifier'],
40
40
  };
41
41
  }
42
- export function PlexSourceConnectionToJSON(value) {
42
+ export function UserPlexSourceConnectionToJSON(value) {
43
43
  if (value === undefined) {
44
44
  return undefined;
45
45
  }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.6.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
+ * Plex Source connection Serializer
14
+ * @export
15
+ * @interface UserPlexSourceConnectionRequest
16
+ */
17
+ export interface UserPlexSourceConnectionRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserPlexSourceConnectionRequest
22
+ */
23
+ identifier: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UserPlexSourceConnectionRequest
28
+ */
29
+ plexToken: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UserPlexSourceConnectionRequest interface.
33
+ */
34
+ export declare function instanceOfUserPlexSourceConnectionRequest(value: object): boolean;
35
+ export declare function UserPlexSourceConnectionRequestFromJSON(json: any): UserPlexSourceConnectionRequest;
36
+ export declare function UserPlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPlexSourceConnectionRequest;
37
+ export declare function UserPlexSourceConnectionRequestToJSON(value?: UserPlexSourceConnectionRequest | null): any;
@@ -12,18 +12,18 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Check if a given object implements the PlexSourceConnectionRequest interface.
15
+ * Check if a given object implements the UserPlexSourceConnectionRequest interface.
16
16
  */
17
- export function instanceOfPlexSourceConnectionRequest(value) {
17
+ export function instanceOfUserPlexSourceConnectionRequest(value) {
18
18
  let isInstance = true;
19
19
  isInstance = isInstance && "identifier" in value;
20
20
  isInstance = isInstance && "plexToken" in value;
21
21
  return isInstance;
22
22
  }
23
- export function PlexSourceConnectionRequestFromJSON(json) {
24
- return PlexSourceConnectionRequestFromJSONTyped(json, false);
23
+ export function UserPlexSourceConnectionRequestFromJSON(json) {
24
+ return UserPlexSourceConnectionRequestFromJSONTyped(json, false);
25
25
  }
26
- export function PlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ export function UserPlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminator) {
27
27
  if ((json === undefined) || (json === null)) {
28
28
  return json;
29
29
  }
@@ -32,7 +32,7 @@ export function PlexSourceConnectionRequestFromJSONTyped(json, ignoreDiscriminat
32
32
  'plexToken': json['plex_token'],
33
33
  };
34
34
  }
35
- export function PlexSourceConnectionRequestToJSON(value) {
35
+ export function UserPlexSourceConnectionRequestToJSON(value) {
36
36
  if (value === undefined) {
37
37
  return undefined;
38
38
  }
@@ -159,6 +159,7 @@ export * from './GroupMatchingModeEnum';
159
159
  export * from './GroupMember';
160
160
  export * from './GroupMemberRequest';
161
161
  export * from './GroupOAuthSourceConnection';
162
+ export * from './GroupPlexSourceConnection';
162
163
  export * from './GroupRequest';
163
164
  export * from './GroupSAMLSourceConnection';
164
165
  export * from './IdentificationChallenge';
@@ -188,6 +189,7 @@ export * from './License';
188
189
  export * from './LicenseForecast';
189
190
  export * from './LicenseRequest';
190
191
  export * from './LicenseSummary';
192
+ export * from './LicenseSummaryStatusEnum';
191
193
  export * from './Link';
192
194
  export * from './LogEvent';
193
195
  export * from './LogLevelEnum';
@@ -273,6 +275,7 @@ export * from './PaginatedGoogleWorkspaceProviderMappingList';
273
275
  export * from './PaginatedGoogleWorkspaceProviderUserList';
274
276
  export * from './PaginatedGroupList';
275
277
  export * from './PaginatedGroupOAuthSourceConnectionList';
278
+ export * from './PaginatedGroupPlexSourceConnectionList';
276
279
  export * from './PaginatedGroupSAMLSourceConnectionList';
277
280
  export * from './PaginatedIdentificationStageList';
278
281
  export * from './PaginatedInvitationList';
@@ -299,8 +302,8 @@ export * from './PaginatedPasswordExpiryPolicyList';
299
302
  export * from './PaginatedPasswordPolicyList';
300
303
  export * from './PaginatedPasswordStageList';
301
304
  export * from './PaginatedPermissionList';
302
- export * from './PaginatedPlexSourceConnectionList';
303
305
  export * from './PaginatedPlexSourceList';
306
+ export * from './PaginatedPlexSourcePropertyMappingList';
304
307
  export * from './PaginatedPolicyBindingList';
305
308
  export * from './PaginatedPolicyList';
306
309
  export * from './PaginatedPromptList';
@@ -349,6 +352,7 @@ export * from './PaginatedUserList';
349
352
  export * from './PaginatedUserLoginStageList';
350
353
  export * from './PaginatedUserLogoutStageList';
351
354
  export * from './PaginatedUserOAuthSourceConnectionList';
355
+ export * from './PaginatedUserPlexSourceConnectionList';
352
356
  export * from './PaginatedUserSAMLSourceConnectionList';
353
357
  export * from './PaginatedUserSourceConnectionList';
354
358
  export * from './PaginatedUserWriteStageList';
@@ -417,7 +421,7 @@ export * from './PatchedPasswordExpiryPolicyRequest';
417
421
  export * from './PatchedPasswordPolicyRequest';
418
422
  export * from './PatchedPasswordStageRequest';
419
423
  export * from './PatchedPermissionAssignRequest';
420
- export * from './PatchedPlexSourceConnectionRequest';
424
+ export * from './PatchedPlexSourcePropertyMappingRequest';
421
425
  export * from './PatchedPlexSourceRequest';
422
426
  export * from './PatchedPolicyBindingRequest';
423
427
  export * from './PatchedPromptRequest';
@@ -451,6 +455,7 @@ export * from './PatchedUserDeleteStageRequest';
451
455
  export * from './PatchedUserLoginStageRequest';
452
456
  export * from './PatchedUserLogoutStageRequest';
453
457
  export * from './PatchedUserOAuthSourceConnectionRequest';
458
+ export * from './PatchedUserPlexSourceConnectionRequest';
454
459
  export * from './PatchedUserRequest';
455
460
  export * from './PatchedUserSAMLSourceConnectionRequest';
456
461
  export * from './PatchedUserWriteStageRequest';
@@ -461,8 +466,8 @@ export * from './PermissionAssignResult';
461
466
  export * from './PlexAuthenticationChallenge';
462
467
  export * from './PlexAuthenticationChallengeResponseRequest';
463
468
  export * from './PlexSource';
464
- export * from './PlexSourceConnection';
465
- export * from './PlexSourceConnectionRequest';
469
+ export * from './PlexSourcePropertyMapping';
470
+ export * from './PlexSourcePropertyMappingRequest';
466
471
  export * from './PlexSourceRequest';
467
472
  export * from './PlexTokenRedeemRequest';
468
473
  export * from './Policy';
@@ -611,6 +616,8 @@ export * from './UserOAuthSourceConnectionRequest';
611
616
  export * from './UserObjectPermission';
612
617
  export * from './UserPasswordSetRequest';
613
618
  export * from './UserPath';
619
+ export * from './UserPlexSourceConnection';
620
+ export * from './UserPlexSourceConnectionRequest';
614
621
  export * from './UserRequest';
615
622
  export * from './UserSAMLSourceConnection';
616
623
  export * from './UserSAMLSourceConnectionRequest';