@instantkom/cli 3.188.0 → 3.189.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.
@@ -1289,10 +1289,10 @@
1289
1289
  "script.js"
1290
1290
  ]
1291
1291
  },
1292
- "bots:create": {
1292
+ "broadcast:create": {
1293
1293
  "aliases": [],
1294
1294
  "args": {},
1295
- "description": "Create a bot",
1295
+ "description": "Create a broadcast for channels or segments",
1296
1296
  "flags": {
1297
1297
  "api-key": {
1298
1298
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1357,74 +1357,91 @@
1357
1357
  "type": "option"
1358
1358
  },
1359
1359
  "channel": {
1360
- "description": "Channel ID",
1360
+ "description": "Channel ID target",
1361
1361
  "name": "channel",
1362
- "required": true,
1363
1362
  "hasDynamicHelp": false,
1364
1363
  "multiple": false,
1365
1364
  "type": "option"
1366
1365
  },
1367
- "name": {
1368
- "description": "Bot name",
1369
- "name": "name",
1370
- "required": true,
1366
+ "segment": {
1367
+ "description": "Segment ID within --channel",
1368
+ "name": "segment",
1371
1369
  "hasDynamicHelp": false,
1372
1370
  "multiple": false,
1373
1371
  "type": "option"
1374
1372
  },
1375
- "type": {
1376
- "description": "Bot type",
1377
- "name": "type",
1373
+ "target": {
1374
+ "description": "Target as channelId or channelId:segmentId; may be repeated",
1375
+ "name": "target",
1376
+ "hasDynamicHelp": false,
1377
+ "multiple": true,
1378
+ "type": "option"
1379
+ },
1380
+ "text": {
1381
+ "description": "Broadcast message text",
1382
+ "name": "text",
1378
1383
  "required": true,
1379
1384
  "hasDynamicHelp": false,
1380
1385
  "multiple": false,
1381
- "options": [
1382
- "keyword",
1383
- "schedule",
1384
- "event",
1385
- "ai"
1386
- ],
1387
1386
  "type": "option"
1388
1387
  },
1389
- "message": {
1390
- "description": "Bot message content",
1391
- "name": "message",
1388
+ "send-at": {
1389
+ "description": "Schedule send for an ISO-8601 date-time",
1390
+ "name": "send-at",
1392
1391
  "hasDynamicHelp": false,
1393
1392
  "multiple": false,
1394
1393
  "type": "option"
1395
1394
  },
1396
- "response": {
1397
- "description": "Alias for --message",
1398
- "name": "response",
1395
+ "dry-run": {
1396
+ "description": "Validate and print the broadcast payload without mutating API calls",
1397
+ "name": "dry-run",
1398
+ "allowNo": false,
1399
+ "type": "boolean"
1400
+ },
1401
+ "idempotency-key": {
1402
+ "description": "Idempotency key forwarded as Idempotency-Key",
1403
+ "name": "idempotency-key",
1399
1404
  "hasDynamicHelp": false,
1400
1405
  "multiple": false,
1401
1406
  "type": "option"
1402
1407
  },
1403
- "color": {
1404
- "description": "Bot color as HEX",
1405
- "name": "color",
1408
+ "media": {
1409
+ "description": "Media file path to upload",
1410
+ "name": "media",
1406
1411
  "hasDynamicHelp": false,
1407
- "multiple": false,
1412
+ "multiple": true,
1408
1413
  "type": "option"
1409
1414
  },
1410
- "tags": {
1411
- "description": "Comma-separated tags",
1412
- "name": "tags",
1415
+ "template-id": {
1416
+ "description": "WhatsApp template ID",
1417
+ "name": "template-id",
1413
1418
  "hasDynamicHelp": false,
1414
1419
  "multiple": false,
1415
1420
  "type": "option"
1416
1421
  },
1417
- "data": {
1418
- "description": "Additional JSON object payload",
1419
- "name": "data",
1422
+ "send-status": {
1423
+ "description": "Initial broadcast send status",
1424
+ "name": "send-status",
1425
+ "default": "draft",
1420
1426
  "hasDynamicHelp": false,
1421
1427
  "multiple": false,
1428
+ "options": [
1429
+ "draft",
1430
+ "scheduled",
1431
+ "sending"
1432
+ ],
1422
1433
  "type": "option"
1434
+ },
1435
+ "auto-approve": {
1436
+ "description": "Auto-approve broadcast when allowed by API permissions",
1437
+ "name": "auto-approve",
1438
+ "allowNo": false,
1439
+ "type": "boolean"
1423
1440
  }
1424
1441
  },
1425
1442
  "hasDynamicHelp": false,
1426
1443
  "hiddenAliases": [],
1427
- "id": "bots:create",
1444
+ "id": "broadcast:create",
1428
1445
  "pluginAlias": "@instantkom/cli",
1429
1446
  "pluginName": "@instantkom/cli",
1430
1447
  "pluginType": "core",
@@ -1434,20 +1451,20 @@
1434
1451
  "relativePath": [
1435
1452
  "dist",
1436
1453
  "commands",
1437
- "bots",
1454
+ "broadcast",
1438
1455
  "create.js"
1439
1456
  ]
1440
1457
  },
1441
- "bots:delete": {
1458
+ "broadcast:delete": {
1442
1459
  "aliases": [],
1443
1460
  "args": {
1444
1461
  "id": {
1445
- "description": "Bot ID",
1462
+ "description": "broadcast ID",
1446
1463
  "name": "id",
1447
1464
  "required": true
1448
1465
  }
1449
1466
  },
1450
- "description": "Delete a bot",
1467
+ "description": "Delete broadcast",
1451
1468
  "flags": {
1452
1469
  "api-key": {
1453
1470
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1514,7 +1531,7 @@
1514
1531
  },
1515
1532
  "hasDynamicHelp": false,
1516
1533
  "hiddenAliases": [],
1517
- "id": "bots:delete",
1534
+ "id": "broadcast:delete",
1518
1535
  "pluginAlias": "@instantkom/cli",
1519
1536
  "pluginName": "@instantkom/cli",
1520
1537
  "pluginType": "core",
@@ -1524,20 +1541,20 @@
1524
1541
  "relativePath": [
1525
1542
  "dist",
1526
1543
  "commands",
1527
- "bots",
1544
+ "broadcast",
1528
1545
  "delete.js"
1529
1546
  ]
1530
1547
  },
1531
- "bots:get": {
1548
+ "broadcast:get": {
1532
1549
  "aliases": [],
1533
1550
  "args": {
1534
1551
  "id": {
1535
- "description": "Bot ID",
1552
+ "description": "broadcast ID",
1536
1553
  "name": "id",
1537
1554
  "required": true
1538
1555
  }
1539
1556
  },
1540
- "description": "Get a bot by ID",
1557
+ "description": "Get broadcast by ID",
1541
1558
  "flags": {
1542
1559
  "api-key": {
1543
1560
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1604,7 +1621,7 @@
1604
1621
  },
1605
1622
  "hasDynamicHelp": false,
1606
1623
  "hiddenAliases": [],
1607
- "id": "bots:get",
1624
+ "id": "broadcast:get",
1608
1625
  "pluginAlias": "@instantkom/cli",
1609
1626
  "pluginName": "@instantkom/cli",
1610
1627
  "pluginType": "core",
@@ -1614,14 +1631,14 @@
1614
1631
  "relativePath": [
1615
1632
  "dist",
1616
1633
  "commands",
1617
- "bots",
1634
+ "broadcast",
1618
1635
  "get.js"
1619
1636
  ]
1620
1637
  },
1621
- "bots:list": {
1638
+ "broadcast:list": {
1622
1639
  "aliases": [],
1623
1640
  "args": {},
1624
- "description": "List bots",
1641
+ "description": "List broadcasts",
1625
1642
  "flags": {
1626
1643
  "api-key": {
1627
1644
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1708,42 +1725,49 @@
1708
1725
  "multiple": false,
1709
1726
  "type": "option"
1710
1727
  },
1711
- "type": {
1712
- "description": "Filter by bot type",
1713
- "name": "type",
1728
+ "send-status": {
1729
+ "description": "Filter by send status",
1730
+ "name": "send-status",
1714
1731
  "hasDynamicHelp": false,
1715
1732
  "multiple": false,
1716
1733
  "type": "option"
1717
1734
  },
1718
- "search": {
1719
- "description": "Search in bot name or message",
1720
- "name": "search",
1735
+ "type": {
1736
+ "description": "Broadcast type",
1737
+ "name": "type",
1721
1738
  "hasDynamicHelp": false,
1722
1739
  "multiple": false,
1740
+ "options": [
1741
+ "text",
1742
+ "image",
1743
+ "video",
1744
+ "audio",
1745
+ "document"
1746
+ ],
1723
1747
  "type": "option"
1724
1748
  },
1725
- "tags": {
1726
- "description": "Comma-separated tag IDs",
1727
- "name": "tags",
1749
+ "search": {
1750
+ "description": "Search broadcasts",
1751
+ "name": "search",
1728
1752
  "hasDynamicHelp": false,
1729
1753
  "multiple": false,
1730
1754
  "type": "option"
1731
1755
  },
1732
- "tag-match": {
1733
- "description": "Tag match mode",
1734
- "name": "tag-match",
1756
+ "test": {
1757
+ "description": "Filter test flag: 0 or 1",
1758
+ "name": "test",
1735
1759
  "hasDynamicHelp": false,
1736
1760
  "multiple": false,
1737
1761
  "options": [
1738
- "any",
1739
- "all"
1762
+ "0",
1763
+ "1"
1740
1764
  ],
1741
1765
  "type": "option"
1742
1766
  }
1743
1767
  },
1744
1768
  "hasDynamicHelp": false,
1745
1769
  "hiddenAliases": [],
1746
- "id": "bots:list",
1770
+ "id": "broadcast:list",
1747
1771
  "pluginAlias": "@instantkom/cli",
1748
1772
  "pluginName": "@instantkom/cli",
1749
1773
  "pluginType": "core",
@@ -1753,20 +1777,20 @@
1753
1777
  "relativePath": [
1754
1778
  "dist",
1755
1779
  "commands",
1756
- "bots",
1780
+ "broadcast",
1757
1781
  "list.js"
1758
1782
  ]
1759
1783
  },
1760
- "bots:matches": {
1784
+ "broadcast:send": {
1761
1785
  "aliases": [],
1762
1786
  "args": {
1763
1787
  "id": {
1764
- "description": "Bot ID",
1788
+ "description": "Broadcast ID",
1765
1789
  "name": "id",
1766
1790
  "required": true
1767
1791
  }
1768
1792
  },
1769
- "description": "List bot match history",
1793
+ "description": "Send a broadcast immediately",
1770
1794
  "flags": {
1771
1795
  "api-key": {
1772
1796
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1829,34 +1853,11 @@
1829
1853
  "hasDynamicHelp": false,
1830
1854
  "multiple": false,
1831
1855
  "type": "option"
1832
- },
1833
- "page": {
1834
- "description": "Page number",
1835
- "name": "page",
1836
- "default": 1,
1837
- "hasDynamicHelp": false,
1838
- "multiple": false,
1839
- "type": "option"
1840
- },
1841
- "limit": {
1842
- "description": "Items per page",
1843
- "name": "limit",
1844
- "default": 50,
1845
- "hasDynamicHelp": false,
1846
- "multiple": false,
1847
- "type": "option"
1848
- },
1849
- "search": {
1850
- "description": "Search in matches",
1851
- "name": "search",
1852
- "hasDynamicHelp": false,
1853
- "multiple": false,
1854
- "type": "option"
1855
1856
  }
1856
1857
  },
1857
1858
  "hasDynamicHelp": false,
1858
1859
  "hiddenAliases": [],
1859
- "id": "bots:matches",
1860
+ "id": "broadcast:send",
1860
1861
  "pluginAlias": "@instantkom/cli",
1861
1862
  "pluginName": "@instantkom/cli",
1862
1863
  "pluginType": "core",
@@ -1866,20 +1867,20 @@
1866
1867
  "relativePath": [
1867
1868
  "dist",
1868
1869
  "commands",
1869
- "bots",
1870
- "matches.js"
1870
+ "broadcast",
1871
+ "send.js"
1871
1872
  ]
1872
1873
  },
1873
- "bots:update": {
1874
+ "broadcast:status": {
1874
1875
  "aliases": [],
1875
1876
  "args": {
1876
1877
  "id": {
1877
- "description": "Bot ID",
1878
+ "description": "Broadcast ID",
1878
1879
  "name": "id",
1879
1880
  "required": true
1880
1881
  }
1881
1882
  },
1882
- "description": "Update a bot",
1883
+ "description": "Show broadcast send status",
1883
1884
  "flags": {
1884
1885
  "api-key": {
1885
1886
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -1942,66 +1943,11 @@
1942
1943
  "hasDynamicHelp": false,
1943
1944
  "multiple": false,
1944
1945
  "type": "option"
1945
- },
1946
- "name": {
1947
- "description": "Bot name",
1948
- "name": "name",
1949
- "hasDynamicHelp": false,
1950
- "multiple": false,
1951
- "type": "option"
1952
- },
1953
- "type": {
1954
- "description": "Bot type",
1955
- "name": "type",
1956
- "hasDynamicHelp": false,
1957
- "multiple": false,
1958
- "options": [
1959
- "keyword",
1960
- "schedule",
1961
- "event",
1962
- "ai"
1963
- ],
1964
- "type": "option"
1965
- },
1966
- "message": {
1967
- "description": "Bot message content",
1968
- "name": "message",
1969
- "hasDynamicHelp": false,
1970
- "multiple": false,
1971
- "type": "option"
1972
- },
1973
- "response": {
1974
- "description": "Alias for --message",
1975
- "name": "response",
1976
- "hasDynamicHelp": false,
1977
- "multiple": false,
1978
- "type": "option"
1979
- },
1980
- "color": {
1981
- "description": "Bot color as HEX",
1982
- "name": "color",
1983
- "hasDynamicHelp": false,
1984
- "multiple": false,
1985
- "type": "option"
1986
- },
1987
- "tags": {
1988
- "description": "Comma-separated tags",
1989
- "name": "tags",
1990
- "hasDynamicHelp": false,
1991
- "multiple": false,
1992
- "type": "option"
1993
- },
1994
- "data": {
1995
- "description": "Additional JSON object payload",
1996
- "name": "data",
1997
- "hasDynamicHelp": false,
1998
- "multiple": false,
1999
- "type": "option"
2000
1946
  }
2001
1947
  },
2002
1948
  "hasDynamicHelp": false,
2003
1949
  "hiddenAliases": [],
2004
- "id": "bots:update",
1950
+ "id": "broadcast:status",
2005
1951
  "pluginAlias": "@instantkom/cli",
2006
1952
  "pluginName": "@instantkom/cli",
2007
1953
  "pluginType": "core",
@@ -2011,14 +1957,20 @@
2011
1957
  "relativePath": [
2012
1958
  "dist",
2013
1959
  "commands",
2014
- "bots",
2015
- "update.js"
1960
+ "broadcast",
1961
+ "status.js"
2016
1962
  ]
2017
1963
  },
2018
- "broadcast:create": {
1964
+ "broadcast:update": {
2019
1965
  "aliases": [],
2020
- "args": {},
2021
- "description": "Create a broadcast for channels or segments",
1966
+ "args": {
1967
+ "id": {
1968
+ "description": "Broadcast ID",
1969
+ "name": "id",
1970
+ "required": true
1971
+ }
1972
+ },
1973
+ "description": "Update a broadcast",
2022
1974
  "flags": {
2023
1975
  "api-key": {
2024
1976
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2082,92 +2034,76 @@
2082
2034
  "multiple": false,
2083
2035
  "type": "option"
2084
2036
  },
2085
- "channel": {
2086
- "description": "Channel ID target",
2087
- "name": "channel",
2037
+ "text": {
2038
+ "description": "Broadcast message text",
2039
+ "name": "text",
2088
2040
  "hasDynamicHelp": false,
2089
2041
  "multiple": false,
2090
2042
  "type": "option"
2091
2043
  },
2092
- "segment": {
2093
- "description": "Segment ID within --channel",
2094
- "name": "segment",
2044
+ "send-status": {
2045
+ "description": "Send status",
2046
+ "name": "send-status",
2095
2047
  "hasDynamicHelp": false,
2096
2048
  "multiple": false,
2097
2049
  "type": "option"
2098
2050
  },
2099
- "target": {
2100
- "description": "Target as channelId or channelId:segmentId; may be repeated",
2101
- "name": "target",
2102
- "hasDynamicHelp": false,
2103
- "multiple": true,
2104
- "type": "option"
2105
- },
2106
- "text": {
2107
- "description": "Broadcast message text",
2108
- "name": "text",
2109
- "required": true,
2051
+ "scheduled-at": {
2052
+ "description": "Unix timestamp for scheduled send",
2053
+ "name": "scheduled-at",
2110
2054
  "hasDynamicHelp": false,
2111
2055
  "multiple": false,
2112
2056
  "type": "option"
2113
2057
  },
2114
- "send-at": {
2115
- "description": "Schedule send for an ISO-8601 date-time",
2116
- "name": "send-at",
2117
- "hasDynamicHelp": false,
2118
- "multiple": false,
2119
- "type": "option"
2058
+ "approved": {
2059
+ "description": "Mark as approved",
2060
+ "name": "approved",
2061
+ "allowNo": false,
2062
+ "type": "boolean"
2120
2063
  },
2121
- "dry-run": {
2122
- "description": "Validate and print the broadcast payload without mutating API calls",
2123
- "name": "dry-run",
2064
+ "locked": {
2065
+ "description": "Mark as locked",
2066
+ "name": "locked",
2124
2067
  "allowNo": false,
2125
2068
  "type": "boolean"
2126
2069
  },
2127
- "idempotency-key": {
2128
- "description": "Idempotency key forwarded as Idempotency-Key",
2129
- "name": "idempotency-key",
2070
+ "test": {
2071
+ "description": "Mark as test broadcast",
2072
+ "name": "test",
2073
+ "allowNo": false,
2074
+ "type": "boolean"
2075
+ },
2076
+ "template-id": {
2077
+ "description": "Template ID",
2078
+ "name": "template-id",
2130
2079
  "hasDynamicHelp": false,
2131
2080
  "multiple": false,
2132
2081
  "type": "option"
2133
2082
  },
2134
- "media": {
2135
- "description": "Media file path to upload",
2136
- "name": "media",
2137
- "hasDynamicHelp": false,
2138
- "multiple": true,
2139
- "type": "option"
2083
+ "remove-media": {
2084
+ "description": "Remove existing media",
2085
+ "name": "remove-media",
2086
+ "allowNo": false,
2087
+ "type": "boolean"
2140
2088
  },
2141
- "template-id": {
2142
- "description": "WhatsApp template ID",
2143
- "name": "template-id",
2089
+ "header-footer": {
2090
+ "description": "Header/footer JSON array",
2091
+ "name": "header-footer",
2144
2092
  "hasDynamicHelp": false,
2145
2093
  "multiple": false,
2146
2094
  "type": "option"
2147
2095
  },
2148
- "send-status": {
2149
- "description": "Initial broadcast send status",
2150
- "name": "send-status",
2151
- "default": "draft",
2096
+ "data": {
2097
+ "description": "Additional JSON object payload",
2098
+ "name": "data",
2152
2099
  "hasDynamicHelp": false,
2153
2100
  "multiple": false,
2154
- "options": [
2155
- "draft",
2156
- "scheduled",
2157
- "sending"
2158
- ],
2159
2101
  "type": "option"
2160
- },
2161
- "auto-approve": {
2162
- "description": "Auto-approve broadcast when allowed by API permissions",
2163
- "name": "auto-approve",
2164
- "allowNo": false,
2165
- "type": "boolean"
2166
2102
  }
2167
2103
  },
2168
2104
  "hasDynamicHelp": false,
2169
2105
  "hiddenAliases": [],
2170
- "id": "broadcast:create",
2106
+ "id": "broadcast:update",
2171
2107
  "pluginAlias": "@instantkom/cli",
2172
2108
  "pluginName": "@instantkom/cli",
2173
2109
  "pluginType": "core",
@@ -2178,19 +2114,13 @@
2178
2114
  "dist",
2179
2115
  "commands",
2180
2116
  "broadcast",
2181
- "create.js"
2117
+ "update.js"
2182
2118
  ]
2183
2119
  },
2184
- "broadcast:delete": {
2120
+ "bots:create": {
2185
2121
  "aliases": [],
2186
- "args": {
2187
- "id": {
2188
- "description": "broadcast ID",
2189
- "name": "id",
2190
- "required": true
2191
- }
2192
- },
2193
- "description": "Delete broadcast",
2122
+ "args": {},
2123
+ "description": "Create a bot",
2194
2124
  "flags": {
2195
2125
  "api-key": {
2196
2126
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2253,11 +2183,76 @@
2253
2183
  "hasDynamicHelp": false,
2254
2184
  "multiple": false,
2255
2185
  "type": "option"
2186
+ },
2187
+ "channel": {
2188
+ "description": "Channel ID",
2189
+ "name": "channel",
2190
+ "required": true,
2191
+ "hasDynamicHelp": false,
2192
+ "multiple": false,
2193
+ "type": "option"
2194
+ },
2195
+ "name": {
2196
+ "description": "Bot name",
2197
+ "name": "name",
2198
+ "required": true,
2199
+ "hasDynamicHelp": false,
2200
+ "multiple": false,
2201
+ "type": "option"
2202
+ },
2203
+ "type": {
2204
+ "description": "Bot type",
2205
+ "name": "type",
2206
+ "required": true,
2207
+ "hasDynamicHelp": false,
2208
+ "multiple": false,
2209
+ "options": [
2210
+ "keyword",
2211
+ "schedule",
2212
+ "event",
2213
+ "ai"
2214
+ ],
2215
+ "type": "option"
2216
+ },
2217
+ "message": {
2218
+ "description": "Bot message content",
2219
+ "name": "message",
2220
+ "hasDynamicHelp": false,
2221
+ "multiple": false,
2222
+ "type": "option"
2223
+ },
2224
+ "response": {
2225
+ "description": "Alias for --message",
2226
+ "name": "response",
2227
+ "hasDynamicHelp": false,
2228
+ "multiple": false,
2229
+ "type": "option"
2230
+ },
2231
+ "color": {
2232
+ "description": "Bot color as HEX",
2233
+ "name": "color",
2234
+ "hasDynamicHelp": false,
2235
+ "multiple": false,
2236
+ "type": "option"
2237
+ },
2238
+ "tags": {
2239
+ "description": "Comma-separated tags",
2240
+ "name": "tags",
2241
+ "hasDynamicHelp": false,
2242
+ "multiple": false,
2243
+ "type": "option"
2244
+ },
2245
+ "data": {
2246
+ "description": "Additional JSON object payload",
2247
+ "name": "data",
2248
+ "hasDynamicHelp": false,
2249
+ "multiple": false,
2250
+ "type": "option"
2256
2251
  }
2257
2252
  },
2258
2253
  "hasDynamicHelp": false,
2259
2254
  "hiddenAliases": [],
2260
- "id": "broadcast:delete",
2255
+ "id": "bots:create",
2261
2256
  "pluginAlias": "@instantkom/cli",
2262
2257
  "pluginName": "@instantkom/cli",
2263
2258
  "pluginType": "core",
@@ -2267,20 +2262,20 @@
2267
2262
  "relativePath": [
2268
2263
  "dist",
2269
2264
  "commands",
2270
- "broadcast",
2271
- "delete.js"
2265
+ "bots",
2266
+ "create.js"
2272
2267
  ]
2273
2268
  },
2274
- "broadcast:get": {
2269
+ "bots:delete": {
2275
2270
  "aliases": [],
2276
2271
  "args": {
2277
2272
  "id": {
2278
- "description": "broadcast ID",
2273
+ "description": "Bot ID",
2279
2274
  "name": "id",
2280
2275
  "required": true
2281
2276
  }
2282
2277
  },
2283
- "description": "Get broadcast by ID",
2278
+ "description": "Delete a bot",
2284
2279
  "flags": {
2285
2280
  "api-key": {
2286
2281
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2347,7 +2342,7 @@
2347
2342
  },
2348
2343
  "hasDynamicHelp": false,
2349
2344
  "hiddenAliases": [],
2350
- "id": "broadcast:get",
2345
+ "id": "bots:delete",
2351
2346
  "pluginAlias": "@instantkom/cli",
2352
2347
  "pluginName": "@instantkom/cli",
2353
2348
  "pluginType": "core",
@@ -2357,14 +2352,20 @@
2357
2352
  "relativePath": [
2358
2353
  "dist",
2359
2354
  "commands",
2360
- "broadcast",
2361
- "get.js"
2355
+ "bots",
2356
+ "delete.js"
2362
2357
  ]
2363
2358
  },
2364
- "broadcast:list": {
2359
+ "bots:get": {
2365
2360
  "aliases": [],
2366
- "args": {},
2367
- "description": "List broadcasts",
2361
+ "args": {
2362
+ "id": {
2363
+ "description": "Bot ID",
2364
+ "name": "id",
2365
+ "required": true
2366
+ }
2367
+ },
2368
+ "description": "Get a bot by ID",
2368
2369
  "flags": {
2369
2370
  "api-key": {
2370
2371
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2427,73 +2428,11 @@
2427
2428
  "hasDynamicHelp": false,
2428
2429
  "multiple": false,
2429
2430
  "type": "option"
2430
- },
2431
- "page": {
2432
- "description": "Page number",
2433
- "name": "page",
2434
- "default": 1,
2435
- "hasDynamicHelp": false,
2436
- "multiple": false,
2437
- "type": "option"
2438
- },
2439
- "limit": {
2440
- "description": "Items per page",
2441
- "name": "limit",
2442
- "default": 20,
2443
- "hasDynamicHelp": false,
2444
- "multiple": false,
2445
- "type": "option"
2446
- },
2447
- "channel": {
2448
- "description": "Filter by channel ID",
2449
- "name": "channel",
2450
- "hasDynamicHelp": false,
2451
- "multiple": false,
2452
- "type": "option"
2453
- },
2454
- "send-status": {
2455
- "description": "Filter by send status",
2456
- "name": "send-status",
2457
- "hasDynamicHelp": false,
2458
- "multiple": false,
2459
- "type": "option"
2460
- },
2461
- "type": {
2462
- "description": "Broadcast type",
2463
- "name": "type",
2464
- "hasDynamicHelp": false,
2465
- "multiple": false,
2466
- "options": [
2467
- "text",
2468
- "image",
2469
- "video",
2470
- "audio",
2471
- "document"
2472
- ],
2473
- "type": "option"
2474
- },
2475
- "search": {
2476
- "description": "Search broadcasts",
2477
- "name": "search",
2478
- "hasDynamicHelp": false,
2479
- "multiple": false,
2480
- "type": "option"
2481
- },
2482
- "test": {
2483
- "description": "Filter test flag: 0 or 1",
2484
- "name": "test",
2485
- "hasDynamicHelp": false,
2486
- "multiple": false,
2487
- "options": [
2488
- "0",
2489
- "1"
2490
- ],
2491
- "type": "option"
2492
2431
  }
2493
2432
  },
2494
2433
  "hasDynamicHelp": false,
2495
2434
  "hiddenAliases": [],
2496
- "id": "broadcast:list",
2435
+ "id": "bots:get",
2497
2436
  "pluginAlias": "@instantkom/cli",
2498
2437
  "pluginName": "@instantkom/cli",
2499
2438
  "pluginType": "core",
@@ -2503,20 +2442,14 @@
2503
2442
  "relativePath": [
2504
2443
  "dist",
2505
2444
  "commands",
2506
- "broadcast",
2507
- "list.js"
2445
+ "bots",
2446
+ "get.js"
2508
2447
  ]
2509
2448
  },
2510
- "broadcast:send": {
2449
+ "bots:list": {
2511
2450
  "aliases": [],
2512
- "args": {
2513
- "id": {
2514
- "description": "Broadcast ID",
2515
- "name": "id",
2516
- "required": true
2517
- }
2518
- },
2519
- "description": "Send a broadcast immediately",
2451
+ "args": {},
2452
+ "description": "List bots",
2520
2453
  "flags": {
2521
2454
  "api-key": {
2522
2455
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2579,11 +2512,66 @@
2579
2512
  "hasDynamicHelp": false,
2580
2513
  "multiple": false,
2581
2514
  "type": "option"
2515
+ },
2516
+ "page": {
2517
+ "description": "Page number",
2518
+ "name": "page",
2519
+ "default": 1,
2520
+ "hasDynamicHelp": false,
2521
+ "multiple": false,
2522
+ "type": "option"
2523
+ },
2524
+ "limit": {
2525
+ "description": "Items per page",
2526
+ "name": "limit",
2527
+ "default": 20,
2528
+ "hasDynamicHelp": false,
2529
+ "multiple": false,
2530
+ "type": "option"
2531
+ },
2532
+ "channel": {
2533
+ "description": "Filter by channel ID",
2534
+ "name": "channel",
2535
+ "hasDynamicHelp": false,
2536
+ "multiple": false,
2537
+ "type": "option"
2538
+ },
2539
+ "type": {
2540
+ "description": "Filter by bot type",
2541
+ "name": "type",
2542
+ "hasDynamicHelp": false,
2543
+ "multiple": false,
2544
+ "type": "option"
2545
+ },
2546
+ "search": {
2547
+ "description": "Search in bot name or message",
2548
+ "name": "search",
2549
+ "hasDynamicHelp": false,
2550
+ "multiple": false,
2551
+ "type": "option"
2552
+ },
2553
+ "tags": {
2554
+ "description": "Comma-separated tag IDs",
2555
+ "name": "tags",
2556
+ "hasDynamicHelp": false,
2557
+ "multiple": false,
2558
+ "type": "option"
2559
+ },
2560
+ "tag-match": {
2561
+ "description": "Tag match mode",
2562
+ "name": "tag-match",
2563
+ "hasDynamicHelp": false,
2564
+ "multiple": false,
2565
+ "options": [
2566
+ "any",
2567
+ "all"
2568
+ ],
2569
+ "type": "option"
2582
2570
  }
2583
2571
  },
2584
2572
  "hasDynamicHelp": false,
2585
2573
  "hiddenAliases": [],
2586
- "id": "broadcast:send",
2574
+ "id": "bots:list",
2587
2575
  "pluginAlias": "@instantkom/cli",
2588
2576
  "pluginName": "@instantkom/cli",
2589
2577
  "pluginType": "core",
@@ -2593,20 +2581,20 @@
2593
2581
  "relativePath": [
2594
2582
  "dist",
2595
2583
  "commands",
2596
- "broadcast",
2597
- "send.js"
2584
+ "bots",
2585
+ "list.js"
2598
2586
  ]
2599
2587
  },
2600
- "broadcast:status": {
2588
+ "bots:matches": {
2601
2589
  "aliases": [],
2602
2590
  "args": {
2603
2591
  "id": {
2604
- "description": "Broadcast ID",
2592
+ "description": "Bot ID",
2605
2593
  "name": "id",
2606
2594
  "required": true
2607
2595
  }
2608
2596
  },
2609
- "description": "Show broadcast send status",
2597
+ "description": "List bot match history",
2610
2598
  "flags": {
2611
2599
  "api-key": {
2612
2600
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2669,11 +2657,34 @@
2669
2657
  "hasDynamicHelp": false,
2670
2658
  "multiple": false,
2671
2659
  "type": "option"
2660
+ },
2661
+ "page": {
2662
+ "description": "Page number",
2663
+ "name": "page",
2664
+ "default": 1,
2665
+ "hasDynamicHelp": false,
2666
+ "multiple": false,
2667
+ "type": "option"
2668
+ },
2669
+ "limit": {
2670
+ "description": "Items per page",
2671
+ "name": "limit",
2672
+ "default": 50,
2673
+ "hasDynamicHelp": false,
2674
+ "multiple": false,
2675
+ "type": "option"
2676
+ },
2677
+ "search": {
2678
+ "description": "Search in matches",
2679
+ "name": "search",
2680
+ "hasDynamicHelp": false,
2681
+ "multiple": false,
2682
+ "type": "option"
2672
2683
  }
2673
2684
  },
2674
2685
  "hasDynamicHelp": false,
2675
2686
  "hiddenAliases": [],
2676
- "id": "broadcast:status",
2687
+ "id": "bots:matches",
2677
2688
  "pluginAlias": "@instantkom/cli",
2678
2689
  "pluginName": "@instantkom/cli",
2679
2690
  "pluginType": "core",
@@ -2683,20 +2694,20 @@
2683
2694
  "relativePath": [
2684
2695
  "dist",
2685
2696
  "commands",
2686
- "broadcast",
2687
- "status.js"
2697
+ "bots",
2698
+ "matches.js"
2688
2699
  ]
2689
2700
  },
2690
- "broadcast:update": {
2701
+ "bots:update": {
2691
2702
  "aliases": [],
2692
2703
  "args": {
2693
2704
  "id": {
2694
- "description": "Broadcast ID",
2705
+ "description": "Bot ID",
2695
2706
  "name": "id",
2696
2707
  "required": true
2697
2708
  }
2698
2709
  },
2699
- "description": "Update a broadcast",
2710
+ "description": "Update a bot",
2700
2711
  "flags": {
2701
2712
  "api-key": {
2702
2713
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2760,61 +2771,50 @@
2760
2771
  "multiple": false,
2761
2772
  "type": "option"
2762
2773
  },
2763
- "text": {
2764
- "description": "Broadcast message text",
2765
- "name": "text",
2774
+ "name": {
2775
+ "description": "Bot name",
2776
+ "name": "name",
2766
2777
  "hasDynamicHelp": false,
2767
2778
  "multiple": false,
2768
2779
  "type": "option"
2769
2780
  },
2770
- "send-status": {
2771
- "description": "Send status",
2772
- "name": "send-status",
2781
+ "type": {
2782
+ "description": "Bot type",
2783
+ "name": "type",
2773
2784
  "hasDynamicHelp": false,
2774
2785
  "multiple": false,
2786
+ "options": [
2787
+ "keyword",
2788
+ "schedule",
2789
+ "event",
2790
+ "ai"
2791
+ ],
2775
2792
  "type": "option"
2776
2793
  },
2777
- "scheduled-at": {
2778
- "description": "Unix timestamp for scheduled send",
2779
- "name": "scheduled-at",
2794
+ "message": {
2795
+ "description": "Bot message content",
2796
+ "name": "message",
2780
2797
  "hasDynamicHelp": false,
2781
2798
  "multiple": false,
2782
2799
  "type": "option"
2783
2800
  },
2784
- "approved": {
2785
- "description": "Mark as approved",
2786
- "name": "approved",
2787
- "allowNo": false,
2788
- "type": "boolean"
2789
- },
2790
- "locked": {
2791
- "description": "Mark as locked",
2792
- "name": "locked",
2793
- "allowNo": false,
2794
- "type": "boolean"
2795
- },
2796
- "test": {
2797
- "description": "Mark as test broadcast",
2798
- "name": "test",
2799
- "allowNo": false,
2800
- "type": "boolean"
2801
- },
2802
- "template-id": {
2803
- "description": "Template ID",
2804
- "name": "template-id",
2801
+ "response": {
2802
+ "description": "Alias for --message",
2803
+ "name": "response",
2805
2804
  "hasDynamicHelp": false,
2806
2805
  "multiple": false,
2807
2806
  "type": "option"
2808
2807
  },
2809
- "remove-media": {
2810
- "description": "Remove existing media",
2811
- "name": "remove-media",
2812
- "allowNo": false,
2813
- "type": "boolean"
2808
+ "color": {
2809
+ "description": "Bot color as HEX",
2810
+ "name": "color",
2811
+ "hasDynamicHelp": false,
2812
+ "multiple": false,
2813
+ "type": "option"
2814
2814
  },
2815
- "header-footer": {
2816
- "description": "Header/footer JSON array",
2817
- "name": "header-footer",
2815
+ "tags": {
2816
+ "description": "Comma-separated tags",
2817
+ "name": "tags",
2818
2818
  "hasDynamicHelp": false,
2819
2819
  "multiple": false,
2820
2820
  "type": "option"
@@ -2829,7 +2829,7 @@
2829
2829
  },
2830
2830
  "hasDynamicHelp": false,
2831
2831
  "hiddenAliases": [],
2832
- "id": "broadcast:update",
2832
+ "id": "bots:update",
2833
2833
  "pluginAlias": "@instantkom/cli",
2834
2834
  "pluginName": "@instantkom/cli",
2835
2835
  "pluginType": "core",
@@ -2839,7 +2839,7 @@
2839
2839
  "relativePath": [
2840
2840
  "dist",
2841
2841
  "commands",
2842
- "broadcast",
2842
+ "bots",
2843
2843
  "update.js"
2844
2844
  ]
2845
2845
  },
@@ -6076,10 +6076,10 @@
6076
6076
  "list.js"
6077
6077
  ]
6078
6078
  },
6079
- "flows:create": {
6079
+ "messages:bulk-spam": {
6080
6080
  "aliases": [],
6081
6081
  "args": {},
6082
- "description": "Create a flow",
6082
+ "description": "Mark or unmark multiple messages as spam",
6083
6083
  "flags": {
6084
6084
  "api-key": {
6085
6085
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6143,54 +6143,24 @@
6143
6143
  "multiple": false,
6144
6144
  "type": "option"
6145
6145
  },
6146
- "channel": {
6147
- "description": "Channel ID",
6148
- "name": "channel",
6149
- "required": true,
6150
- "hasDynamicHelp": false,
6151
- "multiple": false,
6152
- "type": "option"
6153
- },
6154
- "name": {
6155
- "description": "Flow name",
6156
- "name": "name",
6146
+ "ids": {
6147
+ "description": "Comma-separated message IDs",
6148
+ "name": "ids",
6157
6149
  "required": true,
6158
6150
  "hasDynamicHelp": false,
6159
6151
  "multiple": false,
6160
6152
  "type": "option"
6161
6153
  },
6162
- "description": {
6163
- "description": "Flow description",
6164
- "name": "description",
6165
- "hasDynamicHelp": false,
6166
- "multiple": false,
6167
- "type": "option"
6168
- },
6169
- "color": {
6170
- "description": "Flow color as HEX",
6171
- "name": "color",
6172
- "hasDynamicHelp": false,
6173
- "multiple": false,
6174
- "type": "option"
6175
- },
6176
- "folder": {
6177
- "description": "Folder ID",
6178
- "name": "folder",
6179
- "hasDynamicHelp": false,
6180
- "multiple": false,
6181
- "type": "option"
6182
- },
6183
- "data": {
6184
- "description": "Additional JSON object payload",
6185
- "name": "data",
6186
- "hasDynamicHelp": false,
6187
- "multiple": false,
6188
- "type": "option"
6154
+ "spam": {
6155
+ "description": "Mark messages as spam",
6156
+ "name": "spam",
6157
+ "allowNo": true,
6158
+ "type": "boolean"
6189
6159
  }
6190
6160
  },
6191
6161
  "hasDynamicHelp": false,
6192
6162
  "hiddenAliases": [],
6193
- "id": "flows:create",
6163
+ "id": "messages:bulk-spam",
6194
6164
  "pluginAlias": "@instantkom/cli",
6195
6165
  "pluginName": "@instantkom/cli",
6196
6166
  "pluginType": "core",
@@ -6200,20 +6170,20 @@
6200
6170
  "relativePath": [
6201
6171
  "dist",
6202
6172
  "commands",
6203
- "flows",
6204
- "create.js"
6173
+ "messages",
6174
+ "bulk-spam.js"
6205
6175
  ]
6206
6176
  },
6207
- "flows:delete": {
6177
+ "messages:create-ticket": {
6208
6178
  "aliases": [],
6209
6179
  "args": {
6210
6180
  "id": {
6211
- "description": "Flow ID",
6181
+ "description": "Message ID",
6212
6182
  "name": "id",
6213
6183
  "required": true
6214
6184
  }
6215
6185
  },
6216
- "description": "Delete a flow",
6186
+ "description": "Create a ticket from a message",
6217
6187
  "flags": {
6218
6188
  "api-key": {
6219
6189
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6276,11 +6246,32 @@
6276
6246
  "hasDynamicHelp": false,
6277
6247
  "multiple": false,
6278
6248
  "type": "option"
6249
+ },
6250
+ "subject": {
6251
+ "description": "Ticket subject",
6252
+ "name": "subject",
6253
+ "hasDynamicHelp": false,
6254
+ "multiple": false,
6255
+ "type": "option"
6256
+ },
6257
+ "priority": {
6258
+ "description": "Ticket priority",
6259
+ "name": "priority",
6260
+ "hasDynamicHelp": false,
6261
+ "multiple": false,
6262
+ "type": "option"
6263
+ },
6264
+ "data": {
6265
+ "description": "Additional JSON object payload",
6266
+ "name": "data",
6267
+ "hasDynamicHelp": false,
6268
+ "multiple": false,
6269
+ "type": "option"
6279
6270
  }
6280
6271
  },
6281
6272
  "hasDynamicHelp": false,
6282
6273
  "hiddenAliases": [],
6283
- "id": "flows:delete",
6274
+ "id": "messages:create-ticket",
6284
6275
  "pluginAlias": "@instantkom/cli",
6285
6276
  "pluginName": "@instantkom/cli",
6286
6277
  "pluginType": "core",
@@ -6290,20 +6281,20 @@
6290
6281
  "relativePath": [
6291
6282
  "dist",
6292
6283
  "commands",
6293
- "flows",
6294
- "delete.js"
6284
+ "messages",
6285
+ "create-ticket.js"
6295
6286
  ]
6296
6287
  },
6297
- "flows:get": {
6288
+ "messages:delete": {
6298
6289
  "aliases": [],
6299
6290
  "args": {
6300
6291
  "id": {
6301
- "description": "Flow ID",
6292
+ "description": "message ID",
6302
6293
  "name": "id",
6303
6294
  "required": true
6304
6295
  }
6305
6296
  },
6306
- "description": "Get a flow by ID",
6297
+ "description": "Delete message",
6307
6298
  "flags": {
6308
6299
  "api-key": {
6309
6300
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6370,7 +6361,7 @@
6370
6361
  },
6371
6362
  "hasDynamicHelp": false,
6372
6363
  "hiddenAliases": [],
6373
- "id": "flows:get",
6364
+ "id": "messages:delete",
6374
6365
  "pluginAlias": "@instantkom/cli",
6375
6366
  "pluginName": "@instantkom/cli",
6376
6367
  "pluginType": "core",
@@ -6380,14 +6371,20 @@
6380
6371
  "relativePath": [
6381
6372
  "dist",
6382
6373
  "commands",
6383
- "flows",
6384
- "get.js"
6374
+ "messages",
6375
+ "delete.js"
6385
6376
  ]
6386
6377
  },
6387
- "flows:list": {
6378
+ "messages:get": {
6388
6379
  "aliases": [],
6389
- "args": {},
6390
- "description": "List flows",
6380
+ "args": {
6381
+ "id": {
6382
+ "description": "message ID",
6383
+ "name": "id",
6384
+ "required": true
6385
+ }
6386
+ },
6387
+ "description": "Get message by ID",
6391
6388
  "flags": {
6392
6389
  "api-key": {
6393
6390
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6450,48 +6447,11 @@
6450
6447
  "hasDynamicHelp": false,
6451
6448
  "multiple": false,
6452
6449
  "type": "option"
6453
- },
6454
- "page": {
6455
- "description": "Page number",
6456
- "name": "page",
6457
- "default": 1,
6458
- "hasDynamicHelp": false,
6459
- "multiple": false,
6460
- "type": "option"
6461
- },
6462
- "limit": {
6463
- "description": "Items per page",
6464
- "name": "limit",
6465
- "default": 20,
6466
- "hasDynamicHelp": false,
6467
- "multiple": false,
6468
- "type": "option"
6469
- },
6470
- "channel": {
6471
- "description": "Filter by channel ID",
6472
- "name": "channel",
6473
- "hasDynamicHelp": false,
6474
- "multiple": false,
6475
- "type": "option"
6476
- },
6477
- "search": {
6478
- "description": "Search in flow name or description",
6479
- "name": "search",
6480
- "hasDynamicHelp": false,
6481
- "multiple": false,
6482
- "type": "option"
6483
- },
6484
- "folder": {
6485
- "description": "Filter by folder ID",
6486
- "name": "folder",
6487
- "hasDynamicHelp": false,
6488
- "multiple": false,
6489
- "type": "option"
6490
6450
  }
6491
6451
  },
6492
6452
  "hasDynamicHelp": false,
6493
6453
  "hiddenAliases": [],
6494
- "id": "flows:list",
6454
+ "id": "messages:get",
6495
6455
  "pluginAlias": "@instantkom/cli",
6496
6456
  "pluginName": "@instantkom/cli",
6497
6457
  "pluginType": "core",
@@ -6501,20 +6461,14 @@
6501
6461
  "relativePath": [
6502
6462
  "dist",
6503
6463
  "commands",
6504
- "flows",
6505
- "list.js"
6464
+ "messages",
6465
+ "get.js"
6506
6466
  ]
6507
6467
  },
6508
- "flows:update": {
6468
+ "messages:list": {
6509
6469
  "aliases": [],
6510
- "args": {
6511
- "id": {
6512
- "description": "Flow ID",
6513
- "name": "id",
6514
- "required": true
6515
- }
6516
- },
6517
- "description": "Update a flow",
6470
+ "args": {},
6471
+ "description": "List messages",
6518
6472
  "flags": {
6519
6473
  "api-key": {
6520
6474
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6578,45 +6532,71 @@
6578
6532
  "multiple": false,
6579
6533
  "type": "option"
6580
6534
  },
6581
- "name": {
6582
- "description": "Flow name",
6583
- "name": "name",
6535
+ "page": {
6536
+ "description": "Page number",
6537
+ "name": "page",
6538
+ "default": 1,
6584
6539
  "hasDynamicHelp": false,
6585
6540
  "multiple": false,
6586
6541
  "type": "option"
6587
6542
  },
6588
- "description": {
6589
- "description": "Flow description",
6590
- "name": "description",
6543
+ "limit": {
6544
+ "description": "Items per page",
6545
+ "name": "limit",
6546
+ "default": 20,
6591
6547
  "hasDynamicHelp": false,
6592
6548
  "multiple": false,
6593
6549
  "type": "option"
6594
6550
  },
6595
- "color": {
6596
- "description": "Flow color as HEX",
6597
- "name": "color",
6551
+ "channel": {
6552
+ "description": "Filter by channel ID",
6553
+ "name": "channel",
6598
6554
  "hasDynamicHelp": false,
6599
6555
  "multiple": false,
6600
6556
  "type": "option"
6601
6557
  },
6602
- "folder": {
6603
- "description": "Folder ID",
6604
- "name": "folder",
6558
+ "recipient": {
6559
+ "description": "Filter by recipient ID",
6560
+ "name": "recipient",
6605
6561
  "hasDynamicHelp": false,
6606
6562
  "multiple": false,
6607
6563
  "type": "option"
6608
6564
  },
6609
- "data": {
6610
- "description": "Additional JSON object payload",
6611
- "name": "data",
6565
+ "direction": {
6566
+ "description": "Direction",
6567
+ "name": "direction",
6568
+ "hasDynamicHelp": false,
6569
+ "multiple": false,
6570
+ "options": [
6571
+ "s",
6572
+ "r"
6573
+ ],
6574
+ "type": "option"
6575
+ },
6576
+ "type": {
6577
+ "description": "Message type",
6578
+ "name": "type",
6579
+ "hasDynamicHelp": false,
6580
+ "multiple": false,
6581
+ "type": "option"
6582
+ },
6583
+ "search": {
6584
+ "description": "Search messages",
6585
+ "name": "search",
6612
6586
  "hasDynamicHelp": false,
6613
6587
  "multiple": false,
6614
6588
  "type": "option"
6589
+ },
6590
+ "spam": {
6591
+ "description": "Filter spam messages",
6592
+ "name": "spam",
6593
+ "allowNo": false,
6594
+ "type": "boolean"
6615
6595
  }
6616
6596
  },
6617
6597
  "hasDynamicHelp": false,
6618
6598
  "hiddenAliases": [],
6619
- "id": "flows:update",
6599
+ "id": "messages:list",
6620
6600
  "pluginAlias": "@instantkom/cli",
6621
6601
  "pluginName": "@instantkom/cli",
6622
6602
  "pluginType": "core",
@@ -6626,14 +6606,20 @@
6626
6606
  "relativePath": [
6627
6607
  "dist",
6628
6608
  "commands",
6629
- "flows",
6630
- "update.js"
6609
+ "messages",
6610
+ "list.js"
6631
6611
  ]
6632
6612
  },
6633
- "messages:bulk-spam": {
6613
+ "messages:reactions": {
6634
6614
  "aliases": [],
6635
- "args": {},
6636
- "description": "Mark or unmark multiple messages as spam",
6615
+ "args": {
6616
+ "id": {
6617
+ "description": "Message ID",
6618
+ "name": "id",
6619
+ "required": true
6620
+ }
6621
+ },
6622
+ "description": "Get reactions to a message",
6637
6623
  "flags": {
6638
6624
  "api-key": {
6639
6625
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6696,25 +6682,11 @@
6696
6682
  "hasDynamicHelp": false,
6697
6683
  "multiple": false,
6698
6684
  "type": "option"
6699
- },
6700
- "ids": {
6701
- "description": "Comma-separated message IDs",
6702
- "name": "ids",
6703
- "required": true,
6704
- "hasDynamicHelp": false,
6705
- "multiple": false,
6706
- "type": "option"
6707
- },
6708
- "spam": {
6709
- "description": "Mark messages as spam",
6710
- "name": "spam",
6711
- "allowNo": true,
6712
- "type": "boolean"
6713
6685
  }
6714
6686
  },
6715
6687
  "hasDynamicHelp": false,
6716
6688
  "hiddenAliases": [],
6717
- "id": "messages:bulk-spam",
6689
+ "id": "messages:reactions",
6718
6690
  "pluginAlias": "@instantkom/cli",
6719
6691
  "pluginName": "@instantkom/cli",
6720
6692
  "pluginType": "core",
@@ -6725,10 +6697,10 @@
6725
6697
  "dist",
6726
6698
  "commands",
6727
6699
  "messages",
6728
- "bulk-spam.js"
6700
+ "reactions.js"
6729
6701
  ]
6730
6702
  },
6731
- "messages:create-ticket": {
6703
+ "messages:spam": {
6732
6704
  "aliases": [],
6733
6705
  "args": {
6734
6706
  "id": {
@@ -6737,7 +6709,7 @@
6737
6709
  "required": true
6738
6710
  }
6739
6711
  },
6740
- "description": "Create a ticket from a message",
6712
+ "description": "Mark or unmark a message as spam",
6741
6713
  "flags": {
6742
6714
  "api-key": {
6743
6715
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6801,31 +6773,16 @@
6801
6773
  "multiple": false,
6802
6774
  "type": "option"
6803
6775
  },
6804
- "subject": {
6805
- "description": "Ticket subject",
6806
- "name": "subject",
6807
- "hasDynamicHelp": false,
6808
- "multiple": false,
6809
- "type": "option"
6810
- },
6811
- "priority": {
6812
- "description": "Ticket priority",
6813
- "name": "priority",
6814
- "hasDynamicHelp": false,
6815
- "multiple": false,
6816
- "type": "option"
6817
- },
6818
- "data": {
6819
- "description": "Additional JSON object payload",
6820
- "name": "data",
6821
- "hasDynamicHelp": false,
6822
- "multiple": false,
6823
- "type": "option"
6776
+ "spam": {
6777
+ "description": "Mark as spam",
6778
+ "name": "spam",
6779
+ "allowNo": true,
6780
+ "type": "boolean"
6824
6781
  }
6825
6782
  },
6826
6783
  "hasDynamicHelp": false,
6827
6784
  "hiddenAliases": [],
6828
- "id": "messages:create-ticket",
6785
+ "id": "messages:spam",
6829
6786
  "pluginAlias": "@instantkom/cli",
6830
6787
  "pluginName": "@instantkom/cli",
6831
6788
  "pluginType": "core",
@@ -6836,19 +6793,13 @@
6836
6793
  "dist",
6837
6794
  "commands",
6838
6795
  "messages",
6839
- "create-ticket.js"
6796
+ "spam.js"
6840
6797
  ]
6841
6798
  },
6842
- "messages:delete": {
6799
+ "messages:unread-count": {
6843
6800
  "aliases": [],
6844
- "args": {
6845
- "id": {
6846
- "description": "message ID",
6847
- "name": "id",
6848
- "required": true
6849
- }
6850
- },
6851
- "description": "Delete message",
6801
+ "args": {},
6802
+ "description": "Get unread inbox message count",
6852
6803
  "flags": {
6853
6804
  "api-key": {
6854
6805
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6915,7 +6866,7 @@
6915
6866
  },
6916
6867
  "hasDynamicHelp": false,
6917
6868
  "hiddenAliases": [],
6918
- "id": "messages:delete",
6869
+ "id": "messages:unread-count",
6919
6870
  "pluginAlias": "@instantkom/cli",
6920
6871
  "pluginName": "@instantkom/cli",
6921
6872
  "pluginType": "core",
@@ -6926,19 +6877,19 @@
6926
6877
  "dist",
6927
6878
  "commands",
6928
6879
  "messages",
6929
- "delete.js"
6880
+ "unread-count.js"
6930
6881
  ]
6931
6882
  },
6932
- "messages:get": {
6883
+ "messages:update": {
6933
6884
  "aliases": [],
6934
6885
  "args": {
6935
6886
  "id": {
6936
- "description": "message ID",
6887
+ "description": "Message ID",
6937
6888
  "name": "id",
6938
6889
  "required": true
6939
6890
  }
6940
6891
  },
6941
- "description": "Get message by ID",
6892
+ "description": "Update a message",
6942
6893
  "flags": {
6943
6894
  "api-key": {
6944
6895
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7001,11 +6952,58 @@
7001
6952
  "hasDynamicHelp": false,
7002
6953
  "multiple": false,
7003
6954
  "type": "option"
6955
+ },
6956
+ "message": {
6957
+ "description": "Message content",
6958
+ "name": "message",
6959
+ "hasDynamicHelp": false,
6960
+ "multiple": false,
6961
+ "type": "option"
6962
+ },
6963
+ "scheduled-at": {
6964
+ "description": "Unix timestamp for scheduled send",
6965
+ "name": "scheduled-at",
6966
+ "hasDynamicHelp": false,
6967
+ "multiple": false,
6968
+ "type": "option"
6969
+ },
6970
+ "hidden": {
6971
+ "description": "Hide message",
6972
+ "name": "hidden",
6973
+ "allowNo": true,
6974
+ "type": "boolean"
6975
+ },
6976
+ "locked": {
6977
+ "description": "Lock message",
6978
+ "name": "locked",
6979
+ "allowNo": true,
6980
+ "type": "boolean"
6981
+ },
6982
+ "buttons": {
6983
+ "description": "Buttons JSON array",
6984
+ "name": "buttons",
6985
+ "hasDynamicHelp": false,
6986
+ "multiple": false,
6987
+ "type": "option"
6988
+ },
6989
+ "header-footer": {
6990
+ "description": "Header/footer JSON object",
6991
+ "name": "header-footer",
6992
+ "hasDynamicHelp": false,
6993
+ "multiple": false,
6994
+ "type": "option"
6995
+ },
6996
+ "data": {
6997
+ "description": "Additional JSON object payload",
6998
+ "name": "data",
6999
+ "hasDynamicHelp": false,
7000
+ "multiple": false,
7001
+ "type": "option"
7004
7002
  }
7005
7003
  },
7006
7004
  "hasDynamicHelp": false,
7007
7005
  "hiddenAliases": [],
7008
- "id": "messages:get",
7006
+ "id": "messages:update",
7009
7007
  "pluginAlias": "@instantkom/cli",
7010
7008
  "pluginName": "@instantkom/cli",
7011
7009
  "pluginType": "core",
@@ -7016,13 +7014,13 @@
7016
7014
  "dist",
7017
7015
  "commands",
7018
7016
  "messages",
7019
- "get.js"
7017
+ "update.js"
7020
7018
  ]
7021
7019
  },
7022
- "messages:list": {
7020
+ "segments:create": {
7023
7021
  "aliases": [],
7024
7022
  "args": {},
7025
- "description": "List messages",
7023
+ "description": "Create a segment",
7026
7024
  "flags": {
7027
7025
  "api-key": {
7028
7026
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7086,71 +7084,61 @@
7086
7084
  "multiple": false,
7087
7085
  "type": "option"
7088
7086
  },
7089
- "page": {
7090
- "description": "Page number",
7091
- "name": "page",
7092
- "default": 1,
7087
+ "channel": {
7088
+ "description": "Channel ID",
7089
+ "name": "channel",
7090
+ "required": true,
7093
7091
  "hasDynamicHelp": false,
7094
7092
  "multiple": false,
7095
7093
  "type": "option"
7096
7094
  },
7097
- "limit": {
7098
- "description": "Items per page",
7099
- "name": "limit",
7100
- "default": 20,
7095
+ "name": {
7096
+ "description": "Segment name",
7097
+ "name": "name",
7098
+ "required": true,
7101
7099
  "hasDynamicHelp": false,
7102
7100
  "multiple": false,
7103
7101
  "type": "option"
7104
7102
  },
7105
- "channel": {
7106
- "description": "Filter by channel ID",
7107
- "name": "channel",
7103
+ "description": {
7104
+ "description": "Segment description",
7105
+ "name": "description",
7108
7106
  "hasDynamicHelp": false,
7109
7107
  "multiple": false,
7110
7108
  "type": "option"
7111
7109
  },
7112
- "recipient": {
7113
- "description": "Filter by recipient ID",
7114
- "name": "recipient",
7110
+ "color": {
7111
+ "description": "Segment color as HEX",
7112
+ "name": "color",
7115
7113
  "hasDynamicHelp": false,
7116
7114
  "multiple": false,
7117
7115
  "type": "option"
7118
7116
  },
7119
- "direction": {
7120
- "description": "Direction",
7121
- "name": "direction",
7117
+ "tags": {
7118
+ "description": "Tags for filtering recipients",
7119
+ "name": "tags",
7122
7120
  "hasDynamicHelp": false,
7123
7121
  "multiple": false,
7124
- "options": [
7125
- "s",
7126
- "r"
7127
- ],
7128
7122
  "type": "option"
7129
7123
  },
7130
- "type": {
7131
- "description": "Message type",
7132
- "name": "type",
7124
+ "folder": {
7125
+ "description": "Object folder ID",
7126
+ "name": "folder",
7133
7127
  "hasDynamicHelp": false,
7134
7128
  "multiple": false,
7135
7129
  "type": "option"
7136
7130
  },
7137
- "search": {
7138
- "description": "Search messages",
7139
- "name": "search",
7131
+ "data": {
7132
+ "description": "Additional JSON object payload",
7133
+ "name": "data",
7140
7134
  "hasDynamicHelp": false,
7141
7135
  "multiple": false,
7142
7136
  "type": "option"
7143
- },
7144
- "spam": {
7145
- "description": "Filter spam messages",
7146
- "name": "spam",
7147
- "allowNo": false,
7148
- "type": "boolean"
7149
7137
  }
7150
7138
  },
7151
7139
  "hasDynamicHelp": false,
7152
7140
  "hiddenAliases": [],
7153
- "id": "messages:list",
7141
+ "id": "segments:create",
7154
7142
  "pluginAlias": "@instantkom/cli",
7155
7143
  "pluginName": "@instantkom/cli",
7156
7144
  "pluginType": "core",
@@ -7160,20 +7148,20 @@
7160
7148
  "relativePath": [
7161
7149
  "dist",
7162
7150
  "commands",
7163
- "messages",
7164
- "list.js"
7151
+ "segments",
7152
+ "create.js"
7165
7153
  ]
7166
7154
  },
7167
- "messages:reactions": {
7155
+ "segments:delete": {
7168
7156
  "aliases": [],
7169
7157
  "args": {
7170
7158
  "id": {
7171
- "description": "Message ID",
7159
+ "description": "segment ID",
7172
7160
  "name": "id",
7173
7161
  "required": true
7174
7162
  }
7175
7163
  },
7176
- "description": "Get reactions to a message",
7164
+ "description": "Delete segment",
7177
7165
  "flags": {
7178
7166
  "api-key": {
7179
7167
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7240,7 +7228,7 @@
7240
7228
  },
7241
7229
  "hasDynamicHelp": false,
7242
7230
  "hiddenAliases": [],
7243
- "id": "messages:reactions",
7231
+ "id": "segments:delete",
7244
7232
  "pluginAlias": "@instantkom/cli",
7245
7233
  "pluginName": "@instantkom/cli",
7246
7234
  "pluginType": "core",
@@ -7250,20 +7238,20 @@
7250
7238
  "relativePath": [
7251
7239
  "dist",
7252
7240
  "commands",
7253
- "messages",
7254
- "reactions.js"
7241
+ "segments",
7242
+ "delete.js"
7255
7243
  ]
7256
7244
  },
7257
- "messages:spam": {
7245
+ "segments:get": {
7258
7246
  "aliases": [],
7259
7247
  "args": {
7260
7248
  "id": {
7261
- "description": "Message ID",
7249
+ "description": "segment ID",
7262
7250
  "name": "id",
7263
7251
  "required": true
7264
7252
  }
7265
7253
  },
7266
- "description": "Mark or unmark a message as spam",
7254
+ "description": "Get segment by ID",
7267
7255
  "flags": {
7268
7256
  "api-key": {
7269
7257
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7326,17 +7314,11 @@
7326
7314
  "hasDynamicHelp": false,
7327
7315
  "multiple": false,
7328
7316
  "type": "option"
7329
- },
7330
- "spam": {
7331
- "description": "Mark as spam",
7332
- "name": "spam",
7333
- "allowNo": true,
7334
- "type": "boolean"
7335
7317
  }
7336
7318
  },
7337
7319
  "hasDynamicHelp": false,
7338
7320
  "hiddenAliases": [],
7339
- "id": "messages:spam",
7321
+ "id": "segments:get",
7340
7322
  "pluginAlias": "@instantkom/cli",
7341
7323
  "pluginName": "@instantkom/cli",
7342
7324
  "pluginType": "core",
@@ -7346,14 +7328,14 @@
7346
7328
  "relativePath": [
7347
7329
  "dist",
7348
7330
  "commands",
7349
- "messages",
7350
- "spam.js"
7331
+ "segments",
7332
+ "get.js"
7351
7333
  ]
7352
7334
  },
7353
- "messages:unread-count": {
7335
+ "segments:list": {
7354
7336
  "aliases": [],
7355
7337
  "args": {},
7356
- "description": "Get unread inbox message count",
7338
+ "description": "List segments",
7357
7339
  "flags": {
7358
7340
  "api-key": {
7359
7341
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7416,11 +7398,59 @@
7416
7398
  "hasDynamicHelp": false,
7417
7399
  "multiple": false,
7418
7400
  "type": "option"
7401
+ },
7402
+ "page": {
7403
+ "description": "Page number",
7404
+ "name": "page",
7405
+ "default": 1,
7406
+ "hasDynamicHelp": false,
7407
+ "multiple": false,
7408
+ "type": "option"
7409
+ },
7410
+ "limit": {
7411
+ "description": "Items per page",
7412
+ "name": "limit",
7413
+ "default": 20,
7414
+ "hasDynamicHelp": false,
7415
+ "multiple": false,
7416
+ "type": "option"
7417
+ },
7418
+ "channel": {
7419
+ "description": "Filter by channel ID",
7420
+ "name": "channel",
7421
+ "hasDynamicHelp": false,
7422
+ "multiple": false,
7423
+ "type": "option"
7424
+ },
7425
+ "search": {
7426
+ "description": "Search by name",
7427
+ "name": "search",
7428
+ "hasDynamicHelp": false,
7429
+ "multiple": false,
7430
+ "type": "option"
7431
+ },
7432
+ "tags": {
7433
+ "description": "Comma-separated tag IDs",
7434
+ "name": "tags",
7435
+ "hasDynamicHelp": false,
7436
+ "multiple": false,
7437
+ "type": "option"
7438
+ },
7439
+ "tag-match-mode": {
7440
+ "description": "Tag match mode",
7441
+ "name": "tag-match-mode",
7442
+ "hasDynamicHelp": false,
7443
+ "multiple": false,
7444
+ "options": [
7445
+ "any",
7446
+ "all"
7447
+ ],
7448
+ "type": "option"
7419
7449
  }
7420
7450
  },
7421
7451
  "hasDynamicHelp": false,
7422
7452
  "hiddenAliases": [],
7423
- "id": "messages:unread-count",
7453
+ "id": "segments:list",
7424
7454
  "pluginAlias": "@instantkom/cli",
7425
7455
  "pluginName": "@instantkom/cli",
7426
7456
  "pluginType": "core",
@@ -7430,20 +7460,20 @@
7430
7460
  "relativePath": [
7431
7461
  "dist",
7432
7462
  "commands",
7433
- "messages",
7434
- "unread-count.js"
7463
+ "segments",
7464
+ "list.js"
7435
7465
  ]
7436
7466
  },
7437
- "messages:update": {
7467
+ "segments:update": {
7438
7468
  "aliases": [],
7439
7469
  "args": {
7440
7470
  "id": {
7441
- "description": "Message ID",
7471
+ "description": "Segment ID",
7442
7472
  "name": "id",
7443
7473
  "required": true
7444
7474
  }
7445
7475
  },
7446
- "description": "Update a message",
7476
+ "description": "Update a segment",
7447
7477
  "flags": {
7448
7478
  "api-key": {
7449
7479
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7507,42 +7537,37 @@
7507
7537
  "multiple": false,
7508
7538
  "type": "option"
7509
7539
  },
7510
- "message": {
7511
- "description": "Message content",
7512
- "name": "message",
7540
+ "name": {
7541
+ "description": "Segment name",
7542
+ "name": "name",
7513
7543
  "hasDynamicHelp": false,
7514
7544
  "multiple": false,
7515
7545
  "type": "option"
7516
7546
  },
7517
- "scheduled-at": {
7518
- "description": "Unix timestamp for scheduled send",
7519
- "name": "scheduled-at",
7547
+ "description": {
7548
+ "description": "Segment description",
7549
+ "name": "description",
7520
7550
  "hasDynamicHelp": false,
7521
7551
  "multiple": false,
7522
7552
  "type": "option"
7523
7553
  },
7524
- "hidden": {
7525
- "description": "Hide message",
7526
- "name": "hidden",
7527
- "allowNo": true,
7528
- "type": "boolean"
7529
- },
7530
- "locked": {
7531
- "description": "Lock message",
7532
- "name": "locked",
7533
- "allowNo": true,
7534
- "type": "boolean"
7554
+ "color": {
7555
+ "description": "Segment color as HEX",
7556
+ "name": "color",
7557
+ "hasDynamicHelp": false,
7558
+ "multiple": false,
7559
+ "type": "option"
7535
7560
  },
7536
- "buttons": {
7537
- "description": "Buttons JSON array",
7538
- "name": "buttons",
7561
+ "tags": {
7562
+ "description": "Tags for filtering recipients",
7563
+ "name": "tags",
7539
7564
  "hasDynamicHelp": false,
7540
7565
  "multiple": false,
7541
7566
  "type": "option"
7542
7567
  },
7543
- "header-footer": {
7544
- "description": "Header/footer JSON object",
7545
- "name": "header-footer",
7568
+ "folder": {
7569
+ "description": "Object folder ID",
7570
+ "name": "folder",
7546
7571
  "hasDynamicHelp": false,
7547
7572
  "multiple": false,
7548
7573
  "type": "option"
@@ -7557,7 +7582,7 @@
7557
7582
  },
7558
7583
  "hasDynamicHelp": false,
7559
7584
  "hiddenAliases": [],
7560
- "id": "messages:update",
7585
+ "id": "segments:update",
7561
7586
  "pluginAlias": "@instantkom/cli",
7562
7587
  "pluginName": "@instantkom/cli",
7563
7588
  "pluginType": "core",
@@ -7567,14 +7592,14 @@
7567
7592
  "relativePath": [
7568
7593
  "dist",
7569
7594
  "commands",
7570
- "messages",
7595
+ "segments",
7571
7596
  "update.js"
7572
7597
  ]
7573
7598
  },
7574
- "segments:create": {
7599
+ "flows:create": {
7575
7600
  "aliases": [],
7576
7601
  "args": {},
7577
- "description": "Create a segment",
7602
+ "description": "Create a flow",
7578
7603
  "flags": {
7579
7604
  "api-key": {
7580
7605
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7647,7 +7672,7 @@
7647
7672
  "type": "option"
7648
7673
  },
7649
7674
  "name": {
7650
- "description": "Segment name",
7675
+ "description": "Flow name",
7651
7676
  "name": "name",
7652
7677
  "required": true,
7653
7678
  "hasDynamicHelp": false,
@@ -7655,28 +7680,21 @@
7655
7680
  "type": "option"
7656
7681
  },
7657
7682
  "description": {
7658
- "description": "Segment description",
7683
+ "description": "Flow description",
7659
7684
  "name": "description",
7660
7685
  "hasDynamicHelp": false,
7661
7686
  "multiple": false,
7662
7687
  "type": "option"
7663
7688
  },
7664
7689
  "color": {
7665
- "description": "Segment color as HEX",
7690
+ "description": "Flow color as HEX",
7666
7691
  "name": "color",
7667
7692
  "hasDynamicHelp": false,
7668
7693
  "multiple": false,
7669
7694
  "type": "option"
7670
7695
  },
7671
- "tags": {
7672
- "description": "Tags for filtering recipients",
7673
- "name": "tags",
7674
- "hasDynamicHelp": false,
7675
- "multiple": false,
7676
- "type": "option"
7677
- },
7678
7696
  "folder": {
7679
- "description": "Object folder ID",
7697
+ "description": "Folder ID",
7680
7698
  "name": "folder",
7681
7699
  "hasDynamicHelp": false,
7682
7700
  "multiple": false,
@@ -7692,7 +7710,7 @@
7692
7710
  },
7693
7711
  "hasDynamicHelp": false,
7694
7712
  "hiddenAliases": [],
7695
- "id": "segments:create",
7713
+ "id": "flows:create",
7696
7714
  "pluginAlias": "@instantkom/cli",
7697
7715
  "pluginName": "@instantkom/cli",
7698
7716
  "pluginType": "core",
@@ -7702,20 +7720,20 @@
7702
7720
  "relativePath": [
7703
7721
  "dist",
7704
7722
  "commands",
7705
- "segments",
7723
+ "flows",
7706
7724
  "create.js"
7707
7725
  ]
7708
7726
  },
7709
- "segments:delete": {
7727
+ "flows:delete": {
7710
7728
  "aliases": [],
7711
7729
  "args": {
7712
7730
  "id": {
7713
- "description": "segment ID",
7731
+ "description": "Flow ID",
7714
7732
  "name": "id",
7715
7733
  "required": true
7716
7734
  }
7717
7735
  },
7718
- "description": "Delete segment",
7736
+ "description": "Delete a flow",
7719
7737
  "flags": {
7720
7738
  "api-key": {
7721
7739
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7782,7 +7800,7 @@
7782
7800
  },
7783
7801
  "hasDynamicHelp": false,
7784
7802
  "hiddenAliases": [],
7785
- "id": "segments:delete",
7803
+ "id": "flows:delete",
7786
7804
  "pluginAlias": "@instantkom/cli",
7787
7805
  "pluginName": "@instantkom/cli",
7788
7806
  "pluginType": "core",
@@ -7792,20 +7810,20 @@
7792
7810
  "relativePath": [
7793
7811
  "dist",
7794
7812
  "commands",
7795
- "segments",
7813
+ "flows",
7796
7814
  "delete.js"
7797
7815
  ]
7798
7816
  },
7799
- "segments:get": {
7817
+ "flows:get": {
7800
7818
  "aliases": [],
7801
7819
  "args": {
7802
7820
  "id": {
7803
- "description": "segment ID",
7821
+ "description": "Flow ID",
7804
7822
  "name": "id",
7805
7823
  "required": true
7806
7824
  }
7807
7825
  },
7808
- "description": "Get segment by ID",
7826
+ "description": "Get a flow by ID",
7809
7827
  "flags": {
7810
7828
  "api-key": {
7811
7829
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7872,7 +7890,7 @@
7872
7890
  },
7873
7891
  "hasDynamicHelp": false,
7874
7892
  "hiddenAliases": [],
7875
- "id": "segments:get",
7893
+ "id": "flows:get",
7876
7894
  "pluginAlias": "@instantkom/cli",
7877
7895
  "pluginName": "@instantkom/cli",
7878
7896
  "pluginType": "core",
@@ -7882,14 +7900,14 @@
7882
7900
  "relativePath": [
7883
7901
  "dist",
7884
7902
  "commands",
7885
- "segments",
7903
+ "flows",
7886
7904
  "get.js"
7887
7905
  ]
7888
7906
  },
7889
- "segments:list": {
7907
+ "flows:list": {
7890
7908
  "aliases": [],
7891
7909
  "args": {},
7892
- "description": "List segments",
7910
+ "description": "List flows",
7893
7911
  "flags": {
7894
7912
  "api-key": {
7895
7913
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7977,34 +7995,23 @@
7977
7995
  "type": "option"
7978
7996
  },
7979
7997
  "search": {
7980
- "description": "Search by name",
7998
+ "description": "Search in flow name or description",
7981
7999
  "name": "search",
7982
8000
  "hasDynamicHelp": false,
7983
8001
  "multiple": false,
7984
8002
  "type": "option"
7985
8003
  },
7986
- "tags": {
7987
- "description": "Comma-separated tag IDs",
7988
- "name": "tags",
7989
- "hasDynamicHelp": false,
7990
- "multiple": false,
7991
- "type": "option"
7992
- },
7993
- "tag-match-mode": {
7994
- "description": "Tag match mode",
7995
- "name": "tag-match-mode",
8004
+ "folder": {
8005
+ "description": "Filter by folder ID",
8006
+ "name": "folder",
7996
8007
  "hasDynamicHelp": false,
7997
8008
  "multiple": false,
7998
- "options": [
7999
- "any",
8000
- "all"
8001
- ],
8002
8009
  "type": "option"
8003
8010
  }
8004
8011
  },
8005
8012
  "hasDynamicHelp": false,
8006
8013
  "hiddenAliases": [],
8007
- "id": "segments:list",
8014
+ "id": "flows:list",
8008
8015
  "pluginAlias": "@instantkom/cli",
8009
8016
  "pluginName": "@instantkom/cli",
8010
8017
  "pluginType": "core",
@@ -8014,20 +8021,20 @@
8014
8021
  "relativePath": [
8015
8022
  "dist",
8016
8023
  "commands",
8017
- "segments",
8024
+ "flows",
8018
8025
  "list.js"
8019
8026
  ]
8020
8027
  },
8021
- "segments:update": {
8028
+ "flows:update": {
8022
8029
  "aliases": [],
8023
8030
  "args": {
8024
8031
  "id": {
8025
- "description": "Segment ID",
8032
+ "description": "Flow ID",
8026
8033
  "name": "id",
8027
8034
  "required": true
8028
8035
  }
8029
8036
  },
8030
- "description": "Update a segment",
8037
+ "description": "Update a flow",
8031
8038
  "flags": {
8032
8039
  "api-key": {
8033
8040
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8092,35 +8099,28 @@
8092
8099
  "type": "option"
8093
8100
  },
8094
8101
  "name": {
8095
- "description": "Segment name",
8102
+ "description": "Flow name",
8096
8103
  "name": "name",
8097
8104
  "hasDynamicHelp": false,
8098
8105
  "multiple": false,
8099
8106
  "type": "option"
8100
8107
  },
8101
8108
  "description": {
8102
- "description": "Segment description",
8109
+ "description": "Flow description",
8103
8110
  "name": "description",
8104
8111
  "hasDynamicHelp": false,
8105
8112
  "multiple": false,
8106
8113
  "type": "option"
8107
8114
  },
8108
8115
  "color": {
8109
- "description": "Segment color as HEX",
8116
+ "description": "Flow color as HEX",
8110
8117
  "name": "color",
8111
8118
  "hasDynamicHelp": false,
8112
8119
  "multiple": false,
8113
8120
  "type": "option"
8114
8121
  },
8115
- "tags": {
8116
- "description": "Tags for filtering recipients",
8117
- "name": "tags",
8118
- "hasDynamicHelp": false,
8119
- "multiple": false,
8120
- "type": "option"
8121
- },
8122
8122
  "folder": {
8123
- "description": "Object folder ID",
8123
+ "description": "Folder ID",
8124
8124
  "name": "folder",
8125
8125
  "hasDynamicHelp": false,
8126
8126
  "multiple": false,
@@ -8136,7 +8136,7 @@
8136
8136
  },
8137
8137
  "hasDynamicHelp": false,
8138
8138
  "hiddenAliases": [],
8139
- "id": "segments:update",
8139
+ "id": "flows:update",
8140
8140
  "pluginAlias": "@instantkom/cli",
8141
8141
  "pluginName": "@instantkom/cli",
8142
8142
  "pluginType": "core",
@@ -8146,7 +8146,7 @@
8146
8146
  "relativePath": [
8147
8147
  "dist",
8148
8148
  "commands",
8149
- "segments",
8149
+ "flows",
8150
8150
  "update.js"
8151
8151
  ]
8152
8152
  },
@@ -12046,16 +12046,16 @@
12046
12046
  "update.js"
12047
12047
  ]
12048
12048
  },
12049
- "bots:filters:create": {
12049
+ "bots:env-vars:bots": {
12050
12050
  "aliases": [],
12051
12051
  "args": {
12052
- "botId": {
12053
- "description": "Bot ID",
12054
- "name": "botId",
12052
+ "id": {
12053
+ "description": "Environment variable ID",
12054
+ "name": "id",
12055
12055
  "required": true
12056
12056
  }
12057
12057
  },
12058
- "description": "Create a bot filter",
12058
+ "description": "List bots using a bot environment variable",
12059
12059
  "flags": {
12060
12060
  "api-key": {
12061
12061
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12118,64 +12118,112 @@
12118
12118
  "hasDynamicHelp": false,
12119
12119
  "multiple": false,
12120
12120
  "type": "option"
12121
- },
12122
- "name": {
12123
- "description": "Filter name",
12124
- "name": "name",
12125
- "required": true,
12121
+ }
12122
+ },
12123
+ "hasDynamicHelp": false,
12124
+ "hiddenAliases": [],
12125
+ "id": "bots:env-vars:bots",
12126
+ "pluginAlias": "@instantkom/cli",
12127
+ "pluginName": "@instantkom/cli",
12128
+ "pluginType": "core",
12129
+ "strict": true,
12130
+ "enableJsonFlag": false,
12131
+ "isESM": true,
12132
+ "relativePath": [
12133
+ "dist",
12134
+ "commands",
12135
+ "bots",
12136
+ "env-vars",
12137
+ "bots.js"
12138
+ ]
12139
+ },
12140
+ "bots:env-vars:create": {
12141
+ "aliases": [],
12142
+ "args": {},
12143
+ "description": "Create a bot environment variable",
12144
+ "flags": {
12145
+ "api-key": {
12146
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
12147
+ "env": "IKM_API_KEY",
12148
+ "helpGroup": "GLOBAL",
12149
+ "name": "api-key",
12126
12150
  "hasDynamicHelp": false,
12127
12151
  "multiple": false,
12128
12152
  "type": "option"
12129
12153
  },
12130
- "operator": {
12131
- "description": "Logical operator",
12132
- "name": "operator",
12133
- "default": "and",
12154
+ "format": {
12155
+ "description": "Output format: text, json, yaml, or table",
12156
+ "helpGroup": "GLOBAL",
12157
+ "name": "format",
12158
+ "default": "text",
12134
12159
  "hasDynamicHelp": false,
12135
12160
  "multiple": false,
12161
+ "options": [
12162
+ "text",
12163
+ "json",
12164
+ "yaml",
12165
+ "table"
12166
+ ],
12136
12167
  "type": "option"
12137
12168
  },
12138
- "filter-object": {
12139
- "description": "Filter object type",
12140
- "name": "filter-object",
12141
- "default": "msg",
12169
+ "json": {
12170
+ "description": "Output in JSON format (alias for --format=json)",
12171
+ "helpGroup": "GLOBAL",
12172
+ "name": "json",
12173
+ "allowNo": false,
12174
+ "type": "boolean"
12175
+ },
12176
+ "quiet": {
12177
+ "description": "Suppress all output except errors",
12178
+ "helpGroup": "GLOBAL",
12179
+ "name": "quiet",
12180
+ "allowNo": false,
12181
+ "type": "boolean"
12182
+ },
12183
+ "no-color": {
12184
+ "description": "Disable color output",
12185
+ "helpGroup": "GLOBAL",
12186
+ "name": "no-color",
12187
+ "allowNo": false,
12188
+ "type": "boolean"
12189
+ },
12190
+ "profile": {
12191
+ "description": "Named configuration profile to use",
12192
+ "helpGroup": "GLOBAL",
12193
+ "name": "profile",
12194
+ "default": "default",
12142
12195
  "hasDynamicHelp": false,
12143
12196
  "multiple": false,
12144
12197
  "type": "option"
12145
12198
  },
12146
- "filter-attribute": {
12147
- "description": "Filter attribute",
12148
- "name": "filter-attribute",
12149
- "default": "text",
12199
+ "api-url": {
12200
+ "description": "Override the API base URL (e.g. for staging)",
12201
+ "helpGroup": "GLOBAL",
12202
+ "name": "api-url",
12150
12203
  "hasDynamicHelp": false,
12151
12204
  "multiple": false,
12152
12205
  "type": "option"
12153
- },
12154
- "filter-comparator": {
12155
- "description": "Filter comparator",
12156
- "name": "filter-comparator",
12157
- "default": "contains",
12206
+ },
12207
+ "key": {
12208
+ "description": "Variable key (max 16 chars, letters, digits, underscore)",
12209
+ "name": "key",
12210
+ "required": true,
12158
12211
  "hasDynamicHelp": false,
12159
12212
  "multiple": false,
12160
12213
  "type": "option"
12161
12214
  },
12162
- "filter-value": {
12163
- "description": "Filter value",
12164
- "name": "filter-value",
12165
- "required": true,
12215
+ "description": {
12216
+ "description": "Variable description",
12217
+ "name": "description",
12166
12218
  "hasDynamicHelp": false,
12167
12219
  "multiple": false,
12168
12220
  "type": "option"
12169
12221
  },
12170
- "status": {
12171
- "description": "Status: 0 inactive, 1 active",
12172
- "name": "status",
12222
+ "color": {
12223
+ "description": "Variable color as HEX",
12224
+ "name": "color",
12173
12225
  "hasDynamicHelp": false,
12174
12226
  "multiple": false,
12175
- "options": [
12176
- "0",
12177
- "1"
12178
- ],
12179
12227
  "type": "option"
12180
12228
  },
12181
12229
  "data": {
@@ -12188,7 +12236,7 @@
12188
12236
  },
12189
12237
  "hasDynamicHelp": false,
12190
12238
  "hiddenAliases": [],
12191
- "id": "bots:filters:create",
12239
+ "id": "bots:env-vars:create",
12192
12240
  "pluginAlias": "@instantkom/cli",
12193
12241
  "pluginName": "@instantkom/cli",
12194
12242
  "pluginType": "core",
@@ -12199,25 +12247,20 @@
12199
12247
  "dist",
12200
12248
  "commands",
12201
12249
  "bots",
12202
- "filters",
12250
+ "env-vars",
12203
12251
  "create.js"
12204
12252
  ]
12205
12253
  },
12206
- "bots:filters:delete": {
12254
+ "bots:env-vars:delete": {
12207
12255
  "aliases": [],
12208
12256
  "args": {
12209
- "botId": {
12210
- "description": "Bot ID",
12211
- "name": "botId",
12212
- "required": true
12213
- },
12214
- "filterId": {
12215
- "description": "Filter ID",
12216
- "name": "filterId",
12257
+ "id": {
12258
+ "description": "Environment variable ID",
12259
+ "name": "id",
12217
12260
  "required": true
12218
12261
  }
12219
12262
  },
12220
- "description": "Delete a bot filter",
12263
+ "description": "Delete a bot environment variable",
12221
12264
  "flags": {
12222
12265
  "api-key": {
12223
12266
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12284,7 +12327,7 @@
12284
12327
  },
12285
12328
  "hasDynamicHelp": false,
12286
12329
  "hiddenAliases": [],
12287
- "id": "bots:filters:delete",
12330
+ "id": "bots:env-vars:delete",
12288
12331
  "pluginAlias": "@instantkom/cli",
12289
12332
  "pluginName": "@instantkom/cli",
12290
12333
  "pluginType": "core",
@@ -12295,25 +12338,20 @@
12295
12338
  "dist",
12296
12339
  "commands",
12297
12340
  "bots",
12298
- "filters",
12341
+ "env-vars",
12299
12342
  "delete.js"
12300
12343
  ]
12301
12344
  },
12302
- "bots:filters:get": {
12345
+ "bots:env-vars:get": {
12303
12346
  "aliases": [],
12304
12347
  "args": {
12305
- "botId": {
12306
- "description": "Bot ID",
12307
- "name": "botId",
12308
- "required": true
12309
- },
12310
- "filterId": {
12311
- "description": "Filter ID",
12312
- "name": "filterId",
12348
+ "id": {
12349
+ "description": "Environment variable ID",
12350
+ "name": "id",
12313
12351
  "required": true
12314
12352
  }
12315
12353
  },
12316
- "description": "Get a bot filter",
12354
+ "description": "Get a bot environment variable",
12317
12355
  "flags": {
12318
12356
  "api-key": {
12319
12357
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12380,7 +12418,7 @@
12380
12418
  },
12381
12419
  "hasDynamicHelp": false,
12382
12420
  "hiddenAliases": [],
12383
- "id": "bots:filters:get",
12421
+ "id": "bots:env-vars:get",
12384
12422
  "pluginAlias": "@instantkom/cli",
12385
12423
  "pluginName": "@instantkom/cli",
12386
12424
  "pluginType": "core",
@@ -12391,20 +12429,14 @@
12391
12429
  "dist",
12392
12430
  "commands",
12393
12431
  "bots",
12394
- "filters",
12432
+ "env-vars",
12395
12433
  "get.js"
12396
12434
  ]
12397
12435
  },
12398
- "bots:filters:list": {
12436
+ "bots:env-vars:list": {
12399
12437
  "aliases": [],
12400
- "args": {
12401
- "botId": {
12402
- "description": "Bot ID",
12403
- "name": "botId",
12404
- "required": true
12405
- }
12406
- },
12407
- "description": "List bot filters",
12438
+ "args": {},
12439
+ "description": "List bot environment variables",
12408
12440
  "flags": {
12409
12441
  "api-key": {
12410
12442
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12484,20 +12516,16 @@
12484
12516
  "multiple": false,
12485
12517
  "type": "option"
12486
12518
  },
12487
- "status": {
12488
- "description": "Status filter: 0 inactive, 1 active",
12489
- "name": "status",
12519
+ "search": {
12520
+ "description": "Search in key or description",
12521
+ "name": "search",
12490
12522
  "hasDynamicHelp": false,
12491
12523
  "multiple": false,
12492
- "options": [
12493
- "0",
12494
- "1"
12495
- ],
12496
12524
  "type": "option"
12497
12525
  },
12498
- "search": {
12499
- "description": "Search in name or description",
12500
- "name": "search",
12526
+ "color": {
12527
+ "description": "Filter by color",
12528
+ "name": "color",
12501
12529
  "hasDynamicHelp": false,
12502
12530
  "multiple": false,
12503
12531
  "type": "option"
@@ -12505,7 +12533,7 @@
12505
12533
  },
12506
12534
  "hasDynamicHelp": false,
12507
12535
  "hiddenAliases": [],
12508
- "id": "bots:filters:list",
12536
+ "id": "bots:env-vars:list",
12509
12537
  "pluginAlias": "@instantkom/cli",
12510
12538
  "pluginName": "@instantkom/cli",
12511
12539
  "pluginType": "core",
@@ -12516,25 +12544,20 @@
12516
12544
  "dist",
12517
12545
  "commands",
12518
12546
  "bots",
12519
- "filters",
12547
+ "env-vars",
12520
12548
  "list.js"
12521
12549
  ]
12522
12550
  },
12523
- "bots:filters:update": {
12551
+ "bots:env-vars:update": {
12524
12552
  "aliases": [],
12525
12553
  "args": {
12526
- "botId": {
12527
- "description": "Bot ID",
12528
- "name": "botId",
12529
- "required": true
12530
- },
12531
- "filterId": {
12532
- "description": "Filter ID",
12533
- "name": "filterId",
12554
+ "id": {
12555
+ "description": "Environment variable ID",
12556
+ "name": "id",
12534
12557
  "required": true
12535
12558
  }
12536
12559
  },
12537
- "description": "Update a bot filter",
12560
+ "description": "Update a bot environment variable",
12538
12561
  "flags": {
12539
12562
  "api-key": {
12540
12563
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12598,57 +12621,18 @@
12598
12621
  "multiple": false,
12599
12622
  "type": "option"
12600
12623
  },
12601
- "name": {
12602
- "description": "Filter name",
12603
- "name": "name",
12604
- "hasDynamicHelp": false,
12605
- "multiple": false,
12606
- "type": "option"
12607
- },
12608
- "operator": {
12609
- "description": "Logical operator",
12610
- "name": "operator",
12611
- "hasDynamicHelp": false,
12612
- "multiple": false,
12613
- "type": "option"
12614
- },
12615
- "filter-object": {
12616
- "description": "Filter object type",
12617
- "name": "filter-object",
12618
- "hasDynamicHelp": false,
12619
- "multiple": false,
12620
- "type": "option"
12621
- },
12622
- "filter-attribute": {
12623
- "description": "Filter attribute",
12624
- "name": "filter-attribute",
12625
- "hasDynamicHelp": false,
12626
- "multiple": false,
12627
- "type": "option"
12628
- },
12629
- "filter-comparator": {
12630
- "description": "Filter comparator",
12631
- "name": "filter-comparator",
12632
- "hasDynamicHelp": false,
12633
- "multiple": false,
12634
- "type": "option"
12635
- },
12636
- "filter-value": {
12637
- "description": "Filter value",
12638
- "name": "filter-value",
12624
+ "description": {
12625
+ "description": "Variable description",
12626
+ "name": "description",
12639
12627
  "hasDynamicHelp": false,
12640
12628
  "multiple": false,
12641
12629
  "type": "option"
12642
12630
  },
12643
- "status": {
12644
- "description": "Status: 0 inactive, 1 active",
12645
- "name": "status",
12631
+ "color": {
12632
+ "description": "Variable color as HEX",
12633
+ "name": "color",
12646
12634
  "hasDynamicHelp": false,
12647
12635
  "multiple": false,
12648
- "options": [
12649
- "0",
12650
- "1"
12651
- ],
12652
12636
  "type": "option"
12653
12637
  },
12654
12638
  "data": {
@@ -12661,7 +12645,7 @@
12661
12645
  },
12662
12646
  "hasDynamicHelp": false,
12663
12647
  "hiddenAliases": [],
12664
- "id": "bots:filters:update",
12648
+ "id": "bots:env-vars:update",
12665
12649
  "pluginAlias": "@instantkom/cli",
12666
12650
  "pluginName": "@instantkom/cli",
12667
12651
  "pluginType": "core",
@@ -12672,11 +12656,11 @@
12672
12656
  "dist",
12673
12657
  "commands",
12674
12658
  "bots",
12675
- "filters",
12659
+ "env-vars",
12676
12660
  "update.js"
12677
12661
  ]
12678
12662
  },
12679
- "bots:env-vars:bots": {
12663
+ "bots:env-vars:values": {
12680
12664
  "aliases": [],
12681
12665
  "args": {
12682
12666
  "id": {
@@ -12685,7 +12669,7 @@
12685
12669
  "required": true
12686
12670
  }
12687
12671
  },
12688
- "description": "List bots using a bot environment variable",
12672
+ "description": "List recipient values for a bot environment variable",
12689
12673
  "flags": {
12690
12674
  "api-key": {
12691
12675
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12748,11 +12732,41 @@
12748
12732
  "hasDynamicHelp": false,
12749
12733
  "multiple": false,
12750
12734
  "type": "option"
12735
+ },
12736
+ "page": {
12737
+ "description": "Page number",
12738
+ "name": "page",
12739
+ "default": 1,
12740
+ "hasDynamicHelp": false,
12741
+ "multiple": false,
12742
+ "type": "option"
12743
+ },
12744
+ "limit": {
12745
+ "description": "Items per page",
12746
+ "name": "limit",
12747
+ "default": 20,
12748
+ "hasDynamicHelp": false,
12749
+ "multiple": false,
12750
+ "type": "option"
12751
+ },
12752
+ "search": {
12753
+ "description": "Search in recipient name or identifier",
12754
+ "name": "search",
12755
+ "hasDynamicHelp": false,
12756
+ "multiple": false,
12757
+ "type": "option"
12758
+ },
12759
+ "recipient": {
12760
+ "description": "Filter by recipient ID",
12761
+ "name": "recipient",
12762
+ "hasDynamicHelp": false,
12763
+ "multiple": false,
12764
+ "type": "option"
12751
12765
  }
12752
12766
  },
12753
12767
  "hasDynamicHelp": false,
12754
12768
  "hiddenAliases": [],
12755
- "id": "bots:env-vars:bots",
12769
+ "id": "bots:env-vars:values",
12756
12770
  "pluginAlias": "@instantkom/cli",
12757
12771
  "pluginName": "@instantkom/cli",
12758
12772
  "pluginType": "core",
@@ -12764,13 +12778,19 @@
12764
12778
  "commands",
12765
12779
  "bots",
12766
12780
  "env-vars",
12767
- "bots.js"
12781
+ "values.js"
12768
12782
  ]
12769
12783
  },
12770
- "bots:env-vars:create": {
12784
+ "bots:filters:create": {
12771
12785
  "aliases": [],
12772
- "args": {},
12773
- "description": "Create a bot environment variable",
12786
+ "args": {
12787
+ "botId": {
12788
+ "description": "Bot ID",
12789
+ "name": "botId",
12790
+ "required": true
12791
+ }
12792
+ },
12793
+ "description": "Create a bot filter",
12774
12794
  "flags": {
12775
12795
  "api-key": {
12776
12796
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12834,26 +12854,63 @@
12834
12854
  "multiple": false,
12835
12855
  "type": "option"
12836
12856
  },
12837
- "key": {
12838
- "description": "Variable key (max 16 chars, letters, digits, underscore)",
12839
- "name": "key",
12857
+ "name": {
12858
+ "description": "Filter name",
12859
+ "name": "name",
12860
+ "required": true,
12861
+ "hasDynamicHelp": false,
12862
+ "multiple": false,
12863
+ "type": "option"
12864
+ },
12865
+ "operator": {
12866
+ "description": "Logical operator",
12867
+ "name": "operator",
12868
+ "default": "and",
12869
+ "hasDynamicHelp": false,
12870
+ "multiple": false,
12871
+ "type": "option"
12872
+ },
12873
+ "filter-object": {
12874
+ "description": "Filter object type",
12875
+ "name": "filter-object",
12876
+ "default": "msg",
12877
+ "hasDynamicHelp": false,
12878
+ "multiple": false,
12879
+ "type": "option"
12880
+ },
12881
+ "filter-attribute": {
12882
+ "description": "Filter attribute",
12883
+ "name": "filter-attribute",
12884
+ "default": "text",
12885
+ "hasDynamicHelp": false,
12886
+ "multiple": false,
12887
+ "type": "option"
12888
+ },
12889
+ "filter-comparator": {
12890
+ "description": "Filter comparator",
12891
+ "name": "filter-comparator",
12892
+ "default": "contains",
12893
+ "hasDynamicHelp": false,
12894
+ "multiple": false,
12895
+ "type": "option"
12896
+ },
12897
+ "filter-value": {
12898
+ "description": "Filter value",
12899
+ "name": "filter-value",
12840
12900
  "required": true,
12841
12901
  "hasDynamicHelp": false,
12842
12902
  "multiple": false,
12843
12903
  "type": "option"
12844
12904
  },
12845
- "description": {
12846
- "description": "Variable description",
12847
- "name": "description",
12848
- "hasDynamicHelp": false,
12849
- "multiple": false,
12850
- "type": "option"
12851
- },
12852
- "color": {
12853
- "description": "Variable color as HEX",
12854
- "name": "color",
12905
+ "status": {
12906
+ "description": "Status: 0 inactive, 1 active",
12907
+ "name": "status",
12855
12908
  "hasDynamicHelp": false,
12856
12909
  "multiple": false,
12910
+ "options": [
12911
+ "0",
12912
+ "1"
12913
+ ],
12857
12914
  "type": "option"
12858
12915
  },
12859
12916
  "data": {
@@ -12866,7 +12923,7 @@
12866
12923
  },
12867
12924
  "hasDynamicHelp": false,
12868
12925
  "hiddenAliases": [],
12869
- "id": "bots:env-vars:create",
12926
+ "id": "bots:filters:create",
12870
12927
  "pluginAlias": "@instantkom/cli",
12871
12928
  "pluginName": "@instantkom/cli",
12872
12929
  "pluginType": "core",
@@ -12877,20 +12934,25 @@
12877
12934
  "dist",
12878
12935
  "commands",
12879
12936
  "bots",
12880
- "env-vars",
12937
+ "filters",
12881
12938
  "create.js"
12882
12939
  ]
12883
12940
  },
12884
- "bots:env-vars:delete": {
12941
+ "bots:filters:delete": {
12885
12942
  "aliases": [],
12886
12943
  "args": {
12887
- "id": {
12888
- "description": "Environment variable ID",
12889
- "name": "id",
12944
+ "botId": {
12945
+ "description": "Bot ID",
12946
+ "name": "botId",
12947
+ "required": true
12948
+ },
12949
+ "filterId": {
12950
+ "description": "Filter ID",
12951
+ "name": "filterId",
12890
12952
  "required": true
12891
12953
  }
12892
12954
  },
12893
- "description": "Delete a bot environment variable",
12955
+ "description": "Delete a bot filter",
12894
12956
  "flags": {
12895
12957
  "api-key": {
12896
12958
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12957,7 +13019,7 @@
12957
13019
  },
12958
13020
  "hasDynamicHelp": false,
12959
13021
  "hiddenAliases": [],
12960
- "id": "bots:env-vars:delete",
13022
+ "id": "bots:filters:delete",
12961
13023
  "pluginAlias": "@instantkom/cli",
12962
13024
  "pluginName": "@instantkom/cli",
12963
13025
  "pluginType": "core",
@@ -12968,20 +13030,25 @@
12968
13030
  "dist",
12969
13031
  "commands",
12970
13032
  "bots",
12971
- "env-vars",
13033
+ "filters",
12972
13034
  "delete.js"
12973
13035
  ]
12974
13036
  },
12975
- "bots:env-vars:get": {
13037
+ "bots:filters:get": {
12976
13038
  "aliases": [],
12977
13039
  "args": {
12978
- "id": {
12979
- "description": "Environment variable ID",
12980
- "name": "id",
13040
+ "botId": {
13041
+ "description": "Bot ID",
13042
+ "name": "botId",
13043
+ "required": true
13044
+ },
13045
+ "filterId": {
13046
+ "description": "Filter ID",
13047
+ "name": "filterId",
12981
13048
  "required": true
12982
13049
  }
12983
13050
  },
12984
- "description": "Get a bot environment variable",
13051
+ "description": "Get a bot filter",
12985
13052
  "flags": {
12986
13053
  "api-key": {
12987
13054
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13048,7 +13115,7 @@
13048
13115
  },
13049
13116
  "hasDynamicHelp": false,
13050
13117
  "hiddenAliases": [],
13051
- "id": "bots:env-vars:get",
13118
+ "id": "bots:filters:get",
13052
13119
  "pluginAlias": "@instantkom/cli",
13053
13120
  "pluginName": "@instantkom/cli",
13054
13121
  "pluginType": "core",
@@ -13059,14 +13126,20 @@
13059
13126
  "dist",
13060
13127
  "commands",
13061
13128
  "bots",
13062
- "env-vars",
13129
+ "filters",
13063
13130
  "get.js"
13064
13131
  ]
13065
13132
  },
13066
- "bots:env-vars:list": {
13133
+ "bots:filters:list": {
13067
13134
  "aliases": [],
13068
- "args": {},
13069
- "description": "List bot environment variables",
13135
+ "args": {
13136
+ "botId": {
13137
+ "description": "Bot ID",
13138
+ "name": "botId",
13139
+ "required": true
13140
+ }
13141
+ },
13142
+ "description": "List bot filters",
13070
13143
  "flags": {
13071
13144
  "api-key": {
13072
13145
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13146,16 +13219,20 @@
13146
13219
  "multiple": false,
13147
13220
  "type": "option"
13148
13221
  },
13149
- "search": {
13150
- "description": "Search in key or description",
13151
- "name": "search",
13222
+ "status": {
13223
+ "description": "Status filter: 0 inactive, 1 active",
13224
+ "name": "status",
13152
13225
  "hasDynamicHelp": false,
13153
13226
  "multiple": false,
13227
+ "options": [
13228
+ "0",
13229
+ "1"
13230
+ ],
13154
13231
  "type": "option"
13155
13232
  },
13156
- "color": {
13157
- "description": "Filter by color",
13158
- "name": "color",
13233
+ "search": {
13234
+ "description": "Search in name or description",
13235
+ "name": "search",
13159
13236
  "hasDynamicHelp": false,
13160
13237
  "multiple": false,
13161
13238
  "type": "option"
@@ -13163,7 +13240,7 @@
13163
13240
  },
13164
13241
  "hasDynamicHelp": false,
13165
13242
  "hiddenAliases": [],
13166
- "id": "bots:env-vars:list",
13243
+ "id": "bots:filters:list",
13167
13244
  "pluginAlias": "@instantkom/cli",
13168
13245
  "pluginName": "@instantkom/cli",
13169
13246
  "pluginType": "core",
@@ -13174,20 +13251,25 @@
13174
13251
  "dist",
13175
13252
  "commands",
13176
13253
  "bots",
13177
- "env-vars",
13254
+ "filters",
13178
13255
  "list.js"
13179
13256
  ]
13180
13257
  },
13181
- "bots:env-vars:update": {
13258
+ "bots:filters:update": {
13182
13259
  "aliases": [],
13183
13260
  "args": {
13184
- "id": {
13185
- "description": "Environment variable ID",
13186
- "name": "id",
13261
+ "botId": {
13262
+ "description": "Bot ID",
13263
+ "name": "botId",
13264
+ "required": true
13265
+ },
13266
+ "filterId": {
13267
+ "description": "Filter ID",
13268
+ "name": "filterId",
13187
13269
  "required": true
13188
13270
  }
13189
13271
  },
13190
- "description": "Update a bot environment variable",
13272
+ "description": "Update a bot filter",
13191
13273
  "flags": {
13192
13274
  "api-key": {
13193
13275
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13251,144 +13333,62 @@
13251
13333
  "multiple": false,
13252
13334
  "type": "option"
13253
13335
  },
13254
- "description": {
13255
- "description": "Variable description",
13256
- "name": "description",
13257
- "hasDynamicHelp": false,
13258
- "multiple": false,
13259
- "type": "option"
13260
- },
13261
- "color": {
13262
- "description": "Variable color as HEX",
13263
- "name": "color",
13264
- "hasDynamicHelp": false,
13265
- "multiple": false,
13266
- "type": "option"
13267
- },
13268
- "data": {
13269
- "description": "Additional JSON object payload",
13270
- "name": "data",
13271
- "hasDynamicHelp": false,
13272
- "multiple": false,
13273
- "type": "option"
13274
- }
13275
- },
13276
- "hasDynamicHelp": false,
13277
- "hiddenAliases": [],
13278
- "id": "bots:env-vars:update",
13279
- "pluginAlias": "@instantkom/cli",
13280
- "pluginName": "@instantkom/cli",
13281
- "pluginType": "core",
13282
- "strict": true,
13283
- "enableJsonFlag": false,
13284
- "isESM": true,
13285
- "relativePath": [
13286
- "dist",
13287
- "commands",
13288
- "bots",
13289
- "env-vars",
13290
- "update.js"
13291
- ]
13292
- },
13293
- "bots:env-vars:values": {
13294
- "aliases": [],
13295
- "args": {
13296
- "id": {
13297
- "description": "Environment variable ID",
13298
- "name": "id",
13299
- "required": true
13300
- }
13301
- },
13302
- "description": "List recipient values for a bot environment variable",
13303
- "flags": {
13304
- "api-key": {
13305
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
13306
- "env": "IKM_API_KEY",
13307
- "helpGroup": "GLOBAL",
13308
- "name": "api-key",
13336
+ "name": {
13337
+ "description": "Filter name",
13338
+ "name": "name",
13309
13339
  "hasDynamicHelp": false,
13310
13340
  "multiple": false,
13311
13341
  "type": "option"
13312
13342
  },
13313
- "format": {
13314
- "description": "Output format: text, json, yaml, or table",
13315
- "helpGroup": "GLOBAL",
13316
- "name": "format",
13317
- "default": "text",
13343
+ "operator": {
13344
+ "description": "Logical operator",
13345
+ "name": "operator",
13318
13346
  "hasDynamicHelp": false,
13319
13347
  "multiple": false,
13320
- "options": [
13321
- "text",
13322
- "json",
13323
- "yaml",
13324
- "table"
13325
- ],
13326
13348
  "type": "option"
13327
13349
  },
13328
- "json": {
13329
- "description": "Output in JSON format (alias for --format=json)",
13330
- "helpGroup": "GLOBAL",
13331
- "name": "json",
13332
- "allowNo": false,
13333
- "type": "boolean"
13334
- },
13335
- "quiet": {
13336
- "description": "Suppress all output except errors",
13337
- "helpGroup": "GLOBAL",
13338
- "name": "quiet",
13339
- "allowNo": false,
13340
- "type": "boolean"
13341
- },
13342
- "no-color": {
13343
- "description": "Disable color output",
13344
- "helpGroup": "GLOBAL",
13345
- "name": "no-color",
13346
- "allowNo": false,
13347
- "type": "boolean"
13348
- },
13349
- "profile": {
13350
- "description": "Named configuration profile to use",
13351
- "helpGroup": "GLOBAL",
13352
- "name": "profile",
13353
- "default": "default",
13350
+ "filter-object": {
13351
+ "description": "Filter object type",
13352
+ "name": "filter-object",
13354
13353
  "hasDynamicHelp": false,
13355
13354
  "multiple": false,
13356
13355
  "type": "option"
13357
13356
  },
13358
- "api-url": {
13359
- "description": "Override the API base URL (e.g. for staging)",
13360
- "helpGroup": "GLOBAL",
13361
- "name": "api-url",
13357
+ "filter-attribute": {
13358
+ "description": "Filter attribute",
13359
+ "name": "filter-attribute",
13362
13360
  "hasDynamicHelp": false,
13363
13361
  "multiple": false,
13364
13362
  "type": "option"
13365
13363
  },
13366
- "page": {
13367
- "description": "Page number",
13368
- "name": "page",
13369
- "default": 1,
13364
+ "filter-comparator": {
13365
+ "description": "Filter comparator",
13366
+ "name": "filter-comparator",
13370
13367
  "hasDynamicHelp": false,
13371
13368
  "multiple": false,
13372
13369
  "type": "option"
13373
13370
  },
13374
- "limit": {
13375
- "description": "Items per page",
13376
- "name": "limit",
13377
- "default": 20,
13371
+ "filter-value": {
13372
+ "description": "Filter value",
13373
+ "name": "filter-value",
13378
13374
  "hasDynamicHelp": false,
13379
13375
  "multiple": false,
13380
13376
  "type": "option"
13381
13377
  },
13382
- "search": {
13383
- "description": "Search in recipient name or identifier",
13384
- "name": "search",
13378
+ "status": {
13379
+ "description": "Status: 0 inactive, 1 active",
13380
+ "name": "status",
13385
13381
  "hasDynamicHelp": false,
13386
13382
  "multiple": false,
13383
+ "options": [
13384
+ "0",
13385
+ "1"
13386
+ ],
13387
13387
  "type": "option"
13388
13388
  },
13389
- "recipient": {
13390
- "description": "Filter by recipient ID",
13391
- "name": "recipient",
13389
+ "data": {
13390
+ "description": "Additional JSON object payload",
13391
+ "name": "data",
13392
13392
  "hasDynamicHelp": false,
13393
13393
  "multiple": false,
13394
13394
  "type": "option"
@@ -13396,7 +13396,7 @@
13396
13396
  },
13397
13397
  "hasDynamicHelp": false,
13398
13398
  "hiddenAliases": [],
13399
- "id": "bots:env-vars:values",
13399
+ "id": "bots:filters:update",
13400
13400
  "pluginAlias": "@instantkom/cli",
13401
13401
  "pluginName": "@instantkom/cli",
13402
13402
  "pluginType": "core",
@@ -13407,8 +13407,8 @@
13407
13407
  "dist",
13408
13408
  "commands",
13409
13409
  "bots",
13410
- "env-vars",
13411
- "values.js"
13410
+ "filters",
13411
+ "update.js"
13412
13412
  ]
13413
13413
  },
13414
13414
  "bots:tags:add": {
@@ -17052,5 +17052,5 @@
17052
17052
  ]
17053
17053
  }
17054
17054
  },
17055
- "version": "3.188.0"
17055
+ "version": "3.189.0"
17056
17056
  }