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/README.md +57 -6
- package/dist/{chunk-QILCVTJI.cjs → chunk-3ODOEKQO.cjs} +354 -115
- package/dist/chunk-3ODOEKQO.cjs.map +1 -0
- package/dist/{chunk-76C65H5J.js → chunk-JIT55WDH.js} +347 -116
- package/dist/chunk-JIT55WDH.js.map +1 -0
- package/dist/{index-RzyK1gKg.d.cts → index-BCuk8jNA.d.cts} +220 -18
- package/dist/{index-RzyK1gKg.d.ts → index-BCuk8jNA.d.ts} +220 -18
- package/dist/index.cjs +94 -62
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node.cjs +93 -61
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-76C65H5J.js.map +0 -1
- package/dist/chunk-QILCVTJI.cjs.map +0 -1
package/dist/node.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
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
|
|
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
|
|
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
|
|
69
|
+
get: function () { return chunk3ODOEKQO_cjs.AttachmentType; }
|
|
62
70
|
});
|
|
63
71
|
Object.defineProperty(exports, "CommentSort", {
|
|
64
72
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
101
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdAbortError; }
|
|
86
102
|
});
|
|
87
103
|
Object.defineProperty(exports, "ItdApiError", {
|
|
88
104
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdApiError; }
|
|
90
106
|
});
|
|
91
107
|
Object.defineProperty(exports, "ItdAuthError", {
|
|
92
108
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdAuthError; }
|
|
94
110
|
});
|
|
95
111
|
Object.defineProperty(exports, "ItdConfigError", {
|
|
96
112
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdConfigError; }
|
|
98
114
|
});
|
|
99
115
|
Object.defineProperty(exports, "ItdConflictError", {
|
|
100
116
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdConflictError; }
|
|
102
118
|
});
|
|
103
119
|
Object.defineProperty(exports, "ItdError", {
|
|
104
120
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdError; }
|
|
106
122
|
});
|
|
107
123
|
Object.defineProperty(exports, "ItdErrorCode", {
|
|
108
124
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdErrorCode; }
|
|
110
126
|
});
|
|
111
127
|
Object.defineProperty(exports, "ItdForbiddenError", {
|
|
112
128
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdForbiddenError; }
|
|
114
130
|
});
|
|
115
131
|
Object.defineProperty(exports, "ItdNetworkError", {
|
|
116
132
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdNetworkError; }
|
|
118
134
|
});
|
|
119
135
|
Object.defineProperty(exports, "ItdNotFoundError", {
|
|
120
136
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdNotFoundError; }
|
|
122
138
|
});
|
|
123
139
|
Object.defineProperty(exports, "ItdPhoneVerificationError", {
|
|
124
140
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdPhoneVerificationError; }
|
|
126
142
|
});
|
|
127
143
|
Object.defineProperty(exports, "ItdRateLimitError", {
|
|
128
144
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdRateLimitError; }
|
|
130
146
|
});
|
|
131
147
|
Object.defineProperty(exports, "ItdRealtime", {
|
|
132
148
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdRealtime; }
|
|
134
150
|
});
|
|
135
151
|
Object.defineProperty(exports, "ItdServerError", {
|
|
136
152
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdServerError; }
|
|
138
154
|
});
|
|
139
155
|
Object.defineProperty(exports, "ItdTimeoutError", {
|
|
140
156
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk3ODOEKQO_cjs.ItdTimeoutError; }
|
|
142
158
|
});
|
|
143
159
|
Object.defineProperty(exports, "ItdValidationError", {
|
|
144
160
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
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
|
|
169
|
+
get: function () { return chunk3ODOEKQO_cjs.LikesVisibility; }
|
|
150
170
|
});
|
|
151
171
|
Object.defineProperty(exports, "LocalStorageTokenStorage", {
|
|
152
172
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
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
|
|
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
|
|
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
|
|
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
|
|
189
|
+
get: function () { return chunk3ODOEKQO_cjs.NotificationType; }
|
|
170
190
|
});
|
|
171
191
|
Object.defineProperty(exports, "Paginator", {
|
|
172
192
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunk3ODOEKQO_cjs.Paginator; }
|
|
174
194
|
});
|
|
175
195
|
Object.defineProperty(exports, "RECONNECT_BACKOFF", {
|
|
176
196
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
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
|
|
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
|
|
213
|
+
get: function () { return chunk3ODOEKQO_cjs.RealtimeStatus; }
|
|
186
214
|
});
|
|
187
215
|
Object.defineProperty(exports, "ReportReason", {
|
|
188
216
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunk3ODOEKQO_cjs.ReportReason; }
|
|
190
218
|
});
|
|
191
219
|
Object.defineProperty(exports, "ReportTargetType", {
|
|
192
220
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunk3ODOEKQO_cjs.ReportTargetType; }
|
|
194
222
|
});
|
|
195
223
|
Object.defineProperty(exports, "STREAM_PATH", {
|
|
196
224
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
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
|
|
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
|
|
237
|
+
get: function () { return chunk3ODOEKQO_cjs.WallAccess; }
|
|
206
238
|
});
|
|
207
239
|
Object.defineProperty(exports, "canonicalNotificationType", {
|
|
208
240
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunk3ODOEKQO_cjs.canonicalNotificationType; }
|
|
210
242
|
});
|
|
211
243
|
Object.defineProperty(exports, "comment", {
|
|
212
244
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunk3ODOEKQO_cjs.comment; }
|
|
214
246
|
});
|
|
215
247
|
Object.defineProperty(exports, "createTokenStorage", {
|
|
216
248
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunk3ODOEKQO_cjs.createTokenStorage; }
|
|
218
250
|
});
|
|
219
251
|
Object.defineProperty(exports, "formatNotificationText", {
|
|
220
252
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunk3ODOEKQO_cjs.formatNotificationText; }
|
|
222
254
|
});
|
|
223
255
|
Object.defineProperty(exports, "isBuilder", {
|
|
224
256
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunk3ODOEKQO_cjs.isBuilder; }
|
|
226
258
|
});
|
|
227
259
|
Object.defineProperty(exports, "isItdApiError", {
|
|
228
260
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunk3ODOEKQO_cjs.isItdApiError; }
|
|
230
262
|
});
|
|
231
263
|
Object.defineProperty(exports, "isItdAuthError", {
|
|
232
264
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunk3ODOEKQO_cjs.isItdAuthError; }
|
|
234
266
|
});
|
|
235
267
|
Object.defineProperty(exports, "isItdError", {
|
|
236
268
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunk3ODOEKQO_cjs.isItdError; }
|
|
238
270
|
});
|
|
239
271
|
Object.defineProperty(exports, "isItdRateLimitError", {
|
|
240
272
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunk3ODOEKQO_cjs.isItdRateLimitError; }
|
|
242
274
|
});
|
|
243
275
|
Object.defineProperty(exports, "isItdValidationError", {
|
|
244
276
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunk3ODOEKQO_cjs.isItdValidationError; }
|
|
246
278
|
});
|
|
247
279
|
Object.defineProperty(exports, "isKnownNotificationType", {
|
|
248
280
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunk3ODOEKQO_cjs.isKnownNotificationType; }
|
|
250
282
|
});
|
|
251
283
|
Object.defineProperty(exports, "isMyProfile", {
|
|
252
284
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunk3ODOEKQO_cjs.isMyProfile; }
|
|
254
286
|
});
|
|
255
287
|
Object.defineProperty(exports, "normalizeNotification", {
|
|
256
288
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunk3ODOEKQO_cjs.normalizeNotification; }
|
|
258
290
|
});
|
|
259
291
|
Object.defineProperty(exports, "poll", {
|
|
260
292
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunk3ODOEKQO_cjs.poll; }
|
|
262
294
|
});
|
|
263
295
|
Object.defineProperty(exports, "post", {
|
|
264
296
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunk3ODOEKQO_cjs.post; }
|
|
266
298
|
});
|
|
267
299
|
Object.defineProperty(exports, "readNotificationEvent", {
|
|
268
300
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunk3ODOEKQO_cjs.readNotificationEvent; }
|
|
270
302
|
});
|
|
271
303
|
Object.defineProperty(exports, "readUnreadCountEvent", {
|
|
272
304
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunk3ODOEKQO_cjs.readUnreadCountEvent; }
|
|
274
306
|
});
|
|
275
307
|
Object.defineProperty(exports, "report", {
|
|
276
308
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunk3ODOEKQO_cjs.report; }
|
|
278
310
|
});
|
|
279
311
|
Object.defineProperty(exports, "resolveNotificationUrl", {
|
|
280
312
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunk3ODOEKQO_cjs.resolveNotificationUrl; }
|
|
282
314
|
});
|
|
283
315
|
Object.defineProperty(exports, "toDate", {
|
|
284
316
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
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-
|
|
2
|
-
export { A as ALLOWED_MIME_TYPES, c as AUDIO_MIME_TYPES, d as
|
|
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-
|
|
2
|
-
export { A as ALLOWED_MIME_TYPES, c as AUDIO_MIME_TYPES, d as
|
|
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-
|
|
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-
|
|
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) => {
|