@goauthentik/api 2023.5.3-1685646044 → 2023.5.3-1686600706

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 (57) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/apis/AdminApi.d.ts +8 -0
  3. package/dist/apis/AdminApi.js +28 -0
  4. package/dist/apis/PoliciesApi.d.ts +1 -0
  5. package/dist/apis/PoliciesApi.js +3 -0
  6. package/dist/apis/SourcesApi.d.ts +2 -0
  7. package/dist/apis/SourcesApi.js +6 -0
  8. package/dist/esm/apis/AdminApi.d.ts +8 -0
  9. package/dist/esm/apis/AdminApi.js +28 -0
  10. package/dist/esm/apis/PoliciesApi.d.ts +1 -0
  11. package/dist/esm/apis/PoliciesApi.js +3 -0
  12. package/dist/esm/apis/SourcesApi.d.ts +2 -0
  13. package/dist/esm/apis/SourcesApi.js +6 -0
  14. package/dist/esm/models/EventMatcherPolicy.d.ts +7 -0
  15. package/dist/esm/models/EventMatcherPolicy.js +3 -0
  16. package/dist/esm/models/EventMatcherPolicyRequest.d.ts +7 -0
  17. package/dist/esm/models/EventMatcherPolicyRequest.js +3 -0
  18. package/dist/esm/models/LDAPSource.d.ts +12 -0
  19. package/dist/esm/models/LDAPSource.js +4 -0
  20. package/dist/esm/models/LDAPSourceRequest.d.ts +12 -0
  21. package/dist/esm/models/LDAPSourceRequest.js +4 -0
  22. package/dist/esm/models/ModelEnum.d.ts +161 -0
  23. package/dist/esm/models/ModelEnum.js +168 -0
  24. package/dist/esm/models/PatchedEventMatcherPolicyRequest.d.ts +7 -0
  25. package/dist/esm/models/PatchedEventMatcherPolicyRequest.js +3 -0
  26. package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +12 -0
  27. package/dist/esm/models/PatchedLDAPSourceRequest.js +4 -0
  28. package/dist/esm/models/index.d.ts +1 -0
  29. package/dist/esm/models/index.js +1 -0
  30. package/dist/models/EventMatcherPolicy.d.ts +7 -0
  31. package/dist/models/EventMatcherPolicy.js +3 -0
  32. package/dist/models/EventMatcherPolicyRequest.d.ts +7 -0
  33. package/dist/models/EventMatcherPolicyRequest.js +3 -0
  34. package/dist/models/LDAPSource.d.ts +12 -0
  35. package/dist/models/LDAPSource.js +4 -0
  36. package/dist/models/LDAPSourceRequest.d.ts +12 -0
  37. package/dist/models/LDAPSourceRequest.js +4 -0
  38. package/dist/models/ModelEnum.d.ts +161 -0
  39. package/dist/models/ModelEnum.js +174 -0
  40. package/dist/models/PatchedEventMatcherPolicyRequest.d.ts +7 -0
  41. package/dist/models/PatchedEventMatcherPolicyRequest.js +3 -0
  42. package/dist/models/PatchedLDAPSourceRequest.d.ts +12 -0
  43. package/dist/models/PatchedLDAPSourceRequest.js +4 -0
  44. package/dist/models/index.d.ts +1 -0
  45. package/dist/models/index.js +1 -0
  46. package/package.json +1 -1
  47. package/src/apis/AdminApi.ts +30 -0
  48. package/src/apis/PoliciesApi.ts +5 -0
  49. package/src/apis/SourcesApi.ts +10 -0
  50. package/src/models/EventMatcherPolicy.ts +14 -0
  51. package/src/models/EventMatcherPolicyRequest.ts +14 -0
  52. package/src/models/LDAPSource.ts +16 -0
  53. package/src/models/LDAPSourceRequest.ts +16 -0
  54. package/src/models/ModelEnum.ts +176 -0
  55. package/src/models/PatchedEventMatcherPolicyRequest.ts +14 -0
  56. package/src/models/PatchedLDAPSourceRequest.ts +16 -0
  57. package/src/models/index.ts +1 -0
