@keystrokehq/radar 0.1.5 → 0.1.6

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 (309) 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 +1 -0
  4. package/dist/actions/autocomplete-address-or-place.cjs.map +1 -1
  5. package/dist/actions/autocomplete-address-or-place.d.cts +3 -18
  6. package/dist/actions/autocomplete-address-or-place.d.cts.map +1 -1
  7. package/dist/actions/autocomplete-address-or-place.d.mts +3 -18
  8. package/dist/actions/autocomplete-address-or-place.d.mts.map +1 -1
  9. package/dist/actions/autocomplete-address-or-place.mjs +1 -0
  10. package/dist/actions/autocomplete-address-or-place.mjs.map +1 -1
  11. package/dist/actions/create-beacon.cjs +1 -0
  12. package/dist/actions/create-beacon.cjs.map +1 -1
  13. package/dist/actions/create-beacon.d.cts +3 -24
  14. package/dist/actions/create-beacon.d.cts.map +1 -1
  15. package/dist/actions/create-beacon.d.mts +3 -24
  16. package/dist/actions/create-beacon.d.mts.map +1 -1
  17. package/dist/actions/create-beacon.mjs +1 -0
  18. package/dist/actions/create-beacon.mjs.map +1 -1
  19. package/dist/actions/create-trip.cjs +1 -0
  20. package/dist/actions/create-trip.cjs.map +1 -1
  21. package/dist/actions/create-trip.d.cts +3 -30
  22. package/dist/actions/create-trip.d.cts.map +1 -1
  23. package/dist/actions/create-trip.d.mts +3 -30
  24. package/dist/actions/create-trip.d.mts.map +1 -1
  25. package/dist/actions/create-trip.mjs +1 -0
  26. package/dist/actions/create-trip.mjs.map +1 -1
  27. package/dist/actions/delete-beacon.cjs +1 -0
  28. package/dist/actions/delete-beacon.cjs.map +1 -1
  29. package/dist/actions/delete-beacon.d.cts +3 -15
  30. package/dist/actions/delete-beacon.d.cts.map +1 -1
  31. package/dist/actions/delete-beacon.d.mts +3 -15
  32. package/dist/actions/delete-beacon.d.mts.map +1 -1
  33. package/dist/actions/delete-beacon.mjs +1 -0
  34. package/dist/actions/delete-beacon.mjs.map +1 -1
  35. package/dist/actions/delete-geofence-by-tag.cjs +1 -0
  36. package/dist/actions/delete-geofence-by-tag.cjs.map +1 -1
  37. package/dist/actions/delete-geofence-by-tag.d.cts +3 -16
  38. package/dist/actions/delete-geofence-by-tag.d.cts.map +1 -1
  39. package/dist/actions/delete-geofence-by-tag.d.mts +3 -16
  40. package/dist/actions/delete-geofence-by-tag.d.mts.map +1 -1
  41. package/dist/actions/delete-geofence-by-tag.mjs +1 -0
  42. package/dist/actions/delete-geofence-by-tag.mjs.map +1 -1
  43. package/dist/actions/delete-geofence.cjs +1 -0
  44. package/dist/actions/delete-geofence.cjs.map +1 -1
  45. package/dist/actions/delete-geofence.d.cts +3 -15
  46. package/dist/actions/delete-geofence.d.cts.map +1 -1
  47. package/dist/actions/delete-geofence.d.mts +3 -15
  48. package/dist/actions/delete-geofence.d.mts.map +1 -1
  49. package/dist/actions/delete-geofence.mjs +1 -0
  50. package/dist/actions/delete-geofence.mjs.map +1 -1
  51. package/dist/actions/delete-trip.cjs +1 -0
  52. package/dist/actions/delete-trip.cjs.map +1 -1
  53. package/dist/actions/delete-trip.d.cts +3 -15
  54. package/dist/actions/delete-trip.d.cts.map +1 -1
  55. package/dist/actions/delete-trip.d.mts +3 -15
  56. package/dist/actions/delete-trip.d.mts.map +1 -1
  57. package/dist/actions/delete-trip.mjs +1 -0
  58. package/dist/actions/delete-trip.mjs.map +1 -1
  59. package/dist/actions/delete-user.cjs +1 -0
  60. package/dist/actions/delete-user.cjs.map +1 -1
  61. package/dist/actions/delete-user.d.cts +3 -15
  62. package/dist/actions/delete-user.d.cts.map +1 -1
  63. package/dist/actions/delete-user.d.mts +3 -15
  64. package/dist/actions/delete-user.d.mts.map +1 -1
  65. package/dist/actions/delete-user.mjs +1 -0
  66. package/dist/actions/delete-user.mjs.map +1 -1
  67. package/dist/actions/forward-geocode.cjs +1 -0
  68. package/dist/actions/forward-geocode.cjs.map +1 -1
  69. package/dist/actions/forward-geocode.d.cts +3 -18
  70. package/dist/actions/forward-geocode.d.cts.map +1 -1
  71. package/dist/actions/forward-geocode.d.mts +3 -18
  72. package/dist/actions/forward-geocode.d.mts.map +1 -1
  73. package/dist/actions/forward-geocode.mjs +1 -0
  74. package/dist/actions/forward-geocode.mjs.map +1 -1
  75. package/dist/actions/get-beacon-by-tag.cjs +1 -0
  76. package/dist/actions/get-beacon-by-tag.cjs.map +1 -1
  77. package/dist/actions/get-beacon-by-tag.d.cts +3 -16
  78. package/dist/actions/get-beacon-by-tag.d.cts.map +1 -1
  79. package/dist/actions/get-beacon-by-tag.d.mts +3 -16
  80. package/dist/actions/get-beacon-by-tag.d.mts.map +1 -1
  81. package/dist/actions/get-beacon-by-tag.mjs +1 -0
  82. package/dist/actions/get-beacon-by-tag.mjs.map +1 -1
  83. package/dist/actions/get-beacon.cjs +1 -0
  84. package/dist/actions/get-beacon.cjs.map +1 -1
  85. package/dist/actions/get-beacon.d.cts +3 -15
  86. package/dist/actions/get-beacon.d.cts.map +1 -1
  87. package/dist/actions/get-beacon.d.mts +3 -15
  88. package/dist/actions/get-beacon.d.mts.map +1 -1
  89. package/dist/actions/get-beacon.mjs +1 -0
  90. package/dist/actions/get-beacon.mjs.map +1 -1
  91. package/dist/actions/get-context-for-location.cjs +1 -0
  92. package/dist/actions/get-context-for-location.cjs.map +1 -1
  93. package/dist/actions/get-context-for-location.d.cts +3 -16
  94. package/dist/actions/get-context-for-location.d.cts.map +1 -1
  95. package/dist/actions/get-context-for-location.d.mts +3 -16
  96. package/dist/actions/get-context-for-location.d.mts.map +1 -1
  97. package/dist/actions/get-context-for-location.mjs +1 -0
  98. package/dist/actions/get-context-for-location.mjs.map +1 -1
  99. package/dist/actions/get-geofence.cjs +1 -0
  100. package/dist/actions/get-geofence.cjs.map +1 -1
  101. package/dist/actions/get-geofence.d.cts +3 -17
  102. package/dist/actions/get-geofence.d.cts.map +1 -1
  103. package/dist/actions/get-geofence.d.mts +3 -17
  104. package/dist/actions/get-geofence.d.mts.map +1 -1
  105. package/dist/actions/get-geofence.mjs +1 -0
  106. package/dist/actions/get-geofence.mjs.map +1 -1
  107. package/dist/actions/get-places-settings.cjs +1 -0
  108. package/dist/actions/get-places-settings.cjs.map +1 -1
  109. package/dist/actions/get-places-settings.d.cts +3 -13
  110. package/dist/actions/get-places-settings.d.cts.map +1 -1
  111. package/dist/actions/get-places-settings.d.mts +3 -13
  112. package/dist/actions/get-places-settings.d.mts.map +1 -1
  113. package/dist/actions/get-places-settings.mjs +1 -0
  114. package/dist/actions/get-places-settings.mjs.map +1 -1
  115. package/dist/actions/get-route-directions.cjs +1 -0
  116. package/dist/actions/get-route-directions.cjs.map +1 -1
  117. package/dist/actions/get-route-directions.d.cts +4 -24
  118. package/dist/actions/get-route-directions.d.cts.map +1 -1
  119. package/dist/actions/get-route-directions.d.mts +4 -24
  120. package/dist/actions/get-route-directions.d.mts.map +1 -1
  121. package/dist/actions/get-route-directions.mjs +1 -0
  122. package/dist/actions/get-route-directions.mjs.map +1 -1
  123. package/dist/actions/get-route-matrix.cjs +1 -0
  124. package/dist/actions/get-route-matrix.cjs.map +1 -1
  125. package/dist/actions/get-route-matrix.d.cts +3 -18
  126. package/dist/actions/get-route-matrix.d.cts.map +1 -1
  127. package/dist/actions/get-route-matrix.d.mts +3 -18
  128. package/dist/actions/get-route-matrix.d.mts.map +1 -1
  129. package/dist/actions/get-route-matrix.mjs +1 -0
  130. package/dist/actions/get-route-matrix.mjs.map +1 -1
  131. package/dist/actions/get-trip.cjs +1 -0
  132. package/dist/actions/get-trip.cjs.map +1 -1
  133. package/dist/actions/get-trip.d.cts +3 -16
  134. package/dist/actions/get-trip.d.cts.map +1 -1
  135. package/dist/actions/get-trip.d.mts +3 -16
  136. package/dist/actions/get-trip.d.mts.map +1 -1
  137. package/dist/actions/get-trip.mjs +1 -0
  138. package/dist/actions/get-trip.mjs.map +1 -1
  139. package/dist/actions/get-user.cjs +1 -0
  140. package/dist/actions/get-user.cjs.map +1 -1
  141. package/dist/actions/get-user.d.cts +3 -15
  142. package/dist/actions/get-user.d.cts.map +1 -1
  143. package/dist/actions/get-user.d.mts +3 -15
  144. package/dist/actions/get-user.d.mts.map +1 -1
  145. package/dist/actions/get-user.mjs +1 -0
  146. package/dist/actions/get-user.mjs.map +1 -1
  147. package/dist/actions/get-users-in-geofence.cjs +1 -0
  148. package/dist/actions/get-users-in-geofence.cjs.map +1 -1
  149. package/dist/actions/get-users-in-geofence.d.cts +3 -18
  150. package/dist/actions/get-users-in-geofence.d.cts.map +1 -1
  151. package/dist/actions/get-users-in-geofence.d.mts +3 -18
  152. package/dist/actions/get-users-in-geofence.d.mts.map +1 -1
  153. package/dist/actions/get-users-in-geofence.mjs +1 -0
  154. package/dist/actions/get-users-in-geofence.mjs.map +1 -1
  155. package/dist/actions/ip-geocode.cjs +1 -0
  156. package/dist/actions/ip-geocode.cjs.map +1 -1
  157. package/dist/actions/ip-geocode.d.cts +3 -15
  158. package/dist/actions/ip-geocode.d.cts.map +1 -1
  159. package/dist/actions/ip-geocode.d.mts +3 -15
  160. package/dist/actions/ip-geocode.d.mts.map +1 -1
  161. package/dist/actions/ip-geocode.mjs +1 -0
  162. package/dist/actions/ip-geocode.mjs.map +1 -1
  163. package/dist/actions/list-events.cjs +1 -0
  164. package/dist/actions/list-events.cjs.map +1 -1
  165. package/dist/actions/list-events.d.cts +3 -22
  166. package/dist/actions/list-events.d.cts.map +1 -1
  167. package/dist/actions/list-events.d.mts +3 -22
  168. package/dist/actions/list-events.d.mts.map +1 -1
  169. package/dist/actions/list-events.mjs +1 -0
  170. package/dist/actions/list-events.mjs.map +1 -1
  171. package/dist/actions/list-geofences.cjs +1 -0
  172. package/dist/actions/list-geofences.cjs.map +1 -1
  173. package/dist/actions/list-geofences.d.cts +3 -23
  174. package/dist/actions/list-geofences.d.cts.map +1 -1
  175. package/dist/actions/list-geofences.d.mts +3 -23
  176. package/dist/actions/list-geofences.d.mts.map +1 -1
  177. package/dist/actions/list-geofences.mjs +1 -0
  178. package/dist/actions/list-geofences.mjs.map +1 -1
  179. package/dist/actions/list-trips.cjs +1 -0
  180. package/dist/actions/list-trips.cjs.map +1 -1
  181. package/dist/actions/list-trips.d.cts +3 -20
  182. package/dist/actions/list-trips.d.cts.map +1 -1
  183. package/dist/actions/list-trips.d.mts +3 -20
  184. package/dist/actions/list-trips.d.mts.map +1 -1
  185. package/dist/actions/list-trips.mjs +1 -0
  186. package/dist/actions/list-trips.mjs.map +1 -1
  187. package/dist/actions/list-users.cjs +1 -0
  188. package/dist/actions/list-users.cjs.map +1 -1
  189. package/dist/actions/list-users.d.cts +3 -21
  190. package/dist/actions/list-users.d.cts.map +1 -1
  191. package/dist/actions/list-users.d.mts +3 -21
  192. package/dist/actions/list-users.d.mts.map +1 -1
  193. package/dist/actions/list-users.mjs +1 -0
  194. package/dist/actions/list-users.mjs.map +1 -1
  195. package/dist/actions/reverse-geocode.cjs +1 -0
  196. package/dist/actions/reverse-geocode.cjs.map +1 -1
  197. package/dist/actions/reverse-geocode.d.cts +3 -18
  198. package/dist/actions/reverse-geocode.d.cts.map +1 -1
  199. package/dist/actions/reverse-geocode.d.mts +3 -18
  200. package/dist/actions/reverse-geocode.d.mts.map +1 -1
  201. package/dist/actions/reverse-geocode.mjs +1 -0
  202. package/dist/actions/reverse-geocode.mjs.map +1 -1
  203. package/dist/actions/route-distance.cjs +1 -0
  204. package/dist/actions/route-distance.cjs.map +1 -1
  205. package/dist/actions/route-distance.d.cts +5 -22
  206. package/dist/actions/route-distance.d.cts.map +1 -1
  207. package/dist/actions/route-distance.d.mts +5 -22
  208. package/dist/actions/route-distance.d.mts.map +1 -1
  209. package/dist/actions/route-distance.mjs +1 -0
  210. package/dist/actions/route-distance.mjs.map +1 -1
  211. package/dist/actions/search-geofences-near-location.cjs +1 -0
  212. package/dist/actions/search-geofences-near-location.cjs.map +1 -1
  213. package/dist/actions/search-geofences-near-location.d.cts +3 -19
  214. package/dist/actions/search-geofences-near-location.d.cts.map +1 -1
  215. package/dist/actions/search-geofences-near-location.d.mts +3 -19
  216. package/dist/actions/search-geofences-near-location.d.mts.map +1 -1
  217. package/dist/actions/search-geofences-near-location.mjs +1 -0
  218. package/dist/actions/search-geofences-near-location.mjs.map +1 -1
  219. package/dist/actions/search-places-near-location.cjs +1 -0
  220. package/dist/actions/search-places-near-location.cjs.map +1 -1
  221. package/dist/actions/search-places-near-location.d.cts +3 -23
  222. package/dist/actions/search-places-near-location.d.cts.map +1 -1
  223. package/dist/actions/search-places-near-location.d.mts +3 -23
  224. package/dist/actions/search-places-near-location.d.mts.map +1 -1
  225. package/dist/actions/search-places-near-location.mjs +1 -0
  226. package/dist/actions/search-places-near-location.mjs.map +1 -1
  227. package/dist/actions/search-users-near-location.cjs +1 -0
  228. package/dist/actions/search-users-near-location.cjs.map +1 -1
  229. package/dist/actions/search-users-near-location.d.cts +3 -18
  230. package/dist/actions/search-users-near-location.d.cts.map +1 -1
  231. package/dist/actions/search-users-near-location.d.mts +3 -18
  232. package/dist/actions/search-users-near-location.d.mts.map +1 -1
  233. package/dist/actions/search-users-near-location.mjs +1 -0
  234. package/dist/actions/search-users-near-location.mjs.map +1 -1
  235. package/dist/actions/track-location-update.cjs +1 -0
  236. package/dist/actions/track-location-update.cjs.map +1 -1
  237. package/dist/actions/track-location-update.d.cts +3 -31
  238. package/dist/actions/track-location-update.d.cts.map +1 -1
  239. package/dist/actions/track-location-update.d.mts +3 -31
  240. package/dist/actions/track-location-update.d.mts.map +1 -1
  241. package/dist/actions/track-location-update.mjs +1 -0
  242. package/dist/actions/track-location-update.mjs.map +1 -1
  243. package/dist/actions/update-places-settings.cjs +1 -0
  244. package/dist/actions/update-places-settings.cjs.map +1 -1
  245. package/dist/actions/update-places-settings.d.cts +3 -17
  246. package/dist/actions/update-places-settings.d.cts.map +1 -1
  247. package/dist/actions/update-places-settings.d.mts +3 -17
  248. package/dist/actions/update-places-settings.d.mts.map +1 -1
  249. package/dist/actions/update-places-settings.mjs +1 -0
  250. package/dist/actions/update-places-settings.mjs.map +1 -1
  251. package/dist/actions/update-trip-by-id.cjs +1 -0
  252. package/dist/actions/update-trip-by-id.cjs.map +1 -1
  253. package/dist/actions/update-trip-by-id.d.cts +3 -18
  254. package/dist/actions/update-trip-by-id.d.cts.map +1 -1
  255. package/dist/actions/update-trip-by-id.d.mts +3 -18
  256. package/dist/actions/update-trip-by-id.d.mts.map +1 -1
  257. package/dist/actions/update-trip-by-id.mjs +1 -0
  258. package/dist/actions/update-trip-by-id.mjs.map +1 -1
  259. package/dist/actions/update-trip.cjs +1 -0
  260. package/dist/actions/update-trip.cjs.map +1 -1
  261. package/dist/actions/update-trip.d.cts +3 -32
  262. package/dist/actions/update-trip.d.cts.map +1 -1
  263. package/dist/actions/update-trip.d.mts +3 -32
  264. package/dist/actions/update-trip.d.mts.map +1 -1
  265. package/dist/actions/update-trip.mjs +1 -0
  266. package/dist/actions/update-trip.mjs.map +1 -1
  267. package/dist/actions/upsert-beacon-by-id.cjs +1 -0
  268. package/dist/actions/upsert-beacon-by-id.cjs.map +1 -1
  269. package/dist/actions/upsert-beacon-by-id.d.cts +3 -24
  270. package/dist/actions/upsert-beacon-by-id.d.cts.map +1 -1
  271. package/dist/actions/upsert-beacon-by-id.d.mts +3 -24
  272. package/dist/actions/upsert-beacon-by-id.d.mts.map +1 -1
  273. package/dist/actions/upsert-beacon-by-id.mjs +1 -0
  274. package/dist/actions/upsert-beacon-by-id.mjs.map +1 -1
  275. package/dist/actions/upsert-beacon-by-tag.cjs +1 -0
  276. package/dist/actions/upsert-beacon-by-tag.cjs.map +1 -1
  277. package/dist/actions/upsert-beacon-by-tag.d.cts +3 -26
  278. package/dist/actions/upsert-beacon-by-tag.d.cts.map +1 -1
  279. package/dist/actions/upsert-beacon-by-tag.d.mts +3 -26
  280. package/dist/actions/upsert-beacon-by-tag.d.mts.map +1 -1
  281. package/dist/actions/upsert-beacon-by-tag.mjs +1 -0
  282. package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -1
  283. package/dist/actions/upsert-geofence-by-id.cjs +1 -0
  284. package/dist/actions/upsert-geofence-by-id.cjs.map +1 -1
  285. package/dist/actions/upsert-geofence-by-id.d.cts +3 -23
  286. package/dist/actions/upsert-geofence-by-id.d.cts.map +1 -1
  287. package/dist/actions/upsert-geofence-by-id.d.mts +3 -23
  288. package/dist/actions/upsert-geofence-by-id.d.mts.map +1 -1
  289. package/dist/actions/upsert-geofence-by-id.mjs +1 -0
  290. package/dist/actions/upsert-geofence-by-id.mjs.map +1 -1
  291. package/dist/actions/upsert-geofence.cjs +1 -0
  292. package/dist/actions/upsert-geofence.cjs.map +1 -1
  293. package/dist/actions/upsert-geofence.d.cts +3 -22
  294. package/dist/actions/upsert-geofence.d.cts.map +1 -1
  295. package/dist/actions/upsert-geofence.d.mts +3 -22
  296. package/dist/actions/upsert-geofence.d.mts.map +1 -1
  297. package/dist/actions/upsert-geofence.mjs +1 -0
  298. package/dist/actions/upsert-geofence.mjs.map +1 -1
  299. package/dist/app.cjs +2 -2
  300. package/dist/app.cjs.map +1 -1
  301. package/dist/app.d.cts +4 -6
  302. package/dist/app.d.cts.map +1 -1
  303. package/dist/app.d.mts +4 -6
  304. package/dist/app.d.mts.map +1 -1
  305. package/dist/app.mjs +0 -1
  306. package/dist/app.mjs.map +1 -1
  307. package/dist/index.d.cts +1 -1
  308. package/dist/index.d.mts +1 -1
  309. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/search-places-near-location.ts
