Type 1:

Red 12V+
Black GND
White CAN H
Green CAN L
Yellow K-Line
Blue-Green GPT1
Yellow-Red / Yellow-Brown GPT2
Purple VPP
Blue-CNF1
Grey BOOT
Type 2:

Red 12V+
Black GND
White CAN H
Green CAN L
Yellow-Black (with Green insulation) K-Line
Yellow GPT1  KTM GTP0 Grey
Orange GPT2 KTM GTP1 Blue
Blue-CNF1
Grey BOOT
Brown BOOT2