@@ -0,0 +1,176 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.5.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * * `authentik_crypto.certificatekeypair` - Certificate-Key Pair
18
+ * * `authentik_events.event` - Event
19
+ * * `authentik_events.notificationtransport` - Notification Transport
20
+ * * `authentik_events.notification` - Notification
21
+ * * `authentik_events.notificationrule` - Notification Rule
22
+ * * `authentik_events.notificationwebhookmapping` - Webhook Mapping
23
+ * * `authentik_flows.flow` - Flow
24
+ * * `authentik_flows.flowstagebinding` - Flow Stage Binding
25
+ * * `authentik_outposts.dockerserviceconnection` - Docker Service-Connection
26
+ * * `authentik_outposts.kubernetesserviceconnection` - Kubernetes Service-Connection
27
+ * * `authentik_outposts.outpost` - outpost
28
+ * * `authentik_policies_dummy.dummypolicy` - Dummy Policy
29
+ * * `authentik_policies_event_matcher.eventmatcherpolicy` - Event Matcher Policy
30
+ * * `authentik_policies_expiry.passwordexpirypolicy` - Password Expiry Policy
31
+ * * `authentik_policies_expression.expressionpolicy` - Expression Policy
32
+ * * `authentik_policies_password.passwordpolicy` - Password Policy
33
+ * * `authentik_policies_reputation.reputationpolicy` - Reputation Policy
34
+ * * `authentik_policies_reputation.reputation` - reputation
35
+ * * `authentik_policies.policybinding` - Policy Binding
36
+ * * `authentik_providers_ldap.ldapprovider` - LDAP Provider
37
+ * * `authentik_providers_oauth2.scopemapping` - Scope Mapping
38
+ * * `authentik_providers_oauth2.oauth2provider` - OAuth2/OpenID Provider
39
+ * * `authentik_providers_oauth2.authorizationcode` - Authorization Code
40
+ * * `authentik_providers_oauth2.accesstoken` - OAuth2 Access Token
41
+ * * `authentik_providers_oauth2.refreshtoken` - OAuth2 Refresh Token
42
+ * * `authentik_providers_proxy.proxyprovider` - Proxy Provider
43
+ * * `authentik_providers_radius.radiusprovider` - Radius Provider
44
+ * * `authentik_providers_saml.samlprovider` - SAML Provider
45
+ * * `authentik_providers_saml.samlpropertymapping` - SAML Property Mapping
46
+ * * `authentik_providers_scim.scimprovider` - SCIM Provider
47
+ * * `authentik_providers_scim.scimmapping` - SCIM Mapping
48
+ * * `authentik_sources_ldap.ldapsource` - LDAP Source
49
+ * * `authentik_sources_ldap.ldappropertymapping` - LDAP Property Mapping
50
+ * * `authentik_sources_oauth.oauthsource` - OAuth Source
51
+ * * `authentik_sources_oauth.useroauthsourceconnection` - User OAuth Source Connection
52
+ * * `authentik_sources_plex.plexsource` - Plex Source
53
+ * * `authentik_sources_plex.plexsourceconnection` - User Plex Source Connection
54
+ * * `authentik_sources_saml.samlsource` - SAML Source
55
+ * * `authentik_sources_saml.usersamlsourceconnection` - User SAML Source Connection
56
+ * * `authentik_stages_authenticator_duo.authenticatorduostage` - Duo Authenticator Setup Stage
57
+ * * `authentik_stages_authenticator_duo.duodevice` - Duo Device
58
+ * * `authentik_stages_authenticator_sms.authenticatorsmsstage` - SMS Authenticator Setup Stage
59
+ * * `authentik_stages_authenticator_sms.smsdevice` - SMS Device
60
+ * * `authentik_stages_authenticator_static.authenticatorstaticstage` - Static Authenticator Stage
61
+ * * `authentik_stages_authenticator_totp.authenticatortotpstage` - TOTP Authenticator Setup Stage
62
+ * * `authentik_stages_authenticator_validate.authenticatorvalidatestage` - Authenticator Validation Stage
63
+ * * `authentik_stages_authenticator_webauthn.authenticatewebauthnstage` - WebAuthn Authenticator Setup Stage
64
+ * * `authentik_stages_authenticator_webauthn.webauthndevice` - WebAuthn Device
65
+ * * `authentik_stages_captcha.captchastage` - Captcha Stage
66
+ * * `authentik_stages_consent.consentstage` - Consent Stage
67
+ * * `authentik_stages_consent.userconsent` - User Consent
68
+ * * `authentik_stages_deny.denystage` - Deny Stage
69
+ * * `authentik_stages_dummy.dummystage` - Dummy Stage
70
+ * * `authentik_stages_email.emailstage` - Email Stage
71
+ * * `authentik_stages_identification.identificationstage` - Identification Stage
72
+ * * `authentik_stages_invitation.invitationstage` - Invitation Stage
73
+ * * `authentik_stages_invitation.invitation` - Invitation
74
+ * * `authentik_stages_password.passwordstage` - Password Stage
75
+ * * `authentik_stages_prompt.prompt` - Prompt
76
+ * * `authentik_stages_prompt.promptstage` - Prompt Stage
77
+ * * `authentik_stages_user_delete.userdeletestage` - User Delete Stage
78
+ * * `authentik_stages_user_login.userloginstage` - User Login Stage
79
+ * * `authentik_stages_user_logout.userlogoutstage` - User Logout Stage
80
+ * * `authentik_stages_user_write.userwritestage` - User Write Stage
81
+ * * `authentik_tenants.tenant` - Tenant
82
+ * * `authentik_blueprints.blueprintinstance` - Blueprint Instance
83
+ * * `authentik_core.group` - group
84
+ * * `authentik_core.user` - User
85
+ * * `authentik_core.application` - Application
86
+ * * `authentik_core.token` - Token
87
+ * @export
88
+ */
89
+ export const ModelEnum = {
90
+ CryptoCertificatekeypair: 'authentik_crypto.certificatekeypair',
91
+ EventsEvent: 'authentik_events.event',
92
+ EventsNotificationtransport: 'authentik_events.notificationtransport',
93
+ EventsNotification: 'authentik_events.notification',
94
+ EventsNotificationrule: 'authentik_events.notificationrule',
95
+ EventsNotificationwebhookmapping: 'authentik_events.notificationwebhookmapping',
96
+ FlowsFlow: 'authentik_flows.flow',
97
+ FlowsFlowstagebinding: 'authentik_flows.flowstagebinding',
98
+ OutpostsDockerserviceconnection: 'authentik_outposts.dockerserviceconnection',
99
+ OutpostsKubernetesserviceconnection: 'authentik_outposts.kubernetesserviceconnection',
100
+ OutpostsOutpost: 'authentik_outposts.outpost',
101
+ PoliciesDummyDummypolicy: 'authentik_policies_dummy.dummypolicy',
102
+ PoliciesEventMatcherEventmatcherpolicy: 'authentik_policies_event_matcher.eventmatcherpolicy',
103
+ PoliciesExpiryPasswordexpirypolicy: 'authentik_policies_expiry.passwordexpirypolicy',
104
+ PoliciesExpressionExpressionpolicy: 'authentik_policies_expression.expressionpolicy',
105
+ PoliciesPasswordPasswordpolicy: 'authentik_policies_password.passwordpolicy',
106
+ PoliciesReputationReputationpolicy: 'authentik_policies_reputation.reputationpolicy',
107
+ PoliciesReputationReputation: 'authentik_policies_reputation.reputation',
108
+ PoliciesPolicybinding: 'authentik_policies.policybinding',
109
+ ProvidersLdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
110
+ ProvidersOauth2Scopemapping: 'authentik_providers_oauth2.scopemapping',
111
+ ProvidersOauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
112
+ ProvidersOauth2Authorizationcode: 'authentik_providers_oauth2.authorizationcode',
113
+ ProvidersOauth2Accesstoken: 'authentik_providers_oauth2.accesstoken',
114
+ ProvidersOauth2Refreshtoken: 'authentik_providers_oauth2.refreshtoken',
115
+ ProvidersProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
116
+ ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
117
+ ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
118
+ ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
119
+ ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
120
+ ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
121
+ SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
122
+ SourcesLdapLdappropertymapping: 'authentik_sources_ldap.ldappropertymapping',
123
+ SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
124
+ SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
125
+ SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
126
+ SourcesPlexPlexsourceconnection: 'authentik_sources_plex.plexsourceconnection',
127
+ SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
128
+ SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
129
+ StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
130
+ StagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
131
+ StagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
132
+ StagesAuthenticatorSmsSmsdevice: 'authentik_stages_authenticator_sms.smsdevice',
133
+ StagesAuthenticatorStaticAuthenticatorstaticstage: 'authentik_stages_authenticator_static.authenticatorstaticstage',
134
+ StagesAuthenticatorTotpAuthenticatortotpstage: 'authentik_stages_authenticator_totp.authenticatortotpstage',
135
+ StagesAuthenticatorValidateAuthenticatorvalidatestage: 'authentik_stages_authenticator_validate.authenticatorvalidatestage',
136
+ StagesAuthenticatorWebauthnAuthenticatewebauthnstage: 'authentik_stages_authenticator_webauthn.authenticatewebauthnstage',
137
+ StagesAuthenticatorWebauthnWebauthndevice: 'authentik_stages_authenticator_webauthn.webauthndevice',
138
+ StagesCaptchaCaptchastage: 'authentik_stages_captcha.captchastage',
139
+ StagesConsentConsentstage: 'authentik_stages_consent.consentstage',
140
+ StagesConsentUserconsent: 'authentik_stages_consent.userconsent',
141
+ StagesDenyDenystage: 'authentik_stages_deny.denystage',
142
+ StagesDummyDummystage: 'authentik_stages_dummy.dummystage',
143
+ StagesEmailEmailstage: 'authentik_stages_email.emailstage',
144
+ StagesIdentificationIdentificationstage: 'authentik_stages_identification.identificationstage',
145
+ StagesInvitationInvitationstage: 'authentik_stages_invitation.invitationstage',
146
+ StagesInvitationInvitation: 'authentik_stages_invitation.invitation',
147
+ StagesPasswordPasswordstage: 'authentik_stages_password.passwordstage',
148
+ StagesPromptPrompt: 'authentik_stages_prompt.prompt',
149
+ StagesPromptPromptstage: 'authentik_stages_prompt.promptstage',
150
+ StagesUserDeleteUserdeletestage: 'authentik_stages_user_delete.userdeletestage',
151
+ StagesUserLoginUserloginstage: 'authentik_stages_user_login.userloginstage',
152
+ StagesUserLogoutUserlogoutstage: 'authentik_stages_user_logout.userlogoutstage',
153
+ StagesUserWriteUserwritestage: 'authentik_stages_user_write.userwritestage',
154
+ TenantsTenant: 'authentik_tenants.tenant',
155
+ BlueprintsBlueprintinstance: 'authentik_blueprints.blueprintinstance',
156
+ CoreGroup: 'authentik_core.group',
157
+ CoreUser: 'authentik_core.user',
158
+ CoreApplication: 'authentik_core.application',
159
+ CoreToken: 'authentik_core.token',
160
+ UnknownDefaultOpenApi: '11184809'
161
+ } as const;
162
+ export type ModelEnum = typeof ModelEnum[keyof typeof ModelEnum];
163
+
164
+
165
+ export function ModelEnumFromJSON(json: any): ModelEnum {
166
+ return ModelEnumFromJSONTyped(json, false);
167
+ }
168
+
169
+ export function ModelEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelEnum {
170
+ return json as ModelEnum;
171
+ }
172
+
173
+ export function ModelEnumToJSON(value?: ModelEnum | null): any {
174
+ return value as any;
175
+ }
176
+
@@ -25,6 +25,12 @@ import {
25
25
  EventActionsFromJSONTyped,
26
26
  EventActionsToJSON,
27
27
  } from './EventActions';
