Skip to content

Commit

Permalink
Update API Client
Browse files Browse the repository at this point in the history
#### What's Changed
---

##### `GET` /stages/captcha/{stage_uuid}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `interactive` (boolean)

##### `PUT` /stages/captcha/{stage_uuid}/

###### Request:

Changed content type : `application/json`

* Added property `interactive` (boolean)

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `interactive` (boolean)

##### `PATCH` /stages/captcha/{stage_uuid}/

###### Request:

Changed content type : `application/json`

* Added property `interactive` (boolean)

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `interactive` (boolean)

##### `GET` /flows/executor/{flow_slug}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    Updated `ak-stage-captcha` component:
    New required properties:
    - `interactive`

    * Added property `interactive` (boolean)

##### `POST` /flows/executor/{flow_slug}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    Updated `ak-stage-captcha` component:
    New required properties:
    - `interactive`

    * Added property `interactive` (boolean)

##### `POST` /stages/captcha/

###### Request:

Changed content type : `application/json`

* Added property `interactive` (boolean)

###### Return Type:

Changed response : **201 Created**

* Changed content type : `application/json`

    * Added property `interactive` (boolean)

##### `GET` /stages/captcha/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Changed property `results` (array)

        Changed items (object):
            > CaptchaStage Serializer

        * Added property `interactive` (boolean)
  • Loading branch information
authentik-automation[bot] committed Nov 11, 2024
1 parent 8690fd5 commit 204705c
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "authentik-client"
version = "3.2024101.0"
version = "3.2024101.1"
authors = ["[email protected]"]
description = "Making authentication simple."
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions docs/CaptchaChallenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**pending_user_avatar** | **String** | |
**site_key** | **String** | |
**js_url** | **String** | |
**interactive** | **bool** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/CaptchaStage.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**public_key** | **String** | Public key, acquired your captcha Provider. |
**js_url** | Option<**String**> | | [optional]
**api_url** | Option<**String**> | | [optional]
**interactive** | Option<**bool**> | | [optional]
**score_min_threshold** | Option<**f64**> | | [optional]
**score_max_threshold** | Option<**f64**> | | [optional]
**error_on_invalid_score** | Option<**bool**> | When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/CaptchaStageRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**private_key** | **String** | Private key, acquired your captcha Provider. |
**js_url** | Option<**String**> | | [optional]
**api_url** | Option<**String**> | | [optional]
**interactive** | Option<**bool**> | | [optional]
**score_min_threshold** | Option<**f64**> | | [optional]
**score_max_threshold** | Option<**f64**> | | [optional]
**error_on_invalid_score** | Option<**bool**> | When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/PatchedCaptchaStageRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**private_key** | Option<**String**> | Private key, acquired your captcha Provider. | [optional]
**js_url** | Option<**String**> | | [optional]
**api_url** | Option<**String**> | | [optional]
**interactive** | Option<**bool**> | | [optional]
**score_min_threshold** | Option<**f64**> | | [optional]
**score_max_threshold** | Option<**f64**> | | [optional]
**error_on_invalid_score** | Option<**bool**> | When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions | [optional]
Expand Down
9 changes: 9 additions & 0 deletions schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39220,7 +39220,10 @@ components:
type: string
js_url:
type: string
interactive:
type: boolean
required:
- interactive
- js_url
- pending_user
- pending_user_avatar
Expand Down Expand Up @@ -39276,6 +39279,8 @@ components:
type: string
api_url:
type: string
interactive:
type: boolean
score_min_threshold:
type: number
format: double
Expand Down Expand Up @@ -39322,6 +39327,8 @@ components:
api_url:
type: string
minLength: 1
interactive:
type: boolean
score_min_threshold:
type: number
format: double
Expand Down Expand Up @@ -47732,6 +47739,8 @@ components:
api_url:
type: string
minLength: 1
interactive:
type: boolean
score_min_threshold:
type: number
format: double
Expand Down
4 changes: 4 additions & 0 deletions src/models/captcha_challenge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pub struct CaptchaChallenge {
pub site_key: String,
#[serde(rename = "js_url")]
pub js_url: String,
#[serde(rename = "interactive")]
pub interactive: bool,
}

impl CaptchaChallenge {
Expand All @@ -37,6 +39,7 @@ impl CaptchaChallenge {
pending_user_avatar: String,
site_key: String,
js_url: String,
interactive: bool,
) -> CaptchaChallenge {
CaptchaChallenge {
flow_info: None,
Expand All @@ -46,6 +49,7 @@ impl CaptchaChallenge {
pending_user_avatar,
site_key,
js_url,
interactive,
}
}
}
3 changes: 3 additions & 0 deletions src/models/captcha_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ pub struct CaptchaStage {
pub js_url: Option<String>,
#[serde(rename = "api_url", skip_serializing_if = "Option::is_none")]
pub api_url: Option<String>,
#[serde(rename = "interactive", skip_serializing_if = "Option::is_none")]
pub interactive: Option<bool>,
#[serde(rename = "score_min_threshold", skip_serializing_if = "Option::is_none")]
pub score_min_threshold: Option<f64>,
#[serde(rename = "score_max_threshold", skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -70,6 +72,7 @@ impl CaptchaStage {
public_key,
js_url: None,
api_url: None,
interactive: None,
score_min_threshold: None,
score_max_threshold: None,
error_on_invalid_score: None,
Expand Down
3 changes: 3 additions & 0 deletions src/models/captcha_stage_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pub struct CaptchaStageRequest {
pub js_url: Option<String>,
#[serde(rename = "api_url", skip_serializing_if = "Option::is_none")]
pub api_url: Option<String>,
#[serde(rename = "interactive", skip_serializing_if = "Option::is_none")]
pub interactive: Option<bool>,
#[serde(rename = "score_min_threshold", skip_serializing_if = "Option::is_none")]
pub score_min_threshold: Option<f64>,
#[serde(rename = "score_max_threshold", skip_serializing_if = "Option::is_none")]
Expand All @@ -47,6 +49,7 @@ impl CaptchaStageRequest {
private_key,
js_url: None,
api_url: None,
interactive: None,
score_min_threshold: None,
score_max_threshold: None,
error_on_invalid_score: None,
Expand Down
3 changes: 3 additions & 0 deletions src/models/patched_captcha_stage_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pub struct PatchedCaptchaStageRequest {
pub js_url: Option<String>,
#[serde(rename = "api_url", skip_serializing_if = "Option::is_none")]
pub api_url: Option<String>,
#[serde(rename = "interactive", skip_serializing_if = "Option::is_none")]
pub interactive: Option<bool>,
#[serde(rename = "score_min_threshold", skip_serializing_if = "Option::is_none")]
pub score_min_threshold: Option<f64>,
#[serde(rename = "score_max_threshold", skip_serializing_if = "Option::is_none")]
Expand All @@ -47,6 +49,7 @@ impl PatchedCaptchaStageRequest {
private_key: None,
js_url: None,
api_url: None,
interactive: None,
score_min_threshold: None,
score_max_threshold: None,
error_on_invalid_score: None,
Expand Down

0 comments on commit 204705c

Please sign in to comment.