@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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.4
4
+
5
+ - Added moving connected integrations between profiles.
6
+ - Added authentication status and failure-reason fields to connected integrations.
7
+ - Added Instagram collaborator invitations for feed posts, carousels, and Reels.
8
+ - Added exact integration-ID matching when searching connected integrations.
9
+
3
10
  ## 0.8.3
4
11
 
5
12
  - Added Facebook Page selection methods for multi-page OAuth connections.
package/dist/index.cjs CHANGED
@@ -1447,6 +1447,22 @@ var PostPeer = class _PostPeer extends HeyApiClient {
1447
1447
  super(args);
1448
1448
  _PostPeer.__registry.set(this, args?.key);
1449
1449
  }
1450
+ /**
1451
+ * Move an integration to another profile
1452
+ *
1453
+ * 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.
1454
+ */
1455
+ moveIntegration(options) {
1456
+ return (options.client ?? this.client).patch({
1457
+ security: [{ name: "x-access-key", type: "apiKey" }],
1458
+ url: "/v1/connect/integrations/{id}",
1459
+ ...options,
1460
+ headers: {
1461
+ "Content-Type": "application/json",
1462
+ ...options.headers
1463
+ }
1464
+ });
1465
+ }
1450
1466
  _health;
1451
1467
  get health() {
1452
1468
  return this._health ??= new Health({ client: this.client });
@@ -1640,7 +1656,7 @@ var createAPIError = /* @__PURE__ */ __name((response, body) => {
1640
1656
  }, "createAPIError");
1641
1657
 
1642
1658
  // src/version.ts
1643
- var VERSION = "0.8.3";
1659
+ var VERSION = "0.8.4";
1644
1660
 
1645
1661
  // src/client.ts
1646
1662
  var DEFAULT_BASE_URL = "https://api.postpeer.dev";