@usex/mikrotik-mcp 6.4.1 → 6.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usex/mikrotik-mcp",
3
- "version": "6.4.1",
3
+ "version": "6.5.0",
4
4
  "description": "MCP server for MikroTik RouterOS — 780+ tools over SSH for firewall, NAT, routing, DHCP, DNS, WireGuard, wireless, QoS and more.",
5
5
  "keywords": [
6
6
  "ai",
@@ -160,7 +160,7 @@
160
160
  "engines": {
161
161
  "bun": ">=1.3.0"
162
162
  },
163
- "packageManager": "bun@1.4.2",
163
+ "packageManager": "bun@1.4.3",
164
164
  "catalog": {
165
165
  "vite": "npm:@voidzero-dev/vite-plus-core@1.0.0-rc.1",
166
166
  "vite-plus": "1.0.0-rc.1"
package/schemas/README.md CHANGED
@@ -7,7 +7,7 @@ edit by hand — regenerate instead.
7
7
  | File | Contents |
8
8
  | -------------------- | ------------------------------------------------------------------------------------------ |
9
9
  | `config.schema.json` | The runtime configuration object (env vars / CLI flags). |
10
- | `tool-catalog.json` | Every one of the 964 tools: `name`, `risk`, `title`, `description`, and input JSON Schema. |
10
+ | `tool-catalog.json` | Every one of the 971 tools: `name`, `risk`, `title`, `description`, and input JSON Schema. |
11
11
  | `tools/<name>.json` | The input JSON Schema for a single tool. |
12
12
 
13
13
  `risk` is derived from the MCP tool annotations:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "format": 1,
3
- "version": "6.4.1",
3
+ "version": "6.5.0",
4
4
  "modules": [
5
5
  {
6
6
  "slug": "client-check",
@@ -1001,6 +1001,20 @@
1001
1001
  "disable_address_list_entry"
1002
1002
  ]
1003
1003
  },
1004
+ {
1005
+ "slug": "address-sets",
1006
+ "label": "Address Sets",
1007
+ "group": "Security",
1008
+ "description": "Versioned CIDR algebra, publication previews and guarded rollback of selected rule references.",
1009
+ "alwaysOn": false,
1010
+ "tools": [
1011
+ "compose_address_set",
1012
+ "list_address_sets",
1013
+ "create_address_set",
1014
+ "preview_address_set",
1015
+ "apply_address_set"
1016
+ ]
1017
+ },
1004
1018
  {
1005
1019
  "slug": "connected-devices",
1006
1020
  "label": "Connected Devices",
@@ -1131,7 +1145,13 @@
1131
1145
  "group": "Security",
1132
1146
  "description": "Offline packet simulator: trace a hypothetical packet through NAT, routing and firewall against a config snapshot — no device touched. Reports UNKNOWN rather than guessing when the path crosses something it does not model.",
1133
1147
  "alwaysOn": false,
1134
- "tools": ["simulate_packet", "simulate_change", "explain_rule_reachability", "simulate_suite"]
1148
+ "tools": [
1149
+ "verify_filter_policy",
1150
+ "simulate_packet",
1151
+ "simulate_change",
1152
+ "explain_rule_reachability",
1153
+ "simulate_suite"
1154
+ ]
1135
1155
  },
1136
1156
  {
1137
1157
  "slug": "policy",
@@ -1826,6 +1846,7 @@
1826
1846
  "description": "NetFlow/IPFIX export (`/ip traffic-flow`) plus the host-side collector and analytics: top talkers, conversations, application mix and anomalies — cheap continuous metadata, no payload.",
1827
1847
  "alwaysOn": false,
1828
1848
  "tools": [
1849
+ "get_flow_collector_health",
1829
1850
  "get_traffic_flow_settings",
1830
1851
  "set_traffic_flow_settings",
1831
1852
  "list_traffic_flow_targets",
@@ -6278,6 +6299,50 @@
6278
6299
  "requires": null,
6279
6300
  "ui": null
6280
6301
  },
6302
+ {
6303
+ "name": "compose_address_set",
6304
+ "module": "address-sets",
6305
+ "group": "Security",
6306
+ "noDevice": false,
6307
+ "requires": null,
6308
+ "ui": null
6309
+ },
6310
+ {
6311
+ "name": "list_address_sets",
6312
+ "module": "address-sets",
6313
+ "group": "Security",
6314
+ "noDevice": false,
6315
+ "requires": null,
6316
+ "ui": {
6317
+ "resourceUri": "ui://mikrotik/records.html?v=2",
6318
+ "visibility": ["model", "app"],
6319
+ "automatic": true
6320
+ }
6321
+ },
6322
+ {
6323
+ "name": "create_address_set",
6324
+ "module": "address-sets",
6325
+ "group": "Security",
6326
+ "noDevice": false,
6327
+ "requires": null,
6328
+ "ui": null
6329
+ },
6330
+ {
6331
+ "name": "preview_address_set",
6332
+ "module": "address-sets",
6333
+ "group": "Security",
6334
+ "noDevice": false,
6335
+ "requires": null,
6336
+ "ui": null
6337
+ },
6338
+ {
6339
+ "name": "apply_address_set",
6340
+ "module": "address-sets",
6341
+ "group": "Security",
6342
+ "noDevice": false,
6343
+ "requires": null,
6344
+ "ui": null
6345
+ },
6281
6346
  {
6282
6347
  "name": "list_connected_devices",
6283
6348
  "module": "connected-devices",
@@ -6846,6 +6911,14 @@
6846
6911
  "requires": null,
6847
6912
  "ui": null
6848
6913
  },
6914
+ {
6915
+ "name": "verify_filter_policy",
6916
+ "module": "simulator",
6917
+ "group": "Security",
6918
+ "noDevice": false,
6919
+ "requires": null,
6920
+ "ui": null
6921
+ },
6849
6922
  {
6850
6923
  "name": "simulate_packet",
6851
6924
  "module": "simulator",
@@ -10028,6 +10101,18 @@
10028
10101
  "requires": null,
10029
10102
  "ui": null
10030
10103
  },
10104
+ {
10105
+ "name": "get_flow_collector_health",
10106
+ "module": "traffic-flow",
10107
+ "group": "Tools",
10108
+ "noDevice": false,
10109
+ "requires": null,
10110
+ "ui": {
10111
+ "resourceUri": "ui://mikrotik/records.html?v=2",
10112
+ "visibility": ["model", "app"],
10113
+ "automatic": true
10114
+ }
10115
+ },
10031
10116
  {
10032
10117
  "name": "get_traffic_flow_settings",
10033
10118
  "module": "traffic-flow",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "6.4.1",
3
+ "version": "6.5.0",
4
4
  "generated": "by scripts/gen-schemas.ts — do not edit by hand",
5
- "toolCount": 964,
5
+ "toolCount": 971,
6
6
  "tools": [
7
7
  {
8
8
  "name": "create_client_check",
@@ -16667,6 +16667,240 @@
16667
16667
  "additionalProperties": false
16668
16668
  }
16669
16669
  },
16670
+ {
16671
+ "name": "compose_address_set",
16672
+ "title": "Compose an Address Set",
16673
+ "risk": "read",
16674
+ "annotations": {
16675
+ "readOnlyHint": true,
16676
+ "idempotentHint": true,
16677
+ "openWorldHint": false
16678
+ },
16679
+ "description": "Pure IPv4/IPv6 CIDR union, intersection or difference. Normalizes, deduplicates and compacts exact coverage; returns checksum and exact address count. Source is a provenance label, never fetched/executed. No router or disk I/O.",
16680
+ "inputSchema": {
16681
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
16682
+ "type": "object",
16683
+ "properties": {
16684
+ "name": {
16685
+ "type": "string",
16686
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,39}$"
16687
+ },
16688
+ "family": {
16689
+ "default": "ipv4",
16690
+ "type": "string",
16691
+ "enum": ["ipv4", "ipv6"]
16692
+ },
16693
+ "operation": {
16694
+ "default": "union",
16695
+ "type": "string",
16696
+ "enum": ["union", "intersection", "difference"]
16697
+ },
16698
+ "left": {
16699
+ "minItems": 1,
16700
+ "maxItems": 2048,
16701
+ "type": "array",
16702
+ "items": {
16703
+ "type": "string",
16704
+ "maxLength": 80
16705
+ }
16706
+ },
16707
+ "right": {
16708
+ "default": [],
16709
+ "maxItems": 2048,
16710
+ "type": "array",
16711
+ "items": {
16712
+ "type": "string",
16713
+ "maxLength": 80
16714
+ }
16715
+ },
16716
+ "source": {
16717
+ "type": "string",
16718
+ "minLength": 1,
16719
+ "maxLength": 256,
16720
+ "description": "Provenance label, not a URL to fetch"
16721
+ },
16722
+ "parent": {
16723
+ "type": "string",
16724
+ "format": "uuid",
16725
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
16726
+ }
16727
+ },
16728
+ "required": ["name", "family", "operation", "left", "right", "source"],
16729
+ "additionalProperties": false
16730
+ }
16731
+ },
16732
+ {
16733
+ "name": "list_address_sets",
16734
+ "title": "List Address Set Revisions",
16735
+ "risk": "read",
16736
+ "annotations": {
16737
+ "readOnlyHint": true,
16738
+ "idempotentHint": true,
16739
+ "openWorldHint": false
16740
+ },
16741
+ "description": "Read the newest 100 locally persisted address-set revisions for the selected device, including publication state and rollback references. No router I/O.",
16742
+ "inputSchema": {
16743
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
16744
+ "type": "object",
16745
+ "properties": {},
16746
+ "additionalProperties": false
16747
+ }
16748
+ },
16749
+ {
16750
+ "name": "create_address_set",
16751
+ "title": "Save Address Set Revision",
16752
+ "risk": "write",
16753
+ "annotations": {
16754
+ "destructiveHint": false,
16755
+ "openWorldHint": false
16756
+ },
16757
+ "description": "Save an immutable non-empty CIDR composition with checksum, provenance and optional parent revision. Local write only; never changes a router. Input at most 2048 prefixes per operand, output at most 4096. Publication currently capped at 64 compacted prefixes to preserve Safe Mode undo coverage.",
16758
+ "inputSchema": {
16759
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
16760
+ "type": "object",
16761
+ "properties": {
16762
+ "name": {
16763
+ "type": "string",
16764
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,39}$"
16765
+ },
16766
+ "family": {
16767
+ "default": "ipv4",
16768
+ "type": "string",
16769
+ "enum": ["ipv4", "ipv6"]
16770
+ },
16771
+ "operation": {
16772
+ "default": "union",
16773
+ "type": "string",
16774
+ "enum": ["union", "intersection", "difference"]
16775
+ },
16776
+ "left": {
16777
+ "minItems": 1,
16778
+ "maxItems": 2048,
16779
+ "type": "array",
16780
+ "items": {
16781
+ "type": "string",
16782
+ "maxLength": 80
16783
+ }
16784
+ },
16785
+ "right": {
16786
+ "default": [],
16787
+ "maxItems": 2048,
16788
+ "type": "array",
16789
+ "items": {
16790
+ "type": "string",
16791
+ "maxLength": 80
16792
+ }
16793
+ },
16794
+ "source": {
16795
+ "type": "string",
16796
+ "minLength": 1,
16797
+ "maxLength": 256,
16798
+ "description": "Provenance label, not a URL to fetch"
16799
+ },
16800
+ "parent": {
16801
+ "type": "string",
16802
+ "format": "uuid",
16803
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
16804
+ }
16805
+ },
16806
+ "required": ["name", "family", "operation", "left", "right", "source"],
16807
+ "additionalProperties": false
16808
+ }
16809
+ },
16810
+ {
16811
+ "name": "preview_address_set",
16812
+ "title": "Preview Address Set Publication or Rollback",
16813
+ "risk": "read",
16814
+ "annotations": {
16815
+ "readOnlyHint": true,
16816
+ "idempotentHint": true,
16817
+ "openWorldHint": false
16818
+ },
16819
+ "description": "Read current rules and prepare a two-minute state-bound preview. Explicitly select 1–8 filter/mangle rule IDs, address-list fields and expected old list names. Creates a new generation without deleting old/manual entries. Rollback restores only these references, retaining generations. Never changes router configuration; use apply_address_set only after explicit review. Not an atomic packet-wide swap.",
16820
+ "inputSchema": {
16821
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
16822
+ "type": "object",
16823
+ "properties": {
16824
+ "id": {
16825
+ "type": "string",
16826
+ "format": "uuid",
16827
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
16828
+ },
16829
+ "references": {
16830
+ "default": [],
16831
+ "maxItems": 8,
16832
+ "type": "array",
16833
+ "items": {
16834
+ "type": "object",
16835
+ "properties": {
16836
+ "table": {
16837
+ "type": "string",
16838
+ "enum": ["filter", "mangle"]
16839
+ },
16840
+ "id": {
16841
+ "type": "string",
16842
+ "pattern": "^\\*[0-9A-Fa-f]+$"
16843
+ },
16844
+ "field": {
16845
+ "type": "string",
16846
+ "enum": ["src-address-list", "dst-address-list"]
16847
+ },
16848
+ "expected": {
16849
+ "type": "string",
16850
+ "minLength": 1,
16851
+ "maxLength": 128
16852
+ }
16853
+ },
16854
+ "required": ["table", "id", "field", "expected"],
16855
+ "additionalProperties": false
16856
+ }
16857
+ },
16858
+ "rollback": {
16859
+ "default": false,
16860
+ "type": "boolean"
16861
+ },
16862
+ "allowLargeChange": {
16863
+ "default": false,
16864
+ "description": "Explicitly acknowledge /0 or coverage changing by more than 50% of the parent",
16865
+ "type": "boolean"
16866
+ }
16867
+ },
16868
+ "required": ["id", "references", "rollback", "allowLargeChange"],
16869
+ "additionalProperties": false
16870
+ }
16871
+ },
16872
+ {
16873
+ "name": "apply_address_set",
16874
+ "title": "Apply Approved Address Set Preview",
16875
+ "risk": "write",
16876
+ "annotations": {
16877
+ "destructiveHint": false,
16878
+ "openWorldHint": false
16879
+ },
16880
+ "description": "After explicit confirmation: capture a local backup, acquire exclusive Safe Mode, recheck preview fingerprint, create the generation, switch only selected references, verify exact contents and commit. Maximum 64 prefixes + 8 references, SSH only. Failure/ambiguous commit is uncertain and never automatically retried. Rollback previews preserve all lists. Requires fresh preview id and confirm=true.",
16881
+ "inputSchema": {
16882
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
16883
+ "type": "object",
16884
+ "properties": {
16885
+ "id": {
16886
+ "type": "string",
16887
+ "format": "uuid",
16888
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
16889
+ },
16890
+ "planId": {
16891
+ "type": "string",
16892
+ "format": "uuid",
16893
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
16894
+ },
16895
+ "confirm": {
16896
+ "default": false,
16897
+ "type": "boolean"
16898
+ }
16899
+ },
16900
+ "required": ["id", "planId", "confirm"],
16901
+ "additionalProperties": false
16902
+ }
16903
+ },
16670
16904
  {
16671
16905
  "name": "list_connected_devices",
16672
16906
  "title": "List Connected Devices",
@@ -18315,6 +18549,90 @@
18315
18549
  "additionalProperties": false
18316
18550
  }
18317
18551
  },
18552
+ {
18553
+ "name": "verify_filter_policy",
18554
+ "title": "Verify a Filter Policy over Address and Port Sets",
18555
+ "risk": "read",
18556
+ "annotations": {
18557
+ "readOnlyHint": true,
18558
+ "idempotentHint": true,
18559
+ "openWorldHint": false
18560
+ },
18561
+ "description": "Exhaustively checks IPv4 source/destination ranges and port ranges using equivalence partitions, not sampling. Returns proved, violated with a counterexample and rule trace, or unknown. Supplied static export only; packet fields are at filter-chain entry, AFTER any destination NAT. This is NOT routing/NAT/IPv6/conntrack verification and cannot prove no WAN leak. Unsupported constructs, dynamic lists or >4096 cells fail closed to unknown. No router I/O.",
18562
+ "inputSchema": {
18563
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
18564
+ "type": "object",
18565
+ "properties": {
18566
+ "config_text": {
18567
+ "type": "string",
18568
+ "minLength": 1,
18569
+ "maxLength": 200000
18570
+ },
18571
+ "source": {
18572
+ "type": "string",
18573
+ "maxLength": 64
18574
+ },
18575
+ "destination": {
18576
+ "type": "string",
18577
+ "maxLength": 64
18578
+ },
18579
+ "source_ports": {
18580
+ "default": "0-65535",
18581
+ "type": "string",
18582
+ "maxLength": 64
18583
+ },
18584
+ "destination_ports": {
18585
+ "default": "0-65535",
18586
+ "type": "string",
18587
+ "maxLength": 64
18588
+ },
18589
+ "protocol": {
18590
+ "default": "tcp",
18591
+ "type": "string",
18592
+ "enum": ["tcp", "udp"]
18593
+ },
18594
+ "chain": {
18595
+ "default": "forward",
18596
+ "type": "string",
18597
+ "enum": ["input", "forward", "output"]
18598
+ },
18599
+ "in_interface": {
18600
+ "default": "bridge",
18601
+ "type": "string",
18602
+ "maxLength": 128
18603
+ },
18604
+ "out_interface": {
18605
+ "default": "ether1",
18606
+ "type": "string",
18607
+ "maxLength": 128
18608
+ },
18609
+ "connection_state": {
18610
+ "default": "new",
18611
+ "type": "string",
18612
+ "enum": ["new", "established", "related", "invalid"]
18613
+ },
18614
+ "expect": {
18615
+ "default": "drop",
18616
+ "type": "string",
18617
+ "enum": ["accept", "drop", "reject"]
18618
+ }
18619
+ },
18620
+ "required": [
18621
+ "config_text",
18622
+ "source",
18623
+ "destination",
18624
+ "source_ports",
18625
+ "destination_ports",
18626
+ "protocol",
18627
+ "chain",
18628
+ "in_interface",
18629
+ "out_interface",
18630
+ "connection_state",
18631
+ "expect"
18632
+ ],
18633
+ "additionalProperties": false
18634
+ }
18635
+ },
18318
18636
  {
18319
18637
  "name": "simulate_packet",
18320
18638
  "title": "Simulate a Packet",
@@ -29172,6 +29490,23 @@
29172
29490
  "additionalProperties": false
29173
29491
  }
29174
29492
  },
