@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":"upsert-geofence-by-id.cjs","names":["z","action"],"sources":["../../src/actions/upsert-geofence-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertGeofenceByIdInput = z.object({\n id: z.string().describe(\"Radar internal geofence _id to create or update\"),\n tag: z.string().describe(\"Group identifier for the geofence\").optional(),\n type: z.enum([\"circle\", \"polygon\", \"isochrone\"]).describe(\"Geofence geometry type: circle, polygon, or isochrone\"),\n radius: z.number().describe(\"Distance in meters (required for circle and isochrone types)\").optional(),\n enabled: z.boolean().describe(\"Boolean to enable/disable event generation for this geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (up to 16 keys)\").optional(),\n externalId: z.string().describe(\"External database reference\").optional(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.number()))]),\n description: z.string().describe(\"A display name for the geofence (required by API)\"),\n}).describe(\"Request model for upserting a geofence by its Radar internal _id.\");\nconst RadarUpsertGeofenceById_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by Radar API\").nullable(),\n}).passthrough().describe(\"Response metadata from Radar API.\");\nconst RadarUpsertGeofenceById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'\").nullable(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.array(z.number())))]),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofenceById_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence shape\").nullable(),\n enabled: z.boolean().describe(\"Whether the geofence is enabled\").nullable().optional(),\n geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable(),\n externalId: z.string().describe(\"External identifier of the geofence\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence\").nullable().optional(),\n geometryCenter: z.record(z.string(), z.unknown()).describe(\"Center point of the geofence\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters (for circles)\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceByIdOutput = z.object({\n meta: RadarUpsertGeofenceById_MetaSchema.nullable(),\n geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a geofence by ID.\");\n\nexport const radarUpsertGeofenceById = action(\"RADAR_UPSERT_GEOFENCE_BY_ID\", {\n slug: \"radar-upsert-geofence-by-id\",\n name: \"Upsert Geofence By ID\",\n description: \"Tool to create or update a geofence by Radar _id. Use when you need to upsert a geofence using its internal Radar identifier.\",\n input: RadarUpsertGeofenceByIdInput,\n output: RadarUpsertGeofenceByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-geofence-by-id.cjs","names":["z","action"],"sources":["../../src/actions/upsert-geofence-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 RadarUpsertGeofenceByIdInput = z.object({\n id: z.string().describe(\"Radar internal geofence _id to create or update\"),\n tag: z.string().describe(\"Group identifier for the geofence\").optional(),\n type: z.enum([\"circle\", \"polygon\", \"isochrone\"]).describe(\"Geofence geometry type: circle, polygon, or isochrone\"),\n radius: z.number().describe(\"Distance in meters (required for circle and isochrone types)\").optional(),\n enabled: z.boolean().describe(\"Boolean to enable/disable event generation for this geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (up to 16 keys)\").optional(),\n externalId: z.string().describe(\"External database reference\").optional(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.number()))]),\n description: z.string().describe(\"A display name for the geofence (required by API)\"),\n}).describe(\"Request model for upserting a geofence by its Radar internal _id.\");\nconst RadarUpsertGeofenceById_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by Radar API\").nullable(),\n}).passthrough().describe(\"Response metadata from Radar API.\");\nconst RadarUpsertGeofenceById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'\").nullable(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.array(z.number())))]),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofenceById_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence shape\").nullable(),\n enabled: z.boolean().describe(\"Whether the geofence is enabled\").nullable().optional(),\n geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable(),\n externalId: z.string().describe(\"External identifier of the geofence\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence\").nullable().optional(),\n geometryCenter: z.record(z.string(), z.unknown()).describe(\"Center point of the geofence\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters (for circles)\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceByIdOutput = z.object({\n meta: RadarUpsertGeofenceById_MetaSchema.nullable(),\n geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a geofence by ID.\");\n\nexport const radarUpsertGeofenceById: AppAction<\n typeof RadarUpsertGeofenceByIdInput,\n typeof RadarUpsertGeofenceByIdOutput,\n typeof radar.credential\n> = action(\"RADAR_UPSERT_GEOFENCE_BY_ID\", {\n slug: \"radar-upsert-geofence-by-id\",\n name: \"Upsert Geofence By ID\",\n description: \"Tool to create or update a geofence by Radar _id. Use when you need to upsert a geofence using its internal Radar identifier.\",\n input: RadarUpsertGeofenceByIdInput,\n output: RadarUpsertGeofenceByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAW;CAAW,CAAC,CAAC,CAAC,SAAS,uDAAuD;CACjH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACrG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;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,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,mCAAmC,SAAS;CAClD,UAAU,uCAAuC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,0BAITC,eAAAA,OAAO,+BAA+B;CACxC,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-geofence-by-id.d.ts
|
|
@@ -38,29 +40,7 @@ declare const RadarUpsertGeofenceByIdOutput: z.ZodObject<{
|
|
|
38
40
|
geometryRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
41
|
}, z.core.$loose>>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const radarUpsertGeofenceById:
|
|
42
|
-
id: string;
|
|
43
|
-
type: "circle" | "polygon" | "isochrone";
|
|
44
|
-
coordinates: number[] | number[][];
|
|
45
|
-
description: string;
|
|
46
|
-
tag?: string | undefined;
|
|
47
|
-
radius?: number | undefined;
|
|
48
|
-
enabled?: boolean | undefined;
|
|
49
|
-
metadata?: Record<string, unknown> | undefined;
|
|
50
|
-
externalId?: string | undefined;
|
|
51
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
52
|
-
connectionId: z.ZodString;
|
|
53
|
-
entityId: z.ZodString;
|
|
54
|
-
instanceId: z.ZodString;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
generic_api_key: z.ZodString;
|
|
57
|
-
}, z.core.$strip>>]>, 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>>]>;
|
|
43
|
+
declare const radarUpsertGeofenceById: AppAction<typeof RadarUpsertGeofenceByIdInput, typeof RadarUpsertGeofenceByIdOutput, typeof radar.credential>;
|
|
64
44
|
//#endregion
|
|
65
45
|
export { radarUpsertGeofenceById };
|
|
66
46
|
//# sourceMappingURL=upsert-geofence-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-geofence-by-id.d.cts","names":[],"sources":["../../src/actions/upsert-geofence-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-geofence-by-id.d.cts","names":[],"sources":["../../src/actions/upsert-geofence-by-id.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { radar } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/upsert-geofence-by-id.d.ts
|
|
@@ -38,29 +40,7 @@ declare const RadarUpsertGeofenceByIdOutput: z.ZodObject<{
|
|
|
38
40
|
geometryRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
41
|
}, z.core.$loose>>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const radarUpsertGeofenceById:
|
|
42
|
-
id: string;
|
|
43
|
-
type: "circle" | "polygon" | "isochrone";
|
|
44
|
-
coordinates: number[] | number[][];
|
|
45
|
-
description: string;
|
|
46
|
-
tag?: string | undefined;
|
|
47
|
-
radius?: number | undefined;
|
|
48
|
-
enabled?: boolean | undefined;
|
|
49
|
-
metadata?: Record<string, unknown> | undefined;
|
|
50
|
-
externalId?: string | undefined;
|
|
51
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
52
|
-
connectionId: z.ZodString;
|
|
53
|
-
entityId: z.ZodString;
|
|
54
|
-
instanceId: z.ZodString;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
generic_api_key: z.ZodString;
|
|
57
|
-
}, z.core.$strip>>]>, 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>>]>;
|
|
43
|
+
declare const radarUpsertGeofenceById: AppAction<typeof RadarUpsertGeofenceByIdInput, typeof RadarUpsertGeofenceByIdOutput, typeof radar.credential>;
|
|
64
44
|
//#endregion
|
|
65
45
|
export { radarUpsertGeofenceById };
|
|
66
46
|
//# sourceMappingURL=upsert-geofence-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-geofence-by-id.d.mts","names":[],"sources":["../../src/actions/upsert-geofence-by-id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-geofence-by-id.d.mts","names":[],"sources":["../../src/actions/upsert-geofence-by-id.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAK7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-geofence-by-id.mjs","names":[],"sources":["../../src/actions/upsert-geofence-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertGeofenceByIdInput = z.object({\n id: z.string().describe(\"Radar internal geofence _id to create or update\"),\n tag: z.string().describe(\"Group identifier for the geofence\").optional(),\n type: z.enum([\"circle\", \"polygon\", \"isochrone\"]).describe(\"Geofence geometry type: circle, polygon, or isochrone\"),\n radius: z.number().describe(\"Distance in meters (required for circle and isochrone types)\").optional(),\n enabled: z.boolean().describe(\"Boolean to enable/disable event generation for this geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (up to 16 keys)\").optional(),\n externalId: z.string().describe(\"External database reference\").optional(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.number()))]),\n description: z.string().describe(\"A display name for the geofence (required by API)\"),\n}).describe(\"Request model for upserting a geofence by its Radar internal _id.\");\nconst RadarUpsertGeofenceById_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by Radar API\").nullable(),\n}).passthrough().describe(\"Response metadata from Radar API.\");\nconst RadarUpsertGeofenceById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'\").nullable(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.array(z.number())))]),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofenceById_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence shape\").nullable(),\n enabled: z.boolean().describe(\"Whether the geofence is enabled\").nullable().optional(),\n geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable(),\n externalId: z.string().describe(\"External identifier of the geofence\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence\").nullable().optional(),\n geometryCenter: z.record(z.string(), z.unknown()).describe(\"Center point of the geofence\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters (for circles)\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceByIdOutput = z.object({\n meta: RadarUpsertGeofenceById_MetaSchema.nullable(),\n geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a geofence by ID.\");\n\nexport const radarUpsertGeofenceById = action(\"RADAR_UPSERT_GEOFENCE_BY_ID\", {\n slug: \"radar-upsert-geofence-by-id\",\n name: \"Upsert Geofence By ID\",\n description: \"Tool to create or update a geofence by Radar _id. Use when you need to upsert a geofence using its internal Radar identifier.\",\n input: RadarUpsertGeofenceByIdInput,\n output: RadarUpsertGeofenceByIdOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-geofence-by-id.mjs","names":[],"sources":["../../src/actions/upsert-geofence-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 RadarUpsertGeofenceByIdInput = z.object({\n id: z.string().describe(\"Radar internal geofence _id to create or update\"),\n tag: z.string().describe(\"Group identifier for the geofence\").optional(),\n type: z.enum([\"circle\", \"polygon\", \"isochrone\"]).describe(\"Geofence geometry type: circle, polygon, or isochrone\"),\n radius: z.number().describe(\"Distance in meters (required for circle and isochrone types)\").optional(),\n enabled: z.boolean().describe(\"Boolean to enable/disable event generation for this geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs (up to 16 keys)\").optional(),\n externalId: z.string().describe(\"External database reference\").optional(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.number()))]),\n description: z.string().describe(\"A display name for the geofence (required by API)\"),\n}).describe(\"Request model for upserting a geofence by its Radar internal _id.\");\nconst RadarUpsertGeofenceById_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by Radar API\").nullable(),\n}).passthrough().describe(\"Response metadata from Radar API.\");\nconst RadarUpsertGeofenceById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'\").nullable(),\n coordinates: z.union([z.array(z.number()), z.array(z.array(z.array(z.number())))]),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofenceById_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence\").nullable(),\n tag: z.string().describe(\"Tag associated with the geofence\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence shape\").nullable(),\n enabled: z.boolean().describe(\"Whether the geofence is enabled\").nullable().optional(),\n geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable(),\n externalId: z.string().describe(\"External identifier of the geofence\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence\").nullable().optional(),\n geometryCenter: z.record(z.string(), z.unknown()).describe(\"Center point of the geofence\").nullable().optional(),\n geometryRadius: z.number().describe(\"Radius of the geofence in meters (for circles)\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceByIdOutput = z.object({\n meta: RadarUpsertGeofenceById_MetaSchema.nullable(),\n geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a geofence by ID.\");\n\nexport const radarUpsertGeofenceById: AppAction<\n typeof RadarUpsertGeofenceByIdInput,\n typeof RadarUpsertGeofenceByIdOutput,\n typeof radar.credential\n> = action(\"RADAR_UPSERT_GEOFENCE_BY_ID\", {\n slug: \"radar-upsert-geofence-by-id\",\n name: \"Upsert Geofence By ID\",\n description: \"Tool to create or update a geofence by Radar _id. Use when you need to upsert a geofence using its internal Radar identifier.\",\n input: RadarUpsertGeofenceByIdInput,\n output: RadarUpsertGeofenceByIdOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,KAAK;EAAC;EAAU;EAAW;CAAW,CAAC,CAAC,CAAC,SAAS,uDAAuD;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACrG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,UAAU,EAAE,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AAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,0BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd2C,EAAE,OAAO;EACpD,MAAM,mCAAmC,SAAS;EAClD,UAAU,uCAAuC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-geofence.cjs","names":["z","action"],"sources":["../../src/actions/upsert-geofence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertGeofenceInput = z.object({\n tag: z.string().describe(\"Tag of the geofence to create or update\"),\n type: z.enum([\"circle\", \"polygon\"]).describe(\"Shape type of the geofence\"),\n radius: z.number().describe(\"Radius in meters defining a circle. Required when type='circle'.\").optional(),\n geometry: z.record(z.string(), z.unknown()).describe(\"GeoJSON geometry object for the geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs attached to the geofence\").optional(),\n externalId: z.string().describe(\"External identifier of the geofence\"),\n coordinates: z.array(z.array(z.number())).describe(\"Array of [longitude, latitude] pairs defining a polygon. Required when type='polygon'.\").optional(),\n description: z.string().describe(\"Human-readable description of the geofence (required by the API)\"),\n}).describe(\"Request model for UPSERT_GEOFENCE.\");\nconst RadarUpsertGeofence_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates of the geofence geometry.\"),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofence_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence shape.\").nullable(),\n geometry: RadarUpsertGeofence_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofence: RadarUpsertGeofence_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for UPSERT_GEOFENCE.\");\n\nexport const radarUpsertGeofence = action(\"RADAR_UPSERT_GEOFENCE\", {\n slug: \"radar-upsert-geofence\",\n name: \"Upsert Geofence\",\n description: \"Tool to create or update a geofence by tag and externalId. Use when ensuring a geofence exists or is updated based on identifiers.\",\n input: RadarUpsertGeofenceInput,\n output: RadarUpsertGeofenceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-geofence.cjs","names":["z","action"],"sources":["../../src/actions/upsert-geofence.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarUpsertGeofenceInput = z.object({\n tag: z.string().describe(\"Tag of the geofence to create or update\"),\n type: z.enum([\"circle\", \"polygon\"]).describe(\"Shape type of the geofence\"),\n radius: z.number().describe(\"Radius in meters defining a circle. Required when type='circle'.\").optional(),\n geometry: z.record(z.string(), z.unknown()).describe(\"GeoJSON geometry object for the geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs attached to the geofence\").optional(),\n externalId: z.string().describe(\"External identifier of the geofence\"),\n coordinates: z.array(z.array(z.number())).describe(\"Array of [longitude, latitude] pairs defining a polygon. Required when type='polygon'.\").optional(),\n description: z.string().describe(\"Human-readable description of the geofence (required by the API)\"),\n}).describe(\"Request model for UPSERT_GEOFENCE.\");\nconst RadarUpsertGeofence_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates of the geofence geometry.\"),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofence_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence shape.\").nullable(),\n geometry: RadarUpsertGeofence_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofence: RadarUpsertGeofence_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for UPSERT_GEOFENCE.\");\n\nexport const radarUpsertGeofence: AppAction<\n typeof RadarUpsertGeofenceInput,\n typeof RadarUpsertGeofenceOutput,\n typeof radar.credential\n> = action(\"RADAR_UPSERT_GEOFENCE\", {\n slug: \"radar-upsert-geofence\",\n name: \"Upsert Geofence\",\n description: \"Tool to create or update a geofence by tag and externalId. Use when ensuring a geofence exists or is updated based on identifiers.\",\n input: RadarUpsertGeofenceInput,\n output: RadarUpsertGeofenceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,MAAMA,IAAAA,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,4BAA4B;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACzG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACrE,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wF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,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB;CACrE,UAAU,mCAAmC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,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-geofence.d.ts
|
|
@@ -31,28 +33,7 @@ declare const RadarUpsertGeofenceOutput: z.ZodObject<{
|
|
|
31
33
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
34
|
}, z.core.$loose>>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const radarUpsertGeofence:
|
|
35
|
-
tag: string;
|
|
36
|
-
type: "circle" | "polygon";
|
|
37
|
-
externalId: string;
|
|
38
|
-
description: string;
|
|
39
|
-
radius?: number | undefined;
|
|
40
|
-
geometry?: Record<string, unknown> | undefined;
|
|
41
|
-
metadata?: Record<string, unknown> | undefined;
|
|
42
|
-
coordinates?: number[][] | undefined;
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
generic_api_key: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>;
|
|
36
|
+
declare const radarUpsertGeofence: AppAction<typeof RadarUpsertGeofenceInput, typeof RadarUpsertGeofenceOutput, typeof radar.credential>;
|
|
56
37
|
//#endregion
|
|
57
38
|
export { radarUpsertGeofence };
|
|
58
39
|
//# sourceMappingURL=upsert-geofence.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-geofence.d.cts","names":[],"sources":["../../src/actions/upsert-geofence.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-geofence.d.cts","names":[],"sources":["../../src/actions/upsert-geofence.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAyBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { radar } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/upsert-geofence.d.ts
|
|
@@ -31,28 +33,7 @@ declare const RadarUpsertGeofenceOutput: z.ZodObject<{
|
|
|
31
33
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
34
|
}, z.core.$loose>>;
|
|
33
35
|
}, z.core.$loose>;
|
|
34
|
-
declare const radarUpsertGeofence:
|
|
35
|
-
tag: string;
|
|
36
|
-
type: "circle" | "polygon";
|
|
37
|
-
externalId: string;
|
|
38
|
-
description: string;
|
|
39
|
-
radius?: number | undefined;
|
|
40
|
-
geometry?: Record<string, unknown> | undefined;
|
|
41
|
-
metadata?: Record<string, unknown> | undefined;
|
|
42
|
-
coordinates?: number[][] | undefined;
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
generic_api_key: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"radar", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>;
|
|
36
|
+
declare const radarUpsertGeofence: AppAction<typeof RadarUpsertGeofenceInput, typeof RadarUpsertGeofenceOutput, typeof radar.credential>;
|
|
56
37
|
//#endregion
|
|
57
38
|
export { radarUpsertGeofence };
|
|
58
39
|
//# sourceMappingURL=upsert-geofence.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-geofence.d.mts","names":[],"sources":["../../src/actions/upsert-geofence.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-geofence.d.mts","names":[],"sources":["../../src/actions/upsert-geofence.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAyBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-geofence.mjs","names":[],"sources":["../../src/actions/upsert-geofence.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertGeofenceInput = z.object({\n tag: z.string().describe(\"Tag of the geofence to create or update\"),\n type: z.enum([\"circle\", \"polygon\"]).describe(\"Shape type of the geofence\"),\n radius: z.number().describe(\"Radius in meters defining a circle. Required when type='circle'.\").optional(),\n geometry: z.record(z.string(), z.unknown()).describe(\"GeoJSON geometry object for the geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs attached to the geofence\").optional(),\n externalId: z.string().describe(\"External identifier of the geofence\"),\n coordinates: z.array(z.array(z.number())).describe(\"Array of [longitude, latitude] pairs defining a polygon. Required when type='polygon'.\").optional(),\n description: z.string().describe(\"Human-readable description of the geofence (required by the API)\"),\n}).describe(\"Request model for UPSERT_GEOFENCE.\");\nconst RadarUpsertGeofence_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates of the geofence geometry.\"),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofence_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence shape.\").nullable(),\n geometry: RadarUpsertGeofence_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofence: RadarUpsertGeofence_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for UPSERT_GEOFENCE.\");\n\nexport const radarUpsertGeofence = action(\"RADAR_UPSERT_GEOFENCE\", {\n slug: \"radar-upsert-geofence\",\n name: \"Upsert Geofence\",\n description: \"Tool to create or update a geofence by tag and externalId. Use when ensuring a geofence exists or is updated based on identifiers.\",\n input: RadarUpsertGeofenceInput,\n output: RadarUpsertGeofenceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"upsert-geofence.mjs","names":[],"sources":["../../src/actions/upsert-geofence.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { radar } from \"../app\";\n\nexport const RadarUpsertGeofenceInput = z.object({\n tag: z.string().describe(\"Tag of the geofence to create or update\"),\n type: z.enum([\"circle\", \"polygon\"]).describe(\"Shape type of the geofence\"),\n radius: z.number().describe(\"Radius in meters defining a circle. Required when type='circle'.\").optional(),\n geometry: z.record(z.string(), z.unknown()).describe(\"GeoJSON geometry object for the geofence\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs attached to the geofence\").optional(),\n externalId: z.string().describe(\"External identifier of the geofence\"),\n coordinates: z.array(z.array(z.number())).describe(\"Array of [longitude, latitude] pairs defining a polygon. Required when type='polygon'.\").optional(),\n description: z.string().describe(\"Human-readable description of the geofence (required by the API)\"),\n}).describe(\"Request model for UPSERT_GEOFENCE.\");\nconst RadarUpsertGeofence_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, e.g., 'Point' or 'Polygon'.\").nullable(),\n coordinates: z.array(z.unknown()).describe(\"Coordinates of the geofence geometry.\"),\n}).passthrough().describe(\"Geometry details of a geofence.\");\nconst RadarUpsertGeofence_GeofenceSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the geofence.\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the geofence.\").nullable().optional(),\n type: z.string().describe(\"Type of the geofence shape.\").nullable(),\n geometry: RadarUpsertGeofence_GeometrySchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the geofence.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the geofence.\").nullable().optional(),\n description: z.string().describe(\"Description of the geofence.\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar geofence.\");\nexport const RadarUpsertGeofenceOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata.\"),\n geofence: RadarUpsertGeofence_GeofenceSchema.nullable(),\n}).passthrough().describe(\"Response model for UPSERT_GEOFENCE.\");\n\nexport const radarUpsertGeofence: AppAction<\n typeof RadarUpsertGeofenceInput,\n typeof RadarUpsertGeofenceOutput,\n typeof radar.credential\n> = action(\"RADAR_UPSERT_GEOFENCE\", {\n slug: \"radar-upsert-geofence\",\n name: \"Upsert Geofence\",\n description: \"Tool to create or update a geofence by tag and externalId. Use when ensuring a geofence exists or is updated based on identifiers.\",\n input: RadarUpsertGeofenceInput,\n output: RadarUpsertGeofenceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,MAAM,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,CAAC,SAAS,4BAA4B;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACzG,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;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AC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAM/D,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB;EACrE,UAAU,mCAAmC,SAAS;CACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const radar = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "radar",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.radar = radar;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const radar = defineApp({\n slug: \"radar\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const radar: KeystrokeApp<\"radar\", typeof credential> = defineApp({\n slug: \"radar\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,SAAA,GAAA,2BAAA,UAAA,CAA4D;CACvE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const radar: KeystrokeApp<"radar", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { radar };
|
|
13
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,KAAA,EAAO,YAAY,iBAAiB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const radar: KeystrokeApp<"radar", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { radar };
|
|
13
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,KAAA,EAAO,YAAY,iBAAiB,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const radar = defineApp({\n slug: \"radar\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const radar: KeystrokeApp<\"radar\", typeof credential> = defineApp({\n slug: \"radar\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,QAAkD,UAAU;CACvE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { radar } from "./app.cjs";
|
|
1
2
|
import { radarAutocompleteAddressOrPlace } from "./actions/autocomplete-address-or-place.cjs";
|
|
2
3
|
import { radarCreateBeacon } from "./actions/create-beacon.cjs";
|
|
3
4
|
import { radarCreateTrip } from "./actions/create-trip.cjs";
|
|
@@ -35,6 +36,5 @@ import { radarUpsertBeaconById } from "./actions/upsert-beacon-by-id.cjs";
|
|
|
35
36
|
import { radarUpsertBeaconByTag } from "./actions/upsert-beacon-by-tag.cjs";
|
|
36
37
|
import { radarUpsertGeofence } from "./actions/upsert-geofence.cjs";
|
|
37
38
|
import { radarUpsertGeofenceById } from "./actions/upsert-geofence-by-id.cjs";
|
|
38
|
-
import { radar } from "./app.cjs";
|
|
39
39
|
import { radarCatalog } from "./catalog.cjs";
|
|
40
40
|
export { radar, radarAutocompleteAddressOrPlace, radarCatalog, radarCreateBeacon, radarCreateTrip, radarDeleteBeacon, radarDeleteGeofence, radarDeleteGeofenceByTag, radarDeleteTrip, radarDeleteUser, radarForwardGeocode, radarGetBeacon, radarGetBeaconByTag, radarGetContextForLocation, radarGetGeofence, radarGetPlacesSettings, radarGetRouteDirections, radarGetRouteMatrix, radarGetTrip, radarGetUser, radarGetUsersInGeofence, radarIpGeocode, radarListEvents, radarListGeofences, radarListTrips, radarListUsers, radarReverseGeocode, radarRouteDistance, radarSearchGeofencesNearLocation, radarSearchPlacesNearLocation, radarSearchUsersNearLocation, radarTrackLocationUpdate, radarUpdatePlacesSettings, radarUpdateTrip, radarUpdateTripById, radarUpsertBeaconById, radarUpsertBeaconByTag, radarUpsertGeofence, radarUpsertGeofenceById };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { radar } from "./app.mjs";
|
|
1
2
|
import { radarAutocompleteAddressOrPlace } from "./actions/autocomplete-address-or-place.mjs";
|
|
2
3
|
import { radarCreateBeacon } from "./actions/create-beacon.mjs";
|
|
3
4
|
import { radarCreateTrip } from "./actions/create-trip.mjs";
|
|
@@ -35,6 +36,5 @@ import { radarUpsertBeaconById } from "./actions/upsert-beacon-by-id.mjs";
|
|
|
35
36
|
import { radarUpsertBeaconByTag } from "./actions/upsert-beacon-by-tag.mjs";
|
|
36
37
|
import { radarUpsertGeofence } from "./actions/upsert-geofence.mjs";
|
|
37
38
|
import { radarUpsertGeofenceById } from "./actions/upsert-geofence-by-id.mjs";
|
|
38
|
-
import { radar } from "./app.mjs";
|
|
39
39
|
import { radarCatalog } from "./catalog.mjs";
|
|
40
40
|
export { radar, radarAutocompleteAddressOrPlace, radarCatalog, radarCreateBeacon, radarCreateTrip, radarDeleteBeacon, radarDeleteGeofence, radarDeleteGeofenceByTag, radarDeleteTrip, radarDeleteUser, radarForwardGeocode, radarGetBeacon, radarGetBeaconByTag, radarGetContextForLocation, radarGetGeofence, radarGetPlacesSettings, radarGetRouteDirections, radarGetRouteMatrix, radarGetTrip, radarGetUser, radarGetUsersInGeofence, radarIpGeocode, radarListEvents, radarListGeofences, radarListTrips, radarListUsers, radarReverseGeocode, radarRouteDistance, radarSearchGeofencesNearLocation, radarSearchPlacesNearLocation, radarSearchUsersNearLocation, radarTrackLocationUpdate, radarUpdatePlacesSettings, radarUpdateTrip, radarUpdateTripById, radarUpsertBeaconById, radarUpsertBeaconByTag, radarUpsertGeofence, radarUpsertGeofenceById };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/radar",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|