@smartlyqofficial/node 0.1.74 → 0.1.76

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
@@ -643,6 +643,67 @@ type SocialPost = {
643
643
  scheduled_time?: string;
644
644
  published_at?: string;
645
645
  created_at?: string;
646
+ /**
647
+ * The social accounts the post goes to (the account_ids you sent, account groups expanded).
648
+ */
649
+ account_ids?: Array<number>;
650
+ /**
651
+ * When the post last changed.
652
+ */
653
+ updated_at?: string;
654
+ /**
655
+ * The media attached to the post.
656
+ */
657
+ media_urls?: Array<string>;
658
+ /**
659
+ * Per-platform options as stored (the same keys you send). The top-level link you sent lives here, under the platform that has a link field (e.g. facebook.link).
660
+ */
661
+ platform_options?: {
662
+ [key: string]: unknown;
663
+ };
664
+ /**
665
+ * Per-platform text or media set in the app ("Customize channel"), keyed by platform; null when every platform got the same content. Read only.
666
+ */
667
+ platform_overrides?: {
668
+ [key: string]: unknown;
669
+ };
670
+ /**
671
+ * The posting queue the post was placed in, or null.
672
+ */
673
+ queue_id?: number;
674
+ /**
675
+ * Evergreen recycling settings, or null when the post does not recycle.
676
+ */
677
+ recycle?: {
678
+ interval_hours?: number;
679
+ until?: string;
680
+ max?: number;
681
+ /**
682
+ * Occurrences published so far.
683
+ */
684
+ count?: number;
685
+ };
686
+ /**
687
+ * none (no approval needed) | pending | approved | rejected.
688
+ */
689
+ approval_status?: string;
690
+ /**
691
+ * Why an approver rejected the post.
692
+ */
693
+ rejection_reason?: string;
694
+ approved_at?: string;
695
+ /**
696
+ * Where the post was made: api, app, mcp and so on.
697
+ */
698
+ created_via?: string;
699
+ /**
700
+ * Who wrote the post. Keys of an owner, admin or approver also see teammates' posts (same rule as the app).
701
+ */
702
+ author_name?: string;
703
+ /**
704
+ * Whether this key may change the post (update, delete, unpublish, edit): its own posts, or any post for an owner or admin key.
705
+ */
706
+ can_manage?: boolean;
646
707
  /**
647
708
  * Live progress inside a publish run: validating (pre-publish checks), processing_media (auto-transcode inspecting/converting media), publishing (dispatching to platforms). null when the post is idle or has reached a final status.
648
709
  */
@@ -9425,6 +9486,10 @@ type UnpublishPostErrors = {
9425
9486
  * Missing or invalid API key
9426
9487
  */
9427
9488
  401: ErrorResponse;
9489
+ /**
9490
+ * Forbidden (scope or access)
9491
+ */
9492
+ 403: ErrorResponse;
9428
9493
  /**
9429
9494
  * Resource not found
9430
9495
  */
@@ -9446,19 +9511,40 @@ type UnpublishPostErrors = {
9446
9511
  type UnpublishPostError = UnpublishPostErrors[keyof UnpublishPostErrors];
9447
9512
  type UnpublishPostResponses = {
9448
9513
  /**
9449
- * Unpublished
9514
+ * Removed from every platform it could be (see `status` and `still_live`)
9450
9515
  */
9451
9516
  200: {
9452
9517
  success?: true;
9453
9518
  data?: {
9454
9519
  post_id?: number;
9455
- status?: 'unpublished';
9520
+ /**
9521
+ * `unpublished` once no copy is left live; otherwise the post keeps its status (copies are still up, see `still_live`).
9522
+ */
9523
+ status?: 'unpublished' | 'published' | 'partially_published' | 'partial';
9456
9524
  /**
9457
9525
  * Per-platform deletion results.
9458
9526
  */
9459
9527
  platforms?: {
9460
9528
  [key: string]: unknown;
9461
9529
  };
9530
+ /**
9531
+ * Per account after this call: `removed` for a copy that is gone, `success` for one still live.
9532
+ */
9533
+ results?: Array<PostResult>;
9534
+ /**
9535
+ * Every copy still on a platform, and why. Empty when the post is fully unpublished.
9536
+ */
9537
+ still_live?: Array<{
9538
+ platform?: string;
9539
+ account?: string;
9540
+ account_id?: number;
9541
+ url?: string;
9542
+ /**
9543
+ * no_delete_api: the platform lets no app delete posts (Instagram, TikTok, Snapchat) - delete it there. not_requested: left out by `platforms`. delete_not_enabled: deleting from this platform is switched off. reconnect_needed: the account is not connected - reconnect it, then unpublish again. delete_failed: retry.
9544
+ */
9545
+ reason?: 'no_delete_api' | 'not_requested' | 'delete_not_enabled' | 'reconnect_needed' | 'delete_failed';
9546
+ message?: string;
9547
+ }>;
9462
9548
  };
9463
9549
  meta?: RequestMeta;
9464
9550
  };
@@ -9599,6 +9685,10 @@ type StopPostRecycleErrors = {
9599
9685
  * Missing or invalid API key
9600
9686
  */
9601
9687
  401: ErrorResponse;
9688
+ /**
9689
+ * Forbidden (scope or access)
9690
+ */
9691
+ 403: ErrorResponse;
9602
9692
  /**
9603
9693
  * Resource not found
9604
9694
  */
@@ -12199,6 +12289,10 @@ type EditPublishedPostErrors = {
12199
12289
  * Missing or invalid API key
12200
12290
  */
12201
12291
  401: ErrorResponse;
12292
+ /**
12293
+ * Forbidden (scope or access)
12294
+ */
12295
+ 403: ErrorResponse;
12202
12296
  /**
12203
12297
  * Resource not found
12204
12298
  */
@@ -12250,6 +12344,10 @@ type UpdatePostMetadataErrors = {
12250
12344
  * Missing or invalid API key
12251
12345
  */
12252
12346
  401: ErrorResponse;
12347
+ /**
12348
+ * Forbidden (scope or access)
12349
+ */
12350
+ 403: ErrorResponse;
12253
12351
  /**
12254
12352
  * Resource not found
12255
12353
  */
package/dist/index.d.ts CHANGED
@@ -643,6 +643,67 @@ type SocialPost = {
643
643
  scheduled_time?: string;
644
644
  published_at?: string;
645
645
  created_at?: string;
646
+ /**
647
+ * The social accounts the post goes to (the account_ids you sent, account groups expanded).
648
+ */
649
+ account_ids?: Array<number>;
650
+ /**
651
+ * When the post last changed.
652
+ */
653
+ updated_at?: string;
654
+ /**
655
+ * The media attached to the post.
656
+ */
657
+ media_urls?: Array<string>;
658
+ /**
659
+ * Per-platform options as stored (the same keys you send). The top-level link you sent lives here, under the platform that has a link field (e.g. facebook.link).
660
+ */
661
+ platform_options?: {
662
+ [key: string]: unknown;
663
+ };
664
+ /**
665
+ * Per-platform text or media set in the app ("Customize channel"), keyed by platform; null when every platform got the same content. Read only.
666
+ */
667
+ platform_overrides?: {
668
+ [key: string]: unknown;
669
+ };
670
+ /**
671
+ * The posting queue the post was placed in, or null.
672
+ */
673
+ queue_id?: number;
674
+ /**
675
+ * Evergreen recycling settings, or null when the post does not recycle.
676
+ */
677
+ recycle?: {
678
+ interval_hours?: number;
679
+ until?: string;
680
+ max?: number;
681
+ /**
682
+ * Occurrences published so far.
683
+ */
684
+ count?: number;
685
+ };
686
+ /**
687
+ * none (no approval needed) | pending | approved | rejected.
688
+ */
689
+ approval_status?: string;
690
+ /**
691
+ * Why an approver rejected the post.
692
+ */
693
+ rejection_reason?: string;
694
+ approved_at?: string;
695
+ /**
696
+ * Where the post was made: api, app, mcp and so on.
697
+ */
698
+ created_via?: string;
699
+ /**
700
+ * Who wrote the post. Keys of an owner, admin or approver also see teammates' posts (same rule as the app).
701
+ */
702
+ author_name?: string;
703
+ /**
704
+ * Whether this key may change the post (update, delete, unpublish, edit): its own posts, or any post for an owner or admin key.
705
+ */
706
+ can_manage?: boolean;
646
707
  /**
647
708
  * Live progress inside a publish run: validating (pre-publish checks), processing_media (auto-transcode inspecting/converting media), publishing (dispatching to platforms). null when the post is idle or has reached a final status.
648
709
  */
@@ -9425,6 +9486,10 @@ type UnpublishPostErrors = {
9425
9486
  * Missing or invalid API key
9426
9487
  */
9427
9488
  401: ErrorResponse;
9489
+ /**
9490
+ * Forbidden (scope or access)
9491
+ */
9492
+ 403: ErrorResponse;
9428
9493
  /**
9429
9494
  * Resource not found
9430
9495
  */
@@ -9446,19 +9511,40 @@ type UnpublishPostErrors = {
9446
9511
  type UnpublishPostError = UnpublishPostErrors[keyof UnpublishPostErrors];
9447
9512
  type UnpublishPostResponses = {
9448
9513
  /**
9449
- * Unpublished
9514
+ * Removed from every platform it could be (see `status` and `still_live`)
9450
9515
  */
9451
9516
  200: {
9452
9517
  success?: true;
9453
9518
  data?: {
9454
9519
  post_id?: number;
9455
- status?: 'unpublished';
9520
+ /**
9521
+ * `unpublished` once no copy is left live; otherwise the post keeps its status (copies are still up, see `still_live`).
9522
+ */
9523
+ status?: 'unpublished' | 'published' | 'partially_published' | 'partial';
9456
9524
  /**
9457
9525
  * Per-platform deletion results.
9458
9526
  */
9459
9527
  platforms?: {
9460
9528
  [key: string]: unknown;
9461
9529
  };
9530
+ /**
9531
+ * Per account after this call: `removed` for a copy that is gone, `success` for one still live.
9532
+ */
9533
+ results?: Array<PostResult>;
9534
+ /**
9535
+ * Every copy still on a platform, and why. Empty when the post is fully unpublished.
9536
+ */
9537
+ still_live?: Array<{
9538
+ platform?: string;
9539
+ account?: string;
9540
+ account_id?: number;
9541
+ url?: string;
9542
+ /**
9543
+ * no_delete_api: the platform lets no app delete posts (Instagram, TikTok, Snapchat) - delete it there. not_requested: left out by `platforms`. delete_not_enabled: deleting from this platform is switched off. reconnect_needed: the account is not connected - reconnect it, then unpublish again. delete_failed: retry.
9544
+ */
9545
+ reason?: 'no_delete_api' | 'not_requested' | 'delete_not_enabled' | 'reconnect_needed' | 'delete_failed';
9546
+ message?: string;
9547
+ }>;
9462
9548
  };
9463
9549
  meta?: RequestMeta;
9464
9550
  };
@@ -9599,6 +9685,10 @@ type StopPostRecycleErrors = {
9599
9685
  * Missing or invalid API key
9600
9686
  */
9601
9687
  401: ErrorResponse;
9688
+ /**
9689
+ * Forbidden (scope or access)
9690
+ */
9691
+ 403: ErrorResponse;
9602
9692
  /**
9603
9693
  * Resource not found
9604
9694
  */
@@ -12199,6 +12289,10 @@ type EditPublishedPostErrors = {
12199
12289
  * Missing or invalid API key
12200
12290
  */
12201
12291
  401: ErrorResponse;
12292
+ /**
12293
+ * Forbidden (scope or access)
12294
+ */
12295
+ 403: ErrorResponse;
12202
12296
  /**
12203
12297
  * Resource not found
12204
12298
  */
@@ -12250,6 +12344,10 @@ type UpdatePostMetadataErrors = {
12250
12344
  * Missing or invalid API key
12251
12345
  */
12252
12346
  401: ErrorResponse;
12347
+ /**
12348
+ * Forbidden (scope or access)
12349
+ */
12350
+ 403: ErrorResponse;
12253
12351
  /**
12254
12352
  * Resource not found
12255
12353
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.74",
3
+ "version": "0.1.76",
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",