summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/js/src/v2
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-03-18 11:36:19 -0500
committerGitHub <[email protected]>2026-03-18 11:36:19 -0500
commit171e69c2fc148985af7b9506b47f048d3a34a767 (patch)
tree0f99fed774361a768c15a79825fd4c30b55bea2c /packages/sdk/js/src/v2
parent822bb7b3366d051a6d74657b7764f7f403a0c9a8 (diff)
downloadopencode-171e69c2fc148985af7b9506b47f048d3a34a767.tar.gz
opencode-171e69c2fc148985af7b9506b47f048d3a34a767.zip
feat: integrate support for multi step auth flows for providers that require additional questions (#18035)
Diffstat (limited to 'packages/sdk/js/src/v2')
-rw-r--r--packages/sdk/js/src/v2/gen/sdk.gen.ts4
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts34
2 files changed, 38 insertions, 0 deletions
diff --git a/packages/sdk/js/src/v2/gen/sdk.gen.ts b/packages/sdk/js/src/v2/gen/sdk.gen.ts
index 27c188838..aa759bb1e 100644
--- a/packages/sdk/js/src/v2/gen/sdk.gen.ts
+++ b/packages/sdk/js/src/v2/gen/sdk.gen.ts
@@ -2496,6 +2496,9 @@ export class Oauth extends HeyApiClient {
directory?: string
workspace?: string
method?: number
+ inputs?: {
+ [key: string]: string
+ }
},
options?: Options<never, ThrowOnError>,
) {
@@ -2508,6 +2511,7 @@ export class Oauth extends HeyApiClient {
{ in: "query", key: "directory" },
{ in: "query", key: "workspace" },
{ in: "body", key: "method" },
+ { in: "body", key: "inputs" },
],
},
],
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index 9c5ca274e..41aa24817 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -1769,6 +1769,34 @@ export type SubtaskPartInput = {
export type ProviderAuthMethod = {
type: "oauth" | "api"
label: string
+ prompts?: Array<
+ | {
+ type: "text"
+ key: string
+ message: string
+ placeholder?: string
+ when?: {
+ key: string
+ op: "eq" | "neq"
+ value: string
+ }
+ }
+ | {
+ type: "select"
+ key: string
+ message: string
+ options: Array<{
+ label: string
+ value: string
+ hint?: string
+ }>
+ when?: {
+ key: string
+ op: "eq" | "neq"
+ value: string
+ }
+ }
+ >
}
export type ProviderAuthAuthorization = {
@@ -3983,6 +4011,12 @@ export type ProviderOauthAuthorizeData = {
* Auth method index
*/
method: number
+ /**
+ * Prompt inputs
+ */
+ inputs?: {
+ [key: string]: string
+ }
}
path: {
/**