@skravets/eapi 0.0.61 → 0.0.63

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.
@@ -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-11T01:57:02.609Z
166
+ * @example 2026-03-17T11:24:08.782Z
147
167
  */
148
168
  message_created_at: string;
149
169
  /** @example 123 */
@@ -331,6 +351,11 @@ interface components {
331
351
  variables?: {
332
352
  [key: string]: string | undefined;
333
353
  };
354
+ /**
355
+ * @description Skip per-chat 24h send cooldown (e.g. for presence chat messages)
356
+ * @example false
357
+ */
358
+ skipChatCooldown?: boolean;
334
359
  };
335
360
  IDeleteMessage: {
336
361
  /**
@@ -1057,6 +1082,11 @@ interface components {
1057
1082
  * @example 3
1058
1083
  */
1059
1084
  desiredMemberCount: number;
1085
+ /**
1086
+ * @description Account pool ID, null = shared pool
1087
+ * @example 1
1088
+ */
1089
+ poolId: null | number;
1060
1090
  /**
1061
1091
  * @description Telegram peer ID, null until resolved
1062
1092
  * @example 1234567890
@@ -1095,6 +1125,11 @@ interface components {
1095
1125
  * @example 3
1096
1126
  */
1097
1127
  desiredMemberCount: number;
1128
+ /**
1129
+ * @description Account pool ID, null = shared pool
1130
+ * @example 1
1131
+ */
1132
+ poolId?: null | number;
1098
1133
  };
1099
1134
  SyncPresenceChatsDto: {
1100
1135
  /** @description Desired list of presence chats (replaces all existing) */
@@ -1131,6 +1166,11 @@ interface components {
1131
1166
  * @example 3
1132
1167
  */
1133
1168
  desiredMemberCount: number;
1169
+ /**
1170
+ * @description Account pool ID, null = shared pool
1171
+ * @example 1
1172
+ */
1173
+ poolId?: null | number;
1134
1174
  };
1135
1175
  UpdatePresenceChatDto: {
1136
1176
  /**
@@ -1143,11 +1183,121 @@ interface components {
1143
1183
  * @example false
1144
1184
  */
1145
1185
  isEnabled?: boolean;
1186
+ /**
1187
+ * @description Account pool ID, null = shared pool
1188
+ * @example 1
1189
+ */
1190
+ poolId?: null | number;
1146
1191
  };
1147
1192
  DeletePresenceChatResponseDto: {
1148
1193
  /** @example true */
1149
1194
  deleted: boolean;
1150
1195
  };
1196
+ AccountPoolDto: {
1197
+ /** @example 1 */
1198
+ id: number;
1199
+ /** @example agent_lolz */
1200
+ name: string;
1201
+ /** @example Lolz marketplace agent accounts */
1202
+ description: null | string;
1203
+ /**
1204
+ * @description Active (non-banned, non-disabled) account count
1205
+ * @example 15
1206
+ */
1207
+ accountCount: number;
1208
+ /** @example 2026-03-17T10:00:00.000Z */
1209
+ createdAt: string;
1210
+ /** @example 2026-03-17T10:05:00.000Z */
1211
+ updatedAt: string;
1212
+ };
1213
+ ListAccountPoolsResponseDto: {
1214
+ count: number;
1215
+ pools: components["schemas"]["AccountPoolDto"][];
1216
+ };
1217
+ SyncAccountPoolItemDto: {
1218
+ /** @example agent_lolz */
1219
+ name: string;
1220
+ /** @example Lolz accounts */
1221
+ description?: null | string;
1222
+ /**
1223
+ * @description Account phones to assign
1224
+ * @example [
1225
+ * "+79001234567"
1226
+ * ]
1227
+ */
1228
+ accounts?: string[];
1229
+ /**
1230
+ * @description Telegram user IDs to assign
1231
+ * @example [
1232
+ * 123456789
1233
+ * ]
1234
+ */
1235
+ tgIds?: number[];
1236
+ };
1237
+ SyncAccountPoolsDto: {
1238
+ /** @description Desired list of account pools */
1239
+ pools: components["schemas"]["SyncAccountPoolItemDto"][];
1240
+ };
1241
+ SyncAccountPoolsResponseDto: {
1242
+ count: number;
1243
+ pools: components["schemas"]["AccountPoolDto"][];
1244
+ /**
1245
+ * @description Number of pools added
1246
+ * @example 1
1247
+ */
1248
+ added: number;
1249
+ /**
1250
+ * @description Number of pools updated
1251
+ * @example 1
1252
+ */
1253
+ updated: number;
1254
+ /**
1255
+ * @description Number of pools deleted
1256
+ * @example 0
1257
+ */
1258
+ deleted: number;
1259
+ };
1260
+ CreateAccountPoolDto: {
1261
+ /** @example agent_lolz */
1262
+ name: string;
1263
+ /** @example Lolz marketplace agent accounts */
1264
+ description?: null | string;
1265
+ };
1266
+ UpdateAccountPoolDto: {
1267
+ /** @example agent_lolz_v2 */
1268
+ name?: string;
1269
+ /** @example Updated description */
1270
+ description?: null | string;
1271
+ };
1272
+ DeleteAccountPoolResponseDto: {
1273
+ /** @example true */
1274
+ deleted: boolean;
1275
+ };
1276
+ PoolAccountsDto: {
1277
+ /**
1278
+ * @description Account phones
1279
+ * @example [
1280
+ * "+79001234567"
1281
+ * ]
1282
+ */
1283
+ phones?: string[];
1284
+ /**
1285
+ * @description Telegram user IDs
1286
+ * @example [
1287
+ * 123456789
1288
+ * ]
1289
+ */
1290
+ tgIds?: number[];
1291
+ };
1292
+ AssignAccountsResponseDto: {
1293
+ /** @example 2 */
1294
+ assigned: number;
1295
+ pool: components["schemas"]["AccountPoolDto"];
1296
+ };
1297
+ RemoveAccountsResponseDto: {
1298
+ /** @example 1 */
1299
+ removed: number;
1300
+ };
1151
1301
  };
