Skip to content

Commit 47e13cd

Browse files
Update API Client
#### What's Changed --- ##### `GET` /core/authenticated_sessions/{uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New required properties: - `asn` * Added property `asn` (object) > Get ASN Data * Property `asn` (integer) * Property `as_org` (string) * Property `network` (string) * Changed property `geo_ip` (object) > Get GeoIP Data ##### `GET` /policies/reputation/scores/{reputation_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Added property `ip_asn_data` (object) ##### `GET` /core/authenticated_sessions/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > AuthenticatedSession Serializer New required properties: - `asn` * Added property `asn` (object) > Get ASN Data * Changed property `geo_ip` (object) > Get GeoIP Data ##### `GET` /policies/reputation/scores/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > Reputation Serializer * Added property `ip_asn_data` (object) ##### `GET` /root/config/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `capabilities` (array) Changed items (string): > * `can_save_media` - Can Save Media > * `can_geo_ip` - Can Geo Ip > * `can_asn` - Can Asn > * `can_impersonate` - Can Impersonate > * `can_debug` - Can Debug > * `is_enterprise` - Is Enterprise Added enum value: * `can_asn`
1 parent 5f19efd commit 47e13cd

13 files changed

+498
-9
lines changed

.openapi-generator/FILES

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ docs/AuthTypeEnum.md
3434
docs/AuthenticateWebAuthnStage.md
3535
docs/AuthenticateWebAuthnStageRequest.md
3636
docs/AuthenticatedSession.md
37+
docs/AuthenticatedSessionAsn.md
3738
docs/AuthenticatedSessionGeoIp.md
3839
docs/AuthenticatedSessionUserAgent.md
3940
docs/AuthenticatedSessionUserAgentDevice.md
@@ -559,6 +560,7 @@ model_auth_type_enum.go
559560
model_authenticate_web_authn_stage.go
560561
model_authenticate_web_authn_stage_request.go
561562
model_authenticated_session.go
563+
model_authenticated_session_asn.go
562564
model_authenticated_session_geo_ip.go
563565
model_authenticated_session_user_agent.go
564566
model_authenticated_session_user_agent_device.go

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ Class | Method | HTTP request | Description
720720
- [AuthenticateWebAuthnStage](docs/AuthenticateWebAuthnStage.md)
721721
- [AuthenticateWebAuthnStageRequest](docs/AuthenticateWebAuthnStageRequest.md)
722722
- [AuthenticatedSession](docs/AuthenticatedSession.md)
723+
- [AuthenticatedSessionAsn](docs/AuthenticatedSessionAsn.md)
723724
- [AuthenticatedSessionGeoIp](docs/AuthenticatedSessionGeoIp.md)
724725
- [AuthenticatedSessionUserAgent](docs/AuthenticatedSessionUserAgent.md)
725726
- [AuthenticatedSessionUserAgentDevice](docs/AuthenticatedSessionUserAgentDevice.md)

api/openapi.yaml

