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 c477ff2 commit 7f57e38
Show file tree
Hide file tree
Showing 11 changed files with 283 additions and 3 deletions.
14 changes: 14 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43947,7 +43947,10 @@ components:
type: string
js_url:
type: string
interactive:
type: boolean
required:
- interactive
- js_url
- pending_user
- pending_user_avatar
Expand All @@ -43973,6 +43976,7 @@ components:
error_on_invalid_score: true
verbose_name_plural: verbose_name_plural
api_url: api_url
interactive: true
score_min_threshold: 0.8008281904610115
flow_set:
- policy_engine_mode: null
Expand Down Expand Up @@ -44041,6 +44045,8 @@ components:
type: string
api_url:
type: string
interactive:
type: boolean
score_min_threshold:
format: double
type: number
Expand Down Expand Up @@ -44069,6 +44075,7 @@ components:
error_on_invalid_score: true
api_url: api_url
name: name
interactive: true
private_key: private_key
js_url: js_url
score_min_threshold: 0.8008281904610115
Expand Down Expand Up @@ -44113,6 +44120,8 @@ components:
api_url:
minLength: 1
type: string
interactive:
type: boolean
score_min_threshold:
format: double
type: number
Expand Down Expand Up @@ -53052,6 +53061,7 @@ components:
error_on_invalid_score: true
verbose_name_plural: verbose_name_plural
api_url: api_url
interactive: true
score_min_threshold: 0.8008281904610115
flow_set:
- policy_engine_mode: null
Expand Down Expand Up @@ -53089,6 +53099,7 @@ components:
error_on_invalid_score: true
verbose_name_plural: verbose_name_plural
api_url: api_url
interactive: true
score_min_threshold: 0.8008281904610115
flow_set:
- policy_engine_mode: null
Expand Down Expand Up @@ -60757,6 +60768,7 @@ components:
error_on_invalid_score: true
api_url: api_url
name: name
interactive: true
private_key: private_key
js_url: js_url
score_min_threshold: 0.8008281904610115
Expand Down Expand Up @@ -60801,6 +60813,8 @@ components:
api_url:
minLength: 1
type: string
interactive:
type: boolean
score_min_threshold:
format: double
type: number
Expand Down
23 changes: 22 additions & 1 deletion docs/CaptchaChallenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ Name | Type | Description | Notes
**PendingUserAvatar** | **string** | |
**SiteKey** | **string** | |
**JsUrl** | **string** | |
**Interactive** | **bool** | |

## Methods

### NewCaptchaChallenge

`func NewCaptchaChallenge(pendingUser string, pendingUserAvatar string, siteKey string, jsUrl string, ) *CaptchaChallenge`
`func NewCaptchaChallenge(pendingUser string, pendingUserAvatar string, siteKey string, jsUrl string, interactive bool, ) *CaptchaChallenge`

NewCaptchaChallenge instantiates a new CaptchaChallenge object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -186,6 +187,26 @@ and a boolean to check if the value has been set.
SetJsUrl sets JsUrl field to given value.


### GetInteractive

`func (o *CaptchaChallenge) GetInteractive() bool`

GetInteractive returns the Interactive field if non-nil, zero value otherwise.

### GetInteractiveOk

`func (o *CaptchaChallenge) GetInteractiveOk() (*bool, bool)`

GetInteractiveOk returns a tuple with the Interactive field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetInteractive

`func (o *CaptchaChallenge) SetInteractive(v bool)`

SetInteractive sets Interactive field to given value.



