@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":"update-trip-by-id.mjs","names":[],"sources":["../../src/actions/update-trip-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpdateTripByIdInput = z.object({\n id: z.string().describe(\"Trip ID (Radar _id or externalId) to update\"),\n status: z.enum([\"started\", \"approaching\", \"arrived\", \"completed\", \"canceled\"]).describe(\"The new status of the trip\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional custom key-value pairs for the trip\").optional(),\n externalId: z.string().describe(\"Optional stable unique ID for the trip\").optional(),\n}).describe(\"Request model for updating a trip by ID or external ID.\");\nconst RadarUpdateTripById_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 RadarUpdateTripById_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable().optional(),\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 status: z.string().describe(\"Trip status (e.g., started, approaching, arrived, completed, canceled)\").nullable().optional(),\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 startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable().optional(),\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: RadarUpdateTripById_GeoJSONPointSchema.nullable().optional(),\n destinationLocation: RadarUpdateTripById_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 RadarUpdateTripByIdOutput = z.object({\n trip: RadarUpdateTripById_TripSchema.nullable(),\n}).passthrough().describe(\"Response model for updating a trip by ID.\");\n\nexport const radarUpdateTripById = action(\"RADAR_UPDATE_TRIP_BY_ID\", {\n slug: \"radar-update-trip-by-id\",\n name: \"Update Trip By ID\",\n description: \"Tool to update a trip status by Radar _id or external ID. Use when you need to change trip status to started, approaching, arrived, completed, or canceled.\",\n input: RadarUpdateTripByIdInput,\n output: RadarUpdateTripByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-trip-by-id.mjs","names":[],"sources":["../../src/actions/update-trip-by-id.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 RadarUpdateTripByIdInput = z.object({\n id: z.string().describe(\"Trip ID (Radar _id or externalId) to update\"),\n status: z.enum([\"started\", \"approaching\", \"arrived\", \"completed\", \"canceled\"]).describe(\"The new status of the trip\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional custom key-value pairs for the trip\").optional(),\n externalId: z.string().describe(\"Optional stable unique ID for the trip\").optional(),\n}).describe(\"Request model for updating a trip by ID or external ID.\");\nconst RadarUpdateTripById_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 RadarUpdateTripById_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable().optional(),\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 status: z.string().describe(\"Trip status (e.g., started, approaching, arrived, completed, canceled)\").nullable().optional(),\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 startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable().optional(),\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: RadarUpdateTripById_GeoJSONPointSchema.nullable().optional(),\n destinationLocation: RadarUpdateTripById_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 RadarUpdateTripByIdOutput = z.object({\n trip: RadarUpdateTripById_TripSchema.nullable(),\n}).passthrough().describe(\"Response model for updating a trip by ID.\");\n\nexport const radarUpdateTripById: AppAction<\n typeof RadarUpdateTripByIdInput,\n typeof RadarUpdateTripByIdOutput,\n typeof radar.credential\n> = action(\"RADAR_UPDATE_TRIP_BY_ID\", {\n slug: \"radar-update-trip-by-id\",\n name: \"Update Trip By ID\",\n description: \"Tool to update a trip status by Radar _id or external ID. Use when you need to change trip status to started, approaching, arrived, completed, or canceled.\",\n input: RadarUpdateTripByIdInput,\n output: RadarUpdateTripByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAe;EAAW;EAAa;CAAU,CAAC,CAAC,CAAC,SAAS,4BAA4B;CACpH,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC9G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,iCAAiC,EAAE,OAAO;CAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,C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,SAAS;CAC3H,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAK1D,MAAa,sBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-trip.cjs","names":["z","action"],"sources":["../../src/actions/update-trip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpdateTripInput = z.object({\n id: z.string().describe(\"The Radar trip ID or externalId to update\"),\n mode: z.enum([\"car\", \"truck\", \"bike\", \"foot\", \"motorbike\"]).describe(\"Mode of travel (valid values: car, foot, bike, truck, motorbike)\").optional(),\n active: z.boolean().describe(\"Whether the trip is active (true) or paused/completed (false)\").optional(),\n format: z.string().describe(\"Set to 'externalId' when the provided ID is an external trip ID\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata (max 16 key-value pairs)\").optional(),\n externalId: z.string().describe(\"New external ID for the trip\").optional(),\n destination: z.object({\n name: z.string().describe(\"Human-readable name of the destination\").optional(),\n accuracy: z.number().describe(\"Accuracy of the destination in meters\").optional(),\n latitude: z.number().describe(\"Latitude of the trip destination\"),\n longitude: z.number().describe(\"Longitude of the trip destination\"),\n}).describe(\"Explicit destination coordinates if not using a geofence.\").optional(),\n arrivedThreshold: z.number().describe(\"Threshold in meters for the 'arrived' state\").optional(),\n scheduledArrivalAt: z.string().describe(\"Scheduled arrival time in ISO8601 format\").optional(),\n approachingThreshold: z.number().describe(\"Threshold in meters for the 'approaching' state\").optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence\").optional(),\n destinationGeofenceRadius: z.number().describe(\"Radius in meters for the destination geofence\").optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").optional(),\n}).describe(\"Request model for UPDATE_TRIP. Supply the trip ID or set format to 'externalId' when using an external trip ID.\");\nconst RadarUpdateTrip_DestinationLocationSchema = z.object({\n latitude: z.number().describe(\"Latitude of the trip destination\").nullable(),\n longitude: z.number().describe(\"Longitude of the trip destination\").nullable(),\n}).passthrough().describe(\"Destination location coordinates for the trip.\");\nconst RadarUpdateTrip_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable().optional(),\n eta: z.number().describe(\"Estimated time of arrival in seconds\").nullable().optional(),\n note: z.string().describe(\"Freeform note for the trip\").nullable().optional(),\n status: z.string().describe(\"Trip status (e.g., created, started, completed)\").nullable().optional(),\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 startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable().optional(),\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 destinationLocation: RadarUpdateTrip_DestinationLocationSchema.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 RadarUpdateTripOutput = z.object({\n trip: RadarUpdateTrip_TripSchema.nullable(),\n}).passthrough();\n\nexport const radarUpdateTrip = action(\"RADAR_UPDATE_TRIP\", {\n slug: \"radar-update-trip\",\n name: \"Update Trip\",\n description: \"Tool to update a trip. Use when you need to modify mode, destination, schedule, or active status.\",\n input: RadarUpdateTripInput,\n output: RadarUpdateTripOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-trip.cjs","names":["z","action"],"sources":["../../src/actions/update-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 RadarUpdateTripInput = z.object({\n id: z.string().describe(\"The Radar trip ID or externalId to update\"),\n mode: z.enum([\"car\", \"truck\", \"bike\", \"foot\", \"motorbike\"]).describe(\"Mode of travel (valid values: car, foot, bike, truck, motorbike)\").optional(),\n active: z.boolean().describe(\"Whether the trip is active (true) or paused/completed (false)\").optional(),\n format: z.string().describe(\"Set to 'externalId' when the provided ID is an external trip ID\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata (max 16 key-value pairs)\").optional(),\n externalId: z.string().describe(\"New external ID for the trip\").optional(),\n destination: z.object({\n name: z.string().describe(\"Human-readable name of the destination\").optional(),\n accuracy: z.number().describe(\"Accuracy of the destination in meters\").optional(),\n latitude: z.number().describe(\"Latitude of the trip destination\"),\n longitude: z.number().describe(\"Longitude of the trip destination\"),\n}).describe(\"Explicit destination coordinates if not using a geofence.\").optional(),\n arrivedThreshold: z.number().describe(\"Threshold in meters for the 'arrived' state\").optional(),\n scheduledArrivalAt: z.string().describe(\"Scheduled arrival time in ISO8601 format\").optional(),\n approachingThreshold: z.number().describe(\"Threshold in meters for the 'approaching' state\").optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence\").optional(),\n destinationGeofenceRadius: z.number().describe(\"Radius in meters for the destination geofence\").optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").optional(),\n}).describe(\"Request model for UPDATE_TRIP. Supply the trip ID or set format to 'externalId' when using an external trip ID.\");\nconst RadarUpdateTrip_DestinationLocationSchema = z.object({\n latitude: z.number().describe(\"Latitude of the trip destination\").nullable(),\n longitude: z.number().describe(\"Longitude of the trip destination\").nullable(),\n}).passthrough().describe(\"Destination location coordinates for the trip.\");\nconst RadarUpdateTrip_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable().optional(),\n eta: z.number().describe(\"Estimated time of arrival in seconds\").nullable().optional(),\n note: z.string().describe(\"Freeform note for the trip\").nullable().optional(),\n status: z.string().describe(\"Trip status (e.g., created, started, completed)\").nullable().optional(),\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 startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable().optional(),\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 destinationLocation: RadarUpdateTrip_DestinationLocationSchema.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 RadarUpdateTripOutput = z.object({\n trip: RadarUpdateTrip_TripSchema.nullable(),\n}).passthrough();\n\nexport const radarUpdateTrip: AppAction<\n typeof RadarUpdateTripInput,\n typeof RadarUpdateTripOutput,\n typeof radar.credential\n> = action(\"RADAR_UPDATE_TRIP\", {\n slug: \"radar-update-trip\",\n name: \"Update Trip\",\n description: \"Tool to update a trip. Use when you need to modify mode, destination, schedule, or active status.\",\n input: RadarUpdateTripInput,\n output: RadarUpdateTripOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,O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SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,qBAAqB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACnF,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,MAAM,2BAA2B,SAAS,EAC5C,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kBAITC,eAAAA,OAAO,qBAAqB;CAC9B,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/update-trip.d.ts
|
|
@@ -48,38 +50,7 @@ declare const RadarUpdateTripOutput: z.ZodObject<{
|
|
|
48
50
|
destinationGeofenceExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
51
|
}, z.core.$loose>>;
|
|
50
52
|
}, z.core.$loose>;
|
|
51
|
-
declare const radarUpdateTrip:
|
|
52
|
-
id: string;
|
|
53
|
-
mode?: "car" | "foot" | "bike" | "truck" | "motorbike" | undefined;
|
|
54
|
-
active?: boolean | undefined;
|
|
55
|
-
format?: string | undefined;
|
|
56
|
-
metadata?: Record<string, unknown> | undefined;
|
|
57
|
-
externalId?: string | undefined;
|
|
58
|
-
destination?: {
|
|
59
|
-
latitude: number;
|
|
60
|
-
longitude: number;
|
|
61
|
-
name?: string | undefined;
|
|
62
|
-
accuracy?: number | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
arrivedThreshold?: number | undefined;
|
|
65
|
-
scheduledArrivalAt?: string | undefined;
|
|
66
|
-
approachingThreshold?: number | undefined;
|
|
67
|
-
destinationGeofenceTag?: string | undefined;
|
|
68
|
-
destinationGeofenceRadius?: number | undefined;
|
|
69
|
-
destinationGeofenceExternalId?: string | undefined;
|
|
70
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
71
|
-
connectionId: z.ZodString;
|
|
72
|
-
entityId: z.ZodString;
|
|
73
|
-
instanceId: z.ZodString;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
-
generic_api_key: z.ZodString;
|
|
76
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
77
|
-
connectionId: z.ZodString;
|
|
78
|
-
entityId: z.ZodString;
|
|
79
|
-
instanceId: z.ZodString;
|
|
80
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
-
generic_api_key: z.ZodString;
|
|
82
|
-
}, z.core.$strip>>]>;
|
|
53
|
+
declare const radarUpdateTrip: AppAction<typeof RadarUpdateTripInput, typeof RadarUpdateTripOutput, typeof radar.credential>;
|
|
83
54
|
//#endregion
|
|
84
55
|
export { radarUpdateTrip };
|
|
85
56
|
//# sourceMappingURL=update-trip.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-trip.d.cts","names":[],"sources":["../../src/actions/update-trip.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-trip.d.cts","names":[],"sources":["../../src/actions/update-trip.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,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/update-trip.d.ts
|
|
@@ -48,38 +50,7 @@ declare const RadarUpdateTripOutput: z.ZodObject<{
|
|
|
48
50
|
destinationGeofenceExternalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
51
|
}, z.core.$loose>>;
|
|
50
52
|
}, z.core.$loose>;
|
|
51
|
-
declare const radarUpdateTrip:
|
|
52
|
-
id: string;
|
|
53
|
-
mode?: "car" | "foot" | "bike" | "truck" | "motorbike" | undefined;
|
|
54
|
-
active?: boolean | undefined;
|
|
55
|
-
format?: string | undefined;
|
|
56
|
-
metadata?: Record<string, unknown> | undefined;
|
|
57
|
-
externalId?: string | undefined;
|
|
58
|
-
destination?: {
|
|
59
|
-
latitude: number;
|
|
60
|
-
longitude: number;
|
|
61
|
-
name?: string | undefined;
|
|
62
|
-
accuracy?: number | undefined;
|
|
63
|
-
} | undefined;
|
|
64
|
-
arrivedThreshold?: number | undefined;
|
|
65
|
-
scheduledArrivalAt?: string | undefined;
|
|
66
|
-
approachingThreshold?: number | undefined;
|
|
67
|
-
destinationGeofenceTag?: string | undefined;
|
|
68
|
-
destinationGeofenceRadius?: number | undefined;
|
|
69
|
-
destinationGeofenceExternalId?: string | undefined;
|
|
70
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
71
|
-
connectionId: z.ZodString;
|
|
72
|
-
entityId: z.ZodString;
|
|
73
|
-
instanceId: z.ZodString;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
-
generic_api_key: z.ZodString;
|
|
76
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
77
|
-
connectionId: z.ZodString;
|
|
78
|
-
entityId: z.ZodString;
|
|
79
|
-
instanceId: z.ZodString;
|
|
80
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
-
generic_api_key: z.ZodString;
|
|
82
|
-
}, z.core.$strip>>]>;
|
|
53
|
+
declare const radarUpdateTrip: AppAction<typeof RadarUpdateTripInput, typeof RadarUpdateTripOutput, typeof radar.credential>;
|
|
83
54
|
//#endregion
|
|
84
55
|
export { radarUpdateTrip };
|
|
85
56
|
//# sourceMappingURL=update-trip.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-trip.d.mts","names":[],"sources":["../../src/actions/update-trip.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-trip.d.mts","names":[],"sources":["../../src/actions/update-trip.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-trip.mjs","names":[],"sources":["../../src/actions/update-trip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpdateTripInput = z.object({\n id: z.string().describe(\"The Radar trip ID or externalId to update\"),\n mode: z.enum([\"car\", \"truck\", \"bike\", \"foot\", \"motorbike\"]).describe(\"Mode of travel (valid values: car, foot, bike, truck, motorbike)\").optional(),\n active: z.boolean().describe(\"Whether the trip is active (true) or paused/completed (false)\").optional(),\n format: z.string().describe(\"Set to 'externalId' when the provided ID is an external trip ID\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata (max 16 key-value pairs)\").optional(),\n externalId: z.string().describe(\"New external ID for the trip\").optional(),\n destination: z.object({\n name: z.string().describe(\"Human-readable name of the destination\").optional(),\n accuracy: z.number().describe(\"Accuracy of the destination in meters\").optional(),\n latitude: z.number().describe(\"Latitude of the trip destination\"),\n longitude: z.number().describe(\"Longitude of the trip destination\"),\n}).describe(\"Explicit destination coordinates if not using a geofence.\").optional(),\n arrivedThreshold: z.number().describe(\"Threshold in meters for the 'arrived' state\").optional(),\n scheduledArrivalAt: z.string().describe(\"Scheduled arrival time in ISO8601 format\").optional(),\n approachingThreshold: z.number().describe(\"Threshold in meters for the 'approaching' state\").optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence\").optional(),\n destinationGeofenceRadius: z.number().describe(\"Radius in meters for the destination geofence\").optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").optional(),\n}).describe(\"Request model for UPDATE_TRIP. Supply the trip ID or set format to 'externalId' when using an external trip ID.\");\nconst RadarUpdateTrip_DestinationLocationSchema = z.object({\n latitude: z.number().describe(\"Latitude of the trip destination\").nullable(),\n longitude: z.number().describe(\"Longitude of the trip destination\").nullable(),\n}).passthrough().describe(\"Destination location coordinates for the trip.\");\nconst RadarUpdateTrip_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable().optional(),\n eta: z.number().describe(\"Estimated time of arrival in seconds\").nullable().optional(),\n note: z.string().describe(\"Freeform note for the trip\").nullable().optional(),\n status: z.string().describe(\"Trip status (e.g., created, started, completed)\").nullable().optional(),\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 startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable().optional(),\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 destinationLocation: RadarUpdateTrip_DestinationLocationSchema.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 RadarUpdateTripOutput = z.object({\n trip: RadarUpdateTrip_TripSchema.nullable(),\n}).passthrough();\n\nexport const radarUpdateTrip = action(\"RADAR_UPDATE_TRIP\", {\n slug: \"radar-update-trip\",\n name: \"Update Trip\",\n description: \"Tool to update a trip. Use when you need to modify mode, destination, schedule, or active status.\",\n input: RadarUpdateTripInput,\n output: RadarUpdateTripOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-trip.mjs","names":[],"sources":["../../src/actions/update-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 RadarUpdateTripInput = z.object({\n id: z.string().describe(\"The Radar trip ID or externalId to update\"),\n mode: z.enum([\"car\", \"truck\", \"bike\", \"foot\", \"motorbike\"]).describe(\"Mode of travel (valid values: car, foot, bike, truck, motorbike)\").optional(),\n active: z.boolean().describe(\"Whether the trip is active (true) or paused/completed (false)\").optional(),\n format: z.string().describe(\"Set to 'externalId' when the provided ID is an external trip ID\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata (max 16 key-value pairs)\").optional(),\n externalId: z.string().describe(\"New external ID for the trip\").optional(),\n destination: z.object({\n name: z.string().describe(\"Human-readable name of the destination\").optional(),\n accuracy: z.number().describe(\"Accuracy of the destination in meters\").optional(),\n latitude: z.number().describe(\"Latitude of the trip destination\"),\n longitude: z.number().describe(\"Longitude of the trip destination\"),\n}).describe(\"Explicit destination coordinates if not using a geofence.\").optional(),\n arrivedThreshold: z.number().describe(\"Threshold in meters for the 'arrived' state\").optional(),\n scheduledArrivalAt: z.string().describe(\"Scheduled arrival time in ISO8601 format\").optional(),\n approachingThreshold: z.number().describe(\"Threshold in meters for the 'approaching' state\").optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence\").optional(),\n destinationGeofenceRadius: z.number().describe(\"Radius in meters for the destination geofence\").optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").optional(),\n}).describe(\"Request model for UPDATE_TRIP. Supply the trip ID or set format to 'externalId' when using an external trip ID.\");\nconst RadarUpdateTrip_DestinationLocationSchema = z.object({\n latitude: z.number().describe(\"Latitude of the trip destination\").nullable(),\n longitude: z.number().describe(\"Longitude of the trip destination\").nullable(),\n}).passthrough().describe(\"Destination location coordinates for the trip.\");\nconst RadarUpdateTrip_TripSchema = z.object({\n _id: z.string().describe(\"Unique Radar trip ID\").nullable().optional(),\n eta: z.number().describe(\"Estimated time of arrival in seconds\").nullable().optional(),\n note: z.string().describe(\"Freeform note for the trip\").nullable().optional(),\n status: z.string().describe(\"Trip status (e.g., created, started, completed)\").nullable().optional(),\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 startedAt: z.string().describe(\"Start timestamp in ISO8601 format\").nullable().optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO8601 format\").nullable().optional(),\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 destinationLocation: RadarUpdateTrip_DestinationLocationSchema.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 RadarUpdateTripOutput = z.object({\n trip: RadarUpdateTrip_TripSchema.nullable(),\n}).passthrough();\n\nexport const radarUpdateTrip: AppAction<\n typeof RadarUpdateTripInput,\n typeof RadarUpdateTripOutput,\n typeof radar.credential\n> = action(\"RADAR_UPDATE_TRIP\", {\n slug: \"radar-update-trip\",\n name: \"Update Trip\",\n description: \"Tool to update a trip. Use when you need to modify mode, destination, schedule, or active status.\",\n input: RadarUpdateTripInput,\n output: RadarUpdateTripOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACnE,MAAM,EAAE,KAAK;EAAC;EAAO;EAAS;EAAQ;EAAQ;CAAW,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClJ,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACvG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO;EACtB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kC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AAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,qBAAqB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACnF,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAK1D,MAAa,kBAIT,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbmC,EAAE,OAAO,EAC5C,MAAM,2BAA2B,SAAS,EAC5C,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-id.cjs","names":["z","action"],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByIdInput = z.object({\n id: z.string().describe(\"The Radar beacon _id to create or update\"),\n tag: z.string().describe(\"A group for the beacon\").optional(),\n type: z.string().describe(\"Beacon type, must be 'ibeacon'\"),\n uuid: z.string().describe(\"The iBeacon UUID\"),\n major: z.union([z.string(), z.number().int()]),\n minor: z.union([z.string(), z.number().int()]),\n enabled: z.boolean().describe(\"If true, the beacon will generate events; defaults to true\").optional(),\n externalId: z.string().describe(\"External ID for the beacon\").optional(),\n coordinates: z.array(z.number()).describe(\"The approximate location in [longitude, latitude] format\"),\n description: z.string().describe(\"Display name for the beacon\").optional(),\n}).describe(\"Request model for upserting a beacon by Radar _id.\");\nconst RadarUpsertBeaconById_MetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Response metadata for beacon operations.\");\nconst RadarUpsertBeaconById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type (Point)\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object for beacon location.\");\nconst RadarUpsertBeaconById_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Beacon ID\").nullable(),\n tag: z.string().describe(\"Group tag for the beacon\").nullable().optional(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is live\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.union([z.string(), z.number().int()]).nullable().optional(),\n minor: z.union([z.string(), z.number().int()]).nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon generates events\").nullable().optional(),\n placeId: z.string().describe(\"Radar placeId associated with the beacon\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID or serial number of the beacon\").nullable().optional(),\n geometry: RadarUpsertBeaconById_GeometrySchema.nullable(),\n instance: z.string().describe(\"Instance for Eddystone UID\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601)\").nullable(),\n namespace: z.string().describe(\"Namespace for Eddystone UID\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601)\").nullable(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar API.\");\nexport const RadarUpsertBeaconByIdOutput = z.object({\n meta: RadarUpsertBeaconById_MetaSchema.nullable(),\n beacon: RadarUpsertBeaconById_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon by ID.\");\n\nexport const radarUpsertBeaconById = action(\"RADAR_UPSERT_BEACON_BY_ID\", {\n slug: \"radar-upsert-beacon-by-id\",\n name: \"Upsert Beacon by ID\",\n description: \"Tool to create or update a beacon by Radar _id. Use when you need to ensure a beacon with a specific ID exists with updated properties.\",\n input: RadarUpsertBeaconByIdInput,\n output: RadarUpsertBeaconByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-id.cjs","names":["z","action"],"sources":["../../src/actions/upsert-beacon-by-id.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 RadarUpsertBeaconByIdInput = z.object({\n id: z.string().describe(\"The Radar beacon _id to create or update\"),\n tag: z.string().describe(\"A group for the beacon\").optional(),\n type: z.string().describe(\"Beacon type, must be 'ibeacon'\"),\n uuid: z.string().describe(\"The iBeacon UUID\"),\n major: z.union([z.string(), z.number().int()]),\n minor: z.union([z.string(), z.number().int()]),\n enabled: z.boolean().describe(\"If true, the beacon will generate events; defaults to true\").optional(),\n externalId: z.string().describe(\"External ID for the beacon\").optional(),\n coordinates: z.array(z.number()).describe(\"The approximate location in [longitude, latitude] format\"),\n description: z.string().describe(\"Display name for the beacon\").optional(),\n}).describe(\"Request model for upserting a beacon by Radar _id.\");\nconst RadarUpsertBeaconById_MetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Response metadata for beacon operations.\");\nconst RadarUpsertBeaconById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type (Point)\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object for beacon location.\");\nconst RadarUpsertBeaconById_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Beacon ID\").nullable(),\n tag: z.string().describe(\"Group tag for the beacon\").nullable().optional(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is live\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.union([z.string(), z.number().int()]).nullable().optional(),\n minor: z.union([z.string(), z.number().int()]).nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon generates events\").nullable().optional(),\n placeId: z.string().describe(\"Radar placeId associated with the beacon\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID or serial number of the beacon\").nullable().optional(),\n geometry: RadarUpsertBeaconById_GeometrySchema.nullable(),\n instance: z.string().describe(\"Instance for Eddystone UID\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601)\").nullable(),\n namespace: z.string().describe(\"Namespace for Eddystone UID\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601)\").nullable(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar API.\");\nexport const RadarUpsertBeaconByIdOutput = z.object({\n meta: RadarUpsertBeaconById_MetaSchema.nullable(),\n beacon: RadarUpsertBeaconById_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon by ID.\");\n\nexport const radarUpsertBeaconById: AppAction<\n typeof RadarUpsertBeaconByIdInput,\n typeof RadarUpsertBeaconByIdOutput,\n typeof radar.credential\n> = action(\"RADAR_UPSERT_BEACON_BY_ID\", {\n slug: \"radar-upsert-beacon-by-id\",\n name: \"Upsert Beacon by ID\",\n description: \"Tool to create or update a beacon by Radar _id. Use when you need to ensure a beacon with a specific ID exists with updated properties.\",\n input: RadarUpsertBeaconByIdInput,\n output: RadarUpsertBeaconByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7C,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7C,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACpG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAM,iCAAiC,SAAS;CAChD,QAAQ,yCAAyC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,wBAITC,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/upsert-beacon-by-id.d.ts
|
|
@@ -42,30 +44,7 @@ declare const RadarUpsertBeaconByIdOutput: z.ZodObject<{
|
|
|
42
44
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
45
|
}, z.core.$loose>>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const radarUpsertBeaconById:
|
|
46
|
-
id: string;
|
|
47
|
-
type: string;
|
|
48
|
-
uuid: string;
|
|
49
|
-
major: string | number;
|
|
50
|
-
minor: string | number;
|
|
51
|
-
coordinates: number[];
|
|
52
|
-
tag?: string | undefined;
|
|
53
|
-
enabled?: boolean | undefined;
|
|
54
|
-
externalId?: string | undefined;
|
|
55
|
-
description?: string | undefined;
|
|
56
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
57
|
-
connectionId: z.ZodString;
|
|
58
|
-
entityId: z.ZodString;
|
|
59
|
-
instanceId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
generic_api_key: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
63
|
-
connectionId: z.ZodString;
|
|
64
|
-
entityId: z.ZodString;
|
|
65
|
-
instanceId: z.ZodString;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
generic_api_key: z.ZodString;
|
|
68
|
-
}, z.core.$strip>>]>;
|
|
47
|
+
declare const radarUpsertBeaconById: AppAction<typeof RadarUpsertBeaconByIdInput, typeof RadarUpsertBeaconByIdOutput, typeof radar.credential>;
|
|
69
48
|
//#endregion
|
|
70
49
|
export { radarUpsertBeaconById };
|
|
71
50
|
//# sourceMappingURL=upsert-beacon-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-id.d.cts","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-id.d.cts","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAwC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/upsert-beacon-by-id.d.ts
|
|
@@ -42,30 +44,7 @@ declare const RadarUpsertBeaconByIdOutput: z.ZodObject<{
|
|
|
42
44
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
45
|
}, z.core.$loose>>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const radarUpsertBeaconById:
|
|
46
|
-
id: string;
|
|
47
|
-
type: string;
|
|
48
|
-
uuid: string;
|
|
49
|
-
major: string | number;
|
|
50
|
-
minor: string | number;
|
|
51
|
-
coordinates: number[];
|
|
52
|
-
tag?: string | undefined;
|
|
53
|
-
enabled?: boolean | undefined;
|
|
54
|
-
externalId?: string | undefined;
|
|
55
|
-
description?: string | undefined;
|
|
56
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
57
|
-
connectionId: z.ZodString;
|
|
58
|
-
entityId: z.ZodString;
|
|
59
|
-
instanceId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
generic_api_key: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
63
|
-
connectionId: z.ZodString;
|
|
64
|
-
entityId: z.ZodString;
|
|
65
|
-
instanceId: z.ZodString;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
generic_api_key: z.ZodString;
|
|
68
|
-
}, z.core.$strip>>]>;
|
|
47
|
+
declare const radarUpsertBeaconById: AppAction<typeof RadarUpsertBeaconByIdInput, typeof RadarUpsertBeaconByIdOutput, typeof radar.credential>;
|
|
69
48
|
//#endregion
|
|
70
49
|
export { radarUpsertBeaconById };
|
|
71
50
|
//# sourceMappingURL=upsert-beacon-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-id.d.mts","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-id.d.mts","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAwC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-id.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByIdInput = z.object({\n id: z.string().describe(\"The Radar beacon _id to create or update\"),\n tag: z.string().describe(\"A group for the beacon\").optional(),\n type: z.string().describe(\"Beacon type, must be 'ibeacon'\"),\n uuid: z.string().describe(\"The iBeacon UUID\"),\n major: z.union([z.string(), z.number().int()]),\n minor: z.union([z.string(), z.number().int()]),\n enabled: z.boolean().describe(\"If true, the beacon will generate events; defaults to true\").optional(),\n externalId: z.string().describe(\"External ID for the beacon\").optional(),\n coordinates: z.array(z.number()).describe(\"The approximate location in [longitude, latitude] format\"),\n description: z.string().describe(\"Display name for the beacon\").optional(),\n}).describe(\"Request model for upserting a beacon by Radar _id.\");\nconst RadarUpsertBeaconById_MetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Response metadata for beacon operations.\");\nconst RadarUpsertBeaconById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type (Point)\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object for beacon location.\");\nconst RadarUpsertBeaconById_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Beacon ID\").nullable(),\n tag: z.string().describe(\"Group tag for the beacon\").nullable().optional(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is live\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.union([z.string(), z.number().int()]).nullable().optional(),\n minor: z.union([z.string(), z.number().int()]).nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon generates events\").nullable().optional(),\n placeId: z.string().describe(\"Radar placeId associated with the beacon\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID or serial number of the beacon\").nullable().optional(),\n geometry: RadarUpsertBeaconById_GeometrySchema.nullable(),\n instance: z.string().describe(\"Instance for Eddystone UID\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601)\").nullable(),\n namespace: z.string().describe(\"Namespace for Eddystone UID\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601)\").nullable(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar API.\");\nexport const RadarUpsertBeaconByIdOutput = z.object({\n meta: RadarUpsertBeaconById_MetaSchema.nullable(),\n beacon: RadarUpsertBeaconById_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon by ID.\");\n\nexport const radarUpsertBeaconById = action(\"RADAR_UPSERT_BEACON_BY_ID\", {\n slug: \"radar-upsert-beacon-by-id\",\n name: \"Upsert Beacon by ID\",\n description: \"Tool to create or update a beacon by Radar _id. Use when you need to ensure a beacon with a specific ID exists with updated properties.\",\n input: RadarUpsertBeaconByIdInput,\n output: RadarUpsertBeaconByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-id.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-id.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 RadarUpsertBeaconByIdInput = z.object({\n id: z.string().describe(\"The Radar beacon _id to create or update\"),\n tag: z.string().describe(\"A group for the beacon\").optional(),\n type: z.string().describe(\"Beacon type, must be 'ibeacon'\"),\n uuid: z.string().describe(\"The iBeacon UUID\"),\n major: z.union([z.string(), z.number().int()]),\n minor: z.union([z.string(), z.number().int()]),\n enabled: z.boolean().describe(\"If true, the beacon will generate events; defaults to true\").optional(),\n externalId: z.string().describe(\"External ID for the beacon\").optional(),\n coordinates: z.array(z.number()).describe(\"The approximate location in [longitude, latitude] format\"),\n description: z.string().describe(\"Display name for the beacon\").optional(),\n}).describe(\"Request model for upserting a beacon by Radar _id.\");\nconst RadarUpsertBeaconById_MetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Response metadata for beacon operations.\");\nconst RadarUpsertBeaconById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type (Point)\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object for beacon location.\");\nconst RadarUpsertBeaconById_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Beacon ID\").nullable(),\n tag: z.string().describe(\"Group tag for the beacon\").nullable().optional(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is live\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.union([z.string(), z.number().int()]).nullable().optional(),\n minor: z.union([z.string(), z.number().int()]).nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon generates events\").nullable().optional(),\n placeId: z.string().describe(\"Radar placeId associated with the beacon\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID or serial number of the beacon\").nullable().optional(),\n geometry: RadarUpsertBeaconById_GeometrySchema.nullable(),\n instance: z.string().describe(\"Instance for Eddystone UID\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601)\").nullable(),\n namespace: z.string().describe(\"Namespace for Eddystone UID\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601)\").nullable(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar API.\");\nexport const RadarUpsertBeaconByIdOutput = z.object({\n meta: RadarUpsertBeaconById_MetaSchema.nullable(),\n beacon: RadarUpsertBeaconById_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon by ID.\");\n\nexport const radarUpsertBeaconById: AppAction<\n typeof RadarUpsertBeaconByIdInput,\n typeof RadarUpsertBeaconByIdOutput,\n typeof radar.credential\n> = action(\"RADAR_UPSERT_BEACON_BY_ID\", {\n slug: \"radar-upsert-beacon-by-id\",\n name: \"Upsert Beacon by ID\",\n description: \"Tool to create or update a beacon by Radar _id. Use when you need to ensure a beacon with a specific ID exists with updated properties.\",\n input: RadarUpsertBeaconByIdInput,\n output: RadarUpsertBeaconByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7C,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS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s","names":["z","action"],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByTagInput = z.object({\n tag: z.string().describe(\"Tag identifier for grouping the beacon (appears in URL path)\"),\n uid: z.string().describe(\"UID identifier for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"Beacon technology type: ibeacon or eddystone\"),\n uuid: z.string().describe(\"UUID identifier for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n major: z.string().describe(\"Major ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is active and generates events\"),\n instance: z.string().describe(\"Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)\").optional(),\n externalId: z.string().describe(\"External identifier mapping to your database (appears in URL path)\"),\n coordinates: z.array(z.number()).describe(\"Beacon location as [longitude, latitude] in GeoJSON format\"),\n description: z.string().describe(\"Human-readable display name for the beacon\"),\n}).describe(\"Request model for upserting a beacon by tag and externalId.\");\nconst RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, typically 'Point' for beacons\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"Geometry details of a beacon\");\nconst RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the beacon\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uid: z.string().describe(\"UID for Eddystone type\").nullable().optional(),\n type: z.string().describe(\"Type of beacon (ibeacon or eddystone)\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon type\").nullable().optional(),\n major: z.string().describe(\"Major ID for iBeacon type\").nullable().optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable().optional(),\n geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),\n instance: z.string().describe(\"Instance for Eddystone type\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable().optional(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar beacon\");\nexport const RadarUpsertBeaconByTagOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon\");\n\nexport const radarUpsertBeaconByTag = action(\"RADAR_UPSERT_BEACON_BY_TAG\", {\n slug: \"radar-upsert-beacon-by-tag\",\n name: \"Upsert Beacon by Tag\",\n description: \"Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.\",\n input: RadarUpsertBeaconByTagInput,\n output: RadarUpsertBeaconByTagOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-tag.cjs","names":["z","action"],"sources":["../../src/actions/upsert-beacon-by-tag.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 RadarUpsertBeaconByTagInput = z.object({\n tag: z.string().describe(\"Tag identifier for grouping the beacon (appears in URL path)\"),\n uid: z.string().describe(\"UID identifier for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"Beacon technology type: ibeacon or eddystone\"),\n uuid: z.string().describe(\"UUID identifier for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n major: z.string().describe(\"Major ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is active and generates events\"),\n instance: z.string().describe(\"Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)\").optional(),\n externalId: z.string().describe(\"External identifier mapping to your database (appears in URL path)\"),\n coordinates: z.array(z.number()).describe(\"Beacon location as [longitude, latitude] in GeoJSON format\"),\n description: z.string().describe(\"Human-readable display name for the beacon\"),\n}).describe(\"Request model for upserting a beacon by tag and externalId.\");\nconst RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, typically 'Point' for beacons\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"Geometry details of a beacon\");\nconst RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the beacon\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uid: z.string().describe(\"UID for Eddystone type\").nullable().optional(),\n type: z.string().describe(\"Type of beacon (ibeacon or eddystone)\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon type\").nullable().optional(),\n major: z.string().describe(\"Major ID for iBeacon type\").nullable().optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable().optional(),\n geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),\n instance: z.string().describe(\"Instance for Eddystone type\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable().optional(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar beacon\");\nexport const RadarUpsertBeaconByTagOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon\");\n\nexport const radarUpsertBeaconByTag: AppAction<\n typeof RadarUpsertBeaconByTagInput,\n typeof RadarUpsertBeaconByTagOutput,\n typeof radar.credential\n> = action(\"RADAR_UPSERT_BEACON_BY_TAG\", {\n slug: \"radar-upsert-beacon-by-tag\",\n name: \"Upsert Beacon by Tag\",\n description: \"Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.\",\n input: RadarUpsertBeaconByTagInput,\n output: RadarUpsertBeaconByTagOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACzH,MAAMA,IAAAA,EAAE,KAAK,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,SAAS,8CAA8C;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACtH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAA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CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,yBAITC,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/upsert-beacon-by-tag.d.ts
|
|
@@ -41,32 +43,7 @@ declare const RadarUpsertBeaconByTagOutput: z.ZodObject<{
|
|
|
41
43
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
44
|
}, z.core.$loose>>;
|
|
43
45
|
}, z.core.$loose>;
|
|
44
|
-
declare const radarUpsertBeaconByTag:
|
|
45
|
-
tag: string;
|
|
46
|
-
type: "ibeacon" | "eddystone";
|
|
47
|
-
enabled: boolean;
|
|
48
|
-
externalId: string;
|
|
49
|
-
coordinates: number[];
|
|
50
|
-
description: string;
|
|
51
|
-
uid?: string | undefined;
|
|
52
|
-
uuid?: string | undefined;
|
|
53
|
-
major?: string | undefined;
|
|
54
|
-
minor?: string | undefined;
|
|
55
|
-
instance?: string | undefined;
|
|
56
|
-
metadata?: Record<string, unknown> | undefined;
|
|
57
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
58
|
-
connectionId: z.ZodString;
|
|
59
|
-
entityId: z.ZodString;
|
|
60
|
-
instanceId: z.ZodString;
|
|
61
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
-
generic_api_key: z.ZodString;
|
|
63
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
64
|
-
connectionId: z.ZodString;
|
|
65
|
-
entityId: z.ZodString;
|
|
66
|
-
instanceId: z.ZodString;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
generic_api_key: z.ZodString;
|
|
69
|
-
}, z.core.$strip>>]>;
|
|
46
|
+
declare const radarUpsertBeaconByTag: AppAction<typeof RadarUpsertBeaconByTagInput, typeof RadarUpsertBeaconByTagOutput, typeof radar.credential>;
|
|
70
47
|
//#endregion
|
|
71
48
|
export { radarUpsertBeaconByTag };
|
|
72
49
|
//# sourceMappingURL=upsert-beacon-by-tag.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-tag.d.cts","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-tag.d.cts","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmC3B,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/upsert-beacon-by-tag.d.ts
|
|
@@ -41,32 +43,7 @@ declare const RadarUpsertBeaconByTagOutput: z.ZodObject<{
|
|
|
41
43
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
44
|
}, z.core.$loose>>;
|
|
43
45
|
}, z.core.$loose>;
|
|
44
|
-
declare const radarUpsertBeaconByTag:
|
|
45
|
-
tag: string;
|
|
46
|
-
type: "ibeacon" | "eddystone";
|
|
47
|
-
enabled: boolean;
|
|
48
|
-
externalId: string;
|
|
49
|
-
coordinates: number[];
|
|
50
|
-
description: string;
|
|
51
|
-
uid?: string | undefined;
|
|
52
|
-
uuid?: string | undefined;
|
|
53
|
-
major?: string | undefined;
|
|
54
|
-
minor?: string | undefined;
|
|
55
|
-
instance?: string | undefined;
|
|
56
|
-
metadata?: Record<string, unknown> | undefined;
|
|
57
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
58
|
-
connectionId: z.ZodString;
|
|
59
|
-
entityId: z.ZodString;
|
|
60
|
-
instanceId: z.ZodString;
|
|
61
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
-
generic_api_key: z.ZodString;
|
|
63
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
64
|
-
connectionId: z.ZodString;
|
|
65
|
-
entityId: z.ZodString;
|
|
66
|
-
instanceId: z.ZodString;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
generic_api_key: z.ZodString;
|
|
69
|
-
}, z.core.$strip>>]>;
|
|
46
|
+
declare const radarUpsertBeaconByTag: AppAction<typeof RadarUpsertBeaconByTagInput, typeof RadarUpsertBeaconByTagOutput, typeof radar.credential>;
|
|
70
47
|
//#endregion
|
|
71
48
|
export { radarUpsertBeaconByTag };
|
|
72
49
|
//# sourceMappingURL=upsert-beacon-by-tag.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-tag.d.mts","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-tag.d.mts","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-tag.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByTagInput = z.object({\n tag: z.string().describe(\"Tag identifier for grouping the beacon (appears in URL path)\"),\n uid: z.string().describe(\"UID identifier for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"Beacon technology type: ibeacon or eddystone\"),\n uuid: z.string().describe(\"UUID identifier for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n major: z.string().describe(\"Major ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is active and generates events\"),\n instance: z.string().describe(\"Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)\").optional(),\n externalId: z.string().describe(\"External identifier mapping to your database (appears in URL path)\"),\n coordinates: z.array(z.number()).describe(\"Beacon location as [longitude, latitude] in GeoJSON format\"),\n description: z.string().describe(\"Human-readable display name for the beacon\"),\n}).describe(\"Request model for upserting a beacon by tag and externalId.\");\nconst RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, typically 'Point' for beacons\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"Geometry details of a beacon\");\nconst RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the beacon\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uid: z.string().describe(\"UID for Eddystone type\").nullable().optional(),\n type: z.string().describe(\"Type of beacon (ibeacon or eddystone)\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon type\").nullable().optional(),\n major: z.string().describe(\"Major ID for iBeacon type\").nullable().optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable().optional(),\n geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),\n instance: z.string().describe(\"Instance for Eddystone type\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable().optional(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar beacon\");\nexport const RadarUpsertBeaconByTagOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon\");\n\nexport const radarUpsertBeaconByTag = action(\"RADAR_UPSERT_BEACON_BY_TAG\", {\n slug: \"radar-upsert-beacon-by-tag\",\n name: \"Upsert Beacon by Tag\",\n description: \"Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.\",\n input: RadarUpsertBeaconByTagInput,\n output: RadarUpsertBeaconByTagOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-tag.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.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 RadarUpsertBeaconByTagInput = z.object({\n tag: z.string().describe(\"Tag identifier for grouping the beacon (appears in URL path)\"),\n uid: z.string().describe(\"UID identifier for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"Beacon technology type: ibeacon or eddystone\"),\n uuid: z.string().describe(\"UUID identifier for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n major: z.string().describe(\"Major ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is active and generates events\"),\n instance: z.string().describe(\"Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)\").optional(),\n externalId: z.string().describe(\"External identifier mapping to your database (appears in URL path)\"),\n coordinates: z.array(z.number()).describe(\"Beacon location as [longitude, latitude] in GeoJSON format\"),\n description: z.string().describe(\"Human-readable display name for the beacon\"),\n}).describe(\"Request model for upserting a beacon by tag and externalId.\");\nconst RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, typically 'Point' for beacons\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"Geometry details of a beacon\");\nconst RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the beacon\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uid: z.string().describe(\"UID for Eddystone type\").nullable().optional(),\n type: z.string().describe(\"Type of beacon (ibeacon or eddystone)\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon type\").nullable().optional(),\n major: z.string().describe(\"Major ID for iBeacon type\").nullable().optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable().optional(),\n geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),\n instance: z.string().describe(\"Instance for Eddystone type\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable().optional(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar beacon\");\nexport const RadarUpsertBeaconByTagOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon\");\n\nexport const radarUpsertBeaconByTag: AppAction<\n typeof RadarUpsertBeaconByTagInput,\n typeof RadarUpsertBeaconByTagOutput,\n typeof radar.credential\n> = action(\"RADAR_UPSERT_BEACON_BY_TAG\", {\n slug: \"radar-upsert-beacon-by-tag\",\n name: \"Upsert Beacon by Tag\",\n description: \"Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.\",\n input: RadarUpsertBeaconByTagInput,\n output: RadarUpsertBeaconByTagOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACzH,MAAM,EAAE,KAAK,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,SAAS,8CAA8C;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS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