@keystrokehq/radar 0.1.0

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 (330) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/autocomplete-address-or-place.cjs +61 -0
  7. package/dist/actions/autocomplete-address-or-place.cjs.map +1 -0
  8. package/dist/actions/autocomplete-address-or-place.d.cts +9 -0
  9. package/dist/actions/autocomplete-address-or-place.d.cts.map +1 -0
  10. package/dist/actions/autocomplete-address-or-place.d.mts +9 -0
  11. package/dist/actions/autocomplete-address-or-place.d.mts.map +1 -0
  12. package/dist/actions/autocomplete-address-or-place.mjs +60 -0
  13. package/dist/actions/autocomplete-address-or-place.mjs.map +1 -0
  14. package/dist/actions/create-beacon.cjs +56 -0
  15. package/dist/actions/create-beacon.cjs.map +1 -0
  16. package/dist/actions/create-beacon.d.cts +9 -0
  17. package/dist/actions/create-beacon.d.cts.map +1 -0
  18. package/dist/actions/create-beacon.d.mts +9 -0
  19. package/dist/actions/create-beacon.d.mts.map +1 -0
  20. package/dist/actions/create-beacon.mjs +55 -0
  21. package/dist/actions/create-beacon.mjs.map +1 -0
  22. package/dist/actions/create-trip.cjs +40 -0
  23. package/dist/actions/create-trip.cjs.map +1 -0
  24. package/dist/actions/create-trip.d.cts +9 -0
  25. package/dist/actions/create-trip.d.cts.map +1 -0
  26. package/dist/actions/create-trip.d.mts +9 -0
  27. package/dist/actions/create-trip.d.mts.map +1 -0
  28. package/dist/actions/create-trip.mjs +37 -0
  29. package/dist/actions/create-trip.mjs.map +1 -0
  30. package/dist/actions/delete-beacon.cjs +17 -0
  31. package/dist/actions/delete-beacon.cjs.map +1 -0
  32. package/dist/actions/delete-beacon.d.cts +9 -0
  33. package/dist/actions/delete-beacon.d.cts.map +1 -0
  34. package/dist/actions/delete-beacon.d.mts +9 -0
  35. package/dist/actions/delete-beacon.d.mts.map +1 -0
  36. package/dist/actions/delete-beacon.mjs +16 -0
  37. package/dist/actions/delete-beacon.mjs.map +1 -0
  38. package/dist/actions/delete-geofence-by-tag.cjs +20 -0
  39. package/dist/actions/delete-geofence-by-tag.cjs.map +1 -0
  40. package/dist/actions/delete-geofence-by-tag.d.cts +9 -0
  41. package/dist/actions/delete-geofence-by-tag.d.cts.map +1 -0
  42. package/dist/actions/delete-geofence-by-tag.d.mts +9 -0
  43. package/dist/actions/delete-geofence-by-tag.d.mts.map +1 -0
  44. package/dist/actions/delete-geofence-by-tag.mjs +19 -0
  45. package/dist/actions/delete-geofence-by-tag.mjs.map +1 -0
  46. package/dist/actions/delete-geofence.cjs +17 -0
  47. package/dist/actions/delete-geofence.cjs.map +1 -0
  48. package/dist/actions/delete-geofence.d.cts +9 -0
  49. package/dist/actions/delete-geofence.d.cts.map +1 -0
  50. package/dist/actions/delete-geofence.d.mts +9 -0
  51. package/dist/actions/delete-geofence.d.mts.map +1 -0
  52. package/dist/actions/delete-geofence.mjs +16 -0
  53. package/dist/actions/delete-geofence.mjs.map +1 -0
  54. package/dist/actions/delete-trip.cjs +17 -0
  55. package/dist/actions/delete-trip.cjs.map +1 -0
  56. package/dist/actions/delete-trip.d.cts +9 -0
  57. package/dist/actions/delete-trip.d.cts.map +1 -0
  58. package/dist/actions/delete-trip.d.mts +9 -0
  59. package/dist/actions/delete-trip.d.mts.map +1 -0
  60. package/dist/actions/delete-trip.mjs +16 -0
  61. package/dist/actions/delete-trip.mjs.map +1 -0
  62. package/dist/actions/delete-user.cjs +17 -0
  63. package/dist/actions/delete-user.cjs.map +1 -0
  64. package/dist/actions/delete-user.d.cts +9 -0
  65. package/dist/actions/delete-user.d.cts.map +1 -0
  66. package/dist/actions/delete-user.d.mts +9 -0
  67. package/dist/actions/delete-user.d.mts.map +1 -0
  68. package/dist/actions/delete-user.mjs +16 -0
  69. package/dist/actions/delete-user.mjs.map +1 -0
  70. package/dist/actions/forward-geocode.cjs +43 -0
  71. package/dist/actions/forward-geocode.cjs.map +1 -0
  72. package/dist/actions/forward-geocode.d.cts +9 -0
  73. package/dist/actions/forward-geocode.d.cts.map +1 -0
  74. package/dist/actions/forward-geocode.d.mts +9 -0
  75. package/dist/actions/forward-geocode.d.mts.map +1 -0
  76. package/dist/actions/forward-geocode.mjs +42 -0
  77. package/dist/actions/forward-geocode.mjs.map +1 -0
  78. package/dist/actions/get-beacon-by-tag.cjs +42 -0
  79. package/dist/actions/get-beacon-by-tag.cjs.map +1 -0
  80. package/dist/actions/get-beacon-by-tag.d.cts +9 -0
  81. package/dist/actions/get-beacon-by-tag.d.cts.map +1 -0
  82. package/dist/actions/get-beacon-by-tag.d.mts +9 -0
  83. package/dist/actions/get-beacon-by-tag.d.mts.map +1 -0
  84. package/dist/actions/get-beacon-by-tag.mjs +41 -0
  85. package/dist/actions/get-beacon-by-tag.mjs.map +1 -0
  86. package/dist/actions/get-beacon.cjs +39 -0
  87. package/dist/actions/get-beacon.cjs.map +1 -0
  88. package/dist/actions/get-beacon.d.cts +9 -0
  89. package/dist/actions/get-beacon.d.cts.map +1 -0
  90. package/dist/actions/get-beacon.d.mts +9 -0
  91. package/dist/actions/get-beacon.d.mts.map +1 -0
  92. package/dist/actions/get-beacon.mjs +38 -0
  93. package/dist/actions/get-beacon.mjs.map +1 -0
  94. package/dist/actions/get-context-for-location.cjs +110 -0
  95. package/dist/actions/get-context-for-location.cjs.map +1 -0
  96. package/dist/actions/get-context-for-location.d.cts +9 -0
  97. package/dist/actions/get-context-for-location.d.cts.map +1 -0
  98. package/dist/actions/get-context-for-location.d.mts +9 -0
  99. package/dist/actions/get-context-for-location.d.mts.map +1 -0
  100. package/dist/actions/get-context-for-location.mjs +109 -0
  101. package/dist/actions/get-context-for-location.mjs.map +1 -0
  102. package/dist/actions/get-geofence.cjs +35 -0
  103. package/dist/actions/get-geofence.cjs.map +1 -0
  104. package/dist/actions/get-geofence.d.cts +9 -0
  105. package/dist/actions/get-geofence.d.cts.map +1 -0
  106. package/dist/actions/get-geofence.d.mts +9 -0
  107. package/dist/actions/get-geofence.d.mts.map +1 -0
  108. package/dist/actions/get-geofence.mjs +34 -0
  109. package/dist/actions/get-geofence.mjs.map +1 -0
  110. package/dist/actions/get-places-settings.cjs +28 -0
  111. package/dist/actions/get-places-settings.cjs.map +1 -0
  112. package/dist/actions/get-places-settings.d.cts +9 -0
  113. package/dist/actions/get-places-settings.d.cts.map +1 -0
  114. package/dist/actions/get-places-settings.d.mts +9 -0
  115. package/dist/actions/get-places-settings.d.mts.map +1 -0
  116. package/dist/actions/get-places-settings.mjs +27 -0
  117. package/dist/actions/get-places-settings.mjs.map +1 -0
  118. package/dist/actions/get-route-directions.cjs +95 -0
  119. package/dist/actions/get-route-directions.cjs.map +1 -0
  120. package/dist/actions/get-route-directions.d.cts +9 -0
  121. package/dist/actions/get-route-directions.d.cts.map +1 -0
  122. package/dist/actions/get-route-directions.d.mts +9 -0
  123. package/dist/actions/get-route-directions.d.mts.map +1 -0
  124. package/dist/actions/get-route-directions.mjs +94 -0
  125. package/dist/actions/get-route-directions.mjs.map +1 -0
  126. package/dist/actions/get-route-matrix.cjs +50 -0
  127. package/dist/actions/get-route-matrix.cjs.map +1 -0
  128. package/dist/actions/get-route-matrix.d.cts +9 -0
  129. package/dist/actions/get-route-matrix.d.cts.map +1 -0
  130. package/dist/actions/get-route-matrix.d.mts +9 -0
  131. package/dist/actions/get-route-matrix.d.mts.map +1 -0
  132. package/dist/actions/get-route-matrix.mjs +49 -0
  133. package/dist/actions/get-route-matrix.mjs.map +1 -0
  134. package/dist/actions/get-trip.cjs +46 -0
  135. package/dist/actions/get-trip.cjs.map +1 -0
  136. package/dist/actions/get-trip.d.cts +9 -0
  137. package/dist/actions/get-trip.d.cts.map +1 -0
  138. package/dist/actions/get-trip.d.mts +9 -0
  139. package/dist/actions/get-trip.d.mts.map +1 -0
  140. package/dist/actions/get-trip.mjs +45 -0
  141. package/dist/actions/get-trip.mjs.map +1 -0
  142. package/dist/actions/get-user.cjs +80 -0
  143. package/dist/actions/get-user.cjs.map +1 -0
  144. package/dist/actions/get-user.d.cts +9 -0
  145. package/dist/actions/get-user.d.cts.map +1 -0
  146. package/dist/actions/get-user.d.mts +9 -0
  147. package/dist/actions/get-user.d.mts.map +1 -0
  148. package/dist/actions/get-user.mjs +79 -0
  149. package/dist/actions/get-user.mjs.map +1 -0
  150. package/dist/actions/get-users-in-geofence.cjs +28 -0
  151. package/dist/actions/get-users-in-geofence.cjs.map +1 -0
  152. package/dist/actions/get-users-in-geofence.d.cts +9 -0
  153. package/dist/actions/get-users-in-geofence.d.cts.map +1 -0
  154. package/dist/actions/get-users-in-geofence.d.mts +9 -0
  155. package/dist/actions/get-users-in-geofence.d.mts.map +1 -0
  156. package/dist/actions/get-users-in-geofence.mjs +27 -0
  157. package/dist/actions/get-users-in-geofence.mjs.map +1 -0
  158. package/dist/actions/index.cjs +75 -0
  159. package/dist/actions/index.d.cts +38 -0
  160. package/dist/actions/index.d.mts +38 -0
  161. package/dist/actions/index.mjs +38 -0
  162. package/dist/actions/ip-geocode.cjs +29 -0
  163. package/dist/actions/ip-geocode.cjs.map +1 -0
  164. package/dist/actions/ip-geocode.d.cts +9 -0
  165. package/dist/actions/ip-geocode.d.cts.map +1 -0
  166. package/dist/actions/ip-geocode.d.mts +9 -0
  167. package/dist/actions/ip-geocode.d.mts.map +1 -0
  168. package/dist/actions/ip-geocode.mjs +26 -0
  169. package/dist/actions/ip-geocode.mjs.map +1 -0
  170. package/dist/actions/list-events.cjs +59 -0
  171. package/dist/actions/list-events.cjs.map +1 -0
  172. package/dist/actions/list-events.d.cts +9 -0
  173. package/dist/actions/list-events.d.cts.map +1 -0
  174. package/dist/actions/list-events.d.mts +9 -0
  175. package/dist/actions/list-events.d.mts.map +1 -0
  176. package/dist/actions/list-events.mjs +58 -0
  177. package/dist/actions/list-events.mjs.map +1 -0
  178. package/dist/actions/list-geofences.cjs +57 -0
  179. package/dist/actions/list-geofences.cjs.map +1 -0
  180. package/dist/actions/list-geofences.d.cts +9 -0
  181. package/dist/actions/list-geofences.d.cts.map +1 -0
  182. package/dist/actions/list-geofences.d.mts +9 -0
  183. package/dist/actions/list-geofences.d.mts.map +1 -0
  184. package/dist/actions/list-geofences.mjs +56 -0
  185. package/dist/actions/list-geofences.mjs.map +1 -0
  186. package/dist/actions/list-trips.cjs +59 -0
  187. package/dist/actions/list-trips.cjs.map +1 -0
  188. package/dist/actions/list-trips.d.cts +9 -0
  189. package/dist/actions/list-trips.d.cts.map +1 -0
  190. package/dist/actions/list-trips.d.mts +9 -0
  191. package/dist/actions/list-trips.d.mts.map +1 -0
  192. package/dist/actions/list-trips.mjs +58 -0
  193. package/dist/actions/list-trips.mjs.map +1 -0
  194. package/dist/actions/list-users.cjs +42 -0
  195. package/dist/actions/list-users.cjs.map +1 -0
  196. package/dist/actions/list-users.d.cts +9 -0
  197. package/dist/actions/list-users.d.cts.map +1 -0
  198. package/dist/actions/list-users.d.mts +9 -0
  199. package/dist/actions/list-users.d.mts.map +1 -0
  200. package/dist/actions/list-users.mjs +41 -0
  201. package/dist/actions/list-users.mjs.map +1 -0
  202. package/dist/actions/reverse-geocode.cjs +40 -0
  203. package/dist/actions/reverse-geocode.cjs.map +1 -0
  204. package/dist/actions/reverse-geocode.d.cts +9 -0
  205. package/dist/actions/reverse-geocode.d.cts.map +1 -0
  206. package/dist/actions/reverse-geocode.d.mts +9 -0
  207. package/dist/actions/reverse-geocode.d.mts.map +1 -0
  208. package/dist/actions/reverse-geocode.mjs +39 -0
  209. package/dist/actions/reverse-geocode.mjs.map +1 -0
  210. package/dist/actions/route-distance.cjs +65 -0
  211. package/dist/actions/route-distance.cjs.map +1 -0
  212. package/dist/actions/route-distance.d.cts +9 -0
  213. package/dist/actions/route-distance.d.cts.map +1 -0
  214. package/dist/actions/route-distance.d.mts +9 -0
  215. package/dist/actions/route-distance.d.mts.map +1 -0
  216. package/dist/actions/route-distance.mjs +64 -0
  217. package/dist/actions/route-distance.mjs.map +1 -0
  218. package/dist/actions/search-geofences-near-location.cjs +43 -0
  219. package/dist/actions/search-geofences-near-location.cjs.map +1 -0
  220. package/dist/actions/search-geofences-near-location.d.cts +9 -0
  221. package/dist/actions/search-geofences-near-location.d.cts.map +1 -0
  222. package/dist/actions/search-geofences-near-location.d.mts +9 -0
  223. package/dist/actions/search-geofences-near-location.d.mts.map +1 -0
  224. package/dist/actions/search-geofences-near-location.mjs +42 -0
  225. package/dist/actions/search-geofences-near-location.mjs.map +1 -0
  226. package/dist/actions/search-places-near-location.cjs +57 -0
  227. package/dist/actions/search-places-near-location.cjs.map +1 -0
  228. package/dist/actions/search-places-near-location.d.cts +9 -0
  229. package/dist/actions/search-places-near-location.d.cts.map +1 -0
  230. package/dist/actions/search-places-near-location.d.mts +9 -0
  231. package/dist/actions/search-places-near-location.d.mts.map +1 -0
  232. package/dist/actions/search-places-near-location.mjs +56 -0
  233. package/dist/actions/search-places-near-location.mjs.map +1 -0
  234. package/dist/actions/search-users-near-location.cjs +39 -0
  235. package/dist/actions/search-users-near-location.cjs.map +1 -0
  236. package/dist/actions/search-users-near-location.d.cts +9 -0
  237. package/dist/actions/search-users-near-location.d.cts.map +1 -0
  238. package/dist/actions/search-users-near-location.d.mts +9 -0
  239. package/dist/actions/search-users-near-location.d.mts.map +1 -0
  240. package/dist/actions/search-users-near-location.mjs +38 -0
  241. package/dist/actions/search-users-near-location.mjs.map +1 -0
  242. package/dist/actions/track-location-update.cjs +38 -0
  243. package/dist/actions/track-location-update.cjs.map +1 -0
  244. package/dist/actions/track-location-update.d.cts +9 -0
  245. package/dist/actions/track-location-update.d.cts.map +1 -0
  246. package/dist/actions/track-location-update.d.mts +9 -0
  247. package/dist/actions/track-location-update.d.mts.map +1 -0
  248. package/dist/actions/track-location-update.mjs +35 -0
  249. package/dist/actions/track-location-update.mjs.map +1 -0
  250. package/dist/actions/update-places-settings.cjs +28 -0
  251. package/dist/actions/update-places-settings.cjs.map +1 -0
  252. package/dist/actions/update-places-settings.d.cts +9 -0
  253. package/dist/actions/update-places-settings.d.cts.map +1 -0
  254. package/dist/actions/update-places-settings.d.mts +9 -0
  255. package/dist/actions/update-places-settings.d.mts.map +1 -0
  256. package/dist/actions/update-places-settings.mjs +27 -0
  257. package/dist/actions/update-places-settings.mjs.map +1 -0
  258. package/dist/actions/update-trip-by-id.cjs +52 -0
  259. package/dist/actions/update-trip-by-id.cjs.map +1 -0
  260. package/dist/actions/update-trip-by-id.d.cts +9 -0
  261. package/dist/actions/update-trip-by-id.d.cts.map +1 -0
  262. package/dist/actions/update-trip-by-id.d.mts +9 -0
  263. package/dist/actions/update-trip-by-id.d.mts.map +1 -0
  264. package/dist/actions/update-trip-by-id.mjs +51 -0
  265. package/dist/actions/update-trip-by-id.mjs.map +1 -0
  266. package/dist/actions/update-trip.cjs +61 -0
  267. package/dist/actions/update-trip.cjs.map +1 -0
  268. package/dist/actions/update-trip.d.cts +9 -0
  269. package/dist/actions/update-trip.d.cts.map +1 -0
  270. package/dist/actions/update-trip.d.mts +9 -0
  271. package/dist/actions/update-trip.d.mts.map +1 -0
  272. package/dist/actions/update-trip.mjs +60 -0
  273. package/dist/actions/update-trip.mjs.map +1 -0
  274. package/dist/actions/upsert-beacon-by-id.cjs +56 -0
  275. package/dist/actions/upsert-beacon-by-id.cjs.map +1 -0
  276. package/dist/actions/upsert-beacon-by-id.d.cts +9 -0
  277. package/dist/actions/upsert-beacon-by-id.d.cts.map +1 -0
  278. package/dist/actions/upsert-beacon-by-id.d.mts +9 -0
  279. package/dist/actions/upsert-beacon-by-id.d.mts.map +1 -0
  280. package/dist/actions/upsert-beacon-by-id.mjs +55 -0
  281. package/dist/actions/upsert-beacon-by-id.mjs.map +1 -0
  282. package/dist/actions/upsert-beacon-by-tag.cjs +53 -0
  283. package/dist/actions/upsert-beacon-by-tag.cjs.map +1 -0
  284. package/dist/actions/upsert-beacon-by-tag.d.cts +9 -0
  285. package/dist/actions/upsert-beacon-by-tag.d.cts.map +1 -0
  286. package/dist/actions/upsert-beacon-by-tag.d.mts +9 -0
  287. package/dist/actions/upsert-beacon-by-tag.d.mts.map +1 -0
  288. package/dist/actions/upsert-beacon-by-tag.mjs +52 -0
  289. package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -0
  290. package/dist/actions/upsert-geofence-by-id.cjs +52 -0
  291. package/dist/actions/upsert-geofence-by-id.cjs.map +1 -0
  292. package/dist/actions/upsert-geofence-by-id.d.cts +9 -0
  293. package/dist/actions/upsert-geofence-by-id.d.cts.map +1 -0
  294. package/dist/actions/upsert-geofence-by-id.d.mts +9 -0
  295. package/dist/actions/upsert-geofence-by-id.d.mts.map +1 -0
  296. package/dist/actions/upsert-geofence-by-id.mjs +51 -0
  297. package/dist/actions/upsert-geofence-by-id.mjs.map +1 -0
  298. package/dist/actions/upsert-geofence.cjs +43 -0
  299. package/dist/actions/upsert-geofence.cjs.map +1 -0
  300. package/dist/actions/upsert-geofence.d.cts +9 -0
  301. package/dist/actions/upsert-geofence.d.cts.map +1 -0
  302. package/dist/actions/upsert-geofence.d.mts +9 -0
  303. package/dist/actions/upsert-geofence.d.mts.map +1 -0
  304. package/dist/actions/upsert-geofence.mjs +42 -0
  305. package/dist/actions/upsert-geofence.mjs.map +1 -0
  306. package/dist/app.cjs +9 -0
  307. package/dist/app.cjs.map +1 -0
  308. package/dist/app.d.cts +5 -0
  309. package/dist/app.d.cts.map +1 -0
  310. package/dist/app.d.mts +5 -0
  311. package/dist/app.d.mts.map +1 -0
  312. package/dist/app.mjs +10 -0
  313. package/dist/app.mjs.map +1 -0
  314. package/dist/catalog.cjs +15 -0
  315. package/dist/catalog.cjs.map +1 -0
  316. package/dist/catalog.d.cts +14 -0
  317. package/dist/catalog.d.cts.map +1 -0
  318. package/dist/catalog.d.mts +14 -0
  319. package/dist/catalog.d.mts.map +1 -0
  320. package/dist/catalog.mjs +15 -0
  321. package/dist/catalog.mjs.map +1 -0
  322. package/dist/execute.cjs +18 -0
  323. package/dist/execute.cjs.map +1 -0
  324. package/dist/execute.mjs +18 -0
  325. package/dist/execute.mjs.map +1 -0
  326. package/dist/index.cjs +80 -0
  327. package/dist/index.d.cts +40 -0
  328. package/dist/index.d.mts +40 -0
  329. package/dist/index.mjs +41 -0
  330. package/package.json +49 -0
