@spotto/contract 1.0.70-alpha.4 → 1.0.70-alpha.41

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 (368) hide show
  1. package/README.md +33 -33
  2. package/dist/actions/[id]/index.d.ts +1 -0
  3. package/dist/actions/[id]/index.js +18 -0
  4. package/dist/actions/[id]/index.js.map +1 -0
  5. package/dist/actions/[id]/patch/index.d.ts +2 -0
  6. package/dist/actions/[id]/patch/index.js +19 -0
  7. package/dist/actions/[id]/patch/index.js.map +1 -0
  8. package/dist/actions/[id]/patch/request.d.ts +12 -0
  9. package/dist/actions/[id]/patch/request.js +3 -0
  10. package/dist/actions/[id]/patch/request.js.map +1 -0
  11. package/dist/actions/[id]/patch/response.d.ts +1 -0
  12. package/dist/actions/[id]/patch/response.js +3 -0
  13. package/dist/actions/[id]/patch/response.js.map +1 -0
  14. package/dist/actions/get/index.d.ts +2 -0
  15. package/dist/actions/get/index.js +19 -0
  16. package/dist/actions/get/index.js.map +1 -0
  17. package/dist/actions/get/query.d.ts +14 -0
  18. package/dist/actions/get/query.js +3 -0
  19. package/dist/actions/get/query.js.map +1 -0
  20. package/dist/actions/get/response.d.ts +25 -0
  21. package/dist/actions/get/response.js +3 -0
  22. package/dist/actions/get/response.js.map +1 -0
  23. package/dist/actions/index.d.ts +4 -0
  24. package/dist/actions/index.js +21 -0
  25. package/dist/actions/index.js.map +1 -0
  26. package/dist/actions/post/index.d.ts +2 -0
  27. package/dist/actions/post/index.js +19 -0
  28. package/dist/actions/post/index.js.map +1 -0
  29. package/dist/actions/post/request.d.ts +15 -0
  30. package/dist/actions/post/request.js +3 -0
  31. package/dist/actions/post/request.js.map +1 -0
  32. package/dist/actions/post/response.d.ts +1 -0
  33. package/dist/actions/post/response.js +3 -0
  34. package/dist/actions/post/response.js.map +1 -0
  35. package/dist/actions/shared.d.ts +63 -0
  36. package/dist/actions/shared.js +17 -0
  37. package/dist/actions/shared.js.map +1 -0
  38. package/dist/ai/chat/index.d.ts +2 -0
  39. package/dist/ai/chat/index.js +19 -0
  40. package/dist/ai/chat/index.js.map +1 -0
  41. package/dist/ai/chat/request.d.ts +42 -0
  42. package/dist/ai/chat/request.js +3 -0
  43. package/dist/ai/chat/request.js.map +1 -0
  44. package/dist/ai/chat/response.d.ts +74 -0
  45. package/dist/ai/chat/response.js +11 -0
  46. package/dist/ai/chat/response.js.map +1 -0
  47. package/dist/ai/expression/index.d.ts +2 -0
  48. package/dist/ai/expression/index.js +19 -0
  49. package/dist/ai/expression/index.js.map +1 -0
  50. package/dist/ai/expression/request.d.ts +29 -0
  51. package/dist/ai/expression/request.js +3 -0
  52. package/dist/ai/expression/request.js.map +1 -0
  53. package/dist/ai/expression/response.d.ts +23 -0
  54. package/dist/ai/expression/response.js +3 -0
  55. package/dist/ai/expression/response.js.map +1 -0
  56. package/dist/ai/index.d.ts +4 -0
  57. package/dist/ai/index.js +21 -0
  58. package/dist/ai/index.js.map +1 -0
  59. package/dist/ai/semantic-query/index.d.ts +2 -0
  60. package/dist/ai/semantic-query/index.js +19 -0
  61. package/dist/ai/semantic-query/index.js.map +1 -0
  62. package/dist/ai/semantic-query/request.d.ts +43 -0
  63. package/dist/ai/semantic-query/request.js +3 -0
  64. package/dist/ai/semantic-query/request.js.map +1 -0
  65. package/dist/ai/semantic-query/response.d.ts +40 -0
  66. package/dist/ai/semantic-query/response.js +3 -0
  67. package/dist/ai/semantic-query/response.js.map +1 -0
  68. package/dist/ai/shared.d.ts +22 -0
  69. package/dist/ai/shared.js +11 -0
  70. package/dist/ai/shared.js.map +1 -0
  71. package/dist/assets/[id]/get.d.ts +16 -1
  72. package/dist/assets/[id]/patch/request.d.ts +5 -0
  73. package/dist/assets/count/query.d.ts +16 -1
  74. package/dist/assets/download/query.d.ts +7 -0
  75. package/dist/assets/get/query.d.ts +77 -4
  76. package/dist/assets/get/query.js +3 -0
  77. package/dist/assets/get/query.js.map +1 -1
  78. package/dist/assets/get/response.d.ts +6 -0
  79. package/dist/assets/index.d.ts +3 -0
  80. package/dist/assets/index.js +3 -0
  81. package/dist/assets/index.js.map +1 -1
  82. package/dist/assets/location/request.d.ts +10 -1
  83. package/dist/assets/partitions/index.d.ts +2 -0
  84. package/dist/assets/partitions/index.js +19 -0
  85. package/dist/assets/partitions/index.js.map +1 -0
  86. package/dist/assets/partitions/query.d.ts +16 -0
  87. package/dist/assets/partitions/query.js +3 -0
  88. package/dist/assets/partitions/query.js.map +1 -0
  89. package/dist/assets/partitions/response.d.ts +10 -0
  90. package/dist/assets/partitions/response.js +3 -0
  91. package/dist/assets/partitions/response.js.map +1 -0
  92. package/dist/assets/post/request.d.ts +2 -0
  93. package/dist/assets/post/request.js.map +1 -1
  94. package/dist/assets/readiness/index.d.ts +2 -0
  95. package/dist/assets/readiness/index.js +19 -0
  96. package/dist/assets/readiness/index.js.map +1 -0
  97. package/dist/assets/readiness/query.d.ts +7 -0
  98. package/dist/assets/readiness/query.js +3 -0
  99. package/dist/assets/readiness/query.js.map +1 -0
  100. package/dist/assets/readiness/response.d.ts +24 -0
  101. package/dist/assets/readiness/response.js +3 -0
  102. package/dist/assets/readiness/response.js.map +1 -0
  103. package/dist/assets/rollup/index.d.ts +2 -0
  104. package/dist/assets/rollup/index.js +19 -0
  105. package/dist/assets/rollup/index.js.map +1 -0
  106. package/dist/assets/rollup/query.d.ts +12 -0
  107. package/dist/assets/rollup/query.js +5 -0
  108. package/dist/assets/rollup/query.js.map +1 -0
  109. package/dist/assets/rollup/response.d.ts +58 -0
  110. package/dist/assets/rollup/response.js +3 -0
  111. package/dist/assets/rollup/response.js.map +1 -0
  112. package/dist/events/constants.d.ts +52 -1
  113. package/dist/events/constants.js +46 -1
  114. package/dist/events/constants.js.map +1 -1
  115. package/dist/events/get/query.d.ts +25 -0
  116. package/dist/events/get/response.d.ts +107 -3
  117. package/dist/fields/[id]/get.d.ts +7 -0
  118. package/dist/fields/[id]/patch/request.d.ts +14 -0
  119. package/dist/fields/constants.d.ts +68 -0
  120. package/dist/fields/constants.js +29 -1
  121. package/dist/fields/constants.js.map +1 -1
  122. package/dist/fields/post/request.d.ts +6 -0
  123. package/dist/fields/post/request.js.map +1 -1
  124. package/dist/forms/[id]/index.d.ts +1 -0
  125. package/dist/forms/[id]/index.js +18 -0
  126. package/dist/forms/[id]/index.js.map +1 -0
  127. package/dist/forms/[id]/patch/index.d.ts +2 -0
  128. package/dist/forms/[id]/patch/index.js +19 -0
  129. package/dist/forms/[id]/patch/index.js.map +1 -0
  130. package/dist/forms/[id]/patch/request.d.ts +14 -0
  131. package/dist/forms/[id]/patch/request.js +3 -0
  132. package/dist/forms/[id]/patch/request.js.map +1 -0
  133. package/dist/forms/[id]/patch/response.d.ts +1 -0
  134. package/dist/forms/[id]/patch/response.js +3 -0
  135. package/dist/forms/[id]/patch/response.js.map +1 -0
  136. package/dist/forms/constants.d.ts +19 -0
  137. package/dist/forms/constants.js +33 -0
  138. package/dist/forms/constants.js.map +1 -0
  139. package/dist/forms/get/index.d.ts +2 -0
  140. package/dist/forms/get/index.js +19 -0
  141. package/dist/forms/get/index.js.map +1 -0
  142. package/dist/forms/get/query.d.ts +18 -0
  143. package/dist/forms/get/query.js +3 -0
  144. package/dist/forms/get/query.js.map +1 -0
  145. package/dist/forms/get/response.d.ts +23 -0
  146. package/dist/forms/get/response.js +3 -0
  147. package/dist/forms/get/response.js.map +1 -0
  148. package/dist/forms/index.d.ts +6 -0
  149. package/dist/forms/index.js +23 -0
  150. package/dist/forms/index.js.map +1 -0
  151. package/dist/forms/post/index.d.ts +2 -0
  152. package/dist/forms/post/index.js +19 -0
  153. package/dist/forms/post/index.js.map +1 -0
  154. package/dist/forms/post/request.d.ts +9 -0
  155. package/dist/forms/post/request.js +3 -0
  156. package/dist/forms/post/request.js.map +1 -0
  157. package/dist/forms/post/response.d.ts +1 -0
  158. package/dist/forms/post/response.js +3 -0
  159. package/dist/forms/post/response.js.map +1 -0
  160. package/dist/forms/shared.d.ts +136 -0
  161. package/dist/forms/shared.js +3 -0
  162. package/dist/forms/shared.js.map +1 -0
  163. package/dist/forms/versions/index.d.ts +2 -0
  164. package/dist/forms/versions/index.js +19 -0
  165. package/dist/forms/versions/index.js.map +1 -0
  166. package/dist/forms/versions/path.d.ts +8 -0
  167. package/dist/forms/versions/path.js +3 -0
  168. package/dist/forms/versions/path.js.map +1 -0
  169. package/dist/forms/versions/response.d.ts +1 -0
  170. package/dist/forms/versions/response.js +3 -0
  171. package/dist/forms/versions/response.js.map +1 -0
  172. package/dist/index.d.ts +6 -0
  173. package/dist/index.js +6 -0
  174. package/dist/index.js.map +1 -1
  175. package/dist/locations/constants.d.ts +9 -0
  176. package/dist/locations/constants.js +10 -1
  177. package/dist/locations/constants.js.map +1 -1
  178. package/dist/locations/get/query.d.ts +22 -0
  179. package/dist/organisations/[id]/get.d.ts +7 -0
  180. package/dist/organisations/[id]/patch/request.d.ts +2 -0
  181. package/dist/organisations/constants.d.ts +20 -0
  182. package/dist/organisations/constants.js +10 -0
  183. package/dist/organisations/constants.js.map +1 -1
  184. package/dist/organisations/sso/constants.d.ts +15 -0
  185. package/dist/organisations/sso/constants.js +16 -1
  186. package/dist/organisations/sso/constants.js.map +1 -1
  187. package/dist/organisations/sso/types.d.ts +48 -0
  188. package/dist/readers/get/query.d.ts +12 -0
  189. package/dist/semantic-queries/[id]/index.d.ts +1 -0
  190. package/dist/semantic-queries/[id]/index.js +18 -0
  191. package/dist/semantic-queries/[id]/index.js.map +1 -0
  192. package/dist/semantic-queries/[id]/patch/index.d.ts +2 -0
  193. package/dist/semantic-queries/[id]/patch/index.js +19 -0
  194. package/dist/semantic-queries/[id]/patch/index.js.map +1 -0
  195. package/dist/semantic-queries/[id]/patch/request.d.ts +20 -0
  196. package/dist/semantic-queries/[id]/patch/request.js +3 -0
  197. package/dist/semantic-queries/[id]/patch/request.js.map +1 -0
  198. package/dist/semantic-queries/[id]/patch/response.d.ts +1 -0
  199. package/dist/semantic-queries/[id]/patch/response.js +3 -0
  200. package/dist/semantic-queries/[id]/patch/response.js.map +1 -0
  201. package/dist/semantic-queries/get/index.d.ts +2 -0
  202. package/dist/semantic-queries/get/index.js +19 -0
  203. package/dist/semantic-queries/get/index.js.map +1 -0
  204. package/dist/semantic-queries/get/query.d.ts +18 -0
  205. package/dist/semantic-queries/get/query.js +3 -0
  206. package/dist/semantic-queries/get/query.js.map +1 -0
  207. package/dist/semantic-queries/get/response.d.ts +40 -0
  208. package/dist/semantic-queries/get/response.js +3 -0
  209. package/dist/semantic-queries/get/response.js.map +1 -0
  210. package/dist/semantic-queries/index.d.ts +4 -0
  211. package/dist/semantic-queries/index.js +21 -0
  212. package/dist/semantic-queries/index.js.map +1 -0
  213. package/dist/semantic-queries/post/index.d.ts +2 -0
  214. package/dist/semantic-queries/post/index.js +19 -0
  215. package/dist/semantic-queries/post/index.js.map +1 -0
  216. package/dist/semantic-queries/post/request.d.ts +56 -0
  217. package/dist/semantic-queries/post/request.js +3 -0
  218. package/dist/semantic-queries/post/request.js.map +1 -0
  219. package/dist/semantic-queries/post/response.d.ts +1 -0
  220. package/dist/semantic-queries/post/response.js +3 -0
  221. package/dist/semantic-queries/post/response.js.map +1 -0
  222. package/dist/semantic-queries/shared.d.ts +876 -0
  223. package/dist/semantic-queries/shared.js +319 -0
  224. package/dist/semantic-queries/shared.js.map +1 -0
  225. package/dist/shared/attachments.d.ts +29 -0
  226. package/dist/shared/attachments.js +11 -0
  227. package/dist/shared/attachments.js.map +1 -0
  228. package/dist/shared/embed.d.ts +14 -0
  229. package/dist/shared/index.d.ts +2 -0
  230. package/dist/shared/index.js +2 -0
  231. package/dist/shared/index.js.map +1 -1
  232. package/dist/shared/readiness.d.ts +81 -0
  233. package/dist/shared/readiness.js +11 -0
  234. package/dist/shared/readiness.js.map +1 -0
  235. package/dist/snapshots/[id]/get.d.ts +142 -11
  236. package/dist/snapshots/[id]/get.js.map +1 -1
  237. package/dist/snapshots/get/query.d.ts +39 -0
  238. package/dist/snapshots/get/query.js +23 -1
  239. package/dist/snapshots/get/query.js.map +1 -1
  240. package/dist/snapshots/post/request.d.ts +21 -0
  241. package/dist/snapshots/post/request.js.map +1 -1
  242. package/dist/sso/onboard/request.d.ts +12 -1
  243. package/dist/sso/sso-mappings/request.d.ts +10 -5
  244. package/dist/submissions/[id]/index.d.ts +1 -0
  245. package/dist/submissions/[id]/index.js +18 -0
  246. package/dist/submissions/[id]/index.js.map +1 -0
  247. package/dist/submissions/[id]/void/post.d.ts +6 -0
  248. package/dist/submissions/[id]/void/post.js +3 -0
  249. package/dist/submissions/[id]/void/post.js.map +1 -0
  250. package/dist/submissions/constants.d.ts +14 -0
  251. package/dist/submissions/constants.js +21 -0
  252. package/dist/submissions/constants.js.map +1 -0
  253. package/dist/submissions/get/index.d.ts +2 -0
  254. package/dist/submissions/get/index.js +19 -0
  255. package/dist/submissions/get/index.js.map +1 -0
  256. package/dist/submissions/get/query.d.ts +14 -0
  257. package/dist/submissions/get/query.js +3 -0
  258. package/dist/submissions/get/query.js.map +1 -0
  259. package/dist/submissions/get/response.d.ts +6 -0
  260. package/dist/submissions/get/response.js +3 -0
  261. package/dist/submissions/get/response.js.map +1 -0
  262. package/dist/submissions/index.d.ts +6 -0
  263. package/dist/submissions/index.js +23 -0
  264. package/dist/submissions/index.js.map +1 -0
  265. package/dist/submissions/post/index.d.ts +2 -0
  266. package/dist/submissions/post/index.js +19 -0
  267. package/dist/submissions/post/index.js.map +1 -0
  268. package/dist/submissions/post/request.d.ts +17 -0
  269. package/dist/submissions/post/request.js +3 -0
  270. package/dist/submissions/post/request.js.map +1 -0
  271. package/dist/submissions/post/response.d.ts +22 -0
  272. package/dist/submissions/post/response.js +3 -0
  273. package/dist/submissions/post/response.js.map +1 -0
  274. package/dist/submissions/shared.d.ts +133 -0
  275. package/dist/submissions/shared.js +3 -0
  276. package/dist/submissions/shared.js.map +1 -0
  277. package/dist/submissions/uploads/[fileId]/get.d.ts +11 -0
  278. package/dist/submissions/uploads/[fileId]/get.js +3 -0
  279. package/dist/submissions/uploads/[fileId]/get.js.map +1 -0
  280. package/dist/submissions/uploads/[fileId]/index.d.ts +1 -0
  281. package/dist/submissions/uploads/[fileId]/index.js +18 -0
  282. package/dist/submissions/uploads/[fileId]/index.js.map +1 -0
  283. package/dist/submissions/uploads/index.d.ts +2 -0
  284. package/dist/submissions/uploads/index.js +19 -0
  285. package/dist/submissions/uploads/index.js.map +1 -0
  286. package/dist/submissions/uploads/post/index.d.ts +2 -0
  287. package/dist/submissions/uploads/post/index.js +19 -0
  288. package/dist/submissions/uploads/post/index.js.map +1 -0
  289. package/dist/submissions/uploads/post/request.d.ts +9 -0
  290. package/dist/submissions/uploads/post/request.js +3 -0
  291. package/dist/submissions/uploads/post/request.js.map +1 -0
  292. package/dist/submissions/uploads/post/response.d.ts +18 -0
  293. package/dist/submissions/uploads/post/response.js +3 -0
  294. package/dist/submissions/uploads/post/response.js.map +1 -0
  295. package/dist/types/[id]/get.d.ts +34 -4
  296. package/dist/types/[id]/patch/request.d.ts +24 -4
  297. package/dist/types/constants.d.ts +9 -0
  298. package/dist/types/constants.js +13 -0
  299. package/dist/types/constants.js.map +1 -0
  300. package/dist/types/index.d.ts +1 -0
  301. package/dist/types/index.js +1 -0
  302. package/dist/types/index.js.map +1 -1
  303. package/dist/types/post/request.d.ts +30 -4
  304. package/dist/types/post/request.js.map +1 -1
  305. package/dist/usergroups/[id]/index.d.ts +1 -0
  306. package/dist/usergroups/[id]/index.js +18 -0
  307. package/dist/usergroups/[id]/index.js.map +1 -0
  308. package/dist/usergroups/[id]/patch/index.d.ts +2 -0
  309. package/dist/usergroups/[id]/patch/index.js +19 -0
  310. package/dist/usergroups/[id]/patch/index.js.map +1 -0
  311. package/dist/usergroups/[id]/patch/request.d.ts +23 -0
  312. package/dist/usergroups/[id]/patch/request.js +3 -0
  313. package/dist/usergroups/[id]/patch/request.js.map +1 -0
  314. package/dist/usergroups/[id]/patch/response.d.ts +1 -0
  315. package/dist/usergroups/[id]/patch/response.js +3 -0
  316. package/dist/usergroups/[id]/patch/response.js.map +1 -0
  317. package/dist/usergroups/access.d.ts +100 -0
  318. package/dist/usergroups/access.js +24 -0
  319. package/dist/usergroups/access.js.map +1 -0
  320. package/dist/usergroups/get/index.d.ts +2 -0
  321. package/dist/usergroups/get/index.js +19 -0
  322. package/dist/usergroups/get/index.js.map +1 -0
  323. package/dist/usergroups/get/query.d.ts +12 -0
  324. package/dist/usergroups/get/query.js +3 -0
  325. package/dist/usergroups/get/query.js.map +1 -0
  326. package/dist/usergroups/get/response.d.ts +44 -0
  327. package/dist/usergroups/get/response.js +3 -0
  328. package/dist/usergroups/get/response.js.map +1 -0
  329. package/dist/usergroups/index.d.ts +5 -0
  330. package/dist/usergroups/index.js +22 -0
  331. package/dist/usergroups/index.js.map +1 -0
  332. package/dist/usergroups/post/index.d.ts +2 -0
  333. package/dist/usergroups/post/index.js +19 -0
  334. package/dist/usergroups/post/index.js.map +1 -0
  335. package/dist/usergroups/post/request.d.ts +17 -0
  336. package/dist/usergroups/post/request.js +3 -0
  337. package/dist/usergroups/post/request.js.map +1 -0
  338. package/dist/usergroups/post/response.d.ts +1 -0
  339. package/dist/usergroups/post/response.js +3 -0
  340. package/dist/usergroups/post/response.js.map +1 -0
  341. package/dist/usergroups/shared.d.ts +8 -0
  342. package/dist/usergroups/shared.js +11 -0
  343. package/dist/usergroups/shared.js.map +1 -0
  344. package/dist/users/[id]/get/response.d.ts +0 -2
  345. package/dist/users/[id]/patch/request.d.ts +5 -1
  346. package/dist/users/console.d.ts +15 -0
  347. package/dist/users/console.js +5 -0
  348. package/dist/users/console.js.map +1 -0
  349. package/dist/users/current.d.ts +70 -4
  350. package/dist/users/get/query.d.ts +0 -2
  351. package/dist/users/home-layout/index.d.ts +3 -0
  352. package/dist/users/home-layout/index.js +20 -0
  353. package/dist/users/home-layout/index.js.map +1 -0
  354. package/dist/users/home-layout/request.d.ts +5 -0
  355. package/dist/users/home-layout/request.js +3 -0
  356. package/dist/users/home-layout/request.js.map +1 -0
  357. package/dist/users/home-layout/response.d.ts +5 -0
  358. package/dist/users/home-layout/response.js +3 -0
  359. package/dist/users/home-layout/response.js.map +1 -0
  360. package/dist/users/home-layout/shared.d.ts +288 -0
  361. package/dist/users/home-layout/shared.js +30 -0
  362. package/dist/users/home-layout/shared.js.map +1 -0
  363. package/dist/users/index.d.ts +2 -0
  364. package/dist/users/index.js +2 -0
  365. package/dist/users/index.js.map +1 -1
  366. package/dist/users/password-reset.d.ts +8 -1
  367. package/dist/users/post/request.d.ts +12 -1
  368. package/package.json +2 -2
