@crosspost/types 0.1.3 → 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/LICENSE +21 -0
- package/README.md +4 -32
- package/dist/index.cjs +18 -10
- package/dist/index.d.cts +198 -212
- package/dist/index.d.ts +198 -212
- package/dist/index.js +14 -9
- package/package.json +1 -1
- package/src/common.ts +32 -16
package/dist/index.d.cts
CHANGED
@@ -8,17 +8,27 @@ import * as buffer from 'buffer';
|
|
8
8
|
*/
|
9
9
|
|
10
10
|
/**
|
11
|
-
* Platform
|
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.
|
1080
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
1077
1081
|
}, "strip", z.ZodTypeAny, {
|
1078
|
-
platform:
|
1082
|
+
platform: Platform;
|
1079
1083
|
url: string;
|
1080
1084
|
state: string;
|
1081
1085
|
}, {
|
1082
|
-
platform:
|
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:
|
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:
|
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.
|
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:
|
1228
|
+
platform: Platform;
|
1225
1229
|
userId: string;
|
1226
1230
|
success: boolean;
|
1227
1231
|
redirectUrl?: string | undefined;
|
1228
1232
|
}, {
|
1229
|
-
platform:
|
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:
|
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:
|
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.
|
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:
|
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:
|
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:
|
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:
|
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.
|
1532
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
1529
1533
|
userId: z.ZodString;
|
1530
1534
|
}, "strip", z.ZodTypeAny, {
|
1531
|
-
platform:
|
1535
|
+
platform: Platform;
|
1532
1536
|
userId: string;
|
1533
1537
|
success: boolean;
|
1534
1538
|
}, {
|
1535
|
-
platform:
|
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:
|
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:
|
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.
|
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:
|
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:
|
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.
|
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:
|
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:
|
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:
|
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:
|
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.
|
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.
|
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.
|
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.
|
2365
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2362
2366
|
userId: z.ZodString;
|
2363
2367
|
}, "strip", z.ZodTypeAny, {
|
2364
|
-
platform:
|
2368
|
+
platform: Platform;
|
2365
2369
|
userId: string;
|
2366
2370
|
}, {
|
2367
|
-
platform:
|
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.
|
2379
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2376
2380
|
userId: z.ZodString;
|
2377
2381
|
}, "strip", z.ZodTypeAny, {
|
2378
|
-
platform:
|
2382
|
+
platform: Platform;
|
2379
2383
|
userId: string;
|
2380
2384
|
}, {
|
2381
|
-
platform:
|
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:
|
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:
|
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.
|
2450
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2447
2451
|
userId: z.ZodString;
|
2448
2452
|
}, "strip", z.ZodTypeAny, {
|
2449
|
-
platform:
|
2453
|
+
platform: Platform;
|
2450
2454
|
userId: string;
|
2451
2455
|
}, {
|
2452
|
-
platform:
|
2456
|
+
platform: Platform;
|
2453
2457
|
userId: string;
|
2454
2458
|
}>, "many">;
|
2455
|
-
platform: z.
|
2459
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2456
2460
|
postId: z.ZodString;
|
2457
2461
|
}, "strip", z.ZodTypeAny, {
|
2458
|
-
platform:
|
2462
|
+
platform: Platform;
|
2459
2463
|
postId: string;
|
2460
2464
|
targets: {
|
2461
|
-
platform:
|
2465
|
+
platform: Platform;
|
2462
2466
|
userId: string;
|
2463
2467
|
}[];
|
2464
2468
|
}, {
|
2465
|
-
platform:
|
2469
|
+
platform: Platform;
|
2466
2470
|
postId: string;
|
2467
2471
|
targets: {
|
2468
|
-
platform:
|
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.
|
2481
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2478
2482
|
userId: z.ZodString;
|
2479
2483
|
}, "strip", z.ZodTypeAny, {
|
2480
|
-
platform:
|
2484
|
+
platform: Platform;
|
2481
2485
|
userId: string;
|
2482
2486
|
}, {
|
2483
|
-
platform:
|
2487
|
+
platform: Platform;
|
2484
2488
|
userId: string;
|
2485
2489
|
}>, "many">;
|
2486
|
-
platform: z.
|
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:
|
2523
|
+
platform: Platform;
|
2520
2524
|
postId: string;
|
2521
2525
|
targets: {
|
2522
|
-
platform:
|
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:
|
2538
|
+
platform: Platform;
|
2535
2539
|
postId: string;
|
2536
2540
|
targets: {
|
2537
|
-
platform:
|
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.
|
2558
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2555
2559
|
userId: z.ZodString;
|
2556
2560
|
}, "strip", z.ZodTypeAny, {
|
2557
|
-
platform:
|
2561
|
+
platform: Platform;
|
2558
2562
|
userId: string;
|
2559
2563
|
}, {
|
2560
|
-
platform:
|
2564
|
+
platform: Platform;
|
2561
2565
|
userId: string;
|
2562
2566
|
}>, "many">;
|
2563
|
-
platform: z.
|
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:
|
2600
|
+
platform: Platform;
|
2597
2601
|
postId: string;
|
2598
2602
|
targets: {
|
2599
|
-
platform:
|
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:
|
2615
|
+
platform: Platform;
|
2612
2616
|
postId: string;
|
2613
2617
|
targets: {
|
2614
|
-
platform:
|
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.
|
2634
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2631
2635
|
userId: z.ZodString;
|
2632
2636
|
postId: z.ZodString;
|
2633
2637
|
}, "strip", z.ZodTypeAny, {
|
2634
|
-
platform:
|
2638
|
+
platform: Platform;
|
2635
2639
|
userId: string;
|
2636
2640
|
postId: string;
|
2637
2641
|
}, {
|
2638
|
-
platform:
|
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.
|
2651
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2648
2652
|
userId: z.ZodString;
|
2649
2653
|
}, "strip", z.ZodTypeAny, {
|
2650
|
-
platform:
|
2654
|
+
platform: Platform;
|
2651
2655
|
userId: string;
|
2652
2656
|
}, {
|
2653
|
-
platform:
|
2657
|
+
platform: Platform;
|
2654
2658
|
userId: string;
|
2655
2659
|
}>, "many">;
|
2656
2660
|
posts: z.ZodArray<z.ZodObject<{
|
2657
|
-
platform: z.
|
2661
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2658
2662
|
userId: z.ZodString;
|
2659
2663
|
postId: z.ZodString;
|
2660
2664
|
}, "strip", z.ZodTypeAny, {
|
2661
|
-
platform:
|
2665
|
+
platform: Platform;
|
2662
2666
|
userId: string;
|
2663
2667
|
postId: string;
|
2664
2668
|
}, {
|
2665
|
-
platform:
|
2669
|
+
platform: Platform;
|
2666
2670
|
userId: string;
|
2667
2671
|
postId: string;
|
2668
2672
|
}>, "many">;
|
2669
2673
|
}, "strip", z.ZodTypeAny, {
|
2670
2674
|
targets: {
|
2671
|
-
platform:
|
2675
|
+
platform: Platform;
|
2672
2676
|
userId: string;
|
2673
2677
|
}[];
|
2674
2678
|
posts: {
|
2675
|
-
platform:
|
2679
|
+
platform: Platform;
|
2676
2680
|
userId: string;
|
2677
2681
|
postId: string;
|
2678
2682
|
}[];
|
2679
2683
|
}, {
|
2680
2684
|
targets: {
|
2681
|
-
platform:
|
2685
|
+
platform: Platform;
|
2682
2686
|
userId: string;
|
2683
2687
|
}[];
|
2684
2688
|
posts: {
|
2685
|
-
platform:
|
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.
|
2699
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2696
2700
|
userId: z.ZodString;
|
2697
2701
|
}, "strip", z.ZodTypeAny, {
|
2698
|
-
platform:
|
2702
|
+
platform: Platform;
|
2699
2703
|
userId: string;
|
2700
2704
|
}, {
|
2701
|
-
platform:
|
2705
|
+
platform: Platform;
|
2702
2706
|
userId: string;
|
2703
2707
|
}>, "many">;
|
2704
|
-
platform: z.
|
2708
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2705
2709
|
postId: z.ZodString;
|
2706
2710
|
}, "strip", z.ZodTypeAny, {
|
2707
|
-
platform:
|
2711
|
+
platform: Platform;
|
2708
2712
|
postId: string;
|
2709
2713
|
targets: {
|
2710
|
-
platform:
|
2714
|
+
platform: Platform;
|
2711
2715
|
userId: string;
|
2712
2716
|
}[];
|
2713
2717
|
}, {
|
2714
|
-
platform:
|
2718
|
+
platform: Platform;
|
2715
2719
|
postId: string;
|
2716
2720
|
targets: {
|
2717
|
-
platform:
|
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.
|
2730
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2727
2731
|
userId: z.ZodString;
|
2728
2732
|
}, "strip", z.ZodTypeAny, {
|
2729
|
-
platform:
|
2733
|
+
platform: Platform;
|
2730
2734
|
userId: string;
|
2731
2735
|
}, {
|
2732
|
-
platform:
|
2736
|
+
platform: Platform;
|
2733
2737
|
userId: string;
|
2734
2738
|
}>, "many">;
|
2735
|
-
platform: z.
|
2739
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
2736
2740
|
postId: z.ZodString;
|
2737
2741
|
}, "strip", z.ZodTypeAny, {
|
2738
|
-
platform:
|
2742
|
+
platform: Platform;
|
2739
2743
|
postId: string;
|
2740
2744
|
targets: {
|
2741
|
-
platform:
|
2745
|
+
platform: Platform;
|
2742
2746
|
userId: string;
|
2743
2747
|
}[];
|
2744
2748
|
}, {
|
2745
|
-
platform:
|
2749
|
+
platform: Platform;
|
2746
2750
|
postId: string;
|
2747
2751
|
targets: {
|
2748
|
-
platform:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
|
5092
|
+
platform: Platform;
|
5089
5093
|
userId: string;
|
5090
5094
|
result: any[];
|
5091
5095
|
}, {
|
5092
|
-
platform:
|
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.
|
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?:
|
5109
|
+
platform?: Platform | undefined;
|
5106
5110
|
userId?: string | undefined;
|
5107
5111
|
}, {
|
5108
5112
|
error: string;
|
5109
|
-
platform?:
|
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.
|
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:
|
5127
|
+
platform: Platform;
|
5124
5128
|
userId: string;
|
5125
5129
|
result: any[];
|
5126
5130
|
}, {
|
5127
|
-
platform:
|
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.
|
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?:
|
5141
|
+
platform?: Platform | undefined;
|
5138
5142
|
userId?: string | undefined;
|
5139
5143
|
}, {
|
5140
5144
|
error: string;
|
5141
|
-
platform?:
|
5145
|
+
platform?: Platform | undefined;
|
5142
5146
|
userId?: string | undefined;
|
5143
5147
|
}>, "many">>;
|
5144
5148
|
}, "strip", z.ZodTypeAny, {
|
5145
5149
|
results: {
|
5146
|
-
platform:
|
5150
|
+
platform: Platform;
|
5147
5151
|
userId: string;
|
5148
5152
|
result: any[];
|
5149
5153
|
}[];
|
5150
5154
|
errors?: {
|
5151
5155
|
error: string;
|
5152
|
-
platform?:
|
5156
|
+
platform?: Platform | undefined;
|
5153
5157
|
userId?: string | undefined;
|
5154
5158
|
}[] | undefined;
|
5155
5159
|
}, {
|
5156
5160
|
results: {
|
5157
|
-
platform:
|
5161
|
+
platform: Platform;
|
5158
5162
|
userId: string;
|
5159
5163
|
result: any[];
|
5160
5164
|
}[];
|
5161
5165
|
errors?: {
|
5162
5166
|
error: string;
|
5163
|
-
platform?:
|
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:
|
5245
|
+
platform: Platform;
|
5242
5246
|
userId: string;
|
5243
5247
|
result: any[];
|
5244
5248
|
}[];
|
5245
5249
|
errors?: {
|
5246
5250
|
error: string;
|
5247
|
-
platform?:
|
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:
|
5276
|
+
platform: Platform;
|
5273
5277
|
userId: string;
|
5274
5278
|
result: any[];
|
5275
5279
|
}[];
|
5276
5280
|
errors?: {
|
5277
5281
|
error: string;
|
5278
|
-
platform?:
|
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.
|
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:
|
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:
|
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.
|
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:
|
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:
|
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:
|
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:
|
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.
|
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<
|
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<
|
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<
|
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<
|
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.
|
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:
|
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:
|
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:
|
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:
|
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.
|
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:
|
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:
|
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:
|
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:
|
6165
|
+
platform: Platform;
|
6168
6166
|
}[];
|
6169
6167
|
signerId: string;
|
6170
6168
|
usageLimit: {
|
@@ -6186,12 +6184,6 @@ type AllRateLimitsResponse = z.infer<typeof AllRateLimitsResponseSchema>;
|
|
6186
6184
|
type RateLimitResponse = z.infer<typeof RateLimitResponseSchema>;
|
6187
6185
|
type EndpointRateLimitResponse = z.infer<typeof EndpointRateLimitResponseSchema>;
|
6188
6186
|
|
6189
|
-
/**
|
6190
|
-
* Activity Schemas and Types
|
6191
|
-
* Defines Zod schemas for activity-related requests and responses
|
6192
|
-
* TypeScript types are derived from Zod schemas for type safety
|
6193
|
-
*/
|
6194
|
-
|
6195
6187
|
/**
|
6196
6188
|
* Time periods for activity filtering
|
6197
6189
|
*/
|
@@ -6295,6 +6287,7 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
6295
6287
|
offset: z.ZodNumber;
|
6296
6288
|
generatedAt: z.ZodString;
|
6297
6289
|
}, "strip", z.ZodTypeAny, {
|
6290
|
+
limit: number;
|
6298
6291
|
entries: {
|
6299
6292
|
signerId: string;
|
6300
6293
|
totalPosts: number;
|
@@ -6306,12 +6299,12 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
6306
6299
|
rank: number;
|
6307
6300
|
lastActive: string;
|
6308
6301
|
}[];
|
6309
|
-
limit: number;
|
6310
6302
|
total: number;
|
6311
6303
|
timeframe: "all" | "day" | "week" | "month";
|
6312
6304
|
offset: number;
|
6313
6305
|
generatedAt: string;
|
6314
6306
|
}, {
|
6307
|
+
limit: number;
|
6315
6308
|
entries: {
|
6316
6309
|
signerId: string;
|
6317
6310
|
totalPosts: number;
|
@@ -6323,7 +6316,6 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
6323
6316
|
rank: number;
|
6324
6317
|
lastActive: string;
|
6325
6318
|
}[];
|
6326
|
-
limit: number;
|
6327
6319
|
total: number;
|
6328
6320
|
timeframe: "all" | "day" | "week" | "month";
|
6329
6321
|
offset: number;
|
@@ -6402,6 +6394,7 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
6402
6394
|
}>>;
|
6403
6395
|
}, "strip", z.ZodTypeAny, {
|
6404
6396
|
data: {
|
6397
|
+
limit: number;
|
6405
6398
|
entries: {
|
6406
6399
|
signerId: string;
|
6407
6400
|
totalPosts: number;
|
@@ -6413,7 +6406,6 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
6413
6406
|
rank: number;
|
6414
6407
|
lastActive: string;
|
6415
6408
|
}[];
|
6416
|
-
limit: number;
|
6417
6409
|
total: number;
|
6418
6410
|
timeframe: "all" | "day" | "week" | "month";
|
6419
6411
|
offset: number;
|
@@ -6439,6 +6431,7 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
6439
6431
|
} | undefined;
|
6440
6432
|
}, {
|
6441
6433
|
data: {
|
6434
|
+
limit: number;
|
6442
6435
|
entries: {
|
6443
6436
|
signerId: string;
|
6444
6437
|
totalPosts: number;
|
@@ -6450,7 +6443,6 @@ declare const ActivityLeaderboardResponseSchema: z.ZodObject<{
|
|
6450
6443
|
rank: number;
|
6451
6444
|
lastActive: string;
|
6452
6445
|
}[];
|
6453
|
-
limit: number;
|
6454
6446
|
total: number;
|
6455
6447
|
timeframe: "all" | "day" | "week" | "month";
|
6456
6448
|
offset: number;
|
@@ -6499,7 +6491,7 @@ declare const AccountActivityQuerySchema: z.ZodObject<{
|
|
6499
6491
|
* Platform activity schema
|
6500
6492
|
*/
|
6501
6493
|
declare const PlatformActivitySchema: z.ZodObject<{
|
6502
|
-
platform: z.
|
6494
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
6503
6495
|
posts: z.ZodNumber;
|
6504
6496
|
likes: z.ZodNumber;
|
6505
6497
|
reposts: z.ZodNumber;
|
@@ -6508,7 +6500,7 @@ declare const PlatformActivitySchema: z.ZodObject<{
|
|
6508
6500
|
score: z.ZodNumber;
|
6509
6501
|
lastActive: z.ZodString;
|
6510
6502
|
}, "strip", z.ZodTypeAny, {
|
6511
|
-
platform:
|
6503
|
+
platform: Platform;
|
6512
6504
|
quotes: number;
|
6513
6505
|
likes: number;
|
6514
6506
|
replies: number;
|
@@ -6517,7 +6509,7 @@ declare const PlatformActivitySchema: z.ZodObject<{
|
|
6517
6509
|
reposts: number;
|
6518
6510
|
score: number;
|
6519
6511
|
}, {
|
6520
|
-
platform:
|
6512
|
+
platform: Platform;
|
6521
6513
|
quotes: number;
|
6522
6514
|
likes: number;
|
6523
6515
|
replies: number;
|
@@ -6543,7 +6535,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
|
|
6543
6535
|
rank: z.ZodNumber;
|
6544
6536
|
lastActive: z.ZodString;
|
6545
6537
|
platforms: z.ZodArray<z.ZodObject<{
|
6546
|
-
platform: z.
|
6538
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
6547
6539
|
posts: z.ZodNumber;
|
6548
6540
|
likes: z.ZodNumber;
|
6549
6541
|
reposts: z.ZodNumber;
|
@@ -6552,7 +6544,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
|
|
6552
6544
|
score: z.ZodNumber;
|
6553
6545
|
lastActive: z.ZodString;
|
6554
6546
|
}, "strip", z.ZodTypeAny, {
|
6555
|
-
platform:
|
6547
|
+
platform: Platform;
|
6556
6548
|
quotes: number;
|
6557
6549
|
likes: number;
|
6558
6550
|
replies: number;
|
@@ -6561,7 +6553,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
|
|
6561
6553
|
reposts: number;
|
6562
6554
|
score: number;
|
6563
6555
|
}, {
|
6564
|
-
platform:
|
6556
|
+
platform: Platform;
|
6565
6557
|
quotes: number;
|
6566
6558
|
likes: number;
|
6567
6559
|
replies: number;
|
@@ -6572,7 +6564,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
|
|
6572
6564
|
}>, "many">;
|
6573
6565
|
}, "strip", z.ZodTypeAny, {
|
6574
6566
|
platforms: {
|
6575
|
-
platform:
|
6567
|
+
platform: Platform;
|
6576
6568
|
quotes: number;
|
6577
6569
|
likes: number;
|
6578
6570
|
replies: number;
|
@@ -6593,7 +6585,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
|
|
6593
6585
|
lastActive: string;
|
6594
6586
|
}, {
|
6595
6587
|
platforms: {
|
6596
|
-
platform:
|
6588
|
+
platform: Platform;
|
6597
6589
|
quotes: number;
|
6598
6590
|
likes: number;
|
6599
6591
|
replies: number;
|
@@ -6687,7 +6679,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
|
|
6687
6679
|
}, "strip", z.ZodTypeAny, {
|
6688
6680
|
data: {
|
6689
6681
|
platforms: {
|
6690
|
-
platform:
|
6682
|
+
platform: Platform;
|
6691
6683
|
quotes: number;
|
6692
6684
|
likes: number;
|
6693
6685
|
replies: number;
|
@@ -6728,7 +6720,7 @@ declare const AccountActivityResponseSchema: z.ZodObject<{
|
|
6728
6720
|
}, {
|
6729
6721
|
data: {
|
6730
6722
|
platforms: {
|
6731
|
-
platform:
|
6723
|
+
platform: Platform;
|
6732
6724
|
quotes: number;
|
6733
6725
|
likes: number;
|
6734
6726
|
replies: number;
|
@@ -6801,7 +6793,7 @@ declare const AccountPostsQuerySchema: z.ZodObject<{
|
|
6801
6793
|
*/
|
6802
6794
|
declare const AccountPostSchema: z.ZodObject<{
|
6803
6795
|
id: z.ZodString;
|
6804
|
-
platform: z.
|
6796
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
6805
6797
|
type: z.ZodEnum<["post", "repost", "reply", "quote", "like"]>;
|
6806
6798
|
content: z.ZodOptional<z.ZodString>;
|
6807
6799
|
url: z.ZodOptional<z.ZodString>;
|
@@ -6826,7 +6818,7 @@ declare const AccountPostSchema: z.ZodObject<{
|
|
6826
6818
|
quotedPostId: z.ZodOptional<z.ZodString>;
|
6827
6819
|
}, "strip", z.ZodTypeAny, {
|
6828
6820
|
type: "post" | "repost" | "reply" | "quote" | "like";
|
6829
|
-
platform:
|
6821
|
+
platform: Platform;
|
6830
6822
|
id: string;
|
6831
6823
|
createdAt: string;
|
6832
6824
|
url?: string | undefined;
|
@@ -6841,7 +6833,7 @@ declare const AccountPostSchema: z.ZodObject<{
|
|
6841
6833
|
content?: string | undefined;
|
6842
6834
|
}, {
|
6843
6835
|
type: "post" | "repost" | "reply" | "quote" | "like";
|
6844
|
-
platform:
|
6836
|
+
platform: Platform;
|
6845
6837
|
id: string;
|
6846
6838
|
createdAt: string;
|
6847
6839
|
url?: string | undefined;
|
@@ -6864,7 +6856,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
6864
6856
|
signerId: z.ZodString;
|
6865
6857
|
posts: z.ZodArray<z.ZodObject<{
|
6866
6858
|
id: z.ZodString;
|
6867
|
-
platform: z.
|
6859
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
6868
6860
|
type: z.ZodEnum<["post", "repost", "reply", "quote", "like"]>;
|
6869
6861
|
content: z.ZodOptional<z.ZodString>;
|
6870
6862
|
url: z.ZodOptional<z.ZodString>;
|
@@ -6889,7 +6881,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
6889
6881
|
quotedPostId: z.ZodOptional<z.ZodString>;
|
6890
6882
|
}, "strip", z.ZodTypeAny, {
|
6891
6883
|
type: "post" | "repost" | "reply" | "quote" | "like";
|
6892
|
-
platform:
|
6884
|
+
platform: Platform;
|
6893
6885
|
id: string;
|
6894
6886
|
createdAt: string;
|
6895
6887
|
url?: string | undefined;
|
@@ -6904,7 +6896,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
6904
6896
|
content?: string | undefined;
|
6905
6897
|
}, {
|
6906
6898
|
type: "post" | "repost" | "reply" | "quote" | "like";
|
6907
|
-
platform:
|
6899
|
+
platform: Platform;
|
6908
6900
|
id: string;
|
6909
6901
|
createdAt: string;
|
6910
6902
|
url?: string | undefined;
|
@@ -6928,7 +6920,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
6928
6920
|
total: number;
|
6929
6921
|
posts: {
|
6930
6922
|
type: "post" | "repost" | "reply" | "quote" | "like";
|
6931
|
-
platform:
|
6923
|
+
platform: Platform;
|
6932
6924
|
id: string;
|
6933
6925
|
createdAt: string;
|
6934
6926
|
url?: string | undefined;
|
@@ -6951,7 +6943,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
6951
6943
|
total: number;
|
6952
6944
|
posts: {
|
6953
6945
|
type: "post" | "repost" | "reply" | "quote" | "like";
|
6954
|
-
platform:
|
6946
|
+
platform: Platform;
|
6955
6947
|
id: string;
|
6956
6948
|
createdAt: string;
|
6957
6949
|
url?: string | undefined;
|
@@ -7047,7 +7039,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
7047
7039
|
total: number;
|
7048
7040
|
posts: {
|
7049
7041
|
type: "post" | "repost" | "reply" | "quote" | "like";
|
7050
|
-
platform:
|
7042
|
+
platform: Platform;
|
7051
7043
|
id: string;
|
7052
7044
|
createdAt: string;
|
7053
7045
|
url?: string | undefined;
|
@@ -7090,7 +7082,7 @@ declare const AccountPostsResponseSchema: z.ZodObject<{
|
|
7090
7082
|
total: number;
|
7091
7083
|
posts: {
|
7092
7084
|
type: "post" | "repost" | "reply" | "quote" | "like";
|
7093
|
-
platform:
|
7085
|
+
platform: Platform;
|
7094
7086
|
id: string;
|
7095
7087
|
createdAt: string;
|
7096
7088
|
url?: string | undefined;
|
@@ -7189,12 +7181,6 @@ type AccountPostsResponse = z.infer<typeof AccountPostsResponseSchema>;
|
|
7189
7181
|
type LeaderboardQuery = ActivityLeaderboardQuery;
|
7190
7182
|
type LeaderboardResponse = ActivityLeaderboardResponse;
|
7191
7183
|
|
7192
|
-
/**
|
7193
|
-
* User Profile Schemas and Types
|
7194
|
-
* Defines Zod schemas for user profile-related data
|
7195
|
-
* TypeScript types are derived from Zod schemas for type safety
|
7196
|
-
*/
|
7197
|
-
|
7198
7184
|
/**
|
7199
7185
|
* User profile schema
|
7200
7186
|
*/
|
@@ -7204,10 +7190,10 @@ declare const UserProfileSchema: z.ZodObject<{
|
|
7204
7190
|
url: z.ZodOptional<z.ZodString>;
|
7205
7191
|
profileImageUrl: z.ZodString;
|
7206
7192
|
isPremium: z.ZodOptional<z.ZodBoolean>;
|
7207
|
-
platform: z.
|
7193
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
7208
7194
|
lastUpdated: z.ZodNumber;
|
7209
7195
|
}, "strip", z.ZodTypeAny, {
|
7210
|
-
platform:
|
7196
|
+
platform: Platform;
|
7211
7197
|
userId: string;
|
7212
7198
|
username: string;
|
7213
7199
|
lastUpdated: number;
|
@@ -7215,7 +7201,7 @@ declare const UserProfileSchema: z.ZodObject<{
|
|
7215
7201
|
url?: string | undefined;
|
7216
7202
|
isPremium?: boolean | undefined;
|
7217
7203
|
}, {
|
7218
|
-
platform:
|
7204
|
+
platform: Platform;
|
7219
7205
|
userId: string;
|
7220
7206
|
username: string;
|
7221
7207
|
lastUpdated: number;
|
@@ -7234,10 +7220,10 @@ declare const ProfileRefreshResultSchema: z.ZodObject<{
|
|
7234
7220
|
url: z.ZodOptional<z.ZodString>;
|
7235
7221
|
profileImageUrl: z.ZodString;
|
7236
7222
|
isPremium: z.ZodOptional<z.ZodBoolean>;
|
7237
|
-
platform: z.
|
7223
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
7238
7224
|
lastUpdated: z.ZodNumber;
|
7239
7225
|
}, "strip", z.ZodTypeAny, {
|
7240
|
-
platform:
|
7226
|
+
platform: Platform;
|
7241
7227
|
userId: string;
|
7242
7228
|
username: string;
|
7243
7229
|
lastUpdated: number;
|
@@ -7245,7 +7231,7 @@ declare const ProfileRefreshResultSchema: z.ZodObject<{
|
|
7245
7231
|
url?: string | undefined;
|
7246
7232
|
isPremium?: boolean | undefined;
|
7247
7233
|
}, {
|
7248
|
-
platform:
|
7234
|
+
platform: Platform;
|
7249
7235
|
userId: string;
|
7250
7236
|
username: string;
|
7251
7237
|
lastUpdated: number;
|
@@ -7258,7 +7244,7 @@ declare const ProfileRefreshResultSchema: z.ZodObject<{
|
|
7258
7244
|
success: boolean;
|
7259
7245
|
error?: string | undefined;
|
7260
7246
|
profile?: {
|
7261
|
-
platform:
|
7247
|
+
platform: Platform;
|
7262
7248
|
userId: string;
|
7263
7249
|
username: string;
|
7264
7250
|
lastUpdated: number;
|
@@ -7270,7 +7256,7 @@ declare const ProfileRefreshResultSchema: z.ZodObject<{
|
|
7270
7256
|
success: boolean;
|
7271
7257
|
error?: string | undefined;
|
7272
7258
|
profile?: {
|
7273
|
-
platform:
|
7259
|
+
platform: Platform;
|
7274
7260
|
userId: string;
|
7275
7261
|
username: string;
|
7276
7262
|
lastUpdated: number;
|
@@ -7292,10 +7278,10 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
7292
7278
|
url: z.ZodOptional<z.ZodString>;
|
7293
7279
|
profileImageUrl: z.ZodString;
|
7294
7280
|
isPremium: z.ZodOptional<z.ZodBoolean>;
|
7295
|
-
platform: z.
|
7281
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
7296
7282
|
lastUpdated: z.ZodNumber;
|
7297
7283
|
}, "strip", z.ZodTypeAny, {
|
7298
|
-
platform:
|
7284
|
+
platform: Platform;
|
7299
7285
|
userId: string;
|
7300
7286
|
username: string;
|
7301
7287
|
lastUpdated: number;
|
@@ -7303,7 +7289,7 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
7303
7289
|
url?: string | undefined;
|
7304
7290
|
isPremium?: boolean | undefined;
|
7305
7291
|
}, {
|
7306
|
-
platform:
|
7292
|
+
platform: Platform;
|
7307
7293
|
userId: string;
|
7308
7294
|
username: string;
|
7309
7295
|
lastUpdated: number;
|
@@ -7316,7 +7302,7 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
7316
7302
|
success: boolean;
|
7317
7303
|
error?: string | undefined;
|
7318
7304
|
profile?: {
|
7319
|
-
platform:
|
7305
|
+
platform: Platform;
|
7320
7306
|
userId: string;
|
7321
7307
|
username: string;
|
7322
7308
|
lastUpdated: number;
|
@@ -7328,7 +7314,7 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
7328
7314
|
success: boolean;
|
7329
7315
|
error?: string | undefined;
|
7330
7316
|
profile?: {
|
7331
|
-
platform:
|
7317
|
+
platform: Platform;
|
7332
7318
|
userId: string;
|
7333
7319
|
username: string;
|
7334
7320
|
lastUpdated: number;
|
@@ -7413,7 +7399,7 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
7413
7399
|
success: boolean;
|
7414
7400
|
error?: string | undefined;
|
7415
7401
|
profile?: {
|
7416
|
-
platform:
|
7402
|
+
platform: Platform;
|
7417
7403
|
userId: string;
|
7418
7404
|
username: string;
|
7419
7405
|
lastUpdated: number;
|
@@ -7445,7 +7431,7 @@ declare const ProfileRefreshResponseSchema: z.ZodObject<{
|
|
7445
7431
|
success: boolean;
|
7446
7432
|
error?: string | undefined;
|
7447
7433
|
profile?: {
|
7448
|
-
platform:
|
7434
|
+
platform: Platform;
|
7449
7435
|
userId: string;
|
7450
7436
|
username: string;
|
7451
7437
|
lastUpdated: number;
|
@@ -7477,4 +7463,4 @@ type UserProfile = z.infer<typeof UserProfileSchema>;
|
|
7477
7463
|
type ProfileRefreshResult = z.infer<typeof ProfileRefreshResultSchema>;
|
7478
7464
|
type ProfileRefreshResponse = z.infer<typeof ProfileRefreshResponseSchema>;
|
7479
7465
|
|
7480
|
-
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, type SuccessDetail, SuccessDetailSchema, type Target, TargetSchema, TimePeriod, 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 };
|