From 4f15fc3318a145a84f804d91841b56abeb385d47 Mon Sep 17 00:00:00 2001 From: muneebkq Date: Tue, 27 Aug 2024 15:49:57 +0530 Subject: [PATCH] feat: add user metadata --- lextypes.go | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/lextypes.go b/lextypes.go index 8e89265..27455b4 100644 --- a/lextypes.go +++ b/lextypes.go @@ -14,6 +14,11 @@ type ReleaseFile struct { UpdatedAt string `json:"updatedAt"` } +type Metadata struct { + Key string `json:"key"` + Value string `json:"value"` +} + type Release struct { TotalFiles int `json:"totalFiles"` IsPrivate bool `json:"isPrivate"` @@ -41,15 +46,9 @@ type OrganizationAddress struct { } type UserLicense struct { - // The allowed activations of the license. A value of -1 indicates unlimited number of activations. - AllowedActivations int64 `json:"allowedActivations"` - - // The allowed activations of the license. A value of -1 indicates unlimited number of deactivations. - AllowedDeactivations int64 `json:"allowedDeactivations"` - - // The license key. - Key string `json:"key"` - - // The license type (node-locked or hosted-floating). - Type string `json:"type"` + AllowedActivations int64 `json:"allowedActivations"` + AllowedDeactivations int64 `json:"allowedDeactivations"` + Key string `json:"key"` + Type string `json:"type"` + Metadata []Metadata `json:"metadata"` } \ No newline at end of file