@keystrokehq/radar 0.1.0 → 0.1.3

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 (305) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/autocomplete-address-or-place.cjs +12 -12
  4. package/dist/actions/autocomplete-address-or-place.cjs.map +1 -1
  5. package/dist/actions/autocomplete-address-or-place.d.cts +50 -3
  6. package/dist/actions/autocomplete-address-or-place.d.cts.map +1 -1
  7. package/dist/actions/autocomplete-address-or-place.d.mts +50 -3
  8. package/dist/actions/autocomplete-address-or-place.d.mts.map +1 -1
  9. package/dist/actions/autocomplete-address-or-place.mjs +12 -12
  10. package/dist/actions/autocomplete-address-or-place.mjs.map +1 -1
  11. package/dist/actions/create-beacon.cjs +12 -12
  12. package/dist/actions/create-beacon.cjs.map +1 -1
  13. package/dist/actions/create-beacon.d.cts +56 -3
  14. package/dist/actions/create-beacon.d.cts.map +1 -1
  15. package/dist/actions/create-beacon.d.mts +56 -3
  16. package/dist/actions/create-beacon.d.mts.map +1 -1
  17. package/dist/actions/create-beacon.mjs +12 -12
  18. package/dist/actions/create-beacon.mjs.map +1 -1
  19. package/dist/actions/create-trip.cjs +1 -1
  20. package/dist/actions/create-trip.cjs.map +1 -1
  21. package/dist/actions/create-trip.d.cts +44 -3
  22. package/dist/actions/create-trip.d.cts.map +1 -1
  23. package/dist/actions/create-trip.d.mts +44 -3
  24. package/dist/actions/create-trip.d.mts.map +1 -1
  25. package/dist/actions/create-trip.mjs +1 -1
  26. package/dist/actions/create-trip.mjs.map +1 -1
  27. package/dist/actions/delete-beacon.cjs +2 -2
  28. package/dist/actions/delete-beacon.cjs.map +1 -1
  29. package/dist/actions/delete-beacon.d.cts +11 -3
  30. package/dist/actions/delete-beacon.d.cts.map +1 -1
  31. package/dist/actions/delete-beacon.d.mts +11 -3
  32. package/dist/actions/delete-beacon.d.mts.map +1 -1
  33. package/dist/actions/delete-beacon.mjs +2 -2
  34. package/dist/actions/delete-beacon.mjs.map +1 -1
  35. package/dist/actions/delete-geofence-by-tag.cjs +2 -2
  36. package/dist/actions/delete-geofence-by-tag.cjs.map +1 -1
  37. package/dist/actions/delete-geofence-by-tag.d.cts +13 -3
  38. package/dist/actions/delete-geofence-by-tag.d.cts.map +1 -1
  39. package/dist/actions/delete-geofence-by-tag.d.mts +13 -3
  40. package/dist/actions/delete-geofence-by-tag.d.mts.map +1 -1
  41. package/dist/actions/delete-geofence-by-tag.mjs +2 -2
  42. package/dist/actions/delete-geofence-by-tag.mjs.map +1 -1
  43. package/dist/actions/delete-geofence.cjs +2 -2
  44. package/dist/actions/delete-geofence.cjs.map +1 -1
  45. package/dist/actions/delete-geofence.d.cts +11 -3
  46. package/dist/actions/delete-geofence.d.cts.map +1 -1
  47. package/dist/actions/delete-geofence.d.mts +11 -3
  48. package/dist/actions/delete-geofence.d.mts.map +1 -1
  49. package/dist/actions/delete-geofence.mjs +2 -2
  50. package/dist/actions/delete-geofence.mjs.map +1 -1
  51. package/dist/actions/delete-trip.cjs +2 -2
  52. package/dist/actions/delete-trip.cjs.map +1 -1
  53. package/dist/actions/delete-trip.d.cts +11 -3
  54. package/dist/actions/delete-trip.d.cts.map +1 -1
  55. package/dist/actions/delete-trip.d.mts +11 -3
  56. package/dist/actions/delete-trip.d.mts.map +1 -1
  57. package/dist/actions/delete-trip.mjs +2 -2
  58. package/dist/actions/delete-trip.mjs.map +1 -1
  59. package/dist/actions/delete-user.cjs +2 -2
  60. package/dist/actions/delete-user.cjs.map +1 -1
  61. package/dist/actions/delete-user.d.cts +11 -3
  62. package/dist/actions/delete-user.d.cts.map +1 -1
  63. package/dist/actions/delete-user.d.mts +11 -3
  64. package/dist/actions/delete-user.d.mts.map +1 -1
  65. package/dist/actions/delete-user.mjs +2 -2
  66. package/dist/actions/delete-user.mjs.map +1 -1
  67. package/dist/actions/forward-geocode.cjs +7 -7
  68. package/dist/actions/forward-geocode.cjs.map +1 -1
  69. package/dist/actions/forward-geocode.d.cts +37 -3
  70. package/dist/actions/forward-geocode.d.cts.map +1 -1
  71. package/dist/actions/forward-geocode.d.mts +37 -3
  72. package/dist/actions/forward-geocode.d.mts.map +1 -1
  73. package/dist/actions/forward-geocode.mjs +7 -7
  74. package/dist/actions/forward-geocode.mjs.map +1 -1
  75. package/dist/actions/get-beacon-by-tag.cjs +10 -10
  76. package/dist/actions/get-beacon-by-tag.cjs.map +1 -1
  77. package/dist/actions/get-beacon-by-tag.d.cts +33 -3
  78. package/dist/actions/get-beacon-by-tag.d.cts.map +1 -1
  79. package/dist/actions/get-beacon-by-tag.d.mts +33 -3
  80. package/dist/actions/get-beacon-by-tag.d.mts.map +1 -1
  81. package/dist/actions/get-beacon-by-tag.mjs +10 -10
  82. package/dist/actions/get-beacon-by-tag.mjs.map +1 -1
  83. package/dist/actions/get-beacon.cjs +6 -6
  84. package/dist/actions/get-beacon.cjs.map +1 -1
  85. package/dist/actions/get-beacon.d.cts +29 -3
  86. package/dist/actions/get-beacon.d.cts.map +1 -1
  87. package/dist/actions/get-beacon.d.mts +29 -3
  88. package/dist/actions/get-beacon.d.mts.map +1 -1
  89. package/dist/actions/get-beacon.mjs +6 -6
  90. package/dist/actions/get-beacon.mjs.map +1 -1
  91. package/dist/actions/get-context-for-location.cjs +18 -18
  92. package/dist/actions/get-context-for-location.cjs.map +1 -1
  93. package/dist/actions/get-context-for-location.d.cts +85 -3
  94. package/dist/actions/get-context-for-location.d.cts.map +1 -1
  95. package/dist/actions/get-context-for-location.d.mts +85 -3
  96. package/dist/actions/get-context-for-location.d.mts.map +1 -1
  97. package/dist/actions/get-context-for-location.mjs +18 -18
  98. package/dist/actions/get-context-for-location.mjs.map +1 -1
  99. package/dist/actions/get-geofence.cjs +8 -8
  100. package/dist/actions/get-geofence.cjs.map +1 -1
  101. package/dist/actions/get-geofence.d.cts +26 -3
  102. package/dist/actions/get-geofence.d.cts.map +1 -1
  103. package/dist/actions/get-geofence.d.mts +26 -3
  104. package/dist/actions/get-geofence.d.mts.map +1 -1
  105. package/dist/actions/get-geofence.mjs +8 -8
  106. package/dist/actions/get-geofence.mjs.map +1 -1
  107. package/dist/actions/get-places-settings.cjs +3 -3
  108. package/dist/actions/get-places-settings.cjs.map +1 -1
  109. package/dist/actions/get-places-settings.d.cts +15 -3
  110. package/dist/actions/get-places-settings.d.cts.map +1 -1
  111. package/dist/actions/get-places-settings.d.mts +15 -3
  112. package/dist/actions/get-places-settings.d.mts.map +1 -1
  113. package/dist/actions/get-places-settings.mjs +3 -3
  114. package/dist/actions/get-places-settings.mjs.map +1 -1
  115. package/dist/actions/get-route-directions.cjs +16 -16
  116. package/dist/actions/get-route-directions.cjs.map +1 -1
  117. package/dist/actions/get-route-directions.d.cts +118 -3
  118. package/dist/actions/get-route-directions.d.cts.map +1 -1
  119. package/dist/actions/get-route-directions.d.mts +118 -3
  120. package/dist/actions/get-route-directions.d.mts.map +1 -1
  121. package/dist/actions/get-route-directions.mjs +16 -16
  122. package/dist/actions/get-route-directions.mjs.map +1 -1
  123. package/dist/actions/get-route-matrix.cjs +14 -14
  124. package/dist/actions/get-route-matrix.cjs.map +1 -1
  125. package/dist/actions/get-route-matrix.d.cts +45 -3
  126. package/dist/actions/get-route-matrix.d.cts.map +1 -1
  127. package/dist/actions/get-route-matrix.d.mts +45 -3
  128. package/dist/actions/get-route-matrix.d.mts.map +1 -1
  129. package/dist/actions/get-route-matrix.mjs +14 -14
  130. package/dist/actions/get-route-matrix.mjs.map +1 -1
  131. package/dist/actions/get-trip.cjs +6 -6
  132. package/dist/actions/get-trip.cjs.map +1 -1
  133. package/dist/actions/get-trip.d.cts +39 -3
  134. package/dist/actions/get-trip.d.cts.map +1 -1
  135. package/dist/actions/get-trip.d.mts +39 -3
  136. package/dist/actions/get-trip.d.mts.map +1 -1
  137. package/dist/actions/get-trip.mjs +6 -6
  138. package/dist/actions/get-trip.mjs.map +1 -1
  139. package/dist/actions/get-user.cjs +8 -8
  140. package/dist/actions/get-user.cjs.map +1 -1
  141. package/dist/actions/get-user.d.cts +66 -3
  142. package/dist/actions/get-user.d.cts.map +1 -1
  143. package/dist/actions/get-user.d.mts +66 -3
  144. package/dist/actions/get-user.d.mts.map +1 -1
  145. package/dist/actions/get-user.mjs +8 -8
  146. package/dist/actions/get-user.mjs.map +1 -1
  147. package/dist/actions/get-users-in-geofence.cjs +4 -4
  148. package/dist/actions/get-users-in-geofence.cjs.map +1 -1
  149. package/dist/actions/get-users-in-geofence.d.cts +19 -3
  150. package/dist/actions/get-users-in-geofence.d.cts.map +1 -1
  151. package/dist/actions/get-users-in-geofence.d.mts +19 -3
  152. package/dist/actions/get-users-in-geofence.d.mts.map +1 -1
  153. package/dist/actions/get-users-in-geofence.mjs +4 -4
  154. package/dist/actions/get-users-in-geofence.mjs.map +1 -1
  155. package/dist/actions/ip-geocode.cjs +5 -5
  156. package/dist/actions/ip-geocode.cjs.map +1 -1
  157. package/dist/actions/ip-geocode.d.cts +20 -3
  158. package/dist/actions/ip-geocode.d.cts.map +1 -1
  159. package/dist/actions/ip-geocode.d.mts +20 -3
  160. package/dist/actions/ip-geocode.d.mts.map +1 -1
  161. package/dist/actions/ip-geocode.mjs +5 -5
  162. package/dist/actions/ip-geocode.mjs.map +1 -1
  163. package/dist/actions/list-events.cjs +9 -9
  164. package/dist/actions/list-events.cjs.map +1 -1
  165. package/dist/actions/list-events.d.cts +52 -3
  166. package/dist/actions/list-events.d.cts.map +1 -1
  167. package/dist/actions/list-events.d.mts +52 -3
  168. package/dist/actions/list-events.d.mts.map +1 -1
  169. package/dist/actions/list-events.mjs +9 -9
  170. package/dist/actions/list-events.mjs.map +1 -1
  171. package/dist/actions/list-geofences.cjs +13 -13
  172. package/dist/actions/list-geofences.cjs.map +1 -1
  173. package/dist/actions/list-geofences.d.cts +50 -3
  174. package/dist/actions/list-geofences.d.cts.map +1 -1
  175. package/dist/actions/list-geofences.d.mts +50 -3
  176. package/dist/actions/list-geofences.d.mts.map +1 -1
  177. package/dist/actions/list-geofences.mjs +13 -13
  178. package/dist/actions/list-geofences.mjs.map +1 -1
  179. package/dist/actions/list-trips.cjs +9 -9
  180. package/dist/actions/list-trips.cjs.map +1 -1
  181. package/dist/actions/list-trips.d.cts +50 -3
  182. package/dist/actions/list-trips.d.cts.map +1 -1
  183. package/dist/actions/list-trips.d.mts +50 -3
  184. package/dist/actions/list-trips.d.mts.map +1 -1
  185. package/dist/actions/list-trips.mjs +9 -9
  186. package/dist/actions/list-trips.mjs.map +1 -1
  187. package/dist/actions/list-users.cjs +8 -8
  188. package/dist/actions/list-users.cjs.map +1 -1
  189. package/dist/actions/list-users.d.cts +35 -3
  190. package/dist/actions/list-users.d.cts.map +1 -1
  191. package/dist/actions/list-users.d.mts +35 -3
  192. package/dist/actions/list-users.d.mts.map +1 -1
  193. package/dist/actions/list-users.mjs +8 -8
  194. package/dist/actions/list-users.mjs.map +1 -1
  195. package/dist/actions/reverse-geocode.cjs +2 -2
  196. package/dist/actions/reverse-geocode.cjs.map +1 -1
  197. package/dist/actions/reverse-geocode.d.cts +33 -3
  198. package/dist/actions/reverse-geocode.d.cts.map +1 -1
  199. package/dist/actions/reverse-geocode.d.mts +33 -3
  200. package/dist/actions/reverse-geocode.d.mts.map +1 -1
  201. package/dist/actions/reverse-geocode.mjs +2 -2
  202. package/dist/actions/reverse-geocode.mjs.map +1 -1
  203. package/dist/actions/route-distance.cjs +12 -12
  204. package/dist/actions/route-distance.cjs.map +1 -1
  205. package/dist/actions/route-distance.d.cts +110 -3
  206. package/dist/actions/route-distance.d.cts.map +1 -1
  207. package/dist/actions/route-distance.d.mts +110 -3
  208. package/dist/actions/route-distance.d.mts.map +1 -1
  209. package/dist/actions/route-distance.mjs +12 -12
  210. package/dist/actions/route-distance.mjs.map +1 -1
  211. package/dist/actions/search-geofences-near-location.cjs +5 -5
  212. package/dist/actions/search-geofences-near-location.cjs.map +1 -1
  213. package/dist/actions/search-geofences-near-location.d.cts +34 -3
  214. package/dist/actions/search-geofences-near-location.d.cts.map +1 -1
  215. package/dist/actions/search-geofences-near-location.d.mts +34 -3
  216. package/dist/actions/search-geofences-near-location.d.mts.map +1 -1
  217. package/dist/actions/search-geofences-near-location.mjs +5 -5
  218. package/dist/actions/search-geofences-near-location.mjs.map +1 -1
  219. package/dist/actions/search-places-near-location.cjs +9 -9
  220. package/dist/actions/search-places-near-location.cjs.map +1 -1
  221. package/dist/actions/search-places-near-location.d.cts +51 -3
  222. package/dist/actions/search-places-near-location.d.cts.map +1 -1
  223. package/dist/actions/search-places-near-location.d.mts +51 -3
  224. package/dist/actions/search-places-near-location.d.mts.map +1 -1
  225. package/dist/actions/search-places-near-location.mjs +9 -9
  226. package/dist/actions/search-places-near-location.mjs.map +1 -1
  227. package/dist/actions/search-users-near-location.cjs +9 -9
  228. package/dist/actions/search-users-near-location.cjs.map +1 -1
  229. package/dist/actions/search-users-near-location.d.cts +28 -3
  230. package/dist/actions/search-users-near-location.d.cts.map +1 -1
  231. package/dist/actions/search-users-near-location.d.mts +28 -3
  232. package/dist/actions/search-users-near-location.d.mts.map +1 -1
  233. package/dist/actions/search-users-near-location.mjs +9 -9
  234. package/dist/actions/search-users-near-location.mjs.map +1 -1
  235. package/dist/actions/track-location-update.cjs +1 -1
  236. package/dist/actions/track-location-update.cjs.map +1 -1
  237. package/dist/actions/track-location-update.d.cts +43 -3
  238. package/dist/actions/track-location-update.d.cts.map +1 -1
  239. package/dist/actions/track-location-update.d.mts +43 -3
  240. package/dist/actions/track-location-update.d.mts.map +1 -1
  241. package/dist/actions/track-location-update.mjs +1 -1
  242. package/dist/actions/track-location-update.mjs.map +1 -1
  243. package/dist/actions/update-places-settings.cjs +3 -3
  244. package/dist/actions/update-places-settings.cjs.map +1 -1
  245. package/dist/actions/update-places-settings.d.cts +23 -3
  246. package/dist/actions/update-places-settings.d.cts.map +1 -1
  247. package/dist/actions/update-places-settings.d.mts +23 -3
  248. package/dist/actions/update-places-settings.d.mts.map +1 -1
  249. package/dist/actions/update-places-settings.mjs +3 -3
  250. package/dist/actions/update-places-settings.mjs.map +1 -1
  251. package/dist/actions/update-trip-by-id.cjs +3 -3
  252. package/dist/actions/update-trip-by-id.cjs.map +1 -1
  253. package/dist/actions/update-trip-by-id.d.cts +47 -3
  254. package/dist/actions/update-trip-by-id.d.cts.map +1 -1
  255. package/dist/actions/update-trip-by-id.d.mts +47 -3
  256. package/dist/actions/update-trip-by-id.d.mts.map +1 -1
  257. package/dist/actions/update-trip-by-id.mjs +3 -3
  258. package/dist/actions/update-trip-by-id.mjs.map +1 -1
  259. package/dist/actions/update-trip.cjs +5 -5
  260. package/dist/actions/update-trip.cjs.map +1 -1
  261. package/dist/actions/update-trip.d.cts +67 -3
  262. package/dist/actions/update-trip.d.cts.map +1 -1
  263. package/dist/actions/update-trip.d.mts +67 -3
  264. package/dist/actions/update-trip.d.mts.map +1 -1
  265. package/dist/actions/update-trip.mjs +5 -5
  266. package/dist/actions/update-trip.mjs.map +1 -1
  267. package/dist/actions/upsert-beacon-by-id.cjs +9 -9
  268. package/dist/actions/upsert-beacon-by-id.cjs.map +1 -1
  269. package/dist/actions/upsert-beacon-by-id.d.cts +53 -3
  270. package/dist/actions/upsert-beacon-by-id.d.cts.map +1 -1
  271. package/dist/actions/upsert-beacon-by-id.d.mts +53 -3
  272. package/dist/actions/upsert-beacon-by-id.d.mts.map +1 -1
  273. package/dist/actions/upsert-beacon-by-id.mjs +9 -9
  274. package/dist/actions/upsert-beacon-by-id.mjs.map +1 -1
  275. package/dist/actions/upsert-beacon-by-tag.cjs +8 -8
  276. package/dist/actions/upsert-beacon-by-tag.cjs.map +1 -1
  277. package/dist/actions/upsert-beacon-by-tag.d.cts +54 -3
  278. package/dist/actions/upsert-beacon-by-tag.d.cts.map +1 -1
  279. package/dist/actions/upsert-beacon-by-tag.d.mts +54 -3
  280. package/dist/actions/upsert-beacon-by-tag.d.mts.map +1 -1
  281. package/dist/actions/upsert-beacon-by-tag.mjs +8 -8
  282. package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -1
  283. package/dist/actions/upsert-geofence-by-id.cjs +12 -12
  284. package/dist/actions/upsert-geofence-by-id.cjs.map +1 -1
  285. package/dist/actions/upsert-geofence-by-id.d.cts +48 -3
  286. package/dist/actions/upsert-geofence-by-id.d.cts.map +1 -1
  287. package/dist/actions/upsert-geofence-by-id.d.mts +48 -3
  288. package/dist/actions/upsert-geofence-by-id.d.mts.map +1 -1
  289. package/dist/actions/upsert-geofence-by-id.mjs +12 -12
  290. package/dist/actions/upsert-geofence-by-id.mjs.map +1 -1
  291. package/dist/actions/upsert-geofence.cjs +7 -7
  292. package/dist/actions/upsert-geofence.cjs.map +1 -1
  293. package/dist/actions/upsert-geofence.d.cts +40 -3
  294. package/dist/actions/upsert-geofence.d.cts.map +1 -1
  295. package/dist/actions/upsert-geofence.d.mts +40 -3
  296. package/dist/actions/upsert-geofence.d.mts.map +1 -1
  297. package/dist/actions/upsert-geofence.mjs +7 -7
  298. package/dist/actions/upsert-geofence.mjs.map +1 -1
  299. package/dist/catalog.cjs +7 -1
  300. package/dist/catalog.cjs.map +1 -1
  301. package/dist/catalog.d.cts +8 -0
  302. package/dist/catalog.d.mts +8 -0
  303. package/dist/catalog.mjs +7 -1
  304. package/dist/catalog.mjs.map +1 -1
  305. package/package.json +2 -2
