Releases: tada-team/tdproto-ts
tdproto batch update v1.33.4 - v1.34.1
Includes protocol updates from tdproto versions from v1.33.4 to 1.34.1 (both including).
tdproto batch update v1.31.1 - v1.33.3
Includes protocol updates from tdproto versions from v1.31.1 to 1.33.3 (both including).
Fixes missing fields from 0.6.3, update Call-related structs
Fixes missing fields that were supposed to be added in 0.6.3.
CallEvent:
- (fix)
finish
is now optional - (fix)
start
is now optional - (feat)
gentime: number
- (feat)
jid: JID
- (feat)
timestamp: number
- (feat)
uid: string
- (feat)
buzz?: boolean
ClientCallBuzzParams:
- (fix)
members
is now optional
ClientCallLeaveParams:
- (fix)
reason
is now optional
ClientCallRejectParams:
- (fix)
reason
is now optional
ClientCallTrickleParams:
- (fix)
sdp_mid
is now optional - (fix)
sdp_mline_index
is now optional
ServerCallAnswerParams:
- (fix)
candidates
is now optional
ServerCallState:
- (feat)
params
is now of typeCallEvent
ServerCallState params is now deprecated.
Documentation, new Features fields
New fields:
- Country ISO code on
Country
support_email
,app_login_background
,web_login_background
onFeatures
Deprecated:
background
onFeatures
New type:
RGBColor
- string alias
New fields in Features, blurhash and types export.
Basic types are now exported and can be consumed in your library:
UiSettings
, ChatType
, GroupStatus
, MarkupType
, Mediasubtype
, Mediatype
, TeamStatus
, UploadMediaType
, ISODateTimeString
, JID
, PushDeviceType
, TaskFilterKey
, TaskSortKey
, TaskTabKey
New fields in Features
:
background?: string
Background image url, if anyinstallation_title?: string
Installation title, used on login screenlanding_url?: string
Landing page address, if any
Changes in IconData
:
lg
andsm
are always present now- new field optional
blurhash?: string
Compact representation of a placeholder for an image (experimental) stub
is now deprecated, use with caution
New field in MessageContent
:
blurhash?: string
Compact representation of a placeholder for an image. Deprecated: use Uploads instead
New field in Upload
:
blurhash?: string
Compact representation of a placeholder for an image (images only)
Minor annotations changes.
Allow for keeping generated lines order on each regen
No breaking changes. Same regenerated code, that should now not mix lines on each regeneration.
Use server json keys for classes and interfaces field keys
Now all fields names are generated based on keys, that client receives in JSON. Keys are turned from pascal to camel case.
These keys used to be generated from fields types as they are named on the server.
Move to class syntax. Deprecate old repo. Add server fields.
- module is moved from interface-like syntax to Classes
- added server (pascal-cased) fields to all server structs -
StructNameJSON
- added ability to export partial server-like structs (for
PUT
queries, for example) - useClassInstance.toJSON([field1, field2, ...])
- added babel transpilation
- moved repo to organisation scope, now at
@tada-team/tdproto-ts
- various minor fixes and improvements