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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (779) hide show
  1. package/README.md +33 -33
  2. package/dist/actions/[id]/index.d.ts +1 -1
  3. package/dist/actions/[id]/index.js +17 -17
  4. package/dist/actions/[id]/patch/index.d.ts +2 -2
  5. package/dist/actions/[id]/patch/index.js +18 -18
  6. package/dist/actions/[id]/patch/request.d.ts +12 -12
  7. package/dist/actions/[id]/patch/request.js +2 -2
  8. package/dist/actions/[id]/patch/response.d.ts +1 -1
  9. package/dist/actions/[id]/patch/response.js +2 -2
  10. package/dist/actions/get/index.d.ts +2 -2
  11. package/dist/actions/get/index.js +18 -18
  12. package/dist/actions/get/query.d.ts +14 -14
  13. package/dist/actions/get/query.js +2 -2
  14. package/dist/actions/get/response.d.ts +25 -25
  15. package/dist/actions/get/response.js +2 -2
  16. package/dist/actions/index.d.ts +4 -4
  17. package/dist/actions/index.js +20 -20
  18. package/dist/actions/post/index.d.ts +2 -2
  19. package/dist/actions/post/index.js +18 -18
  20. package/dist/actions/post/request.d.ts +15 -15
  21. package/dist/actions/post/request.js +2 -2
  22. package/dist/actions/post/response.d.ts +1 -1
  23. package/dist/actions/post/response.js +2 -2
  24. package/dist/actions/shared.d.ts +63 -63
  25. package/dist/actions/shared.js +16 -16
  26. package/dist/ai/chat/index.d.ts +2 -2
  27. package/dist/ai/chat/index.js +18 -18
  28. package/dist/ai/chat/request.d.ts +42 -42
  29. package/dist/ai/chat/request.js +2 -2
  30. package/dist/ai/chat/response.d.ts +74 -74
  31. package/dist/ai/chat/response.js +10 -10
  32. package/dist/ai/expression/index.d.ts +2 -2
  33. package/dist/ai/expression/index.js +18 -18
  34. package/dist/ai/expression/request.d.ts +29 -29
  35. package/dist/ai/expression/request.js +2 -2
  36. package/dist/ai/expression/response.d.ts +23 -23
  37. package/dist/ai/expression/response.js +2 -2
  38. package/dist/ai/index.d.ts +4 -4
  39. package/dist/ai/index.js +20 -20
  40. package/dist/ai/semantic-query/index.d.ts +2 -2
  41. package/dist/ai/semantic-query/index.js +18 -18
  42. package/dist/ai/semantic-query/request.d.ts +43 -43
  43. package/dist/ai/semantic-query/request.js +2 -2
  44. package/dist/ai/semantic-query/response.d.ts +40 -40
  45. package/dist/ai/semantic-query/response.js +2 -2
  46. package/dist/ai/shared.d.ts +22 -22
  47. package/dist/ai/shared.js +10 -10
  48. package/dist/assets/[id]/get.d.ts +92 -92
  49. package/dist/assets/[id]/get.js +2 -2
  50. package/dist/assets/[id]/index.d.ts +4 -4
  51. package/dist/assets/[id]/index.js +20 -20
  52. package/dist/assets/[id]/location.d.ts +6 -6
  53. package/dist/assets/[id]/location.js +2 -2
  54. package/dist/assets/[id]/patch/index.d.ts +2 -2
  55. package/dist/assets/[id]/patch/index.js +18 -18
  56. package/dist/assets/[id]/patch/request.d.ts +16 -16
  57. package/dist/assets/[id]/patch/request.js +2 -2
  58. package/dist/assets/[id]/patch/response.d.ts +7 -7
  59. package/dist/assets/[id]/patch/response.js +2 -2
  60. package/dist/assets/[id]/readers.d.ts +9 -9
  61. package/dist/assets/[id]/readers.js +2 -2
  62. package/dist/assets/count/index.d.ts +2 -2
  63. package/dist/assets/count/index.js +18 -18
  64. package/dist/assets/count/query.d.ts +16 -16
  65. package/dist/assets/count/query.js +2 -2
  66. package/dist/assets/count/response.d.ts +15 -15
  67. package/dist/assets/count/response.js +2 -2
  68. package/dist/assets/count-filtered/index.d.ts +1 -1
  69. package/dist/assets/count-filtered/index.js +17 -17
  70. package/dist/assets/count-filtered/response.d.ts +5 -5
  71. package/dist/assets/count-filtered/response.js +2 -2
  72. package/dist/assets/download/index.d.ts +2 -2
  73. package/dist/assets/download/index.js +18 -18
  74. package/dist/assets/download/query.d.ts +17 -17
  75. package/dist/assets/download/query.js +2 -2
  76. package/dist/assets/download/response.d.ts +3 -3
  77. package/dist/assets/download/response.js +2 -2
  78. package/dist/assets/errors.d.ts +3 -3
  79. package/dist/assets/errors.js +2 -2
  80. package/dist/assets/get/index.d.ts +2 -2
  81. package/dist/assets/get/index.js +18 -18
  82. package/dist/assets/get/query.d.ts +138 -122
  83. package/dist/assets/get/query.js +5 -5
  84. package/dist/assets/get/query.js.map +1 -1
  85. package/dist/assets/get/response.d.ts +12 -12
  86. package/dist/assets/get/response.js +2 -2
  87. package/dist/assets/index.d.ts +14 -14
  88. package/dist/assets/index.js +30 -30
  89. package/dist/assets/location/index.d.ts +2 -2
  90. package/dist/assets/location/index.js +18 -18
  91. package/dist/assets/location/request.d.ts +23 -23
  92. package/dist/assets/location/request.js +2 -2
  93. package/dist/assets/location/response.d.ts +2 -2
  94. package/dist/assets/location/response.js +2 -2
  95. package/dist/assets/partitions/index.d.ts +2 -2
  96. package/dist/assets/partitions/index.js +18 -18
  97. package/dist/assets/partitions/query.d.ts +16 -16
  98. package/dist/assets/partitions/query.js +2 -2
  99. package/dist/assets/partitions/response.d.ts +10 -10
  100. package/dist/assets/partitions/response.js +2 -2
  101. package/dist/assets/post/index.d.ts +2 -2
  102. package/dist/assets/post/index.js +18 -18
  103. package/dist/assets/post/request.d.ts +15 -15
  104. package/dist/assets/post/request.js +9 -9
  105. package/dist/assets/post/response.d.ts +11 -11
  106. package/dist/assets/post/response.js +2 -2
  107. package/dist/assets/readiness/index.d.ts +2 -2
  108. package/dist/assets/readiness/index.js +18 -18
  109. package/dist/assets/readiness/query.d.ts +7 -7
  110. package/dist/assets/readiness/query.js +2 -2
  111. package/dist/assets/readiness/response.d.ts +24 -24
  112. package/dist/assets/readiness/response.js +2 -2
  113. package/dist/assets/rollup/index.d.ts +2 -2
  114. package/dist/assets/rollup/index.js +18 -18
  115. package/dist/assets/rollup/query.d.ts +12 -12
  116. package/dist/assets/rollup/query.js +4 -4
  117. package/dist/assets/rollup/response.d.ts +58 -58
  118. package/dist/assets/rollup/response.js +2 -2
  119. package/dist/assets/suggestions/index.d.ts +2 -2
  120. package/dist/assets/suggestions/index.js +18 -18
  121. package/dist/assets/suggestions/query.d.ts +5 -5
  122. package/dist/assets/suggestions/query.js +2 -2
  123. package/dist/assets/suggestions/response.d.ts +15 -15
  124. package/dist/assets/suggestions/response.js +2 -2
  125. package/dist/assets/summary/index.d.ts +2 -2
  126. package/dist/assets/summary/index.js +18 -18
  127. package/dist/assets/summary/response.d.ts +7 -7
  128. package/dist/assets/summary/response.js +2 -2
  129. package/dist/assets/summary/summary.d.ts +9 -9
  130. package/dist/assets/summary/summary.js +2 -2
  131. package/dist/assets/upload/index.d.ts +2 -2
  132. package/dist/assets/upload/index.js +18 -18
  133. package/dist/assets/upload/request.d.ts +3 -3
  134. package/dist/assets/upload/request.js +2 -2
  135. package/dist/assets/upload/response.d.ts +7 -7
  136. package/dist/assets/upload/response.js +2 -2
  137. package/dist/errors.d.ts +4 -4
  138. package/dist/errors.js +2 -2
  139. package/dist/events/constants.d.ts +60 -60
  140. package/dist/events/constants.js +78 -78
  141. package/dist/events/count/index.d.ts +2 -2
  142. package/dist/events/count/index.js +18 -18
  143. package/dist/events/count/query.d.ts +5 -5
  144. package/dist/events/count/query.js +2 -2
  145. package/dist/events/count/response.d.ts +18 -18
  146. package/dist/events/count/response.js +2 -2
  147. package/dist/events/download/index.d.ts +2 -2
  148. package/dist/events/download/index.js +18 -18
  149. package/dist/events/download/query.d.ts +9 -9
  150. package/dist/events/download/query.js +2 -2
  151. package/dist/events/download/response.d.ts +3 -3
  152. package/dist/events/download/response.js +2 -2
  153. package/dist/events/get/index.d.ts +2 -2
  154. package/dist/events/get/index.js +18 -18
  155. package/dist/events/get/query.d.ts +40 -40
  156. package/dist/events/get/query.js +2 -2
  157. package/dist/events/get/response.d.ts +248 -248
  158. package/dist/events/get/response.js +2 -2
  159. package/dist/events/index.d.ts +5 -5
  160. package/dist/events/index.js +21 -21
  161. package/dist/events/post.d.ts +9 -9
  162. package/dist/events/post.js +2 -2
  163. package/dist/fields/[id]/get.d.ts +28 -28
  164. package/dist/fields/[id]/get.js +2 -2
  165. package/dist/fields/[id]/index.d.ts +2 -2
  166. package/dist/fields/[id]/index.js +18 -18
  167. package/dist/fields/[id]/patch/index.d.ts +2 -2
  168. package/dist/fields/[id]/patch/index.js +18 -18
  169. package/dist/fields/[id]/patch/request.d.ts +32 -32
  170. package/dist/fields/[id]/patch/request.js +2 -2
  171. package/dist/fields/[id]/patch/response.d.ts +1 -1
  172. package/dist/fields/[id]/patch/response.js +2 -2
  173. package/dist/fields/constants.d.ts +72 -72
  174. package/dist/fields/constants.js +55 -55
  175. package/dist/fields/get/index.d.ts +2 -2
  176. package/dist/fields/get/index.js +18 -18
  177. package/dist/fields/get/query.d.ts +9 -9
  178. package/dist/fields/get/query.js +2 -2
  179. package/dist/fields/get/response.d.ts +5 -5
  180. package/dist/fields/get/response.js +2 -2
  181. package/dist/fields/index.d.ts +5 -5
  182. package/dist/fields/index.js +21 -21
  183. package/dist/fields/post/index.d.ts +2 -2
  184. package/dist/fields/post/index.js +18 -18
  185. package/dist/fields/post/request.d.ts +24 -24
  186. package/dist/fields/post/request.js +8 -8
  187. package/dist/fields/post/response.d.ts +5 -5
  188. package/dist/fields/post/response.js +2 -2
  189. package/dist/fields/suggestions/index.d.ts +2 -2
  190. package/dist/fields/suggestions/index.js +18 -18
  191. package/dist/fields/suggestions/query.d.ts +5 -5
  192. package/dist/fields/suggestions/query.js +2 -2
  193. package/dist/fields/suggestions/response.d.ts +15 -15
  194. package/dist/fields/suggestions/response.js +2 -2
  195. package/dist/forms/[id]/index.d.ts +1 -1
  196. package/dist/forms/[id]/index.js +17 -17
  197. package/dist/forms/[id]/patch/index.d.ts +2 -2
  198. package/dist/forms/[id]/patch/index.js +18 -18
  199. package/dist/forms/[id]/patch/request.d.ts +14 -14
  200. package/dist/forms/[id]/patch/request.js +2 -2
  201. package/dist/forms/[id]/patch/response.d.ts +1 -1
  202. package/dist/forms/[id]/patch/response.js +2 -2
  203. package/dist/forms/constants.d.ts +19 -19
  204. package/dist/forms/constants.js +32 -32
  205. package/dist/forms/get/index.d.ts +2 -2
  206. package/dist/forms/get/index.js +18 -18
  207. package/dist/forms/get/query.d.ts +18 -18
  208. package/dist/forms/get/query.js +2 -2
  209. package/dist/forms/get/response.d.ts +23 -23
  210. package/dist/forms/get/response.js +2 -2
  211. package/dist/forms/index.d.ts +6 -6
  212. package/dist/forms/index.js +22 -22
  213. package/dist/forms/post/index.d.ts +2 -2
  214. package/dist/forms/post/index.js +18 -18
  215. package/dist/forms/post/request.d.ts +9 -9
  216. package/dist/forms/post/request.js +2 -2
  217. package/dist/forms/post/response.d.ts +1 -1
  218. package/dist/forms/post/response.js +2 -2
  219. package/dist/forms/shared.d.ts +136 -136
  220. package/dist/forms/shared.js +2 -2
  221. package/dist/forms/versions/index.d.ts +2 -2
  222. package/dist/forms/versions/index.js +18 -18
  223. package/dist/forms/versions/path.d.ts +8 -8
  224. package/dist/forms/versions/path.js +2 -2
  225. package/dist/forms/versions/response.d.ts +1 -1
  226. package/dist/forms/versions/response.js +2 -2
  227. package/dist/index.d.ts +29 -29
  228. package/dist/index.js +45 -45
  229. package/dist/integrations/constants.d.ts +43 -43
  230. package/dist/integrations/constants.js +7 -7
  231. package/dist/integrations/index.d.ts +3 -3
  232. package/dist/integrations/index.js +19 -19
  233. package/dist/integrations/mqtt/get.d.ts +1 -1
  234. package/dist/integrations/mqtt/get.js +2 -2
  235. package/dist/integrations/mqtt/index.d.ts +2 -2
  236. package/dist/integrations/mqtt/index.js +18 -18
  237. package/dist/integrations/mqtt/patch/index.d.ts +2 -2
  238. package/dist/integrations/mqtt/patch/index.js +18 -18
  239. package/dist/integrations/mqtt/patch/request.d.ts +3 -3
  240. package/dist/integrations/mqtt/patch/request.js +2 -2
  241. package/dist/integrations/mqtt/patch/response.d.ts +1 -1
  242. package/dist/integrations/mqtt/patch/response.js +2 -2
  243. package/dist/integrations/oneblink/index.d.ts +2 -2
  244. package/dist/integrations/oneblink/index.js +18 -18
  245. package/dist/integrations/oneblink/patch/index.d.ts +1 -1
  246. package/dist/integrations/oneblink/patch/index.js +17 -17
  247. package/dist/integrations/oneblink/patch/request.d.ts +8 -8
  248. package/dist/integrations/oneblink/patch/request.js +2 -2
  249. package/dist/integrations/oneblink/token.d.ts +6 -6
  250. package/dist/integrations/oneblink/token.js +2 -2
  251. package/dist/labels/[id]/get.d.ts +6 -6
  252. package/dist/labels/[id]/get.js +2 -2
  253. package/dist/labels/[id]/index.d.ts +2 -2
  254. package/dist/labels/[id]/index.js +18 -18
  255. package/dist/labels/[id]/patch/index.d.ts +2 -2
  256. package/dist/labels/[id]/patch/index.js +18 -18
  257. package/dist/labels/[id]/patch/request.d.ts +3 -3
  258. package/dist/labels/[id]/patch/request.js +2 -2
  259. package/dist/labels/[id]/patch/response.d.ts +1 -1
  260. package/dist/labels/[id]/patch/response.js +2 -2
  261. package/dist/labels/constants.d.ts +4 -4
  262. package/dist/labels/constants.js +2 -2
  263. package/dist/labels/get/index.d.ts +2 -2
  264. package/dist/labels/get/index.js +18 -18
  265. package/dist/labels/get/query.d.ts +11 -11
  266. package/dist/labels/get/query.js +2 -2
  267. package/dist/labels/get/response.d.ts +7 -7
  268. package/dist/labels/get/response.js +2 -2
  269. package/dist/labels/index.d.ts +4 -4
  270. package/dist/labels/index.js +20 -20
  271. package/dist/labels/post/index.d.ts +2 -2
  272. package/dist/labels/post/index.js +18 -18
  273. package/dist/labels/post/request.d.ts +4 -4
  274. package/dist/labels/post/request.js +2 -2
  275. package/dist/labels/post/response.d.ts +5 -5
  276. package/dist/labels/post/response.js +2 -2
  277. package/dist/locations/[id]/get.d.ts +39 -39
  278. package/dist/locations/[id]/get.js +2 -2
  279. package/dist/locations/[id]/index.d.ts +4 -4
  280. package/dist/locations/[id]/index.js +20 -20
  281. package/dist/locations/[id]/inventory.d.ts +9 -9
  282. package/dist/locations/[id]/inventory.js +2 -2
  283. package/dist/locations/[id]/patch/index.d.ts +2 -2
  284. package/dist/locations/[id]/patch/index.js +18 -18
  285. package/dist/locations/[id]/patch/request.d.ts +12 -12
  286. package/dist/locations/[id]/patch/request.js +2 -2
  287. package/dist/locations/[id]/patch/response.d.ts +7 -7
  288. package/dist/locations/[id]/patch/response.js +2 -2
  289. package/dist/locations/[id]/status.d.ts +4 -4
  290. package/dist/locations/[id]/status.js +2 -2
  291. package/dist/locations/constants.d.ts +13 -13
  292. package/dist/locations/constants.js +23 -23
  293. package/dist/locations/count/index.d.ts +2 -2
  294. package/dist/locations/count/index.js +18 -18
  295. package/dist/locations/count/query.d.ts +1 -1
  296. package/dist/locations/count/query.js +2 -2
  297. package/dist/locations/count/response.d.ts +6 -6
  298. package/dist/locations/count/response.js +2 -2
  299. package/dist/locations/download/index.d.ts +2 -2
  300. package/dist/locations/download/index.js +18 -18
  301. package/dist/locations/download/query.d.ts +10 -10
  302. package/dist/locations/download/query.js +2 -2
  303. package/dist/locations/download/response.d.ts +3 -3
  304. package/dist/locations/download/response.js +2 -2
  305. package/dist/locations/errors.d.ts +3 -3
  306. package/dist/locations/errors.js +2 -2
  307. package/dist/locations/get/index.d.ts +2 -2
  308. package/dist/locations/get/index.js +18 -18
  309. package/dist/locations/get/query.d.ts +54 -54
  310. package/dist/locations/get/query.js +2 -2
  311. package/dist/locations/get/response.d.ts +7 -7
  312. package/dist/locations/get/response.js +2 -2
  313. package/dist/locations/index.d.ts +8 -8
  314. package/dist/locations/index.js +24 -24
  315. package/dist/locations/post/index.d.ts +2 -2
  316. package/dist/locations/post/index.js +18 -18
  317. package/dist/locations/post/request.d.ts +13 -13
  318. package/dist/locations/post/request.js +2 -2
  319. package/dist/locations/post/response.d.ts +11 -11
  320. package/dist/locations/post/response.js +2 -2
  321. package/dist/locations/suggestions/index.d.ts +2 -2
  322. package/dist/locations/suggestions/index.js +18 -18
  323. package/dist/locations/suggestions/query.d.ts +7 -7
  324. package/dist/locations/suggestions/query.js +2 -2
  325. package/dist/locations/suggestions/response.d.ts +15 -15
  326. package/dist/locations/suggestions/response.js +2 -2
  327. package/dist/manifests/[id]/get.d.ts +35 -35
  328. package/dist/manifests/[id]/get.js +38 -38
  329. package/dist/manifests/[id]/index.d.ts +2 -2
  330. package/dist/manifests/[id]/index.js +18 -18
  331. package/dist/manifests/[id]/patch/index.d.ts +2 -2
  332. package/dist/manifests/[id]/patch/index.js +18 -18
  333. package/dist/manifests/[id]/patch/request.d.ts +8 -8
  334. package/dist/manifests/[id]/patch/request.js +45 -45
  335. package/dist/manifests/[id]/patch/response.d.ts +1 -1
  336. package/dist/manifests/[id]/patch/response.js +2 -2
  337. package/dist/manifests/get/index.d.ts +2 -2
  338. package/dist/manifests/get/index.js +18 -18
  339. package/dist/manifests/get/query.d.ts +11 -11
  340. package/dist/manifests/get/query.js +2 -2
  341. package/dist/manifests/get/response.d.ts +7 -7
  342. package/dist/manifests/get/response.js +2 -2
  343. package/dist/manifests/index.d.ts +4 -4
  344. package/dist/manifests/index.js +20 -20
  345. package/dist/manifests/post/index.d.ts +2 -2
  346. package/dist/manifests/post/index.js +18 -18
  347. package/dist/manifests/post/request.d.ts +16 -16
  348. package/dist/manifests/post/request.js +51 -51
  349. package/dist/manifests/post/response.d.ts +5 -5
  350. package/dist/manifests/post/response.js +2 -2
  351. package/dist/manifests/suggestions/index.d.ts +2 -2
  352. package/dist/manifests/suggestions/index.js +18 -18
  353. package/dist/manifests/suggestions/query.d.ts +5 -5
  354. package/dist/manifests/suggestions/query.js +2 -2
  355. package/dist/manifests/suggestions/response.d.ts +15 -15
  356. package/dist/manifests/suggestions/response.js +2 -2
  357. package/dist/networks/constants.d.ts +6 -6
  358. package/dist/networks/constants.js +2 -2
  359. package/dist/networks/index.d.ts +1 -1
  360. package/dist/networks/index.js +17 -17
  361. package/dist/organisations/[id]/delete/index.d.ts +2 -2
  362. package/dist/organisations/[id]/delete/index.js +18 -18
  363. package/dist/organisations/[id]/delete/query.d.ts +3 -3
  364. package/dist/organisations/[id]/delete/query.js +2 -2
  365. package/dist/organisations/[id]/delete/response.d.ts +13 -13
  366. package/dist/organisations/[id]/delete/response.js +2 -2
  367. package/dist/organisations/[id]/get.d.ts +36 -36
  368. package/dist/organisations/[id]/get.js +2 -2
  369. package/dist/organisations/[id]/index.d.ts +4 -4
  370. package/dist/organisations/[id]/index.js +20 -20
  371. package/dist/organisations/[id]/patch/index.d.ts +2 -2
  372. package/dist/organisations/[id]/patch/index.js +18 -18
  373. package/dist/organisations/[id]/patch/request.d.ts +13 -13
  374. package/dist/organisations/[id]/patch/request.js +2 -2
  375. package/dist/organisations/[id]/patch/response.d.ts +1 -1
  376. package/dist/organisations/[id]/patch/response.js +2 -2
  377. package/dist/organisations/[id]/wifi/index.d.ts +2 -2
  378. package/dist/organisations/[id]/wifi/index.js +18 -18
  379. package/dist/organisations/[id]/wifi/query.d.ts +3 -3
  380. package/dist/organisations/[id]/wifi/query.js +2 -2
  381. package/dist/organisations/[id]/wifi/response.d.ts +4 -4
  382. package/dist/organisations/[id]/wifi/response.js +2 -2
  383. package/dist/organisations/constants.d.ts +55 -55
  384. package/dist/organisations/constants.js +12 -12
  385. package/dist/organisations/get/index.d.ts +2 -2
  386. package/dist/organisations/get/index.js +18 -18
  387. package/dist/organisations/get/query.d.ts +11 -11
  388. package/dist/organisations/get/query.js +2 -2
  389. package/dist/organisations/get/response.d.ts +7 -7
  390. package/dist/organisations/get/response.js +2 -2
  391. package/dist/organisations/index.d.ts +5 -5
  392. package/dist/organisations/index.js +21 -21
  393. package/dist/organisations/post/index.d.ts +2 -2
  394. package/dist/organisations/post/index.js +18 -18
  395. package/dist/organisations/post/request.d.ts +6 -6
  396. package/dist/organisations/post/request.js +2 -2
  397. package/dist/organisations/post/response.d.ts +1 -1
  398. package/dist/organisations/post/response.js +2 -2
  399. package/dist/organisations/sso/constants.d.ts +63 -63
  400. package/dist/organisations/sso/constants.js +65 -65
  401. package/dist/organisations/sso/index.d.ts +2 -2
  402. package/dist/organisations/sso/index.js +18 -18
  403. package/dist/organisations/sso/types.d.ts +162 -162
  404. package/dist/organisations/sso/types.js +12 -12
  405. package/dist/readers/[id]/get.d.ts +41 -41
  406. package/dist/readers/[id]/get.js +2 -2
  407. package/dist/readers/[id]/index.d.ts +4 -4
  408. package/dist/readers/[id]/index.js +20 -20
  409. package/dist/readers/[id]/inventory/index.d.ts +1 -1
  410. package/dist/readers/[id]/inventory/index.js +17 -17
  411. package/dist/readers/[id]/inventory/response.d.ts +5 -5
  412. package/dist/readers/[id]/inventory/response.js +2 -2
  413. package/dist/readers/[id]/patch/index.d.ts +2 -2
  414. package/dist/readers/[id]/patch/index.js +18 -18
  415. package/dist/readers/[id]/patch/request.d.ts +13 -13
  416. package/dist/readers/[id]/patch/request.js +2 -2
  417. package/dist/readers/[id]/patch/response.d.ts +1 -1
  418. package/dist/readers/[id]/patch/response.js +2 -2
  419. package/dist/readers/[id]/status.d.ts +4 -4
  420. package/dist/readers/[id]/status.js +2 -2
  421. package/dist/readers/constants/deviceTypes.d.ts +43 -43
  422. package/dist/readers/constants/deviceTypes.js +198 -198
  423. package/dist/readers/constants/index.d.ts +2 -2
  424. package/dist/readers/constants/index.js +18 -18
  425. package/dist/readers/constants/types.d.ts +10 -10
  426. package/dist/readers/constants/types.js +24 -24
  427. package/dist/readers/count/index.d.ts +2 -2
  428. package/dist/readers/count/index.js +18 -18
  429. package/dist/readers/count/query.d.ts +1 -1
  430. package/dist/readers/count/query.js +2 -2
  431. package/dist/readers/count/response.d.ts +5 -5
  432. package/dist/readers/count/response.js +2 -2
  433. package/dist/readers/download/index.d.ts +2 -2
  434. package/dist/readers/download/index.js +18 -18
  435. package/dist/readers/download/query.d.ts +10 -10
  436. package/dist/readers/download/query.js +2 -2
  437. package/dist/readers/download/response.d.ts +3 -3
  438. package/dist/readers/download/response.js +2 -2
  439. package/dist/readers/get/index.d.ts +2 -2
  440. package/dist/readers/get/index.js +18 -18
  441. package/dist/readers/get/query.d.ts +36 -36
  442. package/dist/readers/get/query.js +2 -2
  443. package/dist/readers/get/response.d.ts +7 -7
  444. package/dist/readers/get/response.js +2 -2
  445. package/dist/readers/index.d.ts +8 -8
  446. package/dist/readers/index.js +24 -24
  447. package/dist/readers/post/index.d.ts +2 -2
  448. package/dist/readers/post/index.js +18 -18
  449. package/dist/readers/post/request.d.ts +14 -14
  450. package/dist/readers/post/request.js +2 -2
  451. package/dist/readers/post/response.d.ts +5 -5
  452. package/dist/readers/post/response.js +2 -2
  453. package/dist/readers/suggestions/index.d.ts +2 -2
  454. package/dist/readers/suggestions/index.js +18 -18
  455. package/dist/readers/suggestions/query.d.ts +5 -5
  456. package/dist/readers/suggestions/query.js +2 -2
  457. package/dist/readers/suggestions/response.d.ts +15 -15
  458. package/dist/readers/suggestions/response.js +2 -2
  459. package/dist/readers/user/index.d.ts +2 -2
  460. package/dist/readers/user/index.js +18 -18
  461. package/dist/readers/user/request.d.ts +3 -3
  462. package/dist/readers/user/request.js +2 -2
  463. package/dist/readers/user/response.d.ts +8 -8
  464. package/dist/readers/user/response.js +2 -2
  465. package/dist/reports.d.ts +38 -38
  466. package/dist/reports.js +2 -2
  467. package/dist/roles/[id]/get.d.ts +6 -6
  468. package/dist/roles/[id]/get.js +2 -2
  469. package/dist/roles/[id]/index.d.ts +1 -1
  470. package/dist/roles/[id]/index.js +17 -17
  471. package/dist/roles/get/index.d.ts +2 -2
  472. package/dist/roles/get/index.js +18 -18
  473. package/dist/roles/get/query.d.ts +7 -7
  474. package/dist/roles/get/query.js +2 -2
  475. package/dist/roles/get/response.d.ts +7 -7
  476. package/dist/roles/get/response.js +2 -2
  477. package/dist/roles/index.d.ts +3 -3
  478. package/dist/roles/index.js +19 -19
  479. package/dist/roles/post/index.d.ts +2 -2
  480. package/dist/roles/post/index.js +18 -18
  481. package/dist/roles/post/request.d.ts +6 -6
  482. package/dist/roles/post/request.js +2 -2
  483. package/dist/roles/post/response.d.ts +1 -1
  484. package/dist/roles/post/response.js +2 -2
  485. package/dist/semantic-queries/[id]/index.d.ts +1 -1
  486. package/dist/semantic-queries/[id]/index.js +17 -17
  487. package/dist/semantic-queries/[id]/patch/index.d.ts +2 -2
  488. package/dist/semantic-queries/[id]/patch/index.js +18 -18
  489. package/dist/semantic-queries/[id]/patch/request.d.ts +20 -20
  490. package/dist/semantic-queries/[id]/patch/request.js +2 -2
  491. package/dist/semantic-queries/[id]/patch/response.d.ts +1 -1
  492. package/dist/semantic-queries/[id]/patch/response.js +2 -2
  493. package/dist/semantic-queries/get/index.d.ts +2 -2
  494. package/dist/semantic-queries/get/index.js +18 -18
  495. package/dist/semantic-queries/get/query.d.ts +18 -18
  496. package/dist/semantic-queries/get/query.js +2 -2
  497. package/dist/semantic-queries/get/response.d.ts +40 -40
  498. package/dist/semantic-queries/get/response.js +2 -2
  499. package/dist/semantic-queries/index.d.ts +4 -4
  500. package/dist/semantic-queries/index.js +20 -20
  501. package/dist/semantic-queries/post/index.d.ts +2 -2
  502. package/dist/semantic-queries/post/index.js +18 -18
  503. package/dist/semantic-queries/post/request.d.ts +56 -56
  504. package/dist/semantic-queries/post/request.js +2 -2
  505. package/dist/semantic-queries/post/response.d.ts +1 -1
  506. package/dist/semantic-queries/post/response.js +2 -2
  507. package/dist/semantic-queries/shared.d.ts +876 -876
  508. package/dist/semantic-queries/shared.js +318 -318
  509. package/dist/shared/attachments.d.ts +29 -29
  510. package/dist/shared/attachments.js +10 -10
  511. package/dist/shared/body.d.ts +6 -6
  512. package/dist/shared/body.js +2 -2
  513. package/dist/shared/delete.d.ts +3 -3
  514. package/dist/shared/delete.js +2 -2
  515. package/dist/shared/embed.d.ts +22 -22
  516. package/dist/shared/embed.js +2 -2
  517. package/dist/shared/errors.d.ts +3 -3
  518. package/dist/shared/errors.js +2 -2
  519. package/dist/shared/headers.d.ts +3 -3
  520. package/dist/shared/headers.js +2 -2
  521. package/dist/shared/index.d.ts +13 -13
  522. package/dist/shared/index.js +29 -29
  523. package/dist/shared/path.d.ts +3 -3
  524. package/dist/shared/path.js +2 -2
  525. package/dist/shared/query.d.ts +12 -12
  526. package/dist/shared/query.js +2 -2
  527. package/dist/shared/readiness.d.ts +81 -81
  528. package/dist/shared/readiness.js +10 -10
  529. package/dist/shared/relative-date.d.ts +17 -17
  530. package/dist/shared/relative-date.js +11 -11
  531. package/dist/shared/sort.d.ts +12 -12
  532. package/dist/shared/sort.js +13 -13
  533. package/dist/shared/timestamp.d.ts +2 -2
  534. package/dist/shared/timestamp.js +4 -4
  535. package/dist/shared/timezone.d.ts +4 -4
  536. package/dist/shared/timezone.js +357 -357
  537. package/dist/snapshots/[id]/get.d.ts +256 -256
  538. package/dist/snapshots/[id]/get.js +34 -34
  539. package/dist/snapshots/[id]/index.d.ts +1 -1
  540. package/dist/snapshots/[id]/index.js +17 -17
  541. package/dist/snapshots/get/index.d.ts +2 -2
  542. package/dist/snapshots/get/index.js +18 -18
  543. package/dist/snapshots/get/query.d.ts +64 -64
  544. package/dist/snapshots/get/query.js +26 -26
  545. package/dist/snapshots/get/response.d.ts +7 -7
  546. package/dist/snapshots/get/response.js +2 -2
  547. package/dist/snapshots/index.d.ts +3 -3
  548. package/dist/snapshots/index.js +19 -19
  549. package/dist/snapshots/post/index.d.ts +2 -2
  550. package/dist/snapshots/post/index.js +18 -18
  551. package/dist/snapshots/post/request.d.ts +54 -54
  552. package/dist/snapshots/post/request.js +239 -239
  553. package/dist/snapshots/post/response.d.ts +5 -5
  554. package/dist/snapshots/post/response.js +2 -2
  555. package/dist/sso/discover/index.d.ts +2 -2
  556. package/dist/sso/discover/index.js +18 -18
  557. package/dist/sso/discover/request.d.ts +9 -9
  558. package/dist/sso/discover/request.js +2 -2
  559. package/dist/sso/discover/response.d.ts +17 -17
  560. package/dist/sso/discover/response.js +2 -2
  561. package/dist/sso/get/index.d.ts +1 -1
  562. package/dist/sso/get/index.js +17 -17
  563. package/dist/sso/get/response.d.ts +22 -22
  564. package/dist/sso/get/response.js +2 -2
  565. package/dist/sso/idp-setup.d.ts +32 -32
  566. package/dist/sso/idp-setup.js +2 -2
  567. package/dist/sso/index.d.ts +7 -7
  568. package/dist/sso/index.js +23 -23
  569. package/dist/sso/offboard/index.d.ts +1 -1
  570. package/dist/sso/offboard/index.js +17 -17
  571. package/dist/sso/offboard/response.d.ts +9 -9
  572. package/dist/sso/offboard/response.js +2 -2
  573. package/dist/sso/onboard/index.d.ts +2 -2
  574. package/dist/sso/onboard/index.js +18 -18
  575. package/dist/sso/onboard/request.d.ts +70 -70
  576. package/dist/sso/onboard/request.js +2 -2
  577. package/dist/sso/onboard/response.d.ts +25 -25
  578. package/dist/sso/onboard/response.js +2 -2
  579. package/dist/sso/revert/index.d.ts +1 -1
  580. package/dist/sso/revert/index.js +17 -17
  581. package/dist/sso/revert/response.d.ts +33 -33
  582. package/dist/sso/revert/response.js +2 -2
  583. package/dist/sso/sso-mappings/index.d.ts +2 -2
  584. package/dist/sso/sso-mappings/index.js +18 -18
  585. package/dist/sso/sso-mappings/request.d.ts +19 -19
  586. package/dist/sso/sso-mappings/request.js +2 -2
  587. package/dist/sso/sso-mappings/response.d.ts +9 -9
  588. package/dist/sso/sso-mappings/response.js +2 -2
  589. package/dist/submissions/[id]/index.d.ts +1 -1
  590. package/dist/submissions/[id]/index.js +17 -17
  591. package/dist/submissions/[id]/void/post.d.ts +6 -6
  592. package/dist/submissions/[id]/void/post.js +2 -2
  593. package/dist/submissions/constants.d.ts +14 -14
  594. package/dist/submissions/constants.js +20 -20
  595. package/dist/submissions/get/index.d.ts +2 -2
  596. package/dist/submissions/get/index.js +18 -18
  597. package/dist/submissions/get/query.d.ts +14 -14
  598. package/dist/submissions/get/query.js +2 -2
  599. package/dist/submissions/get/response.d.ts +6 -6
  600. package/dist/submissions/get/response.js +2 -2
  601. package/dist/submissions/index.d.ts +6 -6
  602. package/dist/submissions/index.js +22 -22
  603. package/dist/submissions/post/index.d.ts +2 -2
  604. package/dist/submissions/post/index.js +18 -18
  605. package/dist/submissions/post/request.d.ts +17 -17
  606. package/dist/submissions/post/request.js +2 -2
  607. package/dist/submissions/post/response.d.ts +22 -22
  608. package/dist/submissions/post/response.js +2 -2
  609. package/dist/submissions/shared.d.ts +133 -133
  610. package/dist/submissions/shared.js +2 -2
  611. package/dist/submissions/uploads/[fileId]/get.d.ts +11 -11
  612. package/dist/submissions/uploads/[fileId]/get.js +2 -2
  613. package/dist/submissions/uploads/[fileId]/index.d.ts +1 -1
  614. package/dist/submissions/uploads/[fileId]/index.js +17 -17
  615. package/dist/submissions/uploads/index.d.ts +2 -2
  616. package/dist/submissions/uploads/index.js +18 -18
  617. package/dist/submissions/uploads/post/index.d.ts +2 -2
  618. package/dist/submissions/uploads/post/index.js +18 -18
  619. package/dist/submissions/uploads/post/request.d.ts +9 -9
  620. package/dist/submissions/uploads/post/request.js +2 -2
  621. package/dist/submissions/uploads/post/response.d.ts +18 -18
  622. package/dist/submissions/uploads/post/response.js +2 -2
  623. package/dist/system/index.d.ts +5 -5
  624. package/dist/system/index.js +2 -2
  625. package/dist/tags/constants.d.ts +9 -9
  626. package/dist/tags/constants.js +2 -2
  627. package/dist/tags/errors.d.ts +19 -19
  628. package/dist/tags/errors.js +2 -2
  629. package/dist/tags/get/index.d.ts +2 -2
  630. package/dist/tags/get/index.js +18 -18
  631. package/dist/tags/get/query.d.ts +3 -3
  632. package/dist/tags/get/query.js +2 -2
  633. package/dist/tags/get/response.d.ts +7 -7
  634. package/dist/tags/get/response.js +2 -2
  635. package/dist/tags/index.d.ts +3 -3
  636. package/dist/tags/index.js +19 -19
  637. package/dist/telemetry.d.ts +10 -10
  638. package/dist/telemetry.js +2 -2
  639. package/dist/types/[id]/get.d.ts +69 -69
  640. package/dist/types/[id]/get.js +2 -2
  641. package/dist/types/[id]/index.d.ts +2 -2
  642. package/dist/types/[id]/index.js +18 -18
  643. package/dist/types/[id]/patch/index.d.ts +2 -2
  644. package/dist/types/[id]/patch/index.js +18 -18
  645. package/dist/types/[id]/patch/request.d.ts +33 -33
  646. package/dist/types/[id]/patch/request.js +2 -2
  647. package/dist/types/[id]/patch/response.d.ts +1 -1
  648. package/dist/types/[id]/patch/response.js +2 -2
  649. package/dist/types/constants.d.ts +9 -9
  650. package/dist/types/constants.js +12 -12
  651. package/dist/types/get/index.d.ts +2 -2
  652. package/dist/types/get/index.js +18 -18
  653. package/dist/types/get/query.d.ts +10 -10
  654. package/dist/types/get/query.js +2 -2
  655. package/dist/types/get/response.d.ts +7 -7
  656. package/dist/types/get/response.js +2 -2
  657. package/dist/types/hierarchy/index.d.ts +1 -1
  658. package/dist/types/hierarchy/index.js +17 -17
  659. package/dist/types/hierarchy/response.d.ts +8 -8
  660. package/dist/types/hierarchy/response.js +27 -27
  661. package/dist/types/index.d.ts +6 -6
  662. package/dist/types/index.js +22 -22
  663. package/dist/types/post/index.d.ts +2 -2
  664. package/dist/types/post/index.js +18 -18
  665. package/dist/types/post/request.d.ts +110 -110
  666. package/dist/types/post/request.js +24 -24
  667. package/dist/types/post/response.d.ts +5 -5
  668. package/dist/types/post/response.js +2 -2
  669. package/dist/types/suggestions/index.d.ts +2 -2
  670. package/dist/types/suggestions/index.js +18 -18
  671. package/dist/types/suggestions/query.d.ts +5 -5
  672. package/dist/types/suggestions/query.js +2 -2
  673. package/dist/types/suggestions/response.d.ts +15 -15
  674. package/dist/types/suggestions/response.js +2 -2
  675. package/dist/usergroups/[id]/index.d.ts +1 -1
  676. package/dist/usergroups/[id]/index.js +17 -17
  677. package/dist/usergroups/[id]/patch/index.d.ts +2 -2
  678. package/dist/usergroups/[id]/patch/index.js +18 -18
  679. package/dist/usergroups/[id]/patch/request.d.ts +23 -23
  680. package/dist/usergroups/[id]/patch/request.js +2 -2
  681. package/dist/usergroups/[id]/patch/response.d.ts +1 -1
  682. package/dist/usergroups/[id]/patch/response.js +2 -2
  683. package/dist/usergroups/access.d.ts +100 -100
  684. package/dist/usergroups/access.js +23 -23
  685. package/dist/usergroups/get/index.d.ts +2 -2
  686. package/dist/usergroups/get/index.js +18 -18
  687. package/dist/usergroups/get/query.d.ts +12 -12
  688. package/dist/usergroups/get/query.js +2 -2
  689. package/dist/usergroups/get/response.d.ts +44 -44
  690. package/dist/usergroups/get/response.js +2 -2
  691. package/dist/usergroups/index.d.ts +5 -5
  692. package/dist/usergroups/index.js +21 -21
  693. package/dist/usergroups/post/index.d.ts +2 -2
  694. package/dist/usergroups/post/index.js +18 -18
  695. package/dist/usergroups/post/request.d.ts +17 -17
  696. package/dist/usergroups/post/request.js +2 -2
  697. package/dist/usergroups/post/response.d.ts +1 -1
  698. package/dist/usergroups/post/response.js +2 -2
  699. package/dist/usergroups/shared.d.ts +8 -8
  700. package/dist/usergroups/shared.js +10 -10
  701. package/dist/users/[id]/disable.d.ts +7 -7
  702. package/dist/users/[id]/disable.js +2 -2
  703. package/dist/users/[id]/enable.d.ts +6 -6
  704. package/dist/users/[id]/enable.js +2 -2
  705. package/dist/users/[id]/get/index.d.ts +2 -2
  706. package/dist/users/[id]/get/index.js +18 -18
  707. package/dist/users/[id]/get/query.d.ts +3 -3
  708. package/dist/users/[id]/get/query.js +2 -2
  709. package/dist/users/[id]/get/response.d.ts +39 -39
  710. package/dist/users/[id]/get/response.js +2 -2
  711. package/dist/users/[id]/index.d.ts +5 -5
  712. package/dist/users/[id]/index.js +21 -21
  713. package/dist/users/[id]/key.d.ts +3 -3
  714. package/dist/users/[id]/key.js +2 -2
  715. package/dist/users/[id]/patch/index.d.ts +2 -2
  716. package/dist/users/[id]/patch/index.js +18 -18
  717. package/dist/users/[id]/patch/request.d.ts +10 -10
  718. package/dist/users/[id]/patch/request.js +2 -2
  719. package/dist/users/[id]/patch/response.d.ts +1 -1
  720. package/dist/users/[id]/patch/response.js +2 -2
  721. package/dist/users/console.d.ts +15 -15
  722. package/dist/users/console.js +4 -4
  723. package/dist/users/constants.d.ts +2 -2
  724. package/dist/users/constants.js +4 -4
  725. package/dist/users/current.d.ts +108 -108
  726. package/dist/users/current.js +2 -2
  727. package/dist/users/get/index.d.ts +2 -2
  728. package/dist/users/get/index.js +18 -18
  729. package/dist/users/get/query.d.ts +15 -15
  730. package/dist/users/get/query.js +2 -2
  731. package/dist/users/get/response.d.ts +7 -7
  732. package/dist/users/get/response.js +2 -2
  733. package/dist/users/home-layout/index.d.ts +3 -3
  734. package/dist/users/home-layout/index.js +19 -19
  735. package/dist/users/home-layout/request.d.ts +5 -5
  736. package/dist/users/home-layout/request.js +2 -2
  737. package/dist/users/home-layout/response.d.ts +5 -5
  738. package/dist/users/home-layout/response.js +2 -2
  739. package/dist/users/home-layout/shared.d.ts +288 -288
  740. package/dist/users/home-layout/shared.js +29 -29
  741. package/dist/users/index.d.ts +9 -9
  742. package/dist/users/index.js +25 -25
  743. package/dist/users/invites.d.ts +19 -19
  744. package/dist/users/invites.js +2 -2
  745. package/dist/users/password-reset.d.ts +33 -33
  746. package/dist/users/password-reset.js +2 -2
  747. package/dist/users/post/index.d.ts +2 -2
  748. package/dist/users/post/index.js +18 -18
  749. package/dist/users/post/request.d.ts +25 -25
  750. package/dist/users/post/request.js +2 -2
  751. package/dist/users/post/response.d.ts +1 -1
  752. package/dist/users/post/response.js +2 -2
  753. package/dist/views/[id]/index.d.ts +1 -1
  754. package/dist/views/[id]/index.js +17 -17
  755. package/dist/views/[id]/patch/index.d.ts +2 -2
  756. package/dist/views/[id]/patch/index.js +18 -18
  757. package/dist/views/[id]/patch/request.d.ts +9 -9
  758. package/dist/views/[id]/patch/request.js +2 -2
  759. package/dist/views/[id]/patch/response.d.ts +1 -1
  760. package/dist/views/[id]/patch/response.js +2 -2
  761. package/dist/views/get/index.d.ts +2 -2
  762. package/dist/views/get/index.js +18 -18
  763. package/dist/views/get/query.d.ts +12 -12
  764. package/dist/views/get/query.js +2 -2
  765. package/dist/views/get/response.d.ts +20 -20
  766. package/dist/views/get/response.js +2 -2
  767. package/dist/views/index.d.ts +4 -4
  768. package/dist/views/index.js +20 -20
  769. package/dist/views/post/index.d.ts +2 -2
  770. package/dist/views/post/index.js +18 -18
  771. package/dist/views/post/request.d.ts +10 -10
  772. package/dist/views/post/request.js +2 -2
  773. package/dist/views/post/response.d.ts +1 -1
  774. package/dist/views/post/response.js +2 -2
  775. package/dist/views/shared.d.ts +27 -27
  776. package/dist/views/shared.js +2 -2
  777. package/dist/workflows/index.d.ts +44 -44
  778. package/dist/workflows/index.js +2 -2
  779. package/package.json +2 -2