@@ -1 +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,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACxE,UAAU,EAAE,KAAK;EAAC;EAAY;EAAa;EAAa;CAAY,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC/L,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;AACpF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gCAA8C,EAAE,OAAO,EAC3D,MAA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AAC,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"}
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.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.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n}).passthrough().describe(\"Metadata for the route distance response.\");\nconst RadarRouteDistance_DistanceInfoSchema = z.object({\n text: z.string().describe(\"Human-readable distance string\").nullable(),\n value: z.number().describe(\"Distance value in meters or feet depending on units\").nullable(),\n}).passthrough().describe(\"Distance information for a route.\");\nconst RadarRouteDistance_DurationInfoSchema = z.object({\n text: z.string().describe(\"Human-readable duration string\").nullable(),\n value: z.number().describe(\"Duration value in minutes\").nullable(),\n}).passthrough().describe(\"Duration information for a route.\");\nconst RadarRouteDistance_RouteGeometrySchema = 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}).passthrough().describe(\"Route geometry - can be GeoJSON LineString or encoded polyline format.\");\nconst RadarRouteDistance_TransportRouteSchema = z.object({\n distance: RadarRouteDistance_DistanceInfoSchema.nullable(),\n duration: RadarRouteDistance_DurationInfoSchema.nullable(),\n geometry: RadarRouteDistance_RouteGeometrySchema.nullable().optional(),\n}).passthrough().describe(\"Route information for a transport mode (car, truck, foot, bike).\");\nconst RadarRouteDistance_GeodesicRouteSchema = z.object({\n distance: RadarRouteDistance_DistanceInfoSchema.nullable(),\n}).passthrough().describe(\"Geodesic (straight-line) route information.\");\nconst RadarRouteDistance_RoutesSchema = 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}).passthrough().describe(\"Routes object containing geodesic and mode-specific route information.\");\nexport const RadarRouteDistanceOutput = z.object({\n meta: RadarRouteDistance_MetaSchema.nullable(),\n routes: RadarRouteDistance_RoutesSchema.nullable(),\n}).passthrough().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,0BAA0B,EAAE,OAAO;CAC9C,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,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACxE,UAAU,EAAE,KAAK;EAAC;EAAY;EAAa;EAAa;CAAY,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC/L,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;AACpF,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gCAAgC,EAAE,OAAO,EAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,C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AC,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,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAMlG,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsC,EAAE,OAAO;EAC/C,MAAM,8BAA8B,SAAS;EAC7C,QAAQ,gCAAgC,SAAS;CACnD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAOhB;AACV,CAAC"}
@@ -9,11 +9,11 @@ const RadarSearchGeofencesNearLocationInput = zod.z.object({
9
9
  longitude: zod.z.number().describe("Longitude of the location to search near")
10
10
  }).describe("Request model for SEARCH_GEOFENCES_NEAR_LOCATION.");