28
+ import type { ModelEnum } from './ModelEnum';
29
+ import {
30
+ ModelEnumFromJSON,
31
+ ModelEnumFromJSONTyped,
32
+ ModelEnumToJSON,
33
+ } from './ModelEnum';
28
34
 
29
35
  /**
30
36
  * Event Matcher Policy Serializer
@@ -62,6 +68,12 @@ export interface PatchedEventMatcherPolicyRequest {
62
68
  * @memberof PatchedEventMatcherPolicyRequest
63
69
  */
64
70
  app?: AppEnum;
71
+ /**
72
+ *
73
+ * @type {ModelEnum}
74
+ * @memberof PatchedEventMatcherPolicyRequest
75
+ */
76
+ model?: ModelEnum;
65
77
  }
66
78
 
67
79
  /**
@@ -88,6 +100,7 @@ export function PatchedEventMatcherPolicyRequestFromJSONTyped(json: any, ignoreD
88
100
  'action': !exists(json, 'action') ? undefined : EventActionsFromJSON(json['action']),
89
101
  'clientIp': !exists(json, 'client_ip') ? undefined : json['client_ip'],
90
102
  'app': !exists(json, 'app') ? undefined : AppEnumFromJSON(json['app']),
103
+ 'model': !exists(json, 'model') ? undefined : ModelEnumFromJSON(json['model']),
91
104
  };
92
105
  }
93
106
 
@@ -105,6 +118,7 @@ export function PatchedEventMatcherPolicyRequestToJSON(value?: PatchedEventMatch
105
118
  'action': EventActionsToJSON(value.action),
106
119
  'client_ip': value.clientIp,
107
120
  'app': AppEnumToJSON(value.app),
121
+ 'model': ModelEnumToJSON(value.model),
108
122
  };
109
123
  }
110
124
 
@@ -92,6 +92,12 @@ export interface PatchedLDAPSourceRequest {
92
92
  * @memberof PatchedLDAPSourceRequest
93
93
  */
