@skyvern/client 1.0.2 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/README.md +46 -1
  2. package/dist/cjs/Client.d.ts +32 -4
  3. package/dist/cjs/Client.js +144 -11
  4. package/dist/cjs/api/client/requests/BodyUploadFileV1UploadFilePost.d.ts +10 -0
  5. package/dist/cjs/api/client/requests/CreateCredentialRequest.d.ts +1 -1
  6. package/dist/cjs/api/client/requests/DownloadFilesRequest.d.ts +37 -0
  7. package/dist/cjs/api/client/requests/GetWorkflowsRequest.d.ts +2 -0
  8. package/dist/cjs/api/client/requests/LoginRequest.d.ts +6 -6
  9. package/dist/cjs/api/client/requests/index.d.ts +2 -0
  10. package/dist/cjs/api/resources/index.d.ts +0 -2
  11. package/dist/cjs/api/resources/index.js +1 -6
  12. package/dist/cjs/api/types/Action.d.ts +1 -0
  13. package/dist/cjs/api/types/ActionBlock.d.ts +1 -0
  14. package/dist/cjs/api/types/ActionBlockYaml.d.ts +1 -0
  15. package/dist/cjs/api/types/ActionType.d.ts +1 -0
  16. package/dist/cjs/api/types/ActionType.js +1 -0
  17. package/dist/cjs/api/types/Artifact.d.ts +1 -0
  18. package/dist/cjs/api/types/BranchCondition.d.ts +2 -1
  19. package/dist/cjs/api/types/BranchConditionCriteria.d.ts +10 -0
  20. package/dist/cjs/api/types/BranchConditionYaml.d.ts +7 -0
  21. package/dist/cjs/api/types/BranchCriteriaYaml.d.ts +12 -0
  22. package/dist/cjs/api/types/BranchCriteriaYaml.js +11 -0
  23. package/dist/cjs/api/types/CodeBlock.d.ts +1 -0
  24. package/dist/cjs/api/types/CodeBlockYaml.d.ts +1 -0
  25. package/dist/cjs/api/types/ConditionalBlock.d.ts +1 -0
  26. package/dist/cjs/api/types/ConditionalBlockYaml.d.ts +11 -0
  27. package/dist/cjs/api/types/CredentialResponse.d.ts +1 -1
  28. package/dist/cjs/api/types/CredentialTypeOutput.d.ts +1 -0
  29. package/dist/cjs/api/types/CredentialTypeOutput.js +1 -0
  30. package/dist/cjs/api/types/DownloadToS3Block.d.ts +1 -0
  31. package/dist/cjs/api/types/DownloadToS3BlockYaml.d.ts +1 -0
  32. package/dist/cjs/api/types/ExtractionBlock.d.ts +1 -0
  33. package/dist/cjs/api/types/ExtractionBlockYaml.d.ts +1 -0
  34. package/dist/cjs/api/types/FileDownloadBlock.d.ts +1 -0
  35. package/dist/cjs/api/types/FileDownloadBlockYaml.d.ts +1 -0
  36. package/dist/cjs/api/types/FileParserBlock.d.ts +1 -0
  37. package/dist/cjs/api/types/FileParserBlockYaml.d.ts +1 -0
  38. package/dist/cjs/api/types/FileUploadBlock.d.ts +1 -0
  39. package/dist/cjs/api/types/FileUploadBlockYaml.d.ts +1 -0
  40. package/dist/cjs/api/types/ForLoopBlock.d.ts +1 -0
  41. package/dist/cjs/api/types/ForLoopBlockYaml.d.ts +1 -0
  42. package/dist/cjs/api/types/ForLoopBlockYamlLoopBlocksItem.d.ts +4 -1
  43. package/dist/cjs/api/types/HttpRequestBlock.d.ts +2 -0
  44. package/dist/cjs/api/types/HttpRequestBlockYaml.d.ts +2 -0
  45. package/dist/cjs/api/types/HumanInteractionBlock.d.ts +1 -0
  46. package/dist/cjs/api/types/HumanInteractionBlockYaml.d.ts +1 -0
  47. package/dist/cjs/api/types/JinjaBranchCriteria.d.ts +7 -0
  48. package/dist/cjs/api/types/LoginBlock.d.ts +1 -0
  49. package/dist/cjs/api/types/LoginBlockYaml.d.ts +1 -0
  50. package/dist/cjs/api/types/NavigationBlock.d.ts +1 -0
  51. package/dist/cjs/api/types/NavigationBlockYaml.d.ts +1 -0
  52. package/dist/cjs/api/types/PdfParserBlock.d.ts +1 -0
  53. package/dist/cjs/api/types/PdfParserBlockYaml.d.ts +1 -0
  54. package/dist/cjs/api/types/PromptAction.d.ts +11 -0
  55. package/dist/cjs/api/types/PromptBranchCriteria.d.ts +7 -0
  56. package/dist/cjs/api/types/PromptBranchCriteria.js +3 -0
  57. package/dist/cjs/api/types/RetryRunWebhookRequest.d.ts +4 -0
  58. package/dist/cjs/api/types/RetryRunWebhookRequest.js +3 -0
  59. package/dist/cjs/api/types/RunSdkActionRequestAction.d.ts +7 -1
  60. package/dist/cjs/api/types/SecretCredential.d.ts +9 -0
  61. package/dist/cjs/api/types/SecretCredential.js +3 -0
  62. package/dist/cjs/api/types/SecretCredentialResponse.d.ts +7 -0
  63. package/dist/cjs/api/types/SecretCredentialResponse.js +3 -0
  64. package/dist/cjs/api/types/SendEmailBlock.d.ts +1 -0
  65. package/dist/cjs/api/types/SendEmailBlockYaml.d.ts +1 -0
  66. package/dist/cjs/api/types/SkyvernForgeSdkSchemasCredentialsCredentialType.d.ts +1 -0
  67. package/dist/cjs/api/types/SkyvernForgeSdkSchemasCredentialsCredentialType.js +1 -0
  68. package/dist/cjs/api/types/TaskBlock.d.ts +1 -0
  69. package/dist/cjs/api/types/TaskBlockYaml.d.ts +1 -0
  70. package/dist/cjs/api/types/TaskV2Block.d.ts +1 -0
  71. package/dist/cjs/api/types/TaskV2BlockYaml.d.ts +1 -0
  72. package/dist/cjs/api/types/TextPromptBlock.d.ts +1 -0
  73. package/dist/cjs/api/types/TextPromptBlockYaml.d.ts +1 -0
  74. package/dist/cjs/api/types/UploadFileResponse.d.ts +6 -0
  75. package/dist/cjs/api/types/UploadFileResponse.js +3 -0
  76. package/dist/cjs/api/types/UploadToS3Block.d.ts +1 -0
  77. package/dist/cjs/api/types/UploadToS3BlockYaml.d.ts +1 -0
  78. package/dist/cjs/api/types/UrlBlock.d.ts +1 -0
  79. package/dist/cjs/api/types/UrlBlockYaml.d.ts +1 -0
  80. package/dist/cjs/api/types/ValidateAction.d.ts +9 -0
  81. package/dist/cjs/api/types/ValidateAction.js +3 -0
  82. package/dist/cjs/api/types/ValidationBlock.d.ts +1 -0
  83. package/dist/cjs/api/types/ValidationBlockYaml.d.ts +1 -0
  84. package/dist/cjs/api/types/WaitBlock.d.ts +1 -0
  85. package/dist/cjs/api/types/WaitBlockYaml.d.ts +1 -0
  86. package/dist/cjs/api/types/Workflow.d.ts +1 -0
  87. package/dist/cjs/api/types/WorkflowDefinitionYamlBlocksItem.d.ts +4 -1
  88. package/dist/cjs/api/types/WorkflowRunBlock.d.ts +4 -0
  89. package/dist/cjs/api/types/index.d.ts +12 -2
  90. package/dist/cjs/api/types/index.js +12 -2
  91. package/dist/cjs/core/exports.d.ts +1 -0
  92. package/dist/cjs/{api/resources/workflows/index.js → core/exports.js} +1 -1
  93. package/dist/cjs/core/file/exports.d.ts +1 -0
  94. package/dist/cjs/core/file/file.d.ts +10 -0
  95. package/dist/cjs/core/file/file.js +221 -0
  96. package/dist/cjs/core/file/index.d.ts +2 -0
  97. package/dist/cjs/core/file/index.js +18 -0
  98. package/dist/cjs/core/file/types.d.ts +66 -0
  99. package/dist/cjs/core/file/types.js +2 -0
  100. package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +15 -0
  101. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +185 -0
  102. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  103. package/dist/cjs/core/form-data-utils/encodeAsFormParameter.js +12 -0
  104. package/dist/cjs/core/form-data-utils/index.d.ts +2 -0
  105. package/dist/cjs/core/form-data-utils/index.js +20 -0
  106. package/dist/cjs/core/index.d.ts +2 -0
  107. package/dist/cjs/core/index.js +3 -1
  108. package/dist/cjs/exports.d.ts +1 -0
  109. package/dist/cjs/{api/resources/workflows/client/index.js → exports.js} +1 -1
  110. package/dist/cjs/index.d.ts +4 -1
  111. package/dist/cjs/index.js +11 -2
  112. package/dist/cjs/library/Skyvern.d.ts +124 -0
  113. package/dist/cjs/library/Skyvern.js +333 -0
  114. package/dist/cjs/library/SkyvernBrowser.d.ts +76 -0
  115. package/dist/cjs/library/SkyvernBrowser.js +119 -0
  116. package/dist/cjs/library/SkyvernBrowserPage.d.ts +152 -0
  117. package/dist/cjs/library/SkyvernBrowserPage.js +275 -0
  118. package/dist/cjs/library/SkyvernBrowserPageAgent.d.ts +183 -0
  119. package/dist/cjs/library/SkyvernBrowserPageAgent.js +243 -0
  120. package/dist/cjs/library/SkyvernBrowserPageAi.d.ts +85 -0
  121. package/dist/cjs/library/SkyvernBrowserPageAi.js +248 -0
  122. package/dist/cjs/library/constants.d.ts +3 -0
  123. package/dist/cjs/library/constants.js +6 -0
  124. package/dist/cjs/library/index.d.ts +10 -0
  125. package/dist/cjs/library/index.js +20 -0
  126. package/dist/cjs/library/logger.d.ts +15 -0
  127. package/dist/cjs/library/logger.js +56 -0
  128. package/dist/cjs/version.d.ts +1 -1
  129. package/dist/cjs/version.js +1 -1
  130. package/dist/esm/Client.d.mts +32 -4
  131. package/dist/esm/Client.mjs +144 -11
  132. package/dist/esm/api/client/requests/BodyUploadFileV1UploadFilePost.d.mts +10 -0
  133. package/dist/esm/api/client/requests/CreateCredentialRequest.d.mts +1 -1
  134. package/dist/esm/api/client/requests/DownloadFilesRequest.d.mts +37 -0
  135. package/dist/esm/api/client/requests/GetWorkflowsRequest.d.mts +2 -0
  136. package/dist/esm/api/client/requests/LoginRequest.d.mts +6 -6
  137. package/dist/esm/api/client/requests/index.d.mts +2 -0
  138. package/dist/esm/api/resources/index.d.mts +0 -2
  139. package/dist/esm/api/resources/index.mjs +0 -2
  140. package/dist/esm/api/types/Action.d.mts +1 -0
  141. package/dist/esm/api/types/ActionBlock.d.mts +1 -0
  142. package/dist/esm/api/types/ActionBlockYaml.d.mts +1 -0
  143. package/dist/esm/api/types/ActionType.d.mts +1 -0
  144. package/dist/esm/api/types/ActionType.mjs +1 -0
  145. package/dist/esm/api/types/Artifact.d.mts +1 -0
  146. package/dist/esm/api/types/BranchCondition.d.mts +2 -1
  147. package/dist/esm/api/types/BranchConditionCriteria.d.mts +10 -0
  148. package/dist/esm/api/types/BranchConditionYaml.d.mts +7 -0
  149. package/dist/esm/api/types/BranchCriteriaYaml.d.mts +12 -0
  150. package/dist/esm/api/types/BranchCriteriaYaml.mjs +8 -0
  151. package/dist/esm/api/types/CodeBlock.d.mts +1 -0
  152. package/dist/esm/api/types/CodeBlockYaml.d.mts +1 -0
  153. package/dist/esm/api/types/ConditionalBlock.d.mts +1 -0
  154. package/dist/esm/api/types/ConditionalBlockYaml.d.mts +11 -0
  155. package/dist/esm/api/types/CredentialResponse.d.mts +1 -1
  156. package/dist/esm/api/types/CredentialTypeOutput.d.mts +1 -0
  157. package/dist/esm/api/types/CredentialTypeOutput.mjs +1 -0
  158. package/dist/esm/api/types/DownloadToS3Block.d.mts +1 -0
  159. package/dist/esm/api/types/DownloadToS3BlockYaml.d.mts +1 -0
  160. package/dist/esm/api/types/ExtractionBlock.d.mts +1 -0
  161. package/dist/esm/api/types/ExtractionBlockYaml.d.mts +1 -0
  162. package/dist/esm/api/types/FileDownloadBlock.d.mts +1 -0
  163. package/dist/esm/api/types/FileDownloadBlockYaml.d.mts +1 -0
  164. package/dist/esm/api/types/FileParserBlock.d.mts +1 -0
  165. package/dist/esm/api/types/FileParserBlockYaml.d.mts +1 -0
  166. package/dist/esm/api/types/FileUploadBlock.d.mts +1 -0
  167. package/dist/esm/api/types/FileUploadBlockYaml.d.mts +1 -0
  168. package/dist/esm/api/types/ForLoopBlock.d.mts +1 -0
  169. package/dist/esm/api/types/ForLoopBlockYaml.d.mts +1 -0
  170. package/dist/esm/api/types/ForLoopBlockYamlLoopBlocksItem.d.mts +4 -1
  171. package/dist/esm/api/types/HttpRequestBlock.d.mts +2 -0
  172. package/dist/esm/api/types/HttpRequestBlockYaml.d.mts +2 -0
  173. package/dist/esm/api/types/HumanInteractionBlock.d.mts +1 -0
  174. package/dist/esm/api/types/HumanInteractionBlockYaml.d.mts +1 -0
  175. package/dist/esm/api/types/JinjaBranchCriteria.d.mts +7 -0
  176. package/dist/esm/api/types/LoginBlock.d.mts +1 -0
  177. package/dist/esm/api/types/LoginBlockYaml.d.mts +1 -0
  178. package/dist/esm/api/types/NavigationBlock.d.mts +1 -0
  179. package/dist/esm/api/types/NavigationBlockYaml.d.mts +1 -0
  180. package/dist/esm/api/types/PdfParserBlock.d.mts +1 -0
  181. package/dist/esm/api/types/PdfParserBlockYaml.d.mts +1 -0
  182. package/dist/esm/api/types/PromptAction.d.mts +11 -0
  183. package/dist/esm/api/types/PromptBranchCriteria.d.mts +7 -0
  184. package/dist/esm/api/types/PromptBranchCriteria.mjs +2 -0
  185. package/dist/esm/api/types/RetryRunWebhookRequest.d.mts +4 -0
  186. package/dist/esm/api/types/RetryRunWebhookRequest.mjs +2 -0
  187. package/dist/esm/api/types/RunSdkActionRequestAction.d.mts +7 -1
  188. package/dist/esm/api/types/SecretCredential.d.mts +9 -0
  189. package/dist/esm/api/types/SecretCredential.mjs +2 -0
  190. package/dist/esm/api/types/SecretCredentialResponse.d.mts +7 -0
  191. package/dist/esm/api/types/SecretCredentialResponse.mjs +2 -0
  192. package/dist/esm/api/types/SendEmailBlock.d.mts +1 -0
  193. package/dist/esm/api/types/SendEmailBlockYaml.d.mts +1 -0
  194. package/dist/esm/api/types/SkyvernForgeSdkSchemasCredentialsCredentialType.d.mts +1 -0
  195. package/dist/esm/api/types/SkyvernForgeSdkSchemasCredentialsCredentialType.mjs +1 -0
  196. package/dist/esm/api/types/TaskBlock.d.mts +1 -0
  197. package/dist/esm/api/types/TaskBlockYaml.d.mts +1 -0
  198. package/dist/esm/api/types/TaskV2Block.d.mts +1 -0
  199. package/dist/esm/api/types/TaskV2BlockYaml.d.mts +1 -0
  200. package/dist/esm/api/types/TextPromptBlock.d.mts +1 -0
  201. package/dist/esm/api/types/TextPromptBlockYaml.d.mts +1 -0
  202. package/dist/esm/api/types/UploadFileResponse.d.mts +6 -0
  203. package/dist/esm/api/types/UploadFileResponse.mjs +2 -0
  204. package/dist/esm/api/types/UploadToS3Block.d.mts +1 -0
  205. package/dist/esm/api/types/UploadToS3BlockYaml.d.mts +1 -0
  206. package/dist/esm/api/types/UrlBlock.d.mts +1 -0
  207. package/dist/esm/api/types/UrlBlockYaml.d.mts +1 -0
  208. package/dist/esm/api/types/ValidateAction.d.mts +9 -0
  209. package/dist/esm/api/types/ValidateAction.mjs +2 -0
  210. package/dist/esm/api/types/ValidationBlock.d.mts +1 -0
  211. package/dist/esm/api/types/ValidationBlockYaml.d.mts +1 -0
  212. package/dist/esm/api/types/WaitBlock.d.mts +1 -0
  213. package/dist/esm/api/types/WaitBlockYaml.d.mts +1 -0
  214. package/dist/esm/api/types/Workflow.d.mts +1 -0
  215. package/dist/esm/api/types/WorkflowDefinitionYamlBlocksItem.d.mts +4 -1
  216. package/dist/esm/api/types/WorkflowRunBlock.d.mts +4 -0
  217. package/dist/esm/api/types/index.d.mts +12 -2
  218. package/dist/esm/api/types/index.mjs +12 -2
  219. package/dist/esm/core/exports.d.mts +1 -0
  220. package/dist/esm/core/exports.mjs +1 -0
  221. package/dist/esm/core/file/exports.d.mts +1 -0
  222. package/dist/esm/core/file/file.d.mts +10 -0
  223. package/dist/esm/core/file/file.mjs +184 -0
  224. package/dist/esm/core/file/index.d.mts +2 -0
  225. package/dist/esm/core/file/index.mjs +2 -0
  226. package/dist/esm/core/file/types.d.mts +66 -0
  227. package/dist/esm/core/file/types.mjs +1 -0
  228. package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +15 -0
  229. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +147 -0
  230. package/dist/esm/core/form-data-utils/encodeAsFormParameter.d.mts +1 -0
  231. package/dist/esm/core/form-data-utils/encodeAsFormParameter.mjs +9 -0
  232. package/dist/esm/core/form-data-utils/index.d.mts +2 -0
  233. package/dist/esm/core/form-data-utils/index.mjs +2 -0
  234. package/dist/esm/core/index.d.mts +2 -0
  235. package/dist/esm/core/index.mjs +2 -0
  236. package/dist/esm/exports.d.mts +1 -0
  237. package/dist/esm/exports.mjs +1 -0
  238. package/dist/esm/index.d.mts +4 -1
  239. package/dist/esm/index.mjs +3 -1
  240. package/dist/esm/library/Skyvern.d.mts +124 -0
  241. package/dist/esm/library/Skyvern.mjs +296 -0
  242. package/dist/esm/library/SkyvernBrowser.d.mts +76 -0
  243. package/dist/esm/library/SkyvernBrowser.mjs +115 -0
  244. package/dist/esm/library/SkyvernBrowserPage.d.mts +152 -0
  245. package/dist/esm/library/SkyvernBrowserPage.mjs +271 -0
  246. package/dist/esm/library/SkyvernBrowserPageAgent.d.mts +183 -0
  247. package/dist/esm/library/SkyvernBrowserPageAgent.mjs +239 -0
  248. package/dist/esm/library/SkyvernBrowserPageAi.d.mts +85 -0
  249. package/dist/esm/library/SkyvernBrowserPageAi.mjs +244 -0
  250. package/dist/esm/library/constants.d.mts +3 -0
  251. package/dist/esm/library/constants.mjs +3 -0
  252. package/dist/esm/library/index.d.mts +10 -0
  253. package/dist/esm/library/index.mjs +7 -0
  254. package/dist/esm/library/logger.d.mts +15 -0
  255. package/dist/esm/library/logger.mjs +52 -0
  256. package/dist/esm/version.d.mts +1 -1
  257. package/dist/esm/version.mjs +1 -1
  258. package/package.json +4 -1
  259. package/reference.md +0 -411
  260. package/dist/cjs/api/resources/workflows/client/Client.d.ts +0 -108
  261. package/dist/cjs/api/resources/workflows/client/Client.js +0 -465
  262. package/dist/cjs/api/resources/workflows/client/index.d.ts +0 -1
  263. package/dist/cjs/api/resources/workflows/client/requests/DeleteFolderV1FoldersFolderIdDeleteRequest.d.ts +0 -10
  264. package/dist/cjs/api/resources/workflows/client/requests/FolderCreate.d.ts +0 -12
  265. package/dist/cjs/api/resources/workflows/client/requests/FolderUpdate.d.ts +0 -10
  266. package/dist/cjs/api/resources/workflows/client/requests/GetFoldersV1FoldersGetRequest.d.ts +0 -16
  267. package/dist/cjs/api/resources/workflows/client/requests/UpdateWorkflowFolderRequest.d.ts +0 -8
  268. package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +0 -5
  269. package/dist/cjs/api/resources/workflows/index.d.ts +0 -1
  270. package/dist/cjs/api/types/BranchCriteria.d.ts +0 -8
  271. package/dist/cjs/api/types/Folder.d.ts +0 -15
  272. package/dist/esm/api/resources/workflows/client/Client.d.mts +0 -108
  273. package/dist/esm/api/resources/workflows/client/Client.mjs +0 -428
  274. package/dist/esm/api/resources/workflows/client/index.d.mts +0 -1
  275. package/dist/esm/api/resources/workflows/client/index.mjs +0 -1
  276. package/dist/esm/api/resources/workflows/client/requests/DeleteFolderV1FoldersFolderIdDeleteRequest.d.mts +0 -10
  277. package/dist/esm/api/resources/workflows/client/requests/FolderCreate.d.mts +0 -12
  278. package/dist/esm/api/resources/workflows/client/requests/FolderUpdate.d.mts +0 -10
  279. package/dist/esm/api/resources/workflows/client/requests/GetFoldersV1FoldersGetRequest.d.mts +0 -16
  280. package/dist/esm/api/resources/workflows/client/requests/UpdateWorkflowFolderRequest.d.mts +0 -8
  281. package/dist/esm/api/resources/workflows/client/requests/index.d.mts +0 -5
  282. package/dist/esm/api/resources/workflows/index.d.mts +0 -1
  283. package/dist/esm/api/resources/workflows/index.mjs +0 -1
  284. package/dist/esm/api/types/BranchCriteria.d.mts +0 -8
  285. package/dist/esm/api/types/Folder.d.mts +0 -15
  286. /package/dist/cjs/api/{resources/workflows/client/requests/DeleteFolderV1FoldersFolderIdDeleteRequest.js → client/requests/BodyUploadFileV1UploadFilePost.js} +0 -0
  287. /package/dist/cjs/api/{resources/workflows/client/requests/FolderCreate.js → client/requests/DownloadFilesRequest.js} +0 -0
  288. /package/dist/cjs/api/{resources/workflows/client/requests/FolderUpdate.js → types/BranchConditionCriteria.js} +0 -0
  289. /package/dist/cjs/api/{resources/workflows/client/requests/GetFoldersV1FoldersGetRequest.js → types/BranchConditionYaml.js} +0 -0
  290. /package/dist/cjs/api/{resources/workflows/client/requests/UpdateWorkflowFolderRequest.js → types/ConditionalBlockYaml.js} +0 -0
  291. /package/dist/cjs/api/types/{BranchCriteria.js → JinjaBranchCriteria.js} +0 -0
  292. /package/dist/cjs/api/types/{Folder.js → PromptAction.js} +0 -0
  293. /package/dist/cjs/{api/resources/workflows/client/requests/index.js → core/file/exports.js} +0 -0
  294. /package/dist/esm/api/{resources/workflows/client/requests/DeleteFolderV1FoldersFolderIdDeleteRequest.mjs → client/requests/BodyUploadFileV1UploadFilePost.mjs} +0 -0
  295. /package/dist/esm/api/{resources/workflows/client/requests/FolderCreate.mjs → client/requests/DownloadFilesRequest.mjs} +0 -0
  296. /package/dist/esm/api/{resources/workflows/client/requests/FolderUpdate.mjs → types/BranchConditionCriteria.mjs} +0 -0
  297. /package/dist/esm/api/{resources/workflows/client/requests/GetFoldersV1FoldersGetRequest.mjs → types/BranchConditionYaml.mjs} +0 -0
  298. /package/dist/esm/api/{resources/workflows/client/requests/UpdateWorkflowFolderRequest.mjs → types/ConditionalBlockYaml.mjs} +0 -0
  299. /package/dist/esm/api/types/{BranchCriteria.mjs → JinjaBranchCriteria.mjs} +0 -0
  300. /package/dist/esm/api/types/{Folder.mjs → PromptAction.mjs} +0 -0
  301. /package/dist/esm/{api/resources/workflows/client/requests/index.mjs → core/file/exports.mjs} +0 -0
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LOG = void 0;
4
+ exports.setLogger = setLogger;
5
+ function formatLogMessage(message, context) {
6
+ const prefix = "[Skyvern]";
7
+ if (!context || Object.keys(context).length === 0) {
8
+ return `${prefix} ${message}`;
9
+ }
10
+ const contextParts = Object.entries(context)
11
+ .filter(([, value]) => value !== null && value !== undefined)
12
+ .map(([key, value]) => {
13
+ if (typeof value === "object") {
14
+ return `${key}=${JSON.stringify(value)}`;
15
+ }
16
+ return `${key}=${value}`;
17
+ })
18
+ .join(" ");
19
+ if (contextParts.length === 0) {
20
+ return `${prefix} ${message}`;
21
+ }
22
+ return `${prefix} ${message}\t${contextParts}`;
23
+ }
24
+ const defaultLogger = {
25
+ debug: (message, context) => {
26
+ console.debug(formatLogMessage(message, context));
27
+ },
28
+ info: (message, context) => {
29
+ console.info(formatLogMessage(message, context));
30
+ },
31
+ warn: (message, context) => {
32
+ console.warn(formatLogMessage(message, context));
33
+ },
34
+ error: (message, context) => {
35
+ console.error(formatLogMessage(message, context));
36
+ },
37
+ };
38
+ let currentLogger = defaultLogger;
39
+ function setLogger(logger) {
40
+ currentLogger = logger;
41
+ }
42
+ class StructuredLogger {
43
+ debug(message, context) {
44
+ currentLogger.debug(message, context);
45
+ }
46
+ info(message, context) {
47
+ currentLogger.info(message, context);
48
+ }
49
+ warn(message, context) {
50
+ currentLogger.warn(message, context);
51
+ }
52
+ error(message, context) {
53
+ currentLogger.error(message, context);
54
+ }
55
+ }
56
+ exports.LOG = new StructuredLogger();
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.2";
1
+ export declare const SDK_VERSION = "1.0.6";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.0.2";
4
+ exports.SDK_VERSION = "1.0.6";
@@ -1,6 +1,5 @@
1
1
  import * as Skyvern from "./api/index.mjs";
