@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,57 @@
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.GroupSAMLSourceConnectionToJSON = exports.GroupSAMLSourceConnectionFromJSONTyped = exports.GroupSAMLSourceConnectionFromJSON = exports.instanceOfGroupSAMLSourceConnection = void 0;
17
+ const Source_1 = require("./Source");
18
+ /**
19
+ * Check if a given object implements the GroupSAMLSourceConnection interface.
20
+ */
21
+ function instanceOfGroupSAMLSourceConnection(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "pk" in value;
24
+ isInstance = isInstance && "group" in value;
25
+ isInstance = isInstance && "source" in value;
26
+ isInstance = isInstance && "identifier" in value;
27
+ isInstance = isInstance && "created" in value;
28
+ return isInstance;
29
+ }
30
+ exports.instanceOfGroupSAMLSourceConnection = instanceOfGroupSAMLSourceConnection;
31
+ function GroupSAMLSourceConnectionFromJSON(json) {
32
+ return GroupSAMLSourceConnectionFromJSONTyped(json, false);
33
+ }
34
+ exports.GroupSAMLSourceConnectionFromJSON = GroupSAMLSourceConnectionFromJSON;
35
+ function GroupSAMLSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'pk': json['pk'],
41
+ 'group': json['group'],
42
+ 'source': (0, Source_1.SourceFromJSON)(json['source']),
43
+ 'identifier': json['identifier'],
44
+ 'created': (new Date(json['created'])),
45
+ };
46
+ }
47
+ exports.GroupSAMLSourceConnectionFromJSONTyped = GroupSAMLSourceConnectionFromJSONTyped;
48
+ function GroupSAMLSourceConnectionToJSON(value) {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+ return {};
56
+ }
57
+ exports.GroupSAMLSourceConnectionToJSON = GroupSAMLSourceConnectionToJSON;
@@ -43,11 +43,15 @@ export declare const ModelEnum: {
43
43
  readonly SourcesLdapLdapsource: "authentik_sources_ldap.ldapsource";
44
44
  readonly SourcesLdapLdapsourcepropertymapping: "authentik_sources_ldap.ldapsourcepropertymapping";
45
45
  readonly SourcesOauthOauthsource: "authentik_sources_oauth.oauthsource";
46
+ readonly SourcesOauthOauthsourcepropertymapping: "authentik_sources_oauth.oauthsourcepropertymapping";
46
47
  readonly SourcesOauthUseroauthsourceconnection: "authentik_sources_oauth.useroauthsourceconnection";
48
+ readonly SourcesOauthGroupoauthsourceconnection: "authentik_sources_oauth.groupoauthsourceconnection";
47
49
  readonly SourcesPlexPlexsource: "authentik_sources_plex.plexsource";
48
50
  readonly SourcesPlexPlexsourceconnection: "authentik_sources_plex.plexsourceconnection";
49
51
  readonly SourcesSamlSamlsource: "authentik_sources_saml.samlsource";
52
+ readonly SourcesSamlSamlsourcepropertymapping: "authentik_sources_saml.samlsourcepropertymapping";
50
53
  readonly SourcesSamlUsersamlsourceconnection: "authentik_sources_saml.usersamlsourceconnection";
54
+ readonly SourcesSamlGroupsamlsourceconnection: "authentik_sources_saml.groupsamlsourceconnection";
51
55
  readonly SourcesScimScimsource: "authentik_sources_scim.scimsource";
52
56
  readonly SourcesScimScimsourcepropertymapping: "authentik_sources_scim.scimsourcepropertymapping";
53
57
  readonly StagesAuthenticatorDuoAuthenticatorduostage: "authentik_stages_authenticator_duo.authenticatorduostage";
@@ -48,11 +48,15 @@ exports.ModelEnum = {
48
48
  SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
49
49
  SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
50
50
  SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
51
+ SourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
51
52
  SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
53
+ SourcesOauthGroupoauthsourceconnection: 'authentik_sources_oauth.groupoauthsourceconnection',
52
54
  SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
53
55
  SourcesPlexPlexsourceconnection: 'authentik_sources_plex.plexsourceconnection',
54
56
  SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
57
+ SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
55
58
  SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
59
+ SourcesSamlGroupsamlsourceconnection: 'authentik_sources_saml.groupsamlsourceconnection',
56
60
  SourcesScimScimsource: 'authentik_sources_scim.scimsource',
57
61
  SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
58
62
  StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
@@ -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 { SourceType } from './SourceType';
@@ -121,6 +122,12 @@ export interface OAuthSource {
121
122
  * @memberof OAuthSource
122
123
  */
123
124
  readonly icon: string | null;
125
+ /**
126
+ *
127
+ * @type {GroupMatchingModeEnum}
128
+ * @memberof OAuthSource
129
+ */
130
+ groupMatchingMode?: GroupMatchingModeEnum;
124
131
  /**
125
132
  *
126
133
  * @type {ProviderTypeEnum}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.OAuthSourceToJSON = exports.OAuthSourceFromJSONTyped = exports.OAuthSourceFromJSON = exports.instanceOfOAuthSource = 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 SourceType_1 = require("./SourceType");
@@ -66,6 +67,7 @@ function OAuthSourceFromJSONTyped(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
  'providerType': (0, ProviderTypeEnum_1.ProviderTypeEnumFromJSON)(json['provider_type']),
70
72
  'requestTokenUrl': !(0, runtime_1.exists)(json, 'request_token_url') ? undefined : json['request_token_url'],
71
73
  'authorizationUrl': !(0, runtime_1.exists)(json, 'authorization_url') ? undefined : json['authorization_url'],
@@ -99,6 +101,7 @@ function OAuthSourceToJSON(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
  'provider_type': (0, ProviderTypeEnum_1.ProviderTypeEnumToJSON)(value.providerType),
103
106
  'request_token_url': value.requestTokenUrl,
104
107
  'authorization_url': value.authorizationUrl,
@@ -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
+ * OAuthSourcePropertyMapping Serializer
14
+ * @export
15
+ * @interface OAuthSourcePropertyMapping
16
+ */
17
+ export interface OAuthSourcePropertyMapping {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OAuthSourcePropertyMapping
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 OAuthSourcePropertyMapping
28
+ */
29
+ managed?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof OAuthSourcePropertyMapping
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof OAuthSourcePropertyMapping
40
+ */
41
+ expression: string;
42
+ /**
43
+ * Get object's component so that we know how to edit the object
44
+ * @type {string}
45
+ * @memberof OAuthSourcePropertyMapping
46
+ */
47
+ readonly component: string;
48
+ /**
49
+ * Return object's verbose_name
50
+ * @type {string}
51
+ * @memberof OAuthSourcePropertyMapping
52
+ */
53
+ readonly verboseName: string;
54
+ /**
55
+ * Return object's plural verbose_name
56
+ * @type {string}
57
+ * @memberof OAuthSourcePropertyMapping
58
+ */
59
+ readonly verboseNamePlural: string;
60
+ /**
61
+ * Return internal model name
62
+ * @type {string}
63
+ * @memberof OAuthSourcePropertyMapping
64
+ */
65
+ readonly metaModelName: string;
66
+ }
67
+ /**
68
+ * Check if a given object implements the OAuthSourcePropertyMapping interface.
69
+ */
70
+ export declare function instanceOfOAuthSourcePropertyMapping(value: object): boolean;
71
+ export declare function OAuthSourcePropertyMappingFromJSON(json: any): OAuthSourcePropertyMapping;
72
+ export declare function OAuthSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthSourcePropertyMapping;
73
+ export declare function OAuthSourcePropertyMappingToJSON(value?: OAuthSourcePropertyMapping | 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.OAuthSourcePropertyMappingToJSON = exports.OAuthSourcePropertyMappingFromJSONTyped = exports.OAuthSourcePropertyMappingFromJSON = exports.instanceOfOAuthSourcePropertyMapping = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the OAuthSourcePropertyMapping interface.
20
+ */
21
+ function instanceOfOAuthSourcePropertyMapping(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.instanceOfOAuthSourcePropertyMapping = instanceOfOAuthSourcePropertyMapping;
33
+ function OAuthSourcePropertyMappingFromJSON(json) {
34
+ return OAuthSourcePropertyMappingFromJSONTyped(json, false);
35
+ }
36
+ exports.OAuthSourcePropertyMappingFromJSON = OAuthSourcePropertyMappingFromJSON;
37
+ function OAuthSourcePropertyMappingFromJSONTyped(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.OAuthSourcePropertyMappingFromJSONTyped = OAuthSourcePropertyMappingFromJSONTyped;
53
+ function OAuthSourcePropertyMappingToJSON(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.OAuthSourcePropertyMappingToJSON = OAuthSourcePropertyMappingToJSON;
@@ -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 OAuthSourcePropertyMappingRequest
16
+ */
17
+ export interface OAuthSourcePropertyMappingRequest {
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 OAuthSourcePropertyMappingRequest
22
+ */
23
+ managed?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof OAuthSourcePropertyMappingRequest
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof OAuthSourcePropertyMappingRequest
34
+ */
35
+ expression: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the OAuthSourcePropertyMappingRequest interface.
39
+ */
40
+ export declare function instanceOfOAuthSourcePropertyMappingRequest(value: object): boolean;
41
+ export declare function OAuthSourcePropertyMappingRequestFromJSON(json: any): OAuthSourcePropertyMappingRequest;
42
+ export declare function OAuthSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthSourcePropertyMappingRequest;
43
+ export declare function OAuthSourcePropertyMappingRequestToJSON(value?: OAuthSourcePropertyMappingRequest | 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.OAuthSourcePropertyMappingRequestToJSON = exports.OAuthSourcePropertyMappingRequestFromJSONTyped = exports.OAuthSourcePropertyMappingRequestFromJSON = exports.instanceOfOAuthSourcePropertyMappingRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the OAuthSourcePropertyMappingRequest interface.
20
+ */
21
+ function instanceOfOAuthSourcePropertyMappingRequest(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "expression" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfOAuthSourcePropertyMappingRequest = instanceOfOAuthSourcePropertyMappingRequest;
28
+ function OAuthSourcePropertyMappingRequestFromJSON(json) {
29
+ return OAuthSourcePropertyMappingRequestFromJSONTyped(json, false);
30
+ }
31
+ exports.OAuthSourcePropertyMappingRequestFromJSON = OAuthSourcePropertyMappingRequestFromJSON;
32
+ function OAuthSourcePropertyMappingRequestFromJSONTyped(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.OAuthSourcePropertyMappingRequestFromJSONTyped = OAuthSourcePropertyMappingRequestFromJSONTyped;
43
+ function OAuthSourcePropertyMappingRequestToJSON(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.OAuthSourcePropertyMappingRequestToJSON = OAuthSourcePropertyMappingRequestToJSON;
@@ -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 OAuthSourceRequest {
78
79
  * @memberof OAuthSourceRequest
79
80
  */
80
81
  userPathTemplate?: string;
82
+ /**
83
+ *
84
+ * @type {GroupMatchingModeEnum}
85
+ * @memberof OAuthSourceRequest
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.OAuthSourceRequestToJSON = exports.OAuthSourceRequestFromJSONTyped = exports.OAuthSourceRequestFromJSON = exports.instanceOfOAuthSourceRequest = 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");
@@ -50,6 +51,7 @@ function OAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
51
52
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
52
53
  'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
54
+ 'groupMatchingMode': !(0, runtime_1.exists)(json, 'group_matching_mode') ? undefined : (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumFromJSON)(json['group_matching_mode']),
53
55
  'providerType': (0, ProviderTypeEnum_1.ProviderTypeEnumFromJSON)(json['provider_type']),
54
56
  'requestTokenUrl': !(0, runtime_1.exists)(json, 'request_token_url') ? undefined : json['request_token_url'],
55
57
  'authorizationUrl': !(0, runtime_1.exists)(json, 'authorization_url') ? undefined : json['authorization_url'],
@@ -82,6 +84,7 @@ function OAuthSourceRequestToJSON(value) {
82
84
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
83
85
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
84
86
  'user_path_template': value.userPathTemplate,
87
+ 'group_matching_mode': (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumToJSON)(value.groupMatchingMode),
85
88
  'provider_type': (0, ProviderTypeEnum_1.ProviderTypeEnumToJSON)(value.providerType),
86
89
  'request_token_url': value.requestTokenUrl,
87
90
  'authorization_url': value.authorizationUrl,
@@ -0,0 +1,39 @@
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 { GroupOAuthSourceConnection } from './GroupOAuthSourceConnection';
13
+ import type { Pagination } from './Pagination';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedGroupOAuthSourceConnectionList
18
+ */
19
+ export interface PaginatedGroupOAuthSourceConnectionList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedGroupOAuthSourceConnectionList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<GroupOAuthSourceConnection>}
29
+ * @memberof PaginatedGroupOAuthSourceConnectionList
30
+ */
31
+ results: Array<GroupOAuthSourceConnection>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedGroupOAuthSourceConnectionList interface.
35
+ */
36
+ export declare function instanceOfPaginatedGroupOAuthSourceConnectionList(value: object): boolean;
37
+ export declare function PaginatedGroupOAuthSourceConnectionListFromJSON(json: any): PaginatedGroupOAuthSourceConnectionList;
38
+ export declare function PaginatedGroupOAuthSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupOAuthSourceConnectionList;
39
+ export declare function PaginatedGroupOAuthSourceConnectionListToJSON(value?: PaginatedGroupOAuthSourceConnectionList | null): any;
@@ -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.PaginatedGroupOAuthSourceConnectionListToJSON = exports.PaginatedGroupOAuthSourceConnectionListFromJSONTyped = exports.PaginatedGroupOAuthSourceConnectionListFromJSON = exports.instanceOfPaginatedGroupOAuthSourceConnectionList = void 0;
17
+ const GroupOAuthSourceConnection_1 = require("./GroupOAuthSourceConnection");
18
+ const Pagination_1 = require("./Pagination");
19
+ /**
20
+ * Check if a given object implements the PaginatedGroupOAuthSourceConnectionList interface.
21
+ */
22
+ function instanceOfPaginatedGroupOAuthSourceConnectionList(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "pagination" in value;
25
+ isInstance = isInstance && "results" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfPaginatedGroupOAuthSourceConnectionList = instanceOfPaginatedGroupOAuthSourceConnectionList;
29
+ function PaginatedGroupOAuthSourceConnectionListFromJSON(json) {
30
+ return PaginatedGroupOAuthSourceConnectionListFromJSONTyped(json, false);
31
+ }
32
+ exports.PaginatedGroupOAuthSourceConnectionListFromJSON = PaginatedGroupOAuthSourceConnectionListFromJSON;
33
+ function PaginatedGroupOAuthSourceConnectionListFromJSONTyped(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(GroupOAuthSourceConnection_1.GroupOAuthSourceConnectionFromJSON)),
40
+ };
41
+ }
42
+ exports.PaginatedGroupOAuthSourceConnectionListFromJSONTyped = PaginatedGroupOAuthSourceConnectionListFromJSONTyped;
43
+ function PaginatedGroupOAuthSourceConnectionListToJSON(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(GroupOAuthSourceConnection_1.GroupOAuthSourceConnectionToJSON)),
53
+ };
54
+ }
55
+ exports.PaginatedGroupOAuthSourceConnectionListToJSON = PaginatedGroupOAuthSourceConnectionListToJSON;
@@ -0,0 +1,39 @@
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 { GroupSAMLSourceConnection } from './GroupSAMLSourceConnection';
13
+ import type { Pagination } from './Pagination';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedGroupSAMLSourceConnectionList
18
+ */
19
+ export interface PaginatedGroupSAMLSourceConnectionList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedGroupSAMLSourceConnectionList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<GroupSAMLSourceConnection>}
29
+ * @memberof PaginatedGroupSAMLSourceConnectionList
30
+ */
31
+ results: Array<GroupSAMLSourceConnection>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedGroupSAMLSourceConnectionList interface.
35
+ */
36
+ export declare function instanceOfPaginatedGroupSAMLSourceConnectionList(value: object): boolean;
37
+ export declare function PaginatedGroupSAMLSourceConnectionListFromJSON(json: any): PaginatedGroupSAMLSourceConnectionList;
38
+ export declare function PaginatedGroupSAMLSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupSAMLSourceConnectionList;
39
+ export declare function PaginatedGroupSAMLSourceConnectionListToJSON(value?: PaginatedGroupSAMLSourceConnectionList | null): any;
@@ -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.PaginatedGroupSAMLSourceConnectionListToJSON = exports.PaginatedGroupSAMLSourceConnectionListFromJSONTyped = exports.PaginatedGroupSAMLSourceConnectionListFromJSON = exports.instanceOfPaginatedGroupSAMLSourceConnectionList = void 0;
17
+ const GroupSAMLSourceConnection_1 = require("./GroupSAMLSourceConnection");
18
+ const Pagination_1 = require("./Pagination");
19
+ /**
20
+ * Check if a given object implements the PaginatedGroupSAMLSourceConnectionList interface.
21
+ */
22
+ function instanceOfPaginatedGroupSAMLSourceConnectionList(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "pagination" in value;
25
+ isInstance = isInstance && "results" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfPaginatedGroupSAMLSourceConnectionList = instanceOfPaginatedGroupSAMLSourceConnectionList;
29
+ function PaginatedGroupSAMLSourceConnectionListFromJSON(json) {
30
+ return PaginatedGroupSAMLSourceConnectionListFromJSONTyped(json, false);
31
+ }
32
+ exports.PaginatedGroupSAMLSourceConnectionListFromJSON = PaginatedGroupSAMLSourceConnectionListFromJSON;
33
+ function PaginatedGroupSAMLSourceConnectionListFromJSONTyped(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(GroupSAMLSourceConnection_1.GroupSAMLSourceConnectionFromJSON)),
40
+ };
41
+ }
42
+ exports.PaginatedGroupSAMLSourceConnectionListFromJSONTyped = PaginatedGroupSAMLSourceConnectionListFromJSONTyped;
43
+ function PaginatedGroupSAMLSourceConnectionListToJSON(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(GroupSAMLSourceConnection_1.GroupSAMLSourceConnectionToJSON)),
53
+ };
54
+ }
55
+ exports.PaginatedGroupSAMLSourceConnectionListToJSON = PaginatedGroupSAMLSourceConnectionListToJSON;
@@ -0,0 +1,39 @@
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 { OAuthSourcePropertyMapping } from './OAuthSourcePropertyMapping';
13
+ import type { Pagination } from './Pagination';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedOAuthSourcePropertyMappingList
18
+ */
19
+ export interface PaginatedOAuthSourcePropertyMappingList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedOAuthSourcePropertyMappingList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<OAuthSourcePropertyMapping>}
29
+ * @memberof PaginatedOAuthSourcePropertyMappingList
30
+ */
31
+ results: Array<OAuthSourcePropertyMapping>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedOAuthSourcePropertyMappingList interface.
35
+ */
36
+ export declare function instanceOfPaginatedOAuthSourcePropertyMappingList(value: object): boolean;
37
+ export declare function PaginatedOAuthSourcePropertyMappingListFromJSON(json: any): PaginatedOAuthSourcePropertyMappingList;
38
+ export declare function PaginatedOAuthSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedOAuthSourcePropertyMappingList;
39
+ export declare function PaginatedOAuthSourcePropertyMappingListToJSON(value?: PaginatedOAuthSourcePropertyMappingList | null): any;