@spotto/contract 1.0.70-alpha.25 → 1.0.70-alpha.27

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 (756) hide show
  1. package/README.md +33 -33
  2. package/dist/actions/[id]/index.d.ts +1 -1
  3. package/dist/actions/[id]/index.js +17 -17
  4. package/dist/actions/[id]/patch/index.d.ts +2 -2
  5. package/dist/actions/[id]/patch/index.js +18 -18
  6. package/dist/actions/[id]/patch/request.d.ts +16 -16
  7. package/dist/actions/[id]/patch/request.js +2 -2
  8. package/dist/actions/[id]/patch/response.d.ts +1 -1
  9. package/dist/actions/[id]/patch/response.js +2 -2
  10. package/dist/actions/get/index.d.ts +2 -2
  11. package/dist/actions/get/index.js +18 -18
  12. package/dist/actions/get/query.d.ts +14 -14
  13. package/dist/actions/get/query.js +2 -2
  14. package/dist/actions/get/response.d.ts +29 -29
  15. package/dist/actions/get/response.js +2 -2
  16. package/dist/actions/index.d.ts +4 -4
  17. package/dist/actions/index.js +20 -20
  18. package/dist/actions/post/index.d.ts +2 -2
  19. package/dist/actions/post/index.js +18 -18
  20. package/dist/actions/post/request.d.ts +15 -15
  21. package/dist/actions/post/request.js +2 -2
  22. package/dist/actions/post/response.d.ts +1 -1
  23. package/dist/actions/post/response.js +2 -2
  24. package/dist/actions/shared.d.ts +51 -51
  25. package/dist/actions/shared.js +12 -12
  26. package/dist/ai/chat/index.d.ts +2 -2
  27. package/dist/ai/chat/index.js +18 -18
  28. package/dist/ai/chat/request.d.ts +42 -27
  29. package/dist/ai/chat/request.js +2 -2
  30. package/dist/ai/chat/response.d.ts +74 -57
  31. package/dist/ai/chat/response.js +10 -10
  32. package/dist/ai/expression/index.d.ts +2 -2
  33. package/dist/ai/expression/index.js +18 -18
  34. package/dist/ai/expression/request.d.ts +29 -29
  35. package/dist/ai/expression/request.js +2 -2
  36. package/dist/ai/expression/response.d.ts +23 -23
  37. package/dist/ai/expression/response.js +2 -2
  38. package/dist/ai/index.d.ts +4 -4
  39. package/dist/ai/index.js +20 -20
  40. package/dist/ai/semantic-query/index.d.ts +2 -2
  41. package/dist/ai/semantic-query/index.js +18 -18
  42. package/dist/ai/semantic-query/request.d.ts +43 -43
  43. package/dist/ai/semantic-query/request.js +2 -2
  44. package/dist/ai/semantic-query/response.d.ts +40 -40
  45. package/dist/ai/semantic-query/response.js +2 -2
  46. package/dist/ai/shared.d.ts +22 -22
  47. package/dist/ai/shared.js +10 -10
  48. package/dist/assets/[id]/get.d.ts +86 -85
  49. package/dist/assets/[id]/get.js +2 -2
  50. package/dist/assets/[id]/index.d.ts +4 -4
  51. package/dist/assets/[id]/index.js +20 -20
  52. package/dist/assets/[id]/location.d.ts +6 -6
  53. package/dist/assets/[id]/location.js +2 -2
  54. package/dist/assets/[id]/patch/index.d.ts +2 -2
  55. package/dist/assets/[id]/patch/index.js +18 -18
  56. package/dist/assets/[id]/patch/request.d.ts +16 -16
  57. package/dist/assets/[id]/patch/request.js +2 -2
  58. package/dist/assets/[id]/patch/response.d.ts +7 -7
  59. package/dist/assets/[id]/patch/response.js +2 -2
  60. package/dist/assets/[id]/readers.d.ts +9 -9
  61. package/dist/assets/[id]/readers.js +2 -2
  62. package/dist/assets/count/index.d.ts +2 -2
  63. package/dist/assets/count/index.js +18 -18
  64. package/dist/assets/count/query.d.ts +16 -16
  65. package/dist/assets/count/query.js +2 -2
  66. package/dist/assets/count/response.d.ts +15 -15
  67. package/dist/assets/count/response.js +2 -2
  68. package/dist/assets/count-filtered/index.d.ts +1 -1
  69. package/dist/assets/count-filtered/index.js +17 -17
  70. package/dist/assets/count-filtered/response.d.ts +5 -5
  71. package/dist/assets/count-filtered/response.js +2 -2
  72. package/dist/assets/download/index.d.ts +2 -2
  73. package/dist/assets/download/index.js +18 -18
  74. package/dist/assets/download/query.d.ts +17 -17
  75. package/dist/assets/download/query.js +2 -2
  76. package/dist/assets/download/response.d.ts +3 -3
  77. package/dist/assets/download/response.js +2 -2
  78. package/dist/assets/errors.d.ts +3 -3
  79. package/dist/assets/errors.js +2 -2
  80. package/dist/assets/get/index.d.ts +2 -2
  81. package/dist/assets/get/index.js +18 -18
  82. package/dist/assets/get/query.d.ts +83 -83
  83. package/dist/assets/get/query.js +2 -2
  84. package/dist/assets/get/response.d.ts +6 -6
  85. package/dist/assets/get/response.js +2 -2
  86. package/dist/assets/index.d.ts +11 -11
  87. package/dist/assets/index.js +27 -27
  88. package/dist/assets/location/index.d.ts +2 -2
  89. package/dist/assets/location/index.js +18 -18
  90. package/dist/assets/location/request.d.ts +23 -23
  91. package/dist/assets/location/request.js +2 -2
  92. package/dist/assets/location/response.d.ts +2 -2
  93. package/dist/assets/location/response.js +2 -2
  94. package/dist/assets/post/index.d.ts +2 -2
  95. package/dist/assets/post/index.js +18 -18
  96. package/dist/assets/post/request.d.ts +15 -15
  97. package/dist/assets/post/request.js +9 -9
  98. package/dist/assets/post/response.d.ts +11 -11
  99. package/dist/assets/post/response.js +2 -2
  100. package/dist/assets/suggestions/index.d.ts +2 -2
  101. package/dist/assets/suggestions/index.js +18 -18
  102. package/dist/assets/suggestions/query.d.ts +5 -5
  103. package/dist/assets/suggestions/query.js +2 -2
  104. package/dist/assets/suggestions/response.d.ts +15 -15
  105. package/dist/assets/suggestions/response.js +2 -2
  106. package/dist/assets/summary/index.d.ts +2 -2
  107. package/dist/assets/summary/index.js +18 -18
  108. package/dist/assets/summary/response.d.ts +7 -7
  109. package/dist/assets/summary/response.js +2 -2
  110. package/dist/assets/summary/summary.d.ts +9 -9
  111. package/dist/assets/summary/summary.js +2 -2
  112. package/dist/assets/upload/index.d.ts +2 -2
  113. package/dist/assets/upload/index.js +18 -18
  114. package/dist/assets/upload/request.d.ts +3 -3
  115. package/dist/assets/upload/request.js +2 -2
  116. package/dist/assets/upload/response.d.ts +7 -7
  117. package/dist/assets/upload/response.js +2 -2
  118. package/dist/errors.d.ts +4 -4
  119. package/dist/errors.js +2 -2
  120. package/dist/events/constants.d.ts +24 -24
  121. package/dist/events/constants.js +53 -53
  122. package/dist/events/count/index.d.ts +2 -2
  123. package/dist/events/count/index.js +18 -18
  124. package/dist/events/count/query.d.ts +5 -5
  125. package/dist/events/count/query.js +2 -2
  126. package/dist/events/count/response.d.ts +18 -18
  127. package/dist/events/count/response.js +2 -2
  128. package/dist/events/download/index.d.ts +2 -2
  129. package/dist/events/download/index.js +18 -18
  130. package/dist/events/download/query.d.ts +9 -9
  131. package/dist/events/download/query.js +2 -2
  132. package/dist/events/download/response.d.ts +3 -3
  133. package/dist/events/download/response.js +2 -2
  134. package/dist/events/get/index.d.ts +2 -2
  135. package/dist/events/get/index.js +18 -18
  136. package/dist/events/get/query.d.ts +40 -40
  137. package/dist/events/get/query.js +2 -2
  138. package/dist/events/get/response.d.ts +160 -160
  139. package/dist/events/get/response.js +2 -2
  140. package/dist/events/index.d.ts +5 -5
  141. package/dist/events/index.js +21 -21
  142. package/dist/events/post.d.ts +9 -9
  143. package/dist/events/post.js +2 -2
  144. package/dist/fields/[id]/get.d.ts +24 -24
  145. package/dist/fields/[id]/get.js +2 -2
  146. package/dist/fields/[id]/index.d.ts +2 -2
  147. package/dist/fields/[id]/index.js +18 -18
  148. package/dist/fields/[id]/patch/index.d.ts +2 -2
  149. package/dist/fields/[id]/patch/index.js +18 -18
  150. package/dist/fields/[id]/patch/request.d.ts +22 -22
  151. package/dist/fields/[id]/patch/request.js +2 -2
  152. package/dist/fields/[id]/patch/response.d.ts +1 -1
  153. package/dist/fields/[id]/patch/response.js +2 -2
  154. package/dist/fields/constants.d.ts +23 -23
  155. package/dist/fields/constants.js +41 -41
  156. package/dist/fields/get/index.d.ts +2 -2
  157. package/dist/fields/get/index.js +18 -18
  158. package/dist/fields/get/query.d.ts +9 -9
  159. package/dist/fields/get/query.js +2 -2
  160. package/dist/fields/get/response.d.ts +5 -5
  161. package/dist/fields/get/response.js +2 -2
  162. package/dist/fields/index.d.ts +5 -5
  163. package/dist/fields/index.js +21 -21
  164. package/dist/fields/post/index.d.ts +2 -2
  165. package/dist/fields/post/index.js +18 -18
  166. package/dist/fields/post/request.d.ts +18 -18
  167. package/dist/fields/post/request.js +8 -8
  168. package/dist/fields/post/response.d.ts +5 -5
  169. package/dist/fields/post/response.js +2 -2
  170. package/dist/fields/suggestions/index.d.ts +2 -2
  171. package/dist/fields/suggestions/index.js +18 -18
  172. package/dist/fields/suggestions/query.d.ts +5 -5
  173. package/dist/fields/suggestions/query.js +2 -2
  174. package/dist/fields/suggestions/response.d.ts +15 -15
  175. package/dist/fields/suggestions/response.js +2 -2
  176. package/dist/forms/[id]/index.d.ts +1 -1
  177. package/dist/forms/[id]/index.js +17 -17
  178. package/dist/forms/[id]/patch/index.d.ts +2 -2
  179. package/dist/forms/[id]/patch/index.js +18 -18
  180. package/dist/forms/[id]/patch/request.d.ts +14 -14
  181. package/dist/forms/[id]/patch/request.js +2 -2
  182. package/dist/forms/[id]/patch/response.d.ts +1 -1
  183. package/dist/forms/[id]/patch/response.js +2 -2
  184. package/dist/forms/constants.d.ts +19 -19
  185. package/dist/forms/constants.js +32 -32
  186. package/dist/forms/get/index.d.ts +2 -2
  187. package/dist/forms/get/index.js +18 -18
  188. package/dist/forms/get/query.d.ts +18 -18
  189. package/dist/forms/get/query.js +2 -2
  190. package/dist/forms/get/response.d.ts +23 -23
  191. package/dist/forms/get/response.js +2 -2
  192. package/dist/forms/index.d.ts +6 -6
  193. package/dist/forms/index.js +22 -22
  194. package/dist/forms/post/index.d.ts +2 -2
  195. package/dist/forms/post/index.js +18 -18
  196. package/dist/forms/post/request.d.ts +9 -9
  197. package/dist/forms/post/request.js +2 -2
  198. package/dist/forms/post/response.d.ts +1 -1
  199. package/dist/forms/post/response.js +2 -2
  200. package/dist/forms/shared.d.ts +127 -127
  201. package/dist/forms/shared.js +2 -2
  202. package/dist/forms/versions/index.d.ts +2 -2
  203. package/dist/forms/versions/index.js +18 -18
  204. package/dist/forms/versions/path.d.ts +8 -8
  205. package/dist/forms/versions/path.js +2 -2
  206. package/dist/forms/versions/response.d.ts +1 -1
  207. package/dist/forms/versions/response.js +2 -2
  208. package/dist/index.d.ts +29 -29
  209. package/dist/index.js +45 -45
  210. package/dist/integrations/constants.d.ts +43 -43
  211. package/dist/integrations/constants.js +7 -7
  212. package/dist/integrations/index.d.ts +3 -3
  213. package/dist/integrations/index.js +19 -19
  214. package/dist/integrations/mqtt/get.d.ts +1 -1
  215. package/dist/integrations/mqtt/get.js +2 -2
  216. package/dist/integrations/mqtt/index.d.ts +2 -2
  217. package/dist/integrations/mqtt/index.js +18 -18
  218. package/dist/integrations/mqtt/patch/index.d.ts +2 -2
  219. package/dist/integrations/mqtt/patch/index.js +18 -18
  220. package/dist/integrations/mqtt/patch/request.d.ts +3 -3
  221. package/dist/integrations/mqtt/patch/request.js +2 -2
  222. package/dist/integrations/mqtt/patch/response.d.ts +1 -1
  223. package/dist/integrations/mqtt/patch/response.js +2 -2
  224. package/dist/integrations/oneblink/index.d.ts +2 -2
  225. package/dist/integrations/oneblink/index.js +18 -18
  226. package/dist/integrations/oneblink/patch/index.d.ts +1 -1
  227. package/dist/integrations/oneblink/patch/index.js +17 -17
  228. package/dist/integrations/oneblink/patch/request.d.ts +8 -8
  229. package/dist/integrations/oneblink/patch/request.js +2 -2
  230. package/dist/integrations/oneblink/token.d.ts +6 -6
  231. package/dist/integrations/oneblink/token.js +2 -2
  232. package/dist/labels/[id]/get.d.ts +6 -6
  233. package/dist/labels/[id]/get.js +2 -2
  234. package/dist/labels/[id]/index.d.ts +2 -2
  235. package/dist/labels/[id]/index.js +18 -18
  236. package/dist/labels/[id]/patch/index.d.ts +2 -2
  237. package/dist/labels/[id]/patch/index.js +18 -18
  238. package/dist/labels/[id]/patch/request.d.ts +3 -3
  239. package/dist/labels/[id]/patch/request.js +2 -2
  240. package/dist/labels/[id]/patch/response.d.ts +1 -1
  241. package/dist/labels/[id]/patch/response.js +2 -2
  242. package/dist/labels/constants.d.ts +4 -4
  243. package/dist/labels/constants.js +2 -2
  244. package/dist/labels/get/index.d.ts +2 -2
  245. package/dist/labels/get/index.js +18 -18
  246. package/dist/labels/get/query.d.ts +11 -11
  247. package/dist/labels/get/query.js +2 -2
  248. package/dist/labels/get/response.d.ts +7 -7
  249. package/dist/labels/get/response.js +2 -2
  250. package/dist/labels/index.d.ts +4 -4
  251. package/dist/labels/index.js +20 -20
  252. package/dist/labels/post/index.d.ts +2 -2
  253. package/dist/labels/post/index.js +18 -18
  254. package/dist/labels/post/request.d.ts +4 -4
  255. package/dist/labels/post/request.js +2 -2
  256. package/dist/labels/post/response.d.ts +5 -5
  257. package/dist/labels/post/response.js +2 -2
  258. package/dist/locations/[id]/get.d.ts +39 -39
  259. package/dist/locations/[id]/get.js +2 -2
  260. package/dist/locations/[id]/index.d.ts +4 -4
  261. package/dist/locations/[id]/index.js +20 -20
  262. package/dist/locations/[id]/inventory.d.ts +9 -9
  263. package/dist/locations/[id]/inventory.js +2 -2
  264. package/dist/locations/[id]/patch/index.d.ts +2 -2
  265. package/dist/locations/[id]/patch/index.js +18 -18
  266. package/dist/locations/[id]/patch/request.d.ts +12 -12
  267. package/dist/locations/[id]/patch/request.js +2 -2
  268. package/dist/locations/[id]/patch/response.d.ts +7 -7
  269. package/dist/locations/[id]/patch/response.js +2 -2
  270. package/dist/locations/[id]/status.d.ts +4 -4
  271. package/dist/locations/[id]/status.js +2 -2
  272. package/dist/locations/constants.d.ts +4 -4
  273. package/dist/locations/constants.js +14 -14
  274. package/dist/locations/count/index.d.ts +2 -2
  275. package/dist/locations/count/index.js +18 -18
  276. package/dist/locations/count/query.d.ts +1 -1
  277. package/dist/locations/count/query.js +2 -2
  278. package/dist/locations/count/response.d.ts +6 -6
  279. package/dist/locations/count/response.js +2 -2
  280. package/dist/locations/download/index.d.ts +2 -2
  281. package/dist/locations/download/index.js +18 -18
  282. package/dist/locations/download/query.d.ts +10 -10
  283. package/dist/locations/download/query.js +2 -2
  284. package/dist/locations/download/response.d.ts +3 -3
  285. package/dist/locations/download/response.js +2 -2
  286. package/dist/locations/errors.d.ts +3 -3
  287. package/dist/locations/errors.js +2 -2
  288. package/dist/locations/get/index.d.ts +2 -2
  289. package/dist/locations/get/index.js +18 -18
  290. package/dist/locations/get/query.d.ts +46 -46
  291. package/dist/locations/get/query.js +2 -2
  292. package/dist/locations/get/response.d.ts +7 -7
  293. package/dist/locations/get/response.js +2 -2
  294. package/dist/locations/index.d.ts +8 -8
  295. package/dist/locations/index.js +24 -24
  296. package/dist/locations/post/index.d.ts +2 -2
  297. package/dist/locations/post/index.js +18 -18
  298. package/dist/locations/post/request.d.ts +13 -13
  299. package/dist/locations/post/request.js +2 -2
  300. package/dist/locations/post/response.d.ts +11 -11
  301. package/dist/locations/post/response.js +2 -2
  302. package/dist/locations/suggestions/index.d.ts +2 -2
  303. package/dist/locations/suggestions/index.js +18 -18
  304. package/dist/locations/suggestions/query.d.ts +7 -7
  305. package/dist/locations/suggestions/query.js +2 -2
  306. package/dist/locations/suggestions/response.d.ts +15 -15
  307. package/dist/locations/suggestions/response.js +2 -2
  308. package/dist/manifests/[id]/get.d.ts +35 -35
  309. package/dist/manifests/[id]/get.js +38 -38
  310. package/dist/manifests/[id]/index.d.ts +2 -2
  311. package/dist/manifests/[id]/index.js +18 -18
  312. package/dist/manifests/[id]/patch/index.d.ts +2 -2
  313. package/dist/manifests/[id]/patch/index.js +18 -18
  314. package/dist/manifests/[id]/patch/request.d.ts +8 -8
  315. package/dist/manifests/[id]/patch/request.js +45 -45
  316. package/dist/manifests/[id]/patch/response.d.ts +1 -1
  317. package/dist/manifests/[id]/patch/response.js +2 -2
  318. package/dist/manifests/get/index.d.ts +2 -2
  319. package/dist/manifests/get/index.js +18 -18
  320. package/dist/manifests/get/query.d.ts +11 -11
  321. package/dist/manifests/get/query.js +2 -2
  322. package/dist/manifests/get/response.d.ts +7 -7
  323. package/dist/manifests/get/response.js +2 -2
  324. package/dist/manifests/index.d.ts +4 -4
  325. package/dist/manifests/index.js +20 -20
  326. package/dist/manifests/post/index.d.ts +2 -2
  327. package/dist/manifests/post/index.js +18 -18
  328. package/dist/manifests/post/request.d.ts +16 -16
  329. package/dist/manifests/post/request.js +51 -51
  330. package/dist/manifests/post/response.d.ts +5 -5
  331. package/dist/manifests/post/response.js +2 -2
  332. package/dist/manifests/suggestions/index.d.ts +2 -2
  333. package/dist/manifests/suggestions/index.js +18 -18
  334. package/dist/manifests/suggestions/query.d.ts +5 -5
  335. package/dist/manifests/suggestions/query.js +2 -2
  336. package/dist/manifests/suggestions/response.d.ts +15 -15
  337. package/dist/manifests/suggestions/response.js +2 -2
  338. package/dist/networks/constants.d.ts +6 -6
  339. package/dist/networks/constants.js +2 -2
  340. package/dist/networks/index.d.ts +1 -1
  341. package/dist/networks/index.js +17 -17
  342. package/dist/organisations/[id]/delete/index.d.ts +2 -2
  343. package/dist/organisations/[id]/delete/index.js +18 -18
  344. package/dist/organisations/[id]/delete/query.d.ts +3 -3
  345. package/dist/organisations/[id]/delete/query.js +2 -2
  346. package/dist/organisations/[id]/delete/response.d.ts +13 -13
  347. package/dist/organisations/[id]/delete/response.js +2 -2
  348. package/dist/organisations/[id]/get.d.ts +29 -29
  349. package/dist/organisations/[id]/get.js +2 -2
  350. package/dist/organisations/[id]/index.d.ts +4 -4
  351. package/dist/organisations/[id]/index.js +20 -20
  352. package/dist/organisations/[id]/patch/index.d.ts +2 -2
  353. package/dist/organisations/[id]/patch/index.js +18 -18
  354. package/dist/organisations/[id]/patch/request.d.ts +11 -11
  355. package/dist/organisations/[id]/patch/request.js +2 -2
  356. package/dist/organisations/[id]/patch/response.d.ts +1 -1
  357. package/dist/organisations/[id]/patch/response.js +2 -2
  358. package/dist/organisations/[id]/wifi/index.d.ts +2 -2
  359. package/dist/organisations/[id]/wifi/index.js +18 -18
  360. package/dist/organisations/[id]/wifi/query.d.ts +3 -3
  361. package/dist/organisations/[id]/wifi/query.js +2 -2
  362. package/dist/organisations/[id]/wifi/response.d.ts +4 -4
  363. package/dist/organisations/[id]/wifi/response.js +2 -2
  364. package/dist/organisations/constants.d.ts +46 -46
  365. package/dist/organisations/constants.js +2 -2
  366. package/dist/organisations/get/index.d.ts +2 -2
  367. package/dist/organisations/get/index.js +18 -18
  368. package/dist/organisations/get/query.d.ts +11 -11
  369. package/dist/organisations/get/query.js +2 -2
  370. package/dist/organisations/get/response.d.ts +7 -7
  371. package/dist/organisations/get/response.js +2 -2
  372. package/dist/organisations/index.d.ts +5 -5
  373. package/dist/organisations/index.js +21 -21
  374. package/dist/organisations/post/index.d.ts +2 -2
  375. package/dist/organisations/post/index.js +18 -18
  376. package/dist/organisations/post/request.d.ts +6 -6
  377. package/dist/organisations/post/request.js +2 -2
  378. package/dist/organisations/post/response.d.ts +1 -1
  379. package/dist/organisations/post/response.js +2 -2
  380. package/dist/organisations/sso/constants.d.ts +63 -63
  381. package/dist/organisations/sso/constants.js +65 -65
  382. package/dist/organisations/sso/index.d.ts +2 -2
  383. package/dist/organisations/sso/index.js +18 -18
  384. package/dist/organisations/sso/types.d.ts +162 -162
  385. package/dist/organisations/sso/types.js +12 -12
  386. package/dist/readers/[id]/get.d.ts +41 -41
  387. package/dist/readers/[id]/get.js +2 -2
  388. package/dist/readers/[id]/index.d.ts +4 -4
  389. package/dist/readers/[id]/index.js +20 -20
  390. package/dist/readers/[id]/inventory/index.d.ts +1 -1
  391. package/dist/readers/[id]/inventory/index.js +17 -17
  392. package/dist/readers/[id]/inventory/response.d.ts +5 -5
  393. package/dist/readers/[id]/inventory/response.js +2 -2
  394. package/dist/readers/[id]/patch/index.d.ts +2 -2
  395. package/dist/readers/[id]/patch/index.js +18 -18
  396. package/dist/readers/[id]/patch/request.d.ts +13 -13
  397. package/dist/readers/[id]/patch/request.js +2 -2
  398. package/dist/readers/[id]/patch/response.d.ts +1 -1
  399. package/dist/readers/[id]/patch/response.js +2 -2
  400. package/dist/readers/[id]/status.d.ts +4 -4
  401. package/dist/readers/[id]/status.js +2 -2
  402. package/dist/readers/constants/deviceTypes.d.ts +43 -43
  403. package/dist/readers/constants/deviceTypes.js +198 -198
  404. package/dist/readers/constants/index.d.ts +2 -2
  405. package/dist/readers/constants/index.js +18 -18
  406. package/dist/readers/constants/types.d.ts +10 -10
  407. package/dist/readers/constants/types.js +24 -24
  408. package/dist/readers/count/index.d.ts +2 -2
  409. package/dist/readers/count/index.js +18 -18
  410. package/dist/readers/count/query.d.ts +1 -1
  411. package/dist/readers/count/query.js +2 -2
  412. package/dist/readers/count/response.d.ts +5 -5
  413. package/dist/readers/count/response.js +2 -2
  414. package/dist/readers/download/index.d.ts +2 -2
  415. package/dist/readers/download/index.js +18 -18
  416. package/dist/readers/download/query.d.ts +10 -10
  417. package/dist/readers/download/query.js +2 -2
  418. package/dist/readers/download/response.d.ts +3 -3
  419. package/dist/readers/download/response.js +2 -2
  420. package/dist/readers/get/index.d.ts +2 -2
  421. package/dist/readers/get/index.js +18 -18
  422. package/dist/readers/get/query.d.ts +36 -36
  423. package/dist/readers/get/query.js +2 -2
  424. package/dist/readers/get/response.d.ts +7 -7
  425. package/dist/readers/get/response.js +2 -2
  426. package/dist/readers/index.d.ts +8 -8
  427. package/dist/readers/index.js +24 -24
  428. package/dist/readers/post/index.d.ts +2 -2
  429. package/dist/readers/post/index.js +18 -18
  430. package/dist/readers/post/request.d.ts +14 -14
  431. package/dist/readers/post/request.js +2 -2
  432. package/dist/readers/post/response.d.ts +5 -5
  433. package/dist/readers/post/response.js +2 -2
  434. package/dist/readers/suggestions/index.d.ts +2 -2
  435. package/dist/readers/suggestions/index.js +18 -18
  436. package/dist/readers/suggestions/query.d.ts +5 -5
  437. package/dist/readers/suggestions/query.js +2 -2
  438. package/dist/readers/suggestions/response.d.ts +15 -15
  439. package/dist/readers/suggestions/response.js +2 -2
  440. package/dist/readers/user/index.d.ts +2 -2
  441. package/dist/readers/user/index.js +18 -18
  442. package/dist/readers/user/request.d.ts +3 -3
  443. package/dist/readers/user/request.js +2 -2
  444. package/dist/readers/user/response.d.ts +8 -8
  445. package/dist/readers/user/response.js +2 -2
  446. package/dist/reports.d.ts +38 -38
  447. package/dist/reports.js +2 -2
  448. package/dist/roles/[id]/get.d.ts +6 -6
  449. package/dist/roles/[id]/get.js +2 -2
  450. package/dist/roles/[id]/index.d.ts +1 -1
  451. package/dist/roles/[id]/index.js +17 -17
  452. package/dist/roles/get/index.d.ts +2 -2
  453. package/dist/roles/get/index.js +18 -18
  454. package/dist/roles/get/query.d.ts +7 -7
  455. package/dist/roles/get/query.js +2 -2
  456. package/dist/roles/get/response.d.ts +7 -7
  457. package/dist/roles/get/response.js +2 -2
  458. package/dist/roles/index.d.ts +3 -3
  459. package/dist/roles/index.js +19 -19
  460. package/dist/roles/post/index.d.ts +2 -2
  461. package/dist/roles/post/index.js +18 -18
  462. package/dist/roles/post/request.d.ts +6 -6
  463. package/dist/roles/post/request.js +2 -2
  464. package/dist/roles/post/response.d.ts +1 -1
  465. package/dist/roles/post/response.js +2 -2
  466. package/dist/semantic-queries/[id]/index.d.ts +1 -1
  467. package/dist/semantic-queries/[id]/index.js +17 -17
  468. package/dist/semantic-queries/[id]/patch/index.d.ts +2 -2
  469. package/dist/semantic-queries/[id]/patch/index.js +18 -18
  470. package/dist/semantic-queries/[id]/patch/request.d.ts +20 -20
  471. package/dist/semantic-queries/[id]/patch/request.js +2 -2
  472. package/dist/semantic-queries/[id]/patch/response.d.ts +1 -1
  473. package/dist/semantic-queries/[id]/patch/response.js +2 -2
  474. package/dist/semantic-queries/get/index.d.ts +2 -2
  475. package/dist/semantic-queries/get/index.js +18 -18
  476. package/dist/semantic-queries/get/query.d.ts +18 -18
  477. package/dist/semantic-queries/get/query.js +2 -2
  478. package/dist/semantic-queries/get/response.d.ts +40 -40
  479. package/dist/semantic-queries/get/response.js +2 -2
  480. package/dist/semantic-queries/index.d.ts +4 -4
  481. package/dist/semantic-queries/index.js +20 -20
  482. package/dist/semantic-queries/post/index.d.ts +2 -2
  483. package/dist/semantic-queries/post/index.js +18 -18
  484. package/dist/semantic-queries/post/request.d.ts +56 -56
  485. package/dist/semantic-queries/post/request.js +2 -2
  486. package/dist/semantic-queries/post/response.d.ts +1 -1
  487. package/dist/semantic-queries/post/response.js +2 -2
  488. package/dist/semantic-queries/shared.d.ts +853 -823
  489. package/dist/semantic-queries/shared.js +317 -317
  490. package/dist/semantic-queries/shared.js.map +1 -1
  491. package/dist/shared/attachments.d.ts +29 -29
  492. package/dist/shared/attachments.js +10 -10
  493. package/dist/shared/body.d.ts +6 -6
  494. package/dist/shared/body.js +2 -2
  495. package/dist/shared/delete.d.ts +3 -3
  496. package/dist/shared/delete.js +2 -2
  497. package/dist/shared/embed.d.ts +22 -22
  498. package/dist/shared/embed.js +2 -2
  499. package/dist/shared/errors.d.ts +3 -3
  500. package/dist/shared/errors.js +2 -2
  501. package/dist/shared/headers.d.ts +3 -3
  502. package/dist/shared/headers.js +2 -2
  503. package/dist/shared/index.d.ts +13 -13
  504. package/dist/shared/index.js +29 -29
  505. package/dist/shared/path.d.ts +3 -3
  506. package/dist/shared/path.js +2 -2
  507. package/dist/shared/query.d.ts +12 -12
  508. package/dist/shared/query.js +2 -2
  509. package/dist/shared/readiness.d.ts +81 -81
  510. package/dist/shared/readiness.js +10 -10
  511. package/dist/shared/relative-date.d.ts +17 -17
  512. package/dist/shared/relative-date.js +11 -11
  513. package/dist/shared/sort.d.ts +12 -12
  514. package/dist/shared/sort.js +13 -13
  515. package/dist/shared/timestamp.d.ts +2 -2
  516. package/dist/shared/timestamp.js +4 -4
  517. package/dist/shared/timezone.d.ts +4 -4
  518. package/dist/shared/timezone.js +357 -357
  519. package/dist/snapshots/[id]/get.d.ts +253 -220
  520. package/dist/snapshots/[id]/get.js +34 -34
  521. package/dist/snapshots/[id]/get.js.map +1 -1
  522. package/dist/snapshots/[id]/index.d.ts +1 -1
  523. package/dist/snapshots/[id]/index.js +17 -17
  524. package/dist/snapshots/get/index.d.ts +2 -2
  525. package/dist/snapshots/get/index.js +18 -18
  526. package/dist/snapshots/get/query.d.ts +64 -64
  527. package/dist/snapshots/get/query.js +26 -26
  528. package/dist/snapshots/get/response.d.ts +7 -7
  529. package/dist/snapshots/get/response.js +2 -2
  530. package/dist/snapshots/index.d.ts +3 -3
  531. package/dist/snapshots/index.js +19 -19
  532. package/dist/snapshots/post/index.d.ts +2 -2
  533. package/dist/snapshots/post/index.js +18 -18
  534. package/dist/snapshots/post/request.d.ts +54 -54
  535. package/dist/snapshots/post/request.js +239 -239
  536. package/dist/snapshots/post/response.d.ts +5 -5
  537. package/dist/snapshots/post/response.js +2 -2
  538. package/dist/sso/discover/index.d.ts +2 -2
  539. package/dist/sso/discover/index.js +18 -18
  540. package/dist/sso/discover/request.d.ts +9 -9
  541. package/dist/sso/discover/request.js +2 -2
  542. package/dist/sso/discover/response.d.ts +17 -17
  543. package/dist/sso/discover/response.js +2 -2
  544. package/dist/sso/get/index.d.ts +1 -1
  545. package/dist/sso/get/index.js +17 -17
  546. package/dist/sso/get/response.d.ts +22 -22
  547. package/dist/sso/get/response.js +2 -2
  548. package/dist/sso/idp-setup.d.ts +32 -32
  549. package/dist/sso/idp-setup.js +2 -2
  550. package/dist/sso/index.d.ts +7 -7
  551. package/dist/sso/index.js +23 -23
  552. package/dist/sso/offboard/index.d.ts +1 -1
  553. package/dist/sso/offboard/index.js +17 -17
  554. package/dist/sso/offboard/response.d.ts +9 -9
  555. package/dist/sso/offboard/response.js +2 -2
  556. package/dist/sso/onboard/index.d.ts +2 -2
  557. package/dist/sso/onboard/index.js +18 -18
  558. package/dist/sso/onboard/request.d.ts +70 -70
  559. package/dist/sso/onboard/request.js +2 -2
  560. package/dist/sso/onboard/response.d.ts +25 -25
  561. package/dist/sso/onboard/response.js +2 -2
  562. package/dist/sso/revert/index.d.ts +1 -1
  563. package/dist/sso/revert/index.js +17 -17
  564. package/dist/sso/revert/response.d.ts +33 -33
  565. package/dist/sso/revert/response.js +2 -2
  566. package/dist/sso/sso-mappings/index.d.ts +2 -2
  567. package/dist/sso/sso-mappings/index.js +18 -18
  568. package/dist/sso/sso-mappings/request.d.ts +19 -19
  569. package/dist/sso/sso-mappings/request.js +2 -2
  570. package/dist/sso/sso-mappings/response.d.ts +9 -9
  571. package/dist/sso/sso-mappings/response.js +2 -2
  572. package/dist/submissions/[id]/index.d.ts +1 -1
  573. package/dist/submissions/[id]/index.js +17 -17
  574. package/dist/submissions/[id]/void/post.d.ts +6 -6
  575. package/dist/submissions/[id]/void/post.js +2 -2
  576. package/dist/submissions/constants.d.ts +14 -14
  577. package/dist/submissions/constants.js +20 -20
  578. package/dist/submissions/get/index.d.ts +2 -2
  579. package/dist/submissions/get/index.js +18 -18
  580. package/dist/submissions/get/query.d.ts +14 -14
  581. package/dist/submissions/get/query.js +2 -2
  582. package/dist/submissions/get/response.d.ts +6 -6
  583. package/dist/submissions/get/response.js +2 -2
  584. package/dist/submissions/index.d.ts +6 -6
  585. package/dist/submissions/index.js +22 -22
  586. package/dist/submissions/post/index.d.ts +2 -2
  587. package/dist/submissions/post/index.js +18 -18
  588. package/dist/submissions/post/request.d.ts +17 -17
  589. package/dist/submissions/post/request.js +2 -2
  590. package/dist/submissions/post/response.d.ts +22 -22
  591. package/dist/submissions/post/response.js +2 -2
  592. package/dist/submissions/shared.d.ts +133 -133
  593. package/dist/submissions/shared.js +2 -2
  594. package/dist/submissions/uploads/[fileId]/get.d.ts +11 -11
  595. package/dist/submissions/uploads/[fileId]/get.js +2 -2
  596. package/dist/submissions/uploads/[fileId]/index.d.ts +1 -1
  597. package/dist/submissions/uploads/[fileId]/index.js +17 -17
  598. package/dist/submissions/uploads/index.d.ts +2 -2
  599. package/dist/submissions/uploads/index.js +18 -18
  600. package/dist/submissions/uploads/post/index.d.ts +2 -2
  601. package/dist/submissions/uploads/post/index.js +18 -18
  602. package/dist/submissions/uploads/post/request.d.ts +9 -9
  603. package/dist/submissions/uploads/post/request.js +2 -2
  604. package/dist/submissions/uploads/post/response.d.ts +18 -18
  605. package/dist/submissions/uploads/post/response.js +2 -2
  606. package/dist/system/index.d.ts +5 -5
  607. package/dist/system/index.js +2 -2
  608. package/dist/tags/constants.d.ts +9 -9
  609. package/dist/tags/constants.js +2 -2
  610. package/dist/tags/errors.d.ts +19 -19
  611. package/dist/tags/errors.js +2 -2
  612. package/dist/tags/get/index.d.ts +2 -2
  613. package/dist/tags/get/index.js +18 -18
  614. package/dist/tags/get/query.d.ts +3 -3
  615. package/dist/tags/get/query.js +2 -2
  616. package/dist/tags/get/response.d.ts +7 -7
  617. package/dist/tags/get/response.js +2 -2
  618. package/dist/tags/index.d.ts +3 -3
  619. package/dist/tags/index.js +19 -19
  620. package/dist/telemetry.d.ts +10 -10
  621. package/dist/telemetry.js +2 -2
  622. package/dist/types/[id]/get.d.ts +54 -54
  623. package/dist/types/[id]/get.js +2 -2
  624. package/dist/types/[id]/index.d.ts +2 -2
  625. package/dist/types/[id]/index.js +18 -18
  626. package/dist/types/[id]/patch/index.d.ts +2 -2
  627. package/dist/types/[id]/patch/index.js +18 -18
  628. package/dist/types/[id]/patch/request.d.ts +27 -27
  629. package/dist/types/[id]/patch/request.js +2 -2
  630. package/dist/types/[id]/patch/response.d.ts +1 -1
  631. package/dist/types/[id]/patch/response.js +2 -2
  632. package/dist/types/get/index.d.ts +2 -2
  633. package/dist/types/get/index.js +18 -18
  634. package/dist/types/get/query.d.ts +10 -10
  635. package/dist/types/get/query.js +2 -2
  636. package/dist/types/get/response.d.ts +7 -7
  637. package/dist/types/get/response.js +2 -2
  638. package/dist/types/hierarchy/index.d.ts +1 -1
  639. package/dist/types/hierarchy/index.js +17 -17
  640. package/dist/types/hierarchy/response.d.ts +8 -8
  641. package/dist/types/hierarchy/response.js +27 -27
  642. package/dist/types/index.d.ts +5 -5
  643. package/dist/types/index.js +21 -21
  644. package/dist/types/post/index.d.ts +2 -2
  645. package/dist/types/post/index.js +18 -18
  646. package/dist/types/post/request.d.ts +98 -98
  647. package/dist/types/post/request.js +24 -24
  648. package/dist/types/post/response.d.ts +5 -5
  649. package/dist/types/post/response.js +2 -2
  650. package/dist/types/suggestions/index.d.ts +2 -2
  651. package/dist/types/suggestions/index.js +18 -18
  652. package/dist/types/suggestions/query.d.ts +5 -5
  653. package/dist/types/suggestions/query.js +2 -2
  654. package/dist/types/suggestions/response.d.ts +15 -15
  655. package/dist/types/suggestions/response.js +2 -2
  656. package/dist/usergroups/[id]/index.d.ts +1 -1
  657. package/dist/usergroups/[id]/index.js +17 -17
  658. package/dist/usergroups/[id]/patch/index.d.ts +2 -2
  659. package/dist/usergroups/[id]/patch/index.js +18 -18
  660. package/dist/usergroups/[id]/patch/request.d.ts +12 -12
  661. package/dist/usergroups/[id]/patch/request.js +2 -2
  662. package/dist/usergroups/[id]/patch/response.d.ts +1 -1
  663. package/dist/usergroups/[id]/patch/response.js +2 -2
  664. package/dist/usergroups/get/index.d.ts +2 -2
  665. package/dist/usergroups/get/index.js +18 -18
  666. package/dist/usergroups/get/query.d.ts +12 -12
  667. package/dist/usergroups/get/query.js +2 -2
  668. package/dist/usergroups/get/response.d.ts +35 -35
  669. package/dist/usergroups/get/response.js +2 -2
  670. package/dist/usergroups/index.d.ts +4 -4
  671. package/dist/usergroups/index.js +20 -20
  672. package/dist/usergroups/post/index.d.ts +2 -2
  673. package/dist/usergroups/post/index.js +18 -18
  674. package/dist/usergroups/post/request.d.ts +11 -11
  675. package/dist/usergroups/post/request.js +2 -2
  676. package/dist/usergroups/post/response.d.ts +1 -1
  677. package/dist/usergroups/post/response.js +2 -2
  678. package/dist/usergroups/shared.d.ts +25 -25
  679. package/dist/usergroups/shared.js +10 -10
  680. package/dist/users/[id]/disable.d.ts +7 -7
  681. package/dist/users/[id]/disable.js +2 -2
  682. package/dist/users/[id]/enable.d.ts +6 -6
  683. package/dist/users/[id]/enable.js +2 -2
  684. package/dist/users/[id]/get/index.d.ts +2 -2
  685. package/dist/users/[id]/get/index.js +18 -18
  686. package/dist/users/[id]/get/query.d.ts +3 -3
  687. package/dist/users/[id]/get/query.js +2 -2
  688. package/dist/users/[id]/get/response.d.ts +39 -39
  689. package/dist/users/[id]/get/response.js +2 -2
  690. package/dist/users/[id]/index.d.ts +5 -5
  691. package/dist/users/[id]/index.js +21 -21
  692. package/dist/users/[id]/key.d.ts +3 -3
  693. package/dist/users/[id]/key.js +2 -2
  694. package/dist/users/[id]/patch/index.d.ts +2 -2
  695. package/dist/users/[id]/patch/index.js +18 -18
  696. package/dist/users/[id]/patch/request.d.ts +10 -10
  697. package/dist/users/[id]/patch/request.js +2 -2
  698. package/dist/users/[id]/patch/response.d.ts +1 -1
  699. package/dist/users/[id]/patch/response.js +2 -2
  700. package/dist/users/constants.d.ts +2 -2
  701. package/dist/users/constants.js +4 -4
  702. package/dist/users/current.d.ts +67 -67
  703. package/dist/users/current.js +2 -2
  704. package/dist/users/get/index.d.ts +2 -2
  705. package/dist/users/get/index.js +18 -18
  706. package/dist/users/get/query.d.ts +15 -15
  707. package/dist/users/get/query.js +2 -2
  708. package/dist/users/get/response.d.ts +7 -7
  709. package/dist/users/get/response.js +2 -2
  710. package/dist/users/home-layout/index.d.ts +3 -3
  711. package/dist/users/home-layout/index.js +19 -19
  712. package/dist/users/home-layout/request.d.ts +5 -5
  713. package/dist/users/home-layout/request.js +2 -2
  714. package/dist/users/home-layout/response.d.ts +5 -5
  715. package/dist/users/home-layout/response.js +2 -2
  716. package/dist/users/home-layout/shared.d.ts +98 -98
  717. package/dist/users/home-layout/shared.js +20 -20
  718. package/dist/users/index.d.ts +8 -8
  719. package/dist/users/index.js +24 -24
  720. package/dist/users/invites.d.ts +19 -19
  721. package/dist/users/invites.js +2 -2
  722. package/dist/users/password-reset.d.ts +26 -26
  723. package/dist/users/password-reset.js +2 -2
  724. package/dist/users/post/index.d.ts +2 -2
  725. package/dist/users/post/index.js +18 -18
  726. package/dist/users/post/request.d.ts +19 -19
  727. package/dist/users/post/request.js +2 -2
  728. package/dist/users/post/response.d.ts +1 -1
  729. package/dist/users/post/response.js +2 -2
  730. package/dist/views/[id]/index.d.ts +1 -1
  731. package/dist/views/[id]/index.js +17 -17
  732. package/dist/views/[id]/patch/index.d.ts +2 -2
  733. package/dist/views/[id]/patch/index.js +18 -18
  734. package/dist/views/[id]/patch/request.d.ts +9 -9
  735. package/dist/views/[id]/patch/request.js +2 -2
  736. package/dist/views/[id]/patch/response.d.ts +1 -1
  737. package/dist/views/[id]/patch/response.js +2 -2
  738. package/dist/views/get/index.d.ts +2 -2
  739. package/dist/views/get/index.js +18 -18
  740. package/dist/views/get/query.d.ts +12 -12
  741. package/dist/views/get/query.js +2 -2
  742. package/dist/views/get/response.d.ts +20 -20
  743. package/dist/views/get/response.js +2 -2
  744. package/dist/views/index.d.ts +4 -4
  745. package/dist/views/index.js +20 -20
  746. package/dist/views/post/index.d.ts +2 -2
  747. package/dist/views/post/index.js +18 -18
  748. package/dist/views/post/request.d.ts +10 -10
  749. package/dist/views/post/request.js +2 -2
  750. package/dist/views/post/response.d.ts +1 -1
  751. package/dist/views/post/response.js +2 -2
  752. package/dist/views/shared.d.ts +27 -27
  753. package/dist/views/shared.js +2 -2
  754. package/dist/workflows/index.d.ts +44 -44
  755. package/dist/workflows/index.js +2 -2
  756. package/package.json +2 -2
