@keystrokehq/radar 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/actions/autocomplete-address-or-place.cjs +4 -4
  2. package/dist/actions/autocomplete-address-or-place.cjs.map +1 -1
  3. package/dist/actions/autocomplete-address-or-place.d.cts +4 -4
  4. package/dist/actions/autocomplete-address-or-place.d.mts +4 -4
  5. package/dist/actions/autocomplete-address-or-place.mjs +4 -4
  6. package/dist/actions/autocomplete-address-or-place.mjs.map +1 -1
  7. package/dist/actions/create-beacon.cjs +4 -4
  8. package/dist/actions/create-beacon.cjs.map +1 -1
  9. package/dist/actions/create-beacon.d.cts +4 -4
  10. package/dist/actions/create-beacon.d.mts +4 -4
  11. package/dist/actions/create-beacon.mjs +4 -4
  12. package/dist/actions/create-beacon.mjs.map +1 -1
  13. package/dist/actions/create-trip.cjs +1 -1
  14. package/dist/actions/create-trip.cjs.map +1 -1
  15. package/dist/actions/create-trip.d.cts +1 -1
  16. package/dist/actions/create-trip.d.mts +1 -1
  17. package/dist/actions/create-trip.mjs +1 -1
  18. package/dist/actions/create-trip.mjs.map +1 -1
  19. package/dist/actions/delete-beacon.cjs +2 -2
  20. package/dist/actions/delete-beacon.cjs.map +1 -1
  21. package/dist/actions/delete-beacon.d.cts +2 -2
  22. package/dist/actions/delete-beacon.d.mts +2 -2
  23. package/dist/actions/delete-beacon.mjs +2 -2
  24. package/dist/actions/delete-beacon.mjs.map +1 -1
  25. package/dist/actions/delete-geofence-by-tag.cjs +2 -2
  26. package/dist/actions/delete-geofence-by-tag.cjs.map +1 -1
  27. package/dist/actions/delete-geofence-by-tag.d.cts +2 -2
  28. package/dist/actions/delete-geofence-by-tag.d.mts +2 -2
  29. package/dist/actions/delete-geofence-by-tag.mjs +2 -2
  30. package/dist/actions/delete-geofence-by-tag.mjs.map +1 -1
  31. package/dist/actions/delete-geofence.cjs +2 -2
  32. package/dist/actions/delete-geofence.cjs.map +1 -1
  33. package/dist/actions/delete-geofence.d.cts +2 -2
  34. package/dist/actions/delete-geofence.d.mts +2 -2
  35. package/dist/actions/delete-geofence.mjs +2 -2
  36. package/dist/actions/delete-geofence.mjs.map +1 -1
  37. package/dist/actions/delete-trip.cjs +2 -2
  38. package/dist/actions/delete-trip.cjs.map +1 -1
  39. package/dist/actions/delete-trip.d.cts +2 -2
  40. package/dist/actions/delete-trip.d.mts +2 -2
  41. package/dist/actions/delete-trip.mjs +2 -2
  42. package/dist/actions/delete-trip.mjs.map +1 -1
  43. package/dist/actions/delete-user.cjs +2 -2
  44. package/dist/actions/delete-user.cjs.map +1 -1
  45. package/dist/actions/delete-user.d.cts +2 -2
  46. package/dist/actions/delete-user.d.mts +2 -2
  47. package/dist/actions/delete-user.mjs +2 -2
  48. package/dist/actions/delete-user.mjs.map +1 -1
  49. package/dist/actions/forward-geocode.cjs +3 -3
  50. package/dist/actions/forward-geocode.cjs.map +1 -1
  51. package/dist/actions/forward-geocode.d.cts +3 -3
  52. package/dist/actions/forward-geocode.d.mts +3 -3
  53. package/dist/actions/forward-geocode.mjs +3 -3
  54. package/dist/actions/forward-geocode.mjs.map +1 -1
  55. package/dist/actions/get-beacon-by-tag.cjs +2 -2
  56. package/dist/actions/get-beacon-by-tag.cjs.map +1 -1
  57. package/dist/actions/get-beacon-by-tag.d.cts +2 -2
  58. package/dist/actions/get-beacon-by-tag.d.mts +2 -2
  59. package/dist/actions/get-beacon-by-tag.mjs +2 -2
  60. package/dist/actions/get-beacon-by-tag.mjs.map +1 -1
  61. package/dist/actions/get-beacon.cjs +4 -4
  62. package/dist/actions/get-beacon.cjs.map +1 -1
  63. package/dist/actions/get-beacon.d.cts +4 -4
  64. package/dist/actions/get-beacon.d.mts +4 -4
  65. package/dist/actions/get-beacon.mjs +4 -4
  66. package/dist/actions/get-beacon.mjs.map +1 -1
  67. package/dist/actions/get-context-for-location.cjs +16 -16
  68. package/dist/actions/get-context-for-location.cjs.map +1 -1
  69. package/dist/actions/get-context-for-location.d.cts +16 -16
  70. package/dist/actions/get-context-for-location.d.mts +16 -16
  71. package/dist/actions/get-context-for-location.mjs +16 -16
  72. package/dist/actions/get-context-for-location.mjs.map +1 -1
  73. package/dist/actions/get-geofence.cjs +3 -3
  74. package/dist/actions/get-geofence.cjs.map +1 -1
  75. package/dist/actions/get-geofence.d.cts +3 -3
  76. package/dist/actions/get-geofence.d.mts +3 -3
  77. package/dist/actions/get-geofence.mjs +3 -3
  78. package/dist/actions/get-geofence.mjs.map +1 -1
  79. package/dist/actions/get-places-settings.cjs +3 -3
  80. package/dist/actions/get-places-settings.cjs.map +1 -1
  81. package/dist/actions/get-places-settings.d.cts +3 -3
  82. package/dist/actions/get-places-settings.d.mts +3 -3
  83. package/dist/actions/get-places-settings.mjs +3 -3
  84. package/dist/actions/get-places-settings.mjs.map +1 -1
  85. package/dist/actions/get-route-directions.cjs +9 -9
  86. package/dist/actions/get-route-directions.cjs.map +1 -1
  87. package/dist/actions/get-route-directions.d.cts +20 -20
  88. package/dist/actions/get-route-directions.d.mts +20 -20
  89. package/dist/actions/get-route-directions.mjs +9 -9
  90. package/dist/actions/get-route-directions.mjs.map +1 -1
  91. package/dist/actions/get-route-matrix.cjs +6 -6
  92. package/dist/actions/get-route-matrix.cjs.map +1 -1
  93. package/dist/actions/get-route-matrix.d.cts +9 -9
  94. package/dist/actions/get-route-matrix.d.mts +9 -9
  95. package/dist/actions/get-route-matrix.mjs +6 -6
  96. package/dist/actions/get-route-matrix.mjs.map +1 -1
  97. package/dist/actions/get-trip.cjs +3 -3
  98. package/dist/actions/get-trip.cjs.map +1 -1
  99. package/dist/actions/get-trip.d.cts +4 -4
  100. package/dist/actions/get-trip.d.mts +4 -4
  101. package/dist/actions/get-trip.mjs +3 -3
  102. package/dist/actions/get-trip.mjs.map +1 -1
  103. package/dist/actions/get-user.cjs +2 -2
  104. package/dist/actions/get-user.cjs.map +1 -1
  105. package/dist/actions/get-user.d.cts +2 -2
  106. package/dist/actions/get-user.d.mts +2 -2
  107. package/dist/actions/get-user.mjs +2 -2
  108. package/dist/actions/get-user.mjs.map +1 -1
  109. package/dist/actions/get-users-in-geofence.cjs +2 -2
  110. package/dist/actions/get-users-in-geofence.cjs.map +1 -1
  111. package/dist/actions/get-users-in-geofence.d.cts +2 -2
  112. package/dist/actions/get-users-in-geofence.d.mts +2 -2
  113. package/dist/actions/get-users-in-geofence.mjs +2 -2
  114. package/dist/actions/get-users-in-geofence.mjs.map +1 -1
  115. package/dist/actions/ip-geocode.cjs +1 -1
  116. package/dist/actions/ip-geocode.cjs.map +1 -1
  117. package/dist/actions/ip-geocode.d.cts +1 -1
  118. package/dist/actions/ip-geocode.d.mts +1 -1
  119. package/dist/actions/ip-geocode.mjs +1 -1
  120. package/dist/actions/ip-geocode.mjs.map +1 -1
  121. package/dist/actions/list-events.cjs +6 -6
  122. package/dist/actions/list-events.cjs.map +1 -1
  123. package/dist/actions/list-events.d.cts +6 -6
  124. package/dist/actions/list-events.d.mts +6 -6
  125. package/dist/actions/list-events.mjs +6 -6
  126. package/dist/actions/list-events.mjs.map +1 -1
  127. package/dist/actions/list-geofences.cjs +5 -5
  128. package/dist/actions/list-geofences.cjs.map +1 -1
  129. package/dist/actions/list-geofences.d.cts +5 -5
  130. package/dist/actions/list-geofences.d.mts +5 -5
  131. package/dist/actions/list-geofences.mjs +5 -5
  132. package/dist/actions/list-geofences.mjs.map +1 -1
  133. package/dist/actions/list-trips.cjs +5 -5
  134. package/dist/actions/list-trips.cjs.map +1 -1
  135. package/dist/actions/list-trips.d.cts +6 -6
  136. package/dist/actions/list-trips.d.mts +6 -6
  137. package/dist/actions/list-trips.mjs +5 -5
  138. package/dist/actions/list-trips.mjs.map +1 -1
  139. package/dist/actions/list-users.cjs +3 -3
  140. package/dist/actions/list-users.cjs.map +1 -1
  141. package/dist/actions/list-users.d.cts +3 -3
  142. package/dist/actions/list-users.d.mts +3 -3
  143. package/dist/actions/list-users.mjs +3 -3
  144. package/dist/actions/list-users.mjs.map +1 -1
  145. package/dist/actions/reverse-geocode.cjs +2 -2
  146. package/dist/actions/reverse-geocode.cjs.map +1 -1
  147. package/dist/actions/reverse-geocode.d.cts +2 -2
  148. package/dist/actions/reverse-geocode.d.mts +2 -2
  149. package/dist/actions/reverse-geocode.mjs +2 -2
  150. package/dist/actions/reverse-geocode.mjs.map +1 -1
  151. package/dist/actions/route-distance.cjs +8 -8
  152. package/dist/actions/route-distance.cjs.map +1 -1
  153. package/dist/actions/route-distance.d.cts +23 -23
  154. package/dist/actions/route-distance.d.mts +23 -23
  155. package/dist/actions/route-distance.mjs +8 -8
  156. package/dist/actions/route-distance.mjs.map +1 -1
  157. package/dist/actions/search-geofences-near-location.cjs +3 -3
  158. package/dist/actions/search-geofences-near-location.cjs.map +1 -1
  159. package/dist/actions/search-geofences-near-location.d.cts +3 -3
  160. package/dist/actions/search-geofences-near-location.d.mts +3 -3
  161. package/dist/actions/search-geofences-near-location.mjs +3 -3
  162. package/dist/actions/search-geofences-near-location.mjs.map +1 -1
  163. package/dist/actions/search-places-near-location.cjs +6 -6
  164. package/dist/actions/search-places-near-location.cjs.map +1 -1
  165. package/dist/actions/search-places-near-location.d.cts +6 -6
  166. package/dist/actions/search-places-near-location.d.mts +6 -6
  167. package/dist/actions/search-places-near-location.mjs +6 -6
  168. package/dist/actions/search-places-near-location.mjs.map +1 -1
  169. package/dist/actions/search-users-near-location.cjs +4 -4
  170. package/dist/actions/search-users-near-location.cjs.map +1 -1
  171. package/dist/actions/search-users-near-location.d.cts +4 -4
  172. package/dist/actions/search-users-near-location.d.mts +4 -4
  173. package/dist/actions/search-users-near-location.mjs +4 -4
  174. package/dist/actions/search-users-near-location.mjs.map +1 -1
  175. package/dist/actions/track-location-update.cjs +1 -1
  176. package/dist/actions/track-location-update.cjs.map +1 -1
  177. package/dist/actions/track-location-update.d.cts +1 -1
  178. package/dist/actions/track-location-update.d.mts +1 -1
  179. package/dist/actions/track-location-update.mjs +1 -1
  180. package/dist/actions/track-location-update.mjs.map +1 -1
  181. package/dist/actions/update-places-settings.cjs +3 -3
  182. package/dist/actions/update-places-settings.cjs.map +1 -1
  183. package/dist/actions/update-places-settings.d.cts +3 -3
  184. package/dist/actions/update-places-settings.d.mts +3 -3
  185. package/dist/actions/update-places-settings.mjs +3 -3
  186. package/dist/actions/update-places-settings.mjs.map +1 -1
  187. package/dist/actions/update-trip-by-id.cjs +3 -3
  188. package/dist/actions/update-trip-by-id.cjs.map +1 -1
  189. package/dist/actions/update-trip-by-id.d.cts +4 -4
  190. package/dist/actions/update-trip-by-id.d.mts +4 -4
  191. package/dist/actions/update-trip-by-id.mjs +3 -3
  192. package/dist/actions/update-trip-by-id.mjs.map +1 -1
  193. package/dist/actions/update-trip.cjs +3 -3
  194. package/dist/actions/update-trip.cjs.map +1 -1
  195. package/dist/actions/update-trip.d.cts +5 -5
  196. package/dist/actions/update-trip.d.mts +5 -5
  197. package/dist/actions/update-trip.mjs +3 -3
  198. package/dist/actions/update-trip.mjs.map +1 -1
  199. package/dist/actions/upsert-beacon-by-id.cjs +4 -4
  200. package/dist/actions/upsert-beacon-by-id.cjs.map +1 -1
  201. package/dist/actions/upsert-beacon-by-id.d.cts +4 -4
  202. package/dist/actions/upsert-beacon-by-id.d.mts +4 -4
  203. package/dist/actions/upsert-beacon-by-id.mjs +4 -4
  204. package/dist/actions/upsert-beacon-by-id.mjs.map +1 -1
  205. package/dist/actions/upsert-beacon-by-tag.cjs +6 -6
  206. package/dist/actions/upsert-beacon-by-tag.cjs.map +1 -1
  207. package/dist/actions/upsert-beacon-by-tag.d.cts +7 -7
  208. package/dist/actions/upsert-beacon-by-tag.d.mts +7 -7
  209. package/dist/actions/upsert-beacon-by-tag.mjs +6 -6
  210. package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -1
  211. package/dist/actions/upsert-geofence-by-id.cjs +7 -7
  212. package/dist/actions/upsert-geofence-by-id.cjs.map +1 -1
  213. package/dist/actions/upsert-geofence-by-id.d.cts +8 -8
  214. package/dist/actions/upsert-geofence-by-id.d.mts +8 -8
  215. package/dist/actions/upsert-geofence-by-id.mjs +7 -7
  216. package/dist/actions/upsert-geofence-by-id.mjs.map +1 -1
  217. package/dist/actions/upsert-geofence.cjs +3 -3
  218. package/dist/actions/upsert-geofence.cjs.map +1 -1
  219. package/dist/actions/upsert-geofence.d.cts +3 -3
  220. package/dist/actions/upsert-geofence.d.mts +3 -3
  221. package/dist/actions/upsert-geofence.mjs +3 -3
  222. package/dist/actions/upsert-geofence.mjs.map +1 -1
  223. package/package.json +1 -1
