@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
@@ -0,0 +1,116 @@
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
+ import {
16
+ LDAPProviderRequest,
17
+ instanceOfLDAPProviderRequest,
18
+ LDAPProviderRequestFromJSON,
19
+ LDAPProviderRequestFromJSONTyped,
20
+ LDAPProviderRequestToJSON,
21
+ } from './LDAPProviderRequest';
22
+ import {
23
+ OAuth2ProviderRequest,
24
+ instanceOfOAuth2ProviderRequest,
25
+ OAuth2ProviderRequestFromJSON,
26
+ OAuth2ProviderRequestFromJSONTyped,
27
+ OAuth2ProviderRequestToJSON,
28
+ } from './OAuth2ProviderRequest';
29
+ import {
30
+ ProxyProviderRequest,
31
+ instanceOfProxyProviderRequest,
32
+ ProxyProviderRequestFromJSON,
33
+ ProxyProviderRequestFromJSONTyped,
34
+ ProxyProviderRequestToJSON,
35
+ } from './ProxyProviderRequest';
36
+ import {
37
+ RadiusProviderRequest,
38
+ instanceOfRadiusProviderRequest,
39
+ RadiusProviderRequestFromJSON,
40
+ RadiusProviderRequestFromJSONTyped,
41
+ RadiusProviderRequestToJSON,
42
+ } from './RadiusProviderRequest';
43
+ import {
44
+ SAMLProviderRequest,
45
+ instanceOfSAMLProviderRequest,
46
+ SAMLProviderRequestFromJSON,
47
+ SAMLProviderRequestFromJSONTyped,
48
+ SAMLProviderRequestToJSON,
49
+ } from './SAMLProviderRequest';
50
+ import {
51
+ SCIMProviderRequest,
52
+ instanceOfSCIMProviderRequest,
53
+ SCIMProviderRequestFromJSON,
54
+ SCIMProviderRequestFromJSONTyped,
55
+ SCIMProviderRequestToJSON,
56
+ } from './SCIMProviderRequest';
57
+
58
+ /**
59
+ * @type ModelRequest
60
+ *
61
+ * @export
62
+ */
63
+ export type ModelRequest = { providerModel: 'authentik_providers_ldap.ldapprovider' } & LDAPProviderRequest | { providerModel: 'authentik_providers_oauth2.oauth2provider' } & OAuth2ProviderRequest | { providerModel: 'authentik_providers_proxy.proxyprovider' } & ProxyProviderRequest | { providerModel: 'authentik_providers_radius.radiusprovider' } & RadiusProviderRequest | { providerModel: 'authentik_providers_saml.samlprovider' } & SAMLProviderRequest | { providerModel: 'authentik_providers_scim.scimprovider' } & SCIMProviderRequest;
64
+
65
+ export function ModelRequestFromJSON(json: any): ModelRequest {
66
+ return ModelRequestFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function ModelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelRequest {
70
+ if ((json === undefined) || (json === null)) {
71
+ return json;
72
+ }
73
+ switch (json['providerModel']) {
74
+ case 'authentik_providers_ldap.ldapprovider':
75
+ return {...LDAPProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_ldap.ldapprovider'};
76
+ case 'authentik_providers_oauth2.oauth2provider':
77
+ return {...OAuth2ProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_oauth2.oauth2provider'};
78
+ case 'authentik_providers_proxy.proxyprovider':
79
+ return {...ProxyProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_proxy.proxyprovider'};
80
+ case 'authentik_providers_radius.radiusprovider':
81
+ return {...RadiusProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_radius.radiusprovider'};
82
+ case 'authentik_providers_saml.samlprovider':
83
+ return {...SAMLProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_saml.samlprovider'};
84
+ case 'authentik_providers_scim.scimprovider':
85
+ return {...SCIMProviderRequestFromJSONTyped(json, true), providerModel: 'authentik_providers_scim.scimprovider'};
86
+ default:
87
+ throw new Error(`No variant of ModelRequest exists with 'providerModel=${json['providerModel']}'`);
88
+ }
89
+ }
90
+
91
+ export function ModelRequestToJSON(value?: ModelRequest | null): any {
92
+ if (value === undefined) {
93
+ return undefined;
94
+ }
95
+ if (value === null) {
96
+ return null;
97
+ }
98
+ switch (value['providerModel']) {
99
+ case 'authentik_providers_ldap.ldapprovider':
100
+ return LDAPProviderRequestToJSON(value);
101
+ case 'authentik_providers_oauth2.oauth2provider':
102
+ return OAuth2ProviderRequestToJSON(value);
103
+ case 'authentik_providers_proxy.proxyprovider':
104
+ return ProxyProviderRequestToJSON(value);
105
+ case 'authentik_providers_radius.radiusprovider':
106
+ return RadiusProviderRequestToJSON(value);
107
+ case 'authentik_providers_saml.samlprovider':
108
+ return SAMLProviderRequestToJSON(value);
109
+ case 'authentik_providers_scim.scimprovider':
110
+ return SCIMProviderRequestToJSON(value);
111
+ default:
112
+ throw new Error(`No variant of ModelRequest exists with 'providerModel=${value['providerModel']}'`);
113
+ }
114
+
115
+ }
116
+
@@ -99,7 +99,7 @@ export interface PatchedAuthenticatorSMSStageRequest {
99
99
  */
100
100
  authType?: AuthTypeEnum;
101
101
  /**
102
- * 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.
102
+ * 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.
103
103
  * @type {boolean}
104
104
  * @memberof PatchedAuthenticatorSMSStageRequest
105
105
  */
@@ -0,0 +1,48 @@
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
+
16
+ /**
17
+ * * `authentik_providers_ldap.ldapprovider` - authentik_providers_ldap.ldapprovider
18
+ * * `authentik_providers_oauth2.oauth2provider` - authentik_providers_oauth2.oauth2provider
19
+ * * `authentik_providers_proxy.proxyprovider` - authentik_providers_proxy.proxyprovider
20
+ * * `authentik_providers_radius.radiusprovider` - authentik_providers_radius.radiusprovider
21
+ * * `authentik_providers_saml.samlprovider` - authentik_providers_saml.samlprovider
22
+ * * `authentik_providers_scim.scimprovider` - authentik_providers_scim.scimprovider
23
+ * @export
24
+ */
25
+ export const ProviderModelEnum = {
26
+ LdapLdapprovider: 'authentik_providers_ldap.ldapprovider',
27
+ Oauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
28
+ ProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
29
+ RadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
30
+ SamlSamlprovider: 'authentik_providers_saml.samlprovider',
31
+ ScimScimprovider: 'authentik_providers_scim.scimprovider',
32
+ UnknownDefaultOpenApi: '11184809'
33
+ } as const;
34
+ export type ProviderModelEnum = typeof ProviderModelEnum[keyof typeof ProviderModelEnum];
35
+
36
+
37
+ export function ProviderModelEnumFromJSON(json: any): ProviderModelEnum {
38
+ return ProviderModelEnumFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ProviderModelEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderModelEnum {
42
+ return json as ProviderModelEnum;
43
+ }
44
+
45
+ export function ProviderModelEnumToJSON(value?: ProviderModelEnum | null): any {
46
+ return value as any;
47
+ }
48
+
@@ -0,0 +1,103 @@
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
+ import { exists, mapValues } from '../runtime';
16
+ import type { ApplicationRequest } from './ApplicationRequest';
17
+ import {
18
+ ApplicationRequestFromJSON,
19
+ ApplicationRequestFromJSONTyped,
20
+ ApplicationRequestToJSON,
21
+ } from './ApplicationRequest';
22
+ import type { ModelRequest } from './ModelRequest';
23
+ import {
24
+ ModelRequestFromJSON,
25
+ ModelRequestFromJSONTyped,
26
+ ModelRequestToJSON,
27
+ } from './ModelRequest';
28
+ import type { ProviderModelEnum } from './ProviderModelEnum';
29
+ import {
30
+ ProviderModelEnumFromJSON,
31
+ ProviderModelEnumFromJSONTyped,
32
+ ProviderModelEnumToJSON,
33
+ } from './ProviderModelEnum';
34
+
35
+ /**
36
+ * Serializer for creating a provider and an application in one transaction
37
+ * @export
38
+ * @interface TransactionApplicationRequest
39
+ */
40
+ export interface TransactionApplicationRequest {
41
+ /**
42
+ *
43
+ * @type {ApplicationRequest}
44
+ * @memberof TransactionApplicationRequest
45
+ */
46
+ app: ApplicationRequest;
47
+ /**
48
+ *
49
+ * @type {ProviderModelEnum}
50
+ * @memberof TransactionApplicationRequest
51
+ */
52
+ providerModel: ProviderModelEnum;
53
+ /**
54
+ *
55
+ * @type {ModelRequest}
56
+ * @memberof TransactionApplicationRequest
57
+ */
58
+ provider: ModelRequest;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the TransactionApplicationRequest interface.
63
+ */
64
+ export function instanceOfTransactionApplicationRequest(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "app" in value;
67
+ isInstance = isInstance && "providerModel" in value;
68
+ isInstance = isInstance && "provider" in value;
69
+
70
+ return isInstance;
71
+ }
72
+
73
+ export function TransactionApplicationRequestFromJSON(json: any): TransactionApplicationRequest {
74
+ return TransactionApplicationRequestFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function TransactionApplicationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionApplicationRequest {
78
+ if ((json === undefined) || (json === null)) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'app': ApplicationRequestFromJSON(json['app']),
84
+ 'providerModel': ProviderModelEnumFromJSON(json['provider_model']),
85
+ 'provider': ModelRequestFromJSON(json['provider']),
86
+ };
87
+ }
88
+
89
+ export function TransactionApplicationRequestToJSON(value?: TransactionApplicationRequest | null): any {
90
+ if (value === undefined) {
91
+ return undefined;
92
+ }
93
+ if (value === null) {
94
+ return null;
95
+ }
96
+ return {
97
+
98
+ 'app': ApplicationRequestToJSON(value.app),
99
+ 'provider_model': ProviderModelEnumToJSON(value.providerModel),
100
+ 'provider': ModelRequestToJSON(value.provider),
101
+ };
102
+ }
103
+
@@ -0,0 +1,75 @@
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
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * Transactional creation response
18
+ * @export
19
+ * @interface TransactionApplicationResponse
20
+ */
21
+ export interface TransactionApplicationResponse {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof TransactionApplicationResponse
26
+ */
27
+ applied: boolean;
28
+ /**
29
+ *
30
+ * @type {Array<string>}
31
+ * @memberof TransactionApplicationResponse
32
+ */
33
+ logs: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the TransactionApplicationResponse interface.
38
+ */
39
+ export function instanceOfTransactionApplicationResponse(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "applied" in value;
42
+ isInstance = isInstance && "logs" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TransactionApplicationResponseFromJSON(json: any): TransactionApplicationResponse {
48
+ return TransactionApplicationResponseFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TransactionApplicationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionApplicationResponse {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'applied': json['applied'],
58
+ 'logs': json['logs'],
59
+ };
60
+ }
61
+
62
+ export function TransactionApplicationResponseToJSON(value?: TransactionApplicationResponse | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'applied': value.applied,
72
+ 'logs': value.logs,
73
+ };
74
+ }
75
+
@@ -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';