1152
1302
  }
1153
1303
  type $defs = Record<string, never>;
@@ -2210,6 +2360,248 @@ interface operations {
2210
2360
  };
2211
2361
  };
2212
2362
  };
2363
+ "accountPools.list": {
2364
+ parameters: {
2365
+ header: {
2366
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2367
+ Authorization: string;
2368
+ };
2369
+ };
2370
+ responses: {
2371
+ /** @description List of account pools */
2372
+ 200: {
2373
+ headers: {
2374
+ [name: string]: unknown;
2375
+ };
2376
+ content: {
2377
+ "application/json": components["schemas"]["ListAccountPoolsResponseDto"];
2378
+ };
2379
+ };
2380
+ /** @description Unauthorized */
2381
+ 401: {
2382
+ headers: {
2383
+ [name: string]: unknown;
2384
+ };
2385
+ };
2386
+ };
2387
+ };
2388
+ "accountPools.sync": {
2389
+ parameters: {
2390
+ header: {
2391
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2392
+ Authorization: string;
2393
+ };
2394
+ };
2395
+ requestBody: {
2396
+ content: {
2397
+ "application/json": components["schemas"]["SyncAccountPoolsDto"];
2398
+ };
2399
+ };
2400
+ responses: {
2401
+ /** @description Sync result with added/updated/deleted counts */
2402
+ 200: {
2403
+ headers: {
2404
+ [name: string]: unknown;
2405
+ };
2406
+ content: {
2407
+ "application/json": components["schemas"]["SyncAccountPoolsResponseDto"];
2408
+ };
2409
+ };
2410
+ /** @description Unauthorized */
2411
+ 401: {
2412
+ headers: {
2413
+ [name: string]: unknown;
2414
+ };
2415
+ };
2416
+ };
2417
+ };
2418
+ "accountPools.create": {
2419
+ parameters: {
2420
+ header: {
2421
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2422
+ Authorization: string;
2423
+ };
2424
+ };
2425
+ requestBody: {
2426
+ content: {
2427
+ "application/json": components["schemas"]["CreateAccountPoolDto"];
2428
+ };
2429
+ };
2430
+ responses: {
2431
+ /** @description Account pool created */
2432
+ 201: {
2433
+ headers: {
2434
+ [name: string]: unknown;
2435
+ };
2436
+ content: {
2437
+ "application/json": components["schemas"]["AccountPoolDto"];
2438
+ };
2439
+ };
2440
+ /** @description Unauthorized */
2441
+ 401: {
2442
+ headers: {
2443
+ [name: string]: unknown;
2444
+ };
2445
+ };
2446
+ /** @description Pool name already exists */
2447
+ 409: {
2448
+ headers: {
2449
+ [name: string]: unknown;
2450
+ };
2451
+ };
2452
+ };
2453
+ };
2454
+ "accountPools.delete": {
2455
+ parameters: {
2456
+ header: {
2457
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2458
+ Authorization: string;
2459
+ };
2460
+ path: {
2461
+ id: number;
2462
+ };
2463
+ };
2464
+ responses: {
2465
+ /** @description Account pool deleted */
2466
+ 200: {
2467
+ headers: {
2468
+ [name: string]: unknown;
2469
+ };
2470
+ content: {
2471
+ "application/json": components["schemas"]["DeleteAccountPoolResponseDto"];
2472
+ };
2473
+ };
2474
+ /** @description Unauthorized */
2475
+ 401: {
2476
+ headers: {
2477
+ [name: string]: unknown;
2478
+ };
2479
+ };
2480
+ /** @description Pool not found */
2481
+ 404: {
2482
+ headers: {
2483
+ [name: string]: unknown;
2484
+ };
2485
+ };
2486
+ };
2487
+ };
2488
+ "accountPools.update": {
2489
+ parameters: {
2490
+ header: {
2491
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2492
+ Authorization: string;
2493
+ };
2494
+ path: {
2495
+ id: number;
2496
+ };
2497
+ };
2498
+ requestBody: {
2499
+ content: {
2500
+ "application/json": components["schemas"]["UpdateAccountPoolDto"];
2501
+ };
2502
+ };
2503
+ responses: {
2504
+ /** @description Account pool updated */
2505
+ 200: {
2506
+ headers: {
2507
+ [name: string]: unknown;
2508
+ };
2509
+ content: {
2510
+ "application/json": components["schemas"]["AccountPoolDto"];
2511
+ };
2512
+ };
2513
+ /** @description Unauthorized */
2514
+ 401: {
2515
+ headers: {
2516
+ [name: string]: unknown;
2517
+ };
2518
+ };
2519
+ /** @description Pool not found */
2520
+ 404: {
2521
+ headers: {
2522
+ [name: string]: unknown;
2523
+ };
2524
+ };
2525
+ };
2526
+ };
2527
+ "accountPools.assignAccounts": {
2528
+ parameters: {
2529
+ header: {
2530
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2531
+ Authorization: string;
2532
+ };
2533
+ path: {
2534
+ id: number;
2535
+ };
2536
+ };
2537
+ requestBody: {
2538
+ content: {
2539
+ "application/json": components["schemas"]["PoolAccountsDto"];
2540
+ };
2541
+ };
2542
+ responses: {
2543
+ /** @description Accounts assigned to pool */
2544
+ 200: {
2545
+ headers: {
2546
+ [name: string]: unknown;
2547
+ };
2548
+ content: {
2549
+ "application/json": components["schemas"]["AssignAccountsResponseDto"];
2550
+ };
2551
+ };
2552
+ /** @description Unauthorized */
2553
+ 401: {
2554
+ headers: {
2555
+ [name: string]: unknown;
2556
+ };
2557
+ };
2558
+ /** @description Pool not found */
2559
+ 404: {
2560
+ headers: {
2561
+ [name: string]: unknown;
2562
+ };
2563
+ };
2564
+ };
2565
+ };
2566
+ "accountPools.removeAccounts": {
2567
+ parameters: {
2568
+ header: {
2569
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2570
+ Authorization: string;
2571
+ };
2572
+ path: {
2573
+ id: number;
2574
+ };
2575
+ };
2576
+ requestBody: {
2577
+ content: {
2578
+ "application/json": components["schemas"]["PoolAccountsDto"];
2579
+ };
2580
+ };
2581
+ responses: {
2582
+ /** @description Accounts removed from pool */
2583
+ 200: {
2584
+ headers: {
2585
+ [name: string]: unknown;
2586
+ };
2587
+ content: {
2588
+ "application/json": components["schemas"]["RemoveAccountsResponseDto"];
2589
+ };
2590
+ };
2591
+ /** @description Unauthorized */
2592
+ 401: {
2593
+ headers: {
2594
+ [name: string]: unknown;
2595
+ };
2596
+ };
2597
+ /** @description Pool not found */
2598
+ 404: {
2599
+ headers: {
2600
+ [name: string]: unknown;
2601
+ };
2602
+ };
2603
+ };
2604
+ };
2213
2605
  }
