The "maxExecutionTimeInSeconds" property is marked as optional in your typing file, but it isn't really.
In fact, depending on the parameters passed, you may or may not set a default value. The problem is that the Microsoft API expects a value, and so, when you don't set a default value, the API throws an error...
What should happen ?
In ALL cases, when the property "maxExecutionTimeInSeconds" isn't set, you should set the default one OR never set it but ask the developer to set a value
Problem encounter
The "maxExecutionTimeInSeconds" property is marked as optional in your typing file, but it isn't really. In fact, depending on the parameters passed, you may or may not set a default value. The problem is that the Microsoft API expects a value, and so, when you don't set a default value, the API throws an error...
What should happen ?
In ALL cases, when the property "maxExecutionTimeInSeconds" isn't set, you should set the default one OR never set it but ask the developer to set a value
Code to reproduce