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

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 (892) hide show
  1. package/dist/actions/[id]/index.d.ts +1 -0
  2. package/dist/actions/[id]/index.js +18 -0
  3. package/dist/actions/[id]/index.js.map +1 -0
  4. package/dist/actions/[id]/patch/index.d.ts +2 -0
  5. package/dist/actions/[id]/patch/index.js +19 -0
  6. package/dist/actions/[id]/patch/index.js.map +1 -0
  7. package/dist/actions/[id]/patch/request.d.ts +12 -0
  8. package/dist/actions/[id]/patch/request.js +3 -0
  9. package/dist/actions/[id]/patch/request.js.map +1 -0
  10. package/dist/actions/[id]/patch/response.d.ts +1 -0
  11. package/dist/actions/[id]/patch/response.js +3 -0
  12. package/dist/actions/[id]/patch/response.js.map +1 -0
  13. package/dist/actions/get/index.d.ts +2 -0
  14. package/dist/actions/get/index.js +19 -0
  15. package/dist/actions/get/index.js.map +1 -0
  16. package/dist/actions/get/query.d.ts +14 -0
  17. package/dist/actions/get/query.js +3 -0
  18. package/dist/actions/get/query.js.map +1 -0
  19. package/dist/actions/get/response.d.ts +25 -0
  20. package/dist/actions/get/response.js +3 -0
  21. package/dist/actions/get/response.js.map +1 -0
  22. package/dist/actions/index.d.ts +4 -0
  23. package/dist/actions/index.js +21 -0
  24. package/dist/actions/index.js.map +1 -0
  25. package/dist/actions/post/index.d.ts +2 -0
  26. package/dist/actions/post/index.js +19 -0
  27. package/dist/actions/post/index.js.map +1 -0
  28. package/dist/actions/post/request.d.ts +15 -0
  29. package/dist/actions/post/request.js +3 -0
  30. package/dist/actions/post/request.js.map +1 -0
  31. package/dist/actions/post/response.d.ts +1 -0
  32. package/dist/actions/post/response.js +3 -0
  33. package/dist/actions/post/response.js.map +1 -0
  34. package/dist/actions/shared.d.ts +63 -0
  35. package/dist/actions/shared.js +17 -0
  36. package/dist/actions/shared.js.map +1 -0
  37. package/dist/ai/chat/index.d.ts +2 -0
  38. package/dist/ai/chat/index.js +19 -0
  39. package/dist/ai/chat/index.js.map +1 -0
  40. package/dist/ai/chat/request.d.ts +42 -0
  41. package/dist/ai/chat/request.js +3 -0
  42. package/dist/ai/chat/request.js.map +1 -0
  43. package/dist/ai/chat/response.d.ts +74 -0
  44. package/dist/ai/chat/response.js +11 -0
  45. package/dist/ai/chat/response.js.map +1 -0
  46. package/dist/ai/expression/index.d.ts +2 -0
  47. package/dist/ai/expression/index.js +19 -0
  48. package/dist/ai/expression/index.js.map +1 -0
  49. package/dist/ai/expression/request.d.ts +29 -0
  50. package/dist/ai/expression/request.js +3 -0
  51. package/dist/ai/expression/request.js.map +1 -0
  52. package/dist/ai/expression/response.d.ts +23 -0
  53. package/dist/ai/expression/response.js +3 -0
  54. package/dist/ai/expression/response.js.map +1 -0
  55. package/dist/ai/index.d.ts +4 -0
  56. package/dist/ai/index.js +21 -0
  57. package/dist/ai/index.js.map +1 -0
  58. package/dist/ai/semantic-query/index.d.ts +2 -0
  59. package/dist/ai/semantic-query/index.js +19 -0
  60. package/dist/ai/semantic-query/index.js.map +1 -0
  61. package/dist/ai/semantic-query/request.d.ts +43 -0
  62. package/dist/ai/semantic-query/request.js +3 -0
  63. package/dist/ai/semantic-query/request.js.map +1 -0
  64. package/dist/ai/semantic-query/response.d.ts +40 -0
  65. package/dist/ai/semantic-query/response.js +3 -0
  66. package/dist/ai/semantic-query/response.js.map +1 -0
  67. package/dist/ai/shared.d.ts +22 -0
  68. package/dist/ai/shared.js +11 -0
  69. package/dist/ai/shared.js.map +1 -0
  70. package/dist/assets/[id]/get.d.ts +92 -77
  71. package/dist/assets/[id]/get.js +2 -2
  72. package/dist/assets/[id]/index.d.ts +4 -4
  73. package/dist/assets/[id]/index.js +20 -20
  74. package/dist/assets/[id]/location.d.ts +6 -6
  75. package/dist/assets/[id]/location.js +2 -2
  76. package/dist/assets/[id]/patch/index.d.ts +2 -2
  77. package/dist/assets/[id]/patch/index.js +18 -18
  78. package/dist/assets/[id]/patch/request.d.ts +16 -11
  79. package/dist/assets/[id]/patch/request.js +2 -2
  80. package/dist/assets/[id]/patch/response.d.ts +7 -7
  81. package/dist/assets/[id]/patch/response.js +2 -2
  82. package/dist/assets/[id]/readers.d.ts +9 -9
  83. package/dist/assets/[id]/readers.js +2 -2
  84. package/dist/assets/count/index.d.ts +2 -2
  85. package/dist/assets/count/index.js +18 -18
  86. package/dist/assets/count/query.d.ts +16 -1
  87. package/dist/assets/count/query.js +2 -2
  88. package/dist/assets/count/response.d.ts +15 -15
  89. package/dist/assets/count/response.js +2 -2
  90. package/dist/assets/count-filtered/index.d.ts +1 -1
  91. package/dist/assets/count-filtered/index.js +17 -17
  92. package/dist/assets/count-filtered/response.d.ts +5 -5
  93. package/dist/assets/count-filtered/response.js +2 -2
  94. package/dist/assets/download/index.d.ts +2 -2
  95. package/dist/assets/download/index.js +18 -18
  96. package/dist/assets/download/query.d.ts +17 -10
  97. package/dist/assets/download/query.js +2 -2
  98. package/dist/assets/download/response.d.ts +3 -3
  99. package/dist/assets/download/response.js +2 -2
  100. package/dist/assets/errors.d.ts +3 -3
  101. package/dist/assets/errors.js +2 -2
  102. package/dist/assets/get/index.d.ts +2 -2
  103. package/dist/assets/get/index.js +18 -18
  104. package/dist/assets/get/query.d.ts +122 -65
  105. package/dist/assets/get/query.js +5 -2
  106. package/dist/assets/get/query.js.map +1 -1
  107. package/dist/assets/get/response.d.ts +12 -6
  108. package/dist/assets/get/response.js +2 -2
  109. package/dist/assets/index.d.ts +14 -11
  110. package/dist/assets/index.js +30 -27
  111. package/dist/assets/index.js.map +1 -1
  112. package/dist/assets/location/index.d.ts +2 -2
  113. package/dist/assets/location/index.js +18 -18
  114. package/dist/assets/location/request.d.ts +23 -14
  115. package/dist/assets/location/request.js +2 -2
  116. package/dist/assets/location/response.d.ts +2 -2
  117. package/dist/assets/location/response.js +2 -2
  118. package/dist/assets/partitions/index.d.ts +2 -0
  119. package/dist/assets/partitions/index.js +19 -0
  120. package/dist/assets/partitions/index.js.map +1 -0
  121. package/dist/assets/partitions/query.d.ts +16 -0
  122. package/dist/assets/partitions/query.js +3 -0
  123. package/dist/assets/partitions/query.js.map +1 -0
  124. package/dist/assets/partitions/response.d.ts +10 -0
  125. package/dist/assets/partitions/response.js +3 -0
  126. package/dist/assets/partitions/response.js.map +1 -0
  127. package/dist/assets/post/index.d.ts +2 -2
  128. package/dist/assets/post/index.js +18 -18
  129. package/dist/assets/post/request.d.ts +15 -13
  130. package/dist/assets/post/request.js +9 -9
  131. package/dist/assets/post/request.js.map +1 -1
  132. package/dist/assets/post/response.d.ts +11 -11
  133. package/dist/assets/post/response.js +2 -2
  134. package/dist/assets/readiness/index.d.ts +2 -0
  135. package/dist/assets/readiness/index.js +19 -0
  136. package/dist/assets/readiness/index.js.map +1 -0
  137. package/dist/assets/readiness/query.d.ts +7 -0
  138. package/dist/assets/readiness/query.js +3 -0
  139. package/dist/assets/readiness/query.js.map +1 -0
  140. package/dist/assets/readiness/response.d.ts +24 -0
  141. package/dist/assets/readiness/response.js +3 -0
  142. package/dist/assets/readiness/response.js.map +1 -0
  143. package/dist/assets/rollup/index.d.ts +2 -0
  144. package/dist/assets/rollup/index.js +19 -0
  145. package/dist/assets/rollup/index.js.map +1 -0
  146. package/dist/assets/rollup/query.d.ts +12 -0
  147. package/dist/assets/rollup/query.js +5 -0
  148. package/dist/assets/rollup/query.js.map +1 -0
  149. package/dist/assets/rollup/response.d.ts +58 -0
  150. package/dist/assets/rollup/response.js +3 -0
  151. package/dist/assets/rollup/response.js.map +1 -0
  152. package/dist/assets/suggestions/index.d.ts +2 -2
  153. package/dist/assets/suggestions/index.js +18 -18
  154. package/dist/assets/suggestions/query.d.ts +5 -5
  155. package/dist/assets/suggestions/query.js +2 -2
  156. package/dist/assets/suggestions/response.d.ts +15 -15
  157. package/dist/assets/suggestions/response.js +2 -2
  158. package/dist/assets/summary/index.d.ts +2 -2
  159. package/dist/assets/summary/index.js +18 -18
  160. package/dist/assets/summary/response.d.ts +7 -7
  161. package/dist/assets/summary/response.js +2 -2
  162. package/dist/assets/summary/summary.d.ts +9 -9
  163. package/dist/assets/summary/summary.js +2 -2
  164. package/dist/assets/upload/index.d.ts +2 -2
  165. package/dist/assets/upload/index.js +18 -18
  166. package/dist/assets/upload/request.d.ts +3 -3
  167. package/dist/assets/upload/request.js +2 -2
  168. package/dist/assets/upload/response.d.ts +7 -7
  169. package/dist/assets/upload/response.js +2 -2
  170. package/dist/errors.d.ts +4 -4
  171. package/dist/errors.js +2 -2
  172. package/dist/events/constants.d.ts +60 -9
  173. package/dist/events/constants.js +78 -33
  174. package/dist/events/constants.js.map +1 -1
  175. package/dist/events/count/index.d.ts +2 -2
  176. package/dist/events/count/index.js +18 -18
  177. package/dist/events/count/query.d.ts +5 -5
  178. package/dist/events/count/query.js +2 -2
  179. package/dist/events/count/response.d.ts +18 -18
  180. package/dist/events/count/response.js +2 -2
  181. package/dist/events/download/index.d.ts +2 -2
  182. package/dist/events/download/index.js +18 -18
  183. package/dist/events/download/query.d.ts +9 -9
  184. package/dist/events/download/query.js +2 -2
  185. package/dist/events/download/response.d.ts +3 -3
  186. package/dist/events/download/response.js +2 -2
  187. package/dist/events/get/index.d.ts +2 -2
  188. package/dist/events/get/index.js +18 -18
  189. package/dist/events/get/query.d.ts +40 -15
  190. package/dist/events/get/query.js +2 -2
  191. package/dist/events/get/response.d.ts +248 -144
  192. package/dist/events/get/response.js +2 -2
  193. package/dist/events/index.d.ts +5 -5
  194. package/dist/events/index.js +21 -21
  195. package/dist/events/post.d.ts +9 -9
  196. package/dist/events/post.js +2 -2
  197. package/dist/fields/[id]/get.d.ts +28 -21
  198. package/dist/fields/[id]/get.js +2 -2
  199. package/dist/fields/[id]/index.d.ts +2 -2
  200. package/dist/fields/[id]/index.js +18 -18
  201. package/dist/fields/[id]/patch/index.d.ts +2 -2
  202. package/dist/fields/[id]/patch/index.js +18 -18
  203. package/dist/fields/[id]/patch/request.d.ts +32 -18
  204. package/dist/fields/[id]/patch/request.js +2 -2
  205. package/dist/fields/[id]/patch/response.d.ts +1 -1
  206. package/dist/fields/[id]/patch/response.js +2 -2
  207. package/dist/fields/constants.d.ts +72 -4
  208. package/dist/fields/constants.js +55 -27
  209. package/dist/fields/constants.js.map +1 -1
  210. package/dist/fields/get/index.d.ts +2 -2
  211. package/dist/fields/get/index.js +18 -18
  212. package/dist/fields/get/query.d.ts +9 -9
  213. package/dist/fields/get/query.js +2 -2
  214. package/dist/fields/get/response.d.ts +5 -5
  215. package/dist/fields/get/response.js +2 -2
  216. package/dist/fields/index.d.ts +5 -5
  217. package/dist/fields/index.js +21 -21
  218. package/dist/fields/post/index.d.ts +2 -2
  219. package/dist/fields/post/index.js +18 -18
  220. package/dist/fields/post/request.d.ts +24 -18
  221. package/dist/fields/post/request.js +8 -8
  222. package/dist/fields/post/request.js.map +1 -1
  223. package/dist/fields/post/response.d.ts +5 -5
  224. package/dist/fields/post/response.js +2 -2
  225. package/dist/fields/suggestions/index.d.ts +2 -2
  226. package/dist/fields/suggestions/index.js +18 -18
  227. package/dist/fields/suggestions/query.d.ts +5 -5
  228. package/dist/fields/suggestions/query.js +2 -2
  229. package/dist/fields/suggestions/response.d.ts +15 -15
  230. package/dist/fields/suggestions/response.js +2 -2
  231. package/dist/forms/[id]/index.d.ts +1 -0
  232. package/dist/forms/[id]/index.js +18 -0
  233. package/dist/forms/[id]/index.js.map +1 -0
  234. package/dist/forms/[id]/patch/index.d.ts +2 -0
  235. package/dist/forms/[id]/patch/index.js +19 -0
  236. package/dist/forms/[id]/patch/index.js.map +1 -0
  237. package/dist/forms/[id]/patch/request.d.ts +14 -0
  238. package/dist/forms/[id]/patch/request.js +3 -0
  239. package/dist/forms/[id]/patch/request.js.map +1 -0
  240. package/dist/forms/[id]/patch/response.d.ts +1 -0
  241. package/dist/forms/[id]/patch/response.js +3 -0
  242. package/dist/forms/[id]/patch/response.js.map +1 -0
  243. package/dist/forms/constants.d.ts +19 -0
  244. package/dist/forms/constants.js +33 -0
  245. package/dist/forms/constants.js.map +1 -0
  246. package/dist/forms/get/index.d.ts +2 -0
  247. package/dist/forms/get/index.js +19 -0
  248. package/dist/forms/get/index.js.map +1 -0
  249. package/dist/forms/get/query.d.ts +18 -0
  250. package/dist/forms/get/query.js +3 -0
  251. package/dist/forms/get/query.js.map +1 -0
  252. package/dist/forms/get/response.d.ts +23 -0
  253. package/dist/forms/get/response.js +3 -0
  254. package/dist/forms/get/response.js.map +1 -0
  255. package/dist/forms/index.d.ts +6 -0
  256. package/dist/forms/index.js +23 -0
  257. package/dist/forms/index.js.map +1 -0
  258. package/dist/forms/post/index.d.ts +2 -0
  259. package/dist/forms/post/index.js +19 -0
  260. package/dist/forms/post/index.js.map +1 -0
  261. package/dist/forms/post/request.d.ts +9 -0
  262. package/dist/forms/post/request.js +3 -0
  263. package/dist/forms/post/request.js.map +1 -0
  264. package/dist/forms/post/response.d.ts +1 -0
  265. package/dist/forms/post/response.js +3 -0
  266. package/dist/forms/post/response.js.map +1 -0
  267. package/dist/forms/shared.d.ts +136 -0
  268. package/dist/forms/shared.js +3 -0
  269. package/dist/forms/shared.js.map +1 -0
  270. package/dist/forms/versions/index.d.ts +2 -0
  271. package/dist/forms/versions/index.js +19 -0
  272. package/dist/forms/versions/index.js.map +1 -0
  273. package/dist/forms/versions/path.d.ts +8 -0
  274. package/dist/forms/versions/path.js +3 -0
  275. package/dist/forms/versions/path.js.map +1 -0
  276. package/dist/forms/versions/response.d.ts +1 -0
  277. package/dist/forms/versions/response.js +3 -0
  278. package/dist/forms/versions/response.js.map +1 -0
  279. package/dist/index.d.ts +29 -23
  280. package/dist/index.js +45 -39
  281. package/dist/index.js.map +1 -1
  282. package/dist/integrations/constants.d.ts +43 -43
  283. package/dist/integrations/constants.js +7 -7
  284. package/dist/integrations/index.d.ts +3 -3
  285. package/dist/integrations/index.js +19 -19
  286. package/dist/integrations/mqtt/get.d.ts +1 -1
  287. package/dist/integrations/mqtt/get.js +2 -2
  288. package/dist/integrations/mqtt/index.d.ts +2 -2
  289. package/dist/integrations/mqtt/index.js +18 -18
  290. package/dist/integrations/mqtt/patch/index.d.ts +2 -2
  291. package/dist/integrations/mqtt/patch/index.js +18 -18
  292. package/dist/integrations/mqtt/patch/request.d.ts +3 -3
  293. package/dist/integrations/mqtt/patch/request.js +2 -2
  294. package/dist/integrations/mqtt/patch/response.d.ts +1 -1
  295. package/dist/integrations/mqtt/patch/response.js +2 -2
  296. package/dist/integrations/oneblink/index.d.ts +2 -2
  297. package/dist/integrations/oneblink/index.js +18 -18
  298. package/dist/integrations/oneblink/patch/index.d.ts +1 -1
  299. package/dist/integrations/oneblink/patch/index.js +17 -17
  300. package/dist/integrations/oneblink/patch/request.d.ts +8 -8
  301. package/dist/integrations/oneblink/patch/request.js +2 -2
  302. package/dist/integrations/oneblink/token.d.ts +6 -6
  303. package/dist/integrations/oneblink/token.js +2 -2
  304. package/dist/labels/[id]/get.d.ts +6 -6
  305. package/dist/labels/[id]/get.js +2 -2
  306. package/dist/labels/[id]/index.d.ts +2 -2
  307. package/dist/labels/[id]/index.js +18 -18
  308. package/dist/labels/[id]/patch/index.d.ts +2 -2
  309. package/dist/labels/[id]/patch/index.js +18 -18
  310. package/dist/labels/[id]/patch/request.d.ts +3 -3
  311. package/dist/labels/[id]/patch/request.js +2 -2
  312. package/dist/labels/[id]/patch/response.d.ts +1 -1
  313. package/dist/labels/[id]/patch/response.js +2 -2
  314. package/dist/labels/constants.d.ts +4 -4
  315. package/dist/labels/constants.js +2 -2
  316. package/dist/labels/get/index.d.ts +2 -2
  317. package/dist/labels/get/index.js +18 -18
  318. package/dist/labels/get/query.d.ts +11 -11
  319. package/dist/labels/get/query.js +2 -2
  320. package/dist/labels/get/response.d.ts +7 -7
  321. package/dist/labels/get/response.js +2 -2
  322. package/dist/labels/index.d.ts +4 -4
  323. package/dist/labels/index.js +20 -20
  324. package/dist/labels/post/index.d.ts +2 -2
  325. package/dist/labels/post/index.js +18 -18
  326. package/dist/labels/post/request.d.ts +4 -4
  327. package/dist/labels/post/request.js +2 -2
  328. package/dist/labels/post/response.d.ts +5 -5
  329. package/dist/labels/post/response.js +2 -2
  330. package/dist/locations/[id]/get.d.ts +39 -39
  331. package/dist/locations/[id]/get.js +2 -2
  332. package/dist/locations/[id]/index.d.ts +4 -4
  333. package/dist/locations/[id]/index.js +20 -20
  334. package/dist/locations/[id]/inventory.d.ts +9 -9
  335. package/dist/locations/[id]/inventory.js +2 -2
  336. package/dist/locations/[id]/patch/index.d.ts +2 -2
  337. package/dist/locations/[id]/patch/index.js +18 -18
  338. package/dist/locations/[id]/patch/request.d.ts +12 -12
  339. package/dist/locations/[id]/patch/request.js +2 -2
  340. package/dist/locations/[id]/patch/response.d.ts +7 -7
  341. package/dist/locations/[id]/patch/response.js +2 -2
  342. package/dist/locations/[id]/status.d.ts +4 -4
  343. package/dist/locations/[id]/status.js +2 -2
  344. package/dist/locations/constants.d.ts +13 -4
  345. package/dist/locations/constants.js +23 -14
  346. package/dist/locations/constants.js.map +1 -1
  347. package/dist/locations/count/index.d.ts +2 -2
  348. package/dist/locations/count/index.js +18 -18
  349. package/dist/locations/count/query.d.ts +1 -1
  350. package/dist/locations/count/query.js +2 -2
  351. package/dist/locations/count/response.d.ts +6 -6
  352. package/dist/locations/count/response.js +2 -2
  353. package/dist/locations/download/index.d.ts +2 -2
  354. package/dist/locations/download/index.js +18 -18
  355. package/dist/locations/download/query.d.ts +10 -10
  356. package/dist/locations/download/query.js +2 -2
  357. package/dist/locations/download/response.d.ts +3 -3
  358. package/dist/locations/download/response.js +2 -2
  359. package/dist/locations/errors.d.ts +3 -3
  360. package/dist/locations/errors.js +2 -2
  361. package/dist/locations/get/index.d.ts +2 -2
  362. package/dist/locations/get/index.js +18 -18
  363. package/dist/locations/get/query.d.ts +54 -32
  364. package/dist/locations/get/query.js +2 -2
  365. package/dist/locations/get/response.d.ts +7 -7
  366. package/dist/locations/get/response.js +2 -2
  367. package/dist/locations/index.d.ts +8 -8
  368. package/dist/locations/index.js +24 -24
  369. package/dist/locations/post/index.d.ts +2 -2
  370. package/dist/locations/post/index.js +18 -18
  371. package/dist/locations/post/request.d.ts +13 -13
  372. package/dist/locations/post/request.js +2 -2
  373. package/dist/locations/post/response.d.ts +11 -11
  374. package/dist/locations/post/response.js +2 -2
  375. package/dist/locations/suggestions/index.d.ts +2 -2
  376. package/dist/locations/suggestions/index.js +18 -18
  377. package/dist/locations/suggestions/query.d.ts +7 -7
  378. package/dist/locations/suggestions/query.js +2 -2
  379. package/dist/locations/suggestions/response.d.ts +15 -15
  380. package/dist/locations/suggestions/response.js +2 -2
  381. package/dist/manifests/[id]/get.d.ts +35 -35
  382. package/dist/manifests/[id]/get.js +38 -38
  383. package/dist/manifests/[id]/index.d.ts +2 -2
  384. package/dist/manifests/[id]/index.js +18 -18
  385. package/dist/manifests/[id]/patch/index.d.ts +2 -2
  386. package/dist/manifests/[id]/patch/index.js +18 -18
  387. package/dist/manifests/[id]/patch/request.d.ts +8 -8
  388. package/dist/manifests/[id]/patch/request.js +45 -45
  389. package/dist/manifests/[id]/patch/response.d.ts +1 -1
  390. package/dist/manifests/[id]/patch/response.js +2 -2
  391. package/dist/manifests/get/index.d.ts +2 -2
  392. package/dist/manifests/get/index.js +18 -18
  393. package/dist/manifests/get/query.d.ts +11 -11
  394. package/dist/manifests/get/query.js +2 -2
  395. package/dist/manifests/get/response.d.ts +7 -7
  396. package/dist/manifests/get/response.js +2 -2
  397. package/dist/manifests/index.d.ts +4 -4
  398. package/dist/manifests/index.js +20 -20
  399. package/dist/manifests/post/index.d.ts +2 -2
  400. package/dist/manifests/post/index.js +18 -18
  401. package/dist/manifests/post/request.d.ts +16 -16
  402. package/dist/manifests/post/request.js +51 -51
  403. package/dist/manifests/post/response.d.ts +5 -5
  404. package/dist/manifests/post/response.js +2 -2
  405. package/dist/manifests/suggestions/index.d.ts +2 -2
  406. package/dist/manifests/suggestions/index.js +18 -18
  407. package/dist/manifests/suggestions/query.d.ts +5 -5
  408. package/dist/manifests/suggestions/query.js +2 -2
  409. package/dist/manifests/suggestions/response.d.ts +15 -15
  410. package/dist/manifests/suggestions/response.js +2 -2
  411. package/dist/networks/constants.d.ts +6 -6
  412. package/dist/networks/constants.js +2 -2
  413. package/dist/networks/index.d.ts +1 -1
  414. package/dist/networks/index.js +17 -17
  415. package/dist/organisations/[id]/delete/index.d.ts +2 -2
  416. package/dist/organisations/[id]/delete/index.js +18 -18
  417. package/dist/organisations/[id]/delete/query.d.ts +3 -3
  418. package/dist/organisations/[id]/delete/query.js +2 -2
  419. package/dist/organisations/[id]/delete/response.d.ts +13 -13
  420. package/dist/organisations/[id]/delete/response.js +2 -2
  421. package/dist/organisations/[id]/get.d.ts +36 -29
  422. package/dist/organisations/[id]/get.js +2 -2
  423. package/dist/organisations/[id]/index.d.ts +4 -4
  424. package/dist/organisations/[id]/index.js +20 -20
  425. package/dist/organisations/[id]/patch/index.d.ts +2 -2
  426. package/dist/organisations/[id]/patch/index.js +18 -18
  427. package/dist/organisations/[id]/patch/request.d.ts +13 -11
  428. package/dist/organisations/[id]/patch/request.js +2 -2
  429. package/dist/organisations/[id]/patch/response.d.ts +1 -1
  430. package/dist/organisations/[id]/patch/response.js +2 -2
  431. package/dist/organisations/[id]/wifi/index.d.ts +2 -2
  432. package/dist/organisations/[id]/wifi/index.js +18 -18
  433. package/dist/organisations/[id]/wifi/query.d.ts +3 -3
  434. package/dist/organisations/[id]/wifi/query.js +2 -2
  435. package/dist/organisations/[id]/wifi/response.d.ts +4 -4
  436. package/dist/organisations/[id]/wifi/response.js +2 -2
  437. package/dist/organisations/constants.d.ts +55 -35
  438. package/dist/organisations/constants.js +12 -2
  439. package/dist/organisations/constants.js.map +1 -1
  440. package/dist/organisations/get/index.d.ts +2 -2
  441. package/dist/organisations/get/index.js +18 -18
  442. package/dist/organisations/get/query.d.ts +11 -11
  443. package/dist/organisations/get/query.js +2 -2
  444. package/dist/organisations/get/response.d.ts +7 -7
  445. package/dist/organisations/get/response.js +2 -2
  446. package/dist/organisations/index.d.ts +5 -5
  447. package/dist/organisations/index.js +21 -21
  448. package/dist/organisations/post/index.d.ts +2 -2
  449. package/dist/organisations/post/index.js +18 -18
  450. package/dist/organisations/post/request.d.ts +6 -6
  451. package/dist/organisations/post/request.js +2 -2
  452. package/dist/organisations/post/response.d.ts +1 -1
  453. package/dist/organisations/post/response.js +2 -2
  454. package/dist/organisations/sso/constants.d.ts +63 -48
  455. package/dist/organisations/sso/constants.js +65 -50
  456. package/dist/organisations/sso/constants.js.map +1 -1
  457. package/dist/organisations/sso/index.d.ts +2 -2
  458. package/dist/organisations/sso/index.js +18 -18
  459. package/dist/organisations/sso/types.d.ts +162 -114
  460. package/dist/organisations/sso/types.js +12 -12
  461. package/dist/readers/[id]/get.d.ts +41 -41
  462. package/dist/readers/[id]/get.js +2 -2
  463. package/dist/readers/[id]/index.d.ts +4 -4
  464. package/dist/readers/[id]/index.js +20 -20
  465. package/dist/readers/[id]/inventory/index.d.ts +1 -1
  466. package/dist/readers/[id]/inventory/index.js +17 -17
  467. package/dist/readers/[id]/inventory/response.d.ts +5 -5
  468. package/dist/readers/[id]/inventory/response.js +2 -2
  469. package/dist/readers/[id]/patch/index.d.ts +2 -2
  470. package/dist/readers/[id]/patch/index.js +18 -18
  471. package/dist/readers/[id]/patch/request.d.ts +13 -13
  472. package/dist/readers/[id]/patch/request.js +2 -2
  473. package/dist/readers/[id]/patch/response.d.ts +1 -1
  474. package/dist/readers/[id]/patch/response.js +2 -2
  475. package/dist/readers/[id]/status.d.ts +4 -4
  476. package/dist/readers/[id]/status.js +2 -2
  477. package/dist/readers/constants/deviceTypes.d.ts +43 -43
  478. package/dist/readers/constants/deviceTypes.js +198 -198
  479. package/dist/readers/constants/index.d.ts +2 -2
  480. package/dist/readers/constants/index.js +18 -18
  481. package/dist/readers/constants/types.d.ts +10 -10
  482. package/dist/readers/constants/types.js +24 -24
  483. package/dist/readers/count/index.d.ts +2 -2
  484. package/dist/readers/count/index.js +18 -18
  485. package/dist/readers/count/query.d.ts +1 -1
  486. package/dist/readers/count/query.js +2 -2
  487. package/dist/readers/count/response.d.ts +5 -5
  488. package/dist/readers/count/response.js +2 -2
  489. package/dist/readers/download/index.d.ts +2 -2
  490. package/dist/readers/download/index.js +18 -18
  491. package/dist/readers/download/query.d.ts +10 -10
  492. package/dist/readers/download/query.js +2 -2
  493. package/dist/readers/download/response.d.ts +3 -3
  494. package/dist/readers/download/response.js +2 -2
  495. package/dist/readers/get/index.d.ts +2 -2
  496. package/dist/readers/get/index.js +18 -18
  497. package/dist/readers/get/query.d.ts +36 -24
  498. package/dist/readers/get/query.js +2 -2
  499. package/dist/readers/get/response.d.ts +7 -7
  500. package/dist/readers/get/response.js +2 -2
  501. package/dist/readers/index.d.ts +8 -8
  502. package/dist/readers/index.js +24 -24
  503. package/dist/readers/post/index.d.ts +2 -2
  504. package/dist/readers/post/index.js +18 -18
  505. package/dist/readers/post/request.d.ts +14 -14
  506. package/dist/readers/post/request.js +2 -2
  507. package/dist/readers/post/response.d.ts +5 -5
  508. package/dist/readers/post/response.js +2 -2
  509. package/dist/readers/suggestions/index.d.ts +2 -2
  510. package/dist/readers/suggestions/index.js +18 -18
  511. package/dist/readers/suggestions/query.d.ts +5 -5
  512. package/dist/readers/suggestions/query.js +2 -2
  513. package/dist/readers/suggestions/response.d.ts +15 -15
  514. package/dist/readers/suggestions/response.js +2 -2
  515. package/dist/readers/user/index.d.ts +2 -2
  516. package/dist/readers/user/index.js +18 -18
  517. package/dist/readers/user/request.d.ts +3 -3
  518. package/dist/readers/user/request.js +2 -2
  519. package/dist/readers/user/response.d.ts +8 -8
  520. package/dist/readers/user/response.js +2 -2
  521. package/dist/reports.d.ts +38 -38
  522. package/dist/reports.js +2 -2
  523. package/dist/roles/[id]/get.d.ts +6 -6
  524. package/dist/roles/[id]/get.js +2 -2
  525. package/dist/roles/[id]/index.d.ts +1 -1
  526. package/dist/roles/[id]/index.js +17 -17
  527. package/dist/roles/get/index.d.ts +2 -2
  528. package/dist/roles/get/index.js +18 -18
  529. package/dist/roles/get/query.d.ts +7 -7
  530. package/dist/roles/get/query.js +2 -2
  531. package/dist/roles/get/response.d.ts +7 -7
  532. package/dist/roles/get/response.js +2 -2
  533. package/dist/roles/index.d.ts +3 -3
  534. package/dist/roles/index.js +19 -19
  535. package/dist/roles/post/index.d.ts +2 -2
  536. package/dist/roles/post/index.js +18 -18
  537. package/dist/roles/post/request.d.ts +6 -6
  538. package/dist/roles/post/request.js +2 -2
  539. package/dist/roles/post/response.d.ts +1 -1
  540. package/dist/roles/post/response.js +2 -2
  541. package/dist/semantic-queries/[id]/index.d.ts +1 -0
  542. package/dist/semantic-queries/[id]/index.js +18 -0
  543. package/dist/semantic-queries/[id]/index.js.map +1 -0
  544. package/dist/semantic-queries/[id]/patch/index.d.ts +2 -0
  545. package/dist/semantic-queries/[id]/patch/index.js +19 -0
  546. package/dist/semantic-queries/[id]/patch/index.js.map +1 -0
  547. package/dist/semantic-queries/[id]/patch/request.d.ts +20 -0
  548. package/dist/semantic-queries/[id]/patch/request.js +3 -0
  549. package/dist/semantic-queries/[id]/patch/request.js.map +1 -0
  550. package/dist/semantic-queries/[id]/patch/response.d.ts +1 -0
  551. package/dist/semantic-queries/[id]/patch/response.js +3 -0
  552. package/dist/semantic-queries/[id]/patch/response.js.map +1 -0
  553. package/dist/semantic-queries/get/index.d.ts +2 -0
  554. package/dist/semantic-queries/get/index.js +19 -0
  555. package/dist/semantic-queries/get/index.js.map +1 -0
  556. package/dist/semantic-queries/get/query.d.ts +18 -0
  557. package/dist/semantic-queries/get/query.js +3 -0
  558. package/dist/semantic-queries/get/query.js.map +1 -0
  559. package/dist/semantic-queries/get/response.d.ts +40 -0
  560. package/dist/semantic-queries/get/response.js +3 -0
  561. package/dist/semantic-queries/get/response.js.map +1 -0
  562. package/dist/semantic-queries/index.d.ts +4 -0
  563. package/dist/semantic-queries/index.js +21 -0
  564. package/dist/semantic-queries/index.js.map +1 -0
  565. package/dist/semantic-queries/post/index.d.ts +2 -0
  566. package/dist/semantic-queries/post/index.js +19 -0
  567. package/dist/semantic-queries/post/index.js.map +1 -0
  568. package/dist/semantic-queries/post/request.d.ts +56 -0
  569. package/dist/semantic-queries/post/request.js +3 -0
  570. package/dist/semantic-queries/post/request.js.map +1 -0
  571. package/dist/semantic-queries/post/response.d.ts +1 -0
  572. package/dist/semantic-queries/post/response.js +3 -0
  573. package/dist/semantic-queries/post/response.js.map +1 -0
  574. package/dist/semantic-queries/shared.d.ts +876 -0
  575. package/dist/semantic-queries/shared.js +319 -0
  576. package/dist/semantic-queries/shared.js.map +1 -0
  577. package/dist/shared/attachments.d.ts +29 -0
  578. package/dist/shared/attachments.js +11 -0
  579. package/dist/shared/attachments.js.map +1 -0
  580. package/dist/shared/body.d.ts +6 -6
  581. package/dist/shared/body.js +2 -2
  582. package/dist/shared/delete.d.ts +3 -3
  583. package/dist/shared/delete.js +2 -2
  584. package/dist/shared/embed.d.ts +22 -8
  585. package/dist/shared/embed.js +2 -2
  586. package/dist/shared/errors.d.ts +3 -3
  587. package/dist/shared/errors.js +2 -2
  588. package/dist/shared/headers.d.ts +3 -3
  589. package/dist/shared/headers.js +2 -2
  590. package/dist/shared/index.d.ts +13 -11
  591. package/dist/shared/index.js +29 -27
  592. package/dist/shared/index.js.map +1 -1
  593. package/dist/shared/path.d.ts +3 -3
  594. package/dist/shared/path.js +2 -2
  595. package/dist/shared/query.d.ts +12 -12
  596. package/dist/shared/query.js +2 -2
  597. package/dist/shared/readiness.d.ts +81 -0
  598. package/dist/shared/readiness.js +11 -0
  599. package/dist/shared/readiness.js.map +1 -0
  600. package/dist/shared/relative-date.d.ts +17 -17
  601. package/dist/shared/relative-date.js +11 -11
  602. package/dist/shared/sort.d.ts +12 -12
  603. package/dist/shared/sort.js +13 -13
  604. package/dist/shared/timestamp.d.ts +2 -2
  605. package/dist/shared/timestamp.js +4 -4
  606. package/dist/shared/timezone.d.ts +4 -4
  607. package/dist/shared/timezone.js +357 -357
  608. package/dist/snapshots/[id]/get.d.ts +256 -125
  609. package/dist/snapshots/[id]/get.js +34 -34
  610. package/dist/snapshots/[id]/get.js.map +1 -1
  611. package/dist/snapshots/[id]/index.d.ts +1 -1
  612. package/dist/snapshots/[id]/index.js +17 -17
  613. package/dist/snapshots/get/index.d.ts +2 -2
  614. package/dist/snapshots/get/index.js +18 -18
  615. package/dist/snapshots/get/query.d.ts +64 -25
  616. package/dist/snapshots/get/query.js +26 -4
  617. package/dist/snapshots/get/query.js.map +1 -1
  618. package/dist/snapshots/get/response.d.ts +7 -7
  619. package/dist/snapshots/get/response.js +2 -2
  620. package/dist/snapshots/index.d.ts +3 -3
  621. package/dist/snapshots/index.js +19 -19
  622. package/dist/snapshots/post/index.d.ts +2 -2
  623. package/dist/snapshots/post/index.js +18 -18
  624. package/dist/snapshots/post/request.d.ts +54 -33
  625. package/dist/snapshots/post/request.js +239 -239
  626. package/dist/snapshots/post/request.js.map +1 -1
  627. package/dist/snapshots/post/response.d.ts +5 -5
  628. package/dist/snapshots/post/response.js +2 -2
  629. package/dist/sso/discover/index.d.ts +2 -2
  630. package/dist/sso/discover/index.js +18 -18
  631. package/dist/sso/discover/request.d.ts +9 -9
  632. package/dist/sso/discover/request.js +2 -2
  633. package/dist/sso/discover/response.d.ts +17 -17
  634. package/dist/sso/discover/response.js +2 -2
  635. package/dist/sso/get/index.d.ts +1 -1
  636. package/dist/sso/get/index.js +17 -17
  637. package/dist/sso/get/response.d.ts +22 -22
  638. package/dist/sso/get/response.js +2 -2
  639. package/dist/sso/idp-setup.d.ts +32 -32
  640. package/dist/sso/idp-setup.js +2 -2
  641. package/dist/sso/index.d.ts +7 -7
  642. package/dist/sso/index.js +23 -23
  643. package/dist/sso/offboard/index.d.ts +1 -1
  644. package/dist/sso/offboard/index.js +17 -17
  645. package/dist/sso/offboard/response.d.ts +9 -9
  646. package/dist/sso/offboard/response.js +2 -2
  647. package/dist/sso/onboard/index.d.ts +2 -2
  648. package/dist/sso/onboard/index.js +18 -18
  649. package/dist/sso/onboard/request.d.ts +70 -59
  650. package/dist/sso/onboard/request.js +2 -2
  651. package/dist/sso/onboard/response.d.ts +25 -25
  652. package/dist/sso/onboard/response.js +2 -2
  653. package/dist/sso/revert/index.d.ts +1 -1
  654. package/dist/sso/revert/index.js +17 -17
  655. package/dist/sso/revert/response.d.ts +33 -33
  656. package/dist/sso/revert/response.js +2 -2
  657. package/dist/sso/sso-mappings/index.d.ts +2 -2
  658. package/dist/sso/sso-mappings/index.js +18 -18
  659. package/dist/sso/sso-mappings/request.d.ts +19 -14
  660. package/dist/sso/sso-mappings/request.js +2 -2
  661. package/dist/sso/sso-mappings/response.d.ts +9 -9
  662. package/dist/sso/sso-mappings/response.js +2 -2
  663. package/dist/submissions/[id]/index.d.ts +1 -0
  664. package/dist/submissions/[id]/index.js +18 -0
  665. package/dist/submissions/[id]/index.js.map +1 -0
  666. package/dist/submissions/[id]/void/post.d.ts +6 -0
  667. package/dist/submissions/[id]/void/post.js +3 -0
  668. package/dist/submissions/[id]/void/post.js.map +1 -0
  669. package/dist/submissions/constants.d.ts +14 -0
  670. package/dist/submissions/constants.js +21 -0
  671. package/dist/submissions/constants.js.map +1 -0
  672. package/dist/submissions/get/index.d.ts +2 -0
  673. package/dist/submissions/get/index.js +19 -0
  674. package/dist/submissions/get/index.js.map +1 -0
  675. package/dist/submissions/get/query.d.ts +14 -0
  676. package/dist/submissions/get/query.js +3 -0
  677. package/dist/submissions/get/query.js.map +1 -0
  678. package/dist/submissions/get/response.d.ts +6 -0
  679. package/dist/submissions/get/response.js +3 -0
  680. package/dist/submissions/get/response.js.map +1 -0
  681. package/dist/submissions/index.d.ts +6 -0
  682. package/dist/submissions/index.js +23 -0
  683. package/dist/submissions/index.js.map +1 -0
  684. package/dist/submissions/post/index.d.ts +2 -0
  685. package/dist/submissions/post/index.js +19 -0
  686. package/dist/submissions/post/index.js.map +1 -0
  687. package/dist/submissions/post/request.d.ts +17 -0
  688. package/dist/submissions/post/request.js +3 -0
  689. package/dist/submissions/post/request.js.map +1 -0
  690. package/dist/submissions/post/response.d.ts +22 -0
  691. package/dist/submissions/post/response.js +3 -0
  692. package/dist/submissions/post/response.js.map +1 -0
  693. package/dist/submissions/shared.d.ts +133 -0
  694. package/dist/submissions/shared.js +3 -0
  695. package/dist/submissions/shared.js.map +1 -0
  696. package/dist/submissions/uploads/[fileId]/get.d.ts +11 -0
  697. package/dist/submissions/uploads/[fileId]/get.js +3 -0
  698. package/dist/submissions/uploads/[fileId]/get.js.map +1 -0
  699. package/dist/submissions/uploads/[fileId]/index.d.ts +1 -0
  700. package/dist/submissions/uploads/[fileId]/index.js +18 -0
  701. package/dist/submissions/uploads/[fileId]/index.js.map +1 -0
  702. package/dist/submissions/uploads/index.d.ts +2 -0
  703. package/dist/submissions/uploads/index.js +19 -0
  704. package/dist/submissions/uploads/index.js.map +1 -0
  705. package/dist/submissions/uploads/post/index.d.ts +2 -0
  706. package/dist/submissions/uploads/post/index.js +19 -0
  707. package/dist/submissions/uploads/post/index.js.map +1 -0
  708. package/dist/submissions/uploads/post/request.d.ts +9 -0
  709. package/dist/submissions/uploads/post/request.js +3 -0
  710. package/dist/submissions/uploads/post/request.js.map +1 -0
  711. package/dist/submissions/uploads/post/response.d.ts +18 -0
  712. package/dist/submissions/uploads/post/response.js +3 -0
  713. package/dist/submissions/uploads/post/response.js.map +1 -0
  714. package/dist/system/index.d.ts +5 -5
  715. package/dist/system/index.js +2 -2
  716. package/dist/tags/constants.d.ts +9 -9
  717. package/dist/tags/constants.js +2 -2
  718. package/dist/tags/errors.d.ts +19 -19
  719. package/dist/tags/errors.js +2 -2
  720. package/dist/tags/get/index.d.ts +2 -2
  721. package/dist/tags/get/index.js +18 -18
  722. package/dist/tags/get/query.d.ts +3 -3
  723. package/dist/tags/get/query.js +2 -2
  724. package/dist/tags/get/response.d.ts +7 -7
  725. package/dist/tags/get/response.js +2 -2
  726. package/dist/tags/index.d.ts +3 -3
  727. package/dist/tags/index.js +19 -19
  728. package/dist/telemetry.d.ts +10 -10
  729. package/dist/telemetry.js +2 -2
  730. package/dist/types/[id]/get.d.ts +69 -39
  731. package/dist/types/[id]/get.js +2 -2
  732. package/dist/types/[id]/index.d.ts +2 -2
  733. package/dist/types/[id]/index.js +18 -18
  734. package/dist/types/[id]/patch/index.d.ts +2 -2
  735. package/dist/types/[id]/patch/index.js +18 -18
  736. package/dist/types/[id]/patch/request.d.ts +33 -13
  737. package/dist/types/[id]/patch/request.js +2 -2
  738. package/dist/types/[id]/patch/response.d.ts +1 -1
  739. package/dist/types/[id]/patch/response.js +2 -2
  740. package/dist/types/constants.d.ts +9 -0
  741. package/dist/types/constants.js +13 -0
  742. package/dist/types/constants.js.map +1 -0
  743. package/dist/types/get/index.d.ts +2 -2
  744. package/dist/types/get/index.js +18 -18
  745. package/dist/types/get/query.d.ts +10 -10
  746. package/dist/types/get/query.js +2 -2
  747. package/dist/types/get/response.d.ts +7 -7
  748. package/dist/types/get/response.js +2 -2
  749. package/dist/types/hierarchy/index.d.ts +1 -1
  750. package/dist/types/hierarchy/index.js +17 -17
  751. package/dist/types/hierarchy/response.d.ts +8 -8
  752. package/dist/types/hierarchy/response.js +27 -27
  753. package/dist/types/index.d.ts +6 -5
  754. package/dist/types/index.js +22 -21
  755. package/dist/types/index.js.map +1 -1
  756. package/dist/types/post/index.d.ts +2 -2
  757. package/dist/types/post/index.js +18 -18
  758. package/dist/types/post/request.d.ts +110 -84
  759. package/dist/types/post/request.js +24 -24
  760. package/dist/types/post/request.js.map +1 -1
  761. package/dist/types/post/response.d.ts +5 -5
  762. package/dist/types/post/response.js +2 -2
  763. package/dist/types/suggestions/index.d.ts +2 -2
  764. package/dist/types/suggestions/index.js +18 -18
  765. package/dist/types/suggestions/query.d.ts +5 -5
  766. package/dist/types/suggestions/query.js +2 -2
  767. package/dist/types/suggestions/response.d.ts +15 -15
  768. package/dist/types/suggestions/response.js +2 -2
  769. package/dist/usergroups/[id]/index.d.ts +1 -0
  770. package/dist/usergroups/[id]/index.js +18 -0
  771. package/dist/usergroups/[id]/index.js.map +1 -0
  772. package/dist/usergroups/[id]/patch/index.d.ts +2 -0
  773. package/dist/usergroups/[id]/patch/index.js +19 -0
  774. package/dist/usergroups/[id]/patch/index.js.map +1 -0
  775. package/dist/usergroups/[id]/patch/request.d.ts +23 -0
  776. package/dist/usergroups/[id]/patch/request.js +3 -0
  777. package/dist/usergroups/[id]/patch/request.js.map +1 -0
  778. package/dist/usergroups/[id]/patch/response.d.ts +1 -0
  779. package/dist/usergroups/[id]/patch/response.js +3 -0
  780. package/dist/usergroups/[id]/patch/response.js.map +1 -0
  781. package/dist/usergroups/access.d.ts +100 -0
  782. package/dist/usergroups/access.js +24 -0
  783. package/dist/usergroups/access.js.map +1 -0
  784. package/dist/usergroups/get/index.d.ts +2 -0
  785. package/dist/usergroups/get/index.js +19 -0
  786. package/dist/usergroups/get/index.js.map +1 -0
  787. package/dist/usergroups/get/query.d.ts +12 -0
  788. package/dist/usergroups/get/query.js +3 -0
  789. package/dist/usergroups/get/query.js.map +1 -0
  790. package/dist/usergroups/get/response.d.ts +44 -0
  791. package/dist/usergroups/get/response.js +3 -0
  792. package/dist/usergroups/get/response.js.map +1 -0
  793. package/dist/usergroups/index.d.ts +5 -0
  794. package/dist/usergroups/index.js +22 -0
  795. package/dist/usergroups/index.js.map +1 -0
  796. package/dist/usergroups/post/index.d.ts +2 -0
  797. package/dist/usergroups/post/index.js +19 -0
  798. package/dist/usergroups/post/index.js.map +1 -0
  799. package/dist/usergroups/post/request.d.ts +17 -0
  800. package/dist/usergroups/post/request.js +3 -0
  801. package/dist/usergroups/post/request.js.map +1 -0
  802. package/dist/usergroups/post/response.d.ts +1 -0
  803. package/dist/usergroups/post/response.js +3 -0
  804. package/dist/usergroups/post/response.js.map +1 -0
  805. package/dist/usergroups/shared.d.ts +8 -0
  806. package/dist/usergroups/shared.js +11 -0
  807. package/dist/usergroups/shared.js.map +1 -0
  808. package/dist/users/[id]/disable.d.ts +7 -7
  809. package/dist/users/[id]/disable.js +2 -2
  810. package/dist/users/[id]/enable.d.ts +6 -6
  811. package/dist/users/[id]/enable.js +2 -2
  812. package/dist/users/[id]/get/index.d.ts +2 -2
  813. package/dist/users/[id]/get/index.js +18 -18
  814. package/dist/users/[id]/get/query.d.ts +3 -3
  815. package/dist/users/[id]/get/query.js +2 -2
  816. package/dist/users/[id]/get/response.d.ts +39 -41
  817. package/dist/users/[id]/get/response.js +2 -2
  818. package/dist/users/[id]/index.d.ts +5 -5
  819. package/dist/users/[id]/index.js +21 -21
  820. package/dist/users/[id]/key.d.ts +3 -3
  821. package/dist/users/[id]/key.js +2 -2
  822. package/dist/users/[id]/patch/index.d.ts +2 -2
  823. package/dist/users/[id]/patch/index.js +18 -18
  824. package/dist/users/[id]/patch/request.d.ts +10 -6
  825. package/dist/users/[id]/patch/request.js +2 -2
  826. package/dist/users/[id]/patch/response.d.ts +1 -1
  827. package/dist/users/[id]/patch/response.js +2 -2
  828. package/dist/users/console.d.ts +15 -0
  829. package/dist/users/console.js +5 -0
  830. package/dist/users/console.js.map +1 -0
  831. package/dist/users/constants.d.ts +2 -2
  832. package/dist/users/constants.js +4 -4
  833. package/dist/users/current.d.ts +108 -42
  834. package/dist/users/current.js +2 -2
  835. package/dist/users/get/index.d.ts +2 -2
  836. package/dist/users/get/index.js +18 -18
  837. package/dist/users/get/query.d.ts +15 -17
  838. package/dist/users/get/query.js +2 -2
  839. package/dist/users/get/response.d.ts +7 -7
  840. package/dist/users/get/response.js +2 -2
  841. package/dist/users/home-layout/index.d.ts +3 -0
  842. package/dist/users/home-layout/index.js +20 -0
  843. package/dist/users/home-layout/index.js.map +1 -0
  844. package/dist/users/home-layout/request.d.ts +5 -0
  845. package/dist/users/home-layout/request.js +3 -0
  846. package/dist/users/home-layout/request.js.map +1 -0
  847. package/dist/users/home-layout/response.d.ts +5 -0
  848. package/dist/users/home-layout/response.js +3 -0
  849. package/dist/users/home-layout/response.js.map +1 -0
  850. package/dist/users/home-layout/shared.d.ts +288 -0
  851. package/dist/users/home-layout/shared.js +30 -0
  852. package/dist/users/home-layout/shared.js.map +1 -0
  853. package/dist/users/index.d.ts +9 -7
  854. package/dist/users/index.js +25 -23
  855. package/dist/users/index.js.map +1 -1
  856. package/dist/users/invites.d.ts +19 -19
  857. package/dist/users/invites.js +2 -2
  858. package/dist/users/password-reset.d.ts +33 -26
  859. package/dist/users/password-reset.js +2 -2
  860. package/dist/users/post/index.d.ts +2 -2
  861. package/dist/users/post/index.js +18 -18
  862. package/dist/users/post/request.d.ts +25 -14
  863. package/dist/users/post/request.js +2 -2
  864. package/dist/users/post/response.d.ts +1 -1
  865. package/dist/users/post/response.js +2 -2
  866. package/dist/views/[id]/index.d.ts +1 -1
  867. package/dist/views/[id]/index.js +17 -17
  868. package/dist/views/[id]/patch/index.d.ts +2 -2
  869. package/dist/views/[id]/patch/index.js +18 -18
  870. package/dist/views/[id]/patch/request.d.ts +9 -9
  871. package/dist/views/[id]/patch/request.js +2 -2
  872. package/dist/views/[id]/patch/response.d.ts +1 -1
  873. package/dist/views/[id]/patch/response.js +2 -2
  874. package/dist/views/get/index.d.ts +2 -2
  875. package/dist/views/get/index.js +18 -18
  876. package/dist/views/get/query.d.ts +12 -12
  877. package/dist/views/get/query.js +2 -2
  878. package/dist/views/get/response.d.ts +20 -20
  879. package/dist/views/get/response.js +2 -2
  880. package/dist/views/index.d.ts +4 -4
  881. package/dist/views/index.js +20 -20
  882. package/dist/views/post/index.d.ts +2 -2
  883. package/dist/views/post/index.js +18 -18
  884. package/dist/views/post/request.d.ts +10 -10
  885. package/dist/views/post/request.js +2 -2
  886. package/dist/views/post/response.d.ts +1 -1
  887. package/dist/views/post/response.js +2 -2
  888. package/dist/views/shared.d.ts +27 -27
  889. package/dist/views/shared.js +2 -2
  890. package/dist/workflows/index.d.ts +44 -44
  891. package/dist/workflows/index.js +2 -2
  892. package/package.json +2 -2
