@kestra-io/kestra-sdk 2.0.1 → 2.0.3

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 (188) hide show
  1. package/README.md +104 -12
  2. package/dist/Ai.gen-CbXnIJV5.d.ts +54 -0
  3. package/dist/AiAdmin.gen-Czash1qW.d.ts +30 -0
  4. package/dist/Apps.gen-c1lpg-nJ.d.ts +157 -0
  5. package/dist/Assets.gen-qX_xsApU.d.ts +102 -0
  6. package/dist/AuditLogs.gen-CSfyv3QM.d.ts +39 -0
  7. package/dist/Auths.gen-DQ9VtulX.d.ts +42 -0
  8. package/dist/{Banners.gen-4KOBOSkY.d.ts → Banners.gen-CD-77YMw.d.ts} +2 -2
  9. package/dist/Bindings.gen-D_z6cQzC.d.ts +36 -0
  10. package/dist/BlueprintTags.gen-DOe0sWXb.d.ts +18 -0
  11. package/dist/Blueprints.gen-DKQJKty2.d.ts +112 -0
  12. package/dist/Cases.gen-DAmvmwX5.d.ts +264 -0
  13. package/dist/CasesAdmin.gen-i86iM0BF.d.ts +36 -0
  14. package/dist/Cluster.gen-DJ7Wm9b6.d.ts +13 -0
  15. package/dist/Dashboards.gen-8t9tyM1X.d.ts +80 -0
  16. package/dist/DashboardsAdmin.gen-_oEOLPOk.d.ts +12 -0
  17. package/dist/Executions.gen-D6Z1AmqE.d.ts +374 -0
  18. package/dist/Expressions.gen-kcnNBpUs.d.ts +12 -0
  19. package/dist/Files.gen-BQiCdEgz.d.ts +66 -0
  20. package/dist/Groups.gen-Bz4q6OpE.d.ts +72 -0
  21. package/dist/Invitations.gen-BQLXU-OA.d.ts +37 -0
  22. package/dist/{KillSwitches.gen-DYX2j3BA.d.ts → KillSwitches.gen-DXajia4l.d.ts} +2 -2
  23. package/dist/Kv.gen-D_r215dZ.d.ts +42 -0
  24. package/dist/{LoginAdmin.gen-C9qXub43.d.ts → LoginAdmin.gen-DJWdL7r-.d.ts} +2 -2
  25. package/dist/Logs.gen-MkdIgniA.d.ts +42 -0
  26. package/dist/Mcp.gen-B1XjUIJO.d.ts +49 -0
  27. package/dist/Metrics.gen-M5DzASFu.d.ts +42 -0
  28. package/dist/Misc.gen-80PUHiSE.d.ts +132 -0
  29. package/dist/Namespaces.gen-DQSUIT_2.d.ts +78 -0
  30. package/dist/Notifications.gen-DgJ4EoeX.d.ts +12 -0
  31. package/dist/Outputs.gen-zYk_Mrxx.d.ts +28 -0
  32. package/dist/Plugins.gen-DeytuhpL.d.ts +69 -0
  33. package/dist/Policies.gen-CRkRfJFT.d.ts +142 -0
  34. package/dist/Promote.gen-CyDk4Zmj.d.ts +90 -0
  35. package/dist/Quotas.gen-BUfaJOOM.d.ts +18 -0
  36. package/dist/ReusableInputs.gen-DO1f4wJh.d.ts +24 -0
  37. package/dist/ReusableInputsAdmin.gen-B4ZgMFry.d.ts +24 -0
  38. package/dist/Roles.gen-DL-7yzRy.d.ts +48 -0
  39. package/dist/ScimConfiguration.gen-CIL8IYDs.d.ts +21 -0
  40. package/dist/{ScimGroups.gen-DYvChSKu.d.ts → ScimGroups.gen-DQ4f4XEJ.d.ts} +2 -2
  41. package/dist/{ScimUsers.gen-XDM5vHHF.d.ts → ScimUsers.gen-DmixvjbJ.d.ts} +2 -2
  42. package/dist/Secrets.gen-B9wPFgid.d.ts +12 -0
  43. package/dist/SecurityIntegrations.gen-BaYKYN-I.d.ts +60 -0
  44. package/dist/ServiceAccount.gen-D8YLbLqM.d.ts +91 -0
  45. package/dist/Services.gen-Dg2LdSdA.d.ts +10 -0
  46. package/dist/TenantAccess.gen-B98XDMPp.d.ts +30 -0
  47. package/dist/{TenantAccessAdmin.gen-DQW-cqxq.d.ts → TenantAccessAdmin.gen-DUebQ2mf.d.ts} +1 -1
  48. package/dist/Tenants.gen-CwZWMrHN.d.ts +33 -0
  49. package/dist/{TenantsAdmin.gen-Dwrs1oo2.d.ts → TenantsAdmin.gen-B9Tk3Hdf.d.ts} +2 -2
  50. package/dist/TestSuites.gen-CATAct_c.d.ts +92 -0
  51. package/dist/Triggers.gen-OzPSwXjg.d.ts +144 -0
  52. package/dist/Users.gen-EUsfHkzC.d.ts +67 -0
  53. package/dist/WorkerAuth.gen-Bgd7G8cj.d.ts +7 -0
  54. package/dist/WorkerAuthAdmin.gen-C2pqmRgm.d.ts +8 -0
  55. package/dist/WorkerGroups.gen-Ca0xjCST.d.ts +36 -0
  56. package/dist/WorkerQueues.gen-CkRxjt6v.d.ts +7 -0
  57. package/dist/WorkerQueuesAdmin.gen-DTZrudRC.d.ts +17 -0
  58. package/dist/ai-admin.d.ts +1 -1
  59. package/dist/ai-admin.js +1 -1
  60. package/dist/ai.d.ts +1 -1
  61. package/dist/ai.js +1 -1
  62. package/dist/all.d.ts +3421 -11
  63. package/dist/all.js +1217 -1201
  64. package/dist/apps.d.ts +1 -1
  65. package/dist/apps.js +1 -1
  66. package/dist/assets.d.ts +2 -2
  67. package/dist/assets.js +22 -2
  68. package/dist/audit-logs.d.ts +1 -1
  69. package/dist/audit-logs.js +1 -1
  70. package/dist/auths.d.ts +1 -1
  71. package/dist/auths.js +1 -1
  72. package/dist/banners.d.ts +1 -1
  73. package/dist/banners.js +1 -1
  74. package/dist/bindings.d.ts +1 -1
  75. package/dist/bindings.js +1 -1
  76. package/dist/blueprint-tags.d.ts +1 -1
  77. package/dist/blueprint-tags.js +1 -1
  78. package/dist/blueprints.d.ts +1 -1
  79. package/dist/blueprints.js +1 -1
  80. package/dist/cases-admin.d.ts +1 -1
  81. package/dist/cases-admin.js +1 -1
  82. package/dist/cases.d.ts +2 -2
  83. package/dist/cases.js +24 -2
  84. package/dist/client.d.ts +1 -1
  85. package/dist/cluster.d.ts +1 -1
  86. package/dist/cluster.js +1 -1
  87. package/dist/dashboards-admin.d.ts +1 -1
  88. package/dist/dashboards-admin.js +1 -1
  89. package/dist/dashboards.d.ts +1 -1
  90. package/dist/dashboards.js +1 -1
  91. package/dist/enterprise-only-routes.d.ts +2 -0
  92. package/dist/enterprise-only-routes.js +4 -0
  93. package/dist/enterpriseOnlyRoutes.gen-C_ZBbj1a.d.ts +4 -0
  94. package/dist/executions.d.ts +1 -1
  95. package/dist/executions.js +13 -4
  96. package/dist/expressions.d.ts +1 -1
  97. package/dist/expressions.js +1 -1
  98. package/dist/files.d.ts +1 -1
  99. package/dist/files.js +1 -1
  100. package/dist/flow-from-object-BkruoRK4.js +367 -0
  101. package/dist/flow-from-object-CYa9Cumm.d.ts +294 -0
  102. package/dist/flows.d.ts +2 -2
  103. package/dist/flows.js +2 -270
  104. package/dist/groups.d.ts +1 -1
  105. package/dist/groups.js +1 -1
  106. package/dist/index-B5w9tNy7.d.ts +101 -0
  107. package/dist/index.d.ts +3 -58
  108. package/dist/index.js +270 -25
  109. package/dist/invitations.d.ts +1 -1
  110. package/dist/invitations.js +1 -1
  111. package/dist/kill-switches.d.ts +1 -1
  112. package/dist/kill-switches.js +1 -1
  113. package/dist/kv.d.ts +1 -1
  114. package/dist/kv.js +1 -1
  115. package/dist/login-admin.d.ts +1 -1
  116. package/dist/login-admin.js +1 -1
  117. package/dist/logs.d.ts +1 -1
  118. package/dist/logs.js +1 -1
  119. package/dist/mcp.d.ts +1 -1
  120. package/dist/mcp.js +1 -1
  121. package/dist/metrics.d.ts +1 -1
  122. package/dist/metrics.js +1 -1
  123. package/dist/misc.d.ts +1 -1
  124. package/dist/misc.js +2 -5
  125. package/dist/namespaces.d.ts +1 -1
  126. package/dist/namespaces.js +2 -2
  127. package/dist/notifications.d.ts +1 -1
  128. package/dist/notifications.js +1 -1
  129. package/dist/outputs.d.ts +1 -1
  130. package/dist/outputs.js +1 -1
  131. package/dist/plugins.d.ts +1 -1
  132. package/dist/plugins.js +1 -1
  133. package/dist/policies.d.ts +1 -1
  134. package/dist/policies.js +6 -21
  135. package/dist/promote.d.ts +1 -1
  136. package/dist/promote.js +1 -1
  137. package/dist/quotas.d.ts +1 -1
  138. package/dist/quotas.js +1 -1
  139. package/dist/reusable-inputs-admin.d.ts +1 -1
  140. package/dist/reusable-inputs-admin.js +1 -1
  141. package/dist/reusable-inputs.d.ts +1 -1
  142. package/dist/reusable-inputs.js +1 -1
  143. package/dist/roles.d.ts +1 -1
  144. package/dist/roles.js +1 -1
  145. package/dist/scim-configuration.d.ts +1 -1
  146. package/dist/scim-configuration.js +1 -1
  147. package/dist/scim-groups.d.ts +1 -1
  148. package/dist/scim-groups.js +1 -1
  149. package/dist/scim-users.d.ts +1 -1
  150. package/dist/scim-users.js +1 -1
  151. package/dist/{sdk.gen-C2tIOMuW.js → sdk.gen-CimQCXb_.js} +217 -5
  152. package/dist/{sdk.gen-BtNjZbjt.d.ts → sdk.gen-DCDBMnCj.d.ts} +69 -14
  153. package/dist/secrets.d.ts +1 -1
  154. package/dist/secrets.js +1 -1
  155. package/dist/security-integrations.d.ts +1 -1
  156. package/dist/security-integrations.js +1 -1
  157. package/dist/service-account.d.ts +1 -1
  158. package/dist/service-account.js +2 -2
  159. package/dist/services.d.ts +1 -1
  160. package/dist/services.js +1 -1
  161. package/dist/tenant-access-admin.d.ts +1 -1
  162. package/dist/tenant-access-admin.js +1 -1
  163. package/dist/tenant-access.d.ts +1 -1
  164. package/dist/tenant-access.js +1 -1
  165. package/dist/tenants-admin.d.ts +1 -1
  166. package/dist/tenants-admin.js +1 -1
  167. package/dist/tenants.d.ts +2 -2
  168. package/dist/tenants.js +5 -2
  169. package/dist/test-suites.d.ts +1 -1
  170. package/dist/test-suites.js +1 -1
  171. package/dist/triggers.d.ts +1 -1
  172. package/dist/triggers.js +1 -1
  173. package/dist/{types.gen-z_AB2inl.d.ts → types.gen-BSBSS4tY.d.ts} +490 -106
  174. package/dist/users.d.ts +1 -1
  175. package/dist/users.js +1 -1
  176. package/dist/worker-auth-admin.d.ts +1 -1
  177. package/dist/worker-auth-admin.js +1 -1
  178. package/dist/worker-auth.d.ts +1 -1
  179. package/dist/worker-auth.js +1 -1
  180. package/dist/worker-groups.d.ts +1 -1
  181. package/dist/worker-groups.js +1 -1
  182. package/dist/worker-queues-admin.d.ts +1 -1
  183. package/dist/worker-queues-admin.js +1 -1
  184. package/dist/worker-queues.d.ts +1 -1
  185. package/dist/worker-queues.js +1 -1
  186. package/package.json +6 -4
  187. package/dist/index-CPjbMU9J.d.ts +0 -3066
  188. package/dist/rolldown-runtime-D7D4PA-g.js +0 -13