@@ -1,10 +1,10 @@
1
- export interface UpdateUserRequest {
2
- name?: string;
3
- role?: string;
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[];
10
- }
1
+ export interface UpdateUserRequest {
2
+ name?: string;
3
+ role?: string;
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[];
10
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=request.js.map
@@ -1 +1 @@
1
- export { GetUserResponse as UpdateUserResponse } from '../get';
1
+ export { GetUserResponse as UpdateUserResponse } from '../get';
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=response.js.map
@@ -1,2 +1,2 @@
1
- export declare type UserType = 'INTERNAL' | 'EXTERNAL';
2
- export declare const USER_TYPES: UserType[];
1
+ export declare type UserType = 'INTERNAL' | 'EXTERNAL';
2
+ export declare const USER_TYPES: UserType[];
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.USER_TYPES = void 0;
4
- exports.USER_TYPES = ['INTERNAL', 'EXTERNAL'];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.USER_TYPES = void 0;
4
+ exports.USER_TYPES = ['INTERNAL', 'EXTERNAL'];
5
5
  //# sourceMappingURL=constants.js.map
@@ -1,67 +1,67 @@
1
- import { IEntityMeta, IEmbeddedEntity } from '../shared';
2
- import { Preferences } from '../organisations/constants';
3
- import { Integrations } from '../integrations/constants';
4
- import { System } from '../system';
5
- import { HomeLayout } from './home-layout';
6
- import { PermissionGrantLevel, UsergroupsScope } from '../usergroups/shared';
7
- /** One entry of the §1.7 field access list — every org field appears. */
8
- export interface FieldAccessEntry {
9
- id: string;
10
- level: PermissionGrantLevel;
11
- }
12
- export interface EmbeddedRole extends IEmbeddedEntity {
13
- permissions: string[];
14
- }
15
- export interface EmbeddedOrganisation extends IEmbeddedEntity {
16
- preferences: Preferences;
17
- integrations?: Integrations;
18
- }
19
- export interface CurrentUserResponse {
20
- id: string;
21
- email: string;
22
- name: string;
23
- role: EmbeddedRole;
24
- organisation: EmbeddedOrganisation;
25
- homeLocationId: string;
26
- homeLocationPath: string;
27
- meta?: IEntityMeta;
28
- systemSettings: System;
29
- /**
30
- * Auth-source marker, mirroring the persisted user field.
31
- * - `'sso'` — current session is via SSO (FE may want RP-initiated logout).
32
- * - `'native'` — explicit mixed-mode guest (password login on an SSO org).
33
- * - `undefined` — legacy native user (non-SSO org, or pre-SSO).
34
- */
35
- authProvider?: 'sso' | 'native';
36
- /**
37
- * Personal Home-screen layout (widget arrangement). Persisted on the user doc
38
- * and written via `POST /users/current/home-layout`. `undefined` until the
39
- * user customises — the client then renders its built-in default layout.
40
- */
41
- homeLayout?: HomeLayout;
42
- /**
43
- * UI-only visibility lists (usergroups feature) — COMPLETE: every org
44
- * field appears with the caller's effective level (grant-less ⇒ EDIT;
45
- * admin bypass ⇒ all EDIT), every usable action id appears. All three
46
- * keys are omitted entirely when the org toggle is OFF — client rule:
47
- * absent list (or absent id) ⇒ open.
48
- */
49
- fieldAccess?: FieldAccessEntry[];
50
- actionAccess?: string[];
51
- /**
52
- * The caller's resolved location scope, verbatim from the user-doc cache.
53
- * The offline client treats a CHANGE in this value (including appearing/
54
- * disappearing) as its delta-cursor + cache reset trigger — delta reads
55
- * never re-deliver docs whose lastChanged predates the cursor.
56
- */
57
- usergroupsScope?: UsergroupsScope;
58
- }
59
- export interface CurrentUserPublicResponse {
60
- id: string;
61
- name: string;
62
- role: EmbeddedRole;
63
- organisation: EmbeddedOrganisation;
64
- homeLocationId: string;
65
- homeLocationPath: string;
66
- meta?: IEntityMeta;
67
- }
1
+ import { IEntityMeta, IEmbeddedEntity } from '../shared';
2
+ import { Preferences } from '../organisations/constants';
3
+ import { Integrations } from '../integrations/constants';
4
+ import { System } from '../system';
5
+ import { HomeLayout } from './home-layout';
6
+ import { PermissionGrantLevel, UsergroupsScope } from '../usergroups/shared';
7
+ /** One entry of the §1.7 field access list — every org field appears. */
8
+ export interface FieldAccessEntry {
9
+ id: string;
10
+ level: PermissionGrantLevel;
11
+ }
12
+ export interface EmbeddedRole extends IEmbeddedEntity {
13
+ permissions: string[];
14
+ }
15
+ export interface EmbeddedOrganisation extends IEmbeddedEntity {
16
+ preferences: Preferences;
17
+ integrations?: Integrations;
18
+ }
19
+ export interface CurrentUserResponse {
20
+ id: string;
21
+ email: string;
22
+ name: string;
23
+ role: EmbeddedRole;
24
+ organisation: EmbeddedOrganisation;
25
+ homeLocationId: string;
26
+ homeLocationPath: string;
27
+ meta?: IEntityMeta;
28
+ systemSettings: System;
29
+ /**
30
+ * Auth-source marker, mirroring the persisted user field.
31
+ * - `'sso'` — current session is via SSO (FE may want RP-initiated logout).
32
+ * - `'native'` — explicit mixed-mode guest (password login on an SSO org).
33
+ * - `undefined` — legacy native user (non-SSO org, or pre-SSO).
34
+ */
35
+ authProvider?: 'sso' | 'native';
36
+ /**
37
+ * Personal Home-screen layout (widget arrangement). Persisted on the user doc
38
+ * and written via `POST /users/current/home-layout`. `undefined` until the
39
+ * user customises — the client then renders its built-in default layout.
40
+ */
41
+ homeLayout?: HomeLayout;
42
+ /**
43
+ * UI-only visibility lists (usergroups feature) — COMPLETE: every org
44
+ * field appears with the caller's effective level (grant-less ⇒ EDIT;
45
+ * admin bypass ⇒ all EDIT), every usable action id appears. All three
46
+ * keys are omitted entirely when the org toggle is OFF — client rule:
47
+ * absent list (or absent id) ⇒ open.
48
+ */
49
+ fieldAccess?: FieldAccessEntry[];
50
+ actionAccess?: string[];
51
+ /**
52
+ * The caller's resolved location scope, verbatim from the user-doc cache.
53
+ * The offline client treats a CHANGE in this value (including appearing/
54
+ * disappearing) as its delta-cursor + cache reset trigger — delta reads
55
+ * never re-deliver docs whose lastChanged predates the cursor.
56
+ */
57
+ usergroupsScope?: UsergroupsScope;
58
+ }
59
+ export interface CurrentUserPublicResponse {
60
+ id: string;
61
+ name: string;
62
+ role: EmbeddedRole;
63
+ organisation: EmbeddedOrganisation;
64
+ homeLocationId: string;
65
+ homeLocationPath: string;
66
+ meta?: IEntityMeta;
67
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=current.js.map
@@ -1,2 +1,2 @@
1
- export * from './query';
2
- export * from './response';
1
+ export * from './query';
2
+ export * from './response';
@@ -1,19 +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);
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
19
  //# sourceMappingURL=index.js.map
@@ -1,15 +1,15 @@
1
- import { StandardSortFields, SortOrders } from '../../shared';
2
- import { UserType } from '../constants';
3
- export declare type UserEmbedField = 'meta';
4
- export interface GetUsersQuery {
5
- page?: number;
6
- limit?: number;
7
- ids?: string[];
8
- role?: string[];
9
- type?: UserType;
10
- sort?: StandardSortFields;
11
- sortOrder?: SortOrders;
12
- embed?: Array<UserEmbedField>;
13
- homeLocationId?: string;
14
- homeLocationPathBeginsWith?: string;
15
- }
1
+ import { StandardSortFields, SortOrders } from '../../shared';
2
+ import { UserType } from '../constants';
3
+ export declare type UserEmbedField = 'meta';
4
+ export interface GetUsersQuery {
5
+ page?: number;
6
+ limit?: number;
7
+ ids?: string[];
8
+ role?: string[];
9
+ type?: UserType;
10
+ sort?: StandardSortFields;
11
+ sortOrder?: SortOrders;
12
+ embed?: Array<UserEmbedField>;
13
+ homeLocationId?: string;
14
+ homeLocationPathBeginsWith?: string;
15
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=query.js.map
@@ -1,7 +1,7 @@
1
- import { GetUsersQuery } from './query';
2
- import { GetUserResponse } from '../[id]/get';
3
- export interface GetUsersResponse {
4
- query: GetUsersQuery | null;
5
- total: number;
6
- items: GetUserResponse[];
7
- }
1
+ import { GetUsersQuery } from './query';
2
+ import { GetUserResponse } from '../[id]/get';
3
+ export interface GetUsersResponse {
4
+ query: GetUsersQuery | null;
5
+ total: number;
6
+ items: GetUserResponse[];
7
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=response.js.map
@@ -1,3 +1,3 @@
1
- export * from './shared';
2
- export * from './request';
3
- export * from './response';
1
+ export * from './shared';
2
+ export * from './request';
3
+ export * from './response';
@@ -1,20 +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);
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
20
  //# sourceMappingURL=index.js.map
@@ -1,5 +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
- }
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
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=request.js.map
@@ -1,5 +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
- }
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
+ }
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=response.js.map
@@ -1,98 +1,98 @@
1
- /**
2
- * Per-user Home screen layout — a personal, server-persisted arrangement of
3
- * Home widgets. Stored directly on the user document (like `homeLocationId`),
4
- * returned on `GET /users/current`, and written via
5
- * `POST /users/current/home-layout`.
6
- *
7
- * A layout is a flat, ordered list of widgets, each pinned to a rect on a
8
- * 4-column grid (`gridPos`). The widget `type` is a closed union (below): adding
9
- * a new kind is a contract change + republish + client bump. Per-widget `config`
10
- * carries widget *behaviour* only (a saved-view id, an action id, a heading's
11
- * text) — never geometry. Since 2026-07-30 the API validates each kind's KNOWN
12
- * config keys on write (the per-kind `*WidgetConfig` shapes below) while
13
- * tolerating unknown keys, so the client can still add config keys without an
14
- * API deploy ordering — only changing a known key's meaning needs one.
15
- *
16
- * `version` discriminates stored layouts so the client can detect and
17
- * reset/migrate an older one on read.
18
- */
19
- /**
20
- * The kinds of Home widget. Closed set — adding one is a contract change.
21
- * - `tile-link` — a link card (a saved view or a nav destination); may show a live count.
22
- * - `summary-list` — top-N rows of a saved view's results.
23
- * - `recent-activity` — the account's latest activity feed.
24
- * - `recent-assets` / `recent-locations` — most-recently-updated entities.
25
- * - `needs-attention` — assets flagged not-ready / partially-ready.
26
- * - `kit-spotlight` — kit readiness summary.
27
- * - `hero` — the fleet-readiness hero (overview + inline needs-attention legend).
28
- * - `heading` — a text heading to label a run of widgets (heading text lives in `config`).
29
- *
30
- * `hero` and `heading` are full-width structural widgets: the client renders them
31
- * spanning the whole row at every breakpoint. As with all widgets, width is
32
- * expressed through `gridPos.w`, not enforced by the API.
33
- */
34
- export declare type HomeWidgetType = 'tile-link' | 'summary-list' | 'recent-activity' | 'recent-assets' | 'recent-locations' | 'needs-attention' | 'kit-spotlight' | 'hero' | 'heading';
35
- /**
36
- * Per-kind `config` shapes — the authoritative form of each configurable
37
- * kind's KNOWN keys, which the API enforces on write (unknown keys pass, so
38
- * these can grow client-first). The feed kinds define no config keys. `config`
39
- * itself stays loosely typed on `HomeWidget`; the client parses defensively at
40
- * the render boundary regardless (stored data may predate validation).
41
- */
42
- /** A `tile-link`'s target: a registered app action or a saved view — never a
43
- * free URL (the client resolves targets to internal routes by design). */
44
- export declare type TileLinkWidgetConfig = {
45
- source: 'action';
46
- actionId: string;
47
- } | {
48
- source: 'view';
49
- viewId: string;
50
- };
51
- /** A `summary-list` renders the top matches of one saved view. */
52
- export interface SummaryListWidgetConfig {
53
- viewId: string;
54
- }
55
- /** A `heading`'s user-editable label — empty while freshly added. */
56
- export interface HeadingWidgetConfig {
57
- text: string;
58
- }
59
- /** The `hero`'s data source: the whole account's assets, or one saved view's
60
- * matches. Always present on a stored hero (the kind shipped with it). */
61
- export declare type HeroWidgetConfig = {
62
- source: 'account';
63
- } | {
64
- source: 'view';
65
- viewId: string;
66
- };
67
- /**
68
- * A widget's cell on the Home grid: top-left position (`x`/`y`) and size
69
- * (`w`/`h`), in grid units. The grid is 4 columns wide, so `x + w <= 4`, and
70
- * `h` is a whole number of row-units. Below the desktop breakpoint the client
71
- * collapses to a single column, so `x`/`w` only bind on wide viewports.
72
- */
73
- export interface HomeWidgetGridPos {
74
- /** Column of the top-left corner (0-based; `x + w <= 4`). */
75
- x: number;
76
- /** Row of the top-left corner (0-based), in row-units. */
77
- y: number;
78
- /** Width in columns (1–4). */
79
- w: number;
80
- /** Height in row-units (>= 1). */
81
- h: number;
82
- }
83
- export interface HomeWidget {
84
- /** Stable client-generated id (ulid) — the reorder / remove key. */
85
- id: string;
86
- /** Widget kind (closed union). The client registry maps it to a renderer + config shape. */
87
- type: HomeWidgetType;
88
- /** Position + size on the 4-column grid. */
89
- gridPos: HomeWidgetGridPos;
90
- /** Widget-specific *behaviour* config (e.g. a saved-view id, a heading's text) — never geometry. Known keys are validated per kind (see the `*WidgetConfig` shapes); unknown keys pass through. */
91
- config?: Record<string, unknown>;
92
- }
93
- export interface HomeLayout {
94
- /** Layout schema version, so the client can detect + migrate/reset older stored layouts. */
95
- version: number;
96
- /** Flat, ordered widget list; geometry lives on each widget's `gridPos`. */
97
- widgets: HomeWidget[];
98
- }
1
+ /**
2
+ * Per-user Home screen layout — a personal, server-persisted arrangement of
3
+ * Home widgets. Stored directly on the user document (like `homeLocationId`),
4
+ * returned on `GET /users/current`, and written via
5
+ * `POST /users/current/home-layout`.
6
+ *
7
+ * A layout is a flat, ordered list of widgets, each pinned to a rect on a
8
+ * 4-column grid (`gridPos`). The widget `type` is a closed union (below): adding
9
+ * a new kind is a contract change + republish + client bump. Per-widget `config`
10
+ * carries widget *behaviour* only (a saved-view id, an action id, a heading's
11
+ * text) — never geometry. Since 2026-07-30 the API validates each kind's KNOWN
12
+ * config keys on write (the per-kind `*WidgetConfig` shapes below) while
13
+ * tolerating unknown keys, so the client can still add config keys without an
14
+ * API deploy ordering — only changing a known key's meaning needs one.
15
+ *
16
+ * `version` discriminates stored layouts so the client can detect and
17
+ * reset/migrate an older one on read.
18
+ */
19
+ /**
20
+ * The kinds of Home widget. Closed set — adding one is a contract change.
21
+ * - `tile-link` — a link card (a saved view or a nav destination); may show a live count.
22
+ * - `summary-list` — top-N rows of a saved view's results.
23
+ * - `recent-activity` — the account's latest activity feed.
24
+ * - `recent-assets` / `recent-locations` — most-recently-updated entities.
25
+ * - `needs-attention` — assets flagged not-ready / partially-ready.
26
+ * - `kit-spotlight` — kit readiness summary.
27
+ * - `hero` — the fleet-readiness hero (overview + inline needs-attention legend).
28
+ * - `heading` — a text heading to label a run of widgets (heading text lives in `config`).
29
+ *
30
+ * `hero` and `heading` are full-width structural widgets: the client renders them
31
+ * spanning the whole row at every breakpoint. As with all widgets, width is
32
+ * expressed through `gridPos.w`, not enforced by the API.
33
+ */
34
+ export declare type HomeWidgetType = 'tile-link' | 'summary-list' | 'recent-activity' | 'recent-assets' | 'recent-locations' | 'needs-attention' | 'kit-spotlight' | 'hero' | 'heading';
35
+ /**
36
+ * Per-kind `config` shapes — the authoritative form of each configurable
37
+ * kind's KNOWN keys, which the API enforces on write (unknown keys pass, so
38
+ * these can grow client-first). The feed kinds define no config keys. `config`
39
+ * itself stays loosely typed on `HomeWidget`; the client parses defensively at
40
+ * the render boundary regardless (stored data may predate validation).
41
+ */
42
+ /** A `tile-link`'s target: a registered app action or a saved view — never a
43
+ * free URL (the client resolves targets to internal routes by design). */
44
+ export declare type TileLinkWidgetConfig = {
45
+ source: 'action';
46
+ actionId: string;
47
+ } | {
48
+ source: 'view';
49
+ viewId: string;
50
+ };
51
+ /** A `summary-list` renders the top matches of one saved view. */
52
+ export interface SummaryListWidgetConfig {
53
+ viewId: string;
54
+ }
55
+ /** A `heading`'s user-editable label — empty while freshly added. */
56
+ export interface HeadingWidgetConfig {
57
+ text: string;
58
+ }
59
+ /** The `hero`'s data source: the whole account's assets, or one saved view's
60
+ * matches. Always present on a stored hero (the kind shipped with it). */
61
+ export declare type HeroWidgetConfig = {
62
+ source: 'account';
63
+ } | {
64
+ source: 'view';
65
+ viewId: string;
66
+ };
67
+ /**
68
+ * A widget's cell on the Home grid: top-left position (`x`/`y`) and size
69
+ * (`w`/`h`), in grid units. The grid is 4 columns wide, so `x + w <= 4`, and
70
+ * `h` is a whole number of row-units. Below the desktop breakpoint the client
71
+ * collapses to a single column, so `x`/`w` only bind on wide viewports.
72
+ */
73
+ export interface HomeWidgetGridPos {
74
+ /** Column of the top-left corner (0-based; `x + w <= 4`). */
75
+ x: number;
76
+ /** Row of the top-left corner (0-based), in row-units. */
77
+ y: number;
78
+ /** Width in columns (1–4). */
79
+ w: number;
80
+ /** Height in row-units (>= 1). */
81
+ h: number;
82
+ }
83
+ export interface HomeWidget {
84
+ /** Stable client-generated id (ulid) — the reorder / remove key. */
85
+ id: string;
86
+ /** Widget kind (closed union). The client registry maps it to a renderer + config shape. */
87
+ type: HomeWidgetType;
88
+ /** Position + size on the 4-column grid. */
89
+ gridPos: HomeWidgetGridPos;
90
+ /** Widget-specific *behaviour* config (e.g. a saved-view id, a heading's text) — never geometry. Known keys are validated per kind (see the `*WidgetConfig` shapes); unknown keys pass through. */
91
+ config?: Record<string, unknown>;
92
+ }
93
+ export interface HomeLayout {
94
+ /** Layout schema version, so the client can detect + migrate/reset older stored layouts. */
95
+ version: number;
96
+ /** Flat, ordered widget list; geometry lives on each widget's `gridPos`. */
97
+ widgets: HomeWidget[];
98
+ }
@@ -1,21 +1,21 @@
1
- "use strict";
2
- /**
3
- * Per-user Home screen layout — a personal, server-persisted arrangement of
4
- * Home widgets. Stored directly on the user document (like `homeLocationId`),
5
- * returned on `GET /users/current`, and written via
6
- * `POST /users/current/home-layout`.
7
- *
8
- * A layout is a flat, ordered list of widgets, each pinned to a rect on a
9
- * 4-column grid (`gridPos`). The widget `type` is a closed union (below): adding
10
- * a new kind is a contract change + republish + client bump. Per-widget `config`
11
- * carries widget *behaviour* only (a saved-view id, an action id, a heading's
12
- * text) — never geometry. Since 2026-07-30 the API validates each kind's KNOWN
13
- * config keys on write (the per-kind `*WidgetConfig` shapes below) while
14
- * tolerating unknown keys, so the client can still add config keys without an
15
- * API deploy ordering — only changing a known key's meaning needs one.
16
- *
17
- * `version` discriminates stored layouts so the client can detect and
18
- * reset/migrate an older one on read.
19
- */
20
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /**
3
+ * Per-user Home screen layout — a personal, server-persisted arrangement of
4
+ * Home widgets. Stored directly on the user document (like `homeLocationId`),
5
+ * returned on `GET /users/current`, and written via
6
+ * `POST /users/current/home-layout`.
7
+ *
8
+ * A layout is a flat, ordered list of widgets, each pinned to a rect on a
9
+ * 4-column grid (`gridPos`). The widget `type` is a closed union (below): adding
10
+ * a new kind is a contract change + republish + client bump. Per-widget `config`
11
+ * carries widget *behaviour* only (a saved-view id, an action id, a heading's
12
+ * text) — never geometry. Since 2026-07-30 the API validates each kind's KNOWN
13
+ * config keys on write (the per-kind `*WidgetConfig` shapes below) while
14
+ * tolerating unknown keys, so the client can still add config keys without an
15
+ * API deploy ordering — only changing a known key's meaning needs one.
16
+ *
17
+ * `version` discriminates stored layouts so the client can detect and
18
+ * reset/migrate an older one on read.
19
+ */
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
21
  //# sourceMappingURL=shared.js.map