@instantkom/cli 3.170.0 → 3.172.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.
@@ -2015,10 +2015,16 @@
2015
2015
  "update.js"
2016
2016
  ]
2017
2017
  },
2018
- "broadcast:create": {
2018
+ "chats:get": {
2019
2019
  "aliases": [],
2020
- "args": {},
2021
- "description": "Create a broadcast for channels or segments",
2020
+ "args": {
2021
+ "id": {
2022
+ "description": "chat ID",
2023
+ "name": "id",
2024
+ "required": true
2025
+ }
2026
+ },
2027
+ "description": "Get chat by ID",
2022
2028
  "flags": {
2023
2029
  "api-key": {
2024
2030
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2081,93 +2087,11 @@
2081
2087
  "hasDynamicHelp": false,
2082
2088
  "multiple": false,
2083
2089
  "type": "option"
2084
- },
2085
- "channel": {
2086
- "description": "Channel ID target",
2087
- "name": "channel",
2088
- "hasDynamicHelp": false,
2089
- "multiple": false,
2090
- "type": "option"
2091
- },
2092
- "segment": {
2093
- "description": "Segment ID within --channel",
2094
- "name": "segment",
2095
- "hasDynamicHelp": false,
2096
- "multiple": false,
2097
- "type": "option"
2098
- },
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,
2110
- "hasDynamicHelp": false,
2111
- "multiple": false,
2112
- "type": "option"
2113
- },
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"
2120
- },
2121
- "dry-run": {
2122
- "description": "Validate and print the broadcast payload without mutating API calls",
2123
- "name": "dry-run",
2124
- "allowNo": false,
2125
- "type": "boolean"
2126
- },
2127
- "idempotency-key": {
2128
- "description": "Idempotency key forwarded as Idempotency-Key",
2129
- "name": "idempotency-key",
2130
- "hasDynamicHelp": false,
2131
- "multiple": false,
2132
- "type": "option"
2133
- },
2134
- "media": {
2135
- "description": "Media file path to upload",
2136
- "name": "media",
2137
- "hasDynamicHelp": false,
2138
- "multiple": true,
2139
- "type": "option"
2140
- },
2141
- "template-id": {
2142
- "description": "WhatsApp template ID",
2143
- "name": "template-id",
2144
- "hasDynamicHelp": false,
2145
- "multiple": false,
2146
- "type": "option"
2147
- },
2148
- "send-status": {
2149
- "description": "Initial broadcast send status",
2150
- "name": "send-status",
2151
- "default": "draft",
2152
- "hasDynamicHelp": false,
2153
- "multiple": false,
2154
- "options": [
2155
- "draft",
2156
- "scheduled",
2157
- "sending"
2158
- ],
2159
- "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
2090
  }
2167
2091
  },
2168
2092
  "hasDynamicHelp": false,
2169
2093
  "hiddenAliases": [],
2170
- "id": "broadcast:create",
2094
+ "id": "chats:get",
2171
2095
  "pluginAlias": "@instantkom/cli",
2172
2096
  "pluginName": "@instantkom/cli",
2173
2097
  "pluginType": "core",
@@ -2177,20 +2101,14 @@
2177
2101
  "relativePath": [
2178
2102
  "dist",
2179
2103
  "commands",
2180
- "broadcast",
2181
- "create.js"
2104
+ "chats",
2105
+ "get.js"
2182
2106
  ]
2183
2107
  },