@@ -1,4 +1,4 @@
1
- import { $c as _5A35A529, Bu as _9Beb7Be, Co as _2B464742, Di as _070Ae25E8, Dt as _02C81F3Ac, Fi as _072B3D08b, Hr as _05978F079, Ja as _197Ff358, Ji as _076D036Df, Kn as _0472E2162, Kt as _0357D5B80, Nc as _536Eebf2, No as _2Eff59C2, Os as _3D8Cecc2, Pt as _02Fbc290f, Sr as _050C2E400, Ti as _06Fa01237, Tt as _02B0Ac8D1, Ul as _67A4E57c, Vi as _0752Adbc4, Wa as _18Dbd36b, Xn as _0486C8476, Xr as _05Ef057Dd, Xu as e446C08, Zc as _59F56586, _t as _027A6Da8, an as _039F8Ba95, bt as _028Ee38A7, du as _71B7280, ed as f43A000, f as _01263C155, fn as _03Cf4A0Ab, fs as _380C1616, fu as _72929E1b, gi as _069531B2c, gt as _0279E8381, hi as _06944349d, hu as _731Fd483, i as _0117D26A6, ic as _489E3513, ju as _7F56E7Dd, ko as _2D63137, kt as _02D1825F2, n as _010C1C295, nl as _5C16Ae66, nn as _038Dcaf51, p as _012672A53, qa as _191Cdebb, r as _011787999, ri as _063170190, rl as _5C609C5f, ts as _349D6C88, u as _011D2C367, vn as _04106F4E8, vu as _736327A7, wr as _051905136, xr as _050Bf82E9, xt as _0299Dd8Df, yt as _028Aeb63d, za as _15Bac3E0, zl as _66Dea7Aa } from "./sdk.gen-C2tIOMuW.js";
1
+ import { At as _02D1825F2, Cr as _050C2E400, Cu as _736327A7, Ei as _06Fa01237, Eo as _2B464742, Ft as _02Fbc290f, Hi as _0752Adbc4, Ii as _072B3D08b, Jl as _67A4E57c, Ka as _18Dbd36b, Ku as _9Beb7Be, Lo as _2Eff59C2, Lu as _7F56E7Dd, Ms as _3D8Cecc2, No as _2D63137, Oi as _070Ae25E8, Ot as _02C81F3Ac, Rc as _536Eebf2, Sr as _050Bf82E9, Tr as _051905136, Tt as _02B0Ac8D1, Ur as _05978F079, Va as _15Bac3E0, Wl as _66Dea7Aa, Xa as _197Ff358, Ya as _191Cdebb, Yi as _076D036Df, Zn as _0486C8476, Zr as _05Ef057Dd, _i as _069531B2c, _t as _027A6Da8, _u as _72929E1b, as as _349D6C88, bt as _028Ee38A7, bu as _731Fd483, cc as _489E3513, cl as _5C609C5f, f as _01263C155, gi as _06944349d, gs as _380C1616, gt as _0279E8381, gu as _71B7280, i as _0117D26A6, ii as _063170190, il as _5A35A529, n as _010C1C295, nd as e446C08, nl as _59F56586, od as f43A000, on as _039F8Ba95, p as _012672A53, pn as _03Cf4A0Ab, qn as _0472E2162, qt as _0357D5B80, r as _011787999, rn as _038Dcaf51, sl as _5C16Ae66, u as _011D2C367, xt as _0299Dd8Df, yn as _04106F4E8, yt as _028Aeb63d } from "./sdk.gen-CimQCXb_.js";
2
2
  import { addTenantToParameters, getDataOrThrow, resolveTenant } from "./shared.js";
