@instantkom/cli 3.129.2 → 3.130.0
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 +29 -0
- package/bin/run.js +0 -0
- package/dist/api-client.js +28 -5
- package/dist/command-helpers/download.d.ts +10 -0
- package/dist/command-helpers/download.js +10 -0
- package/dist/command-helpers/json.d.ts +4 -0
- package/dist/command-helpers/json.js +37 -0
- package/dist/commands/account/get.d.ts +14 -0
- package/dist/commands/account/get.js +14 -0
- package/dist/commands/account/update.d.ts +23 -0
- package/dist/commands/account/update.js +37 -0
- package/dist/commands/auth/login.js +0 -2
- package/dist/commands/auth/logout.js +0 -2
- package/dist/commands/auth/tokens/create.js +0 -2
- package/dist/commands/auth/tokens/list.js +0 -2
- package/dist/commands/auth/tokens/revoke.js +0 -2
- package/dist/commands/bots/env-vars/create.d.ts +1 -1
- package/dist/commands/bots/env-vars/create.js +18 -11
- package/dist/commands/bots/filters/create.d.ts +5 -5
- package/dist/commands/bots/filters/create.js +33 -18
- package/dist/commands/broadcast/delete.d.ts +20 -0
- package/dist/commands/broadcast/delete.js +18 -0
- package/dist/commands/broadcast/get.d.ts +20 -0
- package/dist/commands/broadcast/get.js +18 -0
- package/dist/commands/broadcast/list.d.ts +21 -0
- package/dist/commands/broadcast/list.js +39 -0
- package/dist/commands/broadcast/send.d.ts +20 -0
- package/dist/commands/broadcast/send.js +18 -0
- package/dist/commands/broadcast/status.d.ts +20 -0
- package/dist/commands/broadcast/status.js +31 -0
- package/dist/commands/broadcast/update.d.ts +30 -0
- package/dist/commands/broadcast/update.js +47 -0
- package/dist/commands/chats/get.d.ts +20 -0
- package/dist/commands/chats/get.js +18 -0
- package/dist/commands/chats/list.d.ts +22 -0
- package/dist/commands/chats/list.js +40 -0
- package/dist/commands/config/get.js +0 -2
- package/dist/commands/config/set.js +0 -2
- package/dist/commands/config/unset.js +0 -2
- package/dist/commands/contacts/custom-fields/delete-value.d.ts +24 -0
- package/dist/commands/contacts/custom-fields/delete-value.js +32 -0
- package/dist/commands/contacts/custom-fields/list.d.ts +20 -0
- package/dist/commands/contacts/custom-fields/list.js +24 -0
- package/dist/commands/contacts/custom-fields/set-value.d.ts +25 -0
- package/dist/commands/contacts/custom-fields/set-value.js +32 -0
- package/dist/commands/contacts/custom-fields/set.d.ts +23 -0
- package/dist/commands/contacts/custom-fields/set.js +42 -0
- package/dist/commands/contacts/tags/add.d.ts +24 -0
- package/dist/commands/contacts/tags/add.js +30 -0
- package/dist/commands/contacts/tags/list.d.ts +20 -0
- package/dist/commands/contacts/tags/list.js +24 -0
- package/dist/commands/contacts/tags/remove.d.ts +24 -0
- package/dist/commands/contacts/tags/remove.js +32 -0
- package/dist/commands/custom-fields/bulk-delete.d.ts +15 -0
- package/dist/commands/custom-fields/bulk-delete.js +24 -0
- package/dist/commands/custom-fields/create.d.ts +21 -0
- package/dist/commands/custom-fields/create.js +47 -0
- package/dist/commands/custom-fields/delete.d.ts +20 -0
- package/dist/commands/custom-fields/delete.js +18 -0
- package/dist/commands/custom-fields/get.d.ts +20 -0
- package/dist/commands/custom-fields/get.js +18 -0
- package/dist/commands/custom-fields/list.d.ts +14 -0
- package/dist/commands/custom-fields/list.js +14 -0
- package/dist/commands/custom-fields/reorder.d.ts +15 -0
- package/dist/commands/custom-fields/reorder.js +22 -0
- package/dist/commands/custom-fields/update.d.ts +27 -0
- package/dist/commands/custom-fields/update.js +52 -0
- package/dist/commands/doctor.d.ts +14 -0
- package/dist/commands/doctor.js +56 -0
- package/dist/commands/features.d.ts +14 -0
- package/dist/commands/features.js +19 -0
- package/dist/commands/messages/bulk-spam.d.ts +16 -0
- package/dist/commands/messages/bulk-spam.js +30 -0
- package/dist/commands/messages/create-ticket.d.ts +23 -0
- package/dist/commands/messages/create-ticket.js +28 -0
- package/dist/commands/messages/delete.d.ts +20 -0
- package/dist/commands/messages/delete.js +18 -0
- package/dist/commands/messages/get.d.ts +20 -0
- package/dist/commands/messages/get.js +18 -0
- package/dist/commands/messages/list.d.ts +22 -0
- package/dist/commands/messages/list.js +35 -0
- package/dist/commands/messages/reactions.d.ts +20 -0
- package/dist/commands/messages/reactions.js +18 -0
- package/dist/commands/messages/spam.d.ts +21 -0
- package/dist/commands/messages/spam.js +27 -0
- package/dist/commands/messages/unread-count.d.ts +14 -0
- package/dist/commands/messages/unread-count.js +14 -0
- package/dist/commands/messages/update.d.ts +27 -0
- package/dist/commands/messages/update.js +43 -0
- package/dist/commands/permissions.d.ts +14 -0
- package/dist/commands/permissions.js +14 -0
- package/dist/commands/segments/create.d.ts +21 -0
- package/dist/commands/segments/create.js +33 -0
- package/dist/commands/segments/delete.d.ts +20 -0
- package/dist/commands/segments/delete.js +18 -0
- package/dist/commands/segments/get.d.ts +20 -0
- package/dist/commands/segments/get.js +18 -0
- package/dist/commands/segments/list.d.ts +20 -0
- package/dist/commands/segments/list.js +34 -0
- package/dist/commands/segments/tags/add.d.ts +24 -0
- package/dist/commands/segments/tags/add.js +21 -0
- package/dist/commands/segments/tags/list.d.ts +20 -0
- package/dist/commands/segments/tags/list.js +18 -0
- package/dist/commands/segments/tags/remove.d.ts +24 -0
- package/dist/commands/segments/tags/remove.js +23 -0
- package/dist/commands/segments/update.d.ts +26 -0
- package/dist/commands/segments/update.js +34 -0
- package/dist/commands/tags/create.d.ts +19 -0
- package/dist/commands/tags/create.js +29 -0
- package/dist/commands/tags/delete.d.ts +20 -0
- package/dist/commands/tags/delete.js +16 -0
- package/dist/commands/tags/export.d.ts +15 -0
- package/dist/commands/tags/export.js +27 -0
- package/dist/commands/tags/get.d.ts +20 -0
- package/dist/commands/tags/get.js +16 -0
- package/dist/commands/tags/import.d.ts +16 -0
- package/dist/commands/tags/import.js +29 -0
- package/dist/commands/tags/list.d.ts +18 -0
- package/dist/commands/tags/list.js +27 -0
- package/dist/commands/tags/recipients/add.d.ts +21 -0
- package/dist/commands/tags/recipients/add.js +27 -0
- package/dist/commands/tags/recipients/remove.d.ts +21 -0
- package/dist/commands/tags/recipients/remove.js +27 -0
- package/dist/commands/tags/update.d.ts +25 -0
- package/dist/commands/tags/update.js +30 -0
- package/dist/commands/tags/validate-import.d.ts +15 -0
- package/dist/commands/tags/validate-import.js +21 -0
- package/dist/commands/team/create.d.ts +23 -0
- package/dist/commands/team/create.js +37 -0
- package/dist/commands/team/delete.d.ts +20 -0
- package/dist/commands/team/delete.js +18 -0
- package/dist/commands/team/list.d.ts +14 -0
- package/dist/commands/team/list.js +14 -0
- package/dist/commands/templates/create.d.ts +24 -0
- package/dist/commands/templates/create.js +63 -0
- package/dist/commands/templates/delete.d.ts +20 -0
- package/dist/commands/templates/delete.js +18 -0
- package/dist/commands/templates/export.d.ts +16 -0
- package/dist/commands/templates/export.js +29 -0
- package/dist/commands/templates/import.d.ts +17 -0
- package/dist/commands/templates/import.js +34 -0
- package/dist/commands/templates/update.d.ts +30 -0
- package/dist/commands/templates/update.js +61 -0
- package/dist/commands/templates/validate-import.d.ts +16 -0
- package/dist/commands/templates/validate-import.js +28 -0
- package/dist/commands/tickets/update.d.ts +2 -0
- package/dist/commands/tickets/update.js +14 -0
- package/dist/commands/webhooks/events.d.ts +14 -0
- package/dist/commands/webhooks/events.js +18 -0
- package/dist/commands/webhooks/logs.d.ts +14 -0
- package/dist/commands/webhooks/logs.js +11 -0
- package/dist/commands/webhooks/test.d.ts +17 -0
- package/dist/commands/webhooks/test.js +27 -0
- package/dist/commands/whoami.js +0 -2
- package/dist/crud/csv.js +2 -1
- package/dist/errors/api-error.d.ts +1 -1
- package/dist/errors/exit-codes.js +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +8888 -1922
- package/package.json +38 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instantkom/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.130.0",
|
|
4
4
|
"description": "instantKOM CLI (ikm)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -35,15 +35,18 @@
|
|
|
35
35
|
"check:docs-sync": "node scripts/check-docs-sync.js",
|
|
36
36
|
"check:frontend-docs-sync": "node scripts/sync-frontend-docs.js",
|
|
37
37
|
"check:cookbook": "node scripts/check-cookbook.js",
|
|
38
|
+
"check:command-coverage": "node scripts/check-command-coverage.js",
|
|
38
39
|
"check:exit-codes": "node scripts/check-exit-codes.js",
|
|
39
40
|
"check:types-sync": "node scripts/check-types-sync.js",
|
|
40
|
-
"check:all": "npm run check:api-coverage && npm run check:mcp-parity && npm run check:openapi-drift && npm run check:types-sync && npm run check:docs-sync && npm run check:frontend-docs-sync && npm run check:cookbook && npm run check:exit-codes",
|
|
41
|
+
"check:all": "npm run check:api-coverage && npm run check:mcp-parity && npm run check:openapi-drift && npm run check:types-sync && npm run check:docs-sync && npm run check:frontend-docs-sync && npm run check:cookbook && npm run check:command-coverage && npm run check:exit-codes",
|
|
41
42
|
"packaging:manifests": "node scripts/render-package-manifests.js",
|
|
42
43
|
"test": "vitest run --workspace vitest.workspace.ts",
|
|
43
44
|
"test:watch": "vitest --workspace vitest.workspace.ts",
|
|
44
45
|
"test:unit": "vitest run --workspace vitest.workspace.ts --project unit",
|
|
45
46
|
"test:contract": "vitest run --workspace vitest.workspace.ts --project contract",
|
|
46
47
|
"test:integration": "vitest run --workspace vitest.workspace.ts --project integration",
|
|
48
|
+
"test:live": "npm run build && oclif manifest && IKM_CLI_LIVE_TEST=1 vitest run --workspace vitest.workspace.ts --project integration",
|
|
49
|
+
"test:security:live": "npm run build && oclif manifest && IKM_CLI_SECURITY_TEST=1 vitest run --workspace vitest.workspace.ts --project integration src/tests/integration/live-cli-security.test.ts",
|
|
47
50
|
"test:e2e": "vitest run --workspace vitest.workspace.ts --project e2e",
|
|
48
51
|
"test:coverage": "vitest run --workspace vitest.workspace.ts --project unit --coverage"
|
|
49
52
|
},
|
|
@@ -92,8 +95,11 @@
|
|
|
92
95
|
"ai": {
|
|
93
96
|
"description": "Use AI assistance"
|
|
94
97
|
},
|
|
98
|
+
"account": {
|
|
99
|
+
"description": "Inspect and update account context"
|
|
100
|
+
},
|
|
95
101
|
"broadcast": {
|
|
96
|
-
"description": "
|
|
102
|
+
"description": "Manage broadcasts"
|
|
97
103
|
},
|
|
98
104
|
"bots": {
|
|
99
105
|
"description": "Manage bots"
|
|
@@ -116,11 +122,20 @@
|
|
|
116
122
|
"contacts": {
|
|
117
123
|
"description": "Manage contacts"
|
|
118
124
|
},
|
|
125
|
+
"contacts custom-fields": {
|
|
126
|
+
"description": "Manage contact custom field values"
|
|
127
|
+
},
|
|
128
|
+
"contacts tags": {
|
|
129
|
+
"description": "Manage contact tag assignments"
|
|
130
|
+
},
|
|
119
131
|
"channels": {
|
|
120
132
|
"description": "Manage channels"
|
|
121
133
|
},
|
|
122
134
|
"chats": {
|
|
123
|
-
"description": "
|
|
135
|
+
"description": "Inspect and reply to active chats"
|
|
136
|
+
},
|
|
137
|
+
"custom-fields": {
|
|
138
|
+
"description": "Manage custom field definitions"
|
|
124
139
|
},
|
|
125
140
|
"exports": {
|
|
126
141
|
"description": "Manage exports"
|
|
@@ -137,8 +152,26 @@
|
|
|
137
152
|
"flows": {
|
|
138
153
|
"description": "Manage flows"
|
|
139
154
|
},
|
|
155
|
+
"messages": {
|
|
156
|
+
"description": "Inspect and moderate messages"
|
|
157
|
+
},
|
|
158
|
+
"segments": {
|
|
159
|
+
"description": "Manage recipient segments"
|
|
160
|
+
},
|
|
161
|
+
"segments tags": {
|
|
162
|
+
"description": "Manage segment tag filters"
|
|
163
|
+
},
|
|
164
|
+
"tags": {
|
|
165
|
+
"description": "Manage tags"
|
|
166
|
+
},
|
|
167
|
+
"tags recipients": {
|
|
168
|
+
"description": "Manage bulk tag assignments"
|
|
169
|
+
},
|
|
170
|
+
"team": {
|
|
171
|
+
"description": "Inspect and manage team members"
|
|
172
|
+
},
|
|
140
173
|
"templates": {
|
|
141
|
-
"description": "
|
|
174
|
+
"description": "Manage message templates"
|
|
142
175
|
},
|
|
143
176
|
"ticket": {
|
|
144
177
|
"description": "Manage ticket subresources"
|