@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,268 @@
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/webhooks.json
9
+ var require_webhooks = __commonJS({
10
+ "src/definitions/webhooks.json"(exports, module) {
11
+ module.exports = {
12
+ openapi: "3.0.0",
13
+ info: {
14
+ title: "",
15
+ version: ""
16
+ },
17
+ paths: {
18
+ "/v1/webhooks/.well-known/public-key": {
19
+ get: {
20
+ operationId: "getPublicKey",
21
+ parameters: [
22
+ {
23
+ in: "query",
24
+ name: "orgId",
25
+ required: true
26
+ }
27
+ ],
28
+ responses: {}
29
+ }
30
+ },
31
+ "/v1/webhooks/configured-events": {
32
+ get: {
33
+ operationId: "getConfiguredEvents",
34
+ responses: {}
35
+ }
36
+ },
37
+ "/v1/webhooks/configs": {
38
+ get: {
39
+ operationId: "getConfigs",
40
+ parameters: [
41
+ {
42
+ in: "query",
43
+ name: "eventName",
44
+ required: false
45
+ }
46
+ ],
47
+ responses: {}
48
+ },
49
+ post: {
50
+ operationId: "createConfig",
51
+ requestBody: {
52
+ required: true,
53
+ content: {
54
+ "application/json": {}
55
+ }
56
+ },
57
+ responses: {}
58
+ }
59
+ },
60
+ "/v1/webhooks/configs/{configId}": {
61
+ get: {
62
+ operationId: "getConfig",
63
+ parameters: [
64
+ {
65
+ in: "path",
66
+ name: "configId",
67
+ required: true
68
+ }
69
+ ],
70
+ responses: {}
71
+ },
72
+ put: {
73
+ operationId: "updateConfig",
74
+ parameters: [
75
+ {
76
+ in: "path",
77
+ name: "configId",
78
+ required: true
79
+ }
80
+ ],
81
+ requestBody: {
82
+ required: true,
83
+ content: {
84
+ "application/json": {}
85
+ }
86
+ },
87
+ responses: {}
88
+ },
89
+ delete: {
90
+ operationId: "deleteConfig",
91
+ parameters: [
92
+ {
93
+ in: "path",
94
+ name: "configId",
95
+ required: true
96
+ }
97
+ ],
98
+ responses: {}
99
+ }
100
+ },
101
+ "/v1/webhooks/configs/{configId}/trigger": {
102
+ post: {
103
+ operationId: "triggerWebhook",
104
+ parameters: [
105
+ {
106
+ in: "query",
107
+ name: "sync"
108
+ },
109
+ {
110
+ in: "path",
111
+ name: "configId",
112
+ required: true
113
+ }
114
+ ],
115
+ requestBody: {
116
+ required: true,
117
+ content: {
118
+ "application/json": {}
119
+ }
120
+ },
121
+ responses: {}
122
+ }
123
+ },
124
+ "/v1/webhooks/configs/{configId}/events": {
125
+ get: {
126
+ deprecated: true,
127
+ operationId: "getWehookEvents",
128
+ parameters: [
129
+ {
130
+ in: "path",
131
+ name: "configId",
132
+ required: true
133
+ },
134
+ {
135
+ in: "query",
136
+ name: "status"
137
+ },
138
+ {
139
+ in: "query",
140
+ name: "cursor",
141
+ required: false
142
+ }
143
+ ],
144
+ responses: {}
145
+ }
146
+ },
147
+ "/v1/webhooks/configs/{configId}/events/replay-batch": {
148
+ post: {
149
+ operationId: "batchReplayEvents",
150
+ parameters: [
151
+ {
152
+ in: "path",
153
+ name: "configId",
154
+ required: true
155
+ }
156
+ ],
157
+ requestBody: {
158
+ required: true,
159
+ content: {
160
+ "application/json": {}
161
+ }
162
+ },
163
+ responses: {}
164
+ }
165
+ },
166
+ "/v1/webhooks/configs/{configId}/events/{eventId}": {
167
+ get: {
168
+ operationId: "getEventById",
169
+ parameters: [
170
+ {
171
+ in: "path",
172
+ name: "configId",
173
+ required: true
174
+ },
175
+ {
176
+ in: "path",
177
+ name: "eventId",
178
+ required: true
179
+ }
180
+ ],
181
+ responses: {}
182
+ }
183
+ },
184
+ "/v1/webhooks/configs/{configId}/events/{eventId}/replay": {
185
+ post: {
186
+ operationId: "replayEvent",
187
+ parameters: [
188
+ {
189
+ in: "path",
190
+ name: "configId",
191
+ required: true
192
+ },
193
+ {
194
+ in: "path",
195
+ name: "eventId",
196
+ required: true
197
+ }
198
+ ],
199
+ responses: {}
200
+ }
201
+ },
202
+ "/v1/webhooks/configs/{configId}/example": {
203
+ post: {
204
+ operationId: "getWebhookExample",
205
+ parameters: [
206
+ {
207
+ in: "path",
208
+ name: "configId",
209
+ required: true
210
+ }
211
+ ],
212
+ requestBody: {
213
+ required: true,
214
+ content: {
215
+ "application/json": {}
216
+ }
217
+ },
218
+ responses: {}
219
+ }
220
+ },
221
+ "/v2/webhooks/configs/{configId}/events": {
222
+ post: {
223
+ operationId: "getWebhookEventsV2",
224
+ parameters: [
225
+ {
226
+ in: "path",
227
+ name: "configId",
228
+ required: true
229
+ }
230
+ ],
231
+ requestBody: {
232
+ content: {
233
+ "application/json": {}
234
+ }
235
+ },
236
+ responses: {}
237
+ }
238
+ }
239
+ },
240
+ components: {},
241
+ servers: [
242
+ {
243
+ url: "https://webhooks.sls.epilot.io"
244
+ }
245
+ ]
246
+ };
247
+ }
248
+ });
6
249
 