11
11
  const RadarSearchGeofencesNearLocation_GeometrySchema = zod.z.object({
12
- type: zod.z.string().describe("Geometry type: 'Point' or 'Polygon'."),
12
+ type: zod.z.string().describe("Geometry type: 'Point' or 'Polygon'.").nullable(),
13
13
  coordinates: zod.z.array(zod.z.unknown()).describe("Coordinates array for the geofence geometry.")
14
- }).describe("Geometry details of a geofence.");
14
+ }).passthrough().describe("Geometry details of a geofence.");
15
15
  const RadarSearchGeofencesNearLocation_SearchGeofenceSchema = zod.z.object({
16
- _id: zod.z.string().describe("Unique identifier of the geofence."),
16
+ _id: zod.z.string().describe("Unique identifier of the geofence.").nullable(),
17
17
  tag: zod.z.string().describe("Tag associated with the geofence.").nullable().optional(),
18
18
  live: zod.z.boolean().describe("Whether the geofence is live.").nullable().optional(),
19
19
  type: zod.z.string().describe("Type of geofence (circle or polygon).").nullable().optional(),
@@ -25,11 +25,11 @@ const RadarSearchGeofencesNearLocation_SearchGeofenceSchema = zod.z.object({
25
25
  description: zod.z.string().describe("Description of the geofence.").nullable().optional(),
26
26
  geometryCenter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Center point of the geofence geometry.").nullable().optional(),
27
27
  geometryRadius: zod.z.number().describe("Radius of the geofence in meters.").nullable().optional()
28
- }).describe("Representation of a Radar geofence returned in search.");
28
+ }).passthrough().describe("Representation of a Radar geofence returned in search.");
29
29
  const RadarSearchGeofencesNearLocationOutput = zod.z.object({
30
30
  meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response metadata."),
31
31
  geofences: zod.z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe("List of geofences near the specified location.")
32
- }).describe("Response model for SEARCH_GEOFENCES_NEAR_LOCATION.");
32
+ }).passthrough().describe("Response model for SEARCH_GEOFENCES_NEAR_LOCATION.");
33
33
  const radarSearchGeofencesNearLocation = require_action.action("RADAR_SEARCH_GEOFENCES_NEAR_LOCATION", {
34
34
  slug: "radar-search-geofences-near-location",
35
35
  name: "Search Geofences",
@@ -1 +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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AAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,gBAAgBA,IAAAA,EAAE,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"}
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.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.object({\n type: z.string().describe(\"Geometry type: 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates array for the geofence geometry.\"),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable(),\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}).passthrough().describe(\"Representation of a Radar geofence returned in search.\");\nexport const RadarSearchGeofencesNearLocationOutput = 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}).passthrough().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,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,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,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,S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;AACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const RadarSearchGeofencesNearLocationInput: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ radius: z.ZodOptional<z.ZodNumber>;
7
+ latitude: z.ZodNumber;
8
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
+ longitude: z.ZodNumber;
10
+ }, z.core.$strip>;
11
+ declare const RadarSearchGeofencesNearLocationOutput: z.ZodObject<{
12
+ meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13
+ geofences: z.ZodArray<z.ZodObject<{
14
+ _id: z.ZodNullable<z.ZodString>;
15
+ tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
17
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ geometry: z.ZodNullable<z.ZodObject<{
19
+ type: z.ZodNullable<z.ZodString>;
20
+ coordinates: z.ZodArray<z.ZodUnknown>;
21
+ }, z.core.$loose>>;
22
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
23
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ geometryCenter: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
28
+ geometryRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ }, z.core.$loose>>;
30
+ }, z.core.$loose>;
31
+ declare const radarSearchGeofencesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ latitude: number;
33
+ longitude: number;
34
+ tags?: string[] | undefined;
35
+ radius?: number | undefined;
36
+ metadata?: Record<string, unknown> | undefined;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { radarSearchGeofencesNearLocation };
9
40
  //# sourceMappingURL=search-geofences-near-location.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"search-geofences-near-location.d.cts","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;cAyBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKtC,gCAAA,gCAAgC,wBAAA;;;;;aAM3C,MAAA;AAAA"}
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const RadarSearchGeofencesNearLocationInput: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ radius: z.ZodOptional<z.ZodNumber>;
7
+ latitude: z.ZodNumber;
8
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9
+ longitude: z.ZodNumber;
10
+ }, z.core.$strip>;
11
+ declare const RadarSearchGeofencesNearLocationOutput: z.ZodObject<{
12
+ meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13
+ geofences: z.ZodArray<z.ZodObject<{
14
+ _id: z.ZodNullable<z.ZodString>;
15
+ tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
17
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ geometry: z.ZodNullable<z.ZodObject<{
19
+ type: z.ZodNullable<z.ZodString>;
20
+ coordinates: z.ZodArray<z.ZodUnknown>;
21
+ }, z.core.$loose>>;
22
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
23
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ geometryCenter: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
28
+ geometryRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ }, z.core.$loose>>;
30
+ }, z.core.$loose>;
31
+ declare const radarSearchGeofencesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ latitude: number;
33
+ longitude: number;
34
+ tags?: string[] | undefined;
35
+ radius?: number | undefined;
36
+ metadata?: Record<string, unknown> | undefined;
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { radarSearchGeofencesNearLocation };
9
40
  //# sourceMappingURL=search-geofences-near-location.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"search-geofences-near-location.d.mts","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;cAyBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKtC,gCAAA,gCAAgC,wBAAA;;;;;aAM3C,MAAA;AAAA"}
@@ -9,11 +9,11 @@ const RadarSearchGeofencesNearLocationInput = z.object({
9
9
  longitude: z.number().describe("Longitude of the location to search near")
10
10
  }).describe("Request model for SEARCH_GEOFENCES_NEAR_LOCATION.");
11
11
  const RadarSearchGeofencesNearLocation_GeometrySchema = z.object({
12
- type: z.string().describe("Geometry type: 'Point' or 'Polygon'."),
12
+ type: z.string().describe("Geometry type: 'Point' or 'Polygon'.").nullable(),
13
13
  coordinates: z.array(z.unknown()).describe("Coordinates array for the geofence geometry.")
14
- }).describe("Geometry details of a geofence.");
14
+ }).passthrough().describe("Geometry details of a geofence.");
15
15
  const RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({
16
- _id: z.string().describe("Unique identifier of the geofence."),
16
+ _id: z.string().describe("Unique identifier of the geofence.").nullable(),
17
17
  tag: z.string().describe("Tag associated with the geofence.").nullable().optional(),
18
18
  live: z.boolean().describe("Whether the geofence is live.").nullable().optional(),
19
19
  type: z.string().describe("Type of geofence (circle or polygon).").nullable().optional(),
@@ -25,7 +25,7 @@ const RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({
25
25
  description: z.string().describe("Description of the geofence.").nullable().optional(),
26
26
  geometryCenter: z.record(z.string(), z.unknown()).describe("Center point of the geofence geometry.").nullable().optional(),
27
27
  geometryRadius: z.number().describe("Radius of the geofence in meters.").nullable().optional()
28
- }).describe("Representation of a Radar geofence returned in search.");
28
+ }).passthrough().describe("Representation of a Radar geofence returned in search.");
29
29
  const radarSearchGeofencesNearLocation = action("RADAR_SEARCH_GEOFENCES_NEAR_LOCATION", {
30
30
  slug: "radar-search-geofences-near-location",
31
31
  name: "Search Geofences",
@@ -34,7 +34,7 @@ const radarSearchGeofencesNearLocation = action("RADAR_SEARCH_GEOFENCES_NEAR_LOC
34
34
  output: z.object({
35
35
  meta: z.record(z.string(), z.unknown()).describe("Response metadata."),
36
36
  geofences: z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe("List of geofences near the specified location.")
37
- }).describe("Response model for SEARCH_GEOFENCES_NEAR_LOCATION.")
37
+ }).passthrough().describe("Response model for SEARCH_GEOFENCES_NEAR_LOCATION.")
38
38
  });
