@goauthentik/api 2025.2.4-1744288676 → 2025.2.4-1744640358

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/dist/apis/CoreApi.d.ts +2 -2
  3. package/dist/apis/CoreApi.js +6 -6
  4. package/dist/apis/RbacApi.d.ts +4 -0
  5. package/dist/apis/RbacApi.js +4 -0
  6. package/dist/apis/SourcesApi.d.ts +169 -1
  7. package/dist/apis/SourcesApi.js +536 -0
  8. package/dist/esm/apis/CoreApi.d.ts +2 -2
  9. package/dist/esm/apis/CoreApi.js +6 -6
  10. package/dist/esm/apis/RbacApi.d.ts +4 -0
  11. package/dist/esm/apis/RbacApi.js +4 -0
  12. package/dist/esm/apis/SourcesApi.d.ts +169 -1
  13. package/dist/esm/apis/SourcesApi.js +537 -1
  14. package/dist/esm/models/AuthenticatedSession.d.ts +4 -4
  15. package/dist/esm/models/AuthenticatedSession.js +6 -5
  16. package/dist/esm/models/GroupLDAPSourceConnection.d.ts +69 -0
  17. package/dist/esm/models/GroupLDAPSourceConnection.js +64 -0
  18. package/dist/esm/models/GroupLDAPSourceConnectionRequest.d.ts +44 -0
  19. package/dist/esm/models/GroupLDAPSourceConnectionRequest.js +51 -0
  20. package/dist/esm/models/ModelEnum.d.ts +2 -0
  21. package/dist/esm/models/ModelEnum.js +2 -0
  22. package/dist/esm/models/PaginatedGroupLDAPSourceConnectionList.d.ts +40 -0
  23. package/dist/esm/models/PaginatedGroupLDAPSourceConnectionList.js +49 -0
  24. package/dist/esm/models/PaginatedUserLDAPSourceConnectionList.d.ts +40 -0
  25. package/dist/esm/models/PaginatedUserLDAPSourceConnectionList.js +49 -0
  26. package/dist/esm/models/PatchedGroupLDAPSourceConnectionRequest.d.ts +44 -0
  27. package/dist/esm/models/PatchedGroupLDAPSourceConnectionRequest.js +45 -0
  28. package/dist/esm/models/PatchedSettingsRequest.d.ts +12 -0
  29. package/dist/esm/models/PatchedSettingsRequest.js +4 -0
  30. package/dist/esm/models/PatchedUserLDAPSourceConnectionRequest.d.ts +44 -0
  31. package/dist/esm/models/PatchedUserLDAPSourceConnectionRequest.js +45 -0
  32. package/dist/esm/models/Settings.d.ts +12 -0
  33. package/dist/esm/models/Settings.js +4 -0
  34. package/dist/esm/models/SettingsRequest.d.ts +12 -0
  35. package/dist/esm/models/SettingsRequest.js +4 -0
  36. package/dist/esm/models/UserLDAPSourceConnection.d.ts +69 -0
  37. package/dist/esm/models/UserLDAPSourceConnection.js +64 -0
  38. package/dist/esm/models/UserLDAPSourceConnectionRequest.d.ts +44 -0
  39. package/dist/esm/models/UserLDAPSourceConnectionRequest.js +51 -0
  40. package/dist/esm/models/index.d.ts +8 -0
  41. package/dist/esm/models/index.js +8 -0
  42. package/dist/models/AuthenticatedSession.d.ts +4 -4
  43. package/dist/models/AuthenticatedSession.js +6 -5
  44. package/dist/models/GroupLDAPSourceConnection.d.ts +69 -0
  45. package/dist/models/GroupLDAPSourceConnection.js +71 -0
  46. package/dist/models/GroupLDAPSourceConnectionRequest.d.ts +44 -0
  47. package/dist/models/GroupLDAPSourceConnectionRequest.js +58 -0
  48. package/dist/models/ModelEnum.d.ts +2 -0
  49. package/dist/models/ModelEnum.js +2 -0
  50. package/dist/models/PaginatedGroupLDAPSourceConnectionList.d.ts +40 -0
  51. package/dist/models/PaginatedGroupLDAPSourceConnectionList.js +56 -0
  52. package/dist/models/PaginatedUserLDAPSourceConnectionList.d.ts +40 -0
  53. package/dist/models/PaginatedUserLDAPSourceConnectionList.js +56 -0
  54. package/dist/models/PatchedGroupLDAPSourceConnectionRequest.d.ts +44 -0
  55. package/dist/models/PatchedGroupLDAPSourceConnectionRequest.js +52 -0
  56. package/dist/models/PatchedSettingsRequest.d.ts +12 -0
  57. package/dist/models/PatchedSettingsRequest.js +4 -0
  58. package/dist/models/PatchedUserLDAPSourceConnectionRequest.d.ts +44 -0
  59. package/dist/models/PatchedUserLDAPSourceConnectionRequest.js +52 -0
  60. package/dist/models/Settings.d.ts +12 -0
  61. package/dist/models/Settings.js +4 -0
  62. package/dist/models/SettingsRequest.d.ts +12 -0
  63. package/dist/models/SettingsRequest.js +4 -0
  64. package/dist/models/UserLDAPSourceConnection.d.ts +69 -0
  65. package/dist/models/UserLDAPSourceConnection.js +71 -0
  66. package/dist/models/UserLDAPSourceConnectionRequest.d.ts +44 -0
  67. package/dist/models/UserLDAPSourceConnectionRequest.js +58 -0
  68. package/dist/models/index.d.ts +8 -0
  69. package/dist/models/index.js +8 -0
  70. package/package.json +1 -1
  71. package/src/apis/CoreApi.ts +10 -10
  72. package/src/apis/RbacApi.ts +4 -0
  73. package/src/apis/SourcesApi.ts +1929 -1197
  74. package/src/models/AuthenticatedSession.ts +8 -9
  75. package/src/models/GroupLDAPSourceConnection.ts +124 -0
  76. package/src/models/GroupLDAPSourceConnectionRequest.ts +84 -0
  77. package/src/models/ModelEnum.ts +2 -0
  78. package/src/models/PaginatedGroupLDAPSourceConnectionList.ts +90 -0
  79. package/src/models/PaginatedUserLDAPSourceConnectionList.ts +90 -0
  80. package/src/models/PatchedGroupLDAPSourceConnectionRequest.ts +81 -0
  81. package/src/models/PatchedSettingsRequest.ts +16 -0
  82. package/src/models/PatchedUserLDAPSourceConnectionRequest.ts +81 -0
  83. package/src/models/Settings.ts +16 -0
  84. package/src/models/SettingsRequest.ts +16 -0
  85. package/src/models/UserLDAPSourceConnection.ts +124 -0
  86. package/src/models/UserLDAPSourceConnectionRequest.ts +84 -0
  87. package/src/models/index.ts +8 -0