3
3
  //#region src/openapi/sdk/Executions.gen.ts
4
4
  /**
@@ -290,7 +290,10 @@ function restartExecution(parameters, options) {
290
290
  * Resume a paused execution.
291
291
  */
292
292
  function resumeExecution(parameters, options) {
293
- return getDataOrThrow(_039F8Ba95(addTenantToParameters(parameters), options));
293
+ return getDataOrThrow(_039F8Ba95(addTenantToParameters({
294
+ body: [],
295
+ ...parameters
296
+ }), options));
294
297
  }
295
298
  /**
296
299
  * Resume an execution from a breakpoint (in the 'BREAKPOINT' state).
@@ -302,7 +305,10 @@ function resumeExecutionFromBreakpoint(parameters, options) {
302
305
  * Validate inputs to resume a paused execution.
303
306
  */
304
307
  function validateResumeExecutionInputs(parameters, options) {
305
- return getDataOrThrow(_9Beb7Be(addTenantToParameters(parameters), options));
308
+ return getDataOrThrow(_9Beb7Be(addTenantToParameters({
309
+ body: [],
310
+ ...parameters
311
+ }), options));
306
312
  }
307
313
  /**
308
314
  * Change state for a taskrun in an execution
@@ -375,7 +381,10 @@ function createExecution(parameters, options) {
375
381
  * Validate the creation of a new execution for a flow
376
382
  */