@@ -11,7 +11,7 @@ const RadarSearchGeofencesNearLocationInput = z.object({
11
11
  const RadarSearchGeofencesNearLocation_GeometrySchema = z.object({
12
12
  type: z.string().describe("Geometry type: 'Point' or 'Polygon'.").nullable(),
13
13
  coordinates: z.array(z.unknown()).describe("Coordinates array for the geofence geometry.")
14
- }).describe("Geometry details of a geofence.");
14
+ }).passthrough().describe("Geometry details of a geofence.");
15
15
  const RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({
16
16
  _id: z.string().describe("Unique identifier of the geofence.").nullable(),
17
17
  tag: z.string().describe("Tag associated with the geofence.").nullable().optional(),
@@ -25,7 +25,7 @@ const RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({
25
25
  description: z.string().describe("Description of the geofence.").nullable().optional(),
26
26
  geometryCenter: z.record(z.string(), z.unknown()).describe("Center point of the geofence geometry.").nullable().optional(),
27
27
  geometryRadius: z.number().describe("Radius of the geofence in meters.").nullable().optional()
28
- }).describe("Representation of a Radar geofence returned in search.");
28
+ }).passthrough().describe("Representation of a Radar geofence returned in search.");
29
29
  const radarSearchGeofencesNearLocation = action("RADAR_SEARCH_GEOFENCES_NEAR_LOCATION", {
30
30
  slug: "radar-search-geofences-near-location",
31
31
  name: "Search Geofences",
@@ -34,7 +34,7 @@ const radarSearchGeofencesNearLocation = action("RADAR_SEARCH_GEOFENCES_NEAR_LOC
34
34
  output: z.object({
35
35
  meta: z.record(z.string(), z.unknown()).describe("Response metadata."),
36
36
  geofences: z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe("List of geofences near the specified location.")
37
- }).describe("Response model for SEARCH_GEOFENCES_NEAR_LOCATION.")
37
+ }).passthrough().describe("Response model for SEARCH_GEOFENCES_NEAR_LOCATION.")
38
38
  });