7
250
  // src/apis/webhooks.ts
8
- var loadDefinition = async () => {
9
- const mod = await import("../webhooks-OYG6A7LP.js");
251
+ var loadDefinition = () => {
252
+ const mod = require_webhooks();
10
253
  return mod.default ?? mod;
11
254
  };
12
255
  var _instance = null;
13
- var resolve = async () => {
256
+ var resolve = () => {
14
257
  if (!_instance) {
15
- const definition = await loadDefinition();
258
+ const definition = loadDefinition();
16
259
  _instance = createApiClient({ definition });
17
260
  }
18
261
  return _instance;
19
262
  };
20
263
  var _handle = createApiHandle({
21
264
  resolveClient: resolve,
22
- loadDefinition
265
+ createClient: () => createApiClient({ definition: loadDefinition() })
23
266
  });
24
267
  var getClient = _handle.getClient;
25
268
  var createClient = _handle.createClient;
@@ -1,25 +1,358 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
4
 
5
- var _chunkYYLPAGF4cjs = require('../chunk-YYLPAGF4.cjs');
5
+
6
+ var _chunkD7ICL3AMcjs = require('../chunk-D7ICL3AM.cjs');
7
+
8
+ // src/definitions/workflow-definition.json
9
+ var require_workflow_definition = _chunkD7ICL3AMcjs.__commonJS.call(void 0, {
10
+ "src/definitions/workflow-definition.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-definition.sls.epilot.io"
20
+ }
21
+ ],
22
+ paths: {
23
+ "/v1/workflows/limits/max-allowed": {
24
+ get: {
25
+ operationId: "getMaxAllowedLimit",
26
+ responses: {}
27
+ }
28
+ },
29
+ "/v1/workflows/definitions": {
30
+ get: {
31
+ operationId: "getDefinitions",
32
+ responses: {}
33
+ },
34
+ post: {
35
+ operationId: "createDefinition",
36
+ requestBody: {
37
+ required: true,
38
+ content: {
39
+ "application/json": {}
40
+ }
41
+ },
42
+ responses: {}
43
+ }
44
+ },
45
+ "/v2/flows/templates": {
46
+ get: {
47
+ operationId: "listFlowTemplates",
48
+ parameters: [
49
+ {
50
+ in: "query",
51
+ name: "trigger_type",
52
+ required: false
53
+ },
54
+ {
55
+ in: "query",
56
+ name: "trigger_source_id",
57
+ required: false
58
+ },
59
+ {
60
+ in: "query",
61
+ name: "trigger_schema",
62
+ required: false
63
+ }
64
+ ],
65
+ responses: {}
66
+ },
67
+ post: {
68
+ operationId: "createFlowTemplate",
69
+ requestBody: {
70
+ required: true,
71
+ content: {
72
+ "application/json": {}
73
+ }
74
+ },
75
+ responses: {}
76
+ }
77
+ },
78
+ "/v2/flows/templates:search": {
79
+ post: {
80
+ operationId: "searchFlowTemplates",
81
+ requestBody: {
82
+ required: true,
83
+ content: {
84
+ "application/json": {}
85
+ }
86
+ },
87
+ responses: {}
88
+ }
89
+ },
90
+ "/v2/flows/templates/{flowId}": {
91
+ get: {
92
+ operationId: "getFlowTemplate",
93
+ parameters: [
94
+ {
95
+ in: "path",
96
+ name: "flowId",
97
+ required: true
98
+ }
99
+ ],
100
+ responses: {}
101
+ },
102
+ put: {
103
+ operationId: "updateFlowTemplate",
104
+ parameters: [
105
+ {
106
+ in: "path",
107
+ name: "flowId",
108
+ required: true
109
+ }
110
+ ],
111
+ requestBody: {
112
+ required: true,
113
+ content: {
114
+ "application/json": {}
115
+ }
116
+ },
117
+ responses: {}
118
+ },
119
+ delete: {
120
+ operationId: "deleteFlowTemplate",
121
+ parameters: [
122
+ {
123
+ in: "path",
124
+ name: "flowId",
125
+ required: true
126
+ }
127
+ ],
128
+ responses: {}
129
+ }
130
+ },
131
+ "/v2/flows/templates/{flowId}/duplicate": {
132
+ post: {
133
+ operationId: "duplicateFlowTemplate",
134
+ parameters: [
135
+ {
136
+ in: "path",
137
+ name: "flowId",
138
+ required: true
139
+ }
140
+ ],
141
+ responses: {}
142
+ }
143
+ },
144
+ "/v2/flows/templates/{flowId}/export": {
145
+ get: {
146
+ operationId: "exportFlowTemplate",
147
+ parameters: [
148
+ {
149
+ in: "path",
150
+ name: "flowId",
151
+ required: true
152
+ }
153
+ ],
154
+ responses: {}
155
+ }
156
+ },
157
+ "/v2/flows/templates/import": {
158
+ post: {
159
+ operationId: "importFlowTemplate",
160
+ requestBody: {
161
+ required: true,
162
+ content: {
163
+ "application/json": {}
164
+ }
165
+ },
166
+ responses: {}
167
+ }
168
+ },
169
+ "/v1/workflows/definitions/{definitionId}": {
170
+ get: {
171
+ operationId: "getDefinition",
172
+ parameters: [
173
+ {
174
+ in: "path",
175
+ name: "definitionId",
176
+ required: true
177
+ }
178
+ ],
179
+ responses: {}
180
+ },
181
+ put: {
182
+ operationId: "updateDefinition",
183
+ parameters: [
184
+ {
185
+ in: "path",
186
+ name: "definitionId",
187
+ required: true
188
+ }
189
+ ],
190
+ requestBody: {
191
+ required: true,
192
+ content: {
193
+ "application/json": {}
194
+ }
195
+ },
196
+ responses: {}
197
+ },
198
+ delete: {
199
+ operationId: "deleteDefinition",
200
+ parameters: [
201
+ {
202
+ in: "path",
203
+ name: "definitionId",
204
+ required: true
205
+ }
206
+ ],
207
+ responses: {}
208
+ }
209
+ },
210
+ "/v1/workflows/closing-reasons": {
211
+ get: {
212
+ operationId: "getAllClosingReasons",
213
+ parameters: [
214
+ {
215
+ in: "query",
216
+ name: "includeInactive",
217
+ required: false
218
+ }
219
+ ],
220
+ responses: {}
221
+ },
222
+ post: {
223
+ operationId: "createClosingReason",
224
+ requestBody: {
225
+ required: true,
226
+ content: {
227
+ "application/json": {}
228
+ }
229
+ },
230
+ responses: {}
231
+ }
232
+ },
233
+ "/v2/workflows/closing-reasons/{reasonId}": {
234
+ get: {
235
+ operationId: "getClosingReason",
236
+ parameters: [
237
+ {
238
+ in: "path",
239
+ name: "reasonId",
240
+ required: true
241
+ }
242
+ ],
243
+ responses: {}
244
+ },
245
+ patch: {
246
+ operationId: "updateClosingReason",
247
+ parameters: [
248
+ {
249
+ in: "path",
250
+ name: "reasonId",
251
+ required: true
252
+ }
253
+ ],
254
+ requestBody: {
255
+ required: true,
256
+ content: {
257
+ "application/json": {}
258
+ }
259
+ },
260
+ responses: {}
261
+ },
262
+ delete: {
263
+ operationId: "deleteClosingReason",
264
+ parameters: [
265
+ {
266
+ in: "path",
267
+ name: "reasonId",
268
+ required: true
269
+ }
270
+ ],
271
+ responses: {}
272
+ }
273
+ },
274
+ "/v1/workflows/closing-reasons/{reasonId}": {
275
+ get: {
276
+ deprecated: true,
277
+ operationId: "getClosingReasonV1",
278
+ parameters: [
279
+ {
280
+ in: "path",
281
+ name: "reasonId",
282
+ required: true
283
+ }
284
+ ],
285
+ responses: {}
286
+ },
287
+ patch: {
288
+ operationId: "changeReasonStatus",
289
+ parameters: [
290
+ {
291
+ in: "path",
292
+ name: "reasonId",
293
+ required: true
294
+ }
295
+ ],
296
+ requestBody: {
297
+ content: {
298
+ "application/json": {}
299
+ }
300
+ },
301
+ responses: {}
302
+ }
303
+ },
304
+ "/v1/workflows/definitions/{definitionId}/closing-reasons": {
305
+ get: {
306
+ operationId: "getWorkflowClosingReasons",
307
+ parameters: [
308
+ {
309
+ in: "path",
310
+ name: "definitionId",
311
+ required: true
312
+ }
313
+ ],
314
+ responses: {}
315
+ },
316
+ patch: {
317
+ operationId: "setWorkflowClosingReasons",
318
+ parameters: [
319
+ {
320
+ in: "path",
321
+ name: "definitionId",
322
+ required: true
323
+ }
324
+ ],
325
+ requestBody: {
326
+ required: true,
327
+ content: {
328
+ "application/json": {}
329
+ }
330
+ },
331
+ responses: {}
332
+ }
333
+ }
334
+ },
335
+ components: {}
336
+ };
337
+ }
338
+ });
6
339
 
