@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":"action.cjs","names":["radar","executeRadarTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { radar } from \"./app\";\nimport { executeRadarTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return radar.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRadarTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["radar","executeRadarTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { radar } from \"./app\";\nimport { executeRadarTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return radar.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRadarTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { radar } from \"./app\";\nimport { executeRadarTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return radar.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRadarTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { radar } from \"./app\";\nimport { executeRadarTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return radar.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRadarTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -19,35 +19,35 @@ const RadarAutocompleteAddressOrPlace_PlaceLocationSchema = zod.z.object({
19
19
  number: zod.z.string().describe("Street number, if available").nullable().optional(),
20
20
  street: zod.z.string().describe("Street name, if available").nullable().optional(),
21
21
  country: zod.z.string().describe("Country name").nullable().optional(),
22
- latitude: zod.z.number().describe("Latitude of the place location"),
23
- longitude: zod.z.number().describe("Longitude of the place location"),
22
+ latitude: zod.z.number().describe("Latitude of the place location").nullable(),
23
+ longitude: zod.z.number().describe("Longitude of the place location").nullable(),
24
24
  postalCode: zod.z.string().describe("Postal code").nullable().optional(),
25
25
  countryCode: zod.z.string().describe("Two-letter country code").nullable().optional(),
26
26
  neighborhood: zod.z.string().describe("Neighborhood name, if available").nullable().optional(),
27
27
  formattedAddress: zod.z.string().describe("Formatted address of the place, if available").nullable().optional()
