diff options
Diffstat (limited to 'packages/sdk')
| -rw-r--r-- | packages/sdk/js/src/v2/gen/sdk.gen.ts | 4 | ||||
| -rw-r--r-- | packages/sdk/js/src/v2/gen/types.gen.ts | 34 | ||||
| -rw-r--r-- | packages/sdk/openapi.json | 118 |
3 files changed, 156 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: { /** diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index c6d79b11e..350395423 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -4761,6 +4761,16 @@ "method": { "description": "Auth method index", "type": "number" + }, + "inputs": { + "description": "Prompt inputs", + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "type": "string" + } } }, "required": ["method"] @@ -11541,6 +11551,114 @@ }, "label": { "type": "string" + }, + "prompts": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "text" + }, + "key": { + "type": "string" + }, + "message": { + "type": "string" + }, + "placeholder": { + "type": "string" + }, + "when": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "op": { + "anyOf": [ + { + "type": "string", + "const": "eq" + }, + { + "type": "string", + "const": "neq" + } + ] + }, + "value": { + "type": "string" + } + }, + "required": ["key", "op", "value"] + } + }, + "required": ["type", "key", "message"] + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "const": "select" + }, + "key": { + "type": "string" + }, + "message": { + "type": "string" + }, + "options": { + "type": "array", + "items": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + }, + "hint": { + "type": "string" + } + }, + "required": ["label", "value"] + } + }, + "when": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "op": { + "anyOf": [ + { + "type": "string", + "const": "eq" + }, + { + "type": "string", + "const": "neq" + } + ] + }, + "value": { + "type": "string" + } + }, + "required": ["key", "op", "value"] + } + }, + "required": ["type", "key", "message", "options"] + } + ] + } } }, "required": ["type", "label"] |
