@@ -788,6 +788,33 @@ func (enum *UserType) UnmarshalJSON(data []byte) error {
788788 return nil
789789}
790790
791+ // JWT: jwt.
792+ type JWT struct {
793+ // Jti: jWT ID.
794+ Jti string `json:"jti"`
795+
796+ // IssuerID: ID of the user who issued the JWT.
797+ IssuerID string `json:"issuer_id"`
798+
799+ // AudienceID: ID of the user targeted by the JWT.
800+ AudienceID string `json:"audience_id"`
801+
802+ // CreatedAt: creation date of the JWT.
803+ CreatedAt * time.Time `json:"created_at"`
804+
805+ // UpdatedAt: last update date of the JWT.
806+ UpdatedAt * time.Time `json:"updated_at"`
807+
808+ // ExpiresAt: expiration date of the JWT.
809+ ExpiresAt * time.Time `json:"expires_at"`
810+
811+ // IP: IP address used during the creation of the JWT.
812+ IP net.IP `json:"ip"`
813+
814+ // UserAgent: user-agent used during the creation of the JWT.
815+ UserAgent string `json:"user_agent"`
816+ }
817+
791818// RuleSpecs: rule specs.
792819type RuleSpecs struct {
793820 // PermissionSetNames: names of permission sets bound to the rule.
@@ -820,33 +847,6 @@ type CreateUserRequestMember struct {
820847 Password string `json:"password"`
821848}
822849
823- // JWT: jwt.
824- type JWT struct {
825- // Jti: jWT ID.
826- Jti string `json:"jti"`
827-
828- // IssuerID: ID of the user who issued the JWT.
829- IssuerID string `json:"issuer_id"`
830-
831- // AudienceID: ID of the user targeted by the JWT.
832- AudienceID string `json:"audience_id"`
833-
834- // CreatedAt: creation date of the JWT.
835- CreatedAt * time.Time `json:"created_at"`
836-
837- // UpdatedAt: last update date of the JWT.
838- UpdatedAt * time.Time `json:"updated_at"`
839-
840- // ExpiresAt: expiration date of the JWT.
841- ExpiresAt * time.Time `json:"expires_at"`
842-
843- // IP: IP address used during the creation of the JWT.
844- IP net.IP `json:"ip"`
845-
846- // UserAgent: user-agent used during the creation of the JWT.
847- UserAgent string `json:"user_agent"`
848- }
849-
850850// APIKey: api key.
851851type APIKey struct {
852852 // AccessKey: access key of the API key.
0 commit comments