Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork926
Description
Is your feature request related to a problem? Please describe.
Hi there! :)
Some methods liketasks.trigger() do accept arequestOptions param (the 4th in this case,TriggerApiRequestOptions). This supports for example setting{ clientConfig: ... }.
await tasks.trigger(taskId, undefined, { tags: ['...'] }, { clientConfig: { accessToken } })Others however do not accept any clientConfig:
await runs.retrieve(runId, ) <- does not accept `requestOptions`I was wondering if this was by choice or just missing parameters/types.
Because in my case, I cannot use theconfigure() method to apply theaccessToken. I have two trigger projects which I both use in my project. Since I have parallel requests (React server actions), theconfigure() is not correctly applied to the requests, even though if I call it directly before each request.
Describe the solution you'd like to see
If this is a mistake, than this is a feature request and Ideally, all SDK API methods would be streamlined to support therequestOptions param.
Describe alternate solutions
- I currently use the HTTP API directly with fetch now. However, I noticed that thedocs on these seem outdated, the status enum documented differs from what the
4.1.0SDK returns as types.
Additional information
No response