Documentation
¶
Index ¶
- Variables
- func ConvertCompressedToLegacyKey(k string) (string, error)
- func RemoveUnknownAndDeduplicateTags(input []string) []string
- func ValidateAccountCreationRequest(c CreateAccount) error
- func ValidateTags(input []string) bool
- type AcceptContactRequest
- type AcceptLatestContactRequestForContact
- type AcceptRequestToJoinCommunity
- type AddContact
- type AddRoleToMember
- type AddWalletConnectSession
- type BanUserFromCommunity
- type BuildContact
- type CancelRequestToJoinCommunity
- type CheckAllCommunityChannelsPermissions
- type CheckCommunityChannelPermissions
- type CheckPermissionToJoinCommunity
- type ClearHistory
- type CommunityChannelShareURL
- type CommunityMetricsRequest
- type CommunityMetricsRequestType
- type CreateAccount
- type CreateCommunity
- type CreateCommunityCategory
- type CreateCommunityTokenPermission
- type CreateOneToOneChat
- type CreateProfileChatdeprecated
- type CreatePublicChat
- type DeactivateChat
- type DeclineContactRequest
- type DeclineRequestToJoinCommunity
- type DeleteCommunityCategory
- type DeleteCommunityTokenPermission
- type DismissLatestContactRequestForContact
- type EditCommunity
- type EditCommunityCategory
- type EditCommunityTokenPermission
- type EditMessage
- type EditSharedAddresses
- type ImportDiscordCommunity
- type Login
- type MetricsIntervalRequest
- type MuteCategory
- type MuteChat
- type MuteCommunity
- type MutingVariation
- type ReevaluateCommunityMembersPermissions
- type RemoveRoleFromMember
- type ReorderCommunityCategories
- type ReorderCommunityChat
- type RequestToJoinCommunity
- type RestoreAccount
- type RetractContactRequest
- type SendContactRequest
- type SendGroupChatMessage
- type SendOneToOneMessage
- type SetContactLocalNickname
- type ShareCommunity
- type ShareImageMessage
- type ToggleCollapsedCommunityCategory
- type UnbanUserFromCommunity
- type UpsertSwitcherCard
- type VerifiedTrusted
- type VerifiedUntrustworthy
- type WalletSecretsConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCheckCommunityChannelPermissionsInvalidID = errors.New("check-community-channel-permissions: invalid id") ErrCheckCommunityChannelPermissionsInvalidChatID = errors.New("check-community-channel-permissions: invalid chat id") )
View Source
var ( ErrCreateCommunityInvalidName = errors.New("create-community: invalid name") ErrCreateCommunityInvalidColor = errors.New("create-community: invalid color") ErrCreateCommunityInvalidDescription = errors.New("create-community: invalid description") ErrCreateCommunityInvalidIntroMessage = errors.New("create-community: invalid intro message") ErrCreateCommunityInvalidOutroMessage = errors.New("create-community: invalid outro message") ErrCreateCommunityInvalidMembership = errors.New("create-community: invalid membership") ErrCreateCommunityInvalidTags = errors.New("create-community: invalid tags") )
View Source
var ( ErrCreateCommunityTokenPermissionInvalidCommunityID = errors.New("create community token permission needs a valid community id") ErrCreateCommunityTokenPermissionTooManyTokenCriteria = errors.New("too many token criteria") ErrCreateCommunityTokenPermissionInvalidPermissionType = errors.New("invalid community token permission type") ErrCreateCommunityTokenPermissionInvalidTokenCriteria = errors.New("invalid community permission token criteria data") )
View Source
var ErrAcceptContactRequestInvalidID = errors.New("accept-contact-request: invalid id")
View Source
var ErrAcceptLatestContactRequestForContactInvalidID = errors.New("accept-latest-contact-request-for-contact: invalid id")
View Source
var ErrAcceptRequestToJoinCommunityInvalidID = errors.New("accept-request-to-join-community: invalid id")
View Source
var ErrAddContactInvalidID = errors.New("add-contact: invalid id")
View Source
var ErrAddRoleToMemberInvalidCommunityID = errors.New("add-role-to-member: invalid community id")
View Source
var ErrAddRoleToMemberInvalidRole = errors.New("add-role-to-member: invalid role")
View Source
var ErrAddRoleToMemberInvalidUser = errors.New("add-role-to-member: invalid user id")
View Source
var ErrAddWalletConnectSessionInvalidDAppName = errors.New("add-wallet-connect-session: invalid dapp name")
View Source
var ErrAddWalletConnectSessionInvalidDAppURL = errors.New("add-wallet-connect-session: invalid dapp url")
View Source
var ErrAddWalletConnectSessionInvalidID = errors.New("add-wallet-connect-session: invalid id")
View Source
var ErrAddWalletConnectSessionInvalidInfo = errors.New("add-wallet-connect-session: invalid info")
View Source
var ErrBanUserFromCommunityInvalidCommunityID = errors.New("ban-user-from-community: invalid community id")
View Source
var ErrBanUserFromCommunityInvalidUser = errors.New("ban-user-from-community: invalid user id")
View Source
var ErrCancelRequestToJoinCommunityInvalidID = errors.New("cancel-request-to-join-community: invalid id")
View Source
var (
ErrCheckAllCommunityChannelsPermissionsInvalidID = errors.New("check-community-channel-permissions: invalid id")
)
View Source
var (
ErrCheckPermissionToJoinCommunityInvalidID = errors.New("check-permission-to-join-community: invalid id")
)
View Source
var ErrClearHistoryInvalidID = errors.New("clear-history: invalid id")
View Source
var (
)
View Source
var ErrCreateAccountInvalidBackupDisabledDataDir = errors.New("create-account: invalid backup disabled data directory")
View Source
var ErrCreateAccountInvalidCustomizationColor = errors.New("create-account: invalid customization color")
View Source
var ErrCreateAccountInvalidDisplayName = errors.New("create-account: invalid display name")
View Source
var ErrCreateAccountInvalidLogFilePath = errors.New("create-account: invalid log file path")
View Source
var ErrCreateAccountInvalidPassword = errors.New("create-account: invalid password")
View Source
var ErrCreateAccountInvalidRootKeystoreDir = errors.New("create-account: invalid root keystore directory")
View Source
var ErrCreateCommunityCategoryInvalidCommunityID = errors.New("create-community-category: invalid community id")
View Source
var ErrCreateCommunityCategoryInvalidName = errors.New("create-community-category: invalid category name")
View Source
var ErrCreateOneToOneChatInvalidID = errors.New("create-one-to-one-chat: invalid id")
View Source
var ErrCreatePublicChatInvalidID = errors.New("create-public-chat: invalid id")
View Source
var ErrDeactivateChatInvalidID = errors.New("deactivate-chat: invalid id")
View Source
var ErrDeclineContactRequestInvalidID = errors.New("decline-contact-request: invalid id")
View Source
var ErrDeclineRequestToJoinCommunityInvalidID = errors.New("accept-request-to-join-community: invalid id")
View Source
var ErrDeleteCommunityCategoryInvalidCategoryID = errors.New("delete-community-category: invalid category id")
View Source
var ErrDeleteCommunityCategoryInvalidCommunityID = errors.New("delete-community-category: invalid community id")
View Source
var ErrDeleteCommunityTokenPermissionInvalidCommunityID = errors.New("delete community token permission needs a valid community id ")
View Source
var ErrDeleteCommunityTokenPermissionInvalidPermissionID = errors.New("invalid token permission id")
View Source
var ErrDismissLatestContactRequestForContactInvalidID = errors.New("dismiss-latest-contact-request-for-contact: invalid id")
View Source
var ErrEditCommunityCategoryInvalidCategoryID = errors.New("edit-community-category: invalid category id")
View Source
var ErrEditCommunityCategoryInvalidCommunityID = errors.New("edit-community-category: invalid community id")
View Source
var ErrEditCommunityCategoryInvalidName = errors.New("edit-community-category: invalid category name")
View Source
var (
ErrEditCommunityInvalidID = errors.New("edit-community: invalid id")
)
View Source
var (
ErrEditCommunityTokenPermissionInvalidID = errors.New("invalid community token permission id")
)
View Source
var ErrEditMessageInvalidID = errors.New("edit-message: invalid id")
View Source
var ErrEditMessageInvalidText = errors.New("edit-message: invalid text")
View Source
var (
ErrImportDiscordCommunityMissingFilesToImport = errors.New("import-discord-community: missing files to import")
)
View Source
var ErrInvalidCommunityID = errors.New("invalid community id")
View Source
var ErrInvalidMuteCategoryParams = errors.New("mute-category: invalid params")
View Source
var ErrInvalidMuteChatParams = errors.New("mute-chat: invalid params")
View Source
var ErrInvalidMuteCommunityParams = errors.New("mute-community: invalid params")
View Source
var ErrInvalidTimestampIntervals = errors.New("community metrics request invalid time intervals")
View Source
var ErrLoginInvalidKeyUID = errors.New("login: invalid key-uid")
View Source
var ErrMissingAirdropAddress = errors.New("airdropAddress is needed")
View Source
var ErrMissingPassword = errors.New("password is necessary when sending a list of addresses")
View Source
var ErrNoCommunityID = errors.New("community metrics request has no community id")
View Source
var ErrRemoveRoleFromMemberInvalidCommunityID = errors.New("remove-role-from-member: invalid community id")
View Source
var ErrRemoveRoleFromMemberInvalidRole = errors.New("remove-role-from-member: invalid role")
View Source
var ErrRemoveRoleFromMemberInvalidUser = errors.New("remove-role-from-member: invalid user id")
View Source
var ErrReorderCommunityCategoryInvalidCategoryID = errors.New("reorder-community-category: invalid category id")
View Source
var ErrReorderCommunityCategoryInvalidCommunityID = errors.New("reorder-community-category: invalid community id")
View Source
var ErrReorderCommunityCategoryInvalidPosition = errors.New("reorder-community-category: invalid position")
View Source
var ErrReorderCommunityChatInvalidChatID = errors.New("reorder-community-chat: invalid chat id")
View Source
var ErrReorderCommunityChatInvalidCommunityID = errors.New("reorder-community-chat: invalid community id")
View Source
var ErrReorderCommunityChatInvalidPosition = errors.New("reorder-community-chat: invalid position")
View Source
var ErrRequestToJoinCommunityInvalidCommunityID = errors.New("request-to-join-community: invalid community id")
View Source
var ErrRequestToJoinCommunityMissingPassword = errors.New("request-to-join-community: password is necessary when sending a list of addresses")
View Source
var ErrRequestToJoinNoAirdropAddress = errors.New("request-to-join-community: airdropAddress is necessary when sending a list of addresses")
View Source
var ErrRestoreAccountInvalidMnemonic = errors.New("restore-account: invalid mnemonic")
View Source
var ErrRetractContactRequestInvalidContactID = errors.New("retract-contact-request: invalid id")
View Source
var ErrSendContactRequestInvalidID = errors.New("send-contact-request: invalid id")
View Source
var ErrSendContactRequestInvalidMessage = errors.New("send-contact-request: invalid message")
View Source
var ErrSendGroupChatMessageInvalidID = errors.New("send-group-chat-message: invalid id")
View Source
var ErrSendGroupChatMessageInvalidMessage = errors.New("send-group-chat-message: invalid message")
View Source
var ErrSendOneToOneMessageInvalidID = errors.New("send-one-to-one-message: invalid id")
View Source
var ErrSendOneToOneMessageInvalidMessage = errors.New("send-one-to-one-message: invalid message")
View Source
var ErrSetContactLocalNicknameInvalidID = errors.New("add-contact: invalid id")
View Source
var ErrToggleCollapsedCommunityCategoryInvalidCommunityID = errors.New("toggle-collapsed-community-category: invalid community id")
View Source
var ErrToggleCollapsedCommunityCategoryInvalidName = errors.New("toggle-collapsed-community-category: invalid category name")
View Source
var ErrUnbanUserFromCommunityInvalidCommunityID = errors.New("unban-user-from-community: invalid community id")
View Source
var ErrUnbanUserFromCommunityInvalidUser = errors.New("unban-user-from-community: invalid user id")
View Source
var ErrUpsertSwitcherCardInvalidCardID = errors.New("upsert-switcher-card: invalid card id")
View Source
var ErrVerifiedTrustedInvalidID = errors.New("verified-trusted: invalid id")
View Source
var ErrVerifiedUntrustworthyInvalidID = errors.New("verified-untrustworthy: invalid id")
View Source
var TagsEmojies map[string]string
Functions ¶
func ConvertCompressedToLegacyKey ¶ added in v0.138.8
func RemoveUnknownAndDeduplicateTags ¶ added in v0.102.5
func ValidateAccountCreationRequest ¶ added in v0.139.1
func ValidateAccountCreationRequest(c CreateAccount) error
func ValidateTags ¶ added in v0.102.5
Types ¶
type AcceptContactRequest ¶ added in v0.100.0
func (*AcceptContactRequest) Validate ¶ added in v0.100.0
func (a *AcceptContactRequest) Validate() error
type AcceptLatestContactRequestForContact ¶ added in v0.102.2
func (*AcceptLatestContactRequestForContact) Validate ¶ added in v0.102.2
func (a *AcceptLatestContactRequestForContact) Validate() error
type AcceptRequestToJoinCommunity ¶
func (*AcceptRequestToJoinCommunity) Validate ¶
func (j *AcceptRequestToJoinCommunity) Validate() error
type AddContact ¶ added in v0.90.0
type AddContact struct {
ID string `json:"id"`
Nickname string `json:"nickname"`
DisplayName string `json:"displayName"`
ENSName string `json:"ensName"`
}
func (*AddContact) HexID ¶ added in v0.138.8
func (a *AddContact) HexID() (string, error)
func (*AddContact) Validate ¶ added in v0.90.0
func (a *AddContact) Validate() error
type AddRoleToMember ¶ added in v0.115.5
type AddRoleToMember struct {
CommunityID types.HexBytes `json:"communityId"`
User types.HexBytes `json:"user"`
Role protobuf.CommunityMember_Roles `json:"role"`
}
func (*AddRoleToMember) Validate ¶ added in v0.115.5
func (a *AddRoleToMember) Validate() error
type AddWalletConnectSession ¶ added in v0.105.1
type AddWalletConnectSession struct {
PeerID string `json:"id"`
DAppName string `json:"dappName"`
DAppURL string `json:"dappUrl"`
Info string `json:"info"`
}
func (*AddWalletConnectSession) Validate ¶ added in v0.105.1
func (c *AddWalletConnectSession) Validate() error
type BanUserFromCommunity ¶ added in v0.73.9
type BanUserFromCommunity struct {
CommunityID types.HexBytes `json:"communityId"`
User types.HexBytes `json:"user"`
}
func (*BanUserFromCommunity) Validate ¶ added in v0.73.9
func (b *BanUserFromCommunity) Validate() error
type BuildContact ¶ added in v0.138.3
type CancelRequestToJoinCommunity ¶ added in v0.114.1
func (*CancelRequestToJoinCommunity) Validate ¶ added in v0.114.1
func (j *CancelRequestToJoinCommunity) Validate() error
type CheckAllCommunityChannelsPermissions ¶ added in v0.159.2
type CheckAllCommunityChannelsPermissions struct {
CommunityID types.HexBytes
Addresses []string `json:"addresses"`
}
func (*CheckAllCommunityChannelsPermissions) Validate ¶ added in v0.159.2
func (u *CheckAllCommunityChannelsPermissions) Validate() error
type CheckCommunityChannelPermissions ¶ added in v0.159.2
type CheckCommunityChannelPermissions struct {
CommunityID types.HexBytes
ChatID string
Addresses []string `json:"addresses"`
}
func (*CheckCommunityChannelPermissions) Validate ¶ added in v0.159.2
func (u *CheckCommunityChannelPermissions) Validate() error
type CheckPermissionToJoinCommunity ¶ added in v0.151.13
type CheckPermissionToJoinCommunity struct {
CommunityID types.HexBytes `json:"communityId"`
Addresses []string `json:"addresses"`
}
func (*CheckPermissionToJoinCommunity) Validate ¶ added in v0.151.13
func (u *CheckPermissionToJoinCommunity) Validate() error
type ClearHistory ¶ added in v0.79.0
type ClearHistory struct {
ID string `json:"id"`
}
func (*ClearHistory) Validate ¶ added in v0.79.0
func (c *ClearHistory) Validate() error
type CommunityChannelShareURL ¶ added in v0.161.2
type CommunityChannelShareURL struct {
}
func (*CommunityChannelShareURL) Validate ¶ added in v0.161.2
func (r *CommunityChannelShareURL) Validate() error
type CommunityMetricsRequest ¶ added in v0.162.14
type CommunityMetricsRequest struct {
CommunityID types.HexBytes `json:"communityId"`
Type CommunityMetricsRequestType `json:"type"`
Intervals []MetricsIntervalRequest `json:"intervals"`
}
func (*CommunityMetricsRequest) Validate ¶ added in v0.162.14
func (r *CommunityMetricsRequest) Validate() error
type CommunityMetricsRequestType ¶ added in v0.162.14
type CommunityMetricsRequestType uint
const ( CommunityMetricsRequestMessagesTimestamps CommunityMetricsRequestType = iota CommunityMetricsRequestMessagesCount CommunityMetricsRequestMembers CommunityMetricsRequestControlNodeUptime )
type CreateAccount ¶ added in v0.138.8
type CreateAccount struct {
// BackupDisabledDataDir is the directory where backup is disabled
BackupDisabledDataDir string `json:"backupDisabledDataDir"`
DeviceName string `json:"deviceName"`
DisplayName string `json:"displayName"`
Password string `json:"password"`
ImagePath string `json:"imagePath"`
CustomizationColor string `json:"customizationColor"`
WakuV2Nameserver *string `json:"wakuV2Nameserver"`
WakuV2LightClient bool `json:"wakuV2LightClient"`
LogLevel *string `json:"logLevel"`
LogFilePath string `json:"logFilePath"`
LogEnabled bool `json:"logEnabled"`
PreviewPrivacy bool `json:"previewPrivacy"`
VerifyTransactionURL *string `json:"verifyTransactionURL"`
VerifyENSURL *string `json:"verifyENSURL"`
VerifyENSContractAddress *string `json:"verifyENSContractAddress"`
VerifyTransactionChainID *int64 `json:"verifyTransactionChainID"`
UpstreamConfig string `json:"upstreamConfig"`
CurrentNetwork string `json:"currentNetwork"`
NetworkID uint64 `json:"networkId"`
WalletSecretsConfig
}
func (*CreateAccount) Validate ¶ added in v0.138.8
func (c *CreateAccount) Validate() error
type CreateCommunity ¶
type CreateCommunity struct {
Name string `json:"name"`
Description string `json:"description"`
IntroMessage string `json:"introMessage,omitempty"`
OutroMessage string `json:"outroMessage,omitempty"`
Color string `json:"color"`
Emoji string `json:"emoji"`
Membership protobuf.CommunityPermissions_Access `json:"membership"`
EnsOnly bool `json:"ensOnly"`
Image string `json:"image"`
ImageAx int `json:"imageAx"`
ImageAy int `json:"imageAy"`
ImageBx int `json:"imageBx"`
ImageBy int `json:"imageBy"`
Banner images.CroppedImage `json:"banner"`
HistoryArchiveSupportEnabled bool `json:"historyArchiveSupportEnabled,omitempty"`
PinMessageAllMembersEnabled bool `json:"pinMessageAllMembersEnabled,omitempty"`
Tags []string `json:"tags,omitempty"`
}
func (*CreateCommunity) ToCommunityDescription ¶
func (c *CreateCommunity) ToCommunityDescription() (*protobuf.CommunityDescription, error)
func (*CreateCommunity) Validate ¶
func (c *CreateCommunity) Validate() error
type CreateCommunityCategory ¶ added in v0.79.3
type CreateCommunityCategory struct {
CommunityID types.HexBytes `json:"communityId"`
CategoryName string `json:"categoryName"`
ChatIDs []string `json:"chatIds"`
ThirdPartyID string `json:"thirdPartyID,omitempty"`
}
func (*CreateCommunityCategory) Validate ¶ added in v0.79.3
func (j *CreateCommunityCategory) Validate() error
type CreateCommunityTokenPermission ¶ added in v0.136.0
type CreateCommunityTokenPermission struct {
CommunityID types.HexBytes `json:"communityId"`
Type protobuf.CommunityTokenPermission_Type `json:"type"`
TokenCriteria []*protobuf.TokenCriteria `json:"tokenCriteria"`
IsPrivate bool `json:"isPrivate"`
ChatIds []string `json:"chat_ids"`
}
func (*CreateCommunityTokenPermission) ToCommunityTokenPermission ¶ added in v0.136.0
func (p *CreateCommunityTokenPermission) ToCommunityTokenPermission() protobuf.CommunityTokenPermission
func (*CreateCommunityTokenPermission) Validate ¶ added in v0.136.0
func (p *CreateCommunityTokenPermission) Validate() error
type CreateOneToOneChat ¶
func (*CreateOneToOneChat) Validate ¶
func (c *CreateOneToOneChat) Validate() error
type CreateProfileChat
deprecated
added in
v0.79.0
type CreateProfileChat struct {
ID string `json:"id"`
}
Deprecated: CreateProfileChat shouldn't be used and is only left here in case profile chat feature is re-introduced.
func (*CreateProfileChat) Validate
deprecated
added in
v0.79.0
func (c *CreateProfileChat) Validate() error
Deprecated: Validate shouldn't be used and is only left here in case profile chat feature is re-introduced.
type CreatePublicChat ¶ added in v0.79.0
type CreatePublicChat struct {
ID string `json:"id"`
}
func (*CreatePublicChat) Validate ¶ added in v0.79.0
func (c *CreatePublicChat) Validate() error
type DeactivateChat ¶ added in v0.79.0
type DeactivateChat struct {
ID string `json:"id"`
}
func (*DeactivateChat) Validate ¶ added in v0.79.0
func (j *DeactivateChat) Validate() error
type DeclineContactRequest ¶ added in v0.131.11
func (*DeclineContactRequest) Validate ¶ added in v0.131.11
func (a *DeclineContactRequest) Validate() error
type DeclineRequestToJoinCommunity ¶
func (*DeclineRequestToJoinCommunity) Validate ¶
func (j *DeclineRequestToJoinCommunity) Validate() error
type DeleteCommunityCategory ¶ added in v0.79.3
type DeleteCommunityCategory struct {
CommunityID types.HexBytes `json:"communityId"`
CategoryID string `json:"categoryId"`
}
func (*DeleteCommunityCategory) Validate ¶ added in v0.79.3
func (j *DeleteCommunityCategory) Validate() error
type DeleteCommunityTokenPermission ¶ added in v0.136.0
type DeleteCommunityTokenPermission struct {
CommunityID types.HexBytes `json:"communityId"`
PermissionID string `json:"permissionId"`
}
func (*DeleteCommunityTokenPermission) Validate ¶ added in v0.136.0
func (r *DeleteCommunityTokenPermission) Validate() error
type DismissLatestContactRequestForContact ¶ added in v0.102.2
func (*DismissLatestContactRequestForContact) Validate ¶ added in v0.102.2
func (a *DismissLatestContactRequestForContact) Validate() error
type EditCommunity ¶ added in v0.79.0
type EditCommunity struct {
CommunityID types.HexBytes
CreateCommunity
}
func (*EditCommunity) Validate ¶ added in v0.79.0
func (u *EditCommunity) Validate() error
type EditCommunityCategory ¶ added in v0.79.3
type EditCommunityCategory struct {
CommunityID types.HexBytes `json:"communityId"`
CategoryID string `json:"categoryId"`
CategoryName string `json:"categoryName"`
ChatIDs []string `json:"chatIds"`
}
func (*EditCommunityCategory) Validate ¶ added in v0.79.3
func (j *EditCommunityCategory) Validate() error
type EditCommunityTokenPermission ¶ added in v0.136.0
type EditCommunityTokenPermission struct {
PermissionID string `json:"permissionId"`
CreateCommunityTokenPermission
}
func (*EditCommunityTokenPermission) ToCommunityTokenPermission ¶ added in v0.136.0
func (u *EditCommunityTokenPermission) ToCommunityTokenPermission() protobuf.CommunityTokenPermission
func (*EditCommunityTokenPermission) Validate ¶ added in v0.136.0
func (u *EditCommunityTokenPermission) Validate() error
type EditMessage ¶ added in v0.80.3
type EditMessage struct {
ID types.HexBytes `json:"id"`
Text string `json:"text"`
ContentType protobuf.ChatMessage_ContentType `json:"content-type"`
LinkPreviews []common.LinkPreview `json:"linkPreviews"`
}
func (*EditMessage) Validate ¶ added in v0.80.3
func (e *EditMessage) Validate() error
type EditSharedAddresses ¶ added in v0.161.4
type EditSharedAddresses struct {
}
func (*EditSharedAddresses) Validate ¶ added in v0.161.4
func (j *EditSharedAddresses) Validate() error
type ImportDiscordCommunity ¶ added in v0.114.1
type ImportDiscordCommunity struct {
CreateCommunity
FilesToImport []string
From int64
}
func (*ImportDiscordCommunity) ToCreateCommunityRequest ¶ added in v0.114.1
func (u *ImportDiscordCommunity) ToCreateCommunityRequest() *CreateCommunity
func (*ImportDiscordCommunity) Validate ¶ added in v0.114.1
func (u *ImportDiscordCommunity) Validate() error
type Login ¶ added in v0.154.2
type Login struct {
Password string `json:"password"`
KeyUID string `json:"keyUid"`
KdfIterations int `json:"kdfIterations"`
WakuV2Nameserver string `json:"wakuV2Nameserver"`
WalletSecretsConfig
}
type MetricsIntervalRequest ¶ added in v0.162.14
type MuteCategory ¶ added in v0.154.4
type MuteCategory struct {
CommunityID string
CategoryID string
MutedType MutingVariation
}
func (*MuteCategory) Validate ¶ added in v0.154.4
func (a *MuteCategory) Validate() error
type MuteChat ¶ added in v0.145.2
type MuteChat struct {
ChatID string
MutedType MutingVariation
}
type MuteCommunity ¶ added in v0.159.2
type MuteCommunity struct {
CommunityID types.HexBytes `json:"communityId"`
MutedType MutingVariation `json:"mutedType"`
}
func (*MuteCommunity) Validate ¶ added in v0.159.2
func (a *MuteCommunity) Validate() error
type MutingVariation ¶ added in v0.145.2
type MutingVariation int
type ReevaluateCommunityMembersPermissions ¶ added in v0.163.14
type ReevaluateCommunityMembersPermissions struct {
CommunityID types.HexBytes `json:"communityId"`
}
func (*ReevaluateCommunityMembersPermissions) Validate ¶ added in v0.163.14
func (r *ReevaluateCommunityMembersPermissions) Validate() error
type RemoveRoleFromMember ¶ added in v0.115.5
type RemoveRoleFromMember struct {
CommunityID types.HexBytes `json:"communityId"`
User types.HexBytes `json:"user"`
Role protobuf.CommunityMember_Roles `json:"role"`
}
func (*RemoveRoleFromMember) Validate ¶ added in v0.115.5
func (r *RemoveRoleFromMember) Validate() error
type ReorderCommunityCategories ¶ added in v0.79.3
type ReorderCommunityCategories struct {
CommunityID types.HexBytes `json:"communityId"`
CategoryID string `json:"categoryId"`
Position int `json:"position"`
}
func (*ReorderCommunityCategories) Validate ¶ added in v0.79.3
func (j *ReorderCommunityCategories) Validate() error
type ReorderCommunityChat ¶ added in v0.79.3
type ReorderCommunityChat struct {
CommunityID types.HexBytes `json:"communityId"`
CategoryID string `json:"categoryId"`
ChatID string `json:"chatId"`
Position int `json:"position"`
}
func (*ReorderCommunityChat) Validate ¶ added in v0.79.3
func (j *ReorderCommunityChat) Validate() error
type RequestToJoinCommunity ¶
type RequestToJoinCommunity struct {
CommunityID types.HexBytes `json:"communityId"`
ENSName string `json:"ensName"`
Password string `json:"password"`
AddressesToReveal []string `json:"addressesToReveal"`
AirdropAddress string `json:"airdropAddress"`
}
func (*RequestToJoinCommunity) Validate ¶
func (j *RequestToJoinCommunity) Validate() error
type RestoreAccount ¶ added in v0.139.1
type RestoreAccount struct {
Mnemonic string `json:"mnemonic"`
CreateAccount
}
func (*RestoreAccount) Validate ¶ added in v0.139.1
func (c *RestoreAccount) Validate() error
type RetractContactRequest ¶ added in v0.100.0
func (*RetractContactRequest) Validate ¶ added in v0.100.0
func (a *RetractContactRequest) Validate() error
type SendContactRequest ¶ added in v0.100.0
func (*SendContactRequest) HexID ¶ added in v0.138.8
func (a *SendContactRequest) HexID() (string, error)
func (*SendContactRequest) Validate ¶ added in v0.100.0
func (a *SendContactRequest) Validate() error
type SendGroupChatMessage ¶ added in v0.138.8
func (*SendGroupChatMessage) Validate ¶ added in v0.138.8
func (a *SendGroupChatMessage) Validate() error
type SendOneToOneMessage ¶ added in v0.138.8
func (*SendOneToOneMessage) HexID ¶ added in v0.138.8
func (a *SendOneToOneMessage) HexID() (string, error)
func (*SendOneToOneMessage) Validate ¶ added in v0.138.8
func (a *SendOneToOneMessage) Validate() error
type SetContactLocalNickname ¶ added in v0.90.0
type SetContactLocalNickname struct {
ID types.HexBytes `json:"id"`
Nickname string `json:"nickname"`
}
func (*SetContactLocalNickname) Validate ¶ added in v0.90.0
func (a *SetContactLocalNickname) Validate() error
type ShareCommunity ¶
type ShareCommunity struct {
}
func (*ShareCommunity) Validate ¶
func (j *ShareCommunity) Validate() error
type ShareImageMessage ¶ added in v0.94.8
type ShareImageMessage struct {
}
func (*ShareImageMessage) Validate ¶ added in v0.94.8
func (s *ShareImageMessage) Validate() error
type ToggleCollapsedCommunityCategory ¶ added in v0.138.4
type ToggleCollapsedCommunityCategory struct {
CommunityID string `json:"communityId"`
CategoryID string `json:"categoryId"`
Collapsed bool `json:"collapsed"`
}
func (*ToggleCollapsedCommunityCategory) Validate ¶ added in v0.138.4
func (t *ToggleCollapsedCommunityCategory) Validate() error
type UnbanUserFromCommunity ¶ added in v0.102.6
type UnbanUserFromCommunity struct {
CommunityID types.HexBytes `json:"communityId"`
User types.HexBytes `json:"user"`
}
func (*UnbanUserFromCommunity) Validate ¶ added in v0.102.6
func (b *UnbanUserFromCommunity) Validate() error
type UpsertSwitcherCard ¶ added in v0.117.3
type UpsertSwitcherCard struct {
CardID string `json:"cardId,omitempty"`
Type int `json:"type"`
Clock uint64 `json:"clock"`
ScreenID string `json:"screenId"`
}
func (*UpsertSwitcherCard) Validate ¶ added in v0.117.3
func (a *UpsertSwitcherCard) Validate() error
type VerifiedTrusted ¶ added in v0.115.1
func (*VerifiedTrusted) Validate ¶ added in v0.115.1
func (a *VerifiedTrusted) Validate() error
type VerifiedUntrustworthy ¶ added in v0.115.1
func (*VerifiedUntrustworthy) Validate ¶ added in v0.115.1
func (a *VerifiedUntrustworthy) Validate() error
type WalletSecretsConfig ¶ added in v0.154.2
type WalletSecretsConfig struct {
PoktToken string `json:"poktToken"`
InfuraToken string `json:"infuraToken"`
InfuraSecret string `json:"infuraSecret"`
OpenseaAPIKey string `json:"openseaApiKey"`
// Testing
GanacheURL string `json:"ganacheURL"`
AlchemyArbitrumMainnetToken string `json:"alchemyArbitrumMainnetToken"`
AlchemyArbitrumGoerliToken string `json:"alchemyArbitrumGoerliToken"`
AlchemyOptimismMainnetToken string `json:"alchemyOptimismMainnetToken"`
AlchemyOptimismGoerliToken string `json:"alchemyOptimismGoerliToken"`
}
Source Files
¶
- accept_contact_request.go
- accept_latest_contact_request_for_contact.go
- accept_request_to_join_community.go
- add_contact.go
- add_role_to_member.go
- add_wallet_connect_session.go
- ban_user_from_community.go
- build_contact.go
- cancel_request_to_join_community.go
- check_all_community_channels_permissions.go
- check_community_channel_permissions.go
- check_permission_to_join_community.go
- clear_history.go
- community_channel_share_url.go
- community_metrics_request.go
- community_tags.go
- create_account.go
- create_community_category.go
- create_community_request.go
- create_community_token_permission_request.go
- create_one_to_one_chat.go
- create_profile_chat.go
- create_public_chat.go
- deactivate_chat.go
- decline_contact_request.go
- decline_request_to_join_community.go
- delete_community_category.go
- delete_community_token_permission.go
- dismiss_latest_contact_request_for_contact.go
- edit_community.go
- edit_community_category.go
- edit_community_token_permission_request.go
- edit_message.go
- edit_shared_addresses.go
- import_discord_community.go
- login.go
- mute_category_request.go
- mute_chat_request.go
- mute_community_request.go
- reevaluate_community_members_permissions.go
- remove_role_from_member.go
- reorder_community_category.go
- reorder_community_chat.go
- request_to_join_community.go
- restore_account.go
- retract_contact_request.go
- send_contact_request.go
- send_group_chat_message.go
- send_one_to_one_message.go
- set_contact_local_nickname.go
- share_community.go
- share_image_message.go
- toggle_collapsed_community_category.go
- unban_user_from_community.go
- upsert_switcher_card.go
- verified_trusted.go
- verified_untrustworthy.go
Click to show internal directories.
Click to hide internal directories.