2214
2606
 
2215
2607
  export type { $defs, components, operations, paths };
@@ -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-11T01:57:02.609Z
166
+ * @example 2026-03-17T11:24:08.782Z
147
167
  */
148
168
  message_created_at: string;
149
169
  /** @example 123 */
@@ -331,6 +351,11 @@ interface components {
331
351
  variables?: {
332
352
  [key: string]: string | undefined;
333
353
  };
354
+ /**
355
+ * @description Skip per-chat 24h send cooldown (e.g. for presence chat messages)
356
+ * @example false
357
+ */
358
+ skipChatCooldown?: boolean;
334
359
  };
335
360
  IDeleteMessage: {
336
361
  /**
@@ -1057,6 +1082,11 @@ interface components {
1057
1082
  * @example 3
1058
1083
  */
1059
1084
  desiredMemberCount: number;
1085
+ /**
1086
+ * @description Account pool ID, null = shared pool
1087
+ * @example 1
1088
+ */
1089
+ poolId: null | number;
1060
1090
  /**
1061
1091
  * @description Telegram peer ID, null until resolved
1062
1092
  * @example 1234567890
@@ -1095,6 +1125,11 @@ interface components {
1095
1125
  * @example 3
1096
1126
  */
1097
1127
  desiredMemberCount: number;
1128
+ /**
1129
+ * @description Account pool ID, null = shared pool
1130
+ * @example 1
1131
+ */
1132
+ poolId?: null | number;
1098
1133
  };
