Skip to content

Commit

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

##### `GET` /policies/geoip/{policy_uuid}/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `check_history_distance` (boolean)

    * Added property `history_max_distance_km` (integer)

    * Added property `distance_tolerance_km` (integer)

    * Added property `history_login_count` (integer)

    * Added property `check_impossible_travel` (boolean)

    * Added property `impossible_tolerance_km` (integer)

##### `PUT` /policies/geoip/{policy_uuid}/

###### Request:

Changed content type : `application/json`

* Added property `check_history_distance` (boolean)

* Added property `history_max_distance_km` (integer)

* Added property `distance_tolerance_km` (integer)

* Added property `history_login_count` (integer)

* Added property `check_impossible_travel` (boolean)

* Added property `impossible_tolerance_km` (integer)

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `check_history_distance` (boolean)

    * Added property `history_max_distance_km` (integer)

    * Added property `distance_tolerance_km` (integer)

    * Added property `history_login_count` (integer)

    * Added property `check_impossible_travel` (boolean)

    * Added property `impossible_tolerance_km` (integer)

##### `PATCH` /policies/geoip/{policy_uuid}/

###### Request:

Changed content type : `application/json`

* Added property `check_history_distance` (boolean)

* Added property `history_max_distance_km` (integer)

* Added property `distance_tolerance_km` (integer)

* Added property `history_login_count` (integer)

* Added property `check_impossible_travel` (boolean)

* Added property `impossible_tolerance_km` (integer)

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Added property `check_history_distance` (boolean)

    * Added property `history_max_distance_km` (integer)

    * Added property `distance_tolerance_km` (integer)

    * Added property `history_login_count` (integer)

    * Added property `check_impossible_travel` (boolean)

    * Added property `impossible_tolerance_km` (integer)

##### `POST` /policies/geoip/

###### Request:

Changed content type : `application/json`

* Added property `check_history_distance` (boolean)

* Added property `history_max_distance_km` (integer)

* Added property `distance_tolerance_km` (integer)

* Added property `history_login_count` (integer)

* Added property `check_impossible_travel` (boolean)

* Added property `impossible_tolerance_km` (integer)

###### Return Type:

Changed response : **201 Created**

* Changed content type : `application/json`

    * Added property `check_history_distance` (boolean)

    * Added property `history_max_distance_km` (integer)

    * Added property `distance_tolerance_km` (integer)

    * Added property `history_login_count` (integer)

    * Added property `check_impossible_travel` (boolean)

    * Added property `impossible_tolerance_km` (integer)

##### `GET` /policies/geoip/

###### Return Type:

Changed response : **200 OK**

* Changed content type : `application/json`

    * Changed property `results` (array)

        Changed items (object):
            > GeoIP Policy Serializer

        * Added property `check_history_distance` (boolean)

        * Added property `history_max_distance_km` (integer)

        * Added property `distance_tolerance_km` (integer)

        * Added property `history_login_count` (integer)

        * Added property `check_impossible_travel` (boolean)

        * Added property `impossible_tolerance_km` (integer)
  • Loading branch information
