@skravets/eapi 0.0.62 → 0.0.64
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/api-types.d.cts +393 -1
- package/dist/api-types.d.ts +393 -1
- package/dist/index.cjs +103 -0
- package/dist/index.d.cts +68 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +103 -0
- package/package.json +1 -1
package/dist/api-types.d.cts
CHANGED
|
@@ -131,6 +131,26 @@ interface paths {
|
|
|
131
131
|
/** Update presence chat settings */
|
|
132
132
|
patch: operations["presenceChats.update"];
|
|
133
133
|
};
|
|
134
|
+
"/account-pools": {
|
|
135
|
+
/** List account pools with active account counts */
|
|
136
|
+
get: operations["accountPools.list"];
|
|
137
|
+
/** Declarative sync — replace all account pools */
|
|
138
|
+
put: operations["accountPools.sync"];
|
|
139
|
+
/** Create an account pool */
|
|
140
|
+
post: operations["accountPools.create"];
|
|
141
|
+
};
|
|
142
|
+
"/account-pools/{id}": {
|
|
143
|
+
/** Delete an account pool */
|
|
144
|
+
delete: operations["accountPools.delete"];
|
|
145
|
+
/** Update account pool */
|
|
146
|
+
patch: operations["accountPools.update"];
|
|
147
|
+
};
|
|
148
|
+
"/account-pools/{id}/accounts": {
|
|
149
|
+
/** Assign accounts to a pool */
|
|
150
|
+
put: operations["accountPools.assignAccounts"];
|
|
151
|
+
/** Remove accounts from a pool */
|
|
152
|
+
delete: operations["accountPools.removeAccounts"];
|
|
153
|
+
};
|
|
134
154
|
}
|
|
135
155
|
/**
|
|
136
156
|
* Сгенерированные из OpenAPI типы для `components`
|
|
@@ -143,7 +163,7 @@ interface components {
|
|
|
143
163
|
channel_id: number;
|
|
144
164
|
/**
|
|
145
165
|
* Format: date-time
|
|
146
|
-
* @example 2026-03-
|
|
166
|
+
* @example 2026-03-17T13:14:53.313Z
|
|
147
167
|
*/
|
|
148
168
|
message_created_at: string;
|
|
149
169
|
/** @example 123 */
|
|
@@ -336,6 +356,11 @@ interface components {
|
|
|
336
356
|
* @example false
|
|
337
357
|
*/
|
|
338
358
|
skipChatCooldown?: boolean;
|
|
359
|
+
/**
|
|
360
|
+
* @description Account pool ID. Only accounts from this pool can execute the task.
|
|
361
|
+
* @example 1
|
|
362
|
+
*/
|
|
363
|
+
poolId?: number;
|
|
339
364
|
};
|
|
340
365
|
IDeleteMessage: {
|
|
341
366
|
/**
|
|
@@ -1062,6 +1087,11 @@ interface components {
|
|
|
1062
1087
|
* @example 3
|
|
1063
1088
|
*/
|
|
1064
1089
|
desiredMemberCount: number;
|
|
1090
|
+
/**
|
|
1091
|
+
* @description Account pool ID, null = shared pool
|
|
1092
|
+
* @example 1
|
|
1093
|
+
*/
|
|
1094
|
+
poolId: null | number;
|
|
1065
1095
|
/**
|
|
1066
1096
|
* @description Telegram peer ID, null until resolved
|
|
1067
1097
|
* @example 1234567890
|
|
@@ -1100,6 +1130,11 @@ interface components {
|
|
|
1100
1130
|
* @example 3
|
|
1101
1131
|
*/
|
|
1102
1132
|
desiredMemberCount: number;
|
|
1133
|
+
/**
|
|
1134
|
+
* @description Account pool ID, null = shared pool
|
|
1135
|
+
* @example 1
|
|
1136
|
+
*/
|
|
1137
|
+
poolId?: null | number;
|
|
1103
1138
|
};
|
|
1104
1139
|
SyncPresenceChatsDto: {
|
|
1105
1140
|
/** @description Desired list of presence chats (replaces all existing) */
|
|
@@ -1136,6 +1171,11 @@ interface components {
|
|
|
1136
1171
|
* @example 3
|
|
1137
1172
|
*/
|
|
1138
1173
|
desiredMemberCount: number;
|
|
1174
|
+
/**
|
|
1175
|
+
* @description Account pool ID, null = shared pool
|
|
1176
|
+
* @example 1
|
|
1177
|
+
*/
|
|
1178
|
+
poolId?: null | number;
|
|
1139
1179
|
};
|
|
1140
1180
|
UpdatePresenceChatDto: {
|
|
1141
1181
|
/**
|
|
@@ -1148,11 +1188,121 @@ interface components {
|
|
|
1148
1188
|
* @example false
|
|
1149
1189
|
*/
|
|
1150
1190
|
isEnabled?: boolean;
|
|
1191
|
+
/**
|
|
1192
|
+
* @description Account pool ID, null = shared pool
|
|
1193
|
+
* @example 1
|
|
1194
|
+
*/
|
|
1195
|
+
poolId?: null | number;
|
|
1151
1196
|
};
|
|
1152
1197
|
DeletePresenceChatResponseDto: {
|
|
1153
1198
|
/** @example true */
|
|
1154
1199
|
deleted: boolean;
|
|
1155
1200
|
};
|
|
1201
|
+
AccountPoolDto: {
|
|
1202
|
+
/** @example 1 */
|
|
1203
|
+
id: number;
|
|
1204
|
+
/** @example agent_lolz */
|
|
1205
|
+
name: string;
|
|
1206
|
+
/** @example Lolz marketplace agent accounts */
|
|
1207
|
+
description: null | string;
|
|
1208
|
+
/**
|
|
1209
|
+
* @description Active (non-banned, non-disabled) account count
|
|
1210
|
+
* @example 15
|
|
1211
|
+
*/
|
|
1212
|
+
accountCount: number;
|
|
1213
|
+
/** @example 2026-03-17T10:00:00.000Z */
|
|
1214
|
+
createdAt: string;
|
|
1215
|
+
/** @example 2026-03-17T10:05:00.000Z */
|
|
1216
|
+
updatedAt: string;
|
|
1217
|
+
};
|
|
1218
|
+
ListAccountPoolsResponseDto: {
|
|
1219
|
+
count: number;
|
|
1220
|
+
pools: components["schemas"]["AccountPoolDto"][];
|
|
1221
|
+
};
|
|
1222
|
+
SyncAccountPoolItemDto: {
|
|
1223
|
+
/** @example agent_lolz */
|
|
1224
|
+
name: string;
|
|
1225
|
+
/** @example Lolz accounts */
|
|
1226
|
+
description?: null | string;
|
|
1227
|
+
/**
|
|
1228
|
+
* @description Account phones to assign
|
|
1229
|
+
* @example [
|
|
1230
|
+
* "+79001234567"
|
|
1231
|
+
* ]
|
|
1232
|
+
*/
|
|
1233
|
+
accounts?: string[];
|
|
1234
|
+
/**
|
|
1235
|
+
* @description Telegram user IDs to assign
|
|
1236
|
+
* @example [
|
|
1237
|
+
* 123456789
|
|
1238
|
+
* ]
|
|
1239
|
+
*/
|
|
1240
|
+
tgIds?: number[];
|
|
1241
|
+
};
|
|
1242
|
+
SyncAccountPoolsDto: {
|
|
1243
|
+
/** @description Desired list of account pools */
|
|
1244
|
+
pools: components["schemas"]["SyncAccountPoolItemDto"][];
|
|
1245
|
+
};
|
|
1246
|
+
SyncAccountPoolsResponseDto: {
|
|
1247
|
+
count: number;
|
|
1248
|
+
pools: components["schemas"]["AccountPoolDto"][];
|
|
1249
|
+
/**
|
|
1250
|
+
* @description Number of pools added
|
|
1251
|
+
* @example 1
|
|
1252
|
+
*/
|
|
1253
|
+
added: number;
|
|
1254
|
+
/**
|
|
1255
|
+
* @description Number of pools updated
|
|
1256
|
+
* @example 1
|
|
1257
|
+
*/
|
|
1258
|
+
updated: number;
|
|
1259
|
+
/**
|
|
1260
|
+
* @description Number of pools deleted
|
|
1261
|
+
* @example 0
|
|
1262
|
+
*/
|
|
1263
|
+
deleted: number;
|
|
1264
|
+
};
|
|
1265
|
+
CreateAccountPoolDto: {
|
|
1266
|
+
/** @example agent_lolz */
|
|
1267
|
+
name: string;
|
|
1268
|
+
/** @example Lolz marketplace agent accounts */
|
|
1269
|
+
description?: null | string;
|
|
1270
|
+
};
|
|
1271
|
+
UpdateAccountPoolDto: {
|
|
1272
|
+
/** @example agent_lolz_v2 */
|
|
1273
|
+
name?: string;
|
|
1274
|
+
/** @example Updated description */
|
|
1275
|
+
description?: null | string;
|
|
1276
|
+
};
|
|
1277
|
+
DeleteAccountPoolResponseDto: {
|
|
1278
|
+
/** @example true */
|
|
1279
|
+
deleted: boolean;
|
|
1280
|
+
};
|
|
1281
|
+
PoolAccountsDto: {
|
|
1282
|
+
/**
|
|
1283
|
+
* @description Account phones
|
|
1284
|
+
* @example [
|
|
1285
|
+
* "+79001234567"
|
|
1286
|
+
* ]
|
|
1287
|
+
*/
|
|
1288
|
+
phones?: string[];
|
|
1289
|
+
/**
|
|
1290
|
+
* @description Telegram user IDs
|
|
1291
|
+
* @example [
|
|
1292
|
+
* 123456789
|
|
1293
|
+
* ]
|
|
1294
|
+
*/
|
|
1295
|
+
tgIds?: number[];
|
|
1296
|
+
};
|
|
1297
|
+
AssignAccountsResponseDto: {
|
|
1298
|
+
/** @example 2 */
|
|
1299
|
+
assigned: number;
|
|
1300
|
+
pool: components["schemas"]["AccountPoolDto"];
|
|
1301
|
+
};
|
|
1302
|
+
RemoveAccountsResponseDto: {
|
|
1303
|
+
/** @example 1 */
|
|
1304
|
+
removed: number;
|
|
1305
|
+
};
|
|
1156
1306
|
};
|
|
1157
1307
|
}
|
|
1158
1308
|
type $defs = Record<string, never>;
|
|
@@ -2215,6 +2365,248 @@ interface operations {
|
|
|
2215
2365
|
};
|
|
2216
2366
|
};
|
|
2217
2367
|
};
|
|
2368
|
+
"accountPools.list": {
|
|
2369
|
+
parameters: {
|
|
2370
|
+
header: {
|
|
2371
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2372
|
+
Authorization: string;
|
|
2373
|
+
};
|
|
2374
|
+
};
|
|
2375
|
+
responses: {
|
|
2376
|
+
/** @description List of account pools */
|
|
2377
|
+
200: {
|
|
2378
|
+
headers: {
|
|
2379
|
+
[name: string]: unknown;
|
|
2380
|
+
};
|
|
2381
|
+
content: {
|
|
2382
|
+
"application/json": components["schemas"]["ListAccountPoolsResponseDto"];
|
|
2383
|
+
};
|
|
2384
|
+
};
|
|
2385
|
+
/** @description Unauthorized */
|
|
2386
|
+
401: {
|
|
2387
|
+
headers: {
|
|
2388
|
+
[name: string]: unknown;
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
"accountPools.sync": {
|
|
2394
|
+
parameters: {
|
|
2395
|
+
header: {
|
|
2396
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2397
|
+
Authorization: string;
|
|
2398
|
+
};
|
|
2399
|
+
};
|
|
2400
|
+
requestBody: {
|
|
2401
|
+
content: {
|
|
2402
|
+
"application/json": components["schemas"]["SyncAccountPoolsDto"];
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2405
|
+
responses: {
|
|
2406
|
+
/** @description Sync result with added/updated/deleted counts */
|
|
2407
|
+
200: {
|
|
2408
|
+
headers: {
|
|
2409
|
+
[name: string]: unknown;
|
|
2410
|
+
};
|
|
2411
|
+
content: {
|
|
2412
|
+
"application/json": components["schemas"]["SyncAccountPoolsResponseDto"];
|
|
2413
|
+
};
|
|
2414
|
+
};
|
|
2415
|
+
/** @description Unauthorized */
|
|
2416
|
+
401: {
|
|
2417
|
+
headers: {
|
|
2418
|
+
[name: string]: unknown;
|
|
2419
|
+
};
|
|
2420
|
+
};
|
|
2421
|
+
};
|
|
2422
|
+
};
|
|
2423
|
+
"accountPools.create": {
|
|
2424
|
+
parameters: {
|
|
2425
|
+
header: {
|
|
2426
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2427
|
+
Authorization: string;
|
|
2428
|
+
};
|
|
2429
|
+
};
|
|
2430
|
+
requestBody: {
|
|
2431
|
+
content: {
|
|
2432
|
+
"application/json": components["schemas"]["CreateAccountPoolDto"];
|
|
2433
|
+
};
|
|
2434
|
+
};
|
|
2435
|
+
responses: {
|
|
2436
|
+
/** @description Account pool created */
|
|
2437
|
+
201: {
|
|
2438
|
+
headers: {
|
|
2439
|
+
[name: string]: unknown;
|
|
2440
|
+
};
|
|
2441
|
+
content: {
|
|
2442
|
+
"application/json": components["schemas"]["AccountPoolDto"];
|
|
2443
|
+
};
|
|
2444
|
+
};
|
|
2445
|
+
/** @description Unauthorized */
|
|
2446
|
+
401: {
|
|
2447
|
+
headers: {
|
|
2448
|
+
[name: string]: unknown;
|
|
2449
|
+
};
|
|
2450
|
+
};
|
|
2451
|
+
/** @description Pool name already exists */
|
|
2452
|
+
409: {
|
|
2453
|
+
headers: {
|
|
2454
|
+
[name: string]: unknown;
|
|
2455
|
+
};
|
|
2456
|
+
};
|
|
2457
|
+
};
|
|
2458
|
+
};
|
|
2459
|
+
"accountPools.delete": {
|
|
2460
|
+
parameters: {
|
|
2461
|
+
header: {
|
|
2462
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2463
|
+
Authorization: string;
|
|
2464
|
+
};
|
|
2465
|
+
path: {
|
|
2466
|
+
id: number;
|
|
2467
|
+
};
|
|
2468
|
+
};
|
|
2469
|
+
responses: {
|
|
2470
|
+
/** @description Account pool deleted */
|
|
2471
|
+
200: {
|
|
2472
|
+
headers: {
|
|
2473
|
+
[name: string]: unknown;
|
|
2474
|
+
};
|
|
2475
|
+
content: {
|
|
2476
|
+
"application/json": components["schemas"]["DeleteAccountPoolResponseDto"];
|
|
2477
|
+
};
|
|
2478
|
+
};
|
|
2479
|
+
/** @description Unauthorized */
|
|
2480
|
+
401: {
|
|
2481
|
+
headers: {
|
|
2482
|
+
[name: string]: unknown;
|
|
2483
|
+
};
|
|
2484
|
+
};
|
|
2485
|
+
/** @description Pool not found */
|
|
2486
|
+
404: {
|
|
2487
|
+
headers: {
|
|
2488
|
+
[name: string]: unknown;
|
|
2489
|
+
};
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
"accountPools.update": {
|
|
2494
|
+
parameters: {
|
|
2495
|
+
header: {
|
|
2496
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2497
|
+
Authorization: string;
|
|
2498
|
+
};
|
|
2499
|
+
path: {
|
|
2500
|
+
id: number;
|
|
2501
|
+
};
|
|
2502
|
+
};
|
|
2503
|
+
requestBody: {
|
|
2504
|
+
content: {
|
|
2505
|
+
"application/json": components["schemas"]["UpdateAccountPoolDto"];
|
|
2506
|
+
};
|
|
2507
|
+
};
|
|
2508
|
+
responses: {
|
|
2509
|
+
/** @description Account pool updated */
|
|
2510
|
+
200: {
|
|
2511
|
+
headers: {
|
|
2512
|
+
[name: string]: unknown;
|
|
2513
|
+
};
|
|
2514
|
+
content: {
|
|
2515
|
+
"application/json": components["schemas"]["AccountPoolDto"];
|
|
2516
|
+
};
|
|
2517
|
+
};
|
|
2518
|
+
/** @description Unauthorized */
|
|
2519
|
+
401: {
|
|
2520
|
+
headers: {
|
|
2521
|
+
[name: string]: unknown;
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
/** @description Pool not found */
|
|
2525
|
+
404: {
|
|
2526
|
+
headers: {
|
|
2527
|
+
[name: string]: unknown;
|
|
2528
|
+
};
|
|
2529
|
+
};
|
|
2530
|
+
};
|
|
2531
|
+
};
|
|
2532
|
+
"accountPools.assignAccounts": {
|
|
2533
|
+
parameters: {
|
|
2534
|
+
header: {
|
|
2535
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2536
|
+
Authorization: string;
|
|
2537
|
+
};
|
|
2538
|
+
path: {
|
|
2539
|
+
id: number;
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
requestBody: {
|
|
2543
|
+
content: {
|
|
2544
|
+
"application/json": components["schemas"]["PoolAccountsDto"];
|
|
2545
|
+
};
|
|
2546
|
+
};
|
|
2547
|
+
responses: {
|
|
2548
|
+
/** @description Accounts assigned to pool */
|
|
2549
|
+
200: {
|
|
2550
|
+
headers: {
|
|
2551
|
+
[name: string]: unknown;
|
|
2552
|
+
};
|
|
2553
|
+
content: {
|
|
2554
|
+
"application/json": components["schemas"]["AssignAccountsResponseDto"];
|
|
2555
|
+
};
|
|
2556
|
+
};
|
|
2557
|
+
/** @description Unauthorized */
|
|
2558
|
+
401: {
|
|
2559
|
+
headers: {
|
|
2560
|
+
[name: string]: unknown;
|
|
2561
|
+
};
|
|
2562
|
+
};
|
|
2563
|
+
/** @description Pool not found */
|
|
2564
|
+
404: {
|
|
2565
|
+
headers: {
|
|
2566
|
+
[name: string]: unknown;
|
|
2567
|
+
};
|
|
2568
|
+
};
|
|
2569
|
+
};
|
|
2570
|
+
};
|
|
2571
|
+
"accountPools.removeAccounts": {
|
|
2572
|
+
parameters: {
|
|
2573
|
+
header: {
|
|
2574
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2575
|
+
Authorization: string;
|
|
2576
|
+
};
|
|
2577
|
+
path: {
|
|
2578
|
+
id: number;
|
|
2579
|
+
};
|
|
2580
|
+
};
|
|
2581
|
+
requestBody: {
|
|
2582
|
+
content: {
|
|
2583
|
+
"application/json": components["schemas"]["PoolAccountsDto"];
|
|
2584
|
+
};
|
|
2585
|
+
};
|
|
2586
|
+
responses: {
|
|
2587
|
+
/** @description Accounts removed from pool */
|
|
2588
|
+
200: {
|
|
2589
|
+
headers: {
|
|
2590
|
+
[name: string]: unknown;
|
|
2591
|
+
};
|
|
2592
|
+
content: {
|
|
2593
|
+
"application/json": components["schemas"]["RemoveAccountsResponseDto"];
|
|
2594
|
+
};
|
|
2595
|
+
};
|
|
2596
|
+
/** @description Unauthorized */
|
|
2597
|
+
401: {
|
|
2598
|
+
headers: {
|
|
2599
|
+
[name: string]: unknown;
|
|
2600
|
+
};
|
|
2601
|
+
};
|
|
2602
|
+
/** @description Pool not found */
|
|
2603
|
+
404: {
|
|
2604
|
+
headers: {
|
|
2605
|
+
[name: string]: unknown;
|
|
2606
|
+
};
|
|
2607
|
+
};
|
|
2608
|
+
};
|
|
2609
|
+
};
|
|
2218
2610
|
}
|
|
2219
2611
|
|
|
2220
2612
|
export type { $defs, components, operations, paths };
|
package/dist/api-types.d.ts
CHANGED
|
@@ -131,6 +131,26 @@ interface paths {
|
|
|
131
131
|
/** Update presence chat settings */
|
|
132
132
|
patch: operations["presenceChats.update"];
|
|
133
133
|
};
|
|
134
|
+
"/account-pools": {
|
|
135
|
+
/** List account pools with active account counts */
|
|
136
|
+
get: operations["accountPools.list"];
|
|
137
|
+
/** Declarative sync — replace all account pools */
|
|
138
|
+
put: operations["accountPools.sync"];
|
|
139
|
+
/** Create an account pool */
|
|
140
|
+
post: operations["accountPools.create"];
|
|
141
|
+
};
|
|
142
|
+
"/account-pools/{id}": {
|
|
143
|
+
/** Delete an account pool */
|
|
144
|
+
delete: operations["accountPools.delete"];
|
|
145
|
+
/** Update account pool */
|
|
146
|
+
patch: operations["accountPools.update"];
|
|
147
|
+
};
|
|
148
|
+
"/account-pools/{id}/accounts": {
|
|
149
|
+
/** Assign accounts to a pool */
|
|
150
|
+
put: operations["accountPools.assignAccounts"];
|
|
151
|
+
/** Remove accounts from a pool */
|
|
152
|
+
delete: operations["accountPools.removeAccounts"];
|
|
153
|
+
};
|
|
134
154
|
}
|
|
135
155
|
/**
|
|
136
156
|
* Сгенерированные из OpenAPI типы для `components`
|
|
@@ -143,7 +163,7 @@ interface components {
|
|
|
143
163
|
channel_id: number;
|
|
144
164
|
/**
|
|
145
165
|
* Format: date-time
|
|
146
|
-
* @example 2026-03-
|
|
166
|
+
* @example 2026-03-17T13:14:53.313Z
|
|
147
167
|
*/
|
|
148
168
|
message_created_at: string;
|
|
149
169
|
/** @example 123 */
|
|
@@ -336,6 +356,11 @@ interface components {
|
|
|
336
356
|
* @example false
|
|
337
357
|
*/
|
|
338
358
|
skipChatCooldown?: boolean;
|
|
359
|
+
/**
|
|
360
|
+
* @description Account pool ID. Only accounts from this pool can execute the task.
|
|
361
|
+
* @example 1
|
|
362
|
+
*/
|
|
363
|
+
poolId?: number;
|
|
339
364
|
};
|
|
340
365
|
IDeleteMessage: {
|
|
341
366
|
/**
|
|
@@ -1062,6 +1087,11 @@ interface components {
|
|
|
1062
1087
|
* @example 3
|
|
1063
1088
|
*/
|
|
1064
1089
|
desiredMemberCount: number;
|
|
1090
|
+
/**
|
|
1091
|
+
* @description Account pool ID, null = shared pool
|
|
1092
|
+
* @example 1
|
|
1093
|
+
*/
|
|
1094
|
+
poolId: null | number;
|
|
1065
1095
|
/**
|
|
1066
1096
|
* @description Telegram peer ID, null until resolved
|
|
1067
1097
|
* @example 1234567890
|
|
@@ -1100,6 +1130,11 @@ interface components {
|
|
|
1100
1130
|
* @example 3
|
|
1101
1131
|
*/
|
|
1102
1132
|
desiredMemberCount: number;
|
|
1133
|
+
/**
|
|
1134
|
+
* @description Account pool ID, null = shared pool
|
|
1135
|
+
* @example 1
|
|
1136
|
+
*/
|
|
1137
|
+
poolId?: null | number;
|
|
1103
1138
|
};
|
|
1104
1139
|
SyncPresenceChatsDto: {
|
|
1105
1140
|
/** @description Desired list of presence chats (replaces all existing) */
|
|
@@ -1136,6 +1171,11 @@ interface components {
|
|
|
1136
1171
|
* @example 3
|
|
1137
1172
|
*/
|
|
1138
1173
|
desiredMemberCount: number;
|
|
1174
|
+
/**
|
|
1175
|
+
* @description Account pool ID, null = shared pool
|
|
1176
|
+
* @example 1
|
|
1177
|
+
*/
|
|
1178
|
+
poolId?: null | number;
|
|
1139
1179
|
};
|
|
1140
1180
|
UpdatePresenceChatDto: {
|
|
1141
1181
|
/**
|
|
@@ -1148,11 +1188,121 @@ interface components {
|
|
|
1148
1188
|
* @example false
|
|
1149
1189
|
*/
|
|
1150
1190
|
isEnabled?: boolean;
|
|
1191
|
+
/**
|
|
1192
|
+
* @description Account pool ID, null = shared pool
|
|
1193
|
+
* @example 1
|
|
1194
|
+
*/
|
|
1195
|
+
poolId?: null | number;
|
|
1151
1196
|
};
|
|
1152
1197
|
DeletePresenceChatResponseDto: {
|
|
1153
1198
|
/** @example true */
|
|
1154
1199
|
deleted: boolean;
|
|
1155
1200
|
};
|
|
1201
|
+
AccountPoolDto: {
|
|
1202
|
+
/** @example 1 */
|
|
1203
|
+
id: number;
|
|
1204
|
+
/** @example agent_lolz */
|
|
1205
|
+
name: string;
|
|
1206
|
+
/** @example Lolz marketplace agent accounts */
|
|
1207
|
+
description: null | string;
|
|
1208
|
+
/**
|
|
1209
|
+
* @description Active (non-banned, non-disabled) account count
|
|
1210
|
+
* @example 15
|
|
1211
|
+
*/
|
|
1212
|
+
accountCount: number;
|
|
1213
|
+
/** @example 2026-03-17T10:00:00.000Z */
|
|
1214
|
+
createdAt: string;
|
|
1215
|
+
/** @example 2026-03-17T10:05:00.000Z */
|
|
1216
|
+
updatedAt: string;
|
|
1217
|
+
};
|
|
1218
|
+
ListAccountPoolsResponseDto: {
|
|
1219
|
+
count: number;
|
|
1220
|
+
pools: components["schemas"]["AccountPoolDto"][];
|
|
1221
|
+
};
|
|
1222
|
+
SyncAccountPoolItemDto: {
|
|
1223
|
+
/** @example agent_lolz */
|
|
1224
|
+
name: string;
|
|
1225
|
+
/** @example Lolz accounts */
|
|
1226
|
+
description?: null | string;
|
|
1227
|
+
/**
|
|
1228
|
+
* @description Account phones to assign
|
|
1229
|
+
* @example [
|
|
1230
|
+
* "+79001234567"
|
|
1231
|
+
* ]
|
|
1232
|
+
*/
|
|
1233
|
+
accounts?: string[];
|
|
1234
|
+
/**
|
|
1235
|
+
* @description Telegram user IDs to assign
|
|
1236
|
+
* @example [
|
|
1237
|
+
* 123456789
|
|
1238
|
+
* ]
|
|
1239
|
+
*/
|
|
1240
|
+
tgIds?: number[];
|
|
1241
|
+
};
|
|
1242
|
+
SyncAccountPoolsDto: {
|
|
1243
|
+
/** @description Desired list of account pools */
|
|
1244
|
+
pools: components["schemas"]["SyncAccountPoolItemDto"][];
|
|
1245
|
+
};
|
|
1246
|
+
SyncAccountPoolsResponseDto: {
|
|
1247
|
+
count: number;
|
|
1248
|
+
pools: components["schemas"]["AccountPoolDto"][];
|
|
1249
|
+
/**
|
|
1250
|
+
* @description Number of pools added
|
|
1251
|
+
* @example 1
|
|
1252
|
+
*/
|
|
1253
|
+
added: number;
|
|
1254
|
+
/**
|
|
1255
|
+
* @description Number of pools updated
|
|
1256
|
+
* @example 1
|
|
1257
|
+
*/
|
|
1258
|
+
updated: number;
|
|
1259
|
+
/**
|
|
1260
|
+
* @description Number of pools deleted
|
|
1261
|
+
* @example 0
|
|
1262
|
+
*/
|
|
1263
|
+
deleted: number;
|
|
1264
|
+
};
|
|
1265
|
+
CreateAccountPoolDto: {
|
|
1266
|
+
/** @example agent_lolz */
|
|
1267
|
+
name: string;
|
|
1268
|
+
/** @example Lolz marketplace agent accounts */
|
|
1269
|
+
description?: null | string;
|
|
1270
|
+
};
|
|
1271
|
+
UpdateAccountPoolDto: {
|
|
1272
|
+
/** @example agent_lolz_v2 */
|
|
1273
|
+
name?: string;
|
|
1274
|
+
/** @example Updated description */
|
|
1275
|
+
description?: null | string;
|
|
1276
|
+
};
|
|
1277
|
+
DeleteAccountPoolResponseDto: {
|
|
1278
|
+
/** @example true */
|
|
1279
|
+
deleted: boolean;
|
|
1280
|
+
};
|
|
1281
|
+
PoolAccountsDto: {
|
|
1282
|
+
/**
|
|
1283
|
+
* @description Account phones
|
|
1284
|
+
* @example [
|
|
1285
|
+
* "+79001234567"
|
|
1286
|
+
* ]
|
|
1287
|
+
*/
|
|
1288
|
+
phones?: string[];
|
|
1289
|
+
/**
|
|
1290
|
+
* @description Telegram user IDs
|
|
1291
|
+
* @example [
|
|
1292
|
+
* 123456789
|
|
1293
|
+
* ]
|
|
1294
|
+
*/
|
|
1295
|
+
tgIds?: number[];
|
|
1296
|
+
};
|
|
1297
|
+
AssignAccountsResponseDto: {
|
|
1298
|
+
/** @example 2 */
|
|
1299
|
+
assigned: number;
|
|
1300
|
+
pool: components["schemas"]["AccountPoolDto"];
|
|
1301
|
+
};
|
|
1302
|
+
RemoveAccountsResponseDto: {
|
|
1303
|
+
/** @example 1 */
|
|
1304
|
+
removed: number;
|
|
1305
|
+
};
|
|
1156
1306
|
};
|
|
1157
1307
|
}
|
|
1158
1308
|
type $defs = Record<string, never>;
|
|
@@ -2215,6 +2365,248 @@ interface operations {
|
|
|
2215
2365
|
};
|
|
2216
2366
|
};
|
|
2217
2367
|
};
|
|
2368
|
+
"accountPools.list": {
|
|
2369
|
+
parameters: {
|
|
2370
|
+
header: {
|
|
2371
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2372
|
+
Authorization: string;
|
|
2373
|
+
};
|
|
2374
|
+
};
|
|
2375
|
+
responses: {
|
|
2376
|
+
/** @description List of account pools */
|
|
2377
|
+
200: {
|
|
2378
|
+
headers: {
|
|
2379
|
+
[name: string]: unknown;
|
|
2380
|
+
};
|
|
2381
|
+
content: {
|
|
2382
|
+
"application/json": components["schemas"]["ListAccountPoolsResponseDto"];
|
|
2383
|
+
};
|
|
2384
|
+
};
|
|
2385
|
+
/** @description Unauthorized */
|
|
2386
|
+
401: {
|
|
2387
|
+
headers: {
|
|
2388
|
+
[name: string]: unknown;
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
"accountPools.sync": {
|
|
2394
|
+
parameters: {
|
|
2395
|
+
header: {
|
|
2396
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2397
|
+
Authorization: string;
|
|
2398
|
+
};
|
|
2399
|
+
};
|
|
2400
|
+
requestBody: {
|
|
2401
|
+
content: {
|
|
2402
|
+
"application/json": components["schemas"]["SyncAccountPoolsDto"];
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2405
|
+
responses: {
|
|
2406
|
+
/** @description Sync result with added/updated/deleted counts */
|
|
2407
|
+
200: {
|
|
2408
|
+
headers: {
|
|
2409
|
+
[name: string]: unknown;
|
|
2410
|
+
};
|
|
2411
|
+
content: {
|
|
2412
|
+
"application/json": components["schemas"]["SyncAccountPoolsResponseDto"];
|
|
2413
|
+
};
|
|
2414
|
+
};
|
|
2415
|
+
/** @description Unauthorized */
|
|
2416
|
+
401: {
|
|
2417
|
+
headers: {
|
|
2418
|
+
[name: string]: unknown;
|
|
2419
|
+
};
|
|
2420
|
+
};
|
|
2421
|
+
};
|
|
2422
|
+
};
|
|
2423
|
+
"accountPools.create": {
|
|
2424
|
+
parameters: {
|
|
2425
|
+
header: {
|
|
2426
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2427
|
+
Authorization: string;
|
|
2428
|
+
};
|
|
2429
|
+
};
|
|
2430
|
+
requestBody: {
|
|
2431
|
+
content: {
|
|
2432
|
+
"application/json": components["schemas"]["CreateAccountPoolDto"];
|
|
2433
|
+
};
|
|
2434
|
+
};
|
|
2435
|
+
responses: {
|
|
2436
|
+
/** @description Account pool created */
|
|
2437
|
+
201: {
|
|
2438
|
+
headers: {
|
|
2439
|
+
[name: string]: unknown;
|
|
2440
|
+
};
|
|
2441
|
+
content: {
|
|
2442
|
+
"application/json": components["schemas"]["AccountPoolDto"];
|
|
2443
|
+
};
|
|
2444
|
+
};
|
|
2445
|
+
/** @description Unauthorized */
|
|
2446
|
+
401: {
|
|
2447
|
+
headers: {
|
|
2448
|
+
[name: string]: unknown;
|
|
2449
|
+
};
|
|
2450
|
+
};
|
|
2451
|
+
/** @description Pool name already exists */
|
|
2452
|
+
409: {
|
|
2453
|
+
headers: {
|
|
2454
|
+
[name: string]: unknown;
|
|
2455
|
+
};
|
|
2456
|
+
};
|
|
2457
|
+
};
|
|
2458
|
+
};
|
|
2459
|
+
"accountPools.delete": {
|
|
2460
|
+
parameters: {
|
|
2461
|
+
header: {
|
|
2462
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2463
|
+
Authorization: string;
|
|
2464
|
+
};
|
|
2465
|
+
path: {
|
|
2466
|
+
id: number;
|
|
2467
|
+
};
|
|
2468
|
+
};
|
|
2469
|
+
responses: {
|
|
2470
|
+
/** @description Account pool deleted */
|
|
2471
|
+
200: {
|
|
2472
|
+
headers: {
|
|
2473
|
+
[name: string]: unknown;
|
|
2474
|
+
};
|
|
2475
|
+
content: {
|
|
2476
|
+
"application/json": components["schemas"]["DeleteAccountPoolResponseDto"];
|
|
2477
|
+
};
|
|
2478
|
+
};
|
|
2479
|
+
/** @description Unauthorized */
|
|
2480
|
+
401: {
|
|
2481
|
+
headers: {
|
|
2482
|
+
[name: string]: unknown;
|
|
2483
|
+
};
|
|
2484
|
+
};
|
|
2485
|
+
/** @description Pool not found */
|
|
2486
|
+
404: {
|
|
2487
|
+
headers: {
|
|
2488
|
+
[name: string]: unknown;
|
|
2489
|
+
};
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
"accountPools.update": {
|
|
2494
|
+
parameters: {
|
|
2495
|
+
header: {
|
|
2496
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2497
|
+
Authorization: string;
|
|
2498
|
+
};
|
|
2499
|
+
path: {
|
|
2500
|
+
id: number;
|
|
2501
|
+
};
|
|
2502
|
+
};
|
|
2503
|
+
requestBody: {
|
|
2504
|
+
content: {
|
|
2505
|
+
"application/json": components["schemas"]["UpdateAccountPoolDto"];
|
|
2506
|
+
};
|
|
2507
|
+
};
|
|
2508
|
+
responses: {
|
|
2509
|
+
/** @description Account pool updated */
|
|
2510
|
+
200: {
|
|
2511
|
+
headers: {
|
|
2512
|
+
[name: string]: unknown;
|
|
2513
|
+
};
|
|
2514
|
+
content: {
|
|
2515
|
+
"application/json": components["schemas"]["AccountPoolDto"];
|
|
2516
|
+
};
|
|
2517
|
+
};
|
|
2518
|
+
/** @description Unauthorized */
|
|
2519
|
+
401: {
|
|
2520
|
+
headers: {
|
|
2521
|
+
[name: string]: unknown;
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
/** @description Pool not found */
|
|
2525
|
+
404: {
|
|
2526
|
+
headers: {
|
|
2527
|
+
[name: string]: unknown;
|
|
2528
|
+
};
|
|
2529
|
+
};
|
|
2530
|
+
};
|
|
2531
|
+
};
|
|
2532
|
+
"accountPools.assignAccounts": {
|
|
2533
|
+
parameters: {
|
|
2534
|
+
header: {
|
|
2535
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2536
|
+
Authorization: string;
|
|
2537
|
+
};
|
|
2538
|
+
path: {
|
|
2539
|
+
id: number;
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
requestBody: {
|
|
2543
|
+
content: {
|
|
2544
|
+
"application/json": components["schemas"]["PoolAccountsDto"];
|
|
2545
|
+
};
|
|
2546
|
+
};
|
|
2547
|
+
responses: {
|
|
2548
|
+
/** @description Accounts assigned to pool */
|
|
2549
|
+
200: {
|
|
2550
|
+
headers: {
|
|
2551
|
+
[name: string]: unknown;
|
|
2552
|
+
};
|
|
2553
|
+
content: {
|
|
2554
|
+
"application/json": components["schemas"]["AssignAccountsResponseDto"];
|
|
2555
|
+
};
|
|
2556
|
+
};
|
|
2557
|
+
/** @description Unauthorized */
|
|
2558
|
+
401: {
|
|
2559
|
+
headers: {
|
|
2560
|
+
[name: string]: unknown;
|
|
2561
|
+
};
|
|
2562
|
+
};
|
|
2563
|
+
/** @description Pool not found */
|
|
2564
|
+
404: {
|
|
2565
|
+
headers: {
|
|
2566
|
+
[name: string]: unknown;
|
|
2567
|
+
};
|
|
2568
|
+
};
|
|
2569
|
+
};
|
|
2570
|
+
};
|
|
2571
|
+
"accountPools.removeAccounts": {
|
|
2572
|
+
parameters: {
|
|
2573
|
+
header: {
|
|
2574
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
2575
|
+
Authorization: string;
|
|
2576
|
+
};
|
|
2577
|
+
path: {
|
|
2578
|
+
id: number;
|
|
2579
|
+
};
|
|
2580
|
+
};
|
|
2581
|
+
requestBody: {
|
|
2582
|
+
content: {
|
|
2583
|
+
"application/json": components["schemas"]["PoolAccountsDto"];
|
|
2584
|
+
};
|
|
2585
|
+
};
|
|
2586
|
+
responses: {
|
|
2587
|
+
/** @description Accounts removed from pool */
|
|
2588
|
+
200: {
|
|
2589
|
+
headers: {
|
|
2590
|
+
[name: string]: unknown;
|
|
2591
|
+
};
|
|
2592
|
+
content: {
|
|
2593
|
+
"application/json": components["schemas"]["RemoveAccountsResponseDto"];
|
|
2594
|
+
};
|
|
2595
|
+
};
|
|
2596
|
+
/** @description Unauthorized */
|
|
2597
|
+
401: {
|
|
2598
|
+
headers: {
|
|
2599
|
+
[name: string]: unknown;
|
|
2600
|
+
};
|
|
2601
|
+
};
|
|
2602
|
+
/** @description Pool not found */
|
|
2603
|
+
404: {
|
|
2604
|
+
headers: {
|
|
2605
|
+
[name: string]: unknown;
|
|
2606
|
+
};
|
|
2607
|
+
};
|
|
2608
|
+
};
|
|
2609
|
+
};
|
|
2218
2610
|
}
|
|
2219
2611
|
|
|
2220
2612
|
export type { $defs, components, operations, paths };
|
package/dist/index.cjs
CHANGED
|
@@ -597,6 +597,109 @@ class EApi {
|
|
|
597
597
|
});
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
|
+
/**
|
|
601
|
+
* @tags account-pools
|
|
602
|
+
*/
|
|
603
|
+
accountPools = {
|
|
604
|
+
/**
|
|
605
|
+
*
|
|
606
|
+
*
|
|
607
|
+
* @tags account-pools
|
|
608
|
+
* @summary List account pools with active account counts
|
|
609
|
+
*
|
|
610
|
+
* [Documentation](.../account-pools/operation/accountPools.list)
|
|
611
|
+
*/
|
|
612
|
+
list: (options) => {
|
|
613
|
+
return this.request("/account-pools", void 0, {
|
|
614
|
+
method: "GET",
|
|
615
|
+
...options
|
|
616
|
+
});
|
|
617
|
+
},
|
|
618
|
+
/**
|
|
619
|
+
*
|
|
620
|
+
*
|
|
621
|
+
* @tags account-pools
|
|
622
|
+
* @summary Declarative sync — replace all account pools
|
|
623
|
+
*
|
|
624
|
+
* [Documentation](.../account-pools/operation/accountPools.sync)
|
|
625
|
+
*/
|
|
626
|
+
sync: (body, options) => {
|
|
627
|
+
return this.request("/account-pools", body, {
|
|
628
|
+
method: "PUT",
|
|
629
|
+
...options
|
|
630
|
+
});
|
|
631
|
+
},
|
|
632
|
+
/**
|
|
633
|
+
*
|
|
634
|
+
*
|
|
635
|
+
* @tags account-pools
|
|
636
|
+
* @summary Create an account pool
|
|
637
|
+
*
|
|
638
|
+
* [Documentation](.../account-pools/operation/accountPools.create)
|
|
639
|
+
*/
|
|
640
|
+
create: (body, options) => {
|
|
641
|
+
return this.request("/account-pools", body, {
|
|
642
|
+
method: "POST",
|
|
643
|
+
...options
|
|
644
|
+
});
|
|
645
|
+
},
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
*
|
|
649
|
+
* @tags account-pools
|
|
650
|
+
* @summary Update account pool
|
|
651
|
+
*
|
|
652
|
+
* [Documentation](.../account-pools/operation/accountPools.update)
|
|
653
|
+
*/
|
|
654
|
+
update: (id, body, options) => {
|
|
655
|
+
return this.request(`/account-pools/${id}`, body, {
|
|
656
|
+
method: "PATCH",
|
|
657
|
+
...options
|
|
658
|
+
});
|
|
659
|
+
},
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
*
|
|
663
|
+
* @tags account-pools
|
|
664
|
+
* @summary Delete an account pool
|
|
665
|
+
*
|
|
666
|
+
* [Documentation](.../account-pools/operation/accountPools.delete)
|
|
667
|
+
*/
|
|
668
|
+
delete: (id, options) => {
|
|
669
|
+
return this.request(`/account-pools/${id}`, void 0, {
|
|
670
|
+
method: "DELETE",
|
|
671
|
+
...options
|
|
672
|
+
});
|
|
673
|
+
},
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
*
|
|
677
|
+
* @tags account-pools
|
|
678
|
+
* @summary Assign accounts to a pool
|
|
679
|
+
*
|
|
680
|
+
* [Documentation](.../account-pools/operation/accountPools.assignAccounts)
|
|
681
|
+
*/
|
|
682
|
+
assignAccounts: (id, body, options) => {
|
|
683
|
+
return this.request(`/account-pools/${id}/accounts`, body, {
|
|
684
|
+
method: "PUT",
|
|
685
|
+
...options
|
|
686
|
+
});
|
|
687
|
+
},
|
|
688
|
+
/**
|
|
689
|
+
*
|
|
690
|
+
*
|
|
691
|
+
* @tags account-pools
|
|
692
|
+
* @summary Remove accounts from a pool
|
|
693
|
+
*
|
|
694
|
+
* [Documentation](.../account-pools/operation/accountPools.removeAccounts)
|
|
695
|
+
*/
|
|
696
|
+
removeAccounts: (id, body, options) => {
|
|
697
|
+
return this.request(`/account-pools/${id}/accounts`, body, {
|
|
698
|
+
method: "DELETE",
|
|
699
|
+
...options
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
};
|
|
600
703
|
/** @generated stop-generate-methods */
|
|
601
704
|
}
|
|
602
705
|
|
package/dist/index.d.cts
CHANGED
|
@@ -782,6 +782,74 @@ declare class EApi {
|
|
|
782
782
|
*/
|
|
783
783
|
delete: (id: paths["/presence-chats/{id}"]["delete"]["parameters"]["path"]["id"], options?: RequestOptions) => Promise<GetResponse<"/presence-chats/{id}", "delete">>;
|
|
784
784
|
};
|
|
785
|
+
/**
|
|
786
|
+
* @tags account-pools
|
|
787
|
+
*/
|
|
788
|
+
accountPools: {
|
|
789
|
+
/**
|
|
790
|
+
*
|
|
791
|
+
*
|
|
792
|
+
* @tags account-pools
|
|
793
|
+
* @summary List account pools with active account counts
|
|
794
|
+
*
|
|
795
|
+
* [Documentation](.../account-pools/operation/accountPools.list)
|
|
796
|
+
*/
|
|
797
|
+
list: (options?: RequestOptions) => Promise<GetResponse<"/account-pools", "get">>;
|
|
798
|
+
/**
|
|
799
|
+
*
|
|
800
|
+
*
|
|
801
|
+
* @tags account-pools
|
|
802
|
+
* @summary Declarative sync — replace all account pools
|
|
803
|
+
*
|
|
804
|
+
* [Documentation](.../account-pools/operation/accountPools.sync)
|
|
805
|
+
*/
|
|
806
|
+
sync: (body: GetRequestBody<"/account-pools", "put">, options?: RequestOptions) => Promise<GetResponse<"/account-pools", "put">>;
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
*
|
|
810
|
+
* @tags account-pools
|
|
811
|
+
* @summary Create an account pool
|
|
812
|
+
*
|
|
813
|
+
* [Documentation](.../account-pools/operation/accountPools.create)
|
|
814
|
+
*/
|
|
815
|
+
create: (body: GetRequestBody<"/account-pools", "post">, options?: RequestOptions) => Promise<GetResponse<"/account-pools", "post">>;
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
*
|
|
819
|
+
* @tags account-pools
|
|
820
|
+
* @summary Update account pool
|
|
821
|
+
*
|
|
822
|
+
* [Documentation](.../account-pools/operation/accountPools.update)
|
|
823
|
+
*/
|
|
824
|
+
update: (id: paths["/account-pools/{id}"]["patch"]["parameters"]["path"]["id"], body: GetRequestBody<"/account-pools/{id}", "patch">, options?: RequestOptions) => Promise<GetResponse<"/account-pools/{id}", "patch">>;
|
|
825
|
+
/**
|
|
826
|
+
*
|
|
827
|
+
*
|
|
828
|
+
* @tags account-pools
|
|
829
|
+
* @summary Delete an account pool
|
|
830
|
+
*
|
|
831
|
+
* [Documentation](.../account-pools/operation/accountPools.delete)
|
|
832
|
+
*/
|
|
833
|
+
delete: (id: paths["/account-pools/{id}"]["delete"]["parameters"]["path"]["id"], options?: RequestOptions) => Promise<GetResponse<"/account-pools/{id}", "delete">>;
|
|
834
|
+
/**
|
|
835
|
+
*
|
|
836
|
+
*
|
|
837
|
+
* @tags account-pools
|
|
838
|
+
* @summary Assign accounts to a pool
|
|
839
|
+
*
|
|
840
|
+
* [Documentation](.../account-pools/operation/accountPools.assignAccounts)
|
|
841
|
+
*/
|
|
842
|
+
assignAccounts: (id: paths["/account-pools/{id}/accounts"]["put"]["parameters"]["path"]["id"], body: GetRequestBody<"/account-pools/{id}/accounts", "put">, options?: RequestOptions) => Promise<GetResponse<"/account-pools/{id}/accounts", "put">>;
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
*
|
|
846
|
+
* @tags account-pools
|
|
847
|
+
* @summary Remove accounts from a pool
|
|
848
|
+
*
|
|
849
|
+
* [Documentation](.../account-pools/operation/accountPools.removeAccounts)
|
|
850
|
+
*/
|
|
851
|
+
removeAccounts: (id: paths["/account-pools/{id}/accounts"]["delete"]["parameters"]["path"]["id"], body: GetRequestBody<"/account-pools/{id}/accounts", "delete">, options?: RequestOptions) => Promise<GetResponse<"/account-pools/{id}/accounts", "delete">>;
|
|
852
|
+
};
|
|
785
853
|
}
|
|
786
854
|
|
|
787
855
|
export { EApi, type EApiOptions, webhookHandler };
|
package/dist/index.d.ts
CHANGED
|
@@ -782,6 +782,74 @@ declare class EApi {
|
|
|
782
782
|
*/
|
|
783
783
|
delete: (id: paths["/presence-chats/{id}"]["delete"]["parameters"]["path"]["id"], options?: RequestOptions) => Promise<GetResponse<"/presence-chats/{id}", "delete">>;
|
|
784
784
|
};
|
|
785
|
+
/**
|
|
786
|
+
* @tags account-pools
|
|
787
|
+
*/
|
|
788
|
+
accountPools: {
|
|
789
|
+
/**
|
|
790
|
+
*
|
|
791
|
+
*
|
|
792
|
+
* @tags account-pools
|
|
793
|
+
* @summary List account pools with active account counts
|
|
794
|
+
*
|
|
795
|
+
* [Documentation](.../account-pools/operation/accountPools.list)
|
|
796
|
+
*/
|
|
797
|
+
list: (options?: RequestOptions) => Promise<GetResponse<"/account-pools", "get">>;
|
|
798
|
+
/**
|
|
799
|
+
*
|
|
800
|
+
*
|
|
801
|
+
* @tags account-pools
|
|
802
|
+
* @summary Declarative sync — replace all account pools
|
|
803
|
+
*
|
|
804
|
+
* [Documentation](.../account-pools/operation/accountPools.sync)
|
|
805
|
+
*/
|
|
806
|
+
sync: (body: GetRequestBody<"/account-pools", "put">, options?: RequestOptions) => Promise<GetResponse<"/account-pools", "put">>;
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
*
|
|
810
|
+
* @tags account-pools
|
|
811
|
+
* @summary Create an account pool
|
|
812
|
+
*
|
|
813
|
+
* [Documentation](.../account-pools/operation/accountPools.create)
|
|
814
|
+
*/
|
|
815
|
+
create: (body: GetRequestBody<"/account-pools", "post">, options?: RequestOptions) => Promise<GetResponse<"/account-pools", "post">>;
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
*
|
|
819
|
+
* @tags account-pools
|
|
820
|
+
* @summary Update account pool
|
|
821
|
+
*
|
|
822
|
+
* [Documentation](.../account-pools/operation/accountPools.update)
|
|
823
|
+
*/
|
|
824
|
+
update: (id: paths["/account-pools/{id}"]["patch"]["parameters"]["path"]["id"], body: GetRequestBody<"/account-pools/{id}", "patch">, options?: RequestOptions) => Promise<GetResponse<"/account-pools/{id}", "patch">>;
|
|
825
|
+
/**
|
|
826
|
+
*
|
|
827
|
+
*
|
|
828
|
+
* @tags account-pools
|
|
829
|
+
* @summary Delete an account pool
|
|
830
|
+
*
|
|
831
|
+
* [Documentation](.../account-pools/operation/accountPools.delete)
|
|
832
|
+
*/
|
|
833
|
+
delete: (id: paths["/account-pools/{id}"]["delete"]["parameters"]["path"]["id"], options?: RequestOptions) => Promise<GetResponse<"/account-pools/{id}", "delete">>;
|
|
834
|
+
/**
|
|
835
|
+
*
|
|
836
|
+
*
|
|
837
|
+
* @tags account-pools
|
|
838
|
+
* @summary Assign accounts to a pool
|
|
839
|
+
*
|
|
840
|
+
* [Documentation](.../account-pools/operation/accountPools.assignAccounts)
|
|
841
|
+
*/
|
|
842
|
+
assignAccounts: (id: paths["/account-pools/{id}/accounts"]["put"]["parameters"]["path"]["id"], body: GetRequestBody<"/account-pools/{id}/accounts", "put">, options?: RequestOptions) => Promise<GetResponse<"/account-pools/{id}/accounts", "put">>;
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
*
|
|
846
|
+
* @tags account-pools
|
|
847
|
+
* @summary Remove accounts from a pool
|
|
848
|
+
*
|
|
849
|
+
* [Documentation](.../account-pools/operation/accountPools.removeAccounts)
|
|
850
|
+
*/
|
|
851
|
+
removeAccounts: (id: paths["/account-pools/{id}/accounts"]["delete"]["parameters"]["path"]["id"], body: GetRequestBody<"/account-pools/{id}/accounts", "delete">, options?: RequestOptions) => Promise<GetResponse<"/account-pools/{id}/accounts", "delete">>;
|
|
852
|
+
};
|
|
785
853
|
}
|
|
786
854
|
|
|
787
855
|
export { EApi, type EApiOptions, webhookHandler };
|
package/dist/index.js
CHANGED
|
@@ -595,6 +595,109 @@ class EApi {
|
|
|
595
595
|
});
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
|
+
/**
|
|
599
|
+
* @tags account-pools
|
|
600
|
+
*/
|
|
601
|
+
accountPools = {
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
*
|
|
605
|
+
* @tags account-pools
|
|
606
|
+
* @summary List account pools with active account counts
|
|
607
|
+
*
|
|
608
|
+
* [Documentation](.../account-pools/operation/accountPools.list)
|
|
609
|
+
*/
|
|
610
|
+
list: (options) => {
|
|
611
|
+
return this.request("/account-pools", void 0, {
|
|
612
|
+
method: "GET",
|
|
613
|
+
...options
|
|
614
|
+
});
|
|
615
|
+
},
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
*
|
|
619
|
+
* @tags account-pools
|
|
620
|
+
* @summary Declarative sync — replace all account pools
|
|
621
|
+
*
|
|
622
|
+
* [Documentation](.../account-pools/operation/accountPools.sync)
|
|
623
|
+
*/
|
|
624
|
+
sync: (body, options) => {
|
|
625
|
+
return this.request("/account-pools", body, {
|
|
626
|
+
method: "PUT",
|
|
627
|
+
...options
|
|
628
|
+
});
|
|
629
|
+
},
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
*
|
|
633
|
+
* @tags account-pools
|
|
634
|
+
* @summary Create an account pool
|
|
635
|
+
*
|
|
636
|
+
* [Documentation](.../account-pools/operation/accountPools.create)
|
|
637
|
+
*/
|
|
638
|
+
create: (body, options) => {
|
|
639
|
+
return this.request("/account-pools", body, {
|
|
640
|
+
method: "POST",
|
|
641
|
+
...options
|
|
642
|
+
});
|
|
643
|
+
},
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
*
|
|
647
|
+
* @tags account-pools
|
|
648
|
+
* @summary Update account pool
|
|
649
|
+
*
|
|
650
|
+
* [Documentation](.../account-pools/operation/accountPools.update)
|
|
651
|
+
*/
|
|
652
|
+
update: (id, body, options) => {
|
|
653
|
+
return this.request(`/account-pools/${id}`, body, {
|
|
654
|
+
method: "PATCH",
|
|
655
|
+
...options
|
|
656
|
+
});
|
|
657
|
+
},
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
*
|
|
661
|
+
* @tags account-pools
|
|
662
|
+
* @summary Delete an account pool
|
|
663
|
+
*
|
|
664
|
+
* [Documentation](.../account-pools/operation/accountPools.delete)
|
|
665
|
+
*/
|
|
666
|
+
delete: (id, options) => {
|
|
667
|
+
return this.request(`/account-pools/${id}`, void 0, {
|
|
668
|
+
method: "DELETE",
|
|
669
|
+
...options
|
|
670
|
+
});
|
|
671
|
+
},
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
*
|
|
675
|
+
* @tags account-pools
|
|
676
|
+
* @summary Assign accounts to a pool
|
|
677
|
+
*
|
|
678
|
+
* [Documentation](.../account-pools/operation/accountPools.assignAccounts)
|
|
679
|
+
*/
|
|
680
|
+
assignAccounts: (id, body, options) => {
|
|
681
|
+
return this.request(`/account-pools/${id}/accounts`, body, {
|
|
682
|
+
method: "PUT",
|
|
683
|
+
...options
|
|
684
|
+
});
|
|
685
|
+
},
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
*
|
|
689
|
+
* @tags account-pools
|
|
690
|
+
* @summary Remove accounts from a pool
|
|
691
|
+
*
|
|
692
|
+
* [Documentation](.../account-pools/operation/accountPools.removeAccounts)
|
|
693
|
+
*/
|
|
694
|
+
removeAccounts: (id, body, options) => {
|
|
695
|
+
return this.request(`/account-pools/${id}/accounts`, body, {
|
|
696
|
+
method: "DELETE",
|
|
697
|
+
...options
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
};
|
|
598
701
|
/** @generated stop-generate-methods */
|
|
599
702
|
}
|
|
600
703
|
|