+47-4
Original file line numberDiff line numberDiff line change
@@ -31521,7 +31521,11 @@ components:
3152131521
last_used: 2000-01-23T04:56:07.000+00:00
3152231522
last_user_agent: last_user_agent
3152331523
uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
31524-
user: 1
31524+
asn:
31525+
as_org: as_org
31526+
asn: 1
31527+
network: network
31528+
user: 5
3152531529
user_agent:
3152631530
os:
3152731531
patch: patch
@@ -31551,6 +31555,8 @@ components:
3155131555
$ref: '#/components/schemas/AuthenticatedSession_user_agent'
3155231556
geo_ip:
3155331557
$ref: '#/components/schemas/AuthenticatedSession_geo_ip'
31558+
asn:
31559+
$ref: '#/components/schemas/AuthenticatedSession_asn'
3155431560
user:
3155531561
type: integer
3155631562
last_ip:
@@ -31565,6 +31571,7 @@ components:
3156531571
format: date-time
3156631572
type: string
3156731573
required:
31574+
- asn
3156831575
- current
3156931576
- geo_ip
3157031577
- last_ip
@@ -32885,12 +32892,14 @@ components:
3288532892
description: |-
3288632893
* `can_save_media` - Can Save Media
3288732894
* `can_geo_ip` - Can Geo Ip
32895+
* `can_asn` - Can Asn
3288832896
* `can_impersonate` - Can Impersonate
3288932897
* `can_debug` - Can Debug
3289032898
* `is_enterprise` - Is Enterprise
3289132899
enum:
3289232900
- can_save_media
3289332901
- can_geo_ip
32902+
- can_asn
3289432903
- can_impersonate
3289532904
- can_debug
3289632905
- is_enterprise
@@ -39544,7 +39553,11 @@ components:
3954439553
last_used: 2000-01-23T04:56:07.000+00:00
3954539554
last_user_agent: last_user_agent
3954639555
uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
39547-
user: 1
39556+
asn:
39557+
as_org: as_org
39558+
asn: 1
39559+
network: network
39560+
user: 5
3954839561
user_agent:
3954939562
os:
3955039563
patch: patch
@@ -39574,7 +39587,11 @@ components:
3957439587
last_used: 2000-01-23T04:56:07.000+00:00
3957539588
last_user_agent: last_user_agent
3957639589
uuid: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
39577-
user: 1
39590+
asn:
39591+
as_org: as_org
39592+
asn: 1
39593+
network: network
39594+
user: 5
3957839595
user_agent:
3957939596
os:
3958039597
patch: patch
@@ -43368,12 +43385,14 @@ components:
4336843385
results:
4336943386
- identifier: identifier
4337043387
score: -7746104769210155008
43388+
ip_asn_data: ""
4337143389
ip_geo_data: ""
4337243390
ip: ip
4337343391
pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
4337443392
updated: 2000-01-23T04:56:07.000+00:00
4337543393
- identifier: identifier
4337643394
score: -7746104769210155008
43395+
ip_asn_data: ""
4337743396
ip_geo_data: ""
4337843397
ip: ip
4337943398
pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
@@ -51015,6 +51034,7 @@ components:
5101551034
example:
5101651035
identifier: identifier
5101751036
score: -7746104769210155008
51037+
ip_asn_data: ""
5101851038
ip_geo_data: ""
5101951039
ip: ip
5102051040
pk: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
@@ -51029,6 +51049,7 @@ components:
5102951049
ip:
5103051050
type: string
5103151051
ip_geo_data: {}
51052+
ip_asn_data: {}
5103251053
score:
5103351054
format: int64
5103451055
maximum: 9223372036854775807
@@ -55158,7 +55179,7 @@ components:
5515855179
- user_agent
5515955180
type: object
5516055181
AuthenticatedSession_geo_ip:
55161-
description: Get parsed user agent
55182+
description: Get GeoIP Data
5516255183
example:
5516355184
continent: continent
5516455185
country: country
@@ -55187,6 +55208,28 @@ components:
5518755208
- lat
5518855209
- long
5518955210
type: object
55211+
AuthenticatedSession_asn:
55212+
description: Get ASN Data
55213+
example:
55214+
as_org: as_org
55215+
asn: 1
55216+
network: network
55217+
nullable: true
55218+
properties:
55219+
asn:
55220+
type: integer
55221+
as_org:
55222+
nullable: true
55223+
type: string
55224+
network:
55225+
nullable: true
55226+
type: string
55227+
readOnly: true
55228+
required:
55229+
- as_org
55230+
- asn
55231+
- network
55232+
type: object
5519055233
SystemInfo_runtime:
5519155234
description: Get versions
5519255235
example:

docs/AuthenticatedSession.md

+32-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**Current** | **bool** | Check if session is currently active session | [readonly]
99
**UserAgent** | [**AuthenticatedSessionUserAgent**](AuthenticatedSessionUserAgent.md) | |
1010
**GeoIp** | [**NullableAuthenticatedSessionGeoIp**](AuthenticatedSessionGeoIp.md) | |
11+
**Asn** | [**NullableAuthenticatedSessionAsn**](AuthenticatedSessionAsn.md) | |
1112
**User** | **int32** | |
1213
**LastIp** | **string** | |
1314
**LastUserAgent** | Pointer to **string** | | [optional]
@@ -18,7 +19,7 @@ Name | Type | Description | Notes
1819

1920
### NewAuthenticatedSession
2021

