@crosspost/types 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -8,17 +8,27 @@ import * as buffer from 'buffer';
8
8
  */
9
9
 
10
10
  /**
11
- * Platform schema
12
- */
13
- declare const PlatformSchema: z.ZodEnum<["unknown", "twitter"]>;
14
- type PlatformName = z.infer<typeof PlatformSchema>;
15
- /**
16
- * Enum for supported platforms (for backward compatibility)
11
+ * Platform enum - All platforms (including planned ones)
17
12
  */
18
13
  declare enum Platform {
19
14
  UNKNOWN = "unknown",
20
15
  TWITTER = "twitter"
21
16
  }
17
+ declare const PlatformSchema: z.ZodNativeEnum<typeof Platform>;
18
+ /**
19
+ * Platform type - Derived from the Platform enum
20
+ */
21
+ type PlatformName = Platform;
22
+ /**
23
+ * Array of currently supported platforms
24
+ */
25
+ declare const SUPPORTED_PLATFORMS: readonly [Platform.TWITTER];
26
+ type SupportedPlatformName = typeof SUPPORTED_PLATFORMS[number];
27
+ declare const SupportedPlatformSchema: z.ZodEnum<[Platform.TWITTER]> | z.ZodNever;
28
+ /**
29
+ * Check if a platform is currently supported
30
+ */
31
+ declare function isPlatformSupported(platform: Platform): platform is SupportedPlatformName;
22
32
 
