@instantkom/cli 3.158.0 → 3.159.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,10 @@
2015
2015
  "update.js"
2016
2016
  ]
2017
2017
  },
2018
- "channels:create": {
2018
+ "broadcast:create": {
2019
2019
  "aliases": [],
2020
2020
  "args": {},
2021
- "description": "Create a channel",
2021
+ "description": "Create a broadcast for channels or segments",
2022
2022
  "flags": {
2023
2023
  "api-key": {
2024
2024
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2082,47 +2082,92 @@
2082
2082
  "multiple": false,
2083
2083
  "type": "option"
2084
2084
  },
2085
- "name": {
2086
- "description": "Channel name",
2087
- "name": "name",
2088
- "required": true,
2085
+ "channel": {
2086
+ "description": "Channel ID target",
2087
+ "name": "channel",
2089
2088
  "hasDynamicHelp": false,
2090
2089
  "multiple": false,
2091
2090
  "type": "option"
2092
2091
  },
2093
- "gateway-type": {
2094
- "description": "Gateway type ID",
2095
- "name": "gateway-type",
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",
2096
2109
  "required": true,
2097
2110
  "hasDynamicHelp": false,
2098
2111
  "multiple": false,
2099
2112
  "type": "option"
2100
2113
  },
2101
- "status": {
2102
- "description": "Channel lifecycle status",
2103
- "name": "status",
2114
+ "send-at": {
2115
+ "description": "Schedule send for an ISO-8601 date-time",
2116
+ "name": "send-at",
2104
2117
  "hasDynamicHelp": false,
2105
2118
  "multiple": false,
2106
2119
  "type": "option"
2107
2120
  },
2108
- "description": {
2109
- "description": "Channel description",
2110
- "name": "description",
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",
2111
2130
  "hasDynamicHelp": false,
2112
2131
  "multiple": false,
2113
2132
  "type": "option"
2114
2133
  },
2115
- "data": {
2116
- "description": "Additional JSON object payload",
2117
- "name": "data",
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",
2118
2152
  "hasDynamicHelp": false,
2119
2153
  "multiple": false,
2154
+ "options": [
2155
+ "draft",
2156
+ "scheduled",
2157
+ "sending"
2158
+ ],
2120
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"
2121
2166
  }
2122
2167
  },
2123
2168
  "hasDynamicHelp": false,
2124
2169
  "hiddenAliases": [],
2125
- "id": "channels:create",
2170
+ "id": "broadcast:create",
2126
2171
  "pluginAlias": "@instantkom/cli",
2127
2172
  "pluginName": "@instantkom/cli",
2128
2173
  "pluginType": "core",
@@ -2132,20 +2177,20 @@
2132
2177
  "relativePath": [
2133
2178
  "dist",
2134
2179
  "commands",
2135
- "channels",
2180
+ "broadcast",
2136
2181
  "create.js"
2137
2182
  ]
2138
2183
  },
2139
- "channels:get": {
2184
+ "broadcast:delete": {
2140
2185
  "aliases": [],
2141
2186
  "args": {
2142
2187
  "id": {
2143
- "description": "Channel ID",
2188
+ "description": "broadcast ID",
2144
2189
  "name": "id",
2145
2190
  "required": true
2146
2191
  }
2147
2192
  },
2148
- "description": "Get a channel by ID",
2193
+ "description": "Delete broadcast",
2149
2194
  "flags": {
2150
2195
  "api-key": {
2151
2196
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2212,7 +2257,7 @@
2212
2257
  },
2213
2258
  "hasDynamicHelp": false,
2214
2259
  "hiddenAliases": [],
2215
- "id": "channels:get",
2260
+ "id": "broadcast:delete",
2216
2261
  "pluginAlias": "@instantkom/cli",
2217
2262
  "pluginName": "@instantkom/cli",
2218
2263
  "pluginType": "core",
@@ -2222,20 +2267,20 @@
2222
2267
  "relativePath": [
2223
2268
  "dist",
2224
2269
  "commands",
2225
- "channels",
2226
- "get.js"
2270
+ "broadcast",
2271
+ "delete.js"
2227
2272
  ]
2228
2273
  },
2229
- "channels:kpis": {
2274
+ "broadcast:get": {
2230
2275
  "aliases": [],
2231
2276
  "args": {
2232
2277
  "id": {
2233
- "description": "Optional channel ID; omit for aggregated channel KPIs",
2278
+ "description": "broadcast ID",
2234
2279
  "name": "id",
2235
- "required": false
2280
+ "required": true
2236
2281
  }
2237
2282
  },
2238
- "description": "Get channel KPIs",
2283
+ "description": "Get broadcast by ID",
2239
2284
  "flags": {
2240
2285
  "api-key": {
2241
2286
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2298,18 +2343,11 @@
2298
2343
  "hasDynamicHelp": false,
2299
2344
  "multiple": false,
2300
2345
  "type": "option"
2301
- },
2302
- "period": {
2303
- "description": "KPI period",
2304
- "name": "period",
2305
- "hasDynamicHelp": false,
2306
- "multiple": false,
2307
- "type": "option"
2308
2346
  }
2309
2347
  },
2310
2348
  "hasDynamicHelp": false,
2311
2349
  "hiddenAliases": [],
2312
- "id": "channels:kpis",
2350
+ "id": "broadcast:get",
2313
2351
  "pluginAlias": "@instantkom/cli",
2314
2352
  "pluginName": "@instantkom/cli",
2315
2353
  "pluginType": "core",
@@ -2319,14 +2357,14 @@
2319
2357
  "relativePath": [
2320
2358
  "dist",
2321
2359
  "commands",
2322
- "channels",
2323
- "kpis.js"
2360
+ "broadcast",
2361
+ "get.js"
2324
2362
  ]
2325
2363
  },
2326
- "channels:list": {
2364
+ "broadcast:list": {
2327
2365
  "aliases": [],
2328
2366
  "args": {},
2329
- "description": "List channels",
2367
+ "description": "List broadcasts",
2330
2368
  "flags": {
2331
2369
  "api-key": {
2332
2370
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2406,31 +2444,56 @@
2406
2444
  "multiple": false,
2407
2445
  "type": "option"
2408
2446
  },
2409
- "status": {
2410
- "description": "Filter by channel status",
2411
- "name": "status",
2447
+ "channel": {
2448
+ "description": "Filter by channel ID",
2449
+ "name": "channel",
2412
2450
  "hasDynamicHelp": false,
2413
2451
  "multiple": false,
2414
2452
  "type": "option"
2415
2453
  },
2416
- "gateway-type": {
2417
- "description": "Filter by gateway type ID",
2418
- "name": "gateway-type",
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",
2419
2464
  "hasDynamicHelp": false,
2420
2465
  "multiple": false,
2466
+ "options": [
2467
+ "text",
2468
+ "image",
2469
+ "video",
2470
+ "audio",
2471
+ "document"
2472
+ ],
2421
2473
  "type": "option"
2422
2474
  },
2423
2475
  "search": {
2424
- "description": "Search by channel name",
2476
+ "description": "Search broadcasts",
2425
2477
  "name": "search",
2426
2478
  "hasDynamicHelp": false,
2427
2479
  "multiple": false,
2428
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"
2429
2492
  }
2430
2493
  },
2431
2494
  "hasDynamicHelp": false,
2432
2495
  "hiddenAliases": [],
2433
- "id": "channels:list",
2496
+ "id": "broadcast:list",
2434
2497
  "pluginAlias": "@instantkom/cli",
2435
2498
  "pluginName": "@instantkom/cli",
2436
2499
  "pluginType": "core",
@@ -2440,20 +2503,20 @@
2440
2503
  "relativePath": [
2441
2504
  "dist",
2442
2505
  "commands",
2443
- "channels",
2506
+ "broadcast",
2444
2507
  "list.js"
2445
2508
  ]
2446
2509
  },
2447
- "channels:update": {
2510
+ "broadcast:send": {
2448
2511
  "aliases": [],
2449
2512
  "args": {
2450
2513
  "id": {
2451
- "description": "Channel ID",
2514
+ "description": "Broadcast ID",
2452
2515
  "name": "id",
2453
2516
  "required": true
2454
2517
  }
2455
2518
  },
2456
- "description": "Update a channel",
2519
+ "description": "Send a broadcast immediately",
2457
2520
  "flags": {
2458
2521
  "api-key": {
2459
2522
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2516,39 +2579,11 @@
2516
2579
  "hasDynamicHelp": false,
2517
2580
  "multiple": false,
2518
2581
  "type": "option"
2519
- },
2520
- "name": {
2521
- "description": "Channel name",
2522
- "name": "name",
2523
- "hasDynamicHelp": false,
2524
- "multiple": false,
2525
- "type": "option"
2526
- },
2527
- "status": {
2528
- "description": "Channel lifecycle status",
2529
- "name": "status",
2530
- "hasDynamicHelp": false,
2531
- "multiple": false,
2532
- "type": "option"
2533
- },
2534
- "description": {
2535
- "description": "Channel description",
2536
- "name": "description",
2537
- "hasDynamicHelp": false,
2538
- "multiple": false,
2539
- "type": "option"
2540
- },
2541
- "data": {
2542
- "description": "Additional JSON object payload",
2543
- "name": "data",
2544
- "hasDynamicHelp": false,
2545
- "multiple": false,
2546
- "type": "option"
2547
2582
  }
2548
2583
  },
2549
2584
  "hasDynamicHelp": false,
2550
2585
  "hiddenAliases": [],
2551
- "id": "channels:update",
2586
+ "id": "broadcast:send",
2552
2587
  "pluginAlias": "@instantkom/cli",
2553
2588
  "pluginName": "@instantkom/cli",
2554
2589
  "pluginType": "core",
@@ -2558,20 +2593,20 @@
2558
2593
  "relativePath": [
2559
2594
  "dist",
2560
2595
  "commands",
2561
- "channels",
2562
- "update.js"
2596
+ "broadcast",
2597
+ "send.js"
2563
2598
  ]
2564
2599
  },
2565
- "chats:get": {
2600
+ "broadcast:status": {
2566
2601
  "aliases": [],
2567
2602
  "args": {
2568
2603
  "id": {
2569
- "description": "chat ID",
2604
+ "description": "Broadcast ID",
2570
2605
  "name": "id",
2571
2606
  "required": true
2572
2607
  }
2573
2608
  },
2574
- "description": "Get chat by ID",
2609
+ "description": "Show broadcast send status",
2575
2610
  "flags": {
2576
2611
  "api-key": {
2577
2612
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2638,7 +2673,7 @@
2638
2673
  },
2639
2674
  "hasDynamicHelp": false,
2640
2675
  "hiddenAliases": [],
2641
- "id": "chats:get",
2676
+ "id": "broadcast:status",
2642
2677
  "pluginAlias": "@instantkom/cli",
2643
2678
  "pluginName": "@instantkom/cli",
2644
2679
  "pluginType": "core",
@@ -2648,14 +2683,20 @@
2648
2683
  "relativePath": [
2649
2684
  "dist",
2650
2685
  "commands",
2651
- "chats",
2652
- "get.js"
2686
+ "broadcast",
2687
+ "status.js"
2653
2688
  ]
2654
2689
  },
2655
- "chats:list": {
2690
+ "broadcast:update": {
2656
2691
  "aliases": [],
2657
- "args": {},
2658
- "description": "List chats",
2692
+ "args": {
2693
+ "id": {
2694
+ "description": "Broadcast ID",
2695
+ "name": "id",
2696
+ "required": true
2697
+ }
2698
+ },
2699
+ "description": "Update a broadcast",
2659
2700
  "flags": {
2660
2701
  "api-key": {
2661
2702
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2719,72 +2760,76 @@
2719
2760
  "multiple": false,
2720
2761
  "type": "option"
2721
2762
  },
2722
- "page": {
2723
- "description": "Page number",
2724
- "name": "page",
2725
- "default": 1,
2726
- "hasDynamicHelp": false,
2727
- "multiple": false,
2728
- "type": "option"
2729
- },
2730
- "limit": {
2731
- "description": "Items per page",
2732
- "name": "limit",
2733
- "default": 20,
2763
+ "text": {
2764
+ "description": "Broadcast message text",
2765
+ "name": "text",
2734
2766
  "hasDynamicHelp": false,
2735
2767
  "multiple": false,
2736
2768
  "type": "option"
2737
2769
  },
2738
- "channel": {
2739
- "description": "Filter by channel ID",
2740
- "name": "channel",
2770
+ "send-status": {
2771
+ "description": "Send status",
2772
+ "name": "send-status",
2741
2773
  "hasDynamicHelp": false,
2742
2774
  "multiple": false,
2743
2775
  "type": "option"
2744
2776
  },
2745
- "channels": {
2746
- "description": "Comma-separated channel IDs",
2747
- "name": "channels",
2777
+ "scheduled-at": {
2778
+ "description": "Unix timestamp for scheduled send",
2779
+ "name": "scheduled-at",
2748
2780
  "hasDynamicHelp": false,
2749
2781
  "multiple": false,
2750
2782
  "type": "option"
2751
2783
  },
2752
- "search": {
2753
- "description": "Search chats",
2754
- "name": "search",
2755
- "hasDynamicHelp": false,
2756
- "multiple": false,
2757
- "type": "option"
2784
+ "approved": {
2785
+ "description": "Mark as approved",
2786
+ "name": "approved",
2787
+ "allowNo": false,
2788
+ "type": "boolean"
2758
2789
  },
2759
- "status": {
2760
- "description": "Chat status",
2761
- "name": "status",
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",
2762
2805
  "hasDynamicHelp": false,
2763
2806
  "multiple": false,
2764
- "options": [
2765
- "all",
2766
- "unread",
2767
- "read",
2768
- "archived"
2769
- ],
2770
2807
  "type": "option"
2771
2808
  },
2772
- "unread-only": {
2773
- "description": "Only unread chats",
2774
- "name": "unread-only",
2809
+ "remove-media": {
2810
+ "description": "Remove existing media",
2811
+ "name": "remove-media",
2775
2812
  "allowNo": false,
2776
2813
  "type": "boolean"
2777
2814
  },
2778
- "include-archived": {
2779
- "description": "Include archived chats",
2780
- "name": "include-archived",
2781
- "allowNo": false,
2782
- "type": "boolean"
2815
+ "header-footer": {
2816
+ "description": "Header/footer JSON array",
2817
+ "name": "header-footer",
2818
+ "hasDynamicHelp": false,
2819
+ "multiple": false,
2820
+ "type": "option"
2821
+ },
2822
+ "data": {
2823
+ "description": "Additional JSON object payload",
2824
+ "name": "data",
2825
+ "hasDynamicHelp": false,
2826
+ "multiple": false,
2827
+ "type": "option"
2783
2828
  }
2784
2829
  },
2785
2830
  "hasDynamicHelp": false,
2786
2831
  "hiddenAliases": [],
2787
- "id": "chats:list",
2832
+ "id": "broadcast:update",
2788
2833
  "pluginAlias": "@instantkom/cli",
2789
2834
  "pluginName": "@instantkom/cli",
2790
2835
  "pluginType": "core",
@@ -2794,20 +2839,14 @@
2794
2839
  "relativePath": [
2795
2840
  "dist",
2796
2841
  "commands",
2797
- "chats",
2798
- "list.js"
2842
+ "broadcast",
2843
+ "update.js"
2799
2844
  ]
2800
2845
  },
2801
- "chats:reply": {
2846
+ "channels:create": {
2802
2847
  "aliases": [],
2803
- "args": {
2804
- "id": {
2805
- "description": "Chat ID",
2806
- "name": "id",
2807
- "required": true
2808
- }
2809
- },
2810
- "description": "Reply in a chat",
2848
+ "args": {},
2849
+ "description": "Create a channel",
2811
2850
  "flags": {
2812
2851
  "api-key": {
2813
2852
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2871,18 +2910,47 @@
2871
2910
  "multiple": false,
2872
2911
  "type": "option"
2873
2912
  },
2874
- "text": {
2875
- "description": "Reply text",
2876
- "name": "text",
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",
2877
2924
  "required": true,
2878
2925
  "hasDynamicHelp": false,
2879
2926
  "multiple": false,
2880
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"
2881
2949
  }
2882
2950
  },
2883
2951
  "hasDynamicHelp": false,
2884
2952
  "hiddenAliases": [],
2885
- "id": "chats:reply",
2953
+ "id": "channels:create",
2886
2954
  "pluginAlias": "@instantkom/cli",
2887
2955
  "pluginName": "@instantkom/cli",
2888
2956
  "pluginType": "core",
@@ -2892,14 +2960,20 @@
2892
2960
  "relativePath": [
2893
2961
  "dist",
2894
2962
  "commands",
2895
- "chats",
2896
- "reply.js"
2963
+ "channels",
2964
+ "create.js"
2897
2965
  ]
2898
2966
  },
2899
- "broadcast:create": {
2967
+ "channels:get": {
2900
2968
  "aliases": [],
2901
- "args": {},
2902
- "description": "Create a broadcast for channels or segments",
2969
+ "args": {
2970
+ "id": {
2971
+ "description": "Channel ID",
2972
+ "name": "id",
2973
+ "required": true
2974
+ }
2975
+ },
2976
+ "description": "Get a channel by ID",
2903
2977
  "flags": {
2904
2978
  "api-key": {
2905
2979
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2962,93 +3036,11 @@
2962
3036
  "hasDynamicHelp": false,
2963
3037
  "multiple": false,
2964
3038
  "type": "option"
2965
- },
2966
- "channel": {
2967
- "description": "Channel ID target",
2968
- "name": "channel",
2969
- "hasDynamicHelp": false,
2970
- "multiple": false,
2971
- "type": "option"
2972
- },
2973
- "segment": {
2974
- "description": "Segment ID within --channel",
2975
- "name": "segment",
2976
- "hasDynamicHelp": false,
2977
- "multiple": false,
2978
- "type": "option"
2979
- },
2980
- "target": {
2981
- "description": "Target as channelId or channelId:segmentId; may be repeated",
2982
- "name": "target",
2983
- "hasDynamicHelp": false,
2984
- "multiple": true,
2985
- "type": "option"
2986
- },
2987
- "text": {
2988
- "description": "Broadcast message text",
2989
- "name": "text",
2990
- "required": true,
2991
- "hasDynamicHelp": false,
2992
- "multiple": false,
2993
- "type": "option"
2994
- },
2995
- "send-at": {
2996
- "description": "Schedule send for an ISO-8601 date-time",
2997
- "name": "send-at",
2998
- "hasDynamicHelp": false,
2999
- "multiple": false,
3000
- "type": "option"
3001
- },
3002
- "dry-run": {
3003
- "description": "Validate and print the broadcast payload without mutating API calls",
3004
- "name": "dry-run",
3005
- "allowNo": false,
3006
- "type": "boolean"
3007
- },
3008
- "idempotency-key": {
3009
- "description": "Idempotency key forwarded as Idempotency-Key",
3010
- "name": "idempotency-key",
3011
- "hasDynamicHelp": false,
3012
- "multiple": false,
3013
- "type": "option"
3014
- },
3015
- "media": {
3016
- "description": "Media file path to upload",
3017
- "name": "media",
3018
- "hasDynamicHelp": false,
3019
- "multiple": true,
3020
- "type": "option"
3021
- },
3022
- "template-id": {
3023
- "description": "WhatsApp template ID",
3024
- "name": "template-id",
3025
- "hasDynamicHelp": false,
3026
- "multiple": false,
3027
- "type": "option"
3028
- },
3029
- "send-status": {
3030
- "description": "Initial broadcast send status",
3031
- "name": "send-status",
3032
- "default": "draft",
3033
- "hasDynamicHelp": false,
3034
- "multiple": false,
3035
- "options": [
3036
- "draft",
3037
- "scheduled",
3038
- "sending"
3039
- ],
3040
- "type": "option"
3041
- },
3042
- "auto-approve": {
3043
- "description": "Auto-approve broadcast when allowed by API permissions",
3044
- "name": "auto-approve",
3045
- "allowNo": false,
3046
- "type": "boolean"
3047
3039
  }
3048
3040
  },
3049
3041
  "hasDynamicHelp": false,
3050
3042
  "hiddenAliases": [],
3051
- "id": "broadcast:create",
3043
+ "id": "channels:get",
3052
3044
  "pluginAlias": "@instantkom/cli",
3053
3045
  "pluginName": "@instantkom/cli",
3054
3046
  "pluginType": "core",
@@ -3058,20 +3050,20 @@
3058
3050
  "relativePath": [
3059
3051
  "dist",
3060
3052
  "commands",
3061
- "broadcast",
3062
- "create.js"
3053
+ "channels",
3054
+ "get.js"
3063
3055
  ]
3064
3056
  },
3065
- "broadcast:delete": {
3057
+ "channels:kpis": {
3066
3058
  "aliases": [],
3067
3059
  "args": {
3068
3060
  "id": {
3069
- "description": "broadcast ID",
3061
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
3070
3062
  "name": "id",
3071
- "required": true
3063
+ "required": false
3072
3064
  }
3073
3065
  },
3074
- "description": "Delete broadcast",
3066
+ "description": "Get channel KPIs",
3075
3067
  "flags": {
3076
3068
  "api-key": {
3077
3069
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3134,11 +3126,18 @@
3134
3126
  "hasDynamicHelp": false,
3135
3127
  "multiple": false,
3136
3128
  "type": "option"
3129
+ },
3130
+ "period": {
3131
+ "description": "KPI period",
3132
+ "name": "period",
3133
+ "hasDynamicHelp": false,
3134
+ "multiple": false,
3135
+ "type": "option"
3137
3136
  }
3138
3137
  },
3139
3138
  "hasDynamicHelp": false,
3140
3139
  "hiddenAliases": [],
3141
- "id": "broadcast:delete",
3140
+ "id": "channels:kpis",
3142
3141
  "pluginAlias": "@instantkom/cli",
3143
3142
  "pluginName": "@instantkom/cli",
3144
3143
  "pluginType": "core",
@@ -3148,20 +3147,14 @@
3148
3147
  "relativePath": [
3149
3148
  "dist",
3150
3149
  "commands",
3151
- "broadcast",
3152
- "delete.js"
3150
+ "channels",
3151
+ "kpis.js"
3153
3152
  ]
3154
3153
  },
3155
- "broadcast:get": {
3154
+ "channels:list": {
3156
3155
  "aliases": [],
3157
- "args": {
3158
- "id": {
3159
- "description": "broadcast ID",
3160
- "name": "id",
3161
- "required": true
3162
- }
3163
- },
3164
- "description": "Get broadcast by ID",
3156
+ "args": {},
3157
+ "description": "List channels",
3165
3158
  "flags": {
3166
3159
  "api-key": {
3167
3160
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3224,11 +3217,48 @@
3224
3217
  "hasDynamicHelp": false,
3225
3218
  "multiple": false,
3226
3219
  "type": "option"
3227
- }
3228
- },
3229
- "hasDynamicHelp": false,
3230
- "hiddenAliases": [],
3231
- "id": "broadcast:get",
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
+ }
3258
+ },
3259
+ "hasDynamicHelp": false,
3260
+ "hiddenAliases": [],
3261
+ "id": "channels:list",
3232
3262
  "pluginAlias": "@instantkom/cli",
3233
3263
  "pluginName": "@instantkom/cli",
3234
3264
  "pluginType": "core",
@@ -3238,14 +3268,20 @@
3238
3268
  "relativePath": [
3239
3269
  "dist",
3240
3270
  "commands",
3241
- "broadcast",
3242
- "get.js"
3271
+ "channels",
3272
+ "list.js"
3243
3273
  ]
3244
3274
  },
3245
- "broadcast:list": {
3275
+ "channels:update": {
3246
3276
  "aliases": [],
3247
- "args": {},
3248
- "description": "List broadcasts",
3277
+ "args": {
3278
+ "id": {
3279
+ "description": "Channel ID",
3280
+ "name": "id",
3281
+ "required": true
3282
+ }
3283
+ },
3284
+ "description": "Update a channel",
3249
3285
  "flags": {
3250
3286
  "api-key": {
3251
3287
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3309,72 +3345,38 @@
3309
3345
  "multiple": false,
3310
3346
  "type": "option"
3311
3347
  },
3312
- "page": {
3313
- "description": "Page number",
3314
- "name": "page",
3315
- "default": 1,
3316
- "hasDynamicHelp": false,
3317
- "multiple": false,
3318
- "type": "option"
3319
- },
3320
- "limit": {
3321
- "description": "Items per page",
3322
- "name": "limit",
3323
- "default": 20,
3324
- "hasDynamicHelp": false,
3325
- "multiple": false,
3326
- "type": "option"
3327
- },
3328
- "channel": {
3329
- "description": "Filter by channel ID",
3330
- "name": "channel",
3331
- "hasDynamicHelp": false,
3332
- "multiple": false,
3333
- "type": "option"
3334
- },
3335
- "send-status": {
3336
- "description": "Filter by send status",
3337
- "name": "send-status",
3348
+ "name": {
3349
+ "description": "Channel name",
3350
+ "name": "name",
3338
3351
  "hasDynamicHelp": false,
3339
3352
  "multiple": false,
3340
3353
  "type": "option"
3341
3354
  },
3342
- "type": {
3343
- "description": "Broadcast type",
3344
- "name": "type",
3355
+ "status": {
3356
+ "description": "Channel lifecycle status",
3357
+ "name": "status",
3345
3358
  "hasDynamicHelp": false,
3346
3359
  "multiple": false,
3347
- "options": [
3348
- "text",
3349
- "image",
3350
- "video",
3351
- "audio",
3352
- "document"
3353
- ],
3354
3360
  "type": "option"
3355
3361
  },
3356
- "search": {
3357
- "description": "Search broadcasts",
3358
- "name": "search",
3362
+ "description": {
3363
+ "description": "Channel description",
3364
+ "name": "description",
3359
3365
  "hasDynamicHelp": false,
3360
3366
  "multiple": false,
3361
3367
  "type": "option"
3362
3368
  },
3363
- "test": {
3364
- "description": "Filter test flag: 0 or 1",
3365
- "name": "test",
3369
+ "data": {
3370
+ "description": "Additional JSON object payload",
3371
+ "name": "data",
3366
3372
  "hasDynamicHelp": false,
3367
3373
  "multiple": false,
3368
- "options": [
3369
- "0",
3370
- "1"
3371
- ],
3372
3374
  "type": "option"
3373
3375
  }
3374
3376
  },
3375
3377
  "hasDynamicHelp": false,
3376
3378
  "hiddenAliases": [],
3377
- "id": "broadcast:list",
3379
+ "id": "channels:update",
3378
3380
  "pluginAlias": "@instantkom/cli",
3379
3381
  "pluginName": "@instantkom/cli",
3380
3382
  "pluginType": "core",
@@ -3384,20 +3386,20 @@
3384
3386
  "relativePath": [
3385
3387
  "dist",
3386
3388
  "commands",
3387
- "broadcast",
3388
- "list.js"
3389
+ "channels",
3390
+ "update.js"
3389
3391
  ]
3390
3392
  },
3391
- "broadcast:send": {
3393
+ "chats:get": {
3392
3394
  "aliases": [],
3393
3395
  "args": {
3394
3396
  "id": {
3395
- "description": "Broadcast ID",
3397
+ "description": "chat ID",
3396
3398
  "name": "id",
3397
3399
  "required": true
3398
3400
  }
3399
3401
  },
3400
- "description": "Send a broadcast immediately",
3402
+ "description": "Get chat by ID",
3401
3403
  "flags": {
3402
3404
  "api-key": {
3403
3405
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3464,7 +3466,7 @@
3464
3466
  },
3465
3467
  "hasDynamicHelp": false,
3466
3468
  "hiddenAliases": [],
3467
- "id": "broadcast:send",
3469
+ "id": "chats:get",
3468
3470
  "pluginAlias": "@instantkom/cli",
3469
3471
  "pluginName": "@instantkom/cli",
3470
3472
  "pluginType": "core",
@@ -3474,20 +3476,14 @@
3474
3476
  "relativePath": [
3475
3477
  "dist",
3476
3478
  "commands",
3477
- "broadcast",
3478
- "send.js"
3479
+ "chats",
3480
+ "get.js"
3479
3481
  ]
3480
3482
  },
3481
- "broadcast:status": {
3483
+ "chats:list": {
3482
3484
  "aliases": [],
3483
- "args": {
3484
- "id": {
3485
- "description": "Broadcast ID",
3486
- "name": "id",
3487
- "required": true
3488
- }
3489
- },
3490
- "description": "Show broadcast send status",
3485
+ "args": {},
3486
+ "description": "List chats",
3491
3487
  "flags": {
3492
3488
  "api-key": {
3493
3489
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3550,11 +3546,73 @@
3550
3546
  "hasDynamicHelp": false,
3551
3547
  "multiple": false,
3552
3548
  "type": "option"
3549
+ },
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
+ "channel": {
3567
+ "description": "Filter by channel ID",
3568
+ "name": "channel",
3569
+ "hasDynamicHelp": false,
3570
+ "multiple": false,
3571
+ "type": "option"
3572
+ },
3573
+ "channels": {
3574
+ "description": "Comma-separated channel IDs",
3575
+ "name": "channels",
3576
+ "hasDynamicHelp": false,
3577
+ "multiple": false,
3578
+ "type": "option"
3579
+ },
3580
+ "search": {
3581
+ "description": "Search chats",
3582
+ "name": "search",
3583
+ "hasDynamicHelp": false,
3584
+ "multiple": false,
3585
+ "type": "option"
3586
+ },
3587
+ "status": {
3588
+ "description": "Chat status",
3589
+ "name": "status",
3590
+ "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"
3553
3611
  }
3554
3612
  },
3555
3613
  "hasDynamicHelp": false,
3556
3614
  "hiddenAliases": [],
3557
- "id": "broadcast:status",
3615
+ "id": "chats:list",
3558
3616
  "pluginAlias": "@instantkom/cli",
3559
3617
  "pluginName": "@instantkom/cli",
3560
3618
  "pluginType": "core",
@@ -3564,20 +3622,20 @@
3564
3622
  "relativePath": [
3565
3623
  "dist",
3566
3624
  "commands",
3567
- "broadcast",
3568
- "status.js"
3625
+ "chats",
3626
+ "list.js"
3569
3627
  ]
3570
3628
  },
3571
- "broadcast:update": {
3629
+ "chats:reply": {
3572
3630
  "aliases": [],
3573
3631
  "args": {
3574
3632
  "id": {
3575
- "description": "Broadcast ID",
3633
+ "description": "Chat ID",
3576
3634
  "name": "id",
3577
3635
  "required": true
3578
3636
  }
3579
3637
  },
3580
- "description": "Update a broadcast",
3638
+ "description": "Reply in a chat",
3581
3639
  "flags": {
3582
3640
  "api-key": {
3583
3641
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3642,67 +3700,9 @@
3642
3700
  "type": "option"
3643
3701
  },
3644
3702
  "text": {
3645
- "description": "Broadcast message text",
3703
+ "description": "Reply text",
3646
3704
  "name": "text",
3647
- "hasDynamicHelp": false,
3648
- "multiple": false,
3649
- "type": "option"
3650
- },
3651
- "send-status": {
3652
- "description": "Send status",
3653
- "name": "send-status",
3654
- "hasDynamicHelp": false,
3655
- "multiple": false,
3656
- "type": "option"
3657
- },
3658
- "scheduled-at": {
3659
- "description": "Unix timestamp for scheduled send",
3660
- "name": "scheduled-at",
3661
- "hasDynamicHelp": false,
3662
- "multiple": false,
3663
- "type": "option"
3664
- },
3665
- "approved": {
3666
- "description": "Mark as approved",
3667
- "name": "approved",
3668
- "allowNo": false,
3669
- "type": "boolean"
3670
- },
3671
- "locked": {
3672
- "description": "Mark as locked",
3673
- "name": "locked",
3674
- "allowNo": false,
3675
- "type": "boolean"
3676
- },
3677
- "test": {
3678
- "description": "Mark as test broadcast",
3679
- "name": "test",
3680
- "allowNo": false,
3681
- "type": "boolean"
3682
- },
3683
- "template-id": {
3684
- "description": "Template ID",
3685
- "name": "template-id",
3686
- "hasDynamicHelp": false,
3687
- "multiple": false,
3688
- "type": "option"
3689
- },
3690
- "remove-media": {
3691
- "description": "Remove existing media",
3692
- "name": "remove-media",
3693
- "allowNo": false,
3694
- "type": "boolean"
3695
- },
3696
- "header-footer": {
3697
- "description": "Header/footer JSON array",
3698
- "name": "header-footer",
3699
- "hasDynamicHelp": false,
3700
- "multiple": false,
3701
- "type": "option"
3702
- },
3703
- "data": {
3704
- "description": "Additional JSON object payload",
3705
- "name": "data",
3705
+ "required": true,
3706
3706
  "hasDynamicHelp": false,
3707
3707
  "multiple": false,
3708
3708
  "type": "option"
@@ -3710,7 +3710,7 @@
3710
3710
  },
3711
3711
  "hasDynamicHelp": false,
3712
3712
  "hiddenAliases": [],
3713
- "id": "broadcast:update",
3713
+ "id": "chats:reply",
3714
3714
  "pluginAlias": "@instantkom/cli",
3715
3715
  "pluginName": "@instantkom/cli",
3716
3716
  "pluginType": "core",
@@ -3720,8 +3720,8 @@
3720
3720
  "relativePath": [
3721
3721
  "dist",
3722
3722
  "commands",
3723
- "broadcast",
3724
- "update.js"
3723
+ "chats",
3724
+ "reply.js"
3725
3725
  ]
3726
3726
  },
3727
3727
  "config:get": {
@@ -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,39 +6143,120 @@
6143
6143
  "multiple": false,
6144
6144
  "type": "option"
6145
6145
  },
6146
- "channel": {
6147
- "description": "Channel ID",
6148
- "name": "channel",
6146
+ "ids": {
6147
+ "description": "Comma-separated message IDs",
6148
+ "name": "ids",
6149
6149
  "required": true,
6150
6150
  "hasDynamicHelp": false,
6151
6151
  "multiple": false,
6152
6152
  "type": "option"
6153
6153
  },
6154
- "name": {
6155
- "description": "Flow name",
6156
- "name": "name",
6157
- "required": true,
6154
+ "spam": {
6155
+ "description": "Mark messages as spam",
6156
+ "name": "spam",
6157
+ "allowNo": true,
6158
+ "type": "boolean"
6159
+ }
6160
+ },
6161
+ "hasDynamicHelp": false,
6162
+ "hiddenAliases": [],
6163
+ "id": "messages:bulk-spam",
6164
+ "pluginAlias": "@instantkom/cli",
6165
+ "pluginName": "@instantkom/cli",
6166
+ "pluginType": "core",
6167
+ "strict": true,
6168
+ "enableJsonFlag": false,
6169
+ "isESM": true,
6170
+ "relativePath": [
6171
+ "dist",
6172
+ "commands",
6173
+ "messages",
6174
+ "bulk-spam.js"
6175
+ ]
6176
+ },
6177
+ "messages:create-ticket": {
6178
+ "aliases": [],
6179
+ "args": {
6180
+ "id": {
6181
+ "description": "Message ID",
6182
+ "name": "id",
6183
+ "required": true
6184
+ }
6185
+ },
6186
+ "description": "Create a ticket from a message",
6187
+ "flags": {
6188
+ "api-key": {
6189
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
6190
+ "env": "IKM_API_KEY",
6191
+ "helpGroup": "GLOBAL",
6192
+ "name": "api-key",
6158
6193
  "hasDynamicHelp": false,
6159
6194
  "multiple": false,
6160
6195
  "type": "option"
6161
6196
  },
6162
- "description": {
6163
- "description": "Flow description",
6164
- "name": "description",
6197
+ "format": {
6198
+ "description": "Output format: text, json, yaml, or table",
6199
+ "helpGroup": "GLOBAL",
6200
+ "name": "format",
6201
+ "default": "text",
6165
6202
  "hasDynamicHelp": false,
6166
6203
  "multiple": false,
6204
+ "options": [
6205
+ "text",
6206
+ "json",
6207
+ "yaml",
6208
+ "table"
6209
+ ],
6167
6210
  "type": "option"
6168
6211
  },
6169
- "color": {
6170
- "description": "Flow color as HEX",
6171
- "name": "color",
6212
+ "json": {
6213
+ "description": "Output in JSON format (alias for --format=json)",
6214
+ "helpGroup": "GLOBAL",
6215
+ "name": "json",
6216
+ "allowNo": false,
6217
+ "type": "boolean"
6218
+ },
6219
+ "quiet": {
6220
+ "description": "Suppress all output except errors",
6221
+ "helpGroup": "GLOBAL",
6222
+ "name": "quiet",
6223
+ "allowNo": false,
6224
+ "type": "boolean"
6225
+ },
6226
+ "no-color": {
6227
+ "description": "Disable color output",
6228
+ "helpGroup": "GLOBAL",
6229
+ "name": "no-color",
6230
+ "allowNo": false,
6231
+ "type": "boolean"
6232
+ },
6233
+ "profile": {
6234
+ "description": "Named configuration profile to use",
6235
+ "helpGroup": "GLOBAL",
6236
+ "name": "profile",
6237
+ "default": "default",
6172
6238
  "hasDynamicHelp": false,
6173
6239
  "multiple": false,
6174
6240
  "type": "option"
6175
6241
  },
6176
- "folder": {
6177
- "description": "Folder ID",
6178
- "name": "folder",
6242
+ "api-url": {
6243
+ "description": "Override the API base URL (e.g. for staging)",
6244
+ "helpGroup": "GLOBAL",
6245
+ "name": "api-url",
6246
+ "hasDynamicHelp": false,
6247
+ "multiple": false,
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",
6179
6260
  "hasDynamicHelp": false,
6180
6261
  "multiple": false,
6181
6262
  "type": "option"
@@ -6190,7 +6271,7 @@
6190
6271
  },
6191
6272
  "hasDynamicHelp": false,
6192
6273
  "hiddenAliases": [],
6193
- "id": "flows:create",
6274
+ "id": "messages:create-ticket",
6194
6275
  "pluginAlias": "@instantkom/cli",
6195
6276
  "pluginName": "@instantkom/cli",
6196
6277
  "pluginType": "core",
@@ -6200,20 +6281,20 @@
6200
6281
  "relativePath": [
6201
6282
  "dist",
6202
6283
  "commands",
6203
- "flows",
6204
- "create.js"
6284
+ "messages",
6285
+ "create-ticket.js"
6205
6286
  ]
6206
6287
  },
6207
- "flows:delete": {
6288
+ "messages:delete": {
6208
6289
  "aliases": [],
6209
6290
  "args": {
6210
6291
  "id": {
6211
- "description": "Flow ID",
6292
+ "description": "message ID",
6212
6293
  "name": "id",
6213
6294
  "required": true
6214
6295
  }
6215
6296
  },
6216
- "description": "Delete a flow",
6297
+ "description": "Delete message",
6217
6298
  "flags": {
6218
6299
  "api-key": {
6219
6300
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6280,7 +6361,7 @@
6280
6361
  },
6281
6362
  "hasDynamicHelp": false,
6282
6363
  "hiddenAliases": [],
6283
- "id": "flows:delete",
6364
+ "id": "messages:delete",
6284
6365
  "pluginAlias": "@instantkom/cli",
6285
6366
  "pluginName": "@instantkom/cli",
6286
6367
  "pluginType": "core",
@@ -6290,20 +6371,20 @@
6290
6371
  "relativePath": [
6291
6372
  "dist",
6292
6373
  "commands",
6293
- "flows",
6374
+ "messages",
6294
6375
  "delete.js"
6295
6376
  ]
6296
6377
  },
6297
- "flows:get": {
6378
+ "messages:get": {
6298
6379
  "aliases": [],
6299
6380
  "args": {
6300
6381
  "id": {
6301
- "description": "Flow ID",
6382
+ "description": "message ID",
6302
6383
  "name": "id",
6303
6384
  "required": true
6304
6385
  }
6305
6386
  },
6306
- "description": "Get a flow by ID",
6387
+ "description": "Get message by ID",
6307
6388
  "flags": {
6308
6389
  "api-key": {
6309
6390
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6370,7 +6451,7 @@
6370
6451
  },
6371
6452
  "hasDynamicHelp": false,
6372
6453
  "hiddenAliases": [],
6373
- "id": "flows:get",
6454
+ "id": "messages:get",
6374
6455
  "pluginAlias": "@instantkom/cli",
6375
6456
  "pluginName": "@instantkom/cli",
6376
6457
  "pluginType": "core",
@@ -6380,14 +6461,14 @@
6380
6461
  "relativePath": [
6381
6462
  "dist",
6382
6463
  "commands",
6383
- "flows",
6464
+ "messages",
6384
6465
  "get.js"
6385
6466
  ]
6386
6467
  },
6387
- "flows:list": {
6468
+ "messages:list": {
6388
6469
  "aliases": [],
6389
6470
  "args": {},
6390
- "description": "List flows",
6471
+ "description": "List messages",
6391
6472
  "flags": {
6392
6473
  "api-key": {
6393
6474
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6474,24 +6555,48 @@
6474
6555
  "multiple": false,
6475
6556
  "type": "option"
6476
6557
  },
6477
- "search": {
6478
- "description": "Search in flow name or description",
6479
- "name": "search",
6558
+ "recipient": {
6559
+ "description": "Filter by recipient ID",
6560
+ "name": "recipient",
6480
6561
  "hasDynamicHelp": false,
6481
6562
  "multiple": false,
6482
6563
  "type": "option"
6483
6564
  },
6484
- "folder": {
6485
- "description": "Filter by folder ID",
6486
- "name": "folder",
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",
6487
6586
  "hasDynamicHelp": false,
6488
6587
  "multiple": false,
6489
6588
  "type": "option"
6589
+ },
6590
+ "spam": {
6591
+ "description": "Filter spam messages",
6592
+ "name": "spam",
6593
+ "allowNo": false,
6594
+ "type": "boolean"
6490
6595
  }
6491
6596
  },
6492
6597
  "hasDynamicHelp": false,
6493
6598
  "hiddenAliases": [],
6494
- "id": "flows:list",
6599
+ "id": "messages:list",
6495
6600
  "pluginAlias": "@instantkom/cli",
6496
6601
  "pluginName": "@instantkom/cli",
6497
6602
  "pluginType": "core",
@@ -6501,20 +6606,20 @@
6501
6606
  "relativePath": [
6502
6607
  "dist",
6503
6608
  "commands",
6504
- "flows",
6609
+ "messages",
6505
6610
  "list.js"
6506
6611
  ]
6507
6612
  },
6508
- "flows:update": {
6613
+ "messages:reactions": {
6509
6614
  "aliases": [],
6510
6615
  "args": {
6511
6616
  "id": {
6512
- "description": "Flow ID",
6617
+ "description": "Message ID",
6513
6618
  "name": "id",
6514
6619
  "required": true
6515
6620
  }
6516
6621
  },
6517
- "description": "Update a flow",
6622
+ "description": "Get reactions to a message",
6518
6623
  "flags": {
6519
6624
  "api-key": {
6520
6625
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6577,46 +6682,11 @@
6577
6682
  "hasDynamicHelp": false,
6578
6683
  "multiple": false,
6579
6684
  "type": "option"
6580
- },
6581
- "name": {
6582
- "description": "Flow name",
6583
- "name": "name",
6584
- "hasDynamicHelp": false,
6585
- "multiple": false,
6586
- "type": "option"
6587
- },
6588
- "description": {
6589
- "description": "Flow description",
6590
- "name": "description",
6591
- "hasDynamicHelp": false,
6592
- "multiple": false,
6593
- "type": "option"
6594
- },
6595
- "color": {
6596
- "description": "Flow color as HEX",
6597
- "name": "color",
6598
- "hasDynamicHelp": false,
6599
- "multiple": false,
6600
- "type": "option"
6601
- },
6602
- "folder": {
6603
- "description": "Folder ID",
6604
- "name": "folder",
6605
- "hasDynamicHelp": false,
6606
- "multiple": false,
6607
- "type": "option"
6608
- },
6609
- "data": {
6610
- "description": "Additional JSON object payload",
6611
- "name": "data",
6612
- "hasDynamicHelp": false,
6613
- "multiple": false,
6614
- "type": "option"
6615
6685
  }
6616
6686
  },
6617
6687
  "hasDynamicHelp": false,
6618
6688
  "hiddenAliases": [],
6619
- "id": "flows:update",
6689
+ "id": "messages:reactions",
6620
6690
  "pluginAlias": "@instantkom/cli",
6621
6691
  "pluginName": "@instantkom/cli",
6622
6692
  "pluginType": "core",
@@ -6626,14 +6696,20 @@
6626
6696
  "relativePath": [
6627
6697
  "dist",
6628
6698
  "commands",
6629
- "flows",
6630
- "update.js"
6699
+ "messages",
6700
+ "reactions.js"
6631
6701
  ]
6632
6702
  },
6633
- "messages:bulk-spam": {
6703
+ "messages:spam": {
6634
6704
  "aliases": [],
6635
- "args": {},
6636
- "description": "Mark or unmark multiple messages as spam",
6705
+ "args": {
6706
+ "id": {
6707
+ "description": "Message ID",
6708
+ "name": "id",
6709
+ "required": true
6710
+ }
6711
+ },
6712
+ "description": "Mark or unmark a message as spam",
6637
6713
  "flags": {
6638
6714
  "api-key": {
6639
6715
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6697,16 +6773,8 @@
6697
6773
  "multiple": false,
6698
6774
  "type": "option"
6699
6775
  },
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
6776
  "spam": {
6709
- "description": "Mark messages as spam",
6777
+ "description": "Mark as spam",
6710
6778
  "name": "spam",
6711
6779
  "allowNo": true,
6712
6780
  "type": "boolean"
@@ -6714,7 +6782,7 @@
6714
6782
  },
6715
6783
  "hasDynamicHelp": false,
6716
6784
  "hiddenAliases": [],
6717
- "id": "messages:bulk-spam",
6785
+ "id": "messages:spam",
6718
6786
  "pluginAlias": "@instantkom/cli",
6719
6787
  "pluginName": "@instantkom/cli",
6720
6788
  "pluginType": "core",
@@ -6725,19 +6793,13 @@
6725
6793
  "dist",
6726
6794
  "commands",
6727
6795
  "messages",
6728
- "bulk-spam.js"
6796
+ "spam.js"
6729
6797
  ]
6730
6798
  },
6731
- "messages:create-ticket": {
6799
+ "messages:unread-count": {
6732
6800
  "aliases": [],
6733
- "args": {
6734
- "id": {
6735
- "description": "Message ID",
6736
- "name": "id",
6737
- "required": true
6738
- }
6739
- },
6740
- "description": "Create a ticket from a message",
6801
+ "args": {},
6802
+ "description": "Get unread inbox message count",
6741
6803
  "flags": {
6742
6804
  "api-key": {
6743
6805
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6800,32 +6862,11 @@
6800
6862
  "hasDynamicHelp": false,
6801
6863
  "multiple": false,
6802
6864
  "type": "option"
6803
- },
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"
6824
6865
  }
6825
6866
  },
6826
6867
  "hasDynamicHelp": false,
6827
6868
  "hiddenAliases": [],
6828
- "id": "messages:create-ticket",
6869
+ "id": "messages:unread-count",
6829
6870
  "pluginAlias": "@instantkom/cli",
6830
6871
  "pluginName": "@instantkom/cli",
6831
6872
  "pluginType": "core",
@@ -6836,19 +6877,19 @@
6836
6877
  "dist",
6837
6878
  "commands",
6838
6879
  "messages",
6839
- "create-ticket.js"
6880
+ "unread-count.js"
6840
6881
  ]
6841
6882
  },
6842
- "messages:delete": {
6883
+ "messages:update": {
6843
6884
  "aliases": [],
6844
6885
  "args": {
6845
6886
  "id": {
6846
- "description": "message ID",
6887
+ "description": "Message ID",
6847
6888
  "name": "id",
6848
6889
  "required": true
6849
6890
  }
6850
6891
  },
6851
- "description": "Delete message",
6892
+ "description": "Update a message",
6852
6893
  "flags": {
6853
6894
  "api-key": {
6854
6895
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6911,93 +6952,50 @@
6911
6952
  "hasDynamicHelp": false,
6912
6953
  "multiple": false,
6913
6954
  "type": "option"
6914
- }
6915
- },
6916
- "hasDynamicHelp": false,
6917
- "hiddenAliases": [],
6918
- "id": "messages:delete",
6919
- "pluginAlias": "@instantkom/cli",
6920
- "pluginName": "@instantkom/cli",
6921
- "pluginType": "core",
6922
- "strict": true,
6923
- "enableJsonFlag": false,
6924
- "isESM": true,
6925
- "relativePath": [
6926
- "dist",
6927
- "commands",
6928
- "messages",
6929
- "delete.js"
6930
- ]
6931
- },
6932
- "messages:get": {
6933
- "aliases": [],
6934
- "args": {
6935
- "id": {
6936
- "description": "message ID",
6937
- "name": "id",
6938
- "required": true
6939
- }
6940
- },
6941
- "description": "Get message by ID",
6942
- "flags": {
6943
- "api-key": {
6944
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
6945
- "env": "IKM_API_KEY",
6946
- "helpGroup": "GLOBAL",
6947
- "name": "api-key",
6955
+ },
6956
+ "message": {
6957
+ "description": "Message content",
6958
+ "name": "message",
6948
6959
  "hasDynamicHelp": false,
6949
6960
  "multiple": false,
6950
6961
  "type": "option"
6951
6962
  },
6952
- "format": {
6953
- "description": "Output format: text, json, yaml, or table",
6954
- "helpGroup": "GLOBAL",
6955
- "name": "format",
6956
- "default": "text",
6963
+ "scheduled-at": {
6964
+ "description": "Unix timestamp for scheduled send",
6965
+ "name": "scheduled-at",
6957
6966
  "hasDynamicHelp": false,
6958
6967
  "multiple": false,
6959
- "options": [
6960
- "text",
6961
- "json",
6962
- "yaml",
6963
- "table"
6964
- ],
6965
6968
  "type": "option"
6966
6969
  },
6967
- "json": {
6968
- "description": "Output in JSON format (alias for --format=json)",
6969
- "helpGroup": "GLOBAL",
6970
- "name": "json",
6971
- "allowNo": false,
6970
+ "hidden": {
6971
+ "description": "Hide message",
6972
+ "name": "hidden",
6973
+ "allowNo": true,
6972
6974
  "type": "boolean"
6973
6975
  },
6974
- "quiet": {
6975
- "description": "Suppress all output except errors",
6976
- "helpGroup": "GLOBAL",
6977
- "name": "quiet",
6978
- "allowNo": false,
6976
+ "locked": {
6977
+ "description": "Lock message",
6978
+ "name": "locked",
6979
+ "allowNo": true,
6979
6980
  "type": "boolean"
6980
6981
  },
6981
- "no-color": {
6982
- "description": "Disable color output",
6983
- "helpGroup": "GLOBAL",
6984
- "name": "no-color",
6985
- "allowNo": false,
6986
- "type": "boolean"
6982
+ "buttons": {
6983
+ "description": "Buttons JSON array",
6984
+ "name": "buttons",
6985
+ "hasDynamicHelp": false,
6986
+ "multiple": false,
6987
+ "type": "option"
6987
6988
  },
6988
- "profile": {
6989
- "description": "Named configuration profile to use",
6990
- "helpGroup": "GLOBAL",
6991
- "name": "profile",
6992
- "default": "default",
6989
+ "header-footer": {
6990
+ "description": "Header/footer JSON object",
6991
+ "name": "header-footer",
6993
6992
  "hasDynamicHelp": false,
6994
6993
  "multiple": false,
6995
6994
  "type": "option"
6996
6995
  },
6997
- "api-url": {
6998
- "description": "Override the API base URL (e.g. for staging)",
6999
- "helpGroup": "GLOBAL",
7000
- "name": "api-url",
6996
+ "data": {
6997
+ "description": "Additional JSON object payload",
6998
+ "name": "data",
7001
6999
  "hasDynamicHelp": false,
7002
7000
  "multiple": false,
7003
7001
  "type": "option"
@@ -7005,7 +7003,7 @@
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
  },
@@ -8150,10 +8150,10 @@
8150
8150
  "update.js"
8151
8151
  ]
8152
8152
  },
8153
- "templates:create": {
8153
+ "team:create": {
8154
8154
  "aliases": [],
8155
8155
  "args": {},
8156
- "description": "Create a message template",
8156
+ "description": "Create a team member",
8157
8157
  "flags": {
8158
8158
  "api-key": {
8159
8159
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8217,78 +8217,62 @@
8217
8217
  "multiple": false,
8218
8218
  "type": "option"
8219
8219
  },
8220
- "channel": {
8221
- "description": "Channel ID",
8222
- "name": "channel",
8220
+ "email": {
8221
+ "description": "Email address",
8222
+ "name": "email",
8223
8223
  "required": true,
8224
8224
  "hasDynamicHelp": false,
8225
8225
  "multiple": false,
8226
8226
  "type": "option"
8227
8227
  },
8228
- "name": {
8229
- "description": "Template name",
8230
- "name": "name",
8228
+ "first-name": {
8229
+ "description": "First name",
8230
+ "name": "first-name",
8231
8231
  "required": true,
8232
8232
  "hasDynamicHelp": false,
8233
8233
  "multiple": false,
8234
8234
  "type": "option"
8235
8235
  },
8236
- "type": {
8237
- "description": "Template type",
8238
- "name": "type",
8239
- "default": "text",
8236
+ "last-name": {
8237
+ "description": "Last name",
8238
+ "name": "last-name",
8239
+ "required": true,
8240
8240
  "hasDynamicHelp": false,
8241
8241
  "multiple": false,
8242
- "options": [
8243
- "text",
8244
- "image",
8245
- "video",
8246
- "document",
8247
- "audio",
8248
- "location",
8249
- "contact",
8250
- "interactive"
8251
- ],
8252
8242
  "type": "option"
8253
8243
  },
8254
- "message": {
8255
- "description": "Template message",
8256
- "name": "message",
8244
+ "password": {
8245
+ "description": "Initial password",
8246
+ "name": "password",
8257
8247
  "required": true,
8258
8248
  "hasDynamicHelp": false,
8259
8249
  "multiple": false,
8260
8250
  "type": "option"
8261
8251
  },
8262
- "color": {
8263
- "description": "Template color as HEX",
8264
- "name": "color",
8252
+ "phone": {
8253
+ "description": "Phone number",
8254
+ "name": "phone",
8265
8255
  "hasDynamicHelp": false,
8266
8256
  "multiple": false,
8267
8257
  "type": "option"
8268
8258
  },
8269
- "status": {
8270
- "description": "Template is active",
8271
- "name": "status",
8272
- "allowNo": true,
8273
- "type": "boolean"
8274
- },
8275
- "whatsapp-language": {
8276
- "description": "WhatsApp template language",
8277
- "name": "whatsapp-language",
8259
+ "company": {
8260
+ "description": "Company name",
8261
+ "name": "company",
8278
8262
  "hasDynamicHelp": false,
8279
8263
  "multiple": false,
8280
8264
  "type": "option"
8281
8265
  },
8282
- "buttons": {
8283
- "description": "Buttons JSON array/object",
8284
- "name": "buttons",
8266
+ "color": {
8267
+ "description": "Color as HEX",
8268
+ "name": "color",
8285
8269
  "hasDynamicHelp": false,
8286
8270
  "multiple": false,
8287
8271
  "type": "option"
8288
8272
  },
8289
- "header-footer": {
8290
- "description": "Header/footer JSON object",
8291
- "name": "header-footer",
8273
+ "folder": {
8274
+ "description": "Object folder ID",
8275
+ "name": "folder",
8292
8276
  "hasDynamicHelp": false,
8293
8277
  "multiple": false,
8294
8278
  "type": "option"
@@ -8303,7 +8287,7 @@
8303
8287
  },
8304
8288
  "hasDynamicHelp": false,
8305
8289
  "hiddenAliases": [],
8306
- "id": "templates:create",
8290
+ "id": "team:create",
8307
8291
  "pluginAlias": "@instantkom/cli",
8308
8292
  "pluginName": "@instantkom/cli",
8309
8293
  "pluginType": "core",
@@ -8313,20 +8297,20 @@
8313
8297
  "relativePath": [
8314
8298
  "dist",
8315
8299
  "commands",
8316
- "templates",
8300
+ "team",
8317
8301
  "create.js"
8318
8302
  ]
8319
8303
  },
8320
- "templates:delete": {
8304
+ "team:delete": {
8321
8305
  "aliases": [],
8322
8306
  "args": {
8323
8307
  "id": {
8324
- "description": "template ID",
8308
+ "description": "Team member ID",
8325
8309
  "name": "id",
8326
8310
  "required": true
8327
8311
  }
8328
8312
  },
8329
- "description": "Delete template",
8313
+ "description": "Delete a team member",
8330
8314
  "flags": {
8331
8315
  "api-key": {
8332
8316
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8393,7 +8377,7 @@
8393
8377
  },
8394
8378
  "hasDynamicHelp": false,
8395
8379
  "hiddenAliases": [],
8396
- "id": "templates:delete",
8380
+ "id": "team:delete",
8397
8381
  "pluginAlias": "@instantkom/cli",
8398
8382
  "pluginName": "@instantkom/cli",
8399
8383
  "pluginType": "core",
@@ -8403,14 +8387,14 @@
8403
8387
  "relativePath": [
8404
8388
  "dist",
8405
8389
  "commands",
8406
- "templates",
8390
+ "team",
8407
8391
  "delete.js"
8408
8392
  ]
8409
8393
  },
8410
- "templates:export": {
8394
+ "team:list": {
8411
8395
  "aliases": [],
8412
8396
  "args": {},
8413
- "description": "Export templates to a file",
8397
+ "description": "List team members",
8414
8398
  "flags": {
8415
8399
  "api-key": {
8416
8400
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8422,14 +8406,17 @@
8422
8406
  "type": "option"
8423
8407
  },
8424
8408
  "format": {
8425
- "description": "Export format",
8409
+ "description": "Output format: text, json, yaml, or table",
8410
+ "helpGroup": "GLOBAL",
8426
8411
  "name": "format",
8427
- "default": "json",
8412
+ "default": "text",
8428
8413
  "hasDynamicHelp": false,
8429
8414
  "multiple": false,
8430
8415
  "options": [
8431
- "csv",
8432
- "json"
8416
+ "text",
8417
+ "json",
8418
+ "yaml",
8419
+ "table"
8433
8420
  ],
8434
8421
  "type": "option"
8435
8422
  },
@@ -8470,26 +8457,11 @@
8470
8457
  "hasDynamicHelp": false,
8471
8458
  "multiple": false,
8472
8459
  "type": "option"
8473
- },
8474
- "file": {
8475
- "description": "Output file path",
8476
- "name": "file",
8477
- "required": true,
8478
- "hasDynamicHelp": false,
8479
- "multiple": false,
8480
- "type": "option"
8481
- },
8482
- "channel": {
8483
- "description": "Filter by channel ID",
8484
- "name": "channel",
8485
- "hasDynamicHelp": false,
8486
- "multiple": false,
8487
- "type": "option"
8488
8460
  }
8489
8461
  },
8490
8462
  "hasDynamicHelp": false,
8491
8463
  "hiddenAliases": [],
8492
- "id": "templates:export",
8464
+ "id": "team:list",
8493
8465
  "pluginAlias": "@instantkom/cli",
8494
8466
  "pluginName": "@instantkom/cli",
8495
8467
  "pluginType": "core",
@@ -8499,20 +8471,14 @@
8499
8471
  "relativePath": [
8500
8472
  "dist",
8501
8473
  "commands",
8502
- "templates",
8503
- "export.js"
8474
+ "team",
8475
+ "list.js"
8504
8476
  ]
8505
8477
  },
8506
- "templates:get": {
8478
+ "templates:create": {
8507
8479
  "aliases": [],
8508
- "args": {
8509
- "id": {
8510
- "description": "Template ID",
8511
- "name": "id",
8512
- "required": true
8513
- }
8514
- },
8515
- "description": "Get a message template by ID",
8480
+ "args": {},
8481
+ "description": "Create a message template",
8516
8482
  "flags": {
8517
8483
  "api-key": {
8518
8484
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8575,28 +8541,117 @@
8575
8541
  "hasDynamicHelp": false,
8576
8542
  "multiple": false,
8577
8543
  "type": "option"
8578
- }
8579
- },
8580
- "hasDynamicHelp": false,
8581
- "hiddenAliases": [],
8582
- "id": "templates:get",
8583
- "pluginAlias": "@instantkom/cli",
8584
- "pluginName": "@instantkom/cli",
8585
- "pluginType": "core",
8586
- "strict": true,
8587
- "enableJsonFlag": false,
8544
+ },
8545
+ "channel": {
8546
+ "description": "Channel ID",
8547
+ "name": "channel",
8548
+ "required": true,
8549
+ "hasDynamicHelp": false,
8550
+ "multiple": false,
8551
+ "type": "option"
8552
+ },
8553
+ "name": {
8554
+ "description": "Template name",
8555
+ "name": "name",
8556
+ "required": true,
8557
+ "hasDynamicHelp": false,
8558
+ "multiple": false,
8559
+ "type": "option"
8560
+ },
8561
+ "type": {
8562
+ "description": "Template type",
8563
+ "name": "type",
8564
+ "default": "text",
8565
+ "hasDynamicHelp": false,
8566
+ "multiple": false,
8567
+ "options": [
8568
+ "text",
8569
+ "image",
8570
+ "video",
8571
+ "document",
8572
+ "audio",
8573
+ "location",
8574
+ "contact",
8575
+ "interactive"
8576
+ ],
8577
+ "type": "option"
8578
+ },
8579
+ "message": {
8580
+ "description": "Template message",
8581
+ "name": "message",
8582
+ "required": true,
8583
+ "hasDynamicHelp": false,
8584
+ "multiple": false,
8585
+ "type": "option"
8586
+ },
8587
+ "color": {
8588
+ "description": "Template color as HEX",
8589
+ "name": "color",
8590
+ "hasDynamicHelp": false,
8591
+ "multiple": false,
8592
+ "type": "option"
8593
+ },
8594
+ "status": {
8595
+ "description": "Template is active",
8596
+ "name": "status",
8597
+ "allowNo": true,
8598
+ "type": "boolean"
8599
+ },
8600
+ "whatsapp-language": {
8601
+ "description": "WhatsApp template language",
8602
+ "name": "whatsapp-language",
8603
+ "hasDynamicHelp": false,
8604
+ "multiple": false,
8605
+ "type": "option"
8606
+ },
8607
+ "buttons": {
8608
+ "description": "Buttons JSON array/object",
8609
+ "name": "buttons",
8610
+ "hasDynamicHelp": false,
8611
+ "multiple": false,
8612
+ "type": "option"
8613
+ },
8614
+ "header-footer": {
8615
+ "description": "Header/footer JSON object",
8616
+ "name": "header-footer",
8617
+ "hasDynamicHelp": false,
8618
+ "multiple": false,
8619
+ "type": "option"
8620
+ },
8621
+ "data": {
8622
+ "description": "Additional JSON object payload",
8623
+ "name": "data",
8624
+ "hasDynamicHelp": false,
8625
+ "multiple": false,
8626
+ "type": "option"
8627
+ }
8628
+ },
8629
+ "hasDynamicHelp": false,
8630
+ "hiddenAliases": [],
8631
+ "id": "templates:create",
8632
+ "pluginAlias": "@instantkom/cli",
8633
+ "pluginName": "@instantkom/cli",
8634
+ "pluginType": "core",
8635
+ "strict": true,
8636
+ "enableJsonFlag": false,
8588
8637
  "isESM": true,
8589
8638
  "relativePath": [
8590
8639
  "dist",
8591
8640
  "commands",
8592
8641
  "templates",
8593
- "get.js"
8642
+ "create.js"
8594
8643
  ]
8595
8644
  },
8596
- "templates:import": {
8645
+ "templates:delete": {
8597
8646
  "aliases": [],
8598
- "args": {},
8599
- "description": "Import templates from JSON",
8647
+ "args": {
8648
+ "id": {
8649
+ "description": "template ID",
8650
+ "name": "id",
8651
+ "required": true
8652
+ }
8653
+ },
8654
+ "description": "Delete template",
8600
8655
  "flags": {
8601
8656
  "api-key": {
8602
8657
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8659,33 +8714,11 @@
8659
8714
  "hasDynamicHelp": false,
8660
8715
  "multiple": false,
8661
8716
  "type": "option"
8662
- },
8663
- "file": {
8664
- "description": "JSON file path",
8665
- "name": "file",
8666
- "required": true,
8667
- "hasDynamicHelp": false,
8668
- "multiple": false,
8669
- "type": "option"
8670
- },
8671
- "channel": {
8672
- "description": "Target channel ID",
8673
- "name": "channel",
8674
- "required": true,
8675
- "hasDynamicHelp": false,
8676
- "multiple": false,
8677
- "type": "option"
8678
- },
8679
- "skip-duplicates": {
8680
- "description": "Skip duplicate templates",
8681
- "name": "skip-duplicates",
8682
- "allowNo": true,
8683
- "type": "boolean"
8684
8717
  }
8685
8718
  },
8686
8719
  "hasDynamicHelp": false,
8687
8720
  "hiddenAliases": [],
8688
- "id": "templates:import",
8721
+ "id": "templates:delete",
8689
8722
  "pluginAlias": "@instantkom/cli",
8690
8723
  "pluginName": "@instantkom/cli",
8691
8724
  "pluginType": "core",
@@ -8696,13 +8729,13 @@
8696
8729
  "dist",
8697
8730
  "commands",
8698
8731
  "templates",
8699
- "import.js"
8732
+ "delete.js"
8700
8733
  ]
8701
8734
  },
8702
- "templates:list": {
8735
+ "templates:export": {
8703
8736
  "aliases": [],
8704
8737
  "args": {},
8705
- "description": "List message templates",
8738
+ "description": "Export templates to a file",
8706
8739
  "flags": {
8707
8740
  "api-key": {
8708
8741
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8714,17 +8747,14 @@
8714
8747
  "type": "option"
8715
8748
  },
8716
8749
  "format": {
8717
- "description": "Output format: text, json, yaml, or table",
8718
- "helpGroup": "GLOBAL",
8750
+ "description": "Export format",
8719
8751
  "name": "format",
8720
- "default": "text",
8752
+ "default": "json",
8721
8753
  "hasDynamicHelp": false,
8722
8754
  "multiple": false,
8723
8755
  "options": [
8724
- "text",
8725
- "json",
8726
- "yaml",
8727
- "table"
8756
+ "csv",
8757
+ "json"
8728
8758
  ],
8729
8759
  "type": "option"
8730
8760
  },
@@ -8766,32 +8796,17 @@
8766
8796
  "multiple": false,
8767
8797
  "type": "option"
8768
8798
  },
8769
- "channel": {
8770
- "description": "Filter by channel ID",
8771
- "name": "channel",
8772
- "hasDynamicHelp": false,
8773
- "multiple": false,
8774
- "type": "option"
8775
- },
8776
- "search": {
8777
- "description": "Search templates by name or content",
8778
- "name": "search",
8779
- "hasDynamicHelp": false,
8780
- "multiple": false,
8781
- "type": "option"
8782
- },
8783
- "page": {
8784
- "description": "Page number",
8785
- "name": "page",
8786
- "default": 1,
8799
+ "file": {
8800
+ "description": "Output file path",
8801
+ "name": "file",
8802
+ "required": true,
8787
8803
  "hasDynamicHelp": false,
8788
8804
  "multiple": false,
8789
8805
  "type": "option"
8790
8806
  },
8791
- "limit": {
8792
- "description": "Items per page",
8793
- "name": "limit",
8794
- "default": 20,
8807
+ "channel": {
8808
+ "description": "Filter by channel ID",
8809
+ "name": "channel",
8795
8810
  "hasDynamicHelp": false,
8796
8811
  "multiple": false,
8797
8812
  "type": "option"
@@ -8799,7 +8814,7 @@
8799
8814
  },
8800
8815
  "hasDynamicHelp": false,
8801
8816
  "hiddenAliases": [],
8802
- "id": "templates:list",
8817
+ "id": "templates:export",
8803
8818
  "pluginAlias": "@instantkom/cli",
8804
8819
  "pluginName": "@instantkom/cli",
8805
8820
  "pluginType": "core",
@@ -8810,10 +8825,10 @@
8810
8825
  "dist",
8811
8826
  "commands",
8812
8827
  "templates",
8813
- "list.js"
8828
+ "export.js"
8814
8829
  ]
8815
8830
  },
8816
- "templates:render": {
8831
+ "templates:get": {
8817
8832
  "aliases": [],
8818
8833
  "args": {
8819
8834
  "id": {
@@ -8822,7 +8837,7 @@
8822
8837
  "required": true
8823
8838
  }
8824
8839
  },
8825
- "description": "Render a message template locally",
8840
+ "description": "Get a message template by ID",
8826
8841
  "flags": {
8827
8842
  "api-key": {
8828
8843
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8885,18 +8900,11 @@
8885
8900
  "hasDynamicHelp": false,
8886
8901
  "multiple": false,
8887
8902
  "type": "option"
8888
- },
8889
- "vars": {
8890
- "description": "Template variable as key=value; may be repeated",
8891
- "name": "vars",
8892
- "hasDynamicHelp": false,
8893
- "multiple": true,
8894
- "type": "option"
8895
8903
  }
8896
8904
  },
8897
8905
  "hasDynamicHelp": false,
8898
8906
  "hiddenAliases": [],
8899
- "id": "templates:render",
8907
+ "id": "templates:get",
8900
8908
  "pluginAlias": "@instantkom/cli",
8901
8909
  "pluginName": "@instantkom/cli",
8902
8910
  "pluginType": "core",
@@ -8907,19 +8915,13 @@
8907
8915
  "dist",
8908
8916
  "commands",
8909
8917
  "templates",
8910
- "render.js"
8918
+ "get.js"
8911
8919
  ]
8912
8920
  },
8913
- "templates:update": {
8921
+ "templates:import": {
8914
8922
  "aliases": [],
8915
- "args": {
8916
- "id": {
8917
- "description": "Template ID",
8918
- "name": "id",
8919
- "required": true
8920
- }
8921
- },
8922
- "description": "Update a message template",
8923
+ "args": {},
8924
+ "description": "Import templates from JSON",
8923
8925
  "flags": {
8924
8926
  "api-key": {
8925
8927
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8983,88 +8985,32 @@
8983
8985
  "multiple": false,
8984
8986
  "type": "option"
8985
8987
  },
8986
- "name": {
8987
- "description": "Template name",
8988
- "name": "name",
8989
- "hasDynamicHelp": false,
8990
- "multiple": false,
8991
- "type": "option"
8992
- },
8993
- "type": {
8994
- "description": "Template type",
8995
- "name": "type",
8996
- "hasDynamicHelp": false,
8997
- "multiple": false,
8998
- "options": [
8999
- "text",
9000
- "image",
9001
- "video",
9002
- "document",
9003
- "audio",
9004
- "location",
9005
- "contact",
9006
- "interactive"
9007
- ],
9008
- "type": "option"
9009
- },
9010
- "message": {
9011
- "description": "Template message",
9012
- "name": "message",
8988
+ "file": {
8989
+ "description": "JSON file path",
8990
+ "name": "file",
8991
+ "required": true,
9013
8992
  "hasDynamicHelp": false,
9014
8993
  "multiple": false,
9015
8994
  "type": "option"
9016
8995
  },
9017
- "color": {
9018
- "description": "Template color as HEX",
9019
- "name": "color",
8996
+ "channel": {
8997
+ "description": "Target channel ID",
8998
+ "name": "channel",
8999
+ "required": true,
9020
9000
  "hasDynamicHelp": false,
9021
9001
  "multiple": false,
9022
9002
  "type": "option"
9023
9003
  },
9024
- "status": {
9025
- "description": "Template is active",
9026
- "name": "status",
9004
+ "skip-duplicates": {
9005
+ "description": "Skip duplicate templates",
9006
+ "name": "skip-duplicates",
9027
9007
  "allowNo": true,
9028
9008
  "type": "boolean"
9029
- },
9030
- "remove-media": {
9031
- "description": "Remove existing media",
9032
- "name": "remove-media",
9033
- "allowNo": false,
9034
- "type": "boolean"
9035
- },
9036
- "whatsapp-language": {
9037
- "description": "WhatsApp template language",
9038
- "name": "whatsapp-language",
9039
- "hasDynamicHelp": false,
9040
- "multiple": false,
9041
- "type": "option"
9042
- },
9043
- "buttons": {
9044
- "description": "Buttons JSON array/object",
9045
- "name": "buttons",
9046
- "hasDynamicHelp": false,
9047
- "multiple": false,
9048
- "type": "option"
9049
- },
9050
- "header-footer": {
9051
- "description": "Header/footer JSON object",
9052
- "name": "header-footer",
9053
- "hasDynamicHelp": false,
9054
- "multiple": false,
9055
- "type": "option"
9056
- },
9057
- "data": {
9058
- "description": "Additional JSON object payload",
9059
- "name": "data",
9060
- "hasDynamicHelp": false,
9061
- "multiple": false,
9062
- "type": "option"
9063
9009
  }
9064
9010
  },
9065
9011
  "hasDynamicHelp": false,
9066
9012
  "hiddenAliases": [],
9067
- "id": "templates:update",
9013
+ "id": "templates:import",
9068
9014
  "pluginAlias": "@instantkom/cli",
9069
9015
  "pluginName": "@instantkom/cli",
9070
9016
  "pluginType": "core",
@@ -9075,13 +9021,13 @@
9075
9021
  "dist",
9076
9022
  "commands",
9077
9023
  "templates",
9078
- "update.js"
9024
+ "import.js"
9079
9025
  ]
9080
9026
  },
9081
- "templates:validate-import": {
9027
+ "templates:list": {
9082
9028
  "aliases": [],
9083
9029
  "args": {},
9084
- "description": "Validate templates import JSON",
9030
+ "description": "List message templates",
9085
9031
  "flags": {
9086
9032
  "api-key": {
9087
9033
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9145,18 +9091,32 @@
9145
9091
  "multiple": false,
9146
9092
  "type": "option"
9147
9093
  },
9148
- "file": {
9149
- "description": "JSON file path",
9150
- "name": "file",
9151
- "required": true,
9094
+ "channel": {
9095
+ "description": "Filter by channel ID",
9096
+ "name": "channel",
9152
9097
  "hasDynamicHelp": false,
9153
9098
  "multiple": false,
9154
9099
  "type": "option"
9155
9100
  },
9156
- "channel": {
9157
- "description": "Target channel ID",
9158
- "name": "channel",
9159
- "required": true,
9101
+ "search": {
9102
+ "description": "Search templates by name or content",
9103
+ "name": "search",
9104
+ "hasDynamicHelp": false,
9105
+ "multiple": false,
9106
+ "type": "option"
9107
+ },
9108
+ "page": {
9109
+ "description": "Page number",
9110
+ "name": "page",
9111
+ "default": 1,
9112
+ "hasDynamicHelp": false,
9113
+ "multiple": false,
9114
+ "type": "option"
9115
+ },
9116
+ "limit": {
9117
+ "description": "Items per page",
9118
+ "name": "limit",
9119
+ "default": 20,
9160
9120
  "hasDynamicHelp": false,
9161
9121
  "multiple": false,
9162
9122
  "type": "option"
@@ -9164,7 +9124,7 @@
9164
9124
  },
9165
9125
  "hasDynamicHelp": false,
9166
9126
  "hiddenAliases": [],
9167
- "id": "templates:validate-import",
9127
+ "id": "templates:list",
9168
9128
  "pluginAlias": "@instantkom/cli",
9169
9129
  "pluginName": "@instantkom/cli",
9170
9130
  "pluginType": "core",
@@ -9175,13 +9135,19 @@
9175
9135
  "dist",
9176
9136
  "commands",
9177
9137
  "templates",
9178
- "validate-import.js"
9138
+ "list.js"
9179
9139
  ]
9180
9140
  },
9181
- "tickets:create": {
9141
+ "templates:render": {
9182
9142
  "aliases": [],
9183
- "args": {},
9184
- "description": "Create a ticket",
9143
+ "args": {
9144
+ "id": {
9145
+ "description": "Template ID",
9146
+ "name": "id",
9147
+ "required": true
9148
+ }
9149
+ },
9150
+ "description": "Render a message template locally",
9185
9151
  "flags": {
9186
9152
  "api-key": {
9187
9153
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9245,68 +9211,17 @@
9245
9211
  "multiple": false,
9246
9212
  "type": "option"
9247
9213
  },
9248
- "channel": {
9249
- "description": "Channel ID",
9250
- "name": "channel",
9251
- "required": true,
9252
- "hasDynamicHelp": false,
9253
- "multiple": false,
9254
- "type": "option"
9255
- },
9256
- "subject": {
9257
- "description": "Ticket subject",
9258
- "name": "subject",
9259
- "required": true,
9260
- "hasDynamicHelp": false,
9261
- "multiple": false,
9262
- "type": "option"
9263
- },
9264
- "recipient": {
9265
- "description": "Existing recipient ID",
9266
- "name": "recipient",
9267
- "hasDynamicHelp": false,
9268
- "multiple": false,
9269
- "type": "option"
9270
- },
9271
- "email": {
9272
- "description": "Customer email",
9273
- "name": "email",
9274
- "hasDynamicHelp": false,
9275
- "multiple": false,
9276
- "type": "option"
9277
- },
9278
- "name": {
9279
- "description": "Customer name",
9280
- "name": "name",
9281
- "hasDynamicHelp": false,
9282
- "multiple": false,
9283
- "type": "option"
9284
- },
9285
- "priority": {
9286
- "description": "Ticket priority",
9287
- "name": "priority",
9288
- "hasDynamicHelp": false,
9289
- "multiple": false,
9290
- "type": "option"
9291
- },
9292
- "source": {
9293
- "description": "Ticket source",
9294
- "name": "source",
9295
- "hasDynamicHelp": false,
9296
- "multiple": false,
9297
- "type": "option"
9298
- },
9299
- "data": {
9300
- "description": "Additional JSON object payload",
9301
- "name": "data",
9214
+ "vars": {
9215
+ "description": "Template variable as key=value; may be repeated",
9216
+ "name": "vars",
9302
9217
  "hasDynamicHelp": false,
9303
- "multiple": false,
9218
+ "multiple": true,
9304
9219
  "type": "option"
9305
9220
  }
9306
9221
  },
9307
9222
  "hasDynamicHelp": false,
9308
9223
  "hiddenAliases": [],
9309
- "id": "tickets:create",
9224
+ "id": "templates:render",
9310
9225
  "pluginAlias": "@instantkom/cli",
9311
9226
  "pluginName": "@instantkom/cli",
9312
9227
  "pluginType": "core",
@@ -9316,20 +9231,20 @@
9316
9231
  "relativePath": [
9317
9232
  "dist",
9318
9233
  "commands",
9319
- "tickets",
9320
- "create.js"
9234
+ "templates",
9235
+ "render.js"
9321
9236
  ]
9322
9237
  },
9323
- "tickets:delete": {
9238
+ "templates:update": {
9324
9239
  "aliases": [],
9325
9240
  "args": {
9326
9241
  "id": {
9327
- "description": "Ticket ID",
9242
+ "description": "Template ID",
9328
9243
  "name": "id",
9329
9244
  "required": true
9330
9245
  }
9331
9246
  },
9332
- "description": "Delete a ticket",
9247
+ "description": "Update a message template",
9333
9248
  "flags": {
9334
9249
  "api-key": {
9335
9250
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9393,10 +9308,80 @@
9393
9308
  "multiple": false,
9394
9309
  "type": "option"
9395
9310
  },
9396
- "channel": {
9397
- "description": "Channel ID",
9398
- "name": "channel",
9399
- "required": true,
9311
+ "name": {
9312
+ "description": "Template name",
9313
+ "name": "name",
9314
+ "hasDynamicHelp": false,
9315
+ "multiple": false,
9316
+ "type": "option"
9317
+ },
9318
+ "type": {
9319
+ "description": "Template type",
9320
+ "name": "type",
9321
+ "hasDynamicHelp": false,
9322
+ "multiple": false,
9323
+ "options": [
9324
+ "text",
9325
+ "image",
9326
+ "video",
9327
+ "document",
9328
+ "audio",
9329
+ "location",
9330
+ "contact",
9331
+ "interactive"
9332
+ ],
9333
+ "type": "option"
9334
+ },
9335
+ "message": {
9336
+ "description": "Template message",
9337
+ "name": "message",
9338
+ "hasDynamicHelp": false,
9339
+ "multiple": false,
9340
+ "type": "option"
9341
+ },
9342
+ "color": {
9343
+ "description": "Template color as HEX",
9344
+ "name": "color",
9345
+ "hasDynamicHelp": false,
9346
+ "multiple": false,
9347
+ "type": "option"
9348
+ },
9349
+ "status": {
9350
+ "description": "Template is active",
9351
+ "name": "status",
9352
+ "allowNo": true,
9353
+ "type": "boolean"
9354
+ },
9355
+ "remove-media": {
9356
+ "description": "Remove existing media",
9357
+ "name": "remove-media",
9358
+ "allowNo": false,
9359
+ "type": "boolean"
9360
+ },
9361
+ "whatsapp-language": {
9362
+ "description": "WhatsApp template language",
9363
+ "name": "whatsapp-language",
9364
+ "hasDynamicHelp": false,
9365
+ "multiple": false,
9366
+ "type": "option"
9367
+ },
9368
+ "buttons": {
9369
+ "description": "Buttons JSON array/object",
9370
+ "name": "buttons",
9371
+ "hasDynamicHelp": false,
9372
+ "multiple": false,
9373
+ "type": "option"
9374
+ },
9375
+ "header-footer": {
9376
+ "description": "Header/footer JSON object",
9377
+ "name": "header-footer",
9378
+ "hasDynamicHelp": false,
9379
+ "multiple": false,
9380
+ "type": "option"
9381
+ },
9382
+ "data": {
9383
+ "description": "Additional JSON object payload",
9384
+ "name": "data",
9400
9385
  "hasDynamicHelp": false,
9401
9386
  "multiple": false,
9402
9387
  "type": "option"
@@ -9404,7 +9389,7 @@
9404
9389
  },
9405
9390
  "hasDynamicHelp": false,
9406
9391
  "hiddenAliases": [],
9407
- "id": "tickets:delete",
9392
+ "id": "templates:update",
9408
9393
  "pluginAlias": "@instantkom/cli",
9409
9394
  "pluginName": "@instantkom/cli",
9410
9395
  "pluginType": "core",
@@ -9414,20 +9399,14 @@
9414
9399
  "relativePath": [
9415
9400
  "dist",
9416
9401
  "commands",
9417
- "tickets",
9418
- "delete.js"
9402
+ "templates",
9403
+ "update.js"
9419
9404
  ]
9420
9405
  },
9421
- "tickets:get": {
9406
+ "templates:validate-import": {
9422
9407
  "aliases": [],
9423
- "args": {
9424
- "id": {
9425
- "description": "Ticket ID",
9426
- "name": "id",
9427
- "required": true
9428
- }
9429
- },
9430
- "description": "Get a ticket by ID",
9408
+ "args": {},
9409
+ "description": "Validate templates import JSON",
9431
9410
  "flags": {
9432
9411
  "api-key": {
9433
9412
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9491,8 +9470,16 @@
9491
9470
  "multiple": false,
9492
9471
  "type": "option"
9493
9472
  },
9473
+ "file": {
9474
+ "description": "JSON file path",
9475
+ "name": "file",
9476
+ "required": true,
9477
+ "hasDynamicHelp": false,
9478
+ "multiple": false,
9479
+ "type": "option"
9480
+ },
9494
9481
  "channel": {
9495
- "description": "Channel ID",
9482
+ "description": "Target channel ID",
9496
9483
  "name": "channel",
9497
9484
  "required": true,
9498
9485
  "hasDynamicHelp": false,
@@ -9502,7 +9489,7 @@
9502
9489
  },
9503
9490
  "hasDynamicHelp": false,
9504
9491
  "hiddenAliases": [],
9505
- "id": "tickets:get",
9492
+ "id": "templates:validate-import",
9506
9493
  "pluginAlias": "@instantkom/cli",
9507
9494
  "pluginName": "@instantkom/cli",
9508
9495
  "pluginType": "core",
@@ -9512,14 +9499,14 @@
9512
9499
  "relativePath": [
9513
9500
  "dist",
9514
9501
  "commands",
9515
- "tickets",
9516
- "get.js"
9502
+ "templates",
9503
+ "validate-import.js"
9517
9504
  ]
9518
9505
  },
9519
- "tickets:list": {
9506
+ "tickets:create": {
9520
9507
  "aliases": [],
9521
9508
  "args": {},
9522
- "description": "List tickets for a channel",
9509
+ "description": "Create a ticket",
9523
9510
  "flags": {
9524
9511
  "api-key": {
9525
9512
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9591,18 +9578,52 @@
9591
9578
  "multiple": false,
9592
9579
  "type": "option"
9593
9580
  },
9594
- "limit": {
9595
- "description": "Maximum tickets to return",
9596
- "name": "limit",
9597
- "default": 500,
9581
+ "subject": {
9582
+ "description": "Ticket subject",
9583
+ "name": "subject",
9584
+ "required": true,
9598
9585
  "hasDynamicHelp": false,
9599
9586
  "multiple": false,
9600
9587
  "type": "option"
9601
9588
  },
9602
- "offset": {
9603
- "description": "Number of tickets to skip",
9604
- "name": "offset",
9605
- "default": 0,
9589
+ "recipient": {
9590
+ "description": "Existing recipient ID",
9591
+ "name": "recipient",
9592
+ "hasDynamicHelp": false,
9593
+ "multiple": false,
9594
+ "type": "option"
9595
+ },
9596
+ "email": {
9597
+ "description": "Customer email",
9598
+ "name": "email",
9599
+ "hasDynamicHelp": false,
9600
+ "multiple": false,
9601
+ "type": "option"
9602
+ },
9603
+ "name": {
9604
+ "description": "Customer name",
9605
+ "name": "name",
9606
+ "hasDynamicHelp": false,
9607
+ "multiple": false,
9608
+ "type": "option"
9609
+ },
9610
+ "priority": {
9611
+ "description": "Ticket priority",
9612
+ "name": "priority",
9613
+ "hasDynamicHelp": false,
9614
+ "multiple": false,
9615
+ "type": "option"
9616
+ },
9617
+ "source": {
9618
+ "description": "Ticket source",
9619
+ "name": "source",
9620
+ "hasDynamicHelp": false,
9621
+ "multiple": false,
9622
+ "type": "option"
9623
+ },
9624
+ "data": {
9625
+ "description": "Additional JSON object payload",
9626
+ "name": "data",
9606
9627
  "hasDynamicHelp": false,
9607
9628
  "multiple": false,
9608
9629
  "type": "option"
@@ -9610,7 +9631,7 @@
9610
9631
  },
9611
9632
  "hasDynamicHelp": false,
9612
9633
  "hiddenAliases": [],
9613
- "id": "tickets:list",
9634
+ "id": "tickets:create",
9614
9635
  "pluginAlias": "@instantkom/cli",
9615
9636
  "pluginName": "@instantkom/cli",
9616
9637
  "pluginType": "core",
@@ -9621,10 +9642,10 @@
9621
9642
  "dist",
9622
9643
  "commands",
9623
9644
  "tickets",
9624
- "list.js"
9645
+ "create.js"
9625
9646
  ]
9626
9647
  },
9627
- "tickets:reply": {
9648
+ "tickets:delete": {
9628
9649
  "aliases": [],
9629
9650
  "args": {
9630
9651
  "id": {
@@ -9633,7 +9654,7 @@
9633
9654
  "required": true
9634
9655
  }
9635
9656
  },
9636
- "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
9657
+ "description": "Delete a ticket",
9637
9658
  "flags": {
9638
9659
  "api-key": {
9639
9660
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9697,24 +9718,18 @@
9697
9718
  "multiple": false,
9698
9719
  "type": "option"
9699
9720
  },
9700
- "message": {
9701
- "description": "Reply body (raw text, no salutation or sign-off)",
9702
- "name": "message",
9721
+ "channel": {
9722
+ "description": "Channel ID",
9723
+ "name": "channel",
9703
9724
  "required": true,
9704
9725
  "hasDynamicHelp": false,
9705
9726
  "multiple": false,
9706
9727
  "type": "option"
9707
- },
9708
- "close": {
9709
- "description": "Close the ticket after sending the reply",
9710
- "name": "close",
9711
- "allowNo": false,
9712
- "type": "boolean"
9713
9728
  }
9714
9729
  },
9715
9730
  "hasDynamicHelp": false,
9716
9731
  "hiddenAliases": [],
9717
- "id": "tickets:reply",
9732
+ "id": "tickets:delete",
9718
9733
  "pluginAlias": "@instantkom/cli",
9719
9734
  "pluginName": "@instantkom/cli",
9720
9735
  "pluginType": "core",
@@ -9725,10 +9740,10 @@
9725
9740
  "dist",
9726
9741
  "commands",
9727
9742
  "tickets",
9728
- "reply.js"
9743
+ "delete.js"
9729
9744
  ]
9730
9745
  },
9731
- "tickets:update": {
9746
+ "tickets:get": {
9732
9747
  "aliases": [],
9733
9748
  "args": {
9734
9749
  "id": {
@@ -9737,7 +9752,7 @@
9737
9752
  "required": true
9738
9753
  }
9739
9754
  },
9740
- "description": "Update a ticket",
9755
+ "description": "Get a ticket by ID",
9741
9756
  "flags": {
9742
9757
  "api-key": {
9743
9758
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9808,52 +9823,11 @@
9808
9823
  "hasDynamicHelp": false,
9809
9824
  "multiple": false,
9810
9825
  "type": "option"
9811
- },
9812
- "subject": {
9813
- "description": "Ticket subject",
9814
- "name": "subject",
9815
- "hasDynamicHelp": false,
9816
- "multiple": false,
9817
- "type": "option"
9818
- },
9819
- "priority": {
9820
- "description": "Ticket priority",
9821
- "name": "priority",
9822
- "hasDynamicHelp": false,
9823
- "multiple": false,
9824
- "type": "option"
9825
- },
9826
- "status": {
9827
- "description": "Ticket status",
9828
- "name": "status",
9829
- "hasDynamicHelp": false,
9830
- "multiple": false,
9831
- "type": "option"
9832
- },
9833
- "assigned-to": {
9834
- "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
9835
- "name": "assigned-to",
9836
- "hasDynamicHelp": false,
9837
- "multiple": false,
9838
- "type": "option"
9839
- },
9840
- "notify": {
9841
- "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
9842
- "name": "notify",
9843
- "allowNo": true,
9844
- "type": "boolean"
9845
- },
9846
- "data": {
9847
- "description": "Additional JSON object payload",
9848
- "name": "data",
9849
- "hasDynamicHelp": false,
9850
- "multiple": false,
9851
- "type": "option"
9852
9826
  }
9853
9827
  },
9854
9828
  "hasDynamicHelp": false,
9855
9829
  "hiddenAliases": [],
9856
- "id": "tickets:update",
9830
+ "id": "tickets:get",
9857
9831
  "pluginAlias": "@instantkom/cli",
9858
9832
  "pluginName": "@instantkom/cli",
9859
9833
  "pluginType": "core",
@@ -9864,13 +9838,13 @@
9864
9838
  "dist",
9865
9839
  "commands",
9866
9840
  "tickets",
9867
- "update.js"
9841
+ "get.js"
9868
9842
  ]
9869
9843
  },
9870
- "webhooks:add": {
9844
+ "tickets:list": {
9871
9845
  "aliases": [],
9872
9846
  "args": {},
9873
- "description": "Add a webhook subscription",
9847
+ "description": "List tickets for a channel",
9874
9848
  "flags": {
9875
9849
  "api-key": {
9876
9850
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9934,25 +9908,26 @@
9934
9908
  "multiple": false,
9935
9909
  "type": "option"
9936
9910
  },
9937
- "event": {
9938
- "description": "Webhook event to subscribe to",
9939
- "name": "event",
9911
+ "channel": {
9912
+ "description": "Channel ID",
9913
+ "name": "channel",
9940
9914
  "required": true,
9941
9915
  "hasDynamicHelp": false,
9942
9916
  "multiple": false,
9943
- "options": [
9944
- "new_contact",
9945
- "new_message",
9946
- "broadcast_sent",
9947
- "contact_updated",
9948
- "contact_opted_out"
9949
- ],
9950
9917
  "type": "option"
9951
9918
  },
9952
- "url": {
9953
- "description": "HTTPS target URL that receives webhook POSTs",
9954
- "name": "url",
9955
- "required": true,
9919
+ "limit": {
9920
+ "description": "Maximum tickets to return",
9921
+ "name": "limit",
9922
+ "default": 500,
9923
+ "hasDynamicHelp": false,
9924
+ "multiple": false,
9925
+ "type": "option"
9926
+ },
9927
+ "offset": {
9928
+ "description": "Number of tickets to skip",
9929
+ "name": "offset",
9930
+ "default": 0,
9956
9931
  "hasDynamicHelp": false,
9957
9932
  "multiple": false,
9958
9933
  "type": "option"
@@ -9960,7 +9935,7 @@
9960
9935
  },
9961
9936
  "hasDynamicHelp": false,
9962
9937
  "hiddenAliases": [],
9963
- "id": "webhooks:add",
9938
+ "id": "tickets:list",
9964
9939
  "pluginAlias": "@instantkom/cli",
9965
9940
  "pluginName": "@instantkom/cli",
9966
9941
  "pluginType": "core",
@@ -9970,14 +9945,20 @@
9970
9945
  "relativePath": [
9971
9946
  "dist",
9972
9947
  "commands",
9973
- "webhooks",
9974
- "add.js"
9948
+ "tickets",
9949
+ "list.js"
9975
9950
  ]
9976
9951
  },
9977
- "webhooks:events": {
9952
+ "tickets:reply": {
9978
9953
  "aliases": [],
9979
- "args": {},
9980
- "description": "List supported webhook event names",
9954
+ "args": {
9955
+ "id": {
9956
+ "description": "Ticket ID",
9957
+ "name": "id",
9958
+ "required": true
9959
+ }
9960
+ },
9961
+ "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
9981
9962
  "flags": {
9982
9963
  "api-key": {
9983
9964
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10040,11 +10021,25 @@
10040
10021
  "hasDynamicHelp": false,
10041
10022
  "multiple": false,
10042
10023
  "type": "option"
10024
+ },
10025
+ "message": {
10026
+ "description": "Reply body (raw text, no salutation or sign-off)",
10027
+ "name": "message",
10028
+ "required": true,
10029
+ "hasDynamicHelp": false,
10030
+ "multiple": false,
10031
+ "type": "option"
10032
+ },
10033
+ "close": {
10034
+ "description": "Close the ticket after sending the reply",
10035
+ "name": "close",
10036
+ "allowNo": false,
10037
+ "type": "boolean"
10043
10038
  }
10044
10039
  },
10045
10040
  "hasDynamicHelp": false,
10046
10041
  "hiddenAliases": [],
10047
- "id": "webhooks:events",
10042
+ "id": "tickets:reply",
10048
10043
  "pluginAlias": "@instantkom/cli",
10049
10044
  "pluginName": "@instantkom/cli",
10050
10045
  "pluginType": "core",
@@ -10054,14 +10049,20 @@
10054
10049
  "relativePath": [
10055
10050
  "dist",
10056
10051
  "commands",
10057
- "webhooks",
10058
- "events.js"
10052
+ "tickets",
10053
+ "reply.js"
10059
10054
  ]
10060
10055
  },
10061
- "webhooks:list": {
10056
+ "tickets:update": {
10062
10057
  "aliases": [],
10063
- "args": {},
10064
- "description": "List webhook subscriptions",
10058
+ "args": {
10059
+ "id": {
10060
+ "description": "Ticket ID",
10061
+ "name": "id",
10062
+ "required": true
10063
+ }
10064
+ },
10065
+ "description": "Update a ticket",
10065
10066
  "flags": {
10066
10067
  "api-key": {
10067
10068
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10124,11 +10125,60 @@
10124
10125
  "hasDynamicHelp": false,
10125
10126
  "multiple": false,
10126
10127
  "type": "option"
10128
+ },
10129
+ "channel": {
10130
+ "description": "Channel ID",
10131
+ "name": "channel",
10132
+ "required": true,
10133
+ "hasDynamicHelp": false,
10134
+ "multiple": false,
10135
+ "type": "option"
10136
+ },
10137
+ "subject": {
10138
+ "description": "Ticket subject",
10139
+ "name": "subject",
10140
+ "hasDynamicHelp": false,
10141
+ "multiple": false,
10142
+ "type": "option"
10143
+ },
10144
+ "priority": {
10145
+ "description": "Ticket priority",
10146
+ "name": "priority",
10147
+ "hasDynamicHelp": false,
10148
+ "multiple": false,
10149
+ "type": "option"
10150
+ },
10151
+ "status": {
10152
+ "description": "Ticket status",
10153
+ "name": "status",
10154
+ "hasDynamicHelp": false,
10155
+ "multiple": false,
10156
+ "type": "option"
10157
+ },
10158
+ "assigned-to": {
10159
+ "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
10160
+ "name": "assigned-to",
10161
+ "hasDynamicHelp": false,
10162
+ "multiple": false,
10163
+ "type": "option"
10164
+ },
10165
+ "notify": {
10166
+ "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
10167
+ "name": "notify",
10168
+ "allowNo": true,
10169
+ "type": "boolean"
10170
+ },
10171
+ "data": {
10172
+ "description": "Additional JSON object payload",
10173
+ "name": "data",
10174
+ "hasDynamicHelp": false,
10175
+ "multiple": false,
10176
+ "type": "option"
10127
10177
  }
10128
10178
  },
10129
10179
  "hasDynamicHelp": false,
10130
10180
  "hiddenAliases": [],
10131
- "id": "webhooks:list",
10181
+ "id": "tickets:update",
10132
10182
  "pluginAlias": "@instantkom/cli",
10133
10183
  "pluginName": "@instantkom/cli",
10134
10184
  "pluginType": "core",
@@ -10138,14 +10188,14 @@
10138
10188
  "relativePath": [
10139
10189
  "dist",
10140
10190
  "commands",
10141
- "webhooks",
10142
- "list.js"
10191
+ "tickets",
10192
+ "update.js"
10143
10193
  ]
10144
10194
  },
10145
- "webhooks:logs": {
10195
+ "webhooks:add": {
10146
10196
  "aliases": [],
10147
10197
  "args": {},
10148
- "description": "Explain webhook log availability",
10198
+ "description": "Add a webhook subscription",
10149
10199
  "flags": {
10150
10200
  "api-key": {
10151
10201
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10208,11 +10258,34 @@
10208
10258
  "hasDynamicHelp": false,
10209
10259
  "multiple": false,
10210
10260
  "type": "option"
10261
+ },
10262
+ "event": {
10263
+ "description": "Webhook event to subscribe to",
10264
+ "name": "event",
10265
+ "required": true,
10266
+ "hasDynamicHelp": false,
10267
+ "multiple": false,
10268
+ "options": [
10269
+ "new_contact",
10270
+ "new_message",
10271
+ "broadcast_sent",
10272
+ "contact_updated",
10273
+ "contact_opted_out"
10274
+ ],
10275
+ "type": "option"
10276
+ },
10277
+ "url": {
10278
+ "description": "HTTPS target URL that receives webhook POSTs",
10279
+ "name": "url",
10280
+ "required": true,
10281
+ "hasDynamicHelp": false,
10282
+ "multiple": false,
10283
+ "type": "option"
10211
10284
  }
10212
10285
  },
10213
10286
  "hasDynamicHelp": false,
10214
10287
  "hiddenAliases": [],
10215
- "id": "webhooks:logs",
10288
+ "id": "webhooks:add",
10216
10289
  "pluginAlias": "@instantkom/cli",
10217
10290
  "pluginName": "@instantkom/cli",
10218
10291
  "pluginType": "core",
@@ -10223,19 +10296,13 @@
10223
10296
  "dist",
10224
10297
  "commands",
10225
10298
  "webhooks",
10226
- "logs.js"
10299
+ "add.js"
10227
10300
  ]
10228
10301
  },
10229
- "webhooks:remove": {
10302
+ "webhooks:events": {
10230
10303
  "aliases": [],
10231
- "args": {
10232
- "id": {
10233
- "description": "Webhook subscription ID",
10234
- "name": "id",
10235
- "required": true
10236
- }
10237
- },
10238
- "description": "Remove a webhook subscription",
10304
+ "args": {},
10305
+ "description": "List supported webhook event names",
10239
10306
  "flags": {
10240
10307
  "api-key": {
10241
10308
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10302,7 +10369,7 @@
10302
10369
  },
10303
10370
  "hasDynamicHelp": false,
10304
10371
  "hiddenAliases": [],
10305
- "id": "webhooks:remove",
10372
+ "id": "webhooks:events",
10306
10373
  "pluginAlias": "@instantkom/cli",
10307
10374
  "pluginName": "@instantkom/cli",
10308
10375
  "pluginType": "core",
@@ -10313,13 +10380,13 @@
10313
10380
  "dist",
10314
10381
  "commands",
10315
10382
  "webhooks",
10316
- "remove.js"
10383
+ "events.js"
10317
10384
  ]
10318
10385
  },
10319
- "webhooks:test": {
10386
+ "webhooks:list": {
10320
10387
  "aliases": [],
10321
10388
  "args": {},
10322
- "description": "Send a test webhook payload to a URL",
10389
+ "description": "List webhook subscriptions",
10323
10390
  "flags": {
10324
10391
  "api-key": {
10325
10392
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10382,34 +10449,11 @@
10382
10449
  "hasDynamicHelp": false,
10383
10450
  "multiple": false,
10384
10451
  "type": "option"
10385
- },
10386
- "url": {
10387
- "description": "Webhook URL to call",
10388
- "name": "url",
10389
- "required": true,
10390
- "hasDynamicHelp": false,
10391
- "multiple": false,
10392
- "type": "option"
10393
- },
10394
- "event": {
10395
- "description": "Event name",
10396
- "name": "event",
10397
- "default": "cli.test",
10398
- "hasDynamicHelp": false,
10399
- "multiple": false,
10400
- "type": "option"
10401
- },
10402
- "payload": {
10403
- "description": "Payload JSON",
10404
- "name": "payload",
10405
- "hasDynamicHelp": false,
10406
- "multiple": false,
10407
- "type": "option"
10408
10452
  }
10409
10453
  },
10410
10454
  "hasDynamicHelp": false,
10411
10455
  "hiddenAliases": [],
10412
- "id": "webhooks:test",
10456
+ "id": "webhooks:list",
10413
10457
  "pluginAlias": "@instantkom/cli",
10414
10458
  "pluginName": "@instantkom/cli",
10415
10459
  "pluginType": "core",
@@ -10420,13 +10464,13 @@
10420
10464
  "dist",
10421
10465
  "commands",
10422
10466
  "webhooks",
10423
- "test.js"
10467
+ "list.js"
10424
10468
  ]
10425
10469
  },
10426
- "team:create": {
10470
+ "webhooks:logs": {
10427
10471
  "aliases": [],
10428
10472
  "args": {},
10429
- "description": "Create a team member",
10473
+ "description": "Explain webhook log availability",
10430
10474
  "flags": {
10431
10475
  "api-key": {
10432
10476
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10489,78 +10533,11 @@
10489
10533
  "hasDynamicHelp": false,
10490
10534
  "multiple": false,
10491
10535
  "type": "option"
10492
- },
10493
- "email": {
10494
- "description": "Email address",
10495
- "name": "email",
10496
- "required": true,
10497
- "hasDynamicHelp": false,
10498
- "multiple": false,
10499
- "type": "option"
10500
- },
10501
- "first-name": {
10502
- "description": "First name",
10503
- "name": "first-name",
10504
- "required": true,
10505
- "hasDynamicHelp": false,
10506
- "multiple": false,
10507
- "type": "option"
10508
- },
10509
- "last-name": {
10510
- "description": "Last name",
10511
- "name": "last-name",
10512
- "required": true,
10513
- "hasDynamicHelp": false,
10514
- "multiple": false,
10515
- "type": "option"
10516
- },
10517
- "password": {
10518
- "description": "Initial password",
10519
- "name": "password",
10520
- "required": true,
10521
- "hasDynamicHelp": false,
10522
- "multiple": false,
10523
- "type": "option"
10524
- },
10525
- "phone": {
10526
- "description": "Phone number",
10527
- "name": "phone",
10528
- "hasDynamicHelp": false,
10529
- "multiple": false,
10530
- "type": "option"
10531
- },
10532
- "company": {
10533
- "description": "Company name",
10534
- "name": "company",
10535
- "hasDynamicHelp": false,
10536
- "multiple": false,
10537
- "type": "option"
10538
- },
10539
- "color": {
10540
- "description": "Color as HEX",
10541
- "name": "color",
10542
- "hasDynamicHelp": false,
10543
- "multiple": false,
10544
- "type": "option"
10545
- },
10546
- "folder": {
10547
- "description": "Object folder ID",
10548
- "name": "folder",
10549
- "hasDynamicHelp": false,
10550
- "multiple": false,
10551
- "type": "option"
10552
- },
10553
- "data": {
10554
- "description": "Additional JSON object payload",
10555
- "name": "data",
10556
- "hasDynamicHelp": false,
10557
- "multiple": false,
10558
- "type": "option"
10559
10536
  }
10560
10537
  },
10561
10538
  "hasDynamicHelp": false,
10562
10539
  "hiddenAliases": [],
10563
- "id": "team:create",
10540
+ "id": "webhooks:logs",
10564
10541
  "pluginAlias": "@instantkom/cli",
10565
10542
  "pluginName": "@instantkom/cli",
10566
10543
  "pluginType": "core",
@@ -10570,20 +10547,20 @@
10570
10547
  "relativePath": [
10571
10548
  "dist",
10572
10549
  "commands",
10573
- "team",
10574
- "create.js"
10550
+ "webhooks",
10551
+ "logs.js"
10575
10552
  ]
10576
10553
  },
10577
- "team:delete": {
10554
+ "webhooks:remove": {
10578
10555
  "aliases": [],
10579
10556
  "args": {
10580
10557
  "id": {
10581
- "description": "Team member ID",
10558
+ "description": "Webhook subscription ID",
10582
10559
  "name": "id",
10583
10560
  "required": true
10584
10561
  }
10585
10562
  },
10586
- "description": "Delete a team member",
10563
+ "description": "Remove a webhook subscription",
10587
10564
  "flags": {
10588
10565
  "api-key": {
10589
10566
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10650,7 +10627,7 @@
10650
10627
  },
10651
10628
  "hasDynamicHelp": false,
10652
10629
  "hiddenAliases": [],
10653
- "id": "team:delete",
10630
+ "id": "webhooks:remove",
10654
10631
  "pluginAlias": "@instantkom/cli",
10655
10632
  "pluginName": "@instantkom/cli",
10656
10633
  "pluginType": "core",
@@ -10660,14 +10637,14 @@
10660
10637
  "relativePath": [
10661
10638
  "dist",
10662
10639
  "commands",
10663
- "team",
10664
- "delete.js"
10640
+ "webhooks",
10641
+ "remove.js"
10665
10642
  ]
10666
10643
  },
10667
- "team:list": {
10644
+ "webhooks:test": {
10668
10645
  "aliases": [],
10669
10646
  "args": {},
10670
- "description": "List team members",
10647
+ "description": "Send a test webhook payload to a URL",
10671
10648
  "flags": {
10672
10649
  "api-key": {
10673
10650
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10730,11 +10707,34 @@
10730
10707
  "hasDynamicHelp": false,
10731
10708
  "multiple": false,
10732
10709
  "type": "option"
10710
+ },
10711
+ "url": {
10712
+ "description": "Webhook URL to call",
10713
+ "name": "url",
10714
+ "required": true,
10715
+ "hasDynamicHelp": false,
10716
+ "multiple": false,
10717
+ "type": "option"
10718
+ },
10719
+ "event": {
10720
+ "description": "Event name",
10721
+ "name": "event",
10722
+ "default": "cli.test",
10723
+ "hasDynamicHelp": false,
10724
+ "multiple": false,
10725
+ "type": "option"
10726
+ },
10727
+ "payload": {
10728
+ "description": "Payload JSON",
10729
+ "name": "payload",
10730
+ "hasDynamicHelp": false,
10731
+ "multiple": false,
10732
+ "type": "option"
10733
10733
  }
10734
10734
  },
10735
10735
  "hasDynamicHelp": false,
10736
10736
  "hiddenAliases": [],
10737
- "id": "team:list",
10737
+ "id": "webhooks:test",
10738
10738
  "pluginAlias": "@instantkom/cli",
10739
10739
  "pluginName": "@instantkom/cli",
10740
10740
  "pluginType": "core",
@@ -10744,8 +10744,8 @@
10744
10744
  "relativePath": [
10745
10745
  "dist",
10746
10746
  "commands",
10747
- "team",
10748
- "list.js"
10747
+ "webhooks",
10748
+ "test.js"
10749
10749
  ]
10750
10750
  },
10751
10751
  "tags:create": {
@@ -16566,5 +16566,5 @@
16566
16566
  ]
16567
16567
  }
16568
16568
  },
16569
- "version": "3.158.0"
16569
+ "version": "3.159.0"
16570
16570
  }