@goauthentik/api 2023.8.3-1694716726 → 2023.8.3-1696335052

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 (41) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/dist/apis/CoreApi.d.ts +12 -1
  3. package/dist/apis/CoreApi.js +33 -0
  4. package/dist/esm/apis/CoreApi.d.ts +12 -1
  5. package/dist/esm/apis/CoreApi.js +34 -1
  6. package/dist/esm/models/AuthenticatorSMSStage.d.ts +1 -1
  7. package/dist/esm/models/AuthenticatorSMSStageRequest.d.ts +1 -1
  8. package/dist/esm/models/ModelRequest.d.ts +38 -0
  9. package/dist/esm/models/ModelRequest.js +67 -0
  10. package/dist/esm/models/PatchedAuthenticatorSMSStageRequest.d.ts +1 -1
  11. package/dist/esm/models/ProviderModelEnum.d.ts +33 -0
  12. package/dist/esm/models/ProviderModelEnum.js +40 -0
  13. package/dist/esm/models/TransactionApplicationRequest.d.ts +46 -0
  14. package/dist/esm/models/TransactionApplicationRequest.js +52 -0
  15. package/dist/esm/models/TransactionApplicationResponse.d.ts +37 -0
  16. package/dist/esm/models/TransactionApplicationResponse.js +46 -0
  17. package/dist/esm/models/index.d.ts +4 -0
  18. package/dist/esm/models/index.js +4 -0
  19. package/dist/models/AuthenticatorSMSStage.d.ts +1 -1
  20. package/dist/models/AuthenticatorSMSStageRequest.d.ts +1 -1
  21. package/dist/models/ModelRequest.d.ts +38 -0
  22. package/dist/models/ModelRequest.js +73 -0
  23. package/dist/models/PatchedAuthenticatorSMSStageRequest.d.ts +1 -1
  24. package/dist/models/ProviderModelEnum.d.ts +33 -0
  25. package/dist/models/ProviderModelEnum.js +46 -0
  26. package/dist/models/TransactionApplicationRequest.d.ts +46 -0
  27. package/dist/models/TransactionApplicationRequest.js +59 -0
  28. package/dist/models/TransactionApplicationResponse.d.ts +37 -0
  29. package/dist/models/TransactionApplicationResponse.js +53 -0
  30. package/dist/models/index.d.ts +4 -0
  31. package/dist/models/index.js +4 -0
  32. package/package.json +1 -1
  33. package/src/apis/CoreApi.ts +47 -0
  34. package/src/models/AuthenticatorSMSStage.ts +1 -1
  35. package/src/models/AuthenticatorSMSStageRequest.ts +1 -1
  36. package/src/models/ModelRequest.ts +116 -0
  37. package/src/models/PatchedAuthenticatorSMSStageRequest.ts +1 -1
  38. package/src/models/ProviderModelEnum.ts +48 -0
  39. package/src/models/TransactionApplicationRequest.ts +103 -0
  40. package/src/models/TransactionApplicationResponse.ts +75 -0
  41. package/src/models/index.ts +4 -0
@@ -184,6 +184,7 @@ src/models/LoginMetrics.ts
184
184
  src/models/LoginSource.ts
185
185
  src/models/Metadata.ts
186
186
  src/models/ModelEnum.ts
187
+ src/models/ModelRequest.ts
187
188
  src/models/NameIdPolicyEnum.ts
188
189
  src/models/NotConfiguredActionEnum.ts
189
190
  src/models/Notification.ts
@@ -398,6 +399,7 @@ src/models/PropertyMappingPreview.ts
398
399
  src/models/PropertyMappingTestResult.ts
399
400
  src/models/Provider.ts
400
401
  src/models/ProviderEnum.ts
402
+ src/models/ProviderModelEnum.ts
401
403
  src/models/ProviderRequest.ts
402
404
  src/models/ProviderTypeEnum.ts
403
405
  src/models/ProxyMode.ts
@@ -460,6 +462,8 @@ src/models/TokenModel.ts
460
462
  src/models/TokenRequest.ts
