@goauthentik/api 2024.6.3-1722940666 → 2024.6.3-1723050887

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/dist/apis/PropertymappingsApi.d.ts +171 -1
  3. package/dist/apis/PropertymappingsApi.js +542 -0
  4. package/dist/apis/RbacApi.d.ts +8 -0
  5. package/dist/apis/RbacApi.js +8 -0
  6. package/dist/apis/SourcesApi.d.ts +162 -1
  7. package/dist/apis/SourcesApi.js +493 -1
  8. package/dist/esm/apis/PropertymappingsApi.d.ts +171 -1
  9. package/dist/esm/apis/PropertymappingsApi.js +543 -1
  10. package/dist/esm/apis/RbacApi.d.ts +8 -0
  11. package/dist/esm/apis/RbacApi.js +8 -0
  12. package/dist/esm/apis/SourcesApi.d.ts +162 -1
  13. package/dist/esm/apis/SourcesApi.js +493 -1
  14. package/dist/esm/models/Device.d.ts +18 -0
  15. package/dist/esm/models/Device.js +6 -0
  16. package/dist/esm/models/GroupMatchingModeEnum.d.ts +25 -0
  17. package/dist/esm/models/GroupMatchingModeEnum.js +32 -0
  18. package/dist/esm/models/GroupOAuthSourceConnection.d.ts +56 -0
  19. package/dist/esm/models/GroupOAuthSourceConnection.js +50 -0
  20. package/dist/esm/models/GroupSAMLSourceConnection.d.ts +56 -0
  21. package/dist/esm/models/GroupSAMLSourceConnection.js +50 -0
  22. package/dist/esm/models/ModelEnum.d.ts +4 -0
  23. package/dist/esm/models/ModelEnum.js +4 -0
  24. package/dist/esm/models/OAuthSource.d.ts +7 -0
  25. package/dist/esm/models/OAuthSource.js +3 -0
  26. package/dist/esm/models/OAuthSourcePropertyMapping.d.ts +73 -0
  27. package/dist/esm/models/OAuthSourcePropertyMapping.js +59 -0
  28. package/dist/esm/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
  29. package/dist/esm/models/OAuthSourcePropertyMappingRequest.js +49 -0
  30. package/dist/esm/models/OAuthSourceRequest.d.ts +7 -0
  31. package/dist/esm/models/OAuthSourceRequest.js +3 -0
  32. package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
  33. package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.js +48 -0
  34. package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
  35. package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.js +48 -0
  36. package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
  37. package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.js +48 -0
  38. package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
  39. package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.js +48 -0
  40. package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
  41. package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.js +47 -0
  42. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +7 -0
  43. package/dist/esm/models/PatchedOAuthSourceRequest.js +3 -0
  44. package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
  45. package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.js +47 -0
  46. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +7 -0
  47. package/dist/esm/models/PatchedSAMLSourceRequest.js +3 -0
  48. package/dist/esm/models/SAMLSource.d.ts +7 -0
  49. package/dist/esm/models/SAMLSource.js +3 -0
  50. package/dist/esm/models/SAMLSourcePropertyMapping.d.ts +73 -0
  51. package/dist/esm/models/SAMLSourcePropertyMapping.js +59 -0
  52. package/dist/esm/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
  53. package/dist/esm/models/SAMLSourcePropertyMappingRequest.js +49 -0
  54. package/dist/esm/models/SAMLSourceRequest.d.ts +7 -0
  55. package/dist/esm/models/SAMLSourceRequest.js +3 -0
  56. package/dist/esm/models/index.d.ts +13 -0
  57. package/dist/esm/models/index.js +13 -0
  58. package/dist/models/Device.d.ts +18 -0
  59. package/dist/models/Device.js +6 -0
  60. package/dist/models/GroupMatchingModeEnum.d.ts +25 -0
  61. package/dist/models/GroupMatchingModeEnum.js +38 -0
  62. package/dist/models/GroupOAuthSourceConnection.d.ts +56 -0
  63. package/dist/models/GroupOAuthSourceConnection.js +57 -0
  64. package/dist/models/GroupSAMLSourceConnection.d.ts +56 -0
  65. package/dist/models/GroupSAMLSourceConnection.js +57 -0
  66. package/dist/models/ModelEnum.d.ts +4 -0
  67. package/dist/models/ModelEnum.js +4 -0
  68. package/dist/models/OAuthSource.d.ts +7 -0
  69. package/dist/models/OAuthSource.js +3 -0
  70. package/dist/models/OAuthSourcePropertyMapping.d.ts +73 -0
  71. package/dist/models/OAuthSourcePropertyMapping.js +66 -0
  72. package/dist/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
  73. package/dist/models/OAuthSourcePropertyMappingRequest.js +56 -0
  74. package/dist/models/OAuthSourceRequest.d.ts +7 -0
  75. package/dist/models/OAuthSourceRequest.js +3 -0
  76. package/dist/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
  77. package/dist/models/PaginatedGroupOAuthSourceConnectionList.js +55 -0
  78. package/dist/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
  79. package/dist/models/PaginatedGroupSAMLSourceConnectionList.js +55 -0
  80. package/dist/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
  81. package/dist/models/PaginatedOAuthSourcePropertyMappingList.js +55 -0
  82. package/dist/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
  83. package/dist/models/PaginatedSAMLSourcePropertyMappingList.js +55 -0
  84. package/dist/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
  85. package/dist/models/PatchedOAuthSourcePropertyMappingRequest.js +54 -0
  86. package/dist/models/PatchedOAuthSourceRequest.d.ts +7 -0
  87. package/dist/models/PatchedOAuthSourceRequest.js +3 -0
  88. package/dist/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
  89. package/dist/models/PatchedSAMLSourcePropertyMappingRequest.js +54 -0
  90. package/dist/models/PatchedSAMLSourceRequest.d.ts +7 -0
  91. package/dist/models/PatchedSAMLSourceRequest.js +3 -0
  92. package/dist/models/SAMLSource.d.ts +7 -0
  93. package/dist/models/SAMLSource.js +3 -0
  94. package/dist/models/SAMLSourcePropertyMapping.d.ts +73 -0
  95. package/dist/models/SAMLSourcePropertyMapping.js +66 -0
  96. package/dist/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
  97. package/dist/models/SAMLSourcePropertyMappingRequest.js +56 -0
  98. package/dist/models/SAMLSourceRequest.d.ts +7 -0
  99. package/dist/models/SAMLSourceRequest.js +3 -0
  100. package/dist/models/index.d.ts +13 -0
  101. package/dist/models/index.js +13 -0
  102. package/package.json +1 -1
  103. package/src/apis/PropertymappingsApi.ts +700 -0
  104. package/src/apis/RbacApi.ts +8 -0
  105. package/src/apis/SourcesApi.ts +613 -0
  106. package/src/models/Device.ts +24 -0
  107. package/src/models/GroupMatchingModeEnum.ts +40 -0
  108. package/src/models/GroupOAuthSourceConnection.ts +104 -0
  109. package/src/models/GroupSAMLSourceConnection.ts +104 -0
  110. package/src/models/ModelEnum.ts +4 -0
  111. package/src/models/OAuthSource.ts +14 -0
  112. package/src/models/OAuthSourcePropertyMapping.ts +123 -0
  113. package/src/models/OAuthSourcePropertyMappingRequest.ts +83 -0
  114. package/src/models/OAuthSourceRequest.ts +14 -0
  115. package/src/models/PaginatedGroupOAuthSourceConnectionList.ts +88 -0
  116. package/src/models/PaginatedGroupSAMLSourceConnectionList.ts +88 -0
  117. package/src/models/PaginatedOAuthSourcePropertyMappingList.ts +88 -0
  118. package/src/models/PaginatedSAMLSourcePropertyMappingList.ts +88 -0
  119. package/src/models/PatchedOAuthSourcePropertyMappingRequest.ts +81 -0
  120. package/src/models/PatchedOAuthSourceRequest.ts +14 -0
  121. package/src/models/PatchedSAMLSourcePropertyMappingRequest.ts +81 -0
  122. package/src/models/PatchedSAMLSourceRequest.ts +14 -0
  123. package/src/models/SAMLSource.ts +14 -0
  124. package/src/models/SAMLSourcePropertyMapping.ts +123 -0
  125. package/src/models/SAMLSourcePropertyMappingRequest.ts +83 -0
  126. package/src/models/SAMLSourceRequest.ts +14 -0
  127. package/src/models/index.ts +13 -0
