@goauthentik/api 2023.3.1-1679327702 → 2023.3.1-1679779929

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 (109) hide show
  1. package/dist/apis/ProvidersApi.d.ts +1 -0
  2. package/dist/apis/ProvidersApi.js +3 -0
  3. package/dist/apis/StagesApi.d.ts +12 -1
  4. package/dist/apis/StagesApi.js +33 -0
  5. package/dist/esm/apis/ProvidersApi.d.ts +1 -0
  6. package/dist/esm/apis/ProvidersApi.js +3 -0
  7. package/dist/esm/apis/StagesApi.d.ts +12 -1
  8. package/dist/esm/apis/StagesApi.js +34 -1
  9. package/dist/esm/models/ApplicationProviderObj.d.ts +6 -0
  10. package/dist/esm/models/ApplicationProviderObj.js +2 -0
  11. package/dist/esm/models/LDAPProvider.d.ts +6 -0
  12. package/dist/esm/models/LDAPProvider.js +2 -0
  13. package/dist/esm/models/LDAPProviderRequest.d.ts +6 -0
  14. package/dist/esm/models/LDAPProviderRequest.js +2 -0
  15. package/dist/esm/models/OAuth2Provider.d.ts +6 -0
  16. package/dist/esm/models/OAuth2Provider.js +2 -0
  17. package/dist/esm/models/OAuth2ProviderRequest.d.ts +6 -0
  18. package/dist/esm/models/OAuth2ProviderRequest.js +2 -0
  19. package/dist/esm/models/PatchedLDAPProviderRequest.d.ts +6 -0
  20. package/dist/esm/models/PatchedLDAPProviderRequest.js +2 -0
  21. package/dist/esm/models/PatchedOAuth2ProviderRequest.d.ts +6 -0
  22. package/dist/esm/models/PatchedOAuth2ProviderRequest.js +2 -0
  23. package/dist/esm/models/PatchedProxyProviderRequest.d.ts +6 -0
  24. package/dist/esm/models/PatchedProxyProviderRequest.js +2 -0
  25. package/dist/esm/models/PatchedRadiusProviderRequest.d.ts +7 -1
  26. package/dist/esm/models/PatchedRadiusProviderRequest.js +2 -0
  27. package/dist/esm/models/PatchedSAMLProviderRequest.d.ts +6 -0
  28. package/dist/esm/models/PatchedSAMLProviderRequest.js +2 -0
  29. package/dist/esm/models/PromptTypeEnum.d.ts +1 -1
  30. package/dist/esm/models/PromptTypeEnum.js +1 -1
  31. package/dist/esm/models/Provider.d.ts +6 -0
  32. package/dist/esm/models/Provider.js +2 -0
  33. package/dist/esm/models/ProviderRequest.d.ts +6 -0
  34. package/dist/esm/models/ProviderRequest.js +2 -0
  35. package/dist/esm/models/ProxyProvider.d.ts +6 -0
  36. package/dist/esm/models/ProxyProvider.js +2 -0
  37. package/dist/esm/models/ProxyProviderRequest.d.ts +6 -0
  38. package/dist/esm/models/ProxyProviderRequest.js +2 -0
  39. package/dist/esm/models/RadiusOutpostConfig.d.ts +1 -1
  40. package/dist/esm/models/RadiusProvider.d.ts +7 -1
  41. package/dist/esm/models/RadiusProvider.js +2 -0
  42. package/dist/esm/models/RadiusProviderRequest.d.ts +7 -1
  43. package/dist/esm/models/RadiusProviderRequest.js +2 -0
  44. package/dist/esm/models/SAMLProvider.d.ts +6 -0
  45. package/dist/esm/models/SAMLProvider.js +2 -0
  46. package/dist/esm/models/SAMLProviderRequest.d.ts +6 -0
  47. package/dist/esm/models/SAMLProviderRequest.js +2 -0
  48. package/dist/models/ApplicationProviderObj.d.ts +6 -0
  49. package/dist/models/ApplicationProviderObj.js +2 -0
  50. package/dist/models/LDAPProvider.d.ts +6 -0
  51. package/dist/models/LDAPProvider.js +2 -0
  52. package/dist/models/LDAPProviderRequest.d.ts +6 -0
  53. package/dist/models/LDAPProviderRequest.js +2 -0
  54. package/dist/models/OAuth2Provider.d.ts +6 -0
  55. package/dist/models/OAuth2Provider.js +2 -0
  56. package/dist/models/OAuth2ProviderRequest.d.ts +6 -0
  57. package/dist/models/OAuth2ProviderRequest.js +2 -0
  58. package/dist/models/PatchedLDAPProviderRequest.d.ts +6 -0
  59. package/dist/models/PatchedLDAPProviderRequest.js +2 -0
  60. package/dist/models/PatchedOAuth2ProviderRequest.d.ts +6 -0
  61. package/dist/models/PatchedOAuth2ProviderRequest.js +2 -0
  62. package/dist/models/PatchedProxyProviderRequest.d.ts +6 -0
  63. package/dist/models/PatchedProxyProviderRequest.js +2 -0
  64. package/dist/models/PatchedRadiusProviderRequest.d.ts +7 -1
  65. package/dist/models/PatchedRadiusProviderRequest.js +2 -0
  66. package/dist/models/PatchedSAMLProviderRequest.d.ts +6 -0
  67. package/dist/models/PatchedSAMLProviderRequest.js +2 -0
  68. package/dist/models/PromptTypeEnum.d.ts +1 -1
  69. package/dist/models/PromptTypeEnum.js +1 -1
  70. package/dist/models/Provider.d.ts +6 -0
  71. package/dist/models/Provider.js +2 -0
  72. package/dist/models/ProviderRequest.d.ts +6 -0
  73. package/dist/models/ProviderRequest.js +2 -0
  74. package/dist/models/ProxyProvider.d.ts +6 -0
  75. package/dist/models/ProxyProvider.js +2 -0
  76. package/dist/models/ProxyProviderRequest.d.ts +6 -0
  77. package/dist/models/ProxyProviderRequest.js +2 -0
  78. package/dist/models/RadiusOutpostConfig.d.ts +1 -1
  79. package/dist/models/RadiusProvider.d.ts +7 -1
  80. package/dist/models/RadiusProvider.js +2 -0
  81. package/dist/models/RadiusProviderRequest.d.ts +7 -1
  82. package/dist/models/RadiusProviderRequest.js +2 -0
  83. package/dist/models/SAMLProvider.d.ts +6 -0
  84. package/dist/models/SAMLProvider.js +2 -0
  85. package/dist/models/SAMLProviderRequest.d.ts +6 -0
  86. package/dist/models/SAMLProviderRequest.js +2 -0
  87. package/package.json +1 -1
  88. package/src/apis/ProvidersApi.ts +5 -0
  89. package/src/apis/StagesApi.ts +44 -0
  90. package/src/models/ApplicationProviderObj.ts +8 -0
  91. package/src/models/LDAPProvider.ts +8 -0
  92. package/src/models/LDAPProviderRequest.ts +8 -0
  93. package/src/models/OAuth2Provider.ts +8 -0
  94. package/src/models/OAuth2ProviderRequest.ts +8 -0
  95. package/src/models/PatchedLDAPProviderRequest.ts +8 -0
  96. package/src/models/PatchedOAuth2ProviderRequest.ts +8 -0
  97. package/src/models/PatchedProxyProviderRequest.ts +8 -0
  98. package/src/models/PatchedRadiusProviderRequest.ts +9 -1
  99. package/src/models/PatchedSAMLProviderRequest.ts +8 -0
  100. package/src/models/PromptTypeEnum.ts +1 -1
  101. package/src/models/Provider.ts +8 -0
  102. package/src/models/ProviderRequest.ts +8 -0
  103. package/src/models/ProxyProvider.ts +8 -0
  104. package/src/models/ProxyProviderRequest.ts +8 -0
  105. package/src/models/RadiusOutpostConfig.ts +1 -1
  106. package/src/models/RadiusProvider.ts +9 -1
  107. package/src/models/RadiusProviderRequest.ts +9 -1
  108. package/src/models/SAMLProvider.ts +8 -0
  109. package/src/models/SAMLProviderRequest.ts +8 -0