39
39
  //#endregion
40
40
  export { radarSearchGeofencesNearLocation };
@@ -1 +1 @@
1
- {"version":3,"file":"search-geofences-near-location.mjs","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchGeofencesNearLocationInput = z.object({\n tags: z.array(z.string()).describe(\"Filter geofences by these tags\").optional(),\n radius: z.number().int().describe(\"Search radius in meters (default 1000, max 10000)\").optional(),\n latitude: z.number().describe(\"Latitude of the location to search near\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Filter geofences by metadata key-value pairs\").optional(),\n longitude: z.number().describe(\"Longitude of the location to search near\"),\n}).describe(\"Request model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\nconst RadarSearchGeofencesNearLocation_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type: 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates array for the geofence geometry.\"),\n}).describe(\"Geometry details of a geofence.\");\nconst RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n live: z.boolean().describe(\"Whether the geofence is live.\").nullable().optional(),\n type: z.string().describe(\"Type of geofence (circle or polygon).\").nullable().optional(),\n geometry: RadarSearchGeofencesNearLocation_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data attached to the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601).\").nullable().optional(),\n externalId: z.string().describe(\"External identifier of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n geometryCenter: z.record(z.string(), z.unknown()).describe(\"Center point of the geofence geometry.\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters.\").nullable().optional(),\n}).describe(\"Representation of a Radar geofence returned in search.\");\nexport const RadarSearchGeofencesNearLocationOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofences: z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe(\"List of geofences near the specified location.\"),\n}).describe(\"Response model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\n\nexport const radarSearchGeofencesNearLocation = action(\"RADAR_SEARCH_GEOFENCES_NEAR_LOCATION\", {\n slug: \"radar-search-geofences-near-location\",\n name: \"Search Geofences\",\n description: \"Tool to search for geofences near a given location. Use when you need to find geofences within a radius of specified coordinates.\",\n input: RadarSearchGeofencesNearLocationInput,\n output: RadarSearchGeofencesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACvE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC9G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC3E,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,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,SAAS,wDAAwD;AAMpE,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB;EACrE,WAAW,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gDAAgD;CACrI,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"search-geofences-near-location.mjs","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchGeofencesNearLocationInput = z.object({\n tags: z.array(z.string()).describe(\"Filter geofences by these tags\").optional(),\n radius: z.number().int().describe(\"Search radius in meters (default 1000, max 10000)\").optional(),\n latitude: z.number().describe(\"Latitude of the location to search near\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Filter geofences by metadata key-value pairs\").optional(),\n longitude: z.number().describe(\"Longitude of the location to search near\"),\n}).describe(\"Request model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\nconst RadarSearchGeofencesNearLocation_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type: 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates array for the geofence geometry.\"),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n live: z.boolean().describe(\"Whether the geofence is live.\").nullable().optional(),\n type: z.string().describe(\"Type of geofence (circle or polygon).\").nullable().optional(),\n geometry: RadarSearchGeofencesNearLocation_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data attached to the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601).\").nullable().optional(),\n externalId: z.string().describe(\"External identifier of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n geometryCenter: z.record(z.string(), z.unknown()).describe(\"Center point of the geofence geometry.\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence returned in search.\");\nexport const RadarSearchGeofencesNearLocationOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofences: z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe(\"List of geofences near the specified location.\"),\n}).passthrough().describe(\"Response model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\n\nexport const radarSearchGeofencesNearLocation = action(\"RADAR_SEARCH_GEOFENCES_NEAR_LOCATION\", {\n slug: \"radar-search-geofences-near-location\",\n name: \"Search Geofences\",\n description: \"Tool to search for geofences near a given location. Use when you need to find geofences within a radius of specified coordinates.\",\n input: RadarSearchGeofencesNearLocationInput,\n output: RadarSearchGeofencesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACvE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC9G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC3E,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM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AAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAMlF,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB;EACrE,WAAW,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gDAAgD;CACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
@@ -12,21 +12,21 @@ const RadarSearchPlacesNearLocationInput = zod.z.object({
12
12
  categories: zod.z.array(zod.z.string()).describe("Filter by category names").optional(),
13
13
  chain_metadata: zod.z.boolean().describe("If true, includes chain metadata in each place object").optional()
14
14
  }).describe("Request model for SEARCH_PLACES_NEAR_LOCATION.");
15
- const RadarSearchPlacesNearLocation_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code of the response").nullable() });
15
+ const RadarSearchPlacesNearLocation_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code of the response").nullable() }).passthrough();
16
16
  const RadarSearchPlacesNearLocation_LinksSchema = zod.z.object({
17
17
  next: zod.z.string().describe("URL for next page").nullable().optional(),
18
18
  prev: zod.z.string().describe("URL for previous page").nullable().optional()
19
- });
19
+ }).passthrough();
20
20
  const RadarSearchPlacesNearLocation_ChainSchema = zod.z.object({
21
21
  id: zod.z.string().describe("Chain unique identifier").nullable().optional(),
22
22
  name: zod.z.string().describe("Chain name").nullable().optional(),
23
23
  metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata for the chain").nullable().optional(),
24
24
  externalId: zod.z.string().describe("Chain external ID").nullable().optional()
25
- });
25
+ }).passthrough();
26
26
  const RadarSearchPlacesNearLocation_GeoJSONPointSchema = zod.z.object({
27
27
  type: zod.z.string().describe("GeoJSON type, must be 'Point'").nullable(),
28
28
  coordinates: zod.z.array(zod.z.number()).describe("Coordinates as [lng, lat]")
29
- });
29
+ }).passthrough();
30
30
  const RadarSearchPlacesNearLocation_PlaceSchema = zod.z.object({
31
31
  _id: zod.z.string().describe("Place unique identifier").nullable(),
32
32
  name: zod.z.string().describe("Name of the place").nullable(),
@@ -38,12 +38,12 @@ const RadarSearchPlacesNearLocation_PlaceSchema = zod.z.object({
38
38
  externalId: zod.z.string().describe("External ID of the place").nullable().optional(),
39
39
  description: zod.z.string().describe("Description of the place").nullable().optional(),
40
40
  formattedAddress: zod.z.string().describe("Formatted address of the place").nullable().optional()
41
- });
41
+ }).passthrough();
42
42
  const RadarSearchPlacesNearLocationOutput = zod.z.object({
43
43
  meta: RadarSearchPlacesNearLocation_MetaSchema.nullable(),
44
44
  links: RadarSearchPlacesNearLocation_LinksSchema.nullable().optional(),
45
45
  places: zod.z.array(RadarSearchPlacesNearLocation_PlaceSchema).describe("List of places found")
46
- });
46
+ }).passthrough();
47
47
  const radarSearchPlacesNearLocation = require_action.action("RADAR_SEARCH_PLACES_NEAR_LOCATION", {
48
48
  slug: "radar-search-places-near-location",
49
49
  name: "Search Places Near Location",
@@ -1 +1 @@
1
- {"version":3,"file":"search-places-near-location.cjs","names":["z","action"],"sources":["../../src/actions/search-places-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchPlacesNearLocationInput = z.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});\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});\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});\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});\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});\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});\n\nexport const radarSearchPlacesNearLocation = action(\"RADAR_SEARCH_PLACES_NEAR_LOCATION\", {\n slug: \"radar-search-places-near-location\",\n name: \"Search Places Near Location\",\n description: \"Tool to search for places near given coordinates. Use when you need to find points of interest around a location.\",\n input: RadarSearchPlacesNearLocationInput,\n output: RadarSearchPlacesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9E,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5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,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAU,iDAAiD,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,yCAAyC,SAAS;CACxD,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;AAC5F,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-places-near-location.cjs","names":["z","action"],"sources":["../../src/actions/search-places-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchPlacesNearLocationInput = z.object({\n near: z.string().describe(\"Coordinates to search near in 'lat,lng' format\"),\n brand: z.string().describe(\"Filter by brand name or ID\").optional(),\n limit: z.number().int().default(10).describe(\"Number of results to return; max 100; defaults to 10\").optional(),\n chains: z.array(z.string()).describe(\"Filter by chain IDs\").optional(),\n groups: z.array(z.string()).describe(\"Filter by custom group names\").optional(),\n radius: z.number().int().default(1000).describe(\"Search radius in meters; max 10000 (10 km); defaults to 1000\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n categories: z.array(z.string()).describe(\"Filter by category names\").optional(),\n chain_metadata: z.boolean().describe(\"If true, includes chain metadata in each place object\").optional(),\n}).describe(\"Request model for SEARCH_PLACES_NEAR_LOCATION.\");\nconst RadarSearchPlacesNearLocation_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_LinksSchema = z.object({\n next: z.string().describe(\"URL for next page\").nullable().optional(),\n prev: z.string().describe(\"URL for previous page\").nullable().optional(),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_ChainSchema = z.object({\n id: z.string().describe(\"Chain unique identifier\").nullable().optional(),\n name: z.string().describe(\"Chain name\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the chain\").nullable().optional(),\n externalId: z.string().describe(\"Chain external ID\").nullable().optional(),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_GeoJSONPointSchema = z.object({\n type: z.string().describe(\"GeoJSON type, must be 'Point'\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [lng, lat]\"),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_PlaceSchema = z.object({\n _id: z.string().describe(\"Place unique identifier\").nullable(),\n name: z.string().describe(\"Name of the place\").nullable(),\n chain: RadarSearchPlacesNearLocation_ChainSchema.nullable().optional(),\n distance: z.number().describe(\"Distance in meters from the search origin\").nullable().optional(),\n location: RadarSearchPlacesNearLocation_GeoJSONPointSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the place\").nullable().optional(),\n categories: z.array(z.string()).describe(\"Categories associated with the place\"),\n externalId: z.string().describe(\"External ID of the place\").nullable().optional(),\n description: z.string().describe(\"Description of the place\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place\").nullable().optional(),\n}).passthrough();\nexport const RadarSearchPlacesNearLocationOutput = z.object({\n meta: RadarSearchPlacesNearLocation_MetaSchema.nullable(),\n links: RadarSearchPlacesNearLocation_LinksSchema.nullable().optional(),\n places: z.array(RadarSearchPlacesNearLocation_PlaceSchema).describe(\"List of places found\"),\n}).passthrough();\n\nexport const radarSearchPlacesNearLocation = action(\"RADAR_SEARCH_PLACES_NEAR_LOCATION\", {\n slug: \"radar-search-places-near-location\",\n name: \"Search Places Near Location\",\n description: \"Tool to search for places near given coordinates. Use when you need to find points of interest around a location.\",\n input: RadarSearchPlacesNearLocationInput,\n output: RadarSearchPlacesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzH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C,SAAS,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;AAC5F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -15,11 +15,11 @@ declare const RadarSearchPlacesNearLocationInput: z.ZodObject<{
15
15
  declare const RadarSearchPlacesNearLocationOutput: z.ZodObject<{
16
16
  meta: z.ZodNullable<z.ZodObject<{
17
17
  code: z.ZodNullable<z.ZodNumber>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
20
  next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>>>;
22
+ }, z.core.$loose>>>;
23
23
  places: z.ZodArray<z.ZodObject<{
24
24
  _id: z.ZodNullable<z.ZodString>;
25
25
  name: z.ZodNullable<z.ZodString>;
@@ -28,19 +28,19 @@ declare const RadarSearchPlacesNearLocationOutput: z.ZodObject<{
28
28
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
30
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
- }, z.core.$strip>>>;
31
+ }, z.core.$loose>>>;
32
32
  distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
33
  location: z.ZodNullable<z.ZodObject<{
34
34
  type: z.ZodNullable<z.ZodString>;
35
35
  coordinates: z.ZodArray<z.ZodNumber>;
36
- }, z.core.$strip>>;
36
+ }, z.core.$loose>>;
37
37
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
38
  categories: z.ZodArray<z.ZodString>;
39
39
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  formattedAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- }, z.core.$strip>>;
43
- }, z.core.$strip>;
42
+ }, z.core.$loose>>;
43
+ }, z.core.$loose>;
44
44
  declare const radarSearchPlacesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
45
45
  near: string;
46
46
  brand?: string | undefined;
@@ -15,11 +15,11 @@ declare const RadarSearchPlacesNearLocationInput: z.ZodObject<{
15
15
  declare const RadarSearchPlacesNearLocationOutput: z.ZodObject<{
16
16
  meta: z.ZodNullable<z.ZodObject<{
17
17
  code: z.ZodNullable<z.ZodNumber>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
20
  next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>>>;
22
+ }, z.core.$loose>>>;
23
23
  places: z.ZodArray<z.ZodObject<{
24
24
  _id: z.ZodNullable<z.ZodString>;
25
25
  name: z.ZodNullable<z.ZodString>;
@@ -28,19 +28,19 @@ declare const RadarSearchPlacesNearLocationOutput: z.ZodObject<{
28
28
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
30
30
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
- }, z.core.$strip>>>;
31
+ }, z.core.$loose>>>;
32
32
  distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
33
  location: z.ZodNullable<z.ZodObject<{
34
34
  type: z.ZodNullable<z.ZodString>;
35
35
  coordinates: z.ZodArray<z.ZodNumber>;
36
- }, z.core.$strip>>;
36
+ }, z.core.$loose>>;
37
37
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
38
  categories: z.ZodArray<z.ZodString>;
39
39
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  formattedAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- }, z.core.$strip>>;
43
- }, z.core.$strip>;
42
+ }, z.core.$loose>>;
43
+ }, z.core.$loose>;
44
44
  declare const radarSearchPlacesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