@@ -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.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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CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAU,iDAAiD,SAAS;CACpE,UAAU,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,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"}
1
+ {"version":3,"file":"search-places-near-location.mjs","names":[],"sources":["../../src/actions/search-places-near-location.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\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: AppAction<\n typeof RadarSearchPlacesNearLocationInput,\n typeof RadarSearchPlacesNearLocationOutput,\n typeof radar.credential\n> = 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":";;;;AAMA,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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  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/search-users-near-location.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-users-near-location.cjs","names":["z","action"],"sources":["../../src/actions/search-users-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchUsersNearLocationInput = z.object({\n limit: z.number().int().describe(\"Maximum number of users to return (default: 100, max: 500).\").optional(),\n radius: z.number().describe(\"Maximum distance in meters to search (default: 1000, range: 1-10000).\").optional(),\n latitude: z.number().describe(\"Latitude of the location in decimal degrees.\"),\n longitude: z.number().describe(\"Longitude of the location in decimal degrees.\"),\n}).describe(\"Request model for SEARCH_USERS_NEAR_LOCATION.\");\nconst RadarSearchUsersNearLocation_MetaSchema = z.object({\n code: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable().optional(),\n}).passthrough();\nconst RadarSearchUsersNearLocation_UserLocationSchema = z.object({\n type: z.string().describe(\"GeoJSON type; always 'Point'.\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude].\"),\n}).passthrough().describe(\"GeoJSON location of a user.\");\nconst RadarSearchUsersNearLocation_UserSchema = z.object({\n _id: z.string().describe(\"Internal Radar user ID.\").nullable(),\n userId: z.string().describe(\"External user ID, if provided.\").nullable().optional(),\n deviceId: z.string().describe(\"Radar device identifier.\").nullable(),\n location: RadarSearchUsersNearLocation_UserLocationSchema.nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable(),\n}).passthrough().describe(\"User object returned by Radar search.\");\nexport const RadarSearchUsersNearLocationOutput = z.object({\n meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),\n users: z.array(RadarSearchUsersNearLocation_UserSchema).describe(\"List of users found within the specified radius.\"),\n}).passthrough().describe(\"Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.\");\n\nexport const radarSearchUsersNearLocation = action(\"RADAR_SEARCH_USERS_NEAR_LOCATION\", {\n slug: \"radar-search-users-near-location\",\n name: \"Search Users Near Location\",\n description: \"Tool to search for users near a location. Use after obtaining coordinates when you need to retrieve users within a given radius.\",\n input: RadarSearchUsersNearLocationInput,\n output: RadarSearchUsersNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAChF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,UAAU,gDAAgD,SAAS;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAM,wCAAwC,SAAS;CACvD,OAAOA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,kDAAkD;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAAqF;AAE/G,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-users-near-location.cjs","names":["z","action"],"sources":["../../src/actions/search-users-near-location.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarSearchUsersNearLocationInput = z.object({\n limit: z.number().int().describe(\"Maximum number of users to return (default: 100, max: 500).\").optional(),\n radius: z.number().describe(\"Maximum distance in meters to search (default: 1000, range: 1-10000).\").optional(),\n latitude: z.number().describe(\"Latitude of the location in decimal degrees.\"),\n longitude: z.number().describe(\"Longitude of the location in decimal degrees.\"),\n}).describe(\"Request model for SEARCH_USERS_NEAR_LOCATION.\");\nconst RadarSearchUsersNearLocation_MetaSchema = z.object({\n code: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable().optional(),\n}).passthrough();\nconst RadarSearchUsersNearLocation_UserLocationSchema = z.object({\n type: z.string().describe(\"GeoJSON type; always 'Point'.\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude].\"),\n}).passthrough().describe(\"GeoJSON location of a user.\");\nconst RadarSearchUsersNearLocation_UserSchema = z.object({\n _id: z.string().describe(\"Internal Radar user ID.\").nullable(),\n userId: z.string().describe(\"External user ID, if provided.\").nullable().optional(),\n deviceId: z.string().describe(\"Radar device identifier.\").nullable(),\n location: RadarSearchUsersNearLocation_UserLocationSchema.nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable(),\n}).passthrough().describe(\"User object returned by Radar search.\");\nexport const RadarSearchUsersNearLocationOutput = z.object({\n meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),\n users: z.array(RadarSearchUsersNearLocation_UserSchema).describe(\"List of users found within the specified radius.\"),\n}).passthrough().describe(\"Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.\");\n\nexport const radarSearchUsersNearLocation: AppAction<\n typeof RadarSearchUsersNearLocationInput,\n typeof RadarSearchUsersNearLocationOutput,\n typeof radar.credential\n> = action(\"RADAR_SEARCH_USERS_NEAR_LOCATION\", {\n slug: \"radar-search-users-near-location\",\n name: \"Search Users Near Location\",\n description: \"Tool to search for users near a location. Use after obtaining coordinates when you need to retrieve users within a given radius.\",\n input: RadarSearchUsersNearLocationInput,\n output: RadarSearchUsersNearLocationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAChF,CAAC,CAAC,CAAC,SAAS,+CAA+C;A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CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { radar } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search-users-near-location.d.ts
@@ -23,24 +25,7 @@ declare const RadarSearchUsersNearLocationOutput: z.ZodObject<{
23
25
  updatedAt: z.ZodNullable<z.ZodString>;
24
26
  }, z.core.$loose>>;
25
27
  }, z.core.$loose>;
26
- declare const radarSearchUsersNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- latitude: number;
28
- longitude: number;
29
- limit?: number | undefined;
30
- radius?: number | undefined;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>;
28
+ declare const radarSearchUsersNearLocation: AppAction<typeof RadarSearchUsersNearLocationInput, typeof RadarSearchUsersNearLocationOutput, typeof radar.credential>;
44
29
  //#endregion
45
30
  export { radarSearchUsersNearLocation };
46
31
  //# sourceMappingURL=search-users-near-location.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-users-near-location.d.cts","names":[],"sources":["../../src/actions/search-users-near-location.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"search-users-near-location.d.cts","names":[],"sources":["../../src/actions/search-users-near-location.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { radar } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/search-users-near-location.d.ts
@@ -23,24 +25,7 @@ declare const RadarSearchUsersNearLocationOutput: z.ZodObject<{
23
25
  updatedAt: z.ZodNullable<z.ZodString>;
24
26
  }, z.core.$loose>>;
25
27
  }, z.core.$loose>;
26
- declare const radarSearchUsersNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- latitude: number;
28
- longitude: number;
29
- limit?: number | undefined;
30
- radius?: number | undefined;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>;
28
+ declare const radarSearchUsersNearLocation: AppAction<typeof RadarSearchUsersNearLocationInput, typeof RadarSearchUsersNearLocationOutput, typeof radar.credential>;
44
29
  //#endregion
45
30
  export { radarSearchUsersNearLocation };
46
31
  //# sourceMappingURL=search-users-near-location.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-users-near-location.d.mts","names":[],"sources":["../../src/actions/search-users-near-location.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"search-users-near-location.d.mts","names":[],"sources":["../../src/actions/search-users-near-location.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;cAqBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAKlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/search-users-near-location.ts
@@ -1 +1 @@
1
- {"version":3,"file":"search-users-near-location.mjs","names":[],"sources":["../../src/actions/search-users-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchUsersNearLocationInput = z.object({\n limit: z.number().int().describe(\"Maximum number of users to return (default: 100, max: 500).\").optional(),\n radius: z.number().describe(\"Maximum distance in meters to search (default: 1000, range: 1-10000).\").optional(),\n latitude: z.number().describe(\"Latitude of the location in decimal degrees.\"),\n longitude: z.number().describe(\"Longitude of the location in decimal degrees.\"),\n}).describe(\"Request model for SEARCH_USERS_NEAR_LOCATION.\");\nconst RadarSearchUsersNearLocation_MetaSchema = z.object({\n code: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable().optional(),\n}).passthrough();\nconst RadarSearchUsersNearLocation_UserLocationSchema = z.object({\n type: z.string().describe(\"GeoJSON type; always 'Point'.\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude].\"),\n}).passthrough().describe(\"GeoJSON location of a user.\");\nconst RadarSearchUsersNearLocation_UserSchema = z.object({\n _id: z.string().describe(\"Internal Radar user ID.\").nullable(),\n userId: z.string().describe(\"External user ID, if provided.\").nullable().optional(),\n deviceId: z.string().describe(\"Radar device identifier.\").nullable(),\n location: RadarSearchUsersNearLocation_UserLocationSchema.nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable(),\n}).passthrough().describe(\"User object returned by Radar search.\");\nexport const RadarSearchUsersNearLocationOutput = z.object({\n meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),\n users: z.array(RadarSearchUsersNearLocation_UserSchema).describe(\"List of users found within the specified radius.\"),\n}).passthrough().describe(\"Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.\");\n\nexport const radarSearchUsersNearLocation = action(\"RADAR_SEARCH_USERS_NEAR_LOCATION\", {\n slug: \"radar-search-users-near-location\",\n name: \"Search Users Near Location\",\n description: \"Tool to search for users near a location. Use after obtaining coordinates when you need to retrieve users within a given radius.\",\n input: RadarSearchUsersNearLocationInput,\n output: RadarSearchUsersNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACzG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAChF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC7E,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAM,0CAA0C,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,UAAU,gDAAgD,SAAS;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVgD,EAAE,OAAO;EACzD,MAAM,wCAAwC,SAAS;EACvD,OAAO,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,kDAAkD;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"search-users-near-location.mjs","names":[],"sources":["../../src/actions/search-users-near-location.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarSearchUsersNearLocationInput = z.object({\n limit: z.number().int().describe(\"Maximum number of users to return (default: 100, max: 500).\").optional(),\n radius: z.number().describe(\"Maximum distance in meters to search (default: 1000, range: 1-10000).\").optional(),\n latitude: z.number().describe(\"Latitude of the location in decimal degrees.\"),\n longitude: z.number().describe(\"Longitude of the location in decimal degrees.\"),\n}).describe(\"Request model for SEARCH_USERS_NEAR_LOCATION.\");\nconst RadarSearchUsersNearLocation_MetaSchema = z.object({\n code: z.number().int().describe(\"Status code returned by the API.\").nullable(),\n success: z.boolean().describe(\"True if the request was successful.\").nullable().optional(),\n}).passthrough();\nconst RadarSearchUsersNearLocation_UserLocationSchema = z.object({\n type: z.string().describe(\"GeoJSON type; always 'Point'.\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude].\"),\n}).passthrough().describe(\"GeoJSON location of a user.\");\nconst RadarSearchUsersNearLocation_UserSchema = z.object({\n _id: z.string().describe(\"Internal Radar user ID.\").nullable(),\n userId: z.string().describe(\"External user ID, if provided.\").nullable().optional(),\n deviceId: z.string().describe(\"Radar device identifier.\").nullable(),\n location: RadarSearchUsersNearLocation_UserLocationSchema.nullable(),\n updatedAt: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable(),\n}).passthrough().describe(\"User object returned by Radar search.\");\nexport const RadarSearchUsersNearLocationOutput = z.object({\n meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),\n users: z.array(RadarSearchUsersNearLocation_UserSchema).describe(\"List of users found within the specified radius.\"),\n}).passthrough().describe(\"Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.\");\n\nexport const radarSearchUsersNearLocation: AppAction<\n typeof RadarSearchUsersNearLocationInput,\n typeof RadarSearchUsersNearLocationOutput,\n typeof radar.credential\n> = action(\"RADAR_SEARCH_USERS_NEAR_LOCATION\", {\n slug: \"radar-search-users-near-location\",\n name: \"Search Users Near Location\",\n description: \"Tool to search for users near a location. Use after obtaining coordinates when you need to retrieve users within a given radius.\",\n input: RadarSearchUsersNearLocationInput,\n output: RadarSearchUsersNearLocationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoC,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SA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AO,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,kDAAkD;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/track-location-update.ts
@@ -1 +1 @@
1
- {"version":3,"file":"track-location-update.cjs","names":["z","action"],"sources":["../../src/actions/track-location-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarTrackLocationUpdateInput = z.object({\n userId: z.string().describe(\"Stable unique identifier for logged-in users. Combined with deviceId for user identification.\").optional(),\n stopped: z.boolean().describe(\"Whether the user is stopped (not moving)\").optional(),\n accuracy: z.number().describe(\"Accuracy of the location in meters. Must be greater than 0.\"),\n altitude: z.number().describe(\"Altitude of the device in meters\").optional(),\n deviceId: z.string().describe(\"Unique identifier for the user's device. Required for user identification.\"),\n deviceOS: z.string().describe(\"Operating system version of the device\").optional(),\n latitude: z.number().describe(\"Latitude of the location in degrees\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata to associate with this track event (up to 32 keys)\").optional(),\n replayed: z.boolean().describe(\"Whether this location update is historical (replayed)\").optional(),\n longitude: z.number().describe(\"Longitude of the location in degrees\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp for historical track events\").optional(),\n deviceMake: z.string().describe(\"Manufacturer of the device\").optional(),\n deviceType: z.string().describe(\"Type of device: iOS, Android, or Web\").optional(),\n foreground: z.boolean().describe(\"Whether the client is in the foreground\").optional(),\n description: z.string().describe(\"Text description of the user to display on the dashboard\").optional(),\n deviceModel: z.string().describe(\"Model of the device\").optional(),\n verticalAccuracy: z.number().describe(\"Vertical accuracy of the altitude in meters\").optional(),\n}).describe(\"Request model for tracking a user's location update.\\nBased on Radar API: https://docs.radar.com/api\");\nexport const RadarTrackLocationUpdateOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata with HTTP status code\"),\n user: z.record(z.string(), z.unknown()).describe(\"The user object with location, geofences, places, beacons, fraud detection, and segments\").nullable().optional(),\n events: z.array(z.record(z.string(), z.unknown())).describe(\"Array of events triggered by this track (geofence entries/exits, place entries)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the tracked user, events, and metadata.\\nBased on Radar API: https://docs.radar.com/api\");\n\nexport const radarTrackLocationUpdate = action(\"RADAR_TRACK_LOCATION_UPDATE\", {\n slug: \"radar-track-location-update\",\n name: \"Track Location Update\",\n description: \"Tool to track a user's location update. Use when sending a location update for a user, creating or updating user and event data.\",\n input: RadarTrackLocationUpdateInput,\n output: RadarTrackLocationUpdateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACvI,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,C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O;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"track-location-update.cjs","names":["z","action"],"sources":["../../src/actions/track-location-update.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarTrackLocationUpdateInput = z.object({\n userId: z.string().describe(\"Stable unique identifier for logged-in users. Combined with deviceId for user identification.\").optional(),\n stopped: z.boolean().describe(\"Whether the user is stopped (not moving)\").optional(),\n accuracy: z.number().describe(\"Accuracy of the location in meters. Must be greater than 0.\"),\n altitude: z.number().describe(\"Altitude of the device in meters\").optional(),\n deviceId: z.string().describe(\"Unique identifier for the user's device. Required for user identification.\"),\n deviceOS: z.string().describe(\"Operating system version of the device\").optional(),\n latitude: z.number().describe(\"Latitude of the location in degrees\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata to associate with this track event (up to 32 keys)\").optional(),\n replayed: z.boolean().describe(\"Whether this location update is historical (replayed)\").optional(),\n longitude: z.number().describe(\"Longitude of the location in degrees\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp for historical track events\").optional(),\n deviceMake: z.string().describe(\"Manufacturer of the device\").optional(),\n deviceType: z.string().describe(\"Type of device: iOS, Android, or Web\").optional(),\n foreground: z.boolean().describe(\"Whether the client is in the foreground\").optional(),\n description: z.string().describe(\"Text description of the user to display on the dashboard\").optional(),\n deviceModel: z.string().describe(\"Model of the device\").optional(),\n verticalAccuracy: z.number().describe(\"Vertical accuracy of the altitude in meters\").optional(),\n}).describe(\"Request model for tracking a user's location update.\\nBased on Radar API: https://docs.radar.com/api\");\nexport const RadarTrackLocationUpdateOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata with HTTP status code\"),\n user: z.record(z.string(), z.unknown()).describe(\"The user object with location, geofences, places, beacons, fraud detection, and segments\").nullable().optional(),\n events: z.array(z.record(z.string(), z.unknown())).describe(\"Array of events triggered by this track (geofence entries/exits, place entries)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the tracked user, events, and metadata.\\nBased on Radar API: https://docs.radar.com/api\");\n\nexport const radarTrackLocationUpdate: AppAction<\n typeof RadarTrackLocationUpdateInput,\n typeof RadarTrackLocationUpdateOutput,\n typeof radar.credential\n> = action(\"RADAR_TRACK_LOCATION_UPDATE\", {\n slug: \"radar-track-location-update\",\n name: \"Track Location Update\",\n description: \"Tool to track a user's location update. Use when sending a location update for a user, creating or updating user and event data.\",\n input: RadarTrackLocationUpdateInput,\n output: RadarTrackLocationUpdateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACvI,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAA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"@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/track-location-update.d.ts
@@ -25,37 +27,7 @@ declare const RadarTrackLocationUpdateOutput: z.ZodObject<{
25
27
  user: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
28
  events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
27
29
  }, z.core.$loose>;
28
- declare const radarTrackLocationUpdate: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- accuracy: number;
30
- deviceId: string;
31
- latitude: number;
32
- longitude: number;
33
- userId?: string | undefined;
34
- stopped?: boolean | undefined;
35
- altitude?: number | undefined;
36
- deviceOS?: string | undefined;
37
- metadata?: Record<string, unknown> | undefined;
38
- replayed?: boolean | undefined;
39
- updatedAt?: string | undefined;
40
- deviceMake?: string | undefined;
41
- deviceType?: string | undefined;
42
- foreground?: boolean | undefined;
43
- description?: string | undefined;
44
- deviceModel?: string | undefined;
45
- verticalAccuracy?: number | undefined;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
47
- connectionId: z.ZodString;
48
- entityId: z.ZodString;
49
- instanceId: z.ZodString;
50
- }, z.core.$strip>, z.ZodObject<{
51
- generic_api_key: z.ZodString;
52
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
53
- connectionId: z.ZodString;
54
- entityId: z.ZodString;
55
- instanceId: z.ZodString;
56
- }, z.core.$strip>, z.ZodObject<{
57
- generic_api_key: z.ZodString;
58
- }, z.core.$strip>>]>;
30
+ declare const radarTrackLocationUpdate: AppAction<typeof RadarTrackLocationUpdateInput, typeof RadarTrackLocationUpdateOutput, typeof radar.credential>;
59
31
  //#endregion
60
32
  export { radarTrackLocationUpdate };
61
33
  //# sourceMappingURL=track-location-update.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"track-location-update.d.cts","names":[],"sources":["../../src/actions/track-location-update.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"track-location-update.d.cts","names":[],"sources":["../../src/actions/track-location-update.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { radar } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/track-location-update.d.ts
@@ -25,37 +27,7 @@ declare const RadarTrackLocationUpdateOutput: z.ZodObject<{
25
27
  user: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
28
  events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
27
29
  }, z.core.$loose>;
28
- declare const radarTrackLocationUpdate: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- accuracy: number;
30
- deviceId: string;
31
- latitude: number;
32
- longitude: number;
33
- userId?: string | undefined;
34
- stopped?: boolean | undefined;
35
- altitude?: number | undefined;
36
- deviceOS?: string | undefined;
37
- metadata?: Record<string, unknown> | undefined;
38
- replayed?: boolean | undefined;
39
- updatedAt?: string | undefined;
40
- deviceMake?: string | undefined;
41
- deviceType?: string | undefined;
42
- foreground?: boolean | undefined;
43
- description?: string | undefined;
44
- deviceModel?: string | undefined;
45
- verticalAccuracy?: number | undefined;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
47
- connectionId: z.ZodString;
48
- entityId: z.ZodString;
49
- instanceId: z.ZodString;
50
- }, z.core.$strip>, z.ZodObject<{
51
- generic_api_key: z.ZodString;
52
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
53
- connectionId: z.ZodString;
54
- entityId: z.ZodString;
55
- instanceId: z.ZodString;
56
- }, z.core.$strip>, z.ZodObject<{
57
- generic_api_key: z.ZodString;
58
- }, z.core.$strip>>]>;
30
+ declare const radarTrackLocationUpdate: AppAction<typeof RadarTrackLocationUpdateInput, typeof RadarTrackLocationUpdateOutput, typeof radar.credential>;
59
31
  //#endregion
60
32
  export { radarTrackLocationUpdate };
61
33
  //# sourceMappingURL=track-location-update.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"track-location-update.d.mts","names":[],"sources":["../../src/actions/track-location-update.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"track-location-update.d.mts","names":[],"sources":["../../src/actions/track-location-update.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const radarTrackLocationUpdate = action("RADAR_TRACK_LOCATION_UPDATE", {
@@ -1 +1 @@
1
- {"version":3,"file":"track-location-update.mjs","names":[],"sources":["../../src/actions/track-location-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarTrackLocationUpdateInput = z.object({\n userId: z.string().describe(\"Stable unique identifier for logged-in users. Combined with deviceId for user identification.\").optional(),\n stopped: z.boolean().describe(\"Whether the user is stopped (not moving)\").optional(),\n accuracy: z.number().describe(\"Accuracy of the location in meters. Must be greater than 0.\"),\n altitude: z.number().describe(\"Altitude of the device in meters\").optional(),\n deviceId: z.string().describe(\"Unique identifier for the user's device. Required for user identification.\"),\n deviceOS: z.string().describe(\"Operating system version of the device\").optional(),\n latitude: z.number().describe(\"Latitude of the location in degrees\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata to associate with this track event (up to 32 keys)\").optional(),\n replayed: z.boolean().describe(\"Whether this location update is historical (replayed)\").optional(),\n longitude: z.number().describe(\"Longitude of the location in degrees\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp for historical track events\").optional(),\n deviceMake: z.string().describe(\"Manufacturer of the device\").optional(),\n deviceType: z.string().describe(\"Type of device: iOS, Android, or Web\").optional(),\n foreground: z.boolean().describe(\"Whether the client is in the foreground\").optional(),\n description: z.string().describe(\"Text description of the user to display on the dashboard\").optional(),\n deviceModel: z.string().describe(\"Model of the device\").optional(),\n verticalAccuracy: z.number().describe(\"Vertical accuracy of the altitude in meters\").optional(),\n}).describe(\"Request model for tracking a user's location update.\\nBased on Radar API: https://docs.radar.com/api\");\nexport const RadarTrackLocationUpdateOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata with HTTP status code\"),\n user: z.record(z.string(), z.unknown()).describe(\"The user object with location, geofences, places, beacons, fraud detection, and segments\").nullable().optional(),\n events: z.array(z.record(z.string(), z.unknown())).describe(\"Array of events triggered by this track (geofence entries/exits, place entries)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the tracked user, events, and metadata.\\nBased on Radar API: https://docs.radar.com/api\");\n\nexport const radarTrackLocationUpdate = action(\"RADAR_TRACK_LOCATION_UPDATE\", {\n slug: \"radar-track-location-update\",\n name: \"Track Location Update\",\n description: \"Tool to track a user's location update. Use when sending a location update for a user, creating or updating user and event data.\",\n input: RadarTrackLocationUpdateInput,\n output: RadarTrackLocationUpdateOutput,\n});\n"],"mappings":";;AA6BA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7B2C,EAAE,OAAO;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACtI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;EAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACnE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACvI,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACtG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EACjE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,sGAWH;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC;EAC1F,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjK,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mHAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"track-location-update.mjs","names":[],"sources":["../../src/actions/track-location-update.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarTrackLocationUpdateInput = z.object({\n userId: z.string().describe(\"Stable unique identifier for logged-in users. Combined with deviceId for user identification.\").optional(),\n stopped: z.boolean().describe(\"Whether the user is stopped (not moving)\").optional(),\n accuracy: z.number().describe(\"Accuracy of the location in meters. Must be greater than 0.\"),\n altitude: z.number().describe(\"Altitude of the device in meters\").optional(),\n deviceId: z.string().describe(\"Unique identifier for the user's device. Required for user identification.\"),\n deviceOS: z.string().describe(\"Operating system version of the device\").optional(),\n latitude: z.number().describe(\"Latitude of the location in degrees\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata to associate with this track event (up to 32 keys)\").optional(),\n replayed: z.boolean().describe(\"Whether this location update is historical (replayed)\").optional(),\n longitude: z.number().describe(\"Longitude of the location in degrees\"),\n updatedAt: z.string().describe(\"ISO 8601 timestamp for historical track events\").optional(),\n deviceMake: z.string().describe(\"Manufacturer of the device\").optional(),\n deviceType: z.string().describe(\"Type of device: iOS, Android, or Web\").optional(),\n foreground: z.boolean().describe(\"Whether the client is in the foreground\").optional(),\n description: z.string().describe(\"Text description of the user to display on the dashboard\").optional(),\n deviceModel: z.string().describe(\"Model of the device\").optional(),\n verticalAccuracy: z.number().describe(\"Vertical accuracy of the altitude in meters\").optional(),\n}).describe(\"Request model for tracking a user's location update.\\nBased on Radar API: https://docs.radar.com/api\");\nexport const RadarTrackLocationUpdateOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata with HTTP status code\"),\n user: z.record(z.string(), z.unknown()).describe(\"The user object with location, geofences, places, beacons, fraud detection, and segments\").nullable().optional(),\n events: z.array(z.record(z.string(), z.unknown())).describe(\"Array of events triggered by this track (geofence entries/exits, place entries)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the tracked user, events, and metadata.\\nBased on Radar API: https://docs.radar.com/api\");\n\nexport const radarTrackLocationUpdate: AppAction<\n typeof RadarTrackLocationUpdateInput,\n typeof RadarTrackLocationUpdateOutput,\n typeof radar.credential\n> = action(\"RADAR_TRACK_LOCATION_UPDATE\", {\n slug: \"radar-track-location-update\",\n name: \"Track Location Update\",\n description: \"Tool to track a user's location update. Use when sending a location update for a user, creating or updating user and event data.\",\n input: RadarTrackLocationUpdateInput,\n output: RadarTrackLocationUpdateOutput,\n});\n"],"mappings":";;;AA+BA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjC2C,EAAE,OAAO;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACtI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EAC3F,UAAU,E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MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mHAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-places-settings.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-places-settings.cjs","names":["z","action"],"sources":["../../src/actions/update-places-settings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpdatePlacesSettingsInput = z.object({\n chainMetadata: z.object({\n enabled: z.boolean().describe(\"Whether chain metadata detection is enabled for Places\"),\n}).describe(\"Chain metadata preferences for Places.\").optional(),\n}).describe(\"Request model for updating Places settings including chain metadata preferences.\");\nconst RadarUpdatePlacesSettings_MetaInfoSchema = z.object({\n code: z.number().int().describe(\"HTTP response code\").nullable(),\n}).passthrough().describe(\"Meta information about the API response.\");\nconst RadarUpdatePlacesSettings_PlacesSettingsSchema = z.object({\n country: z.array(z.string()).describe(\"List of supported country codes\").nullable().optional(),\n chainIds: z.array(z.string()).describe(\"Allowed chain IDs\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about Places settings\").nullable().optional(),\n chainDetection: z.boolean().describe(\"Flag indicating whether chain detection is enabled\").nullable().optional(),\n externalIdRequired: z.boolean().describe(\"Flag indicating whether an external ID is required for places\").nullable().optional(),\n chainMinimumConfidence: z.number().int().describe(\"Minimum confidence for chain matching\").nullable().optional(),\n}).passthrough().describe(\"Settings related to Radar Places for the project.\");\nexport const RadarUpdatePlacesSettingsOutput = z.object({\n meta: RadarUpdatePlacesSettings_MetaInfoSchema.nullable(),\n places: RadarUpdatePlacesSettings_PlacesSettingsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for updating Places settings.\");\n\nexport const radarUpdatePlacesSettings = action(\"RADAR_UPDATE_PLACES_SETTINGS\", {\n slug: \"radar-update-places-settings\",\n name: \"Update Places Settings\",\n description: \"Tool to update Places settings for your Radar project including chain metadata preferences. Use when you need to configure chain detection or other Places settings.\",\n input: RadarUpdatePlacesSettingsInput,\n output: RadarUpdatePlacesSettingsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,eAAeA,IAAAA,EAAE,OAAO,EACxB,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,EACxF,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,2CAA2CA,IAAAA,EAAE,OAAO,EACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAM,yCAAyC,SAAS;CACxD,QAAQ,+CAA+C,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-places-settings.cjs","names":["z","action"],"sources":["../../src/actions/update-places-settings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarUpdatePlacesSettingsInput = z.object({\n chainMetadata: z.object({\n enabled: z.boolean().describe(\"Whether chain metadata detection is enabled for Places\"),\n}).describe(\"Chain metadata preferences for Places.\").optional(),\n}).describe(\"Request model for updating Places settings including chain metadata preferences.\");\nconst RadarUpdatePlacesSettings_MetaInfoSchema = z.object({\n code: z.number().int().describe(\"HTTP response code\").nullable(),\n}).passthrough().describe(\"Meta information about the API response.\");\nconst RadarUpdatePlacesSettings_PlacesSettingsSchema = z.object({\n country: z.array(z.string()).describe(\"List of supported country codes\").nullable().optional(),\n chainIds: z.array(z.string()).describe(\"Allowed chain IDs\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about Places settings\").nullable().optional(),\n chainDetection: z.boolean().describe(\"Flag indicating whether chain detection is enabled\").nullable().optional(),\n externalIdRequired: z.boolean().describe(\"Flag indicating whether an external ID is required for places\").nullable().optional(),\n chainMinimumConfidence: z.number().int().describe(\"Minimum confidence for chain matching\").nullable().optional(),\n}).passthrough().describe(\"Settings related to Radar Places for the project.\");\nexport const RadarUpdatePlacesSettingsOutput = z.object({\n meta: RadarUpdatePlacesSettings_MetaInfoSchema.nullable(),\n places: RadarUpdatePlacesSettings_PlacesSettingsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for updating Places settings.\");\n\nexport const radarUpdatePlacesSettings: AppAction<\n typeof RadarUpdatePlacesSettingsInput,\n typeof RadarUpdatePlacesSettingsOutput,\n typeof radar.credential\n> = action(\"RADAR_UPDATE_PLACES_SETTINGS\", {\n slug: \"radar-update-places-settings\",\n name: \"Update Places Settings\",\n description: \"Tool to update Places settings for your Radar project including chain metadata preferences. Use when you need to configure chain detection or other Places settings.\",\n input: RadarUpdatePlacesSettingsInput,\n output: RadarUpdatePlacesSettingsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,eAAeA,IAAAA,EAAE,OAAO,EACxB,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,EACxF,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,2CAA2CA,IAAAA,EAAE,OAAO,EACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAM,yCAAyC,SAAS;CACxD,QAAQ,+CAA+C,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { radar } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-places-settings.d.ts
@@ -19,23 +21,7 @@ declare const RadarUpdatePlacesSettingsOutput: z.ZodObject<{
19
21
  chainMinimumConfidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
22
  }, z.core.$loose>>>;
21
23
  }, z.core.$loose>;
22
- declare const radarUpdatePlacesSettings: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- chainMetadata?: {
24
- enabled: boolean;
25
- } | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- generic_api_key: z.ZodString;
32
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
24
+ declare const radarUpdatePlacesSettings: AppAction<typeof RadarUpdatePlacesSettingsInput, typeof RadarUpdatePlacesSettingsOutput, typeof radar.credential>;
39
25
  //#endregion
40
26
  export { radarUpdatePlacesSettings };
41
27
  //# sourceMappingURL=update-places-settings.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-places-settings.d.cts","names":[],"sources":["../../src/actions/update-places-settings.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAgB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"update-places-settings.d.cts","names":[],"sources":["../../src/actions/update-places-settings.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAgB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { radar } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-places-settings.d.ts
@@ -19,23 +21,7 @@ declare const RadarUpdatePlacesSettingsOutput: z.ZodObject<{
19
21
  chainMinimumConfidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
22
  }, z.core.$loose>>>;
21
23
  }, z.core.$loose>;
22
- declare const radarUpdatePlacesSettings: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- chainMetadata?: {
24
- enabled: boolean;
25
- } | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- generic_api_key: z.ZodString;
32
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
33
- connectionId: z.ZodString;
34
- entityId: z.ZodString;
35
- instanceId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- generic_api_key: z.ZodString;
38
- }, z.core.$strip>>]>;
24
+ declare const radarUpdatePlacesSettings: AppAction<typeof RadarUpdatePlacesSettingsInput, typeof RadarUpdatePlacesSettingsOutput, typeof radar.credential>;
39
25
  //#endregion
40
26
  export { radarUpdatePlacesSettings };
41
27
  //# sourceMappingURL=update-places-settings.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-places-settings.d.mts","names":[],"sources":["../../src/actions/update-places-settings.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAgB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"update-places-settings.d.mts","names":[],"sources":["../../src/actions/update-places-settings.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAgB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/update-places-settings.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-places-settings.mjs","names":[],"sources":["../../src/actions/update-places-settings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpdatePlacesSettingsInput = z.object({\n chainMetadata: z.object({\n enabled: z.boolean().describe(\"Whether chain metadata detection is enabled for Places\"),\n}).describe(\"Chain metadata preferences for Places.\").optional(),\n}).describe(\"Request model for updating Places settings including chain metadata preferences.\");\nconst RadarUpdatePlacesSettings_MetaInfoSchema = z.object({\n code: z.number().int().describe(\"HTTP response code\").nullable(),\n}).passthrough().describe(\"Meta information about the API response.\");\nconst RadarUpdatePlacesSettings_PlacesSettingsSchema = z.object({\n country: z.array(z.string()).describe(\"List of supported country codes\").nullable().optional(),\n chainIds: z.array(z.string()).describe(\"Allowed chain IDs\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about Places settings\").nullable().optional(),\n chainDetection: z.boolean().describe(\"Flag indicating whether chain detection is enabled\").nullable().optional(),\n externalIdRequired: z.boolean().describe(\"Flag indicating whether an external ID is required for places\").nullable().optional(),\n chainMinimumConfidence: z.number().int().describe(\"Minimum confidence for chain matching\").nullable().optional(),\n}).passthrough().describe(\"Settings related to Radar Places for the project.\");\nexport const RadarUpdatePlacesSettingsOutput = z.object({\n meta: RadarUpdatePlacesSettings_MetaInfoSchema.nullable(),\n places: RadarUpdatePlacesSettings_PlacesSettingsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for updating Places settings.\");\n\nexport const radarUpdatePlacesSettings = action(\"RADAR_UPDATE_PLACES_SETTINGS\", {\n slug: \"radar-update-places-settings\",\n name: \"Update Places Settings\",\n description: \"Tool to update Places settings for your Radar project including chain metadata preferences. Use when you need to configure chain detection or other Places settings.\",\n input: RadarUpdatePlacesSettingsInput,\n output: RadarUp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AAO;EACtD,MAAM,yCAAyC,SAAS;EACxD,QAAQ,+CAA+C,SAAS,CAAC,CAAC,SAAS;CAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-places-settings.mjs","names":[],"sources":["../../src/actions/update-places-settings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarUpdatePlacesSettingsInput = z.object({\n chainMetadata: z.object({\n enabled: z.boolean().describe(\"Whether chain metadata detection is enabled for Places\"),\n}).describe(\"Chain metadata preferences for Places.\").optional(),\n}).describe(\"Request model for updating Places settings including chain metadata preferences.\");\nconst RadarUpdatePlacesSettings_MetaInfoSchema = z.object({\n code: z.number().int().describe(\"HTTP response code\").nullable(),\n}).passthrough().describe(\"Meta information about the API response.\");\nconst RadarUpdatePlacesSettings_PlacesSettingsSchema = z.object({\n country: z.array(z.string()).describe(\"List of supported country codes\").nullable().optional(),\n chainIds: z.array(z.string()).describe(\"Allowed chain IDs\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about Places settings\").nullable().optional(),\n chainDetection: z.boolean().describe(\"Flag indicating whether chain detection is enabled\").nullable().optional(),\n externalIdRequired: z.boolean().describe(\"Flag indicating whether an external ID is required for places\").nullable().optional(),\n chainMinimumConfidence: z.number().int().describe(\"Minimum confidence for chain matching\").nullable().optional(),\n}).passthrough().describe(\"Settings related to Radar Places for the project.\");\nexport const RadarUpdatePlacesSettingsOutput = z.object({\n meta: RadarUpdatePlacesSettings_MetaInfoSchema.nullable(),\n places: RadarUpdatePlacesSettings_PlacesSettingsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for updating Places settings.\");\n\nexport const radarUpdatePlacesSettings: AppAction<\n typeof RadarUpdatePlacesSettingsInput,\n typeof RadarUpdatePlacesSettingsOutput,\n typeof radar.credential\n> = action(\"RADAR_UPDATE_PLACES_SETTINGS\", {\n slug: \"radar-update-places-settings\",\n name: \"Update Places Settings\",\n description: \"Tool to update Places settings for your Radar project including chain metadata preferences. Use when you need to configure chain detection or other Places settings.\",\n input: RadarUpdatePlacesSettingsInput,\n output: RadarUpdatePlacesSettingsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,EACrD,eAAe,EAAE,OAAO,EACxB,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,EACxF,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAC9F,MAAM,2CAA2C,EAAE,OAAO,EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,iDAAiD,EAAE,OAAO;CAC9D,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd6C,EAAE,OAAO;EACtD,MAAM,yCAAyC,SAAS;EACxD,QAAQ,+CAA+C,SAAS,CAAC,CAAC,SAAS;CAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-trip-by-id.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-trip-by-id.cjs","names":["z","action"],"sources":["../../src/actions/update-trip-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpdateTripByIdInput = z.object({\n id: z.string().describe(\"Trip ID (Radar _id or externalId) to update\"),\n status: z.enum([\"started\", \"approaching\", \"arrived\", \"completed\", \"canceled\"]).describe(\"The new status of the trip\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional custom key-value pairs for the trip\").optional(),\n externalId: z.string().describe(\"Optional stable unique ID for the trip\").optional(),\n}).describe(\"Request model for updating a trip by ID or external ID.\");\nconst RadarUpdateTripById_GeoJSONPointSchema = z.object({\n type: z.string().default(\"Point\").describe(\"GeoJSON type, always 'Point'\").nullable().optional(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"GeoJSON Point location for the trip destination/origin.\");\nconst RadarUpdateTripById_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable().optional(),\n eta: z.number().describe(\"Estimated time of arrival in seconds\").nullable().optional(),\n live: z.boolean().describe(\"Whether the trip is live\").nullable().optional(),\n mode: z.string().describe(\"Mode of transport (car, foot, bike)\").nullable().optional(),\n note: z.string().describe(\"Freeform note for the trip\").nullable().optional(),\n status: z.string().describe(\"Trip status (e.g., started, approaching, arrived, completed, canceled)\").nullable().optional(),\n userId: z.string().describe(\"Radar user ID associated with the trip\").nullable().optional(),\n distance: z.number().describe(\"Distance traveled in meters\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data for the trip\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp in ISO8601 format\").nullable().optional(),\n startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable().optional(),\n externalId: z.string().describe(\"External trip ID\").nullable().optional(),\n completedAt: z.string().describe(\"Completion timestamp in ISO8601 format if completed\").nullable().optional(),\n originLocation: RadarUpdateTripById_GeoJSONPointSchema.nullable().optional(),\n destinationLocation: RadarUpdateTripById_GeoJSONPointSchema.nullable().optional(),\n approachingThreshold: z.number().int().describe(\"Distance threshold in meters for approaching status\").nullable().optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence\").nullable().optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").nullable().optional(),\n}).passthrough().describe(\"Trip object returned by Radar.\");\nexport const RadarUpdateTripByIdOutput = z.object({\n trip: RadarUpdateTripById_TripSchema.nullable(),\n}).passthrough().describe(\"Response model for updating a trip by ID.\");\n\nexport const radarUpdateTripById = action(\"RADAR_UPDATE_TRIP_BY_ID\", {\n slug: \"radar-update-trip-by-id\",\n name: \"Update Trip By ID\",\n description: \"Tool to update a trip status by Radar _id or external ID. Use when you need to change trip status to started, approaching, arrived, completed, or canceled.\",\n input: RadarUpdateTripByIdInput,\n output: RadarUpdateTripByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAe;EAAW;EAAa;CA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CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,sBAAsBC,eAAAA,OAAO,2BAA2B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-trip-by-id.cjs","names":["z","action"],"sources":["../../src/actions/update-trip-by-id.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarUpdateTripByIdInput = z.object({\n id: z.string().describe(\"Trip ID (Radar _id or externalId) to update\"),\n status: z.enum([\"started\", \"approaching\", \"arrived\", \"completed\", \"canceled\"]).describe(\"The new status of the trip\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional custom key-value pairs for the trip\").optional(),\n externalId: z.string().describe(\"Optional stable unique ID for the trip\").optional(),\n}).describe(\"Request model for updating a trip by ID or external ID.\");\nconst RadarUpdateTripById_GeoJSONPointSchema = z.object({\n type: z.string().default(\"Point\").describe(\"GeoJSON type, always 'Point'\").nullable().optional(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"GeoJSON Point location for the trip destination/origin.\");\nconst RadarUpdateTripById_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable().optional(),\n eta: z.number().describe(\"Estimated time of arrival in seconds\").nullable().optional(),\n live: z.boolean().describe(\"Whether the trip is live\").nullable().optional(),\n mode: z.string().describe(\"Mode of transport (car, foot, bike)\").nullable().optional(),\n note: z.string().describe(\"Freeform note for the trip\").nullable().optional(),\n status: z.string().describe(\"Trip status (e.g., started, approaching, arrived, completed, canceled)\").nullable().optional(),\n userId: z.string().describe(\"Radar user ID associated with the trip\").nullable().optional(),\n distance: z.number().describe(\"Distance traveled in meters\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data for the trip\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp in ISO8601 format\").nullable().optional(),\n startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable().optional(),\n externalId: z.string().describe(\"External trip ID\").nullable().optional(),\n completedAt: z.string().describe(\"Completion timestamp in ISO8601 format if completed\").nullable().optional(),\n originLocation: RadarUpdateTripById_GeoJSONPointSchema.nullable().optional(),\n destinationLocation: RadarUpdateTripById_GeoJSONPointSchema.nullable().optional(),\n approachingThreshold: z.number().int().describe(\"Distance threshold in meters for approaching status\").nullable().optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence\").nullable().optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").nullable().optional(),\n}).passthrough().describe(\"Trip object returned by Radar.\");\nexport const RadarUpdateTripByIdOutput = z.object({\n trip: RadarUpdateTripById_TripSchema.nullable(),\n}).passthrough().describe(\"Response model for updating a trip by ID.\");\n\nexport const radarUpdateTripById: AppAction<\n typeof RadarUpdateTripByIdInput,\n typeof RadarUpdateTripByIdOutput,\n typeof radar.credential\n> = action(\"RADAR_UPDATE_TRIP_BY_ID\", {\n slug: \"radar-update-trip-by-id\",\n name: \"Update Trip By ID\",\n description: \"Tool to update a trip status by Radar _id or external ID. Use when you need to change trip status to started, approaching, arrived, completed, or canceled.\",\n input: RadarUpdateTripByIdInput,\n output: RadarUpdateTripByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAe;EAAW;EAAa;CAAU,CAAC,CAAC,CAAC,SAAS,4BAA4B;CACpH,UAAUA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,IAAAA,EAAE,OAAO,EAChD,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,sBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { radar } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-trip-by-id.d.ts
@@ -42,24 +44,7 @@ declare const RadarUpdateTripByIdOutput: z.ZodObject<{
42
44
  destinationGeofenceExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
45
  }, z.core.$loose>>;
44
46
  }, z.core.$loose>;
45
- declare const radarUpdateTripById: import("@keystrokehq/action").WorkflowActionDefinition<{
46
- id: string;
47
- status: "started" | "approaching" | "arrived" | "completed" | "canceled";
48
- metadata?: Record<string, unknown> | undefined;
49
- externalId?: string | undefined;
50
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
51
- connectionId: z.ZodString;
52
- entityId: z.ZodString;
53
- instanceId: z.ZodString;
54
- }, z.core.$strip>, z.ZodObject<{
55
- generic_api_key: z.ZodString;
56
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
57
- connectionId: z.ZodString;
58
- entityId: z.ZodString;
59
- instanceId: z.ZodString;
60
- }, z.core.$strip>, z.ZodObject<{
61
- generic_api_key: z.ZodString;
62
- }, z.core.$strip>>]>;
47
+ declare const radarUpdateTripById: AppAction<typeof RadarUpdateTripByIdInput, typeof RadarUpdateTripByIdOutput, typeof radar.credential>;
63
48
  //#endregion
64
49
  export { radarUpdateTripById };
65
50
  //# sourceMappingURL=update-trip-by-id.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-trip-by-id.d.cts","names":[],"sources":["../../src/actions/update-trip-by-id.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cA+BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-trip-by-id.d.cts","names":[],"sources":["../../src/actions/update-trip-by-id.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cA+BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { radar } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-trip-by-id.d.ts
@@ -42,24 +44,7 @@ declare const RadarUpdateTripByIdOutput: z.ZodObject<{
42
44
  destinationGeofenceExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
45
  }, z.core.$loose>>;
44
46
  }, z.core.$loose>;
45
- declare const radarUpdateTripById: import("@keystrokehq/action").WorkflowActionDefinition<{
46
- id: string;
47
- status: "started" | "approaching" | "arrived" | "completed" | "canceled";
48
- metadata?: Record<string, unknown> | undefined;
49
- externalId?: string | undefined;
50
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
51
- connectionId: z.ZodString;
52
- entityId: z.ZodString;
53
- instanceId: z.ZodString;
54
- }, z.core.$strip>, z.ZodObject<{
55
- generic_api_key: z.ZodString;
56
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
57
- connectionId: z.ZodString;
58
- entityId: z.ZodString;
59
- instanceId: z.ZodString;
60
- }, z.core.$strip>, z.ZodObject<{
61
- generic_api_key: z.ZodString;
62
- }, z.core.$strip>>]>;
47
+ declare const radarUpdateTripById: AppAction<typeof RadarUpdateTripByIdInput, typeof RadarUpdateTripByIdOutput, typeof radar.credential>;
63
48
  //#endregion
64
49
  export { radarUpdateTripById };
65
50
  //# sourceMappingURL=update-trip-by-id.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-trip-by-id.d.mts","names":[],"sources":["../../src/actions/update-trip-by-id.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cA+BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-trip-by-id.d.mts","names":[],"sources":["../../src/actions/update-trip-by-id.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;cA+BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/update-trip-by-id.ts