@instantkom/cli 3.151.2 → 3.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1073,6 +1073,40 @@
1073
1073
  "reply.js"
1074
1074
  ]
1075
1075
  },
1076
+ "autocomplete:script": {
1077
+ "aliases": [],
1078
+ "args": {
1079
+ "shell": {
1080
+ "description": "Shell type",
1081
+ "name": "shell",
1082
+ "options": [
1083
+ "zsh",
1084
+ "bash",
1085
+ "fish",
1086
+ "powershell"
1087
+ ],
1088
+ "required": false
1089
+ }
1090
+ },
1091
+ "description": "outputs autocomplete config script for shells",
1092
+ "flags": {},
1093
+ "hasDynamicHelp": false,
1094
+ "hidden": true,
1095
+ "hiddenAliases": [],
1096
+ "id": "autocomplete:script",
1097
+ "pluginAlias": "@instantkom/cli",
1098
+ "pluginName": "@instantkom/cli",
1099
+ "pluginType": "core",
1100
+ "strict": true,
1101
+ "enableJsonFlag": false,
1102
+ "isESM": true,
1103
+ "relativePath": [
1104
+ "dist",
1105
+ "commands",
1106
+ "autocomplete",
1107
+ "script.js"
1108
+ ]
1109
+ },
1076
1110
  "auth:login": {
1077
1111
  "aliases": [],
1078
1112
  "args": {},
@@ -1255,40 +1289,6 @@
1255
1289
  "logout.js"
1256
1290
  ]
1257
1291
  },
1258
- "autocomplete:script": {
1259
- "aliases": [],
1260
- "args": {
1261
- "shell": {
1262
- "description": "Shell type",
1263
- "name": "shell",
1264
- "options": [
1265
- "zsh",
1266
- "bash",
1267
- "fish",
1268
- "powershell"
1269
- ],
1270
- "required": false
1271
- }
1272
- },
1273
- "description": "outputs autocomplete config script for shells",
1274
- "flags": {},
1275
- "hasDynamicHelp": false,
1276
- "hidden": true,
1277
- "hiddenAliases": [],
1278
- "id": "autocomplete:script",
1279
- "pluginAlias": "@instantkom/cli",
1280
- "pluginName": "@instantkom/cli",
1281
- "pluginType": "core",
1282
- "strict": true,
1283
- "enableJsonFlag": false,
1284
- "isESM": true,
1285
- "relativePath": [
1286
- "dist",
1287
- "commands",
1288
- "autocomplete",
1289
- "script.js"
1290
- ]
1291
- },
1292
1292
  "bots:create": {
1293
1293
  "aliases": [],
1294
1294
  "args": {},
@@ -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,11 +2081,93 @@
2087
2081
  "hasDynamicHelp": false,
2088
2082
  "multiple": false,
2089
2083
  "type": "option"
2084
+ },
2085
+ "channel": {
2086
+ "description": "Channel ID target",
2087
+ "name": "channel",
2088
+ "hasDynamicHelp": false,
2089
+ "multiple": false,
2090
+ "type": "option"
2091
+ },
2092
+ "segment": {
2093
+ "description": "Segment ID within --channel",
2094
+ "name": "segment",
2095
+ "hasDynamicHelp": false,
2096
+ "multiple": false,
2097
+ "type": "option"
2098
+ },
2099
+ "target": {
2100
+ "description": "Target as channelId or channelId:segmentId; may be repeated",
2101
+ "name": "target",
2102
+ "hasDynamicHelp": false,
2103
+ "multiple": true,
2104
+ "type": "option"
2105
+ },
2106
+ "text": {
2107
+ "description": "Broadcast message text",
2108
+ "name": "text",
2109
+ "required": true,
2110
+ "hasDynamicHelp": false,
2111
+ "multiple": false,
2112
+ "type": "option"
2113
+ },
2114
+ "send-at": {
2115
+ "description": "Schedule send for an ISO-8601 date-time",
2116
+ "name": "send-at",
2117
+ "hasDynamicHelp": false,
2118
+ "multiple": false,
2119
+ "type": "option"
2120
+ },
2121
+ "dry-run": {
2122
+ "description": "Validate and print the broadcast payload without mutating API calls",
2123
+ "name": "dry-run",
2124
+ "allowNo": false,
2125
+ "type": "boolean"
2126
+ },
2127
+ "idempotency-key": {
2128
+ "description": "Idempotency key forwarded as Idempotency-Key",
2129
+ "name": "idempotency-key",
2130
+ "hasDynamicHelp": false,
2131
+ "multiple": false,
2132
+ "type": "option"
2133
+ },
2134
+ "media": {
2135
+ "description": "Media file path to upload",
2136
+ "name": "media",
2137
+ "hasDynamicHelp": false,
2138
+ "multiple": true,
2139
+ "type": "option"
2140
+ },
2141
+ "template-id": {
2142
+ "description": "WhatsApp template ID",
2143
+ "name": "template-id",
2144
+ "hasDynamicHelp": false,
2145
+ "multiple": false,
2146
+ "type": "option"
2147
+ },
2148
+ "send-status": {
2149
+ "description": "Initial broadcast send status",
2150
+ "name": "send-status",
2151
+ "default": "draft",
2152
+ "hasDynamicHelp": false,
2153
+ "multiple": false,
2154
+ "options": [
2155
+ "draft",
2156
+ "scheduled",
2157
+ "sending"
2158
+ ],
2159
+ "type": "option"
2160
+ },
2161
+ "auto-approve": {
2162
+ "description": "Auto-approve broadcast when allowed by API permissions",
2163
+ "name": "auto-approve",
2164
+ "allowNo": false,
2165
+ "type": "boolean"
2090
2166
  }
2091
2167
  },
2092
2168
  "hasDynamicHelp": false,
2093
2169
  "hiddenAliases": [],
2094
- "id": "chats:get",
2170
+ "id": "broadcast:create",
2095
2171
  "pluginAlias": "@instantkom/cli",
2096
2172
  "pluginName": "@instantkom/cli",
2097
2173
  "pluginType": "core",
@@ -2101,14 +2177,20 @@
2101
2177
  "relativePath": [
2102
2178
  "dist",
2103
2179
  "commands",
2104
- "chats",
2105
- "get.js"
2180
+ "broadcast",
2181
+ "create.js"
2106
2182
  ]
2107
2183
  },
