@epilot/sdk 2.0.0-beta.1 → 2.0.0-beta.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 (294) hide show
  1. package/README.md +71 -96
  2. package/dist/apis/access-token.cjs +90 -10
  3. package/dist/apis/access-token.d.cts +4 -4
  4. package/dist/apis/access-token.d.ts +4 -4
  5. package/dist/apis/access-token.js +86 -6
  6. package/dist/apis/address-suggestions.cjs +133 -10
  7. package/dist/apis/address-suggestions.d.cts +4 -4
  8. package/dist/apis/address-suggestions.d.ts +4 -4
  9. package/dist/apis/address-suggestions.js +129 -6
  10. package/dist/apis/address.cjs +85 -10
  11. package/dist/apis/address.d.cts +4 -4
  12. package/dist/apis/address.d.ts +4 -4
  13. package/dist/apis/address.js +81 -6
  14. package/dist/apis/ai-agents.cjs +216 -10
  15. package/dist/apis/ai-agents.d.cts +4 -4
  16. package/dist/apis/ai-agents.d.ts +4 -4
  17. package/dist/apis/ai-agents.js +212 -6
  18. package/dist/apis/app.cjs +574 -10
  19. package/dist/apis/app.d.cts +4 -4
  20. package/dist/apis/app.d.ts +4 -4
  21. package/dist/apis/app.js +570 -6
  22. package/dist/apis/audit-logs.cjs +56 -10
  23. package/dist/apis/audit-logs.d.cts +4 -4
  24. package/dist/apis/audit-logs.d.ts +4 -4
  25. package/dist/apis/audit-logs.js +52 -6
  26. package/dist/apis/automation.cjs +283 -10
  27. package/dist/apis/automation.d.cts +4 -4
  28. package/dist/apis/automation.d.ts +4 -4
  29. package/dist/apis/automation.js +279 -6
  30. package/dist/apis/billing.cjs +176 -10
  31. package/dist/apis/billing.d.cts +4 -4
  32. package/dist/apis/billing.d.ts +4 -4
  33. package/dist/apis/billing.js +172 -6
  34. package/dist/apis/blueprint-manifest.cjs +505 -10
  35. package/dist/apis/blueprint-manifest.d.cts +4 -4
  36. package/dist/apis/blueprint-manifest.d.ts +4 -4
  37. package/dist/apis/blueprint-manifest.js +501 -6
  38. package/dist/apis/consent.cjs +85 -10
  39. package/dist/apis/consent.d.cts +4 -4
  40. package/dist/apis/consent.d.ts +4 -4
  41. package/dist/apis/consent.js +81 -6
  42. package/dist/apis/customer-portal.cjs +2253 -10
  43. package/dist/apis/customer-portal.d.cts +4 -4
  44. package/dist/apis/customer-portal.d.ts +4 -4
  45. package/dist/apis/customer-portal.js +2249 -6
  46. package/dist/apis/dashboard.cjs +107 -0
  47. package/dist/apis/dashboard.d.cts +18 -0
  48. package/dist/apis/dashboard.d.ts +18 -0
  49. package/dist/apis/dashboard.js +107 -0
  50. package/dist/apis/data-management.cjs +241 -10
  51. package/dist/apis/data-management.d.cts +4 -4
  52. package/dist/apis/data-management.d.ts +4 -4
  53. package/dist/apis/data-management.js +237 -6
  54. package/dist/apis/deduplication.cjs +43 -10
  55. package/dist/apis/deduplication.d.cts +4 -4
  56. package/dist/apis/deduplication.d.ts +4 -4
  57. package/dist/apis/deduplication.js +39 -6
  58. package/dist/apis/design.cjs +220 -10
  59. package/dist/apis/design.d.cts +4 -4
  60. package/dist/apis/design.d.ts +4 -4
  61. package/dist/apis/design.js +216 -6
  62. package/dist/apis/document.cjs +79 -10
  63. package/dist/apis/document.d.cts +4 -4
  64. package/dist/apis/document.d.ts +4 -4
  65. package/dist/apis/document.js +75 -6
  66. package/dist/apis/email-settings.cjs +534 -10
  67. package/dist/apis/email-settings.d.cts +4 -4
  68. package/dist/apis/email-settings.d.ts +4 -4
  69. package/dist/apis/email-settings.js +530 -6
  70. package/dist/apis/email-template.cjs +123 -10
  71. package/dist/apis/email-template.d.cts +4 -4
  72. package/dist/apis/email-template.d.ts +4 -4
  73. package/dist/apis/email-template.js +119 -6
  74. package/dist/apis/entity-mapping.cjs +216 -10
  75. package/dist/apis/entity-mapping.d.cts +4 -4
  76. package/dist/apis/entity-mapping.d.ts +4 -4
  77. package/dist/apis/entity-mapping.js +212 -6
  78. package/dist/apis/entity.cjs +1601 -10
  79. package/dist/apis/entity.d.cts +4 -4
  80. package/dist/apis/entity.d.ts +4 -4
  81. package/dist/apis/entity.js +1597 -6
  82. package/dist/apis/environments.cjs +72 -10
  83. package/dist/apis/environments.d.cts +4 -4
  84. package/dist/apis/environments.d.ts +4 -4
  85. package/dist/apis/environments.js +68 -6
  86. package/dist/apis/erp-integration.cjs +587 -10
  87. package/dist/apis/erp-integration.d.cts +4 -4
  88. package/dist/apis/erp-integration.d.ts +4 -4
  89. package/dist/apis/erp-integration.js +583 -6
  90. package/dist/apis/event-catalog.cjs +131 -10
  91. package/dist/apis/event-catalog.d.cts +4 -4
  92. package/dist/apis/event-catalog.d.ts +4 -4
  93. package/dist/apis/event-catalog.js +127 -6
  94. package/dist/apis/file.cjs +574 -10
  95. package/dist/apis/file.d.cts +4 -4
  96. package/dist/apis/file.d.ts +4 -4
  97. package/dist/apis/file.js +570 -6
  98. package/dist/apis/iban.cjs +44 -10
  99. package/dist/apis/iban.d.cts +4 -4
  100. package/dist/apis/iban.d.ts +4 -4
  101. package/dist/apis/iban.js +40 -6
  102. package/dist/apis/journey.cjs +271 -10
  103. package/dist/apis/journey.d.cts +4 -4
  104. package/dist/apis/journey.d.ts +4 -4
  105. package/dist/apis/journey.js +267 -6
  106. package/dist/apis/kanban.cjs +165 -10
  107. package/dist/apis/kanban.d.cts +4 -4
  108. package/dist/apis/kanban.d.ts +4 -4
  109. package/dist/apis/kanban.js +161 -6
  110. package/dist/apis/message.cjs +674 -10
  111. package/dist/apis/message.d.cts +4 -4
  112. package/dist/apis/message.d.ts +4 -4
  113. package/dist/apis/message.js +670 -6
  114. package/dist/apis/metering.cjs +400 -10
  115. package/dist/apis/metering.d.cts +4 -4
  116. package/dist/apis/metering.d.ts +4 -4
  117. package/dist/apis/metering.js +396 -6
  118. package/dist/apis/notes.cjs +220 -10
  119. package/dist/apis/notes.d.cts +4 -4
  120. package/dist/apis/notes.d.ts +4 -4
  121. package/dist/apis/notes.js +216 -6
  122. package/dist/apis/notification.cjs +238 -10
  123. package/dist/apis/notification.d.cts +4 -4
  124. package/dist/apis/notification.d.ts +4 -4
  125. package/dist/apis/notification.js +234 -6
  126. package/dist/apis/organization.cjs +119 -10
  127. package/dist/apis/organization.d.cts +4 -4
  128. package/dist/apis/organization.d.ts +4 -4
  129. package/dist/apis/organization.js +115 -6
  130. package/dist/apis/partner-directory.cjs +283 -10
  131. package/dist/apis/partner-directory.d.cts +4 -4
  132. package/dist/apis/partner-directory.d.ts +4 -4
  133. package/dist/apis/partner-directory.js +279 -6
  134. package/dist/apis/permissions.cjs +179 -10
  135. package/dist/apis/permissions.d.cts +4 -4
  136. package/dist/apis/permissions.d.ts +4 -4
  137. package/dist/apis/permissions.js +175 -6
  138. package/dist/apis/pricing-tier.cjs +40 -13
  139. package/dist/apis/pricing-tier.d.cts +4 -4
  140. package/dist/apis/pricing-tier.d.ts +4 -4
  141. package/dist/apis/pricing-tier.js +33 -6
  142. package/dist/apis/pricing.cjs +440 -10
  143. package/dist/apis/pricing.d.cts +4 -4
  144. package/dist/apis/pricing.d.ts +4 -4
  145. package/dist/apis/pricing.js +436 -6
  146. package/dist/apis/purpose.cjs +181 -10
  147. package/dist/apis/purpose.d.cts +4 -4
  148. package/dist/apis/purpose.d.ts +4 -4
  149. package/dist/apis/purpose.js +177 -6
  150. package/dist/apis/sandbox.cjs +101 -10
  151. package/dist/apis/sandbox.d.cts +4 -4
  152. package/dist/apis/sandbox.d.ts +4 -4
  153. package/dist/apis/sandbox.js +97 -6
  154. package/dist/apis/submission.cjs +56 -10
  155. package/dist/apis/submission.d.cts +4 -4
  156. package/dist/apis/submission.d.ts +4 -4
  157. package/dist/apis/submission.js +52 -6
  158. package/dist/apis/targeting.cjs +276 -10
  159. package/dist/apis/targeting.d.cts +4 -4
  160. package/dist/apis/targeting.d.ts +4 -4
  161. package/dist/apis/targeting.js +272 -6
  162. package/dist/apis/template-variables.cjs +160 -10
  163. package/dist/apis/template-variables.d.cts +4 -4
  164. package/dist/apis/template-variables.d.ts +4 -4
  165. package/dist/apis/template-variables.js +156 -6
  166. package/dist/apis/user.cjs +489 -10
  167. package/dist/apis/user.d.cts +4 -4
  168. package/dist/apis/user.d.ts +4 -4
  169. package/dist/apis/user.js +485 -6
  170. package/dist/apis/validation-rules.cjs +121 -10
  171. package/dist/apis/validation-rules.d.cts +4 -4
  172. package/dist/apis/validation-rules.d.ts +4 -4
  173. package/dist/apis/validation-rules.js +117 -6
  174. package/dist/apis/webhooks.cjs +253 -10
  175. package/dist/apis/webhooks.d.cts +4 -4
  176. package/dist/apis/webhooks.d.ts +4 -4
  177. package/dist/apis/webhooks.js +249 -6
  178. package/dist/apis/workflow-definition.cjs +343 -10
  179. package/dist/apis/workflow-definition.d.cts +4 -4
  180. package/dist/apis/workflow-definition.d.ts +4 -4
  181. package/dist/apis/workflow-definition.js +339 -6
  182. package/dist/apis/workflow.cjs +403 -10
  183. package/dist/apis/workflow.d.cts +4 -4
  184. package/dist/apis/workflow.d.ts +4 -4
  185. package/dist/apis/workflow.js +399 -6
  186. package/dist/{chunk-YYLPAGF4.cjs → chunk-D7ICL3AM.cjs} +20 -9
  187. package/dist/{chunk-UCDXDIUX.js → chunk-DGCGLG7G.js} +18 -7
  188. package/dist/dashboard.d-AE3RQ6zo.d.cts +440 -0
  189. package/dist/dashboard.d-AE3RQ6zo.d.ts +440 -0
  190. package/dist/index.cjs +75 -215
  191. package/dist/index.d.cts +10 -10
  192. package/dist/index.d.ts +10 -10
  193. package/dist/index.js +72 -212
  194. package/dist/{types-DNnaR-86.d.cts → types-BwBvJkY_.d.cts} +2 -2
  195. package/dist/{types-DNnaR-86.d.ts → types-BwBvJkY_.d.ts} +2 -2
  196. package/package.json +7 -6
  197. package/dist/access-token-4WG44JE6.js +0 -87
  198. package/dist/access-token-IWRB3AQC.cjs +0 -87
  199. package/dist/address-RCFHYZ32.cjs +0 -82
  200. package/dist/address-YDZSS2Q2.js +0 -82
  201. package/dist/address-suggestions-44CVMN3H.js +0 -130
  202. package/dist/address-suggestions-RQNIFLF6.cjs +0 -130
  203. package/dist/ai-agents-7WY6J45W.js +0 -213
  204. package/dist/ai-agents-TIBOWGRB.cjs +0 -213
  205. package/dist/apis/discussion.cjs +0 -32
  206. package/dist/apis/discussion.d.cts +0 -18
  207. package/dist/apis/discussion.d.ts +0 -18
  208. package/dist/apis/discussion.js +0 -32
  209. package/dist/app-BUVEXAK3.js +0 -571
  210. package/dist/app-SWOVCSF6.cjs +0 -571
  211. package/dist/audit-logs-EZF74KKE.js +0 -53
  212. package/dist/audit-logs-ZNE4XISB.cjs +0 -53
  213. package/dist/automation-F4AXMRUS.cjs +0 -280
  214. package/dist/automation-NSOLJEPW.js +0 -280
  215. package/dist/billing-FXH4A3ET.cjs +0 -173
  216. package/dist/billing-PW2UJOFR.js +0 -173
  217. package/dist/blueprint-manifest-N4UM55KM.cjs +0 -502
  218. package/dist/blueprint-manifest-U3DMIHGW.js +0 -502
  219. package/dist/consent-NL2FMBRZ.js +0 -82
  220. package/dist/consent-XLVBVWHP.cjs +0 -82
  221. package/dist/customer-portal-6NZR53MJ.cjs +0 -2250
  222. package/dist/customer-portal-PXA64RS2.js +0 -2250
  223. package/dist/data-management-7VCKRRKT.cjs +0 -238
  224. package/dist/data-management-CWNNHKNR.js +0 -238
  225. package/dist/deduplication-AHDZHLWJ.cjs +0 -40
  226. package/dist/deduplication-UNYDU6FC.js +0 -40
  227. package/dist/design-GTK6ERS7.js +0 -217
  228. package/dist/design-HINGIGZM.cjs +0 -217
  229. package/dist/discussion-5AQSWLCJ.js +0 -132
  230. package/dist/discussion-ZHZII3JN.cjs +0 -132
  231. package/dist/discussion.d-DQucoYl_.d.cts +0 -579
  232. package/dist/discussion.d-DQucoYl_.d.ts +0 -579
  233. package/dist/document-3DJGB6C5.cjs +0 -76
  234. package/dist/document-4EBYTKOK.js +0 -76
  235. package/dist/email-settings-37WEBRIE.cjs +0 -531
  236. package/dist/email-settings-WYXVYZA5.js +0 -531
  237. package/dist/email-template-AJGRNOGO.cjs +0 -120
  238. package/dist/email-template-L3LCVGGX.js +0 -120
  239. package/dist/entity-FK3QEH7K.cjs +0 -1598
  240. package/dist/entity-VCBDLBZ5.js +0 -1598
  241. package/dist/entity-mapping-LEEXGKNQ.js +0 -213
  242. package/dist/entity-mapping-OIA23UV2.cjs +0 -213
  243. package/dist/environments-NX2KO6PH.js +0 -69
  244. package/dist/environments-PDN2RNB6.cjs +0 -69
  245. package/dist/erp-integration-C7XAKQOQ.cjs +0 -584
  246. package/dist/erp-integration-TA23TPTK.js +0 -584
  247. package/dist/event-catalog-CXGU2MWM.js +0 -128
  248. package/dist/event-catalog-JHJU3EPR.cjs +0 -128
  249. package/dist/file-FIIYM6KO.cjs +0 -571
  250. package/dist/file-GRLGXATS.js +0 -571
  251. package/dist/iban-IQH45QEI.js +0 -41
  252. package/dist/iban-YHV77AIE.cjs +0 -41
  253. package/dist/journey-B5Q2FQUI.cjs +0 -268
  254. package/dist/journey-XW3RJCI3.js +0 -268
  255. package/dist/kanban-4LZGTSAF.cjs +0 -162
  256. package/dist/kanban-NRSJ6S4X.js +0 -162
  257. package/dist/message-IV6F3CN5.cjs +0 -671
  258. package/dist/message-VYRBWAWQ.js +0 -671
  259. package/dist/metering-BOIQK6LV.js +0 -397
  260. package/dist/metering-WJVI6BHJ.cjs +0 -397
  261. package/dist/notes-XXYAHYEC.js +0 -217
  262. package/dist/notes-ZQR635GX.cjs +0 -217
  263. package/dist/notification-7APLCFR5.cjs +0 -235
  264. package/dist/notification-B634CDPT.js +0 -235
  265. package/dist/organization-BXJ2BPQB.cjs +0 -116
  266. package/dist/organization-WGTTJC22.js +0 -116
  267. package/dist/partner-directory-IHOFVMEK.cjs +0 -280
  268. package/dist/partner-directory-K6CQVWVG.js +0 -280
  269. package/dist/permissions-J7BIGOLO.cjs +0 -176
  270. package/dist/permissions-XRJ6WEZR.js +0 -176
  271. package/dist/pricing-GSIASLCP.cjs +0 -437
  272. package/dist/pricing-VVOEIVQC.js +0 -437
  273. package/dist/pricing-tier-NHXSXS7D.cjs +0 -34
  274. package/dist/pricing-tier-U5KRZDL2.js +0 -34
  275. package/dist/purpose-K655DFAO.js +0 -178
  276. package/dist/purpose-XH2OQHGH.cjs +0 -178
  277. package/dist/sandbox-4DRHKRB6.cjs +0 -98
  278. package/dist/sandbox-PV747LWK.js +0 -98
  279. package/dist/submission-7NPVVBLM.js +0 -53
  280. package/dist/submission-RUDXWIRC.cjs +0 -53
  281. package/dist/targeting-4ID5YPCA.js +0 -273
  282. package/dist/targeting-DOARNZSZ.cjs +0 -273
  283. package/dist/template-variables-HAYGELOR.cjs +0 -157
  284. package/dist/template-variables-XSEX25IR.js +0 -157
  285. package/dist/user-DPU5W4TD.cjs +0 -486
  286. package/dist/user-HJCIYGFV.js +0 -486
  287. package/dist/validation-rules-2Z3W27TI.js +0 -118
  288. package/dist/validation-rules-STLI5T53.cjs +0 -118
  289. package/dist/webhooks-OYG6A7LP.js +0 -250
  290. package/dist/webhooks-QV777IJ3.cjs +0 -250
  291. package/dist/workflow-3PROUTPA.js +0 -400
  292. package/dist/workflow-STQM54XS.cjs +0 -400
  293. package/dist/workflow-definition-3VVAPDSE.cjs +0 -340
  294. package/dist/workflow-definition-WEU344MV.js +0 -340