39
39
  //#endregion
40
40
  export { radarSearchGeofencesNearLocation };
@@ -1 +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,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,UAAU,gDAAgD,SAAS;CACnE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAMpE,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkE,EAAE,OAAO;EAC3E,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB;EACrE,WAAW,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gDAAgD;CACrI,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
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.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.object({\n type: z.string().describe(\"Geometry type: 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates array for the geofence geometry.\"),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable(),\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}).passthrough().describe(\"Representation of a Radar geofence returned in search.\");\nexport const RadarSearchGeofencesNearLocationOutput = 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}).passthrough().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,wCAAwC,EAAE,OAAO;CAC5D,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,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAM,wDAAwD,EAAE,OAAO;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,S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od.z.object({
12
12
  categories: zod.z.array(zod.z.string()).describe("Filter by category names").optional(),
13
13
  chain_metadata: zod.z.boolean().describe("If true, includes chain metadata in each place object").optional()
14
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") });
15
+ const RadarSearchPlacesNearLocation_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code of the response").nullable() }).passthrough();
16
16
  const RadarSearchPlacesNearLocation_LinksSchema = zod.z.object({
17
17
  next: zod.z.string().describe("URL for next page").nullable().optional(),
18
18
  prev: zod.z.string().describe("URL for previous page").nullable().optional()
19
- });
19
+ }).passthrough();
20
20
  const RadarSearchPlacesNearLocation_ChainSchema = zod.z.object({
21
21
  id: zod.z.string().describe("Chain unique identifier").nullable().optional(),
22
22
  name: zod.z.string().describe("Chain name").nullable().optional(),
23
23
  metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata for the chain").nullable().optional(),
24
24
  externalId: zod.z.string().describe("Chain external ID").nullable().optional()
25
- });
25
+ }).passthrough();
26
26
  const RadarSearchPlacesNearLocation_GeoJSONPointSchema = zod.z.object({
27
- type: zod.z.string().describe("GeoJSON type, must be 'Point'"),
27
+ type: zod.z.string().describe("GeoJSON type, must be 'Point'").nullable(),
28
28
  coordinates: zod.z.array(zod.z.number()).describe("Coordinates as [lng, lat]")
29
- });
29
+ }).passthrough();
30
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"),
31
+ _id: zod.z.string().describe("Place unique identifier").nullable(),
32
+ name: zod.z.string().describe("Name of the place").nullable(),
33
33
  chain: RadarSearchPlacesNearLocation_ChainSchema.nullable().optional(),
