@epilot/sdk 2.1.0 → 2.1.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 (490) hide show
  1. package/README.md +24 -0
  2. package/definitions/environments-runtime.json +1 -1
  3. package/definitions/partner-directory-runtime.json +1 -1
  4. package/definitions/partner-directory.json +795 -229
  5. package/dist/{README-W4B35MRN.cjs → README-6OOYWQYJ.cjs} +1 -1
  6. package/dist/{README-VG67PX4R.js → README-JUWX7KNV.js} +1 -1
  7. package/dist/{_index-S6LFD3ER.js → _index-NWNYWBIF.js} +48 -1
  8. package/dist/{_index-AMVZBT2K.cjs → _index-ONGE545F.cjs} +48 -1
  9. package/dist/access-token-2O6ULCCN.js +633 -0
  10. package/dist/access-token-RKP2A2F7.cjs +633 -0
  11. package/dist/access-token-runtime-KCKGT4O7.js +5 -0
  12. package/dist/access-token-runtime-NZWZJPWV.cjs +5 -0
  13. package/dist/address-HLBX47SQ.cjs +567 -0
  14. package/dist/address-IJF4N2UV.js +567 -0
  15. package/dist/address-runtime-2MNO2YRD.cjs +5 -0
  16. package/dist/address-runtime-YFCNBJBW.js +5 -0
  17. package/dist/address-suggestions-BYUTV7OU.js +574 -0
  18. package/dist/address-suggestions-ERVGGO6Z.cjs +574 -0
  19. package/dist/address-suggestions-runtime-NIMC2J32.js +5 -0
  20. package/dist/address-suggestions-runtime-ZNGLDADE.cjs +5 -0
  21. package/dist/ai-agents-6VHVYRCC.cjs +1612 -0
  22. package/dist/ai-agents-PKCHKKJS.js +1612 -0
  23. package/dist/ai-agents-runtime-25YRUJHI.js +5 -0
  24. package/dist/ai-agents-runtime-TILIO3UM.cjs +5 -0
  25. package/dist/apis/access-token.cjs +8 -8
  26. package/dist/apis/access-token.d.cts +2 -2
  27. package/dist/apis/access-token.d.ts +2 -2
  28. package/dist/apis/access-token.js +4 -4
  29. package/dist/apis/address-suggestions.cjs +8 -8
  30. package/dist/apis/address-suggestions.d.cts +2 -2
  31. package/dist/apis/address-suggestions.d.ts +2 -2
  32. package/dist/apis/address-suggestions.js +4 -4
  33. package/dist/apis/address.cjs +8 -8
  34. package/dist/apis/address.d.cts +2 -2
  35. package/dist/apis/address.d.ts +2 -2
  36. package/dist/apis/address.js +4 -4
  37. package/dist/apis/ai-agents.cjs +8 -8
  38. package/dist/apis/ai-agents.d.cts +2 -2
  39. package/dist/apis/ai-agents.d.ts +2 -2
  40. package/dist/apis/ai-agents.js +4 -4
  41. package/dist/apis/app.cjs +8 -8
  42. package/dist/apis/app.d.cts +2 -2
  43. package/dist/apis/app.d.ts +2 -2
  44. package/dist/apis/app.js +4 -4
  45. package/dist/apis/audit-logs.cjs +8 -8
  46. package/dist/apis/audit-logs.d.cts +2 -2
  47. package/dist/apis/audit-logs.d.ts +2 -2
  48. package/dist/apis/audit-logs.js +4 -4
  49. package/dist/apis/automation.cjs +8 -8
  50. package/dist/apis/automation.d.cts +2 -2
  51. package/dist/apis/automation.d.ts +2 -2
  52. package/dist/apis/automation.js +4 -4
  53. package/dist/apis/billing.cjs +8 -8
  54. package/dist/apis/billing.d.cts +2 -2
  55. package/dist/apis/billing.d.ts +2 -2
  56. package/dist/apis/billing.js +4 -4
  57. package/dist/apis/blueprint-manifest.cjs +8 -8
  58. package/dist/apis/blueprint-manifest.d.cts +2 -2
  59. package/dist/apis/blueprint-manifest.d.ts +2 -2
  60. package/dist/apis/blueprint-manifest.js +4 -4
  61. package/dist/apis/consent.cjs +8 -8
  62. package/dist/apis/consent.d.cts +2 -2
  63. package/dist/apis/consent.d.ts +2 -2
  64. package/dist/apis/consent.js +4 -4
  65. package/dist/apis/customer-portal.cjs +8 -8
  66. package/dist/apis/customer-portal.d.cts +2 -2
  67. package/dist/apis/customer-portal.d.ts +2 -2
  68. package/dist/apis/customer-portal.js +4 -4
  69. package/dist/apis/dashboard.cjs +8 -8
  70. package/dist/apis/dashboard.d.cts +2 -2
  71. package/dist/apis/dashboard.d.ts +2 -2
  72. package/dist/apis/dashboard.js +4 -4
  73. package/dist/apis/data-management.cjs +8 -8
  74. package/dist/apis/data-management.d.cts +2 -2
  75. package/dist/apis/data-management.d.ts +2 -2
  76. package/dist/apis/data-management.js +4 -4
  77. package/dist/apis/deduplication.cjs +8 -8
  78. package/dist/apis/deduplication.d.cts +2 -2
  79. package/dist/apis/deduplication.d.ts +2 -2
  80. package/dist/apis/deduplication.js +4 -4
  81. package/dist/apis/design.cjs +8 -8
  82. package/dist/apis/design.d.cts +2 -2
  83. package/dist/apis/design.d.ts +2 -2
  84. package/dist/apis/design.js +4 -4
  85. package/dist/apis/document.cjs +8 -8
  86. package/dist/apis/document.d.cts +2 -2
  87. package/dist/apis/document.d.ts +2 -2
  88. package/dist/apis/document.js +4 -4
  89. package/dist/apis/email-settings.cjs +8 -8
  90. package/dist/apis/email-settings.d.cts +2 -2
  91. package/dist/apis/email-settings.d.ts +2 -2
  92. package/dist/apis/email-settings.js +4 -4
  93. package/dist/apis/email-template.cjs +8 -8
  94. package/dist/apis/email-template.d.cts +2 -2
  95. package/dist/apis/email-template.d.ts +2 -2
  96. package/dist/apis/email-template.js +4 -4
  97. package/dist/apis/entity-mapping.cjs +8 -8
  98. package/dist/apis/entity-mapping.d.cts +2 -2
  99. package/dist/apis/entity-mapping.d.ts +2 -2
  100. package/dist/apis/entity-mapping.js +4 -4
  101. package/dist/apis/entity.cjs +8 -8
  102. package/dist/apis/entity.d.cts +2 -2
  103. package/dist/apis/entity.d.ts +2 -2
  104. package/dist/apis/entity.js +4 -4
  105. package/dist/apis/environments.cjs +8 -8
  106. package/dist/apis/environments.d.cts +2 -2
  107. package/dist/apis/environments.d.ts +2 -2
  108. package/dist/apis/environments.js +4 -4
  109. package/dist/apis/erp-integration.cjs +8 -8
  110. package/dist/apis/erp-integration.d.cts +2 -2
  111. package/dist/apis/erp-integration.d.ts +2 -2
  112. package/dist/apis/erp-integration.js +4 -4
  113. package/dist/apis/event-catalog.cjs +8 -8
  114. package/dist/apis/event-catalog.d.cts +2 -2
  115. package/dist/apis/event-catalog.d.ts +2 -2
  116. package/dist/apis/event-catalog.js +4 -4
  117. package/dist/apis/file.cjs +8 -8
  118. package/dist/apis/file.d.cts +2 -2
  119. package/dist/apis/file.d.ts +2 -2
  120. package/dist/apis/file.js +4 -4
  121. package/dist/apis/iban.cjs +8 -8
  122. package/dist/apis/iban.d.cts +2 -2
  123. package/dist/apis/iban.d.ts +2 -2
  124. package/dist/apis/iban.js +4 -4
  125. package/dist/apis/journey.cjs +8 -8
  126. package/dist/apis/journey.d.cts +2 -2
  127. package/dist/apis/journey.d.ts +2 -2
  128. package/dist/apis/journey.js +4 -4
  129. package/dist/apis/kanban.cjs +8 -8
  130. package/dist/apis/kanban.d.cts +2 -2
  131. package/dist/apis/kanban.d.ts +2 -2
  132. package/dist/apis/kanban.js +4 -4
  133. package/dist/apis/message.cjs +8 -8
  134. package/dist/apis/message.d.cts +2 -2
  135. package/dist/apis/message.d.ts +2 -2
  136. package/dist/apis/message.js +4 -4
  137. package/dist/apis/metering.cjs +8 -8
  138. package/dist/apis/metering.d.cts +2 -2
  139. package/dist/apis/metering.d.ts +2 -2
  140. package/dist/apis/metering.js +4 -4
  141. package/dist/apis/notes.cjs +8 -8
  142. package/dist/apis/notes.d.cts +2 -2
  143. package/dist/apis/notes.d.ts +2 -2
  144. package/dist/apis/notes.js +4 -4
  145. package/dist/apis/notification.cjs +8 -8
  146. package/dist/apis/notification.d.cts +2 -2
  147. package/dist/apis/notification.d.ts +2 -2
  148. package/dist/apis/notification.js +4 -4
  149. package/dist/apis/organization.cjs +8 -8
  150. package/dist/apis/organization.d.cts +2 -2
  151. package/dist/apis/organization.d.ts +2 -2
  152. package/dist/apis/organization.js +4 -4
  153. package/dist/apis/partner-directory.cjs +8 -8
  154. package/dist/apis/partner-directory.d.cts +4 -4
  155. package/dist/apis/partner-directory.d.ts +4 -4
  156. package/dist/apis/partner-directory.js +4 -4
  157. package/dist/apis/permissions.cjs +8 -8
  158. package/dist/apis/permissions.d.cts +2 -2
  159. package/dist/apis/permissions.d.ts +2 -2
  160. package/dist/apis/permissions.js +4 -4
  161. package/dist/apis/pricing-tier.cjs +8 -8
  162. package/dist/apis/pricing-tier.d.cts +2 -2
  163. package/dist/apis/pricing-tier.d.ts +2 -2
  164. package/dist/apis/pricing-tier.js +4 -4
  165. package/dist/apis/pricing.cjs +8 -8
  166. package/dist/apis/pricing.d.cts +2 -2
  167. package/dist/apis/pricing.d.ts +2 -2
  168. package/dist/apis/pricing.js +4 -4
  169. package/dist/apis/purpose.cjs +8 -8
  170. package/dist/apis/purpose.d.cts +2 -2
  171. package/dist/apis/purpose.d.ts +2 -2
  172. package/dist/apis/purpose.js +4 -4
  173. package/dist/apis/sandbox.cjs +8 -8
  174. package/dist/apis/sandbox.d.cts +2 -2
  175. package/dist/apis/sandbox.d.ts +2 -2
  176. package/dist/apis/sandbox.js +4 -4
  177. package/dist/apis/submission.cjs +8 -8
  178. package/dist/apis/submission.d.cts +2 -2
  179. package/dist/apis/submission.d.ts +2 -2
  180. package/dist/apis/submission.js +4 -4
  181. package/dist/apis/targeting.cjs +8 -8
  182. package/dist/apis/targeting.d.cts +2 -2
  183. package/dist/apis/targeting.d.ts +2 -2
  184. package/dist/apis/targeting.js +4 -4
  185. package/dist/apis/template-variables.cjs +8 -8
  186. package/dist/apis/template-variables.d.cts +2 -2
  187. package/dist/apis/template-variables.d.ts +2 -2
  188. package/dist/apis/template-variables.js +4 -4
  189. package/dist/apis/user.cjs +8 -8
  190. package/dist/apis/user.d.cts +2 -2
  191. package/dist/apis/user.d.ts +2 -2
  192. package/dist/apis/user.js +4 -4
  193. package/dist/apis/validation-rules.cjs +8 -8
  194. package/dist/apis/validation-rules.d.cts +2 -2
  195. package/dist/apis/validation-rules.d.ts +2 -2
  196. package/dist/apis/validation-rules.js +4 -4
  197. package/dist/apis/webhooks.cjs +8 -8
  198. package/dist/apis/webhooks.d.cts +2 -2
  199. package/dist/apis/webhooks.d.ts +2 -2
  200. package/dist/apis/webhooks.js +4 -4
  201. package/dist/apis/workflow-definition.cjs +8 -8
  202. package/dist/apis/workflow-definition.d.cts +2 -2
  203. package/dist/apis/workflow-definition.d.ts +2 -2
  204. package/dist/apis/workflow-definition.js +4 -4
  205. package/dist/apis/workflow.cjs +8 -8
  206. package/dist/apis/workflow.d.cts +2 -2
  207. package/dist/apis/workflow.d.ts +2 -2
  208. package/dist/apis/workflow.js +4 -4
  209. package/dist/app-5VPBDFW2.cjs +4047 -0
  210. package/dist/app-VJW2KKWE.js +4047 -0
  211. package/dist/app-runtime-SSNHSBR7.cjs +5 -0
  212. package/dist/app-runtime-U7RGV7KT.js +5 -0
  213. package/dist/audit-logs-F2NHDISQ.js +312 -0
  214. package/dist/audit-logs-RFEMBILB.cjs +312 -0
  215. package/dist/audit-logs-runtime-4WMHPWNX.cjs +5 -0
  216. package/dist/audit-logs-runtime-76R6WRAB.js +5 -0
  217. package/dist/automation-HZASSUCS.cjs +4460 -0
  218. package/dist/automation-WEVRW77F.js +4460 -0
  219. package/dist/automation-runtime-L5UKEFLA.js +5 -0
  220. package/dist/automation-runtime-YBGGE5PL.cjs +5 -0
  221. package/dist/billing-3VZPNG6M.cjs +796 -0
  222. package/dist/billing-ASWY7HC3.js +796 -0
  223. package/dist/billing-runtime-C6BMGWCX.js +5 -0
  224. package/dist/billing-runtime-L4Y7MLM3.cjs +5 -0
  225. package/dist/bin/cli.js +1 -1
  226. package/dist/blueprint-manifest-5TNVSDKC.cjs +3169 -0
  227. package/dist/blueprint-manifest-UGGYWGRZ.js +3169 -0
  228. package/dist/blueprint-manifest-runtime-2RTW5C52.js +5 -0
  229. package/dist/blueprint-manifest-runtime-AF3FIDVX.cjs +5 -0
  230. package/dist/{chunk-RXSS67VI.cjs → chunk-BFUNXZRX.cjs} +1 -1
  231. package/dist/{chunk-KPGC2D6E.js → chunk-I2XRA5AM.js} +1 -1
  232. package/dist/chunk-QTU4H6NQ.js +291 -0
  233. package/dist/chunk-T7LQKRUK.cjs +291 -0
  234. package/dist/consent-6SIH4NQS.cjs +342 -0
  235. package/dist/consent-7MNRAINV.js +342 -0
  236. package/dist/consent-runtime-KZ5D4XZU.cjs +5 -0
  237. package/dist/consent-runtime-OAPXBJH2.js +5 -0
  238. package/dist/customer-portal-L5DEQEGC.js +14142 -0
  239. package/dist/customer-portal-MXILX4KH.cjs +14142 -0
  240. package/dist/customer-portal-runtime-MRVZ7JR4.js +5 -0
  241. package/dist/customer-portal-runtime-VGK7RMLC.cjs +5 -0
  242. package/dist/dashboard-RKUQLIME.cjs +483 -0
  243. package/dist/dashboard-UDL26RGG.js +483 -0
  244. package/dist/dashboard-runtime-EXP2AM44.cjs +5 -0
  245. package/dist/dashboard-runtime-PSKSGLCF.js +5 -0
  246. package/dist/data-management-W5JQGGGH.js +925 -0
  247. package/dist/data-management-XFSRLFYA.cjs +925 -0
  248. package/dist/data-management-runtime-PAC7UFGT.cjs +5 -0
  249. package/dist/data-management-runtime-XZ347IUB.js +5 -0
  250. package/dist/deduplication-7RTGTLN5.cjs +193 -0
  251. package/dist/deduplication-RKLRTNZU.js +193 -0
  252. package/dist/deduplication-runtime-BBHG7MJW.cjs +5 -0
  253. package/dist/deduplication-runtime-DLGBF4RN.js +5 -0
  254. package/dist/design-AO6EGLHD.cjs +1352 -0
  255. package/dist/design-VLRA2WGV.js +1352 -0
  256. package/dist/design-runtime-3SKJA7QH.js +5 -0
  257. package/dist/design-runtime-Y3VGTQLP.cjs +5 -0
  258. package/dist/document-OVTR7RVH.cjs +744 -0
  259. package/dist/document-SEZ45XAO.js +744 -0
  260. package/dist/document-runtime-GFEBGNMS.js +5 -0
  261. package/dist/document-runtime-RG3F4R6O.cjs +5 -0
  262. package/dist/email-settings-QGCIUWLC.js +2427 -0
  263. package/dist/email-settings-SEGEKVMF.cjs +2427 -0
  264. package/dist/email-settings-runtime-NS7MU3RB.cjs +5 -0
  265. package/dist/email-settings-runtime-X7F3EPAB.js +5 -0
  266. package/dist/email-template-26SANLRD.cjs +1308 -0
  267. package/dist/email-template-346NDG4D.js +1308 -0
  268. package/dist/email-template-runtime-QBB64BJQ.js +5 -0
  269. package/dist/email-template-runtime-UI2FS4H5.cjs +5 -0
  270. package/dist/entity-HSCBRIOS.js +9411 -0
  271. package/dist/entity-UKAWTND4.cjs +9411 -0
  272. package/dist/entity-mapping-PK2XAARN.cjs +1506 -0
  273. package/dist/entity-mapping-UOGYYCZH.js +1506 -0
  274. package/dist/entity-mapping-runtime-734TTUA2.cjs +5 -0
  275. package/dist/entity-mapping-runtime-HCOJM6DV.js +5 -0
  276. package/dist/entity-runtime-QSFVEFJ6.js +5 -0
  277. package/dist/entity-runtime-XSAICIVR.cjs +5 -0
  278. package/dist/environments-5IS2ZJYQ.cjs +352 -0
  279. package/dist/environments-VCREW73K.js +352 -0
  280. package/dist/environments-runtime-BPR47PW7.js +5 -0
  281. package/dist/environments-runtime-L6TJCVW6.cjs +5 -0
  282. package/dist/erp-integration-735KQ73W.js +5295 -0
  283. package/dist/erp-integration-W7FZDJOB.cjs +5295 -0
  284. package/dist/erp-integration-runtime-FNJXDO75.js +5 -0
  285. package/dist/erp-integration-runtime-WXZIQCLJ.cjs +5 -0
  286. package/dist/event-catalog-MZYFJ23V.cjs +965 -0
  287. package/dist/event-catalog-ZUFXLY7B.js +965 -0
  288. package/dist/event-catalog-runtime-5HQSAJVX.cjs +5 -0
  289. package/dist/event-catalog-runtime-6FA3SCRI.js +5 -0
  290. package/dist/file-637CTR4Y.cjs +2744 -0
  291. package/dist/file-EJJBQEQI.js +2744 -0
  292. package/dist/file-runtime-B6AAGZQF.js +5 -0
  293. package/dist/file-runtime-SFZIKODF.cjs +5 -0
  294. package/dist/iban-ETTCKOHK.cjs +148 -0
  295. package/dist/iban-HXFDAF4I.js +148 -0
  296. package/dist/iban-runtime-EVXLFPPP.js +5 -0
  297. package/dist/iban-runtime-TUM5LVHO.cjs +5 -0
  298. package/dist/index.cjs +105 -100
  299. package/dist/index.d.cts +21 -5
  300. package/dist/index.d.ts +21 -5
  301. package/dist/index.js +56 -51
  302. package/dist/journey-KW3ZFQAL.js +2194 -0
  303. package/dist/journey-XIMSLSZC.cjs +2194 -0
  304. package/dist/journey-runtime-SPBL3F32.cjs +5 -0
  305. package/dist/journey-runtime-YXIAOTMD.js +5 -0
  306. package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
  307. package/dist/kanban-M4P7R5TM.cjs +890 -0
  308. package/dist/kanban-QXQEQIF4.js +890 -0
  309. package/dist/kanban-runtime-NHEUWTCG.cjs +5 -0
  310. package/dist/kanban-runtime-R6EWHBFS.js +5 -0
  311. package/dist/message-2VOVRXBB.cjs +2447 -0
  312. package/dist/message-M62W3KP2.js +2447 -0
  313. package/dist/message-runtime-ITR7MPKT.cjs +5 -0
  314. package/dist/message-runtime-YMKW2N3R.js +5 -0
  315. package/dist/metering-KEMILE75.cjs +2198 -0
  316. package/dist/metering-W3TA6ZUQ.js +2198 -0
  317. package/dist/metering-runtime-HAIWXZXJ.cjs +5 -0
  318. package/dist/metering-runtime-NJ6NEUMB.js +5 -0
  319. package/dist/notes-4LVCGLBE.js +1427 -0
  320. package/dist/notes-OBM5POWI.cjs +1427 -0
  321. package/dist/notes-runtime-CVNAVKPP.js +5 -0
  322. package/dist/notes-runtime-E3YYF74V.cjs +5 -0
  323. package/dist/notification-EEYPLPUV.cjs +1381 -0
  324. package/dist/notification-MJQGIBM7.js +1381 -0
  325. package/dist/notification-runtime-7QLZTPHG.cjs +5 -0
  326. package/dist/notification-runtime-KREP32YP.js +5 -0
  327. package/dist/organization-2UK7QZLQ.cjs +615 -0
  328. package/dist/organization-U5HPX627.js +615 -0
  329. package/dist/organization-runtime-LBCVCZ3W.cjs +5 -0
  330. package/dist/organization-runtime-P3WZ2BBU.js +5 -0
  331. package/dist/partner-directory-CG5CYJGB.cjs +1600 -0
  332. package/dist/partner-directory-THI7JEXK.js +7 -0
  333. package/dist/partner-directory-XJ7KI7EX.js +1600 -0
  334. package/dist/partner-directory-ZQIBKD5Q.cjs +7 -0
  335. package/dist/partner-directory-runtime-AUHVA5Q3.cjs +5 -0
  336. package/dist/partner-directory-runtime-GNVT7U7R.js +5 -0
  337. package/dist/partner-directory.d-BCIjHoGs.d.cts +2337 -0
  338. package/dist/partner-directory.d-BCIjHoGs.d.ts +2337 -0
  339. package/dist/permissions-SGPGANEP.js +1415 -0
  340. package/dist/permissions-WCOABHKQ.cjs +1415 -0
  341. package/dist/permissions-runtime-D74HOCVO.js +5 -0
  342. package/dist/permissions-runtime-O5LH7WOU.cjs +5 -0
  343. package/dist/pricing-3RNPCUR6.js +9362 -0
  344. package/dist/pricing-VYHPSVKM.cjs +9362 -0
  345. package/dist/pricing-runtime-6XNS4EOF.cjs +5 -0
  346. package/dist/pricing-runtime-JRR4FWFI.js +5 -0
  347. package/dist/pricing-tier-36WV4P4X.js +121 -0
  348. package/dist/pricing-tier-FKQPW2ND.cjs +121 -0
  349. package/dist/pricing-tier-runtime-32BCKJ7Y.cjs +5 -0
  350. package/dist/pricing-tier-runtime-LEGBNNLA.js +5 -0
  351. package/dist/purpose-JC2E7W3M.cjs +523 -0
  352. package/dist/purpose-QFQ4W255.js +523 -0
  353. package/dist/purpose-runtime-C6IGTUA6.cjs +5 -0
  354. package/dist/purpose-runtime-V5X5ESZV.js +5 -0
  355. package/dist/sandbox-CLZTN7IW.cjs +445 -0
  356. package/dist/sandbox-O2NWMZGJ.js +445 -0
  357. package/dist/sandbox-runtime-4MLOMFPK.js +5 -0
  358. package/dist/sandbox-runtime-GKEK3GQB.cjs +5 -0
  359. package/dist/submission-6FD67HIE.cjs +308 -0
  360. package/dist/submission-MWJU4L32.js +308 -0
  361. package/dist/submission-runtime-5FD4AQSD.cjs +5 -0
  362. package/dist/submission-runtime-JPHKPQ77.js +5 -0
  363. package/dist/targeting-4CQDSEKL.cjs +1369 -0
  364. package/dist/targeting-RB7LBQMX.js +1369 -0
  365. package/dist/targeting-runtime-6JFMP262.cjs +5 -0
  366. package/dist/targeting-runtime-M2VSTKFT.js +5 -0
  367. package/dist/template-variables-JYHE2VCH.cjs +1447 -0
  368. package/dist/template-variables-XLIW4GY6.js +1447 -0
  369. package/dist/template-variables-runtime-62U3ZY5P.js +5 -0
  370. package/dist/template-variables-runtime-LFOA32UM.cjs +5 -0
  371. package/dist/{types-BwBvJkY_.d.ts → types-ChU9Acbv.d.cts} +3 -0
  372. package/dist/{types-BwBvJkY_.d.cts → types-ChU9Acbv.d.ts} +3 -0
  373. package/dist/user-DKA6DDPX.cjs +2265 -0
  374. package/dist/user-O4JDAIRO.js +2265 -0
  375. package/dist/user-runtime-7O2HLFVQ.cjs +5 -0
  376. package/dist/user-runtime-U4HYUWJU.js +5 -0
  377. package/dist/validation-rules-AYCAOVDZ.cjs +1344 -0
  378. package/dist/validation-rules-GCI64B57.js +1344 -0
  379. package/dist/validation-rules-runtime-6MRCS5X2.js +5 -0
  380. package/dist/validation-rules-runtime-X7M3QE5I.cjs +5 -0
  381. package/dist/webhooks-L3FXPRKT.cjs +1431 -0
  382. package/dist/webhooks-XXLU2KWP.js +1431 -0
  383. package/dist/webhooks-runtime-EBM4M3SU.cjs +5 -0
  384. package/dist/webhooks-runtime-XCQYIGQK.js +5 -0
  385. package/dist/workflow-VLNZNE3S.js +3834 -0
  386. package/dist/workflow-YJHUCGVK.cjs +3834 -0
  387. package/dist/workflow-definition-7BA4H6W3.cjs +3100 -0
  388. package/dist/workflow-definition-VFYWBQQ3.js +3100 -0
  389. package/dist/workflow-definition-runtime-S7AZHOU7.js +5 -0
  390. package/dist/workflow-definition-runtime-VRND6VQR.cjs +5 -0
  391. package/dist/workflow-runtime-RLZO2OQB.js +5 -0
  392. package/dist/workflow-runtime-WCJ7NRTH.cjs +5 -0
  393. package/docs/partner-directory.md +295 -127
  394. package/package.json +3 -2
  395. package/dist/chunk-3XEP56SV.cjs +0 -204
  396. package/dist/chunk-ULBEEHG4.js +0 -204
  397. package/dist/partner-directory-2XMPQWWX.js +0 -7
  398. package/dist/partner-directory-WHNTKQ5E.cjs +0 -7
  399. package/dist/partner-directory.d-CRNkDF8q.d.cts +0 -1510
  400. package/dist/partner-directory.d-CRNkDF8q.d.ts +0 -1510
  401. /package/dist/{chunk-CPKBR34V.js → chunk-24T6CJTG.js} +0 -0
  402. /package/dist/{chunk-VQ7R36AC.js → chunk-265TE2OV.js} +0 -0
  403. /package/dist/{chunk-ZV6XYUXS.js → chunk-2BPBDRRO.js} +0 -0
  404. /package/dist/{chunk-KSXTBGIV.js → chunk-3XKBB5AE.js} +0 -0
  405. /package/dist/{chunk-GLO477NZ.js → chunk-3YSEO476.js} +0 -0
  406. /package/dist/{chunk-MKX4CKAB.cjs → chunk-46HU6232.cjs} +0 -0
  407. /package/dist/{chunk-JXBXDTFG.cjs → chunk-4G6LO3JY.cjs} +0 -0
  408. /package/dist/{chunk-Z4LUE424.cjs → chunk-4QCVVDTA.cjs} +0 -0
  409. /package/dist/{chunk-LQOLYXGQ.cjs → chunk-4W22EIRF.cjs} +0 -0
  410. /package/dist/{chunk-372VUPHN.js → chunk-4ZGZDE6D.js} +0 -0
  411. /package/dist/{chunk-IMT3IE5M.cjs → chunk-4ZMLRFDX.cjs} +0 -0
  412. /package/dist/{chunk-S7NDMDRX.js → chunk-5JPM6YUD.js} +0 -0
  413. /package/dist/{chunk-IS2VB342.js → chunk-5MFHAXBT.js} +0 -0
  414. /package/dist/{chunk-WOXXNKTE.js → chunk-5NKXJA43.js} +0 -0
  415. /package/dist/{chunk-S3ZNESMC.cjs → chunk-5WNEYQII.cjs} +0 -0
  416. /package/dist/{chunk-KA3TGFJP.js → chunk-6OYECNL2.js} +0 -0
  417. /package/dist/{chunk-T46LODOF.js → chunk-6UAS2VVG.js} +0 -0
  418. /package/dist/{chunk-PETLAONH.js → chunk-6VWCUZ5M.js} +0 -0
  419. /package/dist/{chunk-YZA5WZUS.js → chunk-75EI2Q64.js} +0 -0
  420. /package/dist/{chunk-2HOJWFQ4.js → chunk-75ZWZM3L.js} +0 -0
  421. /package/dist/{chunk-57QIBYDN.js → chunk-7IKQIVUS.js} +0 -0
  422. /package/dist/{chunk-DJKSULPK.js → chunk-A7AAVJGM.js} +0 -0
  423. /package/dist/{chunk-QLML3IP5.cjs → chunk-ANN2QTMY.cjs} +0 -0
  424. /package/dist/{chunk-A6JOROUC.cjs → chunk-BLNXQAMX.cjs} +0 -0
  425. /package/dist/{chunk-LCIJ4TJ4.cjs → chunk-BM6NCHPL.cjs} +0 -0
  426. /package/dist/{chunk-XR4QF6KQ.cjs → chunk-BPHOGIQM.cjs} +0 -0
  427. /package/dist/{chunk-K62XK7KU.js → chunk-BTTPWE2P.js} +0 -0
  428. /package/dist/{chunk-E26ZO7QM.cjs → chunk-COQMJFAB.cjs} +0 -0
  429. /package/dist/{chunk-QVAJ5JP4.js → chunk-CSK5ZUTS.js} +0 -0
  430. /package/dist/{chunk-3ZZ57K3S.cjs → chunk-D32L2HMX.cjs} +0 -0
  431. /package/dist/{chunk-TIJWJVKZ.js → chunk-D7Q4JGN7.js} +0 -0
  432. /package/dist/{chunk-CWSHYFVZ.js → chunk-DZ3P537S.js} +0 -0
  433. /package/dist/{chunk-MSASBR2Y.js → chunk-E2WMGOM5.js} +0 -0
  434. /package/dist/{chunk-XKI2OAYV.cjs → chunk-FARDEGPH.cjs} +0 -0
  435. /package/dist/{chunk-RWSA3LXE.cjs → chunk-G3VDRMOH.cjs} +0 -0
  436. /package/dist/{chunk-QDVPPRWI.cjs → chunk-G5FKTWUC.cjs} +0 -0
  437. /package/dist/{chunk-WMTYO5OX.cjs → chunk-GWKHOJGD.cjs} +0 -0
  438. /package/dist/{chunk-DNJ54L2G.js → chunk-H45V55VT.js} +0 -0
  439. /package/dist/{chunk-F472YLJG.cjs → chunk-HAZ3WP7V.cjs} +0 -0
  440. /package/dist/{chunk-NAWLLC3T.cjs → chunk-HHMXS5NC.cjs} +0 -0
  441. /package/dist/{chunk-DY2D2IW5.cjs → chunk-IGVVJMX7.cjs} +0 -0
  442. /package/dist/{chunk-KBOVBUBM.js → chunk-IJR3GZKC.js} +0 -0
  443. /package/dist/{chunk-73H6TVKN.js → chunk-IQOCHPWU.js} +0 -0
  444. /package/dist/{chunk-LSIWCIQV.js → chunk-JENQHXFI.js} +0 -0
  445. /package/dist/{chunk-G2REP2VZ.cjs → chunk-JICWF5VI.cjs} +0 -0
  446. /package/dist/{chunk-3HJEWWPS.cjs → chunk-JIUTCNTB.cjs} +0 -0
  447. /package/dist/{chunk-EBCHCYUO.js → chunk-JJWJLY42.js} +0 -0
  448. /package/dist/{chunk-SMGHAG5C.cjs → chunk-JXJC6WEW.cjs} +0 -0
  449. /package/dist/{chunk-HPYHWTTA.cjs → chunk-K2UZPY6U.cjs} +0 -0
  450. /package/dist/{chunk-VGTUK3QD.cjs → chunk-L66IX6GX.cjs} +0 -0
  451. /package/dist/{chunk-NLSZVGHK.cjs → chunk-LKRBFBFN.cjs} +0 -0
  452. /package/dist/{chunk-TLWCYLNA.js → chunk-LLZYRINH.js} +0 -0
  453. /package/dist/{chunk-4SWC43JO.cjs → chunk-M2SSGV7K.cjs} +0 -0
  454. /package/dist/{chunk-PVSS2WPM.cjs → chunk-M2UDF7PY.cjs} +0 -0
  455. /package/dist/{chunk-5SNJAD6F.cjs → chunk-M56QQHVA.cjs} +0 -0
  456. /package/dist/{chunk-QKERXNJJ.cjs → chunk-MB6NKETA.cjs} +0 -0
  457. /package/dist/{chunk-H4VSK4KF.js → chunk-MEUS7LCE.js} +0 -0
  458. /package/dist/{chunk-RD7E4OSJ.cjs → chunk-N5NFJW7Y.cjs} +0 -0
  459. /package/dist/{chunk-FXOX3X7E.cjs → chunk-NEVFKRDU.cjs} +0 -0
  460. /package/dist/{chunk-O4LRVGOY.js → chunk-O4JDWMYD.js} +0 -0
  461. /package/dist/{chunk-IH4CMOML.js → chunk-OEBV2PMV.js} +0 -0
  462. /package/dist/{chunk-VVVATFGK.cjs → chunk-OXJOO2YF.cjs} +0 -0
  463. /package/dist/{chunk-WOSSSFXB.js → chunk-PSQMDY3B.js} +0 -0
  464. /package/dist/{chunk-AJKH25H2.cjs → chunk-QOAWSFXA.cjs} +0 -0
  465. /package/dist/{chunk-UKKJMCNH.js → chunk-QT44OHHL.js} +0 -0
  466. /package/dist/{chunk-B3ZGAG7B.js → chunk-QTR3RH4N.js} +0 -0
  467. /package/dist/{chunk-3N67SSL3.js → chunk-RELUU5QZ.js} +0 -0
  468. /package/dist/{chunk-YYBIU5BQ.js → chunk-RJ3DWFSK.js} +0 -0
  469. /package/dist/{chunk-ARWMTXJV.cjs → chunk-RUZRPIHW.cjs} +0 -0
  470. /package/dist/{chunk-4VFQTSJQ.js → chunk-RW5JOHG7.js} +0 -0
  471. /package/dist/{chunk-EPAIOB5U.cjs → chunk-RXMOHUBP.cjs} +0 -0
  472. /package/dist/{chunk-MRZ7LGKZ.js → chunk-SBSIGQDU.js} +0 -0
  473. /package/dist/{chunk-TRJLYZHD.js → chunk-SITPUXIR.js} +0 -0
  474. /package/dist/{chunk-OGQKJTXF.js → chunk-SZMCMLOQ.js} +0 -0
  475. /package/dist/{chunk-VVQB5W7U.cjs → chunk-T67ZXTVG.cjs} +0 -0
  476. /package/dist/{chunk-HPSGM6QP.js → chunk-TME4YJNP.js} +0 -0
  477. /package/dist/{chunk-MRTAFRO7.js → chunk-TPA4HEAO.js} +0 -0
  478. /package/dist/{chunk-F376L6PP.cjs → chunk-TTNPMFXL.cjs} +0 -0
  479. /package/dist/{chunk-OG2DMGU6.cjs → chunk-TXDVGTQD.cjs} +0 -0
  480. /package/dist/{chunk-XZYZLSUO.cjs → chunk-UNCVJH6J.cjs} +0 -0
  481. /package/dist/{chunk-MHNSZ4HE.js → chunk-UUVJYJHD.js} +0 -0
  482. /package/dist/{chunk-C6UTZEHH.js → chunk-VSZEOCIE.js} +0 -0
  483. /package/dist/{chunk-EQZMT2HF.cjs → chunk-WQBBB6BN.cjs} +0 -0
  484. /package/dist/{chunk-BH5ZXK4J.cjs → chunk-WTMV77T2.cjs} +0 -0
  485. /package/dist/{chunk-BWFXLUK5.cjs → chunk-WWOAKRNG.cjs} +0 -0
  486. /package/dist/{chunk-ITX53XAZ.js → chunk-XSE4CFSM.js} +0 -0
  487. /package/dist/{chunk-SK3VYIZ6.cjs → chunk-YO4M3BZL.cjs} +0 -0
  488. /package/dist/{chunk-XYHTQ523.cjs → chunk-Z5TVWG3I.cjs} +0 -0
  489. /package/dist/{chunk-PXITFTJA.cjs → chunk-ZI33AJQ5.cjs} +0 -0
  490. /package/dist/{chunk-IP2WWEOU.js → chunk-ZKQ573B7.js} +0 -0