1099
1134
  SyncPresenceChatsDto: {
1100
1135
  /** @description Desired list of presence chats (replaces all existing) */
@@ -1131,6 +1166,11 @@ interface components {
1131
1166
  * @example 3
1132
1167
  */
1133
1168
  desiredMemberCount: number;
1169
+ /**
1170
+ * @description Account pool ID, null = shared pool
1171
+ * @example 1
1172
+ */
1173
+ poolId?: null | number;
1134
1174
  };
1135
1175
  UpdatePresenceChatDto: {
1136
1176
  /**
@@ -1143,11 +1183,121 @@ interface components {
1143
1183
  * @example false
1144
1184
  */
1145
1185
  isEnabled?: boolean;
1186
+ /**
1187
+ * @description Account pool ID, null = shared pool
1188
+ * @example 1
1189
+ */
1190
+ poolId?: null | number;
1146
1191
  };
1147
1192
  DeletePresenceChatResponseDto: {
1148
1193
  /** @example true */
1149
1194
  deleted: boolean;
1150
1195
  };
1196
+ AccountPoolDto: {
1197
+ /** @example 1 */
1198
+ id: number;
1199
+ /** @example agent_lolz */
1200
+ name: string;
1201
+ /** @example Lolz marketplace agent accounts */
1202
+ description: null | string;
1203
+ /**
1204
+ * @description Active (non-banned, non-disabled) account count
1205
+ * @example 15
1206
+ */
1207
+ accountCount: number;
1208
+ /** @example 2026-03-17T10:00:00.000Z */
1209
+ createdAt: string;
1210
+ /** @example 2026-03-17T10:05:00.000Z */
1211
+ updatedAt: string;
1212
+ };
1213
+ ListAccountPoolsResponseDto: {
1214
+ count: number;
1215
+ pools: components["schemas"]["AccountPoolDto"][];
1216
+ };
1217
+ SyncAccountPoolItemDto: {
1218
+ /** @example agent_lolz */
1219
+ name: string;
1220
+ /** @example Lolz accounts */
1221
+ description?: null | string;
1222
+ /**
1223
+ * @description Account phones to assign
1224
+ * @example [
1225
+ * "+79001234567"
1226
+ * ]
1227
+ */
1228
+ accounts?: string[];
1229
+ /**
1230
+ * @description Telegram user IDs to assign
1231
+ * @example [
1232
+ * 123456789
1233
+ * ]
1234
+ */
1235
+ tgIds?: number[];
1236
+ };
1237
+ SyncAccountPoolsDto: {
1238
+ /** @description Desired list of account pools */
1239
+ pools: components["schemas"]["SyncAccountPoolItemDto"][];
1240
+ };
1241
+ SyncAccountPoolsResponseDto: {
1242
+ count: number;
1243
+ pools: components["schemas"]["AccountPoolDto"][];
1244
+ /**
1245
+ * @description Number of pools added
1246
+ * @example 1
1247
+ */
1248
+ added: number;
1249
+ /**
1250
+ * @description Number of pools updated
1251
+ * @example 1
1252
+ */
1253
+ updated: number;
1254
+ /**
1255
+ * @description Number of pools deleted
1256
+ * @example 0
1257
+ */
1258
+ deleted: number;
1259
+ };
1260
+ CreateAccountPoolDto: {
1261
+ /** @example agent_lolz */
1262
+ name: string;
1263
+ /** @example Lolz marketplace agent accounts */
1264
+ description?: null | string;
1265
+ };
1266
+ UpdateAccountPoolDto: {
1267
+ /** @example agent_lolz_v2 */
1268
+ name?: string;
1269
+ /** @example Updated description */
1270
+ description?: null | string;
1271
+ };
1272
+ DeleteAccountPoolResponseDto: {
1273
+ /** @example true */
1274
+ deleted: boolean;
1275
+ };
1276
+ PoolAccountsDto: {
1277
+ /**
1278
+ * @description Account phones
1279
+ * @example [
1280
+ * "+79001234567"
1281
+ * ]
1282
+ */
1283
+ phones?: string[];
1284
+ /**
1285
+ * @description Telegram user IDs
1286
+ * @example [
1287
+ * 123456789
1288
+ * ]
1289
+ */
1290
+ tgIds?: number[];
1291
+ };
1292
+ AssignAccountsResponseDto: {
1293
+ /** @example 2 */
1294
+ assigned: number;
1295
+ pool: components["schemas"]["AccountPoolDto"];
1296
+ };
1297
+ RemoveAccountsResponseDto: {
1298
+ /** @example 1 */
1299
+ removed: number;
1300
+ };
1151
1301
  };