29493
+ {
29494
+ "name": "get_flow_collector_health",
29495
+ "title": "Inspect Flow Collector Health",
29496
+ "risk": "read",
29497
+ "annotations": {
29498
+ "readOnlyHint": true,
29499
+ "idempotentHint": true,
29500
+ "openWorldHint": false
29501
+ },
29502
+ "description": "Reads host collector health per exporter, protocol and observation domain: last receipt, template changes, pending templates, decode errors and failed storage writes. NetFlow v9 sequence gaps are observations, not proven packet loss (UDP can reorder). IPFIX loss is not estimated. Silent >5m means no exports received, not proof the router is offline. Counters reset when the collector restarts. No router changes.",
29503
+ "inputSchema": {
29504
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
29505
+ "type": "object",
29506
+ "properties": {},
29507
+ "additionalProperties": false
29508
+ }
29509
+ },
29175
29510
  {
29176
29511
  "name": "get_traffic_flow_settings",
29177
29512
  "title": "Get Traffic Flow Settings",
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "apply_address_set",
4
+ "type": "object",
5
+ "properties": {
6
+ "id": {
7
+ "type": "string",
8
+ "format": "uuid",
9
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
10
+ },
11
+ "planId": {
12
+ "type": "string",
13
+ "format": "uuid",
14
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
15
+ },
16
+ "confirm": {
17
+ "default": false,
18
+ "type": "boolean"
19
+ }
20
+ },
21
+ "required": ["id", "planId", "confirm"],
22
+ "additionalProperties": false
23
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "compose_address_set",
4
+ "type": "object",
5
+ "properties": {
6
+ "name": {
7
+ "type": "string",
8
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,39}$"
9
+ },
10
+ "family": {
11
+ "default": "ipv4",
12
+ "type": "string",
13
+ "enum": ["ipv4", "ipv6"]
14
+ },
15
+ "operation": {
16
+ "default": "union",
17
+ "type": "string",
18
+ "enum": ["union", "intersection", "difference"]
19
+ },
20
+ "left": {
21
+ "minItems": 1,
22
+ "maxItems": 2048,
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string",
26
+ "maxLength": 80
27
+ }
28
+ },
29
+ "right": {
30
+ "default": [],
31
+ "maxItems": 2048,
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "maxLength": 80
36
+ }
37
+ },
38
+ "source": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "maxLength": 256,
42
+ "description": "Provenance label, not a URL to fetch"
43
+ },
44
+ "parent": {
45
+ "type": "string",
46
+ "format": "uuid",
47
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
48
+ }
49
+ },
50
+ "required": ["name", "family", "operation", "left", "right", "source"],
51
+ "additionalProperties": false
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "create_address_set",
4
+ "type": "object",
5
+ "properties": {
6
+ "name": {
7
+ "type": "string",
8
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,39}$"
9
+ },
10
+ "family": {
11
+ "default": "ipv4",
12
+ "type": "string",
13
+ "enum": ["ipv4", "ipv6"]
14
+ },
15
+ "operation": {
16
+ "default": "union",
17
+ "type": "string",
18
+ "enum": ["union", "intersection", "difference"]
19
+ },
20
+ "left": {
21
+ "minItems": 1,
22
+ "maxItems": 2048,
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string",
26
+ "maxLength": 80
27
+ }
28
+ },
29
+ "right": {
30
+ "default": [],
31
+ "maxItems": 2048,
32
+ "type": "array",
33
+ "items": {
34
+ "type": "string",
35
+ "maxLength": 80
36
+ }
37
+ },
38
+ "source": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "maxLength": 256,
42
+ "description": "Provenance label, not a URL to fetch"
43
+ },
44
+ "parent": {
45
+ "type": "string",
46
+ "format": "uuid",
47
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
48
+ }
49
+ },
50
+ "required": ["name", "family", "operation", "left", "right", "source"],
51
+ "additionalProperties": false
52
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "get_flow_collector_health",
4
+ "type": "object",
5
+ "properties": {},
6
+ "additionalProperties": false
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "list_address_sets",
4
+ "type": "object",
5
+ "properties": {},
6
+ "additionalProperties": false
7
+ }