@goauthentik/api 2023.5.3-1687355411 → 2023.5.3-1687462221

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 (102) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/dist/apis/AdminApi.d.ts +0 -8
  3. package/dist/apis/AdminApi.js +0 -28
  4. package/dist/apis/CoreApi.d.ts +19 -0
  5. package/dist/apis/CoreApi.js +57 -0
  6. package/dist/apis/PoliciesApi.d.ts +0 -1
  7. package/dist/apis/PoliciesApi.js +0 -3
  8. package/dist/apis/SourcesApi.d.ts +0 -3
  9. package/dist/apis/SourcesApi.js +0 -9
  10. package/dist/esm/apis/AdminApi.d.ts +0 -8
  11. package/dist/esm/apis/AdminApi.js +0 -28
  12. package/dist/esm/apis/CoreApi.d.ts +19 -0
  13. package/dist/esm/apis/CoreApi.js +57 -0
  14. package/dist/esm/apis/PoliciesApi.d.ts +0 -1
  15. package/dist/esm/apis/PoliciesApi.js +0 -3
  16. package/dist/esm/apis/SourcesApi.d.ts +0 -3
  17. package/dist/esm/apis/SourcesApi.js +0 -9
  18. package/dist/esm/models/EventMatcherPolicy.d.ts +3 -10
  19. package/dist/esm/models/EventMatcherPolicy.js +0 -3
  20. package/dist/esm/models/EventMatcherPolicyRequest.d.ts +3 -10
  21. package/dist/esm/models/EventMatcherPolicyRequest.js +0 -3
  22. package/dist/esm/models/LDAPOutpostConfig.d.ts +2 -8
  23. package/dist/esm/models/LDAPOutpostConfig.js +0 -2
  24. package/dist/esm/models/LDAPProvider.d.ts +2 -8
  25. package/dist/esm/models/LDAPProvider.js +0 -2
  26. package/dist/esm/models/LDAPProviderRequest.d.ts +2 -8
  27. package/dist/esm/models/LDAPProviderRequest.js +0 -2
  28. package/dist/esm/models/LDAPSource.d.ts +0 -12
  29. package/dist/esm/models/LDAPSource.js +0 -4
  30. package/dist/esm/models/LDAPSourceRequest.d.ts +0 -12
  31. package/dist/esm/models/LDAPSourceRequest.js +0 -4
  32. package/dist/esm/models/PatchedEventMatcherPolicyRequest.d.ts +3 -10
  33. package/dist/esm/models/PatchedEventMatcherPolicyRequest.js +0 -3
  34. package/dist/esm/models/PatchedLDAPProviderRequest.d.ts +2 -8
  35. package/dist/esm/models/PatchedLDAPProviderRequest.js +0 -2
  36. package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +0 -12
  37. package/dist/esm/models/PatchedLDAPSourceRequest.js +0 -4
  38. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +1 -7
  39. package/dist/esm/models/PatchedSAMLSourceRequest.js +0 -2
  40. package/dist/esm/models/SAMLSource.d.ts +1 -7
  41. package/dist/esm/models/SAMLSource.js +0 -2
  42. package/dist/esm/models/SAMLSourceRequest.d.ts +1 -7
  43. package/dist/esm/models/SAMLSourceRequest.js +0 -2
  44. package/dist/esm/models/System.d.ts +0 -8
  45. package/dist/esm/models/System.js +0 -2
  46. package/dist/esm/models/index.d.ts +0 -1
  47. package/dist/esm/models/index.js +0 -1
  48. package/dist/models/EventMatcherPolicy.d.ts +3 -10
  49. package/dist/models/EventMatcherPolicy.js +0 -3
  50. package/dist/models/EventMatcherPolicyRequest.d.ts +3 -10
  51. package/dist/models/EventMatcherPolicyRequest.js +0 -3
  52. package/dist/models/LDAPOutpostConfig.d.ts +2 -8
  53. package/dist/models/LDAPOutpostConfig.js +0 -2
  54. package/dist/models/LDAPProvider.d.ts +2 -8
  55. package/dist/models/LDAPProvider.js +0 -2
  56. package/dist/models/LDAPProviderRequest.d.ts +2 -8
  57. package/dist/models/LDAPProviderRequest.js +0 -2
  58. package/dist/models/LDAPSource.d.ts +0 -12
  59. package/dist/models/LDAPSource.js +0 -4
  60. package/dist/models/LDAPSourceRequest.d.ts +0 -12
  61. package/dist/models/LDAPSourceRequest.js +0 -4
  62. package/dist/models/PatchedEventMatcherPolicyRequest.d.ts +3 -10
  63. package/dist/models/PatchedEventMatcherPolicyRequest.js +0 -3
  64. package/dist/models/PatchedLDAPProviderRequest.d.ts +2 -8
  65. package/dist/models/PatchedLDAPProviderRequest.js +0 -2
  66. package/dist/models/PatchedLDAPSourceRequest.d.ts +0 -12
  67. package/dist/models/PatchedLDAPSourceRequest.js +0 -4
  68. package/dist/models/PatchedSAMLSourceRequest.d.ts +1 -7
  69. package/dist/models/PatchedSAMLSourceRequest.js +0 -2
  70. package/dist/models/SAMLSource.d.ts +1 -7
  71. package/dist/models/SAMLSource.js +0 -2
  72. package/dist/models/SAMLSourceRequest.d.ts +1 -7
  73. package/dist/models/SAMLSourceRequest.js +0 -2
  74. package/dist/models/System.d.ts +0 -8
  75. package/dist/models/System.js +0 -2
  76. package/dist/models/index.d.ts +0 -1
  77. package/dist/models/index.js +0 -1
  78. package/package.json +1 -1
  79. package/src/apis/AdminApi.ts +0 -30
  80. package/src/apis/CoreApi.ts +66 -0
  81. package/src/apis/PoliciesApi.ts +0 -5
  82. package/src/apis/SourcesApi.ts +0 -15
  83. package/src/models/EventMatcherPolicy.ts +3 -17
  84. package/src/models/EventMatcherPolicyRequest.ts +3 -17
  85. package/src/models/LDAPOutpostConfig.ts +2 -10
  86. package/src/models/LDAPProvider.ts +2 -10
  87. package/src/models/LDAPProviderRequest.ts +2 -10
  88. package/src/models/LDAPSource.ts +0 -16
  89. package/src/models/LDAPSourceRequest.ts +0 -16
  90. package/src/models/PatchedEventMatcherPolicyRequest.ts +3 -17
  91. package/src/models/PatchedLDAPProviderRequest.ts +2 -10
  92. package/src/models/PatchedLDAPSourceRequest.ts +0 -16
  93. package/src/models/PatchedSAMLSourceRequest.ts +1 -9
  94. package/src/models/SAMLSource.ts +1 -9
  95. package/src/models/SAMLSourceRequest.ts +1 -9
  96. package/src/models/System.ts +0 -8
  97. package/src/models/index.ts +0 -1
  98. package/dist/esm/models/ModelEnum.d.ts +0 -161
  99. package/dist/esm/models/ModelEnum.js +0 -168
  100. package/dist/models/ModelEnum.d.ts +0 -161
  101. package/dist/models/ModelEnum.js +0 -174
  102. package/src/models/ModelEnum.ts +0 -176
