windmill-client 1.309.0 → 1.309.2

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 (369) hide show
  1. package/dist/core/ApiError.d.ts +1 -1
  2. package/dist/core/ApiRequestOptions.d.ts +5 -5
  3. package/dist/core/ApiResult.d.ts +3 -3
  4. package/dist/core/CancelablePromise.d.ts +10 -4
  5. package/dist/core/CancelablePromise.js +33 -56
  6. package/dist/core/OpenAPI.d.ts +17 -6
  7. package/dist/core/OpenAPI.js +26 -6
  8. package/dist/core/request.d.ts +6 -7
  9. package/dist/core/request.js +40 -56
  10. package/dist/index.d.ts +4 -178
  11. package/dist/index.js +19 -102
  12. package/dist/schemas.gen.d.ts +3155 -0
  13. package/dist/schemas.gen.js +3222 -0
  14. package/dist/services.gen.d.ts +1928 -0
  15. package/dist/services.gen.js +5341 -0
  16. package/dist/types.gen.d.ts +6898 -0
  17. package/dist/{models/After.js → types.gen.js} +1 -0
  18. package/package.json +3 -2
  19. package/dist/models/AccountId.d.ts +0 -1
  20. package/dist/models/AccountId.js +0 -2
  21. package/dist/models/ActionKind.d.ts +0 -9
  22. package/dist/models/ActionKind.js +0 -17
  23. package/dist/models/After.d.ts +0 -4
  24. package/dist/models/AppHistory.d.ts +0 -4
  25. package/dist/models/AppHistory.js +0 -2
  26. package/dist/models/AppWithLastVersion.d.ts +0 -21
  27. package/dist/models/AppWithLastVersion.js +0 -12
  28. package/dist/models/AppWithLastVersionWDraft.d.ts +0 -5
  29. package/dist/models/AppWithLastVersionWDraft.js +0 -2
  30. package/dist/models/ArgsFilter.d.ts +0 -4
  31. package/dist/models/ArgsFilter.js +0 -2
  32. package/dist/models/AuditLog.d.ts +0 -102
  33. package/dist/models/AuditLog.js +0 -99
  34. package/dist/models/Before.d.ts +0 -4
  35. package/dist/models/Before.js +0 -2
  36. package/dist/models/BranchAll.d.ts +0 -10
  37. package/dist/models/BranchAll.js +0 -2
  38. package/dist/models/BranchOne.d.ts +0 -10
  39. package/dist/models/BranchOne.js +0 -2
  40. package/dist/models/CacheTtl.d.ts +0 -4
  41. package/dist/models/CacheTtl.js +0 -2
  42. package/dist/models/ClientName.d.ts +0 -1
  43. package/dist/models/ClientName.js +0 -2
  44. package/dist/models/CompletedJob.d.ts +0 -71
  45. package/dist/models/CompletedJob.js +0 -36
  46. package/dist/models/ConcurrencyGroup.d.ts +0 -4
  47. package/dist/models/ConcurrencyGroup.js +0 -2
  48. package/dist/models/ConcurrencyId.d.ts +0 -1
  49. package/dist/models/ConcurrencyId.js +0 -2
  50. package/dist/models/ContextualVariable.d.ts +0 -6
  51. package/dist/models/ContextualVariable.js +0 -2
  52. package/dist/models/CreateInput.d.ts +0 -4
  53. package/dist/models/CreateInput.js +0 -2
  54. package/dist/models/CreateResource.d.ts +0 -6
  55. package/dist/models/CreateResource.js +0 -2
  56. package/dist/models/CreateVariable.d.ts +0 -8
  57. package/dist/models/CreateVariable.js +0 -2
  58. package/dist/models/CreateWorkspace.d.ts +0 -5
  59. package/dist/models/CreateWorkspace.js +0 -2
  60. package/dist/models/CreatedBy.d.ts +0 -4
  61. package/dist/models/CreatedBy.js +0 -2
  62. package/dist/models/CreatedOrStartedAfter.d.ts +0 -4
  63. package/dist/models/CreatedOrStartedAfter.js +0 -2
  64. package/dist/models/CreatedOrStartedBefore.d.ts +0 -4
  65. package/dist/models/CreatedOrStartedBefore.js +0 -2
  66. package/dist/models/EditResource.d.ts +0 -5
  67. package/dist/models/EditResource.js +0 -2
  68. package/dist/models/EditResourceType.d.ts +0 -4
  69. package/dist/models/EditResourceType.js +0 -2
  70. package/dist/models/EditSchedule.d.ts +0 -19
  71. package/dist/models/EditSchedule.js +0 -2
  72. package/dist/models/EditVariable.d.ts +0 -6
  73. package/dist/models/EditVariable.js +0 -2
  74. package/dist/models/EditWorkspaceUser.d.ts +0 -5
  75. package/dist/models/EditWorkspaceUser.js +0 -2
  76. package/dist/models/Flow.d.ts +0 -3
  77. package/dist/models/Flow.js +0 -2
  78. package/dist/models/FlowMetadata.d.ts +0 -16
  79. package/dist/models/FlowMetadata.js +0 -2
  80. package/dist/models/FlowModule.d.ts +0 -34
  81. package/dist/models/FlowModule.js +0 -2
  82. package/dist/models/FlowModuleValue.d.ts +0 -9
  83. package/dist/models/FlowModuleValue.js +0 -2
  84. package/dist/models/FlowPreview.d.ts +0 -10
  85. package/dist/models/FlowPreview.js +0 -2
  86. package/dist/models/FlowStatus.d.ts +0 -13
  87. package/dist/models/FlowStatus.js +0 -2
  88. package/dist/models/FlowStatusModule.d.ts +0 -34
  89. package/dist/models/FlowStatusModule.js +0 -15
  90. package/dist/models/FlowValue.d.ts +0 -13
  91. package/dist/models/FlowValue.js +0 -2
  92. package/dist/models/Folder.d.ts +0 -5
  93. package/dist/models/Folder.js +0 -2
  94. package/dist/models/ForloopFlow.d.ts +0 -10
  95. package/dist/models/ForloopFlow.js +0 -2
  96. package/dist/models/GetStarted.d.ts +0 -1
  97. package/dist/models/GetStarted.js +0 -2
  98. package/dist/models/GitRepositorySettings.d.ts +0 -7
  99. package/dist/models/GitRepositorySettings.js +0 -2
  100. package/dist/models/GlobalUserInfo.d.ts +0 -15
  101. package/dist/models/GlobalUserInfo.js +0 -11
  102. package/dist/models/Group.d.ts +0 -6
  103. package/dist/models/Group.js +0 -2
  104. package/dist/models/HubScriptKind.d.ts +0 -1
  105. package/dist/models/HubScriptKind.js +0 -2
  106. package/dist/models/Identity.d.ts +0 -4
  107. package/dist/models/Identity.js +0 -2
  108. package/dist/models/IncludeHeader.d.ts +0 -6
  109. package/dist/models/IncludeHeader.js +0 -2
  110. package/dist/models/Input.d.ts +0 -9
  111. package/dist/models/Input.js +0 -2
  112. package/dist/models/InputId.d.ts +0 -1
  113. package/dist/models/InputId.js +0 -2
  114. package/dist/models/InputTransform.d.ts +0 -3
  115. package/dist/models/InputTransform.js +0 -2
  116. package/dist/models/InstanceGroup.d.ts +0 -5
  117. package/dist/models/InstanceGroup.js +0 -2
  118. package/dist/models/JavascriptTransform.d.ts +0 -4
  119. package/dist/models/JavascriptTransform.js +0 -2
  120. package/dist/models/Job.d.ts +0 -12
  121. package/dist/models/Job.js +0 -10
  122. package/dist/models/JobId.d.ts +0 -1
  123. package/dist/models/JobId.js +0 -2
  124. package/dist/models/JobKinds.d.ts +0 -4
  125. package/dist/models/JobKinds.js +0 -2
  126. package/dist/models/Key.d.ts +0 -1
  127. package/dist/models/Key.js +0 -2
  128. package/dist/models/LargeFileStorage.d.ts +0 -14
  129. package/dist/models/LargeFileStorage.js +0 -13
  130. package/dist/models/ListableApp.d.ts +0 -18
  131. package/dist/models/ListableApp.js +0 -12
  132. package/dist/models/ListableRawApp.d.ts +0 -9
  133. package/dist/models/ListableRawApp.js +0 -2
  134. package/dist/models/ListableResource.d.ts +0 -14
  135. package/dist/models/ListableResource.js +0 -2
  136. package/dist/models/ListableVariable.d.ts +0 -14
  137. package/dist/models/ListableVariable.js +0 -2
  138. package/dist/models/Login.d.ts +0 -4
  139. package/dist/models/Login.js +0 -2
  140. package/dist/models/MainArgSignature.d.ts +0 -33
  141. package/dist/models/MainArgSignature.js +0 -11
  142. package/dist/models/MetricDataPoint.d.ts +0 -4
  143. package/dist/models/MetricDataPoint.js +0 -2
  144. package/dist/models/MetricMetadata.d.ts +0 -4
  145. package/dist/models/MetricMetadata.js +0 -2
  146. package/dist/models/Name.d.ts +0 -1
  147. package/dist/models/Name.js +0 -2
  148. package/dist/models/NewJobId.d.ts +0 -4
  149. package/dist/models/NewJobId.js +0 -2
  150. package/dist/models/NewSchedule.d.ts +0 -23
  151. package/dist/models/NewSchedule.js +0 -2
  152. package/dist/models/NewScript.d.ts +0 -51
  153. package/dist/models/NewScript.js +0 -30
  154. package/dist/models/NewScriptWithDraft.d.ts +0 -5
  155. package/dist/models/NewScriptWithDraft.js +0 -2
  156. package/dist/models/NewToken.d.ts +0 -5
  157. package/dist/models/NewToken.js +0 -2
  158. package/dist/models/NewTokenImpersonate.d.ts +0 -5
  159. package/dist/models/NewTokenImpersonate.js +0 -2
  160. package/dist/models/OpenFlow.d.ts +0 -7
  161. package/dist/models/OpenFlow.js +0 -2
  162. package/dist/models/OpenFlowWPath.d.ts +0 -10
  163. package/dist/models/OpenFlowWPath.js +0 -2
  164. package/dist/models/Operation.d.ts +0 -4
  165. package/dist/models/Operation.js +0 -2
  166. package/dist/models/OrderDesc.d.ts +0 -4
  167. package/dist/models/OrderDesc.js +0 -2
  168. package/dist/models/Page.d.ts +0 -4
  169. package/dist/models/Page.js +0 -2
  170. package/dist/models/ParentJob.d.ts +0 -4
  171. package/dist/models/ParentJob.js +0 -2
  172. package/dist/models/Path.d.ts +0 -1
  173. package/dist/models/Path.js +0 -2
  174. package/dist/models/PathFlow.d.ts +0 -6
  175. package/dist/models/PathFlow.js +0 -2
  176. package/dist/models/PathId.d.ts +0 -1
  177. package/dist/models/PathId.js +0 -2
  178. package/dist/models/PathScript.d.ts +0 -7
  179. package/dist/models/PathScript.js +0 -2
  180. package/dist/models/PathVersion.d.ts +0 -1
  181. package/dist/models/PathVersion.js +0 -2
  182. package/dist/models/Payload.d.ts +0 -6
  183. package/dist/models/Payload.js +0 -2
  184. package/dist/models/PerPage.d.ts +0 -4
  185. package/dist/models/PerPage.js +0 -2
  186. package/dist/models/PolarsClientKwargs.d.ts +0 -3
  187. package/dist/models/PolarsClientKwargs.js +0 -2
  188. package/dist/models/Policy.d.ts +0 -13
  189. package/dist/models/Policy.js +0 -12
  190. package/dist/models/Preview.d.ts +0 -33
  191. package/dist/models/Preview.js +0 -28
  192. package/dist/models/QueueLimit.d.ts +0 -5
  193. package/dist/models/QueueLimit.js +0 -2
  194. package/dist/models/QueuedJob.d.ts +0 -69
  195. package/dist/models/QueuedJob.js +0 -36
  196. package/dist/models/RawScript.d.ts +0 -29
  197. package/dist/models/RawScript.js +0 -22
  198. package/dist/models/RawScriptForDependencies.d.ts +0 -22
  199. package/dist/models/RawScriptForDependencies.js +0 -22
  200. package/dist/models/Resource.d.ts +0 -9
  201. package/dist/models/Resource.js +0 -2
  202. package/dist/models/ResourceName.d.ts +0 -4
  203. package/dist/models/ResourceName.js +0 -2
  204. package/dist/models/ResourceType.d.ts +0 -6
  205. package/dist/models/ResourceType.js +0 -2
  206. package/dist/models/RestartedFrom.d.ts +0 -5
  207. package/dist/models/RestartedFrom.js +0 -2
  208. package/dist/models/ResultFilter.d.ts +0 -4
  209. package/dist/models/ResultFilter.js +0 -2
  210. package/dist/models/Retry.d.ts +0 -12
  211. package/dist/models/Retry.js +0 -2
  212. package/dist/models/RunnableId.d.ts +0 -1
  213. package/dist/models/RunnableId.js +0 -2
  214. package/dist/models/RunnableType.d.ts +0 -5
  215. package/dist/models/RunnableType.js +0 -13
  216. package/dist/models/RunnableTypeQuery.d.ts +0 -2
  217. package/dist/models/RunnableTypeQuery.js +0 -2
  218. package/dist/models/Running.d.ts +0 -4
  219. package/dist/models/Running.js +0 -2
  220. package/dist/models/S3Resource.d.ts +0 -9
  221. package/dist/models/S3Resource.js +0 -2
  222. package/dist/models/ScalarMetric.d.ts +0 -4
  223. package/dist/models/ScalarMetric.js +0 -2
  224. package/dist/models/Schedule.d.ts +0 -28
  225. package/dist/models/Schedule.js +0 -2
  226. package/dist/models/SchedulePath.d.ts +0 -4
  227. package/dist/models/SchedulePath.js +0 -2
  228. package/dist/models/ScheduleWJobs.d.ts +0 -8
  229. package/dist/models/ScheduleWJobs.js +0 -2
  230. package/dist/models/ScheduledForBeforeNow.d.ts +0 -4
  231. package/dist/models/ScheduledForBeforeNow.js +0 -2
  232. package/dist/models/Script.d.ts +0 -63
  233. package/dist/models/Script.js +0 -30
  234. package/dist/models/ScriptArgs.d.ts +0 -1
  235. package/dist/models/ScriptArgs.js +0 -2
  236. package/dist/models/ScriptExactHash.d.ts +0 -4
  237. package/dist/models/ScriptExactHash.js +0 -2
  238. package/dist/models/ScriptExactPath.d.ts +0 -4
  239. package/dist/models/ScriptExactPath.js +0 -2
  240. package/dist/models/ScriptHash.d.ts +0 -1
  241. package/dist/models/ScriptHash.js +0 -2
  242. package/dist/models/ScriptHistory.d.ts +0 -4
  243. package/dist/models/ScriptHistory.js +0 -2
  244. package/dist/models/ScriptPath.d.ts +0 -1
  245. package/dist/models/ScriptPath.js +0 -2
  246. package/dist/models/ScriptStartPath.d.ts +0 -4
  247. package/dist/models/ScriptStartPath.js +0 -2
  248. package/dist/models/SlackToken.d.ts +0 -8
  249. package/dist/models/SlackToken.js +0 -2
  250. package/dist/models/StartedAfter.d.ts +0 -4
  251. package/dist/models/StartedAfter.js +0 -2
  252. package/dist/models/StartedBefore.d.ts +0 -4
  253. package/dist/models/StartedBefore.js +0 -2
  254. package/dist/models/StaticTransform.d.ts +0 -4
  255. package/dist/models/StaticTransform.js +0 -2
  256. package/dist/models/Success.d.ts +0 -4
  257. package/dist/models/Success.js +0 -2
  258. package/dist/models/Suspended.d.ts +0 -4
  259. package/dist/models/Suspended.js +0 -2
  260. package/dist/models/Tag.d.ts +0 -4
  261. package/dist/models/Tag.js +0 -2
  262. package/dist/models/TimeseriesMetric.d.ts +0 -5
  263. package/dist/models/TimeseriesMetric.js +0 -2
  264. package/dist/models/Token.d.ts +0 -1
  265. package/dist/models/Token.js +0 -2
  266. package/dist/models/TokenResponse.d.ts +0 -6
  267. package/dist/models/TokenResponse.js +0 -2
  268. package/dist/models/TruncatedToken.d.ts +0 -8
  269. package/dist/models/TruncatedToken.js +0 -2
  270. package/dist/models/UpdateInput.d.ts +0 -5
  271. package/dist/models/UpdateInput.js +0 -2
  272. package/dist/models/UploadFilePart.d.ts +0 -4
  273. package/dist/models/UploadFilePart.js +0 -2
  274. package/dist/models/User.d.ts +0 -12
  275. package/dist/models/User.js +0 -2
  276. package/dist/models/UserUsage.d.ts +0 -4
  277. package/dist/models/UserUsage.js +0 -2
  278. package/dist/models/UserWorkspaceList.d.ts +0 -8
  279. package/dist/models/UserWorkspaceList.js +0 -2
  280. package/dist/models/Username.d.ts +0 -4
  281. package/dist/models/Username.js +0 -2
  282. package/dist/models/VersionId.d.ts +0 -1
  283. package/dist/models/VersionId.js +0 -2
  284. package/dist/models/WhileloopFlow.d.ts +0 -8
  285. package/dist/models/WhileloopFlow.js +0 -2
  286. package/dist/models/WindmillFileMetadata.d.ts +0 -7
  287. package/dist/models/WindmillFileMetadata.js +0 -2
  288. package/dist/models/WindmillFilePreview.d.ts +0 -13
  289. package/dist/models/WindmillFilePreview.js +0 -13
  290. package/dist/models/WindmillLargeFile.d.ts +0 -3
  291. package/dist/models/WindmillLargeFile.js +0 -2
  292. package/dist/models/WorkerPing.d.ts +0 -11
  293. package/dist/models/WorkerPing.js +0 -2
  294. package/dist/models/WorkerTag.d.ts +0 -4
  295. package/dist/models/WorkerTag.js +0 -2
  296. package/dist/models/WorkflowStatus.d.ts +0 -6
  297. package/dist/models/WorkflowStatus.js +0 -2
  298. package/dist/models/WorkflowStatusRecord.d.ts +0 -2
  299. package/dist/models/WorkflowStatusRecord.js +0 -2
  300. package/dist/models/WorkflowTask.d.ts +0 -4
  301. package/dist/models/WorkflowTask.js +0 -2
  302. package/dist/models/Workspace.d.ts +0 -6
  303. package/dist/models/Workspace.js +0 -2
  304. package/dist/models/WorkspaceDefaultScripts.d.ts +0 -5
  305. package/dist/models/WorkspaceDefaultScripts.js +0 -2
  306. package/dist/models/WorkspaceGitSyncSettings.d.ts +0 -6
  307. package/dist/models/WorkspaceGitSyncSettings.js +0 -2
  308. package/dist/models/WorkspaceId.d.ts +0 -1
  309. package/dist/models/WorkspaceId.js +0 -2
  310. package/dist/models/WorkspaceInvite.d.ts +0 -6
  311. package/dist/models/WorkspaceInvite.js +0 -2
  312. package/dist/services/AdminService.d.ts +0 -36
  313. package/dist/services/AdminService.js +0 -55
  314. package/dist/services/AppService.d.ts +0 -244
  315. package/dist/services/AppService.js +0 -273
  316. package/dist/services/AuditService.d.ts +0 -53
  317. package/dist/services/AuditService.js +0 -47
  318. package/dist/services/CaptureService.d.ts +0 -30
  319. package/dist/services/CaptureService.js +0 -56
  320. package/dist/services/ConcurrencyGroupsService.d.ts +0 -18
  321. package/dist/services/ConcurrencyGroupsService.js +0 -33
  322. package/dist/services/ConfigService.d.ts +0 -40
  323. package/dist/services/ConfigService.js +0 -63
  324. package/dist/services/DraftService.d.ts +0 -26
  325. package/dist/services/DraftService.js +0 -40
  326. package/dist/services/FavoriteService.d.ts +0 -27
  327. package/dist/services/FavoriteService.js +0 -40
  328. package/dist/services/FlowService.d.ts +0 -215
  329. package/dist/services/FlowService.js +0 -231
  330. package/dist/services/FolderService.d.ts +0 -129
  331. package/dist/services/FolderService.js +0 -155
  332. package/dist/services/GranularAclService.d.ts +0 -46
  333. package/dist/services/GranularAclService.js +0 -60
  334. package/dist/services/GroupService.d.ts +0 -189
  335. package/dist/services/GroupService.js +0 -240
  336. package/dist/services/HelpersService.d.ts +0 -215
  337. package/dist/services/HelpersService.js +0 -260
  338. package/dist/services/InputService.d.ts +0 -78
  339. package/dist/services/InputService.js +0 -99
  340. package/dist/services/IntegrationService.d.ts +0 -16
  341. package/dist/services/IntegrationService.js +0 -22
  342. package/dist/services/JobService.d.ts +0 -1052
  343. package/dist/services/JobService.js +0 -894
  344. package/dist/services/MetricsService.d.ts +0 -27
  345. package/dist/services/MetricsService.js +0 -25
  346. package/dist/services/OauthService.d.ts +0 -97
  347. package/dist/services/OauthService.js +0 -124
  348. package/dist/services/OidcService.d.ts +0 -12
  349. package/dist/services/OidcService.js +0 -23
  350. package/dist/services/RawAppService.d.ts +0 -103
  351. package/dist/services/RawAppService.js +0 -110
  352. package/dist/services/ResourceService.d.ts +0 -234
  353. package/dist/services/ResourceService.js +0 -312
  354. package/dist/services/ScheduleService.d.ts +0 -149
  355. package/dist/services/ScheduleService.js +0 -171
  356. package/dist/services/ScriptService.d.ts +0 -355
  357. package/dist/services/ScriptService.js +0 -373
  358. package/dist/services/SettingService.d.ts +0 -93
  359. package/dist/services/SettingService.js +0 -112
  360. package/dist/services/SettingsService.d.ts +0 -27
  361. package/dist/services/SettingsService.js +0 -52
  362. package/dist/services/UserService.d.ts +0 -366
  363. package/dist/services/UserService.js +0 -479
  364. package/dist/services/VariableService.d.ts +0 -109
  365. package/dist/services/VariableService.js +0 -155
  366. package/dist/services/WorkerService.d.ts +0 -49
  367. package/dist/services/WorkerService.js +0 -71
  368. package/dist/services/WorkspaceService.d.ts +0 -517
  369. package/dist/services/WorkspaceService.js +0 -623