7
340
  // src/apis/workflow-definition.ts
8
- var loadDefinition = async () => {
9
- const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("../workflow-definition-3VVAPDSE.cjs")));
341
+ var loadDefinition = () => {
342
+ const mod = require_workflow_definition();
10
343
  return _nullishCoalesce(mod.default, () => ( mod));
11
344
  };
12
345
  var _instance = null;
13
- var resolve = async () => {
346
+ var resolve = () => {
14
347
  if (!_instance) {
15
- const definition = await loadDefinition();
16
- _instance = _chunkYYLPAGF4cjs.createApiClient.call(void 0, { definition });
348
+ const definition = loadDefinition();
349
+ _instance = _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition });
17
350
  }
18
351
  return _instance;
19
352
  };
20
- var _handle = _chunkYYLPAGF4cjs.createApiHandle.call(void 0, {
353
+ var _handle = _chunkD7ICL3AMcjs.createApiHandle.call(void 0, {
21
354
  resolveClient: resolve,
22
- loadDefinition
355
+ createClient: () => _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition: loadDefinition() })
23
356
  });
24
357
  var getClient = _handle.getClient;
25
358
  var createClient = _handle.createClient;
@@ -29,4 +362,4 @@ var workflowDefinition = _handle;
29
362
 
30
363
 