2
2
  import { Scripts } from "./api/resources/scripts/client/Client.mjs";
3
- import { Workflows } from "./api/resources/workflows/client/Client.mjs";
4
3
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
5
4
  import * as core from "./core/index.mjs";
6
5
  export declare namespace SkyvernClient {
@@ -11,10 +10,8 @@ export declare namespace SkyvernClient {
11
10
  }
12
11
  export declare class SkyvernClient {
13
12
  protected readonly _options: SkyvernClient.Options;
14
- protected _workflows: Workflows | undefined;
15
13
  protected _scripts: Scripts | undefined;
16
14
  constructor(_options?: SkyvernClient.Options);
17
- get workflows(): Workflows;
18
15
  get scripts(): Scripts;
19
16
  /**
20
17
  * Run a task
@@ -104,6 +101,7 @@ export declare class SkyvernClient {
104
101
  * page_size: 1,
105
102
  * only_saved_tasks: true,
106
103
  * only_workflows: true,
104
+ * only_templates: true,
107
105
  * search_key: "search_key",
108
106
  * title: "title",
109
107
  * folder_id: "folder_id",
@@ -187,6 +185,7 @@ export declare class SkyvernClient {
187
185
  * Retry sending the webhook for a run
188
186
  *
189
187
  * @param {string} runId - The id of the task run or the workflow run.
188
+ * @param {Skyvern.RetryRunWebhookRequest} request
190
189
  * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
191
190
  *
192
191
  * @throws {@link Skyvern.UnprocessableEntityError}
@@ -194,7 +193,7 @@ export declare class SkyvernClient {
194
193
  * @example
195
194
  * await client.retryRunWebhook("tsk_123")
196
195
  */
197
- retryRunWebhook(runId: string, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<unknown>;
196
+ retryRunWebhook(runId: string, request?: Skyvern.RetryRunWebhookRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<unknown>;
198
197
  private __retryRunWebhook;
199
198
  /**
200
199
  * Get timeline for a run (workflow run or task_v2 run)
@@ -211,6 +210,20 @@ export declare class SkyvernClient {
211
210
  */
212
211
  getRunTimeline(runId: string, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.WorkflowRunTimeline[]>;
213
212
  private __getRunTimeline;
213
+ /**
214
+ * @param {Skyvern.BodyUploadFileV1UploadFilePost} request
215
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
216
+ *
217
+ * @throws {@link Skyvern.UnprocessableEntityError}
218
+ *
219
+ * @example
220
+ * import { createReadStream } from "fs";
221
+ * await client.uploadFile({
222
+ * file: fs.createReadStream("/path/to/your/file")
223
+ * })
224
+ */
225
+ uploadFile(request: Skyvern.BodyUploadFileV1UploadFilePost, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.UploadFileResponse>;
226
+ private __uploadFile;
214
227
  /**
215
228
  * Get all browser profiles for the organization
216
229
  *
@@ -421,6 +434,21 @@ export declare class SkyvernClient {
421
434
  */
422
435
  login(request: Skyvern.LoginRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.WorkflowRunResponse>;
423
436
  private __login;
437
+ /**
438
+ * Download a file from a website by navigating and clicking download buttons
439
+ *
440
+ * @param {Skyvern.DownloadFilesRequest} request
441
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
442
+ *
443
+ * @throws {@link Skyvern.UnprocessableEntityError}
444
+ *
445
+ * @example
446
+ * await client.downloadFiles({
447
+ * navigation_goal: "navigation_goal"
448
+ * })
449
+ */
450
+ downloadFiles(request: Skyvern.DownloadFilesRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.WorkflowRunResponse>;
451
+ private __downloadFiles;
424
452
  /**
425
453
  * Retrieves a paginated list of scripts for the current organization
426
454
  *
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  import * as Skyvern from "./api/index.mjs";
12
12
  import { Scripts } from "./api/resources/scripts/client/Client.mjs";
13
- import { Workflows } from "./api/resources/workflows/client/Client.mjs";
14
13
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "./core/headers.mjs";
15
14
  import * as core from "./core/index.mjs";
16
15
  import * as environments from "./environments.mjs";
@@ -21,16 +20,12 @@ export class SkyvernClient {
21
20
  "x-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
22
21
  "X-Fern-Language": "JavaScript",
23
22
  "X-Fern-SDK-Name": "@skyvern/client",
24
- "X-Fern-SDK-Version": "1.0.2",
25
- "User-Agent": "@skyvern/client/1.0.2",
23
+ "X-Fern-SDK-Version": "1.0.6",
24
+ "User-Agent": "@skyvern/client/1.0.6",
26
25
  "X-Fern-Runtime": core.RUNTIME.type,
27
26
  "X-Fern-Runtime-Version": core.RUNTIME.version,
28
27
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
29
28
  }
30
- get workflows() {
31
- var _a;
32
- return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Workflows(this._options)));
33
- }
34
29
  get scripts() {
35
30
  var _a;
36
31
  return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Scripts(this._options)));
@@ -332,6 +327,7 @@ export class SkyvernClient {
332
327
  * page_size: 1,
333
328
  * only_saved_tasks: true,
334
329
  * only_workflows: true,
330
+ * only_templates: true,
335
331
  * search_key: "search_key",
336
332
  * title: "title",
337
333
  * folder_id: "folder_id",
@@ -344,7 +340,7 @@ export class SkyvernClient {
344
340
  __getWorkflows() {
345
341
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
346
342
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
347
- const { page, page_size: pageSize, only_saved_tasks: onlySavedTasks, only_workflows: onlyWorkflows, search_key: searchKey, title, folder_id: folderId, status, template, } = request;
343
+ const { page, page_size: pageSize, only_saved_tasks: onlySavedTasks, only_workflows: onlyWorkflows, only_templates: onlyTemplates, search_key: searchKey, title, folder_id: folderId, status, template, } = request;
348
344
  const _queryParams = {};
349
345
  if (page != null) {
350
346
  _queryParams.page = page.toString();
@@ -358,6 +354,9 @@ export class SkyvernClient {
358
354
  if (onlyWorkflows != null) {
359
355
  _queryParams.only_workflows = onlyWorkflows.toString();
360
356
  }
357
+ if (onlyTemplates != null) {
358
+ _queryParams.only_templates = onlyTemplates.toString();
359
+ }
361
360
  if (searchKey != null) {
362
361
  _queryParams.search_key = searchKey;
363
362
  }
@@ -748,6 +747,7 @@ export class SkyvernClient {
748
747
  * Retry sending the webhook for a run
749
748
  *
750
749
  * @param {string} runId - The id of the task run or the workflow run.
750
+ * @param {Skyvern.RetryRunWebhookRequest} request
751
751
  * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
752
752
  *
753
753
  * @throws {@link Skyvern.UnprocessableEntityError}
@@ -755,10 +755,10 @@ export class SkyvernClient {
755
755
  * @example
756
756
  * await client.retryRunWebhook("tsk_123")
757
757
  */
758
- retryRunWebhook(runId, requestOptions) {
759
- return core.HttpResponsePromise.fromPromise(this.__retryRunWebhook(runId, requestOptions));
758
+ retryRunWebhook(runId, request, requestOptions) {
759
+ return core.HttpResponsePromise.fromPromise(this.__retryRunWebhook(runId, request, requestOptions));
760
760
  }
761
- __retryRunWebhook(runId, requestOptions) {
761
+ __retryRunWebhook(runId, request, requestOptions) {
762
762
  return __awaiter(this, void 0, void 0, function* () {
763
763
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
764
764
  const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
@@ -766,7 +766,10 @@ export class SkyvernClient {
766
766
  url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/runs/${core.url.encodePathParam(runId)}/retry_webhook`),
767
767
  method: "POST",
768
768
  headers: _headers,
769
+ contentType: "application/json",
769
770
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
771
+ requestType: "json",
772
+ body: request != null ? request : undefined,
770
773
  timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
771
774
  maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
772
775
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -868,6 +871,72 @@ export class SkyvernClient {
868
871
  }
869
872
  });
870
873
  }
874
+ /**
875
+ * @param {Skyvern.BodyUploadFileV1UploadFilePost} request
876
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
877
+ *
878
+ * @throws {@link Skyvern.UnprocessableEntityError}
879
+ *
880
+ * @example
881
+ * import { createReadStream } from "fs";
882
+ * await client.uploadFile({
883
+ * file: fs.createReadStream("/path/to/your/file")
884
+ * })
885
+ */
886
+ uploadFile(request, requestOptions) {
887
+ return core.HttpResponsePromise.fromPromise(this.__uploadFile(request, requestOptions));
888
+ }
889
+ __uploadFile(request, requestOptions) {
890
+ return __awaiter(this, void 0, void 0, function* () {
891
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
892
+ const _request = yield core.newFormData();
893
+ yield _request.appendFile("file", request.file);
894
+ const _maybeEncodedRequest = yield _request.getRequest();
895
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
896
+ const _response = yield core.fetcher({
897
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/upload_file"),
898
+ method: "POST",
899
+ headers: _headers,
900
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
901
+ requestType: "file",
902
+ duplex: _maybeEncodedRequest.duplex,
903
+ body: _maybeEncodedRequest.body,
904
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
905
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
906
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
907
+ });
908
+ if (_response.ok) {
909
+ return { data: _response.body, rawResponse: _response.rawResponse };
910
+ }
911
+ if (_response.error.reason === "status-code") {
912
+ switch (_response.error.statusCode) {
913
+ case 422:
914
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
915
+ default:
916
+ throw new errors.SkyvernError({
917
+ statusCode: _response.error.statusCode,
918
+ body: _response.error.body,
919
+ rawResponse: _response.rawResponse,
920
+ });
921
+ }
922
+ }
923
+ switch (_response.error.reason) {
924
+ case "non-json":
925
+ throw new errors.SkyvernError({
926
+ statusCode: _response.error.statusCode,
927
+ body: _response.error.rawBody,
928
+ rawResponse: _response.rawResponse,
929
+ });
930
+ case "timeout":
931
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling POST /v1/upload_file.");
932
+ case "unknown":
933
+ throw new errors.SkyvernError({
934
+ message: _response.error.errorMessage,
935
+ rawResponse: _response.rawResponse,
936
+ });
937
+ }
938
+ });
939
+ }
871
940
  /**
872
941
  * Get all browser profiles for the organization
873
942
  *
@@ -1768,6 +1837,70 @@ export class SkyvernClient {
1768
1837
  }
1769
1838
  });
1770
1839
  }
1840
+ /**
1841
+ * Download a file from a website by navigating and clicking download buttons
1842
+ *
1843
+ * @param {Skyvern.DownloadFilesRequest} request
1844
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
1845
+ *
1846
+ * @throws {@link Skyvern.UnprocessableEntityError}
1847
+ *
1848
+ * @example
1849
+ * await client.downloadFiles({
1850
+ * navigation_goal: "navigation_goal"
1851
+ * })
1852
+ */
1853
+ downloadFiles(request, requestOptions) {
1854
+ return core.HttpResponsePromise.fromPromise(this.__downloadFiles(request, requestOptions));
1855
+ }
1856
+ __downloadFiles(request, requestOptions) {
1857
+ return __awaiter(this, void 0, void 0, function* () {
1858
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1859
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1860
+ const _response = yield core.fetcher({
1861
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/run/tasks/download_files"),
1862
+ method: "POST",
1863
+ headers: _headers,
1864
+ contentType: "application/json",
1865
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1866
+ requestType: "json",
1867
+ body: request,
1868
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
1869
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
1870
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1871
+ });
1872
+ if (_response.ok) {
1873
+ return { data: _response.body, rawResponse: _response.rawResponse };
1874
+ }
1875
+ if (_response.error.reason === "status-code") {
1876
+ switch (_response.error.statusCode) {
1877
+ case 422:
1878
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1879
+ default:
1880
+ throw new errors.SkyvernError({
1881
+ statusCode: _response.error.statusCode,
1882
+ body: _response.error.body,
1883
+ rawResponse: _response.rawResponse,
1884
+ });
1885
+ }
1886
+ }
1887
+ switch (_response.error.reason) {
1888
+ case "non-json":
1889
+ throw new errors.SkyvernError({
1890
+ statusCode: _response.error.statusCode,
1891
+ body: _response.error.rawBody,
1892
+ rawResponse: _response.rawResponse,
1893
+ });
1894
+ case "timeout":
1895
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling POST /v1/run/tasks/download_files.");
1896
+ case "unknown":
1897
+ throw new errors.SkyvernError({
1898
+ message: _response.error.errorMessage,
1899
+ rawResponse: _response.rawResponse,
1900
+ });
1901
+ }
1902
+ });
1903
+ }
1771
1904
  /**
1772
1905
  * Retrieves a paginated list of scripts for the current organization
1773
1906
  *
@@ -0,0 +1,10 @@
1
+ import type * as core from "../../../core/index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * file: fs.createReadStream("/path/to/your/file")
6
+ * }
7
+ */
8
+ export interface BodyUploadFileV1UploadFilePost {
9
+ file: core.file.Uploadable;
10
+ }
@@ -23,5 +23,5 @@ export declare namespace CreateCredentialRequest {
23
23
  /**
24
24
  * The credential data to store
25
25
  */
26
- type Credential = Skyvern.NonEmptyPasswordCredential | Skyvern.NonEmptyCreditCardCredential;
26
+ type Credential = Skyvern.NonEmptyPasswordCredential | Skyvern.NonEmptyCreditCardCredential | Skyvern.SecretCredential;
27
27
  }
@@ -0,0 +1,37 @@
1
+ import type * as Skyvern from "../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * navigation_goal: "navigation_goal"
6
+ * }
7
+ */
8
+ export interface DownloadFilesRequest {
9
+ /** Website URL */
10
+ url?: string;
11
+ /** Webhook URL to send status updates */
12
+ webhook_url?: string;
13
+ /** Proxy location to use */
14
+ proxy_location?: Skyvern.ProxyLocation;
15
+ /** Identifier for TOTP (Time-based One-Time Password) if required */
16
+ totp_identifier?: string;
17
+ /** TOTP URL to fetch one-time passwords */
18
+ totp_url?: string;
19
+ /** ID of the browser session to use, which is prefixed by `pbs_` e.g. `pbs_123456` */
20
+ browser_session_id?: string;
21
+ /** ID of a browser profile to reuse for this run */
22
+ browser_profile_id?: string;
23
+ /** The CDP address for the task. */
24
+ browser_address?: string;
25
+ /** Additional HTTP headers to include in requests */
26
+ extra_http_headers?: Record<string, string | undefined>;
27
+ /** Maximum number of times to scroll for screenshots */
28
+ max_screenshot_scrolling_times?: number;
29
+ /** Instructions for navigating to and downloading the file */
30
+ navigation_goal: string;
31
+ /** Suffix or complete filename for the downloaded file */
32
+ download_suffix?: string;
33
+ /** Timeout in seconds for the download operation */
34
+ download_timeout?: number;
35
+ /** Maximum number of steps to execute */
36
+ max_steps_per_run?: number;
37
+ }
@@ -6,6 +6,7 @@ import type * as Skyvern from "../../index.mjs";
6
6
  * page_size: 1,
7
7
  * only_saved_tasks: true,
8
8
  * only_workflows: true,
9
+ * only_templates: true,
9
10
  * search_key: "search_key",
10
11
  * title: "title",
11
12
  * folder_id: "folder_id",
@@ -17,6 +18,7 @@ export interface GetWorkflowsRequest {
17
18
  page_size?: number;
18
19
  only_saved_tasks?: boolean;
19
20
  only_workflows?: boolean;
21
+ only_templates?: boolean;
20
22
  /** Unified search across workflow title, folder name, and parameter metadata (key, description, default_value). */
21
23
  search_key?: string;
22
24
  /** Deprecated: use search_key instead. */
@@ -6,13 +6,9 @@ import type * as Skyvern from "../../index.mjs";
6
6
  * }
7
7
  */
8
8
  export interface LoginRequest {
9
- /** Where to get the credential from */
10
- credential_type: Skyvern.SkyvernSchemasRunBlocksCredentialType;
11
- /** Website url */
9
+ /** Website URL */
12
10
  url?: string;
13
- /** Login instructions. Skyvern has default prompt/instruction for login if this field is not provided. */
14
- prompt?: string;
15
- /** Webhook URL to send login status updates */
11
+ /** Webhook URL to send status updates */
16
12
  webhook_url?: string;
17
13
  /** Proxy location to use */
18
14
  proxy_location?: Skyvern.ProxyLocation;
@@ -30,6 +26,10 @@ export interface LoginRequest {
30
26
  extra_http_headers?: Record<string, string | undefined>;
31
27
  /** Maximum number of times to scroll for screenshots */
32
28
  max_screenshot_scrolling_times?: number;
29
+ /** Where to get the credential from */
30
+ credential_type: Skyvern.SkyvernSchemasRunBlocksCredentialType;
31
+ /** Login instructions. Skyvern has default prompt/instruction for login if this field is not provided. */
32
+ prompt?: string;
33
33
  /** ID of the Skyvern credential to use for login. */
34
34
  credential_id?: string;
35
35
  /** Bitwarden collection ID. You can find it in the Bitwarden collection URL. e.g. `https://vault.bitwarden.com/vaults/collection_id/items` */
@@ -1,9 +1,11 @@
1
+ export type { BodyUploadFileV1UploadFilePost } from "./BodyUploadFileV1UploadFilePost.mjs";
1
2
  export type { CreateBrowserProfileRequest } from "./CreateBrowserProfileRequest.mjs";
2
3
  export type { CreateBrowserSessionRequest } from "./CreateBrowserSessionRequest.mjs";
3
4
  export type { CreateCredentialRequest } from "./CreateCredentialRequest.mjs";
4
5
  export type { CreateScriptRequest } from "./CreateScriptRequest.mjs";
5
6
  export type { CreateWorkflowRequest } from "./CreateWorkflowRequest.mjs";
6
7
  export type { DeployScriptRequest } from "./DeployScriptRequest.mjs";
8
+ export type { DownloadFilesRequest } from "./DownloadFilesRequest.mjs";
7
9
  export type { GetCredentialsRequest } from "./GetCredentialsRequest.mjs";
8
10
  export type { GetRunArtifactsRequest } from "./GetRunArtifactsRequest.mjs";
9
11
  export type { GetScriptsRequest } from "./GetScriptsRequest.mjs";
@@ -1,3 +1 @@
1
1
  export * as scripts from "./scripts/index.mjs";
2
- export * from "./workflows/client/requests/index.mjs";
3
- export * as workflows from "./workflows/index.mjs";
@@ -1,3 +1 @@
1
1
  export * as scripts from "./scripts/index.mjs";
2
- export * from "./workflows/client/requests/index.mjs";
3
- export * as workflows from "./workflows/index.mjs";
@@ -33,6 +33,7 @@ export interface Action {
33
33
  verified?: boolean;
34
34
  click_context?: Skyvern.ClickContext;
35
35
  totp_timing_info?: Record<string, unknown>;
36
+ has_mini_agent?: boolean;
36
37
  created_at?: string;
37
38
  modified_at?: string;
38
39
  created_by?: string;
@@ -8,6 +8,7 @@ export interface ActionBlock {
8
8
  continue_on_failure?: boolean;
9
9
  model?: Record<string, unknown>;
10
10
  disable_cache?: boolean;
11
+ next_loop_on_failure?: boolean;
11
12
  task_type?: string;
12
13
  url?: string;
13
14
  title?: string;
@@ -6,6 +6,7 @@ export interface ActionBlockYaml {
6
6
  next_block_label?: string;
7
7
  continue_on_failure?: boolean;
8
8
  model?: Record<string, unknown>;
9
+ next_loop_on_failure?: boolean;
9
10
  url?: string;
10
11
  title?: string;
11
12
  engine?: Skyvern.RunEngine;
@@ -6,6 +6,7 @@ export declare const ActionType: {
6
6
  readonly SelectOption: "select_option";
7
7
  readonly Checkbox: "checkbox";
8
8
  readonly Wait: "wait";
9
+ readonly Hover: "hover";
9
10
  readonly NullAction: "null_action";
10
11
  readonly SolveCaptcha: "solve_captcha";
11
12
  readonly Terminate: "terminate";
@@ -7,6 +7,7 @@ export const ActionType = {
7
7
  SelectOption: "select_option",
8
8
  Checkbox: "checkbox",
9
9
  Wait: "wait",
10
+ Hover: "hover",
10
11
  NullAction: "null_action",
11
12
  SolveCaptcha: "solve_captcha",
12
13
  Terminate: "terminate",
@@ -11,6 +11,7 @@ export interface Artifact {
11
11
  step_id?: string;
12
12
  workflow_run_id?: string;
13
13
  workflow_run_block_id?: string;
14
+ run_id?: string;
14
15
  observer_cruise_id?: string;
15
16
  observer_thought_id?: string;
16
17
  ai_suggestion_id?: string;
@@ -3,7 +3,8 @@ import type * as Skyvern from "../index.mjs";
3
3
  * Represents a single conditional branch edge within a ConditionalBlock.
4
4
  */
5
5
  export interface BranchCondition {
6
- criteria?: Skyvern.BranchCriteria;
6
+ id?: string;
7
+ criteria?: Skyvern.BranchConditionCriteria;
7
8
  next_block_label?: string;
8
9
  description?: string;
9
10
  is_default?: boolean;
@@ -0,0 +1,10 @@
1
+ import type * as Skyvern from "../index.mjs";
2
+ export type BranchConditionCriteria = Skyvern.BranchConditionCriteria.Jinja2Template | Skyvern.BranchConditionCriteria.Prompt;
3
+ export declare namespace BranchConditionCriteria {
4
+ interface Jinja2Template extends Skyvern.JinjaBranchCriteria {
5
+ criteria_type: "jinja2_template";
6
+ }
7
+ interface Prompt extends Skyvern.PromptBranchCriteria {
8
+ criteria_type: "prompt";
9
+ }
10
+ }
@@ -0,0 +1,7 @@
1
+ import type * as Skyvern from "../index.mjs";
2
+ export interface BranchConditionYaml {
3
+ criteria?: Skyvern.BranchCriteriaYaml;
4
+ next_block_label?: string;
5
+ description?: string;
6
+ is_default?: boolean;
7
+ }
@@ -0,0 +1,12 @@
1
+ export interface BranchCriteriaYaml {
2
+ criteria_type?: BranchCriteriaYaml.CriteriaType;
3
+ expression: string;
4
+ description?: string;
5
+ }
6
+ export declare namespace BranchCriteriaYaml {
7
+ const CriteriaType: {
8
+ readonly Jinja2Template: "jinja2_template";
9
+ readonly Prompt: "prompt";
10
+ };
11
+ type CriteriaType = (typeof CriteriaType)[keyof typeof CriteriaType];
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var BranchCriteriaYaml;
3
+ (function (BranchCriteriaYaml) {
4
+ BranchCriteriaYaml.CriteriaType = {
5
+ Jinja2Template: "jinja2_template",
6
+ Prompt: "prompt",
7
+ };
8
+ })(BranchCriteriaYaml || (BranchCriteriaYaml = {}));
@@ -8,6 +8,7 @@ export interface CodeBlock {
8
8
  continue_on_failure?: boolean;
9
9
  model?: Record<string, unknown>;
10
10
  disable_cache?: boolean;
11
+ next_loop_on_failure?: boolean;
11
12
  code: string;
12
13
  parameters?: Skyvern.CodeBlockParametersItem[];
13
14
  }
@@ -5,6 +5,7 @@ export interface CodeBlockYaml {
5
5
  next_block_label?: string;
6
6
  continue_on_failure?: boolean;
7
7
  model?: Record<string, unknown>;
8
+ next_loop_on_failure?: boolean;
8
9
  code: string;
9
10
  parameter_keys?: string[];
10
11
  }
@@ -11,5 +11,6 @@ export interface ConditionalBlock {
11
11
  continue_on_failure?: boolean;
12
12
  model?: Record<string, unknown>;
13
13
  disable_cache?: boolean;
14
+ next_loop_on_failure?: boolean;
14
15
  branch_conditions?: Skyvern.BranchCondition[];
15
16
  }