[[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
26 changes: 26 additions & 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
**PublicKey** | **string** | Public key, acquired your captcha Provider. |
**JsUrl** | Pointer to **string** | | [optional]
**ApiUrl** | Pointer to **string** | | [optional]
**Interactive** | Pointer to **bool** | | [optional]
**ScoreMinThreshold** | Pointer to **float64** | | [optional]
**ScoreMaxThreshold** | Pointer to **float64** | | [optional]
**ErrorOnInvalidScore** | Pointer to **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 Expand Up @@ -252,6 +253,31 @@ SetApiUrl sets ApiUrl field to given value.

HasApiUrl returns a boolean if a field has been set.

### GetInteractive

`func (o *CaptchaStage) GetInteractive() bool`

GetInteractive returns the Interactive field if non-nil, zero value otherwise.

### GetInteractiveOk

`func (o *CaptchaStage) GetInteractiveOk() (*bool, bool)`

GetInteractiveOk returns a tuple with the Interactive field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetInteractive

`func (o *CaptchaStage) SetInteractive(v bool)`

SetInteractive sets Interactive field to given value.

### HasInteractive

`func (o *CaptchaStage) HasInteractive() bool`

HasInteractive returns a boolean if a field has been set.

### GetScoreMinThreshold

`func (o *CaptchaStage) GetScoreMinThreshold() float64`
Expand Down
26 changes: 26 additions & 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
**PrivateKey** | **string** | Private key, acquired your captcha Provider. |
**JsUrl** | Pointer to **string** | | [optional]
**ApiUrl** | Pointer to **string** | | [optional]
**Interactive** | Pointer to **bool** | | [optional]
**ScoreMinThreshold** | Pointer to **float64** | | [optional]
**ScoreMaxThreshold** | Pointer to **float64** | | [optional]
**ErrorOnInvalidScore** | Pointer to **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 Expand Up @@ -168,6 +169,31 @@ SetApiUrl sets ApiUrl field to given value.

HasApiUrl returns a boolean if a field has been set.

### GetInteractive

`func (o *CaptchaStageRequest) GetInteractive() bool`

GetInteractive returns the Interactive field if non-nil, zero value otherwise.

### GetInteractiveOk

`func (o *CaptchaStageRequest) GetInteractiveOk() (*bool, bool)`

GetInteractiveOk returns a tuple with the Interactive field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetInteractive

`func (o *CaptchaStageRequest) SetInteractive(v bool)`

SetInteractive sets Interactive field to given value.

### HasInteractive

`func (o *CaptchaStageRequest) HasInteractive() bool`

HasInteractive returns a boolean if a field has been set.

### GetScoreMinThreshold

`func (o *CaptchaStageRequest) GetScoreMinThreshold() float64`
Expand Down
23 changes: 22 additions & 1 deletion docs/ChallengeTypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Name | Type | Description | Notes
**Title** | Pointer to **string** | | [optional]
**SiteKey** | **string** | |
**JsUrl** | **string** | |
**Interactive** | **bool** | |
**HeaderText** | Pointer to **string** | | [optional]
**Permissions** | [**[]ConsentPermission**](ConsentPermission.md) | |
**AdditionalPermissions** | [**[]ConsentPermission**](ConsentPermission.md) | |
Expand Down Expand Up @@ -63,7 +64,7 @@ Name | Type | Description | Notes

### NewChallengeTypes

`func NewChallengeTypes(pendingUser string, pendingUserAvatar string, clientId string, scope string, redirectUri string, state string, activationBarcode string, activationCode string, stageUuid string, codes []string, configUrl string, deviceChallenges []DeviceChallenge, configurationStages []SelectableStage, registration map[string]interface{}, url string, attrs map[string]string, siteKey string, jsUrl string, permissions []ConsentPermission, additionalPermissions []ConsentPermission, token string, name string, requestId string, loadingText string, userFields []string, passwordFields bool, flowDesignation FlowDesignationEnum, primaryAction string, showSourceLabels bool, slug string, fields []StagePrompt, to string, brandName string, body string, ) *ChallengeTypes`
`func NewChallengeTypes(pendingUser string, pendingUserAvatar string, clientId string, scope string, redirectUri string, state string, activationBarcode string, activationCode string, stageUuid string, codes []string, configUrl string, deviceChallenges []DeviceChallenge, configurationStages []SelectableStage, registration map[string]interface{}, url string, attrs map[string]string, siteKey string, jsUrl string, interactive bool, permissions []ConsentPermission, additionalPermissions []ConsentPermission, token string, name string, requestId string, loadingText string, userFields []string, passwordFields bool, flowDesignation FlowDesignationEnum, primaryAction string, showSourceLabels bool, slug string, fields []StagePrompt, to string, brandName string, body string, ) *ChallengeTypes`

NewChallengeTypes instantiates a new ChallengeTypes object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -588,6 +589,26 @@ and a boolean to check if the value has been set.
SetJsUrl sets JsUrl field to given value.


### GetInteractive

`func (o *ChallengeTypes) GetInteractive() bool`

GetInteractive returns the Interactive field if non-nil, zero value otherwise.

### GetInteractiveOk

`func (o *ChallengeTypes) GetInteractiveOk() (*bool, bool)`

GetInteractiveOk returns a tuple with the Interactive field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetInteractive

`func (o *ChallengeTypes) SetInteractive(v bool)`

SetInteractive sets Interactive field to given value.


### GetHeaderText

`func (o *ChallengeTypes) GetHeaderText() string`
Expand Down
26 changes: 26 additions & 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
**PrivateKey** | Pointer to **string** | Private key, acquired your captcha Provider. | [optional]
**JsUrl** | Pointer to **string** | | [optional]
**ApiUrl** | Pointer to **string** | | [optional]
**Interactive** | Pointer to **bool** | | [optional]
**ScoreMinThreshold** | Pointer to **float64** | | [optional]
**ScoreMaxThreshold** | Pointer to **float64** | | [optional]
**ErrorOnInvalidScore** | Pointer to **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 Expand Up @@ -183,6 +184,31 @@ SetApiUrl sets ApiUrl field to given value.

HasApiUrl returns a boolean if a field has been set.

### GetInteractive

`func (o *PatchedCaptchaStageRequest) GetInteractive() bool`

GetInteractive returns the Interactive field if non-nil, zero value otherwise.

### GetInteractiveOk

`func (o *PatchedCaptchaStageRequest) GetInteractiveOk() (*bool, bool)`

GetInteractiveOk returns a tuple with the Interactive field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetInteractive

`func (o *PatchedCaptchaStageRequest) SetInteractive(v bool)`

SetInteractive sets Interactive field to given value.

### HasInteractive

`func (o *PatchedCaptchaStageRequest) HasInteractive() bool`

HasInteractive returns a boolean if a field has been set.

### GetScoreMinThreshold

`func (o *PatchedCaptchaStageRequest) GetScoreMinThreshold() float64`
Expand Down
31 changes: 30 additions & 1 deletion model_captcha_challenge.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7f57e38

Please sign in to comment.