@ibiliaze/global-vars 1.136.0 → 1.138.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.
@@ -1,5 +1,5 @@
1
1
  type MethodKey = 'get' | 'post' | 'put' | 'delete';
2
- export type ApiRoute<R200 = unknown, R201 = unknown, R302 = unknown, R400 = unknown, R401 = unknown, R403 = unknown, R404 = unknown, R500 = unknown> = {
2
+ export type ApiRoute<R200 = unknown, R201 = unknown, R302 = unknown, R400 = unknown, R401 = unknown, R403 = unknown, R404 = unknown, R409 = unknown, R500 = unknown> = {
3
3
  method: MethodKey;
4
4
  path: string;
5
5
  role: string;
@@ -11,6 +11,7 @@ export type ApiRoute<R200 = unknown, R201 = unknown, R302 = unknown, R400 = unkn
11
11
  response_401?: R401;
12
12
  response_403?: R403;
13
13
  response_404?: R404;
14
+ response_409?: R409;
14
15
  response_500?: R500;
15
16
  };
16
17
  type ApiGroups = Record<string, ApiRoute[]>;
@@ -125,131 +126,387 @@ export declare const apis: <TId, TDate>() => readonly [{
125
126
  readonly path: "/admin";
126
127
  readonly role: "postAdminRegister";
127
128
  readonly name: "Register admin";
129
+ readonly response_201: {
130
+ message: string;
131
+ };
132
+ readonly response_400: {
133
+ message: string;
134
+ };
135
+ readonly response_500: {
136
+ message: string;
137
+ error: string;
138
+ };
128
139
  }, {
129
140
  readonly method: "post";
130
141
  readonly path: "/admin/token";
131
142
  readonly role: "postAdminToken";
132
143
  readonly name: "Login admin";
144
+ readonly response_200: {
145
+ admin: any;
146
+ message: string;
147
+ };
148
+ readonly response_401: {
149
+ message: string;
150
+ error: string;
151
+ };
133
152
  }, {
134
153
  readonly method: "post";
135
154
  readonly path: "/admin/google/backup";
136
155
  readonly role: "postAdminGoogleBackup";
137
156
  readonly name: "Google backup";
157
+ readonly response_200: {
158
+ message: string;
159
+ };
160
+ readonly response_400: {
161
+ message: string;
162
+ };
163
+ readonly response_500: {
164
+ message: string;
165
+ error: string;
166
+ };
138
167
  }, {
139
168
  readonly method: "post";
140
169
  readonly path: "/admin/google/backup/restore";
141
170
  readonly role: "postAdminGoogleBackupRestore";
142
171
  readonly name: "Restore Google backup";
172
+ readonly response_200: {
173
+ message: string;
174
+ };
175
+ readonly response_400: {
176
+ message: string;
177
+ };
178
+ readonly response_500: {
179
+ message: string;
180
+ error: string;
181
+ };
143
182
  }, {
144
183
  readonly method: "post";
145
184
  readonly path: "/admin/logout";
146
185
  readonly role: "postAdminLogout";
147
186
  readonly name: "Logout admin";
187
+ readonly response_200: {
188
+ admin: any;
189
+ message: string;
190
+ };
191
+ readonly response_500: {
192
+ message: string;
193
+ error: string;
194
+ };
148
195
  }, {
149
196
  readonly method: "post";
150
197
  readonly path: "/admin/logout/all";
151
198
  readonly role: "postAdminLogoutAll";
152
199
  readonly name: "Logout all sessions";
200
+ readonly response_200: {
201
+ admin: any;
202
+ message: string;
203
+ };
204
+ readonly response_500: {
205
+ message: string;
206
+ error: string;
207
+ };
153
208
  }, {
154
209
  readonly method: "post";
155
210
  readonly path: "/admin/logout/:id";
156
211
  readonly role: "postAdminLogoutBySessionId";
157
212
  readonly name: "Logout session by ID";
213
+ readonly response_200: {
214
+ admin: any;
215
+ message: string;
216
+ };
217
+ readonly response_500: {
218
+ message: string;
219
+ error: string;
220
+ };
158
221
  }, {
159
222
  readonly method: "get";
160
223
  readonly path: "/admin";
161
224
  readonly role: "getAdmin";
162
225
  readonly name: "Get admin";
226
+ readonly response_200: {
227
+ admin: any;
228
+ };
229
+ readonly response_500: {
230
+ message: string;
231
+ error: string;
232
+ };
163
233
  }, {
164
234
  readonly method: "get";
165
235
  readonly path: "/admin/exists/:email";
166
236
  readonly role: "getAdminExistsByEmail";
167
237
  readonly name: "Check admin exists by email";
238
+ readonly response_200: Record<string, never>;
239
+ readonly response_409: {
240
+ message: string;
241
+ };
242
+ readonly response_500: {
243
+ message: string;
244
+ error: string;
245
+ };
168
246
  }, {
169
247
  readonly method: "get";
170
248
  readonly path: "/admin/public";
171
249
  readonly role: "getAdminPublic";
172
250
  readonly name: "Get public admin";
251
+ readonly response_200: {
252
+ admin: Partial<any>;
253
+ };
254
+ readonly response_400: {
255
+ message: string;
256
+ };
257
+ readonly response_404: {
258
+ message: string;
259
+ };
260
+ readonly response_500: {
261
+ message: string;
262
+ error: string;
263
+ };
173
264
  }, {
174
265
  readonly method: "put";
175
266
  readonly path: "/admin";
176
267
  readonly role: "putAdmin";
177
268
  readonly name: "Update admin";
269
+ readonly response_200: {
270
+ admin: any;
271
+ message: string;
272
+ };
273
+ readonly response_404: {
274
+ admin: any | null;
275
+ message: string;
276
+ };
277
+ readonly response_500: {
278
+ message: string;
279
+ error: string;
280
+ };
178
281
  }, {
179
282
  readonly method: "put";
180
283
  readonly path: "/admin/password";
181
284
  readonly role: "putAdminPassword";
182
285
  readonly name: "Update admin password";
286
+ readonly response_200: {
287
+ admin: any;
288
+ message: string;
289
+ };
290
+ readonly response_404: {
291
+ admin: any | null;
292
+ message: string;
293
+ };
294
+ readonly response_500: {
295
+ message: string;
296
+ error: string;
297
+ };
183
298
  }, {
184
299
  readonly method: "delete";
185
300
  readonly path: "/admin";
186
301
  readonly role: "deleteAdmin";
187
302
  readonly name: "Delete admin";
303
+ readonly response_200: {
304
+ admin: any;
305
+ message: string;
306
+ };
307
+ readonly response_500: {
308
+ message: string;
309
+ error: string;
310
+ };
188
311
  }, {
189
312
  readonly method: "post";
190
313
  readonly path: "/blog";
191
314
  readonly role: "postBlog";
192
315
  readonly name: "Create blog";
316
+ readonly response_201: {
317
+ blog: any;
318
+ message: string;
319
+ };
320
+ readonly response_500: {
321
+ message: string;
322
+ error: string;
323
+ };
193
324
  }, {
194
325
  readonly method: "get";
195
326
  readonly path: "/blog";
196
327
  readonly role: "getBlogs";
197
328
  readonly name: "Get blogs";
329
+ readonly response_200: {
330
+ blogs: any[];
331
+ count: number;
332
+ };
333
+ readonly response_500: {
334
+ message: string;
335
+ error: string;
336
+ };
198
337
  }, {
199
338
  readonly method: "get";
200
339
  readonly path: "/blog/:id";
201
340
  readonly role: "getBlogById";
202
341
  readonly name: "Get blog";
342
+ readonly response_200: {
343
+ blog: any | null;
344
+ message: string;
345
+ };
346
+ readonly response_404: {
347
+ message: string;
348
+ error: string;
349
+ };
203
350
  }, {
204
351
  readonly method: "put";
205
352
  readonly path: "/blog/:id";
206
353
  readonly role: "putBlogById";
207
354
  readonly name: "Update blog";
355
+ readonly response_200: {
356
+ blog: any;
357
+ message: string;
358
+ };
359
+ readonly response_404: {
360
+ blog: any | null;
361
+ message: string;
362
+ };
363
+ readonly response_500: {
364
+ message: string;
365
+ error: string;
366
+ };
208
367
  }, {
209
368
  readonly method: "delete";
210
369
  readonly path: "/blog/:id";
211
370
  readonly role: "deleteBlogById";
212
371
  readonly name: "Delete blog";
372
+ readonly response_200: {
373
+ blog: any;
374
+ message: string;
375
+ };
376
+ readonly response_404: {
377
+ blog: any | null;
378
+ message: string;
379
+ };
380
+ readonly response_500: {
381
+ message: string;
382
+ error: string;
383
+ };
213
384
  }, {
214
385
  readonly method: "post";
215
386
  readonly path: "/campaign";
216
387
  readonly role: "postCampaign";
217
388
  readonly name: "Create campaign";
389
+ readonly response_201: {
390
+ campaign: any;
391
+ message: string;
392
+ };
393
+ readonly response_500: {
394
+ message: string;
395
+ error: string;
396
+ };
218
397
  }, {
219
398
  readonly method: "post";
220
399
  readonly path: "/campaign/start/:id";
221
400
  readonly role: "postCampaignStartById";
222
401
  readonly name: "Start campaign by ID";
402
+ readonly response_200: {
403
+ campaign: any;
404
+ message: string;
405
+ };
406
+ readonly response_400: {
407
+ message: string;
408
+ };
409
+ readonly response_401: {
410
+ message: string;
411
+ };
412
+ readonly response_404: {
413
+ message: string;
414
+ };
415
+ readonly response_500: {
416
+ message: string;
417
+ error: string;
418
+ };
223
419
  }, {
224
420
  readonly method: "post";
225
421
  readonly path: "/campaign/stop/:id";
226
422
  readonly role: "postCampaignStopById";
227
423
  readonly name: "Stop campaign by ID";
424
+ readonly response_200: {
425
+ campaign: any;
426
+ message: string;
427
+ };
428
+ readonly response_404: {
429
+ message: string;
430
+ };
431
+ readonly response_500: {
432
+ message: string;
433
+ error: string;
434
+ };
228
435
  }, {
229
436
  readonly method: "get";
230
437
  readonly path: "/campaign";
231
438
  readonly role: "getCampaigns";
232
439
  readonly name: "Get campaigns";
440
+ readonly response_200: {
441
+ campaigns: any[];
442
+ count: number;
443
+ };
444
+ readonly response_500: {
445
+ message: string;
446
+ error: string;
447
+ };
233
448
  }, {
234
449
  readonly method: "get";
235
450
  readonly path: "/campaign/insight/:id";
236
451
  readonly role: "getCampaignInsightById";
237
452
  readonly name: "Get campaign insight";
453
+ readonly response_200: {
454
+ stages: any[];
455
+ };
456
+ readonly response_400: {
457
+ message: string;
458
+ };
459
+ readonly response_500: {
460
+ message: string;
461
+ error?: string;
462
+ };
238
463
  }, {
239
464
  readonly method: "get";
240
465
  readonly path: "/campaign/:id";
241
466
  readonly role: "getCampaignById";
242
467
  readonly name: "Get campaign";
468
+ readonly response_200: {
469
+ campaign: any | null;
470
+ message: string;
471
+ };
472
+ readonly response_404: {
473
+ message: string;
474
+ error: string;
475
+ };
243
476
  }, {
244
477
  readonly method: "put";
245
478
  readonly path: "/campaign/:id";
246
479
  readonly role: "putCampaignById";
247
480
  readonly name: "Update campaign";
481
+ readonly response_200: {
482
+ campaign: any;
483
+ message: string;
484
+ };
485
+ readonly response_404: {
486
+ campaign: any | null;
487
+ message: string;
488
+ };
489
+ readonly response_500: {
490
+ message: string;
491
+ error: string;
492
+ };
248
493
  }, {
249
494
  readonly method: "delete";
250
495
  readonly path: "/campaign/:id";
251
496
  readonly role: "deleteCampaignById";
252
497
  readonly name: "Delete campaign";
498
+ readonly response_200: {
499
+ campaign: any;
500
+ message: string;
501
+ };
502
+ readonly response_404: {
503
+ campaign: any | null;
504
+ message: string;
505
+ };
506
+ readonly response_500: {
507
+ message: string;
508
+ error: string;
509
+ };
253
510
  }, {
254
511
  readonly method: "post";
255
512
  readonly path: "/category";
@@ -980,11 +1237,6 @@ export declare const apis: <TId, TDate>() => readonly [{
980
1237
  readonly path: "/user/:id";
981
1238
  readonly role: "deleteUserById";
982
1239
  readonly name: "Delete user by ID";
983
- }, {
984
- readonly method: "post";
985
- readonly path: "/util/ai-generate";
986
- readonly role: "postUtilAiGenerate";
987
- readonly name: "Generate with AI";
988
1240
  }, {
989
1241
  readonly method: "post";
990
1242
  readonly path: "/checkout/create-session";
@@ -1133,131 +1385,387 @@ declare const allApis: readonly [{
1133
1385
  readonly path: "/admin";
1134
1386
  readonly role: "postAdminRegister";
1135
1387
  readonly name: "Register admin";
1388
+ readonly response_201: {
1389
+ message: string;
1390
+ };
1391
+ readonly response_400: {
1392
+ message: string;
1393
+ };
1394
+ readonly response_500: {
1395
+ message: string;
1396
+ error: string;
1397
+ };
1136
1398
  }, {
1137
1399
  readonly method: "post";
1138
1400
  readonly path: "/admin/token";
1139
1401
  readonly role: "postAdminToken";
1140
1402
  readonly name: "Login admin";
1403
+ readonly response_200: {
1404
+ admin: any;
1405
+ message: string;
1406
+ };
1407
+ readonly response_401: {
1408
+ message: string;
1409
+ error: string;
1410
+ };
1141
1411
  }, {
1142
1412
  readonly method: "post";
1143
1413
  readonly path: "/admin/google/backup";
1144
1414
  readonly role: "postAdminGoogleBackup";
1145
1415
  readonly name: "Google backup";
1416
+ readonly response_200: {
1417
+ message: string;
1418
+ };
1419
+ readonly response_400: {
1420
+ message: string;
1421
+ };
1422
+ readonly response_500: {
1423
+ message: string;
1424
+ error: string;
1425
+ };
1146
1426
  }, {
1147
1427
  readonly method: "post";
1148
1428
  readonly path: "/admin/google/backup/restore";
1149
1429
  readonly role: "postAdminGoogleBackupRestore";
1150
1430
  readonly name: "Restore Google backup";
1431
+ readonly response_200: {
1432
+ message: string;
1433
+ };
1434
+ readonly response_400: {
1435
+ message: string;
1436
+ };
1437
+ readonly response_500: {
1438
+ message: string;
1439
+ error: string;
1440
+ };
1151
1441
  }, {
1152
1442
  readonly method: "post";
1153
1443
  readonly path: "/admin/logout";
1154
1444
  readonly role: "postAdminLogout";
1155
1445
  readonly name: "Logout admin";
1446
+ readonly response_200: {
1447
+ admin: any;
1448
+ message: string;
1449
+ };
1450
+ readonly response_500: {
1451
+ message: string;
1452
+ error: string;
1453
+ };
1156
1454
  }, {
1157
1455
  readonly method: "post";
1158
1456
  readonly path: "/admin/logout/all";
1159
1457
  readonly role: "postAdminLogoutAll";
1160
1458
  readonly name: "Logout all sessions";
1459
+ readonly response_200: {
1460
+ admin: any;
1461
+ message: string;
1462
+ };
1463
+ readonly response_500: {
1464
+ message: string;
1465
+ error: string;
1466
+ };
1161
1467
  }, {
1162
1468
  readonly method: "post";
1163
1469
  readonly path: "/admin/logout/:id";
1164
1470
  readonly role: "postAdminLogoutBySessionId";
1165
1471
  readonly name: "Logout session by ID";
1472
+ readonly response_200: {
1473
+ admin: any;
1474
+ message: string;
1475
+ };
1476
+ readonly response_500: {
1477
+ message: string;
1478
+ error: string;
1479
+ };
1166
1480
  }, {
1167
1481
  readonly method: "get";
1168
1482
  readonly path: "/admin";
1169
1483
  readonly role: "getAdmin";
1170
1484
  readonly name: "Get admin";
1485
+ readonly response_200: {
1486
+ admin: any;
1487
+ };
1488
+ readonly response_500: {
1489
+ message: string;
1490
+ error: string;
1491
+ };
1171
1492
  }, {
1172
1493
  readonly method: "get";
1173
1494
  readonly path: "/admin/exists/:email";
1174
1495
  readonly role: "getAdminExistsByEmail";
1175
1496
  readonly name: "Check admin exists by email";
1497
+ readonly response_200: Record<string, never>;
1498
+ readonly response_409: {
1499
+ message: string;
1500
+ };
1501
+ readonly response_500: {
1502
+ message: string;
1503
+ error: string;
1504
+ };
1176
1505
  }, {
1177
1506
  readonly method: "get";
1178
1507
  readonly path: "/admin/public";
1179
1508
  readonly role: "getAdminPublic";
1180
1509
  readonly name: "Get public admin";
1510
+ readonly response_200: {
1511
+ admin: Partial<any>;
1512
+ };
1513
+ readonly response_400: {
1514
+ message: string;
1515
+ };
1516
+ readonly response_404: {
1517
+ message: string;
1518
+ };
1519
+ readonly response_500: {
1520
+ message: string;
1521
+ error: string;
1522
+ };
1181
1523
  }, {
1182
1524
  readonly method: "put";
1183
1525
  readonly path: "/admin";
1184
1526
  readonly role: "putAdmin";
1185
1527
  readonly name: "Update admin";
1528
+ readonly response_200: {
1529
+ admin: any;
1530
+ message: string;
1531
+ };
1532
+ readonly response_404: {
1533
+ admin: any | null;
1534
+ message: string;
1535
+ };
1536
+ readonly response_500: {
1537
+ message: string;
1538
+ error: string;
1539
+ };
1186
1540
  }, {
1187
1541
  readonly method: "put";
1188
1542
  readonly path: "/admin/password";
1189
1543
  readonly role: "putAdminPassword";
1190
1544
  readonly name: "Update admin password";
1545
+ readonly response_200: {
1546
+ admin: any;
1547
+ message: string;
1548
+ };
1549
+ readonly response_404: {
1550
+ admin: any | null;
1551
+ message: string;
1552
+ };
1553
+ readonly response_500: {
1554
+ message: string;
1555
+ error: string;
1556
+ };
1191
1557
  }, {
1192
1558
  readonly method: "delete";
1193
1559
  readonly path: "/admin";
1194
1560
  readonly role: "deleteAdmin";
1195
1561
  readonly name: "Delete admin";
1562
+ readonly response_200: {
1563
+ admin: any;
1564
+ message: string;
1565
+ };
1566
+ readonly response_500: {
1567
+ message: string;
1568
+ error: string;
1569
+ };
1196
1570
  }, {
1197
1571
  readonly method: "post";
1198
1572
  readonly path: "/blog";
1199
1573
  readonly role: "postBlog";
1200
1574
  readonly name: "Create blog";
1575
+ readonly response_201: {
1576
+ blog: any;
1577
+ message: string;
1578
+ };
1579
+ readonly response_500: {
1580
+ message: string;
1581
+ error: string;
1582
+ };
1201
1583
  }, {
1202
1584
  readonly method: "get";
1203
1585
  readonly path: "/blog";
1204
1586
  readonly role: "getBlogs";
1205
1587
  readonly name: "Get blogs";
1588
+ readonly response_200: {
1589
+ blogs: any[];
1590
+ count: number;
1591
+ };
1592
+ readonly response_500: {
1593
+ message: string;
1594
+ error: string;
1595
+ };
1206
1596
  }, {
1207
1597
  readonly method: "get";
1208
1598
  readonly path: "/blog/:id";
1209
1599
  readonly role: "getBlogById";
1210
1600
  readonly name: "Get blog";
1601
+ readonly response_200: {
1602
+ blog: any | null;
1603
+ message: string;
1604
+ };
1605
+ readonly response_404: {
1606
+ message: string;
1607
+ error: string;
1608
+ };
1211
1609
  }, {
1212
1610
  readonly method: "put";
1213
1611
  readonly path: "/blog/:id";
1214
1612
  readonly role: "putBlogById";
1215
1613
  readonly name: "Update blog";
1614
+ readonly response_200: {
1615
+ blog: any;
1616
+ message: string;
1617
+ };
1618
+ readonly response_404: {
1619
+ blog: any | null;
1620
+ message: string;
1621
+ };
1622
+ readonly response_500: {
1623
+ message: string;
1624
+ error: string;
1625
+ };
1216
1626
  }, {
1217
1627
  readonly method: "delete";
1218
1628
  readonly path: "/blog/:id";
1219
1629
  readonly role: "deleteBlogById";
1220
1630
  readonly name: "Delete blog";
1631
+ readonly response_200: {
1632
+ blog: any;
1633
+ message: string;
1634
+ };
1635
+ readonly response_404: {
1636
+ blog: any | null;
1637
+ message: string;
1638
+ };
1639
+ readonly response_500: {
1640
+ message: string;
1641
+ error: string;
1642
+ };
1221
1643
  }, {
1222
1644
  readonly method: "post";
1223
1645
  readonly path: "/campaign";
1224
1646
  readonly role: "postCampaign";
1225
1647
  readonly name: "Create campaign";
1648
+ readonly response_201: {
1649
+ campaign: any;
1650
+ message: string;
1651
+ };
1652
+ readonly response_500: {
1653
+ message: string;
1654
+ error: string;
1655
+ };
1226
1656
  }, {
1227
1657
  readonly method: "post";
1228
1658
  readonly path: "/campaign/start/:id";
1229
1659
  readonly role: "postCampaignStartById";
1230
1660
  readonly name: "Start campaign by ID";
1661
+ readonly response_200: {
1662
+ campaign: any;
1663
+ message: string;
1664
+ };
1665
+ readonly response_400: {
1666
+ message: string;
1667
+ };
1668
+ readonly response_401: {
1669
+ message: string;
1670
+ };
1671
+ readonly response_404: {
1672
+ message: string;
1673
+ };
1674
+ readonly response_500: {
1675
+ message: string;
1676
+ error: string;
1677
+ };
1231
1678
  }, {
1232
1679
  readonly method: "post";
1233
1680
  readonly path: "/campaign/stop/:id";
1234
1681
  readonly role: "postCampaignStopById";
1235
1682
  readonly name: "Stop campaign by ID";
1683
+ readonly response_200: {
1684
+ campaign: any;
1685
+ message: string;
1686
+ };
1687
+ readonly response_404: {
1688
+ message: string;
1689
+ };
1690
+ readonly response_500: {
1691
+ message: string;
1692
+ error: string;
1693
+ };
1236
1694
  }, {
1237
1695
  readonly method: "get";
1238
1696
  readonly path: "/campaign";
1239
1697
  readonly role: "getCampaigns";
1240
1698
  readonly name: "Get campaigns";
1699
+ readonly response_200: {
1700
+ campaigns: any[];
1701
+ count: number;
1702
+ };
1703
+ readonly response_500: {
1704
+ message: string;
1705
+ error: string;
1706
+ };
1241
1707
  }, {
1242
1708
  readonly method: "get";
1243
1709
  readonly path: "/campaign/insight/:id";
1244
1710
  readonly role: "getCampaignInsightById";
1245
1711
  readonly name: "Get campaign insight";
1712
+ readonly response_200: {
1713
+ stages: any[];
1714
+ };
1715
+ readonly response_400: {
1716
+ message: string;
1717
+ };
1718
+ readonly response_500: {
1719
+ message: string;
1720
+ error?: string;
1721
+ };
1246
1722
  }, {
1247
1723
  readonly method: "get";
1248
1724
  readonly path: "/campaign/:id";
1249
1725
  readonly role: "getCampaignById";
1250
1726
  readonly name: "Get campaign";
1727
+ readonly response_200: {
1728
+ campaign: any | null;
1729
+ message: string;
1730
+ };
1731
+ readonly response_404: {
1732
+ message: string;
1733
+ error: string;
1734
+ };
1251
1735
  }, {
1252
1736
  readonly method: "put";
1253
1737
  readonly path: "/campaign/:id";
1254
1738
  readonly role: "putCampaignById";
1255
1739
  readonly name: "Update campaign";
1740
+ readonly response_200: {
1741
+ campaign: any;
1742
+ message: string;
1743
+ };
1744
+ readonly response_404: {
1745
+ campaign: any | null;
1746
+ message: string;
1747
+ };
1748
+ readonly response_500: {
1749
+ message: string;
1750
+ error: string;
1751
+ };
1256
1752
  }, {
1257
1753
  readonly method: "delete";
1258
1754
  readonly path: "/campaign/:id";
1259
1755
  readonly role: "deleteCampaignById";
1260
1756
  readonly name: "Delete campaign";
1757
+ readonly response_200: {
1758
+ campaign: any;
1759
+ message: string;
1760
+ };
1761
+ readonly response_404: {
1762
+ campaign: any | null;
1763
+ message: string;
1764
+ };
1765
+ readonly response_500: {
1766
+ message: string;
1767
+ error: string;
1768
+ };
1261
1769
  }, {
1262
1770
  readonly method: "post";
1263
1771
  readonly path: "/category";
@@ -1988,11 +2496,6 @@ declare const allApis: readonly [{
1988
2496
  readonly path: "/user/:id";
1989
2497
  readonly role: "deleteUserById";
1990
2498
  readonly name: "Delete user by ID";
1991
- }, {
1992
- readonly method: "post";
1993
- readonly path: "/util/ai-generate";
1994
- readonly role: "postUtilAiGenerate";
1995
- readonly name: "Generate with AI";
1996
2499
  }, {
1997
2500
  readonly method: "post";
1998
2501
  readonly path: "/checkout/create-session";