@keystrokehq/radar 0.1.2 → 0.1.4

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 (229) 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/dist/catalog.cjs +1 -1
  224. package/dist/catalog.cjs.map +1 -1
  225. package/dist/catalog.d.cts +1 -1
  226. package/dist/catalog.d.mts +1 -1
  227. package/dist/catalog.mjs +1 -1
  228. package/dist/catalog.mjs.map +1 -1
  229. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"upsert-beacon-by-id.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByIdInput = z.object({\n id: z.string().describe(\"The Radar beacon _id to create or update\"),\n tag: z.string().describe(\"A group for the beacon\").optional(),\n type: z.string().describe(\"Beacon type, must be 'ibeacon'\"),\n uuid: z.string().describe(\"The iBeacon UUID\"),\n major: z.union([z.string(), z.number().int()]),\n minor: z.union([z.string(), z.number().int()]),\n enabled: z.boolean().describe(\"If true, the beacon will generate events; defaults to true\").optional(),\n externalId: z.string().describe(\"External ID for the beacon\").optional(),\n coordinates: z.array(z.number()).describe(\"The approximate location in [longitude, latitude] format\"),\n description: z.string().describe(\"Display name for the beacon\").optional(),\n}).describe(\"Request model for upserting a beacon by Radar _id.\");\nconst RadarUpsertBeaconById_MetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).describe(\"Response metadata for beacon operations.\");\nconst RadarUpsertBeaconById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type (Point)\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).describe(\"Geometry object for beacon location.\");\nconst RadarUpsertBeaconById_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Beacon ID\").nullable(),\n tag: z.string().describe(\"Group tag for the beacon\").nullable().optional(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is live\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.union([z.string(), z.number().int()]).nullable().optional(),\n minor: z.union([z.string(), z.number().int()]).nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon generates events\").nullable().optional(),\n placeId: z.string().describe(\"Radar placeId associated with the beacon\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID or serial number of the beacon\").nullable().optional(),\n geometry: RadarUpsertBeaconById_GeometrySchema.nullable(),\n instance: z.string().describe(\"Instance for Eddystone UID\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601)\").nullable(),\n namespace: z.string().describe(\"Namespace for Eddystone UID\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601)\").nullable(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).describe(\"Beacon object returned by Radar API.\");\nexport const RadarUpsertBeaconByIdOutput = z.object({\n meta: RadarUpsertBeaconById_MetaSchema.nullable(),\n beacon: RadarUpsertBeaconById_BeaconObjectSchema.nullable(),\n}).describe(\"Response model for upserting a beacon by ID.\");\n\nexport const radarUpsertBeaconById = action(\"RADAR_UPSERT_BEACON_BY_ID\", {\n slug: \"radar-upsert-beacon-by-id\",\n name: \"Upsert Beacon by ID\",\n description: \"Tool to create or update a beacon by Radar _id. Use when you need to ensure a beacon with a specific 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CAAC,SAAS;CAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAMlD,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,iCAAiC,SAAS;EAChD,QAAQ,yCAAyC,SAAS;CAC5D,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"upsert-beacon-by-id.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByIdInput = z.object({\n id: z.string().describe(\"The Radar beacon _id to create or update\"),\n tag: z.string().describe(\"A group for the beacon\").optional(),\n type: z.string().describe(\"Beacon type, must be 'ibeacon'\"),\n uuid: z.string().describe(\"The iBeacon UUID\"),\n major: z.union([z.string(), z.number().int()]),\n minor: z.union([z.string(), z.number().int()]),\n enabled: z.boolean().describe(\"If true, the beacon will generate events; defaults to true\").optional(),\n externalId: z.string().describe(\"External ID for the beacon\").optional(),\n coordinates: z.array(z.number()).describe(\"The approximate location in [longitude, latitude] format\"),\n description: z.string().describe(\"Display name for the beacon\").optional(),\n}).describe(\"Request model for upserting a beacon by Radar _id.\");\nconst RadarUpsertBeaconById_MetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Response metadata for beacon operations.\");\nconst RadarUpsertBeaconById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type (Point)\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object for beacon location.\");\nconst RadarUpsertBeaconById_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Beacon ID\").nullable(),\n tag: z.string().describe(\"Group tag for the beacon\").nullable().optional(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is live\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.union([z.string(), z.number().int()]).nullable().optional(),\n minor: z.union([z.string(), z.number().int()]).nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon generates events\").nullable().optional(),\n placeId: z.string().describe(\"Radar placeId associated with the beacon\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID or serial number of the beacon\").nullable().optional(),\n geometry: RadarUpsertBeaconById_GeometrySchema.nullable(),\n instance: z.string().describe(\"Instance for Eddystone UID\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601)\").nullable(),\n namespace: z.string().describe(\"Namespace for Eddystone UID\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601)\").nullable(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar API.\");\nexport const RadarUpsertBeaconByIdOutput = z.object({\n meta: RadarUpsertBeaconById_MetaSchema.nullable(),\n beacon: RadarUpsertBeaconById_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon by ID.\");\n\nexport const radarUpsertBeaconById = action(\"RADAR_UPSERT_BEACON_BY_ID\", {\n slug: \"radar-upsert-beacon-by-id\",\n name: \"Upsert Beacon by ID\",\n description: \"Tool to create or update a beacon by Radar _id. Use when you need to ensure a beacon with a specific ID exists with updated properties.\",\n input: RadarUpsertBeaconByIdInput,\n output: RadarUpsertBeaconByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7C,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,mCAAmC,EAAE,OAAO,EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CA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xD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAMhE,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,iCAAiC,SAAS;EAChD,QAAQ,yCAAyC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
@@ -10,7 +10,7 @@ const RadarUpsertBeaconByTagInput = zod.z.object({
10
10
  minor: zod.z.string().describe("Minor ID for iBeacon type (required for ibeacon, not used for eddystone)").optional(),
11
11
  enabled: zod.z.boolean().describe("Whether the beacon is active and generates events"),
12
12
  instance: zod.z.string().describe("Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)").optional(),
13
- metadata: zod.z.object({}).describe("Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)").optional(),
13
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)").optional(),
14
14
  externalId: zod.z.string().describe("External identifier mapping to your database (appears in URL path)"),
15
15
  coordinates: zod.z.array(zod.z.number()).describe("Beacon location as [longitude, latitude] in GeoJSON format"),
16
16
  description: zod.z.string().describe("Human-readable display name for the beacon")
@@ -18,7 +18,7 @@ const RadarUpsertBeaconByTagInput = zod.z.object({
18
18
  const RadarUpsertBeaconByTag_BeaconGeometrySchema = zod.z.object({
19
19
  type: zod.z.string().describe("Geometry type, typically 'Point' for beacons").nullable(),
20
20
  coordinates: zod.z.array(zod.z.number()).describe("Coordinates as [longitude, latitude]")
21
- }).describe("Geometry details of a beacon");
21
+ }).passthrough().describe("Geometry details of a beacon");
22
22
  const RadarUpsertBeaconByTag_BeaconObjectSchema = zod.z.object({
23
23
  _id: zod.z.string().describe("Unique identifier of the beacon").nullable().optional(),
24
24
  tag: zod.z.string().describe("Tag associated with the beacon").nullable().optional(),
@@ -30,16 +30,16 @@ const RadarUpsertBeaconByTag_BeaconObjectSchema = zod.z.object({
30
30
  enabled: zod.z.boolean().describe("Whether the beacon is enabled").nullable().optional(),
31
31
  geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),
32
32
  instance: zod.z.string().describe("Instance for Eddystone type").nullable().optional(),
33
- metadata: zod.z.object({}).describe("Custom metadata of the beacon").nullable().optional(),
33
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata of the beacon").nullable().optional(),
34
34
  createdAt: zod.z.string().describe("ISO8601 timestamp when created").nullable().optional(),
35
35
  updatedAt: zod.z.string().describe("ISO8601 timestamp when last updated").nullable().optional(),
36
36
  externalId: zod.z.string().describe("External ID of the beacon").nullable().optional(),
37
37
  description: zod.z.string().describe("Description of the beacon").nullable().optional()
38
- }).describe("Representation of a Radar beacon");
38
+ }).passthrough().describe("Representation of a Radar beacon");
39
39
  const RadarUpsertBeaconByTagOutput = zod.z.object({
40
- meta: zod.z.object({}).describe("Response metadata"),
40
+ meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response metadata"),
41
41
  beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable()
42
- }).describe("Response model for upserting a beacon");
42
+ }).passthrough().describe("Response model for upserting a beacon");
43
43
  const radarUpsertBeaconByTag = require_action.action("RADAR_UPSERT_BEACON_BY_TAG", {
44
44
  slug: "radar-upsert-beacon-by-tag",
45
45
  name: "Upsert Beacon by Tag",
@@ -1 +1 @@
1
- {"version":3,"file":"upsert-beacon-by-tag.cjs","names":["z","action"],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByTagInput = z.object({\n tag: z.string().describe(\"Tag identifier for grouping the beacon (appears in URL path)\"),\n uid: z.string().describe(\"UID identifier for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"Beacon technology type: ibeacon or eddystone\"),\n uuid: z.string().describe(\"UUID identifier for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n major: z.string().describe(\"Major ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is active and generates events\"),\n instance: z.string().describe(\"Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n metadata: z.object({}).describe(\"Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)\").optional(),\n externalId: z.string().describe(\"External identifier mapping to your database (appears in URL path)\"),\n coordinates: z.array(z.number()).describe(\"Beacon location as [longitude, latitude] in GeoJSON format\"),\n description: z.string().describe(\"Human-readable display name for the beacon\"),\n}).describe(\"Request model for upserting a beacon by tag and externalId.\");\nconst RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, typically 'Point' for beacons\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).describe(\"Geometry details of a beacon\");\nconst RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the beacon\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uid: z.string().describe(\"UID for Eddystone type\").nullable().optional(),\n type: z.string().describe(\"Type of beacon (ibeacon or eddystone)\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon type\").nullable().optional(),\n major: z.string().describe(\"Major ID for iBeacon type\").nullable().optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable().optional(),\n geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),\n instance: z.string().describe(\"Instance for Eddystone type\").nullable().optional(),\n metadata: z.object({}).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable().optional(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).describe(\"Representation of a Radar beacon\");\nexport const RadarUpsertBeaconByTagOutput = z.object({\n meta: z.object({}).describe(\"Response metadata\"),\n beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable(),\n}).describe(\"Response model for upserting a beacon\");\n\nexport const radarUpsertBeaconByTag = action(\"RADAR_UPSERT_BEACON_BY_TAG\", {\n slug: \"radar-upsert-beacon-by-tag\",\n name: \"Upsert Beacon by Tag\",\n description: \"Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.\",\n input: RadarUpsertBeaconByTagInput,\n output: RadarUpsertBeaconByTagOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EA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CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mBAAmB;CAC/C,QAAQ,0CAA0C,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"upsert-beacon-by-tag.cjs","names":["z","action"],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByTagInput = z.object({\n tag: z.string().describe(\"Tag identifier for grouping the beacon (appears in URL path)\"),\n uid: z.string().describe(\"UID identifier for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"Beacon technology type: ibeacon or eddystone\"),\n uuid: z.string().describe(\"UUID identifier for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n major: z.string().describe(\"Major ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is active and generates events\"),\n instance: z.string().describe(\"Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)\").optional(),\n externalId: z.string().describe(\"External identifier mapping to your database (appears in URL path)\"),\n coordinates: z.array(z.number()).describe(\"Beacon location as [longitude, latitude] in GeoJSON format\"),\n description: z.string().describe(\"Human-readable display name for the beacon\"),\n}).describe(\"Request model for upserting a beacon by tag and externalId.\");\nconst RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, typically 'Point' for beacons\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"Geometry details of a beacon\");\nconst RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the beacon\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uid: z.string().describe(\"UID for Eddystone type\").nullable().optional(),\n type: z.string().describe(\"Type of beacon (ibeacon or eddystone)\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon type\").nullable().optional(),\n major: z.string().describe(\"Major ID for iBeacon type\").nullable().optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable().optional(),\n geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),\n instance: z.string().describe(\"Instance for Eddystone type\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable().optional(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar beacon\");\nexport const RadarUpsertBeaconByTagOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon\");\n\nexport const radarUpsertBeaconByTag = action(\"RADAR_UPSERT_BEACON_BY_TAG\", {\n slug: \"radar-upsert-beacon-by-tag\",\n name: \"Upsert Beacon by Tag\",\n description: \"Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.\",\n input: RadarUpsertBeaconByTagInput,\n output: RadarUpsertBeaconByTagOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACzH,MAAMA,IAAAA,EAAE,KAAK,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,SAAS,8CAA8C;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACtH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC3H,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACpG,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4DAA4D;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,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CAC1G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mBAAmB;CACpE,QAAQ,0CAA0C,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,13 +13,13 @@ declare const RadarUpsertBeaconByTagInput: z.ZodObject<{
13
13
  minor: z.ZodOptional<z.ZodString>;
14
14
  enabled: z.ZodBoolean;
15
15
  instance: z.ZodOptional<z.ZodString>;
16
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
16
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
17
  externalId: z.ZodString;
18
18
  coordinates: z.ZodArray<z.ZodNumber>;
19
19
  description: z.ZodString;
20
20
  }, z.core.$strip>;
21
21
  declare const RadarUpsertBeaconByTagOutput: z.ZodObject<{
22
- meta: z.ZodObject<{}, z.core.$strip>;
22
+ meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
23
  beacon: z.ZodNullable<z.ZodObject<{
24
24
  _id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -32,15 +32,15 @@ declare const RadarUpsertBeaconByTagOutput: z.ZodObject<{
32
32
  geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
33
  type: z.ZodNullable<z.ZodString>;
34
34
  coordinates: z.ZodArray<z.ZodNumber>;
35
- }, z.core.$strip>>>;
35
+ }, z.core.$loose>>>;
36
36
  instance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
37
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
38
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  description: 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 radarUpsertBeaconByTag: import("@keystrokehq/action").WorkflowActionDefinition<{
45
45
  tag: string;
46
46
  type: "ibeacon" | "eddystone";
@@ -53,7 +53,7 @@ declare const radarUpsertBeaconByTag: import("@keystrokehq/action").WorkflowActi
53
53
  major?: string | undefined;
54
54
  minor?: string | undefined;
55
55
  instance?: string | undefined;
56
- metadata?: Record<string, never> | undefined;
56
+ metadata?: Record<string, unknown> | undefined;
57
57
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
58
58
  //#endregion
59
59
  export { radarUpsertBeaconByTag };
@@ -13,13 +13,13 @@ declare const RadarUpsertBeaconByTagInput: z.ZodObject<{
13
13
  minor: z.ZodOptional<z.ZodString>;
14
14
  enabled: z.ZodBoolean;
15
15
  instance: z.ZodOptional<z.ZodString>;
16
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
16
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
17
  externalId: z.ZodString;
18
18
  coordinates: z.ZodArray<z.ZodNumber>;
19
19
  description: z.ZodString;
20
20
  }, z.core.$strip>;
21
21
  declare const RadarUpsertBeaconByTagOutput: z.ZodObject<{
22
- meta: z.ZodObject<{}, z.core.$strip>;
22
+ meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
23
  beacon: z.ZodNullable<z.ZodObject<{
24
24
  _id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -32,15 +32,15 @@ declare const RadarUpsertBeaconByTagOutput: z.ZodObject<{
32
32
  geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
33
  type: z.ZodNullable<z.ZodString>;
34
34
  coordinates: z.ZodArray<z.ZodNumber>;
35
- }, z.core.$strip>>>;
35
+ }, z.core.$loose>>>;
36
36
  instance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
37
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
38
  createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  description: 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 radarUpsertBeaconByTag: import("@keystrokehq/action").WorkflowActionDefinition<{
45
45
  tag: string;
46
46
  type: "ibeacon" | "eddystone";
@@ -53,7 +53,7 @@ declare const radarUpsertBeaconByTag: import("@keystrokehq/action").WorkflowActi
53
53
  major?: string | undefined;
54
54
  minor?: string | undefined;
55
55
  instance?: string | undefined;
56
- metadata?: Record<string, never> | undefined;
56
+ metadata?: Record<string, unknown> | undefined;
57
57
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
58
58
  //#endregion
59
59
  export { radarUpsertBeaconByTag };
@@ -10,7 +10,7 @@ const RadarUpsertBeaconByTagInput = z.object({
10
10
  minor: z.string().describe("Minor ID for iBeacon type (required for ibeacon, not used for eddystone)").optional(),
11
11
  enabled: z.boolean().describe("Whether the beacon is active and generates events"),
12
12
  instance: z.string().describe("Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)").optional(),
13
- metadata: z.object({}).describe("Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)").optional(),
13
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)").optional(),
14
14
  externalId: z.string().describe("External identifier mapping to your database (appears in URL path)"),
15
15
  coordinates: z.array(z.number()).describe("Beacon location as [longitude, latitude] in GeoJSON format"),
16
16
  description: z.string().describe("Human-readable display name for the beacon")
@@ -18,7 +18,7 @@ const RadarUpsertBeaconByTagInput = z.object({
18
18
  const RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({
19
19
  type: z.string().describe("Geometry type, typically 'Point' for beacons").nullable(),
20
20
  coordinates: z.array(z.number()).describe("Coordinates as [longitude, latitude]")
21
- }).describe("Geometry details of a beacon");
21
+ }).passthrough().describe("Geometry details of a beacon");
22
22
  const RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({
23
23
  _id: z.string().describe("Unique identifier of the beacon").nullable().optional(),
24
24
  tag: z.string().describe("Tag associated with the beacon").nullable().optional(),
@@ -30,21 +30,21 @@ const RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({
30
30
  enabled: z.boolean().describe("Whether the beacon is enabled").nullable().optional(),
31
31
  geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),
32
32
  instance: z.string().describe("Instance for Eddystone type").nullable().optional(),
33
- metadata: z.object({}).describe("Custom metadata of the beacon").nullable().optional(),
33
+ metadata: z.record(z.string(), z.unknown()).describe("Custom metadata of the beacon").nullable().optional(),
34
34
  createdAt: z.string().describe("ISO8601 timestamp when created").nullable().optional(),
35
35
  updatedAt: z.string().describe("ISO8601 timestamp when last updated").nullable().optional(),
36
36
  externalId: z.string().describe("External ID of the beacon").nullable().optional(),
37
37
  description: z.string().describe("Description of the beacon").nullable().optional()
38
- }).describe("Representation of a Radar beacon");
38
+ }).passthrough().describe("Representation of a Radar beacon");
39
39
  const radarUpsertBeaconByTag = action("RADAR_UPSERT_BEACON_BY_TAG", {
40
40
  slug: "radar-upsert-beacon-by-tag",
41
41
  name: "Upsert Beacon by Tag",
42
42
  description: "Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.",
43
43
  input: RadarUpsertBeaconByTagInput,
44
44
  output: z.object({
45
- meta: z.object({}).describe("Response metadata"),
45
+ meta: z.record(z.string(), z.unknown()).describe("Response metadata"),
46
46
  beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable()
47
- }).describe("Response model for upserting a beacon")
47
+ }).passthrough().describe("Response model for upserting a beacon")
48
48
  });
49
49
  //#endregion
50
50
  export { radarUpsertBeaconByTag };
@@ -1 +1 @@
1
- {"version":3,"file":"upsert-beacon-by-tag.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByTagInput = z.object({\n tag: z.string().describe(\"Tag identifier for grouping the beacon (appears in URL path)\"),\n uid: z.string().describe(\"UID identifier for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"Beacon technology type: ibeacon or eddystone\"),\n uuid: z.string().describe(\"UUID identifier for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n major: z.string().describe(\"Major ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is active and generates events\"),\n instance: z.string().describe(\"Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n metadata: z.object({}).describe(\"Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)\").optional(),\n externalId: z.string().describe(\"External identifier mapping to your database (appears in URL path)\"),\n coordinates: z.array(z.number()).describe(\"Beacon location as [longitude, latitude] in GeoJSON format\"),\n description: z.string().describe(\"Human-readable display name for the beacon\"),\n}).describe(\"Request model for upserting a beacon by tag and externalId.\");\nconst RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, typically 'Point' for beacons\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).describe(\"Geometry details of a beacon\");\nconst RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the beacon\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uid: z.string().describe(\"UID for Eddystone type\").nullable().optional(),\n type: z.string().describe(\"Type of beacon (ibeacon or eddystone)\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon type\").nullable().optional(),\n major: z.string().describe(\"Major ID for iBeacon type\").nullable().optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable().optional(),\n geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),\n instance: z.string().describe(\"Instance for Eddystone type\").nullable().optional(),\n metadata: z.object({}).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable().optional(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).describe(\"Representation of a Radar beacon\");\nexport const RadarUpsertBeaconByTagOutput = z.object({\n meta: z.object({}).describe(\"Response metadata\"),\n beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable(),\n}).describe(\"Response model for upserting a beacon\");\n\nexport const radarUpsertBeaconByTag = action(\"RADAR_UPSERT_BEACON_BY_TAG\", {\n slug: \"radar-upsert-beacon-by-tag\",\n name: \"Upsert Beacon by Tag\",\n description: \"Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.\",\n input: RadarUpsertBeaconByTagInput,\n output: RadarUpsertBeaconByTagOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACzH,MAAM,EAAE,KAAK,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,SAAS,8CAA8C;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC3H,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACtI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AAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAM9C,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mBAAmB;EAC/C,QAAQ,0CAA0C,SAAS;CAC7D,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"upsert-beacon-by-tag.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByTagInput = z.object({\n tag: z.string().describe(\"Tag identifier for grouping the beacon (appears in URL path)\"),\n uid: z.string().describe(\"UID identifier for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"Beacon technology type: ibeacon or eddystone\"),\n uuid: z.string().describe(\"UUID identifier for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n major: z.string().describe(\"Major ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is active and generates events\"),\n instance: z.string().describe(\"Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)\").optional(),\n externalId: z.string().describe(\"External identifier mapping to your database (appears in URL path)\"),\n coordinates: z.array(z.number()).describe(\"Beacon location as [longitude, latitude] in GeoJSON format\"),\n description: z.string().describe(\"Human-readable display name for the beacon\"),\n}).describe(\"Request model for upserting a beacon by tag and externalId.\");\nconst RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, typically 'Point' for beacons\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"Geometry details of a beacon\");\nconst RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the beacon\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uid: z.string().describe(\"UID for Eddystone type\").nullable().optional(),\n type: z.string().describe(\"Type of beacon (ibeacon or eddystone)\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon type\").nullable().optional(),\n major: z.string().describe(\"Major ID for iBeacon type\").nullable().optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable().optional(),\n geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),\n instance: z.string().describe(\"Instance for Eddystone type\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable().optional(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar beacon\");\nexport const RadarUpsertBeaconByTagOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon\");\n\nexport const radarUpsertBeaconByTag = action(\"RADAR_UPSERT_BEACON_BY_TAG\", {\n slug: \"radar-upsert-beacon-by-tag\",\n name: \"Upsert Beacon by Tag\",\n description: \"Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.\",\n input: RadarUpsertBeaconByTagInput,\n output: RadarUpsertBeaconByTagOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACzH,MAAM,EAAE,KAAK,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,SAAS,8CAA8C;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC3H,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACpG,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4DAA4D;CACt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,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAM5D,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mBAAmB;EACpE,QAAQ,0CAA0C,SAAS;CAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
@@ -11,34 +11,34 @@ const RadarUpsertGeofenceByIdInput = zod.z.object({
11
11
  ]).describe("Geofence geometry type: circle, polygon, or isochrone"),
12
12
  radius: zod.z.number().describe("Distance in meters (required for circle and isochrone types)").optional(),
13
13
  enabled: zod.z.boolean().describe("Boolean to enable/disable event generation for this geofence").optional(),
14
- metadata: zod.z.object({}).describe("Custom key-value pairs (up to 16 keys)").optional(),
14
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs (up to 16 keys)").optional(),
15
15
  externalId: zod.z.string().describe("External database reference").optional(),
16
16
  coordinates: zod.z.union([zod.z.array(zod.z.number()), zod.z.array(zod.z.array(zod.z.number()))]),
17
17
  description: zod.z.string().describe("A display name for the geofence (required by API)")
18
18
  }).describe("Request model for upserting a geofence by its Radar internal _id.");
19
- const RadarUpsertGeofenceById_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code returned by Radar API").nullable() }).describe("Response metadata from Radar API.");
19
+ const RadarUpsertGeofenceById_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code returned by Radar API").nullable() }).passthrough().describe("Response metadata from Radar API.");
20
20
  const RadarUpsertGeofenceById_GeometrySchema = zod.z.object({
21
21
  type: zod.z.string().describe("Geometry type, e.g., 'Point' or 'Polygon'").nullable(),
22
22
  coordinates: zod.z.union([zod.z.array(zod.z.number()), zod.z.array(zod.z.array(zod.z.array(zod.z.number())))])
23
- }).describe("Geometry details of a geofence.");
23
+ }).passthrough().describe("Geometry details of a geofence.");
24
24
  const RadarUpsertGeofenceById_GeofenceSchema = zod.z.object({
25
25
  _id: zod.z.string().describe("Unique identifier of the geofence").nullable(),
26
26
  tag: zod.z.string().describe("Tag associated with the geofence").nullable().optional(),
27
27
  type: zod.z.string().describe("Type of the geofence shape").nullable(),
28
28
  enabled: zod.z.boolean().describe("Whether the geofence is enabled").nullable().optional(),
29
29
  geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),
30
- metadata: zod.z.object({}).describe("Custom metadata of the geofence").nullable().optional(),
30
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata of the geofence").nullable().optional(),
31
31
  createdAt: zod.z.string().describe("ISO8601 timestamp when created").nullable(),
32
32
  updatedAt: zod.z.string().describe("ISO8601 timestamp when last updated").nullable(),
33
33
  externalId: zod.z.string().describe("External identifier of the geofence").nullable().optional(),
34
34
  description: zod.z.string().describe("Description of the geofence").nullable().optional(),
35
- geometryCenter: zod.z.object({}).describe("Center point of the geofence").nullable().optional(),
35
+ geometryCenter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Center point of the geofence").nullable().optional(),
36
36
  geometryRadius: zod.z.number().describe("Radius of the geofence in meters (for circles)").nullable().optional()
37
- }).describe("Representation of a Radar geofence.");
37
+ }).passthrough().describe("Representation of a Radar geofence.");
38
38
  const RadarUpsertGeofenceByIdOutput = zod.z.object({
39
39
  meta: RadarUpsertGeofenceById_MetaSchema.nullable(),
40
40
  geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable()
41
- }).describe("Response model for upserting a geofence by ID.");
41
+ }).passthrough().describe("Response model for upserting a geofence by ID.");
42
42
  const radarUpsertGeofenceById = require_action.action("RADAR_UPSERT_GEOFENCE_BY_ID", {
43
43
  slug: "radar-upsert-geofence-by-id",
44
44
  name: "Upsert Geofence By ID",
@@ -1 +1 @@
1
- {"version":3,"file":"upsert-geofence-by-id.cjs","names":["z","action"],"sources":["../../src/actions/upsert-geofence-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertGeofenceByIdInput = z.object({\n id: z.string().describe(\"Radar internal geofence _id to create or update\"),\n tag: z.string().describe(\"Group identifier for the geofence\").optional(),\n type: z.enum([\"circle\", \"polygon\", \"isochrone\"]).describe(\"Geofence geometry type: circle, polygon, or isochrone\"),\n radius: z.number().describe(\"Distance in meters (required for circle and isochrone types)\").optional(),\n enabled: z.boolean().describe(\"Boolean to enable/disable event generation for this geofence\").optional(),\n metadata: z.object({}).describe(\"Custom key-value pairs (up to 16 keys)\").optional(),\n externalId: z.string().describe(\"External database reference\").optional(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.number()))]),\n description: z.string().describe(\"A display name for the geofence (required by API)\"),\n}).describe(\"Request model for upserting a geofence by its Radar internal _id.\");\nconst RadarUpsertGeofenceById_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by Radar API\").nullable(),\n}).describe(\"Response metadata from Radar API.\");\nconst RadarUpsertGeofenceById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'\").nullable(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.array(z.number())))]),\n}).describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofenceById_GeofenceSchema = 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 type: z.string().describe(\"Type of the geofence shape\").nullable(),\n enabled: z.boolean().describe(\"Whether the geofence is enabled\").nullable().optional(),\n geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),\n metadata: z.object({}).describe(\"Custom metadata of the geofence\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable(),\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.object({}).describe(\"Center point of the geofence\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters (for circles)\").nullable().optional(),\n}).describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceByIdOutput = z.object({\n meta: RadarUpsertGeofenceById_MetaSchema.nullable(),\n geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable(),\n}).describe(\"Response model for upserting a geofence by ID.\");\n\nexport const radarUpsertGeofenceById = action(\"RADAR_UPSERT_GEOFENCE_BY_ID\", {\n slug: \"radar-upsert-geofence-by-id\",\n name: \"Upsert Geofence By ID\",\n description: \"Tool to create or update a geofence by Radar _id. Use when you need to upsert a geofence using its internal Radar identifier.\",\n input: RadarUpsertGeofenceByIdInput,\n output: RadarUpsertGeofenceByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAW;CAAW,CAAC,CAAC,CAAC,SAAS,uDAAuD;CACjH,QAAQA,IAAAA,EA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AAC"}
1
+ {"version":3,"file":"upsert-geofence-by-id.cjs","names":["z","action"],"sources":["../../src/actions/upsert-geofence-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertGeofenceByIdInput = z.object({\n id: z.string().describe(\"Radar internal geofence _id to create or update\"),\n tag: z.string().describe(\"Group identifier for the geofence\").optional(),\n type: z.enum([\"circle\", \"polygon\", \"isochrone\"]).describe(\"Geofence geometry type: circle, polygon, or isochrone\"),\n radius: z.number().describe(\"Distance in meters (required for circle and isochrone types)\").optional(),\n enabled: z.boolean().describe(\"Boolean to enable/disable event generation for this geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (up to 16 keys)\").optional(),\n externalId: z.string().describe(\"External database reference\").optional(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.number()))]),\n description: z.string().describe(\"A display name for the geofence (required by API)\"),\n}).describe(\"Request model for upserting a geofence by its Radar internal _id.\");\nconst RadarUpsertGeofenceById_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by Radar API\").nullable(),\n}).passthrough().describe(\"Response metadata from Radar API.\");\nconst RadarUpsertGeofenceById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'\").nullable(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.array(z.number())))]),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofenceById_GeofenceSchema = 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 type: z.string().describe(\"Type of the geofence shape\").nullable(),\n enabled: z.boolean().describe(\"Whether the geofence is enabled\").nullable().optional(),\n geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable(),\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\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters (for circles)\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceByIdOutput = z.object({\n meta: RadarUpsertGeofenceById_MetaSchema.nullable(),\n geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a geofence by ID.\");\n\nexport const radarUpsertGeofenceById = action(\"RADAR_UPSERT_GEOFENCE_BY_ID\", {\n slug: \"radar-upsert-geofence-by-id\",\n name: \"Upsert Geofence By ID\",\n description: \"Tool to create or update a geofence by Radar _id. Use when you need to upsert a geofence using its internal Radar identifier.\",\n input: RadarUpsertGeofenceByIdInput,\n output: RadarUpsertGeofenceByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAW;CAAW,CAAC,CAAC,CAAC,SAAS,uDAAuD;CACjH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACrG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,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ZodOptional<z.ZodNumber>;
13
13
  enabled: z.ZodOptional<z.ZodBoolean>;
14
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
14
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
15
  externalId: z.ZodOptional<z.ZodString>;
16
16
  coordinates: z.ZodUnion<readonly [z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodArray<z.ZodNumber>>]>;
17
17
  description: z.ZodString;
@@ -19,7 +19,7 @@ declare const RadarUpsertGeofenceByIdInput: z.ZodObject<{
19
19
  declare const RadarUpsertGeofenceByIdOutput: z.ZodObject<{
20
20
  meta: z.ZodNullable<z.ZodObject<{
21
21
  code: z.ZodNullable<z.ZodNumber>;
22
- }, z.core.$strip>>;
22
+ }, z.core.$loose>>;
23
23
  geofence: z.ZodNullable<z.ZodObject<{
24
24
  _id: z.ZodNullable<z.ZodString>;
25
25
  tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -28,16 +28,16 @@ declare const RadarUpsertGeofenceByIdOutput: z.ZodObject<{
28
28
  geometry: z.ZodNullable<z.ZodObject<{
29
29
  type: z.ZodNullable<z.ZodString>;
30
30
  coordinates: z.ZodUnion<readonly [z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber>>>]>;
31
- }, z.core.$strip>>;
32
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
31
+ }, z.core.$loose>>;
32
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
33
33
  createdAt: z.ZodNullable<z.ZodString>;
34
34
  updatedAt: z.ZodNullable<z.ZodString>;
35
35
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
- geometryCenter: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
37
+ geometryCenter: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
38
  geometryRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
- }, z.core.$strip>>;
40
- }, z.core.$strip>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$loose>;
41
41
  declare const radarUpsertGeofenceById: import("@keystrokehq/action").WorkflowActionDefinition<{
42
42
  id: string;
43
43
  type: "circle" | "polygon" | "isochrone";
@@ -46,7 +46,7 @@ declare const radarUpsertGeofenceById: import("@keystrokehq/action").WorkflowAct
46
46
  tag?: string | undefined;
47
47
  radius?: number | undefined;
48
48
  enabled?: boolean | undefined;
49
- metadata?: Record<string, never> | undefined;
49
+ metadata?: Record<string, unknown> | undefined;
50
50
  externalId?: string | undefined;
51
51
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
52
  //#endregion
@@ -11,7 +11,7 @@ declare const RadarUpsertGeofenceByIdInput: z.ZodObject<{
11
11
  }>;
12
12
  radius: z.ZodOptional<z.ZodNumber>;
13
13
  enabled: z.ZodOptional<z.ZodBoolean>;
14
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
14
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
15
  externalId: z.ZodOptional<z.ZodString>;
16
16
  coordinates: z.ZodUnion<readonly [z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodArray<z.ZodNumber>>]>;
17
17
  description: z.ZodString;
@@ -19,7 +19,7 @@ declare const RadarUpsertGeofenceByIdInput: z.ZodObject<{
19
19
  declare const RadarUpsertGeofenceByIdOutput: z.ZodObject<{
20
20
  meta: z.ZodNullable<z.ZodObject<{
21
21
  code: z.ZodNullable<z.ZodNumber>;
22
- }, z.core.$strip>>;
22
+ }, z.core.$loose>>;
23
23
  geofence: z.ZodNullable<z.ZodObject<{
24
24
  _id: z.ZodNullable<z.ZodString>;
25
25
  tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -28,16 +28,16 @@ declare const RadarUpsertGeofenceByIdOutput: z.ZodObject<{
28
28
  geometry: z.ZodNullable<z.ZodObject<{
29
29
  type: z.ZodNullable<z.ZodString>;
30
30
  coordinates: z.ZodUnion<readonly [z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber>>>]>;
31
- }, z.core.$strip>>;
32
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
31
+ }, z.core.$loose>>;
32
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
33
33
  createdAt: z.ZodNullable<z.ZodString>;
34
34
  updatedAt: z.ZodNullable<z.ZodString>;
35
35
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
- geometryCenter: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
37
+ geometryCenter: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
38
38
  geometryRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
- }, z.core.$strip>>;
40
- }, z.core.$strip>;
39
+ }, z.core.$loose>>;
40
+ }, z.core.$loose>;
41
41
  declare const radarUpsertGeofenceById: import("@keystrokehq/action").WorkflowActionDefinition<{
42
42
  id: string;
43
43
  type: "circle" | "polygon" | "isochrone";
@@ -46,7 +46,7 @@ declare const radarUpsertGeofenceById: import("@keystrokehq/action").WorkflowAct
46
46
  tag?: string | undefined;
47
47
  radius?: number | undefined;
48
48
  enabled?: boolean | undefined;
49
- metadata?: Record<string, never> | undefined;
49
+ metadata?: Record<string, unknown> | undefined;
50
50
  externalId?: string | undefined;
51
51
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
52
  //#endregion
@@ -11,30 +11,30 @@ const RadarUpsertGeofenceByIdInput = z.object({
11
11
  ]).describe("Geofence geometry type: circle, polygon, or isochrone"),
12
12
  radius: z.number().describe("Distance in meters (required for circle and isochrone types)").optional(),
13
13
  enabled: z.boolean().describe("Boolean to enable/disable event generation for this geofence").optional(),
14
- metadata: z.object({}).describe("Custom key-value pairs (up to 16 keys)").optional(),
14
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs (up to 16 keys)").optional(),
15
15
  externalId: z.string().describe("External database reference").optional(),
16
16
  coordinates: z.union([z.array(z.number()), z.array(z.array(z.number()))]),
17
17
  description: z.string().describe("A display name for the geofence (required by API)")
18
18
  }).describe("Request model for upserting a geofence by its Radar internal _id.");
19
- const RadarUpsertGeofenceById_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code returned by Radar API").nullable() }).describe("Response metadata from Radar API.");
19
+ const RadarUpsertGeofenceById_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code returned by Radar API").nullable() }).passthrough().describe("Response metadata from Radar API.");
20
20
  const RadarUpsertGeofenceById_GeometrySchema = z.object({
21
21
  type: z.string().describe("Geometry type, e.g., 'Point' or 'Polygon'").nullable(),
22
22
  coordinates: z.union([z.array(z.number()), z.array(z.array(z.array(z.number())))])
23
- }).describe("Geometry details of a geofence.");
23
+ }).passthrough().describe("Geometry details of a geofence.");
24
24
  const RadarUpsertGeofenceById_GeofenceSchema = z.object({
25
25
  _id: z.string().describe("Unique identifier of the geofence").nullable(),
26
26
  tag: z.string().describe("Tag associated with the geofence").nullable().optional(),
27
27
  type: z.string().describe("Type of the geofence shape").nullable(),
28
28
  enabled: z.boolean().describe("Whether the geofence is enabled").nullable().optional(),
29
29
  geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),
30
- metadata: z.object({}).describe("Custom metadata of the geofence").nullable().optional(),
30
+ metadata: z.record(z.string(), z.unknown()).describe("Custom metadata of the geofence").nullable().optional(),
31
31
  createdAt: z.string().describe("ISO8601 timestamp when created").nullable(),
32
32
  updatedAt: z.string().describe("ISO8601 timestamp when last updated").nullable(),
33
33
  externalId: z.string().describe("External identifier of the geofence").nullable().optional(),
34
34
  description: z.string().describe("Description of the geofence").nullable().optional(),
35
- geometryCenter: z.object({}).describe("Center point of the geofence").nullable().optional(),
35
+ geometryCenter: z.record(z.string(), z.unknown()).describe("Center point of the geofence").nullable().optional(),
36
36
  geometryRadius: z.number().describe("Radius of the geofence in meters (for circles)").nullable().optional()
37
- }).describe("Representation of a Radar geofence.");
37
+ }).passthrough().describe("Representation of a Radar geofence.");
38
38
  const radarUpsertGeofenceById = action("RADAR_UPSERT_GEOFENCE_BY_ID", {
39
39
  slug: "radar-upsert-geofence-by-id",
40
40
  name: "Upsert Geofence By ID",
@@ -43,7 +43,7 @@ const radarUpsertGeofenceById = action("RADAR_UPSERT_GEOFENCE_BY_ID", {
43
43
  output: z.object({
44
44
  meta: RadarUpsertGeofenceById_MetaSchema.nullable(),
45
45
  geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable()
46
- }).describe("Response model for upserting a geofence by ID.")
46
+ }).passthrough().describe("Response model for upserting a geofence by ID.")
47
47
  });
48
48
  //#endregion
49
49
  export { radarUpsertGeofenceById };
@@ -1 +1 @@
1
- {"version":3,"file":"upsert-geofence-by-id.mjs","names":[],"sources":["../../src/actions/upsert-geofence-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertGeofenceByIdInput = z.object({\n id: z.string().describe(\"Radar internal geofence _id to create or update\"),\n tag: z.string().describe(\"Group identifier for the geofence\").optional(),\n type: z.enum([\"circle\", \"polygon\", \"isochrone\"]).describe(\"Geofence geometry type: circle, polygon, or isochrone\"),\n radius: z.number().describe(\"Distance in meters (required for circle and isochrone types)\").optional(),\n enabled: z.boolean().describe(\"Boolean to enable/disable event generation for this geofence\").optional(),\n metadata: z.object({}).describe(\"Custom key-value pairs (up to 16 keys)\").optional(),\n externalId: z.string().describe(\"External database reference\").optional(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.number()))]),\n description: z.string().describe(\"A display name for the geofence (required by API)\"),\n}).describe(\"Request model for upserting a geofence by its Radar internal _id.\");\nconst RadarUpsertGeofenceById_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by Radar API\").nullable(),\n}).describe(\"Response metadata from Radar API.\");\nconst RadarUpsertGeofenceById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'\").nullable(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.array(z.number())))]),\n}).describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofenceById_GeofenceSchema = 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 type: z.string().describe(\"Type of the geofence shape\").nullable(),\n enabled: z.boolean().describe(\"Whether the geofence is enabled\").nullable().optional(),\n geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),\n metadata: z.object({}).describe(\"Custom metadata of the geofence\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable(),\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.object({}).describe(\"Center point of the geofence\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters (for circles)\").nullable().optional(),\n}).describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceByIdOutput = z.object({\n meta: RadarUpsertGeofenceById_MetaSchema.nullable(),\n geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable(),\n}).describe(\"Response model for upserting a geofence by ID.\");\n\nexport const radarUpsertGeofenceById = action(\"RADAR_UPSERT_GEOFENCE_BY_ID\", {\n slug: \"radar-upsert-geofence-by-id\",\n name: \"Upsert Geofence By ID\",\n description: \"Tool to create or update a geofence by Radar _id. Use when you need to upsert a geofence using its internal Radar identifier.\",\n input: RadarUpsertGeofenceByIdInput,\n output: RadarUpsertGeofenceByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,KAAK;EAAC;EAAU;EAAW;CAAW,CAAC,CAAC,CAAC,SAAS,uDAAuD;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACrG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,aAAa,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACtF,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,qCAAqC,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EACrF,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,aAAa,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAA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uCAAuC,SAAS;CAC5D,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"upsert-geofence-by-id.mjs","names":[],"sources":["../../src/actions/upsert-geofence-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertGeofenceByIdInput = z.object({\n id: z.string().describe(\"Radar internal geofence _id to create or update\"),\n tag: z.string().describe(\"Group identifier for the geofence\").optional(),\n type: z.enum([\"circle\", \"polygon\", \"isochrone\"]).describe(\"Geofence geometry type: circle, polygon, or isochrone\"),\n radius: z.number().describe(\"Distance in meters (required for circle and isochrone types)\").optional(),\n enabled: z.boolean().describe(\"Boolean to enable/disable event generation for this geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (up to 16 keys)\").optional(),\n externalId: z.string().describe(\"External database reference\").optional(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.number()))]),\n description: z.string().describe(\"A display name for the geofence (required by API)\"),\n}).describe(\"Request model for upserting a geofence by its Radar internal _id.\");\nconst RadarUpsertGeofenceById_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by Radar API\").nullable(),\n}).passthrough().describe(\"Response metadata from Radar API.\");\nconst RadarUpsertGeofenceById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'\").nullable(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.array(z.number())))]),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofenceById_GeofenceSchema = 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 type: z.string().describe(\"Type of the geofence shape\").nullable(),\n enabled: z.boolean().describe(\"Whether the geofence is enabled\").nullable().optional(),\n geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable(),\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\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters (for circles)\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceByIdOutput = z.object({\n meta: RadarUpsertGeofenceById_MetaSchema.nullable(),\n geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a geofence by ID.\");\n\nexport const radarUpsertGeofenceById = action(\"RADAR_UPSERT_GEOFENCE_BY_ID\", {\n slug: \"radar-upsert-geofence-by-id\",\n name: \"Upsert Geofence By ID\",\n description: \"Tool to create or update a geofence by Radar _id. Use when you need to upsert a geofence using its internal Radar identifier.\",\n input: RadarUpsertGeofenceByIdInput,\n output: RadarUpsertGeofenceByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,KAAK;EAAC;EAAU;EAAW;CAAW,CAAC,CAAC,CAAC,SAAS,uDAAuD;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACrG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BA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E,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,MAAM,mCAAmC,SAAS;EAClD,UAAU,uCAAuC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
@@ -14,7 +14,7 @@ const RadarUpsertGeofenceInput = zod.z.object({
14
14
  const RadarUpsertGeofence_GeometrySchema = zod.z.object({
15
15
  type: zod.z.string().describe("Geometry type, e.g., 'Point' or 'Polygon'.").nullable(),
16
16
  coordinates: zod.z.array(zod.z.unknown()).describe("Coordinates of the geofence geometry.")
17
- }).describe("Geometry details of a geofence.");
17
+ }).passthrough().describe("Geometry details of a geofence.");
18
18
  const RadarUpsertGeofence_GeofenceSchema = zod.z.object({
19
19
  _id: zod.z.string().describe("Unique identifier of the geofence.").nullable().optional(),
20
20
  tag: zod.z.string().describe("Tag associated with the geofence.").nullable().optional(),
@@ -25,11 +25,11 @@ const RadarUpsertGeofence_GeofenceSchema = zod.z.object({
25
25
  updatedAt: zod.z.string().describe("ISO8601 timestamp when last updated.").nullable(),
26
26
  externalId: zod.z.string().describe("External ID of the geofence.").nullable().optional(),
27
27
  description: zod.z.string().describe("Description of the geofence.").nullable().optional()
28
- }).describe("Representation of a Radar geofence.");
28
+ }).passthrough().describe("Representation of a Radar geofence.");
29
29
  const RadarUpsertGeofenceOutput = zod.z.object({
30
30
  meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response metadata."),
31
31
  geofence: RadarUpsertGeofence_GeofenceSchema.nullable()
32
- }).describe("Response model for UPSERT_GEOFENCE.");
32
+ }).passthrough().describe("Response model for UPSERT_GEOFENCE.");
33
33
  const radarUpsertGeofence = require_action.action("RADAR_UPSERT_GEOFENCE", {
34
34
  slug: "radar-upsert-geofence",
35
35
  name: "Upsert Geofence",
@@ -1 +1 @@
1
- {"version":3,"file":"upsert-geofence.cjs","names":["z","action"],"sources":["../../src/actions/upsert-geofence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertGeofenceInput = z.object({\n tag: z.string().describe(\"Tag of the geofence to create or update\"),\n type: z.enum([\"circle\", \"polygon\"]).describe(\"Shape type of the geofence\"),\n radius: z.number().describe(\"Radius in meters defining a circle. Required when type='circle'.\").optional(),\n geometry: z.record(z.string(), z.unknown()).describe(\"GeoJSON geometry object for the geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs attached to the geofence\").optional(),\n externalId: z.string().describe(\"External identifier of the geofence\"),\n coordinates: z.array(z.array(z.number())).describe(\"Array of [longitude, latitude] pairs defining a polygon. Required when type='polygon'.\").optional(),\n description: z.string().describe(\"Human-readable description of the geofence (required by the API)\"),\n}).describe(\"Request model for UPSERT_GEOFENCE.\");\nconst RadarUpsertGeofence_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates of the geofence geometry.\"),\n}).describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofence_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence shape.\").nullable(),\n geometry: RadarUpsertGeofence_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n}).describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofence: RadarUpsertGeofence_GeofenceSchema.nullable(),\n}).describe(\"Response model for UPSERT_GEOFENCE.\");\n\nexport const radarUpsertGeofence = action(\"RADAR_UPSERT_GEOFENCE\", {\n slug: \"radar-upsert-geofence\",\n name: \"Upsert Geofence\",\n description: \"Tool to create or update a geofence by tag and externalId. Use when ensuring a geofence exists or is updated based on identifiers.\",\n input: RadarUpsertGeofenceInput,\n output: RadarUpsertGeofenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,4BAA4B;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACzG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA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AC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB;CACrE,UAAU,mCAAmC,SAAS;AACxD,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAEjD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"upsert-geofence.cjs","names":["z","action"],"sources":["../../src/actions/upsert-geofence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertGeofenceInput = z.object({\n tag: z.string().describe(\"Tag of the geofence to create or update\"),\n type: z.enum([\"circle\", \"polygon\"]).describe(\"Shape type of the geofence\"),\n radius: z.number().describe(\"Radius in meters defining a circle. Required when type='circle'.\").optional(),\n geometry: z.record(z.string(), z.unknown()).describe(\"GeoJSON geometry object for the geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs attached to the geofence\").optional(),\n externalId: z.string().describe(\"External identifier of the geofence\"),\n coordinates: z.array(z.array(z.number())).describe(\"Array of [longitude, latitude] pairs defining a polygon. Required when type='polygon'.\").optional(),\n description: z.string().describe(\"Human-readable description of the geofence (required by the API)\"),\n}).describe(\"Request model for UPSERT_GEOFENCE.\");\nconst RadarUpsertGeofence_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates of the geofence geometry.\"),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofence_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence shape.\").nullable(),\n geometry: RadarUpsertGeofence_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofence: RadarUpsertGeofence_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for UPSERT_GEOFENCE.\");\n\nexport const radarUpsertGeofence = action(\"RADAR_UPSERT_GEOFENCE\", {\n slug: \"radar-upsert-geofence\",\n name: \"Upsert Geofence\",\n description: \"Tool to create or update a geofence by tag and externalId. Use when ensuring a geofence exists or is updated based on identifiers.\",\n input: RadarUpsertGeofenceInput,\n output: RadarUpsertGeofenceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,4BAA4B;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kE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