@@ -0,0 +1,876 @@
1
+ import { SortOrders } from '../shared';
2
+ import { AssetSortField } from '../assets/get/query';
3
+ import { LocationSortField } from '../locations/get/query';
4
+ import { LocationStatus, LocationType } from '../locations/constants';
5
+ import { EventType } from '../events/constants';
6
+ import { DeviceType, ReaderType } from '../readers/constants';
7
+ import { SnapshotSortField, SnapshotTypeEnum } from '../snapshots/get/query';
8
+ import { FieldDataType } from '../fields/constants';
9
+ /**
10
+ * SEMANTIC QUERIES — the portable query language.
11
+ *
12
+ * A semantic query is a JSON list of typed conditions (ANDed together, nestable
13
+ * with and/or groups) over one entity type. Three parties speak this contract —
14
+ * the client filter UI that builds conditions, the LLM that generates them, and
15
+ * the server compiler that executes them — so this file is the single
16
+ * vocabulary all three encode.
17
+ *
18
+ * THE CLOSED-VOCABULARY RULE. Condition types, operators AND property names are
19
+ * closed sets: validation rejects an unknown property rather than ignoring it,
20
+ * at every level. This is not defensive tidiness — an LLM once invented a
21
+ * `"negate": true` property; ignoring it compiled NOT(X) as X, a query that ran
22
+ * successfully and returned exactly the complement of what was asked. Every
23
+ * defect class this design guards against fails SILENTLY (valid query, wrong
24
+ * rows), which is why an honest rejection always beats a plausible guess.
25
+ *
26
+ * There is deliberately NO general negation (no `not` group, no invertible
27
+ * flag). Expressible negatively: `notExists`, `ne`, `geolocation.exists:false`,
28
+ * `kit.isMember:false`. Anything else must surface as a validation issue,
29
+ * never an approximation.
30
+ *
31
+ * Descends from the G2G Chat prototype (see g2g-client
32
+ * `docs/semantic-query-decisions.md` while it lives, folding into
33
+ * TECHNICAL_DECISIONS.md) and the semantic-query specification errata.
34
+ */
35
+ /**
36
+ * What a semantic query targets. All but `manifest` execute; it is recorded so
37
+ * the classifier can name what it is declining, and so a stored query would
38
+ * never need retrofitting if it ever learns to speak.
39
+ */
40
+ export declare const semanticQueryEntityTypes: readonly ["asset", "location", "event", "reader", "snapshot", "manifest"];
41
+ export declare type SemanticQueryEntityType = (typeof semanticQueryEntityTypes)[number];
42
+ /**
43
+ * What a stored record IS, as opposed to what it targets.
44
+ * - `query` — a selector. Executing it returns rows.
45
+ * - `operation` — a selector PLUS verbs ("move everything matching this to
46
+ * Southport"). Only the DEFINITION is stored; execution belongs
47
+ * to the bulk-operations API when it exists.
48
+ */
49
+ export declare const semanticQueryKinds: readonly ["query", "operation"];
50
+ export declare type SemanticQueryKind = (typeof semanticQueryKinds)[number];
51
+ export declare const semanticQueryVisibilities: readonly ["private", "organisation"];
52
+ export declare type SemanticQueryVisibility = (typeof semanticQueryVisibilities)[number];
53
+ export declare const semanticRelativeDateBases: readonly ["day", "week", "month", "quarter", "year"];
54
+ export declare type SemanticRelativeDateBase = (typeof semanticRelativeDateBases)[number];
55
+ export declare const semanticRelativeDatePositions: readonly ["start", "end", "same"];
56
+ export declare type SemanticRelativeDatePosition = (typeof semanticRelativeDatePositions)[number];
57
+ /**
58
+ * A relative date, stored UNRESOLVED — that is the point. A saved query whose
59
+ * date resolved at save time silently means the wrong period forever; leaving
60
+ * it symbolic means "last 30 days" re-run next month means next month.
61
+ * Resolution happens at execution, against an explicit timezone.
62
+ *
63
+ * `offset`: 0 = this period, 1 = next, -1 = last, -30 = thirty periods ago.
64
+ *
65
+ * `position`:
66
+ * - `start` / `end` snap to the boundaries of the named period (calendar
67
+ * semantics — "start of last month").
68
+ * - `same` is the same day-of-month, `offset` periods away, clamped for short
69
+ * months (31 Jan + 1 month = 28/29 Feb). Without it "one month from today"
70
+ * is inexpressible — `{base:'month', offset:1, position:'start'}` is the 1st
71
+ * of next month and `{base:'day', offset:30}` drifts. Service and inspection
72
+ * intervals are quoted in months, so for date-setting operations `same` is
73
+ * the common case, not an edge case. Meaningless for `day` (the offset is
74
+ * already in days).
75
+ *
76
+ * Sibling of the platform's `DateCondition`/`DateOffset` (shared/relative-date
77
+ * .ts), which derives period boundaries from the comparison operator instead.
78
+ * This shape exists separately because it is what the LLM emits and what
79
+ * stored queries carry, and because `position: 'same'` has no `DateCondition`
80
+ * encoding. One resolver serves both (assets resolve-date).
81
+ */
82
+ export interface SemanticRelativeDate {
83
+ relative: true;
84
+ base: SemanticRelativeDateBase;
85
+ offset: number;
86
+ /** Required for week/month/quarter/year; optional for day. */
87
+ position?: SemanticRelativeDatePosition;
88
+ }
89
+ /** An absolute `"YYYY-MM-DD"` date, or a relative one. A range is always two conditions (gte + lt). */
90
+ export declare type SemanticDateValue = string | SemanticRelativeDate;
91
+ export declare const semanticFieldOperators: readonly ["eq", "ne", "gt", "gte", "lt", "lte", "contains", "exists", "notExists"];
92
+ export declare type SemanticFieldOperator = (typeof semanticFieldOperators)[number];
93
+ export declare const semanticTimestampOperators: readonly ["gt", "gte", "lt", "lte"];
94
+ export declare type SemanticTimestampOperator = (typeof semanticTimestampOperators)[number];
95
+ export declare const semanticComparisonOperators: readonly ["eq", "ne", "gt", "gte", "lt", "lte"];
96
+ export declare type SemanticComparisonOperator = (typeof semanticComparisonOperators)[number];
97
+ export declare const semanticSetOperators: readonly ["any", "all"];
98
+ export declare type SemanticSetOperator = (typeof semanticSetOperators)[number];
99
+ /**
100
+ * Grouping. Two interfaces rather than one with `type: 'and' | 'or'` so that
101
+ * `Extract<SemanticQueryCondition, { type: 'or' }>` narrows — with a shared
102
+ * interface it collapses to `never`.
103
+ */
104
+ export interface SemanticAndCondition {
105
+ type: 'and';
106
+ conditions: SemanticQueryCondition[];
107
+ }
108
+ export interface SemanticOrCondition {
109
+ type: 'or';
110
+ conditions: SemanticQueryCondition[];
111
+ }
112
+ /** Matches a type subtree by pipe-delimited path ("Vehicle|Forklift|"). */
113
+ export interface SemanticAssetTypeCondition {
114
+ type: 'assetType';
115
+ path: string;
116
+ /** Default true — the type and everything under it. False = exact type only. */
117
+ includeSubtypes?: boolean;
118
+ }
119
+ /**
120
+ * Matches a location subtree by pipe-delimited path. `location` is where the
121
+ * asset currently IS; `homeLocation` is where it BELONGS — a fixed, often
122
+ * high-level node. Conflating them fails silently, so they are distinct types.
123
+ *
124
+ * Exactly one of `path` and `hasAny` (the validator enforces it), the same
125
+ * shape as `withAsset`: a specific location, or any / none. `hasAny` is for
126
+ * `location` only — every asset has a home location — and is the word the
127
+ * Assets-by-location view's "Map" row drills on: not at any named location,
128
+ * combined with the seen statuses (`locationStatus`). It reads the stored
129
+ * location PATH, the field that view groups on and that its index holds; the
130
+ * path and the location id have always come together.
131
+ */
132
+ export interface SemanticAssetLocationCondition {
133
+ type: 'location' | 'homeLocation';
134
+ path?: string;
135
+ /** Default true. */
136
+ includeSublocations?: boolean;
137
+ /** At any named location at all (or at none, when false). `location` only. */
138
+ hasAny?: boolean;
139
+ }
140
+ /**
141
+ * Assets currently travelling with another asset — the defibrillator in the
142
+ * ambulance. (The carrier side — "can hold other assets" — is deliberately not
143
+ * in the language: ruled out 2026-07-31.)
144
+ *
145
+ * NOTE the producer gap (prototype finding #12): nothing can currently supply
146
+ * an `assetId` — the AI is never asked for an id (models invent them, and a
147
+ * fabricated id runs and matches nothing) and the client UI has no
148
+ * asset-picking filter. PARKED by ruling (Aaron, 2026-08-03): a peer solution
149
+ * is incoming; until then the AI declines "what's in <asset>" honestly and
150
+ * only `hasAny` is produced.
151
+ */
152
+ export interface SemanticWithAssetCondition {
153
+ type: 'withAsset';
154
+ /** With one specific asset. */
155
+ assetId?: string;
156
+ /** With any asset at all (or none, when false). */
157
+ hasAny?: boolean;
158
+ }
159
+ /**
160
+ * A custom-field condition.
161
+ *
162
+ * `ne` INCLUDES UNSET by default: "Ownership ≠ QH" counts assets where the
163
+ * field is absent, because that is how the English reads. On a sparse field
164
+ * the two readings differ by orders of magnitude (2 rows vs 785 measured).
165
+ * `includeUnset: false` opts into the strict has-the-field-and-differs
166
+ * reading.
167
+ *
168
+ * Fields whose values live on the asset TYPE (inherited down the type
169
+ * hierarchy) are the compiler's problem, not the caller's: the condition shape
170
+ * is identical and the compiler resolves type-level values itself. Without
171
+ * that, the flagship "assets by Manufacturer" query matches nothing.
172
+ */
173
+ export interface SemanticCustomFieldCondition {
174
+ type: 'customField';
175
+ fieldName: string;
176
+ /** Advisory only — the authoritative dataType comes from the field catalogue. */
177
+ dataType?: FieldDataType;
178
+ operator: SemanticFieldOperator;
179
+ value?: string | number | boolean | SemanticRelativeDate;
180
+ /** For `ne` only. Default true. */
181
+ includeUnset?: boolean;
182
+ }
183
+ /**
184
+ * The timestamp family:
185
+ * - `createdDate` — when the asset was created
186
+ * - `lastUpdated` — the asset's own record edited through the APIs
187
+ * - `lastChanged` — ANY system touched the asset, including location /
188
+ * telemetry updates (drives offline-sync deltas)
189
+ * - `lastSeen` / `firstSeen` — detection timestamps
190
+ *
191
+ * "Edited / record changed" wording maps to `lastUpdated`; "moved / touched /
192
+ * anything happened" maps to `lastChanged` — genuinely different questions
193
+ * with substantially different answers.
194
+ *
195
+ * `lt`/`lte` INCLUDE NEVER-SET by default: none of these fields exist on an
196
+ * asset that has never been modified/seen, so a naive "not updated since
197
+ * March" excludes exactly the assets the user is usually looking for.
198
+ * `includeNeverSet: false` opts out.
199
+ *
200
+ * Comparison operators only — bare timestamp existence was ruled out of the
201
+ * language (gap #6, 2026-07-31); "never seen" is `locationStatus: NEVERSEEN`.
202
+ */
203
+ export interface SemanticTimestampCondition {
204
+ type: 'createdDate' | 'lastUpdated' | 'lastChanged' | 'lastSeen' | 'firstSeen';
205
+ operator: SemanticTimestampOperator;
206
+ /** Required for comparisons; forbidden for exists/notExists. */
207
+ value?: SemanticDateValue;
208
+ /** For `lt`/`lte` only. Default true. */
209
+ includeNeverSet?: boolean;
210
+ }
211
+ /** Whether the asset has map coordinates. Nothing more — "online" is not a concept assets have. */
212
+ export interface SemanticGeolocationCondition {
213
+ type: 'geolocation';
214
+ exists: boolean;
215
+ }
216
+ /** Tag conditions take tag IDS, not display names. `any` (default) or `all`. */
217
+ export interface SemanticTagsCondition {
218
+ type: 'tags';
219
+ operator?: SemanticSetOperator;
220
+ values: string[];
221
+ }
222
+ export declare const semanticTelemetryFields: readonly ["battery", "temperature", "voltage"];
223
+ export declare type SemanticTelemetryField = (typeof semanticTelemetryFields)[number];
224
+ export interface SemanticTelemetryCondition {
225
+ type: 'telemetry';
226
+ field: SemanticTelemetryField;
227
+ operator: SemanticComparisonOperator;
228
+ value: number;
229
+ }
230
+ /** Readiness severity scale (contract shared/readiness.ts): 0 green, 1 amber, 2 red. */
231
+ export declare const semanticReadinessLevels: readonly [0, 1, 2];
232
+ export declare type SemanticReadinessLevel = (typeof semanticReadinessLevels)[number];
233
+ /**
234
+ * Readiness. Missing `readiness` on an asset means green — a query including
235
+ * level 0 must also match never-evaluated assets (the compiler owns that).
236
+ * `level` and `levels` are mutually exclusive.
237
+ */
238
+ export interface SemanticReadinessCondition {
239
+ type: 'readiness';
240
+ level?: SemanticReadinessLevel;
241
+ /** Any of several levels — e.g. [1, 2] for "not fully ready". */
242
+ levels?: SemanticReadinessLevel[];
243
+ }
244
+ /**
245
+ * Kits / grouping. Exactly one property may be set. The negative forms match
246
+ * assets where the flag is absent as well as false (the flags are stored
247
+ * true-or-absent).
248
+ *
249
+ * `parentAssetId` shares the withAsset producer gap above — parked the same
250
+ * way; the AI declines "members of kit <name>" until the incoming solution.
251
+ */
252
+ /** The four manifest-check states a kit can be in (`groupSatisfiesManifest`):
253
+ * satisfied (0) — the most recent manifest check passed; needsRecheck (1) — a
254
+ * later membership change invalidated that pass; notSatisfied (2) — the most
255
+ * recent check failed; neverChecked (absent) — no check has ever stamped the
256
+ * kit. */
257
+ export declare type SemanticManifestState = 'satisfied' | 'needsRecheck' | 'notSatisfied' | 'neverChecked';
258
+ export interface SemanticKitCondition {
259
+ type: 'kit';
260
+ /** The asset is itself a kit. */
261
+ isKit?: boolean;
262
+ /** The asset belongs to a kit. */
263
+ isMember?: boolean;
264
+ /**
265
+ * LEGACY two-state form of `manifest`, kept compiling forever for saved
266
+ * queries: true → manifest satisfied (0), false → manifest not satisfied
267
+ * (2). New queries use `manifest`, which can also say needsRecheck and
268
+ * neverChecked.
269
+ */
270
+ satisfied?: boolean;
271
+ /** The kit's manifest-check status (see `SemanticManifestState`).
272
+ * `neverChecked` self-scopes to kits — it never matches ordinary assets. */
273
+ manifest?: SemanticManifestState;
274
+ /** Members of one specific kit. */
275
+ parentAssetId?: string;
276
+ }
277
+ /**
278
+ * Location status ("currently dispatched", "never seen", …). `NEVERSEEN`
279
+ * matches assets with no state at all as well as the explicit status — the
280
+ * compiler owns that missing-state semantic.
281
+ */
282
+ export interface SemanticLocationStatusCondition {
283
+ type: 'locationStatus';
284
+ values: LocationStatus[];
285
+ }
286
+ /**
287
+ * Grouping — valid in every entity's vocabulary, because nesting is structure
288
+ * rather than subject matter.
289
+ */
290
+ export declare const semanticGroupConditionTypes: readonly ["and", "or"];
291
+ /**
292
+ * The ASSET vocabulary. Over a third of it is asset-only by nature —
293
+ * `readiness`, `kit`, `withAsset`, `telemetry`, `locationStatus` mean nothing
294
+ * for a reader or a snapshot.
295
+ */
296
+ export declare const semanticAssetConditionTypes: readonly ["and", "or", "assetType", "location", "homeLocation", "withAsset", "customField", "createdDate", "lastUpdated", "lastChanged", "lastSeen", "firstSeen", "geolocation", "tags", "telemetry", "readiness", "kit", "locationStatus", "seenWithoutLocation"];
297
+ /**
298
+ * A location subtree, by pipe-delimited path.
299
+ *
300
+ * `path` rather than reusing the asset vocabulary's `location`, deliberately.
301
+ * They are not the same fact: an asset's `location` is a RELATIONSHIP to
302
+ * another record, while a location's path is its own identity — and
303
+ * "location" as a condition on a location query reads as self-reference.
304
+ * (Storage note for implementors: the Mongo document keeps this pipe path in
305
+ * `name`, not in a `path` field.)
306
+ */
307
+ export interface SemanticLocationPathCondition {
308
+ type: 'path';
309
+ path: string;
310
+ /** Default true — this location and everything under it. */
311
+ includeSublocations?: boolean;
312
+ }
313
+ /** A location is FIXED (a room, a bay) or MOVING (a vehicle). */
314
+ export interface SemanticLocationTypeCondition {
315
+ type: 'locationType';
316
+ values: LocationType[];
317
+ }
318
+ /** Whether any reader is installed at the location. */
319
+ export interface SemanticLocationHasReadersCondition {
320
+ type: 'hasReaders';
321
+ value: boolean;
322
+ }
323
+ /** Whether a geofence polygon has been drawn for the location. */
324
+ export interface SemanticLocationGeofenceCondition {
325
+ type: 'geofence';
326
+ exists: boolean;
327
+ }
328
+ /** Locations carrying one specific manifest. Ids point; paths match. */
329
+ export interface SemanticLocationManifestCondition {
330
+ type: 'manifest';
331
+ manifestId: string;
332
+ }
333
+ /**
334
+ * The LOCATION vocabulary.
335
+ *
336
+ * Where a fact is genuinely the same as an asset's, it keeps the same word AND
337
+ * the same meaning — `tags`, `createdDate`, `lastUpdated`, `lastChanged`. That
338
+ * is the naming rule working: one fact stored the same way, sharing one
339
+ * emitter, not two coincidences that agree today.
340
+ *
341
+ * `geolocation` is the exception that proves it needs care. The word means the
342
+ * same thing — "has map coordinates" — but a location has TWO: the coordinates
343
+ * it was configured with, and the ones a moving location last reported
344
+ * (`state.geolocation`, which is what the asset condition reads). This
345
+ * condition means the CONFIGURED position; the observed one belongs to a
346
+ * separate condition if it is ever wanted, rather than being silently folded
347
+ * in here.
348
+ *
349
+ * DELIBERATELY ABSENT: `lastSeen`, `firstSeen` and `telemetry`. The location
350
+ * document declares all three and the parser exposes them, so they were easy
351
+ * to add — but nothing in this repo writes them (the reader/MQTT ingestion
352
+ * does, if anything does), no legacy filter or prototype condition ever
353
+ * offered them, and they could only ever apply to MOVING locations carrying a
354
+ * tracker. A condition over a field that may never be populated is one that
355
+ * runs and confidently returns nothing. They come back the day the ingestion
356
+ * is confirmed to populate them — the emitters are already shared, so it is a
357
+ * list entry and two switch arms.
358
+ *
359
+ * Also absent, and for a different reason: free text. There is no
360
+ * `nameContains` (the prototype had one) because search is a view option
361
+ * platform-wide, not a condition.
362
+ */
363
+ export declare const semanticLocationConditionTypes: readonly ["and", "or", "path", "locationType", "hasReaders", "geofence", "manifest", "tags", "geolocation", "createdDate", "lastUpdated", "lastChanged"];
364
+ /**
365
+ * The three timestamps a location answers for. Narrowed rather than reusing
366
+ * `SemanticTimestampCondition` whole: that interface covers all five, and
367
+ * leaving it wide would let `lastSeen` typecheck on a location query and rely
368
+ * on the runtime vocabulary alone to catch it — the type should say the same
369
+ * thing the gate does.
370
+ */
371
+ export declare type SemanticLocationTimestampCondition = Omit<SemanticTimestampCondition, 'type'> & {
372
+ type: 'createdDate' | 'lastUpdated' | 'lastChanged';
373
+ };
374
+ export declare type SemanticLocationCondition = SemanticAndCondition | SemanticOrCondition | SemanticLocationPathCondition | SemanticLocationTypeCondition | SemanticLocationHasReadersCondition | SemanticLocationGeofenceCondition | SemanticLocationManifestCondition | SemanticTagsCondition | SemanticGeolocationCondition | SemanticLocationTimestampCondition;
375
+ /** WHEN it happened. Events are always in the past. */
376
+ export interface SemanticEventOccurredCondition {
377
+ type: 'occurred';
378
+ operator: SemanticTimestampOperator;
379
+ value: SemanticDateValue;
380
+ }
381
+ /** WHAT KIND of event. One or more of the platform's closed set. */
382
+ export interface SemanticEventTypeCondition {
383
+ type: 'eventType';
384
+ values: EventType[];
385
+ }
386
+ /**
387
+ * WHERE it happened, by pipe-delimited path — the same path vocabulary the
388
+ * location entity uses, matched as a prefix so a parent covers its subtree.
389
+ * Events embed the location's stored path in `location.name`, exactly as a
390
+ * location document does.
391
+ *
392
+ * PARTIAL BY CONSTRUCTION, and the line between this and the withheld
393
+ * `assetType` is worth stating because it is fine.
394
+ *
395
+ * Most event types embed `location`; several do not. For most of those the
396
+ * omission is honest — a `UserSearch` or a `ReaderOnline` has no place it
397
+ * happened. `assetType` was withheld because the events missing `thing
398
+ * .typePath` DO have an asset type; it simply is not stored, so the filter
399
+ * would be silently wrong about real data.
400
+ *
401
+ * ONE case here is on the wrong side of that line: a `FormSubmitted` event
402
+ * embeds `location` only for a LOCATION-target run. An asset-target
403
+ * submission made at the same place embeds `thing` instead, so "submissions at
404
+ * Brisbane" returns the location-target subset and drops the rest without
405
+ * saying so. That is the identical failure `assetType` was withheld for, and
406
+ * it survives here for one reason: the flat `locations` filter on
407
+ * `GET /events` has always behaved this way, so removing it from the language
408
+ * would make the two paths disagree about the same word. Fixing it properly
409
+ * means embedding the location on asset-target submissions — a write-path
410
+ * change, not a query one. Until then the preamble says so out loud.
411
+ */
412
+ export interface SemanticEventLocationCondition {
413
+ type: 'location';
414
+ path: string;
415
+ /**
416
+ * Default true, matching the location entity. Carried rather than omitted
417
+ * because the boundary's property table is per-WORD, not per-entity: it
418
+ * already accepts `includeSublocations` on `location`, so leaving it
419
+ * unhandled here would mean an explicit `false` was accepted and silently
420
+ * behaved as `true` — a narrower query than asked for, quietly widened.
421
+ */
422
+ includeSublocations?: boolean;
423
+ }
424
+ /**
425
+ * WHICH READER saw it, by name.
426
+ *
427
+ * A name rather than an id, and that is safe here in a way it is not for
428
+ * assets: readers are a small named catalogue, so the name RESOLVES against
429
+ * real records at compile time and an unknown or ambiguous one is a loud
430
+ * failure. Nothing is guessed and no regex is left to match whatever it
431
+ * happens to match.
432
+ */
433
+ export interface SemanticEventReaderCondition {
434
+ type: 'reader';
435
+ name: string;
436
+ }
437
+ /**
438
+ * WHO did it, by name — resolved the same way, against the organisation's
439
+ * users.
440
+ *
441
+ * Matching on a resolved user id inherently excludes system-generated events:
442
+ * Slate movements and arrivals carry no user at all. That is correct and worth
443
+ * stating, because "what did Sarah do" should never sweep in a reader
444
+ * detection.
445
+ */
446
+ export interface SemanticEventUserCondition {
447
+ type: 'user';
448
+ name: string;
449
+ }
450
+ /**
451
+ * WHICH ACTION a form submission belongs to, by name.
452
+ *
453
+ * The action is the useful handle and the form behind it is an implementation
454
+ * detail (ruled by Steve Mann, 2026-07-29, carried over from the prototype).
455
+ * An action condition already implies a submission, so it constrains the event
456
+ * type too and needs no pairing with `eventType`.
457
+ *
458
+ * It constrains to BOTH submission types — `FormSubmitted` and
459
+ * `FormSubmissionVoided`, which also carries `actionName`. Pinning it to
460
+ * `FormSubmitted` alone read as the tighter, safer choice and was the opposite:
461
+ * pairing it with `eventType: ['FormSubmissionVoided']` to ask for voided
462
+ * pre-start checks then produced two contradictory type constraints, which
463
+ * compiles cleanly and returns zero rows forever. Narrowing to just submitted
464
+ * ones stays possible — that is what the `eventType` pairing is for.
465
+ */
466
+ export interface SemanticEventActionCondition {
467
+ type: 'action';
468
+ name: string;
469
+ }
470
+ /**
471
+ * The TYPE of the asset an event was about, by pipe-delimited path.
472
+ *
473
+ * Same word, shape and meaning as the asset vocabulary's `assetType` — hence
474
+ * the alias, exactly as the snapshot vocabulary does it.
475
+ *
476
+ * SCOPED TO THE ASSET CRUD EVENTS, and that is the whole design. It reads
477
+ * `thing.typePath`, which only `IAssetCrudSchema` events carry; every movement
478
+ * event embeds a reduced `thing` with no type at all. So the compiler and the
479
+ * evaluator both AND `ASSET_CRUD_EVENT_TYPES` onto this condition — at the
480
+ * LEAF, not across the query, so an or-group can still ask for movements in
481
+ * its other branch.
482
+ *
483
+ * Two things keep the narrowing honest rather than hidden, which is what kept
484
+ * this word out of the vocabulary until now:
485
+ * - pairing it with an `eventType` that names no CRUD event is REFUSED by
486
+ * validation, because that conjunction can only ever match nothing, and a
487
+ * silent empty feed is the failure this language exists to prevent;
488
+ * - the client states the scope on the chip ("creations, updates & deletions")
489
+ * rather than implying a filter over all activity.
490
+ *
491
+ * The wider version returns if movement events ever embed the type — that is a
492
+ * write-path change plus a backfill, and nothing here blocks it.
493
+ */
494
+ export declare type SemanticEventAssetTypeCondition = SemanticAssetTypeCondition;
495
+ /**
496
+ * The EVENT vocabulary.
497
+ *
498
+ * `location` borrows its WORD from the asset vocabulary but not its meaning:
499
+ * an asset's `location` is where the asset is now, an event's is where the
500
+ * event happened. Same name for the same kind of question, different subject —
501
+ * which is why each entity compiles it against its own field.
502
+ * `occurred` is its own word rather than reusing a timestamp
503
+ * name, because an event has exactly ONE time and calling it `createdDate`
504
+ * would invite the reading that events have several dates the way assets do.
505
+ */
506
+ export declare const semanticEventConditionTypes: readonly ["and", "or", "occurred", "eventType", "assetType", "location", "reader", "user", "action"];
507
+ export declare type SemanticEventCondition = SemanticAndCondition | SemanticOrCondition | SemanticEventOccurredCondition | SemanticEventTypeCondition | SemanticEventAssetTypeCondition | SemanticEventLocationCondition | SemanticEventReaderCondition | SemanticEventUserCondition | SemanticEventActionCondition;
508
+ /**
509
+ * WHEN the snapshot happened.
510
+ *
511
+ * Compiles to `submitted`, NOT `created` — and that is a deliberate departure
512
+ * from the prototype, which used `created`. The platform's own time filter
513
+ * (`timeFrom`/`timeTo` on `GET /snapshots`) bounds `submitted`, so compiling
514
+ * to `created` would mean the Date chip and an `occurred` condition disagreed
515
+ * about "snapshots last week" while both looked right.
516
+ *
517
+ * The cost, stated because it is silent: `submitted` is optional, so a
518
+ * snapshot that was never submitted matches NO `occurred` bound. That is
519
+ * exactly how the existing Date chip already behaves — this condition inherits
520
+ * the gap rather than introducing it. Sorting still offers both fields
521
+ * (`snapshotSortFields`), because sorting cannot hide a row.
522
+ */
523
+ export declare type SemanticSnapshotOccurredCondition = SemanticEventOccurredCondition;
524
+ /**
525
+ * WHICH KIND of field operation.
526
+ *
527
+ * Not a plain equality. `type` was added after the fact, so a legacy snapshot
528
+ * has none and is classified by whether it carries a manifest: no manifest
529
+ * means Stocktake, a manifest means Inventory. Dispatch always carries an
530
+ * explicit type. `snapshots/filters.ts` encodes exactly this, and the compiler
531
+ * reproduces it — matching on `type` alone would return zero legacy rows while
532
+ * the chip beside it returned them.
533
+ */
534
+ export interface SemanticSnapshotTypeCondition {
535
+ type: 'snapshotType';
536
+ values: SnapshotTypeEnum[];
537
+ }
538
+ /**
539
+ * The asset the snapshot was taken AGAINST, by id.
540
+ *
541
+ * Named `asset` rather than reusing `withAsset` because the fact differs: an
542
+ * asset's `withAsset` asks what a kit CONTAINS, while this asks what this
543
+ * operation was ABOUT.
544
+ *
545
+ * Read the field before believing the flat filter's own description. A
546
+ * snapshot embeds a single optional `asset` — its SUBJECT — while its contents
547
+ * live in `detectedAssets` / `sightedAssets` / `undetectedAssets`. The
548
+ * `assetIds` filter is documented as "snapshots containing specific assets"
549
+ * and does nothing of the kind: it matches `asset._id`, the subject. This
550
+ * condition means the subject too, so chip and query agree; asking what a
551
+ * snapshot CONTAINED is a different question that neither can answer yet.
552
+ *
553
+ * An id, not a name — the §B1 refusal. The AI cannot produce one (it never
554
+ * sees ids), so this is a chip-built condition, exactly as `withAsset` is.
555
+ */
556
+ export interface SemanticSnapshotAssetCondition {
557
+ type: 'asset';
558
+ assetId: string;
559
+ }
560
+ /**
561
+ * The TYPE of the snapshot's subject asset, by pipe-delimited path.
562
+ *
563
+ * Same word and same meaning as the asset vocabulary's `assetType`, applied to
564
+ * the subject asset (`asset.typePath`). Carries the subject-not-contents
565
+ * caveat above.
566
+ */
567
+ export declare type SemanticSnapshotAssetTypeCondition = SemanticAssetTypeCondition;
568
+ /**
569
+ * WHERE the snapshot was taken, by pipe-delimited path.
570
+ *
571
+ * `location.path` is absent on legacy snapshots, so a path condition does not
572
+ * see them. That is the same acceptance already recorded for record scope
573
+ * (usergroups S7: "Legacy snapshots pre-date that field and stay hidden to
574
+ * scoped callers"), so the language matches the platform rather than inventing
575
+ * a second answer. The flat filter softens it only when BOTH `locationIds` and
576
+ * `locationPathBeginsWith` are supplied — a semantic condition carries one
577
+ * path and has no id to pair with it.
578
+ */
579
+ export declare type SemanticSnapshotLocationCondition = SemanticEventLocationCondition;
580
+ /**
581
+ * The manifest the operation ran against, and/or how the check came out.
582
+ * Forked from the location alias the day it grew `satisfied` — extending the
583
+ * alias in place would have leaked the property into the location vocabulary.
584
+ *
585
+ * `satisfied` reads the snapshot's frozen `c_satisfiesManifest` annotation by
586
+ * exact match: `true` = the check stamped satisfied, `false` = it stamped not
587
+ * satisfied. Snapshots that never stamped a verdict (stocktakes, location
588
+ * checks, records predating the annotation) carry no flag and match NEITHER
589
+ * polarity — never `$ne`. At least one of the two keys must be present.
590
+ */
591
+ export interface SemanticSnapshotManifestCondition {
592
+ type: 'manifest';
593
+ /** Ids point; paths match. Optional since `satisfied` can stand alone. */
594
+ manifestId?: string;
595
+ /** Exact-match against the frozen check verdict. */
596
+ satisfied?: boolean;
597
+ }
598
+ /** WHO ran it, by name — resolved against the org's users, as events do. */
599
+ export declare type SemanticSnapshotUserCondition = SemanticEventUserCondition;
600
+ /** WHICH READER took it, by name — resolved the same way. */
601
+ export declare type SemanticSnapshotReaderCondition = SemanticEventReaderCondition;
602
+ /**
603
+ * The SNAPSHOT vocabulary.
604
+ *
605
+ * Full parity with the prototype's six words, plus `assetType` and `reader`,
606
+ * which its descriptor lacked and the platform's flat filters already support.
607
+ *
608
+ * Nothing is withheld here, and that is worth contrasting with events. The
609
+ * prototype matched `asset`, `user` and `manifest` by case-insensitive regex
610
+ * over a denormalised name — the failure the asset vocabulary refuses, three
611
+ * times over. It survives translation intact only because this entity stores
612
+ * real ids for all three, so the honest form costs no capability. Where it
613
+ * could not (a name for `user`), the event ladder already solved it.
614
+ *
615
+ * Absent for the standing reason: free text. No `nameContains` — search is a
616
+ * view option platform-wide, never a stored condition.
617
+ */
618
+ export declare const semanticSnapshotConditionTypes: readonly ["and", "or", "occurred", "snapshotType", "asset", "assetType", "location", "manifest", "user", "reader"];
619
+ export declare type SemanticSnapshotCondition = SemanticAndCondition | SemanticOrCondition | SemanticSnapshotOccurredCondition | SemanticSnapshotTypeCondition | SemanticSnapshotAssetCondition | SemanticSnapshotAssetTypeCondition | SemanticSnapshotLocationCondition | SemanticSnapshotManifestCondition | SemanticSnapshotUserCondition | SemanticSnapshotReaderCondition;
620
+ /** The hardware model. A closed platform set (`DEVICE_TYPES`). */
621
+ export interface SemanticReaderDeviceTypeCondition {
622
+ type: 'deviceType';
623
+ values: DeviceType[];
624
+ }
625
+ /**
626
+ * The reader's BEHAVIOUR — fixed in place, roving, or itself moving
627
+ * (`READER_TYPES`). Named `readerType` rather than `type`, which is the wire
628
+ * key every condition already uses for its own discriminator.
629
+ */
630
+ export interface SemanticReaderTypeCondition {
631
+ type: 'readerType';
632
+ values: ReaderType[];
633
+ }
634
+ /**
635
+ * WHERE the reader is installed, by pipe-delimited path.
636
+ *
637
+ * Compiles against `locationName`, which holds the location's FULL
638
+ * pipe-terminated path (`readers/helpers.ts` copies `location.name`, and a
639
+ * location document's `name` is its path). The flat `locationIds` filter
640
+ * answers a different question — these exact locations — and the two coexist,
641
+ * exactly as they do for assets.
642
+ */
643
+ export declare type SemanticReaderLocationCondition = SemanticEventLocationCondition;
644
+ /**
645
+ * The asset this reader is attached to, by id.
646
+ *
647
+ * An id, never a name. The prototype matched `assetName` with a
648
+ * case-insensitive regex, which is the failure that makes "BC-A1" also return
649
+ * "BC-A10".
650
+ */
651
+ export interface SemanticReaderAttachedAssetCondition {
652
+ type: 'attachedAsset';
653
+ assetId: string;
654
+ }
655
+ /**
656
+ * Whether the reader is online RIGHT NOW.
657
+ *
658
+ * Split from `hasReported`, and this is where we do better than the prototype
659
+ * rather than merely differently. Its `online` condition folded the two
660
+ * together — its own comment concedes why: "`state` is absent on readers in
661
+ * several dev orgs, so 'offline' must also match readers that have never
662
+ * reported". So asking for offline readers returned the genuinely-offline AND
663
+ * the never-installed, with no way to tell them apart or to ask for either
664
+ * alone. The platform's flat filters have always kept them separate
665
+ * (`isOnline` vs `hasReported`); the language now does too.
666
+ */
667
+ export interface SemanticReaderOnlineCondition {
668
+ type: 'online';
669
+ value: boolean;
670
+ }
671
+ /** Whether the reader has EVER reported. See `online` for why this is its own word. */
672
+ export interface SemanticReaderHasReportedCondition {
673
+ type: 'hasReported';
674
+ value: boolean;
675
+ }
676
+ /** Whether the reader has reported map coordinates. */
677
+ export interface SemanticReaderHasGeolocationCondition {
678
+ type: 'hasGeolocation';
679
+ value: boolean;
680
+ }
681
+ /**
682
+ * The READER vocabulary.
683
+ *
684
+ * Five of the prototype's six words, plus `hasReported` and `hasGeolocation`
685
+ * that it had no form for. The sixth (`nameContains`) is refused above.
686
+ *
687
+ * Note what is NOT here: readers carry no user-group scope, and this
688
+ * vocabulary does not add one. `usergroups/scope.ts` lists them among the
689
+ * surfaces deliberately unscoped in v1, and filtering a set the caller can
690
+ * already read in full reveals nothing new.
691
+ */
692
+ export declare const semanticReaderConditionTypes: readonly ["and", "or", "deviceType", "readerType", "location", "attachedAsset", "online", "hasReported", "hasGeolocation"];
693
+ export declare type SemanticReaderCondition = SemanticAndCondition | SemanticOrCondition | SemanticReaderDeviceTypeCondition | SemanticReaderTypeCondition | SemanticReaderLocationCondition | SemanticReaderAttachedAssetCondition | SemanticReaderOnlineCondition | SemanticReaderHasReportedCondition | SemanticReaderHasGeolocationCondition;
694
+ /**
695
+ * WHICH WORDS EACH ENTITY KNOWS — the closed vocabulary, per entity.
696
+ *
697
+ * The rule only has teeth if "unknown" is decidable for the entity being
698
+ * queried. In one flat list `{type:'readiness'}` on a location query is a
699
+ * VALID word, so rejecting it would demote to a hand-maintained compatibility
700
+ * table — a second gate that can drift from the first, which is the
701
+ * runs-cleanly-returns-wrong-rows failure this design exists to prevent.
702
+ *
703
+ * It also scopes what the generator is shown: composing a location query, the
704
+ * model never sees `readiness` at all. The prototype's prompt listed
705
+ * conditions it could not supply and the model duly emitted them (finding 12);
706
+ * a shared vocabulary hands that failure to every entity at once.
707
+ *
708
+ * An entity with an EMPTY vocabulary is one the language does not speak yet —
709
+ * every condition is rejected, which is the honest answer while only assets
710
+ * execute. Entities are listed from day one so a stored record never needs
711
+ * retrofitting.
712
+ *
713
+ * Where a concept genuinely coincides across entities it keeps the SAME word
714
+ * (`createdDate` is the same fact everywhere). A domain word is only earned
715
+ * where the meaning differs.
716
+ */
717
+ export declare const semanticConditionTypesByEntity: Record<SemanticQueryEntityType, readonly string[]>;
718
+ /**
719
+ * Every condition type the language knows, across all entities.
720
+ *
721
+ * This is the BOUNDARY's list — the wire schema checks that a condition names
722
+ * a real word at all, and leaves which-entity-may-use-it to the shared
723
+ * validator, which knows the entity and can say "'readiness' is an asset
724
+ * condition" instead of "not allowed".
725
+ */
726
+ export declare const semanticConditionTypes: readonly ("telemetry" | "readiness" | "path" | "asset" | "location" | "reader" | "manifest" | "and" | "or" | "assetType" | "homeLocation" | "withAsset" | "customField" | "createdDate" | "lastUpdated" | "lastChanged" | "lastSeen" | "firstSeen" | "geolocation" | "tags" | "kit" | "locationStatus" | "seenWithoutLocation" | "locationType" | "hasReaders" | "geofence" | "occurred" | "eventType" | "user" | "action" | "snapshotType" | "deviceType" | "readerType" | "attachedAsset" | "online" | "hasReported" | "hasGeolocation")[];
727
+ export declare type SemanticConditionType = (typeof semanticConditionTypes)[number];
728
+ /**
729
+ * Query size bounds, shared by the boundary schema (which refuses an oversized
730
+ * query before parsing it) and the compiler (which counts every branch as it
731
+ * walks). Both halves are load-bearing: without the compiler's counting a
732
+ * single `or` could carry thousands of arms, and without the boundary's cap
733
+ * the parse itself is the cost.
734
+ */
735
+ export declare const SEMANTIC_QUERY_LIMITS: {
736
+ readonly maxConditions: 50;
737
+ readonly maxDepth: 5;
738
+ };
739
+ /**
740
+ * The ASSET condition union. Per-entity rather than one shared union on
741
+ * purpose: an entity's compiler takes its own union, so a condition it has not
742
+ * handled is a COMPILE error rather than a runtime fall-through. The prototype
743
+ * kept its vocabularies as `string[]` allowlists and lost exactly that.
744
+ */
745
+ /**
746
+ * Seen — a status other than never-seen — and not at any named location: the
747
+ * Assets-by-location view's "Seen, without a location" row (legacy admin's
748
+ * "Map"). One word rather than `location.hasAny: false` plus a status list, so
749
+ * the server owns the definition (`SEEN_LOCATION_STATUSES`, the enum minus
750
+ * NEVERSEEN) and a status added tomorrow is seen everywhere at once — callers,
751
+ * saved views and the AI carry the name, not the list. `false` is the
752
+ * complement: never seen, or at a named location.
753
+ */
754
+ export interface SemanticSeenWithoutLocationCondition {
755
+ type: 'seenWithoutLocation';
756
+ value: boolean;
757
+ }
758
+ export declare type SemanticAssetCondition = SemanticAndCondition | SemanticOrCondition | SemanticAssetTypeCondition | SemanticAssetLocationCondition | SemanticWithAssetCondition | SemanticCustomFieldCondition | SemanticTimestampCondition | SemanticGeolocationCondition | SemanticTagsCondition | SemanticTelemetryCondition | SemanticReadinessCondition | SemanticKitCondition | SemanticLocationStatusCondition | SemanticSeenWithoutLocationCondition;
759
+ /**
760
+ * Any condition, whatever the entity. Widens as entities are added; the
761
+ * envelope and everything generic over it stay unchanged when they are.
762
+ */
763
+ export declare type SemanticQueryCondition = SemanticAssetCondition | SemanticLocationCondition | SemanticEventCondition | SemanticSnapshotCondition | SemanticReaderCondition;
764
+ /** Current wire version of the condition vocabulary. */
765
+ export declare const SEMANTIC_QUERY_VERSION = 2;
766
+ export interface SemanticQuery {
767
+ /** Defaults to the current version when absent. */
768
+ version?: number;
769
+ /** ANDed together. Empty is valid — "everything" (entity defaults may bound it). */
770
+ conditions: SemanticQueryCondition[];
771
+ }
772
+ /**
773
+ * PATHS MATCH, IDS POINT. A hierarchical path is for MATCHING a subtree; an id
774
+ * is for pointing at ONE specific record. Setting an asset's location is
775
+ * unambiguous by definition, so it always takes `locationId` — `locationPath`
776
+ * rides along only as a display label. Field names are unique, so `fieldName`
777
+ * needs no resolution step.
778
+ */
779
+ export declare type SemanticAssetOperation =
780
+ /**
781
+ * A DATE field's value may be a SemanticRelativeDate, left UNRESOLVED
782
+ * exactly as in a query — otherwise "set expiry to 12 months from today"
783
+ * freezes the date it was authored on, and re-running it next year is wrong.
784
+ */
785
+ {
786
+ op: 'setField';
787
+ fieldName: string;
788
+ value: string | number | boolean | SemanticRelativeDate;
789
+ } | {
790
+ op: 'clearField';
791
+ fieldName: string;
792
+ } | {
793
+ op: 'setLocation';
794
+ locationId: string;
795
+ locationPath?: string;
796
+ }
797
+ /** Where the asset BELONGS — a different property from where it IS. */
798
+ | {
799
+ op: 'setHomeLocation';
800
+ locationId: string;
801
+ locationPath?: string;
802
+ }
803
+ /**
804
+ * Stored but NOT executable, and deliberately not translated to a sentinel
805
+ * id: asset location state has many permutations (current, home,
806
+ * with-another-asset, pending dispatch), so "clear the location" is not one
807
+ * well-defined write. Captured so the intent is not lost; a no-op until the
808
+ * semantics are decided.
809
+ */
810
+ | {
811
+ op: 'clearLocation';
812
+ }
813
+ /**
814
+ * Captured but PENDING: clearing a home location means setting it to the
815
+ * organisation's root location. Whether that is expressed as the root id or
816
+ * resolved server-side is an open question with the API team — this op
817
+ * deliberately carries no id until settled.
818
+ */
819
+ | {
820
+ op: 'clearHomeLocation';
821
+ }
822
+ /** Irreversible — requires explicit confirmation at execution time. */
823
+ | {
824
+ op: 'delete';
825
+ };
826
+ export interface SemanticOperationPayload {
827
+ operations: SemanticAssetOperation[];
828
+ /** Human-readable restatement, shown on the confirmation card. */
829
+ description: string;
830
+ }
831
+ /** Which rendering of the asset list a saved query opens in. */
832
+ export declare const semanticQueryViewTypes: readonly ["table", "map", "tree"];
833
+ export declare type SemanticQueryViewType = (typeof semanticQueryViewTypes)[number];
834
+ /**
835
+ * Everything a saved list REMEMBERS that is not the query itself — columns,
836
+ * sort, and which rendering it opens in. Populated on save; absent on drafts.
837
+ *
838
+ * This is the home for every property the superseded saved VIEW carried
839
+ * outside its `filters` (contract views/shared.ts): each of `columnVisibility`,
840
+ * `columnOrder`, `sort` and `sortOrder` is here under its own name, so a view
841
+ * converts without losing anything it displayed.
842
+ *
843
+ * Free-text search is deliberately absent, from here and from the conditions
844
+ * alike (ruling, 2026-08-05). It is not a filter over a property and the closed
845
+ * vocabulary has no term for it; it is a live narrowing of whatever is already
846
+ * on screen, and it belongs to the session rather than to the saved query. The
847
+ * legacy view persisted it on `filters.search` — the one member of that object
848
+ * that was never really a filter — and that is the behaviour being dropped.
849
+ */
850
+ /**
851
+ * Every sort field a saved list can remember, across entities.
852
+ *
853
+ * This was `AssetSortField` — written when assets were the only thing the
854
+ * language spoke, and missed when the vocabulary was split per entity. A
855
+ * location list sorts by `path`, which no asset has, so saving a location view
856
+ * was rejected at the boundary with a message naming only the asset fields.
857
+ *
858
+ * A UNION rather than a per-entity type, deliberately, and the reasoning is
859
+ * the opposite of the one that made CONDITIONS per-entity. A condition from
860
+ * the wrong vocabulary runs and returns the wrong rows silently — that had to
861
+ * be undecidable-proof. A sort from the wrong entity just names a field the
862
+ * documents do not have: the order falls back, nothing is hidden, and no row
863
+ * is wrongly included or excluded. Splitting `display` per entity to prevent a
864
+ * harmless odd ordering would cost a discriminated union on every read path
865
+ * for no safety gained.
866
+ */
867
+ export declare type SemanticQuerySortField = AssetSortField | LocationSortField | SnapshotSortField;
868
+ export declare const semanticQuerySortFields: SemanticQuerySortField[];
869
+ export interface SemanticQueryDisplay {
870
+ columnVisibility?: Record<string, boolean>;
871
+ columnOrder?: string[];
872
+ sort?: SemanticQuerySortField;
873
+ sortOrder?: SortOrders;
874
+ /** Absent means the client's default rendering. */
875
+ viewType?: SemanticQueryViewType;
876
+ }