23
33
  /**
24
34
  * Enhanced Response Schemas and Types
@@ -1045,12 +1055,6 @@ declare class PlatformError extends Error {
1045
1055
  constructor(message: string, platform: PlatformName, code?: ApiErrorCode, recoverable?: boolean, originalError?: unknown | undefined, status?: StatusCode | undefined, userId?: string, details?: Record<string, any>);
1046
1056
  }
1047
1057
 
1048
- /**
1049
- * Auth Schemas and Types
1050
- * Defines Zod schemas for authentication-related requests and responses
1051
- * TypeScript types are derived from Zod schemas for type safety
1052
- */
1053
-
1054
1058
  declare const PlatformParamSchema: z.ZodObject<{
1055
1059
  platform: z.ZodString;
1056
1060
  }, "strip", z.ZodTypeAny, {
@@ -1073,13 +1077,13 @@ declare const AuthUrlResponseSchema: z.ZodObject<{
1073
1077
  data: z.ZodObject<{
1074
1078
  url: z.ZodString;
1075
1079
  state: z.ZodString;
1076
- platform: z.ZodEnum<["unknown", "twitter"]>;
1080
+ platform: z.ZodNativeEnum<typeof Platform>;
1077
1081
  }, "strip", z.ZodTypeAny, {
1078
- platform: "unknown" | "twitter";
1082
+ platform: Platform;
1079
1083
  url: string;
1080
1084
  state: string;
1081
1085
  }, {
1082
- platform: "unknown" | "twitter";
1086
+ platform: Platform;
1083
1087
  url: string;
1084
1088
  state: string;
1085
1089
  }>;
@@ -1156,7 +1160,7 @@ declare const AuthUrlResponseSchema: z.ZodObject<{
1156
1160
  }>>;
1157
1161
  }, "strip", z.ZodTypeAny, {
1158
1162
  data: {
1159
- platform: "unknown" | "twitter";
1163
+ platform: Platform;
1160
1164
  url: string;
1161
1165
  state: string;
1162
1166
  };
@@ -1180,7 +1184,7 @@ declare const AuthUrlResponseSchema: z.ZodObject<{
1180
1184
  } | undefined;
1181
1185
  }, {
1182
1186
  data: {
1183
- platform: "unknown" | "twitter";
1187
+ platform: Platform;
1184
1188
  url: string;
1185
1189
  state: string;
1186
1190
  };
@@ -1217,16 +1221,16 @@ declare const AuthCallbackResponseSchema: z.ZodObject<{
1217
1221
  success: z.ZodBoolean;
1218
1222
  data: z.ZodObject<{
1219
1223
  success: z.ZodBoolean;
1220
- platform: z.ZodEnum<["unknown", "twitter"]>;
1224
+ platform: z.ZodNativeEnum<typeof Platform>;
1221
1225
  userId: z.ZodString;
1222
1226
  redirectUrl: z.ZodOptional<z.ZodString>;
1223
1227
  }, "strip", z.ZodTypeAny, {
1224
- platform: "unknown" | "twitter";
1228
+ platform: Platform;
1225
1229
  userId: string;
1226
1230
  success: boolean;
1227
1231
  redirectUrl?: string | undefined;
1228
1232
  }, {
1229
- platform: "unknown" | "twitter";
1233
+ platform: Platform;
1230
1234
  userId: string;
1231
1235
  success: boolean;
1232
1236
  redirectUrl?: string | undefined;
@@ -1304,7 +1308,7 @@ declare const AuthCallbackResponseSchema: z.ZodObject<{
1304
1308
  }>>;
1305
1309
  }, "strip", z.ZodTypeAny, {
1306
1310
  data: {
1307
- platform: "unknown" | "twitter";
1311
+ platform: Platform;
1308
1312
  userId: string;
1309
1313
  success: boolean;
1310
1314
  redirectUrl?: string | undefined;
@@ -1329,7 +1333,7 @@ declare const AuthCallbackResponseSchema: z.ZodObject<{
1329
1333
  } | undefined;
1330
1334
  }, {
1331
1335
  data: {
1332
- platform: "unknown" | "twitter";
1336
+ platform: Platform;
1333
1337
  userId: string;
1334
1338
  success: boolean;
1335
1339
  redirectUrl?: string | undefined;
@@ -1356,7 +1360,7 @@ declare const AuthCallbackResponseSchema: z.ZodObject<{
1356
1360
  declare const AuthStatusResponseSchema: z.ZodObject<{
1357
1361
  success: z.ZodBoolean;
1358
1362
  data: z.ZodObject<{
1359
- platform: z.ZodEnum<["unknown", "twitter"]>;
1363
+ platform: z.ZodNativeEnum<typeof Platform>;
1360
1364
  userId: z.ZodString;
1361
1365
  authenticated: z.ZodBoolean;
1362
1366
  tokenStatus: z.ZodObject<{
@@ -1373,7 +1377,7 @@ declare const AuthStatusResponseSchema: z.ZodObject<{
1373
1377
  expiresAt?: string | undefined;
1374
1378
  }>;
1375
1379
  }, "strip", z.ZodTypeAny, {
1376
- platform: "unknown" | "twitter";
1380
+ platform: Platform;
1377
1381
  userId: string;
1378
1382
  authenticated: boolean;
1379
1383
  tokenStatus: {
@@ -1382,7 +1386,7 @@ declare const AuthStatusResponseSchema: z.ZodObject<{
1382
1386
  expiresAt?: string | undefined;
1383
1387
  };
1384
1388
  }, {
1385
- platform: "unknown" | "twitter";
1389
+ platform: Platform;
1386
1390
  userId: string;
1387
1391
  authenticated: boolean;
1388
1392
  tokenStatus: {
@@ -1464,7 +1468,7 @@ declare const AuthStatusResponseSchema: z.ZodObject<{
1464
1468
  }>>;
1465
1469
  }, "strip", z.ZodTypeAny, {
1466
1470
  data: {
1467
- platform: "unknown" | "twitter";
1471
+ platform: Platform;
1468
1472
  userId: string;
1469
1473
  authenticated: boolean;
1470
1474
  tokenStatus: {
@@ -1493,7 +1497,7 @@ declare const AuthStatusResponseSchema: z.ZodObject<{
1493
1497
  } | undefined;
1494
1498
  }, {
1495
1499
  data: {
1496
- platform: "unknown" | "twitter";
1500
+ platform: Platform;
1497
1501
  userId: string;
1498
1502
  authenticated: boolean;
1499
1503
  tokenStatus: {
@@ -1525,14 +1529,14 @@ declare const AuthRevokeResponseSchema: z.ZodObject<{
1525
1529
  success: z.ZodBoolean;
1526
1530
  data: z.ZodObject<{
1527
1531
  success: z.ZodBoolean;
1528
- platform: z.ZodEnum<["unknown", "twitter"]>;
1532
+ platform: z.ZodNativeEnum<typeof Platform>;
1529
1533
  userId: z.ZodString;
1530
1534
  }, "strip", z.ZodTypeAny, {
1531
- platform: "unknown" | "twitter";
1535
+ platform: Platform;
1532
1536
  userId: string;
1533
1537
  success: boolean;
1534
1538
  }, {
1535
- platform: "unknown" | "twitter";
1539
+ platform: Platform;
1536
1540
  userId: string;
1537
1541
  success: boolean;
1538
1542
  }>;
@@ -1609,7 +1613,7 @@ declare const AuthRevokeResponseSchema: z.ZodObject<{
1609
1613
  }>>;
1610
1614
  }, "strip", z.ZodTypeAny, {
1611
1615
  data: {
1612
- platform: "unknown" | "twitter";
1616
+ platform: Platform;
1613
1617
  userId: string;
1614
1618
  success: boolean;
1615
1619
  };
@@ -1633,7 +1637,7 @@ declare const AuthRevokeResponseSchema: z.ZodObject<{
1633
1637
  } | undefined;
1634
1638
  }, {
1635
1639
  data: {
1636
- platform: "unknown" | "twitter";
1640
+ platform: Platform;
1637
1641
  userId: string;
1638
1642
  success: boolean;
1639
1643
  };
@@ -1657,19 +1661,19 @@ declare const AuthRevokeResponseSchema: z.ZodObject<{
1657
1661
  } | undefined;
1658
1662
  }>;
1659
1663
  declare const ConnectedAccountSchema: z.ZodObject<{
1660
- platform: z.ZodEnum<["unknown", "twitter"]>;
1664
+ platform: z.ZodNativeEnum<typeof Platform>;
1661
1665
  userId: z.ZodString;
1662
1666
  username: z.ZodOptional<z.ZodString>;
1663
1667
  profileUrl: z.ZodOptional<z.ZodString>;
1664
1668
  connectedAt: z.ZodOptional<z.ZodString>;
1665
1669
  }, "strip", z.ZodTypeAny, {
1666
- platform: "unknown" | "twitter";
1670
+ platform: Platform;
1667
1671
  userId: string;
1668
1672
  username?: string | undefined;
1669
1673
  profileUrl?: string | undefined;
1670
1674
  connectedAt?: string | undefined;
1671
1675
  }, {
1672
- platform: "unknown" | "twitter";
1676
+ platform: Platform;
1673
1677
  userId: string;
1674
1678
  username?: string | undefined;
1675
1679
  profileUrl?: string | undefined;
@@ -1678,19 +1682,19 @@ declare const ConnectedAccountSchema: z.ZodObject<{
1678
1682
  declare const ConnectedAccountsResponseSchema: z.ZodObject<{
1679
1683
  success: z.ZodBoolean;
1680
1684
  data: z.ZodArray<z.ZodObject<{
1681
- platform: z.ZodEnum<["unknown", "twitter"]>;
1685
+ platform: z.ZodNativeEnum<typeof Platform>;
1682
1686
  userId: z.ZodString;
1683
1687
  username: z.ZodOptional<z.ZodString>;
1684
1688
  profileUrl: z.ZodOptional<z.ZodString>;
1685
1689
  connectedAt: z.ZodOptional<z.ZodString>;
1686
1690
  }, "strip", z.ZodTypeAny, {
1687
- platform: "unknown" | "twitter";
1691
+ platform: Platform;
1688
1692
  userId: string;
1689
1693
  username?: string | undefined;
1690
1694
  profileUrl?: string | undefined;
1691
1695
  connectedAt?: string | undefined;
1692
1696
  }, {
1693
- platform: "unknown" | "twitter";
1697
+ platform: Platform;
1694
1698
  userId: string;
1695
1699
  username?: string | undefined;
1696
1700
  profileUrl?: string | undefined;
@@ -1769,7 +1773,7 @@ declare const ConnectedAccountsResponseSchema: z.ZodObject<{
1769
1773
  }>>;
1770
1774
  }, "strip", z.ZodTypeAny, {
1771
1775
  data: {
1772
- platform: "unknown" | "twitter";
1776
+ platform: Platform;
1773
1777
  userId: string;
1774
1778
  username?: string | undefined;
1775
1779
  profileUrl?: string | undefined;
@@ -1795,7 +1799,7 @@ declare const ConnectedAccountsResponseSchema: z.ZodObject<{
1795
1799
  } | undefined;
1796
1800
  }, {
1797
1801
  data: {
1798
- platform: "unknown" | "twitter";
1802
+ platform: Platform;
1799
1803
  userId: string;
1800
1804
  username?: string | undefined;
1801
1805
  profileUrl?: string | undefined;
@@ -2333,19 +2337,19 @@ declare const LikeResultSchema: z.ZodObject<{
2333
2337
  * Success detail schema for post operations
2334
2338
  */
2335
2339
  declare const PostSuccessDetailSchema: z.ZodObject<{
2336
- platform: z.ZodEnum<["unknown", "twitter"]>;
2340
+ platform: z.ZodNativeEnum<typeof Platform>;
2337
2341
  userId: z.ZodString;
2338
2342
  status: z.ZodLiteral<"success">;
2339
2343
  postId: z.ZodOptional<z.ZodString>;
2340
2344
  postUrl: z.ZodOptional<z.ZodString>;
2341
2345
  }, "strip", z.ZodAny, z.objectOutputType<{
2342
- platform: z.ZodEnum<["unknown", "twitter"]>;
2346
+ platform: z.ZodNativeEnum<typeof Platform>;
2343
2347
  userId: z.ZodString;
2344
2348
  status: z.ZodLiteral<"success">;
2345
2349
  postId: z.ZodOptional<z.ZodString>;
2346
2350
  postUrl: z.ZodOptional<z.ZodString>;
2347
2351
  }, z.ZodAny, "strip">, z.objectInputType<{
2348
- platform: z.ZodEnum<["unknown", "twitter"]>;
2352
+ platform: z.ZodNativeEnum<typeof Platform>;
2349
2353
  userId: z.ZodString;
2350
2354
  status: z.ZodLiteral<"success">;
2351
2355
  postId: z.ZodOptional<z.ZodString>;
@@ -2358,13 +2362,13 @@ declare const PostSuccessDetailSchema: z.ZodObject<{
2358
2362
  * Target schema - common for all operations
2359
2363
  */
2360
2364
  declare const TargetSchema: z.ZodObject<{
2361
- platform: z.ZodEnum<["unknown", "twitter"]>;
2365
+ platform: z.ZodNativeEnum<typeof Platform>;
2362
2366
  userId: z.ZodString;
2363
2367
  }, "strip", z.ZodTypeAny, {
2364
- platform: "unknown" | "twitter";
2368
+ platform: Platform;
2365
2369
  userId: string;
2366
2370
  }, {
2367
- platform: "unknown" | "twitter";
2371
+ platform: Platform;
2368
2372
  userId: string;
2369
2373
  }>;
2370
2374
  /**
@@ -2372,13 +2376,13 @@ declare const TargetSchema: z.ZodObject<{
2372
2376
  */
2373
2377
  declare const CreatePostRequestSchema: z.ZodObject<{
2374
2378
  targets: z.ZodArray<z.ZodObject<{
2375
- platform: z.ZodEnum<["unknown", "twitter"]>;
2379
+ platform: z.ZodNativeEnum<typeof Platform>;
2376
2380
  userId: z.ZodString;
2377
2381
  }, "strip", z.ZodTypeAny, {
2378
- platform: "unknown" | "twitter";
2382
+ platform: Platform;
2379
2383
  userId: string;
2380
2384
  }, {
2381
- platform: "unknown" | "twitter";
2385
+ platform: Platform;
2382
2386
  userId: string;
2383
2387
  }>, "many">;
2384
2388
  content: z.ZodArray<z.ZodObject<{
@@ -2413,7 +2417,7 @@ declare const CreatePostRequestSchema: z.ZodObject<{
2413
2417
  }>, "many">;
2414
2418
  }, "strip", z.ZodTypeAny, {
2415
2419
  targets: {
2416
- platform: "unknown" | "twitter";
2420
+ platform: Platform;
2417
2421
  userId: string;
2418
2422
  }[];
2419
2423
  content: {
@@ -2426,7 +2430,7 @@ declare const CreatePostRequestSchema: z.ZodObject<{
2426
2430
  }[];
2427
2431
  }, {
2428
2432
  targets: {
2429
- platform: "unknown" | "twitter";
2433
+ platform: Platform;
2430
2434
  userId: string;
2431
2435
  }[];
2432
2436
  content: {
@@ -2443,29 +2447,29 @@ declare const CreatePostRequestSchema: z.ZodObject<{
2443
2447
  */
2444
2448
  declare const RepostRequestSchema: z.ZodObject<{
2445
2449
  targets: z.ZodArray<z.ZodObject<{
2446
- platform: z.ZodEnum<["unknown", "twitter"]>;
2450
+ platform: z.ZodNativeEnum<typeof Platform>;
2447
2451
  userId: z.ZodString;
2448
2452
  }, "strip", z.ZodTypeAny, {
2449
- platform: "unknown" | "twitter";
2453
+ platform: Platform;
2450
2454
  userId: string;
2451
2455
  }, {
2452
- platform: "unknown" | "twitter";
2456
+ platform: Platform;
2453
2457
  userId: string;
2454
2458
  }>, "many">;
2455
- platform: z.ZodEnum<["unknown", "twitter"]>;
2459
+ platform: z.ZodNativeEnum<typeof Platform>;
2456
2460
  postId: z.ZodString;
2457
2461
  }, "strip", z.ZodTypeAny, {
2458
- platform: "unknown" | "twitter";
2462
+ platform: Platform;
2459
2463
  postId: string;
2460
2464
  targets: {
2461
- platform: "unknown" | "twitter";
2465
+ platform: Platform;
2462
2466
  userId: string;
2463
2467
  }[];
2464
2468
  }, {
2465
- platform: "unknown" | "twitter";
2469
+ platform: Platform;
2466
2470
  postId: string;
2467
2471
  targets: {
2468
- platform: "unknown" | "twitter";
2472
+ platform: Platform;
2469
2473
  userId: string;
2470
2474
  }[];
2471
2475
  }>;
@@ -2474,16 +2478,16 @@ declare const RepostRequestSchema: z.ZodObject<{
2474
2478
  */
2475
2479
  declare const QuotePostRequestSchema: z.ZodObject<{
2476
2480
  targets: z.ZodArray<z.ZodObject<{
2477
- platform: z.ZodEnum<["unknown", "twitter"]>;
2481
+ platform: z.ZodNativeEnum<typeof Platform>;
2478
2482
  userId: z.ZodString;
2479
2483
  }, "strip", z.ZodTypeAny, {
2480
- platform: "unknown" | "twitter";
2484
+ platform: Platform;
2481
2485
  userId: string;
2482
2486
  }, {
2483
- platform: "unknown" | "twitter";
2487
+ platform: Platform;
2484
2488
  userId: string;
2485
2489
  }>, "many">;
2486
- platform: z.ZodEnum<["unknown", "twitter"]>;
2490
+ platform: z.ZodNativeEnum<typeof Platform>;
2487
2491
  postId: z.ZodString;
2488
2492
  content: z.ZodArray<z.ZodObject<{
2489
2493
  text: z.ZodOptional<z.ZodString>;
@@ -2516,10 +2520,10 @@ declare const QuotePostRequestSchema: z.ZodObject<{
2516
2520
  }[] | undefined;
2517
2521
  }>, "many">;
2518
2522
  }, "strip", z.ZodTypeAny, {
2519
- platform: "unknown" | "twitter";
2523
+ platform: Platform;
2520
2524
  postId: string;
2521
2525
  targets: {
2522
- platform: "unknown" | "twitter";
2526
+ platform: Platform;
2523
2527
  userId: string;
2524
2528
  }[];
2525
2529
  content: {
@@ -2531,10 +2535,10 @@ declare const QuotePostRequestSchema: z.ZodObject<{
2531
2535
  }[] | undefined;
2532
2536
  }[];
2533
2537
  }, {
2534
- platform: "unknown" | "twitter";
2538
+ platform: Platform;
2535
2539
  postId: string;
2536
2540
  targets: {
2537
- platform: "unknown" | "twitter";
2541
+ platform: Platform;
2538
2542
  userId: string;
2539
2543
  }[];
2540
2544
  content: {
@@ -2551,16 +2555,16 @@ declare const QuotePostRequestSchema: z.ZodObject<{
2551
2555
  */
2552
2556
  declare const ReplyToPostRequestSchema: z.ZodObject<{
2553
2557
  targets: z.ZodArray<z.ZodObject<{
2554
- platform: z.ZodEnum<["unknown", "twitter"]>;
2558
+ platform: z.ZodNativeEnum<typeof Platform>;
2555
2559
  userId: z.ZodString;
2556
2560
  }, "strip", z.ZodTypeAny, {
2557
- platform: "unknown" | "twitter";
2561
+ platform: Platform;
2558
2562
  userId: string;
2559
2563
  }, {
2560
- platform: "unknown" | "twitter";
2564
+ platform: Platform;
2561
2565
  userId: string;
2562
2566
  }>, "many">;
2563
- platform: z.ZodEnum<["unknown", "twitter"]>;
2567
+ platform: z.ZodNativeEnum<typeof Platform>;
2564
2568
  postId: z.ZodString;
2565
2569
  content: z.ZodArray<z.ZodObject<{
2566
2570
  text: z.ZodOptional<z.ZodString>;
@@ -2593,10 +2597,10 @@ declare const ReplyToPostRequestSchema: z.ZodObject<{
2593
2597
  }[] | undefined;
2594
2598
  }>, "many">;
2595
2599
  }, "strip", z.ZodTypeAny, {
2596
- platform: "unknown" | "twitter";
2600
+ platform: Platform;
2597
2601
  postId: string;
2598
2602
  targets: {
2599
- platform: "unknown" | "twitter";
2603
+ platform: Platform;
2600
2604
  userId: string;
2601
2605
  }[];
2602
2606
  content: {
@@ -2608,10 +2612,10 @@ declare const ReplyToPostRequestSchema: z.ZodObject<{
2608
2612
  }[] | undefined;
2609
2613
  }[];
2610
2614
  }, {
2611
- platform: "unknown" | "twitter";
2615
+ platform: Platform;
2612
2616
  postId: string;
2613
2617
  targets: {
2614
- platform: "unknown" | "twitter";
2618
+ platform: Platform;
2615
2619
  userId: string;
2616
2620
  }[];
2617
2621
  content: {
@@ -2627,15 +2631,15 @@ declare const ReplyToPostRequestSchema: z.ZodObject<{
2627
2631
  * Post to delete schema
2628
2632
  */
2629
2633
  declare const PostToDeleteSchema: z.ZodObject<{
2630
- platform: z.ZodEnum<["unknown", "twitter"]>;
2634
+ platform: z.ZodNativeEnum<typeof Platform>;
2631
2635
  userId: z.ZodString;
2632
2636
  postId: z.ZodString;
2633
2637
  }, "strip", z.ZodTypeAny, {
2634
- platform: "unknown" | "twitter";
2638
+ platform: Platform;
2635
2639
  userId: string;
2636
2640
  postId: string;
2637
2641
  }, {
2638
- platform: "unknown" | "twitter";
2642
+ platform: Platform;
2639
2643
  userId: string;
2640
2644
  postId: string;
2641
2645
  }>;
@@ -2644,45 +2648,45 @@ declare const PostToDeleteSchema: z.ZodObject<{
2644
2648
  */
2645
2649
  declare const DeletePostRequestSchema: z.ZodObject<{
2646
2650
  targets: z.ZodArray<z.ZodObject<{
2647
- platform: z.ZodEnum<["unknown", "twitter"]>;
2651
+ platform: z.ZodNativeEnum<typeof Platform>;
2648
2652
  userId: z.ZodString;
2649
2653
  }, "strip", z.ZodTypeAny, {
2650
- platform: "unknown" | "twitter";
2654
+ platform: Platform;
2651
2655
  userId: string;
2652
2656
  }, {
2653
- platform: "unknown" | "twitter";
2657
+ platform: Platform;
2654
2658
  userId: string;
2655
2659
  }>, "many">;
2656
2660
  posts: z.ZodArray<z.ZodObject<{
2657
- platform: z.ZodEnum<["unknown", "twitter"]>;
2661
+ platform: z.ZodNativeEnum<typeof Platform>;
2658
2662
  userId: z.ZodString;
2659
2663
  postId: z.ZodString;
2660
2664
  }, "strip", z.ZodTypeAny, {
2661
- platform: "unknown" | "twitter";
2665
+ platform: Platform;
2662
2666
  userId: string;
2663
2667
  postId: string;
2664
2668
  }, {
2665
- platform: "unknown" | "twitter";
2669
+ platform: Platform;
2666
2670
  userId: string;
2667
2671
  postId: string;
2668
2672
  }>, "many">;
2669
2673
  }, "strip", z.ZodTypeAny, {
2670
2674
  targets: {
2671
- platform: "unknown" | "twitter";
2675
+ platform: Platform;
2672
2676
  userId: string;
2673
2677
  }[];
2674
2678
  posts: {
2675
- platform: "unknown" | "twitter";
2679
+ platform: Platform;
2676
2680
  userId: string;
2677
2681
  postId: string;
2678
2682
  }[];
2679
2683
  }, {
2680
2684
  targets: {
2681
- platform: "unknown" | "twitter";
2685
+ platform: Platform;
2682
2686
  userId: string;
2683
2687
  }[];
2684
2688
  posts: {
2685
- platform: "unknown" | "twitter";
2689
+ platform: Platform;
2686
2690
  userId: string;
2687
2691
  postId: string;
2688
2692
  }[];
@@ -2692,29 +2696,29 @@ declare const DeletePostRequestSchema: z.ZodObject<{
2692
2696
  */
2693
2697
  declare const LikePostRequestSchema: z.ZodObject<{
2694
2698
  targets: z.ZodArray<z.ZodObject<{
2695
- platform: z.ZodEnum<["unknown", "twitter"]>;
2699
+ platform: z.ZodNativeEnum<typeof Platform>;
2696
2700
  userId: z.ZodString;
2697
2701
  }, "strip", z.ZodTypeAny, {
2698
- platform: "unknown" | "twitter";
2702
+ platform: Platform;
2699
2703
  userId: string;
2700
2704
  }, {
2701
- platform: "unknown" | "twitter";
2705
+ platform: Platform;
2702
2706
  userId: string;
2703
2707
  }>, "many">;
2704
- platform: z.ZodEnum<["unknown", "twitter"]>;
2708
+ platform: z.ZodNativeEnum<typeof Platform>;
2705
2709
  postId: z.ZodString;
2706
2710
  }, "strip", z.ZodTypeAny, {
2707
- platform: "unknown" | "twitter";
2711
+ platform: Platform;
2708
2712
  postId: string;
2709
2713
  targets: {
2710
- platform: "unknown" | "twitter";
2714
+ platform: Platform;
2711
2715
  userId: string;
2712
2716
  }[];
2713
2717
  }, {
2714
- platform: "unknown" | "twitter";
2718
+ platform: Platform;
2715
2719
  postId: string;
2716
2720
  targets: {
2717
- platform: "unknown" | "twitter";
2721
+ platform: Platform;
2718
2722
  userId: string;
2719
2723
  }[];
2720
2724
  }>;
@@ -2723,29 +2727,29 @@ declare const LikePostRequestSchema: z.ZodObject<{
2723
2727
  */
2724
2728
  declare const UnlikePostRequestSchema: z.ZodObject<{
2725
2729
  targets: z.ZodArray<z.ZodObject<{
2726
- platform: z.ZodEnum<["unknown", "twitter"]>;
2730
+ platform: z.ZodNativeEnum<typeof Platform>;
2727
2731
  userId: z.ZodString;
2728
2732
  }, "strip", z.ZodTypeAny, {
2729
- platform: "unknown" | "twitter";
2733
+ platform: Platform;
2730
2734
  userId: string;
2731
2735
  }, {
2732
- platform: "unknown" | "twitter";
2736
+ platform: Platform;
2733
2737
  userId: string;
2734
2738
  }>, "many">;
2735
- platform: z.ZodEnum<["unknown", "twitter"]>;
2739
+ platform: z.ZodNativeEnum<typeof Platform>;
2736
2740
  postId: z.ZodString;
2737
2741
  }, "strip", z.ZodTypeAny, {
2738
- platform: "unknown" | "twitter";
2742
+ platform: Platform;
2739
2743
  postId: string;
2740
2744
  targets: {
2741
- platform: "unknown" | "twitter";
2745
+ platform: Platform;
2742
2746
  userId: string;
2743
2747
  }[];
2744
2748
  }, {
2745
- platform: "unknown" | "twitter";
2749
+ platform: Platform;
2746
2750
  postId: string;
2747
2751
  targets: {
2748
- platform: "unknown" | "twitter";
2752
+ platform: Platform;
2749
2753
  userId: string;
2750
2754
  }[];
2751
2755
  }>;
@@ -4911,19 +4915,19 @@ declare const PostMultiStatusResponseSchema: z.ZodObject<{
4911
4915
  failed: number;
4912
4916
  }>;
4913
4917
  results: z.ZodArray<z.ZodObject<{
4914
- platform: z.ZodEnum<["unknown", "twitter"]>;
4918
+ platform: z.ZodNativeEnum<typeof Platform>;
4915
4919
  userId: z.ZodString;
4916
4920
  status: z.ZodLiteral<"success">;
4917
4921
  postId: z.ZodOptional<z.ZodString>;
4918
4922
  postUrl: z.ZodOptional<z.ZodString>;
4919
4923
  }, "strip", z.ZodAny, z.objectOutputType<{
4920
- platform: z.ZodEnum<["unknown", "twitter"]>;
4924
+ platform: z.ZodNativeEnum<typeof Platform>;
4921
4925
  userId: z.ZodString;
4922
4926
  status: z.ZodLiteral<"success">;
4923
4927
  postId: z.ZodOptional<z.ZodString>;
4924
4928
  postUrl: z.ZodOptional<z.ZodString>;
4925
4929
  }, z.ZodAny, "strip">, z.objectInputType<{
4926
- platform: z.ZodEnum<["unknown", "twitter"]>;
4930
+ platform: z.ZodNativeEnum<typeof Platform>;
4927
4931
  userId: z.ZodString;
4928
4932
  status: z.ZodLiteral<"success">;
4929
4933
  postId: z.ZodOptional<z.ZodString>;
@@ -4970,7 +4974,7 @@ declare const PostMultiStatusResponseSchema: z.ZodObject<{
4970
4974
  failed: number;
4971
4975
  };
4972
4976
  results: z.objectOutputType<{
4973
- platform: z.ZodEnum<["unknown", "twitter"]>;
4977
+ platform: z.ZodNativeEnum<typeof Platform>;
4974
4978
  userId: z.ZodString;
4975
4979
  status: z.ZodLiteral<"success">;
4976
4980
  postId: z.ZodOptional<z.ZodString>;
@@ -4992,7 +4996,7 @@ declare const PostMultiStatusResponseSchema: z.ZodObject<{
4992
4996
  failed: number;
4993
4997
  };
4994
4998
  results: z.objectInputType<{
4995
- platform: z.ZodEnum<["unknown", "twitter"]>;
4999
+ platform: z.ZodNativeEnum<typeof Platform>;
4996
5000
  userId: z.ZodString;
4997
5001
  status: z.ZodLiteral<"success">;
4998
5002
  postId: z.ZodOptional<z.ZodString>;
@@ -5016,7 +5020,7 @@ declare const PostMultiStatusResponseSchema: z.ZodObject<{
5016
5020
  failed: number;
5017
5021
  };
5018
5022
  results: z.objectOutputType<{
5019
- platform: z.ZodEnum<["unknown", "twitter"]>;
5023
+ platform: z.ZodNativeEnum<typeof Platform>;
5020
5024
  userId: z.ZodString;
5021
5025
  status: z.ZodLiteral<"success">;
5022
5026
  postId: z.ZodOptional<z.ZodString>;
@@ -5041,7 +5045,7 @@ declare const PostMultiStatusResponseSchema: z.ZodObject<{
5041
5045
  failed: number;
5042
5046
  };
5043
5047
  results: z.objectInputType<{
5044
- platform: z.ZodEnum<["unknown", "twitter"]>;
5048
+ platform: z.ZodNativeEnum<typeof Platform>;
5045
5049
  userId: z.ZodString;
5046
5050
  status: z.ZodLiteral<"success">;
5047
5051
  postId: z.ZodOptional<z.ZodString>;
@@ -5081,15 +5085,15 @@ type PostMultiStatusResponse = z.infer<typeof PostMultiStatusResponseSchema>;
5081
5085
  * Create post target result schema
5082
5086
  */
5083
5087
  declare const CreatePostTargetResultSchema: z.ZodObject<{
5084
- platform: z.ZodEnum<["unknown", "twitter"]>;
5088
+ platform: z.ZodNativeEnum<typeof Platform>;
5085
5089
  userId: z.ZodString;
5086
5090
  result: z.ZodArray<z.ZodAny, "many">;
5087
5091
  }, "strip", z.ZodTypeAny, {
5088
- platform: "unknown" | "twitter";
5092
+ platform: Platform;
5089
5093
  userId: string;
5090
5094
  result: any[];
5091
5095
  }, {
5092
- platform: "unknown" | "twitter";
5096
+ platform: Platform;
5093
5097
  userId: string;
5094
5098
  result: any[];
5095
5099
  }>;
@@ -5097,16 +5101,16 @@ declare const CreatePostTargetResultSchema: z.ZodObject<{
5097
5101
  * Create post target error schema
5098
5102
  */
5099
5103
  declare const CreatePostTargetErrorSchema: z.ZodObject<{
5100
- platform: z.ZodOptional<z.ZodEnum<["unknown", "twitter"]>>;
5104
+ platform: z.ZodOptional<z.ZodNativeEnum<typeof Platform>>;
5101
5105
  userId: z.ZodOptional<z.ZodString>;
5102
5106
  error: z.ZodString;
5103
5107
  }, "strip", z.ZodTypeAny, {
5104
5108
  error: string;
5105
- platform?: "unknown" | "twitter" | undefined;
5109
+ platform?: Platform | undefined;
5106
5110
  userId?: string | undefined;
5107
5111
  }, {
5108
5112
  error: string;
5109
- platform?: "unknown" | "twitter" | undefined;
5113
+ platform?: Platform | undefined;
5110
5114
  userId?: string | undefined;
5111
5115
  }>;
5112
5116
  /**
@@ -5116,51 +5120,51 @@ declare const CreatePostResponseSchema: z.ZodObject<{
5116
5120
  success: z.ZodBoolean;
5117
5121
  data: z.ZodObject<{
5118
5122
  results: z.ZodArray<z.ZodObject<{
5119
- platform: z.ZodEnum<["unknown", "twitter"]>;
5123
+ platform: z.ZodNativeEnum<typeof Platform>;
5120
5124
  userId: z.ZodString;
5121
5125
  result: z.ZodArray<z.ZodAny, "many">;
5122
5126
  }, "strip", z.ZodTypeAny, {
5123
- platform: "unknown" | "twitter";
5127
+ platform: Platform;
5124
5128
  userId: string;
5125
5129
  result: any[];
5126
5130
  }, {
5127
- platform: "unknown" | "twitter";
5131
+ platform: Platform;
5128
5132
  userId: string;
5129
5133
  result: any[];
5130
5134
  }>, "many">;
5131
5135
  errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
5132
- platform: z.ZodOptional<z.ZodEnum<["unknown", "twitter"]>>;
5136
+ platform: z.ZodOptional<z.ZodNativeEnum<typeof Platform>>;
5133
5137
  userId: z.ZodOptional<z.ZodString>;
5134
5138
  error: z.ZodString;
5135
5139
  }, "strip", z.ZodTypeAny, {
5136
5140
  error: string;
5137
- platform?: "unknown" | "twitter" | undefined;
5141
+ platform?: Platform | undefined;
5138
5142
  userId?: string | undefined;
5139
5143
  }, {
5140
5144
  error: string;
5141
- platform?: "unknown" | "twitter" | undefined;
5145
+ platform?: Platform | undefined;
5142
5146
  userId?: string | undefined;
5143
5147
  }>, "many">>;
5144
5148
  }, "strip", z.ZodTypeAny, {
5145
5149
  results: {
5146
- platform: "unknown" | "twitter";
5150
+ platform: Platform;
5147
5151
  userId: string;
5148
5152
  result: any[];
5149
5153
  }[];
5150
5154
  errors?: {
5151
5155
  error: string;
5152
- platform?: "unknown" | "twitter" | undefined;
5156
+ platform?: Platform | undefined;
5153
5157
  userId?: string | undefined;
5154
5158
  }[] | undefined;
5155
5159
  }, {
5156
5160
  results: {
5157
- platform: "unknown" | "twitter";
5161
+ platform: Platform;
5158
5162
  userId: string;
5159
5163
  result: any[];
5160
5164
  }[];
5161
5165
  errors?: {
5162
5166
  error: string;
5163
- platform?: "unknown" | "twitter" | undefined;
5167
+ platform?: Platform | undefined;
5164
5168
  userId?: string | undefined;
5165
5169
  }[] | undefined;
5166
5170
  }>;
@@ -5238,13 +5242,13 @@ declare const CreatePostResponseSchema: z.ZodObject<{
5238
5242
  }, "strip", z.ZodTypeAny, {
5239
5243
  data: {
5240
5244
  results: {
5241
- platform: "unknown" | "twitter";
5245
+ platform: Platform;
5242
5246
  userId: string;
5243
5247
  result: any[];
5244
5248
  }[];
5245
5249
  errors?: {
5246
5250
  error: string;
5247
- platform?: "unknown" | "twitter" | undefined;
5251
+ platform?: Platform | undefined;
5248
5252
  userId?: string | undefined;
5249
5253
  }[] | undefined;
5250
5254
  };
@@ -5269,13 +5273,13 @@ declare const CreatePostResponseSchema: z.ZodObject<{
5269
5273
  }, {
5270
5274
  data: {
5271
5275
  results: {
5272
- platform: "unknown" | "twitter";
5276
+ platform: Platform;
5273
5277
  userId: string;
5274
5278
  result: any[];
5275
5279
  }[];
5276
5280
  errors?: {
5277
5281
  error: string;
5278
- platform?: "unknown" | "twitter" | undefined;
5282
+ platform?: Platform | undefined;
5279
5283
  userId?: string | undefined;
5280
5284
  }[] | undefined;
5281
5285
  };
@@ -5301,12 +5305,6 @@ declare const CreatePostResponseSchema: z.ZodObject<{
5301
5305
  type CreatePostTargetResult = z.infer<typeof CreatePostTargetResultSchema>;
5302
5306
  type CreatePostTargetError = z.infer<typeof CreatePostTargetErrorSchema>;
5303
5307
 
5304
- /**
5305
- * Rate Limit Schemas and Types
5306
- * Defines Zod schemas for rate limit-related requests and responses
5307
- * TypeScript types are derived from Zod schemas for type safety
5308
- */
5309
-
5310
5308
  /**
5311
5309
  * Rate limit endpoint parameter schema
5312
5310
  */
@@ -5368,7 +5366,7 @@ declare const RateLimitStatusSchema: z.ZodObject<{
5368
5366
  * Platform-specific rate limit schema
5369
5367
  */
5370
5368
  declare const PlatformRateLimitSchema: z.ZodObject<{
5371
- platform: z.ZodEnum<["unknown", "twitter"]>;
5369
+ platform: z.ZodNativeEnum<typeof Platform>;
5372
5370
  endpoints: z.ZodRecord<z.ZodString, z.ZodObject<{
5373
5371
  endpoint: z.ZodString;
5374
5372
  limit: z.ZodNumber;
@@ -5389,7 +5387,7 @@ declare const PlatformRateLimitSchema: z.ZodObject<{
5389
5387
  resetSeconds: number;
5390
5388
  }>>;
5391
5389
  }, "strip", z.ZodTypeAny, {
5392
- platform: "unknown" | "twitter";
5390
+ platform: Platform;
5393
5391
  endpoints: Record<string, {
5394
5392
  remaining: number;
5395
5393
  limit: number;
@@ -5398,7 +5396,7 @@ declare const PlatformRateLimitSchema: z.ZodObject<{
5398
5396
  resetSeconds: number;
5399
5397
  }>;
5400
5398
  }, {
5401
- platform: "unknown" | "twitter";
5399
+ platform: Platform;
5402
5400
  endpoints: Record<string, {
5403
5401
  remaining: number;
5404
5402
  limit: number;
@@ -5438,7 +5436,7 @@ declare const UsageRateLimitSchema: z.ZodObject<{
5438
5436
  declare const RateLimitStatusResponseSchema: z.ZodObject<{
5439
5437
  success: z.ZodBoolean;
5440
5438
  data: z.ZodObject<{
5441
- platform: z.ZodEnum<["unknown", "twitter"]>;
5439
+ platform: z.ZodNativeEnum<typeof Platform>;
5442
5440
  userId: z.ZodOptional<z.ZodString>;
5443
5441
  endpoints: z.ZodArray<z.ZodObject<{
5444
5442
  endpoint: z.ZodString;
@@ -5479,7 +5477,7 @@ declare const RateLimitStatusResponseSchema: z.ZodObject<{
5479
5477
  resetDate: string;
5480
5478
  }>>;
5481
5479
  }, "strip", z.ZodTypeAny, {
5482
- platform: "unknown" | "twitter";
5480
+ platform: Platform;
5483
5481
  endpoints: {
5484
5482
  remaining: number;
5485
5483
  limit: number;
@@ -5496,7 +5494,7 @@ declare const RateLimitStatusResponseSchema: z.ZodObject<{
5496
5494
  resetDate: string;
5497
5495
  } | undefined;
5498
5496
  }, {
5499
- platform: "unknown" | "twitter";
5497
+ platform: Platform;
5500
5498
  endpoints: {
5501
5499
  remaining: number;
5502
5500
  limit: number;
@@ -5586,7 +5584,7 @@ declare const RateLimitStatusResponseSchema: z.ZodObject<{
5586
5584
  }>>;
5587
5585
  }, "strip", z.ZodTypeAny, {
5588
5586
  data: {
5589
- platform: "unknown" | "twitter";
5587
+ platform: Platform;
5590
5588
  endpoints: {
5591
5589
  remaining: number;
5592
5590
  limit: number;
@@ -5623,7 +5621,7 @@ declare const RateLimitStatusResponseSchema: z.ZodObject<{
5623
5621
  } | undefined;
5624
5622
  }, {
5625
5623
  data: {
5626
- platform: "unknown" | "twitter";
5624
+ platform: Platform;
5627
5625
  endpoints: {
5628
5626
  remaining: number;
5629
5627
  limit: number;
@@ -5665,7 +5663,7 @@ declare const RateLimitStatusResponseSchema: z.ZodObject<{
5665
5663
  declare const AllRateLimitsResponseSchema: z.ZodObject<{
5666
5664
  success: z.ZodBoolean;
5667
5665
  data: z.ZodObject<{
5668
- platforms: z.ZodRecord<z.ZodEnum<["unknown", "twitter"]>, z.ZodObject<{
5666
+ platforms: z.ZodRecord<z.ZodNativeEnum<typeof Platform>, z.ZodObject<{
5669
5667
  users: z.ZodRecord<z.ZodString, z.ZodObject<{
5670
5668
  endpoints: z.ZodArray<z.ZodObject<{
5671
5669
  endpoint: z.ZodString;
@@ -5765,7 +5763,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
5765
5763
  } | undefined;
5766
5764
  }>>;
5767
5765
  }, "strip", z.ZodTypeAny, {
5768
- platforms: Partial<Record<"unknown" | "twitter", {
5766
+ platforms: Partial<Record<Platform, {
5769
5767
  users: Record<string, {
5770
5768
  endpoints: {
5771
5769
  remaining: number;
@@ -5785,7 +5783,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
5785
5783
  } | undefined;
5786
5784
  }>>;
5787
5785
  }, {
5788
- platforms: Partial<Record<"unknown" | "twitter", {
5786
+ platforms: Partial<Record<Platform, {
5789
5787
  users: Record<string, {
5790
5788
  endpoints: {
5791
5789
  remaining: number;
@@ -5878,7 +5876,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
5878
5876
  }>>;
5879
5877
  }, "strip", z.ZodTypeAny, {
5880
5878
  data: {
5881
- platforms: Partial<Record<"unknown" | "twitter", {
5879
+ platforms: Partial<Record<Platform, {
5882
5880
  users: Record<string, {
5883
5881
  endpoints: {
5884
5882
  remaining: number;
@@ -5918,7 +5916,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
5918
5916
  } | undefined;
5919
5917
  }, {
5920
5918
  data: {
5921
- platforms: Partial<Record<"unknown" | "twitter", {
5919
+ platforms: Partial<Record<Platform, {
5922
5920
  users: Record<string, {
5923
5921
  endpoints: {
5924
5922
  remaining: number;
@@ -5962,7 +5960,7 @@ declare const AllRateLimitsResponseSchema: z.ZodObject<{
5962
5960
  */
5963
5961
  declare const RateLimitResponseSchema: z.ZodObject<{
5964
5962
  platformLimits: z.ZodArray<z.ZodObject<{
5965
- platform: z.ZodEnum<["unknown", "twitter"]>;
5963
+ platform: z.ZodNativeEnum<typeof Platform>;
5966
5964
  endpoints: z.ZodRecord<z.ZodString, z.ZodObject<{
5967
5965
  endpoint: z.ZodString;
5968
5966
  limit: z.ZodNumber;
@@ -5983,7 +5981,7 @@ declare const RateLimitResponseSchema: z.ZodObject<{
5983
5981
  resetSeconds: number;
5984
5982
  }>>;
5985
5983
  }, "strip", z.ZodTypeAny, {
5986
- platform: "unknown" | "twitter";
5984
+ platform: Platform;
5987
5985
  endpoints: Record<string, {
5988
5986
  remaining: number;
5989
5987
  limit: number;
@@ -5992,7 +5990,7 @@ declare const RateLimitResponseSchema: z.ZodObject<{
5992
5990
  resetSeconds: number;
5993
5991
  }>;
5994
5992
  }, {
5995
- platform: "unknown" | "twitter";
5993
+ platform: Platform;
5996
5994
  endpoints: Record<string, {
5997
5995
  remaining: number;
5998
5996
  limit: number;
@@ -6026,7 +6024,7 @@ declare const RateLimitResponseSchema: z.ZodObject<{
6026
6024
  signerId: z.ZodString;
6027
6025
  }, "strip", z.ZodTypeAny, {
6028
6026
  platformLimits: {
6029
- platform: "unknown" | "twitter";
6027
+ platform: Platform;
6030
6028
  endpoints: Record<string, {
6031
6029
  remaining: number;
6032
6030
  limit: number;
@@ -6046,7 +6044,7 @@ declare const RateLimitResponseSchema: z.ZodObject<{
6046
6044
  signerId: string;
6047
6045
  }, {
6048
6046
  platformLimits: {
6049
- platform: "unknown" | "twitter";
6047
+ platform: Platform;
6050
6048
  endpoints: Record<string, {
6051
6049
  remaining: number;
6052
6050
  limit: number;
@@ -6070,7 +6068,7 @@ declare const RateLimitResponseSchema: z.ZodObject<{
6070
6068
  */
6071
6069
  declare const EndpointRateLimitResponseSchema: z.ZodObject<{
6072
6070
  platformLimits: z.ZodArray<z.ZodObject<{
6073
- platform: z.ZodEnum<["unknown", "twitter"]>;
6071
+ platform: z.ZodNativeEnum<typeof Platform>;
6074
6072
  status: z.ZodObject<{
6075
6073
  endpoint: z.ZodString;
6076
6074
  limit: z.ZodNumber;
@@ -6098,7 +6096,7 @@ declare const EndpointRateLimitResponseSchema: z.ZodObject<{
6098
6096
  endpoint: string;
6099
6097
  resetSeconds: number;
6100
6098
  };
6101
- platform: "unknown" | "twitter";
6099
+ platform: Platform;
6102
6100
  }, {
6103
6101
  status: {
6104
6102
  remaining: number;
@@ -6107,7 +6105,7 @@ declare const EndpointRateLimitResponseSchema: z.ZodObject<{
6107
6105
  endpoint: string;
6108
6106
  resetSeconds: number;
6109
6107
  };
6110
- platform: "unknown" | "twitter";
6108
+ platform: Platform;
6111
6109
  }>, "many">;
6112
6110
  usageLimit: z.ZodObject<{
6113
6111
  endpoint: z.ZodString;
@@ -6143,7 +6141,7 @@ declare const EndpointRateLimitResponseSchema: z.ZodObject<{
6143
6141
  endpoint: string;
6144
6142
  resetSeconds: number;
6145
6143
  };
6146
- platform: "unknown" | "twitter";
6144
+ platform: Platform;
6147
6145
  }[];
6148
6146
  signerId: string;
6149
6147
  usageLimit: {
@@ -6164,7 +6162,7 @@ declare const EndpointRateLimitResponseSchema: z.ZodObject<{
6164
6162
  endpoint: string;
6165
6163
  resetSeconds: number;
6166
6164
  };
6167
- platform: "unknown" | "twitter";
6165
+ platform: Platform;
6168
6166
  }[];
6169
6167
  signerId: string;
6170
6168
  usageLimit: {
@@ -6187,25 +6185,29 @@ type RateLimitResponse = z.infer<typeof RateLimitResponseSchema>;
6187
6185
  type EndpointRateLimitResponse = z.infer<typeof EndpointRateLimitResponseSchema>;
6188
6186
 
6189
6187
  /**
6190
- * Leaderboard Schemas and Types
6191
- * Defines Zod schemas for leaderboard-related requests and responses
6192
- * TypeScript types are derived from Zod schemas for type safety
6188
+ * Time periods for activity filtering
6193
6189
  */
6194
-
6190
+ declare enum TimePeriod {
6191
+ ALL_TIME = "all",
6192
+ YEARLY = "yearly",
6193
+ MONTHLY = "monthly",
6194
+ WEEKLY = "weekly",
6195
+ DAILY = "daily"
6196
+ }
6195
6197
  /**
6196
- * Leaderboard query schema
6198
+ * Activity leaderboard query schema
6197
6199
  */
6198
- declare const LeaderboardQuerySchema: z.ZodObject<{
6200
+ declare const ActivityLeaderboardQuerySchema: z.ZodObject<{
6199
6201
  timeframe: z.ZodOptional<z.ZodEnum<["day", "week", "month", "all"]>>;
6200
6202
  limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>, z.ZodOptional<z.ZodNumber>>;
6201
6203
  offset: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number | undefined, string | undefined>, z.ZodOptional<z.ZodNumber>>;
6202
6204
  }, "strip", z.ZodTypeAny, {
6203
6205
  limit?: number | undefined;
6204
- timeframe?: "day" | "week" | "month" | "all" | undefined;
6206
+ timeframe?: "all" | "day" | "week" | "month" | undefined;
6205
6207
  offset?: number | undefined;
6206
6208
  }, {
6207
6209
  limit?: string | undefined;
6208
- timeframe?: "day" | "week" | "month" | "all" | undefined;
6210
+ timeframe?: "all" | "day" | "week" | "month" | undefined;
6209
6211
  offset?: string | undefined;
6210
6212
  }>;
6211
6213
  /**
@@ -6243,9 +6245,9 @@ declare const AccountActivityEntrySchema: z.ZodObject<{
6243
6245
  lastActive: string;
6244
6246
  }>;
6245
6247
  /**
6246
- * Leaderboard response schema
6248
+ * Activity leaderboard response schema
6247
6249
  */
6248
- declare const LeaderboardResponseSchema: z.ZodObject<{
6250
+ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
6249
6251
  success: z.ZodBoolean;
6250
6252
  data: z.ZodObject<{
6251
6253
  timeframe: z.ZodEnum<["day", "week", "month", "all"]>;
@@ -6285,6 +6287,7 @@ declare const LeaderboardResponseSchema: z.ZodObject<{
6285
6287
  offset: z.ZodNumber;
6286
6288
  generatedAt: z.ZodString;
6287
6289
  }, "strip", z.ZodTypeAny, {
6290
+ limit: number;
6288
6291
  entries: {
6289
6292
  signerId: string;
6290
6293
  totalPosts: number;
@@ -6296,12 +6299,12 @@ declare const LeaderboardResponseSchema: z.ZodObject<{
6296
6299
  rank: number;
6297
6300
  lastActive: string;
6298
6301
  }[];
6299
- limit: number;
6300
6302
  total: number;
6301
- timeframe: "day" | "week" | "month" | "all";
6303
+ timeframe: "all" | "day" | "week" | "month";
6302
6304
  offset: number;
6303
6305
  generatedAt: string;
6304
6306
  }, {
6307
+ limit: number;
6305
6308
  entries: {
6306
6309
  signerId: string;
6307
6310
  totalPosts: number;
@@ -6313,9 +6316,8 @@ declare const LeaderboardResponseSchema: z.ZodObject<{
6313
6316
  rank: number;
6314
6317
  lastActive: string;
6315
6318
  }[];
6316
- limit: number;
6317
6319
  total: number;
6318
- timeframe: "day" | "week" | "month" | "all";
6320
+ timeframe: "all" | "day" | "week" | "month";
6319
6321
  offset: number;
6320
6322
  generatedAt: string;
6321
6323
  }>;
@@ -6392,6 +6394,7 @@ declare const LeaderboardResponseSchema: z.ZodObject<{
6392
6394
  }>>;
6393
6395
  }, "strip", z.ZodTypeAny, {
6394
6396
  data: {
6397
+ limit: number;
6395
6398
  entries: {
6396
6399
  signerId: string;
6397
6400
  totalPosts: number;
@@ -6403,9 +6406,8 @@ declare const LeaderboardResponseSchema: z.ZodObject<{
6403
6406
  rank: number;
6404
6407
  lastActive: string;
6405
6408
  }[];
6406
- limit: number;
6407
6409
  total: number;
6408
- timeframe: "day" | "week" | "month" | "all";
6410
+ timeframe: "all" | "day" | "week" | "month";
6409
6411
  offset: number;
6410
6412
  generatedAt: string;
6411
6413
  };
@@ -6429,6 +6431,7 @@ declare const LeaderboardResponseSchema: z.ZodObject<{
6429
6431
  } | undefined;
6430
6432
  }, {
6431
6433
  data: {
6434
+ limit: number;
6432
6435
  entries: {
6433
6436
  signerId: string;
6434
6437
  totalPosts: number;
@@ -6440,9 +6443,8 @@ declare const LeaderboardResponseSchema: z.ZodObject<{
6440
6443
  rank: number;
6441
6444
  lastActive: string;
6442
6445
  }[];
6443
- limit: number;
6444
6446
  total: number;
6445
- timeframe: "day" | "week" | "month" | "all";
6447
+ timeframe: "all" | "day" | "week" | "month";
6446
6448
  offset: number;
6447
6449
  generatedAt: string;
6448
6450
  };
@@ -6481,15 +6483,15 @@ declare const AccountActivityParamsSchema: z.ZodObject<{
6481
6483
  declare const AccountActivityQuerySchema: z.ZodObject<{
6482
6484
  timeframe: z.ZodOptional<z.ZodEnum<["day", "week", "month", "all"]>>;
6483
6485
  }, "strip", z.ZodTypeAny, {
6484
- timeframe?: "day" | "week" | "month" | "all" | undefined;
6486
+ timeframe?: "all" | "day" | "week" | "month" | undefined;
6485
6487
  }, {
6486
- timeframe?: "day" | "week" | "month" | "all" | undefined;
6488
+ timeframe?: "all" | "day" | "week" | "month" | undefined;
6487
6489
  }>;
6488
6490
  /**
6489
6491
  * Platform activity schema
6490
6492
  */
6491
6493
  declare const PlatformActivitySchema: z.ZodObject<{
6492
- platform: z.ZodEnum<["unknown", "twitter"]>;
6494
+ platform: z.ZodNativeEnum<typeof Platform>;
6493
6495
  posts: z.ZodNumber;
6494
6496
  likes: z.ZodNumber;
6495
6497
  reposts: z.ZodNumber;
@@ -6498,7 +6500,7 @@ declare const PlatformActivitySchema: z.ZodObject<{
6498
6500
  score: z.ZodNumber;
6499
6501
  lastActive: z.ZodString;
6500
6502
  }, "strip", z.ZodTypeAny, {
6501
- platform: "unknown" | "twitter";
6503
+ platform: Platform;
6502
6504
  quotes: number;
6503
6505
  likes: number;
6504
6506
  replies: number;
@@ -6507,7 +6509,7 @@ declare const PlatformActivitySchema: z.ZodObject<{
6507
6509
  reposts: number;
6508
6510
  score: number;
6509
6511
  }, {
6510
- platform: "unknown" | "twitter";
6512
+ platform: Platform;
6511
6513
  quotes: number;
6512
6514
  likes: number;
6513
6515
  replies: number;
@@ -6533,7 +6535,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6533
6535
  rank: z.ZodNumber;
6534
6536
  lastActive: z.ZodString;
6535
6537
  platforms: z.ZodArray<z.ZodObject<{
6536
- platform: z.ZodEnum<["unknown", "twitter"]>;
6538
+ platform: z.ZodNativeEnum<typeof Platform>;
6537
6539
  posts: z.ZodNumber;
6538
6540
  likes: z.ZodNumber;
6539
6541
  reposts: z.ZodNumber;
@@ -6542,7 +6544,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6542
6544
  score: z.ZodNumber;
6543
6545
  lastActive: z.ZodString;
6544
6546
  }, "strip", z.ZodTypeAny, {
6545
- platform: "unknown" | "twitter";
6547
+ platform: Platform;
6546
6548
  quotes: number;
6547
6549
  likes: number;
6548
6550
  replies: number;
@@ -6551,7 +6553,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6551
6553
  reposts: number;
6552
6554
  score: number;
6553
6555
  }, {
6554
- platform: "unknown" | "twitter";
6556
+ platform: Platform;
6555
6557
  quotes: number;
6556
6558
  likes: number;
6557
6559
  replies: number;
@@ -6562,7 +6564,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6562
6564
  }>, "many">;
6563
6565
  }, "strip", z.ZodTypeAny, {
6564
6566
  platforms: {
6565
- platform: "unknown" | "twitter";
6567
+ platform: Platform;
6566
6568
  quotes: number;
6567
6569
  likes: number;
6568
6570
  replies: number;
@@ -6572,7 +6574,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6572
6574
  score: number;
6573
6575
  }[];
6574
6576
  signerId: string;
6575
- timeframe: "day" | "week" | "month" | "all";
6577
+ timeframe: "all" | "day" | "week" | "month";
6576
6578
  totalPosts: number;
6577
6579
  totalLikes: number;
6578
6580
  totalReposts: number;
@@ -6583,7 +6585,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6583
6585
  lastActive: string;
6584
6586
  }, {
6585
6587
  platforms: {
6586
- platform: "unknown" | "twitter";
6588
+ platform: Platform;
6587
6589
  quotes: number;
6588
6590
  likes: number;
6589
6591
  replies: number;
@@ -6593,7 +6595,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6593
6595
  score: number;
6594
6596
  }[];
6595
6597
  signerId: string;
6596
- timeframe: "day" | "week" | "month" | "all";
6598
+ timeframe: "all" | "day" | "week" | "month";
6597
6599
  totalPosts: number;
6598
6600
  totalLikes: number;
6599
6601
  totalReposts: number;
@@ -6677,7 +6679,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6677
6679
  }, "strip", z.ZodTypeAny, {
6678
6680
  data: {
6679
6681
  platforms: {
6680
- platform: "unknown" | "twitter";
6682
+ platform: Platform;
6681
6683
  quotes: number;
6682
6684
  likes: number;
6683
6685
  replies: number;
@@ -6687,7 +6689,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6687
6689
  score: number;
6688
6690
  }[];
6689
6691
  signerId: string;
6690
- timeframe: "day" | "week" | "month" | "all";
6692
+ timeframe: "all" | "day" | "week" | "month";
6691
6693
  totalPosts: number;
6692
6694
  totalLikes: number;
6693
6695
  totalReposts: number;
@@ -6718,7 +6720,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6718
6720
  }, {
6719
6721
  data: {
6720
6722
  platforms: {
6721
- platform: "unknown" | "twitter";
6723
+ platform: Platform;
6722
6724
  quotes: number;
6723
6725
  likes: number;
6724
6726
  replies: number;
@@ -6728,7 +6730,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
6728
6730
  score: number;
6729
6731
  }[];
6730
6732
  signerId: string;
6731
- timeframe: "day" | "week" | "month" | "all";
6733
+ timeframe: "all" | "day" | "week" | "month";
6732
6734
  totalPosts: number;
6733
6735
  totalLikes: number;
6734
6736
  totalReposts: number;
@@ -6791,7 +6793,7 @@ declare const AccountPostsQuerySchema: z.ZodObject<{
6791
6793
  */
6792
6794
  declare const AccountPostSchema: z.ZodObject<{
6793
6795
  id: z.ZodString;
6794
- platform: z.ZodEnum<["unknown", "twitter"]>;
6796
+ platform: z.ZodNativeEnum<typeof Platform>;
6795
6797
  type: z.ZodEnum<["post", "repost", "reply", "quote", "like"]>;
6796
6798
  content: z.ZodOptional<z.ZodString>;
6797
6799
  url: z.ZodOptional<z.ZodString>;
@@ -6816,7 +6818,7 @@ declare const AccountPostSchema: z.ZodObject<{
6816
6818
  quotedPostId: z.ZodOptional<z.ZodString>;
6817
6819
  }, "strip", z.ZodTypeAny, {
6818
6820
  type: "post" | "repost" | "reply" | "quote" | "like";
6819
- platform: "unknown" | "twitter";
6821
+ platform: Platform;
6820
6822
  id: string;
6821
6823
  createdAt: string;
6822
6824
  url?: string | undefined;
@@ -6831,7 +6833,7 @@ declare const AccountPostSchema: z.ZodObject<{
6831
6833
  content?: string | undefined;
6832
6834
  }, {
6833
6835
  type: "post" | "repost" | "reply" | "quote" | "like";
6834
- platform: "unknown" | "twitter";
6836
+ platform: Platform;
6835
6837
  id: string;
6836
6838
  createdAt: string;
6837
6839
  url?: string | undefined;
@@ -6854,7 +6856,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
6854
6856
  signerId: z.ZodString;
6855
6857
  posts: z.ZodArray<z.ZodObject<{
6856
6858
  id: z.ZodString;
6857
- platform: z.ZodEnum<["unknown", "twitter"]>;
6859
+ platform: z.ZodNativeEnum<typeof Platform>;
6858
6860
  type: z.ZodEnum<["post", "repost", "reply", "quote", "like"]>;
6859
6861
  content: z.ZodOptional<z.ZodString>;
6860
6862
  url: z.ZodOptional<z.ZodString>;
@@ -6879,7 +6881,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
6879
6881
  quotedPostId: z.ZodOptional<z.ZodString>;
6880
6882
  }, "strip", z.ZodTypeAny, {
6881
6883
  type: "post" | "repost" | "reply" | "quote" | "like";
6882
- platform: "unknown" | "twitter";
6884
+ platform: Platform;
6883
6885
  id: string;
6884
6886
  createdAt: string;
6885
6887
  url?: string | undefined;
@@ -6894,7 +6896,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
6894
6896
  content?: string | undefined;
6895
6897
  }, {
6896
6898
  type: "post" | "repost" | "reply" | "quote" | "like";
6897
- platform: "unknown" | "twitter";
6899
+ platform: Platform;
6898
6900
  id: string;
6899
6901
  createdAt: string;
6900
6902
  url?: string | undefined;
@@ -6918,7 +6920,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
6918
6920
  total: number;
6919
6921
  posts: {
6920
6922
  type: "post" | "repost" | "reply" | "quote" | "like";
6921
- platform: "unknown" | "twitter";
6923
+ platform: Platform;
6922
6924
  id: string;
6923
6925
  createdAt: string;
6924
6926
  url?: string | undefined;
@@ -6941,7 +6943,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
6941
6943
  total: number;
6942
6944
  posts: {
6943
6945
  type: "post" | "repost" | "reply" | "quote" | "like";
6944
- platform: "unknown" | "twitter";
6946
+ platform: Platform;
6945
6947
  id: string;
6946
6948
  createdAt: string;
6947
6949
  url?: string | undefined;
@@ -7037,7 +7039,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
7037
7039
  total: number;
7038
7040
  posts: {
7039
7041
  type: "post" | "repost" | "reply" | "quote" | "like";
7040
- platform: "unknown" | "twitter";
7042
+ platform: Platform;
7041
7043
  id: string;
7042
7044
  createdAt: string;
7043
7045
  url?: string | undefined;
@@ -7080,7 +7082,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
7080
7082
  total: number;
7081
7083
  posts: {
7082
7084
  type: "post" | "repost" | "reply" | "quote" | "like";
7083
- platform: "unknown" | "twitter";
7085
+ platform: Platform;
7084
7086
  id: string;
7085
7087
  createdAt: string;
7086
7088
  url?: string | undefined;
@@ -7118,9 +7120,56 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
7118
7120
  timestamp?: string | undefined;
7119
7121
  } | undefined;
7120
7122
  }>;
7121
- type LeaderboardQuery = z.infer<typeof LeaderboardQuerySchema>;
7123
+ /**
7124
+ * Interface for account activity data
7125
+ */
7126
+ interface AccountActivity {
7127
+ signerId: string;
7128
+ postCount: number;
7129
+ firstPostTimestamp: number;
7130
+ lastPostTimestamp: number;
7131
+ }
7132
+ /**
7133
+ * Interface for platform-specific account activity data
7134
+ */
7135
+ interface PlatformAccountActivity extends AccountActivity {
7136
+ platform: string;
7137
+ }
7138
+ /**
7139
+ * Interface for post record data (storage optimized)
7140
+ */
7141
+ interface PostRecord {
7142
+ id: string;
7143
+ p: string;
7144
+ t: number;
7145
+ u: string;
7146
+ }
7147
+ /**
7148
+ * Interface for post record data (API response)
7149
+ */
7150
+ interface PostRecordResponse {
7151
+ postId: string;
7152
+ platform: string;
7153
+ timestamp: string;
7154
+ userId: string;
7155
+ }
7156
+ /**
7157
+ * Interface for leaderboard entry
7158
+ */
7159
+ interface LeaderboardEntry {
7160
+ signerId: string;
7161
+ postCount: number;
7162
+ lastPostTimestamp: number;
7163
+ }
7164
+ /**
7165
+ * Interface for platform-specific leaderboard entry
7166
+ */
7167
+ interface PlatformLeaderboardEntry extends LeaderboardEntry {
7168
+ platform: string;
7169
+ }
7170
+ type ActivityLeaderboardQuery = z.infer<typeof ActivityLeaderboardQuerySchema>;
7122
7171
  type AccountActivityEntry = z.infer<typeof AccountActivityEntrySchema>;
7123
- type LeaderboardResponse = z.infer<typeof LeaderboardResponseSchema>;
7172
+ type ActivityLeaderboardResponse = z.infer<typeof ActivityLeaderboardResponseSchema>;
7124
7173
  type AccountActivityParams = z.infer<typeof AccountActivityParamsSchema>;
7125
7174
  type AccountActivityQuery = z.infer<typeof AccountActivityQuerySchema>;
7126
7175
  type PlatformActivity = z.infer<typeof PlatformActivitySchema>;
@@ -7129,12 +7178,8 @@ type AccountPostsParams = z.infer<typeof AccountPostsParamsSchema>;
7129
7178
  type AccountPostsQuery = z.infer<typeof AccountPostsQuerySchema>;
7130
7179
  type AccountPost = z.infer<typeof AccountPostSchema>;
7131
7180
  type AccountPostsResponse = z.infer<typeof AccountPostsResponseSchema>;
7132
-
7133
- /**
7134
- * User Profile Schemas and Types
7135
- * Defines Zod schemas for user profile-related data
7136
- * TypeScript types are derived from Zod schemas for type safety
7137
- */
7181
+ type LeaderboardQuery = ActivityLeaderboardQuery;
7182
+ type LeaderboardResponse = ActivityLeaderboardResponse;
7138
7183
 
7139
7184
  /**
7140
7185
  * User profile schema
@@ -7145,10 +7190,10 @@ declare const UserProfileSchema: z.ZodObject<{
7145
7190
  url: z.ZodOptional<z.ZodString>;
7146
7191
  profileImageUrl: z.ZodString;
7147
7192
  isPremium: z.ZodOptional<z.ZodBoolean>;
7148
- platform: z.ZodEnum<["unknown", "twitter"]>;
7193
+ platform: z.ZodNativeEnum<typeof Platform>;
7149
7194
  lastUpdated: z.ZodNumber;
7150
7195
  }, "strip", z.ZodTypeAny, {
7151
- platform: "unknown" | "twitter";
7196
+ platform: Platform;
7152
7197
  userId: string;
7153
7198
  username: string;
7154
7199
  lastUpdated: number;
@@ -7156,7 +7201,7 @@ declare const UserProfileSchema: z.ZodObject<{
7156
7201
  url?: string | undefined;
7157
7202
  isPremium?: boolean | undefined;
7158
7203
  }, {
7159
- platform: "unknown" | "twitter";
7204
+ platform: Platform;
7160
7205
  userId: string;
7161
7206
  username: string;
7162
7207
  lastUpdated: number;
@@ -7175,10 +7220,10 @@ declare const ProfileRefreshResultSchema: z.ZodObject<{
7175
7220
  url: z.ZodOptional<z.ZodString>;
7176
7221
  profileImageUrl: z.ZodString;
7177
7222
  isPremium: z.ZodOptional<z.ZodBoolean>;
7178
- platform: z.ZodEnum<["unknown", "twitter"]>;
7223
+ platform: z.ZodNativeEnum<typeof Platform>;
7179
7224
  lastUpdated: z.ZodNumber;
7180
7225
  }, "strip", z.ZodTypeAny, {
7181
- platform: "unknown" | "twitter";
7226
+ platform: Platform;
7182
7227
  userId: string;
7183
7228
  username: string;
7184
7229
  lastUpdated: number;
@@ -7186,7 +7231,7 @@ declare const ProfileRefreshResultSchema: z.ZodObject<{
7186
7231
  url?: string | undefined;
7187
7232
  isPremium?: boolean | undefined;
7188
7233
  }, {
7189
- platform: "unknown" | "twitter";
7234
+ platform: Platform;
7190
7235
  userId: string;
7191
7236
  username: string;
7192
7237
  lastUpdated: number;
@@ -7199,7 +7244,7 @@ declare const ProfileRefreshResultSchema: z.ZodObject<{
7199
7244
  success: boolean;
7200
7245
  error?: string | undefined;
7201
7246
  profile?: {
7202
- platform: "unknown" | "twitter";
7247
+ platform: Platform;
7203
7248
  userId: string;
7204
7249
  username: string;
7205
7250
  lastUpdated: number;
@@ -7211,7 +7256,7 @@ declare const ProfileRefreshResultSchema: z.ZodObject<{
7211
7256
  success: boolean;
7212
7257
  error?: string | undefined;
7213
7258
  profile?: {
7214
- platform: "unknown" | "twitter";
7259
+ platform: Platform;
7215
7260
  userId: string;
7216
7261
  username: string;
7217
7262
  lastUpdated: number;
@@ -7233,10 +7278,10 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
7233
7278
  url: z.ZodOptional<z.ZodString>;
7234
7279
  profileImageUrl: z.ZodString;
7235
7280
  isPremium: z.ZodOptional<z.ZodBoolean>;
7236
- platform: z.ZodEnum<["unknown", "twitter"]>;
7281
+ platform: z.ZodNativeEnum<typeof Platform>;
7237
7282
  lastUpdated: z.ZodNumber;
7238
7283
  }, "strip", z.ZodTypeAny, {
7239
- platform: "unknown" | "twitter";
7284
+ platform: Platform;
7240
7285
  userId: string;
7241
7286
  username: string;
7242
7287
  lastUpdated: number;
@@ -7244,7 +7289,7 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
7244
7289
  url?: string | undefined;
7245
7290
  isPremium?: boolean | undefined;
7246
7291
  }, {
7247
- platform: "unknown" | "twitter";
7292
+ platform: Platform;
7248
7293
  userId: string;
7249
7294
  username: string;
7250
7295
  lastUpdated: number;
@@ -7257,7 +7302,7 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
7257
7302
  success: boolean;
7258
7303
  error?: string | undefined;
7259
7304
  profile?: {
7260
- platform: "unknown" | "twitter";
7305
+ platform: Platform;
7261
7306
  userId: string;
7262
7307
  username: string;
7263
7308
  lastUpdated: number;
@@ -7269,7 +7314,7 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
7269
7314
  success: boolean;
7270
7315
  error?: string | undefined;
7271
7316
  profile?: {
7272
- platform: "unknown" | "twitter";
7317
+ platform: Platform;
7273
7318
  userId: string;
7274
7319
  username: string;
7275
7320
  lastUpdated: number;
@@ -7354,7 +7399,7 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
7354
7399
  success: boolean;
7355
7400
  error?: string | undefined;
7356
7401
  profile?: {
7357
- platform: "unknown" | "twitter";
7402
+ platform: Platform;
7358
7403
  userId: string;
7359
7404
  username: string;
7360
7405
  lastUpdated: number;
@@ -7386,7 +7431,7 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
7386
7431
  success: boolean;
7387
7432
  error?: string | undefined;
7388
7433
  profile?: {
7389
- platform: "unknown" | "twitter";
7434
+ platform: Platform;
7390
7435
  userId: string;
7391
7436
  username: string;
7392
7437
  lastUpdated: number;
@@ -7418,4 +7463,4 @@ type UserProfile = z.infer<typeof UserProfileSchema>;
7418
7463
  type ProfileRefreshResult = z.infer<typeof ProfileRefreshResultSchema>;
7419
7464
  type ProfileRefreshResponse = z.infer<typeof ProfileRefreshResponseSchema>;
7420
7465
 
7421
- export { type AccountActivityEntry, AccountActivityEntrySchema, type AccountActivityParams, AccountActivityParamsSchema, type AccountActivityQuery, AccountActivityQuerySchema, type AccountActivityResponse, AccountActivityResponseSchema, type AccountPost, AccountPostSchema, type AccountPostsParams, AccountPostsParamsSchema, type AccountPostsQuery, AccountPostsQuerySchema, type AccountPostsResponse, AccountPostsResponseSchema, type AllRateLimitsResponse, AllRateLimitsResponseSchema, ApiError, ApiErrorCode, type ApiResponse, ApiResponseSchema, type AuthCallbackQuery, AuthCallbackQuerySchema, type AuthCallbackResponse, AuthCallbackResponseSchema, type AuthInitRequest, AuthInitRequestSchema, type AuthRevokeResponse, AuthRevokeResponseSchema, type AuthStatusResponse, AuthStatusResponseSchema, type AuthUrlResponse, AuthUrlResponseSchema, BaseError, type ConnectedAccount, ConnectedAccountSchema, type ConnectedAccountsResponse, ConnectedAccountsResponseSchema, type CreatePostRequest, CreatePostRequestSchema, type CreatePostResponse, CreatePostResponseLegacySchema, CreatePostResponseSchema, type CreatePostTargetError, CreatePostTargetErrorSchema, type CreatePostTargetResult, CreatePostTargetResultSchema, type DeletePostRequest, DeletePostRequestSchema, type DeletePostResponse, DeletePostResponseSchema, type DeleteResult, DeleteResultSchema, type EndpointRateLimitResponse, EndpointRateLimitResponseSchema, type EnhancedApiResponse, type EnhancedErrorResponse, EnhancedErrorResponseSchema, type EnhancedResponseMeta, EnhancedResponseMetaSchema, EnhancedResponseSchema, type ErrorDetail, ErrorDetailSchema, type ErrorResponse, ErrorResponseSchema, type LeaderboardQuery, LeaderboardQuerySchema, type LeaderboardResponse, LeaderboardResponseSchema, type LikePostRequest, LikePostRequestSchema, type LikePostResponse, LikePostResponseSchema, type LikeResult, LikeResultSchema, type Media, type MediaContent, MediaContentSchema, MediaSchema, type MultiStatusResponse, MultiStatusResponseSchema, type NearAuthorizationRequest, NearAuthorizationRequestSchema, type NearAuthorizationResponse, NearAuthorizationResponseSchema, type NearAuthorizationStatusResponse, NearAuthorizationStatusResponseSchema, Platform, type PlatformActivity, PlatformActivitySchema, PlatformError, type PlatformName, type PlatformParam, PlatformParamSchema, type PlatformRateLimit, PlatformRateLimitSchema, PlatformSchema, type Post, type PostContent, PostContentSchema, type PostMetrics, PostMetricsSchema, type PostMultiStatusResponse, PostMultiStatusResponseSchema, type PostResponse, PostResponseSchema, type PostResult, PostResultSchema, PostSchema, type PostSuccessDetail, PostSuccessDetailSchema, type PostToDelete, PostToDeleteSchema, type ProfileRefreshResponse, ProfileRefreshResponseSchema, type ProfileRefreshResult, ProfileRefreshResultSchema, type QuotePostRequest, QuotePostRequestSchema, type QuotePostResponse, QuotePostResponseSchema, type RateLimitEndpoint, type RateLimitEndpointParam, RateLimitEndpointParamSchema, RateLimitEndpointSchema, type RateLimitResponse, RateLimitResponseSchema, type RateLimitStatus, type RateLimitStatusResponse, RateLimitStatusResponseSchema, RateLimitStatusSchema, type ReplyToPostRequest, ReplyToPostRequestSchema, type ReplyToPostResponse, ReplyToPostResponseSchema, type RepostRequest, RepostRequestSchema, type RepostResponse, RepostResponseSchema, type SuccessDetail, SuccessDetailSchema, type Target, TargetSchema, type UnlikePostRequest, UnlikePostRequestSchema, type UnlikePostResponse, UnlikePostResponseSchema, type UsageRateLimit, UsageRateLimitSchema, type UserProfile, UserProfileSchema, createApiResponse, createEnhancedApiResponse, createEnhancedErrorResponse, createErrorDetail, createErrorResponse, createMultiStatusResponse, createSuccessDetail };
7466
+ export { type AccountActivity, type AccountActivityEntry, AccountActivityEntrySchema, type AccountActivityParams, AccountActivityParamsSchema, type AccountActivityQuery, AccountActivityQuerySchema, type AccountActivityResponse, AccountActivityResponseSchema, type AccountPost, AccountPostSchema, type AccountPostsParams, AccountPostsParamsSchema, type AccountPostsQuery, AccountPostsQuerySchema, type AccountPostsResponse, AccountPostsResponseSchema, type ActivityLeaderboardQuery, ActivityLeaderboardQuerySchema, type ActivityLeaderboardResponse, ActivityLeaderboardResponseSchema, type AllRateLimitsResponse, AllRateLimitsResponseSchema, ApiError, ApiErrorCode, type ApiResponse, ApiResponseSchema, type AuthCallbackQuery, AuthCallbackQuerySchema, type AuthCallbackResponse, AuthCallbackResponseSchema, type AuthInitRequest, AuthInitRequestSchema, type AuthRevokeResponse, AuthRevokeResponseSchema, type AuthStatusResponse, AuthStatusResponseSchema, type AuthUrlResponse, AuthUrlResponseSchema, BaseError, type ConnectedAccount, ConnectedAccountSchema, type ConnectedAccountsResponse, ConnectedAccountsResponseSchema, type CreatePostRequest, CreatePostRequestSchema, type CreatePostResponse, CreatePostResponseLegacySchema, CreatePostResponseSchema, type CreatePostTargetError, CreatePostTargetErrorSchema, type CreatePostTargetResult, CreatePostTargetResultSchema, type DeletePostRequest, DeletePostRequestSchema, type DeletePostResponse, DeletePostResponseSchema, type DeleteResult, DeleteResultSchema, type EndpointRateLimitResponse, EndpointRateLimitResponseSchema, type EnhancedApiResponse, type EnhancedErrorResponse, EnhancedErrorResponseSchema, type EnhancedResponseMeta, EnhancedResponseMetaSchema, EnhancedResponseSchema, type ErrorDetail, ErrorDetailSchema, type ErrorResponse, ErrorResponseSchema, type LeaderboardEntry, type LeaderboardQuery, type LeaderboardResponse, type LikePostRequest, LikePostRequestSchema, type LikePostResponse, LikePostResponseSchema, type LikeResult, LikeResultSchema, type Media, type MediaContent, MediaContentSchema, MediaSchema, type MultiStatusResponse, MultiStatusResponseSchema, type NearAuthorizationRequest, NearAuthorizationRequestSchema, type NearAuthorizationResponse, NearAuthorizationResponseSchema, type NearAuthorizationStatusResponse, NearAuthorizationStatusResponseSchema, Platform, type PlatformAccountActivity, type PlatformActivity, PlatformActivitySchema, PlatformError, type PlatformLeaderboardEntry, type PlatformName, type PlatformParam, PlatformParamSchema, type PlatformRateLimit, PlatformRateLimitSchema, PlatformSchema, type Post, type PostContent, PostContentSchema, type PostMetrics, PostMetricsSchema, type PostMultiStatusResponse, PostMultiStatusResponseSchema, type PostRecord, type PostRecordResponse, type PostResponse, PostResponseSchema, type PostResult, PostResultSchema, PostSchema, type PostSuccessDetail, PostSuccessDetailSchema, type PostToDelete, PostToDeleteSchema, type ProfileRefreshResponse, ProfileRefreshResponseSchema, type ProfileRefreshResult, ProfileRefreshResultSchema, type QuotePostRequest, QuotePostRequestSchema, type QuotePostResponse, QuotePostResponseSchema, type RateLimitEndpoint, type RateLimitEndpointParam, RateLimitEndpointParamSchema, RateLimitEndpointSchema, type RateLimitResponse, RateLimitResponseSchema, type RateLimitStatus, type RateLimitStatusResponse, RateLimitStatusResponseSchema, RateLimitStatusSchema, type ReplyToPostRequest, ReplyToPostRequestSchema, type ReplyToPostResponse, ReplyToPostResponseSchema, type RepostRequest, RepostRequestSchema, type RepostResponse, RepostResponseSchema, SUPPORTED_PLATFORMS, type SuccessDetail, SuccessDetailSchema, type SupportedPlatformName, SupportedPlatformSchema, type Target, TargetSchema, TimePeriod, type UnlikePostRequest, UnlikePostRequestSchema, type UnlikePostResponse, UnlikePostResponseSchema, type UsageRateLimit, UsageRateLimitSchema, type UserProfile, UserProfileSchema, createApiResponse, createEnhancedApiResponse, createEnhancedErrorResponse, createErrorDetail, createErrorResponse, createMultiStatusResponse, createSuccessDetail, isPlatformSupported };