34
34
  distance: zod.z.number().describe("Distance in meters from the search origin").nullable().optional(),
35
35
  location: RadarSearchPlacesNearLocation_GeoJSONPointSchema.nullable(),
@@ -38,12 +38,12 @@ const RadarSearchPlacesNearLocation_PlaceSchema = zod.z.object({
38
38
  externalId: zod.z.string().describe("External ID of the place").nullable().optional(),
39
39
  description: zod.z.string().describe("Description of the place").nullable().optional(),
40
40
  formattedAddress: zod.z.string().describe("Formatted address of the place").nullable().optional()
41
- });
41
+ }).passthrough();
42
42
  const RadarSearchPlacesNearLocationOutput = zod.z.object({
43
43
  meta: RadarSearchPlacesNearLocation_MetaSchema.nullable(),
44
44
  links: RadarSearchPlacesNearLocation_LinksSchema.nullable().optional(),
45
45
  places: zod.z.array(RadarSearchPlacesNearLocation_PlaceSchema).describe("List of places found")
46
- });
46
+ }).passthrough();
47
47
  const radarSearchPlacesNearLocation = require_action.action("RADAR_SEARCH_PLACES_NEAR_LOCATION", {
48
48
  slug: "radar-search-places-near-location",
49
49
  name: "Search Places Near Location",
@@ -1 +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;CACzE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9E,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,2CAAyDA,IAAAA,EAAE,OAAO,EACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,EACpE,CAAC;AACD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAA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AA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC;AACD,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,MAAM,yCAAyC,SAAS;CACxD,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;AAC5F,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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.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.object({\n code: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_LinksSchema = 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}).passthrough();\nconst RadarSearchPlacesNearLocation_ChainSchema = 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}).passthrough();\nconst RadarSearchPlacesNearLocation_GeoJSONPointSchema = z.object({\n type: z.string().describe(\"GeoJSON type, must be 'Point'\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [lng, lat]\"),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_PlaceSchema = z.object({\n _id: z.string().describe(\"Place unique identifier\").nullable(),\n name: z.string().describe(\"Name of the place\").nullable(),\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}).passthrough();\nexport const RadarSearchPlacesNearLocationOutput = 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}).passthrough();\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,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,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;CACzE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9E,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;A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1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const RadarSearchPlacesNearLocationInput: z.ZodObject<{
5
+ near: z.ZodString;
6
+ brand: z.ZodOptional<z.ZodString>;
7
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ chains: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ radius: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
11
+ country: z.ZodOptional<z.ZodString>;
12
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ chain_metadata: z.ZodOptional<z.ZodBoolean>;
14
+ }, z.core.$strip>;
15
+ declare const RadarSearchPlacesNearLocationOutput: z.ZodObject<{
16
+ meta: z.ZodNullable<z.ZodObject<{
17
+ code: z.ZodNullable<z.ZodNumber>;
18
+ }, z.core.$loose>>;
19
+ links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$loose>>>;
23
+ places: z.ZodArray<z.ZodObject<{
24
+ _id: z.ZodNullable<z.ZodString>;
25
+ name: z.ZodNullable<z.ZodString>;
26
+ chain: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$loose>>>;
32
+ distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ location: z.ZodNullable<z.ZodObject<{
34
+ type: z.ZodNullable<z.ZodString>;
35
+ coordinates: z.ZodArray<z.ZodNumber>;
36
+ }, z.core.$loose>>;
37
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
+ categories: z.ZodArray<z.ZodString>;
39
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ formattedAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$loose>>;
43
+ }, z.core.$loose>;
44
+ declare const radarSearchPlacesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ near: string;
46
+ brand?: string | undefined;
47
+ limit?: number | undefined;
48
+ chains?: string[] | undefined;
49
+ groups?: string[] | undefined;
50
+ radius?: number | undefined;
51
+ country?: string | undefined;
52
+ categories?: string[] | undefined;
53
+ chain_metadata?: boolean | undefined;
54
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
55
  //#endregion
8
56
  export { radarSearchPlacesNearLocation };
9
57
  //# sourceMappingURL=search-places-near-location.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"search-places-near-location.d.cts","names":[],"sources":["../../src/actions/search-places-near-location.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;cAwClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMnC,6BAAA,gCAA6B,wBAAA"}
@@ -1,9 +1,57 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const RadarSearchPlacesNearLocationInput: z.ZodObject<{
5
+ near: z.ZodString;
6
+ brand: z.ZodOptional<z.ZodString>;
7
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ chains: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ radius: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
11
+ country: z.ZodOptional<z.ZodString>;
12
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ chain_metadata: z.ZodOptional<z.ZodBoolean>;
14
+ }, z.core.$strip>;
15
+ declare const RadarSearchPlacesNearLocationOutput: z.ZodObject<{
16
+ meta: z.ZodNullable<z.ZodObject<{
17
+ code: z.ZodNullable<z.ZodNumber>;
18
+ }, z.core.$loose>>;
19
+ links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$loose>>>;
23
+ places: z.ZodArray<z.ZodObject<{
24
+ _id: z.ZodNullable<z.ZodString>;
25
+ name: z.ZodNullable<z.ZodString>;
26
+ chain: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$loose>>>;
32
+ distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ location: z.ZodNullable<z.ZodObject<{
34
+ type: z.ZodNullable<z.ZodString>;
35
+ coordinates: z.ZodArray<z.ZodNumber>;
36
+ }, z.core.$loose>>;
37
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
+ categories: z.ZodArray<z.ZodString>;
39
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ formattedAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ }, z.core.$loose>>;
43
+ }, z.core.$loose>;
44
+ declare const radarSearchPlacesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ near: string;
46
+ brand?: string | undefined;
47
+ limit?: number | undefined;
48
+ chains?: string[] | undefined;
49
+ groups?: string[] | undefined;
50
+ radius?: number | undefined;
51
+ country?: string | undefined;
52
+ categories?: string[] | undefined;
53
+ chain_metadata?: boolean | undefined;
54
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
55
  //#endregion
8
56
  export { radarSearchPlacesNearLocation };
9
57
  //# sourceMappingURL=search-places-near-location.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"search-places-near-location.d.mts","names":[],"sources":["../../src/actions/search-places-near-location.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;cAwClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMnC,6BAAA,gCAA6B,wBAAA"}
@@ -12,24 +12,24 @@ const RadarSearchPlacesNearLocationInput = z.object({
12
12
  categories: z.array(z.string()).describe("Filter by category names").optional(),
13
13
  chain_metadata: z.boolean().describe("If true, includes chain metadata in each place object").optional()
14
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") });
15
+ const RadarSearchPlacesNearLocation_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code of the response").nullable() }).passthrough();
16
16
  const RadarSearchPlacesNearLocation_LinksSchema = z.object({
17
17
  next: z.string().describe("URL for next page").nullable().optional(),
18
18
  prev: z.string().describe("URL for previous page").nullable().optional()
19
- });
19
+ }).passthrough();
20
20
  const RadarSearchPlacesNearLocation_ChainSchema = z.object({
21
21
  id: z.string().describe("Chain unique identifier").nullable().optional(),
22
22
  name: z.string().describe("Chain name").nullable().optional(),
23
23
  metadata: z.record(z.string(), z.unknown()).describe("Additional metadata for the chain").nullable().optional(),
24
24
  externalId: z.string().describe("Chain external ID").nullable().optional()
25
- });
25
+ }).passthrough();
26
26
  const RadarSearchPlacesNearLocation_GeoJSONPointSchema = z.object({
27
- type: z.string().describe("GeoJSON type, must be 'Point'"),
27
+ type: z.string().describe("GeoJSON type, must be 'Point'").nullable(),
28
28
  coordinates: z.array(z.number()).describe("Coordinates as [lng, lat]")
29
- });
29
+ }).passthrough();
30
30
  const RadarSearchPlacesNearLocation_PlaceSchema = z.object({
31
- _id: z.string().describe("Place unique identifier"),
32
- name: z.string().describe("Name of the place"),
31
+ _id: z.string().describe("Place unique identifier").nullable(),
32
+ name: z.string().describe("Name of the place").nullable(),
33
33
  chain: RadarSearchPlacesNearLocation_ChainSchema.nullable().optional(),
34
34
  distance: z.number().describe("Distance in meters from the search origin").nullable().optional(),
35
35
  location: RadarSearchPlacesNearLocation_GeoJSONPointSchema.nullable(),
@@ -38,7 +38,7 @@ const RadarSearchPlacesNearLocation_PlaceSchema = z.object({
38
38
  externalId: z.string().describe("External ID of the place").nullable().optional(),
39
39
  description: z.string().describe("Description of the place").nullable().optional(),
40
40
  formattedAddress: z.string().describe("Formatted address of the place").nullable().optional()
41
- });
41
+ }).passthrough();
42
42
  const radarSearchPlacesNearLocation = action("RADAR_SEARCH_PLACES_NEAR_LOCATION", {
43
43
  slug: "radar-search-places-near-location",
44
44
  name: "Search Places Near Location",
@@ -48,7 +48,7 @@ const radarSearchPlacesNearLocation = action("RADAR_SEARCH_PLACES_NEAR_LOCATION"
48
48
  meta: RadarSearchPlacesNearLocation_MetaSchema.nullable(),
49
49
  links: RadarSearchPlacesNearLocation_LinksSchema.nullable().optional(),
50
50
  places: z.array(RadarSearchPlacesNearLocation_PlaceSchema).describe("List of places found")
51
- })
51
+ }).passthrough()
52
52
  });
