-
Notifications
You must be signed in to change notification settings - Fork 15
/
session.go
25 lines (22 loc) · 958 Bytes
/
session.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package clerk
import "encoding/json"
type Session struct {
APIResource
Object string `json:"object"`
ID string `json:"id"`
ClientID string `json:"client_id"`
UserID string `json:"user_id"`
Status string `json:"status"`
LastActiveOrganizationID string `json:"last_active_organization_id,omitempty"`
Actor json.RawMessage `json:"actor,omitempty"`
LastActiveAt int64 `json:"last_active_at"`
ExpireAt int64 `json:"expire_at"`
AbandonAt int64 `json:"abandon_at"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
type SessionList struct {
APIResource
Sessions []*Session `json:"data"`
TotalCount int64 `json:"total_count"`
}