Rebuild Fern SDK (#4229)

This commit is contained in:
Stanislav Novosad
2025-12-08 17:40:21 -07:00
committed by GitHub
parent 4b99cd3f45
commit d6e0973dda
23 changed files with 412 additions and 61 deletions

View File

@@ -6,6 +6,7 @@ import type * as Skyvern from "../index.js";
* Represents a single conditional branch edge within a ConditionalBlock.
*/
export interface BranchCondition {
id?: string;
criteria?: Skyvern.BranchConditionCriteria;
next_block_label?: string;
description?: string;

View File

@@ -2,10 +2,16 @@
import type * as Skyvern from "../index.js";
export type BranchConditionCriteria = Skyvern.BranchConditionCriteria.Jinja2Template;
export type BranchConditionCriteria =
| Skyvern.BranchConditionCriteria.Jinja2Template
| Skyvern.BranchConditionCriteria.Prompt;
export namespace BranchConditionCriteria {
export interface Jinja2Template extends Skyvern.JinjaBranchCriteria {
criteria_type: "jinja2_template";
}
export interface Prompt extends Skyvern.PromptBranchCriteria {
criteria_type: "prompt";
}
}

View File

@@ -1,7 +1,15 @@
// This file was auto-generated by Fern from our API Definition.
export interface BranchCriteriaYaml {
criteria_type?: "jinja2_template";
criteria_type?: BranchCriteriaYaml.CriteriaType;
expression: string;
description?: string;
}
export namespace BranchCriteriaYaml {
export const CriteriaType = {
Jinja2Template: "jinja2_template",
Prompt: "prompt",
} as const;
export type CriteriaType = (typeof CriteriaType)[keyof typeof CriteriaType];
}

View File

@@ -0,0 +1,13 @@
// This file was auto-generated by Fern from our API Definition.
/**
* Prompt action parameters.
*/
export interface PromptAction {
/** The prompt to send to the LLM */
prompt: string;
/** Optional JSON schema to structure the response */
schema?: Record<string, unknown>;
/** Optional model configuration */
model?: Record<string, unknown>;
}

View File

@@ -0,0 +1,9 @@
// This file was auto-generated by Fern from our API Definition.
/**
* Natural language branch criteria.
*/
export interface PromptBranchCriteria {
expression: string;
description?: string;
}

View File

@@ -12,7 +12,9 @@ export type RunSdkActionRequestAction =
| Skyvern.RunSdkActionRequestAction.AiSelectOption
| Skyvern.RunSdkActionRequestAction.AiUploadFile
| Skyvern.RunSdkActionRequestAction.Extract
| Skyvern.RunSdkActionRequestAction.LocateElement;
| Skyvern.RunSdkActionRequestAction.LocateElement
| Skyvern.RunSdkActionRequestAction.Prompt
| Skyvern.RunSdkActionRequestAction.Validate;
export namespace RunSdkActionRequestAction {
export interface AiAct extends Skyvern.ActAction {
@@ -42,4 +44,12 @@ export namespace RunSdkActionRequestAction {
export interface LocateElement extends Skyvern.LocateElementAction {
type: "locate_element";
}
export interface Prompt extends Skyvern.PromptAction {
type: "prompt";
}
export interface Validate extends Skyvern.ValidateAction {
type: "validate";
}
}

View File

@@ -0,0 +1,11 @@
// This file was auto-generated by Fern from our API Definition.
/**
* Validate action parameters.
*/
export interface ValidateAction {
/** Validation criteria or condition to check */
prompt: string;
/** Optional model configuration */
model?: Record<string, unknown>;
}

View File

@@ -39,6 +39,10 @@ export interface WorkflowRunBlock {
instructions?: string;
positive_descriptor?: string;
negative_descriptor?: string;
executed_branch_id?: string;
executed_branch_expression?: string;
executed_branch_result?: boolean;
executed_branch_next_block?: string;
}
export namespace WorkflowRunBlock {

View File

@@ -94,6 +94,8 @@ export * from "./OutputParameterYaml.js";
export * from "./PasswordCredentialResponse.js";
export * from "./PdfParserBlock.js";
export * from "./PdfParserBlockYaml.js";
export * from "./PromptAction.js";
export * from "./PromptBranchCriteria.js";
export * from "./ProxyLocation.js";
export * from "./RunEngine.js";
export * from "./RunSdkActionRequestAction.js";
@@ -130,6 +132,7 @@ export * from "./UrlBlock.js";
export * from "./UrlBlockParametersItem.js";
export * from "./UrlBlockYaml.js";
export * from "./UserDefinedError.js";
export * from "./ValidateAction.js";
export * from "./ValidationBlock.js";
export * from "./ValidationBlockParametersItem.js";
export * from "./ValidationBlockYaml.js";