2184
- "broadcast:delete": {
2108
+ "chats:list": {
2185
2109
  "aliases": [],
2186
- "args": {
2187
- "id": {
2188
- "description": "broadcast ID",
2189
- "name": "id",
2190
- "required": true
2191
- }
2192
- },
2193
- "description": "Delete broadcast",
2110
+ "args": {},
2111
+ "description": "List chats",
2194
2112
  "flags": {
2195
2113
  "api-key": {
2196
2114
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2253,11 +2171,73 @@
2253
2171
  "hasDynamicHelp": false,
2254
2172
  "multiple": false,
2255
2173
  "type": "option"
2174
+ },
2175
+ "page": {
2176
+ "description": "Page number",
2177
+ "name": "page",
2178
+ "default": 1,
2179
+ "hasDynamicHelp": false,
2180
+ "multiple": false,
2181
+ "type": "option"
2182
+ },
2183
+ "limit": {
2184
+ "description": "Items per page",
2185
+ "name": "limit",
2186
+ "default": 20,
2187
+ "hasDynamicHelp": false,
2188
+ "multiple": false,
2189
+ "type": "option"
2190
+ },
2191
+ "channel": {
2192
+ "description": "Filter by channel ID",
2193
+ "name": "channel",
2194
+ "hasDynamicHelp": false,
2195
+ "multiple": false,
2196
+ "type": "option"
2197
+ },
2198
+ "channels": {
2199
+ "description": "Comma-separated channel IDs",
2200
+ "name": "channels",
2201
+ "hasDynamicHelp": false,
2202
+ "multiple": false,
2203
+ "type": "option"
2204
+ },
2205
+ "search": {
2206
+ "description": "Search chats",
2207
+ "name": "search",
2208
+ "hasDynamicHelp": false,
2209
+ "multiple": false,
2210
+ "type": "option"
2211
+ },
2212
+ "status": {
2213
+ "description": "Chat status",
2214
+ "name": "status",
2215
+ "hasDynamicHelp": false,
2216
+ "multiple": false,
2217
+ "options": [
2218
+ "all",
2219
+ "unread",
2220
+ "read",
2221
+ "archived"
2222
+ ],
2223
+ "type": "option"
2224
+ },
2225
+ "unread-only": {
2226
+ "description": "Only unread chats",
2227
+ "name": "unread-only",
2228
+ "allowNo": false,
2229
+ "type": "boolean"
2230
+ },
2231
+ "include-archived": {
2232
+ "description": "Include archived chats",
2233
+ "name": "include-archived",
2234
+ "allowNo": false,
2235
+ "type": "boolean"
2256
2236
  }
2257
2237
  },
2258
2238
  "hasDynamicHelp": false,
2259
2239
  "hiddenAliases": [],
2260
- "id": "broadcast:delete",
2240
+ "id": "chats:list",
2261
2241
  "pluginAlias": "@instantkom/cli",
2262
2242
  "pluginName": "@instantkom/cli",
2263
2243
  "pluginType": "core",
@@ -2267,20 +2247,20 @@
2267
2247
  "relativePath": [
2268
2248
  "dist",
2269
2249
  "commands",
2270
- "broadcast",
2271
- "delete.js"
2250
+ "chats",
2251
+ "list.js"
2272
2252
  ]
2273
2253
  },
2274
- "broadcast:get": {
2254
+ "chats:reply": {
2275
2255
  "aliases": [],
2276
2256
  "args": {
2277
2257
  "id": {
2278
- "description": "broadcast ID",
2258
+ "description": "Chat ID",
2279
2259
  "name": "id",
2280
2260
  "required": true
2281
2261
  }
2282
2262
  },
2283
- "description": "Get broadcast by ID",
2263
+ "description": "Reply in a chat",
2284
2264
  "flags": {
2285
2265
  "api-key": {
2286
2266
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2343,11 +2323,19 @@
2343
2323
  "hasDynamicHelp": false,
2344
2324
  "multiple": false,
2345
2325
  "type": "option"
2326
+ },
2327
+ "text": {
2328
+ "description": "Reply text",
2329
+ "name": "text",
2330
+ "required": true,
2331
+ "hasDynamicHelp": false,
2332
+ "multiple": false,
2333
+ "type": "option"
2346
2334
  }
2347
2335
  },
2348
2336
  "hasDynamicHelp": false,
2349
2337
  "hiddenAliases": [],
2350
- "id": "broadcast:get",
2338
+ "id": "chats:reply",
2351
2339
  "pluginAlias": "@instantkom/cli",
2352
2340
  "pluginName": "@instantkom/cli",
2353
2341
  "pluginType": "core",
@@ -2357,14 +2345,20 @@
2357
2345
  "relativePath": [
2358
2346
  "dist",
2359
2347
  "commands",
2360
- "broadcast",
2361
- "get.js"
2348
+ "chats",
2349
+ "reply.js"
2362
2350
  ]
2363
2351
  },
2364
- "broadcast:list": {
2352
+ "config:get": {
2365
2353
  "aliases": [],
2366
- "args": {},
2367
- "description": "List broadcasts",
2354
+ "args": {
2355
+ "key": {
2356
+ "description": "Configuration key to retrieve",
2357
+ "name": "key",
2358
+ "required": true
2359
+ }
2360
+ },
2361
+ "description": "Get a configuration value for the current profile",
2368
2362
  "flags": {
2369
2363
  "api-key": {
2370
2364
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2427,73 +2421,11 @@
2427
2421
  "hasDynamicHelp": false,
2428
2422
  "multiple": false,
2429
2423
  "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
2424
  }
2493
2425
  },
2494
2426
  "hasDynamicHelp": false,
2495
2427
  "hiddenAliases": [],
2496
- "id": "broadcast:list",
2428
+ "id": "config:get",
2497
2429
  "pluginAlias": "@instantkom/cli",
2498
2430
  "pluginName": "@instantkom/cli",
2499
2431
  "pluginType": "core",
@@ -2503,20 +2435,25 @@
2503
2435
  "relativePath": [
2504
2436
  "dist",
2505
2437
  "commands",
2506
- "broadcast",
2507
- "list.js"
2438
+ "config",
2439
+ "get.js"
2508
2440
  ]
2509
2441
  },
2510
- "broadcast:send": {
2442
+ "config:set": {
2511
2443
  "aliases": [],
2512
2444
  "args": {
2513
- "id": {
2514
- "description": "Broadcast ID",
2515
- "name": "id",
2445
+ "key": {
2446
+ "description": "Configuration key to set",
2447
+ "name": "key",
2448
+ "required": true
2449
+ },
2450
+ "value": {
2451
+ "description": "Value to assign",
2452
+ "name": "value",
2516
2453
  "required": true
2517
2454
  }
2518
2455
  },
2519
- "description": "Send a broadcast immediately",
2456
+ "description": "Set a configuration value for the current profile",
2520
2457
  "flags": {
2521
2458
  "api-key": {
2522
2459
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2583,7 +2520,7 @@
2583
2520
  },
2584
2521
  "hasDynamicHelp": false,
2585
2522
  "hiddenAliases": [],
2586
- "id": "broadcast:send",
2523
+ "id": "config:set",
2587
2524
  "pluginAlias": "@instantkom/cli",
2588
2525
  "pluginName": "@instantkom/cli",
2589
2526
  "pluginType": "core",
@@ -2593,20 +2530,20 @@
2593
2530
  "relativePath": [
2594
2531
  "dist",
2595
2532
  "commands",
2596
- "broadcast",
2597
- "send.js"
2533
+ "config",
2534
+ "set.js"
2598
2535
  ]
2599
2536
  },
2600
- "broadcast:status": {
2537
+ "config:unset": {
2601
2538
  "aliases": [],
2602
2539
  "args": {
2603
- "id": {
2604
- "description": "Broadcast ID",
2605
- "name": "id",
2540
+ "key": {
2541
+ "description": "Configuration key to remove",
2542
+ "name": "key",
2606
2543
  "required": true
2607
2544
  }
2608
2545
  },
2609
- "description": "Show broadcast send status",
2546
+ "description": "Remove a configuration key from the current profile",
2610
2547
  "flags": {
2611
2548
  "api-key": {
2612
2549
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2673,7 +2610,7 @@
2673
2610
  },
2674
2611
  "hasDynamicHelp": false,
2675
2612
  "hiddenAliases": [],
2676
- "id": "broadcast:status",
2613
+ "id": "config:unset",
2677
2614
  "pluginAlias": "@instantkom/cli",
2678
2615
  "pluginName": "@instantkom/cli",
2679
2616
  "pluginType": "core",
@@ -2683,20 +2620,14 @@
2683
2620
  "relativePath": [
2684
2621
  "dist",
2685
2622
  "commands",
2686
- "broadcast",
2687
- "status.js"
2623
+ "config",
2624
+ "unset.js"
2688
2625
  ]
2689
2626
  },
2690
- "broadcast:update": {
2627
+ "broadcast:create": {
2691
2628
  "aliases": [],
2692
- "args": {
2693
- "id": {
2694
- "description": "Broadcast ID",
2695
- "name": "id",
2696
- "required": true
2697
- }
2698
- },
2699
- "description": "Update a broadcast",
2629
+ "args": {},
2630
+ "description": "Create a broadcast for channels or segments",
2700
2631
  "flags": {
2701
2632
  "api-key": {
2702
2633
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2760,76 +2691,92 @@
2760
2691
  "multiple": false,
2761
2692
  "type": "option"
2762
2693
  },
2763
- "text": {
2764
- "description": "Broadcast message text",
2765
- "name": "text",
2694
+ "channel": {
2695
+ "description": "Channel ID target",
2696
+ "name": "channel",
2766
2697
  "hasDynamicHelp": false,
2767
2698
  "multiple": false,
2768
2699
  "type": "option"
2769
2700
  },
2770
- "send-status": {
2771
- "description": "Send status",
2772
- "name": "send-status",
2701
+ "segment": {
2702
+ "description": "Segment ID within --channel",
2703
+ "name": "segment",
2773
2704
  "hasDynamicHelp": false,
2774
2705
  "multiple": false,
2775
2706
  "type": "option"
2776
2707
  },
2777
- "scheduled-at": {
2778
- "description": "Unix timestamp for scheduled send",
2779
- "name": "scheduled-at",
2708
+ "target": {
2709
+ "description": "Target as channelId or channelId:segmentId; may be repeated",
2710
+ "name": "target",
2780
2711
  "hasDynamicHelp": false,
2781
- "multiple": false,
2712
+ "multiple": true,
2782
2713
  "type": "option"
2783
2714
  },
2784
- "approved": {
2785
- "description": "Mark as approved",
2786
- "name": "approved",
2787
- "allowNo": false,
2788
- "type": "boolean"
2715
+ "text": {
2716
+ "description": "Broadcast message text",
2717
+ "name": "text",
2718
+ "required": true,
2719
+ "hasDynamicHelp": false,
2720
+ "multiple": false,
2721
+ "type": "option"
2789
2722
  },
2790
- "locked": {
2791
- "description": "Mark as locked",
2792
- "name": "locked",
2793
- "allowNo": false,
2794
- "type": "boolean"
2723
+ "send-at": {
2724
+ "description": "Schedule send for an ISO-8601 date-time",
2725
+ "name": "send-at",
2726
+ "hasDynamicHelp": false,
2727
+ "multiple": false,
2728
+ "type": "option"
2795
2729
  },
2796
- "test": {
2797
- "description": "Mark as test broadcast",
2798
- "name": "test",
2730
+ "dry-run": {
2731
+ "description": "Validate and print the broadcast payload without mutating API calls",
2732
+ "name": "dry-run",
2799
2733
  "allowNo": false,
2800
2734
  "type": "boolean"
2801
2735
  },
2802
- "template-id": {
2803
- "description": "Template ID",
2804
- "name": "template-id",
2736
+ "idempotency-key": {
2737
+ "description": "Idempotency key forwarded as Idempotency-Key",
2738
+ "name": "idempotency-key",
2805
2739
  "hasDynamicHelp": false,
2806
2740
  "multiple": false,
2807
2741
  "type": "option"
2808
2742
  },
2809
- "remove-media": {
2810
- "description": "Remove existing media",
2811
- "name": "remove-media",
2812
- "allowNo": false,
2813
- "type": "boolean"
2743
+ "media": {
2744
+ "description": "Media file path to upload",
2745
+ "name": "media",
2746
+ "hasDynamicHelp": false,
2747
+ "multiple": true,
2748
+ "type": "option"
2814
2749
  },
2815
- "header-footer": {
2816
- "description": "Header/footer JSON array",
2817
- "name": "header-footer",
2750
+ "template-id": {
2751
+ "description": "WhatsApp template ID",
2752
+ "name": "template-id",
2818
2753
  "hasDynamicHelp": false,
2819
2754
  "multiple": false,
2820
2755
  "type": "option"
2821
2756
  },
2822
- "data": {
2823
- "description": "Additional JSON object payload",
2824
- "name": "data",
2757
+ "send-status": {
2758
+ "description": "Initial broadcast send status",
2759
+ "name": "send-status",
2760
+ "default": "draft",
2825
2761
  "hasDynamicHelp": false,
2826
2762
  "multiple": false,
2763
+ "options": [
2764
+ "draft",
2765
+ "scheduled",
2766
+ "sending"
2767
+ ],
2827
2768
  "type": "option"
2769
+ },
2770
+ "auto-approve": {
2771
+ "description": "Auto-approve broadcast when allowed by API permissions",
2772
+ "name": "auto-approve",
2773
+ "allowNo": false,
2774
+ "type": "boolean"
2828
2775
  }
2829
2776
  },
2830
2777
  "hasDynamicHelp": false,
2831
2778
  "hiddenAliases": [],
2832
- "id": "broadcast:update",
2779
+ "id": "broadcast:create",
2833
2780
  "pluginAlias": "@instantkom/cli",
2834
2781
  "pluginName": "@instantkom/cli",
2835
2782
  "pluginType": "core",
@@ -2840,13 +2787,19 @@
2840
2787
  "dist",
2841
2788
  "commands",
2842
2789
  "broadcast",
2843
- "update.js"
2790
+ "create.js"
2844
2791
  ]
2845
2792
  },
2846
- "channels:create": {
2793
+ "broadcast:delete": {
2847
2794
  "aliases": [],
2848
- "args": {},
2849
- "description": "Create a channel",
2795
+ "args": {
2796
+ "id": {
2797
+ "description": "broadcast ID",
2798
+ "name": "id",
2799
+ "required": true
2800
+ }
2801
+ },
2802
+ "description": "Delete broadcast",
2850
2803
  "flags": {
2851
2804
  "api-key": {
2852
2805
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2909,48 +2862,11 @@
2909
2862
  "hasDynamicHelp": false,
2910
2863
  "multiple": false,
2911
2864
  "type": "option"
2912
- },
2913
- "name": {
2914
- "description": "Channel name",
2915
- "name": "name",
2916
- "required": true,
2917
- "hasDynamicHelp": false,
2918
- "multiple": false,
2919
- "type": "option"
2920
- },
2921
- "gateway-type": {
2922
- "description": "Gateway type ID",
2923
- "name": "gateway-type",
2924
- "required": true,
2925
- "hasDynamicHelp": false,
2926
- "multiple": false,
2927
- "type": "option"
2928
- },
2929
- "status": {
2930
- "description": "Channel lifecycle status",
2931
- "name": "status",
2932
- "hasDynamicHelp": false,
2933
- "multiple": false,
2934
- "type": "option"
2935
- },
2936
- "description": {
2937
- "description": "Channel description",
2938
- "name": "description",
2939
- "hasDynamicHelp": false,
2940
- "multiple": false,
2941
- "type": "option"
2942
- },
2943
- "data": {
2944
- "description": "Additional JSON object payload",
2945
- "name": "data",
2946
- "hasDynamicHelp": false,
2947
- "multiple": false,
2948
- "type": "option"
2949
2865
  }
2950
2866
  },
2951
2867
  "hasDynamicHelp": false,
2952
2868
  "hiddenAliases": [],
2953
- "id": "channels:create",
2869
+ "id": "broadcast:delete",
2954
2870
  "pluginAlias": "@instantkom/cli",
2955
2871
  "pluginName": "@instantkom/cli",
2956
2872
  "pluginType": "core",
@@ -2960,20 +2876,20 @@
2960
2876
  "relativePath": [
2961
2877
  "dist",
2962
2878
  "commands",
2963
- "channels",
2964
- "create.js"
2879
+ "broadcast",
2880
+ "delete.js"
2965
2881
  ]
2966
2882
  },
2967
- "channels:get": {
2883
+ "broadcast:get": {
2968
2884
  "aliases": [],
2969
2885
  "args": {
2970
2886
  "id": {
2971
- "description": "Channel ID",
2887
+ "description": "broadcast ID",
2972
2888
  "name": "id",
2973
2889
  "required": true
2974
2890
  }
2975
2891
  },
2976
- "description": "Get a channel by ID",
2892
+ "description": "Get broadcast by ID",
2977
2893
  "flags": {
2978
2894
  "api-key": {
2979
2895
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3040,7 +2956,7 @@
3040
2956
  },
3041
2957
  "hasDynamicHelp": false,
3042
2958
  "hiddenAliases": [],
3043
- "id": "channels:get",
2959
+ "id": "broadcast:get",
3044
2960
  "pluginAlias": "@instantkom/cli",
3045
2961
  "pluginName": "@instantkom/cli",
3046
2962
  "pluginType": "core",
@@ -3050,20 +2966,14 @@
3050
2966
  "relativePath": [
3051
2967
  "dist",
3052
2968
  "commands",
3053
- "channels",
2969
+ "broadcast",
3054
2970
  "get.js"
3055
2971
  ]
3056
2972
  },
3057
- "channels:kpis": {
2973
+ "broadcast:list": {
3058
2974
  "aliases": [],
3059
- "args": {
3060
- "id": {
3061
- "description": "Optional channel ID; omit for aggregated channel KPIs",
3062
- "name": "id",
3063
- "required": false
3064
- }
3065
- },
3066
- "description": "Get channel KPIs",
2975
+ "args": {},
2976
+ "description": "List broadcasts",
3067
2977
  "flags": {
3068
2978
  "api-key": {
3069
2979
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3127,17 +3037,72 @@
3127
3037
  "multiple": false,
3128
3038
  "type": "option"
3129
3039
  },
3130
- "period": {
3131
- "description": "KPI period",
3132
- "name": "period",
3040
+ "page": {
3041
+ "description": "Page number",
3042
+ "name": "page",
3043
+ "default": 1,
3044
+ "hasDynamicHelp": false,
3045
+ "multiple": false,
3046
+ "type": "option"
3047
+ },
3048
+ "limit": {
3049
+ "description": "Items per page",
3050
+ "name": "limit",
3051
+ "default": 20,
3052
+ "hasDynamicHelp": false,
3053
+ "multiple": false,
3054
+ "type": "option"
3055
+ },
3056
+ "channel": {
3057
+ "description": "Filter by channel ID",
3058
+ "name": "channel",
3059
+ "hasDynamicHelp": false,
3060
+ "multiple": false,
3061
+ "type": "option"
3062
+ },
3063
+ "send-status": {
3064
+ "description": "Filter by send status",
3065
+ "name": "send-status",
3066
+ "hasDynamicHelp": false,
3067
+ "multiple": false,
3068
+ "type": "option"
3069
+ },
3070
+ "type": {
3071
+ "description": "Broadcast type",
3072
+ "name": "type",
3073
+ "hasDynamicHelp": false,
3074
+ "multiple": false,
3075
+ "options": [
3076
+ "text",
3077
+ "image",
3078
+ "video",
3079
+ "audio",
3080
+ "document"
3081
+ ],
3082
+ "type": "option"
3083
+ },
3084
+ "search": {
3085
+ "description": "Search broadcasts",
3086
+ "name": "search",
3087
+ "hasDynamicHelp": false,
3088
+ "multiple": false,
3089
+ "type": "option"
3090
+ },
3091
+ "test": {
3092
+ "description": "Filter test flag: 0 or 1",
3093
+ "name": "test",
3133
3094
  "hasDynamicHelp": false,
3134
3095
  "multiple": false,
3096
+ "options": [
3097
+ "0",
3098
+ "1"
3099
+ ],
3135
3100
  "type": "option"
3136
3101
  }
3137
3102
  },
3138
3103
  "hasDynamicHelp": false,
3139
3104
  "hiddenAliases": [],
3140
- "id": "channels:kpis",
3105
+ "id": "broadcast:list",
3141
3106
  "pluginAlias": "@instantkom/cli",
3142
3107
  "pluginName": "@instantkom/cli",
3143
3108
  "pluginType": "core",
@@ -3147,14 +3112,20 @@
3147
3112
  "relativePath": [
3148
3113
  "dist",
3149
3114
  "commands",
3150
- "channels",
3151
- "kpis.js"
3115
+ "broadcast",
3116
+ "list.js"
3152
3117
  ]
3153
3118
  },
3154
- "channels:list": {
3119
+ "broadcast:send": {
3155
3120
  "aliases": [],
3156
- "args": {},
3157
- "description": "List channels",
3121
+ "args": {
3122
+ "id": {
3123
+ "description": "Broadcast ID",
3124
+ "name": "id",
3125
+ "required": true
3126
+ }
3127
+ },
3128
+ "description": "Send a broadcast immediately",
3158
3129
  "flags": {
3159
3130
  "api-key": {
3160
3131
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3217,48 +3188,11 @@
3217
3188
  "hasDynamicHelp": false,
3218
3189
  "multiple": false,
3219
3190
  "type": "option"
3220
- },
3221
- "page": {
3222
- "description": "Page number",
3223
- "name": "page",
3224
- "default": 1,
3225
- "hasDynamicHelp": false,
3226
- "multiple": false,
3227
- "type": "option"
3228
- },
3229
- "limit": {
3230
- "description": "Items per page",
3231
- "name": "limit",
3232
- "default": 20,
3233
- "hasDynamicHelp": false,
3234
- "multiple": false,
3235
- "type": "option"
3236
- },
3237
- "status": {
3238
- "description": "Filter by channel status",
3239
- "name": "status",
3240
- "hasDynamicHelp": false,
3241
- "multiple": false,
3242
- "type": "option"
3243
- },
3244
- "gateway-type": {
3245
- "description": "Filter by gateway type ID",
3246
- "name": "gateway-type",
3247
- "hasDynamicHelp": false,
3248
- "multiple": false,
3249
- "type": "option"
3250
- },
3251
- "search": {
3252
- "description": "Search by channel name",
3253
- "name": "search",
3254
- "hasDynamicHelp": false,
3255
- "multiple": false,
3256
- "type": "option"
3257
3191
  }
3258
3192
  },
3259
3193
  "hasDynamicHelp": false,
3260
3194
  "hiddenAliases": [],
3261
- "id": "channels:list",
3195
+ "id": "broadcast:send",
3262
3196
  "pluginAlias": "@instantkom/cli",
3263
3197
  "pluginName": "@instantkom/cli",
3264
3198
  "pluginType": "core",
@@ -3268,20 +3202,20 @@
3268
3202
  "relativePath": [
3269
3203
  "dist",
3270
3204
  "commands",
3271
- "channels",
3272
- "list.js"
3205
+ "broadcast",
3206
+ "send.js"
3273
3207
  ]
3274
3208
  },
3275
- "channels:update": {
3209
+ "broadcast:status": {
3276
3210
  "aliases": [],
3277
3211
  "args": {
3278
3212
  "id": {
3279
- "description": "Channel ID",
3213
+ "description": "Broadcast ID",
3280
3214
  "name": "id",
3281
3215
  "required": true
3282
3216
  }
3283
3217
  },
3284
- "description": "Update a channel",
3218
+ "description": "Show broadcast send status",
3285
3219
  "flags": {
3286
3220
  "api-key": {
3287
3221
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3344,39 +3278,11 @@
3344
3278
  "hasDynamicHelp": false,
3345
3279
  "multiple": false,
3346
3280
  "type": "option"
3347
- },
3348
- "name": {
3349
- "description": "Channel name",
3350
- "name": "name",
3351
- "hasDynamicHelp": false,
3352
- "multiple": false,
3353
- "type": "option"
3354
- },
3355
- "status": {
3356
- "description": "Channel lifecycle status",
3357
- "name": "status",
3358
- "hasDynamicHelp": false,
3359
- "multiple": false,
3360
- "type": "option"
3361
- },
3362
- "description": {
3363
- "description": "Channel description",
3364
- "name": "description",
3365
- "hasDynamicHelp": false,
3366
- "multiple": false,
3367
- "type": "option"
3368
- },
3369
- "data": {
3370
- "description": "Additional JSON object payload",
3371
- "name": "data",
3372
- "hasDynamicHelp": false,
3373
- "multiple": false,
3374
- "type": "option"
3375
3281
  }
3376
3282
  },
3377
3283
  "hasDynamicHelp": false,
3378
3284
  "hiddenAliases": [],
3379
- "id": "channels:update",
3285
+ "id": "broadcast:status",
3380
3286
  "pluginAlias": "@instantkom/cli",
3381
3287
  "pluginName": "@instantkom/cli",
3382
3288
  "pluginType": "core",
@@ -3386,20 +3292,20 @@
3386
3292
  "relativePath": [
3387
3293
  "dist",
3388
3294
  "commands",
3389
- "channels",
3390
- "update.js"
3295
+ "broadcast",
3296
+ "status.js"
3391
3297
  ]
3392
3298
  },
3393
- "chats:get": {
3299
+ "broadcast:update": {
3394
3300
  "aliases": [],
3395
3301
  "args": {
3396
3302
  "id": {
3397
- "description": "chat ID",
3303
+ "description": "Broadcast ID",
3398
3304
  "name": "id",
3399
3305
  "required": true
3400
3306
  }
3401
3307
  },
3402
- "description": "Get chat by ID",
3308
+ "description": "Update a broadcast",
3403
3309
  "flags": {
3404
3310
  "api-key": {
3405
3311
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3462,11 +3368,77 @@
3462
3368
  "hasDynamicHelp": false,
3463
3369
  "multiple": false,
3464
3370
  "type": "option"
3371
+ },
3372
+ "text": {
3373
+ "description": "Broadcast message text",
3374
+ "name": "text",
3375
+ "hasDynamicHelp": false,
3376
+ "multiple": false,
3377
+ "type": "option"
3378
+ },
3379
+ "send-status": {
3380
+ "description": "Send status",
3381
+ "name": "send-status",
3382
+ "hasDynamicHelp": false,
3383
+ "multiple": false,
3384
+ "type": "option"
3385
+ },
3386
+ "scheduled-at": {
3387
+ "description": "Unix timestamp for scheduled send",
3388
+ "name": "scheduled-at",
3389
+ "hasDynamicHelp": false,
3390
+ "multiple": false,
3391
+ "type": "option"
3392
+ },
3393
+ "approved": {
3394
+ "description": "Mark as approved",
3395
+ "name": "approved",
3396
+ "allowNo": false,
3397
+ "type": "boolean"
3398
+ },
3399
+ "locked": {
3400
+ "description": "Mark as locked",
3401
+ "name": "locked",
3402
+ "allowNo": false,
3403
+ "type": "boolean"
3404
+ },
3405
+ "test": {
3406
+ "description": "Mark as test broadcast",
3407
+ "name": "test",
3408
+ "allowNo": false,
3409
+ "type": "boolean"
3410
+ },
3411
+ "template-id": {
3412
+ "description": "Template ID",
3413
+ "name": "template-id",
3414
+ "hasDynamicHelp": false,
3415
+ "multiple": false,
3416
+ "type": "option"
3417
+ },
3418
+ "remove-media": {
3419
+ "description": "Remove existing media",
3420
+ "name": "remove-media",
3421
+ "allowNo": false,
3422
+ "type": "boolean"
3423
+ },
3424
+ "header-footer": {
3425
+ "description": "Header/footer JSON array",
3426
+ "name": "header-footer",
3427
+ "hasDynamicHelp": false,
3428
+ "multiple": false,
3429
+ "type": "option"
3430
+ },
3431
+ "data": {
3432
+ "description": "Additional JSON object payload",
3433
+ "name": "data",
3434
+ "hasDynamicHelp": false,
3435
+ "multiple": false,
3436
+ "type": "option"
3465
3437
  }
3466
3438
  },
3467
3439
  "hasDynamicHelp": false,
3468
3440
  "hiddenAliases": [],
3469
- "id": "chats:get",
3441
+ "id": "broadcast:update",
3470
3442
  "pluginAlias": "@instantkom/cli",
3471
3443
  "pluginName": "@instantkom/cli",
3472
3444
  "pluginType": "core",
@@ -3476,14 +3448,14 @@
3476
3448
  "relativePath": [
3477
3449
  "dist",
3478
3450
  "commands",
3479
- "chats",
3480
- "get.js"
3451
+ "broadcast",
3452
+ "update.js"
3481
3453
  ]
3482
3454
  },
3483
- "chats:list": {
3455
+ "contacts:create": {
3484
3456
  "aliases": [],
3485
3457
  "args": {},
3486
- "description": "List chats",
3458
+ "description": "Create a contact",
3487
3459
  "flags": {
3488
3460
  "api-key": {
3489
3461
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3547,72 +3519,40 @@
3547
3519
  "multiple": false,
3548
3520
  "type": "option"
3549
3521
  },
3550
- "page": {
3551
- "description": "Page number",
3552
- "name": "page",
3553
- "default": 1,
3554
- "hasDynamicHelp": false,
3555
- "multiple": false,
3556
- "type": "option"
3557
- },
3558
- "limit": {
3559
- "description": "Items per page",
3560
- "name": "limit",
3561
- "default": 20,
3562
- "hasDynamicHelp": false,
3563
- "multiple": false,
3564
- "type": "option"
3565
- },
3566
3522
  "channel": {
3567
- "description": "Filter by channel ID",
3523
+ "description": "Channel ID",
3568
3524
  "name": "channel",
3525
+ "required": true,
3569
3526
  "hasDynamicHelp": false,
3570
3527
  "multiple": false,
3571
3528
  "type": "option"
3572
3529
  },
3573
- "channels": {
3574
- "description": "Comma-separated channel IDs",
3575
- "name": "channels",
3530
+ "identifier": {
3531
+ "description": "Unique contact identifier",
3532
+ "name": "identifier",
3533
+ "required": true,
3576
3534
  "hasDynamicHelp": false,
3577
3535
  "multiple": false,
3578
3536
  "type": "option"
3579
3537
  },
3580
- "search": {
3581
- "description": "Search chats",
3582
- "name": "search",
3538
+ "name": {
3539
+ "description": "Contact name",
3540
+ "name": "name",
3583
3541
  "hasDynamicHelp": false,
3584
3542
  "multiple": false,
3585
3543
  "type": "option"
3586
3544
  },
3587
- "status": {
3588
- "description": "Chat status",
3589
- "name": "status",
3545
+ "data": {
3546
+ "description": "Additional JSON object payload",
3547
+ "name": "data",
3590
3548
  "hasDynamicHelp": false,
3591
- "multiple": false,
3592
- "options": [
3593
- "all",
3594
- "unread",
3595
- "read",
3596
- "archived"
3597
- ],
3598
- "type": "option"
3599
- },
3600
- "unread-only": {
3601
- "description": "Only unread chats",
3602
- "name": "unread-only",
3603
- "allowNo": false,
3604
- "type": "boolean"
3605
- },
3606
- "include-archived": {
3607
- "description": "Include archived chats",
3608
- "name": "include-archived",
3609
- "allowNo": false,
3610
- "type": "boolean"
3549
+ "multiple": false,
3550
+ "type": "option"
3611
3551
  }
3612
3552
  },
3613
3553
  "hasDynamicHelp": false,
3614
3554
  "hiddenAliases": [],
3615
- "id": "chats:list",
3555
+ "id": "contacts:create",
3616
3556
  "pluginAlias": "@instantkom/cli",
3617
3557
  "pluginName": "@instantkom/cli",
3618
3558
  "pluginType": "core",
@@ -3622,20 +3562,20 @@
3622
3562
  "relativePath": [
3623
3563
  "dist",
3624
3564
  "commands",
3625
- "chats",
3626
- "list.js"
3565
+ "contacts",
3566
+ "create.js"
3627
3567
  ]
3628
3568
  },
3629
- "chats:reply": {
3569
+ "contacts:delete": {
3630
3570
  "aliases": [],
3631
3571
  "args": {
3632
3572
  "id": {
3633
- "description": "Chat ID",
3573
+ "description": "Contact ID",
3634
3574
  "name": "id",
3635
3575
  "required": true
3636
3576
  }
3637
3577
  },
3638
- "description": "Reply in a chat",
3578
+ "description": "Delete a contact",
3639
3579
  "flags": {
3640
3580
  "api-key": {
3641
3581
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3698,19 +3638,11 @@
3698
3638
  "hasDynamicHelp": false,
3699
3639
  "multiple": false,
3700
3640
  "type": "option"
3701
- },
3702
- "text": {
3703
- "description": "Reply text",
3704
- "name": "text",
3705
- "required": true,
3706
- "hasDynamicHelp": false,
3707
- "multiple": false,
3708
- "type": "option"
3709
3641
  }
3710
3642
  },
3711
3643
  "hasDynamicHelp": false,
3712
3644
  "hiddenAliases": [],
3713
- "id": "chats:reply",
3645
+ "id": "contacts:delete",
3714
3646
  "pluginAlias": "@instantkom/cli",
3715
3647
  "pluginName": "@instantkom/cli",
3716
3648
  "pluginType": "core",
@@ -3720,20 +3652,14 @@
3720
3652
  "relativePath": [
3721
3653
  "dist",
3722
3654
  "commands",
3723
- "chats",
3724
- "reply.js"
3655
+ "contacts",
3656
+ "delete.js"
3725
3657
  ]
3726
3658
  },
3727
- "config:get": {
3659
+ "contacts:export": {
3728
3660
  "aliases": [],
3729
- "args": {
3730
- "key": {
3731
- "description": "Configuration key to retrieve",
3732
- "name": "key",
3733
- "required": true
3734
- }
3735
- },
3736
- "description": "Get a configuration value for the current profile",
3661
+ "args": {},
3662
+ "description": "Export contacts to CSV",
3737
3663
  "flags": {
3738
3664
  "api-key": {
3739
3665
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3796,11 +3722,49 @@
3796
3722
  "hasDynamicHelp": false,
3797
3723
  "multiple": false,
3798
3724
  "type": "option"
3725
+ },
3726
+ "file": {
3727
+ "description": "CSV output file path",
3728
+ "name": "file",
3729
+ "required": true,
3730
+ "hasDynamicHelp": false,
3731
+ "multiple": false,
3732
+ "type": "option"
3733
+ },
3734
+ "channel": {
3735
+ "description": "Filter by channel ID",
3736
+ "name": "channel",
3737
+ "hasDynamicHelp": false,
3738
+ "multiple": false,
3739
+ "type": "option"
3740
+ },
3741
+ "search": {
3742
+ "description": "Search by name or identifier",
3743
+ "name": "search",
3744
+ "hasDynamicHelp": false,
3745
+ "multiple": false,
3746
+ "type": "option"
3747
+ },
3748
+ "page": {
3749
+ "description": "Page number",
3750
+ "name": "page",
3751
+ "default": 1,
3752
+ "hasDynamicHelp": false,
3753
+ "multiple": false,
3754
+ "type": "option"
3755
+ },
3756
+ "limit": {
3757
+ "description": "Items per page",
3758
+ "name": "limit",
3759
+ "default": 100,
3760
+ "hasDynamicHelp": false,
3761
+ "multiple": false,
3762
+ "type": "option"
3799
3763
  }
3800
3764
  },
3801
3765
  "hasDynamicHelp": false,
3802
3766
  "hiddenAliases": [],
3803
- "id": "config:get",
3767
+ "id": "contacts:export",
3804
3768
  "pluginAlias": "@instantkom/cli",
3805
3769
  "pluginName": "@instantkom/cli",
3806
3770
  "pluginType": "core",
@@ -3810,25 +3774,20 @@
3810
3774
  "relativePath": [
3811
3775
  "dist",
3812
3776
  "commands",
3813
- "config",
3814
- "get.js"
3777
+ "contacts",
3778
+ "export.js"
3815
3779
  ]
3816
3780
  },
3817
- "config:set": {
3781
+ "contacts:get": {
3818
3782
  "aliases": [],
3819
3783
  "args": {
3820
- "key": {
3821
- "description": "Configuration key to set",
3822
- "name": "key",
3823
- "required": true
3824
- },
3825
- "value": {
3826
- "description": "Value to assign",
3827
- "name": "value",
3784
+ "id": {
3785
+ "description": "Contact ID",
3786
+ "name": "id",
3828
3787
  "required": true
3829
3788
  }
3830
3789
  },
3831
- "description": "Set a configuration value for the current profile",
3790
+ "description": "Get a contact by ID",
3832
3791
  "flags": {
3833
3792
  "api-key": {
3834
3793
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3895,7 +3854,7 @@
3895
3854
  },
3896
3855
  "hasDynamicHelp": false,
3897
3856
  "hiddenAliases": [],
3898
- "id": "config:set",
3857
+ "id": "contacts:get",
3899
3858
  "pluginAlias": "@instantkom/cli",
3900
3859
  "pluginName": "@instantkom/cli",
3901
3860
  "pluginType": "core",
@@ -3905,20 +3864,14 @@
3905
3864
  "relativePath": [
3906
3865
  "dist",
3907
3866
  "commands",
3908
- "config",
3909
- "set.js"
3867
+ "contacts",
3868
+ "get.js"
3910
3869
  ]
3911
3870
  },
3912
- "config:unset": {
3871
+ "contacts:import": {
3913
3872
  "aliases": [],
3914
- "args": {
3915
- "key": {
3916
- "description": "Configuration key to remove",
3917
- "name": "key",
3918
- "required": true
3919
- }
3920
- },
3921
- "description": "Remove a configuration key from the current profile",
3873
+ "args": {},
3874
+ "description": "Import contacts from CSV",
3922
3875
  "flags": {
3923
3876
  "api-key": {
3924
3877
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3981,11 +3934,27 @@
3981
3934
  "hasDynamicHelp": false,
3982
3935
  "multiple": false,
3983
3936
  "type": "option"
3937
+ },
3938
+ "file": {
3939
+ "description": "CSV file path",
3940
+ "name": "file",
3941
+ "required": true,
3942
+ "hasDynamicHelp": false,
3943
+ "multiple": false,
3944
+ "type": "option"
3945
+ },
3946
+ "channel": {
3947
+ "description": "Channel ID",
3948
+ "name": "channel",
3949
+ "required": true,
3950
+ "hasDynamicHelp": false,
3951
+ "multiple": false,
3952
+ "type": "option"
3984
3953
  }
3985
3954
  },
3986
3955
  "hasDynamicHelp": false,
3987
3956
  "hiddenAliases": [],
3988
- "id": "config:unset",
3957
+ "id": "contacts:import",
3989
3958
  "pluginAlias": "@instantkom/cli",
3990
3959
  "pluginName": "@instantkom/cli",
3991
3960
  "pluginType": "core",
@@ -3995,14 +3964,14 @@
3995
3964
  "relativePath": [
3996
3965
  "dist",
3997
3966
  "commands",
3998
- "config",
3999
- "unset.js"
3967
+ "contacts",
3968
+ "import.js"
4000
3969
  ]
4001
3970
  },
4002
- "contacts:create": {
3971
+ "contacts:list": {
4003
3972
  "aliases": [],
4004
3973
  "args": {},
4005
- "description": "Create a contact",
3974
+ "description": "List contacts",
4006
3975
  "flags": {
4007
3976
  "api-key": {
4008
3977
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4067,31 +4036,96 @@
4067
4036
  "type": "option"
4068
4037
  },
4069
4038
  "channel": {
4070
- "description": "Channel ID",
4039
+ "description": "Filter by channel ID",
4071
4040
  "name": "channel",
4072
- "required": true,
4073
4041
  "hasDynamicHelp": false,
4074
4042
  "multiple": false,
4075
4043
  "type": "option"
4076
4044
  },
4077
- "identifier": {
4078
- "description": "Unique contact identifier",
4079
- "name": "identifier",
4080
- "required": true,
4045
+ "search": {
4046
+ "description": "Search by name or identifier",
4047
+ "name": "search",
4081
4048
  "hasDynamicHelp": false,
4082
4049
  "multiple": false,
4083
4050
  "type": "option"
4084
4051
  },
4085
- "name": {
4086
- "description": "Contact name",
4087
- "name": "name",
4052
+ "page": {
4053
+ "description": "Page number",
4054
+ "name": "page",
4055
+ "default": 1,
4088
4056
  "hasDynamicHelp": false,
4089
4057
  "multiple": false,
4090
4058
  "type": "option"
4091
4059
  },
4092
- "data": {
4093
- "description": "Additional JSON object payload",
4094
- "name": "data",
4060
+ "limit": {
4061
+ "description": "Items per page",
4062
+ "name": "limit",
4063
+ "default": 20,
4064
+ "hasDynamicHelp": false,
4065
+ "multiple": false,
4066
+ "type": "option"
4067
+ },
4068
+ "optin-status": {
4069
+ "description": "Filter by opt-in status",
4070
+ "name": "optin-status",
4071
+ "hasDynamicHelp": false,
4072
+ "multiple": false,
4073
+ "options": [
4074
+ "0",
4075
+ "1"
4076
+ ],
4077
+ "type": "option"
4078
+ },
4079
+ "blocked": {
4080
+ "description": "Filter by blocked status: 1 blocked, 0 not blocked",
4081
+ "name": "blocked",
4082
+ "hasDynamicHelp": false,
4083
+ "multiple": false,
4084
+ "options": [
4085
+ "0",
4086
+ "1"
4087
+ ],
4088
+ "type": "option"
4089
+ },
4090
+ "segment": {
4091
+ "description": "Filter by segment ID",
4092
+ "name": "segment",
4093
+ "hasDynamicHelp": false,
4094
+ "multiple": false,
4095
+ "type": "option"
4096
+ },
4097
+ "tags": {
4098
+ "description": "Comma-separated tag IDs",
4099
+ "name": "tags",
4100
+ "hasDynamicHelp": false,
4101
+ "multiple": false,
4102
+ "type": "option"
4103
+ },
4104
+ "tag-match": {
4105
+ "description": "Tag match mode",
4106
+ "name": "tag-match",
4107
+ "hasDynamicHelp": false,
4108
+ "multiple": false,
4109
+ "options": [
4110
+ "any",
4111
+ "all"
4112
+ ],
4113
+ "type": "option"
4114
+ },
4115
+ "spam": {
4116
+ "description": "Filter by spam status",
4117
+ "name": "spam",
4118
+ "hasDynamicHelp": false,
4119
+ "multiple": false,
4120
+ "options": [
4121
+ "true",
4122
+ "false"
4123
+ ],
4124
+ "type": "option"
4125
+ },
4126
+ "trust-level": {
4127
+ "description": "Comma-separated trust levels",
4128
+ "name": "trust-level",
4095
4129
  "hasDynamicHelp": false,
4096
4130
  "multiple": false,
4097
4131
  "type": "option"
@@ -4099,7 +4133,7 @@
4099
4133
  },
4100
4134
  "hasDynamicHelp": false,
4101
4135
  "hiddenAliases": [],
4102
- "id": "contacts:create",
4136
+ "id": "contacts:list",
4103
4137
  "pluginAlias": "@instantkom/cli",
4104
4138
  "pluginName": "@instantkom/cli",
4105
4139
  "pluginType": "core",
@@ -4110,10 +4144,10 @@
4110
4144
  "dist",
4111
4145
  "commands",
4112
4146
  "contacts",
4113
- "create.js"
4147
+ "list.js"
4114
4148
  ]
4115
4149
  },
4116
- "contacts:delete": {
4150
+ "contacts:update": {
4117
4151
  "aliases": [],
4118
4152
  "args": {
4119
4153
  "id": {
@@ -4122,7 +4156,7 @@
4122
4156
  "required": true
4123
4157
  }
4124
4158
  },
4125
- "description": "Delete a contact",
4159
+ "description": "Update a contact",
4126
4160
  "flags": {
4127
4161
  "api-key": {
4128
4162
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4185,11 +4219,32 @@
4185
4219
  "hasDynamicHelp": false,
4186
4220
  "multiple": false,
4187
4221
  "type": "option"
4222
+ },
4223
+ "identifier": {
4224
+ "description": "Unique contact identifier",
4225
+ "name": "identifier",
4226
+ "hasDynamicHelp": false,
4227
+ "multiple": false,
4228
+ "type": "option"
4229
+ },
4230
+ "name": {
4231
+ "description": "Contact name",
4232
+ "name": "name",
4233
+ "hasDynamicHelp": false,
4234
+ "multiple": false,
4235
+ "type": "option"
4236
+ },
4237
+ "data": {
4238
+ "description": "Additional JSON object payload",
4239
+ "name": "data",
4240
+ "hasDynamicHelp": false,
4241
+ "multiple": false,
4242
+ "type": "option"
4188
4243
  }
4189
4244
  },
4190
4245
  "hasDynamicHelp": false,
4191
4246
  "hiddenAliases": [],
4192
- "id": "contacts:delete",
4247
+ "id": "contacts:update",
4193
4248
  "pluginAlias": "@instantkom/cli",
4194
4249
  "pluginName": "@instantkom/cli",
4195
4250
  "pluginType": "core",
@@ -4200,13 +4255,13 @@
4200
4255
  "dist",
4201
4256
  "commands",
4202
4257
  "contacts",
4203
- "delete.js"
4258
+ "update.js"
4204
4259
  ]
4205
4260
  },
4206
- "contacts:export": {
4261
+ "channels:create": {
4207
4262
  "aliases": [],
4208
4263
  "args": {},
4209
- "description": "Export contacts to CSV",
4264
+ "description": "Create a channel",
4210
4265
  "flags": {
4211
4266
  "api-key": {
4212
4267
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4270,40 +4325,39 @@
4270
4325
  "multiple": false,
4271
4326
  "type": "option"
4272
4327
  },
4273
- "file": {
4274
- "description": "CSV output file path",
4275
- "name": "file",
4328
+ "name": {
4329
+ "description": "Channel name",
4330
+ "name": "name",
4276
4331
  "required": true,
4277
4332
  "hasDynamicHelp": false,
4278
4333
  "multiple": false,
4279
4334
  "type": "option"
4280
4335
  },
4281
- "channel": {
4282
- "description": "Filter by channel ID",
4283
- "name": "channel",
4336
+ "gateway-type": {
4337
+ "description": "Gateway type ID",
4338
+ "name": "gateway-type",
4339
+ "required": true,
4284
4340
  "hasDynamicHelp": false,
4285
4341
  "multiple": false,
4286
4342
  "type": "option"
4287
4343
  },
4288
- "search": {
4289
- "description": "Search by name or identifier",
4290
- "name": "search",
4344
+ "status": {
4345
+ "description": "Channel lifecycle status",
4346
+ "name": "status",
4291
4347
  "hasDynamicHelp": false,
4292
4348
  "multiple": false,
4293
4349
  "type": "option"
4294
4350
  },
4295
- "page": {
4296
- "description": "Page number",
4297
- "name": "page",
4298
- "default": 1,
4351
+ "description": {
4352
+ "description": "Channel description",
4353
+ "name": "description",
4299
4354
  "hasDynamicHelp": false,
4300
4355
  "multiple": false,
4301
4356
  "type": "option"
4302
4357
  },
4303
- "limit": {
4304
- "description": "Items per page",
4305
- "name": "limit",
4306
- "default": 100,
4358
+ "data": {
4359
+ "description": "Additional JSON object payload",
4360
+ "name": "data",
4307
4361
  "hasDynamicHelp": false,
4308
4362
  "multiple": false,
4309
4363
  "type": "option"
@@ -4311,7 +4365,7 @@
4311
4365
  },
4312
4366
  "hasDynamicHelp": false,
4313
4367
  "hiddenAliases": [],
4314
- "id": "contacts:export",
4368
+ "id": "channels:create",
4315
4369
  "pluginAlias": "@instantkom/cli",
4316
4370
  "pluginName": "@instantkom/cli",
4317
4371
  "pluginType": "core",
@@ -4321,20 +4375,20 @@
4321
4375
  "relativePath": [
4322
4376
  "dist",
4323
4377
  "commands",
4324
- "contacts",
4325
- "export.js"
4378
+ "channels",
4379
+ "create.js"
4326
4380
  ]
4327
4381
  },
4328
- "contacts:get": {
4382
+ "channels:get": {
4329
4383
  "aliases": [],
4330
4384
  "args": {
4331
4385
  "id": {
4332
- "description": "Contact ID",
4386
+ "description": "Channel ID",
4333
4387
  "name": "id",
4334
4388
  "required": true
4335
4389
  }
4336
4390
  },
4337
- "description": "Get a contact by ID",
4391
+ "description": "Get a channel by ID",
4338
4392
  "flags": {
4339
4393
  "api-key": {
4340
4394
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4401,7 +4455,7 @@
4401
4455
  },
4402
4456
  "hasDynamicHelp": false,
4403
4457
  "hiddenAliases": [],
4404
- "id": "contacts:get",
4458
+ "id": "channels:get",
4405
4459
  "pluginAlias": "@instantkom/cli",
4406
4460
  "pluginName": "@instantkom/cli",
4407
4461
  "pluginType": "core",
@@ -4411,14 +4465,20 @@
4411
4465
  "relativePath": [
4412
4466
  "dist",
4413
4467
  "commands",
4414
- "contacts",
4468
+ "channels",
4415
4469
  "get.js"
4416
4470
  ]
4417
4471
  },
4418
- "contacts:import": {
4472
+ "channels:kpis": {
4419
4473
  "aliases": [],
4420
- "args": {},
4421
- "description": "Import contacts from CSV",
4474
+ "args": {
4475
+ "id": {
4476
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
4477
+ "name": "id",
4478
+ "required": false
4479
+ }
4480
+ },
4481
+ "description": "Get channel KPIs",
4422
4482
  "flags": {
4423
4483
  "api-key": {
4424
4484
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4482,18 +4542,9 @@
4482
4542
  "multiple": false,
4483
4543
  "type": "option"
4484
4544
  },
4485
- "file": {
4486
- "description": "CSV file path",
4487
- "name": "file",
4488
- "required": true,
4489
- "hasDynamicHelp": false,
4490
- "multiple": false,
4491
- "type": "option"
4492
- },
4493
- "channel": {
4494
- "description": "Channel ID",
4495
- "name": "channel",
4496
- "required": true,
4545
+ "period": {
4546
+ "description": "KPI period",
4547
+ "name": "period",
4497
4548
  "hasDynamicHelp": false,
4498
4549
  "multiple": false,
4499
4550
  "type": "option"
@@ -4501,7 +4552,7 @@
4501
4552
  },
4502
4553
  "hasDynamicHelp": false,
4503
4554
  "hiddenAliases": [],
4504
- "id": "contacts:import",
4555
+ "id": "channels:kpis",
4505
4556
  "pluginAlias": "@instantkom/cli",
4506
4557
  "pluginName": "@instantkom/cli",
4507
4558
  "pluginType": "core",
@@ -4511,14 +4562,14 @@
4511
4562
  "relativePath": [
4512
4563
  "dist",
4513
4564
  "commands",
4514
- "contacts",
4515
- "import.js"
4565
+ "channels",
4566
+ "kpis.js"
4516
4567
  ]
4517
4568
  },
4518
- "contacts:list": {
4569
+ "channels:list": {
4519
4570
  "aliases": [],
4520
4571
  "args": {},
4521
- "description": "List contacts",
4572
+ "description": "List channels",
4522
4573
  "flags": {
4523
4574
  "api-key": {
4524
4575
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4582,20 +4633,6 @@
4582
4633
  "multiple": false,
4583
4634
  "type": "option"
4584
4635
  },
4585
- "channel": {
4586
- "description": "Filter by channel ID",
4587
- "name": "channel",
4588
- "hasDynamicHelp": false,
4589
- "multiple": false,
4590
- "type": "option"
4591
- },
4592
- "search": {
4593
- "description": "Search by name or identifier",
4594
- "name": "search",
4595
- "hasDynamicHelp": false,
4596
- "multiple": false,
4597
- "type": "option"
4598
- },
4599
4636
  "page": {
4600
4637
  "description": "Page number",
4601
4638
  "name": "page",
@@ -4612,67 +4649,23 @@
4612
4649
  "multiple": false,
4613
4650
  "type": "option"
4614
4651
  },
4615
- "optin-status": {
4616
- "description": "Filter by opt-in status",
4617
- "name": "optin-status",
4618
- "hasDynamicHelp": false,
4619
- "multiple": false,
4620
- "options": [
4621
- "0",
4622
- "1"
4623
- ],
4624
- "type": "option"
4625
- },
4626
- "blocked": {
4627
- "description": "Filter by blocked status: 1 blocked, 0 not blocked",
4628
- "name": "blocked",
4629
- "hasDynamicHelp": false,
4630
- "multiple": false,
4631
- "options": [
4632
- "0",
4633
- "1"
4634
- ],
4635
- "type": "option"
4636
- },
4637
- "segment": {
4638
- "description": "Filter by segment ID",
4639
- "name": "segment",
4640
- "hasDynamicHelp": false,
4641
- "multiple": false,
4642
- "type": "option"
4643
- },
4644
- "tags": {
4645
- "description": "Comma-separated tag IDs",
4646
- "name": "tags",
4647
- "hasDynamicHelp": false,
4648
- "multiple": false,
4649
- "type": "option"
4650
- },
4651
- "tag-match": {
4652
- "description": "Tag match mode",
4653
- "name": "tag-match",
4652
+ "status": {
4653
+ "description": "Filter by channel status",
4654
+ "name": "status",
4654
4655
  "hasDynamicHelp": false,
4655
4656
  "multiple": false,
4656
- "options": [
4657
- "any",
4658
- "all"
4659
- ],
4660
4657
  "type": "option"
4661
4658
  },
4662
- "spam": {
4663
- "description": "Filter by spam status",
4664
- "name": "spam",
4659
+ "gateway-type": {
4660
+ "description": "Filter by gateway type ID",
4661
+ "name": "gateway-type",
4665
4662
  "hasDynamicHelp": false,
4666
4663
  "multiple": false,
4667
- "options": [
4668
- "true",
4669
- "false"
4670
- ],
4671
4664
  "type": "option"
4672
4665
  },
4673
- "trust-level": {
4674
- "description": "Comma-separated trust levels",
4675
- "name": "trust-level",
4666
+ "search": {
4667
+ "description": "Search by channel name",
4668
+ "name": "search",
4676
4669
  "hasDynamicHelp": false,
4677
4670
  "multiple": false,
4678
4671
  "type": "option"
@@ -4680,7 +4673,7 @@
4680
4673
  },
4681
4674
  "hasDynamicHelp": false,
4682
4675
  "hiddenAliases": [],
4683
- "id": "contacts:list",
4676
+ "id": "channels:list",
4684
4677
  "pluginAlias": "@instantkom/cli",
4685
4678
  "pluginName": "@instantkom/cli",
4686
4679
  "pluginType": "core",
@@ -4690,20 +4683,20 @@
4690
4683
  "relativePath": [
4691
4684
  "dist",
4692
4685
  "commands",
4693
- "contacts",
4686
+ "channels",
4694
4687
  "list.js"
4695
4688
  ]
4696
4689
  },
4697
- "contacts:update": {
4690
+ "channels:update": {
4698
4691
  "aliases": [],
4699
4692
  "args": {
4700
4693
  "id": {
4701
- "description": "Contact ID",
4694
+ "description": "Channel ID",
4702
4695
  "name": "id",
4703
4696
  "required": true
4704
4697
  }
4705
4698
  },
4706
- "description": "Update a contact",
4699
+ "description": "Update a channel",
4707
4700
  "flags": {
4708
4701
  "api-key": {
4709
4702
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4767,16 +4760,23 @@
4767
4760
  "multiple": false,
4768
4761
  "type": "option"
4769
4762
  },
4770
- "identifier": {
4771
- "description": "Unique contact identifier",
4772
- "name": "identifier",
4763
+ "name": {
4764
+ "description": "Channel name",
4765
+ "name": "name",
4773
4766
  "hasDynamicHelp": false,
4774
4767
  "multiple": false,
4775
4768
  "type": "option"
4776
4769
  },
4777
- "name": {
4778
- "description": "Contact name",
4779
- "name": "name",
4770
+ "status": {
4771
+ "description": "Channel lifecycle status",
4772
+ "name": "status",
4773
+ "hasDynamicHelp": false,
4774
+ "multiple": false,
4775
+ "type": "option"
4776
+ },
4777
+ "description": {
4778
+ "description": "Channel description",
4779
+ "name": "description",
4780
4780
  "hasDynamicHelp": false,
4781
4781
  "multiple": false,
4782
4782
  "type": "option"
@@ -4791,7 +4791,7 @@
4791
4791
  },
4792
4792
  "hasDynamicHelp": false,
4793
4793
  "hiddenAliases": [],
4794
- "id": "contacts:update",
4794
+ "id": "channels:update",
4795
4795
  "pluginAlias": "@instantkom/cli",
4796
4796
  "pluginName": "@instantkom/cli",
4797
4797
  "pluginType": "core",
@@ -4801,7 +4801,7 @@
4801
4801
  "relativePath": [
4802
4802
  "dist",
4803
4803
  "commands",
4804
- "contacts",
4804
+ "channels",
4805
4805
  "update.js"
4806
4806
  ]
4807
4807
  },
@@ -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
- },
6842
- "messages:delete": {
6843
- "aliases": [],
6844
- "args": {
6845
- "id": {
6846
- "description": "message ID",
6847
- "name": "id",
6848
- "required": true
6849
- }
6850
- },
6851
- "description": "Delete message",
6798
+ },
6799
+ "messages:unread-count": {
6800
+ "aliases": [],
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
+ "flows:create": {
7023
7021
  "aliases": [],
7024
7022
  "args": {},
7025
- "description": "List messages",
7023
+ "description": "Create a flow",
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,54 @@
7086
7084
  "multiple": false,
7087
7085
  "type": "option"
7088
7086
  },
7089
- "page": {
7090
- "description": "Page number",
7091
- "name": "page",
7092
- "default": 1,
7093
- "hasDynamicHelp": false,
7094
- "multiple": false,
7095
- "type": "option"
7096
- },
7097
- "limit": {
7098
- "description": "Items per page",
7099
- "name": "limit",
7100
- "default": 20,
7087
+ "channel": {
7088
+ "description": "Channel ID",
7089
+ "name": "channel",
7090
+ "required": true,
7101
7091
  "hasDynamicHelp": false,
7102
7092
  "multiple": false,
7103
7093
  "type": "option"
7104
7094
  },
7105
- "channel": {
7106
- "description": "Filter by channel ID",
7107
- "name": "channel",
7095
+ "name": {
7096
+ "description": "Flow name",
7097
+ "name": "name",
7098
+ "required": true,
7108
7099
  "hasDynamicHelp": false,
7109
7100
  "multiple": false,
7110
7101
  "type": "option"
7111
7102
  },
7112
- "recipient": {
7113
- "description": "Filter by recipient ID",
7114
- "name": "recipient",
7103
+ "description": {
7104
+ "description": "Flow description",
7105
+ "name": "description",
7115
7106
  "hasDynamicHelp": false,
7116
7107
  "multiple": false,
7117
7108
  "type": "option"
7118
7109
  },
7119
- "direction": {
7120
- "description": "Direction",
7121
- "name": "direction",
7110
+ "color": {
7111
+ "description": "Flow color as HEX",
7112
+ "name": "color",
7122
7113
  "hasDynamicHelp": false,
7123
7114
  "multiple": false,
7124
- "options": [
7125
- "s",
7126
- "r"
7127
- ],
7128
7115
  "type": "option"
7129
7116
  },
7130
- "type": {
7131
- "description": "Message type",
7132
- "name": "type",
7117
+ "folder": {
7118
+ "description": "Folder ID",
7119
+ "name": "folder",
7133
7120
  "hasDynamicHelp": false,
7134
7121
  "multiple": false,
7135
7122
  "type": "option"
7136
7123
  },
7137
- "search": {
7138
- "description": "Search messages",
7139
- "name": "search",
7124
+ "data": {
7125
+ "description": "Additional JSON object payload",
7126
+ "name": "data",
7140
7127
  "hasDynamicHelp": false,
7141
7128
  "multiple": false,
7142
7129
  "type": "option"
7143
- },
7144
- "spam": {
7145
- "description": "Filter spam messages",
7146
- "name": "spam",
7147
- "allowNo": false,
7148
- "type": "boolean"
7149
7130
  }
7150
7131
  },
7151
7132
  "hasDynamicHelp": false,
7152
7133
  "hiddenAliases": [],
7153
- "id": "messages:list",
7134
+ "id": "flows:create",
7154
7135
  "pluginAlias": "@instantkom/cli",
7155
7136
  "pluginName": "@instantkom/cli",
7156
7137
  "pluginType": "core",
@@ -7160,20 +7141,20 @@
7160
7141
  "relativePath": [
7161
7142
  "dist",
7162
7143
  "commands",
7163
- "messages",
7164
- "list.js"
7144
+ "flows",
7145
+ "create.js"
7165
7146
  ]
7166
7147
  },
7167
- "messages:reactions": {
7148
+ "flows:delete": {
7168
7149
  "aliases": [],
7169
7150
  "args": {
7170
7151
  "id": {
7171
- "description": "Message ID",
7152
+ "description": "Flow ID",
7172
7153
  "name": "id",
7173
7154
  "required": true
7174
7155
  }
7175
7156
  },
7176
- "description": "Get reactions to a message",
7157
+ "description": "Delete a flow",
7177
7158
  "flags": {
7178
7159
  "api-key": {
7179
7160
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7240,7 +7221,7 @@
7240
7221
  },
7241
7222
  "hasDynamicHelp": false,
7242
7223
  "hiddenAliases": [],
7243
- "id": "messages:reactions",
7224
+ "id": "flows:delete",
7244
7225
  "pluginAlias": "@instantkom/cli",
7245
7226
  "pluginName": "@instantkom/cli",
7246
7227
  "pluginType": "core",
@@ -7250,20 +7231,20 @@
7250
7231
  "relativePath": [
7251
7232
  "dist",
7252
7233
  "commands",
7253
- "messages",
7254
- "reactions.js"
7234
+ "flows",
7235
+ "delete.js"
7255
7236
  ]
7256
7237
  },
7257
- "messages:spam": {
7238
+ "flows:get": {
7258
7239
  "aliases": [],
7259
7240
  "args": {
7260
7241
  "id": {
7261
- "description": "Message ID",
7242
+ "description": "Flow ID",
7262
7243
  "name": "id",
7263
7244
  "required": true
7264
7245
  }
7265
7246
  },
7266
- "description": "Mark or unmark a message as spam",
7247
+ "description": "Get a flow by ID",
7267
7248
  "flags": {
7268
7249
  "api-key": {
7269
7250
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7326,17 +7307,11 @@
7326
7307
  "hasDynamicHelp": false,
7327
7308
  "multiple": false,
7328
7309
  "type": "option"
7329
- },
7330
- "spam": {
7331
- "description": "Mark as spam",
7332
- "name": "spam",
7333
- "allowNo": true,
7334
- "type": "boolean"
7335
7310
  }
7336
7311
  },
7337
7312
  "hasDynamicHelp": false,
7338
7313
  "hiddenAliases": [],
7339
- "id": "messages:spam",
7314
+ "id": "flows:get",
7340
7315
  "pluginAlias": "@instantkom/cli",
7341
7316
  "pluginName": "@instantkom/cli",
7342
7317
  "pluginType": "core",
@@ -7346,14 +7321,14 @@
7346
7321
  "relativePath": [
7347
7322
  "dist",
7348
7323
  "commands",
7349
- "messages",
7350
- "spam.js"
7324
+ "flows",
7325
+ "get.js"
7351
7326
  ]
7352
7327
  },
7353
- "messages:unread-count": {
7328
+ "flows:list": {
7354
7329
  "aliases": [],
7355
7330
  "args": {},
7356
- "description": "Get unread inbox message count",
7331
+ "description": "List flows",
7357
7332
  "flags": {
7358
7333
  "api-key": {
7359
7334
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7416,11 +7391,48 @@
7416
7391
  "hasDynamicHelp": false,
7417
7392
  "multiple": false,
7418
7393
  "type": "option"
7394
+ },
7395
+ "page": {
7396
+ "description": "Page number",
7397
+ "name": "page",
7398
+ "default": 1,
7399
+ "hasDynamicHelp": false,
7400
+ "multiple": false,
7401
+ "type": "option"
7402
+ },
7403
+ "limit": {
7404
+ "description": "Items per page",
7405
+ "name": "limit",
7406
+ "default": 20,
7407
+ "hasDynamicHelp": false,
7408
+ "multiple": false,
7409
+ "type": "option"
7410
+ },
7411
+ "channel": {
7412
+ "description": "Filter by channel ID",
7413
+ "name": "channel",
7414
+ "hasDynamicHelp": false,
7415
+ "multiple": false,
7416
+ "type": "option"
7417
+ },
7418
+ "search": {
7419
+ "description": "Search in flow name or description",
7420
+ "name": "search",
7421
+ "hasDynamicHelp": false,
7422
+ "multiple": false,
7423
+ "type": "option"
7424
+ },
7425
+ "folder": {
7426
+ "description": "Filter by folder ID",
7427
+ "name": "folder",
7428
+ "hasDynamicHelp": false,
7429
+ "multiple": false,
7430
+ "type": "option"
7419
7431
  }
7420
7432
  },
7421
7433
  "hasDynamicHelp": false,
7422
7434
  "hiddenAliases": [],
7423
- "id": "messages:unread-count",
7435
+ "id": "flows:list",
7424
7436
  "pluginAlias": "@instantkom/cli",
7425
7437
  "pluginName": "@instantkom/cli",
7426
7438
  "pluginType": "core",
@@ -7430,20 +7442,20 @@
7430
7442
  "relativePath": [
7431
7443
  "dist",
7432
7444
  "commands",
7433
- "messages",
7434
- "unread-count.js"
7445
+ "flows",
7446
+ "list.js"
7435
7447
  ]
7436
7448
  },
7437
- "messages:update": {
7449
+ "flows:update": {
7438
7450
  "aliases": [],
7439
7451
  "args": {
7440
7452
  "id": {
7441
- "description": "Message ID",
7453
+ "description": "Flow ID",
7442
7454
  "name": "id",
7443
7455
  "required": true
7444
7456
  }
7445
7457
  },
7446
- "description": "Update a message",
7458
+ "description": "Update a flow",
7447
7459
  "flags": {
7448
7460
  "api-key": {
7449
7461
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7507,42 +7519,30 @@
7507
7519
  "multiple": false,
7508
7520
  "type": "option"
7509
7521
  },
7510
- "message": {
7511
- "description": "Message content",
7512
- "name": "message",
7522
+ "name": {
7523
+ "description": "Flow name",
7524
+ "name": "name",
7513
7525
  "hasDynamicHelp": false,
7514
7526
  "multiple": false,
7515
7527
  "type": "option"
7516
7528
  },
7517
- "scheduled-at": {
7518
- "description": "Unix timestamp for scheduled send",
7519
- "name": "scheduled-at",
7529
+ "description": {
7530
+ "description": "Flow description",
7531
+ "name": "description",
7520
7532
  "hasDynamicHelp": false,
7521
7533
  "multiple": false,
7522
7534
  "type": "option"
7523
7535
  },
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"
7535
- },
7536
- "buttons": {
7537
- "description": "Buttons JSON array",
7538
- "name": "buttons",
7536
+ "color": {
7537
+ "description": "Flow color as HEX",
7538
+ "name": "color",
7539
7539
  "hasDynamicHelp": false,
7540
7540
  "multiple": false,
7541
7541
  "type": "option"
7542
7542
  },
7543
- "header-footer": {
7544
- "description": "Header/footer JSON object",
7545
- "name": "header-footer",
7543
+ "folder": {
7544
+ "description": "Folder ID",
7545
+ "name": "folder",
7546
7546
  "hasDynamicHelp": false,
7547
7547
  "multiple": false,
7548
7548
  "type": "option"
@@ -7557,7 +7557,7 @@
7557
7557
  },
7558
7558
  "hasDynamicHelp": false,
7559
7559
  "hiddenAliases": [],
7560
- "id": "messages:update",
7560
+ "id": "flows:update",
7561
7561
  "pluginAlias": "@instantkom/cli",
7562
7562
  "pluginName": "@instantkom/cli",
7563
7563
  "pluginType": "core",
@@ -7567,7 +7567,7 @@
7567
7567
  "relativePath": [
7568
7568
  "dist",
7569
7569
  "commands",
7570
- "messages",
7570
+ "flows",
7571
7571
  "update.js"
7572
7572
  ]
7573
7573
  },
@@ -16566,5 +16566,5 @@
16566
16566
  ]
16567
16567
  }
16568
16568
  },
16569
- "version": "3.170.0"
16569
+ "version": "3.172.0"
16570
16570
  }