@@ -198,6 +198,7 @@ export interface ProvidersSamlListRequest {
198
198
  assertionValidNotBefore?: string;
199
199
  assertionValidNotOnOrAfter?: string;
200
200
  audience?: string;
201
+ authenticationFlow?: string;
201
202
  authorizationFlow?: string;
202
203
  digestAlgorithm?: ProvidersSamlListDigestAlgorithmEnum;
203
204
  issuer?: string;
@@ -1467,6 +1467,9 @@ class ProvidersApi extends runtime.BaseAPI {
1467
1467
  if (requestParameters.audience !== undefined) {
1468
1468
  queryParameters['audience'] = requestParameters.audience;
1469
1469
  }
1470
+ if (requestParameters.authenticationFlow !== undefined) {
1471
+ queryParameters['authentication_flow'] = requestParameters.authenticationFlow;
1472
+ }
1470
1473
  if (requestParameters.authorizationFlow !== undefined) {
1471
1474
  queryParameters['authorization_flow'] = requestParameters.authorizationFlow;
1472
1475
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageDeviceImportResponse, AuthenticatorDuoStageManualDeviceImportRequest, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
13
+ import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageDeviceImportResponse, AuthenticatorDuoStageManualDeviceImportRequest, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptChallenge, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
14
14
  export interface StagesAllDestroyRequest {
15
15
  stageUuid: string;
16
16
  }
@@ -523,6 +523,9 @@ export interface StagesPromptPromptsPartialUpdateRequest {
523
523
  promptUuid: string;
524
524
  patchedPromptRequest?: PatchedPromptRequest;
525
525
  }
526
+ export interface StagesPromptPromptsPreviewCreateRequest {
527
+ promptRequest: PromptRequest;
528
+ }
526
529
  export interface StagesPromptPromptsRetrieveRequest {
527
530
  promptUuid: string;
528
531
  }
@@ -1638,6 +1641,14 @@ export declare class StagesApi extends runtime.BaseAPI {
1638
1641
  * Prompt Viewset
1639
1642
  */
1640
1643
  stagesPromptPromptsPartialUpdate(requestParameters: StagesPromptPromptsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Prompt>;
1644
+ /**
1645
+ * Preview a prompt as a challenge, just like a flow would receive
1646
+ */
1647
+ stagesPromptPromptsPreviewCreateRaw(requestParameters: StagesPromptPromptsPreviewCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PromptChallenge>>;
1648
+ /**
1649
+ * Preview a prompt as a challenge, just like a flow would receive
1650
+ */
1651
+ stagesPromptPromptsPreviewCreate(requestParameters: StagesPromptPromptsPreviewCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PromptChallenge>;
1641
1652
  /**
1642
1653
  * Prompt Viewset
1643
1654
  */
@@ -4231,6 +4231,39 @@ class StagesApi extends runtime.BaseAPI {
4231
4231
  return yield response.value();
4232
4232
  });
4233
4233
  }
4234
+ /**
4235
+ * Preview a prompt as a challenge, just like a flow would receive
4236
+ */
4237
+ stagesPromptPromptsPreviewCreateRaw(requestParameters, initOverrides) {
4238
+ return __awaiter(this, void 0, void 0, function* () {
4239
+ if (requestParameters.promptRequest === null || requestParameters.promptRequest === undefined) {
4240
+ throw new runtime.RequiredError('promptRequest', 'Required parameter requestParameters.promptRequest was null or undefined when calling stagesPromptPromptsPreviewCreate.');
4241
+ }
4242
+ const queryParameters = {};
4243
+ const headerParameters = {};
4244
+ headerParameters['Content-Type'] = 'application/json';
4245
+ if (this.configuration && this.configuration.apiKey) {
4246
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4247
+ }
4248
+ const response = yield this.request({
4249
+ path: `/stages/prompt/prompts/preview/`,
4250
+ method: 'POST',
4251
+ headers: headerParameters,
4252
+ query: queryParameters,
4253
+ body: (0, models_1.PromptRequestToJSON)(requestParameters.promptRequest),
4254
+ }, initOverrides);
4255
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PromptChallengeFromJSON)(jsonValue));
4256
+ });
4257
+ }
4258
+ /**
4259
+ * Preview a prompt as a challenge, just like a flow would receive
4260
+ */
4261
+ stagesPromptPromptsPreviewCreate(requestParameters, initOverrides) {
4262
+ return __awaiter(this, void 0, void 0, function* () {
4263
+ const response = yield this.stagesPromptPromptsPreviewCreateRaw(requestParameters, initOverrides);
4264
+ return yield response.value();
4265
+ });
4266
+ }
4234
4267
  /**
4235
4268
  * Prompt Viewset
4236
4269
  */
@@ -198,6 +198,7 @@ export interface ProvidersSamlListRequest {
198
198
  assertionValidNotBefore?: string;
199
199
  assertionValidNotOnOrAfter?: string;
200
200
  audience?: string;
201
+ authenticationFlow?: string;
201
202
  authorizationFlow?: string;
202
203
  digestAlgorithm?: ProvidersSamlListDigestAlgorithmEnum;
203
204
  issuer?: string;
@@ -1464,6 +1464,9 @@ export class ProvidersApi extends runtime.BaseAPI {
1464
1464
  if (requestParameters.audience !== undefined) {
1465
1465
  queryParameters['audience'] = requestParameters.audience;
1466
1466
  }
1467
+ if (requestParameters.authenticationFlow !== undefined) {
1468
+ queryParameters['authentication_flow'] = requestParameters.authenticationFlow;
1469
+ }
1467
1470
  if (requestParameters.authorizationFlow !== undefined) {
1468
1471
  queryParameters['authorization_flow'] = requestParameters.authorizationFlow;
1469
1472
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageDeviceImportResponse, AuthenticatorDuoStageManualDeviceImportRequest, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
13
+ import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageDeviceImportResponse, AuthenticatorDuoStageManualDeviceImportRequest, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptChallenge, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
14
14
  export interface StagesAllDestroyRequest {
15
15
  stageUuid: string;
16
16
  }
@@ -523,6 +523,9 @@ export interface StagesPromptPromptsPartialUpdateRequest {
523
523
  promptUuid: string;
524
524
  patchedPromptRequest?: PatchedPromptRequest;
525
525
  }
526
+ export interface StagesPromptPromptsPreviewCreateRequest {
527
+ promptRequest: PromptRequest;
528
+ }
526
529
  export interface StagesPromptPromptsRetrieveRequest {
527
530
  promptUuid: string;
528
531
  }
@@ -1638,6 +1641,14 @@ export declare class StagesApi extends runtime.BaseAPI {
1638
1641
  * Prompt Viewset
1639
1642
  */
1640
1643
  stagesPromptPromptsPartialUpdate(requestParameters: StagesPromptPromptsPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Prompt>;
1644
+ /**
1645
+ * Preview a prompt as a challenge, just like a flow would receive
1646
+ */
1647
+ stagesPromptPromptsPreviewCreateRaw(requestParameters: StagesPromptPromptsPreviewCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PromptChallenge>>;
1648
+ /**
1649
+ * Preview a prompt as a challenge, just like a flow would receive
1650
+ */
1651
+ stagesPromptPromptsPreviewCreate(requestParameters: StagesPromptPromptsPreviewCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PromptChallenge>;
1641
1652
  /**
1642
1653
  * Prompt Viewset
1643
1654
  */
@@ -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 { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageRequestToJSON, AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageDeviceImportResponseFromJSON, AuthenticatorDuoStageManualDeviceImportRequestToJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticateWebAuthnStageListFromJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticateWebAuthnStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, } from '../models';
24
+ import { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageRequestToJSON, AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageDeviceImportResponseFromJSON, AuthenticatorDuoStageManualDeviceImportRequestToJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticateWebAuthnStageListFromJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticateWebAuthnStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptChallengeFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -4228,6 +4228,39 @@ export class StagesApi extends runtime.BaseAPI {
4228
4228
  return yield response.value();
4229
4229
  });
4230
4230
  }
4231
+ /**
4232
+ * Preview a prompt as a challenge, just like a flow would receive
4233
+ */
4234
+ stagesPromptPromptsPreviewCreateRaw(requestParameters, initOverrides) {
4235
+ return __awaiter(this, void 0, void 0, function* () {
4236
+ if (requestParameters.promptRequest === null || requestParameters.promptRequest === undefined) {
4237
+ throw new runtime.RequiredError('promptRequest', 'Required parameter requestParameters.promptRequest was null or undefined when calling stagesPromptPromptsPreviewCreate.');
4238
+ }
4239
+ const queryParameters = {};
4240
+ const headerParameters = {};
4241
+ headerParameters['Content-Type'] = 'application/json';
4242
+ if (this.configuration && this.configuration.apiKey) {
4243
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4244
+ }
4245
+ const response = yield this.request({
4246
+ path: `/stages/prompt/prompts/preview/`,
4247
+ method: 'POST',
4248
+ headers: headerParameters,
4249
+ query: queryParameters,
4250
+ body: PromptRequestToJSON(requestParameters.promptRequest),
4251
+ }, initOverrides);
4252
+ return new runtime.JSONApiResponse(response, (jsonValue) => PromptChallengeFromJSON(jsonValue));
4253
+ });
4254
+ }
4255
+ /**
4256
+ * Preview a prompt as a challenge, just like a flow would receive
4257
+ */
4258
+ stagesPromptPromptsPreviewCreate(requestParameters, initOverrides) {
4259
+ return __awaiter(this, void 0, void 0, function* () {
4260
+ const response = yield this.stagesPromptPromptsPreviewCreateRaw(requestParameters, initOverrides);
4261
+ return yield response.value();
4262
+ });
4263
+ }
4231
4264
  /**
4232
4265
  * Prompt Viewset
4233
4266
  */
@@ -27,6 +27,12 @@ export interface ApplicationProviderObj {
27
27
  * @memberof ApplicationProviderObj
28
28
  */
29
29
  name: string;
30
+ /**
31
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
32
+ * @type {string}
33
+ * @memberof ApplicationProviderObj
34
+ */
35
+ authenticationFlow?: string | null;
30
36
  /**
31
37
  * Flow used when authorizing this provider.
32
38
  * @type {string}
@@ -22,6 +22,7 @@ export function ApplicationProviderObjFromJSONTyped(json, ignoreDiscriminator) {
22
22
  return {
23
23
  'pk': json['pk'],
24
24
  'name': json['name'],
25
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
25
26
  'authorizationFlow': json['authorization_flow'],
26
27
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
27
28
  'component': json['component'],
@@ -41,6 +42,7 @@ export function ApplicationProviderObjToJSON(value) {
41
42
  }
42
43
  return {
43
44
  'name': value.name,
45
+ 'authentication_flow': value.authenticationFlow,
44
46
  'authorization_flow': value.authorizationFlow,
45
47
  'property_mappings': value.propertyMappings,
46
48
  };
@@ -28,6 +28,12 @@ export interface LDAPProvider {
28
28
  * @memberof LDAPProvider
29
29
  */
30
30
  name: string;
31
+ /**
32
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
33
+ * @type {string}
34
+ * @memberof LDAPProvider
35
+ */
36
+ authenticationFlow?: string | null;
31
37
  /**
32
38
  * Flow used when authorizing this provider.
33
39
  * @type {string}
@@ -23,6 +23,7 @@ export function LDAPProviderFromJSONTyped(json, ignoreDiscriminator) {
23
23
  return {
24
24
  'pk': json['pk'],
25
25
  'name': json['name'],
26
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
26
27
  'authorizationFlow': json['authorization_flow'],
27
28
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
28
29
  'component': json['component'],
@@ -51,6 +52,7 @@ export function LDAPProviderToJSON(value) {
51
52
  }
52
53
  return {
53
54
  'name': value.name,
55
+ 'authentication_flow': value.authenticationFlow,
54
56
  'authorization_flow': value.authorizationFlow,
55
57
  'property_mappings': value.propertyMappings,
56
58
  'base_dn': value.baseDn,
@@ -22,6 +22,12 @@ export interface LDAPProviderRequest {
22
22
  * @memberof LDAPProviderRequest
23
23
  */
24
24
  name: string;
25
+ /**
26
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
27
+ * @type {string}
28
+ * @memberof LDAPProviderRequest
29
+ */
30
+ authenticationFlow?: string | null;
25
31
  /**
26
32
  * Flow used when authorizing this provider.
27
33
  * @type {string}
@@ -22,6 +22,7 @@ export function LDAPProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
22
22
  }
23
23
  return {
24
24
  'name': json['name'],
25
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
25
26
  'authorizationFlow': json['authorization_flow'],
26
27
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
27
28
  'baseDn': !exists(json, 'base_dn') ? undefined : json['base_dn'],
@@ -43,6 +44,7 @@ export function LDAPProviderRequestToJSON(value) {
43
44
  }
44
45
  return {
45
46
  'name': value.name,
47
+ 'authentication_flow': value.authenticationFlow,
46
48
  'authorization_flow': value.authorizationFlow,
47
49
  'property_mappings': value.propertyMappings,
48
50
  'base_dn': value.baseDn,
@@ -30,6 +30,12 @@ export interface OAuth2Provider {
30
30
  * @memberof OAuth2Provider
31
31
  */
32
32
  name: string;
33
+ /**
34
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
35
+ * @type {string}
36
+ * @memberof OAuth2Provider
37
+ */
38
+ authenticationFlow?: string | null;
33
39
  /**
34
40
  * Flow used when authorizing this provider.
35
41
  * @type {string}
@@ -25,6 +25,7 @@ export function OAuth2ProviderFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return {
26
26
  'pk': json['pk'],
27
27
  'name': json['name'],
28
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
28
29
  'authorizationFlow': json['authorization_flow'],
29
30
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
30
31
  'component': json['component'],
@@ -56,6 +57,7 @@ export function OAuth2ProviderToJSON(value) {
56
57
  }
57
58
  return {
58
59
  'name': value.name,
60
+ 'authentication_flow': value.authenticationFlow,
59
61
  'authorization_flow': value.authorizationFlow,
60
62
  'property_mappings': value.propertyMappings,
61
63
  'client_type': ClientTypeEnumToJSON(value.clientType),
@@ -24,6 +24,12 @@ export interface OAuth2ProviderRequest {
24
24
  * @memberof OAuth2ProviderRequest
25
25
  */
26
26
  name: string;
27
+ /**
28
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
29
+ * @type {string}
30
+ * @memberof OAuth2ProviderRequest
31
+ */
32
+ authenticationFlow?: string | null;
27
33
  /**
28
34
  * Flow used when authorizing this provider.
29
35
  * @type {string}
@@ -24,6 +24,7 @@ export function OAuth2ProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
24
24
  }
25
25
  return {
26
26
  'name': json['name'],
27
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
27
28
  'authorizationFlow': json['authorization_flow'],
28
29
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
29
30
  'clientType': !exists(json, 'client_type') ? undefined : ClientTypeEnumFromJSON(json['client_type']),
@@ -49,6 +50,7 @@ export function OAuth2ProviderRequestToJSON(value) {
49
50
  }
50
51
  return {
51
52
  'name': value.name,
53
+ 'authentication_flow': value.authenticationFlow,
52
54
  'authorization_flow': value.authorizationFlow,
53
55
  'property_mappings': value.propertyMappings,
54
56
  'client_type': ClientTypeEnumToJSON(value.clientType),
@@ -22,6 +22,12 @@ export interface PatchedLDAPProviderRequest {
22
22
  * @memberof PatchedLDAPProviderRequest
23
23
  */
24
24
  name?: string;
25
+ /**
26
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
27
+ * @type {string}
28
+ * @memberof PatchedLDAPProviderRequest
29
+ */
30
+ authenticationFlow?: string | null;
25
31
  /**
26
32
  * Flow used when authorizing this provider.
27
33
  * @type {string}
@@ -22,6 +22,7 @@ export function PatchedLDAPProviderRequestFromJSONTyped(json, ignoreDiscriminato
22
22
  }
23
23
  return {
24
24
  'name': !exists(json, 'name') ? undefined : json['name'],
25
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
25
26
  'authorizationFlow': !exists(json, 'authorization_flow') ? undefined : json['authorization_flow'],
26
27
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
27
28
  'baseDn': !exists(json, 'base_dn') ? undefined : json['base_dn'],
@@ -43,6 +44,7 @@ export function PatchedLDAPProviderRequestToJSON(value) {
43
44
  }
44
45
  return {
45
46
  'name': value.name,
47
+ 'authentication_flow': value.authenticationFlow,
46
48
  'authorization_flow': value.authorizationFlow,
47
49
  'property_mappings': value.propertyMappings,
48
50
  'base_dn': value.baseDn,
@@ -24,6 +24,12 @@ export interface PatchedOAuth2ProviderRequest {
24
24
  * @memberof PatchedOAuth2ProviderRequest
25
25
  */
26
26
  name?: string;
27
+ /**
28
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
29
+ * @type {string}
30
+ * @memberof PatchedOAuth2ProviderRequest
31
+ */
32
+ authenticationFlow?: string | null;
27
33
  /**
28
34
  * Flow used when authorizing this provider.
29
35
  * @type {string}
@@ -24,6 +24,7 @@ export function PatchedOAuth2ProviderRequestFromJSONTyped(json, ignoreDiscrimina
24
24
  }
25
25
  return {
26
26
  'name': !exists(json, 'name') ? undefined : json['name'],
27
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
27
28
  'authorizationFlow': !exists(json, 'authorization_flow') ? undefined : json['authorization_flow'],
28
29
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
29
30
  'clientType': !exists(json, 'client_type') ? undefined : ClientTypeEnumFromJSON(json['client_type']),
@@ -49,6 +50,7 @@ export function PatchedOAuth2ProviderRequestToJSON(value) {
49
50
  }
50
51
  return {
51
52
  'name': value.name,
53
+ 'authentication_flow': value.authenticationFlow,
52
54
  'authorization_flow': value.authorizationFlow,
53
55
  'property_mappings': value.propertyMappings,
54
56
  'client_type': ClientTypeEnumToJSON(value.clientType),
@@ -22,6 +22,12 @@ export interface PatchedProxyProviderRequest {
22
22
  * @memberof PatchedProxyProviderRequest
23
23
  */
24
24
  name?: string;
25
+ /**
26
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
27
+ * @type {string}
28
+ * @memberof PatchedProxyProviderRequest
29
+ */
30
+ authenticationFlow?: string | null;
25
31
  /**
26
32
  * Flow used when authorizing this provider.
27
33
  * @type {string}
@@ -22,6 +22,7 @@ export function PatchedProxyProviderRequestFromJSONTyped(json, ignoreDiscriminat
22
22
  }
23
23
  return {
24
24
  'name': !exists(json, 'name') ? undefined : json['name'],
25
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
25
26
  'authorizationFlow': !exists(json, 'authorization_flow') ? undefined : json['authorization_flow'],
26
27
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
27
28
  'internalHost': !exists(json, 'internal_host') ? undefined : json['internal_host'],
@@ -49,6 +50,7 @@ export function PatchedProxyProviderRequestToJSON(value) {
49
50
  }
50
51
  return {
51
52
  'name': value.name,
53
+ 'authentication_flow': value.authenticationFlow,
52
54
  'authorization_flow': value.authorizationFlow,
53
55
  'property_mappings': value.propertyMappings,
54
56
  'internal_host': value.internalHost,
@@ -21,6 +21,12 @@ export interface PatchedRadiusProviderRequest {
21
21
  * @memberof PatchedRadiusProviderRequest
22
22
  */
23
23
  name?: string;
24
+ /**
25
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
26
+ * @type {string}
27
+ * @memberof PatchedRadiusProviderRequest
28
+ */
29
+ authenticationFlow?: string | null;
24
30
  /**
25
31
  * Flow used when authorizing this provider.
26
32
  * @type {string}
@@ -34,7 +40,7 @@ export interface PatchedRadiusProviderRequest {
34
40
  */
35
41
  propertyMappings?: Array<string>;
36
42
  /**
37
- * List of CIDRs (comma-seperated) that clients can connect from. A more specific CIDR will match before a looser one. Clients connecting from a non-specified CIDR will be dropped.
43
+ * List of CIDRs (comma-separated) that clients can connect from. A more specific CIDR will match before a looser one. Clients connecting from a non-specified CIDR will be dropped.
38
44
  * @type {string}
39
45
  * @memberof PatchedRadiusProviderRequest
40
46
  */
@@ -21,6 +21,7 @@ export function PatchedRadiusProviderRequestFromJSONTyped(json, ignoreDiscrimina
21
21
  }
22
22
  return {
23
23
  'name': !exists(json, 'name') ? undefined : json['name'],
24
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
24
25
  'authorizationFlow': !exists(json, 'authorization_flow') ? undefined : json['authorization_flow'],
25
26
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
26
27
  'clientNetworks': !exists(json, 'client_networks') ? undefined : json['client_networks'],
@@ -36,6 +37,7 @@ export function PatchedRadiusProviderRequestToJSON(value) {
36
37
  }
37
38
  return {
38
39
  'name': value.name,
40
+ 'authentication_flow': value.authenticationFlow,
39
41
  'authorization_flow': value.authorizationFlow,
40
42
  'property_mappings': value.propertyMappings,
41
43
  'client_networks': value.clientNetworks,
@@ -24,6 +24,12 @@ export interface PatchedSAMLProviderRequest {
24
24
  * @memberof PatchedSAMLProviderRequest
25
25
  */
26
26
  name?: string;
27
+ /**
28
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
29
+ * @type {string}
30
+ * @memberof PatchedSAMLProviderRequest
31
+ */
32
+ authenticationFlow?: string | null;
27
33
  /**
28
34
  * Flow used when authorizing this provider.
29
35
  * @type {string}
@@ -24,6 +24,7 @@ export function PatchedSAMLProviderRequestFromJSONTyped(json, ignoreDiscriminato
24
24
  }
25
25
  return {
26
26
  'name': !exists(json, 'name') ? undefined : json['name'],
27
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
27
28
  'authorizationFlow': !exists(json, 'authorization_flow') ? undefined : json['authorization_flow'],
28
29
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
29
30
  'acsUrl': !exists(json, 'acs_url') ? undefined : json['acs_url'],
@@ -49,6 +50,7 @@ export function PatchedSAMLProviderRequestToJSON(value) {
49
50
  }
50
51
  return {
51
52
  'name': value.name,
53
+ 'authentication_flow': value.authenticationFlow,
52
54
  'authorization_flow': value.authorizationFlow,
53
55
  'property_mappings': value.propertyMappings,
54
56
  'acs_url': value.acsUrl,
@@ -16,7 +16,7 @@
16
16
  * * `text_area_read_only` - Text area (read-only): Multiline Text input, but cannot be edited.
17
17
  * * `username` - Username: Same as Text input, but checks for and prevents duplicate usernames.
18
18
  * * `email` - Email: Text field with Email type.
19
- * * `password` - Password: Masked input, password is validated against sources. Policies still have to be applied to this Stage. If two of these are used in the same stage, they are ensured to be identical.
19
+ * * `password` - Password: Masked input, multiple inputs of this type on the same prompt need to be identical.
20
20
  * * `number` - Number
21
21
  * * `checkbox` - Checkbox
22
22
  * * `radio-button-group` - Fixed choice field rendered as a group of radio buttons.
@@ -18,7 +18,7 @@
18
18
  * * `text_area_read_only` - Text area (read-only): Multiline Text input, but cannot be edited.
19
19
  * * `username` - Username: Same as Text input, but checks for and prevents duplicate usernames.
20
20
  * * `email` - Email: Text field with Email type.
21
- * * `password` - Password: Masked input, password is validated against sources. Policies still have to be applied to this Stage. If two of these are used in the same stage, they are ensured to be identical.
21
+ * * `password` - Password: Masked input, multiple inputs of this type on the same prompt need to be identical.
22
22
  * * `number` - Number
23
23
  * * `checkbox` - Checkbox
24
24
  * * `radio-button-group` - Fixed choice field rendered as a group of radio buttons.
@@ -27,6 +27,12 @@ export interface Provider {
27
27
  * @memberof Provider
28
28
  */
29
29
  name: string;
30
+ /**
31
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
32
+ * @type {string}
33
+ * @memberof Provider
34
+ */
35
+ authenticationFlow?: string | null;
30
36
  /**
31
37
  * Flow used when authorizing this provider.
32
38
  * @type {string}
@@ -22,6 +22,7 @@ export function ProviderFromJSONTyped(json, ignoreDiscriminator) {
22
22
  return {
23
23
  'pk': json['pk'],
24
24
  'name': json['name'],
25
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
25
26
  'authorizationFlow': json['authorization_flow'],
26
27
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
27
28
  'component': json['component'],
@@ -41,6 +42,7 @@ export function ProviderToJSON(value) {
41
42
  }
42
43
  return {
43
44
  'name': value.name,
45
+ 'authentication_flow': value.authenticationFlow,
44
46
  'authorization_flow': value.authorizationFlow,
45
47
  'property_mappings': value.propertyMappings,
46
48
  };
@@ -21,6 +21,12 @@ export interface ProviderRequest {
21
21
  * @memberof ProviderRequest
22
22
  */
23
23
  name: string;
24
+ /**
25
+ * Flow used for authentication when the associated application is accessed by an un-authenticated user.
26
+ * @type {string}
27
+ * @memberof ProviderRequest
28
+ */
29
+ authenticationFlow?: string | null;
24
30
  /**
25
31
  * Flow used when authorizing this provider.
26
32
  * @type {string}
@@ -21,6 +21,7 @@ export function ProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
21
21
  }
22
22
  return {
23
23
  'name': json['name'],
24
+ 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],
24
25
  'authorizationFlow': json['authorization_flow'],
25
26
  'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],
26
27
  };
@@ -34,6 +35,7 @@ export function ProviderRequestToJSON(value) {
34
35
  }
35
36
  return {
36
37
  'name': value.name,
38
+ 'authentication_flow': value.authenticationFlow,
37
39
  'authorization_flow': value.authorizationFlow,
38
40
  'property_mappings': value.propertyMappings,
39
41
  };