@instantkom/cli 3.152.0 → 3.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1073,6 +1073,40 @@
1073
1073
  "reply.js"
1074
1074
  ]
1075
1075
  },
1076
+ "autocomplete:script": {
1077
+ "aliases": [],
1078
+ "args": {
1079
+ "shell": {
1080
+ "description": "Shell type",
1081
+ "name": "shell",
1082
+ "options": [
1083
+ "zsh",
1084
+ "bash",
1085
+ "fish",
1086
+ "powershell"
1087
+ ],
1088
+ "required": false
1089
+ }
1090
+ },
1091
+ "description": "outputs autocomplete config script for shells",
1092
+ "flags": {},
1093
+ "hasDynamicHelp": false,
1094
+ "hidden": true,
1095
+ "hiddenAliases": [],
1096
+ "id": "autocomplete:script",
1097
+ "pluginAlias": "@instantkom/cli",
1098
+ "pluginName": "@instantkom/cli",
1099
+ "pluginType": "core",
1100
+ "strict": true,
1101
+ "enableJsonFlag": false,
1102
+ "isESM": true,
1103
+ "relativePath": [
1104
+ "dist",
1105
+ "commands",
1106
+ "autocomplete",
1107
+ "script.js"
1108
+ ]
1109
+ },
1076
1110
  "auth:login": {
1077
1111
  "aliases": [],
1078
1112
  "args": {},
@@ -1255,40 +1289,6 @@
1255
1289
  "logout.js"
1256
1290
  ]
1257
1291
  },
1258
- "autocomplete:script": {
1259
- "aliases": [],
1260
- "args": {
1261
- "shell": {
1262
- "description": "Shell type",
1263
- "name": "shell",
1264
- "options": [
1265
- "zsh",
1266
- "bash",
1267
- "fish",
1268
- "powershell"
1269
- ],
1270
- "required": false
1271
- }
1272
- },
1273
- "description": "outputs autocomplete config script for shells",
1274
- "flags": {},
1275
- "hasDynamicHelp": false,
1276
- "hidden": true,
1277
- "hiddenAliases": [],
1278
- "id": "autocomplete:script",
1279
- "pluginAlias": "@instantkom/cli",
1280
- "pluginName": "@instantkom/cli",
1281
- "pluginType": "core",
1282
- "strict": true,
1283
- "enableJsonFlag": false,
1284
- "isESM": true,
1285
- "relativePath": [
1286
- "dist",
1287
- "commands",
1288
- "autocomplete",
1289
- "script.js"
1290
- ]
1291
- },
1292
1292
  "bots:create": {
1293
1293
  "aliases": [],
1294
1294
  "args": {},
@@ -8150,10 +8150,10 @@
8150
8150
  "update.js"
8151
8151
  ]
8152
8152
  },