@@ -1,319 +1,319 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.semanticQuerySortFields = exports.semanticQueryViewTypes = exports.SEMANTIC_QUERY_VERSION = exports.SEMANTIC_QUERY_LIMITS = exports.semanticConditionTypes = exports.semanticConditionTypesByEntity = exports.semanticReaderConditionTypes = exports.semanticSnapshotConditionTypes = exports.semanticEventConditionTypes = exports.semanticLocationConditionTypes = exports.semanticAssetConditionTypes = exports.semanticGroupConditionTypes = exports.semanticReadinessLevels = exports.semanticTelemetryFields = exports.semanticSetOperators = exports.semanticComparisonOperators = exports.semanticTimestampOperators = exports.semanticFieldOperators = exports.semanticRelativeDatePositions = exports.semanticRelativeDateBases = exports.semanticQueryVisibilities = exports.semanticQueryKinds = exports.semanticQueryEntityTypes = void 0;
4
- /**
5
- * SEMANTIC QUERIES — the portable query language.
6
- *
7
- * A semantic query is a JSON list of typed conditions (ANDed together, nestable
8
- * with and/or groups) over one entity type. Three parties speak this contract —
9
- * the client filter UI that builds conditions, the LLM that generates them, and
10
- * the server compiler that executes them — so this file is the single
11
- * vocabulary all three encode.
12
- *
13
- * THE CLOSED-VOCABULARY RULE. Condition types, operators AND property names are
14
- * closed sets: validation rejects an unknown property rather than ignoring it,
15
- * at every level. This is not defensive tidiness — an LLM once invented a
16
- * `"negate": true` property; ignoring it compiled NOT(X) as X, a query that ran
17
- * successfully and returned exactly the complement of what was asked. Every
18
- * defect class this design guards against fails SILENTLY (valid query, wrong
19
- * rows), which is why an honest rejection always beats a plausible guess.
20
- *
21
- * There is deliberately NO general negation (no `not` group, no invertible
22
- * flag). Expressible negatively: `notExists`, `ne`, `geolocation.exists:false`,
23
- * `kit.isMember:false`. Anything else must surface as a validation issue,
24
- * never an approximation.
25
- *
26
- * Descends from the G2G Chat prototype (see g2g-client
27
- * `docs/semantic-query-decisions.md` while it lives, folding into
28
- * TECHNICAL_DECISIONS.md) and the semantic-query specification errata.
29
- */
30
- // --- Entity + record kind -------------------------------------------------
31
- /**
32
- * What a semantic query targets. All but `manifest` execute; it is recorded so
33
- * the classifier can name what it is declining, and so a stored query would
34
- * never need retrofitting if it ever learns to speak.
35
- */
36
- exports.semanticQueryEntityTypes = [
37
- 'asset',
38
- 'location',
39
- 'event',
40
- 'reader',
41
- 'snapshot',
42
- 'manifest',
43
- ];
44
- /**
45
- * What a stored record IS, as opposed to what it targets.
46
- * - `query` — a selector. Executing it returns rows.
47
- * - `operation` — a selector PLUS verbs ("move everything matching this to
48
- * Southport"). Only the DEFINITION is stored; execution belongs
49
- * to the bulk-operations API when it exists.
50
- */
51
- exports.semanticQueryKinds = ['query', 'operation'];
52
- exports.semanticQueryVisibilities = ['private', 'organisation'];
53
- // --- Relative dates -------------------------------------------------------
54
- exports.semanticRelativeDateBases = [
55
- 'day',
56
- 'week',
57
- 'month',
58
- 'quarter',
59
- 'year',
60
- ];
61
- exports.semanticRelativeDatePositions = ['start', 'end', 'same'];
62
- // --- Operators ------------------------------------------------------------
63
- exports.semanticFieldOperators = [
64
- 'eq',
65
- 'ne',
66
- 'gt',
67
- 'gte',
68
- 'lt',
69
- 'lte',
70
- 'contains',
71
- 'exists',
72
- 'notExists',
73
- ];
74
- exports.semanticTimestampOperators = ['gt', 'gte', 'lt', 'lte'];
75
- exports.semanticComparisonOperators = [
76
- 'eq',
77
- 'ne',
78
- 'gt',
79
- 'gte',
80
- 'lt',
81
- 'lte',
82
- ];
83
- exports.semanticSetOperators = ['any', 'all'];
84
- exports.semanticTelemetryFields = [
85
- 'battery',
86
- 'temperature',
87
- 'voltage',
88
- ];
89
- /** Readiness severity scale (contract shared/readiness.ts): 0 green, 1 amber, 2 red. */
90
- exports.semanticReadinessLevels = [0, 1, 2];
91
- /**
92
- * Grouping — valid in every entity's vocabulary, because nesting is structure
93
- * rather than subject matter.
94
- */
95
- exports.semanticGroupConditionTypes = ['and', 'or'];
96
- /**
97
- * The ASSET vocabulary. Over a third of it is asset-only by nature —
98
- * `readiness`, `kit`, `withAsset`, `telemetry`, `locationStatus` mean nothing
99
- * for a reader or a snapshot.
100
- */
101
- exports.semanticAssetConditionTypes = [
102
- ...exports.semanticGroupConditionTypes,
103
- 'assetType',
104
- 'location',
105
- 'homeLocation',
106
- 'withAsset',
107
- 'customField',
108
- 'createdDate',
109
- 'lastUpdated',
110
- 'lastChanged',
111
- 'lastSeen',
112
- 'firstSeen',
113
- 'geolocation',
114
- 'tags',
115
- 'telemetry',
116
- 'readiness',
117
- 'kit',
118
- 'locationStatus',
119
- 'seenWithoutLocation',
120
- ];
121
- /**
122
- * The LOCATION vocabulary.
123
- *
124
- * Where a fact is genuinely the same as an asset's, it keeps the same word AND
125
- * the same meaning — `tags`, `createdDate`, `lastUpdated`, `lastChanged`. That
126
- * is the naming rule working: one fact stored the same way, sharing one
127
- * emitter, not two coincidences that agree today.
128
- *
129
- * `geolocation` is the exception that proves it needs care. The word means the
130
- * same thing — "has map coordinates" — but a location has TWO: the coordinates
131
- * it was configured with, and the ones a moving location last reported
132
- * (`state.geolocation`, which is what the asset condition reads). This
133
- * condition means the CONFIGURED position; the observed one belongs to a
134
- * separate condition if it is ever wanted, rather than being silently folded
135
- * in here.
136
- *
137
- * DELIBERATELY ABSENT: `lastSeen`, `firstSeen` and `telemetry`. The location
138
- * document declares all three and the parser exposes them, so they were easy
139
- * to add — but nothing in this repo writes them (the reader/MQTT ingestion
140
- * does, if anything does), no legacy filter or prototype condition ever
141
- * offered them, and they could only ever apply to MOVING locations carrying a
142
- * tracker. A condition over a field that may never be populated is one that
143
- * runs and confidently returns nothing. They come back the day the ingestion
144
- * is confirmed to populate them — the emitters are already shared, so it is a
145
- * list entry and two switch arms.
146
- *
147
- * Also absent, and for a different reason: free text. There is no
148
- * `nameContains` (the prototype had one) because search is a view option
149
- * platform-wide, not a condition.
150
- */
151
- exports.semanticLocationConditionTypes = [
152
- ...exports.semanticGroupConditionTypes,
153
- 'path',
154
- 'locationType',
155
- 'hasReaders',
156
- 'geofence',
157
- 'manifest',
158
- 'tags',
159
- 'geolocation',
160
- 'createdDate',
161
- 'lastUpdated',
162
- 'lastChanged',
163
- ];
164
- /**
165
- * The EVENT vocabulary.
166
- *
167
- * `location` borrows its WORD from the asset vocabulary but not its meaning:
168
- * an asset's `location` is where the asset is now, an event's is where the
169
- * event happened. Same name for the same kind of question, different subject —
170
- * which is why each entity compiles it against its own field.
171
- * `occurred` is its own word rather than reusing a timestamp
172
- * name, because an event has exactly ONE time and calling it `createdDate`
173
- * would invite the reading that events have several dates the way assets do.
174
- */
175
- exports.semanticEventConditionTypes = [
176
- ...exports.semanticGroupConditionTypes,
177
- 'occurred',
178
- 'eventType',
179
- 'assetType',
180
- 'location',
181
- 'reader',
182
- 'user',
183
- 'action',
184
- ];
185
- /**
186
- * The SNAPSHOT vocabulary.
187
- *
188
- * Full parity with the prototype's six words, plus `assetType` and `reader`,
189
- * which its descriptor lacked and the platform's flat filters already support.
190
- *
191
- * Nothing is withheld here, and that is worth contrasting with events. The
192
- * prototype matched `asset`, `user` and `manifest` by case-insensitive regex
193
- * over a denormalised name — the failure the asset vocabulary refuses, three
194
- * times over. It survives translation intact only because this entity stores
195
- * real ids for all three, so the honest form costs no capability. Where it
196
- * could not (a name for `user`), the event ladder already solved it.
197
- *
198
- * Absent for the standing reason: free text. No `nameContains` — search is a
199
- * view option platform-wide, never a stored condition.
200
- */
201
- exports.semanticSnapshotConditionTypes = [
202
- ...exports.semanticGroupConditionTypes,
203
- 'occurred',
204
- 'snapshotType',
205
- 'asset',
206
- 'assetType',
207
- 'location',
208
- 'manifest',
209
- 'user',
210
- 'reader',
211
- ];
212
- /**
213
- * The READER vocabulary.
214
- *
215
- * Five of the prototype's six words, plus `hasReported` and `hasGeolocation`
216
- * that it had no form for. The sixth (`nameContains`) is refused above.
217
- *
218
- * Note what is NOT here: readers carry no user-group scope, and this
219
- * vocabulary does not add one. `usergroups/scope.ts` lists them among the
220
- * surfaces deliberately unscoped in v1, and filtering a set the caller can
221
- * already read in full reveals nothing new.
222
- */
223
- exports.semanticReaderConditionTypes = [
224
- ...exports.semanticGroupConditionTypes,
225
- 'deviceType',
226
- 'readerType',
227
- 'location',
228
- 'attachedAsset',
229
- 'online',
230
- 'hasReported',
231
- 'hasGeolocation',
232
- ];
233
- /**
234
- * WHICH WORDS EACH ENTITY KNOWS — the closed vocabulary, per entity.
235
- *
236
- * The rule only has teeth if "unknown" is decidable for the entity being
237
- * queried. In one flat list `{type:'readiness'}` on a location query is a
238
- * VALID word, so rejecting it would demote to a hand-maintained compatibility
239
- * table — a second gate that can drift from the first, which is the
240
- * runs-cleanly-returns-wrong-rows failure this design exists to prevent.
241
- *
242
- * It also scopes what the generator is shown: composing a location query, the
243
- * model never sees `readiness` at all. The prototype's prompt listed
244
- * conditions it could not supply and the model duly emitted them (finding 12);
245
- * a shared vocabulary hands that failure to every entity at once.
246
- *
247
- * An entity with an EMPTY vocabulary is one the language does not speak yet —
248
- * every condition is rejected, which is the honest answer while only assets
249
- * execute. Entities are listed from day one so a stored record never needs
250
- * retrofitting.
251
- *
252
- * Where a concept genuinely coincides across entities it keeps the SAME word
253
- * (`createdDate` is the same fact everywhere). A domain word is only earned
254
- * where the meaning differs.
255
- */
256
- exports.semanticConditionTypesByEntity = {
257
- asset: exports.semanticAssetConditionTypes,
258
- location: exports.semanticLocationConditionTypes,
259
- event: exports.semanticEventConditionTypes,
260
- snapshot: exports.semanticSnapshotConditionTypes,
261
- reader: exports.semanticReaderConditionTypes,
262
- manifest: [],
263
- };
264
- /**
265
- * Every condition type the language knows, across all entities.
266
- *
267
- * This is the BOUNDARY's list — the wire schema checks that a condition names
268
- * a real word at all, and leaves which-entity-may-use-it to the shared
269
- * validator, which knows the entity and can say "'readiness' is an asset
270
- * condition" instead of "not allowed".
271
- */
272
- exports.semanticConditionTypes = [
273
- ...new Set([
274
- ...exports.semanticAssetConditionTypes,
275
- ...exports.semanticLocationConditionTypes,
276
- ...exports.semanticEventConditionTypes,
277
- ...exports.semanticSnapshotConditionTypes,
278
- ...exports.semanticReaderConditionTypes,
279
- ]),
280
- ];
281
- /**
282
- * Query size bounds, shared by the boundary schema (which refuses an oversized
283
- * query before parsing it) and the compiler (which counts every branch as it
284
- * walks). Both halves are load-bearing: without the compiler's counting a
285
- * single `or` could carry thousands of arms, and without the boundary's cap
286
- * the parse itself is the cost.
287
- */
288
- exports.SEMANTIC_QUERY_LIMITS = {
289
- maxConditions: 50,
290
- maxDepth: 5,
291
- };
292
- // --- The envelope ---------------------------------------------------------
293
- /** Current wire version of the condition vocabulary. */
294
- exports.SEMANTIC_QUERY_VERSION = 2;
295
- // --- Stored-record display config -----------------------------------------
296
- /** Which rendering of the asset list a saved query opens in. */
297
- exports.semanticQueryViewTypes = ['table', 'map', 'tree'];
298
- /**
299
- * The same list as VALUES, for the boundary schema.
300
- *
301
- * Keyed as a Record so the compiler enforces it BOTH ways: a field missing
302
- * here is a build error, and one that is not a real sort field is too. The
303
- * validator hand-wrote `searchableSortFields, 'battery', 'ready'` — which was
304
- * correct when assets were the only entity and became a rejection of every
305
- * location view the moment they were not. A hand-kept copy of a type is a copy
306
- * that drifts; this one cannot.
307
- */
308
- const SEMANTIC_QUERY_SORT_FIELD_SET = {
309
- name: true,
310
- updated: true,
311
- created: true,
312
- relevancy: true,
313
- battery: true,
314
- ready: true,
315
- path: true,
316
- submitted: true,
317
- };
318
- exports.semanticQuerySortFields = Object.keys(SEMANTIC_QUERY_SORT_FIELD_SET);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.semanticQuerySortFields = exports.semanticQueryViewTypes = exports.SEMANTIC_QUERY_VERSION = exports.SEMANTIC_QUERY_LIMITS = exports.semanticConditionTypes = exports.semanticConditionTypesByEntity = exports.semanticReaderConditionTypes = exports.semanticSnapshotConditionTypes = exports.semanticEventConditionTypes = exports.semanticLocationConditionTypes = exports.semanticAssetConditionTypes = exports.semanticGroupConditionTypes = exports.semanticReadinessLevels = exports.semanticTelemetryFields = exports.semanticSetOperators = exports.semanticComparisonOperators = exports.semanticTimestampOperators = exports.semanticFieldOperators = exports.semanticRelativeDatePositions = exports.semanticRelativeDateBases = exports.semanticQueryVisibilities = exports.semanticQueryKinds = exports.semanticQueryEntityTypes = void 0;
4
+ /**
5
+ * SEMANTIC QUERIES — the portable query language.
6
+ *
7
+ * A semantic query is a JSON list of typed conditions (ANDed together, nestable
8
+ * with and/or groups) over one entity type. Three parties speak this contract —
9
+ * the client filter UI that builds conditions, the LLM that generates them, and
10
+ * the server compiler that executes them — so this file is the single
11
+ * vocabulary all three encode.
12
+ *
13
+ * THE CLOSED-VOCABULARY RULE. Condition types, operators AND property names are
14
+ * closed sets: validation rejects an unknown property rather than ignoring it,
15
+ * at every level. This is not defensive tidiness — an LLM once invented a
16
+ * `"negate": true` property; ignoring it compiled NOT(X) as X, a query that ran
17
+ * successfully and returned exactly the complement of what was asked. Every
18
+ * defect class this design guards against fails SILENTLY (valid query, wrong
19
+ * rows), which is why an honest rejection always beats a plausible guess.
20
+ *
21
+ * There is deliberately NO general negation (no `not` group, no invertible
22
+ * flag). Expressible negatively: `notExists`, `ne`, `geolocation.exists:false`,
23
+ * `kit.isMember:false`. Anything else must surface as a validation issue,
24
+ * never an approximation.
25
+ *
26
+ * Descends from the G2G Chat prototype (see g2g-client
27
+ * `docs/semantic-query-decisions.md` while it lives, folding into
28
+ * TECHNICAL_DECISIONS.md) and the semantic-query specification errata.
29
+ */
30
+ // --- Entity + record kind -------------------------------------------------
31
+ /**
32
+ * What a semantic query targets. All but `manifest` execute; it is recorded so
33
+ * the classifier can name what it is declining, and so a stored query would
34
+ * never need retrofitting if it ever learns to speak.
35
+ */
36
+ exports.semanticQueryEntityTypes = [
37
+ 'asset',
38
+ 'location',
39
+ 'event',
40
+ 'reader',
41
+ 'snapshot',
42
+ 'manifest',
43
+ ];
44
+ /**
45
+ * What a stored record IS, as opposed to what it targets.
46
+ * - `query` — a selector. Executing it returns rows.
47
+ * - `operation` — a selector PLUS verbs ("move everything matching this to
48
+ * Southport"). Only the DEFINITION is stored; execution belongs
49
+ * to the bulk-operations API when it exists.
50
+ */
51
+ exports.semanticQueryKinds = ['query', 'operation'];
52
+ exports.semanticQueryVisibilities = ['private', 'organisation'];
53
+ // --- Relative dates -------------------------------------------------------
54
+ exports.semanticRelativeDateBases = [
55
+ 'day',
56
+ 'week',
57
+ 'month',
58
+ 'quarter',
59
+ 'year',
60
+ ];
61
+ exports.semanticRelativeDatePositions = ['start', 'end', 'same'];
62
+ // --- Operators ------------------------------------------------------------
63
+ exports.semanticFieldOperators = [
64
+ 'eq',
65
+ 'ne',
66
+ 'gt',
67
+ 'gte',
68
+ 'lt',
69
+ 'lte',
70
+ 'contains',
71
+ 'exists',
72
+ 'notExists',
73
+ ];
74
+ exports.semanticTimestampOperators = ['gt', 'gte', 'lt', 'lte'];
75
+ exports.semanticComparisonOperators = [
76
+ 'eq',
77
+ 'ne',
78
+ 'gt',
79
+ 'gte',
80
+ 'lt',
81
+ 'lte',
82
+ ];
83
+ exports.semanticSetOperators = ['any', 'all'];
84
+ exports.semanticTelemetryFields = [
85
+ 'battery',
86
+ 'temperature',
87
+ 'voltage',
88
+ ];
89
+ /** Readiness severity scale (contract shared/readiness.ts): 0 green, 1 amber, 2 red. */
90
+ exports.semanticReadinessLevels = [0, 1, 2];
91
+ /**
92
+ * Grouping — valid in every entity's vocabulary, because nesting is structure
93
+ * rather than subject matter.
94
+ */
95
+ exports.semanticGroupConditionTypes = ['and', 'or'];
96
+ /**
97
+ * The ASSET vocabulary. Over a third of it is asset-only by nature —
98
+ * `readiness`, `kit`, `withAsset`, `telemetry`, `locationStatus` mean nothing
99
+ * for a reader or a snapshot.
100
+ */
101
+ exports.semanticAssetConditionTypes = [
102
+ ...exports.semanticGroupConditionTypes,
103
+ 'assetType',
104
+ 'location',
105
+ 'homeLocation',
106
+ 'withAsset',
107
+ 'customField',
108
+ 'createdDate',
109
+ 'lastUpdated',
110
+ 'lastChanged',
111
+ 'lastSeen',
112
+ 'firstSeen',
113
+ 'geolocation',
114
+ 'tags',
115
+ 'telemetry',
116
+ 'readiness',
117
+ 'kit',
118
+ 'locationStatus',
119
+ 'seenWithoutLocation',
120
+ ];
121
+ /**
122
+ * The LOCATION vocabulary.
123
+ *
124
+ * Where a fact is genuinely the same as an asset's, it keeps the same word AND
125
+ * the same meaning — `tags`, `createdDate`, `lastUpdated`, `lastChanged`. That
126
+ * is the naming rule working: one fact stored the same way, sharing one
127
+ * emitter, not two coincidences that agree today.
128
+ *
129
+ * `geolocation` is the exception that proves it needs care. The word means the
130
+ * same thing — "has map coordinates" — but a location has TWO: the coordinates
131
+ * it was configured with, and the ones a moving location last reported
132
+ * (`state.geolocation`, which is what the asset condition reads). This
133
+ * condition means the CONFIGURED position; the observed one belongs to a
134
+ * separate condition if it is ever wanted, rather than being silently folded
135
+ * in here.
136
+ *
137
+ * DELIBERATELY ABSENT: `lastSeen`, `firstSeen` and `telemetry`. The location
138
+ * document declares all three and the parser exposes them, so they were easy
139
+ * to add — but nothing in this repo writes them (the reader/MQTT ingestion
140
+ * does, if anything does), no legacy filter or prototype condition ever
141
+ * offered them, and they could only ever apply to MOVING locations carrying a
142
+ * tracker. A condition over a field that may never be populated is one that
143
+ * runs and confidently returns nothing. They come back the day the ingestion
144
+ * is confirmed to populate them — the emitters are already shared, so it is a
145
+ * list entry and two switch arms.
146
+ *
147
+ * Also absent, and for a different reason: free text. There is no
148
+ * `nameContains` (the prototype had one) because search is a view option
149
+ * platform-wide, not a condition.
150
+ */
151
+ exports.semanticLocationConditionTypes = [
152
+ ...exports.semanticGroupConditionTypes,
153
+ 'path',
154
+ 'locationType',
155
+ 'hasReaders',
156
+ 'geofence',
157
+ 'manifest',
158
+ 'tags',
159
+ 'geolocation',
160
+ 'createdDate',
161
+ 'lastUpdated',
162
+ 'lastChanged',
163
+ ];
164
+ /**
165
+ * The EVENT vocabulary.
166
+ *
167
+ * `location` borrows its WORD from the asset vocabulary but not its meaning:
168
+ * an asset's `location` is where the asset is now, an event's is where the
169
+ * event happened. Same name for the same kind of question, different subject —
170
+ * which is why each entity compiles it against its own field.
171
+ * `occurred` is its own word rather than reusing a timestamp
172
+ * name, because an event has exactly ONE time and calling it `createdDate`
173
+ * would invite the reading that events have several dates the way assets do.
174
+ */
175
+ exports.semanticEventConditionTypes = [
176
+ ...exports.semanticGroupConditionTypes,
177
+ 'occurred',
178
+ 'eventType',
179
+ 'assetType',
180
+ 'location',
181
+ 'reader',
182
+ 'user',
183
+ 'action',
184
+ ];
185
+ /**
186
+ * The SNAPSHOT vocabulary.
187
+ *
188
+ * Full parity with the prototype's six words, plus `assetType` and `reader`,
189
+ * which its descriptor lacked and the platform's flat filters already support.
190
+ *
191
+ * Nothing is withheld here, and that is worth contrasting with events. The
192
+ * prototype matched `asset`, `user` and `manifest` by case-insensitive regex
193
+ * over a denormalised name — the failure the asset vocabulary refuses, three
194
+ * times over. It survives translation intact only because this entity stores
195
+ * real ids for all three, so the honest form costs no capability. Where it
196
+ * could not (a name for `user`), the event ladder already solved it.
197
+ *
198
+ * Absent for the standing reason: free text. No `nameContains` — search is a
199
+ * view option platform-wide, never a stored condition.
200
+ */
201
+ exports.semanticSnapshotConditionTypes = [
202
+ ...exports.semanticGroupConditionTypes,
203
+ 'occurred',
204
+ 'snapshotType',
205
+ 'asset',
206
+ 'assetType',
207
+ 'location',
208
+ 'manifest',
209
+ 'user',
210
+ 'reader',
211
+ ];
212
+ /**
213
+ * The READER vocabulary.
214
+ *
215
+ * Five of the prototype's six words, plus `hasReported` and `hasGeolocation`
216
+ * that it had no form for. The sixth (`nameContains`) is refused above.
217
+ *
218
+ * Note what is NOT here: readers carry no user-group scope, and this
219
+ * vocabulary does not add one. `usergroups/scope.ts` lists them among the
220
+ * surfaces deliberately unscoped in v1, and filtering a set the caller can
221
+ * already read in full reveals nothing new.
222
+ */
223
+ exports.semanticReaderConditionTypes = [
224
+ ...exports.semanticGroupConditionTypes,
225
+ 'deviceType',
226
+ 'readerType',
227
+ 'location',
228
+ 'attachedAsset',
229
+ 'online',
230
+ 'hasReported',
231
+ 'hasGeolocation',
232
+ ];
233
+ /**
234
+ * WHICH WORDS EACH ENTITY KNOWS — the closed vocabulary, per entity.
235
+ *
236
+ * The rule only has teeth if "unknown" is decidable for the entity being
237
+ * queried. In one flat list `{type:'readiness'}` on a location query is a
238
+ * VALID word, so rejecting it would demote to a hand-maintained compatibility
239
+ * table — a second gate that can drift from the first, which is the
240
+ * runs-cleanly-returns-wrong-rows failure this design exists to prevent.
241
+ *
242
+ * It also scopes what the generator is shown: composing a location query, the
243
+ * model never sees `readiness` at all. The prototype's prompt listed
244
+ * conditions it could not supply and the model duly emitted them (finding 12);
245
+ * a shared vocabulary hands that failure to every entity at once.
246
+ *
247
+ * An entity with an EMPTY vocabulary is one the language does not speak yet —
248
+ * every condition is rejected, which is the honest answer while only assets
249
+ * execute. Entities are listed from day one so a stored record never needs
250
+ * retrofitting.
251
+ *
252
+ * Where a concept genuinely coincides across entities it keeps the SAME word
253
+ * (`createdDate` is the same fact everywhere). A domain word is only earned
254
+ * where the meaning differs.
255
+ */
256
+ exports.semanticConditionTypesByEntity = {
257
+ asset: exports.semanticAssetConditionTypes,
258
+ location: exports.semanticLocationConditionTypes,
259
+ event: exports.semanticEventConditionTypes,
260
+ snapshot: exports.semanticSnapshotConditionTypes,
261
+ reader: exports.semanticReaderConditionTypes,
262
+ manifest: [],
263
+ };
264
+ /**
265
+ * Every condition type the language knows, across all entities.
266
+ *
267
+ * This is the BOUNDARY's list — the wire schema checks that a condition names
268
+ * a real word at all, and leaves which-entity-may-use-it to the shared
269
+ * validator, which knows the entity and can say "'readiness' is an asset
270
+ * condition" instead of "not allowed".
271
+ */
272
+ exports.semanticConditionTypes = [
273
+ ...new Set([
274
+ ...exports.semanticAssetConditionTypes,
275
+ ...exports.semanticLocationConditionTypes,
276
+ ...exports.semanticEventConditionTypes,
277
+ ...exports.semanticSnapshotConditionTypes,
278
+ ...exports.semanticReaderConditionTypes,
279
+ ]),
280
+ ];
281
+ /**
282
+ * Query size bounds, shared by the boundary schema (which refuses an oversized
283
+ * query before parsing it) and the compiler (which counts every branch as it
284
+ * walks). Both halves are load-bearing: without the compiler's counting a
285
+ * single `or` could carry thousands of arms, and without the boundary's cap
286
+ * the parse itself is the cost.
287
+ */
288
+ exports.SEMANTIC_QUERY_LIMITS = {
289
+ maxConditions: 50,
290
+ maxDepth: 5,
291
+ };
292
+ // --- The envelope ---------------------------------------------------------
293
+ /** Current wire version of the condition vocabulary. */
294
+ exports.SEMANTIC_QUERY_VERSION = 2;
295
+ // --- Stored-record display config -----------------------------------------
296
+ /** Which rendering of the asset list a saved query opens in. */
297
+ exports.semanticQueryViewTypes = ['table', 'map', 'tree'];
298
+ /**
299
+ * The same list as VALUES, for the boundary schema.
300
+ *
301
+ * Keyed as a Record so the compiler enforces it BOTH ways: a field missing
302
+ * here is a build error, and one that is not a real sort field is too. The
303
+ * validator hand-wrote `searchableSortFields, 'battery', 'ready'` — which was
304
+ * correct when assets were the only entity and became a rejection of every
305
+ * location view the moment they were not. A hand-kept copy of a type is a copy
306
+ * that drifts; this one cannot.
307
+ */
308
+ const SEMANTIC_QUERY_SORT_FIELD_SET = {
309
+ name: true,
310
+ updated: true,
311
+ created: true,
312
+ relevancy: true,
313
+ battery: true,
314
+ ready: true,
315
+ path: true,
316
+ submitted: true,
317
+ };
318
+ exports.semanticQuerySortFields = Object.keys(SEMANTIC_QUERY_SORT_FIELD_SET);
319
319
  //# sourceMappingURL=shared.js.map