2108
- "chats:list": {
2184
+ "broadcast:delete": {
2109
2185
  "aliases": [],
2110
- "args": {},
2111
- "description": "List chats",
2186
+ "args": {
2187
+ "id": {
2188
+ "description": "broadcast ID",
2189
+ "name": "id",
2190
+ "required": true
2191
+ }
2192
+ },
2193
+ "description": "Delete broadcast",
2112
2194
  "flags": {
2113
2195
  "api-key": {
2114
2196
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2171,73 +2253,11 @@
2171
2253
  "hasDynamicHelp": false,
2172
2254
  "multiple": false,
2173
2255
  "type": "option"
2174
- },
2175
- "page": {
2176
- "description": "Page number",
2177
- "name": "page",
2178
- "default": 1,
2179
- "hasDynamicHelp": false,
2180
- "multiple": false,
2181
- "type": "option"
2182
- },
2183
- "limit": {
2184
- "description": "Items per page",
2185
- "name": "limit",
2186
- "default": 20,
2187
- "hasDynamicHelp": false,
2188
- "multiple": false,
2189
- "type": "option"
2190
- },
2191
- "channel": {
2192
- "description": "Filter by channel ID",
2193
- "name": "channel",
2194
- "hasDynamicHelp": false,
2195
- "multiple": false,
2196
- "type": "option"
2197
- },
2198
- "channels": {
2199
- "description": "Comma-separated channel IDs",
2200
- "name": "channels",
2201
- "hasDynamicHelp": false,
2202
- "multiple": false,
2203
- "type": "option"
2204
- },
2205
- "search": {
2206
- "description": "Search chats",
2207
- "name": "search",
2208
- "hasDynamicHelp": false,
2209
- "multiple": false,
2210
- "type": "option"
2211
- },
2212
- "status": {
2213
- "description": "Chat status",
2214
- "name": "status",
2215
- "hasDynamicHelp": false,
2216
- "multiple": false,
2217
- "options": [
2218
- "all",
2219
- "unread",
2220
- "read",
2221
- "archived"
2222
- ],
2223
- "type": "option"
2224
- },
2225
- "unread-only": {
2226
- "description": "Only unread chats",
2227
- "name": "unread-only",
2228
- "allowNo": false,
2229
- "type": "boolean"
2230
- },
2231
- "include-archived": {
2232
- "description": "Include archived chats",
2233
- "name": "include-archived",
2234
- "allowNo": false,
2235
- "type": "boolean"
2236
2256
  }
2237
2257
  },
2238
2258
  "hasDynamicHelp": false,
2239
2259
  "hiddenAliases": [],
2240
- "id": "chats:list",
2260
+ "id": "broadcast:delete",
2241
2261
  "pluginAlias": "@instantkom/cli",
2242
2262
  "pluginName": "@instantkom/cli",
2243
2263
  "pluginType": "core",
@@ -2247,20 +2267,20 @@
2247
2267
  "relativePath": [
2248
2268
  "dist",
2249
2269
  "commands",
2250
- "chats",
2251
- "list.js"
2270
+ "broadcast",
2271
+ "delete.js"
2252
2272
  ]
2253
2273
  },
2254
- "chats:reply": {
2274
+ "broadcast:get": {
2255
2275
  "aliases": [],
2256
2276
  "args": {
2257
2277
  "id": {
2258
- "description": "Chat ID",
2278
+ "description": "broadcast ID",
2259
2279
  "name": "id",
2260
2280
  "required": true
2261
2281
  }
2262
2282
  },
2263
- "description": "Reply in a chat",
2283
+ "description": "Get broadcast by ID",
2264
2284
  "flags": {
2265
2285
  "api-key": {
2266
2286
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2323,19 +2343,11 @@
2323
2343
  "hasDynamicHelp": false,
2324
2344
  "multiple": false,
2325
2345
  "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
2346
  }
2335
2347
  },
2336
2348
  "hasDynamicHelp": false,
2337
2349
  "hiddenAliases": [],
2338
- "id": "chats:reply",
2350
+ "id": "broadcast:get",
2339
2351
  "pluginAlias": "@instantkom/cli",
2340
2352
  "pluginName": "@instantkom/cli",
2341
2353
  "pluginType": "core",
@@ -2345,20 +2357,14 @@
2345
2357
  "relativePath": [
2346
2358
  "dist",
2347
2359
  "commands",
2348
- "chats",
2349
- "reply.js"
2360
+ "broadcast",
2361
+ "get.js"
2350
2362
  ]
2351
2363
  },
2352
- "config:get": {
2364
+ "broadcast:list": {
2353
2365
  "aliases": [],
2354
- "args": {
2355
- "key": {
2356
- "description": "Configuration key to retrieve",
2357
- "name": "key",
2358
- "required": true
2359
- }
2360
- },
2361
- "description": "Get a configuration value for the current profile",
2366
+ "args": {},
2367
+ "description": "List broadcasts",
2362
2368
  "flags": {
2363
2369
  "api-key": {
2364
2370
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2421,11 +2427,73 @@
2421
2427
  "hasDynamicHelp": false,
2422
2428
  "multiple": false,
2423
2429
  "type": "option"
2430
+ },
2431
+ "page": {
2432
+ "description": "Page number",
2433
+ "name": "page",
2434
+ "default": 1,
2435
+ "hasDynamicHelp": false,
2436
+ "multiple": false,
2437
+ "type": "option"
2438
+ },
2439
+ "limit": {
2440
+ "description": "Items per page",
2441
+ "name": "limit",
2442
+ "default": 20,
2443
+ "hasDynamicHelp": false,
2444
+ "multiple": false,
2445
+ "type": "option"
2446
+ },
2447
+ "channel": {
2448
+ "description": "Filter by channel ID",
2449
+ "name": "channel",
2450
+ "hasDynamicHelp": false,
2451
+ "multiple": false,
2452
+ "type": "option"
2453
+ },
2454
+ "send-status": {
2455
+ "description": "Filter by send status",
2456
+ "name": "send-status",
2457
+ "hasDynamicHelp": false,
2458
+ "multiple": false,
2459
+ "type": "option"
2460
+ },
2461
+ "type": {
2462
+ "description": "Broadcast type",
2463
+ "name": "type",
2464
+ "hasDynamicHelp": false,
2465
+ "multiple": false,
2466
+ "options": [
2467
+ "text",
2468
+ "image",
2469
+ "video",
2470
+ "audio",
2471
+ "document"
2472
+ ],
2473
+ "type": "option"
2474
+ },
2475
+ "search": {
2476
+ "description": "Search broadcasts",
2477
+ "name": "search",
2478
+ "hasDynamicHelp": false,
2479
+ "multiple": false,
2480
+ "type": "option"
2481
+ },
2482
+ "test": {
2483
+ "description": "Filter test flag: 0 or 1",
2484
+ "name": "test",
2485
+ "hasDynamicHelp": false,
2486
+ "multiple": false,
2487
+ "options": [
2488
+ "0",
2489
+ "1"
2490
+ ],
2491
+ "type": "option"
2424
2492
  }
2425
2493
  },
2426
2494
  "hasDynamicHelp": false,
2427
2495
  "hiddenAliases": [],
2428
- "id": "config:get",
2496
+ "id": "broadcast:list",
2429
2497
  "pluginAlias": "@instantkom/cli",
2430
2498
  "pluginName": "@instantkom/cli",
2431
2499
  "pluginType": "core",
@@ -2435,25 +2503,20 @@
2435
2503
  "relativePath": [
2436
2504
  "dist",
2437
2505
  "commands",
2438
- "config",
2439
- "get.js"
2506
+ "broadcast",
2507
+ "list.js"
2440
2508
  ]
2441
2509
  },
2442
- "config:set": {
2510
+ "broadcast:send": {
2443
2511
  "aliases": [],
2444
2512
  "args": {
2445
- "key": {
2446
- "description": "Configuration key to set",
2447
- "name": "key",
2448
- "required": true
2449
- },
2450
- "value": {
2451
- "description": "Value to assign",
2452
- "name": "value",
2513
+ "id": {
2514
+ "description": "Broadcast ID",
2515
+ "name": "id",
2453
2516
  "required": true
2454
2517
  }
2455
2518
  },
2456
- "description": "Set a configuration value for the current profile",
2519
+ "description": "Send a broadcast immediately",
2457
2520
  "flags": {
2458
2521
  "api-key": {
2459
2522
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2520,7 +2583,7 @@
2520
2583
  },
2521
2584
  "hasDynamicHelp": false,
2522
2585
  "hiddenAliases": [],
2523
- "id": "config:set",
2586
+ "id": "broadcast:send",
2524
2587
  "pluginAlias": "@instantkom/cli",
2525
2588
  "pluginName": "@instantkom/cli",
2526
2589
  "pluginType": "core",
@@ -2530,20 +2593,20 @@
2530
2593
  "relativePath": [
2531
2594
  "dist",
2532
2595
  "commands",
2533
- "config",
2534
- "set.js"
2596
+ "broadcast",
2597
+ "send.js"
2535
2598
  ]
2536
2599
  },
2537
- "config:unset": {
2600
+ "broadcast:status": {
2538
2601
  "aliases": [],
2539
2602
  "args": {
2540
- "key": {
2541
- "description": "Configuration key to remove",
2542
- "name": "key",
2603
+ "id": {
2604
+ "description": "Broadcast ID",
2605
+ "name": "id",
2543
2606
  "required": true
2544
2607
  }
2545
2608
  },
2546
- "description": "Remove a configuration key from the current profile",
2609
+ "description": "Show broadcast send status",
2547
2610
  "flags": {
2548
2611
  "api-key": {
2549
2612
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2610,7 +2673,7 @@
2610
2673
  },
2611
2674
  "hasDynamicHelp": false,
2612
2675
  "hiddenAliases": [],
2613
- "id": "config:unset",
2676
+ "id": "broadcast:status",
2614
2677
  "pluginAlias": "@instantkom/cli",
2615
2678
  "pluginName": "@instantkom/cli",
2616
2679
  "pluginType": "core",
@@ -2620,14 +2683,20 @@
2620
2683
  "relativePath": [
2621
2684
  "dist",
2622
2685
  "commands",
2623
- "config",
2624
- "unset.js"
2686
+ "broadcast",
2687
+ "status.js"
2625
2688
  ]
2626
2689
  },
2627
- "channels:create": {
2690
+ "broadcast:update": {
2628
2691
  "aliases": [],
2629
- "args": {},
2630
- "description": "Create a channel",
2692
+ "args": {
2693
+ "id": {
2694
+ "description": "Broadcast ID",
2695
+ "name": "id",
2696
+ "required": true
2697
+ }
2698
+ },
2699
+ "description": "Update a broadcast",
2631
2700
  "flags": {
2632
2701
  "api-key": {
2633
2702
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2691,32 +2760,61 @@
2691
2760
  "multiple": false,
2692
2761
  "type": "option"
2693
2762
  },
2694
- "name": {
2695
- "description": "Channel name",
2696
- "name": "name",
2697
- "required": true,
2763
+ "text": {
2764
+ "description": "Broadcast message text",
2765
+ "name": "text",
2698
2766
  "hasDynamicHelp": false,
2699
2767
  "multiple": false,
2700
2768
  "type": "option"
2701
2769
  },
2702
- "gateway-type": {
2703
- "description": "Gateway type ID",
2704
- "name": "gateway-type",
2705
- "required": true,
2770
+ "send-status": {
2771
+ "description": "Send status",
2772
+ "name": "send-status",
2706
2773
  "hasDynamicHelp": false,
2707
2774
  "multiple": false,
2708
2775
  "type": "option"
2709
2776
  },
2710
- "status": {
2711
- "description": "Channel lifecycle status",
2712
- "name": "status",
2777
+ "scheduled-at": {
2778
+ "description": "Unix timestamp for scheduled send",
2779
+ "name": "scheduled-at",
2713
2780
  "hasDynamicHelp": false,
2714
2781
  "multiple": false,
2715
2782
  "type": "option"
2716
2783
  },
2717
- "description": {
2718
- "description": "Channel description",
2719
- "name": "description",
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",
2720
2818
  "hasDynamicHelp": false,
2721
2819
  "multiple": false,
2722
2820
  "type": "option"
@@ -2731,7 +2829,7 @@
2731
2829
  },
2732
2830
  "hasDynamicHelp": false,
2733
2831
  "hiddenAliases": [],
2734
- "id": "channels:create",
2832
+ "id": "broadcast:update",
2735
2833
  "pluginAlias": "@instantkom/cli",
2736
2834
  "pluginName": "@instantkom/cli",
2737
2835
  "pluginType": "core",
@@ -2741,20 +2839,14 @@
2741
2839
  "relativePath": [
2742
2840
  "dist",
2743
2841
  "commands",
2744
- "channels",
2745
- "create.js"
2842
+ "broadcast",
2843
+ "update.js"
2746
2844
  ]
2747
2845
  },
2748
- "channels:get": {
2846
+ "channels:create": {
2749
2847
  "aliases": [],
2750
- "args": {
2751
- "id": {
2752
- "description": "Channel ID",
2753
- "name": "id",
2754
- "required": true
2755
- }
2756
- },
2757
- "description": "Get a channel by ID",
2848
+ "args": {},
2849
+ "description": "Create a channel",
2758
2850
  "flags": {
2759
2851
  "api-key": {
2760
2852
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2817,11 +2909,48 @@
2817
2909
  "hasDynamicHelp": false,
2818
2910
  "multiple": false,
2819
2911
  "type": "option"
2912
+ },
2913
+ "name": {
2914
+ "description": "Channel name",
2915
+ "name": "name",
2916
+ "required": true,
2917
+ "hasDynamicHelp": false,
2918
+ "multiple": false,
2919
+ "type": "option"
2920
+ },
2921
+ "gateway-type": {
2922
+ "description": "Gateway type ID",
2923
+ "name": "gateway-type",
2924
+ "required": true,
2925
+ "hasDynamicHelp": false,
2926
+ "multiple": false,
2927
+ "type": "option"
2928
+ },
2929
+ "status": {
2930
+ "description": "Channel lifecycle status",
2931
+ "name": "status",
2932
+ "hasDynamicHelp": false,
2933
+ "multiple": false,
2934
+ "type": "option"
2935
+ },
2936
+ "description": {
2937
+ "description": "Channel description",
2938
+ "name": "description",
2939
+ "hasDynamicHelp": false,
2940
+ "multiple": false,
2941
+ "type": "option"
2942
+ },
2943
+ "data": {
2944
+ "description": "Additional JSON object payload",
2945
+ "name": "data",
2946
+ "hasDynamicHelp": false,
2947
+ "multiple": false,
2948
+ "type": "option"
2820
2949
  }
2821
2950
  },
2822
2951
  "hasDynamicHelp": false,
2823
2952
  "hiddenAliases": [],
2824
- "id": "channels:get",
2953
+ "id": "channels:create",
2825
2954
  "pluginAlias": "@instantkom/cli",
2826
2955
  "pluginName": "@instantkom/cli",
2827
2956
  "pluginType": "core",
@@ -2832,19 +2961,19 @@
2832
2961
  "dist",
2833
2962
  "commands",
2834
2963
  "channels",
2835
- "get.js"
2964
+ "create.js"
2836
2965
  ]
2837
2966
  },
2838
- "channels:kpis": {
2967
+ "channels:get": {
2839
2968
  "aliases": [],
2840
2969
  "args": {
2841
2970
  "id": {
2842
- "description": "Optional channel ID; omit for aggregated channel KPIs",
2971
+ "description": "Channel ID",
2843
2972
  "name": "id",
2844
- "required": false
2973
+ "required": true
2845
2974
  }
2846
2975
  },
2847
- "description": "Get channel KPIs",
2976
+ "description": "Get a channel by ID",
2848
2977
  "flags": {
2849
2978
  "api-key": {
2850
2979
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2907,18 +3036,11 @@
2907
3036
  "hasDynamicHelp": false,
2908
3037
  "multiple": false,
2909
3038
  "type": "option"
2910
- },
2911
- "period": {
2912
- "description": "KPI period",
2913
- "name": "period",
2914
- "hasDynamicHelp": false,
2915
- "multiple": false,
2916
- "type": "option"
2917
3039
  }
2918
3040
  },
2919
3041
  "hasDynamicHelp": false,
2920
3042
  "hiddenAliases": [],
2921
- "id": "channels:kpis",
3043
+ "id": "channels:get",
2922
3044
  "pluginAlias": "@instantkom/cli",
2923
3045
  "pluginName": "@instantkom/cli",
2924
3046
  "pluginType": "core",
@@ -2929,13 +3051,19 @@
2929
3051
  "dist",
2930
3052
  "commands",
2931
3053
  "channels",
2932
- "kpis.js"
3054
+ "get.js"
2933
3055
  ]
2934
3056
  },
2935
- "channels:list": {
3057
+ "channels:kpis": {
2936
3058
  "aliases": [],
2937
- "args": {},
2938
- "description": "List channels",
3059
+ "args": {
3060
+ "id": {
3061
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
3062
+ "name": "id",
3063
+ "required": false
3064
+ }
3065
+ },
3066
+ "description": "Get channel KPIs",
2939
3067
  "flags": {
2940
3068
  "api-key": {
2941
3069
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2999,39 +3127,9 @@
2999
3127
  "multiple": false,
3000
3128
  "type": "option"
3001
3129
  },
3002
- "page": {
3003
- "description": "Page number",
3004
- "name": "page",
3005
- "default": 1,
3006
- "hasDynamicHelp": false,
3007
- "multiple": false,
3008
- "type": "option"
3009
- },
3010
- "limit": {
3011
- "description": "Items per page",
3012
- "name": "limit",
3013
- "default": 20,
3014
- "hasDynamicHelp": false,
3015
- "multiple": false,
3016
- "type": "option"
3017
- },
3018
- "status": {
3019
- "description": "Filter by channel status",
3020
- "name": "status",
3021
- "hasDynamicHelp": false,
3022
- "multiple": false,
3023
- "type": "option"
3024
- },
3025
- "gateway-type": {
3026
- "description": "Filter by gateway type ID",
3027
- "name": "gateway-type",
3028
- "hasDynamicHelp": false,
3029
- "multiple": false,
3030
- "type": "option"
3031
- },
3032
- "search": {
3033
- "description": "Search by channel name",
3034
- "name": "search",
3130
+ "period": {
3131
+ "description": "KPI period",
3132
+ "name": "period",
3035
3133
  "hasDynamicHelp": false,
3036
3134
  "multiple": false,
3037
3135
  "type": "option"
@@ -3039,7 +3137,7 @@
3039
3137
  },
3040
3138
  "hasDynamicHelp": false,
3041
3139
  "hiddenAliases": [],
3042
- "id": "channels:list",
3140
+ "id": "channels:kpis",
3043
3141
  "pluginAlias": "@instantkom/cli",
3044
3142
  "pluginName": "@instantkom/cli",
3045
3143
  "pluginType": "core",
@@ -3050,19 +3148,13 @@
3050
3148
  "dist",
3051
3149
  "commands",
3052
3150
  "channels",
3053
- "list.js"
3151
+ "kpis.js"
3054
3152
  ]
3055
3153
  },
3056
- "channels:update": {
3154
+ "channels:list": {
3057
3155
  "aliases": [],
3058
- "args": {
3059
- "id": {
3060
- "description": "Channel ID",
3061
- "name": "id",
3062
- "required": true
3063
- }
3064
- },
3065
- "description": "Update a channel",
3156
+ "args": {},
3157
+ "description": "List channels",
3066
3158
  "flags": {
3067
3159
  "api-key": {
3068
3160
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3126,30 +3218,39 @@
3126
3218
  "multiple": false,
3127
3219
  "type": "option"
3128
3220
  },
3129
- "name": {
3130
- "description": "Channel name",
3131
- "name": "name",
3221
+ "page": {
3222
+ "description": "Page number",
3223
+ "name": "page",
3224
+ "default": 1,
3225
+ "hasDynamicHelp": false,
3226
+ "multiple": false,
3227
+ "type": "option"
3228
+ },
3229
+ "limit": {
3230
+ "description": "Items per page",
3231
+ "name": "limit",
3232
+ "default": 20,
3132
3233
  "hasDynamicHelp": false,
3133
3234
  "multiple": false,
3134
3235
  "type": "option"
3135
3236
  },
3136
3237
  "status": {
3137
- "description": "Channel lifecycle status",
3238
+ "description": "Filter by channel status",
3138
3239
  "name": "status",
3139
3240
  "hasDynamicHelp": false,
3140
3241
  "multiple": false,
3141
3242
  "type": "option"
3142
3243
  },
3143
- "description": {
3144
- "description": "Channel description",
3145
- "name": "description",
3244
+ "gateway-type": {
3245
+ "description": "Filter by gateway type ID",
3246
+ "name": "gateway-type",
3146
3247
  "hasDynamicHelp": false,
3147
3248
  "multiple": false,
3148
3249
  "type": "option"
3149
3250
  },
3150
- "data": {
3151
- "description": "Additional JSON object payload",
3152
- "name": "data",
3251
+ "search": {
3252
+ "description": "Search by channel name",
3253
+ "name": "search",
3153
3254
  "hasDynamicHelp": false,
3154
3255
  "multiple": false,
3155
3256
  "type": "option"
@@ -3157,7 +3258,7 @@
3157
3258
  },
3158
3259
  "hasDynamicHelp": false,
3159
3260
  "hiddenAliases": [],
3160
- "id": "channels:update",
3261
+ "id": "channels:list",
3161
3262
  "pluginAlias": "@instantkom/cli",
3162
3263
  "pluginName": "@instantkom/cli",
3163
3264
  "pluginType": "core",
@@ -3168,13 +3269,19 @@
3168
3269
  "dist",
3169
3270
  "commands",
3170
3271
  "channels",
3171
- "update.js"
3272
+ "list.js"
3172
3273
  ]
3173
3274
  },
3174
- "contacts:create": {
3275
+ "channels:update": {
3175
3276
  "aliases": [],
3176
- "args": {},
3177
- "description": "Create a contact",
3277
+ "args": {
3278
+ "id": {
3279
+ "description": "Channel ID",
3280
+ "name": "id",
3281
+ "required": true
3282
+ }
3283
+ },
3284
+ "description": "Update a channel",
3178
3285
  "flags": {
3179
3286
  "api-key": {
3180
3287
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3238,25 +3345,23 @@
3238
3345
  "multiple": false,
3239
3346
  "type": "option"
3240
3347
  },
3241
- "channel": {
3242
- "description": "Channel ID",
3243
- "name": "channel",
3244
- "required": true,
3348
+ "name": {
3349
+ "description": "Channel name",
3350
+ "name": "name",
3245
3351
  "hasDynamicHelp": false,
3246
3352
  "multiple": false,
3247
3353
  "type": "option"
3248
3354
  },
3249
- "identifier": {
3250
- "description": "Unique contact identifier",
3251
- "name": "identifier",
3252
- "required": true,
3355
+ "status": {
3356
+ "description": "Channel lifecycle status",
3357
+ "name": "status",
3253
3358
  "hasDynamicHelp": false,
3254
3359
  "multiple": false,
3255
3360
  "type": "option"
3256
3361
  },
3257
- "name": {
3258
- "description": "Contact name",
3259
- "name": "name",
3362
+ "description": {
3363
+ "description": "Channel description",
3364
+ "name": "description",
3260
3365
  "hasDynamicHelp": false,
3261
3366
  "multiple": false,
3262
3367
  "type": "option"
@@ -3271,7 +3376,7 @@
3271
3376
  },
3272
3377
  "hasDynamicHelp": false,
3273
3378
  "hiddenAliases": [],
3274
- "id": "contacts:create",
3379
+ "id": "channels:update",
3275
3380
  "pluginAlias": "@instantkom/cli",
3276
3381
  "pluginName": "@instantkom/cli",
3277
3382
  "pluginType": "core",
@@ -3281,20 +3386,20 @@
3281
3386
  "relativePath": [
3282
3387
  "dist",
3283
3388
  "commands",
3284
- "contacts",
3285
- "create.js"
3389
+ "channels",
3390
+ "update.js"
3286
3391
  ]
3287
3392
  },
3288
- "contacts:delete": {
3393
+ "chats:get": {
3289
3394
  "aliases": [],
3290
3395
  "args": {
3291
3396
  "id": {
3292
- "description": "Contact ID",
3397
+ "description": "chat ID",
3293
3398
  "name": "id",
3294
3399
  "required": true
3295
3400
  }
3296
3401
  },
3297
- "description": "Delete a contact",
3402
+ "description": "Get chat by ID",
3298
3403
  "flags": {
3299
3404
  "api-key": {
3300
3405
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3361,7 +3466,7 @@
3361
3466
  },
3362
3467
  "hasDynamicHelp": false,
3363
3468
  "hiddenAliases": [],
3364
- "id": "contacts:delete",
3469
+ "id": "chats:get",
3365
3470
  "pluginAlias": "@instantkom/cli",
3366
3471
  "pluginName": "@instantkom/cli",
3367
3472
  "pluginType": "core",
@@ -3371,14 +3476,14 @@
3371
3476
  "relativePath": [
3372
3477
  "dist",
3373
3478
  "commands",
3374
- "contacts",
3375
- "delete.js"
3479
+ "chats",
3480
+ "get.js"
3376
3481
  ]
3377
3482
  },
3378
- "contacts:export": {
3483
+ "chats:list": {
3379
3484
  "aliases": [],
3380
3485
  "args": {},
3381
- "description": "Export contacts to CSV",
3486
+ "description": "List chats",
3382
3487
  "flags": {
3383
3488
  "api-key": {
3384
3489
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3442,10 +3547,18 @@
3442
3547
  "multiple": false,
3443
3548
  "type": "option"
3444
3549
  },
3445
- "file": {
3446
- "description": "CSV output file path",
3447
- "name": "file",
3448
- "required": true,
3550
+ "page": {
3551
+ "description": "Page number",
3552
+ "name": "page",
3553
+ "default": 1,
3554
+ "hasDynamicHelp": false,
3555
+ "multiple": false,
3556
+ "type": "option"
3557
+ },
3558
+ "limit": {
3559
+ "description": "Items per page",
3560
+ "name": "limit",
3561
+ "default": 20,
3449
3562
  "hasDynamicHelp": false,
3450
3563
  "multiple": false,
3451
3564
  "type": "option"
@@ -3457,33 +3570,49 @@
3457
3570
  "multiple": false,
3458
3571
  "type": "option"
3459
3572
  },
3460
- "search": {
3461
- "description": "Search by name or identifier",
3462
- "name": "search",
3573
+ "channels": {
3574
+ "description": "Comma-separated channel IDs",
3575
+ "name": "channels",
3463
3576
  "hasDynamicHelp": false,
3464
3577
  "multiple": false,
3465
3578
  "type": "option"
3466
3579
  },
3467
- "page": {
3468
- "description": "Page number",
3469
- "name": "page",
3470
- "default": 1,
3580
+ "search": {
3581
+ "description": "Search chats",
3582
+ "name": "search",
3471
3583
  "hasDynamicHelp": false,
3472
3584
  "multiple": false,
3473
3585
  "type": "option"
3474
3586
  },
3475
- "limit": {
3476
- "description": "Items per page",
3477
- "name": "limit",
3478
- "default": 100,
3587
+ "status": {
3588
+ "description": "Chat status",
3589
+ "name": "status",
3479
3590
  "hasDynamicHelp": false,
3480
3591
  "multiple": false,
3592
+ "options": [
3593
+ "all",
3594
+ "unread",
3595
+ "read",
3596
+ "archived"
3597
+ ],
3481
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"
3482
3611
  }
3483
3612
  },
3484
3613
  "hasDynamicHelp": false,
3485
3614
  "hiddenAliases": [],
3486
- "id": "contacts:export",
3615
+ "id": "chats:list",
3487
3616
  "pluginAlias": "@instantkom/cli",
3488
3617
  "pluginName": "@instantkom/cli",
3489
3618
  "pluginType": "core",
@@ -3493,20 +3622,20 @@
3493
3622
  "relativePath": [
3494
3623
  "dist",
3495
3624
  "commands",
3496
- "contacts",
3497
- "export.js"
3625
+ "chats",
3626
+ "list.js"
3498
3627
  ]
3499
3628
  },
3500
- "contacts:get": {
3629
+ "chats:reply": {
3501
3630
  "aliases": [],
3502
3631
  "args": {
3503
3632
  "id": {
3504
- "description": "Contact ID",
3633
+ "description": "Chat ID",
3505
3634
  "name": "id",
3506
3635
  "required": true
3507
3636
  }
3508
3637
  },
3509
- "description": "Get a contact by ID",
3638
+ "description": "Reply in a chat",
3510
3639
  "flags": {
3511
3640
  "api-key": {
3512
3641
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3569,11 +3698,19 @@
3569
3698
  "hasDynamicHelp": false,
3570
3699
  "multiple": false,
3571
3700
  "type": "option"
3701
+ },
3702
+ "text": {
3703
+ "description": "Reply text",
3704
+ "name": "text",
3705
+ "required": true,
3706
+ "hasDynamicHelp": false,
3707
+ "multiple": false,
3708
+ "type": "option"
3572
3709
  }
3573
3710
  },
3574
3711
  "hasDynamicHelp": false,
3575
3712
  "hiddenAliases": [],
3576
- "id": "contacts:get",
3713
+ "id": "chats:reply",
3577
3714
  "pluginAlias": "@instantkom/cli",
3578
3715
  "pluginName": "@instantkom/cli",
3579
3716
  "pluginType": "core",
@@ -3583,15 +3720,21 @@
3583
3720
  "relativePath": [
3584
3721
  "dist",
3585
3722
  "commands",
3586
- "contacts",
3587
- "get.js"
3723
+ "chats",
3724
+ "reply.js"
3588
3725
  ]
3589
3726
  },
3590
- "contacts:import": {
3727
+ "config:get": {
3591
3728
  "aliases": [],
3592
- "args": {},
3593
- "description": "Import contacts from CSV",
3594
- "flags": {
3729
+ "args": {
3730
+ "key": {
3731
+ "description": "Configuration key to retrieve",
3732
+ "name": "key",
3733
+ "required": true
3734
+ }
3735
+ },
3736
+ "description": "Get a configuration value for the current profile",
3737
+ "flags": {
3595
3738
  "api-key": {
3596
3739
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3597
3740
  "env": "IKM_API_KEY",
@@ -3653,27 +3796,11 @@
3653
3796
  "hasDynamicHelp": false,
3654
3797
  "multiple": false,
3655
3798
  "type": "option"
3656
- },
3657
- "file": {
3658
- "description": "CSV file path",
3659
- "name": "file",
3660
- "required": true,
3661
- "hasDynamicHelp": false,
3662
- "multiple": false,
3663
- "type": "option"
3664
- },
3665
- "channel": {
3666
- "description": "Channel ID",
3667
- "name": "channel",
3668
- "required": true,
3669
- "hasDynamicHelp": false,
3670
- "multiple": false,
3671
- "type": "option"
3672
3799
  }
3673
3800
  },
3674
3801
  "hasDynamicHelp": false,
3675
3802
  "hiddenAliases": [],
3676
- "id": "contacts:import",
3803
+ "id": "config:get",
3677
3804
  "pluginAlias": "@instantkom/cli",
3678
3805
  "pluginName": "@instantkom/cli",
3679
3806
  "pluginType": "core",
@@ -3683,14 +3810,25 @@
3683
3810
  "relativePath": [
3684
3811
  "dist",
3685
3812
  "commands",
3686
- "contacts",
3687
- "import.js"
3813
+ "config",
3814
+ "get.js"
3688
3815
  ]
3689
3816
  },
3690
- "contacts:list": {
3817
+ "config:set": {
3691
3818
  "aliases": [],
3692
- "args": {},
3693
- "description": "List contacts",
3819
+ "args": {
3820
+ "key": {
3821
+ "description": "Configuration key to set",
3822
+ "name": "key",
3823
+ "required": true
3824
+ },
3825
+ "value": {
3826
+ "description": "Value to assign",
3827
+ "name": "value",
3828
+ "required": true
3829
+ }
3830
+ },
3831
+ "description": "Set a configuration value for the current profile",
3694
3832
  "flags": {
3695
3833
  "api-key": {
3696
3834
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3753,98 +3891,93 @@
3753
3891
  "hasDynamicHelp": false,
3754
3892
  "multiple": false,
3755
3893
  "type": "option"
3756
- },
3757
- "channel": {
3758
- "description": "Filter by channel ID",
3759
- "name": "channel",
3760
- "hasDynamicHelp": false,
3761
- "multiple": false,
3762
- "type": "option"
3763
- },
3764
- "search": {
3765
- "description": "Search by name or identifier",
3766
- "name": "search",
3767
- "hasDynamicHelp": false,
3768
- "multiple": false,
3769
- "type": "option"
3770
- },
3771
- "page": {
3772
- "description": "Page number",
3773
- "name": "page",
3774
- "default": 1,
3775
- "hasDynamicHelp": false,
3776
- "multiple": false,
3777
- "type": "option"
3778
- },
3779
- "limit": {
3780
- "description": "Items per page",
3781
- "name": "limit",
3782
- "default": 20,
3783
- "hasDynamicHelp": false,
3784
- "multiple": false,
3785
- "type": "option"
3786
- },
3787
- "optin-status": {
3788
- "description": "Filter by opt-in status",
3789
- "name": "optin-status",
3894
+ }
3895
+ },
3896
+ "hasDynamicHelp": false,
3897
+ "hiddenAliases": [],
3898
+ "id": "config:set",
3899
+ "pluginAlias": "@instantkom/cli",
3900
+ "pluginName": "@instantkom/cli",
3901
+ "pluginType": "core",
3902
+ "strict": true,
3903
+ "enableJsonFlag": false,
3904
+ "isESM": true,
3905
+ "relativePath": [
3906
+ "dist",
3907
+ "commands",
3908
+ "config",
3909
+ "set.js"
3910
+ ]
3911
+ },
3912
+ "config:unset": {
3913
+ "aliases": [],
3914
+ "args": {
3915
+ "key": {
3916
+ "description": "Configuration key to remove",
3917
+ "name": "key",
3918
+ "required": true
3919
+ }
3920
+ },
3921
+ "description": "Remove a configuration key from the current profile",
3922
+ "flags": {
3923
+ "api-key": {
3924
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3925
+ "env": "IKM_API_KEY",
3926
+ "helpGroup": "GLOBAL",
3927
+ "name": "api-key",
3790
3928
  "hasDynamicHelp": false,
3791
3929
  "multiple": false,
3792
- "options": [
3793
- "0",
3794
- "1"
3795
- ],
3796
3930
  "type": "option"
3797
3931
  },
3798
- "blocked": {
3799
- "description": "Filter by blocked status: 1 blocked, 0 not blocked",
3800
- "name": "blocked",
3932
+ "format": {
3933
+ "description": "Output format: text, json, yaml, or table",
3934
+ "helpGroup": "GLOBAL",
3935
+ "name": "format",
3936
+ "default": "text",
3801
3937
  "hasDynamicHelp": false,
3802
3938
  "multiple": false,
3803
3939
  "options": [
3804
- "0",
3805
- "1"
3940
+ "text",
3941
+ "json",
3942
+ "yaml",
3943
+ "table"
3806
3944
  ],
3807
3945
  "type": "option"
3808
3946
  },
3809
- "segment": {
3810
- "description": "Filter by segment ID",
3811
- "name": "segment",
3812
- "hasDynamicHelp": false,
3813
- "multiple": false,
3814
- "type": "option"
3947
+ "json": {
3948
+ "description": "Output in JSON format (alias for --format=json)",
3949
+ "helpGroup": "GLOBAL",
3950
+ "name": "json",
3951
+ "allowNo": false,
3952
+ "type": "boolean"
3815
3953
  },
3816
- "tags": {
3817
- "description": "Comma-separated tag IDs",
3818
- "name": "tags",
3819
- "hasDynamicHelp": false,
3820
- "multiple": false,
3821
- "type": "option"
3954
+ "quiet": {
3955
+ "description": "Suppress all output except errors",
3956
+ "helpGroup": "GLOBAL",
3957
+ "name": "quiet",
3958
+ "allowNo": false,
3959
+ "type": "boolean"
3822
3960
  },
3823
- "tag-match": {
3824
- "description": "Tag match mode",
3825
- "name": "tag-match",
3826
- "hasDynamicHelp": false,
3827
- "multiple": false,
3828
- "options": [
3829
- "any",
3830
- "all"
3831
- ],
3832
- "type": "option"
3961
+ "no-color": {
3962
+ "description": "Disable color output",
3963
+ "helpGroup": "GLOBAL",
3964
+ "name": "no-color",
3965
+ "allowNo": false,
3966
+ "type": "boolean"
3833
3967
  },
3834
- "spam": {
3835
- "description": "Filter by spam status",
3836
- "name": "spam",
3968
+ "profile": {
3969
+ "description": "Named configuration profile to use",
3970
+ "helpGroup": "GLOBAL",
3971
+ "name": "profile",
3972
+ "default": "default",
3837
3973
  "hasDynamicHelp": false,
3838
3974
  "multiple": false,
3839
- "options": [
3840
- "true",
3841
- "false"
3842
- ],
3843
3975
  "type": "option"
3844
3976
  },
3845
- "trust-level": {
3846
- "description": "Comma-separated trust levels",
3847
- "name": "trust-level",
3977
+ "api-url": {
3978
+ "description": "Override the API base URL (e.g. for staging)",
3979
+ "helpGroup": "GLOBAL",
3980
+ "name": "api-url",
3848
3981
  "hasDynamicHelp": false,
3849
3982
  "multiple": false,
3850
3983
  "type": "option"
@@ -3852,7 +3985,7 @@
3852
3985
  },
3853
3986
  "hasDynamicHelp": false,
3854
3987
  "hiddenAliases": [],
3855
- "id": "contacts:list",
3988
+ "id": "config:unset",
3856
3989
  "pluginAlias": "@instantkom/cli",
3857
3990
  "pluginName": "@instantkom/cli",
3858
3991
  "pluginType": "core",
@@ -3862,20 +3995,14 @@
3862
3995
  "relativePath": [
3863
3996
  "dist",
3864
3997
  "commands",
3865
- "contacts",
3866
- "list.js"
3998
+ "config",
3999
+ "unset.js"
3867
4000
  ]
3868
4001
  },
3869
- "contacts:update": {
4002
+ "contacts:create": {
3870
4003
  "aliases": [],
3871
- "args": {
3872
- "id": {
3873
- "description": "Contact ID",
3874
- "name": "id",
3875
- "required": true
3876
- }
3877
- },
3878
- "description": "Update a contact",
4004
+ "args": {},
4005
+ "description": "Create a contact",
3879
4006
  "flags": {
3880
4007
  "api-key": {
3881
4008
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3939,9 +4066,18 @@
3939
4066
  "multiple": false,
3940
4067
  "type": "option"
3941
4068
  },
4069
+ "channel": {
4070
+ "description": "Channel ID",
4071
+ "name": "channel",
4072
+ "required": true,
4073
+ "hasDynamicHelp": false,
4074
+ "multiple": false,
4075
+ "type": "option"
4076
+ },
3942
4077
  "identifier": {
3943
4078
  "description": "Unique contact identifier",
3944
4079
  "name": "identifier",
4080
+ "required": true,
3945
4081
  "hasDynamicHelp": false,
3946
4082
  "multiple": false,
3947
4083
  "type": "option"
@@ -3963,7 +4099,7 @@
3963
4099
  },
3964
4100
  "hasDynamicHelp": false,
3965
4101
  "hiddenAliases": [],
3966
- "id": "contacts:update",
4102
+ "id": "contacts:create",
3967
4103
  "pluginAlias": "@instantkom/cli",
3968
4104
  "pluginName": "@instantkom/cli",
3969
4105
  "pluginType": "core",
@@ -3974,13 +4110,19 @@
3974
4110
  "dist",
3975
4111
  "commands",
3976
4112
  "contacts",
3977
- "update.js"
4113
+ "create.js"
3978
4114
  ]
3979
4115
  },
3980
- "broadcast:create": {
4116
+ "contacts:delete": {
3981
4117
  "aliases": [],
3982
- "args": {},
3983
- "description": "Create a broadcast for channels or segments",
4118
+ "args": {
4119
+ "id": {
4120
+ "description": "Contact ID",
4121
+ "name": "id",
4122
+ "required": true
4123
+ }
4124
+ },
4125
+ "description": "Delete a contact",
3984
4126
  "flags": {
3985
4127
  "api-key": {
3986
4128
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4043,93 +4185,11 @@
4043
4185
  "hasDynamicHelp": false,
4044
4186
  "multiple": false,
4045
4187
  "type": "option"
4046
- },
4047
- "channel": {
4048
- "description": "Channel ID target",
4049
- "name": "channel",
4050
- "hasDynamicHelp": false,
4051
- "multiple": false,
4052
- "type": "option"
4053
- },
4054
- "segment": {
4055
- "description": "Segment ID within --channel",
4056
- "name": "segment",
4057
- "hasDynamicHelp": false,
4058
- "multiple": false,
4059
- "type": "option"
4060
- },
4061
- "target": {
4062
- "description": "Target as channelId or channelId:segmentId; may be repeated",
4063
- "name": "target",
4064
- "hasDynamicHelp": false,
4065
- "multiple": true,
4066
- "type": "option"
4067
- },
4068
- "text": {
4069
- "description": "Broadcast message text",
4070
- "name": "text",
4071
- "required": true,
4072
- "hasDynamicHelp": false,
4073
- "multiple": false,
4074
- "type": "option"
4075
- },
4076
- "send-at": {
4077
- "description": "Schedule send for an ISO-8601 date-time",
4078
- "name": "send-at",
4079
- "hasDynamicHelp": false,
4080
- "multiple": false,
4081
- "type": "option"
4082
- },
4083
- "dry-run": {
4084
- "description": "Validate and print the broadcast payload without mutating API calls",
4085
- "name": "dry-run",
4086
- "allowNo": false,
4087
- "type": "boolean"
4088
- },
4089
- "idempotency-key": {
4090
- "description": "Idempotency key forwarded as Idempotency-Key",
4091
- "name": "idempotency-key",
4092
- "hasDynamicHelp": false,
4093
- "multiple": false,
4094
- "type": "option"
4095
- },
4096
- "media": {
4097
- "description": "Media file path to upload",
4098
- "name": "media",
4099
- "hasDynamicHelp": false,
4100
- "multiple": true,
4101
- "type": "option"
4102
- },
4103
- "template-id": {
4104
- "description": "WhatsApp template ID",
4105
- "name": "template-id",
4106
- "hasDynamicHelp": false,
4107
- "multiple": false,
4108
- "type": "option"
4109
- },
4110
- "send-status": {
4111
- "description": "Initial broadcast send status",
4112
- "name": "send-status",
4113
- "default": "draft",
4114
- "hasDynamicHelp": false,
4115
- "multiple": false,
4116
- "options": [
4117
- "draft",
4118
- "scheduled",
4119
- "sending"
4120
- ],
4121
- "type": "option"
4122
- },
4123
- "auto-approve": {
4124
- "description": "Auto-approve broadcast when allowed by API permissions",
4125
- "name": "auto-approve",
4126
- "allowNo": false,
4127
- "type": "boolean"
4128
4188
  }
4129
4189
  },
4130
4190
  "hasDynamicHelp": false,
4131
4191
  "hiddenAliases": [],
4132
- "id": "broadcast:create",
4192
+ "id": "contacts:delete",
4133
4193
  "pluginAlias": "@instantkom/cli",
4134
4194
  "pluginName": "@instantkom/cli",
4135
4195
  "pluginType": "core",
@@ -4139,20 +4199,14 @@
4139
4199
  "relativePath": [
4140
4200
  "dist",
4141
4201
  "commands",
4142
- "broadcast",
4143
- "create.js"
4202
+ "contacts",
4203
+ "delete.js"
4144
4204
  ]
4145
4205
  },
4146
- "broadcast:delete": {
4206
+ "contacts:export": {
4147
4207
  "aliases": [],
4148
- "args": {
4149
- "id": {
4150
- "description": "broadcast ID",
4151
- "name": "id",
4152
- "required": true
4153
- }
4154
- },
4155
- "description": "Delete broadcast",
4208
+ "args": {},
4209
+ "description": "Export contacts to CSV",
4156
4210
  "flags": {
4157
4211
  "api-key": {
4158
4212
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4215,11 +4269,49 @@
4215
4269
  "hasDynamicHelp": false,
4216
4270
  "multiple": false,
4217
4271
  "type": "option"
4272
+ },
4273
+ "file": {
4274
+ "description": "CSV output file path",
4275
+ "name": "file",
4276
+ "required": true,
4277
+ "hasDynamicHelp": false,
4278
+ "multiple": false,
4279
+ "type": "option"
4280
+ },
4281
+ "channel": {
4282
+ "description": "Filter by channel ID",
4283
+ "name": "channel",
4284
+ "hasDynamicHelp": false,
4285
+ "multiple": false,
4286
+ "type": "option"
4287
+ },
4288
+ "search": {
4289
+ "description": "Search by name or identifier",
4290
+ "name": "search",
4291
+ "hasDynamicHelp": false,
4292
+ "multiple": false,
4293
+ "type": "option"
4294
+ },
4295
+ "page": {
4296
+ "description": "Page number",
4297
+ "name": "page",
4298
+ "default": 1,
4299
+ "hasDynamicHelp": false,
4300
+ "multiple": false,
4301
+ "type": "option"
4302
+ },
4303
+ "limit": {
4304
+ "description": "Items per page",
4305
+ "name": "limit",
4306
+ "default": 100,
4307
+ "hasDynamicHelp": false,
4308
+ "multiple": false,
4309
+ "type": "option"
4218
4310
  }
4219
4311
  },
4220
4312
  "hasDynamicHelp": false,
4221
4313
  "hiddenAliases": [],
4222
- "id": "broadcast:delete",
4314
+ "id": "contacts:export",
4223
4315
  "pluginAlias": "@instantkom/cli",
4224
4316
  "pluginName": "@instantkom/cli",
4225
4317
  "pluginType": "core",
@@ -4229,20 +4321,20 @@
4229
4321
  "relativePath": [
4230
4322
  "dist",
4231
4323
  "commands",
4232
- "broadcast",
4233
- "delete.js"
4324
+ "contacts",
4325
+ "export.js"
4234
4326
  ]
4235
4327
  },
4236
- "broadcast:get": {
4328
+ "contacts:get": {
4237
4329
  "aliases": [],
4238
4330
  "args": {
4239
4331
  "id": {
4240
- "description": "broadcast ID",
4332
+ "description": "Contact ID",
4241
4333
  "name": "id",
4242
4334
  "required": true
4243
4335
  }
4244
4336
  },
4245
- "description": "Get broadcast by ID",
4337
+ "description": "Get a contact by ID",
4246
4338
  "flags": {
4247
4339
  "api-key": {
4248
4340
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4309,7 +4401,7 @@
4309
4401
  },
4310
4402
  "hasDynamicHelp": false,
4311
4403
  "hiddenAliases": [],
4312
- "id": "broadcast:get",
4404
+ "id": "contacts:get",
4313
4405
  "pluginAlias": "@instantkom/cli",
4314
4406
  "pluginName": "@instantkom/cli",
4315
4407
  "pluginType": "core",
@@ -4319,14 +4411,14 @@
4319
4411
  "relativePath": [
4320
4412
  "dist",
4321
4413
  "commands",
4322
- "broadcast",
4414
+ "contacts",
4323
4415
  "get.js"
4324
4416
  ]
4325
4417
  },
4326
- "broadcast:list": {
4418
+ "contacts:import": {
4327
4419
  "aliases": [],
4328
4420
  "args": {},
4329
- "description": "List broadcasts",
4421
+ "description": "Import contacts from CSV",
4330
4422
  "flags": {
4331
4423
  "api-key": {
4332
4424
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4390,72 +4482,26 @@
4390
4482
  "multiple": false,
4391
4483
  "type": "option"
4392
4484
  },
4393
- "page": {
4394
- "description": "Page number",
4395
- "name": "page",
4396
- "default": 1,
4397
- "hasDynamicHelp": false,
4398
- "multiple": false,
4399
- "type": "option"
4400
- },
4401
- "limit": {
4402
- "description": "Items per page",
4403
- "name": "limit",
4404
- "default": 20,
4485
+ "file": {
4486
+ "description": "CSV file path",
4487
+ "name": "file",
4488
+ "required": true,
4405
4489
  "hasDynamicHelp": false,
4406
4490
  "multiple": false,
4407
4491
  "type": "option"
4408
4492
  },
4409
4493
  "channel": {
4410
- "description": "Filter by channel ID",
4494
+ "description": "Channel ID",
4411
4495
  "name": "channel",
4496
+ "required": true,
4412
4497
  "hasDynamicHelp": false,
4413
4498
  "multiple": false,
4414
4499
  "type": "option"
4415
- },
4416
- "send-status": {
4417
- "description": "Filter by send status",
4418
- "name": "send-status",
4419
- "hasDynamicHelp": false,
4420
- "multiple": false,
4421
- "type": "option"
4422
- },
4423
- "type": {
4424
- "description": "Broadcast type",
4425
- "name": "type",
4426
- "hasDynamicHelp": false,
4427
- "multiple": false,
4428
- "options": [
4429
- "text",
4430
- "image",
4431
- "video",
4432
- "audio",
4433
- "document"
4434
- ],
4435
- "type": "option"
4436
- },
4437
- "search": {
4438
- "description": "Search broadcasts",
4439
- "name": "search",
4440
- "hasDynamicHelp": false,
4441
- "multiple": false,
4442
- "type": "option"
4443
- },
4444
- "test": {
4445
- "description": "Filter test flag: 0 or 1",
4446
- "name": "test",
4447
- "hasDynamicHelp": false,
4448
- "multiple": false,
4449
- "options": [
4450
- "0",
4451
- "1"
4452
- ],
4453
- "type": "option"
4454
4500
  }
4455
4501
  },
4456
4502
  "hasDynamicHelp": false,
4457
4503
  "hiddenAliases": [],
4458
- "id": "broadcast:list",
4504
+ "id": "contacts:import",
4459
4505
  "pluginAlias": "@instantkom/cli",
4460
4506
  "pluginName": "@instantkom/cli",
4461
4507
  "pluginType": "core",
@@ -4465,20 +4511,14 @@
4465
4511
  "relativePath": [
4466
4512
  "dist",
4467
4513
  "commands",
4468
- "broadcast",
4469
- "list.js"
4514
+ "contacts",
4515
+ "import.js"
4470
4516
  ]
4471
4517
  },
4472
- "broadcast:send": {
4518
+ "contacts:list": {
4473
4519
  "aliases": [],
4474
- "args": {
4475
- "id": {
4476
- "description": "Broadcast ID",
4477
- "name": "id",
4478
- "required": true
4479
- }
4480
- },
4481
- "description": "Send a broadcast immediately",
4520
+ "args": {},
4521
+ "description": "List contacts",
4482
4522
  "flags": {
4483
4523
  "api-key": {
4484
4524
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4541,93 +4581,98 @@
4541
4581
  "hasDynamicHelp": false,
4542
4582
  "multiple": false,
4543
4583
  "type": "option"
4544
- }
4545
- },
4546
- "hasDynamicHelp": false,
4547
- "hiddenAliases": [],
4548
- "id": "broadcast:send",
4549
- "pluginAlias": "@instantkom/cli",
4550
- "pluginName": "@instantkom/cli",
4551
- "pluginType": "core",
4552
- "strict": true,
4553
- "enableJsonFlag": false,
4554
- "isESM": true,
4555
- "relativePath": [
4556
- "dist",
4557
- "commands",
4558
- "broadcast",
4559
- "send.js"
4560
- ]
4561
- },
4562
- "broadcast:status": {
4563
- "aliases": [],
4564
- "args": {
4565
- "id": {
4566
- "description": "Broadcast ID",
4567
- "name": "id",
4568
- "required": true
4569
- }
4570
- },
4571
- "description": "Show broadcast send status",
4572
- "flags": {
4573
- "api-key": {
4574
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
4575
- "env": "IKM_API_KEY",
4576
- "helpGroup": "GLOBAL",
4577
- "name": "api-key",
4584
+ },
4585
+ "channel": {
4586
+ "description": "Filter by channel ID",
4587
+ "name": "channel",
4578
4588
  "hasDynamicHelp": false,
4579
4589
  "multiple": false,
4580
4590
  "type": "option"
4581
4591
  },
4582
- "format": {
4583
- "description": "Output format: text, json, yaml, or table",
4584
- "helpGroup": "GLOBAL",
4585
- "name": "format",
4586
- "default": "text",
4592
+ "search": {
4593
+ "description": "Search by name or identifier",
4594
+ "name": "search",
4595
+ "hasDynamicHelp": false,
4596
+ "multiple": false,
4597
+ "type": "option"
4598
+ },
4599
+ "page": {
4600
+ "description": "Page number",
4601
+ "name": "page",
4602
+ "default": 1,
4603
+ "hasDynamicHelp": false,
4604
+ "multiple": false,
4605
+ "type": "option"
4606
+ },
4607
+ "limit": {
4608
+ "description": "Items per page",
4609
+ "name": "limit",
4610
+ "default": 20,
4611
+ "hasDynamicHelp": false,
4612
+ "multiple": false,
4613
+ "type": "option"
4614
+ },
4615
+ "optin-status": {
4616
+ "description": "Filter by opt-in status",
4617
+ "name": "optin-status",
4587
4618
  "hasDynamicHelp": false,
4588
4619
  "multiple": false,
4589
4620
  "options": [
4590
- "text",
4591
- "json",
4592
- "yaml",
4593
- "table"
4621
+ "0",
4622
+ "1"
4623
+ ],
4624
+ "type": "option"
4625
+ },
4626
+ "blocked": {
4627
+ "description": "Filter by blocked status: 1 blocked, 0 not blocked",
4628
+ "name": "blocked",
4629
+ "hasDynamicHelp": false,
4630
+ "multiple": false,
4631
+ "options": [
4632
+ "0",
4633
+ "1"
4634
+ ],
4635
+ "type": "option"
4636
+ },
4637
+ "segment": {
4638
+ "description": "Filter by segment ID",
4639
+ "name": "segment",
4640
+ "hasDynamicHelp": false,
4641
+ "multiple": false,
4642
+ "type": "option"
4643
+ },
4644
+ "tags": {
4645
+ "description": "Comma-separated tag IDs",
4646
+ "name": "tags",
4647
+ "hasDynamicHelp": false,
4648
+ "multiple": false,
4649
+ "type": "option"
4650
+ },
4651
+ "tag-match": {
4652
+ "description": "Tag match mode",
4653
+ "name": "tag-match",
4654
+ "hasDynamicHelp": false,
4655
+ "multiple": false,
4656
+ "options": [
4657
+ "any",
4658
+ "all"
4594
4659
  ],
4595
4660
  "type": "option"
4596
4661
  },
4597
- "json": {
4598
- "description": "Output in JSON format (alias for --format=json)",
4599
- "helpGroup": "GLOBAL",
4600
- "name": "json",
4601
- "allowNo": false,
4602
- "type": "boolean"
4603
- },
4604
- "quiet": {
4605
- "description": "Suppress all output except errors",
4606
- "helpGroup": "GLOBAL",
4607
- "name": "quiet",
4608
- "allowNo": false,
4609
- "type": "boolean"
4610
- },
4611
- "no-color": {
4612
- "description": "Disable color output",
4613
- "helpGroup": "GLOBAL",
4614
- "name": "no-color",
4615
- "allowNo": false,
4616
- "type": "boolean"
4617
- },
4618
- "profile": {
4619
- "description": "Named configuration profile to use",
4620
- "helpGroup": "GLOBAL",
4621
- "name": "profile",
4622
- "default": "default",
4662
+ "spam": {
4663
+ "description": "Filter by spam status",
4664
+ "name": "spam",
4623
4665
  "hasDynamicHelp": false,
4624
4666
  "multiple": false,
4667
+ "options": [
4668
+ "true",
4669
+ "false"
4670
+ ],
4625
4671
  "type": "option"
4626
4672
  },
4627
- "api-url": {
4628
- "description": "Override the API base URL (e.g. for staging)",
4629
- "helpGroup": "GLOBAL",
4630
- "name": "api-url",
4673
+ "trust-level": {
4674
+ "description": "Comma-separated trust levels",
4675
+ "name": "trust-level",
4631
4676
  "hasDynamicHelp": false,
4632
4677
  "multiple": false,
4633
4678
  "type": "option"
@@ -4635,7 +4680,7 @@
4635
4680
  },
4636
4681
  "hasDynamicHelp": false,
4637
4682
  "hiddenAliases": [],
4638
- "id": "broadcast:status",
4683
+ "id": "contacts:list",
4639
4684
  "pluginAlias": "@instantkom/cli",
4640
4685
  "pluginName": "@instantkom/cli",
4641
4686
  "pluginType": "core",
@@ -4645,20 +4690,20 @@
4645
4690
  "relativePath": [
4646
4691
  "dist",
4647
4692
  "commands",
4648
- "broadcast",
4649
- "status.js"
4693
+ "contacts",
4694
+ "list.js"
4650
4695
  ]
4651
4696
  },
4652
- "broadcast:update": {
4697
+ "contacts:update": {
4653
4698
  "aliases": [],
4654
4699
  "args": {
4655
4700
  "id": {
4656
- "description": "Broadcast ID",
4701
+ "description": "Contact ID",
4657
4702
  "name": "id",
4658
4703
  "required": true
4659
4704
  }
4660
4705
  },
4661
- "description": "Update a broadcast",
4706
+ "description": "Update a contact",
4662
4707
  "flags": {
4663
4708
  "api-key": {
4664
4709
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4722,61 +4767,16 @@
4722
4767
  "multiple": false,
4723
4768
  "type": "option"
4724
4769
  },
4725
- "text": {
4726
- "description": "Broadcast message text",
4727
- "name": "text",
4728
- "hasDynamicHelp": false,
4729
- "multiple": false,
4730
- "type": "option"
4731
- },
4732
- "send-status": {
4733
- "description": "Send status",
4734
- "name": "send-status",
4735
- "hasDynamicHelp": false,
4736
- "multiple": false,
4737
- "type": "option"
4738
- },
4739
- "scheduled-at": {
4740
- "description": "Unix timestamp for scheduled send",
4741
- "name": "scheduled-at",
4742
- "hasDynamicHelp": false,
4743
- "multiple": false,
4744
- "type": "option"
4745
- },
4746
- "approved": {
4747
- "description": "Mark as approved",
4748
- "name": "approved",
4749
- "allowNo": false,
4750
- "type": "boolean"
4751
- },
4752
- "locked": {
4753
- "description": "Mark as locked",
4754
- "name": "locked",
4755
- "allowNo": false,
4756
- "type": "boolean"
4757
- },
4758
- "test": {
4759
- "description": "Mark as test broadcast",
4760
- "name": "test",
4761
- "allowNo": false,
4762
- "type": "boolean"
4763
- },
4764
- "template-id": {
4765
- "description": "Template ID",
4766
- "name": "template-id",
4770
+ "identifier": {
4771
+ "description": "Unique contact identifier",
4772
+ "name": "identifier",
4767
4773
  "hasDynamicHelp": false,
4768
4774
  "multiple": false,
4769
4775
  "type": "option"
4770
4776
  },
4771
- "remove-media": {
4772
- "description": "Remove existing media",
4773
- "name": "remove-media",
4774
- "allowNo": false,
4775
- "type": "boolean"
4776
- },
4777
- "header-footer": {
4778
- "description": "Header/footer JSON array",
4779
- "name": "header-footer",
4777
+ "name": {
4778
+ "description": "Contact name",
4779
+ "name": "name",
4780
4780
  "hasDynamicHelp": false,
4781
4781
  "multiple": false,
4782
4782
  "type": "option"
@@ -4791,7 +4791,7 @@
4791
4791
  },
4792
4792
  "hasDynamicHelp": false,
4793
4793
  "hiddenAliases": [],
4794
- "id": "broadcast:update",
4794
+ "id": "contacts:update",
4795
4795
  "pluginAlias": "@instantkom/cli",
4796
4796
  "pluginName": "@instantkom/cli",
4797
4797
  "pluginType": "core",
@@ -4801,7 +4801,7 @@
4801
4801
  "relativePath": [
4802
4802
  "dist",
4803
4803
  "commands",
4804
- "broadcast",
4804
+ "contacts",
4805
4805
  "update.js"
4806
4806
  ]
4807
4807
  },
@@ -9293,10 +9293,10 @@
9293
9293
  "list.js"
9294
9294
  ]
9295
9295
  },
9296
- "templates:create": {
9296
+ "tickets:create": {
9297
9297
  "aliases": [],
9298
9298
  "args": {},
9299
- "description": "Create a message template",
9299
+ "description": "Create a ticket",
9300
9300
  "flags": {
9301
9301
  "api-key": {
9302
9302
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9368,70 +9368,45 @@
9368
9368
  "multiple": false,
9369
9369
  "type": "option"
9370
9370
  },
9371
- "name": {
9372
- "description": "Template name",
9373
- "name": "name",
9371
+ "subject": {
9372
+ "description": "Ticket subject",
9373
+ "name": "subject",
9374
9374
  "required": true,
9375
9375
  "hasDynamicHelp": false,
9376
9376
  "multiple": false,
9377
9377
  "type": "option"
9378
9378
  },
9379
- "type": {
9380
- "description": "Template type",
9381
- "name": "type",
9382
- "default": "text",
9383
- "hasDynamicHelp": false,
9384
- "multiple": false,
9385
- "options": [
9386
- "text",
9387
- "image",
9388
- "video",
9389
- "document",
9390
- "audio",
9391
- "location",
9392
- "contact",
9393
- "interactive"
9394
- ],
9395
- "type": "option"
9396
- },
9397
- "message": {
9398
- "description": "Template message",
9399
- "name": "message",
9400
- "required": true,
9379
+ "recipient": {
9380
+ "description": "Existing recipient ID",
9381
+ "name": "recipient",
9401
9382
  "hasDynamicHelp": false,
9402
9383
  "multiple": false,
9403
9384
  "type": "option"
9404
9385
  },
9405
- "color": {
9406
- "description": "Template color as HEX",
9407
- "name": "color",
9386
+ "email": {
9387
+ "description": "Customer email",
9388
+ "name": "email",
9408
9389
  "hasDynamicHelp": false,
9409
9390
  "multiple": false,
9410
9391
  "type": "option"
9411
9392
  },
9412
- "status": {
9413
- "description": "Template is active",
9414
- "name": "status",
9415
- "allowNo": true,
9416
- "type": "boolean"
9417
- },
9418
- "whatsapp-language": {
9419
- "description": "WhatsApp template language",
9420
- "name": "whatsapp-language",
9393
+ "name": {
9394
+ "description": "Customer name",
9395
+ "name": "name",
9421
9396
  "hasDynamicHelp": false,
9422
9397
  "multiple": false,
9423
9398
  "type": "option"
9424
9399
  },
9425
- "buttons": {
9426
- "description": "Buttons JSON array/object",
9427
- "name": "buttons",
9400
+ "priority": {
9401
+ "description": "Ticket priority",
9402
+ "name": "priority",
9428
9403
  "hasDynamicHelp": false,
9429
9404
  "multiple": false,
9430
9405
  "type": "option"
9431
9406
  },
9432
- "header-footer": {
9433
- "description": "Header/footer JSON object",
9434
- "name": "header-footer",
9407
+ "source": {
9408
+ "description": "Ticket source",
9409
+ "name": "source",
9435
9410
  "hasDynamicHelp": false,
9436
9411
  "multiple": false,
9437
9412
  "type": "option"
@@ -9446,7 +9421,7 @@
9446
9421
  },
9447
9422
  "hasDynamicHelp": false,
9448
9423
  "hiddenAliases": [],
9449
- "id": "templates:create",
9424
+ "id": "tickets:create",
9450
9425
  "pluginAlias": "@instantkom/cli",
9451
9426
  "pluginName": "@instantkom/cli",
9452
9427
  "pluginType": "core",
@@ -9456,20 +9431,20 @@
9456
9431
  "relativePath": [
9457
9432
  "dist",
9458
9433
  "commands",
9459
- "templates",
9434
+ "tickets",
9460
9435
  "create.js"
9461
9436
  ]
9462
9437
  },
9463
- "templates:delete": {
9438
+ "tickets:delete": {
9464
9439
  "aliases": [],
9465
9440
  "args": {
9466
9441
  "id": {
9467
- "description": "template ID",
9442
+ "description": "Ticket ID",
9468
9443
  "name": "id",
9469
9444
  "required": true
9470
9445
  }
9471
9446
  },
9472
- "description": "Delete template",
9447
+ "description": "Delete a ticket",
9473
9448
  "flags": {
9474
9449
  "api-key": {
9475
9450
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9532,11 +9507,19 @@
9532
9507
  "hasDynamicHelp": false,
9533
9508
  "multiple": false,
9534
9509
  "type": "option"
9510
+ },
9511
+ "channel": {
9512
+ "description": "Channel ID",
9513
+ "name": "channel",
9514
+ "required": true,
9515
+ "hasDynamicHelp": false,
9516
+ "multiple": false,
9517
+ "type": "option"
9535
9518
  }
9536
9519
  },
9537
9520
  "hasDynamicHelp": false,
9538
9521
  "hiddenAliases": [],
9539
- "id": "templates:delete",
9522
+ "id": "tickets:delete",
9540
9523
  "pluginAlias": "@instantkom/cli",
9541
9524
  "pluginName": "@instantkom/cli",
9542
9525
  "pluginType": "core",
@@ -9546,14 +9529,20 @@
9546
9529
  "relativePath": [
9547
9530
  "dist",
9548
9531
  "commands",
9549
- "templates",
9532
+ "tickets",
9550
9533
  "delete.js"
9551
9534
  ]
9552
9535
  },
9553
- "templates:export": {
9536
+ "tickets:get": {
9554
9537
  "aliases": [],
9555
- "args": {},
9556
- "description": "Export templates to a file",
9538
+ "args": {
9539
+ "id": {
9540
+ "description": "Ticket ID",
9541
+ "name": "id",
9542
+ "required": true
9543
+ }
9544
+ },
9545
+ "description": "Get a ticket by ID",
9557
9546
  "flags": {
9558
9547
  "api-key": {
9559
9548
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9565,14 +9554,17 @@
9565
9554
  "type": "option"
9566
9555
  },
9567
9556
  "format": {
9568
- "description": "Export format",
9557
+ "description": "Output format: text, json, yaml, or table",
9558
+ "helpGroup": "GLOBAL",
9569
9559
  "name": "format",
9570
- "default": "json",
9560
+ "default": "text",
9571
9561
  "hasDynamicHelp": false,
9572
9562
  "multiple": false,
9573
9563
  "options": [
9574
- "csv",
9575
- "json"
9564
+ "text",
9565
+ "json",
9566
+ "yaml",
9567
+ "table"
9576
9568
  ],
9577
9569
  "type": "option"
9578
9570
  },
@@ -9614,17 +9606,10 @@
9614
9606
  "multiple": false,
9615
9607
  "type": "option"
9616
9608
  },
9617
- "file": {
9618
- "description": "Output file path",
9619
- "name": "file",
9620
- "required": true,
9621
- "hasDynamicHelp": false,
9622
- "multiple": false,
9623
- "type": "option"
9624
- },
9625
9609
  "channel": {
9626
- "description": "Filter by channel ID",
9610
+ "description": "Channel ID",
9627
9611
  "name": "channel",
9612
+ "required": true,
9628
9613
  "hasDynamicHelp": false,
9629
9614
  "multiple": false,
9630
9615
  "type": "option"
@@ -9632,7 +9617,7 @@
9632
9617
  },
9633
9618
  "hasDynamicHelp": false,
9634
9619
  "hiddenAliases": [],
9635
- "id": "templates:export",
9620
+ "id": "tickets:get",
9636
9621
  "pluginAlias": "@instantkom/cli",
9637
9622
  "pluginName": "@instantkom/cli",
9638
9623
  "pluginType": "core",
@@ -9642,20 +9627,14 @@
9642
9627
  "relativePath": [
9643
9628
  "dist",
9644
9629
  "commands",
9645
- "templates",
9646
- "export.js"
9630
+ "tickets",
9631
+ "get.js"
9647
9632
  ]
9648
9633
  },
9649
- "templates:get": {
9634
+ "tickets:list": {
9650
9635
  "aliases": [],
9651
- "args": {
9652
- "id": {
9653
- "description": "Template ID",
9654
- "name": "id",
9655
- "required": true
9656
- }
9657
- },
9658
- "description": "Get a message template by ID",
9636
+ "args": {},
9637
+ "description": "List tickets for a channel",
9659
9638
  "flags": {
9660
9639
  "api-key": {
9661
9640
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9718,11 +9697,35 @@
9718
9697
  "hasDynamicHelp": false,
9719
9698
  "multiple": false,
9720
9699
  "type": "option"
9700
+ },
9701
+ "channel": {
9702
+ "description": "Channel ID",
9703
+ "name": "channel",
9704
+ "required": true,
9705
+ "hasDynamicHelp": false,
9706
+ "multiple": false,
9707
+ "type": "option"
9708
+ },
9709
+ "limit": {
9710
+ "description": "Maximum tickets to return",
9711
+ "name": "limit",
9712
+ "default": 500,
9713
+ "hasDynamicHelp": false,
9714
+ "multiple": false,
9715
+ "type": "option"
9716
+ },
9717
+ "offset": {
9718
+ "description": "Number of tickets to skip",
9719
+ "name": "offset",
9720
+ "default": 0,
9721
+ "hasDynamicHelp": false,
9722
+ "multiple": false,
9723
+ "type": "option"
9721
9724
  }
9722
9725
  },
9723
9726
  "hasDynamicHelp": false,
9724
9727
  "hiddenAliases": [],
9725
- "id": "templates:get",
9728
+ "id": "tickets:list",
9726
9729
  "pluginAlias": "@instantkom/cli",
9727
9730
  "pluginName": "@instantkom/cli",
9728
9731
  "pluginType": "core",
@@ -9732,14 +9735,20 @@
9732
9735
  "relativePath": [
9733
9736
  "dist",
9734
9737
  "commands",
9735
- "templates",
9736
- "get.js"
9738
+ "tickets",
9739
+ "list.js"
9737
9740
  ]
9738
9741
  },
9739
- "templates:import": {
9742
+ "tickets:reply": {
9740
9743
  "aliases": [],
9741
- "args": {},
9742
- "description": "Import templates from JSON",
9744
+ "args": {
9745
+ "id": {
9746
+ "description": "Ticket ID",
9747
+ "name": "id",
9748
+ "required": true
9749
+ }
9750
+ },
9751
+ "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.",
9743
9752
  "flags": {
9744
9753
  "api-key": {
9745
9754
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9803,32 +9812,24 @@
9803
9812
  "multiple": false,
9804
9813
  "type": "option"
9805
9814
  },
9806
- "file": {
9807
- "description": "JSON file path",
9808
- "name": "file",
9809
- "required": true,
9810
- "hasDynamicHelp": false,
9811
- "multiple": false,
9812
- "type": "option"
9813
- },
9814
- "channel": {
9815
- "description": "Target channel ID",
9816
- "name": "channel",
9815
+ "message": {
9816
+ "description": "Reply body (raw text, no salutation or sign-off)",
9817
+ "name": "message",
9817
9818
  "required": true,
9818
9819
  "hasDynamicHelp": false,
9819
9820
  "multiple": false,
9820
9821
  "type": "option"
9821
9822
  },
9822
- "skip-duplicates": {
9823
- "description": "Skip duplicate templates",
9824
- "name": "skip-duplicates",
9825
- "allowNo": true,
9823
+ "close": {
9824
+ "description": "Close the ticket after sending the reply",
9825
+ "name": "close",
9826
+ "allowNo": false,
9826
9827
  "type": "boolean"
9827
9828
  }
9828
9829
  },
9829
9830
  "hasDynamicHelp": false,
9830
9831
  "hiddenAliases": [],
9831
- "id": "templates:import",
9832
+ "id": "tickets:reply",
9832
9833
  "pluginAlias": "@instantkom/cli",
9833
9834
  "pluginName": "@instantkom/cli",
9834
9835
  "pluginType": "core",
@@ -9838,14 +9839,20 @@
9838
9839
  "relativePath": [
9839
9840
  "dist",
9840
9841
  "commands",
9841
- "templates",
9842
- "import.js"
9842
+ "tickets",
9843
+ "reply.js"
9843
9844
  ]
9844
9845
  },
9845
- "templates:list": {
9846
+ "tickets:update": {
9846
9847
  "aliases": [],
9847
- "args": {},
9848
- "description": "List message templates",
9848
+ "args": {
9849
+ "id": {
9850
+ "description": "Ticket ID",
9851
+ "name": "id",
9852
+ "required": true
9853
+ }
9854
+ },
9855
+ "description": "Update a ticket",
9849
9856
  "flags": {
9850
9857
  "api-key": {
9851
9858
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9910,31 +9917,50 @@
9910
9917
  "type": "option"
9911
9918
  },
9912
9919
  "channel": {
9913
- "description": "Filter by channel ID",
9920
+ "description": "Channel ID",
9914
9921
  "name": "channel",
9922
+ "required": true,
9915
9923
  "hasDynamicHelp": false,
9916
9924
  "multiple": false,
9917
9925
  "type": "option"
9918
9926
  },
9919
- "search": {
9920
- "description": "Search templates by name or content",
9921
- "name": "search",
9927
+ "subject": {
9928
+ "description": "Ticket subject",
9929
+ "name": "subject",
9922
9930
  "hasDynamicHelp": false,
9923
9931
  "multiple": false,
9924
9932
  "type": "option"
9925
9933
  },
9926
- "page": {
9927
- "description": "Page number",
9928
- "name": "page",
9929
- "default": 1,
9934
+ "priority": {
9935
+ "description": "Ticket priority",
9936
+ "name": "priority",
9930
9937
  "hasDynamicHelp": false,
9931
9938
  "multiple": false,
9932
9939
  "type": "option"
9933
9940
  },
9934
- "limit": {
9935
- "description": "Items per page",
9936
- "name": "limit",
9937
- "default": 20,
9941
+ "status": {
9942
+ "description": "Ticket status",
9943
+ "name": "status",
9944
+ "hasDynamicHelp": false,
9945
+ "multiple": false,
9946
+ "type": "option"
9947
+ },
9948
+ "assigned-to": {
9949
+ "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
9950
+ "name": "assigned-to",
9951
+ "hasDynamicHelp": false,
9952
+ "multiple": false,
9953
+ "type": "option"
9954
+ },
9955
+ "notify": {
9956
+ "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.",
9957
+ "name": "notify",
9958
+ "allowNo": true,
9959
+ "type": "boolean"
9960
+ },
9961
+ "data": {
9962
+ "description": "Additional JSON object payload",
9963
+ "name": "data",
9938
9964
  "hasDynamicHelp": false,
9939
9965
  "multiple": false,
9940
9966
  "type": "option"
@@ -9942,7 +9968,7 @@
9942
9968
  },
9943
9969
  "hasDynamicHelp": false,
9944
9970
  "hiddenAliases": [],
9945
- "id": "templates:list",
9971
+ "id": "tickets:update",
9946
9972
  "pluginAlias": "@instantkom/cli",
9947
9973
  "pluginName": "@instantkom/cli",
9948
9974
  "pluginType": "core",
@@ -9952,20 +9978,14 @@
9952
9978
  "relativePath": [
9953
9979
  "dist",
9954
9980
  "commands",
9955
- "templates",
9956
- "list.js"
9981
+ "tickets",
9982
+ "update.js"
9957
9983
  ]
9958
9984
  },
9959
- "templates:render": {
9985
+ "webhooks:add": {
9960
9986
  "aliases": [],
9961
- "args": {
9962
- "id": {
9963
- "description": "Template ID",
9964
- "name": "id",
9965
- "required": true
9966
- }
9967
- },
9968
- "description": "Render a message template locally",
9987
+ "args": {},
9988
+ "description": "Add a webhook subscription",
9969
9989
  "flags": {
9970
9990
  "api-key": {
9971
9991
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10029,17 +10049,33 @@
10029
10049
  "multiple": false,
10030
10050
  "type": "option"
10031
10051
  },
10032
- "vars": {
10033
- "description": "Template variable as key=value; may be repeated",
10034
- "name": "vars",
10052
+ "event": {
10053
+ "description": "Webhook event to subscribe to",
10054
+ "name": "event",
10055
+ "required": true,
10035
10056
  "hasDynamicHelp": false,
10036
- "multiple": true,
10057
+ "multiple": false,
10058
+ "options": [
10059
+ "new_contact",
10060
+ "new_message",
10061
+ "broadcast_sent",
10062
+ "contact_updated",
10063
+ "contact_opted_out"
10064
+ ],
10065
+ "type": "option"
10066
+ },
10067
+ "url": {
10068
+ "description": "HTTPS target URL that receives webhook POSTs",
10069
+ "name": "url",
10070
+ "required": true,
10071
+ "hasDynamicHelp": false,
10072
+ "multiple": false,
10037
10073
  "type": "option"
10038
10074
  }
10039
10075
  },
10040
10076
  "hasDynamicHelp": false,
10041
10077
  "hiddenAliases": [],
10042
- "id": "templates:render",
10078
+ "id": "webhooks:add",
10043
10079
  "pluginAlias": "@instantkom/cli",
10044
10080
  "pluginName": "@instantkom/cli",
10045
10081
  "pluginType": "core",
@@ -10049,20 +10085,14 @@
10049
10085
  "relativePath": [
10050
10086
  "dist",
10051
10087
  "commands",
10052
- "templates",
10053
- "render.js"
10088
+ "webhooks",
10089
+ "add.js"
10054
10090
  ]
10055
10091
  },
10056
- "templates:update": {
10092
+ "webhooks:events": {
10057
10093
  "aliases": [],
10058
- "args": {
10059
- "id": {
10060
- "description": "Template ID",
10061
- "name": "id",
10062
- "required": true
10063
- }
10064
- },
10065
- "description": "Update a message template",
10094
+ "args": {},
10095
+ "description": "List supported webhook event names",
10066
10096
  "flags": {
10067
10097
  "api-key": {
10068
10098
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10098,108 +10128,30 @@
10098
10128
  "quiet": {
10099
10129
  "description": "Suppress all output except errors",
10100
10130
  "helpGroup": "GLOBAL",
10101
- "name": "quiet",
10102
- "allowNo": false,
10103
- "type": "boolean"
10104
- },
10105
- "no-color": {
10106
- "description": "Disable color output",
10107
- "helpGroup": "GLOBAL",
10108
- "name": "no-color",
10109
- "allowNo": false,
10110
- "type": "boolean"
10111
- },
10112
- "profile": {
10113
- "description": "Named configuration profile to use",
10114
- "helpGroup": "GLOBAL",
10115
- "name": "profile",
10116
- "default": "default",
10117
- "hasDynamicHelp": false,
10118
- "multiple": false,
10119
- "type": "option"
10120
- },
10121
- "api-url": {
10122
- "description": "Override the API base URL (e.g. for staging)",
10123
- "helpGroup": "GLOBAL",
10124
- "name": "api-url",
10125
- "hasDynamicHelp": false,
10126
- "multiple": false,
10127
- "type": "option"
10128
- },
10129
- "name": {
10130
- "description": "Template name",
10131
- "name": "name",
10132
- "hasDynamicHelp": false,
10133
- "multiple": false,
10134
- "type": "option"
10135
- },
10136
- "type": {
10137
- "description": "Template type",
10138
- "name": "type",
10139
- "hasDynamicHelp": false,
10140
- "multiple": false,
10141
- "options": [
10142
- "text",
10143
- "image",
10144
- "video",
10145
- "document",
10146
- "audio",
10147
- "location",
10148
- "contact",
10149
- "interactive"
10150
- ],
10151
- "type": "option"
10152
- },
10153
- "message": {
10154
- "description": "Template message",
10155
- "name": "message",
10156
- "hasDynamicHelp": false,
10157
- "multiple": false,
10158
- "type": "option"
10159
- },
10160
- "color": {
10161
- "description": "Template color as HEX",
10162
- "name": "color",
10163
- "hasDynamicHelp": false,
10164
- "multiple": false,
10165
- "type": "option"
10166
- },
10167
- "status": {
10168
- "description": "Template is active",
10169
- "name": "status",
10170
- "allowNo": true,
10131
+ "name": "quiet",
10132
+ "allowNo": false,
10171
10133
  "type": "boolean"
10172
10134
  },
10173
- "remove-media": {
10174
- "description": "Remove existing media",
10175
- "name": "remove-media",
10135
+ "no-color": {
10136
+ "description": "Disable color output",
10137
+ "helpGroup": "GLOBAL",
10138
+ "name": "no-color",
10176
10139
  "allowNo": false,
10177
10140
  "type": "boolean"
10178
10141
  },
10179
- "whatsapp-language": {
10180
- "description": "WhatsApp template language",
10181
- "name": "whatsapp-language",
10182
- "hasDynamicHelp": false,
10183
- "multiple": false,
10184
- "type": "option"
10185
- },
10186
- "buttons": {
10187
- "description": "Buttons JSON array/object",
10188
- "name": "buttons",
10189
- "hasDynamicHelp": false,
10190
- "multiple": false,
10191
- "type": "option"
10192
- },
10193
- "header-footer": {
10194
- "description": "Header/footer JSON object",
10195
- "name": "header-footer",
10142
+ "profile": {
10143
+ "description": "Named configuration profile to use",
10144
+ "helpGroup": "GLOBAL",
10145
+ "name": "profile",
10146
+ "default": "default",
10196
10147
  "hasDynamicHelp": false,
10197
10148
  "multiple": false,
10198
10149
  "type": "option"
10199
10150
  },
10200
- "data": {
10201
- "description": "Additional JSON object payload",
10202
- "name": "data",
10151
+ "api-url": {
10152
+ "description": "Override the API base URL (e.g. for staging)",
10153
+ "helpGroup": "GLOBAL",
10154
+ "name": "api-url",
10203
10155
  "hasDynamicHelp": false,
10204
10156
  "multiple": false,
10205
10157
  "type": "option"
@@ -10207,7 +10159,7 @@
10207
10159
  },
10208
10160
  "hasDynamicHelp": false,
10209
10161
  "hiddenAliases": [],
10210
- "id": "templates:update",
10162
+ "id": "webhooks:events",
10211
10163
  "pluginAlias": "@instantkom/cli",
10212
10164
  "pluginName": "@instantkom/cli",
10213
10165
  "pluginType": "core",
@@ -10217,14 +10169,14 @@
10217
10169
  "relativePath": [
10218
10170
  "dist",
10219
10171
  "commands",
10220
- "templates",
10221
- "update.js"
10172
+ "webhooks",
10173
+ "events.js"
10222
10174
  ]
10223
10175
  },
10224
- "templates:validate-import": {
10176
+ "webhooks:list": {
10225
10177
  "aliases": [],
10226
10178
  "args": {},
10227
- "description": "Validate templates import JSON",
10179
+ "description": "List webhook subscriptions",
10228
10180
  "flags": {
10229
10181
  "api-key": {
10230
10182
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10287,27 +10239,11 @@
10287
10239
  "hasDynamicHelp": false,
10288
10240
  "multiple": false,
10289
10241
  "type": "option"
10290
- },
10291
- "file": {
10292
- "description": "JSON file path",
10293
- "name": "file",
10294
- "required": true,
10295
- "hasDynamicHelp": false,
10296
- "multiple": false,
10297
- "type": "option"
10298
- },
10299
- "channel": {
10300
- "description": "Target channel ID",
10301
- "name": "channel",
10302
- "required": true,
10303
- "hasDynamicHelp": false,
10304
- "multiple": false,
10305
- "type": "option"
10306
10242
  }
10307
10243
  },
10308
10244
  "hasDynamicHelp": false,
10309
10245
  "hiddenAliases": [],
10310
- "id": "templates:validate-import",
10246
+ "id": "webhooks:list",
10311
10247
  "pluginAlias": "@instantkom/cli",
10312
10248
  "pluginName": "@instantkom/cli",
10313
10249
  "pluginType": "core",
@@ -10317,14 +10253,14 @@
10317
10253
  "relativePath": [
10318
10254
  "dist",
10319
10255
  "commands",
10320
- "templates",
10321
- "validate-import.js"
10256
+ "webhooks",
10257
+ "list.js"
10322
10258
  ]
10323
10259
  },
10324
- "tickets:create": {
10260
+ "webhooks:logs": {
10325
10261
  "aliases": [],
10326
10262
  "args": {},
10327
- "description": "Create a ticket",
10263
+ "description": "Explain webhook log availability",
10328
10264
  "flags": {
10329
10265
  "api-key": {
10330
10266
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10387,69 +10323,11 @@
10387
10323
  "hasDynamicHelp": false,
10388
10324
  "multiple": false,
10389
10325
  "type": "option"
10390
- },
10391
- "channel": {
10392
- "description": "Channel ID",
10393
- "name": "channel",
10394
- "required": true,
10395
- "hasDynamicHelp": false,
10396
- "multiple": false,
10397
- "type": "option"
10398
- },
10399
- "subject": {
10400
- "description": "Ticket subject",
10401
- "name": "subject",
10402
- "required": true,
10403
- "hasDynamicHelp": false,
10404
- "multiple": false,
10405
- "type": "option"
10406
- },
10407
- "recipient": {
10408
- "description": "Existing recipient ID",
10409
- "name": "recipient",
10410
- "hasDynamicHelp": false,
10411
- "multiple": false,
10412
- "type": "option"
10413
- },
10414
- "email": {
10415
- "description": "Customer email",
10416
- "name": "email",
10417
- "hasDynamicHelp": false,
10418
- "multiple": false,
10419
- "type": "option"
10420
- },
10421
- "name": {
10422
- "description": "Customer name",
10423
- "name": "name",
10424
- "hasDynamicHelp": false,
10425
- "multiple": false,
10426
- "type": "option"
10427
- },
10428
- "priority": {
10429
- "description": "Ticket priority",
10430
- "name": "priority",
10431
- "hasDynamicHelp": false,
10432
- "multiple": false,
10433
- "type": "option"
10434
- },
10435
- "source": {
10436
- "description": "Ticket source",
10437
- "name": "source",
10438
- "hasDynamicHelp": false,
10439
- "multiple": false,
10440
- "type": "option"
10441
- },
10442
- "data": {
10443
- "description": "Additional JSON object payload",
10444
- "name": "data",
10445
- "hasDynamicHelp": false,
10446
- "multiple": false,
10447
- "type": "option"
10448
10326
  }
10449
10327
  },
10450
10328
  "hasDynamicHelp": false,
10451
10329
  "hiddenAliases": [],
10452
- "id": "tickets:create",
10330
+ "id": "webhooks:logs",
10453
10331
  "pluginAlias": "@instantkom/cli",
10454
10332
  "pluginName": "@instantkom/cli",
10455
10333
  "pluginType": "core",
@@ -10459,20 +10337,20 @@
10459
10337
  "relativePath": [
10460
10338
  "dist",
10461
10339
  "commands",
10462
- "tickets",
10463
- "create.js"
10340
+ "webhooks",
10341
+ "logs.js"
10464
10342
  ]
10465
10343
  },
10466
- "tickets:delete": {
10344
+ "webhooks:remove": {
10467
10345
  "aliases": [],
10468
10346
  "args": {
10469
10347
  "id": {
10470
- "description": "Ticket ID",
10348
+ "description": "Webhook subscription ID",
10471
10349
  "name": "id",
10472
10350
  "required": true
10473
10351
  }
10474
10352
  },
10475
- "description": "Delete a ticket",
10353
+ "description": "Remove a webhook subscription",
10476
10354
  "flags": {
10477
10355
  "api-key": {
10478
10356
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10535,19 +10413,11 @@
10535
10413
  "hasDynamicHelp": false,
10536
10414
  "multiple": false,
10537
10415
  "type": "option"
10538
- },
10539
- "channel": {
10540
- "description": "Channel ID",
10541
- "name": "channel",
10542
- "required": true,
10543
- "hasDynamicHelp": false,
10544
- "multiple": false,
10545
- "type": "option"
10546
10416
  }
10547
10417
  },
10548
10418
  "hasDynamicHelp": false,
10549
10419
  "hiddenAliases": [],
10550
- "id": "tickets:delete",
10420
+ "id": "webhooks:remove",
10551
10421
  "pluginAlias": "@instantkom/cli",
10552
10422
  "pluginName": "@instantkom/cli",
10553
10423
  "pluginType": "core",
@@ -10557,20 +10427,14 @@
10557
10427
  "relativePath": [
10558
10428
  "dist",
10559
10429
  "commands",
10560
- "tickets",
10561
- "delete.js"
10430
+ "webhooks",
10431
+ "remove.js"
10562
10432
  ]
10563
10433
  },
10564
- "tickets:get": {
10434
+ "webhooks:test": {
10565
10435
  "aliases": [],
10566
- "args": {
10567
- "id": {
10568
- "description": "Ticket ID",
10569
- "name": "id",
10570
- "required": true
10571
- }
10572
- },
10573
- "description": "Get a ticket by ID",
10436
+ "args": {},
10437
+ "description": "Send a test webhook payload to a URL",
10574
10438
  "flags": {
10575
10439
  "api-key": {
10576
10440
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10634,18 +10498,33 @@
10634
10498
  "multiple": false,
10635
10499
  "type": "option"
10636
10500
  },
10637
- "channel": {
10638
- "description": "Channel ID",
10639
- "name": "channel",
10501
+ "url": {
10502
+ "description": "Webhook URL to call",
10503
+ "name": "url",
10640
10504
  "required": true,
10641
10505
  "hasDynamicHelp": false,
10642
10506
  "multiple": false,
10643
10507
  "type": "option"
10508
+ },
10509
+ "event": {
10510
+ "description": "Event name",
10511
+ "name": "event",
10512
+ "default": "cli.test",
10513
+ "hasDynamicHelp": false,
10514
+ "multiple": false,
10515
+ "type": "option"
10516
+ },
10517
+ "payload": {
10518
+ "description": "Payload JSON",
10519
+ "name": "payload",
10520
+ "hasDynamicHelp": false,
10521
+ "multiple": false,
10522
+ "type": "option"
10644
10523
  }
10645
10524
  },
10646
10525
  "hasDynamicHelp": false,
10647
10526
  "hiddenAliases": [],
10648
- "id": "tickets:get",
10527
+ "id": "webhooks:test",
10649
10528
  "pluginAlias": "@instantkom/cli",
10650
10529
  "pluginName": "@instantkom/cli",
10651
10530
  "pluginType": "core",
@@ -10655,14 +10534,14 @@
10655
10534
  "relativePath": [
10656
10535
  "dist",
10657
10536
  "commands",
10658
- "tickets",
10659
- "get.js"
10537
+ "webhooks",
10538
+ "test.js"
10660
10539
  ]
10661
10540
  },
10662
- "tickets:list": {
10541
+ "templates:create": {
10663
10542
  "aliases": [],
10664
10543
  "args": {},
10665
- "description": "List tickets for a channel",
10544
+ "description": "Create a message template",
10666
10545
  "flags": {
10667
10546
  "api-key": {
10668
10547
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10709,43 +10588,102 @@
10709
10588
  "allowNo": false,
10710
10589
  "type": "boolean"
10711
10590
  },
10712
- "profile": {
10713
- "description": "Named configuration profile to use",
10714
- "helpGroup": "GLOBAL",
10715
- "name": "profile",
10716
- "default": "default",
10591
+ "profile": {
10592
+ "description": "Named configuration profile to use",
10593
+ "helpGroup": "GLOBAL",
10594
+ "name": "profile",
10595
+ "default": "default",
10596
+ "hasDynamicHelp": false,
10597
+ "multiple": false,
10598
+ "type": "option"
10599
+ },
10600
+ "api-url": {
10601
+ "description": "Override the API base URL (e.g. for staging)",
10602
+ "helpGroup": "GLOBAL",
10603
+ "name": "api-url",
10604
+ "hasDynamicHelp": false,
10605
+ "multiple": false,
10606
+ "type": "option"
10607
+ },
10608
+ "channel": {
10609
+ "description": "Channel ID",
10610
+ "name": "channel",
10611
+ "required": true,
10612
+ "hasDynamicHelp": false,
10613
+ "multiple": false,
10614
+ "type": "option"
10615
+ },
10616
+ "name": {
10617
+ "description": "Template name",
10618
+ "name": "name",
10619
+ "required": true,
10620
+ "hasDynamicHelp": false,
10621
+ "multiple": false,
10622
+ "type": "option"
10623
+ },
10624
+ "type": {
10625
+ "description": "Template type",
10626
+ "name": "type",
10627
+ "default": "text",
10628
+ "hasDynamicHelp": false,
10629
+ "multiple": false,
10630
+ "options": [
10631
+ "text",
10632
+ "image",
10633
+ "video",
10634
+ "document",
10635
+ "audio",
10636
+ "location",
10637
+ "contact",
10638
+ "interactive"
10639
+ ],
10640
+ "type": "option"
10641
+ },
10642
+ "message": {
10643
+ "description": "Template message",
10644
+ "name": "message",
10645
+ "required": true,
10646
+ "hasDynamicHelp": false,
10647
+ "multiple": false,
10648
+ "type": "option"
10649
+ },
10650
+ "color": {
10651
+ "description": "Template color as HEX",
10652
+ "name": "color",
10717
10653
  "hasDynamicHelp": false,
10718
10654
  "multiple": false,
10719
10655
  "type": "option"
10720
10656
  },
10721
- "api-url": {
10722
- "description": "Override the API base URL (e.g. for staging)",
10723
- "helpGroup": "GLOBAL",
10724
- "name": "api-url",
10657
+ "status": {
10658
+ "description": "Template is active",
10659
+ "name": "status",
10660
+ "allowNo": true,
10661
+ "type": "boolean"
10662
+ },
10663
+ "whatsapp-language": {
10664
+ "description": "WhatsApp template language",
10665
+ "name": "whatsapp-language",
10725
10666
  "hasDynamicHelp": false,
10726
10667
  "multiple": false,
10727
10668
  "type": "option"
10728
10669
  },
10729
- "channel": {
10730
- "description": "Channel ID",
10731
- "name": "channel",
10732
- "required": true,
10670
+ "buttons": {
10671
+ "description": "Buttons JSON array/object",
10672
+ "name": "buttons",
10733
10673
  "hasDynamicHelp": false,
10734
10674
  "multiple": false,
10735
10675
  "type": "option"
10736
10676
  },
10737
- "limit": {
10738
- "description": "Maximum tickets to return",
10739
- "name": "limit",
10740
- "default": 500,
10677
+ "header-footer": {
10678
+ "description": "Header/footer JSON object",
10679
+ "name": "header-footer",
10741
10680
  "hasDynamicHelp": false,
10742
10681
  "multiple": false,
10743
10682
  "type": "option"
10744
10683
  },
10745
- "offset": {
10746
- "description": "Number of tickets to skip",
10747
- "name": "offset",
10748
- "default": 0,
10684
+ "data": {
10685
+ "description": "Additional JSON object payload",
10686
+ "name": "data",
10749
10687
  "hasDynamicHelp": false,
10750
10688
  "multiple": false,
10751
10689
  "type": "option"
@@ -10753,7 +10691,7 @@
10753
10691
  },
10754
10692
  "hasDynamicHelp": false,
10755
10693
  "hiddenAliases": [],
10756
- "id": "tickets:list",
10694
+ "id": "templates:create",
10757
10695
  "pluginAlias": "@instantkom/cli",
10758
10696
  "pluginName": "@instantkom/cli",
10759
10697
  "pluginType": "core",
@@ -10763,20 +10701,20 @@
10763
10701
  "relativePath": [
10764
10702
  "dist",
10765
10703
  "commands",
10766
- "tickets",
10767
- "list.js"
10704
+ "templates",
10705
+ "create.js"
10768
10706
  ]
10769
10707
  },
10770
- "tickets:reply": {
10708
+ "templates:delete": {
10771
10709
  "aliases": [],
10772
10710
  "args": {
10773
10711
  "id": {
10774
- "description": "Ticket ID",
10712
+ "description": "template ID",
10775
10713
  "name": "id",
10776
10714
  "required": true
10777
10715
  }
10778
10716
  },
10779
- "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.",
10717
+ "description": "Delete template",
10780
10718
  "flags": {
10781
10719
  "api-key": {
10782
10720
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10839,25 +10777,11 @@
10839
10777
  "hasDynamicHelp": false,
10840
10778
  "multiple": false,
10841
10779
  "type": "option"
10842
- },
10843
- "message": {
10844
- "description": "Reply body (raw text, no salutation or sign-off)",
10845
- "name": "message",
10846
- "required": true,
10847
- "hasDynamicHelp": false,
10848
- "multiple": false,
10849
- "type": "option"
10850
- },
10851
- "close": {
10852
- "description": "Close the ticket after sending the reply",
10853
- "name": "close",
10854
- "allowNo": false,
10855
- "type": "boolean"
10856
10780
  }
10857
10781
  },
10858
10782
  "hasDynamicHelp": false,
10859
10783
  "hiddenAliases": [],
10860
- "id": "tickets:reply",
10784
+ "id": "templates:delete",
10861
10785
  "pluginAlias": "@instantkom/cli",
10862
10786
  "pluginName": "@instantkom/cli",
10863
10787
  "pluginType": "core",
@@ -10867,20 +10791,14 @@
10867
10791
  "relativePath": [
10868
10792
  "dist",
10869
10793
  "commands",
10870
- "tickets",
10871
- "reply.js"
10794
+ "templates",
10795
+ "delete.js"
10872
10796
  ]
10873
10797
  },
10874
- "tickets:update": {
10798
+ "templates:export": {
10875
10799
  "aliases": [],
10876
- "args": {
10877
- "id": {
10878
- "description": "Ticket ID",
10879
- "name": "id",
10880
- "required": true
10881
- }
10882
- },
10883
- "description": "Update a ticket",
10800
+ "args": {},
10801
+ "description": "Export templates to a file",
10884
10802
  "flags": {
10885
10803
  "api-key": {
10886
10804
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10892,17 +10810,14 @@
10892
10810
  "type": "option"
10893
10811
  },
10894
10812
  "format": {
10895
- "description": "Output format: text, json, yaml, or table",
10896
- "helpGroup": "GLOBAL",
10813
+ "description": "Export format",
10897
10814
  "name": "format",
10898
- "default": "text",
10815
+ "default": "json",
10899
10816
  "hasDynamicHelp": false,
10900
10817
  "multiple": false,
10901
10818
  "options": [
10902
- "text",
10903
- "json",
10904
- "yaml",
10905
- "table"
10819
+ "csv",
10820
+ "json"
10906
10821
  ],
10907
10822
  "type": "option"
10908
10823
  },
@@ -10944,51 +10859,17 @@
10944
10859
  "multiple": false,
10945
10860
  "type": "option"
10946
10861
  },
10947
- "channel": {
10948
- "description": "Channel ID",
10949
- "name": "channel",
10862
+ "file": {
10863
+ "description": "Output file path",
10864
+ "name": "file",
10950
10865
  "required": true,
10951
10866
  "hasDynamicHelp": false,
10952
10867
  "multiple": false,
10953
10868
  "type": "option"
10954
10869
  },
10955
- "subject": {
10956
- "description": "Ticket subject",
10957
- "name": "subject",
10958
- "hasDynamicHelp": false,
10959
- "multiple": false,
10960
- "type": "option"
10961
- },
10962
- "priority": {
10963
- "description": "Ticket priority",
10964
- "name": "priority",
10965
- "hasDynamicHelp": false,
10966
- "multiple": false,
10967
- "type": "option"
10968
- },
10969
- "status": {
10970
- "description": "Ticket status",
10971
- "name": "status",
10972
- "hasDynamicHelp": false,
10973
- "multiple": false,
10974
- "type": "option"
10975
- },
10976
- "assigned-to": {
10977
- "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
10978
- "name": "assigned-to",
10979
- "hasDynamicHelp": false,
10980
- "multiple": false,
10981
- "type": "option"
10982
- },
10983
- "notify": {
10984
- "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.",
10985
- "name": "notify",
10986
- "allowNo": true,
10987
- "type": "boolean"
10988
- },
10989
- "data": {
10990
- "description": "Additional JSON object payload",
10991
- "name": "data",
10870
+ "channel": {
10871
+ "description": "Filter by channel ID",
10872
+ "name": "channel",
10992
10873
  "hasDynamicHelp": false,
10993
10874
  "multiple": false,
10994
10875
  "type": "option"
@@ -10996,7 +10877,7 @@
10996
10877
  },
10997
10878
  "hasDynamicHelp": false,
10998
10879
  "hiddenAliases": [],
10999
- "id": "tickets:update",
10880
+ "id": "templates:export",
11000
10881
  "pluginAlias": "@instantkom/cli",
11001
10882
  "pluginName": "@instantkom/cli",
11002
10883
  "pluginType": "core",
@@ -11006,14 +10887,20 @@
11006
10887
  "relativePath": [
11007
10888
  "dist",
11008
10889
  "commands",
11009
- "tickets",
11010
- "update.js"
10890
+ "templates",
10891
+ "export.js"
11011
10892
  ]
11012
10893
  },
11013
- "webhooks:add": {
10894
+ "templates:get": {
11014
10895
  "aliases": [],
11015
- "args": {},
11016
- "description": "Add a webhook subscription",
10896
+ "args": {
10897
+ "id": {
10898
+ "description": "Template ID",
10899
+ "name": "id",
10900
+ "required": true
10901
+ }
10902
+ },
10903
+ "description": "Get a message template by ID",
11017
10904
  "flags": {
11018
10905
  "api-key": {
11019
10906
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11076,34 +10963,11 @@
11076
10963
  "hasDynamicHelp": false,
11077
10964
  "multiple": false,
11078
10965
  "type": "option"
11079
- },
11080
- "event": {
11081
- "description": "Webhook event to subscribe to",
11082
- "name": "event",
11083
- "required": true,
11084
- "hasDynamicHelp": false,
11085
- "multiple": false,
11086
- "options": [
11087
- "new_contact",
11088
- "new_message",
11089
- "broadcast_sent",
11090
- "contact_updated",
11091
- "contact_opted_out"
11092
- ],
11093
- "type": "option"
11094
- },
11095
- "url": {
11096
- "description": "HTTPS target URL that receives webhook POSTs",
11097
- "name": "url",
11098
- "required": true,
11099
- "hasDynamicHelp": false,
11100
- "multiple": false,
11101
- "type": "option"
11102
10966
  }
11103
10967
  },
11104
10968
  "hasDynamicHelp": false,
11105
10969
  "hiddenAliases": [],
11106
- "id": "webhooks:add",
10970
+ "id": "templates:get",
11107
10971
  "pluginAlias": "@instantkom/cli",
11108
10972
  "pluginName": "@instantkom/cli",
11109
10973
  "pluginType": "core",
@@ -11113,14 +10977,14 @@
11113
10977
  "relativePath": [
11114
10978
  "dist",
11115
10979
  "commands",
11116
- "webhooks",
11117
- "add.js"
10980
+ "templates",
10981
+ "get.js"
11118
10982
  ]
11119
10983
  },
11120
- "webhooks:events": {
10984
+ "templates:import": {
11121
10985
  "aliases": [],
11122
10986
  "args": {},
11123
- "description": "List supported webhook event names",
10987
+ "description": "Import templates from JSON",
11124
10988
  "flags": {
11125
10989
  "api-key": {
11126
10990
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11183,11 +11047,33 @@
11183
11047
  "hasDynamicHelp": false,
11184
11048
  "multiple": false,
11185
11049
  "type": "option"
11050
+ },
11051
+ "file": {
11052
+ "description": "JSON file path",
11053
+ "name": "file",
11054
+ "required": true,
11055
+ "hasDynamicHelp": false,
11056
+ "multiple": false,
11057
+ "type": "option"
11058
+ },
11059
+ "channel": {
11060
+ "description": "Target channel ID",
11061
+ "name": "channel",
11062
+ "required": true,
11063
+ "hasDynamicHelp": false,
11064
+ "multiple": false,
11065
+ "type": "option"
11066
+ },
11067
+ "skip-duplicates": {
11068
+ "description": "Skip duplicate templates",
11069
+ "name": "skip-duplicates",
11070
+ "allowNo": true,
11071
+ "type": "boolean"
11186
11072
  }
11187
11073
  },
11188
11074
  "hasDynamicHelp": false,
11189
11075
  "hiddenAliases": [],
11190
- "id": "webhooks:events",
11076
+ "id": "templates:import",
11191
11077
  "pluginAlias": "@instantkom/cli",
11192
11078
  "pluginName": "@instantkom/cli",
11193
11079
  "pluginType": "core",
@@ -11197,14 +11083,14 @@
11197
11083
  "relativePath": [
11198
11084
  "dist",
11199
11085
  "commands",
11200
- "webhooks",
11201
- "events.js"
11086
+ "templates",
11087
+ "import.js"
11202
11088
  ]
11203
11089
  },
11204
- "webhooks:list": {
11090
+ "templates:list": {
11205
11091
  "aliases": [],
11206
11092
  "args": {},
11207
- "description": "List webhook subscriptions",
11093
+ "description": "List message templates",
11208
11094
  "flags": {
11209
11095
  "api-key": {
11210
11096
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11267,11 +11153,41 @@
11267
11153
  "hasDynamicHelp": false,
11268
11154
  "multiple": false,
11269
11155
  "type": "option"
11156
+ },
11157
+ "channel": {
11158
+ "description": "Filter by channel ID",
11159
+ "name": "channel",
11160
+ "hasDynamicHelp": false,
11161
+ "multiple": false,
11162
+ "type": "option"
11163
+ },
11164
+ "search": {
11165
+ "description": "Search templates by name or content",
11166
+ "name": "search",
11167
+ "hasDynamicHelp": false,
11168
+ "multiple": false,
11169
+ "type": "option"
11170
+ },
11171
+ "page": {
11172
+ "description": "Page number",
11173
+ "name": "page",
11174
+ "default": 1,
11175
+ "hasDynamicHelp": false,
11176
+ "multiple": false,
11177
+ "type": "option"
11178
+ },
11179
+ "limit": {
11180
+ "description": "Items per page",
11181
+ "name": "limit",
11182
+ "default": 20,
11183
+ "hasDynamicHelp": false,
11184
+ "multiple": false,
11185
+ "type": "option"
11270
11186
  }
11271
11187
  },
11272
11188
  "hasDynamicHelp": false,
11273
11189
  "hiddenAliases": [],
11274
- "id": "webhooks:list",
11190
+ "id": "templates:list",
11275
11191
  "pluginAlias": "@instantkom/cli",
11276
11192
  "pluginName": "@instantkom/cli",
11277
11193
  "pluginType": "core",
@@ -11281,14 +11197,20 @@
11281
11197
  "relativePath": [
11282
11198
  "dist",
11283
11199
  "commands",
11284
- "webhooks",
11200
+ "templates",
11285
11201
  "list.js"
11286
11202
  ]
11287
11203
  },
11288
- "webhooks:logs": {
11204
+ "templates:render": {
11289
11205
  "aliases": [],
11290
- "args": {},
11291
- "description": "Explain webhook log availability",
11206
+ "args": {
11207
+ "id": {
11208
+ "description": "Template ID",
11209
+ "name": "id",
11210
+ "required": true
11211
+ }
11212
+ },
11213
+ "description": "Render a message template locally",
11292
11214
  "flags": {
11293
11215
  "api-key": {
11294
11216
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11351,11 +11273,18 @@
11351
11273
  "hasDynamicHelp": false,
11352
11274
  "multiple": false,
11353
11275
  "type": "option"
11276
+ },
11277
+ "vars": {
11278
+ "description": "Template variable as key=value; may be repeated",
11279
+ "name": "vars",
11280
+ "hasDynamicHelp": false,
11281
+ "multiple": true,
11282
+ "type": "option"
11354
11283
  }
11355
11284
  },
11356
11285
  "hasDynamicHelp": false,
11357
11286
  "hiddenAliases": [],
11358
- "id": "webhooks:logs",
11287
+ "id": "templates:render",
11359
11288
  "pluginAlias": "@instantkom/cli",
11360
11289
  "pluginName": "@instantkom/cli",
11361
11290
  "pluginType": "core",
@@ -11365,20 +11294,20 @@
11365
11294
  "relativePath": [
11366
11295
  "dist",
11367
11296
  "commands",
11368
- "webhooks",
11369
- "logs.js"
11297
+ "templates",
11298
+ "render.js"
11370
11299
  ]
11371
11300
  },
11372
- "webhooks:remove": {
11301
+ "templates:update": {
11373
11302
  "aliases": [],
11374
11303
  "args": {
11375
11304
  "id": {
11376
- "description": "Webhook subscription ID",
11305
+ "description": "Template ID",
11377
11306
  "name": "id",
11378
11307
  "required": true
11379
11308
  }
11380
11309
  },
11381
- "description": "Remove a webhook subscription",
11310
+ "description": "Update a message template",
11382
11311
  "flags": {
11383
11312
  "api-key": {
11384
11313
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11441,11 +11370,89 @@
11441
11370
  "hasDynamicHelp": false,
11442
11371
  "multiple": false,
11443
11372
  "type": "option"
11373
+ },
11374
+ "name": {
11375
+ "description": "Template name",
11376
+ "name": "name",
11377
+ "hasDynamicHelp": false,
11378
+ "multiple": false,
11379
+ "type": "option"
11380
+ },
11381
+ "type": {
11382
+ "description": "Template type",
11383
+ "name": "type",
11384
+ "hasDynamicHelp": false,
11385
+ "multiple": false,
11386
+ "options": [
11387
+ "text",
11388
+ "image",
11389
+ "video",
11390
+ "document",
11391
+ "audio",
11392
+ "location",
11393
+ "contact",
11394
+ "interactive"
11395
+ ],
11396
+ "type": "option"
11397
+ },
11398
+ "message": {
11399
+ "description": "Template message",
11400
+ "name": "message",
11401
+ "hasDynamicHelp": false,
11402
+ "multiple": false,
11403
+ "type": "option"
11404
+ },
11405
+ "color": {
11406
+ "description": "Template color as HEX",
11407
+ "name": "color",
11408
+ "hasDynamicHelp": false,
11409
+ "multiple": false,
11410
+ "type": "option"
11411
+ },
11412
+ "status": {
11413
+ "description": "Template is active",
11414
+ "name": "status",
11415
+ "allowNo": true,
11416
+ "type": "boolean"
11417
+ },
11418
+ "remove-media": {
11419
+ "description": "Remove existing media",
11420
+ "name": "remove-media",
11421
+ "allowNo": false,
11422
+ "type": "boolean"
11423
+ },
11424
+ "whatsapp-language": {
11425
+ "description": "WhatsApp template language",
11426
+ "name": "whatsapp-language",
11427
+ "hasDynamicHelp": false,
11428
+ "multiple": false,
11429
+ "type": "option"
11430
+ },
11431
+ "buttons": {
11432
+ "description": "Buttons JSON array/object",
11433
+ "name": "buttons",
11434
+ "hasDynamicHelp": false,
11435
+ "multiple": false,
11436
+ "type": "option"
11437
+ },
11438
+ "header-footer": {
11439
+ "description": "Header/footer JSON object",
11440
+ "name": "header-footer",
11441
+ "hasDynamicHelp": false,
11442
+ "multiple": false,
11443
+ "type": "option"
11444
+ },
11445
+ "data": {
11446
+ "description": "Additional JSON object payload",
11447
+ "name": "data",
11448
+ "hasDynamicHelp": false,
11449
+ "multiple": false,
11450
+ "type": "option"
11444
11451
  }
11445
11452
  },
11446
11453
  "hasDynamicHelp": false,
11447
11454
  "hiddenAliases": [],
11448
- "id": "webhooks:remove",
11455
+ "id": "templates:update",
11449
11456
  "pluginAlias": "@instantkom/cli",
11450
11457
  "pluginName": "@instantkom/cli",
11451
11458
  "pluginType": "core",
@@ -11455,14 +11462,14 @@
11455
11462
  "relativePath": [
11456
11463
  "dist",
11457
11464
  "commands",
11458
- "webhooks",
11459
- "remove.js"
11465
+ "templates",
11466
+ "update.js"
11460
11467
  ]
11461
11468
  },
11462
- "webhooks:test": {
11469
+ "templates:validate-import": {
11463
11470
  "aliases": [],
11464
11471
  "args": {},
11465
- "description": "Send a test webhook payload to a URL",
11472
+ "description": "Validate templates import JSON",
11466
11473
  "flags": {
11467
11474
  "api-key": {
11468
11475
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11526,25 +11533,18 @@
11526
11533
  "multiple": false,
11527
11534
  "type": "option"
11528
11535
  },
11529
- "url": {
11530
- "description": "Webhook URL to call",
11531
- "name": "url",
11536
+ "file": {
11537
+ "description": "JSON file path",
11538
+ "name": "file",
11532
11539
  "required": true,
11533
11540
  "hasDynamicHelp": false,
11534
11541
  "multiple": false,
11535
11542
  "type": "option"
11536
11543
  },
11537
- "event": {
11538
- "description": "Event name",
11539
- "name": "event",
11540
- "default": "cli.test",
11541
- "hasDynamicHelp": false,
11542
- "multiple": false,
11543
- "type": "option"
11544
- },
11545
- "payload": {
11546
- "description": "Payload JSON",
11547
- "name": "payload",
11544
+ "channel": {
11545
+ "description": "Target channel ID",
11546
+ "name": "channel",
11547
+ "required": true,
11548
11548
  "hasDynamicHelp": false,
11549
11549
  "multiple": false,
11550
11550
  "type": "option"
@@ -11552,7 +11552,7 @@
11552
11552
  },
11553
11553
  "hasDynamicHelp": false,
11554
11554
  "hiddenAliases": [],
11555
- "id": "webhooks:test",
11555
+ "id": "templates:validate-import",
11556
11556
  "pluginAlias": "@instantkom/cli",
11557
11557
  "pluginName": "@instantkom/cli",
11558
11558
  "pluginType": "core",
@@ -11562,8 +11562,8 @@
11562
11562
  "relativePath": [
11563
11563
  "dist",
11564
11564
  "commands",
11565
- "webhooks",
11566
- "test.js"
11565
+ "templates",
11566
+ "validate-import.js"
11567
11567
  ]
11568
11568
  },
11569
11569
  "auth:tokens:create": {
@@ -11856,16 +11856,16 @@
11856
11856
  "revoke.js"
11857
11857
  ]
11858
11858
  },
11859
- "bots:filters:create": {
11859
+ "bots:env-vars:bots": {
11860
11860
  "aliases": [],
11861
11861
  "args": {
11862
- "botId": {
11863
- "description": "Bot ID",
11864
- "name": "botId",
11862
+ "id": {
11863
+ "description": "Environment variable ID",
11864
+ "name": "id",
11865
11865
  "required": true
11866
11866
  }
11867
11867
  },
11868
- "description": "Create a bot filter",
11868
+ "description": "List bots using a bot environment variable",
11869
11869
  "flags": {
11870
11870
  "api-key": {
11871
11871
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11928,64 +11928,112 @@
11928
11928
  "hasDynamicHelp": false,
11929
11929
  "multiple": false,
11930
11930
  "type": "option"
11931
- },
11932
- "name": {
11933
- "description": "Filter name",
11934
- "name": "name",
11935
- "required": true,
11931
+ }
11932
+ },
11933
+ "hasDynamicHelp": false,
11934
+ "hiddenAliases": [],
11935
+ "id": "bots:env-vars:bots",
11936
+ "pluginAlias": "@instantkom/cli",
11937
+ "pluginName": "@instantkom/cli",
11938
+ "pluginType": "core",
11939
+ "strict": true,
11940
+ "enableJsonFlag": false,
11941
+ "isESM": true,
11942
+ "relativePath": [
11943
+ "dist",
11944
+ "commands",
11945
+ "bots",
11946
+ "env-vars",
11947
+ "bots.js"
11948
+ ]
11949
+ },
11950
+ "bots:env-vars:create": {
11951
+ "aliases": [],
11952
+ "args": {},
11953
+ "description": "Create a bot environment variable",
11954
+ "flags": {
11955
+ "api-key": {
11956
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
11957
+ "env": "IKM_API_KEY",
11958
+ "helpGroup": "GLOBAL",
11959
+ "name": "api-key",
11936
11960
  "hasDynamicHelp": false,
11937
11961
  "multiple": false,
11938
11962
  "type": "option"
11939
11963
  },
11940
- "operator": {
11941
- "description": "Logical operator",
11942
- "name": "operator",
11943
- "default": "and",
11964
+ "format": {
11965
+ "description": "Output format: text, json, yaml, or table",
11966
+ "helpGroup": "GLOBAL",
11967
+ "name": "format",
11968
+ "default": "text",
11944
11969
  "hasDynamicHelp": false,
11945
11970
  "multiple": false,
11971
+ "options": [
11972
+ "text",
11973
+ "json",
11974
+ "yaml",
11975
+ "table"
11976
+ ],
11946
11977
  "type": "option"
11947
11978
  },
11948
- "filter-object": {
11949
- "description": "Filter object type",
11950
- "name": "filter-object",
11951
- "default": "msg",
11979
+ "json": {
11980
+ "description": "Output in JSON format (alias for --format=json)",
11981
+ "helpGroup": "GLOBAL",
11982
+ "name": "json",
11983
+ "allowNo": false,
11984
+ "type": "boolean"
11985
+ },
11986
+ "quiet": {
11987
+ "description": "Suppress all output except errors",
11988
+ "helpGroup": "GLOBAL",
11989
+ "name": "quiet",
11990
+ "allowNo": false,
11991
+ "type": "boolean"
11992
+ },
11993
+ "no-color": {
11994
+ "description": "Disable color output",
11995
+ "helpGroup": "GLOBAL",
11996
+ "name": "no-color",
11997
+ "allowNo": false,
11998
+ "type": "boolean"
11999
+ },
12000
+ "profile": {
12001
+ "description": "Named configuration profile to use",
12002
+ "helpGroup": "GLOBAL",
12003
+ "name": "profile",
12004
+ "default": "default",
11952
12005
  "hasDynamicHelp": false,
11953
12006
  "multiple": false,
11954
12007
  "type": "option"
11955
12008
  },
11956
- "filter-attribute": {
11957
- "description": "Filter attribute",
11958
- "name": "filter-attribute",
11959
- "default": "text",
12009
+ "api-url": {
12010
+ "description": "Override the API base URL (e.g. for staging)",
12011
+ "helpGroup": "GLOBAL",
12012
+ "name": "api-url",
11960
12013
  "hasDynamicHelp": false,
11961
12014
  "multiple": false,
11962
12015
  "type": "option"
11963
- },
11964
- "filter-comparator": {
11965
- "description": "Filter comparator",
11966
- "name": "filter-comparator",
11967
- "default": "contains",
12016
+ },
12017
+ "key": {
12018
+ "description": "Variable key (max 16 chars, letters, digits, underscore)",
12019
+ "name": "key",
12020
+ "required": true,
11968
12021
  "hasDynamicHelp": false,
11969
12022
  "multiple": false,
11970
12023
  "type": "option"
11971
12024
  },
11972
- "filter-value": {
11973
- "description": "Filter value",
11974
- "name": "filter-value",
11975
- "required": true,
12025
+ "description": {
12026
+ "description": "Variable description",
12027
+ "name": "description",
11976
12028
  "hasDynamicHelp": false,
11977
12029
  "multiple": false,
11978
12030
  "type": "option"
11979
12031
  },
11980
- "status": {
11981
- "description": "Status: 0 inactive, 1 active",
11982
- "name": "status",
12032
+ "color": {
12033
+ "description": "Variable color as HEX",
12034
+ "name": "color",
11983
12035
  "hasDynamicHelp": false,
11984
12036
  "multiple": false,
11985
- "options": [
11986
- "0",
11987
- "1"
11988
- ],
11989
12037
  "type": "option"
11990
12038
  },
11991
12039
  "data": {
@@ -11998,7 +12046,7 @@
11998
12046
  },
11999
12047
  "hasDynamicHelp": false,
12000
12048
  "hiddenAliases": [],
12001
- "id": "bots:filters:create",
12049
+ "id": "bots:env-vars:create",
12002
12050
  "pluginAlias": "@instantkom/cli",
12003
12051
  "pluginName": "@instantkom/cli",
12004
12052
  "pluginType": "core",
@@ -12009,25 +12057,20 @@
12009
12057
  "dist",
12010
12058
  "commands",
12011
12059
  "bots",
12012
- "filters",
12060
+ "env-vars",
12013
12061
  "create.js"
12014
12062
  ]
12015
12063
  },
12016
- "bots:filters:delete": {
12064
+ "bots:env-vars:delete": {
12017
12065
  "aliases": [],
12018
12066
  "args": {
12019
- "botId": {
12020
- "description": "Bot ID",
12021
- "name": "botId",
12022
- "required": true
12023
- },
12024
- "filterId": {
12025
- "description": "Filter ID",
12026
- "name": "filterId",
12067
+ "id": {
12068
+ "description": "Environment variable ID",
12069
+ "name": "id",
12027
12070
  "required": true
12028
12071
  }
12029
12072
  },
12030
- "description": "Delete a bot filter",
12073
+ "description": "Delete a bot environment variable",
12031
12074
  "flags": {
12032
12075
  "api-key": {
12033
12076
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12094,7 +12137,7 @@
12094
12137
  },
12095
12138
  "hasDynamicHelp": false,
12096
12139
  "hiddenAliases": [],
12097
- "id": "bots:filters:delete",
12140
+ "id": "bots:env-vars:delete",
12098
12141
  "pluginAlias": "@instantkom/cli",
12099
12142
  "pluginName": "@instantkom/cli",
12100
12143
  "pluginType": "core",
@@ -12105,25 +12148,20 @@
12105
12148
  "dist",
12106
12149
  "commands",
12107
12150
  "bots",
12108
- "filters",
12151
+ "env-vars",
12109
12152
  "delete.js"
12110
12153
  ]
12111
12154
  },
12112
- "bots:filters:get": {
12155
+ "bots:env-vars:get": {
12113
12156
  "aliases": [],
12114
12157
  "args": {
12115
- "botId": {
12116
- "description": "Bot ID",
12117
- "name": "botId",
12118
- "required": true
12119
- },
12120
- "filterId": {
12121
- "description": "Filter ID",
12122
- "name": "filterId",
12158
+ "id": {
12159
+ "description": "Environment variable ID",
12160
+ "name": "id",
12123
12161
  "required": true
12124
12162
  }
12125
12163
  },
12126
- "description": "Get a bot filter",
12164
+ "description": "Get a bot environment variable",
12127
12165
  "flags": {
12128
12166
  "api-key": {
12129
12167
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12190,7 +12228,7 @@
12190
12228
  },
12191
12229
  "hasDynamicHelp": false,
12192
12230
  "hiddenAliases": [],
12193
- "id": "bots:filters:get",
12231
+ "id": "bots:env-vars:get",
12194
12232
  "pluginAlias": "@instantkom/cli",
12195
12233
  "pluginName": "@instantkom/cli",
12196
12234
  "pluginType": "core",
@@ -12201,20 +12239,14 @@
12201
12239
  "dist",
12202
12240
  "commands",
12203
12241
  "bots",
12204
- "filters",
12242
+ "env-vars",
12205
12243
  "get.js"
12206
12244
  ]
12207
12245
  },
12208
- "bots:filters:list": {
12246
+ "bots:env-vars:list": {
12209
12247
  "aliases": [],
12210
- "args": {
12211
- "botId": {
12212
- "description": "Bot ID",
12213
- "name": "botId",
12214
- "required": true
12215
- }
12216
- },
12217
- "description": "List bot filters",
12248
+ "args": {},
12249
+ "description": "List bot environment variables",
12218
12250
  "flags": {
12219
12251
  "api-key": {
12220
12252
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12294,20 +12326,16 @@
12294
12326
  "multiple": false,
12295
12327
  "type": "option"
12296
12328
  },
12297
- "status": {
12298
- "description": "Status filter: 0 inactive, 1 active",
12299
- "name": "status",
12329
+ "search": {
12330
+ "description": "Search in key or description",
12331
+ "name": "search",
12300
12332
  "hasDynamicHelp": false,
12301
12333
  "multiple": false,
12302
- "options": [
12303
- "0",
12304
- "1"
12305
- ],
12306
12334
  "type": "option"
12307
12335
  },
12308
- "search": {
12309
- "description": "Search in name or description",
12310
- "name": "search",
12336
+ "color": {
12337
+ "description": "Filter by color",
12338
+ "name": "color",
12311
12339
  "hasDynamicHelp": false,
12312
12340
  "multiple": false,
12313
12341
  "type": "option"
@@ -12315,7 +12343,7 @@
12315
12343
  },
12316
12344
  "hasDynamicHelp": false,
12317
12345
  "hiddenAliases": [],
12318
- "id": "bots:filters:list",
12346
+ "id": "bots:env-vars:list",
12319
12347
  "pluginAlias": "@instantkom/cli",
12320
12348
  "pluginName": "@instantkom/cli",
12321
12349
  "pluginType": "core",
@@ -12326,25 +12354,20 @@
12326
12354
  "dist",
12327
12355
  "commands",
12328
12356
  "bots",
12329
- "filters",
12357
+ "env-vars",
12330
12358
  "list.js"
12331
12359
  ]
12332
12360
  },
12333
- "bots:filters:update": {
12361
+ "bots:env-vars:update": {
12334
12362
  "aliases": [],
12335
12363
  "args": {
12336
- "botId": {
12337
- "description": "Bot ID",
12338
- "name": "botId",
12339
- "required": true
12340
- },
12341
- "filterId": {
12342
- "description": "Filter ID",
12343
- "name": "filterId",
12364
+ "id": {
12365
+ "description": "Environment variable ID",
12366
+ "name": "id",
12344
12367
  "required": true
12345
12368
  }
12346
12369
  },
12347
- "description": "Update a bot filter",
12370
+ "description": "Update a bot environment variable",
12348
12371
  "flags": {
12349
12372
  "api-key": {
12350
12373
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12408,57 +12431,18 @@
12408
12431
  "multiple": false,
12409
12432
  "type": "option"
12410
12433
  },
12411
- "name": {
12412
- "description": "Filter name",
12413
- "name": "name",
12414
- "hasDynamicHelp": false,
12415
- "multiple": false,
12416
- "type": "option"
12417
- },
12418
- "operator": {
12419
- "description": "Logical operator",
12420
- "name": "operator",
12421
- "hasDynamicHelp": false,
12422
- "multiple": false,
12423
- "type": "option"
12424
- },
12425
- "filter-object": {
12426
- "description": "Filter object type",
12427
- "name": "filter-object",
12428
- "hasDynamicHelp": false,
12429
- "multiple": false,
12430
- "type": "option"
12431
- },
12432
- "filter-attribute": {
12433
- "description": "Filter attribute",
12434
- "name": "filter-attribute",
12435
- "hasDynamicHelp": false,
12436
- "multiple": false,
12437
- "type": "option"
12438
- },
12439
- "filter-comparator": {
12440
- "description": "Filter comparator",
12441
- "name": "filter-comparator",
12442
- "hasDynamicHelp": false,
12443
- "multiple": false,
12444
- "type": "option"
12445
- },
12446
- "filter-value": {
12447
- "description": "Filter value",
12448
- "name": "filter-value",
12434
+ "description": {
12435
+ "description": "Variable description",
12436
+ "name": "description",
12449
12437
  "hasDynamicHelp": false,
12450
12438
  "multiple": false,
12451
12439
  "type": "option"
12452
12440
  },
12453
- "status": {
12454
- "description": "Status: 0 inactive, 1 active",
12455
- "name": "status",
12441
+ "color": {
12442
+ "description": "Variable color as HEX",
12443
+ "name": "color",
12456
12444
  "hasDynamicHelp": false,
12457
12445
  "multiple": false,
12458
- "options": [
12459
- "0",
12460
- "1"
12461
- ],
12462
12446
  "type": "option"
12463
12447
  },
12464
12448
  "data": {
@@ -12471,7 +12455,7 @@
12471
12455
  },
12472
12456
  "hasDynamicHelp": false,
12473
12457
  "hiddenAliases": [],
12474
- "id": "bots:filters:update",
12458
+ "id": "bots:env-vars:update",
12475
12459
  "pluginAlias": "@instantkom/cli",
12476
12460
  "pluginName": "@instantkom/cli",
12477
12461
  "pluginType": "core",
@@ -12482,11 +12466,11 @@
12482
12466
  "dist",
12483
12467
  "commands",
12484
12468
  "bots",
12485
- "filters",
12469
+ "env-vars",
12486
12470
  "update.js"
12487
12471
  ]
12488
12472
  },
12489
- "bots:env-vars:bots": {
12473
+ "bots:env-vars:values": {
12490
12474
  "aliases": [],
12491
12475
  "args": {
12492
12476
  "id": {
@@ -12495,7 +12479,7 @@
12495
12479
  "required": true
12496
12480
  }
12497
12481
  },
12498
- "description": "List bots using a bot environment variable",
12482
+ "description": "List recipient values for a bot environment variable",
12499
12483
  "flags": {
12500
12484
  "api-key": {
12501
12485
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12558,11 +12542,41 @@
12558
12542
  "hasDynamicHelp": false,
12559
12543
  "multiple": false,
12560
12544
  "type": "option"
12545
+ },
12546
+ "page": {
12547
+ "description": "Page number",
12548
+ "name": "page",
12549
+ "default": 1,
12550
+ "hasDynamicHelp": false,
12551
+ "multiple": false,
12552
+ "type": "option"
12553
+ },
12554
+ "limit": {
12555
+ "description": "Items per page",
12556
+ "name": "limit",
12557
+ "default": 20,
12558
+ "hasDynamicHelp": false,
12559
+ "multiple": false,
12560
+ "type": "option"
12561
+ },
12562
+ "search": {
12563
+ "description": "Search in recipient name or identifier",
12564
+ "name": "search",
12565
+ "hasDynamicHelp": false,
12566
+ "multiple": false,
12567
+ "type": "option"
12568
+ },
12569
+ "recipient": {
12570
+ "description": "Filter by recipient ID",
12571
+ "name": "recipient",
12572
+ "hasDynamicHelp": false,
12573
+ "multiple": false,
12574
+ "type": "option"
12561
12575
  }
12562
12576
  },
12563
12577
  "hasDynamicHelp": false,
12564
12578
  "hiddenAliases": [],
12565
- "id": "bots:env-vars:bots",
12579
+ "id": "bots:env-vars:values",
12566
12580
  "pluginAlias": "@instantkom/cli",
12567
12581
  "pluginName": "@instantkom/cli",
12568
12582
  "pluginType": "core",
@@ -12574,13 +12588,19 @@
12574
12588
  "commands",
12575
12589
  "bots",
12576
12590
  "env-vars",
12577
- "bots.js"
12591
+ "values.js"
12578
12592
  ]
12579
12593
  },
12580
- "bots:env-vars:create": {
12594
+ "bots:filters:create": {
12581
12595
  "aliases": [],
12582
- "args": {},
12583
- "description": "Create a bot environment variable",
12596
+ "args": {
12597
+ "botId": {
12598
+ "description": "Bot ID",
12599
+ "name": "botId",
12600
+ "required": true
12601
+ }
12602
+ },
12603
+ "description": "Create a bot filter",
12584
12604
  "flags": {
12585
12605
  "api-key": {
12586
12606
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12644,26 +12664,63 @@
12644
12664
  "multiple": false,
12645
12665
  "type": "option"
12646
12666
  },
12647
- "key": {
12648
- "description": "Variable key (max 16 chars, letters, digits, underscore)",
12649
- "name": "key",
12667
+ "name": {
12668
+ "description": "Filter name",
12669
+ "name": "name",
12670
+ "required": true,
12671
+ "hasDynamicHelp": false,
12672
+ "multiple": false,
12673
+ "type": "option"
12674
+ },
12675
+ "operator": {
12676
+ "description": "Logical operator",
12677
+ "name": "operator",
12678
+ "default": "and",
12679
+ "hasDynamicHelp": false,
12680
+ "multiple": false,
12681
+ "type": "option"
12682
+ },
12683
+ "filter-object": {
12684
+ "description": "Filter object type",
12685
+ "name": "filter-object",
12686
+ "default": "msg",
12687
+ "hasDynamicHelp": false,
12688
+ "multiple": false,
12689
+ "type": "option"
12690
+ },
12691
+ "filter-attribute": {
12692
+ "description": "Filter attribute",
12693
+ "name": "filter-attribute",
12694
+ "default": "text",
12695
+ "hasDynamicHelp": false,
12696
+ "multiple": false,
12697
+ "type": "option"
12698
+ },
12699
+ "filter-comparator": {
12700
+ "description": "Filter comparator",
12701
+ "name": "filter-comparator",
12702
+ "default": "contains",
12703
+ "hasDynamicHelp": false,
12704
+ "multiple": false,
12705
+ "type": "option"
12706
+ },
12707
+ "filter-value": {
12708
+ "description": "Filter value",
12709
+ "name": "filter-value",
12650
12710
  "required": true,
12651
12711
  "hasDynamicHelp": false,
12652
12712
  "multiple": false,
12653
12713
  "type": "option"
12654
12714
  },
12655
- "description": {
12656
- "description": "Variable description",
12657
- "name": "description",
12658
- "hasDynamicHelp": false,
12659
- "multiple": false,
12660
- "type": "option"
12661
- },
12662
- "color": {
12663
- "description": "Variable color as HEX",
12664
- "name": "color",
12715
+ "status": {
12716
+ "description": "Status: 0 inactive, 1 active",
12717
+ "name": "status",
12665
12718
  "hasDynamicHelp": false,
12666
12719
  "multiple": false,
12720
+ "options": [
12721
+ "0",
12722
+ "1"
12723
+ ],
12667
12724
  "type": "option"
12668
12725
  },
12669
12726
  "data": {
@@ -12676,7 +12733,7 @@
12676
12733
  },
12677
12734
  "hasDynamicHelp": false,
12678
12735
  "hiddenAliases": [],
12679
- "id": "bots:env-vars:create",
12736
+ "id": "bots:filters:create",
12680
12737
  "pluginAlias": "@instantkom/cli",
12681
12738
  "pluginName": "@instantkom/cli",
12682
12739
  "pluginType": "core",
@@ -12687,20 +12744,25 @@
12687
12744
  "dist",
12688
12745
  "commands",
12689
12746
  "bots",
12690
- "env-vars",
12747
+ "filters",
12691
12748
  "create.js"
12692
12749
  ]
12693
12750
  },
12694
- "bots:env-vars:delete": {
12751
+ "bots:filters:delete": {
12695
12752
  "aliases": [],
12696
12753
  "args": {
12697
- "id": {
12698
- "description": "Environment variable ID",
12699
- "name": "id",
12754
+ "botId": {
12755
+ "description": "Bot ID",
12756
+ "name": "botId",
12757
+ "required": true
12758
+ },
12759
+ "filterId": {
12760
+ "description": "Filter ID",
12761
+ "name": "filterId",
12700
12762
  "required": true
12701
12763
  }
12702
12764
  },
12703
- "description": "Delete a bot environment variable",
12765
+ "description": "Delete a bot filter",
12704
12766
  "flags": {
12705
12767
  "api-key": {
12706
12768
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12767,7 +12829,7 @@
12767
12829
  },
12768
12830
  "hasDynamicHelp": false,
12769
12831
  "hiddenAliases": [],
12770
- "id": "bots:env-vars:delete",
12832
+ "id": "bots:filters:delete",
12771
12833
  "pluginAlias": "@instantkom/cli",
12772
12834
  "pluginName": "@instantkom/cli",
12773
12835
  "pluginType": "core",
@@ -12778,20 +12840,25 @@
12778
12840
  "dist",
12779
12841
  "commands",
12780
12842
  "bots",
12781
- "env-vars",
12843
+ "filters",
12782
12844
  "delete.js"
12783
12845
  ]
12784
12846
  },
12785
- "bots:env-vars:get": {
12847
+ "bots:filters:get": {
12786
12848
  "aliases": [],
12787
12849
  "args": {
12788
- "id": {
12789
- "description": "Environment variable ID",
12790
- "name": "id",
12850
+ "botId": {
12851
+ "description": "Bot ID",
12852
+ "name": "botId",
12853
+ "required": true
12854
+ },
12855
+ "filterId": {
12856
+ "description": "Filter ID",
12857
+ "name": "filterId",
12791
12858
  "required": true
12792
12859
  }
12793
12860
  },
12794
- "description": "Get a bot environment variable",
12861
+ "description": "Get a bot filter",
12795
12862
  "flags": {
12796
12863
  "api-key": {
12797
12864
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12858,7 +12925,7 @@
12858
12925
  },
12859
12926
  "hasDynamicHelp": false,
12860
12927
  "hiddenAliases": [],
12861
- "id": "bots:env-vars:get",
12928
+ "id": "bots:filters:get",
12862
12929
  "pluginAlias": "@instantkom/cli",
12863
12930
  "pluginName": "@instantkom/cli",
12864
12931
  "pluginType": "core",
@@ -12869,14 +12936,20 @@
12869
12936
  "dist",
12870
12937
  "commands",
12871
12938
  "bots",
12872
- "env-vars",
12939
+ "filters",
12873
12940
  "get.js"
12874
12941
  ]
12875
12942
  },
12876
- "bots:env-vars:list": {
12943
+ "bots:filters:list": {
12877
12944
  "aliases": [],
12878
- "args": {},
12879
- "description": "List bot environment variables",
12945
+ "args": {
12946
+ "botId": {
12947
+ "description": "Bot ID",
12948
+ "name": "botId",
12949
+ "required": true
12950
+ }
12951
+ },
12952
+ "description": "List bot filters",
12880
12953
  "flags": {
12881
12954
  "api-key": {
12882
12955
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12956,16 +13029,20 @@
12956
13029
  "multiple": false,
12957
13030
  "type": "option"
12958
13031
  },
12959
- "search": {
12960
- "description": "Search in key or description",
12961
- "name": "search",
13032
+ "status": {
13033
+ "description": "Status filter: 0 inactive, 1 active",
13034
+ "name": "status",
12962
13035
  "hasDynamicHelp": false,
12963
13036
  "multiple": false,
13037
+ "options": [
13038
+ "0",
13039
+ "1"
13040
+ ],
12964
13041
  "type": "option"
12965
13042
  },
12966
- "color": {
12967
- "description": "Filter by color",
12968
- "name": "color",
13043
+ "search": {
13044
+ "description": "Search in name or description",
13045
+ "name": "search",
12969
13046
  "hasDynamicHelp": false,
12970
13047
  "multiple": false,
12971
13048
  "type": "option"
@@ -12973,7 +13050,7 @@
12973
13050
  },
12974
13051
  "hasDynamicHelp": false,
12975
13052
  "hiddenAliases": [],
12976
- "id": "bots:env-vars:list",
13053
+ "id": "bots:filters:list",
12977
13054
  "pluginAlias": "@instantkom/cli",
12978
13055
  "pluginName": "@instantkom/cli",
12979
13056
  "pluginType": "core",
@@ -12984,20 +13061,25 @@
12984
13061
  "dist",
12985
13062
  "commands",
12986
13063
  "bots",
12987
- "env-vars",
13064
+ "filters",
12988
13065
  "list.js"
12989
13066
  ]
12990
13067
  },
12991
- "bots:env-vars:update": {
13068
+ "bots:filters:update": {
12992
13069
  "aliases": [],
12993
13070
  "args": {
12994
- "id": {
12995
- "description": "Environment variable ID",
12996
- "name": "id",
13071
+ "botId": {
13072
+ "description": "Bot ID",
13073
+ "name": "botId",
13074
+ "required": true
13075
+ },
13076
+ "filterId": {
13077
+ "description": "Filter ID",
13078
+ "name": "filterId",
12997
13079
  "required": true
12998
13080
  }
12999
13081
  },
13000
- "description": "Update a bot environment variable",
13082
+ "description": "Update a bot filter",
13001
13083
  "flags": {
13002
13084
  "api-key": {
13003
13085
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13061,144 +13143,62 @@
13061
13143
  "multiple": false,
13062
13144
  "type": "option"
13063
13145
  },
13064
- "description": {
13065
- "description": "Variable description",
13066
- "name": "description",
13067
- "hasDynamicHelp": false,
13068
- "multiple": false,
13069
- "type": "option"
13070
- },
13071
- "color": {
13072
- "description": "Variable color as HEX",
13073
- "name": "color",
13074
- "hasDynamicHelp": false,
13075
- "multiple": false,
13076
- "type": "option"
13077
- },
13078
- "data": {
13079
- "description": "Additional JSON object payload",
13080
- "name": "data",
13081
- "hasDynamicHelp": false,
13082
- "multiple": false,
13083
- "type": "option"
13084
- }
13085
- },
13086
- "hasDynamicHelp": false,
13087
- "hiddenAliases": [],
13088
- "id": "bots:env-vars:update",
13089
- "pluginAlias": "@instantkom/cli",
13090
- "pluginName": "@instantkom/cli",
13091
- "pluginType": "core",
13092
- "strict": true,
13093
- "enableJsonFlag": false,
13094
- "isESM": true,
13095
- "relativePath": [
13096
- "dist",
13097
- "commands",
13098
- "bots",
13099
- "env-vars",
13100
- "update.js"
13101
- ]
13102
- },
13103
- "bots:env-vars:values": {
13104
- "aliases": [],
13105
- "args": {
13106
- "id": {
13107
- "description": "Environment variable ID",
13108
- "name": "id",
13109
- "required": true
13110
- }
13111
- },
13112
- "description": "List recipient values for a bot environment variable",
13113
- "flags": {
13114
- "api-key": {
13115
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
13116
- "env": "IKM_API_KEY",
13117
- "helpGroup": "GLOBAL",
13118
- "name": "api-key",
13146
+ "name": {
13147
+ "description": "Filter name",
13148
+ "name": "name",
13119
13149
  "hasDynamicHelp": false,
13120
13150
  "multiple": false,
13121
13151
  "type": "option"
13122
13152
  },
13123
- "format": {
13124
- "description": "Output format: text, json, yaml, or table",
13125
- "helpGroup": "GLOBAL",
13126
- "name": "format",
13127
- "default": "text",
13153
+ "operator": {
13154
+ "description": "Logical operator",
13155
+ "name": "operator",
13128
13156
  "hasDynamicHelp": false,
13129
13157
  "multiple": false,
13130
- "options": [
13131
- "text",
13132
- "json",
13133
- "yaml",
13134
- "table"
13135
- ],
13136
13158
  "type": "option"
13137
13159
  },
13138
- "json": {
13139
- "description": "Output in JSON format (alias for --format=json)",
13140
- "helpGroup": "GLOBAL",
13141
- "name": "json",
13142
- "allowNo": false,
13143
- "type": "boolean"
13144
- },
13145
- "quiet": {
13146
- "description": "Suppress all output except errors",
13147
- "helpGroup": "GLOBAL",
13148
- "name": "quiet",
13149
- "allowNo": false,
13150
- "type": "boolean"
13151
- },
13152
- "no-color": {
13153
- "description": "Disable color output",
13154
- "helpGroup": "GLOBAL",
13155
- "name": "no-color",
13156
- "allowNo": false,
13157
- "type": "boolean"
13158
- },
13159
- "profile": {
13160
- "description": "Named configuration profile to use",
13161
- "helpGroup": "GLOBAL",
13162
- "name": "profile",
13163
- "default": "default",
13160
+ "filter-object": {
13161
+ "description": "Filter object type",
13162
+ "name": "filter-object",
13164
13163
  "hasDynamicHelp": false,
13165
13164
  "multiple": false,
13166
13165
  "type": "option"
13167
13166
  },
13168
- "api-url": {
13169
- "description": "Override the API base URL (e.g. for staging)",
13170
- "helpGroup": "GLOBAL",
13171
- "name": "api-url",
13167
+ "filter-attribute": {
13168
+ "description": "Filter attribute",
13169
+ "name": "filter-attribute",
13172
13170
  "hasDynamicHelp": false,
13173
13171
  "multiple": false,
13174
13172
  "type": "option"
13175
13173
  },
13176
- "page": {
13177
- "description": "Page number",
13178
- "name": "page",
13179
- "default": 1,
13174
+ "filter-comparator": {
13175
+ "description": "Filter comparator",
13176
+ "name": "filter-comparator",
13180
13177
  "hasDynamicHelp": false,
13181
13178
  "multiple": false,
13182
13179
  "type": "option"
13183
13180
  },
13184
- "limit": {
13185
- "description": "Items per page",
13186
- "name": "limit",
13187
- "default": 20,
13181
+ "filter-value": {
13182
+ "description": "Filter value",
13183
+ "name": "filter-value",
13188
13184
  "hasDynamicHelp": false,
13189
13185
  "multiple": false,
13190
13186
  "type": "option"
13191
13187
  },
13192
- "search": {
13193
- "description": "Search in recipient name or identifier",
13194
- "name": "search",
13188
+ "status": {
13189
+ "description": "Status: 0 inactive, 1 active",
13190
+ "name": "status",
13195
13191
  "hasDynamicHelp": false,
13196
13192
  "multiple": false,
13193
+ "options": [
13194
+ "0",
13195
+ "1"
13196
+ ],
13197
13197
  "type": "option"
13198
13198
  },
13199
- "recipient": {
13200
- "description": "Filter by recipient ID",
13201
- "name": "recipient",
13199
+ "data": {
13200
+ "description": "Additional JSON object payload",
13201
+ "name": "data",
13202
13202
  "hasDynamicHelp": false,
13203
13203
  "multiple": false,
13204
13204
  "type": "option"
@@ -13206,7 +13206,7 @@
13206
13206
  },
13207
13207
  "hasDynamicHelp": false,
13208
13208
  "hiddenAliases": [],
13209
- "id": "bots:env-vars:values",
13209
+ "id": "bots:filters:update",
13210
13210
  "pluginAlias": "@instantkom/cli",
13211
13211
  "pluginName": "@instantkom/cli",
13212
13212
  "pluginType": "core",
@@ -13217,8 +13217,8 @@
13217
13217
  "dist",
13218
13218
  "commands",
13219
13219
  "bots",
13220
- "env-vars",
13221
- "values.js"
13220
+ "filters",
13221
+ "update.js"
13222
13222
  ]
13223
13223
  },
13224
13224
  "bots:tags:add": {
@@ -16566,5 +16566,5 @@
16566
16566
  ]
16567
16567
  }
16568
16568
  },
16569
- "version": "3.151.2"
16569
+ "version": "3.153.0"
16570
16570
  }