@epilot/sdk 2.0.0-beta.3 → 2.0.0-beta.6

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 (375) hide show
  1. package/definitions/access-token-runtime.json +1 -0
  2. package/definitions/access-token.json +663 -0
  3. package/definitions/address-runtime.json +1 -0
  4. package/definitions/address-suggestions-runtime.json +1 -0
  5. package/definitions/address-suggestions.json +582 -0
  6. package/definitions/address.json +578 -0
  7. package/definitions/ai-agents-runtime.json +1 -0
  8. package/definitions/ai-agents.json +1711 -0
  9. package/definitions/app-runtime.json +1 -0
  10. package/definitions/app.json +4443 -0
  11. package/definitions/audit-logs-runtime.json +1 -0
  12. package/definitions/audit-logs.json +305 -0
  13. package/definitions/automation-runtime.json +1 -0
  14. package/definitions/automation.json +4850 -0
  15. package/definitions/billing-runtime.json +1 -0
  16. package/definitions/billing.json +837 -0
  17. package/definitions/blueprint-manifest-runtime.json +1 -0
  18. package/definitions/blueprint-manifest.json +3376 -0
  19. package/definitions/consent-runtime.json +1 -0
  20. package/definitions/consent.json +344 -0
  21. package/definitions/customer-portal-runtime.json +1 -0
  22. package/definitions/customer-portal.json +15000 -0
  23. package/definitions/dashboard-runtime.json +1 -0
  24. package/definitions/dashboard.json +484 -0
  25. package/definitions/data-management-runtime.json +1 -0
  26. package/definitions/data-management.json +962 -0
  27. package/definitions/deduplication-runtime.json +1 -0
  28. package/definitions/deduplication.json +183 -0
  29. package/definitions/design-runtime.json +1 -0
  30. package/definitions/design.json +1423 -0
  31. package/definitions/document-runtime.json +1 -0
  32. package/definitions/document.json +758 -0
  33. package/definitions/email-settings-runtime.json +1 -0
  34. package/definitions/email-settings.json +2627 -0
  35. package/definitions/email-template-runtime.json +1 -0
  36. package/definitions/email-template.json +1419 -0
  37. package/definitions/entity-mapping-runtime.json +1 -0
  38. package/definitions/entity-mapping.json +1642 -0
  39. package/definitions/entity-runtime.json +1 -0
  40. package/definitions/entity.json +10074 -0
  41. package/definitions/environments-runtime.json +1 -0
  42. package/definitions/environments.json +363 -0
  43. package/definitions/erp-integration-runtime.json +1 -0
  44. package/definitions/erp-integration.json +5845 -0
  45. package/definitions/event-catalog-runtime.json +1 -0
  46. package/definitions/event-catalog.json +1051 -0
  47. package/definitions/file-runtime.json +1 -0
  48. package/definitions/file.json +2842 -0
  49. package/definitions/iban-runtime.json +1 -0
  50. package/definitions/iban.json +132 -0
  51. package/definitions/journey-runtime.json +1 -0
  52. package/definitions/journey.json +2341 -0
  53. package/definitions/kanban-runtime.json +1 -0
  54. package/definitions/kanban.json +929 -0
  55. package/definitions/message-runtime.json +1 -0
  56. package/definitions/message.json +2660 -0
  57. package/definitions/metering-runtime.json +1 -0
  58. package/definitions/metering.json +2321 -0
  59. package/definitions/notes-runtime.json +1 -0
  60. package/definitions/notes.json +1531 -0
  61. package/definitions/notification-runtime.json +1 -0
  62. package/definitions/notification.json +1425 -0
  63. package/definitions/organization-runtime.json +1 -0
  64. package/definitions/organization.json +629 -0
  65. package/definitions/partner-directory-runtime.json +1 -0
  66. package/definitions/partner-directory.json +1718 -0
  67. package/definitions/permissions-runtime.json +1 -0
  68. package/definitions/permissions.json +1480 -0
  69. package/definitions/pricing-runtime.json +1 -0
  70. package/definitions/pricing-tier-runtime.json +1 -0
  71. package/definitions/pricing-tier.json +105 -0
  72. package/definitions/pricing.json +9884 -0
  73. package/definitions/purpose-runtime.json +1 -0
  74. package/definitions/purpose.json +524 -0
  75. package/definitions/sandbox-runtime.json +1 -0
  76. package/definitions/sandbox.json +453 -0
  77. package/definitions/submission-runtime.json +1 -0
  78. package/definitions/submission.json +313 -0
  79. package/definitions/targeting-runtime.json +1 -0
  80. package/definitions/targeting.json +1474 -0
  81. package/definitions/template-variables-runtime.json +1 -0
  82. package/definitions/template-variables.json +1408 -0
  83. package/definitions/user-runtime.json +1 -0
  84. package/definitions/user.json +2408 -0
  85. package/definitions/validation-rules-runtime.json +1 -0
  86. package/definitions/validation-rules.json +1491 -0
  87. package/definitions/webhooks-runtime.json +1 -0
  88. package/definitions/webhooks.json +1525 -0
  89. package/definitions/workflow-definition-runtime.json +1 -0
  90. package/definitions/workflow-definition.json +3417 -0
  91. package/definitions/workflow-runtime.json +1 -0
  92. package/definitions/workflow.json +4106 -0
  93. package/dist/{access-token.d-BuXO-21p.d.cts → access-token.d-CnmUTOlq.d.cts} +1 -1
  94. package/dist/{access-token.d-BuXO-21p.d.ts → access-token.d-CnmUTOlq.d.ts} +1 -1
  95. package/dist/{address-suggestions.d-Cay0qOfA.d.cts → address-suggestions.d-_YwTOR-9.d.cts} +1 -1
  96. package/dist/{address-suggestions.d-Cay0qOfA.d.ts → address-suggestions.d-_YwTOR-9.d.ts} +1 -1
  97. package/dist/{address.d-D-oZY0rk.d.cts → address.d-CwAPOVxa.d.cts} +1 -1
  98. package/dist/{address.d-D-oZY0rk.d.ts → address.d-CwAPOVxa.d.ts} +1 -1
  99. package/dist/{ai-agents.d-B4_CZTCP.d.cts → ai-agents.d-OkXfr2bz.d.cts} +1 -1
  100. package/dist/{ai-agents.d-B4_CZTCP.d.ts → ai-agents.d-OkXfr2bz.d.ts} +1 -1
  101. package/dist/apis/access-token.cjs +13 -84
  102. package/dist/apis/access-token.d.cts +3 -3
  103. package/dist/apis/access-token.d.ts +3 -3
  104. package/dist/apis/access-token.js +11 -82
  105. package/dist/apis/address-suggestions.cjs +13 -127
  106. package/dist/apis/address-suggestions.d.cts +3 -3
  107. package/dist/apis/address-suggestions.d.ts +3 -3
  108. package/dist/apis/address-suggestions.js +11 -125
  109. package/dist/apis/address.cjs +13 -79
  110. package/dist/apis/address.d.cts +3 -3
  111. package/dist/apis/address.d.ts +3 -3
  112. package/dist/apis/address.js +11 -77
  113. package/dist/apis/ai-agents.cjs +13 -210
  114. package/dist/apis/ai-agents.d.cts +3 -3
  115. package/dist/apis/ai-agents.d.ts +3 -3
  116. package/dist/apis/ai-agents.js +11 -208
  117. package/dist/apis/app.cjs +13 -568
  118. package/dist/apis/app.d.cts +3 -3
  119. package/dist/apis/app.d.ts +3 -3
  120. package/dist/apis/app.js +11 -566
  121. package/dist/apis/audit-logs.cjs +13 -50
  122. package/dist/apis/audit-logs.d.cts +3 -3
  123. package/dist/apis/audit-logs.d.ts +3 -3
  124. package/dist/apis/audit-logs.js +11 -48
  125. package/dist/apis/automation.cjs +13 -277
  126. package/dist/apis/automation.d.cts +3 -3
  127. package/dist/apis/automation.d.ts +3 -3
  128. package/dist/apis/automation.js +11 -275
  129. package/dist/apis/billing.cjs +13 -170
  130. package/dist/apis/billing.d.cts +3 -3
  131. package/dist/apis/billing.d.ts +3 -3
  132. package/dist/apis/billing.js +11 -168
  133. package/dist/apis/blueprint-manifest.cjs +13 -499
  134. package/dist/apis/blueprint-manifest.d.cts +3 -3
  135. package/dist/apis/blueprint-manifest.d.ts +3 -3
  136. package/dist/apis/blueprint-manifest.js +11 -497
  137. package/dist/apis/consent.cjs +13 -79
  138. package/dist/apis/consent.d.cts +3 -3
  139. package/dist/apis/consent.d.ts +3 -3
  140. package/dist/apis/consent.js +11 -77
  141. package/dist/apis/customer-portal.cjs +13 -2247
  142. package/dist/apis/customer-portal.d.cts +3 -3
  143. package/dist/apis/customer-portal.d.ts +3 -3
  144. package/dist/apis/customer-portal.js +11 -2245
  145. package/dist/apis/dashboard.cjs +13 -79
  146. package/dist/apis/dashboard.d.cts +3 -3
  147. package/dist/apis/dashboard.d.ts +3 -3
  148. package/dist/apis/dashboard.js +11 -77
  149. package/dist/apis/data-management.cjs +13 -235
  150. package/dist/apis/data-management.d.cts +3 -3
  151. package/dist/apis/data-management.d.ts +3 -3
  152. package/dist/apis/data-management.js +11 -233
  153. package/dist/apis/deduplication.cjs +13 -37
  154. package/dist/apis/deduplication.d.cts +3 -3
  155. package/dist/apis/deduplication.d.ts +3 -3
  156. package/dist/apis/deduplication.js +11 -35
  157. package/dist/apis/design.cjs +13 -214
  158. package/dist/apis/design.d.cts +3 -3
  159. package/dist/apis/design.d.ts +3 -3
  160. package/dist/apis/design.js +11 -212
  161. package/dist/apis/document.cjs +13 -73
  162. package/dist/apis/document.d.cts +3 -3
  163. package/dist/apis/document.d.ts +3 -3
  164. package/dist/apis/document.js +11 -71
  165. package/dist/apis/email-settings.cjs +13 -528
  166. package/dist/apis/email-settings.d.cts +3 -3
  167. package/dist/apis/email-settings.d.ts +3 -3
  168. package/dist/apis/email-settings.js +11 -526
  169. package/dist/apis/email-template.cjs +13 -117
  170. package/dist/apis/email-template.d.cts +3 -3
  171. package/dist/apis/email-template.d.ts +3 -3
  172. package/dist/apis/email-template.js +11 -115
  173. package/dist/apis/entity-mapping.cjs +13 -210
  174. package/dist/apis/entity-mapping.d.cts +3 -3
  175. package/dist/apis/entity-mapping.d.ts +3 -3
  176. package/dist/apis/entity-mapping.js +11 -208
  177. package/dist/apis/entity.cjs +13 -1595
  178. package/dist/apis/entity.d.cts +3 -3
  179. package/dist/apis/entity.d.ts +3 -3
  180. package/dist/apis/entity.js +11 -1593
  181. package/dist/apis/environments.cjs +13 -66
  182. package/dist/apis/environments.d.cts +3 -3
  183. package/dist/apis/environments.d.ts +3 -3
  184. package/dist/apis/environments.js +11 -64
  185. package/dist/apis/erp-integration.cjs +13 -581
  186. package/dist/apis/erp-integration.d.cts +3 -3
  187. package/dist/apis/erp-integration.d.ts +3 -3
  188. package/dist/apis/erp-integration.js +11 -579
  189. package/dist/apis/event-catalog.cjs +13 -125
  190. package/dist/apis/event-catalog.d.cts +3 -3
  191. package/dist/apis/event-catalog.d.ts +3 -3
  192. package/dist/apis/event-catalog.js +11 -123
  193. package/dist/apis/file.cjs +13 -568
  194. package/dist/apis/file.d.cts +3 -3
  195. package/dist/apis/file.d.ts +3 -3
  196. package/dist/apis/file.js +11 -566
  197. package/dist/apis/iban.cjs +13 -38
  198. package/dist/apis/iban.d.cts +3 -3
  199. package/dist/apis/iban.d.ts +3 -3
  200. package/dist/apis/iban.js +11 -36
  201. package/dist/apis/journey.cjs +13 -265
  202. package/dist/apis/journey.d.cts +3 -3
  203. package/dist/apis/journey.d.ts +3 -3
  204. package/dist/apis/journey.js +11 -263
  205. package/dist/apis/kanban.cjs +13 -159
  206. package/dist/apis/kanban.d.cts +3 -3
  207. package/dist/apis/kanban.d.ts +3 -3
  208. package/dist/apis/kanban.js +11 -157
  209. package/dist/apis/message.cjs +13 -668
  210. package/dist/apis/message.d.cts +3 -3
  211. package/dist/apis/message.d.ts +3 -3
  212. package/dist/apis/message.js +11 -666
  213. package/dist/apis/metering.cjs +13 -394
  214. package/dist/apis/metering.d.cts +3 -3
  215. package/dist/apis/metering.d.ts +3 -3
  216. package/dist/apis/metering.js +11 -392
  217. package/dist/apis/notes.cjs +13 -214
  218. package/dist/apis/notes.d.cts +3 -3
  219. package/dist/apis/notes.d.ts +3 -3
  220. package/dist/apis/notes.js +11 -212
  221. package/dist/apis/notification.cjs +13 -232
  222. package/dist/apis/notification.d.cts +3 -3
  223. package/dist/apis/notification.d.ts +3 -3
  224. package/dist/apis/notification.js +11 -230
  225. package/dist/apis/organization.cjs +13 -113
  226. package/dist/apis/organization.d.cts +3 -3
  227. package/dist/apis/organization.d.ts +3 -3
  228. package/dist/apis/organization.js +11 -111
  229. package/dist/apis/partner-directory.cjs +13 -277
  230. package/dist/apis/partner-directory.d.cts +3 -3
  231. package/dist/apis/partner-directory.d.ts +3 -3
  232. package/dist/apis/partner-directory.js +11 -275
  233. package/dist/apis/permissions.cjs +13 -173
  234. package/dist/apis/permissions.d.cts +3 -3
  235. package/dist/apis/permissions.d.ts +3 -3
  236. package/dist/apis/permissions.js +11 -171
  237. package/dist/apis/pricing-tier.cjs +14 -32
  238. package/dist/apis/pricing-tier.d.cts +3 -3
  239. package/dist/apis/pricing-tier.d.ts +3 -3
  240. package/dist/apis/pricing-tier.js +11 -29
  241. package/dist/apis/pricing.cjs +13 -434
  242. package/dist/apis/pricing.d.cts +3 -3
  243. package/dist/apis/pricing.d.ts +3 -3
  244. package/dist/apis/pricing.js +11 -432
  245. package/dist/apis/purpose.cjs +13 -175
  246. package/dist/apis/purpose.d.cts +3 -3
  247. package/dist/apis/purpose.d.ts +3 -3
  248. package/dist/apis/purpose.js +11 -173
  249. package/dist/apis/sandbox.cjs +13 -95
  250. package/dist/apis/sandbox.d.cts +3 -3
  251. package/dist/apis/sandbox.d.ts +3 -3
  252. package/dist/apis/sandbox.js +11 -93
  253. package/dist/apis/submission.cjs +13 -50
  254. package/dist/apis/submission.d.cts +3 -3
  255. package/dist/apis/submission.d.ts +3 -3
  256. package/dist/apis/submission.js +11 -48
  257. package/dist/apis/targeting.cjs +13 -270
  258. package/dist/apis/targeting.d.cts +3 -3
  259. package/dist/apis/targeting.d.ts +3 -3
  260. package/dist/apis/targeting.js +11 -268
  261. package/dist/apis/template-variables.cjs +13 -154
  262. package/dist/apis/template-variables.d.cts +3 -3
  263. package/dist/apis/template-variables.d.ts +3 -3
  264. package/dist/apis/template-variables.js +11 -152
  265. package/dist/apis/user.cjs +13 -483
  266. package/dist/apis/user.d.cts +3 -3
  267. package/dist/apis/user.d.ts +3 -3
  268. package/dist/apis/user.js +11 -481
  269. package/dist/apis/validation-rules.cjs +13 -115
  270. package/dist/apis/validation-rules.d.cts +3 -3
  271. package/dist/apis/validation-rules.d.ts +3 -3
  272. package/dist/apis/validation-rules.js +11 -113
  273. package/dist/apis/webhooks.cjs +13 -247
  274. package/dist/apis/webhooks.d.cts +3 -3
  275. package/dist/apis/webhooks.d.ts +3 -3
  276. package/dist/apis/webhooks.js +11 -245
  277. package/dist/apis/workflow-definition.cjs +13 -337
  278. package/dist/apis/workflow-definition.d.cts +3 -3
  279. package/dist/apis/workflow-definition.d.ts +3 -3
  280. package/dist/apis/workflow-definition.js +11 -335
  281. package/dist/apis/workflow.cjs +13 -397
  282. package/dist/apis/workflow.d.cts +3 -3
  283. package/dist/apis/workflow.d.ts +3 -3
  284. package/dist/apis/workflow.js +11 -395
  285. package/dist/{app.d-BKyfin-q.d.cts → app.d-Dr03n4J4.d.cts} +1 -1
  286. package/dist/{app.d-BKyfin-q.d.ts → app.d-Dr03n4J4.d.ts} +1 -1
  287. package/dist/{audit-logs.d-19BKb-ur.d.cts → audit-logs.d-BRToFqeX.d.cts} +1 -1
  288. package/dist/{audit-logs.d-19BKb-ur.d.ts → audit-logs.d-BRToFqeX.d.ts} +1 -1
  289. package/dist/{automation.d-DKl2VtnW.d.cts → automation.d-sRCRiHKf.d.cts} +1 -1
  290. package/dist/{automation.d-DKl2VtnW.d.ts → automation.d-sRCRiHKf.d.ts} +1 -1
  291. package/dist/{billing.d-58fUMBqj.d.cts → billing.d-Bs8Ku9qE.d.cts} +1 -1
  292. package/dist/{billing.d-58fUMBqj.d.ts → billing.d-Bs8Ku9qE.d.ts} +1 -1
  293. package/dist/{blueprint-manifest.d-Bu1GyXFW.d.cts → blueprint-manifest.d-CEWRdF3i.d.cts} +1 -1
  294. package/dist/{blueprint-manifest.d-Bu1GyXFW.d.ts → blueprint-manifest.d-CEWRdF3i.d.ts} +1 -1
  295. package/dist/{chunk-D7ICL3AM.cjs → chunk-5LXNSDG2.cjs} +51 -2
  296. package/dist/{chunk-DGCGLG7G.js → chunk-QMQNMCOC.js} +49 -0
  297. package/dist/{consent.d-CQ88IEj0.d.cts → consent.d-C2PROHhX.d.cts} +1 -1
  298. package/dist/{consent.d-CQ88IEj0.d.ts → consent.d-C2PROHhX.d.ts} +1 -1
  299. package/dist/{customer-portal.d-EyndRWh6.d.cts → customer-portal.d-D7cJvhBK.d.cts} +1 -1
  300. package/dist/{customer-portal.d-EyndRWh6.d.ts → customer-portal.d-D7cJvhBK.d.ts} +1 -1
  301. package/dist/{dashboard.d-AE3RQ6zo.d.cts → dashboard.d-CsGcA74I.d.cts} +1 -1
  302. package/dist/{dashboard.d-AE3RQ6zo.d.ts → dashboard.d-CsGcA74I.d.ts} +1 -1
  303. package/dist/{data-management.d-CNExsqJQ.d.cts → data-management.d-pnuiRU2h.d.cts} +1 -1
  304. package/dist/{data-management.d-CNExsqJQ.d.ts → data-management.d-pnuiRU2h.d.ts} +1 -1
  305. package/dist/{deduplication.d-DCeJzdbM.d.cts → deduplication.d-w_2aJD5f.d.cts} +1 -1
  306. package/dist/{deduplication.d-DCeJzdbM.d.ts → deduplication.d-w_2aJD5f.d.ts} +1 -1
  307. package/dist/{design.d-CkwgJ78Z.d.cts → design.d-eA-irKEX.d.cts} +1 -1
  308. package/dist/{design.d-CkwgJ78Z.d.ts → design.d-eA-irKEX.d.ts} +1 -1
  309. package/dist/{document.d-Y8i32qNV.d.cts → document.d-DN37pjdx.d.cts} +1 -1
  310. package/dist/{document.d-Y8i32qNV.d.ts → document.d-DN37pjdx.d.ts} +1 -1
  311. package/dist/{email-settings.d-CPAsRFWN.d.cts → email-settings.d-BXxYjVDr.d.cts} +1 -1
  312. package/dist/{email-settings.d-CPAsRFWN.d.ts → email-settings.d-BXxYjVDr.d.ts} +1 -1
  313. package/dist/{email-template.d-CQqiCN0N.d.cts → email-template.d-BeqkDHtk.d.cts} +1 -1
  314. package/dist/{email-template.d-CQqiCN0N.d.ts → email-template.d-BeqkDHtk.d.ts} +1 -1
  315. package/dist/{entity-mapping.d-DiqXqJWb.d.cts → entity-mapping.d-DKSW3sfy.d.cts} +1 -1
  316. package/dist/{entity-mapping.d-DiqXqJWb.d.ts → entity-mapping.d-DKSW3sfy.d.ts} +1 -1
  317. package/dist/{entity.d-BtT4mdq4.d.cts → entity.d-CrtZaZr8.d.cts} +1 -1
  318. package/dist/{entity.d-BtT4mdq4.d.ts → entity.d-CrtZaZr8.d.ts} +1 -1
  319. package/dist/{environments.d-C1xIs8N2.d.cts → environments.d-H3LK_KuH.d.cts} +1 -1
  320. package/dist/{environments.d-C1xIs8N2.d.ts → environments.d-H3LK_KuH.d.ts} +1 -1
  321. package/dist/{erp-integration.d-CNLzgl4L.d.cts → erp-integration.d-3LmxMirP.d.cts} +1 -1
  322. package/dist/{erp-integration.d-CNLzgl4L.d.ts → erp-integration.d-3LmxMirP.d.ts} +1 -1
  323. package/dist/{event-catalog.d-DW1dOyVh.d.cts → event-catalog.d-ENw6HO-w.d.cts} +1 -1
  324. package/dist/{event-catalog.d-DW1dOyVh.d.ts → event-catalog.d-ENw6HO-w.d.ts} +1 -1
  325. package/dist/{file.d-Bpdt2ORN.d.cts → file.d-DcTJxjp7.d.cts} +1 -1
  326. package/dist/{file.d-Bpdt2ORN.d.ts → file.d-DcTJxjp7.d.ts} +1 -1
  327. package/dist/{iban.d-3_7FEsbx.d.cts → iban.d-BwdiGbxi.d.cts} +1 -1
  328. package/dist/{iban.d-3_7FEsbx.d.ts → iban.d-BwdiGbxi.d.ts} +1 -1
  329. package/dist/index.cjs +56 -54
  330. package/dist/index.d.cts +46 -46
  331. package/dist/index.d.ts +46 -46
  332. package/dist/index.js +53 -51
  333. package/dist/{journey.d-C2lgynUF.d.cts → journey.d-DkBvO_Wa.d.cts} +1 -1
  334. package/dist/{journey.d-C2lgynUF.d.ts → journey.d-DkBvO_Wa.d.ts} +1 -1
  335. package/dist/{kanban.d-DYVjUQ_S.d.cts → kanban.d-DUClxyBG.d.cts} +1 -1
  336. package/dist/{kanban.d-DYVjUQ_S.d.ts → kanban.d-DUClxyBG.d.ts} +1 -1
  337. package/dist/{message.d-TAVDRlDJ.d.cts → message.d-YEv1kmQd.d.cts} +1 -1
  338. package/dist/{message.d-TAVDRlDJ.d.ts → message.d-YEv1kmQd.d.ts} +1 -1
  339. package/dist/{metering.d-qyYaAU-O.d.cts → metering.d-DvtPv7wk.d.cts} +1 -1
  340. package/dist/{metering.d-qyYaAU-O.d.ts → metering.d-DvtPv7wk.d.ts} +1 -1
  341. package/dist/{notes.d-CDyIbegf.d.cts → notes.d-BC-scR42.d.cts} +1 -1
  342. package/dist/{notes.d-CDyIbegf.d.ts → notes.d-BC-scR42.d.ts} +1 -1
  343. package/dist/{notification.d-B7ccbaPr.d.cts → notification.d-BfBL3lga.d.cts} +1 -1
  344. package/dist/{notification.d-B7ccbaPr.d.ts → notification.d-BfBL3lga.d.ts} +1 -1
  345. package/dist/{organization.d-BxZWnh8L.d.cts → organization.d-BOLK3v9o.d.cts} +1 -1
  346. package/dist/{organization.d-BxZWnh8L.d.ts → organization.d-BOLK3v9o.d.ts} +1 -1
  347. package/dist/{partner-directory.d-CzKV3WfP.d.cts → partner-directory.d-CRNkDF8q.d.cts} +1 -1
  348. package/dist/{partner-directory.d-CzKV3WfP.d.ts → partner-directory.d-CRNkDF8q.d.ts} +1 -1
  349. package/dist/{permissions.d-lVoPAfl3.d.cts → permissions.d-BHB1FFS5.d.cts} +1 -1
  350. package/dist/{permissions.d-lVoPAfl3.d.ts → permissions.d-BHB1FFS5.d.ts} +1 -1
  351. package/dist/{pricing-tier.d-BW2cZt1w.d.cts → pricing-tier.d-Cg0jl6n_.d.cts} +1 -1
  352. package/dist/{pricing-tier.d-BW2cZt1w.d.ts → pricing-tier.d-Cg0jl6n_.d.ts} +1 -1
  353. package/dist/{pricing.d-Ehb2JuKY.d.cts → pricing.d-Cv39plGm.d.cts} +1 -1
  354. package/dist/{pricing.d-Ehb2JuKY.d.ts → pricing.d-Cv39plGm.d.ts} +1 -1
  355. package/dist/{purpose.d-BVxst611.d.cts → purpose.d-CbIYfTua.d.cts} +1 -1
  356. package/dist/{purpose.d-BVxst611.d.ts → purpose.d-CbIYfTua.d.ts} +1 -1
  357. package/dist/{sandbox.d-tRO2movo.d.cts → sandbox.d-BdbOFzDu.d.cts} +1 -1
  358. package/dist/{sandbox.d-tRO2movo.d.ts → sandbox.d-BdbOFzDu.d.ts} +1 -1
  359. package/dist/{submission.d-CSll5Km9.d.cts → submission.d-BamwfhXw.d.cts} +1 -1
  360. package/dist/{submission.d-CSll5Km9.d.ts → submission.d-BamwfhXw.d.ts} +1 -1
  361. package/dist/{targeting.d-CDxIsOWy.d.cts → targeting.d-BNmcVsNS.d.cts} +1 -1
  362. package/dist/{targeting.d-CDxIsOWy.d.ts → targeting.d-BNmcVsNS.d.ts} +1 -1
  363. package/dist/{template-variables.d-PwA27Ocv.d.cts → template-variables.d-Ch3H3zYf.d.cts} +1 -1
  364. package/dist/{template-variables.d-PwA27Ocv.d.ts → template-variables.d-Ch3H3zYf.d.ts} +1 -1
  365. package/dist/{user.d-DJBp6aX5.d.cts → user.d-CXqM751M.d.cts} +1 -1
  366. package/dist/{user.d-DJBp6aX5.d.ts → user.d-CXqM751M.d.ts} +1 -1
  367. package/dist/{validation-rules.d-CScjNdxD.d.cts → validation-rules.d-Db5c5zTf.d.cts} +1 -1
  368. package/dist/{validation-rules.d-CScjNdxD.d.ts → validation-rules.d-Db5c5zTf.d.ts} +1 -1
  369. package/dist/{webhooks.d-C_MQSJEB.d.cts → webhooks.d-CUNJrltY.d.cts} +1 -1
  370. package/dist/{webhooks.d-C_MQSJEB.d.ts → webhooks.d-CUNJrltY.d.ts} +1 -1
  371. package/dist/{workflow-definition.d-CFXrp2Hg.d.cts → workflow-definition.d-CE3kk9gl.d.cts} +1 -1
  372. package/dist/{workflow-definition.d-CFXrp2Hg.d.ts → workflow-definition.d-CE3kk9gl.d.ts} +1 -1
  373. package/dist/{workflow.d-BIWtgMyP.d.cts → workflow.d-EPa2OdVW.d.cts} +1 -1
  374. package/dist/{workflow.d-BIWtgMyP.d.ts → workflow.d-EPa2OdVW.d.ts} +1 -1
  375. package/package.json +192 -3
