@epilot/sdk 2.4.4-alpha.0 → 2.4.4

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/access-token.d-CnmUTOlq.d.cts +552 -0
  2. package/dist/access-token.d-CnmUTOlq.d.ts +552 -0
  3. package/dist/address-suggestions.d-_YwTOR-9.d.cts +339 -0
  4. package/dist/address-suggestions.d-_YwTOR-9.d.ts +339 -0
  5. package/dist/address.d-CwAPOVxa.d.cts +437 -0
  6. package/dist/address.d-CwAPOVxa.d.ts +437 -0
  7. package/dist/ai-agents.d-OkXfr2bz.d.cts +1339 -0
  8. package/dist/ai-agents.d-OkXfr2bz.d.ts +1339 -0
  9. package/dist/apis/access-token.d.cts +18 -0
  10. package/dist/apis/access-token.d.ts +12 -9
  11. package/dist/apis/address-suggestions.d.cts +18 -0
  12. package/dist/apis/address-suggestions.d.ts +12 -9
  13. package/dist/apis/address.d.cts +18 -0
  14. package/dist/apis/address.d.ts +12 -9
  15. package/dist/apis/ai-agents.d.cts +18 -0
  16. package/dist/apis/ai-agents.d.ts +12 -9
  17. package/dist/apis/app.d.cts +18 -0
  18. package/dist/apis/app.d.ts +12 -9
  19. package/dist/apis/audit-logs.d.cts +18 -0
  20. package/dist/apis/audit-logs.d.ts +12 -9
  21. package/dist/apis/automation.d.cts +18 -0
  22. package/dist/apis/automation.d.ts +12 -9
  23. package/dist/apis/billing.d.cts +18 -0
  24. package/dist/apis/billing.d.ts +12 -9
  25. package/dist/apis/blueprint-manifest.d.cts +18 -0
  26. package/dist/apis/blueprint-manifest.d.ts +12 -9
  27. package/dist/apis/calendar.d.cts +18 -0
  28. package/dist/apis/calendar.d.ts +12 -9
  29. package/dist/apis/configuration-hub.d.cts +18 -0
  30. package/dist/apis/configuration-hub.d.ts +12 -9
  31. package/dist/apis/consent.d.cts +18 -0
  32. package/dist/apis/consent.d.ts +12 -9
  33. package/dist/apis/customer-portal.d.cts +18 -0
  34. package/dist/apis/customer-portal.d.ts +12 -9
  35. package/dist/apis/dashboard.d.cts +18 -0
  36. package/dist/apis/dashboard.d.ts +12 -9
  37. package/dist/apis/data-governance.d.cts +18 -0
  38. package/dist/apis/data-governance.d.ts +12 -9
  39. package/dist/apis/deduplication.d.cts +18 -0
  40. package/dist/apis/deduplication.d.ts +12 -9
  41. package/dist/apis/design.d.cts +18 -0
  42. package/dist/apis/design.d.ts +12 -9
  43. package/dist/apis/document.d.cts +18 -0
  44. package/dist/apis/document.d.ts +12 -9
  45. package/dist/apis/email-settings.d.cts +18 -0
  46. package/dist/apis/email-settings.d.ts +12 -9
  47. package/dist/apis/email-template.d.cts +18 -0
  48. package/dist/apis/email-template.d.ts +12 -9
  49. package/dist/apis/entity-mapping.d.cts +18 -0
  50. package/dist/apis/entity-mapping.d.ts +12 -9
  51. package/dist/apis/entity.d.cts +18 -0
  52. package/dist/apis/entity.d.ts +12 -9
  53. package/dist/apis/environments.d.cts +18 -0
  54. package/dist/apis/environments.d.ts +12 -9
  55. package/dist/apis/event-catalog.d.cts +18 -0
  56. package/dist/apis/event-catalog.d.ts +12 -9
  57. package/dist/apis/file.d.cts +18 -0
  58. package/dist/apis/file.d.ts +12 -9
  59. package/dist/apis/iban.d.cts +18 -0
  60. package/dist/apis/iban.d.ts +12 -9
  61. package/dist/apis/integration-toolkit.d.cts +18 -0
  62. package/dist/apis/integration-toolkit.d.ts +12 -9
  63. package/dist/apis/journey.d.cts +18 -0
  64. package/dist/apis/journey.d.ts +12 -9
  65. package/dist/apis/kanban.d.cts +18 -0
  66. package/dist/apis/kanban.d.ts +12 -9
  67. package/dist/apis/message.d.cts +18 -0
  68. package/dist/apis/message.d.ts +12 -9
  69. package/dist/apis/metering.d.cts +18 -0
  70. package/dist/apis/metering.d.ts +12 -9
  71. package/dist/apis/notes.d.cts +18 -0
  72. package/dist/apis/notes.d.ts +12 -9
  73. package/dist/apis/notification.d.cts +18 -0
  74. package/dist/apis/notification.d.ts +12 -9
  75. package/dist/apis/organization.d.cts +18 -0
  76. package/dist/apis/organization.d.ts +12 -9
  77. package/dist/apis/partner-directory.d.cts +18 -0
  78. package/dist/apis/partner-directory.d.ts +12 -9
  79. package/dist/apis/permissions.d.cts +18 -0
  80. package/dist/apis/permissions.d.ts +12 -9
  81. package/dist/apis/pricing-tier.d.cts +18 -0
  82. package/dist/apis/pricing-tier.d.ts +12 -9
  83. package/dist/apis/pricing.d.cts +18 -0
  84. package/dist/apis/pricing.d.ts +12 -9
  85. package/dist/apis/purpose.d.cts +18 -0
  86. package/dist/apis/purpose.d.ts +12 -9
  87. package/dist/apis/query.d.cts +18 -0
  88. package/dist/apis/query.d.ts +12 -9
  89. package/dist/apis/sandbox.d.cts +18 -0
  90. package/dist/apis/sandbox.d.ts +12 -9
  91. package/dist/apis/sharing.d.cts +18 -0
  92. package/dist/apis/sharing.d.ts +12 -9
  93. package/dist/apis/submission.d.cts +18 -0
  94. package/dist/apis/submission.d.ts +12 -9
  95. package/dist/apis/target.d.cts +597 -0
  96. package/dist/apis/target.d.ts +591 -9
  97. package/dist/apis/targeting.d.cts +18 -0
  98. package/dist/apis/targeting.d.ts +12 -9
  99. package/dist/apis/template-variables.d.cts +18 -0
  100. package/dist/apis/template-variables.d.ts +12 -9
  101. package/dist/apis/user.d.cts +18 -0
  102. package/dist/apis/user.d.ts +12 -9
  103. package/dist/apis/validation-rules.d.cts +18 -0
  104. package/dist/apis/validation-rules.d.ts +12 -9
  105. package/dist/apis/webhooks.d.cts +18 -0
  106. package/dist/apis/webhooks.d.ts +12 -9
  107. package/dist/apis/workflow-definition.d.cts +18 -0
  108. package/dist/apis/workflow-definition.d.ts +12 -9
  109. package/dist/apis/workflow.d.cts +18 -0
  110. package/dist/apis/workflow.d.ts +12 -9
  111. package/dist/app.d-u7Dq42kU.d.cts +3391 -0
  112. package/dist/app.d-u7Dq42kU.d.ts +3391 -0
  113. package/dist/audit-logs.d-BRToFqeX.d.cts +287 -0
  114. package/dist/audit-logs.d-BRToFqeX.d.ts +287 -0
  115. package/dist/automation.d-Du6-uiz5.d.cts +5283 -0
  116. package/dist/automation.d-Du6-uiz5.d.ts +5283 -0
  117. package/dist/billing.d-Bs8Ku9qE.d.cts +993 -0
  118. package/dist/billing.d-Bs8Ku9qE.d.ts +993 -0
  119. package/dist/blueprint-manifest.d-BPyzoR0X.d.cts +4343 -0
  120. package/dist/blueprint-manifest.d-BPyzoR0X.d.ts +4343 -0
  121. package/dist/calendar.d-BEjLDagH.d.cts +353 -0
  122. package/dist/calendar.d-BEjLDagH.d.ts +353 -0
  123. package/dist/configuration-hub.d-Cqaq2F-W.d.cts +478 -0
  124. package/dist/configuration-hub.d-Cqaq2F-W.d.ts +478 -0
  125. package/dist/consent.d-C2PROHhX.d.cts +265 -0
  126. package/dist/consent.d-C2PROHhX.d.ts +265 -0
  127. package/dist/customer-portal.d-DyZ2n2dW.d.cts +16728 -0
  128. package/dist/customer-portal.d-DyZ2n2dW.d.ts +16728 -0
  129. package/dist/dashboard.d-CsGcA74I.d.cts +440 -0
  130. package/dist/dashboard.d-CsGcA74I.d.ts +440 -0
  131. package/dist/data-governance.d-BbZ466j5.d.cts +1178 -0
  132. package/dist/data-governance.d-BbZ466j5.d.ts +1178 -0
  133. package/dist/deduplication.d-D5GYddVu.d.cts +218 -0
  134. package/dist/deduplication.d-D5GYddVu.d.ts +218 -0
  135. package/dist/design.d-BRre8iLg.d.cts +2346 -0
  136. package/dist/design.d-BRre8iLg.d.ts +2346 -0
  137. package/dist/document.d-DN37pjdx.d.cts +648 -0
  138. package/dist/document.d-DN37pjdx.d.ts +648 -0
  139. package/dist/email-settings.d-B7Q_xT25.d.cts +2417 -0
  140. package/dist/email-settings.d-B7Q_xT25.d.ts +2417 -0
  141. package/dist/email-template.d-gtQkdaXM.d.cts +1188 -0
  142. package/dist/email-template.d-gtQkdaXM.d.ts +1188 -0
  143. package/dist/entity-mapping.d-DKSW3sfy.d.cts +1092 -0
  144. package/dist/entity-mapping.d-DKSW3sfy.d.ts +1092 -0
  145. package/dist/entity.d-BHR9dEon.d.cts +18479 -0
  146. package/dist/entity.d-BHR9dEon.d.ts +18479 -0
  147. package/dist/environments.d-BvqvN-PD.d.cts +382 -0
  148. package/dist/environments.d-BvqvN-PD.d.ts +382 -0
  149. package/dist/event-catalog.d-ENw6HO-w.d.cts +1511 -0
  150. package/dist/event-catalog.d-ENw6HO-w.d.ts +1511 -0
  151. package/dist/file.d-DcTJxjp7.d.cts +2992 -0
  152. package/dist/file.d-DcTJxjp7.d.ts +2992 -0
  153. package/dist/iban.d-BwdiGbxi.d.cts +70 -0
  154. package/dist/iban.d-BwdiGbxi.d.ts +70 -0
  155. package/dist/index.d.cts +182 -0
  156. package/dist/index.d.ts +182 -12
  157. package/dist/integration-toolkit.d-Ry-KC9ow.d.cts +5796 -0
  158. package/dist/integration-toolkit.d-Ry-KC9ow.d.ts +5796 -0
  159. package/dist/journey.d-ClXO0xK8.d.cts +1931 -0
  160. package/dist/journey.d-ClXO0xK8.d.ts +1931 -0
  161. package/dist/kanban.d-BHnSRCYW.d.cts +760 -0
  162. package/dist/kanban.d-BHnSRCYW.d.ts +760 -0
  163. package/dist/message.d-B5UuSqgw.d.cts +3811 -0
  164. package/dist/message.d-B5UuSqgw.d.ts +3811 -0
  165. package/dist/metering.d-DvtPv7wk.d.cts +1841 -0
  166. package/dist/metering.d-DvtPv7wk.d.ts +1841 -0
  167. package/dist/notes.d-BC-scR42.d.cts +1046 -0
  168. package/dist/notes.d-BC-scR42.d.ts +1046 -0
  169. package/dist/notification.d-BfBL3lga.d.cts +1147 -0
  170. package/dist/notification.d-BfBL3lga.d.ts +1147 -0
  171. package/dist/organization.d-DqwnNxMg.d.cts +1271 -0
  172. package/dist/organization.d-DqwnNxMg.d.ts +1271 -0
  173. package/dist/partner-directory.d-BCIjHoGs.d.cts +2337 -0
  174. package/dist/partner-directory.d-BCIjHoGs.d.ts +2337 -0
  175. package/dist/permissions.d-l6AT8SYP.d.cts +1279 -0
  176. package/dist/permissions.d-l6AT8SYP.d.ts +1279 -0
  177. package/dist/pricing-tier.d-Cg0jl6n_.d.cts +81 -0
  178. package/dist/pricing-tier.d-Cg0jl6n_.d.ts +81 -0
  179. package/dist/pricing.d-BHpMU4KU.d.cts +12255 -0
  180. package/dist/pricing.d-BHpMU4KU.d.ts +12255 -0
  181. package/dist/purpose.d-CbIYfTua.d.cts +372 -0
  182. package/dist/purpose.d-CbIYfTua.d.ts +372 -0
  183. package/dist/query.d-Cmp78IhZ.d.cts +2375 -0
  184. package/dist/query.d-Cmp78IhZ.d.ts +2375 -0
  185. package/dist/sandbox.d-BdbOFzDu.d.cts +465 -0
  186. package/dist/sandbox.d-BdbOFzDu.d.ts +465 -0
  187. package/dist/sharing.d-sOXq-gtz.d.cts +571 -0
  188. package/dist/sharing.d-sOXq-gtz.d.ts +571 -0
  189. package/dist/submission.d-BamwfhXw.d.cts +469 -0
  190. package/dist/submission.d-BamwfhXw.d.ts +469 -0
  191. package/dist/targeting.d-BNmcVsNS.d.cts +2057 -0
  192. package/dist/targeting.d-BNmcVsNS.d.ts +2057 -0
  193. package/dist/template-variables.d-Ble9TSBa.d.cts +1320 -0
  194. package/dist/template-variables.d-Ble9TSBa.d.ts +1320 -0
  195. package/dist/types-ChU9Acbv.d.cts +37 -0
  196. package/dist/types-ChU9Acbv.d.ts +37 -0
  197. package/dist/user.d-D18fe97W.d.cts +2270 -0
  198. package/dist/user.d-D18fe97W.d.ts +2270 -0
  199. package/dist/validation-rules.d-Db5c5zTf.d.cts +807 -0
  200. package/dist/validation-rules.d-Db5c5zTf.d.ts +807 -0
  201. package/dist/webhooks.d-pLHIL_io.d.cts +1256 -0
  202. package/dist/webhooks.d-pLHIL_io.d.ts +1256 -0
  203. package/dist/workflow-definition.d-DOeb0KVV.d.cts +1922 -0
  204. package/dist/workflow-definition.d-DOeb0KVV.d.ts +1922 -0
  205. package/dist/workflow.d-CMSKt8oN.d.cts +3151 -0
  206. package/dist/workflow.d-CMSKt8oN.d.ts +3151 -0
  207. package/package.json +1 -1
  208. package/dist/apis/_registry.d.ts +0 -8
  209. package/dist/authorize.d.ts +0 -3
  210. package/dist/bin/cli.d.ts +0 -1
  211. package/dist/client-factory.d.ts +0 -9
  212. package/dist/client-map.d.ts +0 -102
  213. package/dist/compact.d.ts +0 -22
  214. package/dist/help.d.ts +0 -12
  215. package/dist/large-response.d.ts +0 -9
  216. package/dist/openapi.d.ts +0 -12
  217. package/dist/overrides.d.ts +0 -9
  218. package/dist/proxy.d.ts +0 -14
  219. package/dist/registry.d.ts +0 -19
  220. package/dist/retry.d.ts +0 -11
  221. package/dist/sdk.d.ts +0 -29
  222. package/dist/types.d.ts +0 -53