21-
`func NewAuthenticatedSession(current bool, userAgent AuthenticatedSessionUserAgent, geoIp NullableAuthenticatedSessionGeoIp, user int32, lastIp string, lastUsed time.Time, ) *AuthenticatedSession`
22+
`func NewAuthenticatedSession(current bool, userAgent AuthenticatedSessionUserAgent, geoIp NullableAuthenticatedSessionGeoIp, asn NullableAuthenticatedSessionAsn, user int32, lastIp string, lastUsed time.Time, ) *AuthenticatedSession`
2223

2324
NewAuthenticatedSession instantiates a new AuthenticatedSession object
2425
This constructor will assign default values to properties that have it defined,
@@ -128,6 +129,36 @@ SetGeoIp sets GeoIp field to given value.
128129
`func (o *AuthenticatedSession) UnsetGeoIp()`
129130

130131
UnsetGeoIp ensures that no value is present for GeoIp, not even an explicit nil
132+
### GetAsn
133+
134+
`func (o *AuthenticatedSession) GetAsn() AuthenticatedSessionAsn`
135+
136+
GetAsn returns the Asn field if non-nil, zero value otherwise.
137+
138+
### GetAsnOk
139+
140+
`func (o *AuthenticatedSession) GetAsnOk() (*AuthenticatedSessionAsn, bool)`
141+
142+
GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise
143+
and a boolean to check if the value has been set.
144+
145+
### SetAsn
146+
147+
`func (o *AuthenticatedSession) SetAsn(v AuthenticatedSessionAsn)`
148+
149+
SetAsn sets Asn field to given value.
150+
151+
152+
### SetAsnNil
153+
154+
`func (o *AuthenticatedSession) SetAsnNil(b bool)`
155+
156+
SetAsnNil sets the value for Asn to be an explicit nil
157+
158+
### UnsetAsn
159+
`func (o *AuthenticatedSession) UnsetAsn()`
160+
161+
UnsetAsn ensures that no value is present for Asn, not even an explicit nil
131162
### GetUser
132163

133164
`func (o *AuthenticatedSession) GetUser() int32`

docs/AuthenticatedSessionAsn.md

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# AuthenticatedSessionAsn
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Asn** | **int32** | |
8+
**AsOrg** | **NullableString** | |
9+
**Network** | **NullableString** | |
10+
11+
## Methods
12+
13+
### NewAuthenticatedSessionAsn
14+
15+
`func NewAuthenticatedSessionAsn(asn int32, asOrg NullableString, network NullableString, ) *AuthenticatedSessionAsn`
16+
17+
NewAuthenticatedSessionAsn instantiates a new AuthenticatedSessionAsn object
18+
This constructor will assign default values to properties that have it defined,
19+
and makes sure properties required by API are set, but the set of arguments
20+
will change when the set of required properties is changed
21+
22+
### NewAuthenticatedSessionAsnWithDefaults
23+
24+
`func NewAuthenticatedSessionAsnWithDefaults() *AuthenticatedSessionAsn`
25+
26+
NewAuthenticatedSessionAsnWithDefaults instantiates a new AuthenticatedSessionAsn object
27+
This constructor will only assign default values to properties that have it defined,
28+
but it doesn't guarantee that properties required by API are set
29+
30+
### GetAsn
31+
32+
`func (o *AuthenticatedSessionAsn) GetAsn() int32`
33+
34+
GetAsn returns the Asn field if non-nil, zero value otherwise.
35+
36+
### GetAsnOk
37+
38+
`func (o *AuthenticatedSessionAsn) GetAsnOk() (*int32, bool)`
39+
40+
GetAsnOk returns a tuple with the Asn field if it's non-nil, zero value otherwise
41+
and a boolean to check if the value has been set.
42+
43+
### SetAsn
44+
45+
`func (o *AuthenticatedSessionAsn) SetAsn(v int32)`
46+
47+
SetAsn sets Asn field to given value.
48+
49+
50+
### GetAsOrg
51+
52+
`func (o *AuthenticatedSessionAsn) GetAsOrg() string`
53+
54+
GetAsOrg returns the AsOrg field if non-nil, zero value otherwise.
55+
56+
### GetAsOrgOk
57+
58+
`func (o *AuthenticatedSessionAsn) GetAsOrgOk() (*string, bool)`
59+
60+
GetAsOrgOk returns a tuple with the AsOrg field if it's non-nil, zero value otherwise
61+
and a boolean to check if the value has been set.
62+
63+
### SetAsOrg
64+
65+
`func (o *AuthenticatedSessionAsn) SetAsOrg(v string)`
66+
67+
SetAsOrg sets AsOrg field to given value.
68+
69+
70+
### SetAsOrgNil
71+
72+
`func (o *AuthenticatedSessionAsn) SetAsOrgNil(b bool)`
73+
74+
SetAsOrgNil sets the value for AsOrg to be an explicit nil
75+
76+
### UnsetAsOrg
77+
`func (o *AuthenticatedSessionAsn) UnsetAsOrg()`
78+
79+
UnsetAsOrg ensures that no value is present for AsOrg, not even an explicit nil
80+
### GetNetwork
81+
82+
`func (o *AuthenticatedSessionAsn) GetNetwork() string`
83+
84+
GetNetwork returns the Network field if non-nil, zero value otherwise.
85+
86+
### GetNetworkOk
87+
88+
`func (o *AuthenticatedSessionAsn) GetNetworkOk() (*string, bool)`
89+
90+
GetNetworkOk returns a tuple with the Network field if it's non-nil, zero value otherwise
91+
and a boolean to check if the value has been set.
92+
93+
### SetNetwork
94+
95+
`func (o *AuthenticatedSessionAsn) SetNetwork(v string)`
96+
97+
SetNetwork sets Network field to given value.
98+
99+
100+
### SetNetworkNil
101+
102+
`func (o *AuthenticatedSessionAsn) SetNetworkNil(b bool)`
103+
104+
SetNetworkNil sets the value for Network to be an explicit nil
105+
106+
### UnsetNetwork
107+
`func (o *AuthenticatedSessionAsn) UnsetNetwork()`
108+
109+
UnsetNetwork ensures that no value is present for Network, not even an explicit nil
110+
111+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
112+
113+

