@smartlyqofficial/node 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -301,7 +301,7 @@ All methods below are available on the client. Full request/response documentati
301
301
  | `sq.social.getPost(postId)` | `GET /social/posts/{post_id}` | Get social post |
302
302
  | `sq.social.updatePost(postId, body)` | `PATCH /social/posts/{post_id}` | Update social post |
303
303
  | `sq.social.deletePost(postId)` | `DELETE /social/posts/{post_id}` | Delete social post |
304
- | `sq.social.disconnectAccount(accountId)` | `DELETE /social/accounts/{account_id}` | Disconnect a social account |
304
+ | `sq.social.updateAccount(accountId, body)` | `PATCH /social/accounts/{account_id}` | Rename account |
305
305
  | `sq.social.getAccountHealth(accountId)` | `GET /social/accounts/{account_id}/health` | Account health |
306
306
  | `sq.social.getAccountReconnectUrl(accountId)` | `GET /social/accounts/{account_id}/reconnect-url` | Account reconnect URL |
307
307
  | `sq.social.pauseAccount(accountId)` | `POST /social/accounts/{account_id}/pause` | Pause posting to an account |
@@ -309,6 +309,28 @@ All methods below are available on the client. Full request/response documentati
309
309
  | `sq.social.retryPost(postId, body)` | `POST /social/posts/{post_id}/retry` | Retry publishing a post |
310
310
  | `sq.social.connectAccountStatus(platform)` | `GET /social/connect/{platform}` | Poll headless connection status |
311
311
  | `sq.social.connectAccount(platform, body?)` | `POST /social/connect/{platform}` | Start headless account connection |
312
+ | `sq.social.listQueues()` | `GET /social/queues` | List queues |
313
+ | `sq.social.createQueue(body)` | `POST /social/queues` | Create queue |
314
+ | `sq.social.getQueue(queueId)` | `GET /social/queues/{queue_id}` | Get queue |
315
+ | `sq.social.updateQueue(queueId, body)` | `PUT /social/queues/{queue_id}` | Update queue |
316
+ | `sq.social.deleteQueue(queueId)` | `DELETE /social/queues/{queue_id}` | Delete queue |
317
+ | `sq.social.getQueueNextSlot(queueId)` | `GET /social/queues/{queue_id}/next-slot` | Get next open slot |
318
+ | `sq.social.previewQueueSlots(queueId, query?)` | `GET /social/queues/{queue_id}/preview` | Preview upcoming slots |
319
+ | `sq.social.unpublishPost(postId, body?)` | `POST /social/posts/{post_id}/unpublish` | Unpublish post |
320
+ | `sq.social.validatePost(body)` | `POST /social/validate/post` | Validate post content |
321
+ | `sq.social.validateMedia(body)` | `POST /social/validate/media` | Validate media URL |
322
+ | `sq.social.stopPostRecycle(postId)` | `DELETE /social/posts/{post_id}/recycle` | Stop recycling |
323
+ | `sq.social.bulkSchedulePosts(body)` | `POST /social/posts/bulk` | Bulk schedule posts |
324
+ | `sq.social.validateBulkBatch(body)` | `POST /social/posts/bulk/validate` | Validate a bulk batch |
325
+ | `sq.social.bulkAccountHealth()` | `GET /social/accounts/health` | Bulk account health |
326
+ | `sq.social.accountFollowerStats(query?)` | `GET /social/accounts/follower-stats` | Follower stats |
327
+ | `sq.social.tiktokCreatorInfo(accountId)` | `GET /social/accounts/{account_id}/tiktok/creator-info` | TikTok creator info |
328
+ | `sq.social.moveAccount(accountId, body)` | `POST /social/accounts/{account_id}/move` | Move account to profile |
329
+ | `sq.social.listAccountGroups()` | `GET /social/account-groups` | List account groups |
330
+ | `sq.social.createAccountGroup(body)` | `POST /social/account-groups` | Create account group |
331
+ | `sq.social.getAccountGroup(groupId)` | `GET /social/account-groups/{group_id}` | Get account group |
332
+ | `sq.social.updateAccountGroup(groupId, body)` | `PUT /social/account-groups/{group_id}` | Update account group |
333
+ | `sq.social.deleteAccountGroup(groupId)` | `DELETE /social/account-groups/{group_id}` | Delete account group |
312
334
 
