@keystrokehq/radar 0.1.4 → 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 -6
- package/dist/actions/autocomplete-address-or-place.d.cts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.mts +3 -6
- 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 -12
- package/dist/actions/create-beacon.d.cts.map +1 -1
- package/dist/actions/create-beacon.d.mts +3 -12
- 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 -18
- package/dist/actions/create-trip.d.cts.map +1 -1
- package/dist/actions/create-trip.d.mts +3 -18
- 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 -3
- package/dist/actions/delete-beacon.d.cts.map +1 -1
- package/dist/actions/delete-beacon.d.mts +3 -3
- 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 -4
- package/dist/actions/delete-geofence-by-tag.d.cts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.mts +3 -4
- 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 -3
- package/dist/actions/delete-geofence.d.cts.map +1 -1
- package/dist/actions/delete-geofence.d.mts +3 -3
- 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 -3
- package/dist/actions/delete-trip.d.cts.map +1 -1
- package/dist/actions/delete-trip.d.mts +3 -3
- 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 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +3 -3
- 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 -6
- package/dist/actions/forward-geocode.d.cts.map +1 -1
- package/dist/actions/forward-geocode.d.mts +3 -6
- 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 -4
- package/dist/actions/get-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.mts +3 -4
- 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 -3
- package/dist/actions/get-beacon.d.cts.map +1 -1
- package/dist/actions/get-beacon.d.mts +3 -3
- 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 -4
- package/dist/actions/get-context-for-location.d.cts.map +1 -1
- package/dist/actions/get-context-for-location.d.mts +3 -4
- 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 -5
- package/dist/actions/get-geofence.d.cts.map +1 -1
- package/dist/actions/get-geofence.d.mts +3 -5
- 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 -1
- package/dist/actions/get-places-settings.d.cts.map +1 -1
- package/dist/actions/get-places-settings.d.mts +3 -1
- 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 +3 -11
- package/dist/actions/get-route-directions.d.cts.map +1 -1
- package/dist/actions/get-route-directions.d.mts +3 -11
- 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 -6
- package/dist/actions/get-route-matrix.d.cts.map +1 -1
- package/dist/actions/get-route-matrix.d.mts +3 -6
- 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 -4
- package/dist/actions/get-trip.d.cts.map +1 -1
- package/dist/actions/get-trip.d.mts +3 -4
- 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 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +3 -3
- 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 -6
- package/dist/actions/get-users-in-geofence.d.cts.map +1 -1
- package/dist/actions/get-users-in-geofence.d.mts +3 -6
- 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 -3
- package/dist/actions/ip-geocode.d.cts.map +1 -1
- package/dist/actions/ip-geocode.d.mts +3 -3
- 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 -10
- package/dist/actions/list-events.d.cts.map +1 -1
- package/dist/actions/list-events.d.mts +3 -10
- 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 -11
- package/dist/actions/list-geofences.d.cts.map +1 -1
- package/dist/actions/list-geofences.d.mts +3 -11
- 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 -8
- package/dist/actions/list-trips.d.cts.map +1 -1
- package/dist/actions/list-trips.d.mts +3 -8
- 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 -9
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -9
- 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 -6
- package/dist/actions/reverse-geocode.d.cts.map +1 -1
- package/dist/actions/reverse-geocode.d.mts +3 -6
- 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 +3 -8
- package/dist/actions/route-distance.d.cts.map +1 -1
- package/dist/actions/route-distance.d.mts +3 -8
- 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 -7
- package/dist/actions/search-geofences-near-location.d.cts.map +1 -1
- package/dist/actions/search-geofences-near-location.d.mts +3 -7
- 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 -11
- package/dist/actions/search-places-near-location.d.cts.map +1 -1
- package/dist/actions/search-places-near-location.d.mts +3 -11
- 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 -6
- package/dist/actions/search-users-near-location.d.cts.map +1 -1
- package/dist/actions/search-users-near-location.d.mts +3 -6
- 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 -19
- package/dist/actions/track-location-update.d.cts.map +1 -1
- package/dist/actions/track-location-update.d.mts +3 -19
- 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 -5
- package/dist/actions/update-places-settings.d.cts.map +1 -1
- package/dist/actions/update-places-settings.d.mts +3 -5
- 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 -6
- package/dist/actions/update-trip-by-id.d.cts.map +1 -1
- package/dist/actions/update-trip-by-id.d.mts +3 -6
- 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 -20
- package/dist/actions/update-trip.d.cts.map +1 -1
- package/dist/actions/update-trip.d.mts +3 -20
- 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 -12
- package/dist/actions/upsert-beacon-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.mts +3 -12
- 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 -14
- package/dist/actions/upsert-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.mts +3 -14
- 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 -11
- package/dist/actions/upsert-geofence-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.mts +3 -11
- 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 -10
- package/dist/actions/upsert-geofence.d.cts.map +1 -1
- package/dist/actions/upsert-geofence.d.mts +3 -10
- 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 +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- 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
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["radar","executeRadarTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { radar } from \"./app\";\nimport { executeRadarTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["radar","executeRadarTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { radar } from \"./app\";\nimport { executeRadarTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof radar.credential> {\n return radar.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRadarTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { radar } from \"./app\";\nimport { executeRadarTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { radar } from \"./app\";\nimport { executeRadarTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof radar.credential> {\n return radar.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRadarTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-address-or-place.cjs","names":["z","action"],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarAutocompleteAddressOrPlaceInput = z.object({\n near: z.string().describe(\"Coordinate bias as 'lat,lng'\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-100)\").optional(),\n query: z.string().describe(\"Partial address or place to autocomplete\"),\n layers: z.array(z.enum([\"address\", \"place\", \"locality\", \"region\", \"country\"])).describe(\"Result types to return (e.g., ['address','place'])\").optional(),\n}).describe(\"Parameters to autocomplete partial addresses and place names.\");\nconst RadarAutocompleteAddressOrPlace_PlaceLocationSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the place location\").nullable(),\n longitude: z.number().describe(\"Longitude of the place location\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable().optional(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place, if available\").nullable().optional(),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_PlaceSchema = z.object({\n name: z.string().describe(\"Place name\").nullable(),\n location: RadarAutocompleteAddressOrPlace_PlaceLocationSchema.nullable(),\n categories: z.array(z.string()).describe(\"List of place categories\"),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_AddressSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable(),\n latitude: z.number().describe(\"Latitude of the address\").nullable(),\n longitude: z.number().describe(\"Longitude of the address\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Full formatted address\").nullable(),\n}).passthrough();\nexport const RadarAutocompleteAddressOrPlaceOutput = z.object({\n places: z.array(RadarAutocompleteAddressOrPlace_PlaceSchema).describe(\"List of place suggestions, if requested\").nullable().optional(),\n addresses: z.array(RadarAutocompleteAddressOrPlace_AddressSchema).describe(\"List of address suggestions\"),\n}).passthrough().describe(\"Response containing address and place suggestions.\");\n\nexport const radarAutocompleteAddressOrPlace = action(\"RADAR_AUTOCOMPLETE_ADDRESS_OR_PLACE\", {\n slug: \"radar-autocomplete-address-or-place\",\n name: \"Autocomplete Address or Place\",\n description: \"Tool to autocomplete partial addresses and place names based on relevance and proximity. Use after a user inputs a partial address/place to get suggestions, optionally biased by location.\",\n input: RadarAutocompleteAddressOrPlaceInput,\n output: RadarAutocompleteAddressOrPlaceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete-address-or-place.cjs","names":["z","action"],"sources":["../../src/actions/autocomplete-address-or-place.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 RadarAutocompleteAddressOrPlaceInput = z.object({\n near: z.string().describe(\"Coordinate bias as 'lat,lng'\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-100)\").optional(),\n query: z.string().describe(\"Partial address or place to autocomplete\"),\n layers: z.array(z.enum([\"address\", \"place\", \"locality\", \"region\", \"country\"])).describe(\"Result types to return (e.g., ['address','place'])\").optional(),\n}).describe(\"Parameters to autocomplete partial addresses and place names.\");\nconst RadarAutocompleteAddressOrPlace_PlaceLocationSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the place location\").nullable(),\n longitude: z.number().describe(\"Longitude of the place location\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable().optional(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place, if available\").nullable().optional(),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_PlaceSchema = z.object({\n name: z.string().describe(\"Place name\").nullable(),\n location: RadarAutocompleteAddressOrPlace_PlaceLocationSchema.nullable(),\n categories: z.array(z.string()).describe(\"List of place categories\"),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_AddressSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable(),\n latitude: z.number().describe(\"Latitude of the address\").nullable(),\n longitude: z.number().describe(\"Longitude of the address\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Full formatted address\").nullable(),\n}).passthrough();\nexport const RadarAutocompleteAddressOrPlaceOutput = z.object({\n places: z.array(RadarAutocompleteAddressOrPlace_PlaceSchema).describe(\"List of place suggestions, if requested\").nullable().optional(),\n addresses: z.array(RadarAutocompleteAddressOrPlace_AddressSchema).describe(\"List of address suggestions\"),\n}).passthrough().describe(\"Response containing address and place suggestions.\");\n\nexport const radarAutocompleteAddressOrPlace: AppAction<\n typeof RadarAutocompleteAddressOrPlaceInput,\n typeof RadarAutocompleteAddressOrPlaceOutput,\n typeof radar.credential\n> = action(\"RADAR_AUTOCOMPLETE_ADDRESS_OR_PLACE\", {\n slug: \"radar-autocomplete-address-or-place\",\n name: \"Autocomplete Address or Place\",\n description: \"Tool to autocomplete partial addresses and place names based on relevance and proximity. Use after a user inputs a partial address/place to get suggestions, optionally biased by location.\",\n input: RadarAutocompleteAddressOrPlaceInput,\n output: RadarAutocompleteAddressOrPlaceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACrE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAS;EAAY;EAAU;CAAS,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,WAAWA,IAA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D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACrE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,WAAWA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6BAA6B;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,kCAITC,eAAAA,OAAO,uCAAuC;CAChD,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/autocomplete-address-or-place.d.ts
|
|
@@ -45,12 +47,7 @@ declare const RadarAutocompleteAddressOrPlaceOutput: z.ZodObject<{
|
|
|
45
47
|
formattedAddress: z.ZodNullable<z.ZodString>;
|
|
46
48
|
}, z.core.$loose>>;
|
|
47
49
|
}, z.core.$loose>;
|
|
48
|
-
declare const radarAutocompleteAddressOrPlace:
|
|
49
|
-
query: string;
|
|
50
|
-
near?: string | undefined;
|
|
51
|
-
limit?: number | undefined;
|
|
52
|
-
layers?: ("address" | "place" | "locality" | "region" | "country")[] | undefined;
|
|
53
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
|
+
declare const radarAutocompleteAddressOrPlace: AppAction<typeof RadarAutocompleteAddressOrPlaceInput, typeof RadarAutocompleteAddressOrPlaceOutput, typeof radar.credential>;
|
|
54
51
|
//#endregion
|
|
55
52
|
export { radarAutocompleteAddressOrPlace };
|
|
56
53
|
//# sourceMappingURL=autocomplete-address-or-place.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-address-or-place.d.cts","names":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete-address-or-place.d.cts","names":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAqCpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,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/autocomplete-address-or-place.d.ts
|
|
@@ -45,12 +47,7 @@ declare const RadarAutocompleteAddressOrPlaceOutput: z.ZodObject<{
|
|
|
45
47
|
formattedAddress: z.ZodNullable<z.ZodString>;
|
|
46
48
|
}, z.core.$loose>>;
|
|
47
49
|
}, z.core.$loose>;
|
|
48
|
-
declare const radarAutocompleteAddressOrPlace:
|
|
49
|
-
query: string;
|
|
50
|
-
near?: string | undefined;
|
|
51
|
-
limit?: number | undefined;
|
|
52
|
-
layers?: ("address" | "place" | "locality" | "region" | "country")[] | undefined;
|
|
53
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
|
+
declare const radarAutocompleteAddressOrPlace: AppAction<typeof RadarAutocompleteAddressOrPlaceInput, typeof RadarAutocompleteAddressOrPlaceOutput, typeof radar.credential>;
|
|
54
51
|
//#endregion
|
|
55
52
|
export { radarAutocompleteAddressOrPlace };
|
|
56
53
|
//# sourceMappingURL=autocomplete-address-or-place.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-address-or-place.d.mts","names":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete-address-or-place.d.mts","names":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAqCpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-address-or-place.mjs","names":[],"sources":["../../src/actions/autocomplete-address-or-place.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarAutocompleteAddressOrPlaceInput = z.object({\n near: z.string().describe(\"Coordinate bias as 'lat,lng'\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-100)\").optional(),\n query: z.string().describe(\"Partial address or place to autocomplete\"),\n layers: z.array(z.enum([\"address\", \"place\", \"locality\", \"region\", \"country\"])).describe(\"Result types to return (e.g., ['address','place'])\").optional(),\n}).describe(\"Parameters to autocomplete partial addresses and place names.\");\nconst RadarAutocompleteAddressOrPlace_PlaceLocationSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the place location\").nullable(),\n longitude: z.number().describe(\"Longitude of the place location\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable().optional(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place, if available\").nullable().optional(),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_PlaceSchema = z.object({\n name: z.string().describe(\"Place name\").nullable(),\n location: RadarAutocompleteAddressOrPlace_PlaceLocationSchema.nullable(),\n categories: z.array(z.string()).describe(\"List of place categories\"),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_AddressSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable(),\n latitude: z.number().describe(\"Latitude of the address\").nullable(),\n longitude: z.number().describe(\"Longitude of the address\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Full formatted address\").nullable(),\n}).passthrough();\nexport const RadarAutocompleteAddressOrPlaceOutput = z.object({\n places: z.array(RadarAutocompleteAddressOrPlace_PlaceSchema).describe(\"List of place suggestions, if requested\").nullable().optional(),\n addresses: z.array(RadarAutocompleteAddressOrPlace_AddressSchema).describe(\"List of address suggestions\"),\n}).passthrough().describe(\"Response containing address and place suggestions.\");\n\nexport const radarAutocompleteAddressOrPlace = action(\"RADAR_AUTOCOMPLETE_ADDRESS_OR_PLACE\", {\n slug: \"radar-autocomplete-address-or-place\",\n name: \"Autocomplete Address or Place\",\n description: \"Tool to autocomplete partial addresses and place names based on relevance and proximity. Use after a user inputs a partial address/place to get suggestions, optionally biased by location.\",\n input: RadarAutocompleteAddressOrPlaceInput,\n output: RadarAutocompleteAddressOrPlaceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete-address-or-place.mjs","names":[],"sources":["../../src/actions/autocomplete-address-or-place.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 RadarAutocompleteAddressOrPlaceInput = z.object({\n near: z.string().describe(\"Coordinate bias as 'lat,lng'\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-100)\").optional(),\n query: z.string().describe(\"Partial address or place to autocomplete\"),\n layers: z.array(z.enum([\"address\", \"place\", \"locality\", \"region\", \"country\"])).describe(\"Result types to return (e.g., ['address','place'])\").optional(),\n}).describe(\"Parameters to autocomplete partial addresses and place names.\");\nconst RadarAutocompleteAddressOrPlace_PlaceLocationSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the place location\").nullable(),\n longitude: z.number().describe(\"Longitude of the place location\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable().optional(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted address of the place, if available\").nullable().optional(),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_PlaceSchema = z.object({\n name: z.string().describe(\"Place name\").nullable(),\n location: RadarAutocompleteAddressOrPlace_PlaceLocationSchema.nullable(),\n categories: z.array(z.string()).describe(\"List of place categories\"),\n}).passthrough();\nconst RadarAutocompleteAddressOrPlace_AddressSchema = z.object({\n city: z.string().describe(\"City or locality\").nullable().optional(),\n state: z.string().describe(\"State, province, or region\").nullable().optional(),\n number: z.string().describe(\"Street number, if available\").nullable().optional(),\n street: z.string().describe(\"Street name, if available\").nullable().optional(),\n country: z.string().describe(\"Country name\").nullable(),\n latitude: z.number().describe(\"Latitude of the address\").nullable(),\n longitude: z.number().describe(\"Longitude of the address\").nullable(),\n postalCode: z.string().describe(\"Postal code\").nullable().optional(),\n countryCode: z.string().describe(\"Two-letter country code\").nullable(),\n neighborhood: z.string().describe(\"Neighborhood name, if available\").nullable().optional(),\n formattedAddress: z.string().describe(\"Full formatted address\").nullable(),\n}).passthrough();\nexport const RadarAutocompleteAddressOrPlaceOutput = z.object({\n places: z.array(RadarAutocompleteAddressOrPlace_PlaceSchema).describe(\"List of place suggestions, if requested\").nullable().optional(),\n addresses: z.array(RadarAutocompleteAddressOrPlace_AddressSchema).describe(\"List of address suggestions\"),\n}).passthrough().describe(\"Response containing address and place suggestions.\");\n\nexport const radarAutocompleteAddressOrPlace: AppAction<\n typeof RadarAutocompleteAddressOrPlaceInput,\n typeof RadarAutocompleteAddressOrPlaceOutput,\n typeof radar.credential\n> = action(\"RADAR_AUTOCOMPLETE_ADDRESS_OR_PLACE\", {\n slug: \"radar-autocomplete-address-or-place\",\n name: \"Autocomplete Address or Place\",\n description: \"Tool to autocomplete partial addresses and place names based on relevance and proximity. Use after a user inputs a partial address/place to get suggestions, optionally biased by location.\",\n input: RadarAutocompleteAddressOrPlace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CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,kCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdmD,EAAE,OAAO;EAC5D,QAAQ,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,WAAW,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6BAA6B;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-beacon.cjs","names":["z","action"],"sources":["../../src/actions/create-beacon.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarCreateBeaconInput = z.object({\n tag: z.string().describe(\"A group or category for the beacon (e.g., 'store-entrance', 'parking-lot')\"),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"The type of beacon technology\"),\n uuid: z.string().describe(\"For iBeacon, the UUID identifier\").optional(),\n major: z.string().describe(\"For iBeacon, the major value\").optional(),\n minor: z.string().describe(\"For iBeacon, the minor value\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled. If not specified, defaults to true.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional custom metadata key-value pairs for the beacon\").optional(),\n externalId: z.string().describe(\"An external ID for the beacon, used to reference it in your system\"),\n coordinates: z.array(z.number()).describe(\"The approximate location of the beacon in [longitude, latitude] format. Used to sync nearby beacons (within 1 kilometer) to the SDK.\"),\n description: z.string().describe(\"A description for the beacon\").optional(),\n}).describe(\"Request model for creating a new Radar beacon.\");\nconst RadarCreateBeacon_CreateBeaconMetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Metadata for the create beacon response.\");\nconst RadarCreateBeacon_GeometryObjectSchema = z.object({\n type: z.string().describe(\"Geometry type (e.g., 'Point')\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object containing coordinates.\");\nconst RadarCreateBeacon_CreatedBeaconSchema = z.object({\n _id: z.string().describe(\"Unique beacon ID assigned by Radar\").nullable(),\n tag: z.string().describe(\"Tag or group for the beacon\").nullable(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is in live mode\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.string().describe(\"Major value for iBeacon\").nullable().optional(),\n minor: z.string().describe(\"Minor value for iBeacon\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable(),\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: RadarCreateBeacon_GeometryObjectSchema.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(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar after creation.\");\nexport const RadarCreateBeaconOutput = z.object({\n meta: RadarCreateBeacon_CreateBeaconMetaSchema.nullable(),\n beacon: RadarCreateBeacon_CreatedBeaconSchema.nullable(),\n}).passthrough().describe(\"Response model for creating a beacon.\");\n\nexport const radarCreateBeacon = action(\"RADAR_CREATE_BEACON\", {\n slug: \"radar-create-beacon\",\n name: \"Create Beacon\",\n description: \"Tool to create a new beacon in Radar. Use when you need to register a physical beacon device (iBeacon or Eddystone) for location tracking.\",\n input: RadarCreateBeaconInput,\n output: RadarCreateBeaconOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-beacon.cjs","names":["z","action"],"sources":["../../src/actions/create-beacon.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 RadarCreateBeaconInput = z.object({\n tag: z.string().describe(\"A group or category for the beacon (e.g., 'store-entrance', 'parking-lot')\"),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"The type of beacon technology\"),\n uuid: z.string().describe(\"For iBeacon, the UUID identifier\").optional(),\n major: z.string().describe(\"For iBeacon, the major value\").optional(),\n minor: z.string().describe(\"For iBeacon, the minor value\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled. If not specified, defaults to true.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional custom metadata key-value pairs for the beacon\").optional(),\n externalId: z.string().describe(\"An external ID for the beacon, used to reference it in your system\"),\n coordinates: z.array(z.number()).describe(\"The approximate location of the beacon in [longitude, latitude] format. Used to sync nearby beacons (within 1 kilometer) to the SDK.\"),\n description: z.string().describe(\"A description for the beacon\").optional(),\n}).describe(\"Request model for creating a new Radar beacon.\");\nconst RadarCreateBeacon_CreateBeaconMetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Metadata for the create beacon response.\");\nconst RadarCreateBeacon_GeometryObjectSchema = z.object({\n type: z.string().describe(\"Geometry type (e.g., 'Point')\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object containing coordinates.\");\nconst RadarCreateBeacon_CreatedBeaconSchema = z.object({\n _id: z.string().describe(\"Unique beacon ID assigned by Radar\").nullable(),\n tag: z.string().describe(\"Tag or group for the beacon\").nullable(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is in live mode\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.string().describe(\"Major value for iBeacon\").nullable().optional(),\n minor: z.string().describe(\"Minor value for iBeacon\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable(),\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: RadarCreateBeacon_GeometryObjectSchema.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(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar after creation.\");\nexport const RadarCreateBeaconOutput = z.object({\n meta: RadarCreateBeacon_CreateBeaconMetaSchema.nullable(),\n beacon: RadarCreateBeacon_CreatedBeaconSchema.nullable(),\n}).passthrough().describe(\"Response model for creating a beacon.\");\n\nexport const radarCreateBeacon: AppAction<\n typeof RadarCreateBeaconInput,\n typeof RadarCreateBeaconOutput,\n typeof radar.credential\n> = action(\"RADAR_CREATE_BEACON\", {\n slug: \"radar-create-beacon\",\n name: \"Create Beacon\",\n description: \"Tool to create a new beacon in Radar. Use when you need to register a physical beacon device (iBeacon or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CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAM,yCAAyC,SAAS;CACxD,QAAQ,sCAAsC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,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/create-beacon.d.ts
|
|
@@ -45,18 +47,7 @@ declare const RadarCreateBeaconOutput: z.ZodObject<{
|
|
|
45
47
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
48
|
}, z.core.$loose>>;
|
|
47
49
|
}, z.core.$loose>;
|
|
48
|
-
declare const radarCreateBeacon:
|
|
49
|
-
tag: string;
|
|
50
|
-
type: "ibeacon" | "eddystone";
|
|
51
|
-
externalId: string;
|
|
52
|
-
coordinates: number[];
|
|
53
|
-
uuid?: string | undefined;
|
|
54
|
-
major?: string | undefined;
|
|
55
|
-
minor?: string | undefined;
|
|
56
|
-
enabled?: boolean | undefined;
|
|
57
|
-
metadata?: Record<string, unknown> | undefined;
|
|
58
|
-
description?: string | undefined;
|
|
59
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
|
+
declare const radarCreateBeacon: AppAction<typeof RadarCreateBeaconInput, typeof RadarCreateBeaconOutput, typeof radar.credential>;
|
|
60
51
|
//#endregion
|
|
61
52
|
export { radarCreateBeacon };
|
|
62
53
|
//# sourceMappingURL=create-beacon.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-beacon.d.cts","names":[],"sources":["../../src/actions/create-beacon.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-beacon.d.cts","names":[],"sources":["../../src/actions/create-beacon.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,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/create-beacon.d.ts
|
|
@@ -45,18 +47,7 @@ declare const RadarCreateBeaconOutput: z.ZodObject<{
|
|
|
45
47
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
48
|
}, z.core.$loose>>;
|
|
47
49
|
}, z.core.$loose>;
|
|
48
|
-
declare const radarCreateBeacon:
|
|
49
|
-
tag: string;
|
|
50
|
-
type: "ibeacon" | "eddystone";
|
|
51
|
-
externalId: string;
|
|
52
|
-
coordinates: number[];
|
|
53
|
-
uuid?: string | undefined;
|
|
54
|
-
major?: string | undefined;
|
|
55
|
-
minor?: string | undefined;
|
|
56
|
-
enabled?: boolean | undefined;
|
|
57
|
-
metadata?: Record<string, unknown> | undefined;
|
|
58
|
-
description?: string | undefined;
|
|
59
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
|
+
declare const radarCreateBeacon: AppAction<typeof RadarCreateBeaconInput, typeof RadarCreateBeaconOutput, typeof radar.credential>;
|
|
60
51
|
//#endregion
|
|
61
52
|
export { radarCreateBeacon };
|
|
62
53
|
//# sourceMappingURL=create-beacon.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-beacon.d.mts","names":[],"sources":["../../src/actions/create-beacon.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-beacon.d.mts","names":[],"sources":["../../src/actions/create-beacon.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAwCtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-beacon.mjs","names":[],"sources":["../../src/actions/create-beacon.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarCreateBeaconInput = z.object({\n tag: z.string().describe(\"A group or category for the beacon (e.g., 'store-entrance', 'parking-lot')\"),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"The type of beacon technology\"),\n uuid: z.string().describe(\"For iBeacon, the UUID identifier\").optional(),\n major: z.string().describe(\"For iBeacon, the major value\").optional(),\n minor: z.string().describe(\"For iBeacon, the minor value\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled. If not specified, defaults to true.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional custom metadata key-value pairs for the beacon\").optional(),\n externalId: z.string().describe(\"An external ID for the beacon, used to reference it in your system\"),\n coordinates: z.array(z.number()).describe(\"The approximate location of the beacon in [longitude, latitude] format. Used to sync nearby beacons (within 1 kilometer) to the SDK.\"),\n description: z.string().describe(\"A description for the beacon\").optional(),\n}).describe(\"Request model for creating a new Radar beacon.\");\nconst RadarCreateBeacon_CreateBeaconMetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Metadata for the create beacon response.\");\nconst RadarCreateBeacon_GeometryObjectSchema = z.object({\n type: z.string().describe(\"Geometry type (e.g., 'Point')\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object containing coordinates.\");\nconst RadarCreateBeacon_CreatedBeaconSchema = z.object({\n _id: z.string().describe(\"Unique beacon ID assigned by Radar\").nullable(),\n tag: z.string().describe(\"Tag or group for the beacon\").nullable(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is in live mode\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.string().describe(\"Major value for iBeacon\").nullable().optional(),\n minor: z.string().describe(\"Minor value for iBeacon\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable(),\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: RadarCreateBeacon_GeometryObjectSchema.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(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar after creation.\");\nexport const RadarCreateBeaconOutput = z.object({\n meta: RadarCreateBeacon_CreateBeaconMetaSchema.nullable(),\n beacon: RadarCreateBeacon_CreatedBeaconSchema.nullable(),\n}).passthrough().describe(\"Response model for creating a beacon.\");\n\nexport const radarCreateBeacon = action(\"RADAR_CREATE_BEACON\", {\n slug: \"radar-create-beacon\",\n name: \"Create Beacon\",\n description: \"Tool to create a new beacon in Radar. Use when you need to register a physical beacon device (iBeacon or Eddystone) for location tracking.\",\n input: RadarCreateBeaconInput,\n output: RadarCreateBeaconOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-beacon.mjs","names":[],"sources":["../../src/actions/create-beacon.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 RadarCreateBeaconInput = z.object({\n tag: z.string().describe(\"A group or category for the beacon (e.g., 'store-entrance', 'parking-lot')\"),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"The type of beacon technology\"),\n uuid: z.string().describe(\"For iBeacon, the UUID identifier\").optional(),\n major: z.string().describe(\"For iBeacon, the major value\").optional(),\n minor: z.string().describe(\"For iBeacon, the minor value\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled. If not specified, defaults to true.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional custom metadata key-value pairs for the beacon\").optional(),\n externalId: z.string().describe(\"An external ID for the beacon, used to reference it in your system\"),\n coordinates: z.array(z.number()).describe(\"The approximate location of the beacon in [longitude, latitude] format. Used to sync nearby beacons (within 1 kilometer) to the SDK.\"),\n description: z.string().describe(\"A description for the beacon\").optional(),\n}).describe(\"Request model for creating a new Radar beacon.\");\nconst RadarCreateBeacon_CreateBeaconMetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Metadata for the create beacon response.\");\nconst RadarCreateBeacon_GeometryObjectSchema = z.object({\n type: z.string().describe(\"Geometry type (e.g., 'Point')\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object containing coordinates.\");\nconst RadarCreateBeacon_CreatedBeaconSchema = z.object({\n _id: z.string().describe(\"Unique beacon ID assigned by Radar\").nullable(),\n tag: z.string().describe(\"Tag or group for the beacon\").nullable(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is in live mode\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.string().describe(\"Major value for iBeacon\").nullable().optional(),\n minor: z.string().describe(\"Minor value for iBeacon\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable(),\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: RadarCreateBeacon_GeometryObjectSchema.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(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar after creation.\");\nexport const RadarCreateBeaconOutput = z.object({\n meta: RadarCreateBeacon_CreateBeaconMetaSchema.nullable(),\n beacon: RadarCreateBeacon_CreatedBeaconSchema.nullable(),\n}).passthrough().describe(\"Response model for creating a beacon.\");\n\nexport const radarCreateBeacon: AppAction<\n typeof RadarCreateBeaconInput,\n typeof RadarCreateBeaconOutput,\n typeof radar.credential\n> = action(\"RADAR_CREATE_BEACON\", {\n slug: \"radar-create-beacon\",\n name: \"Create Beacon\",\n description: \"Tool to create a new beacon in Radar. Use when you need to register a physical beacon device (iBeacon or Eddystone) for location tracking.\",\n input: RadarCreateBeaconInput,\n output: RadarCreateBeaconOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACrG,MAAM,EAAE,KAAK,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,SAAS,+BAA+B;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC7G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACzH,YAAY,EAAE,O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1
|
-
{"version":3,"file":"create-trip.cjs","names":["z","action"],"sources":["../../src/actions/create-trip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarCreateTripInput = z.object({\n mode: z.enum([\"car\", \"foot\", \"bike\"]).describe(\"Mode of travel, one of 'car', 'foot', or 'bike'\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for trip\").optional(),\n externalId: z.string().describe(\"External ID for the trip\"),\n originLocation: z.object({\n type: z.string().default(\"Point\").describe(\"Must be 'Point' to represent a GeoJSON Point\").optional(),\n coordinates: z.array(z.number()).describe(\"Longitude and latitude as [lng, lat]\"),\n}).describe(\"Origin location as GeoJSON Point\").optional(),\n originGeofenceTag: z.string().describe(\"Tag of origin geofence (e.g. warehouse)\").optional(),\n destinationLocation: z.object({\n type: z.string().default(\"Point\").describe(\"Must be 'Point' to represent a GeoJSON Point\").optional(),\n coordinates: z.array(z.number()).describe(\"Longitude and latitude as [lng, lat]\"),\n}).describe(\"Destination location as GeoJSON Point\").optional(),\n approachingThreshold: z.number().int().describe(\"Distance threshold in meters for approaching status\").optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence (e.g. store)\").optional(),\n originGeofenceExternalId: z.string().describe(\"External ID of origin geofence\").optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").optional(),\n});\nexport const RadarCreateTripOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n trip: z.record(z.string(), z.unknown()).describe(\"The newly created trip object with all details\"),\n}).passthrough();\n\nexport const radarCreateTrip = action(\"RADAR_CREATE_TRIP\", {\n slug: \"radar-create-trip\",\n name: \"Create Trip\",\n description: \"Tool to create a new trip. Use after gathering origin and destination details to start tracking a trip.\",\n input: RadarCreateTripInput,\n output: RadarCreateTripOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-trip.cjs","names":["z","action"],"sources":["../../src/actions/create-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 RadarCreateTripInput = z.object({\n mode: z.enum([\"car\", \"foot\", \"bike\"]).describe(\"Mode of travel, one of 'car', 'foot', or 'bike'\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for trip\").optional(),\n externalId: z.string().describe(\"External ID for the trip\"),\n originLocation: z.object({\n type: z.string().default(\"Point\").describe(\"Must be 'Point' to represent a GeoJSON Point\").optional(),\n coordinates: z.array(z.number()).describe(\"Longitude and latitude as [lng, lat]\"),\n}).describe(\"Origin location as GeoJSON Point\").optional(),\n originGeofenceTag: z.string().describe(\"Tag of origin geofence (e.g. warehouse)\").optional(),\n destinationLocation: z.object({\n type: z.string().default(\"Point\").describe(\"Must be 'Point' to represent a GeoJSON Point\").optional(),\n coordinates: z.array(z.number()).describe(\"Longitude and latitude as [lng, lat]\"),\n}).describe(\"Destination location as GeoJSON Point\").optional(),\n approachingThreshold: z.number().int().describe(\"Distance threshold in meters for approaching status\").optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence (e.g. store)\").optional(),\n originGeofenceExternalId: z.string().describe(\"External ID of origin geofence\").optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").optional(),\n});\nexport const RadarCreateTripOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n trip: z.record(z.string(), z.unknown()).describe(\"The newly created trip object with all details\"),\n}).passthrough();\n\nexport const radarCreateTrip: AppAction<\n typeof RadarCreateTripInput,\n typeof RadarCreateTripOutput,\n typeof radar.credential\n> = action(\"RADAR_CREATE_TRIP\", {\n slug: \"radar-create-trip\",\n name: \"Create Trip\",\n description: \"Tool to create a new trip. Use after gathering origin and destination details to start tracking a trip.\",\n input: RadarCreateTripInput,\n output: RadarCreateTripOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uBAAuBA,IAA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AAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACrG,CAAC;AACD,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mBAAmB;CACpE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACnG,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/create-trip.d.ts
|
|
@@ -27,24 +29,7 @@ declare const RadarCreateTripOutput: z.ZodObject<{
|
|
|
27
29
|
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
28
30
|
trip: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
|
-
declare const radarCreateTrip:
|
|
31
|
-
externalId: string;
|
|
32
|
-
mode?: "car" | "foot" | "bike" | undefined;
|
|
33
|
-
metadata?: Record<string, unknown> | undefined;
|
|
34
|
-
originLocation?: {
|
|
35
|
-
coordinates: number[];
|
|
36
|
-
type?: string | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
originGeofenceTag?: string | undefined;
|
|
39
|
-
destinationLocation?: {
|
|
40
|
-
coordinates: number[];
|
|
41
|
-
type?: string | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
approachingThreshold?: number | undefined;
|
|
44
|
-
destinationGeofenceTag?: string | undefined;
|
|
45
|
-
originGeofenceExternalId?: string | undefined;
|
|
46
|
-
destinationGeofenceExternalId?: string | undefined;
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
|
+
declare const radarCreateTrip: AppAction<typeof RadarCreateTripInput, typeof RadarCreateTripOutput, typeof radar.credential>;
|
|
48
33
|
//#endregion
|
|
49
34
|
export { radarCreateTrip };
|
|
50
35
|
//# sourceMappingURL=create-trip.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-trip.d.cts","names":[],"sources":["../../src/actions/create-trip.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-trip.d.cts","names":[],"sources":["../../src/actions/create-trip.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAkBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cAKrB,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/create-trip.d.ts
|
|
@@ -27,24 +29,7 @@ declare const RadarCreateTripOutput: z.ZodObject<{
|
|
|
27
29
|
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
28
30
|
trip: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
|
-
declare const radarCreateTrip:
|
|
31
|
-
externalId: string;
|
|
32
|
-
mode?: "car" | "foot" | "bike" | undefined;
|
|
33
|
-
metadata?: Record<string, unknown> | undefined;
|
|
34
|
-
originLocation?: {
|
|
35
|
-
coordinates: number[];
|
|
36
|
-
type?: string | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
originGeofenceTag?: string | undefined;
|
|
39
|
-
destinationLocation?: {
|
|
40
|
-
coordinates: number[];
|
|
41
|
-
type?: string | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
approachingThreshold?: number | undefined;
|
|
44
|
-
destinationGeofenceTag?: string | undefined;
|
|
45
|
-
originGeofenceExternalId?: string | undefined;
|
|
46
|
-
destinationGeofenceExternalId?: string | undefined;
|
|
47
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
|
+
declare const radarCreateTrip: AppAction<typeof RadarCreateTripInput, typeof RadarCreateTripOutput, typeof radar.credential>;
|
|
48
33
|
//#endregion
|
|
49
34
|
export { radarCreateTrip };
|
|
50
35
|
//# sourceMappingURL=create-trip.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-trip.d.mts","names":[],"sources":["../../src/actions/create-trip.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-trip.d.mts","names":[],"sources":["../../src/actions/create-trip.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAkBpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cAKrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-trip.mjs","names":[],"sources":["../../src/actions/create-trip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarCreateTripInput = z.object({\n mode: z.enum([\"car\", \"foot\", \"bike\"]).describe(\"Mode of travel, one of 'car', 'foot', or 'bike'\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for trip\").optional(),\n externalId: z.string().describe(\"External ID for the trip\"),\n originLocation: z.object({\n type: z.string().default(\"Point\").describe(\"Must be 'Point' to represent a GeoJSON Point\").optional(),\n coordinates: z.array(z.number()).describe(\"Longitude and latitude as [lng, lat]\"),\n}).describe(\"Origin location as GeoJSON Point\").optional(),\n originGeofenceTag: z.string().describe(\"Tag of origin geofence (e.g. warehouse)\").optional(),\n destinationLocation: z.object({\n type: z.string().default(\"Point\").describe(\"Must be 'Point' to represent a GeoJSON Point\").optional(),\n coordinates: z.array(z.number()).describe(\"Longitude and latitude as [lng, lat]\"),\n}).describe(\"Destination location as GeoJSON Point\").optional(),\n approachingThreshold: z.number().int().describe(\"Distance threshold in meters for approaching status\").optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence (e.g. store)\").optional(),\n originGeofenceExternalId: z.string().describe(\"External ID of origin geofence\").optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").optional(),\n});\nexport const RadarCreateTripOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n trip: z.record(z.string(), z.unknown()).describe(\"The newly created trip object with all details\"),\n}).passthrough();\n\nexport const radarCreateTrip = action(\"RADAR_CREATE_TRIP\", {\n slug: \"radar-create-trip\",\n name: \"Create Trip\",\n description: \"Tool to create a new trip. Use after gathering origin and destination details to start tracking a trip.\",\n input: RadarCreateTripInput,\n output: RadarCreateTripOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-trip.mjs","names":[],"sources":["../../src/actions/create-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 RadarCreateTripInput = z.object({\n mode: z.enum([\"car\", \"foot\", \"bike\"]).describe(\"Mode of travel, one of 'car', 'foot', or 'bike'\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for trip\").optional(),\n externalId: z.string().describe(\"External ID for the trip\"),\n originLocation: z.object({\n type: z.string().default(\"Point\").describe(\"Must be 'Point' to represent a GeoJSON Point\").optional(),\n coordinates: z.array(z.number()).describe(\"Longitude and latitude as [lng, lat]\"),\n}).describe(\"Origin location as GeoJSON Point\").optional(),\n originGeofenceTag: z.string().describe(\"Tag of origin geofence (e.g. warehouse)\").optional(),\n destinationLocation: z.object({\n type: z.string().default(\"Point\").describe(\"Must be 'Point' to represent a GeoJSON Point\").optional(),\n coordinates: z.array(z.number()).describe(\"Longitude and latitude as [lng, lat]\"),\n}).describe(\"Destination location as GeoJSON Point\").optional(),\n approachingThreshold: z.number().int().describe(\"Distance threshold in meters for approaching status\").optional(),\n destinationGeofenceTag: z.string().describe(\"Tag of destination geofence (e.g. store)\").optional(),\n originGeofenceExternalId: z.string().describe(\"External ID of origin geofence\").optional(),\n destinationGeofenceExternalId: z.string().describe(\"External ID of destination geofence\").optional(),\n});\nexport const RadarCreateTripOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n trip: z.record(z.string(), z.unknown()).describe(\"The newly created trip object with all details\"),\n}).passthrough();\n\nexport const radarCreateTrip: AppAction<\n typeof RadarCreateTripInput,\n typeof RadarCreateTripOutput,\n typeof radar.credential\n> = action(\"RADAR_CREATE_TRIP\", {\n slug: \"radar-create-trip\",\n name: \"Create Trip\",\n description: \"Tool to create a new trip. Use after gathering origin and destination details to start tracking a trip.\",\n input: RadarCreateTripInput,\n output: RadarCreateTripOutput,\n});\n"],"mappings":";;;AA6BA,MAAa,kBAIT,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BkC,EAAE,OAAO;EAC3C,MAAM,EAAE,KAAK;GAAC;GAAO;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACjG,YAA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"],"sources":["../../src/actions/delete-beacon.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarDeleteBeaconInput = z.object({\n id: z.string().describe(\"The Radar _id of the beacon to delete\"),\n}).describe(\"Request parameters for deleting a beacon.\");\nconst RadarDeleteBeacon_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n}).passthrough().describe(\"Response metadata from Radar API.\");\nexport const RadarDeleteBeaconOutput = z.object({\n meta: RadarDeleteBeacon_MetaSchema.nullable(),\n}).passthrough().describe(\"Response schema for deleted beacon.\\nThe Radar API returns only a meta object with the status code on successful deletion.\");\n\nexport const radarDeleteBeacon = action(\"RADAR_DELETE_BEACON\", {\n slug: \"radar-delete-beacon\",\n name: \"Delete Beacon\",\n description: \"Tool to delete a beacon by its Radar ID. Use when supplying a beacon's unique identifier to remove it.\",\n input: RadarDeleteBeaconInput,\n output: RadarDeleteBeaconOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-beacon.cjs","names":["z","action"],"sources":["../../src/actions/delete-beacon.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 RadarDeleteBeaconInput = z.object({\n id: z.string().describe(\"The Radar _id of the beacon to delete\"),\n}).describe(\"Request parameters for deleting a beacon.\");\nconst RadarDeleteBeacon_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n}).passthrough().describe(\"Response metadata from Radar API.\");\nexport const RadarDeleteBeaconOutput = z.object({\n meta: RadarDeleteBeacon_MetaSchema.nullable(),\n}).passthrough().describe(\"Response schema for deleted beacon.\\nThe Radar API returns only a meta object with the status code on successful deletion.\");\n\nexport const radarDeleteBeacon: AppAction<\n typeof RadarDeleteBeaconInput,\n typeof RadarDeleteBeaconOutput,\n typeof radar.credential\n> = action(\"RADAR_DELETE_BEACON\", {\n slug: \"radar-delete-beacon\",\n name: \"Delete Beacon\",\n description: \"Tool to delete a beacon by its Radar ID. Use when supplying a beacon's unique identifier to remove it.\",\n input: RadarDeleteBeaconInput,\n output: RadarDeleteBeaconOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,+BAA+BA,IAAAA,EAAE,OAAO,EAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,MAAM,6BAA6B,SAAS,EAC9C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4HAA4H;AAEtJ,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,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/delete-beacon.d.ts
|
|
@@ -9,9 +11,7 @@ declare const RadarDeleteBeaconOutput: z.ZodObject<{
|
|
|
9
11
|
code: z.ZodNullable<z.ZodNumber>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const radarDeleteBeacon:
|
|
13
|
-
id: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const radarDeleteBeacon: AppAction<typeof RadarDeleteBeaconInput, typeof RadarDeleteBeaconOutput, typeof radar.credential>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { radarDeleteBeacon };
|
|
17
17
|
//# sourceMappingURL=delete-beacon.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-beacon.d.cts","names":[],"sources":["../../src/actions/delete-beacon.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-beacon.d.cts","names":[],"sources":["../../src/actions/delete-beacon.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAMtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,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/delete-beacon.d.ts
|
|
@@ -9,9 +11,7 @@ declare const RadarDeleteBeaconOutput: z.ZodObject<{
|
|
|
9
11
|
code: z.ZodNullable<z.ZodNumber>;
|
|
10
12
|
}, z.core.$loose>>;
|
|
11
13
|
}, z.core.$loose>;
|
|
12
|
-
declare const radarDeleteBeacon:
|
|
13
|
-
id: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
|
+
declare const radarDeleteBeacon: AppAction<typeof RadarDeleteBeaconInput, typeof RadarDeleteBeaconOutput, typeof radar.credential>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { radarDeleteBeacon };
|
|
17
17
|
//# sourceMappingURL=delete-beacon.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-beacon.d.mts","names":[],"sources":["../../src/actions/delete-beacon.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-beacon.d.mts","names":[],"sources":["../../src/actions/delete-beacon.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAMtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;cAIvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,KAAA,CAAM,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-beacon.mjs","names":[],"sources":["../../src/actions/delete-beacon.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarDeleteBeaconInput = z.object({\n id: z.string().describe(\"The Radar _id of the beacon to delete\"),\n}).describe(\"Request parameters for deleting a beacon.\");\nconst RadarDeleteBeacon_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n}).passthrough().describe(\"Response metadata from Radar API.\");\nexport const RadarDeleteBeaconOutput = z.object({\n meta: RadarDeleteBeacon_MetaSchema.nullable(),\n}).passthrough().describe(\"Response schema for deleted beacon.\\nThe Radar API returns only a meta object with the status code on successful deletion.\");\n\nexport const radarDeleteBeacon = action(\"RADAR_DELETE_BEACON\", {\n slug: \"radar-delete-beacon\",\n name: \"Delete Beacon\",\n description: \"Tool to delete a beacon by its Radar ID. Use when supplying a beacon's unique identifier to remove it.\",\n input: RadarDeleteBeaconInput,\n output: RadarDeleteBeaconOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-beacon.mjs","names":[],"sources":["../../src/actions/delete-beacon.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 RadarDeleteBeaconInput = z.object({\n id: z.string().describe(\"The Radar _id of the beacon to delete\"),\n}).describe(\"Request parameters for deleting a beacon.\");\nconst RadarDeleteBeacon_MetaSchema = z.object({\n code: z.number().int().describe(\"HTTP status code returned by the API\").nullable(),\n}).passthrough().describe(\"Response metadata from Radar API.\");\nexport const RadarDeleteBeaconOutput = z.object({\n meta: RadarDeleteBeacon_MetaSchema.nullable(),\n}).passthrough().describe(\"Response schema for deleted beacon.\\nThe Radar API returns only a meta object with the status code on successful deletion.\");\n\nexport const radarDeleteBeacon: AppAction<\n typeof RadarDeleteBeaconInput,\n typeof RadarDeleteBeaconOutput,\n typeof radar.credential\n> = action(\"RADAR_DELETE_BEACON\", {\n slug: \"radar-delete-beacon\",\n name: \"Delete Beacon\",\n description: \"Tool to delete a beacon by its Radar ID. Use when supplying a beacon's unique identifier to remove it.\",\n input: RadarDeleteBeaconInput,\n output: RadarDeleteBeaconOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACjE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,+BAA+B,EAAE,OAAO,EAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAK7D,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqC,EAAE,OAAO,EAC9C,MAAM,6BAA6B,SAAS,EAC9C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4HAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-geofence-by-tag.cjs","names":["z","action"],"sources":["../../src/actions/delete-geofence-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarDeleteGeofenceByTagInput = z.object({\n tag: z.string().describe(\"The tag of the geofence to delete\"),\n externalId: z.string().describe(\"The external ID of the geofence to delete\"),\n}).describe(\"Request model to delete a geofence by tag and external ID.\");\nconst RadarDeleteGeofenceByTag_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.\");\nexport const RadarDeleteGeofenceByTagOutput = z.object({\n meta: RadarDeleteGeofenceByTag_MetaSchema.nullable(),\n}).passthrough().describe(\"Response model returned after deleting a geofence by tag and external ID.\\nThe Radar API returns only a meta object with the status code on successful deletion.\");\n\nexport const radarDeleteGeofenceByTag = action(\"RADAR_DELETE_GEOFENCE_BY_TAG\", {\n slug: \"radar-delete-geofence-by-tag\",\n name: \"Delete Geofence By Tag\",\n description: \"Tool to delete a geofence by tag and external ID. Use when you have both the tag and external identifier to remove a specific geofence.\",\n input: RadarDeleteGeofenceByTagInput,\n output: RadarDeleteGeofenceByTagOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-geofence-by-tag.cjs","names":["z","action"],"sources":["../../src/actions/delete-geofence-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 RadarDeleteGeofenceByTagInput = z.object({\n tag: z.string().describe(\"The tag of the geofence to delete\"),\n externalId: z.string().describe(\"The external ID of the geofence to delete\"),\n}).describe(\"Request model to delete a geofence by tag and external ID.\");\nconst RadarDeleteGeofenceByTag_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.\");\nexport const RadarDeleteGeofenceByTagOutput = z.object({\n meta: RadarDeleteGeofenceByTag_MetaSchema.nullable(),\n}).passthrough().describe(\"Response model returned after deleting a geofence by tag and external ID.\\nThe Radar API returns only a meta object with the status code on successful deletion.\");\n\nexport const radarDeleteGeofenceByTag: AppAction<\n typeof RadarDeleteGeofenceByTagInput,\n typeof RadarDeleteGeofenceByTagOutput,\n typeof radar.credential\n> = action(\"RADAR_DELETE_GEOFENCE_BY_TAG\", {\n slug: \"radar-delete-geofence-by-tag\",\n name: \"Delete Geofence By Tag\",\n description: \"Tool to delete a geofence by tag and external ID. Use when you have both the tag and external identifier to remove a specific geofence.\",\n input: RadarDeleteGeofenceByTagInput,\n output: RadarDeleteGeofenceByTagOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC7E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,sCAAsCA,IAAAA,EAAE,OAAO,EACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAM,oCAAoC,SAAS,EACrD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kKAAkK;AAE5L,MAAa,2BAITC,eAAAA,OAAO,gCAAgC;CACzC,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/delete-geofence-by-tag.d.ts
|
|
@@ -10,10 +12,7 @@ declare const RadarDeleteGeofenceByTagOutput: z.ZodObject<{
|
|
|
10
12
|
code: z.ZodNullable<z.ZodNumber>;
|
|
11
13
|
}, z.core.$loose>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const radarDeleteGeofenceByTag:
|
|
14
|
-
tag: string;
|
|
15
|
-
externalId: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const radarDeleteGeofenceByTag: AppAction<typeof RadarDeleteGeofenceByTagInput, typeof RadarDeleteGeofenceByTagOutput, typeof radar.credential>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { radarDeleteGeofenceByTag };
|
|
19
18
|
//# sourceMappingURL=delete-geofence-by-tag.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-geofence-by-tag.d.cts","names":[],"sources":["../../src/actions/delete-geofence-by-tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-geofence-by-tag.d.cts","names":[],"sources":["../../src/actions/delete-geofence-by-tag.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAO7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/delete-geofence-by-tag.d.ts
|
|
@@ -10,10 +12,7 @@ declare const RadarDeleteGeofenceByTagOutput: z.ZodObject<{
|
|
|
10
12
|
code: z.ZodNullable<z.ZodNumber>;
|
|
11
13
|
}, z.core.$loose>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const radarDeleteGeofenceByTag:
|
|
14
|
-
tag: string;
|
|
15
|
-
externalId: string;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const radarDeleteGeofenceByTag: AppAction<typeof RadarDeleteGeofenceByTagInput, typeof RadarDeleteGeofenceByTagOutput, typeof radar.credential>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { radarDeleteGeofenceByTag };
|
|
19
18
|
//# sourceMappingURL=delete-geofence-by-tag.d.mts.map
|