53
53
  //#endregion
54
54
  export { radarSearchPlacesNearLocation };
@@ -1 +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,g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U,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+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"}
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.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.object({\n code: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_LinksSchema = 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}).passthrough();\nconst RadarSearchPlacesNearLocation_ChainSchema = 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}).passthrough();\nconst RadarSearchPlacesNearLocation_GeoJSONPointSchema = z.object({\n type: z.string().describe(\"GeoJSON type, must be 'Point'\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [lng, lat]\"),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_PlaceSchema = z.object({\n _id: z.string().describe(\"Place unique identifier\").nullable(),\n name: z.string().describe(\"Name of the place\").nullable(),\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}).passthrough();\nexport const RadarSearchPlacesNearLocationOutput = 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}).passthrough();\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,qCAAqC,EAAE,OAAO;CACzD,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,2CAA2C,EAAE,OAAO,EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,EAC/E,CAAC,CAAC,CAAC,YAAY;AAC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AE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+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,CAAC,CAAC,YAAY;AAOf,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,MAAM,yCAAyC,SAAS;EACxD,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACrE,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;CAC5F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -8,24 +8,24 @@ const RadarSearchUsersNearLocationInput = zod.z.object({
8
8
  longitude: zod.z.number().describe("Longitude of the location in decimal degrees.")
9
9
  }).describe("Request model for SEARCH_USERS_NEAR_LOCATION.");
10
10
  const RadarSearchUsersNearLocation_MetaSchema = zod.z.object({
11
- code: zod.z.number().int().describe("Status code returned by the API."),
11
+ code: zod.z.number().int().describe("Status code returned by the API.").nullable(),
12
12
  success: zod.z.boolean().describe("True if the request was successful.").nullable().optional()
13
- });
13
+ }).passthrough();
14
14
  const RadarSearchUsersNearLocation_UserLocationSchema = zod.z.object({
15
- type: zod.z.string().describe("GeoJSON type; always 'Point'."),
15
+ type: zod.z.string().describe("GeoJSON type; always 'Point'.").nullable(),
16
16
  coordinates: zod.z.array(zod.z.number()).describe("Coordinates in [longitude, latitude].")
17
- }).describe("GeoJSON location of a user.");
17
+ }).passthrough().describe("GeoJSON location of a user.");
18
18
  const RadarSearchUsersNearLocation_UserSchema = zod.z.object({
19
- _id: zod.z.string().describe("Internal Radar user ID."),
19
+ _id: zod.z.string().describe("Internal Radar user ID.").nullable(),
20
20
  userId: zod.z.string().describe("External user ID, if provided.").nullable().optional(),
21
- deviceId: zod.z.string().describe("Radar device identifier."),
21
+ deviceId: zod.z.string().describe("Radar device identifier.").nullable(),
22
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.");
23
+ updatedAt: zod.z.string().describe("ISO 8601 timestamp of last update.").nullable()
24
+ }).passthrough().describe("User object returned by Radar search.");
25
25
  const RadarSearchUsersNearLocationOutput = zod.z.object({
26
26
  meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),
27
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.");
28
+ }).passthrough().describe("Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.");
29
29
  const radarSearchUsersNearLocation = require_action.action("RADAR_SEARCH_USERS_NEAR_LOCATION", {
30
30
  slug: "radar-search-users-near-location",
31
31
  name: "Search Users Near Location",