@epilot/sdk 2.0.0-alpha.1 → 2.0.0-beta.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 (290) hide show
  1. package/README.md +123 -141
  2. package/dist/apis/access-token.cjs +90 -11
  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 -7
  6. package/dist/apis/address-suggestions.cjs +133 -11
  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 -7
  10. package/dist/apis/address.cjs +85 -11
  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 -7
  14. package/dist/apis/ai-agents.cjs +216 -11
  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 -7
  18. package/dist/apis/app.cjs +574 -11
  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 -7
  22. package/dist/apis/audit-logs.cjs +56 -11
  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 -7
  26. package/dist/apis/automation.cjs +283 -11
  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 -7
  30. package/dist/apis/billing.cjs +176 -11
  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 -7
  34. package/dist/apis/blueprint-manifest.cjs +505 -11
  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 -7
  38. package/dist/apis/consent.cjs +85 -11
  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 -7
  42. package/dist/apis/customer-portal.cjs +2253 -11
  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 -7
  46. package/dist/apis/data-management.cjs +241 -11
  47. package/dist/apis/data-management.d.cts +4 -4
  48. package/dist/apis/data-management.d.ts +4 -4
  49. package/dist/apis/data-management.js +237 -7
  50. package/dist/apis/deduplication.cjs +43 -11
  51. package/dist/apis/deduplication.d.cts +4 -4
  52. package/dist/apis/deduplication.d.ts +4 -4
  53. package/dist/apis/deduplication.js +39 -7
  54. package/dist/apis/design.cjs +220 -11
  55. package/dist/apis/design.d.cts +4 -4
  56. package/dist/apis/design.d.ts +4 -4
  57. package/dist/apis/design.js +216 -7
  58. package/dist/apis/document.cjs +79 -11
  59. package/dist/apis/document.d.cts +4 -4
  60. package/dist/apis/document.d.ts +4 -4
  61. package/dist/apis/document.js +75 -7
  62. package/dist/apis/email-settings.cjs +534 -11
  63. package/dist/apis/email-settings.d.cts +4 -4
  64. package/dist/apis/email-settings.d.ts +4 -4
  65. package/dist/apis/email-settings.js +530 -7
  66. package/dist/apis/email-template.cjs +123 -11
  67. package/dist/apis/email-template.d.cts +4 -4
  68. package/dist/apis/email-template.d.ts +4 -4
  69. package/dist/apis/email-template.js +119 -7
  70. package/dist/apis/entity-mapping.cjs +216 -11
  71. package/dist/apis/entity-mapping.d.cts +4 -4
  72. package/dist/apis/entity-mapping.d.ts +4 -4
  73. package/dist/apis/entity-mapping.js +212 -7
  74. package/dist/apis/entity.cjs +1601 -11
  75. package/dist/apis/entity.d.cts +4 -4
  76. package/dist/apis/entity.d.ts +4 -4
  77. package/dist/apis/entity.js +1597 -7
  78. package/dist/apis/environments.cjs +72 -11
  79. package/dist/apis/environments.d.cts +4 -4
  80. package/dist/apis/environments.d.ts +4 -4
  81. package/dist/apis/environments.js +68 -7
  82. package/dist/apis/erp-integration.cjs +587 -11
  83. package/dist/apis/erp-integration.d.cts +4 -4
  84. package/dist/apis/erp-integration.d.ts +4 -4
  85. package/dist/apis/erp-integration.js +583 -7
  86. package/dist/apis/event-catalog.cjs +131 -11
  87. package/dist/apis/event-catalog.d.cts +4 -4
  88. package/dist/apis/event-catalog.d.ts +4 -4
  89. package/dist/apis/event-catalog.js +127 -7
  90. package/dist/apis/file.cjs +574 -11
  91. package/dist/apis/file.d.cts +4 -4
  92. package/dist/apis/file.d.ts +4 -4
  93. package/dist/apis/file.js +570 -7
  94. package/dist/apis/iban.cjs +44 -11
  95. package/dist/apis/iban.d.cts +4 -4
  96. package/dist/apis/iban.d.ts +4 -4
  97. package/dist/apis/iban.js +40 -7
  98. package/dist/apis/journey.cjs +271 -11
  99. package/dist/apis/journey.d.cts +4 -4
  100. package/dist/apis/journey.d.ts +4 -4
  101. package/dist/apis/journey.js +267 -7
  102. package/dist/apis/kanban.cjs +165 -11
  103. package/dist/apis/kanban.d.cts +4 -4
  104. package/dist/apis/kanban.d.ts +4 -4
  105. package/dist/apis/kanban.js +161 -7
  106. package/dist/apis/message.cjs +674 -11
  107. package/dist/apis/message.d.cts +4 -4
  108. package/dist/apis/message.d.ts +4 -4
  109. package/dist/apis/message.js +670 -7
  110. package/dist/apis/metering.cjs +400 -11
  111. package/dist/apis/metering.d.cts +4 -4
  112. package/dist/apis/metering.d.ts +4 -4
  113. package/dist/apis/metering.js +396 -7
  114. package/dist/apis/notes.cjs +220 -11
  115. package/dist/apis/notes.d.cts +4 -4
  116. package/dist/apis/notes.d.ts +4 -4
  117. package/dist/apis/notes.js +216 -7
  118. package/dist/apis/notification.cjs +238 -11
  119. package/dist/apis/notification.d.cts +4 -4
  120. package/dist/apis/notification.d.ts +4 -4
  121. package/dist/apis/notification.js +234 -7
  122. package/dist/apis/organization.cjs +119 -11
  123. package/dist/apis/organization.d.cts +4 -4
  124. package/dist/apis/organization.d.ts +4 -4
  125. package/dist/apis/organization.js +115 -7
  126. package/dist/apis/partner-directory.cjs +283 -11
  127. package/dist/apis/partner-directory.d.cts +4 -4
  128. package/dist/apis/partner-directory.d.ts +4 -4
  129. package/dist/apis/partner-directory.js +279 -7
  130. package/dist/apis/permissions.cjs +179 -11
  131. package/dist/apis/permissions.d.cts +4 -4
  132. package/dist/apis/permissions.d.ts +4 -4
  133. package/dist/apis/permissions.js +175 -7
  134. package/dist/apis/pricing-tier.cjs +40 -14
  135. package/dist/apis/pricing-tier.d.cts +4 -4
  136. package/dist/apis/pricing-tier.d.ts +4 -4
  137. package/dist/apis/pricing-tier.js +33 -7
  138. package/dist/apis/pricing.cjs +440 -11
  139. package/dist/apis/pricing.d.cts +4 -4
  140. package/dist/apis/pricing.d.ts +4 -4
  141. package/dist/apis/pricing.js +436 -7
  142. package/dist/apis/purpose.cjs +181 -11
  143. package/dist/apis/purpose.d.cts +4 -4
  144. package/dist/apis/purpose.d.ts +4 -4
  145. package/dist/apis/purpose.js +177 -7
  146. package/dist/apis/sandbox.cjs +101 -11
  147. package/dist/apis/sandbox.d.cts +4 -4
  148. package/dist/apis/sandbox.d.ts +4 -4
  149. package/dist/apis/sandbox.js +97 -7
  150. package/dist/apis/submission.cjs +56 -11
  151. package/dist/apis/submission.d.cts +4 -4
  152. package/dist/apis/submission.d.ts +4 -4
  153. package/dist/apis/submission.js +52 -7
  154. package/dist/apis/targeting.cjs +276 -11
  155. package/dist/apis/targeting.d.cts +4 -4
  156. package/dist/apis/targeting.d.ts +4 -4
  157. package/dist/apis/targeting.js +272 -7
  158. package/dist/apis/template-variables.cjs +160 -11
  159. package/dist/apis/template-variables.d.cts +4 -4
  160. package/dist/apis/template-variables.d.ts +4 -4
  161. package/dist/apis/template-variables.js +156 -7
  162. package/dist/apis/user.cjs +489 -11
  163. package/dist/apis/user.d.cts +4 -4
  164. package/dist/apis/user.d.ts +4 -4
  165. package/dist/apis/user.js +485 -7
  166. package/dist/apis/validation-rules.cjs +121 -11
  167. package/dist/apis/validation-rules.d.cts +4 -4
  168. package/dist/apis/validation-rules.d.ts +4 -4
  169. package/dist/apis/validation-rules.js +117 -7
  170. package/dist/apis/webhooks.cjs +253 -11
  171. package/dist/apis/webhooks.d.cts +4 -4
  172. package/dist/apis/webhooks.d.ts +4 -4
  173. package/dist/apis/webhooks.js +249 -7
  174. package/dist/apis/workflow-definition.cjs +343 -11
  175. package/dist/apis/workflow-definition.d.cts +4 -4
  176. package/dist/apis/workflow-definition.d.ts +4 -4
  177. package/dist/apis/workflow-definition.js +339 -7
  178. package/dist/apis/workflow.cjs +403 -11
  179. package/dist/apis/workflow.d.cts +4 -4
  180. package/dist/apis/workflow.d.ts +4 -4
  181. package/dist/apis/workflow.js +399 -7
  182. package/dist/{chunk-YYLPAGF4.cjs → chunk-D7ICL3AM.cjs} +20 -9
  183. package/dist/{chunk-UCDXDIUX.js → chunk-DGCGLG7G.js} +18 -7
  184. package/dist/index.cjs +68 -220
  185. package/dist/index.d.cts +67 -69
  186. package/dist/index.d.ts +67 -69
  187. package/dist/index.js +66 -218
  188. package/dist/{types-C5cGIwtq.d.cts → types-BwBvJkY_.d.cts} +12 -6
  189. package/dist/{types-C5cGIwtq.d.ts → types-BwBvJkY_.d.ts} +12 -6
  190. package/package.json +3 -7
  191. package/dist/access-token-MYDOBCIY.cjs +0 -89
  192. package/dist/access-token-Y5JR7PRG.js +0 -89
  193. package/dist/address-3RQRG3MK.js +0 -84
  194. package/dist/address-LQUTDOUA.cjs +0 -84
  195. package/dist/address-suggestions-PEKSA7B2.cjs +0 -132
  196. package/dist/address-suggestions-QNK5JWNH.js +0 -132
  197. package/dist/ai-agents-MO4PK2RJ.cjs +0 -215
  198. package/dist/ai-agents-OHP2F243.js +0 -215
  199. package/dist/apis/discussion.cjs +0 -33
  200. package/dist/apis/discussion.d.cts +0 -18
  201. package/dist/apis/discussion.d.ts +0 -18
  202. package/dist/apis/discussion.js +0 -33
  203. package/dist/app-UUTBO3WJ.js +0 -573
  204. package/dist/app-XJGY6SHO.cjs +0 -573
  205. package/dist/audit-logs-4IJYIOXF.js +0 -55
  206. package/dist/audit-logs-UWLCPBB4.cjs +0 -55
  207. package/dist/automation-4UQADTDO.cjs +0 -282
  208. package/dist/automation-PVXTQLZX.js +0 -282
  209. package/dist/billing-FI4V4UX5.cjs +0 -175
  210. package/dist/billing-OMWNJHGW.js +0 -175
  211. package/dist/blueprint-manifest-CPQAL76N.cjs +0 -504
  212. package/dist/blueprint-manifest-FIMGDHSH.js +0 -504
  213. package/dist/chunk-3RG5ZIWI.js +0 -10
  214. package/dist/chunk-OBGZSXTJ.cjs +0 -10
  215. package/dist/consent-NHDCDJMK.js +0 -84
  216. package/dist/consent-R5GU3WCK.cjs +0 -84
  217. package/dist/customer-portal-6AV2W43T.cjs +0 -2252
  218. package/dist/customer-portal-EY57GJYV.js +0 -2252
  219. package/dist/data-management-ILQUYNTN.cjs +0 -240
  220. package/dist/data-management-QMXOLOEG.js +0 -240
  221. package/dist/deduplication-IVXANO7S.cjs +0 -42
  222. package/dist/deduplication-WN45DVK3.js +0 -42
  223. package/dist/design-ONRLY6XI.cjs +0 -219
  224. package/dist/design-UHMRO3PG.js +0 -219
  225. package/dist/discussion-4CZIG3ZM.cjs +0 -134
  226. package/dist/discussion-VWMWL2AF.js +0 -134
  227. package/dist/discussion.d-DQucoYl_.d.cts +0 -579
  228. package/dist/discussion.d-DQucoYl_.d.ts +0 -579
  229. package/dist/document-CN3JNXFF.js +0 -78
  230. package/dist/document-PCKNZA4K.cjs +0 -78
  231. package/dist/email-settings-ANURQMKZ.js +0 -533
  232. package/dist/email-settings-YE2XB2ZU.cjs +0 -533
  233. package/dist/email-template-4QI4YS4J.js +0 -122
  234. package/dist/email-template-BUJBC6HH.cjs +0 -122
  235. package/dist/entity-BCFE3UJT.cjs +0 -1600
  236. package/dist/entity-VEXNQC4Y.js +0 -1600
  237. package/dist/entity-mapping-PHRLSYP7.cjs +0 -215
  238. package/dist/entity-mapping-QK7MGNAW.js +0 -215
  239. package/dist/environments-266S44UM.cjs +0 -71
  240. package/dist/environments-AV7W6SLT.js +0 -71
  241. package/dist/erp-integration-5WNBCGWS.cjs +0 -586
  242. package/dist/erp-integration-EMI5WIWA.js +0 -586
  243. package/dist/event-catalog-DBWYKQ6J.cjs +0 -130
  244. package/dist/event-catalog-KKMXV5LB.js +0 -130
  245. package/dist/file-3ZLMS6TL.js +0 -573
  246. package/dist/file-Q66N5XMG.cjs +0 -573
  247. package/dist/iban-HSXVSIFW.cjs +0 -43
  248. package/dist/iban-Q27INTOC.js +0 -43
  249. package/dist/journey-DGKXVWZQ.js +0 -270
  250. package/dist/journey-T2Y72EBS.cjs +0 -270
  251. package/dist/kanban-A4B6RCJ2.cjs +0 -164
  252. package/dist/kanban-PP6WJVT2.js +0 -164
  253. package/dist/message-D6JY4GJH.cjs +0 -673
  254. package/dist/message-HFX2DDCV.js +0 -673
  255. package/dist/metering-63MJFCS2.cjs +0 -399
  256. package/dist/metering-F63PNFCZ.js +0 -399
  257. package/dist/notes-FTL5H4JE.cjs +0 -219
  258. package/dist/notes-GMWTQCMB.js +0 -219
  259. package/dist/notification-WXFSOORN.cjs +0 -237
  260. package/dist/notification-XHG3TIBW.js +0 -237
  261. package/dist/organization-CPXTUDJO.js +0 -118
  262. package/dist/organization-XIFV7MWP.cjs +0 -118
  263. package/dist/partner-directory-4WCHPJRO.js +0 -282
  264. package/dist/partner-directory-FKWPPO7F.cjs +0 -282
  265. package/dist/permissions-5E36GPG3.js +0 -178
  266. package/dist/permissions-PBTK5CCD.cjs +0 -178
  267. package/dist/pricing-FDWEBIQU.js +0 -439
  268. package/dist/pricing-FZQKL4DW.cjs +0 -439
  269. package/dist/pricing-tier-34O624R4.js +0 -36
  270. package/dist/pricing-tier-F4HE6WIM.cjs +0 -36
  271. package/dist/purpose-47HJIG2Q.cjs +0 -180
  272. package/dist/purpose-MX33NU5H.js +0 -180
  273. package/dist/sandbox-7QNLGFN2.cjs +0 -100
  274. package/dist/sandbox-TZCXHBJN.js +0 -100
  275. package/dist/submission-6LSPBI27.js +0 -55
  276. package/dist/submission-DBQNDJ4B.cjs +0 -55
  277. package/dist/targeting-HZRCLNIF.cjs +0 -275
  278. package/dist/targeting-MTQ6JBCY.js +0 -275
  279. package/dist/template-variables-S6IXK7SF.js +0 -159
  280. package/dist/template-variables-VPNIMC7L.cjs +0 -159
  281. package/dist/user-BHH4DAA5.cjs +0 -488
  282. package/dist/user-KBXFVRPI.js +0 -488
  283. package/dist/validation-rules-4V7KAWGW.cjs +0 -120
  284. package/dist/validation-rules-UGQY4ASY.js +0 -120
  285. package/dist/webhooks-JR475VD4.js +0 -252
  286. package/dist/webhooks-X64U3KCB.cjs +0 -252
  287. package/dist/workflow-7ANPQZDP.cjs +0 -402
  288. package/dist/workflow-DWSAHA5Q.js +0 -402
  289. package/dist/workflow-definition-2M3JBCUI.cjs +0 -342
  290. package/dist/workflow-definition-WLPGEU55.js +0 -342
