@kestra-io/kestra-sdk 2.0.1 → 2.0.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 (188) hide show
  1. package/README.md +104 -12
  2. package/dist/Ai.gen--rKF8Qf5.d.ts +54 -0
  3. package/dist/AiAdmin.gen-BIR4eNgZ.d.ts +30 -0
  4. package/dist/Apps.gen-BqubzTRF.d.ts +157 -0
  5. package/dist/Assets.gen-DIzY6Tm2.d.ts +102 -0
  6. package/dist/AuditLogs.gen-nAem0Cy6.d.ts +39 -0
  7. package/dist/Auths.gen-DLDwlEsE.d.ts +42 -0
  8. package/dist/{Banners.gen-4KOBOSkY.d.ts → Banners.gen-e0HHbnSf.d.ts} +2 -2
  9. package/dist/Bindings.gen-Q0JXlAH-.d.ts +36 -0
  10. package/dist/BlueprintTags.gen-C6ktyk5W.d.ts +18 -0
  11. package/dist/Blueprints.gen-6hHpfbVq.d.ts +112 -0
  12. package/dist/Cases.gen-DgvI88ve.d.ts +246 -0
  13. package/dist/CasesAdmin.gen-DDxiJyKp.d.ts +36 -0
  14. package/dist/Cluster.gen-DVrp3X7k.d.ts +13 -0
  15. package/dist/Dashboards.gen-1XIKOm-m.d.ts +80 -0
  16. package/dist/DashboardsAdmin.gen-D6nUobjU.d.ts +12 -0
  17. package/dist/Executions.gen-YpDDV1xm.d.ts +374 -0
  18. package/dist/Expressions.gen-BOr6l06_.d.ts +12 -0
  19. package/dist/Files.gen-Ck5kAB-X.d.ts +66 -0
  20. package/dist/Groups.gen-CSf79gJt.d.ts +72 -0
  21. package/dist/Invitations.gen-CqJh2qF3.d.ts +37 -0
  22. package/dist/{KillSwitches.gen-DYX2j3BA.d.ts → KillSwitches.gen-Dz-QAjn1.d.ts} +2 -2
  23. package/dist/Kv.gen-Bji8BGtY.d.ts +42 -0
  24. package/dist/{LoginAdmin.gen-C9qXub43.d.ts → LoginAdmin.gen-DZn4JSXi.d.ts} +2 -2
  25. package/dist/Logs.gen-DQWS8XMg.d.ts +42 -0
  26. package/dist/Mcp.gen-CFTNfNtn.d.ts +49 -0
  27. package/dist/Metrics.gen-InF3TYN0.d.ts +42 -0
  28. package/dist/Misc.gen-BYpr9phU.d.ts +132 -0
  29. package/dist/Namespaces.gen-BFscn7y9.d.ts +78 -0
  30. package/dist/Notifications.gen-CC7Hhx-x.d.ts +12 -0
  31. package/dist/Outputs.gen-Cl5Eo3oS.d.ts +28 -0
  32. package/dist/Plugins.gen-CZFsDbgQ.d.ts +69 -0
  33. package/dist/Policies.gen-B3uNaqc6.d.ts +142 -0
  34. package/dist/Promote.gen-BJtdf605.d.ts +90 -0
  35. package/dist/Quotas.gen-DHqZQQMI.d.ts +18 -0
  36. package/dist/ReusableInputs.gen-DE8h03fZ.d.ts +24 -0
  37. package/dist/ReusableInputsAdmin.gen-CgaKjhhI.d.ts +24 -0
  38. package/dist/Roles.gen-4eqeWo4f.d.ts +48 -0
  39. package/dist/ScimConfiguration.gen-AvlTEQqy.d.ts +21 -0
  40. package/dist/{ScimGroups.gen-DYvChSKu.d.ts → ScimGroups.gen-BYo59KTQ.d.ts} +2 -2
  41. package/dist/{ScimUsers.gen-XDM5vHHF.d.ts → ScimUsers.gen-DPbjpoE0.d.ts} +2 -2
  42. package/dist/Secrets.gen-D0gqCCPR.d.ts +12 -0
  43. package/dist/SecurityIntegrations.gen-UQD7Z9dH.d.ts +60 -0
  44. package/dist/ServiceAccount.gen-B2J1_RJh.d.ts +91 -0
  45. package/dist/Services.gen-BuGR7Yjk.d.ts +10 -0
  46. package/dist/TenantAccess.gen-DJjhqqxv.d.ts +30 -0
  47. package/dist/{TenantAccessAdmin.gen-DQW-cqxq.d.ts → TenantAccessAdmin.gen-ColEHdKm.d.ts} +1 -1
  48. package/dist/Tenants.gen-DXIBszMy.d.ts +33 -0
  49. package/dist/{TenantsAdmin.gen-Dwrs1oo2.d.ts → TenantsAdmin.gen-kSTjqZNp.d.ts} +2 -2
  50. package/dist/TestSuites.gen-C7EdmZDf.d.ts +92 -0
  51. package/dist/Triggers.gen--Qkw4ERo.d.ts +144 -0
  52. package/dist/Users.gen-BeRreH1s.d.ts +67 -0
  53. package/dist/WorkerAuth.gen--roqj_9q.d.ts +7 -0
  54. package/dist/WorkerAuthAdmin.gen-Dp_oDKPg.d.ts +8 -0
  55. package/dist/WorkerGroups.gen-DiBc6luB.d.ts +36 -0
  56. package/dist/WorkerQueues.gen-Ci7lo36K.d.ts +7 -0
  57. package/dist/WorkerQueuesAdmin.gen-B5FrTgQV.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 +3399 -11
  63. package/dist/all.js +1210 -1200
  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 +1 -1
  83. package/dist/cases.js +1 -1
  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_uAW4dS.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-QRQgo2C4.d.ts +294 -0
  101. package/dist/flow-from-object-p045taB2.js +367 -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-Df3oXFWk.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-D0N05hnd.js} +104 -5
  152. package/dist/{sdk.gen-BtNjZbjt.d.ts → sdk.gen-DtyzJiuU.d.ts} +39 -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-DVT5DQ0q.d.ts} +337 -105
  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
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-Ck5kAB-X.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 { Nc as _5233556e, Ni as _07288D39a, Nu as _7D6E2400, Pr as _0561C0Ca3, Rr as _057D73E5c, Wi as _075B6Dc39, Ws as _4157Eab0, ca as _08E52624, ci as _066857Ef8, zc as _54C4A1Db } from "./sdk.gen-D0N05hnd.js";
2
2
  import { addTenantToParameters, getDataOrThrow } from "./shared.js";
