For IBKR, they allow you to specify the time in force of bracket orders.
But alpaca API does not have such options. It seems the time-in-force of the take profit and stop loss order is the same as the order that triggered them. It is a little bit awkward as stop loss orders might expire after one day if the main order has a “day” time in force.