@@ -1,26 +1,231 @@
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');
6
- require('../chunk-OBGZSXTJ.cjs');
5
+
6
+ var _chunkD7ICL3AMcjs = require('../chunk-D7ICL3AM.cjs');
7
+
8
+ // src/definitions/ai-agents.json
9
+ var require_ai_agents = _chunkD7ICL3AMcjs.__commonJS.call(void 0, {
10
+ "src/definitions/ai-agents.json"(exports, module) {
11
+ module.exports = {
12
+ openapi: "3.0.0",
13
+ info: {
14
+ title: "",
15
+ version: ""
16
+ },
17
+ servers: [
18
+ {
19
+ url: "https://ai-agents.sls.epilot.io"
20
+ }
21
+ ],
22
+ paths: {
23
+ "/v1/agents": {
24
+ post: {
25
+ operationId: "createAgent",
26
+ requestBody: {
27
+ required: true,
28
+ content: {
29
+ "application/json": {}
30
+ }
31
+ },
32
+ responses: {}
33
+ },
34
+ get: {
35
+ operationId: "listAgents",
36
+ parameters: [
37
+ {
38
+ name: "source",
39
+ in: "query"
40
+ },
41
+ {
42
+ name: "availability",
43
+ in: "query"
44
+ },
45
+ {
46
+ name: "entity_schema",
47
+ in: "query"
48
+ }
49
+ ],
50
+ responses: {}
51
+ }
52
+ },
53
+ "/v1/agents/{agent_id}": {
54
+ get: {
55
+ operationId: "getAgentById",
56
+ parameters: [
57
+ {
58
+ name: "agent_id",
59
+ in: "path",
60
+ required: true
61
+ }
62
+ ],
63
+ responses: {}
64
+ },
65
+ put: {
66
+ operationId: "updateAgentById",
67
+ parameters: [
68
+ {
69
+ name: "agent_id",
70
+ in: "path",
71
+ required: true
72
+ }
73
+ ],
74
+ requestBody: {
75
+ required: true,
76
+ content: {
77
+ "application/json": {}
78
+ }
79
+ },
80
+ responses: {}
81
+ },
82
+ delete: {
83
+ operationId: "deleteAgentById",
84
+ parameters: [
85
+ {
86
+ name: "agent_id",
87
+ in: "path",
88
+ required: true
89
+ }
90
+ ],
91
+ responses: {}
92
+ }
93
+ },
94
+ "/v1/agents/{agent_id}/execute": {
95
+ post: {
96
+ operationId: "executeAgent",
97
+ parameters: [
98
+ {
99
+ name: "agent_id",
100
+ in: "path",
101
+ required: true
102
+ }
103
+ ],
104
+ requestBody: {
105
+ required: false,
106
+ content: {
107
+ "application/json": {}
108
+ }
109
+ },
110
+ responses: {}
111
+ }
112
+ },
113
+ "/v1/executions": {
114
+ get: {
115
+ operationId: "listExecutions",
116
+ parameters: [
117
+ {
118
+ name: "agent_id",
119
+ in: "query"
120
+ },
121
+ {
122
+ name: "status",
123
+ in: "query"
124
+ },
125
+ {
126
+ name: "limit",
127
+ in: "query"
128
+ }
129
+ ],
130
+ responses: {}
131
+ }
132
+ },
133
+ "/v1/executions/{execution_id}": {
134
+ get: {
135
+ operationId: "getExecution",
136
+ parameters: [
137
+ {
138
+ name: "execution_id",
139
+ in: "path",
140
+ required: true
141
+ }
142
+ ],
143
+ responses: {}
144
+ },
145
+ delete: {
146
+ operationId: "cancelExecution",
147
+ parameters: [
148
+ {
149
+ name: "execution_id",
150
+ in: "path",
151
+ required: true
152
+ }
153
+ ],
154
+ responses: {}
155
+ }
156
+ },
157
+ "/v1/executions/{execution_id}/trace": {
158
+ get: {
159
+ operationId: "getExecutionTrace",
160
+ parameters: [
161
+ {
162
+ name: "execution_id",
163
+ in: "path",
164
+ required: true
165
+ }
166
+ ],
167
+ responses: {}
168
+ }
169
+ },
170
+ "/v1/executions/{execution_id}/approve": {
171
+ post: {
172
+ operationId: "approveExecution",
173
+ parameters: [
174
+ {
175
+ name: "execution_id",
176
+ in: "path",
177
+ required: true
178
+ }
179
+ ],
180
+ requestBody: {
181
+ content: {
182
+ "application/json": {}
183
+ }
184
+ },
185
+ responses: {}
186
+ }
187
+ },
188
+ "/v1/executions/{execution_id}/reject": {
189
+ post: {
190
+ operationId: "rejectExecution",
191
+ parameters: [
192
+ {
193
+ name: "execution_id",
194
+ in: "path",
195
+ required: true
196
+ }
197
+ ],
198
+ requestBody: {
199
+ required: true,
200
+ content: {
201
+ "application/json": {}
202
+ }
203
+ },
204
+ responses: {}
205
+ }
206
+ }
207
+ },
208
+ components: {}
209
+ };
210
+ }
211
+ });
7
212
 