@@ -1,25 +1,418 @@
1
1
  import {
2
+ __commonJS,
2
3
  authorize,
3
4
  createApiClient,
4
5
  createApiHandle
5
- } from "../chunk-UCDXDIUX.js";
6
+ } from "../chunk-DGCGLG7G.js";
7
+
8
+ // src/definitions/workflow.json
9
+ var require_workflow = __commonJS({
10
+ "src/definitions/workflow.json"(exports, module) {
11
+ module.exports = {
12
+ openapi: "3.0.0",
13
+ info: {
14
+ title: "",
15
+ version: ""
16
+ },
17
+ servers: [
18
+ {
19
+ url: "https://workflows-execution.sls.epilot.io"
20
+ }
21
+ ],
22
+ paths: {
23
+ "/v1/workflows/executions": {
24
+ get: {
25
+ operationId: "getExecutions",
26
+ parameters: [
27
+ {
28
+ in: "query",
29
+ name: "context",
30
+ required: false
31
+ },
32
+ {
33
+ in: "query",
34
+ name: "schema",
35
+ required: false
36
+ }
37
+ ],
38
+ responses: {}
39
+ },
40
+ post: {
41
+ operationId: "createExecution",
42
+ requestBody: {
43
+ required: true,
44
+ content: {
45
+ "application/json": {}
46
+ }
47
+ },
48
+ responses: {}
49
+ }
50
+ },
51
+ "/v1/workflows/executions/{executionId}": {
52
+ get: {
53
+ operationId: "getExecution",
54
+ parameters: [
55
+ {
56
+ in: "path",
57
+ name: "executionId",
58
+ required: true
59
+ }
60
+ ],
61
+ responses: {}
62
+ },
63
+ patch: {
64
+ operationId: "updateExecution",
65
+ parameters: [
66
+ {
67
+ in: "path",
68
+ name: "executionId",
69
+ required: true
70
+ }
71
+ ],
72
+ requestBody: {
73
+ required: true,
74
+ content: {
75
+ "application/json": {}
76
+ }
77
+ },
78
+ responses: {}
79
+ },
80
+ delete: {
81
+ operationId: "deleteExecution",
82
+ parameters: [
83
+ {
84
+ in: "path",
85
+ name: "executionId",
86
+ required: true
87
+ }
88
+ ],
89
+ responses: {}
90
+ }
91
+ },
92
+ "/v1/workflows/executions/{executionId}/steps": {
93
+ post: {
94
+ operationId: "createStep",
95
+ parameters: [
96
+ {
97
+ in: "path",
98
+ name: "executionId",
99
+ required: true
100
+ }
101
+ ],
102
+ requestBody: {
103
+ required: true,
104
+ content: {
105
+ "application/json": {}
106
+ }
107
+ },
108
+ responses: {}
109
+ }
110
+ },
111
+ "/v1/workflows/executions/{executionId}/steps/{stepId}": {
112
+ patch: {
113
+ operationId: "updateStep",
114
+ parameters: [
115
+ {
116
+ in: "path",
117
+ name: "executionId",
118
+ required: true
119
+ },
120
+ {
121
+ in: "path",
122
+ name: "stepId",
123
+ required: true
124
+ }
125
+ ],
126
+ requestBody: {
127
+ required: true,
128
+ content: {
129
+ "application/json": {}
130
+ }
131
+ },
132
+ responses: {}
133
+ },
134
+ delete: {
135
+ operationId: "deleteStep",
136
+ parameters: [
137
+ {
138
+ in: "path",
139
+ name: "executionId",
140
+ required: true
141
+ },
142
+ {
143
+ in: "path",
144
+ name: "stepId",
145
+ required: true
146
+ }
147
+ ],
148
+ responses: {}
149
+ }
150
+ },
151
+ "/v1/workflows/executions/search": {
152
+ post: {
153
+ deprecated: true,
154
+ operationId: "searchExecutions",
155
+ requestBody: {
156
+ required: true,
157
+ content: {
158
+ "application/json": {}
159
+ }
160
+ },
161
+ responses: {}
162
+ }
163
+ },
164
+ "/v1/workflows/executions/steps/search": {
165
+ post: {
166
+ deprecated: true,
167
+ operationId: "searchSteps",
168
+ requestBody: {
169
+ required: true,
170
+ content: {
171
+ "application/json": {}
172
+ }
173
+ },
174
+ responses: {}
175
+ }
176
+ },
177
+ "/v1/workflows/executions/{executionId}/closing-reasons": {
178
+ get: {
179
+ operationId: "getClosingReasonExecution",
180
+ parameters: [
181
+ {
182
+ in: "path",
183
+ name: "executionId",
184
+ required: true
185
+ }
186
+ ],
187
+ responses: {}
188
+ }
189
+ },
190
+ "/v2/flows/executions": {
191
+ post: {
192
+ operationId: "startFlowExecution",
193
+ requestBody: {
194
+ required: true,
195
+ content: {
196
+ "application/json": {}
197
+ }
198
+ },
199
+ responses: {}
200
+ }
201
+ },
202
+ "/v2/flows/executions/{execution_id}": {
203
+ get: {
204
+ operationId: "getFlowExecution",
205
+ parameters: [
206
+ {
207
+ $ref: "#/components/parameters/ExecutionIdParam"
208
+ }
209
+ ],
210
+ responses: {}
211
+ },
212
+ patch: {
213
+ operationId: "patchFlowExecution",
214
+ parameters: [
215
+ {
216
+ $ref: "#/components/parameters/ExecutionIdParam"
217
+ }
218
+ ],
219
+ requestBody: {
220
+ required: true,
221
+ content: {
222
+ "application/json": {}
223
+ }
224
+ },
225
+ responses: {}
226
+ },
227
+ delete: {
228
+ operationId: "deleteFlowExecution",
229
+ parameters: [
230
+ {
231
+ $ref: "#/components/parameters/ExecutionIdParam"
232
+ },
233
+ {
234
+ $ref: "#/components/parameters/SoftDeleteParam"
235
+ }
236
+ ],
237
+ responses: {}
238
+ }
239
+ },
240
+ "/v2/flows/executions:search": {
241
+ post: {
242
+ operationId: "searchFlowExecutions",
243
+ requestBody: {
244
+ required: true,
245
+ content: {
246
+ "application/json": {}
247
+ }
248
+ },
249
+ responses: {}
250
+ }
251
+ },
252
+ "/v2/flows/executions/{execution_id}/tasks/{task_id}": {
253
+ patch: {
254
+ operationId: "patchTask",
255
+ parameters: [
256
+ {
257
+ $ref: "#/components/parameters/ExecutionIdParam"
258
+ },
259
+ {
260
+ $ref: "#/components/parameters/TaskIdParam"
261
+ }
262
+ ],
263
+ requestBody: {
264
+ required: true,
265
+ content: {
266
+ "application/json": {}
267
+ }
268
+ },
269
+ responses: {}
270
+ }
271
+ },
272
+ "/v2/flows/executions/{execution_id}/tasks/{task_id}/automation:run": {
273
+ post: {
274
+ operationId: "runTaskAutomation",
275
+ parameters: [
276
+ {
277
+ $ref: "#/components/parameters/ExecutionIdParam"
278
+ },
279
+ {
280
+ $ref: "#/components/parameters/TaskIdParam"
281
+ }
282
+ ],
283
+ responses: {}
284
+ }
285
+ },
286
+ "/v2/flows/executions/{execution_id}/tasks/{task_id}/execute": {
287
+ post: {
288
+ operationId: "executeTask",
289
+ parameters: [
290
+ {
291
+ $ref: "#/components/parameters/ExecutionIdParam"
292
+ },
293
+ {
294
+ $ref: "#/components/parameters/TaskIdParam"
295
+ }
296
+ ],
297
+ responses: {}
298
+ }
299
+ },
300
+ "/v2/flows/executions/{execution_id}/phases/{phase_id}": {
301
+ patch: {
302
+ operationId: "patchPhase",
303
+ parameters: [
304
+ {
305
+ $ref: "#/components/parameters/ExecutionIdParam"
306
+ },
307
+ {
308
+ $ref: "#/components/parameters/PhaseIdParam"
309
+ }
310
+ ],
311
+ requestBody: {
312
+ required: true,
313
+ content: {
314
+ "application/json": {}
315
+ }
316
+ },
317
+ responses: {}
318
+ }
319
+ },
320
+ "/v2/flows/executions/{execution_id}/tasks": {
321
+ post: {
322
+ operationId: "addTask",
323
+ parameters: [
324
+ {
325
+ $ref: "#/components/parameters/ExecutionIdParam"
326
+ }
327
+ ],
328
+ requestBody: {
329
+ required: true,
330
+ content: {
331
+ "application/json": {}
332
+ }
333
+ },
334
+ responses: {}
335
+ }
336
+ },
337
+ "/v2/flows/executions/{execution_id}/tasks/{task_id}/schedule": {
338
+ delete: {
339
+ operationId: "cancelTaskSchedule",
340
+ parameters: [
341
+ {
342
+ $ref: "#/components/parameters/ExecutionIdParam"
343
+ },
344
+ {
345
+ $ref: "#/components/parameters/TaskIdParam"
346
+ }
347
+ ],
348
+ responses: {}
349
+ }
350
+ },
351
+ "/v2/flows/executions/{execution_id}/schedules/{schedule_id}": {
352
+ post: {
353
+ operationId: "cancelSchedule",
354
+ deprecated: true,
355
+ parameters: [
356
+ {
357
+ $ref: "#/components/parameters/ExecutionIdParam"
358
+ },
359
+ {
360
+ $ref: "#/components/parameters/ScheduleIdParam"
361
+ }
362
+ ],
363
+ responses: {}
364
+ }
365
+ }
366
+ },
367
+ components: {
368
+ parameters: {
369
+ ExecutionIdParam: {
370
+ in: "path",
371
+ name: "execution_id",
372
+ required: true
373
+ },
374
+ TaskIdParam: {
375
+ in: "path",
376
+ name: "task_id",
377
+ required: true
378
+ },
379
+ PhaseIdParam: {
380
+ in: "path",
381
+ name: "phase_id",
382
+ required: true
383
+ },
384
+ ScheduleIdParam: {
385
+ in: "path",
386
+ name: "schedule_id",
387
+ required: true
388
+ },
389
+ SoftDeleteParam: {
390
+ in: "query",
391
+ name: "soft",
392
+ required: false
393
+ }
394
+ }
395
+ }
396
+ };
397
+ }
398
+ });
6
399
 