313
335
  ### URLs
314
336
 
@@ -340,7 +362,10 @@ All methods below are available on the client. Full request/response documentati
340
362
  | --- | --- | --- |
341
363
  | `sq.webhooks.list()` | `GET /webhooks` | List webhooks |
342
364
  | `sq.webhooks.create(body)` | `POST /webhooks` | Create webhook |
365
+ | `sq.webhooks.update(id, body)` | `PUT /webhooks/{id}` | Update webhook |
343
366
  | `sq.webhooks.delete(id)` | `DELETE /webhooks/{id}` | Delete webhook |
367
+ | `sq.webhooks.listLogs(query?)` | `GET /webhooks/logs` | List webhook delivery logs |
368
+ | `sq.webhooks.test(id)` | `POST /webhooks/{id}/test` | Send test webhook |
344
369
 
345
370
  ### Workspaces
346
371
 
package/dist/index.cjs CHANGED
@@ -704,9 +704,9 @@ var SocialResource = class {
704
704
  deletePost(postId, options) {
705
705
  return this._client.request("DELETE", `/social/posts/${encodeURIComponent(postId)}`, { options });
706
706
  }
707
- /** Disconnect a social account `DELETE /social/accounts/{account_id}` */
708
- disconnectAccount(accountId, options) {
709
- return this._client.request("DELETE", `/social/accounts/${encodeURIComponent(accountId)}`, { options });
707
+ /** Rename account `PATCH /social/accounts/{account_id}` */
708
+ updateAccount(accountId, body, options) {
709
+ return this._client.request("PATCH", `/social/accounts/${encodeURIComponent(accountId)}`, { body, options });
710
710
  }
711
711
  /** Account health `GET /social/accounts/{account_id}/health` */
712
712
  getAccountHealth(accountId, options) {
@@ -736,6 +736,94 @@ var SocialResource = class {
736
736
  connectAccount(platform, body, options) {
737
737
  return this._client.request("POST", `/social/connect/${encodeURIComponent(platform)}`, { body, options });
738
738
  }
739
+ /** List queues `GET /social/queues` */
740
+ listQueues(options) {
741
+ return this._client.request("GET", "/social/queues", { options });
742
+ }
743
+ /** Create queue `POST /social/queues` */
744
+ createQueue(body, options) {
745
+ return this._client.request("POST", "/social/queues", { body, options });
746
+ }
747
+ /** Get queue `GET /social/queues/{queue_id}` */
748
+ getQueue(queueId, options) {
749
+ return this._client.request("GET", `/social/queues/${encodeURIComponent(queueId)}`, { options });
750
+ }
751
+ /** Update queue `PUT /social/queues/{queue_id}` */
752
+ updateQueue(queueId, body, options) {
753
+ return this._client.request("PUT", `/social/queues/${encodeURIComponent(queueId)}`, { body, options });
754
+ }
755
+ /** Delete queue `DELETE /social/queues/{queue_id}` */
756
+ deleteQueue(queueId, options) {
757
+ return this._client.request("DELETE", `/social/queues/${encodeURIComponent(queueId)}`, { options });
758
+ }
759
+ /** Get next open slot `GET /social/queues/{queue_id}/next-slot` */
760
+ getQueueNextSlot(queueId, options) {
761
+ return this._client.request("GET", `/social/queues/${encodeURIComponent(queueId)}/next-slot`, { options });
762
+ }
763
+ /** Preview upcoming slots `GET /social/queues/{queue_id}/preview` */
764
+ previewQueueSlots(queueId, query, options) {
765
+ return this._client.request("GET", `/social/queues/${encodeURIComponent(queueId)}/preview`, { query, options });
766
+ }
767
+ /** Unpublish post `POST /social/posts/{post_id}/unpublish` */
768
+ unpublishPost(postId, body, options) {
769
+ return this._client.request("POST", `/social/posts/${encodeURIComponent(postId)}/unpublish`, { body, options });
770
+ }
771
+ /** Validate post content `POST /social/validate/post` */
772
+ validatePost(body, options) {
773
+ return this._client.request("POST", "/social/validate/post", { body, options });
774
+ }
775
+ /** Validate media URL `POST /social/validate/media` */
776
+ validateMedia(body, options) {
777
+ return this._client.request("POST", "/social/validate/media", { body, options });
778
+ }
779
+ /** Stop recycling `DELETE /social/posts/{post_id}/recycle` */
780
+ stopPostRecycle(postId, options) {
781
+ return this._client.request("DELETE", `/social/posts/${encodeURIComponent(postId)}/recycle`, { options });
782
+ }
783
+ /** Bulk schedule posts `POST /social/posts/bulk` */
784
+ bulkSchedulePosts(body, options) {
785
+ return this._client.request("POST", "/social/posts/bulk", { body, options });
786
+ }
787
+ /** Validate a bulk batch `POST /social/posts/bulk/validate` */
788
+ validateBulkBatch(body, options) {
789
+ return this._client.request("POST", "/social/posts/bulk/validate", { body, options });
790
+ }
791
+ /** Bulk account health `GET /social/accounts/health` */
792
+ bulkAccountHealth(options) {
793
+ return this._client.request("GET", "/social/accounts/health", { options });
794
+ }
795
+ /** Follower stats `GET /social/accounts/follower-stats` */
796
+ accountFollowerStats(query, options) {
797
+ return this._client.request("GET", "/social/accounts/follower-stats", { query, options });
798
+ }
799
+ /** TikTok creator info `GET /social/accounts/{account_id}/tiktok/creator-info` */
800
+ tiktokCreatorInfo(accountId, options) {
801
+ return this._client.request("GET", `/social/accounts/${encodeURIComponent(accountId)}/tiktok/creator-info`, { options });
802
+ }
803
+ /** Move account to profile `POST /social/accounts/{account_id}/move` */
804
+ moveAccount(accountId, body, options) {
805
+ return this._client.request("POST", `/social/accounts/${encodeURIComponent(accountId)}/move`, { body, options });
806
+ }
807
+ /** List account groups `GET /social/account-groups` */
808
+ listAccountGroups(options) {
809
+ return this._client.request("GET", "/social/account-groups", { options });
810
+ }
811
+ /** Create account group `POST /social/account-groups` */
812
+ createAccountGroup(body, options) {
813
+ return this._client.request("POST", "/social/account-groups", { body, options });
814
+ }
815
+ /** Get account group `GET /social/account-groups/{group_id}` */
816
+ getAccountGroup(groupId, options) {
817
+ return this._client.request("GET", `/social/account-groups/${encodeURIComponent(groupId)}`, { options });
818
+ }
819
+ /** Update account group `PUT /social/account-groups/{group_id}` */
820
+ updateAccountGroup(groupId, body, options) {
821
+ return this._client.request("PUT", `/social/account-groups/${encodeURIComponent(groupId)}`, { body, options });
822
+ }
823
+ /** Delete account group `DELETE /social/account-groups/{group_id}` */
824
+ deleteAccountGroup(groupId, options) {
825
+ return this._client.request("DELETE", `/social/account-groups/${encodeURIComponent(groupId)}`, { options });
826
+ }
739
827
  };
740
828
  var UrlsResource = class {
741
829
  constructor(_client) {
@@ -815,10 +903,22 @@ var WebhooksResource = class {
815
903
  create(body, options) {
816
904
  return this._client.request("POST", "/webhooks", { body, options });
817
905
  }
906
+ /** Update webhook `PUT /webhooks/{id}` */
907
+ update(id, body, options) {
908
+ return this._client.request("PUT", `/webhooks/${encodeURIComponent(id)}`, { body, options });
909
+ }
818
910
  /** Delete webhook `DELETE /webhooks/{id}` */
819
911
  delete(id, options) {
820
912
  return this._client.request("DELETE", `/webhooks/${encodeURIComponent(id)}`, { options });
821
913
  }
914
+ /** List webhook delivery logs `GET /webhooks/logs` */
915
+ listLogs(query, options) {
916
+ return this._client.request("GET", "/webhooks/logs", { query, options });
917
+ }
918
+ /** Send test webhook `POST /webhooks/{id}/test` */
919
+ test(id, options) {
920
+ return this._client.request("POST", `/webhooks/${encodeURIComponent(id)}/test`, { options });
921
+ }
822
922
  };
823
923
  var WorkspacesResource = class {
824
924
  constructor(_client) {