@@ -0,0 +1,64 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/route-distance.ts
4
+ const RadarRouteDistanceInput = z.object({
5
+ mode: z.enum([
6
+ "car",
7
+ "truck",
8
+ "foot",
9
+ "bike"
10
+ ]).default("car").describe("Routing mode").optional(),
11
+ avoid: z.string().describe("Route features to avoid, comma-separated (e.g., 'tolls,ferries')").optional(),
12
+ units: z.enum(["metric", "imperial"]).default("metric").describe("Units for distance measurement").optional(),
13
+ origins: z.string().describe("Origin coordinate as 'latitude,longitude'"),
14
+ geometry: z.enum([
15
+ "polyline",
16
+ "polyline5",
17
+ "polyline6",
18
+ "linestring"
19
+ ]).describe("Format for route geometry in response. Options: 'polyline', 'polyline5', 'polyline6', 'linestring'").optional(),
20
+ destinations: z.string().describe("Destination coordinate as 'latitude,longitude'")
21
+ }).describe("Request model for calculating route distance and duration.");
22
+ const RadarRouteDistance_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code") }).describe("Metadata for the route distance response.");
23
+ const RadarRouteDistance_DistanceInfoSchema = z.object({
24
+ text: z.string().describe("Human-readable distance string"),
25
+ value: z.number().describe("Distance value in meters or feet depending on units")
26
+ }).describe("Distance information for a route.");
27
+ const RadarRouteDistance_DurationInfoSchema = z.object({
28
+ text: z.string().describe("Human-readable duration string"),
29
+ value: z.number().describe("Duration value in minutes")
30
+ }).describe("Duration information for a route.");
31
+ const RadarRouteDistance_RouteGeometrySchema = z.object({
32
+ type: z.string().describe("GeoJSON geometry type; 'LineString' when using linestring format").nullable().optional(),
33
+ polyline: z.string().describe("Encoded polyline string (polyline format)").nullable().optional(),
34
+ polyline5: z.string().describe("Encoded polyline5 string (polyline5 format)").nullable().optional(),
35
+ polyline6: z.string().describe("Encoded polyline6 string (polyline6 format)").nullable().optional(),
36
+ coordinates: z.array(z.array(z.number())).describe("List of [longitude, latitude] coordinate pairs (linestring format)").nullable().optional()
37
+ }).describe("Route geometry - can be GeoJSON LineString or encoded polyline format.");
38
+ const RadarRouteDistance_TransportRouteSchema = z.object({
39
+ distance: RadarRouteDistance_DistanceInfoSchema.nullable(),
40
+ duration: RadarRouteDistance_DurationInfoSchema.nullable(),
41
+ geometry: RadarRouteDistance_RouteGeometrySchema.nullable().optional()
42
+ }).describe("Route information for a transport mode (car, truck, foot, bike).");
43
+ const RadarRouteDistance_GeodesicRouteSchema = z.object({ distance: RadarRouteDistance_DistanceInfoSchema.nullable() }).describe("Geodesic (straight-line) route information.");
44
+ const RadarRouteDistance_RoutesSchema = z.object({
45
+ car: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
46
+ bike: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
47
+ foot: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
48
+ truck: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
49
+ geodesic: RadarRouteDistance_GeodesicRouteSchema.nullable().optional()
50
+ }).describe("Routes object containing geodesic and mode-specific route information.");
51
+ const radarRouteDistance = action("RADAR_ROUTE_DISTANCE", {
52
+ slug: "radar-route-distance",
53
+ name: "Route Distance",
54
+ description: "Tool to compute distance and travel time between origins and destinations. Use when you need route metrics before optimizing or timing routes.",
55
+ input: RadarRouteDistanceInput,
56
+ output: z.object({
57
+ meta: RadarRouteDistance_MetaSchema.nullable(),
58
+ routes: RadarRouteDistance_RoutesSchema.nullable()
59
+ }).describe("Response model for route distance and duration calculation.")
60
+ });
61
+ //#endregion
62
+ export { radarRouteDistance };
63
+
64
+ //# sourceMappingURL=route-distance.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route-distance.mjs","names":[],"sources":["../../src/actions/route-distance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarRouteDistanceInput: z.ZodTypeAny = z.object({\n mode: z.enum([\"car\", \"truck\", \"foot\", \"bike\"]).default(\"car\").describe(\"Routing mode\").optional(),\n avoid: z.string().describe(\"Route features to avoid, comma-separated (e.g., 'tolls,ferries')\").optional(),\n units: z.enum([\"metric\", \"imperial\"]).default(\"metric\").describe(\"Units for distance measurement\").optional(),\n origins: z.string().describe(\"Origin coordinate as 'latitude,longitude'\"),\n geometry: z.enum([\"polyline\", \"polyline5\", \"polyline6\", \"linestring\"]).describe(\"Format for route geometry in response. Options: 'polyline', 'polyline5', 'polyline6', 'linestring'\").optional(),\n destinations: z.string().describe(\"Destination coordinate as 'latitude,longitude'\"),\n}).describe(\"Request model for calculating route distance and duration.\");\nconst RadarRouteDistance_MetaSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"HTTP status code\"),\n}).describe(\"Metadata for the route distance response.\");\nconst RadarRouteDistance_DistanceInfoSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Human-readable distance string\"),\n value: z.number().describe(\"Distance value in meters or feet depending on units\"),\n}).describe(\"Distance information for a route.\");\nconst RadarRouteDistance_DurationInfoSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Human-readable duration string\"),\n value: z.number().describe(\"Duration value in minutes\"),\n}).describe(\"Duration information for a route.\");\nconst RadarRouteDistance_RouteGeometrySchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"GeoJSON geometry type; 'LineString' when using linestring format\").nullable().optional(),\n polyline: z.string().describe(\"Encoded polyline string (polyline format)\").nullable().optional(),\n polyline5: z.string().describe(\"Encoded polyline5 string (polyline5 format)\").nullable().optional(),\n polyline6: z.string().describe(\"Encoded polyline6 string (polyline6 format)\").nullable().optional(),\n coordinates: z.array(z.array(z.number())).describe(\"List of [longitude, latitude] coordinate pairs (linestring format)\").nullable().optional(),\n}).describe(\"Route geometry - can be GeoJSON LineString or encoded polyline format.\");\nconst RadarRouteDistance_TransportRouteSchema: z.ZodTypeAny = z.object({\n distance: RadarRouteDistance_DistanceInfoSchema.nullable(),\n duration: RadarRouteDistance_DurationInfoSchema.nullable(),\n geometry: RadarRouteDistance_RouteGeometrySchema.nullable().optional(),\n}).describe(\"Route information for a transport mode (car, truck, foot, bike).\");\nconst RadarRouteDistance_GeodesicRouteSchema: z.ZodTypeAny = z.object({\n distance: RadarRouteDistance_DistanceInfoSchema.nullable(),\n}).describe(\"Geodesic (straight-line) route information.\");\nconst RadarRouteDistance_RoutesSchema: z.ZodTypeAny = z.object({\n car: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n bike: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n foot: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n truck: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n geodesic: RadarRouteDistance_GeodesicRouteSchema.nullable().optional(),\n}).describe(\"Routes object containing geodesic and mode-specific route information.\");\nexport const RadarRouteDistanceOutput: z.ZodTypeAny = z.object({\n meta: RadarRouteDistance_MetaSchema.nullable(),\n routes: RadarRouteDistance_RoutesSchema.nullable(),\n}).describe(\"Response model for route distance and duration calculation.\");\n\nexport const radarRouteDistance = action(\"RADAR_ROUTE_DISTANCE\", {\n slug: \"radar-route-distance\",\n name: \"Route Distance\",\n description: \"Tool to compute distance and travel time between origins and destinations. Use when you need route metrics before optimizing or timing routes.\",\n input: RadarRouteDistanceInput,\n output: RadarRouteDistanceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,KAAK;EAAC;EAAO;EAAS;EAAQ;CAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CAChG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACxG,OAAO,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,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oE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,0CAAwD,EAAE,OAAO;CACrE,UAAU,sCAAsC,SAAS;CACzD,UAAU,sCAAsC,SAAS;CACzD,UAAU,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,yCAAuD,EAAE,OAAO,EACpE,UAAU,sCAAsC,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,kCAAgD,EAAE,OAAO;CAC7D,KAAK,wCAAwC,SAAS,CAAC,CAAC,SAAS;CACjE,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAM,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAO,wCAAwC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAU,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAMpF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,8BAA8B,SAAS;EAC7C,QAAQ,gCAAgC,SAAS;CACnD,CAAC,CAAC,CAAC,SAAS,6DAOF;AACV,CAAC"}
@@ -0,0 +1,43 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/search-geofences-near-location.ts
4
+ const RadarSearchGeofencesNearLocationInput = zod.z.object({
5
+ tags: zod.z.array(zod.z.string()).describe("Filter geofences by these tags").optional(),
6
+ radius: zod.z.number().int().describe("Search radius in meters (default 1000, max 10000)").optional(),
7
+ latitude: zod.z.number().describe("Latitude of the location to search near"),
8
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filter geofences by metadata key-value pairs").optional(),
9
+ longitude: zod.z.number().describe("Longitude of the location to search near")
10
+ }).describe("Request model for SEARCH_GEOFENCES_NEAR_LOCATION.");
11
+ const RadarSearchGeofencesNearLocation_GeometrySchema = zod.z.object({
12
+ type: zod.z.string().describe("Geometry type: 'Point' or 'Polygon'."),
13
+ coordinates: zod.z.array(zod.z.unknown()).describe("Coordinates array for the geofence geometry.")
14
+ }).describe("Geometry details of a geofence.");
15
+ const RadarSearchGeofencesNearLocation_SearchGeofenceSchema = zod.z.object({
16
+ _id: zod.z.string().describe("Unique identifier of the geofence."),
17
+ tag: zod.z.string().describe("Tag associated with the geofence.").nullable().optional(),
18
+ live: zod.z.boolean().describe("Whether the geofence is live.").nullable().optional(),
19
+ type: zod.z.string().describe("Type of geofence (circle or polygon).").nullable().optional(),
20
+ geometry: RadarSearchGeofencesNearLocation_GeometrySchema.nullable(),
21
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value data attached to the geofence.").nullable().optional(),
22
+ createdAt: zod.z.string().describe("Timestamp when created (ISO 8601).").nullable().optional(),
23
+ updatedAt: zod.z.string().describe("Timestamp when last updated (ISO 8601).").nullable().optional(),
24
+ externalId: zod.z.string().describe("External identifier of the geofence.").nullable().optional(),
25
+ description: zod.z.string().describe("Description of the geofence.").nullable().optional(),
26
+ geometryCenter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Center point of the geofence geometry.").nullable().optional(),
27
+ geometryRadius: zod.z.number().describe("Radius of the geofence in meters.").nullable().optional()
28
+ }).describe("Representation of a Radar geofence returned in search.");
29
+ const RadarSearchGeofencesNearLocationOutput = zod.z.object({
30
+ meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response metadata."),
31
+ geofences: zod.z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe("List of geofences near the specified location.")
32
+ }).describe("Response model for SEARCH_GEOFENCES_NEAR_LOCATION.");
33
+ const radarSearchGeofencesNearLocation = require_action.action("RADAR_SEARCH_GEOFENCES_NEAR_LOCATION", {
34
+ slug: "radar-search-geofences-near-location",
35
+ name: "Search Geofences",
36
+ description: "Tool to search for geofences near a given location. Use when you need to find geofences within a radius of specified coordinates.",
37
+ input: RadarSearchGeofencesNearLocationInput,
38
+ output: RadarSearchGeofencesNearLocationOutput
39
+ });
40
+ //#endregion
41
+ exports.radarSearchGeofencesNearLocation = radarSearchGeofencesNearLocation;
42
+
43
+ //# sourceMappingURL=search-geofences-near-location.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-geofences-near-location.cjs","names":["z","action"],"sources":["../../src/actions/search-geofences-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchGeofencesNearLocationInput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Filter geofences by these tags\").optional(),\n radius: z.number().int().describe(\"Search radius in meters (default 1000, max 10000)\").optional(),\n latitude: z.number().describe(\"Latitude of the location to search near\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Filter geofences by metadata key-value pairs\").optional(),\n longitude: z.number().describe(\"Longitude of the location to search near\"),\n}).describe(\"Request model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\nconst RadarSearchGeofencesNearLocation_GeometrySchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Geometry type: 'Point' or 'Polygon'.\"),\n coordinates: z.array(z.unknown()).describe(\"Coordinates array for the geofence geometry.\"),\n}).describe(\"Geometry details of a geofence.\");\nconst RadarSearchGeofencesNearLocation_SearchGeofenceSchema: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\"),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n live: z.boolean().describe(\"Whether the geofence is live.\").nullable().optional(),\n type: z.string().describe(\"Type of geofence (circle or polygon).\").nullable().optional(),\n geometry: RadarSearchGeofencesNearLocation_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data attached to the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601).\").nullable().optional(),\n externalId: z.string().describe(\"External identifier of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n geometryCenter: z.record(z.string(), z.unknown()).describe(\"Center point of the geofence geometry.\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters.\").nullable().optional(),\n}).describe(\"Representation of a Radar geofence returned in search.\");\nexport const RadarSearchGeofencesNearLocationOutput: z.ZodTypeAny = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofences: z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe(\"List of geofences near the specified location.\"),\n}).describe(\"Response model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\n\nexport const radarSearchGeofencesNearLocation = action(\"RADAR_SEARCH_GEOFENCES_NEAR_LOCATION\", {\n slug: \"radar-search-geofences-near-location\",\n name: \"Search Geofences\",\n description: \"Tool to search for geofences near a given location. Use when you need to find geofences within a radius of specified coordinates.\",\n input: RadarSearchGeofencesNearLocationInput,\n output: RadarSearchGeofencesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACvE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC9G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC3E,CAAC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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB;CACrE,WAAWA,IAAAA,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gDAAgD;AACrI,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/search-geofences-near-location.d.ts
4
+ declare const RadarSearchGeofencesNearLocationInput: z.ZodTypeAny;
5
+ declare const RadarSearchGeofencesNearLocationOutput: z.ZodTypeAny;
6
+ declare const radarSearchGeofencesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { radarSearchGeofencesNearLocation };
9
+ //# sourceMappingURL=search-geofences-near-location.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-geofences-near-location.d.cts","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAMU;AAAA,cAmBnD,sCAAA,EAAwC,CAAA,CAAE,UAGU;AAAA,cAEpD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/search-geofences-near-location.d.ts
4
+ declare const RadarSearchGeofencesNearLocationInput: z.ZodTypeAny;
5
+ declare const RadarSearchGeofencesNearLocationOutput: z.ZodTypeAny;
6
+ declare const radarSearchGeofencesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { radarSearchGeofencesNearLocation };
9
+ //# sourceMappingURL=search-geofences-near-location.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-geofences-near-location.d.mts","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAMU;AAAA,cAmBnD,sCAAA,EAAwC,CAAA,CAAE,UAGU;AAAA,cAEpD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,42 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/search-geofences-near-location.ts
4
+ const RadarSearchGeofencesNearLocationInput = z.object({
5
+ tags: z.array(z.string()).describe("Filter geofences by these tags").optional(),
6
+ radius: z.number().int().describe("Search radius in meters (default 1000, max 10000)").optional(),
7
+ latitude: z.number().describe("Latitude of the location to search near"),
8
+ metadata: z.record(z.string(), z.unknown()).describe("Filter geofences by metadata key-value pairs").optional(),
9
+ longitude: z.number().describe("Longitude of the location to search near")
10
+ }).describe("Request model for SEARCH_GEOFENCES_NEAR_LOCATION.");
11
+ const RadarSearchGeofencesNearLocation_GeometrySchema = z.object({
12
+ type: z.string().describe("Geometry type: 'Point' or 'Polygon'."),
13
+ coordinates: z.array(z.unknown()).describe("Coordinates array for the geofence geometry.")
14
+ }).describe("Geometry details of a geofence.");
15
+ const RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({
16
+ _id: z.string().describe("Unique identifier of the geofence."),
17
+ tag: z.string().describe("Tag associated with the geofence.").nullable().optional(),
18
+ live: z.boolean().describe("Whether the geofence is live.").nullable().optional(),
19
+ type: z.string().describe("Type of geofence (circle or polygon).").nullable().optional(),
20
+ geometry: RadarSearchGeofencesNearLocation_GeometrySchema.nullable(),
21
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value data attached to the geofence.").nullable().optional(),
22
+ createdAt: z.string().describe("Timestamp when created (ISO 8601).").nullable().optional(),
23
+ updatedAt: z.string().describe("Timestamp when last updated (ISO 8601).").nullable().optional(),
24
+ externalId: z.string().describe("External identifier of the geofence.").nullable().optional(),
25
+ description: z.string().describe("Description of the geofence.").nullable().optional(),
26
+ geometryCenter: z.record(z.string(), z.unknown()).describe("Center point of the geofence geometry.").nullable().optional(),
27
+ geometryRadius: z.number().describe("Radius of the geofence in meters.").nullable().optional()
28
+ }).describe("Representation of a Radar geofence returned in search.");
29
+ const radarSearchGeofencesNearLocation = action("RADAR_SEARCH_GEOFENCES_NEAR_LOCATION", {
30
+ slug: "radar-search-geofences-near-location",
31
+ name: "Search Geofences",
32
+ description: "Tool to search for geofences near a given location. Use when you need to find geofences within a radius of specified coordinates.",
33
+ input: RadarSearchGeofencesNearLocationInput,
34
+ output: z.object({
35
+ meta: z.record(z.string(), z.unknown()).describe("Response metadata."),
36
+ geofences: z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe("List of geofences near the specified location.")
37
+ }).describe("Response model for SEARCH_GEOFENCES_NEAR_LOCATION.")
38
+ });
39
+ //#endregion
40
+ export { radarSearchGeofencesNearLocation };
41
+
42
+ //# sourceMappingURL=search-geofences-near-location.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-geofences-near-location.mjs","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchGeofencesNearLocationInput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Filter geofences by these tags\").optional(),\n radius: z.number().int().describe(\"Search radius in meters (default 1000, max 10000)\").optional(),\n latitude: z.number().describe(\"Latitude of the location to search near\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Filter geofences by metadata key-value pairs\").optional(),\n longitude: z.number().describe(\"Longitude of the location to search near\"),\n}).describe(\"Request model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\nconst RadarSearchGeofencesNearLocation_GeometrySchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Geometry type: 'Point' or 'Polygon'.\"),\n coordinates: z.array(z.unknown()).describe(\"Coordinates array for the geofence geometry.\"),\n}).describe(\"Geometry details of a geofence.\");\nconst RadarSearchGeofencesNearLocation_SearchGeofenceSchema: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\"),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n live: z.boolean().describe(\"Whether the geofence is live.\").nullable().optional(),\n type: z.string().describe(\"Type of geofence (circle or polygon).\").nullable().optional(),\n geometry: RadarSearchGeofencesNearLocation_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data attached to the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601).\").nullable().optional(),\n externalId: z.string().describe(\"External identifier of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n geometryCenter: z.record(z.string(), z.unknown()).describe(\"Center point of the geofence geometry.\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters.\").nullable().optional(),\n}).describe(\"Representation of a Radar geofence returned in search.\");\nexport const RadarSearchGeofencesNearLocationOutput: z.ZodTypeAny = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofences: z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe(\"List of geofences near the specified location.\"),\n}).describe(\"Response model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\n\nexport const radarSearchGeofencesNearLocation = action(\"RADAR_SEARCH_GEOFENCES_NEAR_LOCATION\", {\n slug: \"radar-search-geofences-near-location\",\n name: \"Search Geofences\",\n description: \"Tool to search for geofences near a given location. Use when you need to find geofences within a radius of specified coordinates.\",\n input: RadarSearchGeofencesNearLocationInput,\n output: RadarSearchGeofencesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO;CAC1E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACvE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC9G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC3E,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC3F,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,wDAAsE,EAAE,OAAO;CACnF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,QAAQ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+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/search-places-near-location.ts
4
+ const RadarSearchPlacesNearLocationInput = zod.z.object({
5
+ near: zod.z.string().describe("Coordinates to search near in 'lat,lng' format"),
6
+ brand: zod.z.string().describe("Filter by brand name or ID").optional(),
7
+ limit: zod.z.number().int().default(10).describe("Number of results to return; max 100; defaults to 10").optional(),
8
+ chains: zod.z.array(zod.z.string()).describe("Filter by chain IDs").optional(),
9
+ groups: zod.z.array(zod.z.string()).describe("Filter by custom group names").optional(),
10
+ radius: zod.z.number().int().default(1e3).describe("Search radius in meters; max 10000 (10 km); defaults to 1000").optional(),
11
+ country: zod.z.string().describe("ISO 3166-1 alpha-2 country code").optional(),
12
+ categories: zod.z.array(zod.z.string()).describe("Filter by category names").optional(),
13
+ chain_metadata: zod.z.boolean().describe("If true, includes chain metadata in each place object").optional()
14
+ }).describe("Request model for SEARCH_PLACES_NEAR_LOCATION.");
15
+ const RadarSearchPlacesNearLocation_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code of the response") });
16
+ const RadarSearchPlacesNearLocation_LinksSchema = zod.z.object({
17
+ next: zod.z.string().describe("URL for next page").nullable().optional(),
18
+ prev: zod.z.string().describe("URL for previous page").nullable().optional()
19
+ });
20
+ const RadarSearchPlacesNearLocation_ChainSchema = zod.z.object({
21
+ id: zod.z.string().describe("Chain unique identifier").nullable().optional(),
22
+ name: zod.z.string().describe("Chain name").nullable().optional(),
23
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata for the chain").nullable().optional(),
24
+ externalId: zod.z.string().describe("Chain external ID").nullable().optional()
25
+ });
26
+ const RadarSearchPlacesNearLocation_GeoJSONPointSchema = zod.z.object({
27
+ type: zod.z.string().describe("GeoJSON type, must be 'Point'"),
28
+ coordinates: zod.z.array(zod.z.number()).describe("Coordinates as [lng, lat]")
29
+ });
30
+ const RadarSearchPlacesNearLocation_PlaceSchema = zod.z.object({
31
+ _id: zod.z.string().describe("Place unique identifier"),
32
+ name: zod.z.string().describe("Name of the place"),
33
+ chain: RadarSearchPlacesNearLocation_ChainSchema.nullable().optional(),
34
+ distance: zod.z.number().describe("Distance in meters from the search origin").nullable().optional(),
35
+ location: RadarSearchPlacesNearLocation_GeoJSONPointSchema.nullable(),
36
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata for the place").nullable().optional(),
37
+ categories: zod.z.array(zod.z.string()).describe("Categories associated with the place"),
38
+ externalId: zod.z.string().describe("External ID of the place").nullable().optional(),
39
+ description: zod.z.string().describe("Description of the place").nullable().optional(),
40
+ formattedAddress: zod.z.string().describe("Formatted address of the place").nullable().optional()
41
+ });
42
+ const RadarSearchPlacesNearLocationOutput = zod.z.object({
43
+ meta: RadarSearchPlacesNearLocation_MetaSchema.nullable(),
44
+ links: RadarSearchPlacesNearLocation_LinksSchema.nullable().optional(),
45
+ places: zod.z.array(RadarSearchPlacesNearLocation_PlaceSchema).describe("List of places found")
46
+ });
47
+ const radarSearchPlacesNearLocation = require_action.action("RADAR_SEARCH_PLACES_NEAR_LOCATION", {
48
+ slug: "radar-search-places-near-location",
49
+ name: "Search Places Near Location",
50
+ description: "Tool to search for places near given coordinates. Use when you need to find points of interest around a location.",
51
+ input: RadarSearchPlacesNearLocationInput,
52
+ output: RadarSearchPlacesNearLocationOutput
53
+ });
54
+ //#endregion
55
+ exports.radarSearchPlacesNearLocation = radarSearchPlacesNearLocation;
56
+
57
+ //# sourceMappingURL=search-places-near-location.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-places-near-location.cjs","names":["z","action"],"sources":["../../src/actions/search-places-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchPlacesNearLocationInput: z.ZodTypeAny = z.object({\n near: z.string().describe(\"Coordinates to search near in 'lat,lng' format\"),\n brand: z.string().describe(\"Filter by brand name or ID\").optional(),\n limit: z.number().int().default(10).describe(\"Number of results to return; max 100; defaults to 10\").optional(),\n chains: z.array(z.string()).describe(\"Filter by chain IDs\").optional(),\n groups: z.array(z.string()).describe(\"Filter by custom group names\").optional(),\n radius: z.number().int().default(1000).describe(\"Search radius in meters; max 10000 (10 km); defaults to 1000\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n categories: z.array(z.string()).describe(\"Filter by category names\").optional(),\n chain_metadata: z.boolean().describe(\"If true, includes chain metadata in each place object\").optional(),\n}).describe(\"Request model for SEARCH_PLACES_NEAR_LOCATION.\");\nconst RadarSearchPlacesNearLocation_MetaSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"HTTP status code of the response\"),\n});\nconst RadarSearchPlacesNearLocation_LinksSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL for next page\").nullable().optional(),\n prev: z.string().describe(\"URL for previous page\").nullable().optional(),\n});\nconst RadarSearchPlacesNearLocation_ChainSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Chain unique identifier\").nullable().optional(),\n name: z.string().describe(\"Chain name\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the chain\").nullable().optional(),\n externalId: z.string().describe(\"Chain external ID\").nullable().optional(),\n});\nconst RadarSearchPlacesNearLocation_GeoJSONPointSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"GeoJSON type, must be 'Point'\"),\n coordinates: z.array(z.number()).describe(\"Coordinates as [lng, lat]\"),\n});\nconst RadarSearchPlacesNearLocation_PlaceSchema: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Place unique identifier\"),\n name: z.string().describe(\"Name of the place\"),\n chain: RadarSearchPlacesNearLocation_ChainSchema.nullable().optional(),\n distance: z.number().describe(\"Distance in meters from the search origin\").nullable().optional(),\n location: RadarSearchPlacesNearLocation_GeoJSONPointSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the place\").nullable().optional(),\n categories: z.array(z.string()).describe(\"Categories associated with the place\"),\n externalId: z.string().describe(\"External ID of the place\").nullable().optional(),\n description: z.string().describe(\"Description of the place\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place\").nullable().optional(),\n});\nexport const RadarSearchPlacesNearLocationOutput: z.ZodTypeAny = z.object({\n meta: RadarSearchPlacesNearLocation_MetaSchema.nullable(),\n links: RadarSearchPlacesNearLocation_LinksSchema.nullable().optional(),\n places: z.array(RadarSearchPlacesNearLocation_PlaceSchema).describe(\"List of places found\"),\n});\n\nexport const radarSearchPlacesNearLocation = action(\"RADAR_SEARCH_PLACES_NEAR_LOCATION\", {\n slug: \"radar-search-places-near-location\",\n name: \"Search Places Near Location\",\n description: \"Tool to search for places near given coordinates. Use when you need to find points of interest around a location.\",\n input: RadarSearchPlacesNearLocationInput,\n output: RadarSearchPlacesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC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
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/search-places-near-location.d.ts
4
+ declare const RadarSearchPlacesNearLocationInput: z.ZodTypeAny;
5
+ declare const RadarSearchPlacesNearLocationOutput: z.ZodTypeAny;
6
+ declare const radarSearchPlacesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { radarSearchPlacesNearLocation };
9
+ //# sourceMappingURL=search-places-near-location.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-places-near-location.d.cts","names":[],"sources":["../../src/actions/search-places-near-location.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAUU;AAAA,cA8BhD,mCAAA,EAAqC,CAAA,CAAE,UAIlD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/search-places-near-location.d.ts
4
+ declare const RadarSearchPlacesNearLocationInput: z.ZodTypeAny;
5
+ declare const RadarSearchPlacesNearLocationOutput: z.ZodTypeAny;
6
+ declare const radarSearchPlacesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { radarSearchPlacesNearLocation };
9
+ //# sourceMappingURL=search-places-near-location.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-places-near-location.d.mts","names":[],"sources":["../../src/actions/search-places-near-location.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAUU;AAAA,cA8BhD,mCAAA,EAAqC,CAAA,CAAE,UAIlD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,56 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/search-places-near-location.ts
4
+ const RadarSearchPlacesNearLocationInput = z.object({
5
+ near: z.string().describe("Coordinates to search near in 'lat,lng' format"),
6
+ brand: z.string().describe("Filter by brand name or ID").optional(),
7
+ limit: z.number().int().default(10).describe("Number of results to return; max 100; defaults to 10").optional(),
8
+ chains: z.array(z.string()).describe("Filter by chain IDs").optional(),
9
+ groups: z.array(z.string()).describe("Filter by custom group names").optional(),
10
+ radius: z.number().int().default(1e3).describe("Search radius in meters; max 10000 (10 km); defaults to 1000").optional(),
11
+ country: z.string().describe("ISO 3166-1 alpha-2 country code").optional(),
12
+ categories: z.array(z.string()).describe("Filter by category names").optional(),
13
+ chain_metadata: z.boolean().describe("If true, includes chain metadata in each place object").optional()
14
+ }).describe("Request model for SEARCH_PLACES_NEAR_LOCATION.");
15
+ const RadarSearchPlacesNearLocation_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code of the response") });
16
+ const RadarSearchPlacesNearLocation_LinksSchema = z.object({
17
+ next: z.string().describe("URL for next page").nullable().optional(),
18
+ prev: z.string().describe("URL for previous page").nullable().optional()
19
+ });
20
+ const RadarSearchPlacesNearLocation_ChainSchema = z.object({
21
+ id: z.string().describe("Chain unique identifier").nullable().optional(),
22
+ name: z.string().describe("Chain name").nullable().optional(),
23
+ metadata: z.record(z.string(), z.unknown()).describe("Additional metadata for the chain").nullable().optional(),
24
+ externalId: z.string().describe("Chain external ID").nullable().optional()
25
+ });
26
+ const RadarSearchPlacesNearLocation_GeoJSONPointSchema = z.object({
27
+ type: z.string().describe("GeoJSON type, must be 'Point'"),
28
+ coordinates: z.array(z.number()).describe("Coordinates as [lng, lat]")
29
+ });
30
+ const RadarSearchPlacesNearLocation_PlaceSchema = z.object({
31
+ _id: z.string().describe("Place unique identifier"),
32
+ name: z.string().describe("Name of the place"),
33
+ chain: RadarSearchPlacesNearLocation_ChainSchema.nullable().optional(),
34
+ distance: z.number().describe("Distance in meters from the search origin").nullable().optional(),
35
+ location: RadarSearchPlacesNearLocation_GeoJSONPointSchema.nullable(),
36
+ metadata: z.record(z.string(), z.unknown()).describe("Custom metadata for the place").nullable().optional(),
37
+ categories: z.array(z.string()).describe("Categories associated with the place"),
38
+ externalId: z.string().describe("External ID of the place").nullable().optional(),
39
+ description: z.string().describe("Description of the place").nullable().optional(),
40
+ formattedAddress: z.string().describe("Formatted address of the place").nullable().optional()
41
+ });
42
+ const radarSearchPlacesNearLocation = action("RADAR_SEARCH_PLACES_NEAR_LOCATION", {
43
+ slug: "radar-search-places-near-location",
44
+ name: "Search Places Near Location",
45
+ description: "Tool to search for places near given coordinates. Use when you need to find points of interest around a location.",
46
+ input: RadarSearchPlacesNearLocationInput,
47
+ output: z.object({
48
+ meta: RadarSearchPlacesNearLocation_MetaSchema.nullable(),
49
+ links: RadarSearchPlacesNearLocation_LinksSchema.nullable().optional(),
50
+ places: z.array(RadarSearchPlacesNearLocation_PlaceSchema).describe("List of places found")
51
+ })
52
+ });
53
+ //#endregion
54
+ export { radarSearchPlacesNearLocation };
55
+
56
+ //# sourceMappingURL=search-places-near-location.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-places-near-location.mjs","names":[],"sources":["../../src/actions/search-places-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchPlacesNearLocationInput: z.ZodTypeAny = z.object({\n near: z.string().describe(\"Coordinates to search near in 'lat,lng' format\"),\n brand: z.string().describe(\"Filter by brand name or ID\").optional(),\n limit: z.number().int().default(10).describe(\"Number of results to return; max 100; defaults to 10\").optional(),\n chains: z.array(z.string()).describe(\"Filter by chain IDs\").optional(),\n groups: z.array(z.string()).describe(\"Filter by custom group names\").optional(),\n radius: z.number().int().default(1000).describe(\"Search radius in meters; max 10000 (10 km); defaults to 1000\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n categories: z.array(z.string()).describe(\"Filter by category names\").optional(),\n chain_metadata: z.boolean().describe(\"If true, includes chain metadata in each place object\").optional(),\n}).describe(\"Request model for SEARCH_PLACES_NEAR_LOCATION.\");\nconst RadarSearchPlacesNearLocation_MetaSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"HTTP status code of the response\"),\n});\nconst RadarSearchPlacesNearLocation_LinksSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL for next page\").nullable().optional(),\n prev: z.string().describe(\"URL for previous page\").nullable().optional(),\n});\nconst RadarSearchPlacesNearLocation_ChainSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Chain unique identifier\").nullable().optional(),\n name: z.string().describe(\"Chain name\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the chain\").nullable().optional(),\n externalId: z.string().describe(\"Chain external ID\").nullable().optional(),\n});\nconst RadarSearchPlacesNearLocation_GeoJSONPointSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"GeoJSON type, must be 'Point'\"),\n coordinates: z.array(z.number()).describe(\"Coordinates as [lng, lat]\"),\n});\nconst RadarSearchPlacesNearLocation_PlaceSchema: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Place unique identifier\"),\n name: z.string().describe(\"Name of the place\"),\n chain: RadarSearchPlacesNearLocation_ChainSchema.nullable().optional(),\n distance: z.number().describe(\"Distance in meters from the search origin\").nullable().optional(),\n location: RadarSearchPlacesNearLocation_GeoJSONPointSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the place\").nullable().optional(),\n categories: z.array(z.string()).describe(\"Categories associated with the place\"),\n externalId: z.string().describe(\"External ID of the place\").nullable().optional(),\n description: z.string().describe(\"Description of the place\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place\").nullable().optional(),\n});\nexport const RadarSearchPlacesNearLocationOutput: z.ZodTypeAny = z.object({\n meta: RadarSearchPlacesNearLocation_MetaSchema.nullable(),\n links: RadarSearchPlacesNearLocation_LinksSchema.nullable().optional(),\n places: z.array(RadarSearchPlacesNearLocation_PlaceSchema).describe(\"List of places found\"),\n});\n\nexport const radarSearchPlacesNearLocation = action(\"RADAR_SEARCH_PLACES_NEAR_LOCATION\", {\n slug: \"radar-search-places-near-location\",\n name: \"Search Places Near Location\",\n description: \"Tool to search for places near given coordinates. Use when you need to find points of interest around a location.\",\n input: RadarSearchPlacesNearLocationInput,\n output: RadarSearchPlacesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9E,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,2CAAyD,EAAE,OAAO,EACtE,MAAM,EAAE,OAAO,CAAC,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BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC;AAOD,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+D,EAAE,OAAO;EACxE,MAAM,yCAAyC,SAAS;EACxD,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACrE,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;CAC5F,CAOU;AACV,CAAC"}
@@ -0,0 +1,39 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/search-users-near-location.ts
4
+ const RadarSearchUsersNearLocationInput = zod.z.object({
5
+ limit: zod.z.number().int().describe("Maximum number of users to return (default: 100, max: 500).").optional(),
6
+ radius: zod.z.number().describe("Maximum distance in meters to search (default: 1000, range: 1-10000).").optional(),
7
+ latitude: zod.z.number().describe("Latitude of the location in decimal degrees."),
8
+ longitude: zod.z.number().describe("Longitude of the location in decimal degrees.")
9
+ }).describe("Request model for SEARCH_USERS_NEAR_LOCATION.");
10
+ const RadarSearchUsersNearLocation_MetaSchema = zod.z.object({
11
+ code: zod.z.number().int().describe("Status code returned by the API."),
12
+ success: zod.z.boolean().describe("True if the request was successful.").nullable().optional()
13
+ });
14
+ const RadarSearchUsersNearLocation_UserLocationSchema = zod.z.object({
15
+ type: zod.z.string().describe("GeoJSON type; always 'Point'."),
16
+ coordinates: zod.z.array(zod.z.number()).describe("Coordinates in [longitude, latitude].")
17
+ }).describe("GeoJSON location of a user.");
18
+ const RadarSearchUsersNearLocation_UserSchema = zod.z.object({
19
+ _id: zod.z.string().describe("Internal Radar user ID."),
20
+ userId: zod.z.string().describe("External user ID, if provided.").nullable().optional(),
21
+ deviceId: zod.z.string().describe("Radar device identifier."),
22
+ location: RadarSearchUsersNearLocation_UserLocationSchema.nullable(),
23
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp of last update.")
24
+ }).describe("User object returned by Radar search.");
25
+ const RadarSearchUsersNearLocationOutput = zod.z.object({
26
+ meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),
27
+ users: zod.z.array(RadarSearchUsersNearLocation_UserSchema).describe("List of users found within the specified radius.")
28
+ }).describe("Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.");
29
+ const radarSearchUsersNearLocation = require_action.action("RADAR_SEARCH_USERS_NEAR_LOCATION", {
30
+ slug: "radar-search-users-near-location",
31
+ name: "Search Users Near Location",
32
+ description: "Tool to search for users near a location. Use after obtaining coordinates when you need to retrieve users within a given radius.",
33
+ input: RadarSearchUsersNearLocationInput,
34
+ output: RadarSearchUsersNearLocationOutput
35
+ });
36
+ //#endregion
37
+ exports.radarSearchUsersNearLocation = radarSearchUsersNearLocation;
38
+
39
+ //# sourceMappingURL=search-users-near-location.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-users-near-location.cjs","names":["z","action"],"sources":["../../src/actions/search-users-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchUsersNearLocationInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of users to return (default: 100, max: 500).\").optional(),\n radius: z.number().describe(\"Maximum distance in meters to search (default: 1000, range: 1-10000).\").optional(),\n latitude: z.number().describe(\"Latitude of the location in decimal degrees.\"),\n longitude: z.number().describe(\"Longitude of the location in decimal degrees.\"),\n}).describe(\"Request model for SEARCH_USERS_NEAR_LOCATION.\");\nconst RadarSearchUsersNearLocation_MetaSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"Status code returned by the API.\"),\n success: z.boolean().describe(\"True if the request was successful.\").nullable().optional(),\n});\nconst RadarSearchUsersNearLocation_UserLocationSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"GeoJSON type; always 'Point'.\"),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude].\"),\n}).describe(\"GeoJSON location of a user.\");\nconst RadarSearchUsersNearLocation_UserSchema: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Internal Radar user ID.\"),\n userId: z.string().describe(\"External user ID, if provided.\").nullable().optional(),\n deviceId: z.string().describe(\"Radar device identifier.\"),\n location: RadarSearchUsersNearLocation_UserLocationSchema.nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of last update.\"),\n}).describe(\"User object returned by Radar search.\");\nexport const RadarSearchUsersNearLocationOutput: z.ZodTypeAny = z.object({\n meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),\n users: z.array(RadarSearchUsersNearLocation_UserSchema).describe(\"List of users found within the specified radius.\"),\n}).describe(\"Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.\");\n\nexport const radarSearchUsersNearLocation = action(\"RADAR_SEARCH_USERS_NEAR_LOCATION\", {\n slug: \"radar-search-users-near-location\",\n name: \"Search Users Near Location\",\n description: \"Tool to search for users near a location. Use after obtaining coordinates when you need to retrieve users within a given radius.\",\n input: RadarSearchUsersNearLocationInput,\n output: RadarSearchUsersNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC9G,UAAUA,I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O;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/search-users-near-location.d.ts
4
+ declare const RadarSearchUsersNearLocationInput: z.ZodTypeAny;
5
+ declare const RadarSearchUsersNearLocationOutput: z.ZodTypeAny;
6
+ declare const radarSearchUsersNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { radarSearchUsersNearLocation };
9
+ //# sourceMappingURL=search-users-near-location.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-users-near-location.d.cts","names":[],"sources":["../../src/actions/search-users-near-location.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAKU;AAAA,cAgB/C,kCAAA,EAAoC,CAAA,CAAE,UAG+C;AAAA,cAErF,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/search-users-near-location.d.ts
4
+ declare const RadarSearchUsersNearLocationInput: z.ZodTypeAny;
5
+ declare const RadarSearchUsersNearLocationOutput: z.ZodTypeAny;
6
+ declare const radarSearchUsersNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { radarSearchUsersNearLocation };
9
+ //# sourceMappingURL=search-users-near-location.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-users-near-location.d.mts","names":[],"sources":["../../src/actions/search-users-near-location.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAKU;AAAA,cAgB/C,kCAAA,EAAoC,CAAA,CAAE,UAG+C;AAAA,cAErF,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,38 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/search-users-near-location.ts
4
+ const RadarSearchUsersNearLocationInput = z.object({
5
+ limit: z.number().int().describe("Maximum number of users to return (default: 100, max: 500).").optional(),
6
+ radius: z.number().describe("Maximum distance in meters to search (default: 1000, range: 1-10000).").optional(),
7
+ latitude: z.number().describe("Latitude of the location in decimal degrees."),
8
+ longitude: z.number().describe("Longitude of the location in decimal degrees.")
9
+ }).describe("Request model for SEARCH_USERS_NEAR_LOCATION.");
10
+ const RadarSearchUsersNearLocation_MetaSchema = z.object({
11
+ code: z.number().int().describe("Status code returned by the API."),
12
+ success: z.boolean().describe("True if the request was successful.").nullable().optional()
13
+ });
14
+ const RadarSearchUsersNearLocation_UserLocationSchema = z.object({
15
+ type: z.string().describe("GeoJSON type; always 'Point'."),
16
+ coordinates: z.array(z.number()).describe("Coordinates in [longitude, latitude].")
17
+ }).describe("GeoJSON location of a user.");
18
+ const RadarSearchUsersNearLocation_UserSchema = z.object({
19
+ _id: z.string().describe("Internal Radar user ID."),
20
+ userId: z.string().describe("External user ID, if provided.").nullable().optional(),
21
+ deviceId: z.string().describe("Radar device identifier."),
22
+ location: RadarSearchUsersNearLocation_UserLocationSchema.nullable(),
23
+ updatedAt: z.string().describe("ISO 8601 timestamp of last update.")
24
+ }).describe("User object returned by Radar search.");
25
+ const radarSearchUsersNearLocation = action("RADAR_SEARCH_USERS_NEAR_LOCATION", {
26
+ slug: "radar-search-users-near-location",
27
+ name: "Search Users Near Location",
28
+ description: "Tool to search for users near a location. Use after obtaining coordinates when you need to retrieve users within a given radius.",
29
+ input: RadarSearchUsersNearLocationInput,
30
+ output: z.object({
31
+ meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),
32
+ users: z.array(RadarSearchUsersNearLocation_UserSchema).describe("List of users found within the specified radius.")
33
+ }).describe("Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.")
34
+ });
35
+ //#endregion
36
+ export { radarSearchUsersNearLocation };
37
+
38
+ //# sourceMappingURL=search-users-near-location.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-users-near-location.mjs","names":[],"sources":["../../src/actions/search-users-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchUsersNearLocationInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of users to return (default: 100, max: 500).\").optional(),\n radius: z.number().describe(\"Maximum distance in meters to search (default: 1000, range: 1-10000).\").optional(),\n latitude: z.number().describe(\"Latitude of the location in decimal degrees.\"),\n longitude: z.number().describe(\"Longitude of the location in decimal degrees.\"),\n}).describe(\"Request model for SEARCH_USERS_NEAR_LOCATION.\");\nconst RadarSearchUsersNearLocation_MetaSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"Status code returned by the API.\"),\n success: z.boolean().describe(\"True if the request was successful.\").nullable().optional(),\n});\nconst RadarSearchUsersNearLocation_UserLocationSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"GeoJSON type; always 'Point'.\"),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude].\"),\n}).describe(\"GeoJSON location of a user.\");\nconst RadarSearchUsersNearLocation_UserSchema: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Internal Radar user ID.\"),\n userId: z.string().describe(\"External user ID, if provided.\").nullable().optional(),\n deviceId: z.string().describe(\"Radar device identifier.\"),\n location: RadarSearchUsersNearLocation_UserLocationSchema.nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of last update.\"),\n}).describe(\"User object returned by Radar search.\");\nexport const RadarSearchUsersNearLocationOutput: z.ZodTypeAny = z.object({\n meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),\n users: z.array(RadarSearchUsersNearLocation_UserSchema).describe(\"List of users found within the specified radius.\"),\n}).describe(\"Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.\");\n\nexport const radarSearchUsersNearLocation = action(\"RADAR_SEARCH_USERS_NEAR_LOCATION\", {\n slug: \"radar-search-users-near-location\",\n name: \"Search Users Near Location\",\n description: \"Tool to search for users near a location. Use after obtaining coordinates when you need to retrieve users within a given radius.\",\n input: RadarSearchUsersNearLocationInput,\n output: RadarSearchUsersNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACzG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAChF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,0CAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAClE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC;AACD,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnF,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAM,0CAAwD,EAAE,OAAO;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACxD,UAAU,gDAAgD,SAAS;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;AACrE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAMnD,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV8D,EAAE,OAAO;EACvE,MAAM,wCAAwC,SAAS;EACvD,OAAO,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,kDAAkD;CACrH,CAAC,CAAC,CAAC,SAAS,qFAOF;AACV,CAAC"}
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/track-location-update.ts
4
+ const RadarTrackLocationUpdateInput = zod.z.object({
5
+ userId: zod.z.string().describe("Stable unique identifier for logged-in users. Combined with deviceId for user identification.").optional(),
6
+ stopped: zod.z.boolean().describe("Whether the user is stopped (not moving)").optional(),
7
+ accuracy: zod.z.number().describe("Accuracy of the location in meters. Must be greater than 0."),
8
+ altitude: zod.z.number().describe("Altitude of the device in meters").optional(),
9
+ deviceId: zod.z.string().describe("Unique identifier for the user's device. Required for user identification."),
10
+ deviceOS: zod.z.string().describe("Operating system version of the device").optional(),
11
+ latitude: zod.z.number().describe("Latitude of the location in degrees"),
12
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Arbitrary metadata to associate with this track event (up to 32 keys)").optional(),
13
+ replayed: zod.z.boolean().describe("Whether this location update is historical (replayed)").optional(),
14
+ longitude: zod.z.number().describe("Longitude of the location in degrees"),
15
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp for historical track events").optional(),
16
+ deviceMake: zod.z.string().describe("Manufacturer of the device").optional(),
17
+ deviceType: zod.z.string().describe("Type of device: iOS, Android, or Web").optional(),
18
+ foreground: zod.z.boolean().describe("Whether the client is in the foreground").optional(),
19
+ description: zod.z.string().describe("Text description of the user to display on the dashboard").optional(),
20
+ deviceModel: zod.z.string().describe("Model of the device").optional(),
21
+ verticalAccuracy: zod.z.number().describe("Vertical accuracy of the altitude in meters").optional()
22
+ }).describe("Request model for tracking a user's location update.\nBased on Radar API: https://docs.radar.com/api");
23
+ const RadarTrackLocationUpdateOutput = zod.z.object({
24
+ meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response metadata with HTTP status code"),
25
+ user: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The user object with location, geofences, places, beacons, fraud detection, and segments").nullable().optional(),
26
+ events: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of events triggered by this track (geofence entries/exits, place entries)").nullable().optional()
27
+ }).describe("Response model containing the tracked user, events, and metadata.\nBased on Radar API: https://docs.radar.com/api");
28
+ const radarTrackLocationUpdate = require_action.action("RADAR_TRACK_LOCATION_UPDATE", {
29
+ slug: "radar-track-location-update",
30
+ name: "Track Location Update",
31
+ description: "Tool to track a user's location update. Use when sending a location update for a user, creating or updating user and event data.",
32
+ input: RadarTrackLocationUpdateInput,
33
+ output: RadarTrackLocationUpdateOutput
34
+ });
35
+ //#endregion
36
+ exports.radarTrackLocationUpdate = radarTrackLocationUpdate;
37
+
38
+ //# sourceMappingURL=track-location-update.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"track-location-update.cjs","names":["z","action"],"sources":["../../src/actions/track-location-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarTrackLocationUpdateInput: z.ZodTypeAny = z.object({\n userId: z.string().describe(\"Stable unique identifier for logged-in users. Combined with deviceId for user identification.\").optional(),\n stopped: z.boolean().describe(\"Whether the user is stopped (not moving)\").optional(),\n accuracy: z.number().describe(\"Accuracy of the location in meters. Must be greater than 0.\"),\n altitude: z.number().describe(\"Altitude of the device in meters\").optional(),\n deviceId: z.string().describe(\"Unique identifier for the user's device. Required for user identification.\"),\n deviceOS: z.string().describe(\"Operating system version of the device\").optional(),\n latitude: z.number().describe(\"Latitude of the location in degrees\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata to associate with this track event (up to 32 keys)\").optional(),\n replayed: z.boolean().describe(\"Whether this location update is historical (replayed)\").optional(),\n longitude: z.number().describe(\"Longitude of the location in degrees\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp for historical track events\").optional(),\n deviceMake: z.string().describe(\"Manufacturer of the device\").optional(),\n deviceType: z.string().describe(\"Type of device: iOS, Android, or Web\").optional(),\n foreground: z.boolean().describe(\"Whether the client is in the foreground\").optional(),\n description: z.string().describe(\"Text description of the user to display on the dashboard\").optional(),\n deviceModel: z.string().describe(\"Model of the device\").optional(),\n verticalAccuracy: z.number().describe(\"Vertical accuracy of the altitude in meters\").optional(),\n}).describe(\"Request model for tracking a user's location update.\\nBased on Radar API: https://docs.radar.com/api\");\nexport const RadarTrackLocationUpdateOutput: z.ZodTypeAny = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata with HTTP status code\"),\n user: z.record(z.string(), z.unknown()).describe(\"The user object with location, geofences, places, beacons, fraud detection, and segments\").nullable().optional(),\n events: z.array(z.record(z.string(), z.unknown())).describe(\"Array of events triggered by this track (geofence entries/exits, place entries)\").nullable().optional(),\n}).describe(\"Response model containing the tracked user, events, and metadata.\\nBased on Radar API: https://docs.radar.com/api\");\n\nexport const radarTrackLocationUpdate = action(\"RADAR_TRACK_LOCATION_UPDATE\", {\n slug: \"radar-track-location-update\",\n name: \"Track Location Update\",\n description: \"Tool to track a user's location update. Use when sending a location update for a user, creating or updating user and event data.\",\n input: RadarTrackLocationUpdateInput,\n output: RadarTrackLocationUpdateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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