@tgsnake/skema 3.1.0 → 3.2.1-browser.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +1 -1
  2. package/dist/src/deps.d.ts +4 -3
  3. package/dist/src/deps.js +4 -4
  4. package/dist/src/errors/RpcError.js +3 -1
  5. package/dist/src/helpers.js +19 -34
  6. package/dist/src/raw/class/All.d.ts +49 -5
  7. package/dist/src/raw/class/All.js +2783 -2739
  8. package/dist/src/raw/class/Raw.d.ts +7856 -7518
  9. package/dist/src/raw/class/Raw.js +27367 -20433
  10. package/dist/src/raw/class/tl/account.d.ts +841 -841
  11. package/dist/src/raw/class/tl/account.js +1983 -1813
  12. package/dist/src/raw/class/tl/aicompose.d.ts +51 -51
  13. package/dist/src/raw/class/tl/aicompose.js +128 -117
  14. package/dist/src/raw/class/tl/auth.d.ts +296 -296
  15. package/dist/src/raw/class/tl/auth.js +849 -714
  16. package/dist/src/raw/class/tl/bots.d.ts +353 -232
  17. package/dist/src/raw/class/tl/bots.js +871 -504
  18. package/dist/src/raw/class/tl/channels.d.ts +351 -331
  19. package/dist/src/raw/class/tl/channels.js +873 -735
  20. package/dist/src/raw/class/tl/chatlists.d.ts +81 -81
  21. package/dist/src/raw/class/tl/chatlists.js +196 -183
  22. package/dist/src/raw/class/tl/communities.d.ts +56 -56
  23. package/dist/src/raw/class/tl/communities.js +159 -138
  24. package/dist/src/raw/class/tl/contacts.d.ts +216 -216
  25. package/dist/src/raw/class/tl/contacts.js +537 -492
  26. package/dist/src/raw/class/tl/ephemeral.d.ts +51 -51
  27. package/dist/src/raw/class/tl/ephemeral.js +204 -152
  28. package/dist/src/raw/class/tl/feed.d.ts +278 -0
  29. package/dist/src/raw/class/tl/feed.js +671 -0
  30. package/dist/src/raw/class/tl/folders.d.ts +6 -6
  31. package/dist/src/raw/class/tl/folders.js +11 -11
  32. package/dist/src/raw/class/tl/fragment.d.ts +11 -11
  33. package/dist/src/raw/class/tl/fragment.js +32 -25
  34. package/dist/src/raw/class/tl/help.d.ts +286 -286
  35. package/dist/src/raw/class/tl/help.js +686 -618
  36. package/dist/src/raw/class/tl/langpack.d.ts +26 -26
  37. package/dist/src/raw/class/tl/langpack.js +57 -57
  38. package/dist/src/raw/class/tl/messages.d.ts +1901 -1851
  39. package/dist/src/raw/class/tl/messages.js +6043 -4855
  40. package/dist/src/raw/class/tl/payments.d.ts +677 -641
  41. package/dist/src/raw/class/tl/payments.js +2312 -1734
  42. package/dist/src/raw/class/tl/phone.d.ts +256 -256
  43. package/dist/src/raw/class/tl/phone.js +779 -644
  44. package/dist/src/raw/class/tl/photos.d.ts +41 -41
  45. package/dist/src/raw/class/tl/photos.js +139 -116
  46. package/dist/src/raw/class/tl/premium.d.ts +41 -41
  47. package/dist/src/raw/class/tl/premium.js +133 -111
  48. package/dist/src/raw/class/tl/smsjobs.d.ts +46 -46
  49. package/dist/src/raw/class/tl/smsjobs.js +115 -97
  50. package/dist/src/raw/class/tl/stats.d.ts +71 -71
  51. package/dist/src/raw/class/tl/stats.js +268 -169
  52. package/dist/src/raw/class/tl/stickers.d.ts +61 -61
  53. package/dist/src/raw/class/tl/stickers.js +173 -144
  54. package/dist/src/raw/class/tl/storage.d.ts +51 -51
  55. package/dist/src/raw/class/tl/storage.js +71 -71
  56. package/dist/src/raw/class/tl/stories.d.ts +221 -221
  57. package/dist/src/raw/class/tl/stories.js +781 -622
  58. package/dist/src/raw/class/tl/toncenter.d.ts +21 -21
  59. package/dist/src/raw/class/tl/toncenter.js +52 -47
  60. package/dist/src/raw/class/tl/updates.d.ts +56 -56
  61. package/dist/src/raw/class/tl/updates.js +246 -175
  62. package/dist/src/raw/class/tl/upload.d.ts +66 -66
  63. package/dist/src/raw/class/tl/upload.js +178 -155
  64. package/dist/src/raw/class/tl/users.d.ts +61 -61
  65. package/dist/src/raw/class/tl/users.js +124 -124
  66. package/dist/src/raw/class/tl/wallet.d.ts +257 -206
  67. package/dist/src/raw/class/tl/wallet.js +701 -525
  68. package/dist/src/raw/class/types.d.ts +3 -2
  69. package/dist/src/raw/class/types.js +1 -1
  70. package/dist/src/raw/core/GzipPacked.d.ts +4 -0
  71. package/dist/src/raw/core/GzipPacked.js +9 -1
  72. package/dist/src/raw/core/primitive/Bytes.js +26 -4
  73. package/dist/src/raw/core/primitive/Vector.js +11 -3
  74. package/package.json +7 -5