@@ -0,0 +1,1600 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/definitions/partner-directory.json
4
+ var openapi = "3.0.3";
5
+ var info = {
6
+ title: "Partner API",
7
+ description: "Management of Partners in epilot",
8
+ version: "1.5.0"
9
+ };
10
+ var tags = [
11
+ {
12
+ name: "partners",
13
+ "x-displayName": "Partners",
14
+ description: "Partner operations"
15
+ },
16
+ {
17
+ name: "partner_users",
18
+ "x-displayName": "Partner Users",
19
+ description: "Partner user management operations"
20
+ },
21
+ {
22
+ name: "partner_schema",
23
+ "x-displayName": "Partner",
24
+ description: '<SchemaDefinition schemaRef="#/components/schemas/Partner" />\n'
25
+ }
26
+ ];
27
+ var security = [
28
+ {
29
+ EpilotAuth: []
30
+ },
31
+ {
32
+ AsOrganization: []
33
+ }
34
+ ];
35
+ var paths = {
36
+ "/v1/partners/{id}/approve": {
37
+ post: {
38
+ operationId: "approvePartner",
39
+ summary: "approvePartner",
40
+ tags: ["partners"],
41
+ description: "Approve partner request",
42
+ parameters: [
43
+ {
44
+ in: "path",
45
+ name: "id",
46
+ schema: {
47
+ $ref: "#/components/schemas/PartnerId"
48
+ },
49
+ required: true,
50
+ description: "The Id of partner"
51
+ }
52
+ ],
53
+ responses: {
54
+ "201": {
55
+ description: "Approve successfully",
56
+ content: {
57
+ "application/json": {
58
+ schema: {
59
+ $ref: "#/components/schemas/Partner"
60
+ }
61
+ }
62
+ }
63
+ },
64
+ "400": {
65
+ description: "Unable to approve"
66
+ }
67
+ }
68
+ }
69
+ },
70
+ "/v1/partners/{id}/reject": {
71
+ post: {
72
+ operationId: "rejectPartner",
73
+ summary: "rejectPartner",
74
+ tags: ["partners"],
75
+ description: "Reject partner request",
76
+ parameters: [
77
+ {
78
+ in: "path",
79
+ name: "id",
80
+ schema: {
81
+ $ref: "#/components/schemas/PartnerId"
82
+ },
83
+ required: true,
84
+ description: "The Id of partner"
85
+ }
86
+ ],
87
+ responses: {
88
+ "200": {
89
+ description: "Invited successfully",
90
+ content: {
91
+ "application/json": {
92
+ schema: {
93
+ $ref: "#/components/schemas/Partner"
94
+ }
95
+ }
96
+ }
97
+ },
98
+ "400": {
99
+ description: "Unable to reject"
100
+ }
101
+ }
102
+ }
103
+ },
104
+ "/v1/partners/assignables:search": {
105
+ post: {
106
+ operationId: "searchAssignable",
107
+ summary: "searchAssignables",
108
+ description: "Search for assignable users/organizations from this organization and Partners\n\nResults can include:\n - Users in your organization\n - Users in partner organizations\n - Partner organizations\n",
109
+ tags: ["partners"],
110
+ requestBody: {
111
+ content: {
112
+ "application/json": {
113
+ schema: {
114
+ type: "object",
115
+ properties: {
116
+ q: {
117
+ description: "search query to filter results",
118
+ type: "string",
119
+ default: ""
120
+ },
121
+ from: {
122
+ description: "start results from an offset for pagination",
123
+ type: "integer",
124
+ minimum: 0,
125
+ default: 0
126
+ },
127
+ size: {
128
+ description: "limit number of results to return",
129
+ type: "integer",
130
+ minimum: 1,
131
+ maximum: 1e3,
132
+ default: 25
133
+ },
134
+ org_ids: {
135
+ description: "filter results to specific organizations. defaults to all orgs",
136
+ type: "array",
137
+ items: {
138
+ $ref: "#/components/schemas/OrganizationId"
139
+ }
140
+ },
141
+ portalUsersEntityIdScope: {
142
+ description: "Optional parameter if 'types' contains 'ecp' type user. Portal Users will only be fetched in the context of an entity, fetching the related ones through relations and not returning placeholders anymore.",
143
+ type: "string",
144
+ default: ""
145
+ },
146
+ types: {
147
+ description: "filter results to specific types of assignables. defaults to all types",
148
+ type: "array",
149
+ default: ["user", "partner_user", "partner_organization", "ecp", "group"],
150
+ items: {
151
+ type: "string",
152
+ enum: [
153
+ "user",
154
+ "partner_user",
155
+ "partner_organization",
156
+ "ecp",
157
+ "group",
158
+ "parent_organization_user"
159
+ ]
160
+ }
161
+ }
162
+ },
163
+ required: ["q"]
164
+ }
165
+ }
166
+ }
167
+ },
168
+ responses: {
169
+ "200": {
170
+ description: "List of assignable results",
171
+ content: {
172
+ "application/json": {
173
+ schema: {
174
+ type: "object",
175
+ properties: {
176
+ hits: {
177
+ description: "total number of search results",
178
+ type: "integer",
179
+ example: 25
180
+ },
181
+ results: {
182
+ type: "array",
183
+ items: {
184
+ $ref: "#/components/schemas/Assignable"
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
194
+ },
195
+ "/v1/partners/assignables:batchGet": {
196
+ post: {
197
+ operationId: "batchGetAssignable",
198
+ summary: "batchGet",
199
+ description: "Search for assignable users from this organization by its ids\n",
200
+ tags: ["partners"],
201
+ requestBody: {
202
+ content: {
203
+ "application/json": {
204
+ schema: {
205
+ type: "array",
206
+ items: {
207
+ minItems: 1,
208
+ type: "object",
209
+ properties: {
210
+ user_id: {
211
+ description: "user id of assignable",
212
+ type: "string"
213
+ },
214
+ org_id: {
215
+ description: "organization id of assignable (optional, defaults to caller org)",
216
+ type: "string"
217
+ },
218
+ group_id: {
219
+ description: "group id of assignable (optional)",
220
+ type: "string"
221
+ }
222
+ }
223
+ }
224
+ }
225
+ }
226
+ }
227
+ },
228
+ responses: {
229
+ "200": {
230
+ description: "List of assignable results",
231
+ content: {
232
+ "application/json": {
233
+ schema: {
234
+ type: "object",
235
+ properties: {
236
+ hits: {
237
+ description: "total number of search results",
238
+ type: "integer",
239
+ example: 25
240
+ },
241
+ results: {
242
+ type: "array",
243
+ items: {
244
+ $ref: "#/components/schemas/Assignable"
245
+ }
246
+ }
247
+ }
248
+ }
249
+ }
250
+ }
251
+ }
252
+ }
253
+ }
254
+ },
255
+ "/v1/partner-directory/public/getPartnerByToken": {
256
+ get: {
257
+ operationId: "getPartnerByToken",
258
+ summary: "getPartnerByToken",
259
+ description: "Get partner by token",
260
+ security: [],
261
+ tags: ["partners"],
262
+ parameters: [
263
+ {
264
+ in: "query",
265
+ name: "token",
266
+ schema: {
267
+ $ref: "#/components/schemas/InviteToken"
268
+ },
269
+ required: true,
270
+ description: "Invite Token"
271
+ }
272
+ ],
273
+ responses: {
274
+ "200": {
275
+ description: "Partner",
276
+ content: {
277
+ "application/json": {
278
+ schema: {
279
+ $ref: "#/components/schemas/Partner"
280
+ }
281
+ }
282
+ }
283
+ },
284
+ "404": {
285
+ description: "Token not found for the partner"
286
+ }
287
+ }
288
+ }
289
+ },
290
+ "/v1/partner-directory/public/activate": {
291
+ post: {
292
+ operationId: "activatePartner",
293
+ summary: "activatePartner",
294
+ description: "Activate partner using an invite token",
295
+ security: [],
296
+ tags: ["partners"],
297
+ parameters: [
298
+ {
299
+ name: "token",
300
+ description: "Invite Token",
301
+ in: "query",
302
+ required: true,
303
+ schema: {
304
+ $ref: "#/components/schemas/InviteToken"
305
+ }
306
+ }
307
+ ],
308
+ requestBody: {
309
+ content: {
310
+ "application/json": {
311
+ schema: {
312
+ $ref: "#/components/schemas/ActivatePartnerPayload"
313
+ }
314
+ }
315
+ }
316
+ },
317
+ responses: {
318
+ "200": {
319
+ description: "Activated successfully"
320
+ },
321
+ "404": {
322
+ description: "Token not found for the partner"
323
+ }
324
+ }
325
+ }
326
+ },
327
+ "/v1/geolocation/text:search": {
328
+ post: {
329
+ operationId: "searchGeolocationForText",
330
+ summary: "searchGeolocationForText",
331
+ tags: ["partners"],
332
+ description: "Converts a given string, in the format of an address, to geo-location latitude and longitude",
333
+ requestBody: {
334
+ content: {
335
+ "application/json": {
336
+ schema: {
337
+ $ref: "#/components/schemas/SearchGeolocation"
338
+ }
339
+ }
340
+ }
341
+ },
342
+ responses: {
343
+ "200": {
344
+ description: "Geo-location converted from text",
345
+ content: {
346
+ "application/json": {
347
+ schema: {
348
+ $ref: "#/components/schemas/Geolocation"
349
+ }
350
+ }
351
+ }
352
+ },
353
+ "400": {
354
+ description: "No text provided"
355
+ },
356
+ "404": {
357
+ description: "No geo-location found for text"
358
+ }
359
+ }
360
+ }
361
+ },
362
+ "/v2/partners/{id}/invite": {
363
+ post: {
364
+ operationId: "invitePartnerV2",
365
+ summary: "invitePartnerV2",
366
+ tags: ["partners"],
367
+ description: "Invite a partner into collaboration. It will send an email to partner and ask to join into collaboration",
368
+ parameters: [
369
+ {
370
+ in: "path",
371
+ name: "id",
372
+ schema: {
373
+ $ref: "#/components/schemas/PartnerId"
374
+ },
375
+ required: true,
376
+ description: "The Id of partner"
377
+ }
378
+ ],
379
+ requestBody: {
380
+ content: {
381
+ "application/json": {
382
+ schema: {
383
+ $ref: "#/components/schemas/PartnerInvitationPayload"
384
+ }
385
+ }
386
+ }
387
+ },
388
+ responses: {
389
+ "200": {
390
+ description: "Invited successfully",
391
+ content: {
392
+ "application/json": {
393
+ schema: {
394
+ $ref: "#/components/schemas/Partner"
395
+ }
396
+ }
397
+ }
398
+ },
399
+ "400": {
400
+ description: "Unable to invite"
401
+ }
402
+ }
403
+ }
404
+ },
405
+ "/v2/partners/{orgId}/users": {
406
+ get: {
407
+ operationId: "getPartnerUsers",
408
+ summary: "getPartnerUsers",
409
+ tags: ["partner_users"],
410
+ description: "Get all users for a partner organization with their roles",
411
+ parameters: [
412
+ {
413
+ in: "path",
414
+ name: "orgId",
415
+ schema: {
416
+ $ref: "#/components/schemas/OrganizationId"
417
+ },
418
+ required: true,
419
+ description: "The organization ID of the partner"
420
+ }
421
+ ],
422
+ responses: {
423
+ "200": {
424
+ description: "List of partner users with roles",
425
+ content: {
426
+ "application/json": {
427
+ schema: {
428
+ type: "object",
429
+ properties: {
430
+ results: {
431
+ type: "array",
432
+ items: {
433
+ $ref: "#/components/schemas/PartnerUser"
434
+ }
435
+ }
436
+ }
437
+ }
438
+ }
439
+ }
440
+ },
441
+ "400": {
442
+ description: "Unable to fetch partner users"
443
+ },
444
+ "500": {
445
+ description: "Internal server error"
446
+ }
447
+ }
448
+ },
449
+ post: {
450
+ operationId: "createPartnerUser",
451
+ summary: "createPartnerUser",
452
+ tags: ["partner_users"],
453
+ description: "Create a new user in a partner organization",
454
+ parameters: [
455
+ {
456
+ in: "path",
457
+ name: "orgId",
458
+ schema: {
459
+ $ref: "#/components/schemas/OrganizationId"
460
+ },
461
+ required: true,
462
+ description: "The Partner organization ID where the user should be created"
463
+ }
464
+ ],
465
+ requestBody: {
466
+ content: {
467
+ "application/json": {
468
+ schema: {
469
+ $ref: "#/components/schemas/CreatePartnerUserPayload"
470
+ }
471
+ }
472
+ }
473
+ },
474
+ responses: {
475
+ "201": {
476
+ description: "User created successfully",
477
+ content: {
478
+ "application/json": {
479
+ schema: {
480
+ $ref: "#/components/schemas/User"
481
+ }
482
+ }
483
+ }
484
+ },
485
+ "400": {
486
+ description: "Unable to create partner user"
487
+ },
488
+ "500": {
489
+ description: "Internal server error"
490
+ }
491
+ }
492
+ }
493
+ },
494
+ "/v2/partners/{orgId}/users/{userId}": {
495
+ delete: {
496
+ operationId: "deletePartnerUser",
497
+ summary: "deletePartnerUser",
498
+ tags: ["partner_users"],
499
+ description: "Delete a user from a partner organization",
500
+ parameters: [
501
+ {
502
+ in: "path",
503
+ name: "orgId",
504
+ schema: {
505
+ $ref: "#/components/schemas/OrganizationId"
506
+ },
507
+ required: true,
508
+ description: "The organization ID of the partner"
509
+ },
510
+ {
511
+ in: "path",
512
+ name: "userId",
513
+ schema: {
514
+ type: "string"
515
+ },
516
+ required: true,
517
+ description: "The user ID to delete"
518
+ }
519
+ ],
520
+ responses: {
521
+ "200": {
522
+ description: "User deleted successfully",
523
+ content: {
524
+ "application/json": {
525
+ schema: {
526
+ type: "object"
527
+ }
528
+ }
529
+ }
530
+ },
531
+ "400": {
532
+ description: "Unable to delete partner user"
533
+ },
534
+ "404": {
535
+ description: "User not found"
536
+ },
537
+ "500": {
538
+ description: "Internal server error"
539
+ }
540
+ }
541
+ }
542
+ },
543
+ "/v2/partners/{orgId}/roles": {
544
+ get: {
545
+ operationId: "getPartnerRoles",
546
+ summary: "getPartnerRoles",
547
+ tags: ["partner_users"],
548
+ description: "Get all roles for a partner organization",
549
+ parameters: [
550
+ {
551
+ in: "path",
552
+ name: "orgId",
553
+ schema: {
554
+ $ref: "#/components/schemas/OrganizationId"
555
+ },
556
+ required: true,
557
+ description: "The organization ID of the partner"
558
+ }
559
+ ],
560
+ responses: {
561
+ "200": {
562
+ description: "List of partner roles",
563
+ content: {
564
+ "application/json": {
565
+ schema: {
566
+ type: "object",
567
+ properties: {
568
+ results: {
569
+ type: "array",
570
+ items: {
571
+ $ref: "#/components/schemas/PartnerRole"
572
+ }
573
+ }
574
+ }
575
+ }
576
+ }
577
+ }
578
+ },
579
+ "400": {
580
+ description: "Unable to fetch partner roles"
581
+ },
582
+ "500": {
583
+ description: "Internal server error"
584
+ }
585
+ }
586
+ },
587
+ post: {
588
+ operationId: "createPartnerRole",
589
+ summary: "createPartnerRole",
590
+ tags: ["partner_users"],
591
+ description: "Create a role for a partner organization",
592
+ parameters: [
593
+ {
594
+ in: "path",
595
+ name: "orgId",
596
+ schema: {
597
+ $ref: "#/components/schemas/OrganizationId"
598
+ },
599
+ required: true,
600
+ description: "The organization ID of the partner"
601
+ }
602
+ ],
603
+ requestBody: {
604
+ content: {
605
+ "application/json": {
606
+ schema: {
607
+ $ref: "#/components/schemas/CreatePartnerRolePayload"
608
+ }
609
+ }
610
+ }
611
+ },
612
+ responses: {
613
+ "201": {
614
+ description: "Role created successfully",
615
+ content: {
616
+ "application/json": {
617
+ schema: {
618
+ $ref: "#/components/schemas/PartnerRole"
619
+ }
620
+ }
621
+ }
622
+ },
623
+ "400": {
624
+ description: "Unable to create partner role"
625
+ },
626
+ "500": {
627
+ description: "Internal server error"
628
+ }
629
+ }
630
+ }
631
+ },
632
+ "/v2/partners/{orgId}/roles/{roleId}": {
633
+ put: {
634
+ operationId: "updatePartnerRole",
635
+ summary: "updatePartnerRole",
636
+ tags: ["partner_users"],
637
+ description: "Update a role for a partner organization",
638
+ parameters: [
639
+ {
640
+ in: "path",
641
+ name: "orgId",
642
+ schema: {
643
+ $ref: "#/components/schemas/OrganizationId"
644
+ },
645
+ required: true,
646
+ description: "The organization ID of the partner"
647
+ },
648
+ {
649
+ in: "path",
650
+ name: "roleId",
651
+ schema: {
652
+ type: "string"
653
+ },
654
+ required: true,
655
+ description: "The role ID to update"
656
+ }
657
+ ],
658
+ requestBody: {
659
+ content: {
660
+ "application/json": {
661
+ schema: {
662
+ $ref: "#/components/schemas/UpdatePartnerRolePayload"
663
+ }
664
+ }
665
+ }
666
+ },
667
+ responses: {
668
+ "200": {
669
+ description: "Role updated successfully",
670
+ content: {
671
+ "application/json": {
672
+ schema: {
673
+ $ref: "#/components/schemas/PartnerRole"
674
+ }
675
+ }
676
+ }
677
+ },
678
+ "400": {
679
+ description: "Unable to update partner role"
680
+ },
681
+ "500": {
682
+ description: "Internal server error"
683
+ }
684
+ }
685
+ }
686
+ },
687
+ "/v2/partners/{orgId}/users/{userId}/roles": {
688
+ post: {
689
+ operationId: "assignPartnerUserRoles",
690
+ summary: "assignPartnerUserRoles",
691
+ tags: ["partner_users"],
692
+ description: "Assign roles to a user in a partner organization",
693
+ parameters: [
694
+ {
695
+ in: "path",
696
+ name: "orgId",
697
+ schema: {
698
+ $ref: "#/components/schemas/OrganizationId"
699
+ },
700
+ required: true,
701
+ description: "The organization ID of the partner"
702
+ },
703
+ {
704
+ in: "path",
705
+ name: "userId",
706
+ schema: {
707
+ type: "string"
708
+ },
709
+ required: true,
710
+ description: "The user ID"
711
+ }
712
+ ],
713
+ requestBody: {
714
+ content: {
715
+ "application/json": {
716
+ schema: {
717
+ $ref: "#/components/schemas/AssignRolesPayload"
718
+ }
719
+ }
720
+ }
721
+ },
722
+ responses: {
723
+ "200": {
724
+ description: "Roles assigned successfully",
725
+ content: {
726
+ "application/json": {
727
+ schema: {
728
+ type: "object",
729
+ properties: {
730
+ results: {
731
+ type: "array",
732
+ items: {
733
+ type: "object",
734
+ properties: {
735
+ roleId: {
736
+ type: "string"
737
+ },
738
+ success: {
739
+ type: "boolean"
740
+ },
741
+ data: {
742
+ type: "object"
743
+ },
744
+ error: {
745
+ type: "object"
746
+ }
747
+ }
748
+ }
749
+ }
750
+ }
751
+ }
752
+ }
753
+ }
754
+ },
755
+ "400": {
756
+ description: "Unable to assign roles"
757
+ },
758
+ "500": {
759
+ description: "Internal server error"
760
+ }
761
+ }
762
+ },
763
+ delete: {
764
+ operationId: "unassignPartnerUserRoles",
765
+ summary: "unassignPartnerUserRoles",
766
+ tags: ["partner_users"],
767
+ description: "Unassign roles from a user in a partner organization",
768
+ parameters: [
769
+ {
770
+ in: "path",
771
+ name: "orgId",
772
+ schema: {
773
+ $ref: "#/components/schemas/OrganizationId"
774
+ },
775
+ required: true,
776
+ description: "The organization ID of the partner"
777
+ },
778
+ {
779
+ in: "path",
780
+ name: "userId",
781
+ schema: {
782
+ type: "string"
783
+ },
784
+ required: true,
785
+ description: "The user ID"
786
+ }
787
+ ],
788
+ requestBody: {
789
+ content: {
790
+ "application/json": {
791
+ schema: {
792
+ $ref: "#/components/schemas/AssignRolesPayload"
793
+ }
794
+ }
795
+ }
796
+ },
797
+ responses: {
798
+ "200": {
799
+ description: "Roles unassigned successfully",
800
+ content: {
801
+ "application/json": {
802
+ schema: {
803
+ type: "object",
804
+ properties: {
805
+ results: {
806
+ type: "array",
807
+ items: {
808
+ type: "object",
809
+ properties: {
810
+ roleId: {
811
+ type: "string"
812
+ },
813
+ success: {
814
+ type: "boolean"
815
+ },
816
+ data: {
817
+ type: "object"
818
+ },
819
+ error: {
820
+ type: "object"
821
+ }
822
+ }
823
+ }
824
+ }
825
+ }
826
+ }
827
+ }
828
+ }
829
+ },
830
+ "400": {
831
+ description: "Unable to unassign roles"
832
+ },
833
+ "500": {
834
+ description: "Internal server error"
835
+ }
836
+ }
837
+ }
838
+ }
839
+ };
840
+ var components = {
841
+ securitySchemes: {
842
+ EpilotAuth: {
843
+ type: "http",
844
+ scheme: "bearer",
845
+ description: "Authorization header with epilot OAuth2 bearer token",
846
+ bearerFormat: "JWT"
847
+ },
848
+ AsOrganization: {
849
+ type: "apiKey",
850
+ in: "header",
851
+ name: "x-ivy-org-id",
852
+ description: "Set organization id when using internal auth"
853
+ }
854
+ },
855
+ schemas: {
856
+ InviteToken: {
857
+ type: "string"
858
+ },
859
+ Partner: {
860
+ type: "object",
861
+ properties: {
862
+ id: {
863
+ $ref: "#/components/schemas/PartnerId"
864
+ },
865
+ organization_id: {
866
+ $ref: "#/components/schemas/OrganizationId"
867
+ },
868
+ created_at: {
869
+ type: "string",
870
+ example: "2022-02-08T04:44:32.246Z"
871
+ },
872
+ description: {
873
+ type: "string",
874
+ description: "Description",
875
+ example: "Description"
876
+ },
877
+ company_name: {
878
+ type: "string",
879
+ description: "Company name",
880
+ example: "Company name"
881
+ },
882
+ invitation_token: {
883
+ description: "Invitation token",
884
+ type: "string"
885
+ },
886
+ invitation_email: {
887
+ deprecated: true,
888
+ description: "Email using to receive invitation",
889
+ type: "string",
890
+ format: "email"
891
+ },
892
+ email: {
893
+ description: "Email using to receive invitation",
894
+ type: "string",
895
+ format: "email"
896
+ },
897
+ owner_email: {
898
+ description: "A separate email where the invitation should be sent",
899
+ type: "string",
900
+ format: "email"
901
+ },
902
+ signed_up_email: {
903
+ description: "Email using to sign up",
904
+ type: "string",
905
+ format: "email"
906
+ },
907
+ partner_org_id: {
908
+ description: "Target Organization",
909
+ type: "string",
910
+ example: 123456
911
+ },
912
+ status: {
913
+ type: "string",
914
+ enum: ["Pending", "Request", "Deleted", "Invited", "Rejected"]
915
+ }
916
+ }
917
+ },
918
+ PartnerId: {
919
+ type: "string",
920
+ example: "e45a6dc2-3795-43a3-ae0f-6b6760f310fc"
921
+ },
922
+ OrganizationId: {
923
+ type: "string",
924
+ example: "123"
925
+ },
926
+ ActivatePartnerPayload: {
927
+ type: "object",
928
+ properties: {
929
+ company_name: {
930
+ type: "string",
931
+ description: "Company name",
932
+ example: "Company name"
933
+ },
934
+ signed_up_email: {
935
+ description: "Email using to sign up",
936
+ type: "string",
937
+ format: "email"
938
+ },
939
+ organization_id: {
940
+ description: "organization id",
941
+ type: "string"
942
+ }
943
+ },
944
+ required: ["signed_up_email", "organization_id"]
945
+ },
946
+ PartnerInvitationPayload: {
947
+ type: "object",
948
+ properties: {
949
+ language: {
950
+ type: "string",
951
+ description: "Language for partner invitation email",
952
+ enum: ["en", "de"],
953
+ default: "en"
954
+ }
955
+ }
956
+ },
957
+ Assignable: {
958
+ oneOf: [
959
+ {
960
+ $ref: "#/components/schemas/AssignableUser"
961
+ },
962
+ {
963
+ $ref: "#/components/schemas/AssignablePartnerUser"
964
+ },
965
+ {
966
+ $ref: "#/components/schemas/AssignableOrganization"
967
+ },
968
+ {
969
+ $ref: "#/components/schemas/AssignableEcpPlaceholder"
970
+ },
971
+ {
972
+ $ref: "#/components/schemas/AssignableGroup"
973
+ }
974
+ ]
975
+ },
976
+ BaseAssignable: {
977
+ type: "object",
978
+ properties: {
979
+ type: {
980
+ type: "string",
981
+ example: "user"
982
+ },
983
+ display_name: {
984
+ type: "string",
985
+ example: "Example User"
986
+ },
987
+ image_uri: {
988
+ type: "object",
989
+ properties: {
990
+ original: {
991
+ type: "string",
992
+ format: "uri",
993
+ example: "https://epilot-staging-user-content.s3.eu-central-1.amazonaws.com/728/8043d909-71fc-4838-a363-1b15dc1d585c/epilot.png"
994
+ },
995
+ thumbnail_32: {
996
+ type: "string",
997
+ format: "uri",
998
+ example: "https://file.sls.epilot.io/v1/files/public/preview?w=32&h=32&key=/728/8043d909-71fc-4838-a363-1b15dc1d585c/epilot.png"
999
+ }
1000
+ },
1001
+ required: ["original"]
1002
+ },
1003
+ org_id: {
1004
+ $ref: "#/components/schemas/OrganizationId"
1005
+ },
1006
+ created_at: {
1007
+ type: "string",
1008
+ example: "2022-02-08T04:44:32.246Z"
1009
+ },
1010
+ activated_at: {
1011
+ type: "string",
1012
+ example: "2022-02-08T04:44:32.246Z"
1013
+ },
1014
+ status: {
1015
+ type: "string",
1016
+ enum: ["Active", "Pending", "Deactivated", "Deleted"]
1017
+ }
1018
+ },
1019
+ required: ["type", "display_name", "org_id"]
1020
+ },
1021
+ AssignableUser: {
1022
+ allOf: [
1023
+ {
1024
+ $ref: "#/components/schemas/BaseAssignable"
1025
+ },
1026
+ {
1027
+ type: "object",
1028
+ properties: {
1029
+ type: {
1030
+ type: "string",
1031
+ enum: ["user"],
1032
+ example: "user"
1033
+ },
1034
+ display_name: {
1035
+ type: "string",
1036
+ example: "Example User"
1037
+ },
1038
+ user_id: {
1039
+ type: "string",
1040
+ example: "456"
1041
+ },
1042
+ email: {
1043
+ type: "string",
1044
+ example: "example@example.com"
1045
+ }
1046
+ }
1047
+ }
1048
+ ]
1049
+ },
1050
+ AssignablePartnerUser: {
1051
+ allOf: [
1052
+ {
1053
+ $ref: "#/components/schemas/BaseAssignable"
1054
+ },
1055
+ {
1056
+ type: "object",
1057
+ properties: {
1058
+ type: {
1059
+ type: "string",
1060
+ enum: ["partner_user"],
1061
+ example: "partner_user"
1062
+ },
1063
+ display_name: {
1064
+ type: "string",
1065
+ example: "Example Partner User"
1066
+ },
1067
+ partner_id: {
1068
+ $ref: "#/components/schemas/PartnerId"
1069
+ },
1070
+ user_id: {
1071
+ type: "string",
1072
+ example: "456"
1073
+ },
1074
+ email: {
1075
+ type: "string",
1076
+ example: "example@example.com"
1077
+ }
1078
+ }
1079
+ }
1080
+ ]
1081
+ },
1082
+ AssignableGroup: {
1083
+ allOf: [
1084
+ {
1085
+ $ref: "#/components/schemas/BaseAssignable"
1086
+ },
1087
+ {
1088
+ type: "object",
1089
+ properties: {
1090
+ group_id: {
1091
+ type: "string",
1092
+ example: "456"
1093
+ }
1094
+ }
1095
+ }
1096
+ ]
1097
+ },
1098
+ AssignableOrganization: {
1099
+ allOf: [
1100
+ {
1101
+ $ref: "#/components/schemas/BaseAssignable"
1102
+ },
1103
+ {
1104
+ type: "object",
1105
+ properties: {
1106
+ type: {
1107
+ type: "string",
1108
+ enum: ["partner_organization"],
1109
+ example: "partner_organization"
1110
+ },
1111
+ display_name: {
1112
+ type: "string",
1113
+ example: "Example Partner Organization"
1114
+ },
1115
+ partner_id: {
1116
+ $ref: "#/components/schemas/PartnerId"
1117
+ },
1118
+ email: {
1119
+ type: "string",
1120
+ example: "Email of Partner Organization"
1121
+ },
1122
+ geolocations: {
1123
+ type: "array",
1124
+ items: {
1125
+ $ref: "#/components/schemas/AddressGeolocation"
1126
+ }
1127
+ },
1128
+ phone: {
1129
+ type: "string",
1130
+ example: "Phone number of Partner"
1131
+ },
1132
+ activity_radius: {
1133
+ type: "number",
1134
+ description: "Activity radius, in km, the partner is operating in",
1135
+ example: 50
1136
+ }
1137
+ },
1138
+ required: ["type", "display_name", "partner_id"]
1139
+ }
1140
+ ]
1141
+ },
1142
+ AssignableEcpPlaceholder: {
1143
+ allOf: [
1144
+ {
1145
+ $ref: "#/components/schemas/BaseAssignable"
1146
+ },
1147
+ {
1148
+ type: "object",
1149
+ properties: {
1150
+ type: {
1151
+ type: "string",
1152
+ enum: ["ecp"],
1153
+ example: "ecp"
1154
+ },
1155
+ display_name: {
1156
+ type: "string",
1157
+ example: "Example Ecp Placeholder"
1158
+ },
1159
+ user_id: {
1160
+ type: "string",
1161
+ example: "456"
1162
+ },
1163
+ email: {
1164
+ type: "string",
1165
+ example: "Email of ECP Placeholder"
1166
+ }
1167
+ },
1168
+ required: ["type", "display_name", "user_id"]
1169
+ }
1170
+ ]
1171
+ },
1172
+ SearchGeolocation: {
1173
+ type: "object",
1174
+ properties: {
1175
+ address: {
1176
+ type: "string",
1177
+ description: "Address text to convert into geolocation coordinates",
1178
+ example: "Auweg 1, 93055 Regensburg, DE"
1179
+ }
1180
+ },
1181
+ required: ["address"]
1182
+ },
1183
+ Geolocation: {
1184
+ type: "object",
1185
+ properties: {
1186
+ lat: {
1187
+ type: "number",
1188
+ description: "Latitude",
1189
+ example: 49.013
1190
+ },
1191
+ lng: {
1192
+ type: "number",
1193
+ description: "Longitude",
1194
+ example: 12.101
1195
+ },
1196
+ addressLabel: {
1197
+ type: "string",
1198
+ description: "Full address label as returned by the location service"
1199
+ },
1200
+ relevance: {
1201
+ type: "number",
1202
+ description: "Relevance of the result. A number between 0 and 1. Closer to 1 means more relevant"
1203
+ }
1204
+ },
1205
+ required: ["lat", "lng"]
1206
+ },
1207
+ Address: {
1208
+ type: "object",
1209
+ properties: {
1210
+ street: {
1211
+ type: "string",
1212
+ description: "Street",
1213
+ example: "Auweg"
1214
+ },
1215
+ street_number: {
1216
+ type: "string",
1217
+ description: "Street",
1218
+ example: "10"
1219
+ },
1220
+ city: {
1221
+ type: "string",
1222
+ description: "City",
1223
+ example: "Regensburg"
1224
+ },
1225
+ postal_code: {
1226
+ type: "string",
1227
+ description: "Postal code",
1228
+ example: "93055"
1229
+ },
1230
+ country: {
1231
+ type: "string",
1232
+ description: "Country",
1233
+ example: "DE"
1234
+ }
1235
+ }
1236
+ },
1237
+ AddressGeolocation: {
1238
+ type: "object",
1239
+ allOf: [
1240
+ {
1241
+ type: "object",
1242
+ properties: {
1243
+ address: {
1244
+ $ref: "#/components/schemas/Address"
1245
+ }
1246
+ }
1247
+ },
1248
+ {
1249
+ $ref: "#/components/schemas/Geolocation"
1250
+ }
1251
+ ],
1252
+ required: ["address"]
1253
+ },
1254
+ PartnerUser: {
1255
+ type: "object",
1256
+ properties: {
1257
+ id: {
1258
+ type: "string",
1259
+ description: "User ID",
1260
+ example: "456"
1261
+ },
1262
+ name: {
1263
+ type: "string",
1264
+ description: "User name",
1265
+ example: "John Doe"
1266
+ },
1267
+ email: {
1268
+ type: "string",
1269
+ format: "email",
1270
+ description: "User email",
1271
+ example: "user@example.com"
1272
+ },
1273
+ status: {
1274
+ type: "string",
1275
+ description: "User status",
1276
+ example: "Active"
1277
+ },
1278
+ image: {
1279
+ type: "object",
1280
+ properties: {
1281
+ original: {
1282
+ type: "string",
1283
+ format: "uri",
1284
+ description: "Original image URI"
1285
+ },
1286
+ thumbnail_32: {
1287
+ type: "string",
1288
+ format: "uri",
1289
+ description: "Thumbnail image URI (32x32)"
1290
+ }
1291
+ }
1292
+ },
1293
+ roles: {
1294
+ type: "array",
1295
+ description: "List of roles assigned to the user",
1296
+ items: {
1297
+ type: "object",
1298
+ properties: {
1299
+ id: {
1300
+ type: "string",
1301
+ description: "Role ID",
1302
+ example: "role-123"
1303
+ },
1304
+ slug: {
1305
+ type: "string",
1306
+ description: "Role slug",
1307
+ example: "admin"
1308
+ },
1309
+ name: {
1310
+ type: "string",
1311
+ description: "Role name",
1312
+ example: "Administrator"
1313
+ }
1314
+ },
1315
+ required: ["id", "slug", "name"]
1316
+ }
1317
+ }
1318
+ },
1319
+ required: ["id", "email", "status", "roles"]
1320
+ },
1321
+ CreatePartnerUserPayload: {
1322
+ type: "object",
1323
+ properties: {
1324
+ email: {
1325
+ type: "string",
1326
+ format: "email",
1327
+ description: "User email address",
1328
+ example: "user@example.com"
1329
+ },
1330
+ language: {
1331
+ type: "string",
1332
+ enum: ["en", "de"],
1333
+ description: "User language",
1334
+ example: "en"
1335
+ },
1336
+ roles: {
1337
+ type: "array",
1338
+ description: "Role IDs that should be automatically assigned to this user upon creation",
1339
+ items: {
1340
+ type: "string"
1341
+ },
1342
+ example: ["role-123", "role-456"]
1343
+ }
1344
+ },
1345
+ required: ["email"]
1346
+ },
1347
+ CreatePartnerRolePayload: {
1348
+ type: "object",
1349
+ properties: {
1350
+ name: {
1351
+ type: "string",
1352
+ description: "Role name",
1353
+ example: "Partner Admin"
1354
+ },
1355
+ slug: {
1356
+ type: "string",
1357
+ description: "Role slug",
1358
+ example: "partner_admin"
1359
+ },
1360
+ grants: {
1361
+ type: "array",
1362
+ description: "Permission grants for the role",
1363
+ items: {
1364
+ $ref: "#/components/schemas/GrantWithDependencies"
1365
+ }
1366
+ }
1367
+ },
1368
+ required: ["name", "slug", "grants"]
1369
+ },
1370
+ UpdatePartnerRolePayload: {
1371
+ allOf: [
1372
+ {
1373
+ properties: {
1374
+ grants: {
1375
+ type: "array",
1376
+ items: {
1377
+ $ref: "#/components/schemas/GrantWithDependencies"
1378
+ }
1379
+ }
1380
+ }
1381
+ },
1382
+ {
1383
+ $ref: "#/components/schemas/BaseRoleForCreate"
1384
+ }
1385
+ ]
1386
+ },
1387
+ Grant: {
1388
+ type: "object",
1389
+ properties: {
1390
+ action: {
1391
+ type: "string",
1392
+ example: "entity-read"
1393
+ },
1394
+ resource: {
1395
+ type: "string",
1396
+ example: "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947"
1397
+ },
1398
+ effect: {
1399
+ type: "string",
1400
+ default: "allow",
1401
+ enum: ["allow", "deny"]
1402
+ },
1403
+ conditions: {
1404
+ type: "array",
1405
+ items: {
1406
+ $ref: "#/components/schemas/GrantCondition"
1407
+ }
1408
+ }
1409
+ },
1410
+ required: ["action"]
1411
+ },
1412
+ GrantWithDependencies: {
1413
+ allOf: [
1414
+ {
1415
+ $ref: "#/components/schemas/Grant"
1416
+ },
1417
+ {
1418
+ type: "object",
1419
+ properties: {
1420
+ dependencies: {
1421
+ description: "Provided additional dependencies, exploded when storing the role",
1422
+ type: "array",
1423
+ items: {
1424
+ $ref: "#/components/schemas/Grant"
1425
+ }
1426
+ }
1427
+ }
1428
+ }
1429
+ ]
1430
+ },
1431
+ GrantCondition: {
1432
+ allOf: [
1433
+ {
1434
+ description: "An additional condition that must be met for the grant",
1435
+ type: "object",
1436
+ required: ["operation"]
1437
+ },
1438
+ {
1439
+ anyOf: [
1440
+ {
1441
+ $ref: "#/components/schemas/EqualsCondition"
1442
+ }
1443
+ ]
1444
+ }
1445
+ ]
1446
+ },
1447
+ EqualsCondition: {
1448
+ description: "Check if attribute equals to any of the values",
1449
+ type: "object",
1450
+ properties: {
1451
+ attribute: {
1452
+ type: "string",
1453
+ example: "workflows.primary.task_name"
1454
+ },
1455
+ operation: {
1456
+ type: "string",
1457
+ enum: ["equals"]
1458
+ },
1459
+ values: {
1460
+ type: "array",
1461
+ items: {
1462
+ example: "Qualification"
1463
+ }
1464
+ }
1465
+ },
1466
+ required: ["attribute", "operation", "values"]
1467
+ },
1468
+ RoleId: {
1469
+ type: "string",
1470
+ example: "123:owner",
1471
+ description: "Format: <organization_id>:<slug>"
1472
+ },
1473
+ BaseRoleForCreate: {
1474
+ type: "object",
1475
+ properties: {
1476
+ id: {
1477
+ $ref: "#/components/schemas/RoleId"
1478
+ },
1479
+ name: {
1480
+ type: "string",
1481
+ example: "Owner",
1482
+ description: "Human-friendly name for the role"
1483
+ },
1484
+ slug: {
1485
+ type: "string",
1486
+ example: "owner",
1487
+ description: "URL-friendly name for the role"
1488
+ },
1489
+ grants: {
1490
+ type: "array",
1491
+ items: {
1492
+ $ref: "#/components/schemas/Grant"
1493
+ },
1494
+ description: "List of grants (permissions) applied to the role"
1495
+ }
1496
+ },
1497
+ required: ["name", "slug", "grants"]
1498
+ },
1499
+ PartnerRole: {
1500
+ type: "object",
1501
+ properties: {
1502
+ id: {
1503
+ type: "string",
1504
+ description: "Role ID",
1505
+ example: "role-123"
1506
+ },
1507
+ slug: {
1508
+ type: "string",
1509
+ description: "Role slug",
1510
+ example: "admin"
1511
+ },
1512
+ name: {
1513
+ type: "string",
1514
+ description: "Role name",
1515
+ example: "Administrator"
1516
+ },
1517
+ type: {
1518
+ type: "string",
1519
+ description: "Role type",
1520
+ example: "share_role"
1521
+ }
1522
+ },
1523
+ required: ["id", "slug", "name"]
1524
+ },
1525
+ AssignRolesPayload: {
1526
+ type: "object",
1527
+ properties: {
1528
+ roleIds: {
1529
+ type: "array",
1530
+ description: "Array of role IDs to assign/unassign",
1531
+ items: {
1532
+ type: "string"
1533
+ },
1534
+ example: ["role-123", "role-456"]
1535
+ }
1536
+ },
1537
+ required: ["roleIds"]
1538
+ },
1539
+ User: {
1540
+ type: "object",
1541
+ properties: {
1542
+ id: {
1543
+ type: "string",
1544
+ description: "User ID",
1545
+ example: "456"
1546
+ },
1547
+ email: {
1548
+ type: "string",
1549
+ format: "email",
1550
+ description: "User email",
1551
+ example: "user@example.com"
1552
+ },
1553
+ display_name: {
1554
+ type: "string",
1555
+ description: "User display name",
1556
+ example: "John Doe"
1557
+ },
1558
+ status: {
1559
+ type: "string",
1560
+ description: "User status",
1561
+ example: "Active"
1562
+ }
1563
+ }
1564
+ }
1565
+ }
1566
+ };
1567
+ var servers = [
1568
+ {
1569
+ url: "https://partner-directory-api.sls.epilot.io"
1570
+ }
1571
+ ];
1572
+ var partner_directory_default = {
1573
+ openapi,
1574
+ info,
1575
+ tags,
1576
+ "x-tagGroups": [
1577
+ {
1578
+ name: "APIs",
1579
+ tags: ["partners", "partner_users"]
1580
+ },
1581
+ {
1582
+ name: "Schemas",
1583
+ tags: ["partner_schema"]
1584
+ }
1585
+ ],
1586
+ security,
1587
+ paths,
1588
+ components,
1589
+ servers
1590
+ };
1591
+ export {
1592
+ components,
1593
+ partner_directory_default as default,
1594
+ info,
1595
+ openapi,
1596
+ paths,
1597
+ security,
1598
+ servers,
1599
+ tags
1600
+ };