@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/flows.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $a as generateFlowGraph, Ba as deleteRevisions, Fa as concurrencyLimit, Ga as exportFlows, Ha as disableFlowsByQuery, Ia as createFlow, Ja as expressions, Ka as exportFlowsByIds, La as deleteFlow, Na as applyReplaceBySourceCode, Pa as bulkUpdateFlows, Qa as flowHashesByIds, Ra as deleteFlowsByIds, Ua as enableFlowsByIds, Va as disableFlowsByIds, Wa as enableFlowsByQuery, Xa as flowDependencies, Ya as flow, Za as flowDependenciesFromNamespace, _o as validateTask, ao as listFlowsByNamespace, co as replaceLineBySourceCode, do as searchFlowsBySourceCode, eo as generateFlowGraphFromSource, fo as taskFromFlow, go as validateFlows, ho as updateFlowsInNamespace, io as listFlowRevisions, lo as searchConcurrencyLimitsAsInstanceOwner, mo as updateFlow, no as listDeprecated, oo as previewPolicies, po as updateConcurrencyLimitAsInstanceOwner, qa as exportFlowsByQuery, ro as listDistinctNamespaces, so as previewReplaceBySourceCode, to as importFlows, uo as searchFlows, vo as validateTrigger, za as deleteFlowsByQuery } from "./index-CPjbMU9J.js";
2
- export { applyReplaceBySourceCode, bulkUpdateFlows, concurrencyLimit, createFlow, deleteFlow, deleteFlowsByIds, deleteFlowsByQuery, deleteRevisions, disableFlowsByIds, disableFlowsByQuery, enableFlowsByIds, enableFlowsByQuery, exportFlows, exportFlowsByIds, exportFlowsByQuery, expressions, flow, flowDependencies, flowDependenciesFromNamespace, flowHashesByIds, generateFlowGraph, generateFlowGraphFromSource, importFlows, listDeprecated, listDistinctNamespaces, listFlowRevisions, listFlowsByNamespace, previewPolicies, previewReplaceBySourceCode, replaceLineBySourceCode, searchConcurrencyLimitsAsInstanceOwner, searchFlows, searchFlowsBySourceCode, taskFromFlow, updateConcurrencyLimitAsInstanceOwner, updateFlow, updateFlowsInNamespace, validateFlows, validateTask, validateTrigger };
1
+ import { A as listFlowRevisions, B as updateFlow, C as flowDependenciesFromNamespace, D as importFlows, E as generateFlowGraphFromSource, F as searchConcurrencyLimitsAsInstanceOwner, H as validateFlows, I as searchFlows, L as searchFlowsBySourceCode, M as previewPolicies, N as previewReplaceBySourceCode, O as listDeprecated, P as replaceLineBySourceCode, R as taskFromFlow, S as flowDependencies, T as generateFlowGraph, U as validateTask, V as updateFlowsInNamespace, W as validateTrigger, _ as exportFlows, a as applyReplaceBySourceCode, b as expressions, c as createFlow, d as deleteFlowsByQuery, f as deleteRevisions, g as enableFlowsByQuery, h as enableFlowsByIds, i as updateFlowFromObject, j as listFlowsByNamespace, k as listDistinctNamespaces, l as deleteFlow, m as disableFlowsByQuery, n as createFlowFromObject, o as bulkUpdateFlows, p as disableFlowsByIds, r as flowToYaml, s as concurrencyLimit, t as FlowObjectInput, u as deleteFlowsByIds, v as exportFlowsByIds, w as flowHashesByIds, x as flow, y as exportFlowsByQuery, z as updateConcurrencyLimitAsInstanceOwner } from "./flow-from-object-QRQgo2C4.js";
2
+ export { FlowObjectInput, applyReplaceBySourceCode, bulkUpdateFlows, concurrencyLimit, createFlow, createFlowFromObject, deleteFlow, deleteFlowsByIds, deleteFlowsByQuery, deleteRevisions, disableFlowsByIds, disableFlowsByQuery, enableFlowsByIds, enableFlowsByQuery, exportFlows, exportFlowsByIds, exportFlowsByQuery, expressions, flow, flowDependencies, flowDependenciesFromNamespace, flowHashesByIds, flowToYaml, generateFlowGraph, generateFlowGraphFromSource, importFlows, listDeprecated, listDistinctNamespaces, listFlowRevisions, listFlowsByNamespace, previewPolicies, previewReplaceBySourceCode, replaceLineBySourceCode, searchConcurrencyLimitsAsInstanceOwner, searchFlows, searchFlowsBySourceCode, taskFromFlow, updateConcurrencyLimitAsInstanceOwner, updateFlow, updateFlowFromObject, updateFlowsInNamespace, validateFlows, validateTask, validateTrigger };
package/dist/flows.js CHANGED
@@ -1,270 +1,2 @@
1
- import { Ai as _0715B9840, Bc as _562B4060, Bs as _407247Bb, Dc as _5196384a, Ft as _030A1703e, Gs as _41A7Bacb, Gu as d5Ff138, Hu as ae43B0, It as _030B1A670, Jl as _69272D79, Nu as _7Fe54Fe8, Ol as _62Bef13d, Pc as _541Dca5a, Qu as e83C44b, Ro as _30012e, Ta as _0Ec51319, Vc as _5662Ec9d, Vr as _0593C8Eb9, Vt as _032E9A671, Vu as a76C0Db, Wc as _579848F4, Z as _02187E7C3, Zn as _0494596B6, bn as _0416C0289, di as _067435Ac4, fc as _4Cc20E8d, ht as _026A7705, iu as _6C34C66c, jr as _0553D009, ka as _0Fe49766, ki as _0715460C9, ks as _3De59Ebf, ku as _7D0E1E4, lo as _2240B4C9, no as _1F4344F1, qi as _07628391b, ra as _07E3Fae4f, s as _011A9De69, tl as _5B713B0f, vi as _06B60682e } from "./sdk.gen-C2tIOMuW.js";
2
- import { addTenantToParameters, getDataOrThrow, resolveTenant } from "./shared.js";
3
- //#region src/openapi/sdk/Flows.gen.ts
4
- /**
5
- * Search for flow concurrency limits
6
- */
7
- function searchConcurrencyLimitsAsInstanceOwner(parameters, options) {
8
- return getDataOrThrow(_2240B4C9(addTenantToParameters(parameters), options));
9
- }
10
- /**
11
- * Get the concurrency limit of a flow
12
- */
13
- function concurrencyLimit(parameters, options) {
14
- return getDataOrThrow(_7Fe54Fe8(addTenantToParameters(parameters), options));
15
- }
16
- /**
17
- * Update a flow concurrency limit
18
- */
19
- function updateConcurrencyLimitAsInstanceOwner(parameters, options) {
20
- return getDataOrThrow(_026A7705({
21
- ...parameters,
22
- tenant: resolveTenant(parameters?.tenant),
23
- concurrencyLimit: parameters
24
- }, options));
25
- }
26
- /**
27
- * Create a flow from yaml source
28
- */
29
- function createFlow(parameters, options) {
30
- return getDataOrThrow(_5196384a(addTenantToParameters(parameters), options));
31
- }
32
- /**
33
- * Update from multiples yaml sources
34
- */
35
- function bulkUpdateFlows(parameters, options) {
36
- return getDataOrThrow(_0494596B6(addTenantToParameters(parameters), options));
37
- }
38
- /**
39
- * Delete flows by their IDs.
40
- */
41
- function deleteFlowsByIds(parameters, options) {
42
- return getDataOrThrow(_0Ec51319(addTenantToParameters(parameters), options));
43
- }
44
- /**
45
- * Delete flows returned by the query parameters.
46
- */
47
- function deleteFlowsByQuery(parameters, options) {
48
- return getDataOrThrow(_0715460C9(addTenantToParameters(parameters), options));
49
- }
50
- /**
51
- * List flows containing deprecated tasks
52
- */
53
- function listDeprecated(parameters, options) {
54
- return getDataOrThrow(_1F4344F1(addTenantToParameters(parameters), options));
55
- }
56
- /**
57
- * Disable flows by their IDs.
58
- */
59
- function disableFlowsByIds(parameters, options) {
60
- return getDataOrThrow(_7D0E1E4(addTenantToParameters(parameters), options));
61
- }
62
- /**
63
- * Disable flows returned by the query parameters.
64
- */
65
- function disableFlowsByQuery(parameters, options) {
66
- return getDataOrThrow(_579848F4(addTenantToParameters(parameters), options));
67
- }
68
- /**
69
- * List all distinct namespaces
70
- */
71
- function listDistinctNamespaces(parameters, options) {
72
- return getDataOrThrow(_06B60682e(addTenantToParameters(parameters), options));
73
- }
74
- /**
75
- * Enable flows by their IDs.
76
- */
77
- function enableFlowsByIds(parameters, options) {
78
- return getDataOrThrow(_3De59Ebf(addTenantToParameters(parameters), options));
79
- }
80
- /**
81
- * Enable flows returned by the query parameters.
82
- */
83
- function enableFlowsByQuery(parameters, options) {
84
- return getDataOrThrow(_5B713B0f(addTenantToParameters(parameters), options));
85
- }
86
- /**
87
- * Export flows as a ZIP archive of yaml sources.
88
- */
89
- function exportFlowsByIds(parameters, options) {
90
- return getDataOrThrow(ae43B0(addTenantToParameters(parameters), {
91
- ...options,
92
- parseAs: "text"
93
- }));
94
- }
95
- /**
96
- * Export flows as a ZIP archive of yaml sources.
97
- */
98
- function exportFlowsByQuery(parameters, options) {
99
- return getDataOrThrow(_0715B9840(addTenantToParameters(parameters), {
100
- ...options,
101
- parseAs: "text"
102
- }));
103
- }
104
- /**
105
- * Export all flows as a streamed CSV file
106
- */
107
- function exportFlows(parameters, options) {
108
- return getDataOrThrow(_07E3Fae4f(addTenantToParameters(parameters), options));
109
- }
110
- /**
111
- * Get available Pebble expressions for a flow
112
- */
113
- function expressions(parameters, options) {
114
- return getDataOrThrow(a76C0Db(addTenantToParameters(parameters), options));
115
- }
116
- /**
117
- * Generate a graph for a flow source
118
- */
119
- function generateFlowGraphFromSource(parameters, options) {
120
- return getDataOrThrow(_030B1A670(addTenantToParameters(parameters), options));
121
- }
122
- /**
123
- * Batch-compute source hashes for flows by id (drift detection)
124
- */
125
- function flowHashesByIds(parameters, options) {
126
- return getDataOrThrow(_0553D009(addTenantToParameters(parameters), options));
127
- }
128
- /**
129
- * Import flows as a ZIP archive of yaml sources or a multi-objects YAML file.
130
- * When sending a Yaml that contains one or more flows, a list of index is returned.
131
- * When sending a ZIP archive, a list of files that couldn't be imported is returned.
132
- *
133
- */
134
- function importFlows(parameters, options) {
135
- return getDataOrThrow(_562B4060(addTenantToParameters(parameters), options));
136
- }
137
- /**
138
- * Preview the governance policy effects (mutations + violations) on a flow source
139
- */
140
- function previewPolicies(parameters, options) {
141
- return getDataOrThrow(d5Ff138({
142
- tenant: resolveTenant(parameters?.tenant),
143
- policyPreviewRequest: parameters
144
- }, options));
145
- }
146
- /**
147
- * Search for flows
148
- */
149
- function searchFlows(parameters, options) {
150
- return getDataOrThrow(_02187E7C3(addTenantToParameters(parameters), options));
151
- }
152
- /**
153
- * Search for flows source code
154
- */
155
- function searchFlowsBySourceCode(parameters, options) {
156
- return getDataOrThrow(_067435Ac4(addTenantToParameters(parameters), options));
157
- }
158
- /**
159
- * Apply a Source Search replace-all operation
160
- */
161
- function applyReplaceBySourceCode(parameters, options) {
162
- return getDataOrThrow(_07628391b({
163
- tenant: resolveTenant(parameters?.tenant),
164
- sourceSearchReplaceApplyRequest: parameters
165
- }, options));
166
- }
167
- /**
168
- * Apply a Source Search replace on a single match line
169
- */
170
- function replaceLineBySourceCode(parameters, options) {
171
- return getDataOrThrow(_0593C8Eb9({
172
- tenant: resolveTenant(parameters?.tenant),
173
- sourceSearchReplaceLineRequest: parameters
174
- }, options));
175
- }
176
- /**
177
- * Preview a Source Search replace-all operation
178
- */
179
- function previewReplaceBySourceCode(parameters, options) {
180
- return getDataOrThrow(e83C44b({
181
- tenant: resolveTenant(parameters?.tenant),
182
- sourceSearchReplacePreviewRequest: parameters
183
- }, options));
184
- }
185
- /**
186
- * Validate a list of flows
187
- */
188
- function validateFlows(parameters, options) {
189
- return getDataOrThrow(_032E9A671(addTenantToParameters(parameters), options));
190
- }
191
- /**
192
- * Validate a task
193
- */
194
- function validateTask(parameters, options) {
195
- return getDataOrThrow(_407247Bb(addTenantToParameters(parameters), options));
196
- }
197
- /**
198
- * Validate trigger
199
- */
200
- function validateTrigger(parameters, options) {
201
- return getDataOrThrow(_030A1703e(addTenantToParameters(parameters), options));
202
- }
203
- /**
204
- * Retrieve all flows from a given namespace
205
- */
206
- function listFlowsByNamespace(parameters, options) {
207
- return getDataOrThrow(_62Bef13d(addTenantToParameters(parameters), options));
208
- }
209
- /**
210
- * Update a complete namespace from yaml source
211
- */
212
- function updateFlowsInNamespace(parameters, options) {
213
- return getDataOrThrow(_541Dca5a(addTenantToParameters(parameters), options));
214
- }
215
- /**
216
- * Delete a flow
217
- */
218
- function deleteFlow(parameters, options) {
219
- return getDataOrThrow(_69272D79(addTenantToParameters(parameters), options));
220
- }
221
- /**
222
- * Get a flow
223
- */
224
- function flow(parameters, options) {
225
- return getDataOrThrow(_30012e(addTenantToParameters(parameters), options));
226
- }
227
- /**
228
- * Update a flow
229
- */
230
- function updateFlow(parameters, options) {
231
- return getDataOrThrow(_011A9De69(addTenantToParameters(parameters), options));
232
- }
233
- /**
234
- * Get flow dependencies
235
- */
236
- function flowDependencies(parameters, options) {
237
- return getDataOrThrow(_0416C0289(addTenantToParameters(parameters), options));
238
- }
239
- /**
240
- * Generate a graph for a flow
241
- */
242
- function generateFlowGraph(parameters, options) {
243
- return getDataOrThrow(_41A7Bacb(addTenantToParameters(parameters), options));
244
- }
245
- /**
246
- * Delete revisions for a flow
247
- */
248
- function deleteRevisions(parameters, options) {
249
- return getDataOrThrow(_4Cc20E8d(addTenantToParameters(parameters), options));
250
- }
251
- /**
252
- * Get revisions for a flow
253
- */
254
- function listFlowRevisions(parameters, options) {
255
- return getDataOrThrow(_6C34C66c(addTenantToParameters(parameters), options));
256
- }
257
- /**
258
- * Get a flow task
259
- */
260
- function taskFromFlow(parameters, options) {
261
- return getDataOrThrow(_5662Ec9d(addTenantToParameters(parameters), options));
262
- }
263
- /**
264
- * Retrieve flow dependencies
265
- */
266
- function flowDependenciesFromNamespace(parameters, options) {
267
- return getDataOrThrow(_0Fe49766(addTenantToParameters(parameters), options));
268
- }
269
- //#endregion
270
- export { applyReplaceBySourceCode, bulkUpdateFlows, concurrencyLimit, createFlow, deleteFlow, deleteFlowsByIds, deleteFlowsByQuery, deleteRevisions, disableFlowsByIds, disableFlowsByQuery, enableFlowsByIds, enableFlowsByQuery, exportFlows, exportFlowsByIds, exportFlowsByQuery, expressions, flow, flowDependencies, flowDependenciesFromNamespace, flowHashesByIds, generateFlowGraph, generateFlowGraphFromSource, importFlows, listDeprecated, listDistinctNamespaces, listFlowRevisions, listFlowsByNamespace, previewPolicies, previewReplaceBySourceCode, replaceLineBySourceCode, searchConcurrencyLimitsAsInstanceOwner, searchFlows, searchFlowsBySourceCode, taskFromFlow, updateConcurrencyLimitAsInstanceOwner, updateFlow, updateFlowsInNamespace, validateFlows, validateTask, validateTrigger };
1
+ import { A as listFlowRevisions, B as updateFlow, C as flowDependenciesFromNamespace, D as importFlows, E as generateFlowGraphFromSource, F as searchConcurrencyLimitsAsInstanceOwner, H as validateFlows, I as searchFlows, L as searchFlowsBySourceCode, M as previewPolicies, N as previewReplaceBySourceCode, O as listDeprecated, P as replaceLineBySourceCode, R as taskFromFlow, S as flowDependencies, T as generateFlowGraph, U as validateTask, V as updateFlowsInNamespace, W as validateTrigger, _ as exportFlows, a as applyReplaceBySourceCode, b as expressions, c as createFlow, d as deleteFlowsByQuery, f as deleteRevisions, g as enableFlowsByQuery, h as enableFlowsByIds, i as updateFlowFromObject, j as listFlowsByNamespace, k as listDistinctNamespaces, l as deleteFlow, m as disableFlowsByQuery, n as flowToYaml, o as bulkUpdateFlows, p as disableFlowsByIds, s as concurrencyLimit, t as createFlowFromObject, u as deleteFlowsByIds, v as exportFlowsByIds, w as flowHashesByIds, x as flow, y as exportFlowsByQuery, z as updateConcurrencyLimitAsInstanceOwner } from "./flow-from-object-p045taB2.js";
2
+ export { applyReplaceBySourceCode, bulkUpdateFlows, concurrencyLimit, createFlow, createFlowFromObject, deleteFlow, deleteFlowsByIds, deleteFlowsByQuery, deleteRevisions, disableFlowsByIds, disableFlowsByQuery, enableFlowsByIds, enableFlowsByQuery, exportFlows, exportFlowsByIds, exportFlowsByQuery, expressions, flow, flowDependencies, flowDependenciesFromNamespace, flowHashesByIds, flowToYaml, generateFlowGraph, generateFlowGraphFromSource, importFlows, listDeprecated, listDistinctNamespaces, listFlowRevisions, listFlowsByNamespace, previewPolicies, previewReplaceBySourceCode, replaceLineBySourceCode, searchConcurrencyLimitsAsInstanceOwner, searchFlows, searchFlowsBySourceCode, taskFromFlow, updateConcurrencyLimitAsInstanceOwner, updateFlow, updateFlowFromObject, updateFlowsInNamespace, validateFlows, validateTask, validateTrigger };
package/dist/groups.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Aa as searchGroups, Ca as autocompleteGroups, Da as group, Ea as deleteUserFromGroup, Ma as updateGroup, Oa as listGroupIds, Sa as addUserToGroup, Ta as deleteGroup, ja as setUserMembershipForGroup, ka as searchGroupMembers, wa as createGroup } from "./index-CPjbMU9J.js";
1
+ import { a as deleteUserFromGroup, c as searchGroupMembers, d as updateGroup, i as deleteGroup, l as searchGroups, n as autocompleteGroups, o as group, r as createGroup, s as listGroupIds, t as addUserToGroup, u as setUserMembershipForGroup } from "./Groups.gen-CSf79gJt.js";
2
2
  export { addUserToGroup, autocompleteGroups, createGroup, deleteGroup, deleteUserFromGroup, group, listGroupIds, searchGroupMembers, searchGroups, setUserMembershipForGroup, updateGroup };
