@goauthentik/api 2024.6.3-1723032607 → 2024.6.3-1723050887

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) 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/GroupMatchingModeEnum.d.ts +25 -0
  15. package/dist/esm/models/GroupMatchingModeEnum.js +32 -0
  16. package/dist/esm/models/GroupOAuthSourceConnection.d.ts +56 -0
  17. package/dist/esm/models/GroupOAuthSourceConnection.js +50 -0
  18. package/dist/esm/models/GroupSAMLSourceConnection.d.ts +56 -0
  19. package/dist/esm/models/GroupSAMLSourceConnection.js +50 -0
  20. package/dist/esm/models/ModelEnum.d.ts +4 -0
  21. package/dist/esm/models/ModelEnum.js +4 -0
  22. package/dist/esm/models/OAuthSource.d.ts +7 -0
  23. package/dist/esm/models/OAuthSource.js +3 -0
  24. package/dist/esm/models/OAuthSourcePropertyMapping.d.ts +73 -0
  25. package/dist/esm/models/OAuthSourcePropertyMapping.js +59 -0
  26. package/dist/esm/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
  27. package/dist/esm/models/OAuthSourcePropertyMappingRequest.js +49 -0
  28. package/dist/esm/models/OAuthSourceRequest.d.ts +7 -0
  29. package/dist/esm/models/OAuthSourceRequest.js +3 -0
  30. package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
  31. package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.js +48 -0
  32. package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
  33. package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.js +48 -0
  34. package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
  35. package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.js +48 -0
  36. package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
  37. package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.js +48 -0
  38. package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
  39. package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.js +47 -0
  40. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +7 -0
  41. package/dist/esm/models/PatchedOAuthSourceRequest.js +3 -0
  42. package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
  43. package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.js +47 -0
  44. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +7 -0
  45. package/dist/esm/models/PatchedSAMLSourceRequest.js +3 -0
  46. package/dist/esm/models/SAMLSource.d.ts +7 -0
  47. package/dist/esm/models/SAMLSource.js +3 -0
  48. package/dist/esm/models/SAMLSourcePropertyMapping.d.ts +73 -0
  49. package/dist/esm/models/SAMLSourcePropertyMapping.js +59 -0
  50. package/dist/esm/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
  51. package/dist/esm/models/SAMLSourcePropertyMappingRequest.js +49 -0
  52. package/dist/esm/models/SAMLSourceRequest.d.ts +7 -0
  53. package/dist/esm/models/SAMLSourceRequest.js +3 -0
  54. package/dist/esm/models/index.d.ts +13 -0
  55. package/dist/esm/models/index.js +13 -0
  56. package/dist/models/GroupMatchingModeEnum.d.ts +25 -0
  57. package/dist/models/GroupMatchingModeEnum.js +38 -0
  58. package/dist/models/GroupOAuthSourceConnection.d.ts +56 -0
  59. package/dist/models/GroupOAuthSourceConnection.js +57 -0
  60. package/dist/models/GroupSAMLSourceConnection.d.ts +56 -0
  61. package/dist/models/GroupSAMLSourceConnection.js +57 -0
  62. package/dist/models/ModelEnum.d.ts +4 -0
  63. package/dist/models/ModelEnum.js +4 -0
  64. package/dist/models/OAuthSource.d.ts +7 -0
  65. package/dist/models/OAuthSource.js +3 -0
  66. package/dist/models/OAuthSourcePropertyMapping.d.ts +73 -0
  67. package/dist/models/OAuthSourcePropertyMapping.js +66 -0
  68. package/dist/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
  69. package/dist/models/OAuthSourcePropertyMappingRequest.js +56 -0
  70. package/dist/models/OAuthSourceRequest.d.ts +7 -0
  71. package/dist/models/OAuthSourceRequest.js +3 -0
  72. package/dist/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
  73. package/dist/models/PaginatedGroupOAuthSourceConnectionList.js +55 -0
  74. package/dist/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
  75. package/dist/models/PaginatedGroupSAMLSourceConnectionList.js +55 -0
  76. package/dist/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
  77. package/dist/models/PaginatedOAuthSourcePropertyMappingList.js +55 -0
  78. package/dist/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
  79. package/dist/models/PaginatedSAMLSourcePropertyMappingList.js +55 -0
  80. package/dist/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
  81. package/dist/models/PatchedOAuthSourcePropertyMappingRequest.js +54 -0
  82. package/dist/models/PatchedOAuthSourceRequest.d.ts +7 -0
  83. package/dist/models/PatchedOAuthSourceRequest.js +3 -0
  84. package/dist/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
  85. package/dist/models/PatchedSAMLSourcePropertyMappingRequest.js +54 -0
  86. package/dist/models/PatchedSAMLSourceRequest.d.ts +7 -0
  87. package/dist/models/PatchedSAMLSourceRequest.js +3 -0
  88. package/dist/models/SAMLSource.d.ts +7 -0
  89. package/dist/models/SAMLSource.js +3 -0
  90. package/dist/models/SAMLSourcePropertyMapping.d.ts +73 -0
  91. package/dist/models/SAMLSourcePropertyMapping.js +66 -0
  92. package/dist/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
  93. package/dist/models/SAMLSourcePropertyMappingRequest.js +56 -0
  94. package/dist/models/SAMLSourceRequest.d.ts +7 -0
  95. package/dist/models/SAMLSourceRequest.js +3 -0
  96. package/dist/models/index.d.ts +13 -0
  97. package/dist/models/index.js +13 -0
  98. package/package.json +1 -1
  99. package/src/apis/PropertymappingsApi.ts +700 -0
  100. package/src/apis/RbacApi.ts +8 -0
  101. package/src/apis/SourcesApi.ts +613 -0
  102. package/src/models/GroupMatchingModeEnum.ts +40 -0
  103. package/src/models/GroupOAuthSourceConnection.ts +104 -0
  104. package/src/models/GroupSAMLSourceConnection.ts +104 -0
  105. package/src/models/ModelEnum.ts +4 -0
  106. package/src/models/OAuthSource.ts +14 -0
  107. package/src/models/OAuthSourcePropertyMapping.ts +123 -0
  108. package/src/models/OAuthSourcePropertyMappingRequest.ts +83 -0
  109. package/src/models/OAuthSourceRequest.ts +14 -0
  110. package/src/models/PaginatedGroupOAuthSourceConnectionList.ts +88 -0
  111. package/src/models/PaginatedGroupSAMLSourceConnectionList.ts +88 -0
  112. package/src/models/PaginatedOAuthSourcePropertyMappingList.ts +88 -0
  113. package/src/models/PaginatedSAMLSourcePropertyMappingList.ts +88 -0
  114. package/src/models/PatchedOAuthSourcePropertyMappingRequest.ts +81 -0
  115. package/src/models/PatchedOAuthSourceRequest.ts +14 -0
  116. package/src/models/PatchedSAMLSourcePropertyMappingRequest.ts +81 -0
  117. package/src/models/PatchedSAMLSourceRequest.ts +14 -0
  118. package/src/models/SAMLSource.ts +14 -0
  119. package/src/models/SAMLSourcePropertyMapping.ts +123 -0
  120. package/src/models/SAMLSourcePropertyMappingRequest.ts +83 -0
  121. package/src/models/SAMLSourceRequest.ts +14 -0
  122. package/src/models/index.ts +13 -0
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.6.3
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PaginatedSAMLSourcePropertyMappingListToJSON = exports.PaginatedSAMLSourcePropertyMappingListFromJSONTyped = exports.PaginatedSAMLSourcePropertyMappingListFromJSON = exports.instanceOfPaginatedSAMLSourcePropertyMappingList = void 0;
17
+ const Pagination_1 = require("./Pagination");
18
+ const SAMLSourcePropertyMapping_1 = require("./SAMLSourcePropertyMapping");
19
+ /**
20
+ * Check if a given object implements the PaginatedSAMLSourcePropertyMappingList interface.
21
+ */
22
+ function instanceOfPaginatedSAMLSourcePropertyMappingList(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "pagination" in value;
25
+ isInstance = isInstance && "results" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfPaginatedSAMLSourcePropertyMappingList = instanceOfPaginatedSAMLSourcePropertyMappingList;
29
+ function PaginatedSAMLSourcePropertyMappingListFromJSON(json) {
30
+ return PaginatedSAMLSourcePropertyMappingListFromJSONTyped(json, false);
31
+ }
32
+ exports.PaginatedSAMLSourcePropertyMappingListFromJSON = PaginatedSAMLSourcePropertyMappingListFromJSON;
33
+ function PaginatedSAMLSourcePropertyMappingListFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
39
+ 'results': (json['results'].map(SAMLSourcePropertyMapping_1.SAMLSourcePropertyMappingFromJSON)),
40
+ };
41
+ }
42
+ exports.PaginatedSAMLSourcePropertyMappingListFromJSONTyped = PaginatedSAMLSourcePropertyMappingListFromJSONTyped;
43
+ function PaginatedSAMLSourcePropertyMappingListToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
52
+ 'results': (value.results.map(SAMLSourcePropertyMapping_1.SAMLSourcePropertyMappingToJSON)),
53
+ };
54
+ }
55
+ exports.PaginatedSAMLSourcePropertyMappingListToJSON = PaginatedSAMLSourcePropertyMappingListToJSON;
@@ -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
+ * OAuthSourcePropertyMapping Serializer
14
+ * @export
15
+ * @interface PatchedOAuthSourcePropertyMappingRequest
16
+ */
17
+ export interface PatchedOAuthSourcePropertyMappingRequest {
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 PatchedOAuthSourcePropertyMappingRequest
22
+ */
23
+ managed?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PatchedOAuthSourcePropertyMappingRequest
28
+ */
29
+ name?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PatchedOAuthSourcePropertyMappingRequest
34
+ */
35
+ expression?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PatchedOAuthSourcePropertyMappingRequest interface.
39
+ */
40
+ export declare function instanceOfPatchedOAuthSourcePropertyMappingRequest(value: object): boolean;
41
+ export declare function PatchedOAuthSourcePropertyMappingRequestFromJSON(json: any): PatchedOAuthSourcePropertyMappingRequest;
42
+ export declare function PatchedOAuthSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedOAuthSourcePropertyMappingRequest;
43
+ export declare function PatchedOAuthSourcePropertyMappingRequestToJSON(value?: PatchedOAuthSourcePropertyMappingRequest | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.6.3
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PatchedOAuthSourcePropertyMappingRequestToJSON = exports.PatchedOAuthSourcePropertyMappingRequestFromJSONTyped = exports.PatchedOAuthSourcePropertyMappingRequestFromJSON = exports.instanceOfPatchedOAuthSourcePropertyMappingRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the PatchedOAuthSourcePropertyMappingRequest interface.
20
+ */
21
+ function instanceOfPatchedOAuthSourcePropertyMappingRequest(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfPatchedOAuthSourcePropertyMappingRequest = instanceOfPatchedOAuthSourcePropertyMappingRequest;
26
+ function PatchedOAuthSourcePropertyMappingRequestFromJSON(json) {
27
+ return PatchedOAuthSourcePropertyMappingRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.PatchedOAuthSourcePropertyMappingRequestFromJSON = PatchedOAuthSourcePropertyMappingRequestFromJSON;
30
+ function PatchedOAuthSourcePropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
36
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
+ 'expression': !(0, runtime_1.exists)(json, 'expression') ? undefined : json['expression'],
38
+ };
39
+ }
40
+ exports.PatchedOAuthSourcePropertyMappingRequestFromJSONTyped = PatchedOAuthSourcePropertyMappingRequestFromJSONTyped;
41
+ function PatchedOAuthSourcePropertyMappingRequestToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'managed': value.managed,
50
+ 'name': value.name,
51
+ 'expression': value.expression,
52
+ };
53
+ }
54
+ exports.PatchedOAuthSourcePropertyMappingRequestToJSON = PatchedOAuthSourcePropertyMappingRequestToJSON;
@@ -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 { ProviderTypeEnum } from './ProviderTypeEnum';
14
15
  import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
