@goauthentik/api 2022.9.0-1665393071 → 2022.9.0-1665741204

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 (87) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/dist/apis/CoreApi.d.ts +1 -0
  3. package/dist/apis/CoreApi.js +3 -0
  4. package/dist/apis/StagesApi.d.ts +1 -0
  5. package/dist/apis/StagesApi.js +3 -0
  6. package/dist/esm/apis/CoreApi.d.ts +1 -0
  7. package/dist/esm/apis/CoreApi.js +3 -0
  8. package/dist/esm/apis/StagesApi.d.ts +1 -0
  9. package/dist/esm/apis/StagesApi.js +3 -0
  10. package/dist/esm/models/AuthenticatorSMSStage.d.ts +6 -0
  11. package/dist/esm/models/AuthenticatorSMSStage.js +2 -0
  12. package/dist/esm/models/AuthenticatorSMSStageRequest.d.ts +6 -0
  13. package/dist/esm/models/AuthenticatorSMSStageRequest.js +2 -0
  14. package/dist/esm/models/ChallengeTypes.d.ts +8 -2
  15. package/dist/esm/models/ChallengeTypes.js +16 -6
  16. package/dist/esm/models/CurrentTenant.d.ts +6 -0
  17. package/dist/esm/models/CurrentTenant.js +2 -0
  18. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +8 -2
  19. package/dist/esm/models/FlowChallengeResponseRequest.js +16 -6
  20. package/dist/esm/models/LoginChallengeTypes.d.ts +2 -2
  21. package/dist/esm/models/LoginChallengeTypes.js +6 -6
  22. package/dist/esm/models/OAuthDeviceCodeChallenge.d.ts +50 -0
  23. package/dist/esm/models/OAuthDeviceCodeChallenge.js +44 -0
  24. package/dist/esm/models/OAuthDeviceCodeChallengeResponseRequest.d.ts +33 -0
  25. package/dist/esm/models/OAuthDeviceCodeChallengeResponseRequest.js +38 -0
  26. package/dist/esm/models/OAuthDeviceCodeFinishChallenge.d.ts +50 -0
  27. package/dist/esm/models/OAuthDeviceCodeFinishChallenge.js +44 -0
  28. package/dist/esm/models/OAuthDeviceCodeFinishChallengeResponseRequest.d.ts +27 -0
  29. package/dist/esm/models/OAuthDeviceCodeFinishChallengeResponseRequest.js +36 -0
  30. package/dist/esm/models/PatchedAuthenticatorSMSStageRequest.d.ts +6 -0
  31. package/dist/esm/models/PatchedAuthenticatorSMSStageRequest.js +2 -0
  32. package/dist/esm/models/PatchedTenantRequest.d.ts +6 -0
  33. package/dist/esm/models/PatchedTenantRequest.js +2 -0
  34. package/dist/esm/models/Tenant.d.ts +6 -0
  35. package/dist/esm/models/Tenant.js +2 -0
  36. package/dist/esm/models/TenantRequest.d.ts +6 -0
  37. package/dist/esm/models/TenantRequest.js +2 -0
  38. package/dist/esm/models/index.d.ts +4 -0
  39. package/dist/esm/models/index.js +4 -0
  40. package/dist/models/AuthenticatorSMSStage.d.ts +6 -0
  41. package/dist/models/AuthenticatorSMSStage.js +2 -0
  42. package/dist/models/AuthenticatorSMSStageRequest.d.ts +6 -0
  43. package/dist/models/AuthenticatorSMSStageRequest.js +2 -0
  44. package/dist/models/ChallengeTypes.d.ts +8 -2
  45. package/dist/models/ChallengeTypes.js +16 -6
  46. package/dist/models/CurrentTenant.d.ts +6 -0
  47. package/dist/models/CurrentTenant.js +2 -0
  48. package/dist/models/FlowChallengeResponseRequest.d.ts +8 -2
  49. package/dist/models/FlowChallengeResponseRequest.js +16 -6
  50. package/dist/models/LoginChallengeTypes.d.ts +2 -2
  51. package/dist/models/LoginChallengeTypes.js +6 -6
  52. package/dist/models/OAuthDeviceCodeChallenge.d.ts +50 -0
  53. package/dist/models/OAuthDeviceCodeChallenge.js +50 -0
  54. package/dist/models/OAuthDeviceCodeChallengeResponseRequest.d.ts +33 -0
  55. package/dist/models/OAuthDeviceCodeChallengeResponseRequest.js +44 -0
  56. package/dist/models/OAuthDeviceCodeFinishChallenge.d.ts +50 -0
  57. package/dist/models/OAuthDeviceCodeFinishChallenge.js +50 -0
  58. package/dist/models/OAuthDeviceCodeFinishChallengeResponseRequest.d.ts +27 -0
  59. package/dist/models/OAuthDeviceCodeFinishChallengeResponseRequest.js +42 -0
  60. package/dist/models/PatchedAuthenticatorSMSStageRequest.d.ts +6 -0
  61. package/dist/models/PatchedAuthenticatorSMSStageRequest.js +2 -0
  62. package/dist/models/PatchedTenantRequest.d.ts +6 -0
  63. package/dist/models/PatchedTenantRequest.js +2 -0
  64. package/dist/models/Tenant.d.ts +6 -0
  65. package/dist/models/Tenant.js +2 -0
  66. package/dist/models/TenantRequest.d.ts +6 -0
  67. package/dist/models/TenantRequest.js +2 -0
  68. package/dist/models/index.d.ts +4 -0
  69. package/dist/models/index.js +4 -0
  70. package/package.json +1 -1
  71. package/src/apis/CoreApi.ts +5 -0
  72. package/src/apis/StagesApi.ts +5 -0
  73. package/src/models/AuthenticatorSMSStage.ts +8 -0
  74. package/src/models/AuthenticatorSMSStageRequest.ts +8 -0
  75. package/src/models/ChallengeTypes.ts +27 -7
  76. package/src/models/CurrentTenant.ts +8 -0
  77. package/src/models/FlowChallengeResponseRequest.ts +27 -7
  78. package/src/models/LoginChallengeTypes.ts +7 -7
  79. package/src/models/OAuthDeviceCodeChallenge.ts +99 -0
  80. package/src/models/OAuthDeviceCodeChallengeResponseRequest.ts +64 -0
  81. package/src/models/OAuthDeviceCodeFinishChallenge.ts +99 -0
  82. package/src/models/OAuthDeviceCodeFinishChallengeResponseRequest.ts +56 -0
  83. package/src/models/PatchedAuthenticatorSMSStageRequest.ts +8 -0
  84. package/src/models/PatchedTenantRequest.ts +8 -0
  85. package/src/models/Tenant.ts +8 -0
  86. package/src/models/TenantRequest.ts +8 -0
  87. package/src/models/index.ts +4 -0
