@instantkom/cli 3.162.0 → 3.163.1

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,16 +2015,10 @@
2015
2015
  "update.js"
2016
2016
  ]
2017
2017
  },
2018
- "chats:get": {
2018
+ "broadcast:create": {
2019
2019
  "aliases": [],
2020
- "args": {
2021
- "id": {
2022
- "description": "chat ID",
2023
- "name": "id",
2024
- "required": true
2025
- }
2026
- },
2027
- "description": "Get chat by ID",
2020
+ "args": {},
2021
+ "description": "Create a broadcast for channels or segments",
2028
2022
  "flags": {
2029
2023
  "api-key": {
2030
2024
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2087,157 +2081,93 @@
2087
2081
  "hasDynamicHelp": false,
2088
2082
  "multiple": false,
2089
2083
  "type": "option"
2090
- }
2091
- },
2092
- "hasDynamicHelp": false,
2093
- "hiddenAliases": [],
2094
- "id": "chats:get",
2095
- "pluginAlias": "@instantkom/cli",
2096
- "pluginName": "@instantkom/cli",
2097
- "pluginType": "core",
2098
- "strict": true,
2099
- "enableJsonFlag": false,
2100
- "isESM": true,
2101
- "relativePath": [
2102
- "dist",
2103
- "commands",
2104
- "chats",
2105
- "get.js"
2106
- ]
2107
- },
2108
- "chats:list": {
2109
- "aliases": [],
2110
- "args": {},
2111
- "description": "List chats",
2112
- "flags": {
2113
- "api-key": {
2114
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
2115
- "env": "IKM_API_KEY",
2116
- "helpGroup": "GLOBAL",
2117
- "name": "api-key",
2118
- "hasDynamicHelp": false,
2119
- "multiple": false,
2120
- "type": "option"
2121
2084
  },
2122
- "format": {
2123
- "description": "Output format: text, json, yaml, or table",
2124
- "helpGroup": "GLOBAL",
2125
- "name": "format",
2126
- "default": "text",
2085
+ "channel": {
2086
+ "description": "Channel ID target",
2087
+ "name": "channel",
2127
2088
  "hasDynamicHelp": false,
2128
2089
  "multiple": false,
2129
- "options": [
2130
- "text",
2131
- "json",
2132
- "yaml",
2133
- "table"
2134
- ],
2135
2090
  "type": "option"
2136
2091
  },
2137
- "json": {
2138
- "description": "Output in JSON format (alias for --format=json)",
2139
- "helpGroup": "GLOBAL",
2140
- "name": "json",
2141
- "allowNo": false,
2142
- "type": "boolean"
2143
- },
2144
- "quiet": {
2145
- "description": "Suppress all output except errors",
2146
- "helpGroup": "GLOBAL",
2147
- "name": "quiet",
2148
- "allowNo": false,
2149
- "type": "boolean"
2150
- },
2151
- "no-color": {
2152
- "description": "Disable color output",
2153
- "helpGroup": "GLOBAL",
2154
- "name": "no-color",
2155
- "allowNo": false,
2156
- "type": "boolean"
2157
- },
2158
- "profile": {
2159
- "description": "Named configuration profile to use",
2160
- "helpGroup": "GLOBAL",
2161
- "name": "profile",
2162
- "default": "default",
2092
+ "segment": {
2093
+ "description": "Segment ID within --channel",
2094
+ "name": "segment",
2163
2095
  "hasDynamicHelp": false,
2164
2096
  "multiple": false,
2165
2097
  "type": "option"
2166
2098
  },
2167
- "api-url": {
2168
- "description": "Override the API base URL (e.g. for staging)",
2169
- "helpGroup": "GLOBAL",
2170
- "name": "api-url",
2099
+ "target": {
2100
+ "description": "Target as channelId or channelId:segmentId; may be repeated",
2101
+ "name": "target",
2171
2102
  "hasDynamicHelp": false,
2172
- "multiple": false,
2103
+ "multiple": true,
2173
2104
  "type": "option"
2174
2105
  },
2175
- "page": {
2176
- "description": "Page number",
2177
- "name": "page",
2178
- "default": 1,
2106
+ "text": {
2107
+ "description": "Broadcast message text",
2108
+ "name": "text",
2109
+ "required": true,
2179
2110
  "hasDynamicHelp": false,
2180
2111
  "multiple": false,
2181
2112
  "type": "option"
2182
2113
  },
2183
- "limit": {
2184
- "description": "Items per page",
2185
- "name": "limit",
2186
- "default": 20,
2114
+ "send-at": {
2115
+ "description": "Schedule send for an ISO-8601 date-time",
2116
+ "name": "send-at",
2187
2117
  "hasDynamicHelp": false,
2188
2118
  "multiple": false,
2189
2119
  "type": "option"
2190
2120
  },
2191
- "channel": {
2192
- "description": "Filter by channel ID",
2193
- "name": "channel",
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",
2194
2130
  "hasDynamicHelp": false,
2195
2131
  "multiple": false,
2196
2132
  "type": "option"
2197
2133
  },
2198
- "channels": {
2199
- "description": "Comma-separated channel IDs",
2200
- "name": "channels",
2134
+ "media": {
2135
+ "description": "Media file path to upload",
2136
+ "name": "media",
2201
2137
  "hasDynamicHelp": false,
2202
- "multiple": false,
2138
+ "multiple": true,
2203
2139
  "type": "option"
2204
2140
  },
2205
- "search": {
2206
- "description": "Search chats",
2207
- "name": "search",
2141
+ "template-id": {
2142
+ "description": "WhatsApp template ID",
2143
+ "name": "template-id",
2208
2144
  "hasDynamicHelp": false,
2209
2145
  "multiple": false,
2210
2146
  "type": "option"
2211
2147
  },
2212
- "status": {
2213
- "description": "Chat status",
2214
- "name": "status",
2148
+ "send-status": {
2149
+ "description": "Initial broadcast send status",
2150
+ "name": "send-status",
2151
+ "default": "draft",
2215
2152
  "hasDynamicHelp": false,
2216
2153
  "multiple": false,
2217
2154
  "options": [
2218
- "all",
2219
- "unread",
2220
- "read",
2221
- "archived"
2155
+ "draft",
2156
+ "scheduled",
2157
+ "sending"
2222
2158
  ],
2223
2159
  "type": "option"
2224
2160
  },
2225
- "unread-only": {
2226
- "description": "Only unread chats",
2227
- "name": "unread-only",
2228
- "allowNo": false,
2229
- "type": "boolean"
2230
- },
2231
- "include-archived": {
2232
- "description": "Include archived chats",
2233
- "name": "include-archived",
2161
+ "auto-approve": {
2162
+ "description": "Auto-approve broadcast when allowed by API permissions",
2163
+ "name": "auto-approve",
2234
2164
  "allowNo": false,
2235
2165
  "type": "boolean"
2236
2166
  }
2237
2167
  },
2238
2168
  "hasDynamicHelp": false,
2239
2169
  "hiddenAliases": [],
2240
- "id": "chats:list",
2170
+ "id": "broadcast:create",
2241
2171
  "pluginAlias": "@instantkom/cli",
2242
2172
  "pluginName": "@instantkom/cli",
2243
2173
  "pluginType": "core",
@@ -2247,20 +2177,20 @@
2247
2177
  "relativePath": [
2248
2178
  "dist",
2249
2179
  "commands",
2250
- "chats",
2251
- "list.js"
2180
+ "broadcast",
2181
+ "create.js"
2252
2182
  ]
2253
2183
  },
2254
- "chats:reply": {
2184
+ "broadcast:delete": {
2255
2185
  "aliases": [],
2256
2186
  "args": {
2257
2187
  "id": {
2258
- "description": "Chat ID",
2188
+ "description": "broadcast ID",
2259
2189
  "name": "id",
2260
2190
  "required": true
2261
2191
  }
2262
2192
  },
2263
- "description": "Reply in a chat",
2193
+ "description": "Delete broadcast",
2264
2194
  "flags": {
2265
2195
  "api-key": {
2266
2196
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2323,19 +2253,11 @@
2323
2253
  "hasDynamicHelp": false,
2324
2254
  "multiple": false,
2325
2255
  "type": "option"
2326
- },
2327
- "text": {
2328
- "description": "Reply text",
2329
- "name": "text",
2330
- "required": true,
2331
- "hasDynamicHelp": false,
2332
- "multiple": false,
2333
- "type": "option"
2334
2256
  }
2335
2257
  },
2336
2258
  "hasDynamicHelp": false,
2337
2259
  "hiddenAliases": [],
2338
- "id": "chats:reply",
2260
+ "id": "broadcast:delete",
2339
2261
  "pluginAlias": "@instantkom/cli",
2340
2262
  "pluginName": "@instantkom/cli",
2341
2263
  "pluginType": "core",
@@ -2345,14 +2267,20 @@
2345
2267
  "relativePath": [
2346
2268
  "dist",
2347
2269
  "commands",
2348
- "chats",
2349
- "reply.js"
2270
+ "broadcast",
2271
+ "delete.js"
2350
2272
  ]
2351
2273
  },
2352
- "channels:create": {
2274
+ "broadcast:get": {
2353
2275
  "aliases": [],
2354
- "args": {},
2355
- "description": "Create a channel",
2276
+ "args": {
2277
+ "id": {
2278
+ "description": "broadcast ID",
2279
+ "name": "id",
2280
+ "required": true
2281
+ }
2282
+ },
2283
+ "description": "Get broadcast by ID",
2356
2284
  "flags": {
2357
2285
  "api-key": {
2358
2286
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2415,48 +2343,11 @@
2415
2343
  "hasDynamicHelp": false,
2416
2344
  "multiple": false,
2417
2345
  "type": "option"
2418
- },
2419
- "name": {
2420
- "description": "Channel name",
2421
- "name": "name",
2422
- "required": true,
2423
- "hasDynamicHelp": false,
2424
- "multiple": false,
2425
- "type": "option"
2426
- },
2427
- "gateway-type": {
2428
- "description": "Gateway type ID",
2429
- "name": "gateway-type",
2430
- "required": true,
2431
- "hasDynamicHelp": false,
2432
- "multiple": false,
2433
- "type": "option"
2434
- },
2435
- "status": {
2436
- "description": "Channel lifecycle status",
2437
- "name": "status",
2438
- "hasDynamicHelp": false,
2439
- "multiple": false,
2440
- "type": "option"
2441
- },
2442
- "description": {
2443
- "description": "Channel description",
2444
- "name": "description",
2445
- "hasDynamicHelp": false,
2446
- "multiple": false,
2447
- "type": "option"
2448
- },
2449
- "data": {
2450
- "description": "Additional JSON object payload",
2451
- "name": "data",
2452
- "hasDynamicHelp": false,
2453
- "multiple": false,
2454
- "type": "option"
2455
2346
  }
2456
2347
  },
2457
2348
  "hasDynamicHelp": false,
2458
2349
  "hiddenAliases": [],
2459
- "id": "channels:create",
2350
+ "id": "broadcast:get",
2460
2351
  "pluginAlias": "@instantkom/cli",
2461
2352
  "pluginName": "@instantkom/cli",
2462
2353
  "pluginType": "core",
@@ -2466,20 +2357,14 @@
2466
2357
  "relativePath": [
2467
2358
  "dist",
2468
2359
  "commands",
2469
- "channels",
2470
- "create.js"
2360
+ "broadcast",
2361
+ "get.js"
2471
2362
  ]
2472
2363
  },
2473
- "channels:get": {
2364
+ "broadcast:list": {
2474
2365
  "aliases": [],
2475
- "args": {
2476
- "id": {
2477
- "description": "Channel ID",
2478
- "name": "id",
2479
- "required": true
2480
- }
2481
- },
2482
- "description": "Get a channel by ID",
2366
+ "args": {},
2367
+ "description": "List broadcasts",
2483
2368
  "flags": {
2484
2369
  "api-key": {
2485
2370
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2542,11 +2427,73 @@
2542
2427
  "hasDynamicHelp": false,
2543
2428
  "multiple": false,
2544
2429
  "type": "option"
2545
- }
2430
+ },
2431
+ "page": {
2432
+ "description": "Page number",
2433
+ "name": "page",
2434
+ "default": 1,
2435
+ "hasDynamicHelp": false,
2436
+ "multiple": false,
2437
+ "type": "option"
2438
+ },
2439
+ "limit": {
2440
+ "description": "Items per page",
2441
+ "name": "limit",
2442
+ "default": 20,
2443
+ "hasDynamicHelp": false,
2444
+ "multiple": false,
2445
+ "type": "option"
2446
+ },
2447
+ "channel": {
2448
+ "description": "Filter by channel ID",
2449
+ "name": "channel",
2450
+ "hasDynamicHelp": false,
2451
+ "multiple": false,
2452
+ "type": "option"
2453
+ },
2454
+ "send-status": {
2455
+ "description": "Filter by send status",
2456
+ "name": "send-status",
2457
+ "hasDynamicHelp": false,
2458
+ "multiple": false,
2459
+ "type": "option"
2460
+ },
2461
+ "type": {
2462
+ "description": "Broadcast type",
2463
+ "name": "type",
2464
+ "hasDynamicHelp": false,
2465
+ "multiple": false,
2466
+ "options": [
2467
+ "text",
2468
+ "image",
2469
+ "video",
2470
+ "audio",
2471
+ "document"
2472
+ ],
2473
+ "type": "option"
2474
+ },
2475
+ "search": {
2476
+ "description": "Search broadcasts",
2477
+ "name": "search",
2478
+ "hasDynamicHelp": false,
2479
+ "multiple": false,
2480
+ "type": "option"
2481
+ },
2482
+ "test": {
2483
+ "description": "Filter test flag: 0 or 1",
2484
+ "name": "test",
2485
+ "hasDynamicHelp": false,
2486
+ "multiple": false,
2487
+ "options": [
2488
+ "0",
2489
+ "1"
2490
+ ],
2491
+ "type": "option"
2492
+ }
2546
2493
  },
2547
2494
  "hasDynamicHelp": false,
2548
2495
  "hiddenAliases": [],
2549
- "id": "channels:get",
2496
+ "id": "broadcast:list",
2550
2497
  "pluginAlias": "@instantkom/cli",
2551
2498
  "pluginName": "@instantkom/cli",
2552
2499
  "pluginType": "core",
@@ -2556,20 +2503,20 @@
2556
2503
  "relativePath": [
2557
2504
  "dist",
2558
2505
  "commands",
2559
- "channels",
2560
- "get.js"
2506
+ "broadcast",
2507
+ "list.js"
2561
2508
  ]
2562
2509
  },
2563
- "channels:kpis": {
2510
+ "broadcast:send": {
2564
2511
  "aliases": [],
2565
2512
  "args": {
2566
2513
  "id": {
2567
- "description": "Optional channel ID; omit for aggregated channel KPIs",
2514
+ "description": "Broadcast ID",
2568
2515
  "name": "id",
2569
- "required": false
2516
+ "required": true
2570
2517
  }
2571
2518
  },
2572
- "description": "Get channel KPIs",
2519
+ "description": "Send a broadcast immediately",
2573
2520
  "flags": {
2574
2521
  "api-key": {
2575
2522
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2632,18 +2579,11 @@
2632
2579
  "hasDynamicHelp": false,
2633
2580
  "multiple": false,
2634
2581
  "type": "option"
2635
- },
2636
- "period": {
2637
- "description": "KPI period",
2638
- "name": "period",
2639
- "hasDynamicHelp": false,
2640
- "multiple": false,
2641
- "type": "option"
2642
2582
  }
2643
2583
  },
2644
2584
  "hasDynamicHelp": false,
2645
2585
  "hiddenAliases": [],
2646
- "id": "channels:kpis",
2586
+ "id": "broadcast:send",
2647
2587
  "pluginAlias": "@instantkom/cli",
2648
2588
  "pluginName": "@instantkom/cli",
2649
2589
  "pluginType": "core",
@@ -2653,14 +2593,20 @@
2653
2593
  "relativePath": [
2654
2594
  "dist",
2655
2595
  "commands",
2656
- "channels",
2657
- "kpis.js"
2596
+ "broadcast",
2597
+ "send.js"
2658
2598
  ]
2659
2599
  },
2660
- "channels:list": {
2600
+ "broadcast:status": {
2661
2601
  "aliases": [],
2662
- "args": {},
2663
- "description": "List channels",
2602
+ "args": {
2603
+ "id": {
2604
+ "description": "Broadcast ID",
2605
+ "name": "id",
2606
+ "required": true
2607
+ }
2608
+ },
2609
+ "description": "Show broadcast send status",
2664
2610
  "flags": {
2665
2611
  "api-key": {
2666
2612
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2723,48 +2669,11 @@
2723
2669
  "hasDynamicHelp": false,
2724
2670
  "multiple": false,
2725
2671
  "type": "option"
2726
- },
2727
- "page": {
2728
- "description": "Page number",
2729
- "name": "page",
2730
- "default": 1,
2731
- "hasDynamicHelp": false,
2732
- "multiple": false,
2733
- "type": "option"
2734
- },
2735
- "limit": {
2736
- "description": "Items per page",
2737
- "name": "limit",
2738
- "default": 20,
2739
- "hasDynamicHelp": false,
2740
- "multiple": false,
2741
- "type": "option"
2742
- },
2743
- "status": {
2744
- "description": "Filter by channel status",
2745
- "name": "status",
2746
- "hasDynamicHelp": false,
2747
- "multiple": false,
2748
- "type": "option"
2749
- },
2750
- "gateway-type": {
2751
- "description": "Filter by gateway type ID",
2752
- "name": "gateway-type",
2753
- "hasDynamicHelp": false,
2754
- "multiple": false,
2755
- "type": "option"
2756
- },
2757
- "search": {
2758
- "description": "Search by channel name",
2759
- "name": "search",
2760
- "hasDynamicHelp": false,
2761
- "multiple": false,
2762
- "type": "option"
2763
2672
  }
2764
2673
  },
2765
2674
  "hasDynamicHelp": false,
2766
2675
  "hiddenAliases": [],
2767
- "id": "channels:list",
2676
+ "id": "broadcast:status",
2768
2677
  "pluginAlias": "@instantkom/cli",
2769
2678
  "pluginName": "@instantkom/cli",
2770
2679
  "pluginType": "core",
@@ -2774,20 +2683,20 @@
2774
2683
  "relativePath": [
2775
2684
  "dist",
2776
2685
  "commands",
2777
- "channels",
2778
- "list.js"
2686
+ "broadcast",
2687
+ "status.js"
2779
2688
  ]
2780
2689
  },
2781
- "channels:update": {
2690
+ "broadcast:update": {
2782
2691
  "aliases": [],
2783
2692
  "args": {
2784
2693
  "id": {
2785
- "description": "Channel ID",
2694
+ "description": "Broadcast ID",
2786
2695
  "name": "id",
2787
2696
  "required": true
2788
2697
  }
2789
2698
  },
2790
- "description": "Update a channel",
2699
+ "description": "Update a broadcast",
2791
2700
  "flags": {
2792
2701
  "api-key": {
2793
2702
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2851,23 +2760,61 @@
2851
2760
  "multiple": false,
2852
2761
  "type": "option"
2853
2762
  },
2854
- "name": {
2855
- "description": "Channel name",
2856
- "name": "name",
2763
+ "text": {
2764
+ "description": "Broadcast message text",
2765
+ "name": "text",
2857
2766
  "hasDynamicHelp": false,
2858
2767
  "multiple": false,
2859
2768
  "type": "option"
2860
2769
  },
2861
- "status": {
2862
- "description": "Channel lifecycle status",
2863
- "name": "status",
2770
+ "send-status": {
2771
+ "description": "Send status",
2772
+ "name": "send-status",
2864
2773
  "hasDynamicHelp": false,
2865
2774
  "multiple": false,
2866
2775
  "type": "option"
2867
2776
  },
2868
- "description": {
2869
- "description": "Channel description",
2870
- "name": "description",
2777
+ "scheduled-at": {
2778
+ "description": "Unix timestamp for scheduled send",
2779
+ "name": "scheduled-at",
2780
+ "hasDynamicHelp": false,
2781
+ "multiple": false,
2782
+ "type": "option"
2783
+ },
2784
+ "approved": {
2785
+ "description": "Mark as approved",
2786
+ "name": "approved",
2787
+ "allowNo": false,
2788
+ "type": "boolean"
2789
+ },
2790
+ "locked": {
2791
+ "description": "Mark as locked",
2792
+ "name": "locked",
2793
+ "allowNo": false,
2794
+ "type": "boolean"
2795
+ },
2796
+ "test": {
2797
+ "description": "Mark as test broadcast",
2798
+ "name": "test",
2799
+ "allowNo": false,
2800
+ "type": "boolean"
2801
+ },
2802
+ "template-id": {
2803
+ "description": "Template ID",
2804
+ "name": "template-id",
2805
+ "hasDynamicHelp": false,
2806
+ "multiple": false,
2807
+ "type": "option"
2808
+ },
2809
+ "remove-media": {
2810
+ "description": "Remove existing media",
2811
+ "name": "remove-media",
2812
+ "allowNo": false,
2813
+ "type": "boolean"
2814
+ },
2815
+ "header-footer": {
2816
+ "description": "Header/footer JSON array",
2817
+ "name": "header-footer",
2871
2818
  "hasDynamicHelp": false,
2872
2819
  "multiple": false,
2873
2820
  "type": "option"
@@ -2882,7 +2829,7 @@
2882
2829
  },
2883
2830
  "hasDynamicHelp": false,
2884
2831
  "hiddenAliases": [],
2885
- "id": "channels:update",
2832
+ "id": "broadcast:update",
2886
2833
  "pluginAlias": "@instantkom/cli",
2887
2834
  "pluginName": "@instantkom/cli",
2888
2835
  "pluginType": "core",
@@ -2892,20 +2839,14 @@
2892
2839
  "relativePath": [
2893
2840
  "dist",
2894
2841
  "commands",
2895
- "channels",
2842
+ "broadcast",
2896
2843
  "update.js"
2897
2844
  ]
2898
2845
  },
2899
- "config:get": {
2846
+ "channels:create": {
2900
2847
  "aliases": [],
2901
- "args": {
2902
- "key": {
2903
- "description": "Configuration key to retrieve",
2904
- "name": "key",
2905
- "required": true
2906
- }
2907
- },
2908
- "description": "Get a configuration value for the current profile",
2848
+ "args": {},
2849
+ "description": "Create a channel",
2909
2850
  "flags": {
2910
2851
  "api-key": {
2911
2852
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2968,40 +2909,72 @@
2968
2909
  "hasDynamicHelp": false,
2969
2910
  "multiple": false,
2970
2911
  "type": "option"
2971
- }
2972
- },
2973
- "hasDynamicHelp": false,
2974
- "hiddenAliases": [],
2975
- "id": "config:get",
2976
- "pluginAlias": "@instantkom/cli",
2977
- "pluginName": "@instantkom/cli",
2978
- "pluginType": "core",
2979
- "strict": true,
2980
- "enableJsonFlag": false,
2981
- "isESM": true,
2982
- "relativePath": [
2983
- "dist",
2984
- "commands",
2985
- "config",
2986
- "get.js"
2987
- ]
2988
- },
2989
- "config:set": {
2990
- "aliases": [],
2991
- "args": {
2992
- "key": {
2993
- "description": "Configuration key to set",
2994
- "name": "key",
2995
- "required": true
2996
2912
  },
2997
- "value": {
2998
- "description": "Value to assign",
2999
- "name": "value",
3000
- "required": true
3001
- }
3002
- },
3003
- "description": "Set a configuration value for the current profile",
3004
- "flags": {
2913
+ "name": {
2914
+ "description": "Channel name",
2915
+ "name": "name",
2916
+ "required": true,
2917
+ "hasDynamicHelp": false,
2918
+ "multiple": false,
2919
+ "type": "option"
2920
+ },
2921
+ "gateway-type": {
2922
+ "description": "Gateway type ID",
2923
+ "name": "gateway-type",
2924
+ "required": true,
2925
+ "hasDynamicHelp": false,
2926
+ "multiple": false,
2927
+ "type": "option"
2928
+ },
2929
+ "status": {
2930
+ "description": "Channel lifecycle status",
2931
+ "name": "status",
2932
+ "hasDynamicHelp": false,
2933
+ "multiple": false,
2934
+ "type": "option"
2935
+ },
2936
+ "description": {
2937
+ "description": "Channel description",
2938
+ "name": "description",
2939
+ "hasDynamicHelp": false,
2940
+ "multiple": false,
2941
+ "type": "option"
2942
+ },
2943
+ "data": {
2944
+ "description": "Additional JSON object payload",
2945
+ "name": "data",
2946
+ "hasDynamicHelp": false,
2947
+ "multiple": false,
2948
+ "type": "option"
2949
+ }
2950
+ },
2951
+ "hasDynamicHelp": false,
2952
+ "hiddenAliases": [],
2953
+ "id": "channels:create",
2954
+ "pluginAlias": "@instantkom/cli",
2955
+ "pluginName": "@instantkom/cli",
2956
+ "pluginType": "core",
2957
+ "strict": true,
2958
+ "enableJsonFlag": false,
2959
+ "isESM": true,
2960
+ "relativePath": [
2961
+ "dist",
2962
+ "commands",
2963
+ "channels",
2964
+ "create.js"
2965
+ ]
2966
+ },
2967
+ "channels:get": {
2968
+ "aliases": [],
2969
+ "args": {
2970
+ "id": {
2971
+ "description": "Channel ID",
2972
+ "name": "id",
2973
+ "required": true
2974
+ }
2975
+ },
2976
+ "description": "Get a channel by ID",
2977
+ "flags": {
3005
2978
  "api-key": {
3006
2979
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3007
2980
  "env": "IKM_API_KEY",
@@ -3067,7 +3040,7 @@
3067
3040
  },
3068
3041
  "hasDynamicHelp": false,
3069
3042
  "hiddenAliases": [],
3070
- "id": "config:set",
3043
+ "id": "channels:get",
3071
3044
  "pluginAlias": "@instantkom/cli",
3072
3045
  "pluginName": "@instantkom/cli",
3073
3046
  "pluginType": "core",
@@ -3077,20 +3050,20 @@
3077
3050
  "relativePath": [
3078
3051
  "dist",
3079
3052
  "commands",
3080
- "config",
3081
- "set.js"
3053
+ "channels",
3054
+ "get.js"
3082
3055
  ]
3083
3056
  },
3084
- "config:unset": {
3057
+ "channels:kpis": {
3085
3058
  "aliases": [],
3086
3059
  "args": {
3087
- "key": {
3088
- "description": "Configuration key to remove",
3089
- "name": "key",
3090
- "required": true
3060
+ "id": {
3061
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
3062
+ "name": "id",
3063
+ "required": false
3091
3064
  }
3092
3065
  },
3093
- "description": "Remove a configuration key from the current profile",
3066
+ "description": "Get channel KPIs",
3094
3067
  "flags": {
3095
3068
  "api-key": {
3096
3069
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3153,11 +3126,18 @@
3153
3126
  "hasDynamicHelp": false,
3154
3127
  "multiple": false,
3155
3128
  "type": "option"
3129
+ },
3130
+ "period": {
3131
+ "description": "KPI period",
3132
+ "name": "period",
3133
+ "hasDynamicHelp": false,
3134
+ "multiple": false,
3135
+ "type": "option"
3156
3136
  }
3157
3137
  },
3158
3138
  "hasDynamicHelp": false,
3159
3139
  "hiddenAliases": [],
3160
- "id": "config:unset",
3140
+ "id": "channels:kpis",
3161
3141
  "pluginAlias": "@instantkom/cli",
3162
3142
  "pluginName": "@instantkom/cli",
3163
3143
  "pluginType": "core",
@@ -3167,14 +3147,14 @@
3167
3147
  "relativePath": [
3168
3148
  "dist",
3169
3149
  "commands",
3170
- "config",
3171
- "unset.js"
3150
+ "channels",
3151
+ "kpis.js"
3172
3152
  ]
3173
3153
  },
3174
- "broadcast:create": {
3154
+ "channels:list": {
3175
3155
  "aliases": [],
3176
3156
  "args": {},
3177
- "description": "Create a broadcast for channels or segments",
3157
+ "description": "List channels",
3178
3158
  "flags": {
3179
3159
  "api-key": {
3180
3160
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3238,92 +3218,47 @@
3238
3218
  "multiple": false,
3239
3219
  "type": "option"
3240
3220
  },
3241
- "channel": {
3242
- "description": "Channel ID target",
3243
- "name": "channel",
3244
- "hasDynamicHelp": false,
3245
- "multiple": false,
3246
- "type": "option"
3247
- },
3248
- "segment": {
3249
- "description": "Segment ID within --channel",
3250
- "name": "segment",
3251
- "hasDynamicHelp": false,
3252
- "multiple": false,
3253
- "type": "option"
3254
- },
3255
- "target": {
3256
- "description": "Target as channelId or channelId:segmentId; may be repeated",
3257
- "name": "target",
3258
- "hasDynamicHelp": false,
3259
- "multiple": true,
3260
- "type": "option"
3261
- },
3262
- "text": {
3263
- "description": "Broadcast message text",
3264
- "name": "text",
3265
- "required": true,
3221
+ "page": {
3222
+ "description": "Page number",
3223
+ "name": "page",
3224
+ "default": 1,
3266
3225
  "hasDynamicHelp": false,
3267
3226
  "multiple": false,
3268
3227
  "type": "option"
3269
3228
  },
3270
- "send-at": {
3271
- "description": "Schedule send for an ISO-8601 date-time",
3272
- "name": "send-at",
3229
+ "limit": {
3230
+ "description": "Items per page",
3231
+ "name": "limit",
3232
+ "default": 20,
3273
3233
  "hasDynamicHelp": false,
3274
3234
  "multiple": false,
3275
3235
  "type": "option"
3276
3236
  },
3277
- "dry-run": {
3278
- "description": "Validate and print the broadcast payload without mutating API calls",
3279
- "name": "dry-run",
3280
- "allowNo": false,
3281
- "type": "boolean"
3282
- },
3283
- "idempotency-key": {
3284
- "description": "Idempotency key forwarded as Idempotency-Key",
3285
- "name": "idempotency-key",
3237
+ "status": {
3238
+ "description": "Filter by channel status",
3239
+ "name": "status",
3286
3240
  "hasDynamicHelp": false,
3287
3241
  "multiple": false,
3288
3242
  "type": "option"
3289
3243
  },
3290
- "media": {
3291
- "description": "Media file path to upload",
3292
- "name": "media",
3293
- "hasDynamicHelp": false,
3294
- "multiple": true,
3295
- "type": "option"
3296
- },
3297
- "template-id": {
3298
- "description": "WhatsApp template ID",
3299
- "name": "template-id",
3244
+ "gateway-type": {
3245
+ "description": "Filter by gateway type ID",
3246
+ "name": "gateway-type",
3300
3247
  "hasDynamicHelp": false,
3301
3248
  "multiple": false,
3302
3249
  "type": "option"
3303
3250
  },
3304
- "send-status": {
3305
- "description": "Initial broadcast send status",
3306
- "name": "send-status",
3307
- "default": "draft",
3251
+ "search": {
3252
+ "description": "Search by channel name",
3253
+ "name": "search",
3308
3254
  "hasDynamicHelp": false,
3309
3255
  "multiple": false,
3310
- "options": [
3311
- "draft",
3312
- "scheduled",
3313
- "sending"
3314
- ],
3315
3256
  "type": "option"
3316
- },
3317
- "auto-approve": {
3318
- "description": "Auto-approve broadcast when allowed by API permissions",
3319
- "name": "auto-approve",
3320
- "allowNo": false,
3321
- "type": "boolean"
3322
3257
  }
3323
3258
  },
3324
3259
  "hasDynamicHelp": false,
3325
3260
  "hiddenAliases": [],
3326
- "id": "broadcast:create",
3261
+ "id": "channels:list",
3327
3262
  "pluginAlias": "@instantkom/cli",
3328
3263
  "pluginName": "@instantkom/cli",
3329
3264
  "pluginType": "core",
@@ -3333,20 +3268,20 @@
3333
3268
  "relativePath": [
3334
3269
  "dist",
3335
3270
  "commands",
3336
- "broadcast",
3337
- "create.js"
3271
+ "channels",
3272
+ "list.js"
3338
3273
  ]
3339
3274
  },
3340
- "broadcast:delete": {
3275
+ "channels:update": {
3341
3276
  "aliases": [],
3342
3277
  "args": {
3343
3278
  "id": {
3344
- "description": "broadcast ID",
3279
+ "description": "Channel ID",
3345
3280
  "name": "id",
3346
3281
  "required": true
3347
3282
  }
3348
3283
  },
3349
- "description": "Delete broadcast",
3284
+ "description": "Update a channel",
3350
3285
  "flags": {
3351
3286
  "api-key": {
3352
3287
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3409,11 +3344,39 @@
3409
3344
  "hasDynamicHelp": false,
3410
3345
  "multiple": false,
3411
3346
  "type": "option"
3347
+ },
3348
+ "name": {
3349
+ "description": "Channel name",
3350
+ "name": "name",
3351
+ "hasDynamicHelp": false,
3352
+ "multiple": false,
3353
+ "type": "option"
3354
+ },
3355
+ "status": {
3356
+ "description": "Channel lifecycle status",
3357
+ "name": "status",
3358
+ "hasDynamicHelp": false,
3359
+ "multiple": false,
3360
+ "type": "option"
3361
+ },
3362
+ "description": {
3363
+ "description": "Channel description",
3364
+ "name": "description",
3365
+ "hasDynamicHelp": false,
3366
+ "multiple": false,
3367
+ "type": "option"
3368
+ },
3369
+ "data": {
3370
+ "description": "Additional JSON object payload",
3371
+ "name": "data",
3372
+ "hasDynamicHelp": false,
3373
+ "multiple": false,
3374
+ "type": "option"
3412
3375
  }
3413
3376
  },
3414
3377
  "hasDynamicHelp": false,
3415
3378
  "hiddenAliases": [],
3416
- "id": "broadcast:delete",
3379
+ "id": "channels:update",
3417
3380
  "pluginAlias": "@instantkom/cli",
3418
3381
  "pluginName": "@instantkom/cli",
3419
3382
  "pluginType": "core",
@@ -3423,20 +3386,20 @@
3423
3386
  "relativePath": [
3424
3387
  "dist",
3425
3388
  "commands",
3426
- "broadcast",
3427
- "delete.js"
3389
+ "channels",
3390
+ "update.js"
3428
3391
  ]
3429
3392
  },
3430
- "broadcast:get": {
3393
+ "chats:get": {
3431
3394
  "aliases": [],
3432
3395
  "args": {
3433
3396
  "id": {
3434
- "description": "broadcast ID",
3397
+ "description": "chat ID",
3435
3398
  "name": "id",
3436
3399
  "required": true
3437
3400
  }
3438
3401
  },
3439
- "description": "Get broadcast by ID",
3402
+ "description": "Get chat by ID",
3440
3403
  "flags": {
3441
3404
  "api-key": {
3442
3405
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3503,7 +3466,7 @@
3503
3466
  },
3504
3467
  "hasDynamicHelp": false,
3505
3468
  "hiddenAliases": [],
3506
- "id": "broadcast:get",
3469
+ "id": "chats:get",
3507
3470
  "pluginAlias": "@instantkom/cli",
3508
3471
  "pluginName": "@instantkom/cli",
3509
3472
  "pluginType": "core",
@@ -3513,14 +3476,14 @@
3513
3476
  "relativePath": [
3514
3477
  "dist",
3515
3478
  "commands",
3516
- "broadcast",
3479
+ "chats",
3517
3480
  "get.js"
3518
3481
  ]
3519
3482
  },
3520
- "broadcast:list": {
3483
+ "chats:list": {
3521
3484
  "aliases": [],
3522
3485
  "args": {},
3523
- "description": "List broadcasts",
3486
+ "description": "List chats",
3524
3487
  "flags": {
3525
3488
  "api-key": {
3526
3489
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3607,49 +3570,147 @@
3607
3570
  "multiple": false,
3608
3571
  "type": "option"
3609
3572
  },
3610
- "send-status": {
3611
- "description": "Filter by send status",
3612
- "name": "send-status",
3573
+ "channels": {
3574
+ "description": "Comma-separated channel IDs",
3575
+ "name": "channels",
3613
3576
  "hasDynamicHelp": false,
3614
3577
  "multiple": false,
3615
3578
  "type": "option"
3616
3579
  },
3617
- "type": {
3618
- "description": "Broadcast type",
3619
- "name": "type",
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"
3611
+ }
3612
+ },
3613
+ "hasDynamicHelp": false,
3614
+ "hiddenAliases": [],
3615
+ "id": "chats:list",
3616
+ "pluginAlias": "@instantkom/cli",
3617
+ "pluginName": "@instantkom/cli",
3618
+ "pluginType": "core",
3619
+ "strict": true,
3620
+ "enableJsonFlag": false,
3621
+ "isESM": true,
3622
+ "relativePath": [
3623
+ "dist",
3624
+ "commands",
3625
+ "chats",
3626
+ "list.js"
3627
+ ]
3628
+ },
3629
+ "chats:reply": {
3630
+ "aliases": [],
3631
+ "args": {
3632
+ "id": {
3633
+ "description": "Chat ID",
3634
+ "name": "id",
3635
+ "required": true
3636
+ }
3637
+ },
3638
+ "description": "Reply in a chat",
3639
+ "flags": {
3640
+ "api-key": {
3641
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3642
+ "env": "IKM_API_KEY",
3643
+ "helpGroup": "GLOBAL",
3644
+ "name": "api-key",
3645
+ "hasDynamicHelp": false,
3646
+ "multiple": false,
3647
+ "type": "option"
3648
+ },
3649
+ "format": {
3650
+ "description": "Output format: text, json, yaml, or table",
3651
+ "helpGroup": "GLOBAL",
3652
+ "name": "format",
3653
+ "default": "text",
3654
+ "hasDynamicHelp": false,
3655
+ "multiple": false,
3656
+ "options": [
3657
+ "text",
3658
+ "json",
3659
+ "yaml",
3660
+ "table"
3661
+ ],
3662
+ "type": "option"
3663
+ },
3664
+ "json": {
3665
+ "description": "Output in JSON format (alias for --format=json)",
3666
+ "helpGroup": "GLOBAL",
3667
+ "name": "json",
3668
+ "allowNo": false,
3669
+ "type": "boolean"
3670
+ },
3671
+ "quiet": {
3672
+ "description": "Suppress all output except errors",
3673
+ "helpGroup": "GLOBAL",
3674
+ "name": "quiet",
3675
+ "allowNo": false,
3676
+ "type": "boolean"
3677
+ },
3678
+ "no-color": {
3679
+ "description": "Disable color output",
3680
+ "helpGroup": "GLOBAL",
3681
+ "name": "no-color",
3682
+ "allowNo": false,
3683
+ "type": "boolean"
3684
+ },
3685
+ "profile": {
3686
+ "description": "Named configuration profile to use",
3687
+ "helpGroup": "GLOBAL",
3688
+ "name": "profile",
3689
+ "default": "default",
3620
3690
  "hasDynamicHelp": false,
3621
3691
  "multiple": false,
3622
- "options": [
3623
- "text",
3624
- "image",
3625
- "video",
3626
- "audio",
3627
- "document"
3628
- ],
3629
3692
  "type": "option"
3630
3693
  },
3631
- "search": {
3632
- "description": "Search broadcasts",
3633
- "name": "search",
3694
+ "api-url": {
3695
+ "description": "Override the API base URL (e.g. for staging)",
3696
+ "helpGroup": "GLOBAL",
3697
+ "name": "api-url",
3634
3698
  "hasDynamicHelp": false,
3635
3699
  "multiple": false,
3636
3700
  "type": "option"
3637
3701
  },
3638
- "test": {
3639
- "description": "Filter test flag: 0 or 1",
3640
- "name": "test",
3702
+ "text": {
3703
+ "description": "Reply text",
3704
+ "name": "text",
3705
+ "required": true,
3641
3706
  "hasDynamicHelp": false,
3642
3707
  "multiple": false,
3643
- "options": [
3644
- "0",
3645
- "1"
3646
- ],
3647
3708
  "type": "option"
3648
3709
  }
3649
3710
  },
3650
3711
  "hasDynamicHelp": false,
3651
3712
  "hiddenAliases": [],
3652
- "id": "broadcast:list",
3713
+ "id": "chats:reply",
3653
3714
  "pluginAlias": "@instantkom/cli",
3654
3715
  "pluginName": "@instantkom/cli",
3655
3716
  "pluginType": "core",
@@ -3659,20 +3720,20 @@
3659
3720
  "relativePath": [
3660
3721
  "dist",
3661
3722
  "commands",
3662
- "broadcast",
3663
- "list.js"
3723
+ "chats",
3724
+ "reply.js"
3664
3725
  ]
3665
3726
  },
3666
- "broadcast:send": {
3727
+ "config:get": {
3667
3728
  "aliases": [],
3668
3729
  "args": {
3669
- "id": {
3670
- "description": "Broadcast ID",
3671
- "name": "id",
3730
+ "key": {
3731
+ "description": "Configuration key to retrieve",
3732
+ "name": "key",
3672
3733
  "required": true
3673
3734
  }
3674
3735
  },
3675
- "description": "Send a broadcast immediately",
3736
+ "description": "Get a configuration value for the current profile",
3676
3737
  "flags": {
3677
3738
  "api-key": {
3678
3739
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3739,7 +3800,7 @@
3739
3800
  },
3740
3801
  "hasDynamicHelp": false,
3741
3802
  "hiddenAliases": [],
3742
- "id": "broadcast:send",
3803
+ "id": "config:get",
3743
3804
  "pluginAlias": "@instantkom/cli",
3744
3805
  "pluginName": "@instantkom/cli",
3745
3806
  "pluginType": "core",
@@ -3749,20 +3810,25 @@
3749
3810
  "relativePath": [
3750
3811
  "dist",
3751
3812
  "commands",
3752
- "broadcast",
3753
- "send.js"
3813
+ "config",
3814
+ "get.js"
3754
3815
  ]
3755
3816
  },
3756
- "broadcast:status": {
3817
+ "config:set": {
3757
3818
  "aliases": [],
3758
3819
  "args": {
3759
- "id": {
3760
- "description": "Broadcast ID",
3761
- "name": "id",
3820
+ "key": {
3821
+ "description": "Configuration key to set",
3822
+ "name": "key",
3823
+ "required": true
3824
+ },
3825
+ "value": {
3826
+ "description": "Value to assign",
3827
+ "name": "value",
3762
3828
  "required": true
3763
3829
  }
3764
3830
  },
3765
- "description": "Show broadcast send status",
3831
+ "description": "Set a configuration value for the current profile",
3766
3832
  "flags": {
3767
3833
  "api-key": {
3768
3834
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3829,7 +3895,7 @@
3829
3895
  },
3830
3896
  "hasDynamicHelp": false,
3831
3897
  "hiddenAliases": [],
3832
- "id": "broadcast:status",
3898
+ "id": "config:set",
3833
3899
  "pluginAlias": "@instantkom/cli",
3834
3900
  "pluginName": "@instantkom/cli",
3835
3901
  "pluginType": "core",
@@ -3839,20 +3905,20 @@
3839
3905
  "relativePath": [
3840
3906
  "dist",
3841
3907
  "commands",
3842
- "broadcast",
3843
- "status.js"
3908
+ "config",
3909
+ "set.js"
3844
3910
  ]
3845
3911
  },
3846
- "broadcast:update": {
3912
+ "config:unset": {
3847
3913
  "aliases": [],
3848
3914
  "args": {
3849
- "id": {
3850
- "description": "Broadcast ID",
3851
- "name": "id",
3915
+ "key": {
3916
+ "description": "Configuration key to remove",
3917
+ "name": "key",
3852
3918
  "required": true
3853
3919
  }
3854
3920
  },
3855
- "description": "Update a broadcast",
3921
+ "description": "Remove a configuration key from the current profile",
3856
3922
  "flags": {
3857
3923
  "api-key": {
3858
3924
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3915,77 +3981,11 @@
3915
3981
  "hasDynamicHelp": false,
3916
3982
  "multiple": false,
3917
3983
  "type": "option"
3918
- },
3919
- "text": {
3920
- "description": "Broadcast message text",
3921
- "name": "text",
3922
- "hasDynamicHelp": false,
3923
- "multiple": false,
3924
- "type": "option"
3925
- },
3926
- "send-status": {
3927
- "description": "Send status",
3928
- "name": "send-status",
3929
- "hasDynamicHelp": false,
3930
- "multiple": false,
3931
- "type": "option"
3932
- },
3933
- "scheduled-at": {
3934
- "description": "Unix timestamp for scheduled send",
3935
- "name": "scheduled-at",
3936
- "hasDynamicHelp": false,
3937
- "multiple": false,
3938
- "type": "option"
3939
- },
3940
- "approved": {
3941
- "description": "Mark as approved",
3942
- "name": "approved",
3943
- "allowNo": false,
3944
- "type": "boolean"
3945
- },
3946
- "locked": {
3947
- "description": "Mark as locked",
3948
- "name": "locked",
3949
- "allowNo": false,
3950
- "type": "boolean"
3951
- },
3952
- "test": {
3953
- "description": "Mark as test broadcast",
3954
- "name": "test",
3955
- "allowNo": false,
3956
- "type": "boolean"
3957
- },
3958
- "template-id": {
3959
- "description": "Template ID",
3960
- "name": "template-id",
3961
- "hasDynamicHelp": false,
3962
- "multiple": false,
3963
- "type": "option"
3964
- },
3965
- "remove-media": {
3966
- "description": "Remove existing media",
3967
- "name": "remove-media",
3968
- "allowNo": false,
3969
- "type": "boolean"
3970
- },
3971
- "header-footer": {
3972
- "description": "Header/footer JSON array",
3973
- "name": "header-footer",
3974
- "hasDynamicHelp": false,
3975
- "multiple": false,
3976
- "type": "option"
3977
- },
3978
- "data": {
3979
- "description": "Additional JSON object payload",
3980
- "name": "data",
3981
- "hasDynamicHelp": false,
3982
- "multiple": false,
3983
- "type": "option"
3984
3984
  }
3985
3985
  },
3986
3986
  "hasDynamicHelp": false,
3987
3987
  "hiddenAliases": [],
3988
- "id": "broadcast:update",
3988
+ "id": "config:unset",
3989
3989
  "pluginAlias": "@instantkom/cli",
3990
3990
  "pluginName": "@instantkom/cli",
3991
3991
  "pluginType": "core",
@@ -3995,8 +3995,8 @@
3995
3995
  "relativePath": [
3996
3996
  "dist",
3997
3997
  "commands",
3998
- "broadcast",
3999
- "update.js"
3998
+ "config",
3999
+ "unset.js"
4000
4000
  ]
4001
4001
  },
4002
4002
  "contacts:create": {
@@ -7571,10 +7571,10 @@
7571
7571
  "update.js"
7572
7572
  ]
7573
7573
  },
7574
- "segments:create": {
7574
+ "tags:create": {
7575
7575
  "aliases": [],
7576
7576
  "args": {},
7577
- "description": "Create a segment",
7577
+ "description": "Create a tag",
7578
7578
  "flags": {
7579
7579
  "api-key": {
7580
7580
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7638,16 +7638,8 @@
7638
7638
  "multiple": false,
7639
7639
  "type": "option"
7640
7640
  },
7641
- "channel": {
7642
- "description": "Channel ID",
7643
- "name": "channel",
7644
- "required": true,
7645
- "hasDynamicHelp": false,
7646
- "multiple": false,
7647
- "type": "option"
7648
- },
7649
7641
  "name": {
7650
- "description": "Segment name",
7642
+ "description": "Tag name",
7651
7643
  "name": "name",
7652
7644
  "required": true,
7653
7645
  "hasDynamicHelp": false,
@@ -7655,36 +7647,119 @@
7655
7647
  "type": "option"
7656
7648
  },
7657
7649
  "description": {
7658
- "description": "Segment description",
7650
+ "description": "Tag description",
7659
7651
  "name": "description",
7660
7652
  "hasDynamicHelp": false,
7661
7653
  "multiple": false,
7662
7654
  "type": "option"
7663
7655
  },
7664
7656
  "color": {
7665
- "description": "Segment color as HEX",
7657
+ "description": "Tag color as HEX",
7666
7658
  "name": "color",
7667
7659
  "hasDynamicHelp": false,
7668
7660
  "multiple": false,
7669
7661
  "type": "option"
7670
7662
  },
7671
- "tags": {
7672
- "description": "Tags for filtering recipients",
7673
- "name": "tags",
7663
+ "folder": {
7664
+ "description": "Object folder ID",
7665
+ "name": "folder",
7674
7666
  "hasDynamicHelp": false,
7675
7667
  "multiple": false,
7676
7668
  "type": "option"
7677
7669
  },
7678
- "folder": {
7679
- "description": "Object folder ID",
7680
- "name": "folder",
7670
+ "data": {
7671
+ "description": "Additional JSON object payload",
7672
+ "name": "data",
7673
+ "hasDynamicHelp": false,
7674
+ "multiple": false,
7675
+ "type": "option"
7676
+ }
7677
+ },
7678
+ "hasDynamicHelp": false,
7679
+ "hiddenAliases": [],
7680
+ "id": "tags:create",
7681
+ "pluginAlias": "@instantkom/cli",
7682
+ "pluginName": "@instantkom/cli",
7683
+ "pluginType": "core",
7684
+ "strict": true,
7685
+ "enableJsonFlag": false,
7686
+ "isESM": true,
7687
+ "relativePath": [
7688
+ "dist",
7689
+ "commands",
7690
+ "tags",
7691
+ "create.js"
7692
+ ]
7693
+ },
7694
+ "tags:delete": {
7695
+ "aliases": [],
7696
+ "args": {
7697
+ "id": {
7698
+ "description": "tag ID",
7699
+ "name": "id",
7700
+ "required": true
7701
+ }
7702
+ },
7703
+ "description": "Delete tag",
7704
+ "flags": {
7705
+ "api-key": {
7706
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
7707
+ "env": "IKM_API_KEY",
7708
+ "helpGroup": "GLOBAL",
7709
+ "name": "api-key",
7710
+ "hasDynamicHelp": false,
7711
+ "multiple": false,
7712
+ "type": "option"
7713
+ },
7714
+ "format": {
7715
+ "description": "Output format: text, json, yaml, or table",
7716
+ "helpGroup": "GLOBAL",
7717
+ "name": "format",
7718
+ "default": "text",
7719
+ "hasDynamicHelp": false,
7720
+ "multiple": false,
7721
+ "options": [
7722
+ "text",
7723
+ "json",
7724
+ "yaml",
7725
+ "table"
7726
+ ],
7727
+ "type": "option"
7728
+ },
7729
+ "json": {
7730
+ "description": "Output in JSON format (alias for --format=json)",
7731
+ "helpGroup": "GLOBAL",
7732
+ "name": "json",
7733
+ "allowNo": false,
7734
+ "type": "boolean"
7735
+ },
7736
+ "quiet": {
7737
+ "description": "Suppress all output except errors",
7738
+ "helpGroup": "GLOBAL",
7739
+ "name": "quiet",
7740
+ "allowNo": false,
7741
+ "type": "boolean"
7742
+ },
7743
+ "no-color": {
7744
+ "description": "Disable color output",
7745
+ "helpGroup": "GLOBAL",
7746
+ "name": "no-color",
7747
+ "allowNo": false,
7748
+ "type": "boolean"
7749
+ },
7750
+ "profile": {
7751
+ "description": "Named configuration profile to use",
7752
+ "helpGroup": "GLOBAL",
7753
+ "name": "profile",
7754
+ "default": "default",
7681
7755
  "hasDynamicHelp": false,
7682
7756
  "multiple": false,
7683
7757
  "type": "option"
7684
7758
  },
7685
- "data": {
7686
- "description": "Additional JSON object payload",
7687
- "name": "data",
7759
+ "api-url": {
7760
+ "description": "Override the API base URL (e.g. for staging)",
7761
+ "helpGroup": "GLOBAL",
7762
+ "name": "api-url",
7688
7763
  "hasDynamicHelp": false,
7689
7764
  "multiple": false,
7690
7765
  "type": "option"
@@ -7692,7 +7767,7 @@
7692
7767
  },
7693
7768
  "hasDynamicHelp": false,
7694
7769
  "hiddenAliases": [],
7695
- "id": "segments:create",
7770
+ "id": "tags:delete",
7696
7771
  "pluginAlias": "@instantkom/cli",
7697
7772
  "pluginName": "@instantkom/cli",
7698
7773
  "pluginType": "core",
@@ -7702,20 +7777,14 @@
7702
7777
  "relativePath": [
7703
7778
  "dist",
7704
7779
  "commands",
7705
- "segments",
7706
- "create.js"
7780
+ "tags",
7781
+ "delete.js"
7707
7782
  ]
7708
7783
  },
7709
- "segments:delete": {
7784
+ "tags:export": {
7710
7785
  "aliases": [],
7711
- "args": {
7712
- "id": {
7713
- "description": "segment ID",
7714
- "name": "id",
7715
- "required": true
7716
- }
7717
- },
7718
- "description": "Delete segment",
7786
+ "args": {},
7787
+ "description": "Export tags to a file",
7719
7788
  "flags": {
7720
7789
  "api-key": {
7721
7790
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7727,17 +7796,14 @@
7727
7796
  "type": "option"
7728
7797
  },
7729
7798
  "format": {
7730
- "description": "Output format: text, json, yaml, or table",
7731
- "helpGroup": "GLOBAL",
7799
+ "description": "Export format",
7732
7800
  "name": "format",
7733
- "default": "text",
7801
+ "default": "csv",
7734
7802
  "hasDynamicHelp": false,
7735
7803
  "multiple": false,
7736
7804
  "options": [
7737
- "text",
7738
- "json",
7739
- "yaml",
7740
- "table"
7805
+ "csv",
7806
+ "json"
7741
7807
  ],
7742
7808
  "type": "option"
7743
7809
  },
@@ -7778,11 +7844,19 @@
7778
7844
  "hasDynamicHelp": false,
7779
7845
  "multiple": false,
7780
7846
  "type": "option"
7847
+ },
7848
+ "file": {
7849
+ "description": "Output file path",
7850
+ "name": "file",
7851
+ "required": true,
7852
+ "hasDynamicHelp": false,
7853
+ "multiple": false,
7854
+ "type": "option"
7781
7855
  }
7782
7856
  },
7783
7857
  "hasDynamicHelp": false,
7784
7858
  "hiddenAliases": [],
7785
- "id": "segments:delete",
7859
+ "id": "tags:export",
7786
7860
  "pluginAlias": "@instantkom/cli",
7787
7861
  "pluginName": "@instantkom/cli",
7788
7862
  "pluginType": "core",
@@ -7792,20 +7866,20 @@
7792
7866
  "relativePath": [
7793
7867
  "dist",
7794
7868
  "commands",
7795
- "segments",
7796
- "delete.js"
7869
+ "tags",
7870
+ "export.js"
7797
7871
  ]
7798
7872
  },
7799
- "segments:get": {
7873
+ "tags:get": {
7800
7874
  "aliases": [],
7801
7875
  "args": {
7802
7876
  "id": {
7803
- "description": "segment ID",
7877
+ "description": "tag ID",
7804
7878
  "name": "id",
7805
7879
  "required": true
7806
7880
  }
7807
7881
  },
7808
- "description": "Get segment by ID",
7882
+ "description": "Get tag by ID",
7809
7883
  "flags": {
7810
7884
  "api-key": {
7811
7885
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7872,7 +7946,7 @@
7872
7946
  },
7873
7947
  "hasDynamicHelp": false,
7874
7948
  "hiddenAliases": [],
7875
- "id": "segments:get",
7949
+ "id": "tags:get",
7876
7950
  "pluginAlias": "@instantkom/cli",
7877
7951
  "pluginName": "@instantkom/cli",
7878
7952
  "pluginType": "core",
@@ -7882,14 +7956,14 @@
7882
7956
  "relativePath": [
7883
7957
  "dist",
7884
7958
  "commands",
7885
- "segments",
7959
+ "tags",
7886
7960
  "get.js"
7887
7961
  ]
7888
7962
  },
7889
- "segments:list": {
7963
+ "tags:import": {
7890
7964
  "aliases": [],
7891
7965
  "args": {},
7892
- "description": "List segments",
7966
+ "description": "Import tags from JSON",
7893
7967
  "flags": {
7894
7968
  "api-key": {
7895
7969
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7953,58 +8027,24 @@
7953
8027
  "multiple": false,
7954
8028
  "type": "option"
7955
8029
  },
7956
- "page": {
7957
- "description": "Page number",
7958
- "name": "page",
7959
- "default": 1,
7960
- "hasDynamicHelp": false,
7961
- "multiple": false,
7962
- "type": "option"
7963
- },
7964
- "limit": {
7965
- "description": "Items per page",
7966
- "name": "limit",
7967
- "default": 20,
7968
- "hasDynamicHelp": false,
7969
- "multiple": false,
7970
- "type": "option"
7971
- },
7972
- "channel": {
7973
- "description": "Filter by channel ID",
7974
- "name": "channel",
7975
- "hasDynamicHelp": false,
7976
- "multiple": false,
7977
- "type": "option"
7978
- },
7979
- "search": {
7980
- "description": "Search by name",
7981
- "name": "search",
7982
- "hasDynamicHelp": false,
7983
- "multiple": false,
7984
- "type": "option"
7985
- },
7986
- "tags": {
7987
- "description": "Comma-separated tag IDs",
7988
- "name": "tags",
8030
+ "file": {
8031
+ "description": "JSON file path",
8032
+ "name": "file",
8033
+ "required": true,
7989
8034
  "hasDynamicHelp": false,
7990
8035
  "multiple": false,
7991
8036
  "type": "option"
7992
8037
  },
7993
- "tag-match-mode": {
7994
- "description": "Tag match mode",
7995
- "name": "tag-match-mode",
7996
- "hasDynamicHelp": false,
7997
- "multiple": false,
7998
- "options": [
7999
- "any",
8000
- "all"
8001
- ],
8002
- "type": "option"
8038
+ "skip-duplicates": {
8039
+ "description": "Skip duplicate tags",
8040
+ "name": "skip-duplicates",
8041
+ "allowNo": true,
8042
+ "type": "boolean"
8003
8043
  }
8004
8044
  },
8005
8045
  "hasDynamicHelp": false,
8006
8046
  "hiddenAliases": [],
8007
- "id": "segments:list",
8047
+ "id": "tags:import",
8008
8048
  "pluginAlias": "@instantkom/cli",
8009
8049
  "pluginName": "@instantkom/cli",
8010
8050
  "pluginType": "core",
@@ -8014,20 +8054,14 @@
8014
8054
  "relativePath": [
8015
8055
  "dist",
8016
8056
  "commands",
8017
- "segments",
8018
- "list.js"
8057
+ "tags",
8058
+ "import.js"
8019
8059
  ]
8020
8060
  },
8021
- "segments:update": {
8061
+ "tags:list": {
8022
8062
  "aliases": [],
8023
- "args": {
8024
- "id": {
8025
- "description": "Segment ID",
8026
- "name": "id",
8027
- "required": true
8028
- }
8029
- },
8030
- "description": "Update a segment",
8063
+ "args": {},
8064
+ "description": "List tags",
8031
8065
  "flags": {
8032
8066
  "api-key": {
8033
8067
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8091,44 +8125,32 @@
8091
8125
  "multiple": false,
8092
8126
  "type": "option"
8093
8127
  },
8094
- "name": {
8095
- "description": "Segment name",
8096
- "name": "name",
8097
- "hasDynamicHelp": false,
8098
- "multiple": false,
8099
- "type": "option"
8100
- },
8101
- "description": {
8102
- "description": "Segment description",
8103
- "name": "description",
8104
- "hasDynamicHelp": false,
8105
- "multiple": false,
8106
- "type": "option"
8107
- },
8108
- "color": {
8109
- "description": "Segment color as HEX",
8110
- "name": "color",
8128
+ "page": {
8129
+ "description": "Page number",
8130
+ "name": "page",
8131
+ "default": 1,
8111
8132
  "hasDynamicHelp": false,
8112
8133
  "multiple": false,
8113
8134
  "type": "option"
8114
8135
  },
8115
- "tags": {
8116
- "description": "Tags for filtering recipients",
8117
- "name": "tags",
8136
+ "limit": {
8137
+ "description": "Items per page",
8138
+ "name": "limit",
8139
+ "default": 20,
8118
8140
  "hasDynamicHelp": false,
8119
8141
  "multiple": false,
8120
8142
  "type": "option"
8121
8143
  },
8122
- "folder": {
8123
- "description": "Object folder ID",
8124
- "name": "folder",
8144
+ "search": {
8145
+ "description": "Search by name",
8146
+ "name": "search",
8125
8147
  "hasDynamicHelp": false,
8126
8148
  "multiple": false,
8127
8149
  "type": "option"
8128
8150
  },
8129
- "data": {
8130
- "description": "Additional JSON object payload",
8131
- "name": "data",
8151
+ "color": {
8152
+ "description": "Filter by color",
8153
+ "name": "color",
8132
8154
  "hasDynamicHelp": false,
8133
8155
  "multiple": false,
8134
8156
  "type": "option"
@@ -8136,7 +8158,7 @@
8136
8158
  },
8137
8159
  "hasDynamicHelp": false,
8138
8160
  "hiddenAliases": [],
8139
- "id": "segments:update",
8161
+ "id": "tags:list",
8140
8162
  "pluginAlias": "@instantkom/cli",
8141
8163
  "pluginName": "@instantkom/cli",
8142
8164
  "pluginType": "core",
@@ -8146,14 +8168,20 @@
8146
8168
  "relativePath": [
8147
8169
  "dist",
8148
8170
  "commands",
8149
- "segments",
8150
- "update.js"
8171
+ "tags",
8172
+ "list.js"
8151
8173
  ]
8152
8174
  },
8153
- "templates:create": {
8175
+ "tags:update": {
8154
8176
  "aliases": [],
8155
- "args": {},
8156
- "description": "Create a message template",
8177
+ "args": {
8178
+ "id": {
8179
+ "description": "Tag ID",
8180
+ "name": "id",
8181
+ "required": true
8182
+ }
8183
+ },
8184
+ "description": "Update a tag",
8157
8185
  "flags": {
8158
8186
  "api-key": {
8159
8187
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8217,78 +8245,30 @@
8217
8245
  "multiple": false,
8218
8246
  "type": "option"
8219
8247
  },
8220
- "channel": {
8221
- "description": "Channel ID",
8222
- "name": "channel",
8223
- "required": true,
8224
- "hasDynamicHelp": false,
8225
- "multiple": false,
8226
- "type": "option"
8227
- },
8228
8248
  "name": {
8229
- "description": "Template name",
8249
+ "description": "Tag name",
8230
8250
  "name": "name",
8231
- "required": true,
8232
- "hasDynamicHelp": false,
8233
- "multiple": false,
8234
- "type": "option"
8235
- },
8236
- "type": {
8237
- "description": "Template type",
8238
- "name": "type",
8239
- "default": "text",
8240
8251
  "hasDynamicHelp": false,
8241
8252
  "multiple": false,
8242
- "options": [
8243
- "text",
8244
- "image",
8245
- "video",
8246
- "document",
8247
- "audio",
8248
- "location",
8249
- "contact",
8250
- "interactive"
8251
- ],
8252
8253
  "type": "option"
8253
8254
  },
8254
- "message": {
8255
- "description": "Template message",
8256
- "name": "message",
8257
- "required": true,
8255
+ "description": {
8256
+ "description": "Tag description",
8257
+ "name": "description",
8258
8258
  "hasDynamicHelp": false,
8259
8259
  "multiple": false,
8260
8260
  "type": "option"
8261
8261
  },
8262
8262
  "color": {
8263
- "description": "Template color as HEX",
8263
+ "description": "Tag color as HEX",
8264
8264
  "name": "color",
8265
8265
  "hasDynamicHelp": false,
8266
8266
  "multiple": false,
8267
8267
  "type": "option"
8268
8268
  },
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",
8278
- "hasDynamicHelp": false,
8279
- "multiple": false,
8280
- "type": "option"
8281
- },
8282
- "buttons": {
8283
- "description": "Buttons JSON array/object",
8284
- "name": "buttons",
8285
- "hasDynamicHelp": false,
8286
- "multiple": false,
8287
- "type": "option"
8288
- },
8289
- "header-footer": {
8290
- "description": "Header/footer JSON object",
8291
- "name": "header-footer",
8269
+ "folder": {
8270
+ "description": "Object folder ID",
8271
+ "name": "folder",
8292
8272
  "hasDynamicHelp": false,
8293
8273
  "multiple": false,
8294
8274
  "type": "option"
@@ -8303,7 +8283,7 @@
8303
8283
  },
8304
8284
  "hasDynamicHelp": false,
8305
8285
  "hiddenAliases": [],
8306
- "id": "templates:create",
8286
+ "id": "tags:update",
8307
8287
  "pluginAlias": "@instantkom/cli",
8308
8288
  "pluginName": "@instantkom/cli",
8309
8289
  "pluginType": "core",
@@ -8313,20 +8293,14 @@
8313
8293
  "relativePath": [
8314
8294
  "dist",
8315
8295
  "commands",
8316
- "templates",
8317
- "create.js"
8296
+ "tags",
8297
+ "update.js"
8318
8298
  ]
8319
8299
  },
8320
- "templates:delete": {
8300
+ "tags:validate-import": {
8321
8301
  "aliases": [],
8322
- "args": {
8323
- "id": {
8324
- "description": "template ID",
8325
- "name": "id",
8326
- "required": true
8327
- }
8328
- },
8329
- "description": "Delete template",
8302
+ "args": {},
8303
+ "description": "Validate tags import JSON",
8330
8304
  "flags": {
8331
8305
  "api-key": {
8332
8306
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8389,11 +8363,19 @@
8389
8363
  "hasDynamicHelp": false,
8390
8364
  "multiple": false,
8391
8365
  "type": "option"
8366
+ },
8367
+ "file": {
8368
+ "description": "JSON file path",
8369
+ "name": "file",
8370
+ "required": true,
8371
+ "hasDynamicHelp": false,
8372
+ "multiple": false,
8373
+ "type": "option"
8392
8374
  }
8393
8375
  },
8394
8376
  "hasDynamicHelp": false,
8395
8377
  "hiddenAliases": [],
8396
- "id": "templates:delete",
8378
+ "id": "tags:validate-import",
8397
8379
  "pluginAlias": "@instantkom/cli",
8398
8380
  "pluginName": "@instantkom/cli",
8399
8381
  "pluginType": "core",
@@ -8403,14 +8385,14 @@
8403
8385
  "relativePath": [
8404
8386
  "dist",
8405
8387
  "commands",
8406
- "templates",
8407
- "delete.js"
8388
+ "tags",
8389
+ "validate-import.js"
8408
8390
  ]
8409
8391
  },
8410
- "templates:export": {
8392
+ "team:create": {
8411
8393
  "aliases": [],
8412
8394
  "args": {},
8413
- "description": "Export templates to a file",
8395
+ "description": "Create a team member",
8414
8396
  "flags": {
8415
8397
  "api-key": {
8416
8398
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8422,14 +8404,17 @@
8422
8404
  "type": "option"
8423
8405
  },
8424
8406
  "format": {
8425
- "description": "Export format",
8407
+ "description": "Output format: text, json, yaml, or table",
8408
+ "helpGroup": "GLOBAL",
8426
8409
  "name": "format",
8427
- "default": "json",
8410
+ "default": "text",
8428
8411
  "hasDynamicHelp": false,
8429
8412
  "multiple": false,
8430
8413
  "options": [
8431
- "csv",
8432
- "json"
8414
+ "text",
8415
+ "json",
8416
+ "yaml",
8417
+ "table"
8433
8418
  ],
8434
8419
  "type": "option"
8435
8420
  },
@@ -8471,17 +8456,69 @@
8471
8456
  "multiple": false,
8472
8457
  "type": "option"
8473
8458
  },
8474
- "file": {
8475
- "description": "Output file path",
8476
- "name": "file",
8459
+ "email": {
8460
+ "description": "Email address",
8461
+ "name": "email",
8477
8462
  "required": true,
8478
8463
  "hasDynamicHelp": false,
8479
8464
  "multiple": false,
8480
8465
  "type": "option"
8481
8466
  },
8482
- "channel": {
8483
- "description": "Filter by channel ID",
8484
- "name": "channel",
8467
+ "first-name": {
8468
+ "description": "First name",
8469
+ "name": "first-name",
8470
+ "required": true,
8471
+ "hasDynamicHelp": false,
8472
+ "multiple": false,
8473
+ "type": "option"
8474
+ },
8475
+ "last-name": {
8476
+ "description": "Last name",
8477
+ "name": "last-name",
8478
+ "required": true,
8479
+ "hasDynamicHelp": false,
8480
+ "multiple": false,
8481
+ "type": "option"
8482
+ },
8483
+ "password": {
8484
+ "description": "Initial password",
8485
+ "name": "password",
8486
+ "required": true,
8487
+ "hasDynamicHelp": false,
8488
+ "multiple": false,
8489
+ "type": "option"
8490
+ },
8491
+ "phone": {
8492
+ "description": "Phone number",
8493
+ "name": "phone",
8494
+ "hasDynamicHelp": false,
8495
+ "multiple": false,
8496
+ "type": "option"
8497
+ },
8498
+ "company": {
8499
+ "description": "Company name",
8500
+ "name": "company",
8501
+ "hasDynamicHelp": false,
8502
+ "multiple": false,
8503
+ "type": "option"
8504
+ },
8505
+ "color": {
8506
+ "description": "Color as HEX",
8507
+ "name": "color",
8508
+ "hasDynamicHelp": false,
8509
+ "multiple": false,
8510
+ "type": "option"
8511
+ },
8512
+ "folder": {
8513
+ "description": "Object folder ID",
8514
+ "name": "folder",
8515
+ "hasDynamicHelp": false,
8516
+ "multiple": false,
8517
+ "type": "option"
8518
+ },
8519
+ "data": {
8520
+ "description": "Additional JSON object payload",
8521
+ "name": "data",
8485
8522
  "hasDynamicHelp": false,
8486
8523
  "multiple": false,
8487
8524
  "type": "option"
@@ -8489,7 +8526,7 @@
8489
8526
  },
8490
8527
  "hasDynamicHelp": false,
8491
8528
  "hiddenAliases": [],
8492
- "id": "templates:export",
8529
+ "id": "team:create",
8493
8530
  "pluginAlias": "@instantkom/cli",
8494
8531
  "pluginName": "@instantkom/cli",
8495
8532
  "pluginType": "core",
@@ -8499,20 +8536,20 @@
8499
8536
  "relativePath": [
8500
8537
  "dist",
8501
8538
  "commands",
8502
- "templates",
8503
- "export.js"
8539
+ "team",
8540
+ "create.js"
8504
8541
  ]
8505
8542
  },
8506
- "templates:get": {
8543
+ "team:delete": {
8507
8544
  "aliases": [],
8508
8545
  "args": {
8509
8546
  "id": {
8510
- "description": "Template ID",
8547
+ "description": "Team member ID",
8511
8548
  "name": "id",
8512
8549
  "required": true
8513
8550
  }
8514
8551
  },
8515
- "description": "Get a message template by ID",
8552
+ "description": "Delete a team member",
8516
8553
  "flags": {
8517
8554
  "api-key": {
8518
8555
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8579,7 +8616,7 @@
8579
8616
  },
8580
8617
  "hasDynamicHelp": false,
8581
8618
  "hiddenAliases": [],
8582
- "id": "templates:get",
8619
+ "id": "team:delete",
8583
8620
  "pluginAlias": "@instantkom/cli",
8584
8621
  "pluginName": "@instantkom/cli",
8585
8622
  "pluginType": "core",
@@ -8589,14 +8626,14 @@
8589
8626
  "relativePath": [
8590
8627
  "dist",
8591
8628
  "commands",
8592
- "templates",
8593
- "get.js"
8629
+ "team",
8630
+ "delete.js"
8594
8631
  ]
8595
8632
  },
8596
- "templates:import": {
8633
+ "team:list": {
8597
8634
  "aliases": [],
8598
8635
  "args": {},
8599
- "description": "Import templates from JSON",
8636
+ "description": "List team members",
8600
8637
  "flags": {
8601
8638
  "api-key": {
8602
8639
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8659,33 +8696,11 @@
8659
8696
  "hasDynamicHelp": false,
8660
8697
  "multiple": false,
8661
8698
  "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
8699
  }
8685
8700
  },
8686
8701
  "hasDynamicHelp": false,
8687
8702
  "hiddenAliases": [],
8688
- "id": "templates:import",
8703
+ "id": "team:list",
8689
8704
  "pluginAlias": "@instantkom/cli",
8690
8705
  "pluginName": "@instantkom/cli",
8691
8706
  "pluginType": "core",
@@ -8695,14 +8710,14 @@
8695
8710
  "relativePath": [
8696
8711
  "dist",
8697
8712
  "commands",
8698
- "templates",
8699
- "import.js"
8713
+ "team",
8714
+ "list.js"
8700
8715
  ]
8701
8716
  },
8702
- "templates:list": {
8717
+ "templates:create": {
8703
8718
  "aliases": [],
8704
8719
  "args": {},
8705
- "description": "List message templates",
8720
+ "description": "Create a message template",
8706
8721
  "flags": {
8707
8722
  "api-key": {
8708
8723
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8767,31 +8782,84 @@
8767
8782
  "type": "option"
8768
8783
  },
8769
8784
  "channel": {
8770
- "description": "Filter by channel ID",
8785
+ "description": "Channel ID",
8771
8786
  "name": "channel",
8787
+ "required": true,
8772
8788
  "hasDynamicHelp": false,
8773
8789
  "multiple": false,
8774
8790
  "type": "option"
8775
8791
  },
8776
- "search": {
8777
- "description": "Search templates by name or content",
8778
- "name": "search",
8792
+ "name": {
8793
+ "description": "Template name",
8794
+ "name": "name",
8795
+ "required": true,
8779
8796
  "hasDynamicHelp": false,
8780
8797
  "multiple": false,
8781
8798
  "type": "option"
8782
8799
  },
8783
- "page": {
8784
- "description": "Page number",
8785
- "name": "page",
8786
- "default": 1,
8800
+ "type": {
8801
+ "description": "Template type",
8802
+ "name": "type",
8803
+ "default": "text",
8804
+ "hasDynamicHelp": false,
8805
+ "multiple": false,
8806
+ "options": [
8807
+ "text",
8808
+ "image",
8809
+ "video",
8810
+ "document",
8811
+ "audio",
8812
+ "location",
8813
+ "contact",
8814
+ "interactive"
8815
+ ],
8816
+ "type": "option"
8817
+ },
8818
+ "message": {
8819
+ "description": "Template message",
8820
+ "name": "message",
8821
+ "required": true,
8787
8822
  "hasDynamicHelp": false,
8788
8823
  "multiple": false,
8789
8824
  "type": "option"
8790
8825
  },
8791
- "limit": {
8792
- "description": "Items per page",
8793
- "name": "limit",
8794
- "default": 20,
8826
+ "color": {
8827
+ "description": "Template color as HEX",
8828
+ "name": "color",
8829
+ "hasDynamicHelp": false,
8830
+ "multiple": false,
8831
+ "type": "option"
8832
+ },
8833
+ "status": {
8834
+ "description": "Template is active",
8835
+ "name": "status",
8836
+ "allowNo": true,
8837
+ "type": "boolean"
8838
+ },
8839
+ "whatsapp-language": {
8840
+ "description": "WhatsApp template language",
8841
+ "name": "whatsapp-language",
8842
+ "hasDynamicHelp": false,
8843
+ "multiple": false,
8844
+ "type": "option"
8845
+ },
8846
+ "buttons": {
8847
+ "description": "Buttons JSON array/object",
8848
+ "name": "buttons",
8849
+ "hasDynamicHelp": false,
8850
+ "multiple": false,
8851
+ "type": "option"
8852
+ },
8853
+ "header-footer": {
8854
+ "description": "Header/footer JSON object",
8855
+ "name": "header-footer",
8856
+ "hasDynamicHelp": false,
8857
+ "multiple": false,
8858
+ "type": "option"
8859
+ },
8860
+ "data": {
8861
+ "description": "Additional JSON object payload",
8862
+ "name": "data",
8795
8863
  "hasDynamicHelp": false,
8796
8864
  "multiple": false,
8797
8865
  "type": "option"
@@ -8799,7 +8867,7 @@
8799
8867
  },
8800
8868
  "hasDynamicHelp": false,
8801
8869
  "hiddenAliases": [],
8802
- "id": "templates:list",
8870
+ "id": "templates:create",
8803
8871
  "pluginAlias": "@instantkom/cli",
8804
8872
  "pluginName": "@instantkom/cli",
8805
8873
  "pluginType": "core",
@@ -8810,19 +8878,19 @@
8810
8878
  "dist",
8811
8879
  "commands",
8812
8880
  "templates",
8813
- "list.js"
8881
+ "create.js"
8814
8882
  ]
8815
8883
  },
8816
- "templates:render": {
8884
+ "templates:delete": {
8817
8885
  "aliases": [],
8818
8886
  "args": {
8819
8887
  "id": {
8820
- "description": "Template ID",
8888
+ "description": "template ID",
8821
8889
  "name": "id",
8822
8890
  "required": true
8823
8891
  }
8824
8892
  },
8825
- "description": "Render a message template locally",
8893
+ "description": "Delete template",
8826
8894
  "flags": {
8827
8895
  "api-key": {
8828
8896
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8885,18 +8953,11 @@
8885
8953
  "hasDynamicHelp": false,
8886
8954
  "multiple": false,
8887
8955
  "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
8956
  }
8896
8957
  },
8897
8958
  "hasDynamicHelp": false,
8898
8959
  "hiddenAliases": [],
8899
- "id": "templates:render",
8960
+ "id": "templates:delete",
8900
8961
  "pluginAlias": "@instantkom/cli",
8901
8962
  "pluginName": "@instantkom/cli",
8902
8963
  "pluginType": "core",
@@ -8907,19 +8968,13 @@
8907
8968
  "dist",
8908
8969
  "commands",
8909
8970
  "templates",
8910
- "render.js"
8971
+ "delete.js"
8911
8972
  ]
8912
8973
  },
8913
- "templates:update": {
8974
+ "templates:export": {
8914
8975
  "aliases": [],
8915
- "args": {
8916
- "id": {
8917
- "description": "Template ID",
8918
- "name": "id",
8919
- "required": true
8920
- }
8921
- },
8922
- "description": "Update a message template",
8976
+ "args": {},
8977
+ "description": "Export templates to a file",
8923
8978
  "flags": {
8924
8979
  "api-key": {
8925
8980
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8931,17 +8986,14 @@
8931
8986
  "type": "option"
8932
8987
  },
8933
8988
  "format": {
8934
- "description": "Output format: text, json, yaml, or table",
8935
- "helpGroup": "GLOBAL",
8989
+ "description": "Export format",
8936
8990
  "name": "format",
8937
- "default": "text",
8991
+ "default": "json",
8938
8992
  "hasDynamicHelp": false,
8939
8993
  "multiple": false,
8940
8994
  "options": [
8941
- "text",
8942
- "json",
8943
- "yaml",
8944
- "table"
8995
+ "csv",
8996
+ "json"
8945
8997
  ],
8946
8998
  "type": "option"
8947
8999
  },
@@ -8983,80 +9035,17 @@
8983
9035
  "multiple": false,
8984
9036
  "type": "option"
8985
9037
  },
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",
9013
- "hasDynamicHelp": false,
9014
- "multiple": false,
9015
- "type": "option"
9016
- },
9017
- "color": {
9018
- "description": "Template color as HEX",
9019
- "name": "color",
9020
- "hasDynamicHelp": false,
9021
- "multiple": false,
9022
- "type": "option"
9023
- },
9024
- "status": {
9025
- "description": "Template is active",
9026
- "name": "status",
9027
- "allowNo": true,
9028
- "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",
9038
+ "file": {
9039
+ "description": "Output file path",
9040
+ "name": "file",
9041
+ "required": true,
9053
9042
  "hasDynamicHelp": false,
9054
9043
  "multiple": false,
9055
9044
  "type": "option"
9056
9045
  },
9057
- "data": {
9058
- "description": "Additional JSON object payload",
9059
- "name": "data",
9046
+ "channel": {
9047
+ "description": "Filter by channel ID",
9048
+ "name": "channel",
9060
9049
  "hasDynamicHelp": false,
9061
9050
  "multiple": false,
9062
9051
  "type": "option"
@@ -9064,7 +9053,7 @@
9064
9053
  },
9065
9054
  "hasDynamicHelp": false,
9066
9055
  "hiddenAliases": [],
9067
- "id": "templates:update",
9056
+ "id": "templates:export",
9068
9057
  "pluginAlias": "@instantkom/cli",
9069
9058
  "pluginName": "@instantkom/cli",
9070
9059
  "pluginType": "core",
@@ -9075,13 +9064,19 @@
9075
9064
  "dist",
9076
9065
  "commands",
9077
9066
  "templates",
9078
- "update.js"
9067
+ "export.js"
9079
9068
  ]
9080
9069
  },
9081
- "templates:validate-import": {
9070
+ "templates:get": {
9082
9071
  "aliases": [],
9083
- "args": {},
9084
- "description": "Validate templates import JSON",
9072
+ "args": {
9073
+ "id": {
9074
+ "description": "Template ID",
9075
+ "name": "id",
9076
+ "required": true
9077
+ }
9078
+ },
9079
+ "description": "Get a message template by ID",
9085
9080
  "flags": {
9086
9081
  "api-key": {
9087
9082
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9144,27 +9139,11 @@
9144
9139
  "hasDynamicHelp": false,
9145
9140
  "multiple": false,
9146
9141
  "type": "option"
9147
- },
9148
- "file": {
9149
- "description": "JSON file path",
9150
- "name": "file",
9151
- "required": true,
9152
- "hasDynamicHelp": false,
9153
- "multiple": false,
9154
- "type": "option"
9155
- },
9156
- "channel": {
9157
- "description": "Target channel ID",
9158
- "name": "channel",
9159
- "required": true,
9160
- "hasDynamicHelp": false,
9161
- "multiple": false,
9162
- "type": "option"
9163
9142
  }
9164
9143
  },
9165
9144
  "hasDynamicHelp": false,
9166
9145
  "hiddenAliases": [],
9167
- "id": "templates:validate-import",
9146
+ "id": "templates:get",
9168
9147
  "pluginAlias": "@instantkom/cli",
9169
9148
  "pluginName": "@instantkom/cli",
9170
9149
  "pluginType": "core",
@@ -9175,13 +9154,13 @@
9175
9154
  "dist",
9176
9155
  "commands",
9177
9156
  "templates",
9178
- "validate-import.js"
9157
+ "get.js"
9179
9158
  ]
9180
9159
  },
9181
- "tickets:create": {
9160
+ "templates:import": {
9182
9161
  "aliases": [],
9183
9162
  "args": {},
9184
- "description": "Create a ticket",
9163
+ "description": "Import templates from JSON",
9185
9164
  "flags": {
9186
9165
  "api-key": {
9187
9166
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9245,68 +9224,32 @@
9245
9224
  "multiple": false,
9246
9225
  "type": "option"
9247
9226
  },
9248
- "channel": {
9249
- "description": "Channel ID",
9250
- "name": "channel",
9227
+ "file": {
9228
+ "description": "JSON file path",
9229
+ "name": "file",
9251
9230
  "required": true,
9252
9231
  "hasDynamicHelp": false,
9253
9232
  "multiple": false,
9254
9233
  "type": "option"
9255
9234
  },
9256
- "subject": {
9257
- "description": "Ticket subject",
9258
- "name": "subject",
9235
+ "channel": {
9236
+ "description": "Target channel ID",
9237
+ "name": "channel",
9259
9238
  "required": true,
9260
9239
  "hasDynamicHelp": false,
9261
9240
  "multiple": false,
9262
9241
  "type": "option"
9263
9242
  },
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",
9302
- "hasDynamicHelp": false,
9303
- "multiple": false,
9304
- "type": "option"
9243
+ "skip-duplicates": {
9244
+ "description": "Skip duplicate templates",
9245
+ "name": "skip-duplicates",
9246
+ "allowNo": true,
9247
+ "type": "boolean"
9305
9248
  }
9306
9249
  },
9307
9250
  "hasDynamicHelp": false,
9308
9251
  "hiddenAliases": [],
9309
- "id": "tickets:create",
9252
+ "id": "templates:import",
9310
9253
  "pluginAlias": "@instantkom/cli",
9311
9254
  "pluginName": "@instantkom/cli",
9312
9255
  "pluginType": "core",
@@ -9316,20 +9259,14 @@
9316
9259
  "relativePath": [
9317
9260
  "dist",
9318
9261
  "commands",
9319
- "tickets",
9320
- "create.js"
9262
+ "templates",
9263
+ "import.js"
9321
9264
  ]
9322
9265
  },
9323
- "tickets:delete": {
9266
+ "templates:list": {
9324
9267
  "aliases": [],
9325
- "args": {
9326
- "id": {
9327
- "description": "Ticket ID",
9328
- "name": "id",
9329
- "required": true
9330
- }
9331
- },
9332
- "description": "Delete a ticket",
9268
+ "args": {},
9269
+ "description": "List message templates",
9333
9270
  "flags": {
9334
9271
  "api-key": {
9335
9272
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9394,9 +9331,31 @@
9394
9331
  "type": "option"
9395
9332
  },
9396
9333
  "channel": {
9397
- "description": "Channel ID",
9334
+ "description": "Filter by channel ID",
9398
9335
  "name": "channel",
9399
- "required": true,
9336
+ "hasDynamicHelp": false,
9337
+ "multiple": false,
9338
+ "type": "option"
9339
+ },
9340
+ "search": {
9341
+ "description": "Search templates by name or content",
9342
+ "name": "search",
9343
+ "hasDynamicHelp": false,
9344
+ "multiple": false,
9345
+ "type": "option"
9346
+ },
9347
+ "page": {
9348
+ "description": "Page number",
9349
+ "name": "page",
9350
+ "default": 1,
9351
+ "hasDynamicHelp": false,
9352
+ "multiple": false,
9353
+ "type": "option"
9354
+ },
9355
+ "limit": {
9356
+ "description": "Items per page",
9357
+ "name": "limit",
9358
+ "default": 20,
9400
9359
  "hasDynamicHelp": false,
9401
9360
  "multiple": false,
9402
9361
  "type": "option"
@@ -9404,7 +9363,7 @@
9404
9363
  },
9405
9364
  "hasDynamicHelp": false,
9406
9365
  "hiddenAliases": [],
9407
- "id": "tickets:delete",
9366
+ "id": "templates:list",
9408
9367
  "pluginAlias": "@instantkom/cli",
9409
9368
  "pluginName": "@instantkom/cli",
9410
9369
  "pluginType": "core",
@@ -9414,20 +9373,20 @@
9414
9373
  "relativePath": [
9415
9374
  "dist",
9416
9375
  "commands",
9417
- "tickets",
9418
- "delete.js"
9376
+ "templates",
9377
+ "list.js"
9419
9378
  ]
9420
9379
  },
9421
- "tickets:get": {
9380
+ "templates:render": {
9422
9381
  "aliases": [],
9423
9382
  "args": {
9424
9383
  "id": {
9425
- "description": "Ticket ID",
9384
+ "description": "Template ID",
9426
9385
  "name": "id",
9427
9386
  "required": true
9428
9387
  }
9429
9388
  },
9430
- "description": "Get a ticket by ID",
9389
+ "description": "Render a message template locally",
9431
9390
  "flags": {
9432
9391
  "api-key": {
9433
9392
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9491,18 +9450,17 @@
9491
9450
  "multiple": false,
9492
9451
  "type": "option"
9493
9452
  },
9494
- "channel": {
9495
- "description": "Channel ID",
9496
- "name": "channel",
9497
- "required": true,
9453
+ "vars": {
9454
+ "description": "Template variable as key=value; may be repeated",
9455
+ "name": "vars",
9498
9456
  "hasDynamicHelp": false,
9499
- "multiple": false,
9457
+ "multiple": true,
9500
9458
  "type": "option"
9501
9459
  }
9502
9460
  },
9503
9461
  "hasDynamicHelp": false,
9504
9462
  "hiddenAliases": [],
9505
- "id": "tickets:get",
9463
+ "id": "templates:render",
9506
9464
  "pluginAlias": "@instantkom/cli",
9507
9465
  "pluginName": "@instantkom/cli",
9508
9466
  "pluginType": "core",
@@ -9512,14 +9470,20 @@
9512
9470
  "relativePath": [
9513
9471
  "dist",
9514
9472
  "commands",
9515
- "tickets",
9516
- "get.js"
9473
+ "templates",
9474
+ "render.js"
9517
9475
  ]
9518
9476
  },
9519
- "tickets:list": {
9477
+ "templates:update": {
9520
9478
  "aliases": [],
9521
- "args": {},
9522
- "description": "List tickets for a channel",
9479
+ "args": {
9480
+ "id": {
9481
+ "description": "Template ID",
9482
+ "name": "id",
9483
+ "required": true
9484
+ }
9485
+ },
9486
+ "description": "Update a message template",
9523
9487
  "flags": {
9524
9488
  "api-key": {
9525
9489
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9583,26 +9547,80 @@
9583
9547
  "multiple": false,
9584
9548
  "type": "option"
9585
9549
  },
9586
- "channel": {
9587
- "description": "Channel ID",
9588
- "name": "channel",
9589
- "required": true,
9550
+ "name": {
9551
+ "description": "Template name",
9552
+ "name": "name",
9590
9553
  "hasDynamicHelp": false,
9591
9554
  "multiple": false,
9592
9555
  "type": "option"
9593
9556
  },
9594
- "limit": {
9595
- "description": "Maximum tickets to return",
9596
- "name": "limit",
9597
- "default": 500,
9557
+ "type": {
9558
+ "description": "Template type",
9559
+ "name": "type",
9598
9560
  "hasDynamicHelp": false,
9599
9561
  "multiple": false,
9562
+ "options": [
9563
+ "text",
9564
+ "image",
9565
+ "video",
9566
+ "document",
9567
+ "audio",
9568
+ "location",
9569
+ "contact",
9570
+ "interactive"
9571
+ ],
9600
9572
  "type": "option"
9601
9573
  },
9602
- "offset": {
9603
- "description": "Number of tickets to skip",
9604
- "name": "offset",
9605
- "default": 0,
9574
+ "message": {
9575
+ "description": "Template message",
9576
+ "name": "message",
9577
+ "hasDynamicHelp": false,
9578
+ "multiple": false,
9579
+ "type": "option"
9580
+ },
9581
+ "color": {
9582
+ "description": "Template color as HEX",
9583
+ "name": "color",
9584
+ "hasDynamicHelp": false,
9585
+ "multiple": false,
9586
+ "type": "option"
9587
+ },
9588
+ "status": {
9589
+ "description": "Template is active",
9590
+ "name": "status",
9591
+ "allowNo": true,
9592
+ "type": "boolean"
9593
+ },
9594
+ "remove-media": {
9595
+ "description": "Remove existing media",
9596
+ "name": "remove-media",
9597
+ "allowNo": false,
9598
+ "type": "boolean"
9599
+ },
9600
+ "whatsapp-language": {
9601
+ "description": "WhatsApp template language",
9602
+ "name": "whatsapp-language",
9603
+ "hasDynamicHelp": false,
9604
+ "multiple": false,
9605
+ "type": "option"
9606
+ },
9607
+ "buttons": {
9608
+ "description": "Buttons JSON array/object",
9609
+ "name": "buttons",
9610
+ "hasDynamicHelp": false,
9611
+ "multiple": false,
9612
+ "type": "option"
9613
+ },
9614
+ "header-footer": {
9615
+ "description": "Header/footer JSON object",
9616
+ "name": "header-footer",
9617
+ "hasDynamicHelp": false,
9618
+ "multiple": false,
9619
+ "type": "option"
9620
+ },
9621
+ "data": {
9622
+ "description": "Additional JSON object payload",
9623
+ "name": "data",
9606
9624
  "hasDynamicHelp": false,
9607
9625
  "multiple": false,
9608
9626
  "type": "option"
@@ -9610,7 +9628,7 @@
9610
9628
  },
9611
9629
  "hasDynamicHelp": false,
9612
9630
  "hiddenAliases": [],
9613
- "id": "tickets:list",
9631
+ "id": "templates:update",
9614
9632
  "pluginAlias": "@instantkom/cli",
9615
9633
  "pluginName": "@instantkom/cli",
9616
9634
  "pluginType": "core",
@@ -9620,20 +9638,14 @@
9620
9638
  "relativePath": [
9621
9639
  "dist",
9622
9640
  "commands",
9623
- "tickets",
9624
- "list.js"
9641
+ "templates",
9642
+ "update.js"
9625
9643
  ]
9626
9644
  },
9627
- "tickets:reply": {
9645
+ "templates:validate-import": {
9628
9646
  "aliases": [],
9629
- "args": {
9630
- "id": {
9631
- "description": "Ticket ID",
9632
- "name": "id",
9633
- "required": true
9634
- }
9635
- },
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.",
9647
+ "args": {},
9648
+ "description": "Validate templates import JSON",
9637
9649
  "flags": {
9638
9650
  "api-key": {
9639
9651
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9697,24 +9709,26 @@
9697
9709
  "multiple": false,
9698
9710
  "type": "option"
9699
9711
  },
9700
- "message": {
9701
- "description": "Reply body (raw text, no salutation or sign-off)",
9702
- "name": "message",
9712
+ "file": {
9713
+ "description": "JSON file path",
9714
+ "name": "file",
9703
9715
  "required": true,
9704
9716
  "hasDynamicHelp": false,
9705
9717
  "multiple": false,
9706
9718
  "type": "option"
9707
9719
  },
9708
- "close": {
9709
- "description": "Close the ticket after sending the reply",
9710
- "name": "close",
9711
- "allowNo": false,
9712
- "type": "boolean"
9720
+ "channel": {
9721
+ "description": "Target channel ID",
9722
+ "name": "channel",
9723
+ "required": true,
9724
+ "hasDynamicHelp": false,
9725
+ "multiple": false,
9726
+ "type": "option"
9713
9727
  }
9714
9728
  },
9715
9729
  "hasDynamicHelp": false,
9716
9730
  "hiddenAliases": [],
9717
- "id": "tickets:reply",
9731
+ "id": "templates:validate-import",
9718
9732
  "pluginAlias": "@instantkom/cli",
9719
9733
  "pluginName": "@instantkom/cli",
9720
9734
  "pluginType": "core",
@@ -9724,20 +9738,14 @@
9724
9738
  "relativePath": [
9725
9739
  "dist",
9726
9740
  "commands",
9727
- "tickets",
9728
- "reply.js"
9741
+ "templates",
9742
+ "validate-import.js"
9729
9743
  ]
9730
9744
  },
9731
- "tickets:update": {
9745
+ "tickets:create": {
9732
9746
  "aliases": [],
9733
- "args": {
9734
- "id": {
9735
- "description": "Ticket ID",
9736
- "name": "id",
9737
- "required": true
9738
- }
9739
- },
9740
- "description": "Update a ticket",
9747
+ "args": {},
9748
+ "description": "Create a ticket",
9741
9749
  "flags": {
9742
9750
  "api-key": {
9743
9751
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9812,36 +9820,45 @@
9812
9820
  "subject": {
9813
9821
  "description": "Ticket subject",
9814
9822
  "name": "subject",
9823
+ "required": true,
9815
9824
  "hasDynamicHelp": false,
9816
9825
  "multiple": false,
9817
9826
  "type": "option"
9818
9827
  },
9819
- "priority": {
9820
- "description": "Ticket priority",
9821
- "name": "priority",
9828
+ "recipient": {
9829
+ "description": "Existing recipient ID",
9830
+ "name": "recipient",
9822
9831
  "hasDynamicHelp": false,
9823
9832
  "multiple": false,
9824
9833
  "type": "option"
9825
9834
  },
9826
- "status": {
9827
- "description": "Ticket status",
9828
- "name": "status",
9835
+ "email": {
9836
+ "description": "Customer email",
9837
+ "name": "email",
9829
9838
  "hasDynamicHelp": false,
9830
9839
  "multiple": false,
9831
9840
  "type": "option"
9832
9841
  },
9833
- "assigned-to": {
9834
- "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
9835
- "name": "assigned-to",
9842
+ "name": {
9843
+ "description": "Customer name",
9844
+ "name": "name",
9836
9845
  "hasDynamicHelp": false,
9837
9846
  "multiple": false,
9838
9847
  "type": "option"
9839
9848
  },
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"
9849
+ "priority": {
9850
+ "description": "Ticket priority",
9851
+ "name": "priority",
9852
+ "hasDynamicHelp": false,
9853
+ "multiple": false,
9854
+ "type": "option"
9855
+ },
9856
+ "source": {
9857
+ "description": "Ticket source",
9858
+ "name": "source",
9859
+ "hasDynamicHelp": false,
9860
+ "multiple": false,
9861
+ "type": "option"
9845
9862
  },
9846
9863
  "data": {
9847
9864
  "description": "Additional JSON object payload",
@@ -9853,7 +9870,7 @@
9853
9870
  },
9854
9871
  "hasDynamicHelp": false,
9855
9872
  "hiddenAliases": [],
9856
- "id": "tickets:update",
9873
+ "id": "tickets:create",
9857
9874
  "pluginAlias": "@instantkom/cli",
9858
9875
  "pluginName": "@instantkom/cli",
9859
9876
  "pluginType": "core",
@@ -9864,13 +9881,19 @@
9864
9881
  "dist",
9865
9882
  "commands",
9866
9883
  "tickets",
9867
- "update.js"
9884
+ "create.js"
9868
9885
  ]
9869
9886
  },
9870
- "webhooks:add": {
9887
+ "tickets:delete": {
9871
9888
  "aliases": [],
9872
- "args": {},
9873
- "description": "Add a webhook subscription",
9889
+ "args": {
9890
+ "id": {
9891
+ "description": "Ticket ID",
9892
+ "name": "id",
9893
+ "required": true
9894
+ }
9895
+ },
9896
+ "description": "Delete a ticket",
9874
9897
  "flags": {
9875
9898
  "api-key": {
9876
9899
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9934,24 +9957,9 @@
9934
9957
  "multiple": false,
9935
9958
  "type": "option"
9936
9959
  },
9937
- "event": {
9938
- "description": "Webhook event to subscribe to",
9939
- "name": "event",
9940
- "required": true,
9941
- "hasDynamicHelp": false,
9942
- "multiple": false,
9943
- "options": [
9944
- "new_contact",
9945
- "new_message",
9946
- "broadcast_sent",
9947
- "contact_updated",
9948
- "contact_opted_out"
9949
- ],
9950
- "type": "option"
9951
- },
9952
- "url": {
9953
- "description": "HTTPS target URL that receives webhook POSTs",
9954
- "name": "url",
9960
+ "channel": {
9961
+ "description": "Channel ID",
9962
+ "name": "channel",
9955
9963
  "required": true,
9956
9964
  "hasDynamicHelp": false,
9957
9965
  "multiple": false,
@@ -9960,7 +9968,7 @@
9960
9968
  },
9961
9969
  "hasDynamicHelp": false,
9962
9970
  "hiddenAliases": [],
9963
- "id": "webhooks:add",
9971
+ "id": "tickets:delete",
9964
9972
  "pluginAlias": "@instantkom/cli",
9965
9973
  "pluginName": "@instantkom/cli",
9966
9974
  "pluginType": "core",
@@ -9970,14 +9978,20 @@
9970
9978
  "relativePath": [
9971
9979
  "dist",
9972
9980
  "commands",
9973
- "webhooks",
9974
- "add.js"
9981
+ "tickets",
9982
+ "delete.js"
9975
9983
  ]
9976
9984
  },
9977
- "webhooks:events": {
9985
+ "tickets:get": {
9978
9986
  "aliases": [],
9979
- "args": {},
9980
- "description": "List supported webhook event names",
9987
+ "args": {
9988
+ "id": {
9989
+ "description": "Ticket ID",
9990
+ "name": "id",
9991
+ "required": true
9992
+ }
9993
+ },
9994
+ "description": "Get a ticket by ID",
9981
9995
  "flags": {
9982
9996
  "api-key": {
9983
9997
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10040,11 +10054,19 @@
10040
10054
  "hasDynamicHelp": false,
10041
10055
  "multiple": false,
10042
10056
  "type": "option"
10057
+ },
10058
+ "channel": {
10059
+ "description": "Channel ID",
10060
+ "name": "channel",
10061
+ "required": true,
10062
+ "hasDynamicHelp": false,
10063
+ "multiple": false,
10064
+ "type": "option"
10043
10065
  }
10044
10066
  },
10045
10067
  "hasDynamicHelp": false,
10046
10068
  "hiddenAliases": [],
10047
- "id": "webhooks:events",
10069
+ "id": "tickets:get",
10048
10070
  "pluginAlias": "@instantkom/cli",
10049
10071
  "pluginName": "@instantkom/cli",
10050
10072
  "pluginType": "core",
@@ -10054,14 +10076,14 @@
10054
10076
  "relativePath": [
10055
10077
  "dist",
10056
10078
  "commands",
10057
- "webhooks",
10058
- "events.js"
10079
+ "tickets",
10080
+ "get.js"
10059
10081
  ]
10060
10082
  },
10061
- "webhooks:list": {
10083
+ "tickets:list": {
10062
10084
  "aliases": [],
10063
10085
  "args": {},
10064
- "description": "List webhook subscriptions",
10086
+ "description": "List tickets for a channel",
10065
10087
  "flags": {
10066
10088
  "api-key": {
10067
10089
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10124,11 +10146,35 @@
10124
10146
  "hasDynamicHelp": false,
10125
10147
  "multiple": false,
10126
10148
  "type": "option"
10149
+ },
10150
+ "channel": {
10151
+ "description": "Channel ID",
10152
+ "name": "channel",
10153
+ "required": true,
10154
+ "hasDynamicHelp": false,
10155
+ "multiple": false,
10156
+ "type": "option"
10157
+ },
10158
+ "limit": {
10159
+ "description": "Maximum tickets to return",
10160
+ "name": "limit",
10161
+ "default": 500,
10162
+ "hasDynamicHelp": false,
10163
+ "multiple": false,
10164
+ "type": "option"
10165
+ },
10166
+ "offset": {
10167
+ "description": "Number of tickets to skip",
10168
+ "name": "offset",
10169
+ "default": 0,
10170
+ "hasDynamicHelp": false,
10171
+ "multiple": false,
10172
+ "type": "option"
10127
10173
  }
10128
10174
  },
10129
10175
  "hasDynamicHelp": false,
10130
10176
  "hiddenAliases": [],
10131
- "id": "webhooks:list",
10177
+ "id": "tickets:list",
10132
10178
  "pluginAlias": "@instantkom/cli",
10133
10179
  "pluginName": "@instantkom/cli",
10134
10180
  "pluginType": "core",
@@ -10138,14 +10184,20 @@
10138
10184
  "relativePath": [
10139
10185
  "dist",
10140
10186
  "commands",
10141
- "webhooks",
10187
+ "tickets",
10142
10188
  "list.js"
10143
10189
  ]
10144
10190
  },
10145
- "webhooks:logs": {
10191
+ "tickets:reply": {
10146
10192
  "aliases": [],
10147
- "args": {},
10148
- "description": "Explain webhook log availability",
10193
+ "args": {
10194
+ "id": {
10195
+ "description": "Ticket ID",
10196
+ "name": "id",
10197
+ "required": true
10198
+ }
10199
+ },
10200
+ "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.",
10149
10201
  "flags": {
10150
10202
  "api-key": {
10151
10203
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10208,11 +10260,25 @@
10208
10260
  "hasDynamicHelp": false,
10209
10261
  "multiple": false,
10210
10262
  "type": "option"
10263
+ },
10264
+ "message": {
10265
+ "description": "Reply body (raw text, no salutation or sign-off)",
10266
+ "name": "message",
10267
+ "required": true,
10268
+ "hasDynamicHelp": false,
10269
+ "multiple": false,
10270
+ "type": "option"
10271
+ },
10272
+ "close": {
10273
+ "description": "Close the ticket after sending the reply",
10274
+ "name": "close",
10275
+ "allowNo": false,
10276
+ "type": "boolean"
10211
10277
  }
10212
10278
  },
10213
10279
  "hasDynamicHelp": false,
10214
10280
  "hiddenAliases": [],
10215
- "id": "webhooks:logs",
10281
+ "id": "tickets:reply",
10216
10282
  "pluginAlias": "@instantkom/cli",
10217
10283
  "pluginName": "@instantkom/cli",
10218
10284
  "pluginType": "core",
@@ -10222,20 +10288,20 @@
10222
10288
  "relativePath": [
10223
10289
  "dist",
10224
10290
  "commands",
10225
- "webhooks",
10226
- "logs.js"
10291
+ "tickets",
10292
+ "reply.js"
10227
10293
  ]
10228
10294
  },
10229
- "webhooks:remove": {
10295
+ "tickets:update": {
10230
10296
  "aliases": [],
10231
10297
  "args": {
10232
10298
  "id": {
10233
- "description": "Webhook subscription ID",
10299
+ "description": "Ticket ID",
10234
10300
  "name": "id",
10235
10301
  "required": true
10236
10302
  }
10237
10303
  },
10238
- "description": "Remove a webhook subscription",
10304
+ "description": "Update a ticket",
10239
10305
  "flags": {
10240
10306
  "api-key": {
10241
10307
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10298,11 +10364,60 @@
10298
10364
  "hasDynamicHelp": false,
10299
10365
  "multiple": false,
10300
10366
  "type": "option"
10367
+ },
10368
+ "channel": {
10369
+ "description": "Channel ID",
10370
+ "name": "channel",
10371
+ "required": true,
10372
+ "hasDynamicHelp": false,
10373
+ "multiple": false,
10374
+ "type": "option"
10375
+ },
10376
+ "subject": {
10377
+ "description": "Ticket subject",
10378
+ "name": "subject",
10379
+ "hasDynamicHelp": false,
10380
+ "multiple": false,
10381
+ "type": "option"
10382
+ },
10383
+ "priority": {
10384
+ "description": "Ticket priority",
10385
+ "name": "priority",
10386
+ "hasDynamicHelp": false,
10387
+ "multiple": false,
10388
+ "type": "option"
10389
+ },
10390
+ "status": {
10391
+ "description": "Ticket status",
10392
+ "name": "status",
10393
+ "hasDynamicHelp": false,
10394
+ "multiple": false,
10395
+ "type": "option"
10396
+ },
10397
+ "assigned-to": {
10398
+ "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
10399
+ "name": "assigned-to",
10400
+ "hasDynamicHelp": false,
10401
+ "multiple": false,
10402
+ "type": "option"
10403
+ },
10404
+ "notify": {
10405
+ "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.",
10406
+ "name": "notify",
10407
+ "allowNo": true,
10408
+ "type": "boolean"
10409
+ },
10410
+ "data": {
10411
+ "description": "Additional JSON object payload",
10412
+ "name": "data",
10413
+ "hasDynamicHelp": false,
10414
+ "multiple": false,
10415
+ "type": "option"
10301
10416
  }
10302
10417
  },
10303
10418
  "hasDynamicHelp": false,
10304
10419
  "hiddenAliases": [],
10305
- "id": "webhooks:remove",
10420
+ "id": "tickets:update",
10306
10421
  "pluginAlias": "@instantkom/cli",
10307
10422
  "pluginName": "@instantkom/cli",
10308
10423
  "pluginType": "core",
@@ -10312,14 +10427,14 @@
10312
10427
  "relativePath": [
10313
10428
  "dist",
10314
10429
  "commands",
10315
- "webhooks",
10316
- "remove.js"
10430
+ "tickets",
10431
+ "update.js"
10317
10432
  ]
10318
10433
  },
10319
- "webhooks:test": {
10434
+ "webhooks:add": {
10320
10435
  "aliases": [],
10321
10436
  "args": {},
10322
- "description": "Send a test webhook payload to a URL",
10437
+ "description": "Add a webhook subscription",
10323
10438
  "flags": {
10324
10439
  "api-key": {
10325
10440
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10383,25 +10498,25 @@
10383
10498
  "multiple": false,
10384
10499
  "type": "option"
10385
10500
  },
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
10501
  "event": {
10395
- "description": "Event name",
10502
+ "description": "Webhook event to subscribe to",
10396
10503
  "name": "event",
10397
- "default": "cli.test",
10504
+ "required": true,
10398
10505
  "hasDynamicHelp": false,
10399
10506
  "multiple": false,
10507
+ "options": [
10508
+ "new_contact",
10509
+ "new_message",
10510
+ "broadcast_sent",
10511
+ "contact_updated",
10512
+ "contact_opted_out"
10513
+ ],
10400
10514
  "type": "option"
10401
10515
  },
10402
- "payload": {
10403
- "description": "Payload JSON",
10404
- "name": "payload",
10516
+ "url": {
10517
+ "description": "HTTPS target URL that receives webhook POSTs",
10518
+ "name": "url",
10519
+ "required": true,
10405
10520
  "hasDynamicHelp": false,
10406
10521
  "multiple": false,
10407
10522
  "type": "option"
@@ -10409,7 +10524,7 @@
10409
10524
  },
10410
10525
  "hasDynamicHelp": false,
10411
10526
  "hiddenAliases": [],
10412
- "id": "webhooks:test",
10527
+ "id": "webhooks:add",
10413
10528
  "pluginAlias": "@instantkom/cli",
10414
10529
  "pluginName": "@instantkom/cli",
10415
10530
  "pluginType": "core",
@@ -10420,13 +10535,13 @@
10420
10535
  "dist",
10421
10536
  "commands",
10422
10537
  "webhooks",
10423
- "test.js"
10538
+ "add.js"
10424
10539
  ]
10425
10540
  },
10426
- "team:create": {
10541
+ "webhooks:events": {
10427
10542
  "aliases": [],
10428
10543
  "args": {},
10429
- "description": "Create a team member",
10544
+ "description": "List supported webhook event names",
10430
10545
  "flags": {
10431
10546
  "api-key": {
10432
10547
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10473,86 +10588,19 @@
10473
10588
  "allowNo": false,
10474
10589
  "type": "boolean"
10475
10590
  },
10476
- "profile": {
10477
- "description": "Named configuration profile to use",
10478
- "helpGroup": "GLOBAL",
10479
- "name": "profile",
10480
- "default": "default",
10481
- "hasDynamicHelp": false,
10482
- "multiple": false,
10483
- "type": "option"
10484
- },
10485
- "api-url": {
10486
- "description": "Override the API base URL (e.g. for staging)",
10487
- "helpGroup": "GLOBAL",
10488
- "name": "api-url",
10489
- "hasDynamicHelp": false,
10490
- "multiple": false,
10491
- "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",
10591
+ "profile": {
10592
+ "description": "Named configuration profile to use",
10593
+ "helpGroup": "GLOBAL",
10594
+ "name": "profile",
10595
+ "default": "default",
10549
10596
  "hasDynamicHelp": false,
10550
10597
  "multiple": false,
10551
10598
  "type": "option"
10552
10599
  },
10553
- "data": {
10554
- "description": "Additional JSON object payload",
10555
- "name": "data",
10600
+ "api-url": {
10601
+ "description": "Override the API base URL (e.g. for staging)",
10602
+ "helpGroup": "GLOBAL",
10603
+ "name": "api-url",
10556
10604
  "hasDynamicHelp": false,
10557
10605
  "multiple": false,
10558
10606
  "type": "option"
@@ -10560,7 +10608,7 @@
10560
10608
  },
10561
10609
  "hasDynamicHelp": false,
10562
10610
  "hiddenAliases": [],
10563
- "id": "team:create",
10611
+ "id": "webhooks:events",
10564
10612
  "pluginAlias": "@instantkom/cli",
10565
10613
  "pluginName": "@instantkom/cli",
10566
10614
  "pluginType": "core",
@@ -10570,20 +10618,14 @@
10570
10618
  "relativePath": [
10571
10619
  "dist",
10572
10620
  "commands",
10573
- "team",
10574
- "create.js"
10621
+ "webhooks",
10622
+ "events.js"
10575
10623
  ]
10576
10624
  },
10577
- "team:delete": {
10625
+ "webhooks:list": {
10578
10626
  "aliases": [],
10579
- "args": {
10580
- "id": {
10581
- "description": "Team member ID",
10582
- "name": "id",
10583
- "required": true
10584
- }
10585
- },
10586
- "description": "Delete a team member",
10627
+ "args": {},
10628
+ "description": "List webhook subscriptions",
10587
10629
  "flags": {
10588
10630
  "api-key": {
10589
10631
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10650,7 +10692,7 @@
10650
10692
  },
10651
10693
  "hasDynamicHelp": false,
10652
10694
  "hiddenAliases": [],
10653
- "id": "team:delete",
10695
+ "id": "webhooks:list",
10654
10696
  "pluginAlias": "@instantkom/cli",
10655
10697
  "pluginName": "@instantkom/cli",
10656
10698
  "pluginType": "core",
@@ -10660,14 +10702,14 @@
10660
10702
  "relativePath": [
10661
10703
  "dist",
10662
10704
  "commands",
10663
- "team",
10664
- "delete.js"
10705
+ "webhooks",
10706
+ "list.js"
10665
10707
  ]
10666
10708
  },
10667
- "team:list": {
10709
+ "webhooks:logs": {
10668
10710
  "aliases": [],
10669
10711
  "args": {},
10670
- "description": "List team members",
10712
+ "description": "Explain webhook log availability",
10671
10713
  "flags": {
10672
10714
  "api-key": {
10673
10715
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10734,7 +10776,7 @@
10734
10776
  },
10735
10777
  "hasDynamicHelp": false,
10736
10778
  "hiddenAliases": [],
10737
- "id": "team:list",
10779
+ "id": "webhooks:logs",
10738
10780
  "pluginAlias": "@instantkom/cli",
10739
10781
  "pluginName": "@instantkom/cli",
10740
10782
  "pluginType": "core",
@@ -10744,14 +10786,20 @@
10744
10786
  "relativePath": [
10745
10787
  "dist",
10746
10788
  "commands",
10747
- "team",
10748
- "list.js"
10789
+ "webhooks",
10790
+ "logs.js"
10749
10791
  ]
10750
10792
  },
10751
- "tags:create": {
10793
+ "webhooks:remove": {
10752
10794
  "aliases": [],
10753
- "args": {},
10754
- "description": "Create a tag",
10795
+ "args": {
10796
+ "id": {
10797
+ "description": "Webhook subscription ID",
10798
+ "name": "id",
10799
+ "required": true
10800
+ }
10801
+ },
10802
+ "description": "Remove a webhook subscription",
10755
10803
  "flags": {
10756
10804
  "api-key": {
10757
10805
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10814,47 +10862,11 @@
10814
10862
  "hasDynamicHelp": false,
10815
10863
  "multiple": false,
10816
10864
  "type": "option"
10817
- },
10818
- "name": {
10819
- "description": "Tag name",
10820
- "name": "name",
10821
- "required": true,
10822
- "hasDynamicHelp": false,
10823
- "multiple": false,
10824
- "type": "option"
10825
- },
10826
- "description": {
10827
- "description": "Tag description",
10828
- "name": "description",
10829
- "hasDynamicHelp": false,
10830
- "multiple": false,
10831
- "type": "option"
10832
- },
10833
- "color": {
10834
- "description": "Tag color as HEX",
10835
- "name": "color",
10836
- "hasDynamicHelp": false,
10837
- "multiple": false,
10838
- "type": "option"
10839
- },
10840
- "folder": {
10841
- "description": "Object folder ID",
10842
- "name": "folder",
10843
- "hasDynamicHelp": false,
10844
- "multiple": false,
10845
- "type": "option"
10846
- },
10847
- "data": {
10848
- "description": "Additional JSON object payload",
10849
- "name": "data",
10850
- "hasDynamicHelp": false,
10851
- "multiple": false,
10852
- "type": "option"
10853
10865
  }
10854
10866
  },
10855
10867
  "hasDynamicHelp": false,
10856
10868
  "hiddenAliases": [],
10857
- "id": "tags:create",
10869
+ "id": "webhooks:remove",
10858
10870
  "pluginAlias": "@instantkom/cli",
10859
10871
  "pluginName": "@instantkom/cli",
10860
10872
  "pluginType": "core",
@@ -10864,20 +10876,14 @@
10864
10876
  "relativePath": [
10865
10877
  "dist",
10866
10878
  "commands",
10867
- "tags",
10868
- "create.js"
10879
+ "webhooks",
10880
+ "remove.js"
10869
10881
  ]
10870
10882
  },
10871
- "tags:delete": {
10883
+ "webhooks:test": {
10872
10884
  "aliases": [],
10873
- "args": {
10874
- "id": {
10875
- "description": "tag ID",
10876
- "name": "id",
10877
- "required": true
10878
- }
10879
- },
10880
- "description": "Delete tag",
10885
+ "args": {},
10886
+ "description": "Send a test webhook payload to a URL",
10881
10887
  "flags": {
10882
10888
  "api-key": {
10883
10889
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10940,11 +10946,34 @@
10940
10946
  "hasDynamicHelp": false,
10941
10947
  "multiple": false,
10942
10948
  "type": "option"
10949
+ },
10950
+ "url": {
10951
+ "description": "Webhook URL to call",
10952
+ "name": "url",
10953
+ "required": true,
10954
+ "hasDynamicHelp": false,
10955
+ "multiple": false,
10956
+ "type": "option"
10957
+ },
10958
+ "event": {
10959
+ "description": "Event name",
10960
+ "name": "event",
10961
+ "default": "cli.test",
10962
+ "hasDynamicHelp": false,
10963
+ "multiple": false,
10964
+ "type": "option"
10965
+ },
10966
+ "payload": {
10967
+ "description": "Payload JSON",
10968
+ "name": "payload",
10969
+ "hasDynamicHelp": false,
10970
+ "multiple": false,
10971
+ "type": "option"
10943
10972
  }
10944
10973
  },
10945
10974
  "hasDynamicHelp": false,
10946
10975
  "hiddenAliases": [],
10947
- "id": "tags:delete",
10976
+ "id": "webhooks:test",
10948
10977
  "pluginAlias": "@instantkom/cli",
10949
10978
  "pluginName": "@instantkom/cli",
10950
10979
  "pluginType": "core",
@@ -10954,14 +10983,14 @@
10954
10983
  "relativePath": [
10955
10984
  "dist",
10956
10985
  "commands",
10957
- "tags",
10958
- "delete.js"
10986
+ "webhooks",
10987
+ "test.js"
10959
10988
  ]
10960
10989
  },
10961
- "tags:export": {
10990
+ "segments:create": {
10962
10991
  "aliases": [],
10963
10992
  "args": {},
10964
- "description": "Export tags to a file",
10993
+ "description": "Create a segment",
10965
10994
  "flags": {
10966
10995
  "api-key": {
10967
10996
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10973,14 +11002,17 @@
10973
11002
  "type": "option"
10974
11003
  },
10975
11004
  "format": {
10976
- "description": "Export format",
11005
+ "description": "Output format: text, json, yaml, or table",
11006
+ "helpGroup": "GLOBAL",
10977
11007
  "name": "format",
10978
- "default": "csv",
11008
+ "default": "text",
10979
11009
  "hasDynamicHelp": false,
10980
11010
  "multiple": false,
10981
11011
  "options": [
10982
- "csv",
10983
- "json"
11012
+ "text",
11013
+ "json",
11014
+ "yaml",
11015
+ "table"
10984
11016
  ],
10985
11017
  "type": "option"
10986
11018
  },
@@ -11022,18 +11054,61 @@
11022
11054
  "multiple": false,
11023
11055
  "type": "option"
11024
11056
  },
11025
- "file": {
11026
- "description": "Output file path",
11027
- "name": "file",
11057
+ "channel": {
11058
+ "description": "Channel ID",
11059
+ "name": "channel",
11060
+ "required": true,
11061
+ "hasDynamicHelp": false,
11062
+ "multiple": false,
11063
+ "type": "option"
11064
+ },
11065
+ "name": {
11066
+ "description": "Segment name",
11067
+ "name": "name",
11028
11068
  "required": true,
11029
11069
  "hasDynamicHelp": false,
11030
11070
  "multiple": false,
11031
11071
  "type": "option"
11072
+ },
11073
+ "description": {
11074
+ "description": "Segment description",
11075
+ "name": "description",
11076
+ "hasDynamicHelp": false,
11077
+ "multiple": false,
11078
+ "type": "option"
11079
+ },
11080
+ "color": {
11081
+ "description": "Segment color as HEX",
11082
+ "name": "color",
11083
+ "hasDynamicHelp": false,
11084
+ "multiple": false,
11085
+ "type": "option"
11086
+ },
11087
+ "tags": {
11088
+ "description": "Tags for filtering recipients",
11089
+ "name": "tags",
11090
+ "hasDynamicHelp": false,
11091
+ "multiple": false,
11092
+ "type": "option"
11093
+ },
11094
+ "folder": {
11095
+ "description": "Object folder ID",
11096
+ "name": "folder",
11097
+ "hasDynamicHelp": false,
11098
+ "multiple": false,
11099
+ "type": "option"
11100
+ },
11101
+ "data": {
11102
+ "description": "Additional JSON object payload",
11103
+ "name": "data",
11104
+ "hasDynamicHelp": false,
11105
+ "multiple": false,
11106
+ "type": "option"
11032
11107
  }
11033
11108
  },
11034
11109
  "hasDynamicHelp": false,
11035
11110
  "hiddenAliases": [],
11036
- "id": "tags:export",
11111
+ "id": "segments:create",
11037
11112
  "pluginAlias": "@instantkom/cli",
11038
11113
  "pluginName": "@instantkom/cli",
11039
11114
  "pluginType": "core",
@@ -11043,20 +11118,20 @@
11043
11118
  "relativePath": [
11044
11119
  "dist",
11045
11120
  "commands",
11046
- "tags",
11047
- "export.js"
11121
+ "segments",
11122
+ "create.js"
11048
11123
  ]
11049
11124
  },
11050
- "tags:get": {
11125
+ "segments:delete": {
11051
11126
  "aliases": [],
11052
11127
  "args": {
11053
11128
  "id": {
11054
- "description": "tag ID",
11129
+ "description": "segment ID",
11055
11130
  "name": "id",
11056
11131
  "required": true
11057
11132
  }
11058
11133
  },
11059
- "description": "Get tag by ID",
11134
+ "description": "Delete segment",
11060
11135
  "flags": {
11061
11136
  "api-key": {
11062
11137
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11123,7 +11198,7 @@
11123
11198
  },
11124
11199
  "hasDynamicHelp": false,
11125
11200
  "hiddenAliases": [],
11126
- "id": "tags:get",
11201
+ "id": "segments:delete",
11127
11202
  "pluginAlias": "@instantkom/cli",
11128
11203
  "pluginName": "@instantkom/cli",
11129
11204
  "pluginType": "core",
@@ -11133,14 +11208,20 @@
11133
11208
  "relativePath": [
11134
11209
  "dist",
11135
11210
  "commands",
11136
- "tags",
11137
- "get.js"
11211
+ "segments",
11212
+ "delete.js"
11138
11213
  ]
11139
11214
  },
11140
- "tags:import": {
11215
+ "segments:get": {
11141
11216
  "aliases": [],
11142
- "args": {},
11143
- "description": "Import tags from JSON",
11217
+ "args": {
11218
+ "id": {
11219
+ "description": "segment ID",
11220
+ "name": "id",
11221
+ "required": true
11222
+ }
11223
+ },
11224
+ "description": "Get segment by ID",
11144
11225
  "flags": {
11145
11226
  "api-key": {
11146
11227
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11203,25 +11284,11 @@
11203
11284
  "hasDynamicHelp": false,
11204
11285
  "multiple": false,
11205
11286
  "type": "option"
11206
- },
11207
- "file": {
11208
- "description": "JSON file path",
11209
- "name": "file",
11210
- "required": true,
11211
- "hasDynamicHelp": false,
11212
- "multiple": false,
11213
- "type": "option"
11214
- },
11215
- "skip-duplicates": {
11216
- "description": "Skip duplicate tags",
11217
- "name": "skip-duplicates",
11218
- "allowNo": true,
11219
- "type": "boolean"
11220
11287
  }
11221
11288
  },
11222
11289
  "hasDynamicHelp": false,
11223
11290
  "hiddenAliases": [],
11224
- "id": "tags:import",
11291
+ "id": "segments:get",
11225
11292
  "pluginAlias": "@instantkom/cli",
11226
11293
  "pluginName": "@instantkom/cli",
11227
11294
  "pluginType": "core",
@@ -11231,14 +11298,14 @@
11231
11298
  "relativePath": [
11232
11299
  "dist",
11233
11300
  "commands",
11234
- "tags",
11235
- "import.js"
11301
+ "segments",
11302
+ "get.js"
11236
11303
  ]
11237
11304
  },
11238
- "tags:list": {
11305
+ "segments:list": {
11239
11306
  "aliases": [],
11240
11307
  "args": {},
11241
- "description": "List tags",
11308
+ "description": "List segments",
11242
11309
  "flags": {
11243
11310
  "api-key": {
11244
11311
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11318,6 +11385,13 @@
11318
11385
  "multiple": false,
11319
11386
  "type": "option"
11320
11387
  },
11388
+ "channel": {
11389
+ "description": "Filter by channel ID",
11390
+ "name": "channel",
11391
+ "hasDynamicHelp": false,
11392
+ "multiple": false,
11393
+ "type": "option"
11394
+ },
11321
11395
  "search": {
11322
11396
  "description": "Search by name",
11323
11397
  "name": "search",
@@ -11325,17 +11399,28 @@
11325
11399
  "multiple": false,
11326
11400
  "type": "option"
11327
11401
  },
11328
- "color": {
11329
- "description": "Filter by color",
11330
- "name": "color",
11402
+ "tags": {
11403
+ "description": "Comma-separated tag IDs",
11404
+ "name": "tags",
11331
11405
  "hasDynamicHelp": false,
11332
11406
  "multiple": false,
11333
11407
  "type": "option"
11408
+ },
11409
+ "tag-match-mode": {
11410
+ "description": "Tag match mode",
11411
+ "name": "tag-match-mode",
11412
+ "hasDynamicHelp": false,
11413
+ "multiple": false,
11414
+ "options": [
11415
+ "any",
11416
+ "all"
11417
+ ],
11418
+ "type": "option"
11334
11419
  }
11335
11420
  },
11336
11421
  "hasDynamicHelp": false,
11337
11422
  "hiddenAliases": [],
11338
- "id": "tags:list",
11423
+ "id": "segments:list",
11339
11424
  "pluginAlias": "@instantkom/cli",
11340
11425
  "pluginName": "@instantkom/cli",
11341
11426
  "pluginType": "core",
@@ -11345,20 +11430,20 @@
11345
11430
  "relativePath": [
11346
11431
  "dist",
11347
11432
  "commands",
11348
- "tags",
11433
+ "segments",
11349
11434
  "list.js"
11350
11435
  ]
11351
11436
  },
11352
- "tags:update": {
11437
+ "segments:update": {
11353
11438
  "aliases": [],
11354
11439
  "args": {
11355
11440
  "id": {
11356
- "description": "Tag ID",
11441
+ "description": "Segment ID",
11357
11442
  "name": "id",
11358
11443
  "required": true
11359
11444
  }
11360
11445
  },
11361
- "description": "Update a tag",
11446
+ "description": "Update a segment",
11362
11447
  "flags": {
11363
11448
  "api-key": {
11364
11449
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11423,26 +11508,33 @@
11423
11508
  "type": "option"
11424
11509
  },
11425
11510
  "name": {
11426
- "description": "Tag name",
11511
+ "description": "Segment name",
11427
11512
  "name": "name",
11428
11513
  "hasDynamicHelp": false,
11429
11514
  "multiple": false,
11430
11515
  "type": "option"
11431
11516
  },
11432
11517
  "description": {
11433
- "description": "Tag description",
11518
+ "description": "Segment description",
11434
11519
  "name": "description",
11435
11520
  "hasDynamicHelp": false,
11436
11521
  "multiple": false,
11437
11522
  "type": "option"
11438
11523
  },
11439
11524
  "color": {
11440
- "description": "Tag color as HEX",
11525
+ "description": "Segment color as HEX",
11441
11526
  "name": "color",
11442
11527
  "hasDynamicHelp": false,
11443
11528
  "multiple": false,
11444
11529
  "type": "option"
11445
11530
  },
11531
+ "tags": {
11532
+ "description": "Tags for filtering recipients",
11533
+ "name": "tags",
11534
+ "hasDynamicHelp": false,
11535
+ "multiple": false,
11536
+ "type": "option"
11537
+ },
11446
11538
  "folder": {
11447
11539
  "description": "Object folder ID",
11448
11540
  "name": "folder",
@@ -11460,7 +11552,7 @@
11460
11552
  },
11461
11553
  "hasDynamicHelp": false,
11462
11554
  "hiddenAliases": [],
11463
- "id": "tags:update",
11555
+ "id": "segments:update",
11464
11556
  "pluginAlias": "@instantkom/cli",
11465
11557
  "pluginName": "@instantkom/cli",
11466
11558
  "pluginType": "core",
@@ -11470,102 +11562,10 @@
11470
11562
  "relativePath": [
11471
11563
  "dist",
11472
11564
  "commands",
11473
- "tags",
11565
+ "segments",
11474
11566
  "update.js"
11475
11567
  ]
11476
11568
  },
11477
- "tags:validate-import": {
11478
- "aliases": [],
11479
- "args": {},
11480
- "description": "Validate tags import JSON",
11481
- "flags": {
11482
- "api-key": {
11483
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
11484
- "env": "IKM_API_KEY",
11485
- "helpGroup": "GLOBAL",
11486
- "name": "api-key",
11487
- "hasDynamicHelp": false,
11488
- "multiple": false,
11489
- "type": "option"
11490
- },
11491
- "format": {
11492
- "description": "Output format: text, json, yaml, or table",
11493
- "helpGroup": "GLOBAL",
11494
- "name": "format",
11495
- "default": "text",
11496
- "hasDynamicHelp": false,
11497
- "multiple": false,
11498
- "options": [
11499
- "text",
11500
- "json",
11501
- "yaml",
11502
- "table"
11503
- ],
11504
- "type": "option"
11505
- },
11506
- "json": {
11507
- "description": "Output in JSON format (alias for --format=json)",
11508
- "helpGroup": "GLOBAL",
11509
- "name": "json",
11510
- "allowNo": false,
11511
- "type": "boolean"
11512
- },
11513
- "quiet": {
11514
- "description": "Suppress all output except errors",
11515
- "helpGroup": "GLOBAL",
11516
- "name": "quiet",
11517
- "allowNo": false,
11518
- "type": "boolean"
11519
- },
11520
- "no-color": {
11521
- "description": "Disable color output",
11522
- "helpGroup": "GLOBAL",
11523
- "name": "no-color",
11524
- "allowNo": false,
11525
- "type": "boolean"
11526
- },
11527
- "profile": {
11528
- "description": "Named configuration profile to use",
11529
- "helpGroup": "GLOBAL",
11530
- "name": "profile",
11531
- "default": "default",
11532
- "hasDynamicHelp": false,
11533
- "multiple": false,
11534
- "type": "option"
11535
- },
11536
- "api-url": {
11537
- "description": "Override the API base URL (e.g. for staging)",
11538
- "helpGroup": "GLOBAL",
11539
- "name": "api-url",
11540
- "hasDynamicHelp": false,
11541
- "multiple": false,
11542
- "type": "option"
11543
- },
11544
- "file": {
11545
- "description": "JSON file path",
11546
- "name": "file",
11547
- "required": true,
11548
- "hasDynamicHelp": false,
11549
- "multiple": false,
11550
- "type": "option"
11551
- }
11552
- },
11553
- "hasDynamicHelp": false,
11554
- "hiddenAliases": [],
11555
- "id": "tags:validate-import",
11556
- "pluginAlias": "@instantkom/cli",
11557
- "pluginName": "@instantkom/cli",
11558
- "pluginType": "core",
11559
- "strict": true,
11560
- "enableJsonFlag": false,
11561
- "isESM": true,
11562
- "relativePath": [
11563
- "dist",
11564
- "commands",
11565
- "tags",
11566
- "validate-import.js"
11567
- ]
11568
- },
11569
11569
  "auth:tokens:create": {
11570
11570
  "aliases": [],
11571
11571
  "args": {},
@@ -15276,21 +15276,123 @@
15276
15276
  "update.js"
15277
15277
  ]
15278
15278
  },
15279
- "segments:tags:add": {
15279
+ "tags:bots:list": {
15280
15280
  "aliases": [],
15281
15281
  "args": {
15282
- "segmentId": {
15283
- "description": "Segment ID",
15284
- "name": "segmentId",
15282
+ "id": {
15283
+ "description": "Tag ID",
15284
+ "name": "id",
15285
15285
  "required": true
15286
+ }
15287
+ },
15288
+ "description": "List bots that use a specific tag",
15289
+ "flags": {
15290
+ "api-key": {
15291
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
15292
+ "env": "IKM_API_KEY",
15293
+ "helpGroup": "GLOBAL",
15294
+ "name": "api-key",
15295
+ "hasDynamicHelp": false,
15296
+ "multiple": false,
15297
+ "type": "option"
15298
+ },
15299
+ "format": {
15300
+ "description": "Output format: text, json, yaml, or table",
15301
+ "helpGroup": "GLOBAL",
15302
+ "name": "format",
15303
+ "default": "text",
15304
+ "hasDynamicHelp": false,
15305
+ "multiple": false,
15306
+ "options": [
15307
+ "text",
15308
+ "json",
15309
+ "yaml",
15310
+ "table"
15311
+ ],
15312
+ "type": "option"
15313
+ },
15314
+ "json": {
15315
+ "description": "Output in JSON format (alias for --format=json)",
15316
+ "helpGroup": "GLOBAL",
15317
+ "name": "json",
15318
+ "allowNo": false,
15319
+ "type": "boolean"
15320
+ },
15321
+ "quiet": {
15322
+ "description": "Suppress all output except errors",
15323
+ "helpGroup": "GLOBAL",
15324
+ "name": "quiet",
15325
+ "allowNo": false,
15326
+ "type": "boolean"
15327
+ },
15328
+ "no-color": {
15329
+ "description": "Disable color output",
15330
+ "helpGroup": "GLOBAL",
15331
+ "name": "no-color",
15332
+ "allowNo": false,
15333
+ "type": "boolean"
15334
+ },
15335
+ "profile": {
15336
+ "description": "Named configuration profile to use",
15337
+ "helpGroup": "GLOBAL",
15338
+ "name": "profile",
15339
+ "default": "default",
15340
+ "hasDynamicHelp": false,
15341
+ "multiple": false,
15342
+ "type": "option"
15343
+ },
15344
+ "api-url": {
15345
+ "description": "Override the API base URL (e.g. for staging)",
15346
+ "helpGroup": "GLOBAL",
15347
+ "name": "api-url",
15348
+ "hasDynamicHelp": false,
15349
+ "multiple": false,
15350
+ "type": "option"
15351
+ },
15352
+ "page": {
15353
+ "description": "Page number",
15354
+ "name": "page",
15355
+ "default": 1,
15356
+ "hasDynamicHelp": false,
15357
+ "multiple": false,
15358
+ "type": "option"
15286
15359
  },
15360
+ "limit": {
15361
+ "description": "Items per page",
15362
+ "name": "limit",
15363
+ "default": 20,
15364
+ "hasDynamicHelp": false,
15365
+ "multiple": false,
15366
+ "type": "option"
15367
+ }
15368
+ },
15369
+ "hasDynamicHelp": false,
15370
+ "hiddenAliases": [],
15371
+ "id": "tags:bots:list",
15372
+ "pluginAlias": "@instantkom/cli",
15373
+ "pluginName": "@instantkom/cli",
15374
+ "pluginType": "core",
15375
+ "strict": true,
15376
+ "enableJsonFlag": false,
15377
+ "isESM": true,
15378
+ "relativePath": [
15379
+ "dist",
15380
+ "commands",
15381
+ "tags",
15382
+ "bots",
15383
+ "list.js"
15384
+ ]
15385
+ },
15386
+ "tags:recipients:add": {
15387
+ "aliases": [],
15388
+ "args": {
15287
15389
  "tagId": {
15288
15390
  "description": "Tag ID",
15289
15391
  "name": "tagId",
15290
15392
  "required": true
15291
15393
  }
15292
15394
  },
15293
- "description": "Assign a tag to a segment",
15395
+ "description": "Assign a tag to recipients",
15294
15396
  "flags": {
15295
15397
  "api-key": {
15296
15398
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15353,11 +15455,19 @@
15353
15455
  "hasDynamicHelp": false,
15354
15456
  "multiple": false,
15355
15457
  "type": "option"
15458
+ },
15459
+ "recipients": {
15460
+ "description": "Comma-separated recipient IDs",
15461
+ "name": "recipients",
15462
+ "required": true,
15463
+ "hasDynamicHelp": false,
15464
+ "multiple": false,
15465
+ "type": "option"
15356
15466
  }
15357
15467
  },
15358
15468
  "hasDynamicHelp": false,
15359
15469
  "hiddenAliases": [],
15360
- "id": "segments:tags:add",
15470
+ "id": "tags:recipients:add",
15361
15471
  "pluginAlias": "@instantkom/cli",
15362
15472
  "pluginName": "@instantkom/cli",
15363
15473
  "pluginType": "core",
@@ -15367,21 +15477,21 @@
15367
15477
  "relativePath": [
15368
15478
  "dist",
15369
15479
  "commands",
15370
- "segments",
15371
15480
  "tags",
15481
+ "recipients",
15372
15482
  "add.js"
15373
15483
  ]
15374
15484
  },
15375
- "segments:tags:list": {
15485
+ "tags:recipients:remove": {
15376
15486
  "aliases": [],
15377
15487
  "args": {
15378
- "segmentId": {
15379
- "description": "Segment ID",
15380
- "name": "segmentId",
15488
+ "tagId": {
15489
+ "description": "Tag ID",
15490
+ "name": "tagId",
15381
15491
  "required": true
15382
15492
  }
15383
15493
  },
15384
- "description": "List tags assigned to a segment",
15494
+ "description": "Remove a tag from recipients",
15385
15495
  "flags": {
15386
15496
  "api-key": {
15387
15497
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15444,11 +15554,19 @@
15444
15554
  "hasDynamicHelp": false,
15445
15555
  "multiple": false,
15446
15556
  "type": "option"
15557
+ },
15558
+ "recipients": {
15559
+ "description": "Comma-separated recipient IDs",
15560
+ "name": "recipients",
15561
+ "required": true,
15562
+ "hasDynamicHelp": false,
15563
+ "multiple": false,
15564
+ "type": "option"
15447
15565
  }
15448
15566
  },
15449
15567
  "hasDynamicHelp": false,
15450
15568
  "hiddenAliases": [],
15451
- "id": "segments:tags:list",
15569
+ "id": "tags:recipients:remove",
15452
15570
  "pluginAlias": "@instantkom/cli",
15453
15571
  "pluginName": "@instantkom/cli",
15454
15572
  "pluginType": "core",
@@ -15458,26 +15576,21 @@
15458
15576
  "relativePath": [
15459
15577
  "dist",
15460
15578
  "commands",
15461
- "segments",
15462
15579
  "tags",
15463
- "list.js"
15580
+ "recipients",
15581
+ "remove.js"
15464
15582
  ]
15465
15583
  },
15466
- "segments:tags:remove": {
15584
+ "tags:segments:list": {
15467
15585
  "aliases": [],
15468
15586
  "args": {
15469
- "segmentId": {
15470
- "description": "Segment ID",
15471
- "name": "segmentId",
15472
- "required": true
15473
- },
15474
- "tagId": {
15587
+ "id": {
15475
15588
  "description": "Tag ID",
15476
- "name": "tagId",
15589
+ "name": "id",
15477
15590
  "required": true
15478
15591
  }
15479
15592
  },
15480
- "description": "Remove a tag from a segment",
15593
+ "description": "List segments that use a specific tag",
15481
15594
  "flags": {
15482
15595
  "api-key": {
15483
15596
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15540,11 +15653,27 @@
15540
15653
  "hasDynamicHelp": false,
15541
15654
  "multiple": false,
15542
15655
  "type": "option"
15656
+ },
15657
+ "page": {
15658
+ "description": "Page number",
15659
+ "name": "page",
15660
+ "default": 1,
15661
+ "hasDynamicHelp": false,
15662
+ "multiple": false,
15663
+ "type": "option"
15664
+ },
15665
+ "limit": {
15666
+ "description": "Items per page",
15667
+ "name": "limit",
15668
+ "default": 20,
15669
+ "hasDynamicHelp": false,
15670
+ "multiple": false,
15671
+ "type": "option"
15543
15672
  }
15544
15673
  },
15545
15674
  "hasDynamicHelp": false,
15546
15675
  "hiddenAliases": [],
15547
- "id": "segments:tags:remove",
15676
+ "id": "tags:segments:list",
15548
15677
  "pluginAlias": "@instantkom/cli",
15549
15678
  "pluginName": "@instantkom/cli",
15550
15679
  "pluginType": "core",
@@ -15554,9 +15683,9 @@
15554
15683
  "relativePath": [
15555
15684
  "dist",
15556
15685
  "commands",
15557
- "segments",
15558
15686
  "tags",
15559
- "remove.js"
15687
+ "segments",
15688
+ "list.js"
15560
15689
  ]
15561
15690
  },
15562
15691
  "ticket:messages:create": {
@@ -15948,123 +16077,21 @@
15948
16077
  "list.js"
15949
16078
  ]
15950
16079
  },
15951
- "tags:bots:list": {
16080
+ "segments:tags:add": {
15952
16081
  "aliases": [],
15953
16082
  "args": {
15954
- "id": {
15955
- "description": "Tag ID",
15956
- "name": "id",
16083
+ "segmentId": {
16084
+ "description": "Segment ID",
16085
+ "name": "segmentId",
15957
16086
  "required": true
15958
- }
15959
- },
15960
- "description": "List bots that use a specific tag",
15961
- "flags": {
15962
- "api-key": {
15963
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
15964
- "env": "IKM_API_KEY",
15965
- "helpGroup": "GLOBAL",
15966
- "name": "api-key",
15967
- "hasDynamicHelp": false,
15968
- "multiple": false,
15969
- "type": "option"
15970
- },
15971
- "format": {
15972
- "description": "Output format: text, json, yaml, or table",
15973
- "helpGroup": "GLOBAL",
15974
- "name": "format",
15975
- "default": "text",
15976
- "hasDynamicHelp": false,
15977
- "multiple": false,
15978
- "options": [
15979
- "text",
15980
- "json",
15981
- "yaml",
15982
- "table"
15983
- ],
15984
- "type": "option"
15985
- },
15986
- "json": {
15987
- "description": "Output in JSON format (alias for --format=json)",
15988
- "helpGroup": "GLOBAL",
15989
- "name": "json",
15990
- "allowNo": false,
15991
- "type": "boolean"
15992
- },
15993
- "quiet": {
15994
- "description": "Suppress all output except errors",
15995
- "helpGroup": "GLOBAL",
15996
- "name": "quiet",
15997
- "allowNo": false,
15998
- "type": "boolean"
15999
- },
16000
- "no-color": {
16001
- "description": "Disable color output",
16002
- "helpGroup": "GLOBAL",
16003
- "name": "no-color",
16004
- "allowNo": false,
16005
- "type": "boolean"
16006
- },
16007
- "profile": {
16008
- "description": "Named configuration profile to use",
16009
- "helpGroup": "GLOBAL",
16010
- "name": "profile",
16011
- "default": "default",
16012
- "hasDynamicHelp": false,
16013
- "multiple": false,
16014
- "type": "option"
16015
- },
16016
- "api-url": {
16017
- "description": "Override the API base URL (e.g. for staging)",
16018
- "helpGroup": "GLOBAL",
16019
- "name": "api-url",
16020
- "hasDynamicHelp": false,
16021
- "multiple": false,
16022
- "type": "option"
16023
- },
16024
- "page": {
16025
- "description": "Page number",
16026
- "name": "page",
16027
- "default": 1,
16028
- "hasDynamicHelp": false,
16029
- "multiple": false,
16030
- "type": "option"
16031
16087
  },
16032
- "limit": {
16033
- "description": "Items per page",
16034
- "name": "limit",
16035
- "default": 20,
16036
- "hasDynamicHelp": false,
16037
- "multiple": false,
16038
- "type": "option"
16039
- }
16040
- },
16041
- "hasDynamicHelp": false,
16042
- "hiddenAliases": [],
16043
- "id": "tags:bots:list",
16044
- "pluginAlias": "@instantkom/cli",
16045
- "pluginName": "@instantkom/cli",
16046
- "pluginType": "core",
16047
- "strict": true,
16048
- "enableJsonFlag": false,
16049
- "isESM": true,
16050
- "relativePath": [
16051
- "dist",
16052
- "commands",
16053
- "tags",
16054
- "bots",
16055
- "list.js"
16056
- ]
16057
- },
16058
- "tags:recipients:add": {
16059
- "aliases": [],
16060
- "args": {
16061
16088
  "tagId": {
16062
16089
  "description": "Tag ID",
16063
16090
  "name": "tagId",
16064
16091
  "required": true
16065
16092
  }
16066
16093
  },
16067
- "description": "Assign a tag to recipients",
16094
+ "description": "Assign a tag to a segment",
16068
16095
  "flags": {
16069
16096
  "api-key": {
16070
16097
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -16127,19 +16154,11 @@
16127
16154
  "hasDynamicHelp": false,
16128
16155
  "multiple": false,
16129
16156
  "type": "option"
16130
- },
16131
- "recipients": {
16132
- "description": "Comma-separated recipient IDs",
16133
- "name": "recipients",
16134
- "required": true,
16135
- "hasDynamicHelp": false,
16136
- "multiple": false,
16137
- "type": "option"
16138
16157
  }
16139
16158
  },
16140
16159
  "hasDynamicHelp": false,
16141
16160
  "hiddenAliases": [],
16142
- "id": "tags:recipients:add",
16161
+ "id": "segments:tags:add",
16143
16162
  "pluginAlias": "@instantkom/cli",
16144
16163
  "pluginName": "@instantkom/cli",
16145
16164
  "pluginType": "core",
@@ -16149,21 +16168,21 @@
16149
16168
  "relativePath": [
16150
16169
  "dist",
16151
16170
  "commands",
16171
+ "segments",
16152
16172
  "tags",
16153
- "recipients",
16154
16173
  "add.js"
16155
16174
  ]
16156
16175
  },
16157
- "tags:recipients:remove": {
16176
+ "segments:tags:list": {
16158
16177
  "aliases": [],
16159
16178
  "args": {
16160
- "tagId": {
16161
- "description": "Tag ID",
16162
- "name": "tagId",
16179
+ "segmentId": {
16180
+ "description": "Segment ID",
16181
+ "name": "segmentId",
16163
16182
  "required": true
16164
16183
  }
16165
16184
  },
16166
- "description": "Remove a tag from recipients",
16185
+ "description": "List tags assigned to a segment",
16167
16186
  "flags": {
16168
16187
  "api-key": {
16169
16188
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -16226,19 +16245,11 @@
16226
16245
  "hasDynamicHelp": false,
16227
16246
  "multiple": false,
16228
16247
  "type": "option"
16229
- },
16230
- "recipients": {
16231
- "description": "Comma-separated recipient IDs",
16232
- "name": "recipients",
16233
- "required": true,
16234
- "hasDynamicHelp": false,
16235
- "multiple": false,
16236
- "type": "option"
16237
16248
  }
16238
16249
  },
16239
16250
  "hasDynamicHelp": false,
16240
16251
  "hiddenAliases": [],
16241
- "id": "tags:recipients:remove",
16252
+ "id": "segments:tags:list",
16242
16253
  "pluginAlias": "@instantkom/cli",
16243
16254
  "pluginName": "@instantkom/cli",
16244
16255
  "pluginType": "core",
@@ -16248,21 +16259,26 @@
16248
16259
  "relativePath": [
16249
16260
  "dist",
16250
16261
  "commands",
16262
+ "segments",
16251
16263
  "tags",
16252
- "recipients",
16253
- "remove.js"
16264
+ "list.js"
16254
16265
  ]
16255
16266
  },
16256
- "tags:segments:list": {
16267
+ "segments:tags:remove": {
16257
16268
  "aliases": [],
16258
16269
  "args": {
16259
- "id": {
16270
+ "segmentId": {
16271
+ "description": "Segment ID",
16272
+ "name": "segmentId",
16273
+ "required": true
16274
+ },
16275
+ "tagId": {
16260
16276
  "description": "Tag ID",
16261
- "name": "id",
16277
+ "name": "tagId",
16262
16278
  "required": true
16263
16279
  }
16264
16280
  },
16265
- "description": "List segments that use a specific tag",
16281
+ "description": "Remove a tag from a segment",
16266
16282
  "flags": {
16267
16283
  "api-key": {
16268
16284
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -16325,27 +16341,11 @@
16325
16341
  "hasDynamicHelp": false,
16326
16342
  "multiple": false,
16327
16343
  "type": "option"
16328
- },
16329
- "page": {
16330
- "description": "Page number",
16331
- "name": "page",
16332
- "default": 1,
16333
- "hasDynamicHelp": false,
16334
- "multiple": false,
16335
- "type": "option"
16336
- },
16337
- "limit": {
16338
- "description": "Items per page",
16339
- "name": "limit",
16340
- "default": 20,
16341
- "hasDynamicHelp": false,
16342
- "multiple": false,
16343
- "type": "option"
16344
16344
  }
16345
16345
  },
16346
16346
  "hasDynamicHelp": false,
16347
16347
  "hiddenAliases": [],
16348
- "id": "tags:segments:list",
16348
+ "id": "segments:tags:remove",
16349
16349
  "pluginAlias": "@instantkom/cli",
16350
16350
  "pluginName": "@instantkom/cli",
16351
16351
  "pluginType": "core",
@@ -16355,9 +16355,9 @@
16355
16355
  "relativePath": [
16356
16356
  "dist",
16357
16357
  "commands",
16358
- "tags",
16359
16358
  "segments",
16360
- "list.js"
16359
+ "tags",
16360
+ "remove.js"
16361
16361
  ]
16362
16362
  },
16363
16363
  "bots:env-vars:values:delete": {
@@ -16566,5 +16566,5 @@
16566
16566
  ]
16567
16567
  }
16568
16568
  },
16569
- "version": "3.162.0"
16569
+ "version": "3.163.1"
16570
16570
  }