@postrun/react 2.12.0 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +204 -177
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2418 -137
- package/dist/index.d.ts +2418 -137
- package/dist/index.js +204 -178
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, CSSProperties } from 'react';
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
4
|
import { QueryClient, QueryKey } from '@tanstack/react-query';
|
|
5
|
-
import { PostrunClient, ListProfilesQuery, DiscoverableAccountList, Connection, ConnectionKind, ConnectionStatus, ListMediaQuery, ListPostsQuery, ConnectablePlatform, MediaResource, MediaTarget, Metadata, ComposePostInput, PostValidation, MediaKind, InstagramPostVariant, PostVariant, LinkedInPostVariant, TikTokPostVariant, XPostVariant, XPoll as XPoll$1, TikTokCreatorInfo, TikTokOptionsValue } from '@postrun/js';
|
|
5
|
+
import { PostrunClient, ListProfilesQuery, DiscoverableAccountList, Connection, ConnectionKind, ConnectionStatus, ListMediaQuery, ListPostsQuery, ConnectablePlatform, MediaResource, MediaTarget, Metadata, ComposePostInput, PostValidation, MediaKind, InstagramPostVariant, PostVariant, LinkedInPostVariant, TikTokPostVariant, XPostVariant, PostVariantInput, XPoll as XPoll$1, TikTokCreatorInfo, TikTokOptionsValue } from '@postrun/js';
|
|
6
6
|
export { PostValidation, PostVariant, PostVariantError, TIKTOK_CAPTION_MAX, TikTokCreatorInfo, UploadError, ValidationIssue, captionMaxFor } from '@postrun/js';
|
|
7
7
|
import { TwitterComponents } from 'react-tweet';
|
|
8
8
|
|
|
@@ -1017,6 +1017,52 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
|
|
|
1017
1017
|
[key: string]: unknown;
|
|
1018
1018
|
} | null;
|
|
1019
1019
|
alt_text_override: string | null;
|
|
1020
|
+
media: {
|
|
1021
|
+
id: string;
|
|
1022
|
+
object: "media";
|
|
1023
|
+
profile_id: string;
|
|
1024
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
1025
|
+
content_type: string | null;
|
|
1026
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
1027
|
+
progress: {
|
|
1028
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
1029
|
+
percent: number;
|
|
1030
|
+
};
|
|
1031
|
+
raw: boolean;
|
|
1032
|
+
error: {
|
|
1033
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
1034
|
+
message: string;
|
|
1035
|
+
hint?: string;
|
|
1036
|
+
allowed?: Array<unknown | null>;
|
|
1037
|
+
got?: string;
|
|
1038
|
+
display_error: string;
|
|
1039
|
+
} | null;
|
|
1040
|
+
source: {
|
|
1041
|
+
format: string;
|
|
1042
|
+
bytes: number;
|
|
1043
|
+
width: number | null;
|
|
1044
|
+
height: number | null;
|
|
1045
|
+
duration_ms: number | null;
|
|
1046
|
+
} | null;
|
|
1047
|
+
alt_text: string | null;
|
|
1048
|
+
per_platform: {
|
|
1049
|
+
[key: string]: {
|
|
1050
|
+
status?: unknown;
|
|
1051
|
+
url?: unknown;
|
|
1052
|
+
width?: unknown;
|
|
1053
|
+
height?: unknown;
|
|
1054
|
+
bytes?: unknown;
|
|
1055
|
+
warnings?: unknown;
|
|
1056
|
+
errors?: unknown;
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
external_id: string | null;
|
|
1060
|
+
metadata: {
|
|
1061
|
+
[key: string]: unknown;
|
|
1062
|
+
};
|
|
1063
|
+
created_at: string;
|
|
1064
|
+
updated_at: string;
|
|
1065
|
+
};
|
|
1020
1066
|
}>;
|
|
1021
1067
|
} | {
|
|
1022
1068
|
platform: "linkedin";
|
|
@@ -1068,6 +1114,52 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
|
|
|
1068
1114
|
[key: string]: unknown;
|
|
1069
1115
|
} | null;
|
|
1070
1116
|
alt_text_override: string | null;
|
|
1117
|
+
media: {
|
|
1118
|
+
id: string;
|
|
1119
|
+
object: "media";
|
|
1120
|
+
profile_id: string;
|
|
1121
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
1122
|
+
content_type: string | null;
|
|
1123
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
1124
|
+
progress: {
|
|
1125
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
1126
|
+
percent: number;
|
|
1127
|
+
};
|
|
1128
|
+
raw: boolean;
|
|
1129
|
+
error: {
|
|
1130
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
1131
|
+
message: string;
|
|
1132
|
+
hint?: string;
|
|
1133
|
+
allowed?: Array<unknown | null>;
|
|
1134
|
+
got?: string;
|
|
1135
|
+
display_error: string;
|
|
1136
|
+
} | null;
|
|
1137
|
+
source: {
|
|
1138
|
+
format: string;
|
|
1139
|
+
bytes: number;
|
|
1140
|
+
width: number | null;
|
|
1141
|
+
height: number | null;
|
|
1142
|
+
duration_ms: number | null;
|
|
1143
|
+
} | null;
|
|
1144
|
+
alt_text: string | null;
|
|
1145
|
+
per_platform: {
|
|
1146
|
+
[key: string]: {
|
|
1147
|
+
status?: unknown;
|
|
1148
|
+
url?: unknown;
|
|
1149
|
+
width?: unknown;
|
|
1150
|
+
height?: unknown;
|
|
1151
|
+
bytes?: unknown;
|
|
1152
|
+
warnings?: unknown;
|
|
1153
|
+
errors?: unknown;
|
|
1154
|
+
};
|
|
1155
|
+
};
|
|
1156
|
+
external_id: string | null;
|
|
1157
|
+
metadata: {
|
|
1158
|
+
[key: string]: unknown;
|
|
1159
|
+
};
|
|
1160
|
+
created_at: string;
|
|
1161
|
+
updated_at: string;
|
|
1162
|
+
};
|
|
1071
1163
|
}>;
|
|
1072
1164
|
} | {
|
|
1073
1165
|
platform: "facebook_page";
|
|
@@ -1098,6 +1190,52 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
|
|
|
1098
1190
|
[key: string]: unknown;
|
|
1099
1191
|
} | null;
|
|
1100
1192
|
alt_text_override: string | null;
|
|
1193
|
+
media: {
|
|
1194
|
+
id: string;
|
|
1195
|
+
object: "media";
|
|
1196
|
+
profile_id: string;
|
|
1197
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
1198
|
+
content_type: string | null;
|
|
1199
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
1200
|
+
progress: {
|
|
1201
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
1202
|
+
percent: number;
|
|
1203
|
+
};
|
|
1204
|
+
raw: boolean;
|
|
1205
|
+
error: {
|
|
1206
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
1207
|
+
message: string;
|
|
1208
|
+
hint?: string;
|
|
1209
|
+
allowed?: Array<unknown | null>;
|
|
1210
|
+
got?: string;
|
|
1211
|
+
display_error: string;
|
|
1212
|
+
} | null;
|
|
1213
|
+
source: {
|
|
1214
|
+
format: string;
|
|
1215
|
+
bytes: number;
|
|
1216
|
+
width: number | null;
|
|
1217
|
+
height: number | null;
|
|
1218
|
+
duration_ms: number | null;
|
|
1219
|
+
} | null;
|
|
1220
|
+
alt_text: string | null;
|
|
1221
|
+
per_platform: {
|
|
1222
|
+
[key: string]: {
|
|
1223
|
+
status?: unknown;
|
|
1224
|
+
url?: unknown;
|
|
1225
|
+
width?: unknown;
|
|
1226
|
+
height?: unknown;
|
|
1227
|
+
bytes?: unknown;
|
|
1228
|
+
warnings?: unknown;
|
|
1229
|
+
errors?: unknown;
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
external_id: string | null;
|
|
1233
|
+
metadata: {
|
|
1234
|
+
[key: string]: unknown;
|
|
1235
|
+
};
|
|
1236
|
+
created_at: string;
|
|
1237
|
+
updated_at: string;
|
|
1238
|
+
};
|
|
1101
1239
|
}>;
|
|
1102
1240
|
} | {
|
|
1103
1241
|
platform: "instagram";
|
|
@@ -1139,6 +1277,52 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
|
|
|
1139
1277
|
[key: string]: unknown;
|
|
1140
1278
|
} | null;
|
|
1141
1279
|
alt_text_override: string | null;
|
|
1280
|
+
media: {
|
|
1281
|
+
id: string;
|
|
1282
|
+
object: "media";
|
|
1283
|
+
profile_id: string;
|
|
1284
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
1285
|
+
content_type: string | null;
|
|
1286
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
1287
|
+
progress: {
|
|
1288
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
1289
|
+
percent: number;
|
|
1290
|
+
};
|
|
1291
|
+
raw: boolean;
|
|
1292
|
+
error: {
|
|
1293
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
1294
|
+
message: string;
|
|
1295
|
+
hint?: string;
|
|
1296
|
+
allowed?: Array<unknown | null>;
|
|
1297
|
+
got?: string;
|
|
1298
|
+
display_error: string;
|
|
1299
|
+
} | null;
|
|
1300
|
+
source: {
|
|
1301
|
+
format: string;
|
|
1302
|
+
bytes: number;
|
|
1303
|
+
width: number | null;
|
|
1304
|
+
height: number | null;
|
|
1305
|
+
duration_ms: number | null;
|
|
1306
|
+
} | null;
|
|
1307
|
+
alt_text: string | null;
|
|
1308
|
+
per_platform: {
|
|
1309
|
+
[key: string]: {
|
|
1310
|
+
status?: unknown;
|
|
1311
|
+
url?: unknown;
|
|
1312
|
+
width?: unknown;
|
|
1313
|
+
height?: unknown;
|
|
1314
|
+
bytes?: unknown;
|
|
1315
|
+
warnings?: unknown;
|
|
1316
|
+
errors?: unknown;
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
external_id: string | null;
|
|
1320
|
+
metadata: {
|
|
1321
|
+
[key: string]: unknown;
|
|
1322
|
+
};
|
|
1323
|
+
created_at: string;
|
|
1324
|
+
updated_at: string;
|
|
1325
|
+
};
|
|
1142
1326
|
}>;
|
|
1143
1327
|
} | {
|
|
1144
1328
|
platform: "tiktok";
|
|
@@ -1178,6 +1362,52 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
|
|
|
1178
1362
|
[key: string]: unknown;
|
|
1179
1363
|
} | null;
|
|
1180
1364
|
alt_text_override: string | null;
|
|
1365
|
+
media: {
|
|
1366
|
+
id: string;
|
|
1367
|
+
object: "media";
|
|
1368
|
+
profile_id: string;
|
|
1369
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
1370
|
+
content_type: string | null;
|
|
1371
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
1372
|
+
progress: {
|
|
1373
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
1374
|
+
percent: number;
|
|
1375
|
+
};
|
|
1376
|
+
raw: boolean;
|
|
1377
|
+
error: {
|
|
1378
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
1379
|
+
message: string;
|
|
1380
|
+
hint?: string;
|
|
1381
|
+
allowed?: Array<unknown | null>;
|
|
1382
|
+
got?: string;
|
|
1383
|
+
display_error: string;
|
|
1384
|
+
} | null;
|
|
1385
|
+
source: {
|
|
1386
|
+
format: string;
|
|
1387
|
+
bytes: number;
|
|
1388
|
+
width: number | null;
|
|
1389
|
+
height: number | null;
|
|
1390
|
+
duration_ms: number | null;
|
|
1391
|
+
} | null;
|
|
1392
|
+
alt_text: string | null;
|
|
1393
|
+
per_platform: {
|
|
1394
|
+
[key: string]: {
|
|
1395
|
+
status?: unknown;
|
|
1396
|
+
url?: unknown;
|
|
1397
|
+
width?: unknown;
|
|
1398
|
+
height?: unknown;
|
|
1399
|
+
bytes?: unknown;
|
|
1400
|
+
warnings?: unknown;
|
|
1401
|
+
errors?: unknown;
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1404
|
+
external_id: string | null;
|
|
1405
|
+
metadata: {
|
|
1406
|
+
[key: string]: unknown;
|
|
1407
|
+
};
|
|
1408
|
+
created_at: string;
|
|
1409
|
+
updated_at: string;
|
|
1410
|
+
};
|
|
1181
1411
|
}>;
|
|
1182
1412
|
}>;
|
|
1183
1413
|
created_at: string;
|
|
@@ -1257,6 +1487,66 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
|
|
|
1257
1487
|
[key: string]: unknown;
|
|
1258
1488
|
} | null;
|
|
1259
1489
|
alt_text_override: string | null;
|
|
1490
|
+
media: {
|
|
1491
|
+
id: string;
|
|
1492
|
+
object: "media";
|
|
1493
|
+
profile_id: string;
|
|
1494
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
1495
|
+
content_type: string | null;
|
|
1496
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
1497
|
+
progress: {
|
|
1498
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
1499
|
+
percent: number;
|
|
1500
|
+
};
|
|
1501
|
+
raw: boolean;
|
|
1502
|
+
error: {
|
|
1503
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
1504
|
+
message: string;
|
|
1505
|
+
hint?: string;
|
|
1506
|
+
allowed?: Array<string>;
|
|
1507
|
+
got?: string;
|
|
1508
|
+
display_error: string;
|
|
1509
|
+
} | null;
|
|
1510
|
+
source: {
|
|
1511
|
+
format: string;
|
|
1512
|
+
bytes: number;
|
|
1513
|
+
width: number | null;
|
|
1514
|
+
height: number | null;
|
|
1515
|
+
duration_ms: number | null;
|
|
1516
|
+
} | null;
|
|
1517
|
+
alt_text: string | null;
|
|
1518
|
+
per_platform: {
|
|
1519
|
+
[key: string]: {
|
|
1520
|
+
status: "processing" | "ready" | "failed";
|
|
1521
|
+
url: string | null;
|
|
1522
|
+
width: number | null;
|
|
1523
|
+
height: number | null;
|
|
1524
|
+
bytes: number | null;
|
|
1525
|
+
warnings: Array<{
|
|
1526
|
+
code?: unknown;
|
|
1527
|
+
message?: unknown;
|
|
1528
|
+
hint?: unknown;
|
|
1529
|
+
allowed?: unknown;
|
|
1530
|
+
got?: unknown;
|
|
1531
|
+
display_error?: unknown;
|
|
1532
|
+
}>;
|
|
1533
|
+
errors: Array<{
|
|
1534
|
+
code?: unknown;
|
|
1535
|
+
message?: unknown;
|
|
1536
|
+
hint?: unknown;
|
|
1537
|
+
allowed?: unknown;
|
|
1538
|
+
got?: unknown;
|
|
1539
|
+
display_error?: unknown;
|
|
1540
|
+
}>;
|
|
1541
|
+
};
|
|
1542
|
+
};
|
|
1543
|
+
external_id: string | null;
|
|
1544
|
+
metadata: {
|
|
1545
|
+
[key: string]: string | number | boolean;
|
|
1546
|
+
};
|
|
1547
|
+
created_at: string;
|
|
1548
|
+
updated_at: string;
|
|
1549
|
+
};
|
|
1260
1550
|
}>;
|
|
1261
1551
|
} | {
|
|
1262
1552
|
platform: "linkedin";
|
|
@@ -1308,6 +1598,66 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
|
|
|
1308
1598
|
[key: string]: unknown;
|
|
1309
1599
|
} | null;
|
|
1310
1600
|
alt_text_override: string | null;
|
|
1601
|
+
media: {
|
|
1602
|
+
id: string;
|
|
1603
|
+
object: "media";
|
|
1604
|
+
profile_id: string;
|
|
1605
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
1606
|
+
content_type: string | null;
|
|
1607
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
1608
|
+
progress: {
|
|
1609
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
1610
|
+
percent: number;
|
|
1611
|
+
};
|
|
1612
|
+
raw: boolean;
|
|
1613
|
+
error: {
|
|
1614
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
1615
|
+
message: string;
|
|
1616
|
+
hint?: string;
|
|
1617
|
+
allowed?: Array<string>;
|
|
1618
|
+
got?: string;
|
|
1619
|
+
display_error: string;
|
|
1620
|
+
} | null;
|
|
1621
|
+
source: {
|
|
1622
|
+
format: string;
|
|
1623
|
+
bytes: number;
|
|
1624
|
+
width: number | null;
|
|
1625
|
+
height: number | null;
|
|
1626
|
+
duration_ms: number | null;
|
|
1627
|
+
} | null;
|
|
1628
|
+
alt_text: string | null;
|
|
1629
|
+
per_platform: {
|
|
1630
|
+
[key: string]: {
|
|
1631
|
+
status: "processing" | "ready" | "failed";
|
|
1632
|
+
url: string | null;
|
|
1633
|
+
width: number | null;
|
|
1634
|
+
height: number | null;
|
|
1635
|
+
bytes: number | null;
|
|
1636
|
+
warnings: Array<{
|
|
1637
|
+
code?: unknown;
|
|
1638
|
+
message?: unknown;
|
|
1639
|
+
hint?: unknown;
|
|
1640
|
+
allowed?: unknown;
|
|
1641
|
+
got?: unknown;
|
|
1642
|
+
display_error?: unknown;
|
|
1643
|
+
}>;
|
|
1644
|
+
errors: Array<{
|
|
1645
|
+
code?: unknown;
|
|
1646
|
+
message?: unknown;
|
|
1647
|
+
hint?: unknown;
|
|
1648
|
+
allowed?: unknown;
|
|
1649
|
+
got?: unknown;
|
|
1650
|
+
display_error?: unknown;
|
|
1651
|
+
}>;
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1654
|
+
external_id: string | null;
|
|
1655
|
+
metadata: {
|
|
1656
|
+
[key: string]: string | number | boolean;
|
|
1657
|
+
};
|
|
1658
|
+
created_at: string;
|
|
1659
|
+
updated_at: string;
|
|
1660
|
+
};
|
|
1311
1661
|
}>;
|
|
1312
1662
|
} | {
|
|
1313
1663
|
platform: "facebook_page";
|
|
@@ -1338,6 +1688,66 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
|
|
|
1338
1688
|
[key: string]: unknown;
|
|
1339
1689
|
} | null;
|
|
1340
1690
|
alt_text_override: string | null;
|
|
1691
|
+
media: {
|
|
1692
|
+
id: string;
|
|
1693
|
+
object: "media";
|
|
1694
|
+
profile_id: string;
|
|
1695
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
1696
|
+
content_type: string | null;
|
|
1697
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
1698
|
+
progress: {
|
|
1699
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
1700
|
+
percent: number;
|
|
1701
|
+
};
|
|
1702
|
+
raw: boolean;
|
|
1703
|
+
error: {
|
|
1704
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
1705
|
+
message: string;
|
|
1706
|
+
hint?: string;
|
|
1707
|
+
allowed?: Array<string>;
|
|
1708
|
+
got?: string;
|
|
1709
|
+
display_error: string;
|
|
1710
|
+
} | null;
|
|
1711
|
+
source: {
|
|
1712
|
+
format: string;
|
|
1713
|
+
bytes: number;
|
|
1714
|
+
width: number | null;
|
|
1715
|
+
height: number | null;
|
|
1716
|
+
duration_ms: number | null;
|
|
1717
|
+
} | null;
|
|
1718
|
+
alt_text: string | null;
|
|
1719
|
+
per_platform: {
|
|
1720
|
+
[key: string]: {
|
|
1721
|
+
status: "processing" | "ready" | "failed";
|
|
1722
|
+
url: string | null;
|
|
1723
|
+
width: number | null;
|
|
1724
|
+
height: number | null;
|
|
1725
|
+
bytes: number | null;
|
|
1726
|
+
warnings: Array<{
|
|
1727
|
+
code?: unknown;
|
|
1728
|
+
message?: unknown;
|
|
1729
|
+
hint?: unknown;
|
|
1730
|
+
allowed?: unknown;
|
|
1731
|
+
got?: unknown;
|
|
1732
|
+
display_error?: unknown;
|
|
1733
|
+
}>;
|
|
1734
|
+
errors: Array<{
|
|
1735
|
+
code?: unknown;
|
|
1736
|
+
message?: unknown;
|
|
1737
|
+
hint?: unknown;
|
|
1738
|
+
allowed?: unknown;
|
|
1739
|
+
got?: unknown;
|
|
1740
|
+
display_error?: unknown;
|
|
1741
|
+
}>;
|
|
1742
|
+
};
|
|
1743
|
+
};
|
|
1744
|
+
external_id: string | null;
|
|
1745
|
+
metadata: {
|
|
1746
|
+
[key: string]: string | number | boolean;
|
|
1747
|
+
};
|
|
1748
|
+
created_at: string;
|
|
1749
|
+
updated_at: string;
|
|
1750
|
+
};
|
|
1341
1751
|
}>;
|
|
1342
1752
|
} | {
|
|
1343
1753
|
platform: "instagram";
|
|
@@ -1379,6 +1789,66 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
|
|
|
1379
1789
|
[key: string]: unknown;
|
|
1380
1790
|
} | null;
|
|
1381
1791
|
alt_text_override: string | null;
|
|
1792
|
+
media: {
|
|
1793
|
+
id: string;
|
|
1794
|
+
object: "media";
|
|
1795
|
+
profile_id: string;
|
|
1796
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
1797
|
+
content_type: string | null;
|
|
1798
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
1799
|
+
progress: {
|
|
1800
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
1801
|
+
percent: number;
|
|
1802
|
+
};
|
|
1803
|
+
raw: boolean;
|
|
1804
|
+
error: {
|
|
1805
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
1806
|
+
message: string;
|
|
1807
|
+
hint?: string;
|
|
1808
|
+
allowed?: Array<string>;
|
|
1809
|
+
got?: string;
|
|
1810
|
+
display_error: string;
|
|
1811
|
+
} | null;
|
|
1812
|
+
source: {
|
|
1813
|
+
format: string;
|
|
1814
|
+
bytes: number;
|
|
1815
|
+
width: number | null;
|
|
1816
|
+
height: number | null;
|
|
1817
|
+
duration_ms: number | null;
|
|
1818
|
+
} | null;
|
|
1819
|
+
alt_text: string | null;
|
|
1820
|
+
per_platform: {
|
|
1821
|
+
[key: string]: {
|
|
1822
|
+
status: "processing" | "ready" | "failed";
|
|
1823
|
+
url: string | null;
|
|
1824
|
+
width: number | null;
|
|
1825
|
+
height: number | null;
|
|
1826
|
+
bytes: number | null;
|
|
1827
|
+
warnings: Array<{
|
|
1828
|
+
code?: unknown;
|
|
1829
|
+
message?: unknown;
|
|
1830
|
+
hint?: unknown;
|
|
1831
|
+
allowed?: unknown;
|
|
1832
|
+
got?: unknown;
|
|
1833
|
+
display_error?: unknown;
|
|
1834
|
+
}>;
|
|
1835
|
+
errors: Array<{
|
|
1836
|
+
code?: unknown;
|
|
1837
|
+
message?: unknown;
|
|
1838
|
+
hint?: unknown;
|
|
1839
|
+
allowed?: unknown;
|
|
1840
|
+
got?: unknown;
|
|
1841
|
+
display_error?: unknown;
|
|
1842
|
+
}>;
|
|
1843
|
+
};
|
|
1844
|
+
};
|
|
1845
|
+
external_id: string | null;
|
|
1846
|
+
metadata: {
|
|
1847
|
+
[key: string]: string | number | boolean;
|
|
1848
|
+
};
|
|
1849
|
+
created_at: string;
|
|
1850
|
+
updated_at: string;
|
|
1851
|
+
};
|
|
1382
1852
|
}>;
|
|
1383
1853
|
} | {
|
|
1384
1854
|
platform: "tiktok";
|
|
@@ -1418,6 +1888,66 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
|
|
|
1418
1888
|
[key: string]: unknown;
|
|
1419
1889
|
} | null;
|
|
1420
1890
|
alt_text_override: string | null;
|
|
1891
|
+
media: {
|
|
1892
|
+
id: string;
|
|
1893
|
+
object: "media";
|
|
1894
|
+
profile_id: string;
|
|
1895
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
1896
|
+
content_type: string | null;
|
|
1897
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
1898
|
+
progress: {
|
|
1899
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
1900
|
+
percent: number;
|
|
1901
|
+
};
|
|
1902
|
+
raw: boolean;
|
|
1903
|
+
error: {
|
|
1904
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
1905
|
+
message: string;
|
|
1906
|
+
hint?: string;
|
|
1907
|
+
allowed?: Array<string>;
|
|
1908
|
+
got?: string;
|
|
1909
|
+
display_error: string;
|
|
1910
|
+
} | null;
|
|
1911
|
+
source: {
|
|
1912
|
+
format: string;
|
|
1913
|
+
bytes: number;
|
|
1914
|
+
width: number | null;
|
|
1915
|
+
height: number | null;
|
|
1916
|
+
duration_ms: number | null;
|
|
1917
|
+
} | null;
|
|
1918
|
+
alt_text: string | null;
|
|
1919
|
+
per_platform: {
|
|
1920
|
+
[key: string]: {
|
|
1921
|
+
status: "processing" | "ready" | "failed";
|
|
1922
|
+
url: string | null;
|
|
1923
|
+
width: number | null;
|
|
1924
|
+
height: number | null;
|
|
1925
|
+
bytes: number | null;
|
|
1926
|
+
warnings: Array<{
|
|
1927
|
+
code?: unknown;
|
|
1928
|
+
message?: unknown;
|
|
1929
|
+
hint?: unknown;
|
|
1930
|
+
allowed?: unknown;
|
|
1931
|
+
got?: unknown;
|
|
1932
|
+
display_error?: unknown;
|
|
1933
|
+
}>;
|
|
1934
|
+
errors: Array<{
|
|
1935
|
+
code?: unknown;
|
|
1936
|
+
message?: unknown;
|
|
1937
|
+
hint?: unknown;
|
|
1938
|
+
allowed?: unknown;
|
|
1939
|
+
got?: unknown;
|
|
1940
|
+
display_error?: unknown;
|
|
1941
|
+
}>;
|
|
1942
|
+
};
|
|
1943
|
+
};
|
|
1944
|
+
external_id: string | null;
|
|
1945
|
+
metadata: {
|
|
1946
|
+
[key: string]: string | number | boolean;
|
|
1947
|
+
};
|
|
1948
|
+
created_at: string;
|
|
1949
|
+
updated_at: string;
|
|
1950
|
+
};
|
|
1421
1951
|
}>;
|
|
1422
1952
|
}>;
|
|
1423
1953
|
created_at: string;
|
|
@@ -1496,6 +2026,52 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
|
|
|
1496
2026
|
[key: string]: unknown;
|
|
1497
2027
|
} | null;
|
|
1498
2028
|
alt_text_override: string | null;
|
|
2029
|
+
media: {
|
|
2030
|
+
id: string;
|
|
2031
|
+
object: "media";
|
|
2032
|
+
profile_id: string;
|
|
2033
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
2034
|
+
content_type: string | null;
|
|
2035
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
2036
|
+
progress: {
|
|
2037
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
2038
|
+
percent: number;
|
|
2039
|
+
};
|
|
2040
|
+
raw: boolean;
|
|
2041
|
+
error: {
|
|
2042
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
2043
|
+
message: string;
|
|
2044
|
+
hint?: string;
|
|
2045
|
+
allowed?: Array<unknown | null>;
|
|
2046
|
+
got?: string;
|
|
2047
|
+
display_error: string;
|
|
2048
|
+
} | null;
|
|
2049
|
+
source: {
|
|
2050
|
+
format: string;
|
|
2051
|
+
bytes: number;
|
|
2052
|
+
width: number | null;
|
|
2053
|
+
height: number | null;
|
|
2054
|
+
duration_ms: number | null;
|
|
2055
|
+
} | null;
|
|
2056
|
+
alt_text: string | null;
|
|
2057
|
+
per_platform: {
|
|
2058
|
+
[key: string]: {
|
|
2059
|
+
status?: unknown;
|
|
2060
|
+
url?: unknown;
|
|
2061
|
+
width?: unknown;
|
|
2062
|
+
height?: unknown;
|
|
2063
|
+
bytes?: unknown;
|
|
2064
|
+
warnings?: unknown;
|
|
2065
|
+
errors?: unknown;
|
|
2066
|
+
};
|
|
2067
|
+
};
|
|
2068
|
+
external_id: string | null;
|
|
2069
|
+
metadata: {
|
|
2070
|
+
[key: string]: unknown;
|
|
2071
|
+
};
|
|
2072
|
+
created_at: string;
|
|
2073
|
+
updated_at: string;
|
|
2074
|
+
};
|
|
1499
2075
|
}>;
|
|
1500
2076
|
} | {
|
|
1501
2077
|
platform: "linkedin";
|
|
@@ -1547,6 +2123,52 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
|
|
|
1547
2123
|
[key: string]: unknown;
|
|
1548
2124
|
} | null;
|
|
1549
2125
|
alt_text_override: string | null;
|
|
2126
|
+
media: {
|
|
2127
|
+
id: string;
|
|
2128
|
+
object: "media";
|
|
2129
|
+
profile_id: string;
|
|
2130
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
2131
|
+
content_type: string | null;
|
|
2132
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
2133
|
+
progress: {
|
|
2134
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
2135
|
+
percent: number;
|
|
2136
|
+
};
|
|
2137
|
+
raw: boolean;
|
|
2138
|
+
error: {
|
|
2139
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
2140
|
+
message: string;
|
|
2141
|
+
hint?: string;
|
|
2142
|
+
allowed?: Array<unknown | null>;
|
|
2143
|
+
got?: string;
|
|
2144
|
+
display_error: string;
|
|
2145
|
+
} | null;
|
|
2146
|
+
source: {
|
|
2147
|
+
format: string;
|
|
2148
|
+
bytes: number;
|
|
2149
|
+
width: number | null;
|
|
2150
|
+
height: number | null;
|
|
2151
|
+
duration_ms: number | null;
|
|
2152
|
+
} | null;
|
|
2153
|
+
alt_text: string | null;
|
|
2154
|
+
per_platform: {
|
|
2155
|
+
[key: string]: {
|
|
2156
|
+
status?: unknown;
|
|
2157
|
+
url?: unknown;
|
|
2158
|
+
width?: unknown;
|
|
2159
|
+
height?: unknown;
|
|
2160
|
+
bytes?: unknown;
|
|
2161
|
+
warnings?: unknown;
|
|
2162
|
+
errors?: unknown;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
external_id: string | null;
|
|
2166
|
+
metadata: {
|
|
2167
|
+
[key: string]: unknown;
|
|
2168
|
+
};
|
|
2169
|
+
created_at: string;
|
|
2170
|
+
updated_at: string;
|
|
2171
|
+
};
|
|
1550
2172
|
}>;
|
|
1551
2173
|
} | {
|
|
1552
2174
|
platform: "facebook_page";
|
|
@@ -1577,6 +2199,52 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
|
|
|
1577
2199
|
[key: string]: unknown;
|
|
1578
2200
|
} | null;
|
|
1579
2201
|
alt_text_override: string | null;
|
|
2202
|
+
media: {
|
|
2203
|
+
id: string;
|
|
2204
|
+
object: "media";
|
|
2205
|
+
profile_id: string;
|
|
2206
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
2207
|
+
content_type: string | null;
|
|
2208
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
2209
|
+
progress: {
|
|
2210
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
2211
|
+
percent: number;
|
|
2212
|
+
};
|
|
2213
|
+
raw: boolean;
|
|
2214
|
+
error: {
|
|
2215
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
2216
|
+
message: string;
|
|
2217
|
+
hint?: string;
|
|
2218
|
+
allowed?: Array<unknown | null>;
|
|
2219
|
+
got?: string;
|
|
2220
|
+
display_error: string;
|
|
2221
|
+
} | null;
|
|
2222
|
+
source: {
|
|
2223
|
+
format: string;
|
|
2224
|
+
bytes: number;
|
|
2225
|
+
width: number | null;
|
|
2226
|
+
height: number | null;
|
|
2227
|
+
duration_ms: number | null;
|
|
2228
|
+
} | null;
|
|
2229
|
+
alt_text: string | null;
|
|
2230
|
+
per_platform: {
|
|
2231
|
+
[key: string]: {
|
|
2232
|
+
status?: unknown;
|
|
2233
|
+
url?: unknown;
|
|
2234
|
+
width?: unknown;
|
|
2235
|
+
height?: unknown;
|
|
2236
|
+
bytes?: unknown;
|
|
2237
|
+
warnings?: unknown;
|
|
2238
|
+
errors?: unknown;
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2241
|
+
external_id: string | null;
|
|
2242
|
+
metadata: {
|
|
2243
|
+
[key: string]: unknown;
|
|
2244
|
+
};
|
|
2245
|
+
created_at: string;
|
|
2246
|
+
updated_at: string;
|
|
2247
|
+
};
|
|
1580
2248
|
}>;
|
|
1581
2249
|
} | {
|
|
1582
2250
|
platform: "instagram";
|
|
@@ -1618,6 +2286,52 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
|
|
|
1618
2286
|
[key: string]: unknown;
|
|
1619
2287
|
} | null;
|
|
1620
2288
|
alt_text_override: string | null;
|
|
2289
|
+
media: {
|
|
2290
|
+
id: string;
|
|
2291
|
+
object: "media";
|
|
2292
|
+
profile_id: string;
|
|
2293
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
2294
|
+
content_type: string | null;
|
|
2295
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
2296
|
+
progress: {
|
|
2297
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
2298
|
+
percent: number;
|
|
2299
|
+
};
|
|
2300
|
+
raw: boolean;
|
|
2301
|
+
error: {
|
|
2302
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
2303
|
+
message: string;
|
|
2304
|
+
hint?: string;
|
|
2305
|
+
allowed?: Array<unknown | null>;
|
|
2306
|
+
got?: string;
|
|
2307
|
+
display_error: string;
|
|
2308
|
+
} | null;
|
|
2309
|
+
source: {
|
|
2310
|
+
format: string;
|
|
2311
|
+
bytes: number;
|
|
2312
|
+
width: number | null;
|
|
2313
|
+
height: number | null;
|
|
2314
|
+
duration_ms: number | null;
|
|
2315
|
+
} | null;
|
|
2316
|
+
alt_text: string | null;
|
|
2317
|
+
per_platform: {
|
|
2318
|
+
[key: string]: {
|
|
2319
|
+
status?: unknown;
|
|
2320
|
+
url?: unknown;
|
|
2321
|
+
width?: unknown;
|
|
2322
|
+
height?: unknown;
|
|
2323
|
+
bytes?: unknown;
|
|
2324
|
+
warnings?: unknown;
|
|
2325
|
+
errors?: unknown;
|
|
2326
|
+
};
|
|
2327
|
+
};
|
|
2328
|
+
external_id: string | null;
|
|
2329
|
+
metadata: {
|
|
2330
|
+
[key: string]: unknown;
|
|
2331
|
+
};
|
|
2332
|
+
created_at: string;
|
|
2333
|
+
updated_at: string;
|
|
2334
|
+
};
|
|
1621
2335
|
}>;
|
|
1622
2336
|
} | {
|
|
1623
2337
|
platform: "tiktok";
|
|
@@ -1657,6 +2371,52 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
|
|
|
1657
2371
|
[key: string]: unknown;
|
|
1658
2372
|
} | null;
|
|
1659
2373
|
alt_text_override: string | null;
|
|
2374
|
+
media: {
|
|
2375
|
+
id: string;
|
|
2376
|
+
object: "media";
|
|
2377
|
+
profile_id: string;
|
|
2378
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
2379
|
+
content_type: string | null;
|
|
2380
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
2381
|
+
progress: {
|
|
2382
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
2383
|
+
percent: number;
|
|
2384
|
+
};
|
|
2385
|
+
raw: boolean;
|
|
2386
|
+
error: {
|
|
2387
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
2388
|
+
message: string;
|
|
2389
|
+
hint?: string;
|
|
2390
|
+
allowed?: Array<unknown | null>;
|
|
2391
|
+
got?: string;
|
|
2392
|
+
display_error: string;
|
|
2393
|
+
} | null;
|
|
2394
|
+
source: {
|
|
2395
|
+
format: string;
|
|
2396
|
+
bytes: number;
|
|
2397
|
+
width: number | null;
|
|
2398
|
+
height: number | null;
|
|
2399
|
+
duration_ms: number | null;
|
|
2400
|
+
} | null;
|
|
2401
|
+
alt_text: string | null;
|
|
2402
|
+
per_platform: {
|
|
2403
|
+
[key: string]: {
|
|
2404
|
+
status?: unknown;
|
|
2405
|
+
url?: unknown;
|
|
2406
|
+
width?: unknown;
|
|
2407
|
+
height?: unknown;
|
|
2408
|
+
bytes?: unknown;
|
|
2409
|
+
warnings?: unknown;
|
|
2410
|
+
errors?: unknown;
|
|
2411
|
+
};
|
|
2412
|
+
};
|
|
2413
|
+
external_id: string | null;
|
|
2414
|
+
metadata: {
|
|
2415
|
+
[key: string]: unknown;
|
|
2416
|
+
};
|
|
2417
|
+
created_at: string;
|
|
2418
|
+
updated_at: string;
|
|
2419
|
+
};
|
|
1660
2420
|
}>;
|
|
1661
2421
|
}>;
|
|
1662
2422
|
created_at: string;
|
|
@@ -1733,6 +2493,66 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
|
|
|
1733
2493
|
[key: string]: unknown;
|
|
1734
2494
|
} | null;
|
|
1735
2495
|
alt_text_override: string | null;
|
|
2496
|
+
media: {
|
|
2497
|
+
id: string;
|
|
2498
|
+
object: "media";
|
|
2499
|
+
profile_id: string;
|
|
2500
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
2501
|
+
content_type: string | null;
|
|
2502
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
2503
|
+
progress: {
|
|
2504
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
2505
|
+
percent: number;
|
|
2506
|
+
};
|
|
2507
|
+
raw: boolean;
|
|
2508
|
+
error: {
|
|
2509
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
2510
|
+
message: string;
|
|
2511
|
+
hint?: string;
|
|
2512
|
+
allowed?: Array<string>;
|
|
2513
|
+
got?: string;
|
|
2514
|
+
display_error: string;
|
|
2515
|
+
} | null;
|
|
2516
|
+
source: {
|
|
2517
|
+
format: string;
|
|
2518
|
+
bytes: number;
|
|
2519
|
+
width: number | null;
|
|
2520
|
+
height: number | null;
|
|
2521
|
+
duration_ms: number | null;
|
|
2522
|
+
} | null;
|
|
2523
|
+
alt_text: string | null;
|
|
2524
|
+
per_platform: {
|
|
2525
|
+
[key: string]: {
|
|
2526
|
+
status: "processing" | "ready" | "failed";
|
|
2527
|
+
url: string | null;
|
|
2528
|
+
width: number | null;
|
|
2529
|
+
height: number | null;
|
|
2530
|
+
bytes: number | null;
|
|
2531
|
+
warnings: Array<{
|
|
2532
|
+
code?: unknown;
|
|
2533
|
+
message?: unknown;
|
|
2534
|
+
hint?: unknown;
|
|
2535
|
+
allowed?: unknown;
|
|
2536
|
+
got?: unknown;
|
|
2537
|
+
display_error?: unknown;
|
|
2538
|
+
}>;
|
|
2539
|
+
errors: Array<{
|
|
2540
|
+
code?: unknown;
|
|
2541
|
+
message?: unknown;
|
|
2542
|
+
hint?: unknown;
|
|
2543
|
+
allowed?: unknown;
|
|
2544
|
+
got?: unknown;
|
|
2545
|
+
display_error?: unknown;
|
|
2546
|
+
}>;
|
|
2547
|
+
};
|
|
2548
|
+
};
|
|
2549
|
+
external_id: string | null;
|
|
2550
|
+
metadata: {
|
|
2551
|
+
[key: string]: string | number | boolean;
|
|
2552
|
+
};
|
|
2553
|
+
created_at: string;
|
|
2554
|
+
updated_at: string;
|
|
2555
|
+
};
|
|
1736
2556
|
}>;
|
|
1737
2557
|
} | {
|
|
1738
2558
|
platform: "linkedin";
|
|
@@ -1784,6 +2604,66 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
|
|
|
1784
2604
|
[key: string]: unknown;
|
|
1785
2605
|
} | null;
|
|
1786
2606
|
alt_text_override: string | null;
|
|
2607
|
+
media: {
|
|
2608
|
+
id: string;
|
|
2609
|
+
object: "media";
|
|
2610
|
+
profile_id: string;
|
|
2611
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
2612
|
+
content_type: string | null;
|
|
2613
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
2614
|
+
progress: {
|
|
2615
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
2616
|
+
percent: number;
|
|
2617
|
+
};
|
|
2618
|
+
raw: boolean;
|
|
2619
|
+
error: {
|
|
2620
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
2621
|
+
message: string;
|
|
2622
|
+
hint?: string;
|
|
2623
|
+
allowed?: Array<string>;
|
|
2624
|
+
got?: string;
|
|
2625
|
+
display_error: string;
|
|
2626
|
+
} | null;
|
|
2627
|
+
source: {
|
|
2628
|
+
format: string;
|
|
2629
|
+
bytes: number;
|
|
2630
|
+
width: number | null;
|
|
2631
|
+
height: number | null;
|
|
2632
|
+
duration_ms: number | null;
|
|
2633
|
+
} | null;
|
|
2634
|
+
alt_text: string | null;
|
|
2635
|
+
per_platform: {
|
|
2636
|
+
[key: string]: {
|
|
2637
|
+
status: "processing" | "ready" | "failed";
|
|
2638
|
+
url: string | null;
|
|
2639
|
+
width: number | null;
|
|
2640
|
+
height: number | null;
|
|
2641
|
+
bytes: number | null;
|
|
2642
|
+
warnings: Array<{
|
|
2643
|
+
code?: unknown;
|
|
2644
|
+
message?: unknown;
|
|
2645
|
+
hint?: unknown;
|
|
2646
|
+
allowed?: unknown;
|
|
2647
|
+
got?: unknown;
|
|
2648
|
+
display_error?: unknown;
|
|
2649
|
+
}>;
|
|
2650
|
+
errors: Array<{
|
|
2651
|
+
code?: unknown;
|
|
2652
|
+
message?: unknown;
|
|
2653
|
+
hint?: unknown;
|
|
2654
|
+
allowed?: unknown;
|
|
2655
|
+
got?: unknown;
|
|
2656
|
+
display_error?: unknown;
|
|
2657
|
+
}>;
|
|
2658
|
+
};
|
|
2659
|
+
};
|
|
2660
|
+
external_id: string | null;
|
|
2661
|
+
metadata: {
|
|
2662
|
+
[key: string]: string | number | boolean;
|
|
2663
|
+
};
|
|
2664
|
+
created_at: string;
|
|
2665
|
+
updated_at: string;
|
|
2666
|
+
};
|
|
1787
2667
|
}>;
|
|
1788
2668
|
} | {
|
|
1789
2669
|
platform: "facebook_page";
|
|
@@ -1814,6 +2694,66 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
|
|
|
1814
2694
|
[key: string]: unknown;
|
|
1815
2695
|
} | null;
|
|
1816
2696
|
alt_text_override: string | null;
|
|
2697
|
+
media: {
|
|
2698
|
+
id: string;
|
|
2699
|
+
object: "media";
|
|
2700
|
+
profile_id: string;
|
|
2701
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
2702
|
+
content_type: string | null;
|
|
2703
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
2704
|
+
progress: {
|
|
2705
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
2706
|
+
percent: number;
|
|
2707
|
+
};
|
|
2708
|
+
raw: boolean;
|
|
2709
|
+
error: {
|
|
2710
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
2711
|
+
message: string;
|
|
2712
|
+
hint?: string;
|
|
2713
|
+
allowed?: Array<string>;
|
|
2714
|
+
got?: string;
|
|
2715
|
+
display_error: string;
|
|
2716
|
+
} | null;
|
|
2717
|
+
source: {
|
|
2718
|
+
format: string;
|
|
2719
|
+
bytes: number;
|
|
2720
|
+
width: number | null;
|
|
2721
|
+
height: number | null;
|
|
2722
|
+
duration_ms: number | null;
|
|
2723
|
+
} | null;
|
|
2724
|
+
alt_text: string | null;
|
|
2725
|
+
per_platform: {
|
|
2726
|
+
[key: string]: {
|
|
2727
|
+
status: "processing" | "ready" | "failed";
|
|
2728
|
+
url: string | null;
|
|
2729
|
+
width: number | null;
|
|
2730
|
+
height: number | null;
|
|
2731
|
+
bytes: number | null;
|
|
2732
|
+
warnings: Array<{
|
|
2733
|
+
code?: unknown;
|
|
2734
|
+
message?: unknown;
|
|
2735
|
+
hint?: unknown;
|
|
2736
|
+
allowed?: unknown;
|
|
2737
|
+
got?: unknown;
|
|
2738
|
+
display_error?: unknown;
|
|
2739
|
+
}>;
|
|
2740
|
+
errors: Array<{
|
|
2741
|
+
code?: unknown;
|
|
2742
|
+
message?: unknown;
|
|
2743
|
+
hint?: unknown;
|
|
2744
|
+
allowed?: unknown;
|
|
2745
|
+
got?: unknown;
|
|
2746
|
+
display_error?: unknown;
|
|
2747
|
+
}>;
|
|
2748
|
+
};
|
|
2749
|
+
};
|
|
2750
|
+
external_id: string | null;
|
|
2751
|
+
metadata: {
|
|
2752
|
+
[key: string]: string | number | boolean;
|
|
2753
|
+
};
|
|
2754
|
+
created_at: string;
|
|
2755
|
+
updated_at: string;
|
|
2756
|
+
};
|
|
1817
2757
|
}>;
|
|
1818
2758
|
} | {
|
|
1819
2759
|
platform: "instagram";
|
|
@@ -1855,6 +2795,66 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
|
|
|
1855
2795
|
[key: string]: unknown;
|
|
1856
2796
|
} | null;
|
|
1857
2797
|
alt_text_override: string | null;
|
|
2798
|
+
media: {
|
|
2799
|
+
id: string;
|
|
2800
|
+
object: "media";
|
|
2801
|
+
profile_id: string;
|
|
2802
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
2803
|
+
content_type: string | null;
|
|
2804
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
2805
|
+
progress: {
|
|
2806
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
2807
|
+
percent: number;
|
|
2808
|
+
};
|
|
2809
|
+
raw: boolean;
|
|
2810
|
+
error: {
|
|
2811
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
2812
|
+
message: string;
|
|
2813
|
+
hint?: string;
|
|
2814
|
+
allowed?: Array<string>;
|
|
2815
|
+
got?: string;
|
|
2816
|
+
display_error: string;
|
|
2817
|
+
} | null;
|
|
2818
|
+
source: {
|
|
2819
|
+
format: string;
|
|
2820
|
+
bytes: number;
|
|
2821
|
+
width: number | null;
|
|
2822
|
+
height: number | null;
|
|
2823
|
+
duration_ms: number | null;
|
|
2824
|
+
} | null;
|
|
2825
|
+
alt_text: string | null;
|
|
2826
|
+
per_platform: {
|
|
2827
|
+
[key: string]: {
|
|
2828
|
+
status: "processing" | "ready" | "failed";
|
|
2829
|
+
url: string | null;
|
|
2830
|
+
width: number | null;
|
|
2831
|
+
height: number | null;
|
|
2832
|
+
bytes: number | null;
|
|
2833
|
+
warnings: Array<{
|
|
2834
|
+
code?: unknown;
|
|
2835
|
+
message?: unknown;
|
|
2836
|
+
hint?: unknown;
|
|
2837
|
+
allowed?: unknown;
|
|
2838
|
+
got?: unknown;
|
|
2839
|
+
display_error?: unknown;
|
|
2840
|
+
}>;
|
|
2841
|
+
errors: Array<{
|
|
2842
|
+
code?: unknown;
|
|
2843
|
+
message?: unknown;
|
|
2844
|
+
hint?: unknown;
|
|
2845
|
+
allowed?: unknown;
|
|
2846
|
+
got?: unknown;
|
|
2847
|
+
display_error?: unknown;
|
|
2848
|
+
}>;
|
|
2849
|
+
};
|
|
2850
|
+
};
|
|
2851
|
+
external_id: string | null;
|
|
2852
|
+
metadata: {
|
|
2853
|
+
[key: string]: string | number | boolean;
|
|
2854
|
+
};
|
|
2855
|
+
created_at: string;
|
|
2856
|
+
updated_at: string;
|
|
2857
|
+
};
|
|
1858
2858
|
}>;
|
|
1859
2859
|
} | {
|
|
1860
2860
|
platform: "tiktok";
|
|
@@ -1894,6 +2894,66 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
|
|
|
1894
2894
|
[key: string]: unknown;
|
|
1895
2895
|
} | null;
|
|
1896
2896
|
alt_text_override: string | null;
|
|
2897
|
+
media: {
|
|
2898
|
+
id: string;
|
|
2899
|
+
object: "media";
|
|
2900
|
+
profile_id: string;
|
|
2901
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
2902
|
+
content_type: string | null;
|
|
2903
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
2904
|
+
progress: {
|
|
2905
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
2906
|
+
percent: number;
|
|
2907
|
+
};
|
|
2908
|
+
raw: boolean;
|
|
2909
|
+
error: {
|
|
2910
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
2911
|
+
message: string;
|
|
2912
|
+
hint?: string;
|
|
2913
|
+
allowed?: Array<string>;
|
|
2914
|
+
got?: string;
|
|
2915
|
+
display_error: string;
|
|
2916
|
+
} | null;
|
|
2917
|
+
source: {
|
|
2918
|
+
format: string;
|
|
2919
|
+
bytes: number;
|
|
2920
|
+
width: number | null;
|
|
2921
|
+
height: number | null;
|
|
2922
|
+
duration_ms: number | null;
|
|
2923
|
+
} | null;
|
|
2924
|
+
alt_text: string | null;
|
|
2925
|
+
per_platform: {
|
|
2926
|
+
[key: string]: {
|
|
2927
|
+
status: "processing" | "ready" | "failed";
|
|
2928
|
+
url: string | null;
|
|
2929
|
+
width: number | null;
|
|
2930
|
+
height: number | null;
|
|
2931
|
+
bytes: number | null;
|
|
2932
|
+
warnings: Array<{
|
|
2933
|
+
code?: unknown;
|
|
2934
|
+
message?: unknown;
|
|
2935
|
+
hint?: unknown;
|
|
2936
|
+
allowed?: unknown;
|
|
2937
|
+
got?: unknown;
|
|
2938
|
+
display_error?: unknown;
|
|
2939
|
+
}>;
|
|
2940
|
+
errors: Array<{
|
|
2941
|
+
code?: unknown;
|
|
2942
|
+
message?: unknown;
|
|
2943
|
+
hint?: unknown;
|
|
2944
|
+
allowed?: unknown;
|
|
2945
|
+
got?: unknown;
|
|
2946
|
+
display_error?: unknown;
|
|
2947
|
+
}>;
|
|
2948
|
+
};
|
|
2949
|
+
};
|
|
2950
|
+
external_id: string | null;
|
|
2951
|
+
metadata: {
|
|
2952
|
+
[key: string]: string | number | boolean;
|
|
2953
|
+
};
|
|
2954
|
+
created_at: string;
|
|
2955
|
+
updated_at: string;
|
|
2956
|
+
};
|
|
1897
2957
|
}>;
|
|
1898
2958
|
}>;
|
|
1899
2959
|
created_at: string;
|
|
@@ -1984,6 +3044,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
1984
3044
|
[key: string]: unknown;
|
|
1985
3045
|
} | null;
|
|
1986
3046
|
alt_text_override: string | null;
|
|
3047
|
+
media: {
|
|
3048
|
+
id: string;
|
|
3049
|
+
object: "media";
|
|
3050
|
+
profile_id: string;
|
|
3051
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
3052
|
+
content_type: string | null;
|
|
3053
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
3054
|
+
progress: {
|
|
3055
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
3056
|
+
percent: number;
|
|
3057
|
+
};
|
|
3058
|
+
raw: boolean;
|
|
3059
|
+
error: {
|
|
3060
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
3061
|
+
message: string;
|
|
3062
|
+
hint?: string;
|
|
3063
|
+
allowed?: Array<string>;
|
|
3064
|
+
got?: string;
|
|
3065
|
+
display_error: string;
|
|
3066
|
+
} | null;
|
|
3067
|
+
source: {
|
|
3068
|
+
format: string;
|
|
3069
|
+
bytes: number;
|
|
3070
|
+
width: number | null;
|
|
3071
|
+
height: number | null;
|
|
3072
|
+
duration_ms: number | null;
|
|
3073
|
+
} | null;
|
|
3074
|
+
alt_text: string | null;
|
|
3075
|
+
per_platform: {
|
|
3076
|
+
[key: string]: {
|
|
3077
|
+
status: "processing" | "ready" | "failed";
|
|
3078
|
+
url: string | null;
|
|
3079
|
+
width: number | null;
|
|
3080
|
+
height: number | null;
|
|
3081
|
+
bytes: number | null;
|
|
3082
|
+
warnings: Array<{
|
|
3083
|
+
code?: unknown;
|
|
3084
|
+
message?: unknown;
|
|
3085
|
+
hint?: unknown;
|
|
3086
|
+
allowed?: unknown;
|
|
3087
|
+
got?: unknown;
|
|
3088
|
+
display_error?: unknown;
|
|
3089
|
+
}>;
|
|
3090
|
+
errors: Array<{
|
|
3091
|
+
code?: unknown;
|
|
3092
|
+
message?: unknown;
|
|
3093
|
+
hint?: unknown;
|
|
3094
|
+
allowed?: unknown;
|
|
3095
|
+
got?: unknown;
|
|
3096
|
+
display_error?: unknown;
|
|
3097
|
+
}>;
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3100
|
+
external_id: string | null;
|
|
3101
|
+
metadata: {
|
|
3102
|
+
[key: string]: string | number | boolean;
|
|
3103
|
+
};
|
|
3104
|
+
created_at: string;
|
|
3105
|
+
updated_at: string;
|
|
3106
|
+
};
|
|
1987
3107
|
}>;
|
|
1988
3108
|
} | {
|
|
1989
3109
|
platform: "linkedin";
|
|
@@ -2035,6 +3155,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2035
3155
|
[key: string]: unknown;
|
|
2036
3156
|
} | null;
|
|
2037
3157
|
alt_text_override: string | null;
|
|
3158
|
+
media: {
|
|
3159
|
+
id: string;
|
|
3160
|
+
object: "media";
|
|
3161
|
+
profile_id: string;
|
|
3162
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
3163
|
+
content_type: string | null;
|
|
3164
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
3165
|
+
progress: {
|
|
3166
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
3167
|
+
percent: number;
|
|
3168
|
+
};
|
|
3169
|
+
raw: boolean;
|
|
3170
|
+
error: {
|
|
3171
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
3172
|
+
message: string;
|
|
3173
|
+
hint?: string;
|
|
3174
|
+
allowed?: Array<string>;
|
|
3175
|
+
got?: string;
|
|
3176
|
+
display_error: string;
|
|
3177
|
+
} | null;
|
|
3178
|
+
source: {
|
|
3179
|
+
format: string;
|
|
3180
|
+
bytes: number;
|
|
3181
|
+
width: number | null;
|
|
3182
|
+
height: number | null;
|
|
3183
|
+
duration_ms: number | null;
|
|
3184
|
+
} | null;
|
|
3185
|
+
alt_text: string | null;
|
|
3186
|
+
per_platform: {
|
|
3187
|
+
[key: string]: {
|
|
3188
|
+
status: "processing" | "ready" | "failed";
|
|
3189
|
+
url: string | null;
|
|
3190
|
+
width: number | null;
|
|
3191
|
+
height: number | null;
|
|
3192
|
+
bytes: number | null;
|
|
3193
|
+
warnings: Array<{
|
|
3194
|
+
code?: unknown;
|
|
3195
|
+
message?: unknown;
|
|
3196
|
+
hint?: unknown;
|
|
3197
|
+
allowed?: unknown;
|
|
3198
|
+
got?: unknown;
|
|
3199
|
+
display_error?: unknown;
|
|
3200
|
+
}>;
|
|
3201
|
+
errors: Array<{
|
|
3202
|
+
code?: unknown;
|
|
3203
|
+
message?: unknown;
|
|
3204
|
+
hint?: unknown;
|
|
3205
|
+
allowed?: unknown;
|
|
3206
|
+
got?: unknown;
|
|
3207
|
+
display_error?: unknown;
|
|
3208
|
+
}>;
|
|
3209
|
+
};
|
|
3210
|
+
};
|
|
3211
|
+
external_id: string | null;
|
|
3212
|
+
metadata: {
|
|
3213
|
+
[key: string]: string | number | boolean;
|
|
3214
|
+
};
|
|
3215
|
+
created_at: string;
|
|
3216
|
+
updated_at: string;
|
|
3217
|
+
};
|
|
2038
3218
|
}>;
|
|
2039
3219
|
} | {
|
|
2040
3220
|
platform: "facebook_page";
|
|
@@ -2065,6 +3245,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2065
3245
|
[key: string]: unknown;
|
|
2066
3246
|
} | null;
|
|
2067
3247
|
alt_text_override: string | null;
|
|
3248
|
+
media: {
|
|
3249
|
+
id: string;
|
|
3250
|
+
object: "media";
|
|
3251
|
+
profile_id: string;
|
|
3252
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
3253
|
+
content_type: string | null;
|
|
3254
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
3255
|
+
progress: {
|
|
3256
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
3257
|
+
percent: number;
|
|
3258
|
+
};
|
|
3259
|
+
raw: boolean;
|
|
3260
|
+
error: {
|
|
3261
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
3262
|
+
message: string;
|
|
3263
|
+
hint?: string;
|
|
3264
|
+
allowed?: Array<string>;
|
|
3265
|
+
got?: string;
|
|
3266
|
+
display_error: string;
|
|
3267
|
+
} | null;
|
|
3268
|
+
source: {
|
|
3269
|
+
format: string;
|
|
3270
|
+
bytes: number;
|
|
3271
|
+
width: number | null;
|
|
3272
|
+
height: number | null;
|
|
3273
|
+
duration_ms: number | null;
|
|
3274
|
+
} | null;
|
|
3275
|
+
alt_text: string | null;
|
|
3276
|
+
per_platform: {
|
|
3277
|
+
[key: string]: {
|
|
3278
|
+
status: "processing" | "ready" | "failed";
|
|
3279
|
+
url: string | null;
|
|
3280
|
+
width: number | null;
|
|
3281
|
+
height: number | null;
|
|
3282
|
+
bytes: number | null;
|
|
3283
|
+
warnings: Array<{
|
|
3284
|
+
code?: unknown;
|
|
3285
|
+
message?: unknown;
|
|
3286
|
+
hint?: unknown;
|
|
3287
|
+
allowed?: unknown;
|
|
3288
|
+
got?: unknown;
|
|
3289
|
+
display_error?: unknown;
|
|
3290
|
+
}>;
|
|
3291
|
+
errors: Array<{
|
|
3292
|
+
code?: unknown;
|
|
3293
|
+
message?: unknown;
|
|
3294
|
+
hint?: unknown;
|
|
3295
|
+
allowed?: unknown;
|
|
3296
|
+
got?: unknown;
|
|
3297
|
+
display_error?: unknown;
|
|
3298
|
+
}>;
|
|
3299
|
+
};
|
|
3300
|
+
};
|
|
3301
|
+
external_id: string | null;
|
|
3302
|
+
metadata: {
|
|
3303
|
+
[key: string]: string | number | boolean;
|
|
3304
|
+
};
|
|
3305
|
+
created_at: string;
|
|
3306
|
+
updated_at: string;
|
|
3307
|
+
};
|
|
2068
3308
|
}>;
|
|
2069
3309
|
} | {
|
|
2070
3310
|
platform: "instagram";
|
|
@@ -2106,6 +3346,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2106
3346
|
[key: string]: unknown;
|
|
2107
3347
|
} | null;
|
|
2108
3348
|
alt_text_override: string | null;
|
|
3349
|
+
media: {
|
|
3350
|
+
id: string;
|
|
3351
|
+
object: "media";
|
|
3352
|
+
profile_id: string;
|
|
3353
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
3354
|
+
content_type: string | null;
|
|
3355
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
3356
|
+
progress: {
|
|
3357
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
3358
|
+
percent: number;
|
|
3359
|
+
};
|
|
3360
|
+
raw: boolean;
|
|
3361
|
+
error: {
|
|
3362
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
3363
|
+
message: string;
|
|
3364
|
+
hint?: string;
|
|
3365
|
+
allowed?: Array<string>;
|
|
3366
|
+
got?: string;
|
|
3367
|
+
display_error: string;
|
|
3368
|
+
} | null;
|
|
3369
|
+
source: {
|
|
3370
|
+
format: string;
|
|
3371
|
+
bytes: number;
|
|
3372
|
+
width: number | null;
|
|
3373
|
+
height: number | null;
|
|
3374
|
+
duration_ms: number | null;
|
|
3375
|
+
} | null;
|
|
3376
|
+
alt_text: string | null;
|
|
3377
|
+
per_platform: {
|
|
3378
|
+
[key: string]: {
|
|
3379
|
+
status: "processing" | "ready" | "failed";
|
|
3380
|
+
url: string | null;
|
|
3381
|
+
width: number | null;
|
|
3382
|
+
height: number | null;
|
|
3383
|
+
bytes: number | null;
|
|
3384
|
+
warnings: Array<{
|
|
3385
|
+
code?: unknown;
|
|
3386
|
+
message?: unknown;
|
|
3387
|
+
hint?: unknown;
|
|
3388
|
+
allowed?: unknown;
|
|
3389
|
+
got?: unknown;
|
|
3390
|
+
display_error?: unknown;
|
|
3391
|
+
}>;
|
|
3392
|
+
errors: Array<{
|
|
3393
|
+
code?: unknown;
|
|
3394
|
+
message?: unknown;
|
|
3395
|
+
hint?: unknown;
|
|
3396
|
+
allowed?: unknown;
|
|
3397
|
+
got?: unknown;
|
|
3398
|
+
display_error?: unknown;
|
|
3399
|
+
}>;
|
|
3400
|
+
};
|
|
3401
|
+
};
|
|
3402
|
+
external_id: string | null;
|
|
3403
|
+
metadata: {
|
|
3404
|
+
[key: string]: string | number | boolean;
|
|
3405
|
+
};
|
|
3406
|
+
created_at: string;
|
|
3407
|
+
updated_at: string;
|
|
3408
|
+
};
|
|
2109
3409
|
}>;
|
|
2110
3410
|
} | {
|
|
2111
3411
|
platform: "tiktok";
|
|
@@ -2145,6 +3445,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2145
3445
|
[key: string]: unknown;
|
|
2146
3446
|
} | null;
|
|
2147
3447
|
alt_text_override: string | null;
|
|
3448
|
+
media: {
|
|
3449
|
+
id: string;
|
|
3450
|
+
object: "media";
|
|
3451
|
+
profile_id: string;
|
|
3452
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
3453
|
+
content_type: string | null;
|
|
3454
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
3455
|
+
progress: {
|
|
3456
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
3457
|
+
percent: number;
|
|
3458
|
+
};
|
|
3459
|
+
raw: boolean;
|
|
3460
|
+
error: {
|
|
3461
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
3462
|
+
message: string;
|
|
3463
|
+
hint?: string;
|
|
3464
|
+
allowed?: Array<string>;
|
|
3465
|
+
got?: string;
|
|
3466
|
+
display_error: string;
|
|
3467
|
+
} | null;
|
|
3468
|
+
source: {
|
|
3469
|
+
format: string;
|
|
3470
|
+
bytes: number;
|
|
3471
|
+
width: number | null;
|
|
3472
|
+
height: number | null;
|
|
3473
|
+
duration_ms: number | null;
|
|
3474
|
+
} | null;
|
|
3475
|
+
alt_text: string | null;
|
|
3476
|
+
per_platform: {
|
|
3477
|
+
[key: string]: {
|
|
3478
|
+
status: "processing" | "ready" | "failed";
|
|
3479
|
+
url: string | null;
|
|
3480
|
+
width: number | null;
|
|
3481
|
+
height: number | null;
|
|
3482
|
+
bytes: number | null;
|
|
3483
|
+
warnings: Array<{
|
|
3484
|
+
code?: unknown;
|
|
3485
|
+
message?: unknown;
|
|
3486
|
+
hint?: unknown;
|
|
3487
|
+
allowed?: unknown;
|
|
3488
|
+
got?: unknown;
|
|
3489
|
+
display_error?: unknown;
|
|
3490
|
+
}>;
|
|
3491
|
+
errors: Array<{
|
|
3492
|
+
code?: unknown;
|
|
3493
|
+
message?: unknown;
|
|
3494
|
+
hint?: unknown;
|
|
3495
|
+
allowed?: unknown;
|
|
3496
|
+
got?: unknown;
|
|
3497
|
+
display_error?: unknown;
|
|
3498
|
+
}>;
|
|
3499
|
+
};
|
|
3500
|
+
};
|
|
3501
|
+
external_id: string | null;
|
|
3502
|
+
metadata: {
|
|
3503
|
+
[key: string]: string | number | boolean;
|
|
3504
|
+
};
|
|
3505
|
+
created_at: string;
|
|
3506
|
+
updated_at: string;
|
|
3507
|
+
};
|
|
2148
3508
|
}>;
|
|
2149
3509
|
}>;
|
|
2150
3510
|
created_at: string;
|
|
@@ -2213,6 +3573,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2213
3573
|
[key: string]: unknown;
|
|
2214
3574
|
} | null;
|
|
2215
3575
|
alt_text_override: string | null;
|
|
3576
|
+
media: {
|
|
3577
|
+
id: string;
|
|
3578
|
+
object: "media";
|
|
3579
|
+
profile_id: string;
|
|
3580
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
3581
|
+
content_type: string | null;
|
|
3582
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
3583
|
+
progress: {
|
|
3584
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
3585
|
+
percent: number;
|
|
3586
|
+
};
|
|
3587
|
+
raw: boolean;
|
|
3588
|
+
error: {
|
|
3589
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
3590
|
+
message: string;
|
|
3591
|
+
hint?: string;
|
|
3592
|
+
allowed?: Array<string>;
|
|
3593
|
+
got?: string;
|
|
3594
|
+
display_error: string;
|
|
3595
|
+
} | null;
|
|
3596
|
+
source: {
|
|
3597
|
+
format: string;
|
|
3598
|
+
bytes: number;
|
|
3599
|
+
width: number | null;
|
|
3600
|
+
height: number | null;
|
|
3601
|
+
duration_ms: number | null;
|
|
3602
|
+
} | null;
|
|
3603
|
+
alt_text: string | null;
|
|
3604
|
+
per_platform: {
|
|
3605
|
+
[key: string]: {
|
|
3606
|
+
status: "processing" | "ready" | "failed";
|
|
3607
|
+
url: string | null;
|
|
3608
|
+
width: number | null;
|
|
3609
|
+
height: number | null;
|
|
3610
|
+
bytes: number | null;
|
|
3611
|
+
warnings: Array<{
|
|
3612
|
+
code?: unknown;
|
|
3613
|
+
message?: unknown;
|
|
3614
|
+
hint?: unknown;
|
|
3615
|
+
allowed?: unknown;
|
|
3616
|
+
got?: unknown;
|
|
3617
|
+
display_error?: unknown;
|
|
3618
|
+
}>;
|
|
3619
|
+
errors: Array<{
|
|
3620
|
+
code?: unknown;
|
|
3621
|
+
message?: unknown;
|
|
3622
|
+
hint?: unknown;
|
|
3623
|
+
allowed?: unknown;
|
|
3624
|
+
got?: unknown;
|
|
3625
|
+
display_error?: unknown;
|
|
3626
|
+
}>;
|
|
3627
|
+
};
|
|
3628
|
+
};
|
|
3629
|
+
external_id: string | null;
|
|
3630
|
+
metadata: {
|
|
3631
|
+
[key: string]: string | number | boolean;
|
|
3632
|
+
};
|
|
3633
|
+
created_at: string;
|
|
3634
|
+
updated_at: string;
|
|
3635
|
+
};
|
|
2216
3636
|
}>;
|
|
2217
3637
|
} | {
|
|
2218
3638
|
platform: "linkedin";
|
|
@@ -2264,6 +3684,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2264
3684
|
[key: string]: unknown;
|
|
2265
3685
|
} | null;
|
|
2266
3686
|
alt_text_override: string | null;
|
|
3687
|
+
media: {
|
|
3688
|
+
id: string;
|
|
3689
|
+
object: "media";
|
|
3690
|
+
profile_id: string;
|
|
3691
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
3692
|
+
content_type: string | null;
|
|
3693
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
3694
|
+
progress: {
|
|
3695
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
3696
|
+
percent: number;
|
|
3697
|
+
};
|
|
3698
|
+
raw: boolean;
|
|
3699
|
+
error: {
|
|
3700
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
3701
|
+
message: string;
|
|
3702
|
+
hint?: string;
|
|
3703
|
+
allowed?: Array<string>;
|
|
3704
|
+
got?: string;
|
|
3705
|
+
display_error: string;
|
|
3706
|
+
} | null;
|
|
3707
|
+
source: {
|
|
3708
|
+
format: string;
|
|
3709
|
+
bytes: number;
|
|
3710
|
+
width: number | null;
|
|
3711
|
+
height: number | null;
|
|
3712
|
+
duration_ms: number | null;
|
|
3713
|
+
} | null;
|
|
3714
|
+
alt_text: string | null;
|
|
3715
|
+
per_platform: {
|
|
3716
|
+
[key: string]: {
|
|
3717
|
+
status: "processing" | "ready" | "failed";
|
|
3718
|
+
url: string | null;
|
|
3719
|
+
width: number | null;
|
|
3720
|
+
height: number | null;
|
|
3721
|
+
bytes: number | null;
|
|
3722
|
+
warnings: Array<{
|
|
3723
|
+
code?: unknown;
|
|
3724
|
+
message?: unknown;
|
|
3725
|
+
hint?: unknown;
|
|
3726
|
+
allowed?: unknown;
|
|
3727
|
+
got?: unknown;
|
|
3728
|
+
display_error?: unknown;
|
|
3729
|
+
}>;
|
|
3730
|
+
errors: Array<{
|
|
3731
|
+
code?: unknown;
|
|
3732
|
+
message?: unknown;
|
|
3733
|
+
hint?: unknown;
|
|
3734
|
+
allowed?: unknown;
|
|
3735
|
+
got?: unknown;
|
|
3736
|
+
display_error?: unknown;
|
|
3737
|
+
}>;
|
|
3738
|
+
};
|
|
3739
|
+
};
|
|
3740
|
+
external_id: string | null;
|
|
3741
|
+
metadata: {
|
|
3742
|
+
[key: string]: string | number | boolean;
|
|
3743
|
+
};
|
|
3744
|
+
created_at: string;
|
|
3745
|
+
updated_at: string;
|
|
3746
|
+
};
|
|
2267
3747
|
}>;
|
|
2268
3748
|
} | {
|
|
2269
3749
|
platform: "facebook_page";
|
|
@@ -2294,6 +3774,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2294
3774
|
[key: string]: unknown;
|
|
2295
3775
|
} | null;
|
|
2296
3776
|
alt_text_override: string | null;
|
|
3777
|
+
media: {
|
|
3778
|
+
id: string;
|
|
3779
|
+
object: "media";
|
|
3780
|
+
profile_id: string;
|
|
3781
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
3782
|
+
content_type: string | null;
|
|
3783
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
3784
|
+
progress: {
|
|
3785
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
3786
|
+
percent: number;
|
|
3787
|
+
};
|
|
3788
|
+
raw: boolean;
|
|
3789
|
+
error: {
|
|
3790
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
3791
|
+
message: string;
|
|
3792
|
+
hint?: string;
|
|
3793
|
+
allowed?: Array<string>;
|
|
3794
|
+
got?: string;
|
|
3795
|
+
display_error: string;
|
|
3796
|
+
} | null;
|
|
3797
|
+
source: {
|
|
3798
|
+
format: string;
|
|
3799
|
+
bytes: number;
|
|
3800
|
+
width: number | null;
|
|
3801
|
+
height: number | null;
|
|
3802
|
+
duration_ms: number | null;
|
|
3803
|
+
} | null;
|
|
3804
|
+
alt_text: string | null;
|
|
3805
|
+
per_platform: {
|
|
3806
|
+
[key: string]: {
|
|
3807
|
+
status: "processing" | "ready" | "failed";
|
|
3808
|
+
url: string | null;
|
|
3809
|
+
width: number | null;
|
|
3810
|
+
height: number | null;
|
|
3811
|
+
bytes: number | null;
|
|
3812
|
+
warnings: Array<{
|
|
3813
|
+
code?: unknown;
|
|
3814
|
+
message?: unknown;
|
|
3815
|
+
hint?: unknown;
|
|
3816
|
+
allowed?: unknown;
|
|
3817
|
+
got?: unknown;
|
|
3818
|
+
display_error?: unknown;
|
|
3819
|
+
}>;
|
|
3820
|
+
errors: Array<{
|
|
3821
|
+
code?: unknown;
|
|
3822
|
+
message?: unknown;
|
|
3823
|
+
hint?: unknown;
|
|
3824
|
+
allowed?: unknown;
|
|
3825
|
+
got?: unknown;
|
|
3826
|
+
display_error?: unknown;
|
|
3827
|
+
}>;
|
|
3828
|
+
};
|
|
3829
|
+
};
|
|
3830
|
+
external_id: string | null;
|
|
3831
|
+
metadata: {
|
|
3832
|
+
[key: string]: string | number | boolean;
|
|
3833
|
+
};
|
|
3834
|
+
created_at: string;
|
|
3835
|
+
updated_at: string;
|
|
3836
|
+
};
|
|
2297
3837
|
}>;
|
|
2298
3838
|
} | {
|
|
2299
3839
|
platform: "instagram";
|
|
@@ -2335,6 +3875,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2335
3875
|
[key: string]: unknown;
|
|
2336
3876
|
} | null;
|
|
2337
3877
|
alt_text_override: string | null;
|
|
3878
|
+
media: {
|
|
3879
|
+
id: string;
|
|
3880
|
+
object: "media";
|
|
3881
|
+
profile_id: string;
|
|
3882
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
3883
|
+
content_type: string | null;
|
|
3884
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
3885
|
+
progress: {
|
|
3886
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
3887
|
+
percent: number;
|
|
3888
|
+
};
|
|
3889
|
+
raw: boolean;
|
|
3890
|
+
error: {
|
|
3891
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
3892
|
+
message: string;
|
|
3893
|
+
hint?: string;
|
|
3894
|
+
allowed?: Array<string>;
|
|
3895
|
+
got?: string;
|
|
3896
|
+
display_error: string;
|
|
3897
|
+
} | null;
|
|
3898
|
+
source: {
|
|
3899
|
+
format: string;
|
|
3900
|
+
bytes: number;
|
|
3901
|
+
width: number | null;
|
|
3902
|
+
height: number | null;
|
|
3903
|
+
duration_ms: number | null;
|
|
3904
|
+
} | null;
|
|
3905
|
+
alt_text: string | null;
|
|
3906
|
+
per_platform: {
|
|
3907
|
+
[key: string]: {
|
|
3908
|
+
status: "processing" | "ready" | "failed";
|
|
3909
|
+
url: string | null;
|
|
3910
|
+
width: number | null;
|
|
3911
|
+
height: number | null;
|
|
3912
|
+
bytes: number | null;
|
|
3913
|
+
warnings: Array<{
|
|
3914
|
+
code?: unknown;
|
|
3915
|
+
message?: unknown;
|
|
3916
|
+
hint?: unknown;
|
|
3917
|
+
allowed?: unknown;
|
|
3918
|
+
got?: unknown;
|
|
3919
|
+
display_error?: unknown;
|
|
3920
|
+
}>;
|
|
3921
|
+
errors: Array<{
|
|
3922
|
+
code?: unknown;
|
|
3923
|
+
message?: unknown;
|
|
3924
|
+
hint?: unknown;
|
|
3925
|
+
allowed?: unknown;
|
|
3926
|
+
got?: unknown;
|
|
3927
|
+
display_error?: unknown;
|
|
3928
|
+
}>;
|
|
3929
|
+
};
|
|
3930
|
+
};
|
|
3931
|
+
external_id: string | null;
|
|
3932
|
+
metadata: {
|
|
3933
|
+
[key: string]: string | number | boolean;
|
|
3934
|
+
};
|
|
3935
|
+
created_at: string;
|
|
3936
|
+
updated_at: string;
|
|
3937
|
+
};
|
|
2338
3938
|
}>;
|
|
2339
3939
|
} | {
|
|
2340
3940
|
platform: "tiktok";
|
|
@@ -2374,6 +3974,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2374
3974
|
[key: string]: unknown;
|
|
2375
3975
|
} | null;
|
|
2376
3976
|
alt_text_override: string | null;
|
|
3977
|
+
media: {
|
|
3978
|
+
id: string;
|
|
3979
|
+
object: "media";
|
|
3980
|
+
profile_id: string;
|
|
3981
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
3982
|
+
content_type: string | null;
|
|
3983
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
3984
|
+
progress: {
|
|
3985
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
3986
|
+
percent: number;
|
|
3987
|
+
};
|
|
3988
|
+
raw: boolean;
|
|
3989
|
+
error: {
|
|
3990
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
3991
|
+
message: string;
|
|
3992
|
+
hint?: string;
|
|
3993
|
+
allowed?: Array<string>;
|
|
3994
|
+
got?: string;
|
|
3995
|
+
display_error: string;
|
|
3996
|
+
} | null;
|
|
3997
|
+
source: {
|
|
3998
|
+
format: string;
|
|
3999
|
+
bytes: number;
|
|
4000
|
+
width: number | null;
|
|
4001
|
+
height: number | null;
|
|
4002
|
+
duration_ms: number | null;
|
|
4003
|
+
} | null;
|
|
4004
|
+
alt_text: string | null;
|
|
4005
|
+
per_platform: {
|
|
4006
|
+
[key: string]: {
|
|
4007
|
+
status: "processing" | "ready" | "failed";
|
|
4008
|
+
url: string | null;
|
|
4009
|
+
width: number | null;
|
|
4010
|
+
height: number | null;
|
|
4011
|
+
bytes: number | null;
|
|
4012
|
+
warnings: Array<{
|
|
4013
|
+
code?: unknown;
|
|
4014
|
+
message?: unknown;
|
|
4015
|
+
hint?: unknown;
|
|
4016
|
+
allowed?: unknown;
|
|
4017
|
+
got?: unknown;
|
|
4018
|
+
display_error?: unknown;
|
|
4019
|
+
}>;
|
|
4020
|
+
errors: Array<{
|
|
4021
|
+
code?: unknown;
|
|
4022
|
+
message?: unknown;
|
|
4023
|
+
hint?: unknown;
|
|
4024
|
+
allowed?: unknown;
|
|
4025
|
+
got?: unknown;
|
|
4026
|
+
display_error?: unknown;
|
|
4027
|
+
}>;
|
|
4028
|
+
};
|
|
4029
|
+
};
|
|
4030
|
+
external_id: string | null;
|
|
4031
|
+
metadata: {
|
|
4032
|
+
[key: string]: string | number | boolean;
|
|
4033
|
+
};
|
|
4034
|
+
created_at: string;
|
|
4035
|
+
updated_at: string;
|
|
4036
|
+
};
|
|
2377
4037
|
}>;
|
|
2378
4038
|
}>;
|
|
2379
4039
|
created_at: string;
|
|
@@ -2431,6 +4091,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2431
4091
|
[key: string]: unknown;
|
|
2432
4092
|
} | null;
|
|
2433
4093
|
alt_text_override: string | null;
|
|
4094
|
+
media: {
|
|
4095
|
+
id: string;
|
|
4096
|
+
object: "media";
|
|
4097
|
+
profile_id: string;
|
|
4098
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
4099
|
+
content_type: string | null;
|
|
4100
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
4101
|
+
progress: {
|
|
4102
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
4103
|
+
percent: number;
|
|
4104
|
+
};
|
|
4105
|
+
raw: boolean;
|
|
4106
|
+
error: {
|
|
4107
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
4108
|
+
message: string;
|
|
4109
|
+
hint?: string;
|
|
4110
|
+
allowed?: Array<string>;
|
|
4111
|
+
got?: string;
|
|
4112
|
+
display_error: string;
|
|
4113
|
+
} | null;
|
|
4114
|
+
source: {
|
|
4115
|
+
format: string;
|
|
4116
|
+
bytes: number;
|
|
4117
|
+
width: number | null;
|
|
4118
|
+
height: number | null;
|
|
4119
|
+
duration_ms: number | null;
|
|
4120
|
+
} | null;
|
|
4121
|
+
alt_text: string | null;
|
|
4122
|
+
per_platform: {
|
|
4123
|
+
[key: string]: {
|
|
4124
|
+
status: "processing" | "ready" | "failed";
|
|
4125
|
+
url: string | null;
|
|
4126
|
+
width: number | null;
|
|
4127
|
+
height: number | null;
|
|
4128
|
+
bytes: number | null;
|
|
4129
|
+
warnings: Array<{
|
|
4130
|
+
code?: unknown;
|
|
4131
|
+
message?: unknown;
|
|
4132
|
+
hint?: unknown;
|
|
4133
|
+
allowed?: unknown;
|
|
4134
|
+
got?: unknown;
|
|
4135
|
+
display_error?: unknown;
|
|
4136
|
+
}>;
|
|
4137
|
+
errors: Array<{
|
|
4138
|
+
code?: unknown;
|
|
4139
|
+
message?: unknown;
|
|
4140
|
+
hint?: unknown;
|
|
4141
|
+
allowed?: unknown;
|
|
4142
|
+
got?: unknown;
|
|
4143
|
+
display_error?: unknown;
|
|
4144
|
+
}>;
|
|
4145
|
+
};
|
|
4146
|
+
};
|
|
4147
|
+
external_id: string | null;
|
|
4148
|
+
metadata: {
|
|
4149
|
+
[key: string]: string | number | boolean;
|
|
4150
|
+
};
|
|
4151
|
+
created_at: string;
|
|
4152
|
+
updated_at: string;
|
|
4153
|
+
};
|
|
2434
4154
|
}>;
|
|
2435
4155
|
} | {
|
|
2436
4156
|
platform: "linkedin";
|
|
@@ -2482,6 +4202,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2482
4202
|
[key: string]: unknown;
|
|
2483
4203
|
} | null;
|
|
2484
4204
|
alt_text_override: string | null;
|
|
4205
|
+
media: {
|
|
4206
|
+
id: string;
|
|
4207
|
+
object: "media";
|
|
4208
|
+
profile_id: string;
|
|
4209
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
4210
|
+
content_type: string | null;
|
|
4211
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
4212
|
+
progress: {
|
|
4213
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
4214
|
+
percent: number;
|
|
4215
|
+
};
|
|
4216
|
+
raw: boolean;
|
|
4217
|
+
error: {
|
|
4218
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
4219
|
+
message: string;
|
|
4220
|
+
hint?: string;
|
|
4221
|
+
allowed?: Array<string>;
|
|
4222
|
+
got?: string;
|
|
4223
|
+
display_error: string;
|
|
4224
|
+
} | null;
|
|
4225
|
+
source: {
|
|
4226
|
+
format: string;
|
|
4227
|
+
bytes: number;
|
|
4228
|
+
width: number | null;
|
|
4229
|
+
height: number | null;
|
|
4230
|
+
duration_ms: number | null;
|
|
4231
|
+
} | null;
|
|
4232
|
+
alt_text: string | null;
|
|
4233
|
+
per_platform: {
|
|
4234
|
+
[key: string]: {
|
|
4235
|
+
status: "processing" | "ready" | "failed";
|
|
4236
|
+
url: string | null;
|
|
4237
|
+
width: number | null;
|
|
4238
|
+
height: number | null;
|
|
4239
|
+
bytes: number | null;
|
|
4240
|
+
warnings: Array<{
|
|
4241
|
+
code?: unknown;
|
|
4242
|
+
message?: unknown;
|
|
4243
|
+
hint?: unknown;
|
|
4244
|
+
allowed?: unknown;
|
|
4245
|
+
got?: unknown;
|
|
4246
|
+
display_error?: unknown;
|
|
4247
|
+
}>;
|
|
4248
|
+
errors: Array<{
|
|
4249
|
+
code?: unknown;
|
|
4250
|
+
message?: unknown;
|
|
4251
|
+
hint?: unknown;
|
|
4252
|
+
allowed?: unknown;
|
|
4253
|
+
got?: unknown;
|
|
4254
|
+
display_error?: unknown;
|
|
4255
|
+
}>;
|
|
4256
|
+
};
|
|
4257
|
+
};
|
|
4258
|
+
external_id: string | null;
|
|
4259
|
+
metadata: {
|
|
4260
|
+
[key: string]: string | number | boolean;
|
|
4261
|
+
};
|
|
4262
|
+
created_at: string;
|
|
4263
|
+
updated_at: string;
|
|
4264
|
+
};
|
|
2485
4265
|
}>;
|
|
2486
4266
|
} | {
|
|
2487
4267
|
platform: "facebook_page";
|
|
@@ -2512,6 +4292,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2512
4292
|
[key: string]: unknown;
|
|
2513
4293
|
} | null;
|
|
2514
4294
|
alt_text_override: string | null;
|
|
4295
|
+
media: {
|
|
4296
|
+
id: string;
|
|
4297
|
+
object: "media";
|
|
4298
|
+
profile_id: string;
|
|
4299
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
4300
|
+
content_type: string | null;
|
|
4301
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
4302
|
+
progress: {
|
|
4303
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
4304
|
+
percent: number;
|
|
4305
|
+
};
|
|
4306
|
+
raw: boolean;
|
|
4307
|
+
error: {
|
|
4308
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
4309
|
+
message: string;
|
|
4310
|
+
hint?: string;
|
|
4311
|
+
allowed?: Array<string>;
|
|
4312
|
+
got?: string;
|
|
4313
|
+
display_error: string;
|
|
4314
|
+
} | null;
|
|
4315
|
+
source: {
|
|
4316
|
+
format: string;
|
|
4317
|
+
bytes: number;
|
|
4318
|
+
width: number | null;
|
|
4319
|
+
height: number | null;
|
|
4320
|
+
duration_ms: number | null;
|
|
4321
|
+
} | null;
|
|
4322
|
+
alt_text: string | null;
|
|
4323
|
+
per_platform: {
|
|
4324
|
+
[key: string]: {
|
|
4325
|
+
status: "processing" | "ready" | "failed";
|
|
4326
|
+
url: string | null;
|
|
4327
|
+
width: number | null;
|
|
4328
|
+
height: number | null;
|
|
4329
|
+
bytes: number | null;
|
|
4330
|
+
warnings: Array<{
|
|
4331
|
+
code?: unknown;
|
|
4332
|
+
message?: unknown;
|
|
4333
|
+
hint?: unknown;
|
|
4334
|
+
allowed?: unknown;
|
|
4335
|
+
got?: unknown;
|
|
4336
|
+
display_error?: unknown;
|
|
4337
|
+
}>;
|
|
4338
|
+
errors: Array<{
|
|
4339
|
+
code?: unknown;
|
|
4340
|
+
message?: unknown;
|
|
4341
|
+
hint?: unknown;
|
|
4342
|
+
allowed?: unknown;
|
|
4343
|
+
got?: unknown;
|
|
4344
|
+
display_error?: unknown;
|
|
4345
|
+
}>;
|
|
4346
|
+
};
|
|
4347
|
+
};
|
|
4348
|
+
external_id: string | null;
|
|
4349
|
+
metadata: {
|
|
4350
|
+
[key: string]: string | number | boolean;
|
|
4351
|
+
};
|
|
4352
|
+
created_at: string;
|
|
4353
|
+
updated_at: string;
|
|
4354
|
+
};
|
|
2515
4355
|
}>;
|
|
2516
4356
|
} | {
|
|
2517
4357
|
platform: "instagram";
|
|
@@ -2553,6 +4393,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2553
4393
|
[key: string]: unknown;
|
|
2554
4394
|
} | null;
|
|
2555
4395
|
alt_text_override: string | null;
|
|
4396
|
+
media: {
|
|
4397
|
+
id: string;
|
|
4398
|
+
object: "media";
|
|
4399
|
+
profile_id: string;
|
|
4400
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
4401
|
+
content_type: string | null;
|
|
4402
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
4403
|
+
progress: {
|
|
4404
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
4405
|
+
percent: number;
|
|
4406
|
+
};
|
|
4407
|
+
raw: boolean;
|
|
4408
|
+
error: {
|
|
4409
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
4410
|
+
message: string;
|
|
4411
|
+
hint?: string;
|
|
4412
|
+
allowed?: Array<string>;
|
|
4413
|
+
got?: string;
|
|
4414
|
+
display_error: string;
|
|
4415
|
+
} | null;
|
|
4416
|
+
source: {
|
|
4417
|
+
format: string;
|
|
4418
|
+
bytes: number;
|
|
4419
|
+
width: number | null;
|
|
4420
|
+
height: number | null;
|
|
4421
|
+
duration_ms: number | null;
|
|
4422
|
+
} | null;
|
|
4423
|
+
alt_text: string | null;
|
|
4424
|
+
per_platform: {
|
|
4425
|
+
[key: string]: {
|
|
4426
|
+
status: "processing" | "ready" | "failed";
|
|
4427
|
+
url: string | null;
|
|
4428
|
+
width: number | null;
|
|
4429
|
+
height: number | null;
|
|
4430
|
+
bytes: number | null;
|
|
4431
|
+
warnings: Array<{
|
|
4432
|
+
code?: unknown;
|
|
4433
|
+
message?: unknown;
|
|
4434
|
+
hint?: unknown;
|
|
4435
|
+
allowed?: unknown;
|
|
4436
|
+
got?: unknown;
|
|
4437
|
+
display_error?: unknown;
|
|
4438
|
+
}>;
|
|
4439
|
+
errors: Array<{
|
|
4440
|
+
code?: unknown;
|
|
4441
|
+
message?: unknown;
|
|
4442
|
+
hint?: unknown;
|
|
4443
|
+
allowed?: unknown;
|
|
4444
|
+
got?: unknown;
|
|
4445
|
+
display_error?: unknown;
|
|
4446
|
+
}>;
|
|
4447
|
+
};
|
|
4448
|
+
};
|
|
4449
|
+
external_id: string | null;
|
|
4450
|
+
metadata: {
|
|
4451
|
+
[key: string]: string | number | boolean;
|
|
4452
|
+
};
|
|
4453
|
+
created_at: string;
|
|
4454
|
+
updated_at: string;
|
|
4455
|
+
};
|
|
2556
4456
|
}>;
|
|
2557
4457
|
} | {
|
|
2558
4458
|
platform: "tiktok";
|
|
@@ -2592,6 +4492,66 @@ declare function useCreatePost(profileId: string): {
|
|
|
2592
4492
|
[key: string]: unknown;
|
|
2593
4493
|
} | null;
|
|
2594
4494
|
alt_text_override: string | null;
|
|
4495
|
+
media: {
|
|
4496
|
+
id: string;
|
|
4497
|
+
object: "media";
|
|
4498
|
+
profile_id: string;
|
|
4499
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
4500
|
+
content_type: string | null;
|
|
4501
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
4502
|
+
progress: {
|
|
4503
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
4504
|
+
percent: number;
|
|
4505
|
+
};
|
|
4506
|
+
raw: boolean;
|
|
4507
|
+
error: {
|
|
4508
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
4509
|
+
message: string;
|
|
4510
|
+
hint?: string;
|
|
4511
|
+
allowed?: Array<string>;
|
|
4512
|
+
got?: string;
|
|
4513
|
+
display_error: string;
|
|
4514
|
+
} | null;
|
|
4515
|
+
source: {
|
|
4516
|
+
format: string;
|
|
4517
|
+
bytes: number;
|
|
4518
|
+
width: number | null;
|
|
4519
|
+
height: number | null;
|
|
4520
|
+
duration_ms: number | null;
|
|
4521
|
+
} | null;
|
|
4522
|
+
alt_text: string | null;
|
|
4523
|
+
per_platform: {
|
|
4524
|
+
[key: string]: {
|
|
4525
|
+
status: "processing" | "ready" | "failed";
|
|
4526
|
+
url: string | null;
|
|
4527
|
+
width: number | null;
|
|
4528
|
+
height: number | null;
|
|
4529
|
+
bytes: number | null;
|
|
4530
|
+
warnings: Array<{
|
|
4531
|
+
code?: unknown;
|
|
4532
|
+
message?: unknown;
|
|
4533
|
+
hint?: unknown;
|
|
4534
|
+
allowed?: unknown;
|
|
4535
|
+
got?: unknown;
|
|
4536
|
+
display_error?: unknown;
|
|
4537
|
+
}>;
|
|
4538
|
+
errors: Array<{
|
|
4539
|
+
code?: unknown;
|
|
4540
|
+
message?: unknown;
|
|
4541
|
+
hint?: unknown;
|
|
4542
|
+
allowed?: unknown;
|
|
4543
|
+
got?: unknown;
|
|
4544
|
+
display_error?: unknown;
|
|
4545
|
+
}>;
|
|
4546
|
+
};
|
|
4547
|
+
};
|
|
4548
|
+
external_id: string | null;
|
|
4549
|
+
metadata: {
|
|
4550
|
+
[key: string]: string | number | boolean;
|
|
4551
|
+
};
|
|
4552
|
+
created_at: string;
|
|
4553
|
+
updated_at: string;
|
|
4554
|
+
};
|
|
2595
4555
|
}>;
|
|
2596
4556
|
})[];
|
|
2597
4557
|
isReady: boolean;
|
|
@@ -2693,6 +4653,66 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
|
|
|
2693
4653
|
[key: string]: unknown;
|
|
2694
4654
|
} | null;
|
|
2695
4655
|
alt_text_override: string | null;
|
|
4656
|
+
media: {
|
|
4657
|
+
id: string;
|
|
4658
|
+
object: "media";
|
|
4659
|
+
profile_id: string;
|
|
4660
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
4661
|
+
content_type: string | null;
|
|
4662
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
4663
|
+
progress: {
|
|
4664
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
4665
|
+
percent: number;
|
|
4666
|
+
};
|
|
4667
|
+
raw: boolean;
|
|
4668
|
+
error: {
|
|
4669
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
4670
|
+
message: string;
|
|
4671
|
+
hint?: string;
|
|
4672
|
+
allowed?: Array<string>;
|
|
4673
|
+
got?: string;
|
|
4674
|
+
display_error: string;
|
|
4675
|
+
} | null;
|
|
4676
|
+
source: {
|
|
4677
|
+
format: string;
|
|
4678
|
+
bytes: number;
|
|
4679
|
+
width: number | null;
|
|
4680
|
+
height: number | null;
|
|
4681
|
+
duration_ms: number | null;
|
|
4682
|
+
} | null;
|
|
4683
|
+
alt_text: string | null;
|
|
4684
|
+
per_platform: {
|
|
4685
|
+
[key: string]: {
|
|
4686
|
+
status: "processing" | "ready" | "failed";
|
|
4687
|
+
url: string | null;
|
|
4688
|
+
width: number | null;
|
|
4689
|
+
height: number | null;
|
|
4690
|
+
bytes: number | null;
|
|
4691
|
+
warnings: Array<{
|
|
4692
|
+
code?: unknown;
|
|
4693
|
+
message?: unknown;
|
|
4694
|
+
hint?: unknown;
|
|
4695
|
+
allowed?: unknown;
|
|
4696
|
+
got?: unknown;
|
|
4697
|
+
display_error?: unknown;
|
|
4698
|
+
}>;
|
|
4699
|
+
errors: Array<{
|
|
4700
|
+
code?: unknown;
|
|
4701
|
+
message?: unknown;
|
|
4702
|
+
hint?: unknown;
|
|
4703
|
+
allowed?: unknown;
|
|
4704
|
+
got?: unknown;
|
|
4705
|
+
display_error?: unknown;
|
|
4706
|
+
}>;
|
|
4707
|
+
};
|
|
4708
|
+
};
|
|
4709
|
+
external_id: string | null;
|
|
4710
|
+
metadata: {
|
|
4711
|
+
[key: string]: string | number | boolean;
|
|
4712
|
+
};
|
|
4713
|
+
created_at: string;
|
|
4714
|
+
updated_at: string;
|
|
4715
|
+
};
|
|
2696
4716
|
}>;
|
|
2697
4717
|
} | {
|
|
2698
4718
|
platform: "linkedin";
|
|
@@ -2744,6 +4764,66 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
|
|
|
2744
4764
|
[key: string]: unknown;
|
|
2745
4765
|
} | null;
|
|
2746
4766
|
alt_text_override: string | null;
|
|
4767
|
+
media: {
|
|
4768
|
+
id: string;
|
|
4769
|
+
object: "media";
|
|
4770
|
+
profile_id: string;
|
|
4771
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
4772
|
+
content_type: string | null;
|
|
4773
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
4774
|
+
progress: {
|
|
4775
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
4776
|
+
percent: number;
|
|
4777
|
+
};
|
|
4778
|
+
raw: boolean;
|
|
4779
|
+
error: {
|
|
4780
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
4781
|
+
message: string;
|
|
4782
|
+
hint?: string;
|
|
4783
|
+
allowed?: Array<string>;
|
|
4784
|
+
got?: string;
|
|
4785
|
+
display_error: string;
|
|
4786
|
+
} | null;
|
|
4787
|
+
source: {
|
|
4788
|
+
format: string;
|
|
4789
|
+
bytes: number;
|
|
4790
|
+
width: number | null;
|
|
4791
|
+
height: number | null;
|
|
4792
|
+
duration_ms: number | null;
|
|
4793
|
+
} | null;
|
|
4794
|
+
alt_text: string | null;
|
|
4795
|
+
per_platform: {
|
|
4796
|
+
[key: string]: {
|
|
4797
|
+
status: "processing" | "ready" | "failed";
|
|
4798
|
+
url: string | null;
|
|
4799
|
+
width: number | null;
|
|
4800
|
+
height: number | null;
|
|
4801
|
+
bytes: number | null;
|
|
4802
|
+
warnings: Array<{
|
|
4803
|
+
code?: unknown;
|
|
4804
|
+
message?: unknown;
|
|
4805
|
+
hint?: unknown;
|
|
4806
|
+
allowed?: unknown;
|
|
4807
|
+
got?: unknown;
|
|
4808
|
+
display_error?: unknown;
|
|
4809
|
+
}>;
|
|
4810
|
+
errors: Array<{
|
|
4811
|
+
code?: unknown;
|
|
4812
|
+
message?: unknown;
|
|
4813
|
+
hint?: unknown;
|
|
4814
|
+
allowed?: unknown;
|
|
4815
|
+
got?: unknown;
|
|
4816
|
+
display_error?: unknown;
|
|
4817
|
+
}>;
|
|
4818
|
+
};
|
|
4819
|
+
};
|
|
4820
|
+
external_id: string | null;
|
|
4821
|
+
metadata: {
|
|
4822
|
+
[key: string]: string | number | boolean;
|
|
4823
|
+
};
|
|
4824
|
+
created_at: string;
|
|
4825
|
+
updated_at: string;
|
|
4826
|
+
};
|
|
2747
4827
|
}>;
|
|
2748
4828
|
} | {
|
|
2749
4829
|
platform: "facebook_page";
|
|
@@ -2774,6 +4854,66 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
|
|
|
2774
4854
|
[key: string]: unknown;
|
|
2775
4855
|
} | null;
|
|
2776
4856
|
alt_text_override: string | null;
|
|
4857
|
+
media: {
|
|
4858
|
+
id: string;
|
|
4859
|
+
object: "media";
|
|
4860
|
+
profile_id: string;
|
|
4861
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
4862
|
+
content_type: string | null;
|
|
4863
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
4864
|
+
progress: {
|
|
4865
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
4866
|
+
percent: number;
|
|
4867
|
+
};
|
|
4868
|
+
raw: boolean;
|
|
4869
|
+
error: {
|
|
4870
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
4871
|
+
message: string;
|
|
4872
|
+
hint?: string;
|
|
4873
|
+
allowed?: Array<string>;
|
|
4874
|
+
got?: string;
|
|
4875
|
+
display_error: string;
|
|
4876
|
+
} | null;
|
|
4877
|
+
source: {
|
|
4878
|
+
format: string;
|
|
4879
|
+
bytes: number;
|
|
4880
|
+
width: number | null;
|
|
4881
|
+
height: number | null;
|
|
4882
|
+
duration_ms: number | null;
|
|
4883
|
+
} | null;
|
|
4884
|
+
alt_text: string | null;
|
|
4885
|
+
per_platform: {
|
|
4886
|
+
[key: string]: {
|
|
4887
|
+
status: "processing" | "ready" | "failed";
|
|
4888
|
+
url: string | null;
|
|
4889
|
+
width: number | null;
|
|
4890
|
+
height: number | null;
|
|
4891
|
+
bytes: number | null;
|
|
4892
|
+
warnings: Array<{
|
|
4893
|
+
code?: unknown;
|
|
4894
|
+
message?: unknown;
|
|
4895
|
+
hint?: unknown;
|
|
4896
|
+
allowed?: unknown;
|
|
4897
|
+
got?: unknown;
|
|
4898
|
+
display_error?: unknown;
|
|
4899
|
+
}>;
|
|
4900
|
+
errors: Array<{
|
|
4901
|
+
code?: unknown;
|
|
4902
|
+
message?: unknown;
|
|
4903
|
+
hint?: unknown;
|
|
4904
|
+
allowed?: unknown;
|
|
4905
|
+
got?: unknown;
|
|
4906
|
+
display_error?: unknown;
|
|
4907
|
+
}>;
|
|
4908
|
+
};
|
|
4909
|
+
};
|
|
4910
|
+
external_id: string | null;
|
|
4911
|
+
metadata: {
|
|
4912
|
+
[key: string]: string | number | boolean;
|
|
4913
|
+
};
|
|
4914
|
+
created_at: string;
|
|
4915
|
+
updated_at: string;
|
|
4916
|
+
};
|
|
2777
4917
|
}>;
|
|
2778
4918
|
} | {
|
|
2779
4919
|
platform: "instagram";
|
|
@@ -2815,6 +4955,66 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
|
|
|
2815
4955
|
[key: string]: unknown;
|
|
2816
4956
|
} | null;
|
|
2817
4957
|
alt_text_override: string | null;
|
|
4958
|
+
media: {
|
|
4959
|
+
id: string;
|
|
4960
|
+
object: "media";
|
|
4961
|
+
profile_id: string;
|
|
4962
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
4963
|
+
content_type: string | null;
|
|
4964
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
4965
|
+
progress: {
|
|
4966
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
4967
|
+
percent: number;
|
|
4968
|
+
};
|
|
4969
|
+
raw: boolean;
|
|
4970
|
+
error: {
|
|
4971
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
4972
|
+
message: string;
|
|
4973
|
+
hint?: string;
|
|
4974
|
+
allowed?: Array<string>;
|
|
4975
|
+
got?: string;
|
|
4976
|
+
display_error: string;
|
|
4977
|
+
} | null;
|
|
4978
|
+
source: {
|
|
4979
|
+
format: string;
|
|
4980
|
+
bytes: number;
|
|
4981
|
+
width: number | null;
|
|
4982
|
+
height: number | null;
|
|
4983
|
+
duration_ms: number | null;
|
|
4984
|
+
} | null;
|
|
4985
|
+
alt_text: string | null;
|
|
4986
|
+
per_platform: {
|
|
4987
|
+
[key: string]: {
|
|
4988
|
+
status: "processing" | "ready" | "failed";
|
|
4989
|
+
url: string | null;
|
|
4990
|
+
width: number | null;
|
|
4991
|
+
height: number | null;
|
|
4992
|
+
bytes: number | null;
|
|
4993
|
+
warnings: Array<{
|
|
4994
|
+
code?: unknown;
|
|
4995
|
+
message?: unknown;
|
|
4996
|
+
hint?: unknown;
|
|
4997
|
+
allowed?: unknown;
|
|
4998
|
+
got?: unknown;
|
|
4999
|
+
display_error?: unknown;
|
|
5000
|
+
}>;
|
|
5001
|
+
errors: Array<{
|
|
5002
|
+
code?: unknown;
|
|
5003
|
+
message?: unknown;
|
|
5004
|
+
hint?: unknown;
|
|
5005
|
+
allowed?: unknown;
|
|
5006
|
+
got?: unknown;
|
|
5007
|
+
display_error?: unknown;
|
|
5008
|
+
}>;
|
|
5009
|
+
};
|
|
5010
|
+
};
|
|
5011
|
+
external_id: string | null;
|
|
5012
|
+
metadata: {
|
|
5013
|
+
[key: string]: string | number | boolean;
|
|
5014
|
+
};
|
|
5015
|
+
created_at: string;
|
|
5016
|
+
updated_at: string;
|
|
5017
|
+
};
|
|
2818
5018
|
}>;
|
|
2819
5019
|
} | {
|
|
2820
5020
|
platform: "tiktok";
|
|
@@ -2854,6 +5054,66 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
|
|
|
2854
5054
|
[key: string]: unknown;
|
|
2855
5055
|
} | null;
|
|
2856
5056
|
alt_text_override: string | null;
|
|
5057
|
+
media: {
|
|
5058
|
+
id: string;
|
|
5059
|
+
object: "media";
|
|
5060
|
+
profile_id: string;
|
|
5061
|
+
kind: "image" | "video" | "gif" | "document" | null;
|
|
5062
|
+
content_type: string | null;
|
|
5063
|
+
status: "uploading" | "processing" | "ready" | "failed";
|
|
5064
|
+
progress: {
|
|
5065
|
+
stage: "queued" | "analyzing" | "transcoding" | "done";
|
|
5066
|
+
percent: number;
|
|
5067
|
+
};
|
|
5068
|
+
raw: boolean;
|
|
5069
|
+
error: {
|
|
5070
|
+
code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_unsupported";
|
|
5071
|
+
message: string;
|
|
5072
|
+
hint?: string;
|
|
5073
|
+
allowed?: Array<string>;
|
|
5074
|
+
got?: string;
|
|
5075
|
+
display_error: string;
|
|
5076
|
+
} | null;
|
|
5077
|
+
source: {
|
|
5078
|
+
format: string;
|
|
5079
|
+
bytes: number;
|
|
5080
|
+
width: number | null;
|
|
5081
|
+
height: number | null;
|
|
5082
|
+
duration_ms: number | null;
|
|
5083
|
+
} | null;
|
|
5084
|
+
alt_text: string | null;
|
|
5085
|
+
per_platform: {
|
|
5086
|
+
[key: string]: {
|
|
5087
|
+
status: "processing" | "ready" | "failed";
|
|
5088
|
+
url: string | null;
|
|
5089
|
+
width: number | null;
|
|
5090
|
+
height: number | null;
|
|
5091
|
+
bytes: number | null;
|
|
5092
|
+
warnings: Array<{
|
|
5093
|
+
code?: unknown;
|
|
5094
|
+
message?: unknown;
|
|
5095
|
+
hint?: unknown;
|
|
5096
|
+
allowed?: unknown;
|
|
5097
|
+
got?: unknown;
|
|
5098
|
+
display_error?: unknown;
|
|
5099
|
+
}>;
|
|
5100
|
+
errors: Array<{
|
|
5101
|
+
code?: unknown;
|
|
5102
|
+
message?: unknown;
|
|
5103
|
+
hint?: unknown;
|
|
5104
|
+
allowed?: unknown;
|
|
5105
|
+
got?: unknown;
|
|
5106
|
+
display_error?: unknown;
|
|
5107
|
+
}>;
|
|
5108
|
+
};
|
|
5109
|
+
};
|
|
5110
|
+
external_id: string | null;
|
|
5111
|
+
metadata: {
|
|
5112
|
+
[key: string]: string | number | boolean;
|
|
5113
|
+
};
|
|
5114
|
+
created_at: string;
|
|
5115
|
+
updated_at: string;
|
|
5116
|
+
};
|
|
2857
5117
|
}>;
|
|
2858
5118
|
}>;
|
|
2859
5119
|
created_at: string;
|
|
@@ -3047,8 +5307,9 @@ declare function useTikTokCreatorInfo(connectionId: string | null): _tanstack_re
|
|
|
3047
5307
|
* A platform's FETCHED (read) variant — one member of a stored `Post`'s
|
|
3048
5308
|
* `variants`, as returned by `usePost`/`usePosts`/the calendar. Since the API's
|
|
3049
5309
|
* read variant is now a typed discriminated union, it carries the SAME typed
|
|
3050
|
-
* `settings`/`body`/`post_type
|
|
3051
|
-
*
|
|
5310
|
+
* `settings`/`body`/`post_type` the write variant does, plus the read-only
|
|
5311
|
+
* `id`/`status`/`result`/`error` AND the enriched `media[].media` (the full
|
|
5312
|
+
* `MediaResource` inline) — so a fetched post previews with no extra fetch.
|
|
3052
5313
|
*/
|
|
3053
5314
|
type ReadPostVariant<P extends PostVariant['platform']> = Extract<PostVariant, {
|
|
3054
5315
|
platform: P;
|
|
@@ -3056,147 +5317,152 @@ type ReadPostVariant<P extends PostVariant['platform']> = Extract<PostVariant, {
|
|
|
3056
5317
|
/**
|
|
3057
5318
|
* What a preview's `variant` prop accepts: EITHER the compose-time **write**
|
|
3058
5319
|
* variant (`XPostVariant`, …) OR the fetched **read** variant. Both expose the
|
|
3059
|
-
* typed `settings`, `body`, `post_type`, and `media
|
|
3060
|
-
*
|
|
3061
|
-
*
|
|
5320
|
+
* typed `settings`, `body`, `post_type`, and ordered `media` refs the cards read
|
|
5321
|
+
* — so you can hand a preview a post you just built OR one you fetched, with no
|
|
5322
|
+
* transform. A read variant additionally carries each media's full asset inline;
|
|
5323
|
+
* a write/draft variant references media by id (resolve it via the `media` prop).
|
|
3062
5324
|
*/
|
|
3063
5325
|
type XPreviewVariant = XPostVariant | ReadPostVariant<'x'>;
|
|
3064
5326
|
type LinkedInPreviewVariant = LinkedInPostVariant | ReadPostVariant<'linkedin'>;
|
|
3065
5327
|
type TikTokPreviewVariant = TikTokPostVariant | ReadPostVariant<'tiktok'>;
|
|
3066
5328
|
type InstagramPreviewVariant = InstagramPostVariant | ReadPostVariant<'instagram'>;
|
|
3067
5329
|
/**
|
|
3068
|
-
*
|
|
3069
|
-
*
|
|
3070
|
-
*
|
|
3071
|
-
*
|
|
3072
|
-
*
|
|
3073
|
-
* Fields the API does NOT store (a verified badge, a display name distinct from
|
|
3074
|
-
* the handle, a LinkedIn headline) are presentation extras the customer supplies;
|
|
3075
|
-
* those are the documented backend gaps. Media `kind` derives from `MediaKind`;
|
|
3076
|
-
* pixels are still a `url`/`File` because a variant references media by id.
|
|
3077
|
-
*/
|
|
3078
|
-
/** The identity fields our `Connection` stores — the SDK-driven base every
|
|
3079
|
-
* preview author derives from (so the field names + nullability match the API). */
|
|
3080
|
-
type ConnectionIdentity = Pick<Connection, 'username' | 'avatar_url'>;
|
|
3081
|
-
/**
|
|
3082
|
-
* The author identity rendered in an X preview header. `username` (the `@handle`)
|
|
3083
|
-
* and `avatar_url` are DERIVED from the SDK `Connection`; `name` (the display
|
|
3084
|
-
* name) and `verified` are presentation extras our API doesn't store.
|
|
3085
|
-
*/
|
|
3086
|
-
type XPreviewAuthor = ConnectionIdentity & {
|
|
3087
|
-
/** Display name, e.g. "Acme Studio". NOT on Connection — caller-supplied. */
|
|
3088
|
-
name: string;
|
|
3089
|
-
/** Show the verified badge. NOT on Connection — caller-supplied. */
|
|
3090
|
-
verified?: boolean;
|
|
3091
|
-
};
|
|
3092
|
-
/**
|
|
3093
|
-
* The author identity rendered in a LinkedIn preview header. LinkedIn shows a
|
|
3094
|
-
* display `name` + a one-line `headline`. `username`/`avatar_url` are DERIVED
|
|
3095
|
-
* from the SDK `Connection`; `name`/`headline`/`verified` are presentation extras
|
|
3096
|
-
* our API doesn't store (LinkedIn's `username` is also documented as NULL today).
|
|
3097
|
-
*/
|
|
3098
|
-
type LinkedInPreviewAuthor = ConnectionIdentity & {
|
|
3099
|
-
/** Display name, e.g. "Acme Studio". NOT on Connection — caller-supplied. */
|
|
3100
|
-
name: string;
|
|
3101
|
-
/** One-line headline under the name. NOT on Connection — caller-supplied. */
|
|
3102
|
-
headline?: string;
|
|
3103
|
-
/** Show the verified badge. NOT on Connection — caller-supplied. */
|
|
3104
|
-
verified?: boolean;
|
|
3105
|
-
};
|
|
3106
|
-
/**
|
|
3107
|
-
* The author identity rendered in an Instagram preview header. Instagram shows
|
|
3108
|
-
* the `username` (no separate display name) + an optional verified badge.
|
|
5330
|
+
* The author a preview header renders. It is DERIVED from the SDK `Connection`
|
|
5331
|
+
* (the system of record for who's posting) — the card reads `avatar_url`,
|
|
5332
|
+
* `username`, and `external_account_name` straight off it, so the header can't
|
|
5333
|
+
* drift from the connection. Pass the whole connection; the card picks what it
|
|
5334
|
+
* needs.
|
|
3109
5335
|
*
|
|
3110
|
-
*
|
|
3111
|
-
*
|
|
3112
|
-
*
|
|
3113
|
-
* so the customer supplies it (or omit it).
|
|
5336
|
+
* The two things our API does NOT store on a connection are presentation extras
|
|
5337
|
+
* a customer may supply via the preview's own props: a `verified` badge and a
|
|
5338
|
+
* LinkedIn `headline`. Everything else comes from the connection.
|
|
3114
5339
|
*/
|
|
3115
|
-
type
|
|
3116
|
-
/** Verified badge. NOT sourced from our Connection — presentation-only. */
|
|
3117
|
-
verified?: boolean;
|
|
3118
|
-
};
|
|
5340
|
+
type PreviewConnection = Pick<Connection, 'platform' | 'username' | 'avatar_url' | 'external_account_name'>;
|
|
3119
5341
|
/** The media kinds a social preview can render (documents are not previewable
|
|
3120
5342
|
* here) — derived from the SDK's `MediaKind`, never re-listed. */
|
|
3121
5343
|
type PreviewMediaKind = Extract<MediaKind, 'image' | 'video' | 'gif'>;
|
|
3122
5344
|
/**
|
|
3123
|
-
* One media item
|
|
3124
|
-
*
|
|
3125
|
-
*
|
|
3126
|
-
*
|
|
5345
|
+
* One media item resolved for rendering — the shared shape every platform card's
|
|
5346
|
+
* renderer consumes. Produced by `resolveVariantMedia` straight from the SDK
|
|
5347
|
+
* `MediaResource`; pixels come from the per-platform rendition `url`, never a
|
|
5348
|
+
* local `File`.
|
|
5349
|
+
*
|
|
5350
|
+
* `state` is honest: a `ready` item has its `src` (the rendition URL); a
|
|
5351
|
+
* `processing` item has NO `src` (the asset or its rendition isn't ready) and the
|
|
5352
|
+
* card shows the shared "Processing media…" placeholder in its place.
|
|
3127
5353
|
*/
|
|
3128
|
-
|
|
5354
|
+
type ResolvedMedia = {
|
|
3129
5355
|
kind: PreviewMediaKind;
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
/** Natural pixel width — improves layout fidelity when known. */
|
|
5356
|
+
state: 'ready';
|
|
5357
|
+
src: string;
|
|
3133
5358
|
width?: number;
|
|
3134
|
-
/** Natural pixel height — improves layout fidelity when known. */
|
|
3135
5359
|
height?: number;
|
|
3136
|
-
/** Alt text; falls back to the variant media's `alt_text_override`. */
|
|
3137
5360
|
alt?: string;
|
|
3138
|
-
|
|
3139
|
-
posterUrl?: string;
|
|
3140
|
-
}
|
|
3141
|
-
/** @deprecated Use {@link PreviewMedia}. Kept as an alias for back-compat. */
|
|
3142
|
-
type XPreviewMedia = PreviewMedia;
|
|
3143
|
-
/** A media item with its pixels already resolved to a single URL by the
|
|
3144
|
-
* component (shared by every platform preview's renderer). */
|
|
3145
|
-
interface ResolvedMedia {
|
|
5361
|
+
} | {
|
|
3146
5362
|
kind: PreviewMediaKind;
|
|
3147
|
-
|
|
5363
|
+
state: 'processing';
|
|
5364
|
+
src?: undefined;
|
|
3148
5365
|
width?: number;
|
|
3149
5366
|
height?: number;
|
|
3150
5367
|
alt?: string;
|
|
3151
|
-
|
|
3152
|
-
}
|
|
5368
|
+
};
|
|
5369
|
+
/** A resolved item that has pixels — the `ready` member of {@link ResolvedMedia}
|
|
5370
|
+
* (so `src` is guaranteed). Renderers that draw actual media take this; the
|
|
5371
|
+
* card decides up front whether to render pixels or the processing placeholder. */
|
|
5372
|
+
type ReadyMedia = Extract<ResolvedMedia, {
|
|
5373
|
+
state: 'ready';
|
|
5374
|
+
}>;
|
|
5375
|
+
/** Narrow a resolved item to its ready (has-pixels) form. */
|
|
5376
|
+
declare function isReadyMedia(item: ResolvedMedia): item is ReadyMedia;
|
|
3153
5377
|
/**
|
|
3154
5378
|
* Content for the nested quoted card. Supplied separately because our schema
|
|
3155
|
-
* carries only an opaque `quote_tweet_id` (no quoted text/author).
|
|
5379
|
+
* carries only an opaque `quote_tweet_id` (no quoted text/author/media).
|
|
3156
5380
|
*/
|
|
3157
5381
|
interface XPreviewQuotedTweet {
|
|
3158
|
-
|
|
5382
|
+
/** The quoted account's display name. */
|
|
5383
|
+
name: string;
|
|
5384
|
+
/** The quoted account's @handle. */
|
|
5385
|
+
username?: string | null;
|
|
5386
|
+
/** The quoted account's avatar URL. */
|
|
5387
|
+
avatar_url?: string | null;
|
|
3159
5388
|
body?: string;
|
|
3160
|
-
media?:
|
|
5389
|
+
media?: ResolvedMedia[];
|
|
3161
5390
|
}
|
|
3162
5391
|
|
|
3163
|
-
|
|
5392
|
+
/**
|
|
5393
|
+
* The single media resolver every platform preview shares. It turns a variant's
|
|
5394
|
+
* ordered media references into the `ResolvedMedia[]` a card renders — pulling
|
|
5395
|
+
* pixels from the SDK `MediaResource` ONLY (the per-platform rendition `url`),
|
|
5396
|
+
* never a local `File`/object URL.
|
|
5397
|
+
*
|
|
5398
|
+
* A variant references media by id (`media[].media_id`). Two ways the full asset
|
|
5399
|
+
* arrives, and we read whichever is present:
|
|
5400
|
+
* - **Read / enriched variant:** `media[].media` carries the full `MediaResource`
|
|
5401
|
+
* inline (the GET /v1/posts shape) — used directly.
|
|
5402
|
+
* - **Compose / draft variant:** the write variant has only ids, so the host
|
|
5403
|
+
* passes the uploaded assets as `fallback` (e.g. `useMediaUpload().ready`),
|
|
5404
|
+
* matched by `media_id`.
|
|
5405
|
+
*
|
|
5406
|
+
* Media STATE is honest, straight off the resource: an asset still uploading /
|
|
5407
|
+
* processing (or whose this-platform rendition isn't ready) resolves with
|
|
5408
|
+
* `state: 'processing'` and no `src` — the card shows the shared "Processing
|
|
5409
|
+
* media…" placeholder; a ready rendition resolves with `state: 'ready'` + its
|
|
5410
|
+
* pixel URL. Documents aren't previewable and are dropped.
|
|
5411
|
+
*/
|
|
5412
|
+
/** One variant's media reference — the WRITE (compose, id-only) OR the READ
|
|
5413
|
+
* (enriched, carries the full asset inline) shape. Both are derived from the SDK
|
|
5414
|
+
* variant unions, never re-declared. The write member is `media_id`-only; the
|
|
5415
|
+
* read member adds `media`/`position`. */
|
|
5416
|
+
type VariantMediaRef = NonNullable<PostVariantInput['media']>[number] | NonNullable<PostVariant['media']>[number];
|
|
5417
|
+
/**
|
|
5418
|
+
* Resolve a variant's media to renderable items for ONE platform target.
|
|
5419
|
+
*
|
|
5420
|
+
* @param refs the variant's `media` array (write or read shape)
|
|
5421
|
+
* @param target the media render target for this platform (`x`, `linkedin`,
|
|
5422
|
+
* `instagram`, `tiktok`, `facebook_page`)
|
|
5423
|
+
* @param fallback uploaded assets to resolve compose-time ids against (the read
|
|
5424
|
+
* variant carries its own enriched assets, so this is optional)
|
|
5425
|
+
*/
|
|
5426
|
+
declare function resolveVariantMedia(refs: readonly VariantMediaRef[] | undefined, target: MediaTarget, fallback?: readonly MediaResource[]): ResolvedMedia[];
|
|
3164
5427
|
|
|
3165
5428
|
interface XPostPreviewProps {
|
|
3166
5429
|
/** The X variant — either a compose-time write variant or a fetched read
|
|
3167
|
-
* variant
|
|
5430
|
+
* variant. A read variant carries its media assets inline; for a compose
|
|
5431
|
+
* variant, pass the uploaded assets via `media`. */
|
|
3168
5432
|
variant: XPreviewVariant;
|
|
3169
|
-
/**
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
media
|
|
5433
|
+
/** The posting account — the SDK `Connection`. The header derives the name,
|
|
5434
|
+
* @handle, and avatar from it. */
|
|
5435
|
+
connection: PreviewConnection;
|
|
5436
|
+
/** Uploaded assets to resolve a compose variant's media ids against (e.g.
|
|
5437
|
+
* `useMediaUpload().ready`). A read variant carries its own assets inline, so
|
|
5438
|
+
* this is only needed for a compose-time draft. */
|
|
5439
|
+
media?: readonly MediaResource[];
|
|
5440
|
+
/** Show the X verified badge — our API doesn't store it, so you supply it. */
|
|
5441
|
+
verified?: boolean;
|
|
3173
5442
|
/** Content for the quoted card when `settings.quote_tweet_id` is set. */
|
|
3174
5443
|
quotedTweet?: XPreviewQuotedTweet;
|
|
3175
5444
|
/** The replied-to account's handle (our schema only stores the parent id). */
|
|
3176
5445
|
replyToHandle?: string;
|
|
3177
|
-
/** Color scheme. `auto` (default) follows the OS color scheme
|
|
3178
|
-
* the same resolution every Postrun preview card uses. */
|
|
5446
|
+
/** Color scheme. `auto` (default) follows the OS color scheme. */
|
|
3179
5447
|
theme?: 'light' | 'dark' | 'auto';
|
|
3180
5448
|
/** Show the static action row (icons, no counts). Default true. */
|
|
3181
5449
|
showActions?: boolean;
|
|
3182
5450
|
/** Class applied to the wrapper — your hook for sizing, shadows, etc. */
|
|
3183
5451
|
className?: string;
|
|
3184
|
-
/** Inline styles on the wrapper — e.g. react-tweet CSS variables
|
|
3185
|
-
* (`{ ['--tweet-container-margin']: '0' }`). */
|
|
5452
|
+
/** Inline styles on the wrapper — e.g. react-tweet CSS variables. */
|
|
3186
5453
|
style?: CSSProperties;
|
|
3187
5454
|
/** Override react-tweet's internal pieces (e.g. `next/image` avatars). */
|
|
3188
5455
|
components?: TwitterComponents;
|
|
3189
5456
|
}
|
|
3190
5457
|
/**
|
|
3191
5458
|
* A faithful, pixel-accurate preview of how an X post will look once published,
|
|
3192
|
-
* rendered straight from a Postrun X variant
|
|
3193
|
-
* card X
|
|
3194
|
-
*
|
|
3195
|
-
*
|
|
5459
|
+
* rendered straight from a Postrun X variant + the posting `Connection`. Built on
|
|
5460
|
+
* `react-tweet` (the same card X ships): pass the schema, render the preview.
|
|
5461
|
+
* Media pixels come from the resolved per-platform renditions — a still-processing
|
|
5462
|
+
* asset shows the shared "Processing media…" tile instead of a fake image.
|
|
3196
5463
|
*/
|
|
3197
|
-
declare function XPostPreviewImpl({ variant,
|
|
3198
|
-
/** Memoized: re-renders only when its props change
|
|
3199
|
-
* already absorbs unstable media arrays). */
|
|
5464
|
+
declare function XPostPreviewImpl({ variant, connection, media, verified, quotedTweet, replyToHandle, theme, showActions, className, style, components: componentsProp, }: XPostPreviewProps): react.JSX.Element;
|
|
5465
|
+
/** Memoized: re-renders only when its props change. */
|
|
3200
5466
|
declare const XPostPreview: react.MemoExoticComponent<typeof XPostPreviewImpl>;
|
|
3201
5467
|
|
|
3202
5468
|
/**
|
|
@@ -3224,26 +5490,31 @@ type LinkedInTheme = 'light' | 'dark' | 'auto';
|
|
|
3224
5490
|
|
|
3225
5491
|
/**
|
|
3226
5492
|
* A faithful, schema-driven preview of how a LinkedIn post will look in-feed,
|
|
3227
|
-
* rendered straight from a Postrun LinkedIn variant
|
|
3228
|
-
*
|
|
3229
|
-
*
|
|
3230
|
-
*
|
|
5493
|
+
* rendered straight from a Postrun LinkedIn variant + the posting `Connection`.
|
|
5494
|
+
* Clean-room components mirroring the real feed card: header with headline +
|
|
5495
|
+
* audience icon, an entity-highlighted body with the "…more" fold, the
|
|
5496
|
+
* 1/2/3/4/+N image mosaic (or a video), and a static action bar.
|
|
3231
5497
|
*
|
|
3232
5498
|
* Renders every `content_kind`: text, single/multi image, video, plus the rich
|
|
3233
5499
|
* units — article share card, poll, and document — each driven from
|
|
3234
|
-
* `settings.{article,poll,document}
|
|
3235
|
-
*
|
|
3236
|
-
*
|
|
3237
|
-
* the `--pr-li-*` CSS variables the card reads.
|
|
5500
|
+
* `settings.{article,poll,document}`. Media pixels come from the resolved
|
|
5501
|
+
* per-platform renditions; a still-processing asset shows the shared
|
|
5502
|
+
* "Processing media…" tile.
|
|
3238
5503
|
*/
|
|
3239
5504
|
interface LinkedInPostPreviewProps {
|
|
3240
|
-
/** The LinkedIn variant —
|
|
3241
|
-
*
|
|
5505
|
+
/** The LinkedIn variant — compose-time write OR fetched read (carries assets
|
|
5506
|
+
* inline). */
|
|
3242
5507
|
variant: LinkedInPreviewVariant;
|
|
3243
|
-
/**
|
|
3244
|
-
|
|
3245
|
-
/**
|
|
3246
|
-
|
|
5508
|
+
/** The posting account — the SDK `Connection`. Name/avatar derive from it. */
|
|
5509
|
+
connection: PreviewConnection;
|
|
5510
|
+
/** Uploaded assets to resolve a compose variant's media ids against (e.g.
|
|
5511
|
+
* `useMediaUpload().ready`); a read variant carries its own inline. */
|
|
5512
|
+
media?: readonly MediaResource[];
|
|
5513
|
+
/** One-line headline under the name — our API doesn't store it, so you supply
|
|
5514
|
+
* it. */
|
|
5515
|
+
headline?: string;
|
|
5516
|
+
/** Show the verified badge — our API doesn't store it, so you supply it. */
|
|
5517
|
+
verified?: boolean;
|
|
3247
5518
|
/** Color scheme. `auto` (default) follows the OS preference. */
|
|
3248
5519
|
theme?: LinkedInTheme;
|
|
3249
5520
|
/** Relative time label shown in the header. Default "Now". */
|
|
@@ -3255,9 +5526,8 @@ interface LinkedInPostPreviewProps {
|
|
|
3255
5526
|
/** Inline styles on the card — including `--pr-li-*` variable overrides. */
|
|
3256
5527
|
style?: CSSProperties;
|
|
3257
5528
|
}
|
|
3258
|
-
declare function LinkedInPostPreviewImpl({ variant,
|
|
3259
|
-
/** Memoized: re-renders only when its props change
|
|
3260
|
-
* absorbs unstable media arrays). */
|
|
5529
|
+
declare function LinkedInPostPreviewImpl({ variant, connection, media, headline, verified, theme, time, showActions, className, style, }: LinkedInPostPreviewProps): react.JSX.Element;
|
|
5530
|
+
/** Memoized: re-renders only when its props change. */
|
|
3261
5531
|
declare const LinkedInPostPreview: react.MemoExoticComponent<typeof LinkedInPostPreviewImpl>;
|
|
3262
5532
|
|
|
3263
5533
|
/**
|
|
@@ -3272,7 +5542,7 @@ type LinkedInArticle = NonNullable<NonNullable<LinkedInPostVariant['settings']>[
|
|
|
3272
5542
|
interface ArticleCardProps {
|
|
3273
5543
|
article: LinkedInArticle;
|
|
3274
5544
|
/** Resolved thumbnail pixels (from `article.thumbnail_media_id`), if any. */
|
|
3275
|
-
thumbnail?:
|
|
5545
|
+
thumbnail?: ReadyMedia;
|
|
3276
5546
|
}
|
|
3277
5547
|
declare function ArticleCard({ article, thumbnail }: ArticleCardProps): react.JSX.Element;
|
|
3278
5548
|
|
|
@@ -3301,7 +5571,7 @@ type LinkedInDocument = NonNullable<NonNullable<LinkedInPostVariant['settings']>
|
|
|
3301
5571
|
interface DocumentCardProps {
|
|
3302
5572
|
document: LinkedInDocument;
|
|
3303
5573
|
/** Resolved first-page pixels (from the document asset on media[]), if any. */
|
|
3304
|
-
cover?:
|
|
5574
|
+
cover?: ReadyMedia;
|
|
3305
5575
|
}
|
|
3306
5576
|
declare function DocumentCard({ document, cover }: DocumentCardProps): react.JSX.Element;
|
|
3307
5577
|
|
|
@@ -3319,36 +5589,45 @@ type InstagramTheme = 'light' | 'dark' | 'auto';
|
|
|
3319
5589
|
|
|
3320
5590
|
/**
|
|
3321
5591
|
* A faithful, schema-driven preview of how an Instagram post will look, rendered
|
|
3322
|
-
* straight from a Postrun Instagram variant
|
|
3323
|
-
*
|
|
3324
|
-
*
|
|
3325
|
-
*
|
|
3326
|
-
*
|
|
3327
|
-
*
|
|
3328
|
-
* Clean-room (there's no package to "buy" — Instagram's embed only renders
|
|
3329
|
-
* already-published posts), referencing the real IG feed + Postiz.
|
|
5592
|
+
* straight from a Postrun Instagram variant + the posting `Connection`. Covers a
|
|
5593
|
+
* **feed** post (single image / carousel) and a **reel** (9:16 video). Identity
|
|
5594
|
+
* (`username`/`avatar_url`) derives from the connection; `verified` is a caller
|
|
5595
|
+
* extra. Media pixels come from the resolved per-platform renditions; a
|
|
5596
|
+
* still-processing asset shows the shared "Processing media…" tile. Feed themes
|
|
5597
|
+
* light/dark/`auto`; the reel is always dark.
|
|
3330
5598
|
*/
|
|
3331
5599
|
interface InstagramPostPreviewProps {
|
|
3332
|
-
/** The Instagram variant —
|
|
3333
|
-
*
|
|
5600
|
+
/** The Instagram variant — compose-time write OR fetched read (carries assets
|
|
5601
|
+
* inline). */
|
|
3334
5602
|
variant: InstagramPreviewVariant;
|
|
3335
|
-
/**
|
|
3336
|
-
|
|
3337
|
-
/**
|
|
3338
|
-
|
|
5603
|
+
/** The posting account — the SDK `Connection`. Username/avatar derive from it. */
|
|
5604
|
+
connection: PreviewConnection;
|
|
5605
|
+
/** Uploaded assets to resolve a compose variant's media ids against (e.g.
|
|
5606
|
+
* `useMediaUpload().ready`); a read variant carries its own inline. */
|
|
5607
|
+
media?: readonly MediaResource[];
|
|
5608
|
+
/** Show the verified seal — our API doesn't store it, so you supply it. */
|
|
5609
|
+
verified?: boolean;
|
|
3339
5610
|
/** Color scheme for the feed card. `auto` (default) follows the OS. */
|
|
3340
5611
|
theme?: InstagramTheme;
|
|
3341
5612
|
className?: string;
|
|
3342
5613
|
style?: CSSProperties;
|
|
3343
5614
|
}
|
|
3344
|
-
declare function InstagramPostPreviewImpl({ variant,
|
|
3345
|
-
/** Memoized
|
|
5615
|
+
declare function InstagramPostPreviewImpl({ variant, connection, media, verified, theme, className, style, }: InstagramPostPreviewProps): react.JSX.Element;
|
|
5616
|
+
/** Memoized. */
|
|
3346
5617
|
declare const InstagramPostPreview: react.MemoExoticComponent<typeof InstagramPostPreviewImpl>;
|
|
3347
5618
|
|
|
5619
|
+
/** The Instagram header's identity view-model — `username`/`avatar_url` derive
|
|
5620
|
+
* from the connection; `verified` is caller-supplied (not stored on ours). */
|
|
5621
|
+
interface InstagramAuthor {
|
|
5622
|
+
username?: string | null;
|
|
5623
|
+
avatar_url?: string | null;
|
|
5624
|
+
verified?: boolean;
|
|
5625
|
+
}
|
|
5626
|
+
|
|
3348
5627
|
interface ReelPreviewProps {
|
|
3349
|
-
author:
|
|
5628
|
+
author: InstagramAuthor;
|
|
3350
5629
|
body: string;
|
|
3351
|
-
media: readonly
|
|
5630
|
+
media: readonly ReadyMedia[];
|
|
3352
5631
|
/** Media is referenced but its pixels aren't resolved yet (still processing). */
|
|
3353
5632
|
pending?: boolean;
|
|
3354
5633
|
/** The reel's audio label (`settings.audio_name`); defaults to "Original audio". */
|
|
@@ -3378,10 +5657,12 @@ interface TikTokPostPreviewProps {
|
|
|
3378
5657
|
/** The TikTok variant — either a compose-time write variant or a fetched read
|
|
3379
5658
|
* variant (both carry the typed settings/body the card renders). */
|
|
3380
5659
|
variant: TikTokPreviewVariant;
|
|
3381
|
-
/** Live creator info (nickname/avatar, audience options, interaction flags)
|
|
5660
|
+
/** Live creator info (nickname/avatar, audience options, interaction flags) —
|
|
5661
|
+
* TikTok's Required-UX makes this the authoritative creator identity. */
|
|
3382
5662
|
creatorInfo: TikTokCreatorInfo;
|
|
3383
|
-
/**
|
|
3384
|
-
|
|
5663
|
+
/** Uploaded assets to resolve a compose variant's media ids against (e.g.
|
|
5664
|
+
* `useMediaUpload().ready`); a read variant carries its own inline. */
|
|
5665
|
+
media?: readonly MediaResource[];
|
|
3385
5666
|
/** Class applied to the phone frame — your hook for sizing. */
|
|
3386
5667
|
className?: string;
|
|
3387
5668
|
/** Inline styles on the frame. */
|
|
@@ -3499,4 +5780,4 @@ declare function Declaration({ brandedContent }: {
|
|
|
3499
5780
|
brandedContent: boolean;
|
|
3500
5781
|
}): react.JSX.Element;
|
|
3501
5782
|
|
|
3502
|
-
export { ArticleCard, type ArticleCardProps, AudienceSelect, type CalendarFilters, CommercialDisclosure, Connect, type ConnectErrorReason, type ConnectOutcome, type ConnectProps, type ConnectRenderApi, type ConnectState, type
|
|
5783
|
+
export { ArticleCard, type ArticleCardProps, AudienceSelect, type CalendarFilters, CommercialDisclosure, Connect, type ConnectErrorReason, type ConnectOutcome, type ConnectProps, type ConnectRenderApi, type ConnectState, type ConnectionsFilter, Declaration, type DiscoverableAccount, DocumentCard, type DocumentCardProps, type InfiniteList, InstagramPostPreview, type InstagramPostPreviewProps, type InstagramPreviewVariant, type InstagramTheme, InteractionToggles, LinkedInPostPreview, type LinkedInPostPreviewProps, type LinkedInPreviewVariant, type LiveOptions, type MediaUploadItem, type MediaUploadOptions, type MediaUploadStatus, Poll, type PollProps, type PostrunContextValue, PostrunProvider, type PostrunProviderProps, type PreviewConnection, type PreviewMediaKind, type ReadPostVariant, type ReadyMedia, ReelPreview, type ReelPreviewProps, type ResolvedMedia, TikTokCaptionField, type TikTokCaptionFieldProps, TikTokPostPreview, type TikTokPostPreviewProps, type TikTokPreviewVariant, TikTokPublishPanel, type TikTokPublishPanelProps, type TikTokTheme, type UseConnectParams, type UseConnectResult, type UseMediaUploadOptions, type UseMediaUploadResult, XPoll, type XPollProps, XPostPreview, type XPostPreviewProps, type XPreviewQuotedTweet, type XPreviewVariant, connectionKeys, isReadyMedia, mediaKeys, postKeys, profileKeys, resolveVariantMedia, tiktokKeys, useCalendar, useConnect, useConnection, useConnections, useCreatePost, useCreateProfile, useDeleteMedia, useDeletePost, useDeleteProfile, useDisconnect, useDiscoverableAccounts, useInfiniteList, useMedia, useMediaInfinite, useMediaList, useMediaUpload, usePost, usePostrun, usePosts, usePostsInfinite, useProfile, useProfiles, useProfilesInfinite, useSelectAccount, useTikTokCreatorInfo, useUpdateMedia, useUpdatePost, useUpdateProfile, useValidatePost };
|