@@ -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
@@ -123,6 +123,7 @@ export interface CoreTenantsListRequest {
123
123
  domain?: string;
124
124
  eventRetention?: string;
125
125
  flowAuthentication?: string;
126
+ flowDeviceCode?: string;
126
127
  flowInvalidation?: string;
127
128
  flowRecovery?: string;
128
129
  flowUnenrollment?: string;
@@ -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
  }
@@ -80,6 +80,7 @@ export interface StagesAuthenticatorSmsListRequest {
80
80
  authType?: StagesAuthenticatorSmsListAuthTypeEnum;
81
81
  configureFlow?: string;
82
82
  fromNumber?: string;
83
+ mapping?: string;
83
84
  name?: string;
84
85
  ordering?: string;
85
86
  page?: number;
@@ -650,6 +650,9 @@ class StagesApi extends runtime.BaseAPI {
650
650
  if (requestParameters.fromNumber !== undefined) {
651
651
  queryParameters['from_number'] = requestParameters.fromNumber;
652
652
  }
653
+ if (requestParameters.mapping !== undefined) {
654
+ queryParameters['mapping'] = requestParameters.mapping;
655
+ }
653
656
  if (requestParameters.name !== undefined) {
654
657
  queryParameters['name'] = requestParameters.name;
655
658
  }
@@ -123,6 +123,7 @@ export interface CoreTenantsListRequest {
123
123
  domain?: string;
124
124
  eventRetention?: string;
125
125
  flowAuthentication?: string;
126
+ flowDeviceCode?: string;
126
127
  flowInvalidation?: string;
127
128
  flowRecovery?: string;
128
129
  flowUnenrollment?: string;
@@ -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
  }
@@ -80,6 +80,7 @@ export interface StagesAuthenticatorSmsListRequest {
80
80
  authType?: StagesAuthenticatorSmsListAuthTypeEnum;
81
81
  configureFlow?: string;
82
82
  fromNumber?: string;
83
+ mapping?: string;
83
84
  name?: string;
84
85
  ordering?: string;
85
86
  page?: number;
@@ -647,6 +647,9 @@ export class StagesApi extends runtime.BaseAPI {
647
647
  if (requestParameters.fromNumber !== undefined) {
648
648
  queryParameters['from_number'] = requestParameters.fromNumber;
649
649
  }
650
+ if (requestParameters.mapping !== undefined) {
651
+ queryParameters['mapping'] = requestParameters.mapping;
652
+ }
650
653
  if (requestParameters.name !== undefined) {
651
654
  queryParameters['name'] = requestParameters.name;
652
655
  }
@@ -108,6 +108,12 @@ export interface AuthenticatorSMSStage {
108
108
  * @memberof AuthenticatorSMSStage
109
109
  */
110
110
  verifyOnly?: boolean;
111
+ /**
112
+ * Optionally modify the payload being sent to custom providers.
113
+ * @type {string}
114
+ * @memberof AuthenticatorSMSStage
115
+ */
116
+ mapping?: string | null;
111
117
  }
112
118
  export declare function AuthenticatorSMSStageFromJSON(json: any): AuthenticatorSMSStage;
113
119
  export declare function AuthenticatorSMSStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSMSStage;
@@ -38,6 +38,7 @@ export function AuthenticatorSMSStageFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'authPassword': !exists(json, 'auth_password') ? undefined : json['auth_password'],
39
39
  'authType': !exists(json, 'auth_type') ? undefined : AuthTypeEnumFromJSON(json['auth_type']),
40
40
  'verifyOnly': !exists(json, 'verify_only') ? undefined : json['verify_only'],
41
+ 'mapping': !exists(json, 'mapping') ? undefined : json['mapping'],
41
42
  };
42
43
  }
43
44
  export function AuthenticatorSMSStageToJSON(value) {
@@ -58,5 +59,6 @@ export function AuthenticatorSMSStageToJSON(value) {
58
59
  'auth_password': value.authPassword,
59
60
  'auth_type': AuthTypeEnumToJSON(value.authType),
60
61
  'verify_only': value.verifyOnly,
62
+ 'mapping': value.mapping,
61
63
  };
62
64
  }
@@ -78,6 +78,12 @@ export interface AuthenticatorSMSStageRequest {
78
78
  * @memberof AuthenticatorSMSStageRequest
79
79
  */
80
80
  verifyOnly?: boolean;
81
+ /**
82
+ * Optionally modify the payload being sent to custom providers.
83
+ * @type {string}
84
+ * @memberof AuthenticatorSMSStageRequest
85
+ */
86
+ mapping?: string | null;
81
87
  }
82
88
  export declare function AuthenticatorSMSStageRequestFromJSON(json: any): AuthenticatorSMSStageRequest;
83
89
  export declare function AuthenticatorSMSStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorSMSStageRequest;
@@ -33,6 +33,7 @@ export function AuthenticatorSMSStageRequestFromJSONTyped(json, ignoreDiscrimina
33
33
  'authPassword': !exists(json, 'auth_password') ? undefined : json['auth_password'],
34
34
  'authType': !exists(json, 'auth_type') ? undefined : AuthTypeEnumFromJSON(json['auth_type']),
35
35
  'verifyOnly': !exists(json, 'verify_only') ? undefined : json['verify_only'],
36
+ 'mapping': !exists(json, 'mapping') ? undefined : json['mapping'],
36
37
  };
37
38
  }
38
39
  export function AuthenticatorSMSStageRequestToJSON(value) {
@@ -53,5 +54,6 @@ export function AuthenticatorSMSStageRequestToJSON(value) {
53
54
  'auth_password': value.authPassword,
54
55
  'auth_type': AuthTypeEnumToJSON(value.authType),
55
56
  'verify_only': value.verifyOnly,
57
+ 'mapping': value.mapping,
56
58
  };
57
59
  }
@@ -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-flow-sources-oauth-apple';
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-flow-sources-plex';
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-flow-sources-oauth-apple':
43
- return Object.assign(Object.assign({}, AppleLoginChallengeFromJSONTyped(json, true)), { component: 'ak-flow-sources-oauth-apple' });
44
- case 'ak-flow-sources-plex':
45
- return Object.assign(Object.assign({}, PlexAuthenticationChallengeFromJSONTyped(json, true)), { component: 'ak-flow-sources-plex' });
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-flow-sources-oauth-apple':
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-flow-sources-plex':
106
+ case 'ak-source-plex':
97
107
  return PlexAuthenticationChallengeToJSON(value);
98
108
  case 'ak-stage-access-denied':
99
109
  return AccessDeniedChallengeToJSON(value);
@@ -76,6 +76,12 @@ export interface CurrentTenant {
76
76
  * @memberof CurrentTenant
77
77
  */
78
78
  flowUserSettings?: string;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof CurrentTenant
83
+ */
84
+ flowDeviceCode?: string;
79
85
  /**
80
86
  *
81
87
  * @type {string}
@@ -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-flow-sources-oauth-apple';
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-flow-sources-plex';
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-flow-sources-oauth-apple':
39
- return Object.assign(Object.assign({}, AppleChallengeResponseRequestFromJSONTyped(json, true)), { component: 'ak-flow-sources-oauth-apple' });
40
- case 'ak-flow-sources-plex':
41
- return Object.assign(Object.assign({}, PlexAuthenticationChallengeResponseRequestFromJSONTyped(json, true)), { component: 'ak-flow-sources-plex' });
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-flow-sources-oauth-apple':
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-flow-sources-plex':
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-flow-sources-oauth-apple';
21
+ component: 'ak-source-oauth-apple';
22
22
  } & AppleLoginChallenge | {
23
- component: 'ak-flow-sources-plex';
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-flow-sources-oauth-apple':
26
- return Object.assign(Object.assign({}, AppleLoginChallengeFromJSONTyped(json, true)), { component: 'ak-flow-sources-oauth-apple' });
27
- case 'ak-flow-sources-plex':
28
- return Object.assign(Object.assign({}, PlexAuthenticationChallengeFromJSONTyped(json, true)), { component: 'ak-flow-sources-plex' });
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-flow-sources-oauth-apple':
43
+ case 'ak-source-oauth-apple':
44
44
  return AppleLoginChallengeToJSON(value);
45
- case 'ak-flow-sources-plex':
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
+ }