docs/CapabilitiesEnum.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
* `CAN_GEO_IP` (value: `"can_geo_ip"`)
99

10+
* `CAN_ASN` (value: `"can_asn"`)
11+
1012
* `CAN_IMPERSONATE` (value: `"can_impersonate"`)
1113

1214
* `CAN_DEBUG` (value: `"can_debug"`)

docs/Reputation.md

+36
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**Identifier** | **string** | |
99
**Ip** | **string** | |
1010
**IpGeoData** | Pointer to **interface{}** | | [optional]
11+
**IpAsnData** | Pointer to **interface{}** | | [optional]
1112
**Score** | Pointer to **int64** | | [optional]
1213
**Updated** | **time.Time** | | [readonly]
1314

@@ -130,6 +131,41 @@ HasIpGeoData returns a boolean if a field has been set.
130131
`func (o *Reputation) UnsetIpGeoData()`
131132

132133
UnsetIpGeoData ensures that no value is present for IpGeoData, not even an explicit nil
134+
### GetIpAsnData
135+
136+
`func (o *Reputation) GetIpAsnData() interface{}`
137+
138+
GetIpAsnData returns the IpAsnData field if non-nil, zero value otherwise.
139+
140+
### GetIpAsnDataOk
141+
142+
`func (o *Reputation) GetIpAsnDataOk() (*interface{}, bool)`
143+
144+
GetIpAsnDataOk returns a tuple with the IpAsnData field if it's non-nil, zero value otherwise
145+
and a boolean to check if the value has been set.
146+
147+
### SetIpAsnData
148+
149+
`func (o *Reputation) SetIpAsnData(v interface{})`
150+
151+
SetIpAsnData sets IpAsnData field to given value.
152+
153+
### HasIpAsnData
154+
155+
`func (o *Reputation) HasIpAsnData() bool`
156+
157+
HasIpAsnData returns a boolean if a field has been set.
158+
159+
### SetIpAsnDataNil
160+
161+
`func (o *Reputation) SetIpAsnDataNil(b bool)`
162+
163+
SetIpAsnDataNil sets the value for IpAsnData to be an explicit nil
164+
165+
### UnsetIpAsnData
166+
`func (o *Reputation) UnsetIpAsnData()`
167+
168+
UnsetIpAsnData ensures that no value is present for IpAsnData, not even an explicit nil
133169
### GetScore
134170

135171
`func (o *Reputation) GetScore() int64`

0 commit comments

Comments
 (0)