@@ -0,0 +1,23 @@
1
+ import { GroupHomeLayout } from '../../../users/home-layout';
2
+ import { ActionAccess, AssetAccessRuleRequest } from '../../access';
3
+ /**
4
+ * Membership, the rule and the action access are replaced wholesale; an
5
+ * empty member list empties the group and an empty rule array leaves it
6
+ * granting no assets. Changes that alter the actor's own membership are
7
+ * rejected (the own-role-guard rule).
8
+ */
9
+ export interface UpdateUsergroupRequest {
10
+ name?: string;
11
+ members?: string[];
12
+ /** Replaced wholesale. `[]` leaves the group granting no assets. */
13
+ assetAccessRules?: AssetAccessRuleRequest[];
14
+ /** Replaced wholesale. */
15
+ actionAccess?: ActionAccess;
16
+ /**
17
+ * Replaced wholesale, like membership. `null` CLEARS it — the group stops
18
+ * provisioning a layout, and members lose the row from their switcher. An
19
+ * empty widget list is a different thing: a layout that exists and happens
20
+ * to be empty.
21
+ */
22
+ homeLayout?: GroupHomeLayout | null;
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/usergroups/[id]/patch/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { GetUsergroupResponse as UpdateUsergroupResponse } from '../../get/response';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../src/usergroups/[id]/patch/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,100 @@
1
+ /**
2
+ * The group permission model: one asset rule per group, with the field access
3
+ * inside the rule and the action access beside it. A group only ever grants.
4
+ *
5
+ * Specification: business_unit_access/group_permission_spec_v31.md, section 3.
6
+ * The evaluation that both the API and the client run over these shapes lives
7
+ * in `@spotto/semantic-query` (its rules module), not here.
8
+ */
9
+ /** The level a rule or a field grant confers. Edit implies view. */
10
+ export declare const ASSET_ACCESS_LEVELS: readonly ["VIEW", "EDIT"];
11
+ export declare type AssetAccessLevel = (typeof ASSET_ACCESS_LEVELS)[number];
12
+ /** `ALL`: the whole dimension. `SELECTED`: the listed entries, which OR together. */
13
+ export declare const ACCESS_SELECTION_MODES: readonly ["ALL", "SELECTED"];
14
+ export declare type AccessSelectionMode = (typeof ACCESS_SELECTION_MODES)[number];
15
+ /** The one operator a custom-field filter takes in this release. */
16
+ export declare const RULE_FILTER_OPERATORS: readonly ["IN"];
17
+ export declare type RuleFilterOperator = (typeof RULE_FILTER_OPERATORS)[number];
18
+ /** One dimension of a rule: the whole organisation, or a set of subtrees. */
19
+ export interface AccessPathSelection {
20
+ mode: AccessSelectionMode;
21
+ /**
22
+ * Required and non-empty under `SELECTED`, absent under `ALL`. Stored in the
23
+ * canonical form with the trailing pipe (`Eastern|Sydney|`), so a prefix
24
+ * never reaches a sibling (`Eastern|Sydneyside|`). The organisation root,
25
+ * whose path is empty, is never a valid entry: `ALL` is the way to say the
26
+ * whole organisation.
27
+ */
28
+ paths?: string[];
29
+ }
30
+ /** A custom-field filter: the asset's value for the field is one of these. */
31
+ export interface AccessFieldFilter {
32
+ /** A single-select field: `DROPDOWN` or `RADIO` with an option list. */
33
+ fieldId: string;
34
+ operator: RuleFilterOperator;
35
+ /** Option values, non-empty. A discontinued option may still be named. */
36
+ values: string[];
37
+ }
38
+ /**
39
+ * The conditions of a rule. Within a dimension the entries OR together;
40
+ * across dimensions they AND. A dimension at `ALL` always matches.
41
+ */
42
+ export interface AssetRuleConditions {
43
+ /** Matches when the asset's home path OR its current location path sits inside a selected subtree. */
44
+ locations: AccessPathSelection;
45
+ /** Matches by type-path prefix, so a selected type covers its subtypes. */
46
+ assetTypes: AccessPathSelection;
47
+ /** Filters AND together, each one's values OR together. Empty or absent means no filter. */
48
+ customFields?: AccessFieldFilter[];
49
+ }
50
+ export interface FieldAccessGrant {
51
+ fieldId: string;
52
+ level: AssetAccessLevel;
53
+ }
54
+ /**
55
+ * The custom fields a group grants. `ALL` grants every field, the ones created
56
+ * later included, at one level. `SELECTED` grants the listed fields each at a
57
+ * level; hidden fields are omitted, never stored, and an empty list grants no
58
+ * custom field at all, which is the only way to say standard fields only.
59
+ */
60
+ export declare type FieldAccess = {
61
+ mode: 'ALL';
62
+ level: AssetAccessLevel;
63
+ } | {
64
+ mode: 'SELECTED';
65
+ fields: FieldAccessGrant[];
66
+ };
67
+ export interface AssetAccessRule {
68
+ /** Assigned by the server when a request omits it. */
69
+ id: string;
70
+ /** Required with `conditions`; without them it is ignored and may be omitted. */
71
+ level?: AssetAccessLevel;
72
+ /**
73
+ * Absent on a rule-less group, whose field access applies to every asset
74
+ * the member can open, capped by what the member can do to that asset.
75
+ */
76
+ conditions?: AssetRuleConditions;
77
+ fieldAccess: FieldAccess;
78
+ }
79
+ /** A rule as a request carries it: the id is optional. */
80
+ export declare type AssetAccessRuleRequest = Omit<AssetAccessRule, 'id'> & {
81
+ id?: string;
82
+ };
83
+ /**
84
+ * The actions a group grants, binary and unpaired with the asset rule. A group
85
+ * document without the key grants no action, and the read emits it as
86
+ * `SELECTED` with an empty list.
87
+ */
88
+ export declare type ActionAccess = {
89
+ mode: 'ALL';
90
+ } | {
91
+ mode: 'SELECTED';
92
+ actions: string[];
93
+ };
94
+ /**
95
+ * The scope a list read applies: the caller's groups, the default, or the
96
+ * whole organisation. Any signed-in user may ask for the organisation; the
97
+ * parameter exists for clients that filter locally.
98
+ */
99
+ export declare const LIST_SCOPES: readonly ["caller", "organisation"];
100
+ export declare type ListScope = (typeof LIST_SCOPES)[number];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * The group permission model: one asset rule per group, with the field access
4
+ * inside the rule and the action access beside it. A group only ever grants.
5
+ *
6
+ * Specification: business_unit_access/group_permission_spec_v31.md, section 3.
7
+ * The evaluation that both the API and the client run over these shapes lives
8
+ * in `@spotto/semantic-query` (its rules module), not here.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.LIST_SCOPES = exports.RULE_FILTER_OPERATORS = exports.ACCESS_SELECTION_MODES = exports.ASSET_ACCESS_LEVELS = void 0;
12
+ /** The level a rule or a field grant confers. Edit implies view. */
13
+ exports.ASSET_ACCESS_LEVELS = ['VIEW', 'EDIT'];
14
+ /** `ALL`: the whole dimension. `SELECTED`: the listed entries, which OR together. */
15
+ exports.ACCESS_SELECTION_MODES = ['ALL', 'SELECTED'];
16
+ /** The one operator a custom-field filter takes in this release. */
17
+ exports.RULE_FILTER_OPERATORS = ['IN'];
18
+ /**
19
+ * The scope a list read applies: the caller's groups, the default, or the
20
+ * whole organisation. Any signed-in user may ask for the organisation; the
21
+ * parameter exists for clients that filter locally.
22
+ */
23
+ exports.LIST_SCOPES = ['caller', 'organisation'];
24
+ //# sourceMappingURL=access.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access.js","sourceRoot":"","sources":["../../src/usergroups/access.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,oEAAoE;AACvD,QAAA,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAU,CAAA;AAG5D,qFAAqF;AACxE,QAAA,sBAAsB,GAAG,CAAC,KAAK,EAAE,UAAU,CAAU,CAAA;AAGlE,oEAAoE;AACvD,QAAA,qBAAqB,GAAG,CAAC,IAAI,CAAU,CAAA;AA8EpD;;;;GAIG;AACU,QAAA,WAAW,GAAG,CAAC,QAAQ,EAAE,cAAc,CAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './query';
2
+ export * from './response';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./query"), exports);
18
+ __exportStar(require("./response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/usergroups/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,6CAA0B"}
@@ -0,0 +1,12 @@
1
+ import { StandardSortFields, SortOrders } from '../../shared';
2
+ export declare type UsergroupEmbedField = 'meta';
3
+ export interface GetUsergroupsQuery {
4
+ page?: number;
5
+ limit?: number;
6
+ ids?: string[];
7
+ sort?: StandardSortFields;
8
+ sortOrder?: SortOrders;
9
+ embed?: Array<UsergroupEmbedField>;
10
+ /** Usergroups a given user id is a member of. */
11
+ member?: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/usergroups/get/query.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ import { IEntityMeta } from '../../shared';
2
+ import { GroupHomeLayout } from '../../users/home-layout';
3
+ import { ActionAccess, AssetAccessRule } from '../access';
4
+ import { GetUsergroupsQuery } from './query';
5
+ export interface GetUsergroupResponse {
6
+ id: string;
7
+ name: string;
8
+ /** User ids. Membership's source of truth lives here, never on the user. */
9
+ members: string[];
10
+ /**
11
+ * The group's asset rule, at most one in this release, carried as an array
12
+ * for later expansion. An empty array grants no assets, which stays valid
13
+ * for a group that exists for its home layout or an SSO mapping.
14
+ */
15
+ assetAccessRules: AssetAccessRule[];
16
+ /**
17
+ * The actions the group grants. A document without the key reads as
18
+ * `SELECTED` with an empty list.
19
+ */
20
+ actionAccess: ActionAccess;
21
+ /**
22
+ * True when the group is referenced by the org's SSO `usergroupMappings` —
23
+ * i.e. membership is SSO-managed for federated users (manual membership
24
+ * edits for `authProvider: 'sso'` users are refused; sync adds AND removes
25
+ * within the mapped set). Emitted only when true. Lets group/user admin
26
+ * surfaces mark managed groups without needing `sso:admin` to read the
27
+ * org's SSO config.
28
+ */
29
+ ssoManaged?: boolean;
30
+ /**
31
+ * The Home layout this group provisions to its members, if it has one.
32
+ * Members receive it on `GET /users/current` as a `ProvisionedHomeLayout`;
33
+ * this is the authored form, and the group document is where it lives —
34
+ * there is exactly one copy, read at response time, so an edit here reaches
35
+ * every member on their next warm.
36
+ */
37
+ homeLayout?: GroupHomeLayout;
38
+ meta?: IEntityMeta;
39
+ }
40
+ export interface GetUsergroupsResponse {
41
+ query: GetUsergroupsQuery | null;
42
+ total: number;
43
+ items: GetUsergroupResponse[];
44
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/usergroups/get/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './shared';
2
+ export * from './get';
3
+ export * from './post';
4
+ export * from './[id]';
5
+ export * from './access';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./shared"), exports);
18
+ __exportStar(require("./get"), exports);
19
+ __exportStar(require("./post"), exports);
20
+ __exportStar(require("./[id]"), exports);
21
+ __exportStar(require("./access"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/usergroups/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,2CAAwB"}
@@ -0,0 +1,2 @@
1
+ export * from './request';
2
+ export * from './response';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./request"), exports);
18
+ __exportStar(require("./response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/usergroups/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,17 @@
1
+ import { GroupHomeLayout } from '../../users/home-layout';
2
+ import { ActionAccess, AssetAccessRuleRequest } from '../access';
3
+ export interface PostUsergroupRequest {
4
+ name: string;
5
+ /** User ids. The actor's own id is rejected — nobody edits their own
6
+ * memberships (the own-role-guard rule). */
7
+ members?: string[];
8
+ /**
9
+ * The group's asset rule, at most one. Omit, or send `[]`, for a group that
10
+ * grants no assets. The server assigns a rule id when the request omits it.
11
+ */
12
+ assetAccessRules?: AssetAccessRuleRequest[];
13
+ /** The actions the group grants. Omitted, the group grants no action. */
14
+ actionAccess?: ActionAccess;
15
+ /** A Home layout to provision to this group's members. */
16
+ homeLayout?: GroupHomeLayout;
17
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/usergroups/post/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export { GetUsergroupResponse as PostUsergroupResponse } from '../get/response';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/usergroups/post/response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The three-valued level the evaluation reports for a custom field on one
3
+ * asset: `NONE` (hidden), `VIEW` or `EDIT`. Rules and grants are authored at
4
+ * `VIEW` or `EDIT` only (`ASSET_ACCESS_LEVELS` in `access.ts`); `NONE` is an
5
+ * outcome, never stored.
6
+ */
7
+ export declare const PERMISSION_GRANT_LEVELS: readonly ["NONE", "VIEW", "EDIT"];
8
+ export declare type PermissionGrantLevel = (typeof PERMISSION_GRANT_LEVELS)[number];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PERMISSION_GRANT_LEVELS = void 0;
4
+ /**
5
+ * The three-valued level the evaluation reports for a custom field on one
6
+ * asset: `NONE` (hidden), `VIEW` or `EDIT`. Rules and grants are authored at
7
+ * `VIEW` or `EDIT` only (`ASSET_ACCESS_LEVELS` in `access.ts`); `NONE` is an
8
+ * outcome, never stored.
9
+ */
10
+ exports.PERMISSION_GRANT_LEVELS = ['NONE', 'VIEW', 'EDIT'];
11
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/usergroups/shared.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACU,QAAA,uBAAuB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAU,CAAA"}
@@ -4,8 +4,6 @@ export interface BaseGetUserResponse {
4
4
  name: string;
5
5
  role: IEmbeddedEntity;
6
6
  organisation: IEmbeddedEntity;
7
- permissionLocationId: string;
8
- permissionLocationPath: string;
9
7
  homeLocationId: string;
10
8
  homeLocationPath: string;
11
9
  meta?: IEntityMeta;
@@ -1,6 +1,10 @@
1
1
  export interface UpdateUserRequest {
2
2
  name?: string;
3
3
  role?: string;
4
- permissionLocationId?: string;
5
4
  homeLocationId?: string;
5
+ /**
6
+ * Complete usergroup membership for the target (group ids) — replaced
7
+ * wholesale; [] clears every membership. Never applied to yourself.
8
+ */
9
+ usergroups?: string[];
6
10
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Which Spotto console an emailed link should open.
3
+ *
4
+ * Sent by the NEXT console (g2g-client) on the endpoints that email a link
5
+ * (`POST /users` for the invitation, `POST /users/forgot-password` for the
6
+ * reset). Absent ⇒ the legacy console for the organisation's tenant — the
7
+ * behaviour every existing caller already gets, so the legacy console sends
8
+ * nothing and is unaffected.
9
+ *
10
+ * When set, the tenant is deliberately NOT consulted: a request from the new
11
+ * console always wants the new console's branding and host, whatever tenant
12
+ * the organisation carries. The spotto/g2g split is being retired.
13
+ */
14
+ export declare type ConsoleTarget = 'next';
15
+ export declare const CONSOLE_TARGETS: ConsoleTarget[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONSOLE_TARGETS = void 0;
4
+ exports.CONSOLE_TARGETS = ['next'];
5
+ //# sourceMappingURL=console.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"console.js","sourceRoot":"","sources":["../../src/users/console.ts"],"names":[],"mappings":";;;AAea,QAAA,eAAe,GAAoB,CAAC,MAAM,CAAC,CAAA"}
@@ -2,12 +2,40 @@ import { IEntityMeta, IEmbeddedEntity } from '../shared';
2
2
  import { Preferences } from '../organisations/constants';
3
3
  import { Integrations } from '../integrations/constants';
4
4
  import { System } from '../system';
5
+ import { ProvisionedHomeLayout, StoredHomeLayout } from './home-layout';
6
+ import { ActionAccess, AssetAccessRule } from '../usergroups/access';
7
+ /**
8
+ * One of the caller's groups as the app needs it: the rule, its field access
9
+ * and the action access, so the shared rules module can run on the device.
10
+ * Membership and layouts are not repeated here.
11
+ */
12
+ export interface CurrentUserUsergroup {
13
+ id: string;
14
+ name: string;
15
+ assetAccessRules: AssetAccessRule[];
16
+ actionAccess: ActionAccess;
17
+ }
18
+ /** What the caller's role exempts them from. */
19
+ export interface UsergroupsExempt {
20
+ /** The role carries the exemption literal: asset rules do not apply. */
21
+ assets: boolean;
22
+ /** The role carries `fields:admin`: every custom field, at the asset's level. */
23
+ fields: boolean;
24
+ }
5
25
  export interface EmbeddedRole extends IEmbeddedEntity {
6
26
  permissions: string[];
7
27
  }
8
28
  export interface EmbeddedOrganisation extends IEmbeddedEntity {
9
29
  preferences: Preferences;
10
30
  integrations?: Integrations;
31
+ /**
32
+ * The organisation's IANA timezone, as `GetOrganisationResponse.timezone`,
33
+ * carried here so every signed-in device evaluates readiness rules, form
34
+ * conditions and option rules in the organisation's calendar without
35
+ * reading the organisation itself, which needs `organisations:view`.
36
+ * Absent when never set: read it as `DEFAULT_ORGANISATION_TIMEZONE`.
37
+ */
38
+ timezone?: string;
11
39
  }
12
40
  export interface CurrentUserResponse {
13
41
  id: string;
@@ -15,8 +43,6 @@ export interface CurrentUserResponse {
15
43
  name: string;
16
44
  role: EmbeddedRole;
17
45
  organisation: EmbeddedOrganisation;
18
- permissionLocationId: string;
19
- permissionLocationPath: string;
20
46
  homeLocationId: string;
21
47
  homeLocationPath: string;
22
48
  meta?: IEntityMeta;
@@ -28,14 +54,54 @@ export interface CurrentUserResponse {
28
54
  * - `undefined` — legacy native user (non-SSO org, or pre-SSO).
29
55
  */
30
56
  authProvider?: 'sso' | 'native';
57
+ /**
58
+ * Personal Home-screen layouts (the user's named widget arrangements).
59
+ * Persisted on the user doc and written via
60
+ * `POST /users/current/home-layout`. `undefined` until the user customises —
61
+ * the client then renders its built-in default layout.
62
+ *
63
+ * Typed as STORED, not as the current shape: a document written by an earlier
64
+ * client still carries the pre-v5 single-layout form until that user next
65
+ * saves, and readers have to handle it rather than assume it away.
66
+ */
67
+ homeLayout?: StoredHomeLayout;
68
+ /**
69
+ * Home layouts PROVISIONED by the usergroups this caller belongs to,
70
+ * resolved server-side — the client is never told which groups those are,
71
+ * exactly as it is never told anything else about membership (it receives
72
+ * `fieldAccess`/`actionAccess`/`usergroupsScope`, the effects, and not the
73
+ * graph that produced them).
74
+ *
75
+ * Read-only for the member, and deliberately NOT inside `homeLayout`: that
76
+ * field is written back wholesale, so anything delivered in it would be
77
+ * copied into the member's own set by their next save.
78
+ *
79
+ * Omitted entirely when the usergroups toggle is off, and when the caller's
80
+ * groups provision nothing — an empty array is never emitted.
81
+ */
82
+ groupHomeLayouts?: ProvisionedHomeLayout[];
83
+ /**
84
+ * The complete list of usable action ids, computed from the caller's
85
+ * groups: every id for an open or admin caller or a member of an All
86
+ * actions group, the union of the Selected lists otherwise. Omitted when
87
+ * the toggle is off, which the app reads as open. A user in no group gets
88
+ * an empty list.
89
+ */
90
+ actionAccess?: string[];
91
+ /**
92
+ * The caller's groups with their rules, field access and action access,
93
+ * for the app's local evaluation. Omitted when the toggle is off, which the
94
+ * app reads as open. Emitted as `[]` for a user in no group.
95
+ */
96
+ usergroups?: CurrentUserUsergroup[];
97
+ /** Omitted when the toggle is off. */
98
+ usergroupsExempt?: UsergroupsExempt;
31
99
  }
32
100
  export interface CurrentUserPublicResponse {
33
101
  id: string;
34
102
  name: string;
35
103
  role: EmbeddedRole;
36
104
  organisation: EmbeddedOrganisation;
37
- permissionLocationId: string;
38
- permissionLocationPath: string;
39
105
  homeLocationId: string;
40
106
  homeLocationPath: string;
41
107
  meta?: IEntityMeta;
@@ -10,8 +10,6 @@ export interface GetUsersQuery {
10
10
  sort?: StandardSortFields;
11
11
  sortOrder?: SortOrders;
12
12
  embed?: Array<UserEmbedField>;
13
- permissionLocationId?: string;
14
- permissionLocationPathBeginsWith?: string;
15
13
  homeLocationId?: string;
16
14
  homeLocationPathBeginsWith?: string;
17
15
  }
@@ -0,0 +1,3 @@
1
+ export * from './shared';
2
+ export * from './request';
3
+ export * from './response';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./shared"), exports);
18
+ __exportStar(require("./request"), exports);
19
+ __exportStar(require("./response"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/users/home-layout/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,4CAAyB;AACzB,6CAA0B"}
@@ -0,0 +1,5 @@
1
+ import { HomeLayout } from './shared';
2
+ /** Body for `POST /users/current/home-layout` — replaces the caller's home layout. */
3
+ export interface UpdateHomeLayoutRequest {
4
+ homeLayout: HomeLayout;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/users/home-layout/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { HomeLayout } from './shared';
2
+ /** Response for `POST /users/current/home-layout` — echoes the saved layout. */
3
+ export interface UpdateHomeLayoutResponse {
4
+ homeLayout: HomeLayout;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/users/home-layout/response.ts"],"names":[],"mappings":""}