@skyvern/client 1.0.23 → 1.0.55

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 (683) hide show
  1. package/README.md +2 -49
  2. package/dist/cjs/Client.d.ts +634 -134
  3. package/dist/cjs/Client.js +2720 -572
  4. package/dist/cjs/api/client/requests/BatchGetRunTagsRequest.d.ts +10 -0
  5. package/dist/cjs/api/client/requests/BatchGetWorkflowTagsRequest.d.ts +10 -0
  6. package/dist/cjs/api/client/requests/BodyUploadFileV1UploadFilePost.d.ts +2 -3
  7. package/dist/cjs/api/client/requests/BulkCancelRunsRequest.d.ts +10 -0
  8. package/dist/cjs/api/client/requests/CreateBrowserProfileRequest.d.ts +13 -2
  9. package/dist/cjs/api/client/requests/CreateBrowserSessionRequest.d.ts +60 -1
  10. package/dist/cjs/api/client/requests/CustomLlmCreateRequest.d.ts +14 -0
  11. package/dist/cjs/api/client/requests/CustomLlmUpdateRequest.d.ts +14 -0
  12. package/dist/cjs/api/client/requests/DeleteFolderRequest.d.ts +10 -0
  13. package/dist/cjs/api/client/requests/DownloadFilesRequest.d.ts +4 -0
  14. package/dist/cjs/api/client/requests/FolderCreate.d.ts +12 -0
  15. package/dist/cjs/api/client/requests/FolderUpdate.d.ts +10 -0
  16. package/dist/cjs/api/client/requests/GetCredentialsRequest.d.ts +11 -1
  17. package/dist/cjs/api/client/requests/GetFoldersRequest.d.ts +16 -0
  18. package/dist/cjs/api/client/requests/GetRunTagHistoryRequest.d.ts +16 -0
  19. package/dist/cjs/api/client/requests/GetRunsV2Request.d.ts +17 -0
  20. package/dist/cjs/api/client/requests/GetWorkflowRunsByIdRequest.d.ts +28 -0
  21. package/dist/cjs/api/client/requests/GetWorkflowRunsByIdRequest.js +3 -0
  22. package/dist/cjs/api/client/requests/GetWorkflowTagHistoryRequest.d.ts +16 -0
  23. package/dist/cjs/api/client/requests/GetWorkflowTagHistoryRequest.js +3 -0
  24. package/dist/cjs/api/client/requests/GetWorkflowsRequest.d.ts +2 -0
  25. package/dist/cjs/api/client/requests/ListBrowserProfilesRequest.d.ts +11 -1
  26. package/dist/cjs/api/client/requests/ListTagValuesRequest.d.ts +10 -0
  27. package/dist/cjs/api/client/requests/ListTagValuesRequest.js +3 -0
  28. package/dist/cjs/api/client/requests/LoginRequest.d.ts +5 -1
  29. package/dist/cjs/api/client/requests/RetryWorkflowRunRequest.d.ts +11 -0
  30. package/dist/cjs/api/client/requests/RetryWorkflowRunRequest.js +3 -0
  31. package/dist/cjs/api/client/requests/RunTagsBatchRequest.d.ts +8 -0
  32. package/dist/cjs/api/client/requests/RunTagsBatchRequest.js +3 -0
  33. package/dist/cjs/api/client/requests/TagKeyUpdate.d.ts +8 -0
  34. package/dist/cjs/api/client/requests/TagKeyUpdate.js +3 -0
  35. package/dist/cjs/api/client/requests/TagValueDelete.d.ts +10 -0
  36. package/dist/cjs/api/client/requests/TagValueDelete.js +3 -0
  37. package/dist/cjs/api/client/requests/TagValueRename.d.ts +13 -0
  38. package/dist/cjs/api/client/requests/TagValueRename.js +3 -0
  39. package/dist/cjs/api/client/requests/TagValueUpdate.d.ts +13 -0
  40. package/dist/cjs/api/client/requests/TagValueUpdate.js +3 -0
  41. package/dist/cjs/api/client/requests/TaskRunRequestInput.d.ts +153 -0
  42. package/dist/cjs/api/client/requests/TaskRunRequestInput.js +3 -0
  43. package/dist/cjs/api/client/requests/UpdateBrowserProfileRequest.d.ts +23 -0
  44. package/dist/cjs/api/client/requests/UpdateBrowserProfileRequest.js +3 -0
  45. package/dist/cjs/api/client/requests/UpdateBrowserSessionRequest.d.ts +10 -0
  46. package/dist/cjs/api/client/requests/UpdateBrowserSessionRequest.js +3 -0
  47. package/dist/cjs/api/client/requests/UpdateWorkflowFolderRequest.d.ts +8 -0
  48. package/dist/cjs/api/client/requests/UpdateWorkflowFolderRequest.js +3 -0
  49. package/dist/cjs/api/client/requests/WorkflowRunRequestInput.d.ts +128 -0
  50. package/dist/cjs/api/client/requests/WorkflowRunRequestInput.js +3 -0
  51. package/dist/cjs/api/client/requests/WorkflowTagsBatchRequest.d.ts +8 -0
  52. package/dist/cjs/api/client/requests/WorkflowTagsBatchRequest.js +3 -0
  53. package/dist/cjs/api/client/requests/index.d.ts +26 -4
  54. package/dist/cjs/api/errors/InternalServerError.d.ts +5 -0
  55. package/dist/cjs/api/errors/InternalServerError.js +50 -0
  56. package/dist/cjs/api/errors/RangeNotSatisfiableError.d.ts +5 -0
  57. package/dist/cjs/api/errors/RangeNotSatisfiableError.js +50 -0
  58. package/dist/cjs/api/errors/index.d.ts +2 -0
  59. package/dist/cjs/api/errors/index.js +2 -0
  60. package/dist/cjs/api/resources/agents/client/Client.d.ts +27 -0
  61. package/dist/cjs/api/resources/agents/client/Client.js +122 -0
  62. package/dist/cjs/api/resources/agents/client/index.d.ts +1 -0
  63. package/dist/cjs/api/resources/agents/client/index.js +2 -0
  64. package/dist/cjs/api/resources/agents/index.d.ts +1 -0
  65. package/dist/cjs/api/resources/agents/index.js +17 -0
  66. package/dist/cjs/api/resources/artifacts/client/Client.d.ts +28 -0
  67. package/dist/cjs/api/resources/artifacts/client/Client.js +125 -0
  68. package/dist/cjs/api/resources/artifacts/client/index.d.ts +1 -0
  69. package/dist/cjs/api/resources/artifacts/client/index.js +2 -0
  70. package/dist/cjs/api/resources/artifacts/index.d.ts +1 -0
  71. package/dist/cjs/api/resources/artifacts/index.js +17 -0
  72. package/dist/cjs/api/resources/index.d.ts +5 -0
  73. package/dist/cjs/api/resources/index.js +9 -1
  74. package/dist/cjs/api/resources/schedules/client/Client.d.ts +119 -0
  75. package/dist/cjs/api/resources/schedules/client/Client.js +554 -0
  76. package/dist/cjs/api/resources/schedules/client/index.d.ts +1 -0
  77. package/dist/cjs/api/resources/schedules/client/index.js +17 -0
  78. package/dist/cjs/api/resources/schedules/client/requests/SchedulesListAllRequest.d.ts +18 -0
  79. package/dist/cjs/api/resources/schedules/client/requests/SchedulesListAllRequest.js +3 -0
  80. package/dist/cjs/api/resources/schedules/client/requests/index.d.ts +1 -0
  81. package/dist/cjs/api/resources/schedules/client/requests/index.js +2 -0
  82. package/dist/cjs/api/resources/schedules/index.d.ts +2 -0
  83. package/dist/cjs/api/resources/schedules/index.js +18 -0
  84. package/dist/cjs/api/resources/schedules/types/SchedulesListAllRequestStatus.d.ts +5 -0
  85. package/dist/cjs/api/resources/schedules/types/SchedulesListAllRequestStatus.js +8 -0
  86. package/dist/cjs/api/resources/schedules/types/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/schedules/types/index.js +17 -0
  88. package/dist/cjs/api/types/Action.d.ts +5 -0
  89. package/dist/cjs/api/types/ActionBlock.d.ts +4 -0
  90. package/dist/cjs/api/types/ActionBlockYaml.d.ts +3 -0
  91. package/dist/cjs/api/types/ActionType.d.ts +5 -0
  92. package/dist/cjs/api/types/ActionType.js +5 -0
  93. package/dist/cjs/api/types/AiFallbackMode.d.ts +14 -0
  94. package/dist/cjs/api/types/AiFallbackMode.js +17 -0
  95. package/dist/cjs/api/types/Artifact.d.ts +5 -0
  96. package/dist/cjs/api/types/ArtifactType.d.ts +5 -0
  97. package/dist/cjs/api/types/ArtifactType.js +5 -0
  98. package/dist/cjs/api/types/BlockType.d.ts +7 -0
  99. package/dist/cjs/api/types/BlockType.js +7 -0
  100. package/dist/cjs/api/types/BrowserProfile.d.ts +10 -0
  101. package/dist/cjs/api/types/BrowserSessionResponse.d.ts +4 -0
  102. package/dist/cjs/api/types/BulkCancelRunsResponse.d.ts +6 -0
  103. package/dist/cjs/api/types/BulkCancelRunsResponse.js +3 -0
  104. package/dist/cjs/api/types/ClearOrganizationAuthTokenResponse.d.ts +7 -0
  105. package/dist/cjs/api/types/ClearOrganizationAuthTokenResponse.js +3 -0
  106. package/dist/cjs/api/types/CodeBlock.d.ts +3 -0
  107. package/dist/cjs/api/types/CodeBlockStep.d.ts +8 -0
  108. package/dist/cjs/api/types/CodeBlockStep.js +3 -0
  109. package/dist/cjs/api/types/CodeBlockStepYaml.d.ts +7 -0
  110. package/dist/cjs/api/types/CodeBlockStepYaml.js +3 -0
  111. package/dist/cjs/api/types/CodeBlockYaml.d.ts +4 -0
  112. package/dist/cjs/api/types/ConditionalBlock.d.ts +1 -0
  113. package/dist/cjs/api/types/ConditionalBlockYaml.d.ts +1 -0
  114. package/dist/cjs/api/types/CreateCredentialRequest.d.ts +12 -0
  115. package/dist/cjs/api/types/CredentialParameter.d.ts +2 -0
  116. package/dist/cjs/api/types/CredentialParameterYaml.d.ts +2 -0
  117. package/dist/cjs/api/types/CredentialResponse.d.ts +16 -0
  118. package/dist/cjs/api/types/CredentialVaultType.d.ts +8 -0
  119. package/dist/cjs/api/types/CredentialVaultType.js +11 -0
  120. package/dist/cjs/api/types/CreditCardBillingAddress.d.ts +21 -0
  121. package/dist/cjs/api/types/CreditCardBillingAddress.js +3 -0
  122. package/dist/cjs/api/types/CreditCardCredentialResponse.d.ts +2 -1
  123. package/dist/cjs/api/types/CustomLlm.d.ts +9 -0
  124. package/dist/cjs/api/types/CustomLlm.js +3 -0
  125. package/dist/cjs/api/types/CustomLlmConfig.d.ts +14 -0
  126. package/dist/cjs/api/types/CustomLlmConfig.js +3 -0
  127. package/dist/cjs/api/types/CustomLlmListResponse.d.ts +4 -0
  128. package/dist/cjs/api/types/CustomLlmListResponse.js +3 -0
  129. package/dist/cjs/api/types/CustomLlmProvider.d.ts +6 -0
  130. package/dist/cjs/api/types/CustomLlmProvider.js +9 -0
  131. package/dist/cjs/api/types/CustomLlmResponse.d.ts +4 -0
  132. package/dist/cjs/api/types/CustomLlmResponse.js +3 -0
  133. package/dist/cjs/api/types/DeleteScheduleResponse.d.ts +3 -0
  134. package/dist/cjs/api/types/DeleteScheduleResponse.js +3 -0
  135. package/dist/cjs/api/types/DownloadToS3Block.d.ts +1 -0
  136. package/dist/cjs/api/types/DownloadToS3BlockYaml.d.ts +1 -0
  137. package/dist/cjs/api/types/EmailInboxBlock.d.ts +30 -0
  138. package/dist/cjs/api/types/EmailInboxBlock.js +11 -0
  139. package/dist/cjs/api/types/EmailInboxBlockParametersItem.d.ts +37 -0
  140. package/dist/cjs/api/types/EmailInboxBlockParametersItem.js +3 -0
  141. package/dist/cjs/api/types/EmailInboxBlockYaml.d.ts +27 -0
  142. package/dist/cjs/api/types/EmailInboxBlockYaml.js +11 -0
  143. package/dist/cjs/api/types/ExtractionBlock.d.ts +2 -0
  144. package/dist/cjs/api/types/ExtractionBlockYaml.d.ts +1 -0
  145. package/dist/cjs/api/types/FileDownloadBlock.d.ts +2 -0
  146. package/dist/cjs/api/types/FileDownloadBlockYaml.d.ts +1 -0
  147. package/dist/cjs/api/types/FileInfo.d.ts +4 -0
  148. package/dist/cjs/api/types/FileParserBlock.d.ts +2 -1
  149. package/dist/cjs/api/types/FileParserBlockYaml.d.ts +2 -1
  150. package/dist/cjs/api/types/FileStorageType.d.ts +2 -0
  151. package/dist/cjs/api/types/FileStorageType.js +2 -0
  152. package/dist/cjs/api/types/FileType.d.ts +2 -0
  153. package/dist/cjs/api/types/FileType.js +2 -0
  154. package/dist/cjs/api/types/FileUploadBlock.d.ts +15 -0
  155. package/dist/cjs/api/types/FileUploadBlockYaml.d.ts +13 -0
  156. package/dist/cjs/api/types/Folder.d.ts +15 -0
  157. package/dist/cjs/api/types/Folder.js +3 -0
  158. package/dist/cjs/api/types/ForLoopBlock.d.ts +1 -0
  159. package/dist/cjs/api/types/ForLoopBlockLoopBlocksItem.d.ts +22 -1
  160. package/dist/cjs/api/types/ForLoopBlockYaml.d.ts +1 -0
  161. package/dist/cjs/api/types/ForLoopBlockYamlLoopBlocksItem.d.ts +22 -1
  162. package/dist/cjs/api/types/GeoTarget.d.ts +1 -11
  163. package/dist/cjs/api/types/GetRunResponse.d.ts +4 -1
  164. package/dist/cjs/api/types/GoogleSheetsReadBlock.d.ts +19 -0
  165. package/dist/cjs/api/types/GoogleSheetsReadBlock.js +3 -0
  166. package/dist/cjs/api/types/GoogleSheetsReadBlockParametersItem.d.ts +37 -0
  167. package/dist/cjs/api/types/GoogleSheetsReadBlockParametersItem.js +3 -0
  168. package/dist/cjs/api/types/GoogleSheetsReadBlockYaml.d.ts +16 -0
  169. package/dist/cjs/api/types/GoogleSheetsReadBlockYaml.js +3 -0
  170. package/dist/cjs/api/types/GoogleSheetsWriteBlock.d.ts +29 -0
  171. package/dist/cjs/api/types/GoogleSheetsWriteBlock.js +11 -0
  172. package/dist/cjs/api/types/GoogleSheetsWriteBlockParametersItem.d.ts +37 -0
  173. package/dist/cjs/api/types/GoogleSheetsWriteBlockParametersItem.js +3 -0
  174. package/dist/cjs/api/types/GoogleSheetsWriteBlockYaml.d.ts +26 -0
  175. package/dist/cjs/api/types/GoogleSheetsWriteBlockYaml.js +11 -0
  176. package/dist/cjs/api/types/HttpRequestBlock.d.ts +2 -0
  177. package/dist/cjs/api/types/HttpRequestBlockYaml.d.ts +2 -0
  178. package/dist/cjs/api/types/HumanInteractionBlock.d.ts +2 -0
  179. package/dist/cjs/api/types/HumanInteractionBlockYaml.d.ts +1 -0
  180. package/dist/cjs/api/types/LoginBlock.d.ts +3 -0
  181. package/dist/cjs/api/types/LoginBlockYaml.d.ts +2 -0
  182. package/dist/cjs/api/types/NavigationBlock.d.ts +2 -0
  183. package/dist/cjs/api/types/NavigationBlockYaml.d.ts +1 -0
  184. package/dist/cjs/api/types/NonEmptyCreditCardCredential.d.ts +9 -0
  185. package/dist/cjs/api/types/OrganizationScheduleItem.d.ts +23 -0
  186. package/dist/cjs/api/types/OrganizationScheduleItem.js +3 -0
  187. package/dist/cjs/api/types/OrganizationScheduleListResponse.d.ts +7 -0
  188. package/dist/cjs/api/types/OrganizationScheduleListResponse.js +3 -0
  189. package/dist/cjs/api/types/PasswordCredentialResponse.d.ts +1 -1
  190. package/dist/cjs/api/types/PdfFillBlock.d.ts +21 -0
  191. package/dist/cjs/api/types/PdfFillBlock.js +3 -0
  192. package/dist/cjs/api/types/PdfFillBlockParametersItem.d.ts +37 -0
  193. package/dist/cjs/api/types/PdfFillBlockParametersItem.js +3 -0
  194. package/dist/cjs/api/types/PdfFillBlockYaml.d.ts +18 -0
  195. package/dist/cjs/api/types/PdfFillBlockYaml.js +3 -0
  196. package/dist/cjs/api/types/PdfParserBlock.d.ts +1 -0
  197. package/dist/cjs/api/types/PdfParserBlockYaml.d.ts +1 -0
  198. package/dist/cjs/api/types/PersistentBrowserType.d.ts +1 -0
  199. package/dist/cjs/api/types/PersistentBrowserType.js +1 -0
  200. package/dist/cjs/api/types/PrintPageBlock.d.ts +1 -0
  201. package/dist/cjs/api/types/PrintPageBlockYaml.d.ts +1 -0
  202. package/dist/cjs/api/types/ProxyLocation.d.ts +1 -0
  203. package/dist/cjs/api/types/ProxyLocation.js +1 -0
  204. package/dist/cjs/api/types/RunEngine.d.ts +1 -0
  205. package/dist/cjs/api/types/RunEngine.js +1 -0
  206. package/dist/cjs/api/types/RunTagHistoryResponse.d.ts +5 -0
  207. package/dist/cjs/api/types/RunTagHistoryResponse.js +3 -0
  208. package/dist/cjs/api/types/RunTagsBatchResponse.d.ts +11 -0
  209. package/dist/cjs/api/types/RunTagsBatchResponse.js +3 -0
  210. package/dist/cjs/api/types/RunTagsResponse.d.ts +8 -0
  211. package/dist/cjs/api/types/RunTagsResponse.js +3 -0
  212. package/dist/cjs/api/types/RunType.d.ts +10 -0
  213. package/dist/cjs/api/types/RunType.js +13 -0
  214. package/dist/cjs/api/types/RunWebhookReplayResponse.d.ts +22 -0
  215. package/dist/cjs/api/types/RunWebhookReplayResponse.js +3 -0
  216. package/dist/cjs/api/types/ScriptRunResponse.d.ts +2 -0
  217. package/dist/cjs/api/types/SendEmailBlock.d.ts +1 -0
  218. package/dist/cjs/api/types/SendEmailBlockYaml.d.ts +1 -0
  219. package/dist/cjs/api/types/SkyvernSchemasCredentialTypeCredentialType.d.ts +7 -0
  220. package/dist/cjs/api/types/{SkyvernSchemasRunBlocksCredentialType.js → SkyvernSchemasCredentialTypeCredentialType.js} +2 -2
  221. package/dist/cjs/api/types/SplitPdfBlock.d.ts +17 -0
  222. package/dist/cjs/api/types/SplitPdfBlock.js +3 -0
  223. package/dist/cjs/api/types/SplitPdfBlockParametersItem.d.ts +37 -0
  224. package/dist/cjs/api/types/SplitPdfBlockParametersItem.js +3 -0
  225. package/dist/cjs/api/types/SplitPdfBlockYaml.d.ts +14 -0
  226. package/dist/cjs/api/types/SplitPdfBlockYaml.js +3 -0
  227. package/dist/cjs/api/types/TagApplyRequest.d.ts +13 -0
  228. package/dist/cjs/api/types/TagApplyRequest.js +3 -0
  229. package/dist/cjs/api/types/TagDeleteInput.d.ts +10 -0
  230. package/dist/cjs/api/types/TagDeleteInput.js +3 -0
  231. package/dist/cjs/api/types/TagHistoryItem.d.ts +13 -0
  232. package/dist/cjs/api/types/TagHistoryItem.js +3 -0
  233. package/dist/cjs/api/types/TagHistoryResponse.d.ts +5 -0
  234. package/dist/cjs/api/types/TagHistoryResponse.js +3 -0
  235. package/dist/cjs/api/types/TagInput.d.ts +10 -0
  236. package/dist/cjs/api/types/TagInput.js +3 -0
  237. package/dist/cjs/api/types/TagItem.d.ts +8 -0
  238. package/dist/cjs/api/types/TagItem.js +3 -0
  239. package/dist/cjs/api/types/TagKey.d.ts +8 -0
  240. package/dist/cjs/api/types/TagKey.js +3 -0
  241. package/dist/cjs/api/types/TagKeyDeleteResponse.d.ts +9 -0
  242. package/dist/cjs/api/types/TagKeyDeleteResponse.js +3 -0
  243. package/dist/cjs/api/types/TagResponse.d.ts +11 -0
  244. package/dist/cjs/api/types/TagResponse.js +3 -0
  245. package/dist/cjs/api/types/TagValue.d.ts +11 -0
  246. package/dist/cjs/api/types/TagValue.js +3 -0
  247. package/dist/cjs/api/types/TagValueDeleteResponse.d.ts +10 -0
  248. package/dist/cjs/api/types/TagValueDeleteResponse.js +3 -0
  249. package/dist/cjs/api/types/TagValueRenameResponse.d.ts +10 -0
  250. package/dist/cjs/api/types/TagValueRenameResponse.js +3 -0
  251. package/dist/cjs/api/types/TagsResponse.d.ts +9 -0
  252. package/dist/cjs/api/types/TagsResponse.js +3 -0
  253. package/dist/cjs/api/types/TaskBlock.d.ts +2 -0
  254. package/dist/cjs/api/types/TaskBlockYaml.d.ts +1 -0
  255. package/dist/cjs/api/types/TaskRunListItem.d.ts +18 -0
  256. package/dist/cjs/api/types/TaskRunListItem.js +3 -0
  257. package/dist/cjs/api/types/{TaskRunRequest.d.ts → TaskRunRequestOutput.d.ts} +29 -7
  258. package/dist/cjs/api/types/TaskRunRequestOutput.js +3 -0
  259. package/dist/cjs/api/types/TaskRunResponse.d.ts +3 -1
  260. package/dist/cjs/api/types/TaskV2Block.d.ts +1 -0
  261. package/dist/cjs/api/types/TaskV2BlockYaml.d.ts +1 -0
  262. package/dist/cjs/api/types/TextPromptBlock.d.ts +1 -0
  263. package/dist/cjs/api/types/TextPromptBlockYaml.d.ts +1 -0
  264. package/dist/cjs/api/types/Thought.d.ts +1 -0
  265. package/dist/cjs/api/types/UploadToS3Block.d.ts +1 -0
  266. package/dist/cjs/api/types/UploadToS3BlockYaml.d.ts +1 -0
  267. package/dist/cjs/api/types/UrlBlock.d.ts +2 -0
  268. package/dist/cjs/api/types/UrlBlockYaml.d.ts +1 -0
  269. package/dist/cjs/api/types/UserDefinedError.d.ts +1 -0
  270. package/dist/cjs/api/types/ValidationBlock.d.ts +3 -0
  271. package/dist/cjs/api/types/ValidationBlockYaml.d.ts +2 -0
  272. package/dist/cjs/api/types/WaitBlock.d.ts +1 -0
  273. package/dist/cjs/api/types/WaitBlockYaml.d.ts +1 -0
  274. package/dist/cjs/api/types/WhileLoopBlock.d.ts +25 -0
  275. package/dist/cjs/api/types/WhileLoopBlock.js +3 -0
  276. package/dist/cjs/api/types/WhileLoopBlockCondition.d.ts +10 -0
  277. package/dist/cjs/api/types/WhileLoopBlockCondition.js +3 -0
  278. package/dist/cjs/api/types/WhileLoopBlockLoopBlocksItem.d.ts +94 -0
  279. package/dist/cjs/api/types/WhileLoopBlockLoopBlocksItem.js +3 -0
  280. package/dist/cjs/api/types/WhileLoopBlockYaml.d.ts +13 -0
  281. package/dist/cjs/api/types/WhileLoopBlockYaml.js +3 -0
  282. package/dist/cjs/api/types/WhileLoopBlockYamlLoopBlocksItem.d.ts +94 -0
  283. package/dist/cjs/api/types/WhileLoopBlockYamlLoopBlocksItem.js +3 -0
  284. package/dist/cjs/api/types/Workflow.d.ts +14 -0
  285. package/dist/cjs/api/types/WorkflowCreateYamlRequest.d.ts +9 -0
  286. package/dist/cjs/api/types/WorkflowDefinition.d.ts +2 -0
  287. package/dist/cjs/api/types/WorkflowDefinitionBlocksItem.d.ts +22 -1
  288. package/dist/cjs/api/types/WorkflowDefinitionYaml.d.ts +2 -0
  289. package/dist/cjs/api/types/WorkflowDefinitionYamlBlocksItem.d.ts +22 -1
  290. package/dist/cjs/api/types/WorkflowRun.d.ts +9 -3
  291. package/dist/cjs/api/types/WorkflowRunBlock.d.ts +5 -0
  292. package/dist/cjs/api/types/{WorkflowRunRequest.d.ts → WorkflowRunRequestOutput.d.ts} +31 -5
  293. package/dist/cjs/api/types/WorkflowRunRequestOutput.js +3 -0
  294. package/dist/cjs/api/types/WorkflowRunResponse.d.ts +5 -1
  295. package/dist/cjs/api/types/WorkflowRunTriggerType.d.ts +17 -0
  296. package/dist/cjs/api/types/WorkflowRunTriggerType.js +20 -0
  297. package/dist/cjs/api/types/WorkflowSchedule.d.ts +15 -0
  298. package/dist/cjs/api/types/WorkflowSchedule.js +3 -0
  299. package/dist/cjs/api/types/WorkflowScheduleListResponse.d.ts +4 -0
  300. package/dist/cjs/api/types/WorkflowScheduleListResponse.js +3 -0
  301. package/dist/cjs/api/types/WorkflowScheduleResponse.d.ts +5 -0
  302. package/dist/cjs/api/types/WorkflowScheduleResponse.js +3 -0
  303. package/dist/cjs/api/types/WorkflowScheduleUpsertRequest.d.ts +8 -0
  304. package/dist/cjs/api/types/WorkflowScheduleUpsertRequest.js +3 -0
  305. package/dist/cjs/api/types/WorkflowTagsBatchResponse.d.ts +11 -0
  306. package/dist/cjs/api/types/WorkflowTagsBatchResponse.js +3 -0
  307. package/dist/cjs/api/types/WorkflowTriggerBlock.d.ts +19 -0
  308. package/dist/cjs/api/types/WorkflowTriggerBlock.js +3 -0
  309. package/dist/cjs/api/types/WorkflowTriggerBlockParametersItem.d.ts +37 -0
  310. package/dist/cjs/api/types/WorkflowTriggerBlockParametersItem.js +3 -0
  311. package/dist/cjs/api/types/WorkflowTriggerBlockYaml.d.ts +16 -0
  312. package/dist/cjs/api/types/WorkflowTriggerBlockYaml.js +3 -0
  313. package/dist/cjs/api/types/index.d.ts +67 -9
  314. package/dist/cjs/api/types/index.js +67 -9
  315. package/dist/cjs/library/Skyvern.d.ts +2 -2
  316. package/dist/cjs/library/SkyvernBrowserPageAgent.js +21 -25
  317. package/dist/cjs/version.d.ts +1 -1
  318. package/dist/cjs/version.js +1 -1
  319. package/dist/esm/Client.d.mts +634 -134
  320. package/dist/esm/Client.mjs +2718 -570
  321. package/dist/esm/api/client/requests/BatchGetRunTagsRequest.d.mts +10 -0
  322. package/dist/esm/api/client/requests/BatchGetWorkflowTagsRequest.d.mts +10 -0
  323. package/dist/esm/api/client/requests/BodyUploadFileV1UploadFilePost.d.mts +2 -3
  324. package/dist/esm/api/client/requests/BulkCancelRunsRequest.d.mts +10 -0
  325. package/dist/esm/api/client/requests/CreateBrowserProfileRequest.d.mts +13 -2
  326. package/dist/esm/api/client/requests/CreateBrowserSessionRequest.d.mts +60 -1
  327. package/dist/esm/api/client/requests/CustomLlmCreateRequest.d.mts +14 -0
  328. package/dist/esm/api/client/requests/CustomLlmUpdateRequest.d.mts +14 -0
  329. package/dist/esm/api/client/requests/DeleteFolderRequest.d.mts +10 -0
  330. package/dist/esm/api/client/requests/DownloadFilesRequest.d.mts +4 -0
  331. package/dist/esm/api/client/requests/FolderCreate.d.mts +12 -0
  332. package/dist/esm/api/client/requests/FolderUpdate.d.mts +10 -0
  333. package/dist/esm/api/client/requests/GetCredentialsRequest.d.mts +11 -1
  334. package/dist/esm/api/client/requests/GetFoldersRequest.d.mts +16 -0
  335. package/dist/esm/api/client/requests/GetRunTagHistoryRequest.d.mts +16 -0
  336. package/dist/esm/api/client/requests/GetRunsV2Request.d.mts +17 -0
  337. package/dist/esm/api/client/requests/GetWorkflowRunsByIdRequest.d.mts +28 -0
  338. package/dist/esm/api/client/requests/GetWorkflowRunsByIdRequest.mjs +2 -0
  339. package/dist/esm/api/client/requests/GetWorkflowTagHistoryRequest.d.mts +16 -0
  340. package/dist/esm/api/client/requests/GetWorkflowTagHistoryRequest.mjs +2 -0
  341. package/dist/esm/api/client/requests/GetWorkflowsRequest.d.mts +2 -0
  342. package/dist/esm/api/client/requests/ListBrowserProfilesRequest.d.mts +11 -1
  343. package/dist/esm/api/client/requests/ListTagValuesRequest.d.mts +10 -0
  344. package/dist/esm/api/client/requests/ListTagValuesRequest.mjs +2 -0
  345. package/dist/esm/api/client/requests/LoginRequest.d.mts +5 -1
  346. package/dist/esm/api/client/requests/RetryWorkflowRunRequest.d.mts +11 -0
  347. package/dist/esm/api/client/requests/RetryWorkflowRunRequest.mjs +2 -0
  348. package/dist/esm/api/client/requests/RunTagsBatchRequest.d.mts +8 -0
  349. package/dist/esm/api/client/requests/RunTagsBatchRequest.mjs +2 -0
  350. package/dist/esm/api/client/requests/TagKeyUpdate.d.mts +8 -0
  351. package/dist/esm/api/client/requests/TagKeyUpdate.mjs +2 -0
  352. package/dist/esm/api/client/requests/TagValueDelete.d.mts +10 -0
  353. package/dist/esm/api/client/requests/TagValueDelete.mjs +2 -0
  354. package/dist/esm/api/client/requests/TagValueRename.d.mts +13 -0
  355. package/dist/esm/api/client/requests/TagValueRename.mjs +2 -0
  356. package/dist/esm/api/client/requests/TagValueUpdate.d.mts +13 -0
  357. package/dist/esm/api/client/requests/TagValueUpdate.mjs +2 -0
  358. package/dist/esm/api/client/requests/TaskRunRequestInput.d.mts +153 -0
  359. package/dist/esm/api/client/requests/TaskRunRequestInput.mjs +2 -0
  360. package/dist/esm/api/client/requests/UpdateBrowserProfileRequest.d.mts +23 -0
  361. package/dist/esm/api/client/requests/UpdateBrowserProfileRequest.mjs +2 -0
  362. package/dist/esm/api/client/requests/UpdateBrowserSessionRequest.d.mts +10 -0
  363. package/dist/esm/api/client/requests/UpdateBrowserSessionRequest.mjs +2 -0
  364. package/dist/esm/api/client/requests/UpdateWorkflowFolderRequest.d.mts +8 -0
  365. package/dist/esm/api/client/requests/UpdateWorkflowFolderRequest.mjs +2 -0
  366. package/dist/esm/api/client/requests/WorkflowRunRequestInput.d.mts +128 -0
  367. package/dist/esm/api/client/requests/WorkflowRunRequestInput.mjs +2 -0
  368. package/dist/esm/api/client/requests/WorkflowTagsBatchRequest.d.mts +8 -0
  369. package/dist/esm/api/client/requests/WorkflowTagsBatchRequest.mjs +2 -0
  370. package/dist/esm/api/client/requests/index.d.mts +26 -4
  371. package/dist/esm/api/errors/InternalServerError.d.mts +5 -0
  372. package/dist/esm/api/errors/InternalServerError.mjs +13 -0
  373. package/dist/esm/api/errors/RangeNotSatisfiableError.d.mts +5 -0
  374. package/dist/esm/api/errors/RangeNotSatisfiableError.mjs +13 -0
  375. package/dist/esm/api/errors/index.d.mts +2 -0
  376. package/dist/esm/api/errors/index.mjs +2 -0
  377. package/dist/esm/api/resources/agents/client/Client.d.mts +27 -0
  378. package/dist/esm/api/resources/agents/client/Client.mjs +85 -0
  379. package/dist/esm/api/resources/agents/client/index.d.mts +1 -0
  380. package/dist/esm/api/resources/agents/client/index.mjs +1 -0
  381. package/dist/esm/api/resources/agents/index.d.mts +1 -0
  382. package/dist/esm/api/resources/agents/index.mjs +1 -0
  383. package/dist/esm/api/resources/artifacts/client/Client.d.mts +28 -0
  384. package/dist/esm/api/resources/artifacts/client/Client.mjs +88 -0
  385. package/dist/esm/api/resources/artifacts/client/index.d.mts +1 -0
  386. package/dist/esm/api/resources/artifacts/client/index.mjs +1 -0
  387. package/dist/esm/api/resources/artifacts/index.d.mts +1 -0
  388. package/dist/esm/api/resources/artifacts/index.mjs +1 -0
  389. package/dist/esm/api/resources/index.d.mts +5 -0
  390. package/dist/esm/api/resources/index.mjs +5 -0
  391. package/dist/esm/api/resources/schedules/client/Client.d.mts +119 -0
  392. package/dist/esm/api/resources/schedules/client/Client.mjs +517 -0
  393. package/dist/esm/api/resources/schedules/client/index.d.mts +1 -0
  394. package/dist/esm/api/resources/schedules/client/index.mjs +1 -0
  395. package/dist/esm/api/resources/schedules/client/requests/SchedulesListAllRequest.d.mts +18 -0
  396. package/dist/esm/api/resources/schedules/client/requests/SchedulesListAllRequest.mjs +2 -0
  397. package/dist/esm/api/resources/schedules/client/requests/index.d.mts +1 -0
  398. package/dist/esm/api/resources/schedules/client/requests/index.mjs +1 -0
  399. package/dist/esm/api/resources/schedules/index.d.mts +2 -0
  400. package/dist/esm/api/resources/schedules/index.mjs +2 -0
  401. package/dist/esm/api/resources/schedules/types/SchedulesListAllRequestStatus.d.mts +5 -0
  402. package/dist/esm/api/resources/schedules/types/SchedulesListAllRequestStatus.mjs +5 -0
  403. package/dist/esm/api/resources/schedules/types/index.d.mts +1 -0
  404. package/dist/esm/api/resources/schedules/types/index.mjs +1 -0
  405. package/dist/esm/api/types/Action.d.mts +5 -0
  406. package/dist/esm/api/types/ActionBlock.d.mts +4 -0
  407. package/dist/esm/api/types/ActionBlockYaml.d.mts +3 -0
  408. package/dist/esm/api/types/ActionType.d.mts +5 -0
  409. package/dist/esm/api/types/ActionType.mjs +5 -0
  410. package/dist/esm/api/types/AiFallbackMode.d.mts +14 -0
  411. package/dist/esm/api/types/AiFallbackMode.mjs +14 -0
  412. package/dist/esm/api/types/Artifact.d.mts +5 -0
  413. package/dist/esm/api/types/ArtifactType.d.mts +5 -0
  414. package/dist/esm/api/types/ArtifactType.mjs +5 -0
  415. package/dist/esm/api/types/BlockType.d.mts +7 -0
  416. package/dist/esm/api/types/BlockType.mjs +7 -0
  417. package/dist/esm/api/types/BrowserProfile.d.mts +10 -0
  418. package/dist/esm/api/types/BrowserSessionResponse.d.mts +4 -0
  419. package/dist/esm/api/types/BulkCancelRunsResponse.d.mts +6 -0
  420. package/dist/esm/api/types/BulkCancelRunsResponse.mjs +2 -0
  421. package/dist/esm/api/types/ClearOrganizationAuthTokenResponse.d.mts +7 -0
  422. package/dist/esm/api/types/ClearOrganizationAuthTokenResponse.mjs +2 -0
  423. package/dist/esm/api/types/CodeBlock.d.mts +3 -0
  424. package/dist/esm/api/types/CodeBlockStep.d.mts +8 -0
  425. package/dist/esm/api/types/CodeBlockStep.mjs +2 -0
  426. package/dist/esm/api/types/CodeBlockStepYaml.d.mts +7 -0
  427. package/dist/esm/api/types/CodeBlockStepYaml.mjs +2 -0
  428. package/dist/esm/api/types/CodeBlockYaml.d.mts +4 -0
  429. package/dist/esm/api/types/ConditionalBlock.d.mts +1 -0
  430. package/dist/esm/api/types/ConditionalBlockYaml.d.mts +1 -0
  431. package/dist/esm/api/types/CreateCredentialRequest.d.mts +12 -0
  432. package/dist/esm/api/types/CredentialParameter.d.mts +2 -0
  433. package/dist/esm/api/types/CredentialParameterYaml.d.mts +2 -0
  434. package/dist/esm/api/types/CredentialResponse.d.mts +16 -0
  435. package/dist/esm/api/types/CredentialVaultType.d.mts +8 -0
  436. package/dist/esm/api/types/CredentialVaultType.mjs +8 -0
  437. package/dist/esm/api/types/CreditCardBillingAddress.d.mts +21 -0
  438. package/dist/esm/api/types/CreditCardBillingAddress.mjs +2 -0
  439. package/dist/esm/api/types/CreditCardCredentialResponse.d.mts +2 -1
  440. package/dist/esm/api/types/CustomLlm.d.mts +9 -0
  441. package/dist/esm/api/types/CustomLlm.mjs +2 -0
  442. package/dist/esm/api/types/CustomLlmConfig.d.mts +14 -0
  443. package/dist/esm/api/types/CustomLlmConfig.mjs +2 -0
  444. package/dist/esm/api/types/CustomLlmListResponse.d.mts +4 -0
  445. package/dist/esm/api/types/CustomLlmListResponse.mjs +2 -0
  446. package/dist/esm/api/types/CustomLlmProvider.d.mts +6 -0
  447. package/dist/esm/api/types/CustomLlmProvider.mjs +6 -0
  448. package/dist/esm/api/types/CustomLlmResponse.d.mts +4 -0
  449. package/dist/esm/api/types/CustomLlmResponse.mjs +2 -0
  450. package/dist/esm/api/types/DeleteScheduleResponse.d.mts +3 -0
  451. package/dist/esm/api/types/DeleteScheduleResponse.mjs +2 -0
  452. package/dist/esm/api/types/DownloadToS3Block.d.mts +1 -0
  453. package/dist/esm/api/types/DownloadToS3BlockYaml.d.mts +1 -0
  454. package/dist/esm/api/types/EmailInboxBlock.d.mts +30 -0
  455. package/dist/esm/api/types/EmailInboxBlock.mjs +8 -0
  456. package/dist/esm/api/types/EmailInboxBlockParametersItem.d.mts +37 -0
  457. package/dist/esm/api/types/EmailInboxBlockParametersItem.mjs +2 -0
  458. package/dist/esm/api/types/EmailInboxBlockYaml.d.mts +27 -0
  459. package/dist/esm/api/types/EmailInboxBlockYaml.mjs +8 -0
  460. package/dist/esm/api/types/ExtractionBlock.d.mts +2 -0
  461. package/dist/esm/api/types/ExtractionBlockYaml.d.mts +1 -0
  462. package/dist/esm/api/types/FileDownloadBlock.d.mts +2 -0
  463. package/dist/esm/api/types/FileDownloadBlockYaml.d.mts +1 -0
  464. package/dist/esm/api/types/FileInfo.d.mts +4 -0
  465. package/dist/esm/api/types/FileParserBlock.d.mts +2 -1
  466. package/dist/esm/api/types/FileParserBlockYaml.d.mts +2 -1
  467. package/dist/esm/api/types/FileStorageType.d.mts +2 -0
  468. package/dist/esm/api/types/FileStorageType.mjs +2 -0
  469. package/dist/esm/api/types/FileType.d.mts +2 -0
  470. package/dist/esm/api/types/FileType.mjs +2 -0
  471. package/dist/esm/api/types/FileUploadBlock.d.mts +15 -0
  472. package/dist/esm/api/types/FileUploadBlockYaml.d.mts +13 -0
  473. package/dist/esm/api/types/Folder.d.mts +15 -0
  474. package/dist/esm/api/types/Folder.mjs +2 -0
  475. package/dist/esm/api/types/ForLoopBlock.d.mts +1 -0
  476. package/dist/esm/api/types/ForLoopBlockLoopBlocksItem.d.mts +22 -1
  477. package/dist/esm/api/types/ForLoopBlockYaml.d.mts +1 -0
  478. package/dist/esm/api/types/ForLoopBlockYamlLoopBlocksItem.d.mts +22 -1
  479. package/dist/esm/api/types/GeoTarget.d.mts +1 -11
  480. package/dist/esm/api/types/GetRunResponse.d.mts +4 -1
  481. package/dist/esm/api/types/GoogleSheetsReadBlock.d.mts +19 -0
  482. package/dist/esm/api/types/GoogleSheetsReadBlock.mjs +2 -0
  483. package/dist/esm/api/types/GoogleSheetsReadBlockParametersItem.d.mts +37 -0
  484. package/dist/esm/api/types/GoogleSheetsReadBlockParametersItem.mjs +2 -0
  485. package/dist/esm/api/types/GoogleSheetsReadBlockYaml.d.mts +16 -0
  486. package/dist/esm/api/types/GoogleSheetsReadBlockYaml.mjs +2 -0
  487. package/dist/esm/api/types/GoogleSheetsWriteBlock.d.mts +29 -0
  488. package/dist/esm/api/types/GoogleSheetsWriteBlock.mjs +8 -0
  489. package/dist/esm/api/types/GoogleSheetsWriteBlockParametersItem.d.mts +37 -0
  490. package/dist/esm/api/types/GoogleSheetsWriteBlockParametersItem.mjs +2 -0
  491. package/dist/esm/api/types/GoogleSheetsWriteBlockYaml.d.mts +26 -0
  492. package/dist/esm/api/types/GoogleSheetsWriteBlockYaml.mjs +8 -0
  493. package/dist/esm/api/types/HttpRequestBlock.d.mts +2 -0
  494. package/dist/esm/api/types/HttpRequestBlockYaml.d.mts +2 -0
  495. package/dist/esm/api/types/HumanInteractionBlock.d.mts +2 -0
  496. package/dist/esm/api/types/HumanInteractionBlockYaml.d.mts +1 -0
  497. package/dist/esm/api/types/LoginBlock.d.mts +3 -0
  498. package/dist/esm/api/types/LoginBlockYaml.d.mts +2 -0
  499. package/dist/esm/api/types/NavigationBlock.d.mts +2 -0
  500. package/dist/esm/api/types/NavigationBlockYaml.d.mts +1 -0
  501. package/dist/esm/api/types/NonEmptyCreditCardCredential.d.mts +9 -0
  502. package/dist/esm/api/types/OrganizationScheduleItem.d.mts +23 -0
  503. package/dist/esm/api/types/OrganizationScheduleItem.mjs +2 -0
  504. package/dist/esm/api/types/OrganizationScheduleListResponse.d.mts +7 -0
  505. package/dist/esm/api/types/OrganizationScheduleListResponse.mjs +2 -0
  506. package/dist/esm/api/types/PasswordCredentialResponse.d.mts +1 -1
  507. package/dist/esm/api/types/PdfFillBlock.d.mts +21 -0
  508. package/dist/esm/api/types/PdfFillBlock.mjs +2 -0
  509. package/dist/esm/api/types/PdfFillBlockParametersItem.d.mts +37 -0
  510. package/dist/esm/api/types/PdfFillBlockParametersItem.mjs +2 -0
  511. package/dist/esm/api/types/PdfFillBlockYaml.d.mts +18 -0
  512. package/dist/esm/api/types/PdfFillBlockYaml.mjs +2 -0
  513. package/dist/esm/api/types/PdfParserBlock.d.mts +1 -0
  514. package/dist/esm/api/types/PdfParserBlockYaml.d.mts +1 -0
  515. package/dist/esm/api/types/PersistentBrowserType.d.mts +1 -0
  516. package/dist/esm/api/types/PersistentBrowserType.mjs +1 -0
  517. package/dist/esm/api/types/PrintPageBlock.d.mts +1 -0
  518. package/dist/esm/api/types/PrintPageBlockYaml.d.mts +1 -0
  519. package/dist/esm/api/types/ProxyLocation.d.mts +1 -0
  520. package/dist/esm/api/types/ProxyLocation.mjs +1 -0
  521. package/dist/esm/api/types/RunEngine.d.mts +1 -0
  522. package/dist/esm/api/types/RunEngine.mjs +1 -0
  523. package/dist/esm/api/types/RunTagHistoryResponse.d.mts +5 -0
  524. package/dist/esm/api/types/RunTagHistoryResponse.mjs +2 -0
  525. package/dist/esm/api/types/RunTagsBatchResponse.d.mts +11 -0
  526. package/dist/esm/api/types/RunTagsBatchResponse.mjs +2 -0
  527. package/dist/esm/api/types/RunTagsResponse.d.mts +8 -0
  528. package/dist/esm/api/types/RunTagsResponse.mjs +2 -0
  529. package/dist/esm/api/types/RunType.d.mts +10 -0
  530. package/dist/esm/api/types/RunType.mjs +10 -0
  531. package/dist/esm/api/types/RunWebhookReplayResponse.d.mts +22 -0
  532. package/dist/esm/api/types/RunWebhookReplayResponse.mjs +2 -0
  533. package/dist/esm/api/types/ScriptRunResponse.d.mts +2 -0
  534. package/dist/esm/api/types/SendEmailBlock.d.mts +1 -0
  535. package/dist/esm/api/types/SendEmailBlockYaml.d.mts +1 -0
  536. package/dist/esm/api/types/SkyvernSchemasCredentialTypeCredentialType.d.mts +7 -0
  537. package/dist/esm/api/types/{SkyvernSchemasRunBlocksCredentialType.mjs → SkyvernSchemasCredentialTypeCredentialType.mjs} +1 -1
  538. package/dist/esm/api/types/SplitPdfBlock.d.mts +17 -0
  539. package/dist/esm/api/types/SplitPdfBlock.mjs +2 -0
  540. package/dist/esm/api/types/SplitPdfBlockParametersItem.d.mts +37 -0
  541. package/dist/esm/api/types/SplitPdfBlockParametersItem.mjs +2 -0
  542. package/dist/esm/api/types/SplitPdfBlockYaml.d.mts +14 -0
  543. package/dist/esm/api/types/SplitPdfBlockYaml.mjs +2 -0
  544. package/dist/esm/api/types/TagApplyRequest.d.mts +13 -0
  545. package/dist/esm/api/types/TagApplyRequest.mjs +2 -0
  546. package/dist/esm/api/types/TagDeleteInput.d.mts +10 -0
  547. package/dist/esm/api/types/TagDeleteInput.mjs +2 -0
  548. package/dist/esm/api/types/TagHistoryItem.d.mts +13 -0
  549. package/dist/esm/api/types/TagHistoryItem.mjs +2 -0
  550. package/dist/esm/api/types/TagHistoryResponse.d.mts +5 -0
  551. package/dist/esm/api/types/TagHistoryResponse.mjs +2 -0
  552. package/dist/esm/api/types/TagInput.d.mts +10 -0
  553. package/dist/esm/api/types/TagInput.mjs +2 -0
  554. package/dist/esm/api/types/TagItem.d.mts +8 -0
  555. package/dist/esm/api/types/TagItem.mjs +2 -0
  556. package/dist/esm/api/types/TagKey.d.mts +8 -0
  557. package/dist/esm/api/types/TagKey.mjs +2 -0
  558. package/dist/esm/api/types/TagKeyDeleteResponse.d.mts +9 -0
  559. package/dist/esm/api/types/TagKeyDeleteResponse.mjs +2 -0
  560. package/dist/esm/api/types/TagResponse.d.mts +11 -0
  561. package/dist/esm/api/types/TagResponse.mjs +2 -0
  562. package/dist/esm/api/types/TagValue.d.mts +11 -0
  563. package/dist/esm/api/types/TagValue.mjs +2 -0
  564. package/dist/esm/api/types/TagValueDeleteResponse.d.mts +10 -0
  565. package/dist/esm/api/types/TagValueDeleteResponse.mjs +2 -0
  566. package/dist/esm/api/types/TagValueRenameResponse.d.mts +10 -0
  567. package/dist/esm/api/types/TagValueRenameResponse.mjs +2 -0
  568. package/dist/esm/api/types/TagsResponse.d.mts +9 -0
  569. package/dist/esm/api/types/TagsResponse.mjs +2 -0
  570. package/dist/esm/api/types/TaskBlock.d.mts +2 -0
  571. package/dist/esm/api/types/TaskBlockYaml.d.mts +1 -0
  572. package/dist/esm/api/types/TaskRunListItem.d.mts +18 -0
  573. package/dist/esm/api/types/TaskRunListItem.mjs +2 -0
  574. package/dist/esm/api/types/{TaskRunRequest.d.mts → TaskRunRequestOutput.d.mts} +29 -7
  575. package/dist/esm/api/types/TaskRunRequestOutput.mjs +2 -0
  576. package/dist/esm/api/types/TaskRunResponse.d.mts +3 -1
  577. package/dist/esm/api/types/TaskV2Block.d.mts +1 -0
  578. package/dist/esm/api/types/TaskV2BlockYaml.d.mts +1 -0
  579. package/dist/esm/api/types/TextPromptBlock.d.mts +1 -0
  580. package/dist/esm/api/types/TextPromptBlockYaml.d.mts +1 -0
  581. package/dist/esm/api/types/Thought.d.mts +1 -0
  582. package/dist/esm/api/types/UploadToS3Block.d.mts +1 -0
  583. package/dist/esm/api/types/UploadToS3BlockYaml.d.mts +1 -0
  584. package/dist/esm/api/types/UrlBlock.d.mts +2 -0
  585. package/dist/esm/api/types/UrlBlockYaml.d.mts +1 -0
  586. package/dist/esm/api/types/UserDefinedError.d.mts +1 -0
  587. package/dist/esm/api/types/ValidationBlock.d.mts +3 -0
  588. package/dist/esm/api/types/ValidationBlockYaml.d.mts +2 -0
  589. package/dist/esm/api/types/WaitBlock.d.mts +1 -0
  590. package/dist/esm/api/types/WaitBlockYaml.d.mts +1 -0
  591. package/dist/esm/api/types/WhileLoopBlock.d.mts +25 -0
  592. package/dist/esm/api/types/WhileLoopBlock.mjs +2 -0
  593. package/dist/esm/api/types/WhileLoopBlockCondition.d.mts +10 -0
  594. package/dist/esm/api/types/WhileLoopBlockCondition.mjs +2 -0
  595. package/dist/esm/api/types/WhileLoopBlockLoopBlocksItem.d.mts +94 -0
  596. package/dist/esm/api/types/WhileLoopBlockLoopBlocksItem.mjs +2 -0
  597. package/dist/esm/api/types/WhileLoopBlockYaml.d.mts +13 -0
  598. package/dist/esm/api/types/WhileLoopBlockYaml.mjs +2 -0
  599. package/dist/esm/api/types/WhileLoopBlockYamlLoopBlocksItem.d.mts +94 -0
  600. package/dist/esm/api/types/WhileLoopBlockYamlLoopBlocksItem.mjs +2 -0
  601. package/dist/esm/api/types/Workflow.d.mts +14 -0
  602. package/dist/esm/api/types/WorkflowCreateYamlRequest.d.mts +9 -0
  603. package/dist/esm/api/types/WorkflowDefinition.d.mts +2 -0
  604. package/dist/esm/api/types/WorkflowDefinitionBlocksItem.d.mts +22 -1
  605. package/dist/esm/api/types/WorkflowDefinitionYaml.d.mts +2 -0
  606. package/dist/esm/api/types/WorkflowDefinitionYamlBlocksItem.d.mts +22 -1
  607. package/dist/esm/api/types/WorkflowRun.d.mts +9 -3
  608. package/dist/esm/api/types/WorkflowRunBlock.d.mts +5 -0
  609. package/dist/esm/api/types/{WorkflowRunRequest.d.mts → WorkflowRunRequestOutput.d.mts} +31 -5
  610. package/dist/esm/api/types/WorkflowRunRequestOutput.mjs +2 -0
  611. package/dist/esm/api/types/WorkflowRunResponse.d.mts +5 -1
  612. package/dist/esm/api/types/WorkflowRunTriggerType.d.mts +17 -0
  613. package/dist/esm/api/types/WorkflowRunTriggerType.mjs +17 -0
  614. package/dist/esm/api/types/WorkflowSchedule.d.mts +15 -0
  615. package/dist/esm/api/types/WorkflowSchedule.mjs +2 -0
  616. package/dist/esm/api/types/WorkflowScheduleListResponse.d.mts +4 -0
  617. package/dist/esm/api/types/WorkflowScheduleListResponse.mjs +2 -0
  618. package/dist/esm/api/types/WorkflowScheduleResponse.d.mts +5 -0
  619. package/dist/esm/api/types/WorkflowScheduleResponse.mjs +2 -0
  620. package/dist/esm/api/types/WorkflowScheduleUpsertRequest.d.mts +8 -0
  621. package/dist/esm/api/types/WorkflowScheduleUpsertRequest.mjs +2 -0
  622. package/dist/esm/api/types/WorkflowTagsBatchResponse.d.mts +11 -0
  623. package/dist/esm/api/types/WorkflowTagsBatchResponse.mjs +2 -0
  624. package/dist/esm/api/types/WorkflowTriggerBlock.d.mts +19 -0
  625. package/dist/esm/api/types/WorkflowTriggerBlock.mjs +2 -0
  626. package/dist/esm/api/types/WorkflowTriggerBlockParametersItem.d.mts +37 -0
  627. package/dist/esm/api/types/WorkflowTriggerBlockParametersItem.mjs +2 -0
  628. package/dist/esm/api/types/WorkflowTriggerBlockYaml.d.mts +16 -0
  629. package/dist/esm/api/types/WorkflowTriggerBlockYaml.mjs +2 -0
  630. package/dist/esm/api/types/index.d.mts +67 -9
  631. package/dist/esm/api/types/index.mjs +67 -9
  632. package/dist/esm/library/Skyvern.d.mts +2 -2
  633. package/dist/esm/library/SkyvernBrowserPageAgent.mjs +21 -25
  634. package/dist/esm/version.d.mts +1 -1
  635. package/dist/esm/version.mjs +1 -1
  636. package/package.json +11 -2
  637. package/reference.md +601 -8
  638. package/dist/cjs/api/client/requests/ChangeTierRequest.d.ts +0 -10
  639. package/dist/cjs/api/client/requests/CheckoutSubscriptionRequest.d.ts +0 -10
  640. package/dist/cjs/api/client/requests/RunTaskRequest.d.ts +0 -14
  641. package/dist/cjs/api/client/requests/RunWorkflowRequest.d.ts +0 -18
  642. package/dist/cjs/api/types/BillingStateResponse.d.ts +0 -20
  643. package/dist/cjs/api/types/ChangeTierResponse.d.ts +0 -5
  644. package/dist/cjs/api/types/CheckoutSessionResponse.d.ts +0 -4
  645. package/dist/cjs/api/types/ClearCacheResponse.d.ts +0 -9
  646. package/dist/cjs/api/types/PlanTier.d.ts +0 -7
  647. package/dist/cjs/api/types/PlanTier.js +0 -10
  648. package/dist/cjs/api/types/PortalSessionResponse.d.ts +0 -3
  649. package/dist/cjs/api/types/SkyvernSchemasRunBlocksCredentialType.d.ts +0 -7
  650. package/dist/esm/api/client/requests/ChangeTierRequest.d.mts +0 -10
  651. package/dist/esm/api/client/requests/CheckoutSubscriptionRequest.d.mts +0 -10
  652. package/dist/esm/api/client/requests/RunTaskRequest.d.mts +0 -14
  653. package/dist/esm/api/client/requests/RunWorkflowRequest.d.mts +0 -18
  654. package/dist/esm/api/types/BillingStateResponse.d.mts +0 -20
  655. package/dist/esm/api/types/ChangeTierResponse.d.mts +0 -5
  656. package/dist/esm/api/types/CheckoutSessionResponse.d.mts +0 -4
  657. package/dist/esm/api/types/ClearCacheResponse.d.mts +0 -9
  658. package/dist/esm/api/types/PlanTier.d.mts +0 -7
  659. package/dist/esm/api/types/PlanTier.mjs +0 -7
  660. package/dist/esm/api/types/PortalSessionResponse.d.mts +0 -3
  661. package/dist/esm/api/types/SkyvernSchemasRunBlocksCredentialType.d.mts +0 -7
  662. /package/dist/cjs/api/client/requests/{ChangeTierRequest.js → BatchGetRunTagsRequest.js} +0 -0
  663. /package/dist/cjs/api/client/requests/{CheckoutSubscriptionRequest.js → BatchGetWorkflowTagsRequest.js} +0 -0
  664. /package/dist/cjs/api/client/requests/{RunTaskRequest.js → BulkCancelRunsRequest.js} +0 -0
  665. /package/dist/cjs/api/client/requests/{RunWorkflowRequest.js → CustomLlmCreateRequest.js} +0 -0
  666. /package/dist/cjs/api/{types/BillingStateResponse.js → client/requests/CustomLlmUpdateRequest.js} +0 -0
  667. /package/dist/cjs/api/{types/ChangeTierResponse.js → client/requests/DeleteFolderRequest.js} +0 -0
  668. /package/dist/cjs/api/{types/CheckoutSessionResponse.js → client/requests/FolderCreate.js} +0 -0
  669. /package/dist/cjs/api/{types/ClearCacheResponse.js → client/requests/FolderUpdate.js} +0 -0
  670. /package/dist/cjs/api/{types/PortalSessionResponse.js → client/requests/GetFoldersRequest.js} +0 -0
  671. /package/dist/cjs/api/{types/TaskRunRequest.js → client/requests/GetRunTagHistoryRequest.js} +0 -0
  672. /package/dist/cjs/api/{types/WorkflowRunRequest.js → client/requests/GetRunsV2Request.js} +0 -0
  673. /package/dist/esm/api/client/requests/{ChangeTierRequest.mjs → BatchGetRunTagsRequest.mjs} +0 -0
  674. /package/dist/esm/api/client/requests/{CheckoutSubscriptionRequest.mjs → BatchGetWorkflowTagsRequest.mjs} +0 -0
  675. /package/dist/esm/api/client/requests/{RunTaskRequest.mjs → BulkCancelRunsRequest.mjs} +0 -0
  676. /package/dist/esm/api/client/requests/{RunWorkflowRequest.mjs → CustomLlmCreateRequest.mjs} +0 -0
  677. /package/dist/esm/api/{types/BillingStateResponse.mjs → client/requests/CustomLlmUpdateRequest.mjs} +0 -0
  678. /package/dist/esm/api/{types/ChangeTierResponse.mjs → client/requests/DeleteFolderRequest.mjs} +0 -0
  679. /package/dist/esm/api/{types/CheckoutSessionResponse.mjs → client/requests/FolderCreate.mjs} +0 -0
  680. /package/dist/esm/api/{types/ClearCacheResponse.mjs → client/requests/FolderUpdate.mjs} +0 -0
  681. /package/dist/esm/api/{types/PortalSessionResponse.mjs → client/requests/GetFoldersRequest.mjs} +0 -0
  682. /package/dist/esm/api/{types/TaskRunRequest.mjs → client/requests/GetRunTagHistoryRequest.mjs} +0 -0
  683. /package/dist/esm/api/{types/WorkflowRunRequest.mjs → client/requests/GetRunsV2Request.mjs} +0 -0