@@ -0,0 +1,278 @@
1
+ /**
2
+ * tgsnake - Telegram MTProto library for javascript or typescript.
3
+ * Copyright (C) 2026 tgsnake <https://github.com/tgsnake>
4
+ *
5
+ * THIS FILE IS PART OF TGSNAKE
6
+ *
7
+ * tgsnake is a free software: you can redistribute it and/or modify
8
+ * it under the terms of the MIT License as published.
9
+ */
10
+ import { TLObject } from '../../core/index.js';
11
+ import { Buffer, BytesIO } from '../../../deps.js';
12
+ import type { Bool, Vector, int, long } from '../types.js';
13
+ import type * as messages from './messages.js';
14
+ import type * as raw from '../Raw.js';
15
+ export type TypeFeedMessages = FeedMessagesNotModified | FeedMessages;
16
+ export type TypeForYouFeed = ForYouFeed;
17
+ export type TypeInterestCategory = InterestCategory;
18
+ export type TypeInterestCategories = InterestCategoriesNotModified | InterestCategories;
19
+ export declare class FeedMessagesNotModified extends TLObject {
20
+ constructor();
21
+ /**
22
+ * Generate the TLObject from buffer.
23
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
24
+ */
25
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<FeedMessagesNotModified>;
26
+ /**
27
+ * Generate buffer from TLObject.
28
+ */
29
+ write(): Buffer;
30
+ }
31
+ export declare class FeedMessages extends TLObject {
32
+ maxPosition?: raw.TypeFeedPosition;
33
+ minPosition?: raw.TypeFeedPosition;
34
+ readMaxPosition?: raw.TypeFeedPosition;
35
+ messages: Vector<raw.TypeMessage>;
36
+ chats: Vector<raw.TypeChat>;
37
+ users: Vector<raw.TypeUser>;
38
+ constructor(params: {
39
+ maxPosition?: raw.TypeFeedPosition;
40
+ minPosition?: raw.TypeFeedPosition;
41
+ readMaxPosition?: raw.TypeFeedPosition;
42
+ messages: Vector<raw.TypeMessage>;
43
+ chats: Vector<raw.TypeChat>;
44
+ users: Vector<raw.TypeUser>;
45
+ });
46
+ /**
47
+ * Generate the TLObject from buffer.
48
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
49
+ */
50
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<FeedMessages>;
51
+ /**
52
+ * Generate buffer from TLObject.
53
+ */
54
+ write(): Buffer;
55
+ }
56
+ export declare class ForYouFeed extends TLObject {
57
+ items: Vector<raw.TypeFeedItem>;
58
+ chats: Vector<raw.TypeChat>;
59
+ users: Vector<raw.TypeUser>;
60
+ recommendationId?: long;
61
+ constructor(params: {
62
+ items: Vector<raw.TypeFeedItem>;
63
+ chats: Vector<raw.TypeChat>;
64
+ users: Vector<raw.TypeUser>;
65
+ recommendationId?: long;
66
+ });
67
+ /**
68
+ * Generate the TLObject from buffer.
69
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
70
+ */
71
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<ForYouFeed>;
72
+ /**
73
+ * Generate buffer from TLObject.
74
+ */
75
+ write(): Buffer;
76
+ }
77
+ export declare class InterestCategory extends TLObject {
78
+ id: int;
79
+ title: string;
80
+ emoji?: string;
81
+ emojiDocumentId?: long;
82
+ constructor(params: {
83
+ id: int;
84
+ title: string;
85
+ emoji?: string;
86
+ emojiDocumentId?: long;
87
+ });
88
+ /**
89
+ * Generate the TLObject from buffer.
90
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
91
+ */
92
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<InterestCategory>;
93
+ /**
94
+ * Generate buffer from TLObject.
95
+ */
96
+ write(): Buffer;
97
+ }
98
+ export declare class InterestCategoriesNotModified extends TLObject {
99
+ constructor();
100
+ /**
101
+ * Generate the TLObject from buffer.
102
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
103
+ */
104
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<InterestCategoriesNotModified>;
105
+ /**
106
+ * Generate buffer from TLObject.
107
+ */
108
+ write(): Buffer;
109
+ }
110
+ export declare class InterestCategories extends TLObject {
111
+ categories: Vector<TypeInterestCategory>;
112
+ selected: Vector<int>;
113
+ constructor(params: {
114
+ categories: Vector<TypeInterestCategory>;
115
+ selected: Vector<int>;
116
+ });
117
+ /**
118
+ * Generate the TLObject from buffer.
119
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
120
+ */
121
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<InterestCategories>;
122
+ /**
123
+ * Generate buffer from TLObject.
124
+ */
125
+ write(): Buffer;
126
+ }
127
+ export declare class GetFeed extends TLObject {
128
+ __response__: TypeFeedMessages;
129
+ offsetToMaxRead?: boolean;
130
+ filterId: int;
131
+ offsetPosition?: raw.TypeFeedPosition;
132
+ addOffset: int;
133
+ limit: int;
134
+ maxPosition?: raw.TypeFeedPosition;
135
+ minPosition?: raw.TypeFeedPosition;
136
+ hash: long;
137
+ constructor(params: {
138
+ offsetToMaxRead?: boolean;
139
+ filterId: int;
140
+ offsetPosition?: raw.TypeFeedPosition;
141
+ addOffset: int;
142
+ limit: int;
143
+ maxPosition?: raw.TypeFeedPosition;
144
+ minPosition?: raw.TypeFeedPosition;
145
+ hash: long;
146
+ });
147
+ /**
148
+ * Generate the TLObject from buffer.
149
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
150
+ */
151
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<GetFeed>;
152
+ /**
153
+ * Generate buffer from TLObject.
154
+ */
155
+ write(): Buffer;
156
+ }
157
+ export declare class ReadFeed extends TLObject {
158
+ __response__: raw.TypeUpdates;
159
+ filterId: int;
160
+ maxPosition: raw.TypeFeedPosition;
161
+ constructor(params: {
162
+ filterId: int;
163
+ maxPosition: raw.TypeFeedPosition;
164
+ });
165
+ /**
166
+ * Generate the TLObject from buffer.
167
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
168
+ */
169
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<ReadFeed>;
170
+ /**
171
+ * Generate buffer from TLObject.
172
+ */
173
+ write(): Buffer;
174
+ }
175
+ export declare class GetForYou extends TLObject {
176
+ __response__: TypeForYouFeed;
177
+ refresh?: boolean;
178
+ query?: string;
179
+ limit: int;
180
+ constructor(params: {
181
+ refresh?: boolean;
182
+ query?: string;
183
+ limit: int;
184
+ });
185
+ /**
186
+ * Generate the TLObject from buffer.
187
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
188
+ */
189
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<GetForYou>;
190
+ /**
191
+ * Generate buffer from TLObject.
192
+ */
193
+ write(): Buffer;
194
+ }
195
+ export declare class GetInterestCategories extends TLObject {
196
+ __response__: TypeInterestCategories;
197
+ hash: long;
198
+ constructor(params: {
199
+ hash: long;
200
+ });
201
+ /**
202
+ * Generate the TLObject from buffer.
203
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
204
+ */
205
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<GetInterestCategories>;
206
+ /**
207
+ * Generate buffer from TLObject.
208
+ */
209
+ write(): Buffer;
210
+ }
211
+ export declare class SetInterestCategories extends TLObject {
212
+ __response__: Bool;
213
+ categoryIds: Vector<int>;
214
+ constructor(params: {
215
+ categoryIds: Vector<int>;
216
+ });
217
+ /**
218
+ * Generate the TLObject from buffer.
219
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
220
+ */
221
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<SetInterestCategories>;
222
+ /**
223
+ * Generate buffer from TLObject.
224
+ */
225
+ write(): Buffer;
226
+ }
227
+ export declare class LikePost extends TLObject {
228
+ __response__: Bool;
229
+ peer: raw.TypeInputPeer;
230
+ msgId: int;
231
+ constructor(params: {
232
+ peer: raw.TypeInputPeer;
233
+ msgId: int;
234
+ });
235
+ /**
236
+ * Generate the TLObject from buffer.
237
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
238
+ */
239
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<LikePost>;
240
+ /**
241
+ * Generate buffer from TLObject.
242
+ */
243
+ write(): Buffer;
244
+ }
245
+ export declare class DislikePost extends TLObject {
246
+ __response__: Bool;
247
+ peer: raw.TypeInputPeer;
248
+ msgId: int;
249
+ constructor(params: {
250
+ peer: raw.TypeInputPeer;
251
+ msgId: int;
252
+ });
253
+ /**
254
+ * Generate the TLObject from buffer.
255
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
256
+ */
257
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<DislikePost>;
258
+ /**
259
+ * Generate buffer from TLObject.
260
+ */
261
+ write(): Buffer;
262
+ }
263
+ export declare class GetSponsoredMessages extends TLObject {
264
+ __response__: messages.TypeSponsoredMessages;
265
+ forYou?: boolean;
266
+ constructor(params: {
267
+ forYou?: boolean;
268
+ });
269
+ /**
270
+ * Generate the TLObject from buffer.
271
+ * @param {Object} _data - BytesIO class from TLObject will be convert to TLObject class.
272
+ */
273
+ static read(_data: BytesIO, ..._args: Array<any>): Promise<GetSponsoredMessages>;
274
+ /**
275
+ * Generate buffer from TLObject.
276
+ */
277
+ write(): Buffer;
278
+ }