@goauthentik/api 2022.9.0-1664575649 → 2022.9.0-1665485003
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.
- package/.openapi-generator/FILES +4 -0
- package/dist/apis/CoreApi.d.ts +1 -0
- package/dist/apis/CoreApi.js +3 -0
- package/dist/esm/apis/CoreApi.d.ts +1 -0
- package/dist/esm/apis/CoreApi.js +3 -0
- package/dist/esm/models/ChallengeTypes.d.ts +8 -2
- package/dist/esm/models/ChallengeTypes.js +16 -6
- package/dist/esm/models/CurrentTenant.d.ts +6 -0
- package/dist/esm/models/CurrentTenant.js +2 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +8 -2
- package/dist/esm/models/FlowChallengeResponseRequest.js +16 -6
- package/dist/esm/models/LoginChallengeTypes.d.ts +2 -2
- package/dist/esm/models/LoginChallengeTypes.js +6 -6
- package/dist/esm/models/OAuthDeviceCodeChallenge.d.ts +50 -0
- package/dist/esm/models/OAuthDeviceCodeChallenge.js +44 -0
- package/dist/esm/models/OAuthDeviceCodeChallengeResponseRequest.d.ts +33 -0
- package/dist/esm/models/OAuthDeviceCodeChallengeResponseRequest.js +38 -0
- package/dist/esm/models/OAuthDeviceCodeFinishChallenge.d.ts +50 -0
- package/dist/esm/models/OAuthDeviceCodeFinishChallenge.js +44 -0
- package/dist/esm/models/OAuthDeviceCodeFinishChallengeResponseRequest.d.ts +27 -0
- package/dist/esm/models/OAuthDeviceCodeFinishChallengeResponseRequest.js +36 -0
- package/dist/esm/models/PatchedTenantRequest.d.ts +6 -0
- package/dist/esm/models/PatchedTenantRequest.js +2 -0
- package/dist/esm/models/ProviderTypeEnum.d.ts +1 -0
- package/dist/esm/models/ProviderTypeEnum.js +2 -1
- package/dist/esm/models/Tenant.d.ts +6 -0
- package/dist/esm/models/Tenant.js +2 -0
- package/dist/esm/models/TenantRequest.d.ts +6 -0
- package/dist/esm/models/TenantRequest.js +2 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ChallengeTypes.d.ts +8 -2
- package/dist/models/ChallengeTypes.js +16 -6
- package/dist/models/CurrentTenant.d.ts +6 -0
- package/dist/models/CurrentTenant.js +2 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +8 -2
- package/dist/models/FlowChallengeResponseRequest.js +16 -6
- package/dist/models/LoginChallengeTypes.d.ts +2 -2
- package/dist/models/LoginChallengeTypes.js +6 -6
- package/dist/models/OAuthDeviceCodeChallenge.d.ts +50 -0
- package/dist/models/OAuthDeviceCodeChallenge.js +50 -0
- package/dist/models/OAuthDeviceCodeChallengeResponseRequest.d.ts +33 -0
- package/dist/models/OAuthDeviceCodeChallengeResponseRequest.js +44 -0
- package/dist/models/OAuthDeviceCodeFinishChallenge.d.ts +50 -0
- package/dist/models/OAuthDeviceCodeFinishChallenge.js +50 -0
- package/dist/models/OAuthDeviceCodeFinishChallengeResponseRequest.d.ts +27 -0
- package/dist/models/OAuthDeviceCodeFinishChallengeResponseRequest.js +42 -0
- package/dist/models/PatchedTenantRequest.d.ts +6 -0
- package/dist/models/PatchedTenantRequest.js +2 -0
- package/dist/models/ProviderTypeEnum.d.ts +1 -0
- package/dist/models/ProviderTypeEnum.js +2 -1
- package/dist/models/Tenant.d.ts +6 -0
- package/dist/models/Tenant.js +2 -0
- package/dist/models/TenantRequest.d.ts +6 -0
- package/dist/models/TenantRequest.js +2 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +5 -0
- package/src/models/ChallengeTypes.ts +27 -7
- package/src/models/CurrentTenant.ts +8 -0
- package/src/models/FlowChallengeResponseRequest.ts +27 -7
- package/src/models/LoginChallengeTypes.ts +7 -7
- package/src/models/OAuthDeviceCodeChallenge.ts +99 -0
- package/src/models/OAuthDeviceCodeChallengeResponseRequest.ts +64 -0
- package/src/models/OAuthDeviceCodeFinishChallenge.ts +99 -0
- package/src/models/OAuthDeviceCodeFinishChallengeResponseRequest.ts +56 -0
- package/src/models/PatchedTenantRequest.ts +8 -0
- package/src/models/ProviderTypeEnum.ts +2 -1
- package/src/models/Tenant.ts +8 -0
- package/src/models/TenantRequest.ts +8 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -195,6 +195,10 @@ src/models/NotificationWebhookMappingRequest.ts
|
|
|
195
195
|
src/models/OAuth2Provider.ts
|
|
196
196
|
src/models/OAuth2ProviderRequest.ts
|
|
197
197
|
src/models/OAuth2ProviderSetupURLs.ts
|
|
198
|
+
src/models/OAuthDeviceCodeChallenge.ts
|
|
199
|
+
src/models/OAuthDeviceCodeChallengeResponseRequest.ts
|
|
200
|
+
src/models/OAuthDeviceCodeFinishChallenge.ts
|
|
201
|
+
src/models/OAuthDeviceCodeFinishChallengeResponseRequest.ts
|
|
198
202
|
src/models/OAuthSource.ts
|
|
199
203
|
src/models/OAuthSourceRequest.ts
|
|
200
204
|
src/models/OAuthSourceType.ts
|
package/dist/apis/CoreApi.d.ts
CHANGED
package/dist/apis/CoreApi.js
CHANGED
|
@@ -944,6 +944,9 @@ class CoreApi extends runtime.BaseAPI {
|
|
|
944
944
|
if (requestParameters.flowAuthentication !== undefined) {
|
|
945
945
|
queryParameters['flow_authentication'] = requestParameters.flowAuthentication;
|
|
946
946
|
}
|
|
947
|
+
if (requestParameters.flowDeviceCode !== undefined) {
|
|
948
|
+
queryParameters['flow_device_code'] = requestParameters.flowDeviceCode;
|
|
949
|
+
}
|
|
947
950
|
if (requestParameters.flowInvalidation !== undefined) {
|
|
948
951
|
queryParameters['flow_invalidation'] = requestParameters.flowInvalidation;
|
|
949
952
|
}
|
package/dist/esm/apis/CoreApi.js
CHANGED
|
@@ -941,6 +941,9 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
941
941
|
if (requestParameters.flowAuthentication !== undefined) {
|
|
942
942
|
queryParameters['flow_authentication'] = requestParameters.flowAuthentication;
|
|
943
943
|
}
|
|
944
|
+
if (requestParameters.flowDeviceCode !== undefined) {
|
|
945
|
+
queryParameters['flow_device_code'] = requestParameters.flowDeviceCode;
|
|
946
|
+
}
|
|
944
947
|
if (requestParameters.flowInvalidation !== undefined) {
|
|
945
948
|
queryParameters['flow_invalidation'] = requestParameters.flowInvalidation;
|
|
946
949
|
}
|
|
@@ -24,6 +24,8 @@ import { DummyChallenge } from './DummyChallenge';
|
|
|
24
24
|
import { EmailChallenge } from './EmailChallenge';
|
|
25
25
|
import { FlowErrorChallenge } from './FlowErrorChallenge';
|
|
26
26
|
import { IdentificationChallenge } from './IdentificationChallenge';
|
|
27
|
+
import { OAuthDeviceCodeChallenge } from './OAuthDeviceCodeChallenge';
|
|
28
|
+
import { OAuthDeviceCodeFinishChallenge } from './OAuthDeviceCodeFinishChallenge';
|
|
27
29
|
import { PasswordChallenge } from './PasswordChallenge';
|
|
28
30
|
import { PlexAuthenticationChallenge } from './PlexAuthenticationChallenge';
|
|
29
31
|
import { PromptChallenge } from './PromptChallenge';
|
|
@@ -35,9 +37,13 @@ import { ShellChallenge } from './ShellChallenge';
|
|
|
35
37
|
* @export
|
|
36
38
|
*/
|
|
37
39
|
export declare type ChallengeTypes = {
|
|
38
|
-
component: 'ak-
|
|
40
|
+
component: 'ak-provider-oauth2-device-code';
|
|
41
|
+
} & OAuthDeviceCodeChallenge | {
|
|
42
|
+
component: 'ak-provider-oauth2-device-code-finish';
|
|
43
|
+
} & OAuthDeviceCodeFinishChallenge | {
|
|
44
|
+
component: 'ak-source-oauth-apple';
|
|
39
45
|
} & AppleLoginChallenge | {
|
|
40
|
-
component: 'ak-
|
|
46
|
+
component: 'ak-source-plex';
|
|
41
47
|
} & PlexAuthenticationChallenge | {
|
|
42
48
|
component: 'ak-stage-access-denied';
|
|
43
49
|
} & AccessDeniedChallenge | {
|
|
@@ -26,6 +26,8 @@ import { DummyChallengeFromJSONTyped, DummyChallengeToJSON, } from './DummyChall
|
|
|
26
26
|
import { EmailChallengeFromJSONTyped, EmailChallengeToJSON, } from './EmailChallenge';
|
|
27
27
|
import { FlowErrorChallengeFromJSONTyped, FlowErrorChallengeToJSON, } from './FlowErrorChallenge';
|
|
28
28
|
import { IdentificationChallengeFromJSONTyped, IdentificationChallengeToJSON, } from './IdentificationChallenge';
|
|
29
|
+
import { OAuthDeviceCodeChallengeFromJSONTyped, OAuthDeviceCodeChallengeToJSON, } from './OAuthDeviceCodeChallenge';
|
|
30
|
+
import { OAuthDeviceCodeFinishChallengeFromJSONTyped, OAuthDeviceCodeFinishChallengeToJSON, } from './OAuthDeviceCodeFinishChallenge';
|
|
29
31
|
import { PasswordChallengeFromJSONTyped, PasswordChallengeToJSON, } from './PasswordChallenge';
|
|
30
32
|
import { PlexAuthenticationChallengeFromJSONTyped, PlexAuthenticationChallengeToJSON, } from './PlexAuthenticationChallenge';
|
|
31
33
|
import { PromptChallengeFromJSONTyped, PromptChallengeToJSON, } from './PromptChallenge';
|
|
@@ -39,10 +41,14 @@ export function ChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
41
|
return json;
|
|
40
42
|
}
|
|
41
43
|
switch (json['component']) {
|
|
42
|
-
case 'ak-
|
|
43
|
-
return Object.assign(Object.assign({},
|
|
44
|
-
case 'ak-
|
|
45
|
-
return Object.assign(Object.assign({},
|
|
44
|
+
case 'ak-provider-oauth2-device-code':
|
|
45
|
+
return Object.assign(Object.assign({}, OAuthDeviceCodeChallengeFromJSONTyped(json, true)), { component: 'ak-provider-oauth2-device-code' });
|
|
46
|
+
case 'ak-provider-oauth2-device-code-finish':
|
|
47
|
+
return Object.assign(Object.assign({}, OAuthDeviceCodeFinishChallengeFromJSONTyped(json, true)), { component: 'ak-provider-oauth2-device-code-finish' });
|
|
48
|
+
case 'ak-source-oauth-apple':
|
|
49
|
+
return Object.assign(Object.assign({}, AppleLoginChallengeFromJSONTyped(json, true)), { component: 'ak-source-oauth-apple' });
|
|
50
|
+
case 'ak-source-plex':
|
|
51
|
+
return Object.assign(Object.assign({}, PlexAuthenticationChallengeFromJSONTyped(json, true)), { component: 'ak-source-plex' });
|
|
46
52
|
case 'ak-stage-access-denied':
|
|
47
53
|
return Object.assign(Object.assign({}, AccessDeniedChallengeFromJSONTyped(json, true)), { component: 'ak-stage-access-denied' });
|
|
48
54
|
case 'ak-stage-authenticator-duo':
|
|
@@ -91,9 +97,13 @@ export function ChallengeTypesToJSON(value) {
|
|
|
91
97
|
return null;
|
|
92
98
|
}
|
|
93
99
|
switch (value['component']) {
|
|
94
|
-
case 'ak-
|
|
100
|
+
case 'ak-provider-oauth2-device-code':
|
|
101
|
+
return OAuthDeviceCodeChallengeToJSON(value);
|
|
102
|
+
case 'ak-provider-oauth2-device-code-finish':
|
|
103
|
+
return OAuthDeviceCodeFinishChallengeToJSON(value);
|
|
104
|
+
case 'ak-source-oauth-apple':
|
|
95
105
|
return AppleLoginChallengeToJSON(value);
|
|
96
|
-
case 'ak-
|
|
106
|
+
case 'ak-source-plex':
|
|
97
107
|
return PlexAuthenticationChallengeToJSON(value);
|
|
98
108
|
case 'ak-stage-access-denied':
|
|
99
109
|
return AccessDeniedChallengeToJSON(value);
|
|
@@ -31,6 +31,7 @@ export function CurrentTenantFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
|
|
32
32
|
'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
|
33
33
|
'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
|
34
|
+
'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
|
34
35
|
'defaultLocale': json['default_locale'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
@@ -51,5 +52,6 @@ export function CurrentTenantToJSON(value) {
|
|
|
51
52
|
'flow_recovery': value.flowRecovery,
|
|
52
53
|
'flow_unenrollment': value.flowUnenrollment,
|
|
53
54
|
'flow_user_settings': value.flowUserSettings,
|
|
55
|
+
'flow_device_code': value.flowDeviceCode,
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -22,6 +22,8 @@ import { ConsentChallengeResponseRequest } from './ConsentChallengeResponseReque
|
|
|
22
22
|
import { DummyChallengeResponseRequest } from './DummyChallengeResponseRequest';
|
|
23
23
|
import { EmailChallengeResponseRequest } from './EmailChallengeResponseRequest';
|
|
24
24
|
import { IdentificationChallengeResponseRequest } from './IdentificationChallengeResponseRequest';
|
|
25
|
+
import { OAuthDeviceCodeChallengeResponseRequest } from './OAuthDeviceCodeChallengeResponseRequest';
|
|
26
|
+
import { OAuthDeviceCodeFinishChallengeResponseRequest } from './OAuthDeviceCodeFinishChallengeResponseRequest';
|
|
25
27
|
import { PasswordChallengeResponseRequest } from './PasswordChallengeResponseRequest';
|
|
26
28
|
import { PlexAuthenticationChallengeResponseRequest } from './PlexAuthenticationChallengeResponseRequest';
|
|
27
29
|
import { PromptChallengeResponseRequest } from './PromptChallengeResponseRequest';
|
|
@@ -31,9 +33,13 @@ import { PromptChallengeResponseRequest } from './PromptChallengeResponseRequest
|
|
|
31
33
|
* @export
|
|
32
34
|
*/
|
|
33
35
|
export declare type FlowChallengeResponseRequest = {
|
|
34
|
-
component: 'ak-
|
|
36
|
+
component: 'ak-provider-oauth2-device-code';
|
|
37
|
+
} & OAuthDeviceCodeChallengeResponseRequest | {
|
|
38
|
+
component: 'ak-provider-oauth2-device-code-finish';
|
|
39
|
+
} & OAuthDeviceCodeFinishChallengeResponseRequest | {
|
|
40
|
+
component: 'ak-source-oauth-apple';
|
|
35
41
|
} & AppleChallengeResponseRequest | {
|
|
36
|
-
component: 'ak-
|
|
42
|
+
component: 'ak-source-plex';
|
|
37
43
|
} & PlexAuthenticationChallengeResponseRequest | {
|
|
38
44
|
component: 'ak-stage-authenticator-duo';
|
|
39
45
|
} & AuthenticatorDuoChallengeResponseRequest | {
|
|
@@ -24,6 +24,8 @@ import { ConsentChallengeResponseRequestFromJSONTyped, ConsentChallengeResponseR
|
|
|
24
24
|
import { DummyChallengeResponseRequestFromJSONTyped, DummyChallengeResponseRequestToJSON, } from './DummyChallengeResponseRequest';
|
|
25
25
|
import { EmailChallengeResponseRequestFromJSONTyped, EmailChallengeResponseRequestToJSON, } from './EmailChallengeResponseRequest';
|
|
26
26
|
import { IdentificationChallengeResponseRequestFromJSONTyped, IdentificationChallengeResponseRequestToJSON, } from './IdentificationChallengeResponseRequest';
|
|
27
|
+
import { OAuthDeviceCodeChallengeResponseRequestFromJSONTyped, OAuthDeviceCodeChallengeResponseRequestToJSON, } from './OAuthDeviceCodeChallengeResponseRequest';
|
|
28
|
+
import { OAuthDeviceCodeFinishChallengeResponseRequestFromJSONTyped, OAuthDeviceCodeFinishChallengeResponseRequestToJSON, } from './OAuthDeviceCodeFinishChallengeResponseRequest';
|
|
27
29
|
import { PasswordChallengeResponseRequestFromJSONTyped, PasswordChallengeResponseRequestToJSON, } from './PasswordChallengeResponseRequest';
|
|
28
30
|
import { PlexAuthenticationChallengeResponseRequestFromJSONTyped, PlexAuthenticationChallengeResponseRequestToJSON, } from './PlexAuthenticationChallengeResponseRequest';
|
|
29
31
|
import { PromptChallengeResponseRequestFromJSONTyped, PromptChallengeResponseRequestToJSON, } from './PromptChallengeResponseRequest';
|
|
@@ -35,10 +37,14 @@ export function FlowChallengeResponseRequestFromJSONTyped(json, ignoreDiscrimina
|
|
|
35
37
|
return json;
|
|
36
38
|
}
|
|
37
39
|
switch (json['component']) {
|
|
38
|
-
case 'ak-
|
|
39
|
-
return Object.assign(Object.assign({},
|
|
40
|
-
case 'ak-
|
|
41
|
-
return Object.assign(Object.assign({},
|
|
40
|
+
case 'ak-provider-oauth2-device-code':
|
|
41
|
+
return Object.assign(Object.assign({}, OAuthDeviceCodeChallengeResponseRequestFromJSONTyped(json, true)), { component: 'ak-provider-oauth2-device-code' });
|
|
42
|
+
case 'ak-provider-oauth2-device-code-finish':
|
|
43
|
+
return Object.assign(Object.assign({}, OAuthDeviceCodeFinishChallengeResponseRequestFromJSONTyped(json, true)), { component: 'ak-provider-oauth2-device-code-finish' });
|
|
44
|
+
case 'ak-source-oauth-apple':
|
|
45
|
+
return Object.assign(Object.assign({}, AppleChallengeResponseRequestFromJSONTyped(json, true)), { component: 'ak-source-oauth-apple' });
|
|
46
|
+
case 'ak-source-plex':
|
|
47
|
+
return Object.assign(Object.assign({}, PlexAuthenticationChallengeResponseRequestFromJSONTyped(json, true)), { component: 'ak-source-plex' });
|
|
42
48
|
case 'ak-stage-authenticator-duo':
|
|
43
49
|
return Object.assign(Object.assign({}, AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, true)), { component: 'ak-stage-authenticator-duo' });
|
|
44
50
|
case 'ak-stage-authenticator-sms':
|
|
@@ -79,9 +85,13 @@ export function FlowChallengeResponseRequestToJSON(value) {
|
|
|
79
85
|
return null;
|
|
80
86
|
}
|
|
81
87
|
switch (value['component']) {
|
|
82
|
-
case 'ak-
|
|
88
|
+
case 'ak-provider-oauth2-device-code':
|
|
89
|
+
return OAuthDeviceCodeChallengeResponseRequestToJSON(value);
|
|
90
|
+
case 'ak-provider-oauth2-device-code-finish':
|
|
91
|
+
return OAuthDeviceCodeFinishChallengeResponseRequestToJSON(value);
|
|
92
|
+
case 'ak-source-oauth-apple':
|
|
83
93
|
return AppleChallengeResponseRequestToJSON(value);
|
|
84
|
-
case 'ak-
|
|
94
|
+
case 'ak-source-plex':
|
|
85
95
|
return PlexAuthenticationChallengeResponseRequestToJSON(value);
|
|
86
96
|
case 'ak-stage-authenticator-duo':
|
|
87
97
|
return AuthenticatorDuoChallengeResponseRequestToJSON(value);
|
|
@@ -18,9 +18,9 @@ import { RedirectChallenge } from './RedirectChallenge';
|
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
export declare type LoginChallengeTypes = {
|
|
21
|
-
component: 'ak-
|
|
21
|
+
component: 'ak-source-oauth-apple';
|
|
22
22
|
} & AppleLoginChallenge | {
|
|
23
|
-
component: 'ak-
|
|
23
|
+
component: 'ak-source-plex';
|
|
24
24
|
} & PlexAuthenticationChallenge | {
|
|
25
25
|
component: 'xak-flow-redirect';
|
|
26
26
|
} & RedirectChallenge;
|
|
@@ -22,10 +22,10 @@ export function LoginChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
22
|
return json;
|
|
23
23
|
}
|
|
24
24
|
switch (json['component']) {
|
|
25
|
-
case 'ak-
|
|
26
|
-
return Object.assign(Object.assign({}, AppleLoginChallengeFromJSONTyped(json, true)), { component: 'ak-
|
|
27
|
-
case 'ak-
|
|
28
|
-
return Object.assign(Object.assign({}, PlexAuthenticationChallengeFromJSONTyped(json, true)), { component: 'ak-
|
|
25
|
+
case 'ak-source-oauth-apple':
|
|
26
|
+
return Object.assign(Object.assign({}, AppleLoginChallengeFromJSONTyped(json, true)), { component: 'ak-source-oauth-apple' });
|
|
27
|
+
case 'ak-source-plex':
|
|
28
|
+
return Object.assign(Object.assign({}, PlexAuthenticationChallengeFromJSONTyped(json, true)), { component: 'ak-source-plex' });
|
|
29
29
|
case 'xak-flow-redirect':
|
|
30
30
|
return Object.assign(Object.assign({}, RedirectChallengeFromJSONTyped(json, true)), { component: 'xak-flow-redirect' });
|
|
31
31
|
default:
|
|
@@ -40,9 +40,9 @@ export function LoginChallengeTypesToJSON(value) {
|
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
42
|
switch (value['component']) {
|
|
43
|
-
case 'ak-
|
|
43
|
+
case 'ak-source-oauth-apple':
|
|
44
44
|
return AppleLoginChallengeToJSON(value);
|
|
45
|
-
case 'ak-
|
|
45
|
+
case 'ak-source-plex':
|
|
46
46
|
return PlexAuthenticationChallengeToJSON(value);
|
|
47
47
|
case 'xak-flow-redirect':
|
|
48
48
|
return RedirectChallengeToJSON(value);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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 { ChallengeChoices } from './ChallengeChoices';
|
|
13
|
+
import { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
|
+
import { ErrorDetail } from './ErrorDetail';
|
|
15
|
+
/**
|
|
16
|
+
* OAuth Device code challenge
|
|
17
|
+
* @export
|
|
18
|
+
* @interface OAuthDeviceCodeChallenge
|
|
19
|
+
*/
|
|
20
|
+
export interface OAuthDeviceCodeChallenge {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {ChallengeChoices}
|
|
24
|
+
* @memberof OAuthDeviceCodeChallenge
|
|
25
|
+
*/
|
|
26
|
+
type: ChallengeChoices;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {ContextualFlowInfo}
|
|
30
|
+
* @memberof OAuthDeviceCodeChallenge
|
|
31
|
+
*/
|
|
32
|
+
flowInfo?: ContextualFlowInfo;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof OAuthDeviceCodeChallenge
|
|
37
|
+
*/
|
|
38
|
+
component?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
42
|
+
* @memberof OAuthDeviceCodeChallenge
|
|
43
|
+
*/
|
|
44
|
+
responseErrors?: {
|
|
45
|
+
[key: string]: Array<ErrorDetail>;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export declare function OAuthDeviceCodeChallengeFromJSON(json: any): OAuthDeviceCodeChallenge;
|
|
49
|
+
export declare function OAuthDeviceCodeChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthDeviceCodeChallenge;
|
|
50
|
+
export declare function OAuthDeviceCodeChallengeToJSON(value?: OAuthDeviceCodeChallenge | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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 { exists } from '../runtime';
|
|
15
|
+
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
|
+
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
|
+
export function OAuthDeviceCodeChallengeFromJSON(json) {
|
|
18
|
+
return OAuthDeviceCodeChallengeFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function OAuthDeviceCodeChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if ((json === undefined) || (json === null)) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'type': ChallengeChoicesFromJSON(json['type']),
|
|
26
|
+
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
27
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
28
|
+
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function OAuthDeviceCodeChallengeToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'type': ChallengeChoicesToJSON(value.type),
|
|
40
|
+
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
41
|
+
'component': value.component,
|
|
42
|
+
'response_errors': value.responseErrors,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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
|
+
* Response that includes the user-entered device code
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuthDeviceCodeChallengeResponseRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuthDeviceCodeChallengeResponseRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OAuthDeviceCodeChallengeResponseRequest
|
|
22
|
+
*/
|
|
23
|
+
component?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof OAuthDeviceCodeChallengeResponseRequest
|
|
28
|
+
*/
|
|
29
|
+
code: number;
|
|
30
|
+
}
|
|
31
|
+
export declare function OAuthDeviceCodeChallengeResponseRequestFromJSON(json: any): OAuthDeviceCodeChallengeResponseRequest;
|
|
32
|
+
export declare function OAuthDeviceCodeChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthDeviceCodeChallengeResponseRequest;
|
|
33
|
+
export declare function OAuthDeviceCodeChallengeResponseRequestToJSON(value?: OAuthDeviceCodeChallengeResponseRequest | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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 { exists } from '../runtime';
|
|
15
|
+
export function OAuthDeviceCodeChallengeResponseRequestFromJSON(json) {
|
|
16
|
+
return OAuthDeviceCodeChallengeResponseRequestFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function OAuthDeviceCodeChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
24
|
+
'code': json['code'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function OAuthDeviceCodeChallengeResponseRequestToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'component': value.component,
|
|
36
|
+
'code': value.code,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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 { ChallengeChoices } from './ChallengeChoices';
|
|
13
|
+
import { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
|
+
import { ErrorDetail } from './ErrorDetail';
|
|
15
|
+
/**
|
|
16
|
+
* Final challenge after user enters their code
|
|
17
|
+
* @export
|
|
18
|
+
* @interface OAuthDeviceCodeFinishChallenge
|
|
19
|
+
*/
|
|
20
|
+
export interface OAuthDeviceCodeFinishChallenge {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {ChallengeChoices}
|
|
24
|
+
* @memberof OAuthDeviceCodeFinishChallenge
|
|
25
|
+
*/
|
|
26
|
+
type: ChallengeChoices;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {ContextualFlowInfo}
|
|
30
|
+
* @memberof OAuthDeviceCodeFinishChallenge
|
|
31
|
+
*/
|
|
32
|
+
flowInfo?: ContextualFlowInfo;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof OAuthDeviceCodeFinishChallenge
|
|
37
|
+
*/
|
|
38
|
+
component?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
42
|
+
* @memberof OAuthDeviceCodeFinishChallenge
|
|
43
|
+
*/
|
|
44
|
+
responseErrors?: {
|
|
45
|
+
[key: string]: Array<ErrorDetail>;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export declare function OAuthDeviceCodeFinishChallengeFromJSON(json: any): OAuthDeviceCodeFinishChallenge;
|
|
49
|
+
export declare function OAuthDeviceCodeFinishChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthDeviceCodeFinishChallenge;
|
|
50
|
+
export declare function OAuthDeviceCodeFinishChallengeToJSON(value?: OAuthDeviceCodeFinishChallenge | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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 { exists } from '../runtime';
|
|
15
|
+
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
|
+
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
|
+
export function OAuthDeviceCodeFinishChallengeFromJSON(json) {
|
|
18
|
+
return OAuthDeviceCodeFinishChallengeFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function OAuthDeviceCodeFinishChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if ((json === undefined) || (json === null)) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'type': ChallengeChoicesFromJSON(json['type']),
|
|
26
|
+
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
27
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
28
|
+
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function OAuthDeviceCodeFinishChallengeToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'type': ChallengeChoicesToJSON(value.type),
|
|
40
|
+
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
41
|
+
'component': value.component,
|
|
42
|
+
'response_errors': value.responseErrors,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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
|
+
* Response that device has been authenticated and tab can be closed
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuthDeviceCodeFinishChallengeResponseRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuthDeviceCodeFinishChallengeResponseRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OAuthDeviceCodeFinishChallengeResponseRequest
|
|
22
|
+
*/
|
|
23
|
+
component?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function OAuthDeviceCodeFinishChallengeResponseRequestFromJSON(json: any): OAuthDeviceCodeFinishChallengeResponseRequest;
|
|
26
|
+
export declare function OAuthDeviceCodeFinishChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthDeviceCodeFinishChallengeResponseRequest;
|
|
27
|
+
export declare function OAuthDeviceCodeFinishChallengeResponseRequestToJSON(value?: OAuthDeviceCodeFinishChallengeResponseRequest | null): any;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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 { exists } from '../runtime';
|
|
15
|
+
export function OAuthDeviceCodeFinishChallengeResponseRequestFromJSON(json) {
|
|
16
|
+
return OAuthDeviceCodeFinishChallengeResponseRequestFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function OAuthDeviceCodeFinishChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function OAuthDeviceCodeFinishChallengeResponseRequestToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'component': value.component,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -75,6 +75,12 @@ export interface PatchedTenantRequest {
|
|
|
75
75
|
* @memberof PatchedTenantRequest
|
|
76
76
|
*/
|
|
77
77
|
flowUserSettings?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PatchedTenantRequest
|
|
82
|
+
*/
|
|
83
|
+
flowDeviceCode?: string | null;
|
|
78
84
|
/**
|
|
79
85
|
* Events will be deleted after this duration.(Format: weeks=3;days=2;hours=3,seconds=2).
|
|
80
86
|
* @type {string}
|
|
@@ -30,6 +30,7 @@ export function PatchedTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],
|
|
31
31
|
'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
|
32
32
|
'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
|
33
|
+
'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
|
33
34
|
'eventRetention': !exists(json, 'event_retention') ? undefined : json['event_retention'],
|
|
34
35
|
'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
|
|
35
36
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
@@ -53,6 +54,7 @@ export function PatchedTenantRequestToJSON(value) {
|
|
|
53
54
|
'flow_recovery': value.flowRecovery,
|
|
54
55
|
'flow_unenrollment': value.flowUnenrollment,
|
|
55
56
|
'flow_user_settings': value.flowUserSettings,
|
|
57
|
+
'flow_device_code': value.flowDeviceCode,
|
|
56
58
|
'event_retention': value.eventRetention,
|
|
57
59
|
'web_certificate': value.webCertificate,
|
|
58
60
|
'attributes': value.attributes,
|
|
@@ -25,6 +25,7 @@ export declare const ProviderTypeEnum: {
|
|
|
25
25
|
readonly Reddit: "reddit";
|
|
26
26
|
readonly Twitter: "twitter";
|
|
27
27
|
readonly Mailcow: "mailcow";
|
|
28
|
+
readonly Twitch: "twitch";
|
|
28
29
|
};
|
|
29
30
|
export declare type ProviderTypeEnum = typeof ProviderTypeEnum[keyof typeof ProviderTypeEnum];
|
|
30
31
|
export declare function ProviderTypeEnumFromJSON(json: any): ProviderTypeEnum;
|
|
@@ -26,7 +26,8 @@ export const ProviderTypeEnum = {
|
|
|
26
26
|
Okta: 'okta',
|
|
27
27
|
Reddit: 'reddit',
|
|
28
28
|
Twitter: 'twitter',
|
|
29
|
-
Mailcow: 'mailcow'
|
|
29
|
+
Mailcow: 'mailcow',
|
|
30
|
+
Twitch: 'twitch'
|
|
30
31
|
};
|
|
31
32
|
export function ProviderTypeEnumFromJSON(json) {
|
|
32
33
|
return ProviderTypeEnumFromJSONTyped(json, false);
|