Skip to content

Commit f040c9d

Browse files
committed
autogen(openapi): regenerate swagger spec and internal client
[skip ci]
1 parent 82bc9ce commit f040c9d

File tree

7 files changed

+347
-8
lines changed

7 files changed

+347
-8
lines changed

internal/httpclient/api/openapi.yaml

+52-1
Original file line numberDiff line numberDiff line change
@@ -4554,6 +4554,15 @@ components:
45544554
description: A Session
45554555
example:
45564556
expires_at: 2000-01-23T04:56:07.000+00:00
4557+
devices:
4558+
- location: location
4559+
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
4560+
ip_address: ip_address
4561+
user_agent: user_agent
4562+
- location: location
4563+
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
4564+
ip_address: ip_address
4565+
user_agent: user_agent
45574566
authentication_methods:
45584567
- completed_at: 2000-01-23T04:56:07.000+00:00
45594568
method: link_recovery
@@ -4631,6 +4640,12 @@ components:
46314640
type: array
46324641
authenticator_assurance_level:
46334642
$ref: '#/components/schemas/authenticatorAssuranceLevel'
4643+
devices:
4644+
description: Devices has history of all endpoints where the session was
4645+
used
4646+
items:
4647+
$ref: '#/components/schemas/sessionDevice'
4648+
type: array
46344649
expires_at:
46354650
description: |-
46364651
The Session Expiry
@@ -4687,10 +4702,28 @@ components:
46874702
title: List of (Used) AuthenticationMethods
46884703
type: array
46894704
sessionDevice:
4705+
description: Device corresponding to a Session
4706+
example:
4707+
location: location
4708+
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
4709+
ip_address: ip_address
4710+
user_agent: user_agent
46904711
properties:
4712+
id:
4713+
description: Device record ID
4714+
format: uuid
4715+
type: string
4716+
ip_address:
4717+
description: IPAddress of the client
4718+
type: string
4719+
location:
4720+
description: Geo Location corresponding to the IP Address
4721+
type: string
46914722
user_agent:
4692-
description: UserAgent of this device
4723+
description: UserAgent of the client
46934724
type: string
4725+
required:
4726+
- id
46944727
type: object
46954728
sessionList:
46964729
items:
@@ -5219,6 +5252,15 @@ components:
52195252
session_token: session_token
52205253
session:
52215254
expires_at: 2000-01-23T04:56:07.000+00:00
5255+
devices:
5256+
- location: location
5257+
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
5258+
ip_address: ip_address
5259+
user_agent: user_agent
5260+
- location: location
5261+
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
5262+
ip_address: ip_address
5263+
user_agent: user_agent
52225264
authentication_methods:
52235265
- completed_at: 2000-01-23T04:56:07.000+00:00
52245266
method: link_recovery
@@ -5345,6 +5387,15 @@ components:
53455387
metadata_public: ""
53465388
session:
53475389
expires_at: 2000-01-23T04:56:07.000+00:00
5390+
devices:
5391+
- location: location
5392+
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
5393+
ip_address: ip_address
5394+
user_agent: user_agent
5395+
- location: location
5396+
id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
5397+
ip_address: ip_address
5398+
user_agent: user_agent
53485399
authentication_methods:
53495400
- completed_at: 2000-01-23T04:56:07.000+00:00
53505401
method: link_recovery

internal/httpclient/docs/Session.md

+26
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**AuthenticatedAt** | Pointer to **time.Time** | The Session Authentication Timestamp When this session was authenticated at. If multi-factor authentication was used this is the time when the last factor was authenticated (e.g. the TOTP code challenge was completed). | [optional]
99
**AuthenticationMethods** | Pointer to [**[]SessionAuthenticationMethod**](SessionAuthenticationMethod.md) | A list of authenticators which were used to authenticate the session. | [optional]
1010
**AuthenticatorAssuranceLevel** | Pointer to [**AuthenticatorAssuranceLevel**](AuthenticatorAssuranceLevel.md) | | [optional]
11+
**Devices** | Pointer to [**[]SessionDevice**](SessionDevice.md) | Devices has history of all endpoints where the session was used | [optional]
1112
**ExpiresAt** | Pointer to **time.Time** | The Session Expiry When this session expires at. | [optional]
1213
**Id** | **string** | Session ID |
1314
**Identity** | [**Identity**](Identity.md) | |
@@ -132,6 +133,31 @@ SetAuthenticatorAssuranceLevel sets AuthenticatorAssuranceLevel field to given v
132133