31
364
 
32
- exports.authorize = _chunkYYLPAGF4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
365
+ exports.authorize = _chunkD7ICL3AMcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflowDefinition = workflowDefinition;
@@ -1,14 +1,14 @@
1
- import { A as ApiHandle } from '../types-DNnaR-86.cjs';
2
- export { T as TokenArg, a as authorize } from '../types-DNnaR-86.cjs';
1
+ import { A as ApiHandle } from '../types-BwBvJkY_.cjs';
2
+ export { T as TokenArg, a as authorize } from '../types-BwBvJkY_.cjs';
3
3
  import { C as Client } from '../workflow-definition.d-CFXrp2Hg.cjs';
4
4
  export { A as ActionSchedule, a as AgentConfig, b as AiAgentTask, c as AutomationConfig, d as AutomationTask, e as AutomationTrigger, f as ChangeReasonStatusReq, g as ClosingReason, h as ClosingReasonId, i as ClosingReasonNotFoundResp, j as ClosingReasons, k as ClosingReasonsIds, l as ClosingReasonsStatus, m as Condition, n as CreateFlowTemplate, D as DecisionTask, o as DefinitionNotFoundResp, p as DelayedSchedule, q as DueDateConfig, r as DynamicDueDate, E as ECPDetails, s as Edge, t as EnableRequirement, u as EntitySync, v as ErrorResp, w as EvaluationSource, F as FlowTemplate, x as FlowTemplateBase, y as FlowTemplateExport, z as FlowTemplateId, B as FlowTemplateImportResult, G as FlowTemplatesList, I as ImmediateSchedule, H as ItemType, J as JourneyAutomationTrigger, K as JourneySubmissionTrigger, M as ManualTask, L as ManualTrigger, N as MaxAllowedLimit, O as OperationMethods, Q as Operator, P as PathsDictionary, R as Phase, S as RelativeSchedule, T as SearchFlowTemplates, U as Section, V as Statement, W as Step, X as StepDescription, Y as StepJourney, Z as StepRequirement, _ as StepType, $ as Task, a0 as TaskBase, a1 as TaskType, a2 as TimeUnit, a3 as Trigger, a4 as TriggerMode, a5 as TriggerType, a6 as UpdateEntityAttributes, a7 as VariableAssignment, a8 as Version, a9 as WorkflowDefinition } from '../workflow-definition.d-CFXrp2Hg.cjs';
