@apteva/integrations 0.3.10 → 0.3.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apteva/integrations",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "Local integrations, connections, and webhooks for Apteva. Self-contained app templates, OAuth engine, and trigger provider.",
5
5
  "author": "Apteva <hello@apteva.com>",
6
6
  "license": "Elastic-2.0",
@@ -205,7 +205,7 @@
205
205
  },
206
206
  {
207
207
  "name": "create_post",
208
- "description": "Create and publish a post to one or more connected social media platforms simultaneously. Supports text, images, videos, and links. To schedule a post for later, set scheduled_for to an ISO 8601 timestamp and optionally timezone (e.g., 'America/New_York'). Platform-specific overrides allow customizing content per platform (e.g., Reddit title, YouTube description, TikTok privacy).",
208
+ "description": "Create and publish a post to one or more connected social media platforms simultaneously. Supports text, images, videos, and links.\n\nMedia capabilities per platform:\n- Instagram: Single image, single video (Reel), or CAROUSEL (2-10 images/videos mixed). Pass multiple items in media_urls for carousel.\n- Facebook: Text, single image, MULTI-PHOTO (2+ images posted as album), single video, or link post.\n- Twitter/X: Text with up to 4 media attachments (images, GIFs, or 1 video). Media is uploaded automatically.\n- TikTok: Single video or PHOTO CAROUSEL (up to 35 images). Use overrides for privacy, comments, music.\n- YouTube: Single video upload with title, description, tags, privacy.\n- Pinterest: Single image with title, description, board, and link.\n- Reddit: Text (self) or link post to a subreddit.\n- LinkedIn: Text post with optional visibility setting.\n- Telegram: Text or single image with optional parse mode.\n\nTo schedule a post for later, set scheduled_for to an ISO 8601 timestamp and optionally timezone (e.g., 'America/New_York').",
209
209
  "method": "POST",
210
210
  "path": "/posts",
211
211
  "input_schema": {
@@ -217,7 +217,7 @@
217
217
  },
218
218
  "media_urls": {
219
219
  "type": "array",
220
- "description": "Media attachments array of objects with url, type (image/video), and optional alt_text",
220
+ "description": "Media attachments. Pass multiple images for carousel/album posts (Instagram up to 10, Facebook unlimited, TikTok up to 35). Each item needs url, type (image/video), and optional alt_text.",
221
221
  "items": {
222
222
  "type": "object",
223
223
  "properties": {
@@ -266,7 +266,7 @@
266
266
  },
267
267
  "platform_overrides": {
268
268
  "type": "object",
269
- "description": "Per-platform overrides keyed by platform name. Only include platforms you want to customize. Available fields per platform: youtube: {title, description, tags (array), privacyStatus (public/unlisted/private), categoryId (default 22=People & Blogs)}. reddit: {title, subreddit, text, nsfw}. pinterest: {title, description, board_id}. tiktok: {title, text, privacyLevel}. linkedin: {text, visibility}. facebook: {text, title (video only)}. twitter: {text}. instagram: {text}. telegram: {text, chatId, parseMode}. All fields are optional — omitted fields fall back to the main post text.",
269
+ "description": "Per-platform overrides keyed by platform name. Only include platforms you want to customize. Available fields per platform: youtube: {title, description, tags (array), privacyStatus (public/unlisted/private), categoryId}. reddit: {title, subreddit, text, nsfw}. pinterest: {title, description, board_id}. tiktok: {title, text, privacyLevel (PUBLIC_TO_EVERYONE/MUTUAL_FOLLOW_FRIENDS/FOLLOWER_OF_CREATOR/SELF_ONLY), disableComment (bool), autoAddMusic (bool)}. linkedin: {text, visibility}. facebook: {text, title (video only)}. twitter: {text}. instagram: {text}. telegram: {text, chatId, parseMode}. All fields are optional — omitted fields fall back to the main post text.",
270
270
  "properties": {
271
271
  "twitter": {
272
272
  "type": "object"
@@ -447,7 +447,7 @@
447
447
  },
448
448
  {
449
449
  "name": "get_post_analytics",
450
- "description": "Fetch analytics and engagement metrics for a published post across all platforms. Returns impressions, reach, likes, comments, shares, views, saves, and clicks where available. Supported: Instagram, Facebook, YouTube, TikTok, Pinterest. No analytics API: Twitter, LinkedIn, Reddit, Telegram.",
450
+ "description": "Fetch analytics and engagement metrics for a published post across all platforms. Returns impressions, reach, likes, comments, shares, views, saves, clicks, quotes, and bookmarks where available. Supported: Instagram, Facebook, YouTube, TikTok, Pinterest, Twitter/X. No analytics API: LinkedIn, Reddit, Telegram.",
451
451
  "method": "GET",
452
452
  "path": "/posts/%7B%7Bid%7D%7D/analytics",
453
453
  "input_schema": {
@@ -463,6 +463,42 @@
463
463
  ]
464
464
  }
465
465
  },
466
+ {
467
+ "name": "account_insights",
468
+ "description": "Get page-level insights and historical stats for a connected social account. Returns follower growth, reach, impressions, engagement metrics, and top content over a date range. Supported: Instagram (reach, followers, engagement, interactions), Facebook (page impressions, reach, engagement, fans), YouTube (subscribers, views, watch time), TikTok (followers, views, likes, shares), Twitter/X (followers, following, tweet count + recent tweet engagement), Pinterest (impressions, engagement, pin clicks, outbound clicks, saves + top pins). Unsupported: LinkedIn, Reddit, Telegram.",
469
+ "method": "GET",
470
+ "path": "/accounts/%7B%7Bid%7D%7D/insights",
471
+ "input_schema": {
472
+ "type": "object",
473
+ "properties": {
474
+ "id": {
475
+ "type": "integer",
476
+ "description": "Social account ID to get insights for"
477
+ },
478
+ "start_date": {
479
+ "type": "string",
480
+ "description": "Start date in YYYY-MM-DD format (defaults to 7 days ago)"
481
+ },
482
+ "end_date": {
483
+ "type": "string",
484
+ "description": "End date in YYYY-MM-DD format (defaults to today)"
485
+ },
486
+ "period": {
487
+ "type": "string",
488
+ "enum": [
489
+ "day",
490
+ "week",
491
+ "days_28"
492
+ ],
493
+ "description": "Aggregation period (Instagram/Facebook only)",
494
+ "default": "day"
495
+ }
496
+ },
497
+ "required": [
498
+ "id"
499
+ ]
500
+ }
501
+ },
466
502
  {
467
503
  "name": "account_health",
468
504
  "description": "Check the connection health of one or all connected social accounts. Verifies that OAuth tokens are still valid by calling each platform's profile API. Pass a specific account ID or 'all' to check all active accounts.",