45
45
  near: string;
46
46
  brand?: string | undefined;
@@ -12,21 +12,21 @@ const RadarSearchPlacesNearLocationInput = z.object({
12
12
  categories: z.array(z.string()).describe("Filter by category names").optional(),
13
13
  chain_metadata: z.boolean().describe("If true, includes chain metadata in each place object").optional()
14
14
  }).describe("Request model for SEARCH_PLACES_NEAR_LOCATION.");
15
- const RadarSearchPlacesNearLocation_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code of the response").nullable() });
15
+ const RadarSearchPlacesNearLocation_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code of the response").nullable() }).passthrough();
16
16
  const RadarSearchPlacesNearLocation_LinksSchema = z.object({
17
17
  next: z.string().describe("URL for next page").nullable().optional(),
18
18
  prev: z.string().describe("URL for previous page").nullable().optional()
19
- });
19
+ }).passthrough();
20
20
  const RadarSearchPlacesNearLocation_ChainSchema = z.object({
21
21
  id: z.string().describe("Chain unique identifier").nullable().optional(),
22
22
  name: z.string().describe("Chain name").nullable().optional(),
23
23
  metadata: z.record(z.string(), z.unknown()).describe("Additional metadata for the chain").nullable().optional(),
24
24
  externalId: z.string().describe("Chain external ID").nullable().optional()
25
- });
25
+ }).passthrough();
26
26
  const RadarSearchPlacesNearLocation_GeoJSONPointSchema = z.object({
27
27
  type: z.string().describe("GeoJSON type, must be 'Point'").nullable(),
28
28
  coordinates: z.array(z.number()).describe("Coordinates as [lng, lat]")
29
- });
29
+ }).passthrough();
30
30
  const RadarSearchPlacesNearLocation_PlaceSchema = z.object({
31
31
  _id: z.string().describe("Place unique identifier").nullable(),
32
32
  name: z.string().describe("Name of the place").nullable(),
@@ -38,7 +38,7 @@ const RadarSearchPlacesNearLocation_PlaceSchema = z.object({
38
38
  externalId: z.string().describe("External ID of the place").nullable().optional(),
39
39
  description: z.string().describe("Description of the place").nullable().optional(),
40
40
  formattedAddress: z.string().describe("Formatted address of the place").nullable().optional()
41
- });
41
+ }).passthrough();
42
42
  const radarSearchPlacesNearLocation = action("RADAR_SEARCH_PLACES_NEAR_LOCATION", {
43
43
  slug: "radar-search-places-near-location",
44
44
  name: "Search Places Near Location",
@@ -48,7 +48,7 @@ const radarSearchPlacesNearLocation = action("RADAR_SEARCH_PLACES_NEAR_LOCATION"
48
48
  meta: RadarSearchPlacesNearLocation_MetaSchema.nullable(),
49
49
  links: RadarSearchPlacesNearLocation_LinksSchema.nullable().optional(),
50
50
  places: z.array(RadarSearchPlacesNearLocation_PlaceSchema).describe("List of places found")
51
- })
51
+ }).passthrough()
52
52
  });
