@instantkom/cli 3.190.0 → 3.191.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": {},
@@ -2843,10 +2843,16 @@
2843
2843
  "update.js"
2844
2844
  ]
2845
2845
  },
2846
- "channels:create": {
2846
+ "chats:get": {
2847
2847
  "aliases": [],
2848
- "args": {},
2849
- "description": "Create a channel",
2848
+ "args": {
2849
+ "id": {
2850
+ "description": "chat ID",
2851
+ "name": "id",
2852
+ "required": true
2853
+ }
2854
+ },
2855
+ "description": "Get chat by ID",
2850
2856
  "flags": {
2851
2857
  "api-key": {
2852
2858
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -2909,48 +2915,11 @@
2909
2915
  "hasDynamicHelp": false,
2910
2916
  "multiple": false,
2911
2917
  "type": "option"
2912
- },
2913
- "name": {
2914
- "description": "Channel name",
2915
- "name": "name",
2916
- "required": true,
2917
- "hasDynamicHelp": false,
2918
- "multiple": false,
2919
- "type": "option"
2920
- },
2921
- "gateway-type": {
2922
- "description": "Gateway type ID",
2923
- "name": "gateway-type",
2924
- "required": true,
2925
- "hasDynamicHelp": false,
2926
- "multiple": false,
2927
- "type": "option"
2928
- },
2929
- "status": {
2930
- "description": "Channel lifecycle status",
2931
- "name": "status",
2932
- "hasDynamicHelp": false,
2933
- "multiple": false,
2934
- "type": "option"
2935
- },
2936
- "description": {
2937
- "description": "Channel description",
2938
- "name": "description",
2939
- "hasDynamicHelp": false,
2940
- "multiple": false,
2941
- "type": "option"
2942
- },
2943
- "data": {
2944
- "description": "Additional JSON object payload",
2945
- "name": "data",
2946
- "hasDynamicHelp": false,
2947
- "multiple": false,
2948
- "type": "option"
2949
2918
  }
2950
2919
  },
2951
2920
  "hasDynamicHelp": false,
2952
2921
  "hiddenAliases": [],
2953
- "id": "channels:create",
2922
+ "id": "chats:get",
2954
2923
  "pluginAlias": "@instantkom/cli",
2955
2924
  "pluginName": "@instantkom/cli",
2956
2925
  "pluginType": "core",
@@ -2960,20 +2929,14 @@
2960
2929
  "relativePath": [
2961
2930
  "dist",
2962
2931
  "commands",
2963
- "channels",
2964
- "create.js"
2932
+ "chats",
2933
+ "get.js"
2965
2934
  ]
2966
2935
  },
2967
- "channels:get": {
2936
+ "chats:list": {
2968
2937
  "aliases": [],
2969
- "args": {
2970
- "id": {
2971
- "description": "Channel ID",
2972
- "name": "id",
2973
- "required": true
2974
- }
2975
- },
2976
- "description": "Get a channel by ID",
2938
+ "args": {},
2939
+ "description": "List chats",
2977
2940
  "flags": {
2978
2941
  "api-key": {
2979
2942
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3036,11 +2999,73 @@
3036
2999
  "hasDynamicHelp": false,
3037
3000
  "multiple": false,
3038
3001
  "type": "option"
3002
+ },
3003
+ "page": {
3004
+ "description": "Page number",
3005
+ "name": "page",
3006
+ "default": 1,
3007
+ "hasDynamicHelp": false,
3008
+ "multiple": false,
3009
+ "type": "option"
3010
+ },
3011
+ "limit": {
3012
+ "description": "Items per page",
3013
+ "name": "limit",
3014
+ "default": 20,
3015
+ "hasDynamicHelp": false,
3016
+ "multiple": false,
3017
+ "type": "option"
3018
+ },
3019
+ "channel": {
3020
+ "description": "Filter by channel ID",
3021
+ "name": "channel",
3022
+ "hasDynamicHelp": false,
3023
+ "multiple": false,
3024
+ "type": "option"
3025
+ },
3026
+ "channels": {
3027
+ "description": "Comma-separated channel IDs",
3028
+ "name": "channels",
3029
+ "hasDynamicHelp": false,
3030
+ "multiple": false,
3031
+ "type": "option"
3032
+ },
3033
+ "search": {
3034
+ "description": "Search chats",
3035
+ "name": "search",
3036
+ "hasDynamicHelp": false,
3037
+ "multiple": false,
3038
+ "type": "option"
3039
+ },
3040
+ "status": {
3041
+ "description": "Chat status",
3042
+ "name": "status",
3043
+ "hasDynamicHelp": false,
3044
+ "multiple": false,
3045
+ "options": [
3046
+ "all",
3047
+ "unread",
3048
+ "read",
3049
+ "archived"
3050
+ ],
3051
+ "type": "option"
3052
+ },
3053
+ "unread-only": {
3054
+ "description": "Only unread chats",
3055
+ "name": "unread-only",
3056
+ "allowNo": false,
3057
+ "type": "boolean"
3058
+ },
3059
+ "include-archived": {
3060
+ "description": "Include archived chats",
3061
+ "name": "include-archived",
3062
+ "allowNo": false,
3063
+ "type": "boolean"
3039
3064
  }
3040
3065
  },
3041
3066
  "hasDynamicHelp": false,
3042
3067
  "hiddenAliases": [],
3043
- "id": "channels:get",
3068
+ "id": "chats:list",
3044
3069
  "pluginAlias": "@instantkom/cli",
3045
3070
  "pluginName": "@instantkom/cli",
3046
3071
  "pluginType": "core",
@@ -3050,20 +3075,20 @@
3050
3075
  "relativePath": [
3051
3076
  "dist",
3052
3077
  "commands",
3053
- "channels",
3054
- "get.js"
3078
+ "chats",
3079
+ "list.js"
3055
3080
  ]
3056
3081
  },
3057
- "channels:kpis": {
3082
+ "chats:reply": {
3058
3083
  "aliases": [],
3059
3084
  "args": {
3060
3085
  "id": {
3061
- "description": "Optional channel ID; omit for aggregated channel KPIs",
3086
+ "description": "Chat ID",
3062
3087
  "name": "id",
3063
- "required": false
3088
+ "required": true
3064
3089
  }
3065
3090
  },
3066
- "description": "Get channel KPIs",
3091
+ "description": "Reply in a chat",
3067
3092
  "flags": {
3068
3093
  "api-key": {
3069
3094
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3127,9 +3152,10 @@
3127
3152
  "multiple": false,
3128
3153
  "type": "option"
3129
3154
  },
3130
- "period": {
3131
- "description": "KPI period",
3132
- "name": "period",
3155
+ "text": {
3156
+ "description": "Reply text",
3157
+ "name": "text",
3158
+ "required": true,
3133
3159
  "hasDynamicHelp": false,
3134
3160
  "multiple": false,
3135
3161
  "type": "option"
@@ -3137,7 +3163,7 @@
3137
3163
  },
3138
3164
  "hasDynamicHelp": false,
3139
3165
  "hiddenAliases": [],
3140
- "id": "channels:kpis",
3166
+ "id": "chats:reply",
3141
3167
  "pluginAlias": "@instantkom/cli",
3142
3168
  "pluginName": "@instantkom/cli",
3143
3169
  "pluginType": "core",
@@ -3147,14 +3173,14 @@
3147
3173
  "relativePath": [
3148
3174
  "dist",
3149
3175
  "commands",
3150
- "channels",
3151
- "kpis.js"
3176
+ "chats",
3177
+ "reply.js"
3152
3178
  ]
3153
3179
  },
3154
- "channels:list": {
3180
+ "channels:create": {
3155
3181
  "aliases": [],
3156
3182
  "args": {},
3157
- "description": "List channels",
3183
+ "description": "Create a channel",
3158
3184
  "flags": {
3159
3185
  "api-key": {
3160
3186
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3218,47 +3244,47 @@
3218
3244
  "multiple": false,
3219
3245
  "type": "option"
3220
3246
  },
3221
- "page": {
3222
- "description": "Page number",
3223
- "name": "page",
3224
- "default": 1,
3247
+ "name": {
3248
+ "description": "Channel name",
3249
+ "name": "name",
3250
+ "required": true,
3225
3251
  "hasDynamicHelp": false,
3226
3252
  "multiple": false,
3227
3253
  "type": "option"
3228
3254
  },
3229
- "limit": {
3230
- "description": "Items per page",
3231
- "name": "limit",
3232
- "default": 20,
3255
+ "gateway-type": {
3256
+ "description": "Gateway type ID",
3257
+ "name": "gateway-type",
3258
+ "required": true,
3233
3259
  "hasDynamicHelp": false,
3234
3260
  "multiple": false,
3235
3261
  "type": "option"
3236
3262
  },
3237
3263
  "status": {
3238
- "description": "Filter by channel status",
3264
+ "description": "Channel lifecycle status",
3239
3265
  "name": "status",
3240
3266
  "hasDynamicHelp": false,
3241
3267
  "multiple": false,
3242
3268
  "type": "option"
3243
3269
  },
3244
- "gateway-type": {
3245
- "description": "Filter by gateway type ID",
3246
- "name": "gateway-type",
3270
+ "description": {
3271
+ "description": "Channel description",
3272
+ "name": "description",
3247
3273
  "hasDynamicHelp": false,
3248
3274
  "multiple": false,
3249
3275
  "type": "option"
3250
3276
  },
3251
- "search": {
3252
- "description": "Search by channel name",
3253
- "name": "search",
3254
- "hasDynamicHelp": false,
3277
+ "data": {
3278
+ "description": "Additional JSON object payload",
3279
+ "name": "data",
3280
+ "hasDynamicHelp": false,
3255
3281
  "multiple": false,
3256
3282
  "type": "option"
3257
3283
  }
3258
3284
  },
3259
3285
  "hasDynamicHelp": false,
3260
3286
  "hiddenAliases": [],
3261
- "id": "channels:list",
3287
+ "id": "channels:create",
3262
3288
  "pluginAlias": "@instantkom/cli",
3263
3289
  "pluginName": "@instantkom/cli",
3264
3290
  "pluginType": "core",
@@ -3269,10 +3295,10 @@
3269
3295
  "dist",
3270
3296
  "commands",
3271
3297
  "channels",
3272
- "list.js"
3298
+ "create.js"
3273
3299
  ]
3274
3300
  },
3275
- "channels:update": {
3301
+ "channels:get": {
3276
3302
  "aliases": [],
3277
3303
  "args": {
3278
3304
  "id": {
@@ -3281,7 +3307,7 @@
3281
3307
  "required": true
3282
3308
  }
3283
3309
  },
3284
- "description": "Update a channel",
3310
+ "description": "Get a channel by ID",
3285
3311
  "flags": {
3286
3312
  "api-key": {
3287
3313
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3344,39 +3370,11 @@
3344
3370
  "hasDynamicHelp": false,
3345
3371
  "multiple": false,
3346
3372
  "type": "option"
3347
- },
3348
- "name": {
3349
- "description": "Channel name",
3350
- "name": "name",
3351
- "hasDynamicHelp": false,
3352
- "multiple": false,
3353
- "type": "option"
3354
- },
3355
- "status": {
3356
- "description": "Channel lifecycle status",
3357
- "name": "status",
3358
- "hasDynamicHelp": false,
3359
- "multiple": false,
3360
- "type": "option"
3361
- },
3362
- "description": {
3363
- "description": "Channel description",
3364
- "name": "description",
3365
- "hasDynamicHelp": false,
3366
- "multiple": false,
3367
- "type": "option"
3368
- },
3369
- "data": {
3370
- "description": "Additional JSON object payload",
3371
- "name": "data",
3372
- "hasDynamicHelp": false,
3373
- "multiple": false,
3374
- "type": "option"
3375
3373
  }
3376
3374
  },
3377
3375
  "hasDynamicHelp": false,
3378
3376
  "hiddenAliases": [],
3379
- "id": "channels:update",
3377
+ "id": "channels:get",
3380
3378
  "pluginAlias": "@instantkom/cli",
3381
3379
  "pluginName": "@instantkom/cli",
3382
3380
  "pluginType": "core",
@@ -3387,19 +3385,19 @@
3387
3385
  "dist",
3388
3386
  "commands",
3389
3387
  "channels",
3390
- "update.js"
3388
+ "get.js"
3391
3389
  ]
3392
3390
  },
3393
- "chats:get": {
3391
+ "channels:kpis": {
3394
3392
  "aliases": [],
3395
3393
  "args": {
3396
3394
  "id": {
3397
- "description": "chat ID",
3395
+ "description": "Optional channel ID; omit for aggregated channel KPIs",
3398
3396
  "name": "id",
3399
- "required": true
3397
+ "required": false
3400
3398
  }
3401
3399
  },
3402
- "description": "Get chat by ID",
3400
+ "description": "Get channel KPIs",
3403
3401
  "flags": {
3404
3402
  "api-key": {
3405
3403
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3462,11 +3460,18 @@
3462
3460
  "hasDynamicHelp": false,
3463
3461
  "multiple": false,
3464
3462
  "type": "option"
3463
+ },
3464
+ "period": {
3465
+ "description": "KPI period",
3466
+ "name": "period",
3467
+ "hasDynamicHelp": false,
3468
+ "multiple": false,
3469
+ "type": "option"
3465
3470
  }
3466
3471
  },
3467
3472
  "hasDynamicHelp": false,
3468
3473
  "hiddenAliases": [],
3469
- "id": "chats:get",
3474
+ "id": "channels:kpis",
3470
3475
  "pluginAlias": "@instantkom/cli",
3471
3476
  "pluginName": "@instantkom/cli",
3472
3477
  "pluginType": "core",
@@ -3476,14 +3481,14 @@
3476
3481
  "relativePath": [
3477
3482
  "dist",
3478
3483
  "commands",
3479
- "chats",
3480
- "get.js"
3484
+ "channels",
3485
+ "kpis.js"
3481
3486
  ]
3482
3487
  },
3483
- "chats:list": {
3488
+ "channels:list": {
3484
3489
  "aliases": [],
3485
3490
  "args": {},
3486
- "description": "List chats",
3491
+ "description": "List channels",
3487
3492
  "flags": {
3488
3493
  "api-key": {
3489
3494
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3563,56 +3568,31 @@
3563
3568
  "multiple": false,
3564
3569
  "type": "option"
3565
3570
  },
3566
- "channel": {
3567
- "description": "Filter by channel ID",
3568
- "name": "channel",
3571
+ "status": {
3572
+ "description": "Filter by channel status",
3573
+ "name": "status",
3569
3574
  "hasDynamicHelp": false,
3570
3575
  "multiple": false,
3571
3576
  "type": "option"
3572
3577
  },
3573
- "channels": {
3574
- "description": "Comma-separated channel IDs",
3575
- "name": "channels",
3578
+ "gateway-type": {
3579
+ "description": "Filter by gateway type ID",
3580
+ "name": "gateway-type",
3576
3581
  "hasDynamicHelp": false,
3577
3582
  "multiple": false,
3578
3583
  "type": "option"
3579
3584
  },
3580
3585
  "search": {
3581
- "description": "Search chats",
3586
+ "description": "Search by channel name",
3582
3587
  "name": "search",
3583
3588
  "hasDynamicHelp": false,
3584
3589
  "multiple": false,
3585
3590
  "type": "option"
3586
- },
3587
- "status": {
3588
- "description": "Chat status",
3589
- "name": "status",
3590
- "hasDynamicHelp": false,
3591
- "multiple": false,
3592
- "options": [
3593
- "all",
3594
- "unread",
3595
- "read",
3596
- "archived"
3597
- ],
3598
- "type": "option"
3599
- },
3600
- "unread-only": {
3601
- "description": "Only unread chats",
3602
- "name": "unread-only",
3603
- "allowNo": false,
3604
- "type": "boolean"
3605
- },
3606
- "include-archived": {
3607
- "description": "Include archived chats",
3608
- "name": "include-archived",
3609
- "allowNo": false,
3610
- "type": "boolean"
3611
3591
  }
3612
3592
  },
3613
3593
  "hasDynamicHelp": false,
3614
3594
  "hiddenAliases": [],
3615
- "id": "chats:list",
3595
+ "id": "channels:list",
3616
3596
  "pluginAlias": "@instantkom/cli",
3617
3597
  "pluginName": "@instantkom/cli",
3618
3598
  "pluginType": "core",
@@ -3622,20 +3602,20 @@
3622
3602
  "relativePath": [
3623
3603
  "dist",
3624
3604
  "commands",
3625
- "chats",
3605
+ "channels",
3626
3606
  "list.js"
3627
3607
  ]
3628
3608
  },
3629
- "chats:reply": {
3609
+ "channels:update": {
3630
3610
  "aliases": [],
3631
3611
  "args": {
3632
3612
  "id": {
3633
- "description": "Chat ID",
3613
+ "description": "Channel ID",
3634
3614
  "name": "id",
3635
3615
  "required": true
3636
3616
  }
3637
3617
  },
3638
- "description": "Reply in a chat",
3618
+ "description": "Update a channel",
3639
3619
  "flags": {
3640
3620
  "api-key": {
3641
3621
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -3699,10 +3679,30 @@
3699
3679
  "multiple": false,
3700
3680
  "type": "option"
3701
3681
  },
3702
- "text": {
3703
- "description": "Reply text",
3704
- "name": "text",
3705
- "required": true,
3682
+ "name": {
3683
+ "description": "Channel name",
3684
+ "name": "name",
3685
+ "hasDynamicHelp": false,
3686
+ "multiple": false,
3687
+ "type": "option"
3688
+ },
3689
+ "status": {
3690
+ "description": "Channel lifecycle status",
3691
+ "name": "status",
3692
+ "hasDynamicHelp": false,
3693
+ "multiple": false,
3694
+ "type": "option"
3695
+ },
3696
+ "description": {
3697
+ "description": "Channel description",
3698
+ "name": "description",
3699
+ "hasDynamicHelp": false,
3700
+ "multiple": false,
3701
+ "type": "option"
3702
+ },
3703
+ "data": {
3704
+ "description": "Additional JSON object payload",
3705
+ "name": "data",
3706
3706
  "hasDynamicHelp": false,
3707
3707
  "multiple": false,
3708
3708
  "type": "option"
@@ -3710,7 +3710,7 @@
3710
3710
  },
3711
3711
  "hasDynamicHelp": false,
3712
3712
  "hiddenAliases": [],
3713
- "id": "chats:reply",
3713
+ "id": "channels:update",
3714
3714
  "pluginAlias": "@instantkom/cli",
3715
3715
  "pluginName": "@instantkom/cli",
3716
3716
  "pluginType": "core",
@@ -3720,8 +3720,8 @@
3720
3720
  "relativePath": [
3721
3721
  "dist",
3722
3722
  "commands",
3723
- "chats",
3724
- "reply.js"
3723
+ "channels",
3724
+ "update.js"
3725
3725
  ]
3726
3726
  },
3727
3727
  "config:get": {
@@ -6076,10 +6076,10 @@
6076
6076
  "list.js"
6077
6077
  ]
6078
6078
  },
6079
- "flows:create": {
6079
+ "messages:bulk-spam": {
6080
6080
  "aliases": [],
6081
6081
  "args": {},
6082
- "description": "Create a flow",
6082
+ "description": "Mark or unmark multiple messages as spam",
6083
6083
  "flags": {
6084
6084
  "api-key": {
6085
6085
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6143,54 +6143,24 @@
6143
6143
  "multiple": false,
6144
6144
  "type": "option"
6145
6145
  },
6146
- "channel": {
6147
- "description": "Channel ID",
6148
- "name": "channel",
6149
- "required": true,
6150
- "hasDynamicHelp": false,
6151
- "multiple": false,
6152
- "type": "option"
6153
- },
6154
- "name": {
6155
- "description": "Flow name",
6156
- "name": "name",
6146
+ "ids": {
6147
+ "description": "Comma-separated message IDs",
6148
+ "name": "ids",
6157
6149
  "required": true,
6158
6150
  "hasDynamicHelp": false,
6159
6151
  "multiple": false,
6160
6152
  "type": "option"
6161
6153
  },
6162
- "description": {
6163
- "description": "Flow description",
6164
- "name": "description",
6165
- "hasDynamicHelp": false,
6166
- "multiple": false,
6167
- "type": "option"
6168
- },
6169
- "color": {
6170
- "description": "Flow color as HEX",
6171
- "name": "color",
6172
- "hasDynamicHelp": false,
6173
- "multiple": false,
6174
- "type": "option"
6175
- },
6176
- "folder": {
6177
- "description": "Folder ID",
6178
- "name": "folder",
6179
- "hasDynamicHelp": false,
6180
- "multiple": false,
6181
- "type": "option"
6182
- },
6183
- "data": {
6184
- "description": "Additional JSON object payload",
6185
- "name": "data",
6186
- "hasDynamicHelp": false,
6187
- "multiple": false,
6188
- "type": "option"
6154
+ "spam": {
6155
+ "description": "Mark messages as spam",
6156
+ "name": "spam",
6157
+ "allowNo": true,
6158
+ "type": "boolean"
6189
6159
  }
6190
6160
  },
6191
6161
  "hasDynamicHelp": false,
6192
6162
  "hiddenAliases": [],
6193
- "id": "flows:create",
6163
+ "id": "messages:bulk-spam",
6194
6164
  "pluginAlias": "@instantkom/cli",
6195
6165
  "pluginName": "@instantkom/cli",
6196
6166
  "pluginType": "core",
@@ -6200,20 +6170,20 @@
6200
6170
  "relativePath": [
6201
6171
  "dist",
6202
6172
  "commands",
6203
- "flows",
6204
- "create.js"
6173
+ "messages",
6174
+ "bulk-spam.js"
6205
6175
  ]
6206
6176
  },
6207
- "flows:delete": {
6177
+ "messages:create-ticket": {
6208
6178
  "aliases": [],
6209
6179
  "args": {
6210
6180
  "id": {
6211
- "description": "Flow ID",
6181
+ "description": "Message ID",
6212
6182
  "name": "id",
6213
6183
  "required": true
6214
6184
  }
6215
6185
  },
6216
- "description": "Delete a flow",
6186
+ "description": "Create a ticket from a message",
6217
6187
  "flags": {
6218
6188
  "api-key": {
6219
6189
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6276,11 +6246,32 @@
6276
6246
  "hasDynamicHelp": false,
6277
6247
  "multiple": false,
6278
6248
  "type": "option"
6249
+ },
6250
+ "subject": {
6251
+ "description": "Ticket subject",
6252
+ "name": "subject",
6253
+ "hasDynamicHelp": false,
6254
+ "multiple": false,
6255
+ "type": "option"
6256
+ },
6257
+ "priority": {
6258
+ "description": "Ticket priority",
6259
+ "name": "priority",
6260
+ "hasDynamicHelp": false,
6261
+ "multiple": false,
6262
+ "type": "option"
6263
+ },
6264
+ "data": {
6265
+ "description": "Additional JSON object payload",
6266
+ "name": "data",
6267
+ "hasDynamicHelp": false,
6268
+ "multiple": false,
6269
+ "type": "option"
6279
6270
  }
6280
6271
  },
6281
6272
  "hasDynamicHelp": false,
6282
6273
  "hiddenAliases": [],
6283
- "id": "flows:delete",
6274
+ "id": "messages:create-ticket",
6284
6275
  "pluginAlias": "@instantkom/cli",
6285
6276
  "pluginName": "@instantkom/cli",
6286
6277
  "pluginType": "core",
@@ -6290,20 +6281,20 @@
6290
6281
  "relativePath": [
6291
6282
  "dist",
6292
6283
  "commands",
6293
- "flows",
6294
- "delete.js"
6284
+ "messages",
6285
+ "create-ticket.js"
6295
6286
  ]
6296
6287
  },
6297
- "flows:get": {
6288
+ "messages:delete": {
6298
6289
  "aliases": [],
6299
6290
  "args": {
6300
6291
  "id": {
6301
- "description": "Flow ID",
6292
+ "description": "message ID",
6302
6293
  "name": "id",
6303
6294
  "required": true
6304
6295
  }
6305
6296
  },
6306
- "description": "Get a flow by ID",
6297
+ "description": "Delete message",
6307
6298
  "flags": {
6308
6299
  "api-key": {
6309
6300
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6370,7 +6361,7 @@
6370
6361
  },
6371
6362
  "hasDynamicHelp": false,
6372
6363
  "hiddenAliases": [],
6373
- "id": "flows:get",
6364
+ "id": "messages:delete",
6374
6365
  "pluginAlias": "@instantkom/cli",
6375
6366
  "pluginName": "@instantkom/cli",
6376
6367
  "pluginType": "core",
@@ -6380,14 +6371,20 @@
6380
6371
  "relativePath": [
6381
6372
  "dist",
6382
6373
  "commands",
6383
- "flows",
6384
- "get.js"
6374
+ "messages",
6375
+ "delete.js"
6385
6376
  ]
6386
6377
  },
6387
- "flows:list": {
6378
+ "messages:get": {
6388
6379
  "aliases": [],
6389
- "args": {},
6390
- "description": "List flows",
6380
+ "args": {
6381
+ "id": {
6382
+ "description": "message ID",
6383
+ "name": "id",
6384
+ "required": true
6385
+ }
6386
+ },
6387
+ "description": "Get message by ID",
6391
6388
  "flags": {
6392
6389
  "api-key": {
6393
6390
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6450,48 +6447,11 @@
6450
6447
  "hasDynamicHelp": false,
6451
6448
  "multiple": false,
6452
6449
  "type": "option"
6453
- },
6454
- "page": {
6455
- "description": "Page number",
6456
- "name": "page",
6457
- "default": 1,
6458
- "hasDynamicHelp": false,
6459
- "multiple": false,
6460
- "type": "option"
6461
- },
6462
- "limit": {
6463
- "description": "Items per page",
6464
- "name": "limit",
6465
- "default": 20,
6466
- "hasDynamicHelp": false,
6467
- "multiple": false,
6468
- "type": "option"
6469
- },
6470
- "channel": {
6471
- "description": "Filter by channel ID",
6472
- "name": "channel",
6473
- "hasDynamicHelp": false,
6474
- "multiple": false,
6475
- "type": "option"
6476
- },
6477
- "search": {
6478
- "description": "Search in flow name or description",
6479
- "name": "search",
6480
- "hasDynamicHelp": false,
6481
- "multiple": false,
6482
- "type": "option"
6483
- },
6484
- "folder": {
6485
- "description": "Filter by folder ID",
6486
- "name": "folder",
6487
- "hasDynamicHelp": false,
6488
- "multiple": false,
6489
- "type": "option"
6490
6450
  }
6491
6451
  },
6492
6452
  "hasDynamicHelp": false,
6493
6453
  "hiddenAliases": [],
6494
- "id": "flows:list",
6454
+ "id": "messages:get",
6495
6455
  "pluginAlias": "@instantkom/cli",
6496
6456
  "pluginName": "@instantkom/cli",
6497
6457
  "pluginType": "core",
@@ -6501,20 +6461,14 @@
6501
6461
  "relativePath": [
6502
6462
  "dist",
6503
6463
  "commands",
6504
- "flows",
6505
- "list.js"
6464
+ "messages",
6465
+ "get.js"
6506
6466
  ]
6507
6467
  },
6508
- "flows:update": {
6468
+ "messages:list": {
6509
6469
  "aliases": [],
6510
- "args": {
6511
- "id": {
6512
- "description": "Flow ID",
6513
- "name": "id",
6514
- "required": true
6515
- }
6516
- },
6517
- "description": "Update a flow",
6470
+ "args": {},
6471
+ "description": "List messages",
6518
6472
  "flags": {
6519
6473
  "api-key": {
6520
6474
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6578,45 +6532,71 @@
6578
6532
  "multiple": false,
6579
6533
  "type": "option"
6580
6534
  },
6581
- "name": {
6582
- "description": "Flow name",
6583
- "name": "name",
6535
+ "page": {
6536
+ "description": "Page number",
6537
+ "name": "page",
6538
+ "default": 1,
6584
6539
  "hasDynamicHelp": false,
6585
6540
  "multiple": false,
6586
6541
  "type": "option"
6587
6542
  },
6588
- "description": {
6589
- "description": "Flow description",
6590
- "name": "description",
6543
+ "limit": {
6544
+ "description": "Items per page",
6545
+ "name": "limit",
6546
+ "default": 20,
6591
6547
  "hasDynamicHelp": false,
6592
6548
  "multiple": false,
6593
6549
  "type": "option"
6594
6550
  },
6595
- "color": {
6596
- "description": "Flow color as HEX",
6597
- "name": "color",
6551
+ "channel": {
6552
+ "description": "Filter by channel ID",
6553
+ "name": "channel",
6598
6554
  "hasDynamicHelp": false,
6599
6555
  "multiple": false,
6600
6556
  "type": "option"
6601
6557
  },
6602
- "folder": {
6603
- "description": "Folder ID",
6604
- "name": "folder",
6558
+ "recipient": {
6559
+ "description": "Filter by recipient ID",
6560
+ "name": "recipient",
6605
6561
  "hasDynamicHelp": false,
6606
6562
  "multiple": false,
6607
6563
  "type": "option"
6608
6564
  },
6609
- "data": {
6610
- "description": "Additional JSON object payload",
6611
- "name": "data",
6565
+ "direction": {
6566
+ "description": "Direction",
6567
+ "name": "direction",
6568
+ "hasDynamicHelp": false,
6569
+ "multiple": false,
6570
+ "options": [
6571
+ "s",
6572
+ "r"
6573
+ ],
6574
+ "type": "option"
6575
+ },
6576
+ "type": {
6577
+ "description": "Message type",
6578
+ "name": "type",
6612
6579
  "hasDynamicHelp": false,
6613
6580
  "multiple": false,
6614
6581
  "type": "option"
6582
+ },
6583
+ "search": {
6584
+ "description": "Search messages",
6585
+ "name": "search",
6586
+ "hasDynamicHelp": false,
6587
+ "multiple": false,
6588
+ "type": "option"
6589
+ },
6590
+ "spam": {
6591
+ "description": "Filter spam messages",
6592
+ "name": "spam",
6593
+ "allowNo": false,
6594
+ "type": "boolean"
6615
6595
  }
6616
6596
  },
6617
6597
  "hasDynamicHelp": false,
6618
6598
  "hiddenAliases": [],
6619
- "id": "flows:update",
6599
+ "id": "messages:list",
6620
6600
  "pluginAlias": "@instantkom/cli",
6621
6601
  "pluginName": "@instantkom/cli",
6622
6602
  "pluginType": "core",
@@ -6626,14 +6606,20 @@
6626
6606
  "relativePath": [
6627
6607
  "dist",
6628
6608
  "commands",
6629
- "flows",
6630
- "update.js"
6609
+ "messages",
6610
+ "list.js"
6631
6611
  ]
6632
6612
  },
6633
- "messages:bulk-spam": {
6613
+ "messages:reactions": {
6634
6614
  "aliases": [],
6635
- "args": {},
6636
- "description": "Mark or unmark multiple messages as spam",
6615
+ "args": {
6616
+ "id": {
6617
+ "description": "Message ID",
6618
+ "name": "id",
6619
+ "required": true
6620
+ }
6621
+ },
6622
+ "description": "Get reactions to a message",
6637
6623
  "flags": {
6638
6624
  "api-key": {
6639
6625
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6696,25 +6682,11 @@
6696
6682
  "hasDynamicHelp": false,
6697
6683
  "multiple": false,
6698
6684
  "type": "option"
6699
- },
6700
- "ids": {
6701
- "description": "Comma-separated message IDs",
6702
- "name": "ids",
6703
- "required": true,
6704
- "hasDynamicHelp": false,
6705
- "multiple": false,
6706
- "type": "option"
6707
- },
6708
- "spam": {
6709
- "description": "Mark messages as spam",
6710
- "name": "spam",
6711
- "allowNo": true,
6712
- "type": "boolean"
6713
6685
  }
6714
6686
  },
6715
6687
  "hasDynamicHelp": false,
6716
6688
  "hiddenAliases": [],
6717
- "id": "messages:bulk-spam",
6689
+ "id": "messages:reactions",
6718
6690
  "pluginAlias": "@instantkom/cli",
6719
6691
  "pluginName": "@instantkom/cli",
6720
6692
  "pluginType": "core",
@@ -6725,10 +6697,10 @@
6725
6697
  "dist",
6726
6698
  "commands",
6727
6699
  "messages",
6728
- "bulk-spam.js"
6700
+ "reactions.js"
6729
6701
  ]
6730
6702
  },
6731
- "messages:create-ticket": {
6703
+ "messages:spam": {
6732
6704
  "aliases": [],
6733
6705
  "args": {
6734
6706
  "id": {
@@ -6737,7 +6709,7 @@
6737
6709
  "required": true
6738
6710
  }
6739
6711
  },
6740
- "description": "Create a ticket from a message",
6712
+ "description": "Mark or unmark a message as spam",
6741
6713
  "flags": {
6742
6714
  "api-key": {
6743
6715
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6801,31 +6773,16 @@
6801
6773
  "multiple": false,
6802
6774
  "type": "option"
6803
6775
  },
6804
- "subject": {
6805
- "description": "Ticket subject",
6806
- "name": "subject",
6807
- "hasDynamicHelp": false,
6808
- "multiple": false,
6809
- "type": "option"
6810
- },
6811
- "priority": {
6812
- "description": "Ticket priority",
6813
- "name": "priority",
6814
- "hasDynamicHelp": false,
6815
- "multiple": false,
6816
- "type": "option"
6817
- },
6818
- "data": {
6819
- "description": "Additional JSON object payload",
6820
- "name": "data",
6821
- "hasDynamicHelp": false,
6822
- "multiple": false,
6823
- "type": "option"
6776
+ "spam": {
6777
+ "description": "Mark as spam",
6778
+ "name": "spam",
6779
+ "allowNo": true,
6780
+ "type": "boolean"
6824
6781
  }
6825
6782
  },
6826
6783
  "hasDynamicHelp": false,
6827
6784
  "hiddenAliases": [],
6828
- "id": "messages:create-ticket",
6785
+ "id": "messages:spam",
6829
6786
  "pluginAlias": "@instantkom/cli",
6830
6787
  "pluginName": "@instantkom/cli",
6831
6788
  "pluginType": "core",
@@ -6836,19 +6793,13 @@
6836
6793
  "dist",
6837
6794
  "commands",
6838
6795
  "messages",
6839
- "create-ticket.js"
6796
+ "spam.js"
6840
6797
  ]
6841
6798
  },
6842
- "messages:delete": {
6799
+ "messages:unread-count": {
6843
6800
  "aliases": [],
6844
- "args": {
6845
- "id": {
6846
- "description": "message ID",
6847
- "name": "id",
6848
- "required": true
6849
- }
6850
- },
6851
- "description": "Delete message",
6801
+ "args": {},
6802
+ "description": "Get unread inbox message count",
6852
6803
  "flags": {
6853
6804
  "api-key": {
6854
6805
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6915,7 +6866,7 @@
6915
6866
  },
6916
6867
  "hasDynamicHelp": false,
6917
6868
  "hiddenAliases": [],
6918
- "id": "messages:delete",
6869
+ "id": "messages:unread-count",
6919
6870
  "pluginAlias": "@instantkom/cli",
6920
6871
  "pluginName": "@instantkom/cli",
6921
6872
  "pluginType": "core",
@@ -6926,19 +6877,19 @@
6926
6877
  "dist",
6927
6878
  "commands",
6928
6879
  "messages",
6929
- "delete.js"
6880
+ "unread-count.js"
6930
6881
  ]
6931
6882
  },
6932
- "messages:get": {
6883
+ "messages:update": {
6933
6884
  "aliases": [],
6934
6885
  "args": {
6935
6886
  "id": {
6936
- "description": "message ID",
6887
+ "description": "Message ID",
6937
6888
  "name": "id",
6938
6889
  "required": true
6939
6890
  }
6940
6891
  },
6941
- "description": "Get message by ID",
6892
+ "description": "Update a message",
6942
6893
  "flags": {
6943
6894
  "api-key": {
6944
6895
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7001,11 +6952,58 @@
7001
6952
  "hasDynamicHelp": false,
7002
6953
  "multiple": false,
7003
6954
  "type": "option"
6955
+ },
6956
+ "message": {
6957
+ "description": "Message content",
6958
+ "name": "message",
6959
+ "hasDynamicHelp": false,
6960
+ "multiple": false,
6961
+ "type": "option"
6962
+ },
6963
+ "scheduled-at": {
6964
+ "description": "Unix timestamp for scheduled send",
6965
+ "name": "scheduled-at",
6966
+ "hasDynamicHelp": false,
6967
+ "multiple": false,
6968
+ "type": "option"
6969
+ },
6970
+ "hidden": {
6971
+ "description": "Hide message",
6972
+ "name": "hidden",
6973
+ "allowNo": true,
6974
+ "type": "boolean"
6975
+ },
6976
+ "locked": {
6977
+ "description": "Lock message",
6978
+ "name": "locked",
6979
+ "allowNo": true,
6980
+ "type": "boolean"
6981
+ },
6982
+ "buttons": {
6983
+ "description": "Buttons JSON array",
6984
+ "name": "buttons",
6985
+ "hasDynamicHelp": false,
6986
+ "multiple": false,
6987
+ "type": "option"
6988
+ },
6989
+ "header-footer": {
6990
+ "description": "Header/footer JSON object",
6991
+ "name": "header-footer",
6992
+ "hasDynamicHelp": false,
6993
+ "multiple": false,
6994
+ "type": "option"
6995
+ },
6996
+ "data": {
6997
+ "description": "Additional JSON object payload",
6998
+ "name": "data",
6999
+ "hasDynamicHelp": false,
7000
+ "multiple": false,
7001
+ "type": "option"
7004
7002
  }
7005
7003
  },
7006
7004
  "hasDynamicHelp": false,
7007
7005
  "hiddenAliases": [],
7008
- "id": "messages:get",
7006
+ "id": "messages:update",
7009
7007
  "pluginAlias": "@instantkom/cli",
7010
7008
  "pluginName": "@instantkom/cli",
7011
7009
  "pluginType": "core",
@@ -7016,13 +7014,13 @@
7016
7014
  "dist",
7017
7015
  "commands",
7018
7016
  "messages",
7019
- "get.js"
7017
+ "update.js"
7020
7018
  ]
7021
7019
  },
7022
- "messages:list": {
7020
+ "segments:create": {
7023
7021
  "aliases": [],
7024
7022
  "args": {},
7025
- "description": "List messages",
7023
+ "description": "Create a segment",
7026
7024
  "flags": {
7027
7025
  "api-key": {
7028
7026
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7086,71 +7084,61 @@
7086
7084
  "multiple": false,
7087
7085
  "type": "option"
7088
7086
  },
7089
- "page": {
7090
- "description": "Page number",
7091
- "name": "page",
7092
- "default": 1,
7087
+ "channel": {
7088
+ "description": "Channel ID",
7089
+ "name": "channel",
7090
+ "required": true,
7093
7091
  "hasDynamicHelp": false,
7094
7092
  "multiple": false,
7095
7093
  "type": "option"
7096
7094
  },
7097
- "limit": {
7098
- "description": "Items per page",
7099
- "name": "limit",
7100
- "default": 20,
7095
+ "name": {
7096
+ "description": "Segment name",
7097
+ "name": "name",
7098
+ "required": true,
7101
7099
  "hasDynamicHelp": false,
7102
7100
  "multiple": false,
7103
7101
  "type": "option"
7104
7102
  },
7105
- "channel": {
7106
- "description": "Filter by channel ID",
7107
- "name": "channel",
7103
+ "description": {
7104
+ "description": "Segment description",
7105
+ "name": "description",
7108
7106
  "hasDynamicHelp": false,
7109
7107
  "multiple": false,
7110
7108
  "type": "option"
7111
7109
  },
7112
- "recipient": {
7113
- "description": "Filter by recipient ID",
7114
- "name": "recipient",
7110
+ "color": {
7111
+ "description": "Segment color as HEX",
7112
+ "name": "color",
7115
7113
  "hasDynamicHelp": false,
7116
7114
  "multiple": false,
7117
7115
  "type": "option"
7118
7116
  },
7119
- "direction": {
7120
- "description": "Direction",
7121
- "name": "direction",
7117
+ "tags": {
7118
+ "description": "Tags for filtering recipients",
7119
+ "name": "tags",
7122
7120
  "hasDynamicHelp": false,
7123
7121
  "multiple": false,
7124
- "options": [
7125
- "s",
7126
- "r"
7127
- ],
7128
7122
  "type": "option"
7129
- },
7130
- "type": {
7131
- "description": "Message type",
7132
- "name": "type",
7123
+ },
7124
+ "folder": {
7125
+ "description": "Object folder ID",
7126
+ "name": "folder",
7133
7127
  "hasDynamicHelp": false,
7134
7128
  "multiple": false,
7135
7129
  "type": "option"
7136
7130
  },
7137
- "search": {
7138
- "description": "Search messages",
7139
- "name": "search",
7131
+ "data": {
7132
+ "description": "Additional JSON object payload",
7133
+ "name": "data",
7140
7134
  "hasDynamicHelp": false,
7141
7135
  "multiple": false,
7142
7136
  "type": "option"
7143
- },
7144
- "spam": {
7145
- "description": "Filter spam messages",
7146
- "name": "spam",
7147
- "allowNo": false,
7148
- "type": "boolean"
7149
7137
  }
7150
7138
  },
7151
7139
  "hasDynamicHelp": false,
7152
7140
  "hiddenAliases": [],
7153
- "id": "messages:list",
7141
+ "id": "segments:create",
7154
7142
  "pluginAlias": "@instantkom/cli",
7155
7143
  "pluginName": "@instantkom/cli",
7156
7144
  "pluginType": "core",
@@ -7160,20 +7148,20 @@
7160
7148
  "relativePath": [
7161
7149
  "dist",
7162
7150
  "commands",
7163
- "messages",
7164
- "list.js"
7151
+ "segments",
7152
+ "create.js"
7165
7153
  ]
7166
7154
  },
7167
- "messages:reactions": {
7155
+ "segments:delete": {
7168
7156
  "aliases": [],
7169
7157
  "args": {
7170
7158
  "id": {
7171
- "description": "Message ID",
7159
+ "description": "segment ID",
7172
7160
  "name": "id",
7173
7161
  "required": true
7174
7162
  }
7175
7163
  },
7176
- "description": "Get reactions to a message",
7164
+ "description": "Delete segment",
7177
7165
  "flags": {
7178
7166
  "api-key": {
7179
7167
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7240,7 +7228,7 @@
7240
7228
  },
7241
7229
  "hasDynamicHelp": false,
7242
7230
  "hiddenAliases": [],
7243
- "id": "messages:reactions",
7231
+ "id": "segments:delete",
7244
7232
  "pluginAlias": "@instantkom/cli",
7245
7233
  "pluginName": "@instantkom/cli",
7246
7234
  "pluginType": "core",
@@ -7250,20 +7238,20 @@
7250
7238
  "relativePath": [
7251
7239
  "dist",
7252
7240
  "commands",
7253
- "messages",
7254
- "reactions.js"
7241
+ "segments",
7242
+ "delete.js"
7255
7243
  ]
7256
7244
  },
7257
- "messages:spam": {
7245
+ "segments:get": {
7258
7246
  "aliases": [],
7259
7247
  "args": {
7260
7248
  "id": {
7261
- "description": "Message ID",
7249
+ "description": "segment ID",
7262
7250
  "name": "id",
7263
7251
  "required": true
7264
7252
  }
7265
7253
  },
7266
- "description": "Mark or unmark a message as spam",
7254
+ "description": "Get segment by ID",
7267
7255
  "flags": {
7268
7256
  "api-key": {
7269
7257
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7326,17 +7314,11 @@
7326
7314
  "hasDynamicHelp": false,
7327
7315
  "multiple": false,
7328
7316
  "type": "option"
7329
- },
7330
- "spam": {
7331
- "description": "Mark as spam",
7332
- "name": "spam",
7333
- "allowNo": true,
7334
- "type": "boolean"
7335
7317
  }
7336
7318
  },
7337
7319
  "hasDynamicHelp": false,
7338
7320
  "hiddenAliases": [],
7339
- "id": "messages:spam",
7321
+ "id": "segments:get",
7340
7322
  "pluginAlias": "@instantkom/cli",
7341
7323
  "pluginName": "@instantkom/cli",
7342
7324
  "pluginType": "core",
@@ -7346,14 +7328,14 @@
7346
7328
  "relativePath": [
7347
7329
  "dist",
7348
7330
  "commands",
7349
- "messages",
7350
- "spam.js"
7331
+ "segments",
7332
+ "get.js"
7351
7333
  ]
7352
7334
  },
7353
- "messages:unread-count": {
7335
+ "segments:list": {
7354
7336
  "aliases": [],
7355
7337
  "args": {},
7356
- "description": "Get unread inbox message count",
7338
+ "description": "List segments",
7357
7339
  "flags": {
7358
7340
  "api-key": {
7359
7341
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7416,11 +7398,59 @@
7416
7398
  "hasDynamicHelp": false,
7417
7399
  "multiple": false,
7418
7400
  "type": "option"
7401
+ },
7402
+ "page": {
7403
+ "description": "Page number",
7404
+ "name": "page",
7405
+ "default": 1,
7406
+ "hasDynamicHelp": false,
7407
+ "multiple": false,
7408
+ "type": "option"
7409
+ },
7410
+ "limit": {
7411
+ "description": "Items per page",
7412
+ "name": "limit",
7413
+ "default": 20,
7414
+ "hasDynamicHelp": false,
7415
+ "multiple": false,
7416
+ "type": "option"
7417
+ },
7418
+ "channel": {
7419
+ "description": "Filter by channel ID",
7420
+ "name": "channel",
7421
+ "hasDynamicHelp": false,
7422
+ "multiple": false,
7423
+ "type": "option"
7424
+ },
7425
+ "search": {
7426
+ "description": "Search by name",
7427
+ "name": "search",
7428
+ "hasDynamicHelp": false,
7429
+ "multiple": false,
7430
+ "type": "option"
7431
+ },
7432
+ "tags": {
7433
+ "description": "Comma-separated tag IDs",
7434
+ "name": "tags",
7435
+ "hasDynamicHelp": false,
7436
+ "multiple": false,
7437
+ "type": "option"
7438
+ },
7439
+ "tag-match-mode": {
7440
+ "description": "Tag match mode",
7441
+ "name": "tag-match-mode",
7442
+ "hasDynamicHelp": false,
7443
+ "multiple": false,
7444
+ "options": [
7445
+ "any",
7446
+ "all"
7447
+ ],
7448
+ "type": "option"
7419
7449
  }
7420
7450
  },
7421
7451
  "hasDynamicHelp": false,
7422
7452
  "hiddenAliases": [],
7423
- "id": "messages:unread-count",
7453
+ "id": "segments:list",
7424
7454
  "pluginAlias": "@instantkom/cli",
7425
7455
  "pluginName": "@instantkom/cli",
7426
7456
  "pluginType": "core",
@@ -7430,20 +7460,20 @@
7430
7460
  "relativePath": [
7431
7461
  "dist",
7432
7462
  "commands",
7433
- "messages",
7434
- "unread-count.js"
7463
+ "segments",
7464
+ "list.js"
7435
7465
  ]
7436
7466
  },
7437
- "messages:update": {
7467
+ "segments:update": {
7438
7468
  "aliases": [],
7439
7469
  "args": {
7440
7470
  "id": {
7441
- "description": "Message ID",
7471
+ "description": "Segment ID",
7442
7472
  "name": "id",
7443
7473
  "required": true
7444
7474
  }
7445
7475
  },
7446
- "description": "Update a message",
7476
+ "description": "Update a segment",
7447
7477
  "flags": {
7448
7478
  "api-key": {
7449
7479
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7507,42 +7537,37 @@
7507
7537
  "multiple": false,
7508
7538
  "type": "option"
7509
7539
  },
7510
- "message": {
7511
- "description": "Message content",
7512
- "name": "message",
7540
+ "name": {
7541
+ "description": "Segment name",
7542
+ "name": "name",
7513
7543
  "hasDynamicHelp": false,
7514
7544
  "multiple": false,
7515
7545
  "type": "option"
7516
7546
  },
7517
- "scheduled-at": {
7518
- "description": "Unix timestamp for scheduled send",
7519
- "name": "scheduled-at",
7547
+ "description": {
7548
+ "description": "Segment description",
7549
+ "name": "description",
7520
7550
  "hasDynamicHelp": false,
7521
7551
  "multiple": false,
7522
7552
  "type": "option"
7523
7553
  },
7524
- "hidden": {
7525
- "description": "Hide message",
7526
- "name": "hidden",
7527
- "allowNo": true,
7528
- "type": "boolean"
7529
- },
7530
- "locked": {
7531
- "description": "Lock message",
7532
- "name": "locked",
7533
- "allowNo": true,
7534
- "type": "boolean"
7554
+ "color": {
7555
+ "description": "Segment color as HEX",
7556
+ "name": "color",
7557
+ "hasDynamicHelp": false,
7558
+ "multiple": false,
7559
+ "type": "option"
7535
7560
  },
7536
- "buttons": {
7537
- "description": "Buttons JSON array",
7538
- "name": "buttons",
7561
+ "tags": {
7562
+ "description": "Tags for filtering recipients",
7563
+ "name": "tags",
7539
7564
  "hasDynamicHelp": false,
7540
7565
  "multiple": false,
7541
7566
  "type": "option"
7542
7567
  },
7543
- "header-footer": {
7544
- "description": "Header/footer JSON object",
7545
- "name": "header-footer",
7568
+ "folder": {
7569
+ "description": "Object folder ID",
7570
+ "name": "folder",
7546
7571
  "hasDynamicHelp": false,
7547
7572
  "multiple": false,
7548
7573
  "type": "option"
@@ -7557,7 +7582,7 @@
7557
7582
  },
7558
7583
  "hasDynamicHelp": false,
7559
7584
  "hiddenAliases": [],
7560
- "id": "messages:update",
7585
+ "id": "segments:update",
7561
7586
  "pluginAlias": "@instantkom/cli",
7562
7587
  "pluginName": "@instantkom/cli",
7563
7588
  "pluginType": "core",
@@ -7567,14 +7592,14 @@
7567
7592
  "relativePath": [
7568
7593
  "dist",
7569
7594
  "commands",
7570
- "messages",
7595
+ "segments",
7571
7596
  "update.js"
7572
7597
  ]
7573
7598
  },
7574
- "segments:create": {
7599
+ "flows:create": {
7575
7600
  "aliases": [],
7576
7601
  "args": {},
7577
- "description": "Create a segment",
7602
+ "description": "Create a flow",
7578
7603
  "flags": {
7579
7604
  "api-key": {
7580
7605
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7647,7 +7672,7 @@
7647
7672
  "type": "option"
7648
7673
  },
7649
7674
  "name": {
7650
- "description": "Segment name",
7675
+ "description": "Flow name",
7651
7676
  "name": "name",
7652
7677
  "required": true,
7653
7678
  "hasDynamicHelp": false,
@@ -7655,28 +7680,21 @@
7655
7680
  "type": "option"
7656
7681
  },
7657
7682
  "description": {
7658
- "description": "Segment description",
7683
+ "description": "Flow description",
7659
7684
  "name": "description",
7660
7685
  "hasDynamicHelp": false,
7661
7686
  "multiple": false,
7662
7687
  "type": "option"
7663
7688
  },
7664
7689
  "color": {
7665
- "description": "Segment color as HEX",
7690
+ "description": "Flow color as HEX",
7666
7691
  "name": "color",
7667
7692
  "hasDynamicHelp": false,
7668
7693
  "multiple": false,
7669
7694
  "type": "option"
7670
7695
  },
7671
- "tags": {
7672
- "description": "Tags for filtering recipients",
7673
- "name": "tags",
7674
- "hasDynamicHelp": false,
7675
- "multiple": false,
7676
- "type": "option"
7677
- },
7678
7696
  "folder": {
7679
- "description": "Object folder ID",
7697
+ "description": "Folder ID",
7680
7698
  "name": "folder",
7681
7699
  "hasDynamicHelp": false,
7682
7700
  "multiple": false,
@@ -7692,7 +7710,7 @@
7692
7710
  },
7693
7711
  "hasDynamicHelp": false,
7694
7712
  "hiddenAliases": [],
7695
- "id": "segments:create",
7713
+ "id": "flows:create",
7696
7714
  "pluginAlias": "@instantkom/cli",
7697
7715
  "pluginName": "@instantkom/cli",
7698
7716
  "pluginType": "core",
@@ -7702,20 +7720,20 @@
7702
7720
  "relativePath": [
7703
7721
  "dist",
7704
7722
  "commands",
7705
- "segments",
7723
+ "flows",
7706
7724
  "create.js"
7707
7725
  ]
7708
7726
  },
7709
- "segments:delete": {
7727
+ "flows:delete": {
7710
7728
  "aliases": [],
7711
7729
  "args": {
7712
7730
  "id": {
7713
- "description": "segment ID",
7731
+ "description": "Flow ID",
7714
7732
  "name": "id",
7715
7733
  "required": true
7716
7734
  }
7717
7735
  },
7718
- "description": "Delete segment",
7736
+ "description": "Delete a flow",
7719
7737
  "flags": {
7720
7738
  "api-key": {
7721
7739
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7782,7 +7800,7 @@
7782
7800
  },
7783
7801
  "hasDynamicHelp": false,
7784
7802
  "hiddenAliases": [],
7785
- "id": "segments:delete",
7803
+ "id": "flows:delete",
7786
7804
  "pluginAlias": "@instantkom/cli",
7787
7805
  "pluginName": "@instantkom/cli",
7788
7806
  "pluginType": "core",
@@ -7792,20 +7810,20 @@
7792
7810
  "relativePath": [
7793
7811
  "dist",
7794
7812
  "commands",
7795
- "segments",
7813
+ "flows",
7796
7814
  "delete.js"
7797
7815
  ]
7798
7816
  },
7799
- "segments:get": {
7817
+ "flows:get": {
7800
7818
  "aliases": [],
7801
7819
  "args": {
7802
7820
  "id": {
7803
- "description": "segment ID",
7821
+ "description": "Flow ID",
7804
7822
  "name": "id",
7805
7823
  "required": true
7806
7824
  }
7807
7825
  },
7808
- "description": "Get segment by ID",
7826
+ "description": "Get a flow by ID",
7809
7827
  "flags": {
7810
7828
  "api-key": {
7811
7829
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7872,7 +7890,7 @@
7872
7890
  },
7873
7891
  "hasDynamicHelp": false,
7874
7892
  "hiddenAliases": [],
7875
- "id": "segments:get",
7893
+ "id": "flows:get",
7876
7894
  "pluginAlias": "@instantkom/cli",
7877
7895
  "pluginName": "@instantkom/cli",
7878
7896
  "pluginType": "core",
@@ -7882,14 +7900,14 @@
7882
7900
  "relativePath": [
7883
7901
  "dist",
7884
7902
  "commands",
7885
- "segments",
7903
+ "flows",
7886
7904
  "get.js"
7887
7905
  ]
7888
7906
  },
7889
- "segments:list": {
7907
+ "flows:list": {
7890
7908
  "aliases": [],
7891
7909
  "args": {},
7892
- "description": "List segments",
7910
+ "description": "List flows",
7893
7911
  "flags": {
7894
7912
  "api-key": {
7895
7913
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7977,34 +7995,23 @@
7977
7995
  "type": "option"
7978
7996
  },
7979
7997
  "search": {
7980
- "description": "Search by name",
7998
+ "description": "Search in flow name or description",
7981
7999
  "name": "search",
7982
8000
  "hasDynamicHelp": false,
7983
8001
  "multiple": false,
7984
8002
  "type": "option"
7985
8003
  },
7986
- "tags": {
7987
- "description": "Comma-separated tag IDs",
7988
- "name": "tags",
7989
- "hasDynamicHelp": false,
7990
- "multiple": false,
7991
- "type": "option"
7992
- },
7993
- "tag-match-mode": {
7994
- "description": "Tag match mode",
7995
- "name": "tag-match-mode",
8004
+ "folder": {
8005
+ "description": "Filter by folder ID",
8006
+ "name": "folder",
7996
8007
  "hasDynamicHelp": false,
7997
8008
  "multiple": false,
7998
- "options": [
7999
- "any",
8000
- "all"
8001
- ],
8002
8009
  "type": "option"
8003
8010
  }
8004
8011
  },
8005
8012
  "hasDynamicHelp": false,
8006
8013
  "hiddenAliases": [],
8007
- "id": "segments:list",
8014
+ "id": "flows:list",
8008
8015
  "pluginAlias": "@instantkom/cli",
8009
8016
  "pluginName": "@instantkom/cli",
8010
8017
  "pluginType": "core",
@@ -8014,20 +8021,20 @@
8014
8021
  "relativePath": [
8015
8022
  "dist",
8016
8023
  "commands",
8017
- "segments",
8024
+ "flows",
8018
8025
  "list.js"
8019
8026
  ]
8020
8027
  },
8021
- "segments:update": {
8028
+ "flows:update": {
8022
8029
  "aliases": [],
8023
8030
  "args": {
8024
8031
  "id": {
8025
- "description": "Segment ID",
8032
+ "description": "Flow ID",
8026
8033
  "name": "id",
8027
8034
  "required": true
8028
8035
  }
8029
8036
  },
8030
- "description": "Update a segment",
8037
+ "description": "Update a flow",
8031
8038
  "flags": {
8032
8039
  "api-key": {
8033
8040
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8092,35 +8099,28 @@
8092
8099
  "type": "option"
8093
8100
  },
8094
8101
  "name": {
8095
- "description": "Segment name",
8102
+ "description": "Flow name",
8096
8103
  "name": "name",
8097
8104
  "hasDynamicHelp": false,
8098
8105
  "multiple": false,
8099
8106
  "type": "option"
8100
8107
  },
8101
8108
  "description": {
8102
- "description": "Segment description",
8109
+ "description": "Flow description",
8103
8110
  "name": "description",
8104
8111
  "hasDynamicHelp": false,
8105
8112
  "multiple": false,
8106
8113
  "type": "option"
8107
8114
  },
8108
8115
  "color": {
8109
- "description": "Segment color as HEX",
8116
+ "description": "Flow color as HEX",
8110
8117
  "name": "color",
8111
8118
  "hasDynamicHelp": false,
8112
8119
  "multiple": false,
8113
8120
  "type": "option"
8114
8121
  },
8115
- "tags": {
8116
- "description": "Tags for filtering recipients",
8117
- "name": "tags",
8118
- "hasDynamicHelp": false,
8119
- "multiple": false,
8120
- "type": "option"
8121
- },
8122
8122
  "folder": {
8123
- "description": "Object folder ID",
8123
+ "description": "Folder ID",
8124
8124
  "name": "folder",
8125
8125
  "hasDynamicHelp": false,
8126
8126
  "multiple": false,
@@ -8136,7 +8136,7 @@
8136
8136
  },
8137
8137
  "hasDynamicHelp": false,
8138
8138
  "hiddenAliases": [],
8139
- "id": "segments:update",
8139
+ "id": "flows:update",
8140
8140
  "pluginAlias": "@instantkom/cli",
8141
8141
  "pluginName": "@instantkom/cli",
8142
8142
  "pluginType": "core",
@@ -8146,7 +8146,7 @@
8146
8146
  "relativePath": [
8147
8147
  "dist",
8148
8148
  "commands",
8149
- "segments",
8149
+ "flows",
8150
8150
  "update.js"
8151
8151
  ]
8152
8152
  },
@@ -17052,5 +17052,5 @@
17052
17052
  ]
17053
17053
  }
17054
17054
  },
17055
- "version": "3.190.0"
17055
+ "version": "3.191.0"
17056
17056
  }