Merge remote-tracking branch 'upstream/main' into merge-gramsrv-0e2fcdf9

This commit is contained in:
onysd 2026-07-24 17:15:53 +03:00
commit b443ff0c73
277 changed files with 30747 additions and 1551 deletions

View file

@ -34,6 +34,21 @@ type AccountDeletionRequest struct {
UpdatedAt pgtype.Timestamptz
}
type AccountFreezeNotification struct {
ID int64
TargetUserID int64
FrozenUserID int64
Version int64
Frozen bool
Status string
Attempts int32
NextAttemptAt pgtype.Timestamptz
LeaseUntil pgtype.Timestamptz
LastError string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type AccountPassword struct {
UserID int64
HasRecovery bool
@ -90,6 +105,7 @@ type AccountRestriction struct {
FrozenSince pgtype.Timestamptz
FrozenUntil pgtype.Timestamptz
AppealUrl string
Version int64
}
type AccountSetting struct {
@ -394,6 +410,38 @@ type BotEmojiStatusPermission struct {
UpdatedAt pgtype.Timestamptz
}
type BotLoginAllowedUrl struct {
ID int64
BotUserID int64
Kind string
NormalizedUrl string
CreatedAt pgtype.Timestamptz
}
type BotLoginClient struct {
BotUserID int64
ClientID string
ClientSecretHash []byte
SecretVersion int64
SigningAlgorithm string
Enabled bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type BotLoginNativeApp struct {
ID int64
BotUserID int64
Platform string
ApplicationID string
VerificationID string
CallbackUri string
VerifiedDisplayName string
Enabled bool
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type BotUserPermission struct {
BotUserID int64
UserID int64
@ -504,6 +552,9 @@ type Channel struct {
Wallpaper []byte
Verified bool
LinkedCommunityID int64
Scam bool
Fake bool
Gigagroup bool
}
type ChannelAdminLogEvent struct {
@ -1596,6 +1647,17 @@ type SeedState struct {
UpdatedAt pgtype.Timestamptz
}
type StarGiftAdminGrantCommand struct {
RecipientUserID int64
CommandKey string
RequestFingerprint []byte
SenderUserID int64
GiftID int64
SavedGiftID int64
UniqueGiftID int64
CreatedAt pgtype.Timestamptz
}
type StarGiftAuction struct {
GiftID int64
Slug string
@ -1654,6 +1716,14 @@ type StarGiftAuctionBidPayment struct {
CreatedAt int32
}
type StarGiftBoxMediaRepair struct {
OwnerUserID int64
BoxID int32
PeerType string
PeerID int64
RepairedMedia []byte
}
type StarGiftCatalog struct {
GiftID int64
ActiveRevisionID int64
@ -1768,6 +1838,13 @@ type StarGiftCollectiblePattern struct {
OfficialDocumentID *int64
}
type StarGiftCollectiblePreviewRepair struct {
GiftID int64
CollectibleRevisionID int64
Reason string
RepairedAt pgtype.Timestamptz
}
type StarGiftCollectibleRevision struct {
ID int64
GiftID int64
@ -1823,6 +1900,16 @@ type StarGiftCraftCommand struct {
ChancePermille int32
CreatedAt int32
SourceEditPts []int32
OutputMedia []byte
OutputFingerprint []byte
}
type StarGiftCraftMessageRepair struct {
OwnerUserID int64
BoxID int32
UniqueGiftID int64
DesiredCraftChance int32
DesiredCanCraftAt int32
}
type StarGiftDropDetailsCommand struct {
@ -1885,6 +1972,29 @@ type StarGiftPatternPreviewDocumentRepair struct {
RepairedAt pgtype.Timestamptz
}
type StarGiftPinRepair struct {
ID int64
NewOrder int32
}
type StarGiftPrepaidMessageAlias struct {
OwnerUserID int64
BoxID int32
SavedGiftID int64
MessageSenderID int64
PrivateMessageID int64
}
type StarGiftPrepaidMessageRepair struct {
OwnerUserID int64
BoxID int32
PeerType string
PeerID int64
MessageSenderID int64
PrivateMessageID int64
RepairedMedia []byte
}
type StarGiftPrepaidUpgradeCommand struct {
PayerUserID int64
CommandKey string
@ -1964,6 +2074,14 @@ type StarGiftUpgradeCommand struct {
SourceEditPts int32
}
// Owner-local service-message aliases (unique outputs and separate prepaid-upgrade notifications) for one saved gift aggregate.
type StarGiftUserMessageRef struct {
OwnerUserID int64
MsgID int32
SavedGiftID int64
CreatedAt pgtype.Timestamptz
}
type StarGiftUserPurchase struct {
UserID int64
GiftID int64
@ -1971,6 +2089,14 @@ type StarGiftUserPurchase struct {
UpdatedAt pgtype.Timestamptz
}
type StarGiftUserUniqueMediaRepair struct {
OwnerUserID int64
BoxID int32
PeerType string
PeerID int64
RepairedMedia []byte
}
type StarGiftWithdrawalRequest struct {
ID int64
UniqueGiftID int64
@ -2100,6 +2226,85 @@ type StoryView struct {
UpdatedAt pgtype.Timestamptz
}
type SuggestedPostApproval struct {
MonoforumID int64
SuggestionMessageID int32
ParentChannelID int64
ActorUserID int64
PayerUserID int64
State string
PriceKind string
PriceAmount int64
PriceNanos int32
ScheduleDate int32
ApprovalServiceMessageID int32
PublishedMessageID int32
SettlementDue int32
FinalServiceMessageID int32
CreatedAt int32
UpdatedAt int32
}
type TelegramLoginCode struct {
ID int64
RequestID int64
CodeHash []byte
SealedCode []byte
SealNonce []byte
SealKeyID string
IssuedAt pgtype.Timestamptz
ExpiresAt pgtype.Timestamptz
ConsumedAt pgtype.Timestamptz
}
type TelegramLoginRequest struct {
ID int64
RequestTokenHash []byte
BrowserTokenHash []byte
BotUserID int64
ClientID string
SigningAlgorithm string
Source string
ResponseType string
RedirectUri string
Origin string
Domain string
RequestedScopes []string
OauthState string
Nonce string
CodeChallenge string
CodeChallengeMethod string
Browser string
Platform string
Ip string
Region string
InAppOrigin string
IsApp bool
VerifiedAppName string
MatchCodes []string
MatchCode string
MatchCodesFirst bool
UserIDHint int64
PeerType string
PeerID int64
MessageID int32
ButtonID int32
Status string
AuthorizedUserID *int64
ProfileName string
GivenName string
FamilyName string
PreferredUsername string
Picture string
PhoneNumber string
WriteAllowed bool
PhoneShared bool
CreatedAt pgtype.Timestamptz
ExpiresAt pgtype.Timestamptz
ApprovedAt pgtype.Timestamptz
DeclinedAt pgtype.Timestamptz
}
type TelesrvCollectiblePatternCorrectionEvent struct {
UserID int64
Pts int32
@ -2276,6 +2481,7 @@ type User struct {
BirthdayMonth int32
BirthdayYear int32
PersonalChannelID int64
SignupEmail string
DeletedAt pgtype.Timestamptz
DeletionSource string
DeletionReason string
@ -2283,7 +2489,8 @@ type User struct {
EmojiStatusCollectibleID *int64
EmojiStatusCollectible []byte
LinkedCommunityID int64
SignupEmail string
Scam bool
Fake bool
}
type UserBusinessProfile struct {
@ -2402,6 +2609,24 @@ type UserUpdateWatermark struct {
UpdatedAt pgtype.Timestamptz
}
type WebAuthorization struct {
Hash int64
RequestID int64
UserID int64
BotUserID int64
Domain string
Browser string
Platform string
Ip string
Region string
GrantedScopes []string
PhoneShared bool
BotAccessGranted bool
CreatedAt pgtype.Timestamptz
LastActiveAt pgtype.Timestamptz
RevokedAt pgtype.Timestamptz
}
type WebPage struct {
UrlHash int64
WebPageID int64