@@ -82,13 +82,13 @@ export interface AuthenticatedSession {
82
82
  * @type {string}
83
83
  * @memberof AuthenticatedSession
84
84
  */
85
- lastIp: string;
85
+ readonly lastIp: string;
86
86
  /**
87
87
  *
88
88
  * @type {string}
89
89
  * @memberof AuthenticatedSession
90
90
  */
91
- lastUserAgent?: string;
91
+ readonly lastUserAgent: string;
92
92
  /**
93
93
  *
94
94
  * @type {Date}
@@ -100,7 +100,7 @@ export interface AuthenticatedSession {
100
100
  * @type {Date}
101
101
  * @memberof AuthenticatedSession
102
102
  */
103
- expires?: Date | null;
103
+ readonly expires: Date;
104
104
  }
105
105
 
106
106
  /**
@@ -113,7 +113,9 @@ export function instanceOfAuthenticatedSession(value: object): value is Authenti
113
113
  if (!('asn' in value) || value['asn'] === undefined) return false;
114
114
  if (!('user' in value) || value['user'] === undefined) return false;
115
115
  if (!('lastIp' in value) || value['lastIp'] === undefined) return false;
116
+ if (!('lastUserAgent' in value) || value['lastUserAgent'] === undefined) return false;
116
117
  if (!('lastUsed' in value) || value['lastUsed'] === undefined) return false;
118
+ if (!('expires' in value) || value['expires'] === undefined) return false;
117
119
  return true;
118
120
  }
119
121
 
@@ -134,9 +136,9 @@ export function AuthenticatedSessionFromJSONTyped(json: any, ignoreDiscriminator
134
136
  'asn': AuthenticatedSessionAsnFromJSON(json['asn']),
135
137
  'user': json['user'],
136
138
  'lastIp': json['last_ip'],
137
- 'lastUserAgent': json['last_user_agent'] == null ? undefined : json['last_user_agent'],
139
+ 'lastUserAgent': json['last_user_agent'],
138
140
  'lastUsed': (new Date(json['last_used'])),
139
- 'expires': json['expires'] == null ? undefined : (new Date(json['expires'])),
141
+ 'expires': (new Date(json['expires'])),
140
142
  };
141
143
  }
142
144
 
@@ -144,7 +146,7 @@ export function AuthenticatedSessionToJSON(json: any): AuthenticatedSession {
144
146
  return AuthenticatedSessionToJSONTyped(json, false);
145
147
  }
146
148
 
147
- export function AuthenticatedSessionToJSONTyped(value?: Omit<AuthenticatedSession, 'current'|'last_used'> | null, ignoreDiscriminator: boolean = false): any {
149
+ export function AuthenticatedSessionToJSONTyped(value?: Omit<AuthenticatedSession, 'current'|'last_ip'|'last_user_agent'|'last_used'|'expires'> | null, ignoreDiscriminator: boolean = false): any {
148
150
  if (value == null) {
149
151
  return value;
150
152
  }
@@ -156,9 +158,6 @@ export function AuthenticatedSessionToJSONTyped(value?: Omit<AuthenticatedSessio
156
158
  'geo_ip': AuthenticatedSessionGeoIpToJSON(value['geoIp']),
157
159
  'asn': AuthenticatedSessionAsnToJSON(value['asn']),
158
160
  'user': value['user'],
159
- 'last_ip': value['lastIp'],
160
- 'last_user_agent': value['lastUserAgent'],
161
- 'expires': value['expires'] == null ? undefined : ((value['expires'] as any).toISOString()),
162
161
  };
163
162
  }
164
163
 
@@ -0,0 +1,124 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2025.2.4
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 { mapValues } from '../runtime';
16
+ import type { Source } from './Source';
17
+ import {
18
+ SourceFromJSON,
19
+ SourceFromJSONTyped,
20
+ SourceToJSON,
21
+ SourceToJSONTyped,
22
+ } from './Source';
23
+
24
+ /**
25
+ * Group Source Connection
26
+ * @export
27
+ * @interface GroupLDAPSourceConnection
28
+ */
29
+ export interface GroupLDAPSourceConnection {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GroupLDAPSourceConnection
34
+ */
35
+ readonly pk: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GroupLDAPSourceConnection
40
+ */
41
+ group: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GroupLDAPSourceConnection
46
+ */
47
+ source: string;
48
+ /**
49
+ *
50
+ * @type {Source}
51
+ * @memberof GroupLDAPSourceConnection
52
+ */
53
+ readonly sourceObj: Source;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof GroupLDAPSourceConnection
58
+ */
59
+ identifier: string;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof GroupLDAPSourceConnection
64
+ */
65
+ readonly created: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof GroupLDAPSourceConnection
70
+ */
71
+ readonly lastUpdated: Date;
72
+ }
73
+
74
+ /**
75
+ * Check if a given object implements the GroupLDAPSourceConnection interface.
76
+ */
77
+ export function instanceOfGroupLDAPSourceConnection(value: object): value is GroupLDAPSourceConnection {
78
+ if (!('pk' in value) || value['pk'] === undefined) return false;
79
+ if (!('group' in value) || value['group'] === undefined) return false;
80
+ if (!('source' in value) || value['source'] === undefined) return false;
81
+ if (!('sourceObj' in value) || value['sourceObj'] === undefined) return false;
82
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
83
+ if (!('created' in value) || value['created'] === undefined) return false;
84
+ if (!('lastUpdated' in value) || value['lastUpdated'] === undefined) return false;
85
+ return true;
86
+ }
87
+
88
+ export function GroupLDAPSourceConnectionFromJSON(json: any): GroupLDAPSourceConnection {
89
+ return GroupLDAPSourceConnectionFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function GroupLDAPSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupLDAPSourceConnection {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'pk': json['pk'],
99
+ 'group': json['group'],
100
+ 'source': json['source'],
101
+ 'sourceObj': SourceFromJSON(json['source_obj']),
102
+ 'identifier': json['identifier'],
103
+ 'created': (new Date(json['created'])),
104
+ 'lastUpdated': (new Date(json['last_updated'])),
105
+ };
106
+ }
107
+
108
+ export function GroupLDAPSourceConnectionToJSON(json: any): GroupLDAPSourceConnection {
109
+ return GroupLDAPSourceConnectionToJSONTyped(json, false);
110
+ }
111
+
112
+ export function GroupLDAPSourceConnectionToJSONTyped(value?: Omit<GroupLDAPSourceConnection, 'pk'|'source_obj'|'created'|'last_updated'> | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'group': value['group'],
120
+ 'source': value['source'],
121
+ 'identifier': value['identifier'],
122
+ };
123
+ }
124
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2025.2.4
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 { mapValues } from '../runtime';
16
+ /**
17
+ * Group Source Connection
18
+ * @export
19
+ * @interface GroupLDAPSourceConnectionRequest
20
+ */
21
+ export interface GroupLDAPSourceConnectionRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GroupLDAPSourceConnectionRequest
26
+ */
27
+ group: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GroupLDAPSourceConnectionRequest
32
+ */
33
+ source: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GroupLDAPSourceConnectionRequest
38
+ */
39
+ identifier: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the GroupLDAPSourceConnectionRequest interface.
44
+ */
45
+ export function instanceOfGroupLDAPSourceConnectionRequest(value: object): value is GroupLDAPSourceConnectionRequest {
46
+ if (!('group' in value) || value['group'] === undefined) return false;
47
+ if (!('source' in value) || value['source'] === undefined) return false;
48
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function GroupLDAPSourceConnectionRequestFromJSON(json: any): GroupLDAPSourceConnectionRequest {
53
+ return GroupLDAPSourceConnectionRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function GroupLDAPSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupLDAPSourceConnectionRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'group': json['group'],
63
+ 'source': json['source'],
64
+ 'identifier': json['identifier'],
65
+ };
66
+ }
67
+
68
+ export function GroupLDAPSourceConnectionRequestToJSON(json: any): GroupLDAPSourceConnectionRequest {
69
+ return GroupLDAPSourceConnectionRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function GroupLDAPSourceConnectionRequestToJSONTyped(value?: GroupLDAPSourceConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'group': value['group'],
80
+ 'source': value['source'],
81
+ 'identifier': value['identifier'],
82
+ };
83
+ }
84
+
@@ -53,6 +53,8 @@ export const ModelEnum = {
53
53
  AuthentikSourcesKerberosGroupkerberossourceconnection: 'authentik_sources_kerberos.groupkerberossourceconnection',
54
54
  AuthentikSourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
55
55
  AuthentikSourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
56
+ AuthentikSourcesLdapUserldapsourceconnection: 'authentik_sources_ldap.userldapsourceconnection',
57
+ AuthentikSourcesLdapGroupldapsourceconnection: 'authentik_sources_ldap.groupldapsourceconnection',
56
58
  AuthentikSourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
57
59
  AuthentikSourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
58
60
  AuthentikSourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2025.2.4
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 { mapValues } from '../runtime';
16
+ import type { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ PaginationToJSONTyped,
22
+ } from './Pagination';
23
+ import type { GroupLDAPSourceConnection } from './GroupLDAPSourceConnection';
24
+ import {
25
+ GroupLDAPSourceConnectionFromJSON,
26
+ GroupLDAPSourceConnectionFromJSONTyped,
27
+ GroupLDAPSourceConnectionToJSON,
28
+ GroupLDAPSourceConnectionToJSONTyped,
29
+ } from './GroupLDAPSourceConnection';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedGroupLDAPSourceConnectionList
35
+ */
36
+ export interface PaginatedGroupLDAPSourceConnectionList {
37
+ /**
38
+ *
39
+ * @type {Pagination}
40
+ * @memberof PaginatedGroupLDAPSourceConnectionList
41
+ */
42
+ pagination: Pagination;
43
+ /**
44
+ *
45
+ * @type {Array<GroupLDAPSourceConnection>}
46
+ * @memberof PaginatedGroupLDAPSourceConnectionList
47
+ */
48
+ results: Array<GroupLDAPSourceConnection>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedGroupLDAPSourceConnectionList interface.
53
+ */
54
+ export function instanceOfPaginatedGroupLDAPSourceConnectionList(value: object): value is PaginatedGroupLDAPSourceConnectionList {
55
+ if (!('pagination' in value) || value['pagination'] === undefined) return false;
56
+ if (!('results' in value) || value['results'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedGroupLDAPSourceConnectionListFromJSON(json: any): PaginatedGroupLDAPSourceConnectionList {
61
+ return PaginatedGroupLDAPSourceConnectionListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedGroupLDAPSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupLDAPSourceConnectionList {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(GroupLDAPSourceConnectionFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedGroupLDAPSourceConnectionListToJSON(json: any): PaginatedGroupLDAPSourceConnectionList {
76
+ return PaginatedGroupLDAPSourceConnectionListToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedGroupLDAPSourceConnectionListToJSONTyped(value?: PaginatedGroupLDAPSourceConnectionList | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'pagination': PaginationToJSON(value['pagination']),
87
+ 'results': ((value['results'] as Array<any>).map(GroupLDAPSourceConnectionToJSON)),
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2025.2.4
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 { mapValues } from '../runtime';
16
+ import type { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ PaginationToJSONTyped,
22
+ } from './Pagination';
23
+ import type { UserLDAPSourceConnection } from './UserLDAPSourceConnection';
24
+ import {
25
+ UserLDAPSourceConnectionFromJSON,
26
+ UserLDAPSourceConnectionFromJSONTyped,
27
+ UserLDAPSourceConnectionToJSON,
28
+ UserLDAPSourceConnectionToJSONTyped,
29
+ } from './UserLDAPSourceConnection';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedUserLDAPSourceConnectionList
35
+ */
36
+ export interface PaginatedUserLDAPSourceConnectionList {
37
+ /**
38
+ *
39
+ * @type {Pagination}
40
+ * @memberof PaginatedUserLDAPSourceConnectionList
41
+ */
42
+ pagination: Pagination;
43
+ /**
44
+ *
45
+ * @type {Array<UserLDAPSourceConnection>}
46
+ * @memberof PaginatedUserLDAPSourceConnectionList
47
+ */
48
+ results: Array<UserLDAPSourceConnection>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedUserLDAPSourceConnectionList interface.
53
+ */
54
+ export function instanceOfPaginatedUserLDAPSourceConnectionList(value: object): value is PaginatedUserLDAPSourceConnectionList {
55
+ if (!('pagination' in value) || value['pagination'] === undefined) return false;
56
+ if (!('results' in value) || value['results'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedUserLDAPSourceConnectionListFromJSON(json: any): PaginatedUserLDAPSourceConnectionList {
61
+ return PaginatedUserLDAPSourceConnectionListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedUserLDAPSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserLDAPSourceConnectionList {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(UserLDAPSourceConnectionFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedUserLDAPSourceConnectionListToJSON(json: any): PaginatedUserLDAPSourceConnectionList {
76
+ return PaginatedUserLDAPSourceConnectionListToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedUserLDAPSourceConnectionListToJSONTyped(value?: PaginatedUserLDAPSourceConnectionList | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'pagination': PaginationToJSON(value['pagination']),
87
+ 'results': ((value['results'] as Array<any>).map(UserLDAPSourceConnectionToJSON)),
88
+ };
89
+ }
90
+
@@ -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: 2025.2.4
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 { mapValues } from '../runtime';
16
+ /**
17
+ * Group Source Connection
18
+ * @export
19
+ * @interface PatchedGroupLDAPSourceConnectionRequest
20
+ */
21
+ export interface PatchedGroupLDAPSourceConnectionRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PatchedGroupLDAPSourceConnectionRequest
26
+ */
27
+ group?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PatchedGroupLDAPSourceConnectionRequest
32
+ */
33
+ source?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedGroupLDAPSourceConnectionRequest
38
+ */
39
+ identifier?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PatchedGroupLDAPSourceConnectionRequest interface.
44
+ */
45
+ export function instanceOfPatchedGroupLDAPSourceConnectionRequest(value: object): value is PatchedGroupLDAPSourceConnectionRequest {
46
+ return true;
47
+ }
48
+
49
+ export function PatchedGroupLDAPSourceConnectionRequestFromJSON(json: any): PatchedGroupLDAPSourceConnectionRequest {
50
+ return PatchedGroupLDAPSourceConnectionRequestFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function PatchedGroupLDAPSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedGroupLDAPSourceConnectionRequest {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'group': json['group'] == null ? undefined : json['group'],
60
+ 'source': json['source'] == null ? undefined : json['source'],
61
+ 'identifier': json['identifier'] == null ? undefined : json['identifier'],
62
+ };
63
+ }
64
+
65
+ export function PatchedGroupLDAPSourceConnectionRequestToJSON(json: any): PatchedGroupLDAPSourceConnectionRequest {
66
+ return PatchedGroupLDAPSourceConnectionRequestToJSONTyped(json, false);
67
+ }
68
+
69
+ export function PatchedGroupLDAPSourceConnectionRequestToJSONTyped(value?: PatchedGroupLDAPSourceConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'group': value['group'],
77
+ 'source': value['source'],
78
+ 'identifier': value['identifier'],
79
+ };
80
+ }
81
+
@@ -49,6 +49,18 @@ export interface PatchedSettingsRequest {
49
49
  * @memberof PatchedSettingsRequest
50
50
  */
51
51
  eventRetention?: string;
52
+ /**
53
+ * Reputation cannot decrease lower than this value. Zero or negative.
54
+ * @type {number}
55
+ * @memberof PatchedSettingsRequest
56
+ */
57
+ reputationLowerLimit?: number;
58
+ /**
59
+ * Reputation cannot increase higher than this value. Zero or positive.
60
+ * @type {number}
61
+ * @memberof PatchedSettingsRequest
62
+ */
63
+ reputationUpperLimit?: number;
52
64
  /**
53
65
  * The option configures the footer links on the flow executor pages.
54
66
  * @type {any}
@@ -109,6 +121,8 @@ export function PatchedSettingsRequestFromJSONTyped(json: any, ignoreDiscriminat
109
121
  'defaultUserChangeEmail': json['default_user_change_email'] == null ? undefined : json['default_user_change_email'],
110
122
  'defaultUserChangeUsername': json['default_user_change_username'] == null ? undefined : json['default_user_change_username'],
111
123
  'eventRetention': json['event_retention'] == null ? undefined : json['event_retention'],
124
+ 'reputationLowerLimit': json['reputation_lower_limit'] == null ? undefined : json['reputation_lower_limit'],
125
+ 'reputationUpperLimit': json['reputation_upper_limit'] == null ? undefined : json['reputation_upper_limit'],
112
126
  'footerLinks': json['footer_links'] == null ? undefined : json['footer_links'],
113
127
  'gdprCompliance': json['gdpr_compliance'] == null ? undefined : json['gdpr_compliance'],
114
128
  'impersonation': json['impersonation'] == null ? undefined : json['impersonation'],
@@ -134,6 +148,8 @@ export function PatchedSettingsRequestToJSONTyped(value?: PatchedSettingsRequest
134
148
  'default_user_change_email': value['defaultUserChangeEmail'],
135
149
  'default_user_change_username': value['defaultUserChangeUsername'],
136
150
  'event_retention': value['eventRetention'],
151
+ 'reputation_lower_limit': value['reputationLowerLimit'],
152
+ 'reputation_upper_limit': value['reputationUpperLimit'],
137
153
  'footer_links': value['footerLinks'],
138
154
  'gdpr_compliance': value['gdprCompliance'],
139
155
  'impersonation': value['impersonation'],
@@ -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: 2025.2.4
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 { mapValues } from '../runtime';
16
+ /**
17
+ * User source connection
18
+ * @export
19
+ * @interface PatchedUserLDAPSourceConnectionRequest
20
+ */
21
+ export interface PatchedUserLDAPSourceConnectionRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof PatchedUserLDAPSourceConnectionRequest
26
+ */
27
+ user?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PatchedUserLDAPSourceConnectionRequest
32
+ */
33
+ source?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedUserLDAPSourceConnectionRequest
38
+ */
39
+ identifier?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PatchedUserLDAPSourceConnectionRequest interface.
44
+ */
45
+ export function instanceOfPatchedUserLDAPSourceConnectionRequest(value: object): value is PatchedUserLDAPSourceConnectionRequest {
46
+ return true;
47
+ }
48
+
49
+ export function PatchedUserLDAPSourceConnectionRequestFromJSON(json: any): PatchedUserLDAPSourceConnectionRequest {
50
+ return PatchedUserLDAPSourceConnectionRequestFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function PatchedUserLDAPSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserLDAPSourceConnectionRequest {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'user': json['user'] == null ? undefined : json['user'],
60
+ 'source': json['source'] == null ? undefined : json['source'],
61
+ 'identifier': json['identifier'] == null ? undefined : json['identifier'],
62
+ };
63
+ }
64
+
65
+ export function PatchedUserLDAPSourceConnectionRequestToJSON(json: any): PatchedUserLDAPSourceConnectionRequest {
66
+ return PatchedUserLDAPSourceConnectionRequestToJSONTyped(json, false);
67
+ }
68
+
69
+ export function PatchedUserLDAPSourceConnectionRequestToJSONTyped(value?: PatchedUserLDAPSourceConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'user': value['user'],
77
+ 'source': value['source'],
78
+ 'identifier': value['identifier'],
79
+ };
80
+ }
81
+