Skip to content

Commit

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

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

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    Updated `ak-stage-authenticator-validate` component:
    * Changed property `device_challenges` (array)

        Changed items (object):
            > Single device challenge

        New required properties:
        - `last_used`

        * Added property `last_used` (string)

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

###### Request:

Changed content type : `application/json`

Updated `ak-stage-authenticator-validate` component:
* Changed property `selected_challenge` (object)
    > Single device challenge

    New required properties:
    - `last_used`

    * Added property `last_used` (string)

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    Updated `ak-stage-authenticator-validate` component:
    * Changed property `device_challenges` (array)

        Changed items (object):
            > Single device challenge

        New required properties:
        - `last_used`

        * Added property `last_used` (string)
  • Loading branch information
authentik-automation[bot] committed Oct 24, 2024
1 parent cbb4c4e commit 3fb4158
Show file tree
Hide file tree
Showing 6 changed files with 21 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.2024083.8"
version = "3.2024083.9"
authors = ["[email protected]"]
description = "Making authentication simple."
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions docs/DeviceChallenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**device_class** | **String** | |
**device_uid** | **String** | |
**challenge** | [**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md) | |
**last_used** | Option<**String**> | |

[[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/DeviceChallengeRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**device_class** | **String** | |
**device_uid** | **String** | |
**challenge** | [**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md) | |
**last_used** | Option<**String**> | |

[[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
10 changes: 10 additions & 0 deletions schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40204,10 +40204,15 @@ components:
challenge:
type: object
additionalProperties: {}
last_used:
type: string
format: date-time
nullable: true
required:
- challenge
- device_class
- device_uid
- last_used
DeviceChallengeRequest:
type: object
description: Single device challenge
Expand All @@ -40221,10 +40226,15 @@ components:
challenge:
type: object
additionalProperties: {}
last_used:
type: string
format: date-time
nullable: true
required:
- challenge
- device_class
- device_uid
- last_used
DeviceClassesEnum:
enum:
- static
Expand Down
4 changes: 4 additions & 0 deletions src/models/device_challenge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ pub struct DeviceChallenge {
pub device_uid: String,
#[serde(rename = "challenge")]
pub challenge: std::collections::HashMap<String, serde_json::Value>,
#[serde(rename = "last_used", deserialize_with = "Option::deserialize")]
pub last_used: Option<String>,
}

impl DeviceChallenge {
Expand All @@ -28,11 +30,13 @@ impl DeviceChallenge {
device_class: String,
device_uid: String,
challenge: std::collections::HashMap<String, serde_json::Value>,
last_used: Option<String>,
) -> DeviceChallenge {
DeviceChallenge {
device_class,
device_uid,
challenge,
last_used,
}
}
}
4 changes: 4 additions & 0 deletions src/models/device_challenge_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ pub struct DeviceChallengeRequest {
pub device_uid: String,
#[serde(rename = "challenge")]
pub challenge: std::collections::HashMap<String, serde_json::Value>,
#[serde(rename = "last_used", deserialize_with = "Option::deserialize")]
pub last_used: Option<String>,
}

impl DeviceChallengeRequest {
Expand All @@ -28,11 +30,13 @@ impl DeviceChallengeRequest {
device_class: String,
device_uid: String,
challenge: std::collections::HashMap<String, serde_json::Value>,
last_used: Option<String>,
) -> DeviceChallengeRequest {
DeviceChallengeRequest {
device_class,
device_uid,
challenge,
last_used,
}
}
}

0 comments on commit 3fb4158

Please sign in to comment.