28
- });
28
+ }).passthrough();
29
29
  const RadarAutocompleteAddressOrPlace_PlaceSchema = zod.z.object({
30
- name: zod.z.string().describe("Place name"),
30
+ name: zod.z.string().describe("Place name").nullable(),
31
31
  location: RadarAutocompleteAddressOrPlace_PlaceLocationSchema.nullable(),
32
32
  categories: zod.z.array(zod.z.string()).describe("List of place categories")
33
- });
33
+ }).passthrough();
34
34
  const RadarAutocompleteAddressOrPlace_AddressSchema = zod.z.object({
35
35
  city: zod.z.string().describe("City or locality").nullable().optional(),
36
36
  state: zod.z.string().describe("State, province, or region").nullable().optional(),
37
37
  number: zod.z.string().describe("Street number, if available").nullable().optional(),
38
38
  street: zod.z.string().describe("Street name, if available").nullable().optional(),
39
- country: zod.z.string().describe("Country name"),
40
- latitude: zod.z.number().describe("Latitude of the address"),
41
- longitude: zod.z.number().describe("Longitude of the address"),
39
+ country: zod.z.string().describe("Country name").nullable(),
40
+ latitude: zod.z.number().describe("Latitude of the address").nullable(),
41
+ longitude: zod.z.number().describe("Longitude of the address").nullable(),
42
42
  postalCode: zod.z.string().describe("Postal code").nullable().optional(),
43
- countryCode: zod.z.string().describe("Two-letter country code"),
43
+ countryCode: zod.z.string().describe("Two-letter country code").nullable(),
44
44
  neighborhood: zod.z.string().describe("Neighborhood name, if available").nullable().optional(),
45
- formattedAddress: zod.z.string().describe("Full formatted address")
46
- });
45
+ formattedAddress: zod.z.string().describe("Full formatted address").nullable()
46
+ }).passthrough();
47
47
  const RadarAutocompleteAddressOrPlaceOutput = zod.z.object({
48
48
  places: zod.z.array(RadarAutocompleteAddressOrPlace_PlaceSchema).describe("List of place suggestions, if requested").nullable().optional(),
49
49
  addresses: zod.z.array(RadarAutocompleteAddressOrPlace_AddressSchema).describe("List of address suggestions")
50
- }).describe("Response containing address and place suggestions.");
50
+ }).passthrough().describe("Response containing address and place suggestions.");
51
51
  const radarAutocompleteAddressOrPlace = require_action.action("RADAR_AUTOCOMPLETE_ADDRESS_OR_PLACE", {
52
52
  slug: "radar-autocomplete-address-or-place",
53
53
  name: "Autocomplete Address or Place",
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-address-or-place.cjs","names":["z","action"],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarAutocompleteAddressOrPlaceInput: z.ZodTypeAny = z.object({\n near: z.string().describe(\"Coordinate bias as 'lat,lng'\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-100)\").optional(),\n query: z.string().describe(\"Partial address or place to autocomplete\"),\n layers: z.array(z.enum([\"address\", \"place\", \"locality\", \"region\", \"country\"])).describe(\"Result types to return (e.g., ['address','place'])\").optional(),\n}).describe(\"Parameters to autocomplete partial addresses and place names.\");\nconst RadarAutocompleteAddressOrPlace_PlaceLocationSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the place location\"),\n longitude: z.number().describe(\"Longitude of the place location\"),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable().optional(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place, if available\").nullable().optional(),\n});\nconst RadarAutocompleteAddressOrPlace_PlaceSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Place name\"),\n location: RadarAutocompleteAddressOrPlace_PlaceLocationSchema.nullable(),\n categories: z.array(z.string()).describe(\"List of place categories\"),\n});\nconst RadarAutocompleteAddressOrPlace_AddressSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\"),\n latitude: z.number().describe(\"Latitude of the address\"),\n longitude: z.number().describe(\"Longitude of the address\"),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\"),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Full formatted address\"),\n});\nexport const RadarAutocompleteAddressOrPlaceOutput: z.ZodTypeAny = z.object({\n places: z.array(RadarAutocompleteAddressOrPlace_PlaceSchema).describe(\"List of place suggestions, if requested\").nullable().optional(),\n addresses: z.array(RadarAutocompleteAddressOrPlace_AddressSchema).describe(\"List of address suggestions\"),\n}).describe(\"Response containing address and place suggestions.\");\n\nexport const radarAutocompleteAddressOrPlace = action(\"RADAR_AUTOCOMPLETE_ADDRESS_OR_PLACE\", {\n slug: \"radar-autocomplete-address-or-place\",\n name: \"Autocomplete Address or Place\",\n description: \"Tool to autocomplete partial addresses and place names based on relevance and proximity. Use after a user inputs a partial address/place to get suggestions, optionally biased by location.\",\n input: RadarAutocompleteAddressOrPlaceInput,\n output: RadarAutocompleteAddressOrPlaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC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,CAAC,SAAS,wBAAwB;AAChE,CAAC;AACD,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,WAAWA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6BAA6B;AAC1G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"autocomplete-address-or-place.cjs","names":["z","action"],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarAutocompleteAddressOrPlaceInput = z.object({\n near: z.string().describe(\"Coordinate bias as 'lat,lng'\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-100)\").optional(),\n query: z.string().describe(\"Partial address or place to autocomplete\"),\n layers: z.array(z.enum([\"address\", \"place\", \"locality\", \"region\", \"country\"])).describe(\"Result types to return (e.g., ['address','place'])\").optional(),\n}).describe(\"Parameters to autocomplete partial addresses and place names.\");\nconst RadarAutocompleteAddressOrPlace_PlaceLocationSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the place location\").nullable(),\n longitude: z.number().describe(\"Longitude of the place location\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable().optional(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place, if available\").nullable().optional(),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_PlaceSchema = z.object({\n name: z.string().describe(\"Place name\").nullable(),\n location: RadarAutocompleteAddressOrPlace_PlaceLocationSchema.nullable(),\n categories: z.array(z.string()).describe(\"List of place categories\"),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_AddressSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable(),\n latitude: z.number().describe(\"Latitude of the address\").nullable(),\n longitude: z.number().describe(\"Longitude of the address\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Full formatted address\").nullable(),\n}).passthrough();\nexport const RadarAutocompleteAddressOrPlaceOutput = z.object({\n places: z.array(RadarAutocompleteAddressOrPlace_PlaceSchema).describe(\"List of place suggestions, if requested\").nullable().optional(),\n addresses: z.array(RadarAutocompleteAddressOrPlace_AddressSchema).describe(\"List of address suggestions\"),\n}).passthrough().describe(\"Response containing address and place suggestions.\");\n\nexport const radarAutocompleteAddressOrPlace = action(\"RADAR_AUTOCOMPLETE_ADDRESS_OR_PLACE\", {\n slug: \"radar-autocomplete-address-or-place\",\n name: \"Autocomplete Address or Place\",\n description: \"Tool to autocomplete partial addresses and place names based on relevance and proximity. Use after a user inputs a partial address/place to get suggestions, optionally biased by location.\",\n input: RadarAutocompleteAddressOrPlaceInput,\n output: RadarAutocompleteAddressOrPlaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,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AAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACrE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,WAAWA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6BAA6B;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,56 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/autocomplete-address-or-place.d.ts
4
- declare const RadarAutocompleteAddressOrPlaceInput: z.ZodTypeAny;
5
- declare const RadarAutocompleteAddressOrPlaceOutput: z.ZodTypeAny;
6
- declare const radarAutocompleteAddressOrPlace: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RadarAutocompleteAddressOrPlaceInput: z.ZodObject<{
5
+ near: z.ZodOptional<z.ZodString>;
6
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ query: z.ZodString;
8
+ layers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
9
+ address: "address";
10
+ place: "place";
11
+ locality: "locality";
12
+ region: "region";
13
+ country: "country";
14
+ }>>>;
15
+ }, z.core.$strip>;
16
+ declare const RadarAutocompleteAddressOrPlaceOutput: z.ZodObject<{
17
+ places: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
18
+ name: z.ZodNullable<z.ZodString>;
19
+ location: z.ZodNullable<z.ZodObject<{
20
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ latitude: z.ZodNullable<z.ZodNumber>;
26
+ longitude: z.ZodNullable<z.ZodNumber>;
27
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ formattedAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$loose>>;
32
+ categories: z.ZodArray<z.ZodString>;
33
+ }, z.core.$loose>>>>;
34
+ addresses: z.ZodArray<z.ZodObject<{
35
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ country: z.ZodNullable<z.ZodString>;
40
+ latitude: z.ZodNullable<z.ZodNumber>;
41
+ longitude: z.ZodNullable<z.ZodNumber>;
42
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ countryCode: z.ZodNullable<z.ZodString>;
44
+ neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ formattedAddress: z.ZodNullable<z.ZodString>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
+ declare const radarAutocompleteAddressOrPlace: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ query: string;
50
+ near?: string | undefined;
51
+ limit?: number | undefined;
52
+ layers?: ("address" | "place" | "locality" | "region" | "country")[] | undefined;
53
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
54
  //#endregion
8
55
  export { radarAutocompleteAddressOrPlace };
9
56
  //# sourceMappingURL=autocomplete-address-or-place.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-address-or-place.d.cts","names":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAKuB;AAAA,cAgC/D,qCAAA,EAAuC,CAAA,CAAE,UAGW;AAAA,cAEpD,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"autocomplete-address-or-place.d.cts","names":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAqCpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
@@ -1,9 +1,56 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/autocomplete-address-or-place.d.ts
4
- declare const RadarAutocompleteAddressOrPlaceInput: z.ZodTypeAny;
5
- declare const RadarAutocompleteAddressOrPlaceOutput: z.ZodTypeAny;
6
- declare const radarAutocompleteAddressOrPlace: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RadarAutocompleteAddressOrPlaceInput: z.ZodObject<{
5
+ near: z.ZodOptional<z.ZodString>;
6
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ query: z.ZodString;
8
+ layers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
9
+ address: "address";
10
+ place: "place";
11
+ locality: "locality";
12
+ region: "region";
13
+ country: "country";
14
+ }>>>;
15
+ }, z.core.$strip>;
16
+ declare const RadarAutocompleteAddressOrPlaceOutput: z.ZodObject<{
17
+ places: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
18
+ name: z.ZodNullable<z.ZodString>;
19
+ location: z.ZodNullable<z.ZodObject<{
20
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ latitude: z.ZodNullable<z.ZodNumber>;
26
+ longitude: z.ZodNullable<z.ZodNumber>;
27
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ formattedAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$loose>>;
32
+ categories: z.ZodArray<z.ZodString>;
33
+ }, z.core.$loose>>>>;
34
+ addresses: z.ZodArray<z.ZodObject<{
35
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ country: z.ZodNullable<z.ZodString>;
40
+ latitude: z.ZodNullable<z.ZodNumber>;
41
+ longitude: z.ZodNullable<z.ZodNumber>;
42
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ countryCode: z.ZodNullable<z.ZodString>;
44
+ neighborhood: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ formattedAddress: z.ZodNullable<z.ZodString>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
+ declare const radarAutocompleteAddressOrPlace: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ query: string;
50
+ near?: string | undefined;
51
+ limit?: number | undefined;
52
+ layers?: ("address" | "place" | "locality" | "region" | "country")[] | undefined;
53
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
54
  //#endregion
8
55
  export { radarAutocompleteAddressOrPlace };
9
56
  //# sourceMappingURL=autocomplete-address-or-place.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-address-or-place.d.mts","names":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAKuB;AAAA,cAgC/D,qCAAA,EAAuC,CAAA,CAAE,UAGW;AAAA,cAEpD,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"autocomplete-address-or-place.d.mts","names":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAqCpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,gCAA+B,wBAAA"}
@@ -19,31 +19,31 @@ const RadarAutocompleteAddressOrPlace_PlaceLocationSchema = z.object({
19
19
  number: z.string().describe("Street number, if available").nullable().optional(),
20
20
  street: z.string().describe("Street name, if available").nullable().optional(),
21
21
  country: z.string().describe("Country name").nullable().optional(),
22
- latitude: z.number().describe("Latitude of the place location"),
23
- longitude: z.number().describe("Longitude of the place location"),
22
+ latitude: z.number().describe("Latitude of the place location").nullable(),
23
+ longitude: z.number().describe("Longitude of the place location").nullable(),
24
24
  postalCode: z.string().describe("Postal code").nullable().optional(),
25
25
  countryCode: z.string().describe("Two-letter country code").nullable().optional(),
26
26
  neighborhood: z.string().describe("Neighborhood name, if available").nullable().optional(),
27
27
  formattedAddress: z.string().describe("Formatted address of the place, if available").nullable().optional()
28
- });
28
+ }).passthrough();
29
29
  const RadarAutocompleteAddressOrPlace_PlaceSchema = z.object({
30
- name: z.string().describe("Place name"),
30
+ name: z.string().describe("Place name").nullable(),
31
31
  location: RadarAutocompleteAddressOrPlace_PlaceLocationSchema.nullable(),
32
32
  categories: z.array(z.string()).describe("List of place categories")
33
- });
33
+ }).passthrough();
34
34
  const RadarAutocompleteAddressOrPlace_AddressSchema = z.object({
35
35
  city: z.string().describe("City or locality").nullable().optional(),
36
36
  state: z.string().describe("State, province, or region").nullable().optional(),
37
37
  number: z.string().describe("Street number, if available").nullable().optional(),
38
38
  street: z.string().describe("Street name, if available").nullable().optional(),
39
- country: z.string().describe("Country name"),
40
- latitude: z.number().describe("Latitude of the address"),
41
- longitude: z.number().describe("Longitude of the address"),
39
+ country: z.string().describe("Country name").nullable(),
40
+ latitude: z.number().describe("Latitude of the address").nullable(),
41
+ longitude: z.number().describe("Longitude of the address").nullable(),
42
42
  postalCode: z.string().describe("Postal code").nullable().optional(),
43
- countryCode: z.string().describe("Two-letter country code"),
43
+ countryCode: z.string().describe("Two-letter country code").nullable(),
44
44
  neighborhood: z.string().describe("Neighborhood name, if available").nullable().optional(),
45
- formattedAddress: z.string().describe("Full formatted address")
46
- });
45
+ formattedAddress: z.string().describe("Full formatted address").nullable()
46
+ }).passthrough();
47
47
  const radarAutocompleteAddressOrPlace = action("RADAR_AUTOCOMPLETE_ADDRESS_OR_PLACE", {
48
48
  slug: "radar-autocomplete-address-or-place",
49
49
  name: "Autocomplete Address or Place",
@@ -52,7 +52,7 @@ const radarAutocompleteAddressOrPlace = action("RADAR_AUTOCOMPLETE_ADDRESS_OR_PL
52
52
  output: z.object({
53
53
  places: z.array(RadarAutocompleteAddressOrPlace_PlaceSchema).describe("List of place suggestions, if requested").nullable().optional(),
54
54
  addresses: z.array(RadarAutocompleteAddressOrPlace_AddressSchema).describe("List of address suggestions")
55
- }).describe("Response containing address and place suggestions.")
55
+ }).passthrough().describe("Response containing address and place suggestions.")
56
56
  });
