rotur-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +985 -0
- package/dist/index.d.ts +985 -0
- package/dist/index.js +1067 -0
- package/dist/index.mjs +1036 -0
- package/package.json +31 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,985 @@
|
|
|
1
|
+
declare class ApiError extends Error {
|
|
2
|
+
status: number;
|
|
3
|
+
data: any;
|
|
4
|
+
constructor(status: number, data: any);
|
|
5
|
+
}
|
|
6
|
+
declare class Http {
|
|
7
|
+
private baseUrl;
|
|
8
|
+
private getToken;
|
|
9
|
+
constructor(getToken: () => string | null);
|
|
10
|
+
private buildUrl;
|
|
11
|
+
get<T>(path: string, params?: Record<string, any>, auth?: boolean): Promise<T>;
|
|
12
|
+
post<T>(path: string, body?: any, auth?: boolean): Promise<T>;
|
|
13
|
+
patch<T>(path: string, body?: any): Promise<T>;
|
|
14
|
+
del<T>(path: string, body?: any): Promise<T>;
|
|
15
|
+
private handle;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type UserId = string;
|
|
19
|
+
type Username = string;
|
|
20
|
+
type Presence = "online" | "idle" | "dnd" | "invisible";
|
|
21
|
+
type StandingLevel = "good" | "warning" | "suspended" | "banned";
|
|
22
|
+
type JoinPolicy = "OPEN" | "REQUEST" | "INVITE";
|
|
23
|
+
type TokenPermission = "account:delete" | "account:profile" | "account:settings" | "account:view" | "credits:view" | "credits:manage" | "credits:transfer" | "credits:daily" | "friends:view" | "friends:manage" | "friends:request" | "friends:accept" | "friends:remove" | "posts:view" | "posts:create" | "posts:delete" | "posts:manage" | "posts:like" | "posts:reply" | "posts:repost" | "following:view" | "following:follow" | "following:unfollow" | "files:view" | "files:manage" | "files:delete" | "keys:view" | "keys:manage" | "groups:view" | "groups:manage" | "groups:join" | "groups:leave" | "notifications:view" | "notifications:send" | "gifts:view" | "gifts:create" | "gifts:claim" | "gifts:cancel" | "items:view" | "items:buy" | "items:sell" | "items:manage" | "validators:generate" | "blocked:view" | "blocked:manage" | "tokens:manage" | "cosmetics:view" | "cosmetics:buy" | "cosmetics:equip";
|
|
24
|
+
interface UserProfile {
|
|
25
|
+
username: Username;
|
|
26
|
+
pfp: string;
|
|
27
|
+
banner?: string;
|
|
28
|
+
bio?: string;
|
|
29
|
+
pronouns?: string;
|
|
30
|
+
system: string;
|
|
31
|
+
created: number;
|
|
32
|
+
followers: number;
|
|
33
|
+
following: number;
|
|
34
|
+
currency: number;
|
|
35
|
+
subscription: string;
|
|
36
|
+
max_size: string;
|
|
37
|
+
badges: Badge[];
|
|
38
|
+
theme?: Record<string, any>;
|
|
39
|
+
private: boolean;
|
|
40
|
+
banned: boolean;
|
|
41
|
+
status?: RoomMember;
|
|
42
|
+
posts?: NetPost[];
|
|
43
|
+
followed?: boolean;
|
|
44
|
+
follows_me?: boolean;
|
|
45
|
+
id: UserId;
|
|
46
|
+
index: number;
|
|
47
|
+
}
|
|
48
|
+
interface Badge {
|
|
49
|
+
name: string;
|
|
50
|
+
icon: string;
|
|
51
|
+
description: string;
|
|
52
|
+
}
|
|
53
|
+
interface Transaction {
|
|
54
|
+
type: string;
|
|
55
|
+
user: Username;
|
|
56
|
+
amount: number;
|
|
57
|
+
note: string;
|
|
58
|
+
time: number;
|
|
59
|
+
new_total: number;
|
|
60
|
+
petition_id?: string;
|
|
61
|
+
key_name?: string;
|
|
62
|
+
key_id?: string;
|
|
63
|
+
gift_id?: string;
|
|
64
|
+
gift_code?: string;
|
|
65
|
+
}
|
|
66
|
+
interface NetPost {
|
|
67
|
+
id: string;
|
|
68
|
+
content: string;
|
|
69
|
+
user: Username;
|
|
70
|
+
timestamp: number;
|
|
71
|
+
attachment?: string;
|
|
72
|
+
profile_only: boolean;
|
|
73
|
+
os?: string;
|
|
74
|
+
replies?: NetReply[];
|
|
75
|
+
likes?: Username[];
|
|
76
|
+
pinned?: boolean;
|
|
77
|
+
is_repost: boolean;
|
|
78
|
+
original_post?: NetPost;
|
|
79
|
+
}
|
|
80
|
+
interface NetReply {
|
|
81
|
+
id: string;
|
|
82
|
+
content: string;
|
|
83
|
+
user: Username;
|
|
84
|
+
timestamp: number;
|
|
85
|
+
}
|
|
86
|
+
interface NetKey {
|
|
87
|
+
key: string;
|
|
88
|
+
name: string;
|
|
89
|
+
price: number;
|
|
90
|
+
type: string;
|
|
91
|
+
total_income?: number;
|
|
92
|
+
webhook?: string;
|
|
93
|
+
subscription?: KeySubscription;
|
|
94
|
+
users: Record<Username, KeyUserData>;
|
|
95
|
+
creator: Username;
|
|
96
|
+
data?: string;
|
|
97
|
+
}
|
|
98
|
+
interface KeySubscription {
|
|
99
|
+
active: boolean;
|
|
100
|
+
frequency: number;
|
|
101
|
+
period: string;
|
|
102
|
+
next_billing: any;
|
|
103
|
+
}
|
|
104
|
+
interface KeyUserData {
|
|
105
|
+
time: number;
|
|
106
|
+
price?: number;
|
|
107
|
+
next_billing?: any;
|
|
108
|
+
cancel_at?: any;
|
|
109
|
+
}
|
|
110
|
+
interface KeyPublic {
|
|
111
|
+
key: string;
|
|
112
|
+
name: string;
|
|
113
|
+
price: number;
|
|
114
|
+
type: string;
|
|
115
|
+
}
|
|
116
|
+
interface NetItem {
|
|
117
|
+
name: string;
|
|
118
|
+
description: string;
|
|
119
|
+
price: number;
|
|
120
|
+
selling: boolean;
|
|
121
|
+
author: Username;
|
|
122
|
+
owner: Username;
|
|
123
|
+
private_data?: any;
|
|
124
|
+
created: number;
|
|
125
|
+
transfer_history: NetTransferHistory[];
|
|
126
|
+
total_income: number;
|
|
127
|
+
}
|
|
128
|
+
interface NetTransferHistory {
|
|
129
|
+
from?: Username;
|
|
130
|
+
to: Username;
|
|
131
|
+
timestamp: number;
|
|
132
|
+
type: string;
|
|
133
|
+
price?: number;
|
|
134
|
+
}
|
|
135
|
+
interface GiftPublic {
|
|
136
|
+
code: string;
|
|
137
|
+
amount: number;
|
|
138
|
+
note: string;
|
|
139
|
+
creator_id: Username;
|
|
140
|
+
expires_at: number;
|
|
141
|
+
}
|
|
142
|
+
interface GiftNet {
|
|
143
|
+
id: string;
|
|
144
|
+
code: string;
|
|
145
|
+
amount: number;
|
|
146
|
+
note: string;
|
|
147
|
+
creator_id: Username;
|
|
148
|
+
created_at: number;
|
|
149
|
+
expires_at: number;
|
|
150
|
+
claimed_at?: number;
|
|
151
|
+
claimed_by?: Username;
|
|
152
|
+
}
|
|
153
|
+
interface SubTokenPublic {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
permissions: TokenPermission[];
|
|
157
|
+
created_at: number;
|
|
158
|
+
last_used_at?: number;
|
|
159
|
+
expires_at?: number;
|
|
160
|
+
revoked: boolean;
|
|
161
|
+
revoked_at?: number;
|
|
162
|
+
origin?: string;
|
|
163
|
+
description?: string;
|
|
164
|
+
websites?: string[];
|
|
165
|
+
}
|
|
166
|
+
interface SubTokenCreate {
|
|
167
|
+
id: string;
|
|
168
|
+
name: string;
|
|
169
|
+
token: string;
|
|
170
|
+
permissions: TokenPermission[];
|
|
171
|
+
created_at: number;
|
|
172
|
+
expires_at?: number;
|
|
173
|
+
origin?: string;
|
|
174
|
+
description?: string;
|
|
175
|
+
websites?: string[];
|
|
176
|
+
}
|
|
177
|
+
interface TokenAbilities {
|
|
178
|
+
token_type: "main" | "sub";
|
|
179
|
+
permissions: TokenPermission[];
|
|
180
|
+
name?: string;
|
|
181
|
+
id?: string;
|
|
182
|
+
}
|
|
183
|
+
interface PermissionGroup {
|
|
184
|
+
name: string;
|
|
185
|
+
description: string;
|
|
186
|
+
permissions: TokenPermission[];
|
|
187
|
+
}
|
|
188
|
+
interface GroupPublic {
|
|
189
|
+
tag: string;
|
|
190
|
+
name: string;
|
|
191
|
+
description: string;
|
|
192
|
+
icon_url: string;
|
|
193
|
+
banner_url: string;
|
|
194
|
+
owner_user_id: Username;
|
|
195
|
+
public: boolean;
|
|
196
|
+
join_policy: JoinPolicy;
|
|
197
|
+
created_at: number;
|
|
198
|
+
credits_balance: number;
|
|
199
|
+
member_count: number;
|
|
200
|
+
}
|
|
201
|
+
interface GroupAnnouncement {
|
|
202
|
+
id: string;
|
|
203
|
+
group_tag: string;
|
|
204
|
+
title: string;
|
|
205
|
+
body: string;
|
|
206
|
+
author_user_id: UserId;
|
|
207
|
+
created_at: number;
|
|
208
|
+
ping_members: boolean;
|
|
209
|
+
}
|
|
210
|
+
interface GroupEvent {
|
|
211
|
+
id: string;
|
|
212
|
+
group_tag: string;
|
|
213
|
+
title: string;
|
|
214
|
+
description: string;
|
|
215
|
+
start_time: number;
|
|
216
|
+
end_time: number;
|
|
217
|
+
location: string;
|
|
218
|
+
visibility: "MEMBERS" | "PUBLIC";
|
|
219
|
+
created_by: UserId;
|
|
220
|
+
published: boolean;
|
|
221
|
+
}
|
|
222
|
+
interface GroupRole {
|
|
223
|
+
id: string;
|
|
224
|
+
group_tag: string;
|
|
225
|
+
name: string;
|
|
226
|
+
description: string;
|
|
227
|
+
assign_on_join: boolean;
|
|
228
|
+
self_assignable: boolean;
|
|
229
|
+
benefits: string[];
|
|
230
|
+
permissions: string[];
|
|
231
|
+
}
|
|
232
|
+
interface GroupTip {
|
|
233
|
+
id: string;
|
|
234
|
+
group_tag: string;
|
|
235
|
+
from_user_id: UserId;
|
|
236
|
+
amount_credits: number;
|
|
237
|
+
created_at: number;
|
|
238
|
+
}
|
|
239
|
+
interface RoomMember {
|
|
240
|
+
user_id: UserId;
|
|
241
|
+
username: Username;
|
|
242
|
+
status: string;
|
|
243
|
+
presence: Presence;
|
|
244
|
+
activities: Activity[];
|
|
245
|
+
}
|
|
246
|
+
interface Activity {
|
|
247
|
+
id: string;
|
|
248
|
+
title: string;
|
|
249
|
+
application?: ActivityApplication;
|
|
250
|
+
image?: string;
|
|
251
|
+
url?: string;
|
|
252
|
+
status?: string;
|
|
253
|
+
start_time?: number;
|
|
254
|
+
media?: ActivityMedia;
|
|
255
|
+
}
|
|
256
|
+
interface ActivityApplication {
|
|
257
|
+
name: string;
|
|
258
|
+
url?: string;
|
|
259
|
+
}
|
|
260
|
+
interface ActivityMedia {
|
|
261
|
+
title: string;
|
|
262
|
+
artist?: string;
|
|
263
|
+
album?: string;
|
|
264
|
+
start: number;
|
|
265
|
+
end: number;
|
|
266
|
+
}
|
|
267
|
+
interface UserStatusResponse {
|
|
268
|
+
username: Username;
|
|
269
|
+
status: string;
|
|
270
|
+
presence: string;
|
|
271
|
+
activities: Record<string, Activity>;
|
|
272
|
+
}
|
|
273
|
+
interface NotificationEntry {
|
|
274
|
+
type: string;
|
|
275
|
+
id: string;
|
|
276
|
+
timestamp: number;
|
|
277
|
+
[key: string]: any;
|
|
278
|
+
}
|
|
279
|
+
interface NotifyEndpoint {
|
|
280
|
+
device_id: string;
|
|
281
|
+
endpoint: string;
|
|
282
|
+
p256dh: string;
|
|
283
|
+
auth: string;
|
|
284
|
+
source: string;
|
|
285
|
+
created_at: number;
|
|
286
|
+
}
|
|
287
|
+
interface NotifyAllowedSender {
|
|
288
|
+
username: Username;
|
|
289
|
+
count: number;
|
|
290
|
+
}
|
|
291
|
+
interface NotifyLogEntry {
|
|
292
|
+
from: Username;
|
|
293
|
+
source: string;
|
|
294
|
+
title?: string;
|
|
295
|
+
body?: string;
|
|
296
|
+
at: number;
|
|
297
|
+
}
|
|
298
|
+
interface FileEntry {
|
|
299
|
+
uuid: string;
|
|
300
|
+
name: string;
|
|
301
|
+
path: string;
|
|
302
|
+
size: number;
|
|
303
|
+
created: number;
|
|
304
|
+
modified: number;
|
|
305
|
+
}
|
|
306
|
+
interface System {
|
|
307
|
+
name: string;
|
|
308
|
+
owner: {
|
|
309
|
+
name: Username;
|
|
310
|
+
discord_id: string;
|
|
311
|
+
};
|
|
312
|
+
wallpaper: string;
|
|
313
|
+
designation: string;
|
|
314
|
+
icon: string;
|
|
315
|
+
}
|
|
316
|
+
interface EconomyStats {
|
|
317
|
+
average: number;
|
|
318
|
+
total: number;
|
|
319
|
+
variance: number;
|
|
320
|
+
currency_comparison: {
|
|
321
|
+
pence: string;
|
|
322
|
+
cents: string;
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
interface UserStats {
|
|
326
|
+
total_users: number;
|
|
327
|
+
banned_users: number;
|
|
328
|
+
active_users: number;
|
|
329
|
+
}
|
|
330
|
+
interface CosmeticItem {
|
|
331
|
+
id: string;
|
|
332
|
+
name: string;
|
|
333
|
+
description: string;
|
|
334
|
+
type: string;
|
|
335
|
+
price: number;
|
|
336
|
+
available: boolean;
|
|
337
|
+
}
|
|
338
|
+
interface ValidatorResult {
|
|
339
|
+
valid: boolean;
|
|
340
|
+
username?: Username;
|
|
341
|
+
id?: UserId;
|
|
342
|
+
error?: string;
|
|
343
|
+
}
|
|
344
|
+
interface ValidatorGenerateResult {
|
|
345
|
+
validator: string;
|
|
346
|
+
}
|
|
347
|
+
interface StandingInfo {
|
|
348
|
+
username: Username;
|
|
349
|
+
standing: StandingLevel;
|
|
350
|
+
recover_at: number;
|
|
351
|
+
history: StandingHistoryEntry[];
|
|
352
|
+
}
|
|
353
|
+
interface StandingHistoryEntry {
|
|
354
|
+
level: StandingLevel;
|
|
355
|
+
reason: string;
|
|
356
|
+
set_by: string;
|
|
357
|
+
set_at: number;
|
|
358
|
+
}
|
|
359
|
+
interface ExistsResponse {
|
|
360
|
+
exists: boolean;
|
|
361
|
+
}
|
|
362
|
+
interface LimitsResponse {
|
|
363
|
+
content_length: number;
|
|
364
|
+
content_length_premium: number;
|
|
365
|
+
attachment_length: number;
|
|
366
|
+
}
|
|
367
|
+
interface CheckAuthResponse {
|
|
368
|
+
auth: boolean;
|
|
369
|
+
username: string;
|
|
370
|
+
token_type: "main" | "sub";
|
|
371
|
+
permissions?: TokenPermission[];
|
|
372
|
+
}
|
|
373
|
+
interface CheckBannedResponse {
|
|
374
|
+
banned: string[];
|
|
375
|
+
}
|
|
376
|
+
interface EscrowTransferResult {
|
|
377
|
+
message: string;
|
|
378
|
+
from: Username;
|
|
379
|
+
amount: number;
|
|
380
|
+
petition_id: string;
|
|
381
|
+
new_balance: number;
|
|
382
|
+
}
|
|
383
|
+
interface EscrowReleaseResult {
|
|
384
|
+
message: string;
|
|
385
|
+
to: Username;
|
|
386
|
+
amount: number;
|
|
387
|
+
petition_id: string;
|
|
388
|
+
new_balance: number;
|
|
389
|
+
}
|
|
390
|
+
interface CosmeticCatalogEntryPublic {
|
|
391
|
+
id: string;
|
|
392
|
+
cosmetic_type: string;
|
|
393
|
+
name: string;
|
|
394
|
+
description: string;
|
|
395
|
+
image_url: string;
|
|
396
|
+
pricing_type: "free" | "paid";
|
|
397
|
+
price: number;
|
|
398
|
+
creator: Username;
|
|
399
|
+
creator_pct: number;
|
|
400
|
+
featured: boolean;
|
|
401
|
+
purchases: number;
|
|
402
|
+
created_at: number;
|
|
403
|
+
}
|
|
404
|
+
interface ShopResponse {
|
|
405
|
+
items: CosmeticCatalogEntryPublic[];
|
|
406
|
+
total: number;
|
|
407
|
+
offset: number;
|
|
408
|
+
limit: number;
|
|
409
|
+
}
|
|
410
|
+
interface MyCosmeticsResponse {
|
|
411
|
+
active_cosmetics: Record<string, CosmeticCatalogEntryPublic>;
|
|
412
|
+
owned_cosmetics: CosmeticCatalogEntryPublic[];
|
|
413
|
+
}
|
|
414
|
+
interface CosmeticPurchaseResult {
|
|
415
|
+
message: string;
|
|
416
|
+
cosmetic: CosmeticCatalogEntryPublic;
|
|
417
|
+
price: number;
|
|
418
|
+
creator_share?: number;
|
|
419
|
+
platform_share?: number;
|
|
420
|
+
new_total?: number;
|
|
421
|
+
}
|
|
422
|
+
interface AdminCosmeticCreate {
|
|
423
|
+
id: string;
|
|
424
|
+
cosmetic_type: string;
|
|
425
|
+
name: string;
|
|
426
|
+
description: string;
|
|
427
|
+
image_url: string;
|
|
428
|
+
pricing_type: "free" | "paid";
|
|
429
|
+
price: number;
|
|
430
|
+
creator: string;
|
|
431
|
+
creator_pct: number;
|
|
432
|
+
featured: boolean;
|
|
433
|
+
}
|
|
434
|
+
interface AdminCosmeticUpdate {
|
|
435
|
+
name?: string;
|
|
436
|
+
description?: string;
|
|
437
|
+
image_url?: string;
|
|
438
|
+
pricing_type?: "free" | "paid";
|
|
439
|
+
price?: number;
|
|
440
|
+
creator?: string;
|
|
441
|
+
creator_pct?: number;
|
|
442
|
+
featured?: boolean;
|
|
443
|
+
cosmetic_type?: string;
|
|
444
|
+
}
|
|
445
|
+
type WSMessage = {
|
|
446
|
+
cmd: "ready";
|
|
447
|
+
user_id: UserId;
|
|
448
|
+
username: Username;
|
|
449
|
+
user: Record<string, any>;
|
|
450
|
+
} | {
|
|
451
|
+
cmd: "join_ok";
|
|
452
|
+
room: string;
|
|
453
|
+
} | {
|
|
454
|
+
cmd: "room_state";
|
|
455
|
+
room: string;
|
|
456
|
+
members: RoomMember[];
|
|
457
|
+
} | {
|
|
458
|
+
cmd: "member_join";
|
|
459
|
+
room: string;
|
|
460
|
+
user_id: UserId;
|
|
461
|
+
username: Username;
|
|
462
|
+
status: string;
|
|
463
|
+
presence: Presence;
|
|
464
|
+
activities?: Record<string, Activity>;
|
|
465
|
+
} | {
|
|
466
|
+
cmd: "member_leave";
|
|
467
|
+
room: string;
|
|
468
|
+
user_id: UserId;
|
|
469
|
+
} | {
|
|
470
|
+
cmd: "status_update";
|
|
471
|
+
room?: string;
|
|
472
|
+
user_id: UserId;
|
|
473
|
+
username?: Username;
|
|
474
|
+
status?: string;
|
|
475
|
+
presence?: Presence;
|
|
476
|
+
activities?: Record<string, Activity>;
|
|
477
|
+
} | {
|
|
478
|
+
cmd: "profile_update";
|
|
479
|
+
user_id: UserId;
|
|
480
|
+
username: Username;
|
|
481
|
+
key: string;
|
|
482
|
+
value: any;
|
|
483
|
+
} | {
|
|
484
|
+
cmd: "key_update";
|
|
485
|
+
key: string;
|
|
486
|
+
value: any;
|
|
487
|
+
} | {
|
|
488
|
+
cmd: "error";
|
|
489
|
+
message: string;
|
|
490
|
+
} | {
|
|
491
|
+
cmd: "leave_ok";
|
|
492
|
+
room: string;
|
|
493
|
+
} | {
|
|
494
|
+
cmd: "rooms";
|
|
495
|
+
rooms: string[];
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
type Handler = (msg: any) => void;
|
|
499
|
+
declare class RoturSocket extends EventTarget {
|
|
500
|
+
private url;
|
|
501
|
+
private ws;
|
|
502
|
+
private token;
|
|
503
|
+
private reconnectTimer;
|
|
504
|
+
private heartbeat;
|
|
505
|
+
private _connected;
|
|
506
|
+
private _userId;
|
|
507
|
+
private _username;
|
|
508
|
+
private handlers;
|
|
509
|
+
private rooms;
|
|
510
|
+
constructor(url?: string);
|
|
511
|
+
get connected(): boolean;
|
|
512
|
+
get userId(): string | null;
|
|
513
|
+
get username(): string | null;
|
|
514
|
+
get joinedRooms(): string[];
|
|
515
|
+
connect(token: string): Promise<{
|
|
516
|
+
user_id: UserId;
|
|
517
|
+
username: Username;
|
|
518
|
+
user: Record<string, any>;
|
|
519
|
+
}>;
|
|
520
|
+
private startHeartbeat;
|
|
521
|
+
private scheduleReconnect;
|
|
522
|
+
private cleanup;
|
|
523
|
+
private emit;
|
|
524
|
+
private send;
|
|
525
|
+
on(cmd: string, handler: Handler): () => void;
|
|
526
|
+
off(cmd: string, handler: Handler): void;
|
|
527
|
+
once(cmd: string): Promise<any>;
|
|
528
|
+
join(rooms: string | string[]): void;
|
|
529
|
+
leave(rooms: string | string[]): void;
|
|
530
|
+
listRooms(): Promise<string[]>;
|
|
531
|
+
roomState(room: string): void;
|
|
532
|
+
setPresence(presence: Presence): void;
|
|
533
|
+
setStatus(status: string): void;
|
|
534
|
+
addActivity(activity: Activity & {
|
|
535
|
+
id: string;
|
|
536
|
+
}): void;
|
|
537
|
+
removeActivity(id: string): void;
|
|
538
|
+
setMusic(application: string, media: ActivityMedia, title?: string): void;
|
|
539
|
+
setPlaying(application: string, options?: {
|
|
540
|
+
url?: string;
|
|
541
|
+
title?: string;
|
|
542
|
+
status?: string;
|
|
543
|
+
image?: string;
|
|
544
|
+
}): void;
|
|
545
|
+
clearActivity(id: string): void;
|
|
546
|
+
disconnect(): void;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
declare class Rotur {
|
|
550
|
+
private _token;
|
|
551
|
+
readonly _http: Http;
|
|
552
|
+
socket: RoturSocket;
|
|
553
|
+
readonly me: MeNamespace;
|
|
554
|
+
readonly posts: PostsNamespace;
|
|
555
|
+
readonly friends: FriendsNamespace;
|
|
556
|
+
readonly following: FollowingNamespace;
|
|
557
|
+
readonly notifications: NotificationsNamespace;
|
|
558
|
+
readonly keys: KeysNamespace;
|
|
559
|
+
readonly items: ItemsNamespace;
|
|
560
|
+
readonly gifts: GiftsNamespace;
|
|
561
|
+
readonly tokens: TokensNamespace;
|
|
562
|
+
readonly groups: GroupsNamespace;
|
|
563
|
+
readonly systems: SystemsNamespace;
|
|
564
|
+
readonly stats: StatsNamespace;
|
|
565
|
+
readonly status: StatusNamespace;
|
|
566
|
+
readonly validators: ValidatorsNamespace;
|
|
567
|
+
readonly link: LinkNamespace;
|
|
568
|
+
readonly cosmetics: CosmeticsNamespace;
|
|
569
|
+
readonly push: PushNamespace;
|
|
570
|
+
readonly files: FilesNamespace;
|
|
571
|
+
readonly standing: StandingNamespace;
|
|
572
|
+
readonly profiles: ProfilesNamespace;
|
|
573
|
+
readonly devfund: DevFundNamespace;
|
|
574
|
+
readonly check: CheckNamespace;
|
|
575
|
+
constructor(options?: {
|
|
576
|
+
token?: string;
|
|
577
|
+
wsUrl?: string;
|
|
578
|
+
});
|
|
579
|
+
get token(): string | null;
|
|
580
|
+
get loggedIn(): boolean;
|
|
581
|
+
setToken(token: string): void;
|
|
582
|
+
login(options?: {
|
|
583
|
+
system?: string;
|
|
584
|
+
timeout?: number;
|
|
585
|
+
signal?: AbortSignal;
|
|
586
|
+
}): Promise<this>;
|
|
587
|
+
connectSocket(): Promise<{
|
|
588
|
+
user_id: string;
|
|
589
|
+
username: string;
|
|
590
|
+
user: Record<string, any>;
|
|
591
|
+
}>;
|
|
592
|
+
logout(): void;
|
|
593
|
+
}
|
|
594
|
+
declare abstract class Namespace {
|
|
595
|
+
protected r: Rotur;
|
|
596
|
+
constructor(r: Rotur);
|
|
597
|
+
protected $get<T>(path: string, params?: Record<string, any>, auth?: boolean): Promise<T>;
|
|
598
|
+
protected $post<T>(path: string, body?: any, auth?: boolean): Promise<T>;
|
|
599
|
+
protected $patch<T>(path: string, body?: any): Promise<T>;
|
|
600
|
+
protected $del<T>(path: string, body?: any): Promise<T>;
|
|
601
|
+
}
|
|
602
|
+
declare class ProfilesNamespace extends Namespace {
|
|
603
|
+
get(username: Username, includePosts?: boolean): Promise<UserProfile>;
|
|
604
|
+
exists(username: Username): Promise<ExistsResponse>;
|
|
605
|
+
supporters(): Promise<Array<{
|
|
606
|
+
username: Username;
|
|
607
|
+
subscription: string;
|
|
608
|
+
}>>;
|
|
609
|
+
getAvatarUrl(username: Username, cache?: string): string;
|
|
610
|
+
}
|
|
611
|
+
declare class MeNamespace extends Namespace {
|
|
612
|
+
get(): Promise<Record<string, any>>;
|
|
613
|
+
update(key: string, value: any): Promise<any>;
|
|
614
|
+
deleteKey(key: string): Promise<void>;
|
|
615
|
+
deleteAccount(): Promise<any>;
|
|
616
|
+
refreshToken(): Promise<{
|
|
617
|
+
token: string;
|
|
618
|
+
}>;
|
|
619
|
+
transfer(to: Username, amount: number, note?: string): Promise<any>;
|
|
620
|
+
claimDaily(): Promise<{
|
|
621
|
+
message: string;
|
|
622
|
+
}>;
|
|
623
|
+
claimTime(): Promise<{
|
|
624
|
+
wait_time: number;
|
|
625
|
+
}>;
|
|
626
|
+
badges(): Promise<{
|
|
627
|
+
badge_names: string[];
|
|
628
|
+
}>;
|
|
629
|
+
acceptTos(): Promise<{
|
|
630
|
+
message: string;
|
|
631
|
+
}>;
|
|
632
|
+
abilities(): Promise<TokenAbilities>;
|
|
633
|
+
blocked(): Promise<{
|
|
634
|
+
blocked: Username[];
|
|
635
|
+
}>;
|
|
636
|
+
block(username: Username): Promise<any>;
|
|
637
|
+
unblock(username: Username): Promise<any>;
|
|
638
|
+
note(username: Username, content: string): Promise<void>;
|
|
639
|
+
deleteNote(username: Username): Promise<void>;
|
|
640
|
+
resendVerification(): Promise<any>;
|
|
641
|
+
verifyEmail(token: string): Promise<any>;
|
|
642
|
+
checkAuth(): Promise<CheckAuthResponse>;
|
|
643
|
+
requests(): Promise<{
|
|
644
|
+
requests: Username[];
|
|
645
|
+
}>;
|
|
646
|
+
transactions(): Promise<any[]>;
|
|
647
|
+
subscription(): Promise<{
|
|
648
|
+
active: boolean;
|
|
649
|
+
tier: string;
|
|
650
|
+
next_billing: number;
|
|
651
|
+
}>;
|
|
652
|
+
}
|
|
653
|
+
declare class PostsNamespace extends Namespace {
|
|
654
|
+
create(content: string, options?: {
|
|
655
|
+
attachment?: string;
|
|
656
|
+
profileOnly?: boolean;
|
|
657
|
+
os?: string;
|
|
658
|
+
}): Promise<NetPost>;
|
|
659
|
+
delete(id: string): Promise<any>;
|
|
660
|
+
like(id: string): Promise<any>;
|
|
661
|
+
unlike(id: string): Promise<any>;
|
|
662
|
+
reply(id: string, content: string): Promise<NetReply>;
|
|
663
|
+
repost(id: string): Promise<NetPost>;
|
|
664
|
+
pin(id: string): Promise<any>;
|
|
665
|
+
unpin(id: string): Promise<any>;
|
|
666
|
+
feed(limit?: number, offset?: number): Promise<NetPost[]>;
|
|
667
|
+
followingFeed(limit?: number): Promise<NetPost[]>;
|
|
668
|
+
top(limit?: number, timePeriod?: number): Promise<NetPost[]>;
|
|
669
|
+
search(query: string, limit?: number): Promise<NetPost[]>;
|
|
670
|
+
limits(): Promise<LimitsResponse>;
|
|
671
|
+
}
|
|
672
|
+
declare class FriendsNamespace extends Namespace {
|
|
673
|
+
list(): Promise<{
|
|
674
|
+
friends: Username[];
|
|
675
|
+
}>;
|
|
676
|
+
request(username: Username): Promise<any>;
|
|
677
|
+
accept(username: Username): Promise<any>;
|
|
678
|
+
reject(username: Username): Promise<any>;
|
|
679
|
+
remove(username: Username): Promise<any>;
|
|
680
|
+
}
|
|
681
|
+
declare class FollowingNamespace extends Namespace {
|
|
682
|
+
follow(username: Username): Promise<any>;
|
|
683
|
+
unfollow(username: Username): Promise<any>;
|
|
684
|
+
followers(username: Username): Promise<{
|
|
685
|
+
followers: Username[];
|
|
686
|
+
}>;
|
|
687
|
+
following(username: Username): Promise<{
|
|
688
|
+
following: Username[];
|
|
689
|
+
}>;
|
|
690
|
+
}
|
|
691
|
+
declare class NotificationsNamespace extends Namespace {
|
|
692
|
+
list(afterDays?: number): Promise<NotificationEntry[]>;
|
|
693
|
+
}
|
|
694
|
+
declare class KeysNamespace extends Namespace {
|
|
695
|
+
create(name: string, options?: {
|
|
696
|
+
description?: string;
|
|
697
|
+
price?: number;
|
|
698
|
+
subscription?: boolean;
|
|
699
|
+
frequency?: number;
|
|
700
|
+
period?: string;
|
|
701
|
+
}): Promise<any>;
|
|
702
|
+
mine(): Promise<NetKey[]>;
|
|
703
|
+
get(id: string): Promise<KeyPublic>;
|
|
704
|
+
check(username: Username, key: string): Promise<{
|
|
705
|
+
owned: boolean;
|
|
706
|
+
}>;
|
|
707
|
+
rename(id: string, name: string): Promise<any>;
|
|
708
|
+
update(id: string, key: string, data: string): Promise<any>;
|
|
709
|
+
revoke(id: string, user: Username): Promise<any>;
|
|
710
|
+
delete(id: string): Promise<any>;
|
|
711
|
+
addUser(id: string, user: Username): Promise<any>;
|
|
712
|
+
removeUser(id: string, user: Username): Promise<any>;
|
|
713
|
+
buy(id: string): Promise<any>;
|
|
714
|
+
cancel(id: string): Promise<any>;
|
|
715
|
+
}
|
|
716
|
+
declare class ItemsNamespace extends Namespace {
|
|
717
|
+
create(item: {
|
|
718
|
+
name: string;
|
|
719
|
+
description?: string;
|
|
720
|
+
price?: number;
|
|
721
|
+
selling?: boolean;
|
|
722
|
+
data?: any;
|
|
723
|
+
}): Promise<NetItem>;
|
|
724
|
+
get(name: string): Promise<NetItem>;
|
|
725
|
+
list(username: Username): Promise<NetItem[]>;
|
|
726
|
+
selling(limit?: number): Promise<NetItem[]>;
|
|
727
|
+
buy(name: string): Promise<any>;
|
|
728
|
+
transfer(name: string, username: Username): Promise<any>;
|
|
729
|
+
sell(name: string): Promise<any>;
|
|
730
|
+
stopSelling(name: string): Promise<any>;
|
|
731
|
+
setPrice(name: string, price: number): Promise<any>;
|
|
732
|
+
update(name: string, data: Record<string, any>): Promise<NetItem>;
|
|
733
|
+
delete(name: string): Promise<any>;
|
|
734
|
+
}
|
|
735
|
+
declare class GiftsNamespace extends Namespace {
|
|
736
|
+
create(amount: number, options?: {
|
|
737
|
+
note?: string;
|
|
738
|
+
expiresInHrs?: number;
|
|
739
|
+
}): Promise<any>;
|
|
740
|
+
get(code: string): Promise<{
|
|
741
|
+
gift: GiftPublic;
|
|
742
|
+
}>;
|
|
743
|
+
claim(code: string): Promise<any>;
|
|
744
|
+
cancel(id: string): Promise<any>;
|
|
745
|
+
mine(): Promise<{
|
|
746
|
+
gifts: GiftNet[];
|
|
747
|
+
count: number;
|
|
748
|
+
}>;
|
|
749
|
+
}
|
|
750
|
+
declare class TokensNamespace extends Namespace {
|
|
751
|
+
permissions(): Promise<{
|
|
752
|
+
permissions: TokenPermission[];
|
|
753
|
+
groups: PermissionGroup[];
|
|
754
|
+
}>;
|
|
755
|
+
list(): Promise<{
|
|
756
|
+
tokens: SubTokenPublic[];
|
|
757
|
+
total: number;
|
|
758
|
+
}>;
|
|
759
|
+
active(): Promise<{
|
|
760
|
+
tokens: SubTokenPublic[];
|
|
761
|
+
total: number;
|
|
762
|
+
}>;
|
|
763
|
+
create(name: string, permissions: TokenPermission[], options?: {
|
|
764
|
+
expiresInHrs?: number;
|
|
765
|
+
origin?: string;
|
|
766
|
+
description?: string;
|
|
767
|
+
websites?: string[];
|
|
768
|
+
}): Promise<SubTokenCreate>;
|
|
769
|
+
get(id: string): Promise<SubTokenPublic>;
|
|
770
|
+
activity(id: string): Promise<any>;
|
|
771
|
+
update(id: string, options: {
|
|
772
|
+
name?: string;
|
|
773
|
+
permissions?: TokenPermission[];
|
|
774
|
+
description?: string;
|
|
775
|
+
websites?: string[];
|
|
776
|
+
}): Promise<SubTokenPublic>;
|
|
777
|
+
rename(id: string, name: string): Promise<any>;
|
|
778
|
+
revoke(id: string): Promise<any>;
|
|
779
|
+
delete(id: string): Promise<any>;
|
|
780
|
+
}
|
|
781
|
+
declare class GroupsNamespace extends Namespace {
|
|
782
|
+
mine(): Promise<GroupPublic[]>;
|
|
783
|
+
search(query: string): Promise<GroupPublic[]>;
|
|
784
|
+
create(tag: string, name: string, options?: {
|
|
785
|
+
description?: string;
|
|
786
|
+
iconUrl?: string;
|
|
787
|
+
bannerUrl?: string;
|
|
788
|
+
public?: boolean;
|
|
789
|
+
joinPolicy?: JoinPolicy;
|
|
790
|
+
}): Promise<GroupPublic>;
|
|
791
|
+
get(grouptag: string): Promise<GroupPublic>;
|
|
792
|
+
update(grouptag: string, updates: Record<string, any>): Promise<GroupPublic>;
|
|
793
|
+
delete(grouptag: string): Promise<any>;
|
|
794
|
+
join(grouptag: string): Promise<GroupPublic>;
|
|
795
|
+
leave(grouptag: string): Promise<any>;
|
|
796
|
+
represent(grouptag: string): Promise<any>;
|
|
797
|
+
disrepresent(grouptag: string): Promise<any>;
|
|
798
|
+
report(grouptag: string): Promise<any>;
|
|
799
|
+
announcements(grouptag: string): Promise<GroupAnnouncement[]>;
|
|
800
|
+
createAnnouncement(grouptag: string, title: string, body: string, options?: {
|
|
801
|
+
pingMembers?: boolean;
|
|
802
|
+
}): Promise<GroupAnnouncement>;
|
|
803
|
+
deleteAnnouncement(grouptag: string, id: string): Promise<any>;
|
|
804
|
+
muteAnnouncements(grouptag: string): Promise<any>;
|
|
805
|
+
events(grouptag: string): Promise<GroupEvent[]>;
|
|
806
|
+
createEvent(grouptag: string, event: Partial<GroupEvent>): Promise<GroupEvent>;
|
|
807
|
+
tips(grouptag: string): Promise<GroupTip[]>;
|
|
808
|
+
sendTip(grouptag: string, amount: number): Promise<any>;
|
|
809
|
+
roles(grouptag: string): Promise<GroupRole[]>;
|
|
810
|
+
createRole(grouptag: string, role: Partial<GroupRole>): Promise<GroupRole>;
|
|
811
|
+
updateRole(grouptag: string, roleId: string, updates: Partial<GroupRole>): Promise<GroupRole>;
|
|
812
|
+
deleteRole(grouptag: string, roleId: string): Promise<any>;
|
|
813
|
+
userRoles(grouptag: string, userId: UserId): Promise<GroupRole[]>;
|
|
814
|
+
userPermissions(grouptag: string, userId: UserId): Promise<string[]>;
|
|
815
|
+
userBenefits(grouptag: string, userId: UserId): Promise<string[]>;
|
|
816
|
+
assignRole(grouptag: string, userId: UserId, roleId: string): Promise<any>;
|
|
817
|
+
removeRole(grouptag: string, userId: UserId, roleId: string): Promise<any>;
|
|
818
|
+
}
|
|
819
|
+
declare class SystemsNamespace extends Namespace {
|
|
820
|
+
list(): Promise<Record<string, System>>;
|
|
821
|
+
users(system: string): Promise<Username[]>;
|
|
822
|
+
update(system: string, key: string, value: any): Promise<any>;
|
|
823
|
+
reload(): Promise<any>;
|
|
824
|
+
}
|
|
825
|
+
declare class StatsNamespace extends Namespace {
|
|
826
|
+
economy(): Promise<EconomyStats>;
|
|
827
|
+
users(): Promise<UserStats>;
|
|
828
|
+
mostGained(max?: number): Promise<Array<{
|
|
829
|
+
user: Username;
|
|
830
|
+
earned: number;
|
|
831
|
+
}>>;
|
|
832
|
+
systems(): Promise<Record<string, number>>;
|
|
833
|
+
followers(max?: number): Promise<Array<{
|
|
834
|
+
username: Username;
|
|
835
|
+
follower_count: number;
|
|
836
|
+
}>>;
|
|
837
|
+
}
|
|
838
|
+
declare class StatusNamespace extends Namespace {
|
|
839
|
+
get(username: Username): Promise<UserStatusResponse>;
|
|
840
|
+
}
|
|
841
|
+
declare class ValidatorsNamespace extends Namespace {
|
|
842
|
+
generate(key: string): Promise<ValidatorGenerateResult>;
|
|
843
|
+
validate(validator: string, key: string): Promise<ValidatorResult>;
|
|
844
|
+
}
|
|
845
|
+
declare class LinkNamespace extends Namespace {
|
|
846
|
+
getCode(): Promise<{
|
|
847
|
+
code: string;
|
|
848
|
+
}>;
|
|
849
|
+
status(code: string): Promise<{
|
|
850
|
+
status: string;
|
|
851
|
+
}>;
|
|
852
|
+
linkedUser(code: string): Promise<{
|
|
853
|
+
linked: boolean;
|
|
854
|
+
token?: string;
|
|
855
|
+
}>;
|
|
856
|
+
linkCode(code: string): Promise<string>;
|
|
857
|
+
pollUntilLinked(code: string, intervalMs?: number, timeoutMs?: number): Promise<string>;
|
|
858
|
+
}
|
|
859
|
+
declare class CosmeticsNamespace extends Namespace {
|
|
860
|
+
shop(options?: {
|
|
861
|
+
type?: string;
|
|
862
|
+
featured?: boolean;
|
|
863
|
+
search?: string;
|
|
864
|
+
sort?: "newest" | "price_low" | "price_high" | "popular";
|
|
865
|
+
limit?: number;
|
|
866
|
+
offset?: number;
|
|
867
|
+
}): Promise<ShopResponse>;
|
|
868
|
+
get(id: string): Promise<CosmeticCatalogEntryPublic>;
|
|
869
|
+
mine(): Promise<MyCosmeticsResponse>;
|
|
870
|
+
purchase(id: string): Promise<CosmeticPurchaseResult>;
|
|
871
|
+
equip(id: string): Promise<{
|
|
872
|
+
message: string;
|
|
873
|
+
}>;
|
|
874
|
+
unequip(type: string): Promise<{
|
|
875
|
+
message: string;
|
|
876
|
+
}>;
|
|
877
|
+
overlays(filepath: string): Promise<Response>;
|
|
878
|
+
/** Admin: List all cosmetics in catalog */
|
|
879
|
+
adminList(options?: {
|
|
880
|
+
type?: string;
|
|
881
|
+
}): Promise<{
|
|
882
|
+
cosmetics: CosmeticCatalogEntryPublic[];
|
|
883
|
+
total: number;
|
|
884
|
+
}>;
|
|
885
|
+
/** Admin: Create a cosmetic */
|
|
886
|
+
adminCreate(data: AdminCosmeticCreate): Promise<{
|
|
887
|
+
message: string;
|
|
888
|
+
cosmetic: CosmeticCatalogEntryPublic;
|
|
889
|
+
}>;
|
|
890
|
+
/** Admin: Update a cosmetic */
|
|
891
|
+
adminUpdate(id: string, data: AdminCosmeticUpdate): Promise<{
|
|
892
|
+
message: string;
|
|
893
|
+
cosmetic: CosmeticCatalogEntryPublic;
|
|
894
|
+
}>;
|
|
895
|
+
/** Admin: Delete a cosmetic */
|
|
896
|
+
adminDelete(id: string): Promise<{
|
|
897
|
+
message: string;
|
|
898
|
+
}>;
|
|
899
|
+
}
|
|
900
|
+
declare class PushNamespace extends Namespace {
|
|
901
|
+
vapidKeys(): Promise<{
|
|
902
|
+
public_key: string;
|
|
903
|
+
subject: string;
|
|
904
|
+
}>;
|
|
905
|
+
register(endpoint: string, p256dh: string, auth: string, source: string, fingerprint: string): Promise<any>;
|
|
906
|
+
check(source: string, fingerprint: string): Promise<{
|
|
907
|
+
registered: boolean;
|
|
908
|
+
device_id?: string;
|
|
909
|
+
}>;
|
|
910
|
+
endpoints(): Promise<{
|
|
911
|
+
endpoints: NotifyEndpoint[];
|
|
912
|
+
count: number;
|
|
913
|
+
}>;
|
|
914
|
+
deleteDevice(deviceId: string): Promise<any>;
|
|
915
|
+
allowedSenders(): Promise<Record<string, {
|
|
916
|
+
senders: NotifyAllowedSender[];
|
|
917
|
+
}>>;
|
|
918
|
+
allowSender(username: Username, source: string): Promise<any>;
|
|
919
|
+
removeSender(username: Username, source: string): Promise<any>;
|
|
920
|
+
log(): Promise<{
|
|
921
|
+
log: NotifyLogEntry[];
|
|
922
|
+
count: number;
|
|
923
|
+
}>;
|
|
924
|
+
send(username: Username, source: string, options?: {
|
|
925
|
+
title?: string;
|
|
926
|
+
body?: string;
|
|
927
|
+
data?: Record<string, any>;
|
|
928
|
+
}): Promise<any>;
|
|
929
|
+
sendMany(users: string[], source: string, options?: {
|
|
930
|
+
title?: string;
|
|
931
|
+
body?: string;
|
|
932
|
+
data?: Record<string, any>;
|
|
933
|
+
}): Promise<any>;
|
|
934
|
+
notifiableUsers(source: string): Promise<{
|
|
935
|
+
source: string;
|
|
936
|
+
users: Array<{
|
|
937
|
+
username: Username;
|
|
938
|
+
id: UserId;
|
|
939
|
+
}>;
|
|
940
|
+
}>;
|
|
941
|
+
}
|
|
942
|
+
declare class FilesNamespace extends Namespace {
|
|
943
|
+
index(): Promise<FileEntry[]>;
|
|
944
|
+
all(): Promise<FileEntry[]>;
|
|
945
|
+
getByUUID(uuid: string): Promise<FileEntry>;
|
|
946
|
+
getByPath(path: string): Promise<FileEntry>;
|
|
947
|
+
usage(): Promise<{
|
|
948
|
+
used: number;
|
|
949
|
+
max: number;
|
|
950
|
+
}>;
|
|
951
|
+
stats(uuids: string[]): Promise<any>;
|
|
952
|
+
byUUIDs(uuids: string[]): Promise<FileEntry[]>;
|
|
953
|
+
pathIndex(): Promise<any>;
|
|
954
|
+
upload(files: Record<string, any>): Promise<any>;
|
|
955
|
+
deleteAll(): Promise<any>;
|
|
956
|
+
}
|
|
957
|
+
declare class StandingNamespace extends Namespace {
|
|
958
|
+
get(username: Username): Promise<StandingInfo>;
|
|
959
|
+
}
|
|
960
|
+
declare class DevFundNamespace extends Namespace {
|
|
961
|
+
/** Transfer credits to escrow for a dev fund petition */
|
|
962
|
+
escrowTransfer(amount: number, petitionId: string, note?: string): Promise<EscrowTransferResult>;
|
|
963
|
+
/** Release escrow credits to a developer (admin only) */
|
|
964
|
+
escrowRelease(amount: number, toUsername: Username, petitionId: string, note?: string): Promise<EscrowReleaseResult>;
|
|
965
|
+
}
|
|
966
|
+
declare class CheckNamespace extends Namespace {
|
|
967
|
+
/** Check if a list of usernames are banned */
|
|
968
|
+
banned(usernames: Username[]): Promise<CheckBannedResponse>;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
interface AuthOptions {
|
|
972
|
+
system?: string;
|
|
973
|
+
timeout?: number;
|
|
974
|
+
signal?: AbortSignal;
|
|
975
|
+
}
|
|
976
|
+
interface AuthResult {
|
|
977
|
+
token: string;
|
|
978
|
+
}
|
|
979
|
+
declare class AuthError extends Error {
|
|
980
|
+
code: "timeout" | "aborted" | "popup_blocked" | "no_token";
|
|
981
|
+
constructor(code: "timeout" | "aborted" | "popup_blocked" | "no_token", message: string);
|
|
982
|
+
}
|
|
983
|
+
declare function performAuth(options?: AuthOptions): Promise<AuthResult>;
|
|
984
|
+
|
|
985
|
+
export { type Activity, type ActivityApplication, type ActivityMedia, type AdminCosmeticCreate, type AdminCosmeticUpdate, ApiError, AuthError, type AuthOptions, type AuthResult, type Badge, type CheckAuthResponse, type CheckBannedResponse, type CosmeticCatalogEntryPublic, type CosmeticItem, type CosmeticPurchaseResult, type EconomyStats, type EscrowReleaseResult, type EscrowTransferResult, type ExistsResponse, type FileEntry, type GiftNet, type GiftPublic, type GroupAnnouncement, type GroupEvent, type GroupPublic, type GroupRole, type GroupTip, type JoinPolicy, type KeyPublic, type KeySubscription, type KeyUserData, type LimitsResponse, type MyCosmeticsResponse, type NetItem, type NetKey, type NetPost, type NetReply, type NetTransferHistory, type NotificationEntry, type NotifyAllowedSender, type NotifyEndpoint, type NotifyLogEntry, type PermissionGroup, type Presence, type RoomMember, Rotur, RoturSocket, type ShopResponse, type StandingHistoryEntry, type StandingInfo, type StandingLevel, type SubTokenCreate, type SubTokenPublic, type System, type TokenAbilities, type TokenPermission, type Transaction, type UserId, type UserProfile, type UserStats, type UserStatusResponse, type Username, type ValidatorGenerateResult, type ValidatorResult, type WSMessage, performAuth };
|