@keystrokehq/radar 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.cjs +12 -12
- package/dist/actions/autocomplete-address-or-place.cjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.cts +50 -3
- package/dist/actions/autocomplete-address-or-place.d.cts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.mts +50 -3
- package/dist/actions/autocomplete-address-or-place.d.mts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.mjs +12 -12
- package/dist/actions/autocomplete-address-or-place.mjs.map +1 -1
- package/dist/actions/create-beacon.cjs +12 -12
- package/dist/actions/create-beacon.cjs.map +1 -1
- package/dist/actions/create-beacon.d.cts +56 -3
- package/dist/actions/create-beacon.d.cts.map +1 -1
- package/dist/actions/create-beacon.d.mts +56 -3
- package/dist/actions/create-beacon.d.mts.map +1 -1
- package/dist/actions/create-beacon.mjs +12 -12
- package/dist/actions/create-beacon.mjs.map +1 -1
- package/dist/actions/create-trip.cjs +1 -1
- package/dist/actions/create-trip.cjs.map +1 -1
- package/dist/actions/create-trip.d.cts +44 -3
- package/dist/actions/create-trip.d.cts.map +1 -1
- package/dist/actions/create-trip.d.mts +44 -3
- package/dist/actions/create-trip.d.mts.map +1 -1
- package/dist/actions/create-trip.mjs +1 -1
- package/dist/actions/create-trip.mjs.map +1 -1
- package/dist/actions/delete-beacon.cjs +2 -2
- package/dist/actions/delete-beacon.cjs.map +1 -1
- package/dist/actions/delete-beacon.d.cts +11 -3
- package/dist/actions/delete-beacon.d.cts.map +1 -1
- package/dist/actions/delete-beacon.d.mts +11 -3
- package/dist/actions/delete-beacon.d.mts.map +1 -1
- package/dist/actions/delete-beacon.mjs +2 -2
- package/dist/actions/delete-beacon.mjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.cjs +2 -2
- package/dist/actions/delete-geofence-by-tag.cjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.cts +13 -3
- package/dist/actions/delete-geofence-by-tag.d.cts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.mts +13 -3
- package/dist/actions/delete-geofence-by-tag.d.mts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.mjs +2 -2
- package/dist/actions/delete-geofence-by-tag.mjs.map +1 -1
- package/dist/actions/delete-geofence.cjs +2 -2
- package/dist/actions/delete-geofence.cjs.map +1 -1
- package/dist/actions/delete-geofence.d.cts +11 -3
- package/dist/actions/delete-geofence.d.cts.map +1 -1
- package/dist/actions/delete-geofence.d.mts +11 -3
- package/dist/actions/delete-geofence.d.mts.map +1 -1
- package/dist/actions/delete-geofence.mjs +2 -2
- package/dist/actions/delete-geofence.mjs.map +1 -1
- package/dist/actions/delete-trip.cjs +2 -2
- package/dist/actions/delete-trip.cjs.map +1 -1
- package/dist/actions/delete-trip.d.cts +11 -3
- package/dist/actions/delete-trip.d.cts.map +1 -1
- package/dist/actions/delete-trip.d.mts +11 -3
- package/dist/actions/delete-trip.d.mts.map +1 -1
- package/dist/actions/delete-trip.mjs +2 -2
- package/dist/actions/delete-trip.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +2 -2
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +11 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +11 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +2 -2
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/forward-geocode.cjs +7 -7
- package/dist/actions/forward-geocode.cjs.map +1 -1
- package/dist/actions/forward-geocode.d.cts +37 -3
- package/dist/actions/forward-geocode.d.cts.map +1 -1
- package/dist/actions/forward-geocode.d.mts +37 -3
- package/dist/actions/forward-geocode.d.mts.map +1 -1
- package/dist/actions/forward-geocode.mjs +7 -7
- package/dist/actions/forward-geocode.mjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.cjs +10 -10
- package/dist/actions/get-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.cts +33 -3
- package/dist/actions/get-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.mts +33 -3
- package/dist/actions/get-beacon-by-tag.d.mts.map +1 -1
- package/dist/actions/get-beacon-by-tag.mjs +10 -10
- package/dist/actions/get-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/get-beacon.cjs +6 -6
- package/dist/actions/get-beacon.cjs.map +1 -1
- package/dist/actions/get-beacon.d.cts +29 -3
- package/dist/actions/get-beacon.d.cts.map +1 -1
- package/dist/actions/get-beacon.d.mts +29 -3
- package/dist/actions/get-beacon.d.mts.map +1 -1
- package/dist/actions/get-beacon.mjs +6 -6
- package/dist/actions/get-beacon.mjs.map +1 -1
- package/dist/actions/get-context-for-location.cjs +18 -18
- package/dist/actions/get-context-for-location.cjs.map +1 -1
- package/dist/actions/get-context-for-location.d.cts +85 -3
- package/dist/actions/get-context-for-location.d.cts.map +1 -1
- package/dist/actions/get-context-for-location.d.mts +85 -3
- package/dist/actions/get-context-for-location.d.mts.map +1 -1
- package/dist/actions/get-context-for-location.mjs +18 -18
- package/dist/actions/get-context-for-location.mjs.map +1 -1
- package/dist/actions/get-geofence.cjs +8 -8
- package/dist/actions/get-geofence.cjs.map +1 -1
- package/dist/actions/get-geofence.d.cts +26 -3
- package/dist/actions/get-geofence.d.cts.map +1 -1
- package/dist/actions/get-geofence.d.mts +26 -3
- package/dist/actions/get-geofence.d.mts.map +1 -1
- package/dist/actions/get-geofence.mjs +8 -8
- package/dist/actions/get-geofence.mjs.map +1 -1
- package/dist/actions/get-places-settings.cjs +3 -3
- package/dist/actions/get-places-settings.cjs.map +1 -1
- package/dist/actions/get-places-settings.d.cts +15 -3
- package/dist/actions/get-places-settings.d.cts.map +1 -1
- package/dist/actions/get-places-settings.d.mts +15 -3
- package/dist/actions/get-places-settings.d.mts.map +1 -1
- package/dist/actions/get-places-settings.mjs +3 -3
- package/dist/actions/get-places-settings.mjs.map +1 -1
- package/dist/actions/get-route-directions.cjs +16 -16
- package/dist/actions/get-route-directions.cjs.map +1 -1
- package/dist/actions/get-route-directions.d.cts +118 -3
- package/dist/actions/get-route-directions.d.cts.map +1 -1
- package/dist/actions/get-route-directions.d.mts +118 -3
- package/dist/actions/get-route-directions.d.mts.map +1 -1
- package/dist/actions/get-route-directions.mjs +16 -16
- package/dist/actions/get-route-directions.mjs.map +1 -1
- package/dist/actions/get-route-matrix.cjs +14 -14
- package/dist/actions/get-route-matrix.cjs.map +1 -1
- package/dist/actions/get-route-matrix.d.cts +45 -3
- package/dist/actions/get-route-matrix.d.cts.map +1 -1
- package/dist/actions/get-route-matrix.d.mts +45 -3
- package/dist/actions/get-route-matrix.d.mts.map +1 -1
- package/dist/actions/get-route-matrix.mjs +14 -14
- package/dist/actions/get-route-matrix.mjs.map +1 -1
- package/dist/actions/get-trip.cjs +6 -6
- package/dist/actions/get-trip.cjs.map +1 -1
- package/dist/actions/get-trip.d.cts +39 -3
- package/dist/actions/get-trip.d.cts.map +1 -1
- package/dist/actions/get-trip.d.mts +39 -3
- package/dist/actions/get-trip.d.mts.map +1 -1
- package/dist/actions/get-trip.mjs +6 -6
- package/dist/actions/get-trip.mjs.map +1 -1
- package/dist/actions/get-user.cjs +8 -8
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +66 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +66 -3
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +8 -8
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-in-geofence.cjs +4 -4
- package/dist/actions/get-users-in-geofence.cjs.map +1 -1
- package/dist/actions/get-users-in-geofence.d.cts +19 -3
- package/dist/actions/get-users-in-geofence.d.cts.map +1 -1
- package/dist/actions/get-users-in-geofence.d.mts +19 -3
- package/dist/actions/get-users-in-geofence.d.mts.map +1 -1
- package/dist/actions/get-users-in-geofence.mjs +4 -4
- package/dist/actions/get-users-in-geofence.mjs.map +1 -1
- package/dist/actions/ip-geocode.cjs +5 -5
- package/dist/actions/ip-geocode.cjs.map +1 -1
- package/dist/actions/ip-geocode.d.cts +20 -3
- package/dist/actions/ip-geocode.d.cts.map +1 -1
- package/dist/actions/ip-geocode.d.mts +20 -3
- package/dist/actions/ip-geocode.d.mts.map +1 -1
- package/dist/actions/ip-geocode.mjs +5 -5
- package/dist/actions/ip-geocode.mjs.map +1 -1
- package/dist/actions/list-events.cjs +9 -9
- package/dist/actions/list-events.cjs.map +1 -1
- package/dist/actions/list-events.d.cts +52 -3
- package/dist/actions/list-events.d.cts.map +1 -1
- package/dist/actions/list-events.d.mts +52 -3
- package/dist/actions/list-events.d.mts.map +1 -1
- package/dist/actions/list-events.mjs +9 -9
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-geofences.cjs +13 -13
- package/dist/actions/list-geofences.cjs.map +1 -1
- package/dist/actions/list-geofences.d.cts +50 -3
- package/dist/actions/list-geofences.d.cts.map +1 -1
- package/dist/actions/list-geofences.d.mts +50 -3
- package/dist/actions/list-geofences.d.mts.map +1 -1
- package/dist/actions/list-geofences.mjs +13 -13
- package/dist/actions/list-geofences.mjs.map +1 -1
- package/dist/actions/list-trips.cjs +9 -9
- package/dist/actions/list-trips.cjs.map +1 -1
- package/dist/actions/list-trips.d.cts +50 -3
- package/dist/actions/list-trips.d.cts.map +1 -1
- package/dist/actions/list-trips.d.mts +50 -3
- package/dist/actions/list-trips.d.mts.map +1 -1
- package/dist/actions/list-trips.mjs +9 -9
- package/dist/actions/list-trips.mjs.map +1 -1
- package/dist/actions/list-users.cjs +8 -8
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +35 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +35 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +8 -8
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/reverse-geocode.cjs +2 -2
- package/dist/actions/reverse-geocode.cjs.map +1 -1
- package/dist/actions/reverse-geocode.d.cts +33 -3
- package/dist/actions/reverse-geocode.d.cts.map +1 -1
- package/dist/actions/reverse-geocode.d.mts +33 -3
- package/dist/actions/reverse-geocode.d.mts.map +1 -1
- package/dist/actions/reverse-geocode.mjs +2 -2
- package/dist/actions/reverse-geocode.mjs.map +1 -1
- package/dist/actions/route-distance.cjs +12 -12
- package/dist/actions/route-distance.cjs.map +1 -1
- package/dist/actions/route-distance.d.cts +110 -3
- package/dist/actions/route-distance.d.cts.map +1 -1
- package/dist/actions/route-distance.d.mts +110 -3
- package/dist/actions/route-distance.d.mts.map +1 -1
- package/dist/actions/route-distance.mjs +12 -12
- package/dist/actions/route-distance.mjs.map +1 -1
- package/dist/actions/search-geofences-near-location.cjs +5 -5
- package/dist/actions/search-geofences-near-location.cjs.map +1 -1
- package/dist/actions/search-geofences-near-location.d.cts +34 -3
- package/dist/actions/search-geofences-near-location.d.cts.map +1 -1
- package/dist/actions/search-geofences-near-location.d.mts +34 -3
- package/dist/actions/search-geofences-near-location.d.mts.map +1 -1
- package/dist/actions/search-geofences-near-location.mjs +5 -5
- package/dist/actions/search-geofences-near-location.mjs.map +1 -1
- package/dist/actions/search-places-near-location.cjs +9 -9
- package/dist/actions/search-places-near-location.cjs.map +1 -1
- package/dist/actions/search-places-near-location.d.cts +51 -3
- package/dist/actions/search-places-near-location.d.cts.map +1 -1
- package/dist/actions/search-places-near-location.d.mts +51 -3
- package/dist/actions/search-places-near-location.d.mts.map +1 -1
- package/dist/actions/search-places-near-location.mjs +9 -9
- package/dist/actions/search-places-near-location.mjs.map +1 -1
- package/dist/actions/search-users-near-location.cjs +9 -9
- package/dist/actions/search-users-near-location.cjs.map +1 -1
- package/dist/actions/search-users-near-location.d.cts +28 -3
- package/dist/actions/search-users-near-location.d.cts.map +1 -1
- package/dist/actions/search-users-near-location.d.mts +28 -3
- package/dist/actions/search-users-near-location.d.mts.map +1 -1
- package/dist/actions/search-users-near-location.mjs +9 -9
- package/dist/actions/search-users-near-location.mjs.map +1 -1
- package/dist/actions/track-location-update.cjs +1 -1
- package/dist/actions/track-location-update.cjs.map +1 -1
- package/dist/actions/track-location-update.d.cts +43 -3
- package/dist/actions/track-location-update.d.cts.map +1 -1
- package/dist/actions/track-location-update.d.mts +43 -3
- package/dist/actions/track-location-update.d.mts.map +1 -1
- package/dist/actions/track-location-update.mjs +1 -1
- package/dist/actions/track-location-update.mjs.map +1 -1
- package/dist/actions/update-places-settings.cjs +3 -3
- package/dist/actions/update-places-settings.cjs.map +1 -1
- package/dist/actions/update-places-settings.d.cts +23 -3
- package/dist/actions/update-places-settings.d.cts.map +1 -1
- package/dist/actions/update-places-settings.d.mts +23 -3
- package/dist/actions/update-places-settings.d.mts.map +1 -1
- package/dist/actions/update-places-settings.mjs +3 -3
- package/dist/actions/update-places-settings.mjs.map +1 -1
- package/dist/actions/update-trip-by-id.cjs +3 -3
- package/dist/actions/update-trip-by-id.cjs.map +1 -1
- package/dist/actions/update-trip-by-id.d.cts +47 -3
- package/dist/actions/update-trip-by-id.d.cts.map +1 -1
- package/dist/actions/update-trip-by-id.d.mts +47 -3
- package/dist/actions/update-trip-by-id.d.mts.map +1 -1
- package/dist/actions/update-trip-by-id.mjs +3 -3
- package/dist/actions/update-trip-by-id.mjs.map +1 -1
- package/dist/actions/update-trip.cjs +5 -5
- package/dist/actions/update-trip.cjs.map +1 -1
- package/dist/actions/update-trip.d.cts +67 -3
- package/dist/actions/update-trip.d.cts.map +1 -1
- package/dist/actions/update-trip.d.mts +67 -3
- package/dist/actions/update-trip.d.mts.map +1 -1
- package/dist/actions/update-trip.mjs +5 -5
- package/dist/actions/update-trip.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.cjs +9 -9
- package/dist/actions/upsert-beacon-by-id.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.cts +53 -3
- package/dist/actions/upsert-beacon-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.mts +53 -3
- package/dist/actions/upsert-beacon-by-id.d.mts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.mjs +9 -9
- package/dist/actions/upsert-beacon-by-id.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.cjs +8 -8
- package/dist/actions/upsert-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.cts +54 -3
- package/dist/actions/upsert-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.mts +54 -3
- package/dist/actions/upsert-beacon-by-tag.d.mts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.mjs +8 -8
- package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.cjs +12 -12
- package/dist/actions/upsert-geofence-by-id.cjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.cts +48 -3
- package/dist/actions/upsert-geofence-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.mts +48 -3
- package/dist/actions/upsert-geofence-by-id.d.mts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.mjs +12 -12
- package/dist/actions/upsert-geofence-by-id.mjs.map +1 -1
- package/dist/actions/upsert-geofence.cjs +7 -7
- package/dist/actions/upsert-geofence.cjs.map +1 -1
- package/dist/actions/upsert-geofence.d.cts +40 -3
- package/dist/actions/upsert-geofence.d.cts.map +1 -1
- package/dist/actions/upsert-geofence.d.mts +40 -3
- package/dist/actions/upsert-geofence.d.mts.map +1 -1
- package/dist/actions/upsert-geofence.mjs +7 -7
- package/dist/actions/upsert-geofence.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-route-matrix.cjs","names":["z","action"],"sources":["../../src/actions/get-route-matrix.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetRouteMatrixInput
|
|
1
|
+
{"version":3,"file":"get-route-matrix.cjs","names":["z","action"],"sources":["../../src/actions/get-route-matrix.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetRouteMatrixInput = z.object({\n mode: z.enum([\"car\", \"truck\", \"foot\", \"bike\"]).describe(\"Travel mode for route calculation\").optional(),\n units: z.enum([\"metric\", \"imperial\"]).describe(\"Unit system for distance measurements (metric returns meters, imperial returns feet)\").optional(),\n origins: z.string().describe(\"Pipe-separated list of origin coordinates as 'lat,lon|lat,lon' (e.g., '40.7128,-74.0060|37.7749,-122.4194')\"),\n destinations: z.string().describe(\"Pipe-separated list of destination coordinates as 'lat,lon|lat,lon' (e.g., '40.7589,-73.9851|34.0522,-118.2437')\"),\n}).describe(\"Request model for calculating route matrix between multiple origins and destinations.\");\nconst RadarGetRouteMatrix_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n}).passthrough().describe(\"Metadata for the route matrix response.\");\nconst RadarGetRouteMatrix_DistanceInfoSchema = z.object({\n text: z.string().describe(\"Human-readable distance string\").nullable(),\n value: z.number().describe(\"Distance value in meters or feet depending on units\").nullable(),\n}).passthrough().describe(\"Distance information for a route.\");\nconst RadarGetRouteMatrix_DurationInfoSchema = z.object({\n text: z.string().describe(\"Human-readable duration string\").nullable(),\n value: z.number().describe(\"Duration value in minutes\").nullable(),\n}).passthrough().describe(\"Duration information for a route.\");\nconst RadarGetRouteMatrix_MatrixElementSchema = z.object({\n distance: RadarGetRouteMatrix_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteMatrix_DurationInfoSchema.nullable(),\n originIndex: z.number().int().describe(\"Index of origin in origins array\").nullable(),\n destinationIndex: z.number().int().describe(\"Index of destination in destinations array\").nullable(),\n}).passthrough().describe(\"Individual route element in the matrix containing distance and duration.\");\nconst RadarGetRouteMatrix_CoordinateSchema = z.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable(),\n}).passthrough().describe(\"Geographic coordinate with latitude and longitude.\");\nexport const RadarGetRouteMatrixOutput = z.object({\n meta: RadarGetRouteMatrix_MetaSchema.nullable(),\n matrix: z.array(z.array(RadarGetRouteMatrix_MatrixElementSchema)).describe(\"2D array of route information for each origin-destination pair\"),\n origins: z.array(RadarGetRouteMatrix_CoordinateSchema).describe(\"List of origin coordinates\"),\n destinations: z.array(RadarGetRouteMatrix_CoordinateSchema).describe(\"List of destination coordinates\"),\n}).passthrough().describe(\"Response model containing route matrix with distances and durations between origins and destinations.\");\n\nexport const radarGetRouteMatrix = action(\"RADAR_GET_ROUTE_MATRIX\", {\n slug: \"radar-get-route-matrix\",\n name: \"Get Route Matrix\",\n description: \"Tool to calculate travel distance and duration between multiple origins and destinations for up to 625 routes. Use when you need to compute route metrics for multiple origin-destination pairs efficiently.\",\n input: RadarGetRouteMatrixInput,\n output: RadarGetRouteMatrixOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAS;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAChJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CAC1I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;AACtJ,CAAC,CAAC,CAAC,SAAS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B,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAM,+BAA+B,SAAS;CAC9C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,CAAC,SAAS,gEAAgE;CAC3I,SAASA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4BAA4B;CAC5F,cAAcA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,iCAAiC;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uGAAuG;AAEjI,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,51 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-route-matrix.d.ts
|
|
4
|
-
declare const RadarGetRouteMatrixInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarGetRouteMatrixInput: z.ZodObject<{
|
|
5
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
car: "car";
|
|
7
|
+
foot: "foot";
|
|
8
|
+
bike: "bike";
|
|
9
|
+
truck: "truck";
|
|
10
|
+
}>>;
|
|
11
|
+
units: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
metric: "metric";
|
|
13
|
+
imperial: "imperial";
|
|
14
|
+
}>>;
|
|
15
|
+
origins: z.ZodString;
|
|
16
|
+
destinations: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const RadarGetRouteMatrixOutput: z.ZodObject<{
|
|
19
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
20
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
matrix: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
23
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
text: z.ZodNullable<z.ZodString>;
|
|
25
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
text: z.ZodNullable<z.ZodString>;
|
|
29
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
originIndex: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
destinationIndex: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
|
+
origins: z.ZodArray<z.ZodObject<{
|
|
35
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
destinations: z.ZodArray<z.ZodObject<{
|
|
39
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
declare const radarGetRouteMatrix: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
origins: string;
|
|
45
|
+
destinations: string;
|
|
46
|
+
mode?: "car" | "foot" | "bike" | "truck" | undefined;
|
|
47
|
+
units?: "metric" | "imperial" | undefined;
|
|
48
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
49
|
//#endregion
|
|
8
50
|
export { radarGetRouteMatrix };
|
|
9
51
|
//# sourceMappingURL=get-route-matrix.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-route-matrix.d.cts","names":[],"sources":["../../src/actions/get-route-matrix.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-route-matrix.d.cts","names":[],"sources":["../../src/actions/get-route-matrix.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,51 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-route-matrix.d.ts
|
|
4
|
-
declare const RadarGetRouteMatrixInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarGetRouteMatrixInput: z.ZodObject<{
|
|
5
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
car: "car";
|
|
7
|
+
foot: "foot";
|
|
8
|
+
bike: "bike";
|
|
9
|
+
truck: "truck";
|
|
10
|
+
}>>;
|
|
11
|
+
units: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
metric: "metric";
|
|
13
|
+
imperial: "imperial";
|
|
14
|
+
}>>;
|
|
15
|
+
origins: z.ZodString;
|
|
16
|
+
destinations: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const RadarGetRouteMatrixOutput: z.ZodObject<{
|
|
19
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
20
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
matrix: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
23
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
text: z.ZodNullable<z.ZodString>;
|
|
25
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
text: z.ZodNullable<z.ZodString>;
|
|
29
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
originIndex: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
destinationIndex: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
|
+
origins: z.ZodArray<z.ZodObject<{
|
|
35
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
destinations: z.ZodArray<z.ZodObject<{
|
|
39
|
+
latitude: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
longitude: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
declare const radarGetRouteMatrix: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
origins: string;
|
|
45
|
+
destinations: string;
|
|
46
|
+
mode?: "car" | "foot" | "bike" | "truck" | undefined;
|
|
47
|
+
units?: "metric" | "imperial" | undefined;
|
|
48
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
49
|
//#endregion
|
|
8
50
|
export { radarGetRouteMatrix };
|
|
9
51
|
//# sourceMappingURL=get-route-matrix.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-route-matrix.d.mts","names":[],"sources":["../../src/actions/get-route-matrix.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-route-matrix.d.mts","names":[],"sources":["../../src/actions/get-route-matrix.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -12,25 +12,25 @@ const RadarGetRouteMatrixInput = z.object({
|
|
|
12
12
|
origins: z.string().describe("Pipe-separated list of origin coordinates as 'lat,lon|lat,lon' (e.g., '40.7128,-74.0060|37.7749,-122.4194')"),
|
|
13
13
|
destinations: z.string().describe("Pipe-separated list of destination coordinates as 'lat,lon|lat,lon' (e.g., '40.7589,-73.9851|34.0522,-118.2437')")
|
|
14
14
|
}).describe("Request model for calculating route matrix between multiple origins and destinations.");
|
|
15
|
-
const RadarGetRouteMatrix_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code") }).describe("Metadata for the route matrix response.");
|
|
15
|
+
const RadarGetRouteMatrix_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code").nullable() }).passthrough().describe("Metadata for the route matrix response.");
|
|
16
16
|
const RadarGetRouteMatrix_DistanceInfoSchema = z.object({
|
|
17
|
-
text: z.string().describe("Human-readable distance string"),
|
|
18
|
-
value: z.number().describe("Distance value in meters or feet depending on units")
|
|
19
|
-
}).describe("Distance information for a route.");
|
|
17
|
+
text: z.string().describe("Human-readable distance string").nullable(),
|
|
18
|
+
value: z.number().describe("Distance value in meters or feet depending on units").nullable()
|
|
19
|
+
}).passthrough().describe("Distance information for a route.");
|
|
20
20
|
const RadarGetRouteMatrix_DurationInfoSchema = z.object({
|
|
21
|
-
text: z.string().describe("Human-readable duration string"),
|
|
22
|
-
value: z.number().describe("Duration value in minutes")
|
|
23
|
-
}).describe("Duration information for a route.");
|
|
21
|
+
text: z.string().describe("Human-readable duration string").nullable(),
|
|
22
|
+
value: z.number().describe("Duration value in minutes").nullable()
|
|
23
|
+
}).passthrough().describe("Duration information for a route.");
|
|
24
24
|
const RadarGetRouteMatrix_MatrixElementSchema = z.object({
|
|
25
25
|
distance: RadarGetRouteMatrix_DistanceInfoSchema.nullable(),
|
|
26
26
|
duration: RadarGetRouteMatrix_DurationInfoSchema.nullable(),
|
|
27
|
-
originIndex: z.number().int().describe("Index of origin in origins array"),
|
|
28
|
-
destinationIndex: z.number().int().describe("Index of destination in destinations array")
|
|
29
|
-
}).describe("Individual route element in the matrix containing distance and duration.");
|
|
27
|
+
originIndex: z.number().int().describe("Index of origin in origins array").nullable(),
|
|
28
|
+
destinationIndex: z.number().int().describe("Index of destination in destinations array").nullable()
|
|
29
|
+
}).passthrough().describe("Individual route element in the matrix containing distance and duration.");
|
|
30
30
|
const RadarGetRouteMatrix_CoordinateSchema = z.object({
|
|
31
|
-
latitude: z.number().describe("Latitude coordinate"),
|
|
32
|
-
longitude: z.number().describe("Longitude coordinate")
|
|
33
|
-
}).describe("Geographic coordinate with latitude and longitude.");
|
|
31
|
+
latitude: z.number().describe("Latitude coordinate").nullable(),
|
|
32
|
+
longitude: z.number().describe("Longitude coordinate").nullable()
|
|
33
|
+
}).passthrough().describe("Geographic coordinate with latitude and longitude.");
|
|
34
34
|
const radarGetRouteMatrix = action("RADAR_GET_ROUTE_MATRIX", {
|
|
35
35
|
slug: "radar-get-route-matrix",
|
|
36
36
|
name: "Get Route Matrix",
|
|
@@ -41,7 +41,7 @@ const radarGetRouteMatrix = action("RADAR_GET_ROUTE_MATRIX", {
|
|
|
41
41
|
matrix: z.array(z.array(RadarGetRouteMatrix_MatrixElementSchema)).describe("2D array of route information for each origin-destination pair"),
|
|
42
42
|
origins: z.array(RadarGetRouteMatrix_CoordinateSchema).describe("List of origin coordinates"),
|
|
43
43
|
destinations: z.array(RadarGetRouteMatrix_CoordinateSchema).describe("List of destination coordinates")
|
|
44
|
-
}).describe("Response model containing route matrix with distances and durations between origins and destinations.")
|
|
44
|
+
}).passthrough().describe("Response model containing route matrix with distances and durations between origins and destinations.")
|
|
45
45
|
});
|
|
46
46
|
//#endregion
|
|
47
47
|
export { radarGetRouteMatrix };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-route-matrix.mjs","names":[],"sources":["../../src/actions/get-route-matrix.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetRouteMatrixInput
|
|
1
|
+
{"version":3,"file":"get-route-matrix.mjs","names":[],"sources":["../../src/actions/get-route-matrix.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetRouteMatrixInput = z.object({\n mode: z.enum([\"car\", \"truck\", \"foot\", \"bike\"]).describe(\"Travel mode for route calculation\").optional(),\n units: z.enum([\"metric\", \"imperial\"]).describe(\"Unit system for distance measurements (metric returns meters, imperial returns feet)\").optional(),\n origins: z.string().describe(\"Pipe-separated list of origin coordinates as 'lat,lon|lat,lon' (e.g., '40.7128,-74.0060|37.7749,-122.4194')\"),\n destinations: z.string().describe(\"Pipe-separated list of destination coordinates as 'lat,lon|lat,lon' (e.g., '40.7589,-73.9851|34.0522,-118.2437')\"),\n}).describe(\"Request model for calculating route matrix between multiple origins and destinations.\");\nconst RadarGetRouteMatrix_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n}).passthrough().describe(\"Metadata for the route matrix response.\");\nconst RadarGetRouteMatrix_DistanceInfoSchema = z.object({\n text: z.string().describe(\"Human-readable distance string\").nullable(),\n value: z.number().describe(\"Distance value in meters or feet depending on units\").nullable(),\n}).passthrough().describe(\"Distance information for a route.\");\nconst RadarGetRouteMatrix_DurationInfoSchema = z.object({\n text: z.string().describe(\"Human-readable duration string\").nullable(),\n value: z.number().describe(\"Duration value in minutes\").nullable(),\n}).passthrough().describe(\"Duration information for a route.\");\nconst RadarGetRouteMatrix_MatrixElementSchema = z.object({\n distance: RadarGetRouteMatrix_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteMatrix_DurationInfoSchema.nullable(),\n originIndex: z.number().int().describe(\"Index of origin in origins array\").nullable(),\n destinationIndex: z.number().int().describe(\"Index of destination in destinations array\").nullable(),\n}).passthrough().describe(\"Individual route element in the matrix containing distance and duration.\");\nconst RadarGetRouteMatrix_CoordinateSchema = z.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable(),\n}).passthrough().describe(\"Geographic coordinate with latitude and longitude.\");\nexport const RadarGetRouteMatrixOutput = z.object({\n meta: RadarGetRouteMatrix_MetaSchema.nullable(),\n matrix: z.array(z.array(RadarGetRouteMatrix_MatrixElementSchema)).describe(\"2D array of route information for each origin-destination pair\"),\n origins: z.array(RadarGetRouteMatrix_CoordinateSchema).describe(\"List of origin coordinates\"),\n destinations: z.array(RadarGetRouteMatrix_CoordinateSchema).describe(\"List of destination coordinates\"),\n}).passthrough().describe(\"Response model containing route matrix with distances and durations between origins and destinations.\");\n\nexport const radarGetRouteMatrix = action(\"RADAR_GET_ROUTE_MATRIX\", {\n slug: \"radar-get-route-matrix\",\n name: \"Get Route Matrix\",\n description: \"Tool to calculate travel distance and duration between multiple origins and destinations for up to 625 routes. Use when you need to compute route metrics for multiple origin-destination pairs efficiently.\",\n input: RadarGetRouteMatrixInput,\n output: RadarGetRouteMatrixOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,KAAK;EAAC;EAAO;EAAS;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtG,OAAO,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAChJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CAC1I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;AACtJ,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACnG,MAAM,iCAAiC,EAAE,OAAO,EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAA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S,iCAAiC;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uGAOhB;AACV,CAAC"}
|
|
@@ -8,22 +8,22 @@ const RadarGetTripInput = zod.z.object({
|
|
|
8
8
|
const RadarGetTrip_GeoJSONPointSchema = zod.z.object({
|
|
9
9
|
type: zod.z.string().default("Point").describe("GeoJSON type, always 'Point'").nullable().optional(),
|
|
10
10
|
coordinates: zod.z.array(zod.z.number()).describe("Coordinates as [longitude, latitude]")
|
|
11
|
-
}).describe("GeoJSON Point location for the trip destination/origin.");
|
|
11
|
+
}).passthrough().describe("GeoJSON Point location for the trip destination/origin.");
|
|
12
12
|
const RadarGetTrip_TripSchema = zod.z.object({
|
|
13
|
-
_id: zod.z.string().describe("Unique Radar trip ID"),
|
|
13
|
+
_id: zod.z.string().describe("Unique Radar trip ID").nullable(),
|
|
14
14
|
eta: zod.z.number().describe("Estimated time of arrival in seconds").nullable().optional(),
|
|
15
15
|
live: zod.z.boolean().describe("Whether the trip is live").nullable().optional(),
|
|
16
16
|
mode: zod.z.string().describe("Mode of transport (car, foot, bike)").nullable().optional(),
|
|
17
17
|
note: zod.z.string().describe("Freeform note for the trip").nullable().optional(),
|
|
18
18
|
issues: zod.z.array(zod.z.unknown()).describe("List of trip issues").nullable().optional(),
|
|
19
|
-
status: zod.z.string().describe("Trip status (e.g., created, started, completed)"),
|
|
19
|
+
status: zod.z.string().describe("Trip status (e.g., created, started, completed)").nullable(),
|
|
20
20
|
userId: zod.z.string().describe("Radar user ID associated with the trip").nullable().optional(),
|
|
21
21
|
distance: zod.z.number().describe("Distance traveled in meters").nullable().optional(),
|
|
22
22
|
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value data for the trip").nullable().optional(),
|
|
23
23
|
createdAt: zod.z.string().describe("Creation timestamp in ISO8601 format").nullable().optional(),
|
|
24
24
|
locations: zod.z.array(zod.z.unknown()).describe("List of trip locations").nullable().optional(),
|
|
25
25
|
startedAt: zod.z.string().describe("Start timestamp in ISO8601 format").nullable().optional(),
|
|
26
|
-
updatedAt: zod.z.string().describe("Last update timestamp in ISO8601 format"),
|
|
26
|
+
updatedAt: zod.z.string().describe("Last update timestamp in ISO8601 format").nullable(),
|
|
27
27
|
externalId: zod.z.string().describe("External trip ID").nullable().optional(),
|
|
28
28
|
completedAt: zod.z.string().describe("Completion timestamp in ISO8601 format if completed").nullable().optional(),
|
|
29
29
|
originLocation: RadarGetTrip_GeoJSONPointSchema.nullable().optional(),
|
|
@@ -31,8 +31,8 @@ const RadarGetTrip_TripSchema = zod.z.object({
|
|
|
31
31
|
approachingThreshold: zod.z.number().int().describe("Distance threshold in meters for approaching status").nullable().optional(),
|
|
32
32
|
destinationGeofenceTag: zod.z.string().describe("Tag of destination geofence").nullable().optional(),
|
|
33
33
|
destinationGeofenceExternalId: zod.z.string().describe("External ID of destination geofence").nullable().optional()
|
|
34
|
-
}).describe("Trip object returned by Radar.");
|
|
35
|
-
const RadarGetTripOutput = zod.z.object({ trip: RadarGetTrip_TripSchema.nullable() }).describe("Response model for GET_TRIP, containing the trip object.");
|
|
34
|
+
}).passthrough().describe("Trip object returned by Radar.");
|
|
35
|
+
const RadarGetTripOutput = zod.z.object({ trip: RadarGetTrip_TripSchema.nullable() }).passthrough().describe("Response model for GET_TRIP, containing the trip object.");
|
|
36
36
|
const radarGetTrip = require_action.action("RADAR_GET_TRIP", {
|
|
37
37
|
slug: "radar-get-trip",
|
|
38
38
|
name: "Get Trip",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-trip.cjs","names":["z","action"],"sources":["../../src/actions/get-trip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetTripInput
|
|
1
|
+
{"version":3,"file":"get-trip.cjs","names":["z","action"],"sources":["../../src/actions/get-trip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetTripInput = z.object({\n id: z.string().describe(\"The Radar trip ID or externalId.\"),\n format: z.string().describe(\"Set to 'externalId' when using an external trip ID.\").optional(),\n}).describe(\"Request model for GET_TRIP.\");\nconst RadarGetTrip_GeoJSONPointSchema = z.object({\n type: z.string().default(\"Point\").describe(\"GeoJSON type, always 'Point'\").nullable().optional(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"GeoJSON Point location for the trip destination/origin.\");\nconst RadarGetTrip_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable(),\n eta: z.number().describe(\"Estimated time of arrival in seconds\").nullable().optional(),\n live: z.boolean().describe(\"Whether the trip is live\").nullable().optional(),\n mode: z.string().describe(\"Mode of transport (car, foot, bike)\").nullable().optional(),\n note: z.string().describe(\"Freeform note for the trip\").nullable().optional(),\n issues: z.array(z.unknown()).describe(\"List of trip issues\").nullable().optional(),\n status: z.string().describe(\"Trip status (e.g., created, started, completed)\").nullable(),\n userId: z.string().describe(\"Radar user ID associated with the trip\").nullable().optional(),\n distance: z.number().describe(\"Distance traveled in meters\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data for the trip\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp in ISO8601 format\").nullable().optional(),\n locations: z.array(z.unknown()).describe(\"List of trip locations\").nullable().optional(),\n startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable(),\n externalId: z.string().describe(\"External trip ID\").nullable().optional(),\n completedAt: z.string().describe(\"Completion timestamp in ISO8601 format if completed\").nullable().optional(),\n originLocation: RadarGetTrip_GeoJSONPointSchema.nullable().optional(),\n destinationLocation: RadarGetTrip_GeoJSONPointSchema.nullable().optional(),\n approachingThreshold: z.number().int().describe(\"Distance threshold in meters for approaching status\").nullable().optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence\").nullable().optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").nullable().optional(),\n}).passthrough().describe(\"Trip object returned by Radar.\");\nexport const RadarGetTripOutput = z.object({\n trip: RadarGetTrip_TripSchema.nullable(),\n}).passthrough().describe(\"Response model for GET_TRIP, containing the trip object.\");\n\nexport const radarGetTrip = action(\"RADAR_GET_TRIP\", {\n slug: \"radar-get-trip\",\n name: \"Get Trip\",\n description: \"Tool to retrieve a trip by ID or externalId. Use when you have a trip ID or externalId to fetch its details.\",\n input: RadarGetTripInput,\n output: RadarGetTripOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoBA,IAAAA,EAAE,OAAO;CACxC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,0BAA0BA,IAAAA,EAAE,OAAO;CACvC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,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AAC,SAAS;CAC5G,gBAAgB,gCAAgC,SAAS,CAAC,CAAC,SAAS;CACpE,qBAAqB,gCAAgC,SAAS,CAAC,CAAC,SAAS;CACzE,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAa,qBAAqBA,IAAAA,EAAE,OAAO,EACzC,MAAM,wBAAwB,SAAS,EACzC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,eAAeC,eAAAA,OAAO,kBAAkB;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-trip.d.ts
|
|
4
|
-
declare const RadarGetTripInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarGetTripInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RadarGetTripOutput: z.ZodObject<{
|
|
9
|
+
trip: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
_id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
eta: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
13
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
issues: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
16
|
+
status: z.ZodNullable<z.ZodString>;
|
|
17
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
22
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
24
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
originLocation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
28
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
29
|
+
}, z.core.$loose>>>;
|
|
30
|
+
destinationLocation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
32
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
|
+
approachingThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
destinationGeofenceTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
destinationGeofenceExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const radarGetTrip: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
id: string;
|
|
41
|
+
format?: string | undefined;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { radarGetTrip };
|
|
9
45
|
//# sourceMappingURL=get-trip.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-trip.d.cts","names":[],"sources":["../../src/actions/get-trip.ts"],"mappings":";;;cAIa,iBAAA,
|
|
1
|
+
{"version":3,"file":"get-trip.d.cts","names":[],"sources":["../../src/actions/get-trip.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;cA+BjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIlB,YAAA,gCAAY,wBAAA"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-trip.d.ts
|
|
4
|
-
declare const RadarGetTripInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarGetTripInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RadarGetTripOutput: z.ZodObject<{
|
|
9
|
+
trip: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
_id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
eta: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
13
|
+
mode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
issues: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
16
|
+
status: z.ZodNullable<z.ZodString>;
|
|
17
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
22
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
24
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
originLocation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
28
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
29
|
+
}, z.core.$loose>>>;
|
|
30
|
+
destinationLocation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
32
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
|
+
approachingThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
destinationGeofenceTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
destinationGeofenceExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const radarGetTrip: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
id: string;
|
|
41
|
+
format?: string | undefined;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { radarGetTrip };
|
|
9
45
|
//# sourceMappingURL=get-trip.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-trip.d.mts","names":[],"sources":["../../src/actions/get-trip.ts"],"mappings":";;;cAIa,iBAAA,
|
|
1
|
+
{"version":3,"file":"get-trip.d.mts","names":[],"sources":["../../src/actions/get-trip.ts"],"mappings":";;;cAIa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;cA+BjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIlB,YAAA,gCAAY,wBAAA"}
|
|
@@ -8,22 +8,22 @@ const RadarGetTripInput = z.object({
|
|
|
8
8
|
const RadarGetTrip_GeoJSONPointSchema = z.object({
|
|
9
9
|
type: z.string().default("Point").describe("GeoJSON type, always 'Point'").nullable().optional(),
|
|
10
10
|
coordinates: z.array(z.number()).describe("Coordinates as [longitude, latitude]")
|
|
11
|
-
}).describe("GeoJSON Point location for the trip destination/origin.");
|
|
11
|
+
}).passthrough().describe("GeoJSON Point location for the trip destination/origin.");
|
|
12
12
|
const RadarGetTrip_TripSchema = z.object({
|
|
13
|
-
_id: z.string().describe("Unique Radar trip ID"),
|
|
13
|
+
_id: z.string().describe("Unique Radar trip ID").nullable(),
|
|
14
14
|
eta: z.number().describe("Estimated time of arrival in seconds").nullable().optional(),
|
|
15
15
|
live: z.boolean().describe("Whether the trip is live").nullable().optional(),
|
|
16
16
|
mode: z.string().describe("Mode of transport (car, foot, bike)").nullable().optional(),
|
|
17
17
|
note: z.string().describe("Freeform note for the trip").nullable().optional(),
|
|
18
18
|
issues: z.array(z.unknown()).describe("List of trip issues").nullable().optional(),
|
|
19
|
-
status: z.string().describe("Trip status (e.g., created, started, completed)"),
|
|
19
|
+
status: z.string().describe("Trip status (e.g., created, started, completed)").nullable(),
|
|
20
20
|
userId: z.string().describe("Radar user ID associated with the trip").nullable().optional(),
|
|
21
21
|
distance: z.number().describe("Distance traveled in meters").nullable().optional(),
|
|
22
22
|
metadata: z.record(z.string(), z.unknown()).describe("Custom key-value data for the trip").nullable().optional(),
|
|
23
23
|
createdAt: z.string().describe("Creation timestamp in ISO8601 format").nullable().optional(),
|
|
24
24
|
locations: z.array(z.unknown()).describe("List of trip locations").nullable().optional(),
|
|
25
25
|
startedAt: z.string().describe("Start timestamp in ISO8601 format").nullable().optional(),
|
|
26
|
-
updatedAt: z.string().describe("Last update timestamp in ISO8601 format"),
|
|
26
|
+
updatedAt: z.string().describe("Last update timestamp in ISO8601 format").nullable(),
|
|
27
27
|
externalId: z.string().describe("External trip ID").nullable().optional(),
|
|
28
28
|
completedAt: z.string().describe("Completion timestamp in ISO8601 format if completed").nullable().optional(),
|
|
29
29
|
originLocation: RadarGetTrip_GeoJSONPointSchema.nullable().optional(),
|
|
@@ -31,13 +31,13 @@ const RadarGetTrip_TripSchema = z.object({
|
|
|
31
31
|
approachingThreshold: z.number().int().describe("Distance threshold in meters for approaching status").nullable().optional(),
|
|
32
32
|
destinationGeofenceTag: z.string().describe("Tag of destination geofence").nullable().optional(),
|
|
33
33
|
destinationGeofenceExternalId: z.string().describe("External ID of destination geofence").nullable().optional()
|
|
34
|
-
}).describe("Trip object returned by Radar.");
|
|
34
|
+
}).passthrough().describe("Trip object returned by Radar.");
|
|
35
35
|
const radarGetTrip = action("RADAR_GET_TRIP", {
|
|
36
36
|
slug: "radar-get-trip",
|
|
37
37
|
name: "Get Trip",
|
|
38
38
|
description: "Tool to retrieve a trip by ID or externalId. Use when you have a trip ID or externalId to fetch its details.",
|
|
39
39
|
input: RadarGetTripInput,
|
|
40
|
-
output: z.object({ trip: RadarGetTrip_TripSchema.nullable() }).describe("Response model for GET_TRIP, containing the trip object.")
|
|
40
|
+
output: z.object({ trip: RadarGetTrip_TripSchema.nullable() }).passthrough().describe("Response model for GET_TRIP, containing the trip object.")
|
|
41
41
|
});
|
|
42
42
|
//#endregion
|
|
43
43
|
export { radarGetTrip };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-trip.mjs","names":[],"sources":["../../src/actions/get-trip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetTripInput
|
|
1
|
+
{"version":3,"file":"get-trip.mjs","names":[],"sources":["../../src/actions/get-trip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetTripInput = z.object({\n id: z.string().describe(\"The Radar trip ID or externalId.\"),\n format: z.string().describe(\"Set to 'externalId' when using an external trip ID.\").optional(),\n}).describe(\"Request model for GET_TRIP.\");\nconst RadarGetTrip_GeoJSONPointSchema = z.object({\n type: z.string().default(\"Point\").describe(\"GeoJSON type, always 'Point'\").nullable().optional(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"GeoJSON Point location for the trip destination/origin.\");\nconst RadarGetTrip_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable(),\n eta: z.number().describe(\"Estimated time of arrival in seconds\").nullable().optional(),\n live: z.boolean().describe(\"Whether the trip is live\").nullable().optional(),\n mode: z.string().describe(\"Mode of transport (car, foot, bike)\").nullable().optional(),\n note: z.string().describe(\"Freeform note for the trip\").nullable().optional(),\n issues: z.array(z.unknown()).describe(\"List of trip issues\").nullable().optional(),\n status: z.string().describe(\"Trip status (e.g., created, started, completed)\").nullable(),\n userId: z.string().describe(\"Radar user ID associated with the trip\").nullable().optional(),\n distance: z.number().describe(\"Distance traveled in meters\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data for the trip\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp in ISO8601 format\").nullable().optional(),\n locations: z.array(z.unknown()).describe(\"List of trip locations\").nullable().optional(),\n startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable(),\n externalId: z.string().describe(\"External trip ID\").nullable().optional(),\n completedAt: z.string().describe(\"Completion timestamp in ISO8601 format if completed\").nullable().optional(),\n originLocation: RadarGetTrip_GeoJSONPointSchema.nullable().optional(),\n destinationLocation: RadarGetTrip_GeoJSONPointSchema.nullable().optional(),\n approachingThreshold: z.number().int().describe(\"Distance threshold in meters for approaching status\").nullable().optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence\").nullable().optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").nullable().optional(),\n}).passthrough().describe(\"Trip object returned by Radar.\");\nexport const RadarGetTripOutput = z.object({\n trip: RadarGetTrip_TripSchema.nullable(),\n}).passthrough().describe(\"Response model for GET_TRIP, containing the trip object.\");\n\nexport const radarGetTrip = action(\"RADAR_GET_TRIP\", {\n slug: \"radar-get-trip\",\n name: \"Get Trip\",\n description: \"Tool to retrieve a trip by ID or externalId. Use when you have a trip ID or externalId to fetch its details.\",\n input: RadarGetTripInput,\n output: RadarGetTripOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oBAAoB,EAAE,OAAO;CACxC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAM,kCAAkC,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,gBAAgB,gCAAgC,SAAS,CAAC,CAAC,SAAS;CACpE,qBAAqB,gCAAgC,SAAS,CAAC,CAAC,SAAS;CACzE,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAK1D,MAAa,eAAe,OAAO,kBAAkB;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgC,EAAE,OAAO,EACzC,MAAM,wBAAwB,SAAS,EACzC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|
|
@@ -3,7 +3,7 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-user.ts
|
|
4
4
|
const RadarGetUserInput = zod.z.object({ id: zod.z.string().describe("User identifier - can be Radar _id, userId, or deviceId") }).describe("Request model for getting a user by ID.");
|
|
5
5
|
const RadarGetUser_TripInUserSchema = zod.z.object({
|
|
6
|
-
_id: zod.z.string().describe("Unique Radar trip identifier"),
|
|
6
|
+
_id: zod.z.string().describe("Unique Radar trip identifier").nullable(),
|
|
7
7
|
status: zod.z.string().describe("Trip status (e.g., created, started, completed)").nullable().optional(),
|
|
8
8
|
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata for the trip").nullable().optional(),
|
|
9
9
|
externalId: zod.z.string().describe("External trip identifier").nullable().optional()
|
|
@@ -23,7 +23,7 @@ const RadarGetUser_PlaceInUserSchema = zod.z.object({
|
|
|
23
23
|
categories: zod.z.array(zod.z.string()).describe("Categories of the place").nullable().optional()
|
|
24
24
|
}).passthrough().describe("Place object associated with a user's current location.");
|
|
25
25
|
const RadarGetUser_BeaconInUserSchema = zod.z.object({
|
|
26
|
-
_id: zod.z.string().describe("Unique Radar beacon identifier"),
|
|
26
|
+
_id: zod.z.string().describe("Unique Radar beacon identifier").nullable(),
|
|
27
27
|
tag: zod.z.string().describe("Tag associated with the beacon").nullable().optional(),
|
|
28
28
|
uuid: zod.z.string().describe("UUID of the beacon").nullable().optional(),
|
|
29
29
|
major: zod.z.string().describe("Major value of the beacon").nullable().optional(),
|
|
@@ -34,16 +34,16 @@ const RadarGetUser_BeaconInUserSchema = zod.z.object({
|
|
|
34
34
|
const RadarGetUser_GeoJSONPointSchema = zod.z.object({
|
|
35
35
|
type: zod.z.string().default("Point").describe("GeoJSON type, always 'Point'").nullable().optional(),
|
|
36
36
|
coordinates: zod.z.array(zod.z.number()).describe("Coordinates as [longitude, latitude]")
|
|
37
|
-
}).describe("GeoJSON Point representing a geographic location.");
|
|
37
|
+
}).passthrough().describe("GeoJSON Point representing a geographic location.");
|
|
38
38
|
const RadarGetUser_GeofenceInUserSchema = zod.z.object({
|
|
39
|
-
_id: zod.z.string().describe("Unique Radar geofence identifier"),
|
|
39
|
+
_id: zod.z.string().describe("Unique Radar geofence identifier").nullable(),
|
|
40
40
|
tag: zod.z.string().describe("Tag associated with the geofence").nullable().optional(),
|
|
41
41
|
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata for the geofence").nullable().optional(),
|
|
42
42
|
externalId: zod.z.string().describe("External identifier of the geofence").nullable().optional(),
|
|
43
43
|
description: zod.z.string().describe("Description of the geofence").nullable().optional()
|
|
44
44
|
}).passthrough().describe("Geofence object associated with a user.");
|
|
45
45
|
const RadarGetUser_UserSchema = zod.z.object({
|
|
46
|
-
_id: zod.z.string().describe("Internal Radar identifier for the user"),
|
|
46
|
+
_id: zod.z.string().describe("Internal Radar identifier for the user").nullable(),
|
|
47
47
|
dma: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Designated Market Area information").nullable().optional(),
|
|
48
48
|
live: zod.z.boolean().describe("Whether this is a live (not test) user").nullable().optional(),
|
|
49
49
|
trip: RadarGetUser_TripInUserSchema.nullable().optional(),
|
|
@@ -57,16 +57,16 @@ const RadarGetUser_UserSchema = zod.z.object({
|
|
|
57
57
|
deviceId: zod.z.string().describe("Identifier for the user's device").nullable().optional(),
|
|
58
58
|
location: RadarGetUser_GeoJSONPointSchema.nullable().optional(),
|
|
59
59
|
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata for the user").nullable().optional(),
|
|
60
|
-
createdAt: zod.z.string().describe("Creation timestamp in ISO 8601 format"),
|
|
60
|
+
createdAt: zod.z.string().describe("Creation timestamp in ISO 8601 format").nullable(),
|
|
61
61
|
geofences: zod.z.array(RadarGetUser_GeofenceInUserSchema).describe("List of geofences the user is currently inside").nullable().optional(),
|
|
62
|
-
updatedAt: zod.z.string().describe("Last updated timestamp in ISO 8601 format"),
|
|
62
|
+
updatedAt: zod.z.string().describe("Last updated timestamp in ISO 8601 format").nullable(),
|
|
63
63
|
deviceType: zod.z.string().describe("Type of device (iOS, Android, Web)").nullable().optional(),
|
|
64
64
|
foreground: zod.z.boolean().describe("Whether the app was in foreground for last location update").nullable().optional(),
|
|
65
65
|
postalCode: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Postal code information for the user's location").nullable().optional(),
|
|
66
66
|
description: zod.z.string().describe("Description of the user").nullable().optional(),
|
|
67
67
|
locationAccuracy: zod.z.number().describe("Accuracy of the location in meters").nullable().optional()
|
|
68
68
|
}).passthrough().describe("Complete user object returned by Radar with all location and context data.");
|
|
69
|
-
const RadarGetUserOutput = zod.z.object({ user: RadarGetUser_UserSchema.nullable() }).describe("Response model for GET_USER, containing the user object with all location and context data.");
|
|
69
|
+
const RadarGetUserOutput = zod.z.object({ user: RadarGetUser_UserSchema.nullable() }).passthrough().describe("Response model for GET_USER, containing the user object with all location and context data.");
|
|
70
70
|
const radarGetUser = require_action.action("RADAR_GET_USER", {
|
|
71
71
|
slug: "radar-get-user",
|
|
72
72
|
name: "Get User",
|