@@ -78,6 +79,12 @@ export interface PatchedOAuthSourceRequest {
78
79
  * @memberof PatchedOAuthSourceRequest
79
80
  */
80
81
  userPathTemplate?: string;
82
+ /**
83
+ *
84
+ * @type {GroupMatchingModeEnum}
85
+ * @memberof PatchedOAuthSourceRequest
86
+ */
87
+ groupMatchingMode?: GroupMatchingModeEnum;
81
88
  /**
82
89
  *
83
90
  * @type {ProviderTypeEnum}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PatchedOAuthSourceRequestToJSON = exports.PatchedOAuthSourceRequestFromJSONTyped = exports.PatchedOAuthSourceRequestFromJSON = exports.instanceOfPatchedOAuthSourceRequest = void 0;
17
17
  const runtime_1 = require("../runtime");
18
+ const GroupMatchingModeEnum_1 = require("./GroupMatchingModeEnum");
18
19
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
19
20
  const ProviderTypeEnum_1 = require("./ProviderTypeEnum");
20
21
  const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
@@ -45,6 +46,7 @@ function PatchedOAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
45
46
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
46
47
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
47
48
  'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
49
+ 'groupMatchingMode': !(0, runtime_1.exists)(json, 'group_matching_mode') ? undefined : (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumFromJSON)(json['group_matching_mode']),
48
50
  'providerType': !(0, runtime_1.exists)(json, 'provider_type') ? undefined : (0, ProviderTypeEnum_1.ProviderTypeEnumFromJSON)(json['provider_type']),
49
51
  'requestTokenUrl': !(0, runtime_1.exists)(json, 'request_token_url') ? undefined : json['request_token_url'],
50
52
  'authorizationUrl': !(0, runtime_1.exists)(json, 'authorization_url') ? undefined : json['authorization_url'],
@@ -77,6 +79,7 @@ function PatchedOAuthSourceRequestToJSON(value) {
77
79
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
78
80
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
79
81
  'user_path_template': value.userPathTemplate,
82
+ 'group_matching_mode': (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumToJSON)(value.groupMatchingMode),
80
83
  'provider_type': (0, ProviderTypeEnum_1.ProviderTypeEnumToJSON)(value.providerType),
81
84
  'request_token_url': value.requestTokenUrl,
82
85
  'authorization_url': value.authorizationUrl,
@@ -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
+ * SAMLSourcePropertyMapping Serializer
14
+ * @export
15
+ * @interface PatchedSAMLSourcePropertyMappingRequest
16
+ */
17
+ export interface PatchedSAMLSourcePropertyMappingRequest {
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 PatchedSAMLSourcePropertyMappingRequest
22
+ */
23
+ managed?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PatchedSAMLSourcePropertyMappingRequest
28
+ */
29
+ name?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PatchedSAMLSourcePropertyMappingRequest
34
+ */
35
+ expression?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PatchedSAMLSourcePropertyMappingRequest interface.
39
+ */
40
+ export declare function instanceOfPatchedSAMLSourcePropertyMappingRequest(value: object): boolean;
41
+ export declare function PatchedSAMLSourcePropertyMappingRequestFromJSON(json: any): PatchedSAMLSourcePropertyMappingRequest;
42
+ export declare function PatchedSAMLSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSAMLSourcePropertyMappingRequest;
43
+ export declare function PatchedSAMLSourcePropertyMappingRequestToJSON(value?: PatchedSAMLSourcePropertyMappingRequest | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.6.3
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PatchedSAMLSourcePropertyMappingRequestToJSON = exports.PatchedSAMLSourcePropertyMappingRequestFromJSONTyped = exports.PatchedSAMLSourcePropertyMappingRequestFromJSON = exports.instanceOfPatchedSAMLSourcePropertyMappingRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the PatchedSAMLSourcePropertyMappingRequest interface.
20
+ */
21
+ function instanceOfPatchedSAMLSourcePropertyMappingRequest(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfPatchedSAMLSourcePropertyMappingRequest = instanceOfPatchedSAMLSourcePropertyMappingRequest;
26
+ function PatchedSAMLSourcePropertyMappingRequestFromJSON(json) {
27
+ return PatchedSAMLSourcePropertyMappingRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.PatchedSAMLSourcePropertyMappingRequestFromJSON = PatchedSAMLSourcePropertyMappingRequestFromJSON;
30
+ function PatchedSAMLSourcePropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
36
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
+ 'expression': !(0, runtime_1.exists)(json, 'expression') ? undefined : json['expression'],
38
+ };
39
+ }
40
+ exports.PatchedSAMLSourcePropertyMappingRequestFromJSONTyped = PatchedSAMLSourcePropertyMappingRequestFromJSONTyped;
41
+ function PatchedSAMLSourcePropertyMappingRequestToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'managed': value.managed,
50
+ 'name': value.name,
51
+ 'expression': value.expression,
52
+ };
53
+ }
54
+ exports.PatchedSAMLSourcePropertyMappingRequestToJSON = PatchedSAMLSourcePropertyMappingRequestToJSON;
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { BindingTypeEnum } from './BindingTypeEnum';
13
13
  import type { DigestAlgorithmEnum } from './DigestAlgorithmEnum';
14
+ import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
14
15
  import type { NameIdPolicyEnum } from './NameIdPolicyEnum';
15
16
  import type { PolicyEngineMode } from './PolicyEngineMode';
16
17
  import type { SignatureAlgorithmEnum } from './SignatureAlgorithmEnum';
@@ -81,6 +82,12 @@ export interface PatchedSAMLSourceRequest {
81
82
  * @memberof PatchedSAMLSourceRequest
82
83
  */
83
84
  userPathTemplate?: string;
85
+ /**
86
+ *
87
+ * @type {GroupMatchingModeEnum}
88
+ * @memberof PatchedSAMLSourceRequest
89
+ */
90
+ groupMatchingMode?: GroupMatchingModeEnum;
84
91
  /**
85
92
  * Flow used before authentication.
86
93
  * @type {string}
@@ -17,6 +17,7 @@ exports.PatchedSAMLSourceRequestToJSON = exports.PatchedSAMLSourceRequestFromJSO
17
17
  const runtime_1 = require("../runtime");
18
18
  const BindingTypeEnum_1 = require("./BindingTypeEnum");
19
19
  const DigestAlgorithmEnum_1 = require("./DigestAlgorithmEnum");
20
+ const GroupMatchingModeEnum_1 = require("./GroupMatchingModeEnum");
20
21
  const NameIdPolicyEnum_1 = require("./NameIdPolicyEnum");
21
22
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
22
23
  const SignatureAlgorithmEnum_1 = require("./SignatureAlgorithmEnum");
@@ -48,6 +49,7 @@ function PatchedSAMLSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
48
49
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
49
50
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
50
51
  'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
52
+ 'groupMatchingMode': !(0, runtime_1.exists)(json, 'group_matching_mode') ? undefined : (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumFromJSON)(json['group_matching_mode']),
51
53
  'preAuthenticationFlow': !(0, runtime_1.exists)(json, 'pre_authentication_flow') ? undefined : json['pre_authentication_flow'],
52
54
  'issuer': !(0, runtime_1.exists)(json, 'issuer') ? undefined : json['issuer'],
53
55
  'ssoUrl': !(0, runtime_1.exists)(json, 'sso_url') ? undefined : json['sso_url'],
@@ -81,6 +83,7 @@ function PatchedSAMLSourceRequestToJSON(value) {
81
83
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
82
84
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
83
85
  'user_path_template': value.userPathTemplate,
86
+ 'group_matching_mode': (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumToJSON)(value.groupMatchingMode),
84
87
  'pre_authentication_flow': value.preAuthenticationFlow,
85
88
  'issuer': value.issuer,
86
89
  'sso_url': value.ssoUrl,
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { BindingTypeEnum } from './BindingTypeEnum';
13
13
  import type { DigestAlgorithmEnum } from './DigestAlgorithmEnum';
14
+ import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
14
15
  import type { NameIdPolicyEnum } from './NameIdPolicyEnum';
15
16
  import type { PolicyEngineMode } from './PolicyEngineMode';
16
17
  import type { SignatureAlgorithmEnum } from './SignatureAlgorithmEnum';
@@ -123,6 +124,12 @@ export interface SAMLSource {
123
124
  * @memberof SAMLSource
124
125
  */
125
126
  readonly icon: string;
127
+ /**
128
+ *
129
+ * @type {GroupMatchingModeEnum}
130
+ * @memberof SAMLSource
131
+ */
132
+ groupMatchingMode?: GroupMatchingModeEnum;
126
133
  /**
127
134
  * Flow used before authentication.
128
135
  * @type {string}
@@ -17,6 +17,7 @@ exports.SAMLSourceToJSON = exports.SAMLSourceFromJSONTyped = exports.SAMLSourceF
17
17
  const runtime_1 = require("../runtime");
18
18
  const BindingTypeEnum_1 = require("./BindingTypeEnum");
19
19
  const DigestAlgorithmEnum_1 = require("./DigestAlgorithmEnum");
20
+ const GroupMatchingModeEnum_1 = require("./GroupMatchingModeEnum");
20
21
  const NameIdPolicyEnum_1 = require("./NameIdPolicyEnum");
21
22
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
22
23
  const SignatureAlgorithmEnum_1 = require("./SignatureAlgorithmEnum");
@@ -66,6 +67,7 @@ function SAMLSourceFromJSONTyped(json, ignoreDiscriminator) {
66
67
  'managed': json['managed'],
67
68
  'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
68
69
  'icon': json['icon'],
70
+ 'groupMatchingMode': !(0, runtime_1.exists)(json, 'group_matching_mode') ? undefined : (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumFromJSON)(json['group_matching_mode']),
69
71
  'preAuthenticationFlow': json['pre_authentication_flow'],
70
72
  'issuer': !(0, runtime_1.exists)(json, 'issuer') ? undefined : json['issuer'],
71
73
  'ssoUrl': json['sso_url'],
@@ -99,6 +101,7 @@ function SAMLSourceToJSON(value) {
99
101
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
100
102
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
101
103
  'user_path_template': value.userPathTemplate,
104
+ 'group_matching_mode': (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumToJSON)(value.groupMatchingMode),
102
105
  'pre_authentication_flow': value.preAuthenticationFlow,
103
106
  'issuer': value.issuer,
104
107
  'sso_url': value.ssoUrl,
@@ -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
+ * SAMLSourcePropertyMapping Serializer
14
+ * @export
15
+ * @interface SAMLSourcePropertyMapping
16
+ */
17
+ export interface SAMLSourcePropertyMapping {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SAMLSourcePropertyMapping
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 SAMLSourcePropertyMapping
28
+ */
29
+ managed?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SAMLSourcePropertyMapping
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SAMLSourcePropertyMapping
40
+ */
41
+ expression: string;
42
+ /**
43
+ * Get object's component so that we know how to edit the object
44
+ * @type {string}
45
+ * @memberof SAMLSourcePropertyMapping
46
+ */
47
+ readonly component: string;
48
+ /**
49
+ * Return object's verbose_name
50
+ * @type {string}
51
+ * @memberof SAMLSourcePropertyMapping
52
+ */
53
+ readonly verboseName: string;
54
+ /**
55
+ * Return object's plural verbose_name
56
+ * @type {string}
57
+ * @memberof SAMLSourcePropertyMapping
58
+ */
59
+ readonly verboseNamePlural: string;
60
+ /**
61
+ * Return internal model name
62
+ * @type {string}
63
+ * @memberof SAMLSourcePropertyMapping
64
+ */
65
+ readonly metaModelName: string;
66
+ }
67
+ /**
68
+ * Check if a given object implements the SAMLSourcePropertyMapping interface.
69
+ */
70
+ export declare function instanceOfSAMLSourcePropertyMapping(value: object): boolean;
71
+ export declare function SAMLSourcePropertyMappingFromJSON(json: any): SAMLSourcePropertyMapping;
72
+ export declare function SAMLSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SAMLSourcePropertyMapping;
73
+ export declare function SAMLSourcePropertyMappingToJSON(value?: SAMLSourcePropertyMapping | null): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.6.3
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SAMLSourcePropertyMappingToJSON = exports.SAMLSourcePropertyMappingFromJSONTyped = exports.SAMLSourcePropertyMappingFromJSON = exports.instanceOfSAMLSourcePropertyMapping = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the SAMLSourcePropertyMapping interface.
20
+ */
21
+ function instanceOfSAMLSourcePropertyMapping(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "pk" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "expression" in value;
26
+ isInstance = isInstance && "component" in value;
27
+ isInstance = isInstance && "verboseName" in value;
28
+ isInstance = isInstance && "verboseNamePlural" in value;
29
+ isInstance = isInstance && "metaModelName" in value;
30
+ return isInstance;
31
+ }
32
+ exports.instanceOfSAMLSourcePropertyMapping = instanceOfSAMLSourcePropertyMapping;
33
+ function SAMLSourcePropertyMappingFromJSON(json) {
34
+ return SAMLSourcePropertyMappingFromJSONTyped(json, false);
35
+ }
36
+ exports.SAMLSourcePropertyMappingFromJSON = SAMLSourcePropertyMappingFromJSON;
37
+ function SAMLSourcePropertyMappingFromJSONTyped(json, ignoreDiscriminator) {
38
+ if ((json === undefined) || (json === null)) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'pk': json['pk'],
43
+ 'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
44
+ 'name': json['name'],
45
+ 'expression': json['expression'],
46
+ 'component': json['component'],
47
+ 'verboseName': json['verbose_name'],
48
+ 'verboseNamePlural': json['verbose_name_plural'],
49
+ 'metaModelName': json['meta_model_name'],
50
+ };
51
+ }
52
+ exports.SAMLSourcePropertyMappingFromJSONTyped = SAMLSourcePropertyMappingFromJSONTyped;
53
+ function SAMLSourcePropertyMappingToJSON(value) {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+ 'managed': value.managed,
62
+ 'name': value.name,
63
+ 'expression': value.expression,
64
+ };
65
+ }
66
+ exports.SAMLSourcePropertyMappingToJSON = SAMLSourcePropertyMappingToJSON;
@@ -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
+ * SAMLSourcePropertyMapping Serializer
14
+ * @export
15
+ * @interface SAMLSourcePropertyMappingRequest
16
+ */
17
+ export interface SAMLSourcePropertyMappingRequest {
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 SAMLSourcePropertyMappingRequest
22
+ */
23
+ managed?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SAMLSourcePropertyMappingRequest
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SAMLSourcePropertyMappingRequest
34
+ */
35
+ expression: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SAMLSourcePropertyMappingRequest interface.
39
+ */
40
+ export declare function instanceOfSAMLSourcePropertyMappingRequest(value: object): boolean;
41
+ export declare function SAMLSourcePropertyMappingRequestFromJSON(json: any): SAMLSourcePropertyMappingRequest;
42
+ export declare function SAMLSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SAMLSourcePropertyMappingRequest;
43
+ export declare function SAMLSourcePropertyMappingRequestToJSON(value?: SAMLSourcePropertyMappingRequest | null): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.6.3
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SAMLSourcePropertyMappingRequestToJSON = exports.SAMLSourcePropertyMappingRequestFromJSONTyped = exports.SAMLSourcePropertyMappingRequestFromJSON = exports.instanceOfSAMLSourcePropertyMappingRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the SAMLSourcePropertyMappingRequest interface.
20
+ */
21
+ function instanceOfSAMLSourcePropertyMappingRequest(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "expression" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfSAMLSourcePropertyMappingRequest = instanceOfSAMLSourcePropertyMappingRequest;
28
+ function SAMLSourcePropertyMappingRequestFromJSON(json) {
29
+ return SAMLSourcePropertyMappingRequestFromJSONTyped(json, false);
30
+ }
31
+ exports.SAMLSourcePropertyMappingRequestFromJSON = SAMLSourcePropertyMappingRequestFromJSON;
32
+ function SAMLSourcePropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
38
+ 'name': json['name'],
39
+ 'expression': json['expression'],
40
+ };
41
+ }
42
+ exports.SAMLSourcePropertyMappingRequestFromJSONTyped = SAMLSourcePropertyMappingRequestFromJSONTyped;
43
+ function SAMLSourcePropertyMappingRequestToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'managed': value.managed,
52
+ 'name': value.name,
53
+ 'expression': value.expression,
54
+ };
55
+ }
56
+ exports.SAMLSourcePropertyMappingRequestToJSON = SAMLSourcePropertyMappingRequestToJSON;
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { BindingTypeEnum } from './BindingTypeEnum';
13
13
  import type { DigestAlgorithmEnum } from './DigestAlgorithmEnum';
14
+ import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
14
15
  import type { NameIdPolicyEnum } from './NameIdPolicyEnum';
15
16
  import type { PolicyEngineMode } from './PolicyEngineMode';
16
17
  import type { SignatureAlgorithmEnum } from './SignatureAlgorithmEnum';
@@ -81,6 +82,12 @@ export interface SAMLSourceRequest {
81
82
  * @memberof SAMLSourceRequest
82
83
  */
83
84
  userPathTemplate?: string;
85
+ /**
86
+ *
87
+ * @type {GroupMatchingModeEnum}
88
+ * @memberof SAMLSourceRequest
89
+ */
90
+ groupMatchingMode?: GroupMatchingModeEnum;
84
91
  /**
85
92
  * Flow used before authentication.
86
93
  * @type {string}