@smartlyqofficial/cli 0.1.13 → 0.1.15
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 +15 -0
- package/dist/cli.js +12 -2
- package/dist/index.cjs +12 -2
- package/dist/index.js +12 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -85,6 +85,7 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
85
85
|
| `smartlyq account get-me` | `GET /me` | Get current user profile |
|
|
86
86
|
| `smartlyq account get-me-usage [--query <query>]` | `GET /me/usage` | Get usage summary |
|
|
87
87
|
| `smartlyq account get-me-balance` | `GET /me/balance` | Get wallet balance |
|
|
88
|
+
| `smartlyq account get-billing` | `GET /me/billing` | Billing overview |
|
|
88
89
|
|
|
89
90
|
### AI Captain
|
|
90
91
|
|
|
@@ -166,6 +167,7 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
166
167
|
| `smartlyq comments reply-to <comment-id> --data <json>` | `POST /social/comments/{comment_id}/reply` | Reply to a comment |
|
|
167
168
|
| `smartlyq comments hide <comment-id>` | `POST /social/comments/{comment_id}/hide` | Hide or unhide a comment |
|
|
168
169
|
| `smartlyq comments delete <comment-id>` | `DELETE /social/comments/{comment_id}` | Delete a comment |
|
|
170
|
+
| `smartlyq comments get-post <post-id>` | `GET /social/comments/{post_id}` | Get one post's comments (threaded) |
|
|
169
171
|
|
|
170
172
|
### Content
|
|
171
173
|
|
|
@@ -197,6 +199,8 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
197
199
|
| `smartlyq contacts add-note <id> --data <json>` | `POST /contacts/{id}/notes` | Add a note to a contact |
|
|
198
200
|
| `smartlyq contacts enroll <id> --data <json>` | `POST /contacts/{id}/enroll` | Enroll a contact in an automation |
|
|
199
201
|
| `smartlyq contacts add-message <id> --data <json>` | `POST /contacts/{id}/messages` | Log a message on a contact's timeline |
|
|
202
|
+
| `smartlyq contacts set-field <id> <slug> --data <json>` | `PUT /contacts/{id}/fields/{slug}` | Set one custom field |
|
|
203
|
+
| `smartlyq contacts clear-field <id> <slug>` | `DELETE /contacts/{id}/fields/{slug}` | Clear one custom field |
|
|
200
204
|
|
|
201
205
|
### CRM Custom Fields
|
|
202
206
|
|
|
@@ -449,6 +453,17 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
449
453
|
| `smartlyq webhooks list-logs [--query <query>]` | `GET /webhooks/logs` | List webhook delivery logs |
|
|
450
454
|
| `smartlyq webhooks test <id>` | `POST /webhooks/{id}/test` | Send test webhook |
|
|
451
455
|
|
|
456
|
+
### WhatsApp
|
|
457
|
+
|
|
458
|
+
| Command | Endpoint | Description |
|
|
459
|
+
| --- | --- | --- |
|
|
460
|
+
| `smartlyq whats-app send-whats-app-message --data <json>` | `POST /whatsapp/messages` | Send a WhatsApp message |
|
|
461
|
+
| `smartlyq whats-app list-whats-app-templates [--query <query>]` | `GET /whatsapp/templates` | List message templates |
|
|
462
|
+
| `smartlyq whats-app create-whats-app-template --data <json>` | `POST /whatsapp/templates` | Create a message template |
|
|
463
|
+
| `smartlyq whats-app get-whats-app-business-profile [--query <query>]` | `GET /whatsapp/business-profile` | Get business profile |
|
|
464
|
+
| `smartlyq whats-app update-whats-app-business-profile --data <json>` | `PATCH /whatsapp/business-profile` | Update business profile |
|
|
465
|
+
| `smartlyq whats-app list-whats-app-phone-numbers [--query <query>]` | `GET /whatsapp/phone-numbers` | List phone numbers |
|
|
466
|
+
|
|
452
467
|
### Workspaces
|
|
453
468
|
|
|
454
469
|
| Command | Endpoint | Description |
|
package/dist/cli.js
CHANGED
|
@@ -9,6 +9,7 @@ var commands = [
|
|
|
9
9
|
{ "resourceKey": "account", "methodName": "getMe", "kebabMethod": "get-me", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get current user profile", "httpMethod": "GET", "path": "/me" },
|
|
10
10
|
{ "resourceKey": "account", "methodName": "getMeUsage", "kebabMethod": "get-me-usage", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get usage summary", "httpMethod": "GET", "path": "/me/usage" },
|
|
11
11
|
{ "resourceKey": "account", "methodName": "getMeBalance", "kebabMethod": "get-me-balance", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get wallet balance", "httpMethod": "GET", "path": "/me/balance" },
|
|
12
|
+
{ "resourceKey": "account", "methodName": "getBilling", "kebabMethod": "get-billing", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Billing overview", "httpMethod": "GET", "path": "/me/billing" },
|
|
12
13
|
{ "resourceKey": "captain", "methodName": "sendMessage", "kebabMethod": "send-message", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send AI Captain message", "httpMethod": "POST", "path": "/captain/messages" },
|
|
13
14
|
{ "resourceKey": "captain", "methodName": "listConversations", "kebabMethod": "list-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List AI Captain conversations", "httpMethod": "GET", "path": "/captain/conversations" },
|
|
14
15
|
{ "resourceKey": "captain", "methodName": "getConversation", "kebabMethod": "get-conversation", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get AI Captain conversation", "httpMethod": "GET", "path": "/captain/conversations/{conversation_id}" },
|
|
@@ -55,6 +56,7 @@ var commands = [
|
|
|
55
56
|
{ "resourceKey": "comments", "methodName": "replyTo", "kebabMethod": "reply-to", "pathParams": ["commentId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Reply to a comment", "httpMethod": "POST", "path": "/social/comments/{comment_id}/reply" },
|
|
56
57
|
{ "resourceKey": "comments", "methodName": "hide", "kebabMethod": "hide", "pathParams": ["commentId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Hide or unhide a comment", "httpMethod": "POST", "path": "/social/comments/{comment_id}/hide" },
|
|
57
58
|
{ "resourceKey": "comments", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["commentId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a comment", "httpMethod": "DELETE", "path": "/social/comments/{comment_id}" },
|
|
59
|
+
{ "resourceKey": "comments", "methodName": "getPost", "kebabMethod": "get-post", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get one post's comments (threaded)", "httpMethod": "GET", "path": "/social/comments/{post_id}" },
|
|
58
60
|
{ "resourceKey": "content", "methodName": "rewrite", "kebabMethod": "rewrite", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Rewrite content", "httpMethod": "POST", "path": "/content/rewrite" },
|
|
59
61
|
{ "resourceKey": "content", "methodName": "generateCaption", "kebabMethod": "generate-caption", "pathParams": [], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Generate a social caption", "httpMethod": "POST", "path": "/content/caption" },
|
|
60
62
|
{ "resourceKey": "crm", "methodName": "deleteContact", "kebabMethod": "delete-contact", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete contact", "httpMethod": "DELETE", "path": "/contacts/{id}" },
|
|
@@ -71,6 +73,8 @@ var commands = [
|
|
|
71
73
|
{ "resourceKey": "contacts", "methodName": "addNote", "kebabMethod": "add-note", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Add a note to a contact", "httpMethod": "POST", "path": "/contacts/{id}/notes" },
|
|
72
74
|
{ "resourceKey": "contacts", "methodName": "enroll", "kebabMethod": "enroll", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Enroll a contact in an automation", "httpMethod": "POST", "path": "/contacts/{id}/enroll" },
|
|
73
75
|
{ "resourceKey": "contacts", "methodName": "addMessage", "kebabMethod": "add-message", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Log a message on a contact's timeline", "httpMethod": "POST", "path": "/contacts/{id}/messages" },
|
|
76
|
+
{ "resourceKey": "contacts", "methodName": "setField", "kebabMethod": "set-field", "pathParams": ["id", "slug"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Set one custom field", "httpMethod": "PUT", "path": "/contacts/{id}/fields/{slug}" },
|
|
77
|
+
{ "resourceKey": "contacts", "methodName": "clearField", "kebabMethod": "clear-field", "pathParams": ["id", "slug"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Clear one custom field", "httpMethod": "DELETE", "path": "/contacts/{id}/fields/{slug}" },
|
|
74
78
|
{ "resourceKey": "customFields", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List custom fields", "httpMethod": "GET", "path": "/custom-fields" },
|
|
75
79
|
{ "resourceKey": "customFields", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a custom field", "httpMethod": "POST", "path": "/custom-fields" },
|
|
76
80
|
{ "resourceKey": "customFields", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a custom field", "httpMethod": "DELETE", "path": "/custom-fields/{id}" },
|
|
@@ -247,6 +251,12 @@ var commands = [
|
|
|
247
251
|
{ "resourceKey": "webhooks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete webhook", "httpMethod": "DELETE", "path": "/webhooks/{id}" },
|
|
248
252
|
{ "resourceKey": "webhooks", "methodName": "listLogs", "kebabMethod": "list-logs", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List webhook delivery logs", "httpMethod": "GET", "path": "/webhooks/logs" },
|
|
249
253
|
{ "resourceKey": "webhooks", "methodName": "test", "kebabMethod": "test", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Send test webhook", "httpMethod": "POST", "path": "/webhooks/{id}/test" },
|
|
254
|
+
{ "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
|
+
{ "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
|
+
{ "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
|
+
{ "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
|
+
{ "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
|
+
{ "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" },
|
|
250
260
|
{ "resourceKey": "workspaces", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List workspaces (sub-accounts)", "httpMethod": "GET", "path": "/workspaces" },
|
|
251
261
|
{ "resourceKey": "workspaces", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a workspace (sub-account)", "httpMethod": "POST", "path": "/workspaces" },
|
|
252
262
|
{ "resourceKey": "workspaces", "methodName": "bulkAction", "kebabMethod": "bulk-action", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk sub-account action", "httpMethod": "POST", "path": "/workspaces/bulk" },
|
|
@@ -425,7 +435,7 @@ function runLogout() {
|
|
|
425
435
|
// package.json
|
|
426
436
|
var package_default = {
|
|
427
437
|
name: "@smartlyqofficial/cli",
|
|
428
|
-
version: "0.1.
|
|
438
|
+
version: "0.1.15",
|
|
429
439
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
430
440
|
keywords: [
|
|
431
441
|
"smartlyq",
|
|
@@ -475,7 +485,7 @@ var package_default = {
|
|
|
475
485
|
prepublishOnly: "npm run build"
|
|
476
486
|
},
|
|
477
487
|
dependencies: {
|
|
478
|
-
"@smartlyqofficial/node": "^0.1.
|
|
488
|
+
"@smartlyqofficial/node": "^0.1.15",
|
|
479
489
|
commander: "^12.1.0"
|
|
480
490
|
},
|
|
481
491
|
devDependencies: {
|
package/dist/index.cjs
CHANGED
|
@@ -59,6 +59,7 @@ var commands = [
|
|
|
59
59
|
{ "resourceKey": "account", "methodName": "getMe", "kebabMethod": "get-me", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get current user profile", "httpMethod": "GET", "path": "/me" },
|
|
60
60
|
{ "resourceKey": "account", "methodName": "getMeUsage", "kebabMethod": "get-me-usage", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get usage summary", "httpMethod": "GET", "path": "/me/usage" },
|
|
61
61
|
{ "resourceKey": "account", "methodName": "getMeBalance", "kebabMethod": "get-me-balance", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get wallet balance", "httpMethod": "GET", "path": "/me/balance" },
|
|
62
|
+
{ "resourceKey": "account", "methodName": "getBilling", "kebabMethod": "get-billing", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Billing overview", "httpMethod": "GET", "path": "/me/billing" },
|
|
62
63
|
{ "resourceKey": "captain", "methodName": "sendMessage", "kebabMethod": "send-message", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send AI Captain message", "httpMethod": "POST", "path": "/captain/messages" },
|
|
63
64
|
{ "resourceKey": "captain", "methodName": "listConversations", "kebabMethod": "list-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List AI Captain conversations", "httpMethod": "GET", "path": "/captain/conversations" },
|
|
64
65
|
{ "resourceKey": "captain", "methodName": "getConversation", "kebabMethod": "get-conversation", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get AI Captain conversation", "httpMethod": "GET", "path": "/captain/conversations/{conversation_id}" },
|
|
@@ -105,6 +106,7 @@ var commands = [
|
|
|
105
106
|
{ "resourceKey": "comments", "methodName": "replyTo", "kebabMethod": "reply-to", "pathParams": ["commentId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Reply to a comment", "httpMethod": "POST", "path": "/social/comments/{comment_id}/reply" },
|
|
106
107
|
{ "resourceKey": "comments", "methodName": "hide", "kebabMethod": "hide", "pathParams": ["commentId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Hide or unhide a comment", "httpMethod": "POST", "path": "/social/comments/{comment_id}/hide" },
|
|
107
108
|
{ "resourceKey": "comments", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["commentId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a comment", "httpMethod": "DELETE", "path": "/social/comments/{comment_id}" },
|
|
109
|
+
{ "resourceKey": "comments", "methodName": "getPost", "kebabMethod": "get-post", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get one post's comments (threaded)", "httpMethod": "GET", "path": "/social/comments/{post_id}" },
|
|
108
110
|
{ "resourceKey": "content", "methodName": "rewrite", "kebabMethod": "rewrite", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Rewrite content", "httpMethod": "POST", "path": "/content/rewrite" },
|
|
109
111
|
{ "resourceKey": "content", "methodName": "generateCaption", "kebabMethod": "generate-caption", "pathParams": [], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Generate a social caption", "httpMethod": "POST", "path": "/content/caption" },
|
|
110
112
|
{ "resourceKey": "crm", "methodName": "deleteContact", "kebabMethod": "delete-contact", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete contact", "httpMethod": "DELETE", "path": "/contacts/{id}" },
|
|
@@ -121,6 +123,8 @@ var commands = [
|
|
|
121
123
|
{ "resourceKey": "contacts", "methodName": "addNote", "kebabMethod": "add-note", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Add a note to a contact", "httpMethod": "POST", "path": "/contacts/{id}/notes" },
|
|
122
124
|
{ "resourceKey": "contacts", "methodName": "enroll", "kebabMethod": "enroll", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Enroll a contact in an automation", "httpMethod": "POST", "path": "/contacts/{id}/enroll" },
|
|
123
125
|
{ "resourceKey": "contacts", "methodName": "addMessage", "kebabMethod": "add-message", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Log a message on a contact's timeline", "httpMethod": "POST", "path": "/contacts/{id}/messages" },
|
|
126
|
+
{ "resourceKey": "contacts", "methodName": "setField", "kebabMethod": "set-field", "pathParams": ["id", "slug"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Set one custom field", "httpMethod": "PUT", "path": "/contacts/{id}/fields/{slug}" },
|
|
127
|
+
{ "resourceKey": "contacts", "methodName": "clearField", "kebabMethod": "clear-field", "pathParams": ["id", "slug"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Clear one custom field", "httpMethod": "DELETE", "path": "/contacts/{id}/fields/{slug}" },
|
|
124
128
|
{ "resourceKey": "customFields", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List custom fields", "httpMethod": "GET", "path": "/custom-fields" },
|
|
125
129
|
{ "resourceKey": "customFields", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a custom field", "httpMethod": "POST", "path": "/custom-fields" },
|
|
126
130
|
{ "resourceKey": "customFields", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a custom field", "httpMethod": "DELETE", "path": "/custom-fields/{id}" },
|
|
@@ -297,6 +301,12 @@ var commands = [
|
|
|
297
301
|
{ "resourceKey": "webhooks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete webhook", "httpMethod": "DELETE", "path": "/webhooks/{id}" },
|
|
298
302
|
{ "resourceKey": "webhooks", "methodName": "listLogs", "kebabMethod": "list-logs", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List webhook delivery logs", "httpMethod": "GET", "path": "/webhooks/logs" },
|
|
299
303
|
{ "resourceKey": "webhooks", "methodName": "test", "kebabMethod": "test", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Send test webhook", "httpMethod": "POST", "path": "/webhooks/{id}/test" },
|
|
304
|
+
{ "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
|
+
{ "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
|
+
{ "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
|
+
{ "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
|
+
{ "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
|
+
{ "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" },
|
|
300
310
|
{ "resourceKey": "workspaces", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List workspaces (sub-accounts)", "httpMethod": "GET", "path": "/workspaces" },
|
|
301
311
|
{ "resourceKey": "workspaces", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a workspace (sub-account)", "httpMethod": "POST", "path": "/workspaces" },
|
|
302
312
|
{ "resourceKey": "workspaces", "methodName": "bulkAction", "kebabMethod": "bulk-action", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk sub-account action", "httpMethod": "POST", "path": "/workspaces/bulk" },
|
|
@@ -475,7 +485,7 @@ function runLogout() {
|
|
|
475
485
|
// package.json
|
|
476
486
|
var package_default = {
|
|
477
487
|
name: "@smartlyqofficial/cli",
|
|
478
|
-
version: "0.1.
|
|
488
|
+
version: "0.1.15",
|
|
479
489
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
480
490
|
keywords: [
|
|
481
491
|
"smartlyq",
|
|
@@ -525,7 +535,7 @@ var package_default = {
|
|
|
525
535
|
prepublishOnly: "npm run build"
|
|
526
536
|
},
|
|
527
537
|
dependencies: {
|
|
528
|
-
"@smartlyqofficial/node": "^0.1.
|
|
538
|
+
"@smartlyqofficial/node": "^0.1.15",
|
|
529
539
|
commander: "^12.1.0"
|
|
530
540
|
},
|
|
531
541
|
devDependencies: {
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ var commands = [
|
|
|
7
7
|
{ "resourceKey": "account", "methodName": "getMe", "kebabMethod": "get-me", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get current user profile", "httpMethod": "GET", "path": "/me" },
|
|
8
8
|
{ "resourceKey": "account", "methodName": "getMeUsage", "kebabMethod": "get-me-usage", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "Get usage summary", "httpMethod": "GET", "path": "/me/usage" },
|
|
9
9
|
{ "resourceKey": "account", "methodName": "getMeBalance", "kebabMethod": "get-me-balance", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get wallet balance", "httpMethod": "GET", "path": "/me/balance" },
|
|
10
|
+
{ "resourceKey": "account", "methodName": "getBilling", "kebabMethod": "get-billing", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Billing overview", "httpMethod": "GET", "path": "/me/billing" },
|
|
10
11
|
{ "resourceKey": "captain", "methodName": "sendMessage", "kebabMethod": "send-message", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send AI Captain message", "httpMethod": "POST", "path": "/captain/messages" },
|
|
11
12
|
{ "resourceKey": "captain", "methodName": "listConversations", "kebabMethod": "list-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List AI Captain conversations", "httpMethod": "GET", "path": "/captain/conversations" },
|
|
12
13
|
{ "resourceKey": "captain", "methodName": "getConversation", "kebabMethod": "get-conversation", "pathParams": ["conversationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get AI Captain conversation", "httpMethod": "GET", "path": "/captain/conversations/{conversation_id}" },
|
|
@@ -53,6 +54,7 @@ var commands = [
|
|
|
53
54
|
{ "resourceKey": "comments", "methodName": "replyTo", "kebabMethod": "reply-to", "pathParams": ["commentId"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Reply to a comment", "httpMethod": "POST", "path": "/social/comments/{comment_id}/reply" },
|
|
54
55
|
{ "resourceKey": "comments", "methodName": "hide", "kebabMethod": "hide", "pathParams": ["commentId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Hide or unhide a comment", "httpMethod": "POST", "path": "/social/comments/{comment_id}/hide" },
|
|
55
56
|
{ "resourceKey": "comments", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["commentId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a comment", "httpMethod": "DELETE", "path": "/social/comments/{comment_id}" },
|
|
57
|
+
{ "resourceKey": "comments", "methodName": "getPost", "kebabMethod": "get-post", "pathParams": ["postId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get one post's comments (threaded)", "httpMethod": "GET", "path": "/social/comments/{post_id}" },
|
|
56
58
|
{ "resourceKey": "content", "methodName": "rewrite", "kebabMethod": "rewrite", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Rewrite content", "httpMethod": "POST", "path": "/content/rewrite" },
|
|
57
59
|
{ "resourceKey": "content", "methodName": "generateCaption", "kebabMethod": "generate-caption", "pathParams": [], "hasBody": true, "bodyRequired": false, "hasQuery": false, "summary": "Generate a social caption", "httpMethod": "POST", "path": "/content/caption" },
|
|
58
60
|
{ "resourceKey": "crm", "methodName": "deleteContact", "kebabMethod": "delete-contact", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete contact", "httpMethod": "DELETE", "path": "/contacts/{id}" },
|
|
@@ -69,6 +71,8 @@ var commands = [
|
|
|
69
71
|
{ "resourceKey": "contacts", "methodName": "addNote", "kebabMethod": "add-note", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Add a note to a contact", "httpMethod": "POST", "path": "/contacts/{id}/notes" },
|
|
70
72
|
{ "resourceKey": "contacts", "methodName": "enroll", "kebabMethod": "enroll", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Enroll a contact in an automation", "httpMethod": "POST", "path": "/contacts/{id}/enroll" },
|
|
71
73
|
{ "resourceKey": "contacts", "methodName": "addMessage", "kebabMethod": "add-message", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Log a message on a contact's timeline", "httpMethod": "POST", "path": "/contacts/{id}/messages" },
|
|
74
|
+
{ "resourceKey": "contacts", "methodName": "setField", "kebabMethod": "set-field", "pathParams": ["id", "slug"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Set one custom field", "httpMethod": "PUT", "path": "/contacts/{id}/fields/{slug}" },
|
|
75
|
+
{ "resourceKey": "contacts", "methodName": "clearField", "kebabMethod": "clear-field", "pathParams": ["id", "slug"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Clear one custom field", "httpMethod": "DELETE", "path": "/contacts/{id}/fields/{slug}" },
|
|
72
76
|
{ "resourceKey": "customFields", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List custom fields", "httpMethod": "GET", "path": "/custom-fields" },
|
|
73
77
|
{ "resourceKey": "customFields", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a custom field", "httpMethod": "POST", "path": "/custom-fields" },
|
|
74
78
|
{ "resourceKey": "customFields", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a custom field", "httpMethod": "DELETE", "path": "/custom-fields/{id}" },
|
|
@@ -245,6 +249,12 @@ var commands = [
|
|
|
245
249
|
{ "resourceKey": "webhooks", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete webhook", "httpMethod": "DELETE", "path": "/webhooks/{id}" },
|
|
246
250
|
{ "resourceKey": "webhooks", "methodName": "listLogs", "kebabMethod": "list-logs", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List webhook delivery logs", "httpMethod": "GET", "path": "/webhooks/logs" },
|
|
247
251
|
{ "resourceKey": "webhooks", "methodName": "test", "kebabMethod": "test", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Send test webhook", "httpMethod": "POST", "path": "/webhooks/{id}/test" },
|
|
252
|
+
{ "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
|
+
{ "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
|
+
{ "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
|
+
{ "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
|
+
{ "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
|
+
{ "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" },
|
|
248
258
|
{ "resourceKey": "workspaces", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List workspaces (sub-accounts)", "httpMethod": "GET", "path": "/workspaces" },
|
|
249
259
|
{ "resourceKey": "workspaces", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a workspace (sub-account)", "httpMethod": "POST", "path": "/workspaces" },
|
|
250
260
|
{ "resourceKey": "workspaces", "methodName": "bulkAction", "kebabMethod": "bulk-action", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk sub-account action", "httpMethod": "POST", "path": "/workspaces/bulk" },
|
|
@@ -423,7 +433,7 @@ function runLogout() {
|
|
|
423
433
|
// package.json
|
|
424
434
|
var package_default = {
|
|
425
435
|
name: "@smartlyqofficial/cli",
|
|
426
|
-
version: "0.1.
|
|
436
|
+
version: "0.1.15",
|
|
427
437
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
428
438
|
keywords: [
|
|
429
439
|
"smartlyq",
|
|
@@ -473,7 +483,7 @@ var package_default = {
|
|
|
473
483
|
prepublishOnly: "npm run build"
|
|
474
484
|
},
|
|
475
485
|
dependencies: {
|
|
476
|
-
"@smartlyqofficial/node": "^0.1.
|
|
486
|
+
"@smartlyqofficial/node": "^0.1.15",
|
|
477
487
|
commander: "^12.1.0"
|
|
478
488
|
},
|
|
479
489
|
devDependencies: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartlyqofficial/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
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.15",
|
|
54
54
|
"commander": "^12.1.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|