@@ -119,13 +119,13 @@ export interface LDAPProvider {
119
119
  */
120
120
  tlsServerName?: string;
121
121
  /**
122
- * The start for uidNumbers, this number is added to the user.pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
122
+ * The start for uidNumbers, this number is added to the user.Pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
123
123
  * @type {number}
124
124
  * @memberof LDAPProvider
125
125
  */
126
126
  uidStartNumber?: number;
127
127
  /**
128
- * The start for gidNumbers, this number is added to a number generated from the group.pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
128
+ * The start for gidNumbers, this number is added to a number generated from the group.Pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
129
129
  * @type {number}
130
130
  * @memberof LDAPProvider
131
131
  */
@@ -148,12 +148,6 @@ export interface LDAPProvider {
148
148
  * @memberof LDAPProvider
149
149
  */
150
150
  bindMode?: LDAPAPIAccessMode;
151
- /**
152
- * When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.
153
- * @type {boolean}
154
- * @memberof LDAPProvider
155
- */
156
- mfaSupport?: boolean;
157
151
  }
158
152
  /**
159
153
  * Check if a given object implements the LDAPProvider interface.
@@ -67,7 +67,6 @@ function LDAPProviderFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'outpostSet': json['outpost_set'],
68
68
  'searchMode': !(0, runtime_1.exists)(json, 'search_mode') ? undefined : (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeFromJSON)(json['search_mode']),
69
69
  'bindMode': !(0, runtime_1.exists)(json, 'bind_mode') ? undefined : (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeFromJSON)(json['bind_mode']),
70
- 'mfaSupport': !(0, runtime_1.exists)(json, 'mfa_support') ? undefined : json['mfa_support'],
71
70
  };
72
71
  }
73
72
  exports.LDAPProviderFromJSONTyped = LDAPProviderFromJSONTyped;
@@ -91,7 +90,6 @@ function LDAPProviderToJSON(value) {
91
90
  'gid_start_number': value.gidStartNumber,
92
91
  'search_mode': (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeToJSON)(value.searchMode),
93
92
  'bind_mode': (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeToJSON)(value.bindMode),
94
- 'mfa_support': value.mfaSupport,
95
93
  };
96
94
  }
97
95
  exports.LDAPProviderToJSON = LDAPProviderToJSON;
@@ -65,13 +65,13 @@ export interface LDAPProviderRequest {
65
65
  */
66
66
  tlsServerName?: string;
67
67
  /**
68
- * The start for uidNumbers, this number is added to the user.pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
68
+ * The start for uidNumbers, this number is added to the user.Pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
69
69
  * @type {number}
70
70
  * @memberof LDAPProviderRequest
71
71
  */
72
72
  uidStartNumber?: number;
73
73
  /**
74
- * The start for gidNumbers, this number is added to a number generated from the group.pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
74
+ * The start for gidNumbers, this number is added to a number generated from the group.Pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
75
75
  * @type {number}
76
76
  * @memberof LDAPProviderRequest
77
77
  */
@@ -88,12 +88,6 @@ export interface LDAPProviderRequest {
88
88
  * @memberof LDAPProviderRequest
89
89
  */
90
90
  bindMode?: LDAPAPIAccessMode;
91
- /**
92
- * When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.
93
- * @type {boolean}
94
- * @memberof LDAPProviderRequest
95
- */
96
- mfaSupport?: boolean;
97
91
  }
98
92
  /**
99
93
  * Check if a given object implements the LDAPProviderRequest interface.
@@ -47,7 +47,6 @@ function LDAPProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'gidStartNumber': !(0, runtime_1.exists)(json, 'gid_start_number') ? undefined : json['gid_start_number'],
48
48
  'searchMode': !(0, runtime_1.exists)(json, 'search_mode') ? undefined : (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeFromJSON)(json['search_mode']),
49
49
  'bindMode': !(0, runtime_1.exists)(json, 'bind_mode') ? undefined : (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeFromJSON)(json['bind_mode']),
50
- 'mfaSupport': !(0, runtime_1.exists)(json, 'mfa_support') ? undefined : json['mfa_support'],
51
50
  };
52
51
  }
53
52
  exports.LDAPProviderRequestFromJSONTyped = LDAPProviderRequestFromJSONTyped;
@@ -71,7 +70,6 @@ function LDAPProviderRequestToJSON(value) {
71
70
  'gid_start_number': value.gidStartNumber,
72
71
  'search_mode': (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeToJSON)(value.searchMode),
73
72
  'bind_mode': (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeToJSON)(value.bindMode),
74
- 'mfa_support': value.mfaSupport,
75
73
  };
76
74
  }
77
75
  exports.LDAPProviderRequestToJSON = LDAPProviderRequestToJSON;
@@ -120,12 +120,6 @@ export interface LDAPSource {
120
120
  * @memberof LDAPSource
121
121
  */
122
122
  peerCertificate?: string | null;
123
- /**
124
- * Client certificate to authenticate against the LDAP Server's Certificate.
125
- * @type {string}
126
- * @memberof LDAPSource
127
- */
128
- clientCertificate?: string | null;
129
123
  /**
130
124
  *
131
125
  * @type {string}
@@ -138,12 +132,6 @@ export interface LDAPSource {
138
132
  * @memberof LDAPSource
139
133
  */
140
134
  startTls?: boolean;
141
- /**
142
- *
143
- * @type {boolean}
144
- * @memberof LDAPSource
145
- */
146
- sni?: boolean;
147
135
  /**
148
136
  *
149
137
  * @type {string}
@@ -62,10 +62,8 @@ function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'icon': json['icon'],
63
63
  'serverUri': json['server_uri'],
64
64
  'peerCertificate': !(0, runtime_1.exists)(json, 'peer_certificate') ? undefined : json['peer_certificate'],
65
- 'clientCertificate': !(0, runtime_1.exists)(json, 'client_certificate') ? undefined : json['client_certificate'],
66
65
  'bindCn': !(0, runtime_1.exists)(json, 'bind_cn') ? undefined : json['bind_cn'],
67
66
  'startTls': !(0, runtime_1.exists)(json, 'start_tls') ? undefined : json['start_tls'],
68
- 'sni': !(0, runtime_1.exists)(json, 'sni') ? undefined : json['sni'],
69
67
  'baseDn': json['base_dn'],
70
68
  'additionalUserDn': !(0, runtime_1.exists)(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
71
69
  'additionalGroupDn': !(0, runtime_1.exists)(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
@@ -100,10 +98,8 @@ function LDAPSourceToJSON(value) {
100
98
  'user_path_template': value.userPathTemplate,
101
99
  'server_uri': value.serverUri,
102
100
  'peer_certificate': value.peerCertificate,
103
- 'client_certificate': value.clientCertificate,
104
101
  'bind_cn': value.bindCn,
105
102
  'start_tls': value.startTls,
106
- 'sni': value.sni,
107
103
  'base_dn': value.baseDn,
108
104
  'additional_user_dn': value.additionalUserDn,
109
105
  'additional_group_dn': value.additionalGroupDn,
@@ -77,12 +77,6 @@ export interface LDAPSourceRequest {
77
77
  * @memberof LDAPSourceRequest
78
78
  */
79
79
  peerCertificate?: string | null;
80
- /**
81
- * Client certificate to authenticate against the LDAP Server's Certificate.
82
- * @type {string}
83
- * @memberof LDAPSourceRequest
84
- */
85
- clientCertificate?: string | null;
86
80
  /**
87
81
  *
88
82
  * @type {string}
@@ -101,12 +95,6 @@ export interface LDAPSourceRequest {
101
95
  * @memberof LDAPSourceRequest
102
96
  */
103
97
  startTls?: boolean;
104
- /**
105
- *
106
- * @type {boolean}
107
- * @memberof LDAPSourceRequest
108
- */
109
- sni?: boolean;
110
98
  /**
111
99
  *
112
100
  * @type {string}
@@ -48,11 +48,9 @@ function LDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
49
49
  'serverUri': json['server_uri'],
50
50
  'peerCertificate': !(0, runtime_1.exists)(json, 'peer_certificate') ? undefined : json['peer_certificate'],
51
- 'clientCertificate': !(0, runtime_1.exists)(json, 'client_certificate') ? undefined : json['client_certificate'],
52
51
  'bindCn': !(0, runtime_1.exists)(json, 'bind_cn') ? undefined : json['bind_cn'],
53
52
  'bindPassword': !(0, runtime_1.exists)(json, 'bind_password') ? undefined : json['bind_password'],
54
53
  'startTls': !(0, runtime_1.exists)(json, 'start_tls') ? undefined : json['start_tls'],
55
- 'sni': !(0, runtime_1.exists)(json, 'sni') ? undefined : json['sni'],
56
54
  'baseDn': json['base_dn'],
57
55
  'additionalUserDn': !(0, runtime_1.exists)(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
58
56
  'additionalGroupDn': !(0, runtime_1.exists)(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
@@ -87,11 +85,9 @@ function LDAPSourceRequestToJSON(value) {
87
85
  'user_path_template': value.userPathTemplate,
88
86
  'server_uri': value.serverUri,
89
87
  'peer_certificate': value.peerCertificate,
90
- 'client_certificate': value.clientCertificate,
91
88
  'bind_cn': value.bindCn,
92
89
  'bind_password': value.bindPassword,
93
90
  'start_tls': value.startTls,
94
- 'sni': value.sni,
95
91
  'base_dn': value.baseDn,
96
92
  'additional_user_dn': value.additionalUserDn,
97
93
  'additional_group_dn': value.additionalGroupDn,
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import type { AppEnum } from './AppEnum';
13
13
  import type { EventActions } from './EventActions';
14
- import type { ModelEnum } from './ModelEnum';
15
14
  /**
16
15
  * Event Matcher Policy Serializer
17
16
  * @export
@@ -35,25 +34,19 @@ export interface PatchedEventMatcherPolicyRequest {
35
34
  * @type {EventActions}
36
35
  * @memberof PatchedEventMatcherPolicyRequest
37
36
  */
38
- action?: EventActions | null;
37
+ action?: EventActions;
39
38
  /**
40
39
  * Matches Event's Client IP (strict matching, for network matching use an Expression Policy)
41
40
  * @type {string}
42
41
  * @memberof PatchedEventMatcherPolicyRequest
43
42
  */
44
- clientIp?: string | null;
43
+ clientIp?: string;
45
44
  /**
46
45
  *
47
46
  * @type {AppEnum}
48
47
  * @memberof PatchedEventMatcherPolicyRequest
49
48
  */
50
- app?: AppEnum | null;
51
- /**
52
- *
53
- * @type {ModelEnum}
54
- * @memberof PatchedEventMatcherPolicyRequest
55
- */
56
- model?: ModelEnum | null;
49
+ app?: AppEnum;
57
50
  }
