@epilot/sdk 2.3.8 → 2.3.9

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 (222) hide show
  1. package/dist/apis/access-token.cjs +6 -6
  2. package/dist/apis/access-token.js +1 -1
  3. package/dist/apis/address-suggestions.cjs +6 -6
  4. package/dist/apis/address-suggestions.js +1 -1
  5. package/dist/apis/address.cjs +6 -6
  6. package/dist/apis/address.js +1 -1
  7. package/dist/apis/ai-agents.cjs +6 -6
  8. package/dist/apis/ai-agents.js +1 -1
  9. package/dist/apis/app.cjs +6 -6
  10. package/dist/apis/app.js +1 -1
  11. package/dist/apis/audit-logs.cjs +6 -6
  12. package/dist/apis/audit-logs.js +1 -1
  13. package/dist/apis/automation.cjs +6 -6
  14. package/dist/apis/automation.js +1 -1
  15. package/dist/apis/billing.cjs +6 -6
  16. package/dist/apis/billing.js +1 -1
  17. package/dist/apis/blueprint-manifest.cjs +6 -6
  18. package/dist/apis/blueprint-manifest.js +1 -1
  19. package/dist/apis/configuration-hub.cjs +8 -8
  20. package/dist/apis/configuration-hub.d.cts +2 -2
  21. package/dist/apis/configuration-hub.d.ts +2 -2
  22. package/dist/apis/configuration-hub.js +2 -2
  23. package/dist/apis/consent.cjs +6 -6
  24. package/dist/apis/consent.js +1 -1
  25. package/dist/apis/customer-portal.cjs +6 -6
  26. package/dist/apis/customer-portal.js +1 -1
  27. package/dist/apis/dashboard.cjs +6 -6
  28. package/dist/apis/dashboard.js +1 -1
  29. package/dist/apis/data-governance.cjs +6 -6
  30. package/dist/apis/data-governance.js +1 -1
  31. package/dist/apis/deduplication.cjs +6 -6
  32. package/dist/apis/deduplication.js +1 -1
  33. package/dist/apis/design.cjs +6 -6
  34. package/dist/apis/design.js +1 -1
  35. package/dist/apis/document.cjs +6 -6
  36. package/dist/apis/document.js +1 -1
  37. package/dist/apis/email-settings.cjs +6 -6
  38. package/dist/apis/email-settings.js +1 -1
  39. package/dist/apis/email-template.cjs +6 -6
  40. package/dist/apis/email-template.js +1 -1
  41. package/dist/apis/entity-mapping.cjs +6 -6
  42. package/dist/apis/entity-mapping.js +1 -1
  43. package/dist/apis/entity.cjs +6 -6
  44. package/dist/apis/entity.js +1 -1
  45. package/dist/apis/environments.cjs +6 -6
  46. package/dist/apis/environments.js +1 -1
  47. package/dist/apis/event-catalog.cjs +6 -6
  48. package/dist/apis/event-catalog.js +1 -1
  49. package/dist/apis/file.cjs +6 -6
  50. package/dist/apis/file.js +1 -1
  51. package/dist/apis/iban.cjs +6 -6
  52. package/dist/apis/iban.js +1 -1
  53. package/dist/apis/integration-toolkit.cjs +6 -6
  54. package/dist/apis/integration-toolkit.js +1 -1
  55. package/dist/apis/journey.cjs +6 -6
  56. package/dist/apis/journey.js +1 -1
  57. package/dist/apis/kanban.cjs +6 -6
  58. package/dist/apis/kanban.js +1 -1
  59. package/dist/apis/message.cjs +6 -6
  60. package/dist/apis/message.js +1 -1
  61. package/dist/apis/metering.cjs +6 -6
  62. package/dist/apis/metering.js +1 -1
  63. package/dist/apis/notes.cjs +6 -6
  64. package/dist/apis/notes.js +1 -1
  65. package/dist/apis/notification.cjs +6 -6
  66. package/dist/apis/notification.js +1 -1
  67. package/dist/apis/organization.cjs +6 -6
  68. package/dist/apis/organization.js +1 -1
  69. package/dist/apis/partner-directory.cjs +6 -6
  70. package/dist/apis/partner-directory.js +1 -1
  71. package/dist/apis/permissions.cjs +6 -6
  72. package/dist/apis/permissions.js +1 -1
  73. package/dist/apis/pricing-tier.cjs +6 -6
  74. package/dist/apis/pricing-tier.js +1 -1
  75. package/dist/apis/pricing.cjs +6 -6
  76. package/dist/apis/pricing.js +1 -1
  77. package/dist/apis/purpose.cjs +6 -6
  78. package/dist/apis/purpose.js +1 -1
  79. package/dist/apis/query.cjs +6 -6
  80. package/dist/apis/query.js +1 -1
  81. package/dist/apis/sandbox.cjs +6 -6
  82. package/dist/apis/sandbox.js +1 -1
  83. package/dist/apis/sharing.cjs +6 -6
  84. package/dist/apis/sharing.js +1 -1
  85. package/dist/apis/submission.cjs +6 -6
  86. package/dist/apis/submission.js +1 -1
  87. package/dist/apis/target.cjs +6 -6
  88. package/dist/apis/target.js +1 -1
  89. package/dist/apis/targeting.cjs +6 -6
  90. package/dist/apis/targeting.js +1 -1
  91. package/dist/apis/template-variables.cjs +6 -6
  92. package/dist/apis/template-variables.js +1 -1
  93. package/dist/apis/user.cjs +6 -6
  94. package/dist/apis/user.js +1 -1
  95. package/dist/apis/validation-rules.cjs +6 -6
  96. package/dist/apis/validation-rules.js +1 -1
  97. package/dist/apis/webhooks.cjs +6 -6
  98. package/dist/apis/webhooks.js +1 -1
  99. package/dist/apis/workflow-definition.cjs +6 -6
  100. package/dist/apis/workflow-definition.js +1 -1
  101. package/dist/apis/workflow.cjs +6 -6
  102. package/dist/apis/workflow.js +1 -1
  103. package/dist/chunk-AOFZDDXN.js +14 -0
  104. package/dist/{chunk-6DZXWV2A.cjs → chunk-L37V2R32.cjs} +2 -2
  105. package/dist/{chunk-7TFVO6SP.js → chunk-OMNMMMRJ.js} +2 -2
  106. package/dist/chunk-VFCH5IEL.cjs +14 -0
  107. package/dist/configuration-hub-2F636SNK.js +7 -0
  108. package/dist/configuration-hub-XQGJK2JA.cjs +7 -0
  109. package/dist/{configuration-hub-runtime-TEDEKI7E.js → configuration-hub-runtime-5R6Y4KF7.js} +1 -1
  110. package/dist/{configuration-hub-runtime-B7KKIHHY.cjs → configuration-hub-runtime-TY2X2ECO.cjs} +2 -2
  111. package/dist/configuration-hub.d-DZE3wTQE.d.cts +375 -0
  112. package/dist/configuration-hub.d-DZE3wTQE.d.ts +375 -0
  113. package/dist/index.cjs +10 -10
  114. package/dist/index.d.cts +1 -1
  115. package/dist/index.d.ts +1 -1
  116. package/dist/index.js +2 -2
  117. package/docs/configuration-hub.md +52 -1
  118. package/package.json +1 -1
  119. package/definitions/access-token-runtime.json +0 -1
  120. package/definitions/access-token.json +0 -663
  121. package/definitions/address-runtime.json +0 -1
  122. package/definitions/address-suggestions-runtime.json +0 -1
  123. package/definitions/address-suggestions.json +0 -582
  124. package/definitions/address.json +0 -578
  125. package/definitions/ai-agents-runtime.json +0 -1
  126. package/definitions/ai-agents.json +0 -1711
  127. package/definitions/app-runtime.json +0 -1
  128. package/definitions/app.json +0 -4493
  129. package/definitions/audit-logs-runtime.json +0 -1
  130. package/definitions/audit-logs.json +0 -305
  131. package/definitions/automation-runtime.json +0 -1
  132. package/definitions/automation.json +0 -5028
  133. package/definitions/billing-runtime.json +0 -1
  134. package/definitions/billing.json +0 -837
  135. package/definitions/blueprint-manifest-runtime.json +0 -1
  136. package/definitions/blueprint-manifest.json +0 -4846
  137. package/definitions/configuration-hub-runtime.json +0 -1
  138. package/definitions/configuration-hub.json +0 -399
  139. package/definitions/consent-runtime.json +0 -1
  140. package/definitions/consent.json +0 -344
  141. package/definitions/customer-portal-runtime.json +0 -1
  142. package/definitions/customer-portal.json +0 -16045
  143. package/definitions/dashboard-runtime.json +0 -1
  144. package/definitions/dashboard.json +0 -484
  145. package/definitions/data-governance-runtime.json +0 -1
  146. package/definitions/data-governance.json +0 -1126
  147. package/definitions/deduplication-runtime.json +0 -1
  148. package/definitions/deduplication.json +0 -314
  149. package/definitions/design-runtime.json +0 -1
  150. package/definitions/design.json +0 -1722
  151. package/definitions/document-runtime.json +0 -1
  152. package/definitions/document.json +0 -758
  153. package/definitions/email-settings-runtime.json +0 -1
  154. package/definitions/email-settings.json +0 -2777
  155. package/definitions/email-template-runtime.json +0 -1
  156. package/definitions/email-template.json +0 -1441
  157. package/definitions/entity-mapping-runtime.json +0 -1
  158. package/definitions/entity-mapping.json +0 -1642
  159. package/definitions/entity-runtime.json +0 -1
  160. package/definitions/entity.json +0 -10474
  161. package/definitions/environments-runtime.json +0 -1
  162. package/definitions/environments.json +0 -539
  163. package/definitions/event-catalog-runtime.json +0 -1
  164. package/definitions/event-catalog.json +0 -1051
  165. package/definitions/file-runtime.json +0 -1
  166. package/definitions/file.json +0 -2842
  167. package/definitions/iban-runtime.json +0 -1
  168. package/definitions/iban.json +0 -132
  169. package/definitions/integration-toolkit-runtime.json +0 -1
  170. package/definitions/integration-toolkit.json +0 -7998
  171. package/definitions/journey-runtime.json +0 -1
  172. package/definitions/journey.json +0 -2603
  173. package/definitions/kanban-runtime.json +0 -1
  174. package/definitions/kanban.json +0 -1505
  175. package/definitions/message-runtime.json +0 -1
  176. package/definitions/message.json +0 -2872
  177. package/definitions/metering-runtime.json +0 -1
  178. package/definitions/metering.json +0 -2321
  179. package/definitions/notes-runtime.json +0 -1
  180. package/definitions/notes.json +0 -1531
  181. package/definitions/notification-runtime.json +0 -1
  182. package/definitions/notification.json +0 -1425
  183. package/definitions/organization-runtime.json +0 -1
  184. package/definitions/organization.json +0 -1192
  185. package/definitions/partner-directory-runtime.json +0 -1
  186. package/definitions/partner-directory.json +0 -2284
  187. package/definitions/permissions-runtime.json +0 -1
  188. package/definitions/permissions.json +0 -1515
  189. package/definitions/pricing-runtime.json +0 -1
  190. package/definitions/pricing-tier-runtime.json +0 -1
  191. package/definitions/pricing-tier.json +0 -105
  192. package/definitions/pricing.json +0 -9884
  193. package/definitions/purpose-runtime.json +0 -1
  194. package/definitions/purpose.json +0 -524
  195. package/definitions/query-runtime.json +0 -1
  196. package/definitions/query.json +0 -3178
  197. package/definitions/sandbox-runtime.json +0 -1
  198. package/definitions/sandbox.json +0 -453
  199. package/definitions/sharing-runtime.json +0 -1
  200. package/definitions/sharing.json +0 -956
  201. package/definitions/submission-runtime.json +0 -1
  202. package/definitions/submission.json +0 -313
  203. package/definitions/targeting-runtime.json +0 -1
  204. package/definitions/targeting.json +0 -1474
  205. package/definitions/template-variables-runtime.json +0 -1
  206. package/definitions/template-variables.json +0 -1416
  207. package/definitions/user-runtime.json +0 -1
  208. package/definitions/user.json +0 -2460
  209. package/definitions/validation-rules-runtime.json +0 -1
  210. package/definitions/validation-rules.json +0 -1491
  211. package/definitions/webhooks-runtime.json +0 -1
  212. package/definitions/webhooks.json +0 -1634
  213. package/definitions/workflow-definition-runtime.json +0 -1
  214. package/definitions/workflow-definition.json +0 -3302
  215. package/definitions/workflow-runtime.json +0 -1
  216. package/definitions/workflow.json +0 -4248
  217. package/dist/chunk-4JAOFRYX.js +0 -14
  218. package/dist/chunk-Q7OKRNUG.cjs +0 -14
  219. package/dist/configuration-hub-LKSRCGYT.cjs +0 -7
  220. package/dist/configuration-hub-TZ2ULWV4.js +0 -7
  221. package/dist/configuration-hub.d-CqvhcMOn.d.cts +0 -166
  222. package/dist/configuration-hub.d-CqvhcMOn.d.ts +0 -166
