@smartlyqofficial/cli 0.1.12 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -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
 
@@ -253,6 +257,7 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
253
257
  | `smartlyq media get <media-id>` | `GET /media/{media_id}` | Get media |
254
258
  | `smartlyq media delete <media-id>` | `DELETE /media/{media_id}` | Delete media |
255
259
  | `smartlyq media get-upload-url --data <json>` | `POST /media/upload-url` | Get presigned upload URL |
260
+ | `smartlyq media upload-direct --data <json>` | `POST /media/upload-direct` | Upload a file directly |
256
261
 
257
262
  ### Presentations
258
263
 
@@ -270,6 +275,7 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
270
275
  | `smartlyq profiles list [--query <query>]` | `GET /profiles` | List profiles |
271
276
  | `smartlyq profiles create --data <json>` | `POST /profiles` | Create a profile |
272
277
  | `smartlyq profiles get <id>` | `GET /profiles/{id}` | Get a profile |
278
+ | `smartlyq profiles update <id> --data <json>` | `PATCH /profiles/{id}` | Update a profile |
273
279
  | `smartlyq profiles delete <id> --data <json>` | `DELETE /profiles/{id}` | Delete a profile |
274
280
  | `smartlyq profiles list-accounts <id>` | `GET /profiles/{id}/accounts` | List a profile's connected accounts |