58
51
  /**
59
52
  * Check if a given object implements the PatchedEventMatcherPolicyRequest interface.
@@ -17,7 +17,6 @@ exports.PatchedEventMatcherPolicyRequestToJSON = exports.PatchedEventMatcherPoli
17
17
  const runtime_1 = require("../runtime");
18
18
  const AppEnum_1 = require("./AppEnum");
19
19
  const EventActions_1 = require("./EventActions");
20
- const ModelEnum_1 = require("./ModelEnum");
21
20
  /**
22
21
  * Check if a given object implements the PatchedEventMatcherPolicyRequest interface.
23
22
  */
@@ -40,7 +39,6 @@ function PatchedEventMatcherPolicyRequestFromJSONTyped(json, ignoreDiscriminator
40
39
  'action': !(0, runtime_1.exists)(json, 'action') ? undefined : (0, EventActions_1.EventActionsFromJSON)(json['action']),
41
40
  'clientIp': !(0, runtime_1.exists)(json, 'client_ip') ? undefined : json['client_ip'],
42
41
  'app': !(0, runtime_1.exists)(json, 'app') ? undefined : (0, AppEnum_1.AppEnumFromJSON)(json['app']),
43
- 'model': !(0, runtime_1.exists)(json, 'model') ? undefined : (0, ModelEnum_1.ModelEnumFromJSON)(json['model']),
44
42
  };