@@ -0,0 +1,517 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
12
+ import * as core from "../../../../core/index.mjs";
13
+ import * as environments from "../../../../environments.mjs";
14
+ import * as errors from "../../../../errors/index.mjs";
15
+ import * as Skyvern from "../../../index.mjs";
16
+ export class Schedules {
17
+ constructor(_options = {}) {
18
+ this._options = _options;
19
+ }
20
+ /**
21
+ * @param {Skyvern.SchedulesListAllRequest} request
22
+ * @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
23
+ *
24
+ * @throws {@link Skyvern.UnprocessableEntityError}
25
+ *
26
+ * @example
27
+ * await client.schedules.listAll({
28
+ * page: 1,
29
+ * page_size: 1,
30
+ * status: "active",
31
+ * search: "search"
32
+ * })
33
+ */
34
+ listAll(request = {}, requestOptions) {
35
+ return core.HttpResponsePromise.fromPromise(this.__listAll(request, requestOptions));
36
+ }
37
+ __listAll() {
38
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
39
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
40
+ const { page, page_size: pageSize, status, search } = request;
41
+ const _queryParams = {};
42
+ if (page != null) {
43
+ _queryParams.page = page.toString();
44
+ }
45
+ if (pageSize != null) {
46
+ _queryParams.page_size = pageSize.toString();
47
+ }
48
+ if (status != null) {
49
+ _queryParams.status = status;
50
+ }
51
+ if (search != null) {
52
+ _queryParams.search = search;
53
+ }
54
+ 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);
55
+ const _response = yield core.fetcher({
56
+ 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/schedules"),
57
+ method: "GET",
58
+ headers: _headers,
59
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
60
+ 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,
61
+ 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,
62
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
63
+ });
64
+ if (_response.ok) {
65
+ return {
66
+ data: _response.body,
67
+ rawResponse: _response.rawResponse,
68
+ };
69
+ }
70
+ if (_response.error.reason === "status-code") {
71
+ switch (_response.error.statusCode) {
72
+ case 422:
73
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
74
+ default:
75
+ throw new errors.SkyvernError({
76
+ statusCode: _response.error.statusCode,
77
+ body: _response.error.body,
78
+ rawResponse: _response.rawResponse,
79
+ });
80
+ }
81
+ }
82
+ switch (_response.error.reason) {
83
+ case "non-json":
84
+ throw new errors.SkyvernError({
85
+ statusCode: _response.error.statusCode,
86
+ body: _response.error.rawBody,
87
+ rawResponse: _response.rawResponse,
88
+ });
89
+ case "timeout":
90
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling GET /v1/schedules.");
91
+ case "unknown":
92
+ throw new errors.SkyvernError({
93
+ message: _response.error.errorMessage,
94
+ rawResponse: _response.rawResponse,
95
+ });
96
+ }
97
+ });
98
+ }
99
+ /**
100
+ * @param {string} workflowPermanentId
101
+ * @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
102
+ *
103
+ * @throws {@link Skyvern.UnprocessableEntityError}
104
+ *
105
+ * @example
106
+ * await client.schedules.list("workflow_permanent_id")
107
+ */
108
+ list(workflowPermanentId, requestOptions) {
109
+ return core.HttpResponsePromise.fromPromise(this.__list(workflowPermanentId, requestOptions));
110
+ }
111
+ __list(workflowPermanentId, requestOptions) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
114
+ 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);
115
+ const _response = yield core.fetcher({
116
+ 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/agents/${core.url.encodePathParam(workflowPermanentId)}/schedules`),
117
+ method: "GET",
118
+ headers: _headers,
119
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
120
+ 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,
121
+ 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,
122
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
123
+ });
124
+ if (_response.ok) {
125
+ return { data: _response.body, rawResponse: _response.rawResponse };
126
+ }
127
+ if (_response.error.reason === "status-code") {
128
+ switch (_response.error.statusCode) {
129
+ case 422:
130
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
131
+ default:
132
+ throw new errors.SkyvernError({
133
+ statusCode: _response.error.statusCode,
134
+ body: _response.error.body,
135
+ rawResponse: _response.rawResponse,
136
+ });
137
+ }
138
+ }
139
+ switch (_response.error.reason) {
140
+ case "non-json":
141
+ throw new errors.SkyvernError({
142
+ statusCode: _response.error.statusCode,
143
+ body: _response.error.rawBody,
144
+ rawResponse: _response.rawResponse,
145
+ });
146
+ case "timeout":
147
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling GET /v1/agents/{workflow_permanent_id}/schedules.");
148
+ case "unknown":
149
+ throw new errors.SkyvernError({
150
+ message: _response.error.errorMessage,
151
+ rawResponse: _response.rawResponse,
152
+ });
153
+ }
154
+ });
155
+ }
156
+ /**
157
+ * @param {string} workflowPermanentId
158
+ * @param {Skyvern.WorkflowScheduleUpsertRequest} request
159
+ * @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
160
+ *
161
+ * @throws {@link Skyvern.UnprocessableEntityError}
162
+ *
163
+ * @example
164
+ * await client.schedules.create("workflow_permanent_id", {
165
+ * cron_expression: "cron_expression",
166
+ * timezone: "timezone"
167
+ * })
168
+ */
169
+ create(workflowPermanentId, request, requestOptions) {
170
+ return core.HttpResponsePromise.fromPromise(this.__create(workflowPermanentId, request, requestOptions));
171
+ }
172
+ __create(workflowPermanentId, request, requestOptions) {
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
175
+ 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);
176
+ const _response = yield core.fetcher({
177
+ 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/agents/${core.url.encodePathParam(workflowPermanentId)}/schedules`),
178
+ method: "POST",
179
+ headers: _headers,
180
+ contentType: "application/json",
181
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
182
+ requestType: "json",
183
+ body: request,
184
+ 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,
185
+ 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,
186
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
187
+ });
188
+ if (_response.ok) {
189
+ return { data: _response.body, rawResponse: _response.rawResponse };
190
+ }
191
+ if (_response.error.reason === "status-code") {
192
+ switch (_response.error.statusCode) {
193
+ case 422:
194
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
195
+ default:
196
+ throw new errors.SkyvernError({
197
+ statusCode: _response.error.statusCode,
198
+ body: _response.error.body,
199
+ rawResponse: _response.rawResponse,
200
+ });
201
+ }
202
+ }
203
+ switch (_response.error.reason) {
204
+ case "non-json":
205
+ throw new errors.SkyvernError({
206
+ statusCode: _response.error.statusCode,
207
+ body: _response.error.rawBody,
208
+ rawResponse: _response.rawResponse,
209
+ });
210
+ case "timeout":
211
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling POST /v1/agents/{workflow_permanent_id}/schedules.");
212
+ case "unknown":
213
+ throw new errors.SkyvernError({
214
+ message: _response.error.errorMessage,
215
+ rawResponse: _response.rawResponse,
216
+ });
217
+ }
218
+ });
219
+ }
220
+ /**
221
+ * @param {string} workflowPermanentId
222
+ * @param {string} workflowScheduleId
223
+ * @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
224
+ *
225
+ * @throws {@link Skyvern.UnprocessableEntityError}
226
+ *
227
+ * @example
228
+ * await client.schedules.get("workflow_permanent_id", "workflow_schedule_id")
229
+ */
230
+ get(workflowPermanentId, workflowScheduleId, requestOptions) {
231
+ return core.HttpResponsePromise.fromPromise(this.__get(workflowPermanentId, workflowScheduleId, requestOptions));
232
+ }
233
+ __get(workflowPermanentId, workflowScheduleId, requestOptions) {
234
+ return __awaiter(this, void 0, void 0, function* () {
235
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
236
+ 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);
237
+ const _response = yield core.fetcher({
238
+ 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/agents/${core.url.encodePathParam(workflowPermanentId)}/schedules/${core.url.encodePathParam(workflowScheduleId)}`),
239
+ method: "GET",
240
+ headers: _headers,
241
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
242
+ 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,
243
+ 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,
244
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
245
+ });
246
+ if (_response.ok) {
247
+ return { data: _response.body, rawResponse: _response.rawResponse };
248
+ }
249
+ if (_response.error.reason === "status-code") {
250
+ switch (_response.error.statusCode) {
251
+ case 422:
252
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
253
+ default:
254
+ throw new errors.SkyvernError({
255
+ statusCode: _response.error.statusCode,
256
+ body: _response.error.body,
257
+ rawResponse: _response.rawResponse,
258
+ });
259
+ }
260
+ }
261
+ switch (_response.error.reason) {
262
+ case "non-json":
263
+ throw new errors.SkyvernError({
264
+ statusCode: _response.error.statusCode,
265
+ body: _response.error.rawBody,
266
+ rawResponse: _response.rawResponse,
267
+ });
268
+ case "timeout":
269
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling GET /v1/agents/{workflow_permanent_id}/schedules/{workflow_schedule_id}.");
270
+ case "unknown":
271
+ throw new errors.SkyvernError({
272
+ message: _response.error.errorMessage,
273
+ rawResponse: _response.rawResponse,
274
+ });
275
+ }
276
+ });
277
+ }
278
+ /**
279
+ * @param {string} workflowPermanentId
280
+ * @param {string} workflowScheduleId
281
+ * @param {Skyvern.WorkflowScheduleUpsertRequest} request
282
+ * @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
283
+ *
284
+ * @throws {@link Skyvern.UnprocessableEntityError}
285
+ *
286
+ * @example
287
+ * await client.schedules.update("workflow_permanent_id", "workflow_schedule_id", {
288
+ * cron_expression: "cron_expression",
289
+ * timezone: "timezone"
290
+ * })
291
+ */
292
+ update(workflowPermanentId, workflowScheduleId, request, requestOptions) {
293
+ return core.HttpResponsePromise.fromPromise(this.__update(workflowPermanentId, workflowScheduleId, request, requestOptions));
294
+ }
295
+ __update(workflowPermanentId, workflowScheduleId, request, requestOptions) {
296
+ return __awaiter(this, void 0, void 0, function* () {
297
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
298
+ 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);
299
+ const _response = yield core.fetcher({
300
+ 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/agents/${core.url.encodePathParam(workflowPermanentId)}/schedules/${core.url.encodePathParam(workflowScheduleId)}`),
301
+ method: "PUT",
302
+ headers: _headers,
303
+ contentType: "application/json",
304
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
305
+ requestType: "json",
306
+ body: request,
307
+ 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,
308
+ 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,
309
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
310
+ });
311
+ if (_response.ok) {
312
+ return { data: _response.body, rawResponse: _response.rawResponse };
313
+ }
314
+ if (_response.error.reason === "status-code") {
315
+ switch (_response.error.statusCode) {
316
+ case 422:
317
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
318
+ default:
319
+ throw new errors.SkyvernError({
320
+ statusCode: _response.error.statusCode,
321
+ body: _response.error.body,
322
+ rawResponse: _response.rawResponse,
323
+ });
324
+ }
325
+ }
326
+ switch (_response.error.reason) {
327
+ case "non-json":
328
+ throw new errors.SkyvernError({
329
+ statusCode: _response.error.statusCode,
330
+ body: _response.error.rawBody,
331
+ rawResponse: _response.rawResponse,
332
+ });
333
+ case "timeout":
334
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling PUT /v1/agents/{workflow_permanent_id}/schedules/{workflow_schedule_id}.");
335
+ case "unknown":
336
+ throw new errors.SkyvernError({
337
+ message: _response.error.errorMessage,
338
+ rawResponse: _response.rawResponse,
339
+ });
340
+ }
341
+ });
342
+ }
343
+ /**
344
+ * @param {string} workflowPermanentId
345
+ * @param {string} workflowScheduleId
346
+ * @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
347
+ *
348
+ * @throws {@link Skyvern.UnprocessableEntityError}
349
+ *
350
+ * @example
351
+ * await client.schedules.delete("workflow_permanent_id", "workflow_schedule_id")
352
+ */
353
+ delete(workflowPermanentId, workflowScheduleId, requestOptions) {
354
+ return core.HttpResponsePromise.fromPromise(this.__delete(workflowPermanentId, workflowScheduleId, requestOptions));
355
+ }
356
+ __delete(workflowPermanentId, workflowScheduleId, requestOptions) {
357
+ return __awaiter(this, void 0, void 0, function* () {
358
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
359
+ 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);
360
+ const _response = yield core.fetcher({
361
+ 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/agents/${core.url.encodePathParam(workflowPermanentId)}/schedules/${core.url.encodePathParam(workflowScheduleId)}`),
362
+ method: "DELETE",
363
+ headers: _headers,
364
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
365
+ 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,
366
+ 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,
367
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
368
+ });
369
+ if (_response.ok) {
370
+ return { data: _response.body, rawResponse: _response.rawResponse };
371
+ }
372
+ if (_response.error.reason === "status-code") {
373
+ switch (_response.error.statusCode) {
374
+ case 422:
375
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
376
+ default:
377
+ throw new errors.SkyvernError({
378
+ statusCode: _response.error.statusCode,
379
+ body: _response.error.body,
380
+ rawResponse: _response.rawResponse,
381
+ });
382
+ }
383
+ }
384
+ switch (_response.error.reason) {
385
+ case "non-json":
386
+ throw new errors.SkyvernError({
387
+ statusCode: _response.error.statusCode,
388
+ body: _response.error.rawBody,
389
+ rawResponse: _response.rawResponse,
390
+ });
391
+ case "timeout":
392
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling DELETE /v1/agents/{workflow_permanent_id}/schedules/{workflow_schedule_id}.");
393
+ case "unknown":
394
+ throw new errors.SkyvernError({
395
+ message: _response.error.errorMessage,
396
+ rawResponse: _response.rawResponse,
397
+ });
398
+ }
399
+ });
400
+ }
401
+ /**
402
+ * @param {string} workflowPermanentId
403
+ * @param {string} workflowScheduleId
404
+ * @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
405
+ *
406
+ * @throws {@link Skyvern.UnprocessableEntityError}
407
+ *
408
+ * @example
409
+ * await client.schedules.enable("workflow_permanent_id", "workflow_schedule_id")
410
+ */
411
+ enable(workflowPermanentId, workflowScheduleId, requestOptions) {
412
+ return core.HttpResponsePromise.fromPromise(this.__enable(workflowPermanentId, workflowScheduleId, requestOptions));
413
+ }
414
+ __enable(workflowPermanentId, workflowScheduleId, requestOptions) {
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
417
+ 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);
418
+ const _response = yield core.fetcher({
419
+ 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/agents/${core.url.encodePathParam(workflowPermanentId)}/schedules/${core.url.encodePathParam(workflowScheduleId)}/enable`),
420
+ method: "POST",
421
+ headers: _headers,
422
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
423
+ 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,
424
+ 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,
425
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
426
+ });
427
+ if (_response.ok) {
428
+ return { data: _response.body, rawResponse: _response.rawResponse };
429
+ }
430
+ if (_response.error.reason === "status-code") {
431
+ switch (_response.error.statusCode) {
432
+ case 422:
433
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
434
+ default:
435
+ throw new errors.SkyvernError({
436
+ statusCode: _response.error.statusCode,
437
+ body: _response.error.body,
438
+ rawResponse: _response.rawResponse,
439
+ });
440
+ }
441
+ }
442
+ switch (_response.error.reason) {
443
+ case "non-json":
444
+ throw new errors.SkyvernError({
445
+ statusCode: _response.error.statusCode,
446
+ body: _response.error.rawBody,
447
+ rawResponse: _response.rawResponse,
448
+ });
449
+ case "timeout":
450
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling POST /v1/agents/{workflow_permanent_id}/schedules/{workflow_schedule_id}/enable.");
451
+ case "unknown":
452
+ throw new errors.SkyvernError({
453
+ message: _response.error.errorMessage,
454
+ rawResponse: _response.rawResponse,
455
+ });
456
+ }
457
+ });
458
+ }
459
+ /**
460
+ * @param {string} workflowPermanentId
461
+ * @param {string} workflowScheduleId
462
+ * @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
463
+ *
464
+ * @throws {@link Skyvern.UnprocessableEntityError}
465
+ *
466
+ * @example
467
+ * await client.schedules.disable("workflow_permanent_id", "workflow_schedule_id")
468
+ */
469
+ disable(workflowPermanentId, workflowScheduleId, requestOptions) {
470
+ return core.HttpResponsePromise.fromPromise(this.__disable(workflowPermanentId, workflowScheduleId, requestOptions));
471
+ }
472
+ __disable(workflowPermanentId, workflowScheduleId, requestOptions) {
473
+ return __awaiter(this, void 0, void 0, function* () {
474
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
475
+ 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);
476
+ const _response = yield core.fetcher({
477
+ 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/agents/${core.url.encodePathParam(workflowPermanentId)}/schedules/${core.url.encodePathParam(workflowScheduleId)}/disable`),
478
+ method: "POST",
479
+ headers: _headers,
480
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
481
+ 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,
482
+ 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,
483
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
484
+ });
485
+ if (_response.ok) {
486
+ return { data: _response.body, rawResponse: _response.rawResponse };
487
+ }
488
+ if (_response.error.reason === "status-code") {
489
+ switch (_response.error.statusCode) {
490
+ case 422:
491
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
492
+ default:
493
+ throw new errors.SkyvernError({
494
+ statusCode: _response.error.statusCode,
495
+ body: _response.error.body,
496
+ rawResponse: _response.rawResponse,
497
+ });
498
+ }
499
+ }
500
+ switch (_response.error.reason) {
501
+ case "non-json":
502
+ throw new errors.SkyvernError({
503
+ statusCode: _response.error.statusCode,
504
+ body: _response.error.rawBody,
505
+ rawResponse: _response.rawResponse,
506
+ });
507
+ case "timeout":
508
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling POST /v1/agents/{workflow_permanent_id}/schedules/{workflow_schedule_id}/disable.");
509
+ case "unknown":
510
+ throw new errors.SkyvernError({
511
+ message: _response.error.errorMessage,
512
+ rawResponse: _response.rawResponse,
513
+ });
514
+ }
515
+ });
516
+ }
517
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,18 @@
1
+ import type * as Skyvern from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * page: 1,
6
+ * page_size: 1,
7
+ * status: "active",
8
+ * search: "search"
9
+ * }
10
+ */
11
+ export interface SchedulesListAllRequest {
12
+ page?: number;
13
+ page_size?: number;
14
+ /** Filter by status: 'active' or 'paused' */
15
+ status?: Skyvern.SchedulesListAllRequestStatus;
16
+ /** Search by workflow title or schedule name */
17
+ search?: string;
18
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type { SchedulesListAllRequest } from "./SchedulesListAllRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,5 @@
1
+ export declare const SchedulesListAllRequestStatus: {
2
+ readonly Active: "active";
3
+ readonly Paused: "paused";
4
+ };
5
+ export type SchedulesListAllRequestStatus = (typeof SchedulesListAllRequestStatus)[keyof typeof SchedulesListAllRequestStatus];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const SchedulesListAllRequestStatus = {
3
+ Active: "active",
4
+ Paused: "paused",
5
+ };
@@ -0,0 +1 @@
1
+ export * from "./SchedulesListAllRequestStatus.mjs";
@@ -0,0 +1 @@
1
+ export * from "./SchedulesListAllRequestStatus.mjs";
@@ -22,7 +22,9 @@ export interface Action {
22
22
  tool_call_id?: string;
23
23
  xpath?: string;
24
24
  errors?: Skyvern.UserDefinedError[];
25
+ terminal_user_errors?: boolean;
25
26
  data_extraction_goal?: string;
27
+ output?: Action.Output;
26
28
  file_name?: string;
27
29
  file_url?: string;
28
30
  download?: boolean;
@@ -42,3 +44,6 @@ export interface Action {
42
44
  modified_at?: string;
43
45
  created_by?: string;
44
46
  }
47
+ export declare namespace Action {
48
+ type Output = Record<string, unknown> | unknown[] | string;
49
+ }
@@ -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
+ ignore_workflow_system_prompt?: boolean;
11
12
  next_loop_on_failure?: boolean;
12
13
  task_type?: string;
13
14
  url?: string;
@@ -29,6 +30,9 @@ export interface ActionBlock {
29
30
  complete_verification?: boolean;
30
31
  include_action_history_in_verification?: boolean;
31
32
  download_timeout?: number;
33
+ include_extracted_text?: boolean;
34
+ selector?: string;
35
+ ai_fallback?: Skyvern.AiFallbackMode;
32
36
  }
33
37
  export declare namespace ActionBlock {
34
38
  type DataSchema = Record<string, unknown> | unknown[] | string;
@@ -6,11 +6,14 @@ export interface ActionBlockYaml {
6
6
  next_block_label?: string;
7
7
  continue_on_failure?: boolean;
8
8
  model?: Record<string, unknown>;
9
+ ignore_workflow_system_prompt?: boolean;
9
10
  next_loop_on_failure?: boolean;
10
11
  url?: string;
11
12
  title?: string;
12
13
  engine?: Skyvern.RunEngine;
13
14
  navigation_goal?: string;
15
+ selector?: string;
16
+ ai_fallback?: Skyvern.AiFallbackMode;
14
17
  error_code_mapping?: Record<string, string | undefined>;
15
18
  max_retries?: number;
16
19
  parameter_keys?: string[];