461
463
  src/models/TokenSetKeyRequest.ts
462
464
  src/models/TokenView.ts
465
+ src/models/TransactionApplicationRequest.ts
466
+ src/models/TransactionApplicationResponse.ts
463
467
  src/models/TypeCreate.ts
464
468
  src/models/UiThemeEnum.ts
465
469
  src/models/UsedBy.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { Application, ApplicationRequest, AuthenticatedSession, Coordinate, CurrentTenant, FilePathRequest, Group, GroupRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedGroupList, PaginatedTenantList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedGroupRequest, PatchedTenantRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Tenant, TenantRequest, Token, TokenRequest, TokenSetKeyRequest, TokenView, UsedBy, User, UserAccountRequest, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
13
+ import type { Application, ApplicationRequest, AuthenticatedSession, Coordinate, CurrentTenant, FilePathRequest, Group, GroupRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedGroupList, PaginatedTenantList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedGroupRequest, PatchedTenantRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Tenant, TenantRequest, Token, TokenRequest, TokenSetKeyRequest, TokenView, TransactionApplicationRequest, TransactionApplicationResponse, UsedBy, User, UserAccountRequest, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
14
14
  export interface CoreApplicationsCheckAccessRetrieveRequest {
15
15
  slug: string;
16
16
  forUser?: number;
@@ -197,6 +197,9 @@ export interface CoreTokensUsedByListRequest {
197
197
  export interface CoreTokensViewKeyRetrieveRequest {
198
198
  identifier: string;
199
199
  }
200
+ export interface CoreTransactionalApplicationsUpdateRequest {
201
+ transactionApplicationRequest: TransactionApplicationRequest;
202
+ }
200
203
  export interface CoreUserConsentDestroyRequest {
201
204
  id: number;
202
205
  }
@@ -607,6 +610,14 @@ export declare class CoreApi extends runtime.BaseAPI {
607
610
  * Return token key and log access
608
611
  */
609
612
  coreTokensViewKeyRetrieve(requestParameters: CoreTokensViewKeyRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenView>;
613
+ /**
614
+ * Convert data into a blueprint, validate it and apply it
615
+ */
616
+ coreTransactionalApplicationsUpdateRaw(requestParameters: CoreTransactionalApplicationsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionApplicationResponse>>;
617
+ /**
618
+ * Convert data into a blueprint, validate it and apply it
619
+ */
620
+ coreTransactionalApplicationsUpdate(requestParameters: CoreTransactionalApplicationsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionApplicationResponse>;
610
621
  /**
611
622
  * UserConsent Viewset
612
623
  */
@@ -1521,6 +1521,39 @@ class CoreApi extends runtime.BaseAPI {
1521
1521
  return yield response.value();
1522
1522
  });
1523
1523
  }
1524
+ /**
1525
+ * Convert data into a blueprint, validate it and apply it
1526
+ */
1527
+ coreTransactionalApplicationsUpdateRaw(requestParameters, initOverrides) {
1528
+ return __awaiter(this, void 0, void 0, function* () {
1529
+ if (requestParameters.transactionApplicationRequest === null || requestParameters.transactionApplicationRequest === undefined) {
1530
+ throw new runtime.RequiredError('transactionApplicationRequest', 'Required parameter requestParameters.transactionApplicationRequest was null or undefined when calling coreTransactionalApplicationsUpdate.');
1531
+ }
1532
+ const queryParameters = {};
1533
+ const headerParameters = {};
1534
+ headerParameters['Content-Type'] = 'application/json';
1535
+ if (this.configuration && this.configuration.apiKey) {
1536
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1537
+ }
1538
+ const response = yield this.request({
1539
+ path: `/core/transactional/applications/`,
1540
+ method: 'PUT',
1541
+ headers: headerParameters,
1542
+ query: queryParameters,
1543
+ body: (0, models_1.TransactionApplicationRequestToJSON)(requestParameters.transactionApplicationRequest),
1544
+ }, initOverrides);
1545
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.TransactionApplicationResponseFromJSON)(jsonValue));
1546
+ });
1547
+ }
1548
+ /**
1549
+ * Convert data into a blueprint, validate it and apply it
1550
+ */
1551
+ coreTransactionalApplicationsUpdate(requestParameters, initOverrides) {
1552
+ return __awaiter(this, void 0, void 0, function* () {
1553
+ const response = yield this.coreTransactionalApplicationsUpdateRaw(requestParameters, initOverrides);
1554
+ return yield response.value();
1555
+ });
1556
+ }
1524
1557
  /**
1525
1558
  * UserConsent Viewset
1526
1559
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { Application, ApplicationRequest, AuthenticatedSession, Coordinate, CurrentTenant, FilePathRequest, Group, GroupRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedGroupList, PaginatedTenantList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedGroupRequest, PatchedTenantRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Tenant, TenantRequest, Token, TokenRequest, TokenSetKeyRequest, TokenView, UsedBy, User, UserAccountRequest, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
13
+ import type { Application, ApplicationRequest, AuthenticatedSession, Coordinate, CurrentTenant, FilePathRequest, Group, GroupRequest, Link, PaginatedApplicationList, PaginatedAuthenticatedSessionList, PaginatedGroupList, PaginatedTenantList, PaginatedTokenList, PaginatedUserConsentList, PaginatedUserList, PatchedApplicationRequest, PatchedGroupRequest, PatchedTenantRequest, PatchedTokenRequest, PatchedUserRequest, PolicyTestResult, SessionUser, Tenant, TenantRequest, Token, TokenRequest, TokenSetKeyRequest, TokenView, TransactionApplicationRequest, TransactionApplicationResponse, UsedBy, User, UserAccountRequest, UserConsent, UserMetrics, UserPasswordSetRequest, UserPath, UserRequest, UserServiceAccountRequest, UserServiceAccountResponse } from '../models';
14
14
  export interface CoreApplicationsCheckAccessRetrieveRequest {
15
15
  slug: string;
16
16
  forUser?: number;
@@ -197,6 +197,9 @@ export interface CoreTokensUsedByListRequest {
197
197
  export interface CoreTokensViewKeyRetrieveRequest {
198
198
  identifier: string;
199
199
  }
200
+ export interface CoreTransactionalApplicationsUpdateRequest {
201
+ transactionApplicationRequest: TransactionApplicationRequest;
202
+ }
200
203
  export interface CoreUserConsentDestroyRequest {
201
204
  id: number;
202
205
  }
@@ -607,6 +610,14 @@ export declare class CoreApi extends runtime.BaseAPI {
607
610
  * Return token key and log access
608
611
  */
609
612
  coreTokensViewKeyRetrieve(requestParameters: CoreTokensViewKeyRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenView>;
613
+ /**
614
+ * Convert data into a blueprint, validate it and apply it
615
+ */
616
+ coreTransactionalApplicationsUpdateRaw(requestParameters: CoreTransactionalApplicationsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionApplicationResponse>>;
617
+ /**
618
+ * Convert data into a blueprint, validate it and apply it
619
+ */
620
+ coreTransactionalApplicationsUpdate(requestParameters: CoreTransactionalApplicationsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionApplicationResponse>;
610
621
  /**
611
622
  * UserConsent Viewset
612
623
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApplicationFromJSON, ApplicationRequestToJSON, AuthenticatedSessionFromJSON, CoordinateFromJSON, CurrentTenantFromJSON, FilePathRequestToJSON, GroupFromJSON, GroupRequestToJSON, LinkFromJSON, PaginatedApplicationListFromJSON, PaginatedAuthenticatedSessionListFromJSON, PaginatedGroupListFromJSON, PaginatedTenantListFromJSON, PaginatedTokenListFromJSON, PaginatedUserConsentListFromJSON, PaginatedUserListFromJSON, PatchedApplicationRequestToJSON, PatchedGroupRequestToJSON, PatchedTenantRequestToJSON, PatchedTokenRequestToJSON, PatchedUserRequestToJSON, PolicyTestResultFromJSON, SessionUserFromJSON, TenantFromJSON, TenantRequestToJSON, TokenFromJSON, TokenRequestToJSON, TokenSetKeyRequestToJSON, TokenViewFromJSON, UsedByFromJSON, UserFromJSON, UserAccountRequestToJSON, UserConsentFromJSON, UserMetricsFromJSON, UserPasswordSetRequestToJSON, UserPathFromJSON, UserRequestToJSON, UserServiceAccountRequestToJSON, UserServiceAccountResponseFromJSON, } from '../models';
24
+ import { ApplicationFromJSON, ApplicationRequestToJSON, AuthenticatedSessionFromJSON, CoordinateFromJSON, CurrentTenantFromJSON, FilePathRequestToJSON, GroupFromJSON, GroupRequestToJSON, LinkFromJSON, PaginatedApplicationListFromJSON, PaginatedAuthenticatedSessionListFromJSON, PaginatedGroupListFromJSON, PaginatedTenantListFromJSON, PaginatedTokenListFromJSON, PaginatedUserConsentListFromJSON, PaginatedUserListFromJSON, PatchedApplicationRequestToJSON, PatchedGroupRequestToJSON, PatchedTenantRequestToJSON, PatchedTokenRequestToJSON, PatchedUserRequestToJSON, PolicyTestResultFromJSON, SessionUserFromJSON, TenantFromJSON, TenantRequestToJSON, TokenFromJSON, TokenRequestToJSON, TokenSetKeyRequestToJSON, TokenViewFromJSON, TransactionApplicationRequestToJSON, TransactionApplicationResponseFromJSON, UsedByFromJSON, UserFromJSON, UserAccountRequestToJSON, UserConsentFromJSON, UserMetricsFromJSON, UserPasswordSetRequestToJSON, UserPathFromJSON, UserRequestToJSON, UserServiceAccountRequestToJSON, UserServiceAccountResponseFromJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -1518,6 +1518,39 @@ export class CoreApi extends runtime.BaseAPI {
1518
1518
  return yield response.value();
1519
1519
  });
1520
1520
  }
1521
+ /**
1522
+ * Convert data into a blueprint, validate it and apply it
1523
+ */
1524
+ coreTransactionalApplicationsUpdateRaw(requestParameters, initOverrides) {
1525
+ return __awaiter(this, void 0, void 0, function* () {
1526
+ if (requestParameters.transactionApplicationRequest === null || requestParameters.transactionApplicationRequest === undefined) {
1527
+ throw new runtime.RequiredError('transactionApplicationRequest', 'Required parameter requestParameters.transactionApplicationRequest was null or undefined when calling coreTransactionalApplicationsUpdate.');
1528
+ }
1529
+ const queryParameters = {};
1530
+ const headerParameters = {};
1531
+ headerParameters['Content-Type'] = 'application/json';
1532
+ if (this.configuration && this.configuration.apiKey) {
1533
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
1534
+ }
1535
+ const response = yield this.request({
1536
+ path: `/core/transactional/applications/`,
1537
+ method: 'PUT',
1538
+ headers: headerParameters,
1539
+ query: queryParameters,
1540
+ body: TransactionApplicationRequestToJSON(requestParameters.transactionApplicationRequest),
1541
+ }, initOverrides);
1542
+ return new runtime.JSONApiResponse(response, (jsonValue) => TransactionApplicationResponseFromJSON(jsonValue));
1543
+ });
1544
+ }
1545
+ /**
1546
+ * Convert data into a blueprint, validate it and apply it
1547
+ */
1548
+ coreTransactionalApplicationsUpdate(requestParameters, initOverrides) {
1549
+ return __awaiter(this, void 0, void 0, function* () {
1550
+ const response = yield this.coreTransactionalApplicationsUpdateRaw(requestParameters, initOverrides);
1551
+ return yield response.value();
1552
+ });
1553
+ }
1521
1554
  /**
1522
1555
  * UserConsent Viewset
1523
1556
  */
@@ -109,7 +109,7 @@ export interface AuthenticatorSMSStage {
109
109
  */
110
110
  authType?: AuthTypeEnum;
111
111
  /**
112
- * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
112
+ * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not reused in the future.
113
113
  * @type {boolean}
114
114
  * @memberof AuthenticatorSMSStage
115
115
  */
@@ -79,7 +79,7 @@ export interface AuthenticatorSMSStageRequest {
79
79
  */
80
80
  authType?: AuthTypeEnum;
81
81
  /**
82
- * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
82
+ * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not reused in the future.
83
83
  * @type {boolean}
84
84
  * @memberof AuthenticatorSMSStageRequest
85
85
  */
@@ -0,0 +1,38 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.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 { LDAPProviderRequest } from './LDAPProviderRequest';
13
+ import { OAuth2ProviderRequest } from './OAuth2ProviderRequest';
14
+ import { ProxyProviderRequest } from './ProxyProviderRequest';
15
+ import { RadiusProviderRequest } from './RadiusProviderRequest';
16
+ import { SAMLProviderRequest } from './SAMLProviderRequest';
17
+ import { SCIMProviderRequest } from './SCIMProviderRequest';
18
+ /**
19
+ * @type ModelRequest
20
+ *
21
+ * @export
22
+ */
23
+ export type ModelRequest = {
24
+ providerModel: 'authentik_providers_ldap.ldapprovider';
25
+ } & LDAPProviderRequest | {
26
+ providerModel: 'authentik_providers_oauth2.oauth2provider';
27
+ } & OAuth2ProviderRequest | {
28
+ providerModel: 'authentik_providers_proxy.proxyprovider';
29
+ } & ProxyProviderRequest | {
30
+ providerModel: 'authentik_providers_radius.radiusprovider';
31
+ } & RadiusProviderRequest | {
32
+ providerModel: 'authentik_providers_saml.samlprovider';
33
+ } & SAMLProviderRequest | {
34
+ providerModel: 'authentik_providers_scim.scimprovider';
35
+ } & SCIMProviderRequest;
36
+ export declare function ModelRequestFromJSON(json: any): ModelRequest;
37
+ export declare function ModelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelRequest;
38
+ export declare function ModelRequestToJSON(value?: ModelRequest | null): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.8.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
+ import { LDAPProviderRequestFromJSONTyped, LDAPProviderRequestToJSON, } from './LDAPProviderRequest';
15
+ import { OAuth2ProviderRequestFromJSONTyped, OAuth2ProviderRequestToJSON, } from './OAuth2ProviderRequest';
16
+ import { ProxyProviderRequestFromJSONTyped, ProxyProviderRequestToJSON, } from './ProxyProviderRequest';
17
+ import { RadiusProviderRequestFromJSONTyped, RadiusProviderRequestToJSON, } from './RadiusProviderRequest';
18
+ import { SAMLProviderRequestFromJSONTyped, SAMLProviderRequestToJSON, } from './SAMLProviderRequest';
19
+ import { SCIMProviderRequestFromJSONTyped, SCIMProviderRequestToJSON, } from './SCIMProviderRequest';
20
+ export function ModelRequestFromJSON(json) {
21
+ return ModelRequestFromJSONTyped(json, false);
22
+ }
23
+ export function ModelRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ switch (json['providerModel']) {
28
+ case 'authentik_providers_ldap.ldapprovider':
29
+ return Object.assign(Object.assign({}, LDAPProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_ldap.ldapprovider' });
30
+ case 'authentik_providers_oauth2.oauth2provider':
31
+ return Object.assign(Object.assign({}, OAuth2ProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_oauth2.oauth2provider' });
32
+ case 'authentik_providers_proxy.proxyprovider':
33
+ return Object.assign(Object.assign({}, ProxyProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_proxy.proxyprovider' });
34
+ case 'authentik_providers_radius.radiusprovider':
35
+ return Object.assign(Object.assign({}, RadiusProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_radius.radiusprovider' });
36
+ case 'authentik_providers_saml.samlprovider':
37
+ return Object.assign(Object.assign({}, SAMLProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_saml.samlprovider' });
38
+ case 'authentik_providers_scim.scimprovider':
39
+ return Object.assign(Object.assign({}, SCIMProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_scim.scimprovider' });
40
+ default:
41
+ throw new Error(`No variant of ModelRequest exists with 'providerModel=${json['providerModel']}'`);
42
+ }
43
+ }
44
+ export function ModelRequestToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ switch (value['providerModel']) {
52
+ case 'authentik_providers_ldap.ldapprovider':
53
+ return LDAPProviderRequestToJSON(value);
54
+ case 'authentik_providers_oauth2.oauth2provider':
55
+ return OAuth2ProviderRequestToJSON(value);
56
+ case 'authentik_providers_proxy.proxyprovider':
57
+ return ProxyProviderRequestToJSON(value);
58
+ case 'authentik_providers_radius.radiusprovider':
59
+ return RadiusProviderRequestToJSON(value);
60
+ case 'authentik_providers_saml.samlprovider':
61
+ return SAMLProviderRequestToJSON(value);
62
+ case 'authentik_providers_scim.scimprovider':
63
+ return SCIMProviderRequestToJSON(value);
64
+ default:
65
+ throw new Error(`No variant of ModelRequest exists with 'providerModel=${value['providerModel']}'`);
66
+ }
67
+ }
@@ -79,7 +79,7 @@ export interface PatchedAuthenticatorSMSStageRequest {
79
79
  */
80
80
  authType?: AuthTypeEnum;
81
81
  /**
82
- * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
82
+ * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not reused in the future.
83
83
  * @type {boolean}
84
84
  * @memberof PatchedAuthenticatorSMSStageRequest
85
85
  */
@@ -0,0 +1,33 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.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
+ * * `authentik_providers_ldap.ldapprovider` - authentik_providers_ldap.ldapprovider
14
+ * * `authentik_providers_oauth2.oauth2provider` - authentik_providers_oauth2.oauth2provider
15
+ * * `authentik_providers_proxy.proxyprovider` - authentik_providers_proxy.proxyprovider
16
+ * * `authentik_providers_radius.radiusprovider` - authentik_providers_radius.radiusprovider
17
+ * * `authentik_providers_saml.samlprovider` - authentik_providers_saml.samlprovider
18
+ * * `authentik_providers_scim.scimprovider` - authentik_providers_scim.scimprovider
19
+ * @export
20
+ */
21
+ export declare const ProviderModelEnum: {
22
+ readonly LdapLdapprovider: "authentik_providers_ldap.ldapprovider";
23
+ readonly Oauth2Oauth2provider: "authentik_providers_oauth2.oauth2provider";
24
+ readonly ProxyProxyprovider: "authentik_providers_proxy.proxyprovider";
25
+ readonly RadiusRadiusprovider: "authentik_providers_radius.radiusprovider";
26
+ readonly SamlSamlprovider: "authentik_providers_saml.samlprovider";
27
+ readonly ScimScimprovider: "authentik_providers_scim.scimprovider";
28
+ readonly UnknownDefaultOpenApi: "11184809";
29
+ };
30
+ export type ProviderModelEnum = typeof ProviderModelEnum[keyof typeof ProviderModelEnum];
31
+ export declare function ProviderModelEnumFromJSON(json: any): ProviderModelEnum;
32
+ export declare function ProviderModelEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderModelEnum;
33
+ export declare function ProviderModelEnumToJSON(value?: ProviderModelEnum | null): any;
@@ -0,0 +1,40 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.8.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
+ * * `authentik_providers_ldap.ldapprovider` - authentik_providers_ldap.ldapprovider
16
+ * * `authentik_providers_oauth2.oauth2provider` - authentik_providers_oauth2.oauth2provider
17
+ * * `authentik_providers_proxy.proxyprovider` - authentik_providers_proxy.proxyprovider
18
+ * * `authentik_providers_radius.radiusprovider` - authentik_providers_radius.radiusprovider
19
+ * * `authentik_providers_saml.samlprovider` - authentik_providers_saml.samlprovider
20
+ * * `authentik_providers_scim.scimprovider` - authentik_providers_scim.scimprovider
21
+ * @export
22
+ */
23
+ export const ProviderModelEnum = {
24
+ LdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
25
+ Oauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
26
+ ProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
27
+ RadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
28
+ SamlSamlprovider: 'authentik_providers_saml.samlprovider',
29
+ ScimScimprovider: 'authentik_providers_scim.scimprovider',
30
+ UnknownDefaultOpenApi: '11184809'
31
+ };
32
+ export function ProviderModelEnumFromJSON(json) {
33
+ return ProviderModelEnumFromJSONTyped(json, false);
34
+ }
35
+ export function ProviderModelEnumFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function ProviderModelEnumToJSON(value) {
39
+ return value;
40
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.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 { ApplicationRequest } from './ApplicationRequest';
13
+ import type { ModelRequest } from './ModelRequest';
14
+ import type { ProviderModelEnum } from './ProviderModelEnum';
15
+ /**
16
+ * Serializer for creating a provider and an application in one transaction
17
+ * @export
18
+ * @interface TransactionApplicationRequest
19
+ */
20
+ export interface TransactionApplicationRequest {
21
+ /**
22
+ *
23
+ * @type {ApplicationRequest}
24
+ * @memberof TransactionApplicationRequest
25
+ */
26
+ app: ApplicationRequest;
27
+ /**
28
+ *
29
+ * @type {ProviderModelEnum}
30
+ * @memberof TransactionApplicationRequest
31
+ */
32
+ providerModel: ProviderModelEnum;
33
+ /**
34
+ *
35
+ * @type {ModelRequest}
36
+ * @memberof TransactionApplicationRequest
37
+ */
38
+ provider: ModelRequest;
39
+ }
40
+ /**
41
+ * Check if a given object implements the TransactionApplicationRequest interface.
42
+ */
43
+ export declare function instanceOfTransactionApplicationRequest(value: object): boolean;
44
+ export declare function TransactionApplicationRequestFromJSON(json: any): TransactionApplicationRequest;
45
+ export declare function TransactionApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionApplicationRequest;
46
+ export declare function TransactionApplicationRequestToJSON(value?: TransactionApplicationRequest | null): any;
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.8.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
+ import { ApplicationRequestFromJSON, ApplicationRequestToJSON, } from './ApplicationRequest';
15
+ import { ModelRequestFromJSON, ModelRequestToJSON, } from './ModelRequest';
16
+ import { ProviderModelEnumFromJSON, ProviderModelEnumToJSON, } from './ProviderModelEnum';
17
+ /**
18
+ * Check if a given object implements the TransactionApplicationRequest interface.
19
+ */
20
+ export function instanceOfTransactionApplicationRequest(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "app" in value;
23
+ isInstance = isInstance && "providerModel" in value;
24
+ isInstance = isInstance && "provider" in value;
25
+ return isInstance;
26
+ }
27
+ export function TransactionApplicationRequestFromJSON(json) {
28
+ return TransactionApplicationRequestFromJSONTyped(json, false);
29
+ }
30
+ export function TransactionApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'app': ApplicationRequestFromJSON(json['app']),
36
+ 'providerModel': ProviderModelEnumFromJSON(json['provider_model']),
37
+ 'provider': ModelRequestFromJSON(json['provider']),
38
+ };
39
+ }
40
+ export function TransactionApplicationRequestToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'app': ApplicationRequestToJSON(value.app),
49
+ 'provider_model': ProviderModelEnumToJSON(value.providerModel),
50
+ 'provider': ModelRequestToJSON(value.provider),
51
+ };
52
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.8.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
+ * Transactional creation response
14
+ * @export
15
+ * @interface TransactionApplicationResponse
16
+ */
17
+ export interface TransactionApplicationResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof TransactionApplicationResponse
22
+ */
23
+ applied: boolean;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof TransactionApplicationResponse
28
+ */
29
+ logs: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the TransactionApplicationResponse interface.
33
+ */
34
+ export declare function instanceOfTransactionApplicationResponse(value: object): boolean;
35
+ export declare function TransactionApplicationResponseFromJSON(json: any): TransactionApplicationResponse;
36
+ export declare function TransactionApplicationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionApplicationResponse;
37
+ export declare function TransactionApplicationResponseToJSON(value?: TransactionApplicationResponse | null): any;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.8.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
+ * Check if a given object implements the TransactionApplicationResponse interface.
16
+ */
17
+ export function instanceOfTransactionApplicationResponse(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "applied" in value;
20
+ isInstance = isInstance && "logs" in value;
21
+ return isInstance;
22
+ }
23
+ export function TransactionApplicationResponseFromJSON(json) {
24
+ return TransactionApplicationResponseFromJSONTyped(json, false);
25
+ }
26
+ export function TransactionApplicationResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'applied': json['applied'],
32
+ 'logs': json['logs'],
33
+ };
34
+ }
35
+ export function TransactionApplicationResponseToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'applied': value.applied,
44
+ 'logs': value.logs,
45
+ };
46
+ }
@@ -160,6 +160,7 @@ export * from './LoginMetrics';
160
160
  export * from './LoginSource';
161
161
  export * from './Metadata';
162
162
  export * from './ModelEnum';
163
+ export * from './ModelRequest';
163
164
  export * from './NameIdPolicyEnum';
164
165
  export * from './NotConfiguredActionEnum';
165
166
  export * from './Notification';
@@ -374,6 +375,7 @@ export * from './PropertyMappingPreview';
374
375
  export * from './PropertyMappingTestResult';
375
376
  export * from './Provider';
376
377
  export * from './ProviderEnum';
378
+ export * from './ProviderModelEnum';
377
379
  export * from './ProviderRequest';
378
380
  export * from './ProviderTypeEnum';
379
381
  export * from './ProxyMode';
@@ -436,6 +438,8 @@ export * from './TokenModel';
436
438
  export * from './TokenRequest';
437
439
  export * from './TokenSetKeyRequest';
438
440
  export * from './TokenView';
441
+ export * from './TransactionApplicationRequest';
442
+ export * from './TransactionApplicationResponse';
439
443
  export * from './TypeCreate';
440
444
  export * from './UiThemeEnum';
441
445
  export * from './UsedBy';
@@ -162,6 +162,7 @@ export * from './LoginMetrics';
162
162
  export * from './LoginSource';
163
163
  export * from './Metadata';
164
164
  export * from './ModelEnum';
165
+ export * from './ModelRequest';
165
166
  export * from './NameIdPolicyEnum';
166
167
  export * from './NotConfiguredActionEnum';
167
168
  export * from './Notification';
@@ -376,6 +377,7 @@ export * from './PropertyMappingPreview';
376
377
  export * from './PropertyMappingTestResult';
377
378
  export * from './Provider';
378
379
  export * from './ProviderEnum';
380
+ export * from './ProviderModelEnum';
379
381
  export * from './ProviderRequest';
380
382
  export * from './ProviderTypeEnum';
381
383
  export * from './ProxyMode';
@@ -438,6 +440,8 @@ export * from './TokenModel';
438
440
  export * from './TokenRequest';
439
441
  export * from './TokenSetKeyRequest';
440
442
  export * from './TokenView';
443
+ export * from './TransactionApplicationRequest';
444
+ export * from './TransactionApplicationResponse';
441
445
  export * from './TypeCreate';
442
446
  export * from './UiThemeEnum';
443
447
  export * from './UsedBy';
@@ -109,7 +109,7 @@ export interface AuthenticatorSMSStage {
109
109
  */
110
110
  authType?: AuthTypeEnum;
111
111
  /**
112
- * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
112
+ * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not reused in the future.
113
113
  * @type {boolean}
114
114
  * @memberof AuthenticatorSMSStage
115
115
  */
@@ -79,7 +79,7 @@ export interface AuthenticatorSMSStageRequest {
79
79
  */
80
80
  authType?: AuthTypeEnum;
81
81
  /**
82
- * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not re-used in the future.
82
+ * When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not reused in the future.
83
83
  * @type {boolean}
84
84
  * @memberof AuthenticatorSMSStageRequest
85
85
  */