57
57
  //#endregion
58
58
  export { radarAutocompleteAddressOrPlace };
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-address-or-place.mjs","names":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarAutocompleteAddressOrPlaceInput: z.ZodTypeAny = z.object({\n near: z.string().describe(\"Coordinate bias as 'lat,lng'\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-100)\").optional(),\n query: z.string().describe(\"Partial address or place to autocomplete\"),\n layers: z.array(z.enum([\"address\", \"place\", \"locality\", \"region\", \"country\"])).describe(\"Result types to return (e.g., ['address','place'])\").optional(),\n}).describe(\"Parameters to autocomplete partial addresses and place names.\");\nconst RadarAutocompleteAddressOrPlace_PlaceLocationSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the place location\"),\n longitude: z.number().describe(\"Longitude of the place location\"),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable().optional(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place, if available\").nullable().optional(),\n});\nconst RadarAutocompleteAddressOrPlace_PlaceSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Place name\"),\n location: RadarAutocompleteAddressOrPlace_PlaceLocationSchema.nullable(),\n categories: z.array(z.string()).describe(\"List of place categories\"),\n});\nconst RadarAutocompleteAddressOrPlace_AddressSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\"),\n latitude: z.number().describe(\"Latitude of the address\"),\n longitude: z.number().describe(\"Longitude of the address\"),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\"),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Full formatted address\"),\n});\nexport const RadarAutocompleteAddressOrPlaceOutput: z.ZodTypeAny = z.object({\n places: z.array(RadarAutocompleteAddressOrPlace_PlaceSchema).describe(\"List of place suggestions, if requested\").nullable().optional(),\n addresses: z.array(RadarAutocompleteAddressOrPlace_AddressSchema).describe(\"List of address suggestions\"),\n}).describe(\"Response containing address and place suggestions.\");\n\nexport const radarAutocompleteAddressOrPlace = action(\"RADAR_AUTOCOMPLETE_ADDRESS_OR_PLACE\", {\n slug: \"radar-autocomplete-address-or-place\",\n name: \"Autocomplete Address or Place\",\n description: \"Tool to autocomplete partial addresses and place names based on relevance and proximity. Use after a user inputs a partial address/place to get suggestions, optionally biased by location.\",\n input: RadarAutocompleteAddressOrPlaceInput,\n output: RadarAutocompleteAddressOrPlaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA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":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarAutocompleteAddressOrPlaceInput = z.object({\n near: z.string().describe(\"Coordinate bias as 'lat,lng'\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-100)\").optional(),\n query: z.string().describe(\"Partial address or place to autocomplete\"),\n layers: z.array(z.enum([\"address\", \"place\", \"locality\", \"region\", \"country\"])).describe(\"Result types to return (e.g., ['address','place'])\").optional(),\n}).describe(\"Parameters to autocomplete partial addresses and place names.\");\nconst RadarAutocompleteAddressOrPlace_PlaceLocationSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the place location\").nullable(),\n longitude: z.number().describe(\"Longitude of the place location\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable().optional(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place, if available\").nullable().optional(),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_PlaceSchema = z.object({\n name: z.string().describe(\"Place name\").nullable(),\n location: RadarAutocompleteAddressOrPlace_PlaceLocationSchema.nullable(),\n categories: z.array(z.string()).describe(\"List of place categories\"),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_AddressSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable(),\n latitude: z.number().describe(\"Latitude of the address\").nullable(),\n longitude: z.number().describe(\"Longitude of the address\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Full formatted address\").nullable(),\n}).passthrough();\nexport const RadarAutocompleteAddressOrPlaceOutput = z.object({\n places: z.array(RadarAutocompleteAddressOrPlace_PlaceSchema).describe(\"List of place suggestions, if requested\").nullable().optional(),\n addresses: z.array(RadarAutocompleteAddressOrPlace_AddressSchema).describe(\"List of address suggestions\"),\n}).passthrough().describe(\"Response containing address and place suggestions.\");\n\nexport const radarAutocompleteAddressOrPlace = action(\"RADAR_AUTOCOMPLETE_ADDRESS_OR_PLACE\", {\n slug: \"radar-autocomplete-address-or-place\",\n name: \"Autocomplete Address or Place\",\n description: \"Tool to autocomplete partial addresses and place names based on relevance and proximity. Use after a user inputs a partial address/place to get suggestions, optionally biased by location.\",\n input: RadarAutocompleteAddressOrPlaceInput,\n output: RadarAutocompleteAddressOrPlaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACrE,QAAQ,EAAE,MAAM,EAAE,KAAK;EAAC;EAAW;EAAS;EAAY;EAAU;CAAS,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sDAAsD,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;C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CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACrE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,kCAAkC,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmD,EAAE,OAAO;EAC5D,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,WAAW,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6BAA6B;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
@@ -13,36 +13,36 @@ const RadarCreateBeaconInput = zod.z.object({
13
13
  coordinates: zod.z.array(zod.z.number()).describe("The approximate location of the beacon in [longitude, latitude] format. Used to sync nearby beacons (within 1 kilometer) to the SDK."),
14
14
  description: zod.z.string().describe("A description for the beacon").optional()
15
15
  }).describe("Request model for creating a new Radar beacon.");
16
- const RadarCreateBeacon_CreateBeaconMetaSchema = zod.z.object({ code: zod.z.number().int().describe("The HTTP status code of the response") }).describe("Metadata for the create beacon response.");
16
+ const RadarCreateBeacon_CreateBeaconMetaSchema = zod.z.object({ code: zod.z.number().int().describe("The HTTP status code of the response").nullable() }).passthrough().describe("Metadata for the create beacon response.");
17
17
  const RadarCreateBeacon_GeometryObjectSchema = zod.z.object({
18
- type: zod.z.string().describe("Geometry type (e.g., 'Point')"),
18
+ type: zod.z.string().describe("Geometry type (e.g., 'Point')").nullable(),
19
19
  coordinates: zod.z.array(zod.z.number()).describe("Coordinates in [longitude, latitude] format")
20
- }).describe("Geometry object containing coordinates.");
20
+ }).passthrough().describe("Geometry object containing coordinates.");
21
21
  const RadarCreateBeacon_CreatedBeaconSchema = zod.z.object({
22
- _id: zod.z.string().describe("Unique beacon ID assigned by Radar"),
23
- tag: zod.z.string().describe("Tag or group for the beacon"),
22
+ _id: zod.z.string().describe("Unique beacon ID assigned by Radar").nullable(),
23
+ tag: zod.z.string().describe("Tag or group for the beacon").nullable(),
24
24
  url: zod.z.string().describe("URL for Eddystone URL").nullable().optional(),
25
25
  live: zod.z.boolean().describe("Whether the beacon is in live mode").nullable().optional(),
26
- type: zod.z.string().describe("Beacon technology type"),
26
+ type: zod.z.string().describe("Beacon technology type").nullable(),
27
27
  uuid: zod.z.string().describe("UUID for iBeacon").nullable().optional(),
28
28
  major: zod.z.string().describe("Major value for iBeacon").nullable().optional(),
29
29
  minor: zod.z.string().describe("Minor value for iBeacon").nullable().optional(),
30
- enabled: zod.z.boolean().describe("Whether the beacon is enabled"),
30
+ enabled: zod.z.boolean().describe("Whether the beacon is enabled").nullable(),
31
31
  placeId: zod.z.string().describe("Radar placeId associated with the beacon").nullable().optional(),
32
32
  deviceId: zod.z.string().describe("Device ID or serial number of the beacon").nullable().optional(),
33
33
  geometry: RadarCreateBeacon_GeometryObjectSchema.nullable(),
34
34
  instance: zod.z.string().describe("Instance for Eddystone UID").nullable().optional(),
35
35
  metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata of the beacon").nullable().optional(),
36
- createdAt: zod.z.string().describe("Timestamp when created (ISO 8601)"),
36
+ createdAt: zod.z.string().describe("Timestamp when created (ISO 8601)").nullable(),
37
37
  namespace: zod.z.string().describe("Namespace for Eddystone UID").nullable().optional(),
38
- updatedAt: zod.z.string().describe("Timestamp when last updated (ISO 8601)"),
39
- externalId: zod.z.string().describe("External ID of the beacon"),
38
+ updatedAt: zod.z.string().describe("Timestamp when last updated (ISO 8601)").nullable(),
39
+ externalId: zod.z.string().describe("External ID of the beacon").nullable(),
40
40
  description: zod.z.string().describe("Description of the beacon").nullable().optional()
41
- }).describe("Beacon object returned by Radar after creation.");
41
+ }).passthrough().describe("Beacon object returned by Radar after creation.");
42
42
  const RadarCreateBeaconOutput = zod.z.object({
43
43
  meta: RadarCreateBeacon_CreateBeaconMetaSchema.nullable(),
44
44
  beacon: RadarCreateBeacon_CreatedBeaconSchema.nullable()
45
- }).describe("Response model for creating a beacon.");
45
+ }).passthrough().describe("Response model for creating a beacon.");
46
46
  const radarCreateBeacon = require_action.action("RADAR_CREATE_BEACON", {
47
47
  slug: "radar-create-beacon",
48
48
  name: "Create Beacon",
@@ -1 +1 @@
1
- {"version":3,"file":"create-beacon.cjs","names":["z","action"],"sources":["../../src/actions/create-beacon.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarCreateBeaconInput: z.ZodTypeAny = z.object({\n tag: z.string().describe(\"A group or category for the beacon (e.g., 'store-entrance', 'parking-lot')\"),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"The type of beacon technology\"),\n uuid: z.string().describe(\"For iBeacon, the UUID identifier\").optional(),\n major: z.string().describe(\"For iBeacon, the major value\").optional(),\n minor: z.string().describe(\"For iBeacon, the minor value\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled. If not specified, defaults to true.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional custom metadata key-value pairs for the beacon\").optional(),\n externalId: z.string().describe(\"An external ID for the beacon, used to reference it in your system\"),\n coordinates: z.array(z.number()).describe(\"The approximate location of the beacon in [longitude, latitude] format. Used to sync nearby beacons (within 1 kilometer) to the SDK.\"),\n description: z.string().describe(\"A description for the beacon\").optional(),\n}).describe(\"Request model for creating a new Radar beacon.\");\nconst RadarCreateBeacon_CreateBeaconMetaSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\"),\n}).describe(\"Metadata for the create beacon response.\");\nconst RadarCreateBeacon_GeometryObjectSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Geometry type (e.g., 'Point')\"),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).describe(\"Geometry object containing coordinates.\");\nconst RadarCreateBeacon_CreatedBeaconSchema: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Unique beacon ID assigned by Radar\"),\n tag: z.string().describe(\"Tag or group for the beacon\"),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is in live mode\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\"),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.string().describe(\"Major value for iBeacon\").nullable().optional(),\n minor: z.string().describe(\"Minor value for iBeacon\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\"),\n placeId: z.string().describe(\"Radar placeId associated with the beacon\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID or serial number of the beacon\").nullable().optional(),\n geometry: RadarCreateBeacon_GeometryObjectSchema.nullable(),\n instance: z.string().describe(\"Instance for Eddystone UID\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601)\"),\n namespace: z.string().describe(\"Namespace for Eddystone UID\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601)\"),\n externalId: z.string().describe(\"External ID of the beacon\"),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).describe(\"Beacon object returned by Radar after creation.\");\nexport const RadarCreateBeaconOutput: z.ZodTypeAny = z.object({\n meta: RadarCreateBeacon_CreateBeaconMetaSchema.nullable(),\n beacon: RadarCreateBeacon_CreatedBeaconSchema.nullable(),\n}).describe(\"Response model for creating a beacon.\");\n\nexport const radarCreateBeacon = action(\"RADAR_CREATE_BEACON\", {\n slug: \"radar-create-beacon\",\n name: \"Create Beacon\",\n description: \"Tool to create a new beacon in Radar. Use when you need to register a physical beacon device (iBeacon or Eddystone) for location tracking.\",\n input: RadarCreateBeaconInput,\n output: RadarCreateBeaconOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACrG,MAAMA,IAAAA,EAAE,KAAK,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,SAAS,+BAA+B;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC7G,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,E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;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-beacon.cjs","names":["z","action"],"sources":["../../src/actions/create-beacon.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarCreateBeaconInput = z.object({\n tag: z.string().describe(\"A group or category for the beacon (e.g., 'store-entrance', 'parking-lot')\"),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"The type of beacon technology\"),\n uuid: z.string().describe(\"For iBeacon, the UUID identifier\").optional(),\n major: z.string().describe(\"For iBeacon, the major value\").optional(),\n minor: z.string().describe(\"For iBeacon, the minor value\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled. If not specified, defaults to true.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional custom metadata key-value pairs for the beacon\").optional(),\n externalId: z.string().describe(\"An external ID for the beacon, used to reference it in your system\"),\n coordinates: z.array(z.number()).describe(\"The approximate location of the beacon in [longitude, latitude] format. Used to sync nearby beacons (within 1 kilometer) to the SDK.\"),\n description: z.string().describe(\"A description for the beacon\").optional(),\n}).describe(\"Request model for creating a new Radar beacon.\");\nconst RadarCreateBeacon_CreateBeaconMetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Metadata for the create beacon response.\");\nconst RadarCreateBeacon_GeometryObjectSchema = z.object({\n type: z.string().describe(\"Geometry type (e.g., 'Point')\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object containing coordinates.\");\nconst RadarCreateBeacon_CreatedBeaconSchema = z.object({\n _id: z.string().describe(\"Unique beacon ID assigned by Radar\").nullable(),\n tag: z.string().describe(\"Tag or group for the beacon\").nullable(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is in live mode\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.string().describe(\"Major value for iBeacon\").nullable().optional(),\n minor: z.string().describe(\"Minor value for iBeacon\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable(),\n placeId: z.string().describe(\"Radar placeId associated with the beacon\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID or serial number of the beacon\").nullable().optional(),\n geometry: RadarCreateBeacon_GeometryObjectSchema.nullable(),\n instance: z.string().describe(\"Instance for Eddystone UID\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601)\").nullable(),\n namespace: z.string().describe(\"Namespace for Eddystone UID\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601)\").nullable(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar after creation.\");\nexport const RadarCreateBeaconOutput = z.object({\n meta: RadarCreateBeacon_CreateBeaconMetaSchema.nullable(),\n beacon: RadarCreateBeacon_CreatedBeaconSchema.nullable(),\n}).passthrough().describe(\"Response model for creating a beacon.\");\n\nexport const radarCreateBeacon = action(\"RADAR_CREATE_BEACON\", {\n slug: \"radar-create-beacon\",\n name: \"Create Beacon\",\n description: \"Tool to create a new beacon in Radar. Use when you need to register a physical beacon device (iBeacon or Eddystone) for location tracking.\",\n input: RadarCreateBeaconInput,\n output: RadarCreateBeaconOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACrG,MAAMA,IAAAA,EAAE,KAAK,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,SAAS,+BAA+B;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,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7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,yCAAyC,SAAS;CACxD,QAAQ,sCAAsC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,62 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-beacon.d.ts
4
- declare const RadarCreateBeaconInput: z.ZodTypeAny;
5
- declare const RadarCreateBeaconOutput: z.ZodTypeAny;
6
- declare const radarCreateBeacon: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RadarCreateBeaconInput: z.ZodObject<{
5
+ tag: z.ZodString;
6
+ type: z.ZodEnum<{
7
+ ibeacon: "ibeacon";
8
+ eddystone: "eddystone";
9
+ }>;
10
+ uuid: z.ZodOptional<z.ZodString>;
11
+ major: z.ZodOptional<z.ZodString>;
12
+ minor: z.ZodOptional<z.ZodString>;
13
+ enabled: z.ZodOptional<z.ZodBoolean>;
14
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
+ externalId: z.ZodString;
16
+ coordinates: z.ZodArray<z.ZodNumber>;
17
+ description: z.ZodOptional<z.ZodString>;
18
+ }, z.core.$strip>;
19
+ declare const RadarCreateBeaconOutput: z.ZodObject<{
20
+ meta: z.ZodNullable<z.ZodObject<{
21
+ code: z.ZodNullable<z.ZodNumber>;
22
+ }, z.core.$loose>>;
23
+ beacon: z.ZodNullable<z.ZodObject<{
24
+ _id: z.ZodNullable<z.ZodString>;
25
+ tag: z.ZodNullable<z.ZodString>;
26
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
28
+ type: z.ZodNullable<z.ZodString>;
29
+ uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ major: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ minor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ enabled: z.ZodNullable<z.ZodBoolean>;
33
+ placeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ geometry: z.ZodNullable<z.ZodObject<{
36
+ type: z.ZodNullable<z.ZodString>;
37
+ coordinates: z.ZodArray<z.ZodNumber>;
38
+ }, z.core.$loose>>;
39
+ instance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
41
+ createdAt: z.ZodNullable<z.ZodString>;
42
+ namespace: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ updatedAt: z.ZodNullable<z.ZodString>;
44
+ externalId: z.ZodNullable<z.ZodString>;
45
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
+ declare const radarCreateBeacon: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ tag: string;
50
+ type: "ibeacon" | "eddystone";
51
+ externalId: string;
52
+ coordinates: number[];
53
+ uuid?: string | undefined;
54
+ major?: string | undefined;
55
+ minor?: string | undefined;
56
+ enabled?: boolean | undefined;
57
+ metadata?: Record<string, unknown> | undefined;
58
+ description?: string | undefined;
59
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
60
  //#endregion
8
61
  export { radarCreateBeacon };
9
62
  //# sourceMappingURL=create-beacon.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-beacon.d.cts","names":[],"sources":["../../src/actions/create-beacon.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAWsB;AAAA,cA6BhD,uBAAA,EAAyB,CAAA,CAAE,UAGY;AAAA,cAEvC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-beacon.d.cts","names":[],"sources":["../../src/actions/create-beacon.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;aAM5B,MAAA"}
@@ -1,9 +1,62 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-beacon.d.ts
4
- declare const RadarCreateBeaconInput: z.ZodTypeAny;
5
- declare const RadarCreateBeaconOutput: z.ZodTypeAny;
6
- declare const radarCreateBeacon: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RadarCreateBeaconInput: z.ZodObject<{
5
+ tag: z.ZodString;
6
+ type: z.ZodEnum<{
7
+ ibeacon: "ibeacon";
8
+ eddystone: "eddystone";
9
+ }>;
10
+ uuid: z.ZodOptional<z.ZodString>;
11
+ major: z.ZodOptional<z.ZodString>;
12
+ minor: z.ZodOptional<z.ZodString>;
13
+ enabled: z.ZodOptional<z.ZodBoolean>;
14
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
+ externalId: z.ZodString;
16
+ coordinates: z.ZodArray<z.ZodNumber>;
17
+ description: z.ZodOptional<z.ZodString>;
18
+ }, z.core.$strip>;
19
+ declare const RadarCreateBeaconOutput: z.ZodObject<{
20
+ meta: z.ZodNullable<z.ZodObject<{
21
+ code: z.ZodNullable<z.ZodNumber>;
22
+ }, z.core.$loose>>;
23
+ beacon: z.ZodNullable<z.ZodObject<{
24
+ _id: z.ZodNullable<z.ZodString>;
25
+ tag: z.ZodNullable<z.ZodString>;
26
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
28
+ type: z.ZodNullable<z.ZodString>;
29
+ uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ major: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ minor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ enabled: z.ZodNullable<z.ZodBoolean>;
33
+ placeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ geometry: z.ZodNullable<z.ZodObject<{
36
+ type: z.ZodNullable<z.ZodString>;
37
+ coordinates: z.ZodArray<z.ZodNumber>;
38
+ }, z.core.$loose>>;
39
+ instance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
41
+ createdAt: z.ZodNullable<z.ZodString>;
42
+ namespace: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ updatedAt: z.ZodNullable<z.ZodString>;
44
+ externalId: z.ZodNullable<z.ZodString>;
45
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
+ declare const radarCreateBeacon: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ tag: string;
50
+ type: "ibeacon" | "eddystone";
51
+ externalId: string;
52
+ coordinates: number[];
53
+ uuid?: string | undefined;
54
+ major?: string | undefined;
55
+ minor?: string | undefined;
56
+ enabled?: boolean | undefined;
57
+ metadata?: Record<string, unknown> | undefined;
58
+ description?: string | undefined;
59
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
60
  //#endregion
8
61
  export { radarCreateBeacon };
9
62
  //# sourceMappingURL=create-beacon.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-beacon.d.mts","names":[],"sources":["../../src/actions/create-beacon.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAWsB;AAAA,cA6BhD,uBAAA,EAAyB,CAAA,CAAE,UAGY;AAAA,cAEvC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-beacon.d.mts","names":[],"sources":["../../src/actions/create-beacon.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA;;;;;;;;;aAM5B,MAAA"}
@@ -13,32 +13,32 @@ const RadarCreateBeaconInput = z.object({
13
13
  coordinates: z.array(z.number()).describe("The approximate location of the beacon in [longitude, latitude] format. Used to sync nearby beacons (within 1 kilometer) to the SDK."),
14
14
  description: z.string().describe("A description for the beacon").optional()
15
15
  }).describe("Request model for creating a new Radar beacon.");
16
- const RadarCreateBeacon_CreateBeaconMetaSchema = z.object({ code: z.number().int().describe("The HTTP status code of the response") }).describe("Metadata for the create beacon response.");
16
+ const RadarCreateBeacon_CreateBeaconMetaSchema = z.object({ code: z.number().int().describe("The HTTP status code of the response").nullable() }).passthrough().describe("Metadata for the create beacon response.");
17
17
  const RadarCreateBeacon_GeometryObjectSchema = z.object({
18
- type: z.string().describe("Geometry type (e.g., 'Point')"),
18
+ type: z.string().describe("Geometry type (e.g., 'Point')").nullable(),
19
19
  coordinates: z.array(z.number()).describe("Coordinates in [longitude, latitude] format")
20
- }).describe("Geometry object containing coordinates.");
20
+ }).passthrough().describe("Geometry object containing coordinates.");
21
21
  const RadarCreateBeacon_CreatedBeaconSchema = z.object({
22
- _id: z.string().describe("Unique beacon ID assigned by Radar"),
23
- tag: z.string().describe("Tag or group for the beacon"),
22
+ _id: z.string().describe("Unique beacon ID assigned by Radar").nullable(),
23
+ tag: z.string().describe("Tag or group for the beacon").nullable(),
24
24
  url: z.string().describe("URL for Eddystone URL").nullable().optional(),
25
25
  live: z.boolean().describe("Whether the beacon is in live mode").nullable().optional(),
26
- type: z.string().describe("Beacon technology type"),
26
+ type: z.string().describe("Beacon technology type").nullable(),
27
27
  uuid: z.string().describe("UUID for iBeacon").nullable().optional(),
28
28
  major: z.string().describe("Major value for iBeacon").nullable().optional(),
29
29
  minor: z.string().describe("Minor value for iBeacon").nullable().optional(),
30
- enabled: z.boolean().describe("Whether the beacon is enabled"),
30
+ enabled: z.boolean().describe("Whether the beacon is enabled").nullable(),
31
31
  placeId: z.string().describe("Radar placeId associated with the beacon").nullable().optional(),
32
32
  deviceId: z.string().describe("Device ID or serial number of the beacon").nullable().optional(),
33
33
  geometry: RadarCreateBeacon_GeometryObjectSchema.nullable(),
34
34
  instance: z.string().describe("Instance for Eddystone UID").nullable().optional(),
35
35
  metadata: z.record(z.string(), z.unknown()).describe("Custom metadata of the beacon").nullable().optional(),
36
- createdAt: z.string().describe("Timestamp when created (ISO 8601)"),
36
+ createdAt: z.string().describe("Timestamp when created (ISO 8601)").nullable(),
37
37
  namespace: z.string().describe("Namespace for Eddystone UID").nullable().optional(),
38
- updatedAt: z.string().describe("Timestamp when last updated (ISO 8601)"),
39
- externalId: z.string().describe("External ID of the beacon"),
38
+ updatedAt: z.string().describe("Timestamp when last updated (ISO 8601)").nullable(),
39
+ externalId: z.string().describe("External ID of the beacon").nullable(),
40
40
  description: z.string().describe("Description of the beacon").nullable().optional()
41
- }).describe("Beacon object returned by Radar after creation.");
41
+ }).passthrough().describe("Beacon object returned by Radar after creation.");
42
42
  const radarCreateBeacon = action("RADAR_CREATE_BEACON", {
43
43
  slug: "radar-create-beacon",
44
44
  name: "Create Beacon",
@@ -47,7 +47,7 @@ const radarCreateBeacon = action("RADAR_CREATE_BEACON", {
47
47
  output: z.object({
48
48
  meta: RadarCreateBeacon_CreateBeaconMetaSchema.nullable(),
49
49
  beacon: RadarCreateBeacon_CreatedBeaconSchema.nullable()
50
- }).describe("Response model for creating a beacon.")
50
+ }).passthrough().describe("Response model for creating a beacon.")
51
51
  });
52
52
  //#endregion
53
53
  export { radarCreateBeacon };