@keystrokehq/radar 0.1.0 → 0.1.2
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 +8 -8
- 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 +8 -8
- package/dist/actions/autocomplete-address-or-place.mjs.map +1 -1
- package/dist/actions/create-beacon.cjs +9 -9
- 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 +9 -9
- package/dist/actions/create-beacon.mjs.map +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.map +1 -1
- package/dist/actions/delete-beacon.cjs +1 -1
- 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 +1 -1
- package/dist/actions/delete-beacon.mjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.cjs +1 -1
- 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 +1 -1
- package/dist/actions/delete-geofence-by-tag.mjs.map +1 -1
- package/dist/actions/delete-geofence.cjs +1 -1
- 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 +1 -1
- package/dist/actions/delete-geofence.mjs.map +1 -1
- package/dist/actions/delete-trip.cjs +1 -1
- 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 +1 -1
- package/dist/actions/delete-trip.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +1 -1
- 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 +1 -1
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/forward-geocode.cjs +4 -4
- 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 +4 -4
- package/dist/actions/forward-geocode.mjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.cjs +8 -8
- 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 +8 -8
- package/dist/actions/get-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/get-beacon.cjs +3 -3
- 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 +3 -3
- package/dist/actions/get-beacon.mjs.map +1 -1
- package/dist/actions/get-context-for-location.cjs +2 -2
- 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 +2 -2
- package/dist/actions/get-context-for-location.mjs.map +1 -1
- package/dist/actions/get-geofence.cjs +5 -5
- 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 +5 -5
- package/dist/actions/get-geofence.mjs.map +1 -1
- package/dist/actions/get-places-settings.cjs +1 -1
- 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 +1 -1
- package/dist/actions/get-places-settings.mjs.map +1 -1
- package/dist/actions/get-route-directions.cjs +8 -8
- 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 +8 -8
- package/dist/actions/get-route-directions.mjs.map +1 -1
- package/dist/actions/get-route-matrix.cjs +9 -9
- 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 +9 -9
- package/dist/actions/get-route-matrix.mjs.map +1 -1
- package/dist/actions/get-trip.cjs +3 -3
- 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 +3 -3
- package/dist/actions/get-trip.mjs.map +1 -1
- package/dist/actions/get-user.cjs +6 -6
- 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 +6 -6
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-in-geofence.cjs +2 -2
- 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 +2 -2
- package/dist/actions/get-users-in-geofence.mjs.map +1 -1
- package/dist/actions/ip-geocode.cjs +4 -4
- 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 +4 -4
- package/dist/actions/ip-geocode.mjs.map +1 -1
- package/dist/actions/list-events.cjs +4 -4
- 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 +4 -4
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-geofences.cjs +8 -8
- 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 +8 -8
- package/dist/actions/list-geofences.mjs.map +1 -1
- package/dist/actions/list-trips.cjs +4 -4
- 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 +4 -4
- package/dist/actions/list-trips.mjs.map +1 -1
- package/dist/actions/list-users.cjs +5 -5
- 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 +5 -5
- package/dist/actions/list-users.mjs.map +1 -1
- 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.map +1 -1
- package/dist/actions/route-distance.cjs +5 -5
- 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 +5 -5
- package/dist/actions/route-distance.mjs.map +1 -1
- package/dist/actions/search-geofences-near-location.cjs +2 -2
- 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 +2 -2
- package/dist/actions/search-geofences-near-location.mjs.map +1 -1
- package/dist/actions/search-places-near-location.cjs +4 -4
- 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 +4 -4
- package/dist/actions/search-places-near-location.mjs.map +1 -1
- package/dist/actions/search-users-near-location.cjs +5 -5
- 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 +5 -5
- package/dist/actions/search-users-near-location.mjs.map +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.map +1 -1
- package/dist/actions/update-places-settings.cjs +1 -1
- 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 +1 -1
- package/dist/actions/update-places-settings.mjs.map +1 -1
- 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.map +1 -1
- package/dist/actions/update-trip.cjs +2 -2
- 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 +2 -2
- package/dist/actions/update-trip.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.cjs +6 -6
- 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 +6 -6
- package/dist/actions/upsert-beacon-by-id.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.cjs +2 -2
- 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 +2 -2
- package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.cjs +6 -6
- 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 +6 -6
- package/dist/actions/upsert-geofence-by-id.mjs.map +1 -1
- package/dist/actions/upsert-geofence.cjs +4 -4
- 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 +4 -4
- 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
|
@@ -19,14 +19,14 @@ const RadarRouteDistanceInput = zod.z.object({
|
|
|
19
19
|
]).describe("Format for route geometry in response. Options: 'polyline', 'polyline5', 'polyline6', 'linestring'").optional(),
|
|
20
20
|
destinations: zod.z.string().describe("Destination coordinate as 'latitude,longitude'")
|
|
21
21
|
}).describe("Request model for calculating route distance and duration.");
|
|
22
|
-
const RadarRouteDistance_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code") }).describe("Metadata for the route distance response.");
|
|
22
|
+
const RadarRouteDistance_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code").nullable() }).describe("Metadata for the route distance response.");
|
|
23
23
|
const RadarRouteDistance_DistanceInfoSchema = zod.z.object({
|
|
24
|
-
text: zod.z.string().describe("Human-readable distance string"),
|
|
25
|
-
value: zod.z.number().describe("Distance value in meters or feet depending on units")
|
|
24
|
+
text: zod.z.string().describe("Human-readable distance string").nullable(),
|
|
25
|
+
value: zod.z.number().describe("Distance value in meters or feet depending on units").nullable()
|
|
26
26
|
}).describe("Distance information for a route.");
|
|
27
27
|
const RadarRouteDistance_DurationInfoSchema = zod.z.object({
|
|
28
|
-
text: zod.z.string().describe("Human-readable duration string"),
|
|
29
|
-
value: zod.z.number().describe("Duration value in minutes")
|
|
28
|
+
text: zod.z.string().describe("Human-readable duration string").nullable(),
|
|
29
|
+
value: zod.z.number().describe("Duration value in minutes").nullable()
|
|
30
30
|
}).describe("Duration information for a route.");
|
|
31
31
|
const RadarRouteDistance_RouteGeometrySchema = zod.z.object({
|
|
32
32
|
type: zod.z.string().describe("GeoJSON geometry type; 'LineString' when using linestring format").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-distance.cjs","names":["z","action"],"sources":["../../src/actions/route-distance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarRouteDistanceInput
|
|
1
|
+
{"version":3,"file":"route-distance.cjs","names":["z","action"],"sources":["../../src/actions/route-distance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarRouteDistanceInput = z.object({\n mode: z.enum([\"car\", \"truck\", \"foot\", \"bike\"]).default(\"car\").describe(\"Routing mode\").optional(),\n avoid: z.string().describe(\"Route features to avoid, comma-separated (e.g., 'tolls,ferries')\").optional(),\n units: z.enum([\"metric\", \"imperial\"]).default(\"metric\").describe(\"Units for distance measurement\").optional(),\n origins: z.string().describe(\"Origin coordinate as 'latitude,longitude'\"),\n geometry: z.enum([\"polyline\", \"polyline5\", \"polyline6\", \"linestring\"]).describe(\"Format for route geometry in response. Options: 'polyline', 'polyline5', 'polyline6', 'linestring'\").optional(),\n destinations: z.string().describe(\"Destination coordinate as 'latitude,longitude'\"),\n}).describe(\"Request model for calculating route distance and duration.\");\nconst RadarRouteDistance_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n}).describe(\"Metadata for the route distance response.\");\nconst RadarRouteDistance_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}).describe(\"Distance information for a route.\");\nconst RadarRouteDistance_DurationInfoSchema = z.object({\n text: z.string().describe(\"Human-readable duration string\").nullable(),\n value: z.number().describe(\"Duration value in minutes\").nullable(),\n}).describe(\"Duration information for a route.\");\nconst RadarRouteDistance_RouteGeometrySchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type; 'LineString' when using linestring format\").nullable().optional(),\n polyline: z.string().describe(\"Encoded polyline string (polyline format)\").nullable().optional(),\n polyline5: z.string().describe(\"Encoded polyline5 string (polyline5 format)\").nullable().optional(),\n polyline6: z.string().describe(\"Encoded polyline6 string (polyline6 format)\").nullable().optional(),\n coordinates: z.array(z.array(z.number())).describe(\"List of [longitude, latitude] coordinate pairs (linestring format)\").nullable().optional(),\n}).describe(\"Route geometry - can be GeoJSON LineString or encoded polyline format.\");\nconst RadarRouteDistance_TransportRouteSchema = z.object({\n distance: RadarRouteDistance_DistanceInfoSchema.nullable(),\n duration: RadarRouteDistance_DurationInfoSchema.nullable(),\n geometry: RadarRouteDistance_RouteGeometrySchema.nullable().optional(),\n}).describe(\"Route information for a transport mode (car, truck, foot, bike).\");\nconst RadarRouteDistance_GeodesicRouteSchema = z.object({\n distance: RadarRouteDistance_DistanceInfoSchema.nullable(),\n}).describe(\"Geodesic (straight-line) route information.\");\nconst RadarRouteDistance_RoutesSchema = z.object({\n car: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n bike: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n foot: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n truck: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n geodesic: RadarRouteDistance_GeodesicRouteSchema.nullable().optional(),\n}).describe(\"Routes object containing geodesic and mode-specific route information.\");\nexport const RadarRouteDistanceOutput = z.object({\n meta: RadarRouteDistance_MetaSchema.nullable(),\n routes: RadarRouteDistance_RoutesSchema.nullable(),\n}).describe(\"Response model for route distance and duration calculation.\");\n\nexport const radarRouteDistance = action(\"RADAR_ROUTE_DISTANCE\", {\n slug: \"radar-route-distance\",\n name: \"Route Distance\",\n description: \"Tool to compute distance and travel time between origins and destinations. Use when you need route metrics before optimizing or timing routes.\",\n input: RadarRouteDistanceInput,\n output: RadarRouteDistanceOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1,9 +1,116 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/route-distance.d.ts
|
|
4
|
-
declare const RadarRouteDistanceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarRouteDistanceInput: z.ZodObject<{
|
|
5
|
+
mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
car: "car";
|
|
7
|
+
truck: "truck";
|
|
8
|
+
foot: "foot";
|
|
9
|
+
bike: "bike";
|
|
10
|
+
}>>>;
|
|
11
|
+
avoid: z.ZodOptional<z.ZodString>;
|
|
12
|
+
units: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
metric: "metric";
|
|
14
|
+
imperial: "imperial";
|
|
15
|
+
}>>>;
|
|
16
|
+
origins: z.ZodString;
|
|
17
|
+
geometry: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
linestring: "linestring";
|
|
19
|
+
polyline5: "polyline5";
|
|
20
|
+
polyline6: "polyline6";
|
|
21
|
+
polyline: "polyline";
|
|
22
|
+
}>>;
|
|
23
|
+
destinations: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const RadarRouteDistanceOutput: z.ZodObject<{
|
|
26
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
routes: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
car: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
text: z.ZodNullable<z.ZodString>;
|
|
33
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
36
|
+
text: z.ZodNullable<z.ZodString>;
|
|
37
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
bike: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
48
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
text: z.ZodNullable<z.ZodString>;
|
|
50
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
text: z.ZodNullable<z.ZodString>;
|
|
54
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
}, z.core.$strip>>>;
|
|
64
|
+
foot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
65
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
text: z.ZodNullable<z.ZodString>;
|
|
67
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
70
|
+
text: z.ZodNullable<z.ZodString>;
|
|
71
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
74
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
81
|
+
truck: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
82
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
text: z.ZodNullable<z.ZodString>;
|
|
84
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
87
|
+
text: z.ZodNullable<z.ZodString>;
|
|
88
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
91
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
97
|
+
}, z.core.$strip>>>;
|
|
98
|
+
geodesic: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
100
|
+
text: z.ZodNullable<z.ZodString>;
|
|
101
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
declare const radarRouteDistance: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
107
|
+
origins: string;
|
|
108
|
+
destinations: string;
|
|
109
|
+
mode?: "car" | "truck" | "foot" | "bike" | undefined;
|
|
110
|
+
avoid?: string | undefined;
|
|
111
|
+
units?: "metric" | "imperial" | undefined;
|
|
112
|
+
geometry?: "linestring" | "polyline5" | "polyline6" | "polyline" | undefined;
|
|
113
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
114
|
//#endregion
|
|
8
115
|
export { radarRouteDistance };
|
|
9
116
|
//# sourceMappingURL=route-distance.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-distance.d.cts","names":[],"sources":["../../src/actions/route-distance.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"route-distance.d.cts","names":[],"sources":["../../src/actions/route-distance.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAyCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,116 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/route-distance.d.ts
|
|
4
|
-
declare const RadarRouteDistanceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarRouteDistanceInput: z.ZodObject<{
|
|
5
|
+
mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
car: "car";
|
|
7
|
+
truck: "truck";
|
|
8
|
+
foot: "foot";
|
|
9
|
+
bike: "bike";
|
|
10
|
+
}>>>;
|
|
11
|
+
avoid: z.ZodOptional<z.ZodString>;
|
|
12
|
+
units: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
metric: "metric";
|
|
14
|
+
imperial: "imperial";
|
|
15
|
+
}>>>;
|
|
16
|
+
origins: z.ZodString;
|
|
17
|
+
geometry: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
linestring: "linestring";
|
|
19
|
+
polyline5: "polyline5";
|
|
20
|
+
polyline6: "polyline6";
|
|
21
|
+
polyline: "polyline";
|
|
22
|
+
}>>;
|
|
23
|
+
destinations: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const RadarRouteDistanceOutput: z.ZodObject<{
|
|
26
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
routes: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
car: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
text: z.ZodNullable<z.ZodString>;
|
|
33
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
36
|
+
text: z.ZodNullable<z.ZodString>;
|
|
37
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
bike: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
48
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
text: z.ZodNullable<z.ZodString>;
|
|
50
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
text: z.ZodNullable<z.ZodString>;
|
|
54
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
}, z.core.$strip>>>;
|
|
64
|
+
foot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
65
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
text: z.ZodNullable<z.ZodString>;
|
|
67
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
70
|
+
text: z.ZodNullable<z.ZodString>;
|
|
71
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
74
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
81
|
+
truck: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
82
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
text: z.ZodNullable<z.ZodString>;
|
|
84
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
87
|
+
text: z.ZodNullable<z.ZodString>;
|
|
88
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
91
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
97
|
+
}, z.core.$strip>>>;
|
|
98
|
+
geodesic: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
100
|
+
text: z.ZodNullable<z.ZodString>;
|
|
101
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
declare const radarRouteDistance: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
107
|
+
origins: string;
|
|
108
|
+
destinations: string;
|
|
109
|
+
mode?: "car" | "truck" | "foot" | "bike" | undefined;
|
|
110
|
+
avoid?: string | undefined;
|
|
111
|
+
units?: "metric" | "imperial" | undefined;
|
|
112
|
+
geometry?: "linestring" | "polyline5" | "polyline6" | "polyline" | undefined;
|
|
113
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
114
|
//#endregion
|
|
8
115
|
export { radarRouteDistance };
|
|
9
116
|
//# sourceMappingURL=route-distance.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-distance.d.mts","names":[],"sources":["../../src/actions/route-distance.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"route-distance.d.mts","names":[],"sources":["../../src/actions/route-distance.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAyCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -19,14 +19,14 @@ const RadarRouteDistanceInput = z.object({
|
|
|
19
19
|
]).describe("Format for route geometry in response. Options: 'polyline', 'polyline5', 'polyline6', 'linestring'").optional(),
|
|
20
20
|
destinations: z.string().describe("Destination coordinate as 'latitude,longitude'")
|
|
21
21
|
}).describe("Request model for calculating route distance and duration.");
|
|
22
|
-
const RadarRouteDistance_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code") }).describe("Metadata for the route distance response.");
|
|
22
|
+
const RadarRouteDistance_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code").nullable() }).describe("Metadata for the route distance response.");
|
|
23
23
|
const RadarRouteDistance_DistanceInfoSchema = z.object({
|
|
24
|
-
text: z.string().describe("Human-readable distance string"),
|
|
25
|
-
value: z.number().describe("Distance value in meters or feet depending on units")
|
|
24
|
+
text: z.string().describe("Human-readable distance string").nullable(),
|
|
25
|
+
value: z.number().describe("Distance value in meters or feet depending on units").nullable()
|
|
26
26
|
}).describe("Distance information for a route.");
|
|
27
27
|
const RadarRouteDistance_DurationInfoSchema = z.object({
|
|
28
|
-
text: z.string().describe("Human-readable duration string"),
|
|
29
|
-
value: z.number().describe("Duration value in minutes")
|
|
28
|
+
text: z.string().describe("Human-readable duration string").nullable(),
|
|
29
|
+
value: z.number().describe("Duration value in minutes").nullable()
|
|
30
30
|
}).describe("Duration information for a route.");
|
|
31
31
|
const RadarRouteDistance_RouteGeometrySchema = z.object({
|
|
32
32
|
type: z.string().describe("GeoJSON geometry type; 'LineString' when using linestring format").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-distance.mjs","names":[],"sources":["../../src/actions/route-distance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarRouteDistanceInput
|
|
1
|
+
{"version":3,"file":"route-distance.mjs","names":[],"sources":["../../src/actions/route-distance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarRouteDistanceInput = z.object({\n mode: z.enum([\"car\", \"truck\", \"foot\", \"bike\"]).default(\"car\").describe(\"Routing mode\").optional(),\n avoid: z.string().describe(\"Route features to avoid, comma-separated (e.g., 'tolls,ferries')\").optional(),\n units: z.enum([\"metric\", \"imperial\"]).default(\"metric\").describe(\"Units for distance measurement\").optional(),\n origins: z.string().describe(\"Origin coordinate as 'latitude,longitude'\"),\n geometry: z.enum([\"polyline\", \"polyline5\", \"polyline6\", \"linestring\"]).describe(\"Format for route geometry in response. Options: 'polyline', 'polyline5', 'polyline6', 'linestring'\").optional(),\n destinations: z.string().describe(\"Destination coordinate as 'latitude,longitude'\"),\n}).describe(\"Request model for calculating route distance and duration.\");\nconst RadarRouteDistance_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n}).describe(\"Metadata for the route distance response.\");\nconst RadarRouteDistance_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}).describe(\"Distance information for a route.\");\nconst RadarRouteDistance_DurationInfoSchema = z.object({\n text: z.string().describe(\"Human-readable duration string\").nullable(),\n value: z.number().describe(\"Duration value in minutes\").nullable(),\n}).describe(\"Duration information for a route.\");\nconst RadarRouteDistance_RouteGeometrySchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type; 'LineString' when using linestring format\").nullable().optional(),\n polyline: z.string().describe(\"Encoded polyline string (polyline format)\").nullable().optional(),\n polyline5: z.string().describe(\"Encoded polyline5 string (polyline5 format)\").nullable().optional(),\n polyline6: z.string().describe(\"Encoded polyline6 string (polyline6 format)\").nullable().optional(),\n coordinates: z.array(z.array(z.number())).describe(\"List of [longitude, latitude] coordinate pairs (linestring format)\").nullable().optional(),\n}).describe(\"Route geometry - can be GeoJSON LineString or encoded polyline format.\");\nconst RadarRouteDistance_TransportRouteSchema = z.object({\n distance: RadarRouteDistance_DistanceInfoSchema.nullable(),\n duration: RadarRouteDistance_DurationInfoSchema.nullable(),\n geometry: RadarRouteDistance_RouteGeometrySchema.nullable().optional(),\n}).describe(\"Route information for a transport mode (car, truck, foot, bike).\");\nconst RadarRouteDistance_GeodesicRouteSchema = z.object({\n distance: RadarRouteDistance_DistanceInfoSchema.nullable(),\n}).describe(\"Geodesic (straight-line) route information.\");\nconst RadarRouteDistance_RoutesSchema = z.object({\n car: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n bike: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n foot: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n truck: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n geodesic: RadarRouteDistance_GeodesicRouteSchema.nullable().optional(),\n}).describe(\"Routes object containing geodesic and mode-specific route information.\");\nexport const RadarRouteDistanceOutput = z.object({\n meta: RadarRouteDistance_MetaSchema.nullable(),\n routes: RadarRouteDistance_RoutesSchema.nullable(),\n}).describe(\"Response model for route distance and duration calculation.\");\n\nexport const radarRouteDistance = action(\"RADAR_ROUTE_DISTANCE\", {\n slug: \"radar-route-distance\",\n name: \"Route Distance\",\n description: \"Tool to compute distance and travel time between origins and destinations. Use when you need route metrics before optimizing or timing routes.\",\n input: RadarRouteDistanceInput,\n output: RadarRouteDistanceOutput,\n});\n"],"mappings":"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"}
|
|
@@ -9,11 +9,11 @@ const RadarSearchGeofencesNearLocationInput = zod.z.object({
|
|
|
9
9
|
longitude: zod.z.number().describe("Longitude of the location to search near")
|
|
10
10
|
}).describe("Request model for SEARCH_GEOFENCES_NEAR_LOCATION.");
|
|
11
11
|
const RadarSearchGeofencesNearLocation_GeometrySchema = zod.z.object({
|
|
12
|
-
type: zod.z.string().describe("Geometry type: 'Point' or 'Polygon'."),
|
|
12
|
+
type: zod.z.string().describe("Geometry type: 'Point' or 'Polygon'.").nullable(),
|
|
13
13
|
coordinates: zod.z.array(zod.z.unknown()).describe("Coordinates array for the geofence geometry.")
|
|
14
14
|
}).describe("Geometry details of a geofence.");
|
|
15
15
|
const RadarSearchGeofencesNearLocation_SearchGeofenceSchema = zod.z.object({
|
|
16
|
-
_id: zod.z.string().describe("Unique identifier of the geofence."),
|
|
16
|
+
_id: zod.z.string().describe("Unique identifier of the geofence.").nullable(),
|
|
17
17
|
tag: zod.z.string().describe("Tag associated with the geofence.").nullable().optional(),
|
|
18
18
|
live: zod.z.boolean().describe("Whether the geofence is live.").nullable().optional(),
|
|
19
19
|
type: zod.z.string().describe("Type of geofence (circle or polygon).").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-geofences-near-location.cjs","names":["z","action"],"sources":["../../src/actions/search-geofences-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchGeofencesNearLocationInput
|
|
1
|
+
{"version":3,"file":"search-geofences-near-location.cjs","names":["z","action"],"sources":["../../src/actions/search-geofences-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchGeofencesNearLocationInput = z.object({\n tags: z.array(z.string()).describe(\"Filter geofences by these tags\").optional(),\n radius: z.number().int().describe(\"Search radius in meters (default 1000, max 10000)\").optional(),\n latitude: z.number().describe(\"Latitude of the location to search near\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Filter geofences by metadata key-value pairs\").optional(),\n longitude: z.number().describe(\"Longitude of the location to search near\"),\n}).describe(\"Request model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\nconst RadarSearchGeofencesNearLocation_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type: 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates array for the geofence geometry.\"),\n}).describe(\"Geometry details of a geofence.\");\nconst RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n live: z.boolean().describe(\"Whether the geofence is live.\").nullable().optional(),\n type: z.string().describe(\"Type of geofence (circle or polygon).\").nullable().optional(),\n geometry: RadarSearchGeofencesNearLocation_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data attached to the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601).\").nullable().optional(),\n externalId: z.string().describe(\"External identifier of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n geometryCenter: z.record(z.string(), z.unknown()).describe(\"Center point of the geofence geometry.\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters.\").nullable().optional(),\n}).describe(\"Representation of a Radar geofence returned in search.\");\nexport const RadarSearchGeofencesNearLocationOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofences: z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe(\"List of geofences near the specified location.\"),\n}).describe(\"Response model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\n\nexport const radarSearchGeofencesNearLocation = action(\"RADAR_SEARCH_GEOFENCES_NEAR_LOCATION\", {\n slug: \"radar-search-geofences-near-location\",\n name: \"Search Geofences\",\n description: \"Tool to search for geofences near a given location. Use when you need to find geofences within a radius of specified coordinates.\",\n input: RadarSearchGeofencesNearLocationInput,\n output: RadarSearchGeofencesNearLocationOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search-geofences-near-location.d.ts
|
|
4
|
-
declare const RadarSearchGeofencesNearLocationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarSearchGeofencesNearLocationInput: z.ZodObject<{
|
|
5
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
latitude: z.ZodNumber;
|
|
8
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
longitude: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const RadarSearchGeofencesNearLocationOutput: z.ZodObject<{
|
|
12
|
+
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
|
+
geofences: z.ZodArray<z.ZodObject<{
|
|
14
|
+
_id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
type: z.ZodNullable<z.ZodString>;
|
|
20
|
+
coordinates: z.ZodArray<z.ZodUnknown>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
geometryCenter: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
|
+
geometryRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const radarSearchGeofencesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
latitude: number;
|
|
33
|
+
longitude: number;
|
|
34
|
+
tags?: string[] | undefined;
|
|
35
|
+
radius?: number | undefined;
|
|
36
|
+
metadata?: Record<string, unknown> | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { radarSearchGeofencesNearLocation };
|
|
9
40
|
//# sourceMappingURL=search-geofences-near-location.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-geofences-near-location.d.cts","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"mappings":";;;cAIa,qCAAA,
|
|
1
|
+
{"version":3,"file":"search-geofences-near-location.d.cts","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;cAyBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKtC,gCAAA,gCAAgC,wBAAA;;;;;aAM3C,MAAA;AAAA"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/search-geofences-near-location.d.ts
|
|
4
|
-
declare const RadarSearchGeofencesNearLocationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarSearchGeofencesNearLocationInput: z.ZodObject<{
|
|
5
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
latitude: z.ZodNumber;
|
|
8
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
|
+
longitude: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const RadarSearchGeofencesNearLocationOutput: z.ZodObject<{
|
|
12
|
+
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
|
+
geofences: z.ZodArray<z.ZodObject<{
|
|
14
|
+
_id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
type: z.ZodNullable<z.ZodString>;
|
|
20
|
+
coordinates: z.ZodArray<z.ZodUnknown>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
geometryCenter: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
|
+
geometryRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
declare const radarSearchGeofencesNearLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
latitude: number;
|
|
33
|
+
longitude: number;
|
|
34
|
+
tags?: string[] | undefined;
|
|
35
|
+
radius?: number | undefined;
|
|
36
|
+
metadata?: Record<string, unknown> | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { radarSearchGeofencesNearLocation };
|
|
9
40
|
//# sourceMappingURL=search-geofences-near-location.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-geofences-near-location.d.mts","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"mappings":";;;cAIa,qCAAA,
|
|
1
|
+
{"version":3,"file":"search-geofences-near-location.d.mts","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;cAyBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAKtC,gCAAA,gCAAgC,wBAAA;;;;;aAM3C,MAAA;AAAA"}
|
|
@@ -9,11 +9,11 @@ const RadarSearchGeofencesNearLocationInput = z.object({
|
|
|
9
9
|
longitude: z.number().describe("Longitude of the location to search near")
|
|
10
10
|
}).describe("Request model for SEARCH_GEOFENCES_NEAR_LOCATION.");
|
|
11
11
|
const RadarSearchGeofencesNearLocation_GeometrySchema = z.object({
|
|
12
|
-
type: z.string().describe("Geometry type: 'Point' or 'Polygon'."),
|
|
12
|
+
type: z.string().describe("Geometry type: 'Point' or 'Polygon'.").nullable(),
|
|
13
13
|
coordinates: z.array(z.unknown()).describe("Coordinates array for the geofence geometry.")
|
|
14
14
|
}).describe("Geometry details of a geofence.");
|
|
15
15
|
const RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({
|
|
16
|
-
_id: z.string().describe("Unique identifier of the geofence."),
|
|
16
|
+
_id: z.string().describe("Unique identifier of the geofence.").nullable(),
|
|
17
17
|
tag: z.string().describe("Tag associated with the geofence.").nullable().optional(),
|
|
18
18
|
live: z.boolean().describe("Whether the geofence is live.").nullable().optional(),
|
|
19
19
|
type: z.string().describe("Type of geofence (circle or polygon).").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-geofences-near-location.mjs","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchGeofencesNearLocationInput
|
|
1
|
+
{"version":3,"file":"search-geofences-near-location.mjs","names":[],"sources":["../../src/actions/search-geofences-near-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarSearchGeofencesNearLocationInput = z.object({\n tags: z.array(z.string()).describe(\"Filter geofences by these tags\").optional(),\n radius: z.number().int().describe(\"Search radius in meters (default 1000, max 10000)\").optional(),\n latitude: z.number().describe(\"Latitude of the location to search near\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Filter geofences by metadata key-value pairs\").optional(),\n longitude: z.number().describe(\"Longitude of the location to search near\"),\n}).describe(\"Request model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\nconst RadarSearchGeofencesNearLocation_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type: 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates array for the geofence geometry.\"),\n}).describe(\"Geometry details of a geofence.\");\nconst RadarSearchGeofencesNearLocation_SearchGeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n live: z.boolean().describe(\"Whether the geofence is live.\").nullable().optional(),\n type: z.string().describe(\"Type of geofence (circle or polygon).\").nullable().optional(),\n geometry: RadarSearchGeofencesNearLocation_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data attached to the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601).\").nullable().optional(),\n externalId: z.string().describe(\"External identifier of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n geometryCenter: z.record(z.string(), z.unknown()).describe(\"Center point of the geofence geometry.\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters.\").nullable().optional(),\n}).describe(\"Representation of a Radar geofence returned in search.\");\nexport const RadarSearchGeofencesNearLocationOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofences: z.array(RadarSearchGeofencesNearLocation_SearchGeofenceSchema).describe(\"List of geofences near the specified location.\"),\n}).describe(\"Response model for SEARCH_GEOFENCES_NEAR_LOCATION.\");\n\nexport const radarSearchGeofencesNearLocation = action(\"RADAR_SEARCH_GEOFENCES_NEAR_LOCATION\", {\n slug: \"radar-search-geofences-near-location\",\n name: \"Search Geofences\",\n description: \"Tool to search for geofences near a given location. Use when you need to find geofences within a radius of specified coordinates.\",\n input: RadarSearchGeofencesNearLocationInput,\n output: RadarSearchGeofencesNearLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACvE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC9G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC3E,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,kDAAkD,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC3F,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,wDAAwD,EAAE,OAAO;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,UAAU,gDAAgD,SAAS;CACnE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAMpE,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB;EACrE,WAAW,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gDAAgD;CACrI,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const RadarSearchPlacesNearLocationInput = zod.z.object({
|
|
|
12
12
|
categories: zod.z.array(zod.z.string()).describe("Filter by category names").optional(),
|
|
13
13
|
chain_metadata: zod.z.boolean().describe("If true, includes chain metadata in each place object").optional()
|
|
14
14
|
}).describe("Request model for SEARCH_PLACES_NEAR_LOCATION.");
|
|
15
|
-
const RadarSearchPlacesNearLocation_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code of the response") });
|
|
15
|
+
const RadarSearchPlacesNearLocation_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code of the response").nullable() });
|
|
16
16
|
const RadarSearchPlacesNearLocation_LinksSchema = zod.z.object({
|
|
17
17
|
next: zod.z.string().describe("URL for next page").nullable().optional(),
|
|
18
18
|
prev: zod.z.string().describe("URL for previous page").nullable().optional()
|
|
@@ -24,12 +24,12 @@ const RadarSearchPlacesNearLocation_ChainSchema = zod.z.object({
|
|
|
24
24
|
externalId: zod.z.string().describe("Chain external ID").nullable().optional()
|
|
25
25
|
});
|
|
26
26
|
const RadarSearchPlacesNearLocation_GeoJSONPointSchema = zod.z.object({
|
|
27
|
-
type: zod.z.string().describe("GeoJSON type, must be 'Point'"),
|
|
27
|
+
type: zod.z.string().describe("GeoJSON type, must be 'Point'").nullable(),
|
|
28
28
|
coordinates: zod.z.array(zod.z.number()).describe("Coordinates as [lng, lat]")
|
|
29
29
|
});
|
|
30
30
|
const RadarSearchPlacesNearLocation_PlaceSchema = zod.z.object({
|
|
31
|
-
_id: zod.z.string().describe("Place unique identifier"),
|
|
32
|
-
name: zod.z.string().describe("Name of the place"),
|
|
31
|
+
_id: zod.z.string().describe("Place unique identifier").nullable(),
|
|
32
|
+
name: zod.z.string().describe("Name of the place").nullable(),
|
|
33
33
|
chain: RadarSearchPlacesNearLocation_ChainSchema.nullable().optional(),
|
|
34
34
|
distance: zod.z.number().describe("Distance in meters from the search origin").nullable().optional(),
|
|
35
35
|
location: RadarSearchPlacesNearLocation_GeoJSONPointSchema.nullable(),
|