@@ -0,0 +1,1279 @@
1
+ import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
2
+
3
+ /* Auto-copied from permissions-client */
4
+
5
+
6
+ declare namespace Components {
7
+ namespace Schemas {
8
+ /**
9
+ * A role attached to an user
10
+ */
11
+ export interface Assignment {
12
+ user_id?: /**
13
+ * Id of a user
14
+ * example:
15
+ * 1
16
+ */
17
+ UserId;
18
+ roles?: /**
19
+ * Format: <organization_id>:<slug>
20
+ * example:
21
+ * 123:owner
22
+ */
23
+ RoleId[];
24
+ }
25
+ /**
26
+ * List of role ids attached to an user
27
+ */
28
+ export type Assignments = /**
29
+ * Format: <organization_id>:<slug>
30
+ * example:
31
+ * 123:owner
32
+ */
33
+ RoleId[];
34
+ export interface BaseRole {
35
+ id: /**
36
+ * Format: <organization_id>:<slug>
37
+ * example:
38
+ * 123:owner
39
+ */
40
+ RoleId;
41
+ /**
42
+ * Human-friendly name for the role
43
+ * example:
44
+ * Owner
45
+ */
46
+ name: string;
47
+ /**
48
+ * URL-friendly name for the role
49
+ * example:
50
+ * owner
51
+ */
52
+ slug: string;
53
+ /**
54
+ * Type of the role
55
+ */
56
+ type: string;
57
+ /**
58
+ * date and time then the role will expire
59
+ * example:
60
+ * 2028-07-21T17:32:28Z
61
+ */
62
+ expires_at?: string; // date-time
63
+ organization_id: /**
64
+ * Id of an organization
65
+ * example:
66
+ * 123
67
+ */
68
+ OrganizationId;
69
+ /**
70
+ * List of grants (permissions) applied to the role
71
+ */
72
+ grants: Grant[];
73
+ }
74
+ export interface BaseRoleForCreate {
75
+ id?: /**
76
+ * Format: <organization_id>:<slug>
77
+ * example:
78
+ * 123:owner
79
+ */
80
+ RoleId;
81
+ /**
82
+ * Human-friendly name for the role
83
+ * example:
84
+ * Owner
85
+ */
86
+ name: string;
87
+ /**
88
+ * URL-friendly name for the role
89
+ * example:
90
+ * owner
91
+ */
92
+ slug: string;
93
+ /**
94
+ * Type of the role
95
+ */
96
+ type: string;
97
+ /**
98
+ * date and time then the role will expire
99
+ * example:
100
+ * 2028-07-21T17:32:28Z
101
+ */
102
+ expires_at?: string; // date-time
103
+ organization_id?: /**
104
+ * Id of an organization
105
+ * example:
106
+ * 123
107
+ */
108
+ OrganizationId;
109
+ /**
110
+ * List of grants (permissions) applied to the role
111
+ */
112
+ grants: Grant[];
113
+ }
114
+ export type CreateRolePayload = {
115
+ /**
116
+ * Type of the role
117
+ */
118
+ type: "user_role";
119
+ /**
120
+ * Optional parent role that this role inherits from. Must be an `org_role` or a sharing role of type `share_role` or `partner_role`.
121
+ * example:
122
+ * 123:owner
123
+ */
124
+ parent_role?: string;
125
+ /**
126
+ * Indicates whether this role was created by a vendor organization on behalf of the partner organization.
127
+ */
128
+ vendor_created?: boolean;
129
+ /**
130
+ * List of grants (permissions) applied to the role
131
+ */
132
+ grants: Grant[];
133
+ id?: /**
134
+ * Format: <organization_id>:<slug>
135
+ * example:
136
+ * 123:owner
137
+ */
138
+ RoleId;
139
+ /**
140
+ * Human-friendly name for the role
141
+ * example:
142
+ * Owner
143
+ */
144
+ name: string;
145
+ /**
146
+ * URL-friendly name for the role
147
+ * example:
148
+ * owner
149
+ */
150
+ slug: string;
151
+ /**
152
+ * date and time then the role will expire
153
+ * example:
154
+ * 2028-07-21T17:32:28Z
155
+ */
156
+ expires_at?: string; // date-time
157
+ organization_id?: /**
158
+ * Id of an organization
159
+ * example:
160
+ * 123
161
+ */
162
+ OrganizationId;
163
+ } | {
164
+ /**
165
+ * Type of the role
166
+ */
167
+ type: "org_role";
168
+ /**
169
+ * The pricing tier of the organization this root role is based on
170
+ * example:
171
+ * Professional
172
+ */
173
+ pricing_tier?: string;
174
+ /**
175
+ * List of grants (permissions) applied to the role
176
+ */
177
+ grants: Grant[];
178
+ id?: /**
179
+ * Format: <organization_id>:<slug>
180
+ * example:
181
+ * 123:owner
182
+ */
183
+ RoleId;
184
+ /**
185
+ * Human-friendly name for the role
186
+ * example:
187
+ * Owner
188
+ */
189
+ name: string;
190
+ /**
191
+ * URL-friendly name for the role
192
+ * example:
193
+ * owner
194
+ */
195
+ slug: string;
196
+ /**
197
+ * date and time then the role will expire
198
+ * example:
199
+ * 2028-07-21T17:32:28Z
200
+ */
201
+ expires_at?: string; // date-time
202
+ organization_id?: /**
203
+ * Id of an organization
204
+ * example:
205
+ * 123
206
+ */
207
+ OrganizationId;
208
+ } | {
209
+ /**
210
+ * Type of the role
211
+ */
212
+ type: "share_role";
213
+ /**
214
+ * List of grants (permissions) applied to the role
215
+ */
216
+ grants: Grant[];
217
+ id?: /**
218
+ * Format: <organization_id>:<slug>
219
+ * example:
220
+ * 123:owner
221
+ */
222
+ RoleId;
223
+ /**
224
+ * Human-friendly name for the role
225
+ * example:
226
+ * Owner
227
+ */
228
+ name: string;
229
+ /**
230
+ * URL-friendly name for the role
231
+ * example:
232
+ * owner
233
+ */
234
+ slug: string;
235
+ /**
236
+ * date and time then the role will expire
237
+ * example:
238
+ * 2028-07-21T17:32:28Z
239
+ */
240
+ expires_at?: string; // date-time
241
+ organization_id?: /**
242
+ * Id of an organization
243
+ * example:
244
+ * 123
245
+ */
246
+ OrganizationId;
247
+ } | {
248
+ /**
249
+ * Type of the role
250
+ */
251
+ type: "partner_role";
252
+ /**
253
+ * Id of an organization
254
+ * example:
255
+ * 123
256
+ */
257
+ partner_org_id?: string;
258
+ /**
259
+ * Indicates whether this role was created by a vendor organization on behalf of the partner organization.
260
+ */
261
+ vendor_created?: boolean;
262
+ /**
263
+ * List of grants (permissions) applied to the role
264
+ */
265
+ grants: Grant[];
266
+ id?: /**
267
+ * Format: <organization_id>:<slug>
268
+ * example:
269
+ * 123:owner
270
+ */
271
+ RoleId;
272
+ /**
273
+ * Human-friendly name for the role
274
+ * example:
275
+ * Owner
276
+ */
277
+ name: string;
278
+ /**
279
+ * URL-friendly name for the role
280
+ * example:
281
+ * owner
282
+ */
283
+ slug: string;
284
+ /**
285
+ * date and time then the role will expire
286
+ * example:
287
+ * 2028-07-21T17:32:28Z
288
+ */
289
+ expires_at?: string; // date-time
290
+ organization_id?: /**
291
+ * Id of an organization
292
+ * example:
293
+ * 123
294
+ */
295
+ OrganizationId;
296
+ } | {
297
+ /**
298
+ * Type of the role
299
+ */
300
+ type: "portal_role";
301
+ /**
302
+ * List of grants (permissions) applied to the role
303
+ */
304
+ grants: Grant[];
305
+ id?: /**
306
+ * Format: <organization_id>:<slug>
307
+ * example:
308
+ * 123:owner
309
+ */
310
+ RoleId;
311
+ /**
312
+ * Human-friendly name for the role
313
+ * example:
314
+ * Owner
315
+ */
316
+ name: string;
317
+ /**
318
+ * URL-friendly name for the role
319
+ * example:
320
+ * owner
321
+ */
322
+ slug: string;
323
+ /**
324
+ * date and time then the role will expire
325
+ * example:
326
+ * 2028-07-21T17:32:28Z
327
+ */
328
+ expires_at?: string; // date-time
329
+ organization_id?: /**
330
+ * Id of an organization
331
+ * example:
332
+ * 123
333
+ */
334
+ OrganizationId;
335
+ };
336
+ /**
337
+ * Check if attribute equals to any of the values
338
+ */
339
+ export interface EqualsCondition {
340
+ /**
341
+ * example:
342
+ * workflows.primary.task_name
343
+ */
344
+ attribute: string;
345
+ operation: "equals";
346
+ values: any[];
347
+ }
348
+ /**
349
+ * Check if any relation_user attribute on the entity contains the current user. When attribute is provided, only that specific attribute path is checked.
350
+ */
351
+ export interface EqualsCurrentUserCondition {
352
+ /**
353
+ * Optional JSON path to a specific user attribute. When omitted, all relation_user attributes on the entity are scanned.
354
+ * example:
355
+ * assignee.*.user_id
356
+ */
357
+ attribute?: string;
358
+ operation: "equals_current_user";
359
+ }
360
+ /**
361
+ * Error response
362
+ */
363
+ export interface Error {
364
+ /**
365
+ * Error message
366
+ * example:
367
+ * Parent role 123:nonexistent does not exist
368
+ */
369
+ message: string;
370
+ }
371
+ export interface Grant {
372
+ /**
373
+ * example:
374
+ * entity-read
375
+ */
376
+ action: string;
377
+ /**
378
+ * example:
379
+ * entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947
380
+ */
381
+ resource?: string;
382
+ effect?: "allow" | "deny";
383
+ conditions?: /* An additional condition that must be met for the grant */ GrantCondition[];
384
+ }
385
+ /**
386
+ * An additional condition that must be met for the grant
387
+ */
388
+ export type GrantCondition = /* An additional condition that must be met for the grant */ /* Check if attribute equals to any of the values */ EqualsCondition | /* Check if any relation_user attribute on the entity contains the current user. When attribute is provided, only that specific attribute path is checked. */ EqualsCurrentUserCondition;
389
+ export interface GrantWithDependencies {
390
+ /**
391
+ * example:
392
+ * entity-read
393
+ */
394
+ action: string;
395
+ /**
396
+ * example:
397
+ * entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947
398
+ */
399
+ resource?: string;
400
+ effect?: "allow" | "deny";
401
+ conditions?: /* An additional condition that must be met for the grant */ GrantCondition[];
402
+ /**
403
+ * Provided additional dependencies, exploded when storing the role
404
+ */
405
+ dependencies?: Grant[];
406
+ }
407
+ /**
408
+ * A role attached to an user
409
+ */
410
+ export interface InternalAssignment {
411
+ userId?: /**
412
+ * Id of a user
413
+ * example:
414
+ * 1
415
+ */
416
+ UserId;
417
+ roles?: /**
418
+ * Format: <organization_id>:<slug>
419
+ * example:
420
+ * 123:owner
421
+ */
422
+ RoleId[];
423
+ }
424
+ /**
425
+ * All roles attached to an users of an organization
426
+ */
427
+ export interface OrgAssignments {
428
+ organizationId?: /**
429
+ * Id of an organization
430
+ * example:
431
+ * 123
432
+ */
433
+ OrganizationId;
434
+ assignments?: /* A role attached to an user */ InternalAssignment[];
435
+ }
436
+ /**
437
+ * A role automatically applied to all users in an organization.
438
+ */
439
+ export interface OrgRole {
440
+ id: /**
441
+ * Format: <organization_id>:<slug>
442
+ * example:
443
+ * 123:owner
444
+ */
445
+ RoleId;
446
+ /**
447
+ * Human-friendly name for the role
448
+ * example:
449
+ * Owner
450
+ */
451
+ name: string;
452
+ /**
453
+ * URL-friendly name for the role
454
+ * example:
455
+ * owner
456
+ */
457
+ slug: string;
458
+ /**
459
+ * Type of the role
460
+ */
461
+ type: "org_role";
462
+ /**
463
+ * date and time then the role will expire
464
+ * example:
465
+ * 2028-07-21T17:32:28Z
466
+ */
467
+ expires_at?: string; // date-time
468
+ organization_id: /**
469
+ * Id of an organization
470
+ * example:
471
+ * 123
472
+ */
473
+ OrganizationId;
474
+ /**
475
+ * List of grants (permissions) applied to the role
476
+ */
477
+ grants: Grant[];
478
+ /**
479
+ * The pricing tier of the organization this root role is based on
480
+ * example:
481
+ * Professional
482
+ */
483
+ pricing_tier?: string;
484
+ }
485
+ /**
486
+ * All roles attached to an users of an organization
487
+ */
488
+ export interface OrgRoles {
489
+ organizationId?: /**
490
+ * Id of an organization
491
+ * example:
492
+ * 123
493
+ */
494
+ OrganizationId;
495
+ roles?: Role[];
496
+ }
497
+ /**
498
+ * Id of an organization
499
+ * example:
500
+ * 123
501
+ */
502
+ export type OrganizationId = string;
503
+ /**
504
+ * A role that appears in another organization's role list that can be assigned but not modified by the partner organization.
505
+ */
506
+ export interface PartnerRole {
507
+ id: /**
508
+ * Format: <organization_id>:<slug>
509
+ * example:
510
+ * 123:owner
511
+ */
512
+ RoleId;
513
+ /**
514
+ * Human-friendly name for the role
515
+ * example:
516
+ * Owner
517
+ */
518
+ name: string;
519
+ /**
520
+ * URL-friendly name for the role
521
+ * example:
522
+ * owner
523
+ */
524
+ slug: string;
525
+ /**
526
+ * Type of the role
527
+ */
528
+ type: "partner_role";
529
+ /**
530
+ * date and time then the role will expire
531
+ * example:
532
+ * 2028-07-21T17:32:28Z
533
+ */
534
+ expires_at?: string; // date-time
535
+ organization_id: /**
536
+ * Id of an organization
537
+ * example:
538
+ * 123
539
+ */
540
+ OrganizationId;
541
+ /**
542
+ * List of grants (permissions) applied to the role
543
+ */
544
+ grants: Grant[];
545
+ /**
546
+ * Id of an organization
547
+ * example:
548
+ * 123
549
+ */
550
+ partner_org_id?: string;
551
+ /**
552
+ * Maximum number of users that can be assigned this role (vendor-enforced limit, can only be set via internal auth)
553
+ */
554
+ vendor_enforced_user_limit?: number;
555
+ /**
556
+ * Indicates whether this role was created by a vendor organization on behalf of the partner organization.
557
+ */
558
+ vendor_created?: boolean;
559
+ }
560
+ /**
561
+ * A role that is applied to end customers and installers using the Portals
562
+ */
563
+ export interface PortalRole {
564
+ id: /**
565
+ * Format: <organization_id>:<slug>
566
+ * example:
567
+ * 123:owner
568
+ */
569
+ RoleId;
570
+ /**
571
+ * Human-friendly name for the role
572
+ * example:
573
+ * Owner
574
+ */
575
+ name: string;
576
+ /**
577
+ * URL-friendly name for the role
578
+ * example:
579
+ * owner
580
+ */
581
+ slug: string;
582
+ /**
583
+ * Type of the role
584
+ */
585
+ type: "portal_role";
586
+ /**
587
+ * date and time then the role will expire
588
+ * example:
589
+ * 2028-07-21T17:32:28Z
590
+ */
591
+ expires_at?: string; // date-time
592
+ organization_id: /**
593
+ * Id of an organization
594
+ * example:
595
+ * 123
596
+ */
597
+ OrganizationId;
598
+ /**
599
+ * List of grants (permissions) applied to the role
600
+ */
601
+ grants: Grant[];
602
+ }
603
+ export type Role = /* A standard user role. Must be explicitly assigned to users. */ UserRole | /* A role automatically applied to all users in an organization. */ OrgRole | /* A role that can be assigned to users in other organizations for sharing purposes. */ ShareRole | /* A role that appears in another organization's role list that can be assigned but not modified by the partner organization. */ PartnerRole | /* A role that is applied to end customers and installers using the Portals */ PortalRole;
604
+ /**
605
+ * Format: <organization_id>:<slug>
606
+ * example:
607
+ * 123:owner
608
+ */
609
+ export type RoleId = string;
610
+ export type RolePayload = {
611
+ grants?: GrantWithDependencies[];
612
+ } & (/* A standard user role. Must be explicitly assigned to users. */ UserRole | /* A role automatically applied to all users in an organization. */ OrgRole | /* A role that can be assigned to users in other organizations for sharing purposes. */ ShareRole | /* A role that appears in another organization's role list that can be assigned but not modified by the partner organization. */ PartnerRole | /* A role that is applied to end customers and installers using the Portals */ PortalRole);
613
+ export interface RoleSearchInput {
614
+ /**
615
+ * List of role ids to filter by
616
+ * example:
617
+ * [
618
+ * "123:manager",
619
+ * "456:owner"
620
+ * ]
621
+ */
622
+ role_ids?: /**
623
+ * Format: <organization_id>:<slug>
624
+ * example:
625
+ * 123:owner
626
+ */
627
+ RoleId[];
628
+ /**
629
+ * List of organization ids to filter by
630
+ * example:
631
+ * [
632
+ * "123",
633
+ * "456"
634
+ * ]
635
+ */
636
+ org_ids?: /**
637
+ * Id of an organization
638
+ * example:
639
+ * 123
640
+ */
641
+ OrganizationId[];
642
+ /**
643
+ * List of role slugs to filter by
644
+ * example:
645
+ * [
646
+ * "manager",
647
+ * "owner"
648
+ * ]
649
+ */
650
+ slugs?: /**
651
+ * Slug of a role; for a role with id = 123:manager -> 123 is org_id & manager is slug
652
+ * example:
653
+ * owner
654
+ */
655
+ Slug[];
656
+ /**
657
+ * Input to search across fields
658
+ * example:
659
+ * Administrator
660
+ */
661
+ query?: string;
662
+ /**
663
+ * The Number of roles to return
664
+ * example:
665
+ * 1
666
+ */
667
+ limit?: number;
668
+ /**
669
+ * The number of roles to skip before starting to collect the result set
670
+ * example:
671
+ * 1
672
+ */
673
+ offset?: number;
674
+ }
675
+ /**
676
+ * A role that can be assigned to users in other organizations for sharing purposes.
677
+ */
678
+ export interface ShareRole {
679
+ id: /**
680
+ * Format: <organization_id>:<slug>
681
+ * example:
682
+ * 123:owner
683
+ */
684
+ RoleId;
685
+ /**
686
+ * Human-friendly name for the role
687
+ * example:
688
+ * Owner
689
+ */
690
+ name: string;
691
+ /**
692
+ * URL-friendly name for the role
693
+ * example:
694
+ * owner
695
+ */
696
+ slug: string;
697
+ /**
698
+ * Type of the role
699
+ */
700
+ type: "share_role";
701
+ /**
702
+ * date and time then the role will expire
703
+ * example:
704
+ * 2028-07-21T17:32:28Z
705
+ */
706
+ expires_at?: string; // date-time
707
+ organization_id: /**
708
+ * Id of an organization
709
+ * example:
710
+ * 123
711
+ */
712
+ OrganizationId;
713
+ /**
714
+ * List of grants (permissions) applied to the role
715
+ */
716
+ grants: Grant[];
717
+ }
718
+ /**
719
+ * Slug of a role; for a role with id = 123:manager -> 123 is org_id & manager is slug
720
+ * example:
721
+ * owner
722
+ */
723
+ export type Slug = string;
724
+ /**
725
+ * Id of a user
726
+ * example:
727
+ * 1
728
+ */
729
+ export type UserId = string;
730
+ /**
731
+ * A standard user role. Must be explicitly assigned to users.
732
+ */
733
+ export interface UserRole {
734
+ id: /**
735
+ * Format: <organization_id>:<slug>
736
+ * example:
737
+ * 123:owner
738
+ */
739
+ RoleId;
740
+ /**
741
+ * Human-friendly name for the role
742
+ * example:
743
+ * Owner
744
+ */
745
+ name: string;
746
+ /**
747
+ * URL-friendly name for the role
748
+ * example:
749
+ * owner
750
+ */
751
+ slug: string;
752
+ /**
753
+ * Type of the role
754
+ */
755
+ type: "user_role";
756
+ /**
757
+ * date and time then the role will expire
758
+ * example:
759
+ * 2028-07-21T17:32:28Z
760
+ */
761
+ expires_at?: string; // date-time
762
+ organization_id: /**
763
+ * Id of an organization
764
+ * example:
765
+ * 123
766
+ */
767
+ OrganizationId;
768
+ /**
769
+ * List of grants (permissions) applied to the role
770
+ */
771
+ grants: Grant[];
772
+ /**
773
+ * Optional parent role that this role inherits from. Must be an `org_role` or `share_role`.
774
+ * example:
775
+ * 123:owner
776
+ */
777
+ parent_role?: string;
778
+ /**
779
+ * Indicates whether this role was created by a vendor organization on behalf of the partner organization.
780
+ */
781
+ vendor_created?: boolean;
782
+ }
783
+ }
784
+ }
785
+ declare namespace Paths {
786
+ namespace AddAssignment {
787
+ namespace Parameters {
788
+ export type RoleId = /**
789
+ * Format: <organization_id>:<slug>
790
+ * example:
791
+ * 123:owner
792
+ */
793
+ Components.Schemas.RoleId;
794
+ export type UserId = /**
795
+ * Id of a user
796
+ * example:
797
+ * 1
798
+ */
799
+ Components.Schemas.UserId;
800
+ }
801
+ export interface PathParameters {
802
+ userId: Parameters.UserId;
803
+ roleId: Parameters.RoleId;
804
+ }
805
+ namespace Responses {
806
+ export type $201 = /* A role attached to an user */ Components.Schemas.Assignment;
807
+ }
808
+ }
809
+ namespace AssignRoles {
810
+ namespace Parameters {
811
+ export type UserId = /**
812
+ * Id of a user
813
+ * example:
814
+ * 1
815
+ */
816
+ Components.Schemas.UserId;
817
+ }
818
+ export interface PathParameters {
819
+ userId: Parameters.UserId;
820
+ }
821
+ export type RequestBody = /* List of role ids attached to an user */ Components.Schemas.Assignments;
822
+ namespace Responses {
823
+ export type $200 = /* List of role ids attached to an user */ Components.Schemas.Assignments;
824
+ }
825
+ }
826
+ namespace CreateRole {
827
+ export type RequestBody = Components.Schemas.CreateRolePayload;
828
+ namespace Responses {
829
+ export type $200 = Components.Schemas.Role;
830
+ export type $400 = /* Error response */ Components.Schemas.Error;
831
+ export type $404 = /* Error response */ Components.Schemas.Error;
832
+ }
833
+ }
834
+ namespace DeleteRole {
835
+ namespace Parameters {
836
+ export type RoleId = /**
837
+ * Format: <organization_id>:<slug>
838
+ * example:
839
+ * 123:owner
840
+ */
841
+ Components.Schemas.RoleId;
842
+ }
843
+ export interface PathParameters {
844
+ roleId: Parameters.RoleId;
845
+ }
846
+ namespace Responses {
847
+ export type $200 = Components.Schemas.Role;
848
+ }
849
+ }
850
+ namespace GetAssignedRolesForUser {
851
+ namespace Parameters {
852
+ export type UserId = /**
853
+ * Id of a user
854
+ * example:
855
+ * 1
856
+ */
857
+ Components.Schemas.UserId;
858
+ }
859
+ export interface PathParameters {
860
+ userId: Parameters.UserId;
861
+ }
862
+ namespace Responses {
863
+ export type $200 = /* List of role ids attached to an user */ Components.Schemas.Assignments;
864
+ }
865
+ }
866
+ namespace GetRole {
867
+ namespace Parameters {
868
+ export type RoleId = /**
869
+ * Format: <organization_id>:<slug>
870
+ * example:
871
+ * 123:owner
872
+ */
873
+ Components.Schemas.RoleId;
874
+ }
875
+ export interface PathParameters {
876
+ roleId: Parameters.RoleId;
877
+ }
878
+ namespace Responses {
879
+ export type $200 = Components.Schemas.Role;
880
+ }
881
+ }
882
+ namespace ListAllAssignments {
883
+ namespace Responses {
884
+ export interface $200 {
885
+ assignments?: /* A role attached to an user */ Components.Schemas.Assignment[];
886
+ }
887
+ }
888
+ }
889
+ namespace ListAllRoles {
890
+ namespace Responses {
891
+ export interface $200 {
892
+ roles?: Components.Schemas.Role[];
893
+ }
894
+ }
895
+ }
896
+ namespace ListCurrentRoles {
897
+ namespace Responses {
898
+ export interface $200 {
899
+ roles?: Components.Schemas.Role[];
900
+ }
901
+ }
902
+ }
903
+ namespace PutRole {
904
+ namespace Parameters {
905
+ export type RoleId = /**
906
+ * Format: <organization_id>:<slug>
907
+ * example:
908
+ * 123:owner
909
+ */
910
+ Components.Schemas.RoleId;
911
+ }
912
+ export interface PathParameters {
913
+ roleId: Parameters.RoleId;
914
+ }
915
+ export type RequestBody = Components.Schemas.RolePayload;
916
+ namespace Responses {
917
+ export type $200 = Components.Schemas.Role;
918
+ export type $400 = /* Error response */ Components.Schemas.Error;
919
+ export type $404 = /* Error response */ Components.Schemas.Error;
920
+ }
921
+ }
922
+ namespace RefreshPermissions {
923
+ namespace Responses {
924
+ export interface $200 {
925
+ }
926
+ }
927
+ }
928
+ namespace RemoveAssignment {
929
+ namespace Parameters {
930
+ export type RoleId = /**
931
+ * Format: <organization_id>:<slug>
932
+ * example:
933
+ * 123:owner
934
+ */
935
+ Components.Schemas.RoleId;
936
+ export type UserId = /**
937
+ * Id of a user
938
+ * example:
939
+ * 1
940
+ */
941
+ Components.Schemas.UserId;
942
+ }
943
+ export interface PathParameters {
944
+ userId: Parameters.UserId;
945
+ roleId: Parameters.RoleId;
946
+ }
947
+ namespace Responses {
948
+ export type $200 = /* A role attached to an user */ Components.Schemas.Assignment;
949
+ }
950
+ }
951
+ namespace SearchRoles {
952
+ export type RequestBody = Components.Schemas.RoleSearchInput;
953
+ namespace Responses {
954
+ export interface $200 {
955
+ hits?: number;
956
+ results?: Components.Schemas.Role[];
957
+ }
958
+ }
959
+ }
960
+ }
961
+
962
+ interface OperationMethods {
963
+ /**
964
+ * listCurrentRoles - listCurrentRoles
965
+ *
966
+ * Returns roles and grants assigned to current user
967
+ */
968
+ 'listCurrentRoles'(
969
+ parameters?: Parameters<UnknownParamsObject> | null,
970
+ data?: any,
971
+ config?: AxiosRequestConfig
972
+ ): OperationResponse<Paths.ListCurrentRoles.Responses.$200>
973
+ /**
974
+ * listAllRoles - listAllRoles
975
+ *
976
+ * Returns list of all roles in organization
977
+ */
978
+ 'listAllRoles'(
979
+ parameters?: Parameters<UnknownParamsObject> | null,
980
+ data?: any,
981
+ config?: AxiosRequestConfig
982
+ ): OperationResponse<Paths.ListAllRoles.Responses.$200>
983
+ /**
984
+ * createRole - createRole
985
+ *
986
+ * Create role
987
+ */
988
+ 'createRole'(
989
+ parameters?: Parameters<UnknownParamsObject> | null,
990
+ data?: Paths.CreateRole.RequestBody,
991
+ config?: AxiosRequestConfig
992
+ ): OperationResponse<Paths.CreateRole.Responses.$200>
993
+ /**
994
+ * searchRoles - searchRoles
995
+ *
996
+ * Search Roles
997
+ */
998
+ 'searchRoles'(
999
+ parameters?: Parameters<UnknownParamsObject> | null,
1000
+ data?: Paths.SearchRoles.RequestBody,
1001
+ config?: AxiosRequestConfig
1002
+ ): OperationResponse<Paths.SearchRoles.Responses.$200>
1003
+ /**
1004
+ * getRole - getRole
1005
+ *
1006
+ * Get role by id
1007
+ */
1008
+ 'getRole'(
1009
+ parameters?: Parameters<Paths.GetRole.PathParameters> | null,
1010
+ data?: any,
1011
+ config?: AxiosRequestConfig
1012
+ ): OperationResponse<Paths.GetRole.Responses.$200>
1013
+ /**
1014
+ * putRole - putRole
1015
+ *
1016
+ * Create or update role
1017
+ */
1018
+ 'putRole'(
1019
+ parameters?: Parameters<Paths.PutRole.PathParameters> | null,
1020
+ data?: Paths.PutRole.RequestBody,
1021
+ config?: AxiosRequestConfig
1022
+ ): OperationResponse<Paths.PutRole.Responses.$200>
1023
+ /**
1024
+ * deleteRole - deleteRole
1025
+ *
1026
+ * Delete role by id
1027
+ */
1028
+ 'deleteRole'(
1029
+ parameters?: Parameters<Paths.DeleteRole.PathParameters> | null,
1030
+ data?: any,
1031
+ config?: AxiosRequestConfig
1032
+ ): OperationResponse<Paths.DeleteRole.Responses.$200>
1033
+ /**
1034
+ * refreshPermissions - refreshPermissions
1035
+ *
1036
+ * Makes sure the user has a role in the organization
1037
+ */
1038
+ 'refreshPermissions'(
1039
+ parameters?: Parameters<UnknownParamsObject> | null,
1040
+ data?: any,
1041
+ config?: AxiosRequestConfig
1042
+ ): OperationResponse<Paths.RefreshPermissions.Responses.$200>
1043
+ /**
1044
+ * getAssignedRolesForUser - getAssignedRolesForUser
1045
+ *
1046
+ * Get list of assigned roles by user id
1047
+ */
1048
+ 'getAssignedRolesForUser'(
1049
+ parameters?: Parameters<Paths.GetAssignedRolesForUser.PathParameters> | null,
1050
+ data?: any,
1051
+ config?: AxiosRequestConfig
1052
+ ): OperationResponse<Paths.GetAssignedRolesForUser.Responses.$200>
1053
+ /**
1054
+ * assignRoles - assignRoles
1055
+ *
1056
+ * Assign / unassign roles to users.
1057
+ */
1058
+ 'assignRoles'(
1059
+ parameters?: Parameters<Paths.AssignRoles.PathParameters> | null,
1060
+ data?: Paths.AssignRoles.RequestBody,
1061
+ config?: AxiosRequestConfig
1062
+ ): OperationResponse<Paths.AssignRoles.Responses.$200>
1063
+ /**
1064
+ * addAssignment - addAssignment
1065
+ *
1066
+ * Assign a user to a role.
1067
+ *
1068
+ * Use the `x-epilot-org-id` header to assign share roles to users in other orgs
1069
+ *
1070
+ */
1071
+ 'addAssignment'(
1072
+ parameters?: Parameters<Paths.AddAssignment.PathParameters> | null,
1073
+ data?: any,
1074
+ config?: AxiosRequestConfig
1075
+ ): OperationResponse<Paths.AddAssignment.Responses.$201>
1076
+ /**
1077
+ * removeAssignment - removeAssignment
1078
+ *
1079
+ * Remove role assignment from user
1080
+ */
1081
+ 'removeAssignment'(
1082
+ parameters?: Parameters<Paths.RemoveAssignment.PathParameters> | null,
1083
+ data?: any,
1084
+ config?: AxiosRequestConfig
1085
+ ): OperationResponse<Paths.RemoveAssignment.Responses.$200>
1086
+ /**
1087
+ * listAllAssignments - listAllAssignments
1088
+ *
1089
+ * Returns list of all assignments in organization
1090
+ */
1091
+ 'listAllAssignments'(
1092
+ parameters?: Parameters<UnknownParamsObject> | null,
1093
+ data?: any,
1094
+ config?: AxiosRequestConfig
1095
+ ): OperationResponse<Paths.ListAllAssignments.Responses.$200>
1096
+ }
1097
+
1098
+ interface PathsDictionary {
1099
+ ['/v1/permissions/me']: {
1100
+ /**
1101
+ * listCurrentRoles - listCurrentRoles
1102
+ *
1103
+ * Returns roles and grants assigned to current user
1104
+ */
1105
+ 'get'(
1106
+ parameters?: Parameters<UnknownParamsObject> | null,
1107
+ data?: any,
1108
+ config?: AxiosRequestConfig
1109
+ ): OperationResponse<Paths.ListCurrentRoles.Responses.$200>
1110
+ }
1111
+ ['/v1/permissions/roles']: {
1112
+ /**
1113
+ * listAllRoles - listAllRoles
1114
+ *
1115
+ * Returns list of all roles in organization
1116
+ */
1117
+ 'get'(
1118
+ parameters?: Parameters<UnknownParamsObject> | null,
1119
+ data?: any,
1120
+ config?: AxiosRequestConfig
1121
+ ): OperationResponse<Paths.ListAllRoles.Responses.$200>
1122
+ /**
1123
+ * createRole - createRole
1124
+ *
1125
+ * Create role
1126
+ */
1127
+ 'post'(
1128
+ parameters?: Parameters<UnknownParamsObject> | null,
1129
+ data?: Paths.CreateRole.RequestBody,
1130
+ config?: AxiosRequestConfig
1131
+ ): OperationResponse<Paths.CreateRole.Responses.$200>
1132
+ }
1133
+ ['/v1/permissions/roles:search']: {
1134
+ /**
1135
+ * searchRoles - searchRoles
1136
+ *
1137
+ * Search Roles
1138
+ */
1139
+ 'post'(
1140
+ parameters?: Parameters<UnknownParamsObject> | null,
1141
+ data?: Paths.SearchRoles.RequestBody,
1142
+ config?: AxiosRequestConfig
1143
+ ): OperationResponse<Paths.SearchRoles.Responses.$200>
1144
+ }
1145
+ ['/v1/permissions/roles/{roleId}']: {
1146
+ /**
1147
+ * getRole - getRole
1148
+ *
1149
+ * Get role by id
1150
+ */
1151
+ 'get'(
1152
+ parameters?: Parameters<Paths.GetRole.PathParameters> | null,
1153
+ data?: any,
1154
+ config?: AxiosRequestConfig
1155
+ ): OperationResponse<Paths.GetRole.Responses.$200>
1156
+ /**
1157
+ * putRole - putRole
1158
+ *
1159
+ * Create or update role
1160
+ */
1161
+ 'put'(
1162
+ parameters?: Parameters<Paths.PutRole.PathParameters> | null,
1163
+ data?: Paths.PutRole.RequestBody,
1164
+ config?: AxiosRequestConfig
1165
+ ): OperationResponse<Paths.PutRole.Responses.$200>
1166
+ /**
1167
+ * deleteRole - deleteRole
1168
+ *
1169
+ * Delete role by id
1170
+ */
1171
+ 'delete'(
1172
+ parameters?: Parameters<Paths.DeleteRole.PathParameters> | null,
1173
+ data?: any,
1174
+ config?: AxiosRequestConfig
1175
+ ): OperationResponse<Paths.DeleteRole.Responses.$200>
1176
+ }
1177
+ ['/v1/permissions/refresh']: {
1178
+ /**
1179
+ * refreshPermissions - refreshPermissions
1180
+ *
1181
+ * Makes sure the user has a role in the organization
1182
+ */
1183
+ 'get'(
1184
+ parameters?: Parameters<UnknownParamsObject> | null,
1185
+ data?: any,
1186
+ config?: AxiosRequestConfig
1187
+ ): OperationResponse<Paths.RefreshPermissions.Responses.$200>
1188
+ }
1189
+ ['/v1/permissions/assignments/{userId}']: {
1190
+ /**
1191
+ * getAssignedRolesForUser - getAssignedRolesForUser
1192
+ *
1193
+ * Get list of assigned roles by user id
1194
+ */
1195
+ 'get'(
1196
+ parameters?: Parameters<Paths.GetAssignedRolesForUser.PathParameters> | null,
1197
+ data?: any,
1198
+ config?: AxiosRequestConfig
1199
+ ): OperationResponse<Paths.GetAssignedRolesForUser.Responses.$200>
1200
+ /**
1201
+ * assignRoles - assignRoles
1202
+ *
1203
+ * Assign / unassign roles to users.
1204
+ */
1205
+ 'put'(
1206
+ parameters?: Parameters<Paths.AssignRoles.PathParameters> | null,
1207
+ data?: Paths.AssignRoles.RequestBody,
1208
+ config?: AxiosRequestConfig
1209
+ ): OperationResponse<Paths.AssignRoles.Responses.$200>
1210
+ }
1211
+ ['/v1/permissions/assignments/{userId}/{roleId}']: {
1212
+ /**
1213
+ * addAssignment - addAssignment
1214
+ *
1215
+ * Assign a user to a role.
1216
+ *
1217
+ * Use the `x-epilot-org-id` header to assign share roles to users in other orgs
1218
+ *
1219
+ */
1220
+ 'post'(
1221
+ parameters?: Parameters<Paths.AddAssignment.PathParameters> | null,
1222
+ data?: any,
1223
+ config?: AxiosRequestConfig
1224
+ ): OperationResponse<Paths.AddAssignment.Responses.$201>
1225
+ /**
1226
+ * removeAssignment - removeAssignment
1227
+ *
1228
+ * Remove role assignment from user
1229
+ */
1230
+ 'delete'(
1231
+ parameters?: Parameters<Paths.RemoveAssignment.PathParameters> | null,
1232
+ data?: any,
1233
+ config?: AxiosRequestConfig
1234
+ ): OperationResponse<Paths.RemoveAssignment.Responses.$200>
1235
+ }
1236
+ ['/v1/permissions/assignments']: {
1237
+ /**
1238
+ * listAllAssignments - listAllAssignments
1239
+ *
1240
+ * Returns list of all assignments in organization
1241
+ */
1242
+ 'get'(
1243
+ parameters?: Parameters<UnknownParamsObject> | null,
1244
+ data?: any,
1245
+ config?: AxiosRequestConfig
1246
+ ): OperationResponse<Paths.ListAllAssignments.Responses.$200>
1247
+ }
1248
+ }
1249
+
1250
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1251
+
1252
+ type Assignment = Components.Schemas.Assignment;
1253
+ type Assignments = Components.Schemas.Assignments;
1254
+ type BaseRole = Components.Schemas.BaseRole;
1255
+ type BaseRoleForCreate = Components.Schemas.BaseRoleForCreate;
1256
+ type CreateRolePayload = Components.Schemas.CreateRolePayload;
1257
+ type EqualsCondition = Components.Schemas.EqualsCondition;
1258
+ type EqualsCurrentUserCondition = Components.Schemas.EqualsCurrentUserCondition;
1259
+ type Error = Components.Schemas.Error;
1260
+ type Grant = Components.Schemas.Grant;
1261
+ type GrantCondition = Components.Schemas.GrantCondition;
1262
+ type GrantWithDependencies = Components.Schemas.GrantWithDependencies;
1263
+ type InternalAssignment = Components.Schemas.InternalAssignment;
1264
+ type OrgAssignments = Components.Schemas.OrgAssignments;
1265
+ type OrgRole = Components.Schemas.OrgRole;
1266
+ type OrgRoles = Components.Schemas.OrgRoles;
1267
+ type OrganizationId = Components.Schemas.OrganizationId;
1268
+ type PartnerRole = Components.Schemas.PartnerRole;
1269
+ type PortalRole = Components.Schemas.PortalRole;
1270
+ type Role = Components.Schemas.Role;
1271
+ type RoleId = Components.Schemas.RoleId;
1272
+ type RolePayload = Components.Schemas.RolePayload;
1273
+ type RoleSearchInput = Components.Schemas.RoleSearchInput;
1274
+ type ShareRole = Components.Schemas.ShareRole;
1275
+ type Slug = Components.Schemas.Slug;
1276
+ type UserId = Components.Schemas.UserId;
1277
+ type UserRole = Components.Schemas.UserRole;
1278
+
1279
+ export { type Assignment as A, type BaseRole as B, type Client as C, type EqualsCondition as E, type Grant as G, type InternalAssignment as I, type OperationMethods as O, Paths as P, type Role as R, type ShareRole as S, type UserId as U, Components as a, type PathsDictionary as b, type Assignments as c, type BaseRoleForCreate as d, type CreateRolePayload as e, type EqualsCurrentUserCondition as f, type Error as g, type GrantCondition as h, type GrantWithDependencies as i, type OrgAssignments as j, type OrgRole as k, type OrgRoles as l, type OrganizationId as m, type PartnerRole as n, type PortalRole as o, type RoleId as p, type RolePayload as q, type RoleSearchInput as r, type Slug as s, type UserRole as t };