377
383
  function validateNewExecutionInputs(parameters, options) {
378
- return getDataOrThrow(_050Bf82E9(addTenantToParameters(parameters), options));
384
+ return getDataOrThrow(_050Bf82E9(addTenantToParameters({
385
+ body: [],
386
+ ...parameters
387
+ }), options));
379
388
  }
380
389
  //#endregion
381
390
  export { createExecution, deleteExecution, deleteExecutionsByIds, deleteExecutionsByQuery, downloadFileFromExecution, evalExpression, evalTaskRunExpression, execution, executionAverageDuration, executionFlowGraph, exportExecutions, fileMetadatasFromExecution, findDistinctFieldValues, flowFromExecution, flowFromExecutionById, followDependenciesExecutions, followExecution, forceRunByIds, forceRunExecution, forceRunExecutionsByQuery, killExecution, killExecutionsByIds, killExecutionsByQuery, latestExecutions, listExecutableDistinctNamespaces, listFlowExecutionsByNamespace, pauseExecution, pauseExecutionsByIds, pauseExecutionsByQuery, previewFileFromExecution, replayExecution, replayExecutionWithinputs, replayExecutionsByIds, replayExecutionsByQuery, restartExecution, restartExecutionsByIds, restartExecutionsByQuery, resumeExecution, resumeExecutionFromBreakpoint, resumeExecutionsByIds, resumeExecutionsByQuery, searchExecutions, searchExecutionsByFlowId, setLabelsOnTerminatedExecution, setLabelsOnTerminatedExecutionsByIds, setLabelsOnTerminatedExecutionsByQuery, triggerExecutionByGetWebhook, triggerExecutionByGetWebhookWithPath, triggerExecutionByPostWebhook, triggerExecutionByPostWebhookWithPath, triggerExecutionByPutWebhook, triggerExecutionByPutWebhookWithPath, unqueueExecution, unqueueExecutionsByIds, unqueueExecutionsByQuery, updateExecutionStatus, updateExecutionsStatusByIds, updateExecutionsStatusByQuery, updateTaskRunState, validateNewExecutionInputs, validateResumeExecutionInputs };
@@ -1,2 +1,2 @@
1
- import { ko as renderExpressions } from "./index-CPjbMU9J.js";
1
+ import { t as renderExpressions } from "./Expressions.gen-kcnNBpUs.js";
2
2
  export { renderExpressions };
