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

@@ -1586,9 +1586,9 @@
}
},
"node_modules/baseline-browser-mapping": {
"version": "2.9.2",
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.2.tgz",
"integrity": "sha512-PxSsosKQjI38iXkmb3d0Y32efqyA0uW4s41u4IVBsLlWLhCiYNpH/AfNOVWRqCQBlD8TFJTz6OUWNd4DFJCnmw==",
"version": "2.9.5",
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.5.tgz",
"integrity": "sha512-D5vIoztZOq1XM54LUdttJVc96ggEsIfju2JBvht06pSzpckp3C7HReun67Bghzrtdsq9XdMGbSSB3v3GhMNmAA==",
"dev": true,
"license": "Apache-2.0",
"bin": {
@@ -1843,9 +1843,9 @@
}
},
"node_modules/electron-to-chromium": {
"version": "1.5.265",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.265.tgz",
"integrity": "sha512-B7IkLR1/AE+9jR2LtVF/1/6PFhY5TlnEHnlrKmGk7PvkJibg5jr+mLXLLzq3QYl6PA1T/vLDthQPqIPAlS/PPA==",
"version": "1.5.267",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz",
"integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==",
"dev": true,
"license": "ISC"
},
@@ -1997,9 +1997,9 @@
}
},
"node_modules/expect-type": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.2.tgz",
"integrity": "sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==",
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz",
"integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==",
"dev": true,
"license": "Apache-2.0",
"engines": {
@@ -2762,9 +2762,9 @@
}
},
"node_modules/terser-webpack-plugin": {
"version": "5.3.14",
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.14.tgz",
"integrity": "sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw==",
"version": "5.3.15",
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.15.tgz",
"integrity": "sha512-PGkOdpRFK+rb1TzVz+msVhw4YMRT9txLF4kRqvJhGhCM324xuR3REBSHALN+l+sAhKUmz0aotnjp5D+P83mLhQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3044,9 +3044,9 @@
}
},
"node_modules/vite-node/node_modules/@types/node": {
"version": "24.10.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz",
"integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==",
"version": "24.10.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.2.tgz",
"integrity": "sha512-WOhQTZ4G8xZ1tjJTvKOpyEVSGgOTvJAfDK3FNFgELyaTpzhdgHVHeqW8V+UJvzF5BT+/B54T/1S2K6gd9c7bbA==",
"dev": true,
"license": "MIT",
"optional": true,
@@ -3096,9 +3096,9 @@
"peer": true
},
"node_modules/vite-node/node_modules/vite": {
"version": "7.2.6",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.2.6.tgz",
"integrity": "sha512-tI2l/nFHC5rLh7+5+o7QjKjSR04ivXDF4jcgV0f/bTQ+OJiITy5S6gaynVsEM+7RqzufMnVbIon6Sr5x1SDYaQ==",
"version": "7.2.7",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.2.7.tgz",
"integrity": "sha512-ITcnkFeR3+fI8P1wMgItjGrR10170d8auB4EpMLPqmx6uxElH3a/hHGQabSHKdqd4FXWO1nFIp9rRn7JQ34ACQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -3302,9 +3302,9 @@
}
},
"node_modules/vitest/node_modules/vite": {
"version": "7.2.6",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.2.6.tgz",
"integrity": "sha512-tI2l/nFHC5rLh7+5+o7QjKjSR04ivXDF4jcgV0f/bTQ+OJiITy5S6gaynVsEM+7RqzufMnVbIon6Sr5x1SDYaQ==",
"version": "7.2.7",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.2.7.tgz",
"integrity": "sha512-ITcnkFeR3+fI8P1wMgItjGrR10170d8auB4EpMLPqmx6uxElH3a/hHGQabSHKdqd4FXWO1nFIp9rRn7JQ34ACQ==",
"dev": true,
"license": "MIT",
"dependencies": {

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";

View File

@@ -1244,6 +1244,10 @@ describe("SkyvernClient", () => {
instructions: "instructions",
positive_descriptor: "positive_descriptor",
negative_descriptor: "negative_descriptor",
executed_branch_id: "executed_branch_id",
executed_branch_expression: "executed_branch_expression",
executed_branch_result: true,
executed_branch_next_block: "executed_branch_next_block",
},
thought: {
thought_id: "thought_id",
@@ -1331,6 +1335,10 @@ describe("SkyvernClient", () => {
instructions: "instructions",
positive_descriptor: "positive_descriptor",
negative_descriptor: "negative_descriptor",
executed_branch_id: "executed_branch_id",
executed_branch_expression: "executed_branch_expression",
executed_branch_result: true,
executed_branch_next_block: "executed_branch_next_block",
},
thought: {
thought_id: "thought_id",