8
213
  // src/apis/ai-agents.ts
9
- var loadDefinition = async () => {
10
- const mod = await Promise.resolve().then(() => _interopRequireWildcard(require("../ai-agents-MO4PK2RJ.cjs")));
214
+ var loadDefinition = () => {
215
+ const mod = require_ai_agents();
11
216
  return _nullishCoalesce(mod.default, () => ( mod));
12
217
  };
13
218
  var _instance = null;
14
- var resolve = async () => {
219
+ var resolve = () => {
15
220
  if (!_instance) {
16
- const definition = await loadDefinition();
17
- _instance = _chunkYYLPAGF4cjs.createApiClient.call(void 0, { definition });
221
+ const definition = loadDefinition();
222
+ _instance = _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition });
18
223
  }
19
224
  return _instance;
20
225
  };
21
- var _handle = _chunkYYLPAGF4cjs.createApiHandle.call(void 0, {
226
+ var _handle = _chunkD7ICL3AMcjs.createApiHandle.call(void 0, {
22
227
  resolveClient: resolve,
23
- loadDefinition
228
+ createClient: () => _chunkD7ICL3AMcjs.createApiClient.call(void 0, { definition: loadDefinition() })
24
229
  });
25
230
  var getClient = _handle.getClient;
26
231
  var createClient = _handle.createClient;
@@ -30,4 +235,4 @@ var aiAgents = _handle;
30
235
 
31
236
 
32
237
 
33
- exports.aiAgents = aiAgents; exports.authorize = _chunkYYLPAGF4cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
238
+ exports.aiAgents = aiAgents; exports.authorize = _chunkD7ICL3AMcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
@@ -1,14 +1,14 @@
1
- import { A as ApiHandle } from '../types-C5cGIwtq.cjs';
2
- export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.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 '../ai-agents.d-B4_CZTCP.cjs';
4
4
  export { A as AgentDefinition, a as AgentId, b as AgentSource, c as ApproveExecutionRequest, d as CreateAgentRequest, E as Error, e as ExecuteAgentRequest, f as ExecutionContext, g as ExecutionError, h as ExecutionIteration, i as ExecutionMetrics, j as ExecutionMode, k as ExecutionPattern, l as ExecutionResponse, m as ExecutionStatus, n as ExecutionTrace, I as InputParameterDefinition, o as InputParametersSchema, L as ListAgentsResponse, p as ListExecutionsResponse, M as ModelConfig, O as OperationMethods, q as ParameterType, P as PathsDictionary, r as PendingAction, s as PreviewActionType, t as PreviewChange, u as PreviewEntity, v as PreviewValue, R as RejectExecutionRequest, S as SkillAvailability, w as SkillCategory, T as ToolDefinition, x as ToolPreview, U as UpdateAgentRequest } from '../ai-agents.d-B4_CZTCP.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
  * `aiAgents.someOperation(...)` calls forwarded to lazy singleton
@@ -1,14 +1,14 @@
1
- import { A as ApiHandle } from '../types-C5cGIwtq.js';
2
- export { T as TokenArg, a as authorize } from '../types-C5cGIwtq.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 '../ai-agents.d-B4_CZTCP.js';
4
4
  export { A as AgentDefinition, a as AgentId, b as AgentSource, c as ApproveExecutionRequest, d as CreateAgentRequest, E as Error, e as ExecuteAgentRequest, f as ExecutionContext, g as ExecutionError, h as ExecutionIteration, i as ExecutionMetrics, j as ExecutionMode, k as ExecutionPattern, l as ExecutionResponse, m as ExecutionStatus, n as ExecutionTrace, I as InputParameterDefinition, o as InputParametersSchema, L as ListAgentsResponse, p as ListExecutionsResponse, M as ModelConfig, O as OperationMethods, q as ParameterType, P as PathsDictionary, r as PendingAction, s as PreviewActionType, t as PreviewChange, u as PreviewEntity, v as PreviewValue, R as RejectExecutionRequest, S as SkillAvailability, w as SkillCategory, T as ToolDefinition, x as ToolPreview, U as UpdateAgentRequest } from '../ai-agents.d-B4_CZTCP.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
  * `aiAgents.someOperation(...)` calls forwarded to lazy singleton
@@ -1,26 +1,231 @@
1
1
  import {
2
+ __commonJS,
2
3
  authorize,
3
4
  createApiClient,
4
5
  createApiHandle
5
- } from "../chunk-UCDXDIUX.js";
6
- import "../chunk-3RG5ZIWI.js";
6
+ } from "../chunk-DGCGLG7G.js";
7
+
8
+ // src/definitions/ai-agents.json
9
+ var require_ai_agents = __commonJS({
10
+ "src/definitions/ai-agents.json"(exports, module) {
11
+ module.exports = {
12
+ openapi: "3.0.0",
13
+ info: {
14
+ title: "",
15
+ version: ""
16
+ },
17
+ servers: [
18
+ {
19
+ url: "https://ai-agents.sls.epilot.io"
20
+ }
21
+ ],
22
+ paths: {
23
+ "/v1/agents": {
24
+ post: {
25
+ operationId: "createAgent",
26
+ requestBody: {
27
+ required: true,
28
+ content: {
29
+ "application/json": {}
30
+ }
31
+ },
32
+ responses: {}
33
+ },
34
+ get: {
35
+ operationId: "listAgents",
36
+ parameters: [
37
+ {
38
+ name: "source",
39
+ in: "query"
40
+ },
41
+ {
42
+ name: "availability",
43
+ in: "query"
44
+ },
45
+ {
46
+ name: "entity_schema",
47
+ in: "query"
48
+ }
49
+ ],
50
+ responses: {}
51
+ }
52
+ },
53
+ "/v1/agents/{agent_id}": {
54
+ get: {
55
+ operationId: "getAgentById",
56
+ parameters: [
57
+ {
58
+ name: "agent_id",
59
+ in: "path",
60
+ required: true
61
+ }
62
+ ],
63
+ responses: {}
64
+ },
65
+ put: {
66
+ operationId: "updateAgentById",
67
+ parameters: [
68
+ {
69
+ name: "agent_id",
70
+ in: "path",
71
+ required: true
72
+ }
73
+ ],
74
+ requestBody: {
75
+ required: true,
76
+ content: {
77
+ "application/json": {}
78
+ }
79
+ },
80
+ responses: {}
81
+ },
82
+ delete: {
83
+ operationId: "deleteAgentById",
84
+ parameters: [
85
+ {
86
+ name: "agent_id",
87
+ in: "path",
88
+ required: true
89
+ }
90
+ ],
91
+ responses: {}
92
+ }
93
+ },
94
+ "/v1/agents/{agent_id}/execute": {
95
+ post: {
96
+ operationId: "executeAgent",
97
+ parameters: [
98
+ {
99
+ name: "agent_id",
100
+ in: "path",
101
+ required: true
102
+ }
103
+ ],
104
+ requestBody: {
105
+ required: false,
106
+ content: {
107
+ "application/json": {}
108
+ }
109
+ },
110
+ responses: {}
111
+ }
112
+ },
113
+ "/v1/executions": {
114
+ get: {
115
+ operationId: "listExecutions",
116
+ parameters: [
117
+ {
118
+ name: "agent_id",
119
+ in: "query"
120
+ },
121
+ {
122
+ name: "status",
123
+ in: "query"
124
+ },
125
+ {
126
+ name: "limit",
127
+ in: "query"
128
+ }
129
+ ],
130
+ responses: {}
131
+ }
132
+ },
133
+ "/v1/executions/{execution_id}": {
134
+ get: {
135
+ operationId: "getExecution",
136
+ parameters: [
137
+ {
138
+ name: "execution_id",
139
+ in: "path",
140
+ required: true
141
+ }
142
+ ],
143
+ responses: {}
144
+ },
145
+ delete: {
146
+ operationId: "cancelExecution",
147
+ parameters: [
148
+ {
149
+ name: "execution_id",
150
+ in: "path",
151
+ required: true
152
+ }
153
+ ],
154
+ responses: {}
155
+ }
156
+ },
157
+ "/v1/executions/{execution_id}/trace": {
158
+ get: {
159
+ operationId: "getExecutionTrace",
160
+ parameters: [
161
+ {
162
+ name: "execution_id",
163
+ in: "path",
164
+ required: true
165
+ }
166
+ ],
167
+ responses: {}
168
+ }
169
+ },
170
+ "/v1/executions/{execution_id}/approve": {
171
+ post: {
172
+ operationId: "approveExecution",
173
+ parameters: [
174
+ {
175
+ name: "execution_id",
176
+ in: "path",
177
+ required: true
178
+ }
179
+ ],
180
+ requestBody: {
181
+ content: {
182
+ "application/json": {}
183
+ }
184
+ },
185
+ responses: {}
186
+ }
187
+ },
188
+ "/v1/executions/{execution_id}/reject": {
189
+ post: {
190
+ operationId: "rejectExecution",
191
+ parameters: [
192
+ {
193
+ name: "execution_id",
194
+ in: "path",
195
+ required: true
196
+ }
197
+ ],
198
+ requestBody: {
199
+ required: true,
200
+ content: {
201
+ "application/json": {}
202
+ }
203
+ },
204
+ responses: {}
205
+ }
206
+ }
207
+ },
208
+ components: {}
209
+ };
210
+ }
211
+ });
7
212
 
8
213
  // src/apis/ai-agents.ts
9
- var loadDefinition = async () => {
10
- const mod = await import("../ai-agents-OHP2F243.js");
214
+ var loadDefinition = () => {
215
+ const mod = require_ai_agents();
11
216
  return mod.default ?? mod;
12
217
  };
13
218
  var _instance = null;
14
- var resolve = async () => {
219
+ var resolve = () => {
15
220
  if (!_instance) {
16
- const definition = await loadDefinition();
221
+ const definition = loadDefinition();
17
222
  _instance = createApiClient({ definition });
18
223
  }
19
224
  return _instance;
20
225
  };
21
226
  var _handle = createApiHandle({
22
227
  resolveClient: resolve,
23
- loadDefinition
228
+ createClient: () => createApiClient({ definition: loadDefinition() })
24
229
  });
25
230
  var getClient = _handle.getClient;
26
231
  var createClient = _handle.createClient;