53
53
  //#endregion
54
54
  export { radarSearchPlacesNearLocation };
@@ -1 +1 @@
1
- {"version":3,"file":"search-places-near-location.mjs","names":[],"sources":["../../src/actions/search-places-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchPlacesNearLocationInput = z.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});\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});\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});\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});\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});\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});\n\nexport const radarSearchPlacesNearLocation = action(\"RADAR_SEARCH_PLACES_NEAR_LOCATION\", {\n slug: \"radar-search-places-near-location\",\n name: \"Search Places Near Location\",\n description: \"Tool to search for places near given coordinates. Use when you need to find points of interest around a location.\",\n input: RadarSearchPlacesNearLocationInput,\n output: RadarSearchPlacesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9E,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,2CAA2C,EAAE,OAAO,EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,EAC/E,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mB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,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC;AAOD,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,MAAM,yCAAyC,SAAS;EACxD,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACrE,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sBAAsB;CAC5F,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"search-places-near-location.mjs","names":[],"sources":["../../src/actions/search-places-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchPlacesNearLocationInput = z.object({\n near: z.string().describe(\"Coordinates to search near in 'lat,lng' format\"),\n brand: z.string().describe(\"Filter by brand name or ID\").optional(),\n limit: z.number().int().default(10).describe(\"Number of results to return; max 100; defaults to 10\").optional(),\n chains: z.array(z.string()).describe(\"Filter by chain IDs\").optional(),\n groups: z.array(z.string()).describe(\"Filter by custom group names\").optional(),\n radius: z.number().int().default(1000).describe(\"Search radius in meters; max 10000 (10 km); defaults to 1000\").optional(),\n country: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n categories: z.array(z.string()).describe(\"Filter by category names\").optional(),\n chain_metadata: z.boolean().describe(\"If true, includes chain metadata in each place object\").optional(),\n}).describe(\"Request model for SEARCH_PLACES_NEAR_LOCATION.\");\nconst RadarSearchPlacesNearLocation_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code of the response\").nullable(),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_LinksSchema = z.object({\n next: z.string().describe(\"URL for next page\").nullable().optional(),\n prev: z.string().describe(\"URL for previous page\").nullable().optional(),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_ChainSchema = z.object({\n id: z.string().describe(\"Chain unique identifier\").nullable().optional(),\n name: z.string().describe(\"Chain name\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the chain\").nullable().optional(),\n externalId: z.string().describe(\"Chain external ID\").nullable().optional(),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_GeoJSONPointSchema = z.object({\n type: z.string().describe(\"GeoJSON type, must be 'Point'\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [lng, lat]\"),\n}).passthrough();\nconst RadarSearchPlacesNearLocation_PlaceSchema = z.object({\n _id: z.string().describe(\"Place unique identifier\").nullable(),\n name: z.string().describe(\"Name of the place\").nullable(),\n chain: RadarSearchPlacesNearLocation_ChainSchema.nullable().optional(),\n distance: z.number().describe(\"Distance in meters from the search origin\").nullable().optional(),\n location: RadarSearchPlacesNearLocation_GeoJSONPointSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the place\").nullable().optional(),\n categories: z.array(z.string()).describe(\"Categories associated with the place\"),\n externalId: z.string().describe(\"External ID of the place\").nullable().optional(),\n description: z.string().describe(\"Description of the place\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place\").nullable().optional(),\n}).passthrough();\nexport const RadarSearchPlacesNearLocationOutput = z.object({\n meta: RadarSearchPlacesNearLocation_MetaSchema.nullable(),\n links: RadarSearchPlacesNearLocation_LinksSchema.nullable().optional(),\n places: z.array(RadarSearchPlacesNearLocation_PlaceSchema).describe(\"List of places found\"),\n}).passthrough();\n\nexport const radarSearchPlacesNearLocation = action(\"RADAR_SEARCH_PLACES_NEAR_LOCATION\", {\n slug: \"radar-search-places-near-location\",\n name: \"Search Places Near Location\",\n description: \"Tool to search for places near given coordinates. Use when you need to find points of interest around a location.\",\n input: RadarSearchPlacesNearLocationInput,\n output: RadarSearchPlacesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9E,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,2CAA2C,EAAE,OAAO,EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,EAC/E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAA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AC,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"}
@@ -10,22 +10,22 @@ const RadarSearchUsersNearLocationInput = zod.z.object({
10
10
  const RadarSearchUsersNearLocation_MetaSchema = zod.z.object({
11
11
  code: zod.z.number().int().describe("Status code returned by the API.").nullable(),
12
12
  success: zod.z.boolean().describe("True if the request was successful.").nullable().optional()
13
- });
13
+ }).passthrough();
14
14
  const RadarSearchUsersNearLocation_UserLocationSchema = zod.z.object({
15
15
  type: zod.z.string().describe("GeoJSON type; always 'Point'.").nullable(),
16
16
  coordinates: zod.z.array(zod.z.number()).describe("Coordinates in [longitude, latitude].")
17
- }).describe("GeoJSON location of a user.");
17
+ }).passthrough().describe("GeoJSON location of a user.");
18
18
  const RadarSearchUsersNearLocation_UserSchema = zod.z.object({
19
19
  _id: zod.z.string().describe("Internal Radar user ID.").nullable(),
20
20
  userId: zod.z.string().describe("External user ID, if provided.").nullable().optional(),
21
21
  deviceId: zod.z.string().describe("Radar device identifier.").nullable(),
22
22
  location: RadarSearchUsersNearLocation_UserLocationSchema.nullable(),
23
23
  updatedAt: zod.z.string().describe("ISO 8601 timestamp of last update.").nullable()
24
- }).describe("User object returned by Radar search.");
24
+ }).passthrough().describe("User object returned by Radar search.");
25
25
  const RadarSearchUsersNearLocationOutput = zod.z.object({
26
26
  meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),
27
27
  users: zod.z.array(RadarSearchUsersNearLocation_UserSchema).describe("List of users found within the specified radius.")
28
- }).describe("Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.");
28
+ }).passthrough().describe("Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.");
29
29
  const radarSearchUsersNearLocation = require_action.action("RADAR_SEARCH_USERS_NEAR_LOCATION", {
30
30
  slug: "radar-search-users-near-location",
31
31
  name: "Search Users Near Location",
@@ -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});\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}).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}).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}).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;AACD,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,SAAS,6BAA6B;AACzC,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,SAAS,uCAAuC;AACnD,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAM,wCAAwC,SAAS;CACvD,OAAOA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,kDAAkD;AACrH,CAAC,CAAC,CAAC,SAAS,qFAAqF;AAEjG,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 { 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,S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,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"}
@@ -11,7 +11,7 @@ declare const RadarSearchUsersNearLocationOutput: z.ZodObject<{
11
11
  meta: z.ZodNullable<z.ZodObject<{
12
12
  code: z.ZodNullable<z.ZodNumber>;
13
13
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  users: z.ZodArray<z.ZodObject<{
16
16
  _id: z.ZodNullable<z.ZodString>;
17
17
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -19,10 +19,10 @@ declare const RadarSearchUsersNearLocationOutput: z.ZodObject<{
19
19
  location: z.ZodNullable<z.ZodObject<{
20
20
  type: z.ZodNullable<z.ZodString>;
21
21
  coordinates: z.ZodArray<z.ZodNumber>;
22
- }, z.core.$strip>>;
22
+ }, z.core.$loose>>;
23
23
  updatedAt: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
26
  declare const radarSearchUsersNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  latitude: number;
28
28
  longitude: number;
@@ -11,7 +11,7 @@ declare const RadarSearchUsersNearLocationOutput: z.ZodObject<{
11
11
  meta: z.ZodNullable<z.ZodObject<{
12
12
  code: z.ZodNullable<z.ZodNumber>;
13
13
  success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  users: z.ZodArray<z.ZodObject<{
16
16
  _id: z.ZodNullable<z.ZodString>;
17
17
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -19,10 +19,10 @@ declare const RadarSearchUsersNearLocationOutput: z.ZodObject<{
19
19
  location: z.ZodNullable<z.ZodObject<{
20
20
  type: z.ZodNullable<z.ZodString>;
21
21
  coordinates: z.ZodArray<z.ZodNumber>;
22
- }, z.core.$strip>>;
22
+ }, z.core.$loose>>;
23
23
  updatedAt: z.ZodNullable<z.ZodString>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
26
  declare const radarSearchUsersNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  latitude: number;
28
28
  longitude: number;
@@ -10,18 +10,18 @@ const RadarSearchUsersNearLocationInput = z.object({
10
10
  const RadarSearchUsersNearLocation_MetaSchema = z.object({
11
11
  code: z.number().int().describe("Status code returned by the API.").nullable(),
12
12
  success: z.boolean().describe("True if the request was successful.").nullable().optional()
13
- });
13
+ }).passthrough();
14
14
  const RadarSearchUsersNearLocation_UserLocationSchema = z.object({
15
15
  type: z.string().describe("GeoJSON type; always 'Point'.").nullable(),
16
16
  coordinates: z.array(z.number()).describe("Coordinates in [longitude, latitude].")
17
- }).describe("GeoJSON location of a user.");
17
+ }).passthrough().describe("GeoJSON location of a user.");
18
18
  const RadarSearchUsersNearLocation_UserSchema = z.object({
19
19
  _id: z.string().describe("Internal Radar user ID.").nullable(),
20
20
  userId: z.string().describe("External user ID, if provided.").nullable().optional(),
21
21
  deviceId: z.string().describe("Radar device identifier.").nullable(),
22
22
  location: RadarSearchUsersNearLocation_UserLocationSchema.nullable(),
23
23
  updatedAt: z.string().describe("ISO 8601 timestamp of last update.").nullable()
24
- }).describe("User object returned by Radar search.");
24
+ }).passthrough().describe("User object returned by Radar search.");
25
25
  const radarSearchUsersNearLocation = action("RADAR_SEARCH_USERS_NEAR_LOCATION", {
26
26
  slug: "radar-search-users-near-location",
27
27
  name: "Search Users Near Location",
@@ -30,7 +30,7 @@ const radarSearchUsersNearLocation = action("RADAR_SEARCH_USERS_NEAR_LOCATION",
30
30
  output: z.object({
31
31
  meta: RadarSearchUsersNearLocation_MetaSchema.nullable(),
32
32
  users: z.array(RadarSearchUsersNearLocation_UserSchema).describe("List of users found within the specified radius.")
33
- }).describe("Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.")
33
+ }).passthrough().describe("Response model for SEARCH_USERS_NEAR_LOCATION, containing found users and metadata.")
34
34
  });
35
35
  //#endregion
36
36
  export { radarSearchUsersNearLocation };
@@ -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});\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}).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}).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}).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;AACD,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,SAAS,6BAA6B;AACzC,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,SAAS,uCAAuC;AAMnD,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,SAAS,qFAOF;AACV,CAAC"}
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"}
@@ -24,7 +24,7 @@ const RadarTrackLocationUpdateOutput = zod.z.object({
24
24
  meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response metadata with HTTP status code"),
25
25
  user: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The user object with location, geofences, places, beacons, fraud detection, and segments").nullable().optional(),
26
26
  events: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of events triggered by this track (geofence entries/exits, place entries)").nullable().optional()
27
- }).describe("Response model containing the tracked user, events, and metadata.\nBased on Radar API: https://docs.radar.com/api");
27
+ }).passthrough().describe("Response model containing the tracked user, events, and metadata.\nBased on Radar API: https://docs.radar.com/api");
28
28
  const radarTrackLocationUpdate = require_action.action("RADAR_TRACK_LOCATION_UPDATE", {
29
29
  slug: "radar-track-location-update",
30
30
  name: "Track Location Update",
@@ -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}).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,CAAC,CAAC,SAAS,sCAAsC;CACrE,WAAWA,IAAAA,EAAE,OAAO,C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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,CAAC,CAAC,SAAS,sCAAsC;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACjE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,sGAAsG;AAClH,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC;CAC1F,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mHAAmH;AAE7I,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -24,7 +24,7 @@ declare const RadarTrackLocationUpdateOutput: z.ZodObject<{
24
24
  meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
25
  user: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
26
  events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const radarTrackLocationUpdate: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  accuracy: number;
30
30
  deviceId: string;
@@ -24,7 +24,7 @@ declare const RadarTrackLocationUpdateOutput: z.ZodObject<{
24
24
  meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
25
  user: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
26
  events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const radarTrackLocationUpdate: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  accuracy: number;
30
30
  deviceId: string;
@@ -27,7 +27,7 @@ const radarTrackLocationUpdate = action("RADAR_TRACK_LOCATION_UPDATE", {
27
27
  meta: z.record(z.string(), z.unknown()).describe("Response metadata with HTTP status code"),
28
28
  user: z.record(z.string(), z.unknown()).describe("The user object with location, geofences, places, beacons, fraud detection, and segments").nullable().optional(),
29
29
  events: z.array(z.record(z.string(), z.unknown())).describe("Array of events triggered by this track (geofence entries/exits, place entries)").nullable().optional()
30
- }).describe("Response model containing the tracked user, events, and metadata.\nBased on Radar API: https://docs.radar.com/api")
30
+ }).passthrough().describe("Response model containing the tracked user, events, and metadata.\nBased on Radar API: https://docs.radar.com/api")
31
31
  });