@@ -1,1515 +0,0 @@
1
- {
2
- "openapi": "3.0.3",
3
- "info": {
4
- "title": "Permissions API",
5
- "version": "1.2.1",
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
- "$ref": "#/components/schemas/EqualsCurrentUserCondition"
933
- }
934
- ]
935
- }
936
- ]
937
- },
938
- "EqualsCurrentUserCondition": {
939
- "description": "Check if any relation_user attribute on the entity contains the current user. When attribute is provided, only that specific attribute path is checked.",
940
- "type": "object",
941
- "properties": {
942
- "attribute": {
943
- "type": "string",
944
- "description": "Optional JSON path to a specific user attribute. When omitted, all relation_user attributes on the entity are scanned.",
945
- "example": "assignee.*.user_id"
946
- },
947
- "operation": {
948
- "type": "string",
949
- "enum": [
950
- "equals_current_user"
951
- ]
952
- }
953
- },
954
- "required": [
955
- "operation"
956
- ]
957
- },
958
- "EqualsCondition": {
959
- "description": "Check if attribute equals to any of the values",
960
- "type": "object",
961
- "properties": {
962
- "attribute": {
963
- "type": "string",
964
- "example": "workflows.primary.task_name"
965
- },
966
- "operation": {
967
- "type": "string",
968
- "enum": [
969
- "equals"
970
- ]
971
- },
972
- "values": {
973
- "type": "array",
974
- "items": {
975
- "example": "Qualification"
976
- }
977
- }
978
- },
979
- "required": [
980
- "attribute",
981
- "operation",
982
- "values"
983
- ]
984
- },
985
- "RoleId": {
986
- "type": "string",
987
- "example": "123:owner",
988
- "description": "Format: <organization_id>:<slug>"
989
- },
990
- "BaseRole": {
991
- "type": "object",
992
- "properties": {
993
- "id": {
994
- "$ref": "#/components/schemas/RoleId"
995
- },
996
- "name": {
997
- "type": "string",
998
- "example": "Owner",
999
- "description": "Human-friendly name for the role"
1000
- },
1001
- "slug": {
1002
- "type": "string",
1003
- "example": "owner",
1004
- "description": "URL-friendly name for the role"
1005
- },
1006
- "type": {
1007
- "type": "string",
1008
- "description": "Type of the role"
1009
- },
1010
- "expires_at": {
1011
- "type": "string",
1012
- "format": "date-time",
1013
- "example": "2028-07-21T17:32:28Z",
1014
- "description": "date and time then the role will expire"
1015
- },
1016
- "organization_id": {
1017
- "$ref": "#/components/schemas/OrganizationId"
1018
- },
1019
- "grants": {
1020
- "type": "array",
1021
- "items": {
1022
- "$ref": "#/components/schemas/Grant"
1023
- },
1024
- "description": "List of grants (permissions) applied to the role"
1025
- }
1026
- },
1027
- "required": [
1028
- "id",
1029
- "name",
1030
- "slug",
1031
- "type",
1032
- "organization_id",
1033
- "grants"
1034
- ]
1035
- },
1036
- "BaseRoleForCreate": {
1037
- "type": "object",
1038
- "properties": {
1039
- "id": {
1040
- "$ref": "#/components/schemas/RoleId"
1041
- },
1042
- "name": {
1043
- "type": "string",
1044
- "example": "Owner",
1045
- "description": "Human-friendly name for the role"
1046
- },
1047
- "slug": {
1048
- "type": "string",
1049
- "example": "owner",
1050
- "description": "URL-friendly name for the role"
1051
- },
1052
- "type": {
1053
- "type": "string",
1054
- "description": "Type of the role"
1055
- },
1056
- "expires_at": {
1057
- "type": "string",
1058
- "format": "date-time",
1059
- "example": "2028-07-21T17:32:28Z",
1060
- "description": "date and time then the role will expire"
1061
- },
1062
- "organization_id": {
1063
- "$ref": "#/components/schemas/OrganizationId"
1064
- },
1065
- "grants": {
1066
- "type": "array",
1067
- "items": {
1068
- "$ref": "#/components/schemas/Grant"
1069
- },
1070
- "description": "List of grants (permissions) applied to the role"
1071
- }
1072
- },
1073
- "required": [
1074
- "name",
1075
- "slug",
1076
- "type",
1077
- "grants"
1078
- ]
1079
- },
1080
- "UserRole": {
1081
- "allOf": [
1082
- {
1083
- "$ref": "#/components/schemas/BaseRole"
1084
- },
1085
- {
1086
- "description": "A standard user role. Must be explicitly assigned to users.",
1087
- "properties": {
1088
- "type": {
1089
- "enum": [
1090
- "user_role"
1091
- ]
1092
- },
1093
- "parent_role": {
1094
- "allOf": [
1095
- {
1096
- "$ref": "#/components/schemas/RoleId"
1097
- },
1098
- {
1099
- "description": "Optional parent role that this role inherits from. Must be an `org_role` or `share_role`."
1100
- }
1101
- ]
1102
- },
1103
- "vendor_created": {
1104
- "type": "boolean",
1105
- "description": "Indicates whether this role was created by a vendor organization on behalf of the partner organization."
1106
- }
1107
- }
1108
- }
1109
- ]
1110
- },
1111
- "OrgRole": {
1112
- "allOf": [
1113
- {
1114
- "$ref": "#/components/schemas/BaseRole"
1115
- },
1116
- {
1117
- "description": "A role automatically applied to all users in an organization.",
1118
- "properties": {
1119
- "type": {
1120
- "enum": [
1121
- "org_role"
1122
- ]
1123
- },
1124
- "pricing_tier": {
1125
- "type": "string",
1126
- "description": "The pricing tier of the organization this root role is based on",
1127
- "example": "Professional"
1128
- }
1129
- }
1130
- }
1131
- ]
1132
- },
1133
- "ShareRole": {
1134
- "allOf": [
1135
- {
1136
- "$ref": "#/components/schemas/BaseRole"
1137
- },
1138
- {
1139
- "description": "A role that can be assigned to users in other organizations for sharing purposes.",
1140
- "properties": {
1141
- "type": {
1142
- "enum": [
1143
- "share_role"
1144
- ]
1145
- }
1146
- }
1147
- }
1148
- ]
1149
- },
1150
- "PartnerRole": {
1151
- "allOf": [
1152
- {
1153
- "$ref": "#/components/schemas/BaseRole"
1154
- },
1155
- {
1156
- "description": "A role that appears in another organization's role list that can be assigned but not modified by the partner organization.",
1157
- "properties": {
1158
- "type": {
1159
- "enum": [
1160
- "partner_role"
1161
- ]
1162
- },
1163
- "partner_org_id": {
1164
- "allOf": [
1165
- {
1166
- "description": "Partner organization who can assign this role to their users."
1167
- },
1168
- {
1169
- "$ref": "#/components/schemas/OrganizationId"
1170
- }
1171
- ]
1172
- },
1173
- "vendor_enforced_user_limit": {
1174
- "type": "integer",
1175
- "readOnly": true,
1176
- "description": "Maximum number of users that can be assigned this role (vendor-enforced limit, can only be set via internal auth)"
1177
- },
1178
- "vendor_created": {
1179
- "type": "boolean",
1180
- "description": "Indicates whether this role was created by a vendor organization on behalf of the partner organization."
1181
- }
1182
- }
1183
- }
1184
- ]
1185
- },
1186
- "PortalRole": {
1187
- "allOf": [
1188
- {
1189
- "$ref": "#/components/schemas/BaseRole"
1190
- },
1191
- {
1192
- "description": "A role that is applied to end customers and installers using the Portals",
1193
- "properties": {
1194
- "type": {
1195
- "enum": [
1196
- "portal_role"
1197
- ]
1198
- }
1199
- }
1200
- }
1201
- ]
1202
- },
1203
- "Role": {
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
- "RolePayload": {
1223
- "allOf": [
1224
- {
1225
- "properties": {
1226
- "grants": {
1227
- "type": "array",
1228
- "items": {
1229
- "$ref": "#/components/schemas/GrantWithDependencies"
1230
- }
1231
- }
1232
- }
1233
- },
1234
- {
1235
- "oneOf": [
1236
- {
1237
- "$ref": "#/components/schemas/UserRole"
1238
- },
1239
- {
1240
- "$ref": "#/components/schemas/OrgRole"
1241
- },
1242
- {
1243
- "$ref": "#/components/schemas/ShareRole"
1244
- },
1245
- {
1246
- "$ref": "#/components/schemas/PartnerRole"
1247
- },
1248
- {
1249
- "$ref": "#/components/schemas/PortalRole"
1250
- }
1251
- ]
1252
- }
1253
- ]
1254
- },
1255
- "Assignment": {
1256
- "type": "object",
1257
- "description": "A role attached to an user",
1258
- "properties": {
1259
- "user_id": {
1260
- "$ref": "#/components/schemas/UserId"
1261
- },
1262
- "roles": {
1263
- "type": "array",
1264
- "items": {
1265
- "$ref": "#/components/schemas/RoleId"
1266
- }
1267
- }
1268
- }
1269
- },
1270
- "InternalAssignment": {
1271
- "type": "object",
1272
- "description": "A role attached to an user",
1273
- "properties": {
1274
- "userId": {
1275
- "$ref": "#/components/schemas/UserId"
1276
- },
1277
- "roles": {
1278
- "type": "array",
1279
- "items": {
1280
- "$ref": "#/components/schemas/RoleId"
1281
- }
1282
- }
1283
- }
1284
- },
1285
- "OrgAssignments": {
1286
- "type": "object",
1287
- "description": "All roles attached to an users of an organization",
1288
- "properties": {
1289
- "organizationId": {
1290
- "$ref": "#/components/schemas/OrganizationId"
1291
- },
1292
- "assignments": {
1293
- "type": "array",
1294
- "items": {
1295
- "$ref": "#/components/schemas/InternalAssignment"
1296
- }
1297
- }
1298
- }
1299
- },
1300
- "OrgRoles": {
1301
- "type": "object",
1302
- "description": "All roles attached to an users of an organization",
1303
- "properties": {
1304
- "organizationId": {
1305
- "$ref": "#/components/schemas/OrganizationId"
1306
- },
1307
- "roles": {
1308
- "type": "array",
1309
- "items": {
1310
- "$ref": "#/components/schemas/Role"
1311
- }
1312
- }
1313
- }
1314
- },
1315
- "Assignments": {
1316
- "type": "array",
1317
- "description": "List of role ids attached to an user",
1318
- "items": {
1319
- "$ref": "#/components/schemas/RoleId"
1320
- }
1321
- },
1322
- "UserId": {
1323
- "type": "string",
1324
- "example": "1",
1325
- "description": "Id of a user"
1326
- },
1327
- "OrganizationId": {
1328
- "type": "string",
1329
- "example": "123",
1330
- "description": "Id of an organization"
1331
- },
1332
- "Slug": {
1333
- "type": "string",
1334
- "example": "owner",
1335
- "description": "Slug of a role; for a role with id = 123:manager -> 123 is org_id & manager is slug"
1336
- },
1337
- "RoleSearchInput": {
1338
- "type": "object",
1339
- "properties": {
1340
- "role_ids": {
1341
- "type": "array",
1342
- "description": "List of role ids to filter by",
1343
- "example": [
1344
- "123:manager",
1345
- "456:owner"
1346
- ],
1347
- "items": {
1348
- "$ref": "#/components/schemas/RoleId"
1349
- }
1350
- },
1351
- "org_ids": {
1352
- "type": "array",
1353
- "description": "List of organization ids to filter by",
1354
- "example": [
1355
- "123",
1356
- "456"
1357
- ],
1358
- "items": {
1359
- "$ref": "#/components/schemas/OrganizationId"
1360
- }
1361
- },
1362
- "slugs": {
1363
- "type": "array",
1364
- "description": "List of role slugs to filter by",
1365
- "example": [
1366
- "manager",
1367
- "owner"
1368
- ],
1369
- "items": {
1370
- "$ref": "#/components/schemas/Slug"
1371
- }
1372
- },
1373
- "query": {
1374
- "type": "string",
1375
- "description": "Input to search across fields",
1376
- "example": "Administrator"
1377
- },
1378
- "limit": {
1379
- "type": "number",
1380
- "description": "The Number of roles to return",
1381
- "example": 1,
1382
- "minimum": 1,
1383
- "default": 50
1384
- },
1385
- "offset": {
1386
- "type": "number",
1387
- "description": "The number of roles to skip before starting to collect the result set",
1388
- "example": 1,
1389
- "minimum": 1,
1390
- "default": 0
1391
- }
1392
- }
1393
- },
1394
- "CreateRolePayload": {
1395
- "allOf": [
1396
- {
1397
- "properties": {
1398
- "grants": {
1399
- "type": "array",
1400
- "items": {
1401
- "$ref": "#/components/schemas/GrantWithDependencies"
1402
- }
1403
- }
1404
- }
1405
- },
1406
- {
1407
- "$ref": "#/components/schemas/BaseRoleForCreate"
1408
- },
1409
- {
1410
- "oneOf": [
1411
- {
1412
- "description": "A standard user role. Must be explicitly assigned to users.",
1413
- "properties": {
1414
- "type": {
1415
- "enum": [
1416
- "user_role"
1417
- ]
1418
- },
1419
- "parent_role": {
1420
- "allOf": [
1421
- {
1422
- "$ref": "#/components/schemas/RoleId"
1423
- },
1424
- {
1425
- "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`."
1426
- }
1427
- ]
1428
- },
1429
- "vendor_created": {
1430
- "type": "boolean",
1431
- "description": "Indicates whether this role was created by a vendor organization on behalf of the partner organization."
1432
- }
1433
- }
1434
- },
1435
- {
1436
- "description": "A role automatically applied to all users in an organization.",
1437
- "properties": {
1438
- "type": {
1439
- "enum": [
1440
- "org_role"
1441
- ]
1442
- },
1443
- "pricing_tier": {
1444
- "type": "string",
1445
- "description": "The pricing tier of the organization this root role is based on",
1446
- "example": "Professional"
1447
- }
1448
- }
1449
- },
1450
- {
1451
- "description": "A role that can be assigned to users in other organizations for sharing purposes.",
1452
- "properties": {
1453
- "type": {
1454
- "enum": [
1455
- "share_role"
1456
- ]
1457
- }
1458
- }
1459
- },
1460
- {
1461
- "description": "A role that appears in another organization's role list that can be assigned but not modified by the partner organization.",
1462
- "properties": {
1463
- "type": {
1464
- "enum": [
1465
- "partner_role"
1466
- ]
1467
- },
1468
- "partner_org_id": {
1469
- "allOf": [
1470
- {
1471
- "description": "Partner organization who can assign this role to their users."
1472
- },
1473
- {
1474
- "$ref": "#/components/schemas/OrganizationId"
1475
- }
1476
- ]
1477
- },
1478
- "vendor_created": {
1479
- "type": "boolean",
1480
- "description": "Indicates whether this role was created by a vendor organization on behalf of the partner organization."
1481
- }
1482
- }
1483
- },
1484
- {
1485
- "description": "A role that is applied to end customers and installers using the Portals",
1486
- "properties": {
1487
- "type": {
1488
- "enum": [
1489
- "portal_role"
1490
- ]
1491
- }
1492
- }
1493
- }
1494
- ]
1495
- }
1496
- ]
1497
- },
1498
- "Error": {
1499
- "type": "object",
1500
- "description": "Error response",
1501
- "properties": {
1502
- "message": {
1503
- "type": "string",
1504
- "description": "Error message",
1505
- "example": "Parent role 123:nonexistent does not exist"
1506
- }
1507
- },
1508
- "required": [
1509
- "message"
1510
- ]
1511
- }
1512
- }
1513
- },
1514
- "servers": []
1515
- }