133134
HasAuthenticatorAssuranceLevel returns a boolean if a field has been set.
134135

136+
### GetDevices
137+
138+
`func (o *Session) GetDevices() []SessionDevice`
139+
140+
GetDevices returns the Devices field if non-nil, zero value otherwise.
141+
142+
### GetDevicesOk
143+
144+
`func (o *Session) GetDevicesOk() (*[]SessionDevice, bool)`
145+
146+
GetDevicesOk returns a tuple with the Devices field if it's non-nil, zero value otherwise
147+
and a boolean to check if the value has been set.
148+
149+
### SetDevices
150+
151+
`func (o *Session) SetDevices(v []SessionDevice)`
152+
153+
SetDevices sets Devices field to given value.
154+
155+
### HasDevices
156+
157+
`func (o *Session) HasDevices() bool`
158+
159+
HasDevices returns a boolean if a field has been set.
160+
135161
### GetExpiresAt
136162

137163
`func (o *Session) GetExpiresAt() time.Time`

internal/httpclient/docs/SessionDevice.md

+75-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**UserAgent** | Pointer to **string** | UserAgent of this device | [optional]
7+
**Id** | **string** | Device record ID |
8+
**IpAddress** | Pointer to **string** | IPAddress of the client | [optional]
9+
**Location** | Pointer to **string** | Geo Location corresponding to the IP Address | [optional]
10+
**UserAgent** | Pointer to **string** | UserAgent of the client | [optional]
811

912
## Methods
1013

1114
### NewSessionDevice
1215

13-
`func NewSessionDevice() *SessionDevice`
16+
`func NewSessionDevice(id string, ) *SessionDevice`
1417

1518
NewSessionDevice instantiates a new SessionDevice object
1619
This constructor will assign default values to properties that have it defined,
@@ -25,6 +28,76 @@ NewSessionDeviceWithDefaults instantiates a new SessionDevice object
2528
This constructor will only assign default values to properties that have it defined,
2629
but it doesn't guarantee that properties required by API are set
2730

31+
### GetId
32+
33+
`func (o *SessionDevice) GetId() string`
34+
35+
GetId returns the Id field if non-nil, zero value otherwise.
36+
37+
### GetIdOk
38+
39+
`func (o *SessionDevice) GetIdOk() (*string, bool)`
40+
41+
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
42+
and a boolean to check if the value has been set.
43+
44+
### SetId
45+
46+
`func (o *SessionDevice) SetId(v string)`
47+
48+
SetId sets Id field to given value.
49+
50+
51+
### GetIpAddress
52+
53+
`func (o *SessionDevice) GetIpAddress() string`
54+
55+
GetIpAddress returns the IpAddress field if non-nil, zero value otherwise.
56+
57+
### GetIpAddressOk
58+
59+
`func (o *SessionDevice) GetIpAddressOk() (*string, bool)`
60+
61+
GetIpAddressOk returns a tuple with the IpAddress field if it's non-nil, zero value otherwise
62+
and a boolean to check if the value has been set.
63+
64+
### SetIpAddress
65+
66+
`func (o *SessionDevice) SetIpAddress(v string)`
67+
68+
SetIpAddress sets IpAddress field to given value.
69+
70+
### HasIpAddress
71+
72+
`func (o *SessionDevice) HasIpAddress() bool`
73+
74+
HasIpAddress returns a boolean if a field has been set.
75+
76+
### GetLocation
77+
78+
`func (o *SessionDevice) GetLocation() string`
79+
80+
GetLocation returns the Location field if non-nil, zero value otherwise.
81+
82+
### GetLocationOk
83+
84+
`func (o *SessionDevice) GetLocationOk() (*string, bool)`
85+
86+
GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise
87+
and a boolean to check if the value has been set.
88+
89+
### SetLocation
90+
91+
`func (o *SessionDevice) SetLocation(v string)`
92+
93+
SetLocation sets Location field to given value.
94+
95+
### HasLocation
96+
97+
`func (o *SessionDevice) HasLocation() bool`
98+
99+
HasLocation returns a boolean if a field has been set.
100+
28101
### GetUserAgent
29102

30103
`func (o *SessionDevice) GetUserAgent() string`

internal/httpclient/model_session.go

+37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)