@smartlyqofficial/cli 0.1.0 → 0.1.2
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 +31 -1
- package/dist/cli.js +33 -3
- package/dist/index.cjs +33 -3
- package/dist/index.js +33 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -101,6 +101,11 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
101
101
|
| `smartlyq analytics get-overview [--query <query>]` | `GET /analytics/overview` | Get analytics overview |
|
|
102
102
|
| `smartlyq analytics get-posts [--query <query>]` | `GET /analytics/posts` | Get post analytics |
|
|
103
103
|
| `smartlyq analytics get-account <account-id> [--query <query>]` | `GET /analytics/accounts/{account_id}` | Get account analytics |
|
|
104
|
+
| `smartlyq analytics daily-metrics [--query <query>]` | `GET /analytics/daily-metrics` | Daily metrics |
|
|
105
|
+
| `smartlyq analytics best-time [--query <query>]` | `GET /analytics/best-time` | Best time to post |
|
|
106
|
+
| `smartlyq analytics content-decay [--query <query>]` | `GET /analytics/content-decay` | Content decay |
|
|
107
|
+
| `smartlyq analytics posting-frequency [--query <query>]` | `GET /analytics/posting-frequency` | Posting frequency vs engagement |
|
|
108
|
+
| `smartlyq analytics post-timeline <post-id>` | `GET /analytics/posts/{post_id}/timeline` | Post metric timeline |
|
|
104
109
|
|
|
105
110
|
### Articles
|
|
106
111
|
|
|
@@ -286,7 +291,7 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
286
291
|
| `smartlyq social get-post <post-id>` | `GET /social/posts/{post_id}` | Get social post |
|
|
287
292
|
| `smartlyq social update-post <post-id> --data <json>` | `PATCH /social/posts/{post_id}` | Update social post |
|
|
288
293
|
| `smartlyq social delete-post <post-id>` | `DELETE /social/posts/{post_id}` | Delete social post |
|
|
289
|
-
| `smartlyq social
|
|
294
|
+
| `smartlyq social update-account <account-id> --data <json>` | `PATCH /social/accounts/{account_id}` | Rename account |
|
|
290
295
|
| `smartlyq social get-account-health <account-id>` | `GET /social/accounts/{account_id}/health` | Account health |
|
|
291
296
|
| `smartlyq social get-account-reconnect-url <account-id>` | `GET /social/accounts/{account_id}/reconnect-url` | Account reconnect URL |
|
|
292
297
|
| `smartlyq social pause-account <account-id>` | `POST /social/accounts/{account_id}/pause` | Pause posting to an account |
|
|
@@ -294,6 +299,28 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
294
299
|
| `smartlyq social retry-post <post-id> --data <json>` | `POST /social/posts/{post_id}/retry` | Retry publishing a post |
|
|
295
300
|
| `smartlyq social connect-account-status <platform>` | `GET /social/connect/{platform}` | Poll headless connection status |
|
|
296
301
|
| `smartlyq social connect-account <platform> [--data <json>]` | `POST /social/connect/{platform}` | Start headless account connection |
|
|
302
|
+
| `smartlyq social list-queues` | `GET /social/queues` | List queues |
|
|
303
|
+
| `smartlyq social create-queue --data <json>` | `POST /social/queues` | Create queue |
|
|
304
|
+
| `smartlyq social get-queue <queue-id>` | `GET /social/queues/{queue_id}` | Get queue |
|
|
305
|
+
| `smartlyq social update-queue <queue-id> --data <json>` | `PUT /social/queues/{queue_id}` | Update queue |
|
|
306
|
+
| `smartlyq social delete-queue <queue-id>` | `DELETE /social/queues/{queue_id}` | Delete queue |
|
|
307
|
+
| `smartlyq social get-queue-next-slot <queue-id>` | `GET /social/queues/{queue_id}/next-slot` | Get next open slot |
|
|
308
|
+
| `smartlyq social preview-queue-slots <queue-id> [--query <query>]` | `GET /social/queues/{queue_id}/preview` | Preview upcoming slots |
|
|
309
|
+
| `smartlyq social unpublish-post <post-id> [--data <json>]` | `POST /social/posts/{post_id}/unpublish` | Unpublish post |
|
|
310
|
+
| `smartlyq social validate-post --data <json>` | `POST /social/validate/post` | Validate post content |
|
|
311
|
+
| `smartlyq social validate-media --data <json>` | `POST /social/validate/media` | Validate media URL |
|
|
312
|
+
| `smartlyq social stop-post-recycle <post-id>` | `DELETE /social/posts/{post_id}/recycle` | Stop recycling |
|
|
313
|
+
| `smartlyq social bulk-schedule-posts --data <json>` | `POST /social/posts/bulk` | Bulk schedule posts |
|
|
314
|
+
| `smartlyq social validate-bulk-batch --data <json>` | `POST /social/posts/bulk/validate` | Validate a bulk batch |
|
|
315
|
+
| `smartlyq social bulk-account-health` | `GET /social/accounts/health` | Bulk account health |
|
|
316
|
+
| `smartlyq social account-follower-stats [--query <query>]` | `GET /social/accounts/follower-stats` | Follower stats |
|
|
317
|
+
| `smartlyq social tiktok-creator-info <account-id>` | `GET /social/accounts/{account_id}/tiktok/creator-info` | TikTok creator info |
|
|
318
|
+
| `smartlyq social move-account <account-id> --data <json>` | `POST /social/accounts/{account_id}/move` | Move account to profile |
|
|
319
|
+
| `smartlyq social list-account-groups` | `GET /social/account-groups` | List account groups |
|
|
320
|
+
| `smartlyq social create-account-group --data <json>` | `POST /social/account-groups` | Create account group |
|
|
321
|
+
| `smartlyq social get-account-group <group-id>` | `GET /social/account-groups/{group_id}` | Get account group |
|
|
322
|
+
| `smartlyq social update-account-group <group-id> --data <json>` | `PUT /social/account-groups/{group_id}` | Update account group |
|
|
323
|
+
| `smartlyq social delete-account-group <group-id>` | `DELETE /social/account-groups/{group_id}` | Delete account group |
|
|
297
324
|
|
|
298
325
|
### URLs
|
|
299
326
|
|
|
@@ -325,7 +352,10 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
325
352
|
| --- | --- | --- |
|
|
326
353
|
| `smartlyq webhooks list` | `GET /webhooks` | List webhooks |
|
|
327
354
|
| `smartlyq webhooks create --data <json>` | `POST /webhooks` | Create webhook |
|
|
355
|
+
| `smartlyq webhooks update <id> --data <json>` | `PUT /webhooks/{id}` | Update webhook |
|
|
328
356
|
| `smartlyq webhooks delete <id>` | `DELETE /webhooks/{id}` | Delete webhook |
|
|
357
|
+
| `smartlyq webhooks list-logs [--query <query>]` | `GET /webhooks/logs` | List webhook delivery logs |
|
|
358
|
+
| `smartlyq webhooks test <id>` | `POST /webhooks/{id}/test` | Send test webhook |
|
|
329
359
|
|
|
330
360
|
### Workspaces
|
|
331
361
|
|
package/dist/cli.js
CHANGED
|
@@ -15,6 +15,11 @@ var commands = [
|
|
|
15
15
|
{ "resourceKey": "analytics", "methodName": "getOverview", "kebabMethod": "get-overview", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get analytics overview", "httpMethod": "GET", "path": "/analytics/overview" },
|
|
16
16
|
{ "resourceKey": "analytics", "methodName": "getPosts", "kebabMethod": "get-posts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get post analytics", "httpMethod": "GET", "path": "/analytics/posts" },
|
|
17
17
|
{ "resourceKey": "analytics", "methodName": "getAccount", "kebabMethod": "get-account", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get account analytics", "httpMethod": "GET", "path": "/analytics/accounts/{account_id}" },
|
|
18
|
+
{ "resourceKey": "analytics", "methodName": "dailyMetrics", "kebabMethod": "daily-metrics", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Daily metrics", "httpMethod": "GET", "path": "/analytics/daily-metrics" },
|
|
19
|
+
{ "resourceKey": "analytics", "methodName": "bestTime", "kebabMethod": "best-time", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Best time to post", "httpMethod": "GET", "path": "/analytics/best-time" },
|
|
20
|
+
{ "resourceKey": "analytics", "methodName": "contentDecay", "kebabMethod": "content-decay", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Content decay", "httpMethod": "GET", "path": "/analytics/content-decay" },
|
|
21
|
+
{ "resourceKey": "analytics", "methodName": "postingFrequency", "kebabMethod": "posting-frequency", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Posting frequency vs engagement", "httpMethod": "GET", "path": "/analytics/posting-frequency" },
|
|
22
|
+
{ "resourceKey": "analytics", "methodName": "postTimeline", "kebabMethod": "post-timeline", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Post metric timeline", "httpMethod": "GET", "path": "/analytics/posts/{post_id}/timeline" },
|
|
18
23
|
{ "resourceKey": "articles", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate article", "httpMethod": "POST", "path": "/articles/generate" },
|
|
19
24
|
{ "resourceKey": "articles", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List articles", "httpMethod": "GET", "path": "/articles" },
|
|
20
25
|
{ "resourceKey": "articles", "methodName": "get", "kebabMethod": "get", "pathParams": ["articleId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get article", "httpMethod": "GET", "path": "/articles/{article_id}" },
|
|
@@ -115,7 +120,7 @@ var commands = [
|
|
|
115
120
|
{ "resourceKey": "social", "methodName": "getPost", "kebabMethod": "get-post", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get social post", "httpMethod": "GET", "path": "/social/posts/{post_id}" },
|
|
116
121
|
{ "resourceKey": "social", "methodName": "updatePost", "kebabMethod": "update-post", "pathParams": ["postId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update social post", "httpMethod": "PATCH", "path": "/social/posts/{post_id}" },
|
|
117
122
|
{ "resourceKey": "social", "methodName": "deletePost", "kebabMethod": "delete-post", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete social post", "httpMethod": "DELETE", "path": "/social/posts/{post_id}" },
|
|
118
|
-
{ "resourceKey": "social", "methodName": "
|
|
123
|
+
{ "resourceKey": "social", "methodName": "updateAccount", "kebabMethod": "update-account", "pathParams": ["accountId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Rename account", "httpMethod": "PATCH", "path": "/social/accounts/{account_id}" },
|
|
119
124
|
{ "resourceKey": "social", "methodName": "getAccountHealth", "kebabMethod": "get-account-health", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Account health", "httpMethod": "GET", "path": "/social/accounts/{account_id}/health" },
|
|
120
125
|
{ "resourceKey": "social", "methodName": "getAccountReconnectUrl", "kebabMethod": "get-account-reconnect-url", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Account reconnect URL", "httpMethod": "GET", "path": "/social/accounts/{account_id}/reconnect-url" },
|
|
121
126
|
{ "resourceKey": "social", "methodName": "pauseAccount", "kebabMethod": "pause-account", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause posting to an account", "httpMethod": "POST", "path": "/social/accounts/{account_id}/pause" },
|
|
@@ -123,6 +128,28 @@ var commands = [
|
|
|
123
128
|
{ "resourceKey": "social", "methodName": "retryPost", "kebabMethod": "retry-post", "pathParams": ["postId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Retry publishing a post", "httpMethod": "POST", "path": "/social/posts/{post_id}/retry" },
|
|
124
129
|
{ "resourceKey": "social", "methodName": "connectAccountStatus", "kebabMethod": "connect-account-status", "pathParams": ["platform"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Poll headless connection status", "httpMethod": "GET", "path": "/social/connect/{platform}" },
|
|
125
130
|
{ "resourceKey": "social", "methodName": "connectAccount", "kebabMethod": "connect-account", "pathParams": ["platform"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Start headless account connection", "httpMethod": "POST", "path": "/social/connect/{platform}" },
|
|
131
|
+
{ "resourceKey": "social", "methodName": "listQueues", "kebabMethod": "list-queues", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List queues", "httpMethod": "GET", "path": "/social/queues" },
|
|
132
|
+
{ "resourceKey": "social", "methodName": "createQueue", "kebabMethod": "create-queue", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create queue", "httpMethod": "POST", "path": "/social/queues" },
|
|
133
|
+
{ "resourceKey": "social", "methodName": "getQueue", "kebabMethod": "get-queue", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get queue", "httpMethod": "GET", "path": "/social/queues/{queue_id}" },
|
|
134
|
+
{ "resourceKey": "social", "methodName": "updateQueue", "kebabMethod": "update-queue", "pathParams": ["queueId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update queue", "httpMethod": "PUT", "path": "/social/queues/{queue_id}" },
|
|
135
|
+
{ "resourceKey": "social", "methodName": "deleteQueue", "kebabMethod": "delete-queue", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete queue", "httpMethod": "DELETE", "path": "/social/queues/{queue_id}" },
|
|
136
|
+
{ "resourceKey": "social", "methodName": "getQueueNextSlot", "kebabMethod": "get-queue-next-slot", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get next open slot", "httpMethod": "GET", "path": "/social/queues/{queue_id}/next-slot" },
|
|
137
|
+
{ "resourceKey": "social", "methodName": "previewQueueSlots", "kebabMethod": "preview-queue-slots", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Preview upcoming slots", "httpMethod": "GET", "path": "/social/queues/{queue_id}/preview" },
|
|
138
|
+
{ "resourceKey": "social", "methodName": "unpublishPost", "kebabMethod": "unpublish-post", "pathParams": ["postId"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Unpublish post", "httpMethod": "POST", "path": "/social/posts/{post_id}/unpublish" },
|
|
139
|
+
{ "resourceKey": "social", "methodName": "validatePost", "kebabMethod": "validate-post", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Validate post content", "httpMethod": "POST", "path": "/social/validate/post" },
|
|
140
|
+
{ "resourceKey": "social", "methodName": "validateMedia", "kebabMethod": "validate-media", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Validate media URL", "httpMethod": "POST", "path": "/social/validate/media" },
|
|
141
|
+
{ "resourceKey": "social", "methodName": "stopPostRecycle", "kebabMethod": "stop-post-recycle", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Stop recycling", "httpMethod": "DELETE", "path": "/social/posts/{post_id}/recycle" },
|
|
142
|
+
{ "resourceKey": "social", "methodName": "bulkSchedulePosts", "kebabMethod": "bulk-schedule-posts", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk schedule posts", "httpMethod": "POST", "path": "/social/posts/bulk" },
|
|
143
|
+
{ "resourceKey": "social", "methodName": "validateBulkBatch", "kebabMethod": "validate-bulk-batch", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Validate a bulk batch", "httpMethod": "POST", "path": "/social/posts/bulk/validate" },
|
|
144
|
+
{ "resourceKey": "social", "methodName": "bulkAccountHealth", "kebabMethod": "bulk-account-health", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Bulk account health", "httpMethod": "GET", "path": "/social/accounts/health" },
|
|
145
|
+
{ "resourceKey": "social", "methodName": "accountFollowerStats", "kebabMethod": "account-follower-stats", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Follower stats", "httpMethod": "GET", "path": "/social/accounts/follower-stats" },
|
|
146
|
+
{ "resourceKey": "social", "methodName": "tiktokCreatorInfo", "kebabMethod": "tiktok-creator-info", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "TikTok creator info", "httpMethod": "GET", "path": "/social/accounts/{account_id}/tiktok/creator-info" },
|
|
147
|
+
{ "resourceKey": "social", "methodName": "moveAccount", "kebabMethod": "move-account", "pathParams": ["accountId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Move account to profile", "httpMethod": "POST", "path": "/social/accounts/{account_id}/move" },
|
|
148
|
+
{ "resourceKey": "social", "methodName": "listAccountGroups", "kebabMethod": "list-account-groups", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List account groups", "httpMethod": "GET", "path": "/social/account-groups" },
|
|
149
|
+
{ "resourceKey": "social", "methodName": "createAccountGroup", "kebabMethod": "create-account-group", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create account group", "httpMethod": "POST", "path": "/social/account-groups" },
|
|
150
|
+
{ "resourceKey": "social", "methodName": "getAccountGroup", "kebabMethod": "get-account-group", "pathParams": ["groupId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get account group", "httpMethod": "GET", "path": "/social/account-groups/{group_id}" },
|
|
151
|
+
{ "resourceKey": "social", "methodName": "updateAccountGroup", "kebabMethod": "update-account-group", "pathParams": ["groupId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update account group", "httpMethod": "PUT", "path": "/social/account-groups/{group_id}" },
|
|
152
|
+
{ "resourceKey": "social", "methodName": "deleteAccountGroup", "kebabMethod": "delete-account-group", "pathParams": ["groupId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete account group", "httpMethod": "DELETE", "path": "/social/account-groups/{group_id}" },
|
|
126
153
|
{ "resourceKey": "urls", "methodName": "shorten", "kebabMethod": "shorten", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Shorten URL", "httpMethod": "POST", "path": "/urls/shorten" },
|
|
127
154
|
{ "resourceKey": "urls", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List short URLs", "httpMethod": "GET", "path": "/urls" },
|
|
128
155
|
{ "resourceKey": "urls", "methodName": "get", "kebabMethod": "get", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get short URL", "httpMethod": "GET", "path": "/urls/{url_id}" },
|
|
@@ -139,7 +166,10 @@ var commands = [
|
|
|
139
166
|
{ "resourceKey": "videos", "methodName": "generateViralThumbnail", "kebabMethod": "generate-viral-thumbnail", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate a viral thumbnail", "httpMethod": "POST", "path": "/videos/viral-thumbnail" },
|
|
140
167
|
{ "resourceKey": "webhooks", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List webhooks", "httpMethod": "GET", "path": "/webhooks" },
|
|
141
168
|
{ "resourceKey": "webhooks", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create webhook", "httpMethod": "POST", "path": "/webhooks" },
|
|
169
|
+
{ "resourceKey": "webhooks", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update webhook", "httpMethod": "PUT", "path": "/webhooks/{id}" },
|
|
142
170
|
{ "resourceKey": "webhooks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete webhook", "httpMethod": "DELETE", "path": "/webhooks/{id}" },
|
|
171
|
+
{ "resourceKey": "webhooks", "methodName": "listLogs", "kebabMethod": "list-logs", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List webhook delivery logs", "httpMethod": "GET", "path": "/webhooks/logs" },
|
|
172
|
+
{ "resourceKey": "webhooks", "methodName": "test", "kebabMethod": "test", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Send test webhook", "httpMethod": "POST", "path": "/webhooks/{id}/test" },
|
|
143
173
|
{ "resourceKey": "workspaces", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List workspaces (sub-accounts)", "httpMethod": "GET", "path": "/workspaces" },
|
|
144
174
|
{ "resourceKey": "workspaces", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a workspace (sub-account)", "httpMethod": "POST", "path": "/workspaces" },
|
|
145
175
|
{ "resourceKey": "workspaces", "methodName": "bulkAction", "kebabMethod": "bulk-action", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk sub-account action", "httpMethod": "POST", "path": "/workspaces/bulk" },
|
|
@@ -318,7 +348,7 @@ function runLogout() {
|
|
|
318
348
|
// package.json
|
|
319
349
|
var package_default = {
|
|
320
350
|
name: "@smartlyqofficial/cli",
|
|
321
|
-
version: "0.1.
|
|
351
|
+
version: "0.1.2",
|
|
322
352
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
323
353
|
keywords: [
|
|
324
354
|
"smartlyq",
|
|
@@ -368,7 +398,7 @@ var package_default = {
|
|
|
368
398
|
prepublishOnly: "npm run build"
|
|
369
399
|
},
|
|
370
400
|
dependencies: {
|
|
371
|
-
"@smartlyqofficial/node": "^0.1.
|
|
401
|
+
"@smartlyqofficial/node": "^0.1.4",
|
|
372
402
|
commander: "^12.1.0"
|
|
373
403
|
},
|
|
374
404
|
devDependencies: {
|
package/dist/index.cjs
CHANGED
|
@@ -65,6 +65,11 @@ var commands = [
|
|
|
65
65
|
{ "resourceKey": "analytics", "methodName": "getOverview", "kebabMethod": "get-overview", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get analytics overview", "httpMethod": "GET", "path": "/analytics/overview" },
|
|
66
66
|
{ "resourceKey": "analytics", "methodName": "getPosts", "kebabMethod": "get-posts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get post analytics", "httpMethod": "GET", "path": "/analytics/posts" },
|
|
67
67
|
{ "resourceKey": "analytics", "methodName": "getAccount", "kebabMethod": "get-account", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get account analytics", "httpMethod": "GET", "path": "/analytics/accounts/{account_id}" },
|
|
68
|
+
{ "resourceKey": "analytics", "methodName": "dailyMetrics", "kebabMethod": "daily-metrics", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Daily metrics", "httpMethod": "GET", "path": "/analytics/daily-metrics" },
|
|
69
|
+
{ "resourceKey": "analytics", "methodName": "bestTime", "kebabMethod": "best-time", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Best time to post", "httpMethod": "GET", "path": "/analytics/best-time" },
|
|
70
|
+
{ "resourceKey": "analytics", "methodName": "contentDecay", "kebabMethod": "content-decay", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Content decay", "httpMethod": "GET", "path": "/analytics/content-decay" },
|
|
71
|
+
{ "resourceKey": "analytics", "methodName": "postingFrequency", "kebabMethod": "posting-frequency", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Posting frequency vs engagement", "httpMethod": "GET", "path": "/analytics/posting-frequency" },
|
|
72
|
+
{ "resourceKey": "analytics", "methodName": "postTimeline", "kebabMethod": "post-timeline", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Post metric timeline", "httpMethod": "GET", "path": "/analytics/posts/{post_id}/timeline" },
|
|
68
73
|
{ "resourceKey": "articles", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate article", "httpMethod": "POST", "path": "/articles/generate" },
|
|
69
74
|
{ "resourceKey": "articles", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List articles", "httpMethod": "GET", "path": "/articles" },
|
|
70
75
|
{ "resourceKey": "articles", "methodName": "get", "kebabMethod": "get", "pathParams": ["articleId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get article", "httpMethod": "GET", "path": "/articles/{article_id}" },
|
|
@@ -165,7 +170,7 @@ var commands = [
|
|
|
165
170
|
{ "resourceKey": "social", "methodName": "getPost", "kebabMethod": "get-post", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get social post", "httpMethod": "GET", "path": "/social/posts/{post_id}" },
|
|
166
171
|
{ "resourceKey": "social", "methodName": "updatePost", "kebabMethod": "update-post", "pathParams": ["postId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update social post", "httpMethod": "PATCH", "path": "/social/posts/{post_id}" },
|
|
167
172
|
{ "resourceKey": "social", "methodName": "deletePost", "kebabMethod": "delete-post", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete social post", "httpMethod": "DELETE", "path": "/social/posts/{post_id}" },
|
|
168
|
-
{ "resourceKey": "social", "methodName": "
|
|
173
|
+
{ "resourceKey": "social", "methodName": "updateAccount", "kebabMethod": "update-account", "pathParams": ["accountId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Rename account", "httpMethod": "PATCH", "path": "/social/accounts/{account_id}" },
|
|
169
174
|
{ "resourceKey": "social", "methodName": "getAccountHealth", "kebabMethod": "get-account-health", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Account health", "httpMethod": "GET", "path": "/social/accounts/{account_id}/health" },
|
|
170
175
|
{ "resourceKey": "social", "methodName": "getAccountReconnectUrl", "kebabMethod": "get-account-reconnect-url", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Account reconnect URL", "httpMethod": "GET", "path": "/social/accounts/{account_id}/reconnect-url" },
|
|
171
176
|
{ "resourceKey": "social", "methodName": "pauseAccount", "kebabMethod": "pause-account", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause posting to an account", "httpMethod": "POST", "path": "/social/accounts/{account_id}/pause" },
|
|
@@ -173,6 +178,28 @@ var commands = [
|
|
|
173
178
|
{ "resourceKey": "social", "methodName": "retryPost", "kebabMethod": "retry-post", "pathParams": ["postId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Retry publishing a post", "httpMethod": "POST", "path": "/social/posts/{post_id}/retry" },
|
|
174
179
|
{ "resourceKey": "social", "methodName": "connectAccountStatus", "kebabMethod": "connect-account-status", "pathParams": ["platform"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Poll headless connection status", "httpMethod": "GET", "path": "/social/connect/{platform}" },
|
|
175
180
|
{ "resourceKey": "social", "methodName": "connectAccount", "kebabMethod": "connect-account", "pathParams": ["platform"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Start headless account connection", "httpMethod": "POST", "path": "/social/connect/{platform}" },
|
|
181
|
+
{ "resourceKey": "social", "methodName": "listQueues", "kebabMethod": "list-queues", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List queues", "httpMethod": "GET", "path": "/social/queues" },
|
|
182
|
+
{ "resourceKey": "social", "methodName": "createQueue", "kebabMethod": "create-queue", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create queue", "httpMethod": "POST", "path": "/social/queues" },
|
|
183
|
+
{ "resourceKey": "social", "methodName": "getQueue", "kebabMethod": "get-queue", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get queue", "httpMethod": "GET", "path": "/social/queues/{queue_id}" },
|
|
184
|
+
{ "resourceKey": "social", "methodName": "updateQueue", "kebabMethod": "update-queue", "pathParams": ["queueId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update queue", "httpMethod": "PUT", "path": "/social/queues/{queue_id}" },
|
|
185
|
+
{ "resourceKey": "social", "methodName": "deleteQueue", "kebabMethod": "delete-queue", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete queue", "httpMethod": "DELETE", "path": "/social/queues/{queue_id}" },
|
|
186
|
+
{ "resourceKey": "social", "methodName": "getQueueNextSlot", "kebabMethod": "get-queue-next-slot", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get next open slot", "httpMethod": "GET", "path": "/social/queues/{queue_id}/next-slot" },
|
|
187
|
+
{ "resourceKey": "social", "methodName": "previewQueueSlots", "kebabMethod": "preview-queue-slots", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Preview upcoming slots", "httpMethod": "GET", "path": "/social/queues/{queue_id}/preview" },
|
|
188
|
+
{ "resourceKey": "social", "methodName": "unpublishPost", "kebabMethod": "unpublish-post", "pathParams": ["postId"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Unpublish post", "httpMethod": "POST", "path": "/social/posts/{post_id}/unpublish" },
|
|
189
|
+
{ "resourceKey": "social", "methodName": "validatePost", "kebabMethod": "validate-post", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Validate post content", "httpMethod": "POST", "path": "/social/validate/post" },
|
|
190
|
+
{ "resourceKey": "social", "methodName": "validateMedia", "kebabMethod": "validate-media", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Validate media URL", "httpMethod": "POST", "path": "/social/validate/media" },
|
|
191
|
+
{ "resourceKey": "social", "methodName": "stopPostRecycle", "kebabMethod": "stop-post-recycle", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Stop recycling", "httpMethod": "DELETE", "path": "/social/posts/{post_id}/recycle" },
|
|
192
|
+
{ "resourceKey": "social", "methodName": "bulkSchedulePosts", "kebabMethod": "bulk-schedule-posts", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk schedule posts", "httpMethod": "POST", "path": "/social/posts/bulk" },
|
|
193
|
+
{ "resourceKey": "social", "methodName": "validateBulkBatch", "kebabMethod": "validate-bulk-batch", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Validate a bulk batch", "httpMethod": "POST", "path": "/social/posts/bulk/validate" },
|
|
194
|
+
{ "resourceKey": "social", "methodName": "bulkAccountHealth", "kebabMethod": "bulk-account-health", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Bulk account health", "httpMethod": "GET", "path": "/social/accounts/health" },
|
|
195
|
+
{ "resourceKey": "social", "methodName": "accountFollowerStats", "kebabMethod": "account-follower-stats", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Follower stats", "httpMethod": "GET", "path": "/social/accounts/follower-stats" },
|
|
196
|
+
{ "resourceKey": "social", "methodName": "tiktokCreatorInfo", "kebabMethod": "tiktok-creator-info", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "TikTok creator info", "httpMethod": "GET", "path": "/social/accounts/{account_id}/tiktok/creator-info" },
|
|
197
|
+
{ "resourceKey": "social", "methodName": "moveAccount", "kebabMethod": "move-account", "pathParams": ["accountId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Move account to profile", "httpMethod": "POST", "path": "/social/accounts/{account_id}/move" },
|
|
198
|
+
{ "resourceKey": "social", "methodName": "listAccountGroups", "kebabMethod": "list-account-groups", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List account groups", "httpMethod": "GET", "path": "/social/account-groups" },
|
|
199
|
+
{ "resourceKey": "social", "methodName": "createAccountGroup", "kebabMethod": "create-account-group", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create account group", "httpMethod": "POST", "path": "/social/account-groups" },
|
|
200
|
+
{ "resourceKey": "social", "methodName": "getAccountGroup", "kebabMethod": "get-account-group", "pathParams": ["groupId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get account group", "httpMethod": "GET", "path": "/social/account-groups/{group_id}" },
|
|
201
|
+
{ "resourceKey": "social", "methodName": "updateAccountGroup", "kebabMethod": "update-account-group", "pathParams": ["groupId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update account group", "httpMethod": "PUT", "path": "/social/account-groups/{group_id}" },
|
|
202
|
+
{ "resourceKey": "social", "methodName": "deleteAccountGroup", "kebabMethod": "delete-account-group", "pathParams": ["groupId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete account group", "httpMethod": "DELETE", "path": "/social/account-groups/{group_id}" },
|
|
176
203
|
{ "resourceKey": "urls", "methodName": "shorten", "kebabMethod": "shorten", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Shorten URL", "httpMethod": "POST", "path": "/urls/shorten" },
|
|
177
204
|
{ "resourceKey": "urls", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List short URLs", "httpMethod": "GET", "path": "/urls" },
|
|
178
205
|
{ "resourceKey": "urls", "methodName": "get", "kebabMethod": "get", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get short URL", "httpMethod": "GET", "path": "/urls/{url_id}" },
|
|
@@ -189,7 +216,10 @@ var commands = [
|
|
|
189
216
|
{ "resourceKey": "videos", "methodName": "generateViralThumbnail", "kebabMethod": "generate-viral-thumbnail", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate a viral thumbnail", "httpMethod": "POST", "path": "/videos/viral-thumbnail" },
|
|
190
217
|
{ "resourceKey": "webhooks", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List webhooks", "httpMethod": "GET", "path": "/webhooks" },
|
|
191
218
|
{ "resourceKey": "webhooks", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create webhook", "httpMethod": "POST", "path": "/webhooks" },
|
|
219
|
+
{ "resourceKey": "webhooks", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update webhook", "httpMethod": "PUT", "path": "/webhooks/{id}" },
|
|
192
220
|
{ "resourceKey": "webhooks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete webhook", "httpMethod": "DELETE", "path": "/webhooks/{id}" },
|
|
221
|
+
{ "resourceKey": "webhooks", "methodName": "listLogs", "kebabMethod": "list-logs", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List webhook delivery logs", "httpMethod": "GET", "path": "/webhooks/logs" },
|
|
222
|
+
{ "resourceKey": "webhooks", "methodName": "test", "kebabMethod": "test", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Send test webhook", "httpMethod": "POST", "path": "/webhooks/{id}/test" },
|
|
193
223
|
{ "resourceKey": "workspaces", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List workspaces (sub-accounts)", "httpMethod": "GET", "path": "/workspaces" },
|
|
194
224
|
{ "resourceKey": "workspaces", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a workspace (sub-account)", "httpMethod": "POST", "path": "/workspaces" },
|
|
195
225
|
{ "resourceKey": "workspaces", "methodName": "bulkAction", "kebabMethod": "bulk-action", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk sub-account action", "httpMethod": "POST", "path": "/workspaces/bulk" },
|
|
@@ -368,7 +398,7 @@ function runLogout() {
|
|
|
368
398
|
// package.json
|
|
369
399
|
var package_default = {
|
|
370
400
|
name: "@smartlyqofficial/cli",
|
|
371
|
-
version: "0.1.
|
|
401
|
+
version: "0.1.2",
|
|
372
402
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
373
403
|
keywords: [
|
|
374
404
|
"smartlyq",
|
|
@@ -418,7 +448,7 @@ var package_default = {
|
|
|
418
448
|
prepublishOnly: "npm run build"
|
|
419
449
|
},
|
|
420
450
|
dependencies: {
|
|
421
|
-
"@smartlyqofficial/node": "^0.1.
|
|
451
|
+
"@smartlyqofficial/node": "^0.1.4",
|
|
422
452
|
commander: "^12.1.0"
|
|
423
453
|
},
|
|
424
454
|
devDependencies: {
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,11 @@ var commands = [
|
|
|
13
13
|
{ "resourceKey": "analytics", "methodName": "getOverview", "kebabMethod": "get-overview", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get analytics overview", "httpMethod": "GET", "path": "/analytics/overview" },
|
|
14
14
|
{ "resourceKey": "analytics", "methodName": "getPosts", "kebabMethod": "get-posts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get post analytics", "httpMethod": "GET", "path": "/analytics/posts" },
|
|
15
15
|
{ "resourceKey": "analytics", "methodName": "getAccount", "kebabMethod": "get-account", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get account analytics", "httpMethod": "GET", "path": "/analytics/accounts/{account_id}" },
|
|
16
|
+
{ "resourceKey": "analytics", "methodName": "dailyMetrics", "kebabMethod": "daily-metrics", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Daily metrics", "httpMethod": "GET", "path": "/analytics/daily-metrics" },
|
|
17
|
+
{ "resourceKey": "analytics", "methodName": "bestTime", "kebabMethod": "best-time", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Best time to post", "httpMethod": "GET", "path": "/analytics/best-time" },
|
|
18
|
+
{ "resourceKey": "analytics", "methodName": "contentDecay", "kebabMethod": "content-decay", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Content decay", "httpMethod": "GET", "path": "/analytics/content-decay" },
|
|
19
|
+
{ "resourceKey": "analytics", "methodName": "postingFrequency", "kebabMethod": "posting-frequency", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Posting frequency vs engagement", "httpMethod": "GET", "path": "/analytics/posting-frequency" },
|
|
20
|
+
{ "resourceKey": "analytics", "methodName": "postTimeline", "kebabMethod": "post-timeline", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Post metric timeline", "httpMethod": "GET", "path": "/analytics/posts/{post_id}/timeline" },
|
|
16
21
|
{ "resourceKey": "articles", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate article", "httpMethod": "POST", "path": "/articles/generate" },
|
|
17
22
|
{ "resourceKey": "articles", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List articles", "httpMethod": "GET", "path": "/articles" },
|
|
18
23
|
{ "resourceKey": "articles", "methodName": "get", "kebabMethod": "get", "pathParams": ["articleId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get article", "httpMethod": "GET", "path": "/articles/{article_id}" },
|
|
@@ -113,7 +118,7 @@ var commands = [
|
|
|
113
118
|
{ "resourceKey": "social", "methodName": "getPost", "kebabMethod": "get-post", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get social post", "httpMethod": "GET", "path": "/social/posts/{post_id}" },
|
|
114
119
|
{ "resourceKey": "social", "methodName": "updatePost", "kebabMethod": "update-post", "pathParams": ["postId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update social post", "httpMethod": "PATCH", "path": "/social/posts/{post_id}" },
|
|
115
120
|
{ "resourceKey": "social", "methodName": "deletePost", "kebabMethod": "delete-post", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete social post", "httpMethod": "DELETE", "path": "/social/posts/{post_id}" },
|
|
116
|
-
{ "resourceKey": "social", "methodName": "
|
|
121
|
+
{ "resourceKey": "social", "methodName": "updateAccount", "kebabMethod": "update-account", "pathParams": ["accountId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Rename account", "httpMethod": "PATCH", "path": "/social/accounts/{account_id}" },
|
|
117
122
|
{ "resourceKey": "social", "methodName": "getAccountHealth", "kebabMethod": "get-account-health", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Account health", "httpMethod": "GET", "path": "/social/accounts/{account_id}/health" },
|
|
118
123
|
{ "resourceKey": "social", "methodName": "getAccountReconnectUrl", "kebabMethod": "get-account-reconnect-url", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Account reconnect URL", "httpMethod": "GET", "path": "/social/accounts/{account_id}/reconnect-url" },
|
|
119
124
|
{ "resourceKey": "social", "methodName": "pauseAccount", "kebabMethod": "pause-account", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause posting to an account", "httpMethod": "POST", "path": "/social/accounts/{account_id}/pause" },
|
|
@@ -121,6 +126,28 @@ var commands = [
|
|
|
121
126
|
{ "resourceKey": "social", "methodName": "retryPost", "kebabMethod": "retry-post", "pathParams": ["postId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Retry publishing a post", "httpMethod": "POST", "path": "/social/posts/{post_id}/retry" },
|
|
122
127
|
{ "resourceKey": "social", "methodName": "connectAccountStatus", "kebabMethod": "connect-account-status", "pathParams": ["platform"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Poll headless connection status", "httpMethod": "GET", "path": "/social/connect/{platform}" },
|
|
123
128
|
{ "resourceKey": "social", "methodName": "connectAccount", "kebabMethod": "connect-account", "pathParams": ["platform"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Start headless account connection", "httpMethod": "POST", "path": "/social/connect/{platform}" },
|
|
129
|
+
{ "resourceKey": "social", "methodName": "listQueues", "kebabMethod": "list-queues", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List queues", "httpMethod": "GET", "path": "/social/queues" },
|
|
130
|
+
{ "resourceKey": "social", "methodName": "createQueue", "kebabMethod": "create-queue", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create queue", "httpMethod": "POST", "path": "/social/queues" },
|
|
131
|
+
{ "resourceKey": "social", "methodName": "getQueue", "kebabMethod": "get-queue", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get queue", "httpMethod": "GET", "path": "/social/queues/{queue_id}" },
|
|
132
|
+
{ "resourceKey": "social", "methodName": "updateQueue", "kebabMethod": "update-queue", "pathParams": ["queueId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update queue", "httpMethod": "PUT", "path": "/social/queues/{queue_id}" },
|
|
133
|
+
{ "resourceKey": "social", "methodName": "deleteQueue", "kebabMethod": "delete-queue", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete queue", "httpMethod": "DELETE", "path": "/social/queues/{queue_id}" },
|
|
134
|
+
{ "resourceKey": "social", "methodName": "getQueueNextSlot", "kebabMethod": "get-queue-next-slot", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get next open slot", "httpMethod": "GET", "path": "/social/queues/{queue_id}/next-slot" },
|
|
135
|
+
{ "resourceKey": "social", "methodName": "previewQueueSlots", "kebabMethod": "preview-queue-slots", "pathParams": ["queueId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Preview upcoming slots", "httpMethod": "GET", "path": "/social/queues/{queue_id}/preview" },
|
|
136
|
+
{ "resourceKey": "social", "methodName": "unpublishPost", "kebabMethod": "unpublish-post", "pathParams": ["postId"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Unpublish post", "httpMethod": "POST", "path": "/social/posts/{post_id}/unpublish" },
|
|
137
|
+
{ "resourceKey": "social", "methodName": "validatePost", "kebabMethod": "validate-post", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Validate post content", "httpMethod": "POST", "path": "/social/validate/post" },
|
|
138
|
+
{ "resourceKey": "social", "methodName": "validateMedia", "kebabMethod": "validate-media", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Validate media URL", "httpMethod": "POST", "path": "/social/validate/media" },
|
|
139
|
+
{ "resourceKey": "social", "methodName": "stopPostRecycle", "kebabMethod": "stop-post-recycle", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Stop recycling", "httpMethod": "DELETE", "path": "/social/posts/{post_id}/recycle" },
|
|
140
|
+
{ "resourceKey": "social", "methodName": "bulkSchedulePosts", "kebabMethod": "bulk-schedule-posts", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk schedule posts", "httpMethod": "POST", "path": "/social/posts/bulk" },
|
|
141
|
+
{ "resourceKey": "social", "methodName": "validateBulkBatch", "kebabMethod": "validate-bulk-batch", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Validate a bulk batch", "httpMethod": "POST", "path": "/social/posts/bulk/validate" },
|
|
142
|
+
{ "resourceKey": "social", "methodName": "bulkAccountHealth", "kebabMethod": "bulk-account-health", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Bulk account health", "httpMethod": "GET", "path": "/social/accounts/health" },
|
|
143
|
+
{ "resourceKey": "social", "methodName": "accountFollowerStats", "kebabMethod": "account-follower-stats", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Follower stats", "httpMethod": "GET", "path": "/social/accounts/follower-stats" },
|
|
144
|
+
{ "resourceKey": "social", "methodName": "tiktokCreatorInfo", "kebabMethod": "tiktok-creator-info", "pathParams": ["accountId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "TikTok creator info", "httpMethod": "GET", "path": "/social/accounts/{account_id}/tiktok/creator-info" },
|
|
145
|
+
{ "resourceKey": "social", "methodName": "moveAccount", "kebabMethod": "move-account", "pathParams": ["accountId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Move account to profile", "httpMethod": "POST", "path": "/social/accounts/{account_id}/move" },
|
|
146
|
+
{ "resourceKey": "social", "methodName": "listAccountGroups", "kebabMethod": "list-account-groups", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List account groups", "httpMethod": "GET", "path": "/social/account-groups" },
|
|
147
|
+
{ "resourceKey": "social", "methodName": "createAccountGroup", "kebabMethod": "create-account-group", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create account group", "httpMethod": "POST", "path": "/social/account-groups" },
|
|
148
|
+
{ "resourceKey": "social", "methodName": "getAccountGroup", "kebabMethod": "get-account-group", "pathParams": ["groupId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get account group", "httpMethod": "GET", "path": "/social/account-groups/{group_id}" },
|
|
149
|
+
{ "resourceKey": "social", "methodName": "updateAccountGroup", "kebabMethod": "update-account-group", "pathParams": ["groupId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update account group", "httpMethod": "PUT", "path": "/social/account-groups/{group_id}" },
|
|
150
|
+
{ "resourceKey": "social", "methodName": "deleteAccountGroup", "kebabMethod": "delete-account-group", "pathParams": ["groupId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete account group", "httpMethod": "DELETE", "path": "/social/account-groups/{group_id}" },
|
|
124
151
|
{ "resourceKey": "urls", "methodName": "shorten", "kebabMethod": "shorten", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Shorten URL", "httpMethod": "POST", "path": "/urls/shorten" },
|
|
125
152
|
{ "resourceKey": "urls", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List short URLs", "httpMethod": "GET", "path": "/urls" },
|
|
126
153
|
{ "resourceKey": "urls", "methodName": "get", "kebabMethod": "get", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get short URL", "httpMethod": "GET", "path": "/urls/{url_id}" },
|
|
@@ -137,7 +164,10 @@ var commands = [
|
|
|
137
164
|
{ "resourceKey": "videos", "methodName": "generateViralThumbnail", "kebabMethod": "generate-viral-thumbnail", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate a viral thumbnail", "httpMethod": "POST", "path": "/videos/viral-thumbnail" },
|
|
138
165
|
{ "resourceKey": "webhooks", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List webhooks", "httpMethod": "GET", "path": "/webhooks" },
|
|
139
166
|
{ "resourceKey": "webhooks", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create webhook", "httpMethod": "POST", "path": "/webhooks" },
|
|
167
|
+
{ "resourceKey": "webhooks", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update webhook", "httpMethod": "PUT", "path": "/webhooks/{id}" },
|
|
140
168
|
{ "resourceKey": "webhooks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete webhook", "httpMethod": "DELETE", "path": "/webhooks/{id}" },
|
|
169
|
+
{ "resourceKey": "webhooks", "methodName": "listLogs", "kebabMethod": "list-logs", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List webhook delivery logs", "httpMethod": "GET", "path": "/webhooks/logs" },
|
|
170
|
+
{ "resourceKey": "webhooks", "methodName": "test", "kebabMethod": "test", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Send test webhook", "httpMethod": "POST", "path": "/webhooks/{id}/test" },
|
|
141
171
|
{ "resourceKey": "workspaces", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List workspaces (sub-accounts)", "httpMethod": "GET", "path": "/workspaces" },
|
|
142
172
|
{ "resourceKey": "workspaces", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a workspace (sub-account)", "httpMethod": "POST", "path": "/workspaces" },
|
|
143
173
|
{ "resourceKey": "workspaces", "methodName": "bulkAction", "kebabMethod": "bulk-action", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk sub-account action", "httpMethod": "POST", "path": "/workspaces/bulk" },
|
|
@@ -316,7 +346,7 @@ function runLogout() {
|
|
|
316
346
|
// package.json
|
|
317
347
|
var package_default = {
|
|
318
348
|
name: "@smartlyqofficial/cli",
|
|
319
|
-
version: "0.1.
|
|
349
|
+
version: "0.1.2",
|
|
320
350
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
321
351
|
keywords: [
|
|
322
352
|
"smartlyq",
|
|
@@ -366,7 +396,7 @@ var package_default = {
|
|
|
366
396
|
prepublishOnly: "npm run build"
|
|
367
397
|
},
|
|
368
398
|
dependencies: {
|
|
369
|
-
"@smartlyqofficial/node": "^0.1.
|
|
399
|
+
"@smartlyqofficial/node": "^0.1.4",
|
|
370
400
|
commander: "^12.1.0"
|
|
371
401
|
},
|
|
372
402
|
devDependencies: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartlyqofficial/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"smartlyq",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"prepublishOnly": "npm run build"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@smartlyqofficial/node": "^0.1.
|
|
53
|
+
"@smartlyqofficial/node": "^0.1.4",
|
|
54
54
|
"commander": "^12.1.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|