@smartlyqofficial/cli 0.1.24 → 0.1.26
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 +43 -0
- package/dist/cli.js +40 -2
- package/dist/index.cjs +40 -2
- package/dist/index.js +40 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -87,6 +87,48 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
87
87
|
| `smartlyq account get-me-balance` | `GET /me/balance` | Get wallet balance |
|
|
88
88
|
| `smartlyq account get-billing` | `GET /me/billing` | Billing overview |
|
|
89
89
|
|
|
90
|
+
### Ads
|
|
91
|
+
|
|
92
|
+
| Command | Endpoint | Description |
|
|
93
|
+
| --- | --- | --- |
|
|
94
|
+
| `smartlyq ads list-campaigns [--query <query>]` | `GET /ads/campaigns` | List campaigns |
|
|
95
|
+
| `smartlyq ads create-campaign --data <json>` | `POST /ads/campaigns` | Create a campaign |
|
|
96
|
+
| `smartlyq ads get-campaign <id>` | `GET /ads/campaigns/{id}` | Get a campaign |
|
|
97
|
+
| `smartlyq ads update-campaign <id> --data <json>` | `PATCH /ads/campaigns/{id}` | Update a campaign |
|
|
98
|
+
| `smartlyq ads delete-campaign <id>` | `DELETE /ads/campaigns/{id}` | Delete a campaign |
|
|
99
|
+
| `smartlyq ads pause-campaign <id>` | `POST /ads/campaigns/{id}/pause` | Pause a campaign |
|
|
100
|
+
| `smartlyq ads resume-campaign <id>` | `POST /ads/campaigns/{id}/resume` | Resume a campaign |
|
|
101
|
+
| `smartlyq ads duplicate-campaign <id>` | `POST /ads/campaigns/{id}/duplicate` | Duplicate a campaign |
|
|
102
|
+
| `smartlyq ads archive-campaign <id>` | `POST /ads/campaigns/{id}/archive` | Archive a campaign |
|
|
103
|
+
| `smartlyq ads bulk-campaign-status --data <json>` | `POST /ads/campaigns/bulk-status` | Bulk pause/resume campaigns |
|
|
104
|
+
| `smartlyq ads list-sets [--query <query>]` | `GET /ads/ad-sets` | List ad sets |
|
|
105
|
+
| `smartlyq ads get-set <id>` | `GET /ads/ad-sets/{id}` | Get an ad set |
|
|
106
|
+
| `smartlyq ads delete-set <id>` | `DELETE /ads/ad-sets/{id}` | Delete an ad set |
|
|
107
|
+
| `smartlyq ads pause-set <id>` | `POST /ads/ad-sets/{id}/pause` | Pause an ad set |
|
|
108
|
+
| `smartlyq ads resume-set <id>` | `POST /ads/ad-sets/{id}/resume` | Resume an ad set |
|
|
109
|
+
| `smartlyq ads duplicate-set <id>` | `POST /ads/ad-sets/{id}/duplicate` | Duplicate an ad set |
|
|
110
|
+
| `smartlyq ads archive-set <id>` | `POST /ads/ad-sets/{id}/archive` | Archive an ad set |
|
|
111
|
+
| `smartlyq ads list [--query <query>]` | `GET /ads/ads` | List ads |
|
|
112
|
+
| `smartlyq ads get <id>` | `GET /ads/ads/{id}` | Get an ad |
|
|
113
|
+
| `smartlyq ads delete <id>` | `DELETE /ads/ads/{id}` | Delete an ad |
|
|
114
|
+
| `smartlyq ads pause <id>` | `POST /ads/ads/{id}/pause` | Pause an ad |
|
|
115
|
+
| `smartlyq ads resume <id>` | `POST /ads/ads/{id}/resume` | Resume an ad |
|
|
116
|
+
| `smartlyq ads duplicate <id>` | `POST /ads/ads/{id}/duplicate` | Duplicate an ad |
|
|
117
|
+
| `smartlyq ads archive <id>` | `POST /ads/ads/{id}/archive` | Archive an ad |
|
|
118
|
+
| `smartlyq ads list-audiences [--query <query>]` | `GET /ads/audiences` | List audiences |
|
|
119
|
+
| `smartlyq ads list-pixels [--query <query>]` | `GET /ads/pixels` | List pixels / conversion destinations |
|
|
120
|
+
| `smartlyq ads list-lead-forms [--query <query>]` | `GET /ads/lead-forms` | List lead forms |
|
|
121
|
+
| `smartlyq ads create-lead-form --data <json>` | `POST /ads/lead-forms` | Create a lead form |
|
|
122
|
+
| `smartlyq ads list-creatives [--query <query>]` | `GET /ads/creatives` | List creatives |
|
|
123
|
+
| `smartlyq ads create-creative --data <json>` | `POST /ads/creatives` | Create a creative |
|
|
124
|
+
| `smartlyq ads update-creative <id> --data <json>` | `PATCH /ads/creatives/{id}` | Update a creative |
|
|
125
|
+
| `smartlyq ads delete-creative <id>` | `DELETE /ads/creatives/{id}` | Delete a creative |
|
|
126
|
+
| `smartlyq ads list-accounts` | `GET /ads/accounts` | List connected ad accounts |
|
|
127
|
+
| `smartlyq ads accounts-diagnostics` | `GET /ads/accounts/diagnostics` | Account health and rate-limit diagnostics |
|
|
128
|
+
| `smartlyq ads list-audit-log [--query <query>]` | `GET /ads/audit-log` | List audit log entries |
|
|
129
|
+
| `smartlyq ads audience-estimate --data <json>` | `POST /ads/estimate` | Audience-size estimate |
|
|
130
|
+
| `smartlyq ads sync-accounts` | `POST /ads/sync` | Trigger an account sync |
|
|
131
|
+
|
|
90
132
|
### AI Captain
|
|
91
133
|
|
|
92
134
|
| Command | Endpoint | Description |
|
|
@@ -277,6 +319,7 @@ Full request/response documentation lives at [docs.smartlyq.com](https://docs.sm
|
|
|
277
319
|
| `smartlyq media get <media-id>` | `GET /media/{media_id}` | Get media |
|
|
278
320
|
| `smartlyq media delete <media-id>` | `DELETE /media/{media_id}` | Delete media |
|
|
279
321
|
| `smartlyq media get-upload-url --data <json>` | `POST /media/upload-url` | Get presigned upload URL |
|
|
322
|
+
| `smartlyq media confirm-upload <media-id>` | `POST /media/{media_id}/confirm` | Confirm a presigned upload |
|
|
280
323
|
| `smartlyq media upload-direct --data <json>` | `POST /media/upload-direct` | Upload a file directly |
|
|
281
324
|
|
|
282
325
|
### Presentations
|
package/dist/cli.js
CHANGED
|
@@ -10,6 +10,43 @@ var commands = [
|
|
|
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
12
|
{ "resourceKey": "account", "methodName": "getBilling", "kebabMethod": "get-billing", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Billing overview", "httpMethod": "GET", "path": "/me/billing" },
|
|
13
|
+
{ "resourceKey": "ads", "methodName": "listCampaigns", "kebabMethod": "list-campaigns", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List campaigns", "httpMethod": "GET", "path": "/ads/campaigns" },
|
|
14
|
+
{ "resourceKey": "ads", "methodName": "createCampaign", "kebabMethod": "create-campaign", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a campaign", "httpMethod": "POST", "path": "/ads/campaigns" },
|
|
15
|
+
{ "resourceKey": "ads", "methodName": "getCampaign", "kebabMethod": "get-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a campaign", "httpMethod": "GET", "path": "/ads/campaigns/{id}" },
|
|
16
|
+
{ "resourceKey": "ads", "methodName": "updateCampaign", "kebabMethod": "update-campaign", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a campaign", "httpMethod": "PATCH", "path": "/ads/campaigns/{id}" },
|
|
17
|
+
{ "resourceKey": "ads", "methodName": "deleteCampaign", "kebabMethod": "delete-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a campaign", "httpMethod": "DELETE", "path": "/ads/campaigns/{id}" },
|
|
18
|
+
{ "resourceKey": "ads", "methodName": "pauseCampaign", "kebabMethod": "pause-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/pause" },
|
|
19
|
+
{ "resourceKey": "ads", "methodName": "resumeCampaign", "kebabMethod": "resume-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Resume a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/resume" },
|
|
20
|
+
{ "resourceKey": "ads", "methodName": "duplicateCampaign", "kebabMethod": "duplicate-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Duplicate a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/duplicate" },
|
|
21
|
+
{ "resourceKey": "ads", "methodName": "archiveCampaign", "kebabMethod": "archive-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Archive a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/archive" },
|
|
22
|
+
{ "resourceKey": "ads", "methodName": "bulkCampaignStatus", "kebabMethod": "bulk-campaign-status", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk pause/resume campaigns", "httpMethod": "POST", "path": "/ads/campaigns/bulk-status" },
|
|
23
|
+
{ "resourceKey": "ads", "methodName": "listSets", "kebabMethod": "list-sets", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List ad sets", "httpMethod": "GET", "path": "/ads/ad-sets" },
|
|
24
|
+
{ "resourceKey": "ads", "methodName": "getSet", "kebabMethod": "get-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get an ad set", "httpMethod": "GET", "path": "/ads/ad-sets/{id}" },
|
|
25
|
+
{ "resourceKey": "ads", "methodName": "deleteSet", "kebabMethod": "delete-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete an ad set", "httpMethod": "DELETE", "path": "/ads/ad-sets/{id}" },
|
|
26
|
+
{ "resourceKey": "ads", "methodName": "pauseSet", "kebabMethod": "pause-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/pause" },
|
|
27
|
+
{ "resourceKey": "ads", "methodName": "resumeSet", "kebabMethod": "resume-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Resume an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/resume" },
|
|
28
|
+
{ "resourceKey": "ads", "methodName": "duplicateSet", "kebabMethod": "duplicate-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Duplicate an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/duplicate" },
|
|
29
|
+
{ "resourceKey": "ads", "methodName": "archiveSet", "kebabMethod": "archive-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Archive an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/archive" },
|
|
30
|
+
{ "resourceKey": "ads", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List ads", "httpMethod": "GET", "path": "/ads/ads" },
|
|
31
|
+
{ "resourceKey": "ads", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get an ad", "httpMethod": "GET", "path": "/ads/ads/{id}" },
|
|
32
|
+
{ "resourceKey": "ads", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete an ad", "httpMethod": "DELETE", "path": "/ads/ads/{id}" },
|
|
33
|
+
{ "resourceKey": "ads", "methodName": "pause", "kebabMethod": "pause", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/pause" },
|
|
34
|
+
{ "resourceKey": "ads", "methodName": "resume", "kebabMethod": "resume", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Resume an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/resume" },
|
|
35
|
+
{ "resourceKey": "ads", "methodName": "duplicate", "kebabMethod": "duplicate", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Duplicate an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/duplicate" },
|
|
36
|
+
{ "resourceKey": "ads", "methodName": "archive", "kebabMethod": "archive", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Archive an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/archive" },
|
|
37
|
+
{ "resourceKey": "ads", "methodName": "listAudiences", "kebabMethod": "list-audiences", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List audiences", "httpMethod": "GET", "path": "/ads/audiences" },
|
|
38
|
+
{ "resourceKey": "ads", "methodName": "listPixels", "kebabMethod": "list-pixels", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List pixels / conversion destinations", "httpMethod": "GET", "path": "/ads/pixels" },
|
|
39
|
+
{ "resourceKey": "ads", "methodName": "listLeadForms", "kebabMethod": "list-lead-forms", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List lead forms", "httpMethod": "GET", "path": "/ads/lead-forms" },
|
|
40
|
+
{ "resourceKey": "ads", "methodName": "createLeadForm", "kebabMethod": "create-lead-form", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a lead form", "httpMethod": "POST", "path": "/ads/lead-forms" },
|
|
41
|
+
{ "resourceKey": "ads", "methodName": "listCreatives", "kebabMethod": "list-creatives", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List creatives", "httpMethod": "GET", "path": "/ads/creatives" },
|
|
42
|
+
{ "resourceKey": "ads", "methodName": "createCreative", "kebabMethod": "create-creative", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a creative", "httpMethod": "POST", "path": "/ads/creatives" },
|
|
43
|
+
{ "resourceKey": "ads", "methodName": "updateCreative", "kebabMethod": "update-creative", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a creative", "httpMethod": "PATCH", "path": "/ads/creatives/{id}" },
|
|
44
|
+
{ "resourceKey": "ads", "methodName": "deleteCreative", "kebabMethod": "delete-creative", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a creative", "httpMethod": "DELETE", "path": "/ads/creatives/{id}" },
|
|
45
|
+
{ "resourceKey": "ads", "methodName": "listAccounts", "kebabMethod": "list-accounts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List connected ad accounts", "httpMethod": "GET", "path": "/ads/accounts" },
|
|
46
|
+
{ "resourceKey": "ads", "methodName": "accountsDiagnostics", "kebabMethod": "accounts-diagnostics", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Account health and rate-limit diagnostics", "httpMethod": "GET", "path": "/ads/accounts/diagnostics" },
|
|
47
|
+
{ "resourceKey": "ads", "methodName": "listAuditLog", "kebabMethod": "list-audit-log", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List audit log entries", "httpMethod": "GET", "path": "/ads/audit-log" },
|
|
48
|
+
{ "resourceKey": "ads", "methodName": "audienceEstimate", "kebabMethod": "audience-estimate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Audience-size estimate", "httpMethod": "POST", "path": "/ads/estimate" },
|
|
49
|
+
{ "resourceKey": "ads", "methodName": "syncAccounts", "kebabMethod": "sync-accounts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Trigger an account sync", "httpMethod": "POST", "path": "/ads/sync" },
|
|
13
50
|
{ "resourceKey": "captain", "methodName": "sendMessage", "kebabMethod": "send-message", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send AI Captain message", "httpMethod": "POST", "path": "/captain/messages" },
|
|
14
51
|
{ "resourceKey": "captain", "methodName": "listConversations", "kebabMethod": "list-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List AI Captain conversations", "httpMethod": "GET", "path": "/captain/conversations" },
|
|
15
52
|
{ "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}" },
|
|
@@ -116,6 +153,7 @@ var commands = [
|
|
|
116
153
|
{ "resourceKey": "media", "methodName": "get", "kebabMethod": "get", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get media", "httpMethod": "GET", "path": "/media/{media_id}" },
|
|
117
154
|
{ "resourceKey": "media", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete media", "httpMethod": "DELETE", "path": "/media/{media_id}" },
|
|
118
155
|
{ "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" },
|
|
156
|
+
{ "resourceKey": "media", "methodName": "confirmUpload", "kebabMethod": "confirm-upload", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Confirm a presigned upload", "httpMethod": "POST", "path": "/media/{media_id}/confirm" },
|
|
119
157
|
{ "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" },
|
|
120
158
|
{ "resourceKey": "presentations", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate presentation", "httpMethod": "POST", "path": "/presentations/generate" },
|
|
121
159
|
{ "resourceKey": "presentations", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List presentations", "httpMethod": "GET", "path": "/presentations" },
|
|
@@ -488,7 +526,7 @@ function runLogout() {
|
|
|
488
526
|
// package.json
|
|
489
527
|
var package_default = {
|
|
490
528
|
name: "@smartlyqofficial/cli",
|
|
491
|
-
version: "0.1.
|
|
529
|
+
version: "0.1.26",
|
|
492
530
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
493
531
|
keywords: [
|
|
494
532
|
"smartlyq",
|
|
@@ -538,7 +576,7 @@ var package_default = {
|
|
|
538
576
|
prepublishOnly: "npm run build"
|
|
539
577
|
},
|
|
540
578
|
dependencies: {
|
|
541
|
-
"@smartlyqofficial/node": "^0.1.
|
|
579
|
+
"@smartlyqofficial/node": "^0.1.25",
|
|
542
580
|
commander: "^12.1.0"
|
|
543
581
|
},
|
|
544
582
|
devDependencies: {
|
package/dist/index.cjs
CHANGED
|
@@ -60,6 +60,43 @@ var commands = [
|
|
|
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
62
|
{ "resourceKey": "account", "methodName": "getBilling", "kebabMethod": "get-billing", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Billing overview", "httpMethod": "GET", "path": "/me/billing" },
|
|
63
|
+
{ "resourceKey": "ads", "methodName": "listCampaigns", "kebabMethod": "list-campaigns", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List campaigns", "httpMethod": "GET", "path": "/ads/campaigns" },
|
|
64
|
+
{ "resourceKey": "ads", "methodName": "createCampaign", "kebabMethod": "create-campaign", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a campaign", "httpMethod": "POST", "path": "/ads/campaigns" },
|
|
65
|
+
{ "resourceKey": "ads", "methodName": "getCampaign", "kebabMethod": "get-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a campaign", "httpMethod": "GET", "path": "/ads/campaigns/{id}" },
|
|
66
|
+
{ "resourceKey": "ads", "methodName": "updateCampaign", "kebabMethod": "update-campaign", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a campaign", "httpMethod": "PATCH", "path": "/ads/campaigns/{id}" },
|
|
67
|
+
{ "resourceKey": "ads", "methodName": "deleteCampaign", "kebabMethod": "delete-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a campaign", "httpMethod": "DELETE", "path": "/ads/campaigns/{id}" },
|
|
68
|
+
{ "resourceKey": "ads", "methodName": "pauseCampaign", "kebabMethod": "pause-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/pause" },
|
|
69
|
+
{ "resourceKey": "ads", "methodName": "resumeCampaign", "kebabMethod": "resume-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Resume a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/resume" },
|
|
70
|
+
{ "resourceKey": "ads", "methodName": "duplicateCampaign", "kebabMethod": "duplicate-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Duplicate a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/duplicate" },
|
|
71
|
+
{ "resourceKey": "ads", "methodName": "archiveCampaign", "kebabMethod": "archive-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Archive a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/archive" },
|
|
72
|
+
{ "resourceKey": "ads", "methodName": "bulkCampaignStatus", "kebabMethod": "bulk-campaign-status", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk pause/resume campaigns", "httpMethod": "POST", "path": "/ads/campaigns/bulk-status" },
|
|
73
|
+
{ "resourceKey": "ads", "methodName": "listSets", "kebabMethod": "list-sets", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List ad sets", "httpMethod": "GET", "path": "/ads/ad-sets" },
|
|
74
|
+
{ "resourceKey": "ads", "methodName": "getSet", "kebabMethod": "get-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get an ad set", "httpMethod": "GET", "path": "/ads/ad-sets/{id}" },
|
|
75
|
+
{ "resourceKey": "ads", "methodName": "deleteSet", "kebabMethod": "delete-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete an ad set", "httpMethod": "DELETE", "path": "/ads/ad-sets/{id}" },
|
|
76
|
+
{ "resourceKey": "ads", "methodName": "pauseSet", "kebabMethod": "pause-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/pause" },
|
|
77
|
+
{ "resourceKey": "ads", "methodName": "resumeSet", "kebabMethod": "resume-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Resume an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/resume" },
|
|
78
|
+
{ "resourceKey": "ads", "methodName": "duplicateSet", "kebabMethod": "duplicate-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Duplicate an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/duplicate" },
|
|
79
|
+
{ "resourceKey": "ads", "methodName": "archiveSet", "kebabMethod": "archive-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Archive an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/archive" },
|
|
80
|
+
{ "resourceKey": "ads", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List ads", "httpMethod": "GET", "path": "/ads/ads" },
|
|
81
|
+
{ "resourceKey": "ads", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get an ad", "httpMethod": "GET", "path": "/ads/ads/{id}" },
|
|
82
|
+
{ "resourceKey": "ads", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete an ad", "httpMethod": "DELETE", "path": "/ads/ads/{id}" },
|
|
83
|
+
{ "resourceKey": "ads", "methodName": "pause", "kebabMethod": "pause", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/pause" },
|
|
84
|
+
{ "resourceKey": "ads", "methodName": "resume", "kebabMethod": "resume", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Resume an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/resume" },
|
|
85
|
+
{ "resourceKey": "ads", "methodName": "duplicate", "kebabMethod": "duplicate", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Duplicate an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/duplicate" },
|
|
86
|
+
{ "resourceKey": "ads", "methodName": "archive", "kebabMethod": "archive", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Archive an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/archive" },
|
|
87
|
+
{ "resourceKey": "ads", "methodName": "listAudiences", "kebabMethod": "list-audiences", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List audiences", "httpMethod": "GET", "path": "/ads/audiences" },
|
|
88
|
+
{ "resourceKey": "ads", "methodName": "listPixels", "kebabMethod": "list-pixels", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List pixels / conversion destinations", "httpMethod": "GET", "path": "/ads/pixels" },
|
|
89
|
+
{ "resourceKey": "ads", "methodName": "listLeadForms", "kebabMethod": "list-lead-forms", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List lead forms", "httpMethod": "GET", "path": "/ads/lead-forms" },
|
|
90
|
+
{ "resourceKey": "ads", "methodName": "createLeadForm", "kebabMethod": "create-lead-form", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a lead form", "httpMethod": "POST", "path": "/ads/lead-forms" },
|
|
91
|
+
{ "resourceKey": "ads", "methodName": "listCreatives", "kebabMethod": "list-creatives", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List creatives", "httpMethod": "GET", "path": "/ads/creatives" },
|
|
92
|
+
{ "resourceKey": "ads", "methodName": "createCreative", "kebabMethod": "create-creative", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a creative", "httpMethod": "POST", "path": "/ads/creatives" },
|
|
93
|
+
{ "resourceKey": "ads", "methodName": "updateCreative", "kebabMethod": "update-creative", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a creative", "httpMethod": "PATCH", "path": "/ads/creatives/{id}" },
|
|
94
|
+
{ "resourceKey": "ads", "methodName": "deleteCreative", "kebabMethod": "delete-creative", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a creative", "httpMethod": "DELETE", "path": "/ads/creatives/{id}" },
|
|
95
|
+
{ "resourceKey": "ads", "methodName": "listAccounts", "kebabMethod": "list-accounts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List connected ad accounts", "httpMethod": "GET", "path": "/ads/accounts" },
|
|
96
|
+
{ "resourceKey": "ads", "methodName": "accountsDiagnostics", "kebabMethod": "accounts-diagnostics", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Account health and rate-limit diagnostics", "httpMethod": "GET", "path": "/ads/accounts/diagnostics" },
|
|
97
|
+
{ "resourceKey": "ads", "methodName": "listAuditLog", "kebabMethod": "list-audit-log", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List audit log entries", "httpMethod": "GET", "path": "/ads/audit-log" },
|
|
98
|
+
{ "resourceKey": "ads", "methodName": "audienceEstimate", "kebabMethod": "audience-estimate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Audience-size estimate", "httpMethod": "POST", "path": "/ads/estimate" },
|
|
99
|
+
{ "resourceKey": "ads", "methodName": "syncAccounts", "kebabMethod": "sync-accounts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Trigger an account sync", "httpMethod": "POST", "path": "/ads/sync" },
|
|
63
100
|
{ "resourceKey": "captain", "methodName": "sendMessage", "kebabMethod": "send-message", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send AI Captain message", "httpMethod": "POST", "path": "/captain/messages" },
|
|
64
101
|
{ "resourceKey": "captain", "methodName": "listConversations", "kebabMethod": "list-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List AI Captain conversations", "httpMethod": "GET", "path": "/captain/conversations" },
|
|
65
102
|
{ "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}" },
|
|
@@ -166,6 +203,7 @@ var commands = [
|
|
|
166
203
|
{ "resourceKey": "media", "methodName": "get", "kebabMethod": "get", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get media", "httpMethod": "GET", "path": "/media/{media_id}" },
|
|
167
204
|
{ "resourceKey": "media", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete media", "httpMethod": "DELETE", "path": "/media/{media_id}" },
|
|
168
205
|
{ "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" },
|
|
206
|
+
{ "resourceKey": "media", "methodName": "confirmUpload", "kebabMethod": "confirm-upload", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Confirm a presigned upload", "httpMethod": "POST", "path": "/media/{media_id}/confirm" },
|
|
169
207
|
{ "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" },
|
|
170
208
|
{ "resourceKey": "presentations", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate presentation", "httpMethod": "POST", "path": "/presentations/generate" },
|
|
171
209
|
{ "resourceKey": "presentations", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List presentations", "httpMethod": "GET", "path": "/presentations" },
|
|
@@ -538,7 +576,7 @@ function runLogout() {
|
|
|
538
576
|
// package.json
|
|
539
577
|
var package_default = {
|
|
540
578
|
name: "@smartlyqofficial/cli",
|
|
541
|
-
version: "0.1.
|
|
579
|
+
version: "0.1.26",
|
|
542
580
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
543
581
|
keywords: [
|
|
544
582
|
"smartlyq",
|
|
@@ -588,7 +626,7 @@ var package_default = {
|
|
|
588
626
|
prepublishOnly: "npm run build"
|
|
589
627
|
},
|
|
590
628
|
dependencies: {
|
|
591
|
-
"@smartlyqofficial/node": "^0.1.
|
|
629
|
+
"@smartlyqofficial/node": "^0.1.25",
|
|
592
630
|
commander: "^12.1.0"
|
|
593
631
|
},
|
|
594
632
|
devDependencies: {
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,43 @@ var commands = [
|
|
|
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
10
|
{ "resourceKey": "account", "methodName": "getBilling", "kebabMethod": "get-billing", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Billing overview", "httpMethod": "GET", "path": "/me/billing" },
|
|
11
|
+
{ "resourceKey": "ads", "methodName": "listCampaigns", "kebabMethod": "list-campaigns", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List campaigns", "httpMethod": "GET", "path": "/ads/campaigns" },
|
|
12
|
+
{ "resourceKey": "ads", "methodName": "createCampaign", "kebabMethod": "create-campaign", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a campaign", "httpMethod": "POST", "path": "/ads/campaigns" },
|
|
13
|
+
{ "resourceKey": "ads", "methodName": "getCampaign", "kebabMethod": "get-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get a campaign", "httpMethod": "GET", "path": "/ads/campaigns/{id}" },
|
|
14
|
+
{ "resourceKey": "ads", "methodName": "updateCampaign", "kebabMethod": "update-campaign", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a campaign", "httpMethod": "PATCH", "path": "/ads/campaigns/{id}" },
|
|
15
|
+
{ "resourceKey": "ads", "methodName": "deleteCampaign", "kebabMethod": "delete-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a campaign", "httpMethod": "DELETE", "path": "/ads/campaigns/{id}" },
|
|
16
|
+
{ "resourceKey": "ads", "methodName": "pauseCampaign", "kebabMethod": "pause-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/pause" },
|
|
17
|
+
{ "resourceKey": "ads", "methodName": "resumeCampaign", "kebabMethod": "resume-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Resume a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/resume" },
|
|
18
|
+
{ "resourceKey": "ads", "methodName": "duplicateCampaign", "kebabMethod": "duplicate-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Duplicate a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/duplicate" },
|
|
19
|
+
{ "resourceKey": "ads", "methodName": "archiveCampaign", "kebabMethod": "archive-campaign", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Archive a campaign", "httpMethod": "POST", "path": "/ads/campaigns/{id}/archive" },
|
|
20
|
+
{ "resourceKey": "ads", "methodName": "bulkCampaignStatus", "kebabMethod": "bulk-campaign-status", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Bulk pause/resume campaigns", "httpMethod": "POST", "path": "/ads/campaigns/bulk-status" },
|
|
21
|
+
{ "resourceKey": "ads", "methodName": "listSets", "kebabMethod": "list-sets", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List ad sets", "httpMethod": "GET", "path": "/ads/ad-sets" },
|
|
22
|
+
{ "resourceKey": "ads", "methodName": "getSet", "kebabMethod": "get-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get an ad set", "httpMethod": "GET", "path": "/ads/ad-sets/{id}" },
|
|
23
|
+
{ "resourceKey": "ads", "methodName": "deleteSet", "kebabMethod": "delete-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete an ad set", "httpMethod": "DELETE", "path": "/ads/ad-sets/{id}" },
|
|
24
|
+
{ "resourceKey": "ads", "methodName": "pauseSet", "kebabMethod": "pause-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/pause" },
|
|
25
|
+
{ "resourceKey": "ads", "methodName": "resumeSet", "kebabMethod": "resume-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Resume an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/resume" },
|
|
26
|
+
{ "resourceKey": "ads", "methodName": "duplicateSet", "kebabMethod": "duplicate-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Duplicate an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/duplicate" },
|
|
27
|
+
{ "resourceKey": "ads", "methodName": "archiveSet", "kebabMethod": "archive-set", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Archive an ad set", "httpMethod": "POST", "path": "/ads/ad-sets/{id}/archive" },
|
|
28
|
+
{ "resourceKey": "ads", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List ads", "httpMethod": "GET", "path": "/ads/ads" },
|
|
29
|
+
{ "resourceKey": "ads", "methodName": "get", "kebabMethod": "get", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get an ad", "httpMethod": "GET", "path": "/ads/ads/{id}" },
|
|
30
|
+
{ "resourceKey": "ads", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete an ad", "httpMethod": "DELETE", "path": "/ads/ads/{id}" },
|
|
31
|
+
{ "resourceKey": "ads", "methodName": "pause", "kebabMethod": "pause", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Pause an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/pause" },
|
|
32
|
+
{ "resourceKey": "ads", "methodName": "resume", "kebabMethod": "resume", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Resume an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/resume" },
|
|
33
|
+
{ "resourceKey": "ads", "methodName": "duplicate", "kebabMethod": "duplicate", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Duplicate an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/duplicate" },
|
|
34
|
+
{ "resourceKey": "ads", "methodName": "archive", "kebabMethod": "archive", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Archive an ad", "httpMethod": "POST", "path": "/ads/ads/{id}/archive" },
|
|
35
|
+
{ "resourceKey": "ads", "methodName": "listAudiences", "kebabMethod": "list-audiences", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List audiences", "httpMethod": "GET", "path": "/ads/audiences" },
|
|
36
|
+
{ "resourceKey": "ads", "methodName": "listPixels", "kebabMethod": "list-pixels", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List pixels / conversion destinations", "httpMethod": "GET", "path": "/ads/pixels" },
|
|
37
|
+
{ "resourceKey": "ads", "methodName": "listLeadForms", "kebabMethod": "list-lead-forms", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List lead forms", "httpMethod": "GET", "path": "/ads/lead-forms" },
|
|
38
|
+
{ "resourceKey": "ads", "methodName": "createLeadForm", "kebabMethod": "create-lead-form", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a lead form", "httpMethod": "POST", "path": "/ads/lead-forms" },
|
|
39
|
+
{ "resourceKey": "ads", "methodName": "listCreatives", "kebabMethod": "list-creatives", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List creatives", "httpMethod": "GET", "path": "/ads/creatives" },
|
|
40
|
+
{ "resourceKey": "ads", "methodName": "createCreative", "kebabMethod": "create-creative", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Create a creative", "httpMethod": "POST", "path": "/ads/creatives" },
|
|
41
|
+
{ "resourceKey": "ads", "methodName": "updateCreative", "kebabMethod": "update-creative", "pathParams": ["id"], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Update a creative", "httpMethod": "PATCH", "path": "/ads/creatives/{id}" },
|
|
42
|
+
{ "resourceKey": "ads", "methodName": "deleteCreative", "kebabMethod": "delete-creative", "pathParams": ["id"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete a creative", "httpMethod": "DELETE", "path": "/ads/creatives/{id}" },
|
|
43
|
+
{ "resourceKey": "ads", "methodName": "listAccounts", "kebabMethod": "list-accounts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "List connected ad accounts", "httpMethod": "GET", "path": "/ads/accounts" },
|
|
44
|
+
{ "resourceKey": "ads", "methodName": "accountsDiagnostics", "kebabMethod": "accounts-diagnostics", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Account health and rate-limit diagnostics", "httpMethod": "GET", "path": "/ads/accounts/diagnostics" },
|
|
45
|
+
{ "resourceKey": "ads", "methodName": "listAuditLog", "kebabMethod": "list-audit-log", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List audit log entries", "httpMethod": "GET", "path": "/ads/audit-log" },
|
|
46
|
+
{ "resourceKey": "ads", "methodName": "audienceEstimate", "kebabMethod": "audience-estimate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Audience-size estimate", "httpMethod": "POST", "path": "/ads/estimate" },
|
|
47
|
+
{ "resourceKey": "ads", "methodName": "syncAccounts", "kebabMethod": "sync-accounts", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Trigger an account sync", "httpMethod": "POST", "path": "/ads/sync" },
|
|
11
48
|
{ "resourceKey": "captain", "methodName": "sendMessage", "kebabMethod": "send-message", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Send AI Captain message", "httpMethod": "POST", "path": "/captain/messages" },
|
|
12
49
|
{ "resourceKey": "captain", "methodName": "listConversations", "kebabMethod": "list-conversations", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List AI Captain conversations", "httpMethod": "GET", "path": "/captain/conversations" },
|
|
13
50
|
{ "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}" },
|
|
@@ -114,6 +151,7 @@ var commands = [
|
|
|
114
151
|
{ "resourceKey": "media", "methodName": "get", "kebabMethod": "get", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Get media", "httpMethod": "GET", "path": "/media/{media_id}" },
|
|
115
152
|
{ "resourceKey": "media", "methodName": "delete", "kebabMethod": "delete", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Delete media", "httpMethod": "DELETE", "path": "/media/{media_id}" },
|
|
116
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": "confirmUpload", "kebabMethod": "confirm-upload", "pathParams": ["mediaId"], "hasBody": false, "bodyRequired": false, "hasQuery": false, "summary": "Confirm a presigned upload", "httpMethod": "POST", "path": "/media/{media_id}/confirm" },
|
|
117
155
|
{ "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" },
|
|
118
156
|
{ "resourceKey": "presentations", "methodName": "generate", "kebabMethod": "generate", "pathParams": [], "hasBody": true, "bodyRequired": true, "hasQuery": false, "summary": "Generate presentation", "httpMethod": "POST", "path": "/presentations/generate" },
|
|
119
157
|
{ "resourceKey": "presentations", "methodName": "list", "kebabMethod": "list", "pathParams": [], "hasBody": false, "bodyRequired": false, "hasQuery": true, "summary": "List presentations", "httpMethod": "GET", "path": "/presentations" },
|
|
@@ -486,7 +524,7 @@ function runLogout() {
|
|
|
486
524
|
// package.json
|
|
487
525
|
var package_default = {
|
|
488
526
|
name: "@smartlyqofficial/cli",
|
|
489
|
-
version: "0.1.
|
|
527
|
+
version: "0.1.26",
|
|
490
528
|
description: "Official command line for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
|
|
491
529
|
keywords: [
|
|
492
530
|
"smartlyq",
|
|
@@ -536,7 +574,7 @@ var package_default = {
|
|
|
536
574
|
prepublishOnly: "npm run build"
|
|
537
575
|
},
|
|
538
576
|
dependencies: {
|
|
539
|
-
"@smartlyqofficial/node": "^0.1.
|
|
577
|
+
"@smartlyqofficial/node": "^0.1.25",
|
|
540
578
|
commander: "^12.1.0"
|
|
541
579
|
},
|
|
542
580
|
devDependencies: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartlyqofficial/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
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.25",
|
|
54
54
|
"commander": "^12.1.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|