@@ -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 { GroupSAMLSourceConnection } from './GroupSAMLSourceConnection';
17
+ import {
18
+ GroupSAMLSourceConnectionFromJSON,
19
+ GroupSAMLSourceConnectionFromJSONTyped,
20
+ GroupSAMLSourceConnectionToJSON,
21
+ } from './GroupSAMLSourceConnection';
22
+ import type { Pagination } from './Pagination';
23
+ import {
24
+ PaginationFromJSON,
25
+ PaginationFromJSONTyped,
26
+ PaginationToJSON,
27
+ } from './Pagination';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedGroupSAMLSourceConnectionList
33
+ */
34
+ export interface PaginatedGroupSAMLSourceConnectionList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedGroupSAMLSourceConnectionList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<GroupSAMLSourceConnection>}
44
+ * @memberof PaginatedGroupSAMLSourceConnectionList
45
+ */
46
+ results: Array<GroupSAMLSourceConnection>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedGroupSAMLSourceConnectionList interface.
51
+ */
52
+ export function instanceOfPaginatedGroupSAMLSourceConnectionList(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 PaginatedGroupSAMLSourceConnectionListFromJSON(json: any): PaginatedGroupSAMLSourceConnectionList {
61
+ return PaginatedGroupSAMLSourceConnectionListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedGroupSAMLSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupSAMLSourceConnectionList {
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(GroupSAMLSourceConnectionFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedGroupSAMLSourceConnectionListToJSON(value?: PaginatedGroupSAMLSourceConnectionList | 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(GroupSAMLSourceConnectionToJSON)),
86
+ };
87
+ }
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 { OAuthSourcePropertyMapping } from './OAuthSourcePropertyMapping';
17
+ import {
18
+ OAuthSourcePropertyMappingFromJSON,
19
+ OAuthSourcePropertyMappingFromJSONTyped,
20
+ OAuthSourcePropertyMappingToJSON,
21
+ } from './OAuthSourcePropertyMapping';
22
+ import type { Pagination } from './Pagination';
23
+ import {
24
+ PaginationFromJSON,
25
+ PaginationFromJSONTyped,
26
+ PaginationToJSON,
27
+ } from './Pagination';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedOAuthSourcePropertyMappingList
33
+ */
34
+ export interface PaginatedOAuthSourcePropertyMappingList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedOAuthSourcePropertyMappingList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<OAuthSourcePropertyMapping>}
44
+ * @memberof PaginatedOAuthSourcePropertyMappingList
45
+ */
46
+ results: Array<OAuthSourcePropertyMapping>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedOAuthSourcePropertyMappingList interface.
51
+ */
52
+ export function instanceOfPaginatedOAuthSourcePropertyMappingList(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 PaginatedOAuthSourcePropertyMappingListFromJSON(json: any): PaginatedOAuthSourcePropertyMappingList {
61
+ return PaginatedOAuthSourcePropertyMappingListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedOAuthSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedOAuthSourcePropertyMappingList {
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(OAuthSourcePropertyMappingFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedOAuthSourcePropertyMappingListToJSON(value?: PaginatedOAuthSourcePropertyMappingList | 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(OAuthSourcePropertyMappingToJSON)),
86
+ };
87
+ }
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 { SAMLSourcePropertyMapping } from './SAMLSourcePropertyMapping';
23
+ import {
24
+ SAMLSourcePropertyMappingFromJSON,
25
+ SAMLSourcePropertyMappingFromJSONTyped,
26
+ SAMLSourcePropertyMappingToJSON,
27
+ } from './SAMLSourcePropertyMapping';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedSAMLSourcePropertyMappingList
33
+ */
34
+ export interface PaginatedSAMLSourcePropertyMappingList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedSAMLSourcePropertyMappingList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<SAMLSourcePropertyMapping>}
44
+ * @memberof PaginatedSAMLSourcePropertyMappingList
45
+ */
46
+ results: Array<SAMLSourcePropertyMapping>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedSAMLSourcePropertyMappingList interface.
51
+ */
52
+ export function instanceOfPaginatedSAMLSourcePropertyMappingList(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 PaginatedSAMLSourcePropertyMappingListFromJSON(json: any): PaginatedSAMLSourcePropertyMappingList {
61
+ return PaginatedSAMLSourcePropertyMappingListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedSAMLSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSAMLSourcePropertyMappingList {
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(SAMLSourcePropertyMappingFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedSAMLSourcePropertyMappingListToJSON(value?: PaginatedSAMLSourcePropertyMappingList | 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(SAMLSourcePropertyMappingToJSON)),
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
+ * OAuthSourcePropertyMapping Serializer
18
+ * @export
19
+ * @interface PatchedOAuthSourcePropertyMappingRequest
20
+ */
21
+ export interface PatchedOAuthSourcePropertyMappingRequest {
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 PatchedOAuthSourcePropertyMappingRequest
26
+ */
27
+ managed?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PatchedOAuthSourcePropertyMappingRequest
32
+ */
33
+ name?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedOAuthSourcePropertyMappingRequest
38
+ */
39
+ expression?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PatchedOAuthSourcePropertyMappingRequest interface.
44
+ */
45
+ export function instanceOfPatchedOAuthSourcePropertyMappingRequest(value: object): boolean {
46
+ let isInstance = true;
47
+
48
+ return isInstance;
49
+ }
50
+
51
+ export function PatchedOAuthSourcePropertyMappingRequestFromJSON(json: any): PatchedOAuthSourcePropertyMappingRequest {
52
+ return PatchedOAuthSourcePropertyMappingRequestFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function PatchedOAuthSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedOAuthSourcePropertyMappingRequest {
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 PatchedOAuthSourcePropertyMappingRequestToJSON(value?: PatchedOAuthSourcePropertyMappingRequest | 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,
@@ -98,6 +104,12 @@ export interface PatchedOAuthSourceRequest {
98
104
  * @memberof PatchedOAuthSourceRequest
99
105
  */
100
106
  userPathTemplate?: string;
107
+ /**
108
+ *
109
+ * @type {GroupMatchingModeEnum}
110
+ * @memberof PatchedOAuthSourceRequest
111
+ */
112
+ groupMatchingMode?: GroupMatchingModeEnum;
101
113
  /**
102
114
  *
103
115
  * @type {ProviderTypeEnum}
@@ -195,6 +207,7 @@ export function PatchedOAuthSourceRequestFromJSONTyped(json: any, ignoreDiscrimi
195
207
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
196
208
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
197
209
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
210
+ 'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
198
211
  'providerType': !exists(json, 'provider_type') ? undefined : ProviderTypeEnumFromJSON(json['provider_type']),
199
212
  'requestTokenUrl': !exists(json, 'request_token_url') ? undefined : json['request_token_url'],
200
213
  'authorizationUrl': !exists(json, 'authorization_url') ? undefined : json['authorization_url'],
@@ -228,6 +241,7 @@ export function PatchedOAuthSourceRequestToJSON(value?: PatchedOAuthSourceReques
228
241
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
229
242
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
230
243
  'user_path_template': value.userPathTemplate,
244
+ 'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
231
245
  'provider_type': ProviderTypeEnumToJSON(value.providerType),
232
246
  'request_token_url': value.requestTokenUrl,
233
247
  'authorization_url': value.authorizationUrl,
@@ -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
+ * SAMLSourcePropertyMapping Serializer
18
+ * @export
19
+ * @interface PatchedSAMLSourcePropertyMappingRequest
20
+ */
21
+ export interface PatchedSAMLSourcePropertyMappingRequest {
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 PatchedSAMLSourcePropertyMappingRequest
26
+ */
27
+ managed?: string | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PatchedSAMLSourcePropertyMappingRequest
32
+ */
33
+ name?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedSAMLSourcePropertyMappingRequest
38
+ */
39
+ expression?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PatchedSAMLSourcePropertyMappingRequest interface.
44
+ */
45
+ export function instanceOfPatchedSAMLSourcePropertyMappingRequest(value: object): boolean {
46
+ let isInstance = true;
47
+
48
+ return isInstance;
49
+ }
50
+
51
+ export function PatchedSAMLSourcePropertyMappingRequestFromJSON(json: any): PatchedSAMLSourcePropertyMappingRequest {
52
+ return PatchedSAMLSourcePropertyMappingRequestFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function PatchedSAMLSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSAMLSourcePropertyMappingRequest {
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 PatchedSAMLSourcePropertyMappingRequestToJSON(value?: PatchedSAMLSourcePropertyMappingRequest | 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
+
@@ -25,6 +25,12 @@ import {
25
25
  DigestAlgorithmEnumFromJSONTyped,
26
26
  DigestAlgorithmEnumToJSON,
27
27
  } from './DigestAlgorithmEnum';
28
+ import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
29
+ import {
30
+ GroupMatchingModeEnumFromJSON,
31
+ GroupMatchingModeEnumFromJSONTyped,
32
+ GroupMatchingModeEnumToJSON,
33
+ } from './GroupMatchingModeEnum';
28
34
  import type { NameIdPolicyEnum } from './NameIdPolicyEnum';
29
35
  import {
30
36
  NameIdPolicyEnumFromJSON,
@@ -116,6 +122,12 @@ export interface PatchedSAMLSourceRequest {
116
122
  * @memberof PatchedSAMLSourceRequest
117
123
  */
118
124
  userPathTemplate?: string;
125
+ /**
126
+ *
127
+ * @type {GroupMatchingModeEnum}
128
+ * @memberof PatchedSAMLSourceRequest
129
+ */
130
+ groupMatchingMode?: GroupMatchingModeEnum;
119
131
  /**
120
132
  * Flow used before authentication.
121
133
  * @type {string}
@@ -219,6 +231,7 @@ export function PatchedSAMLSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
219
231
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
220
232
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
221
233
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
234
+ 'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
222
235
  'preAuthenticationFlow': !exists(json, 'pre_authentication_flow') ? undefined : json['pre_authentication_flow'],
223
236
  'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
224
237
  'ssoUrl': !exists(json, 'sso_url') ? undefined : json['sso_url'],
@@ -253,6 +266,7 @@ export function PatchedSAMLSourceRequestToJSON(value?: PatchedSAMLSourceRequest
253
266
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
254
267
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
255
268
  'user_path_template': value.userPathTemplate,
269
+ 'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
256
270
  'pre_authentication_flow': value.preAuthenticationFlow,
257
271
  'issuer': value.issuer,
258
272
  'sso_url': value.ssoUrl,
@@ -25,6 +25,12 @@ import {
25
25
  DigestAlgorithmEnumFromJSONTyped,
26
26
  DigestAlgorithmEnumToJSON,
27
27
  } from './DigestAlgorithmEnum';
28
+ import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
29
+ import {
30
+ GroupMatchingModeEnumFromJSON,
31
+ GroupMatchingModeEnumFromJSONTyped,
32
+ GroupMatchingModeEnumToJSON,
33
+ } from './GroupMatchingModeEnum';
28
34
  import type { NameIdPolicyEnum } from './NameIdPolicyEnum';
29
35
  import {
30
36
  NameIdPolicyEnumFromJSON,
@@ -158,6 +164,12 @@ export interface SAMLSource {
158
164
  * @memberof SAMLSource
159
165
  */
160
166
  readonly icon: string;
167
+ /**
168
+ *
169
+ * @type {GroupMatchingModeEnum}
170
+ * @memberof SAMLSource
171
+ */
172
+ groupMatchingMode?: GroupMatchingModeEnum;
161
173
  /**
162
174
  * Flow used before authentication.
163
175
  * @type {string}
@@ -279,6 +291,7 @@ export function SAMLSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
279
291
  'managed': json['managed'],
280
292
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
281
293
  'icon': json['icon'],
294
+ 'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
282
295
  'preAuthenticationFlow': json['pre_authentication_flow'],
283
296
  'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
284
297
  'ssoUrl': json['sso_url'],
@@ -313,6 +326,7 @@ export function SAMLSourceToJSON(value?: SAMLSource | null): any {
313
326
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
314
327
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
315
328
  'user_path_template': value.userPathTemplate,
329
+ 'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
316
330
  'pre_authentication_flow': value.preAuthenticationFlow,
317
331
  'issuer': value.issuer,
318
332
  'sso_url': value.ssoUrl,
@@ -0,0 +1,123 @@
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
+ * SAMLSourcePropertyMapping Serializer
18
+ * @export
19
+ * @interface SAMLSourcePropertyMapping
20
+ */
21
+ export interface SAMLSourcePropertyMapping {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SAMLSourcePropertyMapping
26
+ */
27
+ readonly pk: string;
28
+ /**
29
+ * 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.
30
+ * @type {string}
31
+ * @memberof SAMLSourcePropertyMapping
32
+ */
33
+ managed?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SAMLSourcePropertyMapping
38
+ */
39
+ name: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof SAMLSourcePropertyMapping
44
+ */
45
+ expression: string;
46
+ /**
47
+ * Get object's component so that we know how to edit the object
48
+ * @type {string}
49
+ * @memberof SAMLSourcePropertyMapping
50
+ */
51
+ readonly component: string;
52
+ /**
53
+ * Return object's verbose_name
54
+ * @type {string}
55
+ * @memberof SAMLSourcePropertyMapping
56
+ */
57
+ readonly verboseName: string;
58
+ /**
59
+ * Return object's plural verbose_name
60
+ * @type {string}
61
+ * @memberof SAMLSourcePropertyMapping
62
+ */
63
+ readonly verboseNamePlural: string;
64
+ /**
65
+ * Return internal model name
66
+ * @type {string}
67
+ * @memberof SAMLSourcePropertyMapping
68
+ */
69
+ readonly metaModelName: string;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the SAMLSourcePropertyMapping interface.
74
+ */
75
+ export function instanceOfSAMLSourcePropertyMapping(value: object): boolean {
76
+ let isInstance = true;
77
+ isInstance = isInstance && "pk" in value;
78
+ isInstance = isInstance && "name" in value;
79
+ isInstance = isInstance && "expression" in value;
80
+ isInstance = isInstance && "component" in value;
81
+ isInstance = isInstance && "verboseName" in value;
82
+ isInstance = isInstance && "verboseNamePlural" in value;
83
+ isInstance = isInstance && "metaModelName" in value;
84
+
85
+ return isInstance;
86
+ }
87
+
88
+ export function SAMLSourcePropertyMappingFromJSON(json: any): SAMLSourcePropertyMapping {
89
+ return SAMLSourcePropertyMappingFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function SAMLSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SAMLSourcePropertyMapping {
93
+ if ((json === undefined) || (json === null)) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'pk': json['pk'],
99
+ 'managed': !exists(json, 'managed') ? undefined : json['managed'],
100
+ 'name': json['name'],
101
+ 'expression': json['expression'],
102
+ 'component': json['component'],
103
+ 'verboseName': json['verbose_name'],
104
+ 'verboseNamePlural': json['verbose_name_plural'],
105
+ 'metaModelName': json['meta_model_name'],
106
+ };
107
+ }
108
+
109
+ export function SAMLSourcePropertyMappingToJSON(value?: SAMLSourcePropertyMapping | null): any {
110
+ if (value === undefined) {
111
+ return undefined;
112
+ }
113
+ if (value === null) {
114
+ return null;
115
+ }
116
+ return {
117
+
118
+ 'managed': value.managed,
119
+ 'name': value.name,
120
+ 'expression': value.expression,
121
+ };
122
+ }
123
+