@@ -0,0 +1,1480 @@
1
+ {
2
+ "openapi": "3.0.3",
3
+ "info": {
4
+ "title": "Permissions API",
5
+ "version": "1.2.0",
6
+ "description": "Flexible Role-based Access Control for epilot"
7
+ },
8
+ "tags": [
9
+ {
10
+ "name": "Roles",
11
+ "description": "Manage roles and grants"
12
+ },
13
+ {
14
+ "name": "Assignments",
15
+ "description": "Assign roles to users"
16
+ }
17
+ ],
18
+ "security": [
19
+ {
20
+ "EpilotAuth": []
21
+ },
22
+ {
23
+ "EpilotOrg": []
24
+ }
25
+ ],
26
+ "paths": {
27
+ "/v1/permissions/me": {
28
+ "get": {
29
+ "operationId": "listCurrentRoles",
30
+ "summary": "listCurrentRoles",
31
+ "description": "Returns roles and grants assigned to current user",
32
+ "tags": [
33
+ "Roles"
34
+ ],
35
+ "responses": {
36
+ "200": {
37
+ "description": "ok",
38
+ "content": {
39
+ "application/json": {
40
+ "schema": {
41
+ "type": "object",
42
+ "properties": {
43
+ "roles": {
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "#/components/schemas/Role"
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "/v1/permissions/roles": {
58
+ "get": {
59
+ "operationId": "listAllRoles",
60
+ "summary": "listAllRoles",
61
+ "description": "Returns list of all roles in organization",
62
+ "tags": [
63
+ "Roles"
64
+ ],
65
+ "responses": {
66
+ "200": {
67
+ "description": "ok",
68
+ "content": {
69
+ "application/json": {
70
+ "schema": {
71
+ "type": "object",
72
+ "properties": {
73
+ "roles": {
74
+ "type": "array",
75
+ "items": {
76
+ "$ref": "#/components/schemas/Role"
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ },
86
+ "post": {
87
+ "operationId": "createRole",
88
+ "summary": "createRole",
89
+ "description": "Create role",
90
+ "tags": [
91
+ "Roles"
92
+ ],
93
+ "requestBody": {
94
+ "content": {
95
+ "application/json": {
96
+ "schema": {
97
+ "$ref": "#/components/schemas/CreateRolePayload"
98
+ }
99
+ }
100
+ }
101
+ },
102
+ "responses": {
103
+ "200": {
104
+ "description": "ok",
105
+ "content": {
106
+ "application/json": {
107
+ "schema": {
108
+ "$ref": "#/components/schemas/Role"
109
+ }
110
+ }
111
+ }
112
+ },
113
+ "400": {
114
+ "description": "Invalid role configuration",
115
+ "content": {
116
+ "application/json": {
117
+ "schema": {
118
+ "$ref": "#/components/schemas/Error"
119
+ },
120
+ "examples": {
121
+ "parent_role_invalid_type": {
122
+ "summary": "Parent role must be org_role or share_role",
123
+ "value": {
124
+ "message": "Parent role must be org_role or share_role, got user_role"
125
+ }
126
+ },
127
+ "parent_role_different_org": {
128
+ "summary": "Parent org_role must be in the same organization",
129
+ "value": {
130
+ "message": "Parent org_role must be in the same organization"
131
+ }
132
+ },
133
+ "parent_role_max_hierarchy": {
134
+ "summary": "Parent role cannot itself have a parent",
135
+ "value": {
136
+ "message": "Parent role cannot itself have a parent (max 2 levels of hierarchy)"
137
+ }
138
+ },
139
+ "circular_dependency_self": {
140
+ "summary": "Role cannot be its own parent",
141
+ "value": {
142
+ "message": "Role cannot be its own parent"
143
+ }
144
+ },
145
+ "circular_dependency_detected": {
146
+ "summary": "Circular dependency detected",
147
+ "value": {
148
+ "message": "Circular dependency detected: role 123:child would create a cycle"
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "404": {
156
+ "description": "Parent role does not exist",
157
+ "content": {
158
+ "application/json": {
159
+ "schema": {
160
+ "$ref": "#/components/schemas/Error"
161
+ },
162
+ "examples": {
163
+ "parent_role_not_found": {
164
+ "summary": "Parent role does not exist",
165
+ "value": {
166
+ "message": "Parent role 123:nonexistent does not exist"
167
+ }
168
+ }
169
+ }
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
175
+ },
176
+ "/v1/permissions/roles:search": {
177
+ "post": {
178
+ "operationId": "searchRoles",
179
+ "summary": "searchRoles",
180
+ "description": "Search Roles",
181
+ "tags": [
182
+ "Roles"
183
+ ],
184
+ "requestBody": {
185
+ "content": {
186
+ "application/json": {
187
+ "schema": {
188
+ "$ref": "#/components/schemas/RoleSearchInput"
189
+ }
190
+ }
191
+ }
192
+ },
193
+ "responses": {
194
+ "200": {
195
+ "description": "ok",
196
+ "content": {
197
+ "application/json": {
198
+ "schema": {
199
+ "type": "object",
200
+ "properties": {
201
+ "hits": {
202
+ "type": "number"
203
+ },
204
+ "results": {
205
+ "type": "array",
206
+ "items": {
207
+ "$ref": "#/components/schemas/Role"
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
217
+ },
218
+ "/v1/permissions/roles/{roleId}": {
219
+ "get": {
220
+ "operationId": "getRole",
221
+ "summary": "getRole",
222
+ "description": "Get role by id",
223
+ "tags": [
224
+ "Roles"
225
+ ],
226
+ "parameters": [
227
+ {
228
+ "name": "roleId",
229
+ "in": "path",
230
+ "required": true,
231
+ "schema": {
232
+ "$ref": "#/components/schemas/RoleId"
233
+ }
234
+ }
235
+ ],
236
+ "responses": {
237
+ "200": {
238
+ "description": "ok",
239
+ "content": {
240
+ "application/json": {
241
+ "schema": {
242
+ "$ref": "#/components/schemas/Role"
243
+ }
244
+ }
245
+ }
246
+ }
247
+ }
248
+ },
249
+ "put": {
250
+ "operationId": "putRole",
251
+ "summary": "putRole",
252
+ "description": "Create or update role",
253
+ "tags": [
254
+ "Roles"
255
+ ],
256
+ "parameters": [
257
+ {
258
+ "name": "roleId",
259
+ "in": "path",
260
+ "required": true,
261
+ "schema": {
262
+ "$ref": "#/components/schemas/RoleId"
263
+ }
264
+ }
265
+ ],
266
+ "requestBody": {
267
+ "content": {
268
+ "application/json": {
269
+ "schema": {
270
+ "$ref": "#/components/schemas/RolePayload"
271
+ },
272
+ "x-examples": {
273
+ "User role: manager": {
274
+ "description": "Example manager role",
275
+ "value": {
276
+ "id": "123:manager",
277
+ "name": "Manager",
278
+ "slug": "manager",
279
+ "type": "user_role",
280
+ "organization_id": "123",
281
+ "grants": [
282
+ {
283
+ "action": "entity:view",
284
+ "resource": "*"
285
+ },
286
+ {
287
+ "action": "entity:update",
288
+ "resource": "*"
289
+ },
290
+ {
291
+ "action": "user:view"
292
+ },
293
+ {
294
+ "action": "user:invite"
295
+ },
296
+ {
297
+ "action": "role:view"
298
+ },
299
+ {
300
+ "action": "role:create"
301
+ },
302
+ {
303
+ "action": "role:assign"
304
+ },
305
+ {
306
+ "action": "entity:view",
307
+ "resource": "file:*",
308
+ "conditions": [
309
+ {
310
+ "attribute": "_tags",
311
+ "operation": "equals",
312
+ "values": [
313
+ "offer",
314
+ "contract"
315
+ ]
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "action": "message:view",
321
+ "dependencies": [
322
+ {
323
+ "action": "entity:view",
324
+ "resource": "message*"
325
+ },
326
+ {
327
+ "action": "entity:view",
328
+ "resource": "thread*"
329
+ }
330
+ ]
331
+ },
332
+ {
333
+ "action": "message:send",
334
+ "dependencies": [
335
+ {
336
+ "action": "entity:*",
337
+ "resource": "message*"
338
+ },
339
+ {
340
+ "action": "entity:*",
341
+ "resource": "thread*"
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "action": "workflow:*"
347
+ }
348
+ ]
349
+ }
350
+ },
351
+ "User role: employee": {
352
+ "description": "Example employee role",
353
+ "value": {
354
+ "id": "123:employee",
355
+ "name": "Employee",
356
+ "slug": "employee",
357
+ "type": "user_role",
358
+ "organization_id": "123",
359
+ "grants": [
360
+ {
361
+ "action": "entity:view",
362
+ "resource": "*"
363
+ },
364
+ {
365
+ "action": "entity:update",
366
+ "resource": "*"
367
+ },
368
+ {
369
+ "action": "user:view"
370
+ },
371
+ {
372
+ "action": "message:view",
373
+ "dependencies": [
374
+ {
375
+ "action": "entity:view",
376
+ "resource": "message*"
377
+ },
378
+ {
379
+ "action": "entity:view",
380
+ "resource": "thread*"
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "action": "message:send",
386
+ "dependencies": [
387
+ {
388
+ "action": "entity:*",
389
+ "resource": "message*"
390
+ },
391
+ {
392
+ "action": "entity:*",
393
+ "resource": "thread*"
394
+ }
395
+ ]
396
+ },
397
+ {
398
+ "action": "workflow:execution:*"
399
+ }
400
+ ]
401
+ }
402
+ },
403
+ "User role: administrator": {
404
+ "description": "Example administrator role",
405
+ "value": {
406
+ "id": "123:administrator",
407
+ "name": "Administrator",
408
+ "slug": "administrator",
409
+ "type": "user_role",
410
+ "organization_id": "123",
411
+ "grants": [
412
+ {
413
+ "action": "*",
414
+ "resource": "*"
415
+ }
416
+ ]
417
+ }
418
+ },
419
+ "Organization root role": {
420
+ "description": "Example organization root role. Must be satisifed for all org queries.",
421
+ "value": {
422
+ "id": "123:root",
423
+ "name": "Organization root role",
424
+ "slug": "root",
425
+ "type": "org_role",
426
+ "organization_id": "123",
427
+ "grants": [
428
+ {
429
+ "action": "*",
430
+ "resource": "*"
431
+ },
432
+ {
433
+ "action": "webhook:*",
434
+ "effect": "deny"
435
+ }
436
+ ]
437
+ }
438
+ },
439
+ "Share role": {
440
+ "description": "Example share role. This can be assigned to users in other organizations",
441
+ "value": {
442
+ "id": "123:example_share_role",
443
+ "name": "Example opportunity share role",
444
+ "slug": "example_share_role",
445
+ "type": "share_role",
446
+ "organization_id": "123",
447
+ "grants": [
448
+ {
449
+ "action": "entity:view",
450
+ "resource": "opportunity:123456"
451
+ },
452
+ {
453
+ "action": "entity:edit",
454
+ "resource": "opportunity:123456"
455
+ },
456
+ {
457
+ "action": "workflow:execution:*"
458
+ },
459
+ {
460
+ "action": "message:*"
461
+ },
462
+ {
463
+ "action": "entity:*",
464
+ "resource": "message*"
465
+ },
466
+ {
467
+ "action": "entity:*",
468
+ "resource": "thread*"
469
+ }
470
+ ]
471
+ }
472
+ },
473
+ "Partner role": {
474
+ "description": "Example partner role. This can be given to a partner organization, who can then assign it to their users",
475
+ "value": {
476
+ "id": "123:example_partner_role",
477
+ "name": "Example opportunity share role",
478
+ "slug": "example_partner_role",
479
+ "type": "partner_role",
480
+ "organization_id": "123",
481
+ "partner_org_id": "456",
482
+ "grants": [
483
+ {
484
+ "action": "entity:view",
485
+ "resource": "opportunity*"
486
+ },
487
+ {
488
+ "action": "entity:edit",
489
+ "resource": "opportunity*"
490
+ },
491
+ {
492
+ "action": "workflow:execution:*"
493
+ },
494
+ {
495
+ "action": "message:*"
496
+ },
497
+ {
498
+ "action": "entity:*",
499
+ "resource": "message*"
500
+ },
501
+ {
502
+ "action": "entity:*",
503
+ "resource": "thread*"
504
+ }
505
+ ]
506
+ }
507
+ },
508
+ "Portal role": {
509
+ "description": "Example portal role. Implicitly used by end users of portals",
510
+ "value": {
511
+ "id": "123:default_end_customer_portal_role",
512
+ "name": "Default End Customer Portal Role",
513
+ "slug": "default_end_customer_portal_role",
514
+ "type": "portal_role",
515
+ "organization_id": "123",
516
+ "grants": [
517
+ {
518
+ "action": "entity:attribute:view",
519
+ "resource": "contact:*/*"
520
+ },
521
+ {
522
+ "action": "entity:edit",
523
+ "resource": "opportunity*"
524
+ }
525
+ ]
526
+ }
527
+ },
528
+ "User role with parent": {
529
+ "description": "Example user role that inherits from a parent role",
530
+ "value": {
531
+ "id": "123:limited_manager",
532
+ "name": "Limited Manager",
533
+ "slug": "limited_manager",
534
+ "type": "user_role",
535
+ "organization_id": "123",
536
+ "parent_role": "123:manager",
537
+ "grants": [
538
+ {
539
+ "action": "entity:view",
540
+ "resource": "contact:*"
541
+ },
542
+ {
543
+ "action": "entity:edit",
544
+ "resource": "contact:*"
545
+ }
546
+ ]
547
+ }
548
+ }
549
+ }
550
+ }
551
+ }
552
+ },
553
+ "responses": {
554
+ "200": {
555
+ "description": "ok",
556
+ "content": {
557
+ "application/json": {
558
+ "schema": {
559
+ "$ref": "#/components/schemas/Role"
560
+ }
561
+ }
562
+ }
563
+ },
564
+ "400": {
565
+ "description": "Bad Request - Invalid role configuration",
566
+ "content": {
567
+ "application/json": {
568
+ "schema": {
569
+ "$ref": "#/components/schemas/Error"
570
+ },
571
+ "examples": {
572
+ "parent_role_invalid_type": {
573
+ "summary": "Parent role must be org_role or share_role",
574
+ "value": {
575
+ "message": "Parent role must be org_role or share_role, got user_role"
576
+ }
577
+ },
578
+ "parent_role_different_org": {
579
+ "summary": "Parent org_role must be in the same organization",
580
+ "value": {
581
+ "message": "Parent org_role must be in the same organization"
582
+ }
583
+ },
584
+ "parent_role_max_hierarchy": {
585
+ "summary": "Parent role cannot itself have a parent",
586
+ "value": {
587
+ "message": "Parent role cannot itself have a parent (max 2 levels of hierarchy)"
588
+ }
589
+ },
590
+ "circular_dependency_self": {
591
+ "summary": "Role cannot be its own parent",
592
+ "value": {
593
+ "message": "Role cannot be its own parent"
594
+ }
595
+ },
596
+ "circular_dependency_detected": {
597
+ "summary": "Circular dependency detected",
598
+ "value": {
599
+ "message": "Circular dependency detected: role 123:child would create a cycle"
600
+ }
601
+ }
602
+ }
603
+ }
604
+ }
605
+ },
606
+ "404": {
607
+ "description": "Not Found - Parent role does not exist",
608
+ "content": {
609
+ "application/json": {
610
+ "schema": {
611
+ "$ref": "#/components/schemas/Error"
612
+ },
613
+ "examples": {
614
+ "parent_role_not_found": {
615
+ "summary": "Parent role does not exist",
616
+ "value": {
617
+ "message": "Parent role 123:nonexistent does not exist"
618
+ }
619
+ }
620
+ }
621
+ }
622
+ }
623
+ }
624
+ }
625
+ },
626
+ "delete": {
627
+ "operationId": "deleteRole",
628
+ "summary": "deleteRole",
629
+ "description": "Delete role by id",
630
+ "tags": [
631
+ "Roles"
632
+ ],
633
+ "parameters": [
634
+ {
635
+ "name": "roleId",
636
+ "in": "path",
637
+ "required": true,
638
+ "schema": {
639
+ "$ref": "#/components/schemas/RoleId"
640
+ }
641
+ }
642
+ ],
643
+ "responses": {
644
+ "200": {
645
+ "description": "ok",
646
+ "content": {
647
+ "application/json": {
648
+ "schema": {
649
+ "$ref": "#/components/schemas/Role"
650
+ }
651
+ }
652
+ }
653
+ }
654
+ }
655
+ }
656
+ },
657
+ "/v1/permissions/refresh": {
658
+ "get": {
659
+ "operationId": "refreshPermissions",
660
+ "summary": "refreshPermissions",
661
+ "description": "Makes sure the user has a role in the organization",
662
+ "tags": [
663
+ "Roles"
664
+ ],
665
+ "responses": {
666
+ "200": {
667
+ "description": "Refreshed succesfully"
668
+ }
669
+ }
670
+ }
671
+ },
672
+ "/v1/permissions/assignments/{userId}": {
673
+ "get": {
674
+ "operationId": "getAssignedRolesForUser",
675
+ "summary": "getAssignedRolesForUser",
676
+ "description": "Get list of assigned roles by user id",
677
+ "tags": [
678
+ "Assignments"
679
+ ],
680
+ "parameters": [
681
+ {
682
+ "name": "userId",
683
+ "in": "path",
684
+ "required": true,
685
+ "schema": {
686
+ "$ref": "#/components/schemas/UserId"
687
+ }
688
+ }
689
+ ],
690
+ "responses": {
691
+ "200": {
692
+ "description": "ok",
693
+ "content": {
694
+ "application/json": {
695
+ "schema": {
696
+ "$ref": "#/components/schemas/Assignments"
697
+ }
698
+ }
699
+ }
700
+ }
701
+ }
702
+ },
703
+ "put": {
704
+ "operationId": "assignRoles",
705
+ "summary": "assignRoles",
706
+ "description": "Assign / unassign roles to users.",
707
+ "tags": [
708
+ "Assignments"
709
+ ],
710
+ "parameters": [
711
+ {
712
+ "name": "userId",
713
+ "in": "path",
714
+ "required": true,
715
+ "schema": {
716
+ "$ref": "#/components/schemas/UserId"
717
+ }
718
+ }
719
+ ],
720
+ "requestBody": {
721
+ "content": {
722
+ "application/json": {
723
+ "schema": {
724
+ "$ref": "#/components/schemas/Assignments"
725
+ }
726
+ }
727
+ }
728
+ },
729
+ "responses": {
730
+ "200": {
731
+ "description": "ok",
732
+ "content": {
733
+ "application/json": {
734
+ "schema": {
735
+ "$ref": "#/components/schemas/Assignments"
736
+ }
737
+ }
738
+ }
739
+ }
740
+ }
741
+ }
742
+ },
743
+ "/v1/permissions/assignments/{userId}/{roleId}": {
744
+ "post": {
745
+ "operationId": "addAssignment",
746
+ "summary": "addAssignment",
747
+ "description": "Assign a user to a role.\n\nUse the `x-epilot-org-id` header to assign share roles to users in other orgs\n",
748
+ "tags": [
749
+ "Assignments"
750
+ ],
751
+ "parameters": [
752
+ {
753
+ "name": "userId",
754
+ "in": "path",
755
+ "required": true,
756
+ "schema": {
757
+ "$ref": "#/components/schemas/UserId"
758
+ }
759
+ },
760
+ {
761
+ "name": "roleId",
762
+ "in": "path",
763
+ "required": true,
764
+ "schema": {
765
+ "$ref": "#/components/schemas/RoleId"
766
+ }
767
+ }
768
+ ],
769
+ "responses": {
770
+ "201": {
771
+ "description": "ok",
772
+ "content": {
773
+ "application/json": {
774
+ "schema": {
775
+ "$ref": "#/components/schemas/Assignment"
776
+ }
777
+ }
778
+ }
779
+ }
780
+ }
781
+ },
782
+ "delete": {
783
+ "operationId": "removeAssignment",
784
+ "summary": "removeAssignment",
785
+ "description": "Remove role assignment from user",
786
+ "tags": [
787
+ "Assignments"
788
+ ],
789
+ "parameters": [
790
+ {
791
+ "name": "userId",
792
+ "in": "path",
793
+ "required": true,
794
+ "schema": {
795
+ "$ref": "#/components/schemas/UserId"
796
+ }
797
+ },
798
+ {
799
+ "name": "roleId",
800
+ "in": "path",
801
+ "required": true,
802
+ "schema": {
803
+ "$ref": "#/components/schemas/RoleId"
804
+ }
805
+ }
806
+ ],
807
+ "responses": {
808
+ "200": {
809
+ "description": "ok",
810
+ "content": {
811
+ "application/json": {
812
+ "schema": {
813
+ "$ref": "#/components/schemas/Assignment"
814
+ }
815
+ }
816
+ }
817
+ }
818
+ }
819
+ }
820
+ },
821
+ "/v1/permissions/assignments": {
822
+ "get": {
823
+ "operationId": "listAllAssignments",
824
+ "summary": "listAllAssignments",
825
+ "description": "Returns list of all assignments in organization",
826
+ "tags": [
827
+ "Assignments"
828
+ ],
829
+ "responses": {
830
+ "200": {
831
+ "description": "ok",
832
+ "content": {
833
+ "application/json": {
834
+ "schema": {
835
+ "type": "object",
836
+ "properties": {
837
+ "assignments": {
838
+ "type": "array",
839
+ "items": {
840
+ "$ref": "#/components/schemas/Assignment"
841
+ }
842
+ }
843
+ }
844
+ }
845
+ }
846
+ }
847
+ }
848
+ }
849
+ }
850
+ }
851
+ },
852
+ "components": {
853
+ "securitySchemes": {
854
+ "EpilotAuth": {
855
+ "type": "http",
856
+ "scheme": "bearer",
857
+ "description": "Authorization header with epilot OAuth2 bearer token",
858
+ "bearerFormat": "JWT"
859
+ },
860
+ "EpilotOrg": {
861
+ "description": "Overrides the target organization to allow shared tenantaccess",
862
+ "name": "x-epilot-org-id",
863
+ "in": "header",
864
+ "type": "apiKey"
865
+ }
866
+ },
867
+ "schemas": {
868
+ "Grant": {
869
+ "type": "object",
870
+ "properties": {
871
+ "action": {
872
+ "type": "string",
873
+ "example": "entity-read"
874
+ },
875
+ "resource": {
876
+ "type": "string",
877
+ "example": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947"
878
+ },
879
+ "effect": {
880
+ "type": "string",
881
+ "default": "allow",
882
+ "enum": [
883
+ "allow",
884
+ "deny"
885
+ ]
886
+ },
887
+ "conditions": {
888
+ "type": "array",
889
+ "items": {
890
+ "$ref": "#/components/schemas/GrantCondition"
891
+ }
892
+ }
893
+ },
894
+ "required": [
895
+ "action"
896
+ ]
897
+ },
898
+ "GrantWithDependencies": {
899
+ "allOf": [
900
+ {
901
+ "$ref": "#/components/schemas/Grant"
902
+ },
903
+ {
904
+ "type": "object",
905
+ "properties": {
906
+ "dependencies": {
907
+ "description": "Provided additional dependencies, exploded when storing the role",
908
+ "type": "array",
909
+ "items": {
910
+ "$ref": "#/components/schemas/Grant"
911
+ }
912
+ }
913
+ }
914
+ }
915
+ ]
916
+ },
917
+ "GrantCondition": {
918
+ "allOf": [
919
+ {
920
+ "description": "An additional condition that must be met for the grant",
921
+ "type": "object",
922
+ "required": [
923
+ "operation"
924
+ ]
925
+ },
926
+ {
927
+ "anyOf": [
928
+ {
929
+ "$ref": "#/components/schemas/EqualsCondition"
930
+ }
931
+ ]
932
+ }
933
+ ]
934
+ },
935
+ "EqualsCondition": {
936
+ "description": "Check if attribute equals to any of the values",
937
+ "type": "object",
938
+ "properties": {
939
+ "attribute": {
940
+ "type": "string",
941
+ "example": "workflows.primary.task_name"
942
+ },
943
+ "operation": {
944
+ "type": "string",
945
+ "enum": [
946
+ "equals"
947
+ ]
948
+ },
949
+ "values": {
950
+ "type": "array",
951
+ "items": {
952
+ "example": "Qualification"
953
+ }
954
+ }
955
+ },
956
+ "required": [
957
+ "attribute",
958
+ "operation",
959
+ "values"
960
+ ]
961
+ },
962
+ "RoleId": {
963
+ "type": "string",
964
+ "example": "123:owner",
965
+ "description": "Format: <organization_id>:<slug>"
966
+ },
967
+ "BaseRole": {
968
+ "type": "object",
969
+ "properties": {
970
+ "id": {
971
+ "$ref": "#/components/schemas/RoleId"
972
+ },
973
+ "name": {
974
+ "type": "string",
975
+ "example": "Owner",
976
+ "description": "Human-friendly name for the role"
977
+ },
978
+ "slug": {
979
+ "type": "string",
980
+ "example": "owner",
981
+ "description": "URL-friendly name for the role"
982
+ },
983
+ "type": {
984
+ "type": "string",
985
+ "description": "Type of the role"
986
+ },
987
+ "expires_at": {
988
+ "type": "string",
989
+ "format": "date-time",
990
+ "example": "2028-07-21T17:32:28Z",
991
+ "description": "date and time then the role will expire"
992
+ },
993
+ "organization_id": {
994
+ "$ref": "#/components/schemas/OrganizationId"
995
+ },
996
+ "grants": {
997
+ "type": "array",
998
+ "items": {
999
+ "$ref": "#/components/schemas/Grant"
1000
+ },
1001
+ "description": "List of grants (permissions) applied to the role"
1002
+ }
1003
+ },
1004
+ "required": [
1005
+ "id",
1006
+ "name",
1007
+ "slug",
1008
+ "type",
1009
+ "organization_id",
1010
+ "grants"
1011
+ ]
1012
+ },
1013
+ "BaseRoleForCreate": {
1014
+ "type": "object",
1015
+ "properties": {
1016
+ "id": {
1017
+ "$ref": "#/components/schemas/RoleId"
1018
+ },
1019
+ "name": {
1020
+ "type": "string",
1021
+ "example": "Owner",
1022
+ "description": "Human-friendly name for the role"
1023
+ },
1024
+ "slug": {
1025
+ "type": "string",
1026
+ "example": "owner",
1027
+ "description": "URL-friendly name for the role"
1028
+ },
1029
+ "type": {
1030
+ "type": "string",
1031
+ "description": "Type of the role"
1032
+ },
1033
+ "expires_at": {
1034
+ "type": "string",
1035
+ "format": "date-time",
1036
+ "example": "2028-07-21T17:32:28Z",
1037
+ "description": "date and time then the role will expire"
1038
+ },
1039
+ "organization_id": {
1040
+ "$ref": "#/components/schemas/OrganizationId"
1041
+ },
1042
+ "grants": {
1043
+ "type": "array",
1044
+ "items": {
1045
+ "$ref": "#/components/schemas/Grant"
1046
+ },
1047
+ "description": "List of grants (permissions) applied to the role"
1048
+ }
1049
+ },
1050
+ "required": [
1051
+ "name",
1052
+ "slug",
1053
+ "type",
1054
+ "grants"
1055
+ ]
1056
+ },
1057
+ "UserRole": {
1058
+ "allOf": [
1059
+ {
1060
+ "$ref": "#/components/schemas/BaseRole"
1061
+ },
1062
+ {
1063
+ "description": "A standard user role. Must be explicitly assigned to users.",
1064
+ "properties": {
1065
+ "type": {
1066
+ "enum": [
1067
+ "user_role"
1068
+ ]
1069
+ },
1070
+ "parent_role": {
1071
+ "allOf": [
1072
+ {
1073
+ "$ref": "#/components/schemas/RoleId"
1074
+ },
1075
+ {
1076
+ "description": "Optional parent role that this role inherits from. Must be an `org_role` or `share_role`."
1077
+ }
1078
+ ]
1079
+ }
1080
+ }
1081
+ }
1082
+ ]
1083
+ },
1084
+ "OrgRole": {
1085
+ "allOf": [
1086
+ {
1087
+ "$ref": "#/components/schemas/BaseRole"
1088
+ },
1089
+ {
1090
+ "description": "A role automatically applied to all users in an organization.",
1091
+ "properties": {
1092
+ "type": {
1093
+ "enum": [
1094
+ "org_role"
1095
+ ]
1096
+ },
1097
+ "pricing_tier": {
1098
+ "type": "string",
1099
+ "description": "The pricing tier of the organization this root role is based on",
1100
+ "example": "Professional"
1101
+ }
1102
+ }
1103
+ }
1104
+ ]
1105
+ },
1106
+ "ShareRole": {
1107
+ "allOf": [
1108
+ {
1109
+ "$ref": "#/components/schemas/BaseRole"
1110
+ },
1111
+ {
1112
+ "description": "A role that can be assigned to users in other organizations for sharing purposes.",
1113
+ "properties": {
1114
+ "type": {
1115
+ "enum": [
1116
+ "share_role"
1117
+ ]
1118
+ }
1119
+ }
1120
+ }
1121
+ ]
1122
+ },
1123
+ "PartnerRole": {
1124
+ "allOf": [
1125
+ {
1126
+ "$ref": "#/components/schemas/BaseRole"
1127
+ },
1128
+ {
1129
+ "description": "A role that appears in another organization's role list that can be assigned but not modified by the partner organization.",
1130
+ "properties": {
1131
+ "type": {
1132
+ "enum": [
1133
+ "partner_role"
1134
+ ]
1135
+ },
1136
+ "partner_org_id": {
1137
+ "allOf": [
1138
+ {
1139
+ "description": "Partner organization who can assign this role to their users."
1140
+ },
1141
+ {
1142
+ "$ref": "#/components/schemas/OrganizationId"
1143
+ }
1144
+ ]
1145
+ },
1146
+ "vendor_enforced_user_limit": {
1147
+ "type": "integer",
1148
+ "readOnly": true,
1149
+ "description": "Maximum number of users that can be assigned this role (vendor-enforced limit, can only be set via internal auth)"
1150
+ }
1151
+ }
1152
+ }
1153
+ ]
1154
+ },
1155
+ "PortalRole": {
1156
+ "allOf": [
1157
+ {
1158
+ "$ref": "#/components/schemas/BaseRole"
1159
+ },
1160
+ {
1161
+ "description": "A role that is applied to end customers and installers using the Portals",
1162
+ "properties": {
1163
+ "type": {
1164
+ "enum": [
1165
+ "portal_role"
1166
+ ]
1167
+ }
1168
+ }
1169
+ }
1170
+ ]
1171
+ },
1172
+ "Role": {
1173
+ "oneOf": [
1174
+ {
1175
+ "$ref": "#/components/schemas/UserRole"
1176
+ },
1177
+ {
1178
+ "$ref": "#/components/schemas/OrgRole"
1179
+ },
1180
+ {
1181
+ "$ref": "#/components/schemas/ShareRole"
1182
+ },
1183
+ {
1184
+ "$ref": "#/components/schemas/PartnerRole"
1185
+ },
1186
+ {
1187
+ "$ref": "#/components/schemas/PortalRole"
1188
+ }
1189
+ ]
1190
+ },
1191
+ "RolePayload": {
1192
+ "allOf": [
1193
+ {
1194
+ "properties": {
1195
+ "grants": {
1196
+ "type": "array",
1197
+ "items": {
1198
+ "$ref": "#/components/schemas/GrantWithDependencies"
1199
+ }
1200
+ }
1201
+ }
1202
+ },
1203
+ {
1204
+ "oneOf": [
1205
+ {
1206
+ "$ref": "#/components/schemas/UserRole"
1207
+ },
1208
+ {
1209
+ "$ref": "#/components/schemas/OrgRole"
1210
+ },
1211
+ {
1212
+ "$ref": "#/components/schemas/ShareRole"
1213
+ },
1214
+ {
1215
+ "$ref": "#/components/schemas/PartnerRole"
1216
+ },
1217
+ {
1218
+ "$ref": "#/components/schemas/PortalRole"
1219
+ }
1220
+ ]
1221
+ }
1222
+ ]
1223
+ },
1224
+ "Assignment": {
1225
+ "type": "object",
1226
+ "description": "A role attached to an user",
1227
+ "properties": {
1228
+ "user_id": {
1229
+ "$ref": "#/components/schemas/UserId"
1230
+ },
1231
+ "roles": {
1232
+ "type": "array",
1233
+ "items": {
1234
+ "$ref": "#/components/schemas/RoleId"
1235
+ }
1236
+ }
1237
+ }
1238
+ },
1239
+ "InternalAssignment": {
1240
+ "type": "object",
1241
+ "description": "A role attached to an user",
1242
+ "properties": {
1243
+ "userId": {
1244
+ "$ref": "#/components/schemas/UserId"
1245
+ },
1246
+ "roles": {
1247
+ "type": "array",
1248
+ "items": {
1249
+ "$ref": "#/components/schemas/RoleId"
1250
+ }
1251
+ }
1252
+ }
1253
+ },
1254
+ "OrgAssignments": {
1255
+ "type": "object",
1256
+ "description": "All roles attached to an users of an organization",
1257
+ "properties": {
1258
+ "organizationId": {
1259
+ "$ref": "#/components/schemas/OrganizationId"
1260
+ },
1261
+ "assignments": {
1262
+ "type": "array",
1263
+ "items": {
1264
+ "$ref": "#/components/schemas/InternalAssignment"
1265
+ }
1266
+ }
1267
+ }
1268
+ },
1269
+ "OrgRoles": {
1270
+ "type": "object",
1271
+ "description": "All roles attached to an users of an organization",
1272
+ "properties": {
1273
+ "organizationId": {
1274
+ "$ref": "#/components/schemas/OrganizationId"
1275
+ },
1276
+ "roles": {
1277
+ "type": "array",
1278
+ "items": {
1279
+ "$ref": "#/components/schemas/Role"
1280
+ }
1281
+ }
1282
+ }
1283
+ },
1284
+ "Assignments": {
1285
+ "type": "array",
1286
+ "description": "List of role ids attached to an user",
1287
+ "items": {
1288
+ "$ref": "#/components/schemas/RoleId"
1289
+ }
1290
+ },
1291
+ "UserId": {
1292
+ "type": "string",
1293
+ "example": "1",
1294
+ "description": "Id of a user"
1295
+ },
1296
+ "OrganizationId": {
1297
+ "type": "string",
1298
+ "example": "123",
1299
+ "description": "Id of an organization"
1300
+ },
1301
+ "Slug": {
1302
+ "type": "string",
1303
+ "example": "owner",
1304
+ "description": "Slug of a role; for a role with id = 123:manager -> 123 is org_id & manager is slug"
1305
+ },
1306
+ "RoleSearchInput": {
1307
+ "type": "object",
1308
+ "properties": {
1309
+ "role_ids": {
1310
+ "type": "array",
1311
+ "description": "List of role ids to filter by",
1312
+ "example": [
1313
+ "123:manager",
1314
+ "456:owner"
1315
+ ],
1316
+ "items": {
1317
+ "$ref": "#/components/schemas/RoleId"
1318
+ }
1319
+ },
1320
+ "org_ids": {
1321
+ "type": "array",
1322
+ "description": "List of organization ids to filter by",
1323
+ "example": [
1324
+ "123",
1325
+ "456"
1326
+ ],
1327
+ "items": {
1328
+ "$ref": "#/components/schemas/OrganizationId"
1329
+ }
1330
+ },
1331
+ "slugs": {
1332
+ "type": "array",
1333
+ "description": "List of role slugs to filter by",
1334
+ "example": [
1335
+ "manager",
1336
+ "owner"
1337
+ ],
1338
+ "items": {
1339
+ "$ref": "#/components/schemas/Slug"
1340
+ }
1341
+ },
1342
+ "query": {
1343
+ "type": "string",
1344
+ "description": "Input to search across fields",
1345
+ "example": "Administrator"
1346
+ },
1347
+ "limit": {
1348
+ "type": "number",
1349
+ "description": "The Number of roles to return",
1350
+ "example": 1,
1351
+ "minimum": 1,
1352
+ "default": 50
1353
+ },
1354
+ "offset": {
1355
+ "type": "number",
1356
+ "description": "The number of roles to skip before starting to collect the result set",
1357
+ "example": 1,
1358
+ "minimum": 1,
1359
+ "default": 0
1360
+ }
1361
+ }
1362
+ },
1363
+ "CreateRolePayload": {
1364
+ "allOf": [
1365
+ {
1366
+ "properties": {
1367
+ "grants": {
1368
+ "type": "array",
1369
+ "items": {
1370
+ "$ref": "#/components/schemas/GrantWithDependencies"
1371
+ }
1372
+ }
1373
+ }
1374
+ },
1375
+ {
1376
+ "$ref": "#/components/schemas/BaseRoleForCreate"
1377
+ },
1378
+ {
1379
+ "oneOf": [
1380
+ {
1381
+ "description": "A standard user role. Must be explicitly assigned to users.",
1382
+ "properties": {
1383
+ "type": {
1384
+ "enum": [
1385
+ "user_role"
1386
+ ]
1387
+ },
1388
+ "parent_role": {
1389
+ "allOf": [
1390
+ {
1391
+ "$ref": "#/components/schemas/RoleId"
1392
+ },
1393
+ {
1394
+ "description": "Optional parent role that this role inherits from. Must be an `org_role` or a sharing role of type `share_role` or `partner_role`."
1395
+ }
1396
+ ]
1397
+ }
1398
+ }
1399
+ },
1400
+ {
1401
+ "description": "A role automatically applied to all users in an organization.",
1402
+ "properties": {
1403
+ "type": {
1404
+ "enum": [
1405
+ "org_role"
1406
+ ]
1407
+ },
1408
+ "pricing_tier": {
1409
+ "type": "string",
1410
+ "description": "The pricing tier of the organization this root role is based on",
1411
+ "example": "Professional"
1412
+ }
1413
+ }
1414
+ },
1415
+ {
1416
+ "description": "A role that can be assigned to users in other organizations for sharing purposes.",
1417
+ "properties": {
1418
+ "type": {
1419
+ "enum": [
1420
+ "share_role"
1421
+ ]
1422
+ }
1423
+ }
1424
+ },
1425
+ {
1426
+ "description": "A role that appears in another organization's role list that can be assigned but not modified by the partner organization.",
1427
+ "properties": {
1428
+ "type": {
1429
+ "enum": [
1430
+ "partner_role"
1431
+ ]
1432
+ },
1433
+ "partner_org_id": {
1434
+ "allOf": [
1435
+ {
1436
+ "description": "Partner organization who can assign this role to their users."
1437
+ },
1438
+ {
1439
+ "$ref": "#/components/schemas/OrganizationId"
1440
+ }
1441
+ ]
1442
+ }
1443
+ }
1444
+ },
1445
+ {
1446
+ "description": "A role that is applied to end customers and installers using the Portals",
1447
+ "properties": {
1448
+ "type": {
1449
+ "enum": [
1450
+ "portal_role"
1451
+ ]
1452
+ }
1453
+ }
1454
+ }
1455
+ ]
1456
+ }
1457
+ ]
1458
+ },
1459
+ "Error": {
1460
+ "type": "object",
1461
+ "description": "Error response",
1462
+ "properties": {
1463
+ "message": {
1464
+ "type": "string",
1465
+ "description": "Error message",
1466
+ "example": "Parent role 123:nonexistent does not exist"
1467
+ }
1468
+ },
1469
+ "required": [
1470
+ "message"
1471
+ ]
1472
+ }
1473
+ }
1474
+ },
1475
+ "servers": [
1476
+ {
1477
+ "url": "https://permissions.sls.epilot.io"
1478
+ }
1479
+ ]
1480
+ }