7
400
  // src/apis/workflow.ts
8
- var loadDefinition = async () => {
9
- const mod = await import("../workflow-3PROUTPA.js");
401
+ var loadDefinition = () => {
402
+ const mod = require_workflow();
10
403
  return mod.default ?? mod;
11
404
  };
12
405
  var _instance = null;
13
- var resolve = async () => {
406
+ var resolve = () => {
14
407
  if (!_instance) {
15
- const definition = await loadDefinition();
408
+ const definition = loadDefinition();
16
409
  _instance = createApiClient({ definition });
17
410
  }
18
411
  return _instance;
19
412
  };
20
413
  var _handle = createApiHandle({
21
414
  resolveClient: resolve,
22
- loadDefinition
415
+ createClient: () => createApiClient({ definition: loadDefinition() })
23
416
  });
24
417
  var getClient = _handle.getClient;
25
418
  var createClient = _handle.createClient;
@@ -1,4 +1,15 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/authorize.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var __getOwnPropNames = Object.getOwnPropertyNames;
2
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
3
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
4
+ }) : x)(function(x) {
5
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
+ throw Error('Dynamic require of "' + x + '" is not supported');
7
+ });
8
+ var __commonJS = (cb, mod) => function __require2() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+
12
+ // src/authorize.ts
2
13
  var authorize = (client, token) => {
3
14
  if (typeof token === "string") {
4
15
  client.defaults.headers.common.authorization = `Bearer ${token}`;
@@ -32,28 +43,26 @@ var createApiClient = (params) => {
32
43
 
33
44
  // src/proxy.ts
34
45
  var createApiHandle = (params) => {
35
- const { resolveClient, loadDefinition } = params;
46
+ const { resolveClient, createClient } = params;
36
47
  return new Proxy({}, {
37
48
  get(_, prop) {
38
49
  if (prop === "getClient") {
39
50
  return () => resolveClient();
40
51
  }
41
52
  if (prop === "createClient") {
42
- return async () => {
43
- const definition = await loadDefinition();
44
- return createApiClient({ definition });
45
- };
53
+ return () => createClient();
46
54
  }
47
55
  if (prop === "then" || prop === "catch" || prop === "finally") {
48
56
  return void 0;
49
57
  }
50
- return (...args) => resolveClient().then((client) => {
58
+ return (...args) => {
59
+ const client = resolveClient();
51
60
  const method = client[prop];
52
61
  if (typeof method === "function") {
53
62
  return method.apply(client, args);
54
63
  }
55
64
  return method;
56
- });
65
+ };
57
66
  }
58
67
  });
59
68
  };
@@ -62,4 +71,6 @@ var createApiHandle = (params) => {
62
71
 
63
72
 
64
73
 
65
- exports.authorize = authorize; exports.createApiClient = createApiClient; exports.createApiHandle = createApiHandle;
74
+
75
+
76
+ exports.__require = __require; exports.__commonJS = __commonJS; exports.authorize = authorize; exports.createApiClient = createApiClient; exports.createApiHandle = createApiHandle;
@@ -1,3 +1,14 @@
1
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
3
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
4
+ }) : x)(function(x) {
5
+ if (typeof require !== "undefined") return require.apply(this, arguments);
6
+ throw Error('Dynamic require of "' + x + '" is not supported');
7
+ });
8
+ var __commonJS = (cb, mod) => function __require2() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+
1
12
  // src/authorize.ts
2
13
  var authorize = (client, token) => {
3
14
  if (typeof token === "string") {
@@ -32,33 +43,33 @@ var createApiClient = (params) => {
32
43
 
33
44
  // src/proxy.ts
34
45
  var createApiHandle = (params) => {
35
- const { resolveClient, loadDefinition } = params;
46
+ const { resolveClient, createClient } = params;
36
47
  return new Proxy({}, {
37
48
  get(_, prop) {
38
49
  if (prop === "getClient") {
39
50
  return () => resolveClient();
40
51
  }
41
52
  if (prop === "createClient") {
42
- return async () => {
43
- const definition = await loadDefinition();
44
- return createApiClient({ definition });
45
- };
53
+ return () => createClient();
46
54
  }
47
55
  if (prop === "then" || prop === "catch" || prop === "finally") {
48
56
  return void 0;
49
57
  }
50
- return (...args) => resolveClient().then((client) => {
58
+ return (...args) => {
59
+ const client = resolveClient();
51
60
  const method = client[prop];
52
61
  if (typeof method === "function") {
53
62
  return method.apply(client, args);
54
63
  }
55
64
  return method;
56
- });
65
+ };
57
66
  }
58
67
  });
59
68
  };
60
69
 
61
70
  export {
71
+ __require,
72
+ __commonJS,
62
73
  authorize,
63
74
  createApiClient,
64
75
  createApiHandle