2022-01-15 21:28:28 +00:00
|
|
|
package databag
|
|
|
|
|
2022-01-15 21:34:10 +00:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
2022-01-15 21:28:28 +00:00
|
|
|
type Account struct {
|
|
|
|
AccountId string `json:"accountId"`
|
|
|
|
Profile *Profile `json:"profile"`
|
|
|
|
Disabled bool `json:"disabled"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AccountStatus struct {
|
|
|
|
Disabled bool `json:"disabled"`
|
|
|
|
StorageUsed float64 `json:"storageUsed"`
|
|
|
|
StorageAvailable float64 `json:"storageAvailable"`
|
|
|
|
ForwardingAddress string `json:"forwardingAddress"`
|
|
|
|
}
|
|
|
|
|
2022-01-15 21:34:10 +00:00
|
|
|
type AccountsImportBody struct {
|
|
|
|
FileName **os.File `json:"fileName,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Announce struct {
|
|
|
|
AppToken string `json:"appToken"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type App struct {
|
|
|
|
AppId string `json:"appId"`
|
|
|
|
AppData *AppData `json:"appData"`
|
|
|
|
Attached int32 `json:"attached"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AppData struct {
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
Url string `json:"url,omitempty"`
|
|
|
|
Image string `json:"image,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Article struct {
|
|
|
|
ArticleId string `json:"articleId"`
|
|
|
|
ArticleRevision int64 `json:"articleRevision"`
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
Created int32 `json:"created"`
|
|
|
|
Modified int32 `json:"modified"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Labels []string `json:"labels"`
|
|
|
|
Groups []string `json:"groups,omitempty"`
|
|
|
|
TagCount int32 `json:"tagCount"`
|
|
|
|
TagUpdate int32 `json:"tagUpdate,omitempty"`
|
|
|
|
TagRevision int64 `json:"tagRevision"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleIdAssetsBody struct {
|
|
|
|
FileName **os.File `json:"fileName,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleIdSubjectBody struct {
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
}
|
|
|
|
|
2022-01-15 21:49:28 +00:00
|
|
|
type Asset struct {
|
|
|
|
AssetId string `json:"assetId"`
|
|
|
|
Transform string `json:"transform,omitempty"`
|
|
|
|
Status string `json:"status,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Authenticate struct {
|
|
|
|
Token string `json:"token"`
|
|
|
|
Timestamp int32 `json:"timestamp"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Card struct {
|
|
|
|
CardId string `json:"cardId"`
|
|
|
|
CardProfile *CardProfile `json:"cardProfile"`
|
|
|
|
CardData *CardData `json:"cardData"`
|
|
|
|
ProfileRevision int64 `json:"profileRevision"`
|
|
|
|
ContentRevision int64 `json:"contentRevision"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CardData struct {
|
|
|
|
Revision int64 `json:"revision,omitempty"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Notes string `json:"notes,omitempty"`
|
|
|
|
Token string `json:"token,omitempty"`
|
|
|
|
Groups []string `json:"groups,omitempty"`
|
|
|
|
}
|
2022-01-15 21:34:10 +00:00
|
|
|
|
2022-01-15 21:49:28 +00:00
|
|
|
type CardProfile struct {
|
|
|
|
Handle string `json:"handle,omitempty"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
Location string `json:"location,omitempty"`
|
|
|
|
Revision int64 `json:"revision,omitempty"`
|
|
|
|
ImageSet bool `json:"imageSet,omitempty"`
|
|
|
|
Node string `json:"node"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CardView struct {
|
|
|
|
CardId string `json:"cardId"`
|
|
|
|
CardRevision int64 `json:"cardRevision"`
|
|
|
|
ProfileRevision int64 `json:"profileRevision"`
|
|
|
|
ContentRevision int64 `json:"contentRevision"`
|
|
|
|
}
|
2022-01-15 21:51:59 +00:00
|
|
|
|
|
|
|
type Connect struct {
|
|
|
|
RequestorcardId string `json:"requestorcardId,omitempty"`
|
|
|
|
RequestedcardId string `json:"requestedcardId,omitempty"`
|
|
|
|
Timestamp int32 `json:"timestamp"`
|
|
|
|
Profile *Profile `json:"profile"`
|
|
|
|
Token string `json:"token"`
|
|
|
|
ContentRevision int64 `json:"contentRevision"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ContentArticlesBody struct {
|
|
|
|
Labels []string `json:"labels"`
|
|
|
|
Groups []string `json:"groups"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ContentLabelsBody struct {
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DataMessage struct {
|
|
|
|
MessageType string `json:"messageType"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
KeyType string `json:"keyType"`
|
|
|
|
PublicKey string `json:"publicKey"`
|
|
|
|
Signature string `json:"signature"`
|
|
|
|
}
|
|
|
|
|