@@ -1,234 +0,0 @@
1
- import type { CreateResource } from '../models/CreateResource';
2
- import type { EditResource } from '../models/EditResource';
3
- import type { EditResourceType } from '../models/EditResourceType';
4
- import type { ListableResource } from '../models/ListableResource';
5
- import type { Resource } from '../models/Resource';
6
- import type { ResourceType } from '../models/ResourceType';
7
- import type { CancelablePromise } from '../core/CancelablePromise';
8
- export declare class ResourceService {
9
- /**
10
- * create resource
11
- * @returns string resource created
12
- * @throws ApiError
13
- */
14
- static createResource({ workspace, requestBody, updateIfExists, }: {
15
- workspace: string;
16
- /**
17
- * new resource
18
- */
19
- requestBody: CreateResource;
20
- updateIfExists?: boolean;
21
- }): CancelablePromise<string>;
22
- /**
23
- * delete resource
24
- * @returns string resource deleted
25
- * @throws ApiError
26
- */
27
- static deleteResource({ workspace, path, }: {
28
- workspace: string;
29
- path: string;
30
- }): CancelablePromise<string>;
31
- /**
32
- * update resource
33
- * @returns string resource updated
34
- * @throws ApiError
35
- */
36
- static updateResource({ workspace, path, requestBody, }: {
37
- workspace: string;
38
- path: string;
39
- /**
40
- * updated resource
41
- */
42
- requestBody: EditResource;
43
- }): CancelablePromise<string>;
44
- /**
45
- * update resource value
46
- * @returns string resource value updated
47
- * @throws ApiError
48
- */
49
- static updateResourceValue({ workspace, path, requestBody, }: {
50
- workspace: string;
51
- path: string;
52
- /**
53
- * updated resource
54
- */
55
- requestBody: {
56
- value?: any;
57
- };
58
- }): CancelablePromise<string>;
59
- /**
60
- * get resource
61
- * @returns Resource resource
62
- * @throws ApiError
63
- */
64
- static getResource({ workspace, path, }: {
65
- workspace: string;
66
- path: string;
67
- }): CancelablePromise<Resource>;
68
- /**
69
- * get resource interpolated (variables and resources are fully unrolled)
70
- * @returns any resource value
71
- * @throws ApiError
72
- */
73
- static getResourceValueInterpolated({ workspace, path, jobId, }: {
74
- workspace: string;
75
- path: string;
76
- /**
77
- * job id
78
- */
79
- jobId?: string;
80
- }): CancelablePromise<any>;
81
- /**
82
- * get resource value
83
- * @returns any resource value
84
- * @throws ApiError
85
- */
86
- static getResourceValue({ workspace, path, }: {
87
- workspace: string;
88
- path: string;
89
- }): CancelablePromise<any>;
90
- /**
91
- * does resource exists
92
- * @returns boolean does resource exists
93
- * @throws ApiError
94
- */
95
- static existsResource({ workspace, path, }: {
96
- workspace: string;
97
- path: string;
98
- }): CancelablePromise<boolean>;
99
- /**
100
- * list resources
101
- * @returns ListableResource resource list
102
- * @throws ApiError
103
- */
104
- static listResource({ workspace, page, perPage, resourceType, resourceTypeExclude, }: {
105
- workspace: string;
106
- /**
107
- * which page to return (start at 1, default 1)
108
- */
109
- page?: number;
110
- /**
111
- * number of items to return for a given page (default 30, max 100)
112
- */
113
- perPage?: number;
114
- /**
115
- * resource_types to list from, separated by ',',
116
- */
117
- resourceType?: string;
118
- /**
119
- * resource_types to not list from, separated by ',',
120
- */
121
- resourceTypeExclude?: string;
122
- }): CancelablePromise<Array<ListableResource>>;
123
- /**
124
- * list resources for search
125
- * @returns any resource list
126
- * @throws ApiError
127
- */
128
- static listSearchResource({ workspace, }: {
129
- workspace: string;
130
- }): CancelablePromise<Array<{
131
- path: string;
132
- value: any;
133
- }>>;
134
- /**
135
- * list resource names
136
- * @returns any resource list names
137
- * @throws ApiError
138
- */
139
- static listResourceNames({ workspace, name, }: {
140
- workspace: string;
141
- name: string;
142
- }): CancelablePromise<Array<{
143
- name: string;
144
- path: string;
145
- }>>;
146
- /**
147
- * create resource_type
148
- * @returns string resource_type created
149
- * @throws ApiError
150
- */
151
- static createResourceType({ workspace, requestBody, }: {
152
- workspace: string;
153
- /**
154
- * new resource_type
155
- */
156
- requestBody: ResourceType;
157
- }): CancelablePromise<string>;
158
- /**
159
- * delete resource_type
160
- * @returns string resource_type deleted
161
- * @throws ApiError
162
- */
163
- static deleteResourceType({ workspace, path, }: {
164
- workspace: string;
165
- path: string;
166
- }): CancelablePromise<string>;
167
- /**
168
- * update resource_type
169
- * @returns string resource_type updated
170
- * @throws ApiError
171
- */
172
- static updateResourceType({ workspace, path, requestBody, }: {
173
- workspace: string;
174
- path: string;
175
- /**
176
- * updated resource_type
177
- */
178
- requestBody: EditResourceType;
179
- }): CancelablePromise<string>;
180
- /**
181
- * get resource_type
182
- * @returns ResourceType resource_type deleted
183
- * @throws ApiError
184
- */
185
- static getResourceType({ workspace, path, }: {
186
- workspace: string;
187
- path: string;
188
- }): CancelablePromise<ResourceType>;
189
- /**
190
- * does resource_type exists
191
- * @returns boolean does resource_type exist
192
- * @throws ApiError
193
- */
194
- static existsResourceType({ workspace, path, }: {
195
- workspace: string;
196
- path: string;
197
- }): CancelablePromise<boolean>;
198
- /**
199
- * list resource_types
200
- * @returns ResourceType resource_type list
201
- * @throws ApiError
202
- */
203
- static listResourceType({ workspace, }: {
204
- workspace: string;
205
- }): CancelablePromise<Array<ResourceType>>;
206
- /**
207
- * list resource_types names
208
- * @returns string resource_type list
209
- * @throws ApiError
210
- */
211
- static listResourceTypeNames({ workspace, }: {
212
- workspace: string;
213
- }): CancelablePromise<Array<string>>;
214
- /**
215
- * query resource types by similarity
216
- * @returns any resource type details
217
- * @throws ApiError
218
- */
219
- static queryResourceTypes({ workspace, text, limit, }: {
220
- workspace: string;
221
- /**
222
- * query text
223
- */
224
- text: string;
225
- /**
226
- * query limit
227
- */
228
- limit?: number;
229
- }): CancelablePromise<Array<{
230
- name: string;
231
- score: number;
232
- schema?: any;
233
- }>>;
234
- }
@@ -1,312 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourceService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class ResourceService {
7
- /**
8
- * create resource
9
- * @returns string resource created
10
- * @throws ApiError
11
- */
12
- static createResource({ workspace, requestBody, updateIfExists, }) {
13
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
- method: 'POST',
15
- url: '/w/{workspace}/resources/create',
16
- path: {
17
- 'workspace': workspace,
18
- },
19
- query: {
20
- 'update_if_exists': updateIfExists,
21
- },
22
- body: requestBody,
23
- mediaType: 'application/json',
24
- });
25
- }
26
- /**
27
- * delete resource
28
- * @returns string resource deleted
29
- * @throws ApiError
30
- */
31
- static deleteResource({ workspace, path, }) {
32
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
33
- method: 'DELETE',
34
- url: '/w/{workspace}/resources/delete/{path}',
35
- path: {
36
- 'workspace': workspace,
37
- 'path': path,
38
- },
39
- });
40
- }
41
- /**
42
- * update resource
43
- * @returns string resource updated
44
- * @throws ApiError
45
- */
46
- static updateResource({ workspace, path, requestBody, }) {
47
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
48
- method: 'POST',
49
- url: '/w/{workspace}/resources/update/{path}',
50
- path: {
51
- 'workspace': workspace,
52
- 'path': path,
53
- },
54
- body: requestBody,
55
- mediaType: 'application/json',
56
- });
57
- }
58
- /**
59
- * update resource value
60
- * @returns string resource value updated
61
- * @throws ApiError
62
- */
63
- static updateResourceValue({ workspace, path, requestBody, }) {
64
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
65
- method: 'POST',
66
- url: '/w/{workspace}/resources/update_value/{path}',
67
- path: {
68
- 'workspace': workspace,
69
- 'path': path,
70
- },
71
- body: requestBody,
72
- mediaType: 'application/json',
73
- });
74
- }
75
- /**
76
- * get resource
77
- * @returns Resource resource
78
- * @throws ApiError
79
- */
80
- static getResource({ workspace, path, }) {
81
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
82
- method: 'GET',
83
- url: '/w/{workspace}/resources/get/{path}',
84
- path: {
85
- 'workspace': workspace,
86
- 'path': path,
87
- },
88
- });
89
- }
90
- /**
91
- * get resource interpolated (variables and resources are fully unrolled)
92
- * @returns any resource value
93
- * @throws ApiError
94
- */
95
- static getResourceValueInterpolated({ workspace, path, jobId, }) {
96
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
97
- method: 'GET',
98
- url: '/w/{workspace}/resources/get_value_interpolated/{path}',
99
- path: {
100
- 'workspace': workspace,
101
- 'path': path,
102
- },
103
- query: {
104
- 'job_id': jobId,
105
- },
106
- });
107
- }
108
- /**
109
- * get resource value
110
- * @returns any resource value
111
- * @throws ApiError
112
- */
113
- static getResourceValue({ workspace, path, }) {
114
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
115
- method: 'GET',
116
- url: '/w/{workspace}/resources/get_value/{path}',
117
- path: {
118
- 'workspace': workspace,
119
- 'path': path,
120
- },
121
- });
122
- }
123
- /**
124
- * does resource exists
125
- * @returns boolean does resource exists
126
- * @throws ApiError
127
- */
128
- static existsResource({ workspace, path, }) {
129
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
130
- method: 'GET',
131
- url: '/w/{workspace}/resources/exists/{path}',
132
- path: {
133
- 'workspace': workspace,
134
- 'path': path,
135
- },
136
- });
137
- }
138
- /**
139
- * list resources
140
- * @returns ListableResource resource list
141
- * @throws ApiError
142
- */
143
- static listResource({ workspace, page, perPage, resourceType, resourceTypeExclude, }) {
144
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
145
- method: 'GET',
146
- url: '/w/{workspace}/resources/list',
147
- path: {
148
- 'workspace': workspace,
149
- },
150
- query: {
151
- 'page': page,
152
- 'per_page': perPage,
153
- 'resource_type': resourceType,
154
- 'resource_type_exclude': resourceTypeExclude,
155
- },
156
- });
157
- }
158
- /**
159
- * list resources for search
160
- * @returns any resource list
161
- * @throws ApiError
162
- */
163
- static listSearchResource({ workspace, }) {
164
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
165
- method: 'GET',
166
- url: '/w/{workspace}/resources/list_search',
167
- path: {
168
- 'workspace': workspace,
169
- },
170
- });
171
- }
172
- /**
173
- * list resource names
174
- * @returns any resource list names
175
- * @throws ApiError
176
- */
177
- static listResourceNames({ workspace, name, }) {
178
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
179
- method: 'GET',
180
- url: '/w/{workspace}/resources/list_names/{name}',
181
- path: {
182
- 'workspace': workspace,
183
- 'name': name,
184
- },
185
- });
186
- }
187
- /**
188
- * create resource_type
189
- * @returns string resource_type created
190
- * @throws ApiError
191
- */
192
- static createResourceType({ workspace, requestBody, }) {
193
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
194
- method: 'POST',
195
- url: '/w/{workspace}/resources/type/create',
196
- path: {
197
- 'workspace': workspace,
198
- },
199
- body: requestBody,
200
- mediaType: 'application/json',
201
- });
202
- }
203
- /**
204
- * delete resource_type
205
- * @returns string resource_type deleted
206
- * @throws ApiError
207
- */
208
- static deleteResourceType({ workspace, path, }) {
209
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
210
- method: 'DELETE',
211
- url: '/w/{workspace}/resources/type/delete/{path}',
212
- path: {
213
- 'workspace': workspace,
214
- 'path': path,
215
- },
216
- });
217
- }
218
- /**
219
- * update resource_type
220
- * @returns string resource_type updated
221
- * @throws ApiError
222
- */
223
- static updateResourceType({ workspace, path, requestBody, }) {
224
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
225
- method: 'POST',
226
- url: '/w/{workspace}/resources/type/update/{path}',
227
- path: {
228
- 'workspace': workspace,
229
- 'path': path,
230
- },
231
- body: requestBody,
232
- mediaType: 'application/json',
233
- });
234
- }
235
- /**
236
- * get resource_type
237
- * @returns ResourceType resource_type deleted
238
- * @throws ApiError
239
- */
240
- static getResourceType({ workspace, path, }) {
241
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
242
- method: 'GET',
243
- url: '/w/{workspace}/resources/type/get/{path}',
244
- path: {
245
- 'workspace': workspace,
246
- 'path': path,
247
- },
248
- });
249
- }
250
- /**
251
- * does resource_type exists
252
- * @returns boolean does resource_type exist
253
- * @throws ApiError
254
- */
255
- static existsResourceType({ workspace, path, }) {
256
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
257
- method: 'GET',
258
- url: '/w/{workspace}/resources/type/exists/{path}',
259
- path: {
260
- 'workspace': workspace,
261
- 'path': path,
262
- },
263
- });
264
- }
265
- /**
266
- * list resource_types
267
- * @returns ResourceType resource_type list
268
- * @throws ApiError
269
- */
270
- static listResourceType({ workspace, }) {
271
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
272
- method: 'GET',
273
- url: '/w/{workspace}/resources/type/list',
274
- path: {
275
- 'workspace': workspace,
276
- },
277
- });
278
- }
279
- /**
280
- * list resource_types names
281
- * @returns string resource_type list
282
- * @throws ApiError
283
- */
284
- static listResourceTypeNames({ workspace, }) {
285
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
286
- method: 'GET',
287
- url: '/w/{workspace}/resources/type/listnames',
288
- path: {
289
- 'workspace': workspace,
290
- },
291
- });
292
- }
293
- /**
294
- * query resource types by similarity
295
- * @returns any resource type details
296
- * @throws ApiError
297
- */
298
- static queryResourceTypes({ workspace, text, limit, }) {
299
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
300
- method: 'GET',
301
- url: '/w/{workspace}/embeddings/query_resource_types',
302
- path: {
303
- 'workspace': workspace,
304
- },
305
- query: {
306
- 'text': text,
307
- 'limit': limit,
308
- },
309
- });
310
- }
311
- }
312
- exports.ResourceService = ResourceService;
@@ -1,149 +0,0 @@
1
- import type { EditSchedule } from '../models/EditSchedule';
2
- import type { NewSchedule } from '../models/NewSchedule';
3
- import type { Schedule } from '../models/Schedule';
4
- import type { ScheduleWJobs } from '../models/ScheduleWJobs';
5
- import type { CancelablePromise } from '../core/CancelablePromise';
6
- export declare class ScheduleService {
7
- /**
8
- * preview schedule
9
- * @returns string List of 5 estimated upcoming execution events (in UTC)
10
- * @throws ApiError
11
- */
12
- static previewSchedule({ requestBody, }: {
13
- /**
14
- * schedule
15
- */
16
- requestBody: {
17
- schedule: string;
18
- timezone: string;
19
- };
20
- }): CancelablePromise<Array<string>>;
21
- /**
22
- * create schedule
23
- * @returns string schedule created
24
- * @throws ApiError
25
- */
26
- static createSchedule({ workspace, requestBody, }: {
27
- workspace: string;
28
- /**
29
- * new schedule
30
- */
31
- requestBody: NewSchedule;
32
- }): CancelablePromise<string>;
33
- /**
34
- * update schedule
35
- * @returns string schedule updated
36
- * @throws ApiError
37
- */
38
- static updateSchedule({ workspace, path, requestBody, }: {
39
- workspace: string;
40
- path: string;
41
- /**
42
- * updated schedule
43
- */
44
- requestBody: EditSchedule;
45
- }): CancelablePromise<string>;
46
- /**
47
- * set enabled schedule
48
- * @returns string schedule enabled set
49
- * @throws ApiError
50
- */
51
- static setScheduleEnabled({ workspace, path, requestBody, }: {
52
- workspace: string;
53
- path: string;
54
- /**
55
- * updated schedule enable
56
- */
57
- requestBody: {
58
- enabled: boolean;
59
- };
60
- }): CancelablePromise<string>;
61
- /**
62
- * delete schedule
63
- * @returns string schedule deleted
64
- * @throws ApiError
65
- */
66
- static deleteSchedule({ workspace, path, }: {
67
- workspace: string;
68
- path: string;
69
- }): CancelablePromise<string>;
70
- /**
71
- * get schedule
72
- * @returns Schedule schedule deleted
73
- * @throws ApiError
74
- */
75
- static getSchedule({ workspace, path, }: {
76
- workspace: string;
77
- path: string;
78
- }): CancelablePromise<Schedule>;
79
- /**
80
- * does schedule exists
81
- * @returns boolean schedule exists
82
- * @throws ApiError
83
- */
84
- static existsSchedule({ workspace, path, }: {
85
- workspace: string;
86
- path: string;
87
- }): CancelablePromise<boolean>;
88
- /**
89
- * list schedules
90
- * @returns Schedule schedule list
91
- * @throws ApiError
92
- */
93
- static listSchedules({ workspace, page, perPage, args, path, isFlow, }: {
94
- workspace: string;
95
- /**
96
- * which page to return (start at 1, default 1)
97
- */
98
- page?: number;
99
- /**
100
- * number of items to return for a given page (default 30, max 100)
101
- */
102
- perPage?: number;
103
- /**
104
- * filter on jobs containing those args as a json subset (@> in postgres)
105
- */
106
- args?: string;
107
- /**
108
- * filter by path
109
- */
110
- path?: string;
111
- isFlow?: boolean;
112
- }): CancelablePromise<Array<Schedule>>;
113
- /**
114
- * list schedules with last 20 jobs
115
- * @returns ScheduleWJobs schedule list
116
- * @throws ApiError
117
- */
118
- static listSchedulesWithJobs({ workspace, page, perPage, }: {
119
- workspace: string;
120
- /**
121
- * which page to return (start at 1, default 1)
122
- */
123
- page?: number;
124
- /**
125
- * number of items to return for a given page (default 30, max 100)
126
- */
127
- perPage?: number;
128
- }): CancelablePromise<Array<ScheduleWJobs>>;
129
- /**
130
- * Set default error or recoevery handler
131
- * @returns any default error handler set
132
- * @throws ApiError
133
- */
134
- static setDefaultErrorOrRecoveryHandler({ workspace, requestBody, }: {
135
- workspace: string;
136
- /**
137
- * Handler description
138
- */
139
- requestBody: {
140
- handler_type: 'error' | 'recovery';
141
- override_existing: boolean;
142
- path?: string;
143
- extra_args?: Record<string, any>;
144
- number_of_occurence?: number;
145
- number_of_occurence_exact?: boolean;
146
- workspace_handler_muted?: boolean;
147
- };
148
- }): CancelablePromise<any>;
149
- }