itd-api 0.0.4 → 0.0.6
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 +152 -9
- package/dist/{chunk-JV75JWOX.js → chunk-CCRQI3ON.js} +218 -16
- package/dist/chunk-CCRQI3ON.js.map +1 -0
- package/dist/{chunk-XG43KEYF.cjs → chunk-K7NBFQEE.cjs} +218 -15
- package/dist/chunk-K7NBFQEE.cjs.map +1 -0
- package/dist/{index-olL_q_yu.d.cts → index-CDGXKy8r.d.cts} +218 -16
- package/dist/{index-olL_q_yu.d.ts → index-CDGXKy8r.d.ts} +218 -16
- package/dist/index.cjs +88 -84
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node.cjs +87 -83
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +2 -2
- package/package.json +8 -3
- package/dist/chunk-JV75JWOX.js.map +0 -1
- package/dist/chunk-XG43KEYF.cjs.map +0 -1
package/dist/node.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkK7NBFQEE_cjs = require('./chunk-K7NBFQEE.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 chunkK7NBFQEE_cjs.ItdClient {
|
|
42
42
|
constructor(options = {}) {
|
|
43
43
|
super(options);
|
|
44
44
|
this.setFileReader(nodeFileReader);
|
|
@@ -50,327 +50,331 @@ 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 chunkK7NBFQEE_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 chunkK7NBFQEE_cjs.AUDIO_MIME_TYPES; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "AUTH_FLAG_COOKIE", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkK7NBFQEE_cjs.AUTH_FLAG_COOKIE; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "AUTH_PATHS", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkK7NBFQEE_cjs.AUTH_PATHS; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "AttachmentType", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkK7NBFQEE_cjs.AttachmentType; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "CommentSort", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkK7NBFQEE_cjs.CommentSort; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "DEFAULT_BASE_URL", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkK7NBFQEE_cjs.DEFAULT_BASE_URL; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "DEFAULT_TIMEOUT", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkK7NBFQEE_cjs.DEFAULT_TIMEOUT; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "DEFAULT_USER_AGENT", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkK7NBFQEE_cjs.DEFAULT_USER_AGENT; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "DEVICE_ID_HEADER", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkK7NBFQEE_cjs.DEVICE_ID_HEADER; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "DetectedRuntime", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkK7NBFQEE_cjs.DetectedRuntime; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "FeedTab", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkK7NBFQEE_cjs.FeedTab; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "IMAGE_MIME_TYPES", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkK7NBFQEE_cjs.IMAGE_MIME_TYPES; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "ItdAbortError", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdAbortError; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "ItdApiError", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdApiError; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "ItdApiErrorKind", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdApiErrorKind; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ItdAuthError", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdAuthError; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "ItdConfigError", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdConfigError; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "ItdConflictError", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdConflictError; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "ItdError", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdError; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "ItdErrorCode", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdErrorCode; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "ItdErrorKind", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdErrorKind; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "ItdForbiddenError", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdForbiddenError; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "ItdNetworkError", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdNetworkError; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "ItdNotFoundError", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdNotFoundError; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "ItdPhoneVerificationError", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdPhoneVerificationError; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "ItdRateLimitError", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdRateLimitError; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "ItdRealtime", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdRealtime; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "ItdServerError", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdServerError; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "ItdTimeoutError", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdTimeoutError; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "ItdValidationError", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkK7NBFQEE_cjs.ItdValidationError; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "LIBRARY_VERSION", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkK7NBFQEE_cjs.LIBRARY_VERSION; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "LikesVisibility", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkK7NBFQEE_cjs.LikesVisibility; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "LocalStorageTokenStorage", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkK7NBFQEE_cjs.LocalStorageTokenStorage; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "MAX_RECONNECT_ATTEMPTS", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkK7NBFQEE_cjs.MAX_RECONNECT_ATTEMPTS; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "MemoryTokenStorage", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkK7NBFQEE_cjs.MemoryTokenStorage; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "NOTIFICATION_TYPE_ALIASES", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkK7NBFQEE_cjs.NOTIFICATION_TYPE_ALIASES; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "NotificationType", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkK7NBFQEE_cjs.NotificationType; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "OAuthProvider", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkK7NBFQEE_cjs.OAuthProvider; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "PaginationMode", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkK7NBFQEE_cjs.PaginationMode; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "Paginator", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkK7NBFQEE_cjs.Paginator; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "RECONNECT_BACKOFF", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkK7NBFQEE_cjs.RECONNECT_BACKOFF; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "RECONNECT_JITTER", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkK7NBFQEE_cjs.RECONNECT_JITTER; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "REFRESH_COOKIE", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkK7NBFQEE_cjs.REFRESH_COOKIE; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "REFRESH_COOKIE_PATH", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkK7NBFQEE_cjs.REFRESH_COOKIE_PATH; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "RealtimeStatus", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkK7NBFQEE_cjs.RealtimeStatus; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "RealtimeTransportKind", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkK7NBFQEE_cjs.RealtimeTransportKind; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "ReportReason", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkK7NBFQEE_cjs.ReportReason; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "ReportTargetType", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkK7NBFQEE_cjs.ReportTargetType; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "RuntimeMode", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkK7NBFQEE_cjs.RuntimeMode; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "STREAM_PATH", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkK7NBFQEE_cjs.STREAM_PATH; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "SignInStatus", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkK7NBFQEE_cjs.SignInStatus; }
|
|
258
|
+
});
|
|
259
|
+
Object.defineProperty(exports, "SpanType", {
|
|
260
|
+
enumerable: true,
|
|
261
|
+
get: function () { return chunkK7NBFQEE_cjs.SpanType; }
|
|
258
262
|
});
|
|
259
263
|
Object.defineProperty(exports, "TURNSTILE_SITE_KEY", {
|
|
260
264
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkK7NBFQEE_cjs.TURNSTILE_SITE_KEY; }
|
|
262
266
|
});
|
|
263
267
|
Object.defineProperty(exports, "UnauthorizedStreamError", {
|
|
264
268
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkK7NBFQEE_cjs.UnauthorizedStreamError; }
|
|
266
270
|
});
|
|
267
271
|
Object.defineProperty(exports, "VIDEO_MIME_TYPES", {
|
|
268
272
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkK7NBFQEE_cjs.VIDEO_MIME_TYPES; }
|
|
270
274
|
});
|
|
271
275
|
Object.defineProperty(exports, "WallAccess", {
|
|
272
276
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkK7NBFQEE_cjs.WallAccess; }
|
|
274
278
|
});
|
|
275
279
|
Object.defineProperty(exports, "canonicalNotificationType", {
|
|
276
280
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkK7NBFQEE_cjs.canonicalNotificationType; }
|
|
278
282
|
});
|
|
279
283
|
Object.defineProperty(exports, "comment", {
|
|
280
284
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkK7NBFQEE_cjs.comment; }
|
|
282
286
|
});
|
|
283
287
|
Object.defineProperty(exports, "createTokenStorage", {
|
|
284
288
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkK7NBFQEE_cjs.createTokenStorage; }
|
|
286
290
|
});
|
|
287
291
|
Object.defineProperty(exports, "formatNotificationText", {
|
|
288
292
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkK7NBFQEE_cjs.formatNotificationText; }
|
|
290
294
|
});
|
|
291
295
|
Object.defineProperty(exports, "isBuilder", {
|
|
292
296
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkK7NBFQEE_cjs.isBuilder; }
|
|
294
298
|
});
|
|
295
299
|
Object.defineProperty(exports, "isItdApiError", {
|
|
296
300
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunkK7NBFQEE_cjs.isItdApiError; }
|
|
298
302
|
});
|
|
299
303
|
Object.defineProperty(exports, "isItdAuthError", {
|
|
300
304
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkK7NBFQEE_cjs.isItdAuthError; }
|
|
302
306
|
});
|
|
303
307
|
Object.defineProperty(exports, "isItdConflictError", {
|
|
304
308
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkK7NBFQEE_cjs.isItdConflictError; }
|
|
306
310
|
});
|
|
307
311
|
Object.defineProperty(exports, "isItdError", {
|
|
308
312
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkK7NBFQEE_cjs.isItdError; }
|
|
310
314
|
});
|
|
311
315
|
Object.defineProperty(exports, "isItdForbiddenError", {
|
|
312
316
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunkK7NBFQEE_cjs.isItdForbiddenError; }
|
|
314
318
|
});
|
|
315
319
|
Object.defineProperty(exports, "isItdNotFoundError", {
|
|
316
320
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunkK7NBFQEE_cjs.isItdNotFoundError; }
|
|
318
322
|
});
|
|
319
323
|
Object.defineProperty(exports, "isItdPhoneVerificationError", {
|
|
320
324
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunkK7NBFQEE_cjs.isItdPhoneVerificationError; }
|
|
322
326
|
});
|
|
323
327
|
Object.defineProperty(exports, "isItdRateLimitError", {
|
|
324
328
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunkK7NBFQEE_cjs.isItdRateLimitError; }
|
|
326
330
|
});
|
|
327
331
|
Object.defineProperty(exports, "isItdServerError", {
|
|
328
332
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunkK7NBFQEE_cjs.isItdServerError; }
|
|
330
334
|
});
|
|
331
335
|
Object.defineProperty(exports, "isItdValidationError", {
|
|
332
336
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunkK7NBFQEE_cjs.isItdValidationError; }
|
|
334
338
|
});
|
|
335
339
|
Object.defineProperty(exports, "isKnownNotificationType", {
|
|
336
340
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunkK7NBFQEE_cjs.isKnownNotificationType; }
|
|
338
342
|
});
|
|
339
343
|
Object.defineProperty(exports, "isMyProfile", {
|
|
340
344
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkK7NBFQEE_cjs.isMyProfile; }
|
|
342
346
|
});
|
|
343
347
|
Object.defineProperty(exports, "normalizeNotification", {
|
|
344
348
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkK7NBFQEE_cjs.normalizeNotification; }
|
|
346
350
|
});
|
|
347
351
|
Object.defineProperty(exports, "poll", {
|
|
348
352
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunkK7NBFQEE_cjs.poll; }
|
|
350
354
|
});
|
|
351
355
|
Object.defineProperty(exports, "post", {
|
|
352
356
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunkK7NBFQEE_cjs.post; }
|
|
354
358
|
});
|
|
355
359
|
Object.defineProperty(exports, "readNotificationEvent", {
|
|
356
360
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunkK7NBFQEE_cjs.readNotificationEvent; }
|
|
358
362
|
});
|
|
359
363
|
Object.defineProperty(exports, "readUnreadCountEvent", {
|
|
360
364
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunkK7NBFQEE_cjs.readUnreadCountEvent; }
|
|
362
366
|
});
|
|
363
367
|
Object.defineProperty(exports, "report", {
|
|
364
368
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
369
|
+
get: function () { return chunkK7NBFQEE_cjs.report; }
|
|
366
370
|
});
|
|
367
371
|
Object.defineProperty(exports, "resolveNotificationUrl", {
|
|
368
372
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
373
|
+
get: function () { return chunkK7NBFQEE_cjs.resolveNotificationUrl; }
|
|
370
374
|
});
|
|
371
375
|
Object.defineProperty(exports, "toDate", {
|
|
372
376
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
377
|
+
get: function () { return chunkK7NBFQEE_cjs.toDate; }
|
|
374
378
|
});
|
|
375
379
|
exports.FileTokenStorage = FileTokenStorage;
|
|
376
380
|
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 AUTH_FLAG_COOKIE, e as AUTH_PATHS, f as Actor, g as AllowedMimeType, h as Announcement, i as AnnouncementButton, j as Attachment, k as AttachmentType, l as AudioMimeType, m as AuthInput, n as AuthResource, o as Author, B as BuilderInput, C as CaptchaCredentials, p as ChangelogEntry, q as Clan, r as ClientHooks, s as Comment, t as CommentBuilder, u as CommentInput, v as CommentReplyTo, w as CommentSort, x as CommentsParams, y as CommentsResource, z as CreateCommentInput, D as CreatePollInput, E as CreatePostInput, G as CreateReportInput, H as Credentials, J as CredentialsAuth, K as DEFAULT_BASE_URL, L as DEFAULT_TIMEOUT, M as DEFAULT_USER_AGENT, N as DEVICE_ID_HEADER, O as DetectedRuntime, P as DwellEntry, Q as ErrorContextHook, R as FeedParams, S as FeedTab, U as FileInput, V as FilesResource, W as FollowResult, X as ForgotPasswordInput, Y as Hashtag, Z as HashtagPostsParams, _ as HashtagsResource, $ as IMAGE_MIME_TYPES, a0 as ImageMimeType, a1 as InteractionEntry, a2 as IsoDate, a3 as ItdAbortError, a4 as ItdApiError, a5 as ItdApiErrorInit, a6 as ItdApiErrorKind, a7 as ItdAuthError, a8 as ItdBuilder, a9 as ItdConfigError, aa as ItdConflictError, ab as ItdError, ac as ItdErrorCode, ad as ItdErrorKind, ae as ItdFieldErrors, af as ItdForbiddenError, ag as ItdNetworkError, ah as ItdNotFoundError, ai as ItdPhoneVerificationError, aj as
|
|
1
|
+
import { T as TokenStorage, I as ItdSession, a as ItdClient$1, b as ItdClientOptions, F as FileReader } from './index-CDGXKy8r.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 AllowedMimeType, h as Announcement, i as AnnouncementButton, j as Attachment, k as AttachmentType, l as AudioMimeType, m as AuthInput, n as AuthResource, o as Author, B as BuilderInput, C as CaptchaCredentials, p as ChangelogEntry, q as Clan, r as ClientHooks, s as Comment, t as CommentBuilder, u as CommentInput, v as CommentReplyTo, w as CommentSort, x as CommentsParams, y as CommentsResource, z as CreateCommentInput, D as CreatePollInput, E as CreatePostInput, G as CreateReportInput, H as Credentials, J as CredentialsAuth, K as DEFAULT_BASE_URL, L as DEFAULT_TIMEOUT, M as DEFAULT_USER_AGENT, N as DEVICE_ID_HEADER, O as DetectedRuntime, P as DwellEntry, Q as ErrorContextHook, R as FeedParams, S as FeedTab, U as FileInput, V as FilesResource, W as FollowResult, X as ForgotPasswordInput, Y as Hashtag, Z as HashtagPostsParams, _ as HashtagsResource, $ as IMAGE_MIME_TYPES, a0 as ImageMimeType, a1 as InteractionEntry, a2 as IsoDate, a3 as ItdAbortError, a4 as ItdApiError, a5 as ItdApiErrorInit, a6 as ItdApiErrorKind, a7 as ItdAuthError, a8 as ItdBuilder, a9 as ItdConfigError, aa as ItdConflictError, ab as ItdError, ac as ItdErrorCode, ad as ItdErrorKind, ae as ItdFieldErrors, af as ItdForbiddenError, ag as ItdNetworkError, ah as ItdNotFoundError, ai as ItdPhoneVerificationError, aj as ItdPlugin, ak as ItdRateLimitError, al as ItdRealtime, am as ItdServerError, an as ItdTimeoutError, ao as ItdValidationError, ap as LIBRARY_VERSION, aq as LikeResult, ar as LikesVisibility, as as Listener, at as LocalStorageTokenStorage, au as Logger, av as Loose, aw as MAX_RECONNECT_ATTEMPTS, ax as MemoryTokenStorage, ay as MyProfile, az as NOTIFICATION_TYPE_ALIASES, aA as Notification, aB as NotificationEvent, aC as NotificationListParams, aD as NotificationSettings, aE as NotificationType, aF as NotificationsResource, aG as OAuthProvider, aH as Page, aI as PageState, aJ as PaginationMode, aK as Paginator, aL as PaymentMethod, aM as Pin, aN as PinPostResult, aO as PinsResult, aP as PlatformResource, aQ as PluginContext, aR as Poll, aS as PollBuilder, aT as PollInput, aU as PollOption, aV as PollTransportOptions, aW as Portal, aX as Post, aY as PostBuilder, aZ as PostInput, a_ as PostStats, a$ as PostsResource, b0 as PrivacySettings, b1 as Profile, b2 as PublicProfile, b3 as RECONNECT_BACKOFF, b4 as RECONNECT_JITTER, b5 as REFRESH_COOKIE, b6 as REFRESH_COOKIE_PATH, b7 as RateLimitOptions, b8 as RawRequestOptions, b9 as RealtimeEvents, ba as RealtimeOptions, bb as RealtimeStatus, bc as RealtimeTransport, bd as RealtimeTransportKind, be as ReconnectOptions, bf as RepliesParams, bg as Report, bh as ReportBuilder, bi as ReportInput, bj as ReportReason, bk as ReportTargetType, bl as ReportsResource, bm as RequestContext, bn as RequestOptions, bo as ResetPasswordInput, bp as ResponseContext, bq as RetryContext, br as RetryOptions, bs as RuntimeMode, bt as STREAM_PATH, bu as SearchResource, bv as SearchResult, bw as Session, bx as SignInResult, by as SignInStatus, bz as Span, bA as SpanType, bB as SseTransportOptions, bC as Subscription, bD as SubscriptionResource, bE as SubscriptionState, bF as TURNSTILE_SITE_KEY, bG as TelemetryResource, bH as Transformer, bI as TransportContext, bJ as TransportEvent, bK as UnauthorizedStreamError, bL as Unsubscribe, bM as UpdateNotificationSettingsInput, bN as UpdatePrivacyInput, bO as UpdateProfileInput, bP as UploadOptions, bQ as UploadedFile, bR as UserId, bS as UserListParams, bT as UserPostsParams, bU as UserRef, bV as UserSummary, bW as UsersResource, bX as VIDEO_MIME_TYPES, bY as VerificationResource, bZ as VerificationStatus, b_ as VideoMimeType, b$ as WallAccess, c0 as canonicalNotificationType, c1 as comment, c2 as createTokenStorage, c3 as formatNotificationText, c4 as isBuilder, c5 as isItdApiError, c6 as isItdAuthError, c7 as isItdConflictError, c8 as isItdError, c9 as isItdForbiddenError, ca as isItdNotFoundError, cb as isItdPhoneVerificationError, cc as isItdRateLimitError, cd as isItdServerError, ce as isItdValidationError, cf as isKnownNotificationType, cg as isMyProfile, ch as normalizeNotification, ci as poll, cj as post, ck as readNotificationEvent, cl as readUnreadCountEvent, cm as report, cn as resolveNotificationUrl, co as toDate } from './index-CDGXKy8r.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 AUTH_FLAG_COOKIE, e as AUTH_PATHS, f as Actor, g as AllowedMimeType, h as Announcement, i as AnnouncementButton, j as Attachment, k as AttachmentType, l as AudioMimeType, m as AuthInput, n as AuthResource, o as Author, B as BuilderInput, C as CaptchaCredentials, p as ChangelogEntry, q as Clan, r as ClientHooks, s as Comment, t as CommentBuilder, u as CommentInput, v as CommentReplyTo, w as CommentSort, x as CommentsParams, y as CommentsResource, z as CreateCommentInput, D as CreatePollInput, E as CreatePostInput, G as CreateReportInput, H as Credentials, J as CredentialsAuth, K as DEFAULT_BASE_URL, L as DEFAULT_TIMEOUT, M as DEFAULT_USER_AGENT, N as DEVICE_ID_HEADER, O as DetectedRuntime, P as DwellEntry, Q as ErrorContextHook, R as FeedParams, S as FeedTab, U as FileInput, V as FilesResource, W as FollowResult, X as ForgotPasswordInput, Y as Hashtag, Z as HashtagPostsParams, _ as HashtagsResource, $ as IMAGE_MIME_TYPES, a0 as ImageMimeType, a1 as InteractionEntry, a2 as IsoDate, a3 as ItdAbortError, a4 as ItdApiError, a5 as ItdApiErrorInit, a6 as ItdApiErrorKind, a7 as ItdAuthError, a8 as ItdBuilder, a9 as ItdConfigError, aa as ItdConflictError, ab as ItdError, ac as ItdErrorCode, ad as ItdErrorKind, ae as ItdFieldErrors, af as ItdForbiddenError, ag as ItdNetworkError, ah as ItdNotFoundError, ai as ItdPhoneVerificationError, aj as
|
|
1
|
+
import { T as TokenStorage, I as ItdSession, a as ItdClient$1, b as ItdClientOptions, F as FileReader } from './index-CDGXKy8r.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 AllowedMimeType, h as Announcement, i as AnnouncementButton, j as Attachment, k as AttachmentType, l as AudioMimeType, m as AuthInput, n as AuthResource, o as Author, B as BuilderInput, C as CaptchaCredentials, p as ChangelogEntry, q as Clan, r as ClientHooks, s as Comment, t as CommentBuilder, u as CommentInput, v as CommentReplyTo, w as CommentSort, x as CommentsParams, y as CommentsResource, z as CreateCommentInput, D as CreatePollInput, E as CreatePostInput, G as CreateReportInput, H as Credentials, J as CredentialsAuth, K as DEFAULT_BASE_URL, L as DEFAULT_TIMEOUT, M as DEFAULT_USER_AGENT, N as DEVICE_ID_HEADER, O as DetectedRuntime, P as DwellEntry, Q as ErrorContextHook, R as FeedParams, S as FeedTab, U as FileInput, V as FilesResource, W as FollowResult, X as ForgotPasswordInput, Y as Hashtag, Z as HashtagPostsParams, _ as HashtagsResource, $ as IMAGE_MIME_TYPES, a0 as ImageMimeType, a1 as InteractionEntry, a2 as IsoDate, a3 as ItdAbortError, a4 as ItdApiError, a5 as ItdApiErrorInit, a6 as ItdApiErrorKind, a7 as ItdAuthError, a8 as ItdBuilder, a9 as ItdConfigError, aa as ItdConflictError, ab as ItdError, ac as ItdErrorCode, ad as ItdErrorKind, ae as ItdFieldErrors, af as ItdForbiddenError, ag as ItdNetworkError, ah as ItdNotFoundError, ai as ItdPhoneVerificationError, aj as ItdPlugin, ak as ItdRateLimitError, al as ItdRealtime, am as ItdServerError, an as ItdTimeoutError, ao as ItdValidationError, ap as LIBRARY_VERSION, aq as LikeResult, ar as LikesVisibility, as as Listener, at as LocalStorageTokenStorage, au as Logger, av as Loose, aw as MAX_RECONNECT_ATTEMPTS, ax as MemoryTokenStorage, ay as MyProfile, az as NOTIFICATION_TYPE_ALIASES, aA as Notification, aB as NotificationEvent, aC as NotificationListParams, aD as NotificationSettings, aE as NotificationType, aF as NotificationsResource, aG as OAuthProvider, aH as Page, aI as PageState, aJ as PaginationMode, aK as Paginator, aL as PaymentMethod, aM as Pin, aN as PinPostResult, aO as PinsResult, aP as PlatformResource, aQ as PluginContext, aR as Poll, aS as PollBuilder, aT as PollInput, aU as PollOption, aV as PollTransportOptions, aW as Portal, aX as Post, aY as PostBuilder, aZ as PostInput, a_ as PostStats, a$ as PostsResource, b0 as PrivacySettings, b1 as Profile, b2 as PublicProfile, b3 as RECONNECT_BACKOFF, b4 as RECONNECT_JITTER, b5 as REFRESH_COOKIE, b6 as REFRESH_COOKIE_PATH, b7 as RateLimitOptions, b8 as RawRequestOptions, b9 as RealtimeEvents, ba as RealtimeOptions, bb as RealtimeStatus, bc as RealtimeTransport, bd as RealtimeTransportKind, be as ReconnectOptions, bf as RepliesParams, bg as Report, bh as ReportBuilder, bi as ReportInput, bj as ReportReason, bk as ReportTargetType, bl as ReportsResource, bm as RequestContext, bn as RequestOptions, bo as ResetPasswordInput, bp as ResponseContext, bq as RetryContext, br as RetryOptions, bs as RuntimeMode, bt as STREAM_PATH, bu as SearchResource, bv as SearchResult, bw as Session, bx as SignInResult, by as SignInStatus, bz as Span, bA as SpanType, bB as SseTransportOptions, bC as Subscription, bD as SubscriptionResource, bE as SubscriptionState, bF as TURNSTILE_SITE_KEY, bG as TelemetryResource, bH as Transformer, bI as TransportContext, bJ as TransportEvent, bK as UnauthorizedStreamError, bL as Unsubscribe, bM as UpdateNotificationSettingsInput, bN as UpdatePrivacyInput, bO as UpdateProfileInput, bP as UploadOptions, bQ as UploadedFile, bR as UserId, bS as UserListParams, bT as UserPostsParams, bU as UserRef, bV as UserSummary, bW as UsersResource, bX as VIDEO_MIME_TYPES, bY as VerificationResource, bZ as VerificationStatus, b_ as VideoMimeType, b$ as WallAccess, c0 as canonicalNotificationType, c1 as comment, c2 as createTokenStorage, c3 as formatNotificationText, c4 as isBuilder, c5 as isItdApiError, c6 as isItdAuthError, c7 as isItdConflictError, c8 as isItdError, c9 as isItdForbiddenError, ca as isItdNotFoundError, cb as isItdPhoneVerificationError, cc as isItdRateLimitError, cd as isItdServerError, ce as isItdValidationError, cf as isKnownNotificationType, cg as isMyProfile, ch as normalizeNotification, ci as poll, cj as post, ck as readNotificationEvent, cl as readUnreadCountEvent, cm as report, cn as resolveNotificationUrl, co as toDate } from './index-CDGXKy8r.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, AUTH_FLAG_COOKIE, AUTH_PATHS, AttachmentType, CommentSort, DEFAULT_BASE_URL, DEFAULT_TIMEOUT, DEFAULT_USER_AGENT, DEVICE_ID_HEADER, DetectedRuntime, FeedTab, IMAGE_MIME_TYPES, ItdAbortError, ItdApiError, ItdApiErrorKind, ItdAuthError, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdRealtime, ItdServerError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LikesVisibility, LocalStorageTokenStorage, MAX_RECONNECT_ATTEMPTS, MemoryTokenStorage, NOTIFICATION_TYPE_ALIASES, NotificationType, OAuthProvider, PaginationMode, Paginator, RECONNECT_BACKOFF, RECONNECT_JITTER, REFRESH_COOKIE, REFRESH_COOKIE_PATH, RealtimeStatus, RealtimeTransportKind, ReportReason, ReportTargetType, RuntimeMode, STREAM_PATH, SignInStatus, TURNSTILE_SITE_KEY, UnauthorizedStreamError, VIDEO_MIME_TYPES, WallAccess, canonicalNotificationType, comment, createTokenStorage, formatNotificationText, isBuilder, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdValidationError, isKnownNotificationType, isMyProfile, normalizeNotification, poll, post, readNotificationEvent, readUnreadCountEvent, report, resolveNotificationUrl, toDate } from './chunk-
|
|
1
|
+
import { ItdClient } from './chunk-CCRQI3ON.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, DetectedRuntime, FeedTab, IMAGE_MIME_TYPES, ItdAbortError, ItdApiError, ItdApiErrorKind, ItdAuthError, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdRealtime, ItdServerError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LikesVisibility, LocalStorageTokenStorage, MAX_RECONNECT_ATTEMPTS, MemoryTokenStorage, NOTIFICATION_TYPE_ALIASES, NotificationType, OAuthProvider, PaginationMode, Paginator, RECONNECT_BACKOFF, RECONNECT_JITTER, REFRESH_COOKIE, REFRESH_COOKIE_PATH, RealtimeStatus, RealtimeTransportKind, ReportReason, ReportTargetType, RuntimeMode, STREAM_PATH, SignInStatus, SpanType, TURNSTILE_SITE_KEY, UnauthorizedStreamError, VIDEO_MIME_TYPES, WallAccess, canonicalNotificationType, comment, createTokenStorage, formatNotificationText, isBuilder, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdValidationError, isKnownNotificationType, isMyProfile, normalizeNotification, poll, post, readNotificationEvent, readUnreadCountEvent, report, resolveNotificationUrl, toDate } from './chunk-CCRQI3ON.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.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Клиент REST и realtime API социальной сети итд.com для JavaScript и TypeScript",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
+
"workspaces": [
|
|
38
|
+
"turnstile",
|
|
39
|
+
"crypto"
|
|
40
|
+
],
|
|
37
41
|
"main": "./dist/index.cjs",
|
|
38
42
|
"module": "./dist/index.js",
|
|
39
43
|
"types": "./dist/index.d.ts",
|
|
@@ -71,11 +75,12 @@
|
|
|
71
75
|
"build": "tsup",
|
|
72
76
|
"dev": "tsup --watch",
|
|
73
77
|
"test": "vitest run",
|
|
78
|
+
"test:all": "npm run test && npm run test --workspaces --if-present",
|
|
74
79
|
"test:watch": "vitest",
|
|
75
80
|
"test:coverage": "vitest run --coverage",
|
|
76
81
|
"typecheck": "tsc --noEmit",
|
|
77
|
-
"lint": "biome check src test",
|
|
78
|
-
"lint:fix": "biome check --write src test",
|
|
82
|
+
"lint": "biome check src test turnstile/src turnstile/test crypto/src crypto/test",
|
|
83
|
+
"lint:fix": "biome check --write src test turnstile/src turnstile/test crypto/src crypto/test",
|
|
79
84
|
"docs": "typedoc",
|
|
80
85
|
"check:pack": "publint && attw --pack .",
|
|
81
86
|
"prepublishOnly": "npm run typecheck && npm run test && npm run build && npm run check:pack"
|