32
32
  //#endregion
33
33
  export { radarTrackLocationUpdate };
@@ -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}).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;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E,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,SAAS,mHAOF;AACV,CAAC"}
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"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/update-places-settings.ts
4
4
  const RadarUpdatePlacesSettingsInput = zod.z.object({ chainMetadata: zod.z.object({ enabled: zod.z.boolean().describe("Whether chain metadata detection is enabled for Places") }).describe("Chain metadata preferences for Places.").optional() }).describe("Request model for updating Places settings including chain metadata preferences.");
5
- const RadarUpdatePlacesSettings_MetaInfoSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP response code").nullable() }).describe("Meta information about the API response.");
5
+ const RadarUpdatePlacesSettings_MetaInfoSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP response code").nullable() }).passthrough().describe("Meta information about the API response.");
6
6
  const RadarUpdatePlacesSettings_PlacesSettingsSchema = zod.z.object({
7
7
  country: zod.z.array(zod.z.string()).describe("List of supported country codes").nullable().optional(),
8
8
  chainIds: zod.z.array(zod.z.string()).describe("Allowed chain IDs").nullable().optional(),
@@ -10,11 +10,11 @@ const RadarUpdatePlacesSettings_PlacesSettingsSchema = zod.z.object({
10
10
  chainDetection: zod.z.boolean().describe("Flag indicating whether chain detection is enabled").nullable().optional(),
11
11
  externalIdRequired: zod.z.boolean().describe("Flag indicating whether an external ID is required for places").nullable().optional(),
12
12
  chainMinimumConfidence: zod.z.number().int().describe("Minimum confidence for chain matching").nullable().optional()
13
- }).describe("Settings related to Radar Places for the project.");
13
+ }).passthrough().describe("Settings related to Radar Places for the project.");
14
14
  const RadarUpdatePlacesSettingsOutput = zod.z.object({
15
15
  meta: RadarUpdatePlacesSettings_MetaInfoSchema.nullable(),
16
16
  places: RadarUpdatePlacesSettings_PlacesSettingsSchema.nullable().optional()
17
- }).describe("Response model for updating Places settings.");
17
+ }).passthrough().describe("Response model for updating Places settings.");
18
18
  const radarUpdatePlacesSettings = require_action.action("RADAR_UPDATE_PLACES_SETTINGS", {
19
19
  slug: "radar-update-places-settings",
20
20
  name: "Update Places Settings",
@@ -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}).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}).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}).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,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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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