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"`
|
2022-01-18 08:40:39 +00:00
|
|
|
Attached int64 `json:"attached"`
|
2022-01-15 21:34:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type AppData struct {
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
Url string `json:"url,omitempty"`
|
|
|
|
Image string `json:"image,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-01-28 22:37:35 +00:00
|
|
|
type Subject struct {
|
|
|
|
DataType string `json:"dataType"`
|
|
|
|
Data string `json:"data"`
|
2022-01-28 07:01:17 +00:00
|
|
|
}
|
|
|
|
|
2022-01-15 21:34:10 +00:00
|
|
|
type Article struct {
|
2022-02-01 18:03:04 +00:00
|
|
|
ArticleId string `json:"article_id"`
|
2022-01-28 07:01:17 +00:00
|
|
|
Revision int64 `json:"revision"`
|
2022-02-01 18:03:04 +00:00
|
|
|
ArticleData *ArticleData `json:"articleData"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleData struct {
|
2022-01-28 07:01:17 +00:00
|
|
|
DataType string `json:"type"`
|
2022-01-15 21:34:10 +00:00
|
|
|
Data string `json:"data"`
|
2022-01-18 08:40:39 +00:00
|
|
|
Created int64 `json:"created"`
|
2022-01-28 07:01:17 +00:00
|
|
|
Updated int64 `json:"updated"`
|
2022-01-15 21:34:10 +00:00
|
|
|
Status string `json:"status"`
|
|
|
|
Labels []string `json:"labels"`
|
|
|
|
Groups []string `json:"groups,omitempty"`
|
|
|
|
TagCount int32 `json:"tagCount"`
|
2022-01-28 07:01:17 +00:00
|
|
|
TagUpdated int64 `json:"tagUpdated,omitempty"`
|
2022-01-15 21:34:10 +00:00
|
|
|
TagRevision int64 `json:"tagRevision"`
|
|
|
|
}
|
|
|
|
|
2022-01-28 22:37:35 +00:00
|
|
|
type ArticleView struct {
|
|
|
|
ArticleId string `json:"articleId"`
|
|
|
|
Revision int64 `json:"revision"`
|
|
|
|
TagRevision int64 `json:"tagRevision"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleAccess struct {
|
|
|
|
Labels []string `json:"labels"`
|
|
|
|
Groups []string `json:"groups"`
|
|
|
|
}
|
|
|
|
|
2022-01-15 21:34:10 +00:00
|
|
|
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 Card struct {
|
|
|
|
CardId string `json:"cardId"`
|
|
|
|
CardProfile *CardProfile `json:"cardProfile"`
|
|
|
|
CardData *CardData `json:"cardData"`
|
2022-01-28 21:39:31 +00:00
|
|
|
NotifiedProfile int64 `json:"notifiedProfile"`
|
|
|
|
NotifiedContent int64 `json:"notifiedContent"`
|
|
|
|
NotifiedView int64 `json:"notifiedView"`
|
2022-01-15 21:49:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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 {
|
2022-01-20 23:19:26 +00:00
|
|
|
Guid string `json:"guid"`
|
2022-01-15 21:49:28 +00:00
|
|
|
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"`
|
2022-01-20 23:19:26 +00:00
|
|
|
Version string `json:"version"`
|
2022-01-15 21:49:28 +00:00
|
|
|
Node string `json:"node"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CardView struct {
|
|
|
|
CardId string `json:"cardId"`
|
|
|
|
ProfileRevision int64 `json:"profileRevision"`
|
2022-01-21 08:05:42 +00:00
|
|
|
DataRevision int64 `json:"dataRevision"`
|
2022-01-28 21:39:31 +00:00
|
|
|
NotifiedProfile int64 `json:"notifiedProfile"`
|
|
|
|
NotifiedContent int64 `json:"notifiedContent"`
|
|
|
|
NotifiedView int64 `json:"notifiedView"`
|
2022-01-15 21:49:28 +00:00
|
|
|
}
|
2022-01-15 21:51:59 +00:00
|
|
|
|
|
|
|
type ContentArticlesBody struct {
|
|
|
|
Labels []string `json:"labels"`
|
|
|
|
Groups []string `json:"groups"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ContentLabelsBody struct {
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
}
|
|
|
|
|
2022-01-15 22:08:00 +00:00
|
|
|
type Dialogue struct {
|
|
|
|
DialogueId string `json:"dialogueId"`
|
|
|
|
DialogueRevison int64 `json:"dialogueRevison,omitempty"`
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
2022-01-18 08:40:39 +00:00
|
|
|
Created int64 `json:"created"`
|
2022-01-15 22:08:00 +00:00
|
|
|
Active bool `json:"active"`
|
|
|
|
InsightRevision int64 `json:"insightRevision,omitempty"`
|
|
|
|
Insights []DialogueInsights `json:"insights"`
|
|
|
|
}
|
|
|
|
|
2022-01-15 21:54:04 +00:00
|
|
|
type DialogueIdSubjectBody struct {
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DialogueInsights struct {
|
|
|
|
CardId string `json:"cardId,omitempty"`
|
|
|
|
Status string `json:"status,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-01-15 21:57:08 +00:00
|
|
|
type Group struct {
|
|
|
|
GroupId string `json:"groupId"`
|
2022-01-25 05:22:33 +00:00
|
|
|
Revision int64 `json:"revision"`
|
|
|
|
DataType string `json:"dataType"`
|
2022-01-15 21:57:08 +00:00
|
|
|
Data string `json:"data"`
|
2022-01-18 08:40:39 +00:00
|
|
|
Created int64 `json:"created"`
|
2022-01-25 05:22:33 +00:00
|
|
|
Updated int64 `json:"updated"`
|
2022-01-15 21:57:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type GroupsGroupIdBody struct {
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
}
|
|
|
|
|
2022-01-15 21:59:26 +00:00
|
|
|
type Insight struct {
|
|
|
|
InsightId string `json:"insightId"`
|
|
|
|
InsightRevision int64 `json:"insightRevision"`
|
|
|
|
CardId string `json:"cardId"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Label struct {
|
|
|
|
LabelId string `json:"labelId"`
|
|
|
|
LabelRevision int64 `json:"labelRevision"`
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
2022-01-18 08:40:39 +00:00
|
|
|
Created int64 `json:"created"`
|
2022-01-15 21:59:26 +00:00
|
|
|
Groups []string `json:"groups,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type LabelsLabelIdBody struct {
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodeConfig struct {
|
|
|
|
Domain string `json:"domain"`
|
|
|
|
PublicLimit int64 `json:"publicLimit"`
|
|
|
|
AccountStorage int64 `json:"accountStorage"`
|
|
|
|
}
|
2022-01-15 22:01:21 +00:00
|
|
|
|
|
|
|
type Profile struct {
|
2022-01-17 05:11:24 +00:00
|
|
|
Guid string `json:"profileId"`
|
2022-01-15 22:01:21 +00:00
|
|
|
Handle string `json:"handle,omitempty"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
Location string `json:"location,omitempty"`
|
|
|
|
Image string `json:"image,omitempty"`
|
|
|
|
Revision int64 `json:"revision"`
|
|
|
|
Version string `json:"version,omitempty"`
|
|
|
|
Node string `json:"node"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ProfileData struct {
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
Location string `json:"location,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Revision struct {
|
|
|
|
Profile int64 `json:"profile"`
|
|
|
|
Content int64 `json:"content"`
|
|
|
|
Label int64 `json:"label"`
|
|
|
|
Group int64 `json:"share"`
|
|
|
|
Card int64 `json:"card"`
|
|
|
|
Dialogue int64 `json:"dialogue"`
|
|
|
|
Insight int64 `json:"insight"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ShareGroupsBody struct {
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
}
|
2022-01-15 22:03:00 +00:00
|
|
|
|
2022-01-15 22:08:00 +00:00
|
|
|
type Tag struct {
|
|
|
|
TagId string `json:"tagId"`
|
|
|
|
CardId string `json:"cardId,omitempty"`
|
|
|
|
Revision int64 `json:"revision"`
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
2022-01-18 08:40:39 +00:00
|
|
|
Created int64 `json:"created"`
|
2022-01-15 22:08:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Topic struct {
|
|
|
|
TopicId string `json:"topicId"`
|
|
|
|
TopicRevision int64 `json:"topicRevision"`
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
2022-01-18 08:40:39 +00:00
|
|
|
Created int64 `json:"created"`
|
|
|
|
Modified int64 `json:"modified"`
|
2022-01-15 22:08:00 +00:00
|
|
|
Status string `json:"status"`
|
|
|
|
TagCount int32 `json:"tagCount"`
|
2022-01-18 08:40:39 +00:00
|
|
|
TagUpdate int64 `json:"tagUpdate,omitempty"`
|
2022-01-15 22:08:00 +00:00
|
|
|
TagRevision int64 `json:"tagRevision"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TopicIdAssetsBody struct {
|
|
|
|
FileName **os.File `json:"fileName,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TopicIdSubjectBody struct {
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type TopicIdTagsBody struct {
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Tunnel struct {
|
|
|
|
CardId string `json:"cardId"`
|
|
|
|
Type_ string `json:"type"`
|
|
|
|
Data string `json:"data,omitempty"`
|
|
|
|
}
|
2022-01-20 07:45:53 +00:00
|
|
|
|
2022-01-21 07:41:08 +00:00
|
|
|
type ContactStatus struct {
|
|
|
|
Token string `json:"token,omitempty"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
}
|
|
|
|
|
2022-01-20 07:45:53 +00:00
|
|
|
type DataMessage struct {
|
|
|
|
Message string `json:"message"`
|
|
|
|
KeyType string `json:"keyType"`
|
|
|
|
PublicKey string `json:"publicKey"`
|
|
|
|
Signature string `json:"signature"`
|
|
|
|
SignatureType string `json:"signatureType"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SignedData struct {
|
|
|
|
Guid string `json:"guid"`
|
|
|
|
Timestamp int64 `json:"timestamp"`
|
|
|
|
MessageType string `json:"messageType"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Identity struct {
|
|
|
|
Revision int64 `json:"revision"`
|
|
|
|
Handle string `json:"handle,omitempty"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
Location string `json:"location,omitempty"`
|
|
|
|
Image string `json:"image,omitempty"`
|
|
|
|
Version string `json:"version"`
|
|
|
|
Node string `json:"node"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Connect struct {
|
|
|
|
Contact string `json:"contact"`
|
|
|
|
Token string `json:"token"`
|
2022-01-28 21:39:31 +00:00
|
|
|
ViewRevision int64 `json:"viewRevision"`
|
2022-01-20 07:45:53 +00:00
|
|
|
ContentRevision int64 `json:"contentRevision"`
|
|
|
|
ProfileRevision int64 `json:"profileRevision,omitempty"`
|
|
|
|
Handle string `json:"handle,omitempty"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
Location string `json:"location,omitempty"`
|
|
|
|
Image string `json:"image,omitempty"`
|
|
|
|
Version string `json:"version,omitempty"`
|
|
|
|
Node string `json:"node,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Disconnect struct {
|
|
|
|
Contact string `json:"contact"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Authenticate struct {
|
|
|
|
Token string `json:"token"`
|
|
|
|
}
|
|
|
|
|