@postpeer/node 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +159 -4
- package/dist/index.d.ts +159 -4
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +14 -16
package/dist/index.d.cts
CHANGED
|
@@ -577,7 +577,7 @@ type FacebookConfigurations = {
|
|
|
577
577
|
videoThumbnailUrl?: string;
|
|
578
578
|
};
|
|
579
579
|
/**
|
|
580
|
-
* Pass this object in platformSpecificData when posting to Instagram. Use contentType to publish Stories; the remaining fields customize Reels.
|
|
580
|
+
* Pass this object in platformSpecificData when posting to Instagram. Use contentType to publish Stories; the remaining fields customize feed posts and Reels.
|
|
581
581
|
*/
|
|
582
582
|
type InstagramConfigurations = {
|
|
583
583
|
/**
|
|
@@ -596,6 +596,10 @@ type InstagramConfigurations = {
|
|
|
596
596
|
* Video-only. Timestamp in milliseconds Instagram extracts as the cover frame. Ignored when coverUrl is set or for image posts.
|
|
597
597
|
*/
|
|
598
598
|
thumbOffset?: number;
|
|
599
|
+
/**
|
|
600
|
+
* Feed posts, carousels, and Reels only. Up to three Instagram usernames to invite as collaborators. Each account must accept the invitation in Instagram.
|
|
601
|
+
*/
|
|
602
|
+
collaborators?: Array<string>;
|
|
599
603
|
};
|
|
600
604
|
/**
|
|
601
605
|
* Pass this object in platformSpecificData when posting to Threads.
|
|
@@ -954,6 +958,14 @@ type PostV1ConnectLinkedinSelectionByTokenResponses = {
|
|
|
954
958
|
* True when this integration was connected under the customer's own OAuth app (Bring Your Own Keys), i.e. appId is set. False when postpeer's system app is used.
|
|
955
959
|
*/
|
|
956
960
|
byok: boolean;
|
|
961
|
+
/**
|
|
962
|
+
* Whether this integration can authenticate or needs OAuth reconnection
|
|
963
|
+
*/
|
|
964
|
+
authStatus: 'active' | 'reconnect_required';
|
|
965
|
+
/**
|
|
966
|
+
* Stable reason reconnection is required, or null while active
|
|
967
|
+
*/
|
|
968
|
+
authFailureReason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
957
969
|
createdAt: string;
|
|
958
970
|
}>;
|
|
959
971
|
};
|
|
@@ -1081,6 +1093,14 @@ type PostV1ConnectFacebookSelectionByTokenResponses = {
|
|
|
1081
1093
|
* True when this integration was connected under the customer's own OAuth app (Bring Your Own Keys), i.e. appId is set. False when postpeer's system app is used.
|
|
1082
1094
|
*/
|
|
1083
1095
|
byok: boolean;
|
|
1096
|
+
/**
|
|
1097
|
+
* Whether this integration can authenticate or needs OAuth reconnection
|
|
1098
|
+
*/
|
|
1099
|
+
authStatus: 'active' | 'reconnect_required';
|
|
1100
|
+
/**
|
|
1101
|
+
* Stable reason reconnection is required, or null while active
|
|
1102
|
+
*/
|
|
1103
|
+
authFailureReason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
1084
1104
|
createdAt: string;
|
|
1085
1105
|
}>;
|
|
1086
1106
|
};
|
|
@@ -1200,7 +1220,7 @@ type GetV1ConnectIntegrationsData = {
|
|
|
1200
1220
|
*/
|
|
1201
1221
|
profileId?: string;
|
|
1202
1222
|
/**
|
|
1203
|
-
* Case-insensitive search across the connected account name (displayName), username, and platform user ID.
|
|
1223
|
+
* Case-insensitive search across the connected account name (displayName), username, and platform user ID. A complete integration ID is also matched exactly.
|
|
1204
1224
|
*/
|
|
1205
1225
|
q?: string;
|
|
1206
1226
|
/**
|
|
@@ -1277,6 +1297,14 @@ type GetV1ConnectIntegrationsResponses = {
|
|
|
1277
1297
|
* True when this integration was connected under the customer's own OAuth app (Bring Your Own Keys), i.e. appId is set. False when postpeer's system app is used.
|
|
1278
1298
|
*/
|
|
1279
1299
|
byok: boolean;
|
|
1300
|
+
/**
|
|
1301
|
+
* Whether this integration can authenticate or needs OAuth reconnection
|
|
1302
|
+
*/
|
|
1303
|
+
authStatus: 'active' | 'reconnect_required';
|
|
1304
|
+
/**
|
|
1305
|
+
* Stable reason reconnection is required, or null while active
|
|
1306
|
+
*/
|
|
1307
|
+
authFailureReason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
1280
1308
|
createdAt: string;
|
|
1281
1309
|
}>;
|
|
1282
1310
|
};
|
|
@@ -1390,6 +1418,14 @@ type GetV1ConnectIntegrationsByIdResponses = {
|
|
|
1390
1418
|
* True when this integration was connected under the customer's own OAuth app (Bring Your Own Keys), i.e. appId is set. False when postpeer's system app is used.
|
|
1391
1419
|
*/
|
|
1392
1420
|
byok: boolean;
|
|
1421
|
+
/**
|
|
1422
|
+
* Whether this integration can authenticate or needs OAuth reconnection
|
|
1423
|
+
*/
|
|
1424
|
+
authStatus: 'active' | 'reconnect_required';
|
|
1425
|
+
/**
|
|
1426
|
+
* Stable reason reconnection is required, or null while active
|
|
1427
|
+
*/
|
|
1428
|
+
authFailureReason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
1393
1429
|
createdAt: string;
|
|
1394
1430
|
} & {
|
|
1395
1431
|
/**
|
|
@@ -1413,12 +1449,125 @@ type GetV1ConnectIntegrationsByIdResponses = {
|
|
|
1413
1449
|
* Whether PostPeer automatically refreshes this platform token when needed.
|
|
1414
1450
|
*/
|
|
1415
1451
|
autoRefreshes: boolean;
|
|
1452
|
+
/**
|
|
1453
|
+
* Whether this integration must complete OAuth again
|
|
1454
|
+
*/
|
|
1455
|
+
reconnectRequired: boolean;
|
|
1456
|
+
reason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
1416
1457
|
};
|
|
1417
1458
|
updatedAt: string;
|
|
1418
1459
|
};
|
|
1419
1460
|
};
|
|
1420
1461
|
};
|
|
1421
1462
|
type GetV1ConnectIntegrationsByIdResponse = GetV1ConnectIntegrationsByIdResponses[keyof GetV1ConnectIntegrationsByIdResponses];
|
|
1463
|
+
type PatchV1ConnectIntegrationsByIdData = {
|
|
1464
|
+
body: {
|
|
1465
|
+
/**
|
|
1466
|
+
* Destination profile ID. Pass null to remove the integration from its current profile.
|
|
1467
|
+
*/
|
|
1468
|
+
profileId: string | null;
|
|
1469
|
+
};
|
|
1470
|
+
path: {
|
|
1471
|
+
/**
|
|
1472
|
+
* Integration ID
|
|
1473
|
+
*/
|
|
1474
|
+
id: string;
|
|
1475
|
+
};
|
|
1476
|
+
query?: never;
|
|
1477
|
+
url: '/v1/connect/integrations/{id}';
|
|
1478
|
+
};
|
|
1479
|
+
type PatchV1ConnectIntegrationsByIdErrors = {
|
|
1480
|
+
/**
|
|
1481
|
+
* Default Response
|
|
1482
|
+
*/
|
|
1483
|
+
400: {
|
|
1484
|
+
error: string;
|
|
1485
|
+
};
|
|
1486
|
+
/**
|
|
1487
|
+
* Default Response
|
|
1488
|
+
*/
|
|
1489
|
+
404: {
|
|
1490
|
+
error: string;
|
|
1491
|
+
};
|
|
1492
|
+
/**
|
|
1493
|
+
* Default Response
|
|
1494
|
+
*/
|
|
1495
|
+
409: {
|
|
1496
|
+
error: string;
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
type PatchV1ConnectIntegrationsByIdError = PatchV1ConnectIntegrationsByIdErrors[keyof PatchV1ConnectIntegrationsByIdErrors];
|
|
1500
|
+
type PatchV1ConnectIntegrationsByIdResponses = {
|
|
1501
|
+
/**
|
|
1502
|
+
* Default Response
|
|
1503
|
+
*/
|
|
1504
|
+
200: {
|
|
1505
|
+
success: boolean;
|
|
1506
|
+
integration: {
|
|
1507
|
+
/**
|
|
1508
|
+
* Use this as accountId when creating posts
|
|
1509
|
+
*/
|
|
1510
|
+
id: string;
|
|
1511
|
+
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads' | 'googlebusiness';
|
|
1512
|
+
/**
|
|
1513
|
+
* The user ID on the platform, or null if not yet retrieved
|
|
1514
|
+
*/
|
|
1515
|
+
platformUserId: string | null;
|
|
1516
|
+
/**
|
|
1517
|
+
* The public username or handle, including @ for handle-based platforms
|
|
1518
|
+
*/
|
|
1519
|
+
username: string | null;
|
|
1520
|
+
/**
|
|
1521
|
+
* Human-readable display name of the connected account
|
|
1522
|
+
*/
|
|
1523
|
+
displayName: string | null;
|
|
1524
|
+
/**
|
|
1525
|
+
* Public profile/page URL for the connected account, when it can be derived
|
|
1526
|
+
*/
|
|
1527
|
+
profileUrl: string | null;
|
|
1528
|
+
/**
|
|
1529
|
+
* Profile image URL for the connected account, or null if unavailable
|
|
1530
|
+
*/
|
|
1531
|
+
imageUrl: string | null;
|
|
1532
|
+
/**
|
|
1533
|
+
* Provider-specific public metadata for this connected account.
|
|
1534
|
+
*/
|
|
1535
|
+
platformMetadata?: {
|
|
1536
|
+
[key: string]: unknown;
|
|
1537
|
+
};
|
|
1538
|
+
/**
|
|
1539
|
+
* Profile this integration belongs to, or null if it was connected without a profile
|
|
1540
|
+
*/
|
|
1541
|
+
profileId: string | null;
|
|
1542
|
+
/**
|
|
1543
|
+
* The OAuth app (customer's own OAuth app) this integration was connected under, or null if postpeer's system app was used.
|
|
1544
|
+
*/
|
|
1545
|
+
appId: string | null;
|
|
1546
|
+
/**
|
|
1547
|
+
* The OAuth app metadata for BYOK integrations, or null when postpeer system app was used.
|
|
1548
|
+
*/
|
|
1549
|
+
app: {
|
|
1550
|
+
id?: string;
|
|
1551
|
+
name?: string;
|
|
1552
|
+
imageUrl?: string | null;
|
|
1553
|
+
} | null;
|
|
1554
|
+
/**
|
|
1555
|
+
* True when this integration was connected under the customer's own OAuth app (Bring Your Own Keys), i.e. appId is set. False when postpeer's system app is used.
|
|
1556
|
+
*/
|
|
1557
|
+
byok: boolean;
|
|
1558
|
+
/**
|
|
1559
|
+
* Whether this integration can authenticate or needs OAuth reconnection
|
|
1560
|
+
*/
|
|
1561
|
+
authStatus: 'active' | 'reconnect_required';
|
|
1562
|
+
/**
|
|
1563
|
+
* Stable reason reconnection is required, or null while active
|
|
1564
|
+
*/
|
|
1565
|
+
authFailureReason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
1566
|
+
createdAt: string;
|
|
1567
|
+
};
|
|
1568
|
+
};
|
|
1569
|
+
};
|
|
1570
|
+
type PatchV1ConnectIntegrationsByIdResponse = PatchV1ConnectIntegrationsByIdResponses[keyof PatchV1ConnectIntegrationsByIdResponses];
|
|
1422
1571
|
type GetV1ProfilesData = {
|
|
1423
1572
|
body?: never;
|
|
1424
1573
|
path?: never;
|
|
@@ -3878,6 +4027,12 @@ declare class PostPeer$1 extends HeyApiClient {
|
|
|
3878
4027
|
client?: Client;
|
|
3879
4028
|
key?: string;
|
|
3880
4029
|
});
|
|
4030
|
+
/**
|
|
4031
|
+
* Move an integration to another profile
|
|
4032
|
+
*
|
|
4033
|
+
* Reassigns an existing integration to another profile in the same project. Pass profileId=null to leave the integration unassigned. OAuth credentials and existing posts are unchanged.
|
|
4034
|
+
*/
|
|
4035
|
+
moveIntegration<ThrowOnError extends boolean = false>(options: Options<PatchV1ConnectIntegrationsByIdData, ThrowOnError>): RequestResult<PatchV1ConnectIntegrationsByIdResponses, PatchV1ConnectIntegrationsByIdErrors, ThrowOnError>;
|
|
3881
4036
|
private _health?;
|
|
3882
4037
|
get health(): Health;
|
|
3883
4038
|
private _connect?;
|
|
@@ -3975,6 +4130,6 @@ declare class APIUserAbortError extends APIConnectionError {
|
|
|
3975
4130
|
constructor(options?: ErrorOptions);
|
|
3976
4131
|
}
|
|
3977
4132
|
|
|
3978
|
-
declare const VERSION = "0.8.
|
|
4133
|
+
declare const VERSION = "0.8.4";
|
|
3979
4134
|
|
|
3980
|
-
export { APIConnectionError, APIConnectionTimeoutError, APIError, APIUserAbortError, AuthenticationError, BadRequestError, type BlueskyConfigurations, type ClientOptions, ConflictError, type DeleteV1AppsByIdData, type DeleteV1AppsByIdError, type DeleteV1AppsByIdErrors, type DeleteV1AppsByIdResponse, type DeleteV1AppsByIdResponses, type DeleteV1ConnectIntegrationsByIdData, type DeleteV1ConnectIntegrationsByIdError, type DeleteV1ConnectIntegrationsByIdErrors, type DeleteV1ConnectIntegrationsByIdResponse, type DeleteV1ConnectIntegrationsByIdResponses, type DeleteV1NotificationsByIdData, type DeleteV1NotificationsByIdError, type DeleteV1NotificationsByIdErrors, type DeleteV1NotificationsByIdResponse, type DeleteV1NotificationsByIdResponses, type DeleteV1PostsByPostIdData, type DeleteV1PostsByPostIdError, type DeleteV1PostsByPostIdErrors, type DeleteV1PostsByPostIdResponse, type DeleteV1PostsByPostIdResponses, type DeleteV1PostsScheduledByPostIdData, type DeleteV1PostsScheduledByPostIdError, type DeleteV1PostsScheduledByPostIdErrors, type DeleteV1PostsScheduledByPostIdResponse, type DeleteV1PostsScheduledByPostIdResponses, type DeleteV1ProfilesByIdData, type DeleteV1ProfilesByIdError, type DeleteV1ProfilesByIdErrors, type DeleteV1ProfilesByIdResponse, type DeleteV1ProfilesByIdResponses, type ErrorResponse, type FacebookConfigurations, type GetV1AnalyticsData, type GetV1AnalyticsError, type GetV1AnalyticsErrors, type GetV1AnalyticsResponse, type GetV1AnalyticsResponses, type GetV1AppsByIdData, type GetV1AppsByIdError, type GetV1AppsByIdErrors, type GetV1AppsByIdResponse, type GetV1AppsByIdResponses, type GetV1AppsData, type GetV1AppsResponse, type GetV1AppsResponses, type GetV1ConnectByPlatformData, type GetV1ConnectByPlatformError, type GetV1ConnectByPlatformErrors, type GetV1ConnectByPlatformResponse, type GetV1ConnectByPlatformResponses, type GetV1ConnectFacebookSelectionByTokenData, type GetV1ConnectFacebookSelectionByTokenError, type GetV1ConnectFacebookSelectionByTokenErrors, type GetV1ConnectFacebookSelectionByTokenResponse, type GetV1ConnectFacebookSelectionByTokenResponses, type GetV1ConnectIntegrationsByIdData, type GetV1ConnectIntegrationsByIdError, type GetV1ConnectIntegrationsByIdErrors, type GetV1ConnectIntegrationsByIdResponse, type GetV1ConnectIntegrationsByIdResponses, type GetV1ConnectIntegrationsData, type GetV1ConnectIntegrationsResponse, type GetV1ConnectIntegrationsResponses, type GetV1ConnectLinkedinSelectionByTokenData, type GetV1ConnectLinkedinSelectionByTokenError, type GetV1ConnectLinkedinSelectionByTokenErrors, type GetV1ConnectLinkedinSelectionByTokenResponse, type GetV1ConnectLinkedinSelectionByTokenResponses, type GetV1HealthAuthData, type GetV1HealthAuthResponse, type GetV1HealthAuthResponses, type GetV1HealthData, type GetV1HealthResponse, type GetV1HealthResponses, type GetV1NotificationsByIdData, type GetV1NotificationsByIdError, type GetV1NotificationsByIdErrors, type GetV1NotificationsByIdResponse, type GetV1NotificationsByIdResponses, type GetV1NotificationsData, type GetV1NotificationsResponse, type GetV1NotificationsResponses, type GetV1PinterestBoardsData, type GetV1PinterestBoardsError, type GetV1PinterestBoardsErrors, type GetV1PinterestBoardsResponse, type GetV1PinterestBoardsResponses, type GetV1PlatformsData, type GetV1PlatformsResponse, type GetV1PlatformsResponses, type GetV1PostsByPostIdData, type GetV1PostsByPostIdError, type GetV1PostsByPostIdErrors, type GetV1PostsByPostIdResponse, type GetV1PostsByPostIdResponses, type GetV1PostsData, type GetV1PostsError, type GetV1PostsErrors, type GetV1PostsResponse, type GetV1PostsResponses, type GetV1PostsScheduledData, type GetV1PostsScheduledResponse, type GetV1PostsScheduledResponses, type GetV1ProfilesByIdData, type GetV1ProfilesByIdError, type GetV1ProfilesByIdErrors, type GetV1ProfilesByIdResponse, type GetV1ProfilesByIdResponses, type GetV1ProfilesData, type GetV1ProfilesResponse, type GetV1ProfilesResponses, type GetV1TiktokCreatorInfoData, type GetV1TiktokCreatorInfoError, type GetV1TiktokCreatorInfoErrors, type GetV1TiktokCreatorInfoResponse, type GetV1TiktokCreatorInfoResponses, type GetV1UsageData, type GetV1UsageError, type GetV1UsageErrors, type GetV1UsageResponse, type GetV1UsageResponses, type GoogleBusinessConfigurations, type InstagramConfigurations, InternalServerError, type LinkedInConfigurations, type LinkedInMention, NotFoundError, type PatchV1AppsByIdData, type PatchV1AppsByIdError, type PatchV1AppsByIdErrors, type PatchV1AppsByIdResponse, type PatchV1AppsByIdResponses, type PatchV1NotificationsByIdData, type PatchV1NotificationsByIdError, type PatchV1NotificationsByIdErrors, type PatchV1NotificationsByIdResponse, type PatchV1NotificationsByIdResponses, type PatchV1PostsScheduledByPostIdData, type PatchV1PostsScheduledByPostIdError, type PatchV1PostsScheduledByPostIdErrors, type PatchV1PostsScheduledByPostIdResponse, type PatchV1PostsScheduledByPostIdResponses, type PatchV1ProfilesByIdData, type PatchV1ProfilesByIdError, type PatchV1ProfilesByIdErrors, type PatchV1ProfilesByIdResponse, type PatchV1ProfilesByIdResponses, PermissionDeniedError, type PinterestConfigurations, type Platform, type PostPayload, PostPeer, PostPeerError, type PostV1AiImageData, type PostV1AiImageError, type PostV1AiImageErrors, type PostV1AiImageResponse, type PostV1AiImageResponses, type PostV1AiWriteData, type PostV1AiWriteError, type PostV1AiWriteErrors, type PostV1AiWriteResponse, type PostV1AiWriteResponses, type PostV1AppsData, type PostV1AppsError, type PostV1AppsErrors, type PostV1AppsResponse, type PostV1AppsResponses, type PostV1ConnectBlueskyAuthData, type PostV1ConnectBlueskyAuthError, type PostV1ConnectBlueskyAuthErrors, type PostV1ConnectFacebookSelectionByTokenData, type PostV1ConnectFacebookSelectionByTokenError, type PostV1ConnectFacebookSelectionByTokenErrors, type PostV1ConnectFacebookSelectionByTokenResponse, type PostV1ConnectFacebookSelectionByTokenResponses, type PostV1ConnectLinkedinSelectionByTokenData, type PostV1ConnectLinkedinSelectionByTokenError, type PostV1ConnectLinkedinSelectionByTokenErrors, type PostV1ConnectLinkedinSelectionByTokenResponse, type PostV1ConnectLinkedinSelectionByTokenResponses, type PostV1MediaUploadData, type PostV1MediaUploadError, type PostV1MediaUploadErrors, type PostV1MediaUploadResponse, type PostV1MediaUploadResponses, type PostV1NotificationsData, type PostV1NotificationsError, type PostV1NotificationsErrors, type PostV1NotificationsResponse, type PostV1NotificationsResponses, type PostV1NotificationsTestData, type PostV1NotificationsTestError, type PostV1NotificationsTestErrors, type PostV1NotificationsTestResponse, type PostV1NotificationsTestResponses, type PostV1PostsData, type PostV1PostsError, type PostV1PostsErrors, type PostV1PostsResponse, type PostV1PostsResponses, type PostV1ProfilesData, type PostV1ProfilesResponse, type PostV1ProfilesResponses, type PutV1PostsScheduledByPostIdData, type PutV1PostsScheduledByPostIdError, type PutV1PostsScheduledByPostIdErrors, type PutV1PostsScheduledByPostIdResponse, type PutV1PostsScheduledByPostIdResponses, RateLimitError, type SortOrder, type Status, type ThreadsConfigurations, type TikTokConfigurations, type TwitterConfigurations, UnprocessableEntityError, VERSION, type YouTubeConfigurations, PostPeer as default };
|
|
4135
|
+
export { APIConnectionError, APIConnectionTimeoutError, APIError, APIUserAbortError, AuthenticationError, BadRequestError, type BlueskyConfigurations, type ClientOptions, ConflictError, type DeleteV1AppsByIdData, type DeleteV1AppsByIdError, type DeleteV1AppsByIdErrors, type DeleteV1AppsByIdResponse, type DeleteV1AppsByIdResponses, type DeleteV1ConnectIntegrationsByIdData, type DeleteV1ConnectIntegrationsByIdError, type DeleteV1ConnectIntegrationsByIdErrors, type DeleteV1ConnectIntegrationsByIdResponse, type DeleteV1ConnectIntegrationsByIdResponses, type DeleteV1NotificationsByIdData, type DeleteV1NotificationsByIdError, type DeleteV1NotificationsByIdErrors, type DeleteV1NotificationsByIdResponse, type DeleteV1NotificationsByIdResponses, type DeleteV1PostsByPostIdData, type DeleteV1PostsByPostIdError, type DeleteV1PostsByPostIdErrors, type DeleteV1PostsByPostIdResponse, type DeleteV1PostsByPostIdResponses, type DeleteV1PostsScheduledByPostIdData, type DeleteV1PostsScheduledByPostIdError, type DeleteV1PostsScheduledByPostIdErrors, type DeleteV1PostsScheduledByPostIdResponse, type DeleteV1PostsScheduledByPostIdResponses, type DeleteV1ProfilesByIdData, type DeleteV1ProfilesByIdError, type DeleteV1ProfilesByIdErrors, type DeleteV1ProfilesByIdResponse, type DeleteV1ProfilesByIdResponses, type ErrorResponse, type FacebookConfigurations, type GetV1AnalyticsData, type GetV1AnalyticsError, type GetV1AnalyticsErrors, type GetV1AnalyticsResponse, type GetV1AnalyticsResponses, type GetV1AppsByIdData, type GetV1AppsByIdError, type GetV1AppsByIdErrors, type GetV1AppsByIdResponse, type GetV1AppsByIdResponses, type GetV1AppsData, type GetV1AppsResponse, type GetV1AppsResponses, type GetV1ConnectByPlatformData, type GetV1ConnectByPlatformError, type GetV1ConnectByPlatformErrors, type GetV1ConnectByPlatformResponse, type GetV1ConnectByPlatformResponses, type GetV1ConnectFacebookSelectionByTokenData, type GetV1ConnectFacebookSelectionByTokenError, type GetV1ConnectFacebookSelectionByTokenErrors, type GetV1ConnectFacebookSelectionByTokenResponse, type GetV1ConnectFacebookSelectionByTokenResponses, type GetV1ConnectIntegrationsByIdData, type GetV1ConnectIntegrationsByIdError, type GetV1ConnectIntegrationsByIdErrors, type GetV1ConnectIntegrationsByIdResponse, type GetV1ConnectIntegrationsByIdResponses, type GetV1ConnectIntegrationsData, type GetV1ConnectIntegrationsResponse, type GetV1ConnectIntegrationsResponses, type GetV1ConnectLinkedinSelectionByTokenData, type GetV1ConnectLinkedinSelectionByTokenError, type GetV1ConnectLinkedinSelectionByTokenErrors, type GetV1ConnectLinkedinSelectionByTokenResponse, type GetV1ConnectLinkedinSelectionByTokenResponses, type GetV1HealthAuthData, type GetV1HealthAuthResponse, type GetV1HealthAuthResponses, type GetV1HealthData, type GetV1HealthResponse, type GetV1HealthResponses, type GetV1NotificationsByIdData, type GetV1NotificationsByIdError, type GetV1NotificationsByIdErrors, type GetV1NotificationsByIdResponse, type GetV1NotificationsByIdResponses, type GetV1NotificationsData, type GetV1NotificationsResponse, type GetV1NotificationsResponses, type GetV1PinterestBoardsData, type GetV1PinterestBoardsError, type GetV1PinterestBoardsErrors, type GetV1PinterestBoardsResponse, type GetV1PinterestBoardsResponses, type GetV1PlatformsData, type GetV1PlatformsResponse, type GetV1PlatformsResponses, type GetV1PostsByPostIdData, type GetV1PostsByPostIdError, type GetV1PostsByPostIdErrors, type GetV1PostsByPostIdResponse, type GetV1PostsByPostIdResponses, type GetV1PostsData, type GetV1PostsError, type GetV1PostsErrors, type GetV1PostsResponse, type GetV1PostsResponses, type GetV1PostsScheduledData, type GetV1PostsScheduledResponse, type GetV1PostsScheduledResponses, type GetV1ProfilesByIdData, type GetV1ProfilesByIdError, type GetV1ProfilesByIdErrors, type GetV1ProfilesByIdResponse, type GetV1ProfilesByIdResponses, type GetV1ProfilesData, type GetV1ProfilesResponse, type GetV1ProfilesResponses, type GetV1TiktokCreatorInfoData, type GetV1TiktokCreatorInfoError, type GetV1TiktokCreatorInfoErrors, type GetV1TiktokCreatorInfoResponse, type GetV1TiktokCreatorInfoResponses, type GetV1UsageData, type GetV1UsageError, type GetV1UsageErrors, type GetV1UsageResponse, type GetV1UsageResponses, type GoogleBusinessConfigurations, type InstagramConfigurations, InternalServerError, type LinkedInConfigurations, type LinkedInMention, NotFoundError, type PatchV1AppsByIdData, type PatchV1AppsByIdError, type PatchV1AppsByIdErrors, type PatchV1AppsByIdResponse, type PatchV1AppsByIdResponses, type PatchV1ConnectIntegrationsByIdData, type PatchV1ConnectIntegrationsByIdError, type PatchV1ConnectIntegrationsByIdErrors, type PatchV1ConnectIntegrationsByIdResponse, type PatchV1ConnectIntegrationsByIdResponses, type PatchV1NotificationsByIdData, type PatchV1NotificationsByIdError, type PatchV1NotificationsByIdErrors, type PatchV1NotificationsByIdResponse, type PatchV1NotificationsByIdResponses, type PatchV1PostsScheduledByPostIdData, type PatchV1PostsScheduledByPostIdError, type PatchV1PostsScheduledByPostIdErrors, type PatchV1PostsScheduledByPostIdResponse, type PatchV1PostsScheduledByPostIdResponses, type PatchV1ProfilesByIdData, type PatchV1ProfilesByIdError, type PatchV1ProfilesByIdErrors, type PatchV1ProfilesByIdResponse, type PatchV1ProfilesByIdResponses, PermissionDeniedError, type PinterestConfigurations, type Platform, type PostPayload, PostPeer, PostPeerError, type PostV1AiImageData, type PostV1AiImageError, type PostV1AiImageErrors, type PostV1AiImageResponse, type PostV1AiImageResponses, type PostV1AiWriteData, type PostV1AiWriteError, type PostV1AiWriteErrors, type PostV1AiWriteResponse, type PostV1AiWriteResponses, type PostV1AppsData, type PostV1AppsError, type PostV1AppsErrors, type PostV1AppsResponse, type PostV1AppsResponses, type PostV1ConnectBlueskyAuthData, type PostV1ConnectBlueskyAuthError, type PostV1ConnectBlueskyAuthErrors, type PostV1ConnectFacebookSelectionByTokenData, type PostV1ConnectFacebookSelectionByTokenError, type PostV1ConnectFacebookSelectionByTokenErrors, type PostV1ConnectFacebookSelectionByTokenResponse, type PostV1ConnectFacebookSelectionByTokenResponses, type PostV1ConnectLinkedinSelectionByTokenData, type PostV1ConnectLinkedinSelectionByTokenError, type PostV1ConnectLinkedinSelectionByTokenErrors, type PostV1ConnectLinkedinSelectionByTokenResponse, type PostV1ConnectLinkedinSelectionByTokenResponses, type PostV1MediaUploadData, type PostV1MediaUploadError, type PostV1MediaUploadErrors, type PostV1MediaUploadResponse, type PostV1MediaUploadResponses, type PostV1NotificationsData, type PostV1NotificationsError, type PostV1NotificationsErrors, type PostV1NotificationsResponse, type PostV1NotificationsResponses, type PostV1NotificationsTestData, type PostV1NotificationsTestError, type PostV1NotificationsTestErrors, type PostV1NotificationsTestResponse, type PostV1NotificationsTestResponses, type PostV1PostsData, type PostV1PostsError, type PostV1PostsErrors, type PostV1PostsResponse, type PostV1PostsResponses, type PostV1ProfilesData, type PostV1ProfilesResponse, type PostV1ProfilesResponses, type PutV1PostsScheduledByPostIdData, type PutV1PostsScheduledByPostIdError, type PutV1PostsScheduledByPostIdErrors, type PutV1PostsScheduledByPostIdResponse, type PutV1PostsScheduledByPostIdResponses, RateLimitError, type SortOrder, type Status, type ThreadsConfigurations, type TikTokConfigurations, type TwitterConfigurations, UnprocessableEntityError, VERSION, type YouTubeConfigurations, PostPeer as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -577,7 +577,7 @@ type FacebookConfigurations = {
|
|
|
577
577
|
videoThumbnailUrl?: string;
|
|
578
578
|
};
|
|
579
579
|
/**
|
|
580
|
-
* Pass this object in platformSpecificData when posting to Instagram. Use contentType to publish Stories; the remaining fields customize Reels.
|
|
580
|
+
* Pass this object in platformSpecificData when posting to Instagram. Use contentType to publish Stories; the remaining fields customize feed posts and Reels.
|
|
581
581
|
*/
|
|
582
582
|
type InstagramConfigurations = {
|
|
583
583
|
/**
|
|
@@ -596,6 +596,10 @@ type InstagramConfigurations = {
|
|
|
596
596
|
* Video-only. Timestamp in milliseconds Instagram extracts as the cover frame. Ignored when coverUrl is set or for image posts.
|
|
597
597
|
*/
|
|
598
598
|
thumbOffset?: number;
|
|
599
|
+
/**
|
|
600
|
+
* Feed posts, carousels, and Reels only. Up to three Instagram usernames to invite as collaborators. Each account must accept the invitation in Instagram.
|
|
601
|
+
*/
|
|
602
|
+
collaborators?: Array<string>;
|
|
599
603
|
};
|
|
600
604
|
/**
|
|
601
605
|
* Pass this object in platformSpecificData when posting to Threads.
|
|
@@ -954,6 +958,14 @@ type PostV1ConnectLinkedinSelectionByTokenResponses = {
|
|
|
954
958
|
* True when this integration was connected under the customer's own OAuth app (Bring Your Own Keys), i.e. appId is set. False when postpeer's system app is used.
|
|
955
959
|
*/
|
|
956
960
|
byok: boolean;
|
|
961
|
+
/**
|
|
962
|
+
* Whether this integration can authenticate or needs OAuth reconnection
|
|
963
|
+
*/
|
|
964
|
+
authStatus: 'active' | 'reconnect_required';
|
|
965
|
+
/**
|
|
966
|
+
* Stable reason reconnection is required, or null while active
|
|
967
|
+
*/
|
|
968
|
+
authFailureReason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
957
969
|
createdAt: string;
|
|
958
970
|
}>;
|
|
959
971
|
};
|
|
@@ -1081,6 +1093,14 @@ type PostV1ConnectFacebookSelectionByTokenResponses = {
|
|
|
1081
1093
|
* True when this integration was connected under the customer's own OAuth app (Bring Your Own Keys), i.e. appId is set. False when postpeer's system app is used.
|
|
1082
1094
|
*/
|
|
1083
1095
|
byok: boolean;
|
|
1096
|
+
/**
|
|
1097
|
+
* Whether this integration can authenticate or needs OAuth reconnection
|
|
1098
|
+
*/
|
|
1099
|
+
authStatus: 'active' | 'reconnect_required';
|
|
1100
|
+
/**
|
|
1101
|
+
* Stable reason reconnection is required, or null while active
|
|
1102
|
+
*/
|
|
1103
|
+
authFailureReason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
1084
1104
|
createdAt: string;
|
|
1085
1105
|
}>;
|
|
1086
1106
|
};
|
|
@@ -1200,7 +1220,7 @@ type GetV1ConnectIntegrationsData = {
|
|
|
1200
1220
|
*/
|
|
1201
1221
|
profileId?: string;
|
|
1202
1222
|
/**
|
|
1203
|
-
* Case-insensitive search across the connected account name (displayName), username, and platform user ID.
|
|
1223
|
+
* Case-insensitive search across the connected account name (displayName), username, and platform user ID. A complete integration ID is also matched exactly.
|
|
1204
1224
|
*/
|
|
1205
1225
|
q?: string;
|
|
1206
1226
|
/**
|
|
@@ -1277,6 +1297,14 @@ type GetV1ConnectIntegrationsResponses = {
|
|
|
1277
1297
|
* True when this integration was connected under the customer's own OAuth app (Bring Your Own Keys), i.e. appId is set. False when postpeer's system app is used.
|
|
1278
1298
|
*/
|
|
1279
1299
|
byok: boolean;
|
|
1300
|
+
/**
|
|
1301
|
+
* Whether this integration can authenticate or needs OAuth reconnection
|
|
1302
|
+
*/
|
|
1303
|
+
authStatus: 'active' | 'reconnect_required';
|
|
1304
|
+
/**
|
|
1305
|
+
* Stable reason reconnection is required, or null while active
|
|
1306
|
+
*/
|
|
1307
|
+
authFailureReason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
1280
1308
|
createdAt: string;
|
|
1281
1309
|
}>;
|
|
1282
1310
|
};
|
|
@@ -1390,6 +1418,14 @@ type GetV1ConnectIntegrationsByIdResponses = {
|
|
|
1390
1418
|
* True when this integration was connected under the customer's own OAuth app (Bring Your Own Keys), i.e. appId is set. False when postpeer's system app is used.
|
|
1391
1419
|
*/
|
|
1392
1420
|
byok: boolean;
|
|
1421
|
+
/**
|
|
1422
|
+
* Whether this integration can authenticate or needs OAuth reconnection
|
|
1423
|
+
*/
|
|
1424
|
+
authStatus: 'active' | 'reconnect_required';
|
|
1425
|
+
/**
|
|
1426
|
+
* Stable reason reconnection is required, or null while active
|
|
1427
|
+
*/
|
|
1428
|
+
authFailureReason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
1393
1429
|
createdAt: string;
|
|
1394
1430
|
} & {
|
|
1395
1431
|
/**
|
|
@@ -1413,12 +1449,125 @@ type GetV1ConnectIntegrationsByIdResponses = {
|
|
|
1413
1449
|
* Whether PostPeer automatically refreshes this platform token when needed.
|
|
1414
1450
|
*/
|
|
1415
1451
|
autoRefreshes: boolean;
|
|
1452
|
+
/**
|
|
1453
|
+
* Whether this integration must complete OAuth again
|
|
1454
|
+
*/
|
|
1455
|
+
reconnectRequired: boolean;
|
|
1456
|
+
reason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
1416
1457
|
};
|
|
1417
1458
|
updatedAt: string;
|
|
1418
1459
|
};
|
|
1419
1460
|
};
|
|
1420
1461
|
};
|
|
1421
1462
|
type GetV1ConnectIntegrationsByIdResponse = GetV1ConnectIntegrationsByIdResponses[keyof GetV1ConnectIntegrationsByIdResponses];
|
|
1463
|
+
type PatchV1ConnectIntegrationsByIdData = {
|
|
1464
|
+
body: {
|
|
1465
|
+
/**
|
|
1466
|
+
* Destination profile ID. Pass null to remove the integration from its current profile.
|
|
1467
|
+
*/
|
|
1468
|
+
profileId: string | null;
|
|
1469
|
+
};
|
|
1470
|
+
path: {
|
|
1471
|
+
/**
|
|
1472
|
+
* Integration ID
|
|
1473
|
+
*/
|
|
1474
|
+
id: string;
|
|
1475
|
+
};
|
|
1476
|
+
query?: never;
|
|
1477
|
+
url: '/v1/connect/integrations/{id}';
|
|
1478
|
+
};
|
|
1479
|
+
type PatchV1ConnectIntegrationsByIdErrors = {
|
|
1480
|
+
/**
|
|
1481
|
+
* Default Response
|
|
1482
|
+
*/
|
|
1483
|
+
400: {
|
|
1484
|
+
error: string;
|
|
1485
|
+
};
|
|
1486
|
+
/**
|
|
1487
|
+
* Default Response
|
|
1488
|
+
*/
|
|
1489
|
+
404: {
|
|
1490
|
+
error: string;
|
|
1491
|
+
};
|
|
1492
|
+
/**
|
|
1493
|
+
* Default Response
|
|
1494
|
+
*/
|
|
1495
|
+
409: {
|
|
1496
|
+
error: string;
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
type PatchV1ConnectIntegrationsByIdError = PatchV1ConnectIntegrationsByIdErrors[keyof PatchV1ConnectIntegrationsByIdErrors];
|
|
1500
|
+
type PatchV1ConnectIntegrationsByIdResponses = {
|
|
1501
|
+
/**
|
|
1502
|
+
* Default Response
|
|
1503
|
+
*/
|
|
1504
|
+
200: {
|
|
1505
|
+
success: boolean;
|
|
1506
|
+
integration: {
|
|
1507
|
+
/**
|
|
1508
|
+
* Use this as accountId when creating posts
|
|
1509
|
+
*/
|
|
1510
|
+
id: string;
|
|
1511
|
+
platform: 'twitter' | 'instagram' | 'youtube' | 'tiktok' | 'pinterest' | 'linkedin' | 'bluesky' | 'facebook' | 'threads' | 'googlebusiness';
|
|
1512
|
+
/**
|
|
1513
|
+
* The user ID on the platform, or null if not yet retrieved
|
|
1514
|
+
*/
|
|
1515
|
+
platformUserId: string | null;
|
|
1516
|
+
/**
|
|
1517
|
+
* The public username or handle, including @ for handle-based platforms
|
|
1518
|
+
*/
|
|
1519
|
+
username: string | null;
|
|
1520
|
+
/**
|
|
1521
|
+
* Human-readable display name of the connected account
|
|
1522
|
+
*/
|
|
1523
|
+
displayName: string | null;
|
|
1524
|
+
/**
|
|
1525
|
+
* Public profile/page URL for the connected account, when it can be derived
|
|
1526
|
+
*/
|
|
1527
|
+
profileUrl: string | null;
|
|
1528
|
+
/**
|
|
1529
|
+
* Profile image URL for the connected account, or null if unavailable
|
|
1530
|
+
*/
|
|
1531
|
+
imageUrl: string | null;
|
|
1532
|
+
/**
|
|
1533
|
+
* Provider-specific public metadata for this connected account.
|
|
1534
|
+
*/
|
|
1535
|
+
platformMetadata?: {
|
|
1536
|
+
[key: string]: unknown;
|
|
1537
|
+
};
|
|
1538
|
+
/**
|
|
1539
|
+
* Profile this integration belongs to, or null if it was connected without a profile
|
|
1540
|
+
*/
|
|
1541
|
+
profileId: string | null;
|
|
1542
|
+
/**
|
|
1543
|
+
* The OAuth app (customer's own OAuth app) this integration was connected under, or null if postpeer's system app was used.
|
|
1544
|
+
*/
|
|
1545
|
+
appId: string | null;
|
|
1546
|
+
/**
|
|
1547
|
+
* The OAuth app metadata for BYOK integrations, or null when postpeer system app was used.
|
|
1548
|
+
*/
|
|
1549
|
+
app: {
|
|
1550
|
+
id?: string;
|
|
1551
|
+
name?: string;
|
|
1552
|
+
imageUrl?: string | null;
|
|
1553
|
+
} | null;
|
|
1554
|
+
/**
|
|
1555
|
+
* True when this integration was connected under the customer's own OAuth app (Bring Your Own Keys), i.e. appId is set. False when postpeer's system app is used.
|
|
1556
|
+
*/
|
|
1557
|
+
byok: boolean;
|
|
1558
|
+
/**
|
|
1559
|
+
* Whether this integration can authenticate or needs OAuth reconnection
|
|
1560
|
+
*/
|
|
1561
|
+
authStatus: 'active' | 'reconnect_required';
|
|
1562
|
+
/**
|
|
1563
|
+
* Stable reason reconnection is required, or null while active
|
|
1564
|
+
*/
|
|
1565
|
+
authFailureReason: 'token_expired' | 'access_revoked' | 'security_invalidation' | 'refresh_rejected' | unknown;
|
|
1566
|
+
createdAt: string;
|
|
1567
|
+
};
|
|
1568
|
+
};
|
|
1569
|
+
};
|
|
1570
|
+
type PatchV1ConnectIntegrationsByIdResponse = PatchV1ConnectIntegrationsByIdResponses[keyof PatchV1ConnectIntegrationsByIdResponses];
|
|
1422
1571
|
type GetV1ProfilesData = {
|
|
1423
1572
|
body?: never;
|
|
1424
1573
|
path?: never;
|
|
@@ -3878,6 +4027,12 @@ declare class PostPeer$1 extends HeyApiClient {
|
|
|
3878
4027
|
client?: Client;
|
|
3879
4028
|
key?: string;
|
|
3880
4029
|
});
|
|
4030
|
+
/**
|
|
4031
|
+
* Move an integration to another profile
|
|
4032
|
+
*
|
|
4033
|
+
* Reassigns an existing integration to another profile in the same project. Pass profileId=null to leave the integration unassigned. OAuth credentials and existing posts are unchanged.
|
|
4034
|
+
*/
|
|
4035
|
+
moveIntegration<ThrowOnError extends boolean = false>(options: Options<PatchV1ConnectIntegrationsByIdData, ThrowOnError>): RequestResult<PatchV1ConnectIntegrationsByIdResponses, PatchV1ConnectIntegrationsByIdErrors, ThrowOnError>;
|
|
3881
4036
|
private _health?;
|
|
3882
4037
|
get health(): Health;
|
|
3883
4038
|
private _connect?;
|
|
@@ -3975,6 +4130,6 @@ declare class APIUserAbortError extends APIConnectionError {
|
|
|
3975
4130
|
constructor(options?: ErrorOptions);
|
|
3976
4131
|
}
|
|
3977
4132
|
|
|
3978
|
-
declare const VERSION = "0.8.
|
|
4133
|
+
declare const VERSION = "0.8.4";
|
|
3979
4134
|
|
|
3980
|
-
export { APIConnectionError, APIConnectionTimeoutError, APIError, APIUserAbortError, AuthenticationError, BadRequestError, type BlueskyConfigurations, type ClientOptions, ConflictError, type DeleteV1AppsByIdData, type DeleteV1AppsByIdError, type DeleteV1AppsByIdErrors, type DeleteV1AppsByIdResponse, type DeleteV1AppsByIdResponses, type DeleteV1ConnectIntegrationsByIdData, type DeleteV1ConnectIntegrationsByIdError, type DeleteV1ConnectIntegrationsByIdErrors, type DeleteV1ConnectIntegrationsByIdResponse, type DeleteV1ConnectIntegrationsByIdResponses, type DeleteV1NotificationsByIdData, type DeleteV1NotificationsByIdError, type DeleteV1NotificationsByIdErrors, type DeleteV1NotificationsByIdResponse, type DeleteV1NotificationsByIdResponses, type DeleteV1PostsByPostIdData, type DeleteV1PostsByPostIdError, type DeleteV1PostsByPostIdErrors, type DeleteV1PostsByPostIdResponse, type DeleteV1PostsByPostIdResponses, type DeleteV1PostsScheduledByPostIdData, type DeleteV1PostsScheduledByPostIdError, type DeleteV1PostsScheduledByPostIdErrors, type DeleteV1PostsScheduledByPostIdResponse, type DeleteV1PostsScheduledByPostIdResponses, type DeleteV1ProfilesByIdData, type DeleteV1ProfilesByIdError, type DeleteV1ProfilesByIdErrors, type DeleteV1ProfilesByIdResponse, type DeleteV1ProfilesByIdResponses, type ErrorResponse, type FacebookConfigurations, type GetV1AnalyticsData, type GetV1AnalyticsError, type GetV1AnalyticsErrors, type GetV1AnalyticsResponse, type GetV1AnalyticsResponses, type GetV1AppsByIdData, type GetV1AppsByIdError, type GetV1AppsByIdErrors, type GetV1AppsByIdResponse, type GetV1AppsByIdResponses, type GetV1AppsData, type GetV1AppsResponse, type GetV1AppsResponses, type GetV1ConnectByPlatformData, type GetV1ConnectByPlatformError, type GetV1ConnectByPlatformErrors, type GetV1ConnectByPlatformResponse, type GetV1ConnectByPlatformResponses, type GetV1ConnectFacebookSelectionByTokenData, type GetV1ConnectFacebookSelectionByTokenError, type GetV1ConnectFacebookSelectionByTokenErrors, type GetV1ConnectFacebookSelectionByTokenResponse, type GetV1ConnectFacebookSelectionByTokenResponses, type GetV1ConnectIntegrationsByIdData, type GetV1ConnectIntegrationsByIdError, type GetV1ConnectIntegrationsByIdErrors, type GetV1ConnectIntegrationsByIdResponse, type GetV1ConnectIntegrationsByIdResponses, type GetV1ConnectIntegrationsData, type GetV1ConnectIntegrationsResponse, type GetV1ConnectIntegrationsResponses, type GetV1ConnectLinkedinSelectionByTokenData, type GetV1ConnectLinkedinSelectionByTokenError, type GetV1ConnectLinkedinSelectionByTokenErrors, type GetV1ConnectLinkedinSelectionByTokenResponse, type GetV1ConnectLinkedinSelectionByTokenResponses, type GetV1HealthAuthData, type GetV1HealthAuthResponse, type GetV1HealthAuthResponses, type GetV1HealthData, type GetV1HealthResponse, type GetV1HealthResponses, type GetV1NotificationsByIdData, type GetV1NotificationsByIdError, type GetV1NotificationsByIdErrors, type GetV1NotificationsByIdResponse, type GetV1NotificationsByIdResponses, type GetV1NotificationsData, type GetV1NotificationsResponse, type GetV1NotificationsResponses, type GetV1PinterestBoardsData, type GetV1PinterestBoardsError, type GetV1PinterestBoardsErrors, type GetV1PinterestBoardsResponse, type GetV1PinterestBoardsResponses, type GetV1PlatformsData, type GetV1PlatformsResponse, type GetV1PlatformsResponses, type GetV1PostsByPostIdData, type GetV1PostsByPostIdError, type GetV1PostsByPostIdErrors, type GetV1PostsByPostIdResponse, type GetV1PostsByPostIdResponses, type GetV1PostsData, type GetV1PostsError, type GetV1PostsErrors, type GetV1PostsResponse, type GetV1PostsResponses, type GetV1PostsScheduledData, type GetV1PostsScheduledResponse, type GetV1PostsScheduledResponses, type GetV1ProfilesByIdData, type GetV1ProfilesByIdError, type GetV1ProfilesByIdErrors, type GetV1ProfilesByIdResponse, type GetV1ProfilesByIdResponses, type GetV1ProfilesData, type GetV1ProfilesResponse, type GetV1ProfilesResponses, type GetV1TiktokCreatorInfoData, type GetV1TiktokCreatorInfoError, type GetV1TiktokCreatorInfoErrors, type GetV1TiktokCreatorInfoResponse, type GetV1TiktokCreatorInfoResponses, type GetV1UsageData, type GetV1UsageError, type GetV1UsageErrors, type GetV1UsageResponse, type GetV1UsageResponses, type GoogleBusinessConfigurations, type InstagramConfigurations, InternalServerError, type LinkedInConfigurations, type LinkedInMention, NotFoundError, type PatchV1AppsByIdData, type PatchV1AppsByIdError, type PatchV1AppsByIdErrors, type PatchV1AppsByIdResponse, type PatchV1AppsByIdResponses, type PatchV1NotificationsByIdData, type PatchV1NotificationsByIdError, type PatchV1NotificationsByIdErrors, type PatchV1NotificationsByIdResponse, type PatchV1NotificationsByIdResponses, type PatchV1PostsScheduledByPostIdData, type PatchV1PostsScheduledByPostIdError, type PatchV1PostsScheduledByPostIdErrors, type PatchV1PostsScheduledByPostIdResponse, type PatchV1PostsScheduledByPostIdResponses, type PatchV1ProfilesByIdData, type PatchV1ProfilesByIdError, type PatchV1ProfilesByIdErrors, type PatchV1ProfilesByIdResponse, type PatchV1ProfilesByIdResponses, PermissionDeniedError, type PinterestConfigurations, type Platform, type PostPayload, PostPeer, PostPeerError, type PostV1AiImageData, type PostV1AiImageError, type PostV1AiImageErrors, type PostV1AiImageResponse, type PostV1AiImageResponses, type PostV1AiWriteData, type PostV1AiWriteError, type PostV1AiWriteErrors, type PostV1AiWriteResponse, type PostV1AiWriteResponses, type PostV1AppsData, type PostV1AppsError, type PostV1AppsErrors, type PostV1AppsResponse, type PostV1AppsResponses, type PostV1ConnectBlueskyAuthData, type PostV1ConnectBlueskyAuthError, type PostV1ConnectBlueskyAuthErrors, type PostV1ConnectFacebookSelectionByTokenData, type PostV1ConnectFacebookSelectionByTokenError, type PostV1ConnectFacebookSelectionByTokenErrors, type PostV1ConnectFacebookSelectionByTokenResponse, type PostV1ConnectFacebookSelectionByTokenResponses, type PostV1ConnectLinkedinSelectionByTokenData, type PostV1ConnectLinkedinSelectionByTokenError, type PostV1ConnectLinkedinSelectionByTokenErrors, type PostV1ConnectLinkedinSelectionByTokenResponse, type PostV1ConnectLinkedinSelectionByTokenResponses, type PostV1MediaUploadData, type PostV1MediaUploadError, type PostV1MediaUploadErrors, type PostV1MediaUploadResponse, type PostV1MediaUploadResponses, type PostV1NotificationsData, type PostV1NotificationsError, type PostV1NotificationsErrors, type PostV1NotificationsResponse, type PostV1NotificationsResponses, type PostV1NotificationsTestData, type PostV1NotificationsTestError, type PostV1NotificationsTestErrors, type PostV1NotificationsTestResponse, type PostV1NotificationsTestResponses, type PostV1PostsData, type PostV1PostsError, type PostV1PostsErrors, type PostV1PostsResponse, type PostV1PostsResponses, type PostV1ProfilesData, type PostV1ProfilesResponse, type PostV1ProfilesResponses, type PutV1PostsScheduledByPostIdData, type PutV1PostsScheduledByPostIdError, type PutV1PostsScheduledByPostIdErrors, type PutV1PostsScheduledByPostIdResponse, type PutV1PostsScheduledByPostIdResponses, RateLimitError, type SortOrder, type Status, type ThreadsConfigurations, type TikTokConfigurations, type TwitterConfigurations, UnprocessableEntityError, VERSION, type YouTubeConfigurations, PostPeer as default };
|
|
4135
|
+
export { APIConnectionError, APIConnectionTimeoutError, APIError, APIUserAbortError, AuthenticationError, BadRequestError, type BlueskyConfigurations, type ClientOptions, ConflictError, type DeleteV1AppsByIdData, type DeleteV1AppsByIdError, type DeleteV1AppsByIdErrors, type DeleteV1AppsByIdResponse, type DeleteV1AppsByIdResponses, type DeleteV1ConnectIntegrationsByIdData, type DeleteV1ConnectIntegrationsByIdError, type DeleteV1ConnectIntegrationsByIdErrors, type DeleteV1ConnectIntegrationsByIdResponse, type DeleteV1ConnectIntegrationsByIdResponses, type DeleteV1NotificationsByIdData, type DeleteV1NotificationsByIdError, type DeleteV1NotificationsByIdErrors, type DeleteV1NotificationsByIdResponse, type DeleteV1NotificationsByIdResponses, type DeleteV1PostsByPostIdData, type DeleteV1PostsByPostIdError, type DeleteV1PostsByPostIdErrors, type DeleteV1PostsByPostIdResponse, type DeleteV1PostsByPostIdResponses, type DeleteV1PostsScheduledByPostIdData, type DeleteV1PostsScheduledByPostIdError, type DeleteV1PostsScheduledByPostIdErrors, type DeleteV1PostsScheduledByPostIdResponse, type DeleteV1PostsScheduledByPostIdResponses, type DeleteV1ProfilesByIdData, type DeleteV1ProfilesByIdError, type DeleteV1ProfilesByIdErrors, type DeleteV1ProfilesByIdResponse, type DeleteV1ProfilesByIdResponses, type ErrorResponse, type FacebookConfigurations, type GetV1AnalyticsData, type GetV1AnalyticsError, type GetV1AnalyticsErrors, type GetV1AnalyticsResponse, type GetV1AnalyticsResponses, type GetV1AppsByIdData, type GetV1AppsByIdError, type GetV1AppsByIdErrors, type GetV1AppsByIdResponse, type GetV1AppsByIdResponses, type GetV1AppsData, type GetV1AppsResponse, type GetV1AppsResponses, type GetV1ConnectByPlatformData, type GetV1ConnectByPlatformError, type GetV1ConnectByPlatformErrors, type GetV1ConnectByPlatformResponse, type GetV1ConnectByPlatformResponses, type GetV1ConnectFacebookSelectionByTokenData, type GetV1ConnectFacebookSelectionByTokenError, type GetV1ConnectFacebookSelectionByTokenErrors, type GetV1ConnectFacebookSelectionByTokenResponse, type GetV1ConnectFacebookSelectionByTokenResponses, type GetV1ConnectIntegrationsByIdData, type GetV1ConnectIntegrationsByIdError, type GetV1ConnectIntegrationsByIdErrors, type GetV1ConnectIntegrationsByIdResponse, type GetV1ConnectIntegrationsByIdResponses, type GetV1ConnectIntegrationsData, type GetV1ConnectIntegrationsResponse, type GetV1ConnectIntegrationsResponses, type GetV1ConnectLinkedinSelectionByTokenData, type GetV1ConnectLinkedinSelectionByTokenError, type GetV1ConnectLinkedinSelectionByTokenErrors, type GetV1ConnectLinkedinSelectionByTokenResponse, type GetV1ConnectLinkedinSelectionByTokenResponses, type GetV1HealthAuthData, type GetV1HealthAuthResponse, type GetV1HealthAuthResponses, type GetV1HealthData, type GetV1HealthResponse, type GetV1HealthResponses, type GetV1NotificationsByIdData, type GetV1NotificationsByIdError, type GetV1NotificationsByIdErrors, type GetV1NotificationsByIdResponse, type GetV1NotificationsByIdResponses, type GetV1NotificationsData, type GetV1NotificationsResponse, type GetV1NotificationsResponses, type GetV1PinterestBoardsData, type GetV1PinterestBoardsError, type GetV1PinterestBoardsErrors, type GetV1PinterestBoardsResponse, type GetV1PinterestBoardsResponses, type GetV1PlatformsData, type GetV1PlatformsResponse, type GetV1PlatformsResponses, type GetV1PostsByPostIdData, type GetV1PostsByPostIdError, type GetV1PostsByPostIdErrors, type GetV1PostsByPostIdResponse, type GetV1PostsByPostIdResponses, type GetV1PostsData, type GetV1PostsError, type GetV1PostsErrors, type GetV1PostsResponse, type GetV1PostsResponses, type GetV1PostsScheduledData, type GetV1PostsScheduledResponse, type GetV1PostsScheduledResponses, type GetV1ProfilesByIdData, type GetV1ProfilesByIdError, type GetV1ProfilesByIdErrors, type GetV1ProfilesByIdResponse, type GetV1ProfilesByIdResponses, type GetV1ProfilesData, type GetV1ProfilesResponse, type GetV1ProfilesResponses, type GetV1TiktokCreatorInfoData, type GetV1TiktokCreatorInfoError, type GetV1TiktokCreatorInfoErrors, type GetV1TiktokCreatorInfoResponse, type GetV1TiktokCreatorInfoResponses, type GetV1UsageData, type GetV1UsageError, type GetV1UsageErrors, type GetV1UsageResponse, type GetV1UsageResponses, type GoogleBusinessConfigurations, type InstagramConfigurations, InternalServerError, type LinkedInConfigurations, type LinkedInMention, NotFoundError, type PatchV1AppsByIdData, type PatchV1AppsByIdError, type PatchV1AppsByIdErrors, type PatchV1AppsByIdResponse, type PatchV1AppsByIdResponses, type PatchV1ConnectIntegrationsByIdData, type PatchV1ConnectIntegrationsByIdError, type PatchV1ConnectIntegrationsByIdErrors, type PatchV1ConnectIntegrationsByIdResponse, type PatchV1ConnectIntegrationsByIdResponses, type PatchV1NotificationsByIdData, type PatchV1NotificationsByIdError, type PatchV1NotificationsByIdErrors, type PatchV1NotificationsByIdResponse, type PatchV1NotificationsByIdResponses, type PatchV1PostsScheduledByPostIdData, type PatchV1PostsScheduledByPostIdError, type PatchV1PostsScheduledByPostIdErrors, type PatchV1PostsScheduledByPostIdResponse, type PatchV1PostsScheduledByPostIdResponses, type PatchV1ProfilesByIdData, type PatchV1ProfilesByIdError, type PatchV1ProfilesByIdErrors, type PatchV1ProfilesByIdResponse, type PatchV1ProfilesByIdResponses, PermissionDeniedError, type PinterestConfigurations, type Platform, type PostPayload, PostPeer, PostPeerError, type PostV1AiImageData, type PostV1AiImageError, type PostV1AiImageErrors, type PostV1AiImageResponse, type PostV1AiImageResponses, type PostV1AiWriteData, type PostV1AiWriteError, type PostV1AiWriteErrors, type PostV1AiWriteResponse, type PostV1AiWriteResponses, type PostV1AppsData, type PostV1AppsError, type PostV1AppsErrors, type PostV1AppsResponse, type PostV1AppsResponses, type PostV1ConnectBlueskyAuthData, type PostV1ConnectBlueskyAuthError, type PostV1ConnectBlueskyAuthErrors, type PostV1ConnectFacebookSelectionByTokenData, type PostV1ConnectFacebookSelectionByTokenError, type PostV1ConnectFacebookSelectionByTokenErrors, type PostV1ConnectFacebookSelectionByTokenResponse, type PostV1ConnectFacebookSelectionByTokenResponses, type PostV1ConnectLinkedinSelectionByTokenData, type PostV1ConnectLinkedinSelectionByTokenError, type PostV1ConnectLinkedinSelectionByTokenErrors, type PostV1ConnectLinkedinSelectionByTokenResponse, type PostV1ConnectLinkedinSelectionByTokenResponses, type PostV1MediaUploadData, type PostV1MediaUploadError, type PostV1MediaUploadErrors, type PostV1MediaUploadResponse, type PostV1MediaUploadResponses, type PostV1NotificationsData, type PostV1NotificationsError, type PostV1NotificationsErrors, type PostV1NotificationsResponse, type PostV1NotificationsResponses, type PostV1NotificationsTestData, type PostV1NotificationsTestError, type PostV1NotificationsTestErrors, type PostV1NotificationsTestResponse, type PostV1NotificationsTestResponses, type PostV1PostsData, type PostV1PostsError, type PostV1PostsErrors, type PostV1PostsResponse, type PostV1PostsResponses, type PostV1ProfilesData, type PostV1ProfilesResponse, type PostV1ProfilesResponses, type PutV1PostsScheduledByPostIdData, type PutV1PostsScheduledByPostIdError, type PutV1PostsScheduledByPostIdErrors, type PutV1PostsScheduledByPostIdResponse, type PutV1PostsScheduledByPostIdResponses, RateLimitError, type SortOrder, type Status, type ThreadsConfigurations, type TikTokConfigurations, type TwitterConfigurations, UnprocessableEntityError, VERSION, type YouTubeConfigurations, PostPeer as default };
|
package/dist/index.js
CHANGED
|
@@ -1443,6 +1443,22 @@ var PostPeer = class _PostPeer extends HeyApiClient {
|
|
|
1443
1443
|
super(args);
|
|
1444
1444
|
_PostPeer.__registry.set(this, args?.key);
|
|
1445
1445
|
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Move an integration to another profile
|
|
1448
|
+
*
|
|
1449
|
+
* Reassigns an existing integration to another profile in the same project. Pass profileId=null to leave the integration unassigned. OAuth credentials and existing posts are unchanged.
|
|
1450
|
+
*/
|
|
1451
|
+
moveIntegration(options) {
|
|
1452
|
+
return (options.client ?? this.client).patch({
|
|
1453
|
+
security: [{ name: "x-access-key", type: "apiKey" }],
|
|
1454
|
+
url: "/v1/connect/integrations/{id}",
|
|
1455
|
+
...options,
|
|
1456
|
+
headers: {
|
|
1457
|
+
"Content-Type": "application/json",
|
|
1458
|
+
...options.headers
|
|
1459
|
+
}
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1446
1462
|
_health;
|
|
1447
1463
|
get health() {
|
|
1448
1464
|
return this._health ??= new Health({ client: this.client });
|
|
@@ -1636,7 +1652,7 @@ var createAPIError = /* @__PURE__ */ __name((response, body) => {
|
|
|
1636
1652
|
}, "createAPIError");
|
|
1637
1653
|
|
|
1638
1654
|
// src/version.ts
|
|
1639
|
-
var VERSION = "0.8.
|
|
1655
|
+
var VERSION = "0.8.4";
|
|
1640
1656
|
|
|
1641
1657
|
// src/client.ts
|
|
1642
1658
|
var DEFAULT_BASE_URL = "https://api.postpeer.dev";
|