@instantkom/cli 3.176.0 → 3.178.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,40 +1073,6 @@
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
- },
1110
1076
  "auth:login": {
1111
1077
  "aliases": [],
1112
1078
  "args": {},
@@ -1289,6 +1255,40 @@
1289
1255
  "logout.js"
1290
1256
  ]
1291
1257
  },
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": {},
@@ -5545,10 +5545,10 @@
5545
5545
  "update.js"
5546
5546
  ]
5547
5547
  },
5548
- "flows:create": {
5548
+ "exports:create": {
5549
5549
  "aliases": [],
5550
5550
  "args": {},
5551
- "description": "Create a flow",
5551
+ "description": "Create an export",
5552
5552
  "flags": {
5553
5553
  "api-key": {
5554
5554
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5560,18 +5560,10 @@
5560
5560
  "type": "option"
5561
5561
  },
5562
5562
  "format": {
5563
- "description": "Output format: text, json, yaml, or table",
5564
- "helpGroup": "GLOBAL",
5563
+ "description": "Alias for --target",
5565
5564
  "name": "format",
5566
- "default": "text",
5567
5565
  "hasDynamicHelp": false,
5568
5566
  "multiple": false,
5569
- "options": [
5570
- "text",
5571
- "json",
5572
- "yaml",
5573
- "table"
5574
- ],
5575
5567
  "type": "option"
5576
5568
  },
5577
5569
  "json": {
@@ -5612,39 +5604,59 @@
5612
5604
  "multiple": false,
5613
5605
  "type": "option"
5614
5606
  },
5615
- "channel": {
5616
- "description": "Channel ID",
5617
- "name": "channel",
5607
+ "name": {
5608
+ "description": "Export name",
5609
+ "name": "name",
5618
5610
  "required": true,
5619
5611
  "hasDynamicHelp": false,
5620
5612
  "multiple": false,
5621
5613
  "type": "option"
5622
5614
  },
5623
- "name": {
5624
- "description": "Flow name",
5625
- "name": "name",
5626
- "required": true,
5615
+ "sources": {
5616
+ "description": "Data sources to export",
5617
+ "name": "sources",
5627
5618
  "hasDynamicHelp": false,
5628
5619
  "multiple": false,
5629
5620
  "type": "option"
5630
5621
  },
5631
- "description": {
5632
- "description": "Flow description",
5633
- "name": "description",
5622
+ "type": {
5623
+ "description": "Alias for --sources",
5624
+ "name": "type",
5634
5625
  "hasDynamicHelp": false,
5635
5626
  "multiple": false,
5636
5627
  "type": "option"
5637
5628
  },
5638
- "color": {
5639
- "description": "Flow color as HEX",
5640
- "name": "color",
5629
+ "target": {
5630
+ "description": "Export target/format",
5631
+ "name": "target",
5641
5632
  "hasDynamicHelp": false,
5642
5633
  "multiple": false,
5643
5634
  "type": "option"
5644
5635
  },
5645
- "folder": {
5646
- "description": "Folder ID",
5647
- "name": "folder",
5636
+ "channels": {
5637
+ "description": "Comma-separated channel IDs",
5638
+ "name": "channels",
5639
+ "hasDynamicHelp": false,
5640
+ "multiple": false,
5641
+ "type": "option"
5642
+ },
5643
+ "fields": {
5644
+ "description": "Comma-separated fields",
5645
+ "name": "fields",
5646
+ "hasDynamicHelp": false,
5647
+ "multiple": false,
5648
+ "type": "option"
5649
+ },
5650
+ "filters": {
5651
+ "description": "Filter criteria",
5652
+ "name": "filters",
5653
+ "hasDynamicHelp": false,
5654
+ "multiple": false,
5655
+ "type": "option"
5656
+ },
5657
+ "color": {
5658
+ "description": "Export color as HEX",
5659
+ "name": "color",
5648
5660
  "hasDynamicHelp": false,
5649
5661
  "multiple": false,
5650
5662
  "type": "option"
@@ -5659,7 +5671,7 @@
5659
5671
  },
5660
5672
  "hasDynamicHelp": false,
5661
5673
  "hiddenAliases": [],
5662
- "id": "flows:create",
5674
+ "id": "exports:create",
5663
5675
  "pluginAlias": "@instantkom/cli",
5664
5676
  "pluginName": "@instantkom/cli",
5665
5677
  "pluginType": "core",
@@ -5669,20 +5681,20 @@
5669
5681
  "relativePath": [
5670
5682
  "dist",
5671
5683
  "commands",
5672
- "flows",
5684
+ "exports",
5673
5685
  "create.js"
5674
5686
  ]
5675
5687
  },
5676
- "flows:delete": {
5688
+ "exports:delete": {
5677
5689
  "aliases": [],
5678
5690
  "args": {
5679
5691
  "id": {
5680
- "description": "Flow ID",
5692
+ "description": "Export ID",
5681
5693
  "name": "id",
5682
5694
  "required": true
5683
5695
  }
5684
5696
  },
5685
- "description": "Delete a flow",
5697
+ "description": "Delete an export",
5686
5698
  "flags": {
5687
5699
  "api-key": {
5688
5700
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5749,7 +5761,7 @@
5749
5761
  },
5750
5762
  "hasDynamicHelp": false,
5751
5763
  "hiddenAliases": [],
5752
- "id": "flows:delete",
5764
+ "id": "exports:delete",
5753
5765
  "pluginAlias": "@instantkom/cli",
5754
5766
  "pluginName": "@instantkom/cli",
5755
5767
  "pluginType": "core",
@@ -5759,20 +5771,20 @@
5759
5771
  "relativePath": [
5760
5772
  "dist",
5761
5773
  "commands",
5762
- "flows",
5774
+ "exports",
5763
5775
  "delete.js"
5764
5776
  ]
5765
5777
  },
5766
- "flows:get": {
5778
+ "exports:download": {
5767
5779
  "aliases": [],
5768
5780
  "args": {
5769
5781
  "id": {
5770
- "description": "Flow ID",
5782
+ "description": "Export ID",
5771
5783
  "name": "id",
5772
5784
  "required": true
5773
5785
  }
5774
5786
  },
5775
- "description": "Get a flow by ID",
5787
+ "description": "Download an export file",
5776
5788
  "flags": {
5777
5789
  "api-key": {
5778
5790
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5835,11 +5847,18 @@
5835
5847
  "hasDynamicHelp": false,
5836
5848
  "multiple": false,
5837
5849
  "type": "option"
5850
+ },
5851
+ "file": {
5852
+ "description": "Output file path",
5853
+ "name": "file",
5854
+ "hasDynamicHelp": false,
5855
+ "multiple": false,
5856
+ "type": "option"
5838
5857
  }
5839
5858
  },
5840
5859
  "hasDynamicHelp": false,
5841
5860
  "hiddenAliases": [],
5842
- "id": "flows:get",
5861
+ "id": "exports:download",
5843
5862
  "pluginAlias": "@instantkom/cli",
5844
5863
  "pluginName": "@instantkom/cli",
5845
5864
  "pluginType": "core",
@@ -5849,14 +5868,20 @@
5849
5868
  "relativePath": [
5850
5869
  "dist",
5851
5870
  "commands",
5852
- "flows",
5853
- "get.js"
5871
+ "exports",
5872
+ "download.js"
5854
5873
  ]
5855
5874
  },
5856
- "flows:list": {
5875
+ "exports:get": {
5857
5876
  "aliases": [],
5858
- "args": {},
5859
- "description": "List flows",
5877
+ "args": {
5878
+ "id": {
5879
+ "description": "Export ID",
5880
+ "name": "id",
5881
+ "required": true
5882
+ }
5883
+ },
5884
+ "description": "Get an export by ID",
5860
5885
  "flags": {
5861
5886
  "api-key": {
5862
5887
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -5919,48 +5944,11 @@
5919
5944
  "hasDynamicHelp": false,
5920
5945
  "multiple": false,
5921
5946
  "type": "option"
5922
- },
5923
- "page": {
5924
- "description": "Page number",
5925
- "name": "page",
5926
- "default": 1,
5927
- "hasDynamicHelp": false,
5928
- "multiple": false,
5929
- "type": "option"
5930
- },
5931
- "limit": {
5932
- "description": "Items per page",
5933
- "name": "limit",
5934
- "default": 20,
5935
- "hasDynamicHelp": false,
5936
- "multiple": false,
5937
- "type": "option"
5938
- },
5939
- "channel": {
5940
- "description": "Filter by channel ID",
5941
- "name": "channel",
5942
- "hasDynamicHelp": false,
5943
- "multiple": false,
5944
- "type": "option"
5945
- },
5946
- "search": {
5947
- "description": "Search in flow name or description",
5948
- "name": "search",
5949
- "hasDynamicHelp": false,
5950
- "multiple": false,
5951
- "type": "option"
5952
- },
5953
- "folder": {
5954
- "description": "Filter by folder ID",
5955
- "name": "folder",
5956
- "hasDynamicHelp": false,
5957
- "multiple": false,
5958
- "type": "option"
5959
5947
  }
5960
5948
  },
5961
5949
  "hasDynamicHelp": false,
5962
5950
  "hiddenAliases": [],
5963
- "id": "flows:list",
5951
+ "id": "exports:get",
5964
5952
  "pluginAlias": "@instantkom/cli",
5965
5953
  "pluginName": "@instantkom/cli",
5966
5954
  "pluginType": "core",
@@ -5970,20 +5958,14 @@
5970
5958
  "relativePath": [
5971
5959
  "dist",
5972
5960
  "commands",
5973
- "flows",
5974
- "list.js"
5961
+ "exports",
5962
+ "get.js"
5975
5963
  ]
5976
5964
  },
5977
- "flows:update": {
5965
+ "exports:list": {
5978
5966
  "aliases": [],
5979
- "args": {
5980
- "id": {
5981
- "description": "Flow ID",
5982
- "name": "id",
5983
- "required": true
5984
- }
5985
- },
5986
- "description": "Update a flow",
5967
+ "args": {},
5968
+ "description": "List exports",
5987
5969
  "flags": {
5988
5970
  "api-key": {
5989
5971
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6047,37 +6029,32 @@
6047
6029
  "multiple": false,
6048
6030
  "type": "option"
6049
6031
  },
6050
- "name": {
6051
- "description": "Flow name",
6052
- "name": "name",
6032
+ "page": {
6033
+ "description": "Page number",
6034
+ "name": "page",
6035
+ "default": 1,
6053
6036
  "hasDynamicHelp": false,
6054
6037
  "multiple": false,
6055
6038
  "type": "option"
6056
6039
  },
6057
- "description": {
6058
- "description": "Flow description",
6059
- "name": "description",
6040
+ "limit": {
6041
+ "description": "Items per page",
6042
+ "name": "limit",
6043
+ "default": 50,
6060
6044
  "hasDynamicHelp": false,
6061
6045
  "multiple": false,
6062
6046
  "type": "option"
6063
6047
  },
6064
- "color": {
6065
- "description": "Flow color as HEX",
6066
- "name": "color",
6048
+ "source": {
6049
+ "description": "Filter by data source",
6050
+ "name": "source",
6067
6051
  "hasDynamicHelp": false,
6068
6052
  "multiple": false,
6069
6053
  "type": "option"
6070
6054
  },
6071
- "folder": {
6072
- "description": "Folder ID",
6073
- "name": "folder",
6074
- "hasDynamicHelp": false,
6075
- "multiple": false,
6076
- "type": "option"
6077
- },
6078
- "data": {
6079
- "description": "Additional JSON object payload",
6080
- "name": "data",
6055
+ "target": {
6056
+ "description": "Filter by export target/format",
6057
+ "name": "target",
6081
6058
  "hasDynamicHelp": false,
6082
6059
  "multiple": false,
6083
6060
  "type": "option"
@@ -6085,7 +6062,7 @@
6085
6062
  },
6086
6063
  "hasDynamicHelp": false,
6087
6064
  "hiddenAliases": [],
6088
- "id": "flows:update",
6065
+ "id": "exports:list",
6089
6066
  "pluginAlias": "@instantkom/cli",
6090
6067
  "pluginName": "@instantkom/cli",
6091
6068
  "pluginType": "core",
@@ -6095,14 +6072,14 @@
6095
6072
  "relativePath": [
6096
6073
  "dist",
6097
6074
  "commands",
6098
- "flows",
6099
- "update.js"
6075
+ "exports",
6076
+ "list.js"
6100
6077
  ]
6101
6078
  },
6102
- "messages:bulk-spam": {
6079
+ "flows:create": {
6103
6080
  "aliases": [],
6104
6081
  "args": {},
6105
- "description": "Mark or unmark multiple messages as spam",
6082
+ "description": "Create a flow",
6106
6083
  "flags": {
6107
6084
  "api-key": {
6108
6085
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6166,120 +6143,39 @@
6166
6143
  "multiple": false,
6167
6144
  "type": "option"
6168
6145
  },
6169
- "ids": {
6170
- "description": "Comma-separated message IDs",
6171
- "name": "ids",
6146
+ "channel": {
6147
+ "description": "Channel ID",
6148
+ "name": "channel",
6172
6149
  "required": true,
6173
6150
  "hasDynamicHelp": false,
6174
6151
  "multiple": false,
6175
6152
  "type": "option"
6176
6153
  },
6177
- "spam": {
6178
- "description": "Mark messages as spam",
6179
- "name": "spam",
6180
- "allowNo": true,
6181
- "type": "boolean"
6182
- }
6183
- },
6184
- "hasDynamicHelp": false,
6185
- "hiddenAliases": [],
6186
- "id": "messages:bulk-spam",
6187
- "pluginAlias": "@instantkom/cli",
6188
- "pluginName": "@instantkom/cli",
6189
- "pluginType": "core",
6190
- "strict": true,
6191
- "enableJsonFlag": false,
6192
- "isESM": true,
6193
- "relativePath": [
6194
- "dist",
6195
- "commands",
6196
- "messages",
6197
- "bulk-spam.js"
6198
- ]
6199
- },
6200
- "messages:create-ticket": {
6201
- "aliases": [],
6202
- "args": {
6203
- "id": {
6204
- "description": "Message ID",
6205
- "name": "id",
6206
- "required": true
6207
- }
6208
- },
6209
- "description": "Create a ticket from a message",
6210
- "flags": {
6211
- "api-key": {
6212
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
6213
- "env": "IKM_API_KEY",
6214
- "helpGroup": "GLOBAL",
6215
- "name": "api-key",
6216
- "hasDynamicHelp": false,
6217
- "multiple": false,
6218
- "type": "option"
6219
- },
6220
- "format": {
6221
- "description": "Output format: text, json, yaml, or table",
6222
- "helpGroup": "GLOBAL",
6223
- "name": "format",
6224
- "default": "text",
6225
- "hasDynamicHelp": false,
6226
- "multiple": false,
6227
- "options": [
6228
- "text",
6229
- "json",
6230
- "yaml",
6231
- "table"
6232
- ],
6233
- "type": "option"
6234
- },
6235
- "json": {
6236
- "description": "Output in JSON format (alias for --format=json)",
6237
- "helpGroup": "GLOBAL",
6238
- "name": "json",
6239
- "allowNo": false,
6240
- "type": "boolean"
6241
- },
6242
- "quiet": {
6243
- "description": "Suppress all output except errors",
6244
- "helpGroup": "GLOBAL",
6245
- "name": "quiet",
6246
- "allowNo": false,
6247
- "type": "boolean"
6248
- },
6249
- "no-color": {
6250
- "description": "Disable color output",
6251
- "helpGroup": "GLOBAL",
6252
- "name": "no-color",
6253
- "allowNo": false,
6254
- "type": "boolean"
6255
- },
6256
- "profile": {
6257
- "description": "Named configuration profile to use",
6258
- "helpGroup": "GLOBAL",
6259
- "name": "profile",
6260
- "default": "default",
6154
+ "name": {
6155
+ "description": "Flow name",
6156
+ "name": "name",
6157
+ "required": true,
6261
6158
  "hasDynamicHelp": false,
6262
6159
  "multiple": false,
6263
6160
  "type": "option"
6264
6161
  },
6265
- "api-url": {
6266
- "description": "Override the API base URL (e.g. for staging)",
6267
- "helpGroup": "GLOBAL",
6268
- "name": "api-url",
6162
+ "description": {
6163
+ "description": "Flow description",
6164
+ "name": "description",
6269
6165
  "hasDynamicHelp": false,
6270
6166
  "multiple": false,
6271
6167
  "type": "option"
6272
6168
  },
6273
- "subject": {
6274
- "description": "Ticket subject",
6275
- "name": "subject",
6169
+ "color": {
6170
+ "description": "Flow color as HEX",
6171
+ "name": "color",
6276
6172
  "hasDynamicHelp": false,
6277
6173
  "multiple": false,
6278
6174
  "type": "option"
6279
6175
  },
6280
- "priority": {
6281
- "description": "Ticket priority",
6282
- "name": "priority",
6176
+ "folder": {
6177
+ "description": "Folder ID",
6178
+ "name": "folder",
6283
6179
  "hasDynamicHelp": false,
6284
6180
  "multiple": false,
6285
6181
  "type": "option"
@@ -6294,7 +6190,7 @@
6294
6190
  },
6295
6191
  "hasDynamicHelp": false,
6296
6192
  "hiddenAliases": [],
6297
- "id": "messages:create-ticket",
6193
+ "id": "flows:create",
6298
6194
  "pluginAlias": "@instantkom/cli",
6299
6195
  "pluginName": "@instantkom/cli",
6300
6196
  "pluginType": "core",
@@ -6304,20 +6200,20 @@
6304
6200
  "relativePath": [
6305
6201
  "dist",
6306
6202
  "commands",
6307
- "messages",
6308
- "create-ticket.js"
6203
+ "flows",
6204
+ "create.js"
6309
6205
  ]
6310
6206
  },
6311
- "messages:delete": {
6207
+ "flows:delete": {
6312
6208
  "aliases": [],
6313
6209
  "args": {
6314
6210
  "id": {
6315
- "description": "message ID",
6211
+ "description": "Flow ID",
6316
6212
  "name": "id",
6317
6213
  "required": true
6318
6214
  }
6319
6215
  },
6320
- "description": "Delete message",
6216
+ "description": "Delete a flow",
6321
6217
  "flags": {
6322
6218
  "api-key": {
6323
6219
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6384,7 +6280,7 @@
6384
6280
  },
6385
6281
  "hasDynamicHelp": false,
6386
6282
  "hiddenAliases": [],
6387
- "id": "messages:delete",
6283
+ "id": "flows:delete",
6388
6284
  "pluginAlias": "@instantkom/cli",
6389
6285
  "pluginName": "@instantkom/cli",
6390
6286
  "pluginType": "core",
@@ -6394,20 +6290,20 @@
6394
6290
  "relativePath": [
6395
6291
  "dist",
6396
6292
  "commands",
6397
- "messages",
6293
+ "flows",
6398
6294
  "delete.js"
6399
6295
  ]
6400
6296
  },
6401
- "messages:get": {
6297
+ "flows:get": {
6402
6298
  "aliases": [],
6403
6299
  "args": {
6404
6300
  "id": {
6405
- "description": "message ID",
6301
+ "description": "Flow ID",
6406
6302
  "name": "id",
6407
6303
  "required": true
6408
6304
  }
6409
6305
  },
6410
- "description": "Get message by ID",
6306
+ "description": "Get a flow by ID",
6411
6307
  "flags": {
6412
6308
  "api-key": {
6413
6309
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6474,7 +6370,7 @@
6474
6370
  },
6475
6371
  "hasDynamicHelp": false,
6476
6372
  "hiddenAliases": [],
6477
- "id": "messages:get",
6373
+ "id": "flows:get",
6478
6374
  "pluginAlias": "@instantkom/cli",
6479
6375
  "pluginName": "@instantkom/cli",
6480
6376
  "pluginType": "core",
@@ -6484,14 +6380,14 @@
6484
6380
  "relativePath": [
6485
6381
  "dist",
6486
6382
  "commands",
6487
- "messages",
6383
+ "flows",
6488
6384
  "get.js"
6489
6385
  ]
6490
6386
  },
6491
- "messages:list": {
6387
+ "flows:list": {
6492
6388
  "aliases": [],
6493
6389
  "args": {},
6494
- "description": "List messages",
6390
+ "description": "List flows",
6495
6391
  "flags": {
6496
6392
  "api-key": {
6497
6393
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6578,48 +6474,24 @@
6578
6474
  "multiple": false,
6579
6475
  "type": "option"
6580
6476
  },
6581
- "recipient": {
6582
- "description": "Filter by recipient ID",
6583
- "name": "recipient",
6584
- "hasDynamicHelp": false,
6585
- "multiple": false,
6586
- "type": "option"
6587
- },
6588
- "direction": {
6589
- "description": "Direction",
6590
- "name": "direction",
6591
- "hasDynamicHelp": false,
6592
- "multiple": false,
6593
- "options": [
6594
- "s",
6595
- "r"
6596
- ],
6597
- "type": "option"
6598
- },
6599
- "type": {
6600
- "description": "Message type",
6601
- "name": "type",
6477
+ "search": {
6478
+ "description": "Search in flow name or description",
6479
+ "name": "search",
6602
6480
  "hasDynamicHelp": false,
6603
6481
  "multiple": false,
6604
6482
  "type": "option"
6605
6483
  },
6606
- "search": {
6607
- "description": "Search messages",
6608
- "name": "search",
6484
+ "folder": {
6485
+ "description": "Filter by folder ID",
6486
+ "name": "folder",
6609
6487
  "hasDynamicHelp": false,
6610
6488
  "multiple": false,
6611
6489
  "type": "option"
6612
- },
6613
- "spam": {
6614
- "description": "Filter spam messages",
6615
- "name": "spam",
6616
- "allowNo": false,
6617
- "type": "boolean"
6618
6490
  }
6619
6491
  },
6620
6492
  "hasDynamicHelp": false,
6621
6493
  "hiddenAliases": [],
6622
- "id": "messages:list",
6494
+ "id": "flows:list",
6623
6495
  "pluginAlias": "@instantkom/cli",
6624
6496
  "pluginName": "@instantkom/cli",
6625
6497
  "pluginType": "core",
@@ -6629,20 +6501,20 @@
6629
6501
  "relativePath": [
6630
6502
  "dist",
6631
6503
  "commands",
6632
- "messages",
6504
+ "flows",
6633
6505
  "list.js"
6634
6506
  ]
6635
6507
  },
6636
- "messages:reactions": {
6508
+ "flows:update": {
6637
6509
  "aliases": [],
6638
6510
  "args": {
6639
6511
  "id": {
6640
- "description": "Message ID",
6512
+ "description": "Flow ID",
6641
6513
  "name": "id",
6642
6514
  "required": true
6643
6515
  }
6644
6516
  },
6645
- "description": "Get reactions to a message",
6517
+ "description": "Update a flow",
6646
6518
  "flags": {
6647
6519
  "api-key": {
6648
6520
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6705,11 +6577,46 @@
6705
6577
  "hasDynamicHelp": false,
6706
6578
  "multiple": false,
6707
6579
  "type": "option"
6580
+ },
6581
+ "name": {
6582
+ "description": "Flow name",
6583
+ "name": "name",
6584
+ "hasDynamicHelp": false,
6585
+ "multiple": false,
6586
+ "type": "option"
6587
+ },
6588
+ "description": {
6589
+ "description": "Flow description",
6590
+ "name": "description",
6591
+ "hasDynamicHelp": false,
6592
+ "multiple": false,
6593
+ "type": "option"
6594
+ },
6595
+ "color": {
6596
+ "description": "Flow color as HEX",
6597
+ "name": "color",
6598
+ "hasDynamicHelp": false,
6599
+ "multiple": false,
6600
+ "type": "option"
6601
+ },
6602
+ "folder": {
6603
+ "description": "Folder ID",
6604
+ "name": "folder",
6605
+ "hasDynamicHelp": false,
6606
+ "multiple": false,
6607
+ "type": "option"
6608
+ },
6609
+ "data": {
6610
+ "description": "Additional JSON object payload",
6611
+ "name": "data",
6612
+ "hasDynamicHelp": false,
6613
+ "multiple": false,
6614
+ "type": "option"
6708
6615
  }
6709
6616
  },
6710
6617
  "hasDynamicHelp": false,
6711
6618
  "hiddenAliases": [],
6712
- "id": "messages:reactions",
6619
+ "id": "flows:update",
6713
6620
  "pluginAlias": "@instantkom/cli",
6714
6621
  "pluginName": "@instantkom/cli",
6715
6622
  "pluginType": "core",
@@ -6719,20 +6626,14 @@
6719
6626
  "relativePath": [
6720
6627
  "dist",
6721
6628
  "commands",
6722
- "messages",
6723
- "reactions.js"
6629
+ "flows",
6630
+ "update.js"
6724
6631
  ]
6725
6632
  },
6726
- "messages:spam": {
6633
+ "messages:bulk-spam": {
6727
6634
  "aliases": [],
6728
- "args": {
6729
- "id": {
6730
- "description": "Message ID",
6731
- "name": "id",
6732
- "required": true
6733
- }
6734
- },
6735
- "description": "Mark or unmark a message as spam",
6635
+ "args": {},
6636
+ "description": "Mark or unmark multiple messages as spam",
6736
6637
  "flags": {
6737
6638
  "api-key": {
6738
6639
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6796,8 +6697,16 @@
6796
6697
  "multiple": false,
6797
6698
  "type": "option"
6798
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
+ },
6799
6708
  "spam": {
6800
- "description": "Mark as spam",
6709
+ "description": "Mark messages as spam",
6801
6710
  "name": "spam",
6802
6711
  "allowNo": true,
6803
6712
  "type": "boolean"
@@ -6805,7 +6714,7 @@
6805
6714
  },
6806
6715
  "hasDynamicHelp": false,
6807
6716
  "hiddenAliases": [],
6808
- "id": "messages:spam",
6717
+ "id": "messages:bulk-spam",
6809
6718
  "pluginAlias": "@instantkom/cli",
6810
6719
  "pluginName": "@instantkom/cli",
6811
6720
  "pluginType": "core",
@@ -6816,13 +6725,19 @@
6816
6725
  "dist",
6817
6726
  "commands",
6818
6727
  "messages",
6819
- "spam.js"
6728
+ "bulk-spam.js"
6820
6729
  ]
6821
6730
  },
6822
- "messages:unread-count": {
6731
+ "messages:create-ticket": {
6823
6732
  "aliases": [],
6824
- "args": {},
6825
- "description": "Get unread inbox message count",
6733
+ "args": {
6734
+ "id": {
6735
+ "description": "Message ID",
6736
+ "name": "id",
6737
+ "required": true
6738
+ }
6739
+ },
6740
+ "description": "Create a ticket from a message",
6826
6741
  "flags": {
6827
6742
  "api-key": {
6828
6743
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6885,11 +6800,32 @@
6885
6800
  "hasDynamicHelp": false,
6886
6801
  "multiple": false,
6887
6802
  "type": "option"
6803
+ },
6804
+ "subject": {
6805
+ "description": "Ticket subject",
6806
+ "name": "subject",
6807
+ "hasDynamicHelp": false,
6808
+ "multiple": false,
6809
+ "type": "option"
6810
+ },
6811
+ "priority": {
6812
+ "description": "Ticket priority",
6813
+ "name": "priority",
6814
+ "hasDynamicHelp": false,
6815
+ "multiple": false,
6816
+ "type": "option"
6817
+ },
6818
+ "data": {
6819
+ "description": "Additional JSON object payload",
6820
+ "name": "data",
6821
+ "hasDynamicHelp": false,
6822
+ "multiple": false,
6823
+ "type": "option"
6888
6824
  }
6889
6825
  },
6890
6826
  "hasDynamicHelp": false,
6891
6827
  "hiddenAliases": [],
6892
- "id": "messages:unread-count",
6828
+ "id": "messages:create-ticket",
6893
6829
  "pluginAlias": "@instantkom/cli",
6894
6830
  "pluginName": "@instantkom/cli",
6895
6831
  "pluginType": "core",
@@ -6900,19 +6836,19 @@
6900
6836
  "dist",
6901
6837
  "commands",
6902
6838
  "messages",
6903
- "unread-count.js"
6839
+ "create-ticket.js"
6904
6840
  ]
6905
6841
  },
6906
- "messages:update": {
6842
+ "messages:delete": {
6907
6843
  "aliases": [],
6908
6844
  "args": {
6909
6845
  "id": {
6910
- "description": "Message ID",
6846
+ "description": "message ID",
6911
6847
  "name": "id",
6912
6848
  "required": true
6913
6849
  }
6914
6850
  },
6915
- "description": "Update a message",
6851
+ "description": "Delete message",
6916
6852
  "flags": {
6917
6853
  "api-key": {
6918
6854
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -6975,50 +6911,93 @@
6975
6911
  "hasDynamicHelp": false,
6976
6912
  "multiple": false,
6977
6913
  "type": "option"
6978
- },
6979
- "message": {
6980
- "description": "Message content",
6981
- "name": "message",
6914
+ }
6915
+ },
6916
+ "hasDynamicHelp": false,
6917
+ "hiddenAliases": [],
6918
+ "id": "messages:delete",
6919
+ "pluginAlias": "@instantkom/cli",
6920
+ "pluginName": "@instantkom/cli",
6921
+ "pluginType": "core",
6922
+ "strict": true,
6923
+ "enableJsonFlag": false,
6924
+ "isESM": true,
6925
+ "relativePath": [
6926
+ "dist",
6927
+ "commands",
6928
+ "messages",
6929
+ "delete.js"
6930
+ ]
6931
+ },
6932
+ "messages:get": {
6933
+ "aliases": [],
6934
+ "args": {
6935
+ "id": {
6936
+ "description": "message ID",
6937
+ "name": "id",
6938
+ "required": true
6939
+ }
6940
+ },
6941
+ "description": "Get message by ID",
6942
+ "flags": {
6943
+ "api-key": {
6944
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
6945
+ "env": "IKM_API_KEY",
6946
+ "helpGroup": "GLOBAL",
6947
+ "name": "api-key",
6982
6948
  "hasDynamicHelp": false,
6983
6949
  "multiple": false,
6984
6950
  "type": "option"
6985
6951
  },
6986
- "scheduled-at": {
6987
- "description": "Unix timestamp for scheduled send",
6988
- "name": "scheduled-at",
6952
+ "format": {
6953
+ "description": "Output format: text, json, yaml, or table",
6954
+ "helpGroup": "GLOBAL",
6955
+ "name": "format",
6956
+ "default": "text",
6989
6957
  "hasDynamicHelp": false,
6990
6958
  "multiple": false,
6959
+ "options": [
6960
+ "text",
6961
+ "json",
6962
+ "yaml",
6963
+ "table"
6964
+ ],
6991
6965
  "type": "option"
6992
6966
  },
6993
- "hidden": {
6994
- "description": "Hide message",
6995
- "name": "hidden",
6996
- "allowNo": true,
6967
+ "json": {
6968
+ "description": "Output in JSON format (alias for --format=json)",
6969
+ "helpGroup": "GLOBAL",
6970
+ "name": "json",
6971
+ "allowNo": false,
6997
6972
  "type": "boolean"
6998
6973
  },
6999
- "locked": {
7000
- "description": "Lock message",
7001
- "name": "locked",
7002
- "allowNo": true,
6974
+ "quiet": {
6975
+ "description": "Suppress all output except errors",
6976
+ "helpGroup": "GLOBAL",
6977
+ "name": "quiet",
6978
+ "allowNo": false,
7003
6979
  "type": "boolean"
7004
6980
  },
7005
- "buttons": {
7006
- "description": "Buttons JSON array",
7007
- "name": "buttons",
7008
- "hasDynamicHelp": false,
7009
- "multiple": false,
7010
- "type": "option"
6981
+ "no-color": {
6982
+ "description": "Disable color output",
6983
+ "helpGroup": "GLOBAL",
6984
+ "name": "no-color",
6985
+ "allowNo": false,
6986
+ "type": "boolean"
7011
6987
  },
7012
- "header-footer": {
7013
- "description": "Header/footer JSON object",
7014
- "name": "header-footer",
6988
+ "profile": {
6989
+ "description": "Named configuration profile to use",
6990
+ "helpGroup": "GLOBAL",
6991
+ "name": "profile",
6992
+ "default": "default",
7015
6993
  "hasDynamicHelp": false,
7016
6994
  "multiple": false,
7017
6995
  "type": "option"
7018
6996
  },
7019
- "data": {
7020
- "description": "Additional JSON object payload",
7021
- "name": "data",
6997
+ "api-url": {
6998
+ "description": "Override the API base URL (e.g. for staging)",
6999
+ "helpGroup": "GLOBAL",
7000
+ "name": "api-url",
7022
7001
  "hasDynamicHelp": false,
7023
7002
  "multiple": false,
7024
7003
  "type": "option"
@@ -7026,7 +7005,7 @@
7026
7005
  },
7027
7006
  "hasDynamicHelp": false,
7028
7007
  "hiddenAliases": [],
7029
- "id": "messages:update",
7008
+ "id": "messages:get",
7030
7009
  "pluginAlias": "@instantkom/cli",
7031
7010
  "pluginName": "@instantkom/cli",
7032
7011
  "pluginType": "core",
@@ -7037,13 +7016,13 @@
7037
7016
  "dist",
7038
7017
  "commands",
7039
7018
  "messages",
7040
- "update.js"
7019
+ "get.js"
7041
7020
  ]
7042
7021
  },
7043
- "exports:create": {
7022
+ "messages:list": {
7044
7023
  "aliases": [],
7045
7024
  "args": {},
7046
- "description": "Create an export",
7025
+ "description": "List messages",
7047
7026
  "flags": {
7048
7027
  "api-key": {
7049
7028
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7055,10 +7034,18 @@
7055
7034
  "type": "option"
7056
7035
  },
7057
7036
  "format": {
7058
- "description": "Alias for --target",
7037
+ "description": "Output format: text, json, yaml, or table",
7038
+ "helpGroup": "GLOBAL",
7059
7039
  "name": "format",
7040
+ "default": "text",
7060
7041
  "hasDynamicHelp": false,
7061
7042
  "multiple": false,
7043
+ "options": [
7044
+ "text",
7045
+ "json",
7046
+ "yaml",
7047
+ "table"
7048
+ ],
7062
7049
  "type": "option"
7063
7050
  },
7064
7051
  "json": {
@@ -7099,74 +7086,71 @@
7099
7086
  "multiple": false,
7100
7087
  "type": "option"
7101
7088
  },
7102
- "name": {
7103
- "description": "Export name",
7104
- "name": "name",
7105
- "required": true,
7106
- "hasDynamicHelp": false,
7107
- "multiple": false,
7108
- "type": "option"
7109
- },
7110
- "sources": {
7111
- "description": "Data sources to export",
7112
- "name": "sources",
7089
+ "page": {
7090
+ "description": "Page number",
7091
+ "name": "page",
7092
+ "default": 1,
7113
7093
  "hasDynamicHelp": false,
7114
7094
  "multiple": false,
7115
7095
  "type": "option"
7116
7096
  },
7117
- "type": {
7118
- "description": "Alias for --sources",
7119
- "name": "type",
7097
+ "limit": {
7098
+ "description": "Items per page",
7099
+ "name": "limit",
7100
+ "default": 20,
7120
7101
  "hasDynamicHelp": false,
7121
7102
  "multiple": false,
7122
7103
  "type": "option"
7123
7104
  },
7124
- "target": {
7125
- "description": "Export target/format",
7126
- "name": "target",
7105
+ "channel": {
7106
+ "description": "Filter by channel ID",
7107
+ "name": "channel",
7127
7108
  "hasDynamicHelp": false,
7128
7109
  "multiple": false,
7129
7110
  "type": "option"
7130
7111
  },
7131
- "channels": {
7132
- "description": "Comma-separated channel IDs",
7133
- "name": "channels",
7112
+ "recipient": {
7113
+ "description": "Filter by recipient ID",
7114
+ "name": "recipient",
7134
7115
  "hasDynamicHelp": false,
7135
7116
  "multiple": false,
7136
7117
  "type": "option"
7137
7118
  },
7138
- "fields": {
7139
- "description": "Comma-separated fields",
7140
- "name": "fields",
7119
+ "direction": {
7120
+ "description": "Direction",
7121
+ "name": "direction",
7141
7122
  "hasDynamicHelp": false,
7142
7123
  "multiple": false,
7124
+ "options": [
7125
+ "s",
7126
+ "r"
7127
+ ],
7143
7128
  "type": "option"
7144
7129
  },
7145
- "filters": {
7146
- "description": "Filter criteria",
7147
- "name": "filters",
7130
+ "type": {
7131
+ "description": "Message type",
7132
+ "name": "type",
7148
7133
  "hasDynamicHelp": false,
7149
7134
  "multiple": false,
7150
7135
  "type": "option"
7151
7136
  },
7152
- "color": {
7153
- "description": "Export color as HEX",
7154
- "name": "color",
7137
+ "search": {
7138
+ "description": "Search messages",
7139
+ "name": "search",
7155
7140
  "hasDynamicHelp": false,
7156
7141
  "multiple": false,
7157
7142
  "type": "option"
7158
7143
  },
7159
- "data": {
7160
- "description": "Additional JSON object payload",
7161
- "name": "data",
7162
- "hasDynamicHelp": false,
7163
- "multiple": false,
7164
- "type": "option"
7144
+ "spam": {
7145
+ "description": "Filter spam messages",
7146
+ "name": "spam",
7147
+ "allowNo": false,
7148
+ "type": "boolean"
7165
7149
  }
7166
7150
  },
7167
7151
  "hasDynamicHelp": false,
7168
7152
  "hiddenAliases": [],
7169
- "id": "exports:create",
7153
+ "id": "messages:list",
7170
7154
  "pluginAlias": "@instantkom/cli",
7171
7155
  "pluginName": "@instantkom/cli",
7172
7156
  "pluginType": "core",
@@ -7176,20 +7160,20 @@
7176
7160
  "relativePath": [
7177
7161
  "dist",
7178
7162
  "commands",
7179
- "exports",
7180
- "create.js"
7163
+ "messages",
7164
+ "list.js"
7181
7165
  ]
7182
7166
  },
7183
- "exports:delete": {
7167
+ "messages:reactions": {
7184
7168
  "aliases": [],
7185
7169
  "args": {
7186
7170
  "id": {
7187
- "description": "Export ID",
7171
+ "description": "Message ID",
7188
7172
  "name": "id",
7189
7173
  "required": true
7190
7174
  }
7191
7175
  },
7192
- "description": "Delete an export",
7176
+ "description": "Get reactions to a message",
7193
7177
  "flags": {
7194
7178
  "api-key": {
7195
7179
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7256,7 +7240,7 @@
7256
7240
  },
7257
7241
  "hasDynamicHelp": false,
7258
7242
  "hiddenAliases": [],
7259
- "id": "exports:delete",
7243
+ "id": "messages:reactions",
7260
7244
  "pluginAlias": "@instantkom/cli",
7261
7245
  "pluginName": "@instantkom/cli",
7262
7246
  "pluginType": "core",
@@ -7266,20 +7250,20 @@
7266
7250
  "relativePath": [
7267
7251
  "dist",
7268
7252
  "commands",
7269
- "exports",
7270
- "delete.js"
7253
+ "messages",
7254
+ "reactions.js"
7271
7255
  ]
7272
7256
  },
7273
- "exports:download": {
7257
+ "messages:spam": {
7274
7258
  "aliases": [],
7275
7259
  "args": {
7276
7260
  "id": {
7277
- "description": "Export ID",
7261
+ "description": "Message ID",
7278
7262
  "name": "id",
7279
7263
  "required": true
7280
7264
  }
7281
7265
  },
7282
- "description": "Download an export file",
7266
+ "description": "Mark or unmark a message as spam",
7283
7267
  "flags": {
7284
7268
  "api-key": {
7285
7269
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7343,17 +7327,16 @@
7343
7327
  "multiple": false,
7344
7328
  "type": "option"
7345
7329
  },
7346
- "file": {
7347
- "description": "Output file path",
7348
- "name": "file",
7349
- "hasDynamicHelp": false,
7350
- "multiple": false,
7351
- "type": "option"
7330
+ "spam": {
7331
+ "description": "Mark as spam",
7332
+ "name": "spam",
7333
+ "allowNo": true,
7334
+ "type": "boolean"
7352
7335
  }
7353
7336
  },
7354
7337
  "hasDynamicHelp": false,
7355
7338
  "hiddenAliases": [],
7356
- "id": "exports:download",
7339
+ "id": "messages:spam",
7357
7340
  "pluginAlias": "@instantkom/cli",
7358
7341
  "pluginName": "@instantkom/cli",
7359
7342
  "pluginType": "core",
@@ -7363,20 +7346,14 @@
7363
7346
  "relativePath": [
7364
7347
  "dist",
7365
7348
  "commands",
7366
- "exports",
7367
- "download.js"
7349
+ "messages",
7350
+ "spam.js"
7368
7351
  ]
7369
7352
  },
7370
- "exports:get": {
7353
+ "messages:unread-count": {
7371
7354
  "aliases": [],
7372
- "args": {
7373
- "id": {
7374
- "description": "Export ID",
7375
- "name": "id",
7376
- "required": true
7377
- }
7378
- },
7379
- "description": "Get an export by ID",
7355
+ "args": {},
7356
+ "description": "Get unread inbox message count",
7380
7357
  "flags": {
7381
7358
  "api-key": {
7382
7359
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7443,7 +7420,7 @@
7443
7420
  },
7444
7421
  "hasDynamicHelp": false,
7445
7422
  "hiddenAliases": [],
7446
- "id": "exports:get",
7423
+ "id": "messages:unread-count",
7447
7424
  "pluginAlias": "@instantkom/cli",
7448
7425
  "pluginName": "@instantkom/cli",
7449
7426
  "pluginType": "core",
@@ -7453,14 +7430,20 @@
7453
7430
  "relativePath": [
7454
7431
  "dist",
7455
7432
  "commands",
7456
- "exports",
7457
- "get.js"
7433
+ "messages",
7434
+ "unread-count.js"
7458
7435
  ]
7459
7436
  },
7460
- "exports:list": {
7437
+ "messages:update": {
7461
7438
  "aliases": [],
7462
- "args": {},
7463
- "description": "List exports",
7439
+ "args": {
7440
+ "id": {
7441
+ "description": "Message ID",
7442
+ "name": "id",
7443
+ "required": true
7444
+ }
7445
+ },
7446
+ "description": "Update a message",
7464
7447
  "flags": {
7465
7448
  "api-key": {
7466
7449
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -7524,32 +7507,49 @@
7524
7507
  "multiple": false,
7525
7508
  "type": "option"
7526
7509
  },
7527
- "page": {
7528
- "description": "Page number",
7529
- "name": "page",
7530
- "default": 1,
7510
+ "message": {
7511
+ "description": "Message content",
7512
+ "name": "message",
7531
7513
  "hasDynamicHelp": false,
7532
7514
  "multiple": false,
7533
7515
  "type": "option"
7534
7516
  },
7535
- "limit": {
7536
- "description": "Items per page",
7537
- "name": "limit",
7538
- "default": 50,
7517
+ "scheduled-at": {
7518
+ "description": "Unix timestamp for scheduled send",
7519
+ "name": "scheduled-at",
7539
7520
  "hasDynamicHelp": false,
7540
7521
  "multiple": false,
7541
7522
  "type": "option"
7542
7523
  },
7543
- "source": {
7544
- "description": "Filter by data source",
7545
- "name": "source",
7524
+ "hidden": {
7525
+ "description": "Hide message",
7526
+ "name": "hidden",
7527
+ "allowNo": true,
7528
+ "type": "boolean"
7529
+ },
7530
+ "locked": {
7531
+ "description": "Lock message",
7532
+ "name": "locked",
7533
+ "allowNo": true,
7534
+ "type": "boolean"
7535
+ },
7536
+ "buttons": {
7537
+ "description": "Buttons JSON array",
7538
+ "name": "buttons",
7546
7539
  "hasDynamicHelp": false,
7547
7540
  "multiple": false,
7548
7541
  "type": "option"
7549
7542
  },
7550
- "target": {
7551
- "description": "Filter by export target/format",
7552
- "name": "target",
7543
+ "header-footer": {
7544
+ "description": "Header/footer JSON object",
7545
+ "name": "header-footer",
7546
+ "hasDynamicHelp": false,
7547
+ "multiple": false,
7548
+ "type": "option"
7549
+ },
7550
+ "data": {
7551
+ "description": "Additional JSON object payload",
7552
+ "name": "data",
7553
7553
  "hasDynamicHelp": false,
7554
7554
  "multiple": false,
7555
7555
  "type": "option"
@@ -7557,7 +7557,7 @@
7557
7557
  },
7558
7558
  "hasDynamicHelp": false,
7559
7559
  "hiddenAliases": [],
7560
- "id": "exports:list",
7560
+ "id": "messages:update",
7561
7561
  "pluginAlias": "@instantkom/cli",
7562
7562
  "pluginName": "@instantkom/cli",
7563
7563
  "pluginType": "core",
@@ -7567,8 +7567,8 @@
7567
7567
  "relativePath": [
7568
7568
  "dist",
7569
7569
  "commands",
7570
- "exports",
7571
- "list.js"
7570
+ "messages",
7571
+ "update.js"
7572
7572
  ]
7573
7573
  },
7574
7574
  "segments:create": {
@@ -8968,10 +8968,10 @@
8968
8968
  "validate-import.js"
8969
8969
  ]
8970
8970
  },
8971
- "templates:create": {
8971
+ "team:create": {
8972
8972
  "aliases": [],
8973
8973
  "args": {},
8974
- "description": "Create a message template",
8974
+ "description": "Create a team member",
8975
8975
  "flags": {
8976
8976
  "api-key": {
8977
8977
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9035,78 +9035,62 @@
9035
9035
  "multiple": false,
9036
9036
  "type": "option"
9037
9037
  },
9038
- "channel": {
9039
- "description": "Channel ID",
9040
- "name": "channel",
9038
+ "email": {
9039
+ "description": "Email address",
9040
+ "name": "email",
9041
9041
  "required": true,
9042
9042
  "hasDynamicHelp": false,
9043
9043
  "multiple": false,
9044
9044
  "type": "option"
9045
9045
  },
9046
- "name": {
9047
- "description": "Template name",
9048
- "name": "name",
9046
+ "first-name": {
9047
+ "description": "First name",
9048
+ "name": "first-name",
9049
9049
  "required": true,
9050
9050
  "hasDynamicHelp": false,
9051
9051
  "multiple": false,
9052
9052
  "type": "option"
9053
9053
  },
9054
- "type": {
9055
- "description": "Template type",
9056
- "name": "type",
9057
- "default": "text",
9054
+ "last-name": {
9055
+ "description": "Last name",
9056
+ "name": "last-name",
9057
+ "required": true,
9058
9058
  "hasDynamicHelp": false,
9059
9059
  "multiple": false,
9060
- "options": [
9061
- "text",
9062
- "image",
9063
- "video",
9064
- "document",
9065
- "audio",
9066
- "location",
9067
- "contact",
9068
- "interactive"
9069
- ],
9070
9060
  "type": "option"
9071
9061
  },
9072
- "message": {
9073
- "description": "Template message",
9074
- "name": "message",
9062
+ "password": {
9063
+ "description": "Initial password",
9064
+ "name": "password",
9075
9065
  "required": true,
9076
9066
  "hasDynamicHelp": false,
9077
9067
  "multiple": false,
9078
9068
  "type": "option"
9079
9069
  },
9080
- "color": {
9081
- "description": "Template color as HEX",
9082
- "name": "color",
9070
+ "phone": {
9071
+ "description": "Phone number",
9072
+ "name": "phone",
9083
9073
  "hasDynamicHelp": false,
9084
9074
  "multiple": false,
9085
9075
  "type": "option"
9086
9076
  },
9087
- "status": {
9088
- "description": "Template is active",
9089
- "name": "status",
9090
- "allowNo": true,
9091
- "type": "boolean"
9092
- },
9093
- "whatsapp-language": {
9094
- "description": "WhatsApp template language",
9095
- "name": "whatsapp-language",
9077
+ "company": {
9078
+ "description": "Company name",
9079
+ "name": "company",
9096
9080
  "hasDynamicHelp": false,
9097
9081
  "multiple": false,
9098
9082
  "type": "option"
9099
9083
  },
9100
- "buttons": {
9101
- "description": "Buttons JSON array/object",
9102
- "name": "buttons",
9084
+ "color": {
9085
+ "description": "Color as HEX",
9086
+ "name": "color",
9103
9087
  "hasDynamicHelp": false,
9104
9088
  "multiple": false,
9105
9089
  "type": "option"
9106
9090
  },
9107
- "header-footer": {
9108
- "description": "Header/footer JSON object",
9109
- "name": "header-footer",
9091
+ "folder": {
9092
+ "description": "Object folder ID",
9093
+ "name": "folder",
9110
9094
  "hasDynamicHelp": false,
9111
9095
  "multiple": false,
9112
9096
  "type": "option"
@@ -9121,7 +9105,7 @@
9121
9105
  },
9122
9106
  "hasDynamicHelp": false,
9123
9107
  "hiddenAliases": [],
9124
- "id": "templates:create",
9108
+ "id": "team:create",
9125
9109
  "pluginAlias": "@instantkom/cli",
9126
9110
  "pluginName": "@instantkom/cli",
9127
9111
  "pluginType": "core",
@@ -9131,20 +9115,20 @@
9131
9115
  "relativePath": [
9132
9116
  "dist",
9133
9117
  "commands",
9134
- "templates",
9118
+ "team",
9135
9119
  "create.js"
9136
9120
  ]
9137
9121
  },
9138
- "templates:delete": {
9122
+ "team:delete": {
9139
9123
  "aliases": [],
9140
9124
  "args": {
9141
9125
  "id": {
9142
- "description": "template ID",
9126
+ "description": "Team member ID",
9143
9127
  "name": "id",
9144
9128
  "required": true
9145
9129
  }
9146
9130
  },
9147
- "description": "Delete template",
9131
+ "description": "Delete a team member",
9148
9132
  "flags": {
9149
9133
  "api-key": {
9150
9134
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9211,7 +9195,7 @@
9211
9195
  },
9212
9196
  "hasDynamicHelp": false,
9213
9197
  "hiddenAliases": [],
9214
- "id": "templates:delete",
9198
+ "id": "team:delete",
9215
9199
  "pluginAlias": "@instantkom/cli",
9216
9200
  "pluginName": "@instantkom/cli",
9217
9201
  "pluginType": "core",
@@ -9221,14 +9205,14 @@
9221
9205
  "relativePath": [
9222
9206
  "dist",
9223
9207
  "commands",
9224
- "templates",
9208
+ "team",
9225
9209
  "delete.js"
9226
9210
  ]
9227
9211
  },
9228
- "templates:export": {
9212
+ "team:list": {
9229
9213
  "aliases": [],
9230
9214
  "args": {},
9231
- "description": "Export templates to a file",
9215
+ "description": "List team members",
9232
9216
  "flags": {
9233
9217
  "api-key": {
9234
9218
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9240,14 +9224,101 @@
9240
9224
  "type": "option"
9241
9225
  },
9242
9226
  "format": {
9243
- "description": "Export format",
9227
+ "description": "Output format: text, json, yaml, or table",
9228
+ "helpGroup": "GLOBAL",
9244
9229
  "name": "format",
9245
- "default": "json",
9230
+ "default": "text",
9246
9231
  "hasDynamicHelp": false,
9247
9232
  "multiple": false,
9248
9233
  "options": [
9249
- "csv",
9250
- "json"
9234
+ "text",
9235
+ "json",
9236
+ "yaml",
9237
+ "table"
9238
+ ],
9239
+ "type": "option"
9240
+ },
9241
+ "json": {
9242
+ "description": "Output in JSON format (alias for --format=json)",
9243
+ "helpGroup": "GLOBAL",
9244
+ "name": "json",
9245
+ "allowNo": false,
9246
+ "type": "boolean"
9247
+ },
9248
+ "quiet": {
9249
+ "description": "Suppress all output except errors",
9250
+ "helpGroup": "GLOBAL",
9251
+ "name": "quiet",
9252
+ "allowNo": false,
9253
+ "type": "boolean"
9254
+ },
9255
+ "no-color": {
9256
+ "description": "Disable color output",
9257
+ "helpGroup": "GLOBAL",
9258
+ "name": "no-color",
9259
+ "allowNo": false,
9260
+ "type": "boolean"
9261
+ },
9262
+ "profile": {
9263
+ "description": "Named configuration profile to use",
9264
+ "helpGroup": "GLOBAL",
9265
+ "name": "profile",
9266
+ "default": "default",
9267
+ "hasDynamicHelp": false,
9268
+ "multiple": false,
9269
+ "type": "option"
9270
+ },
9271
+ "api-url": {
9272
+ "description": "Override the API base URL (e.g. for staging)",
9273
+ "helpGroup": "GLOBAL",
9274
+ "name": "api-url",
9275
+ "hasDynamicHelp": false,
9276
+ "multiple": false,
9277
+ "type": "option"
9278
+ }
9279
+ },
9280
+ "hasDynamicHelp": false,
9281
+ "hiddenAliases": [],
9282
+ "id": "team:list",
9283
+ "pluginAlias": "@instantkom/cli",
9284
+ "pluginName": "@instantkom/cli",
9285
+ "pluginType": "core",
9286
+ "strict": true,
9287
+ "enableJsonFlag": false,
9288
+ "isESM": true,
9289
+ "relativePath": [
9290
+ "dist",
9291
+ "commands",
9292
+ "team",
9293
+ "list.js"
9294
+ ]
9295
+ },
9296
+ "templates:create": {
9297
+ "aliases": [],
9298
+ "args": {},
9299
+ "description": "Create a message template",
9300
+ "flags": {
9301
+ "api-key": {
9302
+ "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
9303
+ "env": "IKM_API_KEY",
9304
+ "helpGroup": "GLOBAL",
9305
+ "name": "api-key",
9306
+ "hasDynamicHelp": false,
9307
+ "multiple": false,
9308
+ "type": "option"
9309
+ },
9310
+ "format": {
9311
+ "description": "Output format: text, json, yaml, or table",
9312
+ "helpGroup": "GLOBAL",
9313
+ "name": "format",
9314
+ "default": "text",
9315
+ "hasDynamicHelp": false,
9316
+ "multiple": false,
9317
+ "options": [
9318
+ "text",
9319
+ "json",
9320
+ "yaml",
9321
+ "table"
9251
9322
  ],
9252
9323
  "type": "option"
9253
9324
  },
@@ -9258,48 +9329,116 @@
9258
9329
  "allowNo": false,
9259
9330
  "type": "boolean"
9260
9331
  },
9261
- "quiet": {
9262
- "description": "Suppress all output except errors",
9263
- "helpGroup": "GLOBAL",
9264
- "name": "quiet",
9265
- "allowNo": false,
9266
- "type": "boolean"
9332
+ "quiet": {
9333
+ "description": "Suppress all output except errors",
9334
+ "helpGroup": "GLOBAL",
9335
+ "name": "quiet",
9336
+ "allowNo": false,
9337
+ "type": "boolean"
9338
+ },
9339
+ "no-color": {
9340
+ "description": "Disable color output",
9341
+ "helpGroup": "GLOBAL",
9342
+ "name": "no-color",
9343
+ "allowNo": false,
9344
+ "type": "boolean"
9345
+ },
9346
+ "profile": {
9347
+ "description": "Named configuration profile to use",
9348
+ "helpGroup": "GLOBAL",
9349
+ "name": "profile",
9350
+ "default": "default",
9351
+ "hasDynamicHelp": false,
9352
+ "multiple": false,
9353
+ "type": "option"
9354
+ },
9355
+ "api-url": {
9356
+ "description": "Override the API base URL (e.g. for staging)",
9357
+ "helpGroup": "GLOBAL",
9358
+ "name": "api-url",
9359
+ "hasDynamicHelp": false,
9360
+ "multiple": false,
9361
+ "type": "option"
9362
+ },
9363
+ "channel": {
9364
+ "description": "Channel ID",
9365
+ "name": "channel",
9366
+ "required": true,
9367
+ "hasDynamicHelp": false,
9368
+ "multiple": false,
9369
+ "type": "option"
9370
+ },
9371
+ "name": {
9372
+ "description": "Template name",
9373
+ "name": "name",
9374
+ "required": true,
9375
+ "hasDynamicHelp": false,
9376
+ "multiple": false,
9377
+ "type": "option"
9378
+ },
9379
+ "type": {
9380
+ "description": "Template type",
9381
+ "name": "type",
9382
+ "default": "text",
9383
+ "hasDynamicHelp": false,
9384
+ "multiple": false,
9385
+ "options": [
9386
+ "text",
9387
+ "image",
9388
+ "video",
9389
+ "document",
9390
+ "audio",
9391
+ "location",
9392
+ "contact",
9393
+ "interactive"
9394
+ ],
9395
+ "type": "option"
9396
+ },
9397
+ "message": {
9398
+ "description": "Template message",
9399
+ "name": "message",
9400
+ "required": true,
9401
+ "hasDynamicHelp": false,
9402
+ "multiple": false,
9403
+ "type": "option"
9404
+ },
9405
+ "color": {
9406
+ "description": "Template color as HEX",
9407
+ "name": "color",
9408
+ "hasDynamicHelp": false,
9409
+ "multiple": false,
9410
+ "type": "option"
9267
9411
  },
9268
- "no-color": {
9269
- "description": "Disable color output",
9270
- "helpGroup": "GLOBAL",
9271
- "name": "no-color",
9272
- "allowNo": false,
9412
+ "status": {
9413
+ "description": "Template is active",
9414
+ "name": "status",
9415
+ "allowNo": true,
9273
9416
  "type": "boolean"
9274
9417
  },
9275
- "profile": {
9276
- "description": "Named configuration profile to use",
9277
- "helpGroup": "GLOBAL",
9278
- "name": "profile",
9279
- "default": "default",
9418
+ "whatsapp-language": {
9419
+ "description": "WhatsApp template language",
9420
+ "name": "whatsapp-language",
9280
9421
  "hasDynamicHelp": false,
9281
9422
  "multiple": false,
9282
9423
  "type": "option"
9283
9424
  },
9284
- "api-url": {
9285
- "description": "Override the API base URL (e.g. for staging)",
9286
- "helpGroup": "GLOBAL",
9287
- "name": "api-url",
9425
+ "buttons": {
9426
+ "description": "Buttons JSON array/object",
9427
+ "name": "buttons",
9288
9428
  "hasDynamicHelp": false,
9289
9429
  "multiple": false,
9290
9430
  "type": "option"
9291
9431
  },
9292
- "file": {
9293
- "description": "Output file path",
9294
- "name": "file",
9295
- "required": true,
9432
+ "header-footer": {
9433
+ "description": "Header/footer JSON object",
9434
+ "name": "header-footer",
9296
9435
  "hasDynamicHelp": false,
9297
9436
  "multiple": false,
9298
9437
  "type": "option"
9299
9438
  },
9300
- "channel": {
9301
- "description": "Filter by channel ID",
9302
- "name": "channel",
9439
+ "data": {
9440
+ "description": "Additional JSON object payload",
9441
+ "name": "data",
9303
9442
  "hasDynamicHelp": false,
9304
9443
  "multiple": false,
9305
9444
  "type": "option"
@@ -9307,7 +9446,7 @@
9307
9446
  },
9308
9447
  "hasDynamicHelp": false,
9309
9448
  "hiddenAliases": [],
9310
- "id": "templates:export",
9449
+ "id": "templates:create",
9311
9450
  "pluginAlias": "@instantkom/cli",
9312
9451
  "pluginName": "@instantkom/cli",
9313
9452
  "pluginType": "core",
@@ -9318,19 +9457,19 @@
9318
9457
  "dist",
9319
9458
  "commands",
9320
9459
  "templates",
9321
- "export.js"
9460
+ "create.js"
9322
9461
  ]
9323
9462
  },
9324
- "templates:get": {
9463
+ "templates:delete": {
9325
9464
  "aliases": [],
9326
9465
  "args": {
9327
9466
  "id": {
9328
- "description": "Template ID",
9467
+ "description": "template ID",
9329
9468
  "name": "id",
9330
9469
  "required": true
9331
9470
  }
9332
9471
  },
9333
- "description": "Get a message template by ID",
9472
+ "description": "Delete template",
9334
9473
  "flags": {
9335
9474
  "api-key": {
9336
9475
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9397,7 +9536,7 @@
9397
9536
  },
9398
9537
  "hasDynamicHelp": false,
9399
9538
  "hiddenAliases": [],
9400
- "id": "templates:get",
9539
+ "id": "templates:delete",
9401
9540
  "pluginAlias": "@instantkom/cli",
9402
9541
  "pluginName": "@instantkom/cli",
9403
9542
  "pluginType": "core",
@@ -9408,13 +9547,13 @@
9408
9547
  "dist",
9409
9548
  "commands",
9410
9549
  "templates",
9411
- "get.js"
9550
+ "delete.js"
9412
9551
  ]
9413
9552
  },
9414
- "templates:import": {
9553
+ "templates:export": {
9415
9554
  "aliases": [],
9416
9555
  "args": {},
9417
- "description": "Import templates from JSON",
9556
+ "description": "Export templates to a file",
9418
9557
  "flags": {
9419
9558
  "api-key": {
9420
9559
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9426,17 +9565,14 @@
9426
9565
  "type": "option"
9427
9566
  },
9428
9567
  "format": {
9429
- "description": "Output format: text, json, yaml, or table",
9430
- "helpGroup": "GLOBAL",
9568
+ "description": "Export format",
9431
9569
  "name": "format",
9432
- "default": "text",
9570
+ "default": "json",
9433
9571
  "hasDynamicHelp": false,
9434
9572
  "multiple": false,
9435
9573
  "options": [
9436
- "text",
9437
- "json",
9438
- "yaml",
9439
- "table"
9574
+ "csv",
9575
+ "json"
9440
9576
  ],
9441
9577
  "type": "option"
9442
9578
  },
@@ -9479,7 +9615,7 @@
9479
9615
  "type": "option"
9480
9616
  },
9481
9617
  "file": {
9482
- "description": "JSON file path",
9618
+ "description": "Output file path",
9483
9619
  "name": "file",
9484
9620
  "required": true,
9485
9621
  "hasDynamicHelp": false,
@@ -9487,23 +9623,16 @@
9487
9623
  "type": "option"
9488
9624
  },
9489
9625
  "channel": {
9490
- "description": "Target channel ID",
9626
+ "description": "Filter by channel ID",
9491
9627
  "name": "channel",
9492
- "required": true,
9493
9628
  "hasDynamicHelp": false,
9494
9629
  "multiple": false,
9495
9630
  "type": "option"
9496
- },
9497
- "skip-duplicates": {
9498
- "description": "Skip duplicate templates",
9499
- "name": "skip-duplicates",
9500
- "allowNo": true,
9501
- "type": "boolean"
9502
9631
  }
9503
9632
  },
9504
9633
  "hasDynamicHelp": false,
9505
9634
  "hiddenAliases": [],
9506
- "id": "templates:import",
9635
+ "id": "templates:export",
9507
9636
  "pluginAlias": "@instantkom/cli",
9508
9637
  "pluginName": "@instantkom/cli",
9509
9638
  "pluginType": "core",
@@ -9514,13 +9643,19 @@
9514
9643
  "dist",
9515
9644
  "commands",
9516
9645
  "templates",
9517
- "import.js"
9646
+ "export.js"
9518
9647
  ]
9519
9648
  },
9520
- "templates:list": {
9649
+ "templates:get": {
9521
9650
  "aliases": [],
9522
- "args": {},
9523
- "description": "List message templates",
9651
+ "args": {
9652
+ "id": {
9653
+ "description": "Template ID",
9654
+ "name": "id",
9655
+ "required": true
9656
+ }
9657
+ },
9658
+ "description": "Get a message template by ID",
9524
9659
  "flags": {
9525
9660
  "api-key": {
9526
9661
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9583,41 +9718,11 @@
9583
9718
  "hasDynamicHelp": false,
9584
9719
  "multiple": false,
9585
9720
  "type": "option"
9586
- },
9587
- "channel": {
9588
- "description": "Filter by channel ID",
9589
- "name": "channel",
9590
- "hasDynamicHelp": false,
9591
- "multiple": false,
9592
- "type": "option"
9593
- },
9594
- "search": {
9595
- "description": "Search templates by name or content",
9596
- "name": "search",
9597
- "hasDynamicHelp": false,
9598
- "multiple": false,
9599
- "type": "option"
9600
- },
9601
- "page": {
9602
- "description": "Page number",
9603
- "name": "page",
9604
- "default": 1,
9605
- "hasDynamicHelp": false,
9606
- "multiple": false,
9607
- "type": "option"
9608
- },
9609
- "limit": {
9610
- "description": "Items per page",
9611
- "name": "limit",
9612
- "default": 20,
9613
- "hasDynamicHelp": false,
9614
- "multiple": false,
9615
- "type": "option"
9616
9721
  }
9617
9722
  },
9618
9723
  "hasDynamicHelp": false,
9619
9724
  "hiddenAliases": [],
9620
- "id": "templates:list",
9725
+ "id": "templates:get",
9621
9726
  "pluginAlias": "@instantkom/cli",
9622
9727
  "pluginName": "@instantkom/cli",
9623
9728
  "pluginType": "core",
@@ -9628,19 +9733,13 @@
9628
9733
  "dist",
9629
9734
  "commands",
9630
9735
  "templates",
9631
- "list.js"
9736
+ "get.js"
9632
9737
  ]
9633
9738
  },
9634
- "templates:render": {
9739
+ "templates:import": {
9635
9740
  "aliases": [],
9636
- "args": {
9637
- "id": {
9638
- "description": "Template ID",
9639
- "name": "id",
9640
- "required": true
9641
- }
9642
- },
9643
- "description": "Render a message template locally",
9741
+ "args": {},
9742
+ "description": "Import templates from JSON",
9644
9743
  "flags": {
9645
9744
  "api-key": {
9646
9745
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9704,17 +9803,32 @@
9704
9803
  "multiple": false,
9705
9804
  "type": "option"
9706
9805
  },
9707
- "vars": {
9708
- "description": "Template variable as key=value; may be repeated",
9709
- "name": "vars",
9806
+ "file": {
9807
+ "description": "JSON file path",
9808
+ "name": "file",
9809
+ "required": true,
9710
9810
  "hasDynamicHelp": false,
9711
- "multiple": true,
9811
+ "multiple": false,
9812
+ "type": "option"
9813
+ },
9814
+ "channel": {
9815
+ "description": "Target channel ID",
9816
+ "name": "channel",
9817
+ "required": true,
9818
+ "hasDynamicHelp": false,
9819
+ "multiple": false,
9712
9820
  "type": "option"
9821
+ },
9822
+ "skip-duplicates": {
9823
+ "description": "Skip duplicate templates",
9824
+ "name": "skip-duplicates",
9825
+ "allowNo": true,
9826
+ "type": "boolean"
9713
9827
  }
9714
9828
  },
9715
9829
  "hasDynamicHelp": false,
9716
9830
  "hiddenAliases": [],
9717
- "id": "templates:render",
9831
+ "id": "templates:import",
9718
9832
  "pluginAlias": "@instantkom/cli",
9719
9833
  "pluginName": "@instantkom/cli",
9720
9834
  "pluginType": "core",
@@ -9725,19 +9839,13 @@
9725
9839
  "dist",
9726
9840
  "commands",
9727
9841
  "templates",
9728
- "render.js"
9842
+ "import.js"
9729
9843
  ]
9730
9844
  },
9731
- "templates:update": {
9845
+ "templates:list": {
9732
9846
  "aliases": [],
9733
- "args": {
9734
- "id": {
9735
- "description": "Template ID",
9736
- "name": "id",
9737
- "required": true
9738
- }
9739
- },
9740
- "description": "Update a message template",
9847
+ "args": {},
9848
+ "description": "List message templates",
9741
9849
  "flags": {
9742
9850
  "api-key": {
9743
9851
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9801,80 +9909,32 @@
9801
9909
  "multiple": false,
9802
9910
  "type": "option"
9803
9911
  },
9804
- "name": {
9805
- "description": "Template name",
9806
- "name": "name",
9807
- "hasDynamicHelp": false,
9808
- "multiple": false,
9809
- "type": "option"
9810
- },
9811
- "type": {
9812
- "description": "Template type",
9813
- "name": "type",
9814
- "hasDynamicHelp": false,
9815
- "multiple": false,
9816
- "options": [
9817
- "text",
9818
- "image",
9819
- "video",
9820
- "document",
9821
- "audio",
9822
- "location",
9823
- "contact",
9824
- "interactive"
9825
- ],
9826
- "type": "option"
9827
- },
9828
- "message": {
9829
- "description": "Template message",
9830
- "name": "message",
9831
- "hasDynamicHelp": false,
9832
- "multiple": false,
9833
- "type": "option"
9834
- },
9835
- "color": {
9836
- "description": "Template color as HEX",
9837
- "name": "color",
9838
- "hasDynamicHelp": false,
9839
- "multiple": false,
9840
- "type": "option"
9841
- },
9842
- "status": {
9843
- "description": "Template is active",
9844
- "name": "status",
9845
- "allowNo": true,
9846
- "type": "boolean"
9847
- },
9848
- "remove-media": {
9849
- "description": "Remove existing media",
9850
- "name": "remove-media",
9851
- "allowNo": false,
9852
- "type": "boolean"
9853
- },
9854
- "whatsapp-language": {
9855
- "description": "WhatsApp template language",
9856
- "name": "whatsapp-language",
9912
+ "channel": {
9913
+ "description": "Filter by channel ID",
9914
+ "name": "channel",
9857
9915
  "hasDynamicHelp": false,
9858
9916
  "multiple": false,
9859
9917
  "type": "option"
9860
9918
  },
9861
- "buttons": {
9862
- "description": "Buttons JSON array/object",
9863
- "name": "buttons",
9919
+ "search": {
9920
+ "description": "Search templates by name or content",
9921
+ "name": "search",
9864
9922
  "hasDynamicHelp": false,
9865
9923
  "multiple": false,
9866
9924
  "type": "option"
9867
9925
  },
9868
- "header-footer": {
9869
- "description": "Header/footer JSON object",
9870
- "name": "header-footer",
9926
+ "page": {
9927
+ "description": "Page number",
9928
+ "name": "page",
9929
+ "default": 1,
9871
9930
  "hasDynamicHelp": false,
9872
9931
  "multiple": false,
9873
9932
  "type": "option"
9874
9933
  },
9875
- "data": {
9876
- "description": "Additional JSON object payload",
9877
- "name": "data",
9934
+ "limit": {
9935
+ "description": "Items per page",
9936
+ "name": "limit",
9937
+ "default": 20,
9878
9938
  "hasDynamicHelp": false,
9879
9939
  "multiple": false,
9880
9940
  "type": "option"
@@ -9882,7 +9942,7 @@
9882
9942
  },
9883
9943
  "hasDynamicHelp": false,
9884
9944
  "hiddenAliases": [],
9885
- "id": "templates:update",
9945
+ "id": "templates:list",
9886
9946
  "pluginAlias": "@instantkom/cli",
9887
9947
  "pluginName": "@instantkom/cli",
9888
9948
  "pluginType": "core",
@@ -9893,13 +9953,19 @@
9893
9953
  "dist",
9894
9954
  "commands",
9895
9955
  "templates",
9896
- "update.js"
9956
+ "list.js"
9897
9957
  ]
9898
9958
  },
9899
- "templates:validate-import": {
9959
+ "templates:render": {
9900
9960
  "aliases": [],
9901
- "args": {},
9902
- "description": "Validate templates import JSON",
9961
+ "args": {
9962
+ "id": {
9963
+ "description": "Template ID",
9964
+ "name": "id",
9965
+ "required": true
9966
+ }
9967
+ },
9968
+ "description": "Render a message template locally",
9903
9969
  "flags": {
9904
9970
  "api-key": {
9905
9971
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9963,26 +10029,17 @@
9963
10029
  "multiple": false,
9964
10030
  "type": "option"
9965
10031
  },
9966
- "file": {
9967
- "description": "JSON file path",
9968
- "name": "file",
9969
- "required": true,
9970
- "hasDynamicHelp": false,
9971
- "multiple": false,
9972
- "type": "option"
9973
- },
9974
- "channel": {
9975
- "description": "Target channel ID",
9976
- "name": "channel",
9977
- "required": true,
10032
+ "vars": {
10033
+ "description": "Template variable as key=value; may be repeated",
10034
+ "name": "vars",
9978
10035
  "hasDynamicHelp": false,
9979
- "multiple": false,
10036
+ "multiple": true,
9980
10037
  "type": "option"
9981
10038
  }
9982
10039
  },
9983
10040
  "hasDynamicHelp": false,
9984
10041
  "hiddenAliases": [],
9985
- "id": "templates:validate-import",
10042
+ "id": "templates:render",
9986
10043
  "pluginAlias": "@instantkom/cli",
9987
10044
  "pluginName": "@instantkom/cli",
9988
10045
  "pluginType": "core",
@@ -9993,13 +10050,19 @@
9993
10050
  "dist",
9994
10051
  "commands",
9995
10052
  "templates",
9996
- "validate-import.js"
10053
+ "render.js"
9997
10054
  ]
9998
10055
  },
9999
- "tickets:create": {
10056
+ "templates:update": {
10000
10057
  "aliases": [],
10001
- "args": {},
10002
- "description": "Create a ticket",
10058
+ "args": {
10059
+ "id": {
10060
+ "description": "Template ID",
10061
+ "name": "id",
10062
+ "required": true
10063
+ }
10064
+ },
10065
+ "description": "Update a message template",
10003
10066
  "flags": {
10004
10067
  "api-key": {
10005
10068
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10063,53 +10126,73 @@
10063
10126
  "multiple": false,
10064
10127
  "type": "option"
10065
10128
  },
10066
- "channel": {
10067
- "description": "Channel ID",
10068
- "name": "channel",
10069
- "required": true,
10129
+ "name": {
10130
+ "description": "Template name",
10131
+ "name": "name",
10070
10132
  "hasDynamicHelp": false,
10071
10133
  "multiple": false,
10072
10134
  "type": "option"
10073
10135
  },
10074
- "subject": {
10075
- "description": "Ticket subject",
10076
- "name": "subject",
10077
- "required": true,
10136
+ "type": {
10137
+ "description": "Template type",
10138
+ "name": "type",
10078
10139
  "hasDynamicHelp": false,
10079
10140
  "multiple": false,
10141
+ "options": [
10142
+ "text",
10143
+ "image",
10144
+ "video",
10145
+ "document",
10146
+ "audio",
10147
+ "location",
10148
+ "contact",
10149
+ "interactive"
10150
+ ],
10080
10151
  "type": "option"
10081
10152
  },
10082
- "recipient": {
10083
- "description": "Existing recipient ID",
10084
- "name": "recipient",
10153
+ "message": {
10154
+ "description": "Template message",
10155
+ "name": "message",
10085
10156
  "hasDynamicHelp": false,
10086
10157
  "multiple": false,
10087
10158
  "type": "option"
10088
10159
  },
10089
- "email": {
10090
- "description": "Customer email",
10091
- "name": "email",
10160
+ "color": {
10161
+ "description": "Template color as HEX",
10162
+ "name": "color",
10092
10163
  "hasDynamicHelp": false,
10093
10164
  "multiple": false,
10094
10165
  "type": "option"
10095
10166
  },
10096
- "name": {
10097
- "description": "Customer name",
10098
- "name": "name",
10167
+ "status": {
10168
+ "description": "Template is active",
10169
+ "name": "status",
10170
+ "allowNo": true,
10171
+ "type": "boolean"
10172
+ },
10173
+ "remove-media": {
10174
+ "description": "Remove existing media",
10175
+ "name": "remove-media",
10176
+ "allowNo": false,
10177
+ "type": "boolean"
10178
+ },
10179
+ "whatsapp-language": {
10180
+ "description": "WhatsApp template language",
10181
+ "name": "whatsapp-language",
10099
10182
  "hasDynamicHelp": false,
10100
10183
  "multiple": false,
10101
10184
  "type": "option"
10102
10185
  },
10103
- "priority": {
10104
- "description": "Ticket priority",
10105
- "name": "priority",
10186
+ "buttons": {
10187
+ "description": "Buttons JSON array/object",
10188
+ "name": "buttons",
10106
10189
  "hasDynamicHelp": false,
10107
10190
  "multiple": false,
10108
10191
  "type": "option"
10109
10192
  },
10110
- "source": {
10111
- "description": "Ticket source",
10112
- "name": "source",
10193
+ "header-footer": {
10194
+ "description": "Header/footer JSON object",
10195
+ "name": "header-footer",
10113
10196
  "hasDynamicHelp": false,
10114
10197
  "multiple": false,
10115
10198
  "type": "option"
@@ -10124,7 +10207,7 @@
10124
10207
  },
10125
10208
  "hasDynamicHelp": false,
10126
10209
  "hiddenAliases": [],
10127
- "id": "tickets:create",
10210
+ "id": "templates:update",
10128
10211
  "pluginAlias": "@instantkom/cli",
10129
10212
  "pluginName": "@instantkom/cli",
10130
10213
  "pluginType": "core",
@@ -10134,20 +10217,14 @@
10134
10217
  "relativePath": [
10135
10218
  "dist",
10136
10219
  "commands",
10137
- "tickets",
10138
- "create.js"
10220
+ "templates",
10221
+ "update.js"
10139
10222
  ]
10140
10223
  },
10141
- "tickets:delete": {
10224
+ "templates:validate-import": {
10142
10225
  "aliases": [],
10143
- "args": {
10144
- "id": {
10145
- "description": "Ticket ID",
10146
- "name": "id",
10147
- "required": true
10148
- }
10149
- },
10150
- "description": "Delete a ticket",
10226
+ "args": {},
10227
+ "description": "Validate templates import JSON",
10151
10228
  "flags": {
10152
10229
  "api-key": {
10153
10230
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10211,8 +10288,16 @@
10211
10288
  "multiple": false,
10212
10289
  "type": "option"
10213
10290
  },
10291
+ "file": {
10292
+ "description": "JSON file path",
10293
+ "name": "file",
10294
+ "required": true,
10295
+ "hasDynamicHelp": false,
10296
+ "multiple": false,
10297
+ "type": "option"
10298
+ },
10214
10299
  "channel": {
10215
- "description": "Channel ID",
10300
+ "description": "Target channel ID",
10216
10301
  "name": "channel",
10217
10302
  "required": true,
10218
10303
  "hasDynamicHelp": false,
@@ -10222,7 +10307,7 @@
10222
10307
  },
10223
10308
  "hasDynamicHelp": false,
10224
10309
  "hiddenAliases": [],
10225
- "id": "tickets:delete",
10310
+ "id": "templates:validate-import",
10226
10311
  "pluginAlias": "@instantkom/cli",
10227
10312
  "pluginName": "@instantkom/cli",
10228
10313
  "pluginType": "core",
@@ -10232,20 +10317,14 @@
10232
10317
  "relativePath": [
10233
10318
  "dist",
10234
10319
  "commands",
10235
- "tickets",
10236
- "delete.js"
10320
+ "templates",
10321
+ "validate-import.js"
10237
10322
  ]
10238
10323
  },
10239
- "tickets:get": {
10324
+ "tickets:create": {
10240
10325
  "aliases": [],
10241
- "args": {
10242
- "id": {
10243
- "description": "Ticket ID",
10244
- "name": "id",
10245
- "required": true
10246
- }
10247
- },
10248
- "description": "Get a ticket by ID",
10326
+ "args": {},
10327
+ "description": "Create a ticket",
10249
10328
  "flags": {
10250
10329
  "api-key": {
10251
10330
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10316,111 +10395,53 @@
10316
10395
  "hasDynamicHelp": false,
10317
10396
  "multiple": false,
10318
10397
  "type": "option"
10319
- }
10320
- },
10321
- "hasDynamicHelp": false,
10322
- "hiddenAliases": [],
10323
- "id": "tickets:get",
10324
- "pluginAlias": "@instantkom/cli",
10325
- "pluginName": "@instantkom/cli",
10326
- "pluginType": "core",
10327
- "strict": true,
10328
- "enableJsonFlag": false,
10329
- "isESM": true,
10330
- "relativePath": [
10331
- "dist",
10332
- "commands",
10333
- "tickets",
10334
- "get.js"
10335
- ]
10336
- },
10337
- "tickets:list": {
10338
- "aliases": [],
10339
- "args": {},
10340
- "description": "List tickets for a channel",
10341
- "flags": {
10342
- "api-key": {
10343
- "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
10344
- "env": "IKM_API_KEY",
10345
- "helpGroup": "GLOBAL",
10346
- "name": "api-key",
10398
+ },
10399
+ "subject": {
10400
+ "description": "Ticket subject",
10401
+ "name": "subject",
10402
+ "required": true,
10347
10403
  "hasDynamicHelp": false,
10348
10404
  "multiple": false,
10349
10405
  "type": "option"
10350
10406
  },
10351
- "format": {
10352
- "description": "Output format: text, json, yaml, or table",
10353
- "helpGroup": "GLOBAL",
10354
- "name": "format",
10355
- "default": "text",
10407
+ "recipient": {
10408
+ "description": "Existing recipient ID",
10409
+ "name": "recipient",
10356
10410
  "hasDynamicHelp": false,
10357
10411
  "multiple": false,
10358
- "options": [
10359
- "text",
10360
- "json",
10361
- "yaml",
10362
- "table"
10363
- ],
10364
10412
  "type": "option"
10365
10413
  },
10366
- "json": {
10367
- "description": "Output in JSON format (alias for --format=json)",
10368
- "helpGroup": "GLOBAL",
10369
- "name": "json",
10370
- "allowNo": false,
10371
- "type": "boolean"
10372
- },
10373
- "quiet": {
10374
- "description": "Suppress all output except errors",
10375
- "helpGroup": "GLOBAL",
10376
- "name": "quiet",
10377
- "allowNo": false,
10378
- "type": "boolean"
10379
- },
10380
- "no-color": {
10381
- "description": "Disable color output",
10382
- "helpGroup": "GLOBAL",
10383
- "name": "no-color",
10384
- "allowNo": false,
10385
- "type": "boolean"
10386
- },
10387
- "profile": {
10388
- "description": "Named configuration profile to use",
10389
- "helpGroup": "GLOBAL",
10390
- "name": "profile",
10391
- "default": "default",
10414
+ "email": {
10415
+ "description": "Customer email",
10416
+ "name": "email",
10392
10417
  "hasDynamicHelp": false,
10393
10418
  "multiple": false,
10394
10419
  "type": "option"
10395
- },
10396
- "api-url": {
10397
- "description": "Override the API base URL (e.g. for staging)",
10398
- "helpGroup": "GLOBAL",
10399
- "name": "api-url",
10420
+ },
10421
+ "name": {
10422
+ "description": "Customer name",
10423
+ "name": "name",
10400
10424
  "hasDynamicHelp": false,
10401
10425
  "multiple": false,
10402
10426
  "type": "option"
10403
10427
  },
10404
- "channel": {
10405
- "description": "Channel ID",
10406
- "name": "channel",
10407
- "required": true,
10428
+ "priority": {
10429
+ "description": "Ticket priority",
10430
+ "name": "priority",
10408
10431
  "hasDynamicHelp": false,
10409
10432
  "multiple": false,
10410
10433
  "type": "option"
10411
10434
  },
10412
- "limit": {
10413
- "description": "Maximum tickets to return",
10414
- "name": "limit",
10415
- "default": 500,
10435
+ "source": {
10436
+ "description": "Ticket source",
10437
+ "name": "source",
10416
10438
  "hasDynamicHelp": false,
10417
10439
  "multiple": false,
10418
10440
  "type": "option"
10419
10441
  },
10420
- "offset": {
10421
- "description": "Number of tickets to skip",
10422
- "name": "offset",
10423
- "default": 0,
10442
+ "data": {
10443
+ "description": "Additional JSON object payload",
10444
+ "name": "data",
10424
10445
  "hasDynamicHelp": false,
10425
10446
  "multiple": false,
10426
10447
  "type": "option"
@@ -10428,7 +10449,7 @@
10428
10449
  },
10429
10450
  "hasDynamicHelp": false,
10430
10451
  "hiddenAliases": [],
10431
- "id": "tickets:list",
10452
+ "id": "tickets:create",
10432
10453
  "pluginAlias": "@instantkom/cli",
10433
10454
  "pluginName": "@instantkom/cli",
10434
10455
  "pluginType": "core",
@@ -10439,10 +10460,10 @@
10439
10460
  "dist",
10440
10461
  "commands",
10441
10462
  "tickets",
10442
- "list.js"
10463
+ "create.js"
10443
10464
  ]
10444
10465
  },
10445
- "tickets:reply": {
10466
+ "tickets:delete": {
10446
10467
  "aliases": [],
10447
10468
  "args": {
10448
10469
  "id": {
@@ -10451,7 +10472,7 @@
10451
10472
  "required": true
10452
10473
  }
10453
10474
  },
10454
- "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
10475
+ "description": "Delete a ticket",
10455
10476
  "flags": {
10456
10477
  "api-key": {
10457
10478
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10515,24 +10536,18 @@
10515
10536
  "multiple": false,
10516
10537
  "type": "option"
10517
10538
  },
10518
- "message": {
10519
- "description": "Reply body (raw text, no salutation or sign-off)",
10520
- "name": "message",
10539
+ "channel": {
10540
+ "description": "Channel ID",
10541
+ "name": "channel",
10521
10542
  "required": true,
10522
10543
  "hasDynamicHelp": false,
10523
10544
  "multiple": false,
10524
10545
  "type": "option"
10525
- },
10526
- "close": {
10527
- "description": "Close the ticket after sending the reply",
10528
- "name": "close",
10529
- "allowNo": false,
10530
- "type": "boolean"
10531
10546
  }
10532
10547
  },
10533
10548
  "hasDynamicHelp": false,
10534
10549
  "hiddenAliases": [],
10535
- "id": "tickets:reply",
10550
+ "id": "tickets:delete",
10536
10551
  "pluginAlias": "@instantkom/cli",
10537
10552
  "pluginName": "@instantkom/cli",
10538
10553
  "pluginType": "core",
@@ -10543,10 +10558,10 @@
10543
10558
  "dist",
10544
10559
  "commands",
10545
10560
  "tickets",
10546
- "reply.js"
10561
+ "delete.js"
10547
10562
  ]
10548
10563
  },
10549
- "tickets:update": {
10564
+ "tickets:get": {
10550
10565
  "aliases": [],
10551
10566
  "args": {
10552
10567
  "id": {
@@ -10555,7 +10570,7 @@
10555
10570
  "required": true
10556
10571
  }
10557
10572
  },
10558
- "description": "Update a ticket",
10573
+ "description": "Get a ticket by ID",
10559
10574
  "flags": {
10560
10575
  "api-key": {
10561
10576
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10626,52 +10641,11 @@
10626
10641
  "hasDynamicHelp": false,
10627
10642
  "multiple": false,
10628
10643
  "type": "option"
10629
- },
10630
- "subject": {
10631
- "description": "Ticket subject",
10632
- "name": "subject",
10633
- "hasDynamicHelp": false,
10634
- "multiple": false,
10635
- "type": "option"
10636
- },
10637
- "priority": {
10638
- "description": "Ticket priority",
10639
- "name": "priority",
10640
- "hasDynamicHelp": false,
10641
- "multiple": false,
10642
- "type": "option"
10643
- },
10644
- "status": {
10645
- "description": "Ticket status",
10646
- "name": "status",
10647
- "hasDynamicHelp": false,
10648
- "multiple": false,
10649
- "type": "option"
10650
- },
10651
- "assigned-to": {
10652
- "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
10653
- "name": "assigned-to",
10654
- "hasDynamicHelp": false,
10655
- "multiple": false,
10656
- "type": "option"
10657
- },
10658
- "notify": {
10659
- "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
10660
- "name": "notify",
10661
- "allowNo": true,
10662
- "type": "boolean"
10663
- },
10664
- "data": {
10665
- "description": "Additional JSON object payload",
10666
- "name": "data",
10667
- "hasDynamicHelp": false,
10668
- "multiple": false,
10669
- "type": "option"
10670
10644
  }
10671
10645
  },
10672
10646
  "hasDynamicHelp": false,
10673
10647
  "hiddenAliases": [],
10674
- "id": "tickets:update",
10648
+ "id": "tickets:get",
10675
10649
  "pluginAlias": "@instantkom/cli",
10676
10650
  "pluginName": "@instantkom/cli",
10677
10651
  "pluginType": "core",
@@ -10682,13 +10656,13 @@
10682
10656
  "dist",
10683
10657
  "commands",
10684
10658
  "tickets",
10685
- "update.js"
10659
+ "get.js"
10686
10660
  ]
10687
10661
  },
10688
- "webhooks:add": {
10662
+ "tickets:list": {
10689
10663
  "aliases": [],
10690
10664
  "args": {},
10691
- "description": "Add a webhook subscription",
10665
+ "description": "List tickets for a channel",
10692
10666
  "flags": {
10693
10667
  "api-key": {
10694
10668
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10752,25 +10726,26 @@
10752
10726
  "multiple": false,
10753
10727
  "type": "option"
10754
10728
  },
10755
- "event": {
10756
- "description": "Webhook event to subscribe to",
10757
- "name": "event",
10729
+ "channel": {
10730
+ "description": "Channel ID",
10731
+ "name": "channel",
10758
10732
  "required": true,
10759
10733
  "hasDynamicHelp": false,
10760
10734
  "multiple": false,
10761
- "options": [
10762
- "new_contact",
10763
- "new_message",
10764
- "broadcast_sent",
10765
- "contact_updated",
10766
- "contact_opted_out"
10767
- ],
10768
10735
  "type": "option"
10769
10736
  },
10770
- "url": {
10771
- "description": "HTTPS target URL that receives webhook POSTs",
10772
- "name": "url",
10773
- "required": true,
10737
+ "limit": {
10738
+ "description": "Maximum tickets to return",
10739
+ "name": "limit",
10740
+ "default": 500,
10741
+ "hasDynamicHelp": false,
10742
+ "multiple": false,
10743
+ "type": "option"
10744
+ },
10745
+ "offset": {
10746
+ "description": "Number of tickets to skip",
10747
+ "name": "offset",
10748
+ "default": 0,
10774
10749
  "hasDynamicHelp": false,
10775
10750
  "multiple": false,
10776
10751
  "type": "option"
@@ -10778,7 +10753,7 @@
10778
10753
  },
10779
10754
  "hasDynamicHelp": false,
10780
10755
  "hiddenAliases": [],
10781
- "id": "webhooks:add",
10756
+ "id": "tickets:list",
10782
10757
  "pluginAlias": "@instantkom/cli",
10783
10758
  "pluginName": "@instantkom/cli",
10784
10759
  "pluginType": "core",
@@ -10788,14 +10763,20 @@
10788
10763
  "relativePath": [
10789
10764
  "dist",
10790
10765
  "commands",
10791
- "webhooks",
10792
- "add.js"
10766
+ "tickets",
10767
+ "list.js"
10793
10768
  ]
10794
10769
  },
10795
- "webhooks:events": {
10770
+ "tickets:reply": {
10796
10771
  "aliases": [],
10797
- "args": {},
10798
- "description": "List supported webhook event names",
10772
+ "args": {
10773
+ "id": {
10774
+ "description": "Ticket ID",
10775
+ "name": "id",
10776
+ "required": true
10777
+ }
10778
+ },
10779
+ "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
10799
10780
  "flags": {
10800
10781
  "api-key": {
10801
10782
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10858,11 +10839,25 @@
10858
10839
  "hasDynamicHelp": false,
10859
10840
  "multiple": false,
10860
10841
  "type": "option"
10842
+ },
10843
+ "message": {
10844
+ "description": "Reply body (raw text, no salutation or sign-off)",
10845
+ "name": "message",
10846
+ "required": true,
10847
+ "hasDynamicHelp": false,
10848
+ "multiple": false,
10849
+ "type": "option"
10850
+ },
10851
+ "close": {
10852
+ "description": "Close the ticket after sending the reply",
10853
+ "name": "close",
10854
+ "allowNo": false,
10855
+ "type": "boolean"
10861
10856
  }
10862
10857
  },
10863
10858
  "hasDynamicHelp": false,
10864
10859
  "hiddenAliases": [],
10865
- "id": "webhooks:events",
10860
+ "id": "tickets:reply",
10866
10861
  "pluginAlias": "@instantkom/cli",
10867
10862
  "pluginName": "@instantkom/cli",
10868
10863
  "pluginType": "core",
@@ -10872,14 +10867,20 @@
10872
10867
  "relativePath": [
10873
10868
  "dist",
10874
10869
  "commands",
10875
- "webhooks",
10876
- "events.js"
10870
+ "tickets",
10871
+ "reply.js"
10877
10872
  ]
10878
10873
  },
10879
- "webhooks:list": {
10874
+ "tickets:update": {
10880
10875
  "aliases": [],
10881
- "args": {},
10882
- "description": "List webhook subscriptions",
10876
+ "args": {
10877
+ "id": {
10878
+ "description": "Ticket ID",
10879
+ "name": "id",
10880
+ "required": true
10881
+ }
10882
+ },
10883
+ "description": "Update a ticket",
10883
10884
  "flags": {
10884
10885
  "api-key": {
10885
10886
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10942,11 +10943,60 @@
10942
10943
  "hasDynamicHelp": false,
10943
10944
  "multiple": false,
10944
10945
  "type": "option"
10946
+ },
10947
+ "channel": {
10948
+ "description": "Channel ID",
10949
+ "name": "channel",
10950
+ "required": true,
10951
+ "hasDynamicHelp": false,
10952
+ "multiple": false,
10953
+ "type": "option"
10954
+ },
10955
+ "subject": {
10956
+ "description": "Ticket subject",
10957
+ "name": "subject",
10958
+ "hasDynamicHelp": false,
10959
+ "multiple": false,
10960
+ "type": "option"
10961
+ },
10962
+ "priority": {
10963
+ "description": "Ticket priority",
10964
+ "name": "priority",
10965
+ "hasDynamicHelp": false,
10966
+ "multiple": false,
10967
+ "type": "option"
10968
+ },
10969
+ "status": {
10970
+ "description": "Ticket status",
10971
+ "name": "status",
10972
+ "hasDynamicHelp": false,
10973
+ "multiple": false,
10974
+ "type": "option"
10975
+ },
10976
+ "assigned-to": {
10977
+ "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
10978
+ "name": "assigned-to",
10979
+ "hasDynamicHelp": false,
10980
+ "multiple": false,
10981
+ "type": "option"
10982
+ },
10983
+ "notify": {
10984
+ "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
10985
+ "name": "notify",
10986
+ "allowNo": true,
10987
+ "type": "boolean"
10988
+ },
10989
+ "data": {
10990
+ "description": "Additional JSON object payload",
10991
+ "name": "data",
10992
+ "hasDynamicHelp": false,
10993
+ "multiple": false,
10994
+ "type": "option"
10945
10995
  }
10946
10996
  },
10947
10997
  "hasDynamicHelp": false,
10948
10998
  "hiddenAliases": [],
10949
- "id": "webhooks:list",
10999
+ "id": "tickets:update",
10950
11000
  "pluginAlias": "@instantkom/cli",
10951
11001
  "pluginName": "@instantkom/cli",
10952
11002
  "pluginType": "core",
@@ -10956,14 +11006,14 @@
10956
11006
  "relativePath": [
10957
11007
  "dist",
10958
11008
  "commands",
10959
- "webhooks",
10960
- "list.js"
11009
+ "tickets",
11010
+ "update.js"
10961
11011
  ]
10962
11012
  },
10963
- "webhooks:logs": {
11013
+ "webhooks:add": {
10964
11014
  "aliases": [],
10965
11015
  "args": {},
10966
- "description": "Explain webhook log availability",
11016
+ "description": "Add a webhook subscription",
10967
11017
  "flags": {
10968
11018
  "api-key": {
10969
11019
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11019,10 +11069,33 @@
11019
11069
  "multiple": false,
11020
11070
  "type": "option"
11021
11071
  },
11022
- "api-url": {
11023
- "description": "Override the API base URL (e.g. for staging)",
11024
- "helpGroup": "GLOBAL",
11025
- "name": "api-url",
11072
+ "api-url": {
11073
+ "description": "Override the API base URL (e.g. for staging)",
11074
+ "helpGroup": "GLOBAL",
11075
+ "name": "api-url",
11076
+ "hasDynamicHelp": false,
11077
+ "multiple": false,
11078
+ "type": "option"
11079
+ },
11080
+ "event": {
11081
+ "description": "Webhook event to subscribe to",
11082
+ "name": "event",
11083
+ "required": true,
11084
+ "hasDynamicHelp": false,
11085
+ "multiple": false,
11086
+ "options": [
11087
+ "new_contact",
11088
+ "new_message",
11089
+ "broadcast_sent",
11090
+ "contact_updated",
11091
+ "contact_opted_out"
11092
+ ],
11093
+ "type": "option"
11094
+ },
11095
+ "url": {
11096
+ "description": "HTTPS target URL that receives webhook POSTs",
11097
+ "name": "url",
11098
+ "required": true,
11026
11099
  "hasDynamicHelp": false,
11027
11100
  "multiple": false,
11028
11101
  "type": "option"
@@ -11030,7 +11103,7 @@
11030
11103
  },
11031
11104
  "hasDynamicHelp": false,
11032
11105
  "hiddenAliases": [],
11033
- "id": "webhooks:logs",
11106
+ "id": "webhooks:add",
11034
11107
  "pluginAlias": "@instantkom/cli",
11035
11108
  "pluginName": "@instantkom/cli",
11036
11109
  "pluginType": "core",
@@ -11041,19 +11114,13 @@
11041
11114
  "dist",
11042
11115
  "commands",
11043
11116
  "webhooks",
11044
- "logs.js"
11117
+ "add.js"
11045
11118
  ]
11046
11119
  },
11047
- "webhooks:remove": {
11120
+ "webhooks:events": {
11048
11121
  "aliases": [],
11049
- "args": {
11050
- "id": {
11051
- "description": "Webhook subscription ID",
11052
- "name": "id",
11053
- "required": true
11054
- }
11055
- },
11056
- "description": "Remove a webhook subscription",
11122
+ "args": {},
11123
+ "description": "List supported webhook event names",
11057
11124
  "flags": {
11058
11125
  "api-key": {
11059
11126
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11120,7 +11187,7 @@
11120
11187
  },
11121
11188
  "hasDynamicHelp": false,
11122
11189
  "hiddenAliases": [],
11123
- "id": "webhooks:remove",
11190
+ "id": "webhooks:events",
11124
11191
  "pluginAlias": "@instantkom/cli",
11125
11192
  "pluginName": "@instantkom/cli",
11126
11193
  "pluginType": "core",
@@ -11131,13 +11198,13 @@
11131
11198
  "dist",
11132
11199
  "commands",
11133
11200
  "webhooks",
11134
- "remove.js"
11201
+ "events.js"
11135
11202
  ]
11136
11203
  },
11137
- "webhooks:test": {
11204
+ "webhooks:list": {
11138
11205
  "aliases": [],
11139
11206
  "args": {},
11140
- "description": "Send a test webhook payload to a URL",
11207
+ "description": "List webhook subscriptions",
11141
11208
  "flags": {
11142
11209
  "api-key": {
11143
11210
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11200,34 +11267,11 @@
11200
11267
  "hasDynamicHelp": false,
11201
11268
  "multiple": false,
11202
11269
  "type": "option"
11203
- },
11204
- "url": {
11205
- "description": "Webhook URL to call",
11206
- "name": "url",
11207
- "required": true,
11208
- "hasDynamicHelp": false,
11209
- "multiple": false,
11210
- "type": "option"
11211
- },
11212
- "event": {
11213
- "description": "Event name",
11214
- "name": "event",
11215
- "default": "cli.test",
11216
- "hasDynamicHelp": false,
11217
- "multiple": false,
11218
- "type": "option"
11219
- },
11220
- "payload": {
11221
- "description": "Payload JSON",
11222
- "name": "payload",
11223
- "hasDynamicHelp": false,
11224
- "multiple": false,
11225
- "type": "option"
11226
11270
  }
11227
11271
  },
11228
11272
  "hasDynamicHelp": false,
11229
11273
  "hiddenAliases": [],
11230
- "id": "webhooks:test",
11274
+ "id": "webhooks:list",
11231
11275
  "pluginAlias": "@instantkom/cli",
11232
11276
  "pluginName": "@instantkom/cli",
11233
11277
  "pluginType": "core",
@@ -11238,13 +11282,13 @@
11238
11282
  "dist",
11239
11283
  "commands",
11240
11284
  "webhooks",
11241
- "test.js"
11285
+ "list.js"
11242
11286
  ]
11243
11287
  },
11244
- "team:create": {
11288
+ "webhooks:logs": {
11245
11289
  "aliases": [],
11246
11290
  "args": {},
11247
- "description": "Create a team member",
11291
+ "description": "Explain webhook log availability",
11248
11292
  "flags": {
11249
11293
  "api-key": {
11250
11294
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11307,78 +11351,11 @@
11307
11351
  "hasDynamicHelp": false,
11308
11352
  "multiple": false,
11309
11353
  "type": "option"
11310
- },
11311
- "email": {
11312
- "description": "Email address",
11313
- "name": "email",
11314
- "required": true,
11315
- "hasDynamicHelp": false,
11316
- "multiple": false,
11317
- "type": "option"
11318
- },
11319
- "first-name": {
11320
- "description": "First name",
11321
- "name": "first-name",
11322
- "required": true,
11323
- "hasDynamicHelp": false,
11324
- "multiple": false,
11325
- "type": "option"
11326
- },
11327
- "last-name": {
11328
- "description": "Last name",
11329
- "name": "last-name",
11330
- "required": true,
11331
- "hasDynamicHelp": false,
11332
- "multiple": false,
11333
- "type": "option"
11334
- },
11335
- "password": {
11336
- "description": "Initial password",
11337
- "name": "password",
11338
- "required": true,
11339
- "hasDynamicHelp": false,
11340
- "multiple": false,
11341
- "type": "option"
11342
- },
11343
- "phone": {
11344
- "description": "Phone number",
11345
- "name": "phone",
11346
- "hasDynamicHelp": false,
11347
- "multiple": false,
11348
- "type": "option"
11349
- },
11350
- "company": {
11351
- "description": "Company name",
11352
- "name": "company",
11353
- "hasDynamicHelp": false,
11354
- "multiple": false,
11355
- "type": "option"
11356
- },
11357
- "color": {
11358
- "description": "Color as HEX",
11359
- "name": "color",
11360
- "hasDynamicHelp": false,
11361
- "multiple": false,
11362
- "type": "option"
11363
- },
11364
- "folder": {
11365
- "description": "Object folder ID",
11366
- "name": "folder",
11367
- "hasDynamicHelp": false,
11368
- "multiple": false,
11369
- "type": "option"
11370
- },
11371
- "data": {
11372
- "description": "Additional JSON object payload",
11373
- "name": "data",
11374
- "hasDynamicHelp": false,
11375
- "multiple": false,
11376
- "type": "option"
11377
11354
  }
11378
11355
  },
11379
11356
  "hasDynamicHelp": false,
11380
11357
  "hiddenAliases": [],
11381
- "id": "team:create",
11358
+ "id": "webhooks:logs",
11382
11359
  "pluginAlias": "@instantkom/cli",
11383
11360
  "pluginName": "@instantkom/cli",
11384
11361
  "pluginType": "core",
@@ -11388,20 +11365,20 @@
11388
11365
  "relativePath": [
11389
11366
  "dist",
11390
11367
  "commands",
11391
- "team",
11392
- "create.js"
11368
+ "webhooks",
11369
+ "logs.js"
11393
11370
  ]
11394
11371
  },
11395
- "team:delete": {
11372
+ "webhooks:remove": {
11396
11373
  "aliases": [],
11397
11374
  "args": {
11398
11375
  "id": {
11399
- "description": "Team member ID",
11376
+ "description": "Webhook subscription ID",
11400
11377
  "name": "id",
11401
11378
  "required": true
11402
11379
  }
11403
11380
  },
11404
- "description": "Delete a team member",
11381
+ "description": "Remove a webhook subscription",
11405
11382
  "flags": {
11406
11383
  "api-key": {
11407
11384
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11468,7 +11445,7 @@
11468
11445
  },
11469
11446
  "hasDynamicHelp": false,
11470
11447
  "hiddenAliases": [],
11471
- "id": "team:delete",
11448
+ "id": "webhooks:remove",
11472
11449
  "pluginAlias": "@instantkom/cli",
11473
11450
  "pluginName": "@instantkom/cli",
11474
11451
  "pluginType": "core",
@@ -11478,14 +11455,14 @@
11478
11455
  "relativePath": [
11479
11456
  "dist",
11480
11457
  "commands",
11481
- "team",
11482
- "delete.js"
11458
+ "webhooks",
11459
+ "remove.js"
11483
11460
  ]
11484
11461
  },
11485
- "team:list": {
11462
+ "webhooks:test": {
11486
11463
  "aliases": [],
11487
11464
  "args": {},
11488
- "description": "List team members",
11465
+ "description": "Send a test webhook payload to a URL",
11489
11466
  "flags": {
11490
11467
  "api-key": {
11491
11468
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11548,11 +11525,34 @@
11548
11525
  "hasDynamicHelp": false,
11549
11526
  "multiple": false,
11550
11527
  "type": "option"
11528
+ },
11529
+ "url": {
11530
+ "description": "Webhook URL to call",
11531
+ "name": "url",
11532
+ "required": true,
11533
+ "hasDynamicHelp": false,
11534
+ "multiple": false,
11535
+ "type": "option"
11536
+ },
11537
+ "event": {
11538
+ "description": "Event name",
11539
+ "name": "event",
11540
+ "default": "cli.test",
11541
+ "hasDynamicHelp": false,
11542
+ "multiple": false,
11543
+ "type": "option"
11544
+ },
11545
+ "payload": {
11546
+ "description": "Payload JSON",
11547
+ "name": "payload",
11548
+ "hasDynamicHelp": false,
11549
+ "multiple": false,
11550
+ "type": "option"
11551
11551
  }
11552
11552
  },
11553
11553
  "hasDynamicHelp": false,
11554
11554
  "hiddenAliases": [],
11555
- "id": "team:list",
11555
+ "id": "webhooks:test",
11556
11556
  "pluginAlias": "@instantkom/cli",
11557
11557
  "pluginName": "@instantkom/cli",
11558
11558
  "pluginType": "core",
@@ -11562,8 +11562,8 @@
11562
11562
  "relativePath": [
11563
11563
  "dist",
11564
11564
  "commands",
11565
- "team",
11566
- "list.js"
11565
+ "webhooks",
11566
+ "test.js"
11567
11567
  ]
11568
11568
  },
11569
11569
  "auth:tokens:create": {
@@ -15856,16 +15856,16 @@
15856
15856
  "list.js"
15857
15857
  ]
15858
15858
  },
15859
- "tags:segments:list": {
15859
+ "tags:recipients:add": {
15860
15860
  "aliases": [],
15861
15861
  "args": {
15862
- "id": {
15862
+ "tagId": {
15863
15863
  "description": "Tag ID",
15864
- "name": "id",
15864
+ "name": "tagId",
15865
15865
  "required": true
15866
15866
  }
15867
15867
  },
15868
- "description": "List segments that use a specific tag",
15868
+ "description": "Assign a tag to recipients",
15869
15869
  "flags": {
15870
15870
  "api-key": {
15871
15871
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15929,18 +15929,10 @@
15929
15929
  "multiple": false,
15930
15930
  "type": "option"
15931
15931
  },
15932
- "page": {
15933
- "description": "Page number",
15934
- "name": "page",
15935
- "default": 1,
15936
- "hasDynamicHelp": false,
15937
- "multiple": false,
15938
- "type": "option"
15939
- },
15940
- "limit": {
15941
- "description": "Items per page",
15942
- "name": "limit",
15943
- "default": 20,
15932
+ "recipients": {
15933
+ "description": "Comma-separated recipient IDs",
15934
+ "name": "recipients",
15935
+ "required": true,
15944
15936
  "hasDynamicHelp": false,
15945
15937
  "multiple": false,
15946
15938
  "type": "option"
@@ -15948,7 +15940,7 @@
15948
15940
  },
15949
15941
  "hasDynamicHelp": false,
15950
15942
  "hiddenAliases": [],
15951
- "id": "tags:segments:list",
15943
+ "id": "tags:recipients:add",
15952
15944
  "pluginAlias": "@instantkom/cli",
15953
15945
  "pluginName": "@instantkom/cli",
15954
15946
  "pluginType": "core",
@@ -15959,11 +15951,11 @@
15959
15951
  "dist",
15960
15952
  "commands",
15961
15953
  "tags",
15962
- "segments",
15963
- "list.js"
15954
+ "recipients",
15955
+ "add.js"
15964
15956
  ]
15965
15957
  },
15966
- "tags:recipients:add": {
15958
+ "tags:recipients:remove": {
15967
15959
  "aliases": [],
15968
15960
  "args": {
15969
15961
  "tagId": {
@@ -15972,7 +15964,7 @@
15972
15964
  "required": true
15973
15965
  }
15974
15966
  },
15975
- "description": "Assign a tag to recipients",
15967
+ "description": "Remove a tag from recipients",
15976
15968
  "flags": {
15977
15969
  "api-key": {
15978
15970
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -16047,7 +16039,7 @@
16047
16039
  },
16048
16040
  "hasDynamicHelp": false,
16049
16041
  "hiddenAliases": [],
16050
- "id": "tags:recipients:add",
16042
+ "id": "tags:recipients:remove",
16051
16043
  "pluginAlias": "@instantkom/cli",
16052
16044
  "pluginName": "@instantkom/cli",
16053
16045
  "pluginType": "core",
@@ -16059,19 +16051,19 @@
16059
16051
  "commands",
16060
16052
  "tags",
16061
16053
  "recipients",
16062
- "add.js"
16054
+ "remove.js"
16063
16055
  ]
16064
16056
  },
16065
- "tags:recipients:remove": {
16057
+ "tags:segments:list": {
16066
16058
  "aliases": [],
16067
16059
  "args": {
16068
- "tagId": {
16060
+ "id": {
16069
16061
  "description": "Tag ID",
16070
- "name": "tagId",
16062
+ "name": "id",
16071
16063
  "required": true
16072
16064
  }
16073
16065
  },
16074
- "description": "Remove a tag from recipients",
16066
+ "description": "List segments that use a specific tag",
16075
16067
  "flags": {
16076
16068
  "api-key": {
16077
16069
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -16135,10 +16127,18 @@
16135
16127
  "multiple": false,
16136
16128
  "type": "option"
16137
16129
  },
16138
- "recipients": {
16139
- "description": "Comma-separated recipient IDs",
16140
- "name": "recipients",
16141
- "required": true,
16130
+ "page": {
16131
+ "description": "Page number",
16132
+ "name": "page",
16133
+ "default": 1,
16134
+ "hasDynamicHelp": false,
16135
+ "multiple": false,
16136
+ "type": "option"
16137
+ },
16138
+ "limit": {
16139
+ "description": "Items per page",
16140
+ "name": "limit",
16141
+ "default": 20,
16142
16142
  "hasDynamicHelp": false,
16143
16143
  "multiple": false,
16144
16144
  "type": "option"
@@ -16146,7 +16146,7 @@
16146
16146
  },
16147
16147
  "hasDynamicHelp": false,
16148
16148
  "hiddenAliases": [],
16149
- "id": "tags:recipients:remove",
16149
+ "id": "tags:segments:list",
16150
16150
  "pluginAlias": "@instantkom/cli",
16151
16151
  "pluginName": "@instantkom/cli",
16152
16152
  "pluginType": "core",
@@ -16157,8 +16157,8 @@
16157
16157
  "dist",
16158
16158
  "commands",
16159
16159
  "tags",
16160
- "recipients",
16161
- "remove.js"
16160
+ "segments",
16161
+ "list.js"
16162
16162
  ]
16163
16163
  },
16164
16164
  "ticket:messages:create": {
@@ -17052,5 +17052,5 @@
17052
17052
  ]
17053
17053
  }
17054
17054
  },
17055
- "version": "3.176.0"
17055
+ "version": "3.178.0"
17056
17056
  }