authentik-automation[bot] committed Feb 17, 2025
1 parent 14ccd16 commit 6f4c596
Show file tree
Hide file tree
Showing 8 changed files with 1,307 additions and 35 deletions.
143 changes: 118 additions & 25 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49763,28 +49763,34 @@ components:
GeoIPPolicy:
description: GeoIP Policy Serializer
example:
verbose_name_plural: verbose_name_plural
execution_logging: true
countries:
- null
- null
- null
- null
- null
history_max_distance_km: 1351973845562961920
check_history_distance: true
history_login_count: 1210617418
component: component
verbose_name: verbose_name
verbose_name_plural: verbose_name_plural
meta_model_name: meta_model_name
execution_logging: true
bound_to: 0
check_impossible_travel: true
name: name
distance_tolerance_km: 1280358508
asns:
- 441289069
- 441289069
pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
countries:
- null
- null
- null
- null
- null
countries_obj:
- code: null
name: name
- code: null
name: name
impossible_tolerance_km: 494379917
properties:
pk:
format: uuid
Expand Down Expand Up @@ -49833,6 +49839,27 @@ components:
$ref: '#/components/schemas/DetailedCountryField'
readOnly: true
type: array
check_history_distance:
type: boolean
history_max_distance_km:
format: int64
maximum: 9223372036854775807
minimum: 0
type: integer
distance_tolerance_km:
maximum: 2147483647
minimum: 0
type: integer
history_login_count:
maximum: 2147483647
minimum: 0
type: integer
check_impossible_travel:
type: boolean
impossible_tolerance_km:
maximum: 2147483647
minimum: 0
type: integer
required:
- bound_to
- component
Expand All @@ -49847,8 +49874,12 @@ components:
GeoIPPolicyRequest:
description: GeoIP Policy Serializer
example:
check_history_distance: true
history_login_count: 1280358508
execution_logging: true
check_impossible_travel: true
name: name
distance_tolerance_km: 314780940
asns:
- -1803530559
- -1803530559
Expand All @@ -49858,6 +49889,8 @@ components:
- null
- null
- null
history_max_distance_km: 5559347081229897728
impossible_tolerance_km: 1210617418
properties:
name:
minLength: 1
Expand All @@ -49877,6 +49910,27 @@ components:
$ref: '#/components/schemas/CountryCodeEnum'
maxItems: 249
type: array
check_history_distance:
type: boolean
history_max_distance_km:
format: int64
maximum: 9223372036854775807
minimum: 0
type: integer
distance_tolerance_km:
maximum: 2147483647
minimum: 0
type: integer
history_login_count:
maximum: 2147483647
minimum: 0
type: integer
check_impossible_travel:
type: boolean
impossible_tolerance_km:
maximum: 2147483647
minimum: 0
type: integer
required:
- countries
- name
Expand Down Expand Up @@ -57080,50 +57134,62 @@ components:
end_index: 7.061401241503109
total_pages: 5.637376656633329
results:
- component: component
- verbose_name_plural: verbose_name_plural
execution_logging: true
countries:
- null
- null
- null
- null
- null
history_max_distance_km: 1351973845562961920
check_history_distance: true
history_login_count: 1210617418
component: component
verbose_name: verbose_name
verbose_name_plural: verbose_name_plural
meta_model_name: meta_model_name
execution_logging: true
bound_to: 0
check_impossible_travel: true
name: name
distance_tolerance_km: 1280358508
asns:
- 441289069
- 441289069
pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
countries_obj:
- code: null
name: name
- code: null
name: name
impossible_tolerance_km: 494379917
- verbose_name_plural: verbose_name_plural
execution_logging: true
countries:
- null
- null
- null
- null
- null
countries_obj:
- code: null
name: name
- code: null
name: name
- component: component
history_max_distance_km: 1351973845562961920
check_history_distance: true
history_login_count: 1210617418
component: component
verbose_name: verbose_name
verbose_name_plural: verbose_name_plural
meta_model_name: meta_model_name
execution_logging: true
bound_to: 0
check_impossible_travel: true
name: name
distance_tolerance_km: 1280358508
asns:
- 441289069
- 441289069
pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
countries:
- null
- null
- null
- null
- null
countries_obj:
- code: null
name: name
- code: null
name: name
impossible_tolerance_km: 494379917
properties:
pagination:
$ref: '#/components/schemas/Pagination'
Expand Down Expand Up @@ -64563,8 +64629,12 @@ components:
PatchedGeoIPPolicyRequest:
description: GeoIP Policy Serializer
example:
check_history_distance: true
history_login_count: 1280358508
execution_logging: true
check_impossible_travel: true
name: name
distance_tolerance_km: 314780940
asns:
- -1803530559
- -1803530559
Expand All @@ -64574,6 +64644,8 @@ components:
- null
- null
- null
history_max_distance_km: 5559347081229897728
impossible_tolerance_km: 1210617418
properties:
name:
minLength: 1
Expand All @@ -64593,6 +64665,27 @@ components:
$ref: '#/components/schemas/CountryCodeEnum'
maxItems: 249
type: array
check_history_distance:
type: boolean
history_max_distance_km:
format: int64
maximum: 9223372036854775807
minimum: 0
type: integer
distance_tolerance_km:
maximum: 2147483647
minimum: 0
type: integer
history_login_count:
maximum: 2147483647
minimum: 0
type: integer
check_impossible_travel:
type: boolean
impossible_tolerance_km:
maximum: 2147483647
minimum: 0
type: integer
type: object
PatchedGoogleWorkspaceProviderMappingRequest:
description: GoogleWorkspaceProviderMapping Serializer
Expand Down
Loading

0 comments on commit 6f4c596

Please sign in to comment.