@keystrokehq/radar 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.cjs +1 -0
- package/dist/actions/autocomplete-address-or-place.cjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.cts +3 -18
- package/dist/actions/autocomplete-address-or-place.d.cts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.mts +3 -18
- package/dist/actions/autocomplete-address-or-place.d.mts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.mjs +1 -0
- package/dist/actions/autocomplete-address-or-place.mjs.map +1 -1
- package/dist/actions/create-beacon.cjs +1 -0
- package/dist/actions/create-beacon.cjs.map +1 -1
- package/dist/actions/create-beacon.d.cts +3 -24
- package/dist/actions/create-beacon.d.cts.map +1 -1
- package/dist/actions/create-beacon.d.mts +3 -24
- package/dist/actions/create-beacon.d.mts.map +1 -1
- package/dist/actions/create-beacon.mjs +1 -0
- package/dist/actions/create-beacon.mjs.map +1 -1
- package/dist/actions/create-trip.cjs +1 -0
- package/dist/actions/create-trip.cjs.map +1 -1
- package/dist/actions/create-trip.d.cts +3 -30
- package/dist/actions/create-trip.d.cts.map +1 -1
- package/dist/actions/create-trip.d.mts +3 -30
- package/dist/actions/create-trip.d.mts.map +1 -1
- package/dist/actions/create-trip.mjs +1 -0
- package/dist/actions/create-trip.mjs.map +1 -1
- package/dist/actions/delete-beacon.cjs +1 -0
- package/dist/actions/delete-beacon.cjs.map +1 -1
- package/dist/actions/delete-beacon.d.cts +3 -15
- package/dist/actions/delete-beacon.d.cts.map +1 -1
- package/dist/actions/delete-beacon.d.mts +3 -15
- package/dist/actions/delete-beacon.d.mts.map +1 -1
- package/dist/actions/delete-beacon.mjs +1 -0
- package/dist/actions/delete-beacon.mjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.cjs +1 -0
- package/dist/actions/delete-geofence-by-tag.cjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.cts +3 -16
- package/dist/actions/delete-geofence-by-tag.d.cts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.mts +3 -16
- package/dist/actions/delete-geofence-by-tag.d.mts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.mjs +1 -0
- package/dist/actions/delete-geofence-by-tag.mjs.map +1 -1
- package/dist/actions/delete-geofence.cjs +1 -0
- package/dist/actions/delete-geofence.cjs.map +1 -1
- package/dist/actions/delete-geofence.d.cts +3 -15
- package/dist/actions/delete-geofence.d.cts.map +1 -1
- package/dist/actions/delete-geofence.d.mts +3 -15
- package/dist/actions/delete-geofence.d.mts.map +1 -1
- package/dist/actions/delete-geofence.mjs +1 -0
- package/dist/actions/delete-geofence.mjs.map +1 -1
- package/dist/actions/delete-trip.cjs +1 -0
- package/dist/actions/delete-trip.cjs.map +1 -1
- package/dist/actions/delete-trip.d.cts +3 -15
- package/dist/actions/delete-trip.d.cts.map +1 -1
- package/dist/actions/delete-trip.d.mts +3 -15
- package/dist/actions/delete-trip.d.mts.map +1 -1
- package/dist/actions/delete-trip.mjs +1 -0
- package/dist/actions/delete-trip.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +1 -0
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +3 -15
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +3 -15
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +1 -0
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/forward-geocode.cjs +1 -0
- package/dist/actions/forward-geocode.cjs.map +1 -1
- package/dist/actions/forward-geocode.d.cts +3 -18
- package/dist/actions/forward-geocode.d.cts.map +1 -1
- package/dist/actions/forward-geocode.d.mts +3 -18
- package/dist/actions/forward-geocode.d.mts.map +1 -1
- package/dist/actions/forward-geocode.mjs +1 -0
- package/dist/actions/forward-geocode.mjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.cjs +1 -0
- package/dist/actions/get-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.cts +3 -16
- package/dist/actions/get-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.mts +3 -16
- package/dist/actions/get-beacon-by-tag.d.mts.map +1 -1
- package/dist/actions/get-beacon-by-tag.mjs +1 -0
- package/dist/actions/get-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/get-beacon.cjs +1 -0
- package/dist/actions/get-beacon.cjs.map +1 -1
- package/dist/actions/get-beacon.d.cts +3 -15
- package/dist/actions/get-beacon.d.cts.map +1 -1
- package/dist/actions/get-beacon.d.mts +3 -15
- package/dist/actions/get-beacon.d.mts.map +1 -1
- package/dist/actions/get-beacon.mjs +1 -0
- package/dist/actions/get-beacon.mjs.map +1 -1
- package/dist/actions/get-context-for-location.cjs +1 -0
- package/dist/actions/get-context-for-location.cjs.map +1 -1
- package/dist/actions/get-context-for-location.d.cts +3 -16
- package/dist/actions/get-context-for-location.d.cts.map +1 -1
- package/dist/actions/get-context-for-location.d.mts +3 -16
- package/dist/actions/get-context-for-location.d.mts.map +1 -1
- package/dist/actions/get-context-for-location.mjs +1 -0
- package/dist/actions/get-context-for-location.mjs.map +1 -1
- package/dist/actions/get-geofence.cjs +1 -0
- package/dist/actions/get-geofence.cjs.map +1 -1
- package/dist/actions/get-geofence.d.cts +3 -17
- package/dist/actions/get-geofence.d.cts.map +1 -1
- package/dist/actions/get-geofence.d.mts +3 -17
- package/dist/actions/get-geofence.d.mts.map +1 -1
- package/dist/actions/get-geofence.mjs +1 -0
- package/dist/actions/get-geofence.mjs.map +1 -1
- package/dist/actions/get-places-settings.cjs +1 -0
- package/dist/actions/get-places-settings.cjs.map +1 -1
- package/dist/actions/get-places-settings.d.cts +3 -13
- package/dist/actions/get-places-settings.d.cts.map +1 -1
- package/dist/actions/get-places-settings.d.mts +3 -13
- package/dist/actions/get-places-settings.d.mts.map +1 -1
- package/dist/actions/get-places-settings.mjs +1 -0
- package/dist/actions/get-places-settings.mjs.map +1 -1
- package/dist/actions/get-route-directions.cjs +1 -0
- package/dist/actions/get-route-directions.cjs.map +1 -1
- package/dist/actions/get-route-directions.d.cts +4 -24
- package/dist/actions/get-route-directions.d.cts.map +1 -1
- package/dist/actions/get-route-directions.d.mts +4 -24
- package/dist/actions/get-route-directions.d.mts.map +1 -1
- package/dist/actions/get-route-directions.mjs +1 -0
- package/dist/actions/get-route-directions.mjs.map +1 -1
- package/dist/actions/get-route-matrix.cjs +1 -0
- package/dist/actions/get-route-matrix.cjs.map +1 -1
- package/dist/actions/get-route-matrix.d.cts +3 -18
- package/dist/actions/get-route-matrix.d.cts.map +1 -1
- package/dist/actions/get-route-matrix.d.mts +3 -18
- package/dist/actions/get-route-matrix.d.mts.map +1 -1
- package/dist/actions/get-route-matrix.mjs +1 -0
- package/dist/actions/get-route-matrix.mjs.map +1 -1
- package/dist/actions/get-trip.cjs +1 -0
- package/dist/actions/get-trip.cjs.map +1 -1
- package/dist/actions/get-trip.d.cts +3 -16
- package/dist/actions/get-trip.d.cts.map +1 -1
- package/dist/actions/get-trip.d.mts +3 -16
- package/dist/actions/get-trip.d.mts.map +1 -1
- package/dist/actions/get-trip.mjs +1 -0
- package/dist/actions/get-trip.mjs.map +1 -1
- package/dist/actions/get-user.cjs +1 -0
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +3 -15
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +3 -15
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +1 -0
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-in-geofence.cjs +1 -0
- package/dist/actions/get-users-in-geofence.cjs.map +1 -1
- package/dist/actions/get-users-in-geofence.d.cts +3 -18
- package/dist/actions/get-users-in-geofence.d.cts.map +1 -1
- package/dist/actions/get-users-in-geofence.d.mts +3 -18
- package/dist/actions/get-users-in-geofence.d.mts.map +1 -1
- package/dist/actions/get-users-in-geofence.mjs +1 -0
- package/dist/actions/get-users-in-geofence.mjs.map +1 -1
- package/dist/actions/ip-geocode.cjs +1 -0
- package/dist/actions/ip-geocode.cjs.map +1 -1
- package/dist/actions/ip-geocode.d.cts +3 -15
- package/dist/actions/ip-geocode.d.cts.map +1 -1
- package/dist/actions/ip-geocode.d.mts +3 -15
- package/dist/actions/ip-geocode.d.mts.map +1 -1
- package/dist/actions/ip-geocode.mjs +1 -0
- package/dist/actions/ip-geocode.mjs.map +1 -1
- package/dist/actions/list-events.cjs +1 -0
- package/dist/actions/list-events.cjs.map +1 -1
- package/dist/actions/list-events.d.cts +3 -22
- package/dist/actions/list-events.d.cts.map +1 -1
- package/dist/actions/list-events.d.mts +3 -22
- package/dist/actions/list-events.d.mts.map +1 -1
- package/dist/actions/list-events.mjs +1 -0
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-geofences.cjs +1 -0
- package/dist/actions/list-geofences.cjs.map +1 -1
- package/dist/actions/list-geofences.d.cts +3 -23
- package/dist/actions/list-geofences.d.cts.map +1 -1
- package/dist/actions/list-geofences.d.mts +3 -23
- package/dist/actions/list-geofences.d.mts.map +1 -1
- package/dist/actions/list-geofences.mjs +1 -0
- package/dist/actions/list-geofences.mjs.map +1 -1
- package/dist/actions/list-trips.cjs +1 -0
- package/dist/actions/list-trips.cjs.map +1 -1
- package/dist/actions/list-trips.d.cts +3 -20
- package/dist/actions/list-trips.d.cts.map +1 -1
- package/dist/actions/list-trips.d.mts +3 -20
- package/dist/actions/list-trips.d.mts.map +1 -1
- package/dist/actions/list-trips.mjs +1 -0
- package/dist/actions/list-trips.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -0
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -21
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -21
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -0
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/reverse-geocode.cjs +1 -0
- package/dist/actions/reverse-geocode.cjs.map +1 -1
- package/dist/actions/reverse-geocode.d.cts +3 -18
- package/dist/actions/reverse-geocode.d.cts.map +1 -1
- package/dist/actions/reverse-geocode.d.mts +3 -18
- package/dist/actions/reverse-geocode.d.mts.map +1 -1
- package/dist/actions/reverse-geocode.mjs +1 -0
- package/dist/actions/reverse-geocode.mjs.map +1 -1
- package/dist/actions/route-distance.cjs +1 -0
- package/dist/actions/route-distance.cjs.map +1 -1
- package/dist/actions/route-distance.d.cts +5 -22
- package/dist/actions/route-distance.d.cts.map +1 -1
- package/dist/actions/route-distance.d.mts +5 -22
- package/dist/actions/route-distance.d.mts.map +1 -1
- package/dist/actions/route-distance.mjs +1 -0
- package/dist/actions/route-distance.mjs.map +1 -1
- package/dist/actions/search-geofences-near-location.cjs +1 -0
- package/dist/actions/search-geofences-near-location.cjs.map +1 -1
- package/dist/actions/search-geofences-near-location.d.cts +3 -19
- package/dist/actions/search-geofences-near-location.d.cts.map +1 -1
- package/dist/actions/search-geofences-near-location.d.mts +3 -19
- package/dist/actions/search-geofences-near-location.d.mts.map +1 -1
- package/dist/actions/search-geofences-near-location.mjs +1 -0
- package/dist/actions/search-geofences-near-location.mjs.map +1 -1
- package/dist/actions/search-places-near-location.cjs +1 -0
- package/dist/actions/search-places-near-location.cjs.map +1 -1
- package/dist/actions/search-places-near-location.d.cts +3 -23
- package/dist/actions/search-places-near-location.d.cts.map +1 -1
- package/dist/actions/search-places-near-location.d.mts +3 -23
- package/dist/actions/search-places-near-location.d.mts.map +1 -1
- package/dist/actions/search-places-near-location.mjs +1 -0
- package/dist/actions/search-places-near-location.mjs.map +1 -1
- package/dist/actions/search-users-near-location.cjs +1 -0
- package/dist/actions/search-users-near-location.cjs.map +1 -1
- package/dist/actions/search-users-near-location.d.cts +3 -18
- package/dist/actions/search-users-near-location.d.cts.map +1 -1
- package/dist/actions/search-users-near-location.d.mts +3 -18
- package/dist/actions/search-users-near-location.d.mts.map +1 -1
- package/dist/actions/search-users-near-location.mjs +1 -0
- package/dist/actions/search-users-near-location.mjs.map +1 -1
- package/dist/actions/track-location-update.cjs +1 -0
- package/dist/actions/track-location-update.cjs.map +1 -1
- package/dist/actions/track-location-update.d.cts +3 -31
- package/dist/actions/track-location-update.d.cts.map +1 -1
- package/dist/actions/track-location-update.d.mts +3 -31
- package/dist/actions/track-location-update.d.mts.map +1 -1
- package/dist/actions/track-location-update.mjs +1 -0
- package/dist/actions/track-location-update.mjs.map +1 -1
- package/dist/actions/update-places-settings.cjs +1 -0
- package/dist/actions/update-places-settings.cjs.map +1 -1
- package/dist/actions/update-places-settings.d.cts +3 -17
- package/dist/actions/update-places-settings.d.cts.map +1 -1
- package/dist/actions/update-places-settings.d.mts +3 -17
- package/dist/actions/update-places-settings.d.mts.map +1 -1
- package/dist/actions/update-places-settings.mjs +1 -0
- package/dist/actions/update-places-settings.mjs.map +1 -1
- package/dist/actions/update-trip-by-id.cjs +1 -0
- package/dist/actions/update-trip-by-id.cjs.map +1 -1
- package/dist/actions/update-trip-by-id.d.cts +3 -18
- package/dist/actions/update-trip-by-id.d.cts.map +1 -1
- package/dist/actions/update-trip-by-id.d.mts +3 -18
- package/dist/actions/update-trip-by-id.d.mts.map +1 -1
- package/dist/actions/update-trip-by-id.mjs +1 -0
- package/dist/actions/update-trip-by-id.mjs.map +1 -1
- package/dist/actions/update-trip.cjs +1 -0
- package/dist/actions/update-trip.cjs.map +1 -1
- package/dist/actions/update-trip.d.cts +3 -32
- package/dist/actions/update-trip.d.cts.map +1 -1
- package/dist/actions/update-trip.d.mts +3 -32
- package/dist/actions/update-trip.d.mts.map +1 -1
- package/dist/actions/update-trip.mjs +1 -0
- package/dist/actions/update-trip.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.cjs +1 -0
- package/dist/actions/upsert-beacon-by-id.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.cts +3 -24
- package/dist/actions/upsert-beacon-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.mts +3 -24
- package/dist/actions/upsert-beacon-by-id.d.mts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.mjs +1 -0
- package/dist/actions/upsert-beacon-by-id.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.cjs +1 -0
- package/dist/actions/upsert-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.cts +3 -26
- package/dist/actions/upsert-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.mts +3 -26
- package/dist/actions/upsert-beacon-by-tag.d.mts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.mjs +1 -0
- package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.cjs +1 -0
- package/dist/actions/upsert-geofence-by-id.cjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.cts +3 -23
- package/dist/actions/upsert-geofence-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.mts +3 -23
- package/dist/actions/upsert-geofence-by-id.d.mts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.mjs +1 -0
- package/dist/actions/upsert-geofence-by-id.mjs.map +1 -1
- package/dist/actions/upsert-geofence.cjs +1 -0
- package/dist/actions/upsert-geofence.cjs.map +1 -1
- package/dist/actions/upsert-geofence.d.cts +3 -22
- package/dist/actions/upsert-geofence.d.cts.map +1 -1
- package/dist/actions/upsert-geofence.d.mts +3 -22
- package/dist/actions/upsert-geofence.d.mts.map +1 -1
- package/dist/actions/upsert-geofence.mjs +1 -0
- package/dist/actions/upsert-geofence.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-geofence.mjs","names":[],"sources":["../../src/actions/get-geofence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetGeofenceInput = z.object({\n id: z.string().describe(\"Unique Radar geofence identifier (e.g., '56db1f4613012711002229f5'). Use this OR tag+externalId.\").optional(),\n tag: z.string().describe(\"Tag of the geofence. Must be used together with externalId.\").optional(),\n externalId: z.string().describe(\"External identifier of the geofence. Must be used together with tag.\").optional(),\n}).describe(\"Request model for GET_GEOFENCE.\\nGeofences can be looked up by Radar _id OR by tag and externalId together.\");\nconst RadarGetGeofence_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type: 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.array(z.array(z.number()))).describe(\"Coordinates array for the geofence geometry. Nested lists for polygon vertices.\"),\n}).passthrough().describe(\"Geometry details of the geofence.\");\nconst RadarGetGeofence_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence, e.g., 'circle'.\").nullable(),\n geometry: RadarGetGeofence_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(\"ISO8601 timestamp when the geofence was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the geofence was last updated.\").nullable(),\n externalId: z.string().describe(\"External identifier of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarGetGeofenceOutput = z.object({\n geofence: RadarGetGeofence_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for GET_GEOFENCE, wrapping the geofence object.\");\n\nexport const radarGetGeofence = action(\"RADAR_GET_GEOFENCE\", {\n slug: \"radar-get-geofence\",\n name: \"Get Geofence\",\n description: \"Tool to retrieve a geofence by Radar _id or tag/externalId. Use when you need to fetch full details of an existing geofence.\",\n input: RadarGetGeofenceInput,\n output: RadarGetGeofenceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-geofence.mjs","names":[],"sources":["../../src/actions/get-geofence.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarGetGeofenceInput = z.object({\n id: z.string().describe(\"Unique Radar geofence identifier (e.g., '56db1f4613012711002229f5'). Use this OR tag+externalId.\").optional(),\n tag: z.string().describe(\"Tag of the geofence. Must be used together with externalId.\").optional(),\n externalId: z.string().describe(\"External identifier of the geofence. Must be used together with tag.\").optional(),\n}).describe(\"Request model for GET_GEOFENCE.\\nGeofences can be looked up by Radar _id OR by tag and externalId together.\");\nconst RadarGetGeofence_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type: 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.array(z.array(z.number()))).describe(\"Coordinates array for the geofence geometry. Nested lists for polygon vertices.\"),\n}).passthrough().describe(\"Geometry details of the geofence.\");\nconst RadarGetGeofence_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence, e.g., 'circle'.\").nullable(),\n geometry: RadarGetGeofence_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(\"ISO8601 timestamp when the geofence was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the geofence was last updated.\").nullable(),\n externalId: z.string().describe(\"External identifier of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarGetGeofenceOutput = z.object({\n geofence: RadarGetGeofence_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for GET_GEOFENCE, wrapping the geofence object.\");\n\nexport const radarGetGeofence: AppAction<\n typeof RadarGetGeofenceInput,\n typeof RadarGetGeofenceOutput,\n typeof radar.credential\n> = action(\"RADAR_GET_GEOFENCE\", {\n slug: \"radar-get-geofence\",\n name: \"Get Geofence\",\n description: \"Tool to retrieve a geofence by Radar _id or tag/externalId. Use when you need to fetch full details of an existing geofence.\",\n input: RadarGetGeofenceInput,\n output: RadarGetGeofenceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACrI,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,6GAA6G;AACzH,MAAM,kCAAkC,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAM,kCAAkC,EAAE,OAAO;CAC/C,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,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5E,UAAU,gCAAgC,SAAS;CACnD,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,kDAAkD,CAAC,CAAC,SAAS;CAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACjG,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;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAK/D,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboC,EAAE,OAAO,EAC7C,UAAU,gCAAgC,SAAS,EACrD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-places-settings.cjs","names":["z","action"],"sources":["../../src/actions/get-places-settings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetPlacesSettingsInput = z.object({}).describe(\"Request model for retrieving current Places settings. No parameters required.\");\nconst RadarGetPlacesSettings_MetaInfoSchema = z.object({\n code: z.number().int().describe(\"HTTP response code\").nullable(),\n}).passthrough().describe(\"Meta information about the API response.\");\nconst RadarGetPlacesSettings_PlacesSettingsSchema = z.object({\n country: z.array(z.string()).describe(\"List of supported country codes\").nullable().optional(),\n chainIds: z.array(z.string()).describe(\"Allowed chain IDs\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about Places settings\").nullable().optional(),\n chainDetection: z.boolean().describe(\"Flag indicating whether chain detection is enabled\").nullable().optional(),\n externalIdRequired: z.boolean().describe(\"Flag indicating whether an external ID is required for places\").nullable().optional(),\n chainMinimumConfidence: z.number().int().describe(\"Minimum confidence for chain matching\").nullable().optional(),\n}).passthrough().describe(\"Settings related to Radar Places for the project.\");\nexport const RadarGetPlacesSettingsOutput = z.object({\n meta: RadarGetPlacesSettings_MetaInfoSchema.nullable(),\n places: RadarGetPlacesSettings_PlacesSettingsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving current Places settings.\");\n\nexport const radarGetPlacesSettings = action(\"RADAR_GET_PLACES_SETTINGS\", {\n slug: \"radar-get-places-settings\",\n name: \"Get Places Settings\",\n description: \"Tool to retrieve current Places settings for your Radar project. Use when you need to inspect chain detection, supported countries, external ID requirements, and other Places metadata.\",\n input: RadarGetPlacesSettingsInput,\n output: RadarGetPlacesSettingsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-places-settings.cjs","names":["z","action"],"sources":["../../src/actions/get-places-settings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarGetPlacesSettingsInput = z.object({}).describe(\"Request model for retrieving current Places settings. No parameters required.\");\nconst RadarGetPlacesSettings_MetaInfoSchema = z.object({\n code: z.number().int().describe(\"HTTP response code\").nullable(),\n}).passthrough().describe(\"Meta information about the API response.\");\nconst RadarGetPlacesSettings_PlacesSettingsSchema = z.object({\n country: z.array(z.string()).describe(\"List of supported country codes\").nullable().optional(),\n chainIds: z.array(z.string()).describe(\"Allowed chain IDs\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about Places settings\").nullable().optional(),\n chainDetection: z.boolean().describe(\"Flag indicating whether chain detection is enabled\").nullable().optional(),\n externalIdRequired: z.boolean().describe(\"Flag indicating whether an external ID is required for places\").nullable().optional(),\n chainMinimumConfidence: z.number().int().describe(\"Minimum confidence for chain matching\").nullable().optional(),\n}).passthrough().describe(\"Settings related to Radar Places for the project.\");\nexport const RadarGetPlacesSettingsOutput = z.object({\n meta: RadarGetPlacesSettings_MetaInfoSchema.nullable(),\n places: RadarGetPlacesSettings_PlacesSettingsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving current Places settings.\");\n\nexport const radarGetPlacesSettings: AppAction<\n typeof RadarGetPlacesSettingsInput,\n typeof RadarGetPlacesSettingsOutput,\n typeof radar.credential\n> = action(\"RADAR_GET_PLACES_SETTINGS\", {\n slug: \"radar-get-places-settings\",\n name: \"Get Places Settings\",\n description: \"Tool to retrieve current Places settings for your Radar project. Use when you need to inspect chain detection, supported countries, external ID requirements, and other Places metadata.\",\n input: RadarGetPlacesSettingsInput,\n output: RadarGetPlacesSettingsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAChJ,MAAM,wCAAwCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,sCAAsC,SAAS;CACrD,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { radar } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-places-settings.d.ts
|
|
@@ -15,19 +17,7 @@ declare const RadarGetPlacesSettingsOutput: z.ZodObject<{
|
|
|
15
17
|
chainMinimumConfidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
18
|
}, z.core.$loose>>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const radarGetPlacesSettings:
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const radarGetPlacesSettings: AppAction<typeof RadarGetPlacesSettingsInput, typeof RadarGetPlacesSettingsOutput, typeof radar.credential>;
|
|
31
21
|
//#endregion
|
|
32
22
|
export { radarGetPlacesSettings };
|
|
33
23
|
//# sourceMappingURL=get-places-settings.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-places-settings.d.cts","names":[],"sources":["../../src/actions/get-places-settings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-places-settings.d.cts","names":[],"sources":["../../src/actions/get-places-settings.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAY3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { radar } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-places-settings.d.ts
|
|
@@ -15,19 +17,7 @@ declare const RadarGetPlacesSettingsOutput: z.ZodObject<{
|
|
|
15
17
|
chainMinimumConfidence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
18
|
}, z.core.$loose>>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const radarGetPlacesSettings:
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const radarGetPlacesSettings: AppAction<typeof RadarGetPlacesSettingsInput, typeof RadarGetPlacesSettingsOutput, typeof radar.credential>;
|
|
31
21
|
//#endregion
|
|
32
22
|
export { radarGetPlacesSettings };
|
|
33
23
|
//# sourceMappingURL=get-places-settings.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-places-settings.d.mts","names":[],"sources":["../../src/actions/get-places-settings.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-places-settings.d.mts","names":[],"sources":["../../src/actions/get-places-settings.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAY3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-places-settings.mjs","names":[],"sources":["../../src/actions/get-places-settings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetPlacesSettingsInput = z.object({}).describe(\"Request model for retrieving current Places settings. No parameters required.\");\nconst RadarGetPlacesSettings_MetaInfoSchema = z.object({\n code: z.number().int().describe(\"HTTP response code\").nullable(),\n}).passthrough().describe(\"Meta information about the API response.\");\nconst RadarGetPlacesSettings_PlacesSettingsSchema = z.object({\n country: z.array(z.string()).describe(\"List of supported country codes\").nullable().optional(),\n chainIds: z.array(z.string()).describe(\"Allowed chain IDs\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about Places settings\").nullable().optional(),\n chainDetection: z.boolean().describe(\"Flag indicating whether chain detection is enabled\").nullable().optional(),\n externalIdRequired: z.boolean().describe(\"Flag indicating whether an external ID is required for places\").nullable().optional(),\n chainMinimumConfidence: z.number().int().describe(\"Minimum confidence for chain matching\").nullable().optional(),\n}).passthrough().describe(\"Settings related to Radar Places for the project.\");\nexport const RadarGetPlacesSettingsOutput = z.object({\n meta: RadarGetPlacesSettings_MetaInfoSchema.nullable(),\n places: RadarGetPlacesSettings_PlacesSettingsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving current Places settings.\");\n\nexport const radarGetPlacesSettings = action(\"RADAR_GET_PLACES_SETTINGS\", {\n slug: \"radar-get-places-settings\",\n name: \"Get Places Settings\",\n description: \"Tool to retrieve current Places settings for your Radar project. Use when you need to inspect chain detection, supported countries, external ID requirements, and other Places metadata.\",\n input: RadarGetPlacesSettingsInput,\n output: RadarGetPlacesSettingsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-places-settings.mjs","names":[],"sources":["../../src/actions/get-places-settings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarGetPlacesSettingsInput = z.object({}).describe(\"Request model for retrieving current Places settings. No parameters required.\");\nconst RadarGetPlacesSettings_MetaInfoSchema = z.object({\n code: z.number().int().describe(\"HTTP response code\").nullable(),\n}).passthrough().describe(\"Meta information about the API response.\");\nconst RadarGetPlacesSettings_PlacesSettingsSchema = z.object({\n country: z.array(z.string()).describe(\"List of supported country codes\").nullable().optional(),\n chainIds: z.array(z.string()).describe(\"Allowed chain IDs\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata about Places settings\").nullable().optional(),\n chainDetection: z.boolean().describe(\"Flag indicating whether chain detection is enabled\").nullable().optional(),\n externalIdRequired: z.boolean().describe(\"Flag indicating whether an external ID is required for places\").nullable().optional(),\n chainMinimumConfidence: z.number().int().describe(\"Minimum confidence for chain matching\").nullable().optional(),\n}).passthrough().describe(\"Settings related to Radar Places for the project.\");\nexport const RadarGetPlacesSettingsOutput = z.object({\n meta: RadarGetPlacesSettings_MetaInfoSchema.nullable(),\n places: RadarGetPlacesSettings_PlacesSettingsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving current Places settings.\");\n\nexport const radarGetPlacesSettings: AppAction<\n typeof RadarGetPlacesSettingsInput,\n typeof RadarGetPlacesSettingsOutput,\n typeof radar.credential\n> = action(\"RADAR_GET_PLACES_SETTINGS\", {\n slug: \"radar-get-places-settings\",\n name: \"Get Places Settings\",\n description: \"Tool to retrieve current Places settings for your Radar project. Use when you need to inspect chain detection, supported countries, external ID requirements, and other Places metadata.\",\n input: RadarGetPlacesSettingsInput,\n output: RadarGetPlacesSettingsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAChJ,MAAM,wCAAwC,EAAE,OAAO,EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,EACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd0C,EAAE,OAAO;EACnD,MAAM,sCAAsC,SAAS;EACrD,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-route-directions.cjs","names":["z","action"],"sources":["../../src/actions/get-route-directions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetRouteDirectionsInput = z.object({\n lang: z.enum([\"de\", \"en\", \"es\", \"fr\", \"ja\", \"ko\", \"pt\", \"ru\"]).describe(\"Result language. Options: 'de', 'en', 'es', 'fr', 'ja', 'ko', 'pt', 'ru'. Defaults to 'en'\").optional(),\n mode: z.enum([\"car\", \"truck\", \"foot\", \"bike\"]).describe(\"Travel method. Options: 'car', 'truck', 'foot', 'bike'. Defaults to 'car'\").optional(),\n avoid: z.string().describe(\"Route features to bypass, comma-separated. Options: 'tolls', 'highways', 'ferries', 'borderCrossings'\").optional(),\n units: z.enum([\"metric\", \"imperial\"]).describe(\"Distance units. Options: 'metric', 'imperial'. Defaults to 'imperial'\").optional(),\n heading: z.number().describe(\"Initial travel direction in degrees (0=north, 90=east, 180=south, 270=west)\").optional(),\n geometry: z.enum([\"linestring\", \"polyline5\", \"polyline6\"]).describe(\"Response geometry format. Options: 'linestring', 'polyline5', 'polyline6'. Defaults to 'polyline6'\").optional(),\n locations: z.string().describe(\"A list of up to 25 coordinates to visit in order. A pipe-delimited string in the format 'latitude0,longitude0|latitude1,longitude1|...'\"),\n alternatives: z.boolean().describe(\"Return alternative routes (only works for two-location routes). Defaults to false\").optional(),\n departureTime: z.string().describe(\"ISO 8601 datetime for historical traffic consideration (e.g., '2025-01-01T14:30:00Z')\").optional(),\n}).describe(\"Request model for getting turn-by-turn directions between multiple locations.\");\nconst RadarGetRouteDirections_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n}).passthrough().describe(\"Metadata for the route directions response.\");\nconst RadarGetRouteDirections_DistanceInfoSchema = z.object({\n text: z.string().describe(\"Human-readable distance string\").nullable(),\n value: z.number().describe(\"Distance value in feet or meters depending on units\").nullable(),\n}).passthrough().describe(\"Distance information for a route segment.\");\nconst RadarGetRouteDirections_DurationInfoSchema = z.object({\n text: z.string().describe(\"Human-readable duration string\").nullable(),\n value: z.number().describe(\"Duration value in seconds\").nullable(),\n}).passthrough().describe(\"Duration information for a route segment.\");\nconst RadarGetRouteDirections_GeometryInfoSchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type (when using linestring format)\").nullable().optional(),\n polyline: z.string().describe(\"Encoded polyline string representing the route path\").nullable().optional(),\n coordinates: z.array(z.array(z.number())).describe(\"List of [longitude, latitude] coordinate pairs (when using linestring format)\").nullable().optional(),\n}).passthrough().describe(\"Route geometry - encoded polyline or linestring.\");\nconst RadarGetRouteDirections_LocationSchema = z.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable(),\n}).passthrough().describe(\"Geographic location with latitude and longitude.\");\nconst RadarGetRouteDirections_StepSchema = z.object({\n mode: z.string().describe(\"Travel mode for this step\").nullable().optional(),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n maneuver: z.string().describe(\"Maneuver type (e.g., 'turn-right', 'merge')\").nullable().optional(),\n exit_name: z.string().describe(\"Exit name if applicable\").nullable().optional(),\n street_name: z.string().describe(\"Street name for this step\").nullable().optional(),\n end_location: RadarGetRouteDirections_LocationSchema.nullable(),\n instructions: z.string().describe(\"Turn-by-turn instruction text\").nullable(),\n bearing_after: z.number().describe(\"Compass bearing after the maneuver\").nullable().optional(),\n bearing_before: z.number().describe(\"Compass bearing before the maneuver\").nullable().optional(),\n start_location: RadarGetRouteDirections_LocationSchema.nullable(),\n voice_instructions: z.string().describe(\"Voice instruction text for navigation\").nullable().optional(),\n banner_instructions: z.string().describe(\"Banner instruction text for display\").nullable().optional(),\n}).passthrough().describe(\"A single turn-by-turn direction step.\");\nconst RadarGetRouteDirections_LegSchema = z.object({\n steps: z.array(RadarGetRouteDirections_StepSchema).describe(\"Turn-by-turn direction steps for this leg\"),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n endLocation: RadarGetRouteDirections_LocationSchema.nullable(),\n startLocation: RadarGetRouteDirections_LocationSchema.nullable(),\n}).passthrough().describe(\"A leg of the route between two consecutive locations.\");\nconst RadarGetRouteDirections_RouteSchema = z.object({\n legs: z.array(RadarGetRouteDirections_LegSchema).describe(\"List of route legs between consecutive locations\"),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n}).passthrough().describe(\"A complete route with legs and steps.\");\nexport const RadarGetRouteDirectionsOutput = z.object({\n meta: RadarGetRouteDirections_MetaSchema.nullable(),\n routes: z.array(RadarGetRouteDirections_RouteSchema).describe(\"List of routes (multiple if alternatives requested)\"),\n}).passthrough().describe(\"Response model containing turn-by-turn directions between multiple locations.\");\n\nexport const radarGetRouteDirections = action(\"RADAR_GET_ROUTE_DIRECTIONS\", {\n slug: \"radar-get-route-directions\",\n name: \"Get Route Directions\",\n description: \"Tool to get turn-by-turn directions between multiple locations. Use when you need detailed navigation instructions with steps, distances, and durations for routing.\",\n input: RadarGetRouteDirectionsInput,\n output: RadarGetRouteDirectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC/K,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAS;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC9I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC7I,OAAOA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAa;CAAW,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACnL,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIA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AAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,2CAA2C;CACvG,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACzE,aAAa,uCAAuC,SAAS;CAC7D,eAAe,uCAAuC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,kDAAkD;CAC5G,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,mCAAmC,SAAS;CAClD,QAAQA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,qDAAqD;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-route-directions.cjs","names":["z","action"],"sources":["../../src/actions/get-route-directions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarGetRouteDirectionsInput = z.object({\n lang: z.enum([\"de\", \"en\", \"es\", \"fr\", \"ja\", \"ko\", \"pt\", \"ru\"]).describe(\"Result language. Options: 'de', 'en', 'es', 'fr', 'ja', 'ko', 'pt', 'ru'. Defaults to 'en'\").optional(),\n mode: z.enum([\"car\", \"truck\", \"foot\", \"bike\"]).describe(\"Travel method. Options: 'car', 'truck', 'foot', 'bike'. Defaults to 'car'\").optional(),\n avoid: z.string().describe(\"Route features to bypass, comma-separated. Options: 'tolls', 'highways', 'ferries', 'borderCrossings'\").optional(),\n units: z.enum([\"metric\", \"imperial\"]).describe(\"Distance units. Options: 'metric', 'imperial'. Defaults to 'imperial'\").optional(),\n heading: z.number().describe(\"Initial travel direction in degrees (0=north, 90=east, 180=south, 270=west)\").optional(),\n geometry: z.enum([\"linestring\", \"polyline5\", \"polyline6\"]).describe(\"Response geometry format. Options: 'linestring', 'polyline5', 'polyline6'. Defaults to 'polyline6'\").optional(),\n locations: z.string().describe(\"A list of up to 25 coordinates to visit in order. A pipe-delimited string in the format 'latitude0,longitude0|latitude1,longitude1|...'\"),\n alternatives: z.boolean().describe(\"Return alternative routes (only works for two-location routes). Defaults to false\").optional(),\n departureTime: z.string().describe(\"ISO 8601 datetime for historical traffic consideration (e.g., '2025-01-01T14:30:00Z')\").optional(),\n}).describe(\"Request model for getting turn-by-turn directions between multiple locations.\");\nconst RadarGetRouteDirections_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n}).passthrough().describe(\"Metadata for the route directions response.\");\nconst RadarGetRouteDirections_DistanceInfoSchema = z.object({\n text: z.string().describe(\"Human-readable distance string\").nullable(),\n value: z.number().describe(\"Distance value in feet or meters depending on units\").nullable(),\n}).passthrough().describe(\"Distance information for a route segment.\");\nconst RadarGetRouteDirections_DurationInfoSchema = z.object({\n text: z.string().describe(\"Human-readable duration string\").nullable(),\n value: z.number().describe(\"Duration value in seconds\").nullable(),\n}).passthrough().describe(\"Duration information for a route segment.\");\nconst RadarGetRouteDirections_GeometryInfoSchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type (when using linestring format)\").nullable().optional(),\n polyline: z.string().describe(\"Encoded polyline string representing the route path\").nullable().optional(),\n coordinates: z.array(z.array(z.number())).describe(\"List of [longitude, latitude] coordinate pairs (when using linestring format)\").nullable().optional(),\n}).passthrough().describe(\"Route geometry - encoded polyline or linestring.\");\nconst RadarGetRouteDirections_LocationSchema = z.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable(),\n}).passthrough().describe(\"Geographic location with latitude and longitude.\");\nconst RadarGetRouteDirections_StepSchema = z.object({\n mode: z.string().describe(\"Travel mode for this step\").nullable().optional(),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n maneuver: z.string().describe(\"Maneuver type (e.g., 'turn-right', 'merge')\").nullable().optional(),\n exit_name: z.string().describe(\"Exit name if applicable\").nullable().optional(),\n street_name: z.string().describe(\"Street name for this step\").nullable().optional(),\n end_location: RadarGetRouteDirections_LocationSchema.nullable(),\n instructions: z.string().describe(\"Turn-by-turn instruction text\").nullable(),\n bearing_after: z.number().describe(\"Compass bearing after the maneuver\").nullable().optional(),\n bearing_before: z.number().describe(\"Compass bearing before the maneuver\").nullable().optional(),\n start_location: RadarGetRouteDirections_LocationSchema.nullable(),\n voice_instructions: z.string().describe(\"Voice instruction text for navigation\").nullable().optional(),\n banner_instructions: z.string().describe(\"Banner instruction text for display\").nullable().optional(),\n}).passthrough().describe(\"A single turn-by-turn direction step.\");\nconst RadarGetRouteDirections_LegSchema = z.object({\n steps: z.array(RadarGetRouteDirections_StepSchema).describe(\"Turn-by-turn direction steps for this leg\"),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n endLocation: RadarGetRouteDirections_LocationSchema.nullable(),\n startLocation: RadarGetRouteDirections_LocationSchema.nullable(),\n}).passthrough().describe(\"A leg of the route between two consecutive locations.\");\nconst RadarGetRouteDirections_RouteSchema = z.object({\n legs: z.array(RadarGetRouteDirections_LegSchema).describe(\"List of route legs between consecutive locations\"),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n}).passthrough().describe(\"A complete route with legs and steps.\");\nexport const RadarGetRouteDirectionsOutput = z.object({\n meta: RadarGetRouteDirections_MetaSchema.nullable(),\n routes: z.array(RadarGetRouteDirections_RouteSchema).describe(\"List of routes (multiple if alternatives requested)\"),\n}).passthrough().describe(\"Response model containing turn-by-turn directions between multiple locations.\");\n\nexport const radarGetRouteDirections: AppAction<\n typeof RadarGetRouteDirectionsInput,\n typeof RadarGetRouteDirectionsOutput,\n typeof radar.credential\n> = action(\"RADAR_GET_ROUTE_DIRECTIONS\", {\n slug: \"radar-get-route-directions\",\n name: \"Get Route Directions\",\n description: \"Tool to get turn-by-turn directions between multiple locations. Use when you need detailed navigation instructions with steps, distances, and durations for routing.\",\n input: RadarGetRouteDirectionsInput,\n output: RadarGetRouteDirectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC/K,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAS;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SA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uCAAuC;AACjE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,mCAAmC,SAAS;CAClD,QAAQA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,qDAAqD;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { radar } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-route-directions.d.ts
|
|
@@ -25,9 +27,9 @@ declare const RadarGetRouteDirectionsInput: z.ZodObject<{
|
|
|
25
27
|
}>>;
|
|
26
28
|
heading: z.ZodOptional<z.ZodNumber>;
|
|
27
29
|
geometry: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
linestring: "linestring";
|
|
28
31
|
polyline5: "polyline5";
|
|
29
32
|
polyline6: "polyline6";
|
|
30
|
-
linestring: "linestring";
|
|
31
33
|
}>>;
|
|
32
34
|
locations: z.ZodString;
|
|
33
35
|
alternatives: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -108,29 +110,7 @@ declare const RadarGetRouteDirectionsOutput: z.ZodObject<{
|
|
|
108
110
|
}, z.core.$loose>>>;
|
|
109
111
|
}, z.core.$loose>>;
|
|
110
112
|
}, z.core.$loose>;
|
|
111
|
-
declare const radarGetRouteDirections:
|
|
112
|
-
locations: string;
|
|
113
|
-
lang?: "de" | "en" | "es" | "fr" | "ja" | "ko" | "pt" | "ru" | undefined;
|
|
114
|
-
mode?: "car" | "foot" | "bike" | "truck" | undefined;
|
|
115
|
-
avoid?: string | undefined;
|
|
116
|
-
units?: "metric" | "imperial" | undefined;
|
|
117
|
-
heading?: number | undefined;
|
|
118
|
-
geometry?: "polyline5" | "polyline6" | "linestring" | undefined;
|
|
119
|
-
alternatives?: boolean | undefined;
|
|
120
|
-
departureTime?: string | undefined;
|
|
121
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
122
|
-
connectionId: z.ZodString;
|
|
123
|
-
entityId: z.ZodString;
|
|
124
|
-
instanceId: z.ZodString;
|
|
125
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
-
generic_api_key: z.ZodString;
|
|
127
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
128
|
-
connectionId: z.ZodString;
|
|
129
|
-
entityId: z.ZodString;
|
|
130
|
-
instanceId: z.ZodString;
|
|
131
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
132
|
-
generic_api_key: z.ZodString;
|
|
133
|
-
}, z.core.$strip>>]>;
|
|
113
|
+
declare const radarGetRouteDirections: AppAction<typeof RadarGetRouteDirectionsInput, typeof RadarGetRouteDirectionsOutput, typeof radar.credential>;
|
|
134
114
|
//#endregion
|
|
135
115
|
export { radarGetRouteDirections };
|
|
136
116
|
//# sourceMappingURL=get-route-directions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-route-directions.d.cts","names":[],"sources":["../../src/actions/get-route-directions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-route-directions.d.cts","names":[],"sources":["../../src/actions/get-route-directions.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6D5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { radar } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-route-directions.d.ts
|
|
@@ -25,9 +27,9 @@ declare const RadarGetRouteDirectionsInput: z.ZodObject<{
|
|
|
25
27
|
}>>;
|
|
26
28
|
heading: z.ZodOptional<z.ZodNumber>;
|
|
27
29
|
geometry: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
linestring: "linestring";
|
|
28
31
|
polyline5: "polyline5";
|
|
29
32
|
polyline6: "polyline6";
|
|
30
|
-
linestring: "linestring";
|
|
31
33
|
}>>;
|
|
32
34
|
locations: z.ZodString;
|
|
33
35
|
alternatives: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -108,29 +110,7 @@ declare const RadarGetRouteDirectionsOutput: z.ZodObject<{
|
|
|
108
110
|
}, z.core.$loose>>>;
|
|
109
111
|
}, z.core.$loose>>;
|
|
110
112
|
}, z.core.$loose>;
|
|
111
|
-
declare const radarGetRouteDirections:
|
|
112
|
-
locations: string;
|
|
113
|
-
lang?: "de" | "en" | "es" | "fr" | "ja" | "ko" | "pt" | "ru" | undefined;
|
|
114
|
-
mode?: "car" | "foot" | "bike" | "truck" | undefined;
|
|
115
|
-
avoid?: string | undefined;
|
|
116
|
-
units?: "metric" | "imperial" | undefined;
|
|
117
|
-
heading?: number | undefined;
|
|
118
|
-
geometry?: "polyline5" | "polyline6" | "linestring" | undefined;
|
|
119
|
-
alternatives?: boolean | undefined;
|
|
120
|
-
departureTime?: string | undefined;
|
|
121
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
122
|
-
connectionId: z.ZodString;
|
|
123
|
-
entityId: z.ZodString;
|
|
124
|
-
instanceId: z.ZodString;
|
|
125
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
-
generic_api_key: z.ZodString;
|
|
127
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
128
|
-
connectionId: z.ZodString;
|
|
129
|
-
entityId: z.ZodString;
|
|
130
|
-
instanceId: z.ZodString;
|
|
131
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
132
|
-
generic_api_key: z.ZodString;
|
|
133
|
-
}, z.core.$strip>>]>;
|
|
113
|
+
declare const radarGetRouteDirections: AppAction<typeof RadarGetRouteDirectionsInput, typeof RadarGetRouteDirectionsOutput, typeof radar.credential>;
|
|
134
114
|
//#endregion
|
|
135
115
|
export { radarGetRouteDirections };
|
|
136
116
|
//# sourceMappingURL=get-route-directions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-route-directions.d.mts","names":[],"sources":["../../src/actions/get-route-directions.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-route-directions.d.mts","names":[],"sources":["../../src/actions/get-route-directions.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6D5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-route-directions.mjs","names":[],"sources":["../../src/actions/get-route-directions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarGetRouteDirectionsInput = z.object({\n lang: z.enum([\"de\", \"en\", \"es\", \"fr\", \"ja\", \"ko\", \"pt\", \"ru\"]).describe(\"Result language. Options: 'de', 'en', 'es', 'fr', 'ja', 'ko', 'pt', 'ru'. Defaults to 'en'\").optional(),\n mode: z.enum([\"car\", \"truck\", \"foot\", \"bike\"]).describe(\"Travel method. Options: 'car', 'truck', 'foot', 'bike'. Defaults to 'car'\").optional(),\n avoid: z.string().describe(\"Route features to bypass, comma-separated. Options: 'tolls', 'highways', 'ferries', 'borderCrossings'\").optional(),\n units: z.enum([\"metric\", \"imperial\"]).describe(\"Distance units. Options: 'metric', 'imperial'. Defaults to 'imperial'\").optional(),\n heading: z.number().describe(\"Initial travel direction in degrees (0=north, 90=east, 180=south, 270=west)\").optional(),\n geometry: z.enum([\"linestring\", \"polyline5\", \"polyline6\"]).describe(\"Response geometry format. Options: 'linestring', 'polyline5', 'polyline6'. Defaults to 'polyline6'\").optional(),\n locations: z.string().describe(\"A list of up to 25 coordinates to visit in order. A pipe-delimited string in the format 'latitude0,longitude0|latitude1,longitude1|...'\"),\n alternatives: z.boolean().describe(\"Return alternative routes (only works for two-location routes). Defaults to false\").optional(),\n departureTime: z.string().describe(\"ISO 8601 datetime for historical traffic consideration (e.g., '2025-01-01T14:30:00Z')\").optional(),\n}).describe(\"Request model for getting turn-by-turn directions between multiple locations.\");\nconst RadarGetRouteDirections_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n}).passthrough().describe(\"Metadata for the route directions response.\");\nconst RadarGetRouteDirections_DistanceInfoSchema = z.object({\n text: z.string().describe(\"Human-readable distance string\").nullable(),\n value: z.number().describe(\"Distance value in feet or meters depending on units\").nullable(),\n}).passthrough().describe(\"Distance information for a route segment.\");\nconst RadarGetRouteDirections_DurationInfoSchema = z.object({\n text: z.string().describe(\"Human-readable duration string\").nullable(),\n value: z.number().describe(\"Duration value in seconds\").nullable(),\n}).passthrough().describe(\"Duration information for a route segment.\");\nconst RadarGetRouteDirections_GeometryInfoSchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type (when using linestring format)\").nullable().optional(),\n polyline: z.string().describe(\"Encoded polyline string representing the route path\").nullable().optional(),\n coordinates: z.array(z.array(z.number())).describe(\"List of [longitude, latitude] coordinate pairs (when using linestring format)\").nullable().optional(),\n}).passthrough().describe(\"Route geometry - encoded polyline or linestring.\");\nconst RadarGetRouteDirections_LocationSchema = z.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable(),\n}).passthrough().describe(\"Geographic location with latitude and longitude.\");\nconst RadarGetRouteDirections_StepSchema = z.object({\n mode: z.string().describe(\"Travel mode for this step\").nullable().optional(),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n maneuver: z.string().describe(\"Maneuver type (e.g., 'turn-right', 'merge')\").nullable().optional(),\n exit_name: z.string().describe(\"Exit name if applicable\").nullable().optional(),\n street_name: z.string().describe(\"Street name for this step\").nullable().optional(),\n end_location: RadarGetRouteDirections_LocationSchema.nullable(),\n instructions: z.string().describe(\"Turn-by-turn instruction text\").nullable(),\n bearing_after: z.number().describe(\"Compass bearing after the maneuver\").nullable().optional(),\n bearing_before: z.number().describe(\"Compass bearing before the maneuver\").nullable().optional(),\n start_location: RadarGetRouteDirections_LocationSchema.nullable(),\n voice_instructions: z.string().describe(\"Voice instruction text for navigation\").nullable().optional(),\n banner_instructions: z.string().describe(\"Banner instruction text for display\").nullable().optional(),\n}).passthrough().describe(\"A single turn-by-turn direction step.\");\nconst RadarGetRouteDirections_LegSchema = z.object({\n steps: z.array(RadarGetRouteDirections_StepSchema).describe(\"Turn-by-turn direction steps for this leg\"),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n endLocation: RadarGetRouteDirections_LocationSchema.nullable(),\n startLocation: RadarGetRouteDirections_LocationSchema.nullable(),\n}).passthrough().describe(\"A leg of the route between two consecutive locations.\");\nconst RadarGetRouteDirections_RouteSchema = z.object({\n legs: z.array(RadarGetRouteDirections_LegSchema).describe(\"List of route legs between consecutive locations\"),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n}).passthrough().describe(\"A complete route with legs and steps.\");\nexport const RadarGetRouteDirectionsOutput = z.object({\n meta: RadarGetRouteDirections_MetaSchema.nullable(),\n routes: z.array(RadarGetRouteDirections_RouteSchema).describe(\"List of routes (multiple if alternatives requested)\"),\n}).passthrough().describe(\"Response model containing turn-by-turn directions between multiple locations.\");\n\nexport const radarGetRouteDirections = action(\"RADAR_GET_ROUTE_DIRECTIONS\", {\n slug: \"radar-get-route-directions\",\n name: \"Get Route Directions\",\n description: \"Tool to get turn-by-turn directions between multiple locations. Use when you need detailed navigation instructions with steps, distances, and durations for routing.\",\n input: RadarGetRouteDirectionsInput,\n output: RadarGetRouteDirectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC/K,MAAM,EAAE,KAAK;EAAC;EAAO;EAAS;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC9I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC7I,OAAO,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,UAAU,EAAE,KAAK;EAAC;EAAc;EAAa;CAAW,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CA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CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,oCAAoC,EAAE,OAAO;CACjD,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,2CAA2C;CACvG,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACzE,aAAa,uCAAuC,SAAS;CAC7D,eAAe,uCAAuC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,kDAAkD;CAC5G,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,MAAM,mCAAmC,SAAS;EAClD,QAAQ,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,qDAAqD;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-route-directions.mjs","names":[],"sources":["../../src/actions/get-route-directions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarGetRouteDirectionsInput = z.object({\n lang: z.enum([\"de\", \"en\", \"es\", \"fr\", \"ja\", \"ko\", \"pt\", \"ru\"]).describe(\"Result language. Options: 'de', 'en', 'es', 'fr', 'ja', 'ko', 'pt', 'ru'. Defaults to 'en'\").optional(),\n mode: z.enum([\"car\", \"truck\", \"foot\", \"bike\"]).describe(\"Travel method. Options: 'car', 'truck', 'foot', 'bike'. Defaults to 'car'\").optional(),\n avoid: z.string().describe(\"Route features to bypass, comma-separated. Options: 'tolls', 'highways', 'ferries', 'borderCrossings'\").optional(),\n units: z.enum([\"metric\", \"imperial\"]).describe(\"Distance units. Options: 'metric', 'imperial'. Defaults to 'imperial'\").optional(),\n heading: z.number().describe(\"Initial travel direction in degrees (0=north, 90=east, 180=south, 270=west)\").optional(),\n geometry: z.enum([\"linestring\", \"polyline5\", \"polyline6\"]).describe(\"Response geometry format. Options: 'linestring', 'polyline5', 'polyline6'. Defaults to 'polyline6'\").optional(),\n locations: z.string().describe(\"A list of up to 25 coordinates to visit in order. A pipe-delimited string in the format 'latitude0,longitude0|latitude1,longitude1|...'\"),\n alternatives: z.boolean().describe(\"Return alternative routes (only works for two-location routes). Defaults to false\").optional(),\n departureTime: z.string().describe(\"ISO 8601 datetime for historical traffic consideration (e.g., '2025-01-01T14:30:00Z')\").optional(),\n}).describe(\"Request model for getting turn-by-turn directions between multiple locations.\");\nconst RadarGetRouteDirections_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n}).passthrough().describe(\"Metadata for the route directions response.\");\nconst RadarGetRouteDirections_DistanceInfoSchema = z.object({\n text: z.string().describe(\"Human-readable distance string\").nullable(),\n value: z.number().describe(\"Distance value in feet or meters depending on units\").nullable(),\n}).passthrough().describe(\"Distance information for a route segment.\");\nconst RadarGetRouteDirections_DurationInfoSchema = z.object({\n text: z.string().describe(\"Human-readable duration string\").nullable(),\n value: z.number().describe(\"Duration value in seconds\").nullable(),\n}).passthrough().describe(\"Duration information for a route segment.\");\nconst RadarGetRouteDirections_GeometryInfoSchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type (when using linestring format)\").nullable().optional(),\n polyline: z.string().describe(\"Encoded polyline string representing the route path\").nullable().optional(),\n coordinates: z.array(z.array(z.number())).describe(\"List of [longitude, latitude] coordinate pairs (when using linestring format)\").nullable().optional(),\n}).passthrough().describe(\"Route geometry - encoded polyline or linestring.\");\nconst RadarGetRouteDirections_LocationSchema = z.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable(),\n}).passthrough().describe(\"Geographic location with latitude and longitude.\");\nconst RadarGetRouteDirections_StepSchema = z.object({\n mode: z.string().describe(\"Travel mode for this step\").nullable().optional(),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n maneuver: z.string().describe(\"Maneuver type (e.g., 'turn-right', 'merge')\").nullable().optional(),\n exit_name: z.string().describe(\"Exit name if applicable\").nullable().optional(),\n street_name: z.string().describe(\"Street name for this step\").nullable().optional(),\n end_location: RadarGetRouteDirections_LocationSchema.nullable(),\n instructions: z.string().describe(\"Turn-by-turn instruction text\").nullable(),\n bearing_after: z.number().describe(\"Compass bearing after the maneuver\").nullable().optional(),\n bearing_before: z.number().describe(\"Compass bearing before the maneuver\").nullable().optional(),\n start_location: RadarGetRouteDirections_LocationSchema.nullable(),\n voice_instructions: z.string().describe(\"Voice instruction text for navigation\").nullable().optional(),\n banner_instructions: z.string().describe(\"Banner instruction text for display\").nullable().optional(),\n}).passthrough().describe(\"A single turn-by-turn direction step.\");\nconst RadarGetRouteDirections_LegSchema = z.object({\n steps: z.array(RadarGetRouteDirections_StepSchema).describe(\"Turn-by-turn direction steps for this leg\"),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n endLocation: RadarGetRouteDirections_LocationSchema.nullable(),\n startLocation: RadarGetRouteDirections_LocationSchema.nullable(),\n}).passthrough().describe(\"A leg of the route between two consecutive locations.\");\nconst RadarGetRouteDirections_RouteSchema = z.object({\n legs: z.array(RadarGetRouteDirections_LegSchema).describe(\"List of route legs between consecutive locations\"),\n distance: RadarGetRouteDirections_DistanceInfoSchema.nullable(),\n duration: RadarGetRouteDirections_DurationInfoSchema.nullable(),\n geometry: RadarGetRouteDirections_GeometryInfoSchema.nullable().optional(),\n}).passthrough().describe(\"A complete route with legs and steps.\");\nexport const RadarGetRouteDirectionsOutput = z.object({\n meta: RadarGetRouteDirections_MetaSchema.nullable(),\n routes: z.array(RadarGetRouteDirections_RouteSchema).describe(\"List of routes (multiple if alternatives requested)\"),\n}).passthrough().describe(\"Response model containing turn-by-turn directions between multiple locations.\");\n\nexport const radarGetRouteDirections: AppAction<\n typeof RadarGetRouteDirectionsInput,\n typeof RadarGetRouteDirectionsOutput,\n typeof radar.credential\n> = action(\"RADAR_GET_ROUTE_DIRECTIONS\", {\n slug: \"radar-get-route-directions\",\n name: \"Get Route Directions\",\n description: \"Tool to get turn-by-turn directions between multiple locations. Use when you need detailed navigation instructions with steps, distances, and durations for routing.\",\n input: RadarGetRouteDirectionsInput,\n output: RadarGetRouteDirectionsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC/K,MAAM,EAAE,KAAK;EAAC;EAAO;EAAS;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC9I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC7I,OAAO,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,UAAU,EAAE,KAAK;EAAC;EAAc;EAAa;CAAW,CAAC,CAAC,C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AC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,oCAAoC,EAAE,OAAO;CACjD,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,2CAA2C;CACvG,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACzE,aAAa,uCAAuC,SAAS;CAC7D,eAAe,uCAAuC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,kDAAkD;CAC5G,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS;CAC9D,UAAU,2CAA2C,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd2C,EAAE,OAAO;EACpD,MAAM,mCAAmC,SAAS;EAClD,QAAQ,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,qDAAqD;CACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"get-route-matrix.cjs","names":["z","action"],"sources":["../../src/actions/get-route-matrix.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const 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: AppAction<\n typeof RadarGetRouteMatrixInput,\n typeof RadarGetRouteMatrixOutput,\n typeof radar.credential\n> = 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":";;;;AAMA,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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AAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,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,sBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { radar } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-route-matrix.d.ts
|
|
@@ -40,24 +42,7 @@ declare const RadarGetRouteMatrixOutput: z.ZodObject<{
|
|
|
40
42
|
longitude: z.ZodNullable<z.ZodNumber>;
|
|
41
43
|
}, z.core.$loose>>;
|
|
42
44
|
}, z.core.$loose>;
|
|
43
|
-
declare const radarGetRouteMatrix:
|
|
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<"radar", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>;
|
|
45
|
+
declare const radarGetRouteMatrix: AppAction<typeof RadarGetRouteMatrixInput, typeof RadarGetRouteMatrixOutput, typeof radar.credential>;
|
|
61
46
|
//#endregion
|
|
62
47
|
export { radarGetRouteMatrix };
|
|
63
48
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"get-route-matrix.d.cts","names":[],"sources":["../../src/actions/get-route-matrix.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { radar } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-route-matrix.d.ts
|
|
@@ -40,24 +42,7 @@ declare const RadarGetRouteMatrixOutput: z.ZodObject<{
|
|
|
40
42
|
longitude: z.ZodNullable<z.ZodNumber>;
|
|
41
43
|
}, z.core.$loose>>;
|
|
42
44
|
}, z.core.$loose>;
|
|
43
|
-
declare const radarGetRouteMatrix:
|
|
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<"radar", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>;
|
|
45
|
+
declare const radarGetRouteMatrix: AppAction<typeof RadarGetRouteMatrixInput, typeof RadarGetRouteMatrixOutput, typeof radar.credential>;
|
|
61
46
|
//#endregion
|
|
62
47
|
export { radarGetRouteMatrix };
|
|
63
48
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"get-route-matrix.d.mts","names":[],"sources":["../../src/actions/get-route-matrix.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cA2BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAOzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"get-route-matrix.mjs","names":[],"sources":["../../src/actions/get-route-matrix.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const 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: AppAction<\n typeof RadarGetRouteMatrixInput,\n typeof RadarGetRouteMatrixOutput,\n typeof radar.credential\n> = 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":";;;;AAMA,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,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAM,0CAA0C,EAAE,OAAO;CACvD,UAAU,uCAAuC,SAAS;CAC1D,UAAU,uCAAuC,SAAS;CAC1D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACpF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AACpG,MAAM,uCAAuC,EAAE,OAAO;CACpD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAQ9E,MAAa,sBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBuC,EAAE,OAAO;EAChD,MAAM,+BAA+B,SAAS;EAC9C,QAAQ,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC,CAAC,CAAC,SAAS,gEAAgE;EAC3I,SAAS,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4BAA4B;EAC5F,cAAc,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,iCAAiC;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uGAWhB;AACV,CAAC"}
|
|
@@ -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 = 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":"
|
|
1
|
+
{"version":3,"file":"get-trip.cjs","names":["z","action"],"sources":["../../src/actions/get-trip.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const 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: AppAction<\n typeof RadarGetTripInput,\n typeof RadarGetTripOutput,\n typeof radar.credential\n> = 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":";;;;AAMA,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,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@
|
|
|
1
|
+
import { radar } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-trip.d.ts
|
|
@@ -36,22 +38,7 @@ declare const RadarGetTripOutput: z.ZodObject<{
|
|
|
36
38
|
destinationGeofenceExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
39
|
}, z.core.$loose>>;
|
|
38
40
|
}, z.core.$loose>;
|
|
39
|
-
declare const radarGetTrip:
|
|
40
|
-
id: string;
|
|
41
|
-
format?: string | undefined;
|
|
42
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
43
|
-
connectionId: z.ZodString;
|
|
44
|
-
entityId: z.ZodString;
|
|
45
|
-
instanceId: z.ZodString;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
generic_api_key: z.ZodString;
|
|
48
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
}, z.core.$strip>>]>;
|
|
41
|
+
declare const radarGetTrip: AppAction<typeof RadarGetTripInput, typeof RadarGetTripOutput, typeof radar.credential>;
|
|
55
42
|
//#endregion
|
|
56
43
|
export { radarGetTrip };
|
|
57
44
|
//# sourceMappingURL=get-trip.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-trip.d.cts","names":[],"sources":["../../src/actions/get-trip.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-trip.d.cts","names":[],"sources":["../../src/actions/get-trip.ts"],"mappings":";;;;;cAMa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;cA+BjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIlB,YAAA,EAAc,SAAA,QAClB,iBAAA,SACA,kBAAA,SACA,KAAA,CAAM,UAAA"}
|