275
281
  | `smartlyq profiles pause <id>` | `POST /profiles/{id}/pause` | Pause a profile |
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}" },
@@ -97,6 +101,7 @@ var commands = [
97
101
  { "resourceKey": "media", "methodName": "get", "kebabMethod": "get", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get media", "httpMethod": "GET", "path": "/media/{media_id}" },
98
102
  { "resourceKey": "media", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete media", "httpMethod": "DELETE", "path": "/media/{media_id}" },
99
103
  { "resourceKey": "media", "methodName": "getUploadUrl", "kebabMethod": "get-upload-url", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Get presigned upload URL", "httpMethod": "POST", "path": "/media/upload-url" },
104
+ { "resourceKey": "media", "methodName": "uploadDirect", "kebabMethod": "upload-direct", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Upload a file directly", "httpMethod": "POST", "path": "/media/upload-direct" },
100
105
  { "resourceKey": "presentations", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate presentation", "httpMethod": "POST", "path": "/presentations/generate" },
101
106
  { "resourceKey": "presentations", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List presentations", "httpMethod": "GET", "path": "/presentations" },
102
107
  { "resourceKey": "presentations", "methodName": "get", "kebabMethod": "get", "pathParams": ["presentationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get presentation", "httpMethod": "GET", "path": "/presentations/{presentation_id}" },
@@ -104,6 +109,7 @@ var commands = [
104
109
  { "resourceKey": "profiles", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List profiles", "httpMethod": "GET", "path": "/profiles" },
105
110
  { "resourceKey": "profiles", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a profile", "httpMethod": "POST", "path": "/profiles" },
106
111
  { "resourceKey": "profiles", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a profile", "httpMethod": "GET", "path": "/profiles/{id}" },
112
+ { "resourceKey": "profiles", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a profile", "httpMethod": "PATCH", "path": "/profiles/{id}" },
107
113
  { "resourceKey": "profiles", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Delete a profile", "httpMethod": "DELETE", "path": "/profiles/{id}" },
108
114
  { "resourceKey": "profiles", "methodName": "listAccounts", "kebabMethod": "list-accounts", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List a profile's connected accounts", "httpMethod": "GET", "path": "/profiles/{id}/accounts" },
109
115
  { "resourceKey": "profiles", "methodName": "pause", "kebabMethod": "pause", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause a profile", "httpMethod": "POST", "path": "/profiles/{id}/pause" },
@@ -423,7 +429,7 @@ function runLogout() {
423
429
  // package.json
424
430
  var package_default = {
425
431
  name: "@smartlyqofficial/cli",
426
- version: "0.1.12",
432
+ version: "0.1.14",
427
433
  description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
428
434
  keywords: [
429
435
  "smartlyq",
@@ -473,7 +479,7 @@ var package_default = {
473
479
  prepublishOnly: "npm run build"
474
480
  },
475
481
  dependencies: {
476
- "@smartlyqofficial/node": "^0.1.12",
482
+ "@smartlyqofficial/node": "^0.1.14",
477
483
  commander: "^12.1.0"
478
484
  },
479
485
  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}" },
@@ -147,6 +151,7 @@ var commands = [
147
151
  { "resourceKey": "media", "methodName": "get", "kebabMethod": "get", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get media", "httpMethod": "GET", "path": "/media/{media_id}" },
148
152
  { "resourceKey": "media", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete media", "httpMethod": "DELETE", "path": "/media/{media_id}" },
149
153
  { "resourceKey": "media", "methodName": "getUploadUrl", "kebabMethod": "get-upload-url", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Get presigned upload URL", "httpMethod": "POST", "path": "/media/upload-url" },
154
+ { "resourceKey": "media", "methodName": "uploadDirect", "kebabMethod": "upload-direct", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Upload a file directly", "httpMethod": "POST", "path": "/media/upload-direct" },
150
155
  { "resourceKey": "presentations", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate presentation", "httpMethod": "POST", "path": "/presentations/generate" },
151
156
  { "resourceKey": "presentations", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List presentations", "httpMethod": "GET", "path": "/presentations" },
152
157
  { "resourceKey": "presentations", "methodName": "get", "kebabMethod": "get", "pathParams": ["presentationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get presentation", "httpMethod": "GET", "path": "/presentations/{presentation_id}" },
@@ -154,6 +159,7 @@ var commands = [
154
159
  { "resourceKey": "profiles", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List profiles", "httpMethod": "GET", "path": "/profiles" },
155
160
  { "resourceKey": "profiles", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a profile", "httpMethod": "POST", "path": "/profiles" },
156
161
  { "resourceKey": "profiles", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a profile", "httpMethod": "GET", "path": "/profiles/{id}" },
162
+ { "resourceKey": "profiles", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a profile", "httpMethod": "PATCH", "path": "/profiles/{id}" },
157
163
  { "resourceKey": "profiles", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Delete a profile", "httpMethod": "DELETE", "path": "/profiles/{id}" },
158
164
  { "resourceKey": "profiles", "methodName": "listAccounts", "kebabMethod": "list-accounts", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List a profile's connected accounts", "httpMethod": "GET", "path": "/profiles/{id}/accounts" },
159
165
  { "resourceKey": "profiles", "methodName": "pause", "kebabMethod": "pause", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause a profile", "httpMethod": "POST", "path": "/profiles/{id}/pause" },
@@ -473,7 +479,7 @@ function runLogout() {
473
479
  // package.json
474
480
  var package_default = {
475
481
  name: "@smartlyqofficial/cli",
476
- version: "0.1.12",
482
+ version: "0.1.14",
477
483
  description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
478
484
  keywords: [
479
485
  "smartlyq",
@@ -523,7 +529,7 @@ var package_default = {
523
529
  prepublishOnly: "npm run build"
524
530
  },
525
531
  dependencies: {
526
- "@smartlyqofficial/node": "^0.1.12",
532
+ "@smartlyqofficial/node": "^0.1.14",
527
533
  commander: "^12.1.0"
528
534
  },
529
535
  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}" },
@@ -95,6 +99,7 @@ var commands = [
95
99
  { "resourceKey": "media", "methodName": "get", "kebabMethod": "get", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get media", "httpMethod": "GET", "path": "/media/{media_id}" },
96
100
  { "resourceKey": "media", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete media", "httpMethod": "DELETE", "path": "/media/{media_id}" },
97
101
  { "resourceKey": "media", "methodName": "getUploadUrl", "kebabMethod": "get-upload-url", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Get presigned upload URL", "httpMethod": "POST", "path": "/media/upload-url" },
102
+ { "resourceKey": "media", "methodName": "uploadDirect", "kebabMethod": "upload-direct", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Upload a file directly", "httpMethod": "POST", "path": "/media/upload-direct" },
98
103
  { "resourceKey": "presentations", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate presentation", "httpMethod": "POST", "path": "/presentations/generate" },
99
104
  { "resourceKey": "presentations", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List presentations", "httpMethod": "GET", "path": "/presentations" },
100
105
  { "resourceKey": "presentations", "methodName": "get", "kebabMethod": "get", "pathParams": ["presentationId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get presentation", "httpMethod": "GET", "path": "/presentations/{presentation_id}" },
@@ -102,6 +107,7 @@ var commands = [
102
107
  { "resourceKey": "profiles", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List profiles", "httpMethod": "GET", "path": "/profiles" },
103
108
  { "resourceKey": "profiles", "methodName": "create", "kebabMethod": "create", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a profile", "httpMethod": "POST", "path": "/profiles" },
104
109
  { "resourceKey": "profiles", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a profile", "httpMethod": "GET", "path": "/profiles/{id}" },
110
+ { "resourceKey": "profiles", "methodName": "update", "kebabMethod": "update", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a profile", "httpMethod": "PATCH", "path": "/profiles/{id}" },
105
111
  { "resourceKey": "profiles", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Delete a profile", "httpMethod": "DELETE", "path": "/profiles/{id}" },
106
112
  { "resourceKey": "profiles", "methodName": "listAccounts", "kebabMethod": "list-accounts", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List a profile's connected accounts", "httpMethod": "GET", "path": "/profiles/{id}/accounts" },
107
113
  { "resourceKey": "profiles", "methodName": "pause", "kebabMethod": "pause", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause a profile", "httpMethod": "POST", "path": "/profiles/{id}/pause" },
@@ -421,7 +427,7 @@ function runLogout() {
421
427
  // package.json
422
428
  var package_default = {
423
429
  name: "@smartlyqofficial/cli",
424
- version: "0.1.12",
430
+ version: "0.1.14",
425
431
  description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
426
432
  keywords: [
427
433
  "smartlyq",
@@ -471,7 +477,7 @@ var package_default = {
471
477
  prepublishOnly: "npm run build"
472
478
  },
473
479
  dependencies: {
474
- "@smartlyqofficial/node": "^0.1.12",
480
+ "@smartlyqofficial/node": "^0.1.14",
475
481
  commander: "^12.1.0"
476
482
  },
477
483
  devDependencies: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/cli",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
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.12",
53
+ "@smartlyqofficial/node": "^0.1.14",
54
54
  "commander": "^12.1.0"
55
55
  },
56
56
  "devDependencies": {