@smartlyqofficial/cli 0.1.16 → 0.1.17
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 +20 -0
- package/dist/cli.js +17 -2
- package/dist/index.cjs +17 -2
- package/dist/index.js +17 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -114,6 +114,10 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
114
114
|
| `smartlyq analytics inbox-top-accounts [--query <query>]` | `GET /analytics/inbox/top-accounts` | Inbox top accounts |
|
|
115
115
|
| `smartlyq analytics inbox-conversations [--query <query>]` | `GET /analytics/inbox/conversations` | Inbox conversation stats |
|
|
116
116
|
| `smartlyq analytics inbox-conversation-detail <conversation-id>` | `GET /analytics/inbox/conversations/{conversation_id}` | Conversation analytics |
|
|
117
|
+
| `smartlyq analytics get-youtube-channel-insights [--query <query>]` | `GET /analytics/youtube/channel-insights` | YouTube channel insights |
|
|
118
|
+
| `smartlyq analytics get-youtube-daily-views [--query <query>]` | `GET /analytics/youtube/daily-views` | YouTube daily views |
|
|
119
|
+
| `smartlyq analytics get-youtube-video-retention [--query <query>]` | `GET /analytics/youtube/video-retention` | YouTube audience retention |
|
|
120
|
+
| `smartlyq analytics get-youtube-demographics [--query <query>]` | `GET /analytics/youtube/demographics` | YouTube viewer demographics |
|
|
117
121
|
|
|
118
122
|
### Articles
|
|
119
123
|
|
|
@@ -231,6 +235,8 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
231
235
|
| `smartlyq messages list <conversation-id> [--query <query>]` | `GET /social/conversations/{conversation_id}/messages` | List messages in a conversation |
|
|
232
236
|
| `smartlyq messages send <conversation-id> --data <json>` | `POST /social/conversations/{conversation_id}/messages` | Send a direct message |
|
|
233
237
|
| `smartlyq messages mark-conversation-read <conversation-id>` | `POST /social/conversations/{conversation_id}/read` | Mark a conversation read |
|
|
238
|
+
| `smartlyq messages react-to <conversation-id> <message-id> --data <json>` | `POST /social/conversations/{conversation_id}/messages/{message_id}/reactions` | React to a message |
|
|
239
|
+
| `smartlyq messages remove-reaction <conversation-id> <message-id>` | `DELETE /social/conversations/{conversation_id}/messages/{message_id}/reactions` | Remove a message reaction |
|
|
234
240
|
|
|
235
241
|
### Images
|
|
236
242
|
|
|
@@ -249,6 +255,12 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
249
255
|
| `smartlyq jobs get <job-id>` | `GET /jobs/{job_id}` | Get job |
|
|
250
256
|
| `smartlyq jobs cancel <job-id> [--data <json>]` | `POST /jobs/{job_id}/cancel` | Cancel job |
|
|
251
257
|
|
|
258
|
+
### Logs
|
|
259
|
+
|
|
260
|
+
| Command | Endpoint | Description |
|
|
261
|
+
| --- | --- | --- |
|
|
262
|
+
| `smartlyq logs list [--query <query>]` | `GET /logs` | List developer logs |
|
|
263
|
+
|
|
252
264
|
### Media
|
|
253
265
|
|
|
254
266
|
| Command | Endpoint | Description |
|
|
@@ -427,6 +439,7 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
427
439
|
| `smartlyq urls get <url-id>` | `GET /urls/{url_id}` | Get short URL |
|
|
428
440
|
| `smartlyq urls delete <url-id>` | `DELETE /urls/{url_id}` | Delete short URL |
|
|
429
441
|
| `smartlyq urls get-stats <url-id>` | `GET /urls/{url_id}/stats` | Get short URL stats |
|
|
442
|
+
| `smartlyq urls update-short <id> --data <json>` | `PATCH /urls/{id}` | Update a short URL |
|
|
430
443
|
|
|
431
444
|
### Videos
|
|
432
445
|
|
|
@@ -452,6 +465,7 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
452
465
|
| `smartlyq webhooks delete <id>` | `DELETE /webhooks/{id}` | Delete webhook |
|
|
453
466
|
| `smartlyq webhooks list-logs [--query <query>]` | `GET /webhooks/logs` | List webhook delivery logs |
|
|
454
467
|
| `smartlyq webhooks test <id>` | `POST /webhooks/{id}/test` | Send test webhook |
|
|
468
|
+
| `smartlyq webhooks replay-delivery <id>` | `POST /webhooks/deliveries/{id}/replay` | Replay a webhook delivery |
|
|
455
469
|
|
|
456
470
|
### WhatsApp
|
|
457
471
|
|
|
@@ -463,6 +477,12 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
463
477
|
| `smartlyq whats-app get-whats-app-business-profile [--query <query>]` | `GET /whatsapp/business-profile` | Get business profile |
|
|
464
478
|
| `smartlyq whats-app update-whats-app-business-profile --data <json>` | `PATCH /whatsapp/business-profile` | Update business profile |
|
|
465
479
|
| `smartlyq whats-app list-whats-app-phone-numbers [--query <query>]` | `GET /whatsapp/phone-numbers` | List phone numbers |
|
|
480
|
+
| `smartlyq whats-app get-template <name> [--query <query>]` | `GET /whatsapp/templates/{name}` | Get a WhatsApp template |
|
|
481
|
+
| `smartlyq whats-app update-template <name> --data <json>` | `PATCH /whatsapp/templates/{name}` | Update a WhatsApp template |
|
|
482
|
+
| `smartlyq whats-app delete-template <name> [--query <query>]` | `DELETE /whatsapp/templates/{name}` | Delete a WhatsApp template |
|
|
483
|
+
| `smartlyq whats-app update-profile-photo --data <json>` | `POST /whatsapp/business-profile/photo` | Set the WhatsApp profile photo |
|
|
484
|
+
| `smartlyq whats-app get-display-name [--query <query>]` | `GET /whatsapp/business-profile/display-name` | Get the WhatsApp display name |
|
|
485
|
+
| `smartlyq whats-app update-display-name --data <json>` | `POST /whatsapp/business-profile/display-name` | Request a WhatsApp display-name change |
|
|
466
486
|
|
|
467
487
|
### Workspaces
|
|
468
488
|
|
package/dist/cli.js
CHANGED
|
@@ -28,6 +28,10 @@ var commands = [
|
|
|
28
28
|
{ "resourceKey": "analytics", "methodName": "inboxTopAccounts", "kebabMethod": "inbox-top-accounts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Inbox top accounts", "httpMethod": "GET", "path": "/analytics/inbox/top-accounts" },
|
|
29
29
|
{ "resourceKey": "analytics", "methodName": "inboxConversations", "kebabMethod": "inbox-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Inbox conversation stats", "httpMethod": "GET", "path": "/analytics/inbox/conversations" },
|
|
30
30
|
{ "resourceKey": "analytics", "methodName": "inboxConversationDetail", "kebabMethod": "inbox-conversation-detail", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Conversation analytics", "httpMethod": "GET", "path": "/analytics/inbox/conversations/{conversation_id}" },
|
|
31
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeChannelInsights", "kebabMethod": "get-youtube-channel-insights", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube channel insights", "httpMethod": "GET", "path": "/analytics/youtube/channel-insights" },
|
|
32
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeDailyViews", "kebabMethod": "get-youtube-daily-views", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube daily views", "httpMethod": "GET", "path": "/analytics/youtube/daily-views" },
|
|
33
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeVideoRetention", "kebabMethod": "get-youtube-video-retention", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube audience retention", "httpMethod": "GET", "path": "/analytics/youtube/video-retention" },
|
|
34
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeDemographics", "kebabMethod": "get-youtube-demographics", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube viewer demographics", "httpMethod": "GET", "path": "/analytics/youtube/demographics" },
|
|
31
35
|
{ "resourceKey": "articles", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate article", "httpMethod": "POST", "path": "/articles/generate" },
|
|
32
36
|
{ "resourceKey": "articles", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List articles", "httpMethod": "GET", "path": "/articles" },
|
|
33
37
|
{ "resourceKey": "articles", "methodName": "get", "kebabMethod": "get", "pathParams": ["articleId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get article", "httpMethod": "GET", "path": "/articles/{article_id}" },
|
|
@@ -90,6 +94,8 @@ var commands = [
|
|
|
90
94
|
{ "resourceKey": "messages", "methodName": "list", "kebabMethod": "list", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List messages in a conversation", "httpMethod": "GET", "path": "/social/conversations/{conversation_id}/messages" },
|
|
91
95
|
{ "resourceKey": "messages", "methodName": "send", "kebabMethod": "send", "pathParams": ["conversationId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send a direct message", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/messages" },
|
|
92
96
|
{ "resourceKey": "messages", "methodName": "markConversationRead", "kebabMethod": "mark-conversation-read", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Mark a conversation read", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/read" },
|
|
97
|
+
{ "resourceKey": "messages", "methodName": "reactTo", "kebabMethod": "react-to", "pathParams": ["conversationId", "messageId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "React to a message", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/messages/{message_id}/reactions" },
|
|
98
|
+
{ "resourceKey": "messages", "methodName": "removeReaction", "kebabMethod": "remove-reaction", "pathParams": ["conversationId", "messageId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Remove a message reaction", "httpMethod": "DELETE", "path": "/social/conversations/{conversation_id}/messages/{message_id}/reactions" },
|
|
93
99
|
{ "resourceKey": "images", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate image", "httpMethod": "POST", "path": "/images/generate" },
|
|
94
100
|
{ "resourceKey": "images", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List images", "httpMethod": "GET", "path": "/images" },
|
|
95
101
|
{ "resourceKey": "images", "methodName": "get", "kebabMethod": "get", "pathParams": ["imageId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get image", "httpMethod": "GET", "path": "/images/{image_id}" },
|
|
@@ -97,6 +103,7 @@ var commands = [
|
|
|
97
103
|
{ "resourceKey": "jobs", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List jobs", "httpMethod": "GET", "path": "/jobs" },
|
|
98
104
|
{ "resourceKey": "jobs", "methodName": "get", "kebabMethod": "get", "pathParams": ["jobId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get job", "httpMethod": "GET", "path": "/jobs/{job_id}" },
|
|
99
105
|
{ "resourceKey": "jobs", "methodName": "cancel", "kebabMethod": "cancel", "pathParams": ["jobId"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Cancel job", "httpMethod": "POST", "path": "/jobs/{job_id}/cancel" },
|
|
106
|
+
{ "resourceKey": "logs", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List developer logs", "httpMethod": "GET", "path": "/logs" },
|
|
100
107
|
{ "resourceKey": "media", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List media", "httpMethod": "GET", "path": "/media" },
|
|
101
108
|
{ "resourceKey": "media", "methodName": "get", "kebabMethod": "get", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get media", "httpMethod": "GET", "path": "/media/{media_id}" },
|
|
102
109
|
{ "resourceKey": "media", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete media", "httpMethod": "DELETE", "path": "/media/{media_id}" },
|
|
@@ -236,6 +243,7 @@ var commands = [
|
|
|
236
243
|
{ "resourceKey": "urls", "methodName": "get", "kebabMethod": "get", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get short URL", "httpMethod": "GET", "path": "/urls/{url_id}" },
|
|
237
244
|
{ "resourceKey": "urls", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete short URL", "httpMethod": "DELETE", "path": "/urls/{url_id}" },
|
|
238
245
|
{ "resourceKey": "urls", "methodName": "getStats", "kebabMethod": "get-stats", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get short URL stats", "httpMethod": "GET", "path": "/urls/{url_id}/stats" },
|
|
246
|
+
{ "resourceKey": "urls", "methodName": "updateShort", "kebabMethod": "update-short", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a short URL", "httpMethod": "PATCH", "path": "/urls/{id}" },
|
|
239
247
|
{ "resourceKey": "videos", "methodName": "listModels", "kebabMethod": "list-models", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List available video models", "httpMethod": "GET", "path": "/videos/models" },
|
|
240
248
|
{ "resourceKey": "videos", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate video", "httpMethod": "POST", "path": "/videos/generate" },
|
|
241
249
|
{ "resourceKey": "videos", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List videos", "httpMethod": "GET", "path": "/videos" },
|
|
@@ -251,12 +259,19 @@ var commands = [
|
|
|
251
259
|
{ "resourceKey": "webhooks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete webhook", "httpMethod": "DELETE", "path": "/webhooks/{id}" },
|
|
252
260
|
{ "resourceKey": "webhooks", "methodName": "listLogs", "kebabMethod": "list-logs", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List webhook delivery logs", "httpMethod": "GET", "path": "/webhooks/logs" },
|
|
253
261
|
{ "resourceKey": "webhooks", "methodName": "test", "kebabMethod": "test", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Send test webhook", "httpMethod": "POST", "path": "/webhooks/{id}/test" },
|
|
262
|
+
{ "resourceKey": "webhooks", "methodName": "replayDelivery", "kebabMethod": "replay-delivery", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Replay a webhook delivery", "httpMethod": "POST", "path": "/webhooks/deliveries/{id}/replay" },
|
|
254
263
|
{ "resourceKey": "whatsApp", "methodName": "sendWhatsAppMessage", "kebabMethod": "send-whats-app-message", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send a WhatsApp message", "httpMethod": "POST", "path": "/whatsapp/messages" },
|
|
255
264
|
{ "resourceKey": "whatsApp", "methodName": "listWhatsAppTemplates", "kebabMethod": "list-whats-app-templates", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List message templates", "httpMethod": "GET", "path": "/whatsapp/templates" },
|
|
256
265
|
{ "resourceKey": "whatsApp", "methodName": "createWhatsAppTemplate", "kebabMethod": "create-whats-app-template", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a message template", "httpMethod": "POST", "path": "/whatsapp/templates" },
|
|
257
266
|
{ "resourceKey": "whatsApp", "methodName": "getWhatsAppBusinessProfile", "kebabMethod": "get-whats-app-business-profile", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get business profile", "httpMethod": "GET", "path": "/whatsapp/business-profile" },
|
|
258
267
|
{ "resourceKey": "whatsApp", "methodName": "updateWhatsAppBusinessProfile", "kebabMethod": "update-whats-app-business-profile", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update business profile", "httpMethod": "PATCH", "path": "/whatsapp/business-profile" },
|
|
259
268
|
{ "resourceKey": "whatsApp", "methodName": "listWhatsAppPhoneNumbers", "kebabMethod": "list-whats-app-phone-numbers", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List phone numbers", "httpMethod": "GET", "path": "/whatsapp/phone-numbers" },
|
|
269
|
+
{ "resourceKey": "whatsApp", "methodName": "getTemplate", "kebabMethod": "get-template", "pathParams": ["name"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get a WhatsApp template", "httpMethod": "GET", "path": "/whatsapp/templates/{name}" },
|
|
270
|
+
{ "resourceKey": "whatsApp", "methodName": "updateTemplate", "kebabMethod": "update-template", "pathParams": ["name"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a WhatsApp template", "httpMethod": "PATCH", "path": "/whatsapp/templates/{name}" },
|
|
271
|
+
{ "resourceKey": "whatsApp", "methodName": "deleteTemplate", "kebabMethod": "delete-template", "pathParams": ["name"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Delete a WhatsApp template", "httpMethod": "DELETE", "path": "/whatsapp/templates/{name}" },
|
|
272
|
+
{ "resourceKey": "whatsApp", "methodName": "updateProfilePhoto", "kebabMethod": "update-profile-photo", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Set the WhatsApp profile photo", "httpMethod": "POST", "path": "/whatsapp/business-profile/photo" },
|
|
273
|
+
{ "resourceKey": "whatsApp", "methodName": "getDisplayName", "kebabMethod": "get-display-name", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get the WhatsApp display name", "httpMethod": "GET", "path": "/whatsapp/business-profile/display-name" },
|
|
274
|
+
{ "resourceKey": "whatsApp", "methodName": "updateDisplayName", "kebabMethod": "update-display-name", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Request a WhatsApp display-name change", "httpMethod": "POST", "path": "/whatsapp/business-profile/display-name" },
|
|
260
275
|
{ "resourceKey": "workspaces", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List workspaces (sub-accounts)", "httpMethod": "GET", "path": "/workspaces" },
|
|
261
276
|
{ "resourceKey": "workspaces", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a workspace (sub-account)", "httpMethod": "POST", "path": "/workspaces" },
|
|
262
277
|
{ "resourceKey": "workspaces", "methodName": "bulkAction", "kebabMethod": "bulk-action", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk sub-account action", "httpMethod": "POST", "path": "/workspaces/bulk" },
|
|
@@ -435,7 +450,7 @@ function runLogout() {
|
|
|
435
450
|
// package.json
|
|
436
451
|
var package_default = {
|
|
437
452
|
name: "@smartlyqofficial/cli",
|
|
438
|
-
version: "0.1.
|
|
453
|
+
version: "0.1.17",
|
|
439
454
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
440
455
|
keywords: [
|
|
441
456
|
"smartlyq",
|
|
@@ -485,7 +500,7 @@ var package_default = {
|
|
|
485
500
|
prepublishOnly: "npm run build"
|
|
486
501
|
},
|
|
487
502
|
dependencies: {
|
|
488
|
-
"@smartlyqofficial/node": "^0.1.
|
|
503
|
+
"@smartlyqofficial/node": "^0.1.17",
|
|
489
504
|
commander: "^12.1.0"
|
|
490
505
|
},
|
|
491
506
|
devDependencies: {
|
package/dist/index.cjs
CHANGED
|
@@ -78,6 +78,10 @@ var commands = [
|
|
|
78
78
|
{ "resourceKey": "analytics", "methodName": "inboxTopAccounts", "kebabMethod": "inbox-top-accounts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Inbox top accounts", "httpMethod": "GET", "path": "/analytics/inbox/top-accounts" },
|
|
79
79
|
{ "resourceKey": "analytics", "methodName": "inboxConversations", "kebabMethod": "inbox-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Inbox conversation stats", "httpMethod": "GET", "path": "/analytics/inbox/conversations" },
|
|
80
80
|
{ "resourceKey": "analytics", "methodName": "inboxConversationDetail", "kebabMethod": "inbox-conversation-detail", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Conversation analytics", "httpMethod": "GET", "path": "/analytics/inbox/conversations/{conversation_id}" },
|
|
81
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeChannelInsights", "kebabMethod": "get-youtube-channel-insights", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube channel insights", "httpMethod": "GET", "path": "/analytics/youtube/channel-insights" },
|
|
82
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeDailyViews", "kebabMethod": "get-youtube-daily-views", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube daily views", "httpMethod": "GET", "path": "/analytics/youtube/daily-views" },
|
|
83
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeVideoRetention", "kebabMethod": "get-youtube-video-retention", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube audience retention", "httpMethod": "GET", "path": "/analytics/youtube/video-retention" },
|
|
84
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeDemographics", "kebabMethod": "get-youtube-demographics", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube viewer demographics", "httpMethod": "GET", "path": "/analytics/youtube/demographics" },
|
|
81
85
|
{ "resourceKey": "articles", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate article", "httpMethod": "POST", "path": "/articles/generate" },
|
|
82
86
|
{ "resourceKey": "articles", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List articles", "httpMethod": "GET", "path": "/articles" },
|
|
83
87
|
{ "resourceKey": "articles", "methodName": "get", "kebabMethod": "get", "pathParams": ["articleId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get article", "httpMethod": "GET", "path": "/articles/{article_id}" },
|
|
@@ -140,6 +144,8 @@ var commands = [
|
|
|
140
144
|
{ "resourceKey": "messages", "methodName": "list", "kebabMethod": "list", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List messages in a conversation", "httpMethod": "GET", "path": "/social/conversations/{conversation_id}/messages" },
|
|
141
145
|
{ "resourceKey": "messages", "methodName": "send", "kebabMethod": "send", "pathParams": ["conversationId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send a direct message", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/messages" },
|
|
142
146
|
{ "resourceKey": "messages", "methodName": "markConversationRead", "kebabMethod": "mark-conversation-read", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Mark a conversation read", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/read" },
|
|
147
|
+
{ "resourceKey": "messages", "methodName": "reactTo", "kebabMethod": "react-to", "pathParams": ["conversationId", "messageId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "React to a message", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/messages/{message_id}/reactions" },
|
|
148
|
+
{ "resourceKey": "messages", "methodName": "removeReaction", "kebabMethod": "remove-reaction", "pathParams": ["conversationId", "messageId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Remove a message reaction", "httpMethod": "DELETE", "path": "/social/conversations/{conversation_id}/messages/{message_id}/reactions" },
|
|
143
149
|
{ "resourceKey": "images", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate image", "httpMethod": "POST", "path": "/images/generate" },
|
|
144
150
|
{ "resourceKey": "images", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List images", "httpMethod": "GET", "path": "/images" },
|
|
145
151
|
{ "resourceKey": "images", "methodName": "get", "kebabMethod": "get", "pathParams": ["imageId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get image", "httpMethod": "GET", "path": "/images/{image_id}" },
|
|
@@ -147,6 +153,7 @@ var commands = [
|
|
|
147
153
|
{ "resourceKey": "jobs", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List jobs", "httpMethod": "GET", "path": "/jobs" },
|
|
148
154
|
{ "resourceKey": "jobs", "methodName": "get", "kebabMethod": "get", "pathParams": ["jobId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get job", "httpMethod": "GET", "path": "/jobs/{job_id}" },
|
|
149
155
|
{ "resourceKey": "jobs", "methodName": "cancel", "kebabMethod": "cancel", "pathParams": ["jobId"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Cancel job", "httpMethod": "POST", "path": "/jobs/{job_id}/cancel" },
|
|
156
|
+
{ "resourceKey": "logs", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List developer logs", "httpMethod": "GET", "path": "/logs" },
|
|
150
157
|
{ "resourceKey": "media", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List media", "httpMethod": "GET", "path": "/media" },
|
|
151
158
|
{ "resourceKey": "media", "methodName": "get", "kebabMethod": "get", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get media", "httpMethod": "GET", "path": "/media/{media_id}" },
|
|
152
159
|
{ "resourceKey": "media", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete media", "httpMethod": "DELETE", "path": "/media/{media_id}" },
|
|
@@ -286,6 +293,7 @@ var commands = [
|
|
|
286
293
|
{ "resourceKey": "urls", "methodName": "get", "kebabMethod": "get", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get short URL", "httpMethod": "GET", "path": "/urls/{url_id}" },
|
|
287
294
|
{ "resourceKey": "urls", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete short URL", "httpMethod": "DELETE", "path": "/urls/{url_id}" },
|
|
288
295
|
{ "resourceKey": "urls", "methodName": "getStats", "kebabMethod": "get-stats", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get short URL stats", "httpMethod": "GET", "path": "/urls/{url_id}/stats" },
|
|
296
|
+
{ "resourceKey": "urls", "methodName": "updateShort", "kebabMethod": "update-short", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a short URL", "httpMethod": "PATCH", "path": "/urls/{id}" },
|
|
289
297
|
{ "resourceKey": "videos", "methodName": "listModels", "kebabMethod": "list-models", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List available video models", "httpMethod": "GET", "path": "/videos/models" },
|
|
290
298
|
{ "resourceKey": "videos", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate video", "httpMethod": "POST", "path": "/videos/generate" },
|
|
291
299
|
{ "resourceKey": "videos", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List videos", "httpMethod": "GET", "path": "/videos" },
|
|
@@ -301,12 +309,19 @@ var commands = [
|
|
|
301
309
|
{ "resourceKey": "webhooks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete webhook", "httpMethod": "DELETE", "path": "/webhooks/{id}" },
|
|
302
310
|
{ "resourceKey": "webhooks", "methodName": "listLogs", "kebabMethod": "list-logs", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List webhook delivery logs", "httpMethod": "GET", "path": "/webhooks/logs" },
|
|
303
311
|
{ "resourceKey": "webhooks", "methodName": "test", "kebabMethod": "test", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Send test webhook", "httpMethod": "POST", "path": "/webhooks/{id}/test" },
|
|
312
|
+
{ "resourceKey": "webhooks", "methodName": "replayDelivery", "kebabMethod": "replay-delivery", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Replay a webhook delivery", "httpMethod": "POST", "path": "/webhooks/deliveries/{id}/replay" },
|
|
304
313
|
{ "resourceKey": "whatsApp", "methodName": "sendWhatsAppMessage", "kebabMethod": "send-whats-app-message", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send a WhatsApp message", "httpMethod": "POST", "path": "/whatsapp/messages" },
|
|
305
314
|
{ "resourceKey": "whatsApp", "methodName": "listWhatsAppTemplates", "kebabMethod": "list-whats-app-templates", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List message templates", "httpMethod": "GET", "path": "/whatsapp/templates" },
|
|
306
315
|
{ "resourceKey": "whatsApp", "methodName": "createWhatsAppTemplate", "kebabMethod": "create-whats-app-template", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a message template", "httpMethod": "POST", "path": "/whatsapp/templates" },
|
|
307
316
|
{ "resourceKey": "whatsApp", "methodName": "getWhatsAppBusinessProfile", "kebabMethod": "get-whats-app-business-profile", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get business profile", "httpMethod": "GET", "path": "/whatsapp/business-profile" },
|
|
308
317
|
{ "resourceKey": "whatsApp", "methodName": "updateWhatsAppBusinessProfile", "kebabMethod": "update-whats-app-business-profile", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update business profile", "httpMethod": "PATCH", "path": "/whatsapp/business-profile" },
|
|
309
318
|
{ "resourceKey": "whatsApp", "methodName": "listWhatsAppPhoneNumbers", "kebabMethod": "list-whats-app-phone-numbers", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List phone numbers", "httpMethod": "GET", "path": "/whatsapp/phone-numbers" },
|
|
319
|
+
{ "resourceKey": "whatsApp", "methodName": "getTemplate", "kebabMethod": "get-template", "pathParams": ["name"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get a WhatsApp template", "httpMethod": "GET", "path": "/whatsapp/templates/{name}" },
|
|
320
|
+
{ "resourceKey": "whatsApp", "methodName": "updateTemplate", "kebabMethod": "update-template", "pathParams": ["name"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a WhatsApp template", "httpMethod": "PATCH", "path": "/whatsapp/templates/{name}" },
|
|
321
|
+
{ "resourceKey": "whatsApp", "methodName": "deleteTemplate", "kebabMethod": "delete-template", "pathParams": ["name"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Delete a WhatsApp template", "httpMethod": "DELETE", "path": "/whatsapp/templates/{name}" },
|
|
322
|
+
{ "resourceKey": "whatsApp", "methodName": "updateProfilePhoto", "kebabMethod": "update-profile-photo", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Set the WhatsApp profile photo", "httpMethod": "POST", "path": "/whatsapp/business-profile/photo" },
|
|
323
|
+
{ "resourceKey": "whatsApp", "methodName": "getDisplayName", "kebabMethod": "get-display-name", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get the WhatsApp display name", "httpMethod": "GET", "path": "/whatsapp/business-profile/display-name" },
|
|
324
|
+
{ "resourceKey": "whatsApp", "methodName": "updateDisplayName", "kebabMethod": "update-display-name", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Request a WhatsApp display-name change", "httpMethod": "POST", "path": "/whatsapp/business-profile/display-name" },
|
|
310
325
|
{ "resourceKey": "workspaces", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List workspaces (sub-accounts)", "httpMethod": "GET", "path": "/workspaces" },
|
|
311
326
|
{ "resourceKey": "workspaces", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a workspace (sub-account)", "httpMethod": "POST", "path": "/workspaces" },
|
|
312
327
|
{ "resourceKey": "workspaces", "methodName": "bulkAction", "kebabMethod": "bulk-action", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk sub-account action", "httpMethod": "POST", "path": "/workspaces/bulk" },
|
|
@@ -485,7 +500,7 @@ function runLogout() {
|
|
|
485
500
|
// package.json
|
|
486
501
|
var package_default = {
|
|
487
502
|
name: "@smartlyqofficial/cli",
|
|
488
|
-
version: "0.1.
|
|
503
|
+
version: "0.1.17",
|
|
489
504
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
490
505
|
keywords: [
|
|
491
506
|
"smartlyq",
|
|
@@ -535,7 +550,7 @@ var package_default = {
|
|
|
535
550
|
prepublishOnly: "npm run build"
|
|
536
551
|
},
|
|
537
552
|
dependencies: {
|
|
538
|
-
"@smartlyqofficial/node": "^0.1.
|
|
553
|
+
"@smartlyqofficial/node": "^0.1.17",
|
|
539
554
|
commander: "^12.1.0"
|
|
540
555
|
},
|
|
541
556
|
devDependencies: {
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,10 @@ var commands = [
|
|
|
26
26
|
{ "resourceKey": "analytics", "methodName": "inboxTopAccounts", "kebabMethod": "inbox-top-accounts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Inbox top accounts", "httpMethod": "GET", "path": "/analytics/inbox/top-accounts" },
|
|
27
27
|
{ "resourceKey": "analytics", "methodName": "inboxConversations", "kebabMethod": "inbox-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Inbox conversation stats", "httpMethod": "GET", "path": "/analytics/inbox/conversations" },
|
|
28
28
|
{ "resourceKey": "analytics", "methodName": "inboxConversationDetail", "kebabMethod": "inbox-conversation-detail", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Conversation analytics", "httpMethod": "GET", "path": "/analytics/inbox/conversations/{conversation_id}" },
|
|
29
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeChannelInsights", "kebabMethod": "get-youtube-channel-insights", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube channel insights", "httpMethod": "GET", "path": "/analytics/youtube/channel-insights" },
|
|
30
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeDailyViews", "kebabMethod": "get-youtube-daily-views", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube daily views", "httpMethod": "GET", "path": "/analytics/youtube/daily-views" },
|
|
31
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeVideoRetention", "kebabMethod": "get-youtube-video-retention", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube audience retention", "httpMethod": "GET", "path": "/analytics/youtube/video-retention" },
|
|
32
|
+
{ "resourceKey": "analytics", "methodName": "getYoutubeDemographics", "kebabMethod": "get-youtube-demographics", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "YouTube viewer demographics", "httpMethod": "GET", "path": "/analytics/youtube/demographics" },
|
|
29
33
|
{ "resourceKey": "articles", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate article", "httpMethod": "POST", "path": "/articles/generate" },
|
|
30
34
|
{ "resourceKey": "articles", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List articles", "httpMethod": "GET", "path": "/articles" },
|
|
31
35
|
{ "resourceKey": "articles", "methodName": "get", "kebabMethod": "get", "pathParams": ["articleId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get article", "httpMethod": "GET", "path": "/articles/{article_id}" },
|
|
@@ -88,6 +92,8 @@ var commands = [
|
|
|
88
92
|
{ "resourceKey": "messages", "methodName": "list", "kebabMethod": "list", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List messages in a conversation", "httpMethod": "GET", "path": "/social/conversations/{conversation_id}/messages" },
|
|
89
93
|
{ "resourceKey": "messages", "methodName": "send", "kebabMethod": "send", "pathParams": ["conversationId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send a direct message", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/messages" },
|
|
90
94
|
{ "resourceKey": "messages", "methodName": "markConversationRead", "kebabMethod": "mark-conversation-read", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Mark a conversation read", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/read" },
|
|
95
|
+
{ "resourceKey": "messages", "methodName": "reactTo", "kebabMethod": "react-to", "pathParams": ["conversationId", "messageId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "React to a message", "httpMethod": "POST", "path": "/social/conversations/{conversation_id}/messages/{message_id}/reactions" },
|
|
96
|
+
{ "resourceKey": "messages", "methodName": "removeReaction", "kebabMethod": "remove-reaction", "pathParams": ["conversationId", "messageId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Remove a message reaction", "httpMethod": "DELETE", "path": "/social/conversations/{conversation_id}/messages/{message_id}/reactions" },
|
|
91
97
|
{ "resourceKey": "images", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate image", "httpMethod": "POST", "path": "/images/generate" },
|
|
92
98
|
{ "resourceKey": "images", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List images", "httpMethod": "GET", "path": "/images" },
|
|
93
99
|
{ "resourceKey": "images", "methodName": "get", "kebabMethod": "get", "pathParams": ["imageId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get image", "httpMethod": "GET", "path": "/images/{image_id}" },
|
|
@@ -95,6 +101,7 @@ var commands = [
|
|
|
95
101
|
{ "resourceKey": "jobs", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List jobs", "httpMethod": "GET", "path": "/jobs" },
|
|
96
102
|
{ "resourceKey": "jobs", "methodName": "get", "kebabMethod": "get", "pathParams": ["jobId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get job", "httpMethod": "GET", "path": "/jobs/{job_id}" },
|
|
97
103
|
{ "resourceKey": "jobs", "methodName": "cancel", "kebabMethod": "cancel", "pathParams": ["jobId"], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Cancel job", "httpMethod": "POST", "path": "/jobs/{job_id}/cancel" },
|
|
104
|
+
{ "resourceKey": "logs", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List developer logs", "httpMethod": "GET", "path": "/logs" },
|
|
98
105
|
{ "resourceKey": "media", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List media", "httpMethod": "GET", "path": "/media" },
|
|
99
106
|
{ "resourceKey": "media", "methodName": "get", "kebabMethod": "get", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get media", "httpMethod": "GET", "path": "/media/{media_id}" },
|
|
100
107
|
{ "resourceKey": "media", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete media", "httpMethod": "DELETE", "path": "/media/{media_id}" },
|
|
@@ -234,6 +241,7 @@ var commands = [
|
|
|
234
241
|
{ "resourceKey": "urls", "methodName": "get", "kebabMethod": "get", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get short URL", "httpMethod": "GET", "path": "/urls/{url_id}" },
|
|
235
242
|
{ "resourceKey": "urls", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete short URL", "httpMethod": "DELETE", "path": "/urls/{url_id}" },
|
|
236
243
|
{ "resourceKey": "urls", "methodName": "getStats", "kebabMethod": "get-stats", "pathParams": ["urlId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get short URL stats", "httpMethod": "GET", "path": "/urls/{url_id}/stats" },
|
|
244
|
+
{ "resourceKey": "urls", "methodName": "updateShort", "kebabMethod": "update-short", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a short URL", "httpMethod": "PATCH", "path": "/urls/{id}" },
|
|
237
245
|
{ "resourceKey": "videos", "methodName": "listModels", "kebabMethod": "list-models", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List available video models", "httpMethod": "GET", "path": "/videos/models" },
|
|
238
246
|
{ "resourceKey": "videos", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate video", "httpMethod": "POST", "path": "/videos/generate" },
|
|
239
247
|
{ "resourceKey": "videos", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List videos", "httpMethod": "GET", "path": "/videos" },
|
|
@@ -249,12 +257,19 @@ var commands = [
|
|
|
249
257
|
{ "resourceKey": "webhooks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete webhook", "httpMethod": "DELETE", "path": "/webhooks/{id}" },
|
|
250
258
|
{ "resourceKey": "webhooks", "methodName": "listLogs", "kebabMethod": "list-logs", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List webhook delivery logs", "httpMethod": "GET", "path": "/webhooks/logs" },
|
|
251
259
|
{ "resourceKey": "webhooks", "methodName": "test", "kebabMethod": "test", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Send test webhook", "httpMethod": "POST", "path": "/webhooks/{id}/test" },
|
|
260
|
+
{ "resourceKey": "webhooks", "methodName": "replayDelivery", "kebabMethod": "replay-delivery", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Replay a webhook delivery", "httpMethod": "POST", "path": "/webhooks/deliveries/{id}/replay" },
|
|
252
261
|
{ "resourceKey": "whatsApp", "methodName": "sendWhatsAppMessage", "kebabMethod": "send-whats-app-message", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send a WhatsApp message", "httpMethod": "POST", "path": "/whatsapp/messages" },
|
|
253
262
|
{ "resourceKey": "whatsApp", "methodName": "listWhatsAppTemplates", "kebabMethod": "list-whats-app-templates", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List message templates", "httpMethod": "GET", "path": "/whatsapp/templates" },
|
|
254
263
|
{ "resourceKey": "whatsApp", "methodName": "createWhatsAppTemplate", "kebabMethod": "create-whats-app-template", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a message template", "httpMethod": "POST", "path": "/whatsapp/templates" },
|
|
255
264
|
{ "resourceKey": "whatsApp", "methodName": "getWhatsAppBusinessProfile", "kebabMethod": "get-whats-app-business-profile", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get business profile", "httpMethod": "GET", "path": "/whatsapp/business-profile" },
|
|
256
265
|
{ "resourceKey": "whatsApp", "methodName": "updateWhatsAppBusinessProfile", "kebabMethod": "update-whats-app-business-profile", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update business profile", "httpMethod": "PATCH", "path": "/whatsapp/business-profile" },
|
|
257
266
|
{ "resourceKey": "whatsApp", "methodName": "listWhatsAppPhoneNumbers", "kebabMethod": "list-whats-app-phone-numbers", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List phone numbers", "httpMethod": "GET", "path": "/whatsapp/phone-numbers" },
|
|
267
|
+
{ "resourceKey": "whatsApp", "methodName": "getTemplate", "kebabMethod": "get-template", "pathParams": ["name"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get a WhatsApp template", "httpMethod": "GET", "path": "/whatsapp/templates/{name}" },
|
|
268
|
+
{ "resourceKey": "whatsApp", "methodName": "updateTemplate", "kebabMethod": "update-template", "pathParams": ["name"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a WhatsApp template", "httpMethod": "PATCH", "path": "/whatsapp/templates/{name}" },
|
|
269
|
+
{ "resourceKey": "whatsApp", "methodName": "deleteTemplate", "kebabMethod": "delete-template", "pathParams": ["name"], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Delete a WhatsApp template", "httpMethod": "DELETE", "path": "/whatsapp/templates/{name}" },
|
|
270
|
+
{ "resourceKey": "whatsApp", "methodName": "updateProfilePhoto", "kebabMethod": "update-profile-photo", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Set the WhatsApp profile photo", "httpMethod": "POST", "path": "/whatsapp/business-profile/photo" },
|
|
271
|
+
{ "resourceKey": "whatsApp", "methodName": "getDisplayName", "kebabMethod": "get-display-name", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get the WhatsApp display name", "httpMethod": "GET", "path": "/whatsapp/business-profile/display-name" },
|
|
272
|
+
{ "resourceKey": "whatsApp", "methodName": "updateDisplayName", "kebabMethod": "update-display-name", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Request a WhatsApp display-name change", "httpMethod": "POST", "path": "/whatsapp/business-profile/display-name" },
|
|
258
273
|
{ "resourceKey": "workspaces", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List workspaces (sub-accounts)", "httpMethod": "GET", "path": "/workspaces" },
|
|
259
274
|
{ "resourceKey": "workspaces", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a workspace (sub-account)", "httpMethod": "POST", "path": "/workspaces" },
|
|
260
275
|
{ "resourceKey": "workspaces", "methodName": "bulkAction", "kebabMethod": "bulk-action", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk sub-account action", "httpMethod": "POST", "path": "/workspaces/bulk" },
|
|
@@ -433,7 +448,7 @@ function runLogout() {
|
|
|
433
448
|
// package.json
|
|
434
449
|
var package_default = {
|
|
435
450
|
name: "@smartlyqofficial/cli",
|
|
436
|
-
version: "0.1.
|
|
451
|
+
version: "0.1.17",
|
|
437
452
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
438
453
|
keywords: [
|
|
439
454
|
"smartlyq",
|
|
@@ -483,7 +498,7 @@ var package_default = {
|
|
|
483
498
|
prepublishOnly: "npm run build"
|
|
484
499
|
},
|
|
485
500
|
dependencies: {
|
|
486
|
-
"@smartlyqofficial/node": "^0.1.
|
|
501
|
+
"@smartlyqofficial/node": "^0.1.17",
|
|
487
502
|
commander: "^12.1.0"
|
|
488
503
|
},
|
|
489
504
|
devDependencies: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartlyqofficial/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
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.17",
|
|
54
54
|
"commander": "^12.1.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|