45
43
  }
46
44
  exports.PatchedEventMatcherPolicyRequestFromJSONTyped = PatchedEventMatcherPolicyRequestFromJSONTyped;
@@ -57,7 +55,6 @@ function PatchedEventMatcherPolicyRequestToJSON(value) {
57
55
  'action': (0, EventActions_1.EventActionsToJSON)(value.action),
58
56
  'client_ip': value.clientIp,
59
57
  'app': (0, AppEnum_1.AppEnumToJSON)(value.app),
60
- 'model': (0, ModelEnum_1.ModelEnumToJSON)(value.model),
61
58
  };
62
59
  }
63
60
  exports.PatchedEventMatcherPolicyRequestToJSON = PatchedEventMatcherPolicyRequestToJSON;
@@ -65,13 +65,13 @@ export interface PatchedLDAPProviderRequest {
65
65
  */
66
66
  tlsServerName?: string;
67
67
  /**
68
- * The start for uidNumbers, this number is added to the user.pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
68
+ * The start for uidNumbers, this number is added to the user.Pk to make sure that the numbers aren't too low for POSIX users. Default is 2000 to ensure that we don't collide with local users uidNumber
69
69
  * @type {number}
70
70
  * @memberof PatchedLDAPProviderRequest
71
71
  */
72
72
  uidStartNumber?: number;
73
73
  /**
74
- * The start for gidNumbers, this number is added to a number generated from the group.pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
74
+ * The start for gidNumbers, this number is added to a number generated from the group.Pk to make sure that the numbers aren't too low for POSIX groups. Default is 4000 to ensure that we don't collide with local groups or users primary groups gidNumber
75
75
  * @type {number}
76
76
  * @memberof PatchedLDAPProviderRequest
77
77
  */
@@ -88,12 +88,6 @@ export interface PatchedLDAPProviderRequest {
88
88
  * @memberof PatchedLDAPProviderRequest
89
89
  */
90
90
  bindMode?: LDAPAPIAccessMode;
91
- /**
92
- * When enabled, code-based multi-factor authentication can be used by appending a semicolon and the TOTP code to the password. This should only be enabled if all users that will bind to this provider have a TOTP device configured, as otherwise a password may incorrectly be rejected if it contains a semicolon.
93
- * @type {boolean}
94
- * @memberof PatchedLDAPProviderRequest
95
- */
96
- mfaSupport?: boolean;
97
91
  }
98
92
  /**
99
93
  * Check if a given object implements the PatchedLDAPProviderRequest interface.
@@ -45,7 +45,6 @@ function PatchedLDAPProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'gidStartNumber': !(0, runtime_1.exists)(json, 'gid_start_number') ? undefined : json['gid_start_number'],
46
46
  'searchMode': !(0, runtime_1.exists)(json, 'search_mode') ? undefined : (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeFromJSON)(json['search_mode']),
47
47
  'bindMode': !(0, runtime_1.exists)(json, 'bind_mode') ? undefined : (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeFromJSON)(json['bind_mode']),
48
- 'mfaSupport': !(0, runtime_1.exists)(json, 'mfa_support') ? undefined : json['mfa_support'],
49
48
  };
50
49
  }
51
50
  exports.PatchedLDAPProviderRequestFromJSONTyped = PatchedLDAPProviderRequestFromJSONTyped;
@@ -69,7 +68,6 @@ function PatchedLDAPProviderRequestToJSON(value) {
69
68
  'gid_start_number': value.gidStartNumber,
70
69
  'search_mode': (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeToJSON)(value.searchMode),
71
70
  'bind_mode': (0, LDAPAPIAccessMode_1.LDAPAPIAccessModeToJSON)(value.bindMode),
72
- 'mfa_support': value.mfaSupport,
73
71
  };
74
72
  }
75
73
  exports.PatchedLDAPProviderRequestToJSON = PatchedLDAPProviderRequestToJSON;
@@ -77,12 +77,6 @@ export interface PatchedLDAPSourceRequest {
77
77
  * @memberof PatchedLDAPSourceRequest
78
78
  */
79
79
  peerCertificate?: string | null;
80
- /**
81
- * Client certificate to authenticate against the LDAP Server's Certificate.
82
- * @type {string}
83
- * @memberof PatchedLDAPSourceRequest
84
- */
85
- clientCertificate?: string | null;
86
80
  /**
87
81
  *
88
82
  * @type {string}
@@ -101,12 +95,6 @@ export interface PatchedLDAPSourceRequest {
101
95
  * @memberof PatchedLDAPSourceRequest
102
96
  */
103
97
  startTls?: boolean;
104
- /**
105
- *
106
- * @type {boolean}
107
- * @memberof PatchedLDAPSourceRequest
108
- */
109
- sni?: boolean;
110
98
  /**
111
99
  *
112
100
  * @type {string}
@@ -44,11 +44,9 @@ function PatchedLDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
45
45
  'serverUri': !(0, runtime_1.exists)(json, 'server_uri') ? undefined : json['server_uri'],
46
46
  'peerCertificate': !(0, runtime_1.exists)(json, 'peer_certificate') ? undefined : json['peer_certificate'],
47
- 'clientCertificate': !(0, runtime_1.exists)(json, 'client_certificate') ? undefined : json['client_certificate'],
48
47
  'bindCn': !(0, runtime_1.exists)(json, 'bind_cn') ? undefined : json['bind_cn'],
49
48
  'bindPassword': !(0, runtime_1.exists)(json, 'bind_password') ? undefined : json['bind_password'],
50
49
  'startTls': !(0, runtime_1.exists)(json, 'start_tls') ? undefined : json['start_tls'],
51
- 'sni': !(0, runtime_1.exists)(json, 'sni') ? undefined : json['sni'],
52
50
  'baseDn': !(0, runtime_1.exists)(json, 'base_dn') ? undefined : json['base_dn'],
53
51
  'additionalUserDn': !(0, runtime_1.exists)(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
54
52
  'additionalGroupDn': !(0, runtime_1.exists)(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
@@ -83,11 +81,9 @@ function PatchedLDAPSourceRequestToJSON(value) {
83
81
  'user_path_template': value.userPathTemplate,
84
82
  'server_uri': value.serverUri,
85
83
  'peer_certificate': value.peerCertificate,
86
- 'client_certificate': value.clientCertificate,
87
84
  'bind_cn': value.bindCn,
88
85
  'bind_password': value.bindPassword,
89
86
  'start_tls': value.startTls,
90
- 'sni': value.sni,
91
87
  'base_dn': value.baseDn,
92
88
  'additional_user_dn': value.additionalUserDn,
93
89
  'additional_group_dn': value.additionalGroupDn,
@@ -112,13 +112,7 @@ export interface PatchedSAMLSourceRequest {
112
112
  */
113
113
  bindingType?: BindingTypeEnum;
114
114
  /**
115
- * When selected, incoming assertion's Signatures will be validated against this certificate. To allow unsigned Requests, leave on default.
116
- * @type {string}
117
- * @memberof PatchedSAMLSourceRequest
118
- */
119
- verificationKp?: string | null;
120
- /**
121
- * Keypair used to sign outgoing Responses going to the Identity Provider.
115
+ * Keypair which is used to sign outgoing requests. Leave empty to disable signing.
122
116
  * @type {string}
123
117
  * @memberof PatchedSAMLSourceRequest
124
118
  */
@@ -53,7 +53,6 @@ function PatchedSAMLSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'allowIdpInitiated': !(0, runtime_1.exists)(json, 'allow_idp_initiated') ? undefined : json['allow_idp_initiated'],
54
54
  'nameIdPolicy': !(0, runtime_1.exists)(json, 'name_id_policy') ? undefined : (0, NameIdPolicyEnum_1.NameIdPolicyEnumFromJSON)(json['name_id_policy']),
55
55
  'bindingType': !(0, runtime_1.exists)(json, 'binding_type') ? undefined : (0, BindingTypeEnum_1.BindingTypeEnumFromJSON)(json['binding_type']),
56
- 'verificationKp': !(0, runtime_1.exists)(json, 'verification_kp') ? undefined : json['verification_kp'],
57
56
  'signingKp': !(0, runtime_1.exists)(json, 'signing_kp') ? undefined : json['signing_kp'],
58
57
  'digestAlgorithm': !(0, runtime_1.exists)(json, 'digest_algorithm') ? undefined : (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumFromJSON)(json['digest_algorithm']),
59
58
  'signatureAlgorithm': !(0, runtime_1.exists)(json, 'signature_algorithm') ? undefined : (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumFromJSON)(json['signature_algorithm']),
@@ -84,7 +83,6 @@ function PatchedSAMLSourceRequestToJSON(value) {
84
83
  'allow_idp_initiated': value.allowIdpInitiated,
85
84
  'name_id_policy': (0, NameIdPolicyEnum_1.NameIdPolicyEnumToJSON)(value.nameIdPolicy),
86
85
  'binding_type': (0, BindingTypeEnum_1.BindingTypeEnumToJSON)(value.bindingType),
87
- 'verification_kp': value.verificationKp,
88
86
  'signing_kp': value.signingKp,
89
87
  'digest_algorithm': (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumToJSON)(value.digestAlgorithm),
90
88
  'signature_algorithm': (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumToJSON)(value.signatureAlgorithm),
@@ -155,13 +155,7 @@ export interface SAMLSource {
155
155
  */
156
156
  bindingType?: BindingTypeEnum;
157
157
  /**
158
- * When selected, incoming assertion's Signatures will be validated against this certificate. To allow unsigned Requests, leave on default.
159
- * @type {string}
160
- * @memberof SAMLSource
161
- */
162
- verificationKp?: string | null;
163
- /**
164
- * Keypair used to sign outgoing Responses going to the Identity Provider.
158
+ * Keypair which is used to sign outgoing requests. Leave empty to disable signing.
165
159
  * @type {string}
166
160
  * @memberof SAMLSource
167
161
  */
@@ -71,7 +71,6 @@ function SAMLSourceFromJSONTyped(json, ignoreDiscriminator) {
71
71
  'allowIdpInitiated': !(0, runtime_1.exists)(json, 'allow_idp_initiated') ? undefined : json['allow_idp_initiated'],
72
72
  'nameIdPolicy': !(0, runtime_1.exists)(json, 'name_id_policy') ? undefined : (0, NameIdPolicyEnum_1.NameIdPolicyEnumFromJSON)(json['name_id_policy']),
73
73
  'bindingType': !(0, runtime_1.exists)(json, 'binding_type') ? undefined : (0, BindingTypeEnum_1.BindingTypeEnumFromJSON)(json['binding_type']),
74
- 'verificationKp': !(0, runtime_1.exists)(json, 'verification_kp') ? undefined : json['verification_kp'],
75
74
  'signingKp': !(0, runtime_1.exists)(json, 'signing_kp') ? undefined : json['signing_kp'],
76
75
  'digestAlgorithm': !(0, runtime_1.exists)(json, 'digest_algorithm') ? undefined : (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumFromJSON)(json['digest_algorithm']),
77
76
  'signatureAlgorithm': !(0, runtime_1.exists)(json, 'signature_algorithm') ? undefined : (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumFromJSON)(json['signature_algorithm']),
@@ -102,7 +101,6 @@ function SAMLSourceToJSON(value) {
102
101
  'allow_idp_initiated': value.allowIdpInitiated,
103
102
  'name_id_policy': (0, NameIdPolicyEnum_1.NameIdPolicyEnumToJSON)(value.nameIdPolicy),
104
103
  'binding_type': (0, BindingTypeEnum_1.BindingTypeEnumToJSON)(value.bindingType),
105
- 'verification_kp': value.verificationKp,
106
104
  'signing_kp': value.signingKp,
107
105
  'digest_algorithm': (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumToJSON)(value.digestAlgorithm),
108
106
  'signature_algorithm': (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumToJSON)(value.signatureAlgorithm),
@@ -112,13 +112,7 @@ export interface SAMLSourceRequest {
112
112
  */
113
113
  bindingType?: BindingTypeEnum;
114
114
  /**
115
- * When selected, incoming assertion's Signatures will be validated against this certificate. To allow unsigned Requests, leave on default.
116
- * @type {string}
117
- * @memberof SAMLSourceRequest
118
- */
119
- verificationKp?: string | null;
120
- /**
121
- * Keypair used to sign outgoing Responses going to the Identity Provider.
115
+ * Keypair which is used to sign outgoing requests. Leave empty to disable signing.
122
116
  * @type {string}
123
117
  * @memberof SAMLSourceRequest
124
118
  */
@@ -57,7 +57,6 @@ function SAMLSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'allowIdpInitiated': !(0, runtime_1.exists)(json, 'allow_idp_initiated') ? undefined : json['allow_idp_initiated'],
58
58
  'nameIdPolicy': !(0, runtime_1.exists)(json, 'name_id_policy') ? undefined : (0, NameIdPolicyEnum_1.NameIdPolicyEnumFromJSON)(json['name_id_policy']),
59
59
  'bindingType': !(0, runtime_1.exists)(json, 'binding_type') ? undefined : (0, BindingTypeEnum_1.BindingTypeEnumFromJSON)(json['binding_type']),
60
- 'verificationKp': !(0, runtime_1.exists)(json, 'verification_kp') ? undefined : json['verification_kp'],
61
60
  'signingKp': !(0, runtime_1.exists)(json, 'signing_kp') ? undefined : json['signing_kp'],
62
61
  'digestAlgorithm': !(0, runtime_1.exists)(json, 'digest_algorithm') ? undefined : (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumFromJSON)(json['digest_algorithm']),
63
62
  'signatureAlgorithm': !(0, runtime_1.exists)(json, 'signature_algorithm') ? undefined : (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumFromJSON)(json['signature_algorithm']),
@@ -88,7 +87,6 @@ function SAMLSourceRequestToJSON(value) {
88
87
  'allow_idp_initiated': value.allowIdpInitiated,
89
88
  'name_id_policy': (0, NameIdPolicyEnum_1.NameIdPolicyEnumToJSON)(value.nameIdPolicy),
90
89
  'binding_type': (0, BindingTypeEnum_1.BindingTypeEnumToJSON)(value.bindingType),
91
- 'verification_kp': value.verificationKp,
92
90
  'signing_kp': value.signingKp,
93
91
  'digest_algorithm': (0, DigestAlgorithmEnum_1.DigestAlgorithmEnumToJSON)(value.digestAlgorithm),
94
92
  'signature_algorithm': (0, SignatureAlgorithmEnum_1.SignatureAlgorithmEnumToJSON)(value.signatureAlgorithm),
@@ -16,14 +16,6 @@ import type { SystemRuntime } from './SystemRuntime';
16
16
  * @interface System
17
17
  */
18
18
  export interface System {
19
- /**
20
- * Get Environment
21
- * @type {{ [key: string]: string; }}
22
- * @memberof System
23
- */
24
- readonly env: {
25
- [key: string]: string;
26
- };
27
19
  /**
28
20
  * Get HTTP Request headers
29
21
  * @type {{ [key: string]: string; }}
@@ -20,7 +20,6 @@ const SystemRuntime_1 = require("./SystemRuntime");
20
20
  */
21
21
  function instanceOfSystem(value) {
22
22
  let isInstance = true;
23
- isInstance = isInstance && "env" in value;
24
23
  isInstance = isInstance && "httpHeaders" in value;
25
24
  isInstance = isInstance && "httpHost" in value;
26
25
  isInstance = isInstance && "httpIsSecure" in value;
@@ -40,7 +39,6 @@ function SystemFromJSONTyped(json, ignoreDiscriminator) {
40
39
  return json;
41
40
  }
42
41
  return {
43
- 'env': json['env'],
44
42
  'httpHeaders': json['http_headers'],
45
43
  'httpHost': json['http_host'],
46
44
  'httpIsSecure': json['http_is_secure'],
@@ -154,7 +154,6 @@ export * from './LoginChallengeTypes';
154
154
  export * from './LoginMetrics';
155
155
  export * from './LoginSource';
156
156
  export * from './Metadata';
157
- export * from './ModelEnum';
158
157
  export * from './NameIdPolicyEnum';
159
158
  export * from './NotConfiguredActionEnum';
160
159
  export * from './Notification';
@@ -172,7 +172,6 @@ __exportStar(require("./LoginChallengeTypes"), exports);
172
172
  __exportStar(require("./LoginMetrics"), exports);
173
173
  __exportStar(require("./LoginSource"), exports);
174
174
  __exportStar(require("./Metadata"), exports);
175
- __exportStar(require("./ModelEnum"), exports);
176
175
  __exportStar(require("./NameIdPolicyEnum"), exports);
177
176
  __exportStar(require("./NotConfiguredActionEnum"), exports);
178
177
  __exportStar(require("./Notification"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.5.3-1687355411",
3
+ "version": "2023.5.3-1687462221",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -116,36 +116,6 @@ export class AdminApi extends runtime.BaseAPI {
116
116
  return await response.value();
117
117
  }
118
118
 
119
- /**
120
- * Read-only view list all installed models
121
- */
122
- async adminModelsListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<App>>> {
123
- const queryParameters: any = {};
124
-
125
- const headerParameters: runtime.HTTPHeaders = {};
126
-
127
- if (this.configuration && this.configuration.apiKey) {
128
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
129
- }
130
-
131
- const response = await this.request({
132
- path: `/admin/models/`,
133
- method: 'GET',
134
- headers: headerParameters,
135
- query: queryParameters,
136
- }, initOverrides);
137
-
138
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AppFromJSON));
139
- }
140
-
141
- /**
142
- * Read-only view list all installed models
143
- */
144
- async adminModelsList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<App>> {
145
- const response = await this.adminModelsListRaw(initOverrides);
146
- return await response.value();
147
- }
148
-
149
119
  /**
150
120
  * Get system information.
151
121
  */
@@ -397,6 +397,10 @@ export interface CoreUsersDestroyRequest {
397
397
  id: number;
398
398
  }
399
399
 
400
+ export interface CoreUsersImpersonateCreateRequest {
401
+ id: number;
402
+ }
403
+
400
404
  export interface CoreUsersListRequest {
401
405
  attributes?: string;
402
406
  email?: string;
@@ -2382,6 +2386,68 @@ export class CoreApi extends runtime.BaseAPI {
2382
2386
  await this.coreUsersDestroyRaw(requestParameters, initOverrides);
2383
2387
  }
2384
2388
 
2389
+ /**
2390
+ * Impersonate a user
2391
+ */
2392
+ async coreUsersImpersonateCreateRaw(requestParameters: CoreUsersImpersonateCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2393
+ if (requestParameters.id === null || requestParameters.id === undefined) {
2394
+ throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling coreUsersImpersonateCreate.');
2395
+ }
2396
+
2397
+ const queryParameters: any = {};
2398
+
2399
+ const headerParameters: runtime.HTTPHeaders = {};
2400
+
2401
+ if (this.configuration && this.configuration.apiKey) {
2402
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2403
+ }
2404
+
2405
+ const response = await this.request({
2406
+ path: `/core/users/{id}/impersonate/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
2407
+ method: 'POST',
2408
+ headers: headerParameters,
2409
+ query: queryParameters,
2410
+ }, initOverrides);
2411
+
2412
+ return new runtime.VoidApiResponse(response);
2413
+ }
2414
+
2415
+ /**
2416
+ * Impersonate a user
2417
+ */
2418
+ async coreUsersImpersonateCreate(requestParameters: CoreUsersImpersonateCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2419
+ await this.coreUsersImpersonateCreateRaw(requestParameters, initOverrides);
2420
+ }
2421
+
2422
+ /**
2423
+ * End Impersonation a user
2424
+ */
2425
+ async coreUsersImpersonateEndRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
2426
+ const queryParameters: any = {};
2427
+
2428
+ const headerParameters: runtime.HTTPHeaders = {};
2429
+
2430
+ if (this.configuration && this.configuration.apiKey) {
2431
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2432
+ }
2433
+
2434
+ const response = await this.request({
2435
+ path: `/core/users/impersonate_end/`,
2436
+ method: 'GET',
2437
+ headers: headerParameters,
2438
+ query: queryParameters,
2439
+ }, initOverrides);
2440
+
2441
+ return new runtime.VoidApiResponse(response);
2442
+ }
2443
+
2444
+ /**
2445
+ * End Impersonation a user
2446
+ */
2447
+ async coreUsersImpersonateEndRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
2448
+ await this.coreUsersImpersonateEndRetrieveRaw(initOverrides);
2449
+ }
2450
+
2385
2451
  /**
2386
2452
  * User Viewset
2387
2453
  */