package/dist/groups.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Il as _666Ae97f, Oi as _070B4Bca7, Pu as _80D6B62, U as _01Ebe5D1d, Ut as _0331D20E8, at as _023811Cca, fl as _5E0F67f, fr as _04E18D824, gl as _5Ec7Ba77, ya as _0D6Bb264, zn as _04430Ac6c } from "./sdk.gen-C2tIOMuW.js";
1
+ import { Lu as _80D6B62, Oi as _070B4Bca7, Rl as _666Ae97f, U as _01Ebe5D1d, Ut as _0331D20E8, at as _023811Cca, fr as _04E18D824, ml as _5E0F67f, vl as _5Ec7Ba77, ya as _0D6Bb264, zn as _04430Ac6c } from "./sdk.gen-D0N05hnd.js";
2
2
  import { addTenantToParameters, getDataOrThrow, resolveTenant } from "./shared.js";
3
3
  //#region src/openapi/sdk/Groups.gen.ts
4
4
  /**
@@ -0,0 +1,101 @@
1
+ import { Mnt as Client, Nnt as ClientOptions, Pnt as Config } from "./types.gen-DVT5DQ0q.js";
2
+
3
+ //#region ../node_modules/@kestra-io/hey-api-plugin/dist/runtime.d.ts
4
+ //#region src/errors.d.ts
5
+ /**
6
+ * Thrown by `createConfigureClient`'s error interceptor instead of a generic normalized `Error`
7
+ * when a request 404s against a route that only exists in Kestra Enterprise Edition — e.g. an
8
+ * EE-only SDK method (`listAuditLogs`, `listApps`, ...) called against an OSS server.
9
+ *
10
+ * Carries structured fields (not just a message) so a caller can render its own "Upgrade to
11
+ * unlock X" UI — a CLI, an internal dashboard, a bot — without parsing `error.message`.
12
+ */
13
+ declare class EnterpriseFeatureError extends Error {
14
+ /** HTTP status of the underlying response. Always 404: the route genuinely doesn't exist on an OSS server. */
15
+ readonly status: number;
16
+ /** Feature identifier supplied by the matching `EnterpriseFeatureConfig`, e.g. "audit-logs". */
17
+ readonly feature: string;
18
+ /** Kestra Enterprise Edition docs page for this feature. */
19
+ readonly docsUrl: string;
20
+ /** Contact-sales / start-a-trial link for this feature. */
21
+ readonly contactSalesUrl: string;
22
+ constructor(options: {
23
+ feature: string;
24
+ docsUrl: string;
25
+ contactSalesUrl: string;
26
+ status?: number;
27
+ });
28
+ }
29
+ /**
30
+ * Thrown instead of {@link EnterpriseFeatureError} when a matched EE-only route 404s on a server
31
+ * that confirms it's EE — an SDK/server version mismatch, not a licensing issue.
32
+ */
33
+ declare class SdkVersionMismatchError extends Error {
34
+ /** HTTP status of the underlying response. Always 404. */
35
+ readonly status: number;
36
+ /** Feature identifier supplied by the matching `EnterpriseFeatureConfig`, e.g. "audit-logs". */
37
+ readonly feature: string;
38
+ constructor(options: {
39
+ feature: string;
40
+ status?: number;
41
+ });
42
+ }
43
+ /** A route matched as Enterprise-Edition-only. */
44
+ //#endregion
45
+ //#region src/index.d.ts
46
+ declare global {
47
+ interface Window {
48
+ KESTRA_BASE_PATH: string;
49
+ }
50
+ }
51
+ interface AxiosLikeConfig {
52
+ params?: Record<string, unknown>;
53
+ headers?: Record<string, string>;
54
+ responseType?: "json" | "text" | "blob";
55
+ timeout?: number;
56
+ validateStatus?: (status: number) => boolean;
57
+ [key: string]: any;
58
+ }
59
+ interface AxiosLikeResponse<T = any> {
60
+ data: T;
61
+ status: number;
62
+ headers: Record<string, string>;
63
+ request?: {
64
+ responseURL: string;
65
+ };
66
+ }
67
+ declare const axiosLikeClient: {
68
+ readonly defaults: {
69
+ readonly headers: {
70
+ readonly common: Record<string, string>;
71
+ };
72
+ };
73
+ readonly get: <T = any>(url: string, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
74
+ readonly post: <T = any>(url: string, data?: any, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
75
+ readonly put: <T = any>(url: string, data?: any, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
76
+ readonly delete: <T = any>(url: string, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
77
+ readonly patch: <T = any>(url: string, data?: any, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
78
+ };
79
+ declare const featureToSlugMap: Record<string, string>;
80
+ declare const configureClient: (clientConfig?: Config<ClientOptions> | undefined) => Client;
81
+ /**
82
+ * Set a mock client instance controlled in tests
83
+ */
84
+ declare function setMockClient(mockClient?: Partial<typeof axiosLikeClient>): void;
85
+ /**
86
+ * Get the current fetch client instance
87
+ */
88
+ declare function useClient(): {
89
+ readonly defaults: {
90
+ readonly headers: {
91
+ readonly common: Record<string, string>;
92
+ };
93
+ };
94
+ readonly get: <T = any>(url: string, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
95
+ readonly post: <T = any>(url: string, data?: any, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
96
+ readonly put: <T = any>(url: string, data?: any, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
97
+ readonly delete: <T = any>(url: string, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
98
+ readonly patch: <T = any>(url: string, data?: any, config?: AxiosLikeConfig) => Promise<AxiosLikeResponse<T>>;
99
+ };
100
+ //#endregion
101
+ export { setMockClient as a, SdkVersionMismatchError as c, featureToSlugMap as i, AxiosLikeResponse as n, useClient as o, configureClient as r, EnterpriseFeatureError as s, AxiosLikeConfig as t };