8153
- "team:create": {
8153
+ "tags:create": {
8154
8154
  "aliases": [],
8155
8155
  "args": {},
8156
- "description": "Create a team member",
8156
+ "description": "Create a tag",
8157
8157
  "flags": {
8158
8158
  "api-key": {
8159
8159
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8217,54 +8217,23 @@
8217
8217
  "multiple": false,
8218
8218
  "type": "option"
8219
8219
  },
8220
- "email": {
8221
- "description": "Email address",
8222
- "name": "email",
8223
- "required": true,
8224
- "hasDynamicHelp": false,
8225
- "multiple": false,
8226
- "type": "option"
8227
- },
8228
- "first-name": {
8229
- "description": "First name",
8230
- "name": "first-name",
8231
- "required": true,
8232
- "hasDynamicHelp": false,
8233
- "multiple": false,
8234
- "type": "option"
8235
- },
8236
- "last-name": {
8237
- "description": "Last name",
8238
- "name": "last-name",
8239
- "required": true,
8240
- "hasDynamicHelp": false,
8241
- "multiple": false,
8242
- "type": "option"
8243
- },
8244
- "password": {
8245
- "description": "Initial password",
8246
- "name": "password",
8220
+ "name": {
8221
+ "description": "Tag name",
8222
+ "name": "name",
8247
8223
  "required": true,
8248
8224
  "hasDynamicHelp": false,
8249
8225
  "multiple": false,
8250
8226
  "type": "option"
8251
8227
  },
8252
- "phone": {
8253
- "description": "Phone number",
8254
- "name": "phone",
8255
- "hasDynamicHelp": false,
8256
- "multiple": false,
8257
- "type": "option"
8258
- },
8259
- "company": {
8260
- "description": "Company name",
8261
- "name": "company",
8228
+ "description": {
8229
+ "description": "Tag description",
8230
+ "name": "description",
8262
8231
  "hasDynamicHelp": false,
8263
8232
  "multiple": false,
8264
8233
  "type": "option"
8265
8234
  },
8266
8235
  "color": {
8267
- "description": "Color as HEX",
8236
+ "description": "Tag color as HEX",
8268
8237
  "name": "color",
8269
8238
  "hasDynamicHelp": false,
8270
8239
  "multiple": false,
@@ -8287,7 +8256,7 @@
8287
8256
  },
8288
8257
  "hasDynamicHelp": false,
8289
8258
  "hiddenAliases": [],
8290
- "id": "team:create",
8259
+ "id": "tags:create",
8291
8260
  "pluginAlias": "@instantkom/cli",
8292
8261
  "pluginName": "@instantkom/cli",
8293
8262
  "pluginType": "core",
@@ -8297,20 +8266,20 @@
8297
8266
  "relativePath": [
8298
8267
  "dist",
8299
8268
  "commands",
8300
- "team",
8269
+ "tags",
8301
8270
  "create.js"
8302
8271
  ]
8303
8272
  },
8304
- "team:delete": {
8273
+ "tags:delete": {
8305
8274
  "aliases": [],
8306
8275
  "args": {
8307
8276
  "id": {
8308
- "description": "Team member ID",
8277
+ "description": "tag ID",
8309
8278
  "name": "id",
8310
8279
  "required": true
8311
8280
  }
8312
8281
  },
8313
- "description": "Delete a team member",
8282
+ "description": "Delete tag",
8314
8283
  "flags": {
8315
8284
  "api-key": {
8316
8285
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8377,7 +8346,7 @@
8377
8346
  },
8378
8347
  "hasDynamicHelp": false,
8379
8348
  "hiddenAliases": [],
8380
- "id": "team:delete",
8349
+ "id": "tags:delete",
8381
8350
  "pluginAlias": "@instantkom/cli",
8382
8351
  "pluginName": "@instantkom/cli",
8383
8352
  "pluginType": "core",
@@ -8387,14 +8356,14 @@
8387
8356
  "relativePath": [
8388
8357
  "dist",
8389
8358
  "commands",
8390
- "team",
8359
+ "tags",
8391
8360
  "delete.js"
8392
8361
  ]
8393
8362
  },
8394
- "team:list": {
8363
+ "tags:export": {
8395
8364
  "aliases": [],
8396
8365
  "args": {},
8397
- "description": "List team members",
8366
+ "description": "Export tags to a file",
8398
8367
  "flags": {
8399
8368
  "api-key": {
8400
8369
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8406,17 +8375,14 @@
8406
8375
  "type": "option"
8407
8376
  },
8408
8377
  "format": {
8409
- "description": "Output format: text, json, yaml, or table",
8410
- "helpGroup": "GLOBAL",
8378
+ "description": "Export format",
8411
8379
  "name": "format",
8412
- "default": "text",
8380
+ "default": "csv",
8413
8381
  "hasDynamicHelp": false,
8414
8382
  "multiple": false,
8415
8383
  "options": [
8416
- "text",
8417
- "json",
8418
- "yaml",
8419
- "table"
8384
+ "csv",
8385
+ "json"
8420
8386
  ],
8421
8387
  "type": "option"
8422
8388
  },
@@ -8457,11 +8423,19 @@
8457
8423
  "hasDynamicHelp": false,
8458
8424
  "multiple": false,
8459
8425
  "type": "option"
8426
+ },
8427
+ "file": {
8428
+ "description": "Output file path",
8429
+ "name": "file",
8430
+ "required": true,
8431
+ "hasDynamicHelp": false,
8432
+ "multiple": false,
8433
+ "type": "option"
8460
8434
  }
8461
8435
  },
8462
8436
  "hasDynamicHelp": false,
8463
8437
  "hiddenAliases": [],
8464
- "id": "team:list",
8438
+ "id": "tags:export",
8465
8439
  "pluginAlias": "@instantkom/cli",
8466
8440
  "pluginName": "@instantkom/cli",
8467
8441
  "pluginType": "core",
@@ -8471,14 +8445,20 @@
8471
8445
  "relativePath": [
8472
8446
  "dist",
8473
8447
  "commands",
8474
- "team",
8475
- "list.js"
8448
+ "tags",
8449
+ "export.js"
8476
8450
  ]
8477
8451
  },
8478
- "tags:create": {
8452
+ "tags:get": {
8479
8453
  "aliases": [],
8480
- "args": {},
8481
- "description": "Create a tag",
8454
+ "args": {
8455
+ "id": {
8456
+ "description": "tag ID",
8457
+ "name": "id",
8458
+ "required": true
8459
+ }
8460
+ },
8461
+ "description": "Get tag by ID",
8482
8462
  "flags": {
8483
8463
  "api-key": {
8484
8464
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8541,47 +8521,11 @@
8541
8521
  "hasDynamicHelp": false,
8542
8522
  "multiple": false,
8543
8523
  "type": "option"
8544
- },
8545
- "name": {
8546
- "description": "Tag name",
8547
- "name": "name",
8548
- "required": true,
8549
- "hasDynamicHelp": false,
8550
- "multiple": false,
8551
- "type": "option"
8552
- },
8553
- "description": {
8554
- "description": "Tag description",
8555
- "name": "description",
8556
- "hasDynamicHelp": false,
8557
- "multiple": false,
8558
- "type": "option"
8559
- },
8560
- "color": {
8561
- "description": "Tag color as HEX",
8562
- "name": "color",
8563
- "hasDynamicHelp": false,
8564
- "multiple": false,
8565
- "type": "option"
8566
- },
8567
- "folder": {
8568
- "description": "Object folder ID",
8569
- "name": "folder",
8570
- "hasDynamicHelp": false,
8571
- "multiple": false,
8572
- "type": "option"
8573
- },
8574
- "data": {
8575
- "description": "Additional JSON object payload",
8576
- "name": "data",
8577
- "hasDynamicHelp": false,
8578
- "multiple": false,
8579
- "type": "option"
8580
8524
  }
8581
8525
  },
8582
8526
  "hasDynamicHelp": false,
8583
8527
  "hiddenAliases": [],
8584
- "id": "tags:create",
8528
+ "id": "tags:get",
8585
8529
  "pluginAlias": "@instantkom/cli",
8586
8530
  "pluginName": "@instantkom/cli",
8587
8531
  "pluginType": "core",
@@ -8592,19 +8536,13 @@
8592
8536
  "dist",
8593
8537
  "commands",
8594
8538
  "tags",
8595
- "create.js"
8539
+ "get.js"
8596
8540
  ]
8597
8541
  },
8598
- "tags:delete": {
8542
+ "tags:import": {
8599
8543
  "aliases": [],
8600
- "args": {
8601
- "id": {
8602
- "description": "tag ID",
8603
- "name": "id",
8604
- "required": true
8605
- }
8606
- },
8607
- "description": "Delete tag",
8544
+ "args": {},
8545
+ "description": "Import tags from JSON",
8608
8546
  "flags": {
8609
8547
  "api-key": {
8610
8548
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8667,11 +8605,25 @@
8667
8605
  "hasDynamicHelp": false,
8668
8606
  "multiple": false,
8669
8607
  "type": "option"
8608
+ },
8609
+ "file": {
8610
+ "description": "JSON file path",
8611
+ "name": "file",
8612
+ "required": true,
8613
+ "hasDynamicHelp": false,
8614
+ "multiple": false,
8615
+ "type": "option"
8616
+ },
8617
+ "skip-duplicates": {
8618
+ "description": "Skip duplicate tags",
8619
+ "name": "skip-duplicates",
8620
+ "allowNo": true,
8621
+ "type": "boolean"
8670
8622
  }
8671
8623
  },
8672
8624
  "hasDynamicHelp": false,
8673
8625
  "hiddenAliases": [],
8674
- "id": "tags:delete",
8626
+ "id": "tags:import",
8675
8627
  "pluginAlias": "@instantkom/cli",
8676
8628
  "pluginName": "@instantkom/cli",
8677
8629
  "pluginType": "core",
@@ -8682,13 +8634,13 @@
8682
8634
  "dist",
8683
8635
  "commands",
8684
8636
  "tags",
8685
- "delete.js"
8637
+ "import.js"
8686
8638
  ]
8687
8639
  },
8688
- "tags:export": {
8640
+ "tags:list": {
8689
8641
  "aliases": [],
8690
8642
  "args": {},
8691
- "description": "Export tags to a file",
8643
+ "description": "List tags",
8692
8644
  "flags": {
8693
8645
  "api-key": {
8694
8646
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8700,17 +8652,20 @@
8700
8652
  "type": "option"
8701
8653
  },
8702
8654
  "format": {
8703
- "description": "Export format",
8655
+ "description": "Output format: text, json, yaml, or table",
8656
+ "helpGroup": "GLOBAL",
8704
8657
  "name": "format",
8705
- "default": "csv",
8658
+ "default": "text",
8706
8659
  "hasDynamicHelp": false,
8707
8660
  "multiple": false,
8708
8661
  "options": [
8709
- "csv",
8710
- "json"
8711
- ],
8712
- "type": "option"
8713
- },
8662
+ "text",
8663
+ "json",
8664
+ "yaml",
8665
+ "table"
8666
+ ],
8667
+ "type": "option"
8668
+ },
8714
8669
  "json": {
8715
8670
  "description": "Output in JSON format (alias for --format=json)",
8716
8671
  "helpGroup": "GLOBAL",
@@ -8749,10 +8704,32 @@
8749
8704
  "multiple": false,
8750
8705
  "type": "option"
8751
8706
  },
8752
- "file": {
8753
- "description": "Output file path",
8754
- "name": "file",
8755
- "required": true,
8707
+ "page": {
8708
+ "description": "Page number",
8709
+ "name": "page",
8710
+ "default": 1,
8711
+ "hasDynamicHelp": false,
8712
+ "multiple": false,
8713
+ "type": "option"
8714
+ },
8715
+ "limit": {
8716
+ "description": "Items per page",
8717
+ "name": "limit",
8718
+ "default": 20,
8719
+ "hasDynamicHelp": false,
8720
+ "multiple": false,
8721
+ "type": "option"
8722
+ },
8723
+ "search": {
8724
+ "description": "Search by name",
8725
+ "name": "search",
8726
+ "hasDynamicHelp": false,
8727
+ "multiple": false,
8728
+ "type": "option"
8729
+ },
8730
+ "color": {
8731
+ "description": "Filter by color",
8732
+ "name": "color",
8756
8733
  "hasDynamicHelp": false,
8757
8734
  "multiple": false,
8758
8735
  "type": "option"
@@ -8760,7 +8737,7 @@
8760
8737
  },
8761
8738
  "hasDynamicHelp": false,
8762
8739
  "hiddenAliases": [],
8763
- "id": "tags:export",
8740
+ "id": "tags:list",
8764
8741
  "pluginAlias": "@instantkom/cli",
8765
8742
  "pluginName": "@instantkom/cli",
8766
8743
  "pluginType": "core",
@@ -8771,19 +8748,19 @@
8771
8748
  "dist",
8772
8749
  "commands",
8773
8750
  "tags",
8774
- "export.js"
8751
+ "list.js"
8775
8752
  ]
8776
8753
  },
8777
- "tags:get": {
8754
+ "tags:update": {
8778
8755
  "aliases": [],
8779
8756
  "args": {
8780
8757
  "id": {
8781
- "description": "tag ID",
8758
+ "description": "Tag ID",
8782
8759
  "name": "id",
8783
8760
  "required": true
8784
8761
  }
8785
8762
  },
8786
- "description": "Get tag by ID",
8763
+ "description": "Update a tag",
8787
8764
  "flags": {
8788
8765
  "api-key": {
8789
8766
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8846,11 +8823,46 @@
8846
8823
  "hasDynamicHelp": false,
8847
8824
  "multiple": false,
8848
8825
  "type": "option"
8826
+ },
8827
+ "name": {
8828
+ "description": "Tag name",
8829
+ "name": "name",
8830
+ "hasDynamicHelp": false,
8831
+ "multiple": false,
8832
+ "type": "option"
8833
+ },
8834
+ "description": {
8835
+ "description": "Tag description",
8836
+ "name": "description",
8837
+ "hasDynamicHelp": false,
8838
+ "multiple": false,
8839
+ "type": "option"
8840
+ },
8841
+ "color": {
8842
+ "description": "Tag color as HEX",
8843
+ "name": "color",
8844
+ "hasDynamicHelp": false,
8845
+ "multiple": false,
8846
+ "type": "option"
8847
+ },
8848
+ "folder": {
8849
+ "description": "Object folder ID",
8850
+ "name": "folder",
8851
+ "hasDynamicHelp": false,
8852
+ "multiple": false,
8853
+ "type": "option"
8854
+ },
8855
+ "data": {
8856
+ "description": "Additional JSON object payload",
8857
+ "name": "data",
8858
+ "hasDynamicHelp": false,
8859
+ "multiple": false,
8860
+ "type": "option"
8849
8861
  }
8850
8862
  },
8851
8863
  "hasDynamicHelp": false,
8852
8864
  "hiddenAliases": [],
8853
- "id": "tags:get",
8865
+ "id": "tags:update",
8854
8866
  "pluginAlias": "@instantkom/cli",
8855
8867
  "pluginName": "@instantkom/cli",
8856
8868
  "pluginType": "core",
@@ -8861,13 +8873,13 @@
8861
8873
  "dist",
8862
8874
  "commands",
8863
8875
  "tags",
8864
- "get.js"
8876
+ "update.js"
8865
8877
  ]
8866
8878
  },
8867
- "tags:import": {
8879
+ "tags:validate-import": {
8868
8880
  "aliases": [],
8869
8881
  "args": {},
8870
- "description": "Import tags from JSON",
8882
+ "description": "Validate tags import JSON",
8871
8883
  "flags": {
8872
8884
  "api-key": {
8873
8885
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -8938,17 +8950,11 @@
8938
8950
  "hasDynamicHelp": false,
8939
8951
  "multiple": false,
8940
8952
  "type": "option"
8941
- },
8942
- "skip-duplicates": {
8943
- "description": "Skip duplicate tags",
8944
- "name": "skip-duplicates",
8945
- "allowNo": true,
8946
- "type": "boolean"
8947
8953
  }
8948
8954
  },
8949
8955
  "hasDynamicHelp": false,
8950
8956
  "hiddenAliases": [],
8951
- "id": "tags:import",
8957
+ "id": "tags:validate-import",
8952
8958
  "pluginAlias": "@instantkom/cli",
8953
8959
  "pluginName": "@instantkom/cli",
8954
8960
  "pluginType": "core",
@@ -8959,13 +8965,13 @@
8959
8965
  "dist",
8960
8966
  "commands",
8961
8967
  "tags",
8962
- "import.js"
8968
+ "validate-import.js"
8963
8969
  ]
8964
8970
  },
8965
- "tags:list": {
8971
+ "team:create": {
8966
8972
  "aliases": [],
8967
8973
  "args": {},
8968
- "description": "List tags",
8974
+ "description": "Create a team member",
8969
8975
  "flags": {
8970
8976
  "api-key": {
8971
8977
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9029,40 +9035,77 @@
9029
9035
  "multiple": false,
9030
9036
  "type": "option"
9031
9037
  },
9032
- "page": {
9033
- "description": "Page number",
9034
- "name": "page",
9035
- "default": 1,
9038
+ "email": {
9039
+ "description": "Email address",
9040
+ "name": "email",
9041
+ "required": true,
9036
9042
  "hasDynamicHelp": false,
9037
9043
  "multiple": false,
9038
9044
  "type": "option"
9039
9045
  },
9040
- "limit": {
9041
- "description": "Items per page",
9042
- "name": "limit",
9043
- "default": 20,
9046
+ "first-name": {
9047
+ "description": "First name",
9048
+ "name": "first-name",
9049
+ "required": true,
9044
9050
  "hasDynamicHelp": false,
9045
9051
  "multiple": false,
9046
9052
  "type": "option"
9047
9053
  },
9048
- "search": {
9049
- "description": "Search by name",
9050
- "name": "search",
9054
+ "last-name": {
9055
+ "description": "Last name",
9056
+ "name": "last-name",
9057
+ "required": true,
9058
+ "hasDynamicHelp": false,
9059
+ "multiple": false,
9060
+ "type": "option"
9061
+ },
9062
+ "password": {
9063
+ "description": "Initial password",
9064
+ "name": "password",
9065
+ "required": true,
9066
+ "hasDynamicHelp": false,
9067
+ "multiple": false,
9068
+ "type": "option"
9069
+ },
9070
+ "phone": {
9071
+ "description": "Phone number",
9072
+ "name": "phone",
9073
+ "hasDynamicHelp": false,
9074
+ "multiple": false,
9075
+ "type": "option"
9076
+ },
9077
+ "company": {
9078
+ "description": "Company name",
9079
+ "name": "company",
9051
9080
  "hasDynamicHelp": false,
9052
9081
  "multiple": false,
9053
9082
  "type": "option"
9054
9083
  },
9055
9084
  "color": {
9056
- "description": "Filter by color",
9085
+ "description": "Color as HEX",
9057
9086
  "name": "color",
9058
9087
  "hasDynamicHelp": false,
9059
9088
  "multiple": false,
9060
9089
  "type": "option"
9090
+ },
9091
+ "folder": {
9092
+ "description": "Object folder ID",
9093
+ "name": "folder",
9094
+ "hasDynamicHelp": false,
9095
+ "multiple": false,
9096
+ "type": "option"
9097
+ },
9098
+ "data": {
9099
+ "description": "Additional JSON object payload",
9100
+ "name": "data",
9101
+ "hasDynamicHelp": false,
9102
+ "multiple": false,
9103
+ "type": "option"
9061
9104
  }
9062
9105
  },
9063
9106
  "hasDynamicHelp": false,
9064
9107
  "hiddenAliases": [],
9065
- "id": "tags:list",
9108
+ "id": "team:create",
9066
9109
  "pluginAlias": "@instantkom/cli",
9067
9110
  "pluginName": "@instantkom/cli",
9068
9111
  "pluginType": "core",
@@ -9072,20 +9115,20 @@
9072
9115
  "relativePath": [
9073
9116
  "dist",
9074
9117
  "commands",
9075
- "tags",
9076
- "list.js"
9118
+ "team",
9119
+ "create.js"
9077
9120
  ]
9078
9121
  },
9079
- "tags:update": {
9122
+ "team:delete": {
9080
9123
  "aliases": [],
9081
9124
  "args": {
9082
9125
  "id": {
9083
- "description": "Tag ID",
9126
+ "description": "Team member ID",
9084
9127
  "name": "id",
9085
9128
  "required": true
9086
9129
  }
9087
9130
  },
9088
- "description": "Update a tag",
9131
+ "description": "Delete a team member",
9089
9132
  "flags": {
9090
9133
  "api-key": {
9091
9134
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9148,46 +9191,11 @@
9148
9191
  "hasDynamicHelp": false,
9149
9192
  "multiple": false,
9150
9193
  "type": "option"
9151
- },
9152
- "name": {
9153
- "description": "Tag name",
9154
- "name": "name",
9155
- "hasDynamicHelp": false,
9156
- "multiple": false,
9157
- "type": "option"
9158
- },
9159
- "description": {
9160
- "description": "Tag description",
9161
- "name": "description",
9162
- "hasDynamicHelp": false,
9163
- "multiple": false,
9164
- "type": "option"
9165
- },
9166
- "color": {
9167
- "description": "Tag color as HEX",
9168
- "name": "color",
9169
- "hasDynamicHelp": false,
9170
- "multiple": false,
9171
- "type": "option"
9172
- },
9173
- "folder": {
9174
- "description": "Object folder ID",
9175
- "name": "folder",
9176
- "hasDynamicHelp": false,
9177
- "multiple": false,
9178
- "type": "option"
9179
- },
9180
- "data": {
9181
- "description": "Additional JSON object payload",
9182
- "name": "data",
9183
- "hasDynamicHelp": false,
9184
- "multiple": false,
9185
- "type": "option"
9186
9194
  }
9187
9195
  },
9188
9196
  "hasDynamicHelp": false,
9189
9197
  "hiddenAliases": [],
9190
- "id": "tags:update",
9198
+ "id": "team:delete",
9191
9199
  "pluginAlias": "@instantkom/cli",
9192
9200
  "pluginName": "@instantkom/cli",
9193
9201
  "pluginType": "core",
@@ -9197,14 +9205,14 @@
9197
9205
  "relativePath": [
9198
9206
  "dist",
9199
9207
  "commands",
9200
- "tags",
9201
- "update.js"
9208
+ "team",
9209
+ "delete.js"
9202
9210
  ]
9203
9211
  },
9204
- "tags:validate-import": {
9212
+ "team:list": {
9205
9213
  "aliases": [],
9206
9214
  "args": {},
9207
- "description": "Validate tags import JSON",
9215
+ "description": "List team members",
9208
9216
  "flags": {
9209
9217
  "api-key": {
9210
9218
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9267,19 +9275,11 @@
9267
9275
  "hasDynamicHelp": false,
9268
9276
  "multiple": false,
9269
9277
  "type": "option"
9270
- },
9271
- "file": {
9272
- "description": "JSON file path",
9273
- "name": "file",
9274
- "required": true,
9275
- "hasDynamicHelp": false,
9276
- "multiple": false,
9277
- "type": "option"
9278
9278
  }
9279
9279
  },
9280
9280
  "hasDynamicHelp": false,
9281
9281
  "hiddenAliases": [],
9282
- "id": "tags:validate-import",
9282
+ "id": "team:list",
9283
9283
  "pluginAlias": "@instantkom/cli",
9284
9284
  "pluginName": "@instantkom/cli",
9285
9285
  "pluginType": "core",
@@ -9289,14 +9289,14 @@
9289
9289
  "relativePath": [
9290
9290
  "dist",
9291
9291
  "commands",
9292
- "tags",
9293
- "validate-import.js"
9292
+ "team",
9293
+ "list.js"
9294
9294
  ]
9295
9295
  },
9296
- "templates:create": {
9296
+ "tickets:create": {
9297
9297
  "aliases": [],
9298
9298
  "args": {},
9299
- "description": "Create a message template",
9299
+ "description": "Create a ticket",
9300
9300
  "flags": {
9301
9301
  "api-key": {
9302
9302
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9368,70 +9368,45 @@
9368
9368
  "multiple": false,
9369
9369
  "type": "option"
9370
9370
  },
9371
- "name": {
9372
- "description": "Template name",
9373
- "name": "name",
9371
+ "subject": {
9372
+ "description": "Ticket subject",
9373
+ "name": "subject",
9374
9374
  "required": true,
9375
9375
  "hasDynamicHelp": false,
9376
9376
  "multiple": false,
9377
9377
  "type": "option"
9378
9378
  },
9379
- "type": {
9380
- "description": "Template type",
9381
- "name": "type",
9382
- "default": "text",
9383
- "hasDynamicHelp": false,
9384
- "multiple": false,
9385
- "options": [
9386
- "text",
9387
- "image",
9388
- "video",
9389
- "document",
9390
- "audio",
9391
- "location",
9392
- "contact",
9393
- "interactive"
9394
- ],
9395
- "type": "option"
9396
- },
9397
- "message": {
9398
- "description": "Template message",
9399
- "name": "message",
9400
- "required": true,
9379
+ "recipient": {
9380
+ "description": "Existing recipient ID",
9381
+ "name": "recipient",
9401
9382
  "hasDynamicHelp": false,
9402
9383
  "multiple": false,
9403
9384
  "type": "option"
9404
9385
  },
9405
- "color": {
9406
- "description": "Template color as HEX",
9407
- "name": "color",
9386
+ "email": {
9387
+ "description": "Customer email",
9388
+ "name": "email",
9408
9389
  "hasDynamicHelp": false,
9409
9390
  "multiple": false,
9410
9391
  "type": "option"
9411
9392
  },
9412
- "status": {
9413
- "description": "Template is active",
9414
- "name": "status",
9415
- "allowNo": true,
9416
- "type": "boolean"
9417
- },
9418
- "whatsapp-language": {
9419
- "description": "WhatsApp template language",
9420
- "name": "whatsapp-language",
9393
+ "name": {
9394
+ "description": "Customer name",
9395
+ "name": "name",
9421
9396
  "hasDynamicHelp": false,
9422
9397
  "multiple": false,
9423
9398
  "type": "option"
9424
9399
  },
9425
- "buttons": {
9426
- "description": "Buttons JSON array/object",
9427
- "name": "buttons",
9400
+ "priority": {
9401
+ "description": "Ticket priority",
9402
+ "name": "priority",
9428
9403
  "hasDynamicHelp": false,
9429
9404
  "multiple": false,
9430
9405
  "type": "option"
9431
9406
  },
9432
- "header-footer": {
9433
- "description": "Header/footer JSON object",
9434
- "name": "header-footer",
9407
+ "source": {
9408
+ "description": "Ticket source",
9409
+ "name": "source",
9435
9410
  "hasDynamicHelp": false,
9436
9411
  "multiple": false,
9437
9412
  "type": "option"
@@ -9446,7 +9421,7 @@
9446
9421
  },
9447
9422
  "hasDynamicHelp": false,
9448
9423
  "hiddenAliases": [],
9449
- "id": "templates:create",
9424
+ "id": "tickets:create",
9450
9425
  "pluginAlias": "@instantkom/cli",
9451
9426
  "pluginName": "@instantkom/cli",
9452
9427
  "pluginType": "core",
@@ -9456,20 +9431,20 @@
9456
9431
  "relativePath": [
9457
9432
  "dist",
9458
9433
  "commands",
9459
- "templates",
9434
+ "tickets",
9460
9435
  "create.js"
9461
9436
  ]
9462
9437
  },
9463
- "templates:delete": {
9438
+ "tickets:delete": {
9464
9439
  "aliases": [],
9465
9440
  "args": {
9466
9441
  "id": {
9467
- "description": "template ID",
9442
+ "description": "Ticket ID",
9468
9443
  "name": "id",
9469
9444
  "required": true
9470
9445
  }
9471
9446
  },
9472
- "description": "Delete template",
9447
+ "description": "Delete a ticket",
9473
9448
  "flags": {
9474
9449
  "api-key": {
9475
9450
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9532,11 +9507,19 @@
9532
9507
  "hasDynamicHelp": false,
9533
9508
  "multiple": false,
9534
9509
  "type": "option"
9510
+ },
9511
+ "channel": {
9512
+ "description": "Channel ID",
9513
+ "name": "channel",
9514
+ "required": true,
9515
+ "hasDynamicHelp": false,
9516
+ "multiple": false,
9517
+ "type": "option"
9535
9518
  }
9536
9519
  },
9537
9520
  "hasDynamicHelp": false,
9538
9521
  "hiddenAliases": [],
9539
- "id": "templates:delete",
9522
+ "id": "tickets:delete",
9540
9523
  "pluginAlias": "@instantkom/cli",
9541
9524
  "pluginName": "@instantkom/cli",
9542
9525
  "pluginType": "core",
@@ -9546,14 +9529,20 @@
9546
9529
  "relativePath": [
9547
9530
  "dist",
9548
9531
  "commands",
9549
- "templates",
9532
+ "tickets",
9550
9533
  "delete.js"
9551
9534
  ]
9552
9535
  },
9553
- "templates:export": {
9536
+ "tickets:get": {
9554
9537
  "aliases": [],
9555
- "args": {},
9556
- "description": "Export templates to a file",
9538
+ "args": {
9539
+ "id": {
9540
+ "description": "Ticket ID",
9541
+ "name": "id",
9542
+ "required": true
9543
+ }
9544
+ },
9545
+ "description": "Get a ticket by ID",
9557
9546
  "flags": {
9558
9547
  "api-key": {
9559
9548
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9565,14 +9554,17 @@
9565
9554
  "type": "option"
9566
9555
  },
9567
9556
  "format": {
9568
- "description": "Export format",
9557
+ "description": "Output format: text, json, yaml, or table",
9558
+ "helpGroup": "GLOBAL",
9569
9559
  "name": "format",
9570
- "default": "json",
9560
+ "default": "text",
9571
9561
  "hasDynamicHelp": false,
9572
9562
  "multiple": false,
9573
9563
  "options": [
9574
- "csv",
9575
- "json"
9564
+ "text",
9565
+ "json",
9566
+ "yaml",
9567
+ "table"
9576
9568
  ],
9577
9569
  "type": "option"
9578
9570
  },
@@ -9614,17 +9606,10 @@
9614
9606
  "multiple": false,
9615
9607
  "type": "option"
9616
9608
  },
9617
- "file": {
9618
- "description": "Output file path",
9619
- "name": "file",
9620
- "required": true,
9621
- "hasDynamicHelp": false,
9622
- "multiple": false,
9623
- "type": "option"
9624
- },
9625
9609
  "channel": {
9626
- "description": "Filter by channel ID",
9610
+ "description": "Channel ID",
9627
9611
  "name": "channel",
9612
+ "required": true,
9628
9613
  "hasDynamicHelp": false,
9629
9614
  "multiple": false,
9630
9615
  "type": "option"
@@ -9632,7 +9617,7 @@
9632
9617
  },
9633
9618
  "hasDynamicHelp": false,
9634
9619
  "hiddenAliases": [],
9635
- "id": "templates:export",
9620
+ "id": "tickets:get",
9636
9621
  "pluginAlias": "@instantkom/cli",
9637
9622
  "pluginName": "@instantkom/cli",
9638
9623
  "pluginType": "core",
@@ -9642,20 +9627,14 @@
9642
9627
  "relativePath": [
9643
9628
  "dist",
9644
9629
  "commands",
9645
- "templates",
9646
- "export.js"
9630
+ "tickets",
9631
+ "get.js"
9647
9632
  ]
9648
9633
  },
9649
- "templates:get": {
9634
+ "tickets:list": {
9650
9635
  "aliases": [],
9651
- "args": {
9652
- "id": {
9653
- "description": "Template ID",
9654
- "name": "id",
9655
- "required": true
9656
- }
9657
- },
9658
- "description": "Get a message template by ID",
9636
+ "args": {},
9637
+ "description": "List tickets for a channel",
9659
9638
  "flags": {
9660
9639
  "api-key": {
9661
9640
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9718,11 +9697,35 @@
9718
9697
  "hasDynamicHelp": false,
9719
9698
  "multiple": false,
9720
9699
  "type": "option"
9700
+ },
9701
+ "channel": {
9702
+ "description": "Channel ID",
9703
+ "name": "channel",
9704
+ "required": true,
9705
+ "hasDynamicHelp": false,
9706
+ "multiple": false,
9707
+ "type": "option"
9708
+ },
9709
+ "limit": {
9710
+ "description": "Maximum tickets to return",
9711
+ "name": "limit",
9712
+ "default": 500,
9713
+ "hasDynamicHelp": false,
9714
+ "multiple": false,
9715
+ "type": "option"
9716
+ },
9717
+ "offset": {
9718
+ "description": "Number of tickets to skip",
9719
+ "name": "offset",
9720
+ "default": 0,
9721
+ "hasDynamicHelp": false,
9722
+ "multiple": false,
9723
+ "type": "option"
9721
9724
  }
9722
9725
  },
9723
9726
  "hasDynamicHelp": false,
9724
9727
  "hiddenAliases": [],
9725
- "id": "templates:get",
9728
+ "id": "tickets:list",
9726
9729
  "pluginAlias": "@instantkom/cli",
9727
9730
  "pluginName": "@instantkom/cli",
9728
9731
  "pluginType": "core",
@@ -9732,14 +9735,20 @@
9732
9735
  "relativePath": [
9733
9736
  "dist",
9734
9737
  "commands",
9735
- "templates",
9736
- "get.js"
9738
+ "tickets",
9739
+ "list.js"
9737
9740
  ]
9738
9741
  },
9739
- "templates:import": {
9742
+ "tickets:reply": {
9740
9743
  "aliases": [],
9741
- "args": {},
9742
- "description": "Import templates from JSON",
9744
+ "args": {
9745
+ "id": {
9746
+ "description": "Ticket ID",
9747
+ "name": "id",
9748
+ "required": true
9749
+ }
9750
+ },
9751
+ "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
9743
9752
  "flags": {
9744
9753
  "api-key": {
9745
9754
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9803,32 +9812,24 @@
9803
9812
  "multiple": false,
9804
9813
  "type": "option"
9805
9814
  },
9806
- "file": {
9807
- "description": "JSON file path",
9808
- "name": "file",
9809
- "required": true,
9810
- "hasDynamicHelp": false,
9811
- "multiple": false,
9812
- "type": "option"
9813
- },
9814
- "channel": {
9815
- "description": "Target channel ID",
9816
- "name": "channel",
9815
+ "message": {
9816
+ "description": "Reply body (raw text, no salutation or sign-off)",
9817
+ "name": "message",
9817
9818
  "required": true,
9818
9819
  "hasDynamicHelp": false,
9819
9820
  "multiple": false,
9820
9821
  "type": "option"
9821
9822
  },
9822
- "skip-duplicates": {
9823
- "description": "Skip duplicate templates",
9824
- "name": "skip-duplicates",
9825
- "allowNo": true,
9823
+ "close": {
9824
+ "description": "Close the ticket after sending the reply",
9825
+ "name": "close",
9826
+ "allowNo": false,
9826
9827
  "type": "boolean"
9827
9828
  }
9828
9829
  },
9829
9830
  "hasDynamicHelp": false,
9830
9831
  "hiddenAliases": [],
9831
- "id": "templates:import",
9832
+ "id": "tickets:reply",
9832
9833
  "pluginAlias": "@instantkom/cli",
9833
9834
  "pluginName": "@instantkom/cli",
9834
9835
  "pluginType": "core",
@@ -9838,14 +9839,20 @@
9838
9839
  "relativePath": [
9839
9840
  "dist",
9840
9841
  "commands",
9841
- "templates",
9842
- "import.js"
9842
+ "tickets",
9843
+ "reply.js"
9843
9844
  ]
9844
9845
  },
9845
- "templates:list": {
9846
+ "tickets:update": {
9846
9847
  "aliases": [],
9847
- "args": {},
9848
- "description": "List message templates",
9848
+ "args": {
9849
+ "id": {
9850
+ "description": "Ticket ID",
9851
+ "name": "id",
9852
+ "required": true
9853
+ }
9854
+ },
9855
+ "description": "Update a ticket",
9849
9856
  "flags": {
9850
9857
  "api-key": {
9851
9858
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -9910,31 +9917,50 @@
9910
9917
  "type": "option"
9911
9918
  },
9912
9919
  "channel": {
9913
- "description": "Filter by channel ID",
9920
+ "description": "Channel ID",
9914
9921
  "name": "channel",
9922
+ "required": true,
9915
9923
  "hasDynamicHelp": false,
9916
9924
  "multiple": false,
9917
9925
  "type": "option"
9918
9926
  },
9919
- "search": {
9920
- "description": "Search templates by name or content",
9921
- "name": "search",
9927
+ "subject": {
9928
+ "description": "Ticket subject",
9929
+ "name": "subject",
9922
9930
  "hasDynamicHelp": false,
9923
9931
  "multiple": false,
9924
9932
  "type": "option"
9925
9933
  },
9926
- "page": {
9927
- "description": "Page number",
9928
- "name": "page",
9929
- "default": 1,
9934
+ "priority": {
9935
+ "description": "Ticket priority",
9936
+ "name": "priority",
9930
9937
  "hasDynamicHelp": false,
9931
9938
  "multiple": false,
9932
9939
  "type": "option"
9933
9940
  },
9934
- "limit": {
9935
- "description": "Items per page",
9936
- "name": "limit",
9937
- "default": 20,
9941
+ "status": {
9942
+ "description": "Ticket status",
9943
+ "name": "status",
9944
+ "hasDynamicHelp": false,
9945
+ "multiple": false,
9946
+ "type": "option"
9947
+ },
9948
+ "assigned-to": {
9949
+ "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
9950
+ "name": "assigned-to",
9951
+ "hasDynamicHelp": false,
9952
+ "multiple": false,
9953
+ "type": "option"
9954
+ },
9955
+ "notify": {
9956
+ "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
9957
+ "name": "notify",
9958
+ "allowNo": true,
9959
+ "type": "boolean"
9960
+ },
9961
+ "data": {
9962
+ "description": "Additional JSON object payload",
9963
+ "name": "data",
9938
9964
  "hasDynamicHelp": false,
9939
9965
  "multiple": false,
9940
9966
  "type": "option"
@@ -9942,7 +9968,7 @@
9942
9968
  },
9943
9969
  "hasDynamicHelp": false,
9944
9970
  "hiddenAliases": [],
9945
- "id": "templates:list",
9971
+ "id": "tickets:update",
9946
9972
  "pluginAlias": "@instantkom/cli",
9947
9973
  "pluginName": "@instantkom/cli",
9948
9974
  "pluginType": "core",
@@ -9952,20 +9978,14 @@
9952
9978
  "relativePath": [
9953
9979
  "dist",
9954
9980
  "commands",
9955
- "templates",
9956
- "list.js"
9981
+ "tickets",
9982
+ "update.js"
9957
9983
  ]
9958
9984
  },
9959
- "templates:render": {
9985
+ "webhooks:add": {
9960
9986
  "aliases": [],
9961
- "args": {
9962
- "id": {
9963
- "description": "Template ID",
9964
- "name": "id",
9965
- "required": true
9966
- }
9967
- },
9968
- "description": "Render a message template locally",
9987
+ "args": {},
9988
+ "description": "Add a webhook subscription",
9969
9989
  "flags": {
9970
9990
  "api-key": {
9971
9991
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10029,17 +10049,33 @@
10029
10049
  "multiple": false,
10030
10050
  "type": "option"
10031
10051
  },
10032
- "vars": {
10033
- "description": "Template variable as key=value; may be repeated",
10034
- "name": "vars",
10052
+ "event": {
10053
+ "description": "Webhook event to subscribe to",
10054
+ "name": "event",
10055
+ "required": true,
10035
10056
  "hasDynamicHelp": false,
10036
- "multiple": true,
10057
+ "multiple": false,
10058
+ "options": [
10059
+ "new_contact",
10060
+ "new_message",
10061
+ "broadcast_sent",
10062
+ "contact_updated",
10063
+ "contact_opted_out"
10064
+ ],
10065
+ "type": "option"
10066
+ },
10067
+ "url": {
10068
+ "description": "HTTPS target URL that receives webhook POSTs",
10069
+ "name": "url",
10070
+ "required": true,
10071
+ "hasDynamicHelp": false,
10072
+ "multiple": false,
10037
10073
  "type": "option"
10038
10074
  }
10039
10075
  },
10040
10076
  "hasDynamicHelp": false,
10041
10077
  "hiddenAliases": [],
10042
- "id": "templates:render",
10078
+ "id": "webhooks:add",
10043
10079
  "pluginAlias": "@instantkom/cli",
10044
10080
  "pluginName": "@instantkom/cli",
10045
10081
  "pluginType": "core",
@@ -10049,20 +10085,14 @@
10049
10085
  "relativePath": [
10050
10086
  "dist",
10051
10087
  "commands",
10052
- "templates",
10053
- "render.js"
10088
+ "webhooks",
10089
+ "add.js"
10054
10090
  ]
10055
10091
  },
10056
- "templates:update": {
10092
+ "webhooks:events": {
10057
10093
  "aliases": [],
10058
- "args": {
10059
- "id": {
10060
- "description": "Template ID",
10061
- "name": "id",
10062
- "required": true
10063
- }
10064
- },
10065
- "description": "Update a message template",
10094
+ "args": {},
10095
+ "description": "List supported webhook event names",
10066
10096
  "flags": {
10067
10097
  "api-key": {
10068
10098
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10125,89 +10155,11 @@
10125
10155
  "hasDynamicHelp": false,
10126
10156
  "multiple": false,
10127
10157
  "type": "option"
10128
- },
10129
- "name": {
10130
- "description": "Template name",
10131
- "name": "name",
10132
- "hasDynamicHelp": false,
10133
- "multiple": false,
10134
- "type": "option"
10135
- },
10136
- "type": {
10137
- "description": "Template type",
10138
- "name": "type",
10139
- "hasDynamicHelp": false,
10140
- "multiple": false,
10141
- "options": [
10142
- "text",
10143
- "image",
10144
- "video",
10145
- "document",
10146
- "audio",
10147
- "location",
10148
- "contact",
10149
- "interactive"
10150
- ],
10151
- "type": "option"
10152
- },
10153
- "message": {
10154
- "description": "Template message",
10155
- "name": "message",
10156
- "hasDynamicHelp": false,
10157
- "multiple": false,
10158
- "type": "option"
10159
- },
10160
- "color": {
10161
- "description": "Template color as HEX",
10162
- "name": "color",
10163
- "hasDynamicHelp": false,
10164
- "multiple": false,
10165
- "type": "option"
10166
- },
10167
- "status": {
10168
- "description": "Template is active",
10169
- "name": "status",
10170
- "allowNo": true,
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",
10182
- "hasDynamicHelp": false,
10183
- "multiple": false,
10184
- "type": "option"
10185
- },
10186
- "buttons": {
10187
- "description": "Buttons JSON array/object",
10188
- "name": "buttons",
10189
- "hasDynamicHelp": false,
10190
- "multiple": false,
10191
- "type": "option"
10192
- },
10193
- "header-footer": {
10194
- "description": "Header/footer JSON object",
10195
- "name": "header-footer",
10196
- "hasDynamicHelp": false,
10197
- "multiple": false,
10198
- "type": "option"
10199
- },
10200
- "data": {
10201
- "description": "Additional JSON object payload",
10202
- "name": "data",
10203
- "hasDynamicHelp": false,
10204
- "multiple": false,
10205
- "type": "option"
10206
10158
  }
10207
10159
  },
10208
10160
  "hasDynamicHelp": false,
10209
10161
  "hiddenAliases": [],
10210
- "id": "templates:update",
10162
+ "id": "webhooks:events",
10211
10163
  "pluginAlias": "@instantkom/cli",
10212
10164
  "pluginName": "@instantkom/cli",
10213
10165
  "pluginType": "core",
@@ -10217,14 +10169,14 @@
10217
10169
  "relativePath": [
10218
10170
  "dist",
10219
10171
  "commands",
10220
- "templates",
10221
- "update.js"
10172
+ "webhooks",
10173
+ "events.js"
10222
10174
  ]
10223
10175
  },
10224
- "templates:validate-import": {
10176
+ "webhooks:list": {
10225
10177
  "aliases": [],
10226
10178
  "args": {},
10227
- "description": "Validate templates import JSON",
10179
+ "description": "List webhook subscriptions",
10228
10180
  "flags": {
10229
10181
  "api-key": {
10230
10182
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10287,27 +10239,11 @@
10287
10239
  "hasDynamicHelp": false,
10288
10240
  "multiple": false,
10289
10241
  "type": "option"
10290
- },
10291
- "file": {
10292
- "description": "JSON file path",
10293
- "name": "file",
10294
- "required": true,
10295
- "hasDynamicHelp": false,
10296
- "multiple": false,
10297
- "type": "option"
10298
- },
10299
- "channel": {
10300
- "description": "Target channel ID",
10301
- "name": "channel",
10302
- "required": true,
10303
- "hasDynamicHelp": false,
10304
- "multiple": false,
10305
- "type": "option"
10306
10242
  }
10307
10243
  },
10308
10244
  "hasDynamicHelp": false,
10309
10245
  "hiddenAliases": [],
10310
- "id": "templates:validate-import",
10246
+ "id": "webhooks:list",
10311
10247
  "pluginAlias": "@instantkom/cli",
10312
10248
  "pluginName": "@instantkom/cli",
10313
10249
  "pluginType": "core",
@@ -10317,14 +10253,14 @@
10317
10253
  "relativePath": [
10318
10254
  "dist",
10319
10255
  "commands",
10320
- "templates",
10321
- "validate-import.js"
10256
+ "webhooks",
10257
+ "list.js"
10322
10258
  ]
10323
10259
  },
10324
- "tickets:create": {
10260
+ "webhooks:logs": {
10325
10261
  "aliases": [],
10326
10262
  "args": {},
10327
- "description": "Create a ticket",
10263
+ "description": "Explain webhook log availability",
10328
10264
  "flags": {
10329
10265
  "api-key": {
10330
10266
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10387,69 +10323,11 @@
10387
10323
  "hasDynamicHelp": false,
10388
10324
  "multiple": false,
10389
10325
  "type": "option"
10390
- },
10391
- "channel": {
10392
- "description": "Channel ID",
10393
- "name": "channel",
10394
- "required": true,
10395
- "hasDynamicHelp": false,
10396
- "multiple": false,
10397
- "type": "option"
10398
- },
10399
- "subject": {
10400
- "description": "Ticket subject",
10401
- "name": "subject",
10402
- "required": true,
10403
- "hasDynamicHelp": false,
10404
- "multiple": false,
10405
- "type": "option"
10406
- },
10407
- "recipient": {
10408
- "description": "Existing recipient ID",
10409
- "name": "recipient",
10410
- "hasDynamicHelp": false,
10411
- "multiple": false,
10412
- "type": "option"
10413
- },
10414
- "email": {
10415
- "description": "Customer email",
10416
- "name": "email",
10417
- "hasDynamicHelp": false,
10418
- "multiple": false,
10419
- "type": "option"
10420
- },
10421
- "name": {
10422
- "description": "Customer name",
10423
- "name": "name",
10424
- "hasDynamicHelp": false,
10425
- "multiple": false,
10426
- "type": "option"
10427
- },
10428
- "priority": {
10429
- "description": "Ticket priority",
10430
- "name": "priority",
10431
- "hasDynamicHelp": false,
10432
- "multiple": false,
10433
- "type": "option"
10434
- },
10435
- "source": {
10436
- "description": "Ticket source",
10437
- "name": "source",
10438
- "hasDynamicHelp": false,
10439
- "multiple": false,
10440
- "type": "option"
10441
- },
10442
- "data": {
10443
- "description": "Additional JSON object payload",
10444
- "name": "data",
10445
- "hasDynamicHelp": false,
10446
- "multiple": false,
10447
- "type": "option"
10448
10326
  }
10449
10327
  },
10450
10328
  "hasDynamicHelp": false,
10451
10329
  "hiddenAliases": [],
10452
- "id": "tickets:create",
10330
+ "id": "webhooks:logs",
10453
10331
  "pluginAlias": "@instantkom/cli",
10454
10332
  "pluginName": "@instantkom/cli",
10455
10333
  "pluginType": "core",
@@ -10459,20 +10337,20 @@
10459
10337
  "relativePath": [
10460
10338
  "dist",
10461
10339
  "commands",
10462
- "tickets",
10463
- "create.js"
10340
+ "webhooks",
10341
+ "logs.js"
10464
10342
  ]
10465
10343
  },
10466
- "tickets:delete": {
10344
+ "webhooks:remove": {
10467
10345
  "aliases": [],
10468
10346
  "args": {
10469
10347
  "id": {
10470
- "description": "Ticket ID",
10348
+ "description": "Webhook subscription ID",
10471
10349
  "name": "id",
10472
10350
  "required": true
10473
10351
  }
10474
10352
  },
10475
- "description": "Delete a ticket",
10353
+ "description": "Remove a webhook subscription",
10476
10354
  "flags": {
10477
10355
  "api-key": {
10478
10356
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10535,19 +10413,11 @@
10535
10413
  "hasDynamicHelp": false,
10536
10414
  "multiple": false,
10537
10415
  "type": "option"
10538
- },
10539
- "channel": {
10540
- "description": "Channel ID",
10541
- "name": "channel",
10542
- "required": true,
10543
- "hasDynamicHelp": false,
10544
- "multiple": false,
10545
- "type": "option"
10546
10416
  }
10547
10417
  },
10548
10418
  "hasDynamicHelp": false,
10549
10419
  "hiddenAliases": [],
10550
- "id": "tickets:delete",
10420
+ "id": "webhooks:remove",
10551
10421
  "pluginAlias": "@instantkom/cli",
10552
10422
  "pluginName": "@instantkom/cli",
10553
10423
  "pluginType": "core",
@@ -10557,20 +10427,14 @@
10557
10427
  "relativePath": [
10558
10428
  "dist",
10559
10429
  "commands",
10560
- "tickets",
10561
- "delete.js"
10430
+ "webhooks",
10431
+ "remove.js"
10562
10432
  ]
10563
10433
  },
10564
- "tickets:get": {
10434
+ "webhooks:test": {
10565
10435
  "aliases": [],
10566
- "args": {
10567
- "id": {
10568
- "description": "Ticket ID",
10569
- "name": "id",
10570
- "required": true
10571
- }
10572
- },
10573
- "description": "Get a ticket by ID",
10436
+ "args": {},
10437
+ "description": "Send a test webhook payload to a URL",
10574
10438
  "flags": {
10575
10439
  "api-key": {
10576
10440
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10634,18 +10498,33 @@
10634
10498
  "multiple": false,
10635
10499
  "type": "option"
10636
10500
  },
10637
- "channel": {
10638
- "description": "Channel ID",
10639
- "name": "channel",
10501
+ "url": {
10502
+ "description": "Webhook URL to call",
10503
+ "name": "url",
10640
10504
  "required": true,
10641
10505
  "hasDynamicHelp": false,
10642
10506
  "multiple": false,
10643
10507
  "type": "option"
10508
+ },
10509
+ "event": {
10510
+ "description": "Event name",
10511
+ "name": "event",
10512
+ "default": "cli.test",
10513
+ "hasDynamicHelp": false,
10514
+ "multiple": false,
10515
+ "type": "option"
10516
+ },
10517
+ "payload": {
10518
+ "description": "Payload JSON",
10519
+ "name": "payload",
10520
+ "hasDynamicHelp": false,
10521
+ "multiple": false,
10522
+ "type": "option"
10644
10523
  }
10645
10524
  },
10646
10525
  "hasDynamicHelp": false,
10647
10526
  "hiddenAliases": [],
10648
- "id": "tickets:get",
10527
+ "id": "webhooks:test",
10649
10528
  "pluginAlias": "@instantkom/cli",
10650
10529
  "pluginName": "@instantkom/cli",
10651
10530
  "pluginType": "core",
@@ -10655,14 +10534,14 @@
10655
10534
  "relativePath": [
10656
10535
  "dist",
10657
10536
  "commands",
10658
- "tickets",
10659
- "get.js"
10537
+ "webhooks",
10538
+ "test.js"
10660
10539
  ]
10661
10540
  },
10662
- "tickets:list": {
10541
+ "templates:create": {
10663
10542
  "aliases": [],
10664
10543
  "args": {},
10665
- "description": "List tickets for a channel",
10544
+ "description": "Create a message template",
10666
10545
  "flags": {
10667
10546
  "api-key": {
10668
10547
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10734,18 +10613,77 @@
10734
10613
  "multiple": false,
10735
10614
  "type": "option"
10736
10615
  },
10737
- "limit": {
10738
- "description": "Maximum tickets to return",
10739
- "name": "limit",
10740
- "default": 500,
10616
+ "name": {
10617
+ "description": "Template name",
10618
+ "name": "name",
10619
+ "required": true,
10741
10620
  "hasDynamicHelp": false,
10742
10621
  "multiple": false,
10743
10622
  "type": "option"
10744
10623
  },
10745
- "offset": {
10746
- "description": "Number of tickets to skip",
10747
- "name": "offset",
10748
- "default": 0,
10624
+ "type": {
10625
+ "description": "Template type",
10626
+ "name": "type",
10627
+ "default": "text",
10628
+ "hasDynamicHelp": false,
10629
+ "multiple": false,
10630
+ "options": [
10631
+ "text",
10632
+ "image",
10633
+ "video",
10634
+ "document",
10635
+ "audio",
10636
+ "location",
10637
+ "contact",
10638
+ "interactive"
10639
+ ],
10640
+ "type": "option"
10641
+ },
10642
+ "message": {
10643
+ "description": "Template message",
10644
+ "name": "message",
10645
+ "required": true,
10646
+ "hasDynamicHelp": false,
10647
+ "multiple": false,
10648
+ "type": "option"
10649
+ },
10650
+ "color": {
10651
+ "description": "Template color as HEX",
10652
+ "name": "color",
10653
+ "hasDynamicHelp": false,
10654
+ "multiple": false,
10655
+ "type": "option"
10656
+ },
10657
+ "status": {
10658
+ "description": "Template is active",
10659
+ "name": "status",
10660
+ "allowNo": true,
10661
+ "type": "boolean"
10662
+ },
10663
+ "whatsapp-language": {
10664
+ "description": "WhatsApp template language",
10665
+ "name": "whatsapp-language",
10666
+ "hasDynamicHelp": false,
10667
+ "multiple": false,
10668
+ "type": "option"
10669
+ },
10670
+ "buttons": {
10671
+ "description": "Buttons JSON array/object",
10672
+ "name": "buttons",
10673
+ "hasDynamicHelp": false,
10674
+ "multiple": false,
10675
+ "type": "option"
10676
+ },
10677
+ "header-footer": {
10678
+ "description": "Header/footer JSON object",
10679
+ "name": "header-footer",
10680
+ "hasDynamicHelp": false,
10681
+ "multiple": false,
10682
+ "type": "option"
10683
+ },
10684
+ "data": {
10685
+ "description": "Additional JSON object payload",
10686
+ "name": "data",
10749
10687
  "hasDynamicHelp": false,
10750
10688
  "multiple": false,
10751
10689
  "type": "option"
@@ -10753,7 +10691,7 @@
10753
10691
  },
10754
10692
  "hasDynamicHelp": false,
10755
10693
  "hiddenAliases": [],
10756
- "id": "tickets:list",
10694
+ "id": "templates:create",
10757
10695
  "pluginAlias": "@instantkom/cli",
10758
10696
  "pluginName": "@instantkom/cli",
10759
10697
  "pluginType": "core",
@@ -10763,20 +10701,20 @@
10763
10701
  "relativePath": [
10764
10702
  "dist",
10765
10703
  "commands",
10766
- "tickets",
10767
- "list.js"
10704
+ "templates",
10705
+ "create.js"
10768
10706
  ]
10769
10707
  },
10770
- "tickets:reply": {
10708
+ "templates:delete": {
10771
10709
  "aliases": [],
10772
10710
  "args": {
10773
10711
  "id": {
10774
- "description": "Ticket ID",
10712
+ "description": "template ID",
10775
10713
  "name": "id",
10776
10714
  "required": true
10777
10715
  }
10778
10716
  },
10779
- "description": "Send a real support reply on a ticket. Delivers the message to the customer and records it in both the ticket history and the Nachrichtenprotokoll. Provide raw body text only; the ticket system auto-prepends the personalised salutation and auto-appends the localised footer for email-channel tickets. Adding your own greetings causes duplicated headers/footers.",
10717
+ "description": "Delete template",
10780
10718
  "flags": {
10781
10719
  "api-key": {
10782
10720
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10839,25 +10777,11 @@
10839
10777
  "hasDynamicHelp": false,
10840
10778
  "multiple": false,
10841
10779
  "type": "option"
10842
- },
10843
- "message": {
10844
- "description": "Reply body (raw text, no salutation or sign-off)",
10845
- "name": "message",
10846
- "required": true,
10847
- "hasDynamicHelp": false,
10848
- "multiple": false,
10849
- "type": "option"
10850
- },
10851
- "close": {
10852
- "description": "Close the ticket after sending the reply",
10853
- "name": "close",
10854
- "allowNo": false,
10855
- "type": "boolean"
10856
10780
  }
10857
10781
  },
10858
10782
  "hasDynamicHelp": false,
10859
10783
  "hiddenAliases": [],
10860
- "id": "tickets:reply",
10784
+ "id": "templates:delete",
10861
10785
  "pluginAlias": "@instantkom/cli",
10862
10786
  "pluginName": "@instantkom/cli",
10863
10787
  "pluginType": "core",
@@ -10867,20 +10791,14 @@
10867
10791
  "relativePath": [
10868
10792
  "dist",
10869
10793
  "commands",
10870
- "tickets",
10871
- "reply.js"
10794
+ "templates",
10795
+ "delete.js"
10872
10796
  ]
10873
10797
  },
10874
- "tickets:update": {
10798
+ "templates:export": {
10875
10799
  "aliases": [],
10876
- "args": {
10877
- "id": {
10878
- "description": "Ticket ID",
10879
- "name": "id",
10880
- "required": true
10881
- }
10882
- },
10883
- "description": "Update a ticket",
10800
+ "args": {},
10801
+ "description": "Export templates to a file",
10884
10802
  "flags": {
10885
10803
  "api-key": {
10886
10804
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -10892,17 +10810,14 @@
10892
10810
  "type": "option"
10893
10811
  },
10894
10812
  "format": {
10895
- "description": "Output format: text, json, yaml, or table",
10896
- "helpGroup": "GLOBAL",
10813
+ "description": "Export format",
10897
10814
  "name": "format",
10898
- "default": "text",
10815
+ "default": "json",
10899
10816
  "hasDynamicHelp": false,
10900
10817
  "multiple": false,
10901
10818
  "options": [
10902
- "text",
10903
- "json",
10904
- "yaml",
10905
- "table"
10819
+ "csv",
10820
+ "json"
10906
10821
  ],
10907
10822
  "type": "option"
10908
10823
  },
@@ -10944,51 +10859,17 @@
10944
10859
  "multiple": false,
10945
10860
  "type": "option"
10946
10861
  },
10947
- "channel": {
10948
- "description": "Channel ID",
10949
- "name": "channel",
10862
+ "file": {
10863
+ "description": "Output file path",
10864
+ "name": "file",
10950
10865
  "required": true,
10951
10866
  "hasDynamicHelp": false,
10952
10867
  "multiple": false,
10953
10868
  "type": "option"
10954
10869
  },
10955
- "subject": {
10956
- "description": "Ticket subject",
10957
- "name": "subject",
10958
- "hasDynamicHelp": false,
10959
- "multiple": false,
10960
- "type": "option"
10961
- },
10962
- "priority": {
10963
- "description": "Ticket priority",
10964
- "name": "priority",
10965
- "hasDynamicHelp": false,
10966
- "multiple": false,
10967
- "type": "option"
10968
- },
10969
- "status": {
10970
- "description": "Ticket status",
10971
- "name": "status",
10972
- "hasDynamicHelp": false,
10973
- "multiple": false,
10974
- "type": "option"
10975
- },
10976
- "assigned-to": {
10977
- "description": "User ID to assign the ticket to (use -1 or omit to leave unchanged)",
10978
- "name": "assigned-to",
10979
- "hasDynamicHelp": false,
10980
- "multiple": false,
10981
- "type": "option"
10982
- },
10983
- "notify": {
10984
- "description": "Trigger the legacy notification chain for transitions that have one. On --assigned-to change: fires TICKET_ASSIGN (assignee email plus optional customer reply via tickets_assign_reply_sts). On --status closed transition: fires TICKET_CLOSE (optional customer reply via tickets_close_reply_sts). Defaults to true. Use --no-notify for silent updates.",
10985
- "name": "notify",
10986
- "allowNo": true,
10987
- "type": "boolean"
10988
- },
10989
- "data": {
10990
- "description": "Additional JSON object payload",
10991
- "name": "data",
10870
+ "channel": {
10871
+ "description": "Filter by channel ID",
10872
+ "name": "channel",
10992
10873
  "hasDynamicHelp": false,
10993
10874
  "multiple": false,
10994
10875
  "type": "option"
@@ -10996,7 +10877,7 @@
10996
10877
  },
10997
10878
  "hasDynamicHelp": false,
10998
10879
  "hiddenAliases": [],
10999
- "id": "tickets:update",
10880
+ "id": "templates:export",
11000
10881
  "pluginAlias": "@instantkom/cli",
11001
10882
  "pluginName": "@instantkom/cli",
11002
10883
  "pluginType": "core",
@@ -11006,14 +10887,20 @@
11006
10887
  "relativePath": [
11007
10888
  "dist",
11008
10889
  "commands",
11009
- "tickets",
11010
- "update.js"
10890
+ "templates",
10891
+ "export.js"
11011
10892
  ]
11012
10893
  },
11013
- "webhooks:add": {
10894
+ "templates:get": {
11014
10895
  "aliases": [],
11015
- "args": {},
11016
- "description": "Add a webhook subscription",
10896
+ "args": {
10897
+ "id": {
10898
+ "description": "Template ID",
10899
+ "name": "id",
10900
+ "required": true
10901
+ }
10902
+ },
10903
+ "description": "Get a message template by ID",
11017
10904
  "flags": {
11018
10905
  "api-key": {
11019
10906
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11076,34 +10963,11 @@
11076
10963
  "hasDynamicHelp": false,
11077
10964
  "multiple": false,
11078
10965
  "type": "option"
11079
- },
11080
- "event": {
11081
- "description": "Webhook event to subscribe to",
11082
- "name": "event",
11083
- "required": true,
11084
- "hasDynamicHelp": false,
11085
- "multiple": false,
11086
- "options": [
11087
- "new_contact",
11088
- "new_message",
11089
- "broadcast_sent",
11090
- "contact_updated",
11091
- "contact_opted_out"
11092
- ],
11093
- "type": "option"
11094
- },
11095
- "url": {
11096
- "description": "HTTPS target URL that receives webhook POSTs",
11097
- "name": "url",
11098
- "required": true,
11099
- "hasDynamicHelp": false,
11100
- "multiple": false,
11101
- "type": "option"
11102
10966
  }
11103
10967
  },
11104
10968
  "hasDynamicHelp": false,
11105
10969
  "hiddenAliases": [],
11106
- "id": "webhooks:add",
10970
+ "id": "templates:get",
11107
10971
  "pluginAlias": "@instantkom/cli",
11108
10972
  "pluginName": "@instantkom/cli",
11109
10973
  "pluginType": "core",
@@ -11113,14 +10977,14 @@
11113
10977
  "relativePath": [
11114
10978
  "dist",
11115
10979
  "commands",
11116
- "webhooks",
11117
- "add.js"
10980
+ "templates",
10981
+ "get.js"
11118
10982
  ]
11119
10983
  },
11120
- "webhooks:events": {
10984
+ "templates:import": {
11121
10985
  "aliases": [],
11122
10986
  "args": {},
11123
- "description": "List supported webhook event names",
10987
+ "description": "Import templates from JSON",
11124
10988
  "flags": {
11125
10989
  "api-key": {
11126
10990
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11183,11 +11047,33 @@
11183
11047
  "hasDynamicHelp": false,
11184
11048
  "multiple": false,
11185
11049
  "type": "option"
11050
+ },
11051
+ "file": {
11052
+ "description": "JSON file path",
11053
+ "name": "file",
11054
+ "required": true,
11055
+ "hasDynamicHelp": false,
11056
+ "multiple": false,
11057
+ "type": "option"
11058
+ },
11059
+ "channel": {
11060
+ "description": "Target channel ID",
11061
+ "name": "channel",
11062
+ "required": true,
11063
+ "hasDynamicHelp": false,
11064
+ "multiple": false,
11065
+ "type": "option"
11066
+ },
11067
+ "skip-duplicates": {
11068
+ "description": "Skip duplicate templates",
11069
+ "name": "skip-duplicates",
11070
+ "allowNo": true,
11071
+ "type": "boolean"
11186
11072
  }
11187
11073
  },
11188
11074
  "hasDynamicHelp": false,
11189
11075
  "hiddenAliases": [],
11190
- "id": "webhooks:events",
11076
+ "id": "templates:import",
11191
11077
  "pluginAlias": "@instantkom/cli",
11192
11078
  "pluginName": "@instantkom/cli",
11193
11079
  "pluginType": "core",
@@ -11197,14 +11083,14 @@
11197
11083
  "relativePath": [
11198
11084
  "dist",
11199
11085
  "commands",
11200
- "webhooks",
11201
- "events.js"
11086
+ "templates",
11087
+ "import.js"
11202
11088
  ]
11203
11089
  },
11204
- "webhooks:list": {
11090
+ "templates:list": {
11205
11091
  "aliases": [],
11206
11092
  "args": {},
11207
- "description": "List webhook subscriptions",
11093
+ "description": "List message templates",
11208
11094
  "flags": {
11209
11095
  "api-key": {
11210
11096
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11267,11 +11153,41 @@
11267
11153
  "hasDynamicHelp": false,
11268
11154
  "multiple": false,
11269
11155
  "type": "option"
11156
+ },
11157
+ "channel": {
11158
+ "description": "Filter by channel ID",
11159
+ "name": "channel",
11160
+ "hasDynamicHelp": false,
11161
+ "multiple": false,
11162
+ "type": "option"
11163
+ },
11164
+ "search": {
11165
+ "description": "Search templates by name or content",
11166
+ "name": "search",
11167
+ "hasDynamicHelp": false,
11168
+ "multiple": false,
11169
+ "type": "option"
11170
+ },
11171
+ "page": {
11172
+ "description": "Page number",
11173
+ "name": "page",
11174
+ "default": 1,
11175
+ "hasDynamicHelp": false,
11176
+ "multiple": false,
11177
+ "type": "option"
11178
+ },
11179
+ "limit": {
11180
+ "description": "Items per page",
11181
+ "name": "limit",
11182
+ "default": 20,
11183
+ "hasDynamicHelp": false,
11184
+ "multiple": false,
11185
+ "type": "option"
11270
11186
  }
11271
11187
  },
11272
11188
  "hasDynamicHelp": false,
11273
11189
  "hiddenAliases": [],
11274
- "id": "webhooks:list",
11190
+ "id": "templates:list",
11275
11191
  "pluginAlias": "@instantkom/cli",
11276
11192
  "pluginName": "@instantkom/cli",
11277
11193
  "pluginType": "core",
@@ -11281,14 +11197,20 @@
11281
11197
  "relativePath": [
11282
11198
  "dist",
11283
11199
  "commands",
11284
- "webhooks",
11200
+ "templates",
11285
11201
  "list.js"
11286
11202
  ]
11287
11203
  },
11288
- "webhooks:logs": {
11204
+ "templates:render": {
11289
11205
  "aliases": [],
11290
- "args": {},
11291
- "description": "Explain webhook log availability",
11206
+ "args": {
11207
+ "id": {
11208
+ "description": "Template ID",
11209
+ "name": "id",
11210
+ "required": true
11211
+ }
11212
+ },
11213
+ "description": "Render a message template locally",
11292
11214
  "flags": {
11293
11215
  "api-key": {
11294
11216
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11351,11 +11273,18 @@
11351
11273
  "hasDynamicHelp": false,
11352
11274
  "multiple": false,
11353
11275
  "type": "option"
11276
+ },
11277
+ "vars": {
11278
+ "description": "Template variable as key=value; may be repeated",
11279
+ "name": "vars",
11280
+ "hasDynamicHelp": false,
11281
+ "multiple": true,
11282
+ "type": "option"
11354
11283
  }
11355
11284
  },
11356
11285
  "hasDynamicHelp": false,
11357
11286
  "hiddenAliases": [],
11358
- "id": "webhooks:logs",
11287
+ "id": "templates:render",
11359
11288
  "pluginAlias": "@instantkom/cli",
11360
11289
  "pluginName": "@instantkom/cli",
11361
11290
  "pluginType": "core",
@@ -11365,20 +11294,20 @@
11365
11294
  "relativePath": [
11366
11295
  "dist",
11367
11296
  "commands",
11368
- "webhooks",
11369
- "logs.js"
11297
+ "templates",
11298
+ "render.js"
11370
11299
  ]
11371
11300
  },
11372
- "webhooks:remove": {
11301
+ "templates:update": {
11373
11302
  "aliases": [],
11374
11303
  "args": {
11375
11304
  "id": {
11376
- "description": "Webhook subscription ID",
11305
+ "description": "Template ID",
11377
11306
  "name": "id",
11378
11307
  "required": true
11379
11308
  }
11380
11309
  },
11381
- "description": "Remove a webhook subscription",
11310
+ "description": "Update a message template",
11382
11311
  "flags": {
11383
11312
  "api-key": {
11384
11313
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11441,11 +11370,89 @@
11441
11370
  "hasDynamicHelp": false,
11442
11371
  "multiple": false,
11443
11372
  "type": "option"
11373
+ },
11374
+ "name": {
11375
+ "description": "Template name",
11376
+ "name": "name",
11377
+ "hasDynamicHelp": false,
11378
+ "multiple": false,
11379
+ "type": "option"
11380
+ },
11381
+ "type": {
11382
+ "description": "Template type",
11383
+ "name": "type",
11384
+ "hasDynamicHelp": false,
11385
+ "multiple": false,
11386
+ "options": [
11387
+ "text",
11388
+ "image",
11389
+ "video",
11390
+ "document",
11391
+ "audio",
11392
+ "location",
11393
+ "contact",
11394
+ "interactive"
11395
+ ],
11396
+ "type": "option"
11397
+ },
11398
+ "message": {
11399
+ "description": "Template message",
11400
+ "name": "message",
11401
+ "hasDynamicHelp": false,
11402
+ "multiple": false,
11403
+ "type": "option"
11404
+ },
11405
+ "color": {
11406
+ "description": "Template color as HEX",
11407
+ "name": "color",
11408
+ "hasDynamicHelp": false,
11409
+ "multiple": false,
11410
+ "type": "option"
11411
+ },
11412
+ "status": {
11413
+ "description": "Template is active",
11414
+ "name": "status",
11415
+ "allowNo": true,
11416
+ "type": "boolean"
11417
+ },
11418
+ "remove-media": {
11419
+ "description": "Remove existing media",
11420
+ "name": "remove-media",
11421
+ "allowNo": false,
11422
+ "type": "boolean"
11423
+ },
11424
+ "whatsapp-language": {
11425
+ "description": "WhatsApp template language",
11426
+ "name": "whatsapp-language",
11427
+ "hasDynamicHelp": false,
11428
+ "multiple": false,
11429
+ "type": "option"
11430
+ },
11431
+ "buttons": {
11432
+ "description": "Buttons JSON array/object",
11433
+ "name": "buttons",
11434
+ "hasDynamicHelp": false,
11435
+ "multiple": false,
11436
+ "type": "option"
11437
+ },
11438
+ "header-footer": {
11439
+ "description": "Header/footer JSON object",
11440
+ "name": "header-footer",
11441
+ "hasDynamicHelp": false,
11442
+ "multiple": false,
11443
+ "type": "option"
11444
+ },
11445
+ "data": {
11446
+ "description": "Additional JSON object payload",
11447
+ "name": "data",
11448
+ "hasDynamicHelp": false,
11449
+ "multiple": false,
11450
+ "type": "option"
11444
11451
  }
11445
11452
  },
11446
11453
  "hasDynamicHelp": false,
11447
11454
  "hiddenAliases": [],
11448
- "id": "webhooks:remove",
11455
+ "id": "templates:update",
11449
11456
  "pluginAlias": "@instantkom/cli",
11450
11457
  "pluginName": "@instantkom/cli",
11451
11458
  "pluginType": "core",
@@ -11455,14 +11462,14 @@
11455
11462
  "relativePath": [
11456
11463
  "dist",
11457
11464
  "commands",
11458
- "webhooks",
11459
- "remove.js"
11465
+ "templates",
11466
+ "update.js"
11460
11467
  ]
11461
11468
  },
11462
- "webhooks:test": {
11469
+ "templates:validate-import": {
11463
11470
  "aliases": [],
11464
11471
  "args": {},
11465
- "description": "Send a test webhook payload to a URL",
11472
+ "description": "Validate templates import JSON",
11466
11473
  "flags": {
11467
11474
  "api-key": {
11468
11475
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11526,25 +11533,18 @@
11526
11533
  "multiple": false,
11527
11534
  "type": "option"
11528
11535
  },
11529
- "url": {
11530
- "description": "Webhook URL to call",
11531
- "name": "url",
11536
+ "file": {
11537
+ "description": "JSON file path",
11538
+ "name": "file",
11532
11539
  "required": true,
11533
11540
  "hasDynamicHelp": false,
11534
11541
  "multiple": false,
11535
11542
  "type": "option"
11536
11543
  },
11537
- "event": {
11538
- "description": "Event name",
11539
- "name": "event",
11540
- "default": "cli.test",
11541
- "hasDynamicHelp": false,
11542
- "multiple": false,
11543
- "type": "option"
11544
- },
11545
- "payload": {
11546
- "description": "Payload JSON",
11547
- "name": "payload",
11544
+ "channel": {
11545
+ "description": "Target channel ID",
11546
+ "name": "channel",
11547
+ "required": true,
11548
11548
  "hasDynamicHelp": false,
11549
11549
  "multiple": false,
11550
11550
  "type": "option"
@@ -11552,7 +11552,7 @@
11552
11552
  },
11553
11553
  "hasDynamicHelp": false,
11554
11554
  "hiddenAliases": [],
11555
- "id": "webhooks:test",
11555
+ "id": "templates:validate-import",
11556
11556
  "pluginAlias": "@instantkom/cli",
11557
11557
  "pluginName": "@instantkom/cli",
11558
11558
  "pluginType": "core",
@@ -11562,8 +11562,8 @@
11562
11562
  "relativePath": [
11563
11563
  "dist",
11564
11564
  "commands",
11565
- "webhooks",
11566
- "test.js"
11565
+ "templates",
11566
+ "validate-import.js"
11567
11567
  ]
11568
11568
  },
11569
11569
  "auth:tokens:create": {
@@ -11856,16 +11856,16 @@
11856
11856
  "revoke.js"
11857
11857
  ]
11858
11858
  },
11859
- "bots:filters:create": {
11859
+ "bots:env-vars:bots": {
11860
11860
  "aliases": [],
11861
11861
  "args": {
11862
- "botId": {
11863
- "description": "Bot ID",
11864
- "name": "botId",
11862
+ "id": {
11863
+ "description": "Environment variable ID",
11864
+ "name": "id",
11865
11865
  "required": true
11866
11866
  }
11867
11867
  },
11868
- "description": "Create a bot filter",
11868
+ "description": "List bots using a bot environment variable",
11869
11869
  "flags": {
11870
11870
  "api-key": {
11871
11871
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -11928,77 +11928,11 @@
11928
11928
  "hasDynamicHelp": false,
11929
11929
  "multiple": false,
11930
11930
  "type": "option"
11931
- },
11932
- "name": {
11933
- "description": "Filter name",
11934
- "name": "name",
11935
- "required": true,
11936
- "hasDynamicHelp": false,
11937
- "multiple": false,
11938
- "type": "option"
11939
- },
11940
- "operator": {
11941
- "description": "Logical operator",
11942
- "name": "operator",
11943
- "default": "and",
11944
- "hasDynamicHelp": false,
11945
- "multiple": false,
11946
- "type": "option"
11947
- },
11948
- "filter-object": {
11949
- "description": "Filter object type",
11950
- "name": "filter-object",
11951
- "default": "msg",
11952
- "hasDynamicHelp": false,
11953
- "multiple": false,
11954
- "type": "option"
11955
- },
11956
- "filter-attribute": {
11957
- "description": "Filter attribute",
11958
- "name": "filter-attribute",
11959
- "default": "text",
11960
- "hasDynamicHelp": false,
11961
- "multiple": false,
11962
- "type": "option"
11963
- },
11964
- "filter-comparator": {
11965
- "description": "Filter comparator",
11966
- "name": "filter-comparator",
11967
- "default": "contains",
11968
- "hasDynamicHelp": false,
11969
- "multiple": false,
11970
- "type": "option"
11971
- },
11972
- "filter-value": {
11973
- "description": "Filter value",
11974
- "name": "filter-value",
11975
- "required": true,
11976
- "hasDynamicHelp": false,
11977
- "multiple": false,
11978
- "type": "option"
11979
- },
11980
- "status": {
11981
- "description": "Status: 0 inactive, 1 active",
11982
- "name": "status",
11983
- "hasDynamicHelp": false,
11984
- "multiple": false,
11985
- "options": [
11986
- "0",
11987
- "1"
11988
- ],
11989
- "type": "option"
11990
- },
11991
- "data": {
11992
- "description": "Additional JSON object payload",
11993
- "name": "data",
11994
- "hasDynamicHelp": false,
11995
- "multiple": false,
11996
- "type": "option"
11997
11931
  }
11998
11932
  },
11999
11933
  "hasDynamicHelp": false,
12000
11934
  "hiddenAliases": [],
12001
- "id": "bots:filters:create",
11935
+ "id": "bots:env-vars:bots",
12002
11936
  "pluginAlias": "@instantkom/cli",
12003
11937
  "pluginName": "@instantkom/cli",
12004
11938
  "pluginType": "core",
@@ -12009,25 +11943,14 @@
12009
11943
  "dist",
12010
11944
  "commands",
12011
11945
  "bots",
12012
- "filters",
12013
- "create.js"
11946
+ "env-vars",
11947
+ "bots.js"
12014
11948
  ]
12015
11949
  },
12016
- "bots:filters:delete": {
11950
+ "bots:env-vars:create": {
12017
11951
  "aliases": [],
12018
- "args": {
12019
- "botId": {
12020
- "description": "Bot ID",
12021
- "name": "botId",
12022
- "required": true
12023
- },
12024
- "filterId": {
12025
- "description": "Filter ID",
12026
- "name": "filterId",
12027
- "required": true
12028
- }
12029
- },
12030
- "description": "Delete a bot filter",
11952
+ "args": {},
11953
+ "description": "Create a bot environment variable",
12031
11954
  "flags": {
12032
11955
  "api-key": {
12033
11956
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12090,11 +12013,40 @@
12090
12013
  "hasDynamicHelp": false,
12091
12014
  "multiple": false,
12092
12015
  "type": "option"
12016
+ },
12017
+ "key": {
12018
+ "description": "Variable key (max 16 chars, letters, digits, underscore)",
12019
+ "name": "key",
12020
+ "required": true,
12021
+ "hasDynamicHelp": false,
12022
+ "multiple": false,
12023
+ "type": "option"
12024
+ },
12025
+ "description": {
12026
+ "description": "Variable description",
12027
+ "name": "description",
12028
+ "hasDynamicHelp": false,
12029
+ "multiple": false,
12030
+ "type": "option"
12031
+ },
12032
+ "color": {
12033
+ "description": "Variable color as HEX",
12034
+ "name": "color",
12035
+ "hasDynamicHelp": false,
12036
+ "multiple": false,
12037
+ "type": "option"
12038
+ },
12039
+ "data": {
12040
+ "description": "Additional JSON object payload",
12041
+ "name": "data",
12042
+ "hasDynamicHelp": false,
12043
+ "multiple": false,
12044
+ "type": "option"
12093
12045
  }
12094
12046
  },
12095
12047
  "hasDynamicHelp": false,
12096
12048
  "hiddenAliases": [],
12097
- "id": "bots:filters:delete",
12049
+ "id": "bots:env-vars:create",
12098
12050
  "pluginAlias": "@instantkom/cli",
12099
12051
  "pluginName": "@instantkom/cli",
12100
12052
  "pluginType": "core",
@@ -12105,25 +12057,20 @@
12105
12057
  "dist",
12106
12058
  "commands",
12107
12059
  "bots",
12108
- "filters",
12109
- "delete.js"
12060
+ "env-vars",
12061
+ "create.js"
12110
12062
  ]
12111
12063
  },
12112
- "bots:filters:get": {
12064
+ "bots:env-vars:delete": {
12113
12065
  "aliases": [],
12114
12066
  "args": {
12115
- "botId": {
12116
- "description": "Bot ID",
12117
- "name": "botId",
12118
- "required": true
12119
- },
12120
- "filterId": {
12121
- "description": "Filter ID",
12122
- "name": "filterId",
12067
+ "id": {
12068
+ "description": "Environment variable ID",
12069
+ "name": "id",
12123
12070
  "required": true
12124
12071
  }
12125
12072
  },
12126
- "description": "Get a bot filter",
12073
+ "description": "Delete a bot environment variable",
12127
12074
  "flags": {
12128
12075
  "api-key": {
12129
12076
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12190,7 +12137,7 @@
12190
12137
  },
12191
12138
  "hasDynamicHelp": false,
12192
12139
  "hiddenAliases": [],
12193
- "id": "bots:filters:get",
12140
+ "id": "bots:env-vars:delete",
12194
12141
  "pluginAlias": "@instantkom/cli",
12195
12142
  "pluginName": "@instantkom/cli",
12196
12143
  "pluginType": "core",
@@ -12201,20 +12148,20 @@
12201
12148
  "dist",
12202
12149
  "commands",
12203
12150
  "bots",
12204
- "filters",
12205
- "get.js"
12151
+ "env-vars",
12152
+ "delete.js"
12206
12153
  ]
12207
12154
  },
12208
- "bots:filters:list": {
12155
+ "bots:env-vars:get": {
12209
12156
  "aliases": [],
12210
12157
  "args": {
12211
- "botId": {
12212
- "description": "Bot ID",
12213
- "name": "botId",
12158
+ "id": {
12159
+ "description": "Environment variable ID",
12160
+ "name": "id",
12214
12161
  "required": true
12215
12162
  }
12216
12163
  },
12217
- "description": "List bot filters",
12164
+ "description": "Get a bot environment variable",
12218
12165
  "flags": {
12219
12166
  "api-key": {
12220
12167
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12277,45 +12224,11 @@
12277
12224
  "hasDynamicHelp": false,
12278
12225
  "multiple": false,
12279
12226
  "type": "option"
12280
- },
12281
- "page": {
12282
- "description": "Page number",
12283
- "name": "page",
12284
- "default": 1,
12285
- "hasDynamicHelp": false,
12286
- "multiple": false,
12287
- "type": "option"
12288
- },
12289
- "limit": {
12290
- "description": "Items per page",
12291
- "name": "limit",
12292
- "default": 20,
12293
- "hasDynamicHelp": false,
12294
- "multiple": false,
12295
- "type": "option"
12296
- },
12297
- "status": {
12298
- "description": "Status filter: 0 inactive, 1 active",
12299
- "name": "status",
12300
- "hasDynamicHelp": false,
12301
- "multiple": false,
12302
- "options": [
12303
- "0",
12304
- "1"
12305
- ],
12306
- "type": "option"
12307
- },
12308
- "search": {
12309
- "description": "Search in name or description",
12310
- "name": "search",
12311
- "hasDynamicHelp": false,
12312
- "multiple": false,
12313
- "type": "option"
12314
12227
  }
12315
12228
  },
12316
12229
  "hasDynamicHelp": false,
12317
12230
  "hiddenAliases": [],
12318
- "id": "bots:filters:list",
12231
+ "id": "bots:env-vars:get",
12319
12232
  "pluginAlias": "@instantkom/cli",
12320
12233
  "pluginName": "@instantkom/cli",
12321
12234
  "pluginType": "core",
@@ -12326,25 +12239,14 @@
12326
12239
  "dist",
12327
12240
  "commands",
12328
12241
  "bots",
12329
- "filters",
12330
- "list.js"
12242
+ "env-vars",
12243
+ "get.js"
12331
12244
  ]
12332
12245
  },
12333
- "bots:filters:update": {
12246
+ "bots:env-vars:list": {
12334
12247
  "aliases": [],
12335
- "args": {
12336
- "botId": {
12337
- "description": "Bot ID",
12338
- "name": "botId",
12339
- "required": true
12340
- },
12341
- "filterId": {
12342
- "description": "Filter ID",
12343
- "name": "filterId",
12344
- "required": true
12345
- }
12346
- },
12347
- "description": "Update a bot filter",
12248
+ "args": {},
12249
+ "description": "List bot environment variables",
12348
12250
  "flags": {
12349
12251
  "api-key": {
12350
12252
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12408,62 +12310,32 @@
12408
12310
  "multiple": false,
12409
12311
  "type": "option"
12410
12312
  },
12411
- "name": {
12412
- "description": "Filter name",
12413
- "name": "name",
12414
- "hasDynamicHelp": false,
12415
- "multiple": false,
12416
- "type": "option"
12417
- },
12418
- "operator": {
12419
- "description": "Logical operator",
12420
- "name": "operator",
12421
- "hasDynamicHelp": false,
12422
- "multiple": false,
12423
- "type": "option"
12424
- },
12425
- "filter-object": {
12426
- "description": "Filter object type",
12427
- "name": "filter-object",
12428
- "hasDynamicHelp": false,
12429
- "multiple": false,
12430
- "type": "option"
12431
- },
12432
- "filter-attribute": {
12433
- "description": "Filter attribute",
12434
- "name": "filter-attribute",
12435
- "hasDynamicHelp": false,
12436
- "multiple": false,
12437
- "type": "option"
12438
- },
12439
- "filter-comparator": {
12440
- "description": "Filter comparator",
12441
- "name": "filter-comparator",
12313
+ "page": {
12314
+ "description": "Page number",
12315
+ "name": "page",
12316
+ "default": 1,
12442
12317
  "hasDynamicHelp": false,
12443
12318
  "multiple": false,
12444
12319
  "type": "option"
12445
12320
  },
12446
- "filter-value": {
12447
- "description": "Filter value",
12448
- "name": "filter-value",
12321
+ "limit": {
12322
+ "description": "Items per page",
12323
+ "name": "limit",
12324
+ "default": 20,
12449
12325
  "hasDynamicHelp": false,
12450
12326
  "multiple": false,
12451
12327
  "type": "option"
12452
12328
  },
12453
- "status": {
12454
- "description": "Status: 0 inactive, 1 active",
12455
- "name": "status",
12329
+ "search": {
12330
+ "description": "Search in key or description",
12331
+ "name": "search",
12456
12332
  "hasDynamicHelp": false,
12457
12333
  "multiple": false,
12458
- "options": [
12459
- "0",
12460
- "1"
12461
- ],
12462
12334
  "type": "option"
12463
12335
  },
12464
- "data": {
12465
- "description": "Additional JSON object payload",
12466
- "name": "data",
12336
+ "color": {
12337
+ "description": "Filter by color",
12338
+ "name": "color",
12467
12339
  "hasDynamicHelp": false,
12468
12340
  "multiple": false,
12469
12341
  "type": "option"
@@ -12471,7 +12343,7 @@
12471
12343
  },
12472
12344
  "hasDynamicHelp": false,
12473
12345
  "hiddenAliases": [],
12474
- "id": "bots:filters:update",
12346
+ "id": "bots:env-vars:list",
12475
12347
  "pluginAlias": "@instantkom/cli",
12476
12348
  "pluginName": "@instantkom/cli",
12477
12349
  "pluginType": "core",
@@ -12482,11 +12354,11 @@
12482
12354
  "dist",
12483
12355
  "commands",
12484
12356
  "bots",
12485
- "filters",
12486
- "update.js"
12357
+ "env-vars",
12358
+ "list.js"
12487
12359
  ]
12488
12360
  },
12489
- "bots:env-vars:bots": {
12361
+ "bots:env-vars:update": {
12490
12362
  "aliases": [],
12491
12363
  "args": {
12492
12364
  "id": {
@@ -12495,7 +12367,7 @@
12495
12367
  "required": true
12496
12368
  }
12497
12369
  },
12498
- "description": "List bots using a bot environment variable",
12370
+ "description": "Update a bot environment variable",
12499
12371
  "flags": {
12500
12372
  "api-key": {
12501
12373
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12558,11 +12430,32 @@
12558
12430
  "hasDynamicHelp": false,
12559
12431
  "multiple": false,
12560
12432
  "type": "option"
12433
+ },
12434
+ "description": {
12435
+ "description": "Variable description",
12436
+ "name": "description",
12437
+ "hasDynamicHelp": false,
12438
+ "multiple": false,
12439
+ "type": "option"
12440
+ },
12441
+ "color": {
12442
+ "description": "Variable color as HEX",
12443
+ "name": "color",
12444
+ "hasDynamicHelp": false,
12445
+ "multiple": false,
12446
+ "type": "option"
12447
+ },
12448
+ "data": {
12449
+ "description": "Additional JSON object payload",
12450
+ "name": "data",
12451
+ "hasDynamicHelp": false,
12452
+ "multiple": false,
12453
+ "type": "option"
12561
12454
  }
12562
12455
  },
12563
12456
  "hasDynamicHelp": false,
12564
12457
  "hiddenAliases": [],
12565
- "id": "bots:env-vars:bots",
12458
+ "id": "bots:env-vars:update",
12566
12459
  "pluginAlias": "@instantkom/cli",
12567
12460
  "pluginName": "@instantkom/cli",
12568
12461
  "pluginType": "core",
@@ -12574,13 +12467,19 @@
12574
12467
  "commands",
12575
12468
  "bots",
12576
12469
  "env-vars",
12577
- "bots.js"
12470
+ "update.js"
12578
12471
  ]
12579
12472
  },
12580
- "bots:env-vars:create": {
12473
+ "bots:env-vars:values": {
12581
12474
  "aliases": [],
12582
- "args": {},
12583
- "description": "Create a bot environment variable",
12475
+ "args": {
12476
+ "id": {
12477
+ "description": "Environment variable ID",
12478
+ "name": "id",
12479
+ "required": true
12480
+ }
12481
+ },
12482
+ "description": "List recipient values for a bot environment variable",
12584
12483
  "flags": {
12585
12484
  "api-key": {
12586
12485
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12644,31 +12543,32 @@
12644
12543
  "multiple": false,
12645
12544
  "type": "option"
12646
12545
  },
12647
- "key": {
12648
- "description": "Variable key (max 16 chars, letters, digits, underscore)",
12649
- "name": "key",
12650
- "required": true,
12546
+ "page": {
12547
+ "description": "Page number",
12548
+ "name": "page",
12549
+ "default": 1,
12651
12550
  "hasDynamicHelp": false,
12652
12551
  "multiple": false,
12653
12552
  "type": "option"
12654
12553
  },
12655
- "description": {
12656
- "description": "Variable description",
12657
- "name": "description",
12554
+ "limit": {
12555
+ "description": "Items per page",
12556
+ "name": "limit",
12557
+ "default": 20,
12658
12558
  "hasDynamicHelp": false,
12659
12559
  "multiple": false,
12660
12560
  "type": "option"
12661
12561
  },
12662
- "color": {
12663
- "description": "Variable color as HEX",
12664
- "name": "color",
12562
+ "search": {
12563
+ "description": "Search in recipient name or identifier",
12564
+ "name": "search",
12665
12565
  "hasDynamicHelp": false,
12666
12566
  "multiple": false,
12667
12567
  "type": "option"
12668
12568
  },
12669
- "data": {
12670
- "description": "Additional JSON object payload",
12671
- "name": "data",
12569
+ "recipient": {
12570
+ "description": "Filter by recipient ID",
12571
+ "name": "recipient",
12672
12572
  "hasDynamicHelp": false,
12673
12573
  "multiple": false,
12674
12574
  "type": "option"
@@ -12676,7 +12576,7 @@
12676
12576
  },
12677
12577
  "hasDynamicHelp": false,
12678
12578
  "hiddenAliases": [],
12679
- "id": "bots:env-vars:create",
12579
+ "id": "bots:env-vars:values",
12680
12580
  "pluginAlias": "@instantkom/cli",
12681
12581
  "pluginName": "@instantkom/cli",
12682
12582
  "pluginType": "core",
@@ -12688,19 +12588,19 @@
12688
12588
  "commands",
12689
12589
  "bots",
12690
12590
  "env-vars",
12691
- "create.js"
12591
+ "values.js"
12692
12592
  ]
12693
12593
  },
12694
- "bots:env-vars:delete": {
12594
+ "bots:filters:create": {
12695
12595
  "aliases": [],
12696
12596
  "args": {
12697
- "id": {
12698
- "description": "Environment variable ID",
12699
- "name": "id",
12597
+ "botId": {
12598
+ "description": "Bot ID",
12599
+ "name": "botId",
12700
12600
  "required": true
12701
12601
  }
12702
12602
  },
12703
- "description": "Delete a bot environment variable",
12603
+ "description": "Create a bot filter",
12704
12604
  "flags": {
12705
12605
  "api-key": {
12706
12606
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12763,11 +12663,77 @@
12763
12663
  "hasDynamicHelp": false,
12764
12664
  "multiple": false,
12765
12665
  "type": "option"
12666
+ },
12667
+ "name": {
12668
+ "description": "Filter name",
12669
+ "name": "name",
12670
+ "required": true,
12671
+ "hasDynamicHelp": false,
12672
+ "multiple": false,
12673
+ "type": "option"
12674
+ },
12675
+ "operator": {
12676
+ "description": "Logical operator",
12677
+ "name": "operator",
12678
+ "default": "and",
12679
+ "hasDynamicHelp": false,
12680
+ "multiple": false,
12681
+ "type": "option"
12682
+ },
12683
+ "filter-object": {
12684
+ "description": "Filter object type",
12685
+ "name": "filter-object",
12686
+ "default": "msg",
12687
+ "hasDynamicHelp": false,
12688
+ "multiple": false,
12689
+ "type": "option"
12690
+ },
12691
+ "filter-attribute": {
12692
+ "description": "Filter attribute",
12693
+ "name": "filter-attribute",
12694
+ "default": "text",
12695
+ "hasDynamicHelp": false,
12696
+ "multiple": false,
12697
+ "type": "option"
12698
+ },
12699
+ "filter-comparator": {
12700
+ "description": "Filter comparator",
12701
+ "name": "filter-comparator",
12702
+ "default": "contains",
12703
+ "hasDynamicHelp": false,
12704
+ "multiple": false,
12705
+ "type": "option"
12706
+ },
12707
+ "filter-value": {
12708
+ "description": "Filter value",
12709
+ "name": "filter-value",
12710
+ "required": true,
12711
+ "hasDynamicHelp": false,
12712
+ "multiple": false,
12713
+ "type": "option"
12714
+ },
12715
+ "status": {
12716
+ "description": "Status: 0 inactive, 1 active",
12717
+ "name": "status",
12718
+ "hasDynamicHelp": false,
12719
+ "multiple": false,
12720
+ "options": [
12721
+ "0",
12722
+ "1"
12723
+ ],
12724
+ "type": "option"
12725
+ },
12726
+ "data": {
12727
+ "description": "Additional JSON object payload",
12728
+ "name": "data",
12729
+ "hasDynamicHelp": false,
12730
+ "multiple": false,
12731
+ "type": "option"
12766
12732
  }
12767
12733
  },
12768
12734
  "hasDynamicHelp": false,
12769
12735
  "hiddenAliases": [],
12770
- "id": "bots:env-vars:delete",
12736
+ "id": "bots:filters:create",
12771
12737
  "pluginAlias": "@instantkom/cli",
12772
12738
  "pluginName": "@instantkom/cli",
12773
12739
  "pluginType": "core",
@@ -12778,20 +12744,25 @@
12778
12744
  "dist",
12779
12745
  "commands",
12780
12746
  "bots",
12781
- "env-vars",
12782
- "delete.js"
12747
+ "filters",
12748
+ "create.js"
12783
12749
  ]
12784
12750
  },
12785
- "bots:env-vars:get": {
12751
+ "bots:filters:delete": {
12786
12752
  "aliases": [],
12787
12753
  "args": {
12788
- "id": {
12789
- "description": "Environment variable ID",
12790
- "name": "id",
12754
+ "botId": {
12755
+ "description": "Bot ID",
12756
+ "name": "botId",
12757
+ "required": true
12758
+ },
12759
+ "filterId": {
12760
+ "description": "Filter ID",
12761
+ "name": "filterId",
12791
12762
  "required": true
12792
12763
  }
12793
12764
  },
12794
- "description": "Get a bot environment variable",
12765
+ "description": "Delete a bot filter",
12795
12766
  "flags": {
12796
12767
  "api-key": {
12797
12768
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12858,7 +12829,7 @@
12858
12829
  },
12859
12830
  "hasDynamicHelp": false,
12860
12831
  "hiddenAliases": [],
12861
- "id": "bots:env-vars:get",
12832
+ "id": "bots:filters:delete",
12862
12833
  "pluginAlias": "@instantkom/cli",
12863
12834
  "pluginName": "@instantkom/cli",
12864
12835
  "pluginType": "core",
@@ -12869,14 +12840,25 @@
12869
12840
  "dist",
12870
12841
  "commands",
12871
12842
  "bots",
12872
- "env-vars",
12873
- "get.js"
12843
+ "filters",
12844
+ "delete.js"
12874
12845
  ]
12875
12846
  },
12876
- "bots:env-vars:list": {
12847
+ "bots:filters:get": {
12877
12848
  "aliases": [],
12878
- "args": {},
12879
- "description": "List bot environment variables",
12849
+ "args": {
12850
+ "botId": {
12851
+ "description": "Bot ID",
12852
+ "name": "botId",
12853
+ "required": true
12854
+ },
12855
+ "filterId": {
12856
+ "description": "Filter ID",
12857
+ "name": "filterId",
12858
+ "required": true
12859
+ }
12860
+ },
12861
+ "description": "Get a bot filter",
12880
12862
  "flags": {
12881
12863
  "api-key": {
12882
12864
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -12939,41 +12921,11 @@
12939
12921
  "hasDynamicHelp": false,
12940
12922
  "multiple": false,
12941
12923
  "type": "option"
12942
- },
12943
- "page": {
12944
- "description": "Page number",
12945
- "name": "page",
12946
- "default": 1,
12947
- "hasDynamicHelp": false,
12948
- "multiple": false,
12949
- "type": "option"
12950
- },
12951
- "limit": {
12952
- "description": "Items per page",
12953
- "name": "limit",
12954
- "default": 20,
12955
- "hasDynamicHelp": false,
12956
- "multiple": false,
12957
- "type": "option"
12958
- },
12959
- "search": {
12960
- "description": "Search in key or description",
12961
- "name": "search",
12962
- "hasDynamicHelp": false,
12963
- "multiple": false,
12964
- "type": "option"
12965
- },
12966
- "color": {
12967
- "description": "Filter by color",
12968
- "name": "color",
12969
- "hasDynamicHelp": false,
12970
- "multiple": false,
12971
- "type": "option"
12972
12924
  }
12973
12925
  },
12974
12926
  "hasDynamicHelp": false,
12975
12927
  "hiddenAliases": [],
12976
- "id": "bots:env-vars:list",
12928
+ "id": "bots:filters:get",
12977
12929
  "pluginAlias": "@instantkom/cli",
12978
12930
  "pluginName": "@instantkom/cli",
12979
12931
  "pluginType": "core",
@@ -12984,20 +12936,20 @@
12984
12936
  "dist",
12985
12937
  "commands",
12986
12938
  "bots",
12987
- "env-vars",
12988
- "list.js"
12939
+ "filters",
12940
+ "get.js"
12989
12941
  ]
12990
12942
  },
12991
- "bots:env-vars:update": {
12943
+ "bots:filters:list": {
12992
12944
  "aliases": [],
12993
12945
  "args": {
12994
- "id": {
12995
- "description": "Environment variable ID",
12996
- "name": "id",
12946
+ "botId": {
12947
+ "description": "Bot ID",
12948
+ "name": "botId",
12997
12949
  "required": true
12998
12950
  }
12999
12951
  },
13000
- "description": "Update a bot environment variable",
12952
+ "description": "List bot filters",
13001
12953
  "flags": {
13002
12954
  "api-key": {
13003
12955
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13061,23 +13013,36 @@
13061
13013
  "multiple": false,
13062
13014
  "type": "option"
13063
13015
  },
13064
- "description": {
13065
- "description": "Variable description",
13066
- "name": "description",
13016
+ "page": {
13017
+ "description": "Page number",
13018
+ "name": "page",
13019
+ "default": 1,
13067
13020
  "hasDynamicHelp": false,
13068
13021
  "multiple": false,
13069
13022
  "type": "option"
13070
13023
  },
13071
- "color": {
13072
- "description": "Variable color as HEX",
13073
- "name": "color",
13024
+ "limit": {
13025
+ "description": "Items per page",
13026
+ "name": "limit",
13027
+ "default": 20,
13074
13028
  "hasDynamicHelp": false,
13075
13029
  "multiple": false,
13076
13030
  "type": "option"
13077
13031
  },
13078
- "data": {
13079
- "description": "Additional JSON object payload",
13080
- "name": "data",
13032
+ "status": {
13033
+ "description": "Status filter: 0 inactive, 1 active",
13034
+ "name": "status",
13035
+ "hasDynamicHelp": false,
13036
+ "multiple": false,
13037
+ "options": [
13038
+ "0",
13039
+ "1"
13040
+ ],
13041
+ "type": "option"
13042
+ },
13043
+ "search": {
13044
+ "description": "Search in name or description",
13045
+ "name": "search",
13081
13046
  "hasDynamicHelp": false,
13082
13047
  "multiple": false,
13083
13048
  "type": "option"
@@ -13085,7 +13050,7 @@
13085
13050
  },
13086
13051
  "hasDynamicHelp": false,
13087
13052
  "hiddenAliases": [],
13088
- "id": "bots:env-vars:update",
13053
+ "id": "bots:filters:list",
13089
13054
  "pluginAlias": "@instantkom/cli",
13090
13055
  "pluginName": "@instantkom/cli",
13091
13056
  "pluginType": "core",
@@ -13096,20 +13061,25 @@
13096
13061
  "dist",
13097
13062
  "commands",
13098
13063
  "bots",
13099
- "env-vars",
13100
- "update.js"
13064
+ "filters",
13065
+ "list.js"
13101
13066
  ]
13102
13067
  },
13103
- "bots:env-vars:values": {
13068
+ "bots:filters:update": {
13104
13069
  "aliases": [],
13105
13070
  "args": {
13106
- "id": {
13107
- "description": "Environment variable ID",
13108
- "name": "id",
13071
+ "botId": {
13072
+ "description": "Bot ID",
13073
+ "name": "botId",
13074
+ "required": true
13075
+ },
13076
+ "filterId": {
13077
+ "description": "Filter ID",
13078
+ "name": "filterId",
13109
13079
  "required": true
13110
13080
  }
13111
13081
  },
13112
- "description": "List recipient values for a bot environment variable",
13082
+ "description": "Update a bot filter",
13113
13083
  "flags": {
13114
13084
  "api-key": {
13115
13085
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -13173,32 +13143,62 @@
13173
13143
  "multiple": false,
13174
13144
  "type": "option"
13175
13145
  },
13176
- "page": {
13177
- "description": "Page number",
13178
- "name": "page",
13179
- "default": 1,
13146
+ "name": {
13147
+ "description": "Filter name",
13148
+ "name": "name",
13180
13149
  "hasDynamicHelp": false,
13181
13150
  "multiple": false,
13182
13151
  "type": "option"
13183
13152
  },
13184
- "limit": {
13185
- "description": "Items per page",
13186
- "name": "limit",
13187
- "default": 20,
13153
+ "operator": {
13154
+ "description": "Logical operator",
13155
+ "name": "operator",
13188
13156
  "hasDynamicHelp": false,
13189
13157
  "multiple": false,
13190
13158
  "type": "option"
13191
13159
  },
13192
- "search": {
13193
- "description": "Search in recipient name or identifier",
13194
- "name": "search",
13160
+ "filter-object": {
13161
+ "description": "Filter object type",
13162
+ "name": "filter-object",
13195
13163
  "hasDynamicHelp": false,
13196
13164
  "multiple": false,
13197
13165
  "type": "option"
13198
13166
  },
13199
- "recipient": {
13200
- "description": "Filter by recipient ID",
13201
- "name": "recipient",
13167
+ "filter-attribute": {
13168
+ "description": "Filter attribute",
13169
+ "name": "filter-attribute",
13170
+ "hasDynamicHelp": false,
13171
+ "multiple": false,
13172
+ "type": "option"
13173
+ },
13174
+ "filter-comparator": {
13175
+ "description": "Filter comparator",
13176
+ "name": "filter-comparator",
13177
+ "hasDynamicHelp": false,
13178
+ "multiple": false,
13179
+ "type": "option"
13180
+ },
13181
+ "filter-value": {
13182
+ "description": "Filter value",
13183
+ "name": "filter-value",
13184
+ "hasDynamicHelp": false,
13185
+ "multiple": false,
13186
+ "type": "option"
13187
+ },
13188
+ "status": {
13189
+ "description": "Status: 0 inactive, 1 active",
13190
+ "name": "status",
13191
+ "hasDynamicHelp": false,
13192
+ "multiple": false,
13193
+ "options": [
13194
+ "0",
13195
+ "1"
13196
+ ],
13197
+ "type": "option"
13198
+ },
13199
+ "data": {
13200
+ "description": "Additional JSON object payload",
13201
+ "name": "data",
13202
13202
  "hasDynamicHelp": false,
13203
13203
  "multiple": false,
13204
13204
  "type": "option"
@@ -13206,7 +13206,7 @@
13206
13206
  },
13207
13207
  "hasDynamicHelp": false,
13208
13208
  "hiddenAliases": [],
13209
- "id": "bots:env-vars:values",
13209
+ "id": "bots:filters:update",
13210
13210
  "pluginAlias": "@instantkom/cli",
13211
13211
  "pluginName": "@instantkom/cli",
13212
13212
  "pluginType": "core",
@@ -13217,8 +13217,8 @@
13217
13217
  "dist",
13218
13218
  "commands",
13219
13219
  "bots",
13220
- "env-vars",
13221
- "values.js"
13220
+ "filters",
13221
+ "update.js"
13222
13222
  ]
13223
13223
  },
13224
13224
  "bots:tags:add": {
@@ -15666,16 +15666,16 @@
15666
15666
  "list.js"
15667
15667
  ]
15668
15668
  },
15669
- "tags:segments:list": {
15669
+ "tags:recipients:add": {
15670
15670
  "aliases": [],
15671
15671
  "args": {
15672
- "id": {
15672
+ "tagId": {
15673
15673
  "description": "Tag ID",
15674
- "name": "id",
15674
+ "name": "tagId",
15675
15675
  "required": true
15676
15676
  }
15677
15677
  },
15678
- "description": "List segments that use a specific tag",
15678
+ "description": "Assign a tag to recipients",
15679
15679
  "flags": {
15680
15680
  "api-key": {
15681
15681
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15739,18 +15739,10 @@
15739
15739
  "multiple": false,
15740
15740
  "type": "option"
15741
15741
  },
15742
- "page": {
15743
- "description": "Page number",
15744
- "name": "page",
15745
- "default": 1,
15746
- "hasDynamicHelp": false,
15747
- "multiple": false,
15748
- "type": "option"
15749
- },
15750
- "limit": {
15751
- "description": "Items per page",
15752
- "name": "limit",
15753
- "default": 20,
15742
+ "recipients": {
15743
+ "description": "Comma-separated recipient IDs",
15744
+ "name": "recipients",
15745
+ "required": true,
15754
15746
  "hasDynamicHelp": false,
15755
15747
  "multiple": false,
15756
15748
  "type": "option"
@@ -15758,7 +15750,7 @@
15758
15750
  },
15759
15751
  "hasDynamicHelp": false,
15760
15752
  "hiddenAliases": [],
15761
- "id": "tags:segments:list",
15753
+ "id": "tags:recipients:add",
15762
15754
  "pluginAlias": "@instantkom/cli",
15763
15755
  "pluginName": "@instantkom/cli",
15764
15756
  "pluginType": "core",
@@ -15769,11 +15761,11 @@
15769
15761
  "dist",
15770
15762
  "commands",
15771
15763
  "tags",
15772
- "segments",
15773
- "list.js"
15764
+ "recipients",
15765
+ "add.js"
15774
15766
  ]
15775
15767
  },
15776
- "tags:recipients:add": {
15768
+ "tags:recipients:remove": {
15777
15769
  "aliases": [],
15778
15770
  "args": {
15779
15771
  "tagId": {
@@ -15782,7 +15774,7 @@
15782
15774
  "required": true
15783
15775
  }
15784
15776
  },
15785
- "description": "Assign a tag to recipients",
15777
+ "description": "Remove a tag from recipients",
15786
15778
  "flags": {
15787
15779
  "api-key": {
15788
15780
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15857,7 +15849,7 @@
15857
15849
  },
15858
15850
  "hasDynamicHelp": false,
15859
15851
  "hiddenAliases": [],
15860
- "id": "tags:recipients:add",
15852
+ "id": "tags:recipients:remove",
15861
15853
  "pluginAlias": "@instantkom/cli",
15862
15854
  "pluginName": "@instantkom/cli",
15863
15855
  "pluginType": "core",
@@ -15869,19 +15861,19 @@
15869
15861
  "commands",
15870
15862
  "tags",
15871
15863
  "recipients",
15872
- "add.js"
15864
+ "remove.js"
15873
15865
  ]
15874
15866
  },
15875
- "tags:recipients:remove": {
15867
+ "tags:segments:list": {
15876
15868
  "aliases": [],
15877
15869
  "args": {
15878
- "tagId": {
15870
+ "id": {
15879
15871
  "description": "Tag ID",
15880
- "name": "tagId",
15872
+ "name": "id",
15881
15873
  "required": true
15882
15874
  }
15883
15875
  },
15884
- "description": "Remove a tag from recipients",
15876
+ "description": "List segments that use a specific tag",
15885
15877
  "flags": {
15886
15878
  "api-key": {
15887
15879
  "description": "API key for authentication (discouraged: prefer IKM_API_KEY env or keychain). Visible in shell history.",
@@ -15945,10 +15937,18 @@
15945
15937
  "multiple": false,
15946
15938
  "type": "option"
15947
15939
  },
15948
- "recipients": {
15949
- "description": "Comma-separated recipient IDs",
15950
- "name": "recipients",
15951
- "required": true,
15940
+ "page": {
15941
+ "description": "Page number",
15942
+ "name": "page",
15943
+ "default": 1,
15944
+ "hasDynamicHelp": false,
15945
+ "multiple": false,
15946
+ "type": "option"
15947
+ },
15948
+ "limit": {
15949
+ "description": "Items per page",
15950
+ "name": "limit",
15951
+ "default": 20,
15952
15952
  "hasDynamicHelp": false,
15953
15953
  "multiple": false,
15954
15954
  "type": "option"
@@ -15956,7 +15956,7 @@
15956
15956
  },
15957
15957
  "hasDynamicHelp": false,
15958
15958
  "hiddenAliases": [],
15959
- "id": "tags:recipients:remove",
15959
+ "id": "tags:segments:list",
15960
15960
  "pluginAlias": "@instantkom/cli",
15961
15961
  "pluginName": "@instantkom/cli",
15962
15962
  "pluginType": "core",
@@ -15967,8 +15967,8 @@
15967
15967
  "dist",
15968
15968
  "commands",
15969
15969
  "tags",
15970
- "recipients",
15971
- "remove.js"
15970
+ "segments",
15971
+ "list.js"
15972
15972
  ]
15973
15973
  },
15974
15974
  "ticket:messages:create": {
@@ -16566,5 +16566,5 @@
16566
16566
  ]
16567
16567
  }
16568
16568
  },
16569
- "version": "3.152.0"
16569
+ "version": "3.153.0"
16570
16570
  }