94
94
  peerCertificate?: string | null;
95
+ /**
96
+ * Client certificate to authenticate against the LDAP Server's Certificate.
97
+ * @type {string}
98
+ * @memberof PatchedLDAPSourceRequest
99
+ */
100
+ clientCertificate?: string | null;
95
101
  /**
96
102
  *
97
103
  * @type {string}
@@ -110,6 +116,12 @@ export interface PatchedLDAPSourceRequest {
110
116
  * @memberof PatchedLDAPSourceRequest
111
117
  */
112
118
  startTls?: boolean;
119
+ /**
120
+ *
121
+ * @type {boolean}
122
+ * @memberof PatchedLDAPSourceRequest
123
+ */
124
+ sni?: boolean;
113
125
  /**
114
126
  *
115
127
  * @type {string}
@@ -219,9 +231,11 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
219
231
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
220
232
  'serverUri': !exists(json, 'server_uri') ? undefined : json['server_uri'],
221
233
  'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
234
+ 'clientCertificate': !exists(json, 'client_certificate') ? undefined : json['client_certificate'],
222
235
  'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
223
236
  'bindPassword': !exists(json, 'bind_password') ? undefined : json['bind_password'],
224
237
  'startTls': !exists(json, 'start_tls') ? undefined : json['start_tls'],
238
+ 'sni': !exists(json, 'sni') ? undefined : json['sni'],
225
239
  'baseDn': !exists(json, 'base_dn') ? undefined : json['base_dn'],
226
240
  'additionalUserDn': !exists(json, 'additional_user_dn') ? undefined : json['additional_user_dn'],
227
241
  'additionalGroupDn': !exists(json, 'additional_group_dn') ? undefined : json['additional_group_dn'],
@@ -257,9 +271,11 @@ export function PatchedLDAPSourceRequestToJSON(value?: PatchedLDAPSourceRequest
257
271
  'user_path_template': value.userPathTemplate,
258
272
  'server_uri': value.serverUri,
259
273
  'peer_certificate': value.peerCertificate,
274
+ 'client_certificate': value.clientCertificate,
260
275
  'bind_cn': value.bindCn,
261
276
  'bind_password': value.bindPassword,
262
277
  'start_tls': value.startTls,
278
+ 'sni': value.sni,
263
279
  'base_dn': value.baseDn,
264
280
  'additional_user_dn': value.additionalUserDn,
265
281
  'additional_group_dn': value.additionalGroupDn,
@@ -156,6 +156,7 @@ export * from './LoginChallengeTypes';
156
156
  export * from './LoginMetrics';
157
157
  export * from './LoginSource';
158
158
  export * from './Metadata';
159
+ export * from './ModelEnum';
159
160
  export * from './NameIdPolicyEnum';
160
161
  export * from './NotConfiguredActionEnum';
161
162
  export * from './Notification';