@keystrokehq/radar 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.cjs +12 -12
- package/dist/actions/autocomplete-address-or-place.cjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.cts +50 -3
- package/dist/actions/autocomplete-address-or-place.d.cts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.mts +50 -3
- package/dist/actions/autocomplete-address-or-place.d.mts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.mjs +12 -12
- package/dist/actions/autocomplete-address-or-place.mjs.map +1 -1
- package/dist/actions/create-beacon.cjs +12 -12
- package/dist/actions/create-beacon.cjs.map +1 -1
- package/dist/actions/create-beacon.d.cts +56 -3
- package/dist/actions/create-beacon.d.cts.map +1 -1
- package/dist/actions/create-beacon.d.mts +56 -3
- package/dist/actions/create-beacon.d.mts.map +1 -1
- package/dist/actions/create-beacon.mjs +12 -12
- package/dist/actions/create-beacon.mjs.map +1 -1
- package/dist/actions/create-trip.cjs +1 -1
- package/dist/actions/create-trip.cjs.map +1 -1
- package/dist/actions/create-trip.d.cts +44 -3
- package/dist/actions/create-trip.d.cts.map +1 -1
- package/dist/actions/create-trip.d.mts +44 -3
- package/dist/actions/create-trip.d.mts.map +1 -1
- package/dist/actions/create-trip.mjs +1 -1
- package/dist/actions/create-trip.mjs.map +1 -1
- package/dist/actions/delete-beacon.cjs +2 -2
- package/dist/actions/delete-beacon.cjs.map +1 -1
- package/dist/actions/delete-beacon.d.cts +11 -3
- package/dist/actions/delete-beacon.d.cts.map +1 -1
- package/dist/actions/delete-beacon.d.mts +11 -3
- package/dist/actions/delete-beacon.d.mts.map +1 -1
- package/dist/actions/delete-beacon.mjs +2 -2
- package/dist/actions/delete-beacon.mjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.cjs +2 -2
- package/dist/actions/delete-geofence-by-tag.cjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.cts +13 -3
- package/dist/actions/delete-geofence-by-tag.d.cts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.mts +13 -3
- package/dist/actions/delete-geofence-by-tag.d.mts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.mjs +2 -2
- package/dist/actions/delete-geofence-by-tag.mjs.map +1 -1
- package/dist/actions/delete-geofence.cjs +2 -2
- package/dist/actions/delete-geofence.cjs.map +1 -1
- package/dist/actions/delete-geofence.d.cts +11 -3
- package/dist/actions/delete-geofence.d.cts.map +1 -1
- package/dist/actions/delete-geofence.d.mts +11 -3
- package/dist/actions/delete-geofence.d.mts.map +1 -1
- package/dist/actions/delete-geofence.mjs +2 -2
- package/dist/actions/delete-geofence.mjs.map +1 -1
- package/dist/actions/delete-trip.cjs +2 -2
- package/dist/actions/delete-trip.cjs.map +1 -1
- package/dist/actions/delete-trip.d.cts +11 -3
- package/dist/actions/delete-trip.d.cts.map +1 -1
- package/dist/actions/delete-trip.d.mts +11 -3
- package/dist/actions/delete-trip.d.mts.map +1 -1
- package/dist/actions/delete-trip.mjs +2 -2
- package/dist/actions/delete-trip.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +2 -2
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +11 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +11 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +2 -2
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/forward-geocode.cjs +7 -7
- package/dist/actions/forward-geocode.cjs.map +1 -1
- package/dist/actions/forward-geocode.d.cts +37 -3
- package/dist/actions/forward-geocode.d.cts.map +1 -1
- package/dist/actions/forward-geocode.d.mts +37 -3
- package/dist/actions/forward-geocode.d.mts.map +1 -1
- package/dist/actions/forward-geocode.mjs +7 -7
- package/dist/actions/forward-geocode.mjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.cjs +10 -10
- package/dist/actions/get-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.cts +33 -3
- package/dist/actions/get-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.mts +33 -3
- package/dist/actions/get-beacon-by-tag.d.mts.map +1 -1
- package/dist/actions/get-beacon-by-tag.mjs +10 -10
- package/dist/actions/get-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/get-beacon.cjs +6 -6
- package/dist/actions/get-beacon.cjs.map +1 -1
- package/dist/actions/get-beacon.d.cts +29 -3
- package/dist/actions/get-beacon.d.cts.map +1 -1
- package/dist/actions/get-beacon.d.mts +29 -3
- package/dist/actions/get-beacon.d.mts.map +1 -1
- package/dist/actions/get-beacon.mjs +6 -6
- package/dist/actions/get-beacon.mjs.map +1 -1
- package/dist/actions/get-context-for-location.cjs +18 -18
- package/dist/actions/get-context-for-location.cjs.map +1 -1
- package/dist/actions/get-context-for-location.d.cts +85 -3
- package/dist/actions/get-context-for-location.d.cts.map +1 -1
- package/dist/actions/get-context-for-location.d.mts +85 -3
- package/dist/actions/get-context-for-location.d.mts.map +1 -1
- package/dist/actions/get-context-for-location.mjs +18 -18
- package/dist/actions/get-context-for-location.mjs.map +1 -1
- package/dist/actions/get-geofence.cjs +8 -8
- package/dist/actions/get-geofence.cjs.map +1 -1
- package/dist/actions/get-geofence.d.cts +26 -3
- package/dist/actions/get-geofence.d.cts.map +1 -1
- package/dist/actions/get-geofence.d.mts +26 -3
- package/dist/actions/get-geofence.d.mts.map +1 -1
- package/dist/actions/get-geofence.mjs +8 -8
- package/dist/actions/get-geofence.mjs.map +1 -1
- package/dist/actions/get-places-settings.cjs +3 -3
- package/dist/actions/get-places-settings.cjs.map +1 -1
- package/dist/actions/get-places-settings.d.cts +15 -3
- package/dist/actions/get-places-settings.d.cts.map +1 -1
- package/dist/actions/get-places-settings.d.mts +15 -3
- package/dist/actions/get-places-settings.d.mts.map +1 -1
- package/dist/actions/get-places-settings.mjs +3 -3
- package/dist/actions/get-places-settings.mjs.map +1 -1
- package/dist/actions/get-route-directions.cjs +16 -16
- package/dist/actions/get-route-directions.cjs.map +1 -1
- package/dist/actions/get-route-directions.d.cts +118 -3
- package/dist/actions/get-route-directions.d.cts.map +1 -1
- package/dist/actions/get-route-directions.d.mts +118 -3
- package/dist/actions/get-route-directions.d.mts.map +1 -1
- package/dist/actions/get-route-directions.mjs +16 -16
- package/dist/actions/get-route-directions.mjs.map +1 -1
- package/dist/actions/get-route-matrix.cjs +14 -14
- package/dist/actions/get-route-matrix.cjs.map +1 -1
- package/dist/actions/get-route-matrix.d.cts +45 -3
- package/dist/actions/get-route-matrix.d.cts.map +1 -1
- package/dist/actions/get-route-matrix.d.mts +45 -3
- package/dist/actions/get-route-matrix.d.mts.map +1 -1
- package/dist/actions/get-route-matrix.mjs +14 -14
- package/dist/actions/get-route-matrix.mjs.map +1 -1
- package/dist/actions/get-trip.cjs +6 -6
- package/dist/actions/get-trip.cjs.map +1 -1
- package/dist/actions/get-trip.d.cts +39 -3
- package/dist/actions/get-trip.d.cts.map +1 -1
- package/dist/actions/get-trip.d.mts +39 -3
- package/dist/actions/get-trip.d.mts.map +1 -1
- package/dist/actions/get-trip.mjs +6 -6
- package/dist/actions/get-trip.mjs.map +1 -1
- package/dist/actions/get-user.cjs +8 -8
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +66 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +66 -3
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +8 -8
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-in-geofence.cjs +4 -4
- package/dist/actions/get-users-in-geofence.cjs.map +1 -1
- package/dist/actions/get-users-in-geofence.d.cts +19 -3
- package/dist/actions/get-users-in-geofence.d.cts.map +1 -1
- package/dist/actions/get-users-in-geofence.d.mts +19 -3
- package/dist/actions/get-users-in-geofence.d.mts.map +1 -1
- package/dist/actions/get-users-in-geofence.mjs +4 -4
- package/dist/actions/get-users-in-geofence.mjs.map +1 -1
- package/dist/actions/ip-geocode.cjs +5 -5
- package/dist/actions/ip-geocode.cjs.map +1 -1
- package/dist/actions/ip-geocode.d.cts +20 -3
- package/dist/actions/ip-geocode.d.cts.map +1 -1
- package/dist/actions/ip-geocode.d.mts +20 -3
- package/dist/actions/ip-geocode.d.mts.map +1 -1
- package/dist/actions/ip-geocode.mjs +5 -5
- package/dist/actions/ip-geocode.mjs.map +1 -1
- package/dist/actions/list-events.cjs +9 -9
- package/dist/actions/list-events.cjs.map +1 -1
- package/dist/actions/list-events.d.cts +52 -3
- package/dist/actions/list-events.d.cts.map +1 -1
- package/dist/actions/list-events.d.mts +52 -3
- package/dist/actions/list-events.d.mts.map +1 -1
- package/dist/actions/list-events.mjs +9 -9
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-geofences.cjs +13 -13
- package/dist/actions/list-geofences.cjs.map +1 -1
- package/dist/actions/list-geofences.d.cts +50 -3
- package/dist/actions/list-geofences.d.cts.map +1 -1
- package/dist/actions/list-geofences.d.mts +50 -3
- package/dist/actions/list-geofences.d.mts.map +1 -1
- package/dist/actions/list-geofences.mjs +13 -13
- package/dist/actions/list-geofences.mjs.map +1 -1
- package/dist/actions/list-trips.cjs +9 -9
- package/dist/actions/list-trips.cjs.map +1 -1
- package/dist/actions/list-trips.d.cts +50 -3
- package/dist/actions/list-trips.d.cts.map +1 -1
- package/dist/actions/list-trips.d.mts +50 -3
- package/dist/actions/list-trips.d.mts.map +1 -1
- package/dist/actions/list-trips.mjs +9 -9
- package/dist/actions/list-trips.mjs.map +1 -1
- package/dist/actions/list-users.cjs +8 -8
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +35 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +35 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +8 -8
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/reverse-geocode.cjs +2 -2
- package/dist/actions/reverse-geocode.cjs.map +1 -1
- package/dist/actions/reverse-geocode.d.cts +33 -3
- package/dist/actions/reverse-geocode.d.cts.map +1 -1
- package/dist/actions/reverse-geocode.d.mts +33 -3
- package/dist/actions/reverse-geocode.d.mts.map +1 -1
- package/dist/actions/reverse-geocode.mjs +2 -2
- package/dist/actions/reverse-geocode.mjs.map +1 -1
- package/dist/actions/route-distance.cjs +12 -12
- package/dist/actions/route-distance.cjs.map +1 -1
- package/dist/actions/route-distance.d.cts +110 -3
- package/dist/actions/route-distance.d.cts.map +1 -1
- package/dist/actions/route-distance.d.mts +110 -3
- package/dist/actions/route-distance.d.mts.map +1 -1
- package/dist/actions/route-distance.mjs +12 -12
- package/dist/actions/route-distance.mjs.map +1 -1
- package/dist/actions/search-geofences-near-location.cjs +5 -5
- package/dist/actions/search-geofences-near-location.cjs.map +1 -1
- package/dist/actions/search-geofences-near-location.d.cts +34 -3
- package/dist/actions/search-geofences-near-location.d.cts.map +1 -1
- package/dist/actions/search-geofences-near-location.d.mts +34 -3
- package/dist/actions/search-geofences-near-location.d.mts.map +1 -1
- package/dist/actions/search-geofences-near-location.mjs +5 -5
- package/dist/actions/search-geofences-near-location.mjs.map +1 -1
- package/dist/actions/search-places-near-location.cjs +9 -9
- package/dist/actions/search-places-near-location.cjs.map +1 -1
- package/dist/actions/search-places-near-location.d.cts +51 -3
- package/dist/actions/search-places-near-location.d.cts.map +1 -1
- package/dist/actions/search-places-near-location.d.mts +51 -3
- package/dist/actions/search-places-near-location.d.mts.map +1 -1
- package/dist/actions/search-places-near-location.mjs +9 -9
- package/dist/actions/search-places-near-location.mjs.map +1 -1
- package/dist/actions/search-users-near-location.cjs +9 -9
- package/dist/actions/search-users-near-location.cjs.map +1 -1
- package/dist/actions/search-users-near-location.d.cts +28 -3
- package/dist/actions/search-users-near-location.d.cts.map +1 -1
- package/dist/actions/search-users-near-location.d.mts +28 -3
- package/dist/actions/search-users-near-location.d.mts.map +1 -1
- package/dist/actions/search-users-near-location.mjs +9 -9
- package/dist/actions/search-users-near-location.mjs.map +1 -1
- package/dist/actions/track-location-update.cjs +1 -1
- package/dist/actions/track-location-update.cjs.map +1 -1
- package/dist/actions/track-location-update.d.cts +43 -3
- package/dist/actions/track-location-update.d.cts.map +1 -1
- package/dist/actions/track-location-update.d.mts +43 -3
- package/dist/actions/track-location-update.d.mts.map +1 -1
- package/dist/actions/track-location-update.mjs +1 -1
- package/dist/actions/track-location-update.mjs.map +1 -1
- package/dist/actions/update-places-settings.cjs +3 -3
- package/dist/actions/update-places-settings.cjs.map +1 -1
- package/dist/actions/update-places-settings.d.cts +23 -3
- package/dist/actions/update-places-settings.d.cts.map +1 -1
- package/dist/actions/update-places-settings.d.mts +23 -3
- package/dist/actions/update-places-settings.d.mts.map +1 -1
- package/dist/actions/update-places-settings.mjs +3 -3
- package/dist/actions/update-places-settings.mjs.map +1 -1
- package/dist/actions/update-trip-by-id.cjs +3 -3
- package/dist/actions/update-trip-by-id.cjs.map +1 -1
- package/dist/actions/update-trip-by-id.d.cts +47 -3
- package/dist/actions/update-trip-by-id.d.cts.map +1 -1
- package/dist/actions/update-trip-by-id.d.mts +47 -3
- package/dist/actions/update-trip-by-id.d.mts.map +1 -1
- package/dist/actions/update-trip-by-id.mjs +3 -3
- package/dist/actions/update-trip-by-id.mjs.map +1 -1
- package/dist/actions/update-trip.cjs +5 -5
- package/dist/actions/update-trip.cjs.map +1 -1
- package/dist/actions/update-trip.d.cts +67 -3
- package/dist/actions/update-trip.d.cts.map +1 -1
- package/dist/actions/update-trip.d.mts +67 -3
- package/dist/actions/update-trip.d.mts.map +1 -1
- package/dist/actions/update-trip.mjs +5 -5
- package/dist/actions/update-trip.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.cjs +9 -9
- package/dist/actions/upsert-beacon-by-id.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.cts +53 -3
- package/dist/actions/upsert-beacon-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.mts +53 -3
- package/dist/actions/upsert-beacon-by-id.d.mts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.mjs +9 -9
- package/dist/actions/upsert-beacon-by-id.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.cjs +8 -8
- package/dist/actions/upsert-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.cts +54 -3
- package/dist/actions/upsert-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.mts +54 -3
- package/dist/actions/upsert-beacon-by-tag.d.mts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.mjs +8 -8
- package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.cjs +12 -12
- package/dist/actions/upsert-geofence-by-id.cjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.cts +48 -3
- package/dist/actions/upsert-geofence-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.mts +48 -3
- package/dist/actions/upsert-geofence-by-id.d.mts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.mjs +12 -12
- package/dist/actions/upsert-geofence-by-id.mjs.map +1 -1
- package/dist/actions/upsert-geofence.cjs +7 -7
- package/dist/actions/upsert-geofence.cjs.map +1 -1
- package/dist/actions/upsert-geofence.d.cts +40 -3
- package/dist/actions/upsert-geofence.d.cts.map +1 -1
- package/dist/actions/upsert-geofence.d.mts +40 -3
- package/dist/actions/upsert-geofence.d.mts.map +1 -1
- package/dist/actions/upsert-geofence.mjs +7 -7
- package/dist/actions/upsert-geofence.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListUsersInput
|
|
1
|
+
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarListUsersInput = z.object({\n tags: z.array(z.string()).describe(\"Only return users who have all of these tags\").optional(),\n limit: z.number().int().describe(\"Maximum number of users to return\").optional(),\n afterId: z.string().describe(\"User ID after which to return users for pagination\").optional(),\n createdAfter: z.string().describe(\"Only return users created after this ISO 8601 timestamp\").optional(),\n updatedAfter: z.string().describe(\"Only return users updated after this ISO 8601 timestamp\").optional(),\n createdBefore: z.string().describe(\"Only return users created before this ISO 8601 timestamp\").optional(),\n updatedBefore: z.string().describe(\"Only return users updated before this ISO 8601 timestamp\").optional(),\n}).describe(\"Request model for listing users with optional filtering and pagination.\");\nconst RadarListUsers_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n hasMore: z.boolean().describe(\"Whether there are more users to fetch\").nullable(),\n}).passthrough().describe(\"Pagination metadata for list users response.\");\nconst RadarListUsers_UserSchema = z.object({\n _id: z.string().describe(\"Internal Radar identifier for the user\").nullable(),\n live: z.boolean().describe(\"Whether this is a live (not test) user\").nullable().optional(),\n userId: z.string().describe(\"Custom unique identifier for the user (may be absent if only deviceId was provided)\").nullable().optional(),\n stopped: z.boolean().describe(\"Whether the user is currently stopped\").nullable().optional(),\n deviceId: z.string().describe(\"Identifier for the user's device\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the user\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp in ISO 8601 format\").nullable(),\n updatedAt: z.string().describe(\"Last updated timestamp in ISO 8601 format\").nullable(),\n foreground: z.boolean().describe(\"Whether the app was in foreground for last location update\").nullable().optional(),\n}).passthrough().describe(\"User object returned by Radar.\");\nexport const RadarListUsersOutput = z.object({\n meta: RadarListUsers_MetaSchema.nullable(),\n users: z.array(RadarListUsers_UserSchema).describe(\"List of user objects\"),\n}).passthrough().describe(\"Response model for LIST_USERS, containing users and pagination metadata.\");\n\nexport const radarListUsers = action(\"RADAR_LIST_USERS\", {\n slug: \"radar-list-users\",\n name: \"List Users\",\n description: \"Tool to list Radar users sorted by update time. Use when you need to page through users in your project.\",\n input: RadarListUsersInput,\n output: RadarListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACxG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,4BAA4B,EAAE,OAAO;CACzC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAA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ji flag of the country").nullable().optional(),
|
|
26
26
|
addressLabel: zod.z.string().describe("Formatted address label").nullable().optional(),
|
|
27
27
|
formattedAddress: zod.z.string().describe("Complete formatted address").nullable().optional()
|
|
28
|
-
}).describe("A matched address object from reverse geocoding.");
|
|
29
|
-
const RadarReverseGeocodeOutput = zod.z.object({ addresses: zod.z.array(RadarReverseGeocode_AddressSchema).describe("List of addresses found for the given coordinates") }).describe("Response model containing a list of matched address objects from reverse geocoding.");
|
|
28
|
+
}).passthrough().describe("A matched address object from reverse geocoding.");
|
|
29
|
+
const RadarReverseGeocodeOutput = zod.z.object({ addresses: zod.z.array(RadarReverseGeocode_AddressSchema).describe("List of addresses found for the given coordinates") }).passthrough().describe("Response model containing a list of matched address objects from reverse geocoding.");
|
|
30
30
|
const radarReverseGeocode = require_action.action("RADAR_REVERSE_GEOCODE", {
|
|
31
31
|
slug: "radar-reverse-geocode",
|
|
32
32
|
name: "Reverse Geocode",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverse-geocode.cjs","names":["z","action"],"sources":["../../src/actions/reverse-geocode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarReverseGeocodeInput
|
|
1
|
+
{"version":3,"file":"reverse-geocode.cjs","names":["z","action"],"sources":["../../src/actions/reverse-geocode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarReverseGeocodeInput = z.object({\n limit: z.number().int().describe(\"Maximum number of results to return (default 1, max 10)\").optional(),\n layers: z.array(z.string()).describe(\"Place types to restrict results, comma-separated (e.g., ['address','place'])\").optional(),\n country: z.string().describe(\"Two-letter ISO 3166-1 alpha-2 country code to filter results\").optional(),\n coordinates: z.string().describe(\"Latitude and longitude in 'lat,lon' format\"),\n}).describe(\"Request model for reverse geocoding coordinates to structured addresses.\");\nconst RadarReverseGeocode_AddressSchema = z.object({\n city: z.string().describe(\"City name\").nullable().optional(),\n layer: z.string().describe(\"Layer of result (e.g., 'address','place')\").nullable().optional(),\n state: z.string().describe(\"State/province name\").nullable().optional(),\n county: z.string().describe(\"County name\").nullable().optional(),\n number: z.string().describe(\"Street number\").nullable().optional(),\n street: z.string().describe(\"Street name\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n placeId: z.string().describe(\"Unique identifier for the place\").nullable().optional(),\n distance: z.number().describe(\"Distance from queried coordinates in meters\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the result\").nullable().optional(),\n longitude: z.number().describe(\"Longitude of the result\").nullable().optional(),\n stateCode: z.string().describe(\"State/province code\").nullable().optional(),\n postalCode: z.string().describe(\"Postal code if available\").nullable().optional(),\n countryCode: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n countryFlag: z.string().describe(\"Emoji flag of the country\").nullable().optional(),\n addressLabel: z.string().describe(\"Formatted address label\").nullable().optional(),\n formattedAddress: z.string().describe(\"Complete formatted address\").nullable().optional(),\n}).passthrough().describe(\"A matched address object from reverse geocoding.\");\nexport const RadarReverseGeocodeOutput = z.object({\n addresses: z.array(RadarReverseGeocode_AddressSchema).describe(\"List of addresses found for the given coordinates\"),\n}).passthrough().describe(\"Response model containing a list of matched address objects from reverse geocoding.\");\n\nexport const radarReverseGeocode = action(\"RADAR_REVERSE_GEOCODE\", {\n slug: \"radar-reverse-geocode\",\n name: \"Reverse Geocode\",\n description: \"Tool to convert geographic coordinates to structured addresses. Use when you have latitude/longitude and need a human-readable address.\",\n input: RadarReverseGeocodeInput,\n output: RadarReverseGeocodeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACrG,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC9H,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C,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,WAAWA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,mDAAmD,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAAqF;AAE/G,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/reverse-geocode.d.ts
|
|
4
|
-
declare const RadarReverseGeocodeInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarReverseGeocodeInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
layers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
country: z.ZodOptional<z.ZodString>;
|
|
8
|
+
coordinates: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const RadarReverseGeocodeOutput: z.ZodObject<{
|
|
11
|
+
addresses: z.ZodArray<z.ZodObject<{
|
|
12
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
layer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
county: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
placeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
stateCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
countryFlag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
addressLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
formattedAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const radarReverseGeocode: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
coordinates: string;
|
|
33
|
+
limit?: number | undefined;
|
|
34
|
+
layers?: string[] | undefined;
|
|
35
|
+
country?: string | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { radarReverseGeocode };
|
|
9
39
|
//# sourceMappingURL=reverse-geocode.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverse-geocode.d.cts","names":[],"sources":["../../src/actions/reverse-geocode.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"reverse-geocode.d.cts","names":[],"sources":["../../src/actions/reverse-geocode.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAyBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/reverse-geocode.d.ts
|
|
4
|
-
declare const RadarReverseGeocodeInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarReverseGeocodeInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
layers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
country: z.ZodOptional<z.ZodString>;
|
|
8
|
+
coordinates: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const RadarReverseGeocodeOutput: z.ZodObject<{
|
|
11
|
+
addresses: z.ZodArray<z.ZodObject<{
|
|
12
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
layer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
county: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
placeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
stateCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
countryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
countryFlag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
addressLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
formattedAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const radarReverseGeocode: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
coordinates: string;
|
|
33
|
+
limit?: number | undefined;
|
|
34
|
+
layers?: string[] | undefined;
|
|
35
|
+
country?: string | undefined;
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
37
|
//#endregion
|
|
8
38
|
export { radarReverseGeocode };
|
|
9
39
|
//# sourceMappingURL=reverse-geocode.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverse-geocode.d.mts","names":[],"sources":["../../src/actions/reverse-geocode.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"reverse-geocode.d.mts","names":[],"sources":["../../src/actions/reverse-geocode.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAyBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -25,13 +25,13 @@ const RadarReverseGeocode_AddressSchema = z.object({
|
|
|
25
25
|
countryFlag: z.string().describe("Emoji flag of the country").nullable().optional(),
|
|
26
26
|
addressLabel: z.string().describe("Formatted address label").nullable().optional(),
|
|
27
27
|
formattedAddress: z.string().describe("Complete formatted address").nullable().optional()
|
|
28
|
-
}).describe("A matched address object from reverse geocoding.");
|
|
28
|
+
}).passthrough().describe("A matched address object from reverse geocoding.");
|
|
29
29
|
const radarReverseGeocode = action("RADAR_REVERSE_GEOCODE", {
|
|
30
30
|
slug: "radar-reverse-geocode",
|
|
31
31
|
name: "Reverse Geocode",
|
|
32
32
|
description: "Tool to convert geographic coordinates to structured addresses. Use when you have latitude/longitude and need a human-readable address.",
|
|
33
33
|
input: RadarReverseGeocodeInput,
|
|
34
|
-
output: z.object({ addresses: z.array(RadarReverseGeocode_AddressSchema).describe("List of addresses found for the given coordinates") }).describe("Response model containing a list of matched address objects from reverse geocoding.")
|
|
34
|
+
output: z.object({ addresses: z.array(RadarReverseGeocode_AddressSchema).describe("List of addresses found for the given coordinates") }).passthrough().describe("Response model containing a list of matched address objects from reverse geocoding.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { radarReverseGeocode };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverse-geocode.mjs","names":[],"sources":["../../src/actions/reverse-geocode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarReverseGeocodeInput
|
|
1
|
+
{"version":3,"file":"reverse-geocode.mjs","names":[],"sources":["../../src/actions/reverse-geocode.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarReverseGeocodeInput = z.object({\n limit: z.number().int().describe(\"Maximum number of results to return (default 1, max 10)\").optional(),\n layers: z.array(z.string()).describe(\"Place types to restrict results, comma-separated (e.g., ['address','place'])\").optional(),\n country: z.string().describe(\"Two-letter ISO 3166-1 alpha-2 country code to filter results\").optional(),\n coordinates: z.string().describe(\"Latitude and longitude in 'lat,lon' format\"),\n}).describe(\"Request model for reverse geocoding coordinates to structured addresses.\");\nconst RadarReverseGeocode_AddressSchema = z.object({\n city: z.string().describe(\"City name\").nullable().optional(),\n layer: z.string().describe(\"Layer of result (e.g., 'address','place')\").nullable().optional(),\n state: z.string().describe(\"State/province name\").nullable().optional(),\n county: z.string().describe(\"County name\").nullable().optional(),\n number: z.string().describe(\"Street number\").nullable().optional(),\n street: z.string().describe(\"Street name\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n placeId: z.string().describe(\"Unique identifier for the place\").nullable().optional(),\n distance: z.number().describe(\"Distance from queried coordinates in meters\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the result\").nullable().optional(),\n longitude: z.number().describe(\"Longitude of the result\").nullable().optional(),\n stateCode: z.string().describe(\"State/province code\").nullable().optional(),\n postalCode: z.string().describe(\"Postal code if available\").nullable().optional(),\n countryCode: z.string().describe(\"Country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n countryFlag: z.string().describe(\"Emoji flag of the country\").nullable().optional(),\n addressLabel: z.string().describe(\"Formatted address label\").nullable().optional(),\n formattedAddress: z.string().describe(\"Complete formatted address\").nullable().optional(),\n}).passthrough().describe(\"A matched address object from reverse geocoding.\");\nexport const RadarReverseGeocodeOutput = z.object({\n addresses: z.array(RadarReverseGeocode_AddressSchema).describe(\"List of addresses found for the given coordinates\"),\n}).passthrough().describe(\"Response model containing a list of matched address objects from reverse geocoding.\");\n\nexport const radarReverseGeocode = action(\"RADAR_REVERSE_GEOCODE\", {\n slug: \"radar-reverse-geocode\",\n name: \"Reverse Geocode\",\n description: \"Tool to convert geographic coordinates to structured addresses. Use when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,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAK5E,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,WAAW,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,mDAAmD,EACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qFAOhB;AACV,CAAC"}
|
|
@@ -19,39 +19,39 @@ const RadarRouteDistanceInput = zod.z.object({
|
|
|
19
19
|
]).describe("Format for route geometry in response. Options: 'polyline', 'polyline5', 'polyline6', 'linestring'").optional(),
|
|
20
20
|
destinations: zod.z.string().describe("Destination coordinate as 'latitude,longitude'")
|
|
21
21
|
}).describe("Request model for calculating route distance and duration.");
|
|
22
|
-
const RadarRouteDistance_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code") }).describe("Metadata for the route distance response.");
|
|
22
|
+
const RadarRouteDistance_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code").nullable() }).passthrough().describe("Metadata for the route distance response.");
|
|
23
23
|
const RadarRouteDistance_DistanceInfoSchema = zod.z.object({
|
|
24
|
-
text: zod.z.string().describe("Human-readable distance string"),
|
|
25
|
-
value: zod.z.number().describe("Distance value in meters or feet depending on units")
|
|
26
|
-
}).describe("Distance information for a route.");
|
|
24
|
+
text: zod.z.string().describe("Human-readable distance string").nullable(),
|
|
25
|
+
value: zod.z.number().describe("Distance value in meters or feet depending on units").nullable()
|
|
26
|
+
}).passthrough().describe("Distance information for a route.");
|
|
27
27
|
const RadarRouteDistance_DurationInfoSchema = zod.z.object({
|
|
28
|
-
text: zod.z.string().describe("Human-readable duration string"),
|
|
29
|
-
value: zod.z.number().describe("Duration value in minutes")
|
|
30
|
-
}).describe("Duration information for a route.");
|
|
28
|
+
text: zod.z.string().describe("Human-readable duration string").nullable(),
|
|
29
|
+
value: zod.z.number().describe("Duration value in minutes").nullable()
|
|
30
|
+
}).passthrough().describe("Duration information for a route.");
|
|
31
31
|
const RadarRouteDistance_RouteGeometrySchema = zod.z.object({
|
|
32
32
|
type: zod.z.string().describe("GeoJSON geometry type; 'LineString' when using linestring format").nullable().optional(),
|
|
33
33
|
polyline: zod.z.string().describe("Encoded polyline string (polyline format)").nullable().optional(),
|
|
34
34
|
polyline5: zod.z.string().describe("Encoded polyline5 string (polyline5 format)").nullable().optional(),
|
|
35
35
|
polyline6: zod.z.string().describe("Encoded polyline6 string (polyline6 format)").nullable().optional(),
|
|
36
36
|
coordinates: zod.z.array(zod.z.array(zod.z.number())).describe("List of [longitude, latitude] coordinate pairs (linestring format)").nullable().optional()
|
|
37
|
-
}).describe("Route geometry - can be GeoJSON LineString or encoded polyline format.");
|
|
37
|
+
}).passthrough().describe("Route geometry - can be GeoJSON LineString or encoded polyline format.");
|
|
38
38
|
const RadarRouteDistance_TransportRouteSchema = zod.z.object({
|
|
39
39
|
distance: RadarRouteDistance_DistanceInfoSchema.nullable(),
|
|
40
40
|
duration: RadarRouteDistance_DurationInfoSchema.nullable(),
|
|
41
41
|
geometry: RadarRouteDistance_RouteGeometrySchema.nullable().optional()
|
|
42
|
-
}).describe("Route information for a transport mode (car, truck, foot, bike).");
|
|
43
|
-
const RadarRouteDistance_GeodesicRouteSchema = zod.z.object({ distance: RadarRouteDistance_DistanceInfoSchema.nullable() }).describe("Geodesic (straight-line) route information.");
|
|
42
|
+
}).passthrough().describe("Route information for a transport mode (car, truck, foot, bike).");
|
|
43
|
+
const RadarRouteDistance_GeodesicRouteSchema = zod.z.object({ distance: RadarRouteDistance_DistanceInfoSchema.nullable() }).passthrough().describe("Geodesic (straight-line) route information.");
|
|
44
44
|
const RadarRouteDistance_RoutesSchema = zod.z.object({
|
|
45
45
|
car: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
|
|
46
46
|
bike: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
|
|
47
47
|
foot: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
|
|
48
48
|
truck: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
|
|
49
49
|
geodesic: RadarRouteDistance_GeodesicRouteSchema.nullable().optional()
|
|
50
|
-
}).describe("Routes object containing geodesic and mode-specific route information.");
|
|
50
|
+
}).passthrough().describe("Routes object containing geodesic and mode-specific route information.");
|
|
51
51
|
const RadarRouteDistanceOutput = zod.z.object({
|
|
52
52
|
meta: RadarRouteDistance_MetaSchema.nullable(),
|
|
53
53
|
routes: RadarRouteDistance_RoutesSchema.nullable()
|
|
54
|
-
}).describe("Response model for route distance and duration calculation.");
|
|
54
|
+
}).passthrough().describe("Response model for route distance and duration calculation.");
|
|
55
55
|
const radarRouteDistance = require_action.action("RADAR_ROUTE_DISTANCE", {
|
|
56
56
|
slug: "radar-route-distance",
|
|
57
57
|
name: "Route Distance",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-distance.cjs","names":["z","action"],"sources":["../../src/actions/route-distance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarRouteDistanceInput
|
|
1
|
+
{"version":3,"file":"route-distance.cjs","names":["z","action"],"sources":["../../src/actions/route-distance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarRouteDistanceInput = z.object({\n mode: z.enum([\"car\", \"truck\", \"foot\", \"bike\"]).default(\"car\").describe(\"Routing mode\").optional(),\n avoid: z.string().describe(\"Route features to avoid, comma-separated (e.g., 'tolls,ferries')\").optional(),\n units: z.enum([\"metric\", \"imperial\"]).default(\"metric\").describe(\"Units for distance measurement\").optional(),\n origins: z.string().describe(\"Origin coordinate as 'latitude,longitude'\"),\n geometry: z.enum([\"polyline\", \"polyline5\", \"polyline6\", \"linestring\"]).describe(\"Format for route geometry in response. Options: 'polyline', 'polyline5', 'polyline6', 'linestring'\").optional(),\n destinations: z.string().describe(\"Destination coordinate as 'latitude,longitude'\"),\n}).describe(\"Request model for calculating route distance and duration.\");\nconst RadarRouteDistance_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code\").nullable(),\n}).passthrough().describe(\"Metadata for the route distance response.\");\nconst RadarRouteDistance_DistanceInfoSchema = z.object({\n text: z.string().describe(\"Human-readable distance string\").nullable(),\n value: z.number().describe(\"Distance value in meters or feet depending on units\").nullable(),\n}).passthrough().describe(\"Distance information for a route.\");\nconst RadarRouteDistance_DurationInfoSchema = z.object({\n text: z.string().describe(\"Human-readable duration string\").nullable(),\n value: z.number().describe(\"Duration value in minutes\").nullable(),\n}).passthrough().describe(\"Duration information for a route.\");\nconst RadarRouteDistance_RouteGeometrySchema = z.object({\n type: z.string().describe(\"GeoJSON geometry type; 'LineString' when using linestring format\").nullable().optional(),\n polyline: z.string().describe(\"Encoded polyline string (polyline format)\").nullable().optional(),\n polyline5: z.string().describe(\"Encoded polyline5 string (polyline5 format)\").nullable().optional(),\n polyline6: z.string().describe(\"Encoded polyline6 string (polyline6 format)\").nullable().optional(),\n coordinates: z.array(z.array(z.number())).describe(\"List of [longitude, latitude] coordinate pairs (linestring format)\").nullable().optional(),\n}).passthrough().describe(\"Route geometry - can be GeoJSON LineString or encoded polyline format.\");\nconst RadarRouteDistance_TransportRouteSchema = z.object({\n distance: RadarRouteDistance_DistanceInfoSchema.nullable(),\n duration: RadarRouteDistance_DurationInfoSchema.nullable(),\n geometry: RadarRouteDistance_RouteGeometrySchema.nullable().optional(),\n}).passthrough().describe(\"Route information for a transport mode (car, truck, foot, bike).\");\nconst RadarRouteDistance_GeodesicRouteSchema = z.object({\n distance: RadarRouteDistance_DistanceInfoSchema.nullable(),\n}).passthrough().describe(\"Geodesic (straight-line) route information.\");\nconst RadarRouteDistance_RoutesSchema = z.object({\n car: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n bike: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n foot: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n truck: RadarRouteDistance_TransportRouteSchema.nullable().optional(),\n geodesic: RadarRouteDistance_GeodesicRouteSchema.nullable().optional(),\n}).passthrough().describe(\"Routes object containing geodesic and mode-specific route information.\");\nexport const RadarRouteDistanceOutput = z.object({\n meta: RadarRouteDistance_MetaSchema.nullable(),\n routes: RadarRouteDistance_RoutesSchema.nullable(),\n}).passthrough().describe(\"Response model for route distance and duration calculation.\");\n\nexport const radarRouteDistance = action(\"RADAR_ROUTE_DISTANCE\", {\n slug: \"radar-route-distance\",\n name: \"Route Distance\",\n description: \"Tool to compute distance and travel time between origins and destinations. Use when you need route metrics before optimizing or timing routes.\",\n input: RadarRouteDistanceInput,\n output: RadarRouteDistanceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAA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AS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAClG,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAM,8BAA8B,SAAS;CAC7C,QAAQ,gCAAgC,SAAS;AACnD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,116 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/route-distance.d.ts
|
|
4
|
-
declare const RadarRouteDistanceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarRouteDistanceInput: z.ZodObject<{
|
|
5
|
+
mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
car: "car";
|
|
7
|
+
foot: "foot";
|
|
8
|
+
bike: "bike";
|
|
9
|
+
truck: "truck";
|
|
10
|
+
}>>>;
|
|
11
|
+
avoid: z.ZodOptional<z.ZodString>;
|
|
12
|
+
units: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
metric: "metric";
|
|
14
|
+
imperial: "imperial";
|
|
15
|
+
}>>>;
|
|
16
|
+
origins: z.ZodString;
|
|
17
|
+
geometry: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
linestring: "linestring";
|
|
19
|
+
polyline5: "polyline5";
|
|
20
|
+
polyline6: "polyline6";
|
|
21
|
+
polyline: "polyline";
|
|
22
|
+
}>>;
|
|
23
|
+
destinations: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const RadarRouteDistanceOutput: z.ZodObject<{
|
|
26
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
routes: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
car: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
text: z.ZodNullable<z.ZodString>;
|
|
33
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
36
|
+
text: z.ZodNullable<z.ZodString>;
|
|
37
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
|
+
bike: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
48
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
text: z.ZodNullable<z.ZodString>;
|
|
50
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
51
|
+
}, z.core.$loose>>;
|
|
52
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
text: z.ZodNullable<z.ZodString>;
|
|
54
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
62
|
+
}, z.core.$loose>>>;
|
|
63
|
+
}, z.core.$loose>>>;
|
|
64
|
+
foot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
65
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
text: z.ZodNullable<z.ZodString>;
|
|
67
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
68
|
+
}, z.core.$loose>>;
|
|
69
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
70
|
+
text: z.ZodNullable<z.ZodString>;
|
|
71
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
74
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
79
|
+
}, z.core.$loose>>>;
|
|
80
|
+
}, z.core.$loose>>>;
|
|
81
|
+
truck: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
82
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
text: z.ZodNullable<z.ZodString>;
|
|
84
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
}, z.core.$loose>>;
|
|
86
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
87
|
+
text: z.ZodNullable<z.ZodString>;
|
|
88
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
89
|
+
}, z.core.$loose>>;
|
|
90
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
91
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
96
|
+
}, z.core.$loose>>>;
|
|
97
|
+
}, z.core.$loose>>>;
|
|
98
|
+
geodesic: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
100
|
+
text: z.ZodNullable<z.ZodString>;
|
|
101
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
}, z.core.$loose>>;
|
|
103
|
+
}, z.core.$loose>>>;
|
|
104
|
+
}, z.core.$loose>>;
|
|
105
|
+
}, z.core.$loose>;
|
|
106
|
+
declare const radarRouteDistance: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
107
|
+
origins: string;
|
|
108
|
+
destinations: string;
|
|
109
|
+
mode?: "car" | "foot" | "bike" | "truck" | undefined;
|
|
110
|
+
avoid?: string | undefined;
|
|
111
|
+
units?: "metric" | "imperial" | undefined;
|
|
112
|
+
geometry?: "linestring" | "polyline5" | "polyline6" | "polyline" | undefined;
|
|
113
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
114
|
//#endregion
|
|
8
115
|
export { radarRouteDistance };
|
|
9
116
|
//# sourceMappingURL=route-distance.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-distance.d.cts","names":[],"sources":["../../src/actions/route-distance.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"route-distance.d.cts","names":[],"sources":["../../src/actions/route-distance.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAyCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,116 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/route-distance.d.ts
|
|
4
|
-
declare const RadarRouteDistanceInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarRouteDistanceInput: z.ZodObject<{
|
|
5
|
+
mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
car: "car";
|
|
7
|
+
foot: "foot";
|
|
8
|
+
bike: "bike";
|
|
9
|
+
truck: "truck";
|
|
10
|
+
}>>>;
|
|
11
|
+
avoid: z.ZodOptional<z.ZodString>;
|
|
12
|
+
units: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
metric: "metric";
|
|
14
|
+
imperial: "imperial";
|
|
15
|
+
}>>>;
|
|
16
|
+
origins: z.ZodString;
|
|
17
|
+
geometry: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
linestring: "linestring";
|
|
19
|
+
polyline5: "polyline5";
|
|
20
|
+
polyline6: "polyline6";
|
|
21
|
+
polyline: "polyline";
|
|
22
|
+
}>>;
|
|
23
|
+
destinations: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const RadarRouteDistanceOutput: z.ZodObject<{
|
|
26
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
routes: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
car: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
32
|
+
text: z.ZodNullable<z.ZodString>;
|
|
33
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
36
|
+
text: z.ZodNullable<z.ZodString>;
|
|
37
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
|
+
bike: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
48
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
text: z.ZodNullable<z.ZodString>;
|
|
50
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
51
|
+
}, z.core.$loose>>;
|
|
52
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
text: z.ZodNullable<z.ZodString>;
|
|
54
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
62
|
+
}, z.core.$loose>>>;
|
|
63
|
+
}, z.core.$loose>>>;
|
|
64
|
+
foot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
65
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
text: z.ZodNullable<z.ZodString>;
|
|
67
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
68
|
+
}, z.core.$loose>>;
|
|
69
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
70
|
+
text: z.ZodNullable<z.ZodString>;
|
|
71
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
74
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
79
|
+
}, z.core.$loose>>>;
|
|
80
|
+
}, z.core.$loose>>>;
|
|
81
|
+
truck: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
82
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
text: z.ZodNullable<z.ZodString>;
|
|
84
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
}, z.core.$loose>>;
|
|
86
|
+
duration: z.ZodNullable<z.ZodObject<{
|
|
87
|
+
text: z.ZodNullable<z.ZodString>;
|
|
88
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
89
|
+
}, z.core.$loose>>;
|
|
90
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
91
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
polyline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
polyline5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
polyline6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
coordinates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
96
|
+
}, z.core.$loose>>>;
|
|
97
|
+
}, z.core.$loose>>>;
|
|
98
|
+
geodesic: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
|
+
distance: z.ZodNullable<z.ZodObject<{
|
|
100
|
+
text: z.ZodNullable<z.ZodString>;
|
|
101
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
}, z.core.$loose>>;
|
|
103
|
+
}, z.core.$loose>>>;
|
|
104
|
+
}, z.core.$loose>>;
|
|
105
|
+
}, z.core.$loose>;
|
|
106
|
+
declare const radarRouteDistance: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
107
|
+
origins: string;
|
|
108
|
+
destinations: string;
|
|
109
|
+
mode?: "car" | "foot" | "bike" | "truck" | undefined;
|
|
110
|
+
avoid?: string | undefined;
|
|
111
|
+
units?: "metric" | "imperial" | undefined;
|
|
112
|
+
geometry?: "linestring" | "polyline5" | "polyline6" | "polyline" | undefined;
|
|
113
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
114
|
//#endregion
|
|
8
115
|
export { radarRouteDistance };
|
|
9
116
|
//# sourceMappingURL=route-distance.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-distance.d.mts","names":[],"sources":["../../src/actions/route-distance.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"route-distance.d.mts","names":[],"sources":["../../src/actions/route-distance.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAyCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -19,35 +19,35 @@ const RadarRouteDistanceInput = z.object({
|
|
|
19
19
|
]).describe("Format for route geometry in response. Options: 'polyline', 'polyline5', 'polyline6', 'linestring'").optional(),
|
|
20
20
|
destinations: z.string().describe("Destination coordinate as 'latitude,longitude'")
|
|
21
21
|
}).describe("Request model for calculating route distance and duration.");
|
|
22
|
-
const RadarRouteDistance_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code") }).describe("Metadata for the route distance response.");
|
|
22
|
+
const RadarRouteDistance_MetaSchema = z.object({ code: z.number().int().describe("HTTP status code").nullable() }).passthrough().describe("Metadata for the route distance response.");
|
|
23
23
|
const RadarRouteDistance_DistanceInfoSchema = z.object({
|
|
24
|
-
text: z.string().describe("Human-readable distance string"),
|
|
25
|
-
value: z.number().describe("Distance value in meters or feet depending on units")
|
|
26
|
-
}).describe("Distance information for a route.");
|
|
24
|
+
text: z.string().describe("Human-readable distance string").nullable(),
|
|
25
|
+
value: z.number().describe("Distance value in meters or feet depending on units").nullable()
|
|
26
|
+
}).passthrough().describe("Distance information for a route.");
|
|
27
27
|
const RadarRouteDistance_DurationInfoSchema = z.object({
|
|
28
|
-
text: z.string().describe("Human-readable duration string"),
|
|
29
|
-
value: z.number().describe("Duration value in minutes")
|
|
30
|
-
}).describe("Duration information for a route.");
|
|
28
|
+
text: z.string().describe("Human-readable duration string").nullable(),
|
|
29
|
+
value: z.number().describe("Duration value in minutes").nullable()
|
|
30
|
+
}).passthrough().describe("Duration information for a route.");
|
|
31
31
|
const RadarRouteDistance_RouteGeometrySchema = z.object({
|
|
32
32
|
type: z.string().describe("GeoJSON geometry type; 'LineString' when using linestring format").nullable().optional(),
|
|
33
33
|
polyline: z.string().describe("Encoded polyline string (polyline format)").nullable().optional(),
|
|
34
34
|
polyline5: z.string().describe("Encoded polyline5 string (polyline5 format)").nullable().optional(),
|
|
35
35
|
polyline6: z.string().describe("Encoded polyline6 string (polyline6 format)").nullable().optional(),
|
|
36
36
|
coordinates: z.array(z.array(z.number())).describe("List of [longitude, latitude] coordinate pairs (linestring format)").nullable().optional()
|
|
37
|
-
}).describe("Route geometry - can be GeoJSON LineString or encoded polyline format.");
|
|
37
|
+
}).passthrough().describe("Route geometry - can be GeoJSON LineString or encoded polyline format.");
|
|
38
38
|
const RadarRouteDistance_TransportRouteSchema = z.object({
|
|
39
39
|
distance: RadarRouteDistance_DistanceInfoSchema.nullable(),
|
|
40
40
|
duration: RadarRouteDistance_DurationInfoSchema.nullable(),
|
|
41
41
|
geometry: RadarRouteDistance_RouteGeometrySchema.nullable().optional()
|
|
42
|
-
}).describe("Route information for a transport mode (car, truck, foot, bike).");
|
|
43
|
-
const RadarRouteDistance_GeodesicRouteSchema = z.object({ distance: RadarRouteDistance_DistanceInfoSchema.nullable() }).describe("Geodesic (straight-line) route information.");
|
|
42
|
+
}).passthrough().describe("Route information for a transport mode (car, truck, foot, bike).");
|
|
43
|
+
const RadarRouteDistance_GeodesicRouteSchema = z.object({ distance: RadarRouteDistance_DistanceInfoSchema.nullable() }).passthrough().describe("Geodesic (straight-line) route information.");
|
|
44
44
|
const RadarRouteDistance_RoutesSchema = z.object({
|
|
45
45
|
car: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
|
|
46
46
|
bike: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
|
|
47
47
|
foot: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
|
|
48
48
|
truck: RadarRouteDistance_TransportRouteSchema.nullable().optional(),
|
|
49
49
|
geodesic: RadarRouteDistance_GeodesicRouteSchema.nullable().optional()
|
|
50
|
-
}).describe("Routes object containing geodesic and mode-specific route information.");
|
|
50
|
+
}).passthrough().describe("Routes object containing geodesic and mode-specific route information.");
|
|
51
51
|
const radarRouteDistance = action("RADAR_ROUTE_DISTANCE", {
|
|
52
52
|
slug: "radar-route-distance",
|
|
53
53
|
name: "Route Distance",
|
|
@@ -56,7 +56,7 @@ const radarRouteDistance = action("RADAR_ROUTE_DISTANCE", {
|
|
|
56
56
|
output: z.object({
|
|
57
57
|
meta: RadarRouteDistance_MetaSchema.nullable(),
|
|
58
58
|
routes: RadarRouteDistance_RoutesSchema.nullable()
|
|
59
|
-
}).describe("Response model for route distance and duration calculation.")
|
|
59
|
+
}).passthrough().describe("Response model for route distance and duration calculation.")
|
|
60
60
|
});
|
|
61
61
|
//#endregion
|
|
62
62
|
export { radarRouteDistance };
|