3
3
  //#region src/openapi/sdk/Files.gen.ts
4
4
  /**
@@ -0,0 +1,294 @@
1
+ import { $B as PagedResultsConcurrencyLimit, CE as Flow, DD as FlowTopologyGraph, Det as ValidateConstraintViolation, FE as FlowControllerFlowWithDeprecatedTasks, Jw as ExpressionContext, Lt as ApiFlowHashesResponse, MD as FlowWithSource, RW as PolicyPreviewRequest, Z2 as Task, d2 as SourceSearchReplacePreviewRequest, f2 as SourceSearchReplacePreviewResponse, fD as FlowGraph, fo as BulkResponse, o2 as SourceSearchReplaceApplyRequest, s2 as SourceSearchReplaceApplyResponse, tV as PagedResultsFlow, u2 as SourceSearchReplaceLineRequest, xD as FlowInterface, yV as PagedResultsSourceSearchResult, zW as PolicyPreviewResponse, zs as ConcurrencyLimit } from "./types.gen-DVT5DQ0q.js";
2
+ import { Aa as _0Fe49766, Ac as _5196384a, Ai as _0715460C9, Bo as _30012e, Ea as _0Ec51319, Gu as a76C0Db, Hr as _0593C8Eb9, Hs as _407247Bb, Ht as _032E9A671, It as _030A1703e, Ji as _07628391b, Ku as ae43B0, Lc as _541Dca5a, Lt as _030B1A670, Lu as _7Fe54Fe8, Mr as _0553D009, Nu as _7D0E1E4, Q as _02187E7C3, Qn as _0494596B6, Uc as _562B4060, Wc as _5662Ec9d, Yu as d5Ff138, Zl as _69272D79, c as _011A9De69, do as _2240B4C9, fi as _067435Ac4, gt as _026A7705, hc as _4Cc20E8d, ia as _07E3Fae4f, il as _5B713B0f, io as _1F4344F1, ji as _0715B9840, jl as _62Bef13d, js as _3De59Ebf, nd as e83C44b, qc as _579848F4, qs as _41A7Bacb, su as _6C34C66c, xn as _0416C0289, yi as _06B60682e } from "./sdk.gen-DtyzJiuU.js";
3
+ //#region src/openapi/sdk/Flows.gen.d.ts
4
+ /**
5
+ * Search for flow concurrency limits
6
+ */
7
+ declare function searchConcurrencyLimitsAsInstanceOwner(parameters?: Omit<Parameters<typeof _2240B4C9>[0], 'tenant'> & {
8
+ tenant?: string;
9
+ }, options?: Omit<Parameters<typeof _2240B4C9>[1], 'throwOnError'>): Promise<PagedResultsConcurrencyLimit>;
10
+ /**
11
+ * Get the concurrency limit of a flow
12
+ */
13
+ declare function concurrencyLimit(parameters: Omit<Parameters<typeof _7Fe54Fe8>[0], 'tenant'> & {
14
+ tenant?: string;
15
+ }, options?: Omit<Parameters<typeof _7Fe54Fe8>[1], 'throwOnError'>): Promise<ConcurrencyLimit>;
16
+ /**
17
+ * Update a flow concurrency limit
18
+ */
19
+ declare function updateConcurrencyLimitAsInstanceOwner(parameters: Omit<Parameters<typeof _026A7705>[0], 'concurrencyLimit' | 'tenant'> & ConcurrencyLimit & {
20
+ tenant?: string;
21
+ }, options?: Omit<Parameters<typeof _026A7705>[1], 'throwOnError'>): Promise<ConcurrencyLimit>;
22
+ /**
23
+ * Create a flow from yaml source
24
+ */
25
+ declare function createFlow(parameters: Omit<Parameters<typeof _5196384a>[0], 'tenant'> & {
26
+ tenant?: string;
27
+ }, options?: Omit<Parameters<typeof _5196384a>[1], 'throwOnError'>): Promise<FlowWithSource>;
28
+ /**
29
+ * Update from multiples yaml sources
30
+ */
31
+ declare function bulkUpdateFlows(parameters?: Omit<Parameters<typeof _0494596B6>[0], 'tenant'> & {
32
+ tenant?: string;
33
+ }, options?: Omit<Parameters<typeof _0494596B6>[1], 'throwOnError'>): Promise<FlowInterface[]>;
34
+ /**
35
+ * Delete flows by their IDs.
36
+ */
37
+ declare function deleteFlowsByIds(parameters: Omit<Parameters<typeof _0Ec51319>[0], 'tenant'> & {
38
+ tenant?: string;
39
+ }, options?: Omit<Parameters<typeof _0Ec51319>[1], 'throwOnError'>): Promise<BulkResponse>;
40
+ /**
41
+ * Delete flows returned by the query parameters.
42
+ */
43
+ declare function deleteFlowsByQuery(parameters?: Omit<Parameters<typeof _0715460C9>[0], 'tenant'> & {
44
+ tenant?: string;
45
+ }, options?: Omit<Parameters<typeof _0715460C9>[1], 'throwOnError'>): Promise<BulkResponse>;
46
+ /**
47
+ * List flows containing deprecated tasks
48
+ */
49
+ declare function listDeprecated(parameters?: Omit<Parameters<typeof _1F4344F1>[0], 'tenant'> & {
50
+ tenant?: string;
51
+ }, options?: Omit<Parameters<typeof _1F4344F1>[1], 'throwOnError'>): Promise<FlowControllerFlowWithDeprecatedTasks[]>;
52
+ /**
53
+ * Disable flows by their IDs.
54
+ */
55
+ declare function disableFlowsByIds(parameters: Omit<Parameters<typeof _7D0E1E4>[0], 'tenant'> & {
56
+ tenant?: string;
57
+ }, options?: Omit<Parameters<typeof _7D0E1E4>[1], 'throwOnError'>): Promise<BulkResponse>;
58
+ /**
59
+ * Disable flows returned by the query parameters.
60
+ */
61
+ declare function disableFlowsByQuery(parameters?: Omit<Parameters<typeof _579848F4>[0], 'tenant'> & {
62
+ tenant?: string;
63
+ }, options?: Omit<Parameters<typeof _579848F4>[1], 'throwOnError'>): Promise<BulkResponse>;
64
+ /**
65
+ * List all distinct namespaces
66
+ */
67
+ declare function listDistinctNamespaces(parameters?: Omit<Parameters<typeof _06B60682e>[0], 'tenant'> & {
68
+ tenant?: string;
69
+ }, options?: Omit<Parameters<typeof _06B60682e>[1], 'throwOnError'>): Promise<string[]>;
70
+ /**
71
+ * Enable flows by their IDs.
72
+ */
73
+ declare function enableFlowsByIds(parameters: Omit<Parameters<typeof _3De59Ebf>[0], 'tenant'> & {
74
+ tenant?: string;
75
+ }, options?: Omit<Parameters<typeof _3De59Ebf>[1], 'throwOnError'>): Promise<BulkResponse>;
76
+ /**
77
+ * Enable flows returned by the query parameters.
78
+ */
79
+ declare function enableFlowsByQuery(parameters?: Omit<Parameters<typeof _5B713B0f>[0], 'tenant'> & {
80
+ tenant?: string;
81
+ }, options?: Omit<Parameters<typeof _5B713B0f>[1], 'throwOnError'>): Promise<BulkResponse>;
82
+ /**
83
+ * Export flows as a ZIP archive of yaml sources.
84
+ */
85
+ declare function exportFlowsByIds(parameters: Omit<Parameters<typeof ae43B0>[0], 'tenant'> & {
86
+ tenant?: string;
87
+ }, options?: Omit<Parameters<typeof ae43B0>[1], 'throwOnError'>): Promise<Blob | File>;
88
+ /**
89
+ * Export flows as a ZIP archive of yaml sources.
90
+ */
91
+ declare function exportFlowsByQuery(parameters?: Omit<Parameters<typeof _0715B9840>[0], 'tenant'> & {
92
+ tenant?: string;
93
+ }, options?: Omit<Parameters<typeof _0715B9840>[1], 'throwOnError'>): Promise<Blob | File>;
94
+ /**
95
+ * Export all flows as a streamed CSV file
96
+ */
97
+ declare function exportFlows(parameters?: Omit<Parameters<typeof _07E3Fae4f>[0], 'tenant'> & {
98
+ tenant?: string;
99
+ }, options?: Omit<Parameters<typeof _07E3Fae4f>[1], 'throwOnError'>): Promise<string[]>;
100
+ /**
101
+ * Get available Pebble expressions for a flow
102
+ */
103
+ declare function expressions(parameters: Omit<Parameters<typeof a76C0Db>[0], 'tenant'> & {
104
+ tenant?: string;
105
+ }, options?: Omit<Parameters<typeof a76C0Db>[1], 'throwOnError'>): Promise<ExpressionContext>;
106
+ /**
107
+ * Generate a graph for a flow source
108
+ */
109
+ declare function generateFlowGraphFromSource(parameters: Omit<Parameters<typeof _030B1A670>[0], 'tenant'> & {
110
+ tenant?: string;
111
+ }, options?: Omit<Parameters<typeof _030B1A670>[1], 'throwOnError'>): Promise<FlowGraph>;
112
+ /**
113
+ * Batch-compute source hashes for flows by id (drift detection)
114
+ */
115
+ declare function flowHashesByIds(parameters: Omit<Parameters<typeof _0553D009>[0], 'tenant'> & {
116
+ tenant?: string;
117
+ }, options?: Omit<Parameters<typeof _0553D009>[1], 'throwOnError'>): Promise<ApiFlowHashesResponse>;
118
+ /**
119
+ * Import flows as a ZIP archive of yaml sources or a multi-objects YAML file.
120
+ * When sending a Yaml that contains one or more flows, a list of index is returned.
121
+ * When sending a ZIP archive, a list of files that couldn't be imported is returned.
122
+ *
123
+ */
124
+ declare function importFlows(parameters: Omit<Parameters<typeof _562B4060>[0], 'tenant'> & {
125
+ tenant?: string;
126
+ }, options?: Omit<Parameters<typeof _562B4060>[1], 'throwOnError'>): Promise<string[]>;
127
+ /**
128
+ * Preview the governance policy effects (mutations + violations) on a flow source
129
+ */
130
+ declare function previewPolicies(parameters: PolicyPreviewRequest & {
131
+ tenant?: string;
132
+ }, options?: Omit<Parameters<typeof d5Ff138>[1], 'throwOnError'>): Promise<PolicyPreviewResponse>;
133
+ /**
134
+ * Search for flows
135
+ */
136
+ declare function searchFlows(parameters?: Omit<Parameters<typeof _02187E7C3>[0], 'tenant'> & {
137
+ tenant?: string;
138
+ }, options?: Omit<Parameters<typeof _02187E7C3>[1], 'throwOnError'>): Promise<PagedResultsFlow>;
139
+ /**
140
+ * Search for flows source code
141
+ */
142
+ declare function searchFlowsBySourceCode(parameters?: Omit<Parameters<typeof _067435Ac4>[0], 'tenant'> & {
143
+ tenant?: string;
144
+ }, options?: Omit<Parameters<typeof _067435Ac4>[1], 'throwOnError'>): Promise<PagedResultsSourceSearchResult>;
145
+ /**
146
+ * Apply a Source Search replace-all operation
147
+ */
148
+ declare function applyReplaceBySourceCode(parameters: SourceSearchReplaceApplyRequest & {
149
+ tenant?: string;
150
+ }, options?: Omit<Parameters<typeof _07628391b>[1], 'throwOnError'>): Promise<SourceSearchReplaceApplyResponse>;
151
+ /**
152
+ * Apply a Source Search replace on a single match line
153
+ */
154
+ declare function replaceLineBySourceCode(parameters: SourceSearchReplaceLineRequest & {
155
+ tenant?: string;
156
+ }, options?: Omit<Parameters<typeof _0593C8Eb9>[1], 'throwOnError'>): Promise<SourceSearchReplaceApplyResponse>;
157
+ /**
158
+ * Preview a Source Search replace-all operation
159
+ */
160
+ declare function previewReplaceBySourceCode(parameters: SourceSearchReplacePreviewRequest & {
161
+ tenant?: string;
162
+ }, options?: Omit<Parameters<typeof e83C44b>[1], 'throwOnError'>): Promise<SourceSearchReplacePreviewResponse>;
163
+ /**
164
+ * Validate a list of flows
165
+ */
166
+ declare function validateFlows(parameters: Omit<Parameters<typeof _032E9A671>[0], 'tenant'> & {
167
+ tenant?: string;
168
+ }, options?: Omit<Parameters<typeof _032E9A671>[1], 'throwOnError'>): Promise<ValidateConstraintViolation[]>;
169
+ /**
170
+ * Validate a task
171
+ */
172
+ declare function validateTask(parameters: Omit<Parameters<typeof _407247Bb>[0], 'tenant'> & {
173
+ tenant?: string;
174
+ }, options?: Omit<Parameters<typeof _407247Bb>[1], 'throwOnError'>): Promise<ValidateConstraintViolation>;
175
+ /**
176
+ * Validate trigger
177
+ */
178
+ declare function validateTrigger(parameters: Omit<Parameters<typeof _030A1703e>[0], 'tenant'> & {
179
+ tenant?: string;
180
+ }, options?: Omit<Parameters<typeof _030A1703e>[1], 'throwOnError'>): Promise<ValidateConstraintViolation>;
181
+ /**
182
+ * Retrieve all flows from a given namespace
183
+ */
184
+ declare function listFlowsByNamespace(parameters: Omit<Parameters<typeof _62Bef13d>[0], 'tenant'> & {
185
+ tenant?: string;
186
+ }, options?: Omit<Parameters<typeof _62Bef13d>[1], 'throwOnError'>): Promise<Flow[]>;
187
+ /**
188
+ * Update a complete namespace from yaml source
189
+ */
190
+ declare function updateFlowsInNamespace(parameters: Omit<Parameters<typeof _541Dca5a>[0], 'tenant'> & {
191
+ tenant?: string;
192
+ }, options?: Omit<Parameters<typeof _541Dca5a>[1], 'throwOnError'>): Promise<FlowInterface[]>;
193
+ /**
194
+ * Delete a flow
195
+ */
196
+ declare function deleteFlow(parameters: Omit<Parameters<typeof _69272D79>[0], 'tenant'> & {
197
+ tenant?: string;
198
+ }, options?: Omit<Parameters<typeof _69272D79>[1], 'throwOnError'>): Promise<unknown>;
199
+ /**
200
+ * Get a flow
201
+ */
202
+ declare function flow(parameters: Omit<Parameters<typeof _30012e>[0], 'tenant'> & {
203
+ tenant?: string;
204
+ }, options?: Omit<Parameters<typeof _30012e>[1], 'throwOnError'>): Promise<FlowWithSource>;
205
+ /**
206
+ * Update a flow
207
+ */
208
+ declare function updateFlow(parameters: Omit<Parameters<typeof _011A9De69>[0], 'tenant'> & {
209
+ tenant?: string;
210
+ }, options?: Omit<Parameters<typeof _011A9De69>[1], 'throwOnError'>): Promise<FlowWithSource>;
211
+ /**
212
+ * Get flow dependencies
213
+ */
214
+ declare function flowDependencies(parameters: Omit<Parameters<typeof _0416C0289>[0], 'tenant'> & {
215
+ tenant?: string;
216
+ }, options?: Omit<Parameters<typeof _0416C0289>[1], 'throwOnError'>): Promise<FlowTopologyGraph>;
217
+ /**
218
+ * Generate a graph for a flow
219
+ */
220
+ declare function generateFlowGraph(parameters: Omit<Parameters<typeof _41A7Bacb>[0], 'tenant'> & {
221
+ tenant?: string;
222
+ }, options?: Omit<Parameters<typeof _41A7Bacb>[1], 'throwOnError'>): Promise<FlowGraph>;
223
+ /**
224
+ * Delete revisions for a flow
225
+ */
226
+ declare function deleteRevisions(parameters: Omit<Parameters<typeof _4Cc20E8d>[0], 'tenant'> & {
227
+ tenant?: string;
228
+ }, options?: Omit<Parameters<typeof _4Cc20E8d>[1], 'throwOnError'>): Promise<unknown>;
229
+ /**
230
+ * Get revisions for a flow
231
+ */
232
+ declare function listFlowRevisions(parameters: Omit<Parameters<typeof _6C34C66c>[0], 'tenant'> & {
233
+ tenant?: string;
234
+ }, options?: Omit<Parameters<typeof _6C34C66c>[1], 'throwOnError'>): Promise<FlowWithSource[]>;
235
+ /**
236
+ * Get a flow task
237
+ */
238
+ declare function taskFromFlow(parameters: Omit<Parameters<typeof _5662Ec9d>[0], 'tenant'> & {
239
+ tenant?: string;
240
+ }, options?: Omit<Parameters<typeof _5662Ec9d>[1], 'throwOnError'>): Promise<Task>;
241
+ /**
242
+ * Retrieve flow dependencies
243
+ */
244
+ declare function flowDependenciesFromNamespace(parameters: Omit<Parameters<typeof _0Fe49766>[0], 'tenant'> & {
245
+ tenant?: string;
246
+ }, options?: Omit<Parameters<typeof _0Fe49766>[1], 'throwOnError'>): Promise<FlowTopologyGraph>;
247
+ //#endregion
248
+ //#region src/flow-from-object.d.ts
249
+ /**
250
+ * A flow described as a native object rather than a YAML source string.
251
+ *
252
+ * Accepts the typed {@link Flow} model or a plain object. The loose
253
+ * `Record<string, unknown>` member is deliberate: the generated `Task` type is a
254
+ * closed object with no index signature, so plugin-specific task properties
255
+ * (e.g. `message` on a Log task, `commands` on a Shell task) would otherwise be
256
+ * rejected by TypeScript. They are carried through verbatim into the emitted YAML.
257
+ */
258
+ type FlowObjectInput = Flow | Record<string, unknown>;
259
+ /**
260
+ * Serialize a flow object to a YAML source string (block style, no anchors,
261
+ * `null` fields omitted). Kestra expressions like `{{ inputs.foo }}` are quoted
262
+ * by the YAML emitter and multi-line strings become literal block scalars.
263
+ * Server-managed top-level fields are stripped so the YAML mirrors what a user
264
+ * writes as flow source.
265
+ */
266
+ declare function flowToYaml(flow: FlowObjectInput): string;
267
+ /**
268
+ * Create a flow from a native object (typed {@link Flow} model or plain object).
269
+ *
270
+ * The flow-write endpoint is YAML-only (it does not accept JSON), so the object
271
+ * is serialized to a YAML source string client-side and delegated to the
272
+ * generated `createFlow`. `draft` stays a query parameter, not a body field.
273
+ */
274
+ declare function createFlowFromObject(parameters: {
275
+ flow: FlowObjectInput;
276
+ tenant?: string;
277
+ draft?: boolean;
278
+ }, options?: Parameters<typeof createFlow>[1]): Promise<FlowWithSource>;
279
+ /**
280
+ * Update a flow from a native object (typed {@link Flow} model or plain object).
281
+ *
282
+ * The object is serialized to a YAML source string client-side (the write
283
+ * endpoint is YAML-only) and delegated to the generated `updateFlow`. `draft`
284
+ * stays a query parameter, not a body field.
285
+ */
286
+ declare function updateFlowFromObject(parameters: {
287
+ flow: FlowObjectInput;
288
+ namespace: string;
289
+ id: string;
290
+ tenant?: string;
291
+ draft?: boolean;
292
+ }, options?: Parameters<typeof updateFlow>[1]): Promise<FlowWithSource>;
293
+ //#endregion
294
+ export { listFlowRevisions as A, updateFlow as B, flowDependenciesFromNamespace as C, importFlows as D, generateFlowGraphFromSource as E, searchConcurrencyLimitsAsInstanceOwner as F, 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, createFlowFromObject as n, bulkUpdateFlows as o, disableFlowsByIds as p, flowToYaml as r, concurrencyLimit as s, FlowObjectInput as t, deleteFlowsByIds as u, exportFlowsByIds as v, flowHashesByIds as w, flow as x, exportFlowsByQuery as y, updateConcurrencyLimitAsInstanceOwner as z };
@@ -0,0 +1,367 @@
1
+ import { Ai as _0715B9840, Al as _62Bef13d, As as _3De59Ebf, Ft as _030A1703e, Gu as ae43B0, Hc as _562B4060, Ic as _541Dca5a, It as _030B1A670, Iu as _7Fe54Fe8, Ju as d5Ff138, Kc as _579848F4, Ks as _41A7Bacb, Mu as _7D0E1E4, Ta as _0Ec51319, Uc as _5662Ec9d, Vr as _0593C8Eb9, Vs as _407247Bb, Vt as _032E9A671, Wu as a76C0Db, Xl as _69272D79, Z as _02187E7C3, Zn as _0494596B6, bn as _0416C0289, di as _067435Ac4, ht as _026A7705, jr as _0553D009, ka as _0Fe49766, kc as _5196384a, ki as _0715460C9, mc as _4Cc20E8d, ou as _6C34C66c, qi as _07628391b, ra as _07E3Fae4f, rl as _5B713B0f, ro as _1F4344F1, s as _011A9De69, td as e83C44b, uo as _2240B4C9, vi as _06B60682e, zo as _30012e } from "./sdk.gen-D0N05hnd.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 };