5
5
  import 'axios';
6
6
  import 'openapi-client-axios';
7
7
 
8
8
  /** Get the cached singleton client (lazy-initialized on first call) */
9
- declare const getClient: () => Promise<Client>;
9
+ declare const getClient: () => Client;
10
10
  /** Create a fresh client instance (not cached) */
11
- declare const createClient: () => Promise<Client>;
11
+ declare const createClient: () => Client;
12
12
  /**
13
13
  * API handle — also exposes operations directly:
14
14
  * `workflowDefinition.someOperation(...)` calls forwarded to lazy singleton
@@ -1,14 +1,14 @@
1
- import { A as ApiHandle } from '../types-DNnaR-86.js';
2
- export { T as TokenArg, a as authorize } from '../types-DNnaR-86.js';
1
+ import { A as ApiHandle } from '../types-BwBvJkY_.js';
2
+ export { T as TokenArg, a as authorize } from '../types-BwBvJkY_.js';
3
3
  import { C as Client } from '../workflow-definition.d-CFXrp2Hg.js';
4
4
  export { A as ActionSchedule, a as AgentConfig, b as AiAgentTask, c as AutomationConfig, d as AutomationTask, e as AutomationTrigger, f as ChangeReasonStatusReq, g as ClosingReason, h as ClosingReasonId, i as ClosingReasonNotFoundResp, j as ClosingReasons, k as ClosingReasonsIds, l as ClosingReasonsStatus, m as Condition, n as CreateFlowTemplate, D as DecisionTask, o as DefinitionNotFoundResp, p as DelayedSchedule, q as DueDateConfig, r as DynamicDueDate, E as ECPDetails, s as Edge, t as EnableRequirement, u as EntitySync, v as ErrorResp, w as EvaluationSource, F as FlowTemplate, x as FlowTemplateBase, y as FlowTemplateExport, z as FlowTemplateId, B as FlowTemplateImportResult, G as FlowTemplatesList, I as ImmediateSchedule, H as ItemType, J as JourneyAutomationTrigger, K as JourneySubmissionTrigger, M as ManualTask, L as ManualTrigger, N as MaxAllowedLimit, O as OperationMethods, Q as Operator, P as PathsDictionary, R as Phase, S as RelativeSchedule, T as SearchFlowTemplates, U as Section, V as Statement, W as Step, X as StepDescription, Y as StepJourney, Z as StepRequirement, _ as StepType, $ as Task, a0 as TaskBase, a1 as TaskType, a2 as TimeUnit, a3 as Trigger, a4 as TriggerMode, a5 as TriggerType, a6 as UpdateEntityAttributes, a7 as VariableAssignment, a8 as Version, a9 as WorkflowDefinition } from '../workflow-definition.d-CFXrp2Hg.js';
5
5
  import 'axios';
6
6
  import 'openapi-client-axios';
7
7
 
8
8
  /** Get the cached singleton client (lazy-initialized on first call) */
9
- declare const getClient: () => Promise<Client>;
9
+ declare const getClient: () => Client;
10
10
  /** Create a fresh client instance (not cached) */
11
- declare const createClient: () => Promise<Client>;
11
+ declare const createClient: () => Client;
12
12
  /**
13
13
  * API handle — also exposes operations directly:
14
14
  * `workflowDefinition.someOperation(...)` calls forwarded to lazy singleton