1152
1302
  }
1153
1303
  type $defs = Record<string, never>;
@@ -2210,6 +2360,248 @@ interface operations {
2210
2360
  };
2211
2361
  };
2212
2362
  };
2363
+ "accountPools.list": {
2364
+ parameters: {
2365
+ header: {
2366
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2367
+ Authorization: string;
2368
+ };
2369
+ };
2370
+ responses: {
2371
+ /** @description List of account pools */
2372
+ 200: {
2373
+ headers: {
2374
+ [name: string]: unknown;
2375
+ };
2376
+ content: {
2377
+ "application/json": components["schemas"]["ListAccountPoolsResponseDto"];
2378
+ };
2379
+ };
2380
+ /** @description Unauthorized */
2381
+ 401: {
2382
+ headers: {
2383
+ [name: string]: unknown;
2384
+ };
2385
+ };
2386
+ };
2387
+ };
2388
+ "accountPools.sync": {
2389
+ parameters: {
2390
+ header: {
2391
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2392
+ Authorization: string;
2393
+ };
2394
+ };
2395
+ requestBody: {
2396
+ content: {
2397
+ "application/json": components["schemas"]["SyncAccountPoolsDto"];
2398
+ };
2399
+ };
2400
+ responses: {
2401
+ /** @description Sync result with added/updated/deleted counts */
2402
+ 200: {
2403
+ headers: {
2404
+ [name: string]: unknown;
2405
+ };
2406
+ content: {
2407
+ "application/json": components["schemas"]["SyncAccountPoolsResponseDto"];
2408
+ };
2409
+ };
2410
+ /** @description Unauthorized */
2411
+ 401: {
2412
+ headers: {
2413
+ [name: string]: unknown;
2414
+ };
2415
+ };
2416
+ };
2417
+ };
2418
+ "accountPools.create": {
2419
+ parameters: {
2420
+ header: {
2421
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2422
+ Authorization: string;
2423
+ };
2424
+ };
2425
+ requestBody: {
2426
+ content: {
2427
+ "application/json": components["schemas"]["CreateAccountPoolDto"];
2428
+ };
2429
+ };
2430
+ responses: {
2431
+ /** @description Account pool created */
2432
+ 201: {
2433
+ headers: {
2434
+ [name: string]: unknown;
2435
+ };
2436
+ content: {
2437
+ "application/json": components["schemas"]["AccountPoolDto"];
2438
+ };
2439
+ };
2440
+ /** @description Unauthorized */
2441
+ 401: {
2442
+ headers: {
2443
+ [name: string]: unknown;
2444
+ };
2445
+ };
2446
+ /** @description Pool name already exists */
2447
+ 409: {
2448
+ headers: {
2449
+ [name: string]: unknown;
2450
+ };
2451
+ };
2452
+ };
2453
+ };
2454
+ "accountPools.delete": {
2455
+ parameters: {
2456
+ header: {
2457
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2458
+ Authorization: string;
2459
+ };
2460
+ path: {
2461
+ id: number;
2462
+ };
2463
+ };
2464
+ responses: {
2465
+ /** @description Account pool deleted */
2466
+ 200: {
2467
+ headers: {
2468
+ [name: string]: unknown;
2469
+ };
2470
+ content: {
2471
+ "application/json": components["schemas"]["DeleteAccountPoolResponseDto"];
2472
+ };
2473
+ };
2474
+ /** @description Unauthorized */
2475
+ 401: {
2476
+ headers: {
2477
+ [name: string]: unknown;
2478
+ };
2479
+ };
2480
+ /** @description Pool not found */
2481
+ 404: {
2482
+ headers: {
2483
+ [name: string]: unknown;
2484
+ };
2485
+ };
2486
+ };
2487
+ };
2488
+ "accountPools.update": {
2489
+ parameters: {
2490
+ header: {
2491
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2492
+ Authorization: string;
2493
+ };
2494
+ path: {
2495
+ id: number;
2496
+ };
2497
+ };
2498
+ requestBody: {
2499
+ content: {
2500
+ "application/json": components["schemas"]["UpdateAccountPoolDto"];
2501
+ };
2502
+ };
2503
+ responses: {
2504
+ /** @description Account pool updated */
2505
+ 200: {
2506
+ headers: {
2507
+ [name: string]: unknown;
2508
+ };
2509
+ content: {
2510
+ "application/json": components["schemas"]["AccountPoolDto"];
2511
+ };
2512
+ };
2513
+ /** @description Unauthorized */
2514
+ 401: {
2515
+ headers: {
2516
+ [name: string]: unknown;
2517
+ };
2518
+ };
2519
+ /** @description Pool not found */
2520
+ 404: {
2521
+ headers: {
2522
+ [name: string]: unknown;
2523
+ };
2524
+ };
2525
+ };
2526
+ };
2527
+ "accountPools.assignAccounts": {
2528
+ parameters: {
2529
+ header: {
2530
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2531
+ Authorization: string;
2532
+ };
2533
+ path: {
2534
+ id: number;
2535
+ };
2536
+ };
2537
+ requestBody: {
2538
+ content: {
2539
+ "application/json": components["schemas"]["PoolAccountsDto"];
2540
+ };
2541
+ };
2542
+ responses: {
2543
+ /** @description Accounts assigned to pool */
2544
+ 200: {
2545
+ headers: {
2546
+ [name: string]: unknown;
2547
+ };
2548
+ content: {
2549
+ "application/json": components["schemas"]["AssignAccountsResponseDto"];
2550
+ };
2551
+ };
2552
+ /** @description Unauthorized */
2553
+ 401: {
2554
+ headers: {
2555
+ [name: string]: unknown;
2556
+ };
2557
+ };
2558
+ /** @description Pool not found */
2559
+ 404: {
2560
+ headers: {
2561
+ [name: string]: unknown;
2562
+ };
2563
+ };
2564
+ };
2565
+ };
2566
+ "accountPools.removeAccounts": {
2567
+ parameters: {
2568
+ header: {
2569
+ /** @description `Basic token`, where token is `id:secret` base64 encoded */
2570
+ Authorization: string;
2571
+ };
2572
+ path: {
2573
+ id: number;
2574
+ };
2575
+ };
2576
+ requestBody: {
2577
+ content: {
2578
+ "application/json": components["schemas"]["PoolAccountsDto"];
2579
+ };
2580
+ };
2581
+ responses: {
2582
+ /** @description Accounts removed from pool */
2583
+ 200: {
2584
+ headers: {
2585
+ [name: string]: unknown;
2586
+ };
2587
+ content: {
2588
+ "application/json": components["schemas"]["RemoveAccountsResponseDto"];
2589
+ };
2590
+ };
2591
+ /** @description Unauthorized */
2592
+ 401: {
2593
+ headers: {
2594
+ [name: string]: unknown;
2595
+ };
2596
+ };
2597
+ /** @description Pool not found */
2598
+ 404: {
2599
+ headers: {
2600
+ [name: string]: unknown;
2601
+ };
2602
+ };
2603
+ };
2604
+ };
2213
2605
  }
2214
2606
 
2215
2607
  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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",