@@ -1,4 +1,4 @@
1
- import { er as _04A36929b } from "./sdk.gen-C2tIOMuW.js";
1
+ import { tr as _04A36929b } from "./sdk.gen-CimQCXb_.js";
2
2
  import { getDataOrThrow, resolveTenant } from "./shared.js";
3
3
  //#region src/openapi/sdk/Expressions.gen.ts
4
4
  /**
package/dist/files.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Co as fileContent, Do as moveFileDirectory, Eo as listNamespaceDirectoryFiles, Oo as searchNamespaceFiles, So as exportNamespaceFiles, To as fileRevisions, bo as createNamespaceFile, wo as fileMetadatas, xo as deleteFileDirectory, yo as createNamespaceDirectory } from "./index-CPjbMU9J.js";
1
+ import { a as fileContent, c as listNamespaceDirectoryFiles, i as exportNamespaceFiles, l as moveFileDirectory, n as createNamespaceFile, o as fileMetadatas, r as deleteFileDirectory, s as fileRevisions, t as createNamespaceDirectory, u as searchNamespaceFiles } from "./Files.gen-BQiCdEgz.js";
2
2
  export { createNamespaceDirectory, createNamespaceFile, deleteFileDirectory, exportNamespaceFiles, fileContent, fileMetadatas, fileRevisions, listNamespaceDirectoryFiles, moveFileDirectory, searchNamespaceFiles };
package/dist/files.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Au as _7D6E2400, Lc as _54C4A1Db, Ni as _07288D39a, Pr as _0561C0Ca3, Rr as _057D73E5c, Us as _4157Eab0, Wi as _075B6Dc39, ca as _08E52624, ci as _066857Ef8, jc as _5233556e } from "./sdk.gen-C2tIOMuW.js";
1
+ import { Fr as _0561C0Ca3, Gi as _075B6Dc39, Hc as _54C4A1Db, Ic as _5233556e, Iu as _7D6E2400, Pi as _07288D39a, la as _08E52624, li as _066857Ef8, qs as _4157Eab0, zr as _057D73E5c } from "./sdk.gen-CimQCXb_.js";
2
2
  import { addTenantToParameters, getDataOrThrow } from "./shared.js";
3
3
  //#region src/openapi/sdk/Files.gen.ts
4
4
  /**
@@ -0,0 +1,367 @@
1
+ import { $l as _69272D79, Aa as _0Fe49766, Ai as _0715460C9, Ea as _0Ec51319, Fu as _7D0E1E4, Gc as _562B4060, Ho as _30012e, Hr as _0593C8Eb9, Ht as _032E9A671, It as _030A1703e, Ji as _07628391b, Ju as ae43B0, Kc as _5662Ec9d, Lt as _030B1A670, Mc as _5196384a, Mr as _0553D009, Nl as _62Bef13d, Ns as _3De59Ebf, Qn as _0494596B6, Ws as _407247Bb, Yc as _579848F4, Ys as _41A7Bacb, Z as _02187E7C3, Zu as d5Ff138, _c as _4Cc20E8d, do as _2240B4C9, fi as _067435Ac4, ht as _026A7705, ia as _07E3Fae4f, id as e83C44b, io as _1F4344F1, ji as _0715B9840, lu as _6C34C66c, ol as _5B713B0f, qu as a76C0Db, s as _011A9De69, xn as _0416C0289, yi as _06B60682e, zc as _541Dca5a, zu as _7Fe54Fe8 } from "./sdk.gen-CimQCXb_.js";
2
+ import { addTenantToParameters, getDataOrThrow, resolveTenant } from "./shared.js";
3
+ import { Document, Scalar, visit } from "yaml";
4
+ //#region \0rolldown/runtime.js
5
+ var __defProp = Object.defineProperty;
6
+ var __exportAll = (all, no_symbols) => {
7
+ let target = {};
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
13
+ return target;
14
+ };
15
+ //#endregion
16
+ //#region src/openapi/sdk/Flows.gen.ts
17
+ /**
18
+ * Search for flow concurrency limits
19
+ */
20
+ function searchConcurrencyLimitsAsInstanceOwner(parameters, options) {
21
+ return getDataOrThrow(_2240B4C9(addTenantToParameters(parameters), options));
22
+ }
23
+ /**
24
+ * Get the concurrency limit of a flow
25
+ */
26
+ function concurrencyLimit(parameters, options) {
27
+ return getDataOrThrow(_7Fe54Fe8(addTenantToParameters(parameters), options));
28
+ }
29
+ /**
30
+ * Update a flow concurrency limit
31
+ */
32
+ function updateConcurrencyLimitAsInstanceOwner(parameters, options) {
33
+ return getDataOrThrow(_026A7705({
34
+ ...parameters,
35
+ tenant: resolveTenant(parameters?.tenant),
36
+ concurrencyLimit: parameters
37
+ }, options));
38
+ }
39
+ /**
40
+ * Create a flow from yaml source
41
+ */
42
+ function createFlow(parameters, options) {
43
+ return getDataOrThrow(_5196384a(addTenantToParameters(parameters), options));
44
+ }
45
+ /**
46
+ * Update from multiples yaml sources
47
+ */
48
+ function bulkUpdateFlows(parameters, options) {
49
+ return getDataOrThrow(_0494596B6(addTenantToParameters(parameters), options));
50
+ }
51
+ /**
52
+ * Delete flows by their IDs.
53
+ */
54
+ function deleteFlowsByIds(parameters, options) {
55
+ return getDataOrThrow(_0Ec51319(addTenantToParameters(parameters), options));
56
+ }
57
+ /**
58
+ * Delete flows returned by the query parameters.
59
+ */
60
+ function deleteFlowsByQuery(parameters, options) {
61
+ return getDataOrThrow(_0715460C9(addTenantToParameters(parameters), options));
62
+ }
63
+ /**
64
+ * List flows containing deprecated tasks
65
+ */
66
+ function listDeprecated(parameters, options) {
67
+ return getDataOrThrow(_1F4344F1(addTenantToParameters(parameters), options));
68
+ }
69
+ /**
70
+ * Disable flows by their IDs.
71
+ */
72
+ function disableFlowsByIds(parameters, options) {
73
+ return getDataOrThrow(_7D0E1E4(addTenantToParameters(parameters), options));
74
+ }
75
+ /**
76
+ * Disable flows returned by the query parameters.
77
+ */
78
+ function disableFlowsByQuery(parameters, options) {
79
+ return getDataOrThrow(_579848F4(addTenantToParameters(parameters), options));
80
+ }
81
+ /**
82
+ * List all distinct namespaces
83
+ */
84
+ function listDistinctNamespaces(parameters, options) {
85
+ return getDataOrThrow(_06B60682e(addTenantToParameters(parameters), options));
86
+ }
87
+ /**
88
+ * Enable flows by their IDs.
89
+ */
90
+ function enableFlowsByIds(parameters, options) {
91
+ return getDataOrThrow(_3De59Ebf(addTenantToParameters(parameters), options));
92
+ }
93
+ /**
94
+ * Enable flows returned by the query parameters.
95
+ */
96
+ function enableFlowsByQuery(parameters, options) {
97
+ return getDataOrThrow(_5B713B0f(addTenantToParameters(parameters), options));
98
+ }
99
+ /**
100
+ * Export flows as a ZIP archive of yaml sources.
101
+ */
102
+ function exportFlowsByIds(parameters, options) {
103
+ return getDataOrThrow(ae43B0(addTenantToParameters(parameters), options));
104
+ }
105
+ /**
106
+ * Export flows as a ZIP archive of yaml sources.
107
+ */
108
+ function exportFlowsByQuery(parameters, options) {
109
+ return getDataOrThrow(_0715B9840(addTenantToParameters(parameters), options));
110
+ }
111
+ /**
112
+ * Export all flows as a streamed CSV file
113
+ */
114
+ function exportFlows(parameters, options) {
115
+ return getDataOrThrow(_07E3Fae4f(addTenantToParameters(parameters), options));
116
+ }
117
+ /**
118
+ * Get available Pebble expressions for a flow
119
+ */
120
+ function expressions(parameters, options) {
121
+ return getDataOrThrow(a76C0Db(addTenantToParameters(parameters), options));
122
+ }
123
+ /**
124
+ * Generate a graph for a flow source
125
+ */
126
+ function generateFlowGraphFromSource(parameters, options) {
127
+ return getDataOrThrow(_030B1A670(addTenantToParameters(parameters), options));
128
+ }
129
+ /**
130
+ * Batch-compute source hashes for flows by id (drift detection)
131
+ */
132
+ function flowHashesByIds(parameters, options) {
133
+ return getDataOrThrow(_0553D009(addTenantToParameters(parameters), options));
134
+ }
135
+ /**
136
+ * Import flows as a ZIP archive of yaml sources or a multi-objects YAML file.
137
+ * When sending a Yaml that contains one or more flows, a list of index is returned.
138
+ * When sending a ZIP archive, a list of files that couldn't be imported is returned.
139
+ *
140
+ */
141
+ function importFlows(parameters, options) {
142
+ return getDataOrThrow(_562B4060(addTenantToParameters(parameters), options));
143
+ }
144
+ /**
145
+ * Preview the governance policy effects (mutations + violations) on a flow source
146
+ */
147
+ function previewPolicies(parameters, options) {
148
+ return getDataOrThrow(d5Ff138({
149
+ tenant: resolveTenant(parameters?.tenant),
150
+ policyPreviewRequest: parameters
151
+ }, options));
152
+ }
153
+ /**
154
+ * Search for flows
155
+ */
156
+ function searchFlows(parameters, options) {
157
+ return getDataOrThrow(_02187E7C3(addTenantToParameters(parameters), options));
158
+ }
159
+ /**
160
+ * Search for flows source code
161
+ */
162
+ function searchFlowsBySourceCode(parameters, options) {
163
+ return getDataOrThrow(_067435Ac4(addTenantToParameters(parameters), options));
164
+ }
165
+ /**
166
+ * Apply a Source Search replace-all operation
167
+ */
168
+ function applyReplaceBySourceCode(parameters, options) {
169
+ return getDataOrThrow(_07628391b({
170
+ tenant: resolveTenant(parameters?.tenant),
171
+ sourceSearchReplaceApplyRequest: parameters
172
+ }, options));
173
+ }
174
+ /**
175
+ * Apply a Source Search replace on a single match line
176
+ */
177
+ function replaceLineBySourceCode(parameters, options) {
178
+ return getDataOrThrow(_0593C8Eb9({
179
+ tenant: resolveTenant(parameters?.tenant),
180
+ sourceSearchReplaceLineRequest: parameters
181
+ }, options));
182
+ }
183
+ /**
184
+ * Preview a Source Search replace-all operation
185
+ */
186
+ function previewReplaceBySourceCode(parameters, options) {
187
+ return getDataOrThrow(e83C44b({
188
+ tenant: resolveTenant(parameters?.tenant),
189
+ sourceSearchReplacePreviewRequest: parameters
190
+ }, options));
191
+ }
192
+ /**
193
+ * Validate a list of flows
194
+ */
195
+ function validateFlows(parameters, options) {
196
+ return getDataOrThrow(_032E9A671(addTenantToParameters(parameters), options));
197
+ }
198
+ /**
199
+ * Validate a task
200
+ */
201
+ function validateTask(parameters, options) {
202
+ return getDataOrThrow(_407247Bb(addTenantToParameters(parameters), options));
203
+ }
204
+ /**
205
+ * Validate trigger
206
+ */
207
+ function validateTrigger(parameters, options) {
208
+ return getDataOrThrow(_030A1703e(addTenantToParameters(parameters), options));
209
+ }
210
+ /**
211
+ * Retrieve all flows from a given namespace
212
+ */
213
+ function listFlowsByNamespace(parameters, options) {
214
+ return getDataOrThrow(_62Bef13d(addTenantToParameters(parameters), options));
215
+ }
216
+ /**
217
+ * Update a complete namespace from yaml source
218
+ */
219
+ function updateFlowsInNamespace(parameters, options) {
220
+ return getDataOrThrow(_541Dca5a(addTenantToParameters(parameters), options));
221
+ }
222
+ /**
223
+ * Delete a flow
224
+ */
225
+ function deleteFlow(parameters, options) {
226
+ return getDataOrThrow(_69272D79(addTenantToParameters(parameters), options));
227
+ }
228
+ /**
229
+ * Get a flow
230
+ */
231
+ function flow(parameters, options) {
232
+ return getDataOrThrow(_30012e(addTenantToParameters(parameters), options));
233
+ }
234
+ /**
235
+ * Update a flow
236
+ */
237
+ function updateFlow(parameters, options) {
238
+ return getDataOrThrow(_011A9De69(addTenantToParameters(parameters), options));
239
+ }
240
+ /**
241
+ * Get flow dependencies
242
+ */
243
+ function flowDependencies(parameters, options) {
244
+ return getDataOrThrow(_0416C0289(addTenantToParameters(parameters), options));
245
+ }
246
+ /**
247
+ * Generate a graph for a flow
248
+ */
249
+ function generateFlowGraph(parameters, options) {
250
+ return getDataOrThrow(_41A7Bacb(addTenantToParameters(parameters), options));
251
+ }
252
+ /**
253
+ * Delete revisions for a flow
254
+ */
255
+ function deleteRevisions(parameters, options) {
256
+ return getDataOrThrow(_4Cc20E8d(addTenantToParameters(parameters), options));
257
+ }
258
+ /**
259
+ * Get revisions for a flow
260
+ */
261
+ function listFlowRevisions(parameters, options) {
262
+ return getDataOrThrow(_6C34C66c(addTenantToParameters(parameters), options));
263
+ }
264
+ /**
265
+ * Get a flow task
266
+ */
267
+ function taskFromFlow(parameters, options) {
268
+ return getDataOrThrow(_5662Ec9d(addTenantToParameters(parameters), options));
269
+ }
270
+ /**
271
+ * Retrieve flow dependencies
272
+ */
273
+ function flowDependenciesFromNamespace(parameters, options) {
274
+ return getDataOrThrow(_0Fe49766(addTenantToParameters(parameters), options));
275
+ }
276
+ //#endregion
277
+ //#region src/flow-from-object.ts
278
+ var flow_from_object_exports = /* @__PURE__ */ __exportAll({
279
+ createFlowFromObject: () => createFlowFromObject,
280
+ flowToYaml: () => flowToYaml,
281
+ updateFlowFromObject: () => updateFlowFromObject
282
+ });
283
+ /**
284
+ * Read-only / server-managed flow fields that must never appear in a flow
285
+ * *source* body. `draft` is a query parameter, not a body field.
286
+ */
287
+ const SERVER_MANAGED_FLOW_FIELDS = [
288
+ "deleted",
289
+ "revision",
290
+ "draft",
291
+ "tenantId",
292
+ "source",
293
+ "updated"
294
+ ];
295
+ /**
296
+ * Serialize a flow object to a YAML source string (block style, no anchors,
297
+ * `null` fields omitted). Kestra expressions like `{{ inputs.foo }}` are quoted
298
+ * by the YAML emitter and multi-line strings become literal block scalars.
299
+ * Server-managed top-level fields are stripped so the YAML mirrors what a user
300
+ * writes as flow source.
301
+ */
302
+ function flowToYaml(flow) {
303
+ if (flow === null || flow === void 0) throw new TypeError("flow must not be null or undefined");
304
+ const source = { ...flow };
305
+ for (const field of SERVER_MANAGED_FLOW_FIELDS) delete source[field];
306
+ const doc = new Document(source, (_key, value) => value === null ? void 0 : value, { aliasDuplicateObjects: false });
307
+ visit(doc, { Scalar(_key, node) {
308
+ if (typeof node.value === "string" && !node.value.includes("\n") && isAmbiguousYamlString(node.value)) node.type = Scalar.QUOTE_DOUBLE;
309
+ } });
310
+ return doc.toString({ lineWidth: 0 });
311
+ }
312
+ /** Plain scalars some YAML reader resolves to a boolean or null (case-insensitive). */
313
+ const AMBIGUOUS_YAML_WORDS = new Set([
314
+ "",
315
+ "~",
316
+ "null",
317
+ "y",
318
+ "yes",
319
+ "n",
320
+ "no",
321
+ "true",
322
+ "false",
323
+ "on",
324
+ "off"
325
+ ]);
326
+ /**
327
+ * Strings a YAML 1.1 / 1.2 or Jackson reader may resolve to a number or
328
+ * timestamp: signed ints/floats with underscores and exponents (with or without
329
+ * a dot or exponent sign), hex/octal/binary, .inf/.nan, sexagesimal (12:30) and
330
+ * dates. Deliberately permissive: quoting a string that did not need it is
331
+ * harmless, leaving one plain is not. Same predicate as the Python/Go/Java SDKs,
332
+ * pinned by test-utils/yaml-ambiguous-strings.json.
333
+ */
334
+ const AMBIGUOUS_YAML_SCALAR = /* @__PURE__ */ new RegExp("^[-+]?(0x[0-9a-f_]+|0o[0-7_]+|0b[01_]+|[0-9][0-9_]*(\\.[0-9_]*)?(e[-+]?[0-9_]+)?|\\.[0-9][0-9_]*(e[-+]?[0-9_]+)?|\\.(inf|nan)|[0-9][0-9_]*(:[0-5]?[0-9])+(\\.[0-9_]*)?)$|^[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}", "i");
335
+ function isAmbiguousYamlString(value) {
336
+ return AMBIGUOUS_YAML_WORDS.has(value.toLowerCase()) || AMBIGUOUS_YAML_SCALAR.test(value);
337
+ }
338
+ /**
339
+ * Create a flow from a native object (typed {@link Flow} model or plain object).
340
+ *
341
+ * The flow-write endpoint is YAML-only (it does not accept JSON), so the object
342
+ * is serialized to a YAML source string client-side and delegated to the
343
+ * generated `createFlow`. `draft` stays a query parameter, not a body field.
344
+ */
345
+ function createFlowFromObject(parameters, options) {
346
+ const { flow, ...rest } = parameters;
347
+ return createFlow({
348
+ ...rest,
349
+ body: flowToYaml(flow)
350
+ }, options);
351
+ }
352
+ /**
353
+ * Update a flow from a native object (typed {@link Flow} model or plain object).
354
+ *
355
+ * The object is serialized to a YAML source string client-side (the write
356
+ * endpoint is YAML-only) and delegated to the generated `updateFlow`. `draft`
357
+ * stays a query parameter, not a body field.
358
+ */
359
+ function updateFlowFromObject(parameters, options) {
360
+ const { flow, ...rest } = parameters;
361
+ return updateFlow({
362
+ ...rest,
363
+ body: flowToYaml(flow)
364
+ }, options);
365
+ }
366
+ //#endregion
367
+ export { listFlowRevisions as A, updateFlow as B, flowDependenciesFromNamespace as C, importFlows as D, generateFlowGraphFromSource as E, searchConcurrencyLimitsAsInstanceOwner as F, __exportAll as G, validateFlows as H, searchFlows as I, searchFlowsBySourceCode as L, previewPolicies as M, previewReplaceBySourceCode as N, listDeprecated as O, replaceLineBySourceCode as P, taskFromFlow as R, flowDependencies as S, generateFlowGraph as T, validateTask as U, updateFlowsInNamespace as V, validateTrigger as W, exportFlows as _, applyReplaceBySourceCode as a, expressions as b, createFlow as c, deleteFlowsByQuery as d, deleteRevisions as f, enableFlowsByQuery as g, enableFlowsByIds as h, updateFlowFromObject as i, listFlowsByNamespace as j, listDistinctNamespaces as k, deleteFlow as l, disableFlowsByQuery as m, flowToYaml as n, bulkUpdateFlows as o, disableFlowsByIds as p, flow_from_object_exports as r, concurrencyLimit as s, createFlowFromObject as t, deleteFlowsByIds as u, exportFlowsByIds as v, flowHashesByIds as w, flow as x, exportFlowsByQuery as y, updateConcurrencyLimitAsInstanceOwner as z };