itd-api 0.0.1 → 0.0.3

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.
package/dist/node.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkQILCVTJI_cjs = require('./chunk-QILCVTJI.cjs');
3
+ var chunk3ODOEKQO_cjs = require('./chunk-3ODOEKQO.cjs');
4
4
 
5
5
  // src/node.ts
6
6
  var nodeFileReader = async (path) => {
@@ -38,7 +38,7 @@ var FileTokenStorage = class {
38
38
  }
39
39
  }
40
40
  };
41
- var ItdClient2 = class extends chunkQILCVTJI_cjs.ItdClient {
41
+ var ItdClient2 = class extends chunk3ODOEKQO_cjs.ItdClient {
42
42
  constructor(options = {}) {
43
43
  super(options);
44
44
  this.setFileReader(nodeFileReader);
@@ -50,239 +50,271 @@ function createClient(options = {}) {
50
50
 
51
51
  Object.defineProperty(exports, "ALLOWED_MIME_TYPES", {
52
52
  enumerable: true,
53
- get: function () { return chunkQILCVTJI_cjs.ALLOWED_MIME_TYPES; }
53
+ get: function () { return chunk3ODOEKQO_cjs.ALLOWED_MIME_TYPES; }
54
54
  });
55
55
  Object.defineProperty(exports, "AUDIO_MIME_TYPES", {
56
56
  enumerable: true,
57
- get: function () { return chunkQILCVTJI_cjs.AUDIO_MIME_TYPES; }
57
+ get: function () { return chunk3ODOEKQO_cjs.AUDIO_MIME_TYPES; }
58
+ });
59
+ Object.defineProperty(exports, "AUTH_FLAG_COOKIE", {
60
+ enumerable: true,
61
+ get: function () { return chunk3ODOEKQO_cjs.AUTH_FLAG_COOKIE; }
62
+ });
63
+ Object.defineProperty(exports, "AUTH_PATHS", {
64
+ enumerable: true,
65
+ get: function () { return chunk3ODOEKQO_cjs.AUTH_PATHS; }
58
66
  });
59
67
  Object.defineProperty(exports, "AttachmentType", {
60
68
  enumerable: true,
61
- get: function () { return chunkQILCVTJI_cjs.AttachmentType; }
69
+ get: function () { return chunk3ODOEKQO_cjs.AttachmentType; }
62
70
  });
63
71
  Object.defineProperty(exports, "CommentSort", {
64
72
  enumerable: true,
65
- get: function () { return chunkQILCVTJI_cjs.CommentSort; }
73
+ get: function () { return chunk3ODOEKQO_cjs.CommentSort; }
66
74
  });
67
75
  Object.defineProperty(exports, "DEFAULT_BASE_URL", {
68
76
  enumerable: true,
69
- get: function () { return chunkQILCVTJI_cjs.DEFAULT_BASE_URL; }
77
+ get: function () { return chunk3ODOEKQO_cjs.DEFAULT_BASE_URL; }
70
78
  });
71
79
  Object.defineProperty(exports, "DEFAULT_TIMEOUT", {
72
80
  enumerable: true,
73
- get: function () { return chunkQILCVTJI_cjs.DEFAULT_TIMEOUT; }
81
+ get: function () { return chunk3ODOEKQO_cjs.DEFAULT_TIMEOUT; }
82
+ });
83
+ Object.defineProperty(exports, "DEFAULT_USER_AGENT", {
84
+ enumerable: true,
85
+ get: function () { return chunk3ODOEKQO_cjs.DEFAULT_USER_AGENT; }
86
+ });
87
+ Object.defineProperty(exports, "DEVICE_ID_HEADER", {
88
+ enumerable: true,
89
+ get: function () { return chunk3ODOEKQO_cjs.DEVICE_ID_HEADER; }
74
90
  });
75
91
  Object.defineProperty(exports, "FeedTab", {
76
92
  enumerable: true,
77
- get: function () { return chunkQILCVTJI_cjs.FeedTab; }
93
+ get: function () { return chunk3ODOEKQO_cjs.FeedTab; }
78
94
  });
79
95
  Object.defineProperty(exports, "IMAGE_MIME_TYPES", {
80
96
  enumerable: true,
81
- get: function () { return chunkQILCVTJI_cjs.IMAGE_MIME_TYPES; }
97
+ get: function () { return chunk3ODOEKQO_cjs.IMAGE_MIME_TYPES; }
82
98
  });
83
99
  Object.defineProperty(exports, "ItdAbortError", {
84
100
  enumerable: true,
85
- get: function () { return chunkQILCVTJI_cjs.ItdAbortError; }
101
+ get: function () { return chunk3ODOEKQO_cjs.ItdAbortError; }
86
102
  });
87
103
  Object.defineProperty(exports, "ItdApiError", {
88
104
  enumerable: true,
89
- get: function () { return chunkQILCVTJI_cjs.ItdApiError; }
105
+ get: function () { return chunk3ODOEKQO_cjs.ItdApiError; }
90
106
  });
91
107
  Object.defineProperty(exports, "ItdAuthError", {
92
108
  enumerable: true,
93
- get: function () { return chunkQILCVTJI_cjs.ItdAuthError; }
109
+ get: function () { return chunk3ODOEKQO_cjs.ItdAuthError; }
94
110
  });
95
111
  Object.defineProperty(exports, "ItdConfigError", {
96
112
  enumerable: true,
97
- get: function () { return chunkQILCVTJI_cjs.ItdConfigError; }
113
+ get: function () { return chunk3ODOEKQO_cjs.ItdConfigError; }
98
114
  });
99
115
  Object.defineProperty(exports, "ItdConflictError", {
100
116
  enumerable: true,
101
- get: function () { return chunkQILCVTJI_cjs.ItdConflictError; }
117
+ get: function () { return chunk3ODOEKQO_cjs.ItdConflictError; }
102
118
  });
103
119
  Object.defineProperty(exports, "ItdError", {
104
120
  enumerable: true,
105
- get: function () { return chunkQILCVTJI_cjs.ItdError; }
121
+ get: function () { return chunk3ODOEKQO_cjs.ItdError; }
106
122
  });
107
123
  Object.defineProperty(exports, "ItdErrorCode", {
108
124
  enumerable: true,
109
- get: function () { return chunkQILCVTJI_cjs.ItdErrorCode; }
125
+ get: function () { return chunk3ODOEKQO_cjs.ItdErrorCode; }
110
126
  });
111
127
  Object.defineProperty(exports, "ItdForbiddenError", {
112
128
  enumerable: true,
113
- get: function () { return chunkQILCVTJI_cjs.ItdForbiddenError; }
129
+ get: function () { return chunk3ODOEKQO_cjs.ItdForbiddenError; }
114
130
  });
115
131
  Object.defineProperty(exports, "ItdNetworkError", {
116
132
  enumerable: true,
117
- get: function () { return chunkQILCVTJI_cjs.ItdNetworkError; }
133
+ get: function () { return chunk3ODOEKQO_cjs.ItdNetworkError; }
118
134
  });
119
135
  Object.defineProperty(exports, "ItdNotFoundError", {
120
136
  enumerable: true,
121
- get: function () { return chunkQILCVTJI_cjs.ItdNotFoundError; }
137
+ get: function () { return chunk3ODOEKQO_cjs.ItdNotFoundError; }
122
138
  });
123
139
  Object.defineProperty(exports, "ItdPhoneVerificationError", {
124
140
  enumerable: true,
125
- get: function () { return chunkQILCVTJI_cjs.ItdPhoneVerificationError; }
141
+ get: function () { return chunk3ODOEKQO_cjs.ItdPhoneVerificationError; }
126
142
  });
127
143
  Object.defineProperty(exports, "ItdRateLimitError", {
128
144
  enumerable: true,
129
- get: function () { return chunkQILCVTJI_cjs.ItdRateLimitError; }
145
+ get: function () { return chunk3ODOEKQO_cjs.ItdRateLimitError; }
130
146
  });
131
147
  Object.defineProperty(exports, "ItdRealtime", {
132
148
  enumerable: true,
133
- get: function () { return chunkQILCVTJI_cjs.ItdRealtime; }
149
+ get: function () { return chunk3ODOEKQO_cjs.ItdRealtime; }
134
150
  });
135
151
  Object.defineProperty(exports, "ItdServerError", {
136
152
  enumerable: true,
137
- get: function () { return chunkQILCVTJI_cjs.ItdServerError; }
153
+ get: function () { return chunk3ODOEKQO_cjs.ItdServerError; }
138
154
  });
139
155
  Object.defineProperty(exports, "ItdTimeoutError", {
140
156
  enumerable: true,
141
- get: function () { return chunkQILCVTJI_cjs.ItdTimeoutError; }
157
+ get: function () { return chunk3ODOEKQO_cjs.ItdTimeoutError; }
142
158
  });
143
159
  Object.defineProperty(exports, "ItdValidationError", {
144
160
  enumerable: true,
145
- get: function () { return chunkQILCVTJI_cjs.ItdValidationError; }
161
+ get: function () { return chunk3ODOEKQO_cjs.ItdValidationError; }
162
+ });
163
+ Object.defineProperty(exports, "LIBRARY_VERSION", {
164
+ enumerable: true,
165
+ get: function () { return chunk3ODOEKQO_cjs.LIBRARY_VERSION; }
146
166
  });
147
167
  Object.defineProperty(exports, "LikesVisibility", {
148
168
  enumerable: true,
149
- get: function () { return chunkQILCVTJI_cjs.LikesVisibility; }
169
+ get: function () { return chunk3ODOEKQO_cjs.LikesVisibility; }
150
170
  });
151
171
  Object.defineProperty(exports, "LocalStorageTokenStorage", {
152
172
  enumerable: true,
153
- get: function () { return chunkQILCVTJI_cjs.LocalStorageTokenStorage; }
173
+ get: function () { return chunk3ODOEKQO_cjs.LocalStorageTokenStorage; }
154
174
  });
155
175
  Object.defineProperty(exports, "MAX_RECONNECT_ATTEMPTS", {
156
176
  enumerable: true,
157
- get: function () { return chunkQILCVTJI_cjs.MAX_RECONNECT_ATTEMPTS; }
177
+ get: function () { return chunk3ODOEKQO_cjs.MAX_RECONNECT_ATTEMPTS; }
158
178
  });
159
179
  Object.defineProperty(exports, "MemoryTokenStorage", {
160
180
  enumerable: true,
161
- get: function () { return chunkQILCVTJI_cjs.MemoryTokenStorage; }
181
+ get: function () { return chunk3ODOEKQO_cjs.MemoryTokenStorage; }
162
182
  });
163
183
  Object.defineProperty(exports, "NOTIFICATION_TYPE_ALIASES", {
164
184
  enumerable: true,
165
- get: function () { return chunkQILCVTJI_cjs.NOTIFICATION_TYPE_ALIASES; }
185
+ get: function () { return chunk3ODOEKQO_cjs.NOTIFICATION_TYPE_ALIASES; }
166
186
  });
167
187
  Object.defineProperty(exports, "NotificationType", {
168
188
  enumerable: true,
169
- get: function () { return chunkQILCVTJI_cjs.NotificationType; }
189
+ get: function () { return chunk3ODOEKQO_cjs.NotificationType; }
170
190
  });
171
191
  Object.defineProperty(exports, "Paginator", {
172
192
  enumerable: true,
173
- get: function () { return chunkQILCVTJI_cjs.Paginator; }
193
+ get: function () { return chunk3ODOEKQO_cjs.Paginator; }
174
194
  });
175
195
  Object.defineProperty(exports, "RECONNECT_BACKOFF", {
176
196
  enumerable: true,
177
- get: function () { return chunkQILCVTJI_cjs.RECONNECT_BACKOFF; }
197
+ get: function () { return chunk3ODOEKQO_cjs.RECONNECT_BACKOFF; }
178
198
  });
179
199
  Object.defineProperty(exports, "RECONNECT_JITTER", {
180
200
  enumerable: true,
181
- get: function () { return chunkQILCVTJI_cjs.RECONNECT_JITTER; }
201
+ get: function () { return chunk3ODOEKQO_cjs.RECONNECT_JITTER; }
202
+ });
203
+ Object.defineProperty(exports, "REFRESH_COOKIE", {
204
+ enumerable: true,
205
+ get: function () { return chunk3ODOEKQO_cjs.REFRESH_COOKIE; }
206
+ });
207
+ Object.defineProperty(exports, "REFRESH_COOKIE_PATH", {
208
+ enumerable: true,
209
+ get: function () { return chunk3ODOEKQO_cjs.REFRESH_COOKIE_PATH; }
182
210
  });
183
211
  Object.defineProperty(exports, "RealtimeStatus", {
184
212
  enumerable: true,
185
- get: function () { return chunkQILCVTJI_cjs.RealtimeStatus; }
213
+ get: function () { return chunk3ODOEKQO_cjs.RealtimeStatus; }
186
214
  });
187
215
  Object.defineProperty(exports, "ReportReason", {
188
216
  enumerable: true,
189
- get: function () { return chunkQILCVTJI_cjs.ReportReason; }
217
+ get: function () { return chunk3ODOEKQO_cjs.ReportReason; }
190
218
  });
191
219
  Object.defineProperty(exports, "ReportTargetType", {
192
220
  enumerable: true,
193
- get: function () { return chunkQILCVTJI_cjs.ReportTargetType; }
221
+ get: function () { return chunk3ODOEKQO_cjs.ReportTargetType; }
194
222
  });
195
223
  Object.defineProperty(exports, "STREAM_PATH", {
196
224
  enumerable: true,
197
- get: function () { return chunkQILCVTJI_cjs.STREAM_PATH; }
225
+ get: function () { return chunk3ODOEKQO_cjs.STREAM_PATH; }
226
+ });
227
+ Object.defineProperty(exports, "TURNSTILE_SITE_KEY", {
228
+ enumerable: true,
229
+ get: function () { return chunk3ODOEKQO_cjs.TURNSTILE_SITE_KEY; }
198
230
  });
199
231
  Object.defineProperty(exports, "VIDEO_MIME_TYPES", {
200
232
  enumerable: true,
201
- get: function () { return chunkQILCVTJI_cjs.VIDEO_MIME_TYPES; }
233
+ get: function () { return chunk3ODOEKQO_cjs.VIDEO_MIME_TYPES; }
202
234
  });
203
235
  Object.defineProperty(exports, "WallAccess", {
204
236
  enumerable: true,
205
- get: function () { return chunkQILCVTJI_cjs.WallAccess; }
237
+ get: function () { return chunk3ODOEKQO_cjs.WallAccess; }
206
238
  });
207
239
  Object.defineProperty(exports, "canonicalNotificationType", {
208
240
  enumerable: true,
209
- get: function () { return chunkQILCVTJI_cjs.canonicalNotificationType; }
241
+ get: function () { return chunk3ODOEKQO_cjs.canonicalNotificationType; }
210
242
  });
211
243
  Object.defineProperty(exports, "comment", {
212
244
  enumerable: true,
213
- get: function () { return chunkQILCVTJI_cjs.comment; }
245
+ get: function () { return chunk3ODOEKQO_cjs.comment; }
214
246
  });
215
247
  Object.defineProperty(exports, "createTokenStorage", {
216
248
  enumerable: true,
217
- get: function () { return chunkQILCVTJI_cjs.createTokenStorage; }
249
+ get: function () { return chunk3ODOEKQO_cjs.createTokenStorage; }
218
250
  });
219
251
  Object.defineProperty(exports, "formatNotificationText", {
220
252
  enumerable: true,
221
- get: function () { return chunkQILCVTJI_cjs.formatNotificationText; }
253
+ get: function () { return chunk3ODOEKQO_cjs.formatNotificationText; }
222
254
  });
223
255
  Object.defineProperty(exports, "isBuilder", {
224
256
  enumerable: true,
225
- get: function () { return chunkQILCVTJI_cjs.isBuilder; }
257
+ get: function () { return chunk3ODOEKQO_cjs.isBuilder; }
226
258
  });
227
259
  Object.defineProperty(exports, "isItdApiError", {
228
260
  enumerable: true,
229
- get: function () { return chunkQILCVTJI_cjs.isItdApiError; }
261
+ get: function () { return chunk3ODOEKQO_cjs.isItdApiError; }
230
262
  });
231
263
  Object.defineProperty(exports, "isItdAuthError", {
232
264
  enumerable: true,
233
- get: function () { return chunkQILCVTJI_cjs.isItdAuthError; }
265
+ get: function () { return chunk3ODOEKQO_cjs.isItdAuthError; }
234
266
  });
235
267
  Object.defineProperty(exports, "isItdError", {
236
268
  enumerable: true,
237
- get: function () { return chunkQILCVTJI_cjs.isItdError; }
269
+ get: function () { return chunk3ODOEKQO_cjs.isItdError; }
238
270
  });
239
271
  Object.defineProperty(exports, "isItdRateLimitError", {
240
272
  enumerable: true,
241
- get: function () { return chunkQILCVTJI_cjs.isItdRateLimitError; }
273
+ get: function () { return chunk3ODOEKQO_cjs.isItdRateLimitError; }
242
274
  });
243
275
  Object.defineProperty(exports, "isItdValidationError", {
244
276
  enumerable: true,
245
- get: function () { return chunkQILCVTJI_cjs.isItdValidationError; }
277
+ get: function () { return chunk3ODOEKQO_cjs.isItdValidationError; }
246
278
  });
247
279
  Object.defineProperty(exports, "isKnownNotificationType", {
248
280
  enumerable: true,
249
- get: function () { return chunkQILCVTJI_cjs.isKnownNotificationType; }
281
+ get: function () { return chunk3ODOEKQO_cjs.isKnownNotificationType; }
250
282
  });
251
283
  Object.defineProperty(exports, "isMyProfile", {
252
284
  enumerable: true,
253
- get: function () { return chunkQILCVTJI_cjs.isMyProfile; }
285
+ get: function () { return chunk3ODOEKQO_cjs.isMyProfile; }
254
286
  });
255
287
  Object.defineProperty(exports, "normalizeNotification", {
256
288
  enumerable: true,
257
- get: function () { return chunkQILCVTJI_cjs.normalizeNotification; }
289
+ get: function () { return chunk3ODOEKQO_cjs.normalizeNotification; }
258
290
  });
259
291
  Object.defineProperty(exports, "poll", {
260
292
  enumerable: true,
261
- get: function () { return chunkQILCVTJI_cjs.poll; }
293
+ get: function () { return chunk3ODOEKQO_cjs.poll; }
262
294
  });
263
295
  Object.defineProperty(exports, "post", {
264
296
  enumerable: true,
265
- get: function () { return chunkQILCVTJI_cjs.post; }
297
+ get: function () { return chunk3ODOEKQO_cjs.post; }
266
298
  });
267
299
  Object.defineProperty(exports, "readNotificationEvent", {
268
300
  enumerable: true,
269
- get: function () { return chunkQILCVTJI_cjs.readNotificationEvent; }
301
+ get: function () { return chunk3ODOEKQO_cjs.readNotificationEvent; }
270
302
  });
271
303
  Object.defineProperty(exports, "readUnreadCountEvent", {
272
304
  enumerable: true,
273
- get: function () { return chunkQILCVTJI_cjs.readUnreadCountEvent; }
305
+ get: function () { return chunk3ODOEKQO_cjs.readUnreadCountEvent; }
274
306
  });
275
307
  Object.defineProperty(exports, "report", {
276
308
  enumerable: true,
277
- get: function () { return chunkQILCVTJI_cjs.report; }
309
+ get: function () { return chunk3ODOEKQO_cjs.report; }
278
310
  });
279
311
  Object.defineProperty(exports, "resolveNotificationUrl", {
280
312
  enumerable: true,
281
- get: function () { return chunkQILCVTJI_cjs.resolveNotificationUrl; }
313
+ get: function () { return chunk3ODOEKQO_cjs.resolveNotificationUrl; }
282
314
  });
283
315
  Object.defineProperty(exports, "toDate", {
284
316
  enumerable: true,
285
- get: function () { return chunkQILCVTJI_cjs.toDate; }
317
+ get: function () { return chunk3ODOEKQO_cjs.toDate; }
286
318
  });
287
319
  exports.FileTokenStorage = FileTokenStorage;
288
320
  exports.ItdClient = ItdClient2;
package/dist/node.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as TokenStorage, I as ItdSession, a as ItdClient$1, b as ItdClientOptions, F as FileReader } from './index-RzyK1gKg.cjs';
2
- export { A as ALLOWED_MIME_TYPES, c as AUDIO_MIME_TYPES, d as Actor, e as Announcement, f as AnnouncementButton, g as Attachment, h as AttachmentType, i as AuthInput, j as AuthResource, k as Author, B as BuilderInput, C as ChangelogEntry, l as Clan, m as ClientHooks, n as Comment, o as CommentBuilder, p as CommentInput, q as CommentReplyTo, r as CommentSort, s as CommentsParams, t as CommentsResource, u as CreateCommentInput, v as CreatePollInput, w as CreatePostInput, x as CreateReportInput, y as Credentials, D as DEFAULT_BASE_URL, z as DEFAULT_TIMEOUT, E as DwellEntry, G as ErrorContextHook, H as FeedParams, J as FeedTab, K as FileInput, L as FilesResource, M as FollowResult, N as Hashtag, O as HashtagPostsParams, P as HashtagsResource, Q as IMAGE_MIME_TYPES, R as InteractionEntry, S as IsoDate, U as ItdAbortError, V as ItdApiError, W as ItdApiErrorInit, X as ItdAuthError, Y as ItdBuilder, Z as ItdConfigError, _ as ItdConflictError, $ as ItdError, a0 as ItdErrorCode, a1 as ItdErrorKind, a2 as ItdFieldErrors, a3 as ItdForbiddenError, a4 as ItdNetworkError, a5 as ItdNotFoundError, a6 as ItdPhoneVerificationError, a7 as ItdRateLimitError, a8 as ItdRealtime, a9 as ItdServerError, aa as ItdTimeoutError, ab as ItdValidationError, ac as LikeResult, ad as LikesVisibility, ae as Listener, af as LocalStorageTokenStorage, ag as Logger, ah as Loose, ai as MAX_RECONNECT_ATTEMPTS, aj as MemoryTokenStorage, ak as MyProfile, al as NOTIFICATION_TYPE_ALIASES, am as Notification, an as NotificationEvent, ao as NotificationListParams, ap as NotificationSettings, aq as NotificationType, ar as NotificationsResource, as as OAuthProvider, at as Page, au as PageState, av as PaginationMode, aw as Paginator, ax as PaymentMethod, ay as Pin, az as PinPostResult, aA as PinsResult, aB as PlatformResource, aC as Poll, aD as PollBuilder, aE as PollInput, aF as PollOption, aG as PollTransportOptions, aH as Portal, aI as Post, aJ as PostBuilder, aK as PostInput, aL as PostStats, aM as PostsResource, aN as PrivacySettings, aO as Profile, aP as PublicProfile, aQ as RECONNECT_BACKOFF, aR as RECONNECT_JITTER, aS as RateLimitOptions, aT as RawRequestOptions, aU as RealtimeEvents, aV as RealtimeOptions, aW as RealtimeStatus, aX as RealtimeTransport, aY as RealtimeTransportKind, aZ as ReconnectOptions, a_ as RepliesParams, a$ as Report, b0 as ReportBuilder, b1 as ReportInput, b2 as ReportReason, b3 as ReportTargetType, b4 as ReportsResource, b5 as RequestContext, b6 as RequestOptions, b7 as ResponseContext, b8 as RetryContext, b9 as RetryOptions, ba as RuntimeMode, bb as STREAM_PATH, bc as SearchResource, bd as SearchResult, be as Session, bf as SignInResult, bg as Span, bh as SseTransportOptions, bi as Subscription, bj as SubscriptionResource, bk as SubscriptionState, bl as TelemetryResource, bm as TransportContext, bn as TransportEvent, bo as Unsubscribe, bp as UpdateNotificationSettingsInput, bq as UpdatePrivacyInput, br as UpdateProfileInput, bs as UploadOptions, bt as UploadedFile, bu as UserId, bv as UserListParams, bw as UserPostsParams, bx as UserRef, by as UserSummary, bz as UsersResource, bA as VIDEO_MIME_TYPES, bB as VerificationResource, bC as VerificationStatus, bD as WallAccess, bE as canonicalNotificationType, bF as comment, bG as createTokenStorage, bH as formatNotificationText, bI as isBuilder, bJ as isItdApiError, bK as isItdAuthError, bL as isItdError, bM as isItdRateLimitError, bN as isItdValidationError, bO as isKnownNotificationType, bP as isMyProfile, bQ as normalizeNotification, bR as poll, bS as post, bT as readNotificationEvent, bU as readUnreadCountEvent, bV as report, bW as resolveNotificationUrl, bX as toDate } from './index-RzyK1gKg.cjs';
1
+ import { T as TokenStorage, I as ItdSession, a as ItdClient$1, b as ItdClientOptions, F as FileReader } from './index-BCuk8jNA.cjs';
2
+ export { A as ALLOWED_MIME_TYPES, c as AUDIO_MIME_TYPES, d as AUTH_FLAG_COOKIE, e as AUTH_PATHS, f as Actor, g as Announcement, h as AnnouncementButton, i as Attachment, j as AttachmentType, k as AuthInput, l as AuthResource, m as Author, B as BuilderInput, C as CaptchaCredentials, n as ChangelogEntry, o as Clan, p as ClientHooks, q as Comment, r as CommentBuilder, s as CommentInput, t as CommentReplyTo, u as CommentSort, v as CommentsParams, w as CommentsResource, x as CreateCommentInput, y as CreatePollInput, z as CreatePostInput, D as CreateReportInput, E as Credentials, G as CredentialsAuth, H as DEFAULT_BASE_URL, J as DEFAULT_TIMEOUT, K as DEFAULT_USER_AGENT, L as DEVICE_ID_HEADER, M as DwellEntry, N as ErrorContextHook, O as FeedParams, P as FeedTab, Q as FileInput, R as FilesResource, S as FollowResult, U as ForgotPasswordInput, V as Hashtag, W as HashtagPostsParams, X as HashtagsResource, Y as IMAGE_MIME_TYPES, Z as InteractionEntry, _ as IsoDate, $ as ItdAbortError, a0 as ItdApiError, a1 as ItdApiErrorInit, a2 as ItdAuthError, a3 as ItdBuilder, a4 as ItdConfigError, a5 as ItdConflictError, a6 as ItdError, a7 as ItdErrorCode, a8 as ItdErrorKind, a9 as ItdFieldErrors, aa as ItdForbiddenError, ab as ItdNetworkError, ac as ItdNotFoundError, ad as ItdPhoneVerificationError, ae as ItdRateLimitError, af as ItdRealtime, ag as ItdServerError, ah as ItdTimeoutError, ai as ItdValidationError, aj as LIBRARY_VERSION, ak as LikeResult, al as LikesVisibility, am as Listener, an as LocalStorageTokenStorage, ao as Logger, ap as Loose, aq as MAX_RECONNECT_ATTEMPTS, ar as MemoryTokenStorage, as as MyProfile, at as NOTIFICATION_TYPE_ALIASES, au as Notification, av as NotificationEvent, aw as NotificationListParams, ax as NotificationSettings, ay as NotificationType, az as NotificationsResource, aA as OAuthProvider, aB as Page, aC as PageState, aD as PaginationMode, aE as Paginator, aF as PaymentMethod, aG as Pin, aH as PinPostResult, aI as PinsResult, aJ as PlatformResource, aK as Poll, aL as PollBuilder, aM as PollInput, aN as PollOption, aO as PollTransportOptions, aP as Portal, aQ as Post, aR as PostBuilder, aS as PostInput, aT as PostStats, aU as PostsResource, aV as PrivacySettings, aW as Profile, aX as PublicProfile, aY as RECONNECT_BACKOFF, aZ as RECONNECT_JITTER, a_ as REFRESH_COOKIE, a$ as REFRESH_COOKIE_PATH, b0 as RateLimitOptions, b1 as RawRequestOptions, b2 as RealtimeEvents, b3 as RealtimeOptions, b4 as RealtimeStatus, b5 as RealtimeTransport, b6 as RealtimeTransportKind, b7 as ReconnectOptions, b8 as RepliesParams, b9 as Report, ba as ReportBuilder, bb as ReportInput, bc as ReportReason, bd as ReportTargetType, be as ReportsResource, bf as RequestContext, bg as RequestOptions, bh as ResetPasswordInput, bi as ResponseContext, bj as RetryContext, bk as RetryOptions, bl as RuntimeMode, bm as STREAM_PATH, bn as SearchResource, bo as SearchResult, bp as Session, bq as SignInResult, br as Span, bs as SseTransportOptions, bt as Subscription, bu as SubscriptionResource, bv as SubscriptionState, bw as TURNSTILE_SITE_KEY, bx as TelemetryResource, by as TransportContext, bz as TransportEvent, bA as Unsubscribe, bB as UpdateNotificationSettingsInput, bC as UpdatePrivacyInput, bD as UpdateProfileInput, bE as UploadOptions, bF as UploadedFile, bG as UserId, bH as UserListParams, bI as UserPostsParams, bJ as UserRef, bK as UserSummary, bL as UsersResource, bM as VIDEO_MIME_TYPES, bN as VerificationResource, bO as VerificationStatus, bP as WallAccess, bQ as canonicalNotificationType, bR as comment, bS as createTokenStorage, bT as formatNotificationText, bU as isBuilder, bV as isItdApiError, bW as isItdAuthError, bX as isItdError, bY as isItdRateLimitError, bZ as isItdValidationError, b_ as isKnownNotificationType, b$ as isMyProfile, c0 as normalizeNotification, c1 as poll, c2 as post, c3 as readNotificationEvent, c4 as readUnreadCountEvent, c5 as report, c6 as resolveNotificationUrl, c7 as toDate } from './index-BCuk8jNA.cjs';
3
3
 
4
4
  /**
5
5
  * `itd-api/node` — то же, что `itd-api`, плюс работа с файловой системой.
package/dist/node.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { T as TokenStorage, I as ItdSession, a as ItdClient$1, b as ItdClientOptions, F as FileReader } from './index-RzyK1gKg.js';
2
- export { A as ALLOWED_MIME_TYPES, c as AUDIO_MIME_TYPES, d as Actor, e as Announcement, f as AnnouncementButton, g as Attachment, h as AttachmentType, i as AuthInput, j as AuthResource, k as Author, B as BuilderInput, C as ChangelogEntry, l as Clan, m as ClientHooks, n as Comment, o as CommentBuilder, p as CommentInput, q as CommentReplyTo, r as CommentSort, s as CommentsParams, t as CommentsResource, u as CreateCommentInput, v as CreatePollInput, w as CreatePostInput, x as CreateReportInput, y as Credentials, D as DEFAULT_BASE_URL, z as DEFAULT_TIMEOUT, E as DwellEntry, G as ErrorContextHook, H as FeedParams, J as FeedTab, K as FileInput, L as FilesResource, M as FollowResult, N as Hashtag, O as HashtagPostsParams, P as HashtagsResource, Q as IMAGE_MIME_TYPES, R as InteractionEntry, S as IsoDate, U as ItdAbortError, V as ItdApiError, W as ItdApiErrorInit, X as ItdAuthError, Y as ItdBuilder, Z as ItdConfigError, _ as ItdConflictError, $ as ItdError, a0 as ItdErrorCode, a1 as ItdErrorKind, a2 as ItdFieldErrors, a3 as ItdForbiddenError, a4 as ItdNetworkError, a5 as ItdNotFoundError, a6 as ItdPhoneVerificationError, a7 as ItdRateLimitError, a8 as ItdRealtime, a9 as ItdServerError, aa as ItdTimeoutError, ab as ItdValidationError, ac as LikeResult, ad as LikesVisibility, ae as Listener, af as LocalStorageTokenStorage, ag as Logger, ah as Loose, ai as MAX_RECONNECT_ATTEMPTS, aj as MemoryTokenStorage, ak as MyProfile, al as NOTIFICATION_TYPE_ALIASES, am as Notification, an as NotificationEvent, ao as NotificationListParams, ap as NotificationSettings, aq as NotificationType, ar as NotificationsResource, as as OAuthProvider, at as Page, au as PageState, av as PaginationMode, aw as Paginator, ax as PaymentMethod, ay as Pin, az as PinPostResult, aA as PinsResult, aB as PlatformResource, aC as Poll, aD as PollBuilder, aE as PollInput, aF as PollOption, aG as PollTransportOptions, aH as Portal, aI as Post, aJ as PostBuilder, aK as PostInput, aL as PostStats, aM as PostsResource, aN as PrivacySettings, aO as Profile, aP as PublicProfile, aQ as RECONNECT_BACKOFF, aR as RECONNECT_JITTER, aS as RateLimitOptions, aT as RawRequestOptions, aU as RealtimeEvents, aV as RealtimeOptions, aW as RealtimeStatus, aX as RealtimeTransport, aY as RealtimeTransportKind, aZ as ReconnectOptions, a_ as RepliesParams, a$ as Report, b0 as ReportBuilder, b1 as ReportInput, b2 as ReportReason, b3 as ReportTargetType, b4 as ReportsResource, b5 as RequestContext, b6 as RequestOptions, b7 as ResponseContext, b8 as RetryContext, b9 as RetryOptions, ba as RuntimeMode, bb as STREAM_PATH, bc as SearchResource, bd as SearchResult, be as Session, bf as SignInResult, bg as Span, bh as SseTransportOptions, bi as Subscription, bj as SubscriptionResource, bk as SubscriptionState, bl as TelemetryResource, bm as TransportContext, bn as TransportEvent, bo as Unsubscribe, bp as UpdateNotificationSettingsInput, bq as UpdatePrivacyInput, br as UpdateProfileInput, bs as UploadOptions, bt as UploadedFile, bu as UserId, bv as UserListParams, bw as UserPostsParams, bx as UserRef, by as UserSummary, bz as UsersResource, bA as VIDEO_MIME_TYPES, bB as VerificationResource, bC as VerificationStatus, bD as WallAccess, bE as canonicalNotificationType, bF as comment, bG as createTokenStorage, bH as formatNotificationText, bI as isBuilder, bJ as isItdApiError, bK as isItdAuthError, bL as isItdError, bM as isItdRateLimitError, bN as isItdValidationError, bO as isKnownNotificationType, bP as isMyProfile, bQ as normalizeNotification, bR as poll, bS as post, bT as readNotificationEvent, bU as readUnreadCountEvent, bV as report, bW as resolveNotificationUrl, bX as toDate } from './index-RzyK1gKg.js';
1
+ import { T as TokenStorage, I as ItdSession, a as ItdClient$1, b as ItdClientOptions, F as FileReader } from './index-BCuk8jNA.js';
2
+ export { A as ALLOWED_MIME_TYPES, c as AUDIO_MIME_TYPES, d as AUTH_FLAG_COOKIE, e as AUTH_PATHS, f as Actor, g as Announcement, h as AnnouncementButton, i as Attachment, j as AttachmentType, k as AuthInput, l as AuthResource, m as Author, B as BuilderInput, C as CaptchaCredentials, n as ChangelogEntry, o as Clan, p as ClientHooks, q as Comment, r as CommentBuilder, s as CommentInput, t as CommentReplyTo, u as CommentSort, v as CommentsParams, w as CommentsResource, x as CreateCommentInput, y as CreatePollInput, z as CreatePostInput, D as CreateReportInput, E as Credentials, G as CredentialsAuth, H as DEFAULT_BASE_URL, J as DEFAULT_TIMEOUT, K as DEFAULT_USER_AGENT, L as DEVICE_ID_HEADER, M as DwellEntry, N as ErrorContextHook, O as FeedParams, P as FeedTab, Q as FileInput, R as FilesResource, S as FollowResult, U as ForgotPasswordInput, V as Hashtag, W as HashtagPostsParams, X as HashtagsResource, Y as IMAGE_MIME_TYPES, Z as InteractionEntry, _ as IsoDate, $ as ItdAbortError, a0 as ItdApiError, a1 as ItdApiErrorInit, a2 as ItdAuthError, a3 as ItdBuilder, a4 as ItdConfigError, a5 as ItdConflictError, a6 as ItdError, a7 as ItdErrorCode, a8 as ItdErrorKind, a9 as ItdFieldErrors, aa as ItdForbiddenError, ab as ItdNetworkError, ac as ItdNotFoundError, ad as ItdPhoneVerificationError, ae as ItdRateLimitError, af as ItdRealtime, ag as ItdServerError, ah as ItdTimeoutError, ai as ItdValidationError, aj as LIBRARY_VERSION, ak as LikeResult, al as LikesVisibility, am as Listener, an as LocalStorageTokenStorage, ao as Logger, ap as Loose, aq as MAX_RECONNECT_ATTEMPTS, ar as MemoryTokenStorage, as as MyProfile, at as NOTIFICATION_TYPE_ALIASES, au as Notification, av as NotificationEvent, aw as NotificationListParams, ax as NotificationSettings, ay as NotificationType, az as NotificationsResource, aA as OAuthProvider, aB as Page, aC as PageState, aD as PaginationMode, aE as Paginator, aF as PaymentMethod, aG as Pin, aH as PinPostResult, aI as PinsResult, aJ as PlatformResource, aK as Poll, aL as PollBuilder, aM as PollInput, aN as PollOption, aO as PollTransportOptions, aP as Portal, aQ as Post, aR as PostBuilder, aS as PostInput, aT as PostStats, aU as PostsResource, aV as PrivacySettings, aW as Profile, aX as PublicProfile, aY as RECONNECT_BACKOFF, aZ as RECONNECT_JITTER, a_ as REFRESH_COOKIE, a$ as REFRESH_COOKIE_PATH, b0 as RateLimitOptions, b1 as RawRequestOptions, b2 as RealtimeEvents, b3 as RealtimeOptions, b4 as RealtimeStatus, b5 as RealtimeTransport, b6 as RealtimeTransportKind, b7 as ReconnectOptions, b8 as RepliesParams, b9 as Report, ba as ReportBuilder, bb as ReportInput, bc as ReportReason, bd as ReportTargetType, be as ReportsResource, bf as RequestContext, bg as RequestOptions, bh as ResetPasswordInput, bi as ResponseContext, bj as RetryContext, bk as RetryOptions, bl as RuntimeMode, bm as STREAM_PATH, bn as SearchResource, bo as SearchResult, bp as Session, bq as SignInResult, br as Span, bs as SseTransportOptions, bt as Subscription, bu as SubscriptionResource, bv as SubscriptionState, bw as TURNSTILE_SITE_KEY, bx as TelemetryResource, by as TransportContext, bz as TransportEvent, bA as Unsubscribe, bB as UpdateNotificationSettingsInput, bC as UpdatePrivacyInput, bD as UpdateProfileInput, bE as UploadOptions, bF as UploadedFile, bG as UserId, bH as UserListParams, bI as UserPostsParams, bJ as UserRef, bK as UserSummary, bL as UsersResource, bM as VIDEO_MIME_TYPES, bN as VerificationResource, bO as VerificationStatus, bP as WallAccess, bQ as canonicalNotificationType, bR as comment, bS as createTokenStorage, bT as formatNotificationText, bU as isBuilder, bV as isItdApiError, bW as isItdAuthError, bX as isItdError, bY as isItdRateLimitError, bZ as isItdValidationError, b_ as isKnownNotificationType, b$ as isMyProfile, c0 as normalizeNotification, c1 as poll, c2 as post, c3 as readNotificationEvent, c4 as readUnreadCountEvent, c5 as report, c6 as resolveNotificationUrl, c7 as toDate } from './index-BCuk8jNA.js';
3
3
 
4
4
  /**
5
5
  * `itd-api/node` — то же, что `itd-api`, плюс работа с файловой системой.
package/dist/node.js CHANGED
@@ -1,5 +1,5 @@
1
- import { ItdClient } from './chunk-76C65H5J.js';
2
- export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AttachmentType, CommentSort, DEFAULT_BASE_URL, DEFAULT_TIMEOUT, FeedTab, IMAGE_MIME_TYPES, ItdAbortError, ItdApiError, ItdAuthError, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdRealtime, ItdServerError, ItdTimeoutError, ItdValidationError, LikesVisibility, LocalStorageTokenStorage, MAX_RECONNECT_ATTEMPTS, MemoryTokenStorage, NOTIFICATION_TYPE_ALIASES, NotificationType, Paginator, RECONNECT_BACKOFF, RECONNECT_JITTER, RealtimeStatus, ReportReason, ReportTargetType, STREAM_PATH, VIDEO_MIME_TYPES, WallAccess, canonicalNotificationType, comment, createTokenStorage, formatNotificationText, isBuilder, isItdApiError, isItdAuthError, isItdError, isItdRateLimitError, isItdValidationError, isKnownNotificationType, isMyProfile, normalizeNotification, poll, post, readNotificationEvent, readUnreadCountEvent, report, resolveNotificationUrl, toDate } from './chunk-76C65H5J.js';
1
+ import { ItdClient } from './chunk-JIT55WDH.js';
2
+ export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AUTH_FLAG_COOKIE, AUTH_PATHS, AttachmentType, CommentSort, DEFAULT_BASE_URL, DEFAULT_TIMEOUT, DEFAULT_USER_AGENT, DEVICE_ID_HEADER, FeedTab, IMAGE_MIME_TYPES, ItdAbortError, ItdApiError, ItdAuthError, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdRealtime, ItdServerError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LikesVisibility, LocalStorageTokenStorage, MAX_RECONNECT_ATTEMPTS, MemoryTokenStorage, NOTIFICATION_TYPE_ALIASES, NotificationType, Paginator, RECONNECT_BACKOFF, RECONNECT_JITTER, REFRESH_COOKIE, REFRESH_COOKIE_PATH, RealtimeStatus, ReportReason, ReportTargetType, STREAM_PATH, TURNSTILE_SITE_KEY, VIDEO_MIME_TYPES, WallAccess, canonicalNotificationType, comment, createTokenStorage, formatNotificationText, isBuilder, isItdApiError, isItdAuthError, isItdError, isItdRateLimitError, isItdValidationError, isKnownNotificationType, isMyProfile, normalizeNotification, poll, post, readNotificationEvent, readUnreadCountEvent, report, resolveNotificationUrl, toDate } from './chunk-JIT55WDH.js';
3
3
 
4
4
  // src/node.ts
5
5
  var nodeFileReader = async (path) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itd-api",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Клиент REST и realtime API социальной сети итд.com для JavaScript и TypeScript",
5
5
  "repository": {
6
6
  "type": "git",