@instantkom/cli 3.151.2 → 3.152.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2015,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,101 @@
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,
2256
+ }
2257
+ },
2258
+ "hasDynamicHelp": false,
2259
+ "hiddenAliases": [],
2260
+ "id": "broadcast:delete",
2261
+ "pluginAlias": "@instantkom/cli",
2262
+ "pluginName": "@instantkom/cli",
2263
+ "pluginType": "core",
2264
+ "strict": true,
2265
+ "enableJsonFlag": false,
2266
+ "isESM": true,
2267
+ "relativePath": [
2268
+ "dist",
2269
+ "commands",
2270
+ "broadcast",
2271
+ "delete.js"
2272
+ ]
2273
+ },
2274
+ "broadcast:get": {
2275
+ "aliases": [],
2276
+ "args": {
2277
+ "id": {
2278
+ "description": "broadcast ID",
2279
+ "name": "id",
2280
+ "required": true
2281
+ }
2282
+ },
2283
+ "description": "Get broadcast by ID",
2284
+ "flags": {
2285
+ "api-key": {
2286
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
2287
+ "env": "IKM_API_KEY",
2288
+ "helpGroup": "GLOBAL",
2289
+ "name": "api-key",
2179
2290
  "hasDynamicHelp": false,
2180
2291
  "multiple": false,
2181
2292
  "type": "option"
2182
2293
  },
2183
- "limit": {
2184
- "description": "Items per page",
2185
- "name": "limit",
2186
- "default": 20,
2294
+ "format": {
2295
+ "description": "Output format: text, json, yaml, or table",
2296
+ "helpGroup": "GLOBAL",
2297
+ "name": "format",
2298
+ "default": "text",
2187
2299
  "hasDynamicHelp": false,
2188
2300
  "multiple": false,
2301
+ "options": [
2302
+ "text",
2303
+ "json",
2304
+ "yaml",
2305
+ "table"
2306
+ ],
2189
2307
  "type": "option"
2190
2308
  },
2191
- "channel": {
2192
- "description": "Filter by channel ID",
2193
- "name": "channel",
2194
- "hasDynamicHelp": false,
2195
- "multiple": false,
2196
- "type": "option"
2309
+ "json": {
2310
+ "description": "Output in JSON format (alias for --format=json)",
2311
+ "helpGroup": "GLOBAL",
2312
+ "name": "json",
2313
+ "allowNo": false,
2314
+ "type": "boolean"
2197
2315
  },
2198
- "channels": {
2199
- "description": "Comma-separated channel IDs",
2200
- "name": "channels",
2201
- "hasDynamicHelp": false,
2202
- "multiple": false,
2203
- "type": "option"
2316
+ "quiet": {
2317
+ "description": "Suppress all output except errors",
2318
+ "helpGroup": "GLOBAL",
2319
+ "name": "quiet",
2320
+ "allowNo": false,
2321
+ "type": "boolean"
2204
2322
  },
2205
- "search": {
2206
- "description": "Search chats",
2207
- "name": "search",
2323
+ "no-color": {
2324
+ "description": "Disable color output",
2325
+ "helpGroup": "GLOBAL",
2326
+ "name": "no-color",
2327
+ "allowNo": false,
2328
+ "type": "boolean"
2329
+ },
2330
+ "profile": {
2331
+ "description": "Named configuration profile to use",
2332
+ "helpGroup": "GLOBAL",
2333
+ "name": "profile",
2334
+ "default": "default",
2208
2335
  "hasDynamicHelp": false,
2209
2336
  "multiple": false,
2210
2337
  "type": "option"
2211
2338
  },
2212
- "status": {
2213
- "description": "Chat status",
2214
- "name": "status",
2339
+ "api-url": {
2340
+ "description": "Override the API base URL (e.g. for staging)",
2341
+ "helpGroup": "GLOBAL",
2342
+ "name": "api-url",
2215
2343
  "hasDynamicHelp": false,
2216
2344
  "multiple": false,
2217
- "options": [
2218
- "all",
2219
- "unread",
2220
- "read",
2221
- "archived"
2222
- ],
2223
2345
  "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
2346
  }
2237
2347
  },
2238
2348
  "hasDynamicHelp": false,
2239
2349
  "hiddenAliases": [],
2240
- "id": "chats:list",
2350
+ "id": "broadcast:get",
2241
2351
  "pluginAlias": "@instantkom/cli",
2242
2352
  "pluginName": "@instantkom/cli",
2243
2353
  "pluginType": "core",
@@ -2247,20 +2357,14 @@
2247
2357
  "relativePath": [
2248
2358
  "dist",
2249
2359
  "commands",
2250
- "chats",
2251
- "list.js"
2360
+ "broadcast",
2361
+ "get.js"
2252
2362
  ]
2253
2363
  },
2254
- "chats:reply": {
2364
+ "broadcast:list": {
2255
2365
  "aliases": [],
2256
- "args": {
2257
- "id": {
2258
- "description": "Chat ID",
2259
- "name": "id",
2260
- "required": true
2261
- }
2262
- },
2263
- "description": "Reply in a chat",
2366
+ "args": {},
2367
+ "description": "List broadcasts",
2264
2368
  "flags": {
2265
2369
  "api-key": {
2266
2370
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2324,18 +2428,72 @@
2324
2428
  "multiple": false,
2325
2429
  "type": "option"
2326
2430
  },
2327
- "text": {
2328
- "description": "Reply text",
2329
- "name": "text",
2330
- "required": true,
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",
2331
2485
  "hasDynamicHelp": false,
2332
2486
  "multiple": false,
2487
+ "options": [
2488
+ "0",
2489
+ "1"
2490
+ ],
2333
2491
  "type": "option"
2334
2492
  }
2335
2493
  },
2336
2494
  "hasDynamicHelp": false,
2337
2495
  "hiddenAliases": [],
2338
- "id": "chats:reply",
2496
+ "id": "broadcast:list",
2339
2497
  "pluginAlias": "@instantkom/cli",
2340
2498
  "pluginName": "@instantkom/cli",
2341
2499
  "pluginType": "core",
@@ -2345,20 +2503,20 @@
2345
2503
  "relativePath": [
2346
2504
  "dist",
2347
2505
  "commands",
2348
- "chats",
2349
- "reply.js"
2506
+ "broadcast",
2507
+ "list.js"
2350
2508
  ]
2351
2509
  },
2352
- "config:get": {
2510
+ "broadcast:send": {
2353
2511
  "aliases": [],
2354
2512
  "args": {
2355
- "key": {
2356
- "description": "Configuration key to retrieve",
2357
- "name": "key",
2513
+ "id": {
2514
+ "description": "Broadcast ID",
2515
+ "name": "id",
2358
2516
  "required": true
2359
2517
  }
2360
2518
  },
2361
- "description": "Get a configuration value for the current profile",
2519
+ "description": "Send a broadcast immediately",
2362
2520
  "flags": {
2363
2521
  "api-key": {
2364
2522
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2425,7 +2583,7 @@
2425
2583
  },
2426
2584
  "hasDynamicHelp": false,
2427
2585
  "hiddenAliases": [],
2428
- "id": "config:get",
2586
+ "id": "broadcast:send",
2429
2587
  "pluginAlias": "@instantkom/cli",
2430
2588
  "pluginName": "@instantkom/cli",
2431
2589
  "pluginType": "core",
@@ -2435,25 +2593,20 @@
2435
2593
  "relativePath": [
2436
2594
  "dist",
2437
2595
  "commands",
2438
- "config",
2439
- "get.js"
2596
+ "broadcast",
2597
+ "send.js"
2440
2598
  ]
2441
2599
  },
2442
- "config:set": {
2600
+ "broadcast:status": {
2443
2601
  "aliases": [],
2444
2602
  "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",
2603
+ "id": {
2604
+ "description": "Broadcast ID",
2605
+ "name": "id",
2453
2606
  "required": true
2454
2607
  }
2455
2608
  },
2456
- "description": "Set a configuration value for the current profile",
2609
+ "description": "Show broadcast send status",
2457
2610
  "flags": {
2458
2611
  "api-key": {
2459
2612
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2520,7 +2673,7 @@
2520
2673
  },
2521
2674
  "hasDynamicHelp": false,
2522
2675
  "hiddenAliases": [],
2523
- "id": "config:set",
2676
+ "id": "broadcast:status",
2524
2677
  "pluginAlias": "@instantkom/cli",
2525
2678
  "pluginName": "@instantkom/cli",
2526
2679
  "pluginType": "core",
@@ -2530,20 +2683,20 @@
2530
2683
  "relativePath": [
2531
2684
  "dist",
2532
2685
  "commands",
2533
- "config",
2534
- "set.js"
2686
+ "broadcast",
2687
+ "status.js"
2535
2688
  ]
2536
2689
  },
2537
- "config:unset": {
2690
+ "broadcast:update": {
2538
2691
  "aliases": [],
2539
2692
  "args": {
2540
- "key": {
2541
- "description": "Configuration key to remove",
2542
- "name": "key",
2693
+ "id": {
2694
+ "description": "Broadcast ID",
2695
+ "name": "id",
2543
2696
  "required": true
2544
2697
  }
2545
2698
  },
2546
- "description": "Remove a configuration key from the current profile",
2699
+ "description": "Update a broadcast",
2547
2700
  "flags": {
2548
2701
  "api-key": {
2549
2702
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2606,11 +2759,77 @@
2606
2759
  "hasDynamicHelp": false,
2607
2760
  "multiple": false,
2608
2761
  "type": "option"
2762
+ },
2763
+ "text": {
2764
+ "description": "Broadcast message text",
2765
+ "name": "text",
2766
+ "hasDynamicHelp": false,
2767
+ "multiple": false,
2768
+ "type": "option"
2769
+ },
2770
+ "send-status": {
2771
+ "description": "Send status",
2772
+ "name": "send-status",
2773
+ "hasDynamicHelp": false,
2774
+ "multiple": false,
2775
+ "type": "option"
2776
+ },
2777
+ "scheduled-at": {
2778
+ "description": "Unix timestamp for scheduled send",
2779
+ "name": "scheduled-at",
2780
+ "hasDynamicHelp": false,
2781
+ "multiple": false,
2782
+ "type": "option"
2783
+ },
2784
+ "approved": {
2785
+ "description": "Mark as approved",
2786
+ "name": "approved",
2787
+ "allowNo": false,
2788
+ "type": "boolean"
2789
+ },
2790
+ "locked": {
2791
+ "description": "Mark as locked",
2792
+ "name": "locked",
2793
+ "allowNo": false,
2794
+ "type": "boolean"
2795
+ },
2796
+ "test": {
2797
+ "description": "Mark as test broadcast",
2798
+ "name": "test",
2799
+ "allowNo": false,
2800
+ "type": "boolean"
2801
+ },
2802
+ "template-id": {
2803
+ "description": "Template ID",
2804
+ "name": "template-id",
2805
+ "hasDynamicHelp": false,
2806
+ "multiple": false,
2807
+ "type": "option"
2808
+ },
2809
+ "remove-media": {
2810
+ "description": "Remove existing media",
2811
+ "name": "remove-media",
2812
+ "allowNo": false,
2813
+ "type": "boolean"
2814
+ },
2815
+ "header-footer": {
2816
+ "description": "Header/footer JSON array",
2817
+ "name": "header-footer",
2818
+ "hasDynamicHelp": false,
2819
+ "multiple": false,
2820
+ "type": "option"
2821
+ },
2822
+ "data": {
2823
+ "description": "Additional JSON object payload",
2824
+ "name": "data",
2825
+ "hasDynamicHelp": false,
2826
+ "multiple": false,
2827
+ "type": "option"
2609
2828
  }
2610
2829
  },
2611
2830
  "hasDynamicHelp": false,
2612
2831
  "hiddenAliases": [],
2613
- "id": "config:unset",
2832
+ "id": "broadcast:update",
2614
2833
  "pluginAlias": "@instantkom/cli",
2615
2834
  "pluginName": "@instantkom/cli",
2616
2835
  "pluginType": "core",
@@ -2620,8 +2839,8 @@
2620
2839
  "relativePath": [
2621
2840
  "dist",
2622
2841
  "commands",
2623
- "config",
2624
- "unset.js"
2842
+ "broadcast",
2843
+ "update.js"
2625
2844
  ]
2626
2845
  },
2627
2846
  "channels:create": {
@@ -3166,135 +3385,21 @@
3166
3385
  "isESM": true,
3167
3386
  "relativePath": [
3168
3387
  "dist",
3169
- "commands",
3170
- "channels",
3171
- "update.js"
3172
- ]
3173
- },
3174
- "contacts:create": {
3175
- "aliases": [],
3176
- "args": {},
3177
- "description": "Create a contact",
3178
- "flags": {
3179
- "api-key": {
3180
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
3181
- "env": "IKM_API_KEY",
3182
- "helpGroup": "GLOBAL",
3183
- "name": "api-key",
3184
- "hasDynamicHelp": false,
3185
- "multiple": false,
3186
- "type": "option"
3187
- },
3188
- "format": {
3189
- "description": "Output format: text, json, yaml, or table",
3190
- "helpGroup": "GLOBAL",
3191
- "name": "format",
3192
- "default": "text",
3193
- "hasDynamicHelp": false,
3194
- "multiple": false,
3195
- "options": [
3196
- "text",
3197
- "json",
3198
- "yaml",
3199
- "table"
3200
- ],
3201
- "type": "option"
3202
- },
3203
- "json": {
3204
- "description": "Output in JSON format (alias for --format=json)",
3205
- "helpGroup": "GLOBAL",
3206
- "name": "json",
3207
- "allowNo": false,
3208
- "type": "boolean"
3209
- },
3210
- "quiet": {
3211
- "description": "Suppress all output except errors",
3212
- "helpGroup": "GLOBAL",
3213
- "name": "quiet",
3214
- "allowNo": false,
3215
- "type": "boolean"
3216
- },
3217
- "no-color": {
3218
- "description": "Disable color output",
3219
- "helpGroup": "GLOBAL",
3220
- "name": "no-color",
3221
- "allowNo": false,
3222
- "type": "boolean"
3223
- },
3224
- "profile": {
3225
- "description": "Named configuration profile to use",
3226
- "helpGroup": "GLOBAL",
3227
- "name": "profile",
3228
- "default": "default",
3229
- "hasDynamicHelp": false,
3230
- "multiple": false,
3231
- "type": "option"
3232
- },
3233
- "api-url": {
3234
- "description": "Override the API base URL (e.g. for staging)",
3235
- "helpGroup": "GLOBAL",
3236
- "name": "api-url",
3237
- "hasDynamicHelp": false,
3238
- "multiple": false,
3239
- "type": "option"
3240
- },
3241
- "channel": {
3242
- "description": "Channel ID",
3243
- "name": "channel",
3244
- "required": true,
3245
- "hasDynamicHelp": false,
3246
- "multiple": false,
3247
- "type": "option"
3248
- },
3249
- "identifier": {
3250
- "description": "Unique contact identifier",
3251
- "name": "identifier",
3252
- "required": true,
3253
- "hasDynamicHelp": false,
3254
- "multiple": false,
3255
- "type": "option"
3256
- },
3257
- "name": {
3258
- "description": "Contact name",
3259
- "name": "name",
3260
- "hasDynamicHelp": false,
3261
- "multiple": false,
3262
- "type": "option"
3263
- },
3264
- "data": {
3265
- "description": "Additional JSON object payload",
3266
- "name": "data",
3267
- "hasDynamicHelp": false,
3268
- "multiple": false,
3269
- "type": "option"
3270
- }
3271
- },
3272
- "hasDynamicHelp": false,
3273
- "hiddenAliases": [],
3274
- "id": "contacts:create",
3275
- "pluginAlias": "@instantkom/cli",
3276
- "pluginName": "@instantkom/cli",
3277
- "pluginType": "core",
3278
- "strict": true,
3279
- "enableJsonFlag": false,
3280
- "isESM": true,
3281
- "relativePath": [
3282
- "dist",
3283
- "commands",
3284
- "contacts",
3285
- "create.js"
3388
+ "commands",
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,14 +3720,20 @@
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",
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",
3594
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.",
@@ -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,106 +3891,11 @@
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",
3790
- "hasDynamicHelp": false,
3791
- "multiple": false,
3792
- "options": [
3793
- "0",
3794
- "1"
3795
- ],
3796
- "type": "option"
3797
- },
3798
- "blocked": {
3799
- "description": "Filter by blocked status: 1 blocked, 0 not blocked",
3800
- "name": "blocked",
3801
- "hasDynamicHelp": false,
3802
- "multiple": false,
3803
- "options": [
3804
- "0",
3805
- "1"
3806
- ],
3807
- "type": "option"
3808
- },
3809
- "segment": {
3810
- "description": "Filter by segment ID",
3811
- "name": "segment",
3812
- "hasDynamicHelp": false,
3813
- "multiple": false,
3814
- "type": "option"
3815
- },
3816
- "tags": {
3817
- "description": "Comma-separated tag IDs",
3818
- "name": "tags",
3819
- "hasDynamicHelp": false,
3820
- "multiple": false,
3821
- "type": "option"
3822
- },
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"
3833
- },
3834
- "spam": {
3835
- "description": "Filter by spam status",
3836
- "name": "spam",
3837
- "hasDynamicHelp": false,
3838
- "multiple": false,
3839
- "options": [
3840
- "true",
3841
- "false"
3842
- ],
3843
- "type": "option"
3844
- },
3845
- "trust-level": {
3846
- "description": "Comma-separated trust levels",
3847
- "name": "trust-level",
3848
- "hasDynamicHelp": false,
3849
- "multiple": false,
3850
- "type": "option"
3851
3894
  }
3852
3895
  },
3853
3896
  "hasDynamicHelp": false,
3854
3897
  "hiddenAliases": [],
3855
- "id": "contacts:list",
3898
+ "id": "config:set",
3856
3899
  "pluginAlias": "@instantkom/cli",
3857
3900
  "pluginName": "@instantkom/cli",
3858
3901
  "pluginType": "core",
@@ -3862,20 +3905,20 @@
3862
3905
  "relativePath": [
3863
3906
  "dist",
3864
3907
  "commands",
3865
- "contacts",
3866
- "list.js"
3908
+ "config",
3909
+ "set.js"
3867
3910
  ]
3868
3911
  },
3869
- "contacts:update": {
3912
+ "config:unset": {
3870
3913
  "aliases": [],
3871
3914
  "args": {
3872
- "id": {
3873
- "description": "Contact ID",
3874
- "name": "id",
3915
+ "key": {
3916
+ "description": "Configuration key to remove",
3917
+ "name": "key",
3875
3918
  "required": true
3876
3919
  }
3877
3920
  },
3878
- "description": "Update a contact",
3921
+ "description": "Remove a configuration key from the current profile",
3879
3922
  "flags": {
3880
3923
  "api-key": {
3881
3924
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3938,32 +3981,11 @@
3938
3981
  "hasDynamicHelp": false,
3939
3982
  "multiple": false,
3940
3983
  "type": "option"
3941
- },
3942
- "identifier": {
3943
- "description": "Unique contact identifier",
3944
- "name": "identifier",
3945
- "hasDynamicHelp": false,
3946
- "multiple": false,
3947
- "type": "option"
3948
- },
3949
- "name": {
3950
- "description": "Contact name",
3951
- "name": "name",
3952
- "hasDynamicHelp": false,
3953
- "multiple": false,
3954
- "type": "option"
3955
- },
3956
- "data": {
3957
- "description": "Additional JSON object payload",
3958
- "name": "data",
3959
- "hasDynamicHelp": false,
3960
- "multiple": false,
3961
- "type": "option"
3962
3984
  }
3963
3985
  },
3964
3986
  "hasDynamicHelp": false,
3965
3987
  "hiddenAliases": [],
3966
- "id": "contacts:update",
3988
+ "id": "config:unset",
3967
3989
  "pluginAlias": "@instantkom/cli",
3968
3990
  "pluginName": "@instantkom/cli",
3969
3991
  "pluginType": "core",
@@ -3973,14 +3995,14 @@
3973
3995
  "relativePath": [
3974
3996
  "dist",
3975
3997
  "commands",
3976
- "contacts",
3977
- "update.js"
3998
+ "config",
3999
+ "unset.js"
3978
4000
  ]
3979
4001
  },
3980
- "broadcast:create": {
4002
+ "contacts:create": {
3981
4003
  "aliases": [],
3982
4004
  "args": {},
3983
- "description": "Create a broadcast for channels or segments",
4005
+ "description": "Create a contact",
3984
4006
  "flags": {
3985
4007
  "api-key": {
3986
4008
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4045,91 +4067,39 @@
4045
4067
  "type": "option"
4046
4068
  },
4047
4069
  "channel": {
4048
- "description": "Channel ID target",
4070
+ "description": "Channel ID",
4049
4071
  "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
4072
  "required": true,
4072
4073
  "hasDynamicHelp": false,
4073
4074
  "multiple": false,
4074
4075
  "type": "option"
4075
4076
  },
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",
4077
+ "identifier": {
4078
+ "description": "Unique contact identifier",
4079
+ "name": "identifier",
4080
+ "required": true,
4092
4081
  "hasDynamicHelp": false,
4093
4082
  "multiple": false,
4094
4083
  "type": "option"
4095
4084
  },
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",
4085
+ "name": {
4086
+ "description": "Contact name",
4087
+ "name": "name",
4106
4088
  "hasDynamicHelp": false,
4107
4089
  "multiple": false,
4108
4090
  "type": "option"
4109
4091
  },
4110
- "send-status": {
4111
- "description": "Initial broadcast send status",
4112
- "name": "send-status",
4113
- "default": "draft",
4092
+ "data": {
4093
+ "description": "Additional JSON object payload",
4094
+ "name": "data",
4114
4095
  "hasDynamicHelp": false,
4115
4096
  "multiple": false,
4116
- "options": [
4117
- "draft",
4118
- "scheduled",
4119
- "sending"
4120
- ],
4121
4097
  "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
4098
  }
4129
4099
  },
4130
4100
  "hasDynamicHelp": false,
4131
4101
  "hiddenAliases": [],
4132
- "id": "broadcast:create",
4102
+ "id": "contacts:create",
4133
4103
  "pluginAlias": "@instantkom/cli",
4134
4104
  "pluginName": "@instantkom/cli",
4135
4105
  "pluginType": "core",
@@ -4139,20 +4109,20 @@
4139
4109
  "relativePath": [
4140
4110
  "dist",
4141
4111
  "commands",
4142
- "broadcast",
4112
+ "contacts",
4143
4113
  "create.js"
4144
4114
  ]
4145
4115
  },
4146
- "broadcast:delete": {
4116
+ "contacts:delete": {
4147
4117
  "aliases": [],
4148
4118
  "args": {
4149
4119
  "id": {
4150
- "description": "broadcast ID",
4120
+ "description": "Contact ID",
4151
4121
  "name": "id",
4152
4122
  "required": true
4153
4123
  }
4154
4124
  },
4155
- "description": "Delete broadcast",
4125
+ "description": "Delete a contact",
4156
4126
  "flags": {
4157
4127
  "api-key": {
4158
4128
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4219,7 +4189,7 @@
4219
4189
  },
4220
4190
  "hasDynamicHelp": false,
4221
4191
  "hiddenAliases": [],
4222
- "id": "broadcast:delete",
4192
+ "id": "contacts:delete",
4223
4193
  "pluginAlias": "@instantkom/cli",
4224
4194
  "pluginName": "@instantkom/cli",
4225
4195
  "pluginType": "core",
@@ -4229,20 +4199,14 @@
4229
4199
  "relativePath": [
4230
4200
  "dist",
4231
4201
  "commands",
4232
- "broadcast",
4202
+ "contacts",
4233
4203
  "delete.js"
4234
4204
  ]
4235
4205
  },
4236
- "broadcast:get": {
4206
+ "contacts:export": {
4237
4207
  "aliases": [],
4238
- "args": {
4239
- "id": {
4240
- "description": "broadcast ID",
4241
- "name": "id",
4242
- "required": true
4243
- }
4244
- },
4245
- "description": "Get broadcast by ID",
4208
+ "args": {},
4209
+ "description": "Export contacts to CSV",
4246
4210
  "flags": {
4247
4211
  "api-key": {
4248
4212
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4305,11 +4269,49 @@
4305
4269
  "hasDynamicHelp": false,
4306
4270
  "multiple": false,
4307
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"
4308
4310
  }
4309
4311
  },
4310
4312
  "hasDynamicHelp": false,
4311
4313
  "hiddenAliases": [],
4312
- "id": "broadcast:get",
4314
+ "id": "contacts:export",
4313
4315
  "pluginAlias": "@instantkom/cli",
4314
4316
  "pluginName": "@instantkom/cli",
4315
4317
  "pluginType": "core",
@@ -4319,14 +4321,20 @@
4319
4321
  "relativePath": [
4320
4322
  "dist",
4321
4323
  "commands",
4322
- "broadcast",
4323
- "get.js"
4324
+ "contacts",
4325
+ "export.js"
4324
4326
  ]
4325
4327
  },
4326
- "broadcast:list": {
4328
+ "contacts:get": {
4327
4329
  "aliases": [],
4328
- "args": {},
4329
- "description": "List broadcasts",
4330
+ "args": {
4331
+ "id": {
4332
+ "description": "Contact ID",
4333
+ "name": "id",
4334
+ "required": true
4335
+ }
4336
+ },
4337
+ "description": "Get a contact by ID",
4330
4338
  "flags": {
4331
4339
  "api-key": {
4332
4340
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4380,82 +4388,20 @@
4380
4388
  "default": "default",
4381
4389
  "hasDynamicHelp": false,
4382
4390
  "multiple": false,
4383
- "type": "option"
4384
- },
4385
- "api-url": {
4386
- "description": "Override the API base URL (e.g. for staging)",
4387
- "helpGroup": "GLOBAL",
4388
- "name": "api-url",
4389
- "hasDynamicHelp": false,
4390
- "multiple": false,
4391
- "type": "option"
4392
- },
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,
4405
- "hasDynamicHelp": false,
4406
- "multiple": false,
4407
- "type": "option"
4408
- },
4409
- "channel": {
4410
- "description": "Filter by channel ID",
4411
- "name": "channel",
4412
- "hasDynamicHelp": false,
4413
- "multiple": false,
4414
- "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",
4391
+ "type": "option"
4392
+ },
4393
+ "api-url": {
4394
+ "description": "Override the API base URL (e.g. for staging)",
4395
+ "helpGroup": "GLOBAL",
4396
+ "name": "api-url",
4447
4397
  "hasDynamicHelp": false,
4448
4398
  "multiple": false,
4449
- "options": [
4450
- "0",
4451
- "1"
4452
- ],
4453
4399
  "type": "option"
4454
4400
  }
4455
4401
  },
4456
4402
  "hasDynamicHelp": false,
4457
4403
  "hiddenAliases": [],
4458
- "id": "broadcast:list",
4404
+ "id": "contacts:get",
4459
4405
  "pluginAlias": "@instantkom/cli",
4460
4406
  "pluginName": "@instantkom/cli",
4461
4407
  "pluginType": "core",
@@ -4465,20 +4411,14 @@
4465
4411
  "relativePath": [
4466
4412
  "dist",
4467
4413
  "commands",
4468
- "broadcast",
4469
- "list.js"
4414
+ "contacts",
4415
+ "get.js"
4470
4416
  ]
4471
4417
  },
4472
- "broadcast:send": {
4418
+ "contacts:import": {
4473
4419
  "aliases": [],
4474
- "args": {
4475
- "id": {
4476
- "description": "Broadcast ID",
4477
- "name": "id",
4478
- "required": true
4479
- }
4480
- },
4481
- "description": "Send a broadcast immediately",
4420
+ "args": {},
4421
+ "description": "Import contacts from CSV",
4482
4422
  "flags": {
4483
4423
  "api-key": {
4484
4424
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4541,11 +4481,27 @@
4541
4481
  "hasDynamicHelp": false,
4542
4482
  "multiple": false,
4543
4483
  "type": "option"
4484
+ },
4485
+ "file": {
4486
+ "description": "CSV file path",
4487
+ "name": "file",
4488
+ "required": true,
4489
+ "hasDynamicHelp": false,
4490
+ "multiple": false,
4491
+ "type": "option"
4492
+ },
4493
+ "channel": {
4494
+ "description": "Channel ID",
4495
+ "name": "channel",
4496
+ "required": true,
4497
+ "hasDynamicHelp": false,
4498
+ "multiple": false,
4499
+ "type": "option"
4544
4500
  }
4545
4501
  },
4546
4502
  "hasDynamicHelp": false,
4547
4503
  "hiddenAliases": [],
4548
- "id": "broadcast:send",
4504
+ "id": "contacts:import",
4549
4505
  "pluginAlias": "@instantkom/cli",
4550
4506
  "pluginName": "@instantkom/cli",
4551
4507
  "pluginType": "core",
@@ -4555,20 +4511,14 @@
4555
4511
  "relativePath": [
4556
4512
  "dist",
4557
4513
  "commands",
4558
- "broadcast",
4559
- "send.js"
4514
+ "contacts",
4515
+ "import.js"
4560
4516
  ]
4561
4517
  },
4562
- "broadcast:status": {
4518
+ "contacts:list": {
4563
4519
  "aliases": [],
4564
- "args": {
4565
- "id": {
4566
- "description": "Broadcast ID",
4567
- "name": "id",
4568
- "required": true
4569
- }
4570
- },
4571
- "description": "Show broadcast send status",
4520
+ "args": {},
4521
+ "description": "List contacts",
4572
4522
  "flags": {
4573
4523
  "api-key": {
4574
4524
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -4631,11 +4581,106 @@
4631
4581
  "hasDynamicHelp": false,
4632
4582
  "multiple": false,
4633
4583
  "type": "option"
4584
+ },
4585
+ "channel": {
4586
+ "description": "Filter by channel ID",
4587
+ "name": "channel",
4588
+ "hasDynamicHelp": false,
4589
+ "multiple": false,
4590
+ "type": "option"
4591
+ },
4592
+ "search": {
4593
+ "description": "Search by name or identifier",
4594
+ "name": "search",
4595
+ "hasDynamicHelp": false,
4596
+ "multiple": false,
4597
+ "type": "option"
4598
+ },
4599
+ "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",
4618
+ "hasDynamicHelp": false,
4619
+ "multiple": false,
4620
+ "options": [
4621
+ "0",
4622
+ "1"
4623
+ ],
4624
+ "type": "option"
4625
+ },
4626
+ "blocked": {
4627
+ "description": "Filter by blocked status: 1 blocked, 0 not blocked",
4628
+ "name": "blocked",
4629
+ "hasDynamicHelp": false,
4630
+ "multiple": false,
4631
+ "options": [
4632
+ "0",
4633
+ "1"
4634
+ ],
4635
+ "type": "option"
4636
+ },
4637
+ "segment": {
4638
+ "description": "Filter by segment ID",
4639
+ "name": "segment",
4640
+ "hasDynamicHelp": false,
4641
+ "multiple": false,
4642
+ "type": "option"
4643
+ },
4644
+ "tags": {
4645
+ "description": "Comma-separated tag IDs",
4646
+ "name": "tags",
4647
+ "hasDynamicHelp": false,
4648
+ "multiple": false,
4649
+ "type": "option"
4650
+ },
4651
+ "tag-match": {
4652
+ "description": "Tag match mode",
4653
+ "name": "tag-match",
4654
+ "hasDynamicHelp": false,
4655
+ "multiple": false,
4656
+ "options": [
4657
+ "any",
4658
+ "all"
4659
+ ],
4660
+ "type": "option"
4661
+ },
4662
+ "spam": {
4663
+ "description": "Filter by spam status",
4664
+ "name": "spam",
4665
+ "hasDynamicHelp": false,
4666
+ "multiple": false,
4667
+ "options": [
4668
+ "true",
4669
+ "false"
4670
+ ],
4671
+ "type": "option"
4672
+ },
4673
+ "trust-level": {
4674
+ "description": "Comma-separated trust levels",
4675
+ "name": "trust-level",
4676
+ "hasDynamicHelp": false,
4677
+ "multiple": false,
4678
+ "type": "option"
4634
4679
  }
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
  },
@@ -8150,10 +8150,10 @@
8150
8150
  "update.js"
8151
8151
  ]
8152
8152
  },
8153
- "tags:create": {
8153
+ "team:create": {
8154
8154
  "aliases": [],
8155
8155
  "args": {},
8156
- "description": "Create a tag",
8156
+ "description": "Create a team member",
8157
8157
  "flags": {
8158
8158
  "api-key": {
8159
8159
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8209,31 +8209,62 @@
8209
8209
  "multiple": false,
8210
8210
  "type": "option"
8211
8211
  },
8212
- "api-url": {
8213
- "description": "Override the API base URL (e.g. for staging)",
8214
- "helpGroup": "GLOBAL",
8215
- "name": "api-url",
8212
+ "api-url": {
8213
+ "description": "Override the API base URL (e.g. for staging)",
8214
+ "helpGroup": "GLOBAL",
8215
+ "name": "api-url",
8216
+ "hasDynamicHelp": false,
8217
+ "multiple": false,
8218
+ "type": "option"
8219
+ },
8220
+ "email": {
8221
+ "description": "Email address",
8222
+ "name": "email",
8223
+ "required": true,
8224
+ "hasDynamicHelp": false,
8225
+ "multiple": false,
8226
+ "type": "option"
8227
+ },
8228
+ "first-name": {
8229
+ "description": "First name",
8230
+ "name": "first-name",
8231
+ "required": true,
8232
+ "hasDynamicHelp": false,
8233
+ "multiple": false,
8234
+ "type": "option"
8235
+ },
8236
+ "last-name": {
8237
+ "description": "Last name",
8238
+ "name": "last-name",
8239
+ "required": true,
8216
8240
  "hasDynamicHelp": false,
8217
8241
  "multiple": false,
8218
8242
  "type": "option"
8219
8243
  },
8220
- "name": {
8221
- "description": "Tag name",
8222
- "name": "name",
8244
+ "password": {
8245
+ "description": "Initial password",
8246
+ "name": "password",
8223
8247
  "required": true,
8224
8248
  "hasDynamicHelp": false,
8225
8249
  "multiple": false,
8226
8250
  "type": "option"
8227
8251
  },
8228
- "description": {
8229
- "description": "Tag description",
8230
- "name": "description",
8252
+ "phone": {
8253
+ "description": "Phone number",
8254
+ "name": "phone",
8255
+ "hasDynamicHelp": false,
8256
+ "multiple": false,
8257
+ "type": "option"
8258
+ },
8259
+ "company": {
8260
+ "description": "Company name",
8261
+ "name": "company",
8231
8262
  "hasDynamicHelp": false,
8232
8263
  "multiple": false,
8233
8264
  "type": "option"
8234
8265
  },
8235
8266
  "color": {
8236
- "description": "Tag color as HEX",
8267
+ "description": "Color as HEX",
8237
8268
  "name": "color",
8238
8269
  "hasDynamicHelp": false,
8239
8270
  "multiple": false,
@@ -8256,7 +8287,7 @@
8256
8287
  },
8257
8288
  "hasDynamicHelp": false,
8258
8289
  "hiddenAliases": [],
8259
- "id": "tags:create",
8290
+ "id": "team:create",
8260
8291
  "pluginAlias": "@instantkom/cli",
8261
8292
  "pluginName": "@instantkom/cli",
8262
8293
  "pluginType": "core",
@@ -8266,20 +8297,20 @@
8266
8297
  "relativePath": [
8267
8298
  "dist",
8268
8299
  "commands",
8269
- "tags",
8300
+ "team",
8270
8301
  "create.js"
8271
8302
  ]
8272
8303
  },
8273
- "tags:delete": {
8304
+ "team:delete": {
8274
8305
  "aliases": [],
8275
8306
  "args": {
8276
8307
  "id": {
8277
- "description": "tag ID",
8308
+ "description": "Team member ID",
8278
8309
  "name": "id",
8279
8310
  "required": true
8280
8311
  }
8281
8312
  },
8282
- "description": "Delete tag",
8313
+ "description": "Delete a team member",
8283
8314
  "flags": {
8284
8315
  "api-key": {
8285
8316
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8346,7 +8377,7 @@
8346
8377
  },
8347
8378
  "hasDynamicHelp": false,
8348
8379
  "hiddenAliases": [],
8349
- "id": "tags:delete",
8380
+ "id": "team:delete",
8350
8381
  "pluginAlias": "@instantkom/cli",
8351
8382
  "pluginName": "@instantkom/cli",
8352
8383
  "pluginType": "core",
@@ -8356,14 +8387,14 @@
8356
8387
  "relativePath": [
8357
8388
  "dist",
8358
8389
  "commands",
8359
- "tags",
8390
+ "team",
8360
8391
  "delete.js"
8361
8392
  ]
8362
8393
  },
8363
- "tags:export": {
8394
+ "team:list": {
8364
8395
  "aliases": [],
8365
8396
  "args": {},
8366
- "description": "Export tags to a file",
8397
+ "description": "List team members",
8367
8398
  "flags": {
8368
8399
  "api-key": {
8369
8400
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8375,14 +8406,17 @@
8375
8406
  "type": "option"
8376
8407
  },
8377
8408
  "format": {
8378
- "description": "Export format",
8409
+ "description": "Output format: text, json, yaml, or table",
8410
+ "helpGroup": "GLOBAL",
8379
8411
  "name": "format",
8380
- "default": "csv",
8412
+ "default": "text",
8381
8413
  "hasDynamicHelp": false,
8382
8414
  "multiple": false,
8383
8415
  "options": [
8384
- "csv",
8385
- "json"
8416
+ "text",
8417
+ "json",
8418
+ "yaml",
8419
+ "table"
8386
8420
  ],
8387
8421
  "type": "option"
8388
8422
  },
@@ -8423,19 +8457,11 @@
8423
8457
  "hasDynamicHelp": false,
8424
8458
  "multiple": false,
8425
8459
  "type": "option"
8426
- },
8427
- "file": {
8428
- "description": "Output file path",
8429
- "name": "file",
8430
- "required": true,
8431
- "hasDynamicHelp": false,
8432
- "multiple": false,
8433
- "type": "option"
8434
8460
  }
8435
8461
  },
8436
8462
  "hasDynamicHelp": false,
8437
8463
  "hiddenAliases": [],
8438
- "id": "tags:export",
8464
+ "id": "team:list",
8439
8465
  "pluginAlias": "@instantkom/cli",
8440
8466
  "pluginName": "@instantkom/cli",
8441
8467
  "pluginType": "core",
@@ -8445,20 +8471,14 @@
8445
8471
  "relativePath": [
8446
8472
  "dist",
8447
8473
  "commands",
8448
- "tags",
8449
- "export.js"
8474
+ "team",
8475
+ "list.js"
8450
8476
  ]
8451
8477
  },
8452
- "tags:get": {
8478
+ "tags:create": {
8453
8479
  "aliases": [],
8454
- "args": {
8455
- "id": {
8456
- "description": "tag ID",
8457
- "name": "id",
8458
- "required": true
8459
- }
8460
- },
8461
- "description": "Get tag by ID",
8480
+ "args": {},
8481
+ "description": "Create a tag",
8462
8482
  "flags": {
8463
8483
  "api-key": {
8464
8484
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8521,11 +8541,47 @@
8521
8541
  "hasDynamicHelp": false,
8522
8542
  "multiple": false,
8523
8543
  "type": "option"
8544
+ },
8545
+ "name": {
8546
+ "description": "Tag name",
8547
+ "name": "name",
8548
+ "required": true,
8549
+ "hasDynamicHelp": false,
8550
+ "multiple": false,
8551
+ "type": "option"
8552
+ },
8553
+ "description": {
8554
+ "description": "Tag description",
8555
+ "name": "description",
8556
+ "hasDynamicHelp": false,
8557
+ "multiple": false,
8558
+ "type": "option"
8559
+ },
8560
+ "color": {
8561
+ "description": "Tag color as HEX",
8562
+ "name": "color",
8563
+ "hasDynamicHelp": false,
8564
+ "multiple": false,
8565
+ "type": "option"
8566
+ },
8567
+ "folder": {
8568
+ "description": "Object folder ID",
8569
+ "name": "folder",
8570
+ "hasDynamicHelp": false,
8571
+ "multiple": false,
8572
+ "type": "option"
8573
+ },
8574
+ "data": {
8575
+ "description": "Additional JSON object payload",
8576
+ "name": "data",
8577
+ "hasDynamicHelp": false,
8578
+ "multiple": false,
8579
+ "type": "option"
8524
8580
  }
8525
8581
  },
8526
8582
  "hasDynamicHelp": false,
8527
8583
  "hiddenAliases": [],
8528
- "id": "tags:get",
8584
+ "id": "tags:create",
8529
8585
  "pluginAlias": "@instantkom/cli",
8530
8586
  "pluginName": "@instantkom/cli",
8531
8587
  "pluginType": "core",
@@ -8536,13 +8592,19 @@
8536
8592
  "dist",
8537
8593
  "commands",
8538
8594
  "tags",
8539
- "get.js"
8595
+ "create.js"
8540
8596
  ]
8541
8597
  },
8542
- "tags:import": {
8598
+ "tags:delete": {
8543
8599
  "aliases": [],
8544
- "args": {},
8545
- "description": "Import tags from JSON",
8600
+ "args": {
8601
+ "id": {
8602
+ "description": "tag ID",
8603
+ "name": "id",
8604
+ "required": true
8605
+ }
8606
+ },
8607
+ "description": "Delete tag",
8546
8608
  "flags": {
8547
8609
  "api-key": {
8548
8610
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8605,25 +8667,11 @@
8605
8667
  "hasDynamicHelp": false,
8606
8668
  "multiple": false,
8607
8669
  "type": "option"
8608
- },
8609
- "file": {
8610
- "description": "JSON file path",
8611
- "name": "file",
8612
- "required": true,
8613
- "hasDynamicHelp": false,
8614
- "multiple": false,
8615
- "type": "option"
8616
- },
8617
- "skip-duplicates": {
8618
- "description": "Skip duplicate tags",
8619
- "name": "skip-duplicates",
8620
- "allowNo": true,
8621
- "type": "boolean"
8622
8670
  }
8623
8671
  },
8624
8672
  "hasDynamicHelp": false,
8625
8673
  "hiddenAliases": [],
8626
- "id": "tags:import",
8674
+ "id": "tags:delete",
8627
8675
  "pluginAlias": "@instantkom/cli",
8628
8676
  "pluginName": "@instantkom/cli",
8629
8677
  "pluginType": "core",
@@ -8634,13 +8682,13 @@
8634
8682
  "dist",
8635
8683
  "commands",
8636
8684
  "tags",
8637
- "import.js"
8685
+ "delete.js"
8638
8686
  ]
8639
8687
  },
8640
- "tags:list": {
8688
+ "tags:export": {
8641
8689
  "aliases": [],
8642
8690
  "args": {},
8643
- "description": "List tags",
8691
+ "description": "Export tags to a file",
8644
8692
  "flags": {
8645
8693
  "api-key": {
8646
8694
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8652,17 +8700,14 @@
8652
8700
  "type": "option"
8653
8701
  },
8654
8702
  "format": {
8655
- "description": "Output format: text, json, yaml, or table",
8656
- "helpGroup": "GLOBAL",
8703
+ "description": "Export format",
8657
8704
  "name": "format",
8658
- "default": "text",
8705
+ "default": "csv",
8659
8706
  "hasDynamicHelp": false,
8660
8707
  "multiple": false,
8661
8708
  "options": [
8662
- "text",
8663
- "json",
8664
- "yaml",
8665
- "table"
8709
+ "csv",
8710
+ "json"
8666
8711
  ],
8667
8712
  "type": "option"
8668
8713
  },
@@ -8704,32 +8749,10 @@
8704
8749
  "multiple": false,
8705
8750
  "type": "option"
8706
8751
  },
8707
- "page": {
8708
- "description": "Page number",
8709
- "name": "page",
8710
- "default": 1,
8711
- "hasDynamicHelp": false,
8712
- "multiple": false,
8713
- "type": "option"
8714
- },
8715
- "limit": {
8716
- "description": "Items per page",
8717
- "name": "limit",
8718
- "default": 20,
8719
- "hasDynamicHelp": false,
8720
- "multiple": false,
8721
- "type": "option"
8722
- },
8723
- "search": {
8724
- "description": "Search by name",
8725
- "name": "search",
8726
- "hasDynamicHelp": false,
8727
- "multiple": false,
8728
- "type": "option"
8729
- },
8730
- "color": {
8731
- "description": "Filter by color",
8732
- "name": "color",
8752
+ "file": {
8753
+ "description": "Output file path",
8754
+ "name": "file",
8755
+ "required": true,
8733
8756
  "hasDynamicHelp": false,
8734
8757
  "multiple": false,
8735
8758
  "type": "option"
@@ -8737,7 +8760,7 @@
8737
8760
  },
8738
8761
  "hasDynamicHelp": false,
8739
8762
  "hiddenAliases": [],
8740
- "id": "tags:list",
8763
+ "id": "tags:export",
8741
8764
  "pluginAlias": "@instantkom/cli",
8742
8765
  "pluginName": "@instantkom/cli",
8743
8766
  "pluginType": "core",
@@ -8748,19 +8771,19 @@
8748
8771
  "dist",
8749
8772
  "commands",
8750
8773
  "tags",
8751
- "list.js"
8774
+ "export.js"
8752
8775
  ]
8753
8776
  },
8754
- "tags:update": {
8777
+ "tags:get": {
8755
8778
  "aliases": [],
8756
8779
  "args": {
8757
8780
  "id": {
8758
- "description": "Tag ID",
8781
+ "description": "tag ID",
8759
8782
  "name": "id",
8760
8783
  "required": true
8761
8784
  }
8762
8785
  },
8763
- "description": "Update a tag",
8786
+ "description": "Get tag by ID",
8764
8787
  "flags": {
8765
8788
  "api-key": {
8766
8789
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8793,68 +8816,33 @@
8793
8816
  "allowNo": false,
8794
8817
  "type": "boolean"
8795
8818
  },
8796
- "quiet": {
8797
- "description": "Suppress all output except errors",
8798
- "helpGroup": "GLOBAL",
8799
- "name": "quiet",
8800
- "allowNo": false,
8801
- "type": "boolean"
8802
- },
8803
- "no-color": {
8804
- "description": "Disable color output",
8805
- "helpGroup": "GLOBAL",
8806
- "name": "no-color",
8807
- "allowNo": false,
8808
- "type": "boolean"
8809
- },
8810
- "profile": {
8811
- "description": "Named configuration profile to use",
8812
- "helpGroup": "GLOBAL",
8813
- "name": "profile",
8814
- "default": "default",
8815
- "hasDynamicHelp": false,
8816
- "multiple": false,
8817
- "type": "option"
8818
- },
8819
- "api-url": {
8820
- "description": "Override the API base URL (e.g. for staging)",
8821
- "helpGroup": "GLOBAL",
8822
- "name": "api-url",
8823
- "hasDynamicHelp": false,
8824
- "multiple": false,
8825
- "type": "option"
8826
- },
8827
- "name": {
8828
- "description": "Tag name",
8829
- "name": "name",
8830
- "hasDynamicHelp": false,
8831
- "multiple": false,
8832
- "type": "option"
8833
- },
8834
- "description": {
8835
- "description": "Tag description",
8836
- "name": "description",
8837
- "hasDynamicHelp": false,
8838
- "multiple": false,
8839
- "type": "option"
8840
- },
8841
- "color": {
8842
- "description": "Tag color as HEX",
8843
- "name": "color",
8844
- "hasDynamicHelp": false,
8845
- "multiple": false,
8846
- "type": "option"
8819
+ "quiet": {
8820
+ "description": "Suppress all output except errors",
8821
+ "helpGroup": "GLOBAL",
8822
+ "name": "quiet",
8823
+ "allowNo": false,
8824
+ "type": "boolean"
8847
8825
  },
8848
- "folder": {
8849
- "description": "Object folder ID",
8850
- "name": "folder",
8826
+ "no-color": {
8827
+ "description": "Disable color output",
8828
+ "helpGroup": "GLOBAL",
8829
+ "name": "no-color",
8830
+ "allowNo": false,
8831
+ "type": "boolean"
8832
+ },
8833
+ "profile": {
8834
+ "description": "Named configuration profile to use",
8835
+ "helpGroup": "GLOBAL",
8836
+ "name": "profile",
8837
+ "default": "default",
8851
8838
  "hasDynamicHelp": false,
8852
8839
  "multiple": false,
8853
8840
  "type": "option"
8854
8841
  },
8855
- "data": {
8856
- "description": "Additional JSON object payload",
8857
- "name": "data",
8842
+ "api-url": {
8843
+ "description": "Override the API base URL (e.g. for staging)",
8844
+ "helpGroup": "GLOBAL",
8845
+ "name": "api-url",
8858
8846
  "hasDynamicHelp": false,
8859
8847
  "multiple": false,
8860
8848
  "type": "option"
@@ -8862,7 +8850,7 @@
8862
8850
  },
8863
8851
  "hasDynamicHelp": false,
8864
8852
  "hiddenAliases": [],
8865
- "id": "tags:update",
8853
+ "id": "tags:get",
8866
8854
  "pluginAlias": "@instantkom/cli",
8867
8855
  "pluginName": "@instantkom/cli",
8868
8856
  "pluginType": "core",
@@ -8873,13 +8861,13 @@
8873
8861
  "dist",
8874
8862
  "commands",
8875
8863
  "tags",
8876
- "update.js"
8864
+ "get.js"
8877
8865
  ]
8878
8866
  },
8879
- "tags:validate-import": {
8867
+ "tags:import": {
8880
8868
  "aliases": [],
8881
8869
  "args": {},
8882
- "description": "Validate tags import JSON",
8870
+ "description": "Import tags from JSON",
8883
8871
  "flags": {
8884
8872
  "api-key": {
8885
8873
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8950,11 +8938,17 @@
8950
8938
  "hasDynamicHelp": false,
8951
8939
  "multiple": false,
8952
8940
  "type": "option"
8941
+ },
8942
+ "skip-duplicates": {
8943
+ "description": "Skip duplicate tags",
8944
+ "name": "skip-duplicates",
8945
+ "allowNo": true,
8946
+ "type": "boolean"
8953
8947
  }
8954
8948
  },
8955
8949
  "hasDynamicHelp": false,
8956
8950
  "hiddenAliases": [],
8957
- "id": "tags:validate-import",
8951
+ "id": "tags:import",
8958
8952
  "pluginAlias": "@instantkom/cli",
8959
8953
  "pluginName": "@instantkom/cli",
8960
8954
  "pluginType": "core",
@@ -8965,13 +8959,13 @@
8965
8959
  "dist",
8966
8960
  "commands",
8967
8961
  "tags",
8968
- "validate-import.js"
8962
+ "import.js"
8969
8963
  ]
8970
8964
  },
8971
- "team:create": {
8965
+ "tags:list": {
8972
8966
  "aliases": [],
8973
8967
  "args": {},
8974
- "description": "Create a team member",
8968
+ "description": "List tags",
8975
8969
  "flags": {
8976
8970
  "api-key": {
8977
8971
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9035,77 +9029,40 @@
9035
9029
  "multiple": false,
9036
9030
  "type": "option"
9037
9031
  },
9038
- "email": {
9039
- "description": "Email address",
9040
- "name": "email",
9041
- "required": true,
9042
- "hasDynamicHelp": false,
9043
- "multiple": false,
9044
- "type": "option"
9045
- },
9046
- "first-name": {
9047
- "description": "First name",
9048
- "name": "first-name",
9049
- "required": true,
9050
- "hasDynamicHelp": false,
9051
- "multiple": false,
9052
- "type": "option"
9053
- },
9054
- "last-name": {
9055
- "description": "Last name",
9056
- "name": "last-name",
9057
- "required": true,
9058
- "hasDynamicHelp": false,
9059
- "multiple": false,
9060
- "type": "option"
9061
- },
9062
- "password": {
9063
- "description": "Initial password",
9064
- "name": "password",
9065
- "required": true,
9032
+ "page": {
9033
+ "description": "Page number",
9034
+ "name": "page",
9035
+ "default": 1,
9066
9036
  "hasDynamicHelp": false,
9067
9037
  "multiple": false,
9068
9038
  "type": "option"
9069
9039
  },
9070
- "phone": {
9071
- "description": "Phone number",
9072
- "name": "phone",
9040
+ "limit": {
9041
+ "description": "Items per page",
9042
+ "name": "limit",
9043
+ "default": 20,
9073
9044
  "hasDynamicHelp": false,
9074
9045
  "multiple": false,
9075
9046
  "type": "option"
9076
9047
  },
9077
- "company": {
9078
- "description": "Company name",
9079
- "name": "company",
9048
+ "search": {
9049
+ "description": "Search by name",
9050
+ "name": "search",
9080
9051
  "hasDynamicHelp": false,
9081
9052
  "multiple": false,
9082
9053
  "type": "option"
9083
9054
  },
9084
9055
  "color": {
9085
- "description": "Color as HEX",
9056
+ "description": "Filter by color",
9086
9057
  "name": "color",
9087
9058
  "hasDynamicHelp": false,
9088
9059
  "multiple": false,
9089
9060
  "type": "option"
9090
- },
9091
- "folder": {
9092
- "description": "Object folder ID",
9093
- "name": "folder",
9094
- "hasDynamicHelp": false,
9095
- "multiple": false,
9096
- "type": "option"
9097
- },
9098
- "data": {
9099
- "description": "Additional JSON object payload",
9100
- "name": "data",
9101
- "hasDynamicHelp": false,
9102
- "multiple": false,
9103
- "type": "option"
9104
9061
  }
9105
9062
  },
9106
9063
  "hasDynamicHelp": false,
9107
9064
  "hiddenAliases": [],
9108
- "id": "team:create",
9065
+ "id": "tags:list",
9109
9066
  "pluginAlias": "@instantkom/cli",
9110
9067
  "pluginName": "@instantkom/cli",
9111
9068
  "pluginType": "core",
@@ -9115,20 +9072,20 @@
9115
9072
  "relativePath": [
9116
9073
  "dist",
9117
9074
  "commands",
9118
- "team",
9119
- "create.js"
9075
+ "tags",
9076
+ "list.js"
9120
9077
  ]
9121
9078
  },
9122
- "team:delete": {
9079
+ "tags:update": {
9123
9080
  "aliases": [],
9124
9081
  "args": {
9125
9082
  "id": {
9126
- "description": "Team member ID",
9083
+ "description": "Tag ID",
9127
9084
  "name": "id",
9128
9085
  "required": true
9129
9086
  }
9130
9087
  },
9131
- "description": "Delete a team member",
9088
+ "description": "Update a tag",
9132
9089
  "flags": {
9133
9090
  "api-key": {
9134
9091
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9191,11 +9148,46 @@
9191
9148
  "hasDynamicHelp": false,
9192
9149
  "multiple": false,
9193
9150
  "type": "option"
9151
+ },
9152
+ "name": {
9153
+ "description": "Tag name",
9154
+ "name": "name",
9155
+ "hasDynamicHelp": false,
9156
+ "multiple": false,
9157
+ "type": "option"
9158
+ },
9159
+ "description": {
9160
+ "description": "Tag description",
9161
+ "name": "description",
9162
+ "hasDynamicHelp": false,
9163
+ "multiple": false,
9164
+ "type": "option"
9165
+ },
9166
+ "color": {
9167
+ "description": "Tag color as HEX",
9168
+ "name": "color",
9169
+ "hasDynamicHelp": false,
9170
+ "multiple": false,
9171
+ "type": "option"
9172
+ },
9173
+ "folder": {
9174
+ "description": "Object folder ID",
9175
+ "name": "folder",
9176
+ "hasDynamicHelp": false,
9177
+ "multiple": false,
9178
+ "type": "option"
9179
+ },
9180
+ "data": {
9181
+ "description": "Additional JSON object payload",
9182
+ "name": "data",
9183
+ "hasDynamicHelp": false,
9184
+ "multiple": false,
9185
+ "type": "option"
9194
9186
  }
9195
9187
  },
9196
9188
  "hasDynamicHelp": false,
9197
9189
  "hiddenAliases": [],
9198
- "id": "team:delete",
9190
+ "id": "tags:update",
9199
9191
  "pluginAlias": "@instantkom/cli",
9200
9192
  "pluginName": "@instantkom/cli",
9201
9193
  "pluginType": "core",
@@ -9205,14 +9197,14 @@
9205
9197
  "relativePath": [
9206
9198
  "dist",
9207
9199
  "commands",
9208
- "team",
9209
- "delete.js"
9200
+ "tags",
9201
+ "update.js"
9210
9202
  ]
9211
9203
  },
9212
- "team:list": {
9204
+ "tags:validate-import": {
9213
9205
  "aliases": [],
9214
9206
  "args": {},
9215
- "description": "List team members",
9207
+ "description": "Validate tags import JSON",
9216
9208
  "flags": {
9217
9209
  "api-key": {
9218
9210
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9275,11 +9267,19 @@
9275
9267
  "hasDynamicHelp": false,
9276
9268
  "multiple": false,
9277
9269
  "type": "option"
9270
+ },
9271
+ "file": {
9272
+ "description": "JSON file path",
9273
+ "name": "file",
9274
+ "required": true,
9275
+ "hasDynamicHelp": false,
9276
+ "multiple": false,
9277
+ "type": "option"
9278
9278
  }
9279
9279
  },
9280
9280
  "hasDynamicHelp": false,
9281
9281
  "hiddenAliases": [],
9282
- "id": "team:list",
9282
+ "id": "tags:validate-import",
9283
9283
  "pluginAlias": "@instantkom/cli",
9284
9284
  "pluginName": "@instantkom/cli",
9285
9285
  "pluginType": "core",
@@ -9289,8 +9289,8 @@
9289
9289
  "relativePath": [
9290
9290
  "dist",
9291
9291
  "commands",
9292
- "team",
9293
- "list.js"
9292
+ "tags",
9293
+ "validate-import.js"
9294
9294
  ]
9295
9295
  },
9296
9296
  "templates:create": {
@@ -15666,16 +15666,16 @@
15666
15666
  "list.js"
15667
15667
  ]
15668
15668
  },
15669
- "tags:recipients:add": {
15669
+ "tags:segments:list": {
15670
15670
  "aliases": [],
15671
15671
  "args": {
15672
- "tagId": {
15672
+ "id": {
15673
15673
  "description": "Tag ID",
15674
- "name": "tagId",
15674
+ "name": "id",
15675
15675
  "required": true
15676
15676
  }
15677
15677
  },
15678
- "description": "Assign a tag to recipients",
15678
+ "description": "List segments that use a specific tag",
15679
15679
  "flags": {
15680
15680
  "api-key": {
15681
15681
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15739,10 +15739,18 @@
15739
15739
  "multiple": false,
15740
15740
  "type": "option"
15741
15741
  },
15742
- "recipients": {
15743
- "description": "Comma-separated recipient IDs",
15744
- "name": "recipients",
15745
- "required": true,
15742
+ "page": {
15743
+ "description": "Page number",
15744
+ "name": "page",
15745
+ "default": 1,
15746
+ "hasDynamicHelp": false,
15747
+ "multiple": false,
15748
+ "type": "option"
15749
+ },
15750
+ "limit": {
15751
+ "description": "Items per page",
15752
+ "name": "limit",
15753
+ "default": 20,
15746
15754
  "hasDynamicHelp": false,
15747
15755
  "multiple": false,
15748
15756
  "type": "option"
@@ -15750,7 +15758,7 @@
15750
15758
  },
15751
15759
  "hasDynamicHelp": false,
15752
15760
  "hiddenAliases": [],
15753
- "id": "tags:recipients:add",
15761
+ "id": "tags:segments:list",
15754
15762
  "pluginAlias": "@instantkom/cli",
15755
15763
  "pluginName": "@instantkom/cli",
15756
15764
  "pluginType": "core",
@@ -15761,11 +15769,11 @@
15761
15769
  "dist",
15762
15770
  "commands",
15763
15771
  "tags",
15764
- "recipients",
15765
- "add.js"
15772
+ "segments",
15773
+ "list.js"
15766
15774
  ]
15767
15775
  },
15768
- "tags:recipients:remove": {
15776
+ "tags:recipients:add": {
15769
15777
  "aliases": [],
15770
15778
  "args": {
15771
15779
  "tagId": {
@@ -15774,7 +15782,7 @@
15774
15782
  "required": true
15775
15783
  }
15776
15784
  },
15777
- "description": "Remove a tag from recipients",
15785
+ "description": "Assign a tag to recipients",
15778
15786
  "flags": {
15779
15787
  "api-key": {
15780
15788
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15849,7 +15857,7 @@
15849
15857
  },
15850
15858
  "hasDynamicHelp": false,
15851
15859
  "hiddenAliases": [],
15852
- "id": "tags:recipients:remove",
15860
+ "id": "tags:recipients:add",
15853
15861
  "pluginAlias": "@instantkom/cli",
15854
15862
  "pluginName": "@instantkom/cli",
15855
15863
  "pluginType": "core",
@@ -15861,19 +15869,19 @@
15861
15869
  "commands",
15862
15870
  "tags",
15863
15871
  "recipients",
15864
- "remove.js"
15872
+ "add.js"
15865
15873
  ]
15866
15874
  },
15867
- "tags:segments:list": {
15875
+ "tags:recipients:remove": {
15868
15876
  "aliases": [],
15869
15877
  "args": {
15870
- "id": {
15878
+ "tagId": {
15871
15879
  "description": "Tag ID",
15872
- "name": "id",
15880
+ "name": "tagId",
15873
15881
  "required": true
15874
15882
  }
15875
15883
  },
15876
- "description": "List segments that use a specific tag",
15884
+ "description": "Remove a tag from recipients",
15877
15885
  "flags": {
15878
15886
  "api-key": {
15879
15887
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15937,18 +15945,10 @@
15937
15945
  "multiple": false,
15938
15946
  "type": "option"
15939
15947
  },
15940
- "page": {
15941
- "description": "Page number",
15942
- "name": "page",
15943
- "default": 1,
15944
- "hasDynamicHelp": false,
15945
- "multiple": false,
15946
- "type": "option"
15947
- },
15948
- "limit": {
15949
- "description": "Items per page",
15950
- "name": "limit",
15951
- "default": 20,
15948
+ "recipients": {
15949
+ "description": "Comma-separated recipient IDs",
15950
+ "name": "recipients",
15951
+ "required": true,
15952
15952
  "hasDynamicHelp": false,
15953
15953
  "multiple": false,
15954
15954
  "type": "option"
@@ -15956,7 +15956,7 @@
15956
15956
  },
15957
15957
  "hasDynamicHelp": false,
15958
15958
  "hiddenAliases": [],
15959
- "id": "tags:segments:list",
15959
+ "id": "tags:recipients:remove",
15960
15960
  "pluginAlias": "@instantkom/cli",
15961
15961
  "pluginName": "@instantkom/cli",
15962
15962
  "pluginType": "core",
@@ -15967,8 +15967,8 @@
15967
15967
  "dist",
15968
15968
  "commands",
15969
15969
  "tags",
15970
- "segments",
15971
- "list.js"
15970
+ "recipients",
15971
+ "remove.js"
15972
15972
  ]
15973
15973
  },
15974
15974
  "ticket:messages:create": {
@@ -16566,5 +16566,5 @@
16566
16566
  ]
16567
16567
  }
16568
16568
  },
16569
- "version": "3.151.2"
16569
+ "version": "3.152.0"
16570
16570
  }