@smartlyqofficial/node 0.1.46 → 0.1.48

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.d.cts CHANGED
@@ -413,9 +413,13 @@ type SocialPostCreateRequest = {
413
413
  */
414
414
  platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
415
415
  /**
416
- * IDs of connected social accounts to post to
416
+ * IDs of connected social accounts to post to. Optional when account_group_ids is sent; at least one of the two is required.
417
417
  */
418
- account_ids: Array<number>;
418
+ account_ids?: Array<number>;
419
+ /**
420
+ * IDs of account groups (GET /social/account-groups). Their connected accounts are added to account_ids, each account once. Send account_ids, account_group_ids or both. An unknown group id answers 404 RESOURCE_NOT_FOUND naming it; a group with no connected accounts left answers 422 VALIDATION_ERROR naming it.
421
+ */
422
+ account_group_ids?: Array<number>;
419
423
  /**
420
424
  * Media URLs to attach to the post
421
425
  */
@@ -449,9 +453,13 @@ type SocialPostScheduleRequest = {
449
453
  */
450
454
  platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
451
455
  /**
452
- * IDs of connected social accounts
456
+ * IDs of connected social accounts to post to. Optional when account_group_ids is sent; at least one of the two is required.
453
457
  */
454
- account_ids: Array<number>;
458
+ account_ids?: Array<number>;
459
+ /**
460
+ * IDs of account groups (GET /social/account-groups). Their connected accounts are added to account_ids, each account once. Send account_ids, account_group_ids or both. An unknown group id answers 404 RESOURCE_NOT_FOUND naming it; a group with no connected accounts left answers 422 VALIDATION_ERROR naming it.
461
+ */
462
+ account_group_ids?: Array<number>;
455
463
  /**
456
464
  * When to publish (ISO 8601)
457
465
  */
@@ -567,7 +575,14 @@ type SocialPostUpdateRequest = {
567
575
  * Target platforms. Use `twitter` for X and `gmb` for Google Business. `telegram` posts via the workspace's connected bot (created with @BotFather); `discord` posts via the connected server webhook. Both are connected in the dashboard's Social Accounts page.
568
576
  */
569
577
  platforms?: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
578
+ /**
579
+ * Replaces the accounts the post goes to.
580
+ */
570
581
  account_ids?: Array<number>;
582
+ /**
583
+ * IDs of account groups; their connected accounts are added to account_ids (each once) and the result replaces the post's accounts. Unknown or empty groups are refused by name.
584
+ */
585
+ account_group_ids?: Array<number>;
571
586
  scheduled_time?: string;
572
587
  media_urls?: Array<string>;
573
588
  link?: string;
@@ -6034,7 +6049,7 @@ type GenerateShortsData = {
6034
6049
  end_s?: number;
6035
6050
  };
6036
6051
  /**
6037
- * Add a stock b-roll cutaway to each clip (6 s or longer, not in split screen).
6052
+ * Stock b-roll cutaways (clips of 6 s or longer, not in split screen): true = on, false = off even if the brand template has it on, omit = brand template.
6038
6053
  */
6039
6054
  magic_broll?: boolean;
6040
6055
  /**
@@ -6233,6 +6248,9 @@ type GetShortsResponses = {
6233
6248
  timeframe?: {
6234
6249
  [key: string]: unknown;
6235
6250
  };
6251
+ /**
6252
+ * Whether the clips got stock b-roll: asked for, or the brand template's (false when the job turned it off).
6253
+ */
6236
6254
  magic_broll?: boolean;
6237
6255
  };
6238
6256
  };
@@ -9147,12 +9165,16 @@ type StopPostRecycleResponse = StopPostRecycleResponses[keyof StopPostRecycleRes
9147
9165
  type BulkSchedulePostsData = {
9148
9166
  body: {
9149
9167
  /**
9150
- * Up to 50 posts. Each row needs content, platforms, account_ids and scheduled_time.
9168
+ * Up to 50 posts. Each row needs content, platforms, account_ids or account_group_ids, and scheduled_time.
9151
9169
  */
9152
9170
  posts?: Array<{
9153
9171
  content: string;
9154
9172
  platforms: Array<string>;
9155
- account_ids: Array<number>;
9173
+ account_ids?: Array<number>;
9174
+ /**
9175
+ * Account group ids; their connected accounts are added to account_ids. A row needs account_ids, account_group_ids or both. An unknown or empty group fails that row by name (the whole batch is rejected and refunded before anything is created).
9176
+ */
9177
+ account_group_ids?: Array<number>;
9156
9178
  /**
9157
9179
  * When to publish (interpreted in `timezone`, default UTC).
9158
9180
  */
@@ -9172,7 +9194,7 @@ type BulkSchedulePostsData = {
9172
9194
  };
9173
9195
  }>;
9174
9196
  /**
9175
- * Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
9197
+ * Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, account_group_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
9176
9198
  */
9177
9199
  csv?: string;
9178
9200
  /**
@@ -9234,12 +9256,16 @@ type BulkSchedulePostsResponse = BulkSchedulePostsResponses[keyof BulkSchedulePo
9234
9256
  type ValidateBulkBatchData = {
9235
9257
  body: {
9236
9258
  /**
9237
- * Up to 50 posts. Each row needs content, platforms, account_ids and scheduled_time.
9259
+ * Up to 50 posts. Each row needs content, platforms, account_ids or account_group_ids, and scheduled_time.
9238
9260
  */
9239
9261
  posts?: Array<{
9240
9262
  content: string;
9241
9263
  platforms: Array<string>;
9242
- account_ids: Array<number>;
9264
+ account_ids?: Array<number>;
9265
+ /**
9266
+ * Account group ids; their connected accounts are added to account_ids. A row needs account_ids, account_group_ids or both. An unknown or empty group fails that row by name (dry run: nothing is created or charged).
9267
+ */
9268
+ account_group_ids?: Array<number>;
9243
9269
  /**
9244
9270
  * When to publish (interpreted in `timezone`, default UTC).
9245
9271
  */
@@ -9259,7 +9285,7 @@ type ValidateBulkBatchData = {
9259
9285
  };
9260
9286
  }>;
9261
9287
  /**
9262
- * Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
9288
+ * Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, account_group_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
9263
9289
  */
9264
9290
  csv?: string;
9265
9291
  /**
package/dist/index.d.ts CHANGED
@@ -413,9 +413,13 @@ type SocialPostCreateRequest = {
413
413
  */
414
414
  platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
415
415
  /**
416
- * IDs of connected social accounts to post to
416
+ * IDs of connected social accounts to post to. Optional when account_group_ids is sent; at least one of the two is required.
417
417
  */
418
- account_ids: Array<number>;
418
+ account_ids?: Array<number>;
419
+ /**
420
+ * IDs of account groups (GET /social/account-groups). Their connected accounts are added to account_ids, each account once. Send account_ids, account_group_ids or both. An unknown group id answers 404 RESOURCE_NOT_FOUND naming it; a group with no connected accounts left answers 422 VALIDATION_ERROR naming it.
421
+ */
422
+ account_group_ids?: Array<number>;
419
423
  /**
420
424
  * Media URLs to attach to the post
421
425
  */
@@ -449,9 +453,13 @@ type SocialPostScheduleRequest = {
449
453
  */
450
454
  platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
451
455
  /**
452
- * IDs of connected social accounts
456
+ * IDs of connected social accounts to post to. Optional when account_group_ids is sent; at least one of the two is required.
453
457
  */
454
- account_ids: Array<number>;
458
+ account_ids?: Array<number>;
459
+ /**
460
+ * IDs of account groups (GET /social/account-groups). Their connected accounts are added to account_ids, each account once. Send account_ids, account_group_ids or both. An unknown group id answers 404 RESOURCE_NOT_FOUND naming it; a group with no connected accounts left answers 422 VALIDATION_ERROR naming it.
461
+ */
462
+ account_group_ids?: Array<number>;
455
463
  /**
456
464
  * When to publish (ISO 8601)
457
465
  */
@@ -567,7 +575,14 @@ type SocialPostUpdateRequest = {
567
575
  * Target platforms. Use `twitter` for X and `gmb` for Google Business. `telegram` posts via the workspace's connected bot (created with @BotFather); `discord` posts via the connected server webhook. Both are connected in the dashboard's Social Accounts page.
568
576
  */
569
577
  platforms?: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
578
+ /**
579
+ * Replaces the accounts the post goes to.
580
+ */
570
581
  account_ids?: Array<number>;
582
+ /**
583
+ * IDs of account groups; their connected accounts are added to account_ids (each once) and the result replaces the post's accounts. Unknown or empty groups are refused by name.
584
+ */
585
+ account_group_ids?: Array<number>;
571
586
  scheduled_time?: string;
572
587
  media_urls?: Array<string>;
573
588
  link?: string;
@@ -6034,7 +6049,7 @@ type GenerateShortsData = {
6034
6049
  end_s?: number;
6035
6050
  };
6036
6051
  /**
6037
- * Add a stock b-roll cutaway to each clip (6 s or longer, not in split screen).
6052
+ * Stock b-roll cutaways (clips of 6 s or longer, not in split screen): true = on, false = off even if the brand template has it on, omit = brand template.
6038
6053
  */
6039
6054
  magic_broll?: boolean;
6040
6055
  /**
@@ -6233,6 +6248,9 @@ type GetShortsResponses = {
6233
6248
  timeframe?: {
6234
6249
  [key: string]: unknown;
6235
6250
  };
6251
+ /**
6252
+ * Whether the clips got stock b-roll: asked for, or the brand template's (false when the job turned it off).
6253
+ */
6236
6254
  magic_broll?: boolean;
6237
6255
  };
6238
6256
  };
@@ -9147,12 +9165,16 @@ type StopPostRecycleResponse = StopPostRecycleResponses[keyof StopPostRecycleRes
9147
9165
  type BulkSchedulePostsData = {
9148
9166
  body: {
9149
9167
  /**
9150
- * Up to 50 posts. Each row needs content, platforms, account_ids and scheduled_time.
9168
+ * Up to 50 posts. Each row needs content, platforms, account_ids or account_group_ids, and scheduled_time.
9151
9169
  */
9152
9170
  posts?: Array<{
9153
9171
  content: string;
9154
9172
  platforms: Array<string>;
9155
- account_ids: Array<number>;
9173
+ account_ids?: Array<number>;
9174
+ /**
9175
+ * Account group ids; their connected accounts are added to account_ids. A row needs account_ids, account_group_ids or both. An unknown or empty group fails that row by name (the whole batch is rejected and refunded before anything is created).
9176
+ */
9177
+ account_group_ids?: Array<number>;
9156
9178
  /**
9157
9179
  * When to publish (interpreted in `timezone`, default UTC).
9158
9180
  */
@@ -9172,7 +9194,7 @@ type BulkSchedulePostsData = {
9172
9194
  };
9173
9195
  }>;
9174
9196
  /**
9175
- * Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
9197
+ * Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, account_group_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
9176
9198
  */
9177
9199
  csv?: string;
9178
9200
  /**
@@ -9234,12 +9256,16 @@ type BulkSchedulePostsResponse = BulkSchedulePostsResponses[keyof BulkSchedulePo
9234
9256
  type ValidateBulkBatchData = {
9235
9257
  body: {
9236
9258
  /**
9237
- * Up to 50 posts. Each row needs content, platforms, account_ids and scheduled_time.
9259
+ * Up to 50 posts. Each row needs content, platforms, account_ids or account_group_ids, and scheduled_time.
9238
9260
  */
9239
9261
  posts?: Array<{
9240
9262
  content: string;
9241
9263
  platforms: Array<string>;
9242
- account_ids: Array<number>;
9264
+ account_ids?: Array<number>;
9265
+ /**
9266
+ * Account group ids; their connected accounts are added to account_ids. A row needs account_ids, account_group_ids or both. An unknown or empty group fails that row by name (dry run: nothing is created or charged).
9267
+ */
9268
+ account_group_ids?: Array<number>;
9243
9269
  /**
9244
9270
  * When to publish (interpreted in `timezone`, default UTC).
9245
9271
  */
@@ -9259,7 +9285,7 @@ type ValidateBulkBatchData = {
9259
9285
  };
9260
9286
  }>;
9261
9287
  /**
9262
- * Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
9288
+ * Alternative to posts: inline CSV with a header line. Basic columns: content, platforms, account_ids, account_group_ids, scheduled_time, media_urls, link, first_comment (list cells split on | or ,; a quoted cell may span lines). Platform options go in `<platform>.<field>` columns, e.g. tiktok.visibility, tiktok.type, youtube.title, pinterest.board_id, instagram.type, gmb.post_type - see the Bulk scheduling guide. Provide posts OR csv, not both.
9263
9289
  */
9264
9290
  csv?: string;
9265
9291
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "description": "Official Node.js SDK for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
5
5
  "keywords": [
6
6
  "smartlyq",