@smartlyqofficial/node 0.1.75 → 0.1.77

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
  */
@@ -1200,6 +1261,10 @@ type EditSettings = {
1200
1261
  * Use the workspace brand template (logo, caption styling, hook style, music).
1201
1262
  */
1202
1263
  apply_brand_template?: boolean;
1264
+ /**
1265
+ * The format of the edited video. `auto` (default): a portrait video (height more than 5% over the width) becomes 9:16 (1080x1920), a landscape one (width more than 5% over the height) 16:9 (1920x1080), anything in between 1:1 (1080x1080). `9:16`, `16:9`, `1:1` or `4:5` (1080x1350): that format, whatever the source. In every format the video fills the frame, centred, and what does not fit is cropped; captions, hook, logo and b-roll are placed for that frame. `source`: the video's own aspect ratio with the short side 1080 px (every edit made before 17 November 2026 keeps this format when you change it with PATCH).
1266
+ */
1267
+ aspect?: 'auto' | 'source' | '9:16' | '16:9' | '1:1' | '4:5';
1203
1268
  /**
1204
1269
  * Names, brand and foreign words spoken in this video, spelled the way the captions must show them. An entry `heard => Right` fixes a known mishearing. Used together with the brand template's custom vocabulary. One word or name per entry, no commas. Changing it with PATCH respells the existing transcript at no extra charge.
1205
1270
  */
@@ -9425,6 +9490,10 @@ type UnpublishPostErrors = {
9425
9490
  * Missing or invalid API key
9426
9491
  */
9427
9492
  401: ErrorResponse;
9493
+ /**
9494
+ * Forbidden (scope or access)
9495
+ */
9496
+ 403: ErrorResponse;
9428
9497
  /**
9429
9498
  * Resource not found
9430
9499
  */
@@ -9620,6 +9689,10 @@ type StopPostRecycleErrors = {
9620
9689
  * Missing or invalid API key
9621
9690
  */
9622
9691
  401: ErrorResponse;
9692
+ /**
9693
+ * Forbidden (scope or access)
9694
+ */
9695
+ 403: ErrorResponse;
9623
9696
  /**
9624
9697
  * Resource not found
9625
9698
  */
@@ -12220,6 +12293,10 @@ type EditPublishedPostErrors = {
12220
12293
  * Missing or invalid API key
12221
12294
  */
12222
12295
  401: ErrorResponse;
12296
+ /**
12297
+ * Forbidden (scope or access)
12298
+ */
12299
+ 403: ErrorResponse;
12223
12300
  /**
12224
12301
  * Resource not found
12225
12302
  */
@@ -12271,6 +12348,10 @@ type UpdatePostMetadataErrors = {
12271
12348
  * Missing or invalid API key
12272
12349
  */
12273
12350
  401: ErrorResponse;
12351
+ /**
12352
+ * Forbidden (scope or access)
12353
+ */
12354
+ 403: ErrorResponse;
12274
12355
  /**
12275
12356
  * Resource not found
12276
12357
  */
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
  */
@@ -1200,6 +1261,10 @@ type EditSettings = {
1200
1261
  * Use the workspace brand template (logo, caption styling, hook style, music).
1201
1262
  */
1202
1263
  apply_brand_template?: boolean;
1264
+ /**
1265
+ * The format of the edited video. `auto` (default): a portrait video (height more than 5% over the width) becomes 9:16 (1080x1920), a landscape one (width more than 5% over the height) 16:9 (1920x1080), anything in between 1:1 (1080x1080). `9:16`, `16:9`, `1:1` or `4:5` (1080x1350): that format, whatever the source. In every format the video fills the frame, centred, and what does not fit is cropped; captions, hook, logo and b-roll are placed for that frame. `source`: the video's own aspect ratio with the short side 1080 px (every edit made before 17 November 2026 keeps this format when you change it with PATCH).
1266
+ */
1267
+ aspect?: 'auto' | 'source' | '9:16' | '16:9' | '1:1' | '4:5';
1203
1268
  /**
1204
1269
  * Names, brand and foreign words spoken in this video, spelled the way the captions must show them. An entry `heard => Right` fixes a known mishearing. Used together with the brand template's custom vocabulary. One word or name per entry, no commas. Changing it with PATCH respells the existing transcript at no extra charge.
1205
1270
  */
@@ -9425,6 +9490,10 @@ type UnpublishPostErrors = {
9425
9490
  * Missing or invalid API key
9426
9491
  */
9427
9492
  401: ErrorResponse;
9493
+ /**
9494
+ * Forbidden (scope or access)
9495
+ */
9496
+ 403: ErrorResponse;
9428
9497
  /**
9429
9498
  * Resource not found
9430
9499
  */
@@ -9620,6 +9689,10 @@ type StopPostRecycleErrors = {
9620
9689
  * Missing or invalid API key
9621
9690
  */
9622
9691
  401: ErrorResponse;
9692
+ /**
9693
+ * Forbidden (scope or access)
9694
+ */
9695
+ 403: ErrorResponse;
9623
9696
  /**
9624
9697
  * Resource not found
9625
9698
  */
@@ -12220,6 +12293,10 @@ type EditPublishedPostErrors = {
12220
12293
  * Missing or invalid API key
12221
12294
  */
12222
12295
  401: ErrorResponse;
12296
+ /**
12297
+ * Forbidden (scope or access)
12298
+ */
12299
+ 403: ErrorResponse;
12223
12300
  /**
12224
12301
  * Resource not found
12225
12302
  */
@@ -12271,6 +12348,10 @@ type UpdatePostMetadataErrors = {
12271
12348
  * Missing or invalid API key
12272
12349
  */
12273
12350
  401: ErrorResponse;
12351
+ /**
12352
+ * Forbidden (scope or access)
12353
+ */
12354
+ 403: ErrorResponse;
12274
12355
  /